@splunk/visualizations 25.0.1 → 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 (161) hide show
  1. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_custom_base_layer_tile_server.png +0 -0
  2. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Area_Editor.png +0 -0
  3. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bar_Editor.png +0 -0
  4. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Bubble_Editor.png +0 -0
  5. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_ChoroplethSvg_Editor.png +0 -0
  6. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Column_Editor.png +0 -0
  7. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Ellipse_Editor.png +0 -0
  8. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_FillerGauge_Editor.png +0 -0
  9. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Image_Editor.png +0 -0
  10. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Line_Editor.png +0 -0
  11. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_LinkGraph_Editor.png +0 -0
  12. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Map_Editor.png +0 -0
  13. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Markdown_Editor.png +0 -0
  14. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_MarkerGauge_Editor.png +0 -0
  15. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Parallel_Coordinates_Editor.png +0 -0
  16. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Pie_Editor.png +0 -0
  17. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Punchcard_Editor.png +0 -0
  18. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Rectangle_Editor.png +0 -0
  19. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Sankey_Editor.png +0 -0
  20. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Scatter_Editor.png +0 -0
  21. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Editor.png +0 -0
  22. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Icon_Editor.png +0 -0
  23. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Radial_Editor.png +0 -0
  24. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Table_Editor.png +0 -0
  25. package/Area.config.js +141 -152
  26. package/Area.config.js.map +1 -1
  27. package/Area.js +334 -431
  28. package/Area.js.map +1 -1
  29. package/Bar.config.js +143 -148
  30. package/Bar.config.js.map +1 -1
  31. package/Bar.js +336 -427
  32. package/Bar.js.map +1 -1
  33. package/Bubble.config.js +130 -117
  34. package/Bubble.config.js.map +1 -1
  35. package/Bubble.js +325 -398
  36. package/Bubble.js.map +1 -1
  37. package/ChoroplethSvg.config.js +86 -80
  38. package/ChoroplethSvg.config.js.map +1 -1
  39. package/ChoroplethSvg.js +305 -385
  40. package/ChoroplethSvg.js.map +1 -1
  41. package/Column.config.js +139 -146
  42. package/Column.config.js.map +1 -1
  43. package/Column.js +332 -425
  44. package/Column.js.map +1 -1
  45. package/Ellipse.config.js +86 -80
  46. package/Ellipse.config.js.map +1 -1
  47. package/Ellipse.js +288 -368
  48. package/Ellipse.js.map +1 -1
  49. package/FillerGauge.config.js +91 -85
  50. package/FillerGauge.config.js.map +1 -1
  51. package/FillerGauge.js +296 -376
  52. package/FillerGauge.js.map +1 -1
  53. package/Image.config.js +74 -74
  54. package/Image.config.js.map +1 -1
  55. package/Image.js +710 -798
  56. package/Image.js.map +1 -1
  57. package/Line.config.js +139 -137
  58. package/Line.config.js.map +1 -1
  59. package/Line.js +332 -416
  60. package/Line.js.map +1 -1
  61. package/LinkGraph.config.js +112 -112
  62. package/LinkGraph.config.js.map +1 -1
  63. package/LinkGraph.js +320 -405
  64. package/LinkGraph.js.map +1 -1
  65. package/Map.config.js +101 -95
  66. package/Map.config.js.map +1 -1
  67. package/Map.js +472 -518
  68. package/Map.js.map +1 -1
  69. package/Markdown.config.js +113 -113
  70. package/Markdown.config.js.map +1 -1
  71. package/Markdown.js +500 -574
  72. package/Markdown.js.map +1 -1
  73. package/MarkerGauge.config.js +192 -193
  74. package/MarkerGauge.config.js.map +1 -1
  75. package/MarkerGauge.js +1200 -1289
  76. package/MarkerGauge.js.map +1 -1
  77. package/ParallelCoordinates.config.js +138 -138
  78. package/ParallelCoordinates.config.js.map +1 -1
  79. package/ParallelCoordinates.js +292 -376
  80. package/ParallelCoordinates.js.map +1 -1
  81. package/Pie.config.js +133 -133
  82. package/Pie.config.js.map +1 -1
  83. package/Pie.js +496 -584
  84. package/Pie.js.map +1 -1
  85. package/Punchcard.config.js +139 -139
  86. package/Punchcard.config.js.map +1 -1
  87. package/Punchcard.js +315 -399
  88. package/Punchcard.js.map +1 -1
  89. package/Rectangle.config.js +267 -260
  90. package/Rectangle.config.js.map +1 -1
  91. package/Rectangle.js +499 -580
  92. package/Rectangle.js.map +1 -1
  93. package/Sankey.config.js +150 -143
  94. package/Sankey.config.js.map +1 -1
  95. package/Sankey.js +316 -390
  96. package/Sankey.js.map +1 -1
  97. package/Scatter.config.js +130 -117
  98. package/Scatter.config.js.map +1 -1
  99. package/Scatter.js +547 -623
  100. package/Scatter.js.map +1 -1
  101. package/SingleValue.config.js +119 -113
  102. package/SingleValue.config.js.map +1 -1
  103. package/SingleValue.js +523 -604
  104. package/SingleValue.js.map +1 -1
  105. package/SingleValueBasic.js +19 -19
  106. package/SingleValueBasic.js.map +1 -1
  107. package/SingleValueIcon.config.js +128 -120
  108. package/SingleValueIcon.config.js.map +1 -1
  109. package/SingleValueIcon.js +343 -420
  110. package/SingleValueIcon.js.map +1 -1
  111. package/SingleValueRadial.config.js +215 -178
  112. package/SingleValueRadial.config.js.map +1 -1
  113. package/SingleValueRadial.js +668 -749
  114. package/SingleValueRadial.js.map +1 -1
  115. package/Table.config.js +150 -151
  116. package/Table.config.js.map +1 -1
  117. package/Table.js +772 -854
  118. package/Table.js.map +1 -1
  119. package/common/Charting.js +11 -11
  120. package/common/Charting.js.map +1 -1
  121. package/common/ChartingApi.js +2 -2
  122. package/common/ChartingApi.js.map +1 -1
  123. package/common/EventsDoc.js +12 -12
  124. package/common/EventsDoc.js.map +1 -1
  125. package/common/GaugeMajorTicks.js +8 -8
  126. package/common/GaugeMajorTicks.js.map +1 -1
  127. package/common/GaugeValueMarker.js +8 -8
  128. package/common/GaugeValueMarker.js.map +1 -1
  129. package/common/OptionsDoc.js +51 -352
  130. package/common/OptionsDoc.js.map +1 -1
  131. package/common/OverviewDoc.js +22 -22
  132. package/common/OverviewDoc.js.map +1 -1
  133. package/common/SplunkVisualization.js +4 -4
  134. package/common/SplunkVisualization.js.map +1 -1
  135. package/common/SplunkVisualizationApi.js +2 -2
  136. package/common/SplunkVisualizationApi.js.map +1 -1
  137. package/common/ThemesDoc.js +19 -19
  138. package/common/ThemesDoc.js.map +1 -1
  139. package/common/chartingUtils.js +4 -4
  140. package/common/chartingUtils.js.map +1 -1
  141. package/common/docUtils.js +4 -4
  142. package/common/docUtils.js.map +1 -1
  143. package/common/gaugeUtils.js +13 -13
  144. package/common/gaugeUtils.js.map +1 -1
  145. package/common/shapeUtils.js +8 -8
  146. package/common/shapeUtils.js.map +1 -1
  147. package/common/utils/configUtils.js +17 -18
  148. package/common/utils/configUtils.js.map +1 -1
  149. package/common/utils/hocUtils.js +6 -86
  150. package/common/utils/hocUtils.js.map +1 -1
  151. package/common/utils/{JSONSchemaUtils.js → mapUtils.js} +89 -29
  152. package/common/utils/mapUtils.js.map +1 -0
  153. package/common/utils/singleValueUtils.js +14 -12
  154. package/common/utils/singleValueUtils.js.map +1 -1
  155. package/common/utils/testHelper.js +8 -8
  156. package/common/utils/testHelper.js.map +1 -1
  157. package/common/withDashboardViz.js +120 -207
  158. package/common/withDashboardViz.js.map +1 -1
  159. package/package.json +12 -12
  160. package/.loki/reference/chrome_docker_PureVisualizations_SvgChoroplethDynamic_SVG_Of_Size_Greater_Than_2_MB_Render.png +0 -0
  161. 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 = 263);
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.1 - de10ad954",
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__(23);
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("@splunk/visualizations-shared/numberUtils");
1558
+ module.exports = require("@splunk/visualizations-shared/propUtils");
1303
1559
 
