@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/Area.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 = 173);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 177);
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
@@ -559,35 +559,41 @@ module.exports = require("@splunk/themes/pick");
559
559
  /* 25 */
560
560
  /***/ (function(module, exports) {
561
561
 
562
- module.exports = require("@splunk/visualization-context/TimezoneContext");
562
+ module.exports = require("@splunk/ui-utils/id");
563
563
 
564
564
  /***/ }),
565
565
  /* 26 */
566
566
  /***/ (function(module, exports) {
567
567
 
568
- module.exports = require("@splunk/visualizations-shared/hocUtils");
568
+ module.exports = require("@splunk/visualization-context/TimezoneContext");
569
569
 
570
570
  /***/ }),
571
571
  /* 27 */
572
572
  /***/ (function(module, exports) {
573
573
 
574
- module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
574
+ module.exports = require("@splunk/visualizations-shared/hocUtils");
575
575
 
576
576
  /***/ }),
577
577
  /* 28 */
578
578
  /***/ (function(module, exports) {
579
579
 
580
- module.exports = require("@splunk/visualizations-shared/propUtils");
580
+ module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
581
581
 
582
582
  /***/ }),
583
583
  /* 29 */
584
584
  /***/ (function(module, exports) {
585
585
 
586
+ module.exports = require("@splunk/visualizations-shared/propUtils");
587
+
588
+ /***/ }),
589
+ /* 30 */
590
+ /***/ (function(module, exports) {
591
+
586
592
  module.exports = require("@splunk/visualization-encoding/Options");
587
593
 
588
594
  /***/ }),
589
- /* 30 */,
590
- /* 31 */
595
+ /* 31 */,
596
+ /* 32 */
591
597
  /***/ (function(module, exports, __webpack_require__) {
592
598
 
593
599
  "use strict";
@@ -611,9 +617,9 @@ var FixedSizeContainer_1 = __webpack_require__(13);
611
617
  */
612
618
  var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
613
619
  var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
614
- var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
620
+ var data = (0, lodash_1.get)(dataSources, 'primary.data.columns[0]', undefined);
615
621
  var noData = data === undefined;
616
- var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
622
+ var fields = (0, lodash_1.get)(dataSources, 'primary.data.fields[0]', undefined);
617
623
  var noFields = fields === undefined;
618
624
  return loading || noData || noFields;
619
625
  };
@@ -654,7 +660,7 @@ var IconPlaceholder = function IconPlaceholder(props) {
654
660
  width: width,
655
661
  height: height,
656
662
  level: "warning",
657
- message: i18n_1._('No DataSource Connected')
663
+ message: (0, i18n_1._)('No DataSource Connected')
658
664
  });
659
665
  };
660
666
  IconPlaceholder.propTypes = propTypes;
@@ -662,13 +668,7 @@ IconPlaceholder.defaultProps = {
662
668
  width: '100%',
663
669
  height: 250
664
670
  };
665
- exports.default = FixedSizeContainer_1.default(IconPlaceholder);
666
-
667
- /***/ }),
668
- /* 32 */
669
- /***/ (function(module, exports) {
670
-
671
- module.exports = require("@splunk/ui-utils/id");
671
+ exports.default = (0, FixedSizeContainer_1.default)(IconPlaceholder);
672
672
 
673
673
  /***/ }),
674
674
  /* 33 */
@@ -702,7 +702,7 @@ var getSortingParams = function getSortingParams(_ref) {
702
702
  };
703
703
  var onSort;
