@splunk/visualizations 24.1.0 → 24.3.1
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.
- package/.loki/reference/chrome_docker_PureVisualizations_PureFillerGauge_Orientation_horizontal_height_90_show_placeholder.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureFillerGauge_Too_Small_to_Render.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_Tooltip_Dark.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_Tooltip_Hover.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_Tooltip_Light.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_base_map_light.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_basic.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_bubble_layer_dynamic_color.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_bubble_layer_geostats_by.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_bubble_layer_static_color.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_bubble_layer_static_color_with_no_seriesColors.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_center_seattle.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_dynamic_color.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_static_color.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_marker_layer_static_color_with_no_seriesColors.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_scale_off.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_scale_unit_metric.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMap_zoom_9.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMarkerGauge_Invalid_ranges_duplicate_entries_from.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMarkerGauge_Invalid_ranges_duplicate_entries_to.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMarkerGauge_Invalid_ranges_invalid_entries_discontinuous_ranges.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMarkerGauge_Invalid_ranges_invalid_entries_from_equals_to_to.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMarkerGauge_Invalid_ranges_invalid_entries_from_is_larger_than_to.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMarkerGauge_Invalid_ranges_missing_entries.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMarkerGauge_Orientation_horizontal_width_150_show_placeholder.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureMarkerGauge_Too_Small_to_Render.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureSankey_dimensions_less_than_minWidth_300_and_minHeight_200.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureSankey_invalid_columns_data.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Map_Editor.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Choropleth_Svg_Choropleth_Svg_Missing_Props_Message_When_No_Svg.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Filler_Gauge_Filler_Gauge_Orientation_horizontal_height_90_show_placeholder.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Basic_Map.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_GET_Dynamic_Coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_By_Static_Coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Bubble_Layer_Geostats_Dynamic_Coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Dynamic_coloring.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_Result_Limit_Set_To_3.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Marker_layer_with_geostats_data_No_render.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Map_Map_Set_Map_tiles.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Pie_Pie_Missing_Column.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Sankey_Sankey_Dimension_Too_Small.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_By_Type_Custom.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_Default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_Kitchen_Sink.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_Right.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Align_Single_Column.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Background_Color_light_blue.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Background_No_Stripe.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Background_Stripe.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Basic_Table.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Basic_Table_With_No_Click.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Cell_Types.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Column_Gradient.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Column_Override.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Column_Width.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Count_2.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Custom_Header_Colors.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Custom_Row_Colors.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Custom_Stripe.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Dark_Background_No_Stripe.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Dark_Background_Stripe.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Format_Number.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Format_Number_Adv.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Header_Visibility_fixed.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Header_Visibility_none.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Height_Percentage.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Height_Percentage_100_no_paginator.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Invalid_Background_Color.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Multi_Value_Field.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_No_Stripes.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_No_Stripes_Row_Numbers.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Show_Internal_Fields_false.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Show_Internal_Fields_true_default.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Show_Row_Numbers_true.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline_Custom.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparkline_Width.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Sparklines_Adv.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Table_Formatting.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Table_Gradient.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Time_Formatting.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Width_Height.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Width_Percentage.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Table_Table_Width_Px.png +0 -0
- package/Area.config.js +15 -15
- package/Area.config.js.map +1 -1
- package/Area.js +74 -67
- package/Area.js.map +1 -1
- package/Bar.config.js +15 -15
- package/Bar.config.js.map +1 -1
- package/Bar.js +74 -67
- package/Bar.js.map +1 -1
- package/Bubble.config.js +8 -8
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +66 -59
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +11 -9
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +76 -67
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +15 -15
- package/Column.config.js.map +1 -1
- package/Column.js +74 -67
- package/Column.js.map +1 -1
- package/Ellipse.config.js +22 -2
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +64 -37
- package/Ellipse.js.map +1 -1
- package/FillerGauge.config.js +8 -8
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +52 -45
- package/FillerGauge.js.map +1 -1
- package/Image.js +46 -41
- package/Image.js.map +1 -1
- package/Line.config.js +8 -8
- package/Line.config.js.map +1 -1
- package/Line.js +66 -59
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +4 -4
- package/LinkGraph.js +83 -76
- package/LinkGraph.js.map +1 -1
- package/Map.config.js +740 -0
- package/Map.config.js.map +1 -0
- package/Map.js +3141 -0
- package/Map.js.map +1 -0
- package/Markdown.config.js +12 -12
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +57 -52
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +6 -6
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +2948 -3035
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +11 -11
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +94 -76
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +13 -13
- package/Pie.config.js.map +1 -1
- package/Pie.js +904 -991
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +11 -11
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +101 -83
- package/Punchcard.js.map +1 -1
- package/README.internal.md +36 -3
- package/README.md +7 -9
- package/Rectangle.config.js +32 -12
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +141 -116
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +35 -25
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +2949 -3044
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +11 -11
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +198 -193
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +23 -22
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +238 -233
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +6 -6
- package/SingleValueIcon.config.js +33 -34
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +128 -113
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +22 -22
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +245 -240
- package/SingleValueRadial.js.map +1 -1
- package/Table.config.js +26 -7
- package/Table.config.js.map +1 -1
- package/Table.js +260 -194
- package/Table.js.map +1 -1
- package/common/OptionsDoc.js +1 -1
- package/common/OptionsDoc.js.map +1 -1
- package/common/withDashboardViz.js +9 -4
- package/common/withDashboardViz.js.map +1 -1
- package/loki.config.js +2 -0
- package/package.json +20 -15
- package/.loki/reference/chrome_docker_PureVisualizations_PureSingleValueRadial_Trend_Indicator_Position_pushed_below_value_does_not_fit_inside_of_radial.png +0 -0
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 =
|
|
90
|
+
/******/ return __webpack_require__(__webpack_require__.s = 255);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -113,14 +113,14 @@ module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
|
113
113
|
|
|
114
114
|
/***/ }),
|
|
115
115
|
|
|
116
|
-
/***/
|
|
116
|
+
/***/ 101:
|
|
117
117
|
/***/ (function(module, exports) {
|
|
118
118
|
|
|
119
119
|
module.exports = require("@babel/runtime/helpers/taggedTemplateLiteral");
|
|
120
120
|
|
|
121
121
|
/***/ }),
|
|
122
122
|
|
|
123
|
-
/***/
|
|
123
|
+
/***/ 105:
|
|
124
124
|
/***/ (function(module, exports, __webpack_require__) {
|
|
125
125
|
|
|
126
126
|
"use strict";
|
|
@@ -159,7 +159,7 @@ var React = __webpack_require__(1);
|
|
|
159
159
|
|
|
160
160
|
var styled_components_1 = __webpack_require__(4);
|
|
161
161
|
|
|
162
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
162
|
+
var SizeAwareWrapper_1 = __webpack_require__(16);
|
|
163
163
|
|
|
164
164
|
var style_1 = __webpack_require__(13);
|
|
165
165
|
|
|
@@ -220,6 +220,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
220
220
|
|
|
221
221
|
return React.createElement(FixSizeItem, {
|
|
222
222
|
"data-test": "fix-size-item",
|
|
223
|
+
"data-splunk-visualization-version": "24.3.1 - da5652d2c",
|
|
223
224
|
width: width,
|
|
224
225
|
height: height,
|
|
225
226
|
backgroundColor: backgroundColor
|
|
@@ -241,12 +242,21 @@ exports.default = withFixedSizeContainer;
|
|
|
241
242
|
|
|
242
243
|
/***/ }),
|
|
243
244
|
|
|
244
|
-
/***/
|
|
245
|
+
/***/ 13:
|
|
246
|
+
/***/ (function(module, exports) {
|
|
247
|
+
|
|
248
|
+
module.exports = require("@splunk/visualizations-shared/style");
|
|
249
|
+
|
|
250
|
+
/***/ }),
|
|
251
|
+
|
|
252
|
+
/***/ 131:
|
|
245
253
|
/***/ (function(module, exports, __webpack_require__) {
|
|
246
254
|
|
|
247
255
|
"use strict";
|
|
248
256
|
|
|
249
257
|
|
|
258
|
+
var _slicedToArray = __webpack_require__(49);
|
|
259
|
+
|
|
250
260
|
var __rest = this && this.__rest || function (s, e) {
|
|
251
261
|
var t = {};
|
|
252
262
|
|
|
@@ -265,19 +275,59 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
265
275
|
});
|
|
266
276
|
exports.config = exports.PureTable = exports.themes = exports.computeVizProps = void 0;
|
|
267
277
|
|
|
268
|
-
var
|
|
278
|
+
var colorUtils_1 = __webpack_require__(11);
|
|
279
|
+
|
|
280
|
+
var config_1 = __webpack_require__(256);
|
|
269
281
|
|
|
270
282
|
exports.config = config_1.default;
|
|
271
283
|
|
|
272
284
|
var withDashboardViz_1 = __webpack_require__(27);
|
|
273
285
|
|
|
274
|
-
var PureTable_1 = __webpack_require__(
|
|
286
|
+
var PureTable_1 = __webpack_require__(257);
|
|
275
287
|
|
|
276
288
|
exports.PureTable = PureTable_1.default;
|
|
277
289
|
|
|
278
290
|
var computeVizProps = function computeVizProps(_a) {
|
|
279
291
|
var props = __rest(_a, []);
|
|
280
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
|
+
|
|
281
331
|
if (!props.showInternalFields) {
|
|
282
332
|
var filteredFields = [];
|
|
283
333
|
var filteredTable = [];
|
|
@@ -330,13 +380,6 @@ exports.default = Table;
|
|
|
330
380
|
|
|
331
381
|
/***/ }),
|
|
332
382
|
|
|
333
|
-
/***/ 13:
|
|
334
|
-
/***/ (function(module, exports) {
|
|
335
|
-
|
|
336
|
-
module.exports = require("@splunk/visualizations-shared/style");
|
|
337
|
-
|
|
338
|
-
/***/ }),
|
|
339
|
-
|
|
340
383
|
/***/ 14:
|
|
341
384
|
/***/ (function(module, exports) {
|
|
342
385
|
|
|
@@ -344,14 +387,14 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
|
344
387
|
|
|
345
388
|
/***/ }),
|
|
346
389
|
|
|
347
|
-
/***/
|
|
390
|
+
/***/ 15:
|
|
348
391
|
/***/ (function(module, exports) {
|
|
349
392
|
|
|
350
393
|
module.exports = require("@babel/runtime/helpers/createClass");
|
|
351
394
|
|
|
352
395
|
/***/ }),
|
|
353
396
|
|
|
354
|
-
/***/
|
|
397
|
+
/***/ 16:
|
|
355
398
|
/***/ (function(module, exports) {
|
|
356
399
|
|
|
357
400
|
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
@@ -375,14 +418,14 @@ module.exports = require("lodash");
|
|
|
375
418
|
/***/ 20:
|
|
376
419
|
/***/ (function(module, exports) {
|
|
377
420
|
|
|
378
|
-
module.exports = require("@
|
|
421
|
+
module.exports = require("@babel/runtime/helpers/typeof");
|
|
379
422
|
|
|
380
423
|
/***/ }),
|
|
381
424
|
|
|
382
|
-
/***/
|
|
425
|
+
/***/ 21:
|
|
383
426
|
/***/ (function(module, exports) {
|
|
384
427
|
|
|
385
|
-
module.exports = require("@
|
|
428
|
+
module.exports = require("@splunk/themes/pick");
|
|
386
429
|
|
|
387
430
|
/***/ }),
|
|
388
431
|
|
|
@@ -392,7 +435,7 @@ module.exports = require("@babel/runtime/helpers/typeof");
|
|
|
392
435
|
"use strict";
|
|
393
436
|
|
|
394
437
|
|
|
395
|
-
var _defineProperty = __webpack_require__(
|
|
438
|
+
var _defineProperty = __webpack_require__(8);
|
|
396
439
|
|
|
397
440
|
Object.defineProperty(exports, "__esModule", {
|
|
398
441
|
value: true
|
|
@@ -522,7 +565,96 @@ exports.getPaginationParams = getPaginationParams;
|
|
|
522
565
|
|
|
523
566
|
/***/ }),
|
|
524
567
|
|
|
525
|
-
/***/
|
|
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:
|
|
526
658
|
/***/ (function(module, exports, __webpack_require__) {
|
|
527
659
|
|
|
528
660
|
"use strict";
|
|
@@ -554,9 +686,9 @@ exports.default = void 0; // NOTE: wildcard syntax only works for named exports
|
|
|
554
686
|
// for some reason, omitting the default export worked before TS v4
|
|
555
687
|
// see: https://stackoverflow.com/a/34445175
|
|
556
688
|
|
|
557
|
-
__exportStar(__webpack_require__(
|
|
689
|
+
__exportStar(__webpack_require__(131), exports);
|
|
558
690
|
|
|
559
|
-
var Table_1 = __webpack_require__(
|
|
691
|
+
var Table_1 = __webpack_require__(131);
|
|
560
692
|
|
|
561
693
|
Object.defineProperty(exports, "default", {
|
|
562
694
|
enumerable: true,
|
|
@@ -567,7 +699,7 @@ Object.defineProperty(exports, "default", {
|
|
|
567
699
|
|
|
568
700
|
/***/ }),
|
|
569
701
|
|
|
570
|
-
/***/
|
|
702
|
+
/***/ 256:
|
|
571
703
|
/***/ (function(module, exports, __webpack_require__) {
|
|
572
704
|
|
|
573
705
|
"use strict";
|
|
@@ -591,13 +723,13 @@ var visualization_icons_1 = __webpack_require__(42);
|
|
|
591
723
|
|
|
592
724
|
var variables_1 = __webpack_require__(19);
|
|
593
725
|
|
|
594
|
-
var pick_1 = __webpack_require__(
|
|
726
|
+
var pick_1 = __webpack_require__(21);
|
|
595
727
|
|
|
596
728
|
var configUtils_1 = __webpack_require__(6);
|
|
597
729
|
|
|
598
730
|
var VizBehavior_1 = __webpack_require__(5);
|
|
599
731
|
|
|
600
|
-
var consts_1 = __webpack_require__(
|
|
732
|
+
var consts_1 = __webpack_require__(105);
|
|
601
733
|
|
|
602
734
|
var VizCategory_1 = __webpack_require__(26);
|
|
603
735
|
|
|
@@ -706,6 +838,14 @@ var unitLabelConfig = {
|
|
|
706
838
|
option: 'unit',
|
|
707
839
|
editor: 'editor.text'
|
|
708
840
|
};
|
|
841
|
+
var timeFormattingConfig = {
|
|
842
|
+
label: i18n_1._('Date & Time Formatting'),
|
|
843
|
+
option: 'format',
|
|
844
|
+
editor: 'editor.text',
|
|
845
|
+
editorProps: {
|
|
846
|
+
tooltip: i18n_1._('For example: DD-MM-YYYY')
|
|
847
|
+
}
|
|
848
|
+
};
|
|
709
849
|
var sequentialColorConfig = [{
|
|
710
850
|
to: 20,
|
|
711
851
|
value: '#D41F1F'
|
|
@@ -725,6 +865,10 @@ var sequentialColorConfig = [{
|
|
|
725
865
|
from: 80,
|
|
726
866
|
value: '#118832'
|
|
727
867
|
}];
|
|
868
|
+
var matchColorConfig = [{
|
|
869
|
+
match: '',
|
|
870
|
+
value: '#5C33FF'
|
|
871
|
+
}];
|
|
728
872
|
var optionsSchema = {
|
|
729
873
|
backgroundColor: {
|
|
730
874
|
default: '> themes.defaultBackgroundColor',
|
|
@@ -1134,6 +1278,13 @@ var editorConfig = [{
|
|
|
1134
1278
|
rowBackgroundColors: sequentialColorConfig,
|
|
1135
1279
|
rowColors: sequentialColorConfig
|
|
1136
1280
|
}
|
|
1281
|
+
}, {
|
|
1282
|
+
label: i18n_1._('Matches'),
|
|
1283
|
+
value: 'matchValue',
|
|
1284
|
+
defaults: {
|
|
1285
|
+
rowBackgroundColors: matchColorConfig,
|
|
1286
|
+
rowColors: matchColorConfig
|
|
1287
|
+
}
|
|
1137
1288
|
}],
|
|
1138
1289
|
themes: themes
|
|
1139
1290
|
},
|
|
@@ -1171,7 +1322,7 @@ var editorConfig = [{
|
|
|
1171
1322
|
// TODO(fkurniawan): fill in with proper editor components
|
|
1172
1323
|
sparkline: [],
|
|
1173
1324
|
string: [[Object.assign({}, unitPositionConfig), Object.assign({}, unitLabelConfig)]],
|
|
1174
|
-
time: []
|
|
1325
|
+
time: [[Object.assign({}, timeFormattingConfig)]]
|
|
1175
1326
|
},
|
|
1176
1327
|
value: function value(_ref) {
|
|
1177
1328
|
var context = _ref.context,
|
|
@@ -1223,13 +1374,13 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
1223
1374
|
|
|
1224
1375
|
/***/ }),
|
|
1225
1376
|
|
|
1226
|
-
/***/
|
|
1377
|
+
/***/ 257:
|
|
1227
1378
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1228
1379
|
|
|
1229
1380
|
"use strict";
|
|
1230
1381
|
|
|
1231
1382
|
|
|
1232
|
-
var _taggedTemplateLiteral = __webpack_require__(
|
|
1383
|
+
var _taggedTemplateLiteral = __webpack_require__(101);
|
|
1233
1384
|
|
|
1234
1385
|
var _templateObject, _templateObject2;
|
|
1235
1386
|
|
|
@@ -1262,23 +1413,23 @@ var i18n_1 = __webpack_require__(3);
|
|
|
1262
1413
|
|
|
1263
1414
|
var Table_1 = __webpack_require__(82);
|
|
1264
1415
|
|
|
1265
|
-
var Paginator_1 = __webpack_require__(
|
|
1416
|
+
var Paginator_1 = __webpack_require__(258);
|
|
1266
1417
|
|
|
1267
|
-
var Message_1 = __webpack_require__(
|
|
1418
|
+
var Message_1 = __webpack_require__(259);
|
|
1268
1419
|
|
|
1269
1420
|
var colorUtils_1 = __webpack_require__(11);
|
|
1270
1421
|
|
|
1271
1422
|
var style_1 = __webpack_require__(13);
|
|
1272
1423
|
|
|
1273
|
-
var pick_1 = __webpack_require__(
|
|
1424
|
+
var pick_1 = __webpack_require__(21);
|
|
1274
1425
|
|
|
1275
1426
|
var variables_1 = __webpack_require__(19);
|
|
1276
1427
|
|
|
1277
|
-
var hooks_1 = __webpack_require__(
|
|
1428
|
+
var hooks_1 = __webpack_require__(260);
|
|
1278
1429
|
|
|
1279
|
-
var consts_1 = __webpack_require__(
|
|
1430
|
+
var consts_1 = __webpack_require__(105);
|
|
1280
1431
|
|
|
1281
|
-
var cells_1 = __webpack_require__(
|
|
1432
|
+
var cells_1 = __webpack_require__(261);
|
|
1282
1433
|
|
|
1283
1434
|
var getPagination_1 = __webpack_require__(24);
|
|
1284
1435
|
|
|
@@ -1288,7 +1439,7 @@ var FixedSizeContainer_1 = __webpack_require__(12); // debounce was imported thi
|
|
|
1288
1439
|
// eslint-disable-next-line import/order
|
|
1289
1440
|
|
|
1290
1441
|
|
|
1291
|
-
var debounce = __webpack_require__(
|
|
1442
|
+
var debounce = __webpack_require__(266);
|
|
1292
1443
|
|
|
1293
1444
|
var NonVisibleTableHead = styled_components_1.default(Table_1.default.Head).withConfig({
|
|
1294
1445
|
displayName: "PureTable__NonVisibleTableHead",
|
|
@@ -1581,21 +1732,50 @@ exports.default = withEmptyTableMessage(FixedSizeContainer_1.default(PureTable))
|
|
|
1581
1732
|
|
|
1582
1733
|
/***/ }),
|
|
1583
1734
|
|
|
1584
|
-
/***/
|
|
1735
|
+
/***/ 258:
|
|
1585
1736
|
/***/ (function(module, exports) {
|
|
1586
1737
|
|
|
1587
1738
|
module.exports = require("@splunk/react-ui/Paginator");
|
|
1588
1739
|
|
|
1589
1740
|
/***/ }),
|
|
1590
1741
|
|
|
1591
|
-
/***/
|
|
1742
|
+
/***/ 259:
|
|
1592
1743
|
/***/ (function(module, exports) {
|
|
1593
1744
|
|
|
1594
1745
|
module.exports = require("@splunk/react-ui/Message");
|
|
1595
1746
|
|
|
1596
1747
|
/***/ }),
|
|
1597
1748
|
|
|
1598
|
-
/***/
|
|
1749
|
+
/***/ 26:
|
|
1750
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1751
|
+
|
|
1752
|
+
"use strict";
|
|
1753
|
+
|
|
1754
|
+
|
|
1755
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1756
|
+
value: true
|
|
1757
|
+
});
|
|
1758
|
+
exports.VizCategory = void 0;
|
|
1759
|
+
var VizCategory;
|
|
1760
|
+
|
|
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:
|
|
1599
1779
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1600
1780
|
|
|
1601
1781
|
"use strict";
|
|
@@ -1603,7 +1783,7 @@ module.exports = require("@splunk/react-ui/Message");
|
|
|
1603
1783
|
|
|
1604
1784
|
var _toConsumableArray = __webpack_require__(39);
|
|
1605
1785
|
|
|
1606
|
-
var _typeof = __webpack_require__(
|
|
1786
|
+
var _typeof = __webpack_require__(20);
|
|
1607
1787
|
|
|
1608
1788
|
Object.defineProperty(exports, "__esModule", {
|
|
1609
1789
|
value: true
|
|
@@ -1616,7 +1796,7 @@ var colorUtils_1 = __webpack_require__(11);
|
|
|
1616
1796
|
|
|
1617
1797
|
var style_1 = __webpack_require__(13);
|
|
1618
1798
|
|
|
1619
|
-
var consts_1 = __webpack_require__(
|
|
1799
|
+
var consts_1 = __webpack_require__(105);
|
|
1620
1800
|
|
|
1621
1801
|
var isArray = function isArray(v) {
|
|
1622
1802
|
return Array.isArray(v);
|
|
@@ -2016,7 +2196,7 @@ exports.useTable = useTable;
|
|
|
2016
2196
|
|
|
2017
2197
|
/***/ }),
|
|
2018
2198
|
|
|
2019
|
-
/***/
|
|
2199
|
+
/***/ 261:
|
|
2020
2200
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2021
2201
|
|
|
2022
2202
|
"use strict";
|
|
@@ -2045,106 +2225,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2045
2225
|
value: true
|
|
2046
2226
|
});
|
|
2047
2227
|
|
|
2048
|
-
__exportStar(__webpack_require__(
|
|
2228
|
+
__exportStar(__webpack_require__(262), exports);
|
|
2049
2229
|
|
|
2050
|
-
__exportStar(__webpack_require__(
|
|
2230
|
+
__exportStar(__webpack_require__(263), exports);
|
|
2051
2231
|
|
|
2052
|
-
__exportStar(__webpack_require__(
|
|
2232
|
+
__exportStar(__webpack_require__(264), exports);
|
|
2053
2233
|
|
|
2054
|
-
__exportStar(__webpack_require__(
|
|
2234
|
+
__exportStar(__webpack_require__(265), exports);
|
|
2055
2235
|
|
|
2056
2236
|
/***/ }),
|
|
2057
2237
|
|
|
2058
|
-
/***/
|
|
2059
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2060
|
-
|
|
2061
|
-
"use strict";
|
|
2062
|
-
|
|
2063
|
-
|
|
2064
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2065
|
-
value: true
|
|
2066
|
-
});
|
|
2067
|
-
exports.shouldShowIconPlaceholder = void 0;
|
|
2068
|
-
|
|
2069
|
-
var React = __webpack_require__(1);
|
|
2070
|
-
|
|
2071
|
-
var T = __webpack_require__(0);
|
|
2072
|
-
|
|
2073
|
-
var lodash_1 = __webpack_require__(2);
|
|
2074
|
-
|
|
2075
|
-
var i18n_1 = __webpack_require__(3);
|
|
2076
|
-
|
|
2077
|
-
var Message_1 = __webpack_require__(9);
|
|
2078
|
-
|
|
2079
|
-
var FixedSizeContainer_1 = __webpack_require__(12);
|
|
2080
|
-
/**
|
|
2081
|
-
* @method shouldShowIconPlaceholder
|
|
2082
|
-
* @param {object} dataSources
|
|
2083
|
-
* @param {boolean} loading
|
|
2084
|
-
* @returns {boolean}
|
|
2085
|
-
*/
|
|
2086
|
-
|
|
2087
|
-
|
|
2088
|
-
var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
|
|
2089
|
-
var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
2090
|
-
var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
|
|
2091
|
-
var noData = data === undefined;
|
|
2092
|
-
var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
|
|
2093
|
-
var noFields = fields === undefined;
|
|
2094
|
-
return loading || noData || noFields;
|
|
2095
|
-
};
|
|
2096
|
-
|
|
2097
|
-
exports.shouldShowIconPlaceholder = shouldShowIconPlaceholder;
|
|
2098
|
-
var propTypes = {
|
|
2099
|
-
icon: T.func,
|
|
2100
|
-
width: T.oneOfType([T.string, T.number]),
|
|
2101
|
-
height: T.oneOfType([T.string, T.number]),
|
|
2102
|
-
// eslint-disable-next-line react/no-unused-prop-types
|
|
2103
|
-
backgroundColor: T.string
|
|
2104
|
-
};
|
|
2105
|
-
/**
|
|
2106
|
-
* @method IconPlaceholder
|
|
2107
|
-
* @param {IconPlaceholderProps} props
|
|
2108
|
-
* @returns {React.ReactElement}
|
|
2109
|
-
*/
|
|
2110
|
-
|
|
2111
|
-
var IconPlaceholder = function IconPlaceholder(props) {
|
|
2112
|
-
var width = props.width,
|
|
2113
|
-
height = props.height,
|
|
2114
|
-
icon = props.icon;
|
|
2115
|
-
|
|
2116
|
-
if (icon) {
|
|
2117
|
-
return React.createElement(icon, {
|
|
2118
|
-
style: {
|
|
2119
|
-
left: '50%',
|
|
2120
|
-
top: '50%',
|
|
2121
|
-
color: 'grey',
|
|
2122
|
-
position: 'absolute',
|
|
2123
|
-
transform: 'translate(-50%, -50%)'
|
|
2124
|
-
},
|
|
2125
|
-
width: '50%',
|
|
2126
|
-
height: '50%'
|
|
2127
|
-
});
|
|
2128
|
-
}
|
|
2129
|
-
|
|
2130
|
-
return React.createElement(Message_1.default, {
|
|
2131
|
-
width: width,
|
|
2132
|
-
height: height,
|
|
2133
|
-
level: "warning",
|
|
2134
|
-
message: i18n_1._('No DataSource Connected')
|
|
2135
|
-
});
|
|
2136
|
-
};
|
|
2137
|
-
|
|
2138
|
-
IconPlaceholder.propTypes = propTypes;
|
|
2139
|
-
IconPlaceholder.defaultProps = {
|
|
2140
|
-
width: '100%',
|
|
2141
|
-
height: 250
|
|
2142
|
-
};
|
|
2143
|
-
exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
2144
|
-
|
|
2145
|
-
/***/ }),
|
|
2146
|
-
|
|
2147
|
-
/***/ 250:
|
|
2238
|
+
/***/ 262:
|
|
2148
2239
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2149
2240
|
|
|
2150
2241
|
"use strict";
|
|
@@ -2167,7 +2258,7 @@ exports.SwitchTableCell = SwitchTableCell;
|
|
|
2167
2258
|
|
|
2168
2259
|
/***/ }),
|
|
2169
2260
|
|
|
2170
|
-
/***/
|
|
2261
|
+
/***/ 263:
|
|
2171
2262
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2172
2263
|
|
|
2173
2264
|
"use strict";
|
|
@@ -2200,7 +2291,7 @@ exports.TextCell.displayName = 'TextCell';
|
|
|
2200
2291
|
|
|
2201
2292
|
/***/ }),
|
|
2202
2293
|
|
|
2203
|
-
/***/
|
|
2294
|
+
/***/ 264:
|
|
2204
2295
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2205
2296
|
|
|
2206
2297
|
"use strict";
|
|
@@ -2239,13 +2330,13 @@ exports.ArrayCell.displayName = 'ArrayCell';
|
|
|
2239
2330
|
|
|
2240
2331
|
/***/ }),
|
|
2241
2332
|
|
|
2242
|
-
/***/
|
|
2333
|
+
/***/ 265:
|
|
2243
2334
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2244
2335
|
|
|
2245
2336
|
"use strict";
|
|
2246
2337
|
|
|
2247
2338
|
|
|
2248
|
-
var _slicedToArray = __webpack_require__(
|
|
2339
|
+
var _slicedToArray = __webpack_require__(49);
|
|
2249
2340
|
|
|
2250
2341
|
Object.defineProperty(exports, "__esModule", {
|
|
2251
2342
|
value: true
|
|
@@ -2331,42 +2422,13 @@ exports.SparklineCell.displayName = 'SparklineCell';
|
|
|
2331
2422
|
|
|
2332
2423
|
/***/ }),
|
|
2333
2424
|
|
|
2334
|
-
/***/
|
|
2425
|
+
/***/ 266:
|
|
2335
2426
|
/***/ (function(module, exports) {
|
|
2336
2427
|
|
|
2337
2428
|
module.exports = require("lodash/debounce");
|
|
2338
2429
|
|
|
2339
2430
|
/***/ }),
|
|
2340
2431
|
|
|
2341
|
-
/***/ 26:
|
|
2342
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2343
|
-
|
|
2344
|
-
"use strict";
|
|
2345
|
-
|
|
2346
|
-
|
|
2347
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2348
|
-
value: true
|
|
2349
|
-
});
|
|
2350
|
-
exports.VizCategory = void 0;
|
|
2351
|
-
var VizCategory;
|
|
2352
|
-
|
|
2353
|
-
(function (VizCategory) {
|
|
2354
|
-
VizCategory["SINGLE_VALUE"] = "Single Value";
|
|
2355
|
-
VizCategory["TRENDS"] = "Trends";
|
|
2356
|
-
VizCategory["COMPARISONS"] = "Comparisons";
|
|
2357
|
-
VizCategory["TABLE"] = "Table";
|
|
2358
|
-
VizCategory["GAUGE"] = "Gauge";
|
|
2359
|
-
VizCategory["DISTRIBUTIONS"] = "Distributions";
|
|
2360
|
-
VizCategory["CHOROPLETH"] = "Choropleth Maps";
|
|
2361
|
-
VizCategory["SHAPES"] = "Shapes";
|
|
2362
|
-
VizCategory["MISC"] = "misc";
|
|
2363
|
-
VizCategory["FLOW"] = "Flow";
|
|
2364
|
-
VizCategory["CORRELATION"] = "Correlation";
|
|
2365
|
-
VizCategory["SPATIAL"] = "Spatial";
|
|
2366
|
-
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
2367
|
-
|
|
2368
|
-
/***/ }),
|
|
2369
|
-
|
|
2370
2432
|
/***/ 27:
|
|
2371
2433
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2372
2434
|
|
|
@@ -2407,7 +2469,7 @@ var withEditModeCover_1 = __webpack_require__(37);
|
|
|
2407
2469
|
|
|
2408
2470
|
var withPlaceholder_1 = __webpack_require__(38);
|
|
2409
2471
|
|
|
2410
|
-
var hocUtils_1 = __webpack_require__(
|
|
2472
|
+
var hocUtils_1 = __webpack_require__(7);
|
|
2411
2473
|
/**
|
|
2412
2474
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
2413
2475
|
* @param {DashboardVizOpts} opts
|
|
@@ -2420,6 +2482,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2420
2482
|
vizConfig = opts.vizConfig,
|
|
2421
2483
|
_opts$computeVizProps = opts.computeVizProps,
|
|
2422
2484
|
computeVizProps = _opts$computeVizProps === void 0 ? function () {} : _opts$computeVizProps,
|
|
2485
|
+
disableEditModeCover = opts.disableEditModeCover,
|
|
2423
2486
|
useIconPlaceholder = opts.useIconPlaceholder; // sanitizing props before sending them to reactviz.
|
|
2424
2487
|
|
|
2425
2488
|
var SanitizedReactViz = SanitizeProps_1.withSanitizedProps(ReactViz);
|
|
@@ -2584,7 +2647,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2584
2647
|
|
|
2585
2648
|
DashboardViz.config = vizConfig; // @ts-ignore: TODO fix sc upgrade TS issues
|
|
2586
2649
|
|
|
2587
|
-
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));
|
|
2588
2651
|
};
|
|
2589
2652
|
|
|
2590
2653
|
exports.default = withDashboardViz;
|
|
@@ -2779,7 +2842,7 @@ exports.default = SplunkVisualization;
|
|
|
2779
2842
|
|
|
2780
2843
|
var _classCallCheck = __webpack_require__(10);
|
|
2781
2844
|
|
|
2782
|
-
var _createClass = __webpack_require__(
|
|
2845
|
+
var _createClass = __webpack_require__(15);
|
|
2783
2846
|
|
|
2784
2847
|
Object.defineProperty(exports, "__esModule", {
|
|
2785
2848
|
value: true
|
|
@@ -2998,13 +3061,15 @@ var React = __webpack_require__(1);
|
|
|
2998
3061
|
|
|
2999
3062
|
var styled_components_1 = __webpack_require__(4);
|
|
3000
3063
|
|
|
3001
|
-
var hocUtils_1 = __webpack_require__(
|
|
3064
|
+
var hocUtils_1 = __webpack_require__(7);
|
|
3002
3065
|
|
|
3003
3066
|
var Cover = styled_components_1.default.div.withConfig({
|
|
3004
3067
|
displayName: "withEditModeCover__Cover",
|
|
3005
3068
|
componentId: "sc-1gsbnxb-0"
|
|
3006
3069
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
3007
|
-
var Blocker = styled_components_1.default.div.
|
|
3070
|
+
var Blocker = styled_components_1.default.div.attrs({
|
|
3071
|
+
'data-splunk-visualization-version': "24.3.1 - da5652d2c"
|
|
3072
|
+
}).withConfig({
|
|
3008
3073
|
displayName: "withEditModeCover__Blocker",
|
|
3009
3074
|
componentId: "sc-1gsbnxb-1"
|
|
3010
3075
|
})(["position:relative;width:100%;height:100%;"]);
|
|
@@ -3015,10 +3080,11 @@ var Blocker = styled_components_1.default.div.withConfig({
|
|
|
3015
3080
|
* @returns {ExtendedDashViz} Wrapper
|
|
3016
3081
|
*/
|
|
3017
3082
|
|
|
3018
|
-
var withEditModeCover = function withEditModeCover(Visualization) {
|
|
3083
|
+
var withEditModeCover = function withEditModeCover(Visualization, disableEditModeCover) {
|
|
3019
3084
|
var Wrapper = function Wrapper(props) {
|
|
3020
3085
|
var mode = props.mode;
|
|
3021
|
-
|
|
3086
|
+
var showEditCover = mode === 'edit' && !disableEditModeCover;
|
|
3087
|
+
return React.createElement(Blocker, null, React.createElement(Visualization, Object.assign({}, props)), showEditCover && React.createElement(Cover, {
|
|
3022
3088
|
"data-test": "edit-mode-cover"
|
|
3023
3089
|
}));
|
|
3024
3090
|
};
|
|
@@ -3052,7 +3118,7 @@ var IconPlaceholder_1 = __webpack_require__(25);
|
|
|
3052
3118
|
|
|
3053
3119
|
var VizBehavior_1 = __webpack_require__(5);
|
|
3054
3120
|
|
|
3055
|
-
var hocUtils_1 = __webpack_require__(
|
|
3121
|
+
var hocUtils_1 = __webpack_require__(7);
|
|
3056
3122
|
|
|
3057
3123
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
3058
3124
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -3122,6 +3188,13 @@ module.exports = require("@splunk/visualization-icons");
|
|
|
3122
3188
|
|
|
3123
3189
|
/***/ }),
|
|
3124
3190
|
|
|
3191
|
+
/***/ 49:
|
|
3192
|
+
/***/ (function(module, exports) {
|
|
3193
|
+
|
|
3194
|
+
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
3195
|
+
|
|
3196
|
+
/***/ }),
|
|
3197
|
+
|
|
3125
3198
|
/***/ 5:
|
|
3126
3199
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3127
3200
|
|
|
@@ -3166,7 +3239,7 @@ var VizBehavior;
|
|
|
3166
3239
|
"use strict";
|
|
3167
3240
|
|
|
3168
3241
|
|
|
3169
|
-
var _defineProperty = __webpack_require__(
|
|
3242
|
+
var _defineProperty = __webpack_require__(8);
|
|
3170
3243
|
|
|
3171
3244
|
var __rest = this && this.__rest || function (s, e) {
|
|
3172
3245
|
var t = {};
|
|
@@ -3352,27 +3425,13 @@ exports.generatePrecisionValues = generatePrecisionValues;
|
|
|
3352
3425
|
|
|
3353
3426
|
/***/ }),
|
|
3354
3427
|
|
|
3355
|
-
/***/ 61:
|
|
3356
|
-
/***/ (function(module, exports) {
|
|
3357
|
-
|
|
3358
|
-
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
3359
|
-
|
|
3360
|
-
/***/ }),
|
|
3361
|
-
|
|
3362
3428
|
/***/ 7:
|
|
3363
|
-
/***/ (function(module, exports) {
|
|
3364
|
-
|
|
3365
|
-
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
3366
|
-
|
|
3367
|
-
/***/ }),
|
|
3368
|
-
|
|
3369
|
-
/***/ 8:
|
|
3370
3429
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3371
3430
|
|
|
3372
3431
|
"use strict";
|
|
3373
3432
|
|
|
3374
3433
|
|
|
3375
|
-
var _typeof = __webpack_require__(
|
|
3434
|
+
var _typeof = __webpack_require__(20);
|
|
3376
3435
|
|
|
3377
3436
|
Object.defineProperty(exports, "__esModule", {
|
|
3378
3437
|
value: true
|
|
@@ -3439,6 +3498,13 @@ exports.deepMergeWithArrayOverrides = deepMergeWithArrayOverrides;
|
|
|
3439
3498
|
|
|
3440
3499
|
/***/ }),
|
|
3441
3500
|
|
|
3501
|
+
/***/ 8:
|
|
3502
|
+
/***/ (function(module, exports) {
|
|
3503
|
+
|
|
3504
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
3505
|
+
|
|
3506
|
+
/***/ }),
|
|
3507
|
+
|
|
3442
3508
|
/***/ 82:
|
|
3443
3509
|
/***/ (function(module, exports) {
|
|
3444
3510
|
|