react-rangefilter
Advanced tools
Comparing version 1.0.39 to 1.0.40
(function (global, factory) { | ||
if (typeof define === "function" && define.amd) { | ||
define(["exports", "react", "react-dom", "lodash", "react-draggable"], factory); | ||
define(["exports", "react", "react-dom", "lodash", "react-draggable", "../toolbox/toolbox"], factory); | ||
} else if (typeof exports !== "undefined") { | ||
factory(exports, require("react"), require("react-dom"), require("lodash"), require("react-draggable")); | ||
factory(exports, require("react"), require("react-dom"), require("lodash"), require("react-draggable"), require("../toolbox/toolbox")); | ||
} else { | ||
@@ -10,6 +10,6 @@ var mod = { | ||
}; | ||
factory(mod.exports, global.react, global.reactDom, global.lodash, global.reactDraggable); | ||
factory(mod.exports, global.react, global.reactDom, global.lodash, global.reactDraggable, global.toolbox); | ||
global.index = mod.exports; | ||
} | ||
})(this, function (exports, _react, _reactDom, _lodash, _reactDraggable) { | ||
})(this, function (exports, _react, _reactDom, _lodash, _reactDraggable, _toolbox) { | ||
"use strict"; | ||
@@ -113,14 +113,2 @@ | ||
}, { | ||
key: "updateState", | ||
value: function updateState(Parcel) { | ||
var existingState = this.state !== null ? _lodash2.default.cloneDeep(this.state) : {}; | ||
var adjustedState = _lodash2.default.merge(existingState, _lodash2.default.cloneDeep(Parcel)); | ||
// | ||
try { | ||
this.setState(adjustedState); | ||
} catch (event) { | ||
console.warn("problem::react-rangefilter.js::updateState::", event); | ||
} | ||
} | ||
}, { | ||
key: "componentWillMount", | ||
@@ -175,3 +163,5 @@ value: function componentWillMount() { | ||
} else { | ||
scopeProxy.updateState({ | ||
//scopeProxy.updateState( | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
"Ready": false, | ||
"Scope": { | ||
@@ -477,3 +467,4 @@ "Style": { | ||
if (scopeProxy.state.Panelintervals.Rendered !== true) { | ||
scopeProxy.updateState({ | ||
//scopeProxy.updateState( | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
"Panelintervals": { | ||
@@ -694,3 +685,4 @@ "Rendered": true | ||
}); | ||
scopeProxy.updateState({ | ||
//scopeProxy.updateState( | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
"Panelintervals": { | ||
@@ -712,3 +704,4 @@ "Type": rangeType | ||
window.requestAnimationFrame(function () { | ||
scopeProxy.updateState({ | ||
//scopeProxy.updateState( | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
"Sortedrange": { | ||
@@ -953,3 +946,4 @@ "Collection": _lodash2.default.cloneDeep(scopeRange) | ||
}); | ||
scopeProxy.updateState({ | ||
//scopeProxy.updateState( | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
"Sortedrange": { | ||
@@ -959,2 +953,10 @@ "Collection": _lodash2.default.cloneDeep(scopeRange) | ||
}); | ||
if (this.state.Ready !== true) { | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
"Ready": true | ||
}); | ||
window.requestAnimationFrame(function () { | ||
scopeProxy.props.Ready(scopeRange); | ||
}); | ||
} | ||
} | ||
@@ -984,3 +986,4 @@ }, { | ||
} | ||
scopeProxy.updateState({ | ||
//scopeProxy.updateState( | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
"Leftbound": { | ||
@@ -1020,3 +1023,4 @@ "Profile": { | ||
// | ||
scopeProxy.updateState({ | ||
//scopeProxy.updateState( | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
"Leftbound": { | ||
@@ -1063,3 +1067,4 @@ "State": event | ||
// | ||
scopeProxy.updateState({ | ||
//scopeProxy.updateState( | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
"Leftbound": { | ||
@@ -1109,3 +1114,4 @@ "State": event | ||
} | ||
scopeProxy.updateState({ | ||
//scopeProxy.updateState( | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
"Rightbound": { | ||
@@ -1142,3 +1148,4 @@ "Profile": { | ||
// | ||
scopeProxy.updateState({ | ||
//scopeProxy.updateState( | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
"Leftbound": { | ||
@@ -1178,3 +1185,4 @@ "State": event | ||
// | ||
scopeProxy.updateState({ | ||
//scopeProxy.updateState( | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
"Rightbound": { | ||
@@ -1216,3 +1224,4 @@ "State": event | ||
} | ||
scopeProxy.updateState({ | ||
//scopeProxy.updateState( | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
"Scopefocus": { | ||
@@ -1260,3 +1269,4 @@ "State": event, | ||
// | ||
scopeProxy.updateState({ | ||
//scopeProxy.updateState( | ||
(0, _toolbox.updateState)(scopeProxy, { | ||
"Leftbound": { | ||
@@ -1263,0 +1273,0 @@ "Profile": { |
{ | ||
"name": "react-rangefilter", | ||
"version": "1.0.39", | ||
"version": "1.0.40", | ||
"description": "A React component to filter linearly displayed data bounded by a range.", | ||
@@ -5,0 +5,0 @@ "main": "react-rangefilter.js", |
@@ -6,2 +6,4 @@ import React, {Component, PropTypes} from "react"; | ||
// | ||
import {updateState} from "../toolbox/toolbox"; | ||
// | ||
export default class Rangefilter extends Component | ||
@@ -25,2 +27,3 @@ { | ||
} | ||
/* | ||
updateState(Parcel) | ||
@@ -44,2 +47,3 @@ { | ||
} | ||
*/ | ||
componentWillMount() | ||
@@ -136,4 +140,6 @@ { | ||
{ | ||
scopeProxy.updateState( | ||
//scopeProxy.updateState( | ||
updateState(scopeProxy, | ||
{ | ||
"Ready":false, | ||
"Scope": | ||
@@ -503,3 +509,4 @@ { | ||
{ | ||
scopeProxy.updateState( | ||
//scopeProxy.updateState( | ||
updateState(scopeProxy, | ||
{ | ||
@@ -860,3 +867,4 @@ "Panelintervals": | ||
}); | ||
scopeProxy.updateState( | ||
//scopeProxy.updateState( | ||
updateState(scopeProxy, | ||
{ | ||
@@ -890,3 +898,4 @@ "Panelintervals": | ||
{ | ||
scopeProxy.updateState( | ||
//scopeProxy.updateState( | ||
updateState(scopeProxy, | ||
{ | ||
@@ -1224,3 +1233,4 @@ "Sortedrange": | ||
}); | ||
scopeProxy.updateState( | ||
//scopeProxy.updateState( | ||
updateState(scopeProxy, | ||
{ | ||
@@ -1232,2 +1242,13 @@ "Sortedrange": | ||
}); | ||
if(this.state.Ready !== true) | ||
{ | ||
updateState(scopeProxy, | ||
{ | ||
"Ready":true | ||
}); | ||
window.requestAnimationFrame(function() | ||
{ | ||
scopeProxy.props.Ready(scopeRange); | ||
}); | ||
} | ||
} | ||
@@ -1269,3 +1290,4 @@ leftboundDragstart(event) | ||
} | ||
scopeProxy.updateState( | ||
//scopeProxy.updateState( | ||
updateState(scopeProxy, | ||
{ | ||
@@ -1326,3 +1348,4 @@ "Leftbound": | ||
// | ||
scopeProxy.updateState( | ||
//scopeProxy.updateState( | ||
updateState(scopeProxy, | ||
{ | ||
@@ -1391,3 +1414,4 @@ "Leftbound": | ||
// | ||
scopeProxy.updateState( | ||
//scopeProxy.updateState( | ||
updateState(scopeProxy, | ||
{ | ||
@@ -1461,3 +1485,4 @@ "Leftbound": | ||
} | ||
scopeProxy.updateState( | ||
//scopeProxy.updateState( | ||
updateState(scopeProxy, | ||
{ | ||
@@ -1511,3 +1536,4 @@ "Rightbound": | ||
// | ||
scopeProxy.updateState( | ||
//scopeProxy.updateState( | ||
updateState(scopeProxy, | ||
{ | ||
@@ -1565,3 +1591,4 @@ "Leftbound": | ||
// | ||
scopeProxy.updateState( | ||
//scopeProxy.updateState( | ||
updateState(scopeProxy, | ||
{ | ||
@@ -1624,3 +1651,4 @@ "Rightbound": | ||
} | ||
scopeProxy.updateState( | ||
//scopeProxy.updateState( | ||
updateState(scopeProxy, | ||
{ | ||
@@ -1687,3 +1715,4 @@ "Scopefocus": | ||
// | ||
scopeProxy.updateState( | ||
//scopeProxy.updateState( | ||
updateState(scopeProxy, | ||
{ | ||
@@ -1690,0 +1719,0 @@ "Leftbound": |
111751
3117