1304
1560
  /***/ }),
1305
1561
 
1306
1562
  /***/ 24:
1307
- /***/ (function(module, exports, __webpack_require__) {
1308
-
1309
- "use strict";
1310
-
1311
-
1312
- Object.defineProperty(exports, "__esModule", {
1313
- value: true
1314
- });
1315
- exports.pickFieldFromJSONSchema = void 0;
1316
-
1317
- var lodash_1 = __webpack_require__(2);
1318
-
1319
- var pickFieldFromJSONSchema = function pickFieldFromJSONSchema(optionsSchema) {
1320
- var fieldName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
1321
- return Object.keys(optionsSchema).reduce(function (accum, k) {
1322
- if (lodash_1.has(optionsSchema[k], fieldName)) {
1323
- accum[k] = optionsSchema[k][fieldName];
1324
- } else if (lodash_1.get(optionsSchema, [k, 'type']) === 'object' && lodash_1.has(optionsSchema[k], 'properties')) {
1325
- var nestedSchema = exports.pickFieldFromJSONSchema(optionsSchema[k].properties, fieldName);
1326
-
1327
- if (!lodash_1.isEmpty(nestedSchema)) {
1328
- accum[k] = nestedSchema;
1329
- }
1330
- }
1331
-
1332
- return accum;
1333
- }, {});
1334
- };
1335
-
1336
- exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
1337
-
1338
- /***/ }),
1339
-
1340
- /***/ 25:
1341
1563
  /***/ (function(module, exports) {
1342
1564
 
1343
- module.exports = require("@babel/runtime/helpers/typeof");
1565
+ module.exports = require("@splunk/visualizations-shared/hocUtils");
1344
1566
 
1345
1567
  /***/ }),
