react-calendar-timeline
Advanced tools
Comparing version 0.15.10 to 0.15.11
@@ -12,4 +12,12 @@ # Change Log | ||
## 0.15.11 | ||
### Fixed | ||
* removed `preventDefault` call in item double click handler - #277 | ||
## 0.15.10 | ||
### Fixed | ||
* fix issue with time report with onItem\* callbacks for browsers that don't support `x` property in rect object - #266 | ||
@@ -16,0 +24,0 @@ |
@@ -13,14 +13,2 @@ 'use strict'; | ||
var _default = _Timeline2.default; | ||
exports.default = _default; | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
__REACT_HOT_LOADER__.register(_default, 'default', 'src/index.js'); | ||
}(); | ||
; | ||
exports.default = _Timeline2.default; |
@@ -166,15 +166,2 @@ 'use strict'; | ||
}); | ||
}); | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
__REACT_HOT_LOADER__.register(groups, 'groups', 'src/lib/__tests__/index.js'); | ||
__REACT_HOT_LOADER__.register(items, 'items', 'src/lib/__tests__/index.js'); | ||
}(); | ||
; | ||
}); |
@@ -234,11 +234,2 @@ 'use strict'; | ||
}); | ||
}); | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
}(); | ||
; | ||
}); |
@@ -39,11 +39,2 @@ 'use strict'; | ||
}); | ||
}); | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
}(); | ||
; | ||
}); |
@@ -95,13 +95,2 @@ 'use strict'; | ||
}); | ||
}); | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
__REACT_HOT_LOADER__.register(buildObject, 'buildObject', 'src/lib/__tests__/utils/calendar/collision.js'); | ||
}(); | ||
; | ||
}); |
@@ -15,11 +15,2 @@ 'use strict'; | ||
}); | ||
}); | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
}(); | ||
; | ||
}); |
@@ -7,11 +7,2 @@ 'use strict'; | ||
xit('WRITE UNIT TEST HERE', function () {}); | ||
}); /* eslint-disable */ | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
}(); | ||
; | ||
}); /* eslint-disable */ |
@@ -7,11 +7,2 @@ 'use strict'; | ||
xit('WRITE UNIT TEST HERE', function () {}); | ||
}); /* eslint-disable */ | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
}(); | ||
; | ||
}); /* eslint-disable */ |
@@ -63,13 +63,2 @@ 'use strict'; | ||
}); | ||
}); | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
__REACT_HOT_LOADER__.register(defaultTimeSteps, 'defaultTimeSteps', 'src/lib/__tests__/utils/calendar/get-min-unit.js'); | ||
}(); | ||
; | ||
}); |
@@ -35,11 +35,2 @@ 'use strict'; | ||
}); | ||
}); /* eslint-disable */ | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
}(); | ||
; | ||
}); /* eslint-disable */ |
@@ -81,17 +81,2 @@ 'use strict'; | ||
}); | ||
}); | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
__REACT_HOT_LOADER__.register(itemTimeStartKey, 'itemTimeStartKey', 'src/lib/__tests__/utils/calendar/get-visible-items.js'); | ||
__REACT_HOT_LOADER__.register(itemTimeEndKey, 'itemTimeEndKey', 'src/lib/__tests__/utils/calendar/get-visible-items.js'); | ||
__REACT_HOT_LOADER__.register(keys, 'keys', 'src/lib/__tests__/utils/calendar/get-visible-items.js'); | ||
}(); | ||
; | ||
}); |
@@ -7,12 +7,2 @@ 'use strict'; | ||
xit('WRITE TEST HERE :)', function () {}); | ||
}); /* eslint-disable */ | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
}(); | ||
; | ||
}); /* eslint-disable */ |
@@ -7,11 +7,2 @@ 'use strict'; | ||
xit('WRITE UNIT TEST HERE', function () {}); | ||
}); /* eslint-disable */ | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
}(); | ||
; | ||
}); /* eslint-disable */ |
@@ -7,11 +7,2 @@ 'use strict'; | ||
xit('WRITE UNIT TEST HERE', function () {}); | ||
}); /* eslint-disable */ | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
}(); | ||
; | ||
}); /* eslint-disable */ |
@@ -7,11 +7,2 @@ 'use strict'; | ||
xit('WRITE TEST HERE', function () {}); | ||
}); /* eslint-disable */ | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
}(); | ||
; | ||
}); /* eslint-disable */ |
@@ -56,13 +56,2 @@ 'use strict'; | ||
}); | ||
}); | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
__REACT_HOT_LOADER__.register(targetId, 'targetId', 'src/lib/__tests__/utils/dom-helpers/has-same-parent-class.js'); | ||
}(); | ||
; | ||
}); |
@@ -45,24 +45,43 @@ 'use strict'; | ||
_this.onMouseDown = function () { | ||
return _this.__onMouseDown__REACT_HOT_LOADER__.apply(_this, arguments); | ||
_this.onMouseDown = function (e) { | ||
if (!_this.state.interactMounted) { | ||
e.preventDefault(); | ||
_this.startedClicking = true; | ||
} | ||
}; | ||
_this.onMouseUp = function () { | ||
return _this.__onMouseUp__REACT_HOT_LOADER__.apply(_this, arguments); | ||
_this.onMouseUp = function (e) { | ||
if (!_this.state.interactMounted && _this.startedClicking) { | ||
_this.startedClicking = false; | ||
_this.actualClick(e, 'click'); | ||
} | ||
}; | ||
_this.onTouchStart = function () { | ||
return _this.__onTouchStart__REACT_HOT_LOADER__.apply(_this, arguments); | ||
_this.onTouchStart = function (e) { | ||
if (!_this.state.interactMounted) { | ||
e.preventDefault(); | ||
_this.startedTouching = true; | ||
} | ||
}; | ||
_this.onTouchEnd = function () { | ||
return _this.__onTouchEnd__REACT_HOT_LOADER__.apply(_this, arguments); | ||
_this.onTouchEnd = function (e) { | ||
if (!_this.state.interactMounted && _this.startedTouching) { | ||
_this.startedTouching = false; | ||
_this.actualClick(e, 'touch'); | ||
} | ||
}; | ||
_this.handleDoubleClick = function () { | ||
return _this.__handleDoubleClick__REACT_HOT_LOADER__.apply(_this, arguments); | ||
_this.handleDoubleClick = function (e) { | ||
e.stopPropagation(); | ||
if (_this.props.onItemDoubleClick) { | ||
_this.props.onItemDoubleClick(_this.itemId, e); | ||
} | ||
}; | ||
_this.handleContextMenu = function () { | ||
return _this.__handleContextMenu__REACT_HOT_LOADER__.apply(_this, arguments); | ||
_this.handleContextMenu = function (e) { | ||
if (_this.props.onContextMenu) { | ||
e.preventDefault(); | ||
e.stopPropagation(); | ||
_this.props.onContextMenu(_this.itemId, e); | ||
} | ||
}; | ||
@@ -94,52 +113,2 @@ | ||
_createClass(Item, [{ | ||
key: '__handleContextMenu__REACT_HOT_LOADER__', | ||
value: function __handleContextMenu__REACT_HOT_LOADER__(e) { | ||
if (this.props.onContextMenu) { | ||
e.preventDefault(); | ||
e.stopPropagation(); | ||
this.props.onContextMenu(this.itemId, e); | ||
} | ||
} | ||
}, { | ||
key: '__handleDoubleClick__REACT_HOT_LOADER__', | ||
value: function __handleDoubleClick__REACT_HOT_LOADER__(e) { | ||
e.preventDefault(); | ||
e.stopPropagation(); | ||
if (this.props.onItemDoubleClick) { | ||
this.props.onItemDoubleClick(this.itemId, e); | ||
} | ||
} | ||
}, { | ||
key: '__onTouchEnd__REACT_HOT_LOADER__', | ||
value: function __onTouchEnd__REACT_HOT_LOADER__(e) { | ||
if (!this.state.interactMounted && this.startedTouching) { | ||
this.startedTouching = false; | ||
this.actualClick(e, 'touch'); | ||
} | ||
} | ||
}, { | ||
key: '__onTouchStart__REACT_HOT_LOADER__', | ||
value: function __onTouchStart__REACT_HOT_LOADER__(e) { | ||
if (!this.state.interactMounted) { | ||
e.preventDefault(); | ||
this.startedTouching = true; | ||
} | ||
} | ||
}, { | ||
key: '__onMouseUp__REACT_HOT_LOADER__', | ||
value: function __onMouseUp__REACT_HOT_LOADER__(e) { | ||
if (!this.state.interactMounted && this.startedClicking) { | ||
this.startedClicking = false; | ||
this.actualClick(e, 'click'); | ||
} | ||
} | ||
}, { | ||
key: '__onMouseDown__REACT_HOT_LOADER__', | ||
value: function __onMouseDown__REACT_HOT_LOADER__(e) { | ||
if (!this.state.interactMounted) { | ||
e.preventDefault(); | ||
this.startedClicking = true; | ||
} | ||
} | ||
}, { | ||
key: 'shouldComponentUpdate', | ||
@@ -592,16 +561,2 @@ value: function shouldComponentUpdate(nextProps, nextState) { | ||
}; | ||
var _default = Item; | ||
exports.default = _default; | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
__REACT_HOT_LOADER__.register(Item, 'Item', 'src/lib/items/Item.js'); | ||
__REACT_HOT_LOADER__.register(_default, 'default', 'src/lib/items/Item.js'); | ||
}(); | ||
; | ||
exports.default = Item; |
@@ -200,20 +200,2 @@ 'use strict'; | ||
}; | ||
var _default = Items; | ||
exports.default = _default; | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
__REACT_HOT_LOADER__.register(canResizeLeft, 'canResizeLeft', 'src/lib/items/Items.js'); | ||
__REACT_HOT_LOADER__.register(canResizeRight, 'canResizeRight', 'src/lib/items/Items.js'); | ||
__REACT_HOT_LOADER__.register(Items, 'Items', 'src/lib/items/Items.js'); | ||
__REACT_HOT_LOADER__.register(_default, 'default', 'src/lib/items/Items.js'); | ||
}(); | ||
; | ||
exports.default = Items; |
@@ -39,12 +39,36 @@ 'use strict'; | ||
_this.periodClick = function () { | ||
return _this.__periodClick__REACT_HOT_LOADER__.apply(_this, arguments); | ||
_this.periodClick = function (e) { | ||
var _e$target$dataset = e.target.dataset, | ||
time = _e$target$dataset.time, | ||
unit = _e$target$dataset.unit; | ||
if (time && unit) { | ||
_this.props.showPeriod((0, _moment2.default)(time - 0), unit); | ||
} | ||
}; | ||
_this.touchStart = function () { | ||
return _this.__touchStart__REACT_HOT_LOADER__.apply(_this, arguments); | ||
_this.touchStart = function (e) { | ||
if (e.touches.length === 1) { | ||
_this.setState({ | ||
touchTarget: e.target || e.touchTarget, | ||
touchActive: true | ||
}); | ||
} | ||
}; | ||
_this.touchEnd = function () { | ||
return _this.__touchEnd__REACT_HOT_LOADER__.apply(_this, arguments); | ||
_this.touchEnd = function (e) { | ||
if (!_this.state.touchActive) { | ||
return _this.resetTouchState(); | ||
} | ||
var changedTouches = e.changedTouches[0]; | ||
if (changedTouches) { | ||
var elem = document.elementFromPoint(changedTouches.pageX, changedTouches.pageY); | ||
if (elem !== _this.state.touchTarget) { | ||
return _this.resetTouchState(); | ||
} | ||
} | ||
_this.resetTouchState(); | ||
_this.periodClick(e); | ||
}; | ||
@@ -60,41 +84,2 @@ | ||
_createClass(Header, [{ | ||
key: '__touchEnd__REACT_HOT_LOADER__', | ||
value: function __touchEnd__REACT_HOT_LOADER__(e) { | ||
if (!this.state.touchActive) { | ||
return this.resetTouchState(); | ||
} | ||
var changedTouches = e.changedTouches[0]; | ||
if (changedTouches) { | ||
var elem = document.elementFromPoint(changedTouches.pageX, changedTouches.pageY); | ||
if (elem !== this.state.touchTarget) { | ||
return this.resetTouchState(); | ||
} | ||
} | ||
this.resetTouchState(); | ||
this.periodClick(e); | ||
} | ||
}, { | ||
key: '__touchStart__REACT_HOT_LOADER__', | ||
value: function __touchStart__REACT_HOT_LOADER__(e) { | ||
if (e.touches.length === 1) { | ||
this.setState({ | ||
touchTarget: e.target || e.touchTarget, | ||
touchActive: true | ||
}); | ||
} | ||
} | ||
}, { | ||
key: '__periodClick__REACT_HOT_LOADER__', | ||
value: function __periodClick__REACT_HOT_LOADER__(e) { | ||
var _e$target$dataset = e.target.dataset, | ||
time = _e$target$dataset.time, | ||
unit = _e$target$dataset.unit; | ||
if (time && unit) { | ||
this.props.showPeriod((0, _moment2.default)(time - 0), unit); | ||
} | ||
} | ||
}, { | ||
key: 'headerLabel', | ||
@@ -300,16 +285,2 @@ value: function headerLabel(time, unit, width) { | ||
}; | ||
var _default = Header; | ||
exports.default = _default; | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
__REACT_HOT_LOADER__.register(Header, 'Header', 'src/lib/layout/Header.js'); | ||
__REACT_HOT_LOADER__.register(_default, 'default', 'src/lib/layout/Header.js'); | ||
}(); | ||
; | ||
exports.default = Header; |
@@ -62,16 +62,2 @@ 'use strict'; | ||
}; | ||
var _default = InfoLabel; | ||
exports.default = _default; | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
__REACT_HOT_LOADER__.register(InfoLabel, 'InfoLabel', 'src/lib/layout/InfoLabel.js'); | ||
__REACT_HOT_LOADER__.register(_default, 'default', 'src/lib/layout/InfoLabel.js'); | ||
}(); | ||
; | ||
exports.default = InfoLabel; |
@@ -174,16 +174,2 @@ 'use strict'; | ||
}; | ||
var _default = Sidebar; | ||
exports.default = _default; | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
__REACT_HOT_LOADER__.register(Sidebar, 'Sidebar', 'src/lib/layout/Sidebar.js'); | ||
__REACT_HOT_LOADER__.register(_default, 'default', 'src/lib/layout/Sidebar.js'); | ||
}(); | ||
; | ||
exports.default = Sidebar; |
@@ -71,16 +71,2 @@ 'use strict'; | ||
}; | ||
var _default = CursorLine; | ||
exports.default = _default; | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
__REACT_HOT_LOADER__.register(CursorLine, 'CursorLine', 'src/lib/lines/CursorLine.js'); | ||
__REACT_HOT_LOADER__.register(_default, 'default', 'src/lib/lines/CursorLine.js'); | ||
}(); | ||
; | ||
exports.default = CursorLine; |
@@ -82,16 +82,2 @@ 'use strict'; | ||
}; | ||
var _default = HorizontalLines; | ||
exports.default = _default; | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
__REACT_HOT_LOADER__.register(HorizontalLines, 'HorizontalLines', 'src/lib/lines/HorizontalLines.js'); | ||
__REACT_HOT_LOADER__.register(_default, 'default', 'src/lib/lines/HorizontalLines.js'); | ||
}(); | ||
; | ||
exports.default = HorizontalLines; |
@@ -73,16 +73,2 @@ 'use strict'; | ||
TodayLine.defaultProps = {}; | ||
var _default = TodayLine; | ||
exports.default = _default; | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
__REACT_HOT_LOADER__.register(TodayLine, 'TodayLine', 'src/lib/lines/TodayLine.js'); | ||
__REACT_HOT_LOADER__.register(_default, 'default', 'src/lib/lines/TodayLine.js'); | ||
}(); | ||
; | ||
exports.default = TodayLine; |
@@ -108,16 +108,2 @@ 'use strict'; | ||
}; | ||
var _default = VerticalLines; | ||
exports.default = _default; | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
__REACT_HOT_LOADER__.register(VerticalLines, 'VerticalLines', 'src/lib/lines/VerticalLines.js'); | ||
__REACT_HOT_LOADER__.register(_default, 'default', 'src/lib/lines/VerticalLines.js'); | ||
}(); | ||
; | ||
exports.default = VerticalLines; |
@@ -12,13 +12,2 @@ 'use strict'; | ||
return new _jsdom.JSDOM('<!DOCTYPE html><body>' + domString + '></body>'); | ||
} | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
__REACT_HOT_LOADER__.register(buildDom, 'buildDom', 'src/lib/test-utility/index.js'); | ||
}(); | ||
; | ||
} |
@@ -1620,24 +1620,2 @@ 'use strict'; | ||
var _default = ReactCalendarTimeline; | ||
exports.default = _default; | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
__REACT_HOT_LOADER__.register(defaultKeys, 'defaultKeys', 'src/lib/Timeline.js'); | ||
__REACT_HOT_LOADER__.register(defaultTimeSteps, 'defaultTimeSteps', 'src/lib/Timeline.js'); | ||
__REACT_HOT_LOADER__.register(defaultHeaderLabelFormats, 'defaultHeaderLabelFormats', 'src/lib/Timeline.js'); | ||
__REACT_HOT_LOADER__.register(defaultSubHeaderLabelFormats, 'defaultSubHeaderLabelFormats', 'src/lib/Timeline.js'); | ||
__REACT_HOT_LOADER__.register(ReactCalendarTimeline, 'ReactCalendarTimeline', 'src/lib/Timeline.js'); | ||
__REACT_HOT_LOADER__.register(_default, 'default', 'src/lib/Timeline.js'); | ||
}(); | ||
; | ||
exports.default = ReactCalendarTimeline; |
@@ -356,39 +356,2 @@ 'use strict'; | ||
}; | ||
} | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
__REACT_HOT_LOADER__.register(coordinateToTimeRatio, 'coordinateToTimeRatio', 'src/lib/utility/calendar.js'); | ||
__REACT_HOT_LOADER__.register(calculateXPositionForTime, 'calculateXPositionForTime', 'src/lib/utility/calendar.js'); | ||
__REACT_HOT_LOADER__.register(iterateTimes, 'iterateTimes', 'src/lib/utility/calendar.js'); | ||
__REACT_HOT_LOADER__.register(minCellWidth, 'minCellWidth', 'src/lib/utility/calendar.js'); | ||
__REACT_HOT_LOADER__.register(getMinUnit, 'getMinUnit', 'src/lib/utility/calendar.js'); | ||
__REACT_HOT_LOADER__.register(getNextUnit, 'getNextUnit', 'src/lib/utility/calendar.js'); | ||
__REACT_HOT_LOADER__.register(calculateDimensions, 'calculateDimensions', 'src/lib/utility/calendar.js'); | ||
__REACT_HOT_LOADER__.register(getGroupOrders, 'getGroupOrders', 'src/lib/utility/calendar.js'); | ||
__REACT_HOT_LOADER__.register(getGroupedItems, 'getGroupedItems', 'src/lib/utility/calendar.js'); | ||
__REACT_HOT_LOADER__.register(getVisibleItems, 'getVisibleItems', 'src/lib/utility/calendar.js'); | ||
__REACT_HOT_LOADER__.register(EPSILON, 'EPSILON', 'src/lib/utility/calendar.js'); | ||
__REACT_HOT_LOADER__.register(collision, 'collision', 'src/lib/utility/calendar.js'); | ||
__REACT_HOT_LOADER__.register(stack, 'stack', 'src/lib/utility/calendar.js'); | ||
__REACT_HOT_LOADER__.register(nostack, 'nostack', 'src/lib/utility/calendar.js'); | ||
}(); | ||
; | ||
} |
@@ -35,17 +35,2 @@ 'use strict'; | ||
return { x: xPosition, y: yPosition }; | ||
} | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
__REACT_HOT_LOADER__.register(ELEMENT_NODE, 'ELEMENT_NODE', 'src/lib/utility/dom-helpers.js'); | ||
__REACT_HOT_LOADER__.register(hasSomeParentTheClass, 'hasSomeParentTheClass', 'src/lib/utility/dom-helpers.js'); | ||
__REACT_HOT_LOADER__.register(getParentPosition, 'getParentPosition', 'src/lib/utility/dom-helpers.js'); | ||
}(); | ||
; | ||
} |
@@ -46,21 +46,2 @@ 'use strict'; | ||
return obj; | ||
} | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
__REACT_HOT_LOADER__.register(_get, '_get', 'src/lib/utility/generic.js'); | ||
__REACT_HOT_LOADER__.register(_length, '_length', 'src/lib/utility/generic.js'); | ||
__REACT_HOT_LOADER__.register(arraysEqual, 'arraysEqual', 'src/lib/utility/generic.js'); | ||
__REACT_HOT_LOADER__.register(deepObjectCompare, 'deepObjectCompare', 'src/lib/utility/generic.js'); | ||
__REACT_HOT_LOADER__.register(keyBy, 'keyBy', 'src/lib/utility/generic.js'); | ||
}(); | ||
; | ||
} |
"use strict"; | ||
module.exports = {}; | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
}(); | ||
; | ||
module.exports = {}; |
@@ -34,18 +34,2 @@ 'use strict'; | ||
var _default = { addListener: addListener, removeListener: removeListener }; | ||
exports.default = _default; | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
__REACT_HOT_LOADER__.register(addListener, 'addListener', 'src/resize-detector/container.js'); | ||
__REACT_HOT_LOADER__.register(removeListener, 'removeListener', 'src/resize-detector/container.js'); | ||
__REACT_HOT_LOADER__.register(_default, 'default', 'src/resize-detector/container.js'); | ||
}(); | ||
; | ||
exports.default = { addListener: addListener, removeListener: removeListener }; |
@@ -20,18 +20,2 @@ 'use strict'; | ||
var _default = { addListener: addListener, removeListener: removeListener }; | ||
exports.default = _default; | ||
; | ||
var _temp = function () { | ||
if (typeof __REACT_HOT_LOADER__ === 'undefined') { | ||
return; | ||
} | ||
__REACT_HOT_LOADER__.register(addListener, 'addListener', 'src/resize-detector/window.js'); | ||
__REACT_HOT_LOADER__.register(removeListener, 'removeListener', 'src/resize-detector/window.js'); | ||
__REACT_HOT_LOADER__.register(_default, 'default', 'src/resize-detector/window.js'); | ||
}(); | ||
; | ||
exports.default = { addListener: addListener, removeListener: removeListener }; |
{ | ||
"name": "react-calendar-timeline", | ||
"version": "0.15.10", | ||
"version": "0.15.11", | ||
"description": "react calendar timeline", | ||
@@ -9,10 +9,10 @@ "main": "lib/index.js", | ||
"build": "npm run build:lib", | ||
"build:demo": "echo '!!! Building Demo' && BABEL_ENV=react node build.js production", | ||
"build:lib": "echo '!!! Building Library' && ./node_modules/.bin/babel src --out-dir lib && ./node_modules/.bin/node-sass src/lib/Timeline.scss lib/lib/Timeline.css && sed -i'.bak' 's/Timeline\\.scss/Timeline\\.css/g' lib/lib/Timeline.js && rm lib/lib/Timeline.js.bak", | ||
"jest": "node_modules/.bin/jest", | ||
"jest:update": "node_modules/.bin/jest -u", | ||
"build:demo": "echo '!!! Building Demo' && cross-env NODE_ENV=production webpack --progress", | ||
"build:lib": "echo '!!! Building Library' && cross-env NODE_ENV=production babel src --out-dir lib && node-sass src/lib/Timeline.scss lib/lib/Timeline.css && sed -i'.bak' 's/Timeline\\.scss/Timeline\\.css/g' lib/lib/Timeline.js && rm lib/lib/Timeline.js.bak", | ||
"jest": "jest", | ||
"jest:update": "jest -u", | ||
"lint": "eslint --ext .js --ext .jsx ./src", | ||
"lint:fix": "prettier-eslint --parser babylon --write \"src/**/*.js\"", | ||
"prepublish": "npm run build:lib", | ||
"start": "./node_modules/.bin/webpack-dev-server --hot --host 0.0.0.0 --display-modules", | ||
"start": "webpack-dev-server --hot --host 0.0.0.0 --display-modules", | ||
"test": "npm run build:lib && npm run jest && npm run lint" | ||
@@ -80,2 +80,3 @@ }, | ||
"babel-preset-react": "^6.5.0", | ||
"cross-env": "^5.1.4", | ||
"css-loader": "~0.26.0", | ||
@@ -82,0 +83,0 @@ "enzyme": "^3.3.0", |
@@ -492,3 +492,3 @@ # React Calendar Timeline | ||
.react-calendar-timeline .rct-items .rct-item.analysis { | ||
backgroundColor: #68efad; | ||
background-color: #68efad; | ||
} | ||
@@ -495,0 +495,0 @@ ``` |
@@ -467,3 +467,2 @@ import React, { Component } from 'react' | ||
handleDoubleClick = e => { | ||
e.preventDefault() | ||
e.stopPropagation() | ||
@@ -470,0 +469,0 @@ if (this.props.onItemDoubleClick) { |
361243
75
8382
44