dash-core-components 2.6.2 → 2.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dash_core_components/async-datepicker.js +1 -1
- package/dash_core_components/async-datepicker.js.map +1 -1
- package/dash_core_components/async-dropdown.js +1 -1
- package/dash_core_components/async-dropdown.js.map +1 -1
- package/dash_core_components/async-graph.js +1 -1
- package/dash_core_components/async-graph.js.map +1 -1
- package/dash_core_components/async-highlight.js +1 -1
- package/dash_core_components/async-highlight.js.map +1 -1
- package/dash_core_components/async-markdown.js +1 -1
- package/dash_core_components/async-markdown.js.map +1 -1
- package/dash_core_components/async-mathjax.js +1 -1
- package/dash_core_components/async-plotlyjs.js +1 -1
- package/dash_core_components/async-slider.js +2 -1
- package/dash_core_components/async-slider.js.map +1 -1
- package/dash_core_components/async-upload.js +1 -1
- package/dash_core_components/async-upload.js.map +1 -1
- package/dash_core_components/dash_core_components-shared.js +1 -1
- package/dash_core_components/dash_core_components-shared.js.map +1 -1
- package/dash_core_components/dash_core_components.js +1 -1
- package/dash_core_components/dash_core_components.js.map +1 -1
- package/dash_core_components/plotly.min.js +7 -7
- package/lib/components/Checklist.react.js +14 -61
- package/lib/components/Clipboard.react.js +12 -82
- package/lib/components/ConfirmDialog.react.js +5 -35
- package/lib/components/ConfirmDialogProvider.react.js +7 -45
- package/lib/components/DatePickerRange.react.js +3 -64
- package/lib/components/DatePickerSingle.react.js +3 -58
- package/lib/components/Download.react.js +8 -41
- package/lib/components/Dropdown.react.js +3 -51
- package/lib/components/Graph.react.js +17 -121
- package/lib/components/Input.react.js +9 -80
- package/lib/components/Interval.react.js +10 -42
- package/lib/components/Link.react.js +18 -62
- package/lib/components/Loading.react.js +12 -59
- package/lib/components/Location.react.js +18 -56
- package/lib/components/LogoutButton.react.js +8 -42
- package/lib/components/Markdown.react.js +3 -52
- package/lib/components/RadioItems.react.js +15 -63
- package/lib/components/RangeSlider.react.js +3 -53
- package/lib/components/Slider.react.js +3 -50
- package/lib/components/Store.react.js +17 -69
- package/lib/components/Tab.react.js +1 -23
- package/lib/components/Tabs.react.js +26 -92
- package/lib/components/Textarea.react.js +9 -70
- package/lib/components/Tooltip.react.js +4 -25
- package/lib/components/Upload.react.js +3 -50
- package/lib/fragments/DatePickerRange.react.js +36 -83
- package/lib/fragments/DatePickerSingle.react.js +27 -67
- package/lib/fragments/Dropdown.react.js +50 -86
- package/lib/fragments/Graph.privateprops.js +0 -3
- package/lib/fragments/Graph.react.js +51 -153
- package/lib/fragments/Loading/spinners/CircleSpinner.js +5 -14
- package/lib/fragments/Loading/spinners/CubeSpinner.js +5 -16
- package/lib/fragments/Loading/spinners/DefaultSpinner.js +5 -14
- package/lib/fragments/Loading/spinners/DotSpinner.js +5 -14
- package/lib/fragments/Loading/spinners/GraphSpinner.js +4 -13
- package/lib/fragments/Markdown.react.js +13 -60
- package/lib/fragments/Math.react.js +2 -28
- package/lib/fragments/RangeSlider.react.js +20 -60
- package/lib/fragments/Slider.react.js +20 -60
- package/lib/fragments/Upload.react.js +23 -52
- package/lib/index.js +0 -28
- package/lib/third-party/highlight.js +0 -40
- package/lib/utils/DatePickerPersistence.js +0 -5
- package/lib/utils/LazyLoader/datePickerRange.js +1 -5
- package/lib/utils/LazyLoader/datePickerSingle.js +1 -5
- package/lib/utils/LazyLoader/dropdown.js +1 -5
- package/lib/utils/LazyLoader/graph.js +1 -5
- package/lib/utils/LazyLoader/hljs.js +1 -5
- package/lib/utils/LazyLoader/markdown.js +1 -5
- package/lib/utils/LazyLoader/mathjax.js +1 -5
- package/lib/utils/LazyLoader/plotly.js +1 -5
- package/lib/utils/LazyLoader/rangeSlider.js +1 -5
- package/lib/utils/LazyLoader/slider.js +1 -5
- package/lib/utils/LazyLoader/upload.js +1 -5
- package/lib/utils/MarkdownHighlighter.js +0 -6
- package/lib/utils/computeSliderMarkers.js +17 -68
- package/lib/utils/computeSliderStyle.js +0 -6
- package/lib/utils/convertToMoment.js +0 -8
- package/lib/utils/mathjax.js +0 -1
- package/lib/utils/optionTypes.js +3 -18
- package/package.json +17 -17
- package/lib/components/css/react-virtualized-select@3.1.0.css +0 -22
|
@@ -1,61 +1,38 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.propTypes = exports.defaultProps = exports.default = void 0;
|
|
9
|
-
|
|
10
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
9
|
var _rangeSlider = _interopRequireDefault(require("../utils/LazyLoader/rangeSlider"));
|
|
15
|
-
|
|
16
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
11
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
|
-
|
|
20
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
-
|
|
12
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
22
13
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
23
|
-
|
|
24
14
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
25
|
-
|
|
26
15
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
27
|
-
|
|
28
16
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
29
|
-
|
|
30
17
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
|
-
|
|
32
18
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
33
|
-
|
|
34
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
35
|
-
|
|
19
|
+
function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
36
20
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
37
|
-
|
|
38
21
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
39
|
-
|
|
40
22
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
41
|
-
|
|
42
23
|
var RealRangeSlider = /*#__PURE__*/(0, _react.lazy)(_rangeSlider.default);
|
|
24
|
+
|
|
43
25
|
/**
|
|
44
26
|
* A double slider with two handles.
|
|
45
27
|
* Used for specifying a range of numerical values.
|
|
46
28
|
*/
|
|
47
|
-
|
|
48
29
|
var RangeSlider = /*#__PURE__*/function (_Component) {
|
|
49
30
|
_inherits(RangeSlider, _Component);
|
|
50
|
-
|
|
51
31
|
var _super = _createSuper(RangeSlider);
|
|
52
|
-
|
|
53
32
|
function RangeSlider() {
|
|
54
33
|
_classCallCheck(this, RangeSlider);
|
|
55
|
-
|
|
56
34
|
return _super.apply(this, arguments);
|
|
57
35
|
}
|
|
58
|
-
|
|
59
36
|
_createClass(RangeSlider, [{
|
|
60
37
|
key: "render",
|
|
61
38
|
value: function render() {
|
|
@@ -64,27 +41,22 @@ var RangeSlider = /*#__PURE__*/function (_Component) {
|
|
|
64
41
|
}, /*#__PURE__*/_react.default.createElement(RealRangeSlider, this.props));
|
|
65
42
|
}
|
|
66
43
|
}]);
|
|
67
|
-
|
|
68
44
|
return RangeSlider;
|
|
69
45
|
}(_react.Component);
|
|
70
|
-
|
|
71
46
|
exports.default = RangeSlider;
|
|
72
47
|
RangeSlider.propTypes = {
|
|
73
48
|
/**
|
|
74
49
|
* Minimum allowed value of the slider
|
|
75
50
|
*/
|
|
76
51
|
min: _propTypes.default.number,
|
|
77
|
-
|
|
78
52
|
/**
|
|
79
53
|
* Maximum allowed value of the slider
|
|
80
54
|
*/
|
|
81
55
|
max: _propTypes.default.number,
|
|
82
|
-
|
|
83
56
|
/**
|
|
84
57
|
* Value by which increments or decrements are made
|
|
85
58
|
*/
|
|
86
59
|
step: _propTypes.default.number,
|
|
87
|
-
|
|
88
60
|
/**
|
|
89
61
|
* Marks on the slider.
|
|
90
62
|
* The key determines the position (a number),
|
|
@@ -97,22 +69,18 @@ RangeSlider.propTypes = {
|
|
|
97
69
|
label: _propTypes.default.string,
|
|
98
70
|
style: _propTypes.default.object
|
|
99
71
|
})])),
|
|
100
|
-
|
|
101
72
|
/**
|
|
102
73
|
* The value of the input
|
|
103
74
|
*/
|
|
104
75
|
value: _propTypes.default.arrayOf(_propTypes.default.number),
|
|
105
|
-
|
|
106
76
|
/**
|
|
107
77
|
* The value of the input during a drag
|
|
108
78
|
*/
|
|
109
79
|
drag_value: _propTypes.default.arrayOf(_propTypes.default.number),
|
|
110
|
-
|
|
111
80
|
/**
|
|
112
81
|
* allowCross could be set as true to allow those handles to cross.
|
|
113
82
|
*/
|
|
114
83
|
allowCross: _propTypes.default.bool,
|
|
115
|
-
|
|
116
84
|
/**
|
|
117
85
|
* pushable could be set as true to allow pushing of
|
|
118
86
|
* surrounding handles when moving an handle.
|
|
@@ -120,31 +88,26 @@ RangeSlider.propTypes = {
|
|
|
120
88
|
* minimum ensured distance between handles.
|
|
121
89
|
*/
|
|
122
90
|
pushable: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.number]),
|
|
123
|
-
|
|
124
91
|
/**
|
|
125
92
|
* If true, the handles can't be moved.
|
|
126
93
|
*/
|
|
127
94
|
disabled: _propTypes.default.bool,
|
|
128
|
-
|
|
129
95
|
/**
|
|
130
96
|
* Determine how many ranges to render, and multiple handles
|
|
131
97
|
* will be rendered (number + 1).
|
|
132
98
|
*/
|
|
133
99
|
count: _propTypes.default.number,
|
|
134
|
-
|
|
135
100
|
/**
|
|
136
101
|
* When the step value is greater than 1,
|
|
137
102
|
* you can set the dots to true if you want to
|
|
138
103
|
* render the slider with dots.
|
|
139
104
|
*/
|
|
140
105
|
dots: _propTypes.default.bool,
|
|
141
|
-
|
|
142
106
|
/**
|
|
143
107
|
* If the value is true, it means a continuous
|
|
144
108
|
* value is included. Otherwise, it is an independent value.
|
|
145
109
|
*/
|
|
146
110
|
included: _propTypes.default.bool,
|
|
147
|
-
|
|
148
111
|
/**
|
|
149
112
|
* Configuration for tooltips describing the current slider values
|
|
150
113
|
*/
|
|
@@ -154,7 +117,6 @@ RangeSlider.propTypes = {
|
|
|
154
117
|
* (as opposed to the default, visible on hover)
|
|
155
118
|
*/
|
|
156
119
|
always_visible: _propTypes.default.bool,
|
|
157
|
-
|
|
158
120
|
/**
|
|
159
121
|
* Determines the placement of tooltips
|
|
160
122
|
* See https://github.com/react-component/tooltip#api
|
|
@@ -163,7 +125,6 @@ RangeSlider.propTypes = {
|
|
|
163
125
|
*/
|
|
164
126
|
placement: _propTypes.default.oneOf(['left', 'right', 'top', 'bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight'])
|
|
165
127
|
}),
|
|
166
|
-
|
|
167
128
|
/**
|
|
168
129
|
* Determines when the component should update its `value`
|
|
169
130
|
* property. If `mouseup` (the default) then the slider
|
|
@@ -174,34 +135,28 @@ RangeSlider.propTypes = {
|
|
|
174
135
|
* property could be used instead.
|
|
175
136
|
*/
|
|
176
137
|
updatemode: _propTypes.default.oneOf(['mouseup', 'drag']),
|
|
177
|
-
|
|
178
138
|
/**
|
|
179
139
|
* If true, the slider will be vertical
|
|
180
140
|
*/
|
|
181
141
|
vertical: _propTypes.default.bool,
|
|
182
|
-
|
|
183
142
|
/**
|
|
184
143
|
* The height, in px, of the slider if it is vertical.
|
|
185
144
|
*/
|
|
186
145
|
verticalHeight: _propTypes.default.number,
|
|
187
|
-
|
|
188
146
|
/**
|
|
189
147
|
* Additional CSS class for the root DOM node
|
|
190
148
|
*/
|
|
191
149
|
className: _propTypes.default.string,
|
|
192
|
-
|
|
193
150
|
/**
|
|
194
151
|
* The ID of this component, used to identify dash components
|
|
195
152
|
* in callbacks. The ID needs to be unique across all of the
|
|
196
153
|
* components in an app.
|
|
197
154
|
*/
|
|
198
155
|
id: _propTypes.default.string,
|
|
199
|
-
|
|
200
156
|
/**
|
|
201
157
|
* Dash-assigned callback that gets fired when the value or drag_value changes.
|
|
202
158
|
*/
|
|
203
159
|
setProps: _propTypes.default.func,
|
|
204
|
-
|
|
205
160
|
/**
|
|
206
161
|
* Object that holds the loading state object coming from dash-renderer
|
|
207
162
|
*/
|
|
@@ -210,18 +165,15 @@ RangeSlider.propTypes = {
|
|
|
210
165
|
* Determines if the component is loading or not
|
|
211
166
|
*/
|
|
212
167
|
is_loading: _propTypes.default.bool,
|
|
213
|
-
|
|
214
168
|
/**
|
|
215
169
|
* Holds which property is loading
|
|
216
170
|
*/
|
|
217
171
|
prop_name: _propTypes.default.string,
|
|
218
|
-
|
|
219
172
|
/**
|
|
220
173
|
* Holds the name of the component that is loading
|
|
221
174
|
*/
|
|
222
175
|
component_name: _propTypes.default.string
|
|
223
176
|
}),
|
|
224
|
-
|
|
225
177
|
/**
|
|
226
178
|
* Used to allow user interactions in this component to be persisted when
|
|
227
179
|
* the component - or the page - is refreshed. If `persisted` is truthy and
|
|
@@ -231,14 +183,12 @@ RangeSlider.propTypes = {
|
|
|
231
183
|
* Used in conjunction with `persistence_type`.
|
|
232
184
|
*/
|
|
233
185
|
persistence: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.string, _propTypes.default.number]),
|
|
234
|
-
|
|
235
186
|
/**
|
|
236
187
|
* Properties whose user interactions will persist after refreshing the
|
|
237
188
|
* component or the page. Since only `value` is allowed this prop can
|
|
238
189
|
* normally be ignored.
|
|
239
190
|
*/
|
|
240
191
|
persisted_props: _propTypes.default.arrayOf(_propTypes.default.oneOf(['value'])),
|
|
241
|
-
|
|
242
192
|
/**
|
|
243
193
|
* Where persisted user changes will be stored:
|
|
244
194
|
* memory: only kept in memory, reset on page refresh.
|
|
@@ -1,60 +1,37 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
|
|
3
|
-
function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
|
|
4
|
-
|
|
5
3
|
Object.defineProperty(exports, "__esModule", {
|
|
6
4
|
value: true
|
|
7
5
|
});
|
|
8
6
|
exports.propTypes = exports.defaultProps = exports.default = void 0;
|
|
9
|
-
|
|
10
7
|
var _react = _interopRequireWildcard(require("react"));
|
|
11
|
-
|
|
12
8
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
-
|
|
14
9
|
var _slider = _interopRequireDefault(require("../utils/LazyLoader/slider"));
|
|
15
|
-
|
|
16
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
17
|
-
|
|
18
11
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
19
|
-
|
|
20
|
-
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || _typeof(obj) !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
21
|
-
|
|
12
|
+
function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { default: obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj.default = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
|
|
22
13
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
23
|
-
|
|
24
14
|
function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
|
|
25
|
-
|
|
26
15
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
27
|
-
|
|
28
16
|
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
29
|
-
|
|
30
17
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
|
-
|
|
32
18
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
33
|
-
|
|
34
|
-
function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
35
|
-
|
|
19
|
+
function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
|
|
36
20
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
37
|
-
|
|
38
21
|
function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
|
|
39
|
-
|
|
40
22
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
41
|
-
|
|
42
23
|
var RealSlider = /*#__PURE__*/(0, _react.lazy)(_slider.default);
|
|
24
|
+
|
|
43
25
|
/**
|
|
44
26
|
* A slider component with a single handle.
|
|
45
27
|
*/
|
|
46
|
-
|
|
47
28
|
var Slider = /*#__PURE__*/function (_Component) {
|
|
48
29
|
_inherits(Slider, _Component);
|
|
49
|
-
|
|
50
30
|
var _super = _createSuper(Slider);
|
|
51
|
-
|
|
52
31
|
function Slider() {
|
|
53
32
|
_classCallCheck(this, Slider);
|
|
54
|
-
|
|
55
33
|
return _super.apply(this, arguments);
|
|
56
34
|
}
|
|
57
|
-
|
|
58
35
|
_createClass(Slider, [{
|
|
59
36
|
key: "render",
|
|
60
37
|
value: function render() {
|
|
@@ -63,27 +40,22 @@ var Slider = /*#__PURE__*/function (_Component) {
|
|
|
63
40
|
}, /*#__PURE__*/_react.default.createElement(RealSlider, this.props));
|
|
64
41
|
}
|
|
65
42
|
}]);
|
|
66
|
-
|
|
67
43
|
return Slider;
|
|
68
44
|
}(_react.Component);
|
|
69
|
-
|
|
70
45
|
exports.default = Slider;
|
|
71
46
|
Slider.propTypes = {
|
|
72
47
|
/**
|
|
73
48
|
* Minimum allowed value of the slider
|
|
74
49
|
*/
|
|
75
50
|
min: _propTypes.default.number,
|
|
76
|
-
|
|
77
51
|
/**
|
|
78
52
|
* Maximum allowed value of the slider
|
|
79
53
|
*/
|
|
80
54
|
max: _propTypes.default.number,
|
|
81
|
-
|
|
82
55
|
/**
|
|
83
56
|
* Value by which increments or decrements are made
|
|
84
57
|
*/
|
|
85
58
|
step: _propTypes.default.number,
|
|
86
|
-
|
|
87
59
|
/**
|
|
88
60
|
* Marks on the slider.
|
|
89
61
|
* The key determines the position (a number),
|
|
@@ -96,35 +68,29 @@ Slider.propTypes = {
|
|
|
96
68
|
label: _propTypes.default.string,
|
|
97
69
|
style: _propTypes.default.object
|
|
98
70
|
})])),
|
|
99
|
-
|
|
100
71
|
/**
|
|
101
72
|
* The value of the input
|
|
102
73
|
*/
|
|
103
74
|
value: _propTypes.default.number,
|
|
104
|
-
|
|
105
75
|
/**
|
|
106
76
|
* The value of the input during a drag
|
|
107
77
|
*/
|
|
108
78
|
drag_value: _propTypes.default.number,
|
|
109
|
-
|
|
110
79
|
/**
|
|
111
80
|
* If true, the handles can't be moved.
|
|
112
81
|
*/
|
|
113
82
|
disabled: _propTypes.default.bool,
|
|
114
|
-
|
|
115
83
|
/**
|
|
116
84
|
* When the step value is greater than 1,
|
|
117
85
|
* you can set the dots to true if you want to
|
|
118
86
|
* render the slider with dots.
|
|
119
87
|
*/
|
|
120
88
|
dots: _propTypes.default.bool,
|
|
121
|
-
|
|
122
89
|
/**
|
|
123
90
|
* If the value is true, it means a continuous
|
|
124
91
|
* value is included. Otherwise, it is an independent value.
|
|
125
92
|
*/
|
|
126
93
|
included: _propTypes.default.bool,
|
|
127
|
-
|
|
128
94
|
/**
|
|
129
95
|
* Configuration for tooltips describing the current slider value
|
|
130
96
|
*/
|
|
@@ -134,7 +100,6 @@ Slider.propTypes = {
|
|
|
134
100
|
* (as opposed to the default, visible on hover)
|
|
135
101
|
*/
|
|
136
102
|
always_visible: _propTypes.default.bool,
|
|
137
|
-
|
|
138
103
|
/**
|
|
139
104
|
* Determines the placement of tooltips
|
|
140
105
|
* See https://github.com/react-component/tooltip#api
|
|
@@ -143,7 +108,6 @@ Slider.propTypes = {
|
|
|
143
108
|
*/
|
|
144
109
|
placement: _propTypes.default.oneOf(['left', 'right', 'top', 'bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight'])
|
|
145
110
|
}),
|
|
146
|
-
|
|
147
111
|
/**
|
|
148
112
|
* Determines when the component should update its `value`
|
|
149
113
|
* property. If `mouseup` (the default) then the slider
|
|
@@ -155,34 +119,28 @@ Slider.propTypes = {
|
|
|
155
119
|
* for the continuously updating value.
|
|
156
120
|
*/
|
|
157
121
|
updatemode: _propTypes.default.oneOf(['mouseup', 'drag']),
|
|
158
|
-
|
|
159
122
|
/**
|
|
160
123
|
* If true, the slider will be vertical
|
|
161
124
|
*/
|
|
162
125
|
vertical: _propTypes.default.bool,
|
|
163
|
-
|
|
164
126
|
/**
|
|
165
127
|
* The height, in px, of the slider if it is vertical.
|
|
166
128
|
*/
|
|
167
129
|
verticalHeight: _propTypes.default.number,
|
|
168
|
-
|
|
169
130
|
/**
|
|
170
131
|
* Additional CSS class for the root DOM node
|
|
171
132
|
*/
|
|
172
133
|
className: _propTypes.default.string,
|
|
173
|
-
|
|
174
134
|
/**
|
|
175
135
|
* The ID of this component, used to identify dash components
|
|
176
136
|
* in callbacks. The ID needs to be unique across all of the
|
|
177
137
|
* components in an app.
|
|
178
138
|
*/
|
|
179
139
|
id: _propTypes.default.string,
|
|
180
|
-
|
|
181
140
|
/**
|
|
182
141
|
* Dash-assigned callback that gets fired when the value or drag_value changes.
|
|
183
142
|
*/
|
|
184
143
|
setProps: _propTypes.default.func,
|
|
185
|
-
|
|
186
144
|
/**
|
|
187
145
|
* Object that holds the loading state object coming from dash-renderer
|
|
188
146
|
*/
|
|
@@ -191,18 +149,15 @@ Slider.propTypes = {
|
|
|
191
149
|
* Determines if the component is loading or not
|
|
192
150
|
*/
|
|
193
151
|
is_loading: _propTypes.default.bool,
|
|
194
|
-
|
|
195
152
|
/**
|
|
196
153
|
* Holds which property is loading
|
|
197
154
|
*/
|
|
198
155
|
prop_name: _propTypes.default.string,
|
|
199
|
-
|
|
200
156
|
/**
|
|
201
157
|
* Holds the name of the component that is loading
|
|
202
158
|
*/
|
|
203
159
|
component_name: _propTypes.default.string
|
|
204
160
|
}),
|
|
205
|
-
|
|
206
161
|
/**
|
|
207
162
|
* Used to allow user interactions in this component to be persisted when
|
|
208
163
|
* the component - or the page - is refreshed. If `persisted` is truthy and
|
|
@@ -212,14 +167,12 @@ Slider.propTypes = {
|
|
|
212
167
|
* Used in conjunction with `persistence_type`.
|
|
213
168
|
*/
|
|
214
169
|
persistence: _propTypes.default.oneOfType([_propTypes.default.bool, _propTypes.default.string, _propTypes.default.number]),
|
|
215
|
-
|
|
216
170
|
/**
|
|
217
171
|
* Properties whose user interactions will persist after refreshing the
|
|
218
172
|
* component or the page. Since only `value` is allowed this prop can
|
|
219
173
|
* normally be ignored.
|
|
220
174
|
*/
|
|
221
175
|
persisted_props: _propTypes.default.arrayOf(_propTypes.default.oneOf(['value'])),
|
|
222
|
-
|
|
223
176
|
/**
|
|
224
177
|
* Where persisted user changes will be stored:
|
|
225
178
|
* memory: only kept in memory, reset on page refresh.
|