1346
1568
 
1347
- /***/ 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;
1569
+ /***/ 25:
1570
+ /***/ (function(module, exports) {
1406
1571
 
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
- }
1572
+ module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
1421
1573
 
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
- };
1574
+ /***/ }),
1429
1575
 
1430
- IconPlaceholder.propTypes = propTypes;
1431
- IconPlaceholder.defaultProps = {
1432
- width: '100%',
1433
- height: 250
1434
- };
1435
- exports.default = FixedSizeContainer_1.default(IconPlaceholder);
1576
+ /***/ 26:
1577
+ /***/ (function(module, exports) {
1578
+
1579
+ module.exports = require("@splunk/visualizations-shared/numberUtils");
1436
1580
 
1437
1581
  /***/ }),
1438
1582
 
1439
- /***/ 263:
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__(280);
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__(264);
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
- /***/ 264:
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__(265);
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
- /***/ 265:
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,72 +2205,7 @@ exports.getSortingParams = getSortingParams;
1969
2205
 
1970
2206
  /***/ }),
1971
2207
 
1972
- /***/ 28:
1973
- /***/ (function(module, exports, __webpack_require__) {
1974
-
1975
- "use strict";
1976
-
1977
-
1978
- Object.defineProperty(exports, "__esModule", {
1979
- value: true
1980
- });
1981
- exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
1982
-
1983
- var T = __webpack_require__(0);
1984
-
1985
- var lodash_1 = __webpack_require__(2);
1986
-
1987
- exports.PaginatorParamsPropTypes = T.shape({
1988
- isPaging: T.bool,
1989
- current: T.number,
1990
- totalPages: T.number,
1991
- onChange: T.func
1992
- });
1993
-
1994
- var getPaginationParams = function getPaginationParams(_ref) {
1995
- var requestParams = _ref.requestParams,
1996
- meta = _ref.meta,
1997
- onRequestParamsChange = _ref.onRequestParamsChange;
1998
- var totalCount = meta && meta.totalCount || 0;
1999
- var offset = requestParams && requestParams.offset || 0;
2000
- var count = requestParams && requestParams.count;
2001
- var totalPages = typeof count === 'number' && count > 0 ? Math.ceil(totalCount / count) : 0;
2002
- var current = typeof count === 'number' && count > 0 ? Math.floor(offset / count) + 1 : 0;
2003
- var isPaging = totalPages > 1 && lodash_1.isFunction(onRequestParamsChange);
2004
-
2005
- var onChangeHandler = function onChangeHandler(e, _ref2) {
2006
- var page = _ref2.page,
2007
- countArg = _ref2.count;
2008
- var newParams = lodash_1.cloneDeep(requestParams);
2009
-
2010
- if (typeof countArg === 'number') {
2011
- newParams.count = countArg;
2012
- newParams.offset = 0;
2013
- }
2014
-
2015
- var pageCount = typeof newParams.count === 'number' ? newParams.count : 10;
2016
-
2017
- if (typeof page === 'number' && page > 0) {
2018
- newParams.count = pageCount;
2019
- newParams.offset = (page - 1) * pageCount;
2020
- }
2021
-
2022
- onRequestParamsChange(newParams);
2023
- };
2024
-
2025
- return {
2026
- isPaging: isPaging,
2027
- current: current,
2028
- totalPages: totalPages,
2029
- onChange: lodash_1.isFunction(onRequestParamsChange) ? onChangeHandler : lodash_1.noop
2030
- };
2031
- };
2032
-
2033
- exports.getPaginationParams = getPaginationParams;
2034
-
2035
- /***/ }),
2036
-
2037
- /***/ 280:
2208
+ /***/ 282:
2038
2209
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2039
2210
 
