@splunk/visualizations 25.5.0 → 25.6.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.
Files changed (76) hide show
  1. package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_TimeControlsPopover_Dark.png +0 -0
  2. package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_TimeControlsPopover_DarkPrisma.png +0 -0
  3. package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_TimeControlsPopover_Light.png +0 -0
  4. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Background_Color_Light_Blue.png +0 -0
  5. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Basic_Events.png +0 -0
  6. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Event_Actions.png +0 -0
  7. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Field_Actions.png +0 -0
  8. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Field_Summary.png +0 -0
  9. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Field_Summary_Simulated_Instance.png +0 -0
  10. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Footer_Fields.png +0 -0
  11. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Value_Highlighting.png +0 -0
  12. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Width_Height.png +0 -0
  13. package/.loki/reference/chrome_docker_Visualizations_Events_Events_Width_Percentage_50.png +0 -0
  14. package/Area.js +226 -143
  15. package/Area.js.map +1 -1
  16. package/Bar.js +226 -143
  17. package/Bar.js.map +1 -1
  18. package/Bubble.js +218 -135
  19. package/Bubble.js.map +1 -1
  20. package/ChoroplethSvg.js +217 -139
  21. package/ChoroplethSvg.js.map +1 -1
  22. package/Column.js +226 -143
  23. package/Column.js.map +1 -1
  24. package/Ellipse.js +188 -105
  25. package/Ellipse.js.map +1 -1
  26. package/Events.config.js +3 -0
  27. package/Events.config.js.map +1 -1
  28. package/Events.js +967 -267
  29. package/Events.js.map +1 -1
  30. package/FillerGauge.js +214 -126
  31. package/FillerGauge.js.map +1 -1
  32. package/Image.js +210 -125
  33. package/Image.js.map +1 -1
  34. package/Line.js +231 -143
  35. package/Line.js.map +1 -1
  36. package/LinkGraph.js +601 -524
  37. package/LinkGraph.js.map +1 -1
  38. package/Map.js +484 -406
  39. package/Map.js.map +1 -1
  40. package/Markdown.js +295 -210
  41. package/Markdown.js.map +1 -1
  42. package/MarkerGauge.js +388 -310
  43. package/MarkerGauge.js.map +1 -1
  44. package/ParallelCoordinates.js +469 -391
  45. package/ParallelCoordinates.js.map +1 -1
  46. package/Pie.js +428 -343
  47. package/Pie.js.map +1 -1
  48. package/Punchcard.js +480 -402
  49. package/Punchcard.js.map +1 -1
  50. package/Rectangle.js +437 -352
  51. package/Rectangle.js.map +1 -1
  52. package/Sankey.js +497 -419
  53. package/Sankey.js.map +1 -1
  54. package/Scatter.js +361 -276
  55. package/Scatter.js.map +1 -1
  56. package/SingleValue.js +386 -301
  57. package/SingleValue.js.map +1 -1
  58. package/SingleValueBasic.js +23 -23
  59. package/SingleValueBasic.js.map +1 -1
  60. package/SingleValueIcon.js +385 -300
  61. package/SingleValueIcon.js.map +1 -1
  62. package/SingleValueRadial.js +319 -234
  63. package/SingleValueRadial.js.map +1 -1
  64. package/Table.js +309 -231
  65. package/Table.js.map +1 -1
  66. package/common/EventsDoc.js +3 -3
  67. package/common/EventsDoc.js.map +1 -1
  68. package/common/GaugeMajorTicks.js +2 -2
  69. package/common/GaugeValueMarker.js +2 -2
  70. package/common/OptionsDoc.js +14 -14
  71. package/common/OptionsDoc.js.map +1 -1
  72. package/common/ThemesDoc.js +10 -10
  73. package/common/ThemesDoc.js.map +1 -1
  74. package/common/withDashboardViz.js +122 -42
  75. package/common/withDashboardViz.js.map +1 -1
  76. package/package.json +13 -11
@@ -87,7 +87,7 @@ module.exports =
87
87
  /******/
88
88
  /******/
89
89
  /******/ // Load entry module and return exports
90
- /******/ return __webpack_require__(__webpack_require__.s = 412);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 420);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -141,7 +141,7 @@ var React = __webpack_require__(1);
141
141
 
142
142
  var styled_components_1 = __webpack_require__(4);
143
143
 
144
- var SizeAwareWrapper_1 = __webpack_require__(20);
144
+ var SizeAwareWrapper_1 = __webpack_require__(21);
145
145
 
146
146
  var style_1 = __webpack_require__(15);
147
147
 
@@ -202,7 +202,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
202
202
 
203
203
  return React.createElement(FixSizeItem, {
204
204
  "data-test": "fix-size-item",
205
- "data-splunk-visualization-version": "25.5.0 - 12c0447a7",
205
+ "data-splunk-visualization-version": "25.6.0 - f5eb3abf9",
206
206
  width: width,
207
207
  height: height,
208
208
  backgroundColor: backgroundColor
@@ -257,17 +257,17 @@ exports.extendStaticWrapperProps = extendStaticWrapperProps;
257
257
 
258
258
  /***/ }),
259
259
 
260
- /***/ 146:
260
+ /***/ 15:
261
261
  /***/ (function(module, exports) {
262
262
 
263
- module.exports = require("@mdhnpm/rgb-hex-converter");
263
+ module.exports = require("@splunk/visualizations-shared/style");
264
264
 
265
265
  /***/ }),
266
266
 
267
- /***/ 15:
267
+ /***/ 152:
268
268
  /***/ (function(module, exports) {
269
269
 
270
- module.exports = require("@splunk/visualizations-shared/style");
270
+ module.exports = require("@mdhnpm/rgb-hex-converter");
271
271
 
272
272
  /***/ }),
273
273
 
@@ -279,6 +279,13 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
279
279
  /***/ }),
280
280
 
281
281
  /***/ 17:
282
+ /***/ (function(module, exports) {
283
+
284
+ module.exports = require("@babel/runtime/helpers/slicedToArray");
285
+
286
+ /***/ }),
287
+
288
+ /***/ 18:
282
289
  /***/ (function(module, exports, __webpack_require__) {
283
290
 
284
291
  "use strict";
@@ -515,35 +522,35 @@ exports.insertLayout = insertLayout;
515
522
 
516
523
  /***/ }),
517
524
 
518
- /***/ 19:
525
+ /***/ 2:
519
526
  /***/ (function(module, exports) {
520
527
 
521
- module.exports = require("@babel/runtime/helpers/createClass");
528
+ module.exports = require("@splunk/ui-utils/i18n");
522
529
 
523
530
  /***/ }),
524
531
 
525
- /***/ 2:
532
+ /***/ 20:
526
533
  /***/ (function(module, exports) {
527
534
 
528
- module.exports = require("@splunk/ui-utils/i18n");
535
+ module.exports = require("@babel/runtime/helpers/createClass");
529
536
 
530
537
  /***/ }),
531
538
 
532
- /***/ 20:
539
+ /***/ 21:
533
540
  /***/ (function(module, exports) {
534
541
 
535
542
  module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
536
543
 
537
544
  /***/ }),
538
545
 
539
- /***/ 21:
546
+ /***/ 22:
540
547
  /***/ (function(module, exports) {
541
548
 
542
549
  module.exports = require("@splunk/themes/pick");
543
550
 
544
551
  /***/ }),
545
552
 
546
- /***/ 22:
553
+ /***/ 23:
547
554
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
548
555
 
549
556
  "use strict";
@@ -582,13 +589,13 @@ __webpack_require__.r(__webpack_exports__);
582
589
  /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
583
590
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
584
591
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
585
- /* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(30);
592
+ /* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(29);
586
593
  /* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__);
587
- /* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(50);
594
+ /* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(54);
588
595
  /* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__);
589
- /* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(24);
596
+ /* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(25);
590
597
  /* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__);
591
- /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(45);
598
+ /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(49);
592
599
  /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__);
593
600
 
594
601
 
@@ -1552,35 +1559,56 @@ var handleValueClickCallback = function handleValueClickCallback(ev, majorValue,
1552
1559
 
1553
1560
  /***/ }),
1554
1561
 
1555
- /***/ 23:
1562
+ /***/ 24:
1556
1563
  /***/ (function(module, exports) {
1557
1564
 
1558
1565
  module.exports = require("@splunk/visualization-context/TimezoneContext");
1559
1566
 
1560
1567
  /***/ }),
1561
1568
 
1562
- /***/ 24:
1569
+ /***/ 25:
1563
1570
  /***/ (function(module, exports) {
1564
1571
 
1565
1572
  module.exports = require("@splunk/visualizations-shared/propUtils");
1566
1573
 
1567
1574
  /***/ }),
1568
1575
 
1569
- /***/ 25:
1576
+ /***/ 26:
1577
+ /***/ (function(module, exports) {
1578
+
1579
+ module.exports = require("@splunk/visualization-context/FeatureFlagContext");
1580
+
1581
+ /***/ }),
1582
+
1583
+ /***/ 27:
1570
1584
  /***/ (function(module, exports) {
1571
1585
 
1572
1586
  module.exports = require("@splunk/visualizations-shared/hocUtils");
1573
1587
 
1574
1588
  /***/ }),
1575
1589
 
1576
- /***/ 26:
1590
+ /***/ 28:
1577
1591
  /***/ (function(module, exports) {
1578
1592
 
1579
1593
  module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
1580
1594
 
1581
1595
  /***/ }),
1582
1596
 
1583
- /***/ 27:
1597
+ /***/ 29:
1598
+ /***/ (function(module, exports) {
1599
+
1600
+ module.exports = require("@splunk/visualizations-shared/numberUtils");
1601
+
1602
+ /***/ }),
1603
+
1604
+ /***/ 3:
1605
+ /***/ (function(module, exports) {
1606
+
1607
+ module.exports = require("lodash");
1608
+
1609
+ /***/ }),
1610
+
1611
+ /***/ 30:
1584
1612
  /***/ (function(module, exports, __webpack_require__) {
1585
1613
 
1586
1614
  "use strict";
@@ -1672,7 +1700,14 @@ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
1672
1700
 
1673
1701
  /***/ }),
1674
1702
 
1675
- /***/ 28:
1703
+ /***/ 31:
1704
+ /***/ (function(module, exports) {
1705
+
1706
+ module.exports = require("@splunk/ui-utils/id");
1707
+
1708
+ /***/ }),
1709
+
1710
+ /***/ 32:
1676
1711
  /***/ (function(module, exports, __webpack_require__) {
1677
1712
 
1678
1713
  "use strict";
@@ -1689,7 +1724,7 @@ var T = __webpack_require__(0);
1689
1724
 
1690
1725
  var lodash_1 = __webpack_require__(3);
1691
1726
 
1692
- var DataSource_1 = __webpack_require__(39);
1727
+ var DataSource_1 = __webpack_require__(43);
1693
1728
 
1694
1729
  exports.SortParamsPropTypes = T.shape({
1695
1730
  currentSortKey: T.string,
@@ -1743,7 +1778,7 @@ exports.getSortingParams = getSortingParams;
1743
1778
 
1744
1779
  /***/ }),
1745
1780
 
1746
- /***/ 29:
1781
+ /***/ 33:
1747
1782
  /***/ (function(module, exports, __webpack_require__) {
1748
1783
 
1749
1784
  "use strict";
@@ -1808,21 +1843,7 @@ exports.getPaginationParams = getPaginationParams;
1808
1843
 
1809
1844
  /***/ }),
1810
1845
 
1811
- /***/ 3:
1812
- /***/ (function(module, exports) {
1813
-
1814
- module.exports = require("lodash");
1815
-
1816
- /***/ }),
1817
-
1818
- /***/ 30:
1819
- /***/ (function(module, exports) {
1820
-
1821
- module.exports = require("@splunk/visualizations-shared/numberUtils");
1822
-
1823
- /***/ }),
1824
-
1825
- /***/ 31:
1846
+ /***/ 34:
1826
1847
  /***/ (function(module, exports, __webpack_require__) {
1827
1848
 
1828
1849
  "use strict";
@@ -1851,12 +1872,14 @@ var VizCategory;
1851
1872
 
1852
1873
  /***/ }),
1853
1874
 
1854
- /***/ 32:
1875
+ /***/ 35:
1855
1876
  /***/ (function(module, exports, __webpack_require__) {
1856
1877
 
1857
1878
  "use strict";
1858
1879
 
1859
1880
 
1881
+ var _slicedToArray = __webpack_require__(17);
1882
+
1860
1883
  Object.defineProperty(exports, "__esModule", {
1861
1884
  value: true
1862
1885
  });
@@ -1865,44 +1888,51 @@ var React = __webpack_require__(1);
1865
1888
 
1866
1889
  var lodash_1 = __webpack_require__(3);
1867
1890
 
1868
- var getSettingsFromThemedProps_1 = __webpack_require__(33);
1891
+ var getSettingsFromThemedProps_1 = __webpack_require__(36);
1869
1892
 
1870
- var Options_1 = __webpack_require__(34);
1893
+ var Options_1 = __webpack_require__(37);
1871
1894
 
1872
- var SanitizeProps_1 = __webpack_require__(35);
1895
+ var SanitizeProps_1 = __webpack_require__(38);
1873
1896
 
1874
- var TimezoneContext_1 = __webpack_require__(23);
1897
+ var TimezoneContext_1 = __webpack_require__(24);
1875
1898
 
1876
- var moment_1 = __webpack_require__(36);
1899
+ var moment_1 = __webpack_require__(39);
1900
+
1901
+ var FeatureFlagContext_1 = __webpack_require__(26);
1877
1902
 
1878
1903
  var styled_components_1 = __webpack_require__(4);
1879
1904
 
1880
- var hocUtils_1 = __webpack_require__(25);
1905
+ var hocUtils_1 = __webpack_require__(27);
1906
+
1907
+ var JSONSchemaUtils_1 = __webpack_require__(28);
1881
1908
 
1882
- var JSONSchemaUtils_1 = __webpack_require__(26);
1909
+ var async_dynamic_options_evaluator_1 = __webpack_require__(40);
1883
1910
 
1884
- var SplunkVisualization_1 = __webpack_require__(37);
1911
+ var id_1 = __webpack_require__(31);
1912
+
1913
+ var SplunkVisualization_1 = __webpack_require__(41);
1885
1914
 
1886
1915
  var VizBehavior_1 = __webpack_require__(6);
1887
1916
 
1888
- var getSorting_1 = __webpack_require__(28);
1917
+ var getSorting_1 = __webpack_require__(32);
1918
+
1919
+ var getPagination_1 = __webpack_require__(33);
1889
1920
 
1890
- var getPagination_1 = __webpack_require__(29);
1921
+ var useDeepMemo_1 = __webpack_require__(44);
1891
1922
 
1892
- var useDeepMemo_1 = __webpack_require__(40);
1923
+ var MissingPropsMessage_1 = __webpack_require__(45);
1893
1924
 
1894
- var MissingPropsMessage_1 = __webpack_require__(41);
1925
+ var withEditModeCover_1 = __webpack_require__(46);
1895
1926
 
1896
- var withEditModeCover_1 = __webpack_require__(42);
1927
+ var withPlaceholder_1 = __webpack_require__(47);
1897
1928
 
1898
- var withPlaceholder_1 = __webpack_require__(43);
1929
+ var UUID = id_1.createGUID();
1899
1930
  /**
1900
1931
  * hoc that wraps a pure react visualization in a Dashboard visualization
1901
1932
  * @param {DashboardVizOpts} opts
1902
1933
  * @returns {HOC}
1903
1934
  */
1904
1935
 
1905
-
1906
1936
  var withDashboardViz = function withDashboardViz(opts) {
1907
1937
  var ReactViz = opts.ReactViz,
1908
1938
  vizConfig = opts.vizConfig,
@@ -1962,28 +1992,76 @@ var withDashboardViz = function withDashboardViz(opts) {
1962
1992
 
1963
1993
  var evaluatedOptions = {}; // evaluatedOptions need to be initialized as an empty object
1964
1994
 
1995
+ var _React$useState = React.useState({}),
1996
+ _React$useState2 = _slicedToArray(_React$useState, 2),
1997
+ evaluatedOptionsAsync = _React$useState2[0],
1998
+ setEvaluatedOptionsAsync = _React$useState2[1]; // evaluatedOptions need to be initialized as an empty object
1999
+
2000
+
2001
+ var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
2002
+
2003
+ var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(UUID)),
2004
+ _React$useState4 = _slicedToArray(_React$useState3, 1),
2005
+ visualizationID = _React$useState4[0];
2006
+
2007
+ var _React$useState5 = React.useState(Boolean(featureFlagContext && featureFlagContext['visualizations.useWebWorkersForDSL'] && typeof Worker !== 'undefined')),
2008
+ _React$useState6 = _slicedToArray(_React$useState5, 2),
2009
+ useAsyncEvaluatedOptions = _React$useState6[0],
2010
+ setUseAsyncEvaluatedOptions = _React$useState6[1];
2011
+
1965
2012
  evaluatedOptions = useDeepMemo_1.useDeepMemo(function () {
1966
2013
  try {
1967
- return Options_1.Options.evaluate({
1968
- context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
1969
- options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
1970
- }, dataSources, themeFunc);
2014
+ if (useAsyncEvaluatedOptions) {
2015
+ var optionsToEvaluate = {
2016
+ context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
2017
+ options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
2018
+ };
2019
+ var asyncDynamicOptionsEvaluatorParams = {
2020
+ visualizationID: visualizationID,
2021
+ props: props,
2022
+ options: optionsToEvaluate,
2023
+ dataSources: dataSources,
2024
+ theme: vizConfig.themes
2025
+ };
2026
+ async_dynamic_options_evaluator_1.default.evaluate(asyncDynamicOptionsEvaluatorParams).then(function (results) {
2027
+ setEvaluatedOptionsAsync(results.results);
2028
+ }).catch(function (e) {
2029
+ // eslint-disable-next-line no-console
2030
+ console.error("unexpected error evaluating options - async: ".concat(e.message));
2031
+ setUseAsyncEvaluatedOptions(false);
2032
+ });
2033
+ } else {
2034
+ return Options_1.Options.evaluate({
2035
+ context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
2036
+ options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
2037
+ }, dataSources, themeFunc);
2038
+ }
1971
2039
  } catch (e) {
1972
2040
  // eslint-disable-next-line no-console
1973
- console.error("unexpected error evaluating options: + ".concat(e.message));
2041
+ console.error("unexpected error evaluating options: ".concat(e.message));
1974
2042
  return {};
1975
2043
  }
1976
- }, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone]); // useEffect hook needs to be initialized before any early returns
2044
+
2045
+ return {};
2046
+ }, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone, useAsyncEvaluatedOptions]);
2047
+ var evaluatedOptionsToUse = !useAsyncEvaluatedOptions ? evaluatedOptions : evaluatedOptionsAsync; // useEffect hook needs to be initialized before any early returns
1977
2048
  // this is in accordance with the order of hook calls being the same on each render https://reactjs.org/docs/hooks-rules.html#explanation
1978
2049
 
1979
2050
  React.useEffect(function () {
1980
- onComputedProps(evaluatedOptions);
1981
- }); // present warning message if any required props are missing
2051
+ onComputedProps(evaluatedOptionsToUse);
2052
+ });
2053
+ React.useEffect(function () {
2054
+ return function () {
2055
+ if (useAsyncEvaluatedOptions) {
2056
+ async_dynamic_options_evaluator_1.default.reset(visualizationID);
2057
+ }
2058
+ }; // eslint-disable-next-line react-hooks/exhaustive-deps
2059
+ }, []); // present warning message if any required props are missing
1982
2060
 
1983
2061
  var _vizConfig$requiredPr = vizConfig.requiredProps,
1984
2062
  requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
1985
2063
  supports = vizConfig.supports;
1986
- var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptions);
2064
+ var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptionsToUse);
1987
2065
 
1988
2066
  if (missing.length > 0 && supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER)) {
1989
2067
  return React.createElement(MissingPropsMessage_1.default, {
@@ -2010,7 +2088,7 @@ var withDashboardViz = function withDashboardViz(opts) {
2010
2088
 
2011
2089
  if (Array.isArray(payloadKeys) && payloadKeys.length) {
2012
2090
  payloadKeys.forEach(function (p) {
2013
- payload[p] = evaluatedOptions[p];
2091
+ payload[p] = evaluatedOptionsToUse[p];
2014
2092
  });
2015
2093
  }
2016
2094
 
@@ -2029,7 +2107,7 @@ var withDashboardViz = function withDashboardViz(opts) {
2029
2107
  } // compute pure viz props which are not from options
2030
2108
 
2031
2109
 
2032
- var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props), evaluatedOptions), eventCallbackProps), {
2110
+ var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props), evaluatedOptionsToUse), eventCallbackProps), {
2033
2111
  themeFunc: themeFunc
2034
2112
  }));
2035
2113
  /**
@@ -2049,7 +2127,7 @@ var withDashboardViz = function withDashboardViz(opts) {
2049
2127
 
2050
2128
  var dataSourceMetadata = {};
2051
2129
  var OptionKey = 'paginateDataSourceKey';
2052
- var paginateDataSourceKey = lodash_1.has(evaluatedOptions, OptionKey) && evaluatedOptions[OptionKey] || 'primary';
2130
+ var paginateDataSourceKey = lodash_1.has(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
2053
2131
 
2054
2132
  if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && lodash_1.has(dataSources, paginateDataSourceKey)) {
2055
2133
  var requestParams = lodash_1.get(dataSources, [paginateDataSourceKey, 'requestParams'], {});
@@ -2079,7 +2157,7 @@ var withDashboardViz = function withDashboardViz(opts) {
2079
2157
  mode: mode,
2080
2158
  width: width,
2081
2159
  height: height
2082
- }, evaluatedOptions, computedVizProps, eventCallbackProps, dataSourceMetadata));
2160
+ }, evaluatedOptionsToUse, computedVizProps, eventCallbackProps, dataSourceMetadata));
2083
2161
  };
2084
2162
 
2085
2163
  DashboardViz.propTypes = Object.assign(Object.assign({}, SplunkVisualization_1.default.propTypes), ReactViz.propTypes);
@@ -2097,35 +2175,49 @@ exports.default = withDashboardViz;
2097
2175
 
2098
2176
  /***/ }),
2099
2177
 
2100
- /***/ 33:
2178
+ /***/ 36:
2101
2179
  /***/ (function(module, exports) {
2102
2180
 
2103
2181
  module.exports = require("@splunk/themes/getSettingsFromThemedProps");
2104
2182
 
2105
2183
  /***/ }),
2106
2184
 
2107
- /***/ 34:
2185
+ /***/ 37:
2108
2186
  /***/ (function(module, exports) {
2109
2187
 
2110
2188
  module.exports = require("@splunk/visualization-encoding/Options");
2111
2189
 
2112
2190
  /***/ }),
2113
2191
 
2114
- /***/ 35:
2192
+ /***/ 38:
2115
2193
  /***/ (function(module, exports) {
2116
2194
 
2117
2195
  module.exports = require("@splunk/visualizations-shared/SanitizeProps");
2118
2196
 
2119
2197
  /***/ }),
2120
2198
 
2121
- /***/ 36:
2199
+ /***/ 39:
2122
2200
  /***/ (function(module, exports) {
2123
2201
 
2124
2202
  module.exports = require("@splunk/moment");
2125
2203
 
2126
2204
  /***/ }),
2127
2205
 
2128
- /***/ 37:
2206
+ /***/ 4:
2207
+ /***/ (function(module, exports) {
2208
+
2209
+ module.exports = require("styled-components");
2210
+
2211
+ /***/ }),
2212
+
2213
+ /***/ 40:
2214
+ /***/ (function(module, exports) {
2215
+
2216
+ module.exports = require("@splunk/async-dynamic-options-evaluator");
2217
+
2218
+ /***/ }),
2219
+
2220
+ /***/ 41:
2129
2221
  /***/ (function(module, exports, __webpack_require__) {
2130
2222
 
2131
2223
  "use strict";
@@ -2143,7 +2235,7 @@ var T = __webpack_require__(0);
2143
2235
 
2144
2236
  var lodash_1 = __webpack_require__(3);
2145
2237
 
2146
- var VizActionHandler_1 = __webpack_require__(38); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
2238
+ var VizActionHandler_1 = __webpack_require__(42); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
2147
2239
 
2148
2240
 
2149
2241
  exports.INITIAL_WIDTH = 250;
@@ -2277,7 +2369,7 @@ exports.default = SplunkVisualization;
2277
2369
 
2278
2370
  /***/ }),
2279
2371
 
2280
- /***/ 38:
2372
+ /***/ 42:
2281
2373
  /***/ (function(module, exports, __webpack_require__) {
2282
2374
 
2283
2375
  "use strict";
@@ -2285,7 +2377,7 @@ exports.default = SplunkVisualization;
2285
2377
 
2286
2378
  var _classCallCheck = __webpack_require__(11);
2287
2379
 
2288
- var _createClass = __webpack_require__(19);
2380
+ var _createClass = __webpack_require__(20);
2289
2381
 
2290
2382
  Object.defineProperty(exports, "__esModule", {
2291
2383
  value: true
@@ -2315,269 +2407,121 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
2315
2407
 
2316
2408
  /***/ }),
2317
2409
 
2318
- /***/ 39:
2410
+ /***/ 420:
2319
2411
  /***/ (function(module, exports, __webpack_require__) {
2320
2412
 
2321
2413
  "use strict";
2322
2414
 
2323
2415
 
2324
- Object.defineProperty(exports, "__esModule", {
2325
- value: true
2326
- });
2327
- exports.validSortDirs = void 0;
2328
- exports.validSortDirs = ['asc', 'desc', 'none'];
2329
-
2330
- /***/ }),
2331
-
2332
- /***/ 4:
2333
- /***/ (function(module, exports) {
2334
-
2335
- module.exports = require("styled-components");
2336
-
2337
- /***/ }),
2338
-
2339
- /***/ 40:
2340
- /***/ (function(module, exports, __webpack_require__) {
2416
+ var __rest = this && this.__rest || function (s, e) {
2417
+ var t = {};
2341
2418
 
2342
- "use strict";
2419
+ for (var p in s) {
2420
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
2421
+ }
2343
2422
 
2423
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
2424
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
2425
+ }
2426
+ return t;
2427
+ };
2344
2428
 
2345
2429
  Object.defineProperty(exports, "__esModule", {
2346
2430
  value: true
2347
2431
  });
2348
- exports.useDeepMemo = void 0;
2432
+ exports.themes = exports.computeVizProps = exports.PureParallelCoordinates = exports.config = void 0;
2349
2433
 
2350
- var react_1 = __webpack_require__(1);
2434
+ var PureParallelCoordinates_1 = __webpack_require__(421);
2351
2435
 
2352
- var lodash_1 = __webpack_require__(3);
2353
- /**
2354
- * This hook evaluates and stores the result of a passed function and only
2355
- * re-evaluates the function when passed dependencies change.
2356
- *
2357
- * It is different from the internal React useMemo in the following aspects:
2358
- * - it only stores the last evaluated result
2359
- * - it uses a deep equality check to determine if dependencies have changed
2360
- *
2361
- * Inspired by apollo-client's useDeepMemo
2362
- *
2363
- * @param fn the function to be executed and
2364
- * @param dependencies an array of dependencies
2365
- */
2436
+ var withDashboardViz_1 = __webpack_require__(35);
2366
2437
 
2438
+ var config_1 = __webpack_require__(428);
2367
2439
 
2368
- var useDeepMemo = function useDeepMemo(fn, dependencies) {
2369
- var ref = react_1.useRef();
2440
+ var singleValueUtils_1 = __webpack_require__(23);
2370
2441
 
2371
- if (!ref.current || !lodash_1.isEqual(dependencies, ref.current.dependencies)) {
2372
- ref.current = {
2373
- dependencies: dependencies,
2374
- value: fn()
2375
- };
2442
+ exports.config = config_1.default;
2443
+ exports.PureParallelCoordinates = PureParallelCoordinates_1.default;
2444
+
2445
+ var computeVizProps = function computeVizProps(_a) {
2446
+ var themeFunc = _a.themeFunc,
2447
+ props = __rest(_a, ["themeFunc"]);
2448
+
2449
+ var defaultThemeColorVariables = ['defaultBackgroundColor', 'axisLineColor', 'axisLineHighlightColor', 'axisLabelColor', 'axisTitleColor', 'filterButtonDisabledColor', 'filterButtonActiveColor', 'filterTextColor', 'truncatedTextColor', 'filterSelectionColor', 'textShadowColor'];
2450
+ var defaultThemeColors = {};
2451
+ defaultThemeColorVariables.forEach(function (variable) {
2452
+ defaultThemeColors[variable] = themeFunc(variable);
2453
+ });
2454
+
2455
+ if (props.dataSources) {
2456
+ var _props$dataSources$pr = props.dataSources.primary.data,
2457
+ fields = _props$dataSources$pr.fields,
2458
+ columns = _props$dataSources$pr.columns;
2459
+ return Object.assign({
2460
+ fields: fields.map(function (field) {
2461
+ return field.name ? field.name : field;
2462
+ }),
2463
+ columns: columns
2464
+ }, defaultThemeColors);
2376
2465
  }
2377
2466
 
2378
- return ref.current.value;
2467
+ return defaultThemeColors;
2379
2468
  };
2380
2469
 
2381
- exports.useDeepMemo = useDeepMemo;
2470
+ exports.computeVizProps = computeVizProps;
2471
+ var viz = withDashboardViz_1.default({
2472
+ ReactViz: exports.PureParallelCoordinates,
2473
+ vizConfig: config_1.default,
2474
+ computeVizProps: exports.computeVizProps,
2475
+ useIconPlaceholder: function useIconPlaceholder(dataSources, loading) {
2476
+ return singleValueUtils_1.isLoadingOrNoColumns(dataSources, loading);
2477
+ }
2478
+ });
2479
+ exports.themes = config_1.default.themes;
2480
+ exports.default = viz;
2382
2481
 
2383
2482
  /***/ }),
2384
2483
 
2385
- /***/ 41:
2484
+ /***/ 421:
2386
2485
  /***/ (function(module, exports, __webpack_require__) {
2387
2486
 
2388
2487
  "use strict";
2389
2488
 
2390
2489
 
2490
+ var _toConsumableArray = __webpack_require__(8);
2491
+
2492
+ var __rest = this && this.__rest || function (s, e) {
2493
+ var t = {};
2494
+
2495
+ for (var p in s) {
2496
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
2497
+ }
2498
+
2499
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
2500
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
2501
+ }
2502
+ return t;
2503
+ };
2504
+
2391
2505
  Object.defineProperty(exports, "__esModule", {
2392
2506
  value: true
2393
2507
  });
2394
- exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
2395
2508
 
2396
2509
  var React = __webpack_require__(1);
2397
2510
 
2511
+ var d3_array_1 = __webpack_require__(58);
2512
+
2513
+ var d3_scale_1 = __webpack_require__(83);
2514
+
2398
2515
  var T = __webpack_require__(0);
2399
2516
 
2400
2517
  var i18n_1 = __webpack_require__(2);
2401
2518
 
2402
2519
  var Message_1 = __webpack_require__(10);
2403
2520
 
2404
- var FixedSizeContainer_1 = __webpack_require__(13);
2405
- /**
2406
- * @method isMissing
2407
- * @param {any} v
2408
- * @returns {boolean} true if the input value === null or undefined
2409
- */
2410
-
2411
-
2412
- var isMissing = function isMissing(v) {
2413
- return v === null || v === undefined;
2414
- };
2521
+ var ParallelCoordinatesChart_1 = __webpack_require__(422);
2415
2522
 
2416
- exports.isMissing = isMissing;
2417
- /**
2418
- * @method misskingKeys
2419
- * @param {string[]} keys
2420
- * @param {object} target
2421
- * @returns {string[]} the keys of missing required props
2422
- */
2423
-
2424
- var missingKeys = function missingKeys(keys, target) {
2425
- return keys.filter(function (k) {
2426
- return exports.isMissing(target[k]);
2427
- });
2428
- };
2429
-
2430
- exports.missingKeys = missingKeys;
2431
- var propTypes = {
2432
- width: T.oneOfType([T.string, T.number]),
2433
- height: T.oneOfType([T.string, T.number]),
2434
- // eslint-disable-next-line react/no-unused-prop-types
2435
- backgroundColor: T.string,
2436
- missingProps: T.arrayOf(T.string)
2437
- };
2438
- /**
2439
- * @method MissingPropsMessage
2440
- * @param {MissingPropsProps} props
2441
- * @returns {React.ReactElement}
2442
- */
2443
-
2444
- var MissingPropsMessage = function MissingPropsMessage(props) {
2445
- var width = props.width,
2446
- height = props.height,
2447
- missingProps = props.missingProps;
2448
- return React.createElement(Message_1.default, {
2449
- "data-test": "message",
2450
- width: width,
2451
- height: height,
2452
- message: i18n_1._("Missing property: ".concat(missingProps.join(', ')))
2453
- });
2454
- };
2455
-
2456
- exports.MissingPropsMessage = MissingPropsMessage;
2457
- exports.MissingPropsMessage.propTypes = propTypes;
2458
- exports.MissingPropsMessage.defaultProps = {
2459
- width: '100%',
2460
- height: 250
2461
- };
2462
- exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
2463
-
2464
- /***/ }),
2465
-
2466
- /***/ 412:
2467
- /***/ (function(module, exports, __webpack_require__) {
2468
-
2469
- "use strict";
2470
-
2471
-
2472
- var __rest = this && this.__rest || function (s, e) {
2473
- var t = {};
2474
-
2475
- for (var p in s) {
2476
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
2477
- }
2478
-
2479
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
2480
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
2481
- }
2482
- return t;
2483
- };
2484
-
2485
- Object.defineProperty(exports, "__esModule", {
2486
- value: true
2487
- });
2488
- exports.themes = exports.computeVizProps = exports.PureParallelCoordinates = exports.config = void 0;
2489
-
2490
- var PureParallelCoordinates_1 = __webpack_require__(413);
2491
-
2492
- var withDashboardViz_1 = __webpack_require__(32);
2493
-
2494
- var config_1 = __webpack_require__(420);
2495
-
2496
- var singleValueUtils_1 = __webpack_require__(22);
2497
-
2498
- exports.config = config_1.default;
2499
- exports.PureParallelCoordinates = PureParallelCoordinates_1.default;
2500
-
2501
- var computeVizProps = function computeVizProps(_a) {
2502
- var themeFunc = _a.themeFunc,
2503
- props = __rest(_a, ["themeFunc"]);
2504
-
2505
- var defaultThemeColorVariables = ['defaultBackgroundColor', 'axisLineColor', 'axisLineHighlightColor', 'axisLabelColor', 'axisTitleColor', 'filterButtonDisabledColor', 'filterButtonActiveColor', 'filterTextColor', 'truncatedTextColor', 'filterSelectionColor', 'textShadowColor'];
2506
- var defaultThemeColors = {};
2507
- defaultThemeColorVariables.forEach(function (variable) {
2508
- defaultThemeColors[variable] = themeFunc(variable);
2509
- });
2510
-
2511
- if (props.dataSources) {
2512
- var _props$dataSources$pr = props.dataSources.primary.data,
2513
- fields = _props$dataSources$pr.fields,
2514
- columns = _props$dataSources$pr.columns;
2515
- return Object.assign({
2516
- fields: fields.map(function (field) {
2517
- return field.name ? field.name : field;
2518
- }),
2519
- columns: columns
2520
- }, defaultThemeColors);
2521
- }
2522
-
2523
- return defaultThemeColors;
2524
- };
2525
-
2526
- exports.computeVizProps = computeVizProps;
2527
- var viz = withDashboardViz_1.default({
2528
- ReactViz: exports.PureParallelCoordinates,
2529
- vizConfig: config_1.default,
2530
- computeVizProps: exports.computeVizProps,
2531
- useIconPlaceholder: function useIconPlaceholder(dataSources, loading) {
2532
- return singleValueUtils_1.isLoadingOrNoColumns(dataSources, loading);
2533
- }
2534
- });
2535
- exports.themes = config_1.default.themes;
2536
- exports.default = viz;
2537
-
2538
- /***/ }),
2539
-
2540
- /***/ 413:
2541
- /***/ (function(module, exports, __webpack_require__) {
2542
-
2543
- "use strict";
2544
-
2545
-
2546
- var _toConsumableArray = __webpack_require__(8);
2547
-
2548
- var __rest = this && this.__rest || function (s, e) {
2549
- var t = {};
2550
-
2551
- for (var p in s) {
2552
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
2553
- }
2554
-
2555
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
2556
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
2557
- }
2558
- return t;
2559
- };
2560
-
2561
- Object.defineProperty(exports, "__esModule", {
2562
- value: true
2563
- });
2564
-
2565
- var React = __webpack_require__(1);
2566
-
2567
- var d3_array_1 = __webpack_require__(55);
2568
-
2569
- var d3_scale_1 = __webpack_require__(80);
2570
-
2571
- var T = __webpack_require__(0);
2572
-
2573
- var i18n_1 = __webpack_require__(2);
2574
-
2575
- var Message_1 = __webpack_require__(10);
2576
-
2577
- var ParallelCoordinatesChart_1 = __webpack_require__(414);
2578
-
2579
- var PureParallelCoordinates = function PureParallelCoordinates(_a) {
2580
- var props = __rest(_a, []);
2523
+ var PureParallelCoordinates = function PureParallelCoordinates(_a) {
2524
+ var props = __rest(_a, []);
2581
2525
 
2582
2526
  var width = props.width,
2583
2527
  height = props.height,
@@ -2767,7 +2711,7 @@ exports.default = PureParallelCoordinates;
2767
2711
 
2768
2712
  /***/ }),
2769
2713
 
2770
- /***/ 414:
2714
+ /***/ 422:
2771
2715
  /***/ (function(module, exports, __webpack_require__) {
2772
2716
 
2773
2717
  "use strict";
@@ -2775,7 +2719,7 @@ exports.default = PureParallelCoordinates;
2775
2719
 
2776
2720
  var _toConsumableArray = __webpack_require__(8);
2777
2721
 
2778
- var _slicedToArray = __webpack_require__(51);
2722
+ var _slicedToArray = __webpack_require__(17);
2779
2723
 
2780
2724
  var __rest = this && this.__rest || function (s, e) {
2781
2725
  var t = {};
@@ -2798,17 +2742,17 @@ var React = __webpack_require__(1);
2798
2742
 
2799
2743
  var styled_components_1 = __webpack_require__(4);
2800
2744
 
2801
- var d3_selection_1 = __webpack_require__(415);
2745
+ var d3_selection_1 = __webpack_require__(423);
2802
2746
 
2803
- var d3_brush_1 = __webpack_require__(416);
2747
+ var d3_brush_1 = __webpack_require__(424);
2804
2748
 
2805
- var d3_axis_1 = __webpack_require__(417);
2749
+ var d3_axis_1 = __webpack_require__(425);
2806
2750
 
2807
- var d3_drag_1 = __webpack_require__(418);
2751
+ var d3_drag_1 = __webpack_require__(426);
2808
2752
 
2809
- var rgb_hex_converter_1 = __webpack_require__(146);
2753
+ var rgb_hex_converter_1 = __webpack_require__(152);
2810
2754
 
2811
- var ParallelCoordinatesCanvas_1 = __webpack_require__(419);
2755
+ var ParallelCoordinatesCanvas_1 = __webpack_require__(427);
2812
2756
 
2813
2757
  var ChartDiv = styled_components_1.default.div.withConfig({
2814
2758
  displayName: "ParallelCoordinatesChart__ChartDiv",
@@ -3136,35 +3080,35 @@ exports.default = ParallelCoordinatesChart;
3136
3080
 
3137
3081
  /***/ }),
3138
3082
 
3139
- /***/ 415:
3083
+ /***/ 423:
3140
3084
  /***/ (function(module, exports) {
3141
3085
 
3142
3086
  module.exports = require("d3-selection");
3143
3087
 
3144
3088
  /***/ }),
3145
3089
 
3146
- /***/ 416:
3090
+ /***/ 424:
3147
3091
  /***/ (function(module, exports) {
3148
3092
 
3149
3093
  module.exports = require("d3-brush");
3150
3094
 
3151
3095
  /***/ }),
3152
3096
 
3153
- /***/ 417:
3097
+ /***/ 425:
3154
3098
  /***/ (function(module, exports) {
3155
3099
 
3156
3100
  module.exports = require("d3-axis");
3157
3101
 
3158
3102
  /***/ }),
3159
3103
 
3160
- /***/ 418:
3104
+ /***/ 426:
3161
3105
  /***/ (function(module, exports) {
3162
3106
 
3163
3107
  module.exports = require("d3-drag");
3164
3108
 
3165
3109
  /***/ }),
3166
3110
 
3167
- /***/ 419:
3111
+ /***/ 427:
3168
3112
  /***/ (function(module, exports, __webpack_require__) {
3169
3113
 
3170
3114
  "use strict";
@@ -3189,7 +3133,7 @@ Object.defineProperty(exports, "__esModule", {
3189
3133
 
3190
3134
  var React = __webpack_require__(1);
3191
3135
 
3192
- var rgb_hex_converter_1 = __webpack_require__(146);
3136
+ var rgb_hex_converter_1 = __webpack_require__(152);
3193
3137
 
3194
3138
  var ParallelCoordinatesCanvas = function ParallelCoordinatesCanvas(_a) {
3195
3139
  var props = __rest(_a, []);
@@ -3325,60 +3269,7 @@ exports.default = ParallelCoordinatesCanvas;
3325
3269
 
3326
3270
  /***/ }),
3327
3271
 
3328
- /***/ 42:
3329
- /***/ (function(module, exports, __webpack_require__) {
3330
-
3331
- "use strict";
3332
-
3333
-
3334
- Object.defineProperty(exports, "__esModule", {
3335
- value: true
3336
- });
3337
-
3338
- var React = __webpack_require__(1);
3339
-
3340
- var styled_components_1 = __webpack_require__(4);
3341
-
3342
- var hocUtils_1 = __webpack_require__(14);
3343
-
3344
- var Cover = styled_components_1.default.div.withConfig({
3345
- displayName: "withEditModeCover__Cover",
3346
- componentId: "sc-1gsbnxb-0"
3347
- })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
3348
- var Blocker = styled_components_1.default.div.attrs({
3349
- 'data-splunk-visualization-version': "25.5.0 - 12c0447a7"
3350
- }).withConfig({
3351
- displayName: "withEditModeCover__Blocker",
3352
- componentId: "sc-1gsbnxb-1"
3353
- })(["position:relative;width:100%;height:100%;"]);
3354
- /**
3355
- * HOC that renders a cover layer in edit mode
3356
- * @method withEditModeCover
3357
- * @param {ExtendedDashViz} Visualization
3358
- * @returns {ExtendedDashViz} Wrapper
3359
- */
3360
-
3361
- var withEditModeCover = function withEditModeCover(Visualization, disableEditModeCover) {
3362
- var Wrapper = function Wrapper(props) {
3363
- var mode = props.mode;
3364
- var showEditCover = mode === 'edit' && !disableEditModeCover;
3365
- return React.createElement(Blocker, null, React.createElement(Visualization, Object.assign({}, props)), showEditCover && React.createElement(Cover, {
3366
- "data-test": "edit-mode-cover"
3367
- }));
3368
- };
3369
-
3370
- hocUtils_1.extendStaticWrapperProps({
3371
- Wrapper: Wrapper,
3372
- Visualization: Visualization
3373
- });
3374
- return Wrapper;
3375
- };
3376
-
3377
- exports.default = withEditModeCover;
3378
-
3379
- /***/ }),
3380
-
3381
- /***/ 420:
3272
+ /***/ 428:
3382
3273
  /***/ (function(module, exports, __webpack_require__) {
3383
3274
 
3384
3275
  "use strict";
@@ -3392,23 +3283,23 @@ var i18n_1 = __webpack_require__(2);
3392
3283
 
3393
3284
  var schemaUtils_1 = __webpack_require__(16);
3394
3285
 
3395
- var pick_1 = __webpack_require__(21);
3286
+ var pick_1 = __webpack_require__(22);
3396
3287
 
3397
3288
  var variables_1 = __webpack_require__(9);
3398
3289
 
3399
- var visualization_color_palettes_1 = __webpack_require__(46);
3290
+ var visualization_color_palettes_1 = __webpack_require__(50);
3400
3291
 
3401
- var visualization_icons_1 = __webpack_require__(47);
3292
+ var visualization_icons_1 = __webpack_require__(51);
3402
3293
 
3403
- var placeholders_1 = __webpack_require__(44);
3294
+ var placeholders_1 = __webpack_require__(48);
3404
3295
 
3405
3296
  var VizBehavior_1 = __webpack_require__(6);
3406
3297
 
3407
- var configUtils_1 = __webpack_require__(17);
3298
+ var configUtils_1 = __webpack_require__(18);
3408
3299
 
3409
- var VizCategory_1 = __webpack_require__(31);
3300
+ var VizCategory_1 = __webpack_require__(34);
3410
3301
 
3411
- var BackgroundColor_1 = __webpack_require__(49);
3302
+ var BackgroundColor_1 = __webpack_require__(53);
3412
3303
 
3413
3304
  var dataContract = {
3414
3305
  requiredDataSources: [{
@@ -3620,6 +3511,200 @@ exports.default = configUtils_1.enhanceConfig(config);
3620
3511
  "use strict";
3621
3512
 
3622
3513
 
3514
+ Object.defineProperty(exports, "__esModule", {
3515
+ value: true
3516
+ });
3517
+ exports.validSortDirs = void 0;
3518
+ exports.validSortDirs = ['asc', 'desc', 'none'];
3519
+
3520
+ /***/ }),
3521
+
3522
+ /***/ 44:
3523
+ /***/ (function(module, exports, __webpack_require__) {
3524
+
3525
+ "use strict";
3526
+
3527
+
3528
+ Object.defineProperty(exports, "__esModule", {
3529
+ value: true
3530
+ });
3531
+ exports.useDeepMemo = void 0;
3532
+
3533
+ var react_1 = __webpack_require__(1);
3534
+
3535
+ var lodash_1 = __webpack_require__(3);
3536
+ /**
3537
+ * This hook evaluates and stores the result of a passed function and only
3538
+ * re-evaluates the function when passed dependencies change.
3539
+ *
3540
+ * It is different from the internal React useMemo in the following aspects:
3541
+ * - it only stores the last evaluated result
3542
+ * - it uses a deep equality check to determine if dependencies have changed
3543
+ *
3544
+ * Inspired by apollo-client's useDeepMemo
3545
+ *
3546
+ * @param fn the function to be executed and
3547
+ * @param dependencies an array of dependencies
3548
+ */
3549
+
3550
+
3551
+ var useDeepMemo = function useDeepMemo(fn, dependencies) {
3552
+ var ref = react_1.useRef();
3553
+
3554
+ if (!ref.current || !lodash_1.isEqual(dependencies, ref.current.dependencies)) {
3555
+ ref.current = {
3556
+ dependencies: dependencies,
3557
+ value: fn()
3558
+ };
3559
+ }
3560
+
3561
+ return ref.current.value;
3562
+ };
3563
+
3564
+ exports.useDeepMemo = useDeepMemo;
3565
+
3566
+ /***/ }),
3567
+
3568
+ /***/ 45:
3569
+ /***/ (function(module, exports, __webpack_require__) {
3570
+
3571
+ "use strict";
3572
+
3573
+
3574
+ Object.defineProperty(exports, "__esModule", {
3575
+ value: true
3576
+ });
3577
+ exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
3578
+
3579
+ var React = __webpack_require__(1);
3580
+
3581
+ var T = __webpack_require__(0);
3582
+
3583
+ var i18n_1 = __webpack_require__(2);
3584
+
3585
+ var Message_1 = __webpack_require__(10);
3586
+
3587
+ var FixedSizeContainer_1 = __webpack_require__(13);
3588
+ /**
3589
+ * @method isMissing
3590
+ * @param {any} v
3591
+ * @returns {boolean} true if the input value === null or undefined
3592
+ */
3593
+
3594
+
3595
+ var isMissing = function isMissing(v) {
3596
+ return v === null || v === undefined;
3597
+ };
3598
+
3599
+ exports.isMissing = isMissing;
3600
+ /**
3601
+ * @method misskingKeys
3602
+ * @param {string[]} keys
3603
+ * @param {object} target
3604
+ * @returns {string[]} the keys of missing required props
3605
+ */
3606
+
3607
+ var missingKeys = function missingKeys(keys, target) {
3608
+ return keys.filter(function (k) {
3609
+ return exports.isMissing(target[k]);
3610
+ });
3611
+ };
3612
+
3613
+ exports.missingKeys = missingKeys;
3614
+ var propTypes = {
3615
+ width: T.oneOfType([T.string, T.number]),
3616
+ height: T.oneOfType([T.string, T.number]),
3617
+ // eslint-disable-next-line react/no-unused-prop-types
3618
+ backgroundColor: T.string,
3619
+ missingProps: T.arrayOf(T.string)
3620
+ };
3621
+ /**
3622
+ * @method MissingPropsMessage
3623
+ * @param {MissingPropsProps} props
3624
+ * @returns {React.ReactElement}
3625
+ */
3626
+
3627
+ var MissingPropsMessage = function MissingPropsMessage(props) {
3628
+ var width = props.width,
3629
+ height = props.height,
3630
+ missingProps = props.missingProps;
3631
+ return React.createElement(Message_1.default, {
3632
+ "data-test": "message",
3633
+ width: width,
3634
+ height: height,
3635
+ message: i18n_1._("Missing property: ".concat(missingProps.join(', ')))
3636
+ });
3637
+ };
3638
+
3639
+ exports.MissingPropsMessage = MissingPropsMessage;
3640
+ exports.MissingPropsMessage.propTypes = propTypes;
3641
+ exports.MissingPropsMessage.defaultProps = {
3642
+ width: '100%',
3643
+ height: 250
3644
+ };
3645
+ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
3646
+
3647
+ /***/ }),
3648
+
3649
+ /***/ 46:
3650
+ /***/ (function(module, exports, __webpack_require__) {
3651
+
3652
+ "use strict";
3653
+
3654
+
3655
+ Object.defineProperty(exports, "__esModule", {
3656
+ value: true
3657
+ });
3658
+
3659
+ var React = __webpack_require__(1);
3660
+
3661
+ var styled_components_1 = __webpack_require__(4);
3662
+
3663
+ var hocUtils_1 = __webpack_require__(14);
3664
+
3665
+ var Cover = styled_components_1.default.div.withConfig({
3666
+ displayName: "withEditModeCover__Cover",
3667
+ componentId: "sc-1gsbnxb-0"
3668
+ })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
3669
+ var Blocker = styled_components_1.default.div.attrs({
3670
+ 'data-splunk-visualization-version': "25.6.0 - f5eb3abf9"
3671
+ }).withConfig({
3672
+ displayName: "withEditModeCover__Blocker",
3673
+ componentId: "sc-1gsbnxb-1"
3674
+ })(["position:relative;width:100%;height:100%;"]);
3675
+ /**
3676
+ * HOC that renders a cover layer in edit mode
3677
+ * @method withEditModeCover
3678
+ * @param {ExtendedDashViz} Visualization
3679
+ * @returns {ExtendedDashViz} Wrapper
3680
+ */
3681
+
3682
+ var withEditModeCover = function withEditModeCover(Visualization, disableEditModeCover) {
3683
+ var Wrapper = function Wrapper(props) {
3684
+ var mode = props.mode;
3685
+ var showEditCover = mode === 'edit' && !disableEditModeCover;
3686
+ return React.createElement(Blocker, null, React.createElement(Visualization, Object.assign({}, props)), showEditCover && React.createElement(Cover, {
3687
+ "data-test": "edit-mode-cover"
3688
+ }));
3689
+ };
3690
+
3691
+ hocUtils_1.extendStaticWrapperProps({
3692
+ Wrapper: Wrapper,
3693
+ Visualization: Visualization
3694
+ });
3695
+ return Wrapper;
3696
+ };
3697
+
3698
+ exports.default = withEditModeCover;
3699
+
3700
+ /***/ }),
3701
+
3702
+ /***/ 47:
3703
+ /***/ (function(module, exports, __webpack_require__) {
3704
+
3705
+ "use strict";
3706
+
3707
+
3623
3708
  Object.defineProperty(exports, "__esModule", {
3624
3709
  value: true
3625
3710
  });
@@ -3630,7 +3715,7 @@ var colorUtils_1 = __webpack_require__(12);
3630
3715
 
3631
3716
  var variables_1 = __webpack_require__(9);
3632
3717
 
3633
- var IconPlaceholder_1 = __webpack_require__(27);
3718
+ var IconPlaceholder_1 = __webpack_require__(30);
3634
3719
 
3635
3720
  var VizBehavior_1 = __webpack_require__(6);
3636
3721
 
@@ -3679,35 +3764,35 @@ exports.default = withPlaceholder;
3679
3764
 
3680
3765
  /***/ }),
3681
3766
 
3682
- /***/ 44:
3767
+ /***/ 48:
3683
3768
  /***/ (function(module, exports) {
3684
3769
 
3685
3770
  module.exports = require("@splunk/visualization-icons/placeholders");
3686
3771
 
3687
3772
  /***/ }),
3688
3773
 
3689
- /***/ 45:
3774
+ /***/ 49:
3690
3775
  /***/ (function(module, exports) {
3691
3776
 
3692
3777
  module.exports = require("@splunk/visualizations-shared/colorConstants");
3693
3778
 
3694
3779
  /***/ }),
3695
3780
 
3696
- /***/ 46:
3781
+ /***/ 50:
3697
3782
  /***/ (function(module, exports) {
3698
3783
 
3699
3784
  module.exports = require("@splunk/visualization-color-palettes");
3700
3785
 
3701
3786
  /***/ }),
3702
3787
 
3703
- /***/ 47:
3788
+ /***/ 51:
3704
3789
  /***/ (function(module, exports) {
3705
3790
 
3706
3791
  module.exports = require("@splunk/visualization-icons");
3707
3792
 
3708
3793
  /***/ }),
3709
3794
 
3710
- /***/ 49:
3795
+ /***/ 53:
3711
3796
  /***/ (function(module, exports, __webpack_require__) {
3712
3797
 
3713
3798
  "use strict";
@@ -3738,21 +3823,14 @@ exports.default = background;
3738
3823
 
3739
3824
  /***/ }),
3740
3825
 
3741
- /***/ 50:
3826
+ /***/ 54:
3742
3827
  /***/ (function(module, exports) {
3743
3828
 
3744
3829
  module.exports = require("@splunk/visualizations-shared/domUtils");
3745
3830
 
3746
3831
  /***/ }),
3747
3832
 
3748
- /***/ 51:
3749
- /***/ (function(module, exports) {
3750
-
3751
- module.exports = require("@babel/runtime/helpers/slicedToArray");
3752
-
3753
- /***/ }),
3754
-
3755
- /***/ 55:
3833
+ /***/ 58:
3756
3834
  /***/ (function(module, exports) {
3757
3835
 
3758
3836
  module.exports = require("d3-array");
@@ -3811,7 +3889,7 @@ module.exports = require("@babel/runtime/helpers/toConsumableArray");
3811
3889
 
3812
3890
  /***/ }),
3813
3891
 
3814
- /***/ 80:
3892
+ /***/ 83:
3815
3893
  /***/ (function(module, exports) {
3816
3894
 
3817
3895
  module.exports = require("d3-scale");