@splunk/visualizations 24.0.0 → 24.3.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- 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_PureLinkGraph_Background_Color.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Field_Order.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Field_Order_First_And_Last.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Field_Order_Some.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Fields_Columns.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Handles_Large_Data_Set.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Link_Color.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Link_Width.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Node_Color.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Node_Height.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Node_Highlight_Color.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Node_Spacing_X.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Node_Spacing_Y.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Node_Width.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Result_Limit.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Show_Node_Counts_False.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Show_Value_Counts_False.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureLinkGraph_Width_Height.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_Line_Line_Basic_Line_with_offset_IANA_timezone.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Basic_Line_with_offset_serialized_timezone.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Line_Line_Basic_Line_with_offset_utc_timezone.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Basic_LinkGraph.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Field_Order_First_and_Last_Fields.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Field_Order_From_the_First_to_the_Last_Fields.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Field_Order_From_the_Last_to_the_First_Fields.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Node_Text_Color.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Node_Text_Highlight_Color.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_LinkGraph_LinkGraph_Result_Limit_3.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 +19 -15
- package/Area.config.js.map +1 -1
- package/Area.js +102 -82
- package/Area.js.map +1 -1
- package/Bar.config.js +15 -15
- package/Bar.config.js.map +1 -1
- package/Bar.js +91 -75
- package/Bar.js.map +1 -1
- package/Bubble.config.js +8 -8
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +82 -66
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +11 -9
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +92 -82
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +15 -15
- package/Column.config.js.map +1 -1
- package/Column.js +91 -75
- package/Column.js.map +1 -1
- package/Ellipse.config.js +22 -6
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +80 -56
- package/Ellipse.js.map +1 -1
- package/FillerGauge.config.js +8 -8
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +64 -56
- 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 +89 -73
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +52 -5
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +161 -90
- package/LinkGraph.js.map +1 -1
- package/Map.config.js +740 -0
- package/Map.config.js.map +1 -0
- package/Map.js +3137 -0
- package/Map.js.map +1 -0
- package/Markdown.config.js +12 -16
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +57 -56
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +6 -6
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +2960 -3046
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +11 -11
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +97 -78
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +13 -17
- package/Pie.config.js.map +1 -1
- package/Pie.js +917 -999
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +11 -11
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +114 -95
- package/Punchcard.js.map +1 -1
- package/README.internal.md +36 -3
- package/README.md +7 -9
- package/Rectangle.config.js +32 -16
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +153 -132
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +35 -25
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +2951 -3045
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +11 -11
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +301 -286
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +23 -22
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +271 -266
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +14 -14
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +33 -34
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +156 -140
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +22 -22
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +301 -296
- package/SingleValueRadial.js.map +1 -1
- package/Table.config.js +28 -8
- package/Table.config.js.map +1 -1
- package/Table.js +427 -259
- package/Table.js.map +1 -1
- package/common/Charting.js +19 -10
- package/common/Charting.js.map +1 -1
- package/common/EventsDoc.js +3 -2
- package/common/EventsDoc.js.map +1 -1
- package/common/GaugeMajorTicks.js +2 -2
- package/common/GaugeMajorTicks.js.map +1 -1
- package/common/GaugeValueMarker.js +2 -2
- package/common/GaugeValueMarker.js.map +1 -1
- package/common/OptionsDoc.js +10 -9
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.js +22 -22
- package/common/OverviewDoc.js.map +1 -1
- package/common/SplunkVisualizationApi.js +2 -2
- package/common/SplunkVisualizationApi.js.map +1 -1
- package/common/ThemesDoc.js +2 -2
- package/common/ThemesDoc.js.map +1 -1
- package/common/chartingUtils.js +2 -2
- package/common/chartingUtils.js.map +1 -1
- package/common/docUtils.js +4 -4
- package/common/docUtils.js.map +1 -1
- package/common/gaugeUtils.js +7 -7
- package/common/gaugeUtils.js.map +1 -1
- package/common/shapeUtils.js +8 -8
- package/common/shapeUtils.js.map +1 -1
- package/common/withDashboardViz.js +38 -32
- 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.0 - 1c1ae4b3c",
|
|
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";
|
|
@@ -1576,33 +1646,33 @@ var i18n_1 = __webpack_require__(3);
|
|
|
1576
1646
|
|
|
1577
1647
|
var schemaUtils_1 = __webpack_require__(14);
|
|
1578
1648
|
|
|
1579
|
-
var PresetPalettes_1 = __webpack_require__(
|
|
1649
|
+
var PresetPalettes_1 = __webpack_require__(49);
|
|
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
|
|
|
1593
|
-
var DynamicMajorColorEditor_1 = __webpack_require__(
|
|
1663
|
+
var DynamicMajorColorEditor_1 = __webpack_require__(76);
|
|
1594
1664
|
|
|
1595
|
-
var DynamicTrendColorEditor_1 = __webpack_require__(
|
|
1665
|
+
var DynamicTrendColorEditor_1 = __webpack_require__(77);
|
|
1596
1666
|
|
|
1597
|
-
var DynamicBackgroundColorEditor_1 = __webpack_require__(
|
|
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
|
-
var StaticMajorColorEditor_1 = __webpack_require__(
|
|
1671
|
+
var StaticMajorColorEditor_1 = __webpack_require__(79);
|
|
1602
1672
|
|
|
1603
|
-
var StaticTrendColorEditor_1 = __webpack_require__(
|
|
1673
|
+
var StaticTrendColorEditor_1 = __webpack_require__(80);
|
|
1604
1674
|
|
|
1605
|
-
var StaticBackgroundColorEditor_1 = __webpack_require__(
|
|
1675
|
+
var StaticBackgroundColorEditor_1 = __webpack_require__(68);
|
|
1606
1676
|
|
|
1607
1677
|
var configUtils_1 = __webpack_require__(6);
|
|
1608
1678
|
|
|
@@ -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";
|
|
@@ -2274,32 +2308,32 @@ var external_styled_components_ = __webpack_require__(4);
|
|
|
2274
2308
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
2275
2309
|
|
|
2276
2310
|
// EXTERNAL MODULE: external "lodash/pick"
|
|
2277
|
-
var pick_ = __webpack_require__(
|
|
2311
|
+
var pick_ = __webpack_require__(63);
|
|
2278
2312
|
var pick_default = /*#__PURE__*/__webpack_require__.n(pick_);
|
|
2279
2313
|
|
|
2280
2314
|
// EXTERNAL MODULE: external "lodash/isEmpty"
|
|
2281
|
-
var isEmpty_ = __webpack_require__(
|
|
2315
|
+
var isEmpty_ = __webpack_require__(64);
|
|
2282
2316
|
var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty_);
|
|
2283
2317
|
|
|
2284
2318
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/style"
|
|
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
|
|
2299
|
-
var SingleValueBasic = __webpack_require__(
|
|
2333
|
+
var SingleValueBasic = __webpack_require__(62);
|
|
2300
2334
|
|
|
2301
2335
|
// EXTERNAL MODULE: external "@splunk/react-sparkline/Line"
|
|
2302
|
-
var Line_ = __webpack_require__(
|
|
2336
|
+
var Line_ = __webpack_require__(83);
|
|
2303
2337
|
var Line_default = /*#__PURE__*/__webpack_require__.n(Line_);
|
|
2304
2338
|
|
|
2305
2339
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/propUtils"
|
|
@@ -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.0 - 1c1ae4b3c"
|
|
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;
|
|
@@ -3893,7 +3902,7 @@ module.exports = require("@splunk/visualizations-shared/domUtils");
|
|
|
3893
3902
|
|
|
3894
3903
|
/***/ }),
|
|
3895
3904
|
|
|
3896
|
-
/***/
|
|
3905
|
+
/***/ 49:
|
|
3897
3906
|
/***/ (function(module, exports) {
|
|
3898
3907
|
|
|
3899
3908
|
module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
|
|
@@ -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 = {};
|
|
@@ -4154,7 +4163,7 @@ exports.generatePrecisionValues = generatePrecisionValues;
|
|
|
4154
4163
|
|
|
4155
4164
|
/***/ }),
|
|
4156
4165
|
|
|
4157
|
-
/***/
|
|
4166
|
+
/***/ 62:
|
|
4158
4167
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4159
4168
|
|
|
4160
4169
|
"use strict";
|
|
@@ -4181,14 +4190,14 @@ 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
|
-
var ArrowUp_ = __webpack_require__(
|
|
4196
|
+
var ArrowUp_ = __webpack_require__(65);
|
|
4188
4197
|
var ArrowUp_default = /*#__PURE__*/__webpack_require__.n(ArrowUp_);
|
|
4189
4198
|
|
|
4190
4199
|
// EXTERNAL MODULE: external "@splunk/react-icons/ArrowDown"
|
|
4191
|
-
var ArrowDown_ = __webpack_require__(
|
|
4200
|
+
var ArrowDown_ = __webpack_require__(66);
|
|
4192
4201
|
var ArrowDown_default = /*#__PURE__*/__webpack_require__.n(ArrowDown_);
|
|
4193
4202
|
|
|
4194
4203
|
// CONCATENATED MODULE: ./src/SingleValueBasic/TrendValue.jsx
|
|
@@ -4258,7 +4267,7 @@ TrendValue_SingleValueContent.propTypes = {
|
|
|
4258
4267
|
};
|
|
4259
4268
|
/* harmony default export */ var TrendValue = (TrendValue_SingleValueContent);
|
|
4260
4269
|
// EXTERNAL MODULE: external "cssesc"
|
|
4261
|
-
var external_cssesc_ = __webpack_require__(
|
|
4270
|
+
var external_cssesc_ = __webpack_require__(67);
|
|
4262
4271
|
var external_cssesc_default = /*#__PURE__*/__webpack_require__.n(external_cssesc_);
|
|
4263
4272
|
|
|
4264
4273
|
// CONCATENATED MODULE: ./src/SingleValueBasic/MajorValue.jsx
|
|
@@ -4443,42 +4452,42 @@ var SingleValueTrendValue = TrendValue;
|
|
|
4443
4452
|
|
|
4444
4453
|
/***/ }),
|
|
4445
4454
|
|
|
4446
|
-
/***/
|
|
4455
|
+
/***/ 63:
|
|
4447
4456
|
/***/ (function(module, exports) {
|
|
4448
4457
|
|
|
4449
4458
|
module.exports = require("lodash/pick");
|
|
4450
4459
|
|
|
4451
4460
|
/***/ }),
|
|
4452
4461
|
|
|
4453
|
-
/***/
|
|
4462
|
+
/***/ 64:
|
|
4454
4463
|
/***/ (function(module, exports) {
|
|
4455
4464
|
|
|
4456
4465
|
module.exports = require("lodash/isEmpty");
|
|
4457
4466
|
|
|
4458
4467
|
/***/ }),
|
|
4459
4468
|
|
|
4460
|
-
/***/
|
|
4469
|
+
/***/ 65:
|
|
4461
4470
|
/***/ (function(module, exports) {
|
|
4462
4471
|
|
|
4463
4472
|
module.exports = require("@splunk/react-icons/ArrowUp");
|
|
4464
4473
|
|
|
4465
4474
|
/***/ }),
|
|
4466
4475
|
|
|
4467
|
-
/***/
|
|
4476
|
+
/***/ 66:
|
|
4468
4477
|
/***/ (function(module, exports) {
|
|
4469
4478
|
|
|
4470
4479
|
module.exports = require("@splunk/react-icons/ArrowDown");
|
|
4471
4480
|
|
|
4472
4481
|
/***/ }),
|
|
4473
4482
|
|
|
4474
|
-
/***/
|
|
4483
|
+
/***/ 67:
|
|
4475
4484
|
/***/ (function(module, exports) {
|
|
4476
4485
|
|
|
4477
4486
|
module.exports = require("cssesc");
|
|
4478
4487
|
|
|
4479
4488
|
/***/ }),
|
|
4480
4489
|
|
|
4481
|
-
/***/
|
|
4490
|
+
/***/ 68:
|
|
4482
4491
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4483
4492
|
|
|
4484
4493
|
"use strict";
|
|
@@ -4503,13 +4512,79 @@ 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
|
|
|
4512
|
-
/***/
|
|
4587
|
+
/***/ 76:
|
|
4513
4588
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4514
4589
|
|
|
4515
4590
|
"use strict";
|
|
@@ -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'
|
|
@@ -4562,7 +4635,7 @@ var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
|
|
|
4562
4635
|
|
|
4563
4636
|
/***/ }),
|
|
4564
4637
|
|
|
4565
|
-
/***/
|
|
4638
|
+
/***/ 77:
|
|
4566
4639
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4567
4640
|
|
|
4568
4641
|
"use strict";
|
|
@@ -4607,7 +4680,7 @@ var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
|
|
|
4607
4680
|
|
|
4608
4681
|
/***/ }),
|
|
4609
4682
|
|
|
4610
|
-
/***/
|
|
4683
|
+
/***/ 78:
|
|
4611
4684
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4612
4685
|
|
|
4613
4686
|
"use strict";
|
|
@@ -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'
|
|
@@ -4664,7 +4735,7 @@ var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_
|
|
|
4664
4735
|
|
|
4665
4736
|
/***/ }),
|
|
4666
4737
|
|
|
4667
|
-
/***/
|
|
4738
|
+
/***/ 79:
|
|
4668
4739
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4669
4740
|
|
|
4670
4741
|
"use strict";
|
|
@@ -4688,7 +4759,14 @@ var StaticMajorColorEditor = {
|
|
|
4688
4759
|
|
|
4689
4760
|
/***/ }),
|
|
4690
4761
|
|
|
4691
|
-
/***/
|
|
4762
|
+
/***/ 8:
|
|
4763
|
+
/***/ (function(module, exports) {
|
|
4764
|
+
|
|
4765
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
4766
|
+
|
|
4767
|
+
/***/ }),
|
|
4768
|
+
|
|
4769
|
+
/***/ 80:
|
|
4692
4770
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4693
4771
|
|
|
4694
4772
|
"use strict";
|
|
@@ -4716,80 +4794,7 @@ var StaticTrendColorEditor = {
|
|
|
4716
4794
|
|
|
4717
4795
|
/***/ }),
|
|
4718
4796
|
|
|
4719
|
-
/***/
|
|
4720
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4721
|
-
|
|
4722
|
-
"use strict";
|
|
4723
|
-
|
|
4724
|
-
|
|
4725
|
-
var _typeof = __webpack_require__(22);
|
|
4726
|
-
|
|
4727
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4728
|
-
value: true
|
|
4729
|
-
});
|
|
4730
|
-
exports.deepMergeWithArrayOverrides = exports.extendStaticWrapperProps = void 0;
|
|
4731
|
-
|
|
4732
|
-
var lodash_1 = __webpack_require__(2);
|
|
4733
|
-
/**
|
|
4734
|
-
* @method extendStaticWrapperProps
|
|
4735
|
-
* @param {Object} props
|
|
4736
|
-
* @param {DashboardVizType} props.Wrapper
|
|
4737
|
-
* @param {DashboardVizType} props.Visualization
|
|
4738
|
-
*/
|
|
4739
|
-
|
|
4740
|
-
|
|
4741
|
-
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
4742
|
-
var Wrapper = _ref.Wrapper,
|
|
4743
|
-
Visualization = _ref.Visualization;
|
|
4744
|
-
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
4745
|
-
extendProperties.forEach(function (prop) {
|
|
4746
|
-
if (Visualization[prop]) {
|
|
4747
|
-
// eslint-disable-next-line no-param-reassign
|
|
4748
|
-
Wrapper[prop] = Visualization[prop];
|
|
4749
|
-
}
|
|
4750
|
-
});
|
|
4751
|
-
};
|
|
4752
|
-
|
|
4753
|
-
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
4754
|
-
/**
|
|
4755
|
-
* helper to deeply merge objects while preserving arrays in earlier source objects
|
|
4756
|
-
* 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
|
|
4757
|
-
* this prevents default arrays from appending values to user-defined arrays (this occurs if the default array is longer than the user-defined one)
|
|
4758
|
-
*
|
|
4759
|
-
* @method deepMergeWithArrayOverrides
|
|
4760
|
-
* @param {Object} initial - target object to merge values into
|
|
4761
|
-
* @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
|
|
4762
|
-
*
|
|
4763
|
-
* @returns {Object}
|
|
4764
|
-
*/
|
|
4765
|
-
|
|
4766
|
-
var deepMergeWithArrayOverrides = function deepMergeWithArrayOverrides(initial) {
|
|
4767
|
-
var clone = lodash_1.cloneDeep(initial);
|
|
4768
|
-
|
|
4769
|
-
for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
4770
|
-
sources[_key - 1] = arguments[_key];
|
|
4771
|
-
}
|
|
4772
|
-
|
|
4773
|
-
sources.forEach(function (sourceToApply) {
|
|
4774
|
-
Object.keys(sourceToApply).forEach(function (sourceKey) {
|
|
4775
|
-
if (!Object.prototype.hasOwnProperty.call(clone, sourceKey)) {
|
|
4776
|
-
clone[sourceKey] = lodash_1.cloneDeep(sourceToApply[sourceKey]);
|
|
4777
|
-
} // object merging excluding arrays
|
|
4778
|
-
|
|
4779
|
-
|
|
4780
|
-
if (clone[sourceKey] && _typeof(clone[sourceKey]) === 'object' && !Array.isArray(clone[sourceKey]) && _typeof(sourceToApply[sourceKey]) === 'object') {
|
|
4781
|
-
clone[sourceKey] = exports.deepMergeWithArrayOverrides(clone[sourceKey], sourceToApply[sourceKey]);
|
|
4782
|
-
}
|
|
4783
|
-
});
|
|
4784
|
-
});
|
|
4785
|
-
return clone;
|
|
4786
|
-
};
|
|
4787
|
-
|
|
4788
|
-
exports.deepMergeWithArrayOverrides = deepMergeWithArrayOverrides;
|
|
4789
|
-
|
|
4790
|
-
/***/ }),
|
|
4791
|
-
|
|
4792
|
-
/***/ 82:
|
|
4797
|
+
/***/ 83:
|
|
4793
4798
|
/***/ (function(module, exports) {
|
|
4794
4799
|
|
|
4795
4800
|
module.exports = require("@splunk/react-sparkline/Line");
|