2040
2211
  "use strict";
@@ -2054,11 +2225,11 @@ var external_prop_types_ = __webpack_require__(0);
2054
2225
  var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
2055
2226
 
2056
2227
  // EXTERNAL MODULE: external "@splunk/themes/pick"
2057
- var pick_ = __webpack_require__(20);
2228
+ var pick_ = __webpack_require__(21);
2058
2229
  var pick_default = /*#__PURE__*/__webpack_require__.n(pick_);
2059
2230
 
2060
2231
  // EXTERNAL MODULE: external "@splunk/themes/variables"
2061
- var variables_ = __webpack_require__(10);
2232
+ var variables_ = __webpack_require__(8);
2062
2233
  var variables_default = /*#__PURE__*/__webpack_require__.n(variables_);
2063
2234
 
2064
2235
  // EXTERNAL MODULE: external "styled-components"
@@ -2074,17 +2245,17 @@ var isEmpty_ = __webpack_require__(71);
2074
2245
  var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty_);
2075
2246
 
2076
2247
  // EXTERNAL MODULE: external "@splunk/visualizations-shared/style"
2077
- var style_ = __webpack_require__(15);
2248
+ var style_ = __webpack_require__(14);
2078
2249
 
2079
2250
  // EXTERNAL MODULE: external "@splunk/visualizations-shared/SizeAwareWrapper"
2080
- var SizeAwareWrapper_ = __webpack_require__(18);
2251
+ var SizeAwareWrapper_ = __webpack_require__(19);
2081
2252
  var SizeAwareWrapper_default = /*#__PURE__*/__webpack_require__.n(SizeAwareWrapper_);
2082
2253
 
2083
2254
  // EXTERNAL MODULE: ./src/common/components/VizStyleWrapper.jsx
2084
2255
  var VizStyleWrapper = __webpack_require__(62);
2085
2256
 
2086
2257
  // EXTERNAL MODULE: external "@babel/runtime/helpers/defineProperty"
2087
- var defineProperty_ = __webpack_require__(7);
2258
+ var defineProperty_ = __webpack_require__(6);
2088
2259
  var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty_);
2089
2260
 
2090
2261
  // EXTERNAL MODULE: ./src/SingleValueBasic/SingleValueBasic.jsx + 2 modules
@@ -2160,7 +2331,7 @@ RadialGraph_RadialGraph.defaultProps = {
2160
2331
  };
2161
2332
  /* harmony default export */ var PureSingleValueRadial_RadialGraph = (RadialGraph_RadialGraph);
2162
2333
  // EXTERNAL MODULE: ./src/common/utils/singleValueUtils.js
2163
- var singleValueUtils = __webpack_require__(19);
2334
+ var singleValueUtils = __webpack_require__(20);
2164
2335
 
2165
2336
  // CONCATENATED MODULE: ./src/SingleValueRadial/PureSingleValueRadial/utils/displayUtils.js
2166
2337
 
@@ -2728,7 +2899,79 @@ SingleValueRadial_SingleValueRadial.defaultProps = {
2728
2899
 
2729
2900
  /***/ }),
2730
2901
 
