@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
package/Rectangle.js CHANGED
@@ -87,7 +87,7 @@ module.exports =
87
87
  /******/
88
88
  /******/
89
89
  /******/ // Load entry module and return exports
90
- /******/ return __webpack_require__(__webpack_require__.s = 243);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 245);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -109,7 +109,7 @@ module.exports = require("react");
109
109
  /***/ 10:
110
110
  /***/ (function(module, exports) {
111
111
 
112
- module.exports = require("@splunk/themes/variables");
112
+ module.exports = require("@babel/runtime/helpers/classCallCheck");
113
113
 
114
114
  /***/ }),
115
115
 
@@ -119,20 +119,47 @@ module.exports = require("@splunk/themes/variables");
119
119
  "use strict";
120
120
 
121
121
 
122
+ Object.defineProperty(exports, "__esModule", {
123
+ value: true
124
+ });
125
+
126
+ var i18n_1 = __webpack_require__(2);
127
+
128
+ var configUtils_1 = __webpack_require__(17);
129
+
130
+ var StaticStrokeColorEditor = {
131
+ label: i18n_1._('Static Stroke'),
132
+ option: 'strokeColor',
133
+ editor: 'editor.color',
134
+ showEditor: function showEditor(_ref) {
135
+ var options = _ref.options;
136
+ return !configUtils_1.isDynamicOption(options.strokeColor);
137
+ }
138
+ };
139
+ exports.default = StaticStrokeColorEditor;
140
+
141
+ /***/ }),
142
+
143
+ /***/ 101:
144
+ /***/ (function(module, exports, __webpack_require__) {
145
+
146
+ "use strict";
147
+
148
+
122
149
  Object.defineProperty(exports, "__esModule", {
123
150
  value: true
124
151
  });
125
152
  exports.getStyledShape = exports.mapToOldKey = void 0;
126
153
 
127
- var lodash_1 = __webpack_require__(2);
154
+ var lodash_1 = __webpack_require__(3);
128
155
 
129
156
  var styled_components_1 = __webpack_require__(4);
130
157
 
131
- var pick_1 = __webpack_require__(20);
158
+ var pick_1 = __webpack_require__(21);
132
159
 
133
- var variables_1 = __webpack_require__(10);
160
+ var variables_1 = __webpack_require__(8);
134
161
 
135
- var propUtils_1 = __webpack_require__(22); // map for new options names to old option names
162
+ var propUtils_1 = __webpack_require__(23); // map for new options names to old option names
136
163
 
137
164
 
138
165
  var shapeOptionsMapping = {
@@ -193,25 +220,141 @@ exports.getStyledShape = getStyledShape;
193
220
  /***/ 11:
194
221
  /***/ (function(module, exports) {
195
222
 
196
- module.exports = require("@splunk/visualizations-shared/Message");
223
+ module.exports = require("@splunk/visualizations-shared/colorUtils");
197
224
 
198
225
  /***/ }),
199
226
 
200
227
  /***/ 12:
201
- /***/ (function(module, exports) {
228
+ /***/ (function(module, exports, __webpack_require__) {
202
229
 
203
- module.exports = require("@babel/runtime/helpers/classCallCheck");
230
+ "use strict";
231
+
232
+
233
+ Object.defineProperty(exports, "__esModule", {
234
+ value: true
235
+ });
236
+
237
+ var React = __webpack_require__(1);
238
+
239
+ var styled_components_1 = __webpack_require__(4);
240
+
241
+ var SizeAwareWrapper_1 = __webpack_require__(19);
242
+
243
+ var style_1 = __webpack_require__(14);
244
+
245
+ var colorUtils_1 = __webpack_require__(11);
246
+
247
+ var Item = styled_components_1.default.div.attrs(function (_ref) {
248
+ var width = _ref.width;
249
+ return {
250
+ style: {
251
+ width: style_1.toPx(width)
252
+ }
253
+ };
254
+ }).withConfig({
255
+ displayName: "FixedSizeContainer__Item",
256
+ componentId: "sc-1yhgpod-0"
257
+ })(["position:relative;background-color:", "};"], function (props) {
258
+ return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
259
+ }); // Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
260
+
261
+ var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
262
+ var width = _ref2.width,
263
+ height = _ref2.height;
264
+ return {
265
+ style: Object.assign(Object.assign({}, width && {
266
+ width: style_1.toPx(width)
267
+ }), height && {
268
+ height: style_1.toPx(height)
269
+ })
270
+ };
271
+ }).withConfig({
272
+ displayName: "FixedSizeContainer__FixSizeItem",
273
+ componentId: "sc-1yhgpod-1"
274
+ })(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
275
+ return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
276
+ });
277
+ var ItemContent = styled_components_1.default.div.withConfig({
278
+ displayName: "FixedSizeContainer__ItemContent",
279
+ componentId: "sc-1yhgpod-2"
280
+ })(["position:relative;min-height:100px;width:100%;"]);
281
+ var FixSizeItemContent = styled_components_1.default.div.withConfig({
282
+ displayName: "FixedSizeContainer__FixSizeItemContent",
283
+ componentId: "sc-1yhgpod-3"
284
+ })(["min-height:0px;flex:1;position:relative;box-sizing:border-box;"]);
285
+
286
+ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
287
+ var FixedSizeContainer = function FixedSizeContainer(props) {
288
+ var width = props.width,
289
+ height = props.height,
290
+ backgroundColor = props.backgroundColor;
291
+
292
+ if (!height) {
293
+ return React.createElement(Item, {
294
+ "data-test": "item",
295
+ width: width,
296
+ backgroundColor: backgroundColor
297
+ }, React.createElement(ItemContent, null, React.createElement(Viz, Object.assign({}, props))));
298
+ }
299
+
300
+ return React.createElement(FixSizeItem, {
301
+ "data-test": "fix-size-item",
302
+ "data-splunk-visualization-version": "25.1.0 - 812a9a4d8",
303
+ width: width,
304
+ height: height,
305
+ backgroundColor: backgroundColor
306
+ }, React.createElement(FixSizeItemContent, null, React.createElement(SizeAwareWrapper_1.default, null, function (_ref3) {
307
+ var newWidth = _ref3.width,
308
+ newHeight = _ref3.height;
309
+ return React.createElement(Viz, Object.assign({}, props, {
310
+ width: newWidth,
311
+ height: newHeight
312
+ }));
313
+ })));
314
+ };
315
+
316
+ FixedSizeContainer.displayName = 'withFixedSizeContainer';
317
+ return FixedSizeContainer;
318
+ };
319
+
320
+ exports.default = withFixedSizeContainer;
204
321
 
205
322
  /***/ }),
206
323
 
207
324
  /***/ 13:
208
- /***/ (function(module, exports) {
325
+ /***/ (function(module, exports, __webpack_require__) {
209
326
 
210
- module.exports = require("@splunk/visualizations-shared/colorUtils");
327
+ "use strict";
328
+
329
+
330
+ Object.defineProperty(exports, "__esModule", {
331
+ value: true
332
+ });
333
+ exports.extendStaticWrapperProps = void 0;
334
+ /**
335
+ * @method extendStaticWrapperProps
336
+ * @param {Object} props
337
+ * @param {DashboardVizType} props.Wrapper
338
+ * @param {DashboardVizType} props.Visualization
339
+ */
340
+
341
+ var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
342
+ var Wrapper = _ref.Wrapper,
343
+ Visualization = _ref.Visualization;
344
+ var extendProperties = ['propTypes', 'defaultProps', 'config'];
345
+ extendProperties.forEach(function (prop) {
346
+ if (Visualization[prop]) {
347
+ // eslint-disable-next-line no-param-reassign
348
+ Wrapper[prop] = Visualization[prop];
349
+ }
350
+ });
351
+ };
352
+
353
+ exports.extendStaticWrapperProps = extendStaticWrapperProps;
211
354
 
212
355
  /***/ }),
213
356
 
214
- /***/ 136:
357
+ /***/ 137:
215
358
  /***/ (function(module, exports, __webpack_require__) {
216
359
 
217
360
  "use strict";
@@ -239,17 +382,17 @@ var React = __webpack_require__(1);
239
382
 
240
383
  var styled_components_1 = __webpack_require__(4);
241
384
 
242
- var lodash_1 = __webpack_require__(2);
385
+ var lodash_1 = __webpack_require__(3);
243
386
 
244
387
  var T = __webpack_require__(0);
245
388
 
246
- var withDashboardViz_1 = __webpack_require__(30);
389
+ var withDashboardViz_1 = __webpack_require__(31);
247
390
 
248
- var config_1 = __webpack_require__(244);
391
+ var config_1 = __webpack_require__(246);
249
392
 
250
393
  exports.config = config_1.default;
251
394
 
252
- var shapeUtils_1 = __webpack_require__(100);
395
+ var shapeUtils_1 = __webpack_require__(101);
253
396
 
254
397
  var SVGContainer = styled_components_1.default.svg.withConfig({
255
398
  displayName: "Rectangle__SVGContainer",
@@ -324,126 +467,273 @@ exports.default = Rectangle;
324
467
  /***/ }),
325
468
 
326
469
  /***/ 14:
327
- /***/ (function(module, exports, __webpack_require__) {
328
-
329
- "use strict";
470
+ /***/ (function(module, exports) {
330
471
 
472
+ module.exports = require("@splunk/visualizations-shared/style");
331
473
 
332
- Object.defineProperty(exports, "__esModule", {
333
- value: true
334
- });
474
+ /***/ }),
335
475
 
336
- var React = __webpack_require__(1);
476
+ /***/ 15:
477
+ /***/ (function(module, exports) {
337
478
 
338
- var styled_components_1 = __webpack_require__(4);
479
+ module.exports = require("@splunk/visualizations-shared/schemaUtils");
339
480
 
340
- var SizeAwareWrapper_1 = __webpack_require__(18);
481
+ /***/ }),
341
482
 
342
- var style_1 = __webpack_require__(15);
483
+ /***/ 16:
484
+ /***/ (function(module, exports, __webpack_require__) {
343
485
 
344
- var colorUtils_1 = __webpack_require__(13);
486
+ "use strict";
345
487
 
346
- var Item = styled_components_1.default.div.attrs(function (_ref) {
347
- var width = _ref.width;
348
- return {
349
- style: {
350
- width: style_1.toPx(width)
351
- }
352
- };
353
- }).withConfig({
354
- displayName: "FixedSizeContainer__Item",
355
- componentId: "sc-1yhgpod-0"
356
- })(["position:relative;background-color:", "};"], function (props) {
357
- return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
358
- }); // Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
359
488
 
360
- var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
361
- var width = _ref2.width,
362
- height = _ref2.height;
363
- return {
364
- style: Object.assign(Object.assign({}, width && {
365
- width: style_1.toPx(width)
366
- }), height && {
367
- height: style_1.toPx(height)
368
- })
369
- };
370
- }).withConfig({
371
- displayName: "FixedSizeContainer__FixSizeItem",
372
- componentId: "sc-1yhgpod-1"
373
- })(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
374
- return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
375
- });
376
- var ItemContent = styled_components_1.default.div.withConfig({
377
- displayName: "FixedSizeContainer__ItemContent",
378
- componentId: "sc-1yhgpod-2"
379
- })(["position:relative;min-height:100px;width:100%;"]);
380
- var FixSizeItemContent = styled_components_1.default.div.withConfig({
381
- displayName: "FixedSizeContainer__FixSizeItemContent",
382
- componentId: "sc-1yhgpod-3"
383
- })(["min-height:0px;flex:1;position:relative;box-sizing:border-box;"]);
489
+ var _toConsumableArray = __webpack_require__(7);
384
490
 
385
- var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
386
- var FixedSizeContainer = function FixedSizeContainer(props) {
387
- var width = props.width,
388
- height = props.height,
389
- backgroundColor = props.backgroundColor;
491
+ var _defineProperty = __webpack_require__(6);
390
492
 
391
- if (!height) {
392
- return React.createElement(Item, {
393
- "data-test": "item",
394
- width: width,
395
- backgroundColor: backgroundColor
396
- }, React.createElement(ItemContent, null, React.createElement(Viz, Object.assign({}, props))));
397
- }
493
+ var __rest = this && this.__rest || function (s, e) {
494
+ var t = {};
398
495
 
399
- return React.createElement(FixSizeItem, {
400
- "data-test": "fix-size-item",
401
- "data-splunk-visualization-version": "25.0.1 - de10ad954",
402
- width: width,
403
- height: height,
404
- backgroundColor: backgroundColor
405
- }, React.createElement(FixSizeItemContent, null, React.createElement(SizeAwareWrapper_1.default, null, function (_ref3) {
406
- var newWidth = _ref3.width,
407
- newHeight = _ref3.height;
408
- return React.createElement(Viz, Object.assign({}, props, {
409
- width: newWidth,
410
- height: newHeight
411
- }));
412
- })));
413
- };
496
+ for (var p in s) {
497
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
498
+ }
414
499
 
415
- FixedSizeContainer.displayName = 'withFixedSizeContainer';
416
- return FixedSizeContainer;
500
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
501
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
502
+ }
503
+ return t;
417
504
  };
418
505
 
419
- exports.default = withFixedSizeContainer;
420
-
421
- /***/ }),
422
-
423
- /***/ 15:
424
- /***/ (function(module, exports) {
425
-
426
- module.exports = require("@splunk/visualizations-shared/style");
506
+ Object.defineProperty(exports, "__esModule", {
507
+ value: true
508
+ });
509
+ exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
427
510
 
428
- /***/ }),
511
+ var lodash_1 = __webpack_require__(3);
429
512
 
430
- /***/ 16:
431
- /***/ (function(module, exports) {
513
+ var schemaUtils_1 = __webpack_require__(15);
432
514
 
433
- module.exports = require("@splunk/visualizations-shared/schemaUtils");
515
+ var VizBehavior_1 = __webpack_require__(5);
434
516
 
435
- /***/ }),
517
+ var dynamicOptionsDSLType = {
518
+ type: 'string',
519
+ pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
520
+ };
521
+ /**
522
+ * Helper function to extend an options schema with dynamic options DSL
523
+ * @param optionsSchema a visualization's options schema
524
+ * @returns an updated options schema that additionally allows strings starting with > for each option
525
+ */
526
+
527
+ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
528
+ var enhancedOptionsSchema = {};
529
+ Object.keys(optionsSchema).forEach(function (key) {
530
+ var _a = optionsSchema[key],
531
+ title = _a.title,
532
+ description = _a.description,
533
+ readOnly = _a.readOnly,
534
+ writeOnly = _a.writeOnly,
535
+ examples = _a.examples,
536
+ defaultValue = _a.default,
537
+ type = _a.type,
538
+ properties = _a.properties,
539
+ patternProperties = _a.patternProperties,
540
+ remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
541
+
542
+ var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
543
+ title: title
544
+ }), description !== undefined && {
545
+ description: description
546
+ }), readOnly !== undefined && {
547
+ readOnly: readOnly
548
+ }), writeOnly !== undefined && {
549
+ writeOnly: writeOnly
550
+ }), examples !== undefined && {
551
+ examples: examples
552
+ }), defaultValue !== undefined && {
553
+ default: defaultValue
554
+ });
555
+
556
+ if (type === 'object') {
557
+ enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
558
+ type: type
559
+ }), properties && {
560
+ properties: enhanceOptionsSchemaWithDynamicOptions(properties)
561
+ });
562
+
563
+ if (patternProperties) {
564
+ var enhancedPatternProperties = {};
565
+ Object.keys(patternProperties).forEach(function (opt) {
566
+ enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
567
+ });
568
+ enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
569
+ }
570
+ } else {
571
+ enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
572
+ anyOf: [Object.assign(Object.assign({}, type !== undefined && {
573
+ type: type
574
+ }), remainingSchemaEntry), dynamicOptionsDSLType]
575
+ });
576
+ }
577
+ });
578
+ return enhancedOptionsSchema;
579
+ }
580
+
581
+ exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
582
+ /**
583
+ * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
584
+ * this function also collapse all editor panels
585
+ * @param vizConfig a Visualization Config
586
+ * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
587
+ * and containing `open: false` for all editor panels in editorConfig
588
+ */
589
+
590
+ function enhanceConfig(vizConfig) {
591
+ var enhancedConfig = vizConfig;
592
+
593
+ if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
594
+ enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
595
+ }
596
+
597
+ enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
598
+ return Object.assign(Object.assign({}, config), {
599
+ open: false
600
+ });
601
+ });
602
+ return enhancedConfig;
603
+ }
604
+
605
+ exports.enhanceConfig = enhanceConfig;
606
+ /**
607
+ * Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
608
+ * Created for editor unit tests
609
+ * @param vizConfig a Visualization Config
610
+ * @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
611
+ */
612
+
613
+ function uncollapseEditorConfig(vizConfig) {
614
+ var editorPanelUncollapsedConfig = vizConfig;
615
+ editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
616
+ return Object.assign(Object.assign({}, config), {
617
+ open: true
618
+ });
619
+ });
620
+ return editorPanelUncollapsedConfig;
621
+ }
622
+
623
+ exports.uncollapseEditorConfig = uncollapseEditorConfig;
624
+
625
+ function isDynamicOption(option) {
626
+ return option && typeof option === 'string' && option.trim().startsWith('>') || false;
627
+ }
628
+
629
+ exports.isDynamicOption = isDynamicOption; // private helpers to improve readability of getInitialPreset
630
+ // this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset
631
+
632
+ /**
633
+ * this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset
634
+ * 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
635
+ * the inverse is true; if a preset has key is NOT undefined, it must also be NOT undefined in the corresponding vizContext
636
+ * 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
637
+ *
638
+ * Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
639
+ */
640
+
641
+ function hasCompatibleContexts(vizContext, presetContext) {
642
+ var presetContextKeys = Object.keys(presetContext);
643
+ return presetContextKeys.every(function (contextKey) {
644
+ return presetContext[contextKey] === undefined && vizContext[contextKey] === undefined || presetContext[contextKey] !== undefined && vizContext[contextKey] !== undefined;
645
+ });
646
+ }
647
+ /**
648
+ * Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
649
+ */
650
+
651
+
652
+ function hasCompatibleOptions(vizOptions, presetOptions) {
653
+ var presetOptionKeys = Object.keys(presetOptions);
654
+ return presetOptionKeys.every(function (optionKey) {
655
+ return isDynamicOption(presetOptions[optionKey]) === isDynamicOption(vizOptions[optionKey]);
656
+ });
657
+ }
658
+ /**
659
+ * Evaluates whether there is an initialPreset that fits the current state of vizContext + vizOptions
660
+ * This function ignores extraneous vizOptions or vizContext keys, as they could be outside the scope of what the preset is intended to configure
661
+ *
662
+ * @param {Object} vizContext - the current vizContext definition
663
+ * @param {Object} vizOptions - the current vizOptions definition
664
+ * @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
665
+ */
666
+
667
+
668
+ function getInitialPreset(vizContext, vizOptions, presets) {
669
+ return presets.find(function (preset) {
670
+ var presetContext = lodash_1.get(preset, ['value', 'context'], {});
671
+ var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
672
+ var presetContextKeys = Object.keys(presetContext);
673
+ var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
674
+ // if not, then the preset is invalid in config.ts
675
+
676
+ if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
677
+ return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
678
+ });
679
+ }
680
+
681
+ exports.getInitialPreset = getInitialPreset;
682
+ /**
683
+ * generates number precision values for a Select editor
684
+ *
685
+ * @param {Number} numPrecisionValues - number of integer precision values to generate
686
+ * @returns {{ label: string; value; string }[]} array of { label, value } tuples
687
+ */
688
+
689
+ function generatePrecisionValues(numPrecisionValues) {
690
+ return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
691
+ return {
692
+ label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
693
+ value: i
694
+ };
695
+ });
696
+ }
697
+
698
+ exports.generatePrecisionValues = generatePrecisionValues;
699
+ /**
700
+ * insert layout in layout array, return a new layout array instead of updating the original
701
+ *
702
+ * @param {EditorLayoutConfig[][]} layout - editor layout
703
+ * @param {Number} index - the index to insert layout item(s)
704
+ * @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
705
+ * @returns {EditorLayoutConfig[][]} new editor layout with insertion
706
+ */
707
+
708
+ var insertLayout = function insertLayout(layout, index) {
709
+ for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
710
+ layoutItems[_key - 2] = arguments[_key];
711
+ }
712
+
713
+ return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
714
+ };
715
+
716
+ exports.insertLayout = insertLayout;
717
+
718
+ /***/ }),
436
719
 
