@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/SingleValueRadial.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 = 252);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -134,7 +134,7 @@ var React = __webpack_require__(1);
|
|
|
134
134
|
|
|
135
135
|
var styled_components_1 = __webpack_require__(4);
|
|
136
136
|
|
|
137
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
137
|
+
var SizeAwareWrapper_1 = __webpack_require__(16);
|
|
138
138
|
|
|
139
139
|
var style_1 = __webpack_require__(13);
|
|
140
140
|
|
|
@@ -195,6 +195,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
195
195
|
|
|
196
196
|
return React.createElement(FixSizeItem, {
|
|
197
197
|
"data-test": "fix-size-item",
|
|
198
|
+
"data-splunk-visualization-version": "24.3.0 - 1c1ae4b3c",
|
|
198
199
|
width: width,
|
|
199
200
|
height: height,
|
|
200
201
|
backgroundColor: backgroundColor
|
|
@@ -231,6 +232,20 @@ module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
|
231
232
|
/***/ }),
|
|
232
233
|
|
|
233
234
|
/***/ 15:
|
|
235
|
+
/***/ (function(module, exports) {
|
|
236
|
+
|
|
237
|
+
module.exports = require("@babel/runtime/helpers/createClass");
|
|
238
|
+
|
|
239
|
+
/***/ }),
|
|
240
|
+
|
|
241
|
+
/***/ 16:
|
|
242
|
+
/***/ (function(module, exports) {
|
|
243
|
+
|
|
244
|
+
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
245
|
+
|
|
246
|
+
/***/ }),
|
|
247
|
+
|
|
248
|
+
/***/ 17:
|
|
234
249
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
235
250
|
|
|
236
251
|
"use strict";
|
|
@@ -265,11 +280,11 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
265
280
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lighten", function() { return lighten; });
|
|
266
281
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "darken", function() { return darken; });
|
|
267
282
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "handleValueClickCallback", function() { return handleValueClickCallback; });
|
|
268
|
-
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
283
|
+
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
|
|
269
284
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
270
285
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(2);
|
|
271
286
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
|
|
272
|
-
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
287
|
+
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(22);
|
|
273
288
|
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__);
|
|
274
289
|
/* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(44);
|
|
275
290
|
/* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__);
|
|
@@ -1239,20 +1254,6 @@ var handleValueClickCallback = function handleValueClickCallback(ev, majorValue,
|
|
|
1239
1254
|
|
|
1240
1255
|
/***/ }),
|
|
1241
1256
|
|
|
1242
|
-
/***/ 16:
|
|
1243
|
-
/***/ (function(module, exports) {
|
|
1244
|
-
|
|
1245
|
-
module.exports = require("@babel/runtime/helpers/createClass");
|
|
1246
|
-
|
|
1247
|
-
/***/ }),
|
|
1248
|
-
|
|
1249
|
-
/***/ 17:
|
|
1250
|
-
/***/ (function(module, exports) {
|
|
1251
|
-
|
|
1252
|
-
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
1253
|
-
|
|
1254
|
-
/***/ }),
|
|
1255
|
-
|
|
1256
1257
|
/***/ 18:
|
|
1257
1258
|
/***/ (function(module, exports) {
|
|
1258
1259
|
|
|
@@ -1277,21 +1278,21 @@ module.exports = require("lodash");
|
|
|
1277
1278
|
/***/ 20:
|
|
1278
1279
|
/***/ (function(module, exports) {
|
|
1279
1280
|
|
|
1280
|
-
module.exports = require("@
|
|
1281
|
+
module.exports = require("@babel/runtime/helpers/typeof");
|
|
1281
1282
|
|
|
1282
1283
|
/***/ }),
|
|
1283
1284
|
|
|
1284
1285
|
/***/ 21:
|
|
1285
1286
|
/***/ (function(module, exports) {
|
|
1286
1287
|
|
|
1287
|
-
module.exports = require("@splunk/
|
|
1288
|
+
module.exports = require("@splunk/themes/pick");
|
|
1288
1289
|
|
|
1289
1290
|
/***/ }),
|
|
1290
1291
|
|
|
1291
1292
|
/***/ 22:
|
|
1292
1293
|
/***/ (function(module, exports) {
|
|
1293
1294
|
|
|
1294
|
-
module.exports = require("@
|
|
1295
|
+
module.exports = require("@splunk/visualizations-shared/numberUtils");
|
|
1295
1296
|
|
|
1296
1297
|
/***/ }),
|
|
1297
1298
|
|
|
@@ -1301,7 +1302,7 @@ module.exports = require("@babel/runtime/helpers/typeof");
|
|
|
1301
1302
|
"use strict";
|
|
1302
1303
|
|
|
1303
1304
|
|
|
1304
|
-
var _defineProperty = __webpack_require__(
|
|
1305
|
+
var _defineProperty = __webpack_require__(8);
|
|
1305
1306
|
|
|
1306
1307
|
Object.defineProperty(exports, "__esModule", {
|
|
1307
1308
|
value: true
|
|
@@ -1366,34 +1367,6 @@ exports.getSortingParams = getSortingParams;
|
|
|
1366
1367
|
|
|
1367
1368
|
/***/ }),
|
|
1368
1369
|
|
|
1369
|
-
/***/ 239:
|
|
1370
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1371
|
-
|
|
1372
|
-
"use strict";
|
|
1373
|
-
|
|
1374
|
-
|
|
1375
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1376
|
-
value: true
|
|
1377
|
-
});
|
|
1378
|
-
exports.PureSingleValueRadialThemes = exports.PureSingleValueRadial = exports.config = void 0;
|
|
1379
|
-
|
|
1380
|
-
var SingleValueRadial_1 = __webpack_require__(256);
|
|
1381
|
-
|
|
1382
|
-
var withDashboardViz_1 = __webpack_require__(27);
|
|
1383
|
-
|
|
1384
|
-
var config_1 = __webpack_require__(240);
|
|
1385
|
-
|
|
1386
|
-
exports.config = config_1.default;
|
|
1387
|
-
exports.PureSingleValueRadial = SingleValueRadial_1.default; // TODO: proper theming support for SVR when we come back to SVR viz
|
|
1388
|
-
|
|
1389
|
-
exports.PureSingleValueRadialThemes = {};
|
|
1390
|
-
exports.default = withDashboardViz_1.default({
|
|
1391
|
-
ReactViz: SingleValueRadial_1.default,
|
|
1392
|
-
vizConfig: config_1.default
|
|
1393
|
-
});
|
|
1394
|
-
|
|
1395
|
-
/***/ }),
|
|
1396
|
-
|
|
1397
1370
|
/***/ 24:
|
|
1398
1371
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1399
1372
|
|
|
@@ -1459,7 +1432,124 @@ exports.getPaginationParams = getPaginationParams;
|
|
|
1459
1432
|
|
|
1460
1433
|
/***/ }),
|
|
1461
1434
|
|
|
1462
|
-
/***/
|
|
1435
|
+
/***/ 25:
|
|
1436
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1437
|
+
|
|
1438
|
+
"use strict";
|
|
1439
|
+
|
|
1440
|
+
|
|
1441
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1442
|
+
value: true
|
|
1443
|
+
});
|
|
1444
|
+
exports.shouldShowIconPlaceholder = void 0;
|
|
1445
|
+
|
|
1446
|
+
var React = __webpack_require__(1);
|
|
1447
|
+
|
|
1448
|
+
var T = __webpack_require__(0);
|
|
1449
|
+
|
|
1450
|
+
var lodash_1 = __webpack_require__(2);
|
|
1451
|
+
|
|
1452
|
+
var i18n_1 = __webpack_require__(3);
|
|
1453
|
+
|
|
1454
|
+
var Message_1 = __webpack_require__(9);
|
|
1455
|
+
|
|
1456
|
+
var FixedSizeContainer_1 = __webpack_require__(12);
|
|
1457
|
+
/**
|
|
1458
|
+
* @method shouldShowIconPlaceholder
|
|
1459
|
+
* @param {object} dataSources
|
|
1460
|
+
* @param {boolean} loading
|
|
1461
|
+
* @returns {boolean}
|
|
1462
|
+
*/
|
|
1463
|
+
|
|
1464
|
+
|
|
1465
|
+
var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
|
|
1466
|
+
var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
1467
|
+
var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
|
|
1468
|
+
var noData = data === undefined;
|
|
1469
|
+
var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
|
|
1470
|
+
var noFields = fields === undefined;
|
|
1471
|
+
return loading || noData || noFields;
|
|
1472
|
+
};
|
|
1473
|
+
|
|
1474
|
+
exports.shouldShowIconPlaceholder = shouldShowIconPlaceholder;
|
|
1475
|
+
var propTypes = {
|
|
1476
|
+
icon: T.func,
|
|
1477
|
+
width: T.oneOfType([T.string, T.number]),
|
|
1478
|
+
height: T.oneOfType([T.string, T.number]),
|
|
1479
|
+
// eslint-disable-next-line react/no-unused-prop-types
|
|
1480
|
+
backgroundColor: T.string
|
|
1481
|
+
};
|
|
1482
|
+
/**
|
|
1483
|
+
* @method IconPlaceholder
|
|
1484
|
+
* @param {IconPlaceholderProps} props
|
|
1485
|
+
* @returns {React.ReactElement}
|
|
1486
|
+
*/
|
|
1487
|
+
|
|
1488
|
+
var IconPlaceholder = function IconPlaceholder(props) {
|
|
1489
|
+
var width = props.width,
|
|
1490
|
+
height = props.height,
|
|
1491
|
+
icon = props.icon;
|
|
1492
|
+
|
|
1493
|
+
if (icon) {
|
|
1494
|
+
return React.createElement(icon, {
|
|
1495
|
+
style: {
|
|
1496
|
+
left: '50%',
|
|
1497
|
+
top: '50%',
|
|
1498
|
+
color: 'grey',
|
|
1499
|
+
position: 'absolute',
|
|
1500
|
+
transform: 'translate(-50%, -50%)'
|
|
1501
|
+
},
|
|
1502
|
+
width: '50%',
|
|
1503
|
+
height: '50%'
|
|
1504
|
+
});
|
|
1505
|
+
}
|
|
1506
|
+
|
|
1507
|
+
return React.createElement(Message_1.default, {
|
|
1508
|
+
width: width,
|
|
1509
|
+
height: height,
|
|
1510
|
+
level: "warning",
|
|
1511
|
+
message: i18n_1._('No DataSource Connected')
|
|
1512
|
+
});
|
|
1513
|
+
};
|
|
1514
|
+
|
|
1515
|
+
IconPlaceholder.propTypes = propTypes;
|
|
1516
|
+
IconPlaceholder.defaultProps = {
|
|
1517
|
+
width: '100%',
|
|
1518
|
+
height: 250
|
|
1519
|
+
};
|
|
1520
|
+
exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
1521
|
+
|
|
1522
|
+
/***/ }),
|
|
1523
|
+
|
|
1524
|
+
/***/ 252:
|
|
1525
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1526
|
+
|
|
1527
|
+
"use strict";
|
|
1528
|
+
|
|
1529
|
+
|
|
1530
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1531
|
+
value: true
|
|
1532
|
+
});
|
|
1533
|
+
exports.PureSingleValueRadialThemes = exports.PureSingleValueRadial = exports.config = void 0;
|
|
1534
|
+
|
|
1535
|
+
var SingleValueRadial_1 = __webpack_require__(269);
|
|
1536
|
+
|
|
1537
|
+
var withDashboardViz_1 = __webpack_require__(27);
|
|
1538
|
+
|
|
1539
|
+
var config_1 = __webpack_require__(253);
|
|
1540
|
+
|
|
1541
|
+
exports.config = config_1.default;
|
|
1542
|
+
exports.PureSingleValueRadial = SingleValueRadial_1.default; // TODO: proper theming support for SVR when we come back to SVR viz
|
|
1543
|
+
|
|
1544
|
+
exports.PureSingleValueRadialThemes = {};
|
|
1545
|
+
exports.default = withDashboardViz_1.default({
|
|
1546
|
+
ReactViz: SingleValueRadial_1.default,
|
|
1547
|
+
vizConfig: config_1.default
|
|
1548
|
+
});
|
|
1549
|
+
|
|
1550
|
+
/***/ }),
|
|
1551
|
+
|
|
1552
|
+
/***/ 253:
|
|
1463
1553
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1464
1554
|
|
|
1465
1555
|
"use strict";
|
|
@@ -1473,11 +1563,11 @@ var i18n_1 = __webpack_require__(3);
|
|
|
1473
1563
|
|
|
1474
1564
|
var schemaUtils_1 = __webpack_require__(14);
|
|
1475
1565
|
|
|
1476
|
-
var pick_1 = __webpack_require__(
|
|
1566
|
+
var pick_1 = __webpack_require__(21);
|
|
1477
1567
|
|
|
1478
1568
|
var variables_1 = __webpack_require__(19);
|
|
1479
1569
|
|
|
1480
|
-
var PresetPalettes_1 = __webpack_require__(
|
|
1570
|
+
var PresetPalettes_1 = __webpack_require__(49);
|
|
1481
1571
|
|
|
1482
1572
|
var visualization_icons_1 = __webpack_require__(42);
|
|
1483
1573
|
|
|
@@ -1487,19 +1577,19 @@ var configUtils_1 = __webpack_require__(6);
|
|
|
1487
1577
|
|
|
1488
1578
|
var VizCategory_1 = __webpack_require__(26);
|
|
1489
1579
|
|
|
1490
|
-
var DynamicMajorColorEditor_1 = __webpack_require__(
|
|
1580
|
+
var DynamicMajorColorEditor_1 = __webpack_require__(76);
|
|
1491
1581
|
|
|
1492
|
-
var DynamicTrendColorEditor_1 = __webpack_require__(
|
|
1582
|
+
var DynamicTrendColorEditor_1 = __webpack_require__(77);
|
|
1493
1583
|
|
|
1494
|
-
var DynamicBackgroundColorEditor_1 = __webpack_require__(
|
|
1584
|
+
var DynamicBackgroundColorEditor_1 = __webpack_require__(78);
|
|
1495
1585
|
|
|
1496
|
-
var StaticMajorColorEditor_1 = __webpack_require__(
|
|
1586
|
+
var StaticMajorColorEditor_1 = __webpack_require__(79);
|
|
1497
1587
|
|
|
1498
|
-
var StaticTrendColorEditor_1 = __webpack_require__(
|
|
1588
|
+
var StaticTrendColorEditor_1 = __webpack_require__(80);
|
|
1499
1589
|
|
|
1500
|
-
var StaticBackgroundColorEditor_1 = __webpack_require__(
|
|
1590
|
+
var StaticBackgroundColorEditor_1 = __webpack_require__(68);
|
|
1501
1591
|
|
|
1502
|
-
var RadialBackgroundColor_1 = __webpack_require__(
|
|
1592
|
+
var RadialBackgroundColor_1 = __webpack_require__(254);
|
|
1503
1593
|
|
|
1504
1594
|
var dataContract = {
|
|
1505
1595
|
requiredDataSources: [{
|
|
@@ -1544,6 +1634,10 @@ var defaultContext = {
|
|
|
1544
1634
|
}, {
|
|
1545
1635
|
from: 80,
|
|
1546
1636
|
value: '#118832'
|
|
1637
|
+
}],
|
|
1638
|
+
majorColorMatchConfig: [{
|
|
1639
|
+
match: '',
|
|
1640
|
+
value: '#5C33FF'
|
|
1547
1641
|
}]
|
|
1548
1642
|
};
|
|
1549
1643
|
var optionsSchema = {
|
|
@@ -1855,7 +1949,7 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
1855
1949
|
|
|
1856
1950
|
/***/ }),
|
|
1857
1951
|
|
|
1858
|
-
/***/
|
|
1952
|
+
/***/ 254:
|
|
1859
1953
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1860
1954
|
|
|
1861
1955
|
"use strict";
|
|
@@ -1886,7 +1980,7 @@ exports.default = radialBackground;
|
|
|
1886
1980
|
|
|
1887
1981
|
/***/ }),
|
|
1888
1982
|
|
|
1889
|
-
/***/
|
|
1983
|
+
/***/ 26:
|
|
1890
1984
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1891
1985
|
|
|
1892
1986
|
"use strict";
|
|
@@ -1895,87 +1989,27 @@ exports.default = radialBackground;
|
|
|
1895
1989
|
Object.defineProperty(exports, "__esModule", {
|
|
1896
1990
|
value: true
|
|
1897
1991
|
});
|
|
1898
|
-
exports.
|
|
1899
|
-
|
|
1900
|
-
var React = __webpack_require__(1);
|
|
1901
|
-
|
|
1902
|
-
var T = __webpack_require__(0);
|
|
1903
|
-
|
|
1904
|
-
var lodash_1 = __webpack_require__(2);
|
|
1905
|
-
|
|
1906
|
-
var i18n_1 = __webpack_require__(3);
|
|
1907
|
-
|
|
1908
|
-
var Message_1 = __webpack_require__(9);
|
|
1909
|
-
|
|
1910
|
-
var FixedSizeContainer_1 = __webpack_require__(12);
|
|
1911
|
-
/**
|
|
1912
|
-
* @method shouldShowIconPlaceholder
|
|
1913
|
-
* @param {object} dataSources
|
|
1914
|
-
* @param {boolean} loading
|
|
1915
|
-
* @returns {boolean}
|
|
1916
|
-
*/
|
|
1917
|
-
|
|
1918
|
-
|
|
1919
|
-
var shouldShowIconPlaceholder = function shouldShowIconPlaceholder(dataSources) {
|
|
1920
|
-
var loading = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : false;
|
|
1921
|
-
var data = lodash_1.get(dataSources, 'primary.data.columns[0]', undefined);
|
|
1922
|
-
var noData = data === undefined;
|
|
1923
|
-
var fields = lodash_1.get(dataSources, 'primary.data.fields[0]', undefined);
|
|
1924
|
-
var noFields = fields === undefined;
|
|
1925
|
-
return loading || noData || noFields;
|
|
1926
|
-
};
|
|
1927
|
-
|
|
1928
|
-
exports.shouldShowIconPlaceholder = shouldShowIconPlaceholder;
|
|
1929
|
-
var propTypes = {
|
|
1930
|
-
icon: T.func,
|
|
1931
|
-
width: T.oneOfType([T.string, T.number]),
|
|
1932
|
-
height: T.oneOfType([T.string, T.number]),
|
|
1933
|
-
// eslint-disable-next-line react/no-unused-prop-types
|
|
1934
|
-
backgroundColor: T.string
|
|
1935
|
-
};
|
|
1936
|
-
/**
|
|
1937
|
-
* @method IconPlaceholder
|
|
1938
|
-
* @param {IconPlaceholderProps} props
|
|
1939
|
-
* @returns {React.ReactElement}
|
|
1940
|
-
*/
|
|
1941
|
-
|
|
1942
|
-
var IconPlaceholder = function IconPlaceholder(props) {
|
|
1943
|
-
var width = props.width,
|
|
1944
|
-
height = props.height,
|
|
1945
|
-
icon = props.icon;
|
|
1946
|
-
|
|
1947
|
-
if (icon) {
|
|
1948
|
-
return React.createElement(icon, {
|
|
1949
|
-
style: {
|
|
1950
|
-
left: '50%',
|
|
1951
|
-
top: '50%',
|
|
1952
|
-
color: 'grey',
|
|
1953
|
-
position: 'absolute',
|
|
1954
|
-
transform: 'translate(-50%, -50%)'
|
|
1955
|
-
},
|
|
1956
|
-
width: '50%',
|
|
1957
|
-
height: '50%'
|
|
1958
|
-
});
|
|
1959
|
-
}
|
|
1960
|
-
|
|
1961
|
-
return React.createElement(Message_1.default, {
|
|
1962
|
-
width: width,
|
|
1963
|
-
height: height,
|
|
1964
|
-
level: "warning",
|
|
1965
|
-
message: i18n_1._('No DataSource Connected')
|
|
1966
|
-
});
|
|
1967
|
-
};
|
|
1992
|
+
exports.VizCategory = void 0;
|
|
1993
|
+
var VizCategory;
|
|
1968
1994
|
|
|
1969
|
-
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1995
|
+
(function (VizCategory) {
|
|
1996
|
+
VizCategory["SINGLE_VALUE"] = "Single Value";
|
|
1997
|
+
VizCategory["TRENDS"] = "Trends";
|
|
1998
|
+
VizCategory["COMPARISONS"] = "Comparisons";
|
|
1999
|
+
VizCategory["TABLE"] = "Table";
|
|
2000
|
+
VizCategory["GAUGE"] = "Gauge";
|
|
2001
|
+
VizCategory["DISTRIBUTIONS"] = "Distributions";
|
|
2002
|
+
VizCategory["CHOROPLETH"] = "Choropleth Maps";
|
|
2003
|
+
VizCategory["SHAPES"] = "Shapes";
|
|
2004
|
+
VizCategory["MISC"] = "misc";
|
|
2005
|
+
VizCategory["FLOW"] = "Flow";
|
|
2006
|
+
VizCategory["CORRELATION"] = "Correlation";
|
|
2007
|
+
VizCategory["SPATIAL"] = "Spatial";
|
|
2008
|
+
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
1975
2009
|
|
|
1976
2010
|
/***/ }),
|
|
1977
2011
|
|
|
1978
|
-
/***/
|
|
2012
|
+
/***/ 269:
|
|
1979
2013
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1980
2014
|
|
|
1981
2015
|
"use strict";
|
|
@@ -1995,7 +2029,7 @@ var external_prop_types_ = __webpack_require__(0);
|
|
|
1995
2029
|
var external_prop_types_default = /*#__PURE__*/__webpack_require__.n(external_prop_types_);
|
|
1996
2030
|
|
|
1997
2031
|
// EXTERNAL MODULE: external "@splunk/themes/pick"
|
|
1998
|
-
var pick_ = __webpack_require__(
|
|
2032
|
+
var pick_ = __webpack_require__(21);
|
|
1999
2033
|
var pick_default = /*#__PURE__*/__webpack_require__.n(pick_);
|
|
2000
2034
|
|
|
2001
2035
|
// EXTERNAL MODULE: external "@splunk/themes/variables"
|
|
@@ -2007,29 +2041,29 @@ var external_styled_components_ = __webpack_require__(4);
|
|
|
2007
2041
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
2008
2042
|
|
|
2009
2043
|
// EXTERNAL MODULE: external "lodash/pick"
|
|
2010
|
-
var external_lodash_pick_ = __webpack_require__(
|
|
2044
|
+
var external_lodash_pick_ = __webpack_require__(63);
|
|
2011
2045
|
var external_lodash_pick_default = /*#__PURE__*/__webpack_require__.n(external_lodash_pick_);
|
|
2012
2046
|
|
|
2013
2047
|
// EXTERNAL MODULE: external "lodash/isEmpty"
|
|
2014
|
-
var isEmpty_ = __webpack_require__(
|
|
2048
|
+
var isEmpty_ = __webpack_require__(64);
|
|
2015
2049
|
var isEmpty_default = /*#__PURE__*/__webpack_require__.n(isEmpty_);
|
|
2016
2050
|
|
|
2017
2051
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/style"
|
|
2018
2052
|
var style_ = __webpack_require__(13);
|
|
2019
2053
|
|
|
2020
2054
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/SizeAwareWrapper"
|
|
2021
|
-
var SizeAwareWrapper_ = __webpack_require__(
|
|
2055
|
+
var SizeAwareWrapper_ = __webpack_require__(16);
|
|
2022
2056
|
var SizeAwareWrapper_default = /*#__PURE__*/__webpack_require__.n(SizeAwareWrapper_);
|
|
2023
2057
|
|
|
2024
2058
|
// EXTERNAL MODULE: ./src/common/components/VizStyleWrapper.jsx
|
|
2025
|
-
var VizStyleWrapper = __webpack_require__(
|
|
2059
|
+
var VizStyleWrapper = __webpack_require__(59);
|
|
2026
2060
|
|
|
2027
2061
|
// EXTERNAL MODULE: external "@babel/runtime/helpers/defineProperty"
|
|
2028
|
-
var defineProperty_ = __webpack_require__(
|
|
2062
|
+
var defineProperty_ = __webpack_require__(8);
|
|
2029
2063
|
var defineProperty_default = /*#__PURE__*/__webpack_require__.n(defineProperty_);
|
|
2030
2064
|
|
|
2031
2065
|
// EXTERNAL MODULE: ./src/SingleValueBasic/SingleValueBasic.jsx + 2 modules
|
|
2032
|
-
var SingleValueBasic = __webpack_require__(
|
|
2066
|
+
var SingleValueBasic = __webpack_require__(62);
|
|
2033
2067
|
|
|
2034
2068
|
// EXTERNAL MODULE: external "@splunk/visualizations-shared/colorConstants"
|
|
2035
2069
|
var colorConstants_ = __webpack_require__(40);
|
|
@@ -2101,7 +2135,7 @@ RadialGraph_RadialGraph.defaultProps = {
|
|
|
2101
2135
|
};
|
|
2102
2136
|
/* harmony default export */ var PureSingleValueRadial_RadialGraph = (RadialGraph_RadialGraph);
|
|
2103
2137
|
// EXTERNAL MODULE: ./src/common/utils/singleValueUtils.js
|
|
2104
|
-
var singleValueUtils = __webpack_require__(
|
|
2138
|
+
var singleValueUtils = __webpack_require__(17);
|
|
2105
2139
|
|
|
2106
2140
|
// CONCATENATED MODULE: ./src/SingleValueRadial/PureSingleValueRadial/utils/displayUtils.js
|
|
2107
2141
|
|
|
@@ -2669,35 +2703,6 @@ SingleValueRadial_SingleValueRadial.defaultProps = {
|
|
|
2669
2703
|
|
|
2670
2704
|
/***/ }),
|
|
2671
2705
|
|
|
2672
|
-
/***/ 26:
|
|
2673
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2674
|
-
|
|
2675
|
-
"use strict";
|
|
2676
|
-
|
|
2677
|
-
|
|
2678
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2679
|
-
value: true
|
|
2680
|
-
});
|
|
2681
|
-
exports.VizCategory = void 0;
|
|
2682
|
-
var VizCategory;
|
|
2683
|
-
|
|
2684
|
-
(function (VizCategory) {
|
|
2685
|
-
VizCategory["SINGLE_VALUE"] = "Single Value";
|
|
2686
|
-
VizCategory["TRENDS"] = "Trends";
|
|
2687
|
-
VizCategory["COMPARISONS"] = "Comparisons";
|
|
2688
|
-
VizCategory["TABLE"] = "Table";
|
|
2689
|
-
VizCategory["GAUGE"] = "Gauge";
|
|
2690
|
-
VizCategory["DISTRIBUTIONS"] = "Distributions";
|
|
2691
|
-
VizCategory["CHOROPLETH"] = "Choropleth Maps";
|
|
2692
|
-
VizCategory["SHAPES"] = "Shapes";
|
|
2693
|
-
VizCategory["MISC"] = "misc";
|
|
2694
|
-
VizCategory["FLOW"] = "Flow";
|
|
2695
|
-
VizCategory["CORRELATION"] = "Correlation";
|
|
2696
|
-
VizCategory["SPATIAL"] = "Spatial";
|
|
2697
|
-
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
2698
|
-
|
|
2699
|
-
/***/ }),
|
|
2700
|
-
|
|
2701
2706
|
/***/ 27:
|
|
2702
2707
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2703
2708
|
|
|
@@ -2738,7 +2743,7 @@ var withEditModeCover_1 = __webpack_require__(37);
|
|
|
2738
2743
|
|
|
2739
2744
|
var withPlaceholder_1 = __webpack_require__(38);
|
|
2740
2745
|
|
|
2741
|
-
var hocUtils_1 = __webpack_require__(
|
|
2746
|
+
var hocUtils_1 = __webpack_require__(7);
|
|
2742
2747
|
/**
|
|
2743
2748
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
2744
2749
|
* @param {DashboardVizOpts} opts
|
|
@@ -2751,6 +2756,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2751
2756
|
vizConfig = opts.vizConfig,
|
|
2752
2757
|
_opts$computeVizProps = opts.computeVizProps,
|
|
2753
2758
|
computeVizProps = _opts$computeVizProps === void 0 ? function () {} : _opts$computeVizProps,
|
|
2759
|
+
disableEditModeCover = opts.disableEditModeCover,
|
|
2754
2760
|
useIconPlaceholder = opts.useIconPlaceholder; // sanitizing props before sending them to reactviz.
|
|
2755
2761
|
|
|
2756
2762
|
var SanitizedReactViz = SanitizeProps_1.withSanitizedProps(ReactViz);
|
|
@@ -2915,7 +2921,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2915
2921
|
|
|
2916
2922
|
DashboardViz.config = vizConfig; // @ts-ignore: TODO fix sc upgrade TS issues
|
|
2917
2923
|
|
|
2918
|
-
return styled_components_1.withTheme(withPlaceholder_1.default(withEditModeCover_1.default(DashboardViz), useIconPlaceholder));
|
|
2924
|
+
return styled_components_1.withTheme(withPlaceholder_1.default(withEditModeCover_1.default(DashboardViz, disableEditModeCover), useIconPlaceholder));
|
|
2919
2925
|
};
|
|
2920
2926
|
|
|
2921
2927
|
exports.default = withDashboardViz;
|
|
@@ -3110,7 +3116,7 @@ exports.default = SplunkVisualization;
|
|
|
3110
3116
|
|
|
3111
3117
|
var _classCallCheck = __webpack_require__(10);
|
|
3112
3118
|
|
|
3113
|
-
var _createClass = __webpack_require__(
|
|
3119
|
+
var _createClass = __webpack_require__(15);
|
|
3114
3120
|
|
|
3115
3121
|
Object.defineProperty(exports, "__esModule", {
|
|
3116
3122
|
value: true
|
|
@@ -3329,13 +3335,15 @@ var React = __webpack_require__(1);
|
|
|
3329
3335
|
|
|
3330
3336
|
var styled_components_1 = __webpack_require__(4);
|
|
3331
3337
|
|
|
3332
|
-
var hocUtils_1 = __webpack_require__(
|
|
3338
|
+
var hocUtils_1 = __webpack_require__(7);
|
|
3333
3339
|
|
|
3334
3340
|
var Cover = styled_components_1.default.div.withConfig({
|
|
3335
3341
|
displayName: "withEditModeCover__Cover",
|
|
3336
3342
|
componentId: "sc-1gsbnxb-0"
|
|
3337
3343
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
3338
|
-
var Blocker = styled_components_1.default.div.
|
|
3344
|
+
var Blocker = styled_components_1.default.div.attrs({
|
|
3345
|
+
'data-splunk-visualization-version': "24.3.0 - 1c1ae4b3c"
|
|
3346
|
+
}).withConfig({
|
|
3339
3347
|
displayName: "withEditModeCover__Blocker",
|
|
3340
3348
|
componentId: "sc-1gsbnxb-1"
|
|
3341
3349
|
})(["position:relative;width:100%;height:100%;"]);
|
|
@@ -3346,10 +3354,11 @@ var Blocker = styled_components_1.default.div.withConfig({
|
|
|
3346
3354
|
* @returns {ExtendedDashViz} Wrapper
|
|
3347
3355
|
*/
|
|
3348
3356
|
|
|
3349
|
-
var withEditModeCover = function withEditModeCover(Visualization) {
|
|
3357
|
+
var withEditModeCover = function withEditModeCover(Visualization, disableEditModeCover) {
|
|
3350
3358
|
var Wrapper = function Wrapper(props) {
|
|
3351
3359
|
var mode = props.mode;
|
|
3352
|
-
|
|
3360
|
+
var showEditCover = mode === 'edit' && !disableEditModeCover;
|
|
3361
|
+
return React.createElement(Blocker, null, React.createElement(Visualization, Object.assign({}, props)), showEditCover && React.createElement(Cover, {
|
|
3353
3362
|
"data-test": "edit-mode-cover"
|
|
3354
3363
|
}));
|
|
3355
3364
|
};
|
|
@@ -3383,7 +3392,7 @@ var IconPlaceholder_1 = __webpack_require__(25);
|
|
|
3383
3392
|
|
|
3384
3393
|
var VizBehavior_1 = __webpack_require__(5);
|
|
3385
3394
|
|
|
3386
|
-
var hocUtils_1 = __webpack_require__(
|
|
3395
|
+
var hocUtils_1 = __webpack_require__(7);
|
|
3387
3396
|
|
|
3388
3397
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
3389
3398
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -3460,7 +3469,7 @@ module.exports = require("@splunk/visualizations-shared/domUtils");
|
|
|
3460
3469
|
|
|
3461
3470
|
/***/ }),
|
|
3462
3471
|
|
|
3463
|
-
/***/
|
|
3472
|
+
/***/ 49:
|
|
3464
3473
|
/***/ (function(module, exports) {
|
|
3465
3474
|
|
|
3466
3475
|
module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
|
|
@@ -3505,7 +3514,7 @@ var VizBehavior;
|
|
|
3505
3514
|
|
|
3506
3515
|
/***/ }),
|
|
3507
3516
|
|
|
3508
|
-
/***/
|
|
3517
|
+
/***/ 59:
|
|
3509
3518
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3510
3519
|
|
|
3511
3520
|
"use strict";
|
|
@@ -3535,7 +3544,7 @@ VizStyleWrapper.displayName = 'VizStyleWrapper';
|
|
|
3535
3544
|
"use strict";
|
|
3536
3545
|
|
|
3537
3546
|
|
|
3538
|
-
var _defineProperty = __webpack_require__(
|
|
3547
|
+
var _defineProperty = __webpack_require__(8);
|
|
3539
3548
|
|
|
3540
3549
|
var __rest = this && this.__rest || function (s, e) {
|
|
3541
3550
|
var t = {};
|
|
@@ -3721,7 +3730,7 @@ exports.generatePrecisionValues = generatePrecisionValues;
|
|
|
3721
3730
|
|
|
3722
3731
|
/***/ }),
|
|
3723
3732
|
|
|
3724
|
-
/***/
|
|
3733
|
+
/***/ 62:
|
|
3725
3734
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
3726
3735
|
|
|
3727
3736
|
"use strict";
|
|
@@ -3748,14 +3757,14 @@ var external_styled_components_ = __webpack_require__(4);
|
|
|
3748
3757
|
var external_styled_components_default = /*#__PURE__*/__webpack_require__.n(external_styled_components_);
|
|
3749
3758
|
|
|
3750
3759
|
// EXTERNAL MODULE: ./src/common/utils/singleValueUtils.js
|
|
3751
|
-
var singleValueUtils = __webpack_require__(
|
|
3760
|
+
var singleValueUtils = __webpack_require__(17);
|
|
3752
3761
|
|
|
3753
3762
|
// EXTERNAL MODULE: external "@splunk/react-icons/ArrowUp"
|
|
3754
|
-
var ArrowUp_ = __webpack_require__(
|
|
3763
|
+
var ArrowUp_ = __webpack_require__(65);
|
|
3755
3764
|
var ArrowUp_default = /*#__PURE__*/__webpack_require__.n(ArrowUp_);
|
|
3756
3765
|
|
|
3757
3766
|
// EXTERNAL MODULE: external "@splunk/react-icons/ArrowDown"
|
|
3758
|
-
var ArrowDown_ = __webpack_require__(
|
|
3767
|
+
var ArrowDown_ = __webpack_require__(66);
|
|
3759
3768
|
var ArrowDown_default = /*#__PURE__*/__webpack_require__.n(ArrowDown_);
|
|
3760
3769
|
|
|
3761
3770
|
// CONCATENATED MODULE: ./src/SingleValueBasic/TrendValue.jsx
|
|
@@ -3825,7 +3834,7 @@ TrendValue_SingleValueContent.propTypes = {
|
|
|
3825
3834
|
};
|
|
3826
3835
|
/* harmony default export */ var TrendValue = (TrendValue_SingleValueContent);
|
|
3827
3836
|
// EXTERNAL MODULE: external "cssesc"
|
|
3828
|
-
var external_cssesc_ = __webpack_require__(
|
|
3837
|
+
var external_cssesc_ = __webpack_require__(67);
|
|
3829
3838
|
var external_cssesc_default = /*#__PURE__*/__webpack_require__.n(external_cssesc_);
|
|
3830
3839
|
|
|
3831
3840
|
// CONCATENATED MODULE: ./src/SingleValueBasic/MajorValue.jsx
|
|
@@ -4010,42 +4019,42 @@ var SingleValueTrendValue = TrendValue;
|
|
|
4010
4019
|
|
|
4011
4020
|
/***/ }),
|
|
4012
4021
|
|
|
4013
|
-
/***/
|
|
4022
|
+
/***/ 63:
|
|
4014
4023
|
/***/ (function(module, exports) {
|
|
4015
4024
|
|
|
4016
4025
|
module.exports = require("lodash/pick");
|
|
4017
4026
|
|
|
4018
4027
|
/***/ }),
|
|
4019
4028
|
|
|
4020
|
-
/***/
|
|
4029
|
+
/***/ 64:
|
|
4021
4030
|
/***/ (function(module, exports) {
|
|
4022
4031
|
|
|
4023
4032
|
module.exports = require("lodash/isEmpty");
|
|
4024
4033
|
|
|
4025
4034
|
/***/ }),
|
|
4026
4035
|
|
|
4027
|
-
/***/
|
|
4036
|
+
/***/ 65:
|
|
4028
4037
|
/***/ (function(module, exports) {
|
|
4029
4038
|
|
|
4030
4039
|
module.exports = require("@splunk/react-icons/ArrowUp");
|
|
4031
4040
|
|
|
4032
4041
|
/***/ }),
|
|
4033
4042
|
|
|
4034
|
-
/***/
|
|
4043
|
+
/***/ 66:
|
|
4035
4044
|
/***/ (function(module, exports) {
|
|
4036
4045
|
|
|
4037
4046
|
module.exports = require("@splunk/react-icons/ArrowDown");
|
|
4038
4047
|
|
|
4039
4048
|
/***/ }),
|
|
4040
4049
|
|
|
4041
|
-
/***/
|
|
4050
|
+
/***/ 67:
|
|
4042
4051
|
/***/ (function(module, exports) {
|
|
4043
4052
|
|
|
4044
4053
|
module.exports = require("cssesc");
|
|
4045
4054
|
|
|
4046
4055
|
/***/ }),
|
|
4047
4056
|
|
|
4048
|
-
/***/
|
|
4057
|
+
/***/ 68:
|
|
4049
4058
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4050
4059
|
|
|
4051
4060
|
"use strict";
|
|
@@ -4070,13 +4079,79 @@ var StaticBackgroundColorEditor = {
|
|
|
4070
4079
|
/***/ }),
|
|
4071
4080
|
|
|
4072
4081
|
/***/ 7:
|
|
4073
|
-
/***/ (function(module, exports) {
|
|
4082
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4074
4083
|
|
|
4075
|
-
|
|
4084
|
+
"use strict";
|
|
4085
|
+
|
|
4086
|
+
|
|
4087
|
+
var _typeof = __webpack_require__(20);
|
|
4088
|
+
|
|
4089
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4090
|
+
value: true
|
|
4091
|
+
});
|
|
4092
|
+
exports.deepMergeWithArrayOverrides = exports.extendStaticWrapperProps = void 0;
|
|
4093
|
+
|
|
4094
|
+
var lodash_1 = __webpack_require__(2);
|
|
4095
|
+
/**
|
|
4096
|
+
* @method extendStaticWrapperProps
|
|
4097
|
+
* @param {Object} props
|
|
4098
|
+
* @param {DashboardVizType} props.Wrapper
|
|
4099
|
+
* @param {DashboardVizType} props.Visualization
|
|
4100
|
+
*/
|
|
4101
|
+
|
|
4102
|
+
|
|
4103
|
+
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
4104
|
+
var Wrapper = _ref.Wrapper,
|
|
4105
|
+
Visualization = _ref.Visualization;
|
|
4106
|
+
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
4107
|
+
extendProperties.forEach(function (prop) {
|
|
4108
|
+
if (Visualization[prop]) {
|
|
4109
|
+
// eslint-disable-next-line no-param-reassign
|
|
4110
|
+
Wrapper[prop] = Visualization[prop];
|
|
4111
|
+
}
|
|
4112
|
+
});
|
|
4113
|
+
};
|
|
4114
|
+
|
|
4115
|
+
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
4116
|
+
/**
|
|
4117
|
+
* helper to deeply merge objects while preserving arrays in earlier source objects
|
|
4118
|
+
* 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
|
|
4119
|
+
* this prevents default arrays from appending values to user-defined arrays (this occurs if the default array is longer than the user-defined one)
|
|
4120
|
+
*
|
|
4121
|
+
* @method deepMergeWithArrayOverrides
|
|
4122
|
+
* @param {Object} initial - target object to merge values into
|
|
4123
|
+
* @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
|
|
4124
|
+
*
|
|
4125
|
+
* @returns {Object}
|
|
4126
|
+
*/
|
|
4127
|
+
|
|
4128
|
+
var deepMergeWithArrayOverrides = function deepMergeWithArrayOverrides(initial) {
|
|
4129
|
+
var clone = lodash_1.cloneDeep(initial);
|
|
4130
|
+
|
|
4131
|
+
for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
4132
|
+
sources[_key - 1] = arguments[_key];
|
|
4133
|
+
}
|
|
4134
|
+
|
|
4135
|
+
sources.forEach(function (sourceToApply) {
|
|
4136
|
+
Object.keys(sourceToApply).forEach(function (sourceKey) {
|
|
4137
|
+
if (!Object.prototype.hasOwnProperty.call(clone, sourceKey)) {
|
|
4138
|
+
clone[sourceKey] = lodash_1.cloneDeep(sourceToApply[sourceKey]);
|
|
4139
|
+
} // object merging excluding arrays
|
|
4140
|
+
|
|
4141
|
+
|
|
4142
|
+
if (clone[sourceKey] && _typeof(clone[sourceKey]) === 'object' && !Array.isArray(clone[sourceKey]) && _typeof(sourceToApply[sourceKey]) === 'object') {
|
|
4143
|
+
clone[sourceKey] = exports.deepMergeWithArrayOverrides(clone[sourceKey], sourceToApply[sourceKey]);
|
|
4144
|
+
}
|
|
4145
|
+
});
|
|
4146
|
+
});
|
|
4147
|
+
return clone;
|
|
4148
|
+
};
|
|
4149
|
+
|
|
4150
|
+
exports.deepMergeWithArrayOverrides = deepMergeWithArrayOverrides;
|
|
4076
4151
|
|
|
4077
4152
|
/***/ }),
|
|
4078
4153
|
|
|
4079
|
-
/***/
|
|
4154
|
+
/***/ 76:
|
|
4080
4155
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4081
4156
|
|
|
4082
4157
|
"use strict";
|
|
@@ -4109,15 +4184,13 @@ var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
|
|
|
4109
4184
|
defaults: {
|
|
4110
4185
|
majorValue: defaultContext.majorColorConfig
|
|
4111
4186
|
}
|
|
4112
|
-
}
|
|
4113
|
-
|
|
4114
|
-
|
|
4115
|
-
|
|
4116
|
-
|
|
4117
|
-
|
|
4118
|
-
|
|
4119
|
-
// },
|
|
4120
|
-
],
|
|
4187
|
+
}, {
|
|
4188
|
+
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Matches'),
|
|
4189
|
+
value: 'matchValue',
|
|
4190
|
+
defaults: {
|
|
4191
|
+
majorValue: defaultContext.majorColorMatchConfig
|
|
4192
|
+
}
|
|
4193
|
+
}],
|
|
4121
4194
|
dataSelectors: [{
|
|
4122
4195
|
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major Value'),
|
|
4123
4196
|
value: 'majorValue'
|
|
@@ -4129,7 +4202,7 @@ var getDynamicMajorColorEditor = function getDynamicMajorColorEditor(_ref) {
|
|
|
4129
4202
|
|
|
4130
4203
|
/***/ }),
|
|
4131
4204
|
|
|
4132
|
-
/***/
|
|
4205
|
+
/***/ 77:
|
|
4133
4206
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4134
4207
|
|
|
4135
4208
|
"use strict";
|
|
@@ -4174,7 +4247,7 @@ var getDynamicTrendColorEditor = function getDynamicTrendColorEditor(_ref) {
|
|
|
4174
4247
|
|
|
4175
4248
|
/***/ }),
|
|
4176
4249
|
|
|
4177
|
-
/***/
|
|
4250
|
+
/***/ 78:
|
|
4178
4251
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4179
4252
|
|
|
4180
4253
|
"use strict";
|
|
@@ -4208,15 +4281,13 @@ var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_
|
|
|
4208
4281
|
majorValue: defaultContext.majorColorConfig,
|
|
4209
4282
|
trendValue: defaultContext.trendColorConfig
|
|
4210
4283
|
}
|
|
4211
|
-
}
|
|
4212
|
-
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4218
|
-
// },
|
|
4219
|
-
],
|
|
4284
|
+
}, {
|
|
4285
|
+
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Matches'),
|
|
4286
|
+
value: 'matchValue',
|
|
4287
|
+
defaults: {
|
|
4288
|
+
majorValue: defaultContext.majorColorMatchConfig
|
|
4289
|
+
}
|
|
4290
|
+
}],
|
|
4220
4291
|
dataSelectors: [{
|
|
4221
4292
|
label: Object(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__["_"])('Major Value'),
|
|
4222
4293
|
value: 'majorValue'
|
|
@@ -4231,7 +4302,7 @@ var getDynamicBackgroundColorEditor = function getDynamicBackgroundColorEditor(_
|
|
|
4231
4302
|
|
|
4232
4303
|
/***/ }),
|
|
4233
4304
|
|
|
4234
|
-
/***/
|
|
4305
|
+
/***/ 79:
|
|
4235
4306
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4236
4307
|
|
|
4237
4308
|
"use strict";
|
|
@@ -4255,7 +4326,14 @@ var StaticMajorColorEditor = {
|
|
|
4255
4326
|
|
|
4256
4327
|
/***/ }),
|
|
4257
4328
|
|
|
4258
|
-
/***/
|
|
4329
|
+
/***/ 8:
|
|
4330
|
+
/***/ (function(module, exports) {
|
|
4331
|
+
|
|
4332
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
4333
|
+
|
|
4334
|
+
/***/ }),
|
|
4335
|
+
|
|
4336
|
+
/***/ 80:
|
|
4259
4337
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
4260
4338
|
|
|
4261
4339
|
"use strict";
|
|
@@ -4283,79 +4361,6 @@ var StaticTrendColorEditor = {
|
|
|
4283
4361
|
|
|
4284
4362
|
/***/ }),
|
|
4285
4363
|
|
|
4286
|
-
/***/ 8:
|
|
4287
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
4288
|
-
|
|
4289
|
-
"use strict";
|
|
4290
|
-
|
|
4291
|
-
|
|
4292
|
-
var _typeof = __webpack_require__(22);
|
|
4293
|
-
|
|
4294
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4295
|
-
value: true
|
|
4296
|
-
});
|
|
4297
|
-
exports.deepMergeWithArrayOverrides = exports.extendStaticWrapperProps = void 0;
|
|
4298
|
-
|
|
4299
|
-
var lodash_1 = __webpack_require__(2);
|
|
4300
|
-
/**
|
|
4301
|
-
* @method extendStaticWrapperProps
|
|
4302
|
-
* @param {Object} props
|
|
4303
|
-
* @param {DashboardVizType} props.Wrapper
|
|
4304
|
-
* @param {DashboardVizType} props.Visualization
|
|
4305
|
-
*/
|
|
4306
|
-
|
|
4307
|
-
|
|
4308
|
-
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
4309
|
-
var Wrapper = _ref.Wrapper,
|
|
4310
|
-
Visualization = _ref.Visualization;
|
|
4311
|
-
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
4312
|
-
extendProperties.forEach(function (prop) {
|
|
4313
|
-
if (Visualization[prop]) {
|
|
4314
|
-
// eslint-disable-next-line no-param-reassign
|
|
4315
|
-
Wrapper[prop] = Visualization[prop];
|
|
4316
|
-
}
|
|
4317
|
-
});
|
|
4318
|
-
};
|
|
4319
|
-
|
|
4320
|
-
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
4321
|
-
/**
|
|
4322
|
-
* helper to deeply merge objects while preserving arrays in earlier source objects
|
|
4323
|
-
* 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
|
|
4324
|
-
* this prevents default arrays from appending values to user-defined arrays (this occurs if the default array is longer than the user-defined one)
|
|
4325
|
-
*
|
|
4326
|
-
* @method deepMergeWithArrayOverrides
|
|
4327
|
-
* @param {Object} initial - target object to merge values into
|
|
4328
|
-
* @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
|
|
4329
|
-
*
|
|
4330
|
-
* @returns {Object}
|
|
4331
|
-
*/
|
|
4332
|
-
|
|
4333
|
-
var deepMergeWithArrayOverrides = function deepMergeWithArrayOverrides(initial) {
|
|
4334
|
-
var clone = lodash_1.cloneDeep(initial);
|
|
4335
|
-
|
|
4336
|
-
for (var _len = arguments.length, sources = new Array(_len > 1 ? _len - 1 : 0), _key = 1; _key < _len; _key++) {
|
|
4337
|
-
sources[_key - 1] = arguments[_key];
|
|
4338
|
-
}
|
|
4339
|
-
|
|
4340
|
-
sources.forEach(function (sourceToApply) {
|
|
4341
|
-
Object.keys(sourceToApply).forEach(function (sourceKey) {
|
|
4342
|
-
if (!Object.prototype.hasOwnProperty.call(clone, sourceKey)) {
|
|
4343
|
-
clone[sourceKey] = lodash_1.cloneDeep(sourceToApply[sourceKey]);
|
|
4344
|
-
} // object merging excluding arrays
|
|
4345
|
-
|
|
4346
|
-
|
|
4347
|
-
if (clone[sourceKey] && _typeof(clone[sourceKey]) === 'object' && !Array.isArray(clone[sourceKey]) && _typeof(sourceToApply[sourceKey]) === 'object') {
|
|
4348
|
-
clone[sourceKey] = exports.deepMergeWithArrayOverrides(clone[sourceKey], sourceToApply[sourceKey]);
|
|
4349
|
-
}
|
|
4350
|
-
});
|
|
4351
|
-
});
|
|
4352
|
-
return clone;
|
|
4353
|
-
};
|
|
4354
|
-
|
|
4355
|
-
exports.deepMergeWithArrayOverrides = deepMergeWithArrayOverrides;
|
|
4356
|
-
|
|
4357
|
-
/***/ }),
|
|
4358
|
-
|
|
4359
4364
|
/***/ 9:
|
|
4360
4365
|
/***/ (function(module, exports) {
|
|
4361
4366
|
|