@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/Markdown.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 = 208);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 210);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -109,11 +109,11 @@ module.exports = require("react");
109
109
  /***/ 10:
110
110
  /***/ (function(module, exports) {
111
111
 
112
- module.exports = require("@splunk/themes/variables");
112
+ module.exports = require("@babel/runtime/helpers/classCallCheck");
113
113
 
114
114
  /***/ }),
115
115
 
116
- /***/ 105:
116
+ /***/ 106:
117
117
  /***/ (function(module, exports) {
118
118
 
119
119
  module.exports = require("@splunk/react-ui/Paragraph");
@@ -123,25 +123,141 @@ module.exports = require("@splunk/react-ui/Paragraph");
123
123
  /***/ 11:
124
124
  /***/ (function(module, exports) {
125
125
 
126
- module.exports = require("@splunk/visualizations-shared/Message");
126
+ module.exports = require("@splunk/visualizations-shared/colorUtils");
127
127
 
128
128
  /***/ }),
129
129
 
130
130
  /***/ 12:
131
- /***/ (function(module, exports) {
131
+ /***/ (function(module, exports, __webpack_require__) {
132
132
 
133
- module.exports = require("@babel/runtime/helpers/classCallCheck");
133
+ "use strict";
134
+
135
+
136
+ Object.defineProperty(exports, "__esModule", {
137
+ value: true
138
+ });
139
+
140
+ var React = __webpack_require__(1);
141
+
142
+ var styled_components_1 = __webpack_require__(4);
143
+
144
+ var SizeAwareWrapper_1 = __webpack_require__(19);
145
+
146
+ var style_1 = __webpack_require__(14);
147
+
148
+ var colorUtils_1 = __webpack_require__(11);
149
+
150
+ var Item = styled_components_1.default.div.attrs(function (_ref) {
151
+ var width = _ref.width;
152
+ return {
153
+ style: {
154
+ width: style_1.toPx(width)
155
+ }
156
+ };
157
+ }).withConfig({
158
+ displayName: "FixedSizeContainer__Item",
159
+ componentId: "sc-1yhgpod-0"
160
+ })(["position:relative;background-color:", "};"], function (props) {
161
+ return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
162
+ }); // Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
163
+
164
+ var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
165
+ var width = _ref2.width,
166
+ height = _ref2.height;
167
+ return {
168
+ style: Object.assign(Object.assign({}, width && {
169
+ width: style_1.toPx(width)
170
+ }), height && {
171
+ height: style_1.toPx(height)
172
+ })
173
+ };
174
+ }).withConfig({
175
+ displayName: "FixedSizeContainer__FixSizeItem",
176
+ componentId: "sc-1yhgpod-1"
177
+ })(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
178
+ return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
179
+ });
180
+ var ItemContent = styled_components_1.default.div.withConfig({
181
+ displayName: "FixedSizeContainer__ItemContent",
182
+ componentId: "sc-1yhgpod-2"
183
+ })(["position:relative;min-height:100px;width:100%;"]);
184
+ var FixSizeItemContent = styled_components_1.default.div.withConfig({
185
+ displayName: "FixedSizeContainer__FixSizeItemContent",
186
+ componentId: "sc-1yhgpod-3"
187
+ })(["min-height:0px;flex:1;position:relative;box-sizing:border-box;"]);
188
+
189
+ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
190
+ var FixedSizeContainer = function FixedSizeContainer(props) {
191
+ var width = props.width,
192
+ height = props.height,
193
+ backgroundColor = props.backgroundColor;
194
+
195
+ if (!height) {
196
+ return React.createElement(Item, {
197
+ "data-test": "item",
198
+ width: width,
199
+ backgroundColor: backgroundColor
200
+ }, React.createElement(ItemContent, null, React.createElement(Viz, Object.assign({}, props))));
201
+ }
202
+
203
+ return React.createElement(FixSizeItem, {
204
+ "data-test": "fix-size-item",
205
+ "data-splunk-visualization-version": "25.1.0 - 812a9a4d8",
206
+ width: width,
207
+ height: height,
208
+ backgroundColor: backgroundColor
209
+ }, React.createElement(FixSizeItemContent, null, React.createElement(SizeAwareWrapper_1.default, null, function (_ref3) {
210
+ var newWidth = _ref3.width,
211
+ newHeight = _ref3.height;
212
+ return React.createElement(Viz, Object.assign({}, props, {
213
+ width: newWidth,
214
+ height: newHeight
215
+ }));
216
+ })));
217
+ };
218
+
219
+ FixedSizeContainer.displayName = 'withFixedSizeContainer';
220
+ return FixedSizeContainer;
221
+ };
222
+
223
+ exports.default = withFixedSizeContainer;
134
224
 
135
225
  /***/ }),
136
226
 
137
227
  /***/ 13:
138
- /***/ (function(module, exports) {
228
+ /***/ (function(module, exports, __webpack_require__) {
139
229
 
140
- module.exports = require("@splunk/visualizations-shared/colorUtils");
230
+ "use strict";
231
+
232
+
233
+ Object.defineProperty(exports, "__esModule", {
234
+ value: true
235
+ });
236
+ exports.extendStaticWrapperProps = void 0;
237
+ /**
238
+ * @method extendStaticWrapperProps
239
+ * @param {Object} props
240
+ * @param {DashboardVizType} props.Wrapper
241
+ * @param {DashboardVizType} props.Visualization
242
+ */
243
+
244
+ var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
245
+ var Wrapper = _ref.Wrapper,
246
+ Visualization = _ref.Visualization;
247
+ var extendProperties = ['propTypes', 'defaultProps', 'config'];
248
+ extendProperties.forEach(function (prop) {
249
+ if (Visualization[prop]) {
250
+ // eslint-disable-next-line no-param-reassign
251
+ Wrapper[prop] = Visualization[prop];
252
+ }
253
+ });
254
+ };
255
+
256
+ exports.extendStaticWrapperProps = extendStaticWrapperProps;
141
257
 
142
258
  /***/ }),
143
259
 
144
- /***/ 132:
260
+ /***/ 133:
145
261
  /***/ (function(module, exports, __webpack_require__) {
146
262
 
147
263
  "use strict";
@@ -154,15 +270,15 @@ var _templateObject;
154
270
  Object.defineProperty(exports, "__esModule", {
155
271
  value: true
156
272
  });
157
- exports.getFontMap = exports.config = exports.themes = void 0;
273
+ exports.getFontMap = exports.config = exports.themes = exports.computeVizProps = void 0;
158
274
 
159
- var lodash_1 = __webpack_require__(2);
275
+ var lodash_1 = __webpack_require__(3);
160
276
 
161
277
  var React = __webpack_require__(1);
162
278
 
163
- var style_1 = __webpack_require__(15);
279
+ var style_1 = __webpack_require__(14);
164
280
 
165
- var Markdown_1 = __webpack_require__(209);
281
+ var Markdown_1 = __webpack_require__(211);
166
282
 
167
283
  var styled_components_1 = __webpack_require__(4);
168
284
 
@@ -170,17 +286,17 @@ var T = __webpack_require__(0);
170
286
 
171
287
  var themes_1 = __webpack_require__(69);
172
288
 
173
- var Heading_1 = __webpack_require__(210);
289
+ var Heading_1 = __webpack_require__(212);
174
290
 
175
- var Paragraph_1 = __webpack_require__(105);
291
+ var Paragraph_1 = __webpack_require__(106);
176
292
 
177
- var List_1 = __webpack_require__(211);
293
+ var List_1 = __webpack_require__(213);
178
294
 
179
- var Code_1 = __webpack_require__(212);
295
+ var Code_1 = __webpack_require__(214);
180
296
 
181
- var withDashboardViz_1 = __webpack_require__(30);
297
+ var withDashboardViz_1 = __webpack_require__(31);
182
298
 
183
- var config_1 = __webpack_require__(213);
299
+ var config_1 = __webpack_require__(215);
184
300
 
185
301
  exports.config = config_1.default; // map of valid font sizes with elements' respective pixel sizes
186
302
 
@@ -359,6 +475,7 @@ var MarkdownVisualization = function MarkdownVisualization(_ref8) {
359
475
  backgroundColor = _ref8.backgroundColor,
360
476
  fontColor = _ref8.fontColor,
361
477
  fontSize = _ref8.fontSize,
478
+ hasEventHandlers = _ref8.hasEventHandlers,
362
479
  onMarkdownClick = _ref8.onMarkdownClick;
363
480
 
364
481
  var _a; // because DSL evaluation is not guaranteed to return string data if `markdown` is powered by DSL, we do a typecast here
@@ -377,6 +494,10 @@ var MarkdownVisualization = function MarkdownVisualization(_ref8) {
377
494
  }, React.createElement(Markdown_1.default, Object.assign({
378
495
  text: stringifiedMarkdown
379
496
  }, renderersForFontSize, {
497
+ style: {
498
+ height: '100%',
499
+ cursor: hasEventHandlers ? 'pointer' : 'inherit'
500
+ },
380
501
  onClick: onMarkdownClick
381
502
  })));
382
503
  };
@@ -388,6 +509,7 @@ var propTypes = {
388
509
  backgroundColor: T.string,
389
510
  fontColor: T.string,
390
511
  fontSize: T.string,
512
+ hasEventHandlers: T.bool,
391
513
  onMarkdownClick: T.func
392
514
  };
393
515
  var defaultProps = {
@@ -397,13 +519,21 @@ var defaultProps = {
397
519
  backgroundColor: 'transparent',
398
520
  fontColor: 'rgba(255, 255, 255, 0.7)',
399
521
  fontSize: 'default',
522
+ hasEventHandlers: false,
400
523
  onMarkdownClick: function onMarkdownClick() {}
401
524
  };
402
525
  MarkdownVisualization.propTypes = propTypes;
403
526
  MarkdownVisualization.defaultProps = defaultProps;
527
+
528
+ var computeVizProps = function computeVizProps(props) {
529
+ return props;
530
+ };
531
+
532
+ exports.computeVizProps = computeVizProps;
404
533
  var Markdown = withDashboardViz_1.default({
405
534
  ReactViz: MarkdownVisualization,
406
- vizConfig: config_1.default
535
+ vizConfig: config_1.default,
536
+ computeVizProps: exports.computeVizProps
407
537
  });
408
538
  var themes = config_1.default.themes;
409
539
  exports.themes = themes;
@@ -412,144 +542,284 @@ exports.default = Markdown;
412
542
  /***/ }),
413
543
 
414
544
  /***/ 14:
415
- /***/ (function(module, exports, __webpack_require__) {
416
-
417
- "use strict";
418
-
419
-
420
- Object.defineProperty(exports, "__esModule", {
421
- value: true
422
- });
423
-
424
- var React = __webpack_require__(1);
425
-
426
- var styled_components_1 = __webpack_require__(4);
427
-
428
- var SizeAwareWrapper_1 = __webpack_require__(18);
429
-
430
- var style_1 = __webpack_require__(15);
431
-
432
- var colorUtils_1 = __webpack_require__(13);
433
-
434
- var Item = styled_components_1.default.div.attrs(function (_ref) {
435
- var width = _ref.width;
436
- return {
437
- style: {
438
- width: style_1.toPx(width)
439
- }
440
- };
441
- }).withConfig({
442
- displayName: "FixedSizeContainer__Item",
443
- componentId: "sc-1yhgpod-0"
444
- })(["position:relative;background-color:", "};"], function (props) {
445
- return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
446
- }); // Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
447
-
448
- var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
449
- var width = _ref2.width,
450
- height = _ref2.height;
451
- return {
452
- style: Object.assign(Object.assign({}, width && {
453
- width: style_1.toPx(width)
454
- }), height && {
455
- height: style_1.toPx(height)
456
- })
457
- };
458
- }).withConfig({
459
- displayName: "FixedSizeContainer__FixSizeItem",
460
- componentId: "sc-1yhgpod-1"
461
- })(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
462
- return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
463
- });
464
- var ItemContent = styled_components_1.default.div.withConfig({
465
- displayName: "FixedSizeContainer__ItemContent",
466
- componentId: "sc-1yhgpod-2"
467
- })(["position:relative;min-height:100px;width:100%;"]);
468
- var FixSizeItemContent = styled_components_1.default.div.withConfig({
469
- displayName: "FixedSizeContainer__FixSizeItemContent",
470
- componentId: "sc-1yhgpod-3"
471
- })(["min-height:0px;flex:1;position:relative;box-sizing:border-box;"]);
472
-
473
- var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
474
- var FixedSizeContainer = function FixedSizeContainer(props) {
475
- var width = props.width,
476
- height = props.height,
477
- backgroundColor = props.backgroundColor;
478
-
479
- if (!height) {
480
- return React.createElement(Item, {
481
- "data-test": "item",
482
- width: width,
483
- backgroundColor: backgroundColor
484
- }, React.createElement(ItemContent, null, React.createElement(Viz, Object.assign({}, props))));
485
- }
486
-
487
- return React.createElement(FixSizeItem, {
488
- "data-test": "fix-size-item",
489
- "data-splunk-visualization-version": "25.0.1 - de10ad954",
490
- width: width,
491
- height: height,
492
- backgroundColor: backgroundColor
493
- }, React.createElement(FixSizeItemContent, null, React.createElement(SizeAwareWrapper_1.default, null, function (_ref3) {
494
- var newWidth = _ref3.width,
495
- newHeight = _ref3.height;
496
- return React.createElement(Viz, Object.assign({}, props, {
497
- width: newWidth,
498
- height: newHeight
499
- }));
500
- })));
501
- };
502
-
503
- FixedSizeContainer.displayName = 'withFixedSizeContainer';
504
- return FixedSizeContainer;
505
- };
506
-
507
- exports.default = withFixedSizeContainer;
508
-
509
- /***/ }),
510
-
511
- /***/ 15:
512
545
  /***/ (function(module, exports) {
513
546
 
514
547
  module.exports = require("@splunk/visualizations-shared/style");
515
548
 
516
549
  /***/ }),
517
550
 
518
- /***/ 16:
551
+ /***/ 15:
519
552
  /***/ (function(module, exports) {
520
553
 
521
554
  module.exports = require("@splunk/visualizations-shared/schemaUtils");
522
555
 
523
556
  /***/ }),
524
557
 
525
- /***/ 17:
526
- /***/ (function(module, exports) {
558
+ /***/ 16:
559
+ /***/ (function(module, exports, __webpack_require__) {
527
560
 
528
- module.exports = require("@babel/runtime/helpers/createClass");
561
+ "use strict";
529
562
 
530
- /***/ }),
531
563
 
532
- /***/ 18:
533
- /***/ (function(module, exports) {
564
+ var _toConsumableArray = __webpack_require__(7);
534
565
 
535
- module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
566
+ var _defineProperty = __webpack_require__(6);
536
567
 
537
- /***/ }),
568
+ var __rest = this && this.__rest || function (s, e) {
569
+ var t = {};
538
570
 
539
- /***/ 2:
540
- /***/ (function(module, exports) {
571
+ for (var p in s) {
572
+ if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
573
+ }
541
574
 
542
- module.exports = require("lodash");
575
+ if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
576
+ if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
577
+ }
578
+ return t;
579
+ };
543
580
 
544
- /***/ }),
581
+ Object.defineProperty(exports, "__esModule", {
582
+ value: true
583
+ });
584
+ exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
545
585
 
546
- /***/ 208:
547
- /***/ (function(module, exports, __webpack_require__) {
586
+ var lodash_1 = __webpack_require__(3);
548
587
 
549
- "use strict";
588
+ var schemaUtils_1 = __webpack_require__(15);
550
589
 
590
+ var VizBehavior_1 = __webpack_require__(5);
551
591
 
552
- var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
592
+ var dynamicOptionsDSLType = {
593
+ type: 'string',
594
+ pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
595
+ };
596
+ /**
597
+ * Helper function to extend an options schema with dynamic options DSL
598
+ * @param optionsSchema a visualization's options schema
599
+ * @returns an updated options schema that additionally allows strings starting with > for each option
600
+ */
601
+
602
+ function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
603
+ var enhancedOptionsSchema = {};
604
+ Object.keys(optionsSchema).forEach(function (key) {
605
+ var _a = optionsSchema[key],
606
+ title = _a.title,
607
+ description = _a.description,
608
+ readOnly = _a.readOnly,
609
+ writeOnly = _a.writeOnly,
610
+ examples = _a.examples,
611
+ defaultValue = _a.default,
612
+ type = _a.type,
613
+ properties = _a.properties,
614
+ patternProperties = _a.patternProperties,
615
+ remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
616
+
617
+ var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
618
+ title: title
619
+ }), description !== undefined && {
620
+ description: description
621
+ }), readOnly !== undefined && {
622
+ readOnly: readOnly
623
+ }), writeOnly !== undefined && {
624
+ writeOnly: writeOnly
625
+ }), examples !== undefined && {
626
+ examples: examples
627
+ }), defaultValue !== undefined && {
628
+ default: defaultValue
629
+ });
630
+
631
+ if (type === 'object') {
632
+ enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
633
+ type: type
634
+ }), properties && {
635
+ properties: enhanceOptionsSchemaWithDynamicOptions(properties)
636
+ });
637
+
638
+ if (patternProperties) {
639
+ var enhancedPatternProperties = {};
640
+ Object.keys(patternProperties).forEach(function (opt) {
641
+ enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
642
+ });
643
+ enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
644
+ }
645
+ } else {
646
+ enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
647
+ anyOf: [Object.assign(Object.assign({}, type !== undefined && {
648
+ type: type
649
+ }), remainingSchemaEntry), dynamicOptionsDSLType]
650
+ });
651
+ }
652
+ });
653
+ return enhancedOptionsSchema;
654
+ }
655
+
656
+ exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
657
+ /**
658
+ * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
659
+ * this function also collapse all editor panels
660
+ * @param vizConfig a Visualization Config
661
+ * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
662
+ * and containing `open: false` for all editor panels in editorConfig
663
+ */
664
+
665
+ function enhanceConfig(vizConfig) {
666
+ var enhancedConfig = vizConfig;
667
+
668
+ if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
669
+ enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
670
+ }
671
+
672
+ enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
673
+ return Object.assign(Object.assign({}, config), {
674
+ open: false
675
+ });
676
+ });
677
+ return enhancedConfig;
678
+ }
679
+
680
+ exports.enhanceConfig = enhanceConfig;
681
+ /**
682
+ * Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
683
+ * Created for editor unit tests
684
+ * @param vizConfig a Visualization Config
685
+ * @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
686
+ */
687
+
688
+ function uncollapseEditorConfig(vizConfig) {
689
+ var editorPanelUncollapsedConfig = vizConfig;
690
+ editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
691
+ return Object.assign(Object.assign({}, config), {
692
+ open: true
693
+ });
694
+ });
695
+ return editorPanelUncollapsedConfig;
696
+ }
697
+
698
+ exports.uncollapseEditorConfig = uncollapseEditorConfig;
699
+
700
+ function isDynamicOption(option) {
701
+ return option && typeof option === 'string' && option.trim().startsWith('>') || false;
702
+ }
703
+
704
+ exports.isDynamicOption = isDynamicOption; // private helpers to improve readability of getInitialPreset
705
+ // this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset
706
+
707
+ /**
708
+ * this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset
709
+ * 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
710
+ * the inverse is true; if a preset has key is NOT undefined, it must also be NOT undefined in the corresponding vizContext
711
+ * 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
712
+ *
713
+ * Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
714
+ */
715
+
716
+ function hasCompatibleContexts(vizContext, presetContext) {
717
+ var presetContextKeys = Object.keys(presetContext);
718
+ return presetContextKeys.every(function (contextKey) {
719
+ return presetContext[contextKey] === undefined && vizContext[contextKey] === undefined || presetContext[contextKey] !== undefined && vizContext[contextKey] !== undefined;
720
+ });
721
+ }
722
+ /**
723
+ * Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
724
+ */
725
+
726
+
727
+ function hasCompatibleOptions(vizOptions, presetOptions) {
728
+ var presetOptionKeys = Object.keys(presetOptions);
729
+ return presetOptionKeys.every(function (optionKey) {
730
+ return isDynamicOption(presetOptions[optionKey]) === isDynamicOption(vizOptions[optionKey]);
731
+ });
732
+ }
733
+ /**
734
+ * Evaluates whether there is an initialPreset that fits the current state of vizContext + vizOptions
735
+ * This function ignores extraneous vizOptions or vizContext keys, as they could be outside the scope of what the preset is intended to configure
736
+ *
737
+ * @param {Object} vizContext - the current vizContext definition
738
+ * @param {Object} vizOptions - the current vizOptions definition
739
+ * @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
740
+ */
741
+
742
+
743
+ function getInitialPreset(vizContext, vizOptions, presets) {
744
+ return presets.find(function (preset) {
745
+ var presetContext = lodash_1.get(preset, ['value', 'context'], {});
746
+ var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
747
+ var presetContextKeys = Object.keys(presetContext);
748
+ var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
749
+ // if not, then the preset is invalid in config.ts
750
+
751
+ if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
752
+ return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
753
+ });
754
+ }
755
+
756
+ exports.getInitialPreset = getInitialPreset;
757
+ /**
758
+ * generates number precision values for a Select editor
759
+ *
760
+ * @param {Number} numPrecisionValues - number of integer precision values to generate
761
+ * @returns {{ label: string; value; string }[]} array of { label, value } tuples
762
+ */
763
+
764
+ function generatePrecisionValues(numPrecisionValues) {
765
+ return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
766
+ return {
767
+ label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
768
+ value: i
769
+ };
770
+ });
771
+ }
772
+
773
+ exports.generatePrecisionValues = generatePrecisionValues;
774
+ /**
775
+ * insert layout in layout array, return a new layout array instead of updating the original
776
+ *
777
+ * @param {EditorLayoutConfig[][]} layout - editor layout
778
+ * @param {Number} index - the index to insert layout item(s)
779
+ * @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
780
+ * @returns {EditorLayoutConfig[][]} new editor layout with insertion
781
+ */
782
+
783
+ var insertLayout = function insertLayout(layout, index) {
784
+ for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
785
+ layoutItems[_key - 2] = arguments[_key];
786
+ }
787
+
788
+ return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
789
+ };
790
+
791
+ exports.insertLayout = insertLayout;
792
+
793
+ /***/ }),
794
+
795
+ /***/ 18:
796
+ /***/ (function(module, exports) {
797
+
798
+ module.exports = require("@babel/runtime/helpers/createClass");
799
+
800
+ /***/ }),
801
+
802
+ /***/ 19:
803
+ /***/ (function(module, exports) {
804
+
805
+ module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
806
+
807
+ /***/ }),
808
+
809
+ /***/ 2:
810
+ /***/ (function(module, exports) {
811
+
812
+ module.exports = require("@splunk/ui-utils/i18n");
813
+
814
+ /***/ }),
815
+
816
+ /***/ 210:
817
+ /***/ (function(module, exports, __webpack_require__) {
818
+
819
+ "use strict";
820
+
821
+
822
+ var __createBinding = this && this.__createBinding || (Object.create ? function (o, m, k, k2) {
553
823
  if (k2 === undefined) k2 = k;
554
824
  Object.defineProperty(o, k2, {
555
825
  enumerable: true,
@@ -573,9 +843,9 @@ Object.defineProperty(exports, "__esModule", {
573
843
  });
574
844
  exports.default = void 0;
575
845
 
576
- __exportStar(__webpack_require__(132), exports);
846
+ __exportStar(__webpack_require__(133), exports);
577
847
 
578
- var Markdown_1 = __webpack_require__(132);
848
+ var Markdown_1 = __webpack_require__(133);
579
849
 
580
850
  Object.defineProperty(exports, "default", {
581
851
  enumerable: true,
@@ -586,48 +856,41 @@ Object.defineProperty(exports, "default", {
586
856
 
587
857
  /***/ }),
588
858
 
589
- /***/ 209:
859
+ /***/ 211:
590
860
  /***/ (function(module, exports) {
591
861
 
592
862
  module.exports = require("@splunk/react-ui/Markdown");
593
863
 
594
864
  /***/ }),
595
865
 
596
- /***/ 21:
597
- /***/ (function(module, exports) {
598
-
599
- module.exports = require("@splunk/visualization-context/TimezoneContext");
600
-
601
- /***/ }),
602
-
603
- /***/ 210:
866
+ /***/ 212:
604
867
  /***/ (function(module, exports) {
605
868
 
606
869
  module.exports = require("@splunk/react-ui/Heading");
607
870
 
608
871
  /***/ }),
609
872
 
610
- /***/ 211:
873
+ /***/ 213:
611
874
  /***/ (function(module, exports) {
612
875
 
613
876
  module.exports = require("@splunk/react-ui/List");
614
877
 
615
878
  /***/ }),
616
879
 
617
- /***/ 212:
880
+ /***/ 214:
618
881
  /***/ (function(module, exports) {
619
882
 
620
883
  module.exports = require("@splunk/react-ui/Code");
621
884
 
622
885
  /***/ }),
623
886
 
624
- /***/ 213:
887
+ /***/ 215:
625
888
  /***/ (function(module, exports, __webpack_require__) {
626
889
 
627
890
  "use strict";
628
891
 
629
892
 
630
- var _toConsumableArray = __webpack_require__(9);
893
+ var _toConsumableArray = __webpack_require__(7);
631
894
 
632
895
  Object.defineProperty(exports, "__esModule", {
633
896
  value: true
@@ -635,15 +898,15 @@ Object.defineProperty(exports, "__esModule", {
635
898
 
636
899
  var themes_1 = __webpack_require__(69);
637
900
 
638
- var i18n_1 = __webpack_require__(3);
901
+ var i18n_1 = __webpack_require__(2);
639
902
 
640
- var schemaUtils_1 = __webpack_require__(16);
903
+ var schemaUtils_1 = __webpack_require__(15);
641
904
 
642
905
  var VizBehavior_1 = __webpack_require__(5);
643
906
 
644
- var VizCategory_1 = __webpack_require__(29);
907
+ var VizCategory_1 = __webpack_require__(30);
645
908
 
646
- var configUtils_1 = __webpack_require__(6);
909
+ var configUtils_1 = __webpack_require__(16);
647
910
 
648
911
  var BackgroundColor_1 = __webpack_require__(49);
649
912
 
@@ -783,48 +1046,28 @@ exports.default = configUtils_1.enhanceConfig(config);
783
1046
 
784
1047
  /***/ }),
785
1048
 
786
- /***/ 24:
787
- /***/ (function(module, exports, __webpack_require__) {
1049
+ /***/ 22:
1050
+ /***/ (function(module, exports) {
788
1051
 
789
- "use strict";
1052
+ module.exports = require("@splunk/visualization-context/TimezoneContext");
790
1053
 
1054
+ /***/ }),
791
1055
 
792
- Object.defineProperty(exports, "__esModule", {
793
- value: true
794
- });
795
- exports.pickFieldFromJSONSchema = void 0;
1056
+ /***/ 24:
1057
+ /***/ (function(module, exports) {
796
1058
 
797
- var lodash_1 = __webpack_require__(2);
1059
+ module.exports = require("@splunk/visualizations-shared/hocUtils");
798
1060
 
799
- var pickFieldFromJSONSchema = function pickFieldFromJSONSchema(optionsSchema) {
800
- var fieldName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
801
- return Object.keys(optionsSchema).reduce(function (accum, k) {
802
- if (lodash_1.has(optionsSchema[k], fieldName)) {
803
- accum[k] = optionsSchema[k][fieldName];
804
- } else if (lodash_1.get(optionsSchema, [k, 'type']) === 'object' && lodash_1.has(optionsSchema[k], 'properties')) {
805
- var nestedSchema = exports.pickFieldFromJSONSchema(optionsSchema[k].properties, fieldName);
806
-
807
- if (!lodash_1.isEmpty(nestedSchema)) {
808
- accum[k] = nestedSchema;
809
- }
810
- }
811
-
812
- return accum;
813
- }, {});
814
- };
815
-
816
- exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
817
-
818
- /***/ }),
1061
+ /***/ }),
819
1062
 
820
1063
  /***/ 25:
821
1064
  /***/ (function(module, exports) {
822
1065
 
823
- module.exports = require("@babel/runtime/helpers/typeof");
1066
+ module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
824
1067
 
825
1068
  /***/ }),
826
1069
 
827
- /***/ 26:
1070
+ /***/ 27:
828
1071
  /***/ (function(module, exports, __webpack_require__) {
829
1072
 
830
1073
  "use strict";
@@ -839,13 +1082,13 @@ var React = __webpack_require__(1);
839
1082
 
840
1083
  var T = __webpack_require__(0);
841
1084
 
842
- var lodash_1 = __webpack_require__(2);
1085
+ var lodash_1 = __webpack_require__(3);
843
1086
 
844
- var i18n_1 = __webpack_require__(3);
1087
+ var i18n_1 = __webpack_require__(2);
845
1088
 
846
- var Message_1 = __webpack_require__(11);
1089
+ var Message_1 = __webpack_require__(9);
847
1090
 
848
- var FixedSizeContainer_1 = __webpack_require__(14);
1091
+ var FixedSizeContainer_1 = __webpack_require__(12);
849
1092
  /**
850
1093
  * @method shouldShowIconPlaceholder
851
1094
  * @param {object} dataSources
@@ -916,13 +1159,13 @@ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
916
1159
 
917
1160
  /***/ }),
918
1161
 
919
- /***/ 27:
1162
+ /***/ 28:
920
1163
  /***/ (function(module, exports, __webpack_require__) {
921
1164
 
922
1165
  "use strict";
923
1166
 
924
1167
 
925
- var _defineProperty = __webpack_require__(7);
1168
+ var _defineProperty = __webpack_require__(6);
926
1169
 
927
1170
  Object.defineProperty(exports, "__esModule", {
928
1171
  value: true
@@ -931,9 +1174,9 @@ exports.getSortingParams = exports.SortParamsPropTypes = void 0;
931
1174
 
932
1175
  var T = __webpack_require__(0);
933
1176
 
934
- var lodash_1 = __webpack_require__(2);
1177
+ var lodash_1 = __webpack_require__(3);
935
1178
 
936
- var DataSource_1 = __webpack_require__(37);
1179
+ var DataSource_1 = __webpack_require__(38);
937
1180
 
938
1181
  exports.SortParamsPropTypes = T.shape({
939
1182
  currentSortKey: T.string,
@@ -987,7 +1230,7 @@ exports.getSortingParams = getSortingParams;
987
1230
 
988
1231
  /***/ }),
989
1232
 
990
- /***/ 28:
1233
+ /***/ 29:
991
1234
  /***/ (function(module, exports, __webpack_require__) {
992
1235
 
993
1236
  "use strict";
@@ -1000,7 +1243,7 @@ exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
1000
1243
 
1001
1244
  var T = __webpack_require__(0);
1002
1245
 
1003
- var lodash_1 = __webpack_require__(2);
1246
+ var lodash_1 = __webpack_require__(3);
1004
1247
 
1005
1248
  exports.PaginatorParamsPropTypes = T.shape({
1006
1249
  isPaging: T.bool,
@@ -1052,7 +1295,14 @@ exports.getPaginationParams = getPaginationParams;
1052
1295
 
1053
1296
  /***/ }),
1054
1297
 
1055
- /***/ 29:
1298
+ /***/ 3:
1299
+ /***/ (function(module, exports) {
1300
+
1301
+ module.exports = require("lodash");
1302
+
1303
+ /***/ }),
1304
+
1305
+ /***/ 30:
1056
1306
  /***/ (function(module, exports, __webpack_require__) {
1057
1307
 
1058
1308
  "use strict";
@@ -1081,14 +1331,7 @@ var VizCategory;
1081
1331
 
1082
1332
  /***/ }),
1083
1333
 
1084
- /***/ 3:
1085
- /***/ (function(module, exports) {
1086
-
1087
- module.exports = require("@splunk/ui-utils/i18n");
1088
-
1089
- /***/ }),
1090
-
1091
- /***/ 30:
1334
+ /***/ 31:
1092
1335
  /***/ (function(module, exports, __webpack_require__) {
1093
1336
 
1094
1337
  "use strict";
@@ -1100,39 +1343,39 @@ Object.defineProperty(exports, "__esModule", {
1100
1343
 
1101
1344
  var React = __webpack_require__(1);
1102
1345
 
1103
- var lodash_1 = __webpack_require__(2);
1346
+ var lodash_1 = __webpack_require__(3);
1104
1347
 
1105
- var getSettingsFromThemedProps_1 = __webpack_require__(31);
1348
+ var getSettingsFromThemedProps_1 = __webpack_require__(32);
1106
1349
 
1107
- var Options_1 = __webpack_require__(32);
1350
+ var Options_1 = __webpack_require__(33);
1108
1351
 
1109
- var SanitizeProps_1 = __webpack_require__(33);
1352
+ var SanitizeProps_1 = __webpack_require__(34);
1110
1353
 
1111
- var TimezoneContext_1 = __webpack_require__(21);
1354
+ var TimezoneContext_1 = __webpack_require__(22);
1112
1355
 
1113
- var moment_1 = __webpack_require__(34);
1356
+ var moment_1 = __webpack_require__(35);
1114
1357
 
1115
1358
  var styled_components_1 = __webpack_require__(4);
1116
1359
 
1117
- var SplunkVisualization_1 = __webpack_require__(35);
1360
+ var hocUtils_1 = __webpack_require__(24);
1118
1361
 
1119
- var VizBehavior_1 = __webpack_require__(5);
1362
+ var JSONSchemaUtils_1 = __webpack_require__(25);
1120
1363
 
1121
- var getSorting_1 = __webpack_require__(27);
1364
+ var SplunkVisualization_1 = __webpack_require__(36);
1122
1365
 
1123
- var getPagination_1 = __webpack_require__(28);
1366
+ var VizBehavior_1 = __webpack_require__(5);
1124
1367
 
1125
- var useDeepMemo_1 = __webpack_require__(38);
1368
+ var getSorting_1 = __webpack_require__(28);
1126
1369
 
1127
- var JSONSchemaUtils_1 = __webpack_require__(24);
1370
+ var getPagination_1 = __webpack_require__(29);
1128
1371
 
1129
- var MissingPropsMessage_1 = __webpack_require__(39);
1372
+ var useDeepMemo_1 = __webpack_require__(39);
1130
1373
 
1131
- var withEditModeCover_1 = __webpack_require__(40);
1374
+ var MissingPropsMessage_1 = __webpack_require__(40);
1132
1375
 
1133
- var withPlaceholder_1 = __webpack_require__(42);
1376
+ var withEditModeCover_1 = __webpack_require__(41);
1134
1377
 
1135
- var hocUtils_1 = __webpack_require__(8);
1378
+ var withPlaceholder_1 = __webpack_require__(42);
1136
1379
  /**
1137
1380
  * hoc that wraps a pure react visualization in a Dashboard visualization
1138
1381
  * @param {DashboardVizOpts} opts
@@ -1334,41 +1577,41 @@ exports.default = withDashboardViz;
1334
1577
 
1335
1578
  /***/ }),
1336
1579
 
1337
- /***/ 31:
1580
+ /***/ 32:
1338
1581
  /***/ (function(module, exports) {
1339
1582
 
1340
1583
  module.exports = require("@splunk/themes/getSettingsFromThemedProps");
1341
1584
 
1342
1585
  /***/ }),
1343
1586
 
1344
- /***/ 32:
1587
+ /***/ 33:
1345
1588
  /***/ (function(module, exports) {
1346
1589
 
1347
1590
  module.exports = require("@splunk/visualization-encoding/Options");
1348
1591
 
1349
1592
  /***/ }),
1350
1593
 
1351
- /***/ 33:
1594
+ /***/ 34:
1352
1595
  /***/ (function(module, exports) {
1353
1596
 
1354
1597
  module.exports = require("@splunk/visualizations-shared/SanitizeProps");
1355
1598
 
1356
1599
  /***/ }),
1357
1600
 
1358
- /***/ 34:
1601
+ /***/ 35:
1359
1602
  /***/ (function(module, exports) {
1360
1603
 
1361
1604
  module.exports = require("@splunk/moment");
1362
1605
 
1363
1606
  /***/ }),
1364
1607
 
1365
- /***/ 35:
1608
+ /***/ 36:
1366
1609
  /***/ (function(module, exports, __webpack_require__) {
1367
1610
 
1368
1611
  "use strict";
1369
1612
 
1370
1613
 
1371
- var _classCallCheck = __webpack_require__(12);
1614
+ var _classCallCheck = __webpack_require__(10);
1372
1615
 
1373
1616
  Object.defineProperty(exports, "__esModule", {
1374
1617
  value: true
@@ -1378,9 +1621,9 @@ exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
1378
1621
 
1379
1622
  var T = __webpack_require__(0);
1380
1623
 
1381
- var lodash_1 = __webpack_require__(2);
1624
+ var lodash_1 = __webpack_require__(3);
1382
1625
 
1383
- var VizActionHandler_1 = __webpack_require__(36); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
1626
+ var VizActionHandler_1 = __webpack_require__(37); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
1384
1627
 
1385
1628
 
1386
1629
  exports.INITIAL_WIDTH = 250;
@@ -1514,15 +1757,15 @@ exports.default = SplunkVisualization;
1514
1757
 
1515
1758
  /***/ }),
1516
1759
 
1517
- /***/ 36:
1760
+ /***/ 37:
1518
1761
  /***/ (function(module, exports, __webpack_require__) {
1519
1762
 
1520
1763
  "use strict";
1521
1764
 
1522
1765
 
1523
- var _classCallCheck = __webpack_require__(12);
1766
+ var _classCallCheck = __webpack_require__(10);
1524
1767
 
1525
- var _createClass = __webpack_require__(17);
1768
+ var _createClass = __webpack_require__(18);
1526
1769
 
1527
1770
  Object.defineProperty(exports, "__esModule", {
1528
1771
  value: true
@@ -1552,7 +1795,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
1552
1795
 
1553
1796
  /***/ }),
1554
1797
 
1555
- /***/ 37:
1798
+ /***/ 38:
1556
1799
  /***/ (function(module, exports, __webpack_require__) {
1557
1800
 
1558
1801
  "use strict";
@@ -1566,7 +1809,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
1566
1809
 
1567
1810
  /***/ }),
1568
1811
 
1569
- /***/ 38:
1812
+ /***/ 39:
1570
1813
  /***/ (function(module, exports, __webpack_require__) {
1571
1814
 
1572
1815
  "use strict";
@@ -1579,7 +1822,7 @@ exports.useDeepMemo = void 0;
1579
1822
 
1580
1823
  var react_1 = __webpack_require__(1);
1581
1824
 
1582
- var lodash_1 = __webpack_require__(2);
1825
+ var lodash_1 = __webpack_require__(3);
1583
1826
  /**
1584
1827
  * This hook evaluates and stores the result of a passed function and only
1585
1828
  * re-evaluates the function when passed dependencies change.
@@ -1612,7 +1855,14 @@ exports.useDeepMemo = useDeepMemo;
1612
1855
 
1613
1856
  /***/ }),
1614
1857
 
1615
- /***/ 39:
1858
+ /***/ 4:
1859
+ /***/ (function(module, exports) {
1860
+
1861
+ module.exports = require("styled-components");
1862
+
1863
+ /***/ }),
1864
+
1865
+ /***/ 40:
1616
1866
  /***/ (function(module, exports, __webpack_require__) {
1617
1867
 
1618
1868
  "use strict";
@@ -1627,11 +1877,11 @@ var React = __webpack_require__(1);
1627
1877
 
1628
1878
  var T = __webpack_require__(0);
1629
1879
 
1630
- var i18n_1 = __webpack_require__(3);
1880
+ var i18n_1 = __webpack_require__(2);
1631
1881
 
1632
- var Message_1 = __webpack_require__(11);
1882
+ var Message_1 = __webpack_require__(9);
1633
1883
 
1634
- var FixedSizeContainer_1 = __webpack_require__(14);
1884
+ var FixedSizeContainer_1 = __webpack_require__(12);
1635
1885
  /**
1636
1886
  * @method isMissing
1637
1887
  * @param {any} v
@@ -1693,14 +1943,7 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
1693
1943
 
1694
1944
  /***/ }),
1695
1945
 
1696
- /***/ 4:
1697
- /***/ (function(module, exports) {
1698
-
1699
- module.exports = require("styled-components");
1700
-
1701
- /***/ }),
1702
-
1703
- /***/ 40:
1946
+ /***/ 41:
1704
1947
  /***/ (function(module, exports, __webpack_require__) {
1705
1948
 
1706
1949
  "use strict";
@@ -1714,14 +1957,14 @@ var React = __webpack_require__(1);
1714
1957
 
1715
1958
  var styled_components_1 = __webpack_require__(4);
1716
1959
 
1717
- var hocUtils_1 = __webpack_require__(8);
1960
+ var hocUtils_1 = __webpack_require__(13);
1718
1961
 
1719
1962
  var Cover = styled_components_1.default.div.withConfig({
1720
1963
  displayName: "withEditModeCover__Cover",
1721
1964
  componentId: "sc-1gsbnxb-0"
1722
1965
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1723
1966
  var Blocker = styled_components_1.default.div.attrs({
1724
- 'data-splunk-visualization-version': "25.0.1 - de10ad954"
1967
+ 'data-splunk-visualization-version': "25.1.0 - 812a9a4d8"
1725
1968
  }).withConfig({
1726
1969
  displayName: "withEditModeCover__Blocker",
1727
1970
  componentId: "sc-1gsbnxb-1"
@@ -1753,13 +1996,6 @@ exports.default = withEditModeCover;
1753
1996
 
1754
1997
  /***/ }),
1755
1998
 
1756
- /***/ 41:
1757
- /***/ (function(module, exports) {
1758
-
1759
- module.exports = require("@splunk/visualizations-shared/mapUtils");
1760
-
1761
- /***/ }),
1762
-
1763
1999
  /***/ 42:
1764
2000
  /***/ (function(module, exports, __webpack_require__) {
1765
2001
 
@@ -1772,15 +2008,15 @@ Object.defineProperty(exports, "__esModule", {
1772
2008
 
1773
2009
  var React = __webpack_require__(1);
1774
2010
 
1775
- var colorUtils_1 = __webpack_require__(13);
2011
+ var colorUtils_1 = __webpack_require__(11);
1776
2012
 
1777
- var variables_1 = __webpack_require__(10);
2013
+ var variables_1 = __webpack_require__(8);
1778
2014
 
1779
- var IconPlaceholder_1 = __webpack_require__(26);
2015
+ var IconPlaceholder_1 = __webpack_require__(27);
1780
2016
 
1781
2017
  var VizBehavior_1 = __webpack_require__(5);
1782
2018
 
1783
- var hocUtils_1 = __webpack_require__(8);
2019
+ var hocUtils_1 = __webpack_require__(13);
1784
2020
 
1785
2021
  var withPlaceholder = function withPlaceholder(Visualization) {
1786
2022
  var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
@@ -1835,7 +2071,7 @@ Object.defineProperty(exports, "__esModule", {
1835
2071
  value: true
1836
2072
  });
1837
2073
 
1838
- var i18n_1 = __webpack_require__(3);
2074
+ var i18n_1 = __webpack_require__(2);
1839
2075
 
1840
2076
  var background = function background(_ref) {
1841
2077
  var label = _ref.label,
@@ -1895,239 +2131,9 @@ var VizBehavior;
1895
2131
  /***/ }),
1896
2132
 
1897
2133
  /***/ 6:
1898
- /***/ (function(module, exports, __webpack_require__) {
1899
-
1900
- "use strict";
1901
-
1902
-
1903
- var _toConsumableArray = __webpack_require__(9);
1904
-
1905
- var _defineProperty = __webpack_require__(7);
1906
-
1907
- var __rest = this && this.__rest || function (s, e) {
1908
- var t = {};
1909
-
1910
- for (var p in s) {
1911
- if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
1912
- }
1913
-
1914
- if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
1915
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
1916
- }
1917
- return t;
1918
- };
1919
-
1920
- Object.defineProperty(exports, "__esModule", {
1921
- value: true
1922
- });
1923
- exports.insertLayout = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOption = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
1924
-
1925
- var lodash_1 = __webpack_require__(2);
1926
-
1927
- var schemaUtils_1 = __webpack_require__(16);
1928
-
1929
- var VizBehavior_1 = __webpack_require__(5);
1930
-
1931
- var dynamicOptionsDSLType = {
1932
- type: 'string',
1933
- pattern: schemaUtils_1.DYNAMIC_OPTIONS_DSL_PATTERN
1934
- };
1935
- /**
1936
- * Helper function to extend an options schema with dynamic options DSL
1937
- * @param optionsSchema a visualization's options schema
1938
- * @returns an updated options schema that additionally allows strings starting with > for each option
1939
- */
1940
-
1941
- function enhanceOptionsSchemaWithDynamicOptions(optionsSchema) {
1942
- var enhancedOptionsSchema = {};
1943
- Object.keys(optionsSchema).forEach(function (key) {
1944
- var _a = optionsSchema[key],
1945
- title = _a.title,
1946
- description = _a.description,
1947
- readOnly = _a.readOnly,
1948
- writeOnly = _a.writeOnly,
1949
- examples = _a.examples,
1950
- defaultValue = _a.default,
1951
- type = _a.type,
1952
- properties = _a.properties,
1953
- patternProperties = _a.patternProperties,
1954
- remainingSchemaEntry = __rest(_a, ["title", "description", "readOnly", "writeOnly", "examples", "default", "type", "properties", "patternProperties"]);
1955
-
1956
- var annotations = Object.assign(Object.assign(Object.assign(Object.assign(Object.assign(Object.assign({}, title !== undefined && {
1957
- title: title
1958
- }), description !== undefined && {
1959
- description: description
1960
- }), readOnly !== undefined && {
1961
- readOnly: readOnly
1962
- }), writeOnly !== undefined && {
1963
- writeOnly: writeOnly
1964
- }), examples !== undefined && {
1965
- examples: examples
1966
- }), defaultValue !== undefined && {
1967
- default: defaultValue
1968
- });
1969
-
1970
- if (type === 'object') {
1971
- enhancedOptionsSchema[key] = Object.assign(Object.assign(Object.assign(Object.assign({}, remainingSchemaEntry), annotations), {
1972
- type: type
1973
- }), properties && {
1974
- properties: enhanceOptionsSchemaWithDynamicOptions(properties)
1975
- });
1976
-
1977
- if (patternProperties) {
1978
- var enhancedPatternProperties = {};
1979
- Object.keys(patternProperties).forEach(function (opt) {
1980
- enhancedPatternProperties = Object.assign(Object.assign({}, enhancedPatternProperties), enhanceOptionsSchemaWithDynamicOptions(_defineProperty({}, opt, patternProperties[opt])));
1981
- });
1982
- enhancedOptionsSchema[key].patternProperties = enhancedPatternProperties;
1983
- }
1984
- } else {
1985
- enhancedOptionsSchema[key] = Object.assign(Object.assign({}, annotations), {
1986
- anyOf: [Object.assign(Object.assign({}, type !== undefined && {
1987
- type: type
1988
- }), remainingSchemaEntry), dynamicOptionsDSLType]
1989
- });
1990
- }
1991
- });
1992
- return enhancedOptionsSchema;
1993
- }
1994
-
1995
- exports.enhanceOptionsSchemaWithDynamicOptions = enhanceOptionsSchemaWithDynamicOptions;
1996
- /**
1997
- * Helper function to enhance a Visualization Config as needed based on behaviors specified in supports block
1998
- * this function also collapse all editor panels
1999
- * @param vizConfig a Visualization Config
2000
- * @returns an enhanced Visualization Config containing updated config entries based on behaviors it supports
2001
- * and containing `open: false` for all editor panels in editorConfig
2002
- */
2003
-
2004
- function enhanceConfig(vizConfig) {
2005
- var enhancedConfig = vizConfig;
2006
-
2007
- if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.DYNAMIC_OPTIONS) !== -1) {
2008
- enhancedConfig.optionsSchema = enhanceOptionsSchemaWithDynamicOptions(vizConfig.optionsSchema);
2009
- }
2010
-
2011
- enhancedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
2012
- return Object.assign(Object.assign({}, config), {
2013
- open: false
2014
- });
2015
- });
2016
- return enhancedConfig;
2017
- }
2018
-
2019
- exports.enhanceConfig = enhanceConfig;
2020
- /**
2021
- * Helper function to uncollapse all editor panels by adding `open: true` to the editorConfig
2022
- * Created for editor unit tests
2023
- * @param vizConfig a Visualization Config
2024
- * @returns a Visualization Config containing `open: true` for all editor panels in editorConfig
2025
- */
2026
-
2027
- function uncollapseEditorConfig(vizConfig) {
2028
- var editorPanelUncollapsedConfig = vizConfig;
2029
- editorPanelUncollapsedConfig.editorConfig = vizConfig.editorConfig.map(function (config) {
2030
- return Object.assign(Object.assign({}, config), {
2031
- open: true
2032
- });
2033
- });
2034
- return editorPanelUncollapsedConfig;
2035
- }
2036
-
2037
- exports.uncollapseEditorConfig = uncollapseEditorConfig;
2038
-
2039
- function isDynamicOption(option) {
2040
- return option && typeof option === 'string' && option.trim().startsWith('>') || false;
2041
- }
2042
-
2043
- exports.isDynamicOption = isDynamicOption; // private helpers to improve readability of getInitialPreset
2044
- // this shouldn't be tested since this util isn't something that we expect to use outside of getInitialPreset
2045
-
2046
- /**
2047
- * this checks to make sure that all values within vizContext are compatible with the given preset's context to determine the initialPreset
2048
- * 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
2049
- * the inverse is true; if a preset has key is NOT undefined, it must also be NOT undefined in the corresponding vizContext
2050
- * 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
2051
- *
2052
- * Since the presetConfigs have explicit undefined keys to override the existing config, we need to explicitly check the undefined values
2053
- */
2054
-
2055
- function hasCompatibleContexts(vizContext, presetContext) {
2056
- var presetContextKeys = Object.keys(presetContext);
2057
- return presetContextKeys.every(function (contextKey) {
2058
- return presetContext[contextKey] === undefined && vizContext[contextKey] === undefined || presetContext[contextKey] !== undefined && vizContext[contextKey] !== undefined;
2059
- });
2060
- }
2061
- /**
2062
- * Checks to make sure that dynamic (non-dynamic) options in a given preset are also dynamic (non-dynamic) in the vizOptions
2063
- */
2064
-
2065
-
2066
- function hasCompatibleOptions(vizOptions, presetOptions) {
2067
- var presetOptionKeys = Object.keys(presetOptions);
2068
- return presetOptionKeys.every(function (optionKey) {
2069
- return isDynamicOption(presetOptions[optionKey]) === isDynamicOption(vizOptions[optionKey]);
2070
- });
2071
- }
2072
- /**
2073
- * Evaluates whether there is an initialPreset that fits the current state of vizContext + vizOptions
2074
- * This function ignores extraneous vizOptions or vizContext keys, as they could be outside the scope of what the preset is intended to configure
2075
- *
2076
- * @param {Object} vizContext - the current vizContext definition
2077
- * @param {Object} vizOptions - the current vizOptions definition
2078
- * @param {PresetEntry[]} presets - the list of presets, one of which can be considered an initialPreset
2079
- */
2080
-
2081
-
2082
- function getInitialPreset(vizContext, vizOptions, presets) {
2083
- return presets.find(function (preset) {
2084
- var presetContext = lodash_1.get(preset, ['value', 'context'], {});
2085
- var presetOptions = lodash_1.get(preset, ['value', 'options'], {});
2086
- var presetContextKeys = Object.keys(presetContext);
2087
- var presetOptionKeys = Object.keys(presetOptions); // all presets have to explicitly specify which options to reset (i.e. need explicitly undefined keys)
2088
- // if not, then the preset is invalid in config.ts
2089
-
2090
- if (presetContextKeys.length === 0 || presetOptionKeys.length === 0) return false;
2091
- return hasCompatibleContexts(vizContext, presetContext) && hasCompatibleOptions(vizOptions, presetOptions);
2092
- });
2093
- }
2094
-
2095
- exports.getInitialPreset = getInitialPreset;
2096
- /**
2097
- * generates number precision values for a Select editor
2098
- *
2099
- * @param {Number} numPrecisionValues - number of integer precision values to generate
2100
- * @returns {{ label: string; value; string }[]} array of { label, value } tuples
2101
- */
2102
-
2103
- function generatePrecisionValues(numPrecisionValues) {
2104
- return lodash_1.range(0, numPrecisionValues + 1).map(function (i) {
2105
- return {
2106
- label: "".concat(i, " (0").concat(i > 0 ? '.' : '').concat('0'.repeat(i), ")"),
2107
- value: i
2108
- };
2109
- });
2110
- }
2111
-
2112
- exports.generatePrecisionValues = generatePrecisionValues;
2113
- /**
2114
- * insert layout in layout array, return a new layout array instead of updating the original
2115
- *
2116
- * @param {EditorLayoutConfig[][]} layout - editor layout
2117
- * @param {Number} index - the index to insert layout item(s)
2118
- * @param {EditorLayoutConfig[][]} layoutItems - the item(s) to insert
2119
- * @returns {EditorLayoutConfig[][]} new editor layout with insertion
2120
- */
2121
-
2122
- var insertLayout = function insertLayout(layout, index) {
2123
- for (var _len = arguments.length, layoutItems = new Array(_len > 2 ? _len - 2 : 0), _key = 2; _key < _len; _key++) {
2124
- layoutItems[_key - 2] = arguments[_key];
2125
- }
2126
-
2127
- return [].concat(_toConsumableArray(layout.slice(0, index)), layoutItems, _toConsumableArray(layout.slice(index)));
2128
- };
2134
+ /***/ (function(module, exports) {
2129
2135
 
2130
- exports.insertLayout = insertLayout;
2136
+ module.exports = require("@babel/runtime/helpers/defineProperty");
2131
2137
 
2132
2138
  /***/ }),
2133
2139
 
@@ -2141,94 +2147,14 @@ module.exports = require("@splunk/themes");
2141
2147
  /***/ 7:
2142
2148
  /***/ (function(module, exports) {
2143
2149
 
2144
- module.exports = require("@babel/runtime/helpers/defineProperty");
2150
+ module.exports = require("@babel/runtime/helpers/toConsumableArray");
2145
2151
 
2146
2152
  /***/ }),
2147
2153
 
2148
2154
  /***/ 8:
2149
- /***/ (function(module, exports, __webpack_require__) {
2150
-
2151
- "use strict";
2152
-
2153
-
2154
- var _typeof = __webpack_require__(25);
2155
-
2156
- Object.defineProperty(exports, "__esModule", {
2157
- value: true
2158
- });
2159
- exports.deepMergeWithArrayPrimitiveOverrides = exports.extendStaticWrapperProps = void 0;
2160
-
2161
- var lodash_1 = __webpack_require__(2);
2162
-
2163
- var mapUtils_1 = __webpack_require__(41);
2164
- /**
2165
- * @method extendStaticWrapperProps
2166
- * @param {Object} props
2167
- * @param {DashboardVizType} props.Wrapper
2168
- * @param {DashboardVizType} props.Visualization
2169
- */
2170
-
2171
-
2172
- var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
2173
- var Wrapper = _ref.Wrapper,
2174
- Visualization = _ref.Visualization;
2175
- var extendProperties = ['propTypes', 'defaultProps', 'config'];
2176
- extendProperties.forEach(function (prop) {
2177
- if (Visualization[prop]) {
2178
- // eslint-disable-next-line no-param-reassign
2179
- Wrapper[prop] = Visualization[prop];
2180
- }
2181
- });
2182
- };
2183
-
2184
- exports.extendStaticWrapperProps = extendStaticWrapperProps;
2185
- /**
2186
- * helper to deeply merge objects while preserving arrays in earlier source objects
2187
- * 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
2188
- * 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).
2189
- * 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
2190
- * 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.
2191
- *
2192
- * @method deepMergeWithArrayPrimitiveOverrides
2193
- * @param {Object} initial - target object to merge values into
2194
- * @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
2195
- *
2196
- * @returns {Object}
2197
- */
2198
-
2199
- var deepMergeWithArrayPrimitiveOverrides = function deepMergeWithArrayPrimitiveOverrides(initial) {
2200
- var clone = lodash_1.cloneDeep(initial);
2201
-
2202
- for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
2203
- sources[_key - 1] = arguments[_key];
2204
- }
2205
-
2206
- sources.forEach(function (sourceToApply) {
2207
- Object.keys(sourceToApply).forEach(function (sourceKey) {
2208
- if (!Object.prototype.hasOwnProperty.call(clone, sourceKey)) {
2209
- clone[sourceKey] = lodash_1.cloneDeep(sourceToApply[sourceKey]);
2210
- }
2211
-
2212
- if (clone[sourceKey] && _typeof(clone[sourceKey]) === 'object' && !Array.isArray(clone[sourceKey]) && _typeof(sourceToApply[sourceKey]) === 'object') {
2213
- clone[sourceKey] = exports.deepMergeWithArrayPrimitiveOverrides(clone[sourceKey], sourceToApply[sourceKey]);
2214
- } else if (Array.isArray(clone[sourceKey]) && _typeof(clone[sourceKey][0]) === 'object' && !Array.isArray(clone[sourceKey][0])) {
2215
- // If option is an array of objects
2216
- for (var i = 0; i < clone[sourceKey].length; i += 1) {
2217
- if (_typeof(clone[sourceKey][i]) === 'object') {
2218
- var closestMatchIdx = mapUtils_1.findClosestMatchFromDefaultList(sourceToApply[sourceKey], clone[sourceKey][i]);
2219
-
2220
- if (closestMatchIdx > -1) {
2221
- clone[sourceKey][i] = exports.deepMergeWithArrayPrimitiveOverrides(clone[sourceKey][i], sourceToApply[sourceKey][closestMatchIdx]);
2222
- }
2223
- }
2224
- }
2225
- }
2226
- });
2227
- });
2228
- return clone;
2229
- };
2155
+ /***/ (function(module, exports) {
2230
2156
 
2231
- exports.deepMergeWithArrayPrimitiveOverrides = deepMergeWithArrayPrimitiveOverrides;
2157
+ module.exports = require("@splunk/themes/variables");
2232
2158
 
2233
2159
  /***/ }),
2234
2160
 
@@ -2242,7 +2168,7 @@ module.exports = require("@babel/runtime/helpers/taggedTemplateLiteral");
2242
2168
  /***/ 9:
2243
2169
  /***/ (function(module, exports) {
2244
2170
 
2245
- module.exports = require("@babel/runtime/helpers/toConsumableArray");
2171
+ module.exports = require("@splunk/visualizations-shared/Message");
2246
2172
 
2247
2173
  /***/ })
2248
2174