@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
@@ -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 = 467);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 470);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -116,57 +116,6 @@ module.exports = require("@splunk/visualizations-shared/Message");
116
116
  /***/ 100:
117
117
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
118
118
 
119
- "use strict";
120
- __webpack_require__.r(__webpack_exports__);
121
- /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicMajorColorEditor", function() { return getDynamicMajorColorEditor; });
122
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
123
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
124
- /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22);
125
- /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
126
-
127
-
128
- var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
129
- var defaultContext = _ref.defaultContext,
130
- defaultPalettesConfig = _ref.defaultPalettesConfig;
131
- return {
132
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major value'),
133
- option: 'majorColor',
134
- context: 'majorColorEditorConfig',
135
- editor: 'editor.dynamicColor',
136
- showEditor: function showEditor(_ref2) {
137
- var options = _ref2.options;
138
- return Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.majorColor);
139
- },
140
- editorProps: {
141
- labelPosition: 'top',
142
- flyoutTitle: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Dynamic coloring: major value'),
143
- formatters: [{
144
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Ranges'),
145
- value: 'rangeValue',
146
- defaults: {
147
- majorValue: defaultContext.majorColorConfig
148
- }
149
- }, {
150
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Matches'),
151
- value: 'matchValue',
152
- defaults: {
153
- majorValue: defaultContext.majorColorMatchConfig
154
- }
155
- }],
156
- dataSelectors: [{
157
- label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major value'),
158
- value: 'majorValue'
159
- }],
160
- defaultPalettesConfig: defaultPalettesConfig
161
- }
162
- };
163
- };
164
-
165
- /***/ }),
166
-
167
- /***/ 101:
168
- /***/ (function(module, __webpack_exports__, __webpack_require__) {
169
-
170
119
  "use strict";
171
120
  __webpack_require__.r(__webpack_exports__);
172
121
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicTrendColorEditor", function() { return getDynamicTrendColorEditor; });
@@ -209,7 +158,7 @@ var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
209
158
 
210
159
  /***/ }),
211
160
 
212
- /***/ 102:
161
+ /***/ 101:
213
162
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
214
163
 
215
164
  "use strict";
@@ -264,7 +213,7 @@ var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_
264
213
 
265
214
  /***/ }),
266
215
 
267
- /***/ 103:
216
+ /***/ 102:
268
217
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
269
218
 
270
219
  "use strict";
@@ -315,7 +264,7 @@ var StaticMajorAndTrendLayout = [[{
315
264
 
316
265
  /***/ }),
317
266
 
318
- /***/ 104:
267
+ /***/ 103:
319
268
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
320
269
 
321
270
  "use strict";
@@ -339,7 +288,7 @@ var StaticMajorColorEditor = {
339
288
 
340
289
  /***/ }),
341
290
 
342
- /***/ 105:
291
+ /***/ 104:
343
292
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
344
293
 
345
294
  "use strict";
@@ -367,7 +316,7 @@ var StaticTrendColorEditor = {
367
316
 
368
317
  /***/ }),
369
318
 
