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.
Files changed (80) hide show
  1. package/dash_core_components/async-datepicker.js +1 -1
  2. package/dash_core_components/async-datepicker.js.map +1 -1
  3. package/dash_core_components/async-dropdown.js +1 -1
  4. package/dash_core_components/async-dropdown.js.map +1 -1
  5. package/dash_core_components/async-graph.js +1 -1
  6. package/dash_core_components/async-graph.js.map +1 -1
  7. package/dash_core_components/async-highlight.js +1 -1
  8. package/dash_core_components/async-highlight.js.map +1 -1
  9. package/dash_core_components/async-markdown.js +1 -1
  10. package/dash_core_components/async-markdown.js.map +1 -1
  11. package/dash_core_components/async-mathjax.js +1 -1
  12. package/dash_core_components/async-slider.js +1 -1
  13. package/dash_core_components/async-slider.js.map +1 -1
  14. package/dash_core_components/async-upload.js +1 -1
  15. package/dash_core_components/async-upload.js.map +1 -1
  16. package/dash_core_components/dash_core_components-shared.js +1 -1
  17. package/dash_core_components/dash_core_components-shared.js.map +1 -1
  18. package/dash_core_components/dash_core_components.js +1 -1
  19. package/dash_core_components/dash_core_components.js.map +1 -1
  20. package/lib/components/Checklist.react.js +46 -63
  21. package/lib/components/Clipboard.react.js +172 -218
  22. package/lib/components/ConfirmDialog.react.js +34 -61
  23. package/lib/components/ConfirmDialogProvider.react.js +21 -44
  24. package/lib/components/DatePickerRange.react.js +7 -26
  25. package/lib/components/DatePickerSingle.react.js +7 -26
  26. package/lib/components/Download.react.js +22 -45
  27. package/lib/components/Dropdown.react.js +7 -26
  28. package/lib/components/Geolocation.react.js +64 -91
  29. package/lib/components/Graph.react.js +70 -97
  30. package/lib/components/Input.react.js +119 -162
  31. package/lib/components/Interval.react.js +55 -86
  32. package/lib/components/Link.react.js +6 -6
  33. package/lib/components/Loading.react.js +31 -35
  34. package/lib/components/Location.react.js +97 -126
  35. package/lib/components/Markdown.react.js +15 -35
  36. package/lib/components/RadioItems.react.js +45 -63
  37. package/lib/components/RangeSlider.react.js +7 -26
  38. package/lib/components/Slider.react.js +7 -26
  39. package/lib/components/Store.react.js +128 -176
  40. package/lib/components/Tab.react.js +1 -1
  41. package/lib/components/Tabs.react.js +97 -126
  42. package/lib/components/Textarea.react.js +6 -6
  43. package/lib/components/Tooltip.react.js +3 -3
  44. package/lib/components/Upload.react.js +7 -26
  45. package/lib/fragments/DatePickerRange.react.js +150 -181
  46. package/lib/fragments/DatePickerSingle.react.js +103 -134
  47. package/lib/fragments/Dropdown.react.js +11 -19
  48. package/lib/fragments/Graph.privateprops.js +3 -9
  49. package/lib/fragments/Graph.react.js +302 -370
  50. package/lib/fragments/Loading/spinners/CircleSpinner.js +2 -4
  51. package/lib/fragments/Loading/spinners/CubeSpinner.js +2 -4
  52. package/lib/fragments/Loading/spinners/DefaultSpinner.js +2 -4
  53. package/lib/fragments/Loading/spinners/DotSpinner.js +2 -4
  54. package/lib/fragments/Loading/spinners/GraphSpinner.js +2 -4
  55. package/lib/fragments/Markdown.react.js +119 -158
  56. package/lib/fragments/Math.react.js +23 -47
  57. package/lib/fragments/RangeSlider.react.js +110 -133
  58. package/lib/fragments/Slider.react.js +110 -133
  59. package/lib/fragments/Upload.react.js +82 -99
  60. package/lib/utils/DatePickerPersistence.js +2 -4
  61. package/lib/utils/LazyLoader/datePickerRange.js +2 -3
  62. package/lib/utils/LazyLoader/datePickerSingle.js +2 -3
  63. package/lib/utils/LazyLoader/dropdown.js +2 -3
  64. package/lib/utils/LazyLoader/graph.js +2 -3
  65. package/lib/utils/LazyLoader/hljs.js +2 -5
  66. package/lib/utils/LazyLoader/markdown.js +2 -3
  67. package/lib/utils/LazyLoader/mathjax.js +2 -5
  68. package/lib/utils/LazyLoader/plotly.js +7 -6
  69. package/lib/utils/LazyLoader/rangeSlider.js +2 -3
  70. package/lib/utils/LazyLoader/slider.js +2 -3
  71. package/lib/utils/LazyLoader/upload.js +2 -3
  72. package/lib/utils/LoadingElement.js +2 -2
  73. package/lib/utils/MarkdownHighlighter.js +5 -6
  74. package/lib/utils/ResizeDetector.js +8 -12
  75. package/lib/utils/computeSliderMarkers.js +29 -49
  76. package/lib/utils/computeSliderStyle.js +4 -3
  77. package/lib/utils/convertToMoment.js +5 -6
  78. package/lib/utils/formatSliderTooltip.js +6 -8
  79. package/lib/utils/optionTypes.js +8 -9
  80. 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 = exports.formatSliderTooltip = function formatSliderTooltip(template, value) {
8
+ var formatSliderTooltip = (template, value) => {
9
9
  return (0, _ramda.replace)('{value}', value, template);
10
10
  };
11
- var transformSliderTooltip = exports.transformSliderTooltip = function transformSliderTooltip(funcName, value) {
12
- var func = (0, _ramda.pipe)((0, _ramda.split)('.'), function (s) {
13
- return (0, _ramda.concat)(['dccFunctions'], s);
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;
@@ -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 = exports.sanitizeOptions = function sanitizeOptions(options) {
16
+ var sanitizeOptions = options => {
17
17
  if ((0, _ramda.type)(options) === 'Object') {
18
- return Object.entries(options).map(function (_ref) {
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(function (option) {
31
- return {
32
- label: String(option),
33
- value: option
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.2",
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.25.7",
67
- "@babel/core": "^7.25.8",
68
- "@babel/eslint-parser": "^7.25.8",
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.25.8",
71
- "@babel/preset-react": "^7.25.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.95.0",
89
+ "webpack": "^5.98.0",
90
90
  "webpack-cli": "^5.1.4"
91
91
  },
92
92
  "optionalDependencies": {