2731
- /***/ 29:
2902
+ /***/ 29:
2903
+ /***/ (function(module, exports, __webpack_require__) {
2904
+
2905
+ "use strict";
2906
+
2907
+
2908
+ Object.defineProperty(exports, "__esModule", {
2909
+ value: true
2910
+ });
2911
+ exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
2912
+
2913
+ var T = __webpack_require__(0);
2914
+
2915
+ var lodash_1 = __webpack_require__(3);
2916
+
2917
+ exports.PaginatorParamsPropTypes = T.shape({
2918
+ isPaging: T.bool,
2919
+ current: T.number,
2920
+ totalPages: T.number,
2921
+ onChange: T.func
2922
+ });
2923
+
2924
+ var getPaginationParams = function getPaginationParams(_ref) {
2925
+ var requestParams = _ref.requestParams,
2926
+ meta = _ref.meta,
2927
+ onRequestParamsChange = _ref.onRequestParamsChange;
2928
+ var totalCount = meta && meta.totalCount || 0;
2929
+ var offset = requestParams && requestParams.offset || 0;
2930
+ var count = requestParams && requestParams.count;
2931
+ var totalPages = typeof count === 'number' && count > 0 ? Math.ceil(totalCount / count) : 0;
2932
+ var current = typeof count === 'number' && count > 0 ? Math.floor(offset / count) + 1 : 0;
2933
+ var isPaging = totalPages > 1 && lodash_1.isFunction(onRequestParamsChange);
2934
+
2935
+ var onChangeHandler = function onChangeHandler(e, _ref2) {
2936
+ var page = _ref2.page,
2937
+ countArg = _ref2.count;
2938
+ var newParams = lodash_1.cloneDeep(requestParams);
2939
+
2940
+ if (typeof countArg === 'number') {
2941
+ newParams.count = countArg;
2942
+ newParams.offset = 0;
2943
+ }
2944
+
2945
+ var pageCount = typeof newParams.count === 'number' ? newParams.count : 10;
2946
+
2947
+ if (typeof page === 'number' && page > 0) {
2948
+ newParams.count = pageCount;
2949
+ newParams.offset = (page - 1) * pageCount;
2950
+ }
2951
+
2952
+ onRequestParamsChange(newParams);
2953
+ };
2954
+
2955
+ return {
2956
+ isPaging: isPaging,
2957
+ current: current,
2958
+ totalPages: totalPages,
2959
+ onChange: lodash_1.isFunction(onRequestParamsChange) ? onChangeHandler : lodash_1.noop
2960
+ };
2961
+ };
2962
+
2963
+ exports.getPaginationParams = getPaginationParams;
2964
+
2965
+ /***/ }),
2966
+
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__(24);
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.1 - de10ad954"
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;
@@ -3475,346 +3704,116 @@ var withPlaceholder = function withPlaceholder(Visualization) {
3475
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);
3476
3705
  var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
3477
3706
  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.uncollapseEditorConfig = 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]
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
- * this function also collapse all editor panels
3686
- * @param vizConfig a Visualization Config
3687
- * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
3688
- * and containing `open: false` for all editor panels in editorConfig
3689
- */
3729
+ exports.default = withPlaceholder;
3690
3730
 
3691
- function enhanceConfig(vizConfig) {
3692
- var enhancedConfig = vizConfig;
3731
+ /***/ }),
3693
3732
 
3694
- if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
3695
- enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
3696
- }
3733
+ /***/ 43:
3734
+ /***/ (function(module, exports) {
3697
3735
 
3698
- enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
3699
- return Object.assign(Object.assign({}, config), {
3700
- open: false
3701
- });
3702
- });
3703
- return enhancedConfig;
3704
- }
3736
+ module.exports = require("@splunk/visualizations-shared/colorConstants");
3705
3737
 
3706
- exports.enhanceConfig = enhanceConfig;
3707
- /**
3708
- * Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
3709
- * Created for editor unit tests
3710
- * @param vizConfig a Visualization Config
3711
- * @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
3712
- */
3738
+ /***/ }),
3713
3739
 
3714
- function uncollapseEditorConfig(vizConfig) {
3715
- var editorPanelUncollapsedConfig = vizConfig;
3716
- editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
3717
- return Object.assign(Object.assign({}, config), {
3718
- open: true
3719
- });
3720
- });
3721
- return editorPanelUncollapsedConfig;
3722
- }
3740
+ /***/ 45:
3741
+ /***/ (function(module, exports) {
3723
3742
 
3724
- exports.uncollapseEditorConfig = uncollapseEditorConfig;
3743
+ module.exports = require("@splunk/visualization-icons/placeholders");
3725
3744
 
3726
- function isDynamicOption(option) {
3727
- return option && typeof option === 'string' && option.trim().startsWith('>') || false;
3728
- }
3745
+ /***/ }),
3729
3746
 
3730
- exports.isDynamicOption = isDynamicOption; // private helpers to improve readability of getInitialPreset
3731
- // this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset
3747
+ /***/ 46:
3748
+ /***/ (function(module, exports) {
3732
3749
 
3733
- /**
3734
- * this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset
3735
- * 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
3736
- * the inverse is true; if a preset has key is NOT undefined, it must also be NOT undefined in the corresponding vizContext
3737
- * 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
3738
- *
3739
- * Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
3740
- */
3750
+ module.exports = require("@splunk/visualization-icons");
3741
3751
 
3742
- function hasCompatibleContexts(vizContext, presetContext) {
3743
- var presetContextKeys = Object.keys(presetContext);
3744
- return presetContextKeys.every(function (contextKey) {
3745
- return presetContext[contextKey] === undefined && vizContext[contextKey] === undefined || presetContext[contextKey] !== undefined && vizContext[contextKey] !== undefined;
3746
- });
3747
- }
3748
- /**
3749
- * Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
3750
- */
3752
+ /***/ }),
3751
3753
 
