dash-core-components 3.0.2 → 3.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/dash_core_components/async-datepicker.js +1 -1
- package/dash_core_components/async-datepicker.js.map +1 -1
- package/dash_core_components/async-dropdown.js +1 -1
- package/dash_core_components/async-dropdown.js.map +1 -1
- package/dash_core_components/async-graph.js +1 -1
- package/dash_core_components/async-graph.js.map +1 -1
- package/dash_core_components/async-highlight.js +1 -1
- package/dash_core_components/async-highlight.js.map +1 -1
- package/dash_core_components/async-markdown.js +1 -1
- package/dash_core_components/async-markdown.js.map +1 -1
- package/dash_core_components/async-mathjax.js +1 -1
- package/dash_core_components/async-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-shared.js +1 -1
- package/dash_core_components/dash_core_components-shared.js.map +1 -1
- package/dash_core_components/dash_core_components.js +1 -1
- package/dash_core_components/dash_core_components.js.map +1 -1
- package/lib/components/Checklist.react.js +46 -63
- package/lib/components/Clipboard.react.js +172 -218
- package/lib/components/ConfirmDialog.react.js +34 -61
- package/lib/components/ConfirmDialogProvider.react.js +21 -44
- package/lib/components/DatePickerRange.react.js +7 -26
- package/lib/components/DatePickerSingle.react.js +7 -26
- package/lib/components/Download.react.js +22 -45
- package/lib/components/Dropdown.react.js +7 -26
- package/lib/components/Geolocation.react.js +64 -91
- package/lib/components/Graph.react.js +70 -97
- package/lib/components/Input.react.js +119 -162
- package/lib/components/Interval.react.js +55 -86
- package/lib/components/Link.react.js +6 -6
- package/lib/components/Loading.react.js +31 -35
- package/lib/components/Location.react.js +97 -126
- package/lib/components/Markdown.react.js +15 -35
- package/lib/components/RadioItems.react.js +45 -63
- package/lib/components/RangeSlider.react.js +7 -26
- package/lib/components/Slider.react.js +7 -26
- package/lib/components/Store.react.js +128 -176
- package/lib/components/Tab.react.js +1 -1
- package/lib/components/Tabs.react.js +97 -126
- package/lib/components/Textarea.react.js +6 -6
- package/lib/components/Tooltip.react.js +3 -3
- package/lib/components/Upload.react.js +7 -26
- package/lib/fragments/DatePickerRange.react.js +150 -181
- package/lib/fragments/DatePickerSingle.react.js +103 -134
- package/lib/fragments/Dropdown.react.js +11 -19
- package/lib/fragments/Graph.privateprops.js +3 -9
- package/lib/fragments/Graph.react.js +302 -370
- package/lib/fragments/Loading/spinners/CircleSpinner.js +2 -4
- package/lib/fragments/Loading/spinners/CubeSpinner.js +2 -4
- package/lib/fragments/Loading/spinners/DefaultSpinner.js +2 -4
- package/lib/fragments/Loading/spinners/DotSpinner.js +2 -4
- package/lib/fragments/Loading/spinners/GraphSpinner.js +2 -4
- package/lib/fragments/Markdown.react.js +119 -158
- package/lib/fragments/Math.react.js +23 -47
- package/lib/fragments/RangeSlider.react.js +110 -133
- package/lib/fragments/Slider.react.js +110 -133
- package/lib/fragments/Upload.react.js +82 -99
- package/lib/utils/DatePickerPersistence.js +2 -4
- package/lib/utils/LazyLoader/datePickerRange.js +2 -3
- package/lib/utils/LazyLoader/datePickerSingle.js +2 -3
- package/lib/utils/LazyLoader/dropdown.js +2 -3
- package/lib/utils/LazyLoader/graph.js +2 -3
- package/lib/utils/LazyLoader/hljs.js +2 -5
- package/lib/utils/LazyLoader/markdown.js +2 -3
- package/lib/utils/LazyLoader/mathjax.js +2 -5
- package/lib/utils/LazyLoader/plotly.js +7 -6
- package/lib/utils/LazyLoader/rangeSlider.js +2 -3
- package/lib/utils/LazyLoader/slider.js +2 -3
- package/lib/utils/LazyLoader/upload.js +2 -3
- package/lib/utils/LoadingElement.js +2 -2
- package/lib/utils/MarkdownHighlighter.js +5 -6
- package/lib/utils/ResizeDetector.js +8 -12
- package/lib/utils/computeSliderMarkers.js +29 -49
- package/lib/utils/computeSliderStyle.js +4 -3
- package/lib/utils/convertToMoment.js +5 -6
- package/lib/utils/formatSliderTooltip.js +6 -8
- package/lib/utils/optionTypes.js +8 -9
- package/package.json +7 -7
|
@@ -5,17 +5,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.transformSliderTooltip = exports.formatSliderTooltip = void 0;
|
|
7
7
|
var _ramda = require("ramda");
|
|
8
|
-
var formatSliderTooltip =
|
|
8
|
+
var formatSliderTooltip = (template, value) => {
|
|
9
9
|
return (0, _ramda.replace)('{value}', value, template);
|
|
10
10
|
};
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
}, function (s) {
|
|
15
|
-
return (0, _ramda.path)(s, window);
|
|
16
|
-
})(funcName);
|
|
11
|
+
exports.formatSliderTooltip = formatSliderTooltip;
|
|
12
|
+
var transformSliderTooltip = (funcName, value) => {
|
|
13
|
+
var func = (0, _ramda.pipe)((0, _ramda.split)('.'), s => (0, _ramda.concat)(['dccFunctions'], s), s => (0, _ramda.path)(s, window))(funcName);
|
|
17
14
|
if (!func) {
|
|
18
15
|
throw new Error("Invalid func for slider tooltip transform: ".concat(funcName));
|
|
19
16
|
}
|
|
20
17
|
return func(value);
|
|
21
|
-
};
|
|
18
|
+
};
|
|
19
|
+
exports.transformSliderTooltip = transformSliderTooltip;
|
package/lib/utils/optionTypes.js
CHANGED
|
@@ -13,9 +13,9 @@ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r)
|
|
|
13
13
|
function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
|
|
14
14
|
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; } }
|
|
15
15
|
function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
|
|
16
|
-
var sanitizeOptions =
|
|
16
|
+
var sanitizeOptions = options => {
|
|
17
17
|
if ((0, _ramda.type)(options) === 'Object') {
|
|
18
|
-
return Object.entries(options).map(
|
|
18
|
+
return Object.entries(options).map(_ref => {
|
|
19
19
|
var _ref2 = _slicedToArray(_ref, 2),
|
|
20
20
|
value = _ref2[0],
|
|
21
21
|
label = _ref2[1];
|
|
@@ -27,14 +27,13 @@ var sanitizeOptions = exports.sanitizeOptions = function sanitizeOptions(options
|
|
|
27
27
|
}
|
|
28
28
|
if ((0, _ramda.type)(options) === 'Array') {
|
|
29
29
|
if (options.length > 0 && ['String', 'Number', 'Bool'].includes((0, _ramda.type)(options[0]))) {
|
|
30
|
-
return options.map(
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
};
|
|
35
|
-
});
|
|
30
|
+
return options.map(option => ({
|
|
31
|
+
label: String(option),
|
|
32
|
+
value: option
|
|
33
|
+
}));
|
|
36
34
|
}
|
|
37
35
|
return options;
|
|
38
36
|
}
|
|
39
37
|
return options;
|
|
40
|
-
};
|
|
38
|
+
};
|
|
39
|
+
exports.sanitizeOptions = sanitizeOptions;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "dash-core-components",
|
|
3
|
-
"version": "3.0.
|
|
3
|
+
"version": "3.0.4",
|
|
4
4
|
"description": "Core component suite for Dash",
|
|
5
5
|
"repository": {
|
|
6
6
|
"type": "git",
|
|
@@ -63,12 +63,12 @@
|
|
|
63
63
|
"uniqid": "^5.4.0"
|
|
64
64
|
},
|
|
65
65
|
"devDependencies": {
|
|
66
|
-
"@babel/cli": "^7.
|
|
67
|
-
"@babel/core": "^7.
|
|
68
|
-
"@babel/eslint-parser": "^7.
|
|
66
|
+
"@babel/cli": "^7.26.4",
|
|
67
|
+
"@babel/core": "^7.26.10",
|
|
68
|
+
"@babel/eslint-parser": "^7.26.10",
|
|
69
69
|
"@babel/plugin-syntax-dynamic-import": "^7.8.3",
|
|
70
|
-
"@babel/preset-env": "^7.
|
|
71
|
-
"@babel/preset-react": "^7.
|
|
70
|
+
"@babel/preset-env": "^7.26.9",
|
|
71
|
+
"@babel/preset-react": "^7.26.3",
|
|
72
72
|
"@plotly/dash-component-plugins": "^1.2.3",
|
|
73
73
|
"@plotly/webpack-dash-dynamic-import": "^1.3.0",
|
|
74
74
|
"babel-loader": "^9.2.1",
|
|
@@ -86,7 +86,7 @@
|
|
|
86
86
|
"rimraf": "^5.0.5",
|
|
87
87
|
"style-loader": "^3.3.3",
|
|
88
88
|
"styled-jsx": "^3.4.4",
|
|
89
|
-
"webpack": "^5.
|
|
89
|
+
"webpack": "^5.98.0",
|
|
90
90
|
"webpack-cli": "^5.1.4"
|
|
91
91
|
},
|
|
92
92
|
"optionalDependencies": {
|