@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
@@ -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 = 262);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 265);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -109,32 +109,18 @@ module.exports = require("react");
109
109
  /***/ 10:
110
110
  /***/ (function(module, exports) {
111
111
 
112
- module.exports = require("@splunk/themes/variables");
113
-
114
- /***/ }),
115
-
116
- /***/ 11:
117
- /***/ (function(module, exports) {
118
-
119
- module.exports = require("@splunk/visualizations-shared/Message");
120
-
121
- /***/ }),
122
-
123
- /***/ 12:
124
- /***/ (function(module, exports) {
125
-
126
112
  module.exports = require("@babel/runtime/helpers/classCallCheck");
127
113
 
128
114
  /***/ }),
129
115
 
130
- /***/ 13:
116
+ /***/ 11:
131
117
  /***/ (function(module, exports) {
132
118
 
133
119
  module.exports = require("@splunk/visualizations-shared/colorUtils");
134
120
 
135
121
  /***/ }),
136
122
 
137
- /***/ 14:
123
+ /***/ 12:
138
124
  /***/ (function(module, exports, __webpack_require__) {
139
125
 
140
126
  "use strict";
@@ -148,11 +134,11 @@ var React = __webpack_require__(1);
148
134
 
149
135
  var styled_components_1 = __webpack_require__(4);
150
136
 
151
- var SizeAwareWrapper_1 = __webpack_require__(18);
137
+ var SizeAwareWrapper_1 = __webpack_require__(19);
152
138
 
153
- var style_1 = __webpack_require__(15);
139
+ var style_1 = __webpack_require__(14);
154
140
 
155
- var colorUtils_1 = __webpack_require__(13);
141
+ var colorUtils_1 = __webpack_require__(11);
156
142
 
157
143
  var Item = styled_components_1.default.div.attrs(function (_ref) {
158
144
  var width = _ref.width;
@@ -209,7 +195,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
209
195
 
210
196
  return React.createElement(FixSizeItem, {
211
197
  "data-test": "fix-size-item",
212
- "data-splunk-visualization-version": "25.0.0 - 5e0f30e5a",
198
+ "data-splunk-visualization-version": "25.1.0 - 812a9a4d8",
213
199
  width: width,
214
200
  height: height,
215
201
  backgroundColor: backgroundColor
@@ -231,35 +217,319 @@ exports.default = withFixedSizeContainer;
231
217
 
232
218
  /***/ }),
233
219
 
234
- /***/ 15:
220
+ /***/ 13:
221
+ /***/ (function(module, exports, __webpack_require__) {
222
+
223
+ "use strict";
224
+
225
+
226
+ Object.defineProperty(exports, "__esModule", {
227
+ value: true
228
+ });
229
+ exports.extendStaticWrapperProps = void 0;
230
+ /**
231
+ * @method extendStaticWrapperProps
232
+ * @param {Object} props
233
+ * @param {DashboardVizType} props.Wrapper
234
+ * @param {DashboardVizType} props.Visualization
235
+ */
236
+
237
+ var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
238
+ var Wrapper = _ref.Wrapper,
239
+ Visualization = _ref.Visualization;
240
+ var extendProperties = ['propTypes', 'defaultProps', 'config'];
241
+ extendProperties.forEach(function (prop) {
242
+ if (Visualization[prop]) {
243
+ // eslint-disable-next-line no-param-reassign
244
+ Wrapper[prop] = Visualization[prop];
245
+ }
246
+ });
247
+ };
248
+
249
+ exports.extendStaticWrapperProps = extendStaticWrapperProps;
250
+
251
+ /***/ }),
252
+
253
+ /***/ 14:
235
254
  /***/ (function(module, exports) {
236
255
 
237
256
  module.exports = require("@splunk/visualizations-shared/style");
238
257
 
239
258
  /***/ }),
240
259
 
241
- /***/ 16:
260
+ /***/ 15:
242
261
  /***/ (function(module, exports) {
243
262
 
244
263
  module.exports = require("@splunk/visualizations-shared/schemaUtils");
245
264
 
246
265
  /***/ }),
247
266
 
267
+ /***/ 16:
268
+ /***/ (function(module, exports, __webpack_require__) {
269
+
270
+ "use strict";
271
+
272
+
273
+ var _toConsumableArray = __webpack_require__(7);
274
+
275
+ var _defineProperty = __webpack_require__(6);
276
+
277
+ var __rest = this && this.__rest || function (s, e) {
278
+ var t = {};
279
+
280
+ for (var p in s) {
281
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
282
+ }
283
+
284
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
285
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
286
+ }
287
+ return t;
288
+ };
289
+
290
+ Object.defineProperty(exports, "__esModule", {
291
+ value: true
292
+ });
293
+ exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
294
+
295
+ var lodash_1 = __webpack_require__(3);
296
+
297
+ var schemaUtils_1 = __webpack_require__(15);
298
+
299
+ var VizBehavior_1 = __webpack_require__(5);
300
+
301
+ var dynamicOptionsDSLType = {
302
+ type: 'string',
303
+ pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
304
+ };
305
+ /**
306
+ * Helper function to extend an options schema with dynamic options DSL
307
+ * @param optionsSchema a visualization's options schema
308
+ * @returns an updated options schema that additionally allows strings starting with > for each option
309
+ */
310
+
311
+ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
312
+ var enhancedOptionsSchema = {};
313
+ Object.keys(optionsSchema).forEach(function (key) {
314
+ var _a = optionsSchema[key],
315
+ title = _a.title,
316
+ description = _a.description,
317
+ readOnly = _a.readOnly,
318
+ writeOnly = _a.writeOnly,
319
+ examples = _a.examples,
320
+ defaultValue = _a.default,
321
+ type = _a.type,
322
+ properties = _a.properties,
323
+ patternProperties = _a.patternProperties,
324
+ remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
325
+
326
+ var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
327
+ title: title
328
+ }), description !== undefined && {
329
+ description: description
330
+ }), readOnly !== undefined && {
331
+ readOnly: readOnly
332
+ }), writeOnly !== undefined && {
333
+ writeOnly: writeOnly
334
+ }), examples !== undefined && {
335
+ examples: examples
336
+ }), defaultValue !== undefined && {
337
+ default: defaultValue
338
+ });
339
+
340
+ if (type === 'object') {
341
+ enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
342
+ type: type
343
+ }), properties && {
344
+ properties: enhanceOptionsSchemaWithDynamicOptions(properties)
345
+ });
346
+
347
+ if (patternProperties) {
348
+ var enhancedPatternProperties = {};
349
+ Object.keys(patternProperties).forEach(function (opt) {
350
+ enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
351
+ });
352
+ enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
353
+ }
354
+ } else {
355
+ enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
356
+ anyOf: [Object.assign(Object.assign({}, type !== undefined && {
357
+ type: type
358
+ }), remainingSchemaEntry), dynamicOptionsDSLType]
359
+ });
360
+ }
361
+ });
362
+ return enhancedOptionsSchema;
363
+ }
364
+
365
+ exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
366
+ /**
367
+ * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
368
+ * this function also collapse all editor panels
369
+ * @param vizConfig a Visualization Config
370
+ * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
371
+ * and containing `open: false` for all editor panels in editorConfig
372
+ */
373
+
374
+ function enhanceConfig(vizConfig) {
375
+ var enhancedConfig = vizConfig;
376
+
377
+ if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
378
+ enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
379
+ }
380
+
381
+ enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
382
+ return Object.assign(Object.assign({}, config), {
383
+ open: false
384
+ });
385
+ });
386
+ return enhancedConfig;
387
+ }
388
+
389
+ exports.enhanceConfig = enhanceConfig;
390
+ /**
391
+ * Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
392
+ * Created for editor unit tests
393
+ * @param vizConfig a Visualization Config
394
+ * @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
395
+ */
396
+
397
+ function uncollapseEditorConfig(vizConfig) {
398
+ var editorPanelUncollapsedConfig = vizConfig;
399
+ editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
400
+ return Object.assign(Object.assign({}, config), {
401
+ open: true
402
+ });
403
+ });
404
+ return editorPanelUncollapsedConfig;
405
+ }
406
+
407
+ exports.uncollapseEditorConfig = uncollapseEditorConfig;
408
+
409
+ function isDynamicOption(option) {
410
+ return option && typeof option === 'string' && option.trim().startsWith('>') || false;
411
+ }
412
+
413
+ exports.isDynamicOption = isDynamicOption; // private helpers to improve readability of getInitialPreset
414
+ // this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset
415
+
416
+ /**
417
+ * this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset
418
+ * 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
419
+ * the inverse is true; if a preset has key is NOT undefined, it must also be NOT undefined in the corresponding vizContext
420
+ * 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
421
+ *
422
+ * Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
423
+ */
424
+
425
+ function hasCompatibleContexts(vizContext, presetContext) {
426
+ var presetContextKeys = Object.keys(presetContext);
427
+ return presetContextKeys.every(function (contextKey) {
428
+ return presetContext[contextKey] === undefined && vizContext[contextKey] === undefined || presetContext[contextKey] !== undefined && vizContext[contextKey] !== undefined;
429
+ });
430
+ }
431
+ /**
432
+ * Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
433
+ */
434
+
435
+
436
+ function hasCompatibleOptions(vizOptions, presetOptions) {
437
+ var presetOptionKeys = Object.keys(presetOptions);
438
+ return presetOptionKeys.every(function (optionKey) {
439
+ return isDynamicOption(presetOptions[optionKey]) === isDynamicOption(vizOptions[optionKey]);
440
+ });
441
+ }
442
+ /**
443
+ * Evaluates whether there is an initialPreset that fits the current state of vizContext + vizOptions
444
+ * This function ignores extraneous vizOptions or vizContext keys, as they could be outside the scope of what the preset is intended to configure
445
+ *
446
+ * @param {Object} vizContext - the current vizContext definition
447
+ * @param {Object} vizOptions - the current vizOptions definition
448
+ * @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
449
+ */
450
+
451
+
452
+ function getInitialPreset(vizContext, vizOptions, presets) {
453
+ return presets.find(function (preset) {
454
+ var presetContext = lodash_1.get(preset, ['value', 'context'], {});
455
+ var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
456
+ var presetContextKeys = Object.keys(presetContext);
457
+ var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
458
+ // if not, then the preset is invalid in config.ts
459
+
460
+ if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
461
+ return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
462
+ });
463
+ }
464
+
465
+ exports.getInitialPreset = getInitialPreset;
466
+ /**
467
+ * generates number precision values for a Select editor
468
+ *
469
+ * @param {Number} numPrecisionValues - number of integer precision values to generate
470
+ * @returns {{ label: string; value; string }[]} array of { label, value } tuples
471
+ */
472
+
473
+ function generatePrecisionValues(numPrecisionValues) {
474
+ return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
475
+ return {
476
+ label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
477
+ value: i
478
+ };
479
+ });
480
+ }
481
+
482
+ exports.generatePrecisionValues = generatePrecisionValues;
483
+ /**
484
+ * insert layout in layout array, return a new layout array instead of updating the original
485
+ *
486
+ * @param {EditorLayoutConfig[][]} layout - editor layout
487
+ * @param {Number} index - the index to insert layout item(s)
488
+ * @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
489
+ * @returns {EditorLayoutConfig[][]} new editor layout with insertion
490
+ */
491
+
492
+ var insertLayout = function insertLayout(layout, index) {
493
+ for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
494
+ layoutItems[_key - 2] = arguments[_key];
495
+ }
496
+
497
+ return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
498
+ };
499
+
500
+ exports.insertLayout = insertLayout;
501
+
502
+ /***/ }),
503
+
248
504
  /***/ 17:
