@splunk/visualizations 24.2.0 → 24.3.2

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 (216) 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_Markdown_Markdown_Markdown_with_number_as_DSL.png +0 -0
  44. package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Missing_Column.png +0 -0
  45. package/.loki/reference/chrome_docker_Visualizations_Sankey_Sankey_Dimension_Too_Small.png +0 -0
  46. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_By_Type_Custom.png +0 -0
  47. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_Default.png +0 -0
  48. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_Kitchen_Sink.png +0 -0
  49. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_Right.png +0 -0
  50. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_Single_Column.png +0 -0
  51. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Background_Color_light_blue.png +0 -0
  52. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Background_No_Stripe.png +0 -0
  53. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Background_Stripe.png +0 -0
  54. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Basic_Table.png +0 -0
  55. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Basic_Table_With_No_Click.png +0 -0
  56. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Cell_Types.png +0 -0
  57. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Column_Gradient.png +0 -0
  58. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Column_Override.png +0 -0
  59. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Column_Width.png +0 -0
  60. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Count_2.png +0 -0
  61. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Custom_Header_Colors.png +0 -0
  62. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Custom_Row_Colors.png +0 -0
  63. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Custom_Stripe.png +0 -0
  64. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Dark_Background_No_Stripe.png +0 -0
  65. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Dark_Background_Stripe.png +0 -0
  66. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Format_Number.png +0 -0
  67. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Format_Number_Adv.png +0 -0
  68. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Header_Visibility_fixed.png +0 -0
  69. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Header_Visibility_none.png +0 -0
  70. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Height_Percentage.png +0 -0
  71. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Height_Percentage_100_no_paginator.png +0 -0
  72. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Invalid_Background_Color.png +0 -0
  73. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Multi_Value_Field.png +0 -0
  74. package/.loki/reference/chrome_docker_Visualizations_Table_Table_No_Stripes.png +0 -0
  75. package/.loki/reference/chrome_docker_Visualizations_Table_Table_No_Stripes_Row_Numbers.png +0 -0
  76. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Show_Internal_Fields_false.png +0 -0
  77. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Show_Internal_Fields_true_default.png +0 -0
  78. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Show_Row_Numbers_true.png +0 -0
  79. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline.png +0 -0
  80. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline_Custom.png +0 -0
  81. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline_Width.png +0 -0
  82. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparklines_Adv.png +0 -0
  83. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Table_Formatting.png +0 -0
  84. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Table_Gradient.png +0 -0
  85. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Time_Formatting.png +0 -0
  86. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Width_Height.png +0 -0
  87. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Width_Percentage.png +0 -0
  88. package/.loki/reference/chrome_docker_Visualizations_Table_Table_Width_Px.png +0 -0
  89. package/Area.config.js +15 -15
  90. package/Area.config.js.map +1 -1
  91. package/Area.js +108 -121
  92. package/Area.js.map +1 -1
  93. package/Bar.config.js +15 -15
  94. package/Bar.config.js.map +1 -1
  95. package/Bar.js +101 -114
  96. package/Bar.js.map +1 -1
  97. package/Bubble.config.js +8 -8
  98. package/Bubble.config.js.map +1 -1
  99. package/Bubble.js +94 -107
  100. package/Bubble.js.map +1 -1
  101. package/ChoroplethSvg.config.js +11 -9
  102. package/ChoroplethSvg.config.js.map +1 -1
  103. package/ChoroplethSvg.js +123 -134
  104. package/ChoroplethSvg.js.map +1 -1
  105. package/Column.config.js +15 -15
  106. package/Column.config.js.map +1 -1
  107. package/Column.js +101 -114
  108. package/Column.js.map +1 -1
  109. package/Ellipse.config.js +22 -2
  110. package/Ellipse.config.js.map +1 -1
  111. package/Ellipse.js +109 -102
  112. package/Ellipse.js.map +1 -1
  113. package/FillerGauge.config.js +8 -8
  114. package/FillerGauge.config.js.map +1 -1
  115. package/FillerGauge.js +110 -123
  116. package/FillerGauge.js.map +1 -1
  117. package/Image.js +81 -97
  118. package/Image.js.map +1 -1
  119. package/Line.config.js +8 -8
  120. package/Line.config.js.map +1 -1
  121. package/Line.js +101 -114
  122. package/Line.js.map +1 -1
  123. package/LinkGraph.config.js +4 -4
  124. package/LinkGraph.js +128 -141
  125. package/LinkGraph.js.map +1 -1
  126. package/Map.config.js +740 -0
  127. package/Map.config.js.map +1 -0
  128. package/Map.js +3141 -0
  129. package/Map.js.map +1 -0
  130. package/Markdown.config.js +12 -12
  131. package/Markdown.config.js.map +1 -1
  132. package/Markdown.js +104 -118
  133. package/Markdown.js.map +1 -1
  134. package/MarkerGauge.config.js +6 -6
  135. package/MarkerGauge.config.js.map +1 -1
  136. package/MarkerGauge.js +2953 -3060
  137. package/MarkerGauge.js.map +1 -1
  138. package/ParallelCoordinates.config.js +11 -11
  139. package/ParallelCoordinates.config.js.map +1 -1
  140. package/ParallelCoordinates.js +137 -139
  141. package/ParallelCoordinates.js.map +1 -1
  142. package/Pie.config.js +13 -13
  143. package/Pie.config.js.map +1 -1
  144. package/Pie.js +912 -1019
  145. package/Pie.js.map +1 -1
  146. package/Punchcard.config.js +11 -11
  147. package/Punchcard.config.js.map +1 -1
  148. package/Punchcard.js +153 -155
  149. package/Punchcard.js.map +1 -1
  150. package/README.internal.md +36 -3
  151. package/README.md +7 -9
  152. package/Rectangle.config.js +32 -12
  153. package/Rectangle.config.js.map +1 -1
  154. package/Rectangle.js +189 -185
  155. package/Rectangle.js.map +1 -1
  156. package/Sankey.config.js +35 -25
  157. package/Sankey.config.js.map +1 -1
  158. package/Sankey.js +2963 -3078
  159. package/Sankey.js.map +1 -1
  160. package/Scatter.config.js +11 -11
  161. package/Scatter.config.js.map +1 -1
  162. package/Scatter.js +231 -247
  163. package/Scatter.js.map +1 -1
  164. package/SingleValue.config.js +23 -22
  165. package/SingleValue.config.js.map +1 -1
  166. package/SingleValue.js +425 -441
  167. package/SingleValue.js.map +1 -1
  168. package/SingleValueBasic.js +20 -20
  169. package/SingleValueBasic.js.map +1 -1
  170. package/SingleValueIcon.config.js +33 -34
  171. package/SingleValueIcon.config.js.map +1 -1
  172. package/SingleValueIcon.js +179 -184
  173. package/SingleValueIcon.js.map +1 -1
  174. package/SingleValueRadial.config.js +22 -22
  175. package/SingleValueRadial.config.js.map +1 -1
  176. package/SingleValueRadial.js +391 -407
  177. package/SingleValueRadial.js.map +1 -1
  178. package/Table.config.js +17 -6
  179. package/Table.config.js.map +1 -1
  180. package/Table.js +358 -321
  181. package/Table.js.map +1 -1
  182. package/common/Charting.js +21 -22
  183. package/common/Charting.js.map +1 -1
  184. package/common/ChartingApi.js +2 -2
  185. package/common/ChartingApi.js.map +1 -1
  186. package/common/EventsDoc.js +14 -15
  187. package/common/EventsDoc.js.map +1 -1
  188. package/common/GaugeMajorTicks.js +2 -2
  189. package/common/GaugeMajorTicks.js.map +1 -1
  190. package/common/GaugeValueMarker.js +2 -2
  191. package/common/GaugeValueMarker.js.map +1 -1
  192. package/common/OptionsDoc.js +7 -8
  193. package/common/OptionsDoc.js.map +1 -1
  194. package/common/OverviewDoc.js +22 -22
  195. package/common/OverviewDoc.js.map +1 -1
  196. package/common/SplunkVisualization.js +4 -4
  197. package/common/SplunkVisualization.js.map +1 -1
  198. package/common/SplunkVisualizationApi.js +2 -2
  199. package/common/SplunkVisualizationApi.js.map +1 -1
  200. package/common/ThemesDoc.js +16 -16
  201. package/common/ThemesDoc.js.map +1 -1
  202. package/common/chartingUtils.js +4 -4
  203. package/common/chartingUtils.js.map +1 -1
  204. package/common/docUtils.js +4 -4
  205. package/common/docUtils.js.map +1 -1
  206. package/common/gaugeUtils.js +13 -13
  207. package/common/gaugeUtils.js.map +1 -1
  208. package/common/shapeUtils.js +8 -8
  209. package/common/shapeUtils.js.map +1 -1
  210. package/common/withDashboardViz.js +53 -68
  211. package/common/withDashboardViz.js.map +1 -1
  212. package/loki.config.js +2 -0
  213. package/package.json +19 -15
  214. package/common/version.js +0 -110
  215. package/common/version.js.map +0 -1
  216. package/scripts/generateVersion.js +0 -13
