@splunk/visualizations 25.0.0 → 25.1.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 (181) hide show
  1. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_basic.png +0 -0
  2. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_custom_base_layer_tile_server.png +0 -0
  3. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_dynamic_color.png +0 -0
  4. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_static_color.png +0 -0
  5. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_static_color_with_no_seriesColors.png +0 -0
  6. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_scale_off.png +0 -0
  7. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_scale_unit_metric.png +0 -0
  8. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Area_Editor.png +0 -0
  9. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bar_Editor.png +0 -0
  10. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bubble_Editor.png +0 -0
  11. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_ChoroplethSvg_Editor.png +0 -0
  12. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Column_Editor.png +0 -0
  13. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Ellipse_Editor.png +0 -0
  14. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_FillerGauge_Editor.png +0 -0
  15. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Image_Editor.png +0 -0
  16. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Line_Editor.png +0 -0
  17. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_LinkGraph_Editor.png +0 -0
  18. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Map_Editor.png +0 -0
  19. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Markdown_Editor.png +0 -0
  20. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_MarkerGauge_Editor.png +0 -0
  21. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Parallel_Coordinates_Editor.png +0 -0
  22. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Pie_Editor.png +0 -0
  23. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Punchcard_Editor.png +0 -0
  24. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Rectangle_Editor.png +0 -0
  25. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Sankey_Editor.png +0 -0
  26. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Scatter_Editor.png +0 -0
  27. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Editor.png +0 -0
  28. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Icon_Editor.png +0 -0
  29. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Radial_Editor.png +0 -0
  30. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Table_Editor.png +0 -0
  31. package/.loki/reference/chrome_docker_Visualizations_Line_Line_Placeholder_if_datasource_does_not_have_any_data.png +0 -0
  32. package/.loki/reference/chrome_docker_Visualizations_Line_Line_Placeholder_if_viz_does_not_connect_to_datasource.png +0 -0
  33. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Basic_Map.png +0 -0
  34. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer.png +0 -0
  35. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET.png +0 -0
  36. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET_Dynamic_Coloring.png +0 -0
  37. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Internal_Fields.png +0 -0
  38. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Static_Coloring.png +0 -0
  39. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_Dynamic_Coloring.png +0 -0
  40. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer.png +0 -0
  41. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Dynamic_coloring.png +0 -0
  42. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Result_Limit_Set_To_3.png +0 -0
  43. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Restricted_Zoom.png +0 -0
  44. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Set_Map_tiles.png +0 -0
  45. package/Area.config.js +166 -152
  46. package/Area.config.js.map +1 -1
  47. package/Area.js +362 -433
  48. package/Area.js.map +1 -1
  49. package/Bar.config.js +168 -148
  50. package/Bar.config.js.map +1 -1
  51. package/Bar.js +364 -429
  52. package/Bar.js.map +1 -1
  53. package/Bubble.config.js +155 -117
  54. package/Bubble.config.js.map +1 -1
  55. package/Bubble.js +353 -400
  56. package/Bubble.js.map +1 -1
  57. package/ChoroplethSvg.config.js +112 -82
  58. package/ChoroplethSvg.config.js.map +1 -1
  59. package/ChoroplethSvg.js +336 -391
  60. package/ChoroplethSvg.js.map +1 -1
  61. package/Column.config.js +164 -146
  62. package/Column.config.js.map +1 -1
  63. package/Column.js +360 -427
  64. package/Column.js.map +1 -1
  65. package/Ellipse.config.js +111 -80
  66. package/Ellipse.config.js.map +1 -1
  67. package/Ellipse.js +317 -371
  68. package/Ellipse.js.map +1 -1
  69. package/FillerGauge.config.js +117 -86
  70. package/FillerGauge.config.js.map +1 -1
  71. package/FillerGauge.js +324 -378
  72. package/FillerGauge.js.map +1 -1
  73. package/Image.config.js +100 -76
  74. package/Image.config.js.map +1 -1
  75. package/Image.js +725 -789
  76. package/Image.js.map +1 -1
  77. package/Line.config.js +164 -137
  78. package/Line.config.js.map +1 -1
  79. package/Line.js +360 -418
  80. package/Line.js.map +1 -1
  81. package/LinkGraph.config.js +137 -112
  82. package/LinkGraph.config.js.map +1 -1
  83. package/LinkGraph.js +351 -410
  84. package/LinkGraph.js.map +1 -1
  85. package/Map.config.js +140 -97
  86. package/Map.config.js.map +1 -1
  87. package/Map.js +517 -523
  88. package/Map.js.map +1 -1
  89. package/Markdown.config.js +138 -115
  90. package/Markdown.config.js.map +1 -1
  91. package/Markdown.js +502 -553
  92. package/Markdown.js.map +1 -1
  93. package/MarkerGauge.config.js +218 -195
  94. package/MarkerGauge.config.js.map +1 -1
  95. package/MarkerGauge.js +2926 -3098
  96. package/MarkerGauge.js.map +1 -1
  97. package/ParallelCoordinates.config.js +158 -133
  98. package/ParallelCoordinates.config.js.map +1 -1
  99. package/ParallelCoordinates.js +319 -377
  100. package/ParallelCoordinates.js.map +1 -1
  101. package/Pie.config.js +160 -136
  102. package/Pie.config.js.map +1 -1
  103. package/Pie.js +1316 -1492
  104. package/Pie.js.map +1 -1
  105. package/Punchcard.config.js +164 -141
  106. package/Punchcard.config.js.map +1 -1
  107. package/Punchcard.js +344 -404
  108. package/Punchcard.js.map +1 -1
  109. package/Rectangle.config.js +280 -248
  110. package/Rectangle.config.js.map +1 -1
  111. package/Rectangle.js +1247 -1303
  112. package/Rectangle.js.map +1 -1
  113. package/Sankey.config.js +175 -143
  114. package/Sankey.config.js.map +1 -1
  115. package/Sankey.js +377 -426
  116. package/Sankey.js.map +1 -1
  117. package/Scatter.config.js +156 -117
  118. package/Scatter.config.js.map +1 -1
  119. package/Scatter.js +550 -601
  120. package/Scatter.js.map +1 -1
  121. package/SingleValue.config.js +147 -115
  122. package/SingleValue.config.js.map +1 -1
  123. package/SingleValue.js +542 -598
  124. package/SingleValue.js.map +1 -1
  125. package/SingleValueBasic.js +19 -19
  126. package/SingleValueBasic.js.map +1 -1
  127. package/SingleValueIcon.config.js +154 -120
  128. package/SingleValueIcon.config.js.map +1 -1
  129. package/SingleValueIcon.js +373 -424
  130. package/SingleValueIcon.js.map +1 -1
  131. package/SingleValueRadial.config.js +143 -111
  132. package/SingleValueRadial.config.js.map +1 -1
  133. package/SingleValueRadial.js +612 -668
  134. package/SingleValueRadial.js.map +1 -1
  135. package/Table.config.js +176 -152
  136. package/Table.config.js.map +1 -1
  137. package/Table.js +740 -797
  138. package/Table.js.map +1 -1
  139. package/common/Charting.js +11 -11
  140. package/common/Charting.js.map +1 -1
  141. package/common/ChartingApi.js +2 -2
  142. package/common/ChartingApi.js.map +1 -1
  143. package/common/EventsDoc.js +12 -12
  144. package/common/EventsDoc.js.map +1 -1
  145. package/common/GaugeMajorTicks.js +8 -8
  146. package/common/GaugeMajorTicks.js.map +1 -1
  147. package/common/GaugeValueMarker.js +8 -8
  148. package/common/GaugeValueMarker.js.map +1 -1
  149. package/common/OptionsDoc.js +51 -327
  150. package/common/OptionsDoc.js.map +1 -1
  151. package/common/OverviewDoc.js +22 -22
  152. package/common/OverviewDoc.js.map +1 -1
  153. package/common/SplunkVisualization.js +4 -4
  154. package/common/SplunkVisualization.js.map +1 -1
  155. package/common/SplunkVisualizationApi.js +2 -2
  156. package/common/SplunkVisualizationApi.js.map +1 -1
  157. package/common/ThemesDoc.js +19 -19
  158. package/common/ThemesDoc.js.map +1 -1
  159. package/common/chartingUtils.js +4 -4
  160. package/common/chartingUtils.js.map +1 -1
  161. package/common/docUtils.js +4 -4
  162. package/common/docUtils.js.map +1 -1
  163. package/common/gaugeUtils.js +13 -13
  164. package/common/gaugeUtils.js.map +1 -1
  165. package/common/shapeUtils.js +8 -8
  166. package/common/shapeUtils.js.map +1 -1
  167. package/common/utils/configUtils.js +42 -18
  168. package/common/utils/configUtils.js.map +1 -1
  169. package/common/utils/hocUtils.js +6 -86
  170. package/common/utils/hocUtils.js.map +1 -1
  171. package/common/utils/{JSONSchemaUtils.js → mapUtils.js} +89 -29
  172. package/common/utils/mapUtils.js.map +1 -0
  173. package/common/utils/singleValueUtils.js +14 -12
  174. package/common/utils/singleValueUtils.js.map +1 -1
  175. package/common/utils/testHelper.js +8 -8
  176. package/common/utils/testHelper.js.map +1 -1
  177. package/common/withDashboardViz.js +120 -207
  178. package/common/withDashboardViz.js.map +1 -1
  179. package/package.json +12 -12
  180. package/.loki/reference/chrome_docker_PureVisualizations_SvgChoroplethDynamic_SVG_Of_Size_Greater_Than_2_MB_Render.png +0 -0
  181. package/common/utils/JSONSchemaUtils.js.map +0 -1