3754
+ /***/ 47:
3755
+ /***/ (function(module, exports) {
3752
3756
 
3753
- function hasCompatibleOptions(vizOptions, presetOptions) {
3754
- var presetOptionKeys = Object.keys(presetOptions);
3755
- return presetOptionKeys.every(function (optionKey) {
3756
- return isDynamicOption(presetOptions[optionKey]) === isDynamicOption(vizOptions[optionKey]);
3757
- });
3758
- }
3759
- /**
3760
- * Evaluates whether there is an initialPreset that fits the current state of vizContext + vizOptions
3761
- * This function ignores extraneous vizOptions or vizContext keys, as they could be outside the scope of what the preset is intended to configure
3762
- *
3763
- * @param {Object} vizContext - the current vizContext definition
3764
- * @param {Object} vizOptions - the current vizOptions definition
3765
- * @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
3766
- */
3757
+ module.exports = require("@babel/runtime/helpers/extends");
3767
3758
 
3759
+ /***/ }),
3768
3760
 
3769
- function getInitialPreset(vizContext, vizOptions, presets) {
3770
- return presets.find(function (preset) {
3771
- var presetContext = lodash_1.get(preset, ['value', 'context'], {});
3772
- var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
3773
- var presetContextKeys = Object.keys(presetContext);
3774
- var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
3775
- // if not, then the preset is invalid in config.ts
3761
+ /***/ 48:
3762
+ /***/ (function(module, exports) {
3776
3763
 
3777
- if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
3778
- return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
3779
- });
3780
- }
3764
+ module.exports = require("@splunk/visualizations-shared/domUtils");
3781
3765
 
3782
- exports.getInitialPreset = getInitialPreset;
3783
- /**
3784
- * generates number precision values for a Select editor
3785
- *
3786
- * @param {Number} numPrecisionValues - number of integer precision values to generate
3787
- * @returns {{ label: string; value; string }[]} array of { label, value } tuples
3788
- */
3766
+ /***/ }),
3789
3767
 
3790
- function generatePrecisionValues(numPrecisionValues) {
3791
- return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
3792
- return {
3793
- label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
3794
- value: i
3795
- };
3796
- });
3797
- }
3768
+ /***/ 5:
3769
+ /***/ (function(module, exports, __webpack_require__) {
3798
3770
 
3799
- exports.generatePrecisionValues = generatePrecisionValues;
3800
- /**
3801
- * insert layout in layout array, return a new layout array instead of updating the original
3802
- *
3803
- * @param {EditorLayoutConfig[][]} layout - editor layout
3804
- * @param {Number} index - the index to insert layout item(s)
3805
- * @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
3806
- * @returns {EditorLayoutConfig[][]} new editor layout with insertion
3807
- */
3771
+ "use strict";
3808
3772
 
3809
- var insertLayout = function insertLayout(layout, index) {
3810
- for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
3811
- layoutItems[_key - 2] = arguments[_key];
3812
- }
3813
3773
 
3814
- return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
3815
- };
3774
+ Object.defineProperty(exports, "__esModule", {
3775
+ value: true
3776
+ });
3777
+ exports.VizBehavior = void 0;
3778
+ var VizBehavior;
3816
3779
 
3817
- exports.insertLayout = insertLayout;
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");
3818
3817
 
3819
3818
  /***/ }),
3820
3819
 
@@ -3869,7 +3868,7 @@ var external_styled_components_ = __webpack_require__(4);
3869
3868
  var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
3870
3869
 
3871
3870
  // EXTERNAL MODULE: ./src/common/utils/singleValueUtils.js
3872
- var singleValueUtils = __webpack_require__(19);
3871
+ var singleValueUtils = __webpack_require__(20);
3873
3872
 
3874
3873
  // EXTERNAL MODULE: external "@splunk/react-icons/ArrowUp"
3875
3874
  var ArrowUp_ = __webpack_require__(72);
@@ -4146,7 +4145,7 @@ var SingleValueTrendValue = TrendValue;
4146
4145
  /***/ 7:
4147
4146
  /***/ (function(module, exports) {
4148
4147
 
4149
- module.exports = require("@babel/runtime/helpers/defineProperty");
4148
+ module.exports = require("@babel/runtime/helpers/toConsumableArray");
4150
4149
 
4151
4150
  /***/ }),
4152
4151
 
@@ -4190,10 +4189,10 @@ module.exports = require("cssesc");
4190
4189
 
4191
4190
  "use strict";
