@splunk/visualizations 25.13.0 → 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 +274 -262
  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 +472 -466
  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 +3 -3
  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/FillerGauge.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 = 211);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 214);
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.0 - 572f25c03",
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/hocUtils");
580
+
581
+ /***/ }),
582
+ /* 28 */
583
+ /***/ (function(module, exports) {
584
+
579
585
  module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
580
586
 
581
587
  /***/ }),
582
- /* 28 */,
583
- /* 29 */
588
+ /* 29 */,
589
+ /* 30 */
584
590
  /***/ (function(module, exports) {
585
591
 
586
592
  module.exports = require("@splunk/visualization-encoding/Options");
587
593
 
588
594
  /***/ }),
589
- /* 30 */
595
+ /* 31 */
590
596
  /***/ (function(module, exports) {
591
597
 
592
598
  module.exports = require("@splunk/visualizations-shared/numberUtils");
593
599
 
594
600
  /***/ }),
595
- /* 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.0 - 572f25c03"
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
  });
@@ -1502,13 +1504,13 @@ module.exports = require("@babel/runtime/helpers/extends");
1502
1504
  /* 49 */
1503
1505
  /***/ (function(module, exports) {
1504
1506
 
1505
- module.exports = require("@splunk/visualization-icons/placeholders");
1507
+ module.exports = require("@splunk/visualizations-shared/colorConstants");
1506
1508
 
1507
1509
  /***/ }),
1508
1510
  /* 50 */
1509
1511
  /***/ (function(module, exports) {
1510
1512
 
1511
- module.exports = require("@splunk/visualizations-shared/colorConstants");
1513
+ module.exports = require("@splunk/visualization-icons/placeholders");
1512
1514
 
1513
1515
  /***/ }),
1514
1516
  /* 51 */