437
720
  /***/ 17:
438
721
  /***/ (function(module, exports) {
439
722
 
440
- module.exports = require("@babel/runtime/helpers/createClass");
723
+ module.exports = require("@splunk/visualizations-shared/configUtils");
441
724
 
442
725
  /***/ }),
443
726
 
444
727
  /***/ 18:
445
728
  /***/ (function(module, exports) {
446
729
 
730
+ module.exports = require("@babel/runtime/helpers/createClass");
731
+
732
+ /***/ }),
733
+
734
+ /***/ 19:
735
+ /***/ (function(module, exports) {
736
+
447
737
  module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
448
738
 
449
739
  /***/ }),
@@ -451,25 +741,25 @@ module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
451
741
  /***/ 2:
452
742
  /***/ (function(module, exports) {
453
743
 
454
- module.exports = require("lodash");
744
+ module.exports = require("@splunk/ui-utils/i18n");
455
745
 
456
746
  /***/ }),
457
747
 
458
- /***/ 20:
748
+ /***/ 21:
459
749
  /***/ (function(module, exports) {
460
750
 
461
751
  module.exports = require("@splunk/themes/pick");
462
752
 
463
753
  /***/ }),
464
754
 
465
- /***/ 21:
755
+ /***/ 22:
466
756
  /***/ (function(module, exports) {
467
757
 
468
758
  module.exports = require("@splunk/visualization-context/TimezoneContext");
469
759
 
470
760
  /***/ }),
