dash-core-components 2.6.2 → 2.7.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (83) 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-plotlyjs.js +1 -1
  13. package/dash_core_components/async-slider.js +2 -1
  14. package/dash_core_components/async-slider.js.map +1 -1
  15. package/dash_core_components/async-upload.js +1 -1
  16. package/dash_core_components/async-upload.js.map +1 -1
  17. package/dash_core_components/dash_core_components-shared.js +1 -1
  18. package/dash_core_components/dash_core_components-shared.js.map +1 -1
  19. package/dash_core_components/dash_core_components.js +1 -1
  20. package/dash_core_components/dash_core_components.js.map +1 -1
  21. package/dash_core_components/plotly.min.js +7 -7
  22. package/lib/components/Checklist.react.js +14 -61
  23. package/lib/components/Clipboard.react.js +12 -82
  24. package/lib/components/ConfirmDialog.react.js +5 -35
  25. package/lib/components/ConfirmDialogProvider.react.js +7 -45
  26. package/lib/components/DatePickerRange.react.js +3 -64
  27. package/lib/components/DatePickerSingle.react.js +3 -58
  28. package/lib/components/Download.react.js +8 -41
  29. package/lib/components/Dropdown.react.js +3 -51
  30. package/lib/components/Graph.react.js +17 -121
  31. package/lib/components/Input.react.js +9 -80
  32. package/lib/components/Interval.react.js +10 -42
  33. package/lib/components/Link.react.js +18 -62
  34. package/lib/components/Loading.react.js +12 -59
  35. package/lib/components/Location.react.js +18 -56
  36. package/lib/components/LogoutButton.react.js +8 -42
  37. package/lib/components/Markdown.react.js +3 -52
  38. package/lib/components/RadioItems.react.js +15 -63
  39. package/lib/components/RangeSlider.react.js +3 -53
  40. package/lib/components/Slider.react.js +3 -50
  41. package/lib/components/Store.react.js +17 -69
  42. package/lib/components/Tab.react.js +1 -23
  43. package/lib/components/Tabs.react.js +26 -92
  44. package/lib/components/Textarea.react.js +9 -70
  45. package/lib/components/Tooltip.react.js +4 -25
  46. package/lib/components/Upload.react.js +3 -50
  47. package/lib/fragments/DatePickerRange.react.js +36 -83
  48. package/lib/fragments/DatePickerSingle.react.js +27 -67
  49. package/lib/fragments/Dropdown.react.js +50 -86
  50. package/lib/fragments/Graph.privateprops.js +0 -3
  51. package/lib/fragments/Graph.react.js +51 -153
  52. package/lib/fragments/Loading/spinners/CircleSpinner.js +5 -14
  53. package/lib/fragments/Loading/spinners/CubeSpinner.js +5 -16
  54. package/lib/fragments/Loading/spinners/DefaultSpinner.js +5 -14
  55. package/lib/fragments/Loading/spinners/DotSpinner.js +5 -14
  56. package/lib/fragments/Loading/spinners/GraphSpinner.js +4 -13
  57. package/lib/fragments/Markdown.react.js +13 -60
  58. package/lib/fragments/Math.react.js +2 -28
  59. package/lib/fragments/RangeSlider.react.js +20 -60
  60. package/lib/fragments/Slider.react.js +20 -60
  61. package/lib/fragments/Upload.react.js +23 -52
  62. package/lib/index.js +0 -28
  63. package/lib/third-party/highlight.js +0 -40
  64. package/lib/utils/DatePickerPersistence.js +0 -5
  65. package/lib/utils/LazyLoader/datePickerRange.js +1 -5
  66. package/lib/utils/LazyLoader/datePickerSingle.js +1 -5
  67. package/lib/utils/LazyLoader/dropdown.js +1 -5
  68. package/lib/utils/LazyLoader/graph.js +1 -5
  69. package/lib/utils/LazyLoader/hljs.js +1 -5
  70. package/lib/utils/LazyLoader/markdown.js +1 -5
  71. package/lib/utils/LazyLoader/mathjax.js +1 -5
  72. package/lib/utils/LazyLoader/plotly.js +1 -5
  73. package/lib/utils/LazyLoader/rangeSlider.js +1 -5
  74. package/lib/utils/LazyLoader/slider.js +1 -5
  75. package/lib/utils/LazyLoader/upload.js +1 -5
  76. package/lib/utils/MarkdownHighlighter.js +0 -6
  77. package/lib/utils/computeSliderMarkers.js +17 -68
  78. package/lib/utils/computeSliderStyle.js +0 -6
  79. package/lib/utils/convertToMoment.js +0 -8
  80. package/lib/utils/mathjax.js +0 -1
  81. package/lib/utils/optionTypes.js +3 -18
  82. package/package.json +17 -17
  83. package/lib/components/css/react-virtualized-select@3.1.0.css +0 -22