704
704
  if (typeof onRequestParamsChange === 'function') {
705
- if (requestParams && lodash_1.has(requestParams, 'sort')) {
705
+ if (requestParams && (0, lodash_1.has)(requestParams, 'sort')) {
706
706
  currentSortKey = Object.keys(requestParams.sort).shift();
707
707
  currentSortDir = requestParams.sort[currentSortKey];
708
708
  }
@@ -711,7 +711,7 @@ var getSortingParams = function getSortingParams(_ref) {
711
711
  var sortKey = _ref2.sortKey,
712
712
  sortDir = _ref2.sortDir;
713
713
  if (typeof sortKey === 'string') {
714
- var nextSortDir = lodash_1.has(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
714
+ var nextSortDir = (0, lodash_1.has)(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
715
715
  onRequestParamsChange(Object.assign(Object.assign({}, requestParams), {
716
716
  offset: 0,
717
717
  sort: _defineProperty({}, sortKey, nextSortDir)
@@ -761,7 +761,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
761
761
  var onChangeHandler = function onChangeHandler(e, _ref2) {
762
762
  var page = _ref2.page,
763
763
  countArg = _ref2.count;
764
- var newParams = lodash_1.cloneDeep(requestParams);
764
+ var newParams = (0, lodash_1.cloneDeep)(requestParams);
765
765
  if (typeof countArg === 'number') {
766
766
  newParams.count = countArg;
767
767
  newParams.offset = 0;
@@ -823,16 +823,16 @@ Object.defineProperty(exports, "__esModule", {
823
823
  var React = __webpack_require__(1);
824
824
  var lodash_1 = __webpack_require__(3);
825
825
  var getSettingsFromThemedProps_1 = __webpack_require__(37);
826
- var Options_1 = __webpack_require__(29);
826
+ var Options_1 = __webpack_require__(30);
827
827
  var SanitizeProps_1 = __webpack_require__(38);
828
- var TimezoneContext_1 = __webpack_require__(25);
828
+ var TimezoneContext_1 = __webpack_require__(26);
829
829
  var moment_1 = __webpack_require__(39);
830
830
  var FeatureFlagContext_1 = __webpack_require__(21);
831
831
  var styled_components_1 = __webpack_require__(4);
832
- var hocUtils_1 = __webpack_require__(26);
833
- var JSONSchemaUtils_1 = __webpack_require__(27);
832
+ var hocUtils_1 = __webpack_require__(27);
833
+ var JSONSchemaUtils_1 = __webpack_require__(28);
834
834
  var async_dynamic_options_evaluator_1 = __webpack_require__(40);
835
- var id_1 = __webpack_require__(32);
835
+ var id_1 = __webpack_require__(25);
836
836
  var SplunkVisualization_1 = __webpack_require__(41);
837
837
  var VizBehavior_1 = __webpack_require__(6);
838
838
  var getSorting_1 = __webpack_require__(33);
@@ -853,8 +853,8 @@ var withDashboardViz = function withDashboardViz(opts) {
853
853
  computeVizProps = _opts$computeVizProps === void 0 ? function () {} : _opts$computeVizProps,
854
854
  disableEditModeCover = opts.disableEditModeCover,
855
855
  useIconPlaceholder = opts.useIconPlaceholder; // sanitizing props before sending them to reactviz.
856
- var SanitizedReactViz = SanitizeProps_1.withSanitizedProps(ReactViz);
857
- var defaultOptions = JSONSchemaUtils_1.pickFieldFromJSONSchema(vizConfig.optionsSchema, 'default');
856
+ var SanitizedReactViz = (0, SanitizeProps_1.withSanitizedProps)(ReactViz);
857
+ var defaultOptions = (0, JSONSchemaUtils_1.pickFieldFromJSONSchema)(vizConfig.optionsSchema, 'default');
858
858
  var DashboardViz = function DashboardViz(props) {
859
859
  var _a;
860
860
  var mode = props.mode,
@@ -889,19 +889,19 @@ var withDashboardViz = function withDashboardViz(opts) {
889
889
  return (_b = (_a = vizConfig.themes)[themeVar]) === null || _b === void 0 ? void 0 : _b.call(_a, props);
890
890
  };
891
891
  var bgColorFromTheme = themeFunc('defaultBackgroundColor');
892
- var _getSettingsFromTheme = getSettingsFromThemedProps_1.default({
892
+ var _ref = (0, getSettingsFromThemedProps_1.default)({
893
893
  theme: theme
894
894
  }),
895
- currentThemeFamily = _getSettingsFromTheme.family,
896
- currentThemeColorScheme = _getSettingsFromTheme.colorScheme,
897
- currentThemeDensity = _getSettingsFromTheme.density;
895
+ currentThemeFamily = _ref.family,
896
+ currentThemeColorScheme = _ref.colorScheme,
897
+ currentThemeDensity = _ref.density;
898
898
  var evaluatedOptions = {}; // evaluatedOptions need to be initialized as an empty object
899
899
  var _React$useState = React.useState({}),
900
900
  _React$useState2 = _slicedToArray(_React$useState, 2),
901
901
  evaluatedOptionsAsync = _React$useState2[0],
902
902
  setEvaluatedOptionsAsync = _React$useState2[1]; // evaluatedOptions need to be initialized as an empty object
903
903
  var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
904
- var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(id_1.createGUID())),
904
+ var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat((0, id_1.createGUID)())),
905
905
  _React$useState4 = _slicedToArray(_React$useState3, 1),
906
906
  visualizationID = _React$useState4[0];
907
907
  var _React$useState5 = React.useState({}),
@@ -912,16 +912,17 @@ var withDashboardViz = function withDashboardViz(opts) {
912
912
  _React$useState8 = _slicedToArray(_React$useState7, 2),
913
913
  dataFramesInState = _React$useState8[0],
914
914
  setDataFramesInState = _React$useState8[1];
915
- var _React$useState9 = React.useState(Boolean(featureFlagContext && featureFlagContext.visualizations_useWebWorkersForDSL && typeof Worker !== 'undefined')),
915
+ var _React$useState9 = React.useState(Boolean(featureFlagContext === null || featureFlagContext === void 0 ? void 0 : featureFlagContext.visualizations_useWebWorkersForDSL)),
916
916
  _React$useState10 = _slicedToArray(_React$useState9, 2),
917
917
  useAsyncEvaluatedOptions = _React$useState10[0],
918
918
  setUseAsyncEvaluatedOptions = _React$useState10[1];
919
- evaluatedOptions = useDeepMemo_1.useDeepMemo(function () {
919
+ var isMounted = React.useRef(true);
920
+ evaluatedOptions = (0, useDeepMemo_1.useDeepMemo)(function () {
920
921
  try {
921
922
  if (useAsyncEvaluatedOptions) {
922
923
  var optionsToEvaluate = {
923
- context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
924
- options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
924
+ context: (0, lodash_1.defaultsDeep)({}, context, vizConfig.defaultContext),
925
+ options: (0, hocUtils_1.deepMergeWithArrayPrimitiveOverrides)({}, options, defaultOptions)
925
926
  };
926
927
  var asyncDynamicOptionsEvaluatorParams = {
927
928
  visualizationID: visualizationID,
@@ -932,10 +933,10 @@ var withDashboardViz = function withDashboardViz(opts) {
932
933
  };
933
934
  async_dynamic_options_evaluator_1.default.evaluate(asyncDynamicOptionsEvaluatorParams).then(function (results) {
934
935
  setEvaluatedOptionsAsync(results.results);
935
- }).catch(function (e) {
936
- // eslint-disable-next-line no-console
937
- console.error("unexpected error evaluating options - async: ".concat(e.message));
938
- setUseAsyncEvaluatedOptions(false);
936
+ }).catch(function () {
937
+ if (isMounted.current) {
938
+ setUseAsyncEvaluatedOptions(false);
939
+ }
939
940
  });
940
941
  } else {
941
942
  var dataFrames = dataFramesInState;
@@ -945,8 +946,8 @@ var withDashboardViz = function withDashboardViz(opts) {
945
946
  setDataFramesInState(dataFrames);
946
947
  }
947
948
  return Options_1.Options.evaluate({
948
- context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
949
- options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
949
+ context: (0, lodash_1.defaultsDeep)({}, context, vizConfig.defaultContext),
950
+ options: (0, hocUtils_1.deepMergeWithArrayPrimitiveOverrides)({}, options, defaultOptions)
950
951
  }, dataSources, themeFunc, dataFrames);
951
952
  }
952
953
  } catch (e) {
@@ -975,6 +976,7 @@ var withDashboardViz = function withDashboardViz(opts) {
975
976
  React.useEffect(function () {
976
977
  return function () {
977
978
  if (useAsyncEvaluatedOptions) {
979
+ isMounted.current = false;
978
980
  async_dynamic_options_evaluator_1.default.reset(visualizationID);
979
981
  }
980
982
  };
@@ -984,7 +986,7 @@ var withDashboardViz = function withDashboardViz(opts) {
984
986
  var _vizConfig$requiredPr = vizConfig.requiredProps,
985
987
  requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
986
988
  supports = vizConfig.supports;
987
- var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptionsToUse);
989
+ var missing = (0, MissingPropsMessage_1.missingKeys)(requiredProps, evaluatedOptionsToUse);
988
990
  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
989
991
  ) {
990
992
  return React.createElement(MissingPropsMessage_1.default, {
@@ -1000,7 +1002,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1000
1002
  if (hasEventHandlers && mode === 'view' && vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.EVENTS) > -1) {
1001
1003
  var supportedEvents = vizConfig.events;
1002
1004
  Object.keys(supportedEvents).forEach(function (eventName) {
1003
- var eventCallbackPropName = lodash_1.camelCase("on.".concat(eventName));
1005
+ var eventCallbackPropName = (0, lodash_1.camelCase)("on.".concat(eventName));
1004
1006
  eventCallbackProps[eventCallbackPropName] = null;
1005
1007
  // todo: refactor single value and single value icon to send payload from viz
1006
1008
  // then remove these lines
@@ -1043,19 +1045,19 @@ var withDashboardViz = function withDashboardViz(opts) {
1043
1045
  */
1044
1046
  var dataSourceMetadata = {};
1045
1047
  var OptionKey = 'paginateDataSourceKey';
1046
- var paginateDataSourceKey = lodash_1.has(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
1047
- if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && lodash_1.has(dataSources, paginateDataSourceKey)) {
1048
- var requestParams = lodash_1.get(dataSources, [paginateDataSourceKey, 'requestParams'], {});
1049
- var meta = lodash_1.get(dataSources, [paginateDataSourceKey, 'meta'], {});
1048
+ var paginateDataSourceKey = (0, lodash_1.has)(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
1049
+ if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && (0, lodash_1.has)(dataSources, paginateDataSourceKey)) {
1050
+ var requestParams = (0, lodash_1.get)(dataSources, [paginateDataSourceKey, 'requestParams'], {});
1051
+ var meta = (0, lodash_1.get)(dataSources, [paginateDataSourceKey, 'meta'], {});
1050
1052
  var handleRequestParamsChange = function handleRequestParamsChange(payload) {
1051
1053
  return onRequestParamsChange(paginateDataSourceKey, payload);
1052
1054
  };
1053
- var sortParams = getSorting_1.getSortingParams({
1055
+ var sortParams = (0, getSorting_1.getSortingParams)({
1054
1056
  requestParams: requestParams,
1055
1057
  meta: meta,
1056
1058
  onRequestParamsChange: handleRequestParamsChange
1057
1059
  });
1058
- var paginatorParams = getPagination_1.getPaginationParams({
1060
+ var paginatorParams = (0, getPagination_1.getPaginationParams)({
1059
1061
  requestParams: requestParams,
1060
1062
  meta: meta,
1061
1063
  onRequestParamsChange: handleRequestParamsChange
@@ -1083,7 +1085,7 @@ var withDashboardViz = function withDashboardViz(opts) {
1083
1085
  // attach viz config
1084
1086
  DashboardViz.config = vizConfig;
1085
1087
  // @ts-ignore: TODO fix sc upgrade TS issues
1086
- return styled_components_1.withTheme(withPlaceholder_1.default(withEditModeCover_1.default(DashboardViz, disableEditModeCover), useIconPlaceholder));
1088
+ return (0, styled_components_1.withTheme)((0, withPlaceholder_1.default)((0, withEditModeCover_1.default)(DashboardViz, disableEditModeCover), useIconPlaceholder));
1087
1089
  };
1088
1090
  exports.default = withDashboardViz;
1089
1091
 
@@ -1312,8 +1314,8 @@ var lodash_1 = __webpack_require__(3);
1312
1314
  * @param dependencies an array of dependencies
1313
1315
  */
1314
1316
  var useDeepMemo = function useDeepMemo(fn, dependencies) {
1315
- var ref = react_1.useRef();
1316
- if (!ref.current || !lodash_1.isEqual(dependencies, ref.current.dependencies)) {
1317
+ var ref = (0, react_1.useRef)();
1318
+ if (!ref.current || !(0, lodash_1.isEqual)(dependencies, ref.current.dependencies)) {
1317
1319
  ref.current = {
1318
1320
  dependencies: dependencies,
1319
1321
  value: fn()
@@ -1356,7 +1358,7 @@ exports.isMissing = isMissing;
1356
1358
  */
1357
1359
  var missingKeys = function missingKeys(keys, target) {
1358
1360
  return keys.filter(function (k) {
1359
- return exports.isMissing(target[k]);
1361
+ return (0, exports.isMissing)(target[k]);
1360
1362
  });
1361
1363
  };
1362
1364
  exports.missingKeys = missingKeys;
@@ -1380,7 +1382,7 @@ var MissingPropsMessage = function MissingPropsMessage(props) {
1380
1382
  "data-test": "message",
1381
1383
  width: width,
1382
1384
  height: height,
1383
- message: i18n_1._("Missing property: ".concat(missingProps.join(', ')))
1385
+ message: (0, i18n_1._)("Missing property: ".concat(missingProps.join(', ')))
1384
1386
  });
1385
1387
  };
1386
1388
  exports.MissingPropsMessage = MissingPropsMessage;
@@ -1389,7 +1391,7 @@ exports.MissingPropsMessage.defaultProps = {
1389
1391
  width: '100%',
1390
1392
  height: 250
1391
1393
  };
1392
- exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
1394
+ exports.default = (0, FixedSizeContainer_1.default)(exports.MissingPropsMessage);
1393
1395
 
1394
1396
  /***/ }),
1395
1397
  /* 46 */
@@ -1409,7 +1411,7 @@ var Cover = styled_components_1.default.div.withConfig({
1409
1411
  componentId: "sc-1gsbnxb-0"
1410
1412
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1411
1413
  var Blocker = styled_components_1.default.div.attrs({
1412
- 'data-splunk-visualization-version': "25.13.0 - 572f25c03"
1414
+ 'data-splunk-visualization-version': "26.0.0 - 2f7458907"
1413
1415
  }).withConfig({
1414
1416
  displayName: "withEditModeCover__Blocker",
1415
1417
  componentId: "sc-1gsbnxb-1"
@@ -1428,7 +1430,7 @@ var withEditModeCover = function withEditModeCover(Visualization, disableEditMod
1428
1430
  "data-test": "edit-mode-cover"
1429
1431
  }));
1430
1432
  };
1431
- hocUtils_1.extendStaticWrapperProps({
1433
+ (0, hocUtils_1.extendStaticWrapperProps)({
1432
1434
  Wrapper: Wrapper,
1433
1435
  Visualization: Visualization
1434
1436
  });
@@ -1449,7 +1451,7 @@ Object.defineProperty(exports, "__esModule", {
1449
1451
  var React = __webpack_require__(1);
1450
1452
  var colorUtils_1 = __webpack_require__(12);
1451
1453
  var variables_1 = __webpack_require__(11);
1452
- var IconPlaceholder_1 = __webpack_require__(31);
1454
+ var IconPlaceholder_1 = __webpack_require__(32);
1453
1455
  var VizBehavior_1 = __webpack_require__(6);
1454
1456
  var hocUtils_1 = __webpack_require__(15);
1455
1457
  var withPlaceholder = function withPlaceholder(Visualization) {
@@ -1464,7 +1466,7 @@ var withPlaceholder = function withPlaceholder(Visualization) {
1464
1466
  height = props.height,
1465
1467
  width = props.width;
1466
1468
  var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
1467
- 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);
1469
+ 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);
1468
1470
  var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
1469
1471
  var iconColor = variables_1.default.contentColorActive(props);
1470
1472
  if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
@@ -1479,7 +1481,7 @@ var withPlaceholder = function withPlaceholder(Visualization) {
1479
1481
  }
1480
1482
  return React.createElement(Visualization, Object.assign({}, props));
1481
1483
  };
1482
- hocUtils_1.extendStaticWrapperProps({
1484
+ (0, hocUtils_1.extendStaticWrapperProps)({
1483
1485
  Wrapper: Wrapper,
1484
1486
  Visualization: Visualization
1485
1487
  });
@@ -1489,13 +1491,13 @@ exports.default = withPlaceholder;
1489
1491
 
1490
1492
  /***/ }),
1491
1493
  /* 48 */,
1492
- /* 49 */
1494
+ /* 49 */,
1495
+ /* 50 */
1493
1496
  /***/ (function(module, exports) {
1494
1497
 
1495
1498
  module.exports = require("@splunk/visualization-icons/placeholders");
1496
1499
 
1497
1500
  /***/ }),
1498
- /* 50 */,
1499
1501
  /* 51 */
1500
1502
  /***/ (function(module, exports) {
1501
1503
 
@@ -1523,7 +1525,7 @@ var background = function background(_ref) {
1523
1525
  themes = _ref.themes,
1524
1526
  labelPosition = _ref.labelPosition;
1525
1527
  return [{
1526
- label: i18n_1._(label || 'Background'),
1528
+ label: (0, i18n_1._)(label || 'Background'),
1527
1529
  option: 'backgroundColor',
1528
1530
  editor: 'editor.color',
1529
1531
  editorProps: {
@@ -1537,6 +1539,12 @@ exports.default = background;
1537
1539
  /***/ }),
1538
1540
  /* 54 */,
1539
1541
  /* 55 */
1542
+ /***/ (function(module, exports) {
1543
+
1544
+ module.exports = require("@splunk/charting-bundle");
1545
+
1546
+ /***/ }),
1547
+ /* 56 */
1540
1548
  /***/ (function(module, exports, __webpack_require__) {
1541
1549
 
1542
1550
  "use strict";
@@ -1612,9 +1620,9 @@ var mapToValues = function mapToValues(optionValuesSCMapping) {
1612
1620
  return function (options) {
1613
1621
  var convertedOptions = Object.assign({}, options);
1614
1622
  Object.keys(optionValuesSCMapping).forEach(function (key) {
1615
- if (lodash_1.has(options, key)) {
1623
+ if ((0, lodash_1.has)(options, key)) {
1616
1624
  var updatedValue = optionValuesSCMapping[key][options[key]];
1617
- if (!lodash_1.isUndefined(updatedValue)) {
1625
+ if (!(0, lodash_1.isUndefined)(updatedValue)) {
1618
1626
  convertedOptions[key] = updatedValue;
1619
1627
  }
1620
1628
  }
@@ -1635,7 +1643,7 @@ var convertY2AxisOptions = function convertY2AxisOptions(_a) {
1635
1643
  var convertedOptions = Object.assign({}, originalOptions);
1636
1644
  if (y2Fields) {
1637
1645
  convertedOptions['axisY2.enabled'] = true;
1638
- convertedOptions['axisY2.fields'] = lodash_1.isArray(y2Fields) ? y2Fields.filter(function (name) {
1646
+ convertedOptions['axisY2.fields'] = (0, lodash_1.isArray)(y2Fields) ? y2Fields.filter(function (name) {
1639
1647
  return name;
1640
1648
  }).join(',') : y2Fields;
1641
1649
  }
@@ -1677,7 +1685,7 @@ exports.isMultiSeriesData = isMultiSeriesData;
1677
1685
  * @return {array}
1678
1686
  */
1679
1687
  var toArrayForSeries = function toArrayForSeries(data, value) {
1680
- return exports.isMultiSeriesData(data) ? value : [value];
1688
+ return (0, exports.isMultiSeriesData)(data) ? value : [value];
1681
1689
  };
1682
1690
  exports.toArrayForSeries = toArrayForSeries;
1683
1691
  var constructFieldsAndColumns = function constructFieldsAndColumns(_ref2) {
@@ -1689,10 +1697,10 @@ var constructFieldsAndColumns = function constructFieldsAndColumns(_ref2) {
1689
1697
  yFields = _ref2.yFields,
1690
1698
  y2 = _ref2.y2,
1691
1699
  y2Fields = _ref2.y2Fields;
1692
- var columns = [x.map(String)].concat(_toConsumableArray(exports.toArrayForSeries(y, y).map(function (series) {
1700
+ var columns = [x.map(String)].concat(_toConsumableArray((0, exports.toArrayForSeries)(y, y).map(function (series) {
1693
1701
  return series.map(String);
1694
1702
  })));
1695
- var yFieldsArray = exports.toArrayForSeries(y, yFields);
1703
+ var yFieldsArray = (0, exports.toArrayForSeries)(y, yFields);
1696
1704
  var fields = [{
1697
1705
  name: xField
1698
1706
  }].concat(_toConsumableArray(yFieldsArray.map(function (field) {
@@ -1704,8 +1712,8 @@ var constructFieldsAndColumns = function constructFieldsAndColumns(_ref2) {
1704
1712
  // when y & y2 options are configured with different (mutually exclusive) series
1705
1713
  // y2 columns need to be added to columns
1706
1714
  if (y2Fields) {
1707
- var y2FieldsArray = exports.toArrayForSeries(y2, y2Fields);
1708
- var y2AsArray = exports.toArrayForSeries(y2, y2).map(function (series) {
1715
+ var y2FieldsArray = (0, exports.toArrayForSeries)(y2, y2Fields);
1716
+ var y2AsArray = (0, exports.toArrayForSeries)(y2, y2).map(function (series) {
1709
1717
  return series === null || series === void 0 ? void 0 : series.map(String);
1710
1718
  });
1711
1719
  y2FieldsArray.forEach(function (y2Field, index) {
@@ -1724,12 +1732,6 @@ var constructFieldsAndColumns = function constructFieldsAndColumns(_ref2) {
1724
1732
  };
1725
1733
  exports.constructFieldsAndColumns = constructFieldsAndColumns;
1726
1734
 
1727
- /***/ }),
1728
- /* 56 */
1729
- /***/ (function(module, exports) {
1730
-
1731
- module.exports = require("@splunk/charting-bundle");
1732
-
1733
1735
  /***/ }),
1734
1736
  /* 57 */
1735
1737
  /***/ (function(module, exports) {
@@ -1743,7 +1745,8 @@ module.exports = require("@splunk/themes/useSplunkTheme");
1743
1745
  /* 61 */,
1744
1746
  /* 62 */,
1745
1747
  /* 63 */,
1746
- /* 64 */
1748
+ /* 64 */,
1749
+ /* 65 */
1747
1750
  /***/ (function(module, exports, __webpack_require__) {
1748
1751
 
1749
1752
  "use strict";
@@ -1760,16 +1763,16 @@ var visualization_color_palettes_1 = __webpack_require__(51);
1760
1763
  var react_1 = __webpack_require__(1);
1761
1764
  var React = __webpack_require__(1);
1762
1765
  var T = __webpack_require__(0);
1763
- var react_event_listener_1 = __webpack_require__(65);
1764
- __webpack_require__(66); // fixme, @splunk/charting should be refactor to use locale & timezone instead of i18n functions
1765
- var charting_bundle_1 = __webpack_require__(56);
1766
- var TimezoneContext_1 = __webpack_require__(25);
1766
+ var react_event_listener_1 = __webpack_require__(66);
1767
+ __webpack_require__(67); // fixme, @splunk/charting should be refactor to use locale & timezone instead of i18n functions
1768
+ var charting_bundle_1 = __webpack_require__(55);
1769
+ var TimezoneContext_1 = __webpack_require__(26);
1767
1770
  var style_1 = __webpack_require__(14);
1768
1771
  var styled_components_1 = __webpack_require__(4);
1769
1772
  var Message_1 = __webpack_require__(10);
1770
1773
  var useSplunkTheme_1 = __webpack_require__(57);
1771
- var themeUtils_1 = __webpack_require__(67);
1772
- var ChartingApi_1 = __webpack_require__(68);
1774
+ var themeUtils_1 = __webpack_require__(68);
1775
+ var ChartingApi_1 = __webpack_require__(69);
1773
1776
  exports.NO_INPLACE_PROPS = ['chart', 'chart.orientation', 'layout.splitSeries', 'chart.style', 'legend.placement'];
1774
1777
  var changedOptions = function changedOptions(curOptions, nextOptions) {
1775
1778
  return Object.keys(curOptions).filter(function (key) {
@@ -1779,10 +1782,9 @@ var changedOptions = function changedOptions(curOptions, nextOptions) {
1779
1782
  }));
1780
1783
  };
1781
1784
  exports.changedOptions = changedOptions;
1782
- charting_bundle_1.default.enableScaledEvents();
1783
1785
  function usePrevious(value) {
1784
- var ref = react_1.useRef();
1785
- react_1.useEffect(function () {
1786
+ var ref = (0, react_1.useRef)();
1787
+ (0, react_1.useEffect)(function () {
1786
1788
  ref.current = value;
1787
1789
  });
1788
1790
  return ref.current;
@@ -1795,7 +1797,7 @@ var canUpdateInPlace = function canUpdateInPlace(curOptions, nextOptions) {
1795
1797
  }
1796
1798
  return !exports.NO_INPLACE_PROPS.some(function (p) {
1797
1799
  return curOptions[p] !== nextOptions[p];
1798
- }) && !exports.changedOptions(curOptions, nextOptions).some(function (p) {
1800
+ }) && !(0, exports.changedOptions)(curOptions, nextOptions).some(function (p) {
1799
1801
  return p.toLowerCase().endsWith('color');
1800
1802
  });
1801
1803
  };
@@ -1831,7 +1833,7 @@ var ChartingContainer = styled_components_1.default.div.attrs(function (props) {
1831
1833
  displayName: "Charting__ChartingContainer",
1832
1834
  componentId: "sc-3wbgm0-0"
1833
1835
  })(["& .highcharts-a11y-proxy-container{pointer-events:none;}overflow:hidden;position:relative;", ";"], function (props) {
1834
- return style_1.toDimension(lodash_1.pick(props, ['width', 'height']));
1836
+ return (0, style_1.toDimension)((0, lodash_1.pick)(props, ['width', 'height']));
1835
1837
  });
1836
1838
  var propTypes = {
1837
1839
  width: T.oneOfType([T.string, T.number]),
@@ -1849,12 +1851,12 @@ var propTypes = {
1849
1851
  themeKey: T.string
1850
1852
  };
1851
1853
  var Charting = function Charting(props) {
1852
- var container = react_1.useRef(null);
1853
- var needsInit = react_1.useRef(true);
1854
- var chart = react_1.useRef();
1855
- var needsRedraw = react_1.useRef(true);
1856
- var api = react_1.useRef(new ChartingApi_1.ChartingApiFunctional(chart));
1857
- var timezone = react_1.useContext(TimezoneContext_1.default);
1854
+ var container = (0, react_1.useRef)(null);
1855
+ var needsInit = (0, react_1.useRef)(true);
1856
+ var chart = (0, react_1.useRef)();
1857
+ var needsRedraw = (0, react_1.useRef)(true);
1858
+ var api = (0, react_1.useRef)(new ChartingApi_1.ChartingApiFunctional(chart));
1859
+ var timezone = (0, react_1.useContext)(TimezoneContext_1.default);
1858
1860
  var computeChartingSize = function computeChartingSize() {
1859
1861
  if (container.current) {
1860
1862
  var rect = container.current.getBoundingClientRect();
@@ -1865,8 +1867,8 @@ var Charting = function Charting(props) {
1865
1867
  }
1866
1868
  return {};
1867
1869
  };
1868
- var splunkTheme = useSplunkTheme_1.default();
1869
- var themeKey = props.themeKey ? props.themeKey : themeUtils_1.getChartingThemeKey({
1870
+ var splunkTheme = (0, useSplunkTheme_1.default)();
1871
+ var themeKey = props.themeKey ? props.themeKey : (0, themeUtils_1.getChartingThemeKey)({
1870
1872
  splunkThemeV1: splunkTheme
1871
1873
  });
1872
1874
  var width = props.width,
@@ -1883,13 +1885,13 @@ var Charting = function Charting(props) {
1883
1885
  var prevOptions = usePrevious(options);
1884
1886
  var prevTimezone = usePrevious(timezone);
1885
1887
  var handleClick = function handleClick(chartEvent, type) {
1886
- var payload = lodash_1.pick(chartEvent, 'name2', 'value2', '_span', 'modifierKey');
1888
+ var payload = (0, lodash_1.pick)(chartEvent, 'name2', 'value2', '_span', 'modifierKey');
1887
1889
  payload.name = payload.name2;
1888
1890
  delete payload.name2;
1889
1891
  if (type === VizChartEventType.POINT_CLICK) {
1890
1892
  payload.value = payload.value2;
1891
1893
  delete payload.value2;
1892
- payload = exports.updateRowPayload(chartEvent.rowContext, payload);
1894
+ payload = (0, exports.updateRowPayload)(chartEvent.rowContext, payload);
1893
1895
  }
1894
1896
  onClick({
1895
1897
  type: type,
@@ -1911,7 +1913,7 @@ var Charting = function Charting(props) {
1911
1913
  onSelect({
1912
1914
  type: 'range.select',
1913
1915
  originalEvent: chartEvent,
1914
- payload: lodash_1.pick(chartEvent, 'startXIndex', 'endXIndex', 'startXValue', 'endXValue')
1916
+ payload: (0, lodash_1.pick)(chartEvent, 'startXIndex', 'endXIndex', 'startXValue', 'endXValue')
1915
1917
  });
1916
1918
  return;
1917
1919
  }
@@ -1919,16 +1921,16 @@ var Charting = function Charting(props) {
1919
1921
  onEventTrigger({
1920
1922
  type: 'range.select',
1921
1923
  originalEvent: chartEvent,
1922
- payload: lodash_1.pick(chartEvent, 'startXIndex', 'endXIndex', 'startXValue', 'endXValue')
1924
+ payload: (0, lodash_1.pick)(chartEvent, 'startXIndex', 'endXIndex', 'startXValue', 'endXValue')
1923
1925
  });
1924
1926
  };
1925
1927
  var handlePointMouseOut = function handlePointMouseOut(chartEvent, type) {
1926
- var payload = lodash_1.pick(chartEvent, 'name2', 'value2', '_span', 'modifierKey', 'tooltipContext');
1928
+ var payload = (0, lodash_1.pick)(chartEvent, 'name2', 'value2', '_span', 'modifierKey', 'tooltipContext');
1927
1929
  payload.name = payload.name2;
1928
1930
  delete payload.name2;
1929
1931
  payload.value = payload.value2;
1930
1932
  delete payload.value2;
1931
- payload = exports.updateRowPayload(chartEvent.rowContext, payload);
1933
+ payload = (0, exports.updateRowPayload)(chartEvent.rowContext, payload);
1932
1934
  onPointMouseOut({
1933
1935
  type: type,
1934
1936
  originalEvent: chartEvent,
@@ -1936,12 +1938,12 @@ var Charting = function Charting(props) {
1936
1938
  });
1937
1939
  };
1938
1940
  var handlePointMouseOver = function handlePointMouseOver(chartEvent, type) {
1939
- var payload = lodash_1.pick(chartEvent, 'name2', 'value2', '_span', 'modifierKey', 'tooltipContext');
1941
+ var payload = (0, lodash_1.pick)(chartEvent, 'name2', 'value2', '_span', 'modifierKey', 'tooltipContext');
1940
1942
  payload.name = payload.name2;
1941
1943
  delete payload.name2;
1942
1944
  payload.value = payload.value2;
1943
1945
  delete payload.value2;
1944
- payload = exports.updateRowPayload(chartEvent.rowContext, payload);
1946
+ payload = (0, exports.updateRowPayload)(chartEvent.rowContext, payload);
1945
1947
  onPointMouseOver({
1946
1948
  type: type,
1947
1949
  originalEvent: chartEvent,
@@ -2023,14 +2025,14 @@ var Charting = function Charting(props) {
2023
2025
  window.console.error('Caught error rendering chart:', e);
2024
2026
  }
2025
2027
  };
2026
- var debouncedDrawChart = lodash_1.debounce(drawChart, 5);
2028
+ var debouncedDrawChart = (0, lodash_1.debounce)(drawChart, 5);
2027
2029
  var onContainerMount = function onContainerMount(chartingContainer) {
2028
2030
  container.current = chartingContainer;
2029
2031
  debouncedDrawChart();
2030
2032
  };
2031
2033
  var prevTheme = usePrevious(themeKey);
2032
2034
  var prevOnClick = usePrevious(onClick);
2033
- react_1.useEffect(function () {
2035
+ (0, react_1.useEffect)(function () {
2034
2036
  debouncedDrawChart();
2035
2037
  props.visualizationApiRef(api.current);
2036
2038
  return function () {
@@ -2038,10 +2040,10 @@ var Charting = function Charting(props) {
2038
2040
  destroyChart();
2039
2041
  };
2040
2042
  }, []);
2041
- react_1.useEffect(function () {
2043
+ (0, react_1.useEffect)(function () {
2042
2044
  // TODO: figure out why re-init is needed for functional components (i.e. PlatformViz) when changing theme
2043
2045
  // seems like redraw doesn't suffice to update the background colors
2044
- if (!chart.current || !exports.canUpdateInPlace(prevOptions, options) ||
2046
+ if (!chart.current || !(0, exports.canUpdateInPlace)(prevOptions, options) ||
2045
2047
  // timezone is a simple object so this comparison should be fast
2046
2048
  JSON.stringify(prevTimezone) !== JSON.stringify(timezone) || !props.themeKey && prevTheme !== themeKey || prevOnClick !== onClick) {
2047
2049
  needsInit.current = true;
@@ -2085,13 +2087,13 @@ var withEmptyChartMessage = function withEmptyChartMessage(Chart) {
2085
2087
  var chartData = props.chartData;
2086
2088
  if (!chartData) {
2087
2089
  return React.createElement(Message_1.default, {
2088
- message: i18n_1._('No DataSource'),
2090
+ message: (0, i18n_1._)('No DataSource'),
2089
2091
  level: "warning"
2090
2092
  });
2091
2093
  }
2092
2094
  if (chartData && !Object.keys(chartData).length) {
2093
2095
  return React.createElement(Message_1.default, {
2094
- message: i18n_1._('No Result'),
2096
+ message: (0, i18n_1._)('No Result'),
2095
2097
  level: "info"
2096
2098
  });
2097
2099
  }
@@ -2106,25 +2108,25 @@ var withEmptyChartMessage = function withEmptyChartMessage(Chart) {
2106
2108
  exports.default = withEmptyChartMessage(Charting);
2107
2109
 
2108
2110
  /***/ }),
2109
- /* 65 */
2111
+ /* 66 */
2110
2112
  /***/ (function(module, exports) {
2111
2113
 
2112
2114
  module.exports = require("react-event-listener");
2113
2115
 
2114
2116
  /***/ }),
2115
- /* 66 */
2117
+ /* 67 */
2116
2118
  /***/ (function(module, exports) {
2117
2119
 
2118
2120
  module.exports = require("@splunk/visualizations-shared/i18n");
2119
2121
 
2120
2122
  /***/ }),
2121
- /* 67 */
2123
+ /* 68 */
2122
2124
  /***/ (function(module, exports) {
2123
2125
 
2124
2126
  module.exports = require("@splunk/visualizations-shared/themeUtils");
2125
2127
 
2126
2128
  /***/ }),
2127
- /* 68 */
2129
+ /* 69 */
2128
2130
  /***/ (function(module, exports, __webpack_require__) {
2129
2131
 
2130
2132
  "use strict";
@@ -2181,16 +2183,16 @@ var ChartingApiFunctional = /*#__PURE__*/function () {
2181
2183
  exports.ChartingApiFunctional = ChartingApiFunctional;
2182
2184
 
2183
2185
  /***/ }),
2184
- /* 69 */
2186
+ /* 70 */
2185
2187
  /***/ (function(module, exports) {
2186
2188
 
2187
2189
  module.exports = require("@splunk/visualizations-shared/simpleXMLOptions");
2188
2190
 
2189
2191
  /***/ }),
2190
- /* 70 */,
2191
2192
  /* 71 */,
2192
2193
  /* 72 */,
2193
- /* 73 */
2194
+ /* 73 */,
2195
+ /* 74 */
2194
2196
  /***/ (function(module, exports, __webpack_require__) {
2195
2197
 
2196
2198
  "use strict";
@@ -2204,9 +2206,9 @@ exports.AxesChartDataConfigAreaColumnLine = exports.AxesChartDataConfigBubble =
2204
2206
  var i18n_1 = __webpack_require__(2);
2205
2207
  var configUtils_1 = __webpack_require__(20);
2206
2208
  var AxesChartDataConfig = {
2207
- label: i18n_1._('Data configurations'),
2209
+ label: (0, i18n_1._)('Data configurations'),
2208
2210
  layout: [[{
2209
- label: i18n_1._('X'),
2211
+ label: (0, i18n_1._)('X'),
2210
2212
  option: 'x',
2211
2213
  editor: 'editor.columnSelector',
2212
2214
  editorProps: {
@@ -2215,7 +2217,7 @@ var AxesChartDataConfig = {
2215
2217
  expectedDataPrimitive: ['series']
2216
2218
  }
2217
2219
  }], [{
2218
- label: i18n_1._('Y'),
2220
+ label: (0, i18n_1._)('Y'),
2219
2221
  option: 'y',
2220
2222
  editor: 'editor.columnMultiSelector',
2221
2223
  editorProps: {
@@ -2225,7 +2227,7 @@ var AxesChartDataConfig = {
2225
2227
  expectedDataPrimitive: ['series', 'frame']
2226
2228
  }
2227
2229
  }], [{
2228
- label: i18n_1._('Result limit'),
2230
+ label: (0, i18n_1._)('Result limit'),
2229
2231
  option: 'resultLimit',
2230
2232
  editor: 'editor.number',
2231
2233
  editorProps: {
@@ -2236,8 +2238,8 @@ var AxesChartDataConfig = {
2236
2238
  exports.AxesChartDataConfigBar = {
2237
2239
  label: AxesChartDataConfig.label,
2238
2240
  // insert Y2 after Y
2239
- layout: configUtils_1.insertLayout(AxesChartDataConfig.layout, 2, [{
2240
- label: i18n_1._('Y2'),
2241
+ layout: (0, configUtils_1.insertLayout)(AxesChartDataConfig.layout, 2, [{
2242
+ label: (0, i18n_1._)('Y2'),
2241
2243
  option: 'y2',
2242
2244
  editor: 'editor.columnMultiSelector',
2243
2245
  editorProps: {
@@ -2251,7 +2253,7 @@ exports.AxesChartDataConfigBar = {
2251
2253
  exports.AxesChartDataConfigScatter = {
2252
2254
  label: AxesChartDataConfig.label,
2253
2255
  layout: [[{
2254
- label: i18n_1._('X'),
2256
+ label: (0, i18n_1._)('X'),
2255
2257
  option: 'x',
2256
2258
  editor: 'editor.columnSelector',
2257
2259
  editorProps: {
@@ -2260,7 +2262,7 @@ exports.AxesChartDataConfigScatter = {
2260
2262
  expectedDataPrimitive: ['series']
2261
2263
  }
2262
2264
  }], [{
2263
- label: i18n_1._('Y'),
2265
+ label: (0, i18n_1._)('Y'),
2264
2266
  option: 'y',
2265
2267
  editor: 'editor.columnSelector',
2266
2268
  editorProps: {
@@ -2270,7 +2272,7 @@ exports.AxesChartDataConfigScatter = {
2270
2272
  expectedDataPrimitive: ['series']
2271
2273
  }
2272
2274
  }], [{
2273
- label: i18n_1._('Category'),
2275
+ label: (0, i18n_1._)('Category'),
2274
2276
  option: 'category',
2275
2277
  editor: 'editor.columnSelector',
2276
2278
  editorProps: {
@@ -2279,7 +2281,7 @@ exports.AxesChartDataConfigScatter = {
2279
2281
  expectedDataPrimitive: ['series']
2280
2282
  }
2281
2283
  }], [{
2282
- label: i18n_1._('Result limit'),
2284
+ label: (0, i18n_1._)('Result limit'),
2283
2285
  option: 'resultLimit',
2284
2286
  editor: 'editor.number',
2285
2287
  editorProps: {
@@ -2290,8 +2292,8 @@ exports.AxesChartDataConfigScatter = {
2290
2292
  exports.AxesChartDataConfigBubble = {
2291
2293
  label: exports.AxesChartDataConfigScatter.label,
2292
2294
  // layout: insert Size after Category
2293
- layout: configUtils_1.insertLayout(exports.AxesChartDataConfigScatter.layout, 3, [{
2294
- label: i18n_1._('Size'),
2295
+ layout: (0, configUtils_1.insertLayout)(exports.AxesChartDataConfigScatter.layout, 3, [{
2296
+ label: (0, i18n_1._)('Size'),
2295
2297
  option: 'size',
2296
2298
  editor: 'editor.columnSelector',
2297
2299
  editorProps: {
@@ -2304,7 +2306,7 @@ exports.AxesChartDataConfigBubble = {
2304
2306
  exports.AxesChartDataConfigAreaColumnLine = {
2305
2307
  label: exports.AxesChartDataConfigBar.label,
2306
2308
  layout: [].concat(_toConsumableArray(exports.AxesChartDataConfigBar.layout), [[{
2307
- label: i18n_1._('Annotation x'),
2309
+ label: (0, i18n_1._)('Annotation x'),
2308
2310
  option: 'annotationX',
2309
2311
  editor: 'editor.columnSelector',
2310
2312
  editorProps: {
@@ -2313,7 +2315,7 @@ exports.AxesChartDataConfigAreaColumnLine = {
2313
2315
  expectedDataPrimitive: ['series']
2314
2316
  }
2315
2317
  }], [{
2316
- label: i18n_1._('Annotation labels'),
2318
+ label: (0, i18n_1._)('Annotation labels'),
2317
2319
  option: 'annotationLabel',
2318
2320
  editor: 'editor.columnSelector',
2319
2321
  editorProps: {
@@ -2326,7 +2328,7 @@ exports.AxesChartDataConfigAreaColumnLine = {
2326
2328
  exports.default = AxesChartDataConfig;
2327
2329
 
2328
2330
  /***/ }),
2329
- /* 74 */
2331
+ /* 75 */
2330
2332
  /***/ (function(module, exports, __webpack_require__) {
2331
2333
 
2332
2334
  "use strict";
@@ -2341,7 +2343,7 @@ var variables_1 = __webpack_require__(11);
2341
2343
  var BackgroundColor_1 = __webpack_require__(53);
2342
2344
  var themes = {
2343
2345
  defaultBackgroundColor: function defaultBackgroundColor(props) {
2344
- return pick_1.default({
2346
+ return (0, pick_1.default)({
2345
2347
  enterprise: {
2346
2348
  dark: variables_1.default.black(props),
2347
2349
  light: variables_1.default.backgroundColor(props)
@@ -2351,15 +2353,15 @@ var themes = {
2351
2353
  }
2352
2354
  };
2353
2355
  var AxesChartColorAndStyle = {
2354
- label: i18n_1._('Color and style'),
2355
- layout: [BackgroundColor_1.default({
2356
+ label: (0, i18n_1._)('Color and style'),
2357
+ layout: [(0, BackgroundColor_1.default)({
2356
2358
  themes: themes
2357
2359
  }), [{
2358
- label: i18n_1._('Series colors'),
2360
+ label: (0, i18n_1._)('Series colors'),
2359
2361
  option: 'seriesColors',
2360
2362
  editor: 'editor.seriesColors'
2361
2363
  }], [{
2362
- label: i18n_1._('Series colors by field name'),
2364
+ label: (0, i18n_1._)('Series colors by field name'),
2363
2365
  option: 'seriesColorsByField',
2364
2366
  editor: 'editor.seriesColorsByField'
2365
2367
  }]]
@@ -2367,7 +2369,7 @@ var AxesChartColorAndStyle = {
2367
2369
  exports.default = AxesChartColorAndStyle;
2368
2370
 
2369
2371
  /***/ }),
2370
- /* 75 */
2372
+ /* 76 */
2371
2373
  /***/ (function(module, exports, __webpack_require__) {
2372
2374
 
2373
2375
  "use strict";
@@ -2378,45 +2380,45 @@ Object.defineProperty(exports, "__esModule", {
2378
2380
  });
2379
2381
  var i18n_1 = __webpack_require__(2);
2380
2382
  var AxesChartLegend = {
2381
- label: i18n_1._('Legend'),
2383
+ label: (0, i18n_1._)('Legend'),
2382
2384
  layout: [[{
2383
- label: i18n_1._('Legend display'),
2385
+ label: (0, i18n_1._)('Legend display'),
2384
2386
  option: 'legendDisplay',
2385
2387
  editor: 'editor.select',
2386
2388
  editorProps: {
2387
2389
  values: [{
2388
- label: i18n_1._('Right'),
2390
+ label: (0, i18n_1._)('Right'),
2389
2391
  value: 'right'
2390
2392
  }, {
2391
- label: i18n_1._('Left'),
2393
+ label: (0, i18n_1._)('Left'),
2392
2394
  value: 'left'
2393
2395
  }, {
2394
- label: i18n_1._('Top'),
2396
+ label: (0, i18n_1._)('Top'),
2395
2397
  value: 'top'
2396
2398
  }, {
2397
- label: i18n_1._('Bottom'),
2399
+ label: (0, i18n_1._)('Bottom'),
2398
2400
  value: 'bottom'
2399
2401
  }, {
2400
- label: i18n_1._('Off'),
2402
+ label: (0, i18n_1._)('Off'),
2401
2403
  value: 'off'
2402
2404
  }]
2403
2405
  }
2404
2406
  }], [{
2405
- label: i18n_1._('Legend truncation'),
2407
+ label: (0, i18n_1._)('Legend truncation'),
2406
2408
  option: 'legendTruncation',
2407
2409
  editor: 'editor.radioBar',
2408
2410
  editorProps: {
2409
2411
  values: [{
2410
- label: i18n_1._('A...'),
2412
+ label: (0, i18n_1._)('A...'),
2411
2413
  value: 'ellipsisEnd'
2412
2414
  }, {
2413
- label: i18n_1._('A...Z'),
2415
+ label: (0, i18n_1._)('A...Z'),
2414
2416
  value: 'ellipsisMiddle'
2415
2417
  }, {
2416
- label: i18n_1._('...Z'),
2418
+ label: (0, i18n_1._)('...Z'),
2417
2419
  value: 'ellipsisStart'
2418
2420
  }, {
2419
- label: i18n_1._('Off'),
2421
+ label: (0, i18n_1._)('Off'),
2420
2422
  value: 'ellipsisOff'
2421
2423
  }]
2422
2424
  },
@@ -2429,7 +2431,7 @@ var AxesChartLegend = {
2429
2431
  exports.default = AxesChartLegend;
2430
2432
 
2431
2433
  /***/ }),
2432
- /* 76 */
2434
+ /* 77 */
2433
2435
  /***/ (function(module, exports, __webpack_require__) {
2434
2436
 
2435
2437
  "use strict";
@@ -2443,13 +2445,13 @@ exports.AxesChartXGridAndLabelsBubbleScatter = exports.AxesChartXGridAndLabelsCo
2443
2445
  var i18n_1 = __webpack_require__(2);
2444
2446
  var configUtils_1 = __webpack_require__(20);
2445
2447
  exports.AxesChartXGridAndLabelsCommon = {
2446
- label: i18n_1._('X-axis grid and labels'),
2448
+ label: (0, i18n_1._)('X-axis grid and labels'),
2447
2449
  layout: [[{
2448
- label: i18n_1._('Axis title'),
2450
+ label: (0, i18n_1._)('Axis title'),
2449
2451
  option: 'xAxisTitleVisibility',
2450
2452
  editor: 'editor.toggle'
2451
2453
  }], [{
2452
- label: i18n_1._('Axis title text'),
2454
+ label: (0, i18n_1._)('Axis title text'),
2453
2455
  option: 'xAxisTitleText',
2454
2456
  editor: 'editor.text',
2455
2457
  showEditor: function showEditor(_ref) {
@@ -2457,18 +2459,18 @@ exports.AxesChartXGridAndLabelsCommon = {
2457
2459
  return options.xAxisTitleVisibility === 'show' || options.xAxisTitleVisibility === undefined;
2458
2460
  }
2459
2461
  }], [{
2460
- label: i18n_1._('Label visibility'),
2462
+ label: (0, i18n_1._)('Label visibility'),
2461
2463
  option: 'xAxisLabelVisibility',
2462
2464
  editor: 'editor.radioBar',
2463
2465
  editorProps: {
2464
2466
  values: [{
2465
- label: i18n_1._('Auto'),
2467
+ label: (0, i18n_1._)('Auto'),
2466
2468
  value: 'auto'
2467
2469
  }, {
2468
- label: i18n_1._('Show'),
2470
+ label: (0, i18n_1._)('Show'),
2469
2471
  value: 'show'
2470
2472
  }, {
2471
- label: i18n_1._('Hide'),
2473
+ label: (0, i18n_1._)('Hide'),
2472
2474
  value: 'hide'
2473
2475
  }]
2474
2476
  }
@@ -2477,24 +2479,24 @@ exports.AxesChartXGridAndLabelsCommon = {
2477
2479
  var AxesChartXGridAndLabels = {
2478
2480
  label: exports.AxesChartXGridAndLabelsCommon.label,
2479
2481
  layout: [].concat(_toConsumableArray(exports.AxesChartXGridAndLabelsCommon.layout), [[{
2480
- label: i18n_1._('Label rotation'),
2482
+ label: (0, i18n_1._)('Label rotation'),
2481
2483
  option: 'xAxisLabelRotation',
2482
2484
  editor: 'editor.select',
2483
2485
  editorProps: {
2484
2486
  values: [{
2485
- label: i18n_1._('-90'),
2487
+ label: (0, i18n_1._)('-90'),
2486
2488
  value: -90
2487
2489
  }, {
2488
- label: i18n_1._('-45'),
2490
+ label: (0, i18n_1._)('-45'),
2489
2491
  value: -45
2490
2492
  }, {
2491
- label: i18n_1._('0'),
2493
+ label: (0, i18n_1._)('0'),
2492
2494
  value: 0
2493
2495
  }, {
2494
- label: i18n_1._('45'),
2496
+ label: (0, i18n_1._)('45'),
2495
2497
  value: 45
2496
2498
  }, {
2497
- label: i18n_1._('90'),
2499
+ label: (0, i18n_1._)('90'),
2498
2500
  value: 90
2499
2501
  }]
2500
2502
  },
@@ -2503,7 +2505,7 @@ var AxesChartXGridAndLabels = {
2503
2505
  return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
2504
2506
  }
2505
2507
  }], [{
2506
- label: i18n_1._('Number of time label parts'),
2508
+ label: (0, i18n_1._)('Number of time label parts'),
2507
2509
  option: 'xAxisMaxLabelParts',
2508
2510
  editor: 'editor.number',
2509
2511
  editorProps: {
@@ -2515,31 +2517,31 @@ var AxesChartXGridAndLabels = {
2515
2517
  return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
2516
2518
  }
2517
2519
  }], [{
2518
- label: i18n_1._('Axis line visibility'),
2520
+ label: (0, i18n_1._)('Axis line visibility'),
2519
2521
  option: 'xAxisLineVisibility',
2520
2522
  editor: 'editor.checkbox'
2521
2523
  }], [{
2522
- label: i18n_1._('Major gridlines'),
2524
+ label: (0, i18n_1._)('Major gridlines'),
2523
2525
  option: 'showXMajorGridLines',
2524
2526
  editor: 'editor.checkbox'
2525
2527
  }], [{
2526
- label: i18n_1._('Major tick visibility'),
2528
+ label: (0, i18n_1._)('Major tick visibility'),
2527
2529
  option: 'xAxisMajorTickVisibility',
2528
2530
  editor: 'editor.radioBar',
2529
2531
  editorProps: {
2530
2532
  values: [{
2531
- label: i18n_1._('Auto'),
2533
+ label: (0, i18n_1._)('Auto'),
2532
2534
  value: 'auto'
2533
2535
  }, {
2534
- label: i18n_1._('Show'),
2536
+ label: (0, i18n_1._)('Show'),
2535
2537
  value: 'show'
2536
2538
  }, {
2537
- label: i18n_1._('Hide'),
2539
+ label: (0, i18n_1._)('Hide'),
2538
2540
  value: 'hide'
2539
2541
  }]
2540
2542
  }
2541
2543
  }], [{
2542
- label: i18n_1._('Major tick size (px)'),
2544
+ label: (0, i18n_1._)('Major tick size (px)'),
2543
2545
  option: 'xAxisMajorTickSize',
2544
2546
  editor: 'editor.slider',
2545
2547
  editorProps: {
@@ -2555,38 +2557,38 @@ var AxesChartXGridAndLabels = {
2555
2557
  };
2556
2558
  exports.AxesChartXGridAndLabelsBubbleScatter = {
2557
2559
  label: exports.AxesChartXGridAndLabelsCommon.label,
2558
- layout: [].concat(_toConsumableArray(configUtils_1.insertLayout(exports.AxesChartXGridAndLabelsCommon.layout, 2, [{
2559
- label: i18n_1._('Axis scale'),
2560
+ layout: [].concat(_toConsumableArray((0, configUtils_1.insertLayout)(exports.AxesChartXGridAndLabelsCommon.layout, 2, [{
2561
+ label: (0, i18n_1._)('Axis scale'),
2560
2562
  option: 'xAxisScale',
2561
2563
  editor: 'editor.radioBar',
2562
2564
  editorProps: {
2563
2565
  values: [{
2564
- label: i18n_1._('Linear'),
2566
+ label: (0, i18n_1._)('Linear'),
2565
2567
  value: 'linear'
2566
2568
  }, {
2567
- label: i18n_1._('Log'),
2569
+ label: (0, i18n_1._)('Log'),
2568
2570
  value: 'log'
2569
2571
  }]
2570
2572
  }
2571
2573
  }])), [[{
2572
- label: i18n_1._('Label rotation'),
2574
+ label: (0, i18n_1._)('Label rotation'),
2573
2575
  option: 'xAxisLabelRotation',
2574
2576
  editor: 'editor.select',
2575
2577
  editorProps: {
2576
2578
  values: [{
2577
- label: i18n_1._('-90'),
2579
+ label: (0, i18n_1._)('-90'),
2578
2580
  value: -90
2579
2581
  }, {
2580
- label: i18n_1._('-45'),
2582
+ label: (0, i18n_1._)('-45'),
2581
2583
  value: -45
2582
2584
  }, {
2583
- label: i18n_1._('0'),
2585
+ label: (0, i18n_1._)('0'),
2584
2586
  value: 0
2585
2587
  }, {
2586
- label: i18n_1._('45'),
2588
+ label: (0, i18n_1._)('45'),
2587
2589
  value: 45
2588
2590
  }, {
2589
- label: i18n_1._('90'),
2591
+ label: (0, i18n_1._)('90'),
2590
2592
  value: 90
2591
2593
  }]
2592
2594
  },
@@ -2595,7 +2597,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
2595
2597
  return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
2596
2598
  }
2597
2599
  }], [{
2598
- label: i18n_1._('Round axis labels'),
2600
+ label: (0, i18n_1._)('Round axis labels'),
2599
2601
  option: 'showRoundedXAxisLabels',
2600
2602
  editor: 'editor.checkbox',
2601
2603
  showEditor: function showEditor(_ref6) {
@@ -2603,7 +2605,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
2603
2605
  return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
2604
2606
  }
2605
2607
  }], [{
2606
- label: i18n_1._('SI prefix abbreviation for labels'),
2608
+ label: (0, i18n_1._)('SI prefix abbreviation for labels'),
2607
2609
  option: 'xAxisAbbreviation',
2608
2610
  editor: 'editor.checkbox',
2609
2611
  showEditor: function showEditor(_ref7) {
@@ -2611,23 +2613,23 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
2611
2613
  return options.xAxisLabelVisibility === 'show' || options.xAxisLabelVisibility === 'auto' || options.xAxisLabelVisibility === undefined;
2612
2614
  }
2613
2615
  }], [{
2614
- label: i18n_1._('Include zero'),
2616
+ label: (0, i18n_1._)('Include zero'),
2615
2617
  option: 'showXAxisWithZero',
2616
2618
  editor: 'editor.checkbox'
2617
2619
  }], [{
2618
- label: i18n_1._('Extend to whole grid'),
2620
+ label: (0, i18n_1._)('Extend to whole grid'),
2619
2621
  option: 'showXAxisExtendedRange',
2620
2622
  editor: 'editor.checkbox'
2621
2623
  }], [{
2622
- label: i18n_1._('Minimum axis value'),
2624
+ label: (0, i18n_1._)('Minimum axis value'),
2623
2625
  option: 'xAxisMin',
2624
2626
  editor: 'editor.number'
2625
2627
  }, {
2626
- label: i18n_1._('Maximum axis value'),
2628
+ label: (0, i18n_1._)('Maximum axis value'),
2627
2629
  option: 'xAxisMax',
2628
2630
  editor: 'editor.number'
2629
2631
  }], [{
2630
- label: i18n_1._('Axis line visibility'),
2632
+ label: (0, i18n_1._)('Axis line visibility'),
2631
2633
  option: 'xAxisLineVisibility',
2632
2634
  editor: 'editor.checkbox'
2633
2635
  }],
@@ -2640,23 +2642,23 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
2640
2642
  // },
2641
2643
  // ],
2642
2644
  [{
2643
- label: i18n_1._('Major tick visibility'),
2645
+ label: (0, i18n_1._)('Major tick visibility'),
2644
2646
  option: 'xAxisMajorTickVisibility',
2645
2647
  editor: 'editor.radioBar',
2646
2648
  editorProps: {
2647
2649
  values: [{
2648
- label: i18n_1._('Auto'),
2650
+ label: (0, i18n_1._)('Auto'),
2649
2651
  value: 'auto'
2650
2652
  }, {
2651
- label: i18n_1._('Show'),
2653
+ label: (0, i18n_1._)('Show'),
2652
2654
  value: 'show'
2653
2655
  }, {
2654
- label: i18n_1._('Hide'),
2656
+ label: (0, i18n_1._)('Hide'),
2655
2657
  value: 'hide'
2656
2658
  }]
2657
2659
  }
2658
2660
  }], [{
2659
- label: i18n_1._('Major tick size (px)'),
2661
+ label: (0, i18n_1._)('Major tick size (px)'),
2660
2662
  option: 'xAxisMajorTickSize',
2661
2663
  editor: 'editor.slider',
2662
2664
  editorProps: {
@@ -2669,7 +2671,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
2669
2671
  return options.xAxisMajorTickVisibility === 'show' || options.xAxisMajorTickVisibility === 'auto' || options.xAxisMajorTickVisibility === undefined;
2670
2672
  }
2671
2673
  }], [{
2672
- label: i18n_1._('Major tick interval spacing'),
2674
+ label: (0, i18n_1._)('Major tick interval spacing'),
2673
2675
  option: 'xAxisMajorTickInterval',
2674
2676
  editor: 'editor.number',
2675
2677
  showEditor: function showEditor(_ref9) {
@@ -2677,27 +2679,27 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
2677
2679
  return options.xAxisMajorTickVisibility === 'show' || options.xAxisMajorTickVisibility === 'auto' || options.xAxisMajorTickVisibility === undefined;
2678
2680
  }
2679
2681
  }], [{
2680
- label: i18n_1._('Minor gridlines'),
2682
+ label: (0, i18n_1._)('Minor gridlines'),
2681
2683
  option: 'showXMinorGridLines',
2682
2684
  editor: 'editor.checkbox'
2683
2685
  }], [{
2684
- label: i18n_1._('Minor tick visibility'),
2686
+ label: (0, i18n_1._)('Minor tick visibility'),
2685
2687
  option: 'xAxisMinorTickVisibility',
2686
2688
  editor: 'editor.radioBar',
2687
2689
  editorProps: {
2688
2690
  values: [{
2689
- label: i18n_1._('Auto'),
2691
+ label: (0, i18n_1._)('Auto'),
2690
2692
  value: 'auto'
2691
2693
  }, {
2692
- label: i18n_1._('Show'),
2694
+ label: (0, i18n_1._)('Show'),
2693
2695
  value: 'show'
2694
2696
  }, {
2695
- label: i18n_1._('Hide'),
2697
+ label: (0, i18n_1._)('Hide'),
2696
2698
  value: 'hide'
2697
2699
  }]
2698
2700
  }
2699
2701
  }], [{
2700
- label: i18n_1._('Minor tick size (px)'),
2702
+ label: (0, i18n_1._)('Minor tick size (px)'),
2701
2703
  option: 'xAxisMinorTickSize',
2702
2704
  editor: 'editor.slider',
2703
2705
  editorProps: {
@@ -2714,7 +2716,7 @@ exports.AxesChartXGridAndLabelsBubbleScatter = {
2714
2716
  exports.default = AxesChartXGridAndLabels;
2715
2717
 
2716
2718
  /***/ }),
2717
- /* 77 */
2719
+ /* 78 */
2718
2720
  /***/ (function(module, exports, __webpack_require__) {
2719
2721
 
2720
2722
  "use strict";
@@ -2725,13 +2727,13 @@ Object.defineProperty(exports, "__esModule", {
2725
2727
  });
2726
2728
  var i18n_1 = __webpack_require__(2);
2727
2729
  var AxesChartYGridAndLabels = {
2728
- label: i18n_1._('Y-axis grid and labels'),
2730
+ label: (0, i18n_1._)('Y-axis grid and labels'),
2729
2731
  layout: [[{
2730
- label: i18n_1._('Axis title'),
2732
+ label: (0, i18n_1._)('Axis title'),
2731
2733
  option: 'yAxisTitleVisibility',
2732
2734
  editor: 'editor.toggle'
2733
2735
  }], [{
2734
- label: i18n_1._('Axis title text'),
2736
+ label: (0, i18n_1._)('Axis title text'),
2735
2737
  option: 'yAxisTitleText',
2736
2738
  editor: 'editor.text',
2737
2739
  showEditor: function showEditor(_ref) {
@@ -2739,36 +2741,36 @@ var AxesChartYGridAndLabels = {
2739
2741
  return options.yAxisTitleVisibility === 'show' || options.yAxisTitleVisibility === undefined;
2740
2742
  }
2741
2743
  }], [{
2742
- label: i18n_1._('Scale'),
2744
+ label: (0, i18n_1._)('Scale'),
2743
2745
  option: 'yAxisScale',
2744
2746
  editor: 'editor.radioBar',
2745
2747
  editorProps: {
2746
2748
  values: [{
2747
- label: i18n_1._('Linear'),
2749
+ label: (0, i18n_1._)('Linear'),
2748
2750
  value: 'linear'
2749
2751
  }, {
2750
- label: i18n_1._('Log'),
2752
+ label: (0, i18n_1._)('Log'),
2751
2753
  value: 'log'
2752
2754
  }]
2753
2755
  }
2754
2756
  }], [{
2755
- label: i18n_1._('Label visibility'),
2757
+ label: (0, i18n_1._)('Label visibility'),
2756
2758
  option: 'yAxisLabelVisibility',
2757
2759
  editor: 'editor.radioBar',
2758
2760
  editorProps: {
2759
2761
  values: [{
2760
- label: i18n_1._('Auto'),
2762
+ label: (0, i18n_1._)('Auto'),
2761
2763
  value: 'auto'
2762
2764
  }, {
2763
- label: i18n_1._('Show'),
2765
+ label: (0, i18n_1._)('Show'),
2764
2766
  value: 'show'
2765
2767
  }, {
2766
- label: i18n_1._('Hide'),
2768
+ label: (0, i18n_1._)('Hide'),
2767
2769
  value: 'hide'
2768
2770
  }]
2769
2771
  }
2770
2772
  }], [{
2771
- label: i18n_1._('SI prefix abbreviation for labels'),
2773
+ label: (0, i18n_1._)('SI prefix abbreviation for labels'),
2772
2774
  option: 'yAxisAbbreviation',
2773
2775
  editor: 'editor.checkbox',
2774
2776
  showEditor: function showEditor(_ref2) {
@@ -2776,47 +2778,47 @@ var AxesChartYGridAndLabels = {
2776
2778
  return options.yAxisLabelVisibility === 'show' || options.yAxisLabelVisibility === 'auto' || options.yAxisLabelVisibility === undefined;
2777
2779
  }
2778
2780
  }], [{
2779
- label: i18n_1._('Include zero'),
2781
+ label: (0, i18n_1._)('Include zero'),
2780
2782
  option: 'showYAxisWithZero',
2781
2783
  editor: 'editor.checkbox'
2782
2784
  }], [{
2783
- label: i18n_1._('Extend to whole grid'),
2785
+ label: (0, i18n_1._)('Extend to whole grid'),
2784
2786
  option: 'showYAxisExtendedRange',
2785
2787
  editor: 'editor.checkbox'
2786
2788
  }], [{
2787
- label: i18n_1._('Minimum axis value'),
2789
+ label: (0, i18n_1._)('Minimum axis value'),
2788
2790
  option: 'yAxisMin',
2789
2791
  editor: 'editor.number'
2790
2792
  }, {
2791
- label: i18n_1._('Maximum axis value'),
2793
+ label: (0, i18n_1._)('Maximum axis value'),
2792
2794
  option: 'yAxisMax',
2793
2795
  editor: 'editor.number'
2794
2796
  }], [{
2795
- label: i18n_1._('Axis line visibility'),
2797
+ label: (0, i18n_1._)('Axis line visibility'),
2796
2798
  option: 'yAxisLineVisibility',
2797
2799
  editor: 'editor.checkbox'
2798
2800
  }], [{
2799
- label: i18n_1._('Major gridlines'),
2801
+ label: (0, i18n_1._)('Major gridlines'),
2800
2802
  option: 'showYMajorGridLines',
2801
2803
  editor: 'editor.checkbox'
2802
2804
  }], [{
2803
- label: i18n_1._('Major tick visibility'),
2805
+ label: (0, i18n_1._)('Major tick visibility'),
2804
2806
  option: 'yAxisMajorTickVisibility',
2805
2807
  editor: 'editor.radioBar',
2806
2808
  editorProps: {
2807
2809
  values: [{
2808
- label: i18n_1._('Auto'),
2810
+ label: (0, i18n_1._)('Auto'),
2809
2811
  value: 'auto'
2810
2812
  }, {
2811
- label: i18n_1._('Show'),
2813
+ label: (0, i18n_1._)('Show'),
2812
2814
  value: 'show'
2813
2815
  }, {
2814
- label: i18n_1._('Hide'),
2816
+ label: (0, i18n_1._)('Hide'),
2815
2817
  value: 'hide'
2816
2818
  }]
2817
2819
  }
2818
2820
  }], [{
2819
- label: i18n_1._('Major tick size (px)'),
2821
+ label: (0, i18n_1._)('Major tick size (px)'),
2820
2822
  option: 'yAxisMajorTickSize',
2821
2823
  editor: 'editor.slider',
2822
2824
  editorProps: {
@@ -2829,7 +2831,7 @@ var AxesChartYGridAndLabels = {
2829
2831
  return options.yAxisMajorTickVisibility === 'show' || options.yAxisMajorTickVisibility === 'auto' || options.yAxisMajorTickVisibility === undefined;
2830
2832
  }
2831
2833
  }], [{
2832
- label: i18n_1._('Major tick interval spacing'),
2834
+ label: (0, i18n_1._)('Major tick interval spacing'),
2833
2835
  option: 'yAxisMajorTickInterval',
2834
2836
  editor: 'editor.number',
2835
2837
  showEditor: function showEditor(_ref4) {
@@ -2837,27 +2839,27 @@ var AxesChartYGridAndLabels = {
2837
2839
  return options.yAxisMajorTickVisibility === 'show' || options.yAxisMajorTickVisibility === 'auto' || options.yAxisMajorTickVisibility === undefined;
2838
2840
  }
2839
2841
  }], [{
2840
- label: i18n_1._('Minor gridlines'),
2842
+ label: (0, i18n_1._)('Minor gridlines'),
2841
2843
  option: 'showYMinorGridLines',
2842
2844
  editor: 'editor.checkbox'
2843
2845
  }], [{
2844
- label: i18n_1._('Minor tick visibility'),
2846
+ label: (0, i18n_1._)('Minor tick visibility'),
2845
2847
  option: 'yAxisMinorTickVisibility',
2846
2848
  editor: 'editor.radioBar',
2847
2849
  editorProps: {
2848
2850
  values: [{
2849
- label: i18n_1._('Auto'),
2851
+ label: (0, i18n_1._)('Auto'),
2850
2852
  value: 'auto'
2851
2853
  }, {
2852
- label: i18n_1._('Show'),
2854
+ label: (0, i18n_1._)('Show'),
2853
2855
  value: 'show'
2854
2856
  }, {
2855
- label: i18n_1._('Hide'),
2857
+ label: (0, i18n_1._)('Hide'),
2856
2858
  value: 'hide'
2857
2859
  }]
2858
2860
  }
2859
2861
  }], [{
2860
- label: i18n_1._('Minor tick size (px)'),
2862
+ label: (0, i18n_1._)('Minor tick size (px)'),
2861
2863
  option: 'yAxisMinorTickSize',
2862
2864
  editor: 'editor.slider',
2863
2865
  editorProps: {
@@ -2874,7 +2876,6 @@ var AxesChartYGridAndLabels = {
2874
2876
  exports.default = AxesChartYGridAndLabels;
2875
2877
 
2876
2878
  /***/ }),
2877
- /* 78 */,
2878
2879
  /* 79 */,
2879
2880
  /* 80 */,
2880
2881
  /* 81 */,
@@ -2883,7 +2884,8 @@ exports.default = AxesChartYGridAndLabels;
2883
2884
  /* 84 */,
2884
2885
  /* 85 */,
2885
2886
  /* 86 */,
2886
- /* 87 */
2887
+ /* 87 */,
2888
+ /* 88 */
2887
2889
  /***/ (function(module, exports, __webpack_require__) {
2888
2890
 
2889
2891
  "use strict";
@@ -2898,52 +2900,52 @@ var i18n_1 = __webpack_require__(2);
2898
2900
  var lodash_1 = __webpack_require__(3);
2899
2901
  var configUtils_1 = __webpack_require__(20);
2900
2902
  exports.AxesChartDataDisplayLine = {
2901
- label: i18n_1._('Data display'),
2903
+ label: (0, i18n_1._)('Data display'),
2902
2904
  layout: [[{
2903
- label: i18n_1._('Null value display'),
2905
+ label: (0, i18n_1._)('Null value display'),
2904
2906
  option: 'nullValueDisplay',
2905
2907
  editor: 'editor.radioBar',
2906
2908
  editorProps: {
2907
2909
  values: [{
2908
- label: i18n_1._('Gaps'),
2910
+ label: (0, i18n_1._)('Gaps'),
2909
2911
  value: 'gaps'
2910
2912
  }, {
2911
- label: i18n_1._('Zero'),
2913
+ label: (0, i18n_1._)('Zero'),
2912
2914
  value: 'zero'
2913
2915
  }, {
2914
- label: i18n_1._('Connect'),
2916
+ label: (0, i18n_1._)('Connect'),
2915
2917
  value: 'connect'
2916
2918
  }]
2917
2919
  }
2918
2920
  }], [{
2919
- label: i18n_1._('Data value display'),
2921
+ label: (0, i18n_1._)('Data value display'),
2920
2922
  option: 'dataValuesDisplay',
2921
2923
  editor: 'editor.radioBar',
2922
2924
  editorProps: {
2923
2925
  values: [{
2924
- label: i18n_1._('Off'),
2926
+ label: (0, i18n_1._)('Off'),
2925
2927
  value: 'off'
2926
2928
  }, {
2927
- label: i18n_1._('All'),
2929
+ label: (0, i18n_1._)('All'),
2928
2930
  value: 'all'
2929
2931
  }, {
2930
- label: i18n_1._('Min/Max'),
2932
+ label: (0, i18n_1._)('Min/Max'),
2931
2933
  value: 'minmax'
2932
2934
  }]
2933
2935
  }
2934
2936
  }], [{
2935
- label: i18n_1._('Overlay fields'),
2937
+ label: (0, i18n_1._)('Overlay fields'),
2936
2938
  option: 'overlayFields',
2937
2939
  editor: 'editor.columnMultiSelectionByFieldNameEditor',
2938
2940
  editorProps: {
2939
2941
  filterByTypes: ['number']
2940
2942
  }
2941
2943
  }], [{
2942
- label: i18n_1._('Split series'),
2944
+ label: (0, i18n_1._)('Split series'),
2943
2945
  option: 'showSplitSeries',
2944
2946
  editor: 'editor.toggle'
2945
2947
  }], [{
2946
- label: i18n_1._('Independent y-axis for split series'),
2948
+ label: (0, i18n_1._)('Independent y-axis for split series'),
2947
2949
  option: 'showIndependentYRanges',
2948
2950
  editor: 'editor.checkbox',
2949
2951
  showEditor: function showEditor(_ref) {
@@ -2955,18 +2957,18 @@ exports.AxesChartDataDisplayLine = {
2955
2957
  var AxesChartDataDisplay = {
2956
2958
  label: exports.AxesChartDataDisplayLine.label,
2957
2959
  layout: [[{
2958
- label: i18n_1._('Stack mode'),
2960
+ label: (0, i18n_1._)('Stack mode'),
2959
2961
  option: 'stackMode',
2960
2962
  editor: 'editor.select',
2961
2963
  editorProps: {
2962
2964
  values: [{
2963
- label: i18n_1._('Not stacked'),
2965
+ label: (0, i18n_1._)('Not stacked'),
2964
2966
  value: 'auto'
2965
2967
  }, {
2966
- label: i18n_1._('Stacked'),
2968
+ label: (0, i18n_1._)('Stacked'),
2967
2969
  value: 'stacked'
2968
2970
  }, {
2969
- label: i18n_1._('Stacked 100%'),
2971
+ label: (0, i18n_1._)('Stacked 100%'),
2970
2972
  value: 'stacked100'
2971
2973
  }]
2972
2974
  }
@@ -2975,39 +2977,39 @@ var AxesChartDataDisplay = {
2975
2977
  exports.AxesChartDataDisplayBar = {
2976
2978
  label: exports.AxesChartDataDisplayLine.label,
2977
2979
  layout: [[{
2978
- label: i18n_1._('Stack mode'),
2980
+ label: (0, i18n_1._)('Stack mode'),
2979
2981
  option: 'stackMode',
2980
2982
  editor: 'editor.select',
2981
2983
  editorProps: {
2982
2984
  values: [{
2983
- label: i18n_1._('Not stacked'),
2985
+ label: (0, i18n_1._)('Not stacked'),
2984
2986
  value: 'auto'
2985
2987
  }, {
2986
- label: i18n_1._('Stacked'),
2988
+ label: (0, i18n_1._)('Stacked'),
2987
2989
  value: 'stacked'
2988
2990
  }, {
2989
- label: i18n_1._('Stacked 100%'),
2991
+ label: (0, i18n_1._)('Stacked 100%'),
2990
2992
  value: 'stacked100'
2991
2993
  }]
2992
2994
  }
2993
- }]].concat(_toConsumableArray(lodash_1.drop(exports.AxesChartDataDisplayLine.layout)))
2995
+ }]].concat(_toConsumableArray((0, lodash_1.drop)(exports.AxesChartDataDisplayLine.layout)))
2994
2996
  };
2995
2997
  exports.AxesChartDataDisplayColumn = {
2996
2998
  label: exports.AxesChartDataDisplayBar.label,
2997
- layout: [].concat(_toConsumableArray(configUtils_1.insertLayout(exports.AxesChartDataDisplayBar.layout, 2, [{
2998
- label: i18n_1._('Show tooltip on hover'),
2999
+ layout: [].concat(_toConsumableArray((0, configUtils_1.insertLayout)(exports.AxesChartDataDisplayBar.layout, 2, [{
3000
+ label: (0, i18n_1._)('Show tooltip on hover'),
2999
3001
  option: 'showTooltip',
3000
3002
  editor: 'editor.checkbox'
3001
3003
  }])), [[{
3002
- label: i18n_1._('Column grouping mode'),
3004
+ label: (0, i18n_1._)('Column grouping mode'),
3003
3005
  option: 'columnGrouping',
3004
3006
  editor: 'editor.radioBar',
3005
3007
  editorProps: {
3006
3008
  values: [{
3007
- label: i18n_1._('Auto'),
3009
+ label: (0, i18n_1._)('Auto'),
3008
3010
  value: 'auto'
3009
3011
  }, {
3010
- label: i18n_1._('Overlay'),
3012
+ label: (0, i18n_1._)('Overlay'),
3011
3013
  value: 'overlay'
3012
3014
  }]
3013
3015
  }
@@ -3016,7 +3018,7 @@ exports.AxesChartDataDisplayColumn = {
3016
3018
  exports.default = AxesChartDataDisplay;
3017
3019
 
3018
3020
  /***/ }),
3019
- /* 88 */
3021
+ /* 89 */
3020
3022
  /***/ (function(module, exports, __webpack_require__) {
3021
3023
 
3022
3024
  "use strict";
@@ -3027,13 +3029,13 @@ Object.defineProperty(exports, "__esModule", {
3027
3029
  });
3028
3030
  var i18n_1 = __webpack_require__(2);
3029
3031
  var axesChartY2GridAndLabels = {
3030
- label: i18n_1._('Y2-axis grid and labels'),
3032
+ label: (0, i18n_1._)('Y2-axis grid and labels'),
3031
3033
  layout: [[{
3032
- label: i18n_1._('Axis title'),
3034
+ label: (0, i18n_1._)('Axis title'),
3033
3035
  option: 'y2AxisTitleVisibility',
3034
3036
  editor: 'editor.toggle'
3035
3037
  }], [{
3036
- label: i18n_1._('Axis title'),
3038
+ label: (0, i18n_1._)('Axis title'),
3037
3039
  option: 'y2AxisTitleText',
3038
3040
  editor: 'editor.text',
3039
3041
  showEditor: function showEditor(_ref) {
@@ -3041,7 +3043,7 @@ var axesChartY2GridAndLabels = {
3041
3043
  return options.y2AxisTitleVisibility === 'show' || options.y2AxisTitleVisibility === undefined;
3042
3044
  }
3043
3045
  }], [{
3044
- label: i18n_1._('Show overlays on the y2-axis'),
3046
+ label: (0, i18n_1._)('Show overlays on the y2-axis'),
3045
3047
  option: 'showOverlayY2Axis',
3046
3048
  editor: 'editor.checkbox',
3047
3049
  showEditor: function showEditor(_ref2) {
@@ -3049,36 +3051,36 @@ var axesChartY2GridAndLabels = {
3049
3051
  return Array.isArray(options.overlayFields) && options.overlayFields.length > 0;
3050
3052
  }
3051
3053
  }], [{
3052
- label: i18n_1._('Scale'),
3054
+ label: (0, i18n_1._)('Scale'),
3053
3055
  option: 'y2AxisScale',
3054
3056
  editor: 'editor.radioBar',
3055
3057
  editorProps: {
3056
3058
  values: [{
3057
- label: i18n_1._('Linear'),
3059
+ label: (0, i18n_1._)('Linear'),
3058
3060
  value: 'linear'
3059
3061
  }, {
3060
- label: i18n_1._('Log'),
3062
+ label: (0, i18n_1._)('Log'),
3061
3063
  value: 'log'
3062
3064
  }]
3063
3065
  }
3064
3066
  }], [{
3065
- label: i18n_1._('Label visibility'),
3067
+ label: (0, i18n_1._)('Label visibility'),
3066
3068
  option: 'y2AxisLabelVisibility',
3067
3069
  editor: 'editor.radioBar',
3068
3070
  editorProps: {
3069
3071
  values: [{
3070
- label: i18n_1._('Auto'),
3072
+ label: (0, i18n_1._)('Auto'),
3071
3073
  value: 'auto'
3072
3074
  }, {
3073
- label: i18n_1._('Show'),
3075
+ label: (0, i18n_1._)('Show'),
3074
3076
  value: 'show'
3075
3077
  }, {
3076
- label: i18n_1._('Hide'),
3078
+ label: (0, i18n_1._)('Hide'),
3077
3079
  value: 'hide'
3078
3080
  }]
3079
3081
  }
3080
3082
  }], [{
3081
- label: i18n_1._('Round axis labels'),
3083
+ label: (0, i18n_1._)('Round axis labels'),
3082
3084
  option: 'showRoundedY2AxisLabels',
3083
3085
  editor: 'editor.checkbox',
3084
3086
  showEditor: function showEditor(_ref3) {
@@ -3086,7 +3088,7 @@ var axesChartY2GridAndLabels = {
3086
3088
  return options.y2AxisLabelVisibility === 'show' || options.y2AxisLabelVisibility === 'auto' || options.y2AxisLabelVisibility === undefined;
3087
3089
  }
3088
3090
  }], [{
3089
- label: i18n_1._('SI prefix abbreviation for labels'),
3091
+ label: (0, i18n_1._)('SI prefix abbreviation for labels'),
3090
3092
  option: 'y2AxisAbbreviation',
3091
3093
  editor: 'editor.checkbox',
3092
3094
  showEditor: function showEditor(_ref4) {
@@ -3094,43 +3096,43 @@ var axesChartY2GridAndLabels = {
3094
3096
  return options.y2AxisLabelVisibility === 'show' || options.y2AxisLabelVisibility === 'auto' || options.y2AxisLabelVisibility === undefined;
3095
3097
  }
3096
3098
  }], [{
3097
- label: i18n_1._('Include zero'),
3099
+ label: (0, i18n_1._)('Include zero'),
3098
3100
  option: 'showY2AxisWithZero',
3099
3101
  editor: 'editor.checkbox'
3100
3102
  }], [{
3101
- label: i18n_1._('Minimum axis value'),
3103
+ label: (0, i18n_1._)('Minimum axis value'),
3102
3104
  option: 'y2AxisMin',
3103
3105
  editor: 'editor.number'
3104
3106
  }, {
3105
- label: i18n_1._('Maximum axis value'),
3107
+ label: (0, i18n_1._)('Maximum axis value'),
3106
3108
  option: 'y2AxisMax',
3107
3109
  editor: 'editor.number'
3108
3110
  }], [{
3109
- label: i18n_1._('Axis line visibility'),
3111
+ label: (0, i18n_1._)('Axis line visibility'),
3110
3112
  option: 'y2AxisLineVisibility',
3111
3113
  editor: 'editor.checkbox'
3112
3114
  }], [{
3113
- label: i18n_1._('Major gridlines'),
3115
+ label: (0, i18n_1._)('Major gridlines'),
3114
3116
  option: 'showY2MajorGridLines',
3115
3117
  editor: 'editor.checkbox'
3116
3118
  }], [{
3117
- label: i18n_1._('Major tick visibility'),
3119
+ label: (0, i18n_1._)('Major tick visibility'),
3118
3120
  option: 'y2AxisMajorTickVisibility',
3119
3121
  editor: 'editor.radioBar',
3120
3122
  editorProps: {
3121
3123
  values: [{
3122
- label: i18n_1._('Auto'),
3124
+ label: (0, i18n_1._)('Auto'),
3123
3125
  value: 'auto'
3124
3126
  }, {
3125
- label: i18n_1._('Show'),
3127
+ label: (0, i18n_1._)('Show'),
3126
3128
  value: 'show'
3127
3129
  }, {
3128
- label: i18n_1._('Hide'),
3130
+ label: (0, i18n_1._)('Hide'),
3129
3131
  value: 'hide'
3130
3132
  }]
3131
3133
  }
3132
3134
  }], [{
3133
- label: i18n_1._('Major tick size (px)'),
3135
+ label: (0, i18n_1._)('Major tick size (px)'),
3134
3136
  option: 'y2AxisMajorTickSize',
3135
3137
  editor: 'editor.slider',
3136
3138
  editorProps: {
@@ -3143,7 +3145,7 @@ var axesChartY2GridAndLabels = {
3143
3145
  return options.y2AxisMajorTickVisibility === 'show' || options.y2AxisMajorTickVisibility === 'auto' || options.y2AxisMajorTickVisibility === undefined;
3144
3146
  }
3145
3147
  }], [{
3146
- label: i18n_1._('Major tick interval spacing'),
3148
+ label: (0, i18n_1._)('Major tick interval spacing'),
3147
3149
  option: 'y2AxisMajorTickInterval',
3148
3150
  editor: 'editor.number',
3149
3151
  showEditor: function showEditor(_ref6) {
@@ -3151,27 +3153,27 @@ var axesChartY2GridAndLabels = {
3151
3153
  return options.y2AxisMajorTickVisibility === 'show' || options.y2AxisMajorTickVisibility === 'auto' || options.y2AxisMajorTickVisibility === undefined;
3152
3154
  }
3153
3155
  }], [{
3154
- label: i18n_1._('Minor gridlines'),
3156
+ label: (0, i18n_1._)('Minor gridlines'),
3155
3157
  option: 'showY2MinorGridLines',
3156
3158
  editor: 'editor.checkbox'
3157
3159
  }], [{
3158
- label: i18n_1._('Minor tick visibility'),
3160
+ label: (0, i18n_1._)('Minor tick visibility'),
3159
3161
  option: 'y2AxisMinorTickVisibility',
3160
3162
  editor: 'editor.radioBar',
3161
3163
  editorProps: {
3162
3164
  values: [{
3163
- label: i18n_1._('Auto'),
3165
+ label: (0, i18n_1._)('Auto'),
3164
3166
  value: 'auto'
3165
3167
  }, {
3166
- label: i18n_1._('Show'),
3168
+ label: (0, i18n_1._)('Show'),
3167
3169
  value: 'show'
3168
3170
  }, {
3169
- label: i18n_1._('Hide'),
3171
+ label: (0, i18n_1._)('Hide'),
3170
3172
  value: 'hide'
3171
3173
  }]
3172
3174
  }
3173
3175
  }], [{
3174
- label: i18n_1._('Minor tick size (px)'),
3176
+ label: (0, i18n_1._)('Minor tick size (px)'),
3175
3177
  option: 'y2AxisMinorTickSize',
3176
3178
  editor: 'editor.slider',
3177
3179
  editorProps: {
@@ -3188,7 +3190,6 @@ var axesChartY2GridAndLabels = {
3188
3190
  exports.default = axesChartY2GridAndLabels;
3189
3191
 
3190
3192
  /***/ }),
3191
- /* 89 */,
3192
3193
  /* 90 */,
3193
3194
  /* 91 */,
3194
3195
  /* 92 */,
@@ -3240,7 +3241,9 @@ exports.default = axesChartY2GridAndLabels;
3240
3241
  /* 138 */,
3241
3242
  /* 139 */,
3242
3243
  /* 140 */,
3243
- /* 141 */
3244
+ /* 141 */,
3245
+ /* 142 */,
3246
+ /* 143 */
3244
3247
  /***/ (function(module, exports, __webpack_require__) {
3245
3248
 
3246
3249
  "use strict";
@@ -3260,18 +3263,15 @@ Object.defineProperty(exports, "__esModule", {
3260
3263
  value: true
3261
3264
  });
3262
3265
  exports.config = exports.themes = exports.computeVizProps = void 0;
3263
- var lodash_1 = __webpack_require__(3);
3264
3266
  // Charting imports i18n which needs to be run to instantiate window globals in the tests
3267
+ var Charting_1 = __webpack_require__(65);
3265
3268
  // eslint-disable-next-line import/order
3266
- var Charting_1 = __webpack_require__(64);
3267
- var charting_bundle_1 = __webpack_require__(56);
3268
- var simpleXMLOptions_1 = __webpack_require__(69);
3269
- var config_1 = __webpack_require__(174);
3269
+ var charting_bundle_1 = __webpack_require__(55);
3270
+ var config_1 = __webpack_require__(144);
3270
3271
  exports.config = config_1.default;
3271
3272
  var withDashboardViz_1 = __webpack_require__(36);
3272
- var areaUtils_1 = __webpack_require__(175);
3273
- var chartingUtils_1 = __webpack_require__(55);
3274
- var validOptions = Object.keys(config_1.default.optionsSchema);
3273
+ var areaUtils_1 = __webpack_require__(178);
3274
+ var chartingUtils_1 = __webpack_require__(56);
3275
3275
  var computeVizProps = function computeVizProps(_a) {
3276
3276
  var dataSources = _a.dataSources,
3277
3277
  onEventTrigger = _a.onEventTrigger,
@@ -3290,18 +3290,14 @@ var computeVizProps = function computeVizProps(_a) {
3290
3290
  var y2 = otherOptions.y2,
3291
3291
  y2Fields = otherOptions.y2Fields,
3292
3292
  hasEventHandlers = otherOptions.hasEventHandlers;
3293
- computedProps.options = lodash_1.chain(otherOptions).pick(validOptions).thru(areaUtils_1.convertToAreaSCProperties).thru(function (options) {
3294
- return Object.assign(Object.assign({}, simpleXMLOptions_1.getSimpleXMLOptionsForProps(options)), {
3295
- chart: 'area'
3296
- });
3297
- }).value();
3298
- var chartingAnnotations = chartingUtils_1.getAnnotations({
3293
+ computedProps.options = (0, areaUtils_1.transformOptions)(otherOptions);
3294
+ var chartingAnnotations = (0, chartingUtils_1.getAnnotations)({
3299
3295
  annotationX: annotationX,
3300
3296
  annotationColor: annotationColor,
3301
3297
  annotationLabel: annotationLabel
3302
3298
  });
3303
3299
  var primaryData = Object.assign({}, dataSources.primary.data);
3304
- var _chartingUtils_1$cons = chartingUtils_1.constructFieldsAndColumns({
3300
+ var _ref = (0, chartingUtils_1.constructFieldsAndColumns)({
3305
3301
  x: x,
3306
3302
  y: y,
3307
3303
  xField: xField,
@@ -3309,8 +3305,8 @@ var computeVizProps = function computeVizProps(_a) {
3309
3305
  y2: y2,
3310
3306
  y2Fields: y2Fields
3311
3307
  }),
3312
- columns = _chartingUtils_1$cons.columns,
3313
- fields = _chartingUtils_1$cons.fields;
3308
+ columns = _ref.columns,
3309
+ fields = _ref.fields;
3314
3310
  primaryData.columns = columns;
3315
3311
  primaryData.fields = fields;
3316
3312
  computedProps.chartData = charting_bundle_1.default.extractChartReadyData(Object.assign(Object.assign({}, primaryData), {
@@ -3325,7 +3321,7 @@ var computeVizProps = function computeVizProps(_a) {
3325
3321
  return computedProps;
3326
3322
  };
3327
3323
  exports.computeVizProps = computeVizProps;
3328
- var Area = withDashboardViz_1.default({
3324
+ var Area = (0, withDashboardViz_1.default)({
3329
3325
  ReactViz: Charting_1.default,
3330
3326
  computeVizProps: exports.computeVizProps,
3331
3327
  vizConfig: config_1.default
@@ -3335,75 +3331,7 @@ exports.themes = themes;
3335
3331
  exports.default = Area;
3336
3332
 
3337
3333
  /***/ }),
3338
- /* 142 */,
3339
- /* 143 */,
3340
- /* 144 */,
3341
- /* 145 */,
3342
- /* 146 */,
3343
- /* 147 */,
3344
- /* 148 */,
3345
- /* 149 */,
3346
- /* 150 */,
3347
- /* 151 */,
3348
- /* 152 */,
3349
- /* 153 */,
3350
- /* 154 */,
3351
- /* 155 */,
3352
- /* 156 */,
3353
- /* 157 */,
3354
- /* 158 */,
3355
- /* 159 */,
3356
- /* 160 */,
3357
- /* 161 */,
3358
- /* 162 */,
3359
- /* 163 */,
3360
- /* 164 */,
3361
- /* 165 */,
3362
- /* 166 */,
3363
- /* 167 */,
3364
- /* 168 */,
3365
- /* 169 */,
3366
- /* 170 */,
3367
- /* 171 */,
3368
- /* 172 */,
3369
- /* 173 */
3370
- /***/ (function(module, exports, __webpack_require__) {
3371
-
3372
- "use strict";
3373
-
3374
-
3375
- var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
3376
- if (k2 === undefined) k2 = k;
3377
- Object.defineProperty(o, k2, {
3378
- enumerable: true,
3379
- get: function get() {
3380
- return m[k];
3381
- }
3382
- });
3383
- } : function (o, m, k, k2) {
3384
- if (k2 === undefined) k2 = k;
3385
- o[k2] = m[k];
3386
- });
3387
- var __exportStar = this && this.__exportStar || function (m, exports) {
3388
- for (var p in m) {
3389
- if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
3390
- }
3391
- };
3392
- Object.defineProperty(exports, "__esModule", {
3393
- value: true
3394
- });
3395
- exports.default = void 0;
3396
- __exportStar(__webpack_require__(141), exports);
3397
- var Area_1 = __webpack_require__(141);
3398
- Object.defineProperty(exports, "default", {
3399
- enumerable: true,
3400
- get: function get() {
3401
- return Area_1.default;
3402
- }
3403
- });
3404
-
3405
- /***/ }),
3406
- /* 174 */
3334
+ /* 144 */
3407
3335
  /***/ (function(module, exports, __webpack_require__) {
3408
3336
 
3409
3337
  "use strict";
@@ -3414,7 +3342,7 @@ Object.defineProperty(exports, "__esModule", {
3414
3342
  value: true
3415
3343
  });
3416
3344
  var visualization_icons_1 = __webpack_require__(52);
3417
- var placeholders_1 = __webpack_require__(49);
3345
+ var placeholders_1 = __webpack_require__(50);
3418
3346
  var schemaUtils_1 = __webpack_require__(16);
3419
3347
  var visualization_color_palettes_1 = __webpack_require__(51);
3420
3348
  var i18n_1 = __webpack_require__(2);
@@ -3423,13 +3351,13 @@ var variables_1 = __webpack_require__(11);
3423
3351
  var VizBehavior_1 = __webpack_require__(6);
3424
3352
  var VizCategory_1 = __webpack_require__(35);
3425
3353
  var configUtils_1 = __webpack_require__(20);
3426
- var AxesChartDataConfig_1 = __webpack_require__(73);
3427
- var AxesChartDataDisplay_1 = __webpack_require__(87);
3428
- var AxesChartColorAndStyle_1 = __webpack_require__(74);
3429
- var AxesChartLegend_1 = __webpack_require__(75);
3430
- var AxesChartXGridAndLabels_1 = __webpack_require__(76);
3431
- var AxesChartYGridAndLabels_1 = __webpack_require__(77);
3432
- var AxesChartY2GridAndLabels_1 = __webpack_require__(88);
3354
+ var AxesChartDataConfig_1 = __webpack_require__(74);
3355
+ var AxesChartDataDisplay_1 = __webpack_require__(88);
3356
+ var AxesChartColorAndStyle_1 = __webpack_require__(75);
3357
+ var AxesChartLegend_1 = __webpack_require__(76);
3358
+ var AxesChartXGridAndLabels_1 = __webpack_require__(77);
3359
+ var AxesChartYGridAndLabels_1 = __webpack_require__(78);
3360
+ var AxesChartY2GridAndLabels_1 = __webpack_require__(89);
3433
3361
  var dataContract = {
3434
3362
  requiredDataSources: [{
3435
3363
  name: 'primary',
@@ -3524,13 +3452,13 @@ var optionsSchema = {
3524
3452
  dataValuesDisplay: {
3525
3453
  description: 'Specify the labels to display. Enter "all" to show labels for all data points, "off" to show no labels, or "minmax" to show high and low values.',
3526
3454
  type: 'string',
3527
- pattern: schemaUtils_1.getPattern(['off', 'all', 'minmax']),
3455
+ pattern: (0, schemaUtils_1.getPattern)(['off', 'all', 'minmax']),
3528
3456
  default: 'off'
3529
3457
  },
3530
3458
  legendDisplay: {
3531
3459
  default: 'right',
3532
3460
  description: 'Specify the location of the legend on the panel. You must select the Standard legend mode to make this change.',
3533
- pattern: schemaUtils_1.getPattern(['right', 'left', 'top', 'bottom', 'off']),
3461
+ pattern: (0, schemaUtils_1.getPattern)(['right', 'left', 'top', 'bottom', 'off']),
3534
3462
  type: 'string'
3535
3463
  },
3536
3464
  legendLabels: {
@@ -3543,13 +3471,13 @@ var optionsSchema = {
3543
3471
  legendMode: {
3544
3472
  default: 'standard',
3545
3473
  description: 'Specify visual and behavioral settings for the tooltip and legend. "seriesCompare" is useful when comparing series.',
3546
- pattern: schemaUtils_1.getPattern(['standard', 'seriesCompare']),
3474
+ pattern: (0, schemaUtils_1.getPattern)(['standard', 'seriesCompare']),
3547
3475
  type: 'string'
3548
3476
  },
3549
3477
  legendTruncation: {
3550
3478
  default: 'ellipsisEnd',
3551
3479
  description: 'Specify how to display legend labels when they overflow the layout boundaries by replacing overflow text with an ellipsis.',
3552
- pattern: schemaUtils_1.getPattern(['ellipsisEnd', 'ellipsisMiddle', 'ellipsisStart', 'ellipsisOff']),
3480
+ pattern: (0, schemaUtils_1.getPattern)(['ellipsisEnd', 'ellipsisMiddle', 'ellipsisStart', 'ellipsisOff']),
3553
3481
  type: 'string'
3554
3482
  },
3555
3483
  lineWidth: {
@@ -3560,7 +3488,7 @@ var optionsSchema = {
3560
3488
  nullValueDisplay: {
3561
3489
  default: 'gaps',
3562
3490
  description: 'Specify the handling of null values for area and line charts .',
3563
- pattern: schemaUtils_1.getPattern(['gaps', 'zero', 'connect']),
3491
+ pattern: (0, schemaUtils_1.getPattern)(['gaps', 'zero', 'connect']),
3564
3492
  type: 'string'
3565
3493
  },
3566
3494
  resultLimit: {
@@ -3583,7 +3511,7 @@ var optionsSchema = {
3583
3511
  stackMode: {
3584
3512
  description: 'Specify stack mode.',
3585
3513
  type: 'string',
3586
- pattern: schemaUtils_1.getPattern(['auto', 'stacked', 'stacked100']),
3514
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'stacked', 'stacked100']),
3587
3515
  default: 'auto'
3588
3516
  },
3589
3517
  showIndependentYRanges: {
@@ -3650,40 +3578,40 @@ var optionsSchema = {
3650
3578
  xAxisLabelVisibility: {
3651
3579
  default: 'auto',
3652
3580
  description: 'Specify whether to show labels on the x-axis.',
3653
- pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
3581
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
3654
3582
  type: 'string'
3655
3583
  },
3656
3584
  yAxisLabelVisibility: {
3657
3585
  default: 'auto',
3658
3586
  description: 'Specify whether to show labels on the y-axis.',
3659
- pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
3587
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
3660
3588
  type: 'string'
3661
3589
  },
3662
3590
  y2AxisLabelVisibility: {
3663
3591
  default: 'auto',
3664
3592
  description: 'Specify whether to show labels on the second y-axis.',
3665
- pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
3593
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
3666
3594
  type: 'string'
3667
3595
  },
3668
3596
  xAxisLineVisibility: {
3669
3597
  default: 'hide',
3670
3598
  description: 'Specify whether to show the x-axis line.',
3671
3599
  enum: ['hide', 'show'],
3672
- pattern: schemaUtils_1.getPattern(['show', 'hide']),
3600
+ pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
3673
3601
  type: 'string'
3674
3602
  },
3675
3603
  yAxisLineVisibility: {
3676
3604
  default: 'hide',
3677
3605
  description: 'Specify whether to show the y-axis line.',
3678
3606
  enum: ['hide', 'show'],
3679
- pattern: schemaUtils_1.getPattern(['show', 'hide']),
3607
+ pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
3680
3608
  type: 'string'
3681
3609
  },
3682
3610
  y2AxisLineVisibility: {
3683
3611
  default: 'hide',
3684
3612
  description: 'Specify whether to show the second y-axis line.',
3685
3613
  enum: ['hide', 'show'],
3686
- pattern: schemaUtils_1.getPattern(['show', 'hide']),
3614
+ pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
3687
3615
  type: 'string'
3688
3616
  },
3689
3617
  xAxisMajorTickSize: {
@@ -3714,31 +3642,31 @@ var optionsSchema = {
3714
3642
  xAxisMajorTickVisibility: {
3715
3643
  default: 'auto',
3716
3644
  description: 'Specify whether to show major tick marks on the x-axis.',
3717
- pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
3645
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
3718
3646
  type: 'string'
3719
3647
  },
3720
3648
  yAxisMajorTickVisibility: {
3721
3649
  default: 'auto',
3722
3650
  description: 'Specify whether to show major tick marks on the y-axis.',
3723
- pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
3651
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
3724
3652
  type: 'string'
3725
3653
  },
3726
3654
  y2AxisMajorTickVisibility: {
3727
3655
  default: 'auto',
3728
3656
  description: 'Specify whether to show major tick marks on the second y-axis.',
3729
- pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
3657
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
3730
3658
  type: 'string'
3731
3659
  },
3732
3660
  yAxisMinorTickVisibility: {
3733
3661
  default: 'auto',
3734
3662
  description: 'Specify whether to show minor tick marks on the y-axis.',
3735
- pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
3663
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
3736
3664
  type: 'string'
3737
3665
  },
3738
3666
  y2AxisMinorTickVisibility: {
3739
3667
  default: 'auto',
3740
3668
  description: 'Specify whether to show minor tick marks on the second y-axis.',
3741
- pattern: schemaUtils_1.getPattern(['auto', 'show', 'hide']),
3669
+ pattern: (0, schemaUtils_1.getPattern)(['auto', 'show', 'hide']),
3742
3670
  type: 'string'
3743
3671
  },
3744
3672
  xAxisMaxLabelParts: {
@@ -3750,13 +3678,13 @@ var optionsSchema = {
3750
3678
  },
3751
3679
  yAxisScale: {
3752
3680
  type: 'string',
3753
- pattern: schemaUtils_1.getPattern(['linear', 'log']),
3681
+ pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
3754
3682
  description: 'Specify the type of scale that applies to a numerical y-axis.',
3755
3683
  default: 'linear'
3756
3684
  },
3757
3685
  y2AxisScale: {
3758
3686
  type: 'string',
3759
- pattern: schemaUtils_1.getPattern(['linear', 'log']),
3687
+ pattern: (0, schemaUtils_1.getPattern)(['linear', 'log']),
3760
3688
  description: 'Specify the type of scale that applies to a numerical second y-axis.',
3761
3689
  default: 'linear'
3762
3690
  },
@@ -3776,35 +3704,35 @@ var optionsSchema = {
3776
3704
  default: 'show',
3777
3705
  description: 'Specify whether to show the title of the x-axis.',
3778
3706
  enum: ['hide', 'show'],
3779
- pattern: schemaUtils_1.getPattern(['show', 'hide']),
3707
+ pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
3780
3708
  type: 'string'
3781
3709
  },
3782
3710
  yAxisTitleVisibility: {
3783
3711
  default: 'show',
3784
3712
  description: 'Specify whether to show the title of the y-axis.',
3785
3713
  enum: ['hide', 'show'],
3786
- pattern: schemaUtils_1.getPattern(['show', 'hide']),
3714
+ pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
3787
3715
  type: 'string'
3788
3716
  },
3789
3717
  y2AxisTitleVisibility: {
3790
3718
  default: 'show',
3791
3719
  description: 'Specify whether to show the title of the second y-axis.',
3792
3720
  enum: ['hide', 'show'],
3793
- pattern: schemaUtils_1.getPattern(['show', 'hide']),
3721
+ pattern: (0, schemaUtils_1.getPattern)(['show', 'hide']),
3794
3722
  type: 'string'
3795
3723
  },
3796
3724
  yAxisAbbreviation: {
3797
3725
  default: 'auto',
3798
3726
  description: 'Specify whether to abbreviate large y-axis values with the closest International System of Units (SI) prefix.',
3799
3727
  enum: ['auto', 'off'],
3800
- pattern: schemaUtils_1.getPattern(['off', 'auto']),
3728
+ pattern: (0, schemaUtils_1.getPattern)(['off', 'auto']),
3801
3729
  type: 'string'
3802
3730
  },
3803
3731
  y2AxisAbbreviation: {
3804
3732
  default: 'auto',
3805
3733
  description: 'Specify whether to abbreviate large second y-axis values with the closest International System of Units (SI) prefix.',
3806
3734
  enum: ['auto', 'off'],
3807
- pattern: schemaUtils_1.getPattern(['off', 'auto']),
3735
+ pattern: (0, schemaUtils_1.getPattern)(['off', 'auto']),
3808
3736
  type: 'string'
3809
3737
  },
3810
3738
  yAxisMajorTickInterval: {
@@ -3865,7 +3793,7 @@ var optionsSchema = {
3865
3793
  };
3866
3794
  var themes = {
3867
3795
  defaultBackgroundColor: function defaultBackgroundColor(props) {
3868
- return pick_1.default({
3796
+ return (0, pick_1.default)({
3869
3797
  enterprise: {
3870
3798
  dark: variables_1.default.black(props),
3871
3799
  light: variables_1.default.backgroundColor(props)
@@ -3877,7 +3805,7 @@ var themes = {
3877
3805
  var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigAreaColumnLine, AxesChartDataDisplay_1.default, {
3878
3806
  label: AxesChartColorAndStyle_1.default.label,
3879
3807
  layout: [].concat(_toConsumableArray(AxesChartColorAndStyle_1.default.layout), [[{
3880
- label: i18n_1._('Area opacity (0-1)'),
3808
+ label: (0, i18n_1._)('Area opacity (0-1)'),
3881
3809
  option: 'areaOpacity',
3882
3810
  editor: 'editor.slider',
3883
3811
  editorProps: {
@@ -3886,11 +3814,11 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigAreaColumnLine, Axe
3886
3814
  step: 0.01
3887
3815
  }
3888
3816
  }], [{
3889
- label: i18n_1._('Show area outlines'),
3817
+ label: (0, i18n_1._)('Show area outlines'),
3890
3818
  option: 'showLines',
3891
3819
  editor: 'editor.checkbox'
3892
3820
  }], [{
3893
- label: i18n_1._('Line width'),
3821
+ label: (0, i18n_1._)('Line width'),
3894
3822
  option: 'lineWidth',
3895
3823
  editor: 'editor.slider',
3896
3824
  editorProps: {
@@ -3903,7 +3831,7 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigAreaColumnLine, Axe
3903
3831
  return Array.isArray(options.overlayFields) && options.overlayFields.length > 0;
3904
3832
  }
3905
3833
  }], [{
3906
- label: i18n_1._('Annotation colors'),
3834
+ label: (0, i18n_1._)('Annotation colors'),
3907
3835
  option: 'annotationColor',
3908
3836
  editor: 'editor.columnSelector',
3909
3837
  editorProps: {
@@ -3915,48 +3843,48 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigAreaColumnLine, Axe
3915
3843
  }, {
3916
3844
  label: AxesChartLegend_1.default.label,
3917
3845
  layout: [[{
3918
- label: i18n_1._('Legend display'),
3846
+ label: (0, i18n_1._)('Legend display'),
3919
3847
  option: 'legendDisplay',
3920
3848
  editor: 'editor.select',
3921
3849
  editorProps: {
3922
3850
  values: [{
3923
- label: i18n_1._('Right'),
3851
+ label: (0, i18n_1._)('Right'),
3924
3852
  value: 'right'
3925
3853
  }, {
3926
- label: i18n_1._('Left'),
3854
+ label: (0, i18n_1._)('Left'),
3927
3855
  value: 'left'
3928
3856
  }, {
3929
- label: i18n_1._('Top'),
3857
+ label: (0, i18n_1._)('Top'),
3930
3858
  value: 'top'
3931
3859
  }, {
3932
- label: i18n_1._('Bottom'),
3860
+ label: (0, i18n_1._)('Bottom'),
3933
3861
  value: 'bottom'
3934
3862
  }, {
3935
- label: i18n_1._('Off'),
3863
+ label: (0, i18n_1._)('Off'),
3936
3864
  value: 'off'
3937
3865
  }],
3938
- tooltip: i18n_1._('Legend mode must be "Standard" to configure legend display')
3866
+ tooltip: (0, i18n_1._)('Legend mode must be "Standard" to configure legend display')
3939
3867
  },
3940
3868
  isDisabled: function isDisabled(_ref2) {
3941
3869
  var options = _ref2.options;
3942
3870
  return options.legendMode === 'seriesCompare';
3943
3871
  }
3944
3872
  }], [{
3945
- label: i18n_1._('Legend truncation'),
3873
+ label: (0, i18n_1._)('Legend truncation'),
3946
3874
  option: 'legendTruncation',
3947
3875
  editor: 'editor.radioBar',
3948
3876
  editorProps: {
3949
3877
  values: [{
3950
- label: i18n_1._('A...'),
3878
+ label: (0, i18n_1._)('A...'),
3951
3879
  value: 'ellipsisEnd'
3952
3880
  }, {
3953
- label: i18n_1._('A...Z'),
3881
+ label: (0, i18n_1._)('A...Z'),
3954
3882
  value: 'ellipsisMiddle'
3955
3883
  }, {
3956
- label: i18n_1._('...Z'),
3884
+ label: (0, i18n_1._)('...Z'),
3957
3885
  value: 'ellipsisStart'
3958
3886
  }, {
3959
- label: i18n_1._('Off'),
3887
+ label: (0, i18n_1._)('Off'),
3960
3888
  value: 'ellipsisOff'
3961
3889
  }]
3962
3890
  },
@@ -3965,15 +3893,15 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigAreaColumnLine, Axe
3965
3893
  return options.legendDisplay === 'left' || options.legendDisplay === 'right' || options.legendDisplay === 'top' || options.legendDisplay === 'bottom' || options.legendDisplay === undefined;
3966
3894
  }
3967
3895
  }], [{
3968
- label: i18n_1._('Legend mode'),
3896
+ label: (0, i18n_1._)('Legend mode'),
3969
3897
  option: 'legendMode',
3970
3898
  editor: 'editor.radioBar',
3971
3899
  editorProps: {
3972
3900
  values: [{
3973
- label: i18n_1._('Standard'),
3901
+ label: (0, i18n_1._)('Standard'),
3974
3902
  value: 'standard'
3975
3903
  }, {
3976
- label: i18n_1._('Compare series'),
3904
+ label: (0, i18n_1._)('Compare series'),
3977
3905
  value: 'seriesCompare'
3978
3906
  }]
3979
3907
  },
@@ -3994,7 +3922,7 @@ var config = {
3994
3922
  /**
3995
3923
  * viz name
3996
3924
  */
3997
- name: i18n_1._('Area'),
3925
+ name: (0, i18n_1._)('Area'),
3998
3926
  category: VizCategory_1.VizCategory.TRENDS,
3999
3927
  /**
4000
3928
  * viz icon
@@ -4026,143 +3954,183 @@ var config = {
4026
3954
  supports: [VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS, VizBehavior_1.VizBehavior.PLACEHOLDER, VizBehavior_1.VizBehavior.EVENTS],
4027
3955
  themes: themes
4028
3956
  };
4029
- exports.default = configUtils_1.enhanceConfig(config);
3957
+ exports.default = (0, configUtils_1.enhanceConfig)(config);
4030
3958
 
4031
3959
  /***/ }),
4032
- /* 175 */
3960
+ /* 145 */,
3961
+ /* 146 */,
3962
+ /* 147 */,
3963
+ /* 148 */,
3964
+ /* 149 */,
3965
+ /* 150 */,
3966
+ /* 151 */,
3967
+ /* 152 */,
3968
+ /* 153 */,
3969
+ /* 154 */,
3970
+ /* 155 */,
3971
+ /* 156 */,
3972
+ /* 157 */,
3973
+ /* 158 */,
3974
+ /* 159 */,
3975
+ /* 160 */,
3976
+ /* 161 */,
3977
+ /* 162 */,
3978
+ /* 163 */,
3979
+ /* 164 */,
3980
+ /* 165 */,
3981
+ /* 166 */,
3982
+ /* 167 */,
3983
+ /* 168 */,
3984
+ /* 169 */,
3985
+ /* 170 */,
3986
+ /* 171 */,
3987
+ /* 172 */,
3988
+ /* 173 */,
3989
+ /* 174 */,
3990
+ /* 175 */,
3991
+ /* 176 */,
3992
+ /* 177 */
4033
3993
  /***/ (function(module, exports, __webpack_require__) {
4034
3994
 
4035
3995
  "use strict";
4036
3996
 
4037
3997
 
3998
+ var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
3999
+ if (k2 === undefined) k2 = k;
4000
+ var desc = Object.getOwnPropertyDescriptor(m, k);
4001
+ if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
4002
+ desc = {
4003
+ enumerable: true,
4004
+ get: function get() {
4005
+ return m[k];
4006
+ }
4007
+ };
4008
+ }
4009
+ Object.defineProperty(o, k2, desc);
4010
+ } : function (o, m, k, k2) {
4011
+ if (k2 === undefined) k2 = k;
4012
+ o[k2] = m[k];
4013
+ });
4014
+ var __exportStar = this && this.__exportStar || function (m, exports) {
4015
+ for (var p in m) {
4016
+ if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
4017
+ }
4018
+ };
4038
4019
  Object.defineProperty(exports, "__esModule", {
4039
4020
  value: true
4040
4021
  });
4041
- exports.convertToAreaSCProperties = exports.mapToOldKey = exports.convertToStringValues = exports.areaOptionValuesSCMapping = void 0;
4042
- var lodash_1 = __webpack_require__(3);
4043
- var propUtils_1 = __webpack_require__(28);
4044
- var chartingUtils_1 = __webpack_require__(55);
4045
- // map for key names which are either new or not present in SimpleXML options mapping
4046
- var areaOptionsSCMapping = {
4047
- yAxisMajorTickInterval: 'yAxisMajorUnit',
4048
- yAxisLabelVisibility: 'yAxisMajorLabelVisibility',
4049
- xAxisLabelRotation: 'xAxisMajorLabelRotation',
4050
- xAxisLabelVisibility: 'xAxisMajorLabelVisibility',
4051
- y2AxisLabelVisibility: 'y2AxisMajorLabelVisibility',
4052
- y2AxisMajorTickInterval: 'y2AxisMajorUnit',
4053
- showRoundedY2AxisLabels: 'roundY2AxisLabelsToInteger',
4054
- showXMajorGridLines: 'showMajorXGridLines',
4055
- showYMajorGridLines: 'showMajorYGridLines',
4056
- showYMinorGridLines: 'showMinorYGridLines',
4057
- showY2MajorGridLines: 'showMajorY2GridLines',
4058
- showY2MinorGridLines: 'showMinorY2GridLines',
4059
- showYAxisWithZero: 'yAxisIncludeZero',
4060
- showY2AxisWithZero: 'y2AxisIncludeZero',
4061
- showYAxisExtendedRange: 'yAxisExtendsAxisRange',
4062
- showSplitSeries: 'splitSeries',
4063
- showIndependentYRanges: 'allowIndependentYRanges',
4064
- showOverlayY2Axis: 'enableY2Axis',
4065
- dataValuesDisplay: 'showDataLabels',
4066
- legendDisplay: 'legendPlacement',
4067
- legendTruncation: 'legendLabelOverflowMode',
4068
- resultLimit: 'resultTruncationLimit',
4069
- seriesColorsByField: 'fieldColors',
4070
- nullValueDisplay: 'nullValueMode',
4071
- lineDashStylesByField: 'fieldDashStyles',
4072
- xAxisLineVisibility: 'xAxisVisibility',
4073
- yAxisLineVisibility: 'yAxisVisibility',
4074
- y2AxisLineVisibility: 'y2AxisVisibility',
4075
- areaOpacity: 'areaFillOpacity'
4076
- };
4077
- // key value mapping of what options (and their corresponding values) which we expose in config.ts to property values SC understands
4078
- exports.areaOptionValuesSCMapping = {
4079
- xAxisTitleVisibility: {
4080
- show: 'visible',
4081
- hide: 'collapsed'
4082
- },
4083
- yAxisTitleVisibility: {
4084
- show: 'visible',
4085
- hide: 'collapsed'
4086
- },
4087
- y2AxisTitleVisibility: {
4088
- show: 'visible',
4089
- hide: 'collapsed'
4090
- },
4091
- yAxisAbbreviation: {
4092
- off: 'none'
4093
- },
4094
- y2AxisAbbreviation: {
4095
- off: 'none'
4096
- },
4097
- stackMode: {
4098
- auto: 'default'
4099
- },
4100
- showDataLabels: {
4101
- off: 'none'
4102
- },
4103
- legendPlacement: {
4104
- off: 'none'
4105
- },
4106
- legendLabelOverflowMode: {
4107
- ellipsisOff: 'ellipsisNone'
4022
+ exports.default = void 0;
4023
+ __exportStar(__webpack_require__(143), exports);
4024
+ var Area_1 = __webpack_require__(143);
4025
+ Object.defineProperty(exports, "default", {
4026
+ enumerable: true,
4027
+ get: function get() {
4028
+ return Area_1.default;
4108
4029
  }
4109
- // lineMarkerStyle: {
4110
- // filled: 'normal',
4111
- // outlined: 'hollow',
4112
- // },
4113
- };
4114
- // /**
4115
- // * Helper function to convert values for marker options
4116
- // * @method convertMarkerOptions
4117
- // * @param {Object} originalOptions
4118
- // * @returns {Object}
4119
- // */
4120
- // export const convertMarkerOptions = (originalOptions: AreaOptions): AreaOptions => {
4121
- // const convertedOptions: AreaOptions = { showMarkers: false };
4122
- // if (values(areaOptionValuesSCMapping.lineMarkerStyle).includes(originalOptions.lineMarkerStyle)) {
4123
- // convertedOptions.showMarkers = true;
4124
- // return { ...originalOptions, ...convertedOptions };
4125
- // }
4126
- // return omit({ ...originalOptions, ...convertedOptions }, ['lineMarkerStyle']);
4127
- // };
4128
- /**
4129
- * Helper method to convert option which contains object literal values (e.g. arrays, objects)
4130
- * to strings as SC can only accept their stringified equivalents
4131
- * @method convertToStringValues
4132
- * @param {Object} options
4133
- * @returns {Object}
4134
- */
4135
- var convertToStringValues = function convertToStringValues(options) {
4136
- var updatedOptions = propUtils_1.convertPropsToString({
4137
- vizProps: options,
4138
- propNames: ['seriesColors', 'fieldColors', 'legendLabels', 'fieldDashStyles']
4139
- });
4140
- return Object.assign(Object.assign({}, options), updatedOptions);
4141
- };
4142
- exports.convertToStringValues = convertToStringValues;
4143
- /**
4144
- * Helper method to update the option names which can be mapped to SimpleXML options or
4145
- * can be used directly with SC if don't have a 1-1 mapping in SimpleXML
4146
- * @method mapToOldKey
4147
- * @param {Object} options
4148
- * @returns {Object}
4149
- */
4150
- var mapToOldKey = function mapToOldKey(options) {
4151
- return lodash_1.mapKeys(options, function (val, key) {
4152
- return areaOptionsSCMapping[key] ? areaOptionsSCMapping[key] : key;
4153
- });
4154
- };
4155
- exports.mapToOldKey = mapToOldKey;
4030
+ });
4031
+
4032
+ /***/ }),
4033
+ /* 178 */
4034
+ /***/ (function(module, exports, __webpack_require__) {
4035
+
4036
+ "use strict";
4037
+
4038
+
4039
+ Object.defineProperty(exports, "__esModule", {
4040
+ value: true
4041
+ });
4042
+ exports.convertToAreaSCProperties = exports.transformOptions = void 0;
4043
+ var propUtils_1 = __webpack_require__(29);
4044
+ var simpleXMLOptions_1 = __webpack_require__(70);
4045
+ var config_1 = __webpack_require__(144);
4156
4046
  /**
4157
- * Chained helper for mapping the option properties (and values) we expose in config.ts into property values that splunk-charting accepts
4047
+ * Helper for mapping the option properties (and values) we expose in config.ts into property values that splunk-charting accepts
4158
4048
  * This is for options that has new key name and can not directly be mapped with SimpleXML or
4159
4049
  * don't have a 1-1 mapping in SimpleXML (i.e. a straightforward name mapping where values are preserved)
4160
4050
  * @method convertToAreaSCProperties
4161
4051
  * @param {Object} originalOptions
4162
4052
  * @returns {Object}
4163
4053
  */
4054
+ var transformOptions = function transformOptions(originalOptions) {
4055
+ var returnOptions = {};
4056
+ Object.keys(config_1.default.optionsSchema).forEach(function (key) {
4057
+ if (Object.prototype.hasOwnProperty.call(originalOptions, key)) {
4058
+ returnOptions[key] = originalOptions[key];
4059
+ }
4060
+ });
4061
+ return Object.assign(Object.assign({}, (0, simpleXMLOptions_1.getSimpleXMLOptionsForProps)((0, exports.convertToAreaSCProperties)(returnOptions))), {
4062
+ chart: 'area'
4063
+ });
4064
+ };
4065
+ exports.transformOptions = transformOptions;
4164
4066
  var convertToAreaSCProperties = function convertToAreaSCProperties(originalOptions) {
4165
- return lodash_1.chain(exports.mapToOldKey(originalOptions)).thru(chartingUtils_1.mapToValues(exports.areaOptionValuesSCMapping)).thru(chartingUtils_1.convertY2AxisOptions).thru(chartingUtils_1.convertOverlayFields).thru(exports.convertToStringValues).value();
4067
+ // map for key names which are either new or not present in SimpleXML options mapping
4068
+ var areaOptionsSCMapping = {
4069
+ yAxisMajorTickInterval: 'yAxisMajorUnit',
4070
+ yAxisLabelVisibility: 'yAxisMajorLabelVisibility',
4071
+ xAxisLabelRotation: 'xAxisMajorLabelRotation',
4072
+ xAxisLabelVisibility: 'xAxisMajorLabelVisibility',
4073
+ y2AxisLabelVisibility: 'y2AxisMajorLabelVisibility',
4074
+ y2AxisMajorTickInterval: 'y2AxisMajorUnit',
4075
+ showRoundedY2AxisLabels: 'roundY2AxisLabelsToInteger',
4076
+ showXMajorGridLines: 'showMajorXGridLines',
4077
+ showYMajorGridLines: 'showMajorYGridLines',
4078
+ showYMinorGridLines: 'showMinorYGridLines',
4079
+ showY2MajorGridLines: 'showMajorY2GridLines',
4080
+ showY2MinorGridLines: 'showMinorY2GridLines',
4081
+ showYAxisWithZero: 'yAxisIncludeZero',
4082
+ showY2AxisWithZero: 'y2AxisIncludeZero',
4083
+ showYAxisExtendedRange: 'yAxisExtendsAxisRange',
4084
+ showSplitSeries: 'splitSeries',
4085
+ showIndependentYRanges: 'allowIndependentYRanges',
4086
+ showOverlayY2Axis: 'enableY2Axis',
4087
+ dataValuesDisplay: 'showDataLabels',
4088
+ legendDisplay: 'legendPlacement',
4089
+ legendTruncation: 'legendLabelOverflowMode',
4090
+ resultLimit: 'resultTruncationLimit',
4091
+ seriesColorsByField: 'fieldColors',
4092
+ nullValueDisplay: 'nullValueMode',
4093
+ lineDashStylesByField: 'fieldDashStyles',
4094
+ xAxisLineVisibility: 'xAxisVisibility',
4095
+ yAxisLineVisibility: 'yAxisVisibility',
4096
+ y2AxisLineVisibility: 'y2AxisVisibility',
4097
+ areaOpacity: 'areaFillOpacity'
4098
+ };
4099
+ // key value mapping of what options (and their corresponding values) which we expose in config.ts to property values SC understands
4100
+ var areaOptionValuesSCMapping = {
4101
+ xAxisTitleVisibility: {
4102
+ show: 'visible',
4103
+ hide: 'collapsed'
4104
+ },
4105
+ yAxisTitleVisibility: {
4106
+ show: 'visible',
4107
+ hide: 'collapsed'
4108
+ },
4109
+ y2AxisTitleVisibility: {
4110
+ show: 'visible',
4111
+ hide: 'collapsed'
4112
+ },
4113
+ yAxisAbbreviation: {
4114
+ off: 'none'
4115
+ },
4116
+ y2AxisAbbreviation: {
4117
+ off: 'none'
4118
+ },
4119
+ stackMode: {
4120
+ auto: 'default'
4121
+ },
4122
+ showDataLabels: {
4123
+ off: 'none'
4124
+ },
4125
+ legendPlacement: {
4126
+ off: 'none'
4127
+ },
4128
+ legendLabelOverflowMode: {
4129
+ ellipsisOff: 'ellipsisNone'
4130
+ }
4131
+ };
4132
+ var stingValues = ['seriesColors', 'fieldColors', 'legendLabels', 'fieldDashStyles'];
4133
+ return (0, propUtils_1.convertToSCProperties)(originalOptions, areaOptionsSCMapping, areaOptionValuesSCMapping, stingValues);
4166
4134
  };
4167
4135
  exports.convertToAreaSCProperties = convertToAreaSCProperties;
4168
4136