471
761
 
472
- /***/ 22:
762
+ /***/ 23:
473
763
  /***/ (function(module, exports) {
474
764
 
475
765
  module.exports = require("@splunk/visualizations-shared/propUtils");
@@ -477,40 +767,13 @@ module.exports = require("@splunk/visualizations-shared/propUtils");
477
767
  /***/ }),
478
768
 
479
769
  /***/ 24:
480
- /***/ (function(module, exports, __webpack_require__) {
481
-
482
- "use strict";
483
-
484
-
485
- Object.defineProperty(exports, "__esModule", {
486
- value: true
487
- });
488
- exports.pickFieldFromJSONSchema = void 0;
489
-
490
- var lodash_1 = __webpack_require__(2);
491
-
492
- var pickFieldFromJSONSchema = function pickFieldFromJSONSchema(optionsSchema) {
493
- var fieldName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
494
- return Object.keys(optionsSchema).reduce(function (accum, k) {
495
- if (lodash_1.has(optionsSchema[k], fieldName)) {
496
- accum[k] = optionsSchema[k][fieldName];
497
- } else if (lodash_1.get(optionsSchema, [k, 'type']) === 'object' && lodash_1.has(optionsSchema[k], 'properties')) {
498
- var nestedSchema = exports.pickFieldFromJSONSchema(optionsSchema[k].properties, fieldName);
499
-
500
- if (!lodash_1.isEmpty(nestedSchema)) {
501
- accum[k] = nestedSchema;
502
- }
503
- }
504
-
505
- return accum;
506
- }, {});
507
- };
770
+ /***/ (function(module, exports) {
508
771
 
509
- exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
772
+ module.exports = require("@splunk/visualizations-shared/hocUtils");
510
773
 
511
774
  /***/ }),
512
775
 
513
- /***/ 243:
776
+ /***/ 245:
514
777
  /***/ (function(module, exports, __webpack_require__) {
515
778
 
516
779
  "use strict";
@@ -540,9 +803,9 @@ Object.defineProperty(exports, "__esModule", {
540
803
  });
541
804
  exports.default = void 0;
542
805
 
543
- __exportStar(__webpack_require__(136), exports);
806
+ __exportStar(__webpack_require__(137), exports);
544
807
 
545
- var Rectangle_1 = __webpack_require__(136);
808
+ var Rectangle_1 = __webpack_require__(137);
546
809
 
547
810
  Object.defineProperty(exports, "default", {
548
811
  enumerable: true,
@@ -553,7 +816,7 @@ Object.defineProperty(exports, "default", {
553
816
 
554
817
  /***/ }),
555
818
 
556
- /***/ 244:
819
+ /***/ 246:
557
820
  /***/ (function(module, exports, __webpack_require__) {
558
821
 
559
822
  "use strict";
@@ -566,9 +829,9 @@ exports.optionsSchema = void 0;
566
829
 
567
830
  var visualization_icons_1 = __webpack_require__(46);
568
831
 
569
- var schemaUtils_1 = __webpack_require__(16);
832
+ var schemaUtils_1 = __webpack_require__(15);
570
833
 
571
- var i18n_1 = __webpack_require__(3);
834
+ var i18n_1 = __webpack_require__(2);
572
835
 
573
836
  var PresetPalettes_1 = __webpack_require__(53);
574
837
 
@@ -576,17 +839,17 @@ var themes_1 = __webpack_require__(69);
576
839
 
577
840
  var VizBehavior_1 = __webpack_require__(5);
578
841
 
579
- var VizCategory_1 = __webpack_require__(29);
842
+ var VizCategory_1 = __webpack_require__(30);
580
843
 
581
- var configUtils_1 = __webpack_require__(6);
844
+ var configUtils_1 = __webpack_require__(16);
582
845
 
583
- var DynamicFillColorEditor_1 = __webpack_require__(96);
846
+ var DynamicFillColorEditor_1 = __webpack_require__(97);
584
847
 
585
- var DynamicStrokeColorEditor_1 = __webpack_require__(97);
848
+ var DynamicStrokeColorEditor_1 = __webpack_require__(98);
586
849
 
587
- var StaticFillColorEditor_1 = __webpack_require__(98);
850
+ var StaticFillColorEditor_1 = __webpack_require__(99);
588
851
 
589
- var StaticStrokeColorEditor_1 = __webpack_require__(99);
852
+ var StaticStrokeColorEditor_1 = __webpack_require__(100);
590
853
 
591
854
  var dataContract = {
592
855
  requiredDataSources: [],
@@ -905,11 +1168,11 @@ exports.default = configUtils_1.enhanceConfig(config);
905
1168
  /***/ 25:
906
1169
  /***/ (function(module, exports) {
907
1170
 
908
- module.exports = require("@babel/runtime/helpers/typeof");
1171
+ module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
909
1172
 
910
1173
  /***/ }),
911
1174
 
912
- /***/ 26:
1175
+ /***/ 27:
913
1176
  /***/ (function(module, exports, __webpack_require__) {
914
1177
 
915
1178
  "use strict";
@@ -924,13 +1187,13 @@ var React = __webpack_require__(1);
924
1187
 
925
1188
  var T = __webpack_require__(0);
926
1189
 
927
- var lodash_1 = __webpack_require__(2);
1190
+ var lodash_1 = __webpack_require__(3);
928
1191
 
929
- var i18n_1 = __webpack_require__(3);
1192
+ var i18n_1 = __webpack_require__(2);
930
1193
 
931
- var Message_1 = __webpack_require__(11);
1194
+ var Message_1 = __webpack_require__(9);
932
1195
 
933
- var FixedSizeContainer_1 = __webpack_require__(14);
1196
+ var FixedSizeContainer_1 = __webpack_require__(12);
934
1197
  /**
935
1198
  * @method shouldShowIconPlaceholder
936
1199
  * @param {object} dataSources
@@ -1001,13 +1264,13 @@ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
1001
1264
 
1002
1265
  /***/ }),
1003
1266
 
1004
- /***/ 27:
1267
+ /***/ 28:
1005
1268
  /***/ (function(module, exports, __webpack_require__) {
1006
1269
 
1007
1270
  "use strict";
1008
1271
 
1009
1272
 
1010
- var _defineProperty = __webpack_require__(7);
1273
+ var _defineProperty = __webpack_require__(6);
1011
1274
 
1012
1275
  Object.defineProperty(exports, "__esModule", {
1013
1276
  value: true
@@ -1016,9 +1279,9 @@ exports.getSortingParams = exports.SortParamsPropTypes = void 0;
1016
1279
 
1017
1280
  var T = __webpack_require__(0);
1018
1281
 
1019
- var lodash_1 = __webpack_require__(2);
1282
+ var lodash_1 = __webpack_require__(3);
1020
1283
 
1021
- var DataSource_1 = __webpack_require__(37);
1284
+ var DataSource_1 = __webpack_require__(38);
1022
1285
 
1023
1286
  exports.SortParamsPropTypes = T.shape({
1024
1287
  currentSortKey: T.string,
@@ -1072,7 +1335,7 @@ exports.getSortingParams = getSortingParams;
1072
1335
 
1073
1336
  /***/ }),
1074
1337
 
1075
- /***/ 28:
1338
+ /***/ 29:
1076
1339
  /***/ (function(module, exports, __webpack_require__) {
1077
1340
 
1078
1341
  "use strict";
@@ -1085,7 +1348,7 @@ exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
1085
1348
 
1086
1349
  var T = __webpack_require__(0);
1087
1350
 
1088
- var lodash_1 = __webpack_require__(2);
1351
+ var lodash_1 = __webpack_require__(3);
1089
1352
 
1090
1353
  exports.PaginatorParamsPropTypes = T.shape({
1091
1354
  isPaging: T.bool,
@@ -1137,7 +1400,14 @@ exports.getPaginationParams = getPaginationParams;
1137
1400
 
1138
1401
  /***/ }),
1139
1402
 
1140
- /***/ 29:
1403
+ /***/ 3:
1404
+ /***/ (function(module, exports) {
1405
+
1406
+ module.exports = require("lodash");
1407
+
1408
+ /***/ }),
1409
+
1410
+ /***/ 30:
1141
1411
  /***/ (function(module, exports, __webpack_require__) {
1142
1412
 
1143
1413
  "use strict";
@@ -1166,14 +1436,7 @@ var VizCategory;
1166
1436
 
1167
1437
  /***/ }),
1168
1438
 
1169
- /***/ 3:
1170
- /***/ (function(module, exports) {
1171
-
1172
- module.exports = require("@splunk/ui-utils/i18n");
1173
-
1174
- /***/ }),
1175
-
1176
- /***/ 30:
1439
+ /***/ 31:
1177
1440
  /***/ (function(module, exports, __webpack_require__) {
1178
1441
 
1179
1442
  "use strict";
@@ -1185,39 +1448,39 @@ Object.defineProperty(exports, "__esModule", {
1185
1448
 
1186
1449
  var React = __webpack_require__(1);
1187
1450
 
1188
- var lodash_1 = __webpack_require__(2);
1451
+ var lodash_1 = __webpack_require__(3);
1189
1452
 
1190
- var getSettingsFromThemedProps_1 = __webpack_require__(31);
1453
+ var getSettingsFromThemedProps_1 = __webpack_require__(32);
1191
1454
 
1192
- var Options_1 = __webpack_require__(32);
1455
+ var Options_1 = __webpack_require__(33);
1193
1456
 
1194
- var SanitizeProps_1 = __webpack_require__(33);
1457
+ var SanitizeProps_1 = __webpack_require__(34);
1195
1458
 
1196
- var TimezoneContext_1 = __webpack_require__(21);
1459
+ var TimezoneContext_1 = __webpack_require__(22);
1197
1460
 
1198
- var moment_1 = __webpack_require__(34);
1461
+ var moment_1 = __webpack_require__(35);
1199
1462
 
1200
1463
  var styled_components_1 = __webpack_require__(4);
1201
1464
 
1202
- var SplunkVisualization_1 = __webpack_require__(35);
1465
+ var hocUtils_1 = __webpack_require__(24);
1203
1466
 
1204
- var VizBehavior_1 = __webpack_require__(5);
1467
+ var JSONSchemaUtils_1 = __webpack_require__(25);
1205
1468
 
1206
- var getSorting_1 = __webpack_require__(27);
1469
+ var SplunkVisualization_1 = __webpack_require__(36);
1207
1470
 
1208
- var getPagination_1 = __webpack_require__(28);
1471
+ var VizBehavior_1 = __webpack_require__(5);
1209
1472
 
1210
- var useDeepMemo_1 = __webpack_require__(38);
1473
+ var getSorting_1 = __webpack_require__(28);
1211
1474
 
1212
- var JSONSchemaUtils_1 = __webpack_require__(24);
1475
+ var getPagination_1 = __webpack_require__(29);
1213
1476
 
1214
- var MissingPropsMessage_1 = __webpack_require__(39);
1477
+ var useDeepMemo_1 = __webpack_require__(39);
1215
1478
 
1216
- var withEditModeCover_1 = __webpack_require__(40);
1479
+ var MissingPropsMessage_1 = __webpack_require__(40);
1217
1480
 
1218
- var withPlaceholder_1 = __webpack_require__(42);
1481
+ var withEditModeCover_1 = __webpack_require__(41);
1219
1482
 
1220
- var hocUtils_1 = __webpack_require__(8);
1483
+ var withPlaceholder_1 = __webpack_require__(42);
1221
1484
  /**
1222
1485
  * hoc that wraps a pure react visualization in a Dashboard visualization
1223
1486
  * @param {DashboardVizOpts} opts
@@ -1419,41 +1682,41 @@ exports.default = withDashboardViz;
1419
1682
 
1420
1683
  /***/ }),
1421
1684
 
1422
- /***/ 31:
1685
+ /***/ 32:
1423
1686
  /***/ (function(module, exports) {
1424
1687
 
1425
1688
  module.exports = require("@splunk/themes/getSettingsFromThemedProps");
1426
1689
 
1427
1690
  /***/ }),
1428
1691
 
1429
- /***/ 32:
1692
+ /***/ 33:
1430
1693
  /***/ (function(module, exports) {
1431
1694
 
1432
1695
  module.exports = require("@splunk/visualization-encoding/Options");
1433
1696
 
1434
1697
  /***/ }),
1435
1698
 
1436
- /***/ 33:
1699
+ /***/ 34:
1437
1700
  /***/ (function(module, exports) {
1438
1701
 
1439
1702
  module.exports = require("@splunk/visualizations-shared/SanitizeProps");
1440
1703
 
1441
1704
  /***/ }),
1442
1705
 
1443
- /***/ 34:
1706
+ /***/ 35:
1444
1707
  /***/ (function(module, exports) {
1445
1708
 
1446
1709
  module.exports = require("@splunk/moment");
1447
1710
 
1448
1711
  /***/ }),
1449
1712
 
1450
- /***/ 35:
1713
+ /***/ 36:
1451
1714
  /***/ (function(module, exports, __webpack_require__) {
1452
1715
 
1453
1716
  "use strict";
1454
1717
 
1455
1718
 
1456
- var _classCallCheck = __webpack_require__(12);
1719
+ var _classCallCheck = __webpack_require__(10);
1457
1720
 
1458
1721
  Object.defineProperty(exports, "__esModule", {
1459
1722
  value: true
@@ -1463,9 +1726,9 @@ exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
1463
1726
 
1464
1727
  var T = __webpack_require__(0);
1465
1728
 
1466
- var lodash_1 = __webpack_require__(2);
1729
+ var lodash_1 = __webpack_require__(3);
1467
1730
 
1468
- var VizActionHandler_1 = __webpack_require__(36); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
1731
+ var VizActionHandler_1 = __webpack_require__(37); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
1469
1732
 
1470
1733
 
1471
1734
  exports.INITIAL_WIDTH = 250;
@@ -1599,15 +1862,15 @@ exports.default = SplunkVisualization;
1599
1862
 
1600
1863
  /***/ }),
1601
1864
 
1602
- /***/ 36:
1865
+ /***/ 37:
1603
1866
  /***/ (function(module, exports, __webpack_require__) {
1604
1867
 
1605
1868
  "use strict";
1606
1869
 
1607
1870
 
1608
- var _classCallCheck = __webpack_require__(12);
1871
+ var _classCallCheck = __webpack_require__(10);
1609
1872
 
1610
- var _createClass = __webpack_require__(17);
1873
+ var _createClass = __webpack_require__(18);
1611
1874
 
1612
1875
  Object.defineProperty(exports, "__esModule", {
1613
1876
  value: true
@@ -1637,7 +1900,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
1637
1900
 
1638
1901
  /***/ }),
1639
1902
 
1640
- /***/ 37:
1903
+ /***/ 38:
1641
1904
  /***/ (function(module, exports, __webpack_require__) {
1642
1905
 
1643
1906
  "use strict";
@@ -1651,7 +1914,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
1651
1914
 
1652
1915
  /***/ }),
1653
1916
 
1654
- /***/ 38:
1917
+ /***/ 39:
1655
1918
  /***/ (function(module, exports, __webpack_require__) {
1656
1919
 
1657
1920
  "use strict";
@@ -1664,7 +1927,7 @@ exports.useDeepMemo = void 0;
1664
1927
 
1665
1928
  var react_1 = __webpack_require__(1);
1666
1929
 
1667
- var lodash_1 = __webpack_require__(2);
1930
+ var lodash_1 = __webpack_require__(3);
1668
1931
  /**
1669
1932
  * This hook evaluates and stores the result of a passed function and only
1670
1933
  * re-evaluates the function when passed dependencies change.
@@ -1697,7 +1960,14 @@ exports.useDeepMemo = useDeepMemo;
1697
1960
 
1698
1961
  /***/ }),
1699
1962
 
1700
- /***/ 39:
1963
+ /***/ 4:
1964
+ /***/ (function(module, exports) {
1965
+
1966
+ module.exports = require("styled-components");
1967
+
1968
+ /***/ }),
1969
+
1970
+ /***/ 40:
1701
1971
  /***/ (function(module, exports, __webpack_require__) {
1702
1972
 
1703
1973
  "use strict";
@@ -1712,11 +1982,11 @@ var React = __webpack_require__(1);
1712
1982
 
1713
1983
  var T = __webpack_require__(0);
1714
1984
 
1715
- var i18n_1 = __webpack_require__(3);
1985
+ var i18n_1 = __webpack_require__(2);
1716
1986
 
1717
- var Message_1 = __webpack_require__(11);
1987
+ var Message_1 = __webpack_require__(9);
1718
1988
 
1719
- var FixedSizeContainer_1 = __webpack_require__(14);
1989
+ var FixedSizeContainer_1 = __webpack_require__(12);
1720
1990
  /**
1721
1991
  * @method isMissing
1722
1992
  * @param {any} v
@@ -1778,14 +2048,7 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
1778
2048
 
1779
2049
  /***/ }),
1780
2050
 
1781
- /***/ 4:
1782
- /***/ (function(module, exports) {
1783
-
1784
- module.exports = require("styled-components");
1785
-
1786
- /***/ }),
1787
-
1788
- /***/ 40:
2051
+ /***/ 41:
1789
2052
  /***/ (function(module, exports, __webpack_require__) {
1790
2053
 
1791
2054
  "use strict";
@@ -1799,14 +2062,14 @@ var React = __webpack_require__(1);
1799
2062
 
1800
2063
  var styled_components_1 = __webpack_require__(4);
1801
2064
 
1802
- var hocUtils_1 = __webpack_require__(8);
2065
+ var hocUtils_1 = __webpack_require__(13);
1803
2066
 
1804
2067
  var Cover = styled_components_1.default.div.withConfig({
1805
2068
  displayName: "withEditModeCover__Cover",
1806
2069
  componentId: "sc-1gsbnxb-0"
1807
2070
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1808
2071
  var Blocker = styled_components_1.default.div.attrs({
1809
- 'data-splunk-visualization-version': "25.0.1 - de10ad954"
2072
+ 'data-splunk-visualization-version': "25.1.0 - 812a9a4d8"
1810
2073
  }).withConfig({
1811
2074
  displayName: "withEditModeCover__Blocker",
1812
2075
  componentId: "sc-1gsbnxb-1"
@@ -1838,13 +2101,6 @@ exports.default = withEditModeCover;
1838
2101
 
1839
2102
  /***/ }),
1840
2103
 
1841
- /***/ 41:
1842
- /***/ (function(module, exports) {
1843
-
1844
- module.exports = require("@splunk/visualizations-shared/mapUtils");
1845
-
1846
- /***/ }),
1847
-
1848
2104
  /***/ 42:
1849
2105
  /***/ (function(module, exports, __webpack_require__) {
1850
2106
 
@@ -1857,15 +2113,15 @@ Object.defineProperty(exports, "__esModule", {
1857
2113
 
1858
2114
  var React = __webpack_require__(1);
1859
2115
 
1860
- var colorUtils_1 = __webpack_require__(13);
2116
+ var colorUtils_1 = __webpack_require__(11);
1861
2117
 
1862
- var variables_1 = __webpack_require__(10);
2118
+ var variables_1 = __webpack_require__(8);
1863
2119
 
1864
- var IconPlaceholder_1 = __webpack_require__(26);
2120
+ var IconPlaceholder_1 = __webpack_require__(27);
1865
2121
 
1866
2122
  var VizBehavior_1 = __webpack_require__(5);
1867
2123
 
1868
- var hocUtils_1 = __webpack_require__(8);
2124
+ var hocUtils_1 = __webpack_require__(13);
1869
2125
 
1870
2126
  var withPlaceholder = function withPlaceholder(Visualization) {
1871
2127
  var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
@@ -1963,239 +2219,9 @@ module.exports = require("@splunk/visualization-color-palettes/editors/PresetPal
1963
2219
  /***/ }),
1964
2220
 
1965
2221
  /***/ 6:
1966
- /***/ (function(module, exports, __webpack_require__) {
1967
-
1968
- "use strict";
1969
-
1970
-
1971
- var _toConsumableArray = __webpack_require__(9);
1972
-
1973
- var _defineProperty = __webpack_require__(7);
1974
-
1975
- var __rest = this && this.__rest || function (s, e) {
1976
- var t = {};
1977
-
1978
- for (var p in s) {
1979
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
1980
- }
1981
-
1982
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1983
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
1984
- }
1985
- return t;
1986
- };
1987
-
1988
- Object.defineProperty(exports, "__esModule", {
1989
- value: true
1990
- });
1991
- exports.insertLayout = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOption = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
1992
-
1993
- var lodash_1 = __webpack_require__(2);
1994
-
1995
- var schemaUtils_1 = __webpack_require__(16);
1996
-
1997
- var VizBehavior_1 = __webpack_require__(5);
1998
-
1999
- var dynamicOptionsDSLType = {
2000
- type: 'string',
2001
- pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
2002
- };
2003
- /**
2004
- * Helper function to extend an options schema with dynamic options DSL
2005
- * @param optionsSchema a visualization's options schema
2006
- * @returns an updated options schema that additionally allows strings starting with > for each option
2007
- */
2008
-
2009
- function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
2010
- var enhancedOptionsSchema = {};
2011
- Object.keys(optionsSchema).forEach(function (key) {
2012
- var _a = optionsSchema[key],
2013
- title = _a.title,
2014
- description = _a.description,
2015
- readOnly = _a.readOnly,
2016
- writeOnly = _a.writeOnly,
2017
- examples = _a.examples,
2018
- defaultValue = _a.default,
2019
- type = _a.type,
2020
- properties = _a.properties,
2021
- patternProperties = _a.patternProperties,
2022
- remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
2023
-
2024
- var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
2025
- title: title
2026
- }), description !== undefined && {
2027
- description: description
2028
- }), readOnly !== undefined && {
2029
- readOnly: readOnly
2030
- }), writeOnly !== undefined && {
2031
- writeOnly: writeOnly
2032
- }), examples !== undefined && {
2033
- examples: examples
2034
- }), defaultValue !== undefined && {
2035
- default: defaultValue
2036
- });
2037
-
2038
- if (type === 'object') {
2039
- enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
2040
- type: type
2041
- }), properties && {
2042
- properties: enhanceOptionsSchemaWithDynamicOptions(properties)
2043
- });
2044
-
2045
- if (patternProperties) {
2046
- var enhancedPatternProperties = {};
2047
- Object.keys(patternProperties).forEach(function (opt) {
2048
- enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
2049
- });
2050
- enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
2051
- }
2052
- } else {
2053
- enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
2054
- anyOf: [Object.assign(Object.assign({}, type !== undefined && {
2055
- type: type
2056
- }), remainingSchemaEntry), dynamicOptionsDSLType]
2057
- });
2058
- }
2059
- });
2060
- return enhancedOptionsSchema;
2061
- }
2062
-
2063
- exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
2064
- /**
2065
- * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
2066
- * this function also collapse all editor panels
2067
- * @param vizConfig a Visualization Config
2068
- * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
2069
- * and containing `open: false` for all editor panels in editorConfig
2070
- */
2071
-
2072
- function enhanceConfig(vizConfig) {
2073
- var enhancedConfig = vizConfig;
2074
-
2075
- if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
2076
- enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
2077
- }
2078
-
2079
- enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
2080
- return Object.assign(Object.assign({}, config), {
2081
- open: false
2082
- });
2083
- });
2084
- return enhancedConfig;
2085
- }
2086
-
2087
- exports.enhanceConfig = enhanceConfig;
2088
- /**
2089
- * Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
2090
- * Created for editor unit tests
2091
- * @param vizConfig a Visualization Config
2092
- * @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
2093
- */
2094
-
2095
- function uncollapseEditorConfig(vizConfig) {
2096
- var editorPanelUncollapsedConfig = vizConfig;
2097
- editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
2098
- return Object.assign(Object.assign({}, config), {
2099
- open: true
2100
- });
2101
- });
2102
- return editorPanelUncollapsedConfig;
2103
- }
2104
-
2105
- exports.uncollapseEditorConfig = uncollapseEditorConfig;
2106
-
2107
- function isDynamicOption(option) {
2108
- return option && typeof option === 'string' && option.trim().startsWith('>') || false;
2109
- }
2110
-
2111
- exports.isDynamicOption = isDynamicOption; // private helpers to improve readability of getInitialPreset
2112
- // this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset
2113
-
2114
- /**
2115
- * this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset
2116
- * 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
2117
- * the inverse is true; if a preset has key is NOT undefined, it must also be NOT undefined in the corresponding vizContext
2118
- * 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
2119
- *
2120
- * Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
2121
- */
2122
-
2123
- function hasCompatibleContexts(vizContext, presetContext) {
2124
- var presetContextKeys = Object.keys(presetContext);
2125
- return presetContextKeys.every(function (contextKey) {
2126
- return presetContext[contextKey] === undefined && vizContext[contextKey] === undefined || presetContext[contextKey] !== undefined && vizContext[contextKey] !== undefined;
2127
- });
2128
- }
2129
- /**
2130
- * Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
2131
- */
2132
-
2133
-
2134
- function hasCompatibleOptions(vizOptions, presetOptions) {
2135
- var presetOptionKeys = Object.keys(presetOptions);
2136
- return presetOptionKeys.every(function (optionKey) {
2137
- return isDynamicOption(presetOptions[optionKey]) === isDynamicOption(vizOptions[optionKey]);
2138
- });
2139
- }
2140
- /**
2141
- * Evaluates whether there is an initialPreset that fits the current state of vizContext + vizOptions
2142
- * This function ignores extraneous vizOptions or vizContext keys, as they could be outside the scope of what the preset is intended to configure
2143
- *
2144
- * @param {Object} vizContext - the current vizContext definition
2145
- * @param {Object} vizOptions - the current vizOptions definition
2146
- * @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
2147
- */
2148
-
2149
-
2150
- function getInitialPreset(vizContext, vizOptions, presets) {
2151
- return presets.find(function (preset) {
2152
- var presetContext = lodash_1.get(preset, ['value', 'context'], {});
2153
- var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
2154
- var presetContextKeys = Object.keys(presetContext);
2155
- var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
2156
- // if not, then the preset is invalid in config.ts
2157
-
2158
- if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
2159
- return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
2160
- });
2161
- }
2162
-
2163
- exports.getInitialPreset = getInitialPreset;
2164
- /**
2165
- * generates number precision values for a Select editor
2166
- *
2167
- * @param {Number} numPrecisionValues - number of integer precision values to generate
2168
- * @returns {{ label: string; value; string }[]} array of { label, value } tuples
2169
- */
2170
-
2171
- function generatePrecisionValues(numPrecisionValues) {
2172
- return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
2173
- return {
2174
- label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
2175
- value: i
2176
- };
2177
- });
2178
- }
2179
-
2180
- exports.generatePrecisionValues = generatePrecisionValues;
2181
- /**
2182
- * insert layout in layout array, return a new layout array instead of updating the original
2183
- *
2184
- * @param {EditorLayoutConfig[][]} layout - editor layout
2185
- * @param {Number} index - the index to insert layout item(s)
2186
- * @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
2187
- * @returns {EditorLayoutConfig[][]} new editor layout with insertion
2188
- */
2189
-
2190
- var insertLayout = function insertLayout(layout, index) {
2191
- for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
2192
- layoutItems[_key - 2] = arguments[_key];
2193
- }
2194
-
2195
- return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
2196
- };
2222
+ /***/ (function(module, exports) {
2197
2223
 
2198
- exports.insertLayout = insertLayout;
2224
+ module.exports = require("@babel/runtime/helpers/defineProperty");
2199
2225
 
2200
2226
  /***/ }),
2201
2227
 
@@ -2209,105 +2235,25 @@ module.exports = require("@splunk/themes");
2209
2235
  /***/ 7:
2210
2236
  /***/ (function(module, exports) {
2211
2237
 
2212
- module.exports = require("@babel/runtime/helpers/defineProperty");
2238
+ module.exports = require("@babel/runtime/helpers/toConsumableArray");
2213
2239
 
2214
2240
  /***/ }),
2215
2241
 
2216
2242
  /***/ 8:
2217
- /***/ (function(module, exports, __webpack_require__) {
2218
-
2219
- "use strict";
2220
-
2221
-
2222
- var _typeof = __webpack_require__(25);
2223
-
2224
- Object.defineProperty(exports, "__esModule", {
2225
- value: true
2226
- });
2227
- exports.deepMergeWithArrayPrimitiveOverrides = exports.extendStaticWrapperProps = void 0;
2228
-
2229
- var lodash_1 = __webpack_require__(2);
2230
-
2231
- var mapUtils_1 = __webpack_require__(41);
2232
- /**
2233
- * @method extendStaticWrapperProps
2234
- * @param {Object} props
2235
- * @param {DashboardVizType} props.Wrapper
2236
- * @param {DashboardVizType} props.Visualization
2237
- */
2238
-
2239
-
2240
- var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
2241
- var Wrapper = _ref.Wrapper,
2242
- Visualization = _ref.Visualization;
2243
- var extendProperties = ['propTypes', 'defaultProps', 'config'];
2244
- extendProperties.forEach(function (prop) {
2245
- if (Visualization[prop]) {
2246
- // eslint-disable-next-line no-param-reassign
2247
- Wrapper[prop] = Visualization[prop];
2248
- }
2249
- });
2250
- };
2251
-
2252
- exports.extendStaticWrapperProps = extendStaticWrapperProps;
2253
- /**
2254
- * helper to deeply merge objects while preserving arrays in earlier source objects
2255
- * 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
2256
- * 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).
2257
- * 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
2258
- * 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.
2259
- *
2260
- * @method deepMergeWithArrayPrimitiveOverrides
2261
- * @param {Object} initial - target object to merge values into
2262
- * @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
2263
- *
2264
- * @returns {Object}
2265
- */
2266
-
2267
- var deepMergeWithArrayPrimitiveOverrides = function deepMergeWithArrayPrimitiveOverrides(initial) {
2268
- var clone = lodash_1.cloneDeep(initial);
2269
-
2270
- for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
2271
- sources[_key - 1] = arguments[_key];
2272
- }
2273
-
2274
- sources.forEach(function (sourceToApply) {
2275
- Object.keys(sourceToApply).forEach(function (sourceKey) {
2276
- if (!Object.prototype.hasOwnProperty.call(clone, sourceKey)) {
2277
- clone[sourceKey] = lodash_1.cloneDeep(sourceToApply[sourceKey]);
2278
- }
2279
-
2280
- if (clone[sourceKey] && _typeof(clone[sourceKey]) === 'object' && !Array.isArray(clone[sourceKey]) && _typeof(sourceToApply[sourceKey]) === 'object') {
2281
- clone[sourceKey] = exports.deepMergeWithArrayPrimitiveOverrides(clone[sourceKey], sourceToApply[sourceKey]);
2282
- } else if (Array.isArray(clone[sourceKey]) && _typeof(clone[sourceKey][0]) === 'object' && !Array.isArray(clone[sourceKey][0])) {
2283
- // If option is an array of objects
2284
- for (var i = 0; i < clone[sourceKey].length; i += 1) {
2285
- if (_typeof(clone[sourceKey][i]) === 'object') {
2286
- var closestMatchIdx = mapUtils_1.findClosestMatchFromDefaultList(sourceToApply[sourceKey], clone[sourceKey][i]);
2287
-
2288
- if (closestMatchIdx > -1) {
2289
- clone[sourceKey][i] = exports.deepMergeWithArrayPrimitiveOverrides(clone[sourceKey][i], sourceToApply[sourceKey][closestMatchIdx]);
2290
- }
2291
- }
2292
- }
2293
- }
2294
- });
2295
- });
2296
- return clone;
2297
- };
2243
+ /***/ (function(module, exports) {
2298
2244
 
2299
- exports.deepMergeWithArrayPrimitiveOverrides = deepMergeWithArrayPrimitiveOverrides;
2245
+ module.exports = require("@splunk/themes/variables");
2300
2246
 
2301
2247
  /***/ }),
2302
2248
 
2303
2249
  /***/ 9:
2304
2250
  /***/ (function(module, exports) {
2305
2251
 
2306
- module.exports = require("@babel/runtime/helpers/toConsumableArray");
2252
+ module.exports = require("@splunk/visualizations-shared/Message");
2307
2253
 
2308
2254
  /***/ }),
2309
2255
 
2310
- /***/ 96:
2256
+ /***/ 97:
2311
2257
  /***/ (function(module, exports, __webpack_require__) {
2312
2258
 
2313
2259
  "use strict";
@@ -2318,9 +2264,9 @@ Object.defineProperty(exports, "__esModule", {
2318
2264
  });
2319
2265
  exports.getDynamicFillColorEditor = void 0;
2320
2266
 
2321
- var i18n_1 = __webpack_require__(3);
2267
+ var i18n_1 = __webpack_require__(2);
2322
2268
 
2323
- var configUtils_1 = __webpack_require__(6);
2269
+ var configUtils_1 = __webpack_require__(17);
2324
2270
 
2325
2271
  var getDynamicFillColorEditor = function getDynamicFillColorEditor(_ref) {
2326
2272
  var defaultContext = _ref.defaultContext,
@@ -2363,7 +2309,7 @@ exports.getDynamicFillColorEditor = getDynamicFillColorEditor;
2363
2309
 
2364
2310
  /***/ }),
2365
2311
 
2366
- /***/ 97:
2312
+ /***/ 98:
2367
2313
  /***/ (function(module, exports, __webpack_require__) {
2368
2314
 
2369
2315
  "use strict";
@@ -2374,9 +2320,9 @@ Object.defineProperty(exports, "__esModule", {
2374
2320
  });
2375
2321
  exports.getDynamicStrokeColorEditor = void 0;
2376
2322
 
2377
- var i18n_1 = __webpack_require__(3);
2323
+ var i18n_1 = __webpack_require__(2);
2378
2324
 
2379
- var configUtils_1 = __webpack_require__(6);
2325
+ var configUtils_1 = __webpack_require__(17);
2380
2326
 
2381
2327
  var getDynamicStrokeColorEditor = function getDynamicStrokeColorEditor(_ref) {
2382
2328
  var defaultContext = _ref.defaultContext,
@@ -2419,7 +2365,7 @@ exports.getDynamicStrokeColorEditor = getDynamicStrokeColorEditor;
2419
2365
 
2420
2366
  /***/ }),
2421
2367
 
2422
- /***/ 98:
2368
+ /***/ 99:
2423
2369
  /***/ (function(module, exports, __webpack_require__) {
2424
2370
 
2425
2371
  "use strict";
@@ -2429,9 +2375,9 @@ Object.defineProperty(exports, "__esModule", {
2429
2375
  value: true
2430
2376
  });
2431
2377
 
2432
- var i18n_1 = __webpack_require__(3);
2378
+ var i18n_1 = __webpack_require__(2);
2433
2379
 
2434
- var configUtils_1 = __webpack_require__(6);
2380
+ var configUtils_1 = __webpack_require__(17);
2435
2381
 
2436
2382
  var StaticFillColorEditor = {
2437
2383
  label: i18n_1._('Static Fill'),
@@ -2444,33 +2390,6 @@ var StaticFillColorEditor = {
2444
2390
  };
2445
2391
  exports.default = StaticFillColorEditor;
2446
2392
 
2447
- /***/ }),
2448
-
2449
- /***/ 99:
2450
- /***/ (function(module, exports, __webpack_require__) {
2451
-
2452
- "use strict";
2453
-
2454
-
2455
- Object.defineProperty(exports, "__esModule", {
2456
- value: true
2457
- });
2458
-
2459
- var i18n_1 = __webpack_require__(3);
2460
-
2461
- var configUtils_1 = __webpack_require__(6);
2462
-
2463
- var StaticStrokeColorEditor = {
2464
- label: i18n_1._('Static Stroke'),
2465
- option: 'strokeColor',
2466
- editor: 'editor.color',
2467
- showEditor: function showEditor(_ref) {
2468
- var options = _ref.options;
2469
- return !configUtils_1.isDynamicOption(options.strokeColor);
2470
- }
2471
- };
2472
- exports.default = StaticStrokeColorEditor;
2473
-
2474
2393
  /***/ })
2475
2394
 
2476
2395
  /******/ });