4192
4191
  __webpack_require__.r(__webpack_exports__);
4193
- /* 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);
4194
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__);
4195
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
4196
- /* 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__);
4197
4196
 
4198
4197
 
4199
4198
  var StaticBackgroundColorEditor = {
@@ -4202,7 +4201,7 @@ var StaticBackgroundColorEditor = {
4202
4201
  editor: 'editor.color',
4203
4202
  showEditor: function showEditor(_ref) {
4204
4203
  var options = _ref.options;
4205
- 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);
4206
4205
  }
4207
4206
  };
4208
4207
  /* harmony default export */ __webpack_exports__["default"] = (StaticBackgroundColorEditor);
@@ -4210,89 +4209,9 @@ var StaticBackgroundColorEditor = {
4210
4209
  /***/ }),
4211
4210
 
4212
4211
  /***/ 8:
4213
- /***/ (function(module, exports, __webpack_require__) {
4214
-
4215
- "use strict";
4216
-
4217
-
4218
- var _typeof = __webpack_require__(25);
4219
-
4220
- Object.defineProperty(exports, "__esModule", {
4221
- value: true
4222
- });
4223
- exports.deepMergeWithArrayPrimitiveOverrides = exports.extendStaticWrapperProps = void 0;
4224
-
4225
- var lodash_1 = __webpack_require__(2);
4226
-
4227
- var mapUtils_1 = __webpack_require__(41);
4228
- /**
4229
- * @method extendStaticWrapperProps
4230
- * @param {Object} props
4231
- * @param {DashboardVizType} props.Wrapper
4232
- * @param {DashboardVizType} props.Visualization
4233
- */
4234
-
4235
-
4236
- var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
4237
- var Wrapper = _ref.Wrapper,
4238
- Visualization = _ref.Visualization;
4239
- var extendProperties = ['propTypes', 'defaultProps', 'config'];
4240
- extendProperties.forEach(function (prop) {
4241
- if (Visualization[prop]) {
4242
- // eslint-disable-next-line no-param-reassign
4243
- Wrapper[prop] = Visualization[prop];
4244
- }
4245
- });
4246
- };
4247
-
4248
- exports.extendStaticWrapperProps = extendStaticWrapperProps;
4249
- /**
4250
- * helper to deeply merge objects while preserving arrays in earlier source objects
4251
- * 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
4252
- * 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).
4253
- * 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
4254
- * 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.
4255
- *
4256
- * @method deepMergeWithArrayPrimitiveOverrides
4257
- * @param {Object} initial - target object to merge values into
4258
- * @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
4259
- *
4260
- * @returns {Object}
4261
- */
4262
-
4263
- var deepMergeWithArrayPrimitiveOverrides = function deepMergeWithArrayPrimitiveOverrides(initial) {
4264
- var clone = lodash_1.cloneDeep(initial);
4265
-
4266
- for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
4267
- sources[_key - 1] = arguments[_key];
4268
- }
4269
-
4270
- sources.forEach(function (sourceToApply) {
4271
- Object.keys(sourceToApply).forEach(function (sourceKey) {
4272
- if (!Object.prototype.hasOwnProperty.call(clone, sourceKey)) {
4273
- clone[sourceKey] = lodash_1.cloneDeep(sourceToApply[sourceKey]);
4274
- }
4275
-
4276
- if (clone[sourceKey] && _typeof(clone[sourceKey]) === 'object' && !Array.isArray(clone[sourceKey]) && _typeof(sourceToApply[sourceKey]) === 'object') {
4277
- clone[sourceKey] = exports.deepMergeWithArrayPrimitiveOverrides(clone[sourceKey], sourceToApply[sourceKey]);
4278
- } else if (Array.isArray(clone[sourceKey]) && _typeof(clone[sourceKey][0]) === 'object' && !Array.isArray(clone[sourceKey][0])) {
4279
- // If option is an array of objects
4280
- for (var i = 0; i < clone[sourceKey].length; i += 1) {
4281
- if (_typeof(clone[sourceKey][i]) === 'object') {
4282
- var closestMatchIdx = mapUtils_1.findClosestMatchFromDefaultList(sourceToApply[sourceKey], clone[sourceKey][i]);
4283
-
4284
- if (closestMatchIdx > -1) {
4285
- clone[sourceKey][i] = exports.deepMergeWithArrayPrimitiveOverrides(clone[sourceKey][i], sourceToApply[sourceKey][closestMatchIdx]);
4286
- }
4287
- }
4288
- }
4289
- }
4290
- });
4291
- });
4292
- return clone;
4293
- };
4212
+ /***/ (function(module, exports) {
4294
4213
 
4295
- exports.deepMergeWithArrayPrimitiveOverrides = deepMergeWithArrayPrimitiveOverrides;
4214
+ module.exports = require("@splunk/themes/variables");
4296
4215
 
4297
4216
  /***/ }),