@@ -4,38 +4,28 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
9
  var _color = _interopRequireDefault(require("color"));
13
-
14
10
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
15
-
16
11
  var CubeSpinner = function CubeSpinner(_ref) {
17
12
  var status = _ref.status,
18
- color = _ref.color,
19
- fullscreen = _ref.fullscreen,
20
- debug = _ref.debug,
21
- className = _ref.className,
22
- style = _ref.style;
13
+ color = _ref.color,
14
+ fullscreen = _ref.fullscreen,
15
+ debug = _ref.debug,
16
+ className = _ref.className,
17
+ style = _ref.style;
23
18
  var debugTitle;
24
-
25
19
  if (debug) {
26
20
  debugTitle = /*#__PURE__*/_react.default.createElement("h3", {
27
21
  className: "dash-loading-title"
28
22
  }, "Loading ", status.component_name, "'s ", status.prop_name);
29
23
  }
30
-
31
24
  var spinnerClass = fullscreen ? 'dash-spinner-container' : '';
32
-
33
25
  if (className) {
34
26
  spinnerClass += " ".concat(className);
35
27
  }
36
28
  /* eslint-disable no-magic-numbers */
37
-
38
-
39
29
  return /*#__PURE__*/_react.default.createElement("div", {
40
30
  style: style ? style : {},
41
31
  className: spinnerClass
@@ -57,7 +47,6 @@ var CubeSpinner = function CubeSpinner(_ref) {
57
47
  className: "dash-cube-side dash-cube-side--bottom"
58
48
  }))), /*#__PURE__*/_react.default.createElement("style", null, "\n .dash-spinner-container {\n position: fixed;\n width: 100vw;\n height: 100vh;\n top: 0;\n left: 0;\n background-color: white;\n z-index: 99;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .dash-loading-title {\n text-align: center;\n }\n .dash-cube {\n position: relative;\n width: 80px;\n height: 80px;\n display: block;\n transform-style: preserve-3d;\n animation: rotate 4s infinite;\n transition: all 0.5s;\n }\n .dash-cube-container {\n display: block;\n width: 80px;\n margin: 7rem auto;\n }\n\n .dash-cube-side {\n width: 100%;\n height: 100%;\n position: absolute;\n display: inline-block;\n }\n\n .dash-cube-side--front {\n background-color: ".concat(color, ";\n animation: blowout-front 4s infinite;\n transform: rotateY(0deg) translateZ(40px);\n }\n .dash-cube-side--back {\n background-color: ").concat((0, _color.default)(color).darken(0.2), ";\n transform: rotateX(180deg) translateZ(40px);\n animation: blowout-back 4s infinite;\n }\n\n .dash-cube-side--left {\n background-color: ").concat((0, _color.default)(color).darken(0.2), ";\n transform: rotateY(-90deg) translateZ(40px);\n animation: blowout-left 4s infinite;\n }\n\n .dash-cube-side--right {\n background-color: ").concat((0, _color.default)(color).darken(0.4), ";\n transform: rotateY(90deg) translateZ(40px);\n animation: blowout-right 4s infinite;\n }\n\n .dash-cube-side--top {\n background-color: ").concat((0, _color.default)(color).darken(0.2), ";\n transform: rotateX(90deg) translateZ(40px);\n animation: blowout-top 4s infinite;\n }\n\n .dash-cube-side--bottom {\n background-color: ").concat((0, _color.default)(color).darken(0.4), ";\n transform: rotateX(-90deg) translateZ(40px);\n animation: blowout-bottom 4s infinite;\n }\n\n @keyframes rotate {\n 0% {\n transform: rotateX(0deg) rotateY(0deg);\n }\n 20% {\n transform: rotateX(320deg) rotateY(320deg);\n }\n 100% {\n transform: rotateX(360deg) rotateY(360deg);\n }\n }\n\n @keyframes blowout-bottom {\n 20% {\n transform: rotateX(-90deg) translateZ(40px);\n }\n 30% {\n transform: rotateX(-90deg) translateZ(120px);\n }\n 60% {\n transform: rotateX(-90deg) translateZ(120px);\n }\n }\n @keyframes blowout-front {\n 20% {\n transform: rotateY(0deg) translateZ(40px);\n }\n 30% {\n transform: rotateY(0deg) translateZ(120px);\n }\n 60% {\n transform: rotateY(0deg) translateZ(120px);\n }\n }\n @keyframes blowout-top {\n 20% {\n transform: rotateX(90deg) translateZ(40px);\n }\n 30% {\n transform: rotateX(90deg) translateZ(120px);\n }\n 60% {\n transform: rotateX(90deg) translateZ(120px);\n }\n }\n @keyframes blowout-back {\n 20% {\n transform: rotateX(180deg) translateZ(40px);\n }\n 30% {\n transform: rotateX(180deg) translateZ(120px);\n }\n 60% {\n transform: rotateX(180deg) translateZ(120px);\n }\n }\n @keyframes blowout-right {\n 20% {\n transform: rotateY(90deg) translateZ(40px);\n }\n 30% {\n transform: rotateY(90deg) translateZ(120px);\n }\n 60% {\n transform: rotateY(90deg) translateZ(120px);\n }\n }\n @keyframes blowout-left {\n 20% {\n transform: rotateY(-90deg) translateZ(40px);\n }\n 30% {\n transform: rotateY(-90deg) translateZ(120px);\n }\n 60% {\n transform: rotateY(-90deg) translateZ(120px);\n }\n }\n ")));
