@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/SingleValue.js
CHANGED
|
@@ -87,7 +87,7 @@ module.exports =
|
|
|
87
87
|
/******/
|
|
88
88
|
/******/
|
|
89
89
|
/******/ // Load entry module and return exports
|
|
90
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
90
|
+
/******/ return __webpack_require__(__webpack_require__.s = 244);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -113,7 +113,7 @@ module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
|
113
113
|
|
|
114
114
|
/***/ }),
|
|
115
115
|
|
|
116
|
-
/***/
|
|
116
|
+
/***/ 103:
|
|
117
117
|
/***/ (function(module, exports, __webpack_require__) {
|
|
118
118
|
|
|
119
119
|
"use strict";
|
|
@@ -149,12 +149,16 @@ exports.defaultContext = {
|
|
|
149
149
|
}, {
|
|
150
150
|
from: 80,
|
|
151
151
|
value: '#118832'
|
|
152
|
+
}],
|
|
153
|
+
majorColorMatchConfig: [{
|
|
154
|
+
match: '',
|
|
155
|
+
value: '#5C33FF'
|
|
152
156
|
}]
|
|
153
157
|
};
|
|
154
158
|
|
|
155
159
|
/***/ }),
|
|
156
160
|
|
|
157
|
-
/***/
|
|
161
|
+
/***/ 104:
|
|
158
162
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
159
163
|
|
|
160
164
|
"use strict";
|
|
@@ -274,7 +278,7 @@ var React = __webpack_require__(1);
|
|
|
274
278
|
|
|
275
279
|
var styled_components_1 = __webpack_require__(4);
|
|
276
280
|
|
|
277
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
281
|
+
var SizeAwareWrapper_1 = __webpack_require__(16);
|
|
278
282
|
|
|
279
283
|
var style_1 = __webpack_require__(13);
|
|
280
284
|
|
|
@@ -335,6 +339,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
335
339
|
|
|
336
340
|
return React.createElement(FixSizeItem, {
|
|
337
341
|
"data-test": "fix-size-item",
|
|
342
|
+
"data-splunk-visualization-version": "24.3.1 - da5652d2c",
|
|
338
343
|
width: width,
|
|
339
344
|
height: height,
|
|
340
345
|
backgroundColor: backgroundColor
|
|
@@ -371,6 +376,20 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
|
371
376
|
/***/ }),
|
|
372
377
|
|
|
373
378
|
/***/ 15:
|
|
379
|
+
/***/ (function(module, exports) {
|
|
380
|
+
|
|
381
|
+
module.exports = require("@babel/runtime/helpers/createClass");
|
|
382
|
+
|
|
383
|
+
/***/ }),
|
|
384
|
+
|
|
385
|
+
/***/ 16:
|
|
386
|
+
/***/ (function(module, exports) {
|
|
387
|
+
|
|
388
|
+
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
389
|
+
|
|
390
|
+
/***/ }),
|
|
391
|
+
|
|
392
|
+
/***/ 17:
|
|
374
393
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
375
394
|
|
|
376
395
|
"use strict";
|
|
@@ -405,11 +424,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
405
424
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lighten", function() { return lighten; });
|
|
406
425
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "darken", function() { return darken; });
|
|
407
426
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "handleValueClickCallback", function() { return handleValueClickCallback; });
|
|
408
|
-
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
427
|
+
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
|
|
409
428
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
410
429
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
411
430
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
|
|
412
|
-
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
431
|
+
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22);
|
|
413
432
|
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__);
|
|
414
433
|
/* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(44);
|
|
415
434
|
/* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__);
|
|
@@ -1379,20 +1398,6 @@ var handleValueClickCallback = function handleValueClickCallback(ev, majorValue,
|
|
|
1379
1398
|
|
|
1380
1399
|
/***/ }),
|
|
1381
1400
|
|
|
1382
|
-
/***/ 16:
|
|
1383
|
-
/***/ (function(module, exports) {
|
|
1384
|
-
|
|
1385
|
-
module.exports = require("@babel/runtime/helpers/createClass");
|
|
1386
|
-
|
|
1387
|
-
/***/ }),
|
|
1388
|
-
|
|
1389
|
-
/***/ 17:
|
|
1390
|
-
/***/ (function(module, exports) {
|
|
1391
|
-
|
|
1392
|
-
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
1393
|
-
|
|
1394
|
-
/***/ }),
|
|
1395
|
-
|
|
1396
1401
|
/***/ 18:
|
|
1397
1402
|
/***/ (function(module, exports) {
|
|
1398
1403
|
|
|
@@ -1417,21 +1422,21 @@ module.exports = require("lodash");
|
|
|
1417
1422
|
/***/ 20:
|
|
1418
1423
|
/***/ (function(module, exports) {
|
|
1419
1424
|
|
|
1420
|
-
module.exports = require("@
|
|
1425
|
+
module.exports = require("@babel/runtime/helpers/typeof");
|
|
1421
1426
|
|
|
1422
1427
|
/***/ }),
|
|
1423
1428
|
|
|
1424
1429
|
/***/ 21:
|
|
1425
1430
|
/***/ (function(module, exports) {
|
|
1426
1431
|
|
|
1427
|
-
module.exports = require("@splunk/
|
|
1432
|
+
module.exports = require("@splunk/themes/pick");
|
|
1428
1433
|
|
|
1429
1434
|
/***/ }),
|
|
1430
1435
|
|
|
1431
1436
|
/***/ 22:
|
|
1432
1437
|
/***/ (function(module, exports) {
|
|
1433
1438
|
|
|
1434
|
-
module.exports = require("@
|
|
1439
|
+
module.exports = require("@splunk/visualizations-shared/numberUtils");
|
|
1435
1440
|
|
|
1436
1441
|
/***/ }),
|
|
1437
1442
|
|
|
@@ -1441,7 +1446,7 @@ module.exports = require("@babel/runtime/helpers/typeof");
|
|
|
1441
1446
|
"use strict";
|
|
1442
1447
|
|
|
1443
1448
|
|
|
1444
|
-
var _defineProperty = __webpack_require__(
|
|
1449
|
+
var _defineProperty = __webpack_require__(8);
|
|
1445
1450
|
|
|
1446
1451
|
Object.defineProperty(exports, "__esModule", {
|
|
1447
1452
|
value: true
|
|
@@ -1506,7 +1511,72 @@ exports.getSortingParams = getSortingParams;
|
|
|
1506
1511
|
|
|
1507
1512
|
/***/ }),
|
|
1508
1513
|
|
|
1509
|
-
/***/
|
|
1514
|
+
/***/ 24:
|
|
1515
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1516
|
+
|
|
1517
|
+
"use strict";
|
|
1518
|
+
|
|
1519
|
+
|
|
1520
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1521
|
+
value: true
|
|
1522
|
+
});
|
|
1523
|
+
exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
|
|
1524
|
+
|
|
1525
|
+
var T = __webpack_require__(0);
|
|
1526
|
+
|
|
1527
|
+
var lodash_1 = __webpack_require__(2);
|
|
1528
|
+
|
|
1529
|
+
exports.PaginatorParamsPropTypes = T.shape({
|
|
1530
|
+
isPaging: T.bool,
|
|
1531
|
+
current: T.number,
|
|
1532
|
+
totalPages: T.number,
|
|
1533
|
+
onChange: T.func
|
|
1534
|
+
});
|
|
1535
|
+
|
|
1536
|
+
var getPaginationParams = function getPaginationParams(_ref) {
|
|
1537
|
+
var requestParams = _ref.requestParams,
|
|
1538
|
+
meta = _ref.meta,
|
|
1539
|
+
onRequestParamsChange = _ref.onRequestParamsChange;
|
|
1540
|
+
var totalCount = meta && meta.totalCount || 0;
|
|
1541
|
+
var offset = requestParams && requestParams.offset || 0;
|
|
1542
|
+
var count = requestParams && requestParams.count;
|
|
1543
|
+
var totalPages = typeof count === 'number' && count > 0 ? Math.ceil(totalCount / count) : 0;
|
|
1544
|
+
var current = typeof count === 'number' && count > 0 ? Math.floor(offset / count) + 1 : 0;
|
|
1545
|
+
var isPaging = totalPages > 1 && lodash_1.isFunction(onRequestParamsChange);
|
|
1546
|
+
|
|
1547
|
+
var onChangeHandler = function onChangeHandler(e, _ref2) {
|
|
1548
|
+
var page = _ref2.page,
|
|
1549
|
+
countArg = _ref2.count;
|
|
1550
|
+
var newParams = lodash_1.cloneDeep(requestParams);
|
|
1551
|
+
|
|
1552
|
+
if (typeof countArg === 'number') {
|
|
1553
|
+
newParams.count = countArg;
|
|
1554
|
+
newParams.offset = 0;
|
|
1555
|
+
}
|
|
1556
|
+
|
|
1557
|
+
var pageCount = typeof newParams.count === 'number' ? newParams.count : 10;
|
|
1558
|
+
|
|
1559
|
+
if (typeof page === 'number' && page > 0) {
|
|
1560
|
+
newParams.count = pageCount;
|
|
1561
|
+
newParams.offset = (page - 1) * pageCount;
|
|
1562
|
+
}
|
|
1563
|
+
|
|
1564
|
+
onRequestParamsChange(newParams);
|
|
1565
|
+
};
|
|
1566
|
+
|
|
1567
|
+
return {
|
|
1568
|
+
isPaging: isPaging,
|
|
1569
|
+
current: current,
|
|
1570
|
+
totalPages: totalPages,
|
|
1571
|
+
onChange: lodash_1.isFunction(onRequestParamsChange) ? onChangeHandler : lodash_1.noop
|
|
1572
|
+
};
|
|
1573
|
+
};
|
|
1574
|
+
|
|
1575
|
+
exports.getPaginationParams = getPaginationParams;
|
|
1576
|
+
|
|
1577
|
+
/***/ }),
|
|
1578
|
+
|
|
1579
|
+
/***/ 244:
|
|
1510
1580
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1511
1581
|
|
|
1512
1582
|
"use strict";
|
|
@@ -1517,13 +1587,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1517
1587
|
});
|
|
1518
1588
|
exports.themes = exports.computeVizProps = exports.PureSingleValue = exports.config = void 0;
|
|
1519
1589
|
|
|
1520
|
-
var SingleValue_1 = __webpack_require__(
|
|
1590
|
+
var SingleValue_1 = __webpack_require__(267);
|
|
1521
1591
|
|
|
1522
1592
|
var withDashboardViz_1 = __webpack_require__(27);
|
|
1523
1593
|
|
|
1524
|
-
var singleValueUtils_1 = __webpack_require__(
|
|
1594
|
+
var singleValueUtils_1 = __webpack_require__(17);
|
|
1525
1595
|
|
|
1526
|
-
var config_1 = __webpack_require__(
|
|
1596
|
+
var config_1 = __webpack_require__(245);
|
|
1527
1597
|
|
|
1528
1598
|
exports.config = config_1.default;
|
|
1529
1599
|
exports.PureSingleValue = SingleValue_1.default;
|
|
@@ -1562,7 +1632,7 @@ exports.default = viz;
|
|
|
1562
1632
|
|
|
1563
1633
|
/***/ }),
|
|
1564
1634
|
|
|
1565
|
-
/***/
|
|
1635
|
+
/***/ 245:
|
|
1566
1636
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1567
1637
|
|
|
1568
1638
|
"use strict";
|
|
@@ -1578,15 +1648,15 @@ var schemaUtils_1 = __webpack_require__(14);
|
|
|
1578
1648
|
|
|
1579
1649
|
var PresetPalettes_1 = __webpack_require__(48);
|
|
1580
1650
|
|
|
1581
|
-
var variables_1 = __webpack_require__(
|
|
1651
|
+
var variables_1 = __webpack_require__(246);
|
|
1582
1652
|
|
|
1583
|
-
var pick_1 = __webpack_require__(
|
|
1653
|
+
var pick_1 = __webpack_require__(21);
|
|
1584
1654
|
|
|
1585
1655
|
var variables_2 = __webpack_require__(19);
|
|
1586
1656
|
|
|
1587
1657
|
var visualization_icons_1 = __webpack_require__(42);
|
|
1588
1658
|
|
|
1589
|
-
var singleValueContext_1 = __webpack_require__(
|
|
1659
|
+
var singleValueContext_1 = __webpack_require__(103);
|
|
1590
1660
|
|
|
1591
1661
|
var VizBehavior_1 = __webpack_require__(5);
|
|
1592
1662
|
|
|
@@ -1596,7 +1666,7 @@ var DynamicTrendColorEditor_1 = __webpack_require__(77);
|
|
|
1596
1666
|
|
|
1597
1667
|
var DynamicBackgroundColorEditor_1 = __webpack_require__(78);
|
|
1598
1668
|
|
|
1599
|
-
var StaticMajorAndTrendLayout_1 = __webpack_require__(
|
|
1669
|
+
var StaticMajorAndTrendLayout_1 = __webpack_require__(104);
|
|
1600
1670
|
|
|
1601
1671
|
var StaticMajorColorEditor_1 = __webpack_require__(79);
|
|
1602
1672
|
|
|
@@ -2085,78 +2155,13 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
2085
2155
|
|
|
2086
2156
|
/***/ }),
|
|
2087
2157
|
|
|
2088
|
-
/***/
|
|
2158
|
+
/***/ 246:
|
|
2089
2159
|
/***/ (function(module, exports) {
|
|
2090
2160
|
|
|
2091
2161
|
module.exports = require("@splunk/visualization-themes/variables");
|
|
2092
2162
|
|
|
2093
2163
|
/***/ }),
|
|
2094
2164
|
|
|
2095
|
-
/***/ 24:
|
|
2096
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2097
|
-
|
|
2098
|
-
"use strict";
|
|
2099
|
-
|
|
2100
|
-
|
|
2101
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2102
|
-
value: true
|
|
2103
|
-
});
|
|
2104
|
-
exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
|
|
2105
|
-
|
|
2106
|
-
var T = __webpack_require__(0);
|
|
2107
|
-
|
|
2108
|
-
var lodash_1 = __webpack_require__(2);
|
|
2109
|
-
|
|
2110
|
-
exports.PaginatorParamsPropTypes = T.shape({
|
|
2111
|
-
isPaging: T.bool,
|
|
2112
|
-
current: T.number,
|
|
2113
|
-
totalPages: T.number,
|
|
2114
|
-
onChange: T.func
|
|
2115
|
-
});
|
|
2116
|
-
|
|
2117
|
-
var getPaginationParams = function getPaginationParams(_ref) {
|
|
2118
|
-
var requestParams = _ref.requestParams,
|
|
2119
|
-
meta = _ref.meta,
|
|
2120
|
-
onRequestParamsChange = _ref.onRequestParamsChange;
|
|
2121
|
-
var totalCount = meta && meta.totalCount || 0;
|
|
2122
|
-
var offset = requestParams && requestParams.offset || 0;
|
|
2123
|
-
var count = requestParams && requestParams.count;
|
|
2124
|
-
var totalPages = typeof count === 'number' && count > 0 ? Math.ceil(totalCount / count) : 0;
|
|
2125
|
-
var current = typeof count === 'number' && count > 0 ? Math.floor(offset / count) + 1 : 0;
|
|
2126
|
-
var isPaging = totalPages > 1 && lodash_1.isFunction(onRequestParamsChange);
|
|
2127
|
-
|
|
2128
|
-
var onChangeHandler = function onChangeHandler(e, _ref2) {
|
|
2129
|
-
var page = _ref2.page,
|
|
2130
|
-
countArg = _ref2.count;
|
|
2131
|
-
var newParams = lodash_1.cloneDeep(requestParams);
|
|
2132
|
-
|
|
2133
|
-
if (typeof countArg === 'number') {
|
|
2134
|
-
newParams.count = countArg;
|
|
2135
|
-
newParams.offset = 0;
|
|
2136
|
-
}
|
|
2137
|
-
|
|
2138
|
-
var pageCount = typeof newParams.count === 'number' ? newParams.count : 10;
|
|
2139
|
-
|
|
2140
|
-
if (typeof page === 'number' && page > 0) {
|
|
2141
|
-
newParams.count = pageCount;
|
|
2142
|
-
newParams.offset = (page - 1) * pageCount;
|
|
2143
|
-
}
|
|
2144
|
-
|
|
2145
|
-
onRequestParamsChange(newParams);
|
|
2146
|
-
};
|
|
2147
|
-
|
|
2148
|
-
return {
|
|
2149
|
-
isPaging: isPaging,
|
|
2150
|
-
current: current,
|
|
2151
|
-
totalPages: totalPages,
|
|
2152
|
-
onChange: lodash_1.isFunction(onRequestParamsChange) ? onChangeHandler : lodash_1.noop
|
|
2153
|
-
};
|
|
2154
|
-
};
|
|
2155
|
-
|
|
2156
|
-
exports.getPaginationParams = getPaginationParams;
|
|
2157
|
-
|
|
2158
|
-
/***/ }),
|
|
2159
|
-
|
|
2160
2165
|
/***/ 25:
|
|
2161
2166
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2162
2167
|
|
|
@@ -2246,7 +2251,36 @@ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
|
2246
2251
|
|
|
2247
2252
|
/***/ }),
|
|
2248
2253
|
|
|
2249
|
-
/***/
|
|
2254
|
+
/***/ 26:
|
|
2255
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2256
|
+
|
|
2257
|
+
"use strict";
|
|
2258
|
+
|
|
2259
|
+
|
|
2260
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2261
|
+
value: true
|
|
2262
|
+
});
|
|
2263
|
+
exports.VizCategory = void 0;
|
|
2264
|
+
var VizCategory;
|
|
2265
|
+
|
|
2266
|
+
(function (VizCategory) {
|
|
2267
|
+
VizCategory["SINGLE_VALUE"] = "Single Value";
|
|
2268
|
+
VizCategory["TRENDS"] = "Trends";
|
|
2269
|
+
VizCategory["COMPARISONS"] = "Comparisons";
|
|
2270
|
+
VizCategory["TABLE"] = "Table";
|
|
2271
|
+
VizCategory["GAUGE"] = "Gauge";
|
|
2272
|
+
VizCategory["DISTRIBUTIONS"] = "Distributions";
|
|
2273
|
+
VizCategory["CHOROPLETH"] = "Choropleth Maps";
|
|
2274
|
+
VizCategory["SHAPES"] = "Shapes";
|
|
2275
|
+
VizCategory["MISC"] = "misc";
|
|
2276
|
+
VizCategory["FLOW"] = "Flow";
|
|
2277
|
+
VizCategory["CORRELATION"] = "Correlation";
|
|
2278
|
+
VizCategory["SPATIAL"] = "Spatial";
|
|
2279
|
+
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
2280
|
+
|
|
2281
|
+
/***/ }),
|
|
2282
|
+
|
|
2283
|
+
/***/ 267:
|
|
2250
2284
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2251
2285
|
|
|
2252
2286
|
"use strict";
|
|
@@ -2285,14 +2319,14 @@ var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty_);
|
|
|
2285
2319
|
var style_ = __webpack_require__(13);
|
|
2286
2320
|
|
|
2287
2321
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/SizeAwareWrapper"
|
|
2288
|
-
var SizeAwareWrapper_ = __webpack_require__(
|
|
2322
|
+
var SizeAwareWrapper_ = __webpack_require__(16);
|
|
2289
2323
|
var SizeAwareWrapper_default = /*#__PURE__*/__webpack_require__.n(SizeAwareWrapper_);
|
|
2290
2324
|
|
|
2291
2325
|
// EXTERNAL MODULE: ./src/common/components/VizStyleWrapper.jsx
|
|
2292
|
-
var VizStyleWrapper = __webpack_require__(
|
|
2326
|
+
var VizStyleWrapper = __webpack_require__(59);
|
|
2293
2327
|
|
|
2294
2328
|
// EXTERNAL MODULE: external "@babel/runtime/helpers/defineProperty"
|
|
2295
|
-
var defineProperty_ = __webpack_require__(
|
|
2329
|
+
var defineProperty_ = __webpack_require__(8);
|
|
2296
2330
|
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty_);
|
|
2297
2331
|
|
|
2298
2332
|
// EXTERNAL MODULE: ./src/SingleValueBasic/SingleValueBasic.jsx + 2 modules
|
|
@@ -2370,10 +2404,10 @@ SingleValueSparkline_SingleValueSparkline.propTypes = {
|
|
|
2370
2404
|
var colorConstants_ = __webpack_require__(40);
|
|
2371
2405
|
|
|
2372
2406
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/numberUtils"
|
|
2373
|
-
var numberUtils_ = __webpack_require__(
|
|
2407
|
+
var numberUtils_ = __webpack_require__(22);
|
|
2374
2408
|
|
|
2375
2409
|
// EXTERNAL MODULE: ./src/common/utils/singleValueUtils.js
|
|
2376
|
-
var singleValueUtils = __webpack_require__(
|
|
2410
|
+
var singleValueUtils = __webpack_require__(17);
|
|
2377
2411
|
|
|
2378
2412
|
// CONCATENATED MODULE: ./src/SingleValue/PureSingleValue/utils/displayUtils.js
|
|
2379
2413
|
|
|
@@ -3102,35 +3136,6 @@ SingleValue_SingleValue.defaultProps = {
|
|
|
3102
3136
|
|
|
3103
3137
|
/***/ }),
|
|
3104
3138
|
|
|
3105
|
-
/***/ 26:
|
|
3106
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3107
|
-
|
|
3108
|
-
"use strict";
|
|
3109
|
-
|
|
3110
|
-
|
|
3111
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3112
|
-
value: true
|
|
3113
|
-
});
|
|
3114
|
-
exports.VizCategory = void 0;
|
|
3115
|
-
var VizCategory;
|
|
3116
|
-
|
|
3117
|
-
(function (VizCategory) {
|
|
3118
|
-
VizCategory["SINGLE_VALUE"] = "Single Value";
|
|
3119
|
-
VizCategory["TRENDS"] = "Trends";
|
|
3120
|
-
VizCategory["COMPARISONS"] = "Comparisons";
|
|
3121
|
-
VizCategory["TABLE"] = "Table";
|
|
3122
|
-
VizCategory["GAUGE"] = "Gauge";
|
|
3123
|
-
VizCategory["DISTRIBUTIONS"] = "Distributions";
|
|
3124
|
-
VizCategory["CHOROPLETH"] = "Choropleth Maps";
|
|
3125
|
-
VizCategory["SHAPES"] = "Shapes";
|
|
3126
|
-
VizCategory["MISC"] = "misc";
|
|
3127
|
-
VizCategory["FLOW"] = "Flow";
|
|
3128
|
-
VizCategory["CORRELATION"] = "Correlation";
|
|
3129
|
-
VizCategory["SPATIAL"] = "Spatial";
|
|
3130
|
-
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
3131
|
-
|
|
3132
|
-
/***/ }),
|
|
3133
|
-
|
|
3134
3139
|
/***/ 27:
|
|
3135
3140
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3136
3141
|
|
|
@@ -3171,7 +3176,7 @@ var withEditModeCover_1 = __webpack_require__(37);
|
|
|
3171
3176
|
|
|
3172
3177
|
var withPlaceholder_1 = __webpack_require__(38);
|
|
3173
3178
|
|
|
3174
|
-
var hocUtils_1 = __webpack_require__(
|
|
3179
|
+
var hocUtils_1 = __webpack_require__(7);
|
|
3175
3180
|
/**
|
|
3176
3181
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
3177
3182
|
* @param {DashboardVizOpts} opts
|
|
@@ -3184,6 +3189,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
3184
3189
|
vizConfig = opts.vizConfig,
|
|
3185
3190
|
_opts$computeVizProps = opts.computeVizProps,
|
|
3186
3191
|
computeVizProps = _opts$computeVizProps === void 0 ? function () {} : _opts$computeVizProps,
|
|
3192
|
+
disableEditModeCover = opts.disableEditModeCover,
|
|
3187
3193
|
useIconPlaceholder = opts.useIconPlaceholder; // sanitizing props before sending them to reactviz.
|
|
3188
3194
|
|
|
3189
3195
|
var SanitizedReactViz = SanitizeProps_1.withSanitizedProps(ReactViz);
|
|
@@ -3348,7 +3354,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
3348
3354
|
|
|
3349
3355
|
DashboardViz.config = vizConfig; // @ts-ignore: TODO fix sc upgrade TS issues
|
|
3350
3356
|
|
|
3351
|
-
return styled_components_1.withTheme(withPlaceholder_1.default(withEditModeCover_1.default(DashboardViz), useIconPlaceholder));
|
|
3357
|
+
return styled_components_1.withTheme(withPlaceholder_1.default(withEditModeCover_1.default(DashboardViz, disableEditModeCover), useIconPlaceholder));
|
|
3352
3358
|
};
|
|
3353
3359
|
|
|
3354
3360
|
exports.default = withDashboardViz;
|
|
@@ -3543,7 +3549,7 @@ exports.default = SplunkVisualization;
|
|
|
3543
3549
|
|
|
3544
3550
|
var _classCallCheck = __webpack_require__(10);
|
|
3545
3551
|
|
|
3546
|
-
var _createClass = __webpack_require__(
|
|
3552
|
+
var _createClass = __webpack_require__(15);
|
|
3547
3553
|
|
|
3548
3554
|
Object.defineProperty(exports, "__esModule", {
|
|
3549
3555
|
value: true
|
|
@@ -3762,13 +3768,15 @@ var React = __webpack_require__(1);
|
|
|
3762
3768
|
|
|
3763
3769
|
var styled_components_1 = __webpack_require__(4);
|
|
3764
3770
|
|
|
3765
|
-
var hocUtils_1 = __webpack_require__(
|
|
3771
|
+
var hocUtils_1 = __webpack_require__(7);
|
|
3766
3772
|
|
|
3767
3773
|
var Cover = styled_components_1.default.div.withConfig({
|
|
3768
3774
|
displayName: "withEditModeCover__Cover",
|
|
3769
3775
|
componentId: "sc-1gsbnxb-0"
|
|
3770
3776
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
3771
|
-
var Blocker = styled_components_1.default.div.
|
|
3777
|
+
var Blocker = styled_components_1.default.div.attrs({
|
|
3778
|
+
'data-splunk-visualization-version': "24.3.1 - da5652d2c"
|
|
3779
|
+
}).withConfig({
|
|
3772
3780
|
displayName: "withEditModeCover__Blocker",
|
|
3773
3781
|
componentId: "sc-1gsbnxb-1"
|
|
3774
3782
|
})(["position:relative;width:100%;height:100%;"]);
|
|
@@ -3779,10 +3787,11 @@ var Blocker = styled_components_1.default.div.withConfig({
|
|
|
3779
3787
|
* @returns {ExtendedDashViz} Wrapper
|
|
3780
3788
|
*/
|
|
3781
3789
|
|
|
3782
|
-
var withEditModeCover = function withEditModeCover(Visualization) {
|
|
3790
|
+
var withEditModeCover = function withEditModeCover(Visualization, disableEditModeCover) {
|
|
3783
3791
|
var Wrapper = function Wrapper(props) {
|
|
3784
3792
|
var mode = props.mode;
|
|
3785
|
-
|
|
3793
|
+
var showEditCover = mode === 'edit' && !disableEditModeCover;
|
|
3794
|
+
return React.createElement(Blocker, null, React.createElement(Visualization, Object.assign({}, props)), showEditCover && React.createElement(Cover, {
|
|
3786
3795
|
"data-test": "edit-mode-cover"
|
|
3787
3796
|
}));
|
|
3788
3797
|
};
|
|
@@ -3816,7 +3825,7 @@ var IconPlaceholder_1 = __webpack_require__(25);
|
|
|
3816
3825
|
|
|
3817
3826
|
var VizBehavior_1 = __webpack_require__(5);
|
|
3818
3827
|
|
|
3819
|
-
var hocUtils_1 = __webpack_require__(
|
|
3828
|
+
var hocUtils_1 = __webpack_require__(7);
|
|
3820
3829
|
|
|
3821
3830
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
3822
3831
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -3938,7 +3947,7 @@ var VizBehavior;
|
|
|
3938
3947
|
|
|
3939
3948
|
/***/ }),
|
|
3940
3949
|
|
|
3941
|
-
/***/
|
|
3950
|
+
/***/ 59:
|
|
3942
3951
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3943
3952
|
|
|
3944
3953
|
"use strict";
|
|
@@ -3968,7 +3977,7 @@ VizStyleWrapper.displayName = 'VizStyleWrapper';
|
|
|
3968
3977
|
"use strict";
|
|
3969
3978
|
|
|
3970
3979
|
|
|
3971
|
-
var _defineProperty = __webpack_require__(
|
|
3980
|
+
var _defineProperty = __webpack_require__(8);
|
|
3972
3981
|
|
|
3973
3982
|
var __rest = this && this.__rest || function (s, e) {
|
|
3974
3983
|
var t = {};
|
|
@@ -4181,7 +4190,7 @@ var external_styled_components_ = __webpack_require__(4);
|
|
|
4181
4190
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
4182
4191
|
|
|
4183
4192
|
// EXTERNAL MODULE: ./src/common/utils/singleValueUtils.js
|
|
4184
|
-
var singleValueUtils = __webpack_require__(
|
|
4193
|
+
var singleValueUtils = __webpack_require__(17);
|
|
4185
4194
|
|
|
4186
4195
|
// EXTERNAL MODULE: external "@splunk/react-icons/ArrowUp"
|
|
4187
4196
|
var ArrowUp_ = __webpack_require__(65);
|
|
@@ -4503,9 +4512,75 @@ var StaticBackgroundColorEditor = {
|
|
|
4503
4512
|
/***/ }),
|
|
4504
4513
|
|
|
4505
4514
|
/***/ 7:
|
|
4506
|
-
/***/ (function(module, exports) {
|
|
4515
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4507
4516
|
|
|
4508
|
-
|
|
4517
|
+
"use strict";
|
|
4518
|
+
|
|
4519
|
+
|
|
4520
|
+
var _typeof = __webpack_require__(20);
|
|
4521
|
+
|
|
4522
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4523
|
+
value: true
|
|
4524
|
+
});
|
|
4525
|
+
exports.deepMergeWithArrayOverrides = exports.extendStaticWrapperProps = void 0;
|
|
4526
|
+
|
|
4527
|
+
var lodash_1 = __webpack_require__(2);
|
|
4528
|
+
/**
|
|
4529
|
+
* @method extendStaticWrapperProps
|
|
4530
|
+
* @param {Object} props
|
|
4531
|
+
* @param {DashboardVizType} props.Wrapper
|
|
4532
|
+
* @param {DashboardVizType} props.Visualization
|
|
4533
|
+
*/
|
|
4534
|
+
|
|
4535
|
+
|
|
4536
|
+
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
4537
|
+
var Wrapper = _ref.Wrapper,
|
|
4538
|
+
Visualization = _ref.Visualization;
|
|
4539
|
+
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
4540
|
+
extendProperties.forEach(function (prop) {
|
|
4541
|
+
if (Visualization[prop]) {
|
|
4542
|
+
// eslint-disable-next-line no-param-reassign
|
|
4543
|
+
Wrapper[prop] = Visualization[prop];
|
|
4544
|
+
}
|
|
4545
|
+
});
|
|
4546
|
+
};
|
|
4547
|
+
|
|
4548
|
+
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
4549
|
+
/**
|
|
4550
|
+
* helper to deeply merge objects while preserving arrays in earlier source objects
|
|
4551
|
+
* deeply nested primitive keys are merged similarly to lodash's defaultsDeep, while keys with arrays will be preserved if already present in the resultant merged object
|
|
4552
|
+
* this prevents default arrays from appending values to user-defined arrays (this occurs if the default array is longer than the user-defined one)
|
|
4553
|
+
*
|
|
4554
|
+
* @method deepMergeWithArrayOverrides
|
|
4555
|
+
* @param {Object} initial - target object to merge values into
|
|
4556
|
+
* @param {Object[]} sources - other default options to be merged into the resultant object if no explicit value is provided, with earlier args taking precedence over later ones
|
|
4557
|
+
*
|
|
4558
|
+
* @returns {Object}
|
|
4559
|
+
*/
|
|
4560
|
+
|
|
4561
|
+
var deepMergeWithArrayOverrides = function deepMergeWithArrayOverrides(initial) {
|
|
4562
|
+
var clone = lodash_1.cloneDeep(initial);
|
|
4563
|
+
|
|
4564
|
+
for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
4565
|
+
sources[_key - 1] = arguments[_key];
|
|
4566
|
+
}
|
|
4567
|
+
|
|
4568
|
+
sources.forEach(function (sourceToApply) {
|
|
4569
|
+
Object.keys(sourceToApply).forEach(function (sourceKey) {
|
|
4570
|
+
if (!Object.prototype.hasOwnProperty.call(clone, sourceKey)) {
|
|
4571
|
+
clone[sourceKey] = lodash_1.cloneDeep(sourceToApply[sourceKey]);
|
|
4572
|
+
} // object merging excluding arrays
|
|
4573
|
+
|
|
4574
|
+
|
|
4575
|
+
if (clone[sourceKey] && _typeof(clone[sourceKey]) === 'object' && !Array.isArray(clone[sourceKey]) && _typeof(sourceToApply[sourceKey]) === 'object') {
|
|
4576
|
+
clone[sourceKey] = exports.deepMergeWithArrayOverrides(clone[sourceKey], sourceToApply[sourceKey]);
|
|
4577
|
+
}
|
|
4578
|
+
});
|
|
4579
|
+
});
|
|
4580
|
+
return clone;
|
|
4581
|
+
};
|
|
4582
|
+
|
|
4583
|
+
exports.deepMergeWithArrayOverrides = deepMergeWithArrayOverrides;
|
|
4509
4584
|
|
|
4510
4585
|
/***/ }),
|
|
4511
4586
|
|
|
@@ -4542,15 +4617,13 @@ var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
|
|
|
4542
4617
|
defaults: {
|
|
4543
4618
|
majorValue: defaultContext.majorColorConfig
|
|
4544
4619
|
}
|
|
4545
|
-
}
|
|
4546
|
-
|
|
4547
|
-
|
|
4548
|
-
|
|
4549
|
-
|
|
4550
|
-
|
|
4551
|
-
|
|
4552
|
-
// },
|
|
4553
|
-
],
|
|
4620
|
+
}, {
|
|
4621
|
+
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Matches'),
|
|
4622
|
+
value: 'matchValue',
|
|
4623
|
+
defaults: {
|
|
4624
|
+
majorValue: defaultContext.majorColorMatchConfig
|
|
4625
|
+
}
|
|
4626
|
+
}],
|
|
4554
4627
|
dataSelectors: [{
|
|
4555
4628
|
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major Value'),
|
|
4556
4629
|
value: 'majorValue'
|
|
@@ -4641,15 +4714,13 @@ var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_
|
|
|
4641
4714
|
majorValue: defaultContext.majorColorConfig,
|
|
4642
4715
|
trendValue: defaultContext.trendColorConfig
|
|
4643
4716
|
}
|
|
4644
|
-
}
|
|
4645
|
-
|
|
4646
|
-
|
|
4647
|
-
|
|
4648
|
-
|
|
4649
|
-
|
|
4650
|
-
|
|
4651
|
-
// },
|
|
4652
|
-
],
|
|
4717
|
+
}, {
|
|
4718
|
+
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Matches'),
|
|
4719
|
+
value: 'matchValue',
|
|
4720
|
+
defaults: {
|
|
4721
|
+
majorValue: defaultContext.majorColorMatchConfig
|
|
4722
|
+
}
|
|
4723
|
+
}],
|
|
4653
4724
|
dataSelectors: [{
|
|
4654
4725
|
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major Value'),
|
|
4655
4726
|
value: 'majorValue'
|
|
@@ -4689,75 +4760,9 @@ var StaticMajorColorEditor = {
|
|
|
4689
4760
|
/***/ }),
|
|
4690
4761
|
|
|
4691
4762
|
/***/ 8:
|
|
4692
|
-
/***/ (function(module, exports
|
|
4693
|
-
|
|
4694
|
-
"use strict";
|
|
4695
|
-
|
|
4696
|
-
|
|
4697
|
-
var _typeof = __webpack_require__(22);
|
|
4698
|
-
|
|
4699
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4700
|
-
value: true
|
|
4701
|
-
});
|
|
4702
|
-
exports.deepMergeWithArrayOverrides = exports.extendStaticWrapperProps = void 0;
|
|
4703
|
-
|
|
4704
|
-
var lodash_1 = __webpack_require__(2);
|
|
4705
|
-
/**
|
|
4706
|
-
* @method extendStaticWrapperProps
|
|
4707
|
-
* @param {Object} props
|
|
4708
|
-
* @param {DashboardVizType} props.Wrapper
|
|
4709
|
-
* @param {DashboardVizType} props.Visualization
|
|
4710
|
-
*/
|
|
4711
|
-
|
|
4712
|
-
|
|
4713
|
-
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
4714
|
-
var Wrapper = _ref.Wrapper,
|
|
4715
|
-
Visualization = _ref.Visualization;
|
|
4716
|
-
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
4717
|
-
extendProperties.forEach(function (prop) {
|
|
4718
|
-
if (Visualization[prop]) {
|
|
4719
|
-
// eslint-disable-next-line no-param-reassign
|
|
4720
|
-
Wrapper[prop] = Visualization[prop];
|
|
4721
|
-
}
|
|
4722
|
-
});
|
|
4723
|
-
};
|
|
4724
|
-
|
|
4725
|
-
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
4726
|
-
/**
|
|
4727
|
-
* helper to deeply merge objects while preserving arrays in earlier source objects
|
|
4728
|
-
* deeply nested primitive keys are merged similarly to lodash's defaultsDeep, while keys with arrays will be preserved if already present in the resultant merged object
|
|
4729
|
-
* this prevents default arrays from appending values to user-defined arrays (this occurs if the default array is longer than the user-defined one)
|
|
4730
|
-
*
|
|
4731
|
-
* @method deepMergeWithArrayOverrides
|
|
4732
|
-
* @param {Object} initial - target object to merge values into
|
|
4733
|
-
* @param {Object[]} sources - other default options to be merged into the resultant object if no explicit value is provided, with earlier args taking precedence over later ones
|
|
4734
|
-
*
|
|
4735
|
-
* @returns {Object}
|
|
4736
|
-
*/
|
|
4737
|
-
|
|
4738
|
-
var deepMergeWithArrayOverrides = function deepMergeWithArrayOverrides(initial) {
|
|
4739
|
-
var clone = lodash_1.cloneDeep(initial);
|
|
4740
|
-
|
|
4741
|
-
for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
4742
|
-
sources[_key - 1] = arguments[_key];
|
|
4743
|
-
}
|
|
4744
|
-
|
|
4745
|
-
sources.forEach(function (sourceToApply) {
|
|
4746
|
-
Object.keys(sourceToApply).forEach(function (sourceKey) {
|
|
4747
|
-
if (!Object.prototype.hasOwnProperty.call(clone, sourceKey)) {
|
|
4748
|
-
clone[sourceKey] = lodash_1.cloneDeep(sourceToApply[sourceKey]);
|
|
4749
|
-
} // object merging excluding arrays
|
|
4750
|
-
|
|
4751
|
-
|
|
4752
|
-
if (clone[sourceKey] && _typeof(clone[sourceKey]) === 'object' && !Array.isArray(clone[sourceKey]) && _typeof(sourceToApply[sourceKey]) === 'object') {
|
|
4753
|
-
clone[sourceKey] = exports.deepMergeWithArrayOverrides(clone[sourceKey], sourceToApply[sourceKey]);
|
|
4754
|
-
}
|
|
4755
|
-
});
|
|
4756
|
-
});
|
|
4757
|
-
return clone;
|
|
4758
|
-
};
|
|
4763
|
+
/***/ (function(module, exports) {
|
|
4759
4764
|
|
|
4760
|
-
exports
|
|
4765
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
4761
4766
|
|
|
4762
4767
|
/***/ }),
|
|
4763
4768
|
|