@@ -1533,7 +1535,7 @@ var background = function background(_ref) {
1533
1535
  themes = _ref.themes,
1534
1536
  labelPosition = _ref.labelPosition;
1535
1537
  return [{
1536
- label: i18n_1._(label || 'Background'),
1538
+ label: (0, i18n_1._)(label || 'Background'),
1537
1539
  option: 'backgroundColor',
1538
1540
  editor: 'editor.color',
1539
1541
  editorProps: {
@@ -1551,13 +1553,13 @@ exports.default = background;
1551
1553
  /* 57 */,
1552
1554
  /* 58 */,
1553
1555
  /* 59 */,
1554
- /* 60 */
1556
+ /* 60 */,
1557
+ /* 61 */
1555
1558
  /***/ (function(module, exports) {
1556
1559
 
1557
1560
  module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
1558
1561
 
1559
1562
  /***/ }),
1560
- /* 61 */,
1561
1563
  /* 62 */,
1562
1564
  /* 63 */,
1563
1565
  /* 64 */,
@@ -1593,7 +1595,8 @@ module.exports = require("@splunk/visualization-color-palettes/editors/PresetPal
1593
1595
  /* 94 */,
1594
1596
  /* 95 */,
1595
1597
  /* 96 */,
1596
- /* 97 */
1598
+ /* 97 */,
1599
+ /* 98 */
1597
1600
  /***/ (function(module, exports, __webpack_require__) {
1598
1601
 
1599
1602
  "use strict";
@@ -1605,7 +1608,7 @@ Object.defineProperty(exports, "__esModule", {
1605
1608
  });
1606
1609
  exports.convertToGaugeProperties = exports.mapValueLabelDisplay = exports.mapToOldKey = exports.getGradientDimensions = exports.getGradientStops = exports.getGradientStopColors = exports.getGradientStopOffsets = exports.getGaugeRange = exports.validateRanges = exports.getSortedRanges = exports.getMarkerGaugeValueMarkerPositions = exports.getMarkerBarDimensions = exports.getFillerGaugeValueMarkerPositions = exports.getFillBarDimensions = exports.getGaugeBarHeight = exports.getGaugeBarWidth = exports.getGaugeBarStartPositions = exports.getGaugeBarLength = exports.assignGaugeColor = exports.getGaugeDimensions = exports.getGaugeStartPosition = exports.getGaugeLength = exports.getGaugeHeight = exports.getGaugeWidth = exports.FILL_THICKNESS = exports.GAUGE_THICKNESS = void 0;
1607
1610
  var lodash_1 = __webpack_require__(3);
1608
- var colorConstants_1 = __webpack_require__(50);
1611
+ var colorConstants_1 = __webpack_require__(49);
1609
1612
  var i18n_1 = __webpack_require__(2);
1610
1613
  exports.GAUGE_THICKNESS = 50;
1611
1614
  exports.FILL_THICKNESS = 38;
@@ -1653,10 +1656,10 @@ var getGaugeLength = function getGaugeLength(_ref3) {
1653
1656
  var containerWidth = _ref3.containerWidth,
1654
1657
  containerHeight = _ref3.containerHeight,
1655
1658
  orientation = _ref3.orientation;
1656
- return orientation === 'vertical' ? exports.getGaugeHeight({
1659
+ return orientation === 'vertical' ? (0, exports.getGaugeHeight)({
1657
1660
  containerHeight: containerHeight,
1658
1661
  orientation: orientation
1659
- }) : exports.getGaugeWidth({
1662
+ }) : (0, exports.getGaugeWidth)({
1660
1663
  containerWidth: containerWidth,
1661
1664
  orientation: orientation
1662
1665
  });
@@ -1711,24 +1714,24 @@ var getGaugeDimensions = function getGaugeDimensions(_ref5) {
1711
1714
  var containerWidth = _ref5.containerWidth,
1712
1715
  containerHeight = _ref5.containerHeight,
1713
1716
  orientation = _ref5.orientation;
1714
- var gaugeLength = exports.getGaugeLength({
1717
+ var gaugeLength = (0, exports.getGaugeLength)({
1715
1718
  containerWidth: containerWidth,
1716
1719
  containerHeight: containerHeight,
1717
1720
  orientation: orientation
1718
1721
  });
1719
- var _exports$getGaugeStar = exports.getGaugeStartPosition({
1722
+ var _ref6 = (0, exports.getGaugeStartPosition)({
1720
1723
  containerWidth: containerWidth,
1721
1724
  containerHeight: containerHeight,
1722
1725
  gaugeLength: gaugeLength,
1723
1726
  orientation: orientation
1724
1727
  }),
1725
- gaugeStartX = _exports$getGaugeStar.gaugeStartX,
1726
- gaugeStartY = _exports$getGaugeStar.gaugeStartY;
1727
- var gaugeWidth = exports.getGaugeWidth({
1728
+ gaugeStartX = _ref6.gaugeStartX,
1729
+ gaugeStartY = _ref6.gaugeStartY;
1730
+ var gaugeWidth = (0, exports.getGaugeWidth)({
1728
1731
  containerWidth: containerWidth,
1729
1732
  orientation: orientation
1730
1733
  });
1731
- var gaugeHeight = exports.getGaugeHeight({
1734
+ var gaugeHeight = (0, exports.getGaugeHeight)({
1732
1735
  containerHeight: containerHeight,
1733
1736
  orientation: orientation
1734
1737
  });
@@ -1747,10 +1750,10 @@ exports.getGaugeDimensions = getGaugeDimensions;
1747
1750
  * @method assignGaugeColor
1748
1751
  * @params
1749
1752
  * */
1750
- var assignGaugeColor = function assignGaugeColor(_ref6) {
1751
- var value = _ref6.value,
1752
- min = _ref6.min,
1753
- max = _ref6.max;
1753
+ var assignGaugeColor = function assignGaugeColor(_ref7) {
1754
+ var value = _ref7.value,
1755
+ min = _ref7.min,
1756
+ max = _ref7.max;
1754
1757
  var rate = (value - min) / (max - min);
1755
1758
  if (rate <= 0.3) {
1756
1759
  return colorConstants_1.SEMANTIC_SUCCESS;
@@ -1771,11 +1774,11 @@ exports.assignGaugeColor = assignGaugeColor;
1771
1774
  * @param {Number} input.max
1772
1775
  * @return {Number} gaugeBarLength
1773
1776
  */
1774
- var getGaugeBarLength = function getGaugeBarLength(_ref7) {
1775
- var gaugeLength = _ref7.gaugeLength,
1776
- value = _ref7.value,
1777
- min = _ref7.min,
1778
- max = _ref7.max;
1777
+ var getGaugeBarLength = function getGaugeBarLength(_ref8) {
1778
+ var gaugeLength = _ref8.gaugeLength,
1779
+ value = _ref8.value,
1780
+ min = _ref8.min,
1781
+ max = _ref8.max;
1779
1782
  if (max < min) {
1780
1783
  return null;
1781
1784
  }
@@ -1802,13 +1805,13 @@ exports.getGaugeBarLength = getGaugeBarLength;
1802
1805
  * @return {Number} position.gaugeBarX
1803
1806
  * @return {Number} position.gaugeBarY
1804
1807
  */
1805
- var getGaugeBarStartPositions = function getGaugeBarStartPositions(_ref8) {
1806
- var gaugeStartX = _ref8.gaugeStartX,
1807
- gaugeStartY = _ref8.gaugeStartY,
1808
- gaugeWidth = _ref8.gaugeWidth,
1809
- gaugeHeight = _ref8.gaugeHeight,
1810
- gaugeBarLength = _ref8.gaugeBarLength,
1811
- orientation = _ref8.orientation;
1808
+ var getGaugeBarStartPositions = function getGaugeBarStartPositions(_ref9) {
1809
+ var gaugeStartX = _ref9.gaugeStartX,
1810
+ gaugeStartY = _ref9.gaugeStartY,
1811
+ gaugeWidth = _ref9.gaugeWidth,
1812
+ gaugeHeight = _ref9.gaugeHeight,
1813
+ gaugeBarLength = _ref9.gaugeBarLength,
1814
+ orientation = _ref9.orientation;
1812
1815
  var gaugeBarX = gaugeStartX;
1813
1816
  var gaugeBarY = gaugeStartY;
1814
1817
  if (orientation === 'vertical') {
@@ -1831,9 +1834,9 @@ exports.getGaugeBarStartPositions = getGaugeBarStartPositions;
1831
1834
  * @param {String} orientation
1832
1835
  * @return {Number} gaugeBarWidth
1833
1836
  */
1834
- var getGaugeBarWidth = function getGaugeBarWidth(_ref9) {
1835
- var gaugeBarLength = _ref9.gaugeBarLength,
1836
- orientation = _ref9.orientation;
1837
+ var getGaugeBarWidth = function getGaugeBarWidth(_ref10) {
1838
+ var gaugeBarLength = _ref10.gaugeBarLength,
1839
+ orientation = _ref10.orientation;
1837
1840
  return orientation === 'vertical' ? exports.FILL_THICKNESS : gaugeBarLength;
1838
1841
  };
1839
1842
  exports.getGaugeBarWidth = getGaugeBarWidth;
@@ -1845,9 +1848,9 @@ exports.getGaugeBarWidth = getGaugeBarWidth;
1845
1848
  * @param {String} orientation
1846
1849
  * @return {Number} gaugeBarHeight
1847
1850
  */
1848
- var getGaugeBarHeight = function getGaugeBarHeight(_ref10) {
1849
- var gaugeBarLength = _ref10.gaugeBarLength,
1850
- orientation = _ref10.orientation;
1851
+ var getGaugeBarHeight = function getGaugeBarHeight(_ref11) {
1852
+ var gaugeBarLength = _ref11.gaugeBarLength,
1853
+ orientation = _ref11.orientation;
1851
1854
  return orientation === 'vertical' ? gaugeBarLength : exports.FILL_THICKNESS;
1852
1855
  };
1853
1856
  exports.getGaugeBarHeight = getGaugeBarHeight;
@@ -1871,23 +1874,23 @@ exports.getGaugeBarHeight = getGaugeBarHeight;
1871
1874
  * @return {Number} fillBarDimensions.fillBarWidth
1872
1875
  * @return {Number} fillBarDimensions.fillBarHeight
1873
1876
  */
1874
- var getFillBarDimensions = function getFillBarDimensions(_ref11) {
1875
- var gaugeLength = _ref11.gaugeLength,
1876
- gaugeStartX = _ref11.gaugeStartX,
1877
- gaugeStartY = _ref11.gaugeStartY,
1878
- gaugeWidth = _ref11.gaugeWidth,
1879
- gaugeHeight = _ref11.gaugeHeight,
1880
- value = _ref11.value,
1881
- min = _ref11.min,
1882
- max = _ref11.max,
1883
- orientation = _ref11.orientation;
1884
- var gaugeBarLength = exports.getGaugeBarLength({
1877
+ var getFillBarDimensions = function getFillBarDimensions(_ref12) {
1878
+ var gaugeLength = _ref12.gaugeLength,
1879
+ gaugeStartX = _ref12.gaugeStartX,
1880
+ gaugeStartY = _ref12.gaugeStartY,
1881
+ gaugeWidth = _ref12.gaugeWidth,
1882
+ gaugeHeight = _ref12.gaugeHeight,
1883
+ value = _ref12.value,
1884
+ min = _ref12.min,
1885
+ max = _ref12.max,
1886
+ orientation = _ref12.orientation;
1887
+ var gaugeBarLength = (0, exports.getGaugeBarLength)({
1885
1888
  gaugeLength: gaugeLength,
1886
1889
  value: value,
1887
1890
  max: max,
1888
1891
  min: min
1889
1892
  });
1890
- var _exports$getGaugeBarS = exports.getGaugeBarStartPositions({
1893
+ var _ref13 = (0, exports.getGaugeBarStartPositions)({
1891
1894
  gaugeStartX: gaugeStartX,
1892
1895
  gaugeStartY: gaugeStartY,
1893
1896
  gaugeWidth: gaugeWidth,
@@ -1895,13 +1898,13 @@ var getFillBarDimensions = function getFillBarDimensions(_ref11) {
1895
1898
  gaugeBarLength: gaugeBarLength,
1896
1899
  orientation: orientation
1897
1900
  }),
1898
- fillBarX = _exports$getGaugeBarS.gaugeBarX,
1899
- fillBarY = _exports$getGaugeBarS.gaugeBarY;
1900
- var fillBarWidth = exports.getGaugeBarWidth({
1901
+ fillBarX = _ref13.gaugeBarX,
1902
+ fillBarY = _ref13.gaugeBarY;
1903
+ var fillBarWidth = (0, exports.getGaugeBarWidth)({
1901
1904
  gaugeBarLength: gaugeBarLength,
1902
1905
  orientation: orientation
1903
1906
  });
1904
- var fillBarHeight = exports.getGaugeBarHeight({
1907
+ var fillBarHeight = (0, exports.getGaugeBarHeight)({
1905
1908
  gaugeBarLength: gaugeBarLength,
1906
1909
  orientation: orientation
1907
1910
  });
@@ -1926,11 +1929,11 @@ exports.getFillBarDimensions = getFillBarDimensions;
1926
1929
  * @return {Number} position.valueMarkerX
1927
1930
  * @return {Number} position.valueMarkerY
1928
1931
  */
1929
- var getFillerGaugeValueMarkerPositions = function getFillerGaugeValueMarkerPositions(_ref12) {
1930
- var fillBarX = _ref12.fillBarX,
1931
- fillBarY = _ref12.fillBarY,
1932
- fillBarLength = _ref12.fillBarLength,
1933
- orientation = _ref12.orientation;
1932
+ var getFillerGaugeValueMarkerPositions = function getFillerGaugeValueMarkerPositions(_ref14) {
1933
+ var fillBarX = _ref14.fillBarX,
1934
+ fillBarY = _ref14.fillBarY,
1935
+ fillBarLength = _ref14.fillBarLength,
1936
+ orientation = _ref14.orientation;
1934
1937
  var valueMarkerX = fillBarX;
1935
1938
  var valueMarkerY = fillBarY;
1936
1939
  if (orientation === 'vertical') {
@@ -1962,15 +1965,15 @@ exports.getFillerGaugeValueMarkerPositions = getFillerGaugeValueMarkerPositions;
1962
1965
  * @return {Number} markerBarDimensions.markerBarWidth
1963
1966
  * @return {Number} markerBarDimensions.markerBarHeight
1964
1967
  */
1965
- var getMarkerBarDimensions = function getMarkerBarDimensions(_ref13) {
1966
- var gaugeLength = _ref13.gaugeLength,
1967
- gaugeStartX = _ref13.gaugeStartX,
1968
- gaugeStartY = _ref13.gaugeStartY,
1969
- gaugeWidth = _ref13.gaugeWidth,
1970
- gaugeHeight = _ref13.gaugeHeight,
1971
- orientation = _ref13.orientation;
1968
+ var getMarkerBarDimensions = function getMarkerBarDimensions(_ref15) {
1969
+ var gaugeLength = _ref15.gaugeLength,
1970
+ gaugeStartX = _ref15.gaugeStartX,
1971
+ gaugeStartY = _ref15.gaugeStartY,
1972
+ gaugeWidth = _ref15.gaugeWidth,
1973
+ gaugeHeight = _ref15.gaugeHeight,
1974
+ orientation = _ref15.orientation;
1972
1975
  var gaugeBarLength = gaugeLength; // For marker gauge, inner marker bar spans the entire gauge
1973
- var _exports$getGaugeBarS2 = exports.getGaugeBarStartPositions({
1976
+ var _ref16 = (0, exports.getGaugeBarStartPositions)({
1974
1977
  gaugeStartX: gaugeStartX,
1975
1978
  gaugeStartY: gaugeStartY,
1976
1979
  gaugeWidth: gaugeWidth,
@@ -1978,13 +1981,13 @@ var getMarkerBarDimensions = function getMarkerBarDimensions(_ref13) {
1978
1981
  gaugeBarLength: gaugeBarLength,
1979
1982
  orientation: orientation
1980
1983
  }),
1981
- markerBarX = _exports$getGaugeBarS2.gaugeBarX,
1982
- markerBarY = _exports$getGaugeBarS2.gaugeBarY;
1983
- var markerBarWidth = exports.getGaugeBarWidth({
1984
+ markerBarX = _ref16.gaugeBarX,
1985
+ markerBarY = _ref16.gaugeBarY;
1986
+ var markerBarWidth = (0, exports.getGaugeBarWidth)({
1984
1987
  gaugeBarLength: gaugeBarLength,
1985
1988
  orientation: orientation
1986
1989
  });
1987
- var markerBarHeight = exports.getGaugeBarHeight({
1990
+ var markerBarHeight = (0, exports.getGaugeBarHeight)({
1988
1991
  gaugeBarLength: gaugeBarLength,
1989
1992
  orientation: orientation
1990
1993
  });
@@ -2013,19 +2016,19 @@ exports.getMarkerBarDimensions = getMarkerBarDimensions;
2013
2016
  * @return {Number} position.valueMarkerX
2014
2017
  * @return {Number} position.valueMarkerY
2015
2018
  */
2016
- var getMarkerGaugeValueMarkerPositions = function getMarkerGaugeValueMarkerPositions(_ref14) {
2017
- var markerBarX = _ref14.markerBarX,
2018
- markerBarY = _ref14.markerBarY,
2019
- markerBarHeight = _ref14.markerBarHeight,
2020
- gaugeLength = _ref14.markerBarLength,
2021
- orientation = _ref14.orientation,
2022
- value = _ref14.value,
2023
- min = _ref14.min,
2024
- max = _ref14.max;
2019
+ var getMarkerGaugeValueMarkerPositions = function getMarkerGaugeValueMarkerPositions(_ref17) {
2020
+ var markerBarX = _ref17.markerBarX,
2021
+ markerBarY = _ref17.markerBarY,
2022
+ markerBarHeight = _ref17.markerBarHeight,
2023
+ gaugeLength = _ref17.markerBarLength,
2024
+ orientation = _ref17.orientation,
2025
+ value = _ref17.value,
2026
+ min = _ref17.min,
2027
+ max = _ref17.max;
2025
2028
  var valueMarkerX = markerBarX;
2026
2029
  var valueMarkerY = markerBarY;
2027
2030
  if (orientation === 'vertical') {
2028
- valueMarkerY += markerBarHeight - exports.getGaugeBarLength({
2031
+ valueMarkerY += markerBarHeight - (0, exports.getGaugeBarLength)({
2029
2032
  gaugeLength: gaugeLength,
2030
2033
  value: value,
2031
2034
  max: max,
@@ -2033,7 +2036,7 @@ var getMarkerGaugeValueMarkerPositions = function getMarkerGaugeValueMarkerPosit
2033
2036
  });
2034
2037
  valueMarkerX -= (exports.GAUGE_THICKNESS - exports.FILL_THICKNESS) / 4;
2035
2038
  } else {
2036
- valueMarkerX += exports.getGaugeBarLength({
2039
+ valueMarkerX += (0, exports.getGaugeBarLength)({
2037
2040
  gaugeLength: gaugeLength,
2038
2041
  value: value,
2039
2042
  max: max,
@@ -2067,23 +2070,23 @@ exports.getSortedRanges = getSortedRanges;
2067
2070
  */
2068
2071
  var validateRanges = function validateRanges(ranges) {
2069
2072
  if (!ranges.length) {
2070
- return i18n_1._('Prop "ranges" is missing entries');
2073
+ return (0, i18n_1._)('Prop "ranges" is missing entries');
2071
2074
  }
2072
2075
  // check whether a range has "from" >= "to" eg: 10 - 10, 100 - 10, -20 - -10 are invalid
2073
2076
  if (ranges.some(function (range) {
2074
2077
  return range.from >= range.to;
2075
2078
  })) {
2076
- return i18n_1._('Prop "ranges" has invalid entries: invalid range');
2079
+ return (0, i18n_1._)('Prop "ranges" has invalid entries: invalid range');
2077
2080
  }
2078
2081
  // check whether ranges have duplicate "from/to" eg: 0 - 50, 25 - 50
2079
- if (ranges.length !== lodash_1.uniqBy(ranges, 'to').length || ranges.length !== lodash_1.uniqBy(ranges, 'from').length) {
2080
- return i18n_1._('Prop "ranges" has invalid entries: duplicate values');
2082
+ if (ranges.length !== (0, lodash_1.uniqBy)(ranges, 'to').length || ranges.length !== (0, lodash_1.uniqBy)(ranges, 'from').length) {
2083
+ return (0, i18n_1._)('Prop "ranges" has invalid entries: duplicate values');
2081
2084
  }
2082
- var sortedRanges = exports.getSortedRanges(ranges);
2085
+ var sortedRanges = (0, exports.getSortedRanges)(ranges);
2083
2086
  // check whether ranges are continuous eg: 0 - 10, 10 - 20, 20 - 30
2084
2087
  for (var i = 1; i < sortedRanges.length; i += 1) {
2085
2088
  if (sortedRanges[i].from !== sortedRanges[i - 1].to) {
2086
- return i18n_1._('Prop "ranges" has invalid entries: discontinuous ranges');
2089
+ return (0, i18n_1._)('Prop "ranges" has invalid entries: discontinuous ranges');
2087
2090
  }
2088
2091
  }
2089
2092
  return null;
@@ -2117,12 +2120,12 @@ exports.getGaugeRange = getGaugeRange;
2117
2120
  * @param {String} orientation
2118
2121
  * @return {Array} cumulativeOffsets
2119
2122
  */
2120
- var getGradientStopOffsets = function getGradientStopOffsets(_ref15) {
2121
- var ranges = _ref15.ranges,
2122
- orientation = _ref15.orientation;
2123
- var _exports$getGaugeRang = exports.getGaugeRange(ranges),
2124
- min = _exports$getGaugeRang.min,
2125
- max = _exports$getGaugeRang.max;
2123
+ var getGradientStopOffsets = function getGradientStopOffsets(_ref18) {
2124
+ var ranges = _ref18.ranges,
2125
+ orientation = _ref18.orientation;
2126
+ var _ref19 = (0, exports.getGaugeRange)(ranges),
2127
+ min = _ref19.min,
2128
+ max = _ref19.max;
2126
2129
  var offsetScale = (GRADIENT_STOP_OFFSET_MAX - GRADIENT_STOP_OFFSET_MIN) / (max - min);
2127
2130
  var offsets = ranges.map(function (range) {
2128
2131
  return Math.abs(range.from - range.to) * offsetScale;
@@ -2144,9 +2147,9 @@ exports.getGradientStopOffsets = getGradientStopOffsets;
2144
2147
  * @param {String} orientation
2145
2148
  * @return {Array} stopColors
2146
2149
  */
2147
- var getGradientStopColors = function getGradientStopColors(_ref16) {
2148
- var ranges = _ref16.ranges,
2149
- orientation = _ref16.orientation;
2150
+ var getGradientStopColors = function getGradientStopColors(_ref20) {
2151
+ var ranges = _ref20.ranges,
2152
+ orientation = _ref20.orientation;
2150
2153
  var stopColors = ranges.map(function (range) {
2151
2154
  return range.value;
2152
2155
  });
@@ -2162,15 +2165,15 @@ exports.getGradientStopColors = getGradientStopColors;
2162
2165
  * @param {String} orientation
2163
2166
  * @return {Array} stops
2164
2167
  */
2165
- var getGradientStops = function getGradientStops(_ref17) {
2166
- var ranges = _ref17.ranges,
2167
- orientation = _ref17.orientation;
2168
+ var getGradientStops = function getGradientStops(_ref21) {
2169
+ var ranges = _ref21.ranges,
2170
+ orientation = _ref21.orientation;
2168
2171
  var stops = [];
2169
- var offsets = exports.getGradientStopOffsets({
2172
+ var offsets = (0, exports.getGradientStopOffsets)({
2170
2173
  ranges: ranges,
2171
2174
  orientation: orientation
2172
2175
  });
2173
- var stopColors = exports.getGradientStopColors({
2176
+ var stopColors = (0, exports.getGradientStopColors)({
2174
2177
  ranges: ranges,
2175
2178
  orientation: orientation
2176
2179
  });
@@ -2228,7 +2231,7 @@ var gaugeOptionsMapping = {
2228
2231
  * @returns {Object}
2229
2232
  */
2230
2233
  var mapToOldKey = function mapToOldKey(options) {
2231
- return lodash_1.mapKeys(options, function (val, key) {
2234
+ return (0, lodash_1.mapKeys)(options, function (val, key) {
2232
2235
  return gaugeOptionsMapping[key] ? gaugeOptionsMapping[key] : key;
2233
2236
  });
2234
2237
  };
@@ -2258,7 +2261,7 @@ var mapValueLabelDisplay = function mapValueLabelDisplay(labelOrValue, options)
2258
2261
  newOptions[percentKey] = false;
2259
2262
  }
2260
2263
  }
2261
- return lodash_1.omit(newOptions, [optionString]);
2264
+ return (0, lodash_1.omit)(newOptions, [optionString]);
2262
2265
  };
2263
2266
  exports.mapValueLabelDisplay = mapValueLabelDisplay;
2264
2267
  /**
@@ -2269,16 +2272,15 @@ exports.mapValueLabelDisplay = mapValueLabelDisplay;
2269
2272
  * @returns {Object}
2270
2273
  */
2271
2274
  var convertToGaugeProperties = function convertToGaugeProperties(originalOptions) {
2272
- return lodash_1.chain(exports.mapToOldKey(originalOptions)).thru(function (options) {
2273
- return exports.mapValueLabelDisplay('label', options);
2275
+ return (0, lodash_1.chain)((0, exports.mapToOldKey)(originalOptions)).thru(function (options) {
2276
+ return (0, exports.mapValueLabelDisplay)('label', options);
2274
2277
  }).thru(function (options) {
2275
- return exports.mapValueLabelDisplay('value', options);
2278
+ return (0, exports.mapValueLabelDisplay)('value', options);
2276
2279
  }).value();
2277
2280
  };
2278
2281
  exports.convertToGaugeProperties = convertToGaugeProperties;
2279
2282
 
2280
2283
  /***/ }),
2281
- /* 98 */,
2282
2284
  /* 99 */,
2283
2285
  /* 100 */,
2284
2286
  /* 101 */,
@@ -2305,7 +2307,8 @@ exports.convertToGaugeProperties = convertToGaugeProperties;
2305
2307
  /* 122 */,
2306
2308
  /* 123 */,
2307
2309
  /* 124 */,
2308
- /* 125 */
2310
+ /* 125 */,
2311
+ /* 126 */
2309
2312
  /***/ (function(module, exports, __webpack_require__) {
2310
2313
 
2311
2314
  "use strict";
@@ -2316,49 +2319,49 @@ Object.defineProperty(exports, "__esModule", {
2316
2319
  });
2317
2320
  var i18n_1 = __webpack_require__(2);
2318
2321
  var gauge = {
2319
- label: i18n_1._('Data display'),
2322
+ label: (0, i18n_1._)('Data display'),
2320
2323
  layout: [[{
2321
- label: i18n_1._('Value display'),
2324
+ label: (0, i18n_1._)('Value display'),
2322
2325
  option: 'valueDisplay',
2323
2326
  editor: 'editor.radioBar',
2324
2327
  editorProps: {
2325
2328
  values: [{
2326
- label: i18n_1._('Number'),
2329
+ label: (0, i18n_1._)('Number'),
2327
2330
  value: 'number'
2328
2331
  }, {
2329
- label: i18n_1._('Percentage'),
2332
+ label: (0, i18n_1._)('Percentage'),
2330
2333
  value: 'percentage'
2331
2334
  }, {
2332
- label: i18n_1._('Off'),
2335
+ label: (0, i18n_1._)('Off'),
2333
2336
  value: 'off'
2334
2337
  }]
2335
2338
  }
2336
2339
  }], [{
2337
- label: i18n_1._('Label display'),
2340
+ label: (0, i18n_1._)('Label display'),
2338
2341
  option: 'labelDisplay',
2339
2342
  editor: 'editor.radioBar',
2340
2343
  editorProps: {
2341
2344
  values: [{
2342
- label: i18n_1._('Numbers'),
2345
+ label: (0, i18n_1._)('Numbers'),
2343
2346
  value: 'number'
2344
2347
  }, {
2345
- label: i18n_1._('Percentages'),
2348
+ label: (0, i18n_1._)('Percentages'),
2346
2349
  value: 'percentage'
2347
2350
  }, {
2348
- label: i18n_1._('Off'),
2351
+ label: (0, i18n_1._)('Off'),
2349
2352
  value: 'off'
2350
2353
  }]
2351
2354
  }
2352
2355
  }], [{
2353
- label: i18n_1._('Orientation'),
2356
+ label: (0, i18n_1._)('Orientation'),
2354
2357
  option: 'orientation',
2355
2358
  editor: 'editor.radioBar',
2356
2359
  editorProps: {
2357
2360
  values: [{
2358
- label: i18n_1._('Vertical'),
2361
+ label: (0, i18n_1._)('Vertical'),
2359
2362
  value: 'vertical'
2360
2363
  }, {
2361
- label: i18n_1._('Horizontal'),
2364
+ label: (0, i18n_1._)('Horizontal'),
2362
2365
  value: 'horizontal'
2363
2366
  }]
2364
2367
  }
@@ -2367,7 +2370,7 @@ var gauge = {
2367
2370
  exports.default = gauge;
2368
2371
 
2369
2372
  /***/ }),
2370
- /* 126 */
2373
+ /* 127 */
2371
2374
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2372
2375
 
2373
2376
  "use strict";
@@ -2382,7 +2385,7 @@ __webpack_require__.r(__webpack_exports__);
2382
2385
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
2383
2386
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4);
2384
2387
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_3__);
2385
- /* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(30);
2388
+ /* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(31);
2386
2389
  /* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_4__);
2387
2390
 
2388
2391
 
@@ -2611,7 +2614,7 @@ MajorTicks.defaultProps = {
2611
2614
  /* harmony default export */ __webpack_exports__["default"] = (MajorTicks);
2612
2615
 
2613
2616
  /***/ }),
2614
- /* 127 */
2617
+ /* 128 */
2615
2618
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2616
2619
 
2617
2620
  "use strict";
@@ -2626,7 +2629,7 @@ __webpack_require__.r(__webpack_exports__);
2626
2629
  /* harmony import */ var prop_types__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(prop_types__WEBPACK_IMPORTED_MODULE_2__);
2627
2630
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(4);
2628
2631
  /* harmony import */ var styled_components__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(styled_components__WEBPACK_IMPORTED_MODULE_3__);
2629
- /* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(30);
2632
+ /* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(31);
2630
2633
  /* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_4__);
2631
2634
 
2632
2635
 
@@ -2813,7 +2816,6 @@ ValueMarker.defaultProps = {
2813
2816
  /* harmony default export */ __webpack_exports__["default"] = (ValueMarker);
2814
2817
 
2815
2818
  /***/ }),
2816
- /* 128 */,
2817
2819
  /* 129 */,
2818
2820
  /* 130 */,
2819
2821
  /* 131 */,
@@ -2896,7 +2898,10 @@ ValueMarker.defaultProps = {
2896
2898
  /* 208 */,
2897
2899
  /* 209 */,
2898
2900
  /* 210 */,
2899
- /* 211 */
2901
+ /* 211 */,
2902
+ /* 212 */,
2903
+ /* 213 */,
2904
+ /* 214 */
2900
2905
  /***/ (function(module, exports, __webpack_require__) {
2901
2906
 
2902
2907
  "use strict";
@@ -2917,16 +2922,16 @@ Object.defineProperty(exports, "__esModule", {
2917
2922
  });
2918
2923
  exports.themes = exports.computeVizProps = exports.PureFillerGauge = exports.config = void 0;
2919
2924
  var lodash_1 = __webpack_require__(3);
2920
- var config_1 = __webpack_require__(212);
2925
+ var config_1 = __webpack_require__(215);
2921
2926
  var withDashboardViz_1 = __webpack_require__(36);
2922
- var FillerGauge_1 = __webpack_require__(216);
2923
- var gaugeUtils_1 = __webpack_require__(97);
2927
+ var FillerGauge_1 = __webpack_require__(219);
2928
+ var gaugeUtils_1 = __webpack_require__(98);
2924
2929
  exports.config = config_1.default;
2925
2930
  exports.PureFillerGauge = FillerGauge_1.default;
2926
2931
  var validOptions = Object.keys(exports.config.optionsSchema);
2927
2932
  var computeVizProps = function computeVizProps(_a) {
2928
2933
  var props = __rest(_a, []);
2929
- var options = lodash_1.chain(props).pick(validOptions).thru(gaugeUtils_1.convertToGaugeProperties).value();
2934
+ var options = (0, lodash_1.chain)(props).pick(validOptions).thru(gaugeUtils_1.convertToGaugeProperties).value();
2930
2935
  var defaultColors = {
2931
2936
  backgroundBarFillColor: exports.config.themes.defaultBackgroundBarFillColor(props),
2932
2937
  majorTickFillColor: exports.config.themes.majorTickFillColor(props),
@@ -2937,7 +2942,7 @@ var computeVizProps = function computeVizProps(_a) {
2937
2942
  return Object.assign(Object.assign({}, options), defaultColors);
2938
2943
  };
2939
2944
  exports.computeVizProps = computeVizProps;
2940
- var viz = withDashboardViz_1.default({
2945
+ var viz = (0, withDashboardViz_1.default)({
2941
2946
  ReactViz: FillerGauge_1.default,
2942
2947
  computeVizProps: exports.computeVizProps,
2943
2948
  vizConfig: config_1.default
@@ -2946,7 +2951,7 @@ exports.themes = config_1.default.themes;
2946
2951
  exports.default = viz;
2947
2952
 
2948
2953
  /***/ }),
2949
- /* 212 */
2954
+ /* 215 */
2950
2955
  /***/ (function(module, exports, __webpack_require__) {
2951
2956
 
2952
2957
  "use strict";
@@ -2960,16 +2965,16 @@ var schemaUtils_1 = __webpack_require__(16);
2960
2965
  var pick_1 = __webpack_require__(23);
2961
2966
  var variables_1 = __webpack_require__(11);
2962
2967
  var visualization_color_palettes_1 = __webpack_require__(51);
2963
- var PresetPalettes_1 = __webpack_require__(60);
2964
- var GaugeFiller_1 = __webpack_require__(213);
2965
- var placeholders_1 = __webpack_require__(49);
2968
+ var PresetPalettes_1 = __webpack_require__(61);
2969
+ var GaugeFiller_1 = __webpack_require__(216);
2970
+ var placeholders_1 = __webpack_require__(50);
2966
2971
  var VizBehavior_1 = __webpack_require__(6);
2967
2972
  var VizCategory_1 = __webpack_require__(35);
2968
2973
  var configUtils_1 = __webpack_require__(20);
2969
- var Gauge_1 = __webpack_require__(125);
2974
+ var Gauge_1 = __webpack_require__(126);
2970
2975
  var BackgroundColor_1 = __webpack_require__(53);
2971
- var DynamicGaugeColorEditor_1 = __webpack_require__(214);
2972
- var StaticGaugeColorEditor_1 = __webpack_require__(215);
2976
+ var DynamicGaugeColorEditor_1 = __webpack_require__(217);
2977
+ var StaticGaugeColorEditor_1 = __webpack_require__(218);
2973
2978
  var dataContract = {
2974
2979
  requiredDataSources: [{
2975
2980
  name: 'primary',
@@ -3023,7 +3028,7 @@ var optionsSchema = {
3023
3028
  labelDisplay: {
3024
3029
  default: 'number',
3025
3030
  description: 'Specify whether to display the labels as numbers, percentages, or off. The label right aligns to the value for horizontal orientation, and top aligns for vertical.',
3026
- pattern: schemaUtils_1.getPattern(['number', 'percentage', 'off']),
3031
+ pattern: (0, schemaUtils_1.getPattern)(['number', 'percentage', 'off']),
3027
3032
  type: 'string'
3028
3033
  },
3029
3034
  majorTickInterval: {
@@ -3034,7 +3039,7 @@ var optionsSchema = {
3034
3039
  orientation: {
3035
3040
  default: 'vertical',
3036
3041
  description: 'Specify the axis orientation of the gauge.',
3037
- pattern: schemaUtils_1.getPattern(['vertical', 'horizontal']),
3042
+ pattern: (0, schemaUtils_1.getPattern)(['vertical', 'horizontal']),
3038
3043
  type: 'string'
3039
3044
  },
3040
3045
  value: {
@@ -3045,13 +3050,13 @@ var optionsSchema = {
3045
3050
  valueDisplay: {
3046
3051
  default: 'number',
3047
3052
  description: 'Specify whether to display the value as a number, percentage, or off.',
3048
- pattern: schemaUtils_1.getPattern(['number', 'percentage', 'off']),
3053
+ pattern: (0, schemaUtils_1.getPattern)(['number', 'percentage', 'off']),
3049
3054
  type: 'string'
3050
3055
  }
3051
3056
  };
3052
3057
  var themes = {
3053
3058
  defaultBackgroundColor: function defaultBackgroundColor(props) {
3054
- return pick_1.default({
3059
+ return (0, pick_1.default)({
3055
3060
  enterprise: {
3056
3061
  dark: variables_1.default.black(props),
3057
3062
  light: variables_1.default.backgroundColor(props)
@@ -3060,7 +3065,7 @@ var themes = {
3060
3065
  })(props);
3061
3066
  },
3062
3067
  defaultBackgroundBarFillColor: function defaultBackgroundBarFillColor(props) {
3063
- return pick_1.default({
3068
+ return (0, pick_1.default)({
3064
3069
  enterprise: variables_1.default.backgroundColorHover(props),
3065
3070
  prisma: {
3066
3071
  light: variables_1.default.contentColorActive(props),
@@ -3069,7 +3074,7 @@ var themes = {
3069
3074
  })(props);
3070
3075
  },
3071
3076
  majorTickFillColor: function majorTickFillColor(props) {
3072
- return pick_1.default({
3077
+ return (0, pick_1.default)({
3073
3078
  enterprise: {
3074
3079
  light: variables_1.default.gray30(props),
3075
3080
  dark: variables_1.default.textGray(props) // was #D7DAE0
@@ -3083,7 +3088,7 @@ var themes = {
3083
3088
  })(props);
3084
3089
  },
3085
3090
  majorTickStrokeColor: function majorTickStrokeColor(props) {
3086
- return pick_1.default({
3091
+ return (0, pick_1.default)({
3087
3092
  enterprise: {
3088
3093
  light: variables_1.default.textGray(props),
3089
3094
  dark: variables_1.default.contentColorMuted(props)
@@ -3092,7 +3097,7 @@ var themes = {
3092
3097
  })(props);
3093
3098
  },
3094
3099
  valueMarkerFillColor: function valueMarkerFillColor(props) {
3095
- return pick_1.default({
3100
+ return (0, pick_1.default)({
3096
3101
  enterprise: variables_1.default.textColor(props),
3097
3102
  prisma: {
3098
3103
  dark: variables_1.default.white(props),
@@ -3101,7 +3106,7 @@ var themes = {
3101
3106
  })(props);
3102
3107
  },
3103
3108
  valueMarkerLabelFillColor: function valueMarkerLabelFillColor(props) {
3104
- return pick_1.default({
3109
+ return (0, pick_1.default)({
3105
3110
  enterprise: {
3106
3111
  light: variables_1.default.gray96(props),
3107
3112
  dark: variables_1.default.black(props)
@@ -3118,14 +3123,14 @@ var basePresetOptions = {
3118
3123
  };
3119
3124
  var presets = [{
3120
3125
  // dummy context variables to allow for resetting of unused context states
3121
- label: i18n_1._('None'),
3126
+ label: (0, i18n_1._)('None'),
3122
3127
  name: 'fillerGauge.none',
3123
3128
  value: {
3124
3129
  context: Object.assign({}, basePresetContext),
3125
3130
  options: Object.assign({}, basePresetOptions)
3126
3131
  }
3127
3132
  }, {
3128
- label: i18n_1._('Gauge'),
3133
+ label: (0, i18n_1._)('Gauge'),
3129
3134
  name: 'fillerGauge.gauge',
3130
3135
  value: {
3131
3136
  context: {
@@ -3137,9 +3142,9 @@ var presets = [{
3137
3142
  }
3138
3143
  }];
3139
3144
  var editorConfig = [{
3140
- label: i18n_1._('Data configurations'),
3145
+ label: (0, i18n_1._)('Data configurations'),
3141
3146
  layout: [[{
3142
- label: i18n_1._('Value'),
3147
+ label: (0, i18n_1._)('Value'),
3143
3148
  editor: 'editor.columnSelector',
3144
3149
  option: 'value',
3145
3150
  context: 'defaultContext',
@@ -3157,9 +3162,9 @@ var editorConfig = [{
3157
3162
  }
3158
3163
  }]]
3159
3164
  }, Gauge_1.default, {
3160
- label: i18n_1._('Color and style'),
3165
+ label: (0, i18n_1._)('Color and style'),
3161
3166
  layout: [[{
3162
- label: i18n_1._('Dynamic elements'),
3167
+ label: (0, i18n_1._)('Dynamic elements'),
3163
3168
  key: 'presetSelector',
3164
3169
  editor: 'editor.presetSelector',
3165
3170
  editorProps: {
@@ -3167,18 +3172,18 @@ var editorConfig = [{
3167
3172
  value: function value(_ref) {
3168
3173
  var context = _ref.context,
3169
3174
  options = _ref.options;
3170
- var initialPreset = configUtils_1.getInitialPreset(context, options, presets);
3175
+ var initialPreset = (0, configUtils_1.getInitialPreset)(context, options, presets);
3171
3176
  return initialPreset && initialPreset.label || null;
3172
3177
  }
3173
3178
  }
3174
- }], [DynamicGaugeColorEditor_1.getDynamicGaugeColorEditor({
3179
+ }], [(0, DynamicGaugeColorEditor_1.getDynamicGaugeColorEditor)({
3175
3180
  defaultContext: defaultContext,
3176
3181
  defaultPalettesConfig: PresetPalettes_1.defaultPalettesConfig
3177
3182
  })], [Object.assign(Object.assign({}, StaticGaugeColorEditor_1.default), {
3178
3183
  editorProps: {
3179
3184
  themes: themes
3180
3185
  }
3181
- })], BackgroundColor_1.default({
3186
+ })], (0, BackgroundColor_1.default)({
3182
3187
  themes: themes
3183
3188
  })]
3184
3189
  }];
@@ -3193,7 +3198,7 @@ var config = {
3193
3198
  /**
3194
3199
  * viz name
3195
3200
  */
3196
- name: i18n_1._('Filler gauge'),
3201
+ name: (0, i18n_1._)('Filler gauge'),
3197
3202
  category: VizCategory_1.VizCategory.GAUGE,
3198
3203
  /**
3199
3204
  * viz icon
@@ -3208,16 +3213,16 @@ var config = {
3208
3213
  supports: [VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS, VizBehavior_1.VizBehavior.PLACEHOLDER],
3209
3214
  themes: themes
3210
3215
  };
3211
- exports.default = configUtils_1.enhanceConfig(config);
3216
+ exports.default = (0, configUtils_1.enhanceConfig)(config);
3212
3217
 
3213
3218
  /***/ }),
3214
- /* 213 */
3219
+ /* 216 */
3215
3220
  /***/ (function(module, exports) {
3216
3221
 
3217
3222
  module.exports = require("@splunk/react-icons/enterprise/GaugeFiller");
3218
3223
 
3219
3224
  /***/ }),
3220
- /* 214 */
3225
+ /* 217 */
3221
3226
  /***/ (function(module, exports, __webpack_require__) {
3222
3227
 
3223
3228
  "use strict";
@@ -3233,26 +3238,26 @@ var getDynamicGaugeColorEditor = function getDynamicGaugeColorEditor(_ref) {
3233
3238
  var defaultContext = _ref.defaultContext,
3234
3239
  defaultPalettesConfig = _ref.defaultPalettesConfig;
3235
3240
  return {
3236
- label: i18n_1._('Gauge'),
3241
+ label: (0, i18n_1._)('Gauge'),
3237
3242
  option: 'gaugeColor',
3238
3243
  context: 'gaugeColorConfig',
3239
3244
  editor: 'editor.dynamicColor',
3240
3245
  showEditor: function showEditor(_ref2) {
3241
3246
  var options = _ref2.options;
3242
- return configUtils_1.isDynamicOption(options.gaugeColor);
3247
+ return (0, configUtils_1.isDynamicOption)(options.gaugeColor);
3243
3248
  },
3244
3249
  editorProps: {
3245
3250
  labelPosition: 'top',
3246
- flyoutTitle: i18n_1._('Dynamic coloring: gauge'),
3251
+ flyoutTitle: (0, i18n_1._)('Dynamic coloring: gauge'),
3247
3252
  formatters: [{
3248
- label: i18n_1._('Ranges'),
3253
+ label: (0, i18n_1._)('Ranges'),
3249
3254
  value: 'rangeValue',
3250
3255
  defaults: {
3251
3256
  value: defaultContext.gaugeColorConfig
3252
3257
  }
3253
3258
  }],
3254
3259
  dataSelectors: [{
3255
- label: i18n_1._('Value'),
3260
+ label: (0, i18n_1._)('Value'),
3256
3261
  value: 'value'
3257
3262
  }],
3258
3263
  defaultPalettesConfig: defaultPalettesConfig
@@ -3262,7 +3267,7 @@ var getDynamicGaugeColorEditor = function getDynamicGaugeColorEditor(_ref) {
3262
3267
  exports.getDynamicGaugeColorEditor = getDynamicGaugeColorEditor;
3263
3268
 
3264
3269
  /***/ }),
3265
- /* 215 */
3270
+ /* 218 */
3266
3271
  /***/ (function(module, exports, __webpack_require__) {
3267
3272
 
3268
3273
  "use strict";
@@ -3274,18 +3279,18 @@ Object.defineProperty(exports, "__esModule", {
3274
3279
  var i18n_1 = __webpack_require__(2);
3275
3280
  var configUtils_1 = __webpack_require__(22);
3276
3281
  var StaticGaugeColorEditor = {
3277
- label: i18n_1._('Gauge'),
3282
+ label: (0, i18n_1._)('Gauge'),
3278
3283
  option: 'gaugeColor',
3279
3284
  editor: 'editor.color',
3280
3285
  showEditor: function showEditor(_ref) {
3281
3286
  var options = _ref.options;
3282
- return !configUtils_1.isDynamicOption(options.gaugeColor);
3287
+ return !(0, configUtils_1.isDynamicOption)(options.gaugeColor);
3283
3288
  }
3284
3289
  };
3285
3290
  exports.default = StaticGaugeColorEditor;
3286
3291
 
3287
3292
  /***/ }),
3288
- /* 216 */
3293
+ /* 219 */
3289
3294
  /***/ (function(module, exports, __webpack_require__) {
3290
3295
 
3291
3296
  "use strict";
@@ -3313,14 +3318,14 @@ var i18n_1 = __webpack_require__(2);
3313
3318
  var style_1 = __webpack_require__(14);
3314
3319
  var SizeAwareWrapper_1 = __webpack_require__(19);
3315
3320
  var Message_1 = __webpack_require__(10);
3316
- var gaugeUtils_1 = __webpack_require__(97);
3317
- var GaugeMajorTicks_1 = __webpack_require__(126);
3318
- var GaugeValueMarker_1 = __webpack_require__(127);
3321
+ var gaugeUtils_1 = __webpack_require__(98);
3322
+ var GaugeMajorTicks_1 = __webpack_require__(127);
3323
+ var GaugeValueMarker_1 = __webpack_require__(128);
3319
3324
  var Container = styled_components_1.default.div.withConfig({
3320
3325
  displayName: "FillerGauge__Container",
3321
3326
  componentId: "u356pd-0"
3322
3327
  })(["overflow:hidden;", ";background-color:", ";"], function (props) {
3323
- return style_1.toDimension(lodash_1.pick(props, ['width', 'height']));
3328
+ return (0, style_1.toDimension)((0, lodash_1.pick)(props, ['width', 'height']));
3324
3329
  }, function (props) {
3325
3330
  return props.backgroundColor;
3326
3331
  });
@@ -3334,13 +3339,13 @@ var FillerGaugeContainer = styled_components_1.default.div.withConfig({
3334
3339
  displayName: "FillerGauge__FillerGaugeContainer",
3335
3340
  componentId: "u356pd-2"
3336
3341
  })(["overflow:hidden;position:relative;", ";"], function (props) {
3337
- return style_1.toDimension(lodash_1.pick(props, ['width', 'height']));
3342
+ return (0, style_1.toDimension)((0, lodash_1.pick)(props, ['width', 'height']));
3338
3343
  });
3339
3344
  var FillerGaugeSVG = styled_components_1.default.svg.withConfig({
3340
3345
  displayName: "FillerGauge__FillerGaugeSVG",
3341
3346
  componentId: "u356pd-3"
3342
3347
  })(["", ";"], function (props) {
3343
- return style_1.toDimension(lodash_1.pick(props, ['width', 'height']));
3348
+ return (0, style_1.toDimension)((0, lodash_1.pick)(props, ['width', 'height']));
3344
3349
  });
3345
3350
  var BackgroundBar = styled_components_1.default.rect.attrs({
3346
3351
  'data-test': 'background-bar-rect'
@@ -3396,21 +3401,21 @@ var FillerGauge = function FillerGauge(_a) {
3396
3401
  return React.createElement(Message_1.default, {
3397
3402
  width: containerWidth,
3398
3403
  height: containerHeight,
3399
- message: i18n_1._('Too small to render content'),
3404
+ message: (0, i18n_1._)('Too small to render content'),
3400
3405
  level: "info"
3401
3406
  });
3402
3407
  }
3403
- var _gaugeUtils_1$getGaug = gaugeUtils_1.getGaugeDimensions({
3408
+ var _ref2 = (0, gaugeUtils_1.getGaugeDimensions)({
3404
3409
  containerWidth: containerWidth,
3405
3410
  containerHeight: containerHeight,
3406
3411
  orientation: orientation
3407
3412
  }),
3408
- gaugeLength = _gaugeUtils_1$getGaug.gaugeLength,
3409
- gaugeStartX = _gaugeUtils_1$getGaug.gaugeStartX,
3410
- gaugeStartY = _gaugeUtils_1$getGaug.gaugeStartY,
3411
- gaugeWidth = _gaugeUtils_1$getGaug.gaugeWidth,
3412
- gaugeHeight = _gaugeUtils_1$getGaug.gaugeHeight;
3413
- var _gaugeUtils_1$getFill = gaugeUtils_1.getFillBarDimensions({
3413
+ gaugeLength = _ref2.gaugeLength,
3414
+ gaugeStartX = _ref2.gaugeStartX,
3415
+ gaugeStartY = _ref2.gaugeStartY,
3416
+ gaugeWidth = _ref2.gaugeWidth,
3417
+ gaugeHeight = _ref2.gaugeHeight;
3418
+ var _ref3 = (0, gaugeUtils_1.getFillBarDimensions)({
3414
3419
  gaugeLength: gaugeLength,
3415
3420
  gaugeStartX: gaugeStartX,
3416
3421
  gaugeStartY: gaugeStartY,
@@ -3421,19 +3426,19 @@ var FillerGauge = function FillerGauge(_a) {
3421
3426
  max: max,
3422
3427
  orientation: orientation
3423
3428
  }),
3424
- fillBarLength = _gaugeUtils_1$getFill.fillBarLength,
3425
- fillBarX = _gaugeUtils_1$getFill.fillBarX,
3426
- fillBarY = _gaugeUtils_1$getFill.fillBarY,
3427
- fillBarWidth = _gaugeUtils_1$getFill.fillBarWidth,
3428
- fillBarHeight = _gaugeUtils_1$getFill.fillBarHeight;
3429
- var _gaugeUtils_1$getFill2 = gaugeUtils_1.getFillerGaugeValueMarkerPositions({
3429
+ fillBarLength = _ref3.fillBarLength,
3430
+ fillBarX = _ref3.fillBarX,
3431
+ fillBarY = _ref3.fillBarY,
3432
+ fillBarWidth = _ref3.fillBarWidth,
3433
+ fillBarHeight = _ref3.fillBarHeight;
3434
+ var _ref4 = (0, gaugeUtils_1.getFillerGaugeValueMarkerPositions)({
3430
3435
  fillBarX: fillBarX,
3431
3436
  fillBarY: fillBarY,
3432
3437
  fillBarLength: fillBarLength,
3433
3438
  orientation: orientation
3434
3439
  }),
3435
- valueMarkerX = _gaugeUtils_1$getFill2.valueMarkerX,
3436
- valueMarkerY = _gaugeUtils_1$getFill2.valueMarkerY;
3440
+ valueMarkerX = _ref4.valueMarkerX,
3441
+ valueMarkerY = _ref4.valueMarkerY;
3437
3442
  return React.createElement(FillerGaugeWrapper, {
3438
3443
  backgroundColor: backgroundColor,
3439
3444
  "data-test": "FillerGaugeWrapper"
@@ -3470,7 +3475,7 @@ var FillerGauge = function FillerGauge(_a) {
3470
3475
  y: fillBarY,
3471
3476
  width: fillBarWidth,
3472
3477
  height: fillBarHeight,
3473
- color: gaugeColor || gaugeUtils_1.assignGaugeColor({
3478
+ color: gaugeColor || (0, gaugeUtils_1.assignGaugeColor)({
3474
3479
  value: value,
3475
3480
  min: min,
3476
3481
  max: max