package/SingleValue.js CHANGED
@@ -87,7 +87,7 @@ module.exports =
87
87
  /******/
88
88
  /******/
89
89
  /******/ // Load entry module and return exports
90
- /******/ return __webpack_require__(__webpack_require__.s = 254);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 257);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -109,11 +109,18 @@ module.exports = require("react");
109
109
  /***/ 10:
110
110
  /***/ (function(module, exports) {
111
111
 
112
- module.exports = require("@splunk/themes/variables");
112
+ module.exports = require("@babel/runtime/helpers/classCallCheck");
113
113
 
114
114
  /***/ }),
115
115
 
116
- /***/ 109:
116
+ /***/ 11:
117
+ /***/ (function(module, exports) {
118
+
119
+ module.exports = require("@splunk/visualizations-shared/colorUtils");
120
+
121
+ /***/ }),
122
+
123
+ /***/ 111:
117
124
  /***/ (function(module, exports, __webpack_require__) {
118
125
 
119
126
  "use strict";
@@ -158,19 +165,12 @@ exports.defaultContext = {
158
165
 
159
166
  /***/ }),
160
167
 
161
- /***/ 11:
162
- /***/ (function(module, exports) {
163
-
164
- module.exports = require("@splunk/visualizations-shared/Message");
165
-
166
- /***/ }),
167
-
168
- /***/ 110:
168
+ /***/ 112:
169
169
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
170
170
 
171
171
  "use strict";
172
172
  __webpack_require__.r(__webpack_exports__);
173
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
173
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
174
174
  /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
175
175
 
176
176
  var StaticMajorAndTrendLayout = [[{
@@ -265,20 +265,6 @@ var StaticMajorAndTrendLayout = [[{
265
265
  /***/ }),
266
266
 
267
267
  /***/ 12:
268
- /***/ (function(module, exports) {
269
-
270
- module.exports = require("@babel/runtime/helpers/classCallCheck");
271
-
272
- /***/ }),
273
-
274
- /***/ 13:
275
- /***/ (function(module, exports) {
276
-
277
- module.exports = require("@splunk/visualizations-shared/colorUtils");
278
-
279
- /***/ }),
280
-
281
- /***/ 14:
282
268
  /***/ (function(module, exports, __webpack_require__) {
283
269
 
284
270
  "use strict";
@@ -292,11 +278,11 @@ var React = __webpack_require__(1);
292
278
 
293
279
  var styled_components_1 = __webpack_require__(4);
294
280
 
295
- var SizeAwareWrapper_1 = __webpack_require__(18);
281
+ var SizeAwareWrapper_1 = __webpack_require__(19);
296
282
 
297
- var style_1 = __webpack_require__(15);
283
+ var style_1 = __webpack_require__(14);
298
284
 
299
- var colorUtils_1 = __webpack_require__(13);
285
+ var colorUtils_1 = __webpack_require__(11);
300
286
 
301
287
  var Item = styled_components_1.default.div.attrs(function (_ref) {
302
288
  var width = _ref.width;
@@ -353,7 +339,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
353
339
 
354
340
  return React.createElement(FixSizeItem, {
355
341
  "data-test": "fix-size-item",
356
- "data-splunk-visualization-version": "25.0.0 - 5e0f30e5a",
342
+ "data-splunk-visualization-version": "25.1.0 - 812a9a4d8",
357
343
  width: width,
358
344
  height: height,
359
345
  backgroundColor: backgroundColor
@@ -375,35 +361,319 @@ exports.default = withFixedSizeContainer;
375
361
 
376
362
  /***/ }),
377
363
 
378
- /***/ 15:
364
+ /***/ 13:
365
+ /***/ (function(module, exports, __webpack_require__) {
366
+
367
+ "use strict";
368
+
369
+
370
+ Object.defineProperty(exports, "__esModule", {
371
+ value: true
372
+ });
373
+ exports.extendStaticWrapperProps = void 0;
374
+ /**
375
+ * @method extendStaticWrapperProps
376
+ * @param {Object} props
377
+ * @param {DashboardVizType} props.Wrapper
378
+ * @param {DashboardVizType} props.Visualization
379
+ */
380
+
381
+ var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
382
+ var Wrapper = _ref.Wrapper,
383
+ Visualization = _ref.Visualization;
384
+ var extendProperties = ['propTypes', 'defaultProps', 'config'];
385
+ extendProperties.forEach(function (prop) {
386
+ if (Visualization[prop]) {
387
+ // eslint-disable-next-line no-param-reassign
388
+ Wrapper[prop] = Visualization[prop];
389
+ }
390
+ });
391
+ };
392
+
393
+ exports.extendStaticWrapperProps = extendStaticWrapperProps;
394
+
395
+ /***/ }),
396
+
397
+ /***/ 14:
379
398
  /***/ (function(module, exports) {
380
399
 
381
400
  module.exports = require("@splunk/visualizations-shared/style");
382
401
 
383
402
  /***/ }),
384
403
 
385
- /***/ 16:
404
+ /***/ 15:
386
405
  /***/ (function(module, exports) {
387
406
 
388
407
  module.exports = require("@splunk/visualizations-shared/schemaUtils");
389
408
 
390
409
  /***/ }),
391
410
 
411
+ /***/ 16:
412
+ /***/ (function(module, exports, __webpack_require__) {
413
+
414
+ "use strict";
415
+
416
+
417
+ var _toConsumableArray = __webpack_require__(7);
418
+
419
+ var _defineProperty = __webpack_require__(6);
420
+
421
+ var __rest = this && this.__rest || function (s, e) {
422
+ var t = {};
423
+
424
+ for (var p in s) {
425
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
426
+ }
427
+
428
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
429
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
430
+ }
431
+ return t;
432
+ };
433
+
434
+ Object.defineProperty(exports, "__esModule", {
435
+ value: true
436
+ });
437
+ exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
438
+
439
+ var lodash_1 = __webpack_require__(3);
440
+
441
+ var schemaUtils_1 = __webpack_require__(15);
442
+
443
+ var VizBehavior_1 = __webpack_require__(5);
444
+
445
+ var dynamicOptionsDSLType = {
446
+ type: 'string',
447
+ pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
448
+ };
449
+ /**
450
+ * Helper function to extend an options schema with dynamic options DSL
451
+ * @param optionsSchema a visualization's options schema
452
+ * @returns an updated options schema that additionally allows strings starting with > for each option
453
+ */
454
+
455
+ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
456
+ var enhancedOptionsSchema = {};
457
+ Object.keys(optionsSchema).forEach(function (key) {
458
+ var _a = optionsSchema[key],
459
+ title = _a.title,
460
+ description = _a.description,
461
+ readOnly = _a.readOnly,
462
+ writeOnly = _a.writeOnly,
463
+ examples = _a.examples,
464
+ defaultValue = _a.default,
465
+ type = _a.type,
466
+ properties = _a.properties,
467
+ patternProperties = _a.patternProperties,
468
+ remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
469
+
470
+ var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
471
+ title: title
472
+ }), description !== undefined && {
473
+ description: description
474
+ }), readOnly !== undefined && {
475
+ readOnly: readOnly
476
+ }), writeOnly !== undefined && {
477
+ writeOnly: writeOnly
478
+ }), examples !== undefined && {
479
+ examples: examples
480
+ }), defaultValue !== undefined && {
481
+ default: defaultValue
482
+ });
483
+
484
+ if (type === 'object') {
485
+ enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
486
+ type: type
487
+ }), properties && {
488
+ properties: enhanceOptionsSchemaWithDynamicOptions(properties)
489
+ });
490
+
491
+ if (patternProperties) {
492
+ var enhancedPatternProperties = {};
493
+ Object.keys(patternProperties).forEach(function (opt) {
494
+ enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
495
+ });
496
+ enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
497
+ }
498
+ } else {
499
+ enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
500
+ anyOf: [Object.assign(Object.assign({}, type !== undefined && {
501
+ type: type
502
+ }), remainingSchemaEntry), dynamicOptionsDSLType]
503
+ });
504
+ }
505
+ });
506
+ return enhancedOptionsSchema;
507
+ }
508
+
509
+ exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
510
+ /**
511
+ * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
512
+ * this function also collapse all editor panels
513
+ * @param vizConfig a Visualization Config
514
+ * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
515
+ * and containing `open: false` for all editor panels in editorConfig
516
+ */
517
+
518
+ function enhanceConfig(vizConfig) {
519
+ var enhancedConfig = vizConfig;
520
+
521
+ if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
522
+ enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
523
+ }
524
+
525
+ enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
526
+ return Object.assign(Object.assign({}, config), {
527
+ open: false
528
+ });
529
+ });
530
+ return enhancedConfig;
531
+ }
532
+
533
+ exports.enhanceConfig = enhanceConfig;
534
+ /**
535
+ * Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
536
+ * Created for editor unit tests
537
+ * @param vizConfig a Visualization Config
538
+ * @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
539
+ */
540
+
541
+ function uncollapseEditorConfig(vizConfig) {
542
+ var editorPanelUncollapsedConfig = vizConfig;
543
+ editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
544
+ return Object.assign(Object.assign({}, config), {
545
+ open: true
546
+ });
547
+ });
548
+ return editorPanelUncollapsedConfig;
549
+ }
550
+
551
+ exports.uncollapseEditorConfig = uncollapseEditorConfig;
552
+
553
+ function isDynamicOption(option) {
554
+ return option && typeof option === 'string' && option.trim().startsWith('>') || false;
555
+ }
556
+
557
+ exports.isDynamicOption = isDynamicOption; // private helpers to improve readability of getInitialPreset
558
+ // this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset
559
+
560
+ /**
561
+ * this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset
562
+ * if a preset has explicitly specified a key as being undefined, the vizContext must also has that key as undefined, or else this CANNOT be the initialPreset
563
+ * the inverse is true; if a preset has key is NOT undefined, it must also be NOT undefined in the corresponding vizContext
564
+ * the internal config contents are irrelevant (as the user could customize them in source), just as long as the presence of `undefined`s match up
565
+ *
566
+ * Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
567
+ */
568
+
569
+ function hasCompatibleContexts(vizContext, presetContext) {
570
+ var presetContextKeys = Object.keys(presetContext);
571
+ return presetContextKeys.every(function (contextKey) {
572
+ return presetContext[contextKey] === undefined && vizContext[contextKey] === undefined || presetContext[contextKey] !== undefined && vizContext[contextKey] !== undefined;
573
+ });
574
+ }
575
+ /**
576
+ * Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
577
+ */
578
+
579
+
580
+ function hasCompatibleOptions(vizOptions, presetOptions) {
581
+ var presetOptionKeys = Object.keys(presetOptions);
582
+ return presetOptionKeys.every(function (optionKey) {
583
+ return isDynamicOption(presetOptions[optionKey]) === isDynamicOption(vizOptions[optionKey]);
584
+ });
585
+ }
586
+ /**
587
+ * Evaluates whether there is an initialPreset that fits the current state of vizContext + vizOptions
588
+ * This function ignores extraneous vizOptions or vizContext keys, as they could be outside the scope of what the preset is intended to configure
589
+ *
590
+ * @param {Object} vizContext - the current vizContext definition
591
+ * @param {Object} vizOptions - the current vizOptions definition
592
+ * @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
593
+ */
594
+
595
+
596
+ function getInitialPreset(vizContext, vizOptions, presets) {
597
+ return presets.find(function (preset) {
598
+ var presetContext = lodash_1.get(preset, ['value', 'context'], {});
599
+ var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
600
+ var presetContextKeys = Object.keys(presetContext);
601
+ var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
602
+ // if not, then the preset is invalid in config.ts
603
+
604
+ if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
605
+ return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
606
+ });
607
+ }
608
+
609
+ exports.getInitialPreset = getInitialPreset;
610
+ /**
611
+ * generates number precision values for a Select editor
612
+ *
613
+ * @param {Number} numPrecisionValues - number of integer precision values to generate
614
+ * @returns {{ label: string; value; string }[]} array of { label, value } tuples
615
+ */
616
+
617
+ function generatePrecisionValues(numPrecisionValues) {
618
+ return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
619
+ return {
620
+ label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
621
+ value: i
622
+ };
623
+ });
624
+ }
625
+
626
+ exports.generatePrecisionValues = generatePrecisionValues;
627
+ /**
628
+ * insert layout in layout array, return a new layout array instead of updating the original
629
+ *
630
+ * @param {EditorLayoutConfig[][]} layout - editor layout
631
+ * @param {Number} index - the index to insert layout item(s)
632
+ * @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
633
+ * @returns {EditorLayoutConfig[][]} new editor layout with insertion
634
+ */
635
+
636
+ var insertLayout = function insertLayout(layout, index) {
637
+ for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
638
+ layoutItems[_key - 2] = arguments[_key];
639
+ }
640
+
641
+ return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
642
+ };
643
+
644
+ exports.insertLayout = insertLayout;
645
+
646
+ /***/ }),
647
+
392
648
  /***/ 17:
