@splunk/visualizations 24.2.0 → 24.3.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 (215) hide show
  1. package/.loki/reference/chrome_docker_PureVisualizations_PureFillerGauge_Orientation_horizontal_height_90_show_placeholder.png +0 -0
  2. package/.loki/reference/chrome_docker_PureVisualizations_PureFillerGauge_Too_Small_to_Render.png +0 -0
  3. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_Tooltip_Dark.png +0 -0
  4. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_Tooltip_Hover.png +0 -0
  5. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_Tooltip_Light.png +0 -0
  6. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_base_map_light.png +0 -0
  7. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_basic.png +0 -0
  8. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_bubble_layer_dynamic_color.png +0 -0
  9. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_bubble_layer_geostats_by.png +0 -0
  10. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_bubble_layer_static_color.png +0 -0
  11. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_bubble_layer_static_color_with_no_seriesColors.png +0 -0
  12. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_center_seattle.png +0 -0
  13. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_dynamic_color.png +0 -0
  14. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_static_color.png +0 -0
  15. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_static_color_with_no_seriesColors.png +0 -0
  16. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_scale_off.png +0 -0
  17. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_scale_unit_metric.png +0 -0
  18. package/.loki/reference/chrome_docker_PureVisualizations_PureMap_zoom_9.png +0 -0
  19. package/.loki/reference/chrome_docker_PureVisualizations_PureMarkerGauge_Invalid_ranges_duplicate_entries_from.png +0 -0
  20. package/.loki/reference/chrome_docker_PureVisualizations_PureMarkerGauge_Invalid_ranges_duplicate_entries_to.png +0 -0
  21. package/.loki/reference/chrome_docker_PureVisualizations_PureMarkerGauge_Invalid_ranges_invalid_entries_discontinuous_ranges.png +0 -0
  22. package/.loki/reference/chrome_docker_PureVisualizations_PureMarkerGauge_Invalid_ranges_invalid_entries_from_equals_to_to.png +0 -0
  23. package/.loki/reference/chrome_docker_PureVisualizations_PureMarkerGauge_Invalid_ranges_invalid_entries_from_is_larger_than_to.png +0 -0
  24. package/.loki/reference/chrome_docker_PureVisualizations_PureMarkerGauge_Invalid_ranges_missing_entries.png +0 -0
  25. package/.loki/reference/chrome_docker_PureVisualizations_PureMarkerGauge_Orientation_horizontal_width_150_show_placeholder.png +0 -0
  26. package/.loki/reference/chrome_docker_PureVisualizations_PureMarkerGauge_Too_Small_to_Render.png +0 -0
  27. package/.loki/reference/chrome_docker_PureVisualizations_PureSankey_dimensions_less_than_minWidth_300_and_minHeight_200.png +0 -0
  28. package/.loki/reference/chrome_docker_PureVisualizations_PureSankey_invalid_columns_data.png +0 -0
  29. package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Map_Editor.png +0 -0
  30. package/.loki/reference/chrome_docker_Visualizations_Choropleth_Svg_Choropleth_Svg_Missing_Props_Message_When_No_Svg.png +0 -0
  31. package/.loki/reference/chrome_docker_Visualizations_Filler_Gauge_Filler_Gauge_Orientation_horizontal_height_90_show_placeholder.png +0 -0
  32. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Basic_Map.png +0 -0
  33. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer.png +0 -0
  34. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET.png +0 -0
  35. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET_Dynamic_Coloring.png +0 -0
  36. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Static_Coloring.png +0 -0
  37. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_Dynamic_Coloring.png +0 -0
  38. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer.png +0 -0
  39. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Dynamic_coloring.png +0 -0
  40. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Result_Limit_Set_To_3.png +0 -0
  41. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_with_geostats_data_No_render.png +0 -0
  42. package/.loki/reference/chrome_docker_Visualizations_Map_Map_Set_Map_tiles.png +0 -0
  43. package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Missing_Column.png +0 -0
  44. package/.loki/reference/chrome_docker_Visualizations_Sankey_Sankey_Dimension_Too_Small.png +0 -0
  45. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_By_Type_Custom.png +0 -0
  46. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_Default.png +0 -0
  47. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_Kitchen_Sink.png +0 -0
  48. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_Right.png +0 -0
  49. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_Single_Column.png +0 -0
  50. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Background_Color_light_blue.png +0 -0
  51. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Background_No_Stripe.png +0 -0
  52. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Background_Stripe.png +0 -0
  53. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Basic_Table.png +0 -0
  54. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Basic_Table_With_No_Click.png +0 -0
  55. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Cell_Types.png +0 -0
  56. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Column_Gradient.png +0 -0
  57. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Column_Override.png +0 -0
  58. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Column_Width.png +0 -0
  59. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Count_2.png +0 -0
  60. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Custom_Header_Colors.png +0 -0
  61. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Custom_Row_Colors.png +0 -0
  62. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Custom_Stripe.png +0 -0
  63. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Dark_Background_No_Stripe.png +0 -0
  64. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Dark_Background_Stripe.png +0 -0
  65. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Format_Number.png +0 -0
  66. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Format_Number_Adv.png +0 -0
  67. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Header_Visibility_fixed.png +0 -0
  68. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Header_Visibility_none.png +0 -0
  69. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Height_Percentage.png +0 -0
  70. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Height_Percentage_100_no_paginator.png +0 -0
  71. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Invalid_Background_Color.png +0 -0
  72. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Multi_Value_Field.png +0 -0
  73. package/.loki/reference/chrome_docker_Visualizations_Table_Table_No_Stripes.png +0 -0
  74. package/.loki/reference/chrome_docker_Visualizations_Table_Table_No_Stripes_Row_Numbers.png +0 -0
  75. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Show_Internal_Fields_false.png +0 -0
  76. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Show_Internal_Fields_true_default.png +0 -0
  77. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Show_Row_Numbers_true.png +0 -0
  78. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline.png +0 -0
  79. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline_Custom.png +0 -0
  80. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline_Width.png +0 -0
  81. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparklines_Adv.png +0 -0
  82. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Table_Formatting.png +0 -0
  83. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Table_Gradient.png +0 -0
  84. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Time_Formatting.png +0 -0
  85. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Width_Height.png +0 -0
  86. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Width_Percentage.png +0 -0
  87. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Width_Px.png +0 -0
  88. package/Area.config.js +15 -15
  89. package/Area.config.js.map +1 -1
  90. package/Area.js +108 -121
  91. package/Area.js.map +1 -1
  92. package/Bar.config.js +15 -15
  93. package/Bar.config.js.map +1 -1
  94. package/Bar.js +101 -114
  95. package/Bar.js.map +1 -1
  96. package/Bubble.config.js +8 -8
  97. package/Bubble.config.js.map +1 -1
  98. package/Bubble.js +94 -107
  99. package/Bubble.js.map +1 -1
  100. package/ChoroplethSvg.config.js +11 -9
  101. package/ChoroplethSvg.config.js.map +1 -1
  102. package/ChoroplethSvg.js +120 -131
  103. package/ChoroplethSvg.js.map +1 -1
  104. package/Column.config.js +15 -15
  105. package/Column.config.js.map +1 -1
  106. package/Column.js +101 -114
  107. package/Column.js.map +1 -1
  108. package/Ellipse.config.js +22 -2
  109. package/Ellipse.config.js.map +1 -1
  110. package/Ellipse.js +106 -99
  111. package/Ellipse.js.map +1 -1
  112. package/FillerGauge.config.js +8 -8
  113. package/FillerGauge.config.js.map +1 -1
  114. package/FillerGauge.js +107 -120
  115. package/FillerGauge.js.map +1 -1
  116. package/Image.js +81 -97
  117. package/Image.js.map +1 -1
  118. package/Line.config.js +8 -8
  119. package/Line.config.js.map +1 -1
  120. package/Line.js +101 -114
  121. package/Line.js.map +1 -1
  122. package/LinkGraph.config.js +4 -4
  123. package/LinkGraph.js +128 -141
  124. package/LinkGraph.js.map +1 -1
  125. package/Map.config.js +740 -0
  126. package/Map.config.js.map +1 -0
  127. package/Map.js +3137 -0
  128. package/Map.js.map +1 -0
  129. package/Markdown.config.js +12 -12
  130. package/Markdown.config.js.map +1 -1
  131. package/Markdown.js +99 -115
  132. package/Markdown.js.map +1 -1
  133. package/MarkerGauge.config.js +6 -6
  134. package/MarkerGauge.config.js.map +1 -1
  135. package/MarkerGauge.js +2953 -3060
  136. package/MarkerGauge.js.map +1 -1
  137. package/ParallelCoordinates.config.js +11 -11
  138. package/ParallelCoordinates.config.js.map +1 -1
  139. package/ParallelCoordinates.js +137 -139
  140. package/ParallelCoordinates.js.map +1 -1
  141. package/Pie.config.js +13 -13
  142. package/Pie.config.js.map +1 -1
  143. package/Pie.js +912 -1019
  144. package/Pie.js.map +1 -1
  145. package/Punchcard.config.js +11 -11
  146. package/Punchcard.config.js.map +1 -1
  147. package/Punchcard.js +153 -155
  148. package/Punchcard.js.map +1 -1
  149. package/README.internal.md +36 -3
  150. package/README.md +7 -9
  151. package/Rectangle.config.js +32 -12
  152. package/Rectangle.config.js.map +1 -1
  153. package/Rectangle.js +187 -183
  154. package/Rectangle.js.map +1 -1
  155. package/Sankey.config.js +35 -25
  156. package/Sankey.config.js.map +1 -1
  157. package/Sankey.js +2964 -3079
  158. package/Sankey.js.map +1 -1
  159. package/Scatter.config.js +11 -11
  160. package/Scatter.config.js.map +1 -1
  161. package/Scatter.js +231 -247
  162. package/Scatter.js.map +1 -1
  163. package/SingleValue.config.js +23 -22
  164. package/SingleValue.config.js.map +1 -1
  165. package/SingleValue.js +423 -439
  166. package/SingleValue.js.map +1 -1
  167. package/SingleValueBasic.js +20 -20
  168. package/SingleValueBasic.js.map +1 -1
  169. package/SingleValueIcon.config.js +33 -34
  170. package/SingleValueIcon.config.js.map +1 -1
  171. package/SingleValueIcon.js +176 -181
  172. package/SingleValueIcon.js.map +1 -1
  173. package/SingleValueRadial.config.js +22 -22
  174. package/SingleValueRadial.config.js.map +1 -1
  175. package/SingleValueRadial.js +389 -405
  176. package/SingleValueRadial.js.map +1 -1
  177. package/Table.config.js +19 -7
  178. package/Table.config.js.map +1 -1
  179. package/Table.js +522 -383
  180. package/Table.js.map +1 -1
  181. package/common/Charting.js +21 -22
  182. package/common/Charting.js.map +1 -1
  183. package/common/ChartingApi.js +2 -2
  184. package/common/ChartingApi.js.map +1 -1
  185. package/common/EventsDoc.js +14 -15
  186. package/common/EventsDoc.js.map +1 -1
  187. package/common/GaugeMajorTicks.js +2 -2
  188. package/common/GaugeMajorTicks.js.map +1 -1
  189. package/common/GaugeValueMarker.js +2 -2
  190. package/common/GaugeValueMarker.js.map +1 -1
  191. package/common/OptionsDoc.js +7 -8
  192. package/common/OptionsDoc.js.map +1 -1
  193. package/common/OverviewDoc.js +22 -22
  194. package/common/OverviewDoc.js.map +1 -1
  195. package/common/SplunkVisualization.js +4 -4
  196. package/common/SplunkVisualization.js.map +1 -1
  197. package/common/SplunkVisualizationApi.js +2 -2
  198. package/common/SplunkVisualizationApi.js.map +1 -1
  199. package/common/ThemesDoc.js +16 -16
  200. package/common/ThemesDoc.js.map +1 -1
  201. package/common/chartingUtils.js +4 -4
  202. package/common/chartingUtils.js.map +1 -1
  203. package/common/docUtils.js +4 -4
  204. package/common/docUtils.js.map +1 -1
  205. package/common/gaugeUtils.js +13 -13
  206. package/common/gaugeUtils.js.map +1 -1
  207. package/common/shapeUtils.js +8 -8
  208. package/common/shapeUtils.js.map +1 -1
  209. package/common/withDashboardViz.js +53 -68
  210. package/common/withDashboardViz.js.map +1 -1
  211. package/loki.config.js +2 -0
  212. package/package.json +19 -15
  213. package/common/version.js +0 -110
  214. package/common/version.js.map +0 -1
  215. package/scripts/generateVersion.js +0 -13