4298
4217
 
@@ -4302,10 +4221,10 @@ exports.deepMergeWithArrayPrimitiveOverrides = deepMergeWithArrayPrimitiveOverri
4302
4221
  "use strict";
4303
4222
  __webpack_require__.r(__webpack_exports__);
4304
4223
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicMajorColorEditor", function() { return getDynamicMajorColorEditor; });
4305
- /* 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);
4306
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__);
4307
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
4308
- /* 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__);
4309
4228
 
4310
4229
 
4311
4230
  var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
@@ -4318,7 +4237,7 @@ var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
4318
4237
  editor: 'editor.dynamicColor',
4319
4238
  showEditor: function showEditor(_ref2) {
4320
4239
  var options = _ref2.options;
4321
- 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);
4322
4241
  },
4323
4242
  editorProps: {
4324
4243
  labelPosition: 'left',
@@ -4353,10 +4272,10 @@ var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
4353
4272
  "use strict";
4354
4273
  __webpack_require__.r(__webpack_exports__);
4355
4274
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicTrendColorEditor", function() { return getDynamicTrendColorEditor; });
4356
- /* 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);
4357
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__);
4358
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
4359
- /* 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__);
4360
4279
 
4361
4280
 
4362
4281
  var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
@@ -4369,7 +4288,7 @@ var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
4369
4288
  editor: 'editor.dynamicColor',
4370
4289
  showEditor: function showEditor(_ref2) {
4371
4290
  var options = _ref2.options;
4372
- 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);
4373
4292
  },
4374
4293
  editorProps: {
4375
4294
  labelPosition: 'left',
@@ -4398,10 +4317,10 @@ var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
4398
4317
  "use strict";
4399
4318
  __webpack_require__.r(__webpack_exports__);
4400
4319
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "getDynamicBackgroundColorEditor", function() { return getDynamicBackgroundColorEditor; });
4401
- /* 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);
4402
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__);
4403
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
4404
- /* 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__);
4405
4324
 
4406
4325
 
4407
4326
  var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_ref) {
@@ -4414,7 +4333,7 @@ var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_
4414
4333
  editor: 'editor.dynamicColor',
4415
4334
  showEditor: function showEditor(_ref2) {
4416
4335
  var options = _ref2.options;
4417
- 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);
4418
4337
  },
4419
4338
  editorProps: {
4420
4339
  labelPosition: 'left',
@@ -4452,10 +4371,10 @@ var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_
4452
4371
 
4453
4372
  "use strict";
4454
4373
  __webpack_require__.r(__webpack_exports__);
4455
- /* 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);
4456
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__);
4457
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
4458
- /* 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__);
4459
4378
 
4460
4379
 
4461
4380
  var StaticMajorColorEditor = {
@@ -4464,7 +4383,7 @@ var StaticMajorColorEditor = {
4464
4383
  editor: 'editor.color',
4465
4384
  showEditor: function showEditor(_ref) {
4466
4385
  var options = _ref.options;
4467
- 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);
4468
4387
  }
4469
4388
  };
4470
4389
  /* harmony default export */ __webpack_exports__["default"] = (StaticMajorColorEditor);
@@ -4476,10 +4395,10 @@ var StaticMajorColorEditor = {
4476
4395
 
4477
4396
  "use strict";
4478
4397
  __webpack_require__.r(__webpack_exports__);
4479
- /* 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);
4480
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__);
4481
- /* harmony import */ var _utils_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(6);
4482
- /* 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__);
4483
4402
 
4484
4403
 
4485
4404
  var StaticTrendColorEditor = {
@@ -4488,7 +4407,7 @@ var StaticTrendColorEditor = {
4488
4407
  editor: 'editor.color',
4489
4408
  showEditor: function showEditor(_ref) {
4490
4409
  var options = _ref.options;
4491
- 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);
4492
4411
  },
4493
4412
  isDisabled: function isDisabled(_ref2) {
4494
4413
  var options = _ref2.options;
@@ -4502,7 +4421,7 @@ var StaticTrendColorEditor = {
4502
4421
  /***/ 9:
4503
4422
  /***/ (function(module, exports) {
4504
4423
 
4505
- module.exports = require("@babel/runtime/helpers/toConsumableArray");
4424
+ module.exports = require("@splunk/visualizations-shared/Message");
4506
4425
 
4507
4426
  /***/ })
4508
4427