59
49
  };
60
-
61
50
  CubeSpinner.propTypes = {
62
51
  status: _propTypes.default.object,
63
52
  color: _propTypes.default.string,
@@ -4,37 +4,29 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
10
  /**
15
11
  * Spinner created by Tobias Ahlin, https://github.com/tobiasahlin/SpinKit
16
12
  */
17
13
  var DefaultSpinner = function DefaultSpinner(_ref) {
18
14
  var status = _ref.status,
19
- color = _ref.color,
20
- fullscreen = _ref.fullscreen,
21
- debug = _ref.debug,
22
- className = _ref.className,
23
- style = _ref.style;
15
+ color = _ref.color,
16
+ fullscreen = _ref.fullscreen,
17
+ debug = _ref.debug,
18
+ className = _ref.className,
19
+ style = _ref.style;
24
20
  var debugTitle;
25
-
26
21
  if (debug) {
27
22
  debugTitle = /*#__PURE__*/_react.default.createElement("h3", {
28
23
  className: "dash-loading-title"
29
24
  }, "Loading ", status.component_name, "'s ", status.prop_name);
30
25
  }
31
-
32
26
  var spinnerClass = fullscreen ? 'dash-spinner-container' : '';
33
-
34
27
  if (className) {
35
28
  spinnerClass += " ".concat(className);
36
29
  }
37
-
38
30
  return /*#__PURE__*/_react.default.createElement("div", {
39
31
  style: style ? style : {},
40
32
  className: spinnerClass
@@ -52,7 +44,6 @@ var DefaultSpinner = function DefaultSpinner(_ref) {
52
44
  className: "dash-default-spinner-rect5"
53
45
  })), /*#__PURE__*/_react.default.createElement("style", null, "\n .dash-spinner-container {\n position: fixed;\n width: 100vw;\n height: 100vh;\n top: 0;\n left: 0;\n background-color: white;\n z-index: 99;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .dash-loading-title {\n text-align: center;\n }\n .dash-default-spinner{\n margin: 1rem auto;\n width: 50px;\n height: 40px;\n text-align: center;\n font-size: 10px;\n }\n\n .dash-default-spinner > div {\n background-color: ".concat(color, ";\n height: 100%;\n width: 6px;\n display: inline-block;\n margin-right: 4px;\n\n -webkit-animation: sk-stretchdelay 1.2s infinite ease-in-out;\n animation: sk-stretchdelay 1.2s infinite ease-in-out;\n }\n\n .dash-default-spinner .dash-default-spinner-rect2 {\n -webkit-animation-delay: -1.1s;\n animation-delay: -1.1s;\n }\n\n .dash-default-spinner .dash-default-spinner-rect3 {\n -webkit-animation-delay: -1.0s;\n animation-delay: -1.0s;\n }\n\n .dash-default-spinner .dash-default-spinner-rect4 {\n -webkit-animation-delay: -0.9s;\n animation-delay: -0.9s;\n }\n\n .dash-default-spinner .dash-default-spinner-rect5 {\n -webkit-animation-delay: -0.8s;\n animation-delay: -0.8s;\n }\n\n @-webkit-keyframes sk-stretchdelay {\n 0%, 40%, 100% { -webkit-transform: scaleY(0.4) }\n 20% { -webkit-transform: scaleY(1.0) }\n }\n\n @keyframes sk-stretchdelay {\n 0%, 40%, 100% {\n transform: scaleY(0.4);\n -webkit-transform: scaleY(0.4);\n } 20% {\n transform: scaleY(1.0);\n -webkit-transform: scaleY(1.0);\n }\n }\n ")));
54
46
  };
