@splunk/visualizations 25.6.0 → 25.7.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_VisualizationEditors_Editors_Bar_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_ChoroplethSvg_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Column_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Ellipse_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_FillerGauge_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_LinkGraph_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Map_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Parallel_Coordinates_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Pie_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Rectangle_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Icon_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Single_Value_Radial_Editor.png +0 -0
- package/.loki/reference/chrome_docker_VisualizationEditors_Editors_Table_Editor.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Bar_Bar_Legend_Mode_Series_Compare.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Column_Column_Legend_Mode_Series_Compare.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_Pagination.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_background_color.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_chart_cmd_count_by_status.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_chart_cmd_count_by_status_user.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_chart_cmd_count_by_status_user_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_chart_cmd_max_count_avg_count_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_chart_cmd_max_count_avg_count_by_status_user_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_layout_options.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_makeresults_name_age.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_makeresults_name_age_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_stats_cmd_avg_count_max_count_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_stats_cmd_avg_count_max_count_by_status_user_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_stats_cmd_count_by_status_user.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_stats_cmd_count_by_status_user_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_table.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_table_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_timechart_cmd_count_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_timechart_cmd_count_by_status.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_timechart_cmd_count_by_status_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Icon_Single_Value_Icon_Basic_Single_Value_Icon_Trellis_timechart_cmd_max_count_avg_count_by_status_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_Chart.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_Chart_Count.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_Pagination.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_Timechart.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_background_color.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_chart_cmd_count_by_status_user_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_chart_cmd_max_count_avg_count_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_chart_cmd_max_count_avg_count_by_status_user_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_layout_options.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_makeresults_name_age.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_makeresults_name_age_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_stats_cmd_avg_count_max_count_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_stats_cmd_count_by_status_user.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_stats_cmd_count_by_status_user_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_table.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_table_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_timechart_cmd_count_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_timechart_cmd_count_by_status_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Radial_Trellis_timechart_cmd_max_count_avg_count_by_status_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Radial_Single_Value_Radial_Basic_Single_Value_Trellis_stats_cmd_avg_count_max_count_by_status_user_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_Pagination.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_assign_default_trellisSplitBy_value_status.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_background_color.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_chart_cmd_avg_count_max_count_by_status.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_chart_cmd_avg_count_max_count_by_status_value_by_max_count.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_chart_cmd_count_by_status.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_chart_cmd_count_by_status_user.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_chart_cmd_count_by_status_user_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_chart_cmd_count_by_status_user_user.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_chart_cmd_max_count_avg_count_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_chart_cmd_max_count_avg_count_by_status_user.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_chart_cmd_max_count_avg_count_by_status_user_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_chart_cmd_max_count_avg_count_by_status_user_user.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_layout_options.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_makeresults_name_age.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_makeresults_name_age_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_stats_cmd_avg_count_max_count_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_stats_cmd_avg_count_max_count_by_status.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_stats_cmd_avg_count_max_count_by_status_user_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_stats_cmd_avg_count_max_count_by_status_value_by_max_count.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_stats_cmd_count_by_status_user.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_stats_cmd_count_by_status_user_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_table.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_table_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_timechart_cmd_count_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_timechart_cmd_count_by_status.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_timechart_cmd_count_by_status_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_timechart_cmd_max_count_avg_count_by_status.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Basic_Single_Value_Trellis_timechart_cmd_max_count_avg_count_by_status_aggregations.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Major_value_data_null_show_N_A.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Single_Value_Single_Value_Set_The_Background_Color_Based_On_The_Major_Value_Trellis.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_Height_Percentage_50_no_paginator.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/Area.config.js +12 -7
- package/Area.config.js.map +1 -1
- package/Area.js +192 -171
- package/Area.js.map +1 -1
- package/Bar.config.js +36 -8
- package/Bar.config.js.map +1 -1
- package/Bar.js +216 -172
- package/Bar.js.map +1 -1
- package/Bubble.config.js +7 -2
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +183 -162
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +12 -8
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +191 -174
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +36 -8
- package/Column.config.js.map +1 -1
- package/Column.js +216 -172
- package/Column.js.map +1 -1
- package/Ellipse.config.js +23 -20
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +168 -149
- package/Ellipse.js.map +1 -1
- package/Events.config.js +79 -19
- package/Events.config.js.map +1 -1
- package/Events.js +404 -244
- package/Events.js.map +1 -1
- package/FEATUREFLAGS.md +40 -0
- package/FillerGauge.config.js +22 -19
- package/FillerGauge.config.js.map +1 -1
- package/FillerGauge.js +170 -151
- package/FillerGauge.js.map +1 -1
- package/Image.config.js +3 -3
- package/Image.config.js.map +1 -1
- package/Image.js +143 -130
- package/Image.js.map +1 -1
- package/LICENSE.md +444 -8
- package/Line.config.js +12 -7
- package/Line.config.js.map +1 -1
- package/Line.js +192 -171
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +9 -15
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +743 -729
- package/LinkGraph.js.map +1 -1
- package/Map.config.js +51 -48
- package/Map.config.js.map +1 -1
- package/Map.js +602 -587
- package/Map.js.map +1 -1
- package/Markdown.config.js +10 -9
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +185 -171
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +71 -70
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +193 -179
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +3 -3
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +179 -155
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +30 -6
- package/Pie.config.js.map +1 -1
- package/Pie.js +237 -200
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +3 -2
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +305 -291
- package/Punchcard.js.map +1 -1
- package/Rectangle.config.js +22 -23
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +232 -220
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +14 -13
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +1311 -1297
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +552 -580
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +258 -244
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +242 -52
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +1456 -350
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +40 -29
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +267 -58
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +1490 -363
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +249 -41
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +1435 -286
- package/SingleValueRadial.js.map +1 -1
- package/TRELLIS.md +296 -0
- package/Table.config.js +39 -41
- package/Table.config.js.map +1 -1
- package/Table.js +352 -306
- package/Table.js.map +1 -1
- package/common/EventsDoc.js +9 -3
- package/common/EventsDoc.js.map +1 -1
- package/common/docUtils.js +1 -1
- package/common/docUtils.js.map +1 -1
- package/common/utils/configUtils.js +26 -20
- package/common/utils/configUtils.js.map +1 -1
- package/common/utils/dataUtils.js +2 -2
- package/common/utils/dataUtils.js.map +1 -1
- package/common/utils/hocUtils.js +2 -2
- package/common/utils/hocUtils.js.map +1 -1
- package/common/utils/layoutUtils.js +115 -0
- package/common/utils/layoutUtils.js.map +1 -0
- package/common/utils/mapUtils.js +1166 -23
- package/common/utils/mapUtils.js.map +1 -1
- package/common/utils/singleValueUtils.js +54 -46
- package/common/utils/singleValueUtils.js.map +1 -1
- package/common/utils/testHelper.js +14 -14
- package/common/utils/testHelper.js.map +1 -1
- package/common/utils/trellisUtils.js +612 -0
- package/common/utils/trellisUtils.js.map +1 -0
- package/common/withDashboardViz.js +31 -17
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +12 -12
package/Image.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 = 214);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -95,21 +95,21 @@ module.exports =
|
|
|
95
95
|
/***/ 0:
|
|
96
96
|
/***/ (function(module, exports) {
|
|
97
97
|
|
|
98
|
-
module.exports = require("
|
|
98
|
+
module.exports = require("react");
|
|
99
99
|
|
|
100
100
|
/***/ }),
|
|
101
101
|
|
|
102
102
|
/***/ 1:
|
|
103
103
|
/***/ (function(module, exports) {
|
|
104
104
|
|
|
105
|
-
module.exports = require("
|
|
105
|
+
module.exports = require("prop-types");
|
|
106
106
|
|
|
107
107
|
/***/ }),
|
|
108
108
|
|
|
109
109
|
/***/ 10:
|
|
110
110
|
/***/ (function(module, exports) {
|
|
111
111
|
|
|
112
|
-
module.exports = require("@splunk/
|
|
112
|
+
module.exports = require("@splunk/themes/variables");
|
|
113
113
|
|
|
114
114
|
/***/ }),
|
|
115
115
|
|
|
@@ -137,13 +137,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
137
137
|
value: true
|
|
138
138
|
});
|
|
139
139
|
|
|
140
|
-
var React = __webpack_require__(
|
|
140
|
+
var React = __webpack_require__(0);
|
|
141
141
|
|
|
142
142
|
var styled_components_1 = __webpack_require__(4);
|
|
143
143
|
|
|
144
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
144
|
+
var SizeAwareWrapper_1 = __webpack_require__(18);
|
|
145
145
|
|
|
146
|
-
var style_1 = __webpack_require__(
|
|
146
|
+
var style_1 = __webpack_require__(14);
|
|
147
147
|
|
|
148
148
|
var colorUtils_1 = __webpack_require__(12);
|
|
149
149
|
|
|
@@ -202,7 +202,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
202
202
|
|
|
203
203
|
return React.createElement(FixSizeItem, {
|
|
204
204
|
"data-test": "fix-size-item",
|
|
205
|
-
"data-splunk-visualization-version": "25.
|
|
205
|
+
"data-splunk-visualization-version": "25.7.0 - d10a7789b",
|
|
206
206
|
width: width,
|
|
207
207
|
height: height,
|
|
208
208
|
backgroundColor: backgroundColor
|
|
@@ -225,39 +225,13 @@ exports.default = withFixedSizeContainer;
|
|
|
225
225
|
/***/ }),
|
|
226
226
|
|
|
227
227
|
/***/ 14:
|
|
228
|
-
/***/ (function(module, exports
|
|
229
|
-
|
|
230
|
-
"use strict";
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
Object.defineProperty(exports, "__esModule", {
|
|
234
|
-
value: true
|
|
235
|
-
});
|
|
236
|
-
exports.extendStaticWrapperProps = void 0;
|
|
237
|
-
/**
|
|
238
|
-
* @method extendStaticWrapperProps
|
|
239
|
-
* @param {Object} props
|
|
240
|
-
* @param {DashboardVizType} props.Wrapper
|
|
241
|
-
* @param {DashboardVizType} props.Visualization
|
|
242
|
-
*/
|
|
243
|
-
|
|
244
|
-
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
245
|
-
var Wrapper = _ref.Wrapper,
|
|
246
|
-
Visualization = _ref.Visualization;
|
|
247
|
-
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
248
|
-
extendProperties.forEach(function (prop) {
|
|
249
|
-
if (Visualization[prop]) {
|
|
250
|
-
// eslint-disable-next-line no-param-reassign
|
|
251
|
-
Wrapper[prop] = Visualization[prop];
|
|
252
|
-
}
|
|
253
|
-
});
|
|
254
|
-
};
|
|
228
|
+
/***/ (function(module, exports) {
|
|
255
229
|
|
|
256
|
-
exports
|
|
230
|
+
module.exports = require("@splunk/visualizations-shared/style");
|
|
257
231
|
|
|
258
232
|
/***/ }),
|
|
259
233
|
|
|
260
|
-
/***/
|
|
234
|
+
/***/ 149:
|
|
261
235
|
/***/ (function(module, exports, __webpack_require__) {
|
|
262
236
|
|
|
263
237
|
"use strict";
|
|
@@ -283,25 +257,25 @@ exports.config = exports.themes = exports.toImageDimensions = exports.shouldShow
|
|
|
283
257
|
|
|
284
258
|
var lodash_1 = __webpack_require__(3);
|
|
285
259
|
|
|
286
|
-
var React = __webpack_require__(
|
|
260
|
+
var React = __webpack_require__(0);
|
|
287
261
|
|
|
288
262
|
var i18n_1 = __webpack_require__(2);
|
|
289
263
|
|
|
290
|
-
var style_1 = __webpack_require__(
|
|
264
|
+
var style_1 = __webpack_require__(14);
|
|
291
265
|
|
|
292
|
-
var RemoteImage_1 = __webpack_require__(
|
|
266
|
+
var RemoteImage_1 = __webpack_require__(150);
|
|
293
267
|
|
|
294
268
|
var styled_components_1 = __webpack_require__(4);
|
|
295
269
|
|
|
296
|
-
var T = __webpack_require__(
|
|
270
|
+
var T = __webpack_require__(1);
|
|
297
271
|
|
|
298
|
-
var config_1 = __webpack_require__(
|
|
272
|
+
var config_1 = __webpack_require__(215);
|
|
299
273
|
|
|
300
274
|
exports.config = config_1.default;
|
|
301
275
|
|
|
302
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
276
|
+
var withDashboardViz_1 = __webpack_require__(36);
|
|
303
277
|
|
|
304
|
-
var ImageApi_1 = __webpack_require__(
|
|
278
|
+
var ImageApi_1 = __webpack_require__(216);
|
|
305
279
|
|
|
306
280
|
var useEffect = React.useEffect,
|
|
307
281
|
useRef = React.useRef;
|
|
@@ -438,17 +412,43 @@ exports.default = Image;
|
|
|
438
412
|
|
|
439
413
|
/***/ }),
|
|
440
414
|
|
|
441
|
-
/***/
|
|
442
|
-
/***/ (function(module, exports) {
|
|
415
|
+
/***/ 15:
|
|
416
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
443
417
|
|
|
444
|
-
|
|
418
|
+
"use strict";
|
|
419
|
+
|
|
420
|
+
|
|
421
|
+
Object.defineProperty(exports, "__esModule", {
|
|
422
|
+
value: true
|
|
423
|
+
});
|
|
424
|
+
exports.extendStaticWrapperProps = void 0;
|
|
425
|
+
/**
|
|
426
|
+
* @method extendStaticWrapperProps
|
|
427
|
+
* @param {Object} props
|
|
428
|
+
* @param {DashboardVizType} props.Wrapper
|
|
429
|
+
* @param {DashboardVizType} props.Visualization
|
|
430
|
+
*/
|
|
431
|
+
|
|
432
|
+
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
433
|
+
var Wrapper = _ref.Wrapper,
|
|
434
|
+
Visualization = _ref.Visualization;
|
|
435
|
+
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
436
|
+
extendProperties.forEach(function (prop) {
|
|
437
|
+
if (Visualization[prop]) {
|
|
438
|
+
// eslint-disable-next-line no-param-reassign
|
|
439
|
+
Wrapper[prop] = Visualization[prop];
|
|
440
|
+
}
|
|
441
|
+
});
|
|
442
|
+
};
|
|
443
|
+
|
|
444
|
+
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
445
445
|
|
|
446
446
|
/***/ }),
|
|
447
447
|
|
|
448
|
-
/***/
|
|
448
|
+
/***/ 150:
|
|
449
449
|
/***/ (function(module, exports) {
|
|
450
450
|
|
|
451
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
451
|
+
module.exports = require("@splunk/visualizations-shared/RemoteImage");
|
|
452
452
|
|
|
453
453
|
/***/ }),
|
|
454
454
|
|
|
@@ -467,14 +467,21 @@ module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
|
467
467
|
/***/ }),
|
|
468
468
|
|
|
469
469
|
/***/ 18:
|
|
470
|
+
/***/ (function(module, exports) {
|
|
471
|
+
|
|
472
|
+
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
473
|
+
|
|
474
|
+
/***/ }),
|
|
475
|
+
|
|
476
|
+
/***/ 19:
|
|
470
477
|
/***/ (function(module, exports, __webpack_require__) {
|
|
471
478
|
|
|
472
479
|
"use strict";
|
|
473
480
|
|
|
474
481
|
|
|
475
|
-
var _toConsumableArray = __webpack_require__(
|
|
482
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
476
483
|
|
|
477
|
-
var _defineProperty = __webpack_require__(
|
|
484
|
+
var _defineProperty = __webpack_require__(8);
|
|
478
485
|
|
|
479
486
|
var __rest = this && this.__rest || function (s, e) {
|
|
480
487
|
var t = {};
|
|
@@ -713,11 +720,11 @@ module.exports = require("@splunk/ui-utils/i18n");
|
|
|
713
720
|
/***/ 20:
|
|
714
721
|
/***/ (function(module, exports) {
|
|
715
722
|
|
|
716
|
-
module.exports = require("@
|
|
723
|
+
module.exports = require("@splunk/visualization-context/FeatureFlagContext");
|
|
717
724
|
|
|
718
725
|
/***/ }),
|
|
719
726
|
|
|
720
|
-
/***/
|
|
727
|
+
/***/ 214:
|
|
721
728
|
/***/ (function(module, exports, __webpack_require__) {
|
|
722
729
|
|
|
723
730
|
"use strict";
|
|
@@ -747,9 +754,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
747
754
|
});
|
|
748
755
|
exports.default = void 0;
|
|
749
756
|
|
|
750
|
-
__exportStar(__webpack_require__(
|
|
757
|
+
__exportStar(__webpack_require__(149), exports);
|
|
751
758
|
|
|
752
|
-
var Image_1 = __webpack_require__(
|
|
759
|
+
var Image_1 = __webpack_require__(149);
|
|
753
760
|
|
|
754
761
|
Object.defineProperty(exports, "default", {
|
|
755
762
|
enumerable: true,
|
|
@@ -760,7 +767,7 @@ Object.defineProperty(exports, "default", {
|
|
|
760
767
|
|
|
761
768
|
/***/ }),
|
|
762
769
|
|
|
763
|
-
/***/
|
|
770
|
+
/***/ 215:
|
|
764
771
|
/***/ (function(module, exports, __webpack_require__) {
|
|
765
772
|
|
|
766
773
|
"use strict";
|
|
@@ -776,9 +783,9 @@ var visualization_icons_1 = __webpack_require__(51);
|
|
|
776
783
|
|
|
777
784
|
var VizBehavior_1 = __webpack_require__(6);
|
|
778
785
|
|
|
779
|
-
var VizCategory_1 = __webpack_require__(
|
|
786
|
+
var VizCategory_1 = __webpack_require__(35);
|
|
780
787
|
|
|
781
|
-
var configUtils_1 = __webpack_require__(
|
|
788
|
+
var configUtils_1 = __webpack_require__(19);
|
|
782
789
|
|
|
783
790
|
var dataContract = {
|
|
784
791
|
requiredDataSources: [],
|
|
@@ -816,7 +823,6 @@ var editorConfig = [{
|
|
|
816
823
|
label: i18n_1._('Preserve aspect ratio'),
|
|
817
824
|
option: 'preserveAspectRatio',
|
|
818
825
|
editor: 'editor.checkbox',
|
|
819
|
-
editorProps: {},
|
|
820
826
|
showEditor: function showEditor(_ref) {
|
|
821
827
|
var options = _ref.options;
|
|
822
828
|
return !!options.src;
|
|
@@ -861,7 +867,7 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
861
867
|
|
|
862
868
|
/***/ }),
|
|
863
869
|
|
|
864
|
-
/***/
|
|
870
|
+
/***/ 216:
|
|
865
871
|
/***/ (function(module, exports, __webpack_require__) {
|
|
866
872
|
|
|
867
873
|
"use strict";
|
|
@@ -869,7 +875,7 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
869
875
|
|
|
870
876
|
var _classCallCheck = __webpack_require__(11);
|
|
871
877
|
|
|
872
|
-
var _createClass = __webpack_require__(
|
|
878
|
+
var _createClass = __webpack_require__(22);
|
|
873
879
|
|
|
874
880
|
Object.defineProperty(exports, "__esModule", {
|
|
875
881
|
value: true
|
|
@@ -877,7 +883,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
877
883
|
|
|
878
884
|
var lodash_1 = __webpack_require__(3);
|
|
879
885
|
|
|
880
|
-
var RemoteImage_1 = __webpack_require__(
|
|
886
|
+
var RemoteImage_1 = __webpack_require__(150);
|
|
881
887
|
/**
|
|
882
888
|
* Image Api
|
|
883
889
|
*/
|
|
@@ -922,14 +928,14 @@ exports.default = ImageApi;
|
|
|
922
928
|
|
|
923
929
|
/***/ }),
|
|
924
930
|
|
|
925
|
-
/***/
|
|
931
|
+
/***/ 22:
|
|
926
932
|
/***/ (function(module, exports) {
|
|
927
933
|
|
|
928
|
-
module.exports = require("@
|
|
934
|
+
module.exports = require("@babel/runtime/helpers/createClass");
|
|
929
935
|
|
|
930
936
|
/***/ }),
|
|
931
937
|
|
|
932
|
-
/***/
|
|
938
|
+
/***/ 25:
|
|
933
939
|
/***/ (function(module, exports) {
|
|
934
940
|
|
|
935
941
|
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
@@ -939,21 +945,21 @@ module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
|
939
945
|
/***/ 26:
|
|
940
946
|
/***/ (function(module, exports) {
|
|
941
947
|
|
|
942
|
-
module.exports = require("@splunk/
|
|
948
|
+
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
943
949
|
|
|
944
950
|
/***/ }),
|
|
945
951
|
|
|
946
952
|
/***/ 27:
|
|
947
953
|
/***/ (function(module, exports) {
|
|
948
954
|
|
|
949
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
955
|
+
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
950
956
|
|
|
951
957
|
/***/ }),
|
|
952
958
|
|
|
953
|
-
/***/
|
|
959
|
+
/***/ 29:
|
|
954
960
|
/***/ (function(module, exports) {
|
|
955
961
|
|
|
956
|
-
module.exports = require("@splunk/
|
|
962
|
+
module.exports = require("@splunk/visualization-encoding/Options");
|
|
957
963
|
|
|
958
964
|
/***/ }),
|
|
959
965
|
|
|
@@ -964,7 +970,7 @@ module.exports = require("lodash");
|
|
|
964
970
|
|
|
965
971
|
/***/ }),
|
|
966
972
|
|
|
967
|
-
/***/
|
|
973
|
+
/***/ 31:
|
|
968
974
|
/***/ (function(module, exports, __webpack_require__) {
|
|
969
975
|
|
|
970
976
|
"use strict";
|
|
@@ -975,15 +981,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
975
981
|
});
|
|
976
982
|
exports.shouldShowIconPlaceholder = void 0;
|
|
977
983
|
|
|
978
|
-
var React = __webpack_require__(
|
|
984
|
+
var React = __webpack_require__(0);
|
|
979
985
|
|
|
980
|
-
var T = __webpack_require__(
|
|
986
|
+
var T = __webpack_require__(1);
|
|
981
987
|
|
|
982
988
|
var lodash_1 = __webpack_require__(3);
|
|
983
989
|
|
|
984
990
|
var i18n_1 = __webpack_require__(2);
|
|
985
991
|
|
|
986
|
-
var Message_1 = __webpack_require__(
|
|
992
|
+
var Message_1 = __webpack_require__(9);
|
|
987
993
|
|
|
988
994
|
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
989
995
|
/**
|
|
@@ -1056,27 +1062,27 @@ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
|
1056
1062
|
|
|
1057
1063
|
/***/ }),
|
|
1058
1064
|
|
|
1059
|
-
/***/
|
|
1065
|
+
/***/ 32:
|
|
1060
1066
|
/***/ (function(module, exports) {
|
|
1061
1067
|
|
|
1062
1068
|
module.exports = require("@splunk/ui-utils/id");
|
|
1063
1069
|
|
|
1064
1070
|
/***/ }),
|
|
1065
1071
|
|
|
1066
|
-
/***/
|
|
1072
|
+
/***/ 33:
|
|
1067
1073
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1068
1074
|
|
|
1069
1075
|
"use strict";
|
|
1070
1076
|
|
|
1071
1077
|
|
|
1072
|
-
var _defineProperty = __webpack_require__(
|
|
1078
|
+
var _defineProperty = __webpack_require__(8);
|
|
1073
1079
|
|
|
1074
1080
|
Object.defineProperty(exports, "__esModule", {
|
|
1075
1081
|
value: true
|
|
1076
1082
|
});
|
|
1077
1083
|
exports.getSortingParams = exports.SortParamsPropTypes = void 0;
|
|
1078
1084
|
|
|
1079
|
-
var T = __webpack_require__(
|
|
1085
|
+
var T = __webpack_require__(1);
|
|
1080
1086
|
|
|
1081
1087
|
var lodash_1 = __webpack_require__(3);
|
|
1082
1088
|
|
|
@@ -1100,7 +1106,7 @@ var getSortingParams = function getSortingParams(_ref) {
|
|
|
1100
1106
|
};
|
|
1101
1107
|
var onSort;
|
|
1102
1108
|
|
|
1103
|
-
if (
|
|
1109
|
+
if (typeof onRequestParamsChange === 'function') {
|
|
1104
1110
|
if (requestParams && lodash_1.has(requestParams, 'sort')) {
|
|
1105
1111
|
currentSortKey = Object.keys(requestParams.sort).shift();
|
|
1106
1112
|
currentSortDir = requestParams.sort[currentSortKey];
|
|
@@ -1134,7 +1140,7 @@ exports.getSortingParams = getSortingParams;
|
|
|
1134
1140
|
|
|
1135
1141
|
/***/ }),
|
|
1136
1142
|
|
|
1137
|
-
/***/
|
|
1143
|
+
/***/ 34:
|
|
1138
1144
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1139
1145
|
|
|
1140
1146
|
"use strict";
|
|
@@ -1145,7 +1151,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1145
1151
|
});
|
|
1146
1152
|
exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
|
|
1147
1153
|
|
|
1148
|
-
var T = __webpack_require__(
|
|
1154
|
+
var T = __webpack_require__(1);
|
|
1149
1155
|
|
|
1150
1156
|
var lodash_1 = __webpack_require__(3);
|
|
1151
1157
|
|
|
@@ -1165,7 +1171,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
1165
1171
|
var count = requestParams && requestParams.count;
|
|
1166
1172
|
var totalPages = typeof count === 'number' && count > 0 ? Math.ceil(totalCount / count) : 0;
|
|
1167
1173
|
var current = typeof count === 'number' && count > 0 ? Math.floor(offset / count) + 1 : 0;
|
|
1168
|
-
var isPaging = totalPages > 1 &&
|
|
1174
|
+
var isPaging = totalPages > 1 && typeof onRequestParamsChange === 'function';
|
|
1169
1175
|
|
|
1170
1176
|
var onChangeHandler = function onChangeHandler(e, _ref2) {
|
|
1171
1177
|
var page = _ref2.page,
|
|
@@ -1191,7 +1197,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
1191
1197
|
isPaging: isPaging,
|
|
1192
1198
|
current: current,
|
|
1193
1199
|
totalPages: totalPages,
|
|
1194
|
-
onChange:
|
|
1200
|
+
onChange: typeof onRequestParamsChange === 'function' ? onChangeHandler : lodash_1.noop
|
|
1195
1201
|
};
|
|
1196
1202
|
};
|
|
1197
1203
|
|
|
@@ -1199,7 +1205,7 @@ exports.getPaginationParams = getPaginationParams;
|
|
|
1199
1205
|
|
|
1200
1206
|
/***/ }),
|
|
1201
1207
|
|
|
1202
|
-
/***/
|
|
1208
|
+
/***/ 35:
|
|
1203
1209
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1204
1210
|
|
|
1205
1211
|
"use strict";
|
|
@@ -1228,7 +1234,7 @@ var VizCategory;
|
|
|
1228
1234
|
|
|
1229
1235
|
/***/ }),
|
|
1230
1236
|
|
|
1231
|
-
/***/
|
|
1237
|
+
/***/ 36:
|
|
1232
1238
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1233
1239
|
|
|
1234
1240
|
"use strict";
|
|
@@ -1240,39 +1246,39 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1240
1246
|
value: true
|
|
1241
1247
|
});
|
|
1242
1248
|
|
|
1243
|
-
var React = __webpack_require__(
|
|
1249
|
+
var React = __webpack_require__(0);
|
|
1244
1250
|
|
|
1245
1251
|
var lodash_1 = __webpack_require__(3);
|
|
1246
1252
|
|
|
1247
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
1253
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(37);
|
|
1248
1254
|
|
|
1249
|
-
var Options_1 = __webpack_require__(
|
|
1255
|
+
var Options_1 = __webpack_require__(29);
|
|
1250
1256
|
|
|
1251
1257
|
var SanitizeProps_1 = __webpack_require__(38);
|
|
1252
1258
|
|
|
1253
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
1259
|
+
var TimezoneContext_1 = __webpack_require__(25);
|
|
1254
1260
|
|
|
1255
1261
|
var moment_1 = __webpack_require__(39);
|
|
1256
1262
|
|
|
1257
|
-
var FeatureFlagContext_1 = __webpack_require__(
|
|
1263
|
+
var FeatureFlagContext_1 = __webpack_require__(20);
|
|
1258
1264
|
|
|
1259
1265
|
var styled_components_1 = __webpack_require__(4);
|
|
1260
1266
|
|
|
1261
|
-
var hocUtils_1 = __webpack_require__(
|
|
1267
|
+
var hocUtils_1 = __webpack_require__(26);
|
|
1262
1268
|
|
|
1263
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
1269
|
+
var JSONSchemaUtils_1 = __webpack_require__(27);
|
|
1264
1270
|
|
|
1265
1271
|
var async_dynamic_options_evaluator_1 = __webpack_require__(40);
|
|
1266
1272
|
|
|
1267
|
-
var id_1 = __webpack_require__(
|
|
1273
|
+
var id_1 = __webpack_require__(32);
|
|
1268
1274
|
|
|
1269
1275
|
var SplunkVisualization_1 = __webpack_require__(41);
|
|
1270
1276
|
|
|
1271
1277
|
var VizBehavior_1 = __webpack_require__(6);
|
|
1272
1278
|
|
|
1273
|
-
var getSorting_1 = __webpack_require__(
|
|
1279
|
+
var getSorting_1 = __webpack_require__(33);
|
|
1274
1280
|
|
|
1275
|
-
var getPagination_1 = __webpack_require__(
|
|
1281
|
+
var getPagination_1 = __webpack_require__(34);
|
|
1276
1282
|
|
|
1277
1283
|
var useDeepMemo_1 = __webpack_require__(44);
|
|
1278
1284
|
|
|
@@ -1301,6 +1307,8 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1301
1307
|
var defaultOptions = JSONSchemaUtils_1.pickFieldFromJSONSchema(vizConfig.optionsSchema, 'default');
|
|
1302
1308
|
|
|
1303
1309
|
var DashboardViz = function DashboardViz(props) {
|
|
1310
|
+
var _a;
|
|
1311
|
+
|
|
1304
1312
|
var mode = props.mode,
|
|
1305
1313
|
hasEventHandlers = props.hasEventHandlers,
|
|
1306
1314
|
dataSources = props.dataSources,
|
|
@@ -1360,7 +1368,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1360
1368
|
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
1361
1369
|
visualizationID = _React$useState4[0];
|
|
1362
1370
|
|
|
1363
|
-
var _React$useState5 = React.useState(Boolean(featureFlagContext && featureFlagContext
|
|
1371
|
+
var _React$useState5 = React.useState(Boolean(featureFlagContext && featureFlagContext.visualizations_useWebWorkersForDSL && typeof Worker !== 'undefined')),
|
|
1364
1372
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
1365
1373
|
useAsyncEvaluatedOptions = _React$useState6[0],
|
|
1366
1374
|
setUseAsyncEvaluatedOptions = _React$useState6[1];
|
|
@@ -1400,11 +1408,21 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1400
1408
|
|
|
1401
1409
|
return {};
|
|
1402
1410
|
}, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone, useAsyncEvaluatedOptions]);
|
|
1403
|
-
var evaluatedOptionsToUse = !useAsyncEvaluatedOptions ? evaluatedOptions : evaluatedOptionsAsync; //
|
|
1411
|
+
var evaluatedOptionsToUse = !useAsyncEvaluatedOptions ? evaluatedOptions : evaluatedOptionsAsync; // trellis specific backgroundColor update for onComputedProps
|
|
1412
|
+
// if trellis is enabled following these three criteria - 1) trellis feature flag is enabled 2) vizConfig supports array has 'trellis' 3) option 'splitByLayout' is set to 'trellis
|
|
1413
|
+
// onComputedProps api should return back trellisBackgroundColor value for backgroundColor option to support coloring of sibling panels (for eg:- title/ description on UDF side)
|
|
1414
|
+
|
|
1415
|
+
var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
|
|
1416
|
+
var clonedEvaluatedOptions = lodash_1.cloneDeep(evaluatedOptionsToUse);
|
|
1417
|
+
|
|
1418
|
+
if (isTrellisFeatureFlagOn && ((_a = vizConfig === null || vizConfig === void 0 ? void 0 : vizConfig.supports) === null || _a === void 0 ? void 0 : _a.includes(VizBehavior_1.VizBehavior.TRELLIS)) && (clonedEvaluatedOptions === null || clonedEvaluatedOptions === void 0 ? void 0 : clonedEvaluatedOptions.splitByLayout) === VizBehavior_1.VizBehavior.TRELLIS) {
|
|
1419
|
+
clonedEvaluatedOptions.backgroundColor = clonedEvaluatedOptions === null || clonedEvaluatedOptions === void 0 ? void 0 : clonedEvaluatedOptions.trellisBackgroundColor;
|
|
1420
|
+
} // useEffect hook needs to be initialized before any early returns
|
|
1404
1421
|
// this is in accordance with the order of hook calls being the same on each render https://reactjs.org/docs/hooks-rules.html#explanation
|
|
1405
1422
|
|
|
1423
|
+
|
|
1406
1424
|
React.useEffect(function () {
|
|
1407
|
-
onComputedProps(
|
|
1425
|
+
onComputedProps(clonedEvaluatedOptions);
|
|
1408
1426
|
});
|
|
1409
1427
|
React.useEffect(function () {
|
|
1410
1428
|
return function () {
|
|
@@ -1419,15 +1437,16 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1419
1437
|
supports = vizConfig.supports;
|
|
1420
1438
|
var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptionsToUse);
|
|
1421
1439
|
|
|
1422
|
-
if (missing.length > 0 && supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER)
|
|
1423
|
-
|
|
1424
|
-
|
|
1425
|
-
|
|
1426
|
-
|
|
1427
|
-
|
|
1428
|
-
|
|
1429
|
-
|
|
1430
|
-
|
|
1440
|
+
if (missing.length > 0 && supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && vizConfig.key !== 'splunk.singlevalue' // For SV missing props msg is not displayed if required props majorValue is missing, instead this will be handled from the component, instead handled within component
|
|
1441
|
+
) {
|
|
1442
|
+
return React.createElement(MissingPropsMessage_1.default, {
|
|
1443
|
+
"data-test": "missing-props-message",
|
|
1444
|
+
width: width,
|
|
1445
|
+
height: height,
|
|
1446
|
+
missingProps: missing,
|
|
1447
|
+
backgroundColor: bgColorFromTheme
|
|
1448
|
+
});
|
|
1449
|
+
} // events
|
|
1431
1450
|
|
|
1432
1451
|
|
|
1433
1452
|
var eventCallbackProps = {};
|
|
@@ -1531,17 +1550,10 @@ exports.default = withDashboardViz;
|
|
|
1531
1550
|
|
|
1532
1551
|
/***/ }),
|
|
1533
1552
|
|
|
1534
|
-
/***/ 36:
|
|
1535
|
-
/***/ (function(module, exports) {
|
|
1536
|
-
|
|
1537
|
-
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
1538
|
-
|
|
1539
|
-
/***/ }),
|
|
1540
|
-
|
|
1541
1553
|
/***/ 37:
|
|
1542
1554
|
/***/ (function(module, exports) {
|
|
1543
1555
|
|
|
1544
|
-
module.exports = require("@splunk/
|
|
1556
|
+
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
1545
1557
|
|
|
1546
1558
|
/***/ }),
|
|
1547
1559
|
|
|
@@ -1587,7 +1599,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1587
1599
|
exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
|
|
1588
1600
|
/* eslint-disable react/no-unused-prop-types,react/prefer-stateless-function */
|
|
1589
1601
|
|
|
1590
|
-
var T = __webpack_require__(
|
|
1602
|
+
var T = __webpack_require__(1);
|
|
1591
1603
|
|
|
1592
1604
|
var lodash_1 = __webpack_require__(3);
|
|
1593
1605
|
|
|
@@ -1733,7 +1745,7 @@ exports.default = SplunkVisualization;
|
|
|
1733
1745
|
|
|
1734
1746
|
var _classCallCheck = __webpack_require__(11);
|
|
1735
1747
|
|
|
1736
|
-
var _createClass = __webpack_require__(
|
|
1748
|
+
var _createClass = __webpack_require__(22);
|
|
1737
1749
|
|
|
1738
1750
|
Object.defineProperty(exports, "__esModule", {
|
|
1739
1751
|
value: true
|
|
@@ -1788,7 +1800,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1788
1800
|
});
|
|
1789
1801
|
exports.useDeepMemo = void 0;
|
|
1790
1802
|
|
|
1791
|
-
var react_1 = __webpack_require__(
|
|
1803
|
+
var react_1 = __webpack_require__(0);
|
|
1792
1804
|
|
|
1793
1805
|
var lodash_1 = __webpack_require__(3);
|
|
1794
1806
|
/**
|
|
@@ -1834,13 +1846,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1834
1846
|
});
|
|
1835
1847
|
exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
|
|
1836
1848
|
|
|
1837
|
-
var React = __webpack_require__(
|
|
1849
|
+
var React = __webpack_require__(0);
|
|
1838
1850
|
|
|
1839
|
-
var T = __webpack_require__(
|
|
1851
|
+
var T = __webpack_require__(1);
|
|
1840
1852
|
|
|
1841
1853
|
var i18n_1 = __webpack_require__(2);
|
|
1842
1854
|
|
|
1843
|
-
var Message_1 = __webpack_require__(
|
|
1855
|
+
var Message_1 = __webpack_require__(9);
|
|
1844
1856
|
|
|
1845
1857
|
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
1846
1858
|
/**
|
|
@@ -1914,18 +1926,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1914
1926
|
value: true
|
|
1915
1927
|
});
|
|
1916
1928
|
|
|
1917
|
-
var React = __webpack_require__(
|
|
1929
|
+
var React = __webpack_require__(0);
|
|
1918
1930
|
|
|
1919
1931
|
var styled_components_1 = __webpack_require__(4);
|
|
1920
1932
|
|
|
1921
|
-
var hocUtils_1 = __webpack_require__(
|
|
1933
|
+
var hocUtils_1 = __webpack_require__(15);
|
|
1922
1934
|
|
|
1923
1935
|
var Cover = styled_components_1.default.div.withConfig({
|
|
1924
1936
|
displayName: "withEditModeCover__Cover",
|
|
1925
1937
|
componentId: "sc-1gsbnxb-0"
|
|
1926
1938
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
1927
1939
|
var Blocker = styled_components_1.default.div.attrs({
|
|
1928
|
-
'data-splunk-visualization-version': "25.
|
|
1940
|
+
'data-splunk-visualization-version': "25.7.0 - d10a7789b"
|
|
1929
1941
|
}).withConfig({
|
|
1930
1942
|
displayName: "withEditModeCover__Blocker",
|
|
1931
1943
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -1967,17 +1979,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1967
1979
|
value: true
|
|
1968
1980
|
});
|
|
1969
1981
|
|
|
1970
|
-
var React = __webpack_require__(
|
|
1982
|
+
var React = __webpack_require__(0);
|
|
1971
1983
|
|
|
1972
1984
|
var colorUtils_1 = __webpack_require__(12);
|
|
1973
1985
|
|
|
1974
|
-
var variables_1 = __webpack_require__(
|
|
1986
|
+
var variables_1 = __webpack_require__(10);
|
|
1975
1987
|
|
|
1976
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
1988
|
+
var IconPlaceholder_1 = __webpack_require__(31);
|
|
1977
1989
|
|
|
1978
1990
|
var VizBehavior_1 = __webpack_require__(6);
|
|
1979
1991
|
|
|
1980
|
-
var hocUtils_1 = __webpack_require__(
|
|
1992
|
+
var hocUtils_1 = __webpack_require__(15);
|
|
1981
1993
|
|
|
1982
1994
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
1983
1995
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -2063,6 +2075,7 @@ var VizBehavior;
|
|
|
2063
2075
|
|
|
2064
2076
|
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
2065
2077
|
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
2078
|
+
VizBehavior["TRELLIS"] = "trellis";
|
|
2066
2079
|
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
2067
2080
|
|
|
2068
2081
|
/***/ }),
|
|
@@ -2070,21 +2083,21 @@ var VizBehavior;
|
|
|
2070
2083
|
/***/ 7:
|
|
2071
2084
|
/***/ (function(module, exports) {
|
|
2072
2085
|
|
|
2073
|
-
module.exports = require("@babel/runtime/helpers/
|
|
2086
|
+
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
2074
2087
|
|
|
2075
2088
|
/***/ }),
|
|
2076
2089
|
|
|
2077
2090
|
/***/ 8:
|
|
2078
2091
|
/***/ (function(module, exports) {
|
|
2079
2092
|
|
|
2080
|
-
module.exports = require("@babel/runtime/helpers/
|
|
2093
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
2081
2094
|
|
|
2082
2095
|
/***/ }),
|
|
2083
2096
|
|
|
2084
2097
|
/***/ 9:
|
|
2085
2098
|
/***/ (function(module, exports) {
|
|
2086
2099
|
|
|
2087
|
-
module.exports = require("@splunk/
|
|
2100
|
+
module.exports = require("@splunk/visualizations-shared/Message");
|
|
2088
2101
|
|
|
2089
2102
|
/***/ })
|
|
2090
2103
|
|