package/Table.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 = 244);
90
+ /******/ return __webpack_require__(__webpack_require__.s = 255);
91
91
  /******/ })
92
92
  /************************************************************************/
93
93
  /******/ ({
@@ -159,14 +159,12 @@ var React = __webpack_require__(1);
159
159
 
160
160
  var styled_components_1 = __webpack_require__(4);
161
161
 
162
- var SizeAwareWrapper_1 = __webpack_require__(18);
162
+ var SizeAwareWrapper_1 = __webpack_require__(16);
163
163
 
164
- var style_1 = __webpack_require__(14);
164
+ var style_1 = __webpack_require__(13);
165
165
 
166
166
  var colorUtils_1 = __webpack_require__(11);
167
167
 
168
- var version_1 = __webpack_require__(13);
169
-
170
168
  var Item = styled_components_1.default.div.attrs(function (_ref) {
171
169
  var width = _ref.width;
172
170
  return {
@@ -222,7 +220,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
222
220
 
223
221
  return React.createElement(FixSizeItem, {
224
222
  "data-test": "fix-size-item",
225
- "data-splunk-visualization-version": version_1.version,
223
+ "data-splunk-visualization-version": "24.3.2 - 1cf892b72",
226
224
  width: width,
227
225
  height: height,
228
226
  backgroundColor: backgroundColor
@@ -245,25 +243,20 @@ exports.default = withFixedSizeContainer;
245
243
  /***/ }),
246
244
 
247
245
  /***/ 13:
248
- /***/ (function(module, exports, __webpack_require__) {
249
-
250
- "use strict";
251
-
246
+ /***/ (function(module, exports) {
252
247
 
253
- Object.defineProperty(exports, "__esModule", {
254
- value: true
255
- });
256
- exports.version = void 0;
257
- exports.version = '24.2.0';
248
+ module.exports = require("@splunk/visualizations-shared/style");
258
249
 
259
250
  /***/ }),
260
251
 
261
- /***/ 130:
252
+ /***/ 131:
262
253
  /***/ (function(module, exports, __webpack_require__) {
263
254
 
264
255
  "use strict";
265
256
 
266
257
 
258
+ var _slicedToArray = __webpack_require__(49);
259
+
267
260
  var __rest = this && this.__rest || function (s, e) {
268
261
  var t = {};
269
262
 
@@ -282,19 +275,59 @@ Object.defineProperty(exports, "__esModule", {
282
275
  });
283
276
  exports.config = exports.PureTable = exports.themes = exports.computeVizProps = void 0;
284
277
 
285
- var config_1 = __webpack_require__(245);
278
+ var colorUtils_1 = __webpack_require__(11);
279
+
280
+ var config_1 = __webpack_require__(256);
286
281
 
287
282
  exports.config = config_1.default;
288
283
 
289
- var withDashboardViz_1 = __webpack_require__(28);
284
+ var withDashboardViz_1 = __webpack_require__(27);
290
285
 
291
- var PureTable_1 = __webpack_require__(246);
286
+ var PureTable_1 = __webpack_require__(257);
292
287
 
293
288
  exports.PureTable = PureTable_1.default;
294
289
 
295
290
  var computeVizProps = function computeVizProps(_a) {
296
291
  var props = __rest(_a, []);
297
292
 
293
+ if (props.columnFormat) {
294
+ var columns = props.columnFormat;
295
+ var themeRowBackgroundColorOdd = props.themeFunc('rowBackgroundColorOdd');
296
+ var themeRowBackgroundColorEven = props.themeFunc('rowBackgroundColorEven');
297
+ var themeTextColor = props.themeFunc('textColor'); // `columns` looks like { `column title`: { rowBackgroundColors, rowColors... }}
298
+
299
+ Object.entries(columns).forEach(function (_ref) {
300
+ var _ref2 = _slicedToArray(_ref, 2),
301
+ columnKey = _ref2[0],
302
+ columnProperties = _ref2[1];
303
+
304
+ var rowBackgroundColors;
305
+ var rowColors; // If columns have `rowBackgroundColors` or `rowColors` arrays defined, sanitize them. If there are undefined values after sanitization, these
306
+ // elements are populated with the default values provided by the theme.
307
+
308
+ if (columnProperties.rowBackgroundColors) {
309
+ rowBackgroundColors = colorUtils_1.sanitizeArrayOfColors(columnProperties.rowBackgroundColors).map(function (color, i) {
310
+ return (// using (i + 1) % 2 because 'odd' refers to row number, so index 0 -> row 1 -> odd colored
311
+ color || ((i + 1) % 2 === 0 ? themeRowBackgroundColorEven : themeRowBackgroundColorOdd)
312
+ );
313
+ });
314
+ }
315
+
316
+ if (columnProperties.rowColors) {
317
+ rowColors = colorUtils_1.sanitizeArrayOfColors(columnProperties.rowColors).map(function (color) {
318
+ return color || themeTextColor;
319
+ });
320
+ } // eslint-disable-next-line no-param-reassign
321
+
322
+
323
+ props.columnFormat[columnKey] = Object.assign(Object.assign(Object.assign({}, props.columnFormat[columnKey]), columnProperties.rowBackgroundColors && {
324
+ rowBackgroundColors: rowBackgroundColors
325
+ }), columnProperties.rowColors && {
326
+ rowColors: rowColors
327
+ });
328
+ });
329
+ }
330
+
298
331
  if (!props.showInternalFields) {
299
332
  var filteredFields = [];
300
333
  var filteredTable = [];
@@ -350,28 +383,28 @@ exports.default = Table;
350
383
  /***/ 14:
351
384
  /***/ (function(module, exports) {
352
385
 
353
- module.exports = require("@splunk/visualizations-shared/style");
386
+ module.exports = require("@splunk/visualizations-shared/schemaUtils");
354
387
 
355
388
  /***/ }),
356
389
 
357
390
  /***/ 15:
358
391
  /***/ (function(module, exports) {
359
392
 
360
- module.exports = require("@splunk/visualizations-shared/schemaUtils");
393
+ module.exports = require("@babel/runtime/helpers/createClass");
361
394
 
362
395
  /***/ }),
363
396
 
364
- /***/ 17:
397
+ /***/ 16:
365
398
  /***/ (function(module, exports) {
366
399
 
367
- module.exports = require("@babel/runtime/helpers/createClass");
400
+ module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
368
401
 
369
402
  /***/ }),
370
403
 
371
- /***/ 18:
404
+ /***/ 19:
372
405
  /***/ (function(module, exports) {
373
406
 
374
- module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
407
+ module.exports = require("@splunk/themes/variables");
375
408
 
376
409
  /***/ }),
377
410
 
@@ -385,7 +418,7 @@ module.exports = require("lodash");
385
418
  /***/ 20:
386
419
  /***/ (function(module, exports) {
387
420
 
388
- module.exports = require("@splunk/themes/variables");
421
+ module.exports = require("@babel/runtime/helpers/typeof");
389
422
 
390
423
  /***/ }),
391
424
 
@@ -397,19 +430,12 @@ module.exports = require("@splunk/themes/pick");
397
430
  /***/ }),
398
431
 
399
432
  /***/ 23:
400
- /***/ (function(module, exports) {
401
-
402
- module.exports = require("@babel/runtime/helpers/typeof");
403
-
404
- /***/ }),
405
-
406
- /***/ 24:
407
433
  /***/ (function(module, exports, __webpack_require__) {
408
434
 
409
435
  "use strict";
410
436
 
411
437
 
412
- var _defineProperty = __webpack_require__(7);
438
+ var _defineProperty = __webpack_require__(8);
413
439
 
414
440
  Object.defineProperty(exports, "__esModule", {
415
441
  value: true
@@ -420,7 +446,7 @@ var T = __webpack_require__(0);
420
446
 
421
447
  var lodash_1 = __webpack_require__(2);
422
448
 
423
- var DataSource_1 = __webpack_require__(34);
449
+ var DataSource_1 = __webpack_require__(33);
424
450
 
425
451
  exports.SortParamsPropTypes = T.shape({
426
452
  currentSortKey: T.string,
@@ -474,7 +500,161 @@ exports.getSortingParams = getSortingParams;
474
500
 
475
501
  /***/ }),
476
502
 
477
- /***/ 244:
503
+ /***/ 24:
504
+ /***/ (function(module, exports, __webpack_require__) {
505
+
506
+ "use strict";
507
+
508
+
509
+ Object.defineProperty(exports, "__esModule", {
510
+ value: true
511
+ });
512
+ exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
513
+
514
+ var T = __webpack_require__(0);
515
+
516
+ var lodash_1 = __webpack_require__(2);
517
+
518
+ exports.PaginatorParamsPropTypes = T.shape({
519
+ isPaging: T.bool,
520
+ current: T.number,
521
+ totalPages: T.number,
522
+ onChange: T.func
523
+ });
524
+
525
+ var getPaginationParams = function getPaginationParams(_ref) {
526
+ var requestParams = _ref.requestParams,
527
+ meta = _ref.meta,
528
+ onRequestParamsChange = _ref.onRequestParamsChange;
529
+ var totalCount = meta && meta.totalCount || 0;
530
+ var offset = requestParams && requestParams.offset || 0;
531
+ var count = requestParams && requestParams.count;
532
+ var totalPages = typeof count === 'number' && count > 0 ? Math.ceil(totalCount / count) : 0;
533
+ var current = typeof count === 'number' && count > 0 ? Math.floor(offset / count) + 1 : 0;
534
+ var isPaging = totalPages > 1 && lodash_1.isFunction(onRequestParamsChange);
535
+
536
+ var onChangeHandler = function onChangeHandler(e, _ref2) {
537
+ var page = _ref2.page,
538
+ countArg = _ref2.count;
539
+ var newParams = lodash_1.cloneDeep(requestParams);
540
+
541
+ if (typeof countArg === 'number') {
542
+ newParams.count = countArg;
543
+ newParams.offset = 0;
544
+ }
545
+
546
+ var pageCount = typeof newParams.count === 'number' ? newParams.count : 10;
547
+
548
+ if (typeof page === 'number' && page > 0) {
549
+ newParams.count = pageCount;
550
+ newParams.offset = (page - 1) * pageCount;
551
+ }
552
+
553
+ onRequestParamsChange(newParams);
554
+ };
555
+
556
+ return {
557
+ isPaging: isPaging,
558
+ current: current,
559
+ totalPages: totalPages,
560
+ onChange: lodash_1.isFunction(onRequestParamsChange) ? onChangeHandler : lodash_1.noop
561
+ };
562
+ };
563
+
564
+ exports.getPaginationParams = getPaginationParams;
565
+
566
+ /***/ }),
567
+
568
+ /***/ 25:
569
+ /***/ (function(module, exports, __webpack_require__) {
570
+
571
+ "use strict";
572
+
573
+
574
+ Object.defineProperty(exports, "__esModule", {
575
+ value: true
576
+ });
577
+ exports.shouldShowIconPlaceholder = void 0;
578
+
579
+ var React = __webpack_require__(1);
580
+
581
+ var T = __webpack_require__(0);
582
+
583
+ var lodash_1 = __webpack_require__(2);
584
+
585
+ var i18n_1 = __webpack_require__(3);
586
+
587
+ var Message_1 = __webpack_require__(9);
588
+
589
+ var FixedSizeContainer_1 = __webpack_require__(12);
590
+ /**
591
+ * @method shouldShowIconPlaceholder
592
+ * @param {object} dataSources
593
+ * @param {boolean} loading
594
+ * @returns {boolean}
595
+ */
596
+
597
+
598
+ var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
599
+ var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
600
+ var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
601
+ var noData = data === undefined;
602
+ var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
603
+ var noFields = fields === undefined;
604
+ return loading || noData || noFields;
605
+ };
606
+
607
+ exports.shouldShowIconPlaceholder = shouldShowIconPlaceholder;
608
+ var propTypes = {
609
+ icon: T.func,
610
+ width: T.oneOfType([T.string, T.number]),
611
+ height: T.oneOfType([T.string, T.number]),
612
+ // eslint-disable-next-line react/no-unused-prop-types
613
+ backgroundColor: T.string
614
+ };
615
+ /**
616
+ * @method IconPlaceholder
617
+ * @param {IconPlaceholderProps} props
618
+ * @returns {React.ReactElement}
619
+ */
620
+
621
+ var IconPlaceholder = function IconPlaceholder(props) {
622
+ var width = props.width,
623
+ height = props.height,
624
+ icon = props.icon;
625
+
626
+ if (icon) {
627
+ return React.createElement(icon, {
628
+ style: {
629
+ left: '50%',
630
+ top: '50%',
631
+ color: 'grey',
632
+ position: 'absolute',
633
+ transform: 'translate(-50%, -50%)'
634
+ },
635
+ width: '50%',
636
+ height: '50%'
637
+ });
638
+ }
639
+
640
+ return React.createElement(Message_1.default, {
641
+ width: width,
642
+ height: height,
643
+ level: "warning",
644
+ message: i18n_1._('No DataSource Connected')
645
+ });
646
+ };
647
+
648
+ IconPlaceholder.propTypes = propTypes;
649
+ IconPlaceholder.defaultProps = {
650
+ width: '100%',
651
+ height: 250
652
+ };
653
+ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
654
+
655
+ /***/ }),
656
+
657
+ /***/ 255:
478
658
  /***/ (function(module, exports, __webpack_require__) {
479
659
 
480
660
  "use strict";
@@ -506,9 +686,9 @@ exports.default = void 0; // NOTE: wildcard syntax only works for named exports
506
686
  // for some reason, omitting the default export worked before TS v4
507
687
  // see: https://stackoverflow.com/a/34445175
508
688
 
509
- __exportStar(__webpack_require__(130), exports);
689
+ __exportStar(__webpack_require__(131), exports);
510
690
 
511
- var Table_1 = __webpack_require__(130);
691
+ var Table_1 = __webpack_require__(131);
512
692
 
513
693
  Object.defineProperty(exports, "default", {
514
694
  enumerable: true,
@@ -519,13 +699,13 @@ Object.defineProperty(exports, "default", {
519
699
 
520
700
  /***/ }),
521
701
 
522
- /***/ 245:
702
+ /***/ 256:
523
703
  /***/ (function(module, exports, __webpack_require__) {
524
704
 
525
705
  "use strict";
526
706
 
527
707
 
528
- var _toConsumableArray = __webpack_require__(40);
708
+ var _toConsumableArray = __webpack_require__(39);
529
709
 
530
710
  Object.defineProperty(exports, "__esModule", {
531
711
  value: true
@@ -535,13 +715,13 @@ var i18n_1 = __webpack_require__(3);
535
715
 
536
716
  var lodash_1 = __webpack_require__(2);
537
717
 
538
- var schemaUtils_1 = __webpack_require__(15);
718
+ var schemaUtils_1 = __webpack_require__(14);
539
719
 
540
- var colorConstants_1 = __webpack_require__(41);
720
+ var colorConstants_1 = __webpack_require__(40);
541
721
 
542
- var visualization_icons_1 = __webpack_require__(43);
722
+ var visualization_icons_1 = __webpack_require__(42);
543
723
 
544
- var variables_1 = __webpack_require__(20);
724
+ var variables_1 = __webpack_require__(19);
545
725
 
546
726
  var pick_1 = __webpack_require__(21);
547
727
 
@@ -551,7 +731,7 @@ var VizBehavior_1 = __webpack_require__(5);
551
731
 
552
732
  var consts_1 = __webpack_require__(105);
553
733
 
554
- var VizCategory_1 = __webpack_require__(27);
734
+ var VizCategory_1 = __webpack_require__(26);
555
735
 
556
736
  var dataContract = {
557
737
  requiredDataSources: [{
@@ -685,6 +865,10 @@ var sequentialColorConfig = [{
685
865
  from: 80,
686
866
  value: '#118832'
687
867
  }];
868
+ var matchColorConfig = [{
869
+ match: '',
870
+ value: '#5C33FF'
871
+ }];
688
872
  var optionsSchema = {
689
873
  backgroundColor: {
690
874
  default: '> themes.defaultBackgroundColor',
@@ -1094,6 +1278,13 @@ var editorConfig = [{
1094
1278
  rowBackgroundColors: sequentialColorConfig,
1095
1279
  rowColors: sequentialColorConfig
1096
1280
  }
1281
+ }, {
1282
+ label: i18n_1._('Matches'),
1283
+ value: 'matchValue',
1284
+ defaults: {
1285
+ rowBackgroundColors: matchColorConfig,
1286
+ rowColors: matchColorConfig
1287
+ }
1097
1288
  }],
1098
1289
  themes: themes
1099
1290
  },
@@ -1183,7 +1374,7 @@ exports.default = configUtils_1.enhanceConfig(config);
1183
1374
 
1184
1375
  /***/ }),
1185
1376
 
1186
- /***/ 246:
1377
+ /***/ 257:
1187
1378
  /***/ (function(module, exports, __webpack_require__) {
1188
1379
 
1189
1380
  "use strict";
@@ -1220,35 +1411,35 @@ var styled_components_1 = __webpack_require__(4);
1220
1411
 
1221
1412
  var i18n_1 = __webpack_require__(3);
1222
1413
 
1223
- var Table_1 = __webpack_require__(83);
1414
+ var Table_1 = __webpack_require__(82);
1224
1415
 
1225
- var Paginator_1 = __webpack_require__(247);
1416
+ var Paginator_1 = __webpack_require__(258);
1226
1417
 
1227
- var Message_1 = __webpack_require__(248);
1418
+ var Message_1 = __webpack_require__(259);
1228
1419
 
1229
1420
  var colorUtils_1 = __webpack_require__(11);
1230
1421
 
1231
- var style_1 = __webpack_require__(14);
1422
+ var style_1 = __webpack_require__(13);
1232
1423
 
1233
1424
  var pick_1 = __webpack_require__(21);
1234
1425
 
1235
- var variables_1 = __webpack_require__(20);
1426
+ var variables_1 = __webpack_require__(19);
1236
1427
 
1237
- var hooks_1 = __webpack_require__(249);
1428
+ var hooks_1 = __webpack_require__(260);
1238
1429
 
1239
1430
  var consts_1 = __webpack_require__(105);
1240
1431
 
1241
- var cells_1 = __webpack_require__(250);
1432
+ var cells_1 = __webpack_require__(261);
1242
1433
 
1243
- var getPagination_1 = __webpack_require__(25);
1434
+ var getPagination_1 = __webpack_require__(24);
1244
1435
 
1245
- var getSorting_1 = __webpack_require__(24);
1436
+ var getSorting_1 = __webpack_require__(23);
1246
1437
 
1247
1438
  var FixedSizeContainer_1 = __webpack_require__(12); // debounce was imported this way due to typing
1248
1439
  // eslint-disable-next-line import/order
1249
1440
 
1250
1441
 
1251
- var debounce = __webpack_require__(255);
1442
+ var debounce = __webpack_require__(266);
1252
1443
 
1253
1444
  var NonVisibleTableHead = styled_components_1.default(Table_1.default.Head).withConfig({
1254
1445
  displayName: "PureTable__NonVisibleTableHead",
@@ -1541,29 +1732,58 @@ exports.default = withEmptyTableMessage(FixedSizeContainer_1.default(PureTable))
1541
1732
 
1542
1733
  /***/ }),
1543
1734
 
1544
- /***/ 247:
1735
+ /***/ 258:
1545
1736
  /***/ (function(module, exports) {
1546
1737
 
1547
1738
  module.exports = require("@splunk/react-ui/Paginator");
1548
1739
 
1549
1740
  /***/ }),
1550
1741
 
1551
- /***/ 248:
1742
+ /***/ 259:
1552
1743
  /***/ (function(module, exports) {
1553
1744
 
1554
1745
  module.exports = require("@splunk/react-ui/Message");
1555
1746
 
1556
1747
  /***/ }),
1557
1748
 
1558
- /***/ 249:
1749
+ /***/ 26:
1559
1750
  /***/ (function(module, exports, __webpack_require__) {
1560
1751
 
1561
1752
  "use strict";
1562
1753
 
1563
1754
 
1564
- var _toConsumableArray = __webpack_require__(40);
1755
+ Object.defineProperty(exports, "__esModule", {
1756
+ value: true
1757
+ });
1758
+ exports.VizCategory = void 0;
1759
+ var VizCategory;
1565
1760
 
1566
- var _typeof = __webpack_require__(23);
1761
+ (function (VizCategory) {
1762
+ VizCategory["SINGLE_VALUE"] = "Single Value";
1763
+ VizCategory["TRENDS"] = "Trends";
1764
+ VizCategory["COMPARISONS"] = "Comparisons";
1765
+ VizCategory["TABLE"] = "Table";
1766
+ VizCategory["GAUGE"] = "Gauge";
1767
+ VizCategory["DISTRIBUTIONS"] = "Distributions";
1768
+ VizCategory["CHOROPLETH"] = "Choropleth Maps";
1769
+ VizCategory["SHAPES"] = "Shapes";
1770
+ VizCategory["MISC"] = "misc";
1771
+ VizCategory["FLOW"] = "Flow";
1772
+ VizCategory["CORRELATION"] = "Correlation";
1773
+ VizCategory["SPATIAL"] = "Spatial";
1774
+ })(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
1775
+
1776
+ /***/ }),
1777
+
1778
+ /***/ 260:
1779
+ /***/ (function(module, exports, __webpack_require__) {
1780
+
1781
+ "use strict";
1782
+
1783
+
1784
+ var _toConsumableArray = __webpack_require__(39);
1785
+
1786
+ var _typeof = __webpack_require__(20);
1567
1787
 
1568
1788
  Object.defineProperty(exports, "__esModule", {
1569
1789
  value: true
@@ -1574,7 +1794,7 @@ var lodash_1 = __webpack_require__(2);
1574
1794
 
1575
1795
  var colorUtils_1 = __webpack_require__(11);
1576
1796
 
1577
- var style_1 = __webpack_require__(14);
1797
+ var style_1 = __webpack_require__(13);
1578
1798
 
1579
1799
  var consts_1 = __webpack_require__(105);
1580
1800
 
@@ -1976,72 +2196,7 @@ exports.useTable = useTable;
1976
2196
 
1977
2197
  /***/ }),
1978
2198
 
1979
- /***/ 25:
1980
- /***/ (function(module, exports, __webpack_require__) {
1981
-
1982
- "use strict";
1983
-
1984
-
1985
- Object.defineProperty(exports, "__esModule", {
1986
- value: true
1987
- });
1988
- exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
1989
-
1990
- var T = __webpack_require__(0);
1991
-
1992
- var lodash_1 = __webpack_require__(2);
1993
-
1994
- exports.PaginatorParamsPropTypes = T.shape({
1995
- isPaging: T.bool,
1996
- current: T.number,
1997
- totalPages: T.number,
1998
- onChange: T.func
1999
- });
2000
-
2001
- var getPaginationParams = function getPaginationParams(_ref) {
2002
- var requestParams = _ref.requestParams,
2003
- meta = _ref.meta,
2004
- onRequestParamsChange = _ref.onRequestParamsChange;
2005
- var totalCount = meta && meta.totalCount || 0;
2006
- var offset = requestParams && requestParams.offset || 0;
2007
- var count = requestParams && requestParams.count;
2008
- var totalPages = typeof count === 'number' && count > 0 ? Math.ceil(totalCount / count) : 0;
2009
- var current = typeof count === 'number' && count > 0 ? Math.floor(offset / count) + 1 : 0;
2010
- var isPaging = totalPages > 1 && lodash_1.isFunction(onRequestParamsChange);
2011
-
2012
- var onChangeHandler = function onChangeHandler(e, _ref2) {
2013
- var page = _ref2.page,
2014
- countArg = _ref2.count;
2015
- var newParams = lodash_1.cloneDeep(requestParams);
2016
-
2017
- if (typeof countArg === 'number') {
2018
- newParams.count = countArg;
2019
- newParams.offset = 0;
2020
- }
2021
-
2022
- var pageCount = typeof newParams.count === 'number' ? newParams.count : 10;
2023
-
2024
- if (typeof page === 'number' && page > 0) {
2025
- newParams.count = pageCount;
2026
- newParams.offset = (page - 1) * pageCount;
2027
- }
2028
-
2029
- onRequestParamsChange(newParams);
2030
- };
2031
-
2032
- return {
2033
- isPaging: isPaging,
2034
- current: current,
2035
- totalPages: totalPages,
2036
- onChange: lodash_1.isFunction(onRequestParamsChange) ? onChangeHandler : lodash_1.noop
2037
- };
2038
- };
2039
-
2040
- exports.getPaginationParams = getPaginationParams;
2041
-
2042
- /***/ }),
2043
-
2044
- /***/ 250:
2199
+ /***/ 261:
2045
2200
  /***/ (function(module, exports, __webpack_require__) {
2046
2201
 
2047
2202
  "use strict";
@@ -2070,17 +2225,17 @@ Object.defineProperty(exports, "__esModule", {
2070
2225
  value: true
2071
2226
  });
2072
2227
 
2073
- __exportStar(__webpack_require__(251), exports);
2228
+ __exportStar(__webpack_require__(262), exports);
2074
2229
 
2075
- __exportStar(__webpack_require__(252), exports);
2230
+ __exportStar(__webpack_require__(263), exports);
2076
2231
 
2077
- __exportStar(__webpack_require__(253), exports);
2232
+ __exportStar(__webpack_require__(264), exports);
2078
2233
 
2079
- __exportStar(__webpack_require__(254), exports);
2234
+ __exportStar(__webpack_require__(265), exports);
2080
2235
 
2081
2236
  /***/ }),
2082
2237
 
2083
- /***/ 251:
2238
+ /***/ 262:
2084
2239
  /***/ (function(module, exports, __webpack_require__) {
2085
2240
 
2086
2241
  "use strict";
@@ -2103,7 +2258,7 @@ exports.SwitchTableCell = SwitchTableCell;
2103
2258
 
2104
2259
  /***/ }),
2105
2260
 
2106
- /***/ 252:
2261
+ /***/ 263:
2107
2262
  /***/ (function(module, exports, __webpack_require__) {
2108
2263
 
2109
2264
  "use strict";
@@ -2116,7 +2271,7 @@ exports.TextCell = void 0;
2116
2271
 
2117
2272
  var React = __webpack_require__(1);
2118
2273
 
2119
- var Table_1 = __webpack_require__(83);
2274
+ var Table_1 = __webpack_require__(82);
2120
2275
 
2121
2276
  var TextCell = function TextCell(_ref) {
2122
2277
  var cell = _ref.cell,
@@ -2136,7 +2291,7 @@ exports.TextCell.displayName = 'TextCell';
2136
2291
 
2137
2292
  /***/ }),
2138
2293
 
2139
- /***/ 253:
2294
+ /***/ 264:
2140
2295
  /***/ (function(module, exports, __webpack_require__) {
2141
2296
 
2142
2297
  "use strict";
@@ -2149,7 +2304,7 @@ exports.ArrayCell = void 0;
2149
2304
 
2150
2305
  var React = __webpack_require__(1);
2151
2306
 
2152
- var Table_1 = __webpack_require__(83);
2307
+ var Table_1 = __webpack_require__(82);
2153
2308
 
2154
2309
  var ArrayCell = function ArrayCell(_ref) {
2155
2310
  var cell = _ref.cell,
@@ -2175,13 +2330,13 @@ exports.ArrayCell.displayName = 'ArrayCell';
2175
2330
 
2176
2331
  /***/ }),
2177
2332
 
2178
- /***/ 254:
2333
+ /***/ 265:
2179
2334
  /***/ (function(module, exports, __webpack_require__) {
2180
2335
 
2181
2336
  "use strict";
2182
2337
 
2183
2338
 
2184
- var _slicedToArray = __webpack_require__(62);
2339
+ var _slicedToArray = __webpack_require__(49);
2185
2340
 
2186
2341
  Object.defineProperty(exports, "__esModule", {
2187
2342
  value: true
@@ -2190,9 +2345,9 @@ exports.SparklineCell = exports.validSparklineTypes = void 0;
2190
2345
 
2191
2346
  var React = __webpack_require__(1);
2192
2347
 
2193
- var Table_1 = __webpack_require__(83);
2348
+ var Table_1 = __webpack_require__(82);
2194
2349
 
2195
- var Line_1 = __webpack_require__(84);
2350
+ var Line_1 = __webpack_require__(83);
2196
2351
 
2197
2352
  var paddingLeftRight = 5;
2198
2353
  var paddingTopBottom = 3;
@@ -2267,137 +2422,19 @@ exports.SparklineCell.displayName = 'SparklineCell';
2267
2422
 
2268
2423
  /***/ }),
2269
2424
 
2270
- /***/ 255:
2425
+ /***/ 266:
2271
2426
  /***/ (function(module, exports) {
2272
2427
 
2273
2428
  module.exports = require("lodash/debounce");
2274
2429
 
2275
2430
  /***/ }),
2276
2431
 
2277
- /***/ 26:
2278
- /***/ (function(module, exports, __webpack_require__) {
2279
-
2280
- "use strict";
2281
-
2282
-
2283
- Object.defineProperty(exports, "__esModule", {
2284
- value: true
2285
- });
2286
- exports.shouldShowIconPlaceholder = void 0;
2287
-
2288
- var React = __webpack_require__(1);
2289
-
2290
- var T = __webpack_require__(0);
2291
-
2292
- var lodash_1 = __webpack_require__(2);
2293
-
2294
- var i18n_1 = __webpack_require__(3);
2295
-
2296
- var Message_1 = __webpack_require__(9);
2297
-
2298
- var FixedSizeContainer_1 = __webpack_require__(12);
2299
- /**
2300
- * @method shouldShowIconPlaceholder
2301
- * @param {object} dataSources
2302
- * @param {boolean} loading
2303
- * @returns {boolean}
2304
- */
2305
-
2306
-
2307
- var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
2308
- var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
2309
- var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
2310
- var noData = data === undefined;
2311
- var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
2312
- var noFields = fields === undefined;
2313
- return loading || noData || noFields;
2314
- };
2315
-
2316
- exports.shouldShowIconPlaceholder = shouldShowIconPlaceholder;
2317
- var propTypes = {
2318
- icon: T.func,
2319
- width: T.oneOfType([T.string, T.number]),
2320
- height: T.oneOfType([T.string, T.number]),
2321
- // eslint-disable-next-line react/no-unused-prop-types
2322
- backgroundColor: T.string
2323
- };
2324
- /**
2325
- * @method IconPlaceholder
2326
- * @param {IconPlaceholderProps} props
2327
- * @returns {React.ReactElement}
2328
- */
2329
-
2330
- var IconPlaceholder = function IconPlaceholder(props) {
2331
- var width = props.width,
2332
- height = props.height,
2333
- icon = props.icon;
2334
-
2335
- if (icon) {
2336
- return React.createElement(icon, {
2337
- style: {
2338
- left: '50%',
2339
- top: '50%',
2340
- color: 'grey',
2341
- position: 'absolute',
2342
- transform: 'translate(-50%, -50%)'
2343
- },
2344
- width: '50%',
2345
- height: '50%'
2346
- });
2347
- }
2348
-
2349
- return React.createElement(Message_1.default, {
2350
- width: width,
2351
- height: height,
2352
- level: "warning",
2353
- message: i18n_1._('No DataSource Connected')
2354
- });
2355
- };
2356
-
2357
- IconPlaceholder.propTypes = propTypes;
2358
- IconPlaceholder.defaultProps = {
2359
- width: '100%',
2360
- height: 250
2361
- };
2362
- exports.default = FixedSizeContainer_1.default(IconPlaceholder);
2363
-
2364
- /***/ }),
2365
-
2366
2432
  /***/ 27:
2367
2433
  /***/ (function(module, exports, __webpack_require__) {
2368
2434
 
2369
2435
  "use strict";
2370
2436
 
2371
2437
 
2372
- Object.defineProperty(exports, "__esModule", {
2373
- value: true
2374
- });
2375
- exports.VizCategory = void 0;
2376
- var VizCategory;
2377
-
2378
- (function (VizCategory) {
2379
- VizCategory["SINGLE_VALUE"] = "Single Value";
2380
- VizCategory["TRENDS"] = "Trends";
2381
- VizCategory["COMPARISONS"] = "Comparisons";
2382
- VizCategory["TABLE"] = "Table";
2383
- VizCategory["GAUGE"] = "Gauge";
2384
- VizCategory["DISTRIBUTIONS"] = "Distributions";
2385
- VizCategory["CHOROPLETH"] = "Choropleth Maps";
2386
- VizCategory["SHAPES"] = "Shapes";
2387
- VizCategory["MISC"] = "misc";
2388
- VizCategory["FLOW"] = "Flow";
2389
- VizCategory["CORRELATION"] = "Correlation";
2390
- VizCategory["SPATIAL"] = "Spatial";
2391
- })(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
2392
-
2393
- /***/ }),
2394
-
2395
- /***/ 28:
2396
- /***/ (function(module, exports, __webpack_require__) {
2397
-
2398
- "use strict";
2399
-
2400
-
2401
2438
  Object.defineProperty(exports, "__esModule", {
2402
2439
  value: true
2403
2440
  });
@@ -2406,33 +2443,33 @@ var React = __webpack_require__(1);
2406
2443
 
2407
2444
  var lodash_1 = __webpack_require__(2);
2408
2445
 
2409
- var getSettingsFromThemedProps_1 = __webpack_require__(29);
2446
+ var getSettingsFromThemedProps_1 = __webpack_require__(28);
2410
2447
 
2411
- var Options_1 = __webpack_require__(30);
2448
+ var Options_1 = __webpack_require__(29);
2412
2449
 
2413
- var SanitizeProps_1 = __webpack_require__(31);
2450
+ var SanitizeProps_1 = __webpack_require__(30);
2414
2451
 
2415
2452
  var styled_components_1 = __webpack_require__(4);
2416
2453
 
2417
- var SplunkVisualization_1 = __webpack_require__(32);
2454
+ var SplunkVisualization_1 = __webpack_require__(31);
2418
2455
 
2419
2456
  var VizBehavior_1 = __webpack_require__(5);
2420
2457
 
2421
- var getSorting_1 = __webpack_require__(24);
2458
+ var getSorting_1 = __webpack_require__(23);
2422
2459
 
2423
- var getPagination_1 = __webpack_require__(25);
2460
+ var getPagination_1 = __webpack_require__(24);
2424
2461
 
2425
- var useDeepMemo_1 = __webpack_require__(35);
2462
+ var useDeepMemo_1 = __webpack_require__(34);
2426
2463
 
2427
- var JSONSchemaUtils_1 = __webpack_require__(36);
2464
+ var JSONSchemaUtils_1 = __webpack_require__(35);
2428
2465
 
2429
- var MissingPropsMessage_1 = __webpack_require__(37);
2466
+ var MissingPropsMessage_1 = __webpack_require__(36);
2430
2467
 
2431
- var withEditModeCover_1 = __webpack_require__(38);
2468
+ var withEditModeCover_1 = __webpack_require__(37);
2432
2469
 
2433
- var withPlaceholder_1 = __webpack_require__(39);
2470
+ var withPlaceholder_1 = __webpack_require__(38);
2434
2471
 
2435
- var hocUtils_1 = __webpack_require__(8);
2472
+ var hocUtils_1 = __webpack_require__(7);
2436
2473
  /**
2437
2474
  * hoc that wraps a pure react visualization in a Dashboard visualization
2438
2475
  * @param {DashboardVizOpts} opts
@@ -2445,6 +2482,7 @@ var withDashboardViz = function withDashboardViz(opts) {
2445
2482
  vizConfig = opts.vizConfig,
2446
2483
  _opts$computeVizProps = opts.computeVizProps,
2447
2484
  computeVizProps = _opts$computeVizProps === void 0 ? function () {} : _opts$computeVizProps,
2485
+ disableEditModeCover = opts.disableEditModeCover,
2448
2486
  useIconPlaceholder = opts.useIconPlaceholder; // sanitizing props before sending them to reactviz.
2449
2487
 
2450
2488
  var SanitizedReactViz = SanitizeProps_1.withSanitizedProps(ReactViz);
@@ -2609,42 +2647,42 @@ var withDashboardViz = function withDashboardViz(opts) {
2609
2647
 
2610
2648
  DashboardViz.config = vizConfig; // @ts-ignore: TODO fix sc upgrade TS issues
2611
2649
 
2612
- return styled_components_1.withTheme(withPlaceholder_1.default(withEditModeCover_1.default(DashboardViz), useIconPlaceholder));
2650
+ return styled_components_1.withTheme(withPlaceholder_1.default(withEditModeCover_1.default(DashboardViz, disableEditModeCover), useIconPlaceholder));
2613
2651
  };
2614
2652
 
2615
2653
  exports.default = withDashboardViz;
2616
2654
 
2617
2655
  /***/ }),
2618
2656
 
2619
- /***/ 29:
2657
+ /***/ 28:
2620
2658
  /***/ (function(module, exports) {
2621
2659
 
2622
2660
  module.exports = require("@splunk/themes/getSettingsFromThemedProps");
2623
2661
 
2624
2662
  /***/ }),
2625
2663
 
2626
- /***/ 3:
2664
+ /***/ 29:
2627
2665
  /***/ (function(module, exports) {
2628
2666
 
2629
- module.exports = require("@splunk/ui-utils/i18n");
2667
+ module.exports = require("@splunk/visualization-encoding/Options");
2630
2668
 
2631
2669
  /***/ }),
2632
2670
 
2633
- /***/ 30:
2671
+ /***/ 3:
2634
2672
  /***/ (function(module, exports) {
2635
2673
 
2636
- module.exports = require("@splunk/visualization-encoding/Options");
2674
+ module.exports = require("@splunk/ui-utils/i18n");
2637
2675
 
2638
2676
  /***/ }),
2639
2677
 
2640
- /***/ 31:
2678
+ /***/ 30:
2641
2679
  /***/ (function(module, exports) {
2642
2680
 
2643
2681
  module.exports = require("@splunk/visualizations-shared/SanitizeProps");
2644
2682
 
2645
2683
  /***/ }),
2646
2684
 
2647
- /***/ 32:
2685
+ /***/ 31:
2648
2686
  /***/ (function(module, exports, __webpack_require__) {
2649
2687
 
2650
2688
  "use strict";
@@ -2662,7 +2700,7 @@ var T = __webpack_require__(0);
2662
2700
 
2663
2701
  var lodash_1 = __webpack_require__(2);
2664
2702
 
2665
- var VizActionHandler_1 = __webpack_require__(33); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
2703
+ var VizActionHandler_1 = __webpack_require__(32); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
2666
2704
 
2667
2705
 
2668
2706
  exports.INITIAL_WIDTH = 250;
@@ -2796,7 +2834,7 @@ exports.default = SplunkVisualization;
2796
2834
 
2797
2835
  /***/ }),
2798
2836
 
2799
- /***/ 33:
2837
+ /***/ 32:
2800
2838
  /***/ (function(module, exports, __webpack_require__) {
2801
2839
 
2802
2840
  "use strict";
@@ -2804,7 +2842,7 @@ exports.default = SplunkVisualization;
2804
2842
 
2805
2843
  var _classCallCheck = __webpack_require__(10);
2806
2844
 
2807
- var _createClass = __webpack_require__(17);
2845
+ var _createClass = __webpack_require__(15);
2808
2846
 
2809
2847
  Object.defineProperty(exports, "__esModule", {
2810
2848
  value: true
@@ -2834,7 +2872,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
2834
2872
 
2835
2873
  /***/ }),
2836
2874
 
2837
- /***/ 34:
2875
+ /***/ 33:
2838
2876
  /***/ (function(module, exports, __webpack_require__) {
2839
2877
 
2840
2878
  "use strict";
@@ -2848,7 +2886,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
2848
2886
 
2849
2887
  /***/ }),
2850
2888
 
2851
- /***/ 35:
2889
+ /***/ 34:
2852
2890
  /***/ (function(module, exports, __webpack_require__) {
2853
2891
 
2854
2892
  "use strict";
@@ -2894,7 +2932,7 @@ exports.useDeepMemo = useDeepMemo;
2894
2932
 
2895
2933
  /***/ }),
2896
2934
 
2897
- /***/ 36:
2935
+ /***/ 35:
2898
2936
  /***/ (function(module, exports, __webpack_require__) {
2899
2937
 
2900
2938
  "use strict";
@@ -2928,7 +2966,7 @@ exports.pickFieldFromJSONSchema = pickFieldFromJSONSchema;
2928
2966
 
2929
2967
  /***/ }),
2930
2968
 
2931
- /***/ 37:
2969
+ /***/ 36:
2932
2970
  /***/ (function(module, exports, __webpack_require__) {
2933
2971
 
2934
2972
  "use strict";
@@ -3009,7 +3047,7 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
3009
3047
 
3010
3048
  /***/ }),
3011
3049
 
3012
- /***/ 38:
3050
+ /***/ 37:
3013
3051
  /***/ (function(module, exports, __webpack_require__) {
3014
3052
 
3015
3053
  "use strict";
@@ -3023,16 +3061,14 @@ var React = __webpack_require__(1);
3023
3061
 
3024
3062
  var styled_components_1 = __webpack_require__(4);
3025
3063
 
3026
- var hocUtils_1 = __webpack_require__(8);
3027
-
3028
- var version_1 = __webpack_require__(13);
3064
+ var hocUtils_1 = __webpack_require__(7);
3029
3065
 
3030
3066
  var Cover = styled_components_1.default.div.withConfig({
3031
3067
  displayName: "withEditModeCover__Cover",
3032
3068
  componentId: "sc-1gsbnxb-0"
3033
3069
  })(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
3034
3070
  var Blocker = styled_components_1.default.div.attrs({
3035
- 'data-splunk-visualization-version': version_1.version
3071
+ 'data-splunk-visualization-version': "24.3.2 - 1cf892b72"
3036
3072
  }).withConfig({
3037
3073
  displayName: "withEditModeCover__Blocker",
3038
3074
  componentId: "sc-1gsbnxb-1"
@@ -3044,10 +3080,11 @@ var Blocker = styled_components_1.default.div.attrs({
3044
3080
  * @returns {ExtendedDashViz} Wrapper
3045
3081
  */
3046
3082
 
3047
- var withEditModeCover = function withEditModeCover(Visualization) {
3083
+ var withEditModeCover = function withEditModeCover(Visualization, disableEditModeCover) {
3048
3084
  var Wrapper = function Wrapper(props) {
3049
3085
  var mode = props.mode;
3050
- return React.createElement(Blocker, null, React.createElement(Visualization, Object.assign({}, props)), mode === 'edit' && React.createElement(Cover, {
3086
+ var showEditCover = mode === 'edit' && !disableEditModeCover;
3087
+ return React.createElement(Blocker, null, React.createElement(Visualization, Object.assign({}, props)), showEditCover && React.createElement(Cover, {
3051
3088
  "data-test": "edit-mode-cover"
3052
3089
  }));
3053
3090
  };
@@ -3063,7 +3100,7 @@ exports.default = withEditModeCover;
3063
3100
 
3064
3101
  /***/ }),
3065
3102
 
3066
- /***/ 39:
3103
+ /***/ 38:
3067
3104
  /***/ (function(module, exports, __webpack_require__) {
3068
3105
 
3069
3106
  "use strict";
@@ -3077,11 +3114,11 @@ var React = __webpack_require__(1);
3077
3114
 
3078
3115
  var colorUtils_1 = __webpack_require__(11);
3079
3116
 
3080
- var IconPlaceholder_1 = __webpack_require__(26);
3117
+ var IconPlaceholder_1 = __webpack_require__(25);
3081
3118
 
3082
3119
  var VizBehavior_1 = __webpack_require__(5);
3083
3120
 
3084
- var hocUtils_1 = __webpack_require__(8);
3121
+ var hocUtils_1 = __webpack_require__(7);
3085
3122
 
3086
3123
  var withPlaceholder = function withPlaceholder(Visualization) {
3087
3124
  var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
@@ -3123,6 +3160,13 @@ exports.default = withPlaceholder;
3123
3160
 
3124
3161
  /***/ }),
3125
3162
 
3163
+ /***/ 39:
3164
+ /***/ (function(module, exports) {
3165
+
3166
+ module.exports = require("@babel/runtime/helpers/toConsumableArray");
3167
+
3168
+ /***/ }),
3169
+
3126
3170
  /***/ 4:
3127
3171
  /***/ (function(module, exports) {
3128
3172
 
@@ -3133,21 +3177,21 @@ module.exports = require("styled-components");
3133
3177
  /***/ 40:
3134
3178
  /***/ (function(module, exports) {
3135
3179
 
3136
- module.exports = require("@babel/runtime/helpers/toConsumableArray");
3180
+ module.exports = require("@splunk/visualizations-shared/colorConstants");
3137
3181
 
3138
3182
  /***/ }),
3139
3183
 
3140
- /***/ 41:
3184
+ /***/ 42:
3141
3185
  /***/ (function(module, exports) {
3142
3186
 
3143
- module.exports = require("@splunk/visualizations-shared/colorConstants");
3187
+ module.exports = require("@splunk/visualization-icons");
3144
3188
 
3145
3189
  /***/ }),
3146
3190
 
3147
- /***/ 43:
3191
+ /***/ 49:
3148
3192
  /***/ (function(module, exports) {
3149
3193
 
3150
- module.exports = require("@splunk/visualization-icons");
3194
+ module.exports = require("@babel/runtime/helpers/slicedToArray");
3151
3195
 
3152
3196
  /***/ }),
3153
3197
 
@@ -3195,7 +3239,7 @@ var VizBehavior;
3195
3239
  "use strict";
3196
3240
 
3197
3241
 
3198
- var _defineProperty = __webpack_require__(7);
3242
+ var _defineProperty = __webpack_require__(8);
3199
3243
 
3200
3244
  var __rest = this && this.__rest || function (s, e) {
3201
3245
  var t = {};
@@ -3217,7 +3261,7 @@ exports.generatePrecisionValues = exports.getInitialPreset = exports.isDynamicOp
3217
3261
 
3218
3262
  var lodash_1 = __webpack_require__(2);
3219
3263
 
3220
- var schemaUtils_1 = __webpack_require__(15);
3264
+ var schemaUtils_1 = __webpack_require__(14);
3221
3265
 
3222
3266
  var VizBehavior_1 = __webpack_require__(5);
3223
3267
 
@@ -3381,27 +3425,13 @@ exports.generatePrecisionValues = generatePrecisionValues;
3381
3425
 
3382
3426
  /***/ }),
3383
3427
 
3384
- /***/ 62:
3385
- /***/ (function(module, exports) {
3386
-
3387
- module.exports = require("@babel/runtime/helpers/slicedToArray");
3388
-
3389
- /***/ }),
3390
-
3391
3428
  /***/ 7:
3392
- /***/ (function(module, exports) {
3393
-
3394
- module.exports = require("@babel/runtime/helpers/defineProperty");
3395
-
3396
- /***/ }),
3397
-
3398
- /***/ 8:
3399
3429
  /***/ (function(module, exports, __webpack_require__) {
3400
3430
 
3401
3431
  "use strict";
3402
3432
 
3403
3433
 
3404
- var _typeof = __webpack_require__(23);
3434
+ var _typeof = __webpack_require__(20);
3405
3435
 
3406
3436
  Object.defineProperty(exports, "__esModule", {
3407
3437
  value: true
@@ -3468,14 +3498,21 @@ exports.deepMergeWithArrayOverrides = deepMergeWithArrayOverrides;
3468
3498
 
3469
3499
  /***/ }),
3470
3500
 
3471
- /***/ 83:
3501
+ /***/ 8:
3502
+ /***/ (function(module, exports) {
3503
+
3504
+ module.exports = require("@babel/runtime/helpers/defineProperty");
3505
+
3506
+ /***/ }),
3507
+
3508
+ /***/ 82:
3472
3509
  /***/ (function(module, exports) {
3473
3510
 
3474
3511
  module.exports = require("@splunk/react-ui/Table");
3475
3512
 
3476
3513
  /***/ }),
3477
3514
 
3478
- /***/ 84:
3515
+ /***/ 83:
3479
3516
  /***/ (function(module, exports) {
3480
3517
 
3481
3518
  module.exports = require("@splunk/react-sparkline/Line");