@splunk/visualizations 25.6.0 → 25.7.1
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/.loki/reference/chrome_docker_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/Table.js
CHANGED
|
@@ -87,7 +87,7 @@ module.exports =
|
|
|
87
87
|
/******/
|
|
88
88
|
/******/
|
|
89
89
|
/******/ // Load entry module and return exports
|
|
90
|
-
/******/ return __webpack_require__(__webpack_require__.s =
|
|
90
|
+
/******/ return __webpack_require__(__webpack_require__.s = 474);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -95,32 +95,32 @@ 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
|
|
|
116
|
-
/***/
|
|
116
|
+
/***/ 107:
|
|
117
117
|
/***/ (function(module, exports) {
|
|
118
118
|
|
|
119
119
|
module.exports = require("@splunk/react-ui/Table");
|
|
120
120
|
|
|
121
121
|
/***/ }),
|
|
122
122
|
|
|
123
|
-
/***/
|
|
123
|
+
/***/ 108:
|
|
124
124
|
/***/ (function(module, exports) {
|
|
125
125
|
|
|
126
126
|
module.exports = require("@splunk/react-sparkline/Line");
|
|
@@ -134,13 +134,6 @@ module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
|
134
134
|
|
|
135
135
|
/***/ }),
|
|
136
136
|
|
|
137
|
-
/***/ 116:
|
|
138
|
-
/***/ (function(module, exports) {
|
|
139
|
-
|
|
140
|
-
module.exports = require("@splunk/react-ui/Message");
|
|
141
|
-
|
|
142
|
-
/***/ }),
|
|
143
|
-
|
|
144
137
|
/***/ 12:
|
|
145
138
|
/***/ (function(module, exports) {
|
|
146
139
|
|
|
@@ -148,22 +141,10 @@ module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
|
148
141
|
|
|
149
142
|
/***/ }),
|
|
150
143
|
|
|
151
|
-
/***/
|
|
152
|
-
/***/ (function(module, exports
|
|
153
|
-
|
|
154
|
-
"use strict";
|
|
155
|
-
|
|
144
|
+
/***/ 123:
|
|
145
|
+
/***/ (function(module, exports) {
|
|
156
146
|
|
|
157
|
-
|
|
158
|
-
value: true
|
|
159
|
-
});
|
|
160
|
-
exports.validFontSizes = exports.validTextOverflows = exports.validAlignments = exports.validHeaderVisibilities = exports.validSparklineTypes = exports.validCellRenderers = void 0;
|
|
161
|
-
exports.validCellRenderers = ['TextCell', 'ArrayCell', 'SparklineCell'];
|
|
162
|
-
exports.validSparklineTypes = ['line', 'area'];
|
|
163
|
-
exports.validHeaderVisibilities = ['none', 'fixed', 'inline'];
|
|
164
|
-
exports.validAlignments = ['left', 'center', 'right'];
|
|
165
|
-
exports.validTextOverflows = ['anywhere', 'break-word', 'ellipsis'];
|
|
166
|
-
exports.validFontSizes = ['extraSmall', 'small', 'default', 'large'];
|
|
147
|
+
module.exports = require("@splunk/react-ui/Message");
|
|
167
148
|
|
|
168
149
|
/***/ }),
|
|
169
150
|
|
|
@@ -177,13 +158,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
177
158
|
value: true
|
|
178
159
|
});
|
|
179
160
|
|
|
180
|
-
var React = __webpack_require__(
|
|
161
|
+
var React = __webpack_require__(0);
|
|
181
162
|
|
|
182
163
|
var styled_components_1 = __webpack_require__(4);
|
|
183
164
|
|
|
184
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
165
|
+
var SizeAwareWrapper_1 = __webpack_require__(18);
|
|
185
166
|
|
|
186
|
-
var style_1 = __webpack_require__(
|
|
167
|
+
var style_1 = __webpack_require__(14);
|
|
187
168
|
|
|
188
169
|
var colorUtils_1 = __webpack_require__(12);
|
|
189
170
|
|
|
@@ -242,7 +223,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
242
223
|
|
|
243
224
|
return React.createElement(FixSizeItem, {
|
|
244
225
|
"data-test": "fix-size-item",
|
|
245
|
-
"data-splunk-visualization-version": "25.
|
|
226
|
+
"data-splunk-visualization-version": "25.7.1 - 6a77c5530",
|
|
246
227
|
width: width,
|
|
247
228
|
height: height,
|
|
248
229
|
backgroundColor: backgroundColor
|
|
@@ -264,7 +245,33 @@ exports.default = withFixedSizeContainer;
|
|
|
264
245
|
|
|
265
246
|
/***/ }),
|
|
266
247
|
|
|
248
|
+
/***/ 134:
|
|
249
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
250
|
+
|
|
251
|
+
"use strict";
|
|
252
|
+
|
|
253
|
+
|
|
254
|
+
Object.defineProperty(exports, "__esModule", {
|
|
255
|
+
value: true
|
|
256
|
+
});
|
|
257
|
+
exports.validFontSizes = exports.validTextOverflows = exports.validAlignments = exports.validHeaderVisibilities = exports.validSparklineTypes = exports.validCellRenderers = void 0;
|
|
258
|
+
exports.validCellRenderers = ['TextCell', 'ArrayCell', 'SparklineCell'];
|
|
259
|
+
exports.validSparklineTypes = ['line', 'area'];
|
|
260
|
+
exports.validHeaderVisibilities = ['none', 'fixed', 'inline'];
|
|
261
|
+
exports.validAlignments = ['left', 'center', 'right'];
|
|
262
|
+
exports.validTextOverflows = ['anywhere', 'break-word', 'ellipsis'];
|
|
263
|
+
exports.validFontSizes = ['extraSmall', 'small', 'default', 'large'];
|
|
264
|
+
|
|
265
|
+
/***/ }),
|
|
266
|
+
|
|
267
267
|
/***/ 14:
|
|
268
|
+
/***/ (function(module, exports) {
|
|
269
|
+
|
|
270
|
+
module.exports = require("@splunk/visualizations-shared/style");
|
|
271
|
+
|
|
272
|
+
/***/ }),
|
|
273
|
+
|
|
274
|
+
/***/ 15:
|
|
268
275
|
/***/ (function(module, exports, __webpack_require__) {
|
|
269
276
|
|
|
270
277
|
"use strict";
|
|
@@ -297,14 +304,14 @@ exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
|
297
304
|
|
|
298
305
|
/***/ }),
|
|
299
306
|
|
|
300
|
-
/***/
|
|
307
|
+
/***/ 16:
|
|
301
308
|
/***/ (function(module, exports) {
|
|
302
309
|
|
|
303
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
310
|
+
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
304
311
|
|
|
305
312
|
/***/ }),
|
|
306
313
|
|
|
307
|
-
/***/
|
|
314
|
+
/***/ 164:
|
|
308
315
|
/***/ (function(module, exports, __webpack_require__) {
|
|
309
316
|
|
|
310
317
|
"use strict";
|
|
@@ -334,13 +341,13 @@ var lodash_1 = __webpack_require__(3);
|
|
|
334
341
|
|
|
335
342
|
var colorUtils_1 = __webpack_require__(12);
|
|
336
343
|
|
|
337
|
-
var config_1 = __webpack_require__(
|
|
344
|
+
var config_1 = __webpack_require__(475);
|
|
338
345
|
|
|
339
346
|
exports.config = config_1.default;
|
|
340
347
|
|
|
341
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
348
|
+
var withDashboardViz_1 = __webpack_require__(36);
|
|
342
349
|
|
|
343
|
-
var PureTable_1 = __webpack_require__(
|
|
350
|
+
var PureTable_1 = __webpack_require__(476);
|
|
344
351
|
|
|
345
352
|
exports.PureTable = PureTable_1.default;
|
|
346
353
|
|
|
@@ -418,29 +425,29 @@ exports.default = Table;
|
|
|
418
425
|
|
|
419
426
|
/***/ }),
|
|
420
427
|
|
|
421
|
-
/***/
|
|
428
|
+
/***/ 17:
|
|
422
429
|
/***/ (function(module, exports) {
|
|
423
430
|
|
|
424
|
-
module.exports = require("@
|
|
431
|
+
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
425
432
|
|
|
426
433
|
/***/ }),
|
|
427
434
|
|
|
428
|
-
/***/
|
|
435
|
+
/***/ 18:
|
|
429
436
|
/***/ (function(module, exports) {
|
|
430
437
|
|
|
431
|
-
module.exports = require("@
|
|
438
|
+
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
432
439
|
|
|
433
440
|
/***/ }),
|
|
434
441
|
|
|
435
|
-
/***/
|
|
442
|
+
/***/ 19:
|
|
436
443
|
/***/ (function(module, exports, __webpack_require__) {
|
|
437
444
|
|
|
438
445
|
"use strict";
|
|
439
446
|
|
|
440
447
|
|
|
441
|
-
var _toConsumableArray = __webpack_require__(
|
|
448
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
442
449
|
|
|
443
|
-
var _defineProperty = __webpack_require__(
|
|
450
|
+
var _defineProperty = __webpack_require__(8);
|
|
444
451
|
|
|
445
452
|
var __rest = this && this.__rest || function (s, e) {
|
|
446
453
|
var t = {};
|
|
@@ -679,25 +686,25 @@ module.exports = require("@splunk/ui-utils/i18n");
|
|
|
679
686
|
/***/ 20:
|
|
680
687
|
/***/ (function(module, exports) {
|
|
681
688
|
|
|
682
|
-
module.exports = require("@
|
|
689
|
+
module.exports = require("@splunk/visualization-context/FeatureFlagContext");
|
|
683
690
|
|
|
684
691
|
/***/ }),
|
|
685
692
|
|
|
686
|
-
/***/
|
|
693
|
+
/***/ 22:
|
|
687
694
|
/***/ (function(module, exports) {
|
|
688
695
|
|
|
689
|
-
module.exports = require("@
|
|
696
|
+
module.exports = require("@babel/runtime/helpers/createClass");
|
|
690
697
|
|
|
691
698
|
/***/ }),
|
|
692
699
|
|
|
693
|
-
/***/
|
|
700
|
+
/***/ 23:
|
|
694
701
|
/***/ (function(module, exports) {
|
|
695
702
|
|
|
696
703
|
module.exports = require("@splunk/themes/pick");
|
|
697
704
|
|
|
698
705
|
/***/ }),
|
|
699
706
|
|
|
700
|
-
/***/
|
|
707
|
+
/***/ 25:
|
|
701
708
|
/***/ (function(module, exports) {
|
|
702
709
|
|
|
703
710
|
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
@@ -707,21 +714,21 @@ module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
|
707
714
|
/***/ 26:
|
|
708
715
|
/***/ (function(module, exports) {
|
|
709
716
|
|
|
710
|
-
module.exports = require("@splunk/
|
|
717
|
+
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
711
718
|
|
|
712
719
|
/***/ }),
|
|
713
720
|
|
|
714
721
|
/***/ 27:
|
|
715
722
|
/***/ (function(module, exports) {
|
|
716
723
|
|
|
717
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
724
|
+
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
718
725
|
|
|
719
726
|
/***/ }),
|
|
720
727
|
|
|
721
|
-
/***/
|
|
728
|
+
/***/ 29:
|
|
722
729
|
/***/ (function(module, exports) {
|
|
723
730
|
|
|
724
|
-
module.exports = require("@splunk/
|
|
731
|
+
module.exports = require("@splunk/visualization-encoding/Options");
|
|
725
732
|
|
|
726
733
|
/***/ }),
|
|
727
734
|
|
|
@@ -732,7 +739,7 @@ module.exports = require("lodash");
|
|
|
732
739
|
|
|
733
740
|
/***/ }),
|
|
734
741
|
|
|
735
|
-
/***/
|
|
742
|
+
/***/ 31:
|
|
736
743
|
/***/ (function(module, exports, __webpack_require__) {
|
|
737
744
|
|
|
738
745
|
"use strict";
|
|
@@ -743,15 +750,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
743
750
|
});
|
|
744
751
|
exports.shouldShowIconPlaceholder = void 0;
|
|
745
752
|
|
|
746
|
-
var React = __webpack_require__(
|
|
753
|
+
var React = __webpack_require__(0);
|
|
747
754
|
|
|
748
|
-
var T = __webpack_require__(
|
|
755
|
+
var T = __webpack_require__(1);
|
|
749
756
|
|
|
750
757
|
var lodash_1 = __webpack_require__(3);
|
|
751
758
|
|
|
752
759
|
var i18n_1 = __webpack_require__(2);
|
|
753
760
|
|
|
754
|
-
var Message_1 = __webpack_require__(
|
|
761
|
+
var Message_1 = __webpack_require__(9);
|
|
755
762
|
|
|
756
763
|
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
757
764
|
/**
|
|
@@ -824,27 +831,27 @@ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
|
824
831
|
|
|
825
832
|
/***/ }),
|
|
826
833
|
|
|
827
|
-
/***/
|
|
834
|
+
/***/ 32:
|
|
828
835
|
/***/ (function(module, exports) {
|
|
829
836
|
|
|
830
837
|
module.exports = require("@splunk/ui-utils/id");
|
|
831
838
|
|
|
832
839
|
/***/ }),
|
|
833
840
|
|
|
834
|
-
/***/
|
|
841
|
+
/***/ 33:
|
|
835
842
|
/***/ (function(module, exports, __webpack_require__) {
|
|
836
843
|
|
|
837
844
|
"use strict";
|
|
838
845
|
|
|
839
846
|
|
|
840
|
-
var _defineProperty = __webpack_require__(
|
|
847
|
+
var _defineProperty = __webpack_require__(8);
|
|
841
848
|
|
|
842
849
|
Object.defineProperty(exports, "__esModule", {
|
|
843
850
|
value: true
|
|
844
851
|
});
|
|
845
852
|
exports.getSortingParams = exports.SortParamsPropTypes = void 0;
|
|
846
853
|
|
|
847
|
-
var T = __webpack_require__(
|
|
854
|
+
var T = __webpack_require__(1);
|
|
848
855
|
|
|
849
856
|
var lodash_1 = __webpack_require__(3);
|
|
850
857
|
|
|
@@ -868,7 +875,7 @@ var getSortingParams = function getSortingParams(_ref) {
|
|
|
868
875
|
};
|
|
869
876
|
var onSort;
|
|
870
877
|
|
|
871
|
-
if (
|
|
878
|
+
if (typeof onRequestParamsChange === 'function') {
|
|
872
879
|
if (requestParams && lodash_1.has(requestParams, 'sort')) {
|
|
873
880
|
currentSortKey = Object.keys(requestParams.sort).shift();
|
|
874
881
|
currentSortDir = requestParams.sort[currentSortKey];
|
|
@@ -902,7 +909,7 @@ exports.getSortingParams = getSortingParams;
|
|
|
902
909
|
|
|
903
910
|
/***/ }),
|
|
904
911
|
|
|
905
|
-
/***/
|
|
912
|
+
/***/ 34:
|
|
906
913
|
/***/ (function(module, exports, __webpack_require__) {
|
|
907
914
|
|
|
908
915
|
"use strict";
|
|
@@ -913,7 +920,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
913
920
|
});
|
|
914
921
|
exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
|
|
915
922
|
|
|
916
|
-
var T = __webpack_require__(
|
|
923
|
+
var T = __webpack_require__(1);
|
|
917
924
|
|
|
918
925
|
var lodash_1 = __webpack_require__(3);
|
|
919
926
|
|
|
@@ -933,7 +940,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
933
940
|
var count = requestParams && requestParams.count;
|
|
934
941
|
var totalPages = typeof count === 'number' && count > 0 ? Math.ceil(totalCount / count) : 0;
|
|
935
942
|
var current = typeof count === 'number' && count > 0 ? Math.floor(offset / count) + 1 : 0;
|
|
936
|
-
var isPaging = totalPages > 1 &&
|
|
943
|
+
var isPaging = totalPages > 1 && typeof onRequestParamsChange === 'function';
|
|
937
944
|
|
|
938
945
|
var onChangeHandler = function onChangeHandler(e, _ref2) {
|
|
939
946
|
var page = _ref2.page,
|
|
@@ -959,7 +966,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
959
966
|
isPaging: isPaging,
|
|
960
967
|
current: current,
|
|
961
968
|
totalPages: totalPages,
|
|
962
|
-
onChange:
|
|
969
|
+
onChange: typeof onRequestParamsChange === 'function' ? onChangeHandler : lodash_1.noop
|
|
963
970
|
};
|
|
964
971
|
};
|
|
965
972
|
|
|
@@ -967,7 +974,7 @@ exports.getPaginationParams = getPaginationParams;
|
|
|
967
974
|
|
|
968
975
|
/***/ }),
|
|
969
976
|
|
|
970
|
-
/***/
|
|
977
|
+
/***/ 35:
|
|
971
978
|
/***/ (function(module, exports, __webpack_require__) {
|
|
972
979
|
|
|
973
980
|
"use strict";
|
|
@@ -996,7 +1003,7 @@ var VizCategory;
|
|
|
996
1003
|
|
|
997
1004
|
/***/ }),
|
|
998
1005
|
|
|
999
|
-
/***/
|
|
1006
|
+
/***/ 36:
|
|
1000
1007
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1001
1008
|
|
|
1002
1009
|
"use strict";
|
|
@@ -1008,39 +1015,39 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1008
1015
|
value: true
|
|
1009
1016
|
});
|
|
1010
1017
|
|
|
1011
|
-
var React = __webpack_require__(
|
|
1018
|
+
var React = __webpack_require__(0);
|
|
1012
1019
|
|
|
1013
1020
|
var lodash_1 = __webpack_require__(3);
|
|
1014
1021
|
|
|
1015
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
1022
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(37);
|
|
1016
1023
|
|
|
1017
|
-
var Options_1 = __webpack_require__(
|
|
1024
|
+
var Options_1 = __webpack_require__(29);
|
|
1018
1025
|
|
|
1019
1026
|
var SanitizeProps_1 = __webpack_require__(38);
|
|
1020
1027
|
|
|
1021
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
1028
|
+
var TimezoneContext_1 = __webpack_require__(25);
|
|
1022
1029
|
|
|
1023
1030
|
var moment_1 = __webpack_require__(39);
|
|
1024
1031
|
|
|
1025
|
-
var FeatureFlagContext_1 = __webpack_require__(
|
|
1032
|
+
var FeatureFlagContext_1 = __webpack_require__(20);
|
|
1026
1033
|
|
|
1027
1034
|
var styled_components_1 = __webpack_require__(4);
|
|
1028
1035
|
|
|
1029
|
-
var hocUtils_1 = __webpack_require__(
|
|
1036
|
+
var hocUtils_1 = __webpack_require__(26);
|
|
1030
1037
|
|
|
1031
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
1038
|
+
var JSONSchemaUtils_1 = __webpack_require__(27);
|
|
1032
1039
|
|
|
1033
1040
|
var async_dynamic_options_evaluator_1 = __webpack_require__(40);
|
|
1034
1041
|
|
|
1035
|
-
var id_1 = __webpack_require__(
|
|
1042
|
+
var id_1 = __webpack_require__(32);
|
|
1036
1043
|
|
|
1037
1044
|
var SplunkVisualization_1 = __webpack_require__(41);
|
|
1038
1045
|
|
|
1039
1046
|
var VizBehavior_1 = __webpack_require__(6);
|
|
1040
1047
|
|
|
1041
|
-
var getSorting_1 = __webpack_require__(
|
|
1048
|
+
var getSorting_1 = __webpack_require__(33);
|
|
1042
1049
|
|
|
1043
|
-
var getPagination_1 = __webpack_require__(
|
|
1050
|
+
var getPagination_1 = __webpack_require__(34);
|
|
1044
1051
|
|
|
1045
1052
|
var useDeepMemo_1 = __webpack_require__(44);
|
|
1046
1053
|
|
|
@@ -1069,6 +1076,8 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1069
1076
|
var defaultOptions = JSONSchemaUtils_1.pickFieldFromJSONSchema(vizConfig.optionsSchema, 'default');
|
|
1070
1077
|
|
|
1071
1078
|
var DashboardViz = function DashboardViz(props) {
|
|
1079
|
+
var _a;
|
|
1080
|
+
|
|
1072
1081
|
var mode = props.mode,
|
|
1073
1082
|
hasEventHandlers = props.hasEventHandlers,
|
|
1074
1083
|
dataSources = props.dataSources,
|
|
@@ -1128,7 +1137,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1128
1137
|
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
1129
1138
|
visualizationID = _React$useState4[0];
|
|
1130
1139
|
|
|
1131
|
-
var _React$useState5 = React.useState(Boolean(featureFlagContext && featureFlagContext
|
|
1140
|
+
var _React$useState5 = React.useState(Boolean(featureFlagContext && featureFlagContext.visualizations_useWebWorkersForDSL && typeof Worker !== 'undefined')),
|
|
1132
1141
|
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
1133
1142
|
useAsyncEvaluatedOptions = _React$useState6[0],
|
|
1134
1143
|
setUseAsyncEvaluatedOptions = _React$useState6[1];
|
|
@@ -1168,11 +1177,21 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1168
1177
|
|
|
1169
1178
|
return {};
|
|
1170
1179
|
}, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone, useAsyncEvaluatedOptions]);
|
|
1171
|
-
var evaluatedOptionsToUse = !useAsyncEvaluatedOptions ? evaluatedOptions : evaluatedOptionsAsync; //
|
|
1180
|
+
var evaluatedOptionsToUse = !useAsyncEvaluatedOptions ? evaluatedOptions : evaluatedOptionsAsync; // trellis specific backgroundColor update for onComputedProps
|
|
1181
|
+
// 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
|
|
1182
|
+
// onComputedProps api should return back trellisBackgroundColor value for backgroundColor option to support coloring of sibling panels (for eg:- title/ description on UDF side)
|
|
1183
|
+
|
|
1184
|
+
var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
|
|
1185
|
+
var clonedEvaluatedOptions = lodash_1.cloneDeep(evaluatedOptionsToUse);
|
|
1186
|
+
|
|
1187
|
+
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) {
|
|
1188
|
+
clonedEvaluatedOptions.backgroundColor = clonedEvaluatedOptions === null || clonedEvaluatedOptions === void 0 ? void 0 : clonedEvaluatedOptions.trellisBackgroundColor;
|
|
1189
|
+
} // useEffect hook needs to be initialized before any early returns
|
|
1172
1190
|
// this is in accordance with the order of hook calls being the same on each render https://reactjs.org/docs/hooks-rules.html#explanation
|
|
1173
1191
|
|
|
1192
|
+
|
|
1174
1193
|
React.useEffect(function () {
|
|
1175
|
-
onComputedProps(
|
|
1194
|
+
onComputedProps(clonedEvaluatedOptions);
|
|
1176
1195
|
});
|
|
1177
1196
|
React.useEffect(function () {
|
|
1178
1197
|
return function () {
|
|
@@ -1187,15 +1206,16 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1187
1206
|
supports = vizConfig.supports;
|
|
1188
1207
|
var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptionsToUse);
|
|
1189
1208
|
|
|
1190
|
-
if (missing.length > 0 && supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER)
|
|
1191
|
-
|
|
1192
|
-
|
|
1193
|
-
|
|
1194
|
-
|
|
1195
|
-
|
|
1196
|
-
|
|
1197
|
-
|
|
1198
|
-
|
|
1209
|
+
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
|
|
1210
|
+
) {
|
|
1211
|
+
return React.createElement(MissingPropsMessage_1.default, {
|
|
1212
|
+
"data-test": "missing-props-message",
|
|
1213
|
+
width: width,
|
|
1214
|
+
height: height,
|
|
1215
|
+
missingProps: missing,
|
|
1216
|
+
backgroundColor: bgColorFromTheme
|
|
1217
|
+
});
|
|
1218
|
+
} // events
|
|
1199
1219
|
|
|
1200
1220
|
|
|
1201
1221
|
var eventCallbackProps = {};
|
|
@@ -1299,17 +1319,10 @@ exports.default = withDashboardViz;
|
|
|
1299
1319
|
|
|
1300
1320
|
/***/ }),
|
|
1301
1321
|
|
|
1302
|
-
/***/ 36:
|
|
1303
|
-
/***/ (function(module, exports) {
|
|
1304
|
-
|
|
1305
|
-
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
1306
|
-
|
|
1307
|
-
/***/ }),
|
|
1308
|
-
|
|
1309
1322
|
/***/ 37:
|
|
1310
1323
|
/***/ (function(module, exports) {
|
|
1311
1324
|
|
|
1312
|
-
module.exports = require("@splunk/
|
|
1325
|
+
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
1313
1326
|
|
|
1314
1327
|
/***/ }),
|
|
1315
1328
|
|
|
@@ -1355,7 +1368,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1355
1368
|
exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
|
|
1356
1369
|
/* eslint-disable react/no-unused-prop-types,react/prefer-stateless-function */
|
|
1357
1370
|
|
|
1358
|
-
var T = __webpack_require__(
|
|
1371
|
+
var T = __webpack_require__(1);
|
|
1359
1372
|
|
|
1360
1373
|
var lodash_1 = __webpack_require__(3);
|
|
1361
1374
|
|
|
@@ -1501,7 +1514,7 @@ exports.default = SplunkVisualization;
|
|
|
1501
1514
|
|
|
1502
1515
|
var _classCallCheck = __webpack_require__(11);
|
|
1503
1516
|
|
|
1504
|
-
var _createClass = __webpack_require__(
|
|
1517
|
+
var _createClass = __webpack_require__(22);
|
|
1505
1518
|
|
|
1506
1519
|
Object.defineProperty(exports, "__esModule", {
|
|
1507
1520
|
value: true
|
|
@@ -1556,7 +1569,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1556
1569
|
});
|
|
1557
1570
|
exports.useDeepMemo = void 0;
|
|
1558
1571
|
|
|
1559
|
-
var react_1 = __webpack_require__(
|
|
1572
|
+
var react_1 = __webpack_require__(0);
|
|
1560
1573
|
|
|
1561
1574
|
var lodash_1 = __webpack_require__(3);
|
|
1562
1575
|
/**
|
|
@@ -1602,13 +1615,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1602
1615
|
});
|
|
1603
1616
|
exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
|
|
1604
1617
|
|
|
1605
|
-
var React = __webpack_require__(
|
|
1618
|
+
var React = __webpack_require__(0);
|
|
1606
1619
|
|
|
1607
|
-
var T = __webpack_require__(
|
|
1620
|
+
var T = __webpack_require__(1);
|
|
1608
1621
|
|
|
1609
1622
|
var i18n_1 = __webpack_require__(2);
|
|
1610
1623
|
|
|
1611
|
-
var Message_1 = __webpack_require__(
|
|
1624
|
+
var Message_1 = __webpack_require__(9);
|
|
1612
1625
|
|
|
1613
1626
|
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
1614
1627
|
/**
|
|
@@ -1682,18 +1695,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1682
1695
|
value: true
|
|
1683
1696
|
});
|
|
1684
1697
|
|
|
1685
|
-
var React = __webpack_require__(
|
|
1698
|
+
var React = __webpack_require__(0);
|
|
1686
1699
|
|
|
1687
1700
|
var styled_components_1 = __webpack_require__(4);
|
|
1688
1701
|
|
|
1689
|
-
var hocUtils_1 = __webpack_require__(
|
|
1702
|
+
var hocUtils_1 = __webpack_require__(15);
|
|
1690
1703
|
|
|
1691
1704
|
var Cover = styled_components_1.default.div.withConfig({
|
|
1692
1705
|
displayName: "withEditModeCover__Cover",
|
|
1693
1706
|
componentId: "sc-1gsbnxb-0"
|
|
1694
1707
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
1695
1708
|
var Blocker = styled_components_1.default.div.attrs({
|
|
1696
|
-
'data-splunk-visualization-version': "25.
|
|
1709
|
+
'data-splunk-visualization-version': "25.7.1 - 6a77c5530"
|
|
1697
1710
|
}).withConfig({
|
|
1698
1711
|
displayName: "withEditModeCover__Blocker",
|
|
1699
1712
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -1725,7 +1738,72 @@ exports.default = withEditModeCover;
|
|
|
1725
1738
|
|
|
1726
1739
|
/***/ }),
|
|
1727
1740
|
|
|
1728
|
-
/***/
|
|
1741
|
+
/***/ 47:
|
|
1742
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
1743
|
+
|
|
1744
|
+
"use strict";
|
|
1745
|
+
|
|
1746
|
+
|
|
1747
|
+
Object.defineProperty(exports, "__esModule", {
|
|
1748
|
+
value: true
|
|
1749
|
+
});
|
|
1750
|
+
|
|
1751
|
+
var React = __webpack_require__(0);
|
|
1752
|
+
|
|
1753
|
+
var colorUtils_1 = __webpack_require__(12);
|
|
1754
|
+
|
|
1755
|
+
var variables_1 = __webpack_require__(10);
|
|
1756
|
+
|
|
1757
|
+
var IconPlaceholder_1 = __webpack_require__(31);
|
|
1758
|
+
|
|
1759
|
+
var VizBehavior_1 = __webpack_require__(6);
|
|
1760
|
+
|
|
1761
|
+
var hocUtils_1 = __webpack_require__(15);
|
|
1762
|
+
|
|
1763
|
+
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
1764
|
+
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
1765
|
+
var config = Visualization.config;
|
|
1766
|
+
var themes = config.themes;
|
|
1767
|
+
|
|
1768
|
+
var Wrapper = function Wrapper(props) {
|
|
1769
|
+
var _a, _b;
|
|
1770
|
+
|
|
1771
|
+
var dataSources = props.dataSources,
|
|
1772
|
+
loading = props.loading,
|
|
1773
|
+
options = props.options,
|
|
1774
|
+
height = props.height,
|
|
1775
|
+
width = props.width;
|
|
1776
|
+
var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
|
|
1777
|
+
var bgColorFromTheme = colorUtils_1.isColor(options === null || options === void 0 ? void 0 : options.backgroundColor) ? options === null || options === void 0 ? void 0 : options.backgroundColor : (_a = themes === null || themes === void 0 ? void 0 : themes.defaultBackgroundColor) === null || _a === void 0 ? void 0 : _a.call(themes, props);
|
|
1778
|
+
var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
|
|
1779
|
+
var iconColor = variables_1.default.contentColorActive(props);
|
|
1780
|
+
|
|
1781
|
+
if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
|
|
1782
|
+
return React.createElement(IconPlaceholder_1.default, {
|
|
1783
|
+
"data-test": "icon-placeholder",
|
|
1784
|
+
icon: icon,
|
|
1785
|
+
width: width,
|
|
1786
|
+
height: height,
|
|
1787
|
+
backgroundColor: bgColorFromTheme,
|
|
1788
|
+
iconColor: iconColor
|
|
1789
|
+
});
|
|
1790
|
+
}
|
|
1791
|
+
|
|
1792
|
+
return React.createElement(Visualization, Object.assign({}, props));
|
|
1793
|
+
};
|
|
1794
|
+
|
|
1795
|
+
hocUtils_1.extendStaticWrapperProps({
|
|
1796
|
+
Wrapper: Wrapper,
|
|
1797
|
+
Visualization: Visualization
|
|
1798
|
+
});
|
|
1799
|
+
return Wrapper;
|
|
1800
|
+
};
|
|
1801
|
+
|
|
1802
|
+
exports.default = withPlaceholder;
|
|
1803
|
+
|
|
1804
|
+
/***/ }),
|
|
1805
|
+
|
|
1806
|
+
/***/ 474:
|
|
1729
1807
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1730
1808
|
|
|
1731
1809
|
"use strict";
|
|
@@ -1757,9 +1835,9 @@ exports.default = void 0; // NOTE: wildcard syntax only works for named exports
|
|
|
1757
1835
|
// for some reason, omitting the default export worked before TS v4
|
|
1758
1836
|
// see: https://stackoverflow.com/a/34445175
|
|
1759
1837
|
|
|
1760
|
-
__exportStar(__webpack_require__(
|
|
1838
|
+
__exportStar(__webpack_require__(164), exports);
|
|
1761
1839
|
|
|
1762
|
-
var Table_1 = __webpack_require__(
|
|
1840
|
+
var Table_1 = __webpack_require__(164);
|
|
1763
1841
|
|
|
1764
1842
|
Object.defineProperty(exports, "default", {
|
|
1765
1843
|
enumerable: true,
|
|
@@ -1770,13 +1848,13 @@ Object.defineProperty(exports, "default", {
|
|
|
1770
1848
|
|
|
1771
1849
|
/***/ }),
|
|
1772
1850
|
|
|
1773
|
-
/***/
|
|
1851
|
+
/***/ 475:
|
|
1774
1852
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1775
1853
|
|
|
1776
1854
|
"use strict";
|
|
1777
1855
|
|
|
1778
1856
|
|
|
1779
|
-
var _toConsumableArray = __webpack_require__(
|
|
1857
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
1780
1858
|
|
|
1781
1859
|
Object.defineProperty(exports, "__esModule", {
|
|
1782
1860
|
value: true
|
|
@@ -1794,17 +1872,17 @@ var visualization_icons_1 = __webpack_require__(51);
|
|
|
1794
1872
|
|
|
1795
1873
|
var placeholders_1 = __webpack_require__(48);
|
|
1796
1874
|
|
|
1797
|
-
var variables_1 = __webpack_require__(
|
|
1875
|
+
var variables_1 = __webpack_require__(10);
|
|
1798
1876
|
|
|
1799
|
-
var pick_1 = __webpack_require__(
|
|
1877
|
+
var pick_1 = __webpack_require__(23);
|
|
1800
1878
|
|
|
1801
|
-
var configUtils_1 = __webpack_require__(
|
|
1879
|
+
var configUtils_1 = __webpack_require__(19);
|
|
1802
1880
|
|
|
1803
1881
|
var VizBehavior_1 = __webpack_require__(6);
|
|
1804
1882
|
|
|
1805
|
-
var consts_1 = __webpack_require__(
|
|
1883
|
+
var consts_1 = __webpack_require__(134);
|
|
1806
1884
|
|
|
1807
|
-
var VizCategory_1 = __webpack_require__(
|
|
1885
|
+
var VizCategory_1 = __webpack_require__(35);
|
|
1808
1886
|
|
|
1809
1887
|
var dataContract = {
|
|
1810
1888
|
requiredDataSources: [{
|
|
@@ -2299,24 +2377,21 @@ var editorConfig = [{
|
|
|
2299
2377
|
option: 'count',
|
|
2300
2378
|
editor: 'editor.number',
|
|
2301
2379
|
editorProps: {
|
|
2302
|
-
labelPosition: 'left',
|
|
2303
2380
|
min: 0,
|
|
2304
2381
|
labelWidth: EDITOR_LABEL_WIDTH
|
|
2305
2382
|
}
|
|
2306
2383
|
}], [{
|
|
2307
2384
|
label: i18n_1._('Row numbers'),
|
|
2308
2385
|
option: 'showRowNumbers',
|
|
2309
|
-
editor: 'editor.
|
|
2386
|
+
editor: 'editor.checkbox',
|
|
2310
2387
|
editorProps: {
|
|
2311
|
-
labelPosition: 'left',
|
|
2312
2388
|
labelWidth: EDITOR_LABEL_WIDTH
|
|
2313
2389
|
}
|
|
2314
2390
|
}], [{
|
|
2315
2391
|
label: i18n_1._('Internal fields'),
|
|
2316
2392
|
option: 'showInternalFields',
|
|
2317
|
-
editor: 'editor.
|
|
2393
|
+
editor: 'editor.checkbox',
|
|
2318
2394
|
editorProps: {
|
|
2319
|
-
labelPosition: 'left',
|
|
2320
2395
|
labelWidth: EDITOR_LABEL_WIDTH
|
|
2321
2396
|
}
|
|
2322
2397
|
}], [{
|
|
@@ -2344,7 +2419,7 @@ var editorConfig = [{
|
|
|
2344
2419
|
editor: 'editor.tableBackgroundColor',
|
|
2345
2420
|
editorProps: {
|
|
2346
2421
|
themes: themes,
|
|
2347
|
-
labelPosition: '
|
|
2422
|
+
labelPosition: 'top',
|
|
2348
2423
|
labelWidth: EDITOR_LABEL_WIDTH,
|
|
2349
2424
|
palette: _toConsumableArray(backgroundColorPaletteSet)
|
|
2350
2425
|
}
|
|
@@ -2502,7 +2577,7 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
2502
2577
|
|
|
2503
2578
|
/***/ }),
|
|
2504
2579
|
|
|
2505
|
-
/***/
|
|
2580
|
+
/***/ 476:
|
|
2506
2581
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2507
2582
|
|
|
2508
2583
|
"use strict";
|
|
@@ -2510,9 +2585,9 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
2510
2585
|
|
|
2511
2586
|
var _slicedToArray = __webpack_require__(17);
|
|
2512
2587
|
|
|
2513
|
-
var _defineProperty = __webpack_require__(
|
|
2588
|
+
var _defineProperty = __webpack_require__(8);
|
|
2514
2589
|
|
|
2515
|
-
var _taggedTemplateLiteral = __webpack_require__(
|
|
2590
|
+
var _taggedTemplateLiteral = __webpack_require__(93);
|
|
2516
2591
|
|
|
2517
2592
|
var _templateObject, _templateObject2;
|
|
2518
2593
|
|
|
@@ -2534,9 +2609,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2534
2609
|
});
|
|
2535
2610
|
exports.MINIMUM_COLUMN_SIZE = void 0;
|
|
2536
2611
|
|
|
2537
|
-
var React = __webpack_require__(
|
|
2612
|
+
var React = __webpack_require__(0);
|
|
2538
2613
|
|
|
2539
|
-
var T = __webpack_require__(
|
|
2614
|
+
var T = __webpack_require__(1);
|
|
2540
2615
|
|
|
2541
2616
|
var lodash_1 = __webpack_require__(3);
|
|
2542
2617
|
|
|
@@ -2544,37 +2619,37 @@ var styled_components_1 = __webpack_require__(4);
|
|
|
2544
2619
|
|
|
2545
2620
|
var i18n_1 = __webpack_require__(2);
|
|
2546
2621
|
|
|
2547
|
-
var Table_1 = __webpack_require__(
|
|
2622
|
+
var Table_1 = __webpack_require__(107);
|
|
2548
2623
|
|
|
2549
|
-
var Paginator_1 = __webpack_require__(
|
|
2624
|
+
var Paginator_1 = __webpack_require__(87);
|
|
2550
2625
|
|
|
2551
|
-
var Message_1 = __webpack_require__(
|
|
2626
|
+
var Message_1 = __webpack_require__(123);
|
|
2552
2627
|
|
|
2553
2628
|
var colorUtils_1 = __webpack_require__(12);
|
|
2554
2629
|
|
|
2555
|
-
var style_1 = __webpack_require__(
|
|
2630
|
+
var style_1 = __webpack_require__(14);
|
|
2556
2631
|
|
|
2557
|
-
var pick_1 = __webpack_require__(
|
|
2632
|
+
var pick_1 = __webpack_require__(23);
|
|
2558
2633
|
|
|
2559
|
-
var variables_1 = __webpack_require__(
|
|
2634
|
+
var variables_1 = __webpack_require__(10);
|
|
2560
2635
|
|
|
2561
|
-
var hooks_1 = __webpack_require__(
|
|
2636
|
+
var hooks_1 = __webpack_require__(477);
|
|
2562
2637
|
|
|
2563
|
-
var consts_1 = __webpack_require__(
|
|
2638
|
+
var consts_1 = __webpack_require__(134);
|
|
2564
2639
|
|
|
2565
|
-
var cells_1 = __webpack_require__(
|
|
2640
|
+
var cells_1 = __webpack_require__(478);
|
|
2566
2641
|
|
|
2567
|
-
var getPagination_1 = __webpack_require__(
|
|
2642
|
+
var getPagination_1 = __webpack_require__(34);
|
|
2568
2643
|
|
|
2569
|
-
var getSorting_1 = __webpack_require__(
|
|
2644
|
+
var getSorting_1 = __webpack_require__(33);
|
|
2570
2645
|
|
|
2571
2646
|
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
2572
2647
|
|
|
2573
|
-
var utils_1 = __webpack_require__(
|
|
2648
|
+
var utils_1 = __webpack_require__(483); // debounce was imported this way due to typing
|
|
2574
2649
|
// eslint-disable-next-line import/order
|
|
2575
2650
|
|
|
2576
2651
|
|
|
2577
|
-
var debounce = __webpack_require__(
|
|
2652
|
+
var debounce = __webpack_require__(484);
|
|
2578
2653
|
|
|
2579
2654
|
exports.MINIMUM_COLUMN_SIZE = 30;
|
|
2580
2655
|
var NonVisibleTableHead = styled_components_1.default(Table_1.default.Head).withConfig({
|
|
@@ -2748,6 +2823,9 @@ var rowHeightMap = {
|
|
|
2748
2823
|
default: '20px',
|
|
2749
2824
|
large: '24px'
|
|
2750
2825
|
};
|
|
2826
|
+
var tableInnerStyle = {
|
|
2827
|
+
height: '100%'
|
|
2828
|
+
};
|
|
2751
2829
|
|
|
2752
2830
|
var PureTable = function PureTable(props) {
|
|
2753
2831
|
var count = props.count,
|
|
@@ -2836,7 +2914,7 @@ var PureTable = function PureTable(props) {
|
|
|
2836
2914
|
var TableHead = useTableHead(headerVisibility);
|
|
2837
2915
|
var debouncedDrilldown = debounce(function (e, payload) {
|
|
2838
2916
|
if (window.getSelection().toString() === '') {
|
|
2839
|
-
if (
|
|
2917
|
+
if (typeof onCellClick === 'function') {
|
|
2840
2918
|
onCellClick({
|
|
2841
2919
|
e: e,
|
|
2842
2920
|
payload: payload
|
|
@@ -2935,6 +3013,12 @@ var PureTable = function PureTable(props) {
|
|
|
2935
3013
|
var fontMapped = fontMap[font] || fontMap.proportional;
|
|
2936
3014
|
var fontSizeMapped = fontSizeMap[fontSize] || fontSizeMap.default;
|
|
2937
3015
|
var rowHeightMapped = rowHeightMap[fontSize] || rowHeightMap.default;
|
|
3016
|
+
var tableOuterStyle = React.useMemo(function () {
|
|
3017
|
+
return {
|
|
3018
|
+
height: '100%',
|
|
3019
|
+
cursor: onCellClick ? 'pointer' : 'unset'
|
|
3020
|
+
};
|
|
3021
|
+
}, [onCellClick]);
|
|
2938
3022
|
return React.createElement(VizTableContainer, {
|
|
2939
3023
|
backgroundColor: backgroundColor,
|
|
2940
3024
|
ref: containerRef
|
|
@@ -2950,13 +3034,8 @@ var PureTable = function PureTable(props) {
|
|
|
2950
3034
|
lineHeight: rowHeightMapped
|
|
2951
3035
|
}, React.createElement(Table_1.default, {
|
|
2952
3036
|
headType: headerVisibility !== 'none' ? 'inline' : undefined,
|
|
2953
|
-
innerStyle:
|
|
2954
|
-
|
|
2955
|
-
},
|
|
2956
|
-
outerStyle: {
|
|
2957
|
-
height: '100%',
|
|
2958
|
-
cursor: onCellClick ? 'pointer' : 'unset'
|
|
2959
|
-
},
|
|
3037
|
+
innerStyle: tableInnerStyle,
|
|
3038
|
+
outerStyle: tableOuterStyle,
|
|
2960
3039
|
onClick: onCellClick ? drilldownHandler : lodash_1.noop,
|
|
2961
3040
|
onKeyDown: onCellClick ? handleKeyDown : lodash_1.noop,
|
|
2962
3041
|
onRequestResizeColumn: handleResizeColumn
|
|
@@ -3104,87 +3183,15 @@ exports.default = withEmptyTableMessage(FixedSizeContainer_1.default(PureTable))
|
|
|
3104
3183
|
|
|
3105
3184
|
/***/ }),
|
|
3106
3185
|
|
|
3107
|
-
/***/
|
|
3108
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3109
|
-
|
|
3110
|
-
"use strict";
|
|
3111
|
-
|
|
3112
|
-
|
|
3113
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3114
|
-
value: true
|
|
3115
|
-
});
|
|
3116
|
-
|
|
3117
|
-
var React = __webpack_require__(1);
|
|
3118
|
-
|
|
3119
|
-
var colorUtils_1 = __webpack_require__(12);
|
|
3120
|
-
|
|
3121
|
-
var variables_1 = __webpack_require__(9);
|
|
3122
|
-
|
|
3123
|
-
var IconPlaceholder_1 = __webpack_require__(30);
|
|
3124
|
-
|
|
3125
|
-
var VizBehavior_1 = __webpack_require__(6);
|
|
3126
|
-
|
|
3127
|
-
var hocUtils_1 = __webpack_require__(14);
|
|
3128
|
-
|
|
3129
|
-
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
3130
|
-
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
3131
|
-
var config = Visualization.config;
|
|
3132
|
-
var themes = config.themes;
|
|
3133
|
-
|
|
3134
|
-
var Wrapper = function Wrapper(props) {
|
|
3135
|
-
var _a, _b;
|
|
3136
|
-
|
|
3137
|
-
var dataSources = props.dataSources,
|
|
3138
|
-
loading = props.loading,
|
|
3139
|
-
options = props.options,
|
|
3140
|
-
height = props.height,
|
|
3141
|
-
width = props.width;
|
|
3142
|
-
var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
|
|
3143
|
-
var bgColorFromTheme = colorUtils_1.isColor(options === null || options === void 0 ? void 0 : options.backgroundColor) ? options === null || options === void 0 ? void 0 : options.backgroundColor : (_a = themes === null || themes === void 0 ? void 0 : themes.defaultBackgroundColor) === null || _a === void 0 ? void 0 : _a.call(themes, props);
|
|
3144
|
-
var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
|
|
3145
|
-
var iconColor = variables_1.default.contentColorActive(props);
|
|
3146
|
-
|
|
3147
|
-
if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
|
|
3148
|
-
return React.createElement(IconPlaceholder_1.default, {
|
|
3149
|
-
"data-test": "icon-placeholder",
|
|
3150
|
-
icon: icon,
|
|
3151
|
-
width: width,
|
|
3152
|
-
height: height,
|
|
3153
|
-
backgroundColor: bgColorFromTheme,
|
|
3154
|
-
iconColor: iconColor
|
|
3155
|
-
});
|
|
3156
|
-
}
|
|
3157
|
-
|
|
3158
|
-
return React.createElement(Visualization, Object.assign({}, props));
|
|
3159
|
-
};
|
|
3160
|
-
|
|
3161
|
-
hocUtils_1.extendStaticWrapperProps({
|
|
3162
|
-
Wrapper: Wrapper,
|
|
3163
|
-
Visualization: Visualization
|
|
3164
|
-
});
|
|
3165
|
-
return Wrapper;
|
|
3166
|
-
};
|
|
3167
|
-
|
|
3168
|
-
exports.default = withPlaceholder;
|
|
3169
|
-
|
|
3170
|
-
/***/ }),
|
|
3171
|
-
|
|
3172
|
-
/***/ 470:
|
|
3173
|
-
/***/ (function(module, exports) {
|
|
3174
|
-
|
|
3175
|
-
module.exports = require("@splunk/react-ui/Paginator");
|
|
3176
|
-
|
|
3177
|
-
/***/ }),
|
|
3178
|
-
|
|
3179
|
-
/***/ 471:
|
|
3186
|
+
/***/ 477:
|
|
3180
3187
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3181
3188
|
|
|
3182
3189
|
"use strict";
|
|
3183
3190
|
|
|
3184
3191
|
|
|
3185
|
-
var _toConsumableArray = __webpack_require__(
|
|
3192
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
3186
3193
|
|
|
3187
|
-
var _typeof = __webpack_require__(
|
|
3194
|
+
var _typeof = __webpack_require__(88);
|
|
3188
3195
|
|
|
3189
3196
|
Object.defineProperty(exports, "__esModule", {
|
|
3190
3197
|
value: true
|
|
@@ -3195,30 +3202,32 @@ var lodash_1 = __webpack_require__(3);
|
|
|
3195
3202
|
|
|
3196
3203
|
var colorUtils_1 = __webpack_require__(12);
|
|
3197
3204
|
|
|
3198
|
-
var consts_1 = __webpack_require__(
|
|
3205
|
+
var consts_1 = __webpack_require__(134);
|
|
3199
3206
|
|
|
3200
3207
|
var isArray = function isArray(v) {
|
|
3201
3208
|
return Array.isArray(v);
|
|
3202
3209
|
};
|
|
3203
3210
|
|
|
3211
|
+
var textOverflowStyles = {
|
|
3212
|
+
anywhere: {
|
|
3213
|
+
wordBreak: 'break-all'
|
|
3214
|
+
},
|
|
3215
|
+
'break-word': {
|
|
3216
|
+
wordBreak: 'break-word',
|
|
3217
|
+
wordWrap: 'break-word',
|
|
3218
|
+
overflowWrap: 'break-word'
|
|
3219
|
+
},
|
|
3220
|
+
ellipsis: {
|
|
3221
|
+
whiteSpace: 'nowrap',
|
|
3222
|
+
overflow: 'hidden',
|
|
3223
|
+
textOverflow: 'ellipsis'
|
|
3224
|
+
}
|
|
3225
|
+
};
|
|
3226
|
+
var empty = {};
|
|
3227
|
+
|
|
3204
3228
|
var getOverflowStyles = function getOverflowStyles(_ref) {
|
|
3205
3229
|
var textOverflow = _ref.textOverflow;
|
|
3206
|
-
|
|
3207
|
-
anywhere: {
|
|
3208
|
-
wordBreak: 'break-all'
|
|
3209
|
-
},
|
|
3210
|
-
'break-word': {
|
|
3211
|
-
wordBreak: 'break-word',
|
|
3212
|
-
wordWrap: 'break-word',
|
|
3213
|
-
overflowWrap: 'break-word'
|
|
3214
|
-
},
|
|
3215
|
-
ellipsis: {
|
|
3216
|
-
whiteSpace: 'nowrap',
|
|
3217
|
-
overflow: 'hidden',
|
|
3218
|
-
textOverflow: 'ellipsis'
|
|
3219
|
-
}
|
|
3220
|
-
};
|
|
3221
|
-
return styles[textOverflow] || {};
|
|
3230
|
+
return textOverflowStyles[textOverflow] || empty;
|
|
3222
3231
|
};
|
|
3223
3232
|
|
|
3224
3233
|
exports.getOverflowStyles = getOverflowStyles;
|
|
@@ -3602,7 +3611,7 @@ exports.useTable = useTable;
|
|
|
3602
3611
|
|
|
3603
3612
|
/***/ }),
|
|
3604
3613
|
|
|
3605
|
-
/***/
|
|
3614
|
+
/***/ 478:
|
|
3606
3615
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3607
3616
|
|
|
3608
3617
|
"use strict";
|
|
@@ -3631,17 +3640,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3631
3640
|
value: true
|
|
3632
3641
|
});
|
|
3633
3642
|
|
|
3634
|
-
__exportStar(__webpack_require__(
|
|
3643
|
+
__exportStar(__webpack_require__(479), exports);
|
|
3635
3644
|
|
|
3636
|
-
__exportStar(__webpack_require__(
|
|
3645
|
+
__exportStar(__webpack_require__(480), exports);
|
|
3637
3646
|
|
|
3638
|
-
__exportStar(__webpack_require__(
|
|
3647
|
+
__exportStar(__webpack_require__(481), exports);
|
|
3639
3648
|
|
|
3640
|
-
__exportStar(__webpack_require__(
|
|
3649
|
+
__exportStar(__webpack_require__(482), exports);
|
|
3641
3650
|
|
|
3642
3651
|
/***/ }),
|
|
3643
3652
|
|
|
3644
|
-
/***/
|
|
3653
|
+
/***/ 479:
|
|
3645
3654
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3646
3655
|
|
|
3647
3656
|
"use strict";
|
|
@@ -3664,7 +3673,14 @@ exports.SwitchTableCell = SwitchTableCell;
|
|
|
3664
3673
|
|
|
3665
3674
|
/***/ }),
|
|
3666
3675
|
|
|
3667
|
-
/***/
|
|
3676
|
+
/***/ 48:
|
|
3677
|
+
/***/ (function(module, exports) {
|
|
3678
|
+
|
|
3679
|
+
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
3680
|
+
|
|
3681
|
+
/***/ }),
|
|
3682
|
+
|
|
3683
|
+
/***/ 480:
|
|
3668
3684
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3669
3685
|
|
|
3670
3686
|
"use strict";
|
|
@@ -3675,23 +3691,30 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3675
3691
|
});
|
|
3676
3692
|
exports.TextCell = void 0;
|
|
3677
3693
|
|
|
3678
|
-
var React = __webpack_require__(
|
|
3694
|
+
var React = __webpack_require__(0);
|
|
3679
3695
|
|
|
3680
|
-
var Table_1 = __webpack_require__(
|
|
3696
|
+
var Table_1 = __webpack_require__(107);
|
|
3697
|
+
|
|
3698
|
+
var noop = function noop() {
|
|
3699
|
+
return undefined;
|
|
3700
|
+
};
|
|
3681
3701
|
|
|
3682
3702
|
var TextCell = function TextCell(_ref) {
|
|
3683
3703
|
var cell = _ref.cell,
|
|
3684
3704
|
useMouseOverEffect = _ref.useMouseOverEffect,
|
|
3685
3705
|
width = _ref.width;
|
|
3686
|
-
|
|
3687
|
-
|
|
3706
|
+
var cellStyle = React.useMemo(function () {
|
|
3707
|
+
return Object.assign(Object.assign({}, cell.style), {
|
|
3688
3708
|
width: width
|
|
3689
|
-
})
|
|
3709
|
+
});
|
|
3710
|
+
}, [cell.style, width]);
|
|
3711
|
+
return React.createElement(Table_1.default.Cell, {
|
|
3712
|
+
style: cellStyle,
|
|
3690
3713
|
align: cell.align,
|
|
3691
3714
|
"data-test-cell-type": "TextCell",
|
|
3692
3715
|
"data-row-index": cell.rowIndex,
|
|
3693
3716
|
"data-col-index": cell.columnIndex,
|
|
3694
|
-
onClick: useMouseOverEffect ?
|
|
3717
|
+
onClick: useMouseOverEffect ? noop : undefined
|
|
3695
3718
|
}, cell.value.toString());
|
|
3696
3719
|
};
|
|
3697
3720
|
|
|
@@ -3700,7 +3723,7 @@ exports.TextCell.displayName = 'TextCell';
|
|
|
3700
3723
|
|
|
3701
3724
|
/***/ }),
|
|
3702
3725
|
|
|
3703
|
-
/***/
|
|
3726
|
+
/***/ 481:
|
|
3704
3727
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3705
3728
|
|
|
3706
3729
|
"use strict";
|
|
@@ -3711,22 +3734,31 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3711
3734
|
});
|
|
3712
3735
|
exports.ArrayCell = void 0;
|
|
3713
3736
|
|
|
3714
|
-
var React = __webpack_require__(
|
|
3737
|
+
var React = __webpack_require__(0);
|
|
3715
3738
|
|
|
3716
|
-
var Table_1 = __webpack_require__(
|
|
3739
|
+
var Table_1 = __webpack_require__(107);
|
|
3740
|
+
|
|
3741
|
+
var noop = function noop() {
|
|
3742
|
+
return undefined;
|
|
3743
|
+
};
|
|
3717
3744
|
|
|
3718
3745
|
var ArrayCell = function ArrayCell(_ref) {
|
|
3719
3746
|
var cell = _ref.cell,
|
|
3720
3747
|
useMouseOverEffect = _ref.useMouseOverEffect,
|
|
3721
3748
|
width = _ref.width;
|
|
3722
|
-
var value =
|
|
3723
|
-
|
|
3724
|
-
|
|
3749
|
+
var value = React.useMemo(function () {
|
|
3750
|
+
return Array.isArray(cell.value) ? cell.value : [cell.value];
|
|
3751
|
+
}, [cell.value]);
|
|
3752
|
+
var cellStyle = React.useMemo(function () {
|
|
3753
|
+
return Object.assign(Object.assign({}, cell.style), {
|
|
3725
3754
|
width: width
|
|
3726
|
-
})
|
|
3755
|
+
});
|
|
3756
|
+
}, [cell.style, width]);
|
|
3757
|
+
return React.createElement(Table_1.default.Cell, {
|
|
3758
|
+
style: cellStyle,
|
|
3727
3759
|
align: cell.align,
|
|
3728
3760
|
"data-test-cell-type": "ArrayCell",
|
|
3729
|
-
onClick: useMouseOverEffect ?
|
|
3761
|
+
onClick: useMouseOverEffect ? noop : undefined
|
|
3730
3762
|
}, value.map(function (v, i) {
|
|
3731
3763
|
return React.createElement("div", {
|
|
3732
3764
|
key: v.toString(),
|
|
@@ -3742,7 +3774,7 @@ exports.ArrayCell.displayName = 'ArrayCell';
|
|
|
3742
3774
|
|
|
3743
3775
|
/***/ }),
|
|
3744
3776
|
|
|
3745
|
-
/***/
|
|
3777
|
+
/***/ 482:
|
|
3746
3778
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3747
3779
|
|
|
3748
3780
|
"use strict";
|
|
@@ -3755,11 +3787,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3755
3787
|
});
|
|
3756
3788
|
exports.SparklineCell = exports.validSparklineTypes = void 0;
|
|
3757
3789
|
|
|
3758
|
-
var React = __webpack_require__(
|
|
3790
|
+
var React = __webpack_require__(0);
|
|
3759
3791
|
|
|
3760
|
-
var Table_1 = __webpack_require__(
|
|
3792
|
+
var Table_1 = __webpack_require__(107);
|
|
3761
3793
|
|
|
3762
|
-
var Line_1 = __webpack_require__(
|
|
3794
|
+
var Line_1 = __webpack_require__(108);
|
|
3763
3795
|
|
|
3764
3796
|
var paddingLeftRight = 5;
|
|
3765
3797
|
var paddingTopBottom = 3;
|
|
@@ -3775,17 +3807,28 @@ var parseSparklineData = function parseSparklineData(data) {
|
|
|
3775
3807
|
|
|
3776
3808
|
exports.validSparklineTypes = ['line', 'area'];
|
|
3777
3809
|
|
|
3810
|
+
var noop = function noop() {
|
|
3811
|
+
return undefined;
|
|
3812
|
+
};
|
|
3813
|
+
|
|
3814
|
+
var svgStyle = {
|
|
3815
|
+
height: 0
|
|
3816
|
+
};
|
|
3817
|
+
var dummySVG = React.createElement("svg", {
|
|
3818
|
+
style: svgStyle
|
|
3819
|
+
});
|
|
3820
|
+
|
|
3778
3821
|
var SparklineCell = function SparklineCell(_ref) {
|
|
3779
3822
|
var cell = _ref.cell,
|
|
3780
3823
|
useMouseOverEffect = _ref.useMouseOverEffect,
|
|
3781
3824
|
width = _ref.width;
|
|
3782
3825
|
|
|
3783
|
-
var _React$useState = React.useState(
|
|
3826
|
+
var _React$useState = React.useState(),
|
|
3784
3827
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
3785
|
-
|
|
3786
|
-
|
|
3828
|
+
cellEl = _React$useState2[0],
|
|
3829
|
+
setEl = _React$useState2[1];
|
|
3787
3830
|
|
|
3788
|
-
var _React$useState3 = React.useState(
|
|
3831
|
+
var _React$useState3 = React.useState(),
|
|
3789
3832
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
3790
3833
|
height = _React$useState4[0],
|
|
3791
3834
|
setHeight = _React$useState4[1];
|
|
@@ -3793,41 +3836,43 @@ var SparklineCell = function SparklineCell(_ref) {
|
|
|
3793
3836
|
var data = React.useMemo(function () {
|
|
3794
3837
|
return parseSparklineData(cell.value);
|
|
3795
3838
|
}, [cell.value]);
|
|
3796
|
-
React.
|
|
3797
|
-
setHeight(
|
|
3798
|
-
}, [
|
|
3799
|
-
|
|
3800
|
-
|
|
3839
|
+
React.useLayoutEffect(function () {
|
|
3840
|
+
setHeight(cellEl === null || cellEl === void 0 ? void 0 : cellEl.offsetHeight);
|
|
3841
|
+
}, [cellEl]);
|
|
3842
|
+
var cellStyle = React.useMemo(function () {
|
|
3843
|
+
return Object.assign(Object.assign({}, cell.style), {
|
|
3801
3844
|
padding: 0,
|
|
3802
3845
|
margin: 0,
|
|
3803
3846
|
width: width,
|
|
3804
3847
|
height: "".concat(height, "px")
|
|
3805
|
-
})
|
|
3848
|
+
});
|
|
3849
|
+
}, [cell.style, width, height]);
|
|
3850
|
+
var lineStyle = React.useMemo(function () {
|
|
3851
|
+
return {
|
|
3852
|
+
paddingLeft: "".concat(paddingLeftRight, "px"),
|
|
3853
|
+
paddingTop: "".concat(paddingTopBottom, "px"),
|
|
3854
|
+
width: "".concat((cellEl === null || cellEl === void 0 ? void 0 : cellEl.offsetWidth) - paddingLeftRight * 2, "px"),
|
|
3855
|
+
height: "".concat(height - paddingTopBottom * 2, "px")
|
|
3856
|
+
};
|
|
3857
|
+
}, [height, cellEl]);
|
|
3858
|
+
return React.createElement(Table_1.default.Cell, {
|
|
3859
|
+
style: cellStyle,
|
|
3806
3860
|
align: cell.align,
|
|
3807
|
-
elementRef:
|
|
3861
|
+
elementRef: setEl,
|
|
3808
3862
|
"data-test-cell-type": "SparklineCell",
|
|
3809
3863
|
"data-row-index": cell.rowIndex,
|
|
3810
3864
|
"data-col-index": cell.columnIndex,
|
|
3811
|
-
onClick: useMouseOverEffect ?
|
|
3865
|
+
onClick: useMouseOverEffect ? noop : undefined
|
|
3812
3866
|
}, height ? React.createElement(Line_1.default, {
|
|
3813
|
-
style:
|
|
3814
|
-
paddingLeft: "".concat(paddingLeftRight, "px"),
|
|
3815
|
-
paddingTop: "".concat(paddingTopBottom, "px"),
|
|
3816
|
-
width: "".concat(cellRef.offsetWidth - paddingLeftRight * 2, "px"),
|
|
3817
|
-
height: "".concat(height - paddingTopBottom * 2, "px")
|
|
3818
|
-
},
|
|
3867
|
+
style: lineStyle,
|
|
3819
3868
|
data: data,
|
|
3820
|
-
width:
|
|
3869
|
+
width: (cellEl === null || cellEl === void 0 ? void 0 : cellEl.offsetWidth) - paddingLeftRight * 2,
|
|
3821
3870
|
height: height - paddingTopBottom * 2,
|
|
3822
3871
|
isArea: cell.sparklineType === 'area',
|
|
3823
3872
|
acceptNull: true,
|
|
3824
3873
|
lineColor: cell.sparklineColor,
|
|
3825
3874
|
fillColor: cell.sparklineAreaColor
|
|
3826
|
-
}) :
|
|
3827
|
-
style: {
|
|
3828
|
-
height: 0
|
|
3829
|
-
}
|
|
3830
|
-
}));
|
|
3875
|
+
}) : dummySVG);
|
|
3831
3876
|
};
|
|
3832
3877
|
|
|
3833
3878
|
exports.SparklineCell = SparklineCell;
|
|
@@ -3835,7 +3880,7 @@ exports.SparklineCell.displayName = 'SparklineCell';
|
|
|
3835
3880
|
|
|
3836
3881
|
/***/ }),
|
|
3837
3882
|
|
|
3838
|
-
/***/
|
|
3883
|
+
/***/ 483:
|
|
3839
3884
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3840
3885
|
|
|
3841
3886
|
"use strict";
|
|
@@ -3879,20 +3924,13 @@ exports.getColumnWidth = getColumnWidth;
|
|
|
3879
3924
|
|
|
3880
3925
|
/***/ }),
|
|
3881
3926
|
|
|
3882
|
-
/***/
|
|
3927
|
+
/***/ 484:
|
|
3883
3928
|
/***/ (function(module, exports) {
|
|
3884
3929
|
|
|
3885
3930
|
module.exports = require("lodash/debounce");
|
|
3886
3931
|
|
|
3887
3932
|
/***/ }),
|
|
3888
3933
|
|
|
3889
|
-
/***/ 48:
|
|
3890
|
-
/***/ (function(module, exports) {
|
|
3891
|
-
|
|
3892
|
-
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
3893
|
-
|
|
3894
|
-
/***/ }),
|
|
3895
|
-
|
|
3896
3934
|
/***/ 49:
|
|
3897
3935
|
/***/ (function(module, exports) {
|
|
3898
3936
|
|
|
@@ -3941,6 +3979,7 @@ var VizBehavior;
|
|
|
3941
3979
|
|
|
3942
3980
|
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
3943
3981
|
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
3982
|
+
VizBehavior["TRELLIS"] = "trellis";
|
|
3944
3983
|
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
3945
3984
|
|
|
3946
3985
|
/***/ }),
|
|
@@ -3948,35 +3987,42 @@ var VizBehavior;
|
|
|
3948
3987
|
/***/ 7:
|
|
3949
3988
|
/***/ (function(module, exports) {
|
|
3950
3989
|
|
|
3951
|
-
module.exports = require("@babel/runtime/helpers/
|
|
3990
|
+
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
3952
3991
|
|
|
3953
3992
|
/***/ }),
|
|
3954
3993
|
|
|
3955
3994
|
/***/ 8:
|
|
3956
3995
|
/***/ (function(module, exports) {
|
|
3957
3996
|
|
|
3958
|
-
module.exports = require("@babel/runtime/helpers/
|
|
3997
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
3959
3998
|
|
|
3960
3999
|
/***/ }),
|
|
3961
4000
|
|
|
3962
4001
|
/***/ 87:
|
|
3963
4002
|
/***/ (function(module, exports) {
|
|
3964
4003
|
|
|
3965
|
-
module.exports = require("@
|
|
4004
|
+
module.exports = require("@splunk/react-ui/Paginator");
|
|
3966
4005
|
|
|
3967
4006
|
/***/ }),
|
|
3968
4007
|
|
|
3969
|
-
/***/
|
|
4008
|
+
/***/ 88:
|
|
3970
4009
|
/***/ (function(module, exports) {
|
|
3971
4010
|
|
|
3972
|
-
module.exports = require("@babel/runtime/helpers/
|
|
4011
|
+
module.exports = require("@babel/runtime/helpers/typeof");
|
|
3973
4012
|
|
|
3974
4013
|
/***/ }),
|
|
3975
4014
|
|
|
3976
4015
|
/***/ 9:
|
|
3977
4016
|
/***/ (function(module, exports) {
|
|
3978
4017
|
|
|
3979
|
-
module.exports = require("@splunk/
|
|
4018
|
+
module.exports = require("@splunk/visualizations-shared/Message");
|
|
4019
|
+
|
|
4020
|
+
/***/ }),
|
|
4021
|
+
|
|
4022
|
+
/***/ 93:
|
|
4023
|
+
/***/ (function(module, exports) {
|
|
4024
|
+
|
|
4025
|
+
module.exports = require("@babel/runtime/helpers/taggedTemplateLiteral");
|
|
3980
4026
|
|
|
3981
4027
|
/***/ })
|
|
3982
4028
|
|