Socket
Socket
Sign inDemoInstall

@r365/react-calendar-timeline

Package Overview
Dependencies
30
Maintainers
1
Versions
39
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

Comparing version 0.25.0-alpha.17 to 0.25.0-alpha.19

0

CHANGELOG.md

@@ -0,0 +0,0 @@ # Change Log

22

lib/lib/items/Item.js

@@ -255,3 +255,2 @@ 'use strict';

var dragGroupDelta = _this2.dragGroupDelta(e);
console.log(dragGroupDelta);
if (_this2.props.moveResizeValidator) {

@@ -534,16 +533,2 @@ dragTime = _this2.props.moveResizeValidator('move', _this2.props.item, dragTime);

this.onMouseDown = function (e) {
if (!_this3.state.interactMounted) {
e.preventDefault();
_this3.startedClicking = true;
}
};
this.onMouseUp = function (e) {
if (!_this3.state.interactMounted && _this3.startedClicking) {
_this3.startedClicking = false;
_this3.actualClick(e, 'click');
}
};
this.onTouchStart = function (e) {

@@ -601,4 +586,2 @@ if (!_this3.state.interactMounted) {

className: classNames + (' ' + (props.className ? props.className : '')),
onMouseDown: (0, _events.composeEvents)(_this3.onMouseDown, props.onMouseDown),
onMouseUp: (0, _events.composeEvents)(_this3.onMouseUp, props.onMouseUp),
onTouchStart: (0, _events.composeEvents)(_this3.onTouchStart, props.onTouchStart),

@@ -608,3 +591,6 @@ onTouchEnd: (0, _events.composeEvents)(_this3.onTouchEnd, props.onTouchEnd),

onContextMenu: (0, _events.composeEvents)(_this3.handleContextMenu, props.onContextMenu),
style: Object.assign({}, _this3.getItemStyle(props))
style: Object.assign({}, _this3.getItemStyle(props)),
onClick: function onClick(e) {
_this3.actualClick(e, 'click');
}
};

@@ -611,0 +597,0 @@ };

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

6

lib/lib/Timeline.js

@@ -440,4 +440,2 @@ 'use strict';

console.log("render", width);
return _react2.default.createElement(

@@ -868,2 +866,3 @@ _TimelineStateContext.TimelineStateProvider,

if (_this4.isItemSelected(item) || _this4.props.itemTouchSendsClick && clickType === 'touch') {
console.error("click");
if (item && _this4.props.onItemClick) {

@@ -874,2 +873,3 @@ var time = _this4.timeFromItemEvent(e);

} else {
console.error("select");
_this4.setState({ selectedItem: item });

@@ -1048,2 +1048,2 @@ if (item && _this4.props.onItemSelect) {

exports.default = ReactCalendarTimeline;
exports.default = ReactCalendarTimeline;

@@ -0,0 +0,0 @@ 'use strict';

@@ -0,0 +0,0 @@ 'use strict';

{
"name": "@r365/react-calendar-timeline",
"version": "0.25.0-alpha.17",
"version": "0.25.0-alpha.19",
"description": "react calendar timeline",

@@ -5,0 +5,0 @@ "main": "lib/index.js",

@@ -0,0 +0,0 @@ # React Calendar Timeline

@@ -0,0 +0,0 @@ import Timeline from './lib/Timeline'

@@ -0,0 +0,0 @@ import PropTypes from 'prop-types'

@@ -0,0 +0,0 @@ export const defaultKeys = {

export const LEFT_VARIANT= 'left'
export const RIGHT_VARIANT= 'right'

@@ -0,0 +0,0 @@ import React from 'react'

@@ -0,0 +0,0 @@ import React from 'react'

@@ -0,0 +0,0 @@ import React from 'react'

@@ -0,0 +0,0 @@ import React from 'react'

@@ -0,0 +0,0 @@ import React from 'react'

@@ -0,0 +0,0 @@ import React from 'react'

@@ -0,0 +0,0 @@ import React from 'react'

@@ -0,0 +0,0 @@ import React from 'react'

@@ -264,3 +264,2 @@ import { Component } from 'react'

let dragGroupDelta = this.dragGroupDelta(e)
console.log(dragGroupDelta)
if (this.props.moveResizeValidator) {

@@ -466,16 +465,2 @@ dragTime = this.props.moveResizeValidator(

onMouseDown = e => {
if (!this.state.interactMounted) {
e.preventDefault()
this.startedClicking = true
}
}
onMouseUp = e => {
if (!this.state.interactMounted && this.startedClicking) {
this.startedClicking = false
this.actualClick(e, 'click')
}
}
onTouchStart = e => {

@@ -531,4 +516,2 @@ if (!this.state.interactMounted) {

className: classNames + ` ${props.className ? props.className : ''}`,
onMouseDown: composeEvents(this.onMouseDown, props.onMouseDown),
onMouseUp: composeEvents(this.onMouseUp, props.onMouseUp),
onTouchStart: composeEvents(this.onTouchStart, props.onTouchStart),

@@ -538,3 +521,4 @@ onTouchEnd: composeEvents(this.onTouchEnd, props.onTouchEnd),

onContextMenu: composeEvents(this.handleContextMenu, props.onContextMenu),
style: Object.assign({}, this.getItemStyle(props))
style: Object.assign({}, this.getItemStyle(props)),
onClick : (e) => {this.actualClick(e, 'click')}
}

@@ -541,0 +525,0 @@ }

@@ -0,0 +0,0 @@ import PropTypes from 'prop-types'

@@ -0,0 +0,0 @@ export const overridableStyles = {

@@ -0,0 +0,0 @@ import PropTypes from 'prop-types'

@@ -0,0 +0,0 @@ import React from 'react'

@@ -0,0 +0,0 @@ import React from 'react'

@@ -0,0 +0,0 @@ import React from 'react'

@@ -0,0 +0,0 @@ import React from 'react'

@@ -0,0 +0,0 @@ import React from 'react'

@@ -0,0 +0,0 @@ import React from 'react'

@@ -0,0 +0,0 @@ import React from 'react'

@@ -0,0 +0,0 @@ import React, { PureComponent } from 'react'

@@ -0,0 +0,0 @@ import PropTypes from 'prop-types'

@@ -0,0 +0,0 @@ import React, { PureComponent } from 'react'

@@ -602,2 +602,3 @@ import PropTypes from 'prop-types'

) {
console.error("click")
if (item && this.props.onItemClick) {

@@ -608,2 +609,3 @@ const time = this.timeFromItemEvent(e)

} else {
console.error("select")
this.setState({ selectedItem: item })

@@ -1044,4 +1046,2 @@ if (item && this.props.onItemSelect) {

console.log("render", width)
return (

@@ -1048,0 +1048,0 @@ <TimelineStateProvider

@@ -0,0 +0,0 @@ import React from 'react'

@@ -0,0 +0,0 @@ import moment from 'moment'

@@ -0,0 +0,0 @@ // TODO: can we use getBoundingClientRect instead??

Sorry, the diff of this file is not supported yet

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc