@splunk/visualizations 25.13.1 → 26.0.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 (147) hide show
  1. package/Area.config.js +216 -216
  2. package/Area.config.js.map +1 -1
  3. package/Area.js +529 -561
  4. package/Area.js.map +1 -1
  5. package/Bar.config.js +213 -213
  6. package/Bar.config.js.map +1 -1
  7. package/Bar.js +394 -386
  8. package/Bar.js.map +1 -1
  9. package/Bubble.config.js +140 -140
  10. package/Bubble.config.js.map +1 -1
  11. package/Bubble.js +313 -305
  12. package/Bubble.js.map +1 -1
  13. package/ChoroplethSvg.config.js +15 -15
  14. package/ChoroplethSvg.config.js.map +1 -1
  15. package/ChoroplethSvg.js +149 -144
  16. package/ChoroplethSvg.js.map +1 -1
  17. package/Column.config.js +205 -205
  18. package/Column.config.js.map +1 -1
  19. package/Column.js +387 -379
  20. package/Column.js.map +1 -1
  21. package/Ellipse.config.js +45 -45
  22. package/Ellipse.config.js.map +1 -1
  23. package/Ellipse.js +157 -144
  24. package/Ellipse.js.map +1 -1
  25. package/Events.config.js +11 -11
  26. package/Events.config.js.map +1 -1
  27. package/Events.js +273 -261
  28. package/Events.js.map +1 -1
  29. package/FillerGauge.config.js +46 -46
  30. package/FillerGauge.config.js.map +1 -1
  31. package/FillerGauge.js +267 -262
  32. package/FillerGauge.js.map +1 -1
  33. package/Image.config.js +8 -8
  34. package/Image.config.js.map +1 -1
  35. package/Image.js +110 -104
  36. package/Image.js.map +1 -1
  37. package/Line.config.js +220 -220
  38. package/Line.config.js.map +1 -1
  39. package/Line.js +404 -396
  40. package/Line.js.map +1 -1
  41. package/LinkGraph.config.js +27 -27
  42. package/LinkGraph.config.js.map +1 -1
  43. package/LinkGraph.js +557 -548
  44. package/LinkGraph.js.map +1 -1
  45. package/Map.config.js +71 -71
  46. package/Map.config.js.map +1 -1
  47. package/Map.js +471 -465
  48. package/Map.js.map +1 -1
  49. package/Markdown.config.js +23 -23
  50. package/Markdown.config.js.map +1 -1
  51. package/Markdown.js +151 -145
  52. package/Markdown.js.map +1 -1
  53. package/MarkerGauge.config.js +84 -84
  54. package/MarkerGauge.config.js.map +1 -1
  55. package/MarkerGauge.js +295 -289
  56. package/MarkerGauge.js.map +1 -1
  57. package/ParallelCoordinates.config.js +23 -23
  58. package/ParallelCoordinates.config.js.map +1 -1
  59. package/ParallelCoordinates.js +164 -162
  60. package/ParallelCoordinates.js.map +1 -1
  61. package/Pie.config.js +24 -24
  62. package/Pie.config.js.map +1 -1
  63. package/Pie.js +233 -228
  64. package/Pie.js.map +1 -1
  65. package/Punchcard.config.js +33 -33
  66. package/Punchcard.config.js.map +1 -1
  67. package/Punchcard.js +278 -279
  68. package/Punchcard.js.map +1 -1
  69. package/Rectangle.config.js +46 -46
  70. package/Rectangle.config.js.map +1 -1
  71. package/Rectangle.js +154 -142
  72. package/Rectangle.js.map +1 -1
  73. package/Sankey.config.js +19 -19
  74. package/Sankey.config.js.map +1 -1
  75. package/Sankey.js +281 -275
  76. package/Sankey.js.map +1 -1
  77. package/Scatter.config.js +135 -135
  78. package/Scatter.config.js.map +1 -1
  79. package/Scatter.js +304 -299
  80. package/Scatter.js.map +1 -1
  81. package/SingleValue.config.js +119 -119
  82. package/SingleValue.config.js.map +1 -1
  83. package/SingleValue.js +359 -341
  84. package/SingleValue.js.map +1 -1
  85. package/SingleValueBasic.js +14 -14
  86. package/SingleValueBasic.js.map +1 -1
  87. package/SingleValueIcon.config.js +117 -117
  88. package/SingleValueIcon.config.js.map +1 -1
  89. package/SingleValueIcon.js +373 -371
  90. package/SingleValueIcon.js.map +1 -1
  91. package/SingleValueRadial.config.js +157 -115
  92. package/SingleValueRadial.config.js.map +1 -1
  93. package/SingleValueRadial.js +1114 -540
  94. package/SingleValueRadial.js.map +1 -1
  95. package/SparkLine.js +50 -20
  96. package/SparkLine.js.map +1 -1
  97. package/Table.config.js +54 -54
  98. package/Table.config.js.map +1 -1
  99. package/Table.js +302 -286
  100. package/Table.js.map +1 -1
  101. package/common/Charting.js +41 -41
  102. package/common/Charting.js.map +1 -1
  103. package/common/EventsDoc.js +15 -14
  104. package/common/EventsDoc.js.map +1 -1
  105. package/common/GaugeMajorTicks.js +2 -2
  106. package/common/GaugeMajorTicks.js.map +1 -1
  107. package/common/GaugeValueMarker.js +2 -2
  108. package/common/GaugeValueMarker.js.map +1 -1
  109. package/common/OptionsDoc.js +22 -22
  110. package/common/OptionsDoc.js.map +1 -1
  111. package/common/OverviewDoc.js +32 -27
  112. package/common/OverviewDoc.js.map +1 -1
  113. package/common/SplunkVisualization.js +4 -4
  114. package/common/SplunkVisualization.js.map +1 -1
  115. package/common/SplunkVisualizationApi.js +2 -2
  116. package/common/SplunkVisualizationApi.js.map +1 -1
  117. package/common/ThemesDoc.js +14 -14
  118. package/common/ThemesDoc.js.map +1 -1
  119. package/common/chartingUtils.js +12 -12
  120. package/common/chartingUtils.js.map +1 -1
  121. package/common/docUtils.js +4 -4
  122. package/common/docUtils.js.map +1 -1
  123. package/common/gaugeUtils.js +112 -112
  124. package/common/gaugeUtils.js.map +1 -1
  125. package/common/shapeUtils.js +21 -15
  126. package/common/shapeUtils.js.map +1 -1
  127. package/common/utils/configUtils.js +10 -9
  128. package/common/utils/configUtils.js.map +1 -1
  129. package/common/utils/dataUtils.js +2 -2
  130. package/common/utils/dataUtils.js.map +1 -1
  131. package/common/utils/hocUtils.js +2 -2
  132. package/common/utils/hocUtils.js.map +1 -1
  133. package/common/utils/layoutUtils.js +2 -2
  134. package/common/utils/layoutUtils.js.map +1 -1
  135. package/common/utils/mapUtils.js +84 -80
  136. package/common/utils/mapUtils.js.map +1 -1
  137. package/common/utils/singleValueUtils.js +2 -2
  138. package/common/utils/singleValueUtils.js.map +1 -1
  139. package/common/utils/testHelper.js +27 -9
  140. package/common/utils/testHelper.js.map +1 -1
  141. package/common/utils/trellisUtils.js +26 -26
  142. package/common/utils/trellisUtils.js.map +1 -1
  143. package/common/utils/urlUtils.js +2 -2
  144. package/common/utils/urlUtils.js.map +1 -1
  145. package/common/withDashboardViz.js +107 -104
  146. package/common/withDashboardViz.js.map +1 -1
  147. package/package.json +19 -19
package/Ellipse.js CHANGED
@@ -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 = 197);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 200);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ([
@@ -212,14 +212,14 @@ var Item = styled_components_1.default.div.attrs(function (_ref) {
212
212
  var width = _ref.width;
213
213
  return {
214
214
  style: {
215
- width: style_1.toPx(width)
215
+ width: (0, style_1.toPx)(width)
216
216
  }
217
217
  };
218
218
  }).withConfig({
219
219
  displayName: "FixedSizeContainer__Item",
220
220
  componentId: "sc-1yhgpod-0"
221
221
  })(["position:relative;background-color:", "};"], function (props) {
222
- return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
222
+ return (0, colorUtils_1.isColor)(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
223
223
  });
224
224
  // Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
225
225
  var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
@@ -227,16 +227,16 @@ var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
227
227
  height = _ref2.height;
228
228
  return {
229
229
  style: Object.assign(Object.assign({}, width && {
230
- width: style_1.toPx(width)
230
+ width: (0, style_1.toPx)(width)
231
231
  }), height && {
232
- height: style_1.toPx(height)
232
+ height: (0, style_1.toPx)(height)
233
233
  })
234
234
  };
235
235
  }).withConfig({
236
236
  displayName: "FixedSizeContainer__FixSizeItem",
237
237
  componentId: "sc-1yhgpod-1"
238
238
  })(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
239
- return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
239
+ return (0, colorUtils_1.isColor)(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
240
240
  });
241
241
  var ItemContent = styled_components_1.default.div.withConfig({
242
242
  displayName: "FixedSizeContainer__ItemContent",
@@ -260,7 +260,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
260
260
  }
261
261
  return React.createElement(FixSizeItem, {
262
262
  "data-test": "fix-size-item",
263
- "data-splunk-visualization-version": "25.13.1 - ea48ec41e",
263
+ "data-splunk-visualization-version": "26.0.0 - 2f7458907",
264
264
  width: width,
265
265
  height: height,
266
266
  backgroundColor: backgroundColor
@@ -499,8 +499,8 @@ function hasCompatibleOptions(vizOptions, presetOptions) {
499
499
  */
500
500
  function getInitialPreset(vizContext, vizOptions, presets) {
501
501
  return presets.find(function (preset) {
502
- var presetContext = lodash_1.get(preset, ['value', 'context'], {});
503
- var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
502
+ var presetContext = (0, lodash_1.get)(preset, ['value', 'context'], {});
503
+ var presetOptions = (0, lodash_1.get)(preset, ['value', 'options'], {});
504
504
  var presetContextKeys = Object.keys(presetContext);
505
505
  var presetOptionKeys = Object.keys(presetOptions);
506
506
  // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
@@ -517,7 +517,7 @@ exports.getInitialPreset = getInitialPreset;
517
517
  * @returns {{ label: string; value; string }[]} array of { label, value } tuples
518
518
  */
519
519
  function generatePrecisionValues(numPrecisionValues) {
520
- return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
520
+ return (0, lodash_1.range)(0, numPrecisionValues + 1).map(function (i) {
521
521
  return {
522
522
  label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
523
523
  value: i
@@ -564,35 +564,41 @@ module.exports = require("@splunk/themes/pick");
564
564
  /* 25 */
565
565
  /***/ (function(module, exports) {
566
566
 
567
- module.exports = require("@splunk/visualization-context/TimezoneContext");
567
+ module.exports = require("@splunk/ui-utils/id");
568
568
 
569
569
  /***/ }),
570
570
  /* 26 */
571
571
  /***/ (function(module, exports) {
572
572
 
573
- module.exports = require("@splunk/visualizations-shared/hocUtils");
573
+ module.exports = require("@splunk/visualization-context/TimezoneContext");
574
574
 
575
575
  /***/ }),
576
576
  /* 27 */
577
577
  /***/ (function(module, exports) {
578
578
 
579
- module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
579
+ module.exports = require("@splunk/visualizations-shared/hocUtils");
580
580
 
581
581
  /***/ }),
582
582
  /* 28 */
583
583
  /***/ (function(module, exports) {
584
584
 
585
- module.exports = require("@splunk/visualizations-shared/propUtils");
585
+ module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
586
586
 
587
587
  /***/ }),
588
588
  /* 29 */
589
589
  /***/ (function(module, exports) {
590
590
 
591
+ module.exports = require("@splunk/visualizations-shared/propUtils");
592
+
593
+ /***/ }),
594
+ /* 30 */
595
+ /***/ (function(module, exports) {
596
+
591
597
  module.exports = require("@splunk/visualization-encoding/Options");
592
598
 
593
599
  /***/ }),
594
- /* 30 */,
595
- /* 31 */
600
+ /* 31 */,
601
+ /* 32 */
596
602
  /***/ (function(module, exports, __webpack_require__) {
597
603
 
598
604
  "use strict";
@@ -616,9 +622,9 @@ var FixedSizeContainer_1 = __webpack_require__(13);
616
622
  */
617
623
  var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
618
624
  var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
619
- var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
625
+ var data = (0, lodash_1.get)(dataSources, 'primary.data.columns[0]', undefined);
620
626
  var noData = data === undefined;
621
- var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
627
+ var fields = (0, lodash_1.get)(dataSources, 'primary.data.fields[0]', undefined);
622
628
  var noFields = fields === undefined;
623
629
  return loading || noData || noFields;
624
630
  };
@@ -659,7 +665,7 @@ var IconPlaceholder = function IconPlaceholder(props) {
659
665
  width: width,
660
666
  height: height,
661
667
  level: "warning",
662
- message: i18n_1._('No DataSource Connected')
668
+ message: (0, i18n_1._)('No DataSource Connected')
663
669
  });
664
670
  };
665
671
  IconPlaceholder.propTypes = propTypes;
@@ -667,13 +673,7 @@ IconPlaceholder.defaultProps = {
667
673
  width: '100%',
668
674
  height: 250
669
675
  };
670
- exports.default = FixedSizeContainer_1.default(IconPlaceholder);
671
-
672
- /***/ }),
673
- /* 32 */
674
- /***/ (function(module, exports) {
675
-
676
- module.exports = require("@splunk/ui-utils/id");
676
+ exports.default = (0, FixedSizeContainer_1.default)(IconPlaceholder);
677
677
 
678
678
  /***/ }),
679
679
  /* 33 */
@@ -707,7 +707,7 @@ var getSortingParams = function getSortingParams(_ref) {
707
707
  };
708
708
  var onSort;
709
709
  if (typeof onRequestParamsChange === 'function') {
710
- if (requestParams && lodash_1.has(requestParams, 'sort')) {
710
+ if (requestParams && (0, lodash_1.has)(requestParams, 'sort')) {
711
711
  currentSortKey = Object.keys(requestParams.sort).shift();
712
712
  currentSortDir = requestParams.sort[currentSortKey];
713
713
  }
@@ -716,7 +716,7 @@ var getSortingParams = function getSortingParams(_ref) {
716
716
  var sortKey = _ref2.sortKey,
717
717
  sortDir = _ref2.sortDir;
718
718
  if (typeof sortKey === 'string') {
719
- var nextSortDir = lodash_1.has(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
719
+ var nextSortDir = (0, lodash_1.has)(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
720
720
  onRequestParamsChange(Object.assign(Object.assign({}, requestParams), {
721
721
  offset: 0,
722
722
  sort: _defineProperty({}, sortKey, nextSortDir)
@@ -766,7 +766,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
766
766
  var onChangeHandler = function onChangeHandler(e, _ref2) {
767
767
  var page = _ref2.page,
768
768
  countArg = _ref2.count;
769
- var newParams = lodash_1.cloneDeep(requestParams);
769
+ var newParams = (0, lodash_1.cloneDeep)(requestParams);
770
770
  if (typeof countArg === 'number') {
771
771
  newParams.count = countArg;
772
772
  newParams.offset = 0;
@@ -828,16 +828,16 @@ Object.defineProperty(exports, "__esModule", {
828
828
  var React = __webpack_require__(1);
829
829
  var lodash_1 = __webpack_require__(3);
830
830
  var getSettingsFromThemedProps_1 = __webpack_require__(37);
831
- var Options_1 = __webpack_require__(29);
831
+ var Options_1 = __webpack_require__(30);
832
832
  var SanitizeProps_1 = __webpack_require__(38);
833
- var TimezoneContext_1 = __webpack_require__(25);
833
+ var TimezoneContext_1 = __webpack_require__(26);
834
834
  var moment_1 = __webpack_require__(39);
835
835
  var FeatureFlagContext_1 = __webpack_require__(21);
836
836
  var styled_components_1 = __webpack_require__(4);
837
- var hocUtils_1 = __webpack_require__(26);
838
- var JSONSchemaUtils_1 = __webpack_require__(27);
837
+ var hocUtils_1 = __webpack_require__(27);
838
+ var JSONSchemaUtils_1 = __webpack_require__(28);
839
839
  var async_dynamic_options_evaluator_1 = __webpack_require__(40);
840
- var id_1 = __webpack_require__(32);
840
+ var id_1 = __webpack_require__(25);
841
841
  var SplunkVisualization_1 = __webpack_require__(41);
842
842
  var VizBehavior_1 = __webpack_require__(6);
843
843
  var getSorting_1 = __webpack_require__(33);
@@ -858,8 +858,8 @@ var withDashboardViz = function withDashboardViz(opts) {
858
858
  computeVizProps = _opts$computeVizProps === void 0 ? function () {} : _opts$computeVizProps,
859
859
  disableEditModeCover = opts.disableEditModeCover,
860
860
  useIconPlaceholder = opts.useIconPlaceholder; // sanitizing props before sending them to reactviz.
861
- var SanitizedReactViz = SanitizeProps_1.withSanitizedProps(ReactViz);
862
- var defaultOptions = JSONSchemaUtils_1.pickFieldFromJSONSchema(vizConfig.optionsSchema, 'default');
861
+ var SanitizedReactViz = (0, SanitizeProps_1.withSanitizedProps)(ReactViz);
862
+ var defaultOptions = (0, JSONSchemaUtils_1.pickFieldFromJSONSchema)(vizConfig.optionsSchema, 'default');
863
863
  var DashboardViz = function DashboardViz(props) {
864
864
  var _a;
865
865
  var mode = props.mode,
@@ -894,19 +894,19 @@ var withDashboardViz = function withDashboardViz(opts) {
894
894
  return (_b = (_a = vizConfig.themes)[themeVar]) === null || _b === void 0 ? void 0 : _b.call(_a, props);
895
895
  };
896
896
  var bgColorFromTheme = themeFunc('defaultBackgroundColor');
897
- var _getSettingsFromTheme = getSettingsFromThemedProps_1.default({
897
+ var _ref = (0, getSettingsFromThemedProps_1.default)({
898
898
  theme: theme
899
899
  }),
900
- currentThemeFamily = _getSettingsFromTheme.family,
901
- currentThemeColorScheme = _getSettingsFromTheme.colorScheme,
902
- currentThemeDensity = _getSettingsFromTheme.density;
900
+ currentThemeFamily = _ref.family,
901
+ currentThemeColorScheme = _ref.colorScheme,
902
+ currentThemeDensity = _ref.density;
903
903
  var evaluatedOptions = {}; // evaluatedOptions need to be initialized as an empty object
904
904
  var _React$useState = React.useState({}),
905
905
  _React$useState2 = _slicedToArray(_React$useState, 2),
906
906
  evaluatedOptionsAsync = _React$useState2[0],
907
907
  setEvaluatedOptionsAsync = _React$useState2[1]; // evaluatedOptions need to be initialized as an empty object
908
908
  var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
909
- var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(id_1.createGUID())),
909
+ var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat((0, id_1.createGUID)())),
910
910
  _React$useState4 = _slicedToArray(_React$useState3, 1),
911
911
  visualizationID = _React$useState4[0];
912
912
  var _React$useState5 = React.useState({}),
@@ -917,16 +917,17 @@ var withDashboardViz = function withDashboardViz(opts) {
917
917
  _React$useState8 = _slicedToArray(_React$useState7, 2),
918
918
  dataFramesInState = _React$useState8[0],
919
919
  setDataFramesInState = _React$useState8[1];
920
- var _React$useState9 = React.useState(Boolean(featureFlagContext && featureFlagContext.visualizations_useWebWorkersForDSL && typeof Worker !== 'undefined')),
920
+ var _React$useState9 = React.useState(Boolean(featureFlagContext === null || featureFlagContext === void 0 ? void 0 : featureFlagContext.visualizations_useWebWorkersForDSL)),
921
921
  _React$useState10 = _slicedToArray(_React$useState9, 2),
922
922
  useAsyncEvaluatedOptions = _React$useState10[0],
923
923
  setUseAsyncEvaluatedOptions = _React$useState10[1];
924
- evaluatedOptions = useDeepMemo_1.useDeepMemo(function () {
924
+ var isMounted = React.useRef(true);
925
+ evaluatedOptions = (0, useDeepMemo_1.useDeepMemo)(function () {
925
926
  try {
926
927
  if (useAsyncEvaluatedOptions) {
927
928
  var optionsToEvaluate = {
928
- context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
929
- options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
929
+ context: (0, lodash_1.defaultsDeep)({}, context, vizConfig.defaultContext),
930
+ options: (0, hocUtils_1.deepMergeWithArrayPrimitiveOverrides)({}, options, defaultOptions)
930
931
  };
931
932
  var asyncDynamicOptionsEvaluatorParams = {
932
933
  visualizationID: visualizationID,
@@ -937,10 +938,10 @@ var withDashboardViz = function withDashboardViz(opts) {
937
938
  };
938
939
  async_dynamic_options_evaluator_1.default.evaluate(asyncDynamicOptionsEvaluatorParams).then(function (results) {
939
940
  setEvaluatedOptionsAsync(results.results);
940
- }).catch(function (e) {
941
- // eslint-disable-next-line no-console
942
- console.error("unexpected error evaluating options - async: ".concat(e.message));
943
- setUseAsyncEvaluatedOptions(false);
941
+ }).catch(function () {
942
+ if (isMounted.current) {
943
+ setUseAsyncEvaluatedOptions(false);
944
+ }
944
945
  });
945
946
  } else {
946
947
  var dataFrames = dataFramesInState;
@@ -950,8 +951,8 @@ var withDashboardViz = function withDashboardViz(opts) {
950
951
  setDataFramesInState(dataFrames);
951
952
  }
952
953
  return Options_1.Options.evaluate({
953
- context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
954
- options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
954
+ context: (0, lodash_1.defaultsDeep)({}, context, vizConfig.defaultContext),
955
+ options: (0, hocUtils_1.deepMergeWithArrayPrimitiveOverrides)({}, options, defaultOptions)
955
956
  }, dataSources, themeFunc, dataFrames);
956
957
  }
957
958
  } catch (e) {
@@ -980,6 +981,7 @@ var withDashboardViz = function withDashboardViz(opts) {
980
981
  React.useEffect(function () {
981
982
  return function () {
982
983
  if (useAsyncEvaluatedOptions) {
984
+ isMounted.current = false;
983
985
  async_dynamic_options_evaluator_1.default.reset(visualizationID);
984
986
  }
985
987
  };
@@ -989,7 +991,7 @@ var withDashboardViz = function withDashboardViz(opts) {
989
991
  var _vizConfig$requiredPr = vizConfig.requiredProps,
990
992
  requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
991
993
  supports = vizConfig.supports;
992
- var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptionsToUse);
994
+ var missing = (0, MissingPropsMessage_1.missingKeys)(requiredProps, evaluatedOptionsToUse);
993
995
  if (missing.length > 0 && supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && vizConfig.key !== 'splunk.singlevalue' // For SV missing props msg is not displayed if required props majorValue is missing, instead this will be handled from the component, instead handled within component
994
996
  ) {
995
997
  return React.createElement(MissingPropsMessage_1.default, {
@@ -1005,7 +1007,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1005
1007
  if (hasEventHandlers && mode === 'view' && vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.EVENTS) > -1) {
1006
1008
  var supportedEvents = vizConfig.events;
1007
1009
  Object.keys(supportedEvents).forEach(function (eventName) {
1008
- var eventCallbackPropName = lodash_1.camelCase("on.".concat(eventName));
1010
+ var eventCallbackPropName = (0, lodash_1.camelCase)("on.".concat(eventName));
1009
1011
  eventCallbackProps[eventCallbackPropName] = null;
1010
1012
  // todo: refactor single value and single value icon to send payload from viz
1011
1013
  // then remove these lines
@@ -1048,19 +1050,19 @@ var withDashboardViz = function withDashboardViz(opts) {
1048
1050
  */
1049
1051
  var dataSourceMetadata = {};
1050
1052
  var OptionKey = 'paginateDataSourceKey';
1051
- var paginateDataSourceKey = lodash_1.has(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
1052
- if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && lodash_1.has(dataSources, paginateDataSourceKey)) {
1053
- var requestParams = lodash_1.get(dataSources, [paginateDataSourceKey, 'requestParams'], {});
1054
- var meta = lodash_1.get(dataSources, [paginateDataSourceKey, 'meta'], {});
1053
+ var paginateDataSourceKey = (0, lodash_1.has)(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
1054
+ if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && (0, lodash_1.has)(dataSources, paginateDataSourceKey)) {
1055
+ var requestParams = (0, lodash_1.get)(dataSources, [paginateDataSourceKey, 'requestParams'], {});
1056
+ var meta = (0, lodash_1.get)(dataSources, [paginateDataSourceKey, 'meta'], {});
1055
1057
  var handleRequestParamsChange = function handleRequestParamsChange(payload) {
1056
1058
  return onRequestParamsChange(paginateDataSourceKey, payload);
1057
1059
  };
1058
- var sortParams = getSorting_1.getSortingParams({
1060
+ var sortParams = (0, getSorting_1.getSortingParams)({
1059
1061
  requestParams: requestParams,
1060
1062
  meta: meta,
1061
1063
  onRequestParamsChange: handleRequestParamsChange
1062
1064
  });
1063
- var paginatorParams = getPagination_1.getPaginationParams({
1065
+ var paginatorParams = (0, getPagination_1.getPaginationParams)({
1064
1066
  requestParams: requestParams,
1065
1067
  meta: meta,
1066
1068
  onRequestParamsChange: handleRequestParamsChange
@@ -1088,7 +1090,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1088
1090
  // attach viz config
1089
1091
  DashboardViz.config = vizConfig;
1090
1092
  // @ts-ignore: TODO fix sc upgrade TS issues
1091
- return styled_components_1.withTheme(withPlaceholder_1.default(withEditModeCover_1.default(DashboardViz, disableEditModeCover), useIconPlaceholder));
1093
+ return (0, styled_components_1.withTheme)((0, withPlaceholder_1.default)((0, withEditModeCover_1.default)(DashboardViz, disableEditModeCover), useIconPlaceholder));
1092
1094
  };
1093
1095
  exports.default = withDashboardViz;
1094
1096
 
@@ -1317,8 +1319,8 @@ var lodash_1 = __webpack_require__(3);
1317
1319
  * @param dependencies an array of dependencies
1318
1320
  */
1319
1321
  var useDeepMemo = function useDeepMemo(fn, dependencies) {
1320
- var ref = react_1.useRef();
1321
- if (!ref.current || !lodash_1.isEqual(dependencies, ref.current.dependencies)) {
1322
+ var ref = (0, react_1.useRef)();
1323
+ if (!ref.current || !(0, lodash_1.isEqual)(dependencies, ref.current.dependencies)) {
1322
1324
  ref.current = {
1323
1325
  dependencies: dependencies,
1324
1326
  value: fn()
@@ -1361,7 +1363,7 @@ exports.isMissing = isMissing;
1361
1363
  */
1362
1364
  var missingKeys = function missingKeys(keys, target) {
1363
1365
  return keys.filter(function (k) {
1364
- return exports.isMissing(target[k]);
1366
+ return (0, exports.isMissing)(target[k]);
1365
1367
  });
1366
1368
  };
1367
1369
  exports.missingKeys = missingKeys;
@@ -1385,7 +1387,7 @@ var MissingPropsMessage = function MissingPropsMessage(props) {
1385
1387
  "data-test": "message",
1386
1388
  width: width,
1387
1389
  height: height,
1388
- message: i18n_1._("Missing property: ".concat(missingProps.join(', ')))
1390
+ message: (0, i18n_1._)("Missing property: ".concat(missingProps.join(', ')))
1389
1391
  });
1390
1392
  };
1391
1393
  exports.MissingPropsMessage = MissingPropsMessage;
@@ -1394,7 +1396,7 @@ exports.MissingPropsMessage.defaultProps = {
1394
1396
  width: '100%',
1395
1397
  height: 250
1396
1398
  };
1397
- exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
1399
+ exports.default = (0, FixedSizeContainer_1.default)(exports.MissingPropsMessage);
1398
1400
 
1399
1401
  /***/ }),
1400
1402
  /* 46 */
@@ -1414,7 +1416,7 @@ var Cover = styled_components_1.default.div.withConfig({
1414
1416
  componentId: "sc-1gsbnxb-0"
1415
1417
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1416
1418
  var Blocker = styled_components_1.default.div.attrs({
1417
- 'data-splunk-visualization-version': "25.13.1 - ea48ec41e"
1419
+ 'data-splunk-visualization-version': "26.0.0 - 2f7458907"
1418
1420
  }).withConfig({
1419
1421
  displayName: "withEditModeCover__Blocker",
1420
1422
  componentId: "sc-1gsbnxb-1"
@@ -1433,7 +1435,7 @@ var withEditModeCover = function withEditModeCover(Visualization, disableEditMod
1433
1435
  "data-test": "edit-mode-cover"
1434
1436
  }));
1435
1437
  };
1436
- hocUtils_1.extendStaticWrapperProps({
1438
+ (0, hocUtils_1.extendStaticWrapperProps)({
1437
1439
  Wrapper: Wrapper,
1438
1440
  Visualization: Visualization
1439
1441
  });
@@ -1454,7 +1456,7 @@ Object.defineProperty(exports, "__esModule", {
1454
1456
  var React = __webpack_require__(1);
1455
1457
  var colorUtils_1 = __webpack_require__(12);
1456
1458
  var variables_1 = __webpack_require__(11);
1457
- var IconPlaceholder_1 = __webpack_require__(31);
1459
+ var IconPlaceholder_1 = __webpack_require__(32);
1458
1460
  var VizBehavior_1 = __webpack_require__(6);
1459
1461
  var hocUtils_1 = __webpack_require__(15);
1460
1462
  var withPlaceholder = function withPlaceholder(Visualization) {
@@ -1469,7 +1471,7 @@ var withPlaceholder = function withPlaceholder(Visualization) {
1469
1471
  height = props.height,
1470
1472
  width = props.width;
1471
1473
  var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
1472
- var bgColorFromTheme = colorUtils_1.isColor(options === null || options === void 0 ? void 0 : options.backgroundColor) ? options === null || options === void 0 ? void 0 : options.backgroundColor : (_a = themes === null || themes === void 0 ? void 0 : themes.defaultBackgroundColor) === null || _a === void 0 ? void 0 : _a.call(themes, props);
1474
+ var bgColorFromTheme = (0, colorUtils_1.isColor)(options === null || options === void 0 ? void 0 : options.backgroundColor) ? options === null || options === void 0 ? void 0 : options.backgroundColor : (_a = themes === null || themes === void 0 ? void 0 : themes.defaultBackgroundColor) === null || _a === void 0 ? void 0 : _a.call(themes, props);
1473
1475
  var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
1474
1476
  var iconColor = variables_1.default.contentColorActive(props);
1475
1477
  if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
@@ -1484,7 +1486,7 @@ var withPlaceholder = function withPlaceholder(Visualization) {
1484
1486
  }
1485
1487
  return React.createElement(Visualization, Object.assign({}, props));
1486
1488
  };
1487
- hocUtils_1.extendStaticWrapperProps({
1489
+ (0, hocUtils_1.extendStaticWrapperProps)({
1488
1490
  Wrapper: Wrapper,
1489
1491
  Visualization: Visualization
1490
1492
  });
@@ -1504,14 +1506,19 @@ exports.default = withPlaceholder;
1504
1506
  /* 56 */,
1505
1507
  /* 57 */,
1506
1508
  /* 58 */,
1507
- /* 59 */,
1508
- /* 60 */
1509
+ /* 59 */
1510
+ /***/ (function(module, exports) {
1511
+
1512
+ module.exports = require("@babel/runtime/helpers/taggedTemplateLiteral");
1513
+
1514
+ /***/ }),
1515
+ /* 60 */,
1516
+ /* 61 */
1509
1517
  /***/ (function(module, exports) {
1510
1518
 
1511
1519
  module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
1512
1520
 
1513
1521
  /***/ }),
1514
- /* 61 */,
1515
1522
  /* 62 */,
1516
1523
  /* 63 */,
1517
1524
  /* 64 */,
@@ -1563,7 +1570,8 @@ module.exports = require("@splunk/visualization-color-palettes/editors/PresetPal
1563
1570
  /* 110 */,
1564
1571
  /* 111 */,
1565
1572
  /* 112 */,
1566
- /* 113 */
1573
+ /* 113 */,
1574
+ /* 114 */
1567
1575
  /***/ (function(module, exports, __webpack_require__) {
1568
1576
 
1569
1577
  "use strict";
@@ -1579,32 +1587,32 @@ var getDynamicFillColorEditor = function getDynamicFillColorEditor(_ref) {
1579
1587
  var defaultContext = _ref.defaultContext,
1580
1588
  defaultPalettesConfig = _ref.defaultPalettesConfig;
1581
1589
  return {
1582
- label: i18n_1._('Fill'),
1590
+ label: (0, i18n_1._)('Fill'),
1583
1591
  option: 'fillColor',
1584
1592
  context: 'fillColorEditorConfig',
1585
1593
  editor: 'editor.dynamicColor',
1586
1594
  showEditor: function showEditor(_ref2) {
1587
1595
  var options = _ref2.options;
1588
- return configUtils_1.isDynamicOption(options.fillColor);
1596
+ return (0, configUtils_1.isDynamicOption)(options.fillColor);
1589
1597
  },
1590
1598
  editorProps: {
1591
1599
  labelPosition: 'top',
1592
- flyoutTitle: i18n_1._('Dynamic coloring: fill'),
1600
+ flyoutTitle: (0, i18n_1._)('Dynamic coloring: fill'),
1593
1601
  formatters: [{
1594
- label: i18n_1._('Ranges'),
1602
+ label: (0, i18n_1._)('Ranges'),
1595
1603
  value: 'rangeValue',
1596
1604
  defaults: {
1597
1605
  fillDataValue: defaultContext.fillColorConfig
1598
1606
  }
1599
1607
  }, {
1600
- label: i18n_1._('Matches'),
1608
+ label: (0, i18n_1._)('Matches'),
1601
1609
  value: 'matchValue',
1602
1610
  defaults: {
1603
1611
  fillDataValue: defaultContext.fillColorMatchConfig
1604
1612
  }
1605
1613
  }],
1606
1614
  dataSelectors: [{
1607
- label: i18n_1._('Fill'),
1615
+ label: (0, i18n_1._)('Fill'),
1608
1616
  value: 'fillDataValue'
1609
1617
  }],
1610
1618
  defaultPalettesConfig: defaultPalettesConfig
@@ -1614,7 +1622,7 @@ var getDynamicFillColorEditor = function getDynamicFillColorEditor(_ref) {
1614
1622
  exports.getDynamicFillColorEditor = getDynamicFillColorEditor;
1615
1623
 
1616
1624
  /***/ }),
1617
- /* 114 */
1625
+ /* 115 */
1618
1626
  /***/ (function(module, exports, __webpack_require__) {
1619
1627
 
1620
1628
  "use strict";
@@ -1630,32 +1638,32 @@ var getDynamicStrokeColorEditor = function getDynamicStrokeColorEditor(_ref) {
1630
1638
  var defaultContext = _ref.defaultContext,
1631
1639
  defaultPalettesConfig = _ref.defaultPalettesConfig;
1632
1640
  return {
1633
- label: i18n_1._('Stroke'),
1641
+ label: (0, i18n_1._)('Stroke'),
1634
1642
  option: 'strokeColor',
1635
1643
  context: 'strokeColorEditorConfig',
1636
1644
  editor: 'editor.dynamicColor',
1637
1645
  showEditor: function showEditor(_ref2) {
1638
1646
  var options = _ref2.options;
1639
- return configUtils_1.isDynamicOption(options.strokeColor);
1647
+ return (0, configUtils_1.isDynamicOption)(options.strokeColor);
1640
1648
  },
1641
1649
  editorProps: {
1642
1650
  labelPosition: 'top',
1643
- flyoutTitle: i18n_1._('Dynamic coloring: stroke'),
1651
+ flyoutTitle: (0, i18n_1._)('Dynamic coloring: stroke'),
1644
1652
  formatters: [{
1645
- label: i18n_1._('Ranges'),
1653
+ label: (0, i18n_1._)('Ranges'),
1646
1654
  value: 'rangeValue',
1647
1655
  defaults: {
1648
1656
  strokeDataValue: defaultContext.strokeColorConfig
1649
1657
  }
1650
1658
  }, {
1651
- label: i18n_1._('Matches'),
1659
+ label: (0, i18n_1._)('Matches'),
1652
1660
  value: 'matchValue',
1653
1661
  defaults: {
1654
1662
  strokeDataValue: defaultContext.strokeColorMatchConfig
1655
1663
  }
1656
1664
  }],
1657
1665
  dataSelectors: [{
1658
- label: i18n_1._('Stroke'),
1666
+ label: (0, i18n_1._)('Stroke'),
1659
1667
  value: 'strokeDataValue'
1660
1668
  }],
1661
1669
  defaultPalettesConfig: defaultPalettesConfig
@@ -1665,7 +1673,7 @@ var getDynamicStrokeColorEditor = function getDynamicStrokeColorEditor(_ref) {
1665
1673
  exports.getDynamicStrokeColorEditor = getDynamicStrokeColorEditor;
1666
1674
 
1667
1675
  /***/ }),
1668
- /* 115 */
1676
+ /* 116 */
1669
1677
  /***/ (function(module, exports, __webpack_require__) {
1670
1678
 
1671
1679
  "use strict";
@@ -1677,18 +1685,18 @@ Object.defineProperty(exports, "__esModule", {
1677
1685
  var i18n_1 = __webpack_require__(2);
1678
1686
  var configUtils_1 = __webpack_require__(22);
1679
1687
  var StaticFillColorEditor = {
1680
- label: i18n_1._('Fill'),
1688
+ label: (0, i18n_1._)('Fill'),
1681
1689
  option: 'fillColor',
1682
1690
  editor: 'editor.color',
1683
1691
  showEditor: function showEditor(_ref) {
1684
1692
  var options = _ref.options;
1685
- return !configUtils_1.isDynamicOption(options.fillColor);
1693
+ return !(0, configUtils_1.isDynamicOption)(options.fillColor);
1686
1694
  }
1687
1695
  };
1688
1696
  exports.default = StaticFillColorEditor;
1689
1697
 
1690
1698
  /***/ }),
1691
- /* 116 */
1699
+ /* 117 */
1692
1700
  /***/ (function(module, exports, __webpack_require__) {
1693
1701
 
1694
1702
  "use strict";
@@ -1700,23 +1708,25 @@ Object.defineProperty(exports, "__esModule", {
1700
1708
  var i18n_1 = __webpack_require__(2);
1701
1709
  var configUtils_1 = __webpack_require__(22);
1702
1710
  var StaticStrokeColorEditor = {
1703
- label: i18n_1._('Stroke'),
1711
+ label: (0, i18n_1._)('Stroke'),
1704
1712
  option: 'strokeColor',
1705
1713
  editor: 'editor.color',
1706
1714
  showEditor: function showEditor(_ref) {
1707
1715
  var options = _ref.options;
1708
- return !configUtils_1.isDynamicOption(options.strokeColor);
1716
+ return !(0, configUtils_1.isDynamicOption)(options.strokeColor);
1709
1717
  }
1710
1718
  };
1711
1719
  exports.default = StaticStrokeColorEditor;
1712
1720
 
1713
1721
  /***/ }),
1714
- /* 117 */
1722
+ /* 118 */
1715
1723
  /***/ (function(module, exports, __webpack_require__) {
1716
1724
 
1717
1725
  "use strict";
1718
1726
 
1719
1727
 
1728
+ var _taggedTemplateLiteral = __webpack_require__(59);
1729
+ var _templateObject;
1720
1730
  Object.defineProperty(exports, "__esModule", {
1721
1731
  value: true
1722
1732
  });
@@ -1725,7 +1735,7 @@ var lodash_1 = __webpack_require__(3);
1725
1735
  var styled_components_1 = __webpack_require__(4);
1726
1736
  var pick_1 = __webpack_require__(23);
1727
1737
  var variables_1 = __webpack_require__(11);
1728
- var propUtils_1 = __webpack_require__(28);
1738
+ var propUtils_1 = __webpack_require__(29);
1729
1739
  // map for new options names to old option names
1730
1740
  var shapeOptionsMapping = {
1731
1741
  fillColor: 'fill',
@@ -1740,7 +1750,7 @@ var shapeOptionsMapping = {
1740
1750
  * @returns {Object}
1741
1751
  */
1742
1752
  var mapToOldKey = function mapToOldKey(options) {
1743
- return lodash_1.mapKeys(options, function (val, key) {
1753
+ return (0, lodash_1.mapKeys)(options, function (val, key) {
1744
1754
  return shapeOptionsMapping[key] ? shapeOptionsMapping[key] : key;
1745
1755
  });
1746
1756
  };
@@ -1751,11 +1761,8 @@ exports.mapToOldKey = mapToOldKey;
1751
1761
  * @param {Shape} shape
1752
1762
  */
1753
1763
  var getStyledShape = function getStyledShape(shape) {
1754
- return styled_components_1.default(shape).withConfig({
1755
- displayName: "shapeUtils",
1756
- componentId: "sc-1myvp5h-0"
1757
- })(["fill:", ";stroke:", ";cursor:", ";"], function (props) {
1758
- return props.fill && propUtils_1.formatColor(props.fill) || pick_1.default({
1764
+ return (0, styled_components_1.default)(shape)(_templateObject || (_templateObject = _taggedTemplateLiteral(["\n fill: ", ";\n stroke: ", ";\n cursor: ", ";\n"])), function (props) {
1765
+ return props.fill && (0, propUtils_1.formatColor)(props.fill) || (0, pick_1.default)({
1759
1766
  enterprise: {
1760
1767
  light: variables_1.default.gray80,
1761
1768
  dark: variables_1.default.gray25
@@ -1763,7 +1770,7 @@ var getStyledShape = function getStyledShape(shape) {
1763
1770
  prisma: variables_1.default.backgroundColorSidebar
1764
1771
  })(props);
1765
1772
  }, function (props) {
1766
- return props.stroke && propUtils_1.formatColor(props.stroke) || pick_1.default({
1773
+ return props.stroke && (0, propUtils_1.formatColor)(props.stroke) || (0, pick_1.default)({
1767
1774
  enterprise: {
1768
1775
  dark: variables_1.default.gray80,
1769
1776
  light: variables_1.default.textColor
@@ -1777,7 +1784,6 @@ var getStyledShape = function getStyledShape(shape) {
1777
1784
  exports.getStyledShape = getStyledShape;
1778
1785
 
1779
1786
  /***/ }),
1780
- /* 118 */,
1781
1787
  /* 119 */,
1782
1788
  /* 120 */,
1783
1789
  /* 121 */,
@@ -1805,7 +1811,10 @@ exports.getStyledShape = getStyledShape;
1805
1811
  /* 143 */,
1806
1812
  /* 144 */,
1807
1813
  /* 145 */,
1808
- /* 146 */
1814
+ /* 146 */,
1815
+ /* 147 */,
1816
+ /* 148 */,
1817
+ /* 149 */
1809
1818
  /***/ (function(module, exports, __webpack_require__) {
1810
1819
 
1811
1820
  "use strict";
@@ -1829,10 +1838,10 @@ var React = __webpack_require__(1);
1829
1838
  var lodash_1 = __webpack_require__(3);
1830
1839
  var styled_components_1 = __webpack_require__(4);
1831
1840
  var T = __webpack_require__(0);
1832
- var config_1 = __webpack_require__(198);
1841
+ var config_1 = __webpack_require__(201);
1833
1842
  exports.config = config_1.default;
1834
1843
  var withDashboardViz_1 = __webpack_require__(36);
1835
- var shapeUtils_1 = __webpack_require__(117);
1844
+ var shapeUtils_1 = __webpack_require__(118);
1836
1845
  var validOptions = Object.keys(config_1.default.optionsSchema);
1837
1846
  var SVGContainer = styled_components_1.default.svg.withConfig({
1838
1847
  displayName: "Ellipse__SVGContainer",
@@ -1842,7 +1851,7 @@ var SVGContainer = styled_components_1.default.svg.withConfig({
1842
1851
  }, function (props) {
1843
1852
  return props.height;
1844
1853
  });
1845
- var EllipseShape = shapeUtils_1.getStyledShape('ellipse');
1854
+ var EllipseShape = (0, shapeUtils_1.getStyledShape)('ellipse');
1846
1855
  var EllipseVisualization = function EllipseVisualization(_ref) {
1847
1856
  var height = _ref.height,
1848
1857
  width = _ref.width,
@@ -1869,7 +1878,7 @@ var computeVizProps = function computeVizProps(_a) {
1869
1878
  width: width,
1870
1879
  height: height
1871
1880
  };
1872
- computedProps.options = lodash_1.chain(options).pick(validOptions).thru(shapeUtils_1.mapToOldKey).value();
1881
+ computedProps.options = (0, lodash_1.chain)(options).pick(validOptions).thru(shapeUtils_1.mapToOldKey).value();
1873
1882
  return computedProps;
1874
1883
  };
1875
1884
  var propTypes = {
@@ -1886,7 +1895,7 @@ var defaultProps = {
1886
1895
  };
1887
1896
  EllipseVisualization.propTypes = propTypes;
1888
1897
  EllipseVisualization.defaultProps = defaultProps;
1889
- var Ellipse = withDashboardViz_1.default({
1898
+ var Ellipse = (0, withDashboardViz_1.default)({
1890
1899
  ReactViz: EllipseVisualization,
1891
1900
  computeVizProps: computeVizProps,
1892
1901
  vizConfig: config_1.default
@@ -1896,9 +1905,6 @@ exports.themes = themes;
1896
1905
  exports.default = Ellipse;
1897
1906
 
1898
1907
  /***/ }),
1899
- /* 147 */,
1900
- /* 148 */,
1901
- /* 149 */,
1902
1908
  /* 150 */,
1903
1909
  /* 151 */,
1904
1910
  /* 152 */,
@@ -1946,7 +1952,10 @@ exports.default = Ellipse;
1946
1952
  /* 194 */,
1947
1953
  /* 195 */,
1948
1954
  /* 196 */,
1949
- /* 197 */
1955
+ /* 197 */,
1956
+ /* 198 */,
1957
+ /* 199 */,
1958
+ /* 200 */
1950
1959
  /***/ (function(module, exports, __webpack_require__) {
1951
1960
 
1952
1961
  "use strict";
@@ -1954,12 +1963,16 @@ exports.default = Ellipse;
1954
1963
 
1955
1964
  var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
1956
1965
  if (k2 === undefined) k2 = k;
1957
- Object.defineProperty(o, k2, {
1958
- enumerable: true,
1959
- get: function get() {
1960
- return m[k];
1961
- }
1962
- });
1966
+ var desc = Object.getOwnPropertyDescriptor(m, k);
1967
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
1968
+ desc = {
1969
+ enumerable: true,
1970
+ get: function get() {
1971
+ return m[k];
1972
+ }
1973
+ };
1974
+ }
1975
+ Object.defineProperty(o, k2, desc);
1963
1976
  } : function (o, m, k, k2) {
1964
1977
  if (k2 === undefined) k2 = k;
1965
1978
  o[k2] = m[k];
@@ -1973,8 +1986,8 @@ Object.defineProperty(exports, "__esModule", {
1973
1986
  value: true
1974
1987
  });
1975
1988
  exports.default = void 0;
1976
- __exportStar(__webpack_require__(146), exports);
1977
- var Ellipse_1 = __webpack_require__(146);
1989
+ __exportStar(__webpack_require__(149), exports);
1990
+ var Ellipse_1 = __webpack_require__(149);
1978
1991
  Object.defineProperty(exports, "default", {
1979
1992
  enumerable: true,
1980
1993
  get: function get() {
@@ -1983,7 +1996,7 @@ Object.defineProperty(exports, "default", {
1983
1996
  });
1984
1997
 
1985
1998
  /***/ }),
1986
- /* 198 */
1999
+ /* 201 */
1987
2000
  /***/ (function(module, exports, __webpack_require__) {
1988
2001
 
1989
2002
  "use strict";
@@ -1993,16 +2006,16 @@ Object.defineProperty(exports, "__esModule", {
1993
2006
  value: true
1994
2007
  });
1995
2008
  var i18n_1 = __webpack_require__(2);
1996
- var PresetPalettes_1 = __webpack_require__(60);
2009
+ var PresetPalettes_1 = __webpack_require__(61);
1997
2010
  var pick_1 = __webpack_require__(23);
1998
2011
  var variables_1 = __webpack_require__(11);
1999
2012
  var VizBehavior_1 = __webpack_require__(6);
2000
2013
  var VizCategory_1 = __webpack_require__(35);
2001
2014
  var configUtils_1 = __webpack_require__(20);
2002
- var DynamicFillColorEditor_1 = __webpack_require__(113);
2003
- var DynamicStrokeColorEditor_1 = __webpack_require__(114);
2004
- var StaticFillColorEditor_1 = __webpack_require__(115);
2005
- var StaticStrokeColorEditor_1 = __webpack_require__(116);
2015
+ var DynamicFillColorEditor_1 = __webpack_require__(114);
2016
+ var DynamicStrokeColorEditor_1 = __webpack_require__(115);
2017
+ var StaticFillColorEditor_1 = __webpack_require__(116);
2018
+ var StaticStrokeColorEditor_1 = __webpack_require__(117);
2006
2019
  var dataContract = {
2007
2020
  requiredDataSources: [],
2008
2021
  optionalDataSources: [{
@@ -2118,7 +2131,7 @@ var optionsSchema = {
2118
2131
  };
2119
2132
  var themes = {
2120
2133
  defaultFillColor: function defaultFillColor(props) {
2121
- return pick_1.default({
2134
+ return (0, pick_1.default)({
2122
2135
  enterprise: {
2123
2136
  dark: variables_1.default.gray25(props),
2124
2137
  light: variables_1.default.gray80(props)
@@ -2127,7 +2140,7 @@ var themes = {
2127
2140
  })(props);
2128
2141
  },
2129
2142
  defaultStrokeColor: function defaultStrokeColor(props) {
2130
- return pick_1.default({
2143
+ return (0, pick_1.default)({
2131
2144
  enterprise: {
2132
2145
  dark: variables_1.default.gray80(props),
2133
2146
  light: variables_1.default.gray30(props)
@@ -2146,14 +2159,14 @@ var basePresetOptions = {
2146
2159
  };
2147
2160
  var presets = [{
2148
2161
  // dummy context variables to allow for resetting of unused context states
2149
- label: i18n_1._('None'),
2162
+ label: (0, i18n_1._)('None'),
2150
2163
  name: 'ellipse.none',
2151
2164
  value: {
2152
2165
  context: Object.assign({}, basePresetContext),
2153
2166
  options: Object.assign({}, basePresetOptions)
2154
2167
  }
2155
2168
  }, {
2156
- label: i18n_1._('Fill'),
2169
+ label: (0, i18n_1._)('Fill'),
2157
2170
  name: 'ellipse.fill',
2158
2171
  value: {
2159
2172
  context: Object.assign(Object.assign({}, basePresetContext), {
@@ -2165,7 +2178,7 @@ var presets = [{
2165
2178
  })
2166
2179
  }
2167
2180
  }, {
2168
- label: i18n_1._('Stroke'),
2181
+ label: (0, i18n_1._)('Stroke'),
2169
2182
  name: 'ellipse.stroke',
2170
2183
  value: {
2171
2184
  context: Object.assign(Object.assign({}, basePresetContext), {
@@ -2177,7 +2190,7 @@ var presets = [{
2177
2190
  })
2178
2191
  }
2179
2192
  }, {
2180
- label: i18n_1._('Fill and Stroke'),
2193
+ label: (0, i18n_1._)('Fill and Stroke'),
2181
2194
  name: 'ellipse.fillAndStroke',
2182
2195
  value: {
2183
2196
  context: Object.assign(Object.assign({}, basePresetContext), {
@@ -2193,9 +2206,9 @@ var presets = [{
2193
2206
  }
2194
2207
  }];
2195
2208
  var editorConfig = [{
2196
- label: i18n_1._('Color and style'),
2209
+ label: (0, i18n_1._)('Color and style'),
2197
2210
  layout: [[{
2198
- label: i18n_1._('Dynamic elements'),
2211
+ label: (0, i18n_1._)('Dynamic elements'),
2199
2212
  key: 'presetSelector',
2200
2213
  editor: 'editor.presetSelector',
2201
2214
  editorProps: {
@@ -2203,7 +2216,7 @@ var editorConfig = [{
2203
2216
  value: function value(_ref) {
2204
2217
  var context = _ref.context,
2205
2218
  options = _ref.options;
2206
- var initialPreset = configUtils_1.getInitialPreset(context, options, presets);
2219
+ var initialPreset = (0, configUtils_1.getInitialPreset)(context, options, presets);
2207
2220
  return initialPreset && initialPreset.label || null;
2208
2221
  }
2209
2222
  }
@@ -2211,39 +2224,39 @@ var editorConfig = [{
2211
2224
  editorProps: {
2212
2225
  themes: themes
2213
2226
  }
2214
- })], [DynamicFillColorEditor_1.getDynamicFillColorEditor({
2227
+ })], [(0, DynamicFillColorEditor_1.getDynamicFillColorEditor)({
2215
2228
  defaultContext: defaultContext,
2216
2229
  defaultPalettesConfig: PresetPalettes_1.defaultPalettesConfig
2217
2230
  })], [Object.assign(Object.assign({}, StaticStrokeColorEditor_1.default), {
2218
2231
  editorProps: {
2219
2232
  themes: themes
2220
2233
  }
2221
- })], [DynamicStrokeColorEditor_1.getDynamicStrokeColorEditor({
2234
+ })], [(0, DynamicStrokeColorEditor_1.getDynamicStrokeColorEditor)({
2222
2235
  defaultContext: defaultContext,
2223
2236
  defaultPalettesConfig: PresetPalettes_1.defaultPalettesConfig
2224
2237
  })], [{
2225
- label: i18n_1._('Fill opacity (%)'),
2238
+ label: (0, i18n_1._)('Fill opacity (%)'),
2226
2239
  option: 'fillOpacity',
2227
2240
  editor: 'editor.percent',
2228
2241
  editorProps: {
2229
2242
  min: 0
2230
2243
  }
2231
2244
  }, {
2232
- label: i18n_1._('Stroke opacity (%)'),
2245
+ label: (0, i18n_1._)('Stroke opacity (%)'),
2233
2246
  option: 'strokeOpacity',
2234
2247
  editor: 'editor.percent',
2235
2248
  editorProps: {
2236
2249
  min: 0
2237
2250
  }
2238
2251
  }], [{
2239
- label: i18n_1._('Stroke width'),
2252
+ label: (0, i18n_1._)('Stroke width'),
2240
2253
  option: 'strokeWidth',
2241
2254
  editor: 'editor.number',
2242
2255
  editorProps: {
2243
2256
  min: 0
2244
2257
  }
2245
2258
  }, {
2246
- label: i18n_1._('Stroke dash style'),
2259
+ label: (0, i18n_1._)('Stroke dash style'),
2247
2260
  option: 'strokeDashStyle',
2248
2261
  editor: 'editor.number',
2249
2262
  editorProps: {
@@ -2262,7 +2275,7 @@ var config = {
2262
2275
  /**
2263
2276
  * viz name
2264
2277
  */
2265
- name: i18n_1._('Ellipse'),
2278
+ name: (0, i18n_1._)('Ellipse'),
2266
2279
  category: VizCategory_1.VizCategory.SHAPES,
2267
2280
  /**
2268
2281
  * viz icon
@@ -2282,7 +2295,7 @@ var config = {
2282
2295
  supports: [VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS, VizBehavior_1.VizBehavior.EVENTS],
2283
2296
  themes: themes
2284
2297
  };
2285
- exports.default = configUtils_1.enhanceConfig(config);
2298
+ exports.default = (0, configUtils_1.enhanceConfig)(config);
2286
2299
 
2287
2300
  /***/ })
2288
2301
  /******/ ]);