dash-core-components 2.13.1 → 2.14.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/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-slider.js +1 -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.js +1 -1
- package/dash_core_components/dash_core_components.js.map +1 -1
- package/lib/components/Checklist.react.js +4 -5
- package/lib/components/Clipboard.react.js +14 -17
- package/lib/components/ConfirmDialog.react.js +3 -4
- package/lib/components/ConfirmDialogProvider.react.js +3 -4
- package/lib/components/DatePickerRange.react.js +4 -5
- package/lib/components/DatePickerSingle.react.js +4 -5
- package/lib/components/Download.react.js +3 -4
- package/lib/components/Dropdown.react.js +4 -5
- package/lib/components/Geolocation.react.js +6 -7
- package/lib/components/Graph.react.js +11 -14
- package/lib/components/Input.react.js +12 -13
- package/lib/components/Interval.react.js +7 -8
- package/lib/components/Link.react.js +3 -3
- package/lib/components/Loading.react.js +176 -85
- package/lib/components/Location.react.js +6 -7
- package/lib/components/LogoutButton.react.js +3 -4
- package/lib/components/Markdown.react.js +4 -5
- package/lib/components/RadioItems.react.js +4 -5
- package/lib/components/RangeSlider.react.js +4 -5
- package/lib/components/Slider.react.js +4 -5
- package/lib/components/Store.react.js +7 -10
- package/lib/components/Tab.react.js +1 -1
- package/lib/components/Tabs.react.js +8 -9
- package/lib/components/Textarea.react.js +4 -5
- package/lib/components/Upload.react.js +4 -5
- package/lib/fragments/DatePickerRange.react.js +8 -9
- package/lib/fragments/DatePickerSingle.react.js +8 -9
- package/lib/fragments/Dropdown.react.js +4 -4
- package/lib/fragments/Graph.react.js +13 -14
- package/lib/fragments/Markdown.react.js +7 -8
- package/lib/fragments/Math.react.js +4 -5
- package/lib/fragments/RangeSlider.react.js +4 -5
- package/lib/fragments/Slider.react.js +4 -5
- package/lib/fragments/Upload.react.js +6 -7
- package/package.json +12 -11
- package/dash_core_components/async-plotlyjs.js +0 -1
- package/dash_core_components/mathjax.js +0 -1
- package/dash_core_components/plotly.min.js +0 -8
|
@@ -7,18 +7,18 @@ exports.default = void 0;
|
|
|
7
7
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
9
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
10
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
10
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
11
11
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
12
12
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
13
|
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, _toPropertyKey(descriptor.key), descriptor); } }
|
|
14
14
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
15
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
15
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
16
16
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
17
17
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
18
18
|
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); }
|
|
19
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
19
20
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
20
21
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
21
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
22
22
|
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); }
|
|
23
23
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
24
24
|
// eslint-disable-line no-unused-vars
|
|
@@ -29,17 +29,17 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Objec
|
|
|
29
29
|
* The time delay is set with the property "interval" in milliseconds.
|
|
30
30
|
*/
|
|
31
31
|
var Interval = exports.default = /*#__PURE__*/function (_Component) {
|
|
32
|
-
_inherits(Interval, _Component);
|
|
33
32
|
function Interval(props) {
|
|
34
33
|
var _this;
|
|
35
34
|
_classCallCheck(this, Interval);
|
|
36
35
|
_this = _callSuper(this, Interval, [props]);
|
|
37
36
|
_this.intervalId = null;
|
|
38
|
-
_this.reportInterval = _this.reportInterval.bind(
|
|
39
|
-
_this.handleTimer = _this.handleTimer.bind(
|
|
37
|
+
_this.reportInterval = _this.reportInterval.bind(_this);
|
|
38
|
+
_this.handleTimer = _this.handleTimer.bind(_this);
|
|
40
39
|
return _this;
|
|
41
40
|
}
|
|
42
|
-
|
|
41
|
+
_inherits(Interval, _Component);
|
|
42
|
+
return _createClass(Interval, [{
|
|
43
43
|
key: "handleTimer",
|
|
44
44
|
value: function handleTimer(props) {
|
|
45
45
|
// Check if timer should stop or shouldn't even start
|
|
@@ -107,7 +107,6 @@ var Interval = exports.default = /*#__PURE__*/function (_Component) {
|
|
|
107
107
|
return null;
|
|
108
108
|
}
|
|
109
109
|
}]);
|
|
110
|
-
return Interval;
|
|
111
110
|
}(_react.Component);
|
|
112
111
|
Interval.propTypes = {
|
|
113
112
|
/**
|
|
@@ -6,10 +6,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.default = void 0;
|
|
7
7
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
8
8
|
var _react = _interopRequireWildcard(require("react"));
|
|
9
|
-
var _sanitizeUrl = require("@braintree/sanitize-url");
|
|
10
9
|
var _ramda = require("ramda");
|
|
11
10
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
12
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
11
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
12
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
13
|
/*
|
|
15
14
|
* event polyfill for IE
|
|
@@ -46,8 +45,9 @@ var Link = function Link(props) {
|
|
|
46
45
|
target = props.target,
|
|
47
46
|
refresh = props.refresh,
|
|
48
47
|
setProps = props.setProps;
|
|
48
|
+
var cleanUrl = window.dash_clientside.clean_url;
|
|
49
49
|
var sanitizedUrl = (0, _react.useMemo)(function () {
|
|
50
|
-
return href ? (
|
|
50
|
+
return href ? cleanUrl(href) : undefined;
|
|
51
51
|
}, [href]);
|
|
52
52
|
var updateLocation = function updateLocation(e) {
|
|
53
53
|
var hasModifiers = e.metaKey || e.shiftKey || e.altKey || e.ctrlKey;
|
|
@@ -14,93 +14,149 @@ var _DotSpinner = _interopRequireDefault(require("../fragments/Loading/spinners/
|
|
|
14
14
|
var _ramda = require("ramda");
|
|
15
15
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
16
16
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
17
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
18
|
-
function
|
|
19
|
-
function
|
|
20
|
-
function
|
|
21
|
-
function
|
|
22
|
-
function
|
|
23
|
-
function
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
30
|
-
function getSpinner(spinnerType) {
|
|
31
|
-
switch (spinnerType) {
|
|
32
|
-
case 'graph':
|
|
33
|
-
return _GraphSpinner.default;
|
|
34
|
-
case 'cube':
|
|
35
|
-
return _CubeSpinner.default;
|
|
36
|
-
case 'circle':
|
|
37
|
-
return _CircleSpinner.default;
|
|
38
|
-
case 'dot':
|
|
39
|
-
return _DotSpinner.default;
|
|
40
|
-
default:
|
|
41
|
-
return _DefaultSpinner.default;
|
|
42
|
-
}
|
|
43
|
-
}
|
|
44
|
-
var hiddenContainer = {
|
|
45
|
-
visibility: 'hidden',
|
|
46
|
-
position: 'relative'
|
|
17
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
18
|
+
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
19
|
+
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
20
|
+
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); }
|
|
21
|
+
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; }
|
|
22
|
+
function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
|
|
23
|
+
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
24
|
+
var spinnerComponentOptions = {
|
|
25
|
+
graph: _GraphSpinner.default,
|
|
26
|
+
cube: _CubeSpinner.default,
|
|
27
|
+
circle: _CircleSpinner.default,
|
|
28
|
+
dot: _DotSpinner.default
|
|
47
29
|
};
|
|
48
|
-
var
|
|
49
|
-
|
|
50
|
-
position: 'absolute',
|
|
51
|
-
top: '0',
|
|
52
|
-
height: '100%',
|
|
53
|
-
width: '100%',
|
|
54
|
-
display: 'flex',
|
|
55
|
-
justifyContent: 'center',
|
|
56
|
-
alignItems: 'center'
|
|
30
|
+
var getSpinner = function getSpinner(spinnerType) {
|
|
31
|
+
return spinnerComponentOptions[spinnerType] || _DefaultSpinner.default;
|
|
57
32
|
};
|
|
58
33
|
|
|
59
34
|
/**
|
|
60
35
|
* A Loading component that wraps any other component and displays a spinner until the wrapped component has rendered.
|
|
61
36
|
*/
|
|
62
|
-
var Loading =
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
37
|
+
var Loading = function Loading(_ref) {
|
|
38
|
+
var children = _ref.children,
|
|
39
|
+
loading_state = _ref.loading_state,
|
|
40
|
+
display = _ref.display,
|
|
41
|
+
color = _ref.color,
|
|
42
|
+
className = _ref.className,
|
|
43
|
+
style = _ref.style,
|
|
44
|
+
parent_className = _ref.parent_className,
|
|
45
|
+
parent_style = _ref.parent_style,
|
|
46
|
+
overlay_style = _ref.overlay_style,
|
|
47
|
+
fullscreen = _ref.fullscreen,
|
|
48
|
+
debug = _ref.debug,
|
|
49
|
+
show_initially = _ref.show_initially,
|
|
50
|
+
spinnerType = _ref.type,
|
|
51
|
+
delay_hide = _ref.delay_hide,
|
|
52
|
+
delay_show = _ref.delay_show,
|
|
53
|
+
target_components = _ref.target_components,
|
|
54
|
+
custom_spinner = _ref.custom_spinner;
|
|
55
|
+
var coveringSpinner = {
|
|
56
|
+
visibility: 'visible',
|
|
57
|
+
position: 'absolute',
|
|
58
|
+
top: '0',
|
|
59
|
+
height: '100%',
|
|
60
|
+
width: '100%',
|
|
61
|
+
display: 'flex',
|
|
62
|
+
justifyContent: 'center',
|
|
63
|
+
alignItems: 'center'
|
|
64
|
+
};
|
|
65
|
+
var hiddenContainer = (0, _ramda.mergeRight)({
|
|
66
|
+
visibility: 'hidden',
|
|
67
|
+
position: 'relative'
|
|
68
|
+
}, overlay_style);
|
|
69
|
+
|
|
70
|
+
/* Overrides default Loading behavior if target_components is set. By default,
|
|
71
|
+
* Loading fires when any recursive child enters loading state. This makes loading
|
|
72
|
+
* opt-in: Loading animation only enabled when one of target components enters loading state.
|
|
73
|
+
*/
|
|
74
|
+
var isTarget = function isTarget() {
|
|
75
|
+
if (!target_components) {
|
|
76
|
+
return true;
|
|
77
|
+
}
|
|
78
|
+
var isMatchingComponent = function isMatchingComponent() {
|
|
79
|
+
return Object.entries(target_components).some(function (_ref2) {
|
|
80
|
+
var _ref3 = _slicedToArray(_ref2, 2),
|
|
81
|
+
component_name = _ref3[0],
|
|
82
|
+
prop_names = _ref3[1];
|
|
83
|
+
// Convert prop_names to an array if it's not already
|
|
84
|
+
var prop_names_array = Array.isArray(prop_names) ? prop_names : [prop_names];
|
|
85
|
+
return loading_state.component_name === component_name && (prop_names_array.includes('*') || prop_names_array.some(function (prop_name) {
|
|
86
|
+
return loading_state.prop_name === prop_name;
|
|
87
|
+
}));
|
|
88
|
+
});
|
|
89
|
+
};
|
|
90
|
+
return isMatchingComponent;
|
|
91
|
+
};
|
|
92
|
+
var _useState = (0, _react.useState)(show_initially),
|
|
93
|
+
_useState2 = _slicedToArray(_useState, 2),
|
|
94
|
+
showSpinner = _useState2[0],
|
|
95
|
+
setShowSpinner = _useState2[1];
|
|
96
|
+
var dismissTimer = (0, _react.useRef)();
|
|
97
|
+
var showTimer = (0, _react.useRef)();
|
|
98
|
+
|
|
99
|
+
// delay_hide and delay_show is from dash-bootstrap-components dbc.Spinner
|
|
100
|
+
(0, _react.useEffect)(function () {
|
|
101
|
+
if (display === 'show' || display === 'hide') {
|
|
102
|
+
setShowSpinner(display === 'show');
|
|
103
|
+
return;
|
|
104
|
+
}
|
|
105
|
+
if (loading_state) {
|
|
106
|
+
if (loading_state.is_loading) {
|
|
107
|
+
// if component is currently loading and there's a dismiss timer active
|
|
108
|
+
// we need to clear it.
|
|
109
|
+
if (dismissTimer.current) {
|
|
110
|
+
dismissTimer.current = clearTimeout(dismissTimer.current);
|
|
111
|
+
}
|
|
112
|
+
// if component is currently loading but the spinner is not showing and
|
|
113
|
+
// there is no timer set to show, then set a timeout to show
|
|
114
|
+
if (!showSpinner && !showTimer.current) {
|
|
115
|
+
showTimer.current = setTimeout(function () {
|
|
116
|
+
setShowSpinner(isTarget());
|
|
117
|
+
showTimer.current = null;
|
|
118
|
+
}, delay_show);
|
|
119
|
+
}
|
|
120
|
+
} else {
|
|
121
|
+
// if component is not currently loading and there's a show timer
|
|
122
|
+
// active we need to clear it
|
|
123
|
+
if (showTimer.current) {
|
|
124
|
+
showTimer.current = clearTimeout(showTimer.current);
|
|
125
|
+
}
|
|
126
|
+
// if component is not currently loading and the spinner is showing and
|
|
127
|
+
// there's no timer set to dismiss it, then set a timeout to hide it
|
|
128
|
+
if (showSpinner && !dismissTimer.current) {
|
|
129
|
+
dismissTimer.current = setTimeout(function () {
|
|
130
|
+
setShowSpinner(false);
|
|
131
|
+
dismissTimer.current = null;
|
|
132
|
+
}, delay_hide);
|
|
133
|
+
}
|
|
134
|
+
}
|
|
96
135
|
}
|
|
97
|
-
}]);
|
|
98
|
-
|
|
99
|
-
|
|
136
|
+
}, [delay_hide, delay_show, loading_state, display]);
|
|
137
|
+
var Spinner = showSpinner && getSpinner(spinnerType);
|
|
138
|
+
return /*#__PURE__*/_react.default.createElement("div", {
|
|
139
|
+
className: parent_className,
|
|
140
|
+
style: showSpinner ? (0, _ramda.mergeRight)(hiddenContainer, parent_style) : parent_style
|
|
141
|
+
}, children, /*#__PURE__*/_react.default.createElement("div", {
|
|
142
|
+
style: showSpinner ? coveringSpinner : {}
|
|
143
|
+
}, showSpinner && (custom_spinner || /*#__PURE__*/_react.default.createElement(Spinner, {
|
|
144
|
+
className: className,
|
|
145
|
+
style: style,
|
|
146
|
+
status: loading_state,
|
|
147
|
+
color: color,
|
|
148
|
+
debug: debug,
|
|
149
|
+
fullscreen: fullscreen
|
|
150
|
+
}))));
|
|
151
|
+
};
|
|
100
152
|
Loading._dashprivate_isLoadingComponent = true;
|
|
101
153
|
Loading.defaultProps = {
|
|
102
154
|
type: 'default',
|
|
103
|
-
color: '#119DFF'
|
|
155
|
+
color: '#119DFF',
|
|
156
|
+
delay_show: 0,
|
|
157
|
+
delay_hide: 0,
|
|
158
|
+
show_initially: true,
|
|
159
|
+
display: 'auto'
|
|
104
160
|
};
|
|
105
161
|
Loading.propTypes = {
|
|
106
162
|
/**
|
|
@@ -114,21 +170,21 @@ Loading.propTypes = {
|
|
|
114
170
|
*/
|
|
115
171
|
children: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.node), _propTypes.default.node]),
|
|
116
172
|
/**
|
|
117
|
-
* Property that determines which spinner to show
|
|
173
|
+
* Property that determines which built-in spinner to show
|
|
118
174
|
* one of 'graph', 'cube', 'circle', 'dot', or 'default'.
|
|
119
175
|
*/
|
|
120
176
|
type: _propTypes.default.oneOf(['graph', 'cube', 'circle', 'dot', 'default']),
|
|
121
177
|
/**
|
|
122
|
-
* Boolean that makes the spinner display full-screen
|
|
178
|
+
* Boolean that makes the built-in spinner display full-screen
|
|
123
179
|
*/
|
|
124
180
|
fullscreen: _propTypes.default.bool,
|
|
125
181
|
/**
|
|
126
|
-
* If true, the spinner will display the component_name and prop_name
|
|
182
|
+
* If true, the built-in spinner will display the component_name and prop_name
|
|
127
183
|
* while loading
|
|
128
184
|
*/
|
|
129
185
|
debug: _propTypes.default.bool,
|
|
130
186
|
/**
|
|
131
|
-
* Additional CSS class for the spinner root DOM node
|
|
187
|
+
* Additional CSS class for the built-in spinner root DOM node
|
|
132
188
|
*/
|
|
133
189
|
className: _propTypes.default.string,
|
|
134
190
|
/**
|
|
@@ -136,7 +192,7 @@ Loading.propTypes = {
|
|
|
136
192
|
*/
|
|
137
193
|
parent_className: _propTypes.default.string,
|
|
138
194
|
/**
|
|
139
|
-
* Additional CSS styling for the spinner root DOM node
|
|
195
|
+
* Additional CSS styling for the built-in spinner root DOM node
|
|
140
196
|
*/
|
|
141
197
|
style: _propTypes.default.object,
|
|
142
198
|
/**
|
|
@@ -144,7 +200,12 @@ Loading.propTypes = {
|
|
|
144
200
|
*/
|
|
145
201
|
parent_style: _propTypes.default.object,
|
|
146
202
|
/**
|
|
147
|
-
*
|
|
203
|
+
* Additional CSS styling for the spinner overlay. This is applied to the
|
|
204
|
+
* dcc.Loading children while the spinner is active. The default is `{'visibility': 'hidden'}`
|
|
205
|
+
*/
|
|
206
|
+
overlay_style: _propTypes.default.object,
|
|
207
|
+
/**
|
|
208
|
+
* Primary color used for the built-in loading spinners
|
|
148
209
|
*/
|
|
149
210
|
color: _propTypes.default.string,
|
|
150
211
|
/**
|
|
@@ -163,5 +224,35 @@ Loading.propTypes = {
|
|
|
163
224
|
* Holds the name of the component that is loading
|
|
164
225
|
*/
|
|
165
226
|
component_name: _propTypes.default.string
|
|
166
|
-
})
|
|
167
|
-
|
|
227
|
+
}),
|
|
228
|
+
/**
|
|
229
|
+
* Setting display to "show" or "hide" will override the loading state coming from dash-renderer
|
|
230
|
+
*/
|
|
231
|
+
display: _propTypes.default.oneOf(['auto', 'show', 'hide']),
|
|
232
|
+
/**
|
|
233
|
+
* Add a time delay (in ms) to the spinner being removed to prevent flickering.
|
|
234
|
+
*/
|
|
235
|
+
delay_hide: _propTypes.default.number,
|
|
236
|
+
/**
|
|
237
|
+
* Add a time delay (in ms) to the spinner being shown after the loading_state
|
|
238
|
+
* is set to True.
|
|
239
|
+
*/
|
|
240
|
+
delay_show: _propTypes.default.number,
|
|
241
|
+
/**
|
|
242
|
+
* Whether the Spinner should show on app start-up before the loading state
|
|
243
|
+
* has been determined. Default True. Use when also setting `delay_show`.
|
|
244
|
+
*/
|
|
245
|
+
show_initially: _propTypes.default.bool,
|
|
246
|
+
/**
|
|
247
|
+
* Specify component and prop to trigger showing the loading spinner
|
|
248
|
+
* example: `{"output-container": "children", "grid": ["rowData", "columnDefs]}`
|
|
249
|
+
*
|
|
250
|
+
*/
|
|
251
|
+
target_components: _propTypes.default.objectOf(_propTypes.default.oneOfType([_propTypes.default.string, _propTypes.default.arrayOf(_propTypes.default.string)])),
|
|
252
|
+
/**
|
|
253
|
+
* Component to use rather than the built-in spinner specified in the `type` prop.
|
|
254
|
+
*
|
|
255
|
+
*/
|
|
256
|
+
custom_spinner: _propTypes.default.node
|
|
257
|
+
};
|
|
258
|
+
var _default = exports.default = Loading;
|
|
@@ -12,13 +12,13 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
12
12
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
13
13
|
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, _toPropertyKey(descriptor.key), descriptor); } }
|
|
14
14
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
15
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
15
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
16
16
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
17
17
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
18
18
|
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); }
|
|
19
|
+
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
19
20
|
function _isNativeReflectConstruct() { try { var t = !Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); } catch (t) {} return (_isNativeReflectConstruct = function _isNativeReflectConstruct() { return !!t; })(); }
|
|
20
21
|
function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
|
|
21
|
-
function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
|
|
22
22
|
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); }
|
|
23
23
|
function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
|
|
24
24
|
/**
|
|
@@ -26,16 +26,16 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Objec
|
|
|
26
26
|
* Use in conjunction with the `dash_core_components.Link` component to make apps with multiple pages.
|
|
27
27
|
*/
|
|
28
28
|
var Location = exports.default = /*#__PURE__*/function (_Component) {
|
|
29
|
-
_inherits(Location, _Component);
|
|
30
29
|
function Location(props) {
|
|
31
30
|
var _this;
|
|
32
31
|
_classCallCheck(this, Location);
|
|
33
32
|
_this = _callSuper(this, Location, [props]);
|
|
34
|
-
_this.updateLocation = _this.updateLocation.bind(
|
|
35
|
-
_this.onLocationChange = _this.onLocationChange.bind(
|
|
33
|
+
_this.updateLocation = _this.updateLocation.bind(_this);
|
|
34
|
+
_this.onLocationChange = _this.onLocationChange.bind(_this);
|
|
36
35
|
return _this;
|
|
37
36
|
}
|
|
38
|
-
|
|
37
|
+
_inherits(Location, _Component);
|
|
38
|
+
return _createClass(Location, [{
|
|
39
39
|
key: "updateLocation",
|
|
40
40
|
value: function updateLocation(props) {
|
|
41
41
|
var _this2 = this;
|
|
@@ -152,7 +152,6 @@ var Location = exports.default = /*#__PURE__*/function (_Component) {
|
|
|
152
152
|
return null;
|
|
153
153
|
}
|
|
154
154
|
}]);
|
|
155
|
-
return Location;
|
|
156
155
|
}(_react.Component);
|
|
157
156
|
Location.propTypes = {
|
|
158
157
|
/**
|
|
@@ -11,7 +11,7 @@ function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { de
|
|
|
11
11
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
12
12
|
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, _toPropertyKey(descriptor.key), descriptor); } }
|
|
13
13
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
14
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
14
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
15
15
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
16
16
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
17
17
|
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); }
|
|
@@ -44,12 +44,12 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Objec
|
|
|
44
44
|
* for more documentation and examples.
|
|
45
45
|
*/
|
|
46
46
|
var LogoutButton = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
47
|
-
_inherits(LogoutButton, _React$Component);
|
|
48
47
|
function LogoutButton() {
|
|
49
48
|
_classCallCheck(this, LogoutButton);
|
|
50
49
|
return _callSuper(this, LogoutButton, arguments);
|
|
51
50
|
}
|
|
52
|
-
|
|
51
|
+
_inherits(LogoutButton, _React$Component);
|
|
52
|
+
return _createClass(LogoutButton, [{
|
|
53
53
|
key: "render",
|
|
54
54
|
value: function render() {
|
|
55
55
|
var _this$props = this.props,
|
|
@@ -81,7 +81,6 @@ var LogoutButton = exports.default = /*#__PURE__*/function (_React$Component) {
|
|
|
81
81
|
}, label));
|
|
82
82
|
}
|
|
83
83
|
}]);
|
|
84
|
-
return LogoutButton;
|
|
85
84
|
}(_react.default.Component);
|
|
86
85
|
LogoutButton.defaultProps = {
|
|
87
86
|
label: 'Logout',
|
|
@@ -10,7 +10,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
10
10
|
var _markdown = _interopRequireDefault(require("../utils/LazyLoader/markdown"));
|
|
11
11
|
var _mathjax = _interopRequireDefault(require("../utils/LazyLoader/mathjax"));
|
|
12
12
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
13
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
13
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
14
14
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
15
15
|
function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
|
|
16
16
|
function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
|
|
@@ -21,7 +21,7 @@ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
|
21
21
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
22
22
|
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, _toPropertyKey(descriptor.key), descriptor); } }
|
|
23
23
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
24
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
24
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
25
25
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
26
26
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
27
27
|
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,7 +37,6 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Objec
|
|
|
37
37
|
* [react-markdown](https://rexxars.github.io/react-markdown/) under the hood.
|
|
38
38
|
*/
|
|
39
39
|
var DashMarkdown = exports.default = /*#__PURE__*/function (_Component) {
|
|
40
|
-
_inherits(DashMarkdown, _Component);
|
|
41
40
|
function DashMarkdown(props) {
|
|
42
41
|
var _this;
|
|
43
42
|
_classCallCheck(this, DashMarkdown);
|
|
@@ -47,7 +46,8 @@ var DashMarkdown = exports.default = /*#__PURE__*/function (_Component) {
|
|
|
47
46
|
}
|
|
48
47
|
return _this;
|
|
49
48
|
}
|
|
50
|
-
|
|
49
|
+
_inherits(DashMarkdown, _Component);
|
|
50
|
+
return _createClass(DashMarkdown, [{
|
|
51
51
|
key: "render",
|
|
52
52
|
value: function render() {
|
|
53
53
|
return /*#__PURE__*/_react.default.createElement(_react.Suspense, {
|
|
@@ -55,7 +55,6 @@ var DashMarkdown = exports.default = /*#__PURE__*/function (_Component) {
|
|
|
55
55
|
}, /*#__PURE__*/_react.default.createElement(RealDashMarkdown, this.props));
|
|
56
56
|
}
|
|
57
57
|
}]);
|
|
58
|
-
return DashMarkdown;
|
|
59
58
|
}(_react.Component);
|
|
60
59
|
DashMarkdown.propTypes = {
|
|
61
60
|
/**
|
|
@@ -9,7 +9,7 @@ var _react = _interopRequireWildcard(require("react"));
|
|
|
9
9
|
require("./css/react-select@1.0.0-rc.3.min.css");
|
|
10
10
|
var _optionTypes = require("../utils/optionTypes");
|
|
11
11
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
12
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
12
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
13
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
14
14
|
function _extends() { _extends = Object.assign ? Object.assign.bind() : 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); }
|
|
15
15
|
function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
|
|
@@ -18,7 +18,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
18
18
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
19
19
|
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, _toPropertyKey(descriptor.key), descriptor); } }
|
|
20
20
|
function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
|
|
21
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
21
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
22
22
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
23
23
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
24
24
|
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); }
|
|
@@ -34,12 +34,12 @@ function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Objec
|
|
|
34
34
|
* Each radio item is rendered as an input with a surrounding label.
|
|
35
35
|
*/
|
|
36
36
|
var RadioItems = exports.default = /*#__PURE__*/function (_Component) {
|
|
37
|
-
_inherits(RadioItems, _Component);
|
|
38
37
|
function RadioItems() {
|
|
39
38
|
_classCallCheck(this, RadioItems);
|
|
40
39
|
return _callSuper(this, RadioItems, arguments);
|
|
41
40
|
}
|
|
42
|
-
|
|
41
|
+
_inherits(RadioItems, _Component);
|
|
42
|
+
return _createClass(RadioItems, [{
|
|
43
43
|
key: "render",
|
|
44
44
|
value: function render() {
|
|
45
45
|
var _this$props = this.props,
|
|
@@ -89,7 +89,6 @@ var RadioItems = exports.default = /*#__PURE__*/function (_Component) {
|
|
|
89
89
|
}));
|
|
90
90
|
}
|
|
91
91
|
}]);
|
|
92
|
-
return RadioItems;
|
|
93
92
|
}(_react.Component);
|
|
94
93
|
RadioItems.propTypes = {
|
|
95
94
|
/**
|
|
@@ -9,11 +9,11 @@ var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
|
9
9
|
var _rangeSlider = _interopRequireDefault(require("../utils/LazyLoader/rangeSlider"));
|
|
10
10
|
function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
|
|
11
11
|
function _getRequireWildcardCache(e) { if ("function" != typeof WeakMap) return null; var r = new WeakMap(), t = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(e) { return e ? t : r; })(e); }
|
|
12
|
-
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u &&
|
|
12
|
+
function _interopRequireWildcard(e, r) { if (!r && e && e.__esModule) return e; if (null === e || "object" != typeof e && "function" != typeof e) return { default: e }; var t = _getRequireWildcardCache(r); if (t && t.has(e)) return t.get(e); var n = { __proto__: null }, a = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var u in e) if ("default" !== u && {}.hasOwnProperty.call(e, u)) { var i = a ? Object.getOwnPropertyDescriptor(e, u) : null; i && (i.get || i.set) ? Object.defineProperty(n, u, i) : n[u] = e[u]; } return n.default = e, t && t.set(e, n), n; }
|
|
13
13
|
function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
|
|
14
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, _toPropertyKey(descriptor.key), descriptor); } }
|
|
15
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; }
|
|
16
|
-
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i :
|
|
16
|
+
function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == typeof i ? i : i + ""; }
|
|
17
17
|
function _toPrimitive(t, r) { if ("object" != typeof t || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != typeof i) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
|
|
18
18
|
function _callSuper(t, o, e) { return o = _getPrototypeOf(o), _possibleConstructorReturn(t, _isNativeReflectConstruct() ? Reflect.construct(o, e || [], _getPrototypeOf(t).constructor) : o.apply(t, e)); }
|
|
19
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); }
|
|
@@ -29,12 +29,12 @@ var RealRangeSlider = /*#__PURE__*/(0, _react.lazy)(_rangeSlider.default);
|
|
|
29
29
|
* Used for specifying a range of numerical values.
|
|
30
30
|
*/
|
|
31
31
|
var RangeSlider = exports.default = /*#__PURE__*/function (_Component) {
|
|
32
|
-
_inherits(RangeSlider, _Component);
|
|
33
32
|
function RangeSlider() {
|
|
34
33
|
_classCallCheck(this, RangeSlider);
|
|
35
34
|
return _callSuper(this, RangeSlider, arguments);
|
|
36
35
|
}
|
|
37
|
-
|
|
36
|
+
_inherits(RangeSlider, _Component);
|
|
37
|
+
return _createClass(RangeSlider, [{
|
|
38
38
|
key: "render",
|
|
39
39
|
value: function render() {
|
|
40
40
|
return /*#__PURE__*/_react.default.createElement(_react.Suspense, {
|
|
@@ -42,7 +42,6 @@ var RangeSlider = exports.default = /*#__PURE__*/function (_Component) {
|
|
|
42
42
|
}, /*#__PURE__*/_react.default.createElement(RealRangeSlider, this.props));
|
|
43
43
|
}
|
|
44
44
|
}]);
|
|
45
|
-
return RangeSlider;
|
|
46
45
|
}(_react.Component);
|
|
47
46
|
RangeSlider.propTypes = {
|
|
48
47
|
/**
|