@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/Bar.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 = 150);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 151);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ([
@@ -106,13 +106,13 @@ module.exports = require("react");
106
106
  /* 2 */
107
107
  /***/ (function(module, exports) {
108
108
 
109
- module.exports = require("lodash");
109
+ module.exports = require("@splunk/ui-utils/i18n");
110
110
 
111
111
  /***/ }),
112
112
  /* 3 */
113
113
  /***/ (function(module, exports) {
114
114
 
115
- module.exports = require("@splunk/ui-utils/i18n");
115
+ module.exports = require("lodash");
116
116
 
117
117
  /***/ }),
118
118
  /* 4 */
@@ -159,14 +159,190 @@ var VizBehavior;
159
159
 
160
160
  /***/ }),
161
161
  /* 6 */
162
+ /***/ (function(module, exports) {
163
+
164
+ module.exports = require("@babel/runtime/helpers/defineProperty");
165
+
166
+ /***/ }),
167
+ /* 7 */
168
+ /***/ (function(module, exports) {
169
+
170
+ module.exports = require("@babel/runtime/helpers/toConsumableArray");
171
+
172
+ /***/ }),
173
+ /* 8 */
174
+ /***/ (function(module, exports) {
175
+
176
+ module.exports = require("@splunk/themes/variables");
177
+
178
+ /***/ }),
179
+ /* 9 */
180
+ /***/ (function(module, exports) {
181
+
182
+ module.exports = require("@splunk/visualizations-shared/Message");
183
+
184
+ /***/ }),
185
+ /* 10 */
186
+ /***/ (function(module, exports) {
187
+
188
+ module.exports = require("@babel/runtime/helpers/classCallCheck");
189
+
190
+ /***/ }),
191
+ /* 11 */
192
+ /***/ (function(module, exports) {
193
+
194
+ module.exports = require("@splunk/visualizations-shared/colorUtils");
195
+
196
+ /***/ }),
197
+ /* 12 */
198
+ /***/ (function(module, exports, __webpack_require__) {
199
+
200
+ "use strict";
201
+
202
+
203
+ Object.defineProperty(exports, "__esModule", {
204
+ value: true
205
+ });
206
+
207
+ var React = __webpack_require__(1);
208
+
209
+ var styled_components_1 = __webpack_require__(4);
210
+
211
+ var SizeAwareWrapper_1 = __webpack_require__(19);
212
+
213
+ var style_1 = __webpack_require__(14);
214
+
215
+ var colorUtils_1 = __webpack_require__(11);
216
+
217
+ var Item = styled_components_1.default.div.attrs(function (_ref) {
218
+ var width = _ref.width;
219
+ return {
220
+ style: {
221
+ width: style_1.toPx(width)
222
+ }
223
+ };
224
+ }).withConfig({
225
+ displayName: "FixedSizeContainer__Item",
226
+ componentId: "sc-1yhgpod-0"
227
+ })(["position:relative;background-color:", "};"], function (props) {
228
+ return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
229
+ }); // Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
230
+
231
+ var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
232
+ var width = _ref2.width,
233
+ height = _ref2.height;
234
+ return {
235
+ style: Object.assign(Object.assign({}, width && {
236
+ width: style_1.toPx(width)
237
+ }), height && {
238
+ height: style_1.toPx(height)
239
+ })
240
+ };
241
+ }).withConfig({
242
+ displayName: "FixedSizeContainer__FixSizeItem",
243
+ componentId: "sc-1yhgpod-1"
244
+ })(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
245
+ return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
246
+ });
247
+ var ItemContent = styled_components_1.default.div.withConfig({
248
+ displayName: "FixedSizeContainer__ItemContent",
249
+ componentId: "sc-1yhgpod-2"
250
+ })(["position:relative;min-height:100px;width:100%;"]);
251
+ var FixSizeItemContent = styled_components_1.default.div.withConfig({
252
+ displayName: "FixedSizeContainer__FixSizeItemContent",
253
+ componentId: "sc-1yhgpod-3"
254
+ })(["min-height:0px;flex:1;position:relative;box-sizing:border-box;"]);
255
+
256
+ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
257
+ var FixedSizeContainer = function FixedSizeContainer(props) {
258
+ var width = props.width,
259
+ height = props.height,
260
+ backgroundColor = props.backgroundColor;
261
+
262
+ if (!height) {
263
+ return React.createElement(Item, {
264
+ "data-test": "item",
265
+ width: width,
266
+ backgroundColor: backgroundColor
267
+ }, React.createElement(ItemContent, null, React.createElement(Viz, Object.assign({}, props))));
268
+ }
269
+
270
+ return React.createElement(FixSizeItem, {
271
+ "data-test": "fix-size-item",
272
+ "data-splunk-visualization-version": "25.1.0 - 812a9a4d8",
273
+ width: width,
274
+ height: height,
275
+ backgroundColor: backgroundColor
276
+ }, React.createElement(FixSizeItemContent, null, React.createElement(SizeAwareWrapper_1.default, null, function (_ref3) {
277
+ var newWidth = _ref3.width,
278
+ newHeight = _ref3.height;
279
+ return React.createElement(Viz, Object.assign({}, props, {
280
+ width: newWidth,
281
+ height: newHeight
282
+ }));
283
+ })));
284
+ };
285
+
286
+ FixedSizeContainer.displayName = 'withFixedSizeContainer';
287
+ return FixedSizeContainer;
288
+ };
289
+
290
+ exports.default = withFixedSizeContainer;
291
+
292
+ /***/ }),
293
+ /* 13 */
162
294
  /***/ (function(module, exports, __webpack_require__) {
163
295
 
164
296
  "use strict";
165
297
 
166
298
 
167
- var _toConsumableArray = __webpack_require__(9);
299
+ Object.defineProperty(exports, "__esModule", {
300
+ value: true
301
+ });
302
+ exports.extendStaticWrapperProps = void 0;
303
+ /**
304
+ * @method extendStaticWrapperProps
305
+ * @param {Object} props
306
+ * @param {DashboardVizType} props.Wrapper
307
+ * @param {DashboardVizType} props.Visualization
308
+ */
168
309
 
169
- var _defineProperty = __webpack_require__(7);
310
+ var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
311
+ var Wrapper = _ref.Wrapper,
312
+ Visualization = _ref.Visualization;
313
+ var extendProperties = ['propTypes', 'defaultProps', 'config'];
314
+ extendProperties.forEach(function (prop) {
315
+ if (Visualization[prop]) {
316
+ // eslint-disable-next-line no-param-reassign
317
+ Wrapper[prop] = Visualization[prop];
318
+ }
319
+ });
320
+ };
321
+
322
+ exports.extendStaticWrapperProps = extendStaticWrapperProps;
323
+
324
+ /***/ }),
325
+ /* 14 */
326
+ /***/ (function(module, exports) {
327
+
328
+ module.exports = require("@splunk/visualizations-shared/style");
329
+
330
+ /***/ }),
331
+ /* 15 */
332
+ /***/ (function(module, exports) {
333
+
334
+ module.exports = require("@splunk/visualizations-shared/schemaUtils");
335
+
336
+ /***/ }),
337
+ /* 16 */
338
+ /***/ (function(module, exports, __webpack_require__) {
339
+
340
+ "use strict";
341
+
342
+
343
+ var _toConsumableArray = __webpack_require__(7);
344
+
345
+ var _defineProperty = __webpack_require__(6);
170
346
 
171
347
  var __rest = this && this.__rest || function (s, e) {
172
348
  var t = {};
@@ -184,11 +360,11 @@ var __rest = this && this.__rest || function (s, e) {
184
360
  Object.defineProperty(exports, "__esModule", {
185
361
  value: true
186
362
  });
187
- exports.insertLayout = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOption = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
363
+ exports.insertLayout = exports.isDynamicOption = exports.uncollapseEditorConfig = exports.generatePrecisionValues = exports.getInitialPreset = exports.enhanceOptionsSchemaWithDynamicOptions = exports.enhanceConfig = void 0;
188
364
 
189
- var lodash_1 = __webpack_require__(2);
365
+ var lodash_1 = __webpack_require__(3);
190
366
 
191
- var schemaUtils_1 = __webpack_require__(16);
367
+ var schemaUtils_1 = __webpack_require__(15);
192
368
 
193
369
  var VizBehavior_1 = __webpack_require__(5);
194
370
 
@@ -394,308 +570,52 @@ var insertLayout = function insertLayout(layout, index) {
394
570
  exports.insertLayout = insertLayout;
395
571
 
396
572
  /***/ }),
397
- /* 7 */
398
- /***/ (function(module, exports) {
399
-
400
- module.exports = require("@babel/runtime/helpers/defineProperty");
401
-
402
- /***/ }),
403
- /* 8 */
404
- /***/ (function(module, exports, __webpack_require__) {
405
-
406
- "use strict";
407
-
408
-
409
- var _typeof = __webpack_require__(25);
410
-
411
- Object.defineProperty(exports, "__esModule", {
412
- value: true
413
- });
414
- exports.deepMergeWithArrayPrimitiveOverrides = exports.extendStaticWrapperProps = void 0;
415
-
416
- var lodash_1 = __webpack_require__(2);
417
-
418
- var mapUtils_1 = __webpack_require__(41);
419
- /**
420
- * @method extendStaticWrapperProps
421
- * @param {Object} props
422
- * @param {DashboardVizType} props.Wrapper
423
- * @param {DashboardVizType} props.Visualization
424
- */
425
-
426
-
427
- var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
428
- var Wrapper = _ref.Wrapper,
429
- Visualization = _ref.Visualization;
430
- var extendProperties = ['propTypes', 'defaultProps', 'config'];
431
- extendProperties.forEach(function (prop) {
432
- if (Visualization[prop]) {
433
- // eslint-disable-next-line no-param-reassign
434
- Wrapper[prop] = Visualization[prop];
435
- }
436
- });
437
- };
438
-
439
- exports.extendStaticWrapperProps = extendStaticWrapperProps;
440
- /**
441
- * helper to deeply merge objects while preserving arrays in earlier source objects
442
- * 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
443
- * 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).
444
- * 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
445
- * 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.
446
- *
447
- * @method deepMergeWithArrayPrimitiveOverrides
448
- * @param {Object} initial - target object to merge values into
449
- * @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
450
- *
451
- * @returns {Object}
452
- */
453
-
454
- var deepMergeWithArrayPrimitiveOverrides = function deepMergeWithArrayPrimitiveOverrides(initial) {
455
- var clone = lodash_1.cloneDeep(initial);
456
-
457
- for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
458
- sources[_key - 1] = arguments[_key];
459
- }
460
-
461
- sources.forEach(function (sourceToApply) {
462
- Object.keys(sourceToApply).forEach(function (sourceKey) {
463
- if (!Object.prototype.hasOwnProperty.call(clone, sourceKey)) {
464
- clone[sourceKey] = lodash_1.cloneDeep(sourceToApply[sourceKey]);
465
- }
466
-
467
- if (clone[sourceKey] && _typeof(clone[sourceKey]) === 'object' && !Array.isArray(clone[sourceKey]) && _typeof(sourceToApply[sourceKey]) === 'object') {
468
- clone[sourceKey] = exports.deepMergeWithArrayPrimitiveOverrides(clone[sourceKey], sourceToApply[sourceKey]);
469
- } else if (Array.isArray(clone[sourceKey]) && _typeof(clone[sourceKey][0]) === 'object' && !Array.isArray(clone[sourceKey][0])) {
470
- // If option is an array of objects
471
- for (var i = 0; i < clone[sourceKey].length; i += 1) {
472
- if (_typeof(clone[sourceKey][i]) === 'object') {
473
- var closestMatchIdx = mapUtils_1.findClosestMatchFromDefaultList(sourceToApply[sourceKey], clone[sourceKey][i]);
474
-
475
- if (closestMatchIdx > -1) {
476
- clone[sourceKey][i] = exports.deepMergeWithArrayPrimitiveOverrides(clone[sourceKey][i], sourceToApply[sourceKey][closestMatchIdx]);
477
- }
478
- }
479
- }
480
- }
481
- });
482
- });
483
- return clone;
484
- };
485
-
486
- exports.deepMergeWithArrayPrimitiveOverrides = deepMergeWithArrayPrimitiveOverrides;
487
-
488
- /***/ }),
489
- /* 9 */
490
- /***/ (function(module, exports) {
491
-
492
- module.exports = require("@babel/runtime/helpers/toConsumableArray");
493
-
494
- /***/ }),
495
- /* 10 */
496
- /***/ (function(module, exports) {
497
-
498
- module.exports = require("@splunk/themes/variables");
499
-
500
- /***/ }),
501
- /* 11 */
502
- /***/ (function(module, exports) {
503
-
504
- module.exports = require("@splunk/visualizations-shared/Message");
505
-
506
- /***/ }),
507
- /* 12 */
508
- /***/ (function(module, exports) {
509
-
510
- module.exports = require("@babel/runtime/helpers/classCallCheck");
511
-
512
- /***/ }),
513
- /* 13 */
514
- /***/ (function(module, exports) {
515
-
516
- module.exports = require("@splunk/visualizations-shared/colorUtils");
517
-
518
- /***/ }),
519
- /* 14 */
520
- /***/ (function(module, exports, __webpack_require__) {
521
-
522
- "use strict";
523
-
524
-
525
- Object.defineProperty(exports, "__esModule", {
526
- value: true
527
- });
528
-
529
- var React = __webpack_require__(1);
530
-
531
- var styled_components_1 = __webpack_require__(4);
532
-
533
- var SizeAwareWrapper_1 = __webpack_require__(18);
534
-
535
- var style_1 = __webpack_require__(15);
536
-
537
- var colorUtils_1 = __webpack_require__(13);
538
-
539
- var Item = styled_components_1.default.div.attrs(function (_ref) {
540
- var width = _ref.width;
541
- return {
542
- style: {
543
- width: style_1.toPx(width)
544
- }
545
- };
546
- }).withConfig({
547
- displayName: "FixedSizeContainer__Item",
548
- componentId: "sc-1yhgpod-0"
549
- })(["position:relative;background-color:", "};"], function (props) {
550
- return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
551
- }); // Use `.attrs()` for highly dynamic styles. Ref: https://github.com/styled-components/styled-components/issues/134#issuecomment-312415291
552
-
553
- var FixSizeItem = styled_components_1.default.div.attrs(function (_ref2) {
554
- var width = _ref2.width,
555
- height = _ref2.height;
556
- return {
557
- style: Object.assign(Object.assign({}, width && {
558
- width: style_1.toPx(width)
559
- }), height && {
560
- height: style_1.toPx(height)
561
- })
562
- };
563
- }).withConfig({
564
- displayName: "FixedSizeContainer__FixSizeItem",
565
- componentId: "sc-1yhgpod-1"
566
- })(["position:relative;flex-direction:column;flex:1;display:flex;background-color:", "};"], function (props) {
567
- return colorUtils_1.isColor(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor;
568
- });
569
- var ItemContent = styled_components_1.default.div.withConfig({
570
- displayName: "FixedSizeContainer__ItemContent",
571
- componentId: "sc-1yhgpod-2"
572
- })(["position:relative;min-height:100px;width:100%;"]);
573
- var FixSizeItemContent = styled_components_1.default.div.withConfig({
574
- displayName: "FixedSizeContainer__FixSizeItemContent",
575
- componentId: "sc-1yhgpod-3"
576
- })(["min-height:0px;flex:1;position:relative;box-sizing:border-box;"]);
577
-
578
- var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
579
- var FixedSizeContainer = function FixedSizeContainer(props) {
580
- var width = props.width,
581
- height = props.height,
582
- backgroundColor = props.backgroundColor;
583
-
584
- if (!height) {
585
- return React.createElement(Item, {
586
- "data-test": "item",
587
- width: width,
588
- backgroundColor: backgroundColor
589
- }, React.createElement(ItemContent, null, React.createElement(Viz, Object.assign({}, props))));
590
- }
591
-
592
- return React.createElement(FixSizeItem, {
593
- "data-test": "fix-size-item",
594
- "data-splunk-visualization-version": "25.0.1 - de10ad954",
595
- width: width,
596
- height: height,
597
- backgroundColor: backgroundColor
598
- }, React.createElement(FixSizeItemContent, null, React.createElement(SizeAwareWrapper_1.default, null, function (_ref3) {
599
- var newWidth = _ref3.width,
600
- newHeight = _ref3.height;
601
- return React.createElement(Viz, Object.assign({}, props, {
602
- width: newWidth,
603
- height: newHeight
604
- }));
605
- })));
606
- };
607
-
608
- FixedSizeContainer.displayName = 'withFixedSizeContainer';
609
- return FixedSizeContainer;
610
- };
611
-
612
- exports.default = withFixedSizeContainer;
613
-
614
- /***/ }),
615
- /* 15 */
616
- /***/ (function(module, exports) {
617
-
618
- module.exports = require("@splunk/visualizations-shared/style");
619
-
620
- /***/ }),
621
- /* 16 */
622
- /***/ (function(module, exports) {
623
-
624
- module.exports = require("@splunk/visualizations-shared/schemaUtils");
625
-
626
- /***/ }),
627
- /* 17 */
573
+ /* 17 */,
574
+ /* 18 */
628
575
  /***/ (function(module, exports) {
629
576
 
630
577
  module.exports = require("@babel/runtime/helpers/createClass");
631
578
 
632
579
  /***/ }),
633
- /* 18 */
580
+ /* 19 */
634
581
  /***/ (function(module, exports) {
635
582
 
636
583
  module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
637
584
 
638
585
  /***/ }),
639
- /* 19 */,
640
- /* 20 */
586
+ /* 20 */,
587
+ /* 21 */
641
588
  /***/ (function(module, exports) {
642
589
 
643
590
  module.exports = require("@splunk/themes/pick");
644
591
 
645
592
  /***/ }),
646
- /* 21 */
593
+ /* 22 */
647
594
  /***/ (function(module, exports) {
648
595
 
649
596
  module.exports = require("@splunk/visualization-context/TimezoneContext");
650
597
 
651
598
  /***/ }),
652
- /* 22 */
599
+ /* 23 */
653
600
  /***/ (function(module, exports) {
654
601
 
655
602
  module.exports = require("@splunk/visualizations-shared/propUtils");
656
603
 
657
604
  /***/ }),
658
- /* 23 */,
659
605
  /* 24 */
660
- /***/ (function(module, exports, __webpack_require__) {
661
-
662
- "use strict";
663
-
664
-
665
- Object.defineProperty(exports, "__esModule", {
666
- value: true
667
- });
668
- exports.pickFieldFromJSONSchema = void 0;
669
-
670
- var lodash_1 = __webpack_require__(2);
671
-
672
- var pickFieldFromJSONSchema = function pickFieldFromJSONSchema(optionsSchema) {
673
- var fieldName = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : 'default';
674
- return Object.keys(optionsSchema).reduce(function (accum, k) {
675
- if (lodash_1.has(optionsSchema[k], fieldName)) {
676
- accum[k] = optionsSchema[k][fieldName];
677
- } else if (lodash_1.get(optionsSchema, [k, 'type']) === 'object' && lodash_1.has(optionsSchema[k], 'properties')) {
678
- var nestedSchema = exports.pickFieldFromJSONSchema(optionsSchema[k].properties, fieldName);
679
-
680
- if (!lodash_1.isEmpty(nestedSchema)) {
681
- accum[k] = nestedSchema;
682
- }
683
- }
684
-
685
- return accum;
686
- }, {});
687
- };
606
+ /***/ (function(module, exports) {
688
607
 
689
- exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
608
+ module.exports = require("@splunk/visualizations-shared/hocUtils");
690
609
 
691
610
  /***/ }),
692
611
  /* 25 */
693
612
  /***/ (function(module, exports) {
694
613
 
695
- module.exports = require("@babel/runtime/helpers/typeof");
614
+ module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
696
615
 
697
616
  /***/ }),
698
- /* 26 */
617
+ /* 26 */,
618
+ /* 27 */
699
619
  /***/ (function(module, exports, __webpack_require__) {
700
620
 
701
621
  "use strict";
@@ -710,13 +630,13 @@ var React = __webpack_require__(1);
710
630
 
711
631
  var T = __webpack_require__(0);
712
632
 
713
- var lodash_1 = __webpack_require__(2);
633
+ var lodash_1 = __webpack_require__(3);
714
634
 
715
- var i18n_1 = __webpack_require__(3);
635
+ var i18n_1 = __webpack_require__(2);
716
636
 
717
- var Message_1 = __webpack_require__(11);
637
+ var Message_1 = __webpack_require__(9);
718
638
 
719
- var FixedSizeContainer_1 = __webpack_require__(14);
639
+ var FixedSizeContainer_1 = __webpack_require__(12);
720
640
  /**
721
641
  * @method shouldShowIconPlaceholder
722
642
  * @param {object} dataSources
@@ -786,13 +706,13 @@ IconPlaceholder.defaultProps = {
786
706
  exports.default = FixedSizeContainer_1.default(IconPlaceholder);
787
707
 
788
708
  /***/ }),
789
- /* 27 */
709
+ /* 28 */
790
710
  /***/ (function(module, exports, __webpack_require__) {
791
711
 
792
712
  "use strict";
793
713
 
794
714
 
795
- var _defineProperty = __webpack_require__(7);
715
+ var _defineProperty = __webpack_require__(6);
796
716
 
797
717
  Object.defineProperty(exports, "__esModule", {
798
718
  value: true
@@ -801,9 +721,9 @@ exports.getSortingParams = exports.SortParamsPropTypes = void 0;
801
721
 
802
722
  var T = __webpack_require__(0);
803
723
 
804
- var lodash_1 = __webpack_require__(2);
724
+ var lodash_1 = __webpack_require__(3);
805
725
 
806
- var DataSource_1 = __webpack_require__(37);
726
+ var DataSource_1 = __webpack_require__(38);
807
727
 
808
728
  exports.SortParamsPropTypes = T.shape({
809
729
  currentSortKey: T.string,
@@ -856,7 +776,7 @@ var getSortingParams = function getSortingParams(_ref) {
856
776
  exports.getSortingParams = getSortingParams;
857
777
 
858
778
  /***/ }),
859
- /* 28 */
779
+ /* 29 */
860
780
  /***/ (function(module, exports, __webpack_require__) {
861
781
 
862
782
  "use strict";
@@ -869,7 +789,7 @@ exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
869
789
 
870
790
  var T = __webpack_require__(0);
871
791
 
872
- var lodash_1 = __webpack_require__(2);
792
+ var lodash_1 = __webpack_require__(3);
873
793
 
874
794
  exports.PaginatorParamsPropTypes = T.shape({
875
795
  isPaging: T.bool,
@@ -920,7 +840,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
920
840
  exports.getPaginationParams = getPaginationParams;
921
841
 
922
842
  /***/ }),
923
- /* 29 */
843
+ /* 30 */
924
844
  /***/ (function(module, exports, __webpack_require__) {
925
845
 
926
846
  "use strict";
@@ -948,7 +868,7 @@ var VizCategory;
948
868
  })(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
949
869
 
950
870
  /***/ }),
951
- /* 30 */
871
+ /* 31 */
952
872
  /***/ (function(module, exports, __webpack_require__) {
953
873
 
954
874
  "use strict";
@@ -960,39 +880,39 @@ Object.defineProperty(exports, "__esModule", {
960
880
 
961
881
  var React = __webpack_require__(1);
962
882
 
963
- var lodash_1 = __webpack_require__(2);
883
+ var lodash_1 = __webpack_require__(3);
964
884
 
965
- var getSettingsFromThemedProps_1 = __webpack_require__(31);
885
+ var getSettingsFromThemedProps_1 = __webpack_require__(32);
966
886
 
967
- var Options_1 = __webpack_require__(32);
887
+ var Options_1 = __webpack_require__(33);
968
888
 
969
- var SanitizeProps_1 = __webpack_require__(33);
889
+ var SanitizeProps_1 = __webpack_require__(34);
970
890
 
971
- var TimezoneContext_1 = __webpack_require__(21);
891
+ var TimezoneContext_1 = __webpack_require__(22);
972
892
 
973
- var moment_1 = __webpack_require__(34);
893
+ var moment_1 = __webpack_require__(35);
974
894
 
975
895
  var styled_components_1 = __webpack_require__(4);
976
896
 
977
- var SplunkVisualization_1 = __webpack_require__(35);
897
+ var hocUtils_1 = __webpack_require__(24);
978
898
 
979
- var VizBehavior_1 = __webpack_require__(5);
899
+ var JSONSchemaUtils_1 = __webpack_require__(25);
980
900
 
981
- var getSorting_1 = __webpack_require__(27);
901
+ var SplunkVisualization_1 = __webpack_require__(36);
982
902
 
983
- var getPagination_1 = __webpack_require__(28);
903
+ var VizBehavior_1 = __webpack_require__(5);
984
904
 
985
- var useDeepMemo_1 = __webpack_require__(38);
905
+ var getSorting_1 = __webpack_require__(28);
986
906
 
987
- var JSONSchemaUtils_1 = __webpack_require__(24);
907
+ var getPagination_1 = __webpack_require__(29);
988
908
 
989
- var MissingPropsMessage_1 = __webpack_require__(39);
909
+ var useDeepMemo_1 = __webpack_require__(39);
990
910
 
991
- var withEditModeCover_1 = __webpack_require__(40);
911
+ var MissingPropsMessage_1 = __webpack_require__(40);
992
912
 
993
- var withPlaceholder_1 = __webpack_require__(42);
913
+ var withEditModeCover_1 = __webpack_require__(41);
994
914
 
995
- var hocUtils_1 = __webpack_require__(8);
915
+ var withPlaceholder_1 = __webpack_require__(42);
996
916
  /**
997
917
  * hoc that wraps a pure react visualization in a Dashboard visualization
998
918
  * @param {DashboardVizOpts} opts
@@ -1193,37 +1113,37 @@ var withDashboardViz = function withDashboardViz(opts) {
1193
1113
  exports.default = withDashboardViz;
1194
1114
 
1195
1115
  /***/ }),
1196
- /* 31 */
1116
+ /* 32 */
1197
1117
  /***/ (function(module, exports) {
1198
1118
 
1199
1119
  module.exports = require("@splunk/themes/getSettingsFromThemedProps");
1200
1120
 
1201
1121
  /***/ }),
1202
- /* 32 */
1122
+ /* 33 */
1203
1123
  /***/ (function(module, exports) {
1204
1124
 
1205
1125
  module.exports = require("@splunk/visualization-encoding/Options");
1206
1126
 
1207
1127
  /***/ }),
1208
- /* 33 */
1128
+ /* 34 */
1209
1129
  /***/ (function(module, exports) {
1210
1130
 
1211
1131
  module.exports = require("@splunk/visualizations-shared/SanitizeProps");
1212
1132
 
1213
1133
  /***/ }),
1214
- /* 34 */
1134
+ /* 35 */
1215
1135
  /***/ (function(module, exports) {
1216
1136
 
1217
1137
  module.exports = require("@splunk/moment");
1218
1138
 
1219
1139
  /***/ }),
1220
- /* 35 */
1140
+ /* 36 */
1221
1141
  /***/ (function(module, exports, __webpack_require__) {
1222
1142
 
1223
1143
  "use strict";
1224
1144
 
1225
1145
 
1226
- var _classCallCheck = __webpack_require__(12);
1146
+ var _classCallCheck = __webpack_require__(10);
1227
1147
 
1228
1148
  Object.defineProperty(exports, "__esModule", {
1229
1149
  value: true
@@ -1233,9 +1153,9 @@ exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
1233
1153
 
1234
1154
  var T = __webpack_require__(0);
1235
1155
 
1236
- var lodash_1 = __webpack_require__(2);
1156
+ var lodash_1 = __webpack_require__(3);
1237
1157
 
1238
- var VizActionHandler_1 = __webpack_require__(36); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
1158
+ var VizActionHandler_1 = __webpack_require__(37); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
1239
1159
 
1240
1160
 
1241
1161
  exports.INITIAL_WIDTH = 250;
@@ -1368,15 +1288,15 @@ SplunkVisualization.defaultProps = {
1368
1288
  exports.default = SplunkVisualization;
1369
1289
 
1370
1290
  /***/ }),
1371
- /* 36 */
1291
+ /* 37 */
1372
1292
  /***/ (function(module, exports, __webpack_require__) {
1373
1293
 
1374
1294
  "use strict";
1375
1295
 
1376
1296
 
1377
- var _classCallCheck = __webpack_require__(12);
1297
+ var _classCallCheck = __webpack_require__(10);
1378
1298
 
1379
- var _createClass = __webpack_require__(17);
1299
+ var _createClass = __webpack_require__(18);
1380
1300
 
1381
1301
  Object.defineProperty(exports, "__esModule", {
1382
1302
  value: true
@@ -1405,7 +1325,7 @@ var DefaultVizActionHandler = /*#__PURE__*/function () {
1405
1325
  exports.DefaultVizActionHandler = DefaultVizActionHandler;
1406
1326
 
1407
1327
  /***/ }),
1408
- /* 37 */
1328
+ /* 38 */
1409
1329
  /***/ (function(module, exports, __webpack_require__) {
1410
1330
 
1411
1331
  "use strict";
@@ -1418,7 +1338,7 @@ exports.validSortDirs = void 0;
1418
1338
  exports.validSortDirs = ['asc', 'desc', 'none'];
1419
1339
 
1420
1340
  /***/ }),
1421
- /* 38 */
1341
+ /* 39 */
1422
1342
  /***/ (function(module, exports, __webpack_require__) {
1423
1343
 
1424
1344
  "use strict";
@@ -1431,7 +1351,7 @@ exports.useDeepMemo = void 0;
1431
1351
 
1432
1352
  var react_1 = __webpack_require__(1);
1433
1353
 
1434
- var lodash_1 = __webpack_require__(2);
1354
+ var lodash_1 = __webpack_require__(3);
1435
1355
  /**
1436
1356
  * This hook evaluates and stores the result of a passed function and only
1437
1357
  * re-evaluates the function when passed dependencies change.
@@ -1463,7 +1383,7 @@ var useDeepMemo = function useDeepMemo(fn, dependencies) {
1463
1383
  exports.useDeepMemo = useDeepMemo;
1464
1384
 
1465
1385
  /***/ }),
1466
- /* 39 */
1386
+ /* 40 */
1467
1387
  /***/ (function(module, exports, __webpack_require__) {
1468
1388
 
1469
1389
  "use strict";
@@ -1478,11 +1398,11 @@ var React = __webpack_require__(1);
1478
1398
 
1479
1399
  var T = __webpack_require__(0);
1480
1400
 
1481
- var i18n_1 = __webpack_require__(3);
1401
+ var i18n_1 = __webpack_require__(2);
1482
1402
 
1483
- var Message_1 = __webpack_require__(11);
1403
+ var Message_1 = __webpack_require__(9);
1484
1404
 
1485
- var FixedSizeContainer_1 = __webpack_require__(14);
1405
+ var FixedSizeContainer_1 = __webpack_require__(12);
1486
1406
  /**
1487
1407
  * @method isMissing
1488
1408
  * @param {any} v
@@ -1543,7 +1463,7 @@ exports.MissingPropsMessage.defaultProps = {
1543
1463
  exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
1544
1464
 
1545
1465
  /***/ }),
1546
- /* 40 */
1466
+ /* 41 */
1547
1467
  /***/ (function(module, exports, __webpack_require__) {
1548
1468
 
1549
1469
  "use strict";
@@ -1557,14 +1477,14 @@ var React = __webpack_require__(1);
1557
1477
 
1558
1478
  var styled_components_1 = __webpack_require__(4);
1559
1479
 
1560
- var hocUtils_1 = __webpack_require__(8);
1480
+ var hocUtils_1 = __webpack_require__(13);
1561
1481
 
1562
1482
  var Cover = styled_components_1.default.div.withConfig({
1563
1483
  displayName: "withEditModeCover__Cover",
1564
1484
  componentId: "sc-1gsbnxb-0"
1565
1485
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
1566
1486
  var Blocker = styled_components_1.default.div.attrs({
1567
- 'data-splunk-visualization-version': "25.0.1 - de10ad954"
1487
+ 'data-splunk-visualization-version': "25.1.0 - 812a9a4d8"
1568
1488
  }).withConfig({
1569
1489
  displayName: "withEditModeCover__Blocker",
1570
1490
  componentId: "sc-1gsbnxb-1"
@@ -1594,12 +1514,6 @@ var withEditModeCover = function withEditModeCover(Visualization, disableEditMod
1594
1514
 
1595
1515
  exports.default = withEditModeCover;
1596
1516
 
1597
- /***/ }),
1598
- /* 41 */
1599
- /***/ (function(module, exports) {
1600
-
1601
- module.exports = require("@splunk/visualizations-shared/mapUtils");
1602
-
1603
1517
  /***/ }),
1604
1518
  /* 42 */
1605
1519
  /***/ (function(module, exports, __webpack_require__) {
@@ -1613,15 +1527,15 @@ Object.defineProperty(exports, "__esModule", {
1613
1527
 
1614
1528
  var React = __webpack_require__(1);
1615
1529
 
1616
- var colorUtils_1 = __webpack_require__(13);
1530
+ var colorUtils_1 = __webpack_require__(11);
1617
1531
 
1618
- var variables_1 = __webpack_require__(10);
1532
+ var variables_1 = __webpack_require__(8);
1619
1533
 
1620
- var IconPlaceholder_1 = __webpack_require__(26);
1534
+ var IconPlaceholder_1 = __webpack_require__(27);
1621
1535
 
1622
1536
  var VizBehavior_1 = __webpack_require__(5);
1623
1537
 
1624
- var hocUtils_1 = __webpack_require__(8);
1538
+ var hocUtils_1 = __webpack_require__(13);
1625
1539
 
1626
1540
  var withPlaceholder = function withPlaceholder(Visualization) {
1627
1541
  var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
@@ -1696,7 +1610,7 @@ Object.defineProperty(exports, "__esModule", {
1696
1610
  value: true
1697
1611
  });
1698
1612
 
1699
- var i18n_1 = __webpack_require__(3);
1613
+ var i18n_1 = __webpack_require__(2);
1700
1614
 
1701
1615
  var background = function background(_ref) {
1702
1616
  var label = _ref.label,
@@ -1722,7 +1636,7 @@ exports.default = background;
1722
1636
  "use strict";
1723
1637
 
1724
1638
 
1725
- var _toConsumableArray = __webpack_require__(9);
1639
+ var _toConsumableArray = __webpack_require__(7);
1726
1640
 
1727
1641
  var __rest = this && this.__rest || function (s, e) {
1728
1642
  var t = {};
@@ -1742,7 +1656,7 @@ Object.defineProperty(exports, "__esModule", {
1742
1656
  });
1743
1657
  exports.constructFieldsAndColumns = exports.toArrayForSeries = exports.isMultiSeriesData = exports.convertOverlayFields = exports.convertY2AxisOptions = exports.mapToValues = exports.truncateData = exports.getAnnotations = void 0;
1744
1658
 
1745
- var lodash_1 = __webpack_require__(2);
1659
+ var lodash_1 = __webpack_require__(3);
1746
1660
  /**
1747
1661
  * Get formatted annotations
1748
1662
  * @method getAnnotations
@@ -1958,9 +1872,9 @@ Object.defineProperty(exports, "__esModule", {
1958
1872
  exports.updateRowPayload = exports.canUpdateInPlace = exports.changedOptions = exports.NO_INPLACE_PROPS = void 0;
1959
1873
  /* eslint-disable react/no-unused-prop-types */
1960
1874
 
1961
- var lodash_1 = __webpack_require__(2);
1875
+ var lodash_1 = __webpack_require__(3);
1962
1876
 
1963
- var i18n_1 = __webpack_require__(3);
1877
+ var i18n_1 = __webpack_require__(2);
1964
1878
 
1965
1879
  var visualization_color_palettes_1 = __webpack_require__(44);
1966
1880
 
@@ -1977,13 +1891,13 @@ __webpack_require__(57); // fixme, @splunk/charting should be refactor to use lo
1977
1891
 
1978
1892
  var charting_bundle_1 = __webpack_require__(51);
1979
1893
 
1980
- var TimezoneContext_1 = __webpack_require__(21);
1894
+ var TimezoneContext_1 = __webpack_require__(22);
1981
1895
 
1982
- var style_1 = __webpack_require__(15);
1896
+ var style_1 = __webpack_require__(14);
1983
1897
 
1984
1898
  var styled_components_1 = __webpack_require__(4);
1985
1899
 
1986
- var Message_1 = __webpack_require__(11);
1900
+ var Message_1 = __webpack_require__(9);
1987
1901
 
1988
1902
  var useSplunkTheme_1 = __webpack_require__(58);
1989
1903
 
@@ -2398,9 +2312,9 @@ module.exports = require("@splunk/visualizations-shared/themeUtils");
2398
2312
  "use strict";
2399
2313
 
2400
2314
 
2401
- var _classCallCheck = __webpack_require__(12);
2315
+ var _classCallCheck = __webpack_require__(10);
2402
2316
 
2403
- var _createClass = __webpack_require__(17);
2317
+ var _createClass = __webpack_require__(18);
2404
2318
 
2405
2319
  Object.defineProperty(exports, "__esModule", {
2406
2320
  value: true
@@ -2473,16 +2387,16 @@ module.exports = require("@splunk/visualizations-shared/simpleXMLOptions");
2473
2387
  "use strict";
2474
2388
 
2475
2389
 
2476
- var _toConsumableArray = __webpack_require__(9);
2390
+ var _toConsumableArray = __webpack_require__(7);
2477
2391
 
2478
2392
  Object.defineProperty(exports, "__esModule", {
2479
2393
  value: true
2480
2394
  });
2481
2395
  exports.AxesChartDataConfigAreaColumnLine = exports.AxesChartDataConfigBubble = exports.AxesChartDataConfigScatter = exports.AxesChartDataConfigBar = void 0;
2482
2396
 
2483
- var i18n_1 = __webpack_require__(3);
2397
+ var i18n_1 = __webpack_require__(2);
2484
2398
 
2485
- var configUtils_1 = __webpack_require__(6);
2399
+ var configUtils_1 = __webpack_require__(16);
2486
2400
 
2487
2401
  var AxesChartDataConfig = {
2488
2402
  label: i18n_1._('Data configurations'),
@@ -2523,15 +2437,35 @@ exports.AxesChartDataConfigBar = {
2523
2437
  };
2524
2438
  exports.AxesChartDataConfigScatter = {
2525
2439
  label: AxesChartDataConfig.label,
2526
- // layout: insert Category after Y
2527
- layout: configUtils_1.insertLayout(AxesChartDataConfig.layout, 2, [{
2440
+ layout: [[{
2441
+ label: i18n_1._('X'),
2442
+ option: 'x',
2443
+ editor: 'editor.columnSelector',
2444
+ editorProps: {
2445
+ dataSourceKey: 'primary'
2446
+ }
2447
+ }], [{
2448
+ label: i18n_1._('Y'),
2449
+ option: 'y',
2450
+ editor: 'editor.columnSelector',
2451
+ editorProps: {
2452
+ dataSourceKey: 'primary'
2453
+ }
2454
+ }], [{
2528
2455
  label: i18n_1._('Category'),
2529
2456
  option: 'category',
2530
2457
  editor: 'editor.columnSelector',
2531
2458
  editorProps: {
2532
2459
  dataSourceKey: 'primary'
2533
2460
  }
2534
- }])
2461
+ }], [{
2462
+ label: i18n_1._('Result limit'),
2463
+ option: 'resultLimit',
2464
+ editor: 'editor.number',
2465
+ editorProps: {
2466
+ dataSourceKey: 'primary'
2467
+ }
2468
+ }]]
2535
2469
  };
2536
2470
  exports.AxesChartDataConfigBubble = {
2537
2471
  label: exports.AxesChartDataConfigScatter.label,
@@ -2576,11 +2510,11 @@ Object.defineProperty(exports, "__esModule", {
2576
2510
  value: true
2577
2511
  });
2578
2512
 
2579
- var i18n_1 = __webpack_require__(3);
2513
+ var i18n_1 = __webpack_require__(2);
2580
2514
 
2581
- var pick_1 = __webpack_require__(20);
2515
+ var pick_1 = __webpack_require__(21);
2582
2516
 
2583
- var variables_1 = __webpack_require__(10);
2517
+ var variables_1 = __webpack_require__(8);
2584
2518
 
2585
2519
  var BackgroundColor_1 = __webpack_require__(49);
2586
2520
 
@@ -2599,23 +2533,15 @@ var AxesChartColorAndStyle = {
2599
2533
  label: i18n_1._('Color and style'),
2600
2534
  layout: [BackgroundColor_1.default({
2601
2535
  themes: themes
2602
- }) // Add SeriesColorsEditor when SCP-55658 is done e.g.
2603
- // [
2604
- // {
2605
- // label: _('Series colors'),
2606
- // option: 'seriesColors',
2607
- // editor: 'editor.seriesColors',
2608
- // },
2609
- // ],
2610
- // Add SeriesColorsByFieldEditor here when SCP-55687 is done, e.g.
2611
- // [
2612
- // {
2613
- // label: _('Series colors by field name'),
2614
- // option: 'seriesColorsByField',
2615
- // editor: 'editor.seriesColorsByField',
2616
- // },
2617
- // ],
2618
- ]
2536
+ }), [{
2537
+ label: i18n_1._('Series colors'),
2538
+ option: 'seriesColors',
2539
+ editor: 'editor.seriesColors'
2540
+ }], [{
2541
+ label: i18n_1._('Series colors by field name'),
2542
+ option: 'seriesColorsByField',
2543
+ editor: 'editor.seriesColorsByField'
2544
+ }]]
2619
2545
  };
2620
2546
  exports.default = AxesChartColorAndStyle;
2621
2547
 
@@ -2630,7 +2556,7 @@ Object.defineProperty(exports, "__esModule", {
2630
2556
  value: true
2631
2557
  });
2632
2558
 
2633
- var i18n_1 = __webpack_require__(3);
2559
+ var i18n_1 = __webpack_require__(2);
2634
2560
 
2635
2561
  var AxesChartLegend = {
2636
2562
  label: i18n_1._('Legend'),
@@ -2690,16 +2616,16 @@ exports.default = AxesChartLegend;
2690
2616
  "use strict";
2691
2617
 
2692
2618
 
2693
- var _toConsumableArray = __webpack_require__(9);
2619
+ var _toConsumableArray = __webpack_require__(7);
2694
2620
 
2695
2621
  Object.defineProperty(exports, "__esModule", {
2696
2622
  value: true
2697
2623
  });
2698
2624
  exports.AxesChartXGridAndLabelsBubbleScatter = exports.AxesChartXGridAndLabelsCommon = void 0;
2699
2625
 
2700
- var i18n_1 = __webpack_require__(3);
2626
+ var i18n_1 = __webpack_require__(2);
2701
2627
 
2702
- var configUtils_1 = __webpack_require__(6);
2628
+ var configUtils_1 = __webpack_require__(16);
2703
2629
 
2704
2630
  exports.AxesChartXGridAndLabelsCommon = {
2705
2631
  label: i18n_1._('X-axis grid and labels'),
@@ -2738,7 +2664,7 @@ var AxesChartXGridAndLabels = {
2738
2664
  layout: [].concat(_toConsumableArray(exports.AxesChartXGridAndLabelsCommon.layout), [[{
2739
2665
  label: i18n_1._('Label rotation'),
2740
2666
  option: 'xAxisLabelRotation',
2741
- editor: 'editor.radioBar',
2667
+ editor: 'editor.select',
2742
2668
  editorProps: {
2743
2669
  values: [{
2744
2670
  label: i18n_1._('-90'),
@@ -2982,7 +2908,7 @@ Object.defineProperty(exports, "__esModule", {
2982
2908
  value: true
2983
2909
  });
2984
2910
 
2985
- var i18n_1 = __webpack_require__(3);
2911
+ var i18n_1 = __webpack_require__(2);
2986
2912
 
2987
2913
  var AxesChartYGridAndLabels = {
2988
2914
  label: i18n_1._('Y-axis grid and labels'),
@@ -3147,18 +3073,18 @@ exports.default = AxesChartYGridAndLabels;
3147
3073
  "use strict";
3148
3074
 
3149
3075
 
3150
- var _toConsumableArray = __webpack_require__(9);
3076
+ var _toConsumableArray = __webpack_require__(7);
3151
3077
 
3152
3078
  Object.defineProperty(exports, "__esModule", {
3153
3079
  value: true
3154
3080
  });
3155
3081
  exports.AxesChartDataDisplayColumn = exports.AxesChartDataDisplayBar = exports.AxesChartDataDisplayLine = void 0;
3156
3082
 
3157
- var i18n_1 = __webpack_require__(3);
3083
+ var i18n_1 = __webpack_require__(2);
3158
3084
 
3159
- var lodash_1 = __webpack_require__(2);
3085
+ var lodash_1 = __webpack_require__(3);
3160
3086
 
3161
- var configUtils_1 = __webpack_require__(6);
3087
+ var configUtils_1 = __webpack_require__(16);
3162
3088
 
3163
3089
  exports.AxesChartDataDisplayLine = {
3164
3090
  label: i18n_1._('Data display'),
@@ -3194,13 +3120,6 @@ exports.AxesChartDataDisplayLine = {
3194
3120
  value: 'minmax'
3195
3121
  }]
3196
3122
  }
3197
- }], [{
3198
- label: i18n_1._('Overlay fields'),
3199
- option: 'overlayFields',
3200
- editor: 'editor.columnMultiSelector',
3201
- editorProps: {
3202
- dataSourceKey: 'primary'
3203
- }
3204
3123
  }], [{
3205
3124
  label: i18n_1._('Split series'),
3206
3125
  option: 'showSplitSeries',
@@ -3220,7 +3139,7 @@ var AxesChartDataDisplay = {
3220
3139
  layout: [[{
3221
3140
  label: i18n_1._('Stack mode'),
3222
3141
  option: 'stackMode',
3223
- editor: 'editor.radioBar',
3142
+ editor: 'editor.select',
3224
3143
  editorProps: {
3225
3144
  values: [{
3226
3145
  label: i18n_1._('Not stacked'),
@@ -3240,7 +3159,7 @@ exports.AxesChartDataDisplayBar = {
3240
3159
  layout: [[{
3241
3160
  label: i18n_1._('Stack mode'),
3242
3161
  option: 'stackMode',
3243
- editor: 'editor.radioBar',
3162
+ editor: 'editor.select',
3244
3163
  editorProps: {
3245
3164
  values: [{
3246
3165
  label: i18n_1._('Not stacked'),
@@ -3289,7 +3208,7 @@ Object.defineProperty(exports, "__esModule", {
3289
3208
  value: true
3290
3209
  });
3291
3210
 
3292
- var i18n_1 = __webpack_require__(3);
3211
+ var i18n_1 = __webpack_require__(2);
3293
3212
 
3294
3213
  var axesChartY2GridAndLabels = {
3295
3214
  label: i18n_1._('Y2-axis grid and labels'),
@@ -3305,10 +3224,6 @@ var axesChartY2GridAndLabels = {
3305
3224
  var options = _ref.options;
3306
3225
  return options.y2AxisTitleVisibility === 'show' || options.y2AxisTitleVisibility === undefined;
3307
3226
  }
3308
- }], [{
3309
- label: i18n_1._('Show overlays on the y2-axis'),
3310
- option: 'showOverlayY2Axis',
3311
- editor: 'editor.checkbox'
3312
3227
  }], [{
3313
3228
  label: i18n_1._('Scale'),
3314
3229
  option: 'y2AxisScale',
@@ -3491,7 +3406,8 @@ exports.default = axesChartY2GridAndLabels;
3491
3406
  /* 116 */,
3492
3407
  /* 117 */,
3493
3408
  /* 118 */,
3494
- /* 119 */
3409
+ /* 119 */,
3410
+ /* 120 */
3495
3411
  /***/ (function(module, exports, __webpack_require__) {
3496
3412
 
3497
3413
  "use strict";
@@ -3515,7 +3431,7 @@ Object.defineProperty(exports, "__esModule", {
3515
3431
  });
3516
3432
  exports.config = exports.themes = exports.computeVizProps = void 0;
3517
3433
 
3518
- var lodash_1 = __webpack_require__(2); // Charting imports i18n which needs to be run to instantiate window globals in the tests
3434
+ var lodash_1 = __webpack_require__(3); // Charting imports i18n which needs to be run to instantiate window globals in the tests
3519
3435
  // eslint-disable-next-line import/order
3520
3436
 
3521
3437
 
@@ -3525,13 +3441,13 @@ var charting_bundle_1 = __webpack_require__(51);
3525
3441
 
3526
3442
  var simpleXMLOptions_1 = __webpack_require__(61);
3527
3443
 
3528
- var config_1 = __webpack_require__(151);
3444
+ var config_1 = __webpack_require__(152);
3529
3445
 
3530
3446
  exports.config = config_1.default;
3531
3447
 
3532
- var withDashboardViz_1 = __webpack_require__(30);
3448
+ var withDashboardViz_1 = __webpack_require__(31);
3533
3449
 
3534
- var barUtils_1 = __webpack_require__(152);
3450
+ var barUtils_1 = __webpack_require__(153);
3535
3451
 
3536
3452
  var chartingUtils_1 = __webpack_require__(50);
3537
3453
 
@@ -3602,7 +3518,6 @@ exports.themes = themes;
3602
3518
  exports.default = Bar;
3603
3519
 
3604
3520
  /***/ }),
3605
- /* 120 */,
3606
3521
  /* 121 */,
3607
3522
  /* 122 */,
3608
3523
  /* 123 */,
@@ -3632,7 +3547,8 @@ exports.default = Bar;
3632
3547
  /* 147 */,
3633
3548
  /* 148 */,
3634
3549
  /* 149 */,
3635
- /* 150 */
3550
+ /* 150 */,
3551
+ /* 151 */
3636
3552
  /***/ (function(module, exports, __webpack_require__) {
3637
3553
 
3638
3554
  "use strict";
@@ -3662,9 +3578,9 @@ Object.defineProperty(exports, "__esModule", {
3662
3578
  });
3663
3579
  exports.default = void 0;
3664
3580
 
3665
- __exportStar(__webpack_require__(119), exports);
3581
+ __exportStar(__webpack_require__(120), exports);
3666
3582
 
3667
- var Bar_1 = __webpack_require__(119);
3583
+ var Bar_1 = __webpack_require__(120);
3668
3584
 
3669
3585
  Object.defineProperty(exports, "default", {
3670
3586
  enumerable: true,
@@ -3674,13 +3590,13 @@ Object.defineProperty(exports, "default", {
3674
3590
  });
3675
3591
 
3676
3592
  /***/ }),
3677
- /* 151 */
3593
+ /* 152 */
3678
3594
  /***/ (function(module, exports, __webpack_require__) {
3679
3595
 
3680
3596
  "use strict";
3681
3597
 
3682
3598
 
3683
- var _toConsumableArray = __webpack_require__(9);
3599
+ var _toConsumableArray = __webpack_require__(7);
3684
3600
 
3685
3601
  Object.defineProperty(exports, "__esModule", {
3686
3602
  value: true
@@ -3690,15 +3606,15 @@ var visualization_icons_1 = __webpack_require__(46);
3690
3606
 
3691
3607
  var placeholders_1 = __webpack_require__(45);
3692
3608
 
3693
- var schemaUtils_1 = __webpack_require__(16);
3609
+ var schemaUtils_1 = __webpack_require__(15);
3694
3610
 
3695
3611
  var visualization_color_palettes_1 = __webpack_require__(44);
3696
3612
 
3697
- var i18n_1 = __webpack_require__(3);
3613
+ var i18n_1 = __webpack_require__(2);
3698
3614
 
3699
- var pick_1 = __webpack_require__(20);
3615
+ var pick_1 = __webpack_require__(21);
3700
3616
 
3701
- var variables_1 = __webpack_require__(10);
3617
+ var variables_1 = __webpack_require__(8);
3702
3618
 
3703
3619
  var AxesChartDataConfig_1 = __webpack_require__(63);
3704
3620
 
@@ -3716,9 +3632,9 @@ var AxesChartY2GridAndLabels_1 = __webpack_require__(76);
3716
3632
 
3717
3633
  var VizBehavior_1 = __webpack_require__(5);
3718
3634
 
3719
- var VizCategory_1 = __webpack_require__(29);
3635
+ var VizCategory_1 = __webpack_require__(30);
3720
3636
 
3721
- var configUtils_1 = __webpack_require__(6);
3637
+ var configUtils_1 = __webpack_require__(16);
3722
3638
 
3723
3639
  var dataContract = {
3724
3640
  requiredDataSources: [{
@@ -3788,7 +3704,7 @@ var optionsSchema = {
3788
3704
  backgroundColor: {
3789
3705
  default: '> themes.defaultBackgroundColor',
3790
3706
  description: 'Specify the color used for the background. You can use a data source or hexadecimal code to apply the color.',
3791
- pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN,
3707
+ pattern: schemaUtils_1.COLOR_OR_TOKEN_PATTERN_WITH_RGBA,
3792
3708
  type: 'string'
3793
3709
  },
3794
3710
  barSpacing: {
@@ -4125,15 +4041,6 @@ var themes = {
4125
4041
  var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigBar, AxesChartDataDisplay_1.AxesChartDataDisplayBar, {
4126
4042
  label: AxesChartColorAndStyle_1.default.label,
4127
4043
  layout: [].concat(_toConsumableArray(AxesChartColorAndStyle_1.default.layout), [[{
4128
- label: i18n_1._('Line width (px)'),
4129
- option: 'lineWidth',
4130
- editor: 'editor.slider',
4131
- editorProps: {
4132
- min: 0.5,
4133
- max: 8.0,
4134
- step: 0.5
4135
- }
4136
- }], [{
4137
4044
  label: i18n_1._('Series spacing'),
4138
4045
  option: 'seriesSpacing',
4139
4046
  editor: 'editor.number'
@@ -4143,7 +4050,7 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigBar, AxesChartDataD
4143
4050
  editor: 'editor.number'
4144
4051
  }]])
4145
4052
  }, AxesChartLegend_1.default, {
4146
- label: AxesChartXGridAndLabels_1.AxesChartXGridAndLabelsCommon.label,
4053
+ label: i18n_1._('X-axis grid and labels (vertical axis)'),
4147
4054
  layout: [].concat(_toConsumableArray(AxesChartXGridAndLabels_1.AxesChartXGridAndLabelsCommon.layout), [[{
4148
4055
  label: i18n_1._('Number of time label parts'),
4149
4056
  option: 'xAxisMaxLabelParts',
@@ -4194,7 +4101,9 @@ var editorConfig = [AxesChartDataConfig_1.AxesChartDataConfigBar, AxesChartDataD
4194
4101
  return options.xAxisMajorTickVisibility === 'show' || options.xAxisMajorTickVisibility === 'auto' || options.xAxisMajorTickVisibility === undefined;
4195
4102
  }
4196
4103
  }]])
4197
- }, AxesChartYGridAndLabels_1.default, AxesChartY2GridAndLabels_1.default];
4104
+ }, Object.assign(Object.assign({}, AxesChartYGridAndLabels_1.default), {
4105
+ label: i18n_1._('Y-axis grid and labels (horizontal axis)')
4106
+ }), AxesChartY2GridAndLabels_1.default];
4198
4107
  /**
4199
4108
  * visualization configuration
4200
4109
  */
@@ -4241,7 +4150,7 @@ var config = {
4241
4150
  exports.default = configUtils_1.enhanceConfig(config);
4242
4151
 
4243
4152
  /***/ }),
4244
- /* 152 */
4153
+ /* 153 */
4245
4154
  /***/ (function(module, exports, __webpack_require__) {
4246
4155
 
4247
4156
  "use strict";
@@ -4252,9 +4161,9 @@ Object.defineProperty(exports, "__esModule", {
4252
4161
  });
4253
4162
  exports.convertToBarSCProperties = exports.mapToOldKey = exports.convertToStringValues = void 0;
4254
4163
 
4255
- var lodash_1 = __webpack_require__(2);
4164
+ var lodash_1 = __webpack_require__(3);
4256
4165
 
4257
- var propUtils_1 = __webpack_require__(22);
4166
+ var propUtils_1 = __webpack_require__(23);
4258
4167
 
4259
4168
  var chartingUtils_1 = __webpack_require__(50); // map for key names which are either new or not present in SimpleXML options mapping
4260
4169