249
505
  /***/ (function(module, exports) {
250
506
 
251
- module.exports = require("@babel/runtime/helpers/createClass");
507
+ module.exports = require("@splunk/visualizations-shared/configUtils");
252
508
 
253
509
  /***/ }),
254
510
 
255
511
  /***/ 18:
256
512
  /***/ (function(module, exports) {
257
513
 
258
- module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
514
+ module.exports = require("@babel/runtime/helpers/createClass");
259
515
 
260
516
  /***/ }),
261
517
 
262
518
  /***/ 19:
519
+ /***/ (function(module, exports) {
520
+
521
+ module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
522
+
523
+ /***/ }),
524
+
525
+ /***/ 2:
526
+ /***/ (function(module, exports) {
527
+
528
+ module.exports = require("@splunk/ui-utils/i18n");
529
+
530
+ /***/ }),
531
+
532
+ /***/ 20:
263
533
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
264
534
 
265
535
  "use strict";
@@ -294,15 +564,15 @@ __webpack_require__.r(__webpack_exports__);
294
564
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lighten", function() { return lighten; });
295
565
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "darken", function() { return darken; });
296
566
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "handleValueClickCallback", function() { return handleValueClickCallback; });
297
- /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7);
567
+ /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(6);
298
568
  /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
299
- /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
569
+ /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
300
570
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
301
- /* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(24);
571
+ /* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(26);
302
572
  /* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__);
303
573
  /* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(48);
304
574
  /* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__);
305
- /* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(22);
575
+ /* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(23);
306
576
  /* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__);
307
577
  /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(43);
308
578
  /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__);
@@ -1268,175 +1538,49 @@ var handleValueClickCallback = function handleValueClickCallback(ev, majorValue,
1268
1538
 
1269
1539
  /***/ }),
1270
1540
 
1271
- /***/ 2:
1272
- /***/ (function(module, exports) {
1273
-
1274
- module.exports = require("lodash");
1275
-
1276
- /***/ }),
1277
-
1278
- /***/ 20:
1279
- /***/ (function(module, exports) {
1280
-
1281
- module.exports = require("@splunk/themes/pick");
1282
-
1283
- /***/ }),
1284
-
1285
1541
  /***/ 21:
1286
1542
  /***/ (function(module, exports) {
1287
1543
 
1288
- module.exports = require("@splunk/visualization-context/TimezoneContext");
1544
+ module.exports = require("@splunk/themes/pick");
1289
1545
 
1290
1546
  /***/ }),
1291
1547
 
1292
1548
  /***/ 22:
1293
1549
  /***/ (function(module, exports) {
1294
1550
 
1295
- module.exports = require("@splunk/visualizations-shared/propUtils");
1551
+ module.exports = require("@splunk/visualization-context/TimezoneContext");
1296
1552
 
1297
1553
  /***/ }),
1298
1554
 
1299
1555
  /***/ 23:
1300
1556
  /***/ (function(module, exports) {
1301
1557
 
1302
- module.exports = require("@babel/runtime/helpers/typeof");
1558
+ module.exports = require("@splunk/visualizations-shared/propUtils");
1303
1559
 
1304
1560
  /***/ }),
1305
1561
 
1306
1562
  /***/ 24:
1307
1563
  /***/ (function(module, exports) {
1308
1564
 
1309
- module.exports = require("@splunk/visualizations-shared/numberUtils");
1565
+ module.exports = require("@splunk/visualizations-shared/hocUtils");
1310
1566
 
1311
1567
  /***/ }),
1312
1568
 
1313
1569
  /***/ 25:
1314
- /***/ (function(module, exports, __webpack_require__) {
1315
-
1316
- "use strict";
1317
-
1318
-
1319
- Object.defineProperty(exports, "__esModule", {
1320
- value: true
1321
- });
1322
- exports.pickFieldFromJSONSchema = void 0;
1323
-
1324
- var lodash_1 = __webpack_require__(2);
1325
-
1326
- var pickFieldFromJSONSchema = function pickFieldFromJSONSchema(optionsSchema) {
1327
- var fieldName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
1328
- return Object.keys(optionsSchema).reduce(function (accum, k) {
1329
- if (lodash_1.has(optionsSchema[k], fieldName)) {
1330
- accum[k] = optionsSchema[k][fieldName];
1331
- } else if (lodash_1.get(optionsSchema, [k, 'type']) === 'object' && lodash_1.has(optionsSchema[k], 'properties')) {
1332
- var nestedSchema = exports.pickFieldFromJSONSchema(optionsSchema[k].properties, fieldName);
1333
-
1334
- if (!lodash_1.isEmpty(nestedSchema)) {
1335
- accum[k] = nestedSchema;
1336
- }
1337
- }
1338
-
1339
- return accum;
1340
- }, {});
1341
- };
1570
+ /***/ (function(module, exports) {
1342
1571
 
1343
- exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
1572
+ module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
1344
1573
 
1345
1574
  /***/ }),
1346
1575
 
1347
1576
  /***/ 26:
1348
- /***/ (function(module, exports, __webpack_require__) {
1349
-
1350
- "use strict";
1351
-
1352
-
1353
- Object.defineProperty(exports, "__esModule", {
1354
- value: true
1355
- });
1356
- exports.shouldShowIconPlaceholder = void 0;
1357
-
1358
- var React = __webpack_require__(1);
1359
-
1360
- var T = __webpack_require__(0);
1361
-
1362
- var lodash_1 = __webpack_require__(2);
1363
-
1364
- var i18n_1 = __webpack_require__(3);
1365
-
1366
- var Message_1 = __webpack_require__(11);
1367
-
1368
- var FixedSizeContainer_1 = __webpack_require__(14);
1369
- /**
1370
- * @method shouldShowIconPlaceholder
1371
- * @param {object} dataSources
1372
- * @param {boolean} loading
1373
- * @returns {boolean}
1374
- */
1375
-
1376
-
1377
- var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
1378
- var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
1379
- var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
1380
- var noData = data === undefined;
1381
- var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
1382
- var noFields = fields === undefined;
1383
- return loading || noData || noFields;
1384
- };
1385
-
1386
- exports.shouldShowIconPlaceholder = shouldShowIconPlaceholder;
1387
- var propTypes = {
1388
- icon: T.func,
1389
- width: T.oneOfType([T.string, T.number]),
1390
- height: T.oneOfType([T.string, T.number]),
1391
- // eslint-disable-next-line react/no-unused-prop-types
1392
- backgroundColor: T.string,
1393
- iconColor: T.string
1394
- };
1395
- /**
1396
- * @method IconPlaceholder
1397
- * @param {IconPlaceholderProps} props
1398
- * @returns {React.ReactElement}
1399
- */
1400
-
1401
- var IconPlaceholder = function IconPlaceholder(props) {
1402
- var width = props.width,
1403
- height = props.height,
1404
- icon = props.icon,
1405
- iconColor = props.iconColor;
1406
-
1407
- if (icon) {
1408
- return React.createElement(icon, {
1409
- style: {
1410
- left: '50%',
1411
- top: '50%',
1412
- color: iconColor,
1413
- opacity: 0.15,
1414
- position: 'absolute',
1415
- transform: 'translate(-50%, -50%)'
1416
- },
1417
- width: '50%',
1418
- height: '50%'
1419
- });
1420
- }
1421
-
1422
- return React.createElement(Message_1.default, {
1423
- width: width,
1424
- height: height,
1425
- level: "warning",
1426
- message: i18n_1._('No DataSource Connected')
1427
- });
1428
- };
1577
+ /***/ (function(module, exports) {
1429
1578
 
1430
- IconPlaceholder.propTypes = propTypes;
1431
- IconPlaceholder.defaultProps = {
1432
- width: '100%',
1433
- height: 250
1434
- };
1435
- exports.default = FixedSizeContainer_1.default(IconPlaceholder);
1579
+ module.exports = require("@splunk/visualizations-shared/numberUtils");
1436
1580
 
1437
1581
  /***/ }),
1438
1582
 
1439
- /***/ 262:
1583
+ /***/ 265:
1440
1584
  /***/ (function(module, exports, __webpack_require__) {
1441
1585
 
1442
1586
  "use strict";
@@ -1447,11 +1591,11 @@ Object.defineProperty(exports, "__esModule", {
1447
1591
  });
1448
1592
  exports.PureSingleValueRadialThemes = exports.PureSingleValueRadial = exports.config = void 0;
1449
1593
 
1450
- var SingleValueRadial_1 = __webpack_require__(279);
1594
+ var SingleValueRadial_1 = __webpack_require__(282);
1451
1595
 
1452
- var withDashboardViz_1 = __webpack_require__(30);
1596
+ var withDashboardViz_1 = __webpack_require__(31);
1453
1597
 
1454
- var config_1 = __webpack_require__(263);
1598
+ var config_1 = __webpack_require__(266);
1455
1599
 
1456
1600
  exports.config = config_1.default;
1457
1601
  exports.PureSingleValueRadial = SingleValueRadial_1.default; // TODO: proper theming support for SVR when we come back to SVR viz
@@ -1464,7 +1608,7 @@ exports.default = withDashboardViz_1.default({
1464
1608
 
1465
1609
  /***/ }),
1466
1610
 
1467
- /***/ 263:
1611
+ /***/ 266:
1468
1612
  /***/ (function(module, exports, __webpack_require__) {
1469
1613
 
1470
1614
  "use strict";
@@ -1474,13 +1618,13 @@ Object.defineProperty(exports, "__esModule", {
1474
1618
  value: true
1475
1619
  });
1476
1620
 
1477
- var i18n_1 = __webpack_require__(3);
1621
+ var i18n_1 = __webpack_require__(2);
1478
1622
 
1479
- var schemaUtils_1 = __webpack_require__(16);
1623
+ var schemaUtils_1 = __webpack_require__(15);
1480
1624
 
1481
- var pick_1 = __webpack_require__(20);
1625
+ var pick_1 = __webpack_require__(21);
1482
1626
 
1483
- var variables_1 = __webpack_require__(10);
1627
+ var variables_1 = __webpack_require__(8);
1484
1628
 
1485
1629
  var PresetPalettes_1 = __webpack_require__(53);
1486
1630
 
@@ -1490,9 +1634,9 @@ var placeholders_1 = __webpack_require__(45);
1490
1634
 
1491
1635
  var VizBehavior_1 = __webpack_require__(5);
1492
1636
 
1493
- var configUtils_1 = __webpack_require__(6);
1637
+ var configUtils_1 = __webpack_require__(16);
1494
1638
 
1495
- var VizCategory_1 = __webpack_require__(29);
1639
+ var VizCategory_1 = __webpack_require__(30);
1496
1640
 
1497
1641
  var DynamicMajorColorEditor_1 = __webpack_require__(83);
1498
1642
 
@@ -1506,7 +1650,7 @@ var StaticTrendColorEditor_1 = __webpack_require__(87);
1506
1650
 
1507
1651
  var StaticBackgroundColorEditor_1 = __webpack_require__(77);
1508
1652
 
1509
- var RadialBackgroundColor_1 = __webpack_require__(264);
1653
+ var RadialBackgroundColor_1 = __webpack_require__(267);
1510
1654
 
1511
1655
  var dataContract = {
1512
1656
  requiredDataSources: [{
@@ -1561,13 +1705,13 @@ var optionsSchema = {
1561
1705
  backgroundColor: {
1562
1706
  default: '> themes.defaultBackgroundColor',
1563
1707
  description: 'Specify the color for the background. The hex value format should be “#ffffff”. The default for enterprise light is "#ffffff". The default for enterprise dark is "#000000". The default for prisma dark is "#0b0c0e".',
1564
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN,
1708
+ pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
1565
1709
  type: 'string'
1566
1710
  },
1567
1711
  majorColor: {
1568
1712
  default: '> themes.defaultFontColor',
1569
1713
  description: 'Specify the color for the major value. You may use a dataSource to apply the color. The hex value format should be “#ffffff”. The default for enterprise light is "#000000". The default for enterprise dark is "#ffffff". The default for prisma dark is "rgba(255, 255, 255, 0.98)".',
1570
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN,
1714
+ pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
1571
1715
  type: 'string'
1572
1716
  },
1573
1717
  majorValue: {
@@ -1595,13 +1739,13 @@ var optionsSchema = {
1595
1739
  radialBackgroundColor: {
1596
1740
  default: '> themes.defaultRadialBackgroundColor',
1597
1741
  description: 'Specify the color for the radial background. The hex value format should be “#ffffff”. The default for enterprise light is "rgba(0, 0, 0, 0.1)". The default for enterprise dark is "rgba(255, 255, 255, 0.15)". The default for prisma dark is "rgba(255, 255, 255, 0.15)".',
1598
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN,
1742
+ pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
1599
1743
  type: 'string'
1600
1744
  },
1601
1745
  radialStrokeColor: {
1602
1746
  default: '> majorColor',
1603
1747
  description: 'Specify the color for the radial. You may use a dataSource to apply the color. The hex value format should be “#ffffff”. The default for enterprise light is "#000000". The default for enterprise dark is "#ffffff". The default for prisma dark is "rgba(255, 255, 255, 0.98)".',
1604
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN,
1748
+ pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
1605
1749
  type: 'string'
1606
1750
  },
1607
1751
  shouldAbbreviateTrendValue: {
@@ -1617,7 +1761,7 @@ var optionsSchema = {
1617
1761
  trendColor: {
1618
1762
  default: '> themes.defaultFontColor',
1619
1763
  description: 'Specify the color for the trend value. You may use a dataSource to apply the color. The hex value format should be “#FFFFFF”. The default for enterprise light is "#000000". The default for enterprise dark is "#ffffff". The default for prisma dark is "rgba(255, 255, 255, 0.98)".',
1620
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN,
1764
+ pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
1621
1765
  type: 'string'
1622
1766
  },
1623
1767
  trendDisplay: {
@@ -1867,7 +2011,7 @@ exports.default = configUtils_1.enhanceConfig(config);
1867
2011
 
1868
2012
  /***/ }),
1869
2013
 
1870
- /***/ 264:
2014
+ /***/ 267:
1871
2015
  /***/ (function(module, exports, __webpack_require__) {
1872
2016
 
1873
2017
  "use strict";
@@ -1877,7 +2021,7 @@ Object.defineProperty(exports, "__esModule", {
1877
2021
  value: true
1878
2022
  });
1879
2023
 
1880
- var i18n_1 = __webpack_require__(3);
2024
+ var i18n_1 = __webpack_require__(2);
1881
2025
 
1882
2026
  var radialBackground = function radialBackground(_ref) {
1883
2027
  var label = _ref.label,
@@ -1904,7 +2048,99 @@ exports.default = radialBackground;
1904
2048
  "use strict";
1905
2049
 
1906
2050
 
1907
- var _defineProperty = __webpack_require__(7);
2051
+ Object.defineProperty(exports, "__esModule", {
2052
+ value: true
2053
+ });
2054
+ exports.shouldShowIconPlaceholder = void 0;
2055
+
2056
+ var React = __webpack_require__(1);
2057
+
2058
+ var T = __webpack_require__(0);
2059
+
2060
+ var lodash_1 = __webpack_require__(3);
2061
+
2062
+ var i18n_1 = __webpack_require__(2);
2063
+
2064
+ var Message_1 = __webpack_require__(9);
2065
+
2066
+ var FixedSizeContainer_1 = __webpack_require__(12);
2067
+ /**
2068
+ * @method shouldShowIconPlaceholder
2069
+ * @param {object} dataSources
2070
+ * @param {boolean} loading
2071
+ * @returns {boolean}
2072
+ */
2073
+
2074
+
2075
+ var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
2076
+ var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
2077
+ var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
2078
+ var noData = data === undefined;
2079
+ var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
2080
+ var noFields = fields === undefined;
2081
+ return loading || noData || noFields;
2082
+ };
2083
+
2084
+ exports.shouldShowIconPlaceholder = shouldShowIconPlaceholder;
2085
+ var propTypes = {
2086
+ icon: T.func,
2087
+ width: T.oneOfType([T.string, T.number]),
2088
+ height: T.oneOfType([T.string, T.number]),
2089
+ // eslint-disable-next-line react/no-unused-prop-types
2090
+ backgroundColor: T.string,
2091
+ iconColor: T.string
2092
+ };
2093
+ /**
2094
+ * @method IconPlaceholder
2095
+ * @param {IconPlaceholderProps} props
2096
+ * @returns {React.ReactElement}
2097
+ */
2098
+
2099
+ var IconPlaceholder = function IconPlaceholder(props) {
2100
+ var width = props.width,
2101
+ height = props.height,
2102
+ icon = props.icon,
2103
+ iconColor = props.iconColor;
2104
+
2105
+ if (icon) {
2106
+ return React.createElement(icon, {
2107
+ style: {
2108
+ left: '50%',
2109
+ top: '50%',
2110
+ color: iconColor,
2111
+ opacity: 0.15,
2112
+ position: 'absolute',
2113
+ transform: 'translate(-50%, -50%)'
2114
+ },
2115
+ width: '50%',
2116
+ height: '50%'
2117
+ });
2118
+ }
2119
+
2120
+ return React.createElement(Message_1.default, {
2121
+ width: width,
2122
+ height: height,
2123
+ level: "warning",
2124
+ message: i18n_1._('No DataSource Connected')
2125
+ });
2126
+ };
2127
+
2128
+ IconPlaceholder.propTypes = propTypes;
2129
+ IconPlaceholder.defaultProps = {
2130
+ width: '100%',
2131
+ height: 250
2132
+ };
2133
+ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
2134
+
2135
+ /***/ }),
2136
+
2137
+ /***/ 28:
2138
+ /***/ (function(module, exports, __webpack_require__) {
2139
+
2140
+ "use strict";
2141
+
2142
+
2143
+ var _defineProperty = __webpack_require__(6);
1908
2144
 
1909
2145
  Object.defineProperty(exports, "__esModule", {
1910
2146
  value: true
@@ -1913,9 +2149,9 @@ exports.getSortingParams = exports.SortParamsPropTypes = void 0;
1913
2149
 
1914
2150
  var T = __webpack_require__(0);
1915
2151
 
1916
- var lodash_1 = __webpack_require__(2);
2152
+ var lodash_1 = __webpack_require__(3);
1917
2153
 
1918
- var DataSource_1 = __webpack_require__(37);
2154
+ var DataSource_1 = __webpack_require__(38);
1919
2155
 
1920
2156
  exports.SortParamsPropTypes = T.shape({
1921
2157
  currentSortKey: T.string,
@@ -1969,7 +2205,7 @@ exports.getSortingParams = getSortingParams;
1969
2205
 
1970
2206
  /***/ }),
1971
2207
 
1972
- /***/ 279:
2208
+ /***/ 282:
1973
2209
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
1974
2210
 
1975
2211
  "use strict";
@@ -1989,11 +2225,11 @@ var external_prop_types_ = __webpack_require__(0);
1989
2225
  var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
1990
2226
 
1991
2227
  // EXTERNAL MODULE: external "@splunk/themes/pick"
1992
- var pick_ = __webpack_require__(20);
2228
+ var pick_ = __webpack_require__(21);
1993
2229
  var pick_default = /*#__PURE__*/__webpack_require__.n(pick_);
1994
2230
 
1995
2231
  // EXTERNAL MODULE: external "@splunk/themes/variables"
1996
- var variables_ = __webpack_require__(10);
2232
+ var variables_ = __webpack_require__(8);
1997
2233
  var variables_default = /*#__PURE__*/__webpack_require__.n(variables_);
1998
2234
 
1999
2235
  // EXTERNAL MODULE: external "styled-components"
@@ -2009,17 +2245,17 @@ var isEmpty_ = __webpack_require__(71);
2009
2245
  var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty_);
2010
2246
 
2011
2247
  // EXTERNAL MODULE: external "@splunk/visualizations-shared/style"
2012
- var style_ = __webpack_require__(15);
2248
+ var style_ = __webpack_require__(14);
2013
2249
 
2014
2250
  // EXTERNAL MODULE: external "@splunk/visualizations-shared/SizeAwareWrapper"
2015
- var SizeAwareWrapper_ = __webpack_require__(18);
2251
+ var SizeAwareWrapper_ = __webpack_require__(19);
2016
2252
  var SizeAwareWrapper_default = /*#__PURE__*/__webpack_require__.n(SizeAwareWrapper_);
2017
2253
 
2018
2254
  // EXTERNAL MODULE: ./src/common/components/VizStyleWrapper.jsx
2019
2255
  var VizStyleWrapper = __webpack_require__(62);
2020
2256
 
2021
2257
  // EXTERNAL MODULE: external "@babel/runtime/helpers/defineProperty"
2022
- var defineProperty_ = __webpack_require__(7);
2258
+ var defineProperty_ = __webpack_require__(6);
2023
2259
  var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty_);
2024
2260
 
2025
2261
  // EXTERNAL MODULE: ./src/SingleValueBasic/SingleValueBasic.jsx + 2 modules
@@ -2095,7 +2331,7 @@ RadialGraph_RadialGraph.defaultProps = {
2095
2331
  };
2096
2332
  /* harmony default export */ var PureSingleValueRadial_RadialGraph = (RadialGraph_RadialGraph);
2097
2333
  // EXTERNAL MODULE: ./src/common/utils/singleValueUtils.js
2098
- var singleValueUtils = __webpack_require__(19);
2334
+ var singleValueUtils = __webpack_require__(20);
2099
2335
 
2100
2336
  // CONCATENATED MODULE: ./src/SingleValueRadial/PureSingleValueRadial/utils/displayUtils.js
2101
2337
 
@@ -2663,7 +2899,7 @@ SingleValueRadial_SingleValueRadial.defaultProps = {
2663
2899
 
2664
2900
  /***/ }),
2665
2901
 
2666
- /***/ 28:
2902
+ /***/ 29:
2667
2903
  /***/ (function(module, exports, __webpack_require__) {
2668
2904
 
2669
2905
  "use strict";
@@ -2676,7 +2912,7 @@ exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
2676
2912
 
2677
2913
  var T = __webpack_require__(0);
2678
2914
 
2679
- var lodash_1 = __webpack_require__(2);
2915
+ var lodash_1 = __webpack_require__(3);
2680
2916
 
2681
2917
  exports.PaginatorParamsPropTypes = T.shape({
2682
2918
  isPaging: T.bool,
@@ -2728,7 +2964,14 @@ exports.getPaginationParams = getPaginationParams;
2728
2964
 
2729
2965
  /***/ }),
2730
2966
 
2731
- /***/ 29:
2967
+ /***/ 3:
2968
+ /***/ (function(module, exports) {
2969
+
2970
+ module.exports = require("lodash");
2971
+
2972
+ /***/ }),
2973
+
2974
+ /***/ 30:
2732
2975
  /***/ (function(module, exports, __webpack_require__) {
2733
2976
 
2734
2977
  "use strict";
@@ -2757,14 +3000,7 @@ var VizCategory;
2757
3000
 
2758
3001
  /***/ }),
2759
3002
 
2760
- /***/ 3:
2761
- /***/ (function(module, exports) {
2762
-
2763
- module.exports = require("@splunk/ui-utils/i18n");
2764
-
2765
- /***/ }),
2766
-
2767
- /***/ 30:
3003
+ /***/ 31:
2768
3004
  /***/ (function(module, exports, __webpack_require__) {
2769
3005
 
2770
3006
  "use strict";
@@ -2776,39 +3012,39 @@ Object.defineProperty(exports, "__esModule", {
2776
3012
 
2777
3013
  var React = __webpack_require__(1);
2778
3014
 
2779
- var lodash_1 = __webpack_require__(2);
3015
+ var lodash_1 = __webpack_require__(3);
2780
3016
 
2781
- var getSettingsFromThemedProps_1 = __webpack_require__(31);
3017
+ var getSettingsFromThemedProps_1 = __webpack_require__(32);
2782
3018
 
2783
- var Options_1 = __webpack_require__(32);
3019
+ var Options_1 = __webpack_require__(33);
2784
3020
 
2785
- var SanitizeProps_1 = __webpack_require__(33);
3021
+ var SanitizeProps_1 = __webpack_require__(34);
2786
3022
 
2787
- var TimezoneContext_1 = __webpack_require__(21);
3023
+ var TimezoneContext_1 = __webpack_require__(22);
2788
3024
 
2789
- var moment_1 = __webpack_require__(34);
3025
+ var moment_1 = __webpack_require__(35);
2790
3026
 
2791
3027
  var styled_components_1 = __webpack_require__(4);
2792
3028
 
2793
- var SplunkVisualization_1 = __webpack_require__(35);
3029
+ var hocUtils_1 = __webpack_require__(24);
2794
3030
 
2795
- var VizBehavior_1 = __webpack_require__(5);
3031
+ var JSONSchemaUtils_1 = __webpack_require__(25);
2796
3032
 
2797
- var getSorting_1 = __webpack_require__(27);
3033
+ var SplunkVisualization_1 = __webpack_require__(36);
2798
3034
 
2799
- var getPagination_1 = __webpack_require__(28);
3035
+ var VizBehavior_1 = __webpack_require__(5);
2800
3036
 
2801
- var useDeepMemo_1 = __webpack_require__(38);
3037
+ var getSorting_1 = __webpack_require__(28);
2802
3038
 
2803
- var JSONSchemaUtils_1 = __webpack_require__(25);
3039
+ var getPagination_1 = __webpack_require__(29);
2804
3040
 
2805
- var MissingPropsMessage_1 = __webpack_require__(39);
3041
+ var useDeepMemo_1 = __webpack_require__(39);
2806
3042
 
2807
- var withEditModeCover_1 = __webpack_require__(40);
3043
+ var MissingPropsMessage_1 = __webpack_require__(40);
2808
3044
 
2809
- var withPlaceholder_1 = __webpack_require__(42);
3045
+ var withEditModeCover_1 = __webpack_require__(41);
2810
3046
 
2811
- var hocUtils_1 = __webpack_require__(8);
3047
+ var withPlaceholder_1 = __webpack_require__(42);
2812
3048
  /**
2813
3049
  * hoc that wraps a pure react visualization in a Dashboard visualization
2814
3050
  * @param {DashboardVizOpts} opts
@@ -3010,41 +3246,41 @@ exports.default = withDashboardViz;
3010
3246
 
3011
3247
  /***/ }),
3012
3248
 
3013
- /***/ 31:
3249
+ /***/ 32:
3014
3250
  /***/ (function(module, exports) {
3015
3251
 
3016
3252
  module.exports = require("@splunk/themes/getSettingsFromThemedProps");
3017
3253
 
3018
3254
  /***/ }),
3019
3255
 
3020
- /***/ 32:
3256
+ /***/ 33:
3021
3257
  /***/ (function(module, exports) {
3022
3258
 
3023
3259
  module.exports = require("@splunk/visualization-encoding/Options");
3024
3260
 
3025
3261
  /***/ }),
3026
3262
 
3027
- /***/ 33:
3263
+ /***/ 34:
3028
3264
  /***/ (function(module, exports) {
3029
3265
 
3030
3266
  module.exports = require("@splunk/visualizations-shared/SanitizeProps");
3031
3267
 
3032
3268
  /***/ }),
3033
3269
 
3034
- /***/ 34:
3270
+ /***/ 35:
3035
3271
  /***/ (function(module, exports) {
3036
3272
 
3037
3273
  module.exports = require("@splunk/moment");
3038
3274
 
3039
3275
  /***/ }),
3040
3276
 
3041
- /***/ 35:
3277
+ /***/ 36:
3042
3278
  /***/ (function(module, exports, __webpack_require__) {
3043
3279
 
3044
3280
  "use strict";
3045
3281
 
3046
3282
 
3047
- var _classCallCheck = __webpack_require__(12);
3283
+ var _classCallCheck = __webpack_require__(10);
3048
3284
 
3049
3285
  Object.defineProperty(exports, "__esModule", {
3050
3286
  value: true
@@ -3054,9 +3290,9 @@ exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
3054
3290
 
3055
3291
  var T = __webpack_require__(0);
3056
3292
 
3057
- var lodash_1 = __webpack_require__(2);
3293
+ var lodash_1 = __webpack_require__(3);
3058
3294
 
3059
- var VizActionHandler_1 = __webpack_require__(36); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
3295
+ var VizActionHandler_1 = __webpack_require__(37); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
3060
3296
 
3061
3297
 
3062
3298
  exports.INITIAL_WIDTH = 250;
@@ -3190,15 +3426,15 @@ exports.default = SplunkVisualization;
3190
3426
 
3191
3427
  /***/ }),
3192
3428
 
3193
- /***/ 36:
3429
+ /***/ 37:
3194
3430
  /***/ (function(module, exports, __webpack_require__) {
3195
3431
 
3196
3432
  "use strict";
3197
3433
 
3198
3434
 
3199
- var _classCallCheck = __webpack_require__(12);
3435
+ var _classCallCheck = __webpack_require__(10);
3200
3436
 
3201
- var _createClass = __webpack_require__(17);
3437
+ var _createClass = __webpack_require__(18);
3202
3438
 
3203
3439
  Object.defineProperty(exports, "__esModule", {
3204
3440
  value: true
@@ -3228,7 +3464,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
3228
3464
 
3229
3465
  /***/ }),
3230
3466
 
3231
- /***/ 37:
3467
+ /***/ 38:
3232
3468
  /***/ (function(module, exports, __webpack_require__) {
3233
3469
 
3234
3470
  "use strict";
@@ -3242,7 +3478,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
3242
3478
 
3243
3479
  /***/ }),
3244
3480
 
3245
- /***/ 38:
3481
+ /***/ 39:
3246
3482
  /***/ (function(module, exports, __webpack_require__) {
3247
3483
 
3248
3484
  "use strict";
@@ -3255,7 +3491,7 @@ exports.useDeepMemo = void 0;
3255
3491
 
3256
3492
  var react_1 = __webpack_require__(1);
3257
3493
 
3258
- var lodash_1 = __webpack_require__(2);
3494
+ var lodash_1 = __webpack_require__(3);
3259
3495
  /**
3260
3496
  * This hook evaluates and stores the result of a passed function and only
3261
3497
  * re-evaluates the function when passed dependencies change.
@@ -3288,7 +3524,14 @@ exports.useDeepMemo = useDeepMemo;
3288
3524
 
3289
3525
  /***/ }),
3290
3526
 
3291
- /***/ 39:
3527
+ /***/ 4:
3528
+ /***/ (function(module, exports) {
3529
+
3530
+ module.exports = require("styled-components");
3531
+
3532
+ /***/ }),
3533
+
3534
+ /***/ 40:
3292
3535
  /***/ (function(module, exports, __webpack_require__) {
3293
3536
 
3294
3537
  "use strict";
@@ -3303,11 +3546,11 @@ var React = __webpack_require__(1);
3303
3546
 
3304
3547
  var T = __webpack_require__(0);
3305
3548
 
3306
- var i18n_1 = __webpack_require__(3);
3549
+ var i18n_1 = __webpack_require__(2);
3307
3550
 
3308
- var Message_1 = __webpack_require__(11);
3551
+ var Message_1 = __webpack_require__(9);
3309
3552
 
3310
- var FixedSizeContainer_1 = __webpack_require__(14);
3553
+ var FixedSizeContainer_1 = __webpack_require__(12);
3311
3554
  /**
3312
3555
  * @method isMissing
3313
3556
  * @param {any} v
@@ -3369,14 +3612,7 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
3369
3612
 
3370
3613
  /***/ }),
3371
3614
 
3372
- /***/ 4:
3373
- /***/ (function(module, exports) {
3374
-
3375
- module.exports = require("styled-components");
3376
-
3377
- /***/ }),
3378
-
3379
- /***/ 40:
3615
+ /***/ 41:
3380
3616
  /***/ (function(module, exports, __webpack_require__) {
3381
3617
 
3382
3618
  "use strict";
@@ -3390,14 +3626,14 @@ var React = __webpack_require__(1);
3390
3626
 
3391
3627
  var styled_components_1 = __webpack_require__(4);
3392
3628
 
3393
- var hocUtils_1 = __webpack_require__(8);
3629
+ var hocUtils_1 = __webpack_require__(13);
3394
3630
 
3395
3631
  var Cover = styled_components_1.default.div.withConfig({
3396
3632
  displayName: "withEditModeCover__Cover",
3397
3633
  componentId: "sc-1gsbnxb-0"
3398
3634
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
3399
3635
  var Blocker = styled_components_1.default.div.attrs({
3400
- 'data-splunk-visualization-version': "25.0.0 - 5e0f30e5a"
3636
+ 'data-splunk-visualization-version': "25.1.0 - 812a9a4d8"
3401
3637
  }).withConfig({
3402
3638
  displayName: "withEditModeCover__Blocker",
3403
3639
  componentId: "sc-1gsbnxb-1"
@@ -3429,13 +3665,6 @@ exports.default = withEditModeCover;
3429
3665
 
3430
3666
  /***/ }),
3431
3667
 
3432
- /***/ 41:
3433
- /***/ (function(module, exports) {
3434
-
3435
- module.exports = require("@splunk/visualizations-shared/mapUtils");
3436
-
3437
- /***/ }),
3438
-
3439
3668
  /***/ 42:
3440
3669
  /***/ (function(module, exports, __webpack_require__) {
3441
3670
 
@@ -3448,15 +3677,15 @@ Object.defineProperty(exports, "__esModule", {
3448
3677
 
3449
3678
  var React = __webpack_require__(1);
3450
3679
 
3451
- var colorUtils_1 = __webpack_require__(13);
3680
+ var colorUtils_1 = __webpack_require__(11);
3452
3681
 
3453
- var variables_1 = __webpack_require__(10);
3682
+ var variables_1 = __webpack_require__(8);
3454
3683
 
3455
- var IconPlaceholder_1 = __webpack_require__(26);
3684
+ var IconPlaceholder_1 = __webpack_require__(27);
3456
3685
 
3457
3686
  var VizBehavior_1 = __webpack_require__(5);
3458
3687
 
3459
- var hocUtils_1 = __webpack_require__(8);
3688
+ var hocUtils_1 = __webpack_require__(13);
3460
3689
 
3461
3690
  var withPlaceholder = function withPlaceholder(Visualization) {
3462
3691
  var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
@@ -3466,330 +3695,125 @@ var withPlaceholder = function withPlaceholder(Visualization) {
3466
3695
  var Wrapper = function Wrapper(props) {
3467
3696
  var _a, _b;
3468
3697
 
3469
- var dataSources = props.dataSources,
3470
- loading = props.loading,
3471
- options = props.options,
3472
- height = props.height,
3473
- width = props.width;
3474
- var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
3475
- 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);
3476
- var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
3477
- var iconColor = variables_1.default.contentColorActive(props);
3478
-
3479
- if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
3480
- return React.createElement(IconPlaceholder_1.default, {
3481
- "data-test": "icon-placeholder",
3482
- icon: icon,
3483
- width: width,
3484
- height: height,
3485
- backgroundColor: bgColorFromTheme,
3486
- iconColor: iconColor
3487
- });
3488
- }
3489
-
3490
- return React.createElement(Visualization, Object.assign({}, props));
3491
- };
3492
-
3493
- hocUtils_1.extendStaticWrapperProps({
3494
- Wrapper: Wrapper,
3495
- Visualization: Visualization
3496
- });
3497
- return Wrapper;
3498
- };
3499
-
3500
- exports.default = withPlaceholder;
3501
-
3502
- /***/ }),
3503
-
3504
- /***/ 43:
3505
- /***/ (function(module, exports) {
3506
-
3507
- module.exports = require("@splunk/visualizations-shared/colorConstants");
3508
-
3509
- /***/ }),
3510
-
3511
- /***/ 45:
3512
- /***/ (function(module, exports) {
3513
-
3514
- module.exports = require("@splunk/visualization-icons/placeholders");
3515
-
3516
- /***/ }),
3517
-
3518
- /***/ 46:
3519
- /***/ (function(module, exports) {
3520
-
3521
- module.exports = require("@splunk/visualization-icons");
3522
-
3523
- /***/ }),
3524
-
3525
- /***/ 47:
3526
- /***/ (function(module, exports) {
3527
-
3528
- module.exports = require("@babel/runtime/helpers/extends");
3529
-
3530
- /***/ }),
3531
-
3532
- /***/ 48:
3533
- /***/ (function(module, exports) {
3534
-
3535
- module.exports = require("@splunk/visualizations-shared/domUtils");
3536
-
3537
- /***/ }),
3538
-
3539
- /***/ 5:
3540
- /***/ (function(module, exports, __webpack_require__) {
3541
-
3542
- "use strict";
3543
-
3544
-
3545
- Object.defineProperty(exports, "__esModule", {
3546
- value: true
3547
- });
3548
- exports.VizBehavior = void 0;
3549
- var VizBehavior;
3550
-
3551
- (function (VizBehavior) {
3552
- /**
3553
- * Dynamic Options Behavior.
3554
- * This allows visualization options to be powered by data
3555
- *
3556
- * **Example**
3557
- *
3558
- * sparklineValues: ">primary|seriesByIndex(0)"
3559
- * would configure sparklineValues with an array of data points
3560
- * coming from the first series in the primary datasource
3561
- *
3562
- */
3563
- VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
3564
- VizBehavior["EVENTS"] = "events";
3565
- /**
3566
- * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
3567
- * missing.
3568
- * @type {string}
3569
- */
3570
-
3571
- VizBehavior["PLACEHOLDER"] = "placeholder";
3572
- VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
3573
- })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
3574
-
3575
- /***/ }),
3576
-
3577
- /***/ 53:
3578
- /***/ (function(module, exports) {
3579
-
3580
- module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
3581
-
3582
- /***/ }),
3583
-
3584
- /***/ 6:
3585
- /***/ (function(module, exports, __webpack_require__) {
3586
-
3587
- "use strict";
3588
-
3589
-
3590
- var _toConsumableArray = __webpack_require__(9);
3591
-
3592
- var _defineProperty = __webpack_require__(7);
3593
-
3594
- var __rest = this && this.__rest || function (s, e) {
3595
- var t = {};
3596
-
3597
- for (var p in s) {
3598
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
3599
- }
3600
-
3601
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
3602
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
3603
- }
3604
- return t;
3605
- };
3606
-
3607
- Object.defineProperty(exports, "__esModule", {
3608
- value: true
3609
- });
3610
- exports.insertLayout = exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOption = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
3611
-
3612
- var lodash_1 = __webpack_require__(2);
3613
-
3614
- var schemaUtils_1 = __webpack_require__(16);
3615
-
3616
- var VizBehavior_1 = __webpack_require__(5);
3617
-
3618
- var dynamicOptionsDSLType = {
3619
- type: 'string',
3620
- pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
3621
- };
3622
- /**
3623
- * Helper function to extend an options schema with dynamic options DSL
3624
- * @param optionsSchema a visualization's options schema
3625
- * @returns an updated options schema that additionally allows strings starting with > for each option
3626
- */
3627
-
3628
- function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
3629
- var enhancedOptionsSchema = {};
3630
- Object.keys(optionsSchema).forEach(function (key) {
3631
- var _a = optionsSchema[key],
3632
- title = _a.title,
3633
- description = _a.description,
3634
- readOnly = _a.readOnly,
3635
- writeOnly = _a.writeOnly,
3636
- examples = _a.examples,
3637
- defaultValue = _a.default,
3638
- type = _a.type,
3639
- properties = _a.properties,
3640
- patternProperties = _a.patternProperties,
3641
- remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
3642
-
3643
- var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
3644
- title: title
3645
- }), description !== undefined && {
3646
- description: description
3647
- }), readOnly !== undefined && {
3648
- readOnly: readOnly
3649
- }), writeOnly !== undefined && {
3650
- writeOnly: writeOnly
3651
- }), examples !== undefined && {
3652
- examples: examples
3653
- }), defaultValue !== undefined && {
3654
- default: defaultValue
3655
- });
3656
-
3657
- if (type === 'object') {
3658
- enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
3659
- type: type
3660
- }), properties && {
3661
- properties: enhanceOptionsSchemaWithDynamicOptions(properties)
3662
- });
3663
-
3664
- if (patternProperties) {
3665
- var enhancedPatternProperties = {};
3666
- Object.keys(patternProperties).forEach(function (opt) {
3667
- enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
3668
- });
3669
- enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
3670
- }
3671
- } else {
3672
- enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
3673
- anyOf: [Object.assign(Object.assign({}, type !== undefined && {
3674
- type: type
3675
- }), remainingSchemaEntry), dynamicOptionsDSLType]
3698
+ var dataSources = props.dataSources,
3699
+ loading = props.loading,
3700
+ options = props.options,
3701
+ height = props.height,
3702
+ width = props.width;
3703
+ var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
3704
+ 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);
3705
+ var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
3706
+ var iconColor = variables_1.default.contentColorActive(props);
3707
+
3708
+ if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
3709
+ return React.createElement(IconPlaceholder_1.default, {
3710
+ "data-test": "icon-placeholder",
3711
+ icon: icon,
3712
+ width: width,
3713
+ height: height,
3714
+ backgroundColor: bgColorFromTheme,
3715
+ iconColor: iconColor
3676
3716
  });
3677
3717
  }
3718
+
3719
+ return React.createElement(Visualization, Object.assign({}, props));
3720
+ };
3721
+
3722
+ hocUtils_1.extendStaticWrapperProps({
3723
+ Wrapper: Wrapper,
3724
+ Visualization: Visualization
3678
3725
  });
3679
- return enhancedOptionsSchema;
3680
- }
3726
+ return Wrapper;
3727
+ };
3681
3728
 
3682
- exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
3683
- /**
3684
- * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
3685
- * @param vizConfig a Visualization Config
3686
- * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
3687
- */
3729
+ exports.default = withPlaceholder;
3688
3730
 
3689
- function enhanceConfig(vizConfig) {
3690
- var enhancedConfig = vizConfig;
3731
+ /***/ }),
3691
3732
 
3692
- if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
3693
- enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
3694
- }
3733
+ /***/ 43:
3734
+ /***/ (function(module, exports) {
3695
3735
 
3696
- return enhancedConfig;
3697
- }
3736
+ module.exports = require("@splunk/visualizations-shared/colorConstants");
3698
3737
 
3699
- exports.enhanceConfig = enhanceConfig;
3738
+ /***/ }),
3700
3739
 
3701
- function isDynamicOption(option) {
3702
- return option && typeof option === 'string' && option.trim().startsWith('>') || false;
3703
- }
3740
+ /***/ 45:
3741
+ /***/ (function(module, exports) {
3704
3742
 
3705
- exports.isDynamicOption = isDynamicOption; // private helpers to improve readability of getInitialPreset
3706
- // this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset
3743
+ module.exports = require("@splunk/visualization-icons/placeholders");
3707
3744
 
3708
- /**
3709
- * this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset
3710
- * 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
3711
- * the inverse is true; if a preset has key is NOT undefined, it must also be NOT undefined in the corresponding vizContext
3712
- * 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
3713
- *
3714
- * Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
3715
- */
3745
+ /***/ }),
3716
3746
 
3717
- function hasCompatibleContexts(vizContext, presetContext) {
3718
- var presetContextKeys = Object.keys(presetContext);
3719
- return presetContextKeys.every(function (contextKey) {
3720
- return presetContext[contextKey] === undefined && vizContext[contextKey] === undefined || presetContext[contextKey] !== undefined && vizContext[contextKey] !== undefined;
3721
- });
3722
- }
3723
- /**
3724
- * Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
3725
- */
3747
+ /***/ 46:
3748
+ /***/ (function(module, exports) {
3726
3749
 
3750
+ module.exports = require("@splunk/visualization-icons");
3727
3751
 
3728
- function hasCompatibleOptions(vizOptions, presetOptions) {
3729
- var presetOptionKeys = Object.keys(presetOptions);
3730
- return presetOptionKeys.every(function (optionKey) {
3731
- return isDynamicOption(presetOptions[optionKey]) === isDynamicOption(vizOptions[optionKey]);
3732
- });
3733
- }
3734
- /**
3735
- * Evaluates whether there is an initialPreset that fits the current state of vizContext + vizOptions
3736
- * This function ignores extraneous vizOptions or vizContext keys, as they could be outside the scope of what the preset is intended to configure
3737
- *
3738
- * @param {Object} vizContext - the current vizContext definition
3739
- * @param {Object} vizOptions - the current vizOptions definition
3740
- * @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
3741
- */
3752
+ /***/ }),
3742
3753
 
3754
+ /***/ 47:
3755
+ /***/ (function(module, exports) {
3743
3756
 
3744
- function getInitialPreset(vizContext, vizOptions, presets) {
3745
- return presets.find(function (preset) {
3746
- var presetContext = lodash_1.get(preset, ['value', 'context'], {});
3747
- var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
3748
- var presetContextKeys = Object.keys(presetContext);
3749
- var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
3750
- // if not, then the preset is invalid in config.ts
3757
+ module.exports = require("@babel/runtime/helpers/extends");
3751
3758
 
3752
- if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
3753
- return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
3754
- });
3755
- }
3759
+ /***/ }),
3756
3760
 
3757
- exports.getInitialPreset = getInitialPreset;
3758
- /**
3759
- * generates number precision values for a Select editor
3760
- *
3761
- * @param {Number} numPrecisionValues - number of integer precision values to generate
3762
- * @returns {{ label: string; value; string }[]} array of { label, value } tuples
3763
- */
3761
+ /***/ 48:
3762
+ /***/ (function(module, exports) {
3764
3763
 
3765
- function generatePrecisionValues(numPrecisionValues) {
3766
- return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
3767
- return {
3768
- label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
3769
- value: i
3770
- };
3771
- });
3772
- }
3764
+ module.exports = require("@splunk/visualizations-shared/domUtils");
3773
3765
 
3774
- exports.generatePrecisionValues = generatePrecisionValues;
3775
- /**
3776
- * insert layout in layout array, return a new layout array instead of updating the original
3777
- *
3778
- * @param {EditorLayoutConfig[][]} layout - editor layout
3779
- * @param {Number} index - the index to insert layout item(s)
3780
- * @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
3781
- * @returns {EditorLayoutConfig[][]} new editor layout with insertion
3782
- */
3766
+ /***/ }),
3783
3767
 
3784
- var insertLayout = function insertLayout(layout, index) {
3785
- for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
3786
- layoutItems[_key - 2] = arguments[_key];
3787
- }
3768
+ /***/ 5:
3769
+ /***/ (function(module, exports, __webpack_require__) {
3788
3770
 
3789
- return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
3790
- };
3771
+ "use strict";
3791
3772
 
3792
- exports.insertLayout = insertLayout;
3773
+
3774
+ Object.defineProperty(exports, "__esModule", {
3775
+ value: true
3776
+ });
3777
+ exports.VizBehavior = void 0;
3778
+ var VizBehavior;
3779
+
3780
+ (function (VizBehavior) {
3781
+ /**
3782
+ * Dynamic Options Behavior.
3783
+ * This allows visualization options to be powered by data
3784
+ *
3785
+ * **Example**
3786
+ *
3787
+ * sparklineValues: ">primary|seriesByIndex(0)"
3788
+ * would configure sparklineValues with an array of data points
3789
+ * coming from the first series in the primary datasource
3790
+ *
3791
+ */
3792
+ VizBehavior["DYNAMIC_OPTIONS"] = "dynamic-options";
3793
+ VizBehavior["EVENTS"] = "events";
3794
+ /**
3795
+ * Placeholder behavior: visualization will display a placeholder rather than fail if any of the `requiredProps` is
3796
+ * missing.
3797
+ * @type {string}
3798
+ */
3799
+
3800
+ VizBehavior["PLACEHOLDER"] = "placeholder";
3801
+ VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
3802
+ })(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
3803
+
3804
+ /***/ }),
3805
+
3806
+ /***/ 53:
3807
+ /***/ (function(module, exports) {
3808
+
3809
+ module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
3810
+
3811
+ /***/ }),
3812
+
3813
+ /***/ 6:
3814
+ /***/ (function(module, exports) {
3815
+
3816
+ module.exports = require("@babel/runtime/helpers/defineProperty");
3793
3817
 
3794
3818
  /***/ }),
3795
3819
 
@@ -3844,7 +3868,7 @@ var external_styled_components_ = __webpack_require__(4);
3844
3868
  var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
3845
3869
 
3846
3870
  // EXTERNAL MODULE: ./src/common/utils/singleValueUtils.js
3847
- var singleValueUtils = __webpack_require__(19);
3871
+ var singleValueUtils = __webpack_require__(20);
3848
3872
 
3849
3873
  // EXTERNAL MODULE: external "@splunk/react-icons/ArrowUp"
3850
3874
  var ArrowUp_ = __webpack_require__(72);
@@ -4121,7 +4145,7 @@ var SingleValueTrendValue = TrendValue;
4121
4145
  /***/ 7:
4122
4146
  /***/ (function(module, exports) {
4123
4147
 
4124
- module.exports = require("@babel/runtime/helpers/defineProperty");
4148
+ module.exports = require("@babel/runtime/helpers/toConsumableArray");
4125
4149
 
4126
4150
  /***/ }),
4127
4151
 
@@ -4165,10 +4189,10 @@ module.exports = require("cssesc");
4165
4189
 
4166
4190
  "use strict";
4167
4191
  __webpack_require__.r(__webpack_exports__);
4168
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
4192
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
4169
4193
  /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
4170
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
4171
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4194
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
4195
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4172
4196
 
4173
4197
 
4174
4198
  var StaticBackgroundColorEditor = {
@@ -4177,7 +4201,7 @@ var StaticBackgroundColorEditor = {
4177
4201
  editor: 'editor.color',
4178
4202
  showEditor: function showEditor(_ref) {
4179
4203
  var options = _ref.options;
4180
- return !Object(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.backgroundColor);
4204
+ return !Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.backgroundColor);
4181
4205
  }
4182
4206
  };
4183
4207
  /* harmony default export */ __webpack_exports__["default"] = (StaticBackgroundColorEditor);
@@ -4185,89 +4209,9 @@ var StaticBackgroundColorEditor = {
4185
4209
  /***/ }),
4186
4210
 
4187
4211
  /***/ 8:
4188
- /***/ (function(module, exports, __webpack_require__) {
4189
-
4190
- "use strict";
4191
-
4192
-
4193
- var _typeof = __webpack_require__(23);
4194
-
4195
- Object.defineProperty(exports, "__esModule", {
4196
- value: true
4197
- });
4198
- exports.deepMergeWithArrayPrimitiveOverrides = exports.extendStaticWrapperProps = void 0;
4199
-
4200
- var lodash_1 = __webpack_require__(2);
4201
-
4202
- var mapUtils_1 = __webpack_require__(41);
4203
- /**
4204
- * @method extendStaticWrapperProps
4205
- * @param {Object} props
4206
- * @param {DashboardVizType} props.Wrapper
4207
- * @param {DashboardVizType} props.Visualization
4208
- */
4209
-
4210
-
4211
- var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
4212
- var Wrapper = _ref.Wrapper,
4213
- Visualization = _ref.Visualization;
4214
- var extendProperties = ['propTypes', 'defaultProps', 'config'];
4215
- extendProperties.forEach(function (prop) {
4216
- if (Visualization[prop]) {
4217
- // eslint-disable-next-line no-param-reassign
4218
- Wrapper[prop] = Visualization[prop];
4219
- }
4220
- });
4221
- };
4222
-
4223
- exports.extendStaticWrapperProps = extendStaticWrapperProps;
4224
- /**
4225
- * helper to deeply merge objects while preserving arrays in earlier source objects
4226
- * 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
4227
- * 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).
4228
- * 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
4229
- * 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.
4230
- *
4231
- * @method deepMergeWithArrayPrimitiveOverrides
4232
- * @param {Object} initial - target object to merge values into
4233
- * @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
4234
- *
4235
- * @returns {Object}
4236
- */
4237
-
4238
- var deepMergeWithArrayPrimitiveOverrides = function deepMergeWithArrayPrimitiveOverrides(initial) {
4239
- var clone = lodash_1.cloneDeep(initial);
4240
-
4241
- for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
4242
- sources[_key - 1] = arguments[_key];
4243
- }
4244
-
4245
- sources.forEach(function (sourceToApply) {
4246
- Object.keys(sourceToApply).forEach(function (sourceKey) {
4247
- if (!Object.prototype.hasOwnProperty.call(clone, sourceKey)) {
4248
- clone[sourceKey] = lodash_1.cloneDeep(sourceToApply[sourceKey]);
4249
- }
4250
-
4251
- if (clone[sourceKey] && _typeof(clone[sourceKey]) === 'object' && !Array.isArray(clone[sourceKey]) && _typeof(sourceToApply[sourceKey]) === 'object') {
4252
- clone[sourceKey] = exports.deepMergeWithArrayPrimitiveOverrides(clone[sourceKey], sourceToApply[sourceKey]);
4253
- } else if (Array.isArray(clone[sourceKey]) && _typeof(clone[sourceKey][0]) === 'object' && !Array.isArray(clone[sourceKey][0])) {
4254
- // If option is an array of objects
4255
- for (var i = 0; i < clone[sourceKey].length; i += 1) {
4256
- if (_typeof(clone[sourceKey][i]) === 'object') {
4257
- var closestMatchIdx = mapUtils_1.findClosestMatchFromDefaultList(sourceToApply[sourceKey], clone[sourceKey][i]);
4258
-
4259
- if (closestMatchIdx > -1) {
4260
- clone[sourceKey][i] = exports.deepMergeWithArrayPrimitiveOverrides(clone[sourceKey][i], sourceToApply[sourceKey][closestMatchIdx]);
4261
- }
4262
- }
4263
- }
4264
- }
4265
- });
4266
- });
4267
- return clone;
4268
- };
4212
+ /***/ (function(module, exports) {
4269
4213
 
4270
- exports.deepMergeWithArrayPrimitiveOverrides = deepMergeWithArrayPrimitiveOverrides;
4214
+ module.exports = require("@splunk/themes/variables");
4271
4215
 
4272
4216
  /***/ }),
4273
4217
 
@@ -4277,10 +4221,10 @@ exports.deepMergeWithArrayPrimitiveOverrides = deepMergeWithArrayPrimitiveOverri
4277
4221
  "use strict";
4278
4222
  __webpack_require__.r(__webpack_exports__);
4279
4223
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicMajorColorEditor", function() { return getDynamicMajorColorEditor; });
4280
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
4224
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
4281
4225
  /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
4282
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
4283
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4226
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
4227
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4284
4228
 
4285
4229
 
4286
4230
  var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
@@ -4293,7 +4237,7 @@ var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
4293
4237
  editor: 'editor.dynamicColor',
4294
4238
  showEditor: function showEditor(_ref2) {
4295
4239
  var options = _ref2.options;
4296
- return Object(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.majorColor);
4240
+ return Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.majorColor);
4297
4241
  },
4298
4242
  editorProps: {
4299
4243
  labelPosition: 'left',
@@ -4328,10 +4272,10 @@ var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
4328
4272
  "use strict";
4329
4273
  __webpack_require__.r(__webpack_exports__);
4330
4274
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicTrendColorEditor", function() { return getDynamicTrendColorEditor; });
4331
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
4275
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
4332
4276
  /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
4333
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
4334
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4277
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
4278
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4335
4279
 
4336
4280
 
4337
4281
  var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
@@ -4344,7 +4288,7 @@ var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
4344
4288
  editor: 'editor.dynamicColor',
4345
4289
  showEditor: function showEditor(_ref2) {
4346
4290
  var options = _ref2.options;
4347
- return Object(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.trendColor);
4291
+ return Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.trendColor);
4348
4292
  },
4349
4293
  editorProps: {
4350
4294
  labelPosition: 'left',
@@ -4373,10 +4317,10 @@ var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
4373
4317
  "use strict";
4374
4318
  __webpack_require__.r(__webpack_exports__);
4375
4319
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicBackgroundColorEditor", function() { return getDynamicBackgroundColorEditor; });
4376
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
4320
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
4377
4321
  /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
4378
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
4379
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4322
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
4323
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4380
4324
 
4381
4325
 
4382
4326
  var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_ref) {
@@ -4389,7 +4333,7 @@ var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_
4389
4333
  editor: 'editor.dynamicColor',
4390
4334
  showEditor: function showEditor(_ref2) {
4391
4335
  var options = _ref2.options;
4392
- return Object(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.backgroundColor);
4336
+ return Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.backgroundColor);
4393
4337
  },
4394
4338
  editorProps: {
4395
4339
  labelPosition: 'left',
@@ -4427,10 +4371,10 @@ var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_
4427
4371
 
4428
4372
  "use strict";
4429
4373
  __webpack_require__.r(__webpack_exports__);
4430
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
4374
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
4431
4375
  /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
4432
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
4433
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4376
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
4377
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4434
4378
 
4435
4379
 
4436
4380
  var StaticMajorColorEditor = {
@@ -4439,7 +4383,7 @@ var StaticMajorColorEditor = {
4439
4383
  editor: 'editor.color',
4440
4384
  showEditor: function showEditor(_ref) {
4441
4385
  var options = _ref.options;
4442
- return !Object(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.majorColor);
4386
+ return !Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.majorColor);
4443
4387
  }
4444
4388
  };
4445
4389
  /* harmony default export */ __webpack_exports__["default"] = (StaticMajorColorEditor);
@@ -4451,10 +4395,10 @@ var StaticMajorColorEditor = {
4451
4395
 
4452
4396
  "use strict";
4453
4397
  __webpack_require__.r(__webpack_exports__);
4454
- /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(3);
4398
+ /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
4455
4399
  /* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
4456
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
4457
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4400
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(17);
4401
+ /* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
4458
4402
 
4459
4403
 
4460
4404
  var StaticTrendColorEditor = {
@@ -4463,7 +4407,7 @@ var StaticTrendColorEditor = {
4463
4407
  editor: 'editor.color',
4464
4408
  showEditor: function showEditor(_ref) {
4465
4409
  var options = _ref.options;
4466
- return !Object(_utils_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.trendColor);
4410
+ return !Object(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__["isDynamicOption"])(options.trendColor);
4467
4411
  },
4468
4412
  isDisabled: function isDisabled(_ref2) {
4469
4413
  var options = _ref2.options;
@@ -4477,7 +4421,7 @@ var StaticTrendColorEditor = {
4477
4421
  /***/ 9:
4478
4422
  /***/ (function(module, exports) {
4479
4423
 
4480
- module.exports = require("@babel/runtime/helpers/toConsumableArray");
4424
+ module.exports = require("@splunk/visualizations-shared/Message");
4481
4425
 
4482
4426
  /***/ })
4483
4427