370
- /***/ 106:
319
+ /***/ 105:
371
320
  /***/ (function(module, exports, __webpack_require__) {
372
321
 
373
322
  "use strict";
@@ -383,7 +332,7 @@ var FeatureFlagContext_1 = __webpack_require__(21);
383
332
  var layoutUtils_1 = __webpack_require__(58);
384
333
  /* eslint-disable react-hooks/rules-of-hooks */
385
334
  exports.TrellisEditorConfig = [[{
386
- label: i18n_1._('Trellis layout'),
335
+ label: (0, i18n_1._)('Trellis layout'),
387
336
  option: 'splitByLayout',
388
337
  editor: 'editor.toggle',
389
338
  showEditor: function showEditor() {
@@ -392,7 +341,7 @@ exports.TrellisEditorConfig = [[{
392
341
  return isTrellisFeatureFlagOn;
393
342
  }
394
343
  }], [{
395
- label: i18n_1._('Split by'),
344
+ label: (0, i18n_1._)('Split by'),
396
345
  option: 'trellisSplitBy',
397
346
  editor: 'editor.trellisSplitBy',
398
347
  editorProps: {
@@ -405,13 +354,13 @@ exports.TrellisEditorConfig = [[{
405
354
  return isTrellisFeatureFlagOn && options.splitByLayout === layoutUtils_1.LAYOUT_TYPE.Trellis;
406
355
  }
407
356
  }], [{
408
- label: i18n_1._('Number of columns'),
357
+ label: (0, i18n_1._)('Number of columns'),
409
358
  option: 'trellisColumns',
410
359
  editor: 'editor.number',
411
360
  editorProps: {
412
361
  min: 1
413
362
  },
414
- placeholder: i18n_1._('Auto'),
363
+ placeholder: (0, i18n_1._)('Auto'),
415
364
  showEditor: function showEditor(_ref2) {
416
365
  var options = _ref2.options;
417
366
  var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
@@ -419,7 +368,7 @@ exports.TrellisEditorConfig = [[{
419
368
  return isTrellisFeatureFlagOn && options.splitByLayout === layoutUtils_1.LAYOUT_TYPE.Trellis;
420
369
  }
421
370
  }], [{
422
- label: i18n_1._('Min column width'),
371
+ label: (0, i18n_1._)('Min column width'),
423
372
  option: 'trellisMinColumnWidth',
424
373
  editor: 'editor.number',
425
374
  editorProps: {
@@ -432,7 +381,7 @@ exports.TrellisEditorConfig = [[{
432
381
  return isTrellisFeatureFlagOn && options.splitByLayout === layoutUtils_1.LAYOUT_TYPE.Trellis;
433
382
  }
434
383
  }, {
435
- label: i18n_1._('Row height'),
384
+ label: (0, i18n_1._)('Row height'),
436
385
  option: 'trellisRowHeight',
437
386
  editor: 'editor.number',
438
387
  editorProps: {
@@ -445,7 +394,7 @@ exports.TrellisEditorConfig = [[{
445
394
  return isTrellisFeatureFlagOn && options.splitByLayout === layoutUtils_1.LAYOUT_TYPE.Trellis;
446
395
  }
447
396
  }], [{
448
- label: i18n_1._('Max number of components per page'),
397
+ label: (0, i18n_1._)('Max number of components per page'),
449
398
  option: 'trellisPageCount',
450
399
  editor: 'editor.number',
451
400
  editorProps: {
@@ -459,7 +408,7 @@ exports.TrellisEditorConfig = [[{
459
408
  }
460
409
  }]];
461
410
  exports.TrellisBackgroundColorEditor = {
462
- label: i18n_1._('Trellis background'),
411
+ label: (0, i18n_1._)('Trellis background'),
463
412
  option: 'trellisBackgroundColor',
464
413
  editor: 'editor.color',
465
414
  showEditor: function showEditor(_ref6) {
@@ -472,7 +421,7 @@ exports.TrellisBackgroundColorEditor = {
472
421
 
473
422
  /***/ }),
474
423
 
475
- /***/ 107:
424
+ /***/ 106:
476
425
  /***/ (function(module, exports, __webpack_require__) {
477
426
 
478
427
  "use strict";
@@ -496,19 +445,19 @@ var React = __webpack_require__(1);
496
445
  var react_1 = __webpack_require__(1);
497
446
  var lodash_1 = __webpack_require__(3);
498
447
  var styled_components_1 = __webpack_require__(4);
499
- var Paginator_1 = __webpack_require__(92);
448
+ var Paginator_1 = __webpack_require__(93);
500
449
  var i18n_1 = __webpack_require__(2);
501
- var themes_1 = __webpack_require__(59);
450
+ var themes_1 = __webpack_require__(60);
502
451
  var useSplunkTheme_1 = __webpack_require__(57);
503
452
  var FeatureFlagContext_1 = __webpack_require__(21);
504
453
  var SizeAwareWrapper_1 = __webpack_require__(19);
505
454
  var style_1 = __webpack_require__(14);
506
455
  var Message_1 = __webpack_require__(10);
507
- var trellisUtils_1 = __webpack_require__(80);
508
- var hocUtils_1 = __webpack_require__(26);
509
- var JSONSchemaUtils_1 = __webpack_require__(27);
510
- var Options_1 = __webpack_require__(29);
511
- var trellisUtils_2 = __webpack_require__(108);
456
+ var trellisUtils_1 = __webpack_require__(83);
457
+ var hocUtils_1 = __webpack_require__(27);
458
+ var JSONSchemaUtils_1 = __webpack_require__(28);
459
+ var Options_1 = __webpack_require__(30);
460
+ var trellisUtils_2 = __webpack_require__(107);
512
461
  var layoutUtils_1 = __webpack_require__(58);
513
462
  var TrellisContainer = styled_components_1.default.div.withConfig({
514
463
  displayName: "withTrellis__TrellisContainer",
@@ -516,7 +465,7 @@ var TrellisContainer = styled_components_1.default.div.withConfig({
516
465
  })(["overflow:hidden;display:flex;flex-direction:column;background-color:", ";", ";> [data-test='paginator']{align-self:flex-end;margin-bottom:10px;}"], function (props) {
517
466
  return props.backgroundColor;
518
467
  }, function (props) {
519
- return style_1.toDimension(lodash_1.pick(props, ['width', 'height']));
468
+ return (0, style_1.toDimension)((0, lodash_1.pick)(props, ['width', 'height']));
520
469
  });
521
470
  var TrellisContainerGrid = styled_components_1.default.div.withConfig({
522
471
  displayName: "withTrellis__TrellisContainerGrid",
@@ -535,7 +484,7 @@ var showErrorMessage = function showErrorMessage(errorCode, width, height) {
535
484
  return React.createElement(Message_1.default, {
536
485
  width: width,
537
486
  height: height,
538
- message: i18n_1._('Select a valid trellis split by field'),
487
+ message: (0, i18n_1._)('Select a valid trellis split by field'),
539
488
  level: "info"
540
489
  });
541
490
  }
@@ -543,14 +492,14 @@ var showErrorMessage = function showErrorMessage(errorCode, width, height) {
543
492
  return React.createElement(Message_1.default, {
544
493
  width: width,
545
494
  height: height,
546
- message: i18n_1._('Unknown data split mode'),
495
+ message: (0, i18n_1._)('Unknown data split mode'),
547
496
  level: "info"
548
497
  });
549
498
  }
550
499
  return React.createElement(Message_1.default, {
551
500
  width: width,
552
501
  height: height,
553
- message: i18n_1._('Error render in trellis'),
502
+ message: (0, i18n_1._)('Error render in trellis'),
554
503
  level: "info"
555
504
  });
556
505
  };
@@ -561,8 +510,8 @@ var withTrellis = function withTrellis(Viz) {
561
510
  height = opts.height,
562
511
  width = opts.width,
563
512
  otherProps = __rest(opts, ["options", "height", "width"]);
564
- var defaultOptions = JSONSchemaUtils_1.pickFieldFromJSONSchema(Viz.config.optionsSchema, 'default');
565
- var mergedOptions = hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions);
513
+ var defaultOptions = (0, JSONSchemaUtils_1.pickFieldFromJSONSchema)(Viz.config.optionsSchema, 'default');
514
+ var mergedOptions = (0, hocUtils_1.deepMergeWithArrayPrimitiveOverrides)({}, options, defaultOptions);
566
515
  var trellisColumns = mergedOptions.trellisColumns,
567
516
  trellisPageCount = mergedOptions.trellisPageCount,
568
517
  trellisMinColumnWidth = mergedOptions.trellisMinColumnWidth,
@@ -573,28 +522,28 @@ var withTrellis = function withTrellis(Viz) {
573
522
  var pageCount = +trellisPageCount > 0 ? +trellisPageCount : defaultOptions.trellisPageCount;
574
523
  var colMinWidth = trellisMinColumnWidth > 0 ? trellisMinColumnWidth : defaultOptions.trellisMinColumnWidth;
575
524
  var rowHeight = trellisRowHeight > 0 ? trellisRowHeight : defaultOptions.trellisRowHeight;
576
- var _react_1$useState = react_1.useState(1),
577
- _react_1$useState2 = _slicedToArray(_react_1$useState, 2),
578
- pageNum = _react_1$useState2[0],
579
- setPageNum = _react_1$useState2[1];
580
- var _react_1$useState3 = react_1.useState(null),
581
- _react_1$useState4 = _slicedToArray(_react_1$useState3, 2),
582
- pagedData = _react_1$useState4[0],
583
- setPagedData = _react_1$useState4[1];
525
+ var _ref = (0, react_1.useState)(1),
526
+ _ref2 = _slicedToArray(_ref, 2),
527
+ pageNum = _ref2[0],
528
+ setPageNum = _ref2[1];
529
+ var _ref3 = (0, react_1.useState)(null),
530
+ _ref4 = _slicedToArray(_ref3, 2),
531
+ pagedData = _ref4[0],
532
+ setPagedData = _ref4[1];
584
533
  var splitByKeys = [];
585
534
  var totalPages = 0;
586
535
  var showPaginator = false;
587
536
  var dataSources = otherProps.dataSources;
588
537
  var theme = {
589
- splunkThemeV1: useSplunkTheme_1.default()
538
+ splunkThemeV1: (0, useSplunkTheme_1.default)()
590
539
  };
591
- var _themes_1$getSettings = themes_1.getSettingsFromThemedProps({
540
+ var _ref5 = (0, themes_1.getSettingsFromThemedProps)({
592
541
  theme: theme
593
542
  }),
594
- currentThemeFamily = _themes_1$getSettings.family,
595
- currentThemeColorScheme = _themes_1$getSettings.colorScheme,
596
- currentThemeDensity = _themes_1$getSettings.density;
597
- var trellisBackgroundColor = react_1.useMemo(function () {
543
+ currentThemeFamily = _ref5.family,
544
+ currentThemeColorScheme = _ref5.colorScheme,
545
+ currentThemeDensity = _ref5.density;
546
+ var trellisBackgroundColor = (0, react_1.useMemo)(function () {
598
547
  var themeFunc = function themeFunc(themeVar) {
599
548
  var _a, _b;
600
549
  return (_b = (_a = Viz.config.themes)[themeVar]) === null || _b === void 0 ? void 0 : _b.call(_a, {
@@ -611,8 +560,8 @@ var withTrellis = function withTrellis(Viz) {
611
560
  }, {}, themeFunc);
612
561
  return evaluated.trellisBackgroundColor;
613
562
  }, [mergedOptions.trellisBackgroundColor, currentThemeFamily, currentThemeColorScheme, currentThemeDensity]);
614
- var columns = lodash_1.get(dataSources, 'primary.data.columns', undefined);
615
- var fields = lodash_1.get(dataSources, 'primary.data.fields', undefined);
563
+ var columns = (0, lodash_1.get)(dataSources, 'primary.data.columns', undefined);
564
+ var fields = (0, lodash_1.get)(dataSources, 'primary.data.fields', undefined);
616
565
  var noColumns = columns === undefined;
617
566
  var noFields = fields === undefined;
618
567
  var updateDataDisplay = function updateDataDisplay(currPage) {
@@ -625,15 +574,15 @@ var withTrellis = function withTrellis(Viz) {
625
574
  setPagedData(paged);
626
575
  }
627
576
  };
628
- react_1.useEffect(function () {
577
+ (0, react_1.useEffect)(function () {
629
578
  setPageNum(1);
630
579
  updateDataDisplay(1);
631
580
  }, [pageCount, trellisSplitBy]);
632
- react_1.useEffect(function () {
581
+ (0, react_1.useEffect)(function () {
633
582
  updateDataDisplay(pageNum);
634
583
  }, [columns, fields, trellisSplitBy, pageNum, splitByLayout]);
635
- var handlePageChange = react_1.useCallback(function (event, _ref) {
636
- var page = _ref.page;
584
+ var handlePageChange = (0, react_1.useCallback)(function (event, _ref6) {
585
+ var page = _ref6.page;
637
586
  setPageNum(page);
638
587
  }, [pageNum, pagedData]);
639
588
  var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
@@ -646,7 +595,7 @@ var withTrellis = function withTrellis(Viz) {
646
595
  return React.createElement(Message_1.default, {
647
596
  width: width,
648
597
  height: height,
649
- message: i18n_1._('Loading'),
598
+ message: (0, i18n_1._)('Loading'),
650
599
  level: "info"
651
600
  });
652
601
  }
@@ -654,11 +603,11 @@ var withTrellis = function withTrellis(Viz) {
654
603
  // The default value will be the first value in the individual splitBy field list or 'aggregations'
655
604
  var currTrellisSplitBy = trellisSplitBy;
656
605
  if (!trellisSplitBy || trellisSplitBy.length === 0) {
657
- var splitByPossibleFields = trellisUtils_1.getAllPossibleSplitByFields(fields);
606
+ var splitByPossibleFields = (0, trellisUtils_1.getAllPossibleSplitByFields)(fields);
658
607
  currTrellisSplitBy = splitByPossibleFields.fields && splitByPossibleFields.fields.length ? splitByPossibleFields.fields[0] : trellisUtils_2.AGGREGATIONS;
659
608
  }
660
- var splitMode = trellisUtils_1.getTrellisDataSplitterMode(fields);
661
- var dataSplitResult = trellisUtils_2.getTrellisDataSourcesBySplitMode(splitMode, dataSources, currTrellisSplitBy);
609
+ var splitMode = (0, trellisUtils_1.getTrellisDataSplitterMode)(fields);
610
+ var dataSplitResult = (0, trellisUtils_2.getTrellisDataSourcesBySplitMode)(splitMode, dataSources, currTrellisSplitBy);
662
611
  var modifiedDataSourceBySplitBy = dataSplitResult === null || dataSplitResult === void 0 ? void 0 : dataSplitResult.splitDataSources;
663
612
  var dataSplitErrorCode = dataSplitResult === null || dataSplitResult === void 0 ? void 0 : dataSplitResult.errorCode;
664
613
  if (!modifiedDataSourceBySplitBy || Object.keys(modifiedDataSourceBySplitBy).length === 0 || dataSplitErrorCode) {
@@ -684,10 +633,10 @@ var withTrellis = function withTrellis(Viz) {
684
633
  className: "child",
685
634
  "data-test": "trellis-child",
686
635
  key: "div-child-".concat(idx.toString())
687
- }, React.createElement(SizeAwareWrapper_1.default, null, function (_ref2) {
688
- var childWidth = _ref2.childWidth,
689
- _ref2$childHeight = _ref2.childHeight,
690
- childHeight = _ref2$childHeight === void 0 ? rowHeight : _ref2$childHeight;
636
+ }, React.createElement(SizeAwareWrapper_1.default, null, function (_ref7) {
637
+ var childWidth = _ref7.childWidth,
638
+ _ref7$childHeight = _ref7.childHeight,
639
+ childHeight = _ref7$childHeight === void 0 ? rowHeight : _ref7$childHeight;
691
640
  return React.createElement(Viz, Object.assign({}, otherProps, {
692
641
  trellisKey: splitByKey,
693
642
  trellisSplitBy: currTrellisSplitBy,
@@ -716,7 +665,7 @@ exports.default = withTrellis;
716
665
 
717
666
  /***/ }),
718
667
 
719
- /***/ 108:
668
+ /***/ 107:
720
669
  /***/ (function(module, exports, __webpack_require__) {
721
670
 
722
671
  "use strict";
@@ -728,7 +677,7 @@ Object.defineProperty(exports, "__esModule", {
728
677
  });
729
678
  exports.getTrellisDataSourcesBySplitMode = exports.dataSourcesSplitByModeStatsorUnknown = exports.dataSourcesSplitByModeChart = exports.dataSourcesSplitByModeTimechart = exports.dataSourcesSplitByAggregationsStats = exports.dataSourcesSplitByAggregationsTimechartAndChart = exports.dataSourcesSplitByAggregationsUnknown = exports.AGGREGATIONS = void 0;
730
679
  var lodash_1 = __webpack_require__(3);
731
- var trellisUtils_1 = __webpack_require__(80);
680
+ var trellisUtils_1 = __webpack_require__(83);
732
681
  exports.AGGREGATIONS = 'aggregations';
733
682
  /**
734
683
  * There can be certain SPL cmds that can produce dataSource without a specific field meta info (like group_by_rank, split_by_field etc),
@@ -749,7 +698,7 @@ var dataSourcesSplitByAggregationsUnknown = function dataSourcesSplitByAggregati
749
698
  for (var i = 0; i < fields.length; i += 1) {
750
699
  var fieldName = fields[i].name;
751
700
  if (!(fieldName === null || fieldName === void 0 ? void 0 : fieldName.startsWith('_'))) {
752
- splitDataSources[fieldName] = lodash_1.cloneDeep(lodash_1.omit(dataSource, ['primary.data.fields', 'primary.data.columns']));
701
+ splitDataSources[fieldName] = (0, lodash_1.cloneDeep)((0, lodash_1.omit)(dataSource, ['primary.data.fields', 'primary.data.columns']));
753
702
  splitDataSources[fieldName].primary.data.fields = [fields[i]];
754
703
  splitDataSources[fieldName].primary.data.columns = [columns[i]];
755
704
  }
@@ -771,12 +720,12 @@ var dataSourcesSplitByAggregationsTimechartAndChart = function dataSourcesSplitB
771
720
  var splitByFields = [];
772
721
  var errorCode = null;
773
722
  if (typeof fields[0] !== 'string') {
774
- splitByFields = trellisUtils_1.extractDataSourceAggregationKeysChart(fields);
723
+ splitByFields = (0, trellisUtils_1.extractDataSourceAggregationKeysChart)(fields);
775
724
  }
776
725
  if (splitByFields && splitByFields.length > 0) {
777
726
  splitDataSources = {};
778
727
  splitByFields.forEach(function (splitByField) {
779
- splitDataSources[splitByField] = lodash_1.cloneDeep(lodash_1.omit(dataSource, ['primary.data.fields', 'primary.data.columns']));
728
+ splitDataSources[splitByField] = (0, lodash_1.cloneDeep)((0, lodash_1.omit)(dataSource, ['primary.data.fields', 'primary.data.columns']));
780
729
  splitDataSources[splitByField].primary.data.fields = [fields[0]];
781
730
  splitDataSources[splitByField].primary.data.columns = [columns[0]];
782
731
  fields.forEach(function (field, idx) {
@@ -795,7 +744,7 @@ var dataSourcesSplitByAggregationsTimechartAndChart = function dataSourcesSplitB
795
744
  for (var i = 1; i < fields.length; i += 1) {
796
745
  var fieldName = fields[i].name;
797
746
  if (!(fieldName === null || fieldName === void 0 ? void 0 : fieldName.startsWith('_'))) {
798
- splitDataSources[fieldName] = lodash_1.cloneDeep(lodash_1.omit(dataSource, ['primary.data.fields', 'primary.data.columns']));
747
+ splitDataSources[fieldName] = (0, lodash_1.cloneDeep)((0, lodash_1.omit)(dataSource, ['primary.data.fields', 'primary.data.columns']));
799
748
  splitDataSources[fieldName].primary.data.fields = [fields[0], fields[i]];
800
749
  splitDataSources[fieldName].primary.data.columns = [columns[0], columns[i]];
801
750
  }
@@ -817,12 +766,12 @@ var dataSourcesSplitByAggregationsStats = function dataSourcesSplitByAggregation
817
766
  var splitByFields = [];
818
767
  var errorCode = null;
819
768
  if (typeof fields[0] !== 'string') {
820
- splitByFields = trellisUtils_1.extractDataSourceAggregationKeysStats(fields);
769
+ splitByFields = (0, trellisUtils_1.extractDataSourceAggregationKeysStats)(fields);
821
770
  }
822
771
  if (splitByFields && splitByFields.length > 0) {
823
772
  splitDataSources = {};
824
773
  splitByFields.forEach(function (splitByField) {
825
- splitDataSources[splitByField] = lodash_1.cloneDeep(lodash_1.omit(dataSource, ['primary.data.fields', 'primary.data.columns']));
774
+ splitDataSources[splitByField] = (0, lodash_1.cloneDeep)((0, lodash_1.omit)(dataSource, ['primary.data.fields', 'primary.data.columns']));
826
775
  splitDataSources[splitByField].primary.data.fields = [fields[0]];
827
776
  splitDataSources[splitByField].primary.data.columns = [columns[0]];
828
777
  var idx = fields.findIndex(function (field) {
@@ -850,11 +799,11 @@ var dataSourcesSplitByModeTimechart = function dataSourcesSplitByModeTimechart(d
850
799
  var splitByFields = [];
851
800
  var errorCode = null;
852
801
  if (typeof fields[0] !== 'string') {
853
- splitByFields = trellisUtils_1.extractSplitByFieldsChartFields(fields);
802
+ splitByFields = (0, trellisUtils_1.extractSplitByFieldsChartFields)(fields);
854
803
  }
855
804
  if (splitByFields && splitByFields.indexOf(splitBy) > -1) {
856
805
  splitDataSources = {};
857
- var dataSourceKeys = trellisUtils_1.extractDataSourceAggregationKeysChart(fields);
806
+ var dataSourceKeys = (0, trellisUtils_1.extractDataSourceAggregationKeysChart)(fields);
858
807
  var valueKeys = [];
859
808
  for (var i = 1; i < fields.length; i += 1) {
860
809
  // not including internal fields
@@ -863,7 +812,7 @@ var dataSourcesSplitByModeTimechart = function dataSourcesSplitByModeTimechart(d
863
812
  }
864
813
  }
865
814
  valueKeys.forEach(function (val) {
866
- splitDataSources[val] = lodash_1.cloneDeep(lodash_1.omit(dataSource, ['primary.data.fields', 'primary.data.columns']));
815
+ splitDataSources[val] = (0, lodash_1.cloneDeep)((0, lodash_1.omit)(dataSource, ['primary.data.fields', 'primary.data.columns']));
867
816
  splitDataSources[val].primary.data.fields = [{
868
817
  name: fields[0].name
869
818
  }].concat(_toConsumableArray(dataSourceKeys.map(function (k) {
@@ -897,7 +846,7 @@ var dataSourcesSplitByModeChart = function dataSourcesSplitByModeChart(dataSourc
897
846
  var splitByFields = [];
898
847
  var errorCode = null;
899
848
  if (typeof fields[0] !== 'string') {
900
- splitByFields = trellisUtils_1.extractSplitByFieldsChartFields(fields);
849
+ splitByFields = (0, trellisUtils_1.extractSplitByFieldsChartFields)(fields);
901
850
  }
902
851
  if (splitByFields && splitByFields.indexOf(splitBy) > -1) {
903
852
  splitDataSources = {};
@@ -907,7 +856,7 @@ var dataSourcesSplitByModeChart = function dataSourcesSplitByModeChart(dataSourc
907
856
  var otherSplitBy = splitByFields.filter(function (f) {
908
857
  return f !== splitBy;
909
858
  });
910
- var dataSourceKeys = trellisUtils_1.extractDataSourceAggregationKeysChart(fields);
859
+ var dataSourceKeys = (0, trellisUtils_1.extractDataSourceAggregationKeysChart)(fields);
911
860
  var nonDataSourceAggregations = [];
912
861
  if (!dataSourceKeys.length && fields[0].groupby_rank === '0' && fields.length && !fields[1].groupby_rank) {
913
862
  /* check for another aggregation scenario where no key 'data_source' will be returned (applies for both chart and stats cmd)
@@ -935,9 +884,9 @@ var dataSourcesSplitByModeChart = function dataSourcesSplitByModeChart(dataSourc
935
884
  }
936
885
  if (splitByFieldIdx === 0) {
937
886
  // if splitBy is the first field, split row wise
938
- var valueKeys = lodash_1.cloneDeep(columns[0]);
887
+ var valueKeys = (0, lodash_1.cloneDeep)(columns[0]);
939
888
  valueKeys.forEach(function (val, idx) {
940
- splitDataSources[val] = lodash_1.cloneDeep(lodash_1.omit(dataSource, ['primary.data.fields', 'primary.data.columns']));
889
+ splitDataSources[val] = (0, lodash_1.cloneDeep)((0, lodash_1.omit)(dataSource, ['primary.data.fields', 'primary.data.columns']));
941
890
  splitDataSources[val].primary.data.fields = [];
942
891
  if (otherSplitBy.length) {
943
892
  splitDataSources[val].primary.data.fields = [{
@@ -1045,7 +994,7 @@ var dataSourcesSplitByModeChart = function dataSourcesSplitByModeChart(dataSourc
1045
994
  _valueKeys.push(fields[_i2].splitby_value ? fields[_i2].splitby_value : fields[_i2].name);
1046
995
  }
1047
996
  _valueKeys.forEach(function (val) {
1048
- splitDataSources[val] = lodash_1.cloneDeep(lodash_1.omit(dataSource, ['primary.data.fields', 'primary.data.columns']));
997
+ splitDataSources[val] = (0, lodash_1.cloneDeep)((0, lodash_1.omit)(dataSource, ['primary.data.fields', 'primary.data.columns']));
1049
998
  splitDataSources[val].primary.data.fields = [{
1050
999
  name: otherSplitBy[0]
1051
1000
  }].concat(_toConsumableArray(dataSourceKeys.map(function (k) {
@@ -1084,7 +1033,7 @@ var dataSourcesSplitByModeStatsorUnknown = function dataSourcesSplitByModeStatso
1084
1033
  var splitByFields = [];
1085
1034
  var errorCode = null;
1086
1035
  if (typeof fields[0] !== 'string') {
1087
- splitByFields = splitMode !== trellisUtils_1.UNKNOWN ? trellisUtils_1.extractSplitByFieldsForStats(fields) : trellisUtils_1.extractSplitByFieldsForUnknown(fields);
1036
+ splitByFields = splitMode !== trellisUtils_1.UNKNOWN ? (0, trellisUtils_1.extractSplitByFieldsForStats)(fields) : (0, trellisUtils_1.extractSplitByFieldsForUnknown)(fields);
1088
1037
  }
1089
1038
  var splitByIndex = fields === null || fields === void 0 ? void 0 : fields.findIndex(function (field) {
1090
1039
  return field === splitBy || field.name === splitBy;
@@ -1099,12 +1048,12 @@ var dataSourcesSplitByModeStatsorUnknown = function dataSourcesSplitByModeStatso
1099
1048
  splitDataSources[val].push(idx);
1100
1049
  }
1101
1050
  });
1102
- var cloneFields = lodash_1.cloneDeep(fields);
1051
+ var cloneFields = (0, lodash_1.cloneDeep)(fields);
1103
1052
  cloneFields.splice(splitByIndex, 1);
1104
1053
  var valueKeys = Object.keys(splitDataSources);
1105
1054
  valueKeys.forEach(function (val) {
1106
- var valIndices = lodash_1.cloneDeep(splitDataSources[val]);
1107
- splitDataSources[val] = lodash_1.cloneDeep(lodash_1.omit(dataSource, ['primary.data.fields', 'primary.data.columns']));
1055
+ var valIndices = (0, lodash_1.cloneDeep)(splitDataSources[val]);
1056
+ splitDataSources[val] = (0, lodash_1.cloneDeep)((0, lodash_1.omit)(dataSource, ['primary.data.fields', 'primary.data.columns']));
1108
1057
  splitDataSources[val].primary.data.fields = cloneFields;
1109
1058
  splitDataSources[val].primary.data.columns = [];
1110
1059
  columns.forEach(function (col, idx) {
@@ -1129,13 +1078,13 @@ var getTrellisDataSourcesBySplitMode = function getTrellisDataSourcesBySplitMode
1129
1078
  var result = null;
1130
1079
  try {
1131
1080
  if (splitMode === trellisUtils_1.TIMECHART) {
1132
- result = trellisSplitBy === exports.AGGREGATIONS ? exports.dataSourcesSplitByAggregationsTimechartAndChart(dataSources) : exports.dataSourcesSplitByModeTimechart(dataSources, trellisSplitBy);
1081
+ result = trellisSplitBy === exports.AGGREGATIONS ? (0, exports.dataSourcesSplitByAggregationsTimechartAndChart)(dataSources) : (0, exports.dataSourcesSplitByModeTimechart)(dataSources, trellisSplitBy);
1133
1082
  } else if (splitMode === trellisUtils_1.STATS) {
1134
- result = trellisSplitBy === exports.AGGREGATIONS ? exports.dataSourcesSplitByAggregationsStats(dataSources) : exports.dataSourcesSplitByModeStatsorUnknown(dataSources, trellisSplitBy, trellisUtils_1.STATS);
1083
+ result = trellisSplitBy === exports.AGGREGATIONS ? (0, exports.dataSourcesSplitByAggregationsStats)(dataSources) : (0, exports.dataSourcesSplitByModeStatsorUnknown)(dataSources, trellisSplitBy, trellisUtils_1.STATS);
1135
1084
  } else if (splitMode === trellisUtils_1.CHART) {
1136
- result = trellisSplitBy === exports.AGGREGATIONS ? exports.dataSourcesSplitByAggregationsTimechartAndChart(dataSources) : exports.dataSourcesSplitByModeChart(dataSources, trellisSplitBy);
1085
+ result = trellisSplitBy === exports.AGGREGATIONS ? (0, exports.dataSourcesSplitByAggregationsTimechartAndChart)(dataSources) : (0, exports.dataSourcesSplitByModeChart)(dataSources, trellisSplitBy);
1137
1086
  } else if (splitMode === trellisUtils_1.UNKNOWN) {
1138
- result = trellisSplitBy === exports.AGGREGATIONS ? exports.dataSourcesSplitByAggregationsUnknown(dataSources) : exports.dataSourcesSplitByModeStatsorUnknown(dataSources, trellisSplitBy, trellisUtils_1.UNKNOWN);
1087
+ result = trellisSplitBy === exports.AGGREGATIONS ? (0, exports.dataSourcesSplitByAggregationsUnknown)(dataSources) : (0, exports.dataSourcesSplitByModeStatsorUnknown)(dataSources, trellisSplitBy, trellisUtils_1.UNKNOWN);
1139
1088
  }
1140
1089
  } catch (ex) {
1141
1090
  console.error('getTrellisDataSourcesBySplitMode ', ex);
@@ -1150,6 +1099,20 @@ exports.getTrellisDataSourcesBySplitMode = getTrellisDataSourcesBySplitMode;
1150
1099
 
1151
1100
  /***/ }),
1152
1101
 
1102
+ /***/ 108:
1103
+ /***/ (function(module, exports) {
1104
+
1105
+ module.exports = require("lodash/pick");
1106
+
1107
+ /***/ }),
1108
+
1109
+ /***/ 109:
1110
+ /***/ (function(module, exports) {
1111
+
1112
+ module.exports = require("lodash/isEmpty");
1113
+
1114
+ /***/ }),
1115
+
1153
1116
  /***/ 11:
1154
1117
  /***/ (function(module, exports) {
1155
1118
 
@@ -1182,14 +1145,14 @@ var Item = styled_components_1.default.div.attrs(function (_ref) {
1182
1145
  var width = _ref.width;
1183
1146
  return {
1184
1147
  style: {
1185
- width: style_1.toPx(width)
1148
+ width: (0, style_1.toPx)(width)
1186
1149
  }
1187
1150
  };
1188
1151
  }).withConfig({
1189
1152
  displayName: "FixedSizeContainer__Item",
1190
1153
  componentId: "sc-1yhgpod-0"
1191
1154
  })(["position:relative;background-color:", "};"], function (props) {
1192
- return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
1155
+ return (0, colorUtils_1.isColor)(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
1193
1156
  });
1194
1157
  // Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
1195
1158
  var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
@@ -1197,16 +1160,16 @@ var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
1197
1160
  height = _ref2.height;
1198
1161
  return {
1199
1162
  style: Object.assign(Object.assign({}, width && {
1200
- width: style_1.toPx(width)
1163
+ width: (0, style_1.toPx)(width)
1201
1164
  }), height && {
1202
- height: style_1.toPx(height)
1165
+ height: (0, style_1.toPx)(height)
1203
1166
  })
1204
1167
  };
1205
1168
  }).withConfig({
1206
1169
  displayName: "FixedSizeContainer__FixSizeItem",
1207
1170
  componentId: "sc-1yhgpod-1"
1208
1171
  })(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
1209
- return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
1172
+ return (0, colorUtils_1.isColor)(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
1210
1173
  });
1211
1174
  var ItemContent = styled_components_1.default.div.withConfig({
1212
1175
  displayName: "FixedSizeContainer__ItemContent",
@@ -1230,7 +1193,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
1230
1193
  }
1231
1194
  return React.createElement(FixSizeItem, {
1232
1195
  "data-test": "fix-size-item",
1233
- "data-splunk-visualization-version": "25.13.0 - 572f25c03",
1196
+ "data-splunk-visualization-version": "26.0.0 - 2f7458907",
1234
1197
  width: width,
1235
1198
  height: height,
1236
1199
  backgroundColor: backgroundColor
@@ -1250,7 +1213,7 @@ exports.default = withFixedSizeContainer;
1250
1213
 
1251
1214
  /***/ }),
1252
1215
 
1253
- /***/ 134:
1216
+ /***/ 135:
1254
1217
  /***/ (function(module, exports, __webpack_require__) {
1255
1218
 
1256
1219
  "use strict";
@@ -1295,6 +1258,57 @@ exports.defaultContext = {
1295
1258
 
1296
1259
  /***/ }),
1297
1260
 
1261
+ /***/ 136:
1262
+ /***/ (function(module, __webpack_exports__, __webpack_require__) {
1263
+
1264
+ "use strict";
1265
+ __webpack_require__.r(__webpack_exports__);
1266
+ /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicMajorColorEditor", function() { return getDynamicMajorColorEditor; });
1267
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
1268
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
1269
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(22);
1270
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
1271
+
1272
+
1273
+ var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
1274
+ var defaultContext = _ref.defaultContext,
1275
+ defaultPalettesConfig = _ref.defaultPalettesConfig;
1276
+ return {
1277
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major value'),
1278
+ option: 'majorColor',
1279
+ context: 'majorColorEditorConfig',
1280
+ editor: 'editor.dynamicColor',
1281
+ showEditor: function showEditor(_ref2) {
1282
+ var options = _ref2.options;
1283
+ return Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.majorColor);
1284
+ },
1285
+ editorProps: {
1286
+ labelPosition: 'top',
1287
+ flyoutTitle: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Dynamic coloring: major value'),
1288
+ formatters: [{
1289
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Ranges'),
1290
+ value: 'rangeValue',
1291
+ defaults: {
1292
+ majorValue: defaultContext.majorColorConfig
1293
+ }
1294
+ }, {
1295
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Matches'),
1296
+ value: 'matchValue',
1297
+ defaults: {
1298
+ majorValue: defaultContext.majorColorMatchConfig
1299
+ }
1300
+ }],
1301
+ dataSelectors: [{
1302
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major value'),
1303
+ value: 'majorValue'
1304
+ }],
1305
+ defaultPalettesConfig: defaultPalettesConfig
1306
+ }
1307
+ };
1308
+ };
1309
+
1310
+ /***/ }),
1311
+
1298
1312
  /***/ 14:
1299
1313
  /***/ (function(module, exports) {
1300
1314
 
@@ -1302,7 +1316,7 @@ module.exports = require("@splunk/visualizations-shared/style");
1302
1316
 
1303
1317
  /***/ }),
1304
1318
 
1305
- /***/ 140:
1319
+ /***/ 142:
1306
1320
  /***/ (function(module, exports) {
1307
1321
 
1308
1322
  module.exports = require("@splunk/visualizations/SingleValueBasic");
@@ -1347,42 +1361,42 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
1347
1361
 
1348
1362
  /***/ }),
1349
1363
 
1350
- /***/ 168:
1364
+ /***/ 17:
1351
1365
  /***/ (function(module, exports) {
1352
1366
 
1353
- module.exports = require("@splunk/react-icons/enterprise/Activity");
1367
+ module.exports = require("@babel/runtime/helpers/slicedToArray");
1354
1368
 
1355
1369
  /***/ }),
1356
1370
 
1357
- /***/ 169:
1371
+ /***/ 171:
1358
1372
  /***/ (function(module, exports) {
1359
1373
 
1360
- module.exports = require("@splunk/react-icons/enterprise/Clock");
1374
+ module.exports = require("@splunk/react-icons/enterprise/Activity");
1361
1375
 
1362
1376
  /***/ }),
1363
1377
 
1364
- /***/ 17:
1378
+ /***/ 172:
1365
1379
  /***/ (function(module, exports) {
1366
1380
 
1367
- module.exports = require("@babel/runtime/helpers/slicedToArray");
1381
+ module.exports = require("@splunk/react-icons/enterprise/Clock");
1368
1382
 
1369
1383
  /***/ }),
1370
1384
 
1371
- /***/ 170:
1385
+ /***/ 173:
1372
1386
  /***/ (function(module, exports) {
1373
1387
 
1374
1388
  module.exports = require("@splunk/react-icons/enterprise/Pencil");
1375
1389
 
1376
1390
  /***/ }),
1377
1391
 
1378
- /***/ 171:
1392
+ /***/ 174:
1379
1393
  /***/ (function(module, exports) {
1380
1394
 
1381
1395
  module.exports = require("@splunk/react-icons/enterprise/Star");
1382
1396
 
1383
1397
  /***/ }),
1384
1398
 
1385
- /***/ 172:
1399
+ /***/ 175:
1386
1400
  /***/ (function(module, exports) {
1387
1401
 
1388
1402
  module.exports = require("@splunk/react-icons/enterprise/Question");
@@ -1570,8 +1584,8 @@ function hasCompatibleOptions(vizOptions, presetOptions) {
1570
1584
  */
1571
1585
  function getInitialPreset(vizContext, vizOptions, presets) {
1572
1586
  return presets.find(function (preset) {
1573
- var presetContext = lodash_1.get(preset, ['value', 'context'], {});
1574
- var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
1587
+ var presetContext = (0, lodash_1.get)(preset, ['value', 'context'], {});
1588
+ var presetOptions = (0, lodash_1.get)(preset, ['value', 'options'], {});
1575
1589
  var presetContextKeys = Object.keys(presetContext);
1576
1590
  var presetOptionKeys = Object.keys(presetOptions);
1577
1591
  // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
@@ -1588,7 +1602,7 @@ exports.getInitialPreset = getInitialPreset;
1588
1602
  * @returns {{ label: string; value; string }[]} array of { label, value } tuples
1589
1603
  */
1590
1604
  function generatePrecisionValues(numPrecisionValues) {
1591
- return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
1605
+ return (0, lodash_1.range)(0, numPrecisionValues + 1).map(function (i) {
1592
1606
  return {
1593
1607
  label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
1594
1608
  value: i
@@ -1674,13 +1688,13 @@ __webpack_require__.r(__webpack_exports__);
1674
1688
  /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
1675
1689
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
1676
1690
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
1677
- /* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(30);
1691
+ /* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(31);
1678
1692
  /* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__);
1679
1693
  /* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(54);
1680
1694
  /* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__);
1681
- /* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28);
1695
+ /* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(29);
1682
1696
  /* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__);
1683
- /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(50);
1697
+ /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(49);
1684
1698
  /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__);
1685
1699
 
1686
1700
  function ownKeys(object, enumerableOnly) {
@@ -2613,35 +2627,35 @@ var handleValueClickCallback = function handleValueClickCallback(ev, majorValue,
2613
2627
  /***/ 25:
2614
2628
  /***/ (function(module, exports) {
2615
2629
 
2616
- module.exports = require("@splunk/visualization-context/TimezoneContext");
2630
+ module.exports = require("@splunk/ui-utils/id");
2617
2631
 
2618
2632
  /***/ }),
2619
2633
 
2620
2634
  /***/ 26:
2621
2635
  /***/ (function(module, exports) {
2622
2636
 
2623
- module.exports = require("@splunk/visualizations-shared/hocUtils");
2637
+ module.exports = require("@splunk/visualization-context/TimezoneContext");
2624
2638
 
2625
2639
  /***/ }),
2626
2640
 
2627
2641
  /***/ 27:
2628
2642
  /***/ (function(module, exports) {
2629
2643
 
2630
- module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
2644
+ module.exports = require("@splunk/visualizations-shared/hocUtils");
2631
2645
 
2632
2646
  /***/ }),
2633
2647
 
2634
2648
  /***/ 28:
2635
2649
  /***/ (function(module, exports) {
2636
2650
 
2637
- module.exports = require("@splunk/visualizations-shared/propUtils");
2651
+ module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
2638
2652
 
2639
2653
  /***/ }),
2640
2654
 
2641
2655
  /***/ 29:
2642
2656
  /***/ (function(module, exports) {
2643
2657
 
2644
- module.exports = require("@splunk/visualization-encoding/Options");
2658
+ module.exports = require("@splunk/visualizations-shared/propUtils");
2645
2659
 
2646
2660
  /***/ }),
2647
2661
 
@@ -2655,11 +2669,18 @@ module.exports = require("lodash");
2655
2669
  /***/ 30:
2656
2670
  /***/ (function(module, exports) {
2657
2671
 
2658
- module.exports = require("@splunk/visualizations-shared/numberUtils");
2672
+ module.exports = require("@splunk/visualization-encoding/Options");
2659
2673
 
2660
2674
  /***/ }),
2661
2675
 
2662
2676
  /***/ 31:
2677
+ /***/ (function(module, exports) {
2678
+
2679
+ module.exports = require("@splunk/visualizations-shared/numberUtils");
2680
+
2681
+ /***/ }),
2682
+
2683
+ /***/ 32:
2663
2684
  /***/ (function(module, exports, __webpack_require__) {
2664
2685
 
2665
2686
  "use strict";
@@ -2683,9 +2704,9 @@ var FixedSizeContainer_1 = __webpack_require__(13);
2683
2704
  */
2684
2705
  var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
2685
2706
  var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
2686
- var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
2707
+ var data = (0, lodash_1.get)(dataSources, 'primary.data.columns[0]', undefined);
2687
2708
  var noData = data === undefined;
2688
- var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
2709
+ var fields = (0, lodash_1.get)(dataSources, 'primary.data.fields[0]', undefined);
2689
2710
  var noFields = fields === undefined;
2690
2711
  return loading || noData || noFields;
2691
2712
  };
@@ -2726,7 +2747,7 @@ var IconPlaceholder = function IconPlaceholder(props) {
2726
2747
  width: width,
2727
2748
  height: height,
2728
2749
  level: "warning",
2729
- message: i18n_1._('No DataSource Connected')
2750
+ message: (0, i18n_1._)('No DataSource Connected')
2730
2751
  });
2731
2752
  };
2732
2753
  IconPlaceholder.propTypes = propTypes;
@@ -2734,14 +2755,7 @@ IconPlaceholder.defaultProps = {
2734
2755
  width: '100%',
2735
2756
  height: 250
2736
2757
  };
2737
- exports.default = FixedSizeContainer_1.default(IconPlaceholder);
2738
-
2739
- /***/ }),
2740
-
2741
- /***/ 32:
2742
- /***/ (function(module, exports) {
2743
-
2744
- module.exports = require("@splunk/ui-utils/id");
2758
+ exports.default = (0, FixedSizeContainer_1.default)(IconPlaceholder);
2745
2759
 
2746
2760
  /***/ }),
2747
2761
 
@@ -2776,7 +2790,7 @@ var getSortingParams = function getSortingParams(_ref) {
2776
2790
  };
2777
2791
  var onSort;
2778
2792
  if (typeof onRequestParamsChange === 'function') {
2779
- if (requestParams && lodash_1.has(requestParams, 'sort')) {
2793
+ if (requestParams && (0, lodash_1.has)(requestParams, 'sort')) {
2780
2794
  currentSortKey = Object.keys(requestParams.sort).shift();
2781
2795
  currentSortDir = requestParams.sort[currentSortKey];
2782
2796
  }
@@ -2785,7 +2799,7 @@ var getSortingParams = function getSortingParams(_ref) {
2785
2799
  var sortKey = _ref2.sortKey,
2786
2800
  sortDir = _ref2.sortDir;
2787
2801
  if (typeof sortKey === 'string') {
2788
- var nextSortDir = lodash_1.has(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
2802
+ var nextSortDir = (0, lodash_1.has)(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
2789
2803
  onRequestParamsChange(Object.assign(Object.assign({}, requestParams), {
2790
2804
  offset: 0,
2791
2805
  sort: _defineProperty({}, sortKey, nextSortDir)
@@ -2836,7 +2850,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
2836
2850
  var onChangeHandler = function onChangeHandler(e, _ref2) {
2837
2851
  var page = _ref2.page,
2838
2852
  countArg = _ref2.count;
2839
- var newParams = lodash_1.cloneDeep(requestParams);
2853
+ var newParams = (0, lodash_1.cloneDeep)(requestParams);
2840
2854
  if (typeof countArg === 'number') {
2841
2855
  newParams.count = countArg;
2842
2856
  newParams.offset = 0;
@@ -2900,16 +2914,16 @@ Object.defineProperty(exports, "__esModule", {
2900
2914
  var React = __webpack_require__(1);
2901
2915
  var lodash_1 = __webpack_require__(3);
2902
2916
  var getSettingsFromThemedProps_1 = __webpack_require__(37);
2903
- var Options_1 = __webpack_require__(29);
2917
+ var Options_1 = __webpack_require__(30);
2904
2918
  var SanitizeProps_1 = __webpack_require__(38);
2905
- var TimezoneContext_1 = __webpack_require__(25);
2919
+ var TimezoneContext_1 = __webpack_require__(26);
2906
2920
  var moment_1 = __webpack_require__(39);
2907
2921
  var FeatureFlagContext_1 = __webpack_require__(21);
2908
2922
  var styled_components_1 = __webpack_require__(4);
2909
- var hocUtils_1 = __webpack_require__(26);
2910
- var JSONSchemaUtils_1 = __webpack_require__(27);
2923
+ var hocUtils_1 = __webpack_require__(27);
2924
+ var JSONSchemaUtils_1 = __webpack_require__(28);
2911
2925
  var async_dynamic_options_evaluator_1 = __webpack_require__(40);
2912
- var id_1 = __webpack_require__(32);
2926
+ var id_1 = __webpack_require__(25);
2913
2927
  var SplunkVisualization_1 = __webpack_require__(41);
2914
2928
  var VizBehavior_1 = __webpack_require__(6);
2915
2929
  var getSorting_1 = __webpack_require__(33);
@@ -2930,8 +2944,8 @@ var withDashboardViz = function withDashboardViz(opts) {
2930
2944
  computeVizProps = _opts$computeVizProps === void 0 ? function () {} : _opts$computeVizProps,
2931
2945
  disableEditModeCover = opts.disableEditModeCover,
2932
2946
  useIconPlaceholder = opts.useIconPlaceholder; // sanitizing props before sending them to reactviz.
2933
- var SanitizedReactViz = SanitizeProps_1.withSanitizedProps(ReactViz);
2934
- var defaultOptions = JSONSchemaUtils_1.pickFieldFromJSONSchema(vizConfig.optionsSchema, 'default');
2947
+ var SanitizedReactViz = (0, SanitizeProps_1.withSanitizedProps)(ReactViz);
2948
+ var defaultOptions = (0, JSONSchemaUtils_1.pickFieldFromJSONSchema)(vizConfig.optionsSchema, 'default');
2935
2949
  var DashboardViz = function DashboardViz(props) {
2936
2950
  var _a;
2937
2951
  var mode = props.mode,
@@ -2966,19 +2980,19 @@ var withDashboardViz = function withDashboardViz(opts) {
2966
2980
  return (_b = (_a = vizConfig.themes)[themeVar]) === null || _b === void 0 ? void 0 : _b.call(_a, props);
2967
2981
  };
2968
2982
  var bgColorFromTheme = themeFunc('defaultBackgroundColor');
2969
- var _getSettingsFromTheme = getSettingsFromThemedProps_1.default({
2983
+ var _ref = (0, getSettingsFromThemedProps_1.default)({
2970
2984
  theme: theme
2971
2985
  }),
2972
- currentThemeFamily = _getSettingsFromTheme.family,
2973
- currentThemeColorScheme = _getSettingsFromTheme.colorScheme,
2974
- currentThemeDensity = _getSettingsFromTheme.density;
2986
+ currentThemeFamily = _ref.family,
2987
+ currentThemeColorScheme = _ref.colorScheme,
2988
+ currentThemeDensity = _ref.density;
2975
2989
  var evaluatedOptions = {}; // evaluatedOptions need to be initialized as an empty object
2976
2990
  var _React$useState = React.useState({}),
2977
2991
  _React$useState2 = _slicedToArray(_React$useState, 2),
2978
2992
  evaluatedOptionsAsync = _React$useState2[0],
2979
2993
  setEvaluatedOptionsAsync = _React$useState2[1]; // evaluatedOptions need to be initialized as an empty object
2980
2994
  var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
2981
- var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(id_1.createGUID())),
2995
+ var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat((0, id_1.createGUID)())),
2982
2996
  _React$useState4 = _slicedToArray(_React$useState3, 1),
2983
2997
  visualizationID = _React$useState4[0];
2984
2998
  var _React$useState5 = React.useState({}),
@@ -2989,16 +3003,17 @@ var withDashboardViz = function withDashboardViz(opts) {
2989
3003
  _React$useState8 = _slicedToArray(_React$useState7, 2),
2990
3004
  dataFramesInState = _React$useState8[0],
2991
3005
  setDataFramesInState = _React$useState8[1];
2992
- var _React$useState9 = React.useState(Boolean(featureFlagContext && featureFlagContext.visualizations_useWebWorkersForDSL && typeof Worker !== 'undefined')),
3006
+ var _React$useState9 = React.useState(Boolean(featureFlagContext === null || featureFlagContext === void 0 ? void 0 : featureFlagContext.visualizations_useWebWorkersForDSL)),
2993
3007
  _React$useState10 = _slicedToArray(_React$useState9, 2),
2994
3008
  useAsyncEvaluatedOptions = _React$useState10[0],
2995
3009
  setUseAsyncEvaluatedOptions = _React$useState10[1];
2996
- evaluatedOptions = useDeepMemo_1.useDeepMemo(function () {
3010
+ var isMounted = React.useRef(true);
3011
+ evaluatedOptions = (0, useDeepMemo_1.useDeepMemo)(function () {
2997
3012
  try {
2998
3013
  if (useAsyncEvaluatedOptions) {
2999
3014
  var optionsToEvaluate = {
3000
- context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
3001
- options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
3015
+ context: (0, lodash_1.defaultsDeep)({}, context, vizConfig.defaultContext),
3016
+ options: (0, hocUtils_1.deepMergeWithArrayPrimitiveOverrides)({}, options, defaultOptions)
3002
3017
  };
3003
3018
  var asyncDynamicOptionsEvaluatorParams = {
3004
3019
  visualizationID: visualizationID,
@@ -3009,10 +3024,10 @@ var withDashboardViz = function withDashboardViz(opts) {
3009
3024
  };
3010
3025
  async_dynamic_options_evaluator_1.default.evaluate(asyncDynamicOptionsEvaluatorParams).then(function (results) {
3011
3026
  setEvaluatedOptionsAsync(results.results);
3012
- }).catch(function (e) {
3013
- // eslint-disable-next-line no-console
3014
- console.error("unexpected error evaluating options - async: ".concat(e.message));
3015
- setUseAsyncEvaluatedOptions(false);
3027
+ }).catch(function () {
3028
+ if (isMounted.current) {
3029
+ setUseAsyncEvaluatedOptions(false);
3030
+ }
3016
3031
  });
3017
3032
  } else {
3018
3033
  var dataFrames = dataFramesInState;
@@ -3022,8 +3037,8 @@ var withDashboardViz = function withDashboardViz(opts) {
3022
3037
  setDataFramesInState(dataFrames);
3023
3038
  }
3024
3039
  return Options_1.Options.evaluate({
3025
- context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
3026
- options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
3040
+ context: (0, lodash_1.defaultsDeep)({}, context, vizConfig.defaultContext),
3041
+ options: (0, hocUtils_1.deepMergeWithArrayPrimitiveOverrides)({}, options, defaultOptions)
3027
3042
  }, dataSources, themeFunc, dataFrames);
3028
3043
  }
3029
3044
  } catch (e) {
@@ -3052,6 +3067,7 @@ var withDashboardViz = function withDashboardViz(opts) {
3052
3067
  React.useEffect(function () {
3053
3068
  return function () {
3054
3069
  if (useAsyncEvaluatedOptions) {
3070
+ isMounted.current = false;
3055
3071
  async_dynamic_options_evaluator_1.default.reset(visualizationID);
3056
3072
  }
3057
3073
  };
@@ -3061,7 +3077,7 @@ var withDashboardViz = function withDashboardViz(opts) {
3061
3077
  var _vizConfig$requiredPr = vizConfig.requiredProps,
3062
3078
  requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
3063
3079
  supports = vizConfig.supports;
3064
- var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptionsToUse);
3080
+ var missing = (0, MissingPropsMessage_1.missingKeys)(requiredProps, evaluatedOptionsToUse);
3065
3081
  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
3066
3082
  ) {
3067
3083
  return React.createElement(MissingPropsMessage_1.default, {
@@ -3077,7 +3093,7 @@ var withDashboardViz = function withDashboardViz(opts) {
3077
3093
  if (hasEventHandlers && mode === 'view' && vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.EVENTS) > -1) {
3078
3094
  var supportedEvents = vizConfig.events;
3079
3095
  Object.keys(supportedEvents).forEach(function (eventName) {
3080
- var eventCallbackPropName = lodash_1.camelCase("on.".concat(eventName));
3096
+ var eventCallbackPropName = (0, lodash_1.camelCase)("on.".concat(eventName));
3081
3097
  eventCallbackProps[eventCallbackPropName] = null;
3082
3098
  // todo: refactor single value and single value icon to send payload from viz
3083
3099
  // then remove these lines
@@ -3120,19 +3136,19 @@ var withDashboardViz = function withDashboardViz(opts) {
3120
3136
  */
3121
3137
  var dataSourceMetadata = {};
3122
3138
  var OptionKey = 'paginateDataSourceKey';
3123
- var paginateDataSourceKey = lodash_1.has(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
3124
- if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && lodash_1.has(dataSources, paginateDataSourceKey)) {
3125
- var requestParams = lodash_1.get(dataSources, [paginateDataSourceKey, 'requestParams'], {});
3126
- var meta = lodash_1.get(dataSources, [paginateDataSourceKey, 'meta'], {});
3139
+ var paginateDataSourceKey = (0, lodash_1.has)(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
3140
+ if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && (0, lodash_1.has)(dataSources, paginateDataSourceKey)) {
3141
+ var requestParams = (0, lodash_1.get)(dataSources, [paginateDataSourceKey, 'requestParams'], {});
3142
+ var meta = (0, lodash_1.get)(dataSources, [paginateDataSourceKey, 'meta'], {});
3127
3143
  var handleRequestParamsChange = function handleRequestParamsChange(payload) {
3128
3144
  return onRequestParamsChange(paginateDataSourceKey, payload);
3129
3145
  };
3130
- var sortParams = getSorting_1.getSortingParams({
3146
+ var sortParams = (0, getSorting_1.getSortingParams)({
3131
3147
  requestParams: requestParams,
3132
3148
  meta: meta,
3133
3149
  onRequestParamsChange: handleRequestParamsChange
3134
3150
  });
3135
- var paginatorParams = getPagination_1.getPaginationParams({
3151
+ var paginatorParams = (0, getPagination_1.getPaginationParams)({
3136
3152
  requestParams: requestParams,
3137
3153
  meta: meta,
3138
3154
  onRequestParamsChange: handleRequestParamsChange
@@ -3160,7 +3176,7 @@ var withDashboardViz = function withDashboardViz(opts) {
3160
3176
  // attach viz config
3161
3177
  DashboardViz.config = vizConfig;
3162
3178
  // @ts-ignore: TODO fix sc upgrade TS issues
3163
- return styled_components_1.withTheme(withPlaceholder_1.default(withEditModeCover_1.default(DashboardViz, disableEditModeCover), useIconPlaceholder));
3179
+ return (0, styled_components_1.withTheme)((0, withPlaceholder_1.default)((0, withEditModeCover_1.default)(DashboardViz, disableEditModeCover), useIconPlaceholder));
3164
3180
  };
3165
3181
  exports.default = withDashboardViz;
3166
3182
 
@@ -3404,8 +3420,8 @@ var lodash_1 = __webpack_require__(3);
3404
3420
  * @param dependencies an array of dependencies
3405
3421
  */
3406
3422
  var useDeepMemo = function useDeepMemo(fn, dependencies) {
3407
- var ref = react_1.useRef();
3408
- if (!ref.current || !lodash_1.isEqual(dependencies, ref.current.dependencies)) {
3423
+ var ref = (0, react_1.useRef)();
3424
+ if (!ref.current || !(0, lodash_1.isEqual)(dependencies, ref.current.dependencies)) {
3409
3425
  ref.current = {
3410
3426
  dependencies: dependencies,
3411
3427
  value: fn()
@@ -3449,7 +3465,7 @@ exports.isMissing = isMissing;
3449
3465
  */
3450
3466
  var missingKeys = function missingKeys(keys, target) {
3451
3467
  return keys.filter(function (k) {
3452
- return exports.isMissing(target[k]);
3468
+ return (0, exports.isMissing)(target[k]);
3453
3469
  });
3454
3470
  };
3455
3471
  exports.missingKeys = missingKeys;
@@ -3473,7 +3489,7 @@ var MissingPropsMessage = function MissingPropsMessage(props) {
3473
3489
  "data-test": "message",
3474
3490
  width: width,
3475
3491
  height: height,
3476
- message: i18n_1._("Missing property: ".concat(missingProps.join(', ')))
3492
+ message: (0, i18n_1._)("Missing property: ".concat(missingProps.join(', ')))
3477
3493
  });
3478
3494
  };
3479
3495
  exports.MissingPropsMessage = MissingPropsMessage;
@@ -3482,7 +3498,7 @@ exports.MissingPropsMessage.defaultProps = {
3482
3498
  width: '100%',
3483
3499
  height: 250
3484
3500
  };
3485
- exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
3501
+ exports.default = (0, FixedSizeContainer_1.default)(exports.MissingPropsMessage);
3486
3502
 
3487
3503
  /***/ }),
3488
3504
 
@@ -3503,7 +3519,7 @@ var Cover = styled_components_1.default.div.withConfig({
3503
3519
  componentId: "sc-1gsbnxb-0"
3504
3520
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
3505
3521
  var Blocker = styled_components_1.default.div.attrs({
3506
- 'data-splunk-visualization-version': "25.13.0 - 572f25c03"
3522
+ 'data-splunk-visualization-version': "26.0.0 - 2f7458907"
3507
3523
  }).withConfig({
3508
3524
  displayName: "withEditModeCover__Blocker",
3509
3525
  componentId: "sc-1gsbnxb-1"
@@ -3522,7 +3538,7 @@ var withEditModeCover = function withEditModeCover(Visualization, disableEditMod
3522
3538
  "data-test": "edit-mode-cover"
3523
3539
  }));
3524
3540
  };
3525
- hocUtils_1.extendStaticWrapperProps({
3541
+ (0, hocUtils_1.extendStaticWrapperProps)({
3526
3542
  Wrapper: Wrapper,
3527
3543
  Visualization: Visualization
3528
3544
  });
@@ -3532,7 +3548,59 @@ exports.default = withEditModeCover;
3532
3548
 
3533
3549
  /***/ }),
3534
3550
 
3535
- /***/ 467:
3551
+ /***/ 47:
3552
+ /***/ (function(module, exports, __webpack_require__) {
3553
+
3554
+ "use strict";
3555
+
3556
+
3557
+ Object.defineProperty(exports, "__esModule", {
3558
+ value: true
3559
+ });
3560
+ var React = __webpack_require__(1);
3561
+ var colorUtils_1 = __webpack_require__(12);
3562
+ var variables_1 = __webpack_require__(11);
3563
+ var IconPlaceholder_1 = __webpack_require__(32);
3564
+ var VizBehavior_1 = __webpack_require__(6);
3565
+ var hocUtils_1 = __webpack_require__(15);
3566
+ var withPlaceholder = function withPlaceholder(Visualization) {
3567
+ var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
3568
+ var config = Visualization.config;
3569
+ var themes = config.themes;
3570
+ var Wrapper = function Wrapper(props) {
3571
+ var _a, _b;
3572
+ var dataSources = props.dataSources,
3573
+ loading = props.loading,
3574
+ options = props.options,
3575
+ height = props.height,
3576
+ width = props.width;
3577
+ var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
3578
+ 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);
3579
+ var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
3580
+ var iconColor = variables_1.default.contentColorActive(props);
3581
+ if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
3582
+ return React.createElement(IconPlaceholder_1.default, {
3583
+ "data-test": "icon-placeholder",
3584
+ icon: icon,
3585
+ width: width,
3586
+ height: height,
3587
+ backgroundColor: bgColorFromTheme,
3588
+ iconColor: iconColor
3589
+ });
3590
+ }
3591
+ return React.createElement(Visualization, Object.assign({}, props));
3592
+ };
3593
+ (0, hocUtils_1.extendStaticWrapperProps)({
3594
+ Wrapper: Wrapper,
3595
+ Visualization: Visualization
3596
+ });
3597
+ return Wrapper;
3598
+ };
3599
+ exports.default = withPlaceholder;
3600
+
3601
+ /***/ }),
3602
+
3603
+ /***/ 470:
3536
3604
  /***/ (function(module, exports, __webpack_require__) {
3537
3605
 
3538
3606
  "use strict";
@@ -3543,12 +3611,12 @@ Object.defineProperty(exports, "__esModule", {
3543
3611
  });
3544
3612
  exports.themes = exports.computeVizProps = exports.PureSingleValueIcon = exports.config = void 0;
3545
3613
  var React = __webpack_require__(1);
3546
- var RemoteIcon_1 = __webpack_require__(468);
3547
- var iconUtils_1 = __webpack_require__(469);
3548
- var SingleValueIcon_1 = __webpack_require__(486);
3614
+ var RemoteIcon_1 = __webpack_require__(471);
3615
+ var iconUtils_1 = __webpack_require__(472);
3616
+ var SingleValueIcon_1 = __webpack_require__(490);
3549
3617
  var withDashboardViz_1 = __webpack_require__(36);
3550
- var config_1 = __webpack_require__(470);
3551
- var withTrellis_1 = __webpack_require__(107);
3618
+ var config_1 = __webpack_require__(473);
3619
+ var withTrellis_1 = __webpack_require__(106);
3552
3620
  exports.config = config_1.default;
3553
3621
  exports.PureSingleValueIcon = SingleValueIcon_1.default;
3554
3622
  var computeVizProps = function computeVizProps(_ref) {
@@ -3558,7 +3626,7 @@ var computeVizProps = function computeVizProps(_ref) {
3558
3626
  themeFunc = _ref.themeFunc,
3559
3627
  trellisKey = _ref.trellisKey,
3560
3628
  trellisSplitBy = _ref.trellisSplitBy;
3561
- if (icon && (iconUtils_1.isRemoteIcon(icon) || iconUtils_1.isDataURI(icon))) {
3629
+ if (icon && ((0, iconUtils_1.isRemoteIcon)(icon) || (0, iconUtils_1.isDataURI)(icon))) {
3562
3630
  // eslint-disable-next-line no-param-reassign
3563
3631
  IconComponent = React.createElement(RemoteIcon_1.default, {
3564
3632
  iconURL: icon
@@ -3573,7 +3641,7 @@ var computeVizProps = function computeVizProps(_ref) {
3573
3641
  };
3574
3642
  };
3575
3643
  exports.computeVizProps = computeVizProps;
3576
- var viz = withTrellis_1.default(withDashboardViz_1.default({
3644
+ var viz = (0, withTrellis_1.default)((0, withDashboardViz_1.default)({
3577
3645
  ReactViz: SingleValueIcon_1.default,
3578
3646
  vizConfig: config_1.default,
3579
3647
  computeVizProps: exports.computeVizProps
@@ -3583,73 +3651,21 @@ exports.default = viz;
3583
3651
 
3584
3652
  /***/ }),
3585
3653
 
3586
- /***/ 468:
3654
+ /***/ 471:
3587
3655
  /***/ (function(module, exports) {
3588
3656
 
3589
3657
  module.exports = require("@splunk/visualizations-shared/RemoteIcon");
3590
3658
 
3591
3659
  /***/ }),
3592
3660
 
3593
- /***/ 469:
3661
+ /***/ 472:
3594
3662
  /***/ (function(module, exports) {
3595
3663
 
3596
3664
  module.exports = require("@splunk/visualizations-shared/iconUtils");
3597
3665
 
3598
3666
  /***/ }),
3599
3667
 
3600
- /***/ 47:
3601
- /***/ (function(module, exports, __webpack_require__) {
3602
-
3603
- "use strict";
3604
-
3605
-
3606
- Object.defineProperty(exports, "__esModule", {
3607
- value: true
3608
- });
3609
- var React = __webpack_require__(1);
3610
- var colorUtils_1 = __webpack_require__(12);
3611
- var variables_1 = __webpack_require__(11);
3612
- var IconPlaceholder_1 = __webpack_require__(31);
3613
- var VizBehavior_1 = __webpack_require__(6);
3614
- var hocUtils_1 = __webpack_require__(15);
3615
- var withPlaceholder = function withPlaceholder(Visualization) {
3616
- var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
3617
- var config = Visualization.config;
3618
- var themes = config.themes;
3619
- var Wrapper = function Wrapper(props) {
3620
- var _a, _b;
3621
- var dataSources = props.dataSources,
3622
- loading = props.loading,
3623
- options = props.options,
3624
- height = props.height,
3625
- width = props.width;
3626
- var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
3627
- 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);
3628
- var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
3629
- var iconColor = variables_1.default.contentColorActive(props);
3630
- if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
3631
- return React.createElement(IconPlaceholder_1.default, {
3632
- "data-test": "icon-placeholder",
3633
- icon: icon,
3634
- width: width,
3635
- height: height,
3636
- backgroundColor: bgColorFromTheme,
3637
- iconColor: iconColor
3638
- });
3639
- }
3640
- return React.createElement(Visualization, Object.assign({}, props));
3641
- };
3642
- hocUtils_1.extendStaticWrapperProps({
3643
- Wrapper: Wrapper,
3644
- Visualization: Visualization
3645
- });
3646
- return Wrapper;
3647
- };
3648
- exports.default = withPlaceholder;
3649
-
3650
- /***/ }),
3651
-
3652
- /***/ 470:
3668
+ /***/ 473:
3653
3669
  /***/ (function(module, exports, __webpack_require__) {
3654
3670
 
3655
3671
  "use strict";
@@ -3661,20 +3677,20 @@ Object.defineProperty(exports, "__esModule", {
3661
3677
  });
3662
3678
  var i18n_1 = __webpack_require__(2);
3663
3679
  var schemaUtils_1 = __webpack_require__(16);
3664
- var PresetPalettes_1 = __webpack_require__(60);
3680
+ var PresetPalettes_1 = __webpack_require__(61);
3665
3681
  var pick_1 = __webpack_require__(23);
3666
3682
  var variables_1 = __webpack_require__(11);
3667
3683
  var configUtils_1 = __webpack_require__(22);
3668
- var singleValueContext_1 = __webpack_require__(134);
3669
- var StaticMajorAndTrendLayout_1 = __webpack_require__(103);
3670
- var StaticBackgroundColorEditor_1 = __webpack_require__(89);
3671
- var StaticIconColorEditor_1 = __webpack_require__(471);
3672
- var StaticMajorColorEditor_1 = __webpack_require__(104);
3673
- var StaticTrendColorEditor_1 = __webpack_require__(105);
3674
- var DynamicMajorColorEditor_1 = __webpack_require__(100);
3675
- var DynamicTrendColorEditor_1 = __webpack_require__(101);
3676
- var DynamicBackgroundColorEditor_1 = __webpack_require__(102);
3677
- var TrellisEditors_1 = __webpack_require__(106);
3684
+ var singleValueContext_1 = __webpack_require__(135);
3685
+ var StaticMajorAndTrendLayout_1 = __webpack_require__(102);
3686
+ var StaticBackgroundColorEditor_1 = __webpack_require__(90);
3687
+ var StaticIconColorEditor_1 = __webpack_require__(474);
3688
+ var StaticMajorColorEditor_1 = __webpack_require__(103);
3689
+ var StaticTrendColorEditor_1 = __webpack_require__(104);
3690
+ var DynamicMajorColorEditor_1 = __webpack_require__(136);
3691
+ var DynamicTrendColorEditor_1 = __webpack_require__(100);
3692
+ var DynamicBackgroundColorEditor_1 = __webpack_require__(101);
3693
+ var TrellisEditors_1 = __webpack_require__(105);
3678
3694
  var VizBehavior_1 = __webpack_require__(6);
3679
3695
  var configUtils_2 = __webpack_require__(20);
3680
3696
  var VizCategory_1 = __webpack_require__(35);
@@ -3770,7 +3786,7 @@ var optionsSchema = {
3770
3786
  default: 'off',
3771
3787
  description: 'Specify the layout method by which to display the visualization, which splits the data into individual visualizations based on a certain category.',
3772
3788
  type: 'string',
3773
- pattern: schemaUtils_1.getPattern([layoutUtils_1.LAYOUT_TYPE.Off, layoutUtils_1.LAYOUT_TYPE.Trellis]),
3789
+ pattern: (0, schemaUtils_1.getPattern)([layoutUtils_1.LAYOUT_TYPE.Off, layoutUtils_1.LAYOUT_TYPE.Trellis]),
3774
3790
  enum: [layoutUtils_1.LAYOUT_TYPE.Off, layoutUtils_1.LAYOUT_TYPE.Trellis]
3775
3791
  },
3776
3792
  trendColor: {
@@ -3782,7 +3798,7 @@ var optionsSchema = {
3782
3798
  trendDisplay: {
3783
3799
  default: 'absolute',
3784
3800
  description: 'Specify whether the trend value is displayed as a percentage or an absolute count.',
3785
- pattern: schemaUtils_1.getPattern(['off', 'percent', 'absolute']),
3801
+ pattern: (0, schemaUtils_1.getPattern)(['off', 'percent', 'absolute']),
3786
3802
  type: 'string'
3787
3803
  },
3788
3804
  trendFontSize: {
@@ -3838,7 +3854,7 @@ var optionsSchema = {
3838
3854
  unitPosition: {
3839
3855
  default: 'after',
3840
3856
  description: 'Specify whether the unit text should appear before or after the major value.',
3841
- pattern: schemaUtils_1.getPattern(['before', 'after']),
3857
+ pattern: (0, schemaUtils_1.getPattern)(['before', 'after']),
3842
3858
  type: 'string'
3843
3859
  }
3844
3860
  };
@@ -3856,14 +3872,14 @@ var basePresetOptions = {
3856
3872
  };
3857
3873
  var presets = [{
3858
3874
  // dummy context variables to allow for resetting of unused context states
3859
- label: i18n_1._('None'),
3875
+ label: (0, i18n_1._)('None'),
3860
3876
  name: 'singleValueIcon.none',
3861
3877
  value: {
3862
3878
  context: Object.assign({}, basePresetContext),
3863
3879
  options: Object.assign({}, basePresetOptions)
3864
3880
  }
3865
3881
  }, {
3866
- label: i18n_1._('Icon'),
3882
+ label: (0, i18n_1._)('Icon'),
3867
3883
  name: 'singleValueIcon.icon',
3868
3884
  value: {
3869
3885
  context: Object.assign(Object.assign({}, basePresetContext), {
@@ -3874,7 +3890,7 @@ var presets = [{
3874
3890
  })
3875
3891
  }
3876
3892
  }, {
3877
- label: i18n_1._('Major value'),
3893
+ label: (0, i18n_1._)('Major value'),
3878
3894
  name: 'singleValueIcon.majorValue',
3879
3895
  value: {
3880
3896
  context: Object.assign(Object.assign({}, basePresetContext), {
@@ -3885,7 +3901,7 @@ var presets = [{
3885
3901
  })
3886
3902
  }
3887
3903
  }, {
3888
- label: i18n_1._('Trend value'),
3904
+ label: (0, i18n_1._)('Trend value'),
3889
3905
  name: 'singleValueIcon.trend',
3890
3906
  value: {
3891
3907
  context: Object.assign(Object.assign({}, basePresetContext), {
@@ -3896,7 +3912,7 @@ var presets = [{
3896
3912
  })
3897
3913
  }
3898
3914
  }, {
3899
- label: i18n_1._('Icon and Major value'),
3915
+ label: (0, i18n_1._)('Icon and Major value'),
3900
3916
  name: 'singleValueIcon.iconAndMajorValue',
3901
3917
  value: {
3902
3918
  context: Object.assign(Object.assign({}, basePresetContext), {
@@ -3909,7 +3925,7 @@ var presets = [{
3909
3925
  })
3910
3926
  }
3911
3927
  }, {
3912
- label: i18n_1._('Background'),
3928
+ label: (0, i18n_1._)('Background'),
3913
3929
  name: 'singleValueIcon.background',
3914
3930
  value: {
3915
3931
  context: Object.assign(Object.assign({}, basePresetContext), {
@@ -3927,7 +3943,7 @@ var presets = [{
3927
3943
  */
3928
3944
  var themes = {
3929
3945
  defaultFontColor: function defaultFontColor(props) {
3930
- return pick_1.default({
3946
+ return (0, pick_1.default)({
3931
3947
  enterprise: {
3932
3948
  dark: variables_1.default.textColor(props),
3933
3949
  light: variables_1.default.gray20(props)
@@ -3936,16 +3952,16 @@ var themes = {
3936
3952
  })(props);
3937
3953
  },
3938
3954
  defaultBlockFontColor: function defaultBlockFontColor(props) {
3939
- return pick_1.default({
3955
+ return (0, pick_1.default)({
3940
3956
  enterprise: variables_1.default.white(props),
3941
3957
  prisma: variables_1.default.contentColorActive(props)
3942
3958
  })(props);
3943
3959
  }
3944
3960
  };
3945
3961
  var editorConfig = [{
3946
- label: i18n_1._('Data configurations'),
3962
+ label: (0, i18n_1._)('Data configurations'),
3947
3963
  layout: [[{
3948
- label: i18n_1._('Value'),
3964
+ label: (0, i18n_1._)('Value'),
3949
3965
  editor: 'editor.columnSelector',
3950
3966
  option: 'majorValue',
3951
3967
  context: 'valuesContext',
@@ -3968,24 +3984,24 @@ var editorConfig = [{
3968
3984
  }
3969
3985
  }]]
3970
3986
  }, {
3971
- label: i18n_1._('Data display'),
3987
+ label: (0, i18n_1._)('Data display'),
3972
3988
  layout: [[{
3973
- label: i18n_1._('Show major and trend value'),
3989
+ label: (0, i18n_1._)('Show major and trend value'),
3974
3990
  option: 'showValue',
3975
3991
  editor: 'editor.toggle'
3976
3992
  }]].concat(_toConsumableArray(StaticMajorAndTrendLayout_1.default), [[{
3977
- label: i18n_1._('Trend display'),
3993
+ label: (0, i18n_1._)('Trend display'),
3978
3994
  option: 'trendDisplay',
3979
3995
  editor: 'editor.select',
3980
3996
  editorProps: {
3981
3997
  values: [{
3982
- label: i18n_1._('Percent'),
3998
+ label: (0, i18n_1._)('Percent'),
3983
3999
  value: 'percent'
3984
4000
  }, {
3985
- label: i18n_1._('Absolute'),
4001
+ label: (0, i18n_1._)('Absolute'),
3986
4002
  value: 'absolute'
3987
4003
  }, {
3988
- label: i18n_1._('Off'),
4004
+ label: (0, i18n_1._)('Off'),
3989
4005
  value: 'off'
3990
4006
  }]
3991
4007
  },
@@ -3995,9 +4011,9 @@ var editorConfig = [{
3995
4011
  }
3996
4012
  }]], _toConsumableArray(TrellisEditors_1.TrellisEditorConfig))
3997
4013
  }, {
3998
- label: i18n_1._('Color and style'),
4014
+ label: (0, i18n_1._)('Color and style'),
3999
4015
  layout: [[{
4000
- label: i18n_1._('Dynamic elements'),
4016
+ label: (0, i18n_1._)('Dynamic elements'),
4001
4017
  key: 'presetSelector',
4002
4018
  editor: 'editor.presetSelector',
4003
4019
  editorProps: {
@@ -4005,41 +4021,41 @@ var editorConfig = [{
4005
4021
  value: function value(_ref3) {
4006
4022
  var context = _ref3.context,
4007
4023
  options = _ref3.options;
4008
- var initialPreset = configUtils_2.getInitialPreset(context, options, presets);
4024
+ var initialPreset = (0, configUtils_2.getInitialPreset)(context, options, presets);
4009
4025
  return initialPreset && initialPreset.label || null;
4010
4026
  }
4011
4027
  }
4012
4028
  }], StaticIconColorEditor_1.default, [{
4013
- label: i18n_1._('Icon'),
4029
+ label: (0, i18n_1._)('Icon'),
4014
4030
  option: 'iconColor',
4015
4031
  context: 'iconColorEditorConfig',
4016
4032
  editor: 'editor.dynamicColor',
4017
4033
  showEditor: function showEditor(_ref4) {
4018
4034
  var options = _ref4.options;
4019
- return configUtils_1.isDynamicOption(options.iconColor);
4035
+ return (0, configUtils_1.isDynamicOption)(options.iconColor);
4020
4036
  },
4021
4037
  editorProps: {
4022
4038
  labelPosition: 'top',
4023
4039
  flyoutTitle: 'Dynamic coloring: icon',
4024
4040
  formatters: [{
4025
- label: i18n_1._('Ranges'),
4041
+ label: (0, i18n_1._)('Ranges'),
4026
4042
  value: 'rangeValue',
4027
4043
  defaults: {
4028
4044
  trendValue: singleValueContext_1.defaultContext.trendColorConfig,
4029
4045
  majorValue: singleValueContext_1.defaultContext.majorColorConfig
4030
4046
  }
4031
4047
  }, {
4032
- label: i18n_1._('Matches'),
4048
+ label: (0, i18n_1._)('Matches'),
4033
4049
  value: 'matchValue',
4034
4050
  defaults: {
4035
4051
  majorValue: singleValueContext_1.defaultContext.majorColorMatchConfig
4036
4052
  }
4037
4053
  }],
4038
4054
  dataSelectors: [{
4039
- label: i18n_1._('Major value'),
4055
+ label: (0, i18n_1._)('Major value'),
4040
4056
  value: 'majorValue'
4041
4057
  }, {
4042
- label: i18n_1._('Trend'),
4058
+ label: (0, i18n_1._)('Trend'),
4043
4059
  value: 'trendValue'
4044
4060
  }],
4045
4061
  defaultPalettesConfig: PresetPalettes_1.defaultPalettesConfig
@@ -4048,14 +4064,14 @@ var editorConfig = [{
4048
4064
  editorProps: {
4049
4065
  themes: themes
4050
4066
  }
4051
- })], [DynamicMajorColorEditor_1.getDynamicMajorColorEditor({
4067
+ })], [(0, DynamicMajorColorEditor_1.getDynamicMajorColorEditor)({
4052
4068
  defaultContext: singleValueContext_1.defaultContext,
4053
4069
  defaultPalettesConfig: PresetPalettes_1.defaultPalettesConfig
4054
4070
  })], [Object.assign(Object.assign({}, StaticTrendColorEditor_1.default), {
4055
4071
  editorProps: {
4056
4072
  themes: themes
4057
4073
  }
4058
- })], [DynamicTrendColorEditor_1.getDynamicTrendColorEditor({
4074
+ })], [(0, DynamicTrendColorEditor_1.getDynamicTrendColorEditor)({
4059
4075
  defaultContext: singleValueContext_1.defaultContext,
4060
4076
  defaultPalettesConfig: PresetPalettes_1.defaultPalettesConfig
4061
4077
  })], [Object.assign(Object.assign({}, StaticBackgroundColorEditor_1.default), {
@@ -4066,29 +4082,29 @@ var editorConfig = [{
4066
4082
  editorProps: {
4067
4083
  themes: themes
4068
4084
  }
4069
- })], [DynamicBackgroundColorEditor_1.getDynamicBackgroundColorEditor({
4085
+ })], [(0, DynamicBackgroundColorEditor_1.getDynamicBackgroundColorEditor)({
4070
4086
  defaultContext: singleValueContext_1.defaultContext,
4071
4087
  defaultPalettesConfig: PresetPalettes_1.defaultPalettesConfig
4072
4088
  })], [{
4073
- label: i18n_1._('Major value size (px)'),
4089
+ label: (0, i18n_1._)('Major value size (px)'),
4074
4090
  option: 'majorFontSize',
4075
4091
  editor: 'editor.number',
4076
4092
  editorProps: {
4077
4093
  min: 1
4078
4094
  },
4079
- placeholder: i18n_1._('Auto'),
4095
+ placeholder: (0, i18n_1._)('Auto'),
4080
4096
  showEditor: function showEditor(_ref5) {
4081
4097
  var options = _ref5.options;
4082
4098
  return options.showValue || options.showValue === undefined;
4083
4099
  }
4084
4100
  }, {
4085
- label: i18n_1._('Trend value size (px)'),
4101
+ label: (0, i18n_1._)('Trend value size (px)'),
4086
4102
  option: 'trendFontSize',
4087
4103
  editor: 'editor.number',
4088
4104
  editorProps: {
4089
4105
  min: 1
4090
4106
  },
4091
- placeholder: i18n_1._('Auto'),
4107
+ placeholder: (0, i18n_1._)('Auto'),
4092
4108
  showEditor: function showEditor(_ref6) {
4093
4109
  var options = _ref6.options;
4094
4110
  return options.showValue || options.showValue === undefined;
@@ -4110,7 +4126,7 @@ var config = {
4110
4126
  /**
4111
4127
  * viz name
4112
4128
  */
4113
- name: i18n_1._('Single value icon'),
4129
+ name: (0, i18n_1._)('Single value icon'),
4114
4130
  category: VizCategory_1.VizCategory.SINGLE_VALUE,
4115
4131
  /**
4116
4132
  * viz icon
@@ -4130,11 +4146,11 @@ var config = {
4130
4146
  supports: [VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS, VizBehavior_1.VizBehavior.EVENTS, VizBehavior_1.VizBehavior.TRELLIS],
4131
4147
  themes: themes
4132
4148
  };
4133
- exports.default = configUtils_2.enhanceConfig(config);
4149
+ exports.default = (0, configUtils_2.enhanceConfig)(config);
4134
4150
 
4135
4151
  /***/ }),
4136
4152
 
4137
- /***/ 471:
4153
+ /***/ 474:
4138
4154
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4139
4155
 
4140
4156
  "use strict";
@@ -4143,7 +4159,7 @@ __webpack_require__.r(__webpack_exports__);
4143
4159
  /* harmony import */ var _babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_toConsumableArray__WEBPACK_IMPORTED_MODULE_0__);
4144
4160
  /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
4145
4161
  /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_1__);
4146
- /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(50);
4162
+ /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(49);
4147
4163
  /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_2__);
4148
4164
  /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(22);
4149
4165
  /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_3__);
@@ -4176,7 +4192,14 @@ module.exports = require("@babel/runtime/helpers/extends");
4176
4192
 
4177
4193
  /***/ }),
4178
4194
 
4179
- /***/ 486:
4195
+ /***/ 49:
4196
+ /***/ (function(module, exports) {
4197
+
4198
+ module.exports = require("@splunk/visualizations-shared/colorConstants");
4199
+
4200
+ /***/ }),
4201
+
4202
+ /***/ 490:
4180
4203
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4181
4204
 
4182
4205
  "use strict";
@@ -4200,11 +4223,11 @@ var external_styled_components_ = __webpack_require__(4);
4200
4223
  var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
4201
4224
 
4202
4225
  // EXTERNAL MODULE: external "lodash/pick"
4203
- var pick_ = __webpack_require__(81);
4226
+ var pick_ = __webpack_require__(108);
4204
4227
  var pick_default = /*#__PURE__*/__webpack_require__.n(pick_);
4205
4228
 
4206
4229
  // EXTERNAL MODULE: external "lodash/isEmpty"
4207
- var isEmpty_ = __webpack_require__(82);
4230
+ var isEmpty_ = __webpack_require__(109);
4208
4231
  var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty_);
4209
4232
 
4210
4233
  // EXTERNAL MODULE: external "@splunk/visualization-context/FeatureFlagContext"
@@ -4226,10 +4249,10 @@ var Message_ = __webpack_require__(10);
4226
4249
  var Message_default = /*#__PURE__*/__webpack_require__.n(Message_);
4227
4250
 
4228
4251
  // EXTERNAL MODULE: ./src/common/components/VizStyleWrapper.jsx
4229
- var VizStyleWrapper = __webpack_require__(72);
4252
+ var VizStyleWrapper = __webpack_require__(73);
4230
4253
 
4231
4254
  // EXTERNAL MODULE: ./src/common/components/TrellisTitle.tsx
4232
- var TrellisTitle = __webpack_require__(78);
4255
+ var TrellisTitle = __webpack_require__(79);
4233
4256
 
4234
4257
  // EXTERNAL MODULE: ./src/common/utils/layoutUtils.ts
4235
4258
  var layoutUtils = __webpack_require__(58);
@@ -4239,27 +4262,27 @@ var defineProperty_ = __webpack_require__(7);
4239
4262
  var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty_);
4240
4263
 
4241
4264
  // EXTERNAL MODULE: external "@splunk/visualizations/SingleValueBasic"
4242
- var SingleValueBasic_ = __webpack_require__(140);
4265
+ var SingleValueBasic_ = __webpack_require__(142);
4243
4266
  var SingleValueBasic_default = /*#__PURE__*/__webpack_require__.n(SingleValueBasic_);
4244
4267
 
4245
4268
  // EXTERNAL MODULE: external "@splunk/react-icons/enterprise/Activity"
4246
- var Activity_ = __webpack_require__(168);
4269
+ var Activity_ = __webpack_require__(171);
4247
4270
  var Activity_default = /*#__PURE__*/__webpack_require__.n(Activity_);
4248
4271
 
4249
4272
  // EXTERNAL MODULE: external "@splunk/react-icons/enterprise/Clock"
4250
- var Clock_ = __webpack_require__(169);
4273
+ var Clock_ = __webpack_require__(172);
4251
4274
  var Clock_default = /*#__PURE__*/__webpack_require__.n(Clock_);
4252
4275
 
4253
4276
  // EXTERNAL MODULE: external "@splunk/react-icons/enterprise/Pencil"
4254
- var Pencil_ = __webpack_require__(170);
4277
+ var Pencil_ = __webpack_require__(173);
4255
4278
  var Pencil_default = /*#__PURE__*/__webpack_require__.n(Pencil_);
4256
4279
 
4257
4280
  // EXTERNAL MODULE: external "@splunk/react-icons/enterprise/Star"
4258
- var Star_ = __webpack_require__(171);
4281
+ var Star_ = __webpack_require__(174);
4259
4282
  var Star_default = /*#__PURE__*/__webpack_require__.n(Star_);
4260
4283
 
4261
4284
  // EXTERNAL MODULE: external "@splunk/react-icons/enterprise/Question"
4262
- var Question_ = __webpack_require__(172);
4285
+ var Question_ = __webpack_require__(175);
4263
4286
  var Question_default = /*#__PURE__*/__webpack_require__.n(Question_);
4264
4287
 
4265
4288
  // EXTERNAL MODULE: ./src/common/utils/singleValueUtils.js
@@ -4903,13 +4926,6 @@ SingleValueIcon_SingleValueIcon.defaultProps = {
4903
4926
 
4904
4927
  /***/ }),
4905
4928
 
4906
- /***/ 50:
4907
- /***/ (function(module, exports) {
4908
-
4909
- module.exports = require("@splunk/visualizations-shared/colorConstants");
4910
-
4911
- /***/ }),
4912
-
4913
4929
  /***/ 54:
4914
4930
  /***/ (function(module, exports) {
4915
4931
 
@@ -4942,13 +4958,6 @@ var LAYOUT_TYPE;
4942
4958
 
4943
4959
  /***/ }),
4944
4960
 
4945
- /***/ 59:
4946
- /***/ (function(module, exports) {
4947
-
4948
- module.exports = require("@splunk/themes");
4949
-
4950
- /***/ }),
4951
-
4952
4961
  /***/ 6:
4953
4962
  /***/ (function(module, exports, __webpack_require__) {
4954
4963
 
@@ -4989,6 +4998,13 @@ var VizBehavior;
4989
4998
  /***/ 60:
4990
4999
  /***/ (function(module, exports) {
4991
5000
 
5001
+ module.exports = require("@splunk/themes");
5002
+
5003
+ /***/ }),
5004
+
5005
+ /***/ 61:
5006
+ /***/ (function(module, exports) {
5007
+
4992
5008
  module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
4993
5009
 
4994
5010
  /***/ }),
@@ -5000,7 +5016,7 @@ module.exports = require("@babel/runtime/helpers/defineProperty");
5000
5016
 
5001
5017
  /***/ }),
5002
5018
 
5003
- /***/ 72:
5019
+ /***/ 73:
5004
5020
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5005
5021
 
5006
5022
  "use strict";
@@ -5025,7 +5041,7 @@ VizStyleWrapper.displayName = 'VizStyleWrapper';
5025
5041
 
5026
5042
  /***/ }),
5027
5043
 
5028
- /***/ 78:
5044
+ /***/ 79:
5029
5045
  /***/ (function(module, exports, __webpack_require__) {
5030
5046
 
5031
5047
  "use strict";
@@ -5072,28 +5088,21 @@ module.exports = require("@babel/runtime/helpers/toConsumableArray");
5072
5088
 
5073
5089
  /***/ }),
5074
5090
 
5075
- /***/ 80:
5091
+ /***/ 83:
5076
5092
  /***/ (function(module, exports) {
5077
5093
 
5078
5094
  module.exports = require("@splunk/visualizations-shared/trellisUtils");
5079
5095
 
5080
5096
  /***/ }),
5081
5097
 
5082
- /***/ 81:
5083
- /***/ (function(module, exports) {
5084
-
5085
- module.exports = require("lodash/pick");
5086
-
5087
- /***/ }),
5088
-
5089
- /***/ 82:
5098
+ /***/ 9:
5090
5099
  /***/ (function(module, exports) {
5091
5100
 
5092
- module.exports = require("lodash/isEmpty");
5101
+ module.exports = require("@babel/runtime/helpers/classCallCheck");
5093
5102
 
5094
5103
  /***/ }),
5095
5104
 
5096
- /***/ 89:
5105
+ /***/ 90:
5097
5106
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
5098
5107
 
5099
5108
  "use strict";
@@ -5117,14 +5126,7 @@ var StaticBackgroundColorEditor = {
5117
5126
 
5118
5127
  /***/ }),
5119
5128
 
5120
- /***/ 9:
5121
- /***/ (function(module, exports) {
5122
-
5123
- module.exports = require("@babel/runtime/helpers/classCallCheck");
5124
-
5125
- /***/ }),
5126
-
5127
- /***/ 92:
5129
+ /***/ 93:
5128
5130
  /***/ (function(module, exports) {
5129
5131
 
5130
5132
  module.exports = require("@splunk/react-ui/Paginator");