package/SingleValue.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 = 233);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 244);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -149,6 +149,10 @@ exports.defaultContext = {
149
149
  }, {
150
150
  from: 80,
151
151
  value: '#118832'
152
+ }],
153
+ majorColorMatchConfig: [{
154
+ match: '',
155
+ value: '#5C33FF'
152
156
  }]
153
157
  };
154
158
 
@@ -274,14 +278,12 @@ var React = __webpack_require__(1);
274
278
 
275
279
  var styled_components_1 = __webpack_require__(4);
276
280
 
277
- var SizeAwareWrapper_1 = __webpack_require__(18);
281
+ var SizeAwareWrapper_1 = __webpack_require__(16);
278
282
 
279
- var style_1 = __webpack_require__(14);
283
+ var style_1 = __webpack_require__(13);
280
284
 
281
285
  var colorUtils_1 = __webpack_require__(11);
282
286
 
283
- var version_1 = __webpack_require__(13);
284
-
285
287
  var Item = styled_components_1.default.div.attrs(function (_ref) {
286
288
  var width = _ref.width;
287
289
  return {
@@ -337,7 +339,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
337
339
 
338
340
  return React.createElement(FixSizeItem, {
339
341
  "data-test": "fix-size-item",
340
- "data-splunk-visualization-version": version_1.version,
342
+ "data-splunk-visualization-version": "24.3.0 - 1c1ae4b3c",
341
343
  width: width,
342
344
  height: height,
343
345
  backgroundColor: backgroundColor
@@ -360,34 +362,34 @@ exports.default = withFixedSizeContainer;
360
362
  /***/ }),
361
363
 
362
364
  /***/ 13:
363
- /***/ (function(module, exports, __webpack_require__) {
364
-
365
- "use strict";
366
-
365
+ /***/ (function(module, exports) {
367
366
 
368
- Object.defineProperty(exports, "__esModule", {
369
- value: true
370
- });
371
- exports.version = void 0;
372
- exports.version = '24.2.0';
367
+ module.exports = require("@splunk/visualizations-shared/style");
373
368
 
374
369
  /***/ }),
375
370
 
376
371
  /***/ 14:
377
372
  /***/ (function(module, exports) {
378
373
 
379
- module.exports = require("@splunk/visualizations-shared/style");
374
+ module.exports = require("@splunk/visualizations-shared/schemaUtils");
380
375
 
381
376
  /***/ }),
382
377
 
383
378
  /***/ 15:
384
379
  /***/ (function(module, exports) {
385
380
 
386
- module.exports = require("@splunk/visualizations-shared/schemaUtils");
381
+ module.exports = require("@babel/runtime/helpers/createClass");
387
382
 
388
383
  /***/ }),
389
384
 
390
385
  /***/ 16:
386
+ /***/ (function(module, exports) {
387
+
388
+ module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
389
+
390
+ /***/ }),
391
+
392
+ /***/ 17:
391
393
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
392
394
 
393
395
  "use strict";
@@ -422,17 +424,17 @@ __webpack_require__.r(__webpack_exports__);
422
424
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lighten", function() { return lighten; });
423
425
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "darken", function() { return darken; });
424
426
  /* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "handleValueClickCallback", function() { return handleValueClickCallback; });
425
- /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(7);
427
+ /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
426
428
  /* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
427
429
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
428
430
  /* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
429
431
  /* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22);
430
432
  /* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__);
431
- /* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(45);
433
+ /* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(44);
432
434
  /* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__);
433
- /* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(19);
435
+ /* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(18);
434
436
  /* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__);
435
- /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(41);
437
+ /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(40);
436
438
  /* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__);
437
439
 
438
440
 
@@ -1396,24 +1398,17 @@ var handleValueClickCallback = function handleValueClickCallback(ev, majorValue,
1396
1398
 
1397
1399
  /***/ }),
1398
1400
 
1399
- /***/ 17:
1400
- /***/ (function(module, exports) {
1401
-
1402
- module.exports = require("@babel/runtime/helpers/createClass");
1403
-
1404
- /***/ }),
1405
-
1406
1401
  /***/ 18:
1407
1402
  /***/ (function(module, exports) {
1408
1403
 
1409
- module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
1404
+ module.exports = require("@splunk/visualizations-shared/propUtils");
1410
1405
 
1411
1406
  /***/ }),
1412
1407
 
1413
1408
  /***/ 19:
1414
1409
  /***/ (function(module, exports) {
1415
1410
 
1416
- module.exports = require("@splunk/visualizations-shared/propUtils");
1411
+ module.exports = require("@splunk/themes/variables");
1417
1412
 
1418
1413
  /***/ }),
1419
1414
 
@@ -1427,7 +1422,7 @@ module.exports = require("lodash");
1427
1422
  /***/ 20:
1428
1423
  /***/ (function(module, exports) {
1429
1424
 
1430
- module.exports = require("@splunk/themes/variables");
1425
+ module.exports = require("@babel/runtime/helpers/typeof");
1431
1426
 
1432
1427
  /***/ }),
1433
1428
 
@@ -1446,13 +1441,142 @@ module.exports = require("@splunk/visualizations-shared/numberUtils");
1446
1441
  /***/ }),
1447
1442
 
1448
1443
  /***/ 23:
1449
- /***/ (function(module, exports) {
1444
+ /***/ (function(module, exports, __webpack_require__) {
1450
1445
 
1451
- module.exports = require("@babel/runtime/helpers/typeof");
1446
+ "use strict";
1447
+
1448
+
1449
+ var _defineProperty = __webpack_require__(8);
1450
+
1451
+ Object.defineProperty(exports, "__esModule", {
1452
+ value: true
1453
+ });
1454
+ exports.getSortingParams = exports.SortParamsPropTypes = void 0;
1455
+
1456
+ var T = __webpack_require__(0);
1457
+
1458
+ var lodash_1 = __webpack_require__(2);
1459
+
1460
+ var DataSource_1 = __webpack_require__(33);
1461
+
1462
+ exports.SortParamsPropTypes = T.shape({
1463
+ currentSortKey: T.string,
1464
+ currentSortDir: T.oneOf(DataSource_1.validSortDirs),
1465
+ onSort: T.func
1466
+ });
1467
+
1468
+ var getSortingParams = function getSortingParams(_ref) {
1469
+ var requestParams = _ref.requestParams,
1470
+ onRequestParamsChange = _ref.onRequestParamsChange;
1471
+ var currentSortKey;
1472
+ var currentSortDir;
1473
+ var nextSortDirMap = {
1474
+ asc: 'desc',
1475
+ desc: 'asc',
1476
+ none: 'asc'
1477
+ };
1478
+ var onSort;
1479
+
1480
+ if (lodash_1.isFunction(onRequestParamsChange)) {
1481
+ if (requestParams && lodash_1.has(requestParams, 'sort')) {
1482
+ currentSortKey = Object.keys(requestParams.sort).shift();
1483
+ currentSortDir = requestParams.sort[currentSortKey];
1484
+ } // undid memoization since there is a dependency on requestParams, which is a deeply nested object
1485
+
1486
+
1487
+ onSort = function onSort(e, _ref2) {
1488
+ var sortKey = _ref2.sortKey,
1489
+ sortDir = _ref2.sortDir;
1490
+
1491
+ if (typeof sortKey === 'string') {
1492
+ var nextSortDir = lodash_1.has(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
1493
+ onRequestParamsChange(Object.assign(Object.assign({}, requestParams), {
1494
+ offset: 0,
1495
+ sort: _defineProperty({}, sortKey, nextSortDir)
1496
+ }));
1497
+ } else {
1498
+ onRequestParamsChange(requestParams);
1499
+ }
1500
+ };
1501
+ }
1502
+
1503
+ return {
1504
+ currentSortKey: currentSortKey,
1505
+ currentSortDir: currentSortDir,
1506
+ onSort: onSort
1507
+ };
1508
+ };
1509
+
1510
+ exports.getSortingParams = getSortingParams;
1511
+
1512
+ /***/ }),
1513
+
1514
+ /***/ 24:
1515
+ /***/ (function(module, exports, __webpack_require__) {
1516
+
1517
+ "use strict";
1518
+
1519
+
1520
+ Object.defineProperty(exports, "__esModule", {
1521
+ value: true
1522
+ });
1523
+ exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
1524
+
1525
+ var T = __webpack_require__(0);
1526
+
1527
+ var lodash_1 = __webpack_require__(2);
1528
+
1529
+ exports.PaginatorParamsPropTypes = T.shape({
1530
+ isPaging: T.bool,
1531
+ current: T.number,
1532
+ totalPages: T.number,
1533
+ onChange: T.func
1534
+ });
1535
+
1536
+ var getPaginationParams = function getPaginationParams(_ref) {
1537
+ var requestParams = _ref.requestParams,
1538
+ meta = _ref.meta,
1539
+ onRequestParamsChange = _ref.onRequestParamsChange;
1540
+ var totalCount = meta && meta.totalCount || 0;
1541
+ var offset = requestParams && requestParams.offset || 0;
1542
+ var count = requestParams && requestParams.count;
1543
+ var totalPages = typeof count === 'number' && count > 0 ? Math.ceil(totalCount / count) : 0;
1544
+ var current = typeof count === 'number' && count > 0 ? Math.floor(offset / count) + 1 : 0;
1545
+ var isPaging = totalPages > 1 && lodash_1.isFunction(onRequestParamsChange);
1546
+
1547
+ var onChangeHandler = function onChangeHandler(e, _ref2) {
1548
+ var page = _ref2.page,
1549
+ countArg = _ref2.count;
1550
+ var newParams = lodash_1.cloneDeep(requestParams);
1551
+
1552
+ if (typeof countArg === 'number') {
1553
+ newParams.count = countArg;
1554
+ newParams.offset = 0;
1555
+ }
1556
+
1557
+ var pageCount = typeof newParams.count === 'number' ? newParams.count : 10;
1558
+
1559
+ if (typeof page === 'number' && page > 0) {
1560
+ newParams.count = pageCount;
1561
+ newParams.offset = (page - 1) * pageCount;
1562
+ }
1563
+
1564
+ onRequestParamsChange(newParams);
1565
+ };
1566
+
1567
+ return {
1568
+ isPaging: isPaging,
1569
+ current: current,
1570
+ totalPages: totalPages,
1571
+ onChange: lodash_1.isFunction(onRequestParamsChange) ? onChangeHandler : lodash_1.noop
1572
+ };
1573
+ };
1574
+
1575
+ exports.getPaginationParams = getPaginationParams;
1452
1576
 
1453
1577
  /***/ }),
1454
1578
 
1455
- /***/ 233:
1579
+ /***/ 244:
1456
1580
  /***/ (function(module, exports, __webpack_require__) {
1457
1581
 
1458
1582
  "use strict";
@@ -1463,13 +1587,13 @@ Object.defineProperty(exports, "__esModule", {
1463
1587
  });
1464
1588
  exports.themes = exports.computeVizProps = exports.PureSingleValue = exports.config = void 0;
1465
1589
 
1466
- var SingleValue_1 = __webpack_require__(256);
1590
+ var SingleValue_1 = __webpack_require__(267);
1467
1591
 
1468
- var withDashboardViz_1 = __webpack_require__(28);
1592
+ var withDashboardViz_1 = __webpack_require__(27);
1469
1593
 
1470
- var singleValueUtils_1 = __webpack_require__(16);
1594
+ var singleValueUtils_1 = __webpack_require__(17);
1471
1595
 
1472
- var config_1 = __webpack_require__(234);
1596
+ var config_1 = __webpack_require__(245);
1473
1597
 
1474
1598
  exports.config = config_1.default;
1475
1599
  exports.PureSingleValue = SingleValue_1.default;
@@ -1508,7 +1632,7 @@ exports.default = viz;
1508
1632
 
1509
1633
  /***/ }),
1510
1634
 
1511
- /***/ 234:
1635
+ /***/ 245:
1512
1636
  /***/ (function(module, exports, __webpack_require__) {
1513
1637
 
1514
1638
  "use strict";
@@ -1520,39 +1644,39 @@ Object.defineProperty(exports, "__esModule", {
1520
1644
 
1521
1645
  var i18n_1 = __webpack_require__(3);
1522
1646
 
1523
- var schemaUtils_1 = __webpack_require__(15);
1647
+ var schemaUtils_1 = __webpack_require__(14);
1524
1648
 
1525
1649
  var PresetPalettes_1 = __webpack_require__(49);
1526
1650
 
1527
- var variables_1 = __webpack_require__(235);
1651
+ var variables_1 = __webpack_require__(246);
1528
1652
 
1529
1653
  var pick_1 = __webpack_require__(21);
1530
1654
 
1531
- var variables_2 = __webpack_require__(20);
1655
+ var variables_2 = __webpack_require__(19);
1532
1656
 
1533
- var visualization_icons_1 = __webpack_require__(43);
1657
+ var visualization_icons_1 = __webpack_require__(42);
1534
1658
 
1535
1659
  var singleValueContext_1 = __webpack_require__(103);
1536
1660
 
1537
1661
  var VizBehavior_1 = __webpack_require__(5);
1538
1662
 
1539
- var DynamicMajorColorEditor_1 = __webpack_require__(77);
1663
+ var DynamicMajorColorEditor_1 = __webpack_require__(76);
1540
1664
 
1541
- var DynamicTrendColorEditor_1 = __webpack_require__(78);
1665
+ var DynamicTrendColorEditor_1 = __webpack_require__(77);
1542
1666
 
1543
- var DynamicBackgroundColorEditor_1 = __webpack_require__(79);
1667
+ var DynamicBackgroundColorEditor_1 = __webpack_require__(78);
1544
1668
 
1545
1669
  var StaticMajorAndTrendLayout_1 = __webpack_require__(104);
1546
1670
 
1547
- var StaticMajorColorEditor_1 = __webpack_require__(80);
1671
+ var StaticMajorColorEditor_1 = __webpack_require__(79);
1548
1672
 
1549
- var StaticTrendColorEditor_1 = __webpack_require__(81);
1673
+ var StaticTrendColorEditor_1 = __webpack_require__(80);
1550
1674
 
1551
- var StaticBackgroundColorEditor_1 = __webpack_require__(69);
1675
+ var StaticBackgroundColorEditor_1 = __webpack_require__(68);
1552
1676
 
1553
1677
  var configUtils_1 = __webpack_require__(6);
1554
1678
 
1555
- var VizCategory_1 = __webpack_require__(27);
1679
+ var VizCategory_1 = __webpack_require__(26);
1556
1680
 
1557
1681
  var dataContract = {
1558
1682
  requiredDataSources: [{
@@ -2031,150 +2155,132 @@ exports.default = configUtils_1.enhanceConfig(config);
2031
2155
 
2032
2156
  /***/ }),
2033
2157
 
2034
- /***/ 235:
2158
+ /***/ 246:
2035
2159
  /***/ (function(module, exports) {
2036
2160
 
2037
2161
  module.exports = require("@splunk/visualization-themes/variables");
2038
2162
 
2039
2163
  /***/ }),
2040
2164
 
2041
- /***/ 24:
2165
+ /***/ 25:
2042
2166
  /***/ (function(module, exports, __webpack_require__) {
2043
2167
 
2044
2168
  "use strict";
2045
2169
 
2046
2170
 
2047
- var _defineProperty = __webpack_require__(7);
2048
-
2049
2171
  Object.defineProperty(exports, "__esModule", {
2050
2172
  value: true
2051
2173
  });
2052
- exports.getSortingParams = exports.SortParamsPropTypes = void 0;
2174
+ exports.shouldShowIconPlaceholder = void 0;
2175
+
2176
+ var React = __webpack_require__(1);
2053
2177
 
2054
2178
  var T = __webpack_require__(0);
2055
2179
 
2056
2180
  var lodash_1 = __webpack_require__(2);
2057
2181
 
2058
- var DataSource_1 = __webpack_require__(34);
2059
-
2060
- exports.SortParamsPropTypes = T.shape({
2061
- currentSortKey: T.string,
2062
- currentSortDir: T.oneOf(DataSource_1.validSortDirs),
2063
- onSort: T.func
2064
- });
2065
-
2066
- var getSortingParams = function getSortingParams(_ref) {
2067
- var requestParams = _ref.requestParams,
2068
- onRequestParamsChange = _ref.onRequestParamsChange;
2069
- var currentSortKey;
2070
- var currentSortDir;
2071
- var nextSortDirMap = {
2072
- asc: 'desc',
2073
- desc: 'asc',
2074
- none: 'asc'
2075
- };
2076
- var onSort;
2077
-
2078
- if (lodash_1.isFunction(onRequestParamsChange)) {
2079
- if (requestParams && lodash_1.has(requestParams, 'sort')) {
2080
- currentSortKey = Object.keys(requestParams.sort).shift();
2081
- currentSortDir = requestParams.sort[currentSortKey];
2082
- } // undid memoization since there is a dependency on requestParams, which is a deeply nested object
2182
+ var i18n_1 = __webpack_require__(3);
2083
2183
 
2184
+ var Message_1 = __webpack_require__(9);
2084
2185
 
2085
- onSort = function onSort(e, _ref2) {
2086
- var sortKey = _ref2.sortKey,
2087
- sortDir = _ref2.sortDir;
2186
+ var FixedSizeContainer_1 = __webpack_require__(12);
2187
+ /**
2188
+ * @method shouldShowIconPlaceholder
2189
+ * @param {object} dataSources
2190
+ * @param {boolean} loading
2191
+ * @returns {boolean}
2192
+ */
2088
2193
 
2089
- if (typeof sortKey === 'string') {
2090
- var nextSortDir = lodash_1.has(nextSortDirMap, sortDir) ? nextSortDirMap[sortDir] : 'none';
2091
- onRequestParamsChange(Object.assign(Object.assign({}, requestParams), {
2092
- offset: 0,
2093
- sort: _defineProperty({}, sortKey, nextSortDir)
2094
- }));
2095
- } else {
2096
- onRequestParamsChange(requestParams);
2097
- }
2098
- };
2099
- }
2100
2194
 
2101
- return {
2102
- currentSortKey: currentSortKey,
2103
- currentSortDir: currentSortDir,
2104
- onSort: onSort
2105
- };
2195
+ var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
2196
+ var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
2197
+ var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
2198
+ var noData = data === undefined;
2199
+ var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
2200
+ var noFields = fields === undefined;
2201
+ return loading || noData || noFields;
2106
2202
  };
2107
2203
 
2108
- exports.getSortingParams = getSortingParams;
2109
-
2110
- /***/ }),
2111
-
2112
- /***/ 25:
2113
- /***/ (function(module, exports, __webpack_require__) {
2204
+ exports.shouldShowIconPlaceholder = shouldShowIconPlaceholder;
2205
+ var propTypes = {
2206
+ icon: T.func,
2207
+ width: T.oneOfType([T.string, T.number]),
2208
+ height: T.oneOfType([T.string, T.number]),
2209
+ // eslint-disable-next-line react/no-unused-prop-types
2210
+ backgroundColor: T.string
2211
+ };
2212
+ /**
2213
+ * @method IconPlaceholder
2214
+ * @param {IconPlaceholderProps} props
2215
+ * @returns {React.ReactElement}
2216
+ */
2114
2217
 
2115
- "use strict";
2218
+ var IconPlaceholder = function IconPlaceholder(props) {
2219
+ var width = props.width,
2220
+ height = props.height,
2221
+ icon = props.icon;
2116
2222
 
2223
+ if (icon) {
2224
+ return React.createElement(icon, {
2225
+ style: {
2226
+ left: '50%',
2227
+ top: '50%',
2228
+ color: 'grey',
2229
+ position: 'absolute',
2230
+ transform: 'translate(-50%, -50%)'
2231
+ },
2232
+ width: '50%',
2233
+ height: '50%'
2234
+ });
2235
+ }
2117
2236
 
2118
- Object.defineProperty(exports, "__esModule", {
2119
- value: true
2120
- });
2121
- exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
2122
-
2123
- var T = __webpack_require__(0);
2124
-
2125
- var lodash_1 = __webpack_require__(2);
2126
-
2127
- exports.PaginatorParamsPropTypes = T.shape({
2128
- isPaging: T.bool,
2129
- current: T.number,
2130
- totalPages: T.number,
2131
- onChange: T.func
2132
- });
2133
-
2134
- var getPaginationParams = function getPaginationParams(_ref) {
2135
- var requestParams = _ref.requestParams,
2136
- meta = _ref.meta,
2137
- onRequestParamsChange = _ref.onRequestParamsChange;
2138
- var totalCount = meta && meta.totalCount || 0;
2139
- var offset = requestParams && requestParams.offset || 0;
2140
- var count = requestParams && requestParams.count;
2141
- var totalPages = typeof count === 'number' && count > 0 ? Math.ceil(totalCount / count) : 0;
2142
- var current = typeof count === 'number' && count > 0 ? Math.floor(offset / count) + 1 : 0;
2143
- var isPaging = totalPages > 1 && lodash_1.isFunction(onRequestParamsChange);
2237
+ return React.createElement(Message_1.default, {
2238
+ width: width,
2239
+ height: height,
2240
+ level: "warning",
2241
+ message: i18n_1._('No DataSource Connected')
2242
+ });
2243
+ };
2144
2244
 
2145
- var onChangeHandler = function onChangeHandler(e, _ref2) {
2146
- var page = _ref2.page,
2147
- countArg = _ref2.count;
2148
- var newParams = lodash_1.cloneDeep(requestParams);
2245
+ IconPlaceholder.propTypes = propTypes;
2246
+ IconPlaceholder.defaultProps = {
2247
+ width: '100%',
2248
+ height: 250
2249
+ };
2250
+ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
2149
2251
 
2150
- if (typeof countArg === 'number') {
2151
- newParams.count = countArg;
2152
- newParams.offset = 0;
2153
- }
2252
+ /***/ }),
2154
2253
 
2155
- var pageCount = typeof newParams.count === 'number' ? newParams.count : 10;
2254
+ /***/ 26:
2255
+ /***/ (function(module, exports, __webpack_require__) {
2156
2256
 
2157
- if (typeof page === 'number' && page > 0) {
2158
- newParams.count = pageCount;
2159
- newParams.offset = (page - 1) * pageCount;
2160
- }
2257
+ "use strict";
2161
2258
 
2162
- onRequestParamsChange(newParams);
2163
- };
2164
2259
 
2165
- return {
2166
- isPaging: isPaging,
2167
- current: current,
2168
- totalPages: totalPages,
2169
- onChange: lodash_1.isFunction(onRequestParamsChange) ? onChangeHandler : lodash_1.noop
2170
- };
2171
- };
2260
+ Object.defineProperty(exports, "__esModule", {
2261
+ value: true
2262
+ });
2263
+ exports.VizCategory = void 0;
2264
+ var VizCategory;
2172
2265
 
2173
- exports.getPaginationParams = getPaginationParams;
2266
+ (function (VizCategory) {
2267
+ VizCategory["SINGLE_VALUE"] = "Single Value";
2268
+ VizCategory["TRENDS"] = "Trends";
2269
+ VizCategory["COMPARISONS"] = "Comparisons";
2270
+ VizCategory["TABLE"] = "Table";
2271
+ VizCategory["GAUGE"] = "Gauge";
2272
+ VizCategory["DISTRIBUTIONS"] = "Distributions";
2273
+ VizCategory["CHOROPLETH"] = "Choropleth Maps";
2274
+ VizCategory["SHAPES"] = "Shapes";
2275
+ VizCategory["MISC"] = "misc";
2276
+ VizCategory["FLOW"] = "Flow";
2277
+ VizCategory["CORRELATION"] = "Correlation";
2278
+ VizCategory["SPATIAL"] = "Spatial";
2279
+ })(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
2174
2280
 
2175
2281
  /***/ }),
2176
2282
 
2177
- /***/ 256:
2283
+ /***/ 267:
2178
2284
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
2179
2285
 
2180
2286
  "use strict";
@@ -2186,7 +2292,7 @@ __webpack_require__.d(__webpack_exports__, "CONTENT_OVERFLOW_FADEOUT_AREA_PX", f
2186
2292
  __webpack_require__.d(__webpack_exports__, "DEFAULT_CONTENT_HEIGHT_ALLOCATION_RATIO", function() { return /* binding */ DEFAULT_CONTENT_HEIGHT_ALLOCATION_RATIO; });
2187
2293
 
2188
2294
  // EXTERNAL MODULE: external "@babel/runtime/helpers/extends"
2189
- var extends_ = __webpack_require__(44);
2295
+ var extends_ = __webpack_require__(43);
2190
2296
  var extends_default = /*#__PURE__*/__webpack_require__.n(extends_);
2191
2297
 
2192
2298
  // EXTERNAL MODULE: external "react"
@@ -2202,36 +2308,36 @@ var external_styled_components_ = __webpack_require__(4);
2202
2308
  var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
2203
2309
 
2204
2310
  // EXTERNAL MODULE: external "lodash/pick"
2205
- var pick_ = __webpack_require__(64);
2311
+ var pick_ = __webpack_require__(63);
2206
2312
  var pick_default = /*#__PURE__*/__webpack_require__.n(pick_);
2207
2313
 
2208
2314
  // EXTERNAL MODULE: external "lodash/isEmpty"
2209
- var isEmpty_ = __webpack_require__(65);
2315
+ var isEmpty_ = __webpack_require__(64);
2210
2316
  var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty_);
2211
2317
 
2212
2318
  // EXTERNAL MODULE: external "@splunk/visualizations-shared/style"
2213
- var style_ = __webpack_require__(14);
2319
+ var style_ = __webpack_require__(13);
2214
2320
 
2215
2321
  // EXTERNAL MODULE: external "@splunk/visualizations-shared/SizeAwareWrapper"
2216
- var SizeAwareWrapper_ = __webpack_require__(18);
2322
+ var SizeAwareWrapper_ = __webpack_require__(16);
2217
2323
  var SizeAwareWrapper_default = /*#__PURE__*/__webpack_require__.n(SizeAwareWrapper_);
2218
2324
 
2219
2325
  // EXTERNAL MODULE: ./src/common/components/VizStyleWrapper.jsx
2220
2326
  var VizStyleWrapper = __webpack_require__(59);
2221
2327
 
2222
2328
  // EXTERNAL MODULE: external "@babel/runtime/helpers/defineProperty"
2223
- var defineProperty_ = __webpack_require__(7);
2329
+ var defineProperty_ = __webpack_require__(8);
2224
2330
  var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty_);
2225
2331
 
2226
2332
  // EXTERNAL MODULE: ./src/SingleValueBasic/SingleValueBasic.jsx + 2 modules
2227
- var SingleValueBasic = __webpack_require__(63);
2333
+ var SingleValueBasic = __webpack_require__(62);
2228
2334
 
2229
2335
  // EXTERNAL MODULE: external "@splunk/react-sparkline/Line"
2230
- var Line_ = __webpack_require__(84);
2336
+ var Line_ = __webpack_require__(83);
2231
2337
  var Line_default = /*#__PURE__*/__webpack_require__.n(Line_);
2232
2338
 
2233
2339
  // EXTERNAL MODULE: external "@splunk/visualizations-shared/propUtils"
2234
- var propUtils_ = __webpack_require__(19);
2340
+ var propUtils_ = __webpack_require__(18);
2235
2341
 
2236
2342
  // CONCATENATED MODULE: ./src/SingleValue/PureSingleValue/SingleValueSparkline.jsx
2237
2343
 
@@ -2295,13 +2401,13 @@ SingleValueSparkline_SingleValueSparkline.propTypes = {
2295
2401
  };
2296
2402
  /* harmony default export */ var PureSingleValue_SingleValueSparkline = (SingleValueSparkline_SingleValueSparkline);
2297
2403
  // EXTERNAL MODULE: external "@splunk/visualizations-shared/colorConstants"
2298
- var colorConstants_ = __webpack_require__(41);
2404
+ var colorConstants_ = __webpack_require__(40);
2299
2405
 
2300
2406
  // EXTERNAL MODULE: external "@splunk/visualizations-shared/numberUtils"
2301
2407
  var numberUtils_ = __webpack_require__(22);
2302
2408
 
2303
2409
  // EXTERNAL MODULE: ./src/common/utils/singleValueUtils.js
2304
- var singleValueUtils = __webpack_require__(16);
2410
+ var singleValueUtils = __webpack_require__(17);
2305
2411
 
2306
2412
  // CONCATENATED MODULE: ./src/SingleValue/PureSingleValue/utils/displayUtils.js
2307
2413
 
@@ -3030,130 +3136,12 @@ SingleValue_SingleValue.defaultProps = {
3030
3136
 
3031
3137
  /***/ }),
3032
3138
 
3033
- /***/ 26:
3034
- /***/ (function(module, exports, __webpack_require__) {
3035
-
3036
- "use strict";
3037
-
3038
-
3039
- Object.defineProperty(exports, "__esModule", {
3040
- value: true
3041
- });
3042
- exports.shouldShowIconPlaceholder = void 0;
3043
-
3044
- var React = __webpack_require__(1);
3045
-
3046
- var T = __webpack_require__(0);
3047
-
3048
- var lodash_1 = __webpack_require__(2);
3049
-
3050
- var i18n_1 = __webpack_require__(3);
3051
-
3052
- var Message_1 = __webpack_require__(9);
3053
-
3054
- var FixedSizeContainer_1 = __webpack_require__(12);
3055
- /**
3056
- * @method shouldShowIconPlaceholder
3057
- * @param {object} dataSources
3058
- * @param {boolean} loading
3059
- * @returns {boolean}
3060
- */
3061
-
3062
-
3063
- var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
3064
- var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
3065
- var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
3066
- var noData = data === undefined;
3067
- var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
3068
- var noFields = fields === undefined;
3069
- return loading || noData || noFields;
3070
- };
3071
-
3072
- exports.shouldShowIconPlaceholder = shouldShowIconPlaceholder;
3073
- var propTypes = {
3074
- icon: T.func,
3075
- width: T.oneOfType([T.string, T.number]),
3076
- height: T.oneOfType([T.string, T.number]),
3077
- // eslint-disable-next-line react/no-unused-prop-types
3078
- backgroundColor: T.string
3079
- };
3080
- /**
3081
- * @method IconPlaceholder
3082
- * @param {IconPlaceholderProps} props
3083
- * @returns {React.ReactElement}
3084
- */
3085
-
3086
- var IconPlaceholder = function IconPlaceholder(props) {
3087
- var width = props.width,
3088
- height = props.height,
3089
- icon = props.icon;
3090
-
3091
- if (icon) {
3092
- return React.createElement(icon, {
3093
- style: {
3094
- left: '50%',
3095
- top: '50%',
3096
- color: 'grey',
3097
- position: 'absolute',
3098
- transform: 'translate(-50%, -50%)'
3099
- },
3100
- width: '50%',
3101
- height: '50%'
3102
- });
3103
- }
3104
-
3105
- return React.createElement(Message_1.default, {
3106
- width: width,
3107
- height: height,
3108
- level: "warning",
3109
- message: i18n_1._('No DataSource Connected')
3110
- });
3111
- };
3112
-
3113
- IconPlaceholder.propTypes = propTypes;
3114
- IconPlaceholder.defaultProps = {
3115
- width: '100%',
3116
- height: 250
3117
- };
3118
- exports.default = FixedSizeContainer_1.default(IconPlaceholder);
3119
-
3120
- /***/ }),
3121
-
3122
3139
  /***/ 27:
3123
3140
  /***/ (function(module, exports, __webpack_require__) {
3124
3141
 
3125
3142
  "use strict";
3126
3143
 
3127
3144
 
3128
- Object.defineProperty(exports, "__esModule", {
3129
- value: true
3130
- });
3131
- exports.VizCategory = void 0;
3132
- var VizCategory;
3133
-
3134
- (function (VizCategory) {
3135
- VizCategory["SINGLE_VALUE"] = "Single Value";
3136
- VizCategory["TRENDS"] = "Trends";
3137
- VizCategory["COMPARISONS"] = "Comparisons";
3138
- VizCategory["TABLE"] = "Table";
3139
- VizCategory["GAUGE"] = "Gauge";
3140
- VizCategory["DISTRIBUTIONS"] = "Distributions";
3141
- VizCategory["CHOROPLETH"] = "Choropleth Maps";
3142
- VizCategory["SHAPES"] = "Shapes";
3143
- VizCategory["MISC"] = "misc";
3144
- VizCategory["FLOW"] = "Flow";
3145
- VizCategory["CORRELATION"] = "Correlation";
3146
- VizCategory["SPATIAL"] = "Spatial";
3147
- })(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
3148
-
3149
- /***/ }),
3150
-
3151
- /***/ 28:
3152
- /***/ (function(module, exports, __webpack_require__) {
3153
-
3154
- "use strict";
3155
-
3156
-
3157
3145
  Object.defineProperty(exports, "__esModule", {
3158
3146
  value: true
3159
3147
  });
@@ -3162,33 +3150,33 @@ var React = __webpack_require__(1);
3162
3150
 
3163
3151
  var lodash_1 = __webpack_require__(2);
3164
3152
 
3165
- var getSettingsFromThemedProps_1 = __webpack_require__(29);
3153
+ var getSettingsFromThemedProps_1 = __webpack_require__(28);
3166
3154
 
3167
- var Options_1 = __webpack_require__(30);
3155
+ var Options_1 = __webpack_require__(29);
3168
3156
 
3169
- var SanitizeProps_1 = __webpack_require__(31);
3157
+ var SanitizeProps_1 = __webpack_require__(30);
3170
3158
 
3171
3159
  var styled_components_1 = __webpack_require__(4);
3172
3160
 
3173
- var SplunkVisualization_1 = __webpack_require__(32);
3161
+ var SplunkVisualization_1 = __webpack_require__(31);
3174
3162
 
3175
3163
  var VizBehavior_1 = __webpack_require__(5);
3176
3164
 
3177
- var getSorting_1 = __webpack_require__(24);
3165
+ var getSorting_1 = __webpack_require__(23);
3178
3166
 
3179
- var getPagination_1 = __webpack_require__(25);
3167
+ var getPagination_1 = __webpack_require__(24);
3180
3168
 
3181
- var useDeepMemo_1 = __webpack_require__(35);
3169
+ var useDeepMemo_1 = __webpack_require__(34);
3182
3170
 
3183
- var JSONSchemaUtils_1 = __webpack_require__(36);
3171
+ var JSONSchemaUtils_1 = __webpack_require__(35);
3184
3172
 
3185
- var MissingPropsMessage_1 = __webpack_require__(37);
3173
+ var MissingPropsMessage_1 = __webpack_require__(36);
3186
3174
 
3187
- var withEditModeCover_1 = __webpack_require__(38);
3175
+ var withEditModeCover_1 = __webpack_require__(37);
3188
3176
 
3189
- var withPlaceholder_1 = __webpack_require__(39);
3177
+ var withPlaceholder_1 = __webpack_require__(38);
3190
3178
 
3191
- var hocUtils_1 = __webpack_require__(8);
3179
+ var hocUtils_1 = __webpack_require__(7);
3192
3180
  /**
3193
3181
  * hoc that wraps a pure react visualization in a Dashboard visualization
3194
3182
  * @param {DashboardVizOpts} opts
@@ -3201,6 +3189,7 @@ var withDashboardViz = function withDashboardViz(opts) {
3201
3189
  vizConfig = opts.vizConfig,
3202
3190
  _opts$computeVizProps = opts.computeVizProps,
3203
3191
  computeVizProps = _opts$computeVizProps === void 0 ? function () {} : _opts$computeVizProps,
3192
+ disableEditModeCover = opts.disableEditModeCover,
3204
3193
  useIconPlaceholder = opts.useIconPlaceholder; // sanitizing props before sending them to reactviz.
3205
3194
 
3206
3195
  var SanitizedReactViz = SanitizeProps_1.withSanitizedProps(ReactViz);
@@ -3365,42 +3354,42 @@ var withDashboardViz = function withDashboardViz(opts) {
3365
3354
 
3366
3355
  DashboardViz.config = vizConfig; // @ts-ignore: TODO fix sc upgrade TS issues
3367
3356
 
3368
- return styled_components_1.withTheme(withPlaceholder_1.default(withEditModeCover_1.default(DashboardViz), useIconPlaceholder));
3357
+ return styled_components_1.withTheme(withPlaceholder_1.default(withEditModeCover_1.default(DashboardViz, disableEditModeCover), useIconPlaceholder));
3369
3358
  };
3370
3359
 
3371
3360
  exports.default = withDashboardViz;
3372
3361
 
3373
3362
  /***/ }),
3374
3363
 
3375
- /***/ 29:
3364
+ /***/ 28:
3376
3365
  /***/ (function(module, exports) {
3377
3366
 
3378
3367
  module.exports = require("@splunk/themes/getSettingsFromThemedProps");
3379
3368
 
3380
3369
  /***/ }),
3381
3370
 
3382
- /***/ 3:
3371
+ /***/ 29:
3383
3372
  /***/ (function(module, exports) {
3384
3373
 
3385
- module.exports = require("@splunk/ui-utils/i18n");
3374
+ module.exports = require("@splunk/visualization-encoding/Options");
3386
3375
 
3387
3376
  /***/ }),
3388
3377
 
3389
- /***/ 30:
3378
+ /***/ 3:
3390
3379
  /***/ (function(module, exports) {
3391
3380
 
3392
- module.exports = require("@splunk/visualization-encoding/Options");
3381
+ module.exports = require("@splunk/ui-utils/i18n");
3393
3382
 
3394
3383
  /***/ }),
3395
3384
 
3396
- /***/ 31:
3385
+ /***/ 30:
3397
3386
  /***/ (function(module, exports) {
3398
3387
 
3399
3388
  module.exports = require("@splunk/visualizations-shared/SanitizeProps");
3400
3389
 
3401
3390
  /***/ }),
3402
3391
 
3403
- /***/ 32:
3392
+ /***/ 31:
3404
3393
  /***/ (function(module, exports, __webpack_require__) {
3405
3394
 
3406
3395
  "use strict";
@@ -3418,7 +3407,7 @@ var T = __webpack_require__(0);
3418
3407
 
3419
3408
  var lodash_1 = __webpack_require__(2);
3420
3409
 
3421
- var VizActionHandler_1 = __webpack_require__(33); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
3410
+ var VizActionHandler_1 = __webpack_require__(32); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
3422
3411
 
3423
3412
 
3424
3413
  exports.INITIAL_WIDTH = 250;
@@ -3552,7 +3541,7 @@ exports.default = SplunkVisualization;
3552
3541
 
3553
3542
  /***/ }),
3554
3543
 
3555
- /***/ 33:
3544
+ /***/ 32:
3556
3545
  /***/ (function(module, exports, __webpack_require__) {
3557
3546
 
3558
3547
  "use strict";
@@ -3560,7 +3549,7 @@ exports.default = SplunkVisualization;
3560
3549
 
3561
3550
  var _classCallCheck = __webpack_require__(10);
3562
3551
 
3563
- var _createClass = __webpack_require__(17);
3552
+ var _createClass = __webpack_require__(15);
3564
3553
 
3565
3554
  Object.defineProperty(exports, "__esModule", {
3566
3555
  value: true
@@ -3590,7 +3579,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
3590
3579
 
3591
3580
  /***/ }),
3592
3581
 
3593
- /***/ 34:
3582
+ /***/ 33:
3594
3583
  /***/ (function(module, exports, __webpack_require__) {
3595
3584
 
3596
3585
  "use strict";
@@ -3604,7 +3593,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
3604
3593
 
3605
3594
  /***/ }),
3606
3595
 
3607
- /***/ 35:
3596
+ /***/ 34:
3608
3597
  /***/ (function(module, exports, __webpack_require__) {
3609
3598
 
3610
3599
  "use strict";
@@ -3650,7 +3639,7 @@ exports.useDeepMemo = useDeepMemo;
3650
3639
 
3651
3640
  /***/ }),
3652
3641
 
3653
- /***/ 36:
3642
+ /***/ 35:
3654
3643
  /***/ (function(module, exports, __webpack_require__) {
3655
3644
 
3656
3645
  "use strict";
@@ -3684,7 +3673,7 @@ exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
3684
3673
 
3685
3674
  /***/ }),
3686
3675
 
3687
- /***/ 37:
3676
+ /***/ 36:
3688
3677
  /***/ (function(module, exports, __webpack_require__) {
3689
3678
 
3690
3679
  "use strict";
@@ -3765,7 +3754,7 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
3765
3754
 
3766
3755
  /***/ }),
3767
3756
 
3768
- /***/ 38:
3757
+ /***/ 37:
3769
3758
  /***/ (function(module, exports, __webpack_require__) {
3770
3759
 
3771
3760
  "use strict";
@@ -3779,16 +3768,14 @@ var React = __webpack_require__(1);
3779
3768
 
3780
3769
  var styled_components_1 = __webpack_require__(4);
3781
3770
 
3782
- var hocUtils_1 = __webpack_require__(8);
3783
-
3784
- var version_1 = __webpack_require__(13);
3771
+ var hocUtils_1 = __webpack_require__(7);
3785
3772
 
3786
3773
  var Cover = styled_components_1.default.div.withConfig({
3787
3774
  displayName: "withEditModeCover__Cover",
3788
3775
  componentId: "sc-1gsbnxb-0"
3789
3776
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
3790
3777
  var Blocker = styled_components_1.default.div.attrs({
3791
- 'data-splunk-visualization-version': version_1.version
3778
+ 'data-splunk-visualization-version': "24.3.0 - 1c1ae4b3c"
3792
3779
  }).withConfig({
3793
3780
  displayName: "withEditModeCover__Blocker",
3794
3781
  componentId: "sc-1gsbnxb-1"
@@ -3800,10 +3787,11 @@ var Blocker = styled_components_1.default.div.attrs({
3800
3787
  * @returns {ExtendedDashViz} Wrapper
3801
3788
  */
3802
3789
 
3803
- var withEditModeCover = function withEditModeCover(Visualization) {
3790
+ var withEditModeCover = function withEditModeCover(Visualization, disableEditModeCover) {
3804
3791
  var Wrapper = function Wrapper(props) {
3805
3792
  var mode = props.mode;
3806
- return React.createElement(Blocker, null, React.createElement(Visualization, Object.assign({}, props)), mode === 'edit' && React.createElement(Cover, {
3793
+ var showEditCover = mode === 'edit' && !disableEditModeCover;
3794
+ return React.createElement(Blocker, null, React.createElement(Visualization, Object.assign({}, props)), showEditCover && React.createElement(Cover, {
3807
3795
  "data-test": "edit-mode-cover"
3808
3796
  }));
3809
3797
  };
@@ -3819,7 +3807,7 @@ exports.default = withEditModeCover;
3819
3807
 
3820
3808
  /***/ }),
3821
3809
 
3822
- /***/ 39:
3810
+ /***/ 38:
3823
3811
  /***/ (function(module, exports, __webpack_require__) {
3824
3812
 
3825
3813
  "use strict";
@@ -3833,11 +3821,11 @@ var React = __webpack_require__(1);
3833
3821
 
3834
3822
  var colorUtils_1 = __webpack_require__(11);
3835
3823
 
3836
- var IconPlaceholder_1 = __webpack_require__(26);
3824
+ var IconPlaceholder_1 = __webpack_require__(25);
3837
3825
 
3838
3826
  var VizBehavior_1 = __webpack_require__(5);
3839
3827
 
3840
- var hocUtils_1 = __webpack_require__(8);
3828
+ var hocUtils_1 = __webpack_require__(7);
3841
3829
 
3842
3830
  var withPlaceholder = function withPlaceholder(Visualization) {
3843
3831
  var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
@@ -3886,28 +3874,28 @@ module.exports = require("styled-components");
3886
3874
 
3887
3875
  /***/ }),
3888
3876
 
3889
- /***/ 41:
3877
+ /***/ 40:
3890
3878
  /***/ (function(module, exports) {
3891
3879
 
3892
3880
  module.exports = require("@splunk/visualizations-shared/colorConstants");
3893
3881
 
3894
3882
  /***/ }),
3895
3883
 
3896
- /***/ 43:
3884
+ /***/ 42:
3897
3885
  /***/ (function(module, exports) {
3898
3886
 
3899
3887
  module.exports = require("@splunk/visualization-icons");
3900
3888
 
3901
3889
  /***/ }),
3902
3890
 
3903
- /***/ 44:
3891
+ /***/ 43:
3904
3892
  /***/ (function(module, exports) {
3905
3893
 
3906
3894
  module.exports = require("@babel/runtime/helpers/extends");
3907
3895
 
3908
3896
  /***/ }),
3909
3897
 
3910
- /***/ 45:
3898
+ /***/ 44:
3911
3899
  /***/ (function(module, exports) {
3912
3900
 
3913
3901
  module.exports = require("@splunk/visualizations-shared/domUtils");
@@ -3989,7 +3977,7 @@ VizStyleWrapper.displayName = 'VizStyleWrapper';
3989
3977
  "use strict";
3990
3978
 
3991
3979
 
3992
- var _defineProperty = __webpack_require__(7);
3980
+ var _defineProperty = __webpack_require__(8);
3993
3981
 
3994
3982
  var __rest = this && this.__rest || function (s, e) {
3995
3983
  var t = {};
@@ -4011,7 +3999,7 @@ exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOp
4011
3999
 
4012
4000
  var lodash_1 = __webpack_require__(2);
4013
4001
 
4014
- var schemaUtils_1 = __webpack_require__(15);
4002
+ var schemaUtils_1 = __webpack_require__(14);
4015
4003
 
4016
4004
  var VizBehavior_1 = __webpack_require__(5);
4017
4005
 
@@ -4175,7 +4163,7 @@ exports.generatePrecisionValues = generatePrecisionValues;
4175
4163
 
4176
4164
  /***/ }),
4177
4165
 
4178
- /***/ 63:
4166
+ /***/ 62:
4179
4167
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4180
4168
 
4181
4169
  "use strict";
@@ -4186,7 +4174,7 @@ __webpack_require__.r(__webpack_exports__);
4186
4174
  __webpack_require__.d(__webpack_exports__, "SingleValueTrendValue", function() { return /* binding */ SingleValueTrendValue; });
4187
4175
 
4188
4176
  // EXTERNAL MODULE: external "@babel/runtime/helpers/extends"
4189
- var extends_ = __webpack_require__(44);
4177
+ var extends_ = __webpack_require__(43);
4190
4178
  var extends_default = /*#__PURE__*/__webpack_require__.n(extends_);
4191
4179
 
4192
4180
  // EXTERNAL MODULE: external "react"
@@ -4202,14 +4190,14 @@ var external_styled_components_ = __webpack_require__(4);
4202
4190
  var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
4203
4191
 
4204
4192
  // EXTERNAL MODULE: ./src/common/utils/singleValueUtils.js
4205
- var singleValueUtils = __webpack_require__(16);
4193
+ var singleValueUtils = __webpack_require__(17);
4206
4194
 
4207
4195
  // EXTERNAL MODULE: external "@splunk/react-icons/ArrowUp"
4208
- var ArrowUp_ = __webpack_require__(66);
4196
+ var ArrowUp_ = __webpack_require__(65);
4209
4197
  var ArrowUp_default = /*#__PURE__*/__webpack_require__.n(ArrowUp_);
4210
4198
 
4211
4199
  // EXTERNAL MODULE: external "@splunk/react-icons/ArrowDown"
4212
- var ArrowDown_ = __webpack_require__(67);
4200
+ var ArrowDown_ = __webpack_require__(66);
4213
4201
  var ArrowDown_default = /*#__PURE__*/__webpack_require__.n(ArrowDown_);
4214
4202
 
4215
4203
  // CONCATENATED MODULE: ./src/SingleValueBasic/TrendValue.jsx
@@ -4279,7 +4267,7 @@ TrendValue_SingleValueContent.propTypes = {
4279
4267
  };
4280
4268
  /* harmony default export */ var TrendValue = (TrendValue_SingleValueContent);
4281
4269
  // EXTERNAL MODULE: external "cssesc"
4282
- var external_cssesc_ = __webpack_require__(68);
4270
+ var external_cssesc_ = __webpack_require__(67);
4283
4271
  var external_cssesc_default = /*#__PURE__*/__webpack_require__.n(external_cssesc_);
4284
4272
 
4285
4273
  // CONCATENATED MODULE: ./src/SingleValueBasic/MajorValue.jsx
@@ -4464,42 +4452,42 @@ var SingleValueTrendValue = TrendValue;
4464
4452
 
4465
4453
  /***/ }),
4466
4454
 
4467
- /***/ 64:
4455
+ /***/ 63:
4468
4456
  /***/ (function(module, exports) {
4469
4457
 
4470
4458
  module.exports = require("lodash/pick");
4471
4459
 
4472
4460
  /***/ }),
4473
4461
 
4474
- /***/ 65:
4462
+ /***/ 64:
4475
4463
  /***/ (function(module, exports) {
4476
4464
 
4477
4465
  module.exports = require("lodash/isEmpty");
4478
4466
 
4479
4467
  /***/ }),
4480
4468
 
4481
- /***/ 66:
4469
+ /***/ 65:
4482
4470
  /***/ (function(module, exports) {
4483
4471
 
4484
4472
  module.exports = require("@splunk/react-icons/ArrowUp");
4485
4473
 
4486
4474
  /***/ }),
4487
4475
 
4488
- /***/ 67:
4476
+ /***/ 66:
4489
4477
  /***/ (function(module, exports) {
4490
4478
 
4491
4479
  module.exports = require("@splunk/react-icons/ArrowDown");
4492
4480
 
4493
4481
  /***/ }),
4494
4482
 
4495
- /***/ 68:
4483
+ /***/ 67:
4496
4484
  /***/ (function(module, exports) {
4497
4485
 
4498
4486
  module.exports = require("cssesc");
4499
4487
 
4500
4488
  /***/ }),
4501
4489
 
4502
- /***/ 69:
4490
+ /***/ 68:
4503
4491
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4504
4492
 
4505
4493
  "use strict";
@@ -4524,13 +4512,79 @@ var StaticBackgroundColorEditor = {
4524
4512
  /***/ }),
4525
4513
 
4526
4514
  /***/ 7:
4527
- /***/ (function(module, exports) {
4515
+ /***/ (function(module, exports, __webpack_require__) {
4528
4516
 
4529
- module.exports = require("@babel/runtime/helpers/defineProperty");
4517
+ "use strict";
4518
+
4519
+
4520
+ var _typeof = __webpack_require__(20);
4521
+
4522
+ Object.defineProperty(exports, "__esModule", {
4523
+ value: true
4524
+ });
4525
+ exports.deepMergeWithArrayOverrides = exports.extendStaticWrapperProps = void 0;
4526
+
4527
+ var lodash_1 = __webpack_require__(2);
4528
+ /**
4529
+ * @method extendStaticWrapperProps
4530
+ * @param {Object} props
4531
+ * @param {DashboardVizType} props.Wrapper
4532
+ * @param {DashboardVizType} props.Visualization
4533
+ */
4534
+
4535
+
4536
+ var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
4537
+ var Wrapper = _ref.Wrapper,
4538
+ Visualization = _ref.Visualization;
4539
+ var extendProperties = ['propTypes', 'defaultProps', 'config'];
4540
+ extendProperties.forEach(function (prop) {
4541
+ if (Visualization[prop]) {
4542
+ // eslint-disable-next-line no-param-reassign
4543
+ Wrapper[prop] = Visualization[prop];
4544
+ }
4545
+ });
4546
+ };
4547
+
4548
+ exports.extendStaticWrapperProps = extendStaticWrapperProps;
4549
+ /**
4550
+ * helper to deeply merge objects while preserving arrays in earlier source objects
4551
+ * deeply nested primitive keys are merged similarly to lodash's defaultsDeep, while keys with arrays will be preserved if already present in the resultant merged object
4552
+ * this prevents default arrays from appending values to user-defined arrays (this occurs if the default array is longer than the user-defined one)
4553
+ *
4554
+ * @method deepMergeWithArrayOverrides
4555
+ * @param {Object} initial - target object to merge values into
4556
+ * @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
4557
+ *
4558
+ * @returns {Object}
4559
+ */
4560
+
4561
+ var deepMergeWithArrayOverrides = function deepMergeWithArrayOverrides(initial) {
4562
+ var clone = lodash_1.cloneDeep(initial);
4563
+
4564
+ for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
4565
+ sources[_key - 1] = arguments[_key];
4566
+ }
4567
+
4568
+ sources.forEach(function (sourceToApply) {
4569
+ Object.keys(sourceToApply).forEach(function (sourceKey) {
4570
+ if (!Object.prototype.hasOwnProperty.call(clone, sourceKey)) {
4571
+ clone[sourceKey] = lodash_1.cloneDeep(sourceToApply[sourceKey]);
4572
+ } // object merging excluding arrays
4573
+
4574
+
4575
+ if (clone[sourceKey] && _typeof(clone[sourceKey]) === 'object' && !Array.isArray(clone[sourceKey]) && _typeof(sourceToApply[sourceKey]) === 'object') {
4576
+ clone[sourceKey] = exports.deepMergeWithArrayOverrides(clone[sourceKey], sourceToApply[sourceKey]);
4577
+ }
4578
+ });
4579
+ });
4580
+ return clone;
4581
+ };
4582
+
4583
+ exports.deepMergeWithArrayOverrides = deepMergeWithArrayOverrides;
4530
4584
 
4531
4585
  /***/ }),
4532
4586
 
4533
- /***/ 77:
4587
+ /***/ 76:
4534
4588
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4535
4589
 
4536
4590
  "use strict";
@@ -4563,15 +4617,13 @@ var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
4563
4617
  defaults: {
4564
4618
  majorValue: defaultContext.majorColorConfig
4565
4619
  }
4566
- } // TODO(fkurniawan): add back in when FormatterEditor supports full MatchValue editor
4567
- // {
4568
- // label: _('Matches'),
4569
- // value: 'matchValue',
4570
- // defaults: {
4571
- // majorValue: [{ match: 'foo', value: '#f00' }],
4572
- // },
4573
- // },
4574
- ],
4620
+ }, {
4621
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Matches'),
4622
+ value: 'matchValue',
4623
+ defaults: {
4624
+ majorValue: defaultContext.majorColorMatchConfig
4625
+ }
4626
+ }],
4575
4627
  dataSelectors: [{
4576
4628
  label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major Value'),
4577
4629
  value: 'majorValue'
@@ -4583,7 +4635,7 @@ var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
4583
4635
 
4584
4636
  /***/ }),
4585
4637
 
4586
- /***/ 78:
4638
+ /***/ 77:
4587
4639
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4588
4640
 
4589
4641
  "use strict";
@@ -4628,7 +4680,7 @@ var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
4628
4680
 
4629
4681
  /***/ }),
4630
4682
 
4631
- /***/ 79:
4683
+ /***/ 78:
4632
4684
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4633
4685
 
4634
4686
  "use strict";
@@ -4662,15 +4714,13 @@ var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_
4662
4714
  majorValue: defaultContext.majorColorConfig,
4663
4715
  trendValue: defaultContext.trendColorConfig
4664
4716
  }
4665
- } // TODO(fkurniawan): add back in when FormatterEditor supports full MatchValue editor
4666
- // {
4667
- // label: _('Matches'),
4668
- // value: 'matchValue',
4669
- // defaults: {
4670
- // majorValue: [{ match: 'foo', value: '#f00' }],
4671
- // },
4672
- // },
4673
- ],
4717
+ }, {
4718
+ label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Matches'),
4719
+ value: 'matchValue',
4720
+ defaults: {
4721
+ majorValue: defaultContext.majorColorMatchConfig
4722
+ }
4723
+ }],
4674
4724
  dataSelectors: [{
4675
4725
  label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major Value'),
4676
4726
  value: 'majorValue'
@@ -4685,80 +4735,7 @@ var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_
4685
4735
 
4686
4736
  /***/ }),
4687
4737
 
4688
- /***/ 8:
4689
- /***/ (function(module, exports, __webpack_require__) {
4690
-
4691
- "use strict";
4692
-
4693
-
4694
- var _typeof = __webpack_require__(23);
4695
-
4696
- Object.defineProperty(exports, "__esModule", {
4697
- value: true
4698
- });
4699
- exports.deepMergeWithArrayOverrides = exports.extendStaticWrapperProps = void 0;
4700
-
4701
- var lodash_1 = __webpack_require__(2);
4702
- /**
4703
- * @method extendStaticWrapperProps
4704
- * @param {Object} props
4705
- * @param {DashboardVizType} props.Wrapper
4706
- * @param {DashboardVizType} props.Visualization
4707
- */
4708
-
4709
-
4710
- var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
4711
- var Wrapper = _ref.Wrapper,
4712
- Visualization = _ref.Visualization;
4713
- var extendProperties = ['propTypes', 'defaultProps', 'config'];
4714
- extendProperties.forEach(function (prop) {
4715
- if (Visualization[prop]) {
4716
- // eslint-disable-next-line no-param-reassign
4717
- Wrapper[prop] = Visualization[prop];
4718
- }
4719
- });
4720
- };
4721
-
4722
- exports.extendStaticWrapperProps = extendStaticWrapperProps;
4723
- /**
4724
- * helper to deeply merge objects while preserving arrays in earlier source objects
4725
- * deeply nested primitive keys are merged similarly to lodash's defaultsDeep, while keys with arrays will be preserved if already present in the resultant merged object
4726
- * this prevents default arrays from appending values to user-defined arrays (this occurs if the default array is longer than the user-defined one)
4727
- *
4728
- * @method deepMergeWithArrayOverrides
4729
- * @param {Object} initial - target object to merge values into
4730
- * @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
4731
- *
4732
- * @returns {Object}
4733
- */
4734
-
4735
- var deepMergeWithArrayOverrides = function deepMergeWithArrayOverrides(initial) {
4736
- var clone = lodash_1.cloneDeep(initial);
4737
-
4738
- for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
4739
- sources[_key - 1] = arguments[_key];
4740
- }
4741
-
4742
- sources.forEach(function (sourceToApply) {
4743
- Object.keys(sourceToApply).forEach(function (sourceKey) {
4744
- if (!Object.prototype.hasOwnProperty.call(clone, sourceKey)) {
4745
- clone[sourceKey] = lodash_1.cloneDeep(sourceToApply[sourceKey]);
4746
- } // object merging excluding arrays
4747
-
4748
-
4749
- if (clone[sourceKey] && _typeof(clone[sourceKey]) === 'object' && !Array.isArray(clone[sourceKey]) && _typeof(sourceToApply[sourceKey]) === 'object') {
4750
- clone[sourceKey] = exports.deepMergeWithArrayOverrides(clone[sourceKey], sourceToApply[sourceKey]);
4751
- }
4752
- });
4753
- });
4754
- return clone;
4755
- };
4756
-
4757
- exports.deepMergeWithArrayOverrides = deepMergeWithArrayOverrides;
4758
-
4759
- /***/ }),
4760
-
4761
- /***/ 80:
4738
+ /***/ 79:
4762
4739
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4763
4740
 
4764
4741
  "use strict";
@@ -4782,7 +4759,14 @@ var StaticMajorColorEditor = {
4782
4759
 
4783
4760
  /***/ }),
4784
4761
 
4785
- /***/ 81:
4762
+ /***/ 8:
4763
+ /***/ (function(module, exports) {
4764
+
4765
+ module.exports = require("@babel/runtime/helpers/defineProperty");
4766
+
4767
+ /***/ }),
4768
+
4769
+ /***/ 80:
4786
4770
  /***/ (function(module, __webpack_exports__, __webpack_require__) {
4787
4771
 
4788
4772
  "use strict";
@@ -4810,7 +4794,7 @@ var StaticTrendColorEditor = {
4810
4794
 
4811
4795
  /***/ }),
4812
4796
 
4813
- /***/ 84:
4797
+ /***/ 83:
4814
4798
  /***/ (function(module, exports) {
4815
4799
 
4816
4800
  module.exports = require("@splunk/react-sparkline/Line");