@r365/react-calendar-timeline
Advanced tools
Comparing version 0.25.0-beta.12 to 0.25.0-beta.13
@@ -0,0 +0,0 @@ # Change Log |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -0,0 +0,0 @@ 'use strict'; |
@@ -671,3 +671,4 @@ 'use strict'; | ||
children: _propTypes2.default.node, | ||
width: _propTypes2.default.number | ||
width: _propTypes2.default.number, | ||
onUpdateMove: _propTypes2.default.func | ||
}; | ||
@@ -744,3 +745,4 @@ ReactCalendarTimeline.defaultProps = { | ||
selected: null | ||
selected: null, | ||
onUpdateMove: null | ||
}; | ||
@@ -942,3 +944,5 @@ ReactCalendarTimeline.childContextTypes = { | ||
var keys = _this4.props.keys; | ||
if (_this4.props.onUpdateMove) { | ||
_this4.props.onUpdateMove(item, dragTime, newGroupOrder, 'move'); | ||
} | ||
_this4.setState({ | ||
@@ -960,2 +964,5 @@ draggingItem: item, | ||
this.resizingItem = function (item, resizeTime, edge) { | ||
if (_this4.props.onUpdateMove) { | ||
_this4.props.onUpdateMove(item, resizeTime, undefined, 'resize', edge); | ||
} | ||
_this4.setState({ | ||
@@ -1042,2 +1049,2 @@ resizingItem: item, | ||
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-beta.12", | ||
"version": "0.25.0-beta.13", | ||
"description": "react calendar timeline", | ||
@@ -5,0 +5,0 @@ "main": "lib/index.js", |
@@ -335,2 +335,7 @@ # React Calendar Timeline | ||
## onUpdateMove(itemId, time, newGroup, action,resizeEdge) | ||
this function is called after moveResizeValidator on every drag update | ||
## headerLabelFormats and subHeaderLabelFormats | ||
@@ -337,0 +342,0 @@ |
@@ -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' |
@@ -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' |
@@ -165,2 +165,3 @@ import PropTypes from 'prop-types' | ||
width: PropTypes.number, | ||
onUpdateMove: PropTypes.func, | ||
} | ||
@@ -242,3 +243,4 @@ | ||
selected: null | ||
selected: null, | ||
onUpdateMove: null, | ||
} | ||
@@ -678,3 +680,5 @@ | ||
const keys = this.props.keys | ||
if(this.props.onUpdateMove){ | ||
this.props.onUpdateMove(item, dragTime, newGroupOrder, 'move') | ||
} | ||
this.setState({ | ||
@@ -696,2 +700,5 @@ draggingItem: item, | ||
resizingItem = (item, resizeTime, edge) => { | ||
if(this.props.onUpdateMove){ | ||
this.props.onUpdateMove(item, resizeTime, undefined, 'resize', edge) | ||
} | ||
this.setState({ | ||
@@ -698,0 +705,0 @@ resizingItem: item, |
@@ -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
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
License Policy Violation
LicenseThis package is not allowed per your license policy. Review the package's license to ensure compliance.
Found 1 instance in 1 package
477074
9993
1460