393
649
  /***/ (function(module, exports) {
394
650
 
395
- module.exports = require("@babel/runtime/helpers/createClass");
651
+ module.exports = require("@splunk/visualizations-shared/configUtils");
396
652
 
397
653
  /***/ }),
398
654
 
399
655
  /***/ 18:
400
656
  /***/ (function(module, exports) {
401
657
 
402
- module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
658
+ module.exports = require("@babel/runtime/helpers/createClass");
403
659
 
404
660
  /***/ }),
405
661
 
406
662
  /***/ 19:
663
+ /***/ (function(module, exports) {
664
+
665
+ module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
666
+
667
+ /***/ }),
668
+
669
+ /***/ 2:
670
+ /***/ (function(module, exports) {
671
+
672
+ module.exports = require("@splunk/ui-utils/i18n");
673
+
674
+ /***/ }),
675
+
676
+ /***/ 20:
407
677
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
408
678
 
409
679
  "use strict";
@@ -438,15 +708,15 @@ __webpack_require__.r(__webpack_exports__);
438
708
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lighten", function() { return lighten; });
439
709
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "darken", function() { return darken; });
440
710
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "handleValueClickCallback", function() { return handleValueClickCallback; });
441
- /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7);
711
+ /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6);
442
712
  /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
443
- /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
713
+ /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
444
714
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
445
- /* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
715
+ /* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26);
446
716
  /* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__);
447
717
  /* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48);
448
718
  /* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__);
449
- /* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(22);
719
+ /* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23);
450
720
  /* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__);
451
721
  /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(43);
452
722
  /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__);
@@ -1412,83 +1682,42 @@ var handleValueClickCallback = function handleValueClickCallback(ev, majorValue,
1412
1682
 
1413
1683
  /***/ }),
1414
1684
 
1415
- /***/ 2:
1416
- /***/ (function(module, exports) {
1417
-
1418
- module.exports = require("lodash");
1419
-
1420
- /***/ }),
1421
-
1422
- /***/ 20:
1423
- /***/ (function(module, exports) {
1424
-
1425
- module.exports = require("@splunk/themes/pick");
1426
-
1427
- /***/ }),
1428
-
1429
1685
  /***/ 21:
1430
1686
  /***/ (function(module, exports) {
1431
1687
 
1432
- module.exports = require("@splunk/visualization-context/TimezoneContext");
1688
+ module.exports = require("@splunk/themes/pick");
1433
1689
 
1434
1690
  /***/ }),
1435
1691
 
1436
1692
  /***/ 22:
1437
1693
  /***/ (function(module, exports) {
1438
1694
 
1439
- module.exports = require("@splunk/visualizations-shared/propUtils");
1695
+ module.exports = require("@splunk/visualization-context/TimezoneContext");
1440
1696
 
1441
1697
  /***/ }),
1442
1698
 
1443
1699
  /***/ 23:
1444
1700
  /***/ (function(module, exports) {
1445
1701
 
1446
- module.exports = require("@babel/runtime/helpers/typeof");
1702
+ module.exports = require("@splunk/visualizations-shared/propUtils");
1447
1703
 
1448
1704
  /***/ }),
1449
1705
 
1450
1706
  /***/ 24:
1451
1707
  /***/ (function(module, exports) {
1452
1708
 
1453
- module.exports = require("@splunk/visualizations-shared/numberUtils");
1709
+ module.exports = require("@splunk/visualizations-shared/hocUtils");
1454
1710
 
1455
1711
  /***/ }),
1456
1712
 
1457
1713
  /***/ 25:
1458
- /***/ (function(module, exports, __webpack_require__) {
1459
-
1460
- "use strict";
1461
-
1462
-
1463
- Object.defineProperty(exports, "__esModule", {
1464
- value: true
1465
- });
1466
- exports.pickFieldFromJSONSchema = void 0;
1467
-
1468
- var lodash_1 = __webpack_require__(2);
1469
-
1470
- var pickFieldFromJSONSchema = function pickFieldFromJSONSchema(optionsSchema) {
1471
- var fieldName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
1472
- return Object.keys(optionsSchema).reduce(function (accum, k) {
1473
- if (lodash_1.has(optionsSchema[k], fieldName)) {
1474
- accum[k] = optionsSchema[k][fieldName];
1475
- } else if (lodash_1.get(optionsSchema, [k, 'type']) === 'object' && lodash_1.has(optionsSchema[k], 'properties')) {
1476
- var nestedSchema = exports.pickFieldFromJSONSchema(optionsSchema[k].properties, fieldName);
1477
-
1478
- if (!lodash_1.isEmpty(nestedSchema)) {
1479
- accum[k] = nestedSchema;
1480
- }
1481
- }
1482
-
1483
- return accum;
1484
- }, {});
1485
- };
1714
+ /***/ (function(module, exports) {
1486
1715
 
1487
- exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
1716
+ module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
1488
1717
 
1489
1718
  /***/ }),
1490
1719
 
1491
- /***/ 254:
1720
+ /***/ 257:
1492
1721
  /***/ (function(module, exports, __webpack_require__) {
1493
1722
 
1494
1723
  "use strict";
@@ -1499,13 +1728,13 @@ Object.defineProperty(exports, "__esModule", {
1499
1728
  });
1500
1729
  exports.themes = exports.computeVizProps = exports.PureSingleValue = exports.config = void 0;
1501
1730
 
1502
- var SingleValue_1 = __webpack_require__(277);
1731
+ var SingleValue_1 = __webpack_require__(280);
1503
1732
 
1504
- var withDashboardViz_1 = __webpack_require__(30);
1733
+ var withDashboardViz_1 = __webpack_require__(31);
1505
1734
 
1506
- var singleValueUtils_1 = __webpack_require__(19);
1735
+ var singleValueUtils_1 = __webpack_require__(20);
1507
1736
 
1508
- var config_1 = __webpack_require__(255);
1737
+ var config_1 = __webpack_require__(258);
1509
1738
 
1510
1739
  exports.config = config_1.default;
1511
1740
  exports.PureSingleValue = SingleValue_1.default;
@@ -1544,7 +1773,7 @@ exports.default = viz;
1544
1773
 
1545
1774
  /***/ }),
1546
1775
 
1547
- /***/ 255:
1776
+ /***/ 258:
1548
1777
  /***/ (function(module, exports, __webpack_require__) {
1549
1778
 
1550
1779
  "use strict";
@@ -1554,23 +1783,23 @@ Object.defineProperty(exports, "__esModule", {
1554
1783
  value: true
1555
1784
  });
1556
1785
 
1557
- var i18n_1 = __webpack_require__(3);
1786
+ var i18n_1 = __webpack_require__(2);
1558
1787
 
1559
- var schemaUtils_1 = __webpack_require__(16);
1788
+ var schemaUtils_1 = __webpack_require__(15);
1560
1789
 
1561
1790
  var PresetPalettes_1 = __webpack_require__(53);
1562
1791
 
1563
- var variables_1 = __webpack_require__(256);
1792
+ var variables_1 = __webpack_require__(259);
1564
1793
 
1565
- var pick_1 = __webpack_require__(20);
1794
+ var pick_1 = __webpack_require__(21);
1566
1795
 
1567
- var variables_2 = __webpack_require__(10);
1796
+ var variables_2 = __webpack_require__(8);
1568
1797
 
1569
1798
  var visualization_icons_1 = __webpack_require__(46);
1570
1799
 
1571
1800
  var placeholders_1 = __webpack_require__(45);
1572
1801
 
1573
- var singleValueContext_1 = __webpack_require__(109);
1802
+ var singleValueContext_1 = __webpack_require__(111);
1574
1803
 
1575
1804
  var VizBehavior_1 = __webpack_require__(5);
1576
1805
 
@@ -1580,7 +1809,7 @@ var DynamicTrendColorEditor_1 = __webpack_require__(84);
1580
1809
 
1581
1810
  var DynamicBackgroundColorEditor_1 = __webpack_require__(85);
1582
1811
 
1583
- var StaticMajorAndTrendLayout_1 = __webpack_require__(110);
1812
+ var StaticMajorAndTrendLayout_1 = __webpack_require__(112);
1584
1813
 
1585
1814
  var StaticMajorColorEditor_1 = __webpack_require__(86);
1586
1815
 
@@ -1588,9 +1817,9 @@ var StaticTrendColorEditor_1 = __webpack_require__(87);
1588
1817
 
1589
1818
  var StaticBackgroundColorEditor_1 = __webpack_require__(77);
1590
1819
 
1591
- var configUtils_1 = __webpack_require__(6);
1820
+ var configUtils_1 = __webpack_require__(16);
1592
1821
 
1593
- var VizCategory_1 = __webpack_require__(29);
1822
+ var VizCategory_1 = __webpack_require__(30);
1594
1823
 
1595
1824
  var dataContract = {
1596
1825
  requiredDataSources: [{
@@ -1671,7 +1900,7 @@ var optionsSchema = {
1671
1900
  sparklineAreaColor: {
1672
1901
  default: '> sparklineStrokeColor',
1673
1902
  description: 'Specify the color for the sparkline area fill. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The graph area will have an opacity of 20% and will blend with the background color.',
1674
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN,
1903
+ pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
1675
1904
  type: 'string'
1676
1905
  },
1677
1906
  sparklineDisplay: {
@@ -1945,7 +2174,7 @@ var themes = {
1945
2174
  var editorConfig = [{
1946
2175
  label: i18n_1._('Selected Data Field'),
1947
2176
  layout: [[{
1948
- label: '',
2177
+ label: i18n_1._('Data field'),
1949
2178
  editor: 'editor.columnSelector',
1950
2179
  option: 'sparklineValues',
1951
2180
  context: 'sparklineValuesContext',
@@ -1970,9 +2199,9 @@ var editorConfig = [{
1970
2199
  }, {
1971
2200
  label: i18n_1._('Sparkline'),
1972
2201
  layout: [[{
1973
- label: '',
2202
+ label: i18n_1._('Sparkline display'),
1974
2203
  option: 'sparklineDisplay',
1975
- editor: 'editor.radioBar',
2204
+ editor: 'editor.select',
1976
2205
  editorProps: {
1977
2206
  values: [{
1978
2207
  label: i18n_1._('Off'),
@@ -2070,7 +2299,7 @@ exports.default = configUtils_1.enhanceConfig(config);
2070
2299
 
2071
2300
  /***/ }),
2072
2301
 
2073
- /***/ 256:
2302
+ /***/ 259:
2074
2303
  /***/ (function(module, exports) {
2075
2304
 
2076
2305
  module.exports = require("@splunk/visualization-themes/variables");
@@ -2078,6 +2307,13 @@ module.exports = require("@splunk/visualization-themes/variables");
2078
2307
  /***/ }),
2079
2308
 
2080
2309
  /***/ 26:
2310
+ /***/ (function(module, exports) {
2311
+
2312
+ module.exports = require("@splunk/visualizations-shared/numberUtils");
2313
+
2314
+ /***/ }),
2315
+
2316
+ /***/ 27:
2081
2317
  /***/ (function(module, exports, __webpack_require__) {
2082
2318
 
2083
2319
  "use strict";
@@ -2092,13 +2328,13 @@ var React = __webpack_require__(1);
2092
2328
 
2093
2329
  var T = __webpack_require__(0);
2094
2330
 
2095
- var lodash_1 = __webpack_require__(2);
2331
+ var lodash_1 = __webpack_require__(3);
2096
2332
 
2097
- var i18n_1 = __webpack_require__(3);
2333
+ var i18n_1 = __webpack_require__(2);
2098
2334
 
2099
- var Message_1 = __webpack_require__(11);
2335
+ var Message_1 = __webpack_require__(9);
2100
2336
 
2101
- var FixedSizeContainer_1 = __webpack_require__(14);
2337
+ var FixedSizeContainer_1 = __webpack_require__(12);
2102
2338
  /**
2103
2339
  * @method shouldShowIconPlaceholder
2104
2340
  * @param {object} dataSources
@@ -2169,13 +2405,13 @@ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
2169
2405
 
2170
2406
  /***/ }),
2171
2407
 
2172
- /***/ 27:
2408
+ /***/ 28:
2173
2409
  /***/ (function(module, exports, __webpack_require__) {
2174
2410
 
2175
2411
  "use strict";
2176
2412
 
2177
2413
 
2178
- var _defineProperty = __webpack_require__(7);
2414
+ var _defineProperty = __webpack_require__(6);
2179
2415
 
2180
2416
  Object.defineProperty(exports, "__esModule", {
2181
2417
  value: true
@@ -2184,9 +2420,9 @@ exports.getSortingParams = exports.SortParamsPropTypes = void 0;
2184
2420
 
2185
2421
  var T = __webpack_require__(0);
2186
2422
 
2187
- var lodash_1 = __webpack_require__(2);
2423
+ var lodash_1 = __webpack_require__(3);
2188
2424
 
2189
- var DataSource_1 = __webpack_require__(37);
2425
+ var DataSource_1 = __webpack_require__(38);
2190
2426
 
2191
2427
  exports.SortParamsPropTypes = T.shape({
2192
2428
  currentSortKey: T.string,
@@ -2240,7 +2476,7 @@ exports.getSortingParams = getSortingParams;
2240
2476
 
2241
2477
  /***/ }),
2242
2478
 
2243
- /***/ 277:
2479
+ /***/ 280:
2244
2480
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2245
2481
 
2246
2482
  "use strict";
@@ -2276,28 +2512,28 @@ var isEmpty_ = __webpack_require__(71);
2276
2512
  var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty_);
2277
2513
 
2278
2514
  // EXTERNAL MODULE: external "@splunk/visualizations-shared/style"
2279
- var style_ = __webpack_require__(15);
2515
+ var style_ = __webpack_require__(14);
2280
2516
 
2281
2517
  // EXTERNAL MODULE: external "@splunk/visualizations-shared/SizeAwareWrapper"
2282
- var SizeAwareWrapper_ = __webpack_require__(18);
2518
+ var SizeAwareWrapper_ = __webpack_require__(19);
2283
2519
  var SizeAwareWrapper_default = /*#__PURE__*/__webpack_require__.n(SizeAwareWrapper_);
2284
2520
 
2285
2521
  // EXTERNAL MODULE: ./src/common/components/VizStyleWrapper.jsx
2286
2522
  var VizStyleWrapper = __webpack_require__(62);
2287
2523
 
2288
2524
  // EXTERNAL MODULE: external "@babel/runtime/helpers/defineProperty"
2289
- var defineProperty_ = __webpack_require__(7);
2525
+ var defineProperty_ = __webpack_require__(6);
2290
2526
  var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty_);
2291
2527
 
2292
2528
  // EXTERNAL MODULE: ./src/SingleValueBasic/SingleValueBasic.jsx + 2 modules
2293
2529
  var SingleValueBasic = __webpack_require__(68);
2294
2530
 
2295
2531
  // EXTERNAL MODULE: external "@splunk/react-sparkline/Line"
2296
- var Line_ = __webpack_require__(90);
2532
+ var Line_ = __webpack_require__(92);
2297
2533
  var Line_default = /*#__PURE__*/__webpack_require__.n(Line_);
2298
2534
 
2299
2535
  // EXTERNAL MODULE: external "@splunk/visualizations-shared/propUtils"
2300
- var propUtils_ = __webpack_require__(22);
2536
+ var propUtils_ = __webpack_require__(23);
2301
2537
 
2302
2538
  // CONCATENATED MODULE: ./src/SingleValue/PureSingleValue/SingleValueSparkline.jsx
2303
2539
 
@@ -2364,10 +2600,10 @@ SingleValueSparkline_SingleValueSparkline.propTypes = {
2364
2600
  var colorConstants_ = __webpack_require__(43);
2365
2601
 
2366
2602
  // EXTERNAL MODULE: external "@splunk/visualizations-shared/numberUtils"
2367
- var numberUtils_ = __webpack_require__(24);
2603
+ var numberUtils_ = __webpack_require__(26);
2368
2604
 
2369
2605
  // EXTERNAL MODULE: ./src/common/utils/singleValueUtils.js
2370
- var singleValueUtils = __webpack_require__(19);
2606
+ var singleValueUtils = __webpack_require__(20);
2371
2607
 
2372
2608
  // CONCATENATED MODULE: ./src/SingleValue/PureSingleValue/utils/displayUtils.js
2373
2609
 
@@ -3096,7 +3332,7 @@ SingleValue_SingleValue.defaultProps = {
3096
3332
 
3097
3333
  /***/ }),
3098
3334
 
3099
- /***/ 28:
3335
+ /***/ 29:
3100
3336
  /***/ (function(module, exports, __webpack_require__) {
3101
3337
 
3102
3338
  "use strict";
@@ -3109,7 +3345,7 @@ exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
3109
3345
 
3110
3346
  var T = __webpack_require__(0);
3111
3347
 
3112
- var lodash_1 = __webpack_require__(2);
3348
+ var lodash_1 = __webpack_require__(3);
3113
3349
 
3114
3350
  exports.PaginatorParamsPropTypes = T.shape({
3115
3351
  isPaging: T.bool,
@@ -3161,7 +3397,14 @@ exports.getPaginationParams = getPaginationParams;
3161
3397
 
3162
3398
  /***/ }),
3163
3399
 
3164
- /***/ 29:
3400
+ /***/ 3:
3401
+ /***/ (function(module, exports) {
3402
+
3403
+ module.exports = require("lodash");
3404
+
3405
+ /***/ }),
3406
+
3407
+ /***/ 30:
3165
3408
  /***/ (function(module, exports, __webpack_require__) {
3166
3409
 
3167
3410
  "use strict";
@@ -3190,14 +3433,7 @@ var VizCategory;
3190
3433
 
3191
3434
  /***/ }),
3192
3435
 
3193
- /***/ 3:
3194
- /***/ (function(module, exports) {
3195
-
3196
- module.exports = require("@splunk/ui-utils/i18n");
3197
-
3198
- /***/ }),
3199
-
3200
- /***/ 30:
3436
+ /***/ 31:
3201
3437
  /***/ (function(module, exports, __webpack_require__) {
3202
3438
 
3203
3439
  "use strict";
@@ -3209,39 +3445,39 @@ Object.defineProperty(exports, "__esModule", {
3209
3445
 
3210
3446
  var React = __webpack_require__(1);
3211
3447
 
3212
- var lodash_1 = __webpack_require__(2);
3448
+ var lodash_1 = __webpack_require__(3);
3213
3449
 
3214
- var getSettingsFromThemedProps_1 = __webpack_require__(31);
3450
+ var getSettingsFromThemedProps_1 = __webpack_require__(32);
3215
3451
 
3216
- var Options_1 = __webpack_require__(32);
3452
+ var Options_1 = __webpack_require__(33);
3217
3453
 
3218
- var SanitizeProps_1 = __webpack_require__(33);
3454
+ var SanitizeProps_1 = __webpack_require__(34);
3219
3455
 
3220
- var TimezoneContext_1 = __webpack_require__(21);
3456
+ var TimezoneContext_1 = __webpack_require__(22);
3221
3457
 
3222
- var moment_1 = __webpack_require__(34);
3458
+ var moment_1 = __webpack_require__(35);
3223
3459
 
3224
3460
  var styled_components_1 = __webpack_require__(4);
3225
3461
 
3226
- var SplunkVisualization_1 = __webpack_require__(35);
3462
+ var hocUtils_1 = __webpack_require__(24);
3227
3463
 
3228
- var VizBehavior_1 = __webpack_require__(5);
3464
+ var JSONSchemaUtils_1 = __webpack_require__(25);
3229
3465
 
3230
- var getSorting_1 = __webpack_require__(27);
3466
+ var SplunkVisualization_1 = __webpack_require__(36);
3231
3467
 
3232
- var getPagination_1 = __webpack_require__(28);
3468
+ var VizBehavior_1 = __webpack_require__(5);
3233
3469
 
3234
- var useDeepMemo_1 = __webpack_require__(38);
3470
+ var getSorting_1 = __webpack_require__(28);
3235
3471
 
3236
- var JSONSchemaUtils_1 = __webpack_require__(25);
3472
+ var getPagination_1 = __webpack_require__(29);
3237
3473
 
3238
- var MissingPropsMessage_1 = __webpack_require__(39);
3474
+ var useDeepMemo_1 = __webpack_require__(39);
3239
3475
 
3240
- var withEditModeCover_1 = __webpack_require__(40);
3476
+ var MissingPropsMessage_1 = __webpack_require__(40);
3241
3477
 
3242
- var withPlaceholder_1 = __webpack_require__(42);
3478
+ var withEditModeCover_1 = __webpack_require__(41);
3243
3479
 
3244
- var hocUtils_1 = __webpack_require__(8);
3480
+ var withPlaceholder_1 = __webpack_require__(42);
3245
3481
  /**
3246
3482
  * hoc that wraps a pure react visualization in a Dashboard visualization
3247
3483
  * @param {DashboardVizOpts} opts
@@ -3443,41 +3679,41 @@ exports.default = withDashboardViz;
3443
3679
 
3444
3680
  /***/ }),
3445
3681
 
3446
- /***/ 31:
3682
+ /***/ 32:
3447
3683
  /***/ (function(module, exports) {
3448
3684
 
3449
3685
  module.exports = require("@splunk/themes/getSettingsFromThemedProps");
3450
3686
 
3451
3687
  /***/ }),
3452
3688
 
3453
- /***/ 32:
3689
+ /***/ 33:
3454
3690
  /***/ (function(module, exports) {
3455
3691
 
3456
3692
  module.exports = require("@splunk/visualization-encoding/Options");
3457
3693
 
3458
3694
  /***/ }),
3459
3695
 
3460
- /***/ 33:
3696
+ /***/ 34:
3461
3697
  /***/ (function(module, exports) {
3462
3698
 
3463
3699
  module.exports = require("@splunk/visualizations-shared/SanitizeProps");
3464
3700
 
3465
3701
  /***/ }),
3466
3702
 
3467
- /***/ 34:
3703
+ /***/ 35:
3468
3704
  /***/ (function(module, exports) {
3469
3705
 
3470
3706
  module.exports = require("@splunk/moment");
3471
3707
 
3472
3708
  /***/ }),
3473
3709
 
3474
- /***/ 35:
3710
+ /***/ 36:
3475
3711
  /***/ (function(module, exports, __webpack_require__) {
3476
3712
 
3477
3713
  "use strict";
3478
3714
 
3479
3715
 
3480
- var _classCallCheck = __webpack_require__(12);
3716
+ var _classCallCheck = __webpack_require__(10);
3481
3717
 
3482
3718
  Object.defineProperty(exports, "__esModule", {
3483
3719
  value: true
@@ -3487,9 +3723,9 @@ exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
3487
3723
 
3488
3724
  var T = __webpack_require__(0);
3489
3725
 
3490
- var lodash_1 = __webpack_require__(2);
3726
+ var lodash_1 = __webpack_require__(3);
3491
3727
 
3492
- var VizActionHandler_1 = __webpack_require__(36); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
3728
+ var VizActionHandler_1 = __webpack_require__(37); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
3493
3729
 
3494
3730
 
3495
3731
  exports.INITIAL_WIDTH = 250;
@@ -3623,15 +3859,15 @@ exports.default = SplunkVisualization;
3623
3859
 
3624
3860
  /***/ }),
3625
3861
 
3626
- /***/ 36:
3862
+ /***/ 37:
3627
3863
  /***/ (function(module, exports, __webpack_require__) {
3628
3864
 
3629
3865
  "use strict";
3630
3866
 
3631
3867
 
3632
- var _classCallCheck = __webpack_require__(12);
3868
+ var _classCallCheck = __webpack_require__(10);
3633
3869
 
3634
- var _createClass = __webpack_require__(17);
3870
+ var _createClass = __webpack_require__(18);
3635
3871
 
3636
3872
  Object.defineProperty(exports, "__esModule", {
3637
3873
  value: true
@@ -3661,7 +3897,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
3661
3897
 
3662
3898
  /***/ }),
3663
3899
 
3664
- /***/ 37:
3900
+ /***/ 38:
3665
3901
  /***/ (function(module, exports, __webpack_require__) {
3666
3902
 
3667
3903
  "use strict";
@@ -3675,7 +3911,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
3675
3911
 
3676
3912
  /***/ }),
3677
3913
 
3678
- /***/ 38:
3914
+ /***/ 39:
3679
3915
  /***/ (function(module, exports, __webpack_require__) {
3680
3916
 
3681
3917
  "use strict";
@@ -3688,7 +3924,7 @@ exports.useDeepMemo = void 0;
3688
3924
 
3689
3925
  var react_1 = __webpack_require__(1);
3690
3926
 
3691
- var lodash_1 = __webpack_require__(2);
3927
+ var lodash_1 = __webpack_require__(3);
3692
3928
  /**
3693
3929
  * This hook evaluates and stores the result of a passed function and only
3694
3930
  * re-evaluates the function when passed dependencies change.
@@ -3721,7 +3957,14 @@ exports.useDeepMemo = useDeepMemo;
3721
3957
 
3722
3958
  /***/ }),
3723
3959
 
3724
- /***/ 39:
3960
+ /***/ 4:
3961
+ /***/ (function(module, exports) {
3962
+
3963
+ module.exports = require("styled-components");
3964
+
3965
+ /***/ }),
3966
+
3967
+ /***/ 40:
3725
3968
  /***/ (function(module, exports, __webpack_require__) {
3726
3969
 
3727
3970
  "use strict";
@@ -3736,11 +3979,11 @@ var React = __webpack_require__(1);
3736
3979
 
3737
3980
  var T = __webpack_require__(0);
3738
3981
 
3739
- var i18n_1 = __webpack_require__(3);
3982
+ var i18n_1 = __webpack_require__(2);
3740
3983
 
3741
- var Message_1 = __webpack_require__(11);
3984
+ var Message_1 = __webpack_require__(9);
3742
3985
 
3743
- var FixedSizeContainer_1 = __webpack_require__(14);
3986
+ var FixedSizeContainer_1 = __webpack_require__(12);
3744
3987
  /**
3745
3988
  * @method isMissing
3746
3989
  * @param {any} v
@@ -3802,14 +4045,7 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
3802
4045
 
3803
4046
  /***/ }),
3804
4047
 
3805
- /***/ 4:
3806
- /***/ (function(module, exports) {
3807
-
3808
- module.exports = require("styled-components");
3809
-
3810
- /***/ }),
3811
-
3812
- /***/ 40:
4048
+ /***/ 41:
3813
4049
  /***/ (function(module, exports, __webpack_require__) {
3814
4050
 
3815
4051
  "use strict";
@@ -3823,14 +4059,14 @@ var React = __webpack_require__(1);
3823
4059
 
3824
4060
  var styled_components_1 = __webpack_require__(4);
3825
4061
 
3826
- var hocUtils_1 = __webpack_require__(8);
4062
+ var hocUtils_1 = __webpack_require__(13);
3827
4063
 
3828
4064
  var Cover = styled_components_1.default.div.withConfig({
3829
4065
  displayName: "withEditModeCover__Cover",
3830
4066
  componentId: "sc-1gsbnxb-0"
3831
4067
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
3832
4068
  var Blocker = styled_components_1.default.div.attrs({
3833
- 'data-splunk-visualization-version': "25.0.0 - 5e0f30e5a"
4069
+ 'data-splunk-visualization-version': "25.1.0 - 812a9a4d8"
3834
4070
  }).withConfig({
3835
4071
  displayName: "withEditModeCover__Blocker",
3836
4072
  componentId: "sc-1gsbnxb-1"
@@ -3862,13 +4098,6 @@ exports.default = withEditModeCover;
3862
4098
 
3863
4099
  /***/ }),
3864
4100
 
3865
- /***/ 41:
3866
- /***/ (function(module, exports) {
3867
-
3868
- module.exports = require("@splunk/visualizations-shared/mapUtils");
3869
-
3870
- /***/ }),
3871
-
3872
4101
  /***/ 42:
3873
4102
  /***/ (function(module, exports, __webpack_require__) {
3874
4103
 
@@ -3881,15 +4110,15 @@ Object.defineProperty(exports, "__esModule", {
3881
4110
 
3882
4111
  var React = __webpack_require__(1);
3883
4112
 
3884
- var colorUtils_1 = __webpack_require__(13);
4113
+ var colorUtils_1 = __webpack_require__(11);
3885
4114
 
3886
- var variables_1 = __webpack_require__(10);
4115
+ var variables_1 = __webpack_require__(8);
3887
4116
 
3888
- var IconPlaceholder_1 = __webpack_require__(26);
4117
+ var IconPlaceholder_1 = __webpack_require__(27);
3889
4118
 
3890
4119
  var VizBehavior_1 = __webpack_require__(5);
3891
4120
 
3892
- var hocUtils_1 = __webpack_require__(8);
4121
+ var hocUtils_1 = __webpack_require__(13);
3893
4122
 
3894
4123
  var withPlaceholder = function withPlaceholder(Visualization) {
3895
4124
  var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
@@ -3899,330 +4128,125 @@ var withPlaceholder = function withPlaceholder(Visualization) {
3899
4128
  var Wrapper = function Wrapper(props) {
3900
4129
  var _a, _b;
3901
4130
 
3902
- var dataSources = props.dataSources,
3903
- loading = props.loading,
3904
- options = props.options,
3905
- height = props.height,
3906
- width = props.width;
3907
- var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
3908
- 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);
3909
- var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
3910
- var iconColor = variables_1.default.contentColorActive(props);
3911
-
3912
- if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
3913
- return React.createElement(IconPlaceholder_1.default, {
3914
- "data-test": "icon-placeholder",
3915
- icon: icon,
3916
- width: width,
3917
- height: height,
3918
- backgroundColor: bgColorFromTheme,
3919
- iconColor: iconColor
3920
- });
3921
- }
3922
-
3923
- return React.createElement(Visualization, Object.assign({}, props));
3924
- };
3925
-
3926
- hocUtils_1.extendStaticWrapperProps({
3927
- Wrapper: Wrapper,
3928
- Visualization: Visualization
3929
- });
3930
- return Wrapper;
3931
- };
3932
-
3933
- exports.default = withPlaceholder;
3934
-
3935
- /***/ }),
3936
-
3937
- /***/ 43:
3938
- /***/ (function(module, exports) {
3939
-
3940
- module.exports = require("@splunk/visualizations-shared/colorConstants");
3941
-
3942
- /***/ }),
3943
-
3944
- /***/ 45:
3945
- /***/ (function(module, exports) {
3946
-
3947
- module.exports = require("@splunk/visualization-icons/placeholders");
3948
-
3949
- /***/ }),
3950
-
3951
- /***/ 46:
3952
- /***/ (function(module, exports) {
3953
-
3954
- module.exports = require("@splunk/visualization-icons");
3955
-
3956
- /***/ }),
3957
-
3958
- /***/ 47:
3959
- /***/ (function(module, exports) {
3960
-
3961
- module.exports = require("@babel/runtime/helpers/extends");
3962
-
3963
- /***/ }),
3964
-
3965
- /***/ 48:
3966
- /***/ (function(module, exports) {
3967
-
3968
- module.exports = require("@splunk/visualizations-shared/domUtils");
3969
-
3970
- /***/ }),
3971
-
3972
- /***/ 5:
3973
- /***/ (function(module, exports, __webpack_require__) {
3974
-
3975
- "use strict";
3976
-
3977
-
3978
- Object.defineProperty(exports, "__esModule", {
3979
- value: true
3980
- });
3981
- exports.VizBehavior = void 0;
3982
- var VizBehavior;
3983
-
3984
- (function (VizBehavior) {
3985
- /**
3986
- * Dynamic Options Behavior.
3987
- * This allows visualization options to be powered by data
3988
- *
3989
- * **Example**
3990
- *
3991
- * sparklineValues: ">primary|seriesByIndex(0)"
3992
- * would configure sparklineValues with an array of data points
3993
- * coming from the first series in the primary datasource
3994
- *
3995
- */
3996
- VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
3997
- VizBehavior["EVENTS"] = "events";
3998
- /**
3999
- * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
4000
- * missing.
4001
- * @type {string}
4002
- */
4003
-
4004
- VizBehavior["PLACEHOLDER"] = "placeholder";
4005
- VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
4006
- })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
4007
-
4008
- /***/ }),
4009
-
4010
- /***/ 53:
4011
- /***/ (function(module, exports) {
4012
-
4013
- module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
4014
-
4015
- /***/ }),
4016
-
4017
- /***/ 6:
4018
- /***/ (function(module, exports, __webpack_require__) {
4019
-
4020
- "use strict";
4021
-
4022
-
4023
- var _toConsumableArray = __webpack_require__(9);
4024
-
4025
- var _defineProperty = __webpack_require__(7);
4026
-
4027
- var __rest = this && this.__rest || function (s, e) {
4028
- var t = {};
4029
-
4030
- for (var p in s) {
4031
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
4032
- }
4033
-
4034
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
4035
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
4036
- }
4037
- return t;
4038
- };
4039
-
4040
- Object.defineProperty(exports, "__esModule", {
4041
- value: true
4042
- });
4043
- exports.insertLayout = exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOption = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
4044
-
4045
- var lodash_1 = __webpack_require__(2);
4046
-
4047
- var schemaUtils_1 = __webpack_require__(16);
4048
-
4049
- var VizBehavior_1 = __webpack_require__(5);
4050
-
4051
- var dynamicOptionsDSLType = {
4052
- type: 'string',
4053
- pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
4054
- };
4055
- /**
4056
- * Helper function to extend an options schema with dynamic options DSL
4057
- * @param optionsSchema a visualization's options schema
4058
- * @returns an updated options schema that additionally allows strings starting with > for each option
4059
- */
4060
-
4061
- function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
4062
- var enhancedOptionsSchema = {};
4063
- Object.keys(optionsSchema).forEach(function (key) {
4064
- var _a = optionsSchema[key],
4065
- title = _a.title,
4066
- description = _a.description,
4067
- readOnly = _a.readOnly,
4068
- writeOnly = _a.writeOnly,
4069
- examples = _a.examples,
4070
- defaultValue = _a.default,
4071
- type = _a.type,
4072
- properties = _a.properties,
4073
- patternProperties = _a.patternProperties,
4074
- remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
4075
-
4076
- var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
4077
- title: title
4078
- }), description !== undefined && {
4079
- description: description
4080
- }), readOnly !== undefined && {
4081
- readOnly: readOnly
4082
- }), writeOnly !== undefined && {
4083
- writeOnly: writeOnly
4084
- }), examples !== undefined && {
4085
- examples: examples
4086
- }), defaultValue !== undefined && {
4087
- default: defaultValue
4088
- });
4089
-
4090
- if (type === 'object') {
4091
- enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
4092
- type: type
4093
- }), properties && {
4094
- properties: enhanceOptionsSchemaWithDynamicOptions(properties)
4095
- });
4096
-
4097
- if (patternProperties) {
4098
- var enhancedPatternProperties = {};
4099
- Object.keys(patternProperties).forEach(function (opt) {
4100
- enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
4101
- });
4102
- enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
4103
- }
4104
- } else {
4105
- enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
4106
- anyOf: [Object.assign(Object.assign({}, type !== undefined && {
4107
- type: type
4108
- }), remainingSchemaEntry), dynamicOptionsDSLType]
4131
+ var dataSources = props.dataSources,
4132
+ loading = props.loading,
4133
+ options = props.options,
4134
+ height = props.height,
4135
+ width = props.width;
4136
+ var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
4137
+ 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);
4138
+ var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
4139
+ var iconColor = variables_1.default.contentColorActive(props);
4140
+
4141
+ if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
4142
+ return React.createElement(IconPlaceholder_1.default, {
4143
+ "data-test": "icon-placeholder",
4144
+ icon: icon,
4145
+ width: width,
4146
+ height: height,
4147
+ backgroundColor: bgColorFromTheme,
4148
+ iconColor: iconColor
4109
4149
  });
4110
4150
  }
4151
+
4152
+ return React.createElement(Visualization, Object.assign({}, props));
4153
+ };
4154
+
4155
+ hocUtils_1.extendStaticWrapperProps({
4156
+ Wrapper: Wrapper,
4157
+ Visualization: Visualization
4111
4158
  });
4112
- return enhancedOptionsSchema;
4113
- }
4159
+ return Wrapper;
4160
+ };
4114
4161
 
4115
- exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
4116
- /**
4117
- * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
4118
- * @param vizConfig a Visualization Config
4119
- * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
4120
- */
4162
+ exports.default = withPlaceholder;
4121
4163
 
4122
- function enhanceConfig(vizConfig) {
4123
- var enhancedConfig = vizConfig;
4164
+ /***/ }),
4124
4165
 
4125
- if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
4126
- enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
4127
- }
4166
+ /***/ 43:
4167
+ /***/ (function(module, exports) {
4128
4168
 
4129
- return enhancedConfig;
4130
- }
4169
+ module.exports = require("@splunk/visualizations-shared/colorConstants");
4131
4170
 
4132
- exports.enhanceConfig = enhanceConfig;
4171
+ /***/ }),
4133
4172
 
4134
- function isDynamicOption(option) {
4135
- return option && typeof option === 'string' && option.trim().startsWith('>') || false;
4136
- }
4173
+ /***/ 45:
4174
+ /***/ (function(module, exports) {
4137
4175
 
4138
- exports.isDynamicOption = isDynamicOption; // private helpers to improve readability of getInitialPreset
4139
- // this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset
4176
+ module.exports = require("@splunk/visualization-icons/placeholders");
4140
4177
 
4141
- /**
4142
- * this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset
4143
- * if a preset has explicitly specified a key as being undefined, the vizContext must also has that key as undefined, or else this CANNOT be the initialPreset
4144
- * the inverse is true; if a preset has key is NOT undefined, it must also be NOT undefined in the corresponding vizContext
4145
- * the internal config contents are irrelevant (as the user could customize them in source), just as long as the presence of `undefined`s match up
4146
- *
4147
- * Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
4148
- */
4178
+ /***/ }),
4149
4179
 
4150
- function hasCompatibleContexts(vizContext, presetContext) {
4151
- var presetContextKeys = Object.keys(presetContext);
4152
- return presetContextKeys.every(function (contextKey) {
4153
- return presetContext[contextKey] === undefined && vizContext[contextKey] === undefined || presetContext[contextKey] !== undefined && vizContext[contextKey] !== undefined;
4154
- });
4155
- }
4156
- /**
4157
- * Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
4158
- */
4180
+ /***/ 46:
4181
+ /***/ (function(module, exports) {
4159
4182
 
4183
+ module.exports = require("@splunk/visualization-icons");
4160
4184
 
4161
- function hasCompatibleOptions(vizOptions, presetOptions) {
4162
- var presetOptionKeys = Object.keys(presetOptions);
4163
- return presetOptionKeys.every(function (optionKey) {
4164
- return isDynamicOption(presetOptions[optionKey]) === isDynamicOption(vizOptions[optionKey]);
4165
- });
4166
- }
4167
- /**
4168
- * Evaluates whether there is an initialPreset that fits the current state of vizContext + vizOptions
4169
- * This function ignores extraneous vizOptions or vizContext keys, as they could be outside the scope of what the preset is intended to configure
4170
- *
4171
- * @param {Object} vizContext - the current vizContext definition
4172
- * @param {Object} vizOptions - the current vizOptions definition
4173
- * @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
4174
- */
4185
+ /***/ }),
4175
4186
 
4187
+ /***/ 47:
4188
+ /***/ (function(module, exports) {
4176
4189
 
4177
- function getInitialPreset(vizContext, vizOptions, presets) {
4178
- return presets.find(function (preset) {
4179
- var presetContext = lodash_1.get(preset, ['value', 'context'], {});
4180
- var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
4181
- var presetContextKeys = Object.keys(presetContext);
4182
- var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
4183
- // if not, then the preset is invalid in config.ts
4190
+ module.exports = require("@babel/runtime/helpers/extends");
4184
4191
 
4185
- if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
4186
- return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
4187
- });
4188
- }
4192
+ /***/ }),
4189
4193
 
4190
- exports.getInitialPreset = getInitialPreset;
4191
- /**
4192
- * generates number precision values for a Select editor
4193
- *
4194
- * @param {Number} numPrecisionValues - number of integer precision values to generate
4195
- * @returns {{ label: string; value; string }[]} array of { label, value } tuples
4196
- */
4194
+ /***/ 48:
4195
+ /***/ (function(module, exports) {
4197
4196
 
4198
- function generatePrecisionValues(numPrecisionValues) {
4199
- return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
4200
- return {
4201
- label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
4202
- value: i
4203
- };
4204
- });
4205
- }
4197
+ module.exports = require("@splunk/visualizations-shared/domUtils");
4206
4198
 
4207
- exports.generatePrecisionValues = generatePrecisionValues;
4208
- /**
4209
- * insert layout in layout array, return a new layout array instead of updating the original
4210
- *
4211
- * @param {EditorLayoutConfig[][]} layout - editor layout
4212
- * @param {Number} index - the index to insert layout item(s)
4213
- * @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
4214
- * @returns {EditorLayoutConfig[][]} new editor layout with insertion
4215
- */
4199
+ /***/ }),
4216
4200
 
4217
- var insertLayout = function insertLayout(layout, index) {
4218
- for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
4219
- layoutItems[_key - 2] = arguments[_key];
4220
- }
4201
+ /***/ 5:
4202
+ /***/ (function(module, exports, __webpack_require__) {
4221
4203
 
4222
- return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
4223
- };
4204
+ "use strict";
4224
4205
 
4225
- exports.insertLayout = insertLayout;
4206
+
4207
+ Object.defineProperty(exports, "__esModule", {
4208
+ value: true
4209
+ });
4210
+ exports.VizBehavior = void 0;
4211
+ var VizBehavior;
4212
+
4213
+ (function (VizBehavior) {
4214
+ /**
4215
+ * Dynamic Options Behavior.
4216
+ * This allows visualization options to be powered by data
4217
+ *
4218
+ * **Example**
4219
+ *
4220
+ * sparklineValues: ">primary|seriesByIndex(0)"
4221
+ * would configure sparklineValues with an array of data points
4222
+ * coming from the first series in the primary datasource
4223
+ *
4224
+ */
4225
+ VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
4226
+ VizBehavior["EVENTS"] = "events";
4227
+ /**
4228
+ * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
4229
+ * missing.
4230
+ * @type {string}
4231
+ */
4232
+
4233
+ VizBehavior["PLACEHOLDER"] = "placeholder";
4234
+ VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
4235
+ })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
4236
+
4237
+ /***/ }),
4238
+
4239
+ /***/ 53:
4240
+ /***/ (function(module, exports) {
4241
+
4242
+ module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
4243
+
4244
+ /***/ }),
4245
+
4246
+ /***/ 6:
4247
+ /***/ (function(module, exports) {
4248
+
4249
+ module.exports = require("@babel/runtime/helpers/defineProperty");
4226
4250
 
4227
4251
  /***/ }),
4228
4252
 
@@ -4277,7 +4301,7 @@ var external_styled_components_ = __webpack_require__(4);
4277
4301
  var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
4278
4302
 
4279
4303
  // EXTERNAL MODULE: ./src/common/utils/singleValueUtils.js
4280
- var singleValueUtils = __webpack_require__(19);
4304
+ var singleValueUtils = __webpack_require__(20);
4281
4305
 
4282
4306
  // EXTERNAL MODULE: external "@splunk/react-icons/ArrowUp"
4283
4307
  var ArrowUp_ = __webpack_require__(72);
@@ -4554,7 +4578,7 @@ var SingleValueTrendValue = TrendValue;
4554
4578
  /***/ 7:
4555
4579
  /***/ (function(module, exports) {
4556
4580
 
4557
- module.exports = require("@babel/runtime/helpers/defineProperty");
4581
+ module.exports = require("@babel/runtime/helpers/toConsumableArray");
4558
4582
 
4559
4583
  /***/ }),
4560
4584
 
@@ -4598,10 +4622,10 @@ module.exports = require("cssesc");
4598
4622
 
4599
4623
  "use strict";
4600
4624
  __webpack_require__.r(__webpack_exports__);
4601
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
4625
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
4602
4626
  /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
4603
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
4604
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4627
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
4628
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4605
4629
 
4606
4630
 
4607
4631
  var StaticBackgroundColorEditor = {
@@ -4610,7 +4634,7 @@ var StaticBackgroundColorEditor = {
4610
4634
  editor: 'editor.color',
4611
4635
  showEditor: function showEditor(_ref) {
4612
4636
  var options = _ref.options;
4613
- return !Object(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.backgroundColor);
4637
+ return !Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.backgroundColor);
4614
4638
  }
4615
4639
  };
4616
4640
  /* harmony default export */ __webpack_exports__["default"] = (StaticBackgroundColorEditor);
@@ -4618,89 +4642,9 @@ var StaticBackgroundColorEditor = {
4618
4642
  /***/ }),
4619
4643
 
4620
4644
  /***/ 8:
4621
- /***/ (function(module, exports, __webpack_require__) {
4622
-
4623
- "use strict";
4624
-
4625
-
4626
- var _typeof = __webpack_require__(23);
4627
-
4628
- Object.defineProperty(exports, "__esModule", {
4629
- value: true
4630
- });
4631
- exports.deepMergeWithArrayPrimitiveOverrides = exports.extendStaticWrapperProps = void 0;
4632
-
4633
- var lodash_1 = __webpack_require__(2);
4634
-
4635
- var mapUtils_1 = __webpack_require__(41);
4636
- /**
4637
- * @method extendStaticWrapperProps
4638
- * @param {Object} props
4639
- * @param {DashboardVizType} props.Wrapper
4640
- * @param {DashboardVizType} props.Visualization
4641
- */
4642
-
4643
-
4644
- var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
4645
- var Wrapper = _ref.Wrapper,
4646
- Visualization = _ref.Visualization;
4647
- var extendProperties = ['propTypes', 'defaultProps', 'config'];
4648
- extendProperties.forEach(function (prop) {
4649
- if (Visualization[prop]) {
4650
- // eslint-disable-next-line no-param-reassign
4651
- Wrapper[prop] = Visualization[prop];
4652
- }
4653
- });
4654
- };
4655
-
4656
- exports.extendStaticWrapperProps = extendStaticWrapperProps;
4657
- /**
4658
- * helper to deeply merge objects while preserving arrays in earlier source objects
4659
- * deeply nested primitive keys are merged similarly to lodash's defaultsDeep, while keys with arrays of primitives will be preserved if already present in the resultant merged object
4660
- * this prevents default arrays of primitives from appending values to user-defined arrays (this occurs if the default array is longer than the user-defined one).
4661
- * Array of objects gets merged with the defaults, where the defaults can be an array of objects. Closest matching default object from the defaults list based on key - value pair
4662
- * will be used for merging defaults for each object in the array. If no closest match found, first object in default array list used for merging.
4663
- *
4664
- * @method deepMergeWithArrayPrimitiveOverrides
4665
- * @param {Object} initial - target object to merge values into
4666
- * @param {Object[]} sources - other default options to be merged into the resultant object if no explicit value is provided, with earlier args taking precedence over later ones
4667
- *
4668
- * @returns {Object}
4669
- */
4670
-
4671
- var deepMergeWithArrayPrimitiveOverrides = function deepMergeWithArrayPrimitiveOverrides(initial) {
4672
- var clone = lodash_1.cloneDeep(initial);
4673
-
4674
- for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
4675
- sources[_key - 1] = arguments[_key];
4676
- }
4677
-
4678
- sources.forEach(function (sourceToApply) {
4679
- Object.keys(sourceToApply).forEach(function (sourceKey) {
4680
- if (!Object.prototype.hasOwnProperty.call(clone, sourceKey)) {
4681
- clone[sourceKey] = lodash_1.cloneDeep(sourceToApply[sourceKey]);
4682
- }
4683
-
4684
- if (clone[sourceKey] && _typeof(clone[sourceKey]) === 'object' && !Array.isArray(clone[sourceKey]) && _typeof(sourceToApply[sourceKey]) === 'object') {
4685
- clone[sourceKey] = exports.deepMergeWithArrayPrimitiveOverrides(clone[sourceKey], sourceToApply[sourceKey]);
4686
- } else if (Array.isArray(clone[sourceKey]) && _typeof(clone[sourceKey][0]) === 'object' && !Array.isArray(clone[sourceKey][0])) {
4687
- // If option is an array of objects
4688
- for (var i = 0; i < clone[sourceKey].length; i += 1) {
4689
- if (_typeof(clone[sourceKey][i]) === 'object') {
4690
- var closestMatchIdx = mapUtils_1.findClosestMatchFromDefaultList(sourceToApply[sourceKey], clone[sourceKey][i]);
4691
-
4692
- if (closestMatchIdx > -1) {
4693
- clone[sourceKey][i] = exports.deepMergeWithArrayPrimitiveOverrides(clone[sourceKey][i], sourceToApply[sourceKey][closestMatchIdx]);
4694
- }
4695
- }
4696
- }
4697
- }
4698
- });
4699
- });
4700
- return clone;
4701
- };
4645
+ /***/ (function(module, exports) {
4702
4646
 
4703
- exports.deepMergeWithArrayPrimitiveOverrides = deepMergeWithArrayPrimitiveOverrides;
4647
+ module.exports = require("@splunk/themes/variables");
4704
4648
 
4705
4649
  /***/ }),
4706
4650
 
@@ -4710,10 +4654,10 @@ exports.deepMergeWithArrayPrimitiveOverrides = deepMergeWithArrayPrimitiveOverri
4710
4654
  "use strict";
4711
4655
  __webpack_require__.r(__webpack_exports__);
4712
4656
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicMajorColorEditor", function() { return getDynamicMajorColorEditor; });
4713
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
4657
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
4714
4658
  /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
4715
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
4716
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4659
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
4660
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4717
4661
 
4718
4662
 
4719
4663
  var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
@@ -4726,7 +4670,7 @@ var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
4726
4670
  editor: 'editor.dynamicColor',
4727
4671
  showEditor: function showEditor(_ref2) {
4728
4672
  var options = _ref2.options;
4729
- return Object(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.majorColor);
4673
+ return Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.majorColor);
4730
4674
  },
4731
4675
  editorProps: {
4732
4676
  labelPosition: 'left',
@@ -4761,10 +4705,10 @@ var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
4761
4705
  "use strict";
4762
4706
  __webpack_require__.r(__webpack_exports__);
4763
4707
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicTrendColorEditor", function() { return getDynamicTrendColorEditor; });
4764
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
4708
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
4765
4709
  /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
4766
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
4767
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4710
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
4711
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4768
4712
 
4769
4713
 
4770
4714
  var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
@@ -4777,7 +4721,7 @@ var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
4777
4721
  editor: 'editor.dynamicColor',
4778
4722
  showEditor: function showEditor(_ref2) {
4779
4723
  var options = _ref2.options;
4780
- return Object(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.trendColor);
4724
+ return Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.trendColor);
4781
4725
  },
4782
4726
  editorProps: {
4783
4727
  labelPosition: 'left',
@@ -4806,10 +4750,10 @@ var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
4806
4750
  "use strict";
4807
4751
  __webpack_require__.r(__webpack_exports__);
4808
4752
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicBackgroundColorEditor", function() { return getDynamicBackgroundColorEditor; });
4809
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
4753
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
4810
4754
  /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
4811
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
4812
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4755
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
4756
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4813
4757
 
4814
4758
 
4815
4759
  var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_ref) {
@@ -4822,7 +4766,7 @@ var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_
4822
4766
  editor: 'editor.dynamicColor',
4823
4767
  showEditor: function showEditor(_ref2) {
4824
4768
  var options = _ref2.options;
4825
- return Object(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.backgroundColor);
4769
+ return Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.backgroundColor);
4826
4770
  },
4827
4771
  editorProps: {
4828
4772
  labelPosition: 'left',
@@ -4860,10 +4804,10 @@ var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_
4860
4804
 
4861
4805
  "use strict";
4862
4806
  __webpack_require__.r(__webpack_exports__);
4863
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
4807
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
4864
4808
  /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
4865
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
4866
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4809
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
4810
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4867
4811
 
4868
4812
 
4869
4813
  var StaticMajorColorEditor = {
@@ -4872,7 +4816,7 @@ var StaticMajorColorEditor = {
4872
4816
  editor: 'editor.color',
4873
4817
  showEditor: function showEditor(_ref) {
4874
4818
  var options = _ref.options;
4875
- return !Object(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.majorColor);
4819
+ return !Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.majorColor);
4876
4820
  }
4877
4821
  };
4878
4822
  /* harmony default export */ __webpack_exports__["default"] = (StaticMajorColorEditor);
@@ -4884,10 +4828,10 @@ var StaticMajorColorEditor = {
4884
4828
 
4885
4829
  "use strict";
4886
4830
  __webpack_require__.r(__webpack_exports__);
4887
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
4831
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
4888
4832
  /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
4889
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
4890
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4833
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
4834
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4891
4835
 
4892
4836
 
4893
4837
  var StaticTrendColorEditor = {
@@ -4896,7 +4840,7 @@ var StaticTrendColorEditor = {
4896
4840
  editor: 'editor.color',
4897
4841
  showEditor: function showEditor(_ref) {
4898
4842
  var options = _ref.options;
4899
- return !Object(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.trendColor);
4843
+ return !Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.trendColor);
4900
4844
  },
4901
4845
  isDisabled: function isDisabled(_ref2) {
4902
4846
  var options = _ref2.options;
@@ -4910,11 +4854,11 @@ var StaticTrendColorEditor = {
4910
4854
  /***/ 9:
4911
4855
  /***/ (function(module, exports) {
4912
4856
 
4913
- module.exports = require("@babel/runtime/helpers/toConsumableArray");
4857
+ module.exports = require("@splunk/visualizations-shared/Message");
4914
4858
 
4915
4859
  /***/ }),
4916
4860
 
4917
- /***/ 90:
4861
+ /***/ 92:
4918
4862
  /***/ (function(module, exports) {
4919
4863
 
4920
4864
  module.exports = require("@splunk/react-sparkline/Line");