dash-core-components 1.15.0 → 2.1.0
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/README.md +8 -44
- 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 +2 -2
- 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 +2 -2
- package/dash_core_components/async-markdown.js.map +1 -1
- package/dash_core_components/async-plotlyjs.js +2 -2
- package/dash_core_components/async-slider.js +1 -2
- 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 +2 -2
- package/dash_core_components/dash_core_components-shared.js.map +1 -1
- package/dash_core_components/dash_core_components.js +3 -0
- package/dash_core_components/dash_core_components.js.map +1 -0
- package/dash_core_components/plotly.min.js +30 -26
- package/lib/components/Checklist.react.js +77 -35
- package/lib/components/Clipboard.react.js +354 -0
- package/lib/components/ConfirmDialog.react.js +16 -12
- package/lib/components/ConfirmDialogProvider.react.js +19 -15
- package/lib/components/DatePickerRange.react.js +111 -97
- package/lib/components/DatePickerSingle.react.js +95 -81
- package/lib/components/Download.react.js +138 -0
- package/lib/components/Dropdown.react.js +69 -47
- package/lib/components/Graph.react.js +36 -24
- package/lib/components/Input.react.js +98 -92
- package/lib/components/Interval.react.js +18 -12
- package/lib/components/Link.react.js +36 -30
- package/lib/components/Loading.react.js +21 -15
- package/lib/components/Location.react.js +15 -13
- package/lib/components/LogoutButton.react.js +18 -14
- package/lib/components/Markdown.react.js +23 -17
- package/lib/components/RadioItems.react.js +77 -35
- package/lib/components/RangeSlider.react.js +61 -55
- package/lib/components/Slider.react.js +52 -46
- package/lib/components/Store.react.js +16 -16
- package/lib/components/Tab.react.js +6 -2
- package/lib/components/Tabs.react.js +32 -23
- package/lib/components/Textarea.react.js +19 -13
- package/lib/components/Tooltip.react.js +152 -0
- package/lib/components/Upload.react.js +25 -19
- package/lib/components/css/Dropdown.css +1 -1
- package/lib/fragments/DatePickerRange.react.js +63 -51
- package/lib/fragments/DatePickerSingle.react.js +28 -17
- package/lib/fragments/Dropdown.react.js +33 -22
- package/lib/fragments/Graph.privateprops.js +1 -1
- package/lib/fragments/Graph.react.js +44 -28
- package/lib/fragments/Loading/spinners/CircleSpinner.js +16 -16
- package/lib/fragments/Loading/spinners/CubeSpinner.js +11 -11
- package/lib/fragments/Loading/spinners/DefaultSpinner.js +9 -9
- package/lib/fragments/Loading/spinners/DotSpinner.js +7 -7
- package/lib/fragments/Loading/spinners/GraphSpinner.js +18 -18
- package/lib/fragments/Markdown.react.js +35 -32
- package/lib/fragments/RangeSlider.react.js +57 -22
- package/lib/fragments/Slider.react.js +40 -21
- package/lib/fragments/Upload.react.js +19 -13
- package/lib/index.js +77 -53
- package/lib/third-party/highlight.js +12 -0
- package/lib/utils/LazyLoader/datePickerRange.js +9 -3
- package/lib/utils/LazyLoader/datePickerSingle.js +9 -3
- package/lib/utils/LazyLoader/dropdown.js +9 -3
- package/lib/utils/LazyLoader/graph.js +9 -3
- package/lib/utils/LazyLoader/hljs.js +9 -3
- package/lib/utils/LazyLoader/markdown.js +9 -3
- package/lib/utils/LazyLoader/plotly.js +9 -3
- package/lib/utils/LazyLoader/rangeSlider.js +9 -3
- package/lib/utils/LazyLoader/slider.js +9 -3
- package/lib/utils/LazyLoader/upload.js +9 -3
- package/lib/utils/computeSliderMarkers.js +230 -0
- package/lib/utils/convertToMoment.js +4 -0
- package/lib/utils/optionTypes.js +52 -0
- package/package.json +68 -75
- package/CHANGELOG.md +0 -1034
- package/dash_core_components/dash_core_components.min.js +0 -2
- package/dash_core_components/dash_core_components.min.js.map +0 -1
|
@@ -1,5 +1,7 @@
|
|
|
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
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -21,37 +23,47 @@ var _Link = _interopRequireDefault(require("./../components/Link.react"));
|
|
|
21
23
|
|
|
22
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
23
25
|
|
|
24
|
-
function
|
|
26
|
+
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); }
|
|
27
|
+
|
|
28
|
+
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; }
|
|
29
|
+
|
|
30
|
+
function _createForOfIteratorHelper(o, allowArrayLike) { var it = typeof Symbol !== "undefined" && o[Symbol.iterator] || o["@@iterator"]; if (!it) { if (Array.isArray(o) || (it = _unsupportedIterableToArray(o)) || allowArrayLike && o && typeof o.length === "number") { if (it) o = it; var i = 0; var F = function F() {}; return { s: F, n: function n() { if (i >= o.length) return { done: true }; return { done: false, value: o[i++] }; }, e: function e(_e) { throw _e; }, f: F }; } throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); } var normalCompletion = true, didErr = false, err; return { s: function s() { it = it.call(o); }, n: function n() { var step = it.next(); normalCompletion = step.done; return step; }, e: function e(_e2) { didErr = true; err = _e2; }, f: function f() { try { if (!normalCompletion && it.return != null) it.return(); } finally { if (didErr) throw err; } } }; }
|
|
31
|
+
|
|
32
|
+
function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
|
|
25
33
|
|
|
26
|
-
function
|
|
34
|
+
function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
|
|
27
35
|
|
|
28
36
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
29
37
|
|
|
30
38
|
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); } }
|
|
31
39
|
|
|
32
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
40
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
33
41
|
|
|
34
|
-
function
|
|
42
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
35
43
|
|
|
36
|
-
function
|
|
44
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
45
|
+
|
|
46
|
+
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); }; }
|
|
47
|
+
|
|
48
|
+
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); }
|
|
37
49
|
|
|
38
50
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
39
51
|
|
|
40
|
-
function
|
|
52
|
+
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; } }
|
|
41
53
|
|
|
42
|
-
function
|
|
54
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
43
55
|
|
|
44
|
-
var DashMarkdown =
|
|
45
|
-
/*#__PURE__*/
|
|
46
|
-
function (_Component) {
|
|
56
|
+
var DashMarkdown = /*#__PURE__*/function (_Component) {
|
|
47
57
|
_inherits(DashMarkdown, _Component);
|
|
48
58
|
|
|
59
|
+
var _super = _createSuper(DashMarkdown);
|
|
60
|
+
|
|
49
61
|
function DashMarkdown(props) {
|
|
50
62
|
var _this;
|
|
51
63
|
|
|
52
64
|
_classCallCheck(this, DashMarkdown);
|
|
53
65
|
|
|
54
|
-
_this =
|
|
66
|
+
_this = _super.call(this, props);
|
|
55
67
|
|
|
56
68
|
if (_MarkdownHighlighter.default.isReady !== true) {
|
|
57
69
|
_MarkdownHighlighter.default.isReady.then(function () {
|
|
@@ -82,7 +94,7 @@ function (_Component) {
|
|
|
82
94
|
|
|
83
95
|
if (_MarkdownHighlighter.default.hljs) {
|
|
84
96
|
for (var i = 0; i < nodes.length; i++) {
|
|
85
|
-
_MarkdownHighlighter.default.hljs.
|
|
97
|
+
_MarkdownHighlighter.default.hljs.highlightElement(nodes[i]);
|
|
86
98
|
}
|
|
87
99
|
} else {
|
|
88
100
|
_MarkdownHighlighter.default.loadhljs();
|
|
@@ -94,12 +106,12 @@ function (_Component) {
|
|
|
94
106
|
value: function dedent(text) {
|
|
95
107
|
var lines = text.split(/\r\n|\r|\n/);
|
|
96
108
|
var commonPrefix = null;
|
|
97
|
-
|
|
98
|
-
var
|
|
99
|
-
|
|
109
|
+
|
|
110
|
+
var _iterator = _createForOfIteratorHelper(lines),
|
|
111
|
+
_step;
|
|
100
112
|
|
|
101
113
|
try {
|
|
102
|
-
for (
|
|
114
|
+
for (_iterator.s(); !(_step = _iterator.n()).done;) {
|
|
103
115
|
var line = _step.value;
|
|
104
116
|
var preMatch = line && line.match(/^\s*(?=\S)/);
|
|
105
117
|
|
|
@@ -125,18 +137,9 @@ function (_Component) {
|
|
|
125
137
|
}
|
|
126
138
|
}
|
|
127
139
|
} catch (err) {
|
|
128
|
-
|
|
129
|
-
_iteratorError = err;
|
|
140
|
+
_iterator.e(err);
|
|
130
141
|
} finally {
|
|
131
|
-
|
|
132
|
-
if (!_iteratorNormalCompletion && _iterator.return != null) {
|
|
133
|
-
_iterator.return();
|
|
134
|
-
}
|
|
135
|
-
} finally {
|
|
136
|
-
if (_didIteratorError) {
|
|
137
|
-
throw _iteratorError;
|
|
138
|
-
}
|
|
139
|
-
}
|
|
142
|
+
_iterator.f();
|
|
140
143
|
}
|
|
141
144
|
|
|
142
145
|
var commonLen = commonPrefix ? commonPrefix.length : 0;
|
|
@@ -162,13 +165,13 @@ function (_Component) {
|
|
|
162
165
|
var displayText = dedent && textProp ? this.dedent(textProp) : textProp;
|
|
163
166
|
var componentTransforms = {
|
|
164
167
|
dccLink: function dccLink(props) {
|
|
165
|
-
return _react.default.createElement(_Link.default, props);
|
|
168
|
+
return /*#__PURE__*/_react.default.createElement(_Link.default, props);
|
|
166
169
|
},
|
|
167
170
|
dccMarkdown: function dccMarkdown(props) {
|
|
168
|
-
return _react.default.createElement(_reactMarkdown.default, (0, _ramda.mergeDeepRight)((0, _ramda.pick)(['dangerously_allow_html', 'dedent'], _this2.props), (0, _ramda.pick)(['children'], props)));
|
|
171
|
+
return /*#__PURE__*/_react.default.createElement(_reactMarkdown.default, (0, _ramda.mergeDeepRight)((0, _ramda.pick)(['dangerously_allow_html', 'dedent'], _this2.props), (0, _ramda.pick)(['children'], props)));
|
|
169
172
|
}
|
|
170
173
|
};
|
|
171
|
-
return _react.default.createElement("div", {
|
|
174
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
172
175
|
id: id,
|
|
173
176
|
ref: function ref(node) {
|
|
174
177
|
_this2.mdContainer = node;
|
|
@@ -176,12 +179,12 @@ function (_Component) {
|
|
|
176
179
|
style: style,
|
|
177
180
|
className: (highlight_config && highlight_config.theme || className) && "".concat(className ? className : '', " ").concat(highlight_config && highlight_config.theme && highlight_config.theme === 'dark' ? 'hljs-dark' : ''),
|
|
178
181
|
"data-dash-is-loading": loading_state && loading_state.is_loading || undefined
|
|
179
|
-
}, _react.default.createElement(_reactMarkdown.default, {
|
|
182
|
+
}, /*#__PURE__*/_react.default.createElement(_reactMarkdown.default, {
|
|
180
183
|
source: displayText,
|
|
181
184
|
escapeHtml: !dangerously_allow_html,
|
|
182
185
|
renderers: {
|
|
183
186
|
html: function html(props) {
|
|
184
|
-
return props.escapeHtml ? props.value : _react.default.createElement(_reactJsxParser.default, {
|
|
187
|
+
return props.escapeHtml ? props.value : /*#__PURE__*/_react.default.createElement(_reactJsxParser.default, {
|
|
185
188
|
jsx: props.value,
|
|
186
189
|
components: componentTransforms,
|
|
187
190
|
renderInWrapper: false
|
|
@@ -1,5 +1,7 @@
|
|
|
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
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -15,43 +17,55 @@ var _computeSliderStyle = _interopRequireDefault(require("../utils/computeSlider
|
|
|
15
17
|
|
|
16
18
|
require("rc-slider/assets/index.css");
|
|
17
19
|
|
|
20
|
+
var _computeSliderMarkers = require("../utils/computeSliderMarkers");
|
|
21
|
+
|
|
18
22
|
var _RangeSlider = require("../components/RangeSlider.react");
|
|
19
23
|
|
|
20
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
25
|
|
|
22
|
-
function
|
|
26
|
+
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); }
|
|
23
27
|
|
|
24
|
-
function
|
|
28
|
+
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; }
|
|
25
29
|
|
|
26
30
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
31
|
|
|
32
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
33
|
+
|
|
34
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
35
|
+
|
|
36
|
+
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
37
|
+
|
|
28
38
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
29
39
|
|
|
30
40
|
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); } }
|
|
31
41
|
|
|
32
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
42
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
33
43
|
|
|
34
|
-
function
|
|
44
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
35
45
|
|
|
36
|
-
function
|
|
46
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
37
47
|
|
|
38
|
-
function
|
|
48
|
+
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); }; }
|
|
39
49
|
|
|
40
|
-
function
|
|
50
|
+
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); }
|
|
41
51
|
|
|
42
|
-
function
|
|
52
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
43
53
|
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
function (
|
|
54
|
+
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; } }
|
|
55
|
+
|
|
56
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
57
|
+
|
|
58
|
+
var RangeSlider = /*#__PURE__*/function (_Component) {
|
|
47
59
|
_inherits(RangeSlider, _Component);
|
|
48
60
|
|
|
61
|
+
var _super = _createSuper(RangeSlider);
|
|
62
|
+
|
|
49
63
|
function RangeSlider(props) {
|
|
50
64
|
var _this;
|
|
51
65
|
|
|
52
66
|
_classCallCheck(this, RangeSlider);
|
|
53
67
|
|
|
54
|
-
_this =
|
|
68
|
+
_this = _super.call(this, props);
|
|
55
69
|
_this.DashSlider = props.tooltip ? (0, _rcSlider.createSliderWithTooltip)(_rcSlider.Range) : _rcSlider.Range;
|
|
56
70
|
_this._computeStyle = (0, _computeSliderStyle.default)();
|
|
57
71
|
_this.state = {
|
|
@@ -101,7 +115,11 @@ function (_Component) {
|
|
|
101
115
|
tooltip = _this$props.tooltip,
|
|
102
116
|
updatemode = _this$props.updatemode,
|
|
103
117
|
vertical = _this$props.vertical,
|
|
104
|
-
verticalHeight = _this$props.verticalHeight
|
|
118
|
+
verticalHeight = _this$props.verticalHeight,
|
|
119
|
+
min = _this$props.min,
|
|
120
|
+
max = _this$props.max,
|
|
121
|
+
marks = _this$props.marks,
|
|
122
|
+
step = _this$props.step;
|
|
105
123
|
var value = this.state.value;
|
|
106
124
|
var tipProps;
|
|
107
125
|
|
|
@@ -117,15 +135,12 @@ function (_Component) {
|
|
|
117
135
|
tipProps = tooltip;
|
|
118
136
|
}
|
|
119
137
|
|
|
120
|
-
|
|
121
|
-
return mark >= _this2.props.min && mark <= _this2.props.max;
|
|
122
|
-
}, this.props.marks);
|
|
123
|
-
return _react.default.createElement("div", {
|
|
138
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
124
139
|
id: id,
|
|
125
140
|
"data-dash-is-loading": loading_state && loading_state.is_loading || undefined,
|
|
126
141
|
className: className,
|
|
127
142
|
style: this._computeStyle(vertical, verticalHeight, tooltip)
|
|
128
|
-
}, _react.default.createElement(this.DashSlider, _extends({
|
|
143
|
+
}, /*#__PURE__*/_react.default.createElement(this.DashSlider, _extends({
|
|
129
144
|
onChange: function onChange(value) {
|
|
130
145
|
if (updatemode === 'drag') {
|
|
131
146
|
setProps({
|
|
@@ -148,11 +163,31 @@ function (_Component) {
|
|
|
148
163
|
value: value
|
|
149
164
|
});
|
|
150
165
|
}
|
|
166
|
+
}
|
|
167
|
+
/*
|
|
168
|
+
if/when rc-slider or rc-tooltip are updated to latest versions,
|
|
169
|
+
we will need to revisit this code as the getTooltipContainer function will need to be a prop instead of a nested property
|
|
170
|
+
*/
|
|
171
|
+
,
|
|
172
|
+
tipProps: _objectSpread(_objectSpread({}, tipProps), {}, {
|
|
173
|
+
getTooltipContainer: function getTooltipContainer(node) {
|
|
174
|
+
return node;
|
|
175
|
+
}
|
|
176
|
+
}),
|
|
177
|
+
style: {
|
|
178
|
+
position: 'relative'
|
|
151
179
|
},
|
|
152
|
-
|
|
153
|
-
|
|
154
|
-
|
|
155
|
-
|
|
180
|
+
value: value ? value : (0, _computeSliderMarkers.calcValue)(min, max, value),
|
|
181
|
+
marks: (0, _computeSliderMarkers.sanitizeMarks)({
|
|
182
|
+
min: min,
|
|
183
|
+
max: max,
|
|
184
|
+
marks: marks,
|
|
185
|
+
step: step
|
|
186
|
+
}),
|
|
187
|
+
max: (0, _computeSliderMarkers.setUndefined)(min, max, marks).max_mark,
|
|
188
|
+
min: (0, _computeSliderMarkers.setUndefined)(min, max, marks).min_mark,
|
|
189
|
+
step: step === null && !(0, _ramda.isNil)(marks) ? null : (0, _computeSliderMarkers.calcStep)(min, max, step)
|
|
190
|
+
}, (0, _ramda.omit)(['className', 'value', 'drag_value', 'setProps', 'marks', 'updatemode', 'verticalHeight', 'step'], this.props))));
|
|
156
191
|
}
|
|
157
192
|
}]);
|
|
158
193
|
|
|
@@ -1,5 +1,7 @@
|
|
|
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
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -15,17 +17,21 @@ var _computeSliderStyle = _interopRequireDefault(require("../utils/computeSlider
|
|
|
15
17
|
|
|
16
18
|
require("rc-slider/assets/index.css");
|
|
17
19
|
|
|
20
|
+
var _computeSliderMarkers = require("../utils/computeSliderMarkers");
|
|
21
|
+
|
|
18
22
|
var _Slider = require("../components/Slider.react");
|
|
19
23
|
|
|
20
24
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
21
25
|
|
|
22
|
-
function
|
|
26
|
+
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); }
|
|
23
27
|
|
|
24
|
-
function
|
|
28
|
+
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; }
|
|
25
29
|
|
|
26
30
|
function _extends() { _extends = Object.assign || function (target) { for (var i = 1; i < arguments.length; i++) { var source = arguments[i]; for (var key in source) { if (Object.prototype.hasOwnProperty.call(source, key)) { target[key] = source[key]; } } } return target; }; return _extends.apply(this, arguments); }
|
|
27
31
|
|
|
28
|
-
function
|
|
32
|
+
function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
|
|
33
|
+
|
|
34
|
+
function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
|
|
29
35
|
|
|
30
36
|
function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
|
|
31
37
|
|
|
@@ -33,32 +39,36 @@ function _classCallCheck(instance, Constructor) { if (!(instance instanceof Cons
|
|
|
33
39
|
|
|
34
40
|
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); } }
|
|
35
41
|
|
|
36
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
42
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
37
43
|
|
|
38
|
-
function
|
|
44
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
39
45
|
|
|
40
|
-
function
|
|
46
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
41
47
|
|
|
42
|
-
function
|
|
48
|
+
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); }; }
|
|
43
49
|
|
|
44
|
-
function
|
|
50
|
+
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); }
|
|
45
51
|
|
|
46
|
-
function
|
|
52
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
53
|
+
|
|
54
|
+
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; } }
|
|
55
|
+
|
|
56
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
47
57
|
|
|
48
58
|
/**
|
|
49
59
|
* A slider component with a single handle.
|
|
50
60
|
*/
|
|
51
|
-
var Slider =
|
|
52
|
-
/*#__PURE__*/
|
|
53
|
-
function (_Component) {
|
|
61
|
+
var Slider = /*#__PURE__*/function (_Component) {
|
|
54
62
|
_inherits(Slider, _Component);
|
|
55
63
|
|
|
64
|
+
var _super = _createSuper(Slider);
|
|
65
|
+
|
|
56
66
|
function Slider(props) {
|
|
57
67
|
var _this;
|
|
58
68
|
|
|
59
69
|
_classCallCheck(this, Slider);
|
|
60
70
|
|
|
61
|
-
_this =
|
|
71
|
+
_this = _super.call(this, props);
|
|
62
72
|
_this.DashSlider = props.tooltip ? (0, _rcSlider.createSliderWithTooltip)(_rcSlider.default) : _rcSlider.default;
|
|
63
73
|
_this._computeStyle = (0, _computeSliderStyle.default)();
|
|
64
74
|
_this.state = {
|
|
@@ -107,6 +117,10 @@ function (_Component) {
|
|
|
107
117
|
setProps = _this$props.setProps,
|
|
108
118
|
tooltip = _this$props.tooltip,
|
|
109
119
|
updatemode = _this$props.updatemode,
|
|
120
|
+
min = _this$props.min,
|
|
121
|
+
max = _this$props.max,
|
|
122
|
+
marks = _this$props.marks,
|
|
123
|
+
step = _this$props.step,
|
|
110
124
|
vertical = _this$props.vertical,
|
|
111
125
|
verticalHeight = _this$props.verticalHeight;
|
|
112
126
|
var value = this.state.value;
|
|
@@ -124,15 +138,12 @@ function (_Component) {
|
|
|
124
138
|
tipProps = tooltip;
|
|
125
139
|
}
|
|
126
140
|
|
|
127
|
-
|
|
128
|
-
return mark >= _this2.props.min && mark <= _this2.props.max;
|
|
129
|
-
}, this.props.marks) : this.props.marks;
|
|
130
|
-
return _react.default.createElement("div", {
|
|
141
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
131
142
|
id: id,
|
|
132
143
|
"data-dash-is-loading": loading_state && loading_state.is_loading || undefined,
|
|
133
144
|
className: className,
|
|
134
145
|
style: this._computeStyle(vertical, verticalHeight, tooltip)
|
|
135
|
-
}, _react.default.createElement(this.DashSlider, _extends({
|
|
146
|
+
}, /*#__PURE__*/_react.default.createElement(this.DashSlider, _extends({
|
|
136
147
|
onChange: function onChange(value) {
|
|
137
148
|
if (updatemode === 'drag') {
|
|
138
149
|
setProps({
|
|
@@ -161,7 +172,7 @@ function (_Component) {
|
|
|
161
172
|
we will need to revisit this code as the getTooltipContainer function will need to be a prop instead of a nested property
|
|
162
173
|
*/
|
|
163
174
|
,
|
|
164
|
-
tipProps: _objectSpread({}, tipProps, {
|
|
175
|
+
tipProps: _objectSpread(_objectSpread({}, tipProps), {}, {
|
|
165
176
|
getTooltipContainer: function getTooltipContainer(node) {
|
|
166
177
|
return node;
|
|
167
178
|
}
|
|
@@ -170,8 +181,16 @@ function (_Component) {
|
|
|
170
181
|
position: 'relative'
|
|
171
182
|
},
|
|
172
183
|
value: value,
|
|
173
|
-
marks:
|
|
174
|
-
|
|
184
|
+
marks: (0, _computeSliderMarkers.sanitizeMarks)({
|
|
185
|
+
min: min,
|
|
186
|
+
max: max,
|
|
187
|
+
marks: marks,
|
|
188
|
+
step: step
|
|
189
|
+
}),
|
|
190
|
+
max: (0, _computeSliderMarkers.setUndefined)(min, max, marks).max_mark,
|
|
191
|
+
min: (0, _computeSliderMarkers.setUndefined)(min, max, marks).min_mark,
|
|
192
|
+
step: step === null && !(0, _ramda.isNil)(marks) ? null : (0, _computeSliderMarkers.calcStep)(min, max, step)
|
|
193
|
+
}, (0, _ramda.omit)(['className', 'setProps', 'updatemode', 'value', 'drag_value', 'marks', 'verticalHeight', 'step'], this.props))));
|
|
175
194
|
}
|
|
176
195
|
}]);
|
|
177
196
|
|
|
@@ -1,5 +1,7 @@
|
|
|
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
|
+
|
|
3
5
|
Object.defineProperty(exports, "__esModule", {
|
|
4
6
|
value: true
|
|
5
7
|
});
|
|
@@ -13,37 +15,41 @@ var _Upload = require("../components/Upload.react");
|
|
|
13
15
|
|
|
14
16
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
17
|
|
|
16
|
-
function
|
|
18
|
+
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); }
|
|
17
19
|
|
|
18
|
-
function
|
|
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; }
|
|
19
21
|
|
|
20
22
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
21
23
|
|
|
22
24
|
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); } }
|
|
23
25
|
|
|
24
|
-
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); return Constructor; }
|
|
26
|
+
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
25
27
|
|
|
26
|
-
function
|
|
28
|
+
function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } Object.defineProperty(subClass, "prototype", { value: Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }), writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
|
|
27
29
|
|
|
28
|
-
function
|
|
30
|
+
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf || function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
31
|
+
|
|
32
|
+
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); }
|
|
29
35
|
|
|
30
36
|
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
31
37
|
|
|
32
|
-
function
|
|
38
|
+
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; } }
|
|
33
39
|
|
|
34
|
-
function
|
|
40
|
+
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
35
41
|
|
|
36
|
-
var Upload =
|
|
37
|
-
/*#__PURE__*/
|
|
38
|
-
function (_Component) {
|
|
42
|
+
var Upload = /*#__PURE__*/function (_Component) {
|
|
39
43
|
_inherits(Upload, _Component);
|
|
40
44
|
|
|
45
|
+
var _super = _createSuper(Upload);
|
|
46
|
+
|
|
41
47
|
function Upload() {
|
|
42
48
|
var _this;
|
|
43
49
|
|
|
44
50
|
_classCallCheck(this, Upload);
|
|
45
51
|
|
|
46
|
-
_this =
|
|
52
|
+
_this = _super.call(this);
|
|
47
53
|
_this.onDrop = _this.onDrop.bind(_assertThisInitialized(_this));
|
|
48
54
|
return _this;
|
|
49
55
|
}
|
|
@@ -110,10 +116,10 @@ function (_Component) {
|
|
|
110
116
|
style_reject = _this$props2.style_reject,
|
|
111
117
|
style_disabled = _this$props2.style_disabled,
|
|
112
118
|
loading_state = _this$props2.loading_state;
|
|
113
|
-
return _react.default.createElement("div", {
|
|
119
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
114
120
|
id: id,
|
|
115
121
|
"data-dash-is-loading": loading_state && loading_state.is_loading || undefined
|
|
116
|
-
}, _react.default.createElement(_reactDropzone.default, {
|
|
122
|
+
}, /*#__PURE__*/_react.default.createElement(_reactDropzone.default, {
|
|
117
123
|
onDrop: this.onDrop,
|
|
118
124
|
accept: accept,
|
|
119
125
|
disabled: disabled,
|