55
-
56
47
  DefaultSpinner.propTypes = {
57
48
  status: _propTypes.default.object,
58
49
  color: _propTypes.default.string,
@@ -4,37 +4,29 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
10
  /**
15
11
  * Spinner created by Tobias Ahlin, https://github.com/tobiasahlin/SpinKit
16
12
  */
17
13
  var DotSpinner = function DotSpinner(_ref) {
18
14
  var status = _ref.status,
19
- color = _ref.color,
20
- fullscreen = _ref.fullscreen,
21
- debug = _ref.debug,
22
- className = _ref.className,
23
- style = _ref.style;
15
+ color = _ref.color,
16
+ fullscreen = _ref.fullscreen,
17
+ debug = _ref.debug,
18
+ className = _ref.className,
19
+ style = _ref.style;
24
20
  var debugTitle;
25
-
26
21
  if (debug) {
27
22
  debugTitle = /*#__PURE__*/_react.default.createElement("h3", {
28
23
  className: "dash-loading-title"
29
24
  }, "Loading ", status.component_name, "'s ", status.prop_name);
30
25
  }
31
-
32
26
  var spinnerClass = fullscreen ? 'dash-spinner-container' : '';
33
-
34
27
  if (className) {
35
28
  spinnerClass += " ".concat(className);
36
29
  }
37
-
38
30
  return /*#__PURE__*/_react.default.createElement("div", {
39
31
  style: style ? style : {},
40
32
  className: spinnerClass
@@ -48,7 +40,6 @@ var DotSpinner = function DotSpinner(_ref) {
48
40
  className: "dash-dot-spinner-bounce3"
49
41
  })), /*#__PURE__*/_react.default.createElement("style", null, "\n .dash-spinner-container {\n position: fixed;\n width: 100vw;\n height: 100vh;\n top: 0;\n left: 0;\n background-color: white;\n z-index: 99;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .dash-loading-title {\n text-align: center;\n }\n .dash-dot-spinner {\n margin: 1rem auto;\n width: 70px;\n text-align: center;\n }\n\n .dash-dot-spinner > div {\n width: 18px;\n height: 18px;\n background-color: ".concat(color, ";\n\n border-radius: 100%;\n display: inline-block;\n -webkit-animation: sk-bouncedelay 1.4s infinite ease-in-out both;\n animation: sk-bouncedelay 1.4s infinite ease-in-out both;\n }\n\n .dash-dot-spinner .dash-dot-spinner-bounce1 {\n -webkit-animation-delay: -0.32s;\n animation-delay: -0.32s;\n }\n\n .dash-dot-spinner .dash-dot-spinner-bounce2 {\n -webkit-animation-delay: -0.16s;\n animation-delay: -0.16s;\n }\n\n @-webkit-keyframes sk-bouncedelay {\n 0%, 80%, 100% { -webkit-transform: scale(0) }\n 40% { -webkit-transform: scale(1.0) }\n }\n\n @keyframes sk-bouncedelay {\n 0%, 80%, 100% {\n -webkit-transform: scale(0);\n transform: scale(0);\n } 40% {\n -webkit-transform: scale(1.0);\n transform: scale(1.0);\n }\n }\n ")));
50
42
  };
51
-
52
43
  DotSpinner.propTypes = {
53
44
  status: _propTypes.default.object,
54
45
  color: _propTypes.default.string,
@@ -4,33 +4,25 @@ Object.defineProperty(exports, "__esModule", {
4
4
  value: true
5
5
  });
6
6
  exports.default = void 0;
7
-
8
7
  var _react = _interopRequireDefault(require("react"));
9
-
10
8
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
9
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
13
-
14
10
  var GraphSpinner = function GraphSpinner(_ref) {
15
11
  var status = _ref.status,
16
- fullscreen = _ref.fullscreen,
17
- debug = _ref.debug,
18
- className = _ref.className,
19
- style = _ref.style;
12
+ fullscreen = _ref.fullscreen,
13
+ debug = _ref.debug,
14
+ className = _ref.className,
15
+ style = _ref.style;
20
16
  var debugTitle;
21
-
22
17
  if (debug) {
23
18
  debugTitle = /*#__PURE__*/_react.default.createElement("h3", {
24
19
  className: "dash-loading-title"
25
20
  }, "Loading ", status.component_name, "'s ", status.prop_name);
26
21
  }
27
-
28
22
  var spinnerClass = fullscreen ? 'dash-spinner-container' : '';
29
-
30
23
  if (className) {
31
24
  spinnerClass += " ".concat(className);
32
25
  }
33
-
34
26
  return /*#__PURE__*/_react.default.createElement("div", {
35
27
  style: style ? style : {},
36
28
  className: spinnerClass
@@ -66,7 +58,6 @@ var GraphSpinner = function GraphSpinner(_ref) {
66
58
  className: "dash-vert dash-vert__four"
67
59
  }))))), /*#__PURE__*/_react.default.createElement("style", null, "\n .dash-spinner-container {\n position: fixed;\n width: 100vw;\n height: 100vh;\n top: 0;\n left: 0;\n background-color: white;\n z-index: 99;\n display: flex;\n justify-content: center;\n align-items: center;\n }\n .dash-loading-title {\n text-align: center;\n }\n .dash-graph-spinner {\n display: flex;\n margin: 0 auto;\n width: 200px;\n height: 128px;\n position: relative;\n z-index: -2;\n border-radius: 4px;\n }\n .dash-graph-spinner__bottom {\n display: flex;\n margin-top: auto;\n flex-direction: column;\n height: 12px;\n width: 100%;\n }\n .dash-graph-spinner__background {\n width: 100%;\n height: 100%;\n display: block;\n position: absolute;\n z-index: -1;\n display: flex;\n }\n .dash-bar {\n height: 40px;\n background-color: #119DFF;\n animation: bar-one 2s infinite;\n transform-origin: 0% 0%;\n display: inline-flex;\n border-radius: 8px;\n }\n .dash-bar__one {\n transform: rotate(-45deg);\n bottom: -10px;\n left: 16px;\n position: relative;\n }\n .dash-bar__two {\n transform: rotate(25deg);\n animation: bar-two 2s infinite;\n left: 72px;\n bottom: 48px;\n position: relative;\n animation-delay: 2s infinite;\n }\n .dash-bar__three {\n transform: rotate(-30deg);\n animation: bar-three 2s infinite;\n left: 114px;\n bottom: 27px;\n position: relative;\n animation-delay: 2s infinite;\n }\n .dash-vert {\n display: inline-block;\n transform-origin: 0% 0%;\n position: absolute;\n bottom: 0px;\n width: 40px;\n }\n .dash-vert__one {\n animation: vert-one 2s infinite;\n background-color: #e763fa;\n }\n .dash-vert__two {\n animation: vert-two 2s infinite;\n left: 50px;\n background-color: #636efa;\n }\n .dash-vert__three {\n animation: vert-three 2s infinite;\n left: 100px;\n background-color: #00cc96;\n }\n .dash-vert__four {\n animation: vert-four 2s infinite;\n left: 150px;\n background-color: #EF553B;\n }\n .dash-dot {\n width: 10px;\n height: 10px;\n border-radius: 100%;\n display: block;\n background-color: #119DFF;\n position: absolute;\n z-index: 2;\n }\n .dash-dot__one {\n bottom: 0px;\n left: 16px;\n animation: dot-one 2s infinite;\n }\n .dash-dot__two {\n bottom: 48px;\n left: 66px;\n animation: dot-two 2s infinite;\n }\n .dash-dot__three {\n bottom: 27px;\n left: 114px;\n animation: dot-three 2s infinite;\n }\n .dash-dot__four {\n bottom: 56px;\n left: 166px;\n animation: dot-four 2s infinite;\n }\n @keyframes dot-one {\n 0%{\n opacity: 0;\n }\n 30% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n }\n }\n @keyframes dot-two {\n 0%{\n opacity: 0;\n }\n 30% {\n opacity: 1;\n }\n 60% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n }\n }\n @keyframes dot-three {\n 0%{\n opacity: 0;\n }\n 30% {\n opacity: 0;\n }\n 60% {\n opacity: 1;\n }\n 100% {\n opacity: 1;\n }\n }\n @keyframes dot-four {\n 0%{\n opacity: 0;\n }\n 30% {\n opacity: 0;\n }\n 60% {\n opacity: 0;\n }\n 100% {\n opacity: 1;\n }\n }\n @keyframes vert-one {\n 0% {\n height: 0px;\n }\n 100% {\n height: 80px;\n }\n }\n @keyframes vert-two {\n 0% {\n height: 0px;\n }\n 30% {\n height: 0px;\n }\n 100% {\n height: 120px;\n }\n }\n @keyframes vert-three {\n 0% {\n height: 0px;\n }\n 30% {\n height: 0px;\n }\n 50% {\n height: 0px;\n }\n 100% {\n height: 100px;\n }\n }\n @keyframes vert-four {\n 0% {\n height: 0px;\n }\n 30% {\n height: 0px;\n }\n 50% {\n height: 0px;\n }\n 60% {\n height: 0px;\n }\n 100% {\n height: 60px;\n }\n }\n @keyframes bar-one {\n 0% {\n width: 0%;\n }\n 30% {\n width: 40%;\n }\n 60% {\n width: 40%;\n }\n 100% {\n width: 40%;\n }\n }\n @keyframes bar-two {\n 0% {\n width: 0%;\n }\n 30% {\n width: 0%;\n }\n 60% {\n width: 28%;\n }\n 100% {\n width: 28%;\n }\n }\n @keyframes bar-three {\n 0% {\n width: 0%;\n }\n 30% {\n width: 0%;\n }\n 60% {\n width: 0%;\n }\n 100% {\n width: 33%;\n }\n }\n @keyframes dash-title {\n 0% {\n opacity: 0.1;\n }\n 50% {\n opacity: 1;\n }\n 100% {\n opacity: 0.1;\n }\n }\n "));
68
60
  };
69
-
70
61
  GraphSpinner.propTypes = {
71
62
  status: _propTypes.default.object,
72
63
  color: _propTypes.default.string,
@@ -1,85 +1,50 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
6
  exports.default = void 0;
9
-
10
7
  var _react = _interopRequireWildcard(require("react"));
11
-
12
8
  var _ramda = require("ramda");
13
-
14
9
  var _reactJsxParser = _interopRequireDefault(require("react-jsx-parser"));
15
-
16
10
  var _reactMarkdown = _interopRequireDefault(require("react-markdown"));
17
-
18
11
  var _remarkMath = _interopRequireDefault(require("remark-math"));
19
-
20
12
  var _Math = _interopRequireDefault(require("./Math.react"));
21
-
22
13
  var _MarkdownHighlighter = _interopRequireDefault(require("../utils/MarkdownHighlighter"));
23
-
24
14
  var _Markdown = require("../components/Markdown.react");
25
-
26
15
  var _Link = _interopRequireDefault(require("./../components/Link.react"));
27
-
28
16
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
29
-
30
17
  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); }
31
-
32
- 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; }
33
-
18
+ 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; }
34
19
  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; } } }; }
35
-
36
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); }
37
-
38
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; }
39
-
40
22
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
41
-
42
23
  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); } }
43
-
44
24
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
45
-
46
25
  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); }
47
-
48
26
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
49
-
50
27
  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); }; }
51
-
52
- 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); }
53
-
28
+ 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); }
54
29
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
55
-
56
30
  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; } }
57
-
58
31
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
59
-
60
32
  var DashMarkdown = /*#__PURE__*/function (_Component) {
61
33
  _inherits(DashMarkdown, _Component);
62
-
63
34
  var _super = _createSuper(DashMarkdown);
64
-
65
35
  function DashMarkdown(props) {
66
36
  var _this;
67
-
68
37
  _classCallCheck(this, DashMarkdown);
69
-
70
38
  _this = _super.call(this, props);
71
-
72
39
  if (_MarkdownHighlighter.default.isReady !== true) {
73
40
  _MarkdownHighlighter.default.isReady.then(function () {
74
41
  _this.setState({});
75
42
  });
76
43
  }
77
-
78
44
  _this.highlightCode = _this.highlightCode.bind(_assertThisInitialized(_this));
79
45
  _this.dedent = _this.dedent.bind(_assertThisInitialized(_this));
80
46
  return _this;
81
47
  }
82
-
83
48
  _createClass(DashMarkdown, [{
84
49
  key: "componentDidMount",
85
50
  value: function componentDidMount() {
@@ -95,7 +60,6 @@ var DashMarkdown = /*#__PURE__*/function (_Component) {
95
60
  value: function highlightCode() {
96
61
  if (this.mdContainer) {
97
62
  var nodes = this.mdContainer.querySelectorAll('pre code');
98
-
99
63
  if (_MarkdownHighlighter.default.hljs) {
100
64
  for (var i = 0; i < nodes.length; i++) {
101
65
  _MarkdownHighlighter.default.hljs.highlightElement(nodes[i]);
@@ -110,18 +74,14 @@ var DashMarkdown = /*#__PURE__*/function (_Component) {
110
74
  value: function dedent(text) {
111
75
  var lines = text.split(/\r\n|\r|\n/);
112
76
  var commonPrefix = null;
113
-
114
77
  var _iterator = _createForOfIteratorHelper(lines),
115
- _step;
116
-
78
+ _step;
117
79
  try {
118
80
  for (_iterator.s(); !(_step = _iterator.n()).done;) {
119
81
  var line = _step.value;
120
82
  var preMatch = line && line.match(/^\s*(?=\S)/);
121
-
122
83
  if (preMatch) {
123
84
  var prefix = preMatch[0];
124
-
125
85
  if (commonPrefix !== null) {
126
86
  for (var i = 0; i < commonPrefix.length; i++) {
127
87
  // Like Python's textwrap.dedent, we'll remove both
@@ -134,7 +94,6 @@ var DashMarkdown = /*#__PURE__*/function (_Component) {
134
94
  } else {
135
95
  commonPrefix = prefix;
136
96
  }
137
-
138
97
  if (!commonPrefix) {
139
98
  break;
140
99
  }
@@ -145,7 +104,6 @@ var DashMarkdown = /*#__PURE__*/function (_Component) {
145
104
  } finally {
146
105
  _iterator.f();
147
106
  }
148
-
149
107
  var commonLen = commonPrefix ? commonPrefix.length : 0;
150
108
  return lines.map(function (line) {
151
109
  return line.match(/\S/) ? line.substr(commonLen) : '';
@@ -155,18 +113,17 @@ var DashMarkdown = /*#__PURE__*/function (_Component) {
155
113
  key: "render",
156
114
  value: function render() {
157
115
  var _this2 = this;
158
-
159
116
  var _this$props = this.props,
160
- id = _this$props.id,
161
- style = _this$props.style,
162
- className = _this$props.className,
163
- highlight_config = _this$props.highlight_config,
164
- loading_state = _this$props.loading_state,
165
- dangerously_allow_html = _this$props.dangerously_allow_html,
166
- link_target = _this$props.link_target,
167
- mathjax = _this$props.mathjax,
168
- children = _this$props.children,
169
- dedent = _this$props.dedent;
117
+ id = _this$props.id,
118
+ style = _this$props.style,
119
+ className = _this$props.className,
120
+ highlight_config = _this$props.highlight_config,
121
+ loading_state = _this$props.loading_state,
122
+ dangerously_allow_html = _this$props.dangerously_allow_html,
123
+ link_target = _this$props.link_target,
124
+ mathjax = _this$props.mathjax,
125
+ children = _this$props.children,
126
+ dedent = _this$props.dedent;
170
127
  var textProp = (0, _ramda.type)(children) === 'Array' ? children.join('\n') : children;
171
128
  var displayText = dedent && textProp ? this.dedent(textProp) : textProp;
172
129
  var componentTransforms = {
@@ -183,7 +140,6 @@ var DashMarkdown = /*#__PURE__*/function (_Component) {
183
140
  });
184
141
  }
185
142
  };
186
-
187
143
  var regexMath = function regexMath(value) {
188
144
  var newValue = value.replace(/(\${1,2})((?:\\.|[^$])+)\1/g, function (m, tag, src) {
189
145
  var inline = tag.length === 1 || src.indexOf('\n') === -1;
@@ -191,7 +147,6 @@ var DashMarkdown = /*#__PURE__*/function (_Component) {
191
147
  });
192
148
  return newValue;
193
149
  };
194
-
195
150
  return /*#__PURE__*/_react.default.createElement("div", {
196
151
  id: id,
197
152
  ref: function ref(node) {
@@ -229,10 +184,8 @@ var DashMarkdown = /*#__PURE__*/function (_Component) {
229
184
  }));
230
185
  }
231
186
  }]);
232
-
233
187
  return DashMarkdown;
234
188
  }(_react.Component);
235
-
236
189
  exports.default = DashMarkdown;
237
190
  DashMarkdown.propTypes = _Markdown.propTypes;
238
191
  DashMarkdown.defaultProps = _Markdown.defaultProps;
@@ -1,59 +1,35 @@
1
1
  "use strict";
2
2
 
3
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
4
-
5
3
  Object.defineProperty(exports, "__esModule", {
6
4
  value: true
7
5
  });
8
6
  exports.propTypes = exports.defaultProps = exports.default = void 0;
9
-
10
7
  var _propTypes = _interopRequireDefault(require("prop-types"));
11
-
12
8
  var _react = _interopRequireWildcard(require("react"));
13
-
14
9
  var _mathjax = _interopRequireDefault(require("../utils/LazyLoader/mathjax"));
15
-
16
10
  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
-
18
- 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
-
11
+ 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; }
20
12
  function _interopRequireDefault(obj) { return obj && obj.__esModule ? obj : { default: obj }; }
21
-
22
13
  function _classCallCheck(instance, Constructor) { if (!(instance instanceof Constructor)) { throw new TypeError("Cannot call a class as a function"); } }
23
-
24
14
  function _defineProperties(target, props) { for (var i = 0; i < props.length; i++) { var descriptor = props[i]; descriptor.enumerable = descriptor.enumerable || false; descriptor.configurable = true; if ("value" in descriptor) descriptor.writable = true; Object.defineProperty(target, descriptor.key, descriptor); } }
25
-
26
15
  function _createClass(Constructor, protoProps, staticProps) { if (protoProps) _defineProperties(Constructor.prototype, protoProps); if (staticProps) _defineProperties(Constructor, staticProps); Object.defineProperty(Constructor, "prototype", { writable: false }); return Constructor; }
27
-
28
16
  function _inherits(subClass, superClass) { if (typeof superClass !== "function" && superClass !== null) { throw new TypeError("Super expression must either be null or a function"); } subClass.prototype = Object.create(superClass && superClass.prototype, { constructor: { value: subClass, writable: true, configurable: true } }); Object.defineProperty(subClass, "prototype", { writable: false }); if (superClass) _setPrototypeOf(subClass, superClass); }
29
-
30
17
  function _setPrototypeOf(o, p) { _setPrototypeOf = Object.setPrototypeOf ? Object.setPrototypeOf.bind() : function _setPrototypeOf(o, p) { o.__proto__ = p; return o; }; return _setPrototypeOf(o, p); }
31
-
32
18
  function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
33
-
34
- function _possibleConstructorReturn(self, call) { if (call && (_typeof(call) === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
35
-
19
+ function _possibleConstructorReturn(self, call) { if (call && (typeof call === "object" || typeof call === "function")) { return call; } else if (call !== void 0) { throw new TypeError("Derived constructors may only return object or undefined"); } return _assertThisInitialized(self); }
36
20
  function _assertThisInitialized(self) { if (self === void 0) { throw new ReferenceError("this hasn't been initialised - super() hasn't been called"); } return self; }
37
-
38
21
  function _isNativeReflectConstruct() { if (typeof Reflect === "undefined" || !Reflect.construct) return false; if (Reflect.construct.sham) return false; if (typeof Proxy === "function") return true; try { Boolean.prototype.valueOf.call(Reflect.construct(Boolean, [], function () {})); return true; } catch (e) { return false; } }
39
-
40
22
  function _getPrototypeOf(o) { _getPrototypeOf = Object.setPrototypeOf ? Object.getPrototypeOf.bind() : function _getPrototypeOf(o) { return o.__proto__ || Object.getPrototypeOf(o); }; return _getPrototypeOf(o); }
41
-
42
23
  var DashMath = /*#__PURE__*/function (_Component) {
43
24
  _inherits(DashMath, _Component);
44
-
45
25
  var _super = _createSuper(DashMath);
46
-
47
26
  function DashMath(props) {
48
27
  var _this;
49
-
50
28
  _classCallCheck(this, DashMath);
51
-
52
29
  _this = _super.call(this, props);
53
30
  _this.span_element = /*#__PURE__*/_react.default.createRef();
54
31
  return _this;
55
32
  }
56
-
57
33
  _createClass(DashMath, [{
58
34
  key: "componentDidMount",
59
35
  value: function componentDidMount() {
@@ -82,10 +58,8 @@ var DashMath = /*#__PURE__*/function (_Component) {
82
58
  }, this.props.inline ? '\\(' : '\\[', this.props.tex, this.props.inline ? '\\)' : '\\]');
83
59
  }
84
60
  }]);
85
-
86
61
  return DashMath;
87
62
  }(_react.Component);
88
-
89
63
  exports.default = DashMath;
90
64
  DashMath.propTypes = {
91
65
  tex: _propTypes.default.string,