@splunk/visualizations 25.5.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_PureVisualizations_PureEvents_TimeControlsPopover_Dark.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_TimeControlsPopover_DarkPrisma.png +0 -0
- package/.loki/reference/chrome_docker_PureVisualizations_PureEvents_TimeControlsPopover_Light.png +0 -0
- 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_Events_Events_Background_Color_Light_Blue.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Basic_Events.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Event_Actions.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Field_Actions.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Field_Summary.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Field_Summary_Simulated_Instance.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Footer_Fields.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Value_Highlighting.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Width_Height.png +0 -0
- package/.loki/reference/chrome_docker_Visualizations_Events_Events_Width_Percentage_50.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 +330 -226
- package/Area.js.map +1 -1
- package/Bar.config.js +36 -8
- package/Bar.config.js.map +1 -1
- package/Bar.js +354 -227
- package/Bar.js.map +1 -1
- package/Bubble.config.js +7 -2
- package/Bubble.config.js.map +1 -1
- package/Bubble.js +318 -214
- package/Bubble.js.map +1 -1
- package/ChoroplethSvg.config.js +12 -8
- package/ChoroplethSvg.config.js.map +1 -1
- package/ChoroplethSvg.js +324 -229
- package/ChoroplethSvg.js.map +1 -1
- package/Column.config.js +36 -8
- package/Column.config.js.map +1 -1
- package/Column.js +354 -227
- package/Column.js.map +1 -1
- package/Ellipse.config.js +23 -20
- package/Ellipse.config.js.map +1 -1
- package/Ellipse.js +289 -187
- package/Ellipse.js.map +1 -1
- package/Events.config.js +82 -19
- package/Events.config.js.map +1 -1
- package/Events.js +1276 -416
- 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 +311 -204
- package/FillerGauge.js.map +1 -1
- package/Image.config.js +3 -3
- package/Image.config.js.map +1 -1
- package/Image.js +249 -151
- 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 +335 -226
- package/Line.js.map +1 -1
- package/LinkGraph.config.js +9 -15
- package/LinkGraph.config.js.map +1 -1
- package/LinkGraph.js +881 -790
- package/LinkGraph.js.map +1 -1
- package/Map.config.js +51 -48
- package/Map.config.js.map +1 -1
- package/Map.js +804 -711
- package/Map.js.map +1 -1
- package/Markdown.config.js +10 -9
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +365 -266
- package/Markdown.js.map +1 -1
- package/MarkerGauge.config.js +71 -70
- package/MarkerGauge.config.js.map +1 -1
- package/MarkerGauge.js +422 -330
- package/MarkerGauge.js.map +1 -1
- package/ParallelCoordinates.config.js +3 -3
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +532 -430
- package/ParallelCoordinates.js.map +1 -1
- package/Pie.config.js +30 -6
- package/Pie.config.js.map +1 -1
- package/Pie.js +553 -431
- package/Pie.js.map +1 -1
- package/Punchcard.config.js +3 -2
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +556 -464
- package/Punchcard.js.map +1 -1
- package/Rectangle.config.js +22 -23
- package/Rectangle.config.js.map +1 -1
- package/Rectangle.js +383 -286
- package/Rectangle.js.map +1 -1
- package/Sankey.config.js +14 -13
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +3126 -3034
- package/Sankey.js.map +1 -1
- package/Scatter.config.js +552 -580
- package/Scatter.config.js.map +1 -1
- package/Scatter.js +410 -311
- package/Scatter.js.map +1 -1
- package/SingleValue.config.js +242 -52
- package/SingleValue.config.js.map +1 -1
- package/SingleValue.js +1605 -414
- package/SingleValue.js.map +1 -1
- package/SingleValueBasic.js +41 -30
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon.config.js +267 -58
- package/SingleValueIcon.config.js.map +1 -1
- package/SingleValueIcon.js +1622 -410
- package/SingleValueIcon.js.map +1 -1
- package/SingleValueRadial.config.js +249 -41
- package/SingleValueRadial.config.js.map +1 -1
- package/SingleValueRadial.js +1517 -283
- 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 +435 -311
- package/Table.js.map +1 -1
- package/common/EventsDoc.js +12 -6
- package/common/EventsDoc.js.map +1 -1
- package/common/GaugeMajorTicks.js +2 -2
- package/common/GaugeValueMarker.js +2 -2
- package/common/OptionsDoc.js +14 -14
- package/common/OptionsDoc.js.map +1 -1
- package/common/ThemesDoc.js +10 -10
- package/common/ThemesDoc.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 +148 -54
- package/common/withDashboardViz.js.map +1 -1
- package/package.json +14 -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,21 +95,35 @@ 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
|
+
|
|
114
|
+
/***/ }),
|
|
115
|
+
|
|
116
|
+
/***/ 107:
|
|
117
|
+
/***/ (function(module, exports) {
|
|
118
|
+
|
|
119
|
+
module.exports = require("@splunk/react-ui/Table");
|
|
120
|
+
|
|
121
|
+
/***/ }),
|
|
122
|
+
|
|
123
|
+
/***/ 108:
|
|
124
|
+
/***/ (function(module, exports) {
|
|
125
|
+
|
|
126
|
+
module.exports = require("@splunk/react-sparkline/Line");
|
|
113
127
|
|
|
114
128
|
/***/ }),
|
|
115
129
|
|
|
@@ -127,22 +141,10 @@ module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
|
127
141
|
|
|
128
142
|
/***/ }),
|
|
129
143
|
|
|
130
|
-
/***/
|
|
131
|
-
/***/ (function(module, exports
|
|
132
|
-
|
|
133
|
-
"use strict";
|
|
134
|
-
|
|
144
|
+
/***/ 123:
|
|
145
|
+
/***/ (function(module, exports) {
|
|
135
146
|
|
|
136
|
-
|
|
137
|
-
value: true
|
|
138
|
-
});
|
|
139
|
-
exports.validFontSizes = exports.validTextOverflows = exports.validAlignments = exports.validHeaderVisibilities = exports.validSparklineTypes = exports.validCellRenderers = void 0;
|
|
140
|
-
exports.validCellRenderers = ['TextCell', 'ArrayCell', 'SparklineCell'];
|
|
141
|
-
exports.validSparklineTypes = ['line', 'area'];
|
|
142
|
-
exports.validHeaderVisibilities = ['none', 'fixed', 'inline'];
|
|
143
|
-
exports.validAlignments = ['left', 'center', 'right'];
|
|
144
|
-
exports.validTextOverflows = ['anywhere', 'break-word', 'ellipsis'];
|
|
145
|
-
exports.validFontSizes = ['extraSmall', 'small', 'default', 'large'];
|
|
147
|
+
module.exports = require("@splunk/react-ui/Message");
|
|
146
148
|
|
|
147
149
|
/***/ }),
|
|
148
150
|
|
|
@@ -156,13 +158,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
156
158
|
value: true
|
|
157
159
|
});
|
|
158
160
|
|
|
159
|
-
var React = __webpack_require__(
|
|
161
|
+
var React = __webpack_require__(0);
|
|
160
162
|
|
|
161
163
|
var styled_components_1 = __webpack_require__(4);
|
|
162
164
|
|
|
163
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
165
|
+
var SizeAwareWrapper_1 = __webpack_require__(18);
|
|
164
166
|
|
|
165
|
-
var style_1 = __webpack_require__(
|
|
167
|
+
var style_1 = __webpack_require__(14);
|
|
166
168
|
|
|
167
169
|
var colorUtils_1 = __webpack_require__(12);
|
|
168
170
|
|
|
@@ -221,7 +223,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
221
223
|
|
|
222
224
|
return React.createElement(FixSizeItem, {
|
|
223
225
|
"data-test": "fix-size-item",
|
|
224
|
-
"data-splunk-visualization-version": "25.
|
|
226
|
+
"data-splunk-visualization-version": "25.7.0 - d10a7789b",
|
|
225
227
|
width: width,
|
|
226
228
|
height: height,
|
|
227
229
|
backgroundColor: backgroundColor
|
|
@@ -243,7 +245,33 @@ exports.default = withFixedSizeContainer;
|
|
|
243
245
|
|
|
244
246
|
/***/ }),
|
|
245
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
|
+
|
|
246
267
|
/***/ 14:
|
|
268
|
+
/***/ (function(module, exports) {
|
|
269
|
+
|
|
270
|
+
module.exports = require("@splunk/visualizations-shared/style");
|
|
271
|
+
|
|
272
|
+
/***/ }),
|
|
273
|
+
|
|
274
|
+
/***/ 15:
|
|
247
275
|
/***/ (function(module, exports, __webpack_require__) {
|
|
248
276
|
|
|
249
277
|
"use strict";
|
|
@@ -276,20 +304,20 @@ exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
|
276
304
|
|
|
277
305
|
/***/ }),
|
|
278
306
|
|
|
279
|
-
/***/
|
|
307
|
+
/***/ 16:
|
|
280
308
|
/***/ (function(module, exports) {
|
|
281
309
|
|
|
282
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
310
|
+
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
283
311
|
|
|
284
312
|
/***/ }),
|
|
285
313
|
|
|
286
|
-
/***/
|
|
314
|
+
/***/ 164:
|
|
287
315
|
/***/ (function(module, exports, __webpack_require__) {
|
|
288
316
|
|
|
289
317
|
"use strict";
|
|
290
318
|
|
|
291
319
|
|
|
292
|
-
var _slicedToArray = __webpack_require__(
|
|
320
|
+
var _slicedToArray = __webpack_require__(17);
|
|
293
321
|
|
|
294
322
|
var __rest = this && this.__rest || function (s, e) {
|
|
295
323
|
var t = {};
|
|
@@ -313,13 +341,13 @@ var lodash_1 = __webpack_require__(3);
|
|
|
313
341
|
|
|
314
342
|
var colorUtils_1 = __webpack_require__(12);
|
|
315
343
|
|
|
316
|
-
var config_1 = __webpack_require__(
|
|
344
|
+
var config_1 = __webpack_require__(475);
|
|
317
345
|
|
|
318
346
|
exports.config = config_1.default;
|
|
319
347
|
|
|
320
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
348
|
+
var withDashboardViz_1 = __webpack_require__(36);
|
|
321
349
|
|
|
322
|
-
var PureTable_1 = __webpack_require__(
|
|
350
|
+
var PureTable_1 = __webpack_require__(476);
|
|
323
351
|
|
|
324
352
|
exports.PureTable = PureTable_1.default;
|
|
325
353
|
|
|
@@ -397,22 +425,29 @@ exports.default = Table;
|
|
|
397
425
|
|
|
398
426
|
/***/ }),
|
|
399
427
|
|
|
400
|
-
/***/
|
|
428
|
+
/***/ 17:
|
|
401
429
|
/***/ (function(module, exports) {
|
|
402
430
|
|
|
403
|
-
module.exports = require("@
|
|
431
|
+
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
404
432
|
|
|
405
433
|
/***/ }),
|
|
406
434
|
|
|
407
|
-
/***/
|
|
435
|
+
/***/ 18:
|
|
436
|
+
/***/ (function(module, exports) {
|
|
437
|
+
|
|
438
|
+
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
439
|
+
|
|
440
|
+
/***/ }),
|
|
441
|
+
|
|
442
|
+
/***/ 19:
|
|
408
443
|
/***/ (function(module, exports, __webpack_require__) {
|
|
409
444
|
|
|
410
445
|
"use strict";
|
|
411
446
|
|
|
412
447
|
|
|
413
|
-
var _toConsumableArray = __webpack_require__(
|
|
448
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
414
449
|
|
|
415
|
-
var _defineProperty = __webpack_require__(
|
|
450
|
+
var _defineProperty = __webpack_require__(8);
|
|
416
451
|
|
|
417
452
|
var __rest = this && this.__rest || function (s, e) {
|
|
418
453
|
var t = {};
|
|
@@ -641,56 +676,70 @@ exports.insertLayout = insertLayout;
|
|
|
641
676
|
|
|
642
677
|
/***/ }),
|
|
643
678
|
|
|
644
|
-
/***/
|
|
679
|
+
/***/ 2:
|
|
645
680
|
/***/ (function(module, exports) {
|
|
646
681
|
|
|
647
|
-
module.exports = require("@
|
|
682
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
648
683
|
|
|
649
684
|
/***/ }),
|
|
650
685
|
|
|
651
|
-
/***/
|
|
686
|
+
/***/ 20:
|
|
652
687
|
/***/ (function(module, exports) {
|
|
653
688
|
|
|
654
|
-
module.exports = require("@splunk/
|
|
689
|
+
module.exports = require("@splunk/visualization-context/FeatureFlagContext");
|
|
655
690
|
|
|
656
691
|
/***/ }),
|
|
657
692
|
|
|
658
|
-
/***/
|
|
693
|
+
/***/ 22:
|
|
659
694
|
/***/ (function(module, exports) {
|
|
660
695
|
|
|
661
|
-
module.exports = require("@
|
|
696
|
+
module.exports = require("@babel/runtime/helpers/createClass");
|
|
662
697
|
|
|
663
698
|
/***/ }),
|
|
664
699
|
|
|
665
|
-
/***/
|
|
700
|
+
/***/ 23:
|
|
666
701
|
/***/ (function(module, exports) {
|
|
667
702
|
|
|
668
703
|
module.exports = require("@splunk/themes/pick");
|
|
669
704
|
|
|
670
705
|
/***/ }),
|
|
671
706
|
|
|
672
|
-
/***/
|
|
707
|
+
/***/ 25:
|
|
673
708
|
/***/ (function(module, exports) {
|
|
674
709
|
|
|
675
710
|
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
676
711
|
|
|
677
712
|
/***/ }),
|
|
678
713
|
|
|
679
|
-
/***/
|
|
714
|
+
/***/ 26:
|
|
680
715
|
/***/ (function(module, exports) {
|
|
681
716
|
|
|
682
717
|
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
683
718
|
|
|
684
719
|
/***/ }),
|
|
685
720
|
|
|
686
|
-
/***/
|
|
721
|
+
/***/ 27:
|
|
687
722
|
/***/ (function(module, exports) {
|
|
688
723
|
|
|
689
724
|
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
690
725
|
|
|
691
726
|
/***/ }),
|
|
692
727
|
|
|
693
|
-
/***/
|
|
728
|
+
/***/ 29:
|
|
729
|
+
/***/ (function(module, exports) {
|
|
730
|
+
|
|
731
|
+
module.exports = require("@splunk/visualization-encoding/Options");
|
|
732
|
+
|
|
733
|
+
/***/ }),
|
|
734
|
+
|
|
735
|
+
/***/ 3:
|
|
736
|
+
/***/ (function(module, exports) {
|
|
737
|
+
|
|
738
|
+
module.exports = require("lodash");
|
|
739
|
+
|
|
740
|
+
/***/ }),
|
|
741
|
+
|
|
742
|
+
/***/ 31:
|
|
694
743
|
/***/ (function(module, exports, __webpack_require__) {
|
|
695
744
|
|
|
696
745
|
"use strict";
|
|
@@ -701,15 +750,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
701
750
|
});
|
|
702
751
|
exports.shouldShowIconPlaceholder = void 0;
|
|
703
752
|
|
|
704
|
-
var React = __webpack_require__(
|
|
753
|
+
var React = __webpack_require__(0);
|
|
705
754
|
|
|
706
|
-
var T = __webpack_require__(
|
|
755
|
+
var T = __webpack_require__(1);
|
|
707
756
|
|
|
708
757
|
var lodash_1 = __webpack_require__(3);
|
|
709
758
|
|
|
710
759
|
var i18n_1 = __webpack_require__(2);
|
|
711
760
|
|
|
712
|
-
var Message_1 = __webpack_require__(
|
|
761
|
+
var Message_1 = __webpack_require__(9);
|
|
713
762
|
|
|
714
763
|
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
715
764
|
/**
|
|
@@ -782,24 +831,31 @@ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
|
782
831
|
|
|
783
832
|
/***/ }),
|
|
784
833
|
|
|
785
|
-
/***/
|
|
834
|
+
/***/ 32:
|
|
835
|
+
/***/ (function(module, exports) {
|
|
836
|
+
|
|
837
|
+
module.exports = require("@splunk/ui-utils/id");
|
|
838
|
+
|
|
839
|
+
/***/ }),
|
|
840
|
+
|
|
841
|
+
/***/ 33:
|
|
786
842
|
/***/ (function(module, exports, __webpack_require__) {
|
|
787
843
|
|
|
788
844
|
"use strict";
|
|
789
845
|
|
|
790
846
|
|
|
791
|
-
var _defineProperty = __webpack_require__(
|
|
847
|
+
var _defineProperty = __webpack_require__(8);
|
|
792
848
|
|
|
793
849
|
Object.defineProperty(exports, "__esModule", {
|
|
794
850
|
value: true
|
|
795
851
|
});
|
|
796
852
|
exports.getSortingParams = exports.SortParamsPropTypes = void 0;
|
|
797
853
|
|
|
798
|
-
var T = __webpack_require__(
|
|
854
|
+
var T = __webpack_require__(1);
|
|
799
855
|
|
|
800
856
|
var lodash_1 = __webpack_require__(3);
|
|
801
857
|
|
|
802
|
-
var DataSource_1 = __webpack_require__(
|
|
858
|
+
var DataSource_1 = __webpack_require__(43);
|
|
803
859
|
|
|
804
860
|
exports.SortParamsPropTypes = T.shape({
|
|
805
861
|
currentSortKey: T.string,
|
|
@@ -819,7 +875,7 @@ var getSortingParams = function getSortingParams(_ref) {
|
|
|
819
875
|
};
|
|
820
876
|
var onSort;
|
|
821
877
|
|
|
822
|
-
if (
|
|
878
|
+
if (typeof onRequestParamsChange === 'function') {
|
|
823
879
|
if (requestParams && lodash_1.has(requestParams, 'sort')) {
|
|
824
880
|
currentSortKey = Object.keys(requestParams.sort).shift();
|
|
825
881
|
currentSortDir = requestParams.sort[currentSortKey];
|
|
@@ -853,7 +909,7 @@ exports.getSortingParams = getSortingParams;
|
|
|
853
909
|
|
|
854
910
|
/***/ }),
|
|
855
911
|
|
|
856
|
-
/***/
|
|
912
|
+
/***/ 34:
|
|
857
913
|
/***/ (function(module, exports, __webpack_require__) {
|
|
858
914
|
|
|
859
915
|
"use strict";
|
|
@@ -864,7 +920,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
864
920
|
});
|
|
865
921
|
exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
|
|
866
922
|
|
|
867
|
-
var T = __webpack_require__(
|
|
923
|
+
var T = __webpack_require__(1);
|
|
868
924
|
|
|
869
925
|
var lodash_1 = __webpack_require__(3);
|
|
870
926
|
|
|
@@ -884,7 +940,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
884
940
|
var count = requestParams && requestParams.count;
|
|
885
941
|
var totalPages = typeof count === 'number' && count > 0 ? Math.ceil(totalCount / count) : 0;
|
|
886
942
|
var current = typeof count === 'number' && count > 0 ? Math.floor(offset / count) + 1 : 0;
|
|
887
|
-
var isPaging = totalPages > 1 &&
|
|
943
|
+
var isPaging = totalPages > 1 && typeof onRequestParamsChange === 'function';
|
|
888
944
|
|
|
889
945
|
var onChangeHandler = function onChangeHandler(e, _ref2) {
|
|
890
946
|
var page = _ref2.page,
|
|
@@ -910,7 +966,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
910
966
|
isPaging: isPaging,
|
|
911
967
|
current: current,
|
|
912
968
|
totalPages: totalPages,
|
|
913
|
-
onChange:
|
|
969
|
+
onChange: typeof onRequestParamsChange === 'function' ? onChangeHandler : lodash_1.noop
|
|
914
970
|
};
|
|
915
971
|
};
|
|
916
972
|
|
|
@@ -918,14 +974,7 @@ exports.getPaginationParams = getPaginationParams;
|
|
|
918
974
|
|
|
919
975
|
/***/ }),
|
|
920
976
|
|
|
921
|
-
/***/
|
|
922
|
-
/***/ (function(module, exports) {
|
|
923
|
-
|
|
924
|
-
module.exports = require("lodash");
|
|
925
|
-
|
|
926
|
-
/***/ }),
|
|
927
|
-
|
|
928
|
-
/***/ 31:
|
|
977
|
+
/***/ 35:
|
|
929
978
|
/***/ (function(module, exports, __webpack_require__) {
|
|
930
979
|
|
|
931
980
|
"use strict";
|
|
@@ -954,58 +1003,67 @@ var VizCategory;
|
|
|
954
1003
|
|
|
955
1004
|
/***/ }),
|
|
956
1005
|
|
|
957
|
-
/***/
|
|
1006
|
+
/***/ 36:
|
|
958
1007
|
/***/ (function(module, exports, __webpack_require__) {
|
|
959
1008
|
|
|
960
1009
|
"use strict";
|
|
961
1010
|
|
|
962
1011
|
|
|
1012
|
+
var _slicedToArray = __webpack_require__(17);
|
|
1013
|
+
|
|
963
1014
|
Object.defineProperty(exports, "__esModule", {
|
|
964
1015
|
value: true
|
|
965
1016
|
});
|
|
966
1017
|
|
|
967
|
-
var React = __webpack_require__(
|
|
1018
|
+
var React = __webpack_require__(0);
|
|
968
1019
|
|
|
969
1020
|
var lodash_1 = __webpack_require__(3);
|
|
970
1021
|
|
|
971
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
1022
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(37);
|
|
972
1023
|
|
|
973
|
-
var Options_1 = __webpack_require__(
|
|
1024
|
+
var Options_1 = __webpack_require__(29);
|
|
974
1025
|
|
|
975
|
-
var SanitizeProps_1 = __webpack_require__(
|
|
1026
|
+
var SanitizeProps_1 = __webpack_require__(38);
|
|
976
1027
|
|
|
977
|
-
var TimezoneContext_1 = __webpack_require__(
|
|
1028
|
+
var TimezoneContext_1 = __webpack_require__(25);
|
|
978
1029
|
|
|
979
|
-
var moment_1 = __webpack_require__(
|
|
1030
|
+
var moment_1 = __webpack_require__(39);
|
|
1031
|
+
|
|
1032
|
+
var FeatureFlagContext_1 = __webpack_require__(20);
|
|
980
1033
|
|
|
981
1034
|
var styled_components_1 = __webpack_require__(4);
|
|
982
1035
|
|
|
983
|
-
var hocUtils_1 = __webpack_require__(
|
|
1036
|
+
var hocUtils_1 = __webpack_require__(26);
|
|
1037
|
+
|
|
1038
|
+
var JSONSchemaUtils_1 = __webpack_require__(27);
|
|
1039
|
+
|
|
1040
|
+
var async_dynamic_options_evaluator_1 = __webpack_require__(40);
|
|
984
1041
|
|
|
985
|
-
var
|
|
1042
|
+
var id_1 = __webpack_require__(32);
|
|
986
1043
|
|
|
987
|
-
var SplunkVisualization_1 = __webpack_require__(
|
|
1044
|
+
var SplunkVisualization_1 = __webpack_require__(41);
|
|
988
1045
|
|
|
989
1046
|
var VizBehavior_1 = __webpack_require__(6);
|
|
990
1047
|
|
|
991
|
-
var getSorting_1 = __webpack_require__(
|
|
1048
|
+
var getSorting_1 = __webpack_require__(33);
|
|
992
1049
|
|
|
993
|
-
var getPagination_1 = __webpack_require__(
|
|
1050
|
+
var getPagination_1 = __webpack_require__(34);
|
|
994
1051
|
|
|
995
|
-
var useDeepMemo_1 = __webpack_require__(
|
|
1052
|
+
var useDeepMemo_1 = __webpack_require__(44);
|
|
996
1053
|
|
|
997
|
-
var MissingPropsMessage_1 = __webpack_require__(
|
|
1054
|
+
var MissingPropsMessage_1 = __webpack_require__(45);
|
|
998
1055
|
|
|
999
|
-
var withEditModeCover_1 = __webpack_require__(
|
|
1056
|
+
var withEditModeCover_1 = __webpack_require__(46);
|
|
1000
1057
|
|
|
1001
|
-
var withPlaceholder_1 = __webpack_require__(
|
|
1058
|
+
var withPlaceholder_1 = __webpack_require__(47);
|
|
1059
|
+
|
|
1060
|
+
var UUID = id_1.createGUID();
|
|
1002
1061
|
/**
|
|
1003
1062
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
1004
1063
|
* @param {DashboardVizOpts} opts
|
|
1005
1064
|
* @returns {HOC}
|
|
1006
1065
|
*/
|
|
1007
1066
|
|
|
1008
|
-
|
|
1009
1067
|
var withDashboardViz = function withDashboardViz(opts) {
|
|
1010
1068
|
var ReactViz = opts.ReactViz,
|
|
1011
1069
|
vizConfig = opts.vizConfig,
|
|
@@ -1018,6 +1076,8 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1018
1076
|
var defaultOptions = JSONSchemaUtils_1.pickFieldFromJSONSchema(vizConfig.optionsSchema, 'default');
|
|
1019
1077
|
|
|
1020
1078
|
var DashboardViz = function DashboardViz(props) {
|
|
1079
|
+
var _a;
|
|
1080
|
+
|
|
1021
1081
|
var mode = props.mode,
|
|
1022
1082
|
hasEventHandlers = props.hasEventHandlers,
|
|
1023
1083
|
dataSources = props.dataSources,
|
|
@@ -1065,38 +1125,97 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1065
1125
|
|
|
1066
1126
|
var evaluatedOptions = {}; // evaluatedOptions need to be initialized as an empty object
|
|
1067
1127
|
|
|
1128
|
+
var _React$useState = React.useState({}),
|
|
1129
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
1130
|
+
evaluatedOptionsAsync = _React$useState2[0],
|
|
1131
|
+
setEvaluatedOptionsAsync = _React$useState2[1]; // evaluatedOptions need to be initialized as an empty object
|
|
1132
|
+
|
|
1133
|
+
|
|
1134
|
+
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
1135
|
+
|
|
1136
|
+
var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(UUID)),
|
|
1137
|
+
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
1138
|
+
visualizationID = _React$useState4[0];
|
|
1139
|
+
|
|
1140
|
+
var _React$useState5 = React.useState(Boolean(featureFlagContext && featureFlagContext.visualizations_useWebWorkersForDSL && typeof Worker !== 'undefined')),
|
|
1141
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
1142
|
+
useAsyncEvaluatedOptions = _React$useState6[0],
|
|
1143
|
+
setUseAsyncEvaluatedOptions = _React$useState6[1];
|
|
1144
|
+
|
|
1068
1145
|
evaluatedOptions = useDeepMemo_1.useDeepMemo(function () {
|
|
1069
1146
|
try {
|
|
1070
|
-
|
|
1071
|
-
|
|
1072
|
-
|
|
1073
|
-
|
|
1147
|
+
if (useAsyncEvaluatedOptions) {
|
|
1148
|
+
var optionsToEvaluate = {
|
|
1149
|
+
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
1150
|
+
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
1151
|
+
};
|
|
1152
|
+
var asyncDynamicOptionsEvaluatorParams = {
|
|
1153
|
+
visualizationID: visualizationID,
|
|
1154
|
+
props: props,
|
|
1155
|
+
options: optionsToEvaluate,
|
|
1156
|
+
dataSources: dataSources,
|
|
1157
|
+
theme: vizConfig.themes
|
|
1158
|
+
};
|
|
1159
|
+
async_dynamic_options_evaluator_1.default.evaluate(asyncDynamicOptionsEvaluatorParams).then(function (results) {
|
|
1160
|
+
setEvaluatedOptionsAsync(results.results);
|
|
1161
|
+
}).catch(function (e) {
|
|
1162
|
+
// eslint-disable-next-line no-console
|
|
1163
|
+
console.error("unexpected error evaluating options - async: ".concat(e.message));
|
|
1164
|
+
setUseAsyncEvaluatedOptions(false);
|
|
1165
|
+
});
|
|
1166
|
+
} else {
|
|
1167
|
+
return Options_1.Options.evaluate({
|
|
1168
|
+
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
1169
|
+
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
1170
|
+
}, dataSources, themeFunc);
|
|
1171
|
+
}
|
|
1074
1172
|
} catch (e) {
|
|
1075
1173
|
// eslint-disable-next-line no-console
|
|
1076
|
-
console.error("unexpected error evaluating options:
|
|
1174
|
+
console.error("unexpected error evaluating options: ".concat(e.message));
|
|
1077
1175
|
return {};
|
|
1078
1176
|
}
|
|
1079
|
-
|
|
1177
|
+
|
|
1178
|
+
return {};
|
|
1179
|
+
}, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone, useAsyncEvaluatedOptions]);
|
|
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
|
|
1080
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
|
|
1081
1191
|
|
|
1192
|
+
|
|
1193
|
+
React.useEffect(function () {
|
|
1194
|
+
onComputedProps(clonedEvaluatedOptions);
|
|
1195
|
+
});
|
|
1082
1196
|
React.useEffect(function () {
|
|
1083
|
-
|
|
1084
|
-
|
|
1197
|
+
return function () {
|
|
1198
|
+
if (useAsyncEvaluatedOptions) {
|
|
1199
|
+
async_dynamic_options_evaluator_1.default.reset(visualizationID);
|
|
1200
|
+
}
|
|
1201
|
+
}; // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1202
|
+
}, []); // present warning message if any required props are missing
|
|
1085
1203
|
|
|
1086
1204
|
var _vizConfig$requiredPr = vizConfig.requiredProps,
|
|
1087
1205
|
requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
|
|
1088
1206
|
supports = vizConfig.supports;
|
|
1089
|
-
var missing = MissingPropsMessage_1.missingKeys(requiredProps,
|
|
1090
|
-
|
|
1091
|
-
if (missing.length > 0 && supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER)
|
|
1092
|
-
|
|
1093
|
-
|
|
1094
|
-
|
|
1095
|
-
|
|
1096
|
-
|
|
1097
|
-
|
|
1098
|
-
|
|
1099
|
-
|
|
1207
|
+
var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptionsToUse);
|
|
1208
|
+
|
|
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
|
|
1100
1219
|
|
|
1101
1220
|
|
|
1102
1221
|
var eventCallbackProps = {};
|
|
@@ -1113,7 +1232,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1113
1232
|
|
|
1114
1233
|
if (Array.isArray(payloadKeys) && payloadKeys.length) {
|
|
1115
1234
|
payloadKeys.forEach(function (p) {
|
|
1116
|
-
payload[p] =
|
|
1235
|
+
payload[p] = evaluatedOptionsToUse[p];
|
|
1117
1236
|
});
|
|
1118
1237
|
}
|
|
1119
1238
|
|
|
@@ -1132,7 +1251,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1132
1251
|
} // compute pure viz props which are not from options
|
|
1133
1252
|
|
|
1134
1253
|
|
|
1135
|
-
var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props),
|
|
1254
|
+
var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props), evaluatedOptionsToUse), eventCallbackProps), {
|
|
1136
1255
|
themeFunc: themeFunc
|
|
1137
1256
|
}));
|
|
1138
1257
|
/**
|
|
@@ -1152,7 +1271,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1152
1271
|
|
|
1153
1272
|
var dataSourceMetadata = {};
|
|
1154
1273
|
var OptionKey = 'paginateDataSourceKey';
|
|
1155
|
-
var paginateDataSourceKey = lodash_1.has(
|
|
1274
|
+
var paginateDataSourceKey = lodash_1.has(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
|
|
1156
1275
|
|
|
1157
1276
|
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && lodash_1.has(dataSources, paginateDataSourceKey)) {
|
|
1158
1277
|
var requestParams = lodash_1.get(dataSources, [paginateDataSourceKey, 'requestParams'], {});
|
|
@@ -1182,7 +1301,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1182
1301
|
mode: mode,
|
|
1183
1302
|
width: width,
|
|
1184
1303
|
height: height
|
|
1185
|
-
},
|
|
1304
|
+
}, evaluatedOptionsToUse, computedVizProps, eventCallbackProps, dataSourceMetadata));
|
|
1186
1305
|
};
|
|
1187
1306
|
|
|
1188
1307
|
DashboardViz.propTypes = Object.assign(Object.assign({}, SplunkVisualization_1.default.propTypes), ReactViz.propTypes);
|
|
@@ -1200,35 +1319,42 @@ exports.default = withDashboardViz;
|
|
|
1200
1319
|
|
|
1201
1320
|
/***/ }),
|
|
1202
1321
|
|
|
1203
|
-
/***/
|
|
1322
|
+
/***/ 37:
|
|
1204
1323
|
/***/ (function(module, exports) {
|
|
1205
1324
|
|
|
1206
1325
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
1207
1326
|
|
|
1208
1327
|
/***/ }),
|
|
1209
1328
|
|
|
1210
|
-
/***/
|
|
1329
|
+
/***/ 38:
|
|
1211
1330
|
/***/ (function(module, exports) {
|
|
1212
1331
|
|
|
1213
|
-
module.exports = require("@splunk/
|
|
1332
|
+
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
1214
1333
|
|
|
1215
1334
|
/***/ }),
|
|
1216
1335
|
|
|
1217
|
-
/***/
|
|
1336
|
+
/***/ 39:
|
|
1218
1337
|
/***/ (function(module, exports) {
|
|
1219
1338
|
|
|
1220
|
-
module.exports = require("@splunk/
|
|
1339
|
+
module.exports = require("@splunk/moment");
|
|
1221
1340
|
|
|
1222
1341
|
/***/ }),
|
|
1223
1342
|
|
|
1224
|
-
/***/
|
|
1343
|
+
/***/ 4:
|
|
1225
1344
|
/***/ (function(module, exports) {
|
|
1226
1345
|
|
|
1227
|
-
module.exports = require("
|
|
1346
|
+
module.exports = require("styled-components");
|
|
1228
1347
|
|
|
1229
1348
|
/***/ }),
|
|
1230
1349
|
|
|
1231
|
-
/***/
|
|
1350
|
+
/***/ 40:
|
|
1351
|
+
/***/ (function(module, exports) {
|
|
1352
|
+
|
|
1353
|
+
module.exports = require("@splunk/async-dynamic-options-evaluator");
|
|
1354
|
+
|
|
1355
|
+
/***/ }),
|
|
1356
|
+
|
|
1357
|
+
/***/ 41:
|
|
1232
1358
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1233
1359
|
|
|
1234
1360
|
"use strict";
|
|
@@ -1242,11 +1368,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1242
1368
|
exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
|
|
1243
1369
|
/* eslint-disable react/no-unused-prop-types,react/prefer-stateless-function */
|
|
1244
1370
|
|
|
1245
|
-
var T = __webpack_require__(
|
|
1371
|
+
var T = __webpack_require__(1);
|
|
1246
1372
|
|
|
1247
1373
|
var lodash_1 = __webpack_require__(3);
|
|
1248
1374
|
|
|
1249
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
1375
|
+
var VizActionHandler_1 = __webpack_require__(42); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
1250
1376
|
|
|
1251
1377
|
|
|
1252
1378
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -1380,7 +1506,7 @@ exports.default = SplunkVisualization;
|
|
|
1380
1506
|
|
|
1381
1507
|
/***/ }),
|
|
1382
1508
|
|
|
1383
|
-
/***/
|
|
1509
|
+
/***/ 42:
|
|
1384
1510
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1385
1511
|
|
|
1386
1512
|
"use strict";
|
|
@@ -1388,7 +1514,7 @@ exports.default = SplunkVisualization;
|
|
|
1388
1514
|
|
|
1389
1515
|
var _classCallCheck = __webpack_require__(11);
|
|
1390
1516
|
|
|
1391
|
-
var _createClass = __webpack_require__(
|
|
1517
|
+
var _createClass = __webpack_require__(22);
|
|
1392
1518
|
|
|
1393
1519
|
Object.defineProperty(exports, "__esModule", {
|
|
1394
1520
|
value: true
|
|
@@ -1418,7 +1544,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
|
1418
1544
|
|
|
1419
1545
|
/***/ }),
|
|
1420
1546
|
|
|
1421
|
-
/***/
|
|
1547
|
+
/***/ 43:
|
|
1422
1548
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1423
1549
|
|
|
1424
1550
|
"use strict";
|
|
@@ -1432,14 +1558,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
|
1432
1558
|
|
|
1433
1559
|
/***/ }),
|
|
1434
1560
|
|
|
1435
|
-
/***/
|
|
1436
|
-
/***/ (function(module, exports) {
|
|
1437
|
-
|
|
1438
|
-
module.exports = require("styled-components");
|
|
1439
|
-
|
|
1440
|
-
/***/ }),
|
|
1441
|
-
|
|
1442
|
-
/***/ 40:
|
|
1561
|
+
/***/ 44:
|
|
1443
1562
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1444
1563
|
|
|
1445
1564
|
"use strict";
|
|
@@ -1450,7 +1569,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1450
1569
|
});
|
|
1451
1570
|
exports.useDeepMemo = void 0;
|
|
1452
1571
|
|
|
1453
|
-
var react_1 = __webpack_require__(
|
|
1572
|
+
var react_1 = __webpack_require__(0);
|
|
1454
1573
|
|
|
1455
1574
|
var lodash_1 = __webpack_require__(3);
|
|
1456
1575
|
/**
|
|
@@ -1485,7 +1604,7 @@ exports.useDeepMemo = useDeepMemo;
|
|
|
1485
1604
|
|
|
1486
1605
|
/***/ }),
|
|
1487
1606
|
|
|
1488
|
-
/***/
|
|
1607
|
+
/***/ 45:
|
|
1489
1608
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1490
1609
|
|
|
1491
1610
|
"use strict";
|
|
@@ -1496,13 +1615,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1496
1615
|
});
|
|
1497
1616
|
exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
|
|
1498
1617
|
|
|
1499
|
-
var React = __webpack_require__(
|
|
1618
|
+
var React = __webpack_require__(0);
|
|
1500
1619
|
|
|
1501
|
-
var T = __webpack_require__(
|
|
1620
|
+
var T = __webpack_require__(1);
|
|
1502
1621
|
|
|
1503
1622
|
var i18n_1 = __webpack_require__(2);
|
|
1504
1623
|
|
|
1505
|
-
var Message_1 = __webpack_require__(
|
|
1624
|
+
var Message_1 = __webpack_require__(9);
|
|
1506
1625
|
|
|
1507
1626
|
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
1508
1627
|
/**
|
|
@@ -1566,7 +1685,7 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
|
1566
1685
|
|
|
1567
1686
|
/***/ }),
|
|
1568
1687
|
|
|
1569
|
-
/***/
|
|
1688
|
+
/***/ 46:
|
|
1570
1689
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1571
1690
|
|
|
1572
1691
|
"use strict";
|
|
@@ -1576,18 +1695,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1576
1695
|
value: true
|
|
1577
1696
|
});
|
|
1578
1697
|
|
|
1579
|
-
var React = __webpack_require__(
|
|
1698
|
+
var React = __webpack_require__(0);
|
|
1580
1699
|
|
|
1581
1700
|
var styled_components_1 = __webpack_require__(4);
|
|
1582
1701
|
|
|
1583
|
-
var hocUtils_1 = __webpack_require__(
|
|
1702
|
+
var hocUtils_1 = __webpack_require__(15);
|
|
1584
1703
|
|
|
1585
1704
|
var Cover = styled_components_1.default.div.withConfig({
|
|
1586
1705
|
displayName: "withEditModeCover__Cover",
|
|
1587
1706
|
componentId: "sc-1gsbnxb-0"
|
|
1588
1707
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
1589
1708
|
var Blocker = styled_components_1.default.div.attrs({
|
|
1590
|
-
'data-splunk-visualization-version': "25.
|
|
1709
|
+
'data-splunk-visualization-version': "25.7.0 - d10a7789b"
|
|
1591
1710
|
}).withConfig({
|
|
1592
1711
|
displayName: "withEditModeCover__Blocker",
|
|
1593
1712
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -1619,7 +1738,7 @@ exports.default = withEditModeCover;
|
|
|
1619
1738
|
|
|
1620
1739
|
/***/ }),
|
|
1621
1740
|
|
|
1622
|
-
/***/
|
|
1741
|
+
/***/ 47:
|
|
1623
1742
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1624
1743
|
|
|
1625
1744
|
"use strict";
|
|
@@ -1629,17 +1748,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1629
1748
|
value: true
|
|
1630
1749
|
});
|
|
1631
1750
|
|
|
1632
|
-
var React = __webpack_require__(
|
|
1751
|
+
var React = __webpack_require__(0);
|
|
1633
1752
|
|
|
1634
1753
|
var colorUtils_1 = __webpack_require__(12);
|
|
1635
1754
|
|
|
1636
|
-
var variables_1 = __webpack_require__(
|
|
1755
|
+
var variables_1 = __webpack_require__(10);
|
|
1637
1756
|
|
|
1638
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
1757
|
+
var IconPlaceholder_1 = __webpack_require__(31);
|
|
1639
1758
|
|
|
1640
1759
|
var VizBehavior_1 = __webpack_require__(6);
|
|
1641
1760
|
|
|
1642
|
-
var hocUtils_1 = __webpack_require__(
|
|
1761
|
+
var hocUtils_1 = __webpack_require__(15);
|
|
1643
1762
|
|
|
1644
1763
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
1645
1764
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -1684,21 +1803,7 @@ exports.default = withPlaceholder;
|
|
|
1684
1803
|
|
|
1685
1804
|
/***/ }),
|
|
1686
1805
|
|
|
1687
|
-
/***/
|
|
1688
|
-
/***/ (function(module, exports) {
|
|
1689
|
-
|
|
1690
|
-
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
1691
|
-
|
|
1692
|
-
/***/ }),
|
|
1693
|
-
|
|
1694
|
-
/***/ 45:
|
|
1695
|
-
/***/ (function(module, exports) {
|
|
1696
|
-
|
|
1697
|
-
module.exports = require("@splunk/visualizations-shared/colorConstants");
|
|
1698
|
-
|
|
1699
|
-
/***/ }),
|
|
1700
|
-
|
|
1701
|
-
/***/ 459:
|
|
1806
|
+
/***/ 474:
|
|
1702
1807
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1703
1808
|
|
|
1704
1809
|
"use strict";
|
|
@@ -1730,9 +1835,9 @@ exports.default = void 0; // NOTE: wildcard syntax only works for named exports
|
|
|
1730
1835
|
// for some reason, omitting the default export worked before TS v4
|
|
1731
1836
|
// see: https://stackoverflow.com/a/34445175
|
|
1732
1837
|
|
|
1733
|
-
__exportStar(__webpack_require__(
|
|
1838
|
+
__exportStar(__webpack_require__(164), exports);
|
|
1734
1839
|
|
|
1735
|
-
var Table_1 = __webpack_require__(
|
|
1840
|
+
var Table_1 = __webpack_require__(164);
|
|
1736
1841
|
|
|
1737
1842
|
Object.defineProperty(exports, "default", {
|
|
1738
1843
|
enumerable: true,
|
|
@@ -1743,13 +1848,13 @@ Object.defineProperty(exports, "default", {
|
|
|
1743
1848
|
|
|
1744
1849
|
/***/ }),
|
|
1745
1850
|
|
|
1746
|
-
/***/
|
|
1851
|
+
/***/ 475:
|
|
1747
1852
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1748
1853
|
|
|
1749
1854
|
"use strict";
|
|
1750
1855
|
|
|
1751
1856
|
|
|
1752
|
-
var _toConsumableArray = __webpack_require__(
|
|
1857
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
1753
1858
|
|
|
1754
1859
|
Object.defineProperty(exports, "__esModule", {
|
|
1755
1860
|
value: true
|
|
@@ -1761,23 +1866,23 @@ var lodash_1 = __webpack_require__(3);
|
|
|
1761
1866
|
|
|
1762
1867
|
var schemaUtils_1 = __webpack_require__(16);
|
|
1763
1868
|
|
|
1764
|
-
var colorConstants_1 = __webpack_require__(
|
|
1869
|
+
var colorConstants_1 = __webpack_require__(49);
|
|
1765
1870
|
|
|
1766
|
-
var visualization_icons_1 = __webpack_require__(
|
|
1871
|
+
var visualization_icons_1 = __webpack_require__(51);
|
|
1767
1872
|
|
|
1768
|
-
var placeholders_1 = __webpack_require__(
|
|
1873
|
+
var placeholders_1 = __webpack_require__(48);
|
|
1769
1874
|
|
|
1770
|
-
var variables_1 = __webpack_require__(
|
|
1875
|
+
var variables_1 = __webpack_require__(10);
|
|
1771
1876
|
|
|
1772
|
-
var pick_1 = __webpack_require__(
|
|
1877
|
+
var pick_1 = __webpack_require__(23);
|
|
1773
1878
|
|
|
1774
|
-
var configUtils_1 = __webpack_require__(
|
|
1879
|
+
var configUtils_1 = __webpack_require__(19);
|
|
1775
1880
|
|
|
1776
1881
|
var VizBehavior_1 = __webpack_require__(6);
|
|
1777
1882
|
|
|
1778
|
-
var consts_1 = __webpack_require__(
|
|
1883
|
+
var consts_1 = __webpack_require__(134);
|
|
1779
1884
|
|
|
1780
|
-
var VizCategory_1 = __webpack_require__(
|
|
1885
|
+
var VizCategory_1 = __webpack_require__(35);
|
|
1781
1886
|
|
|
1782
1887
|
var dataContract = {
|
|
1783
1888
|
requiredDataSources: [{
|
|
@@ -2272,24 +2377,21 @@ var editorConfig = [{
|
|
|
2272
2377
|
option: 'count',
|
|
2273
2378
|
editor: 'editor.number',
|
|
2274
2379
|
editorProps: {
|
|
2275
|
-
labelPosition: 'left',
|
|
2276
2380
|
min: 0,
|
|
2277
2381
|
labelWidth: EDITOR_LABEL_WIDTH
|
|
2278
2382
|
}
|
|
2279
2383
|
}], [{
|
|
2280
2384
|
label: i18n_1._('Row numbers'),
|
|
2281
2385
|
option: 'showRowNumbers',
|
|
2282
|
-
editor: 'editor.
|
|
2386
|
+
editor: 'editor.checkbox',
|
|
2283
2387
|
editorProps: {
|
|
2284
|
-
labelPosition: 'left',
|
|
2285
2388
|
labelWidth: EDITOR_LABEL_WIDTH
|
|
2286
2389
|
}
|
|
2287
2390
|
}], [{
|
|
2288
2391
|
label: i18n_1._('Internal fields'),
|
|
2289
2392
|
option: 'showInternalFields',
|
|
2290
|
-
editor: 'editor.
|
|
2393
|
+
editor: 'editor.checkbox',
|
|
2291
2394
|
editorProps: {
|
|
2292
|
-
labelPosition: 'left',
|
|
2293
2395
|
labelWidth: EDITOR_LABEL_WIDTH
|
|
2294
2396
|
}
|
|
2295
2397
|
}], [{
|
|
@@ -2317,7 +2419,7 @@ var editorConfig = [{
|
|
|
2317
2419
|
editor: 'editor.tableBackgroundColor',
|
|
2318
2420
|
editorProps: {
|
|
2319
2421
|
themes: themes,
|
|
2320
|
-
labelPosition: '
|
|
2422
|
+
labelPosition: 'top',
|
|
2321
2423
|
labelWidth: EDITOR_LABEL_WIDTH,
|
|
2322
2424
|
palette: _toConsumableArray(backgroundColorPaletteSet)
|
|
2323
2425
|
}
|
|
@@ -2475,17 +2577,17 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
2475
2577
|
|
|
2476
2578
|
/***/ }),
|
|
2477
2579
|
|
|
2478
|
-
/***/
|
|
2580
|
+
/***/ 476:
|
|
2479
2581
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2480
2582
|
|
|
2481
2583
|
"use strict";
|
|
2482
2584
|
|
|
2483
2585
|
|
|
2484
|
-
var _slicedToArray = __webpack_require__(
|
|
2586
|
+
var _slicedToArray = __webpack_require__(17);
|
|
2485
2587
|
|
|
2486
|
-
var _defineProperty = __webpack_require__(
|
|
2588
|
+
var _defineProperty = __webpack_require__(8);
|
|
2487
2589
|
|
|
2488
|
-
var _taggedTemplateLiteral = __webpack_require__(
|
|
2590
|
+
var _taggedTemplateLiteral = __webpack_require__(93);
|
|
2489
2591
|
|
|
2490
2592
|
var _templateObject, _templateObject2;
|
|
2491
2593
|
|
|
@@ -2507,9 +2609,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2507
2609
|
});
|
|
2508
2610
|
exports.MINIMUM_COLUMN_SIZE = void 0;
|
|
2509
2611
|
|
|
2510
|
-
var React = __webpack_require__(
|
|
2612
|
+
var React = __webpack_require__(0);
|
|
2511
2613
|
|
|
2512
|
-
var T = __webpack_require__(
|
|
2614
|
+
var T = __webpack_require__(1);
|
|
2513
2615
|
|
|
2514
2616
|
var lodash_1 = __webpack_require__(3);
|
|
2515
2617
|
|
|
@@ -2517,37 +2619,37 @@ var styled_components_1 = __webpack_require__(4);
|
|
|
2517
2619
|
|
|
2518
2620
|
var i18n_1 = __webpack_require__(2);
|
|
2519
2621
|
|
|
2520
|
-
var Table_1 = __webpack_require__(
|
|
2622
|
+
var Table_1 = __webpack_require__(107);
|
|
2521
2623
|
|
|
2522
|
-
var Paginator_1 = __webpack_require__(
|
|
2624
|
+
var Paginator_1 = __webpack_require__(87);
|
|
2523
2625
|
|
|
2524
|
-
var Message_1 = __webpack_require__(
|
|
2626
|
+
var Message_1 = __webpack_require__(123);
|
|
2525
2627
|
|
|
2526
2628
|
var colorUtils_1 = __webpack_require__(12);
|
|
2527
2629
|
|
|
2528
|
-
var style_1 = __webpack_require__(
|
|
2630
|
+
var style_1 = __webpack_require__(14);
|
|
2529
2631
|
|
|
2530
|
-
var pick_1 = __webpack_require__(
|
|
2632
|
+
var pick_1 = __webpack_require__(23);
|
|
2531
2633
|
|
|
2532
|
-
var variables_1 = __webpack_require__(
|
|
2634
|
+
var variables_1 = __webpack_require__(10);
|
|
2533
2635
|
|
|
2534
|
-
var hooks_1 = __webpack_require__(
|
|
2636
|
+
var hooks_1 = __webpack_require__(477);
|
|
2535
2637
|
|
|
2536
|
-
var consts_1 = __webpack_require__(
|
|
2638
|
+
var consts_1 = __webpack_require__(134);
|
|
2537
2639
|
|
|
2538
|
-
var cells_1 = __webpack_require__(
|
|
2640
|
+
var cells_1 = __webpack_require__(478);
|
|
2539
2641
|
|
|
2540
|
-
var getPagination_1 = __webpack_require__(
|
|
2642
|
+
var getPagination_1 = __webpack_require__(34);
|
|
2541
2643
|
|
|
2542
|
-
var getSorting_1 = __webpack_require__(
|
|
2644
|
+
var getSorting_1 = __webpack_require__(33);
|
|
2543
2645
|
|
|
2544
2646
|
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
2545
2647
|
|
|
2546
|
-
var utils_1 = __webpack_require__(
|
|
2648
|
+
var utils_1 = __webpack_require__(483); // debounce was imported this way due to typing
|
|
2547
2649
|
// eslint-disable-next-line import/order
|
|
2548
2650
|
|
|
2549
2651
|
|
|
2550
|
-
var debounce = __webpack_require__(
|
|
2652
|
+
var debounce = __webpack_require__(484);
|
|
2551
2653
|
|
|
2552
2654
|
exports.MINIMUM_COLUMN_SIZE = 30;
|
|
2553
2655
|
var NonVisibleTableHead = styled_components_1.default(Table_1.default.Head).withConfig({
|
|
@@ -2721,6 +2823,9 @@ var rowHeightMap = {
|
|
|
2721
2823
|
default: '20px',
|
|
2722
2824
|
large: '24px'
|
|
2723
2825
|
};
|
|
2826
|
+
var tableInnerStyle = {
|
|
2827
|
+
height: '100%'
|
|
2828
|
+
};
|
|
2724
2829
|
|
|
2725
2830
|
var PureTable = function PureTable(props) {
|
|
2726
2831
|
var count = props.count,
|
|
@@ -2809,7 +2914,7 @@ var PureTable = function PureTable(props) {
|
|
|
2809
2914
|
var TableHead = useTableHead(headerVisibility);
|
|
2810
2915
|
var debouncedDrilldown = debounce(function (e, payload) {
|
|
2811
2916
|
if (window.getSelection().toString() === '') {
|
|
2812
|
-
if (
|
|
2917
|
+
if (typeof onCellClick === 'function') {
|
|
2813
2918
|
onCellClick({
|
|
2814
2919
|
e: e,
|
|
2815
2920
|
payload: payload
|
|
@@ -2908,6 +3013,12 @@ var PureTable = function PureTable(props) {
|
|
|
2908
3013
|
var fontMapped = fontMap[font] || fontMap.proportional;
|
|
2909
3014
|
var fontSizeMapped = fontSizeMap[fontSize] || fontSizeMap.default;
|
|
2910
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]);
|
|
2911
3022
|
return React.createElement(VizTableContainer, {
|
|
2912
3023
|
backgroundColor: backgroundColor,
|
|
2913
3024
|
ref: containerRef
|
|
@@ -2923,13 +3034,8 @@ var PureTable = function PureTable(props) {
|
|
|
2923
3034
|
lineHeight: rowHeightMapped
|
|
2924
3035
|
}, React.createElement(Table_1.default, {
|
|
2925
3036
|
headType: headerVisibility !== 'none' ? 'inline' : undefined,
|
|
2926
|
-
innerStyle:
|
|
2927
|
-
|
|
2928
|
-
},
|
|
2929
|
-
outerStyle: {
|
|
2930
|
-
height: '100%',
|
|
2931
|
-
cursor: onCellClick ? 'pointer' : 'unset'
|
|
2932
|
-
},
|
|
3037
|
+
innerStyle: tableInnerStyle,
|
|
3038
|
+
outerStyle: tableOuterStyle,
|
|
2933
3039
|
onClick: onCellClick ? drilldownHandler : lodash_1.noop,
|
|
2934
3040
|
onKeyDown: onCellClick ? handleKeyDown : lodash_1.noop,
|
|
2935
3041
|
onRequestResizeColumn: handleResizeColumn
|
|
@@ -3077,29 +3183,15 @@ exports.default = withEmptyTableMessage(FixedSizeContainer_1.default(PureTable))
|
|
|
3077
3183
|
|
|
3078
3184
|
/***/ }),
|
|
3079
3185
|
|
|
3080
|
-
/***/
|
|
3081
|
-
/***/ (function(module, exports) {
|
|
3082
|
-
|
|
3083
|
-
module.exports = require("@splunk/react-ui/Paginator");
|
|
3084
|
-
|
|
3085
|
-
/***/ }),
|
|
3086
|
-
|
|
3087
|
-
/***/ 463:
|
|
3088
|
-
/***/ (function(module, exports) {
|
|
3089
|
-
|
|
3090
|
-
module.exports = require("@splunk/react-ui/Message");
|
|
3091
|
-
|
|
3092
|
-
/***/ }),
|
|
3093
|
-
|
|
3094
|
-
/***/ 464:
|
|
3186
|
+
/***/ 477:
|
|
3095
3187
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3096
3188
|
|
|
3097
3189
|
"use strict";
|
|
3098
3190
|
|
|
3099
3191
|
|
|
3100
|
-
var _toConsumableArray = __webpack_require__(
|
|
3192
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
3101
3193
|
|
|
3102
|
-
var _typeof = __webpack_require__(
|
|
3194
|
+
var _typeof = __webpack_require__(88);
|
|
3103
3195
|
|
|
3104
3196
|
Object.defineProperty(exports, "__esModule", {
|
|
3105
3197
|
value: true
|
|
@@ -3110,30 +3202,32 @@ var lodash_1 = __webpack_require__(3);
|
|
|
3110
3202
|
|
|
3111
3203
|
var colorUtils_1 = __webpack_require__(12);
|
|
3112
3204
|
|
|
3113
|
-
var consts_1 = __webpack_require__(
|
|
3205
|
+
var consts_1 = __webpack_require__(134);
|
|
3114
3206
|
|
|
3115
3207
|
var isArray = function isArray(v) {
|
|
3116
3208
|
return Array.isArray(v);
|
|
3117
3209
|
};
|
|
3118
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
|
+
|
|
3119
3228
|
var getOverflowStyles = function getOverflowStyles(_ref) {
|
|
3120
3229
|
var textOverflow = _ref.textOverflow;
|
|
3121
|
-
|
|
3122
|
-
anywhere: {
|
|
3123
|
-
wordBreak: 'break-all'
|
|
3124
|
-
},
|
|
3125
|
-
'break-word': {
|
|
3126
|
-
wordBreak: 'break-word',
|
|
3127
|
-
wordWrap: 'break-word',
|
|
3128
|
-
overflowWrap: 'break-word'
|
|
3129
|
-
},
|
|
3130
|
-
ellipsis: {
|
|
3131
|
-
whiteSpace: 'nowrap',
|
|
3132
|
-
overflow: 'hidden',
|
|
3133
|
-
textOverflow: 'ellipsis'
|
|
3134
|
-
}
|
|
3135
|
-
};
|
|
3136
|
-
return styles[textOverflow] || {};
|
|
3230
|
+
return textOverflowStyles[textOverflow] || empty;
|
|
3137
3231
|
};
|
|
3138
3232
|
|
|
3139
3233
|
exports.getOverflowStyles = getOverflowStyles;
|
|
@@ -3517,7 +3611,7 @@ exports.useTable = useTable;
|
|
|
3517
3611
|
|
|
3518
3612
|
/***/ }),
|
|
3519
3613
|
|
|
3520
|
-
/***/
|
|
3614
|
+
/***/ 478:
|
|
3521
3615
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3522
3616
|
|
|
3523
3617
|
"use strict";
|
|
@@ -3546,17 +3640,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3546
3640
|
value: true
|
|
3547
3641
|
});
|
|
3548
3642
|
|
|
3549
|
-
__exportStar(__webpack_require__(
|
|
3643
|
+
__exportStar(__webpack_require__(479), exports);
|
|
3550
3644
|
|
|
3551
|
-
__exportStar(__webpack_require__(
|
|
3645
|
+
__exportStar(__webpack_require__(480), exports);
|
|
3552
3646
|
|
|
3553
|
-
__exportStar(__webpack_require__(
|
|
3647
|
+
__exportStar(__webpack_require__(481), exports);
|
|
3554
3648
|
|
|
3555
|
-
__exportStar(__webpack_require__(
|
|
3649
|
+
__exportStar(__webpack_require__(482), exports);
|
|
3556
3650
|
|
|
3557
3651
|
/***/ }),
|
|
3558
3652
|
|
|
3559
|
-
/***/
|
|
3653
|
+
/***/ 479:
|
|
3560
3654
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3561
3655
|
|
|
3562
3656
|
"use strict";
|
|
@@ -3579,7 +3673,14 @@ exports.SwitchTableCell = SwitchTableCell;
|
|
|
3579
3673
|
|
|
3580
3674
|
/***/ }),
|
|
3581
3675
|
|
|
3582
|
-
/***/
|
|
3676
|
+
/***/ 48:
|
|
3677
|
+
/***/ (function(module, exports) {
|
|
3678
|
+
|
|
3679
|
+
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
3680
|
+
|
|
3681
|
+
/***/ }),
|
|
3682
|
+
|
|
3683
|
+
/***/ 480:
|
|
3583
3684
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3584
3685
|
|
|
3585
3686
|
"use strict";
|
|
@@ -3590,23 +3691,30 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3590
3691
|
});
|
|
3591
3692
|
exports.TextCell = void 0;
|
|
3592
3693
|
|
|
3593
|
-
var React = __webpack_require__(
|
|
3694
|
+
var React = __webpack_require__(0);
|
|
3695
|
+
|
|
3696
|
+
var Table_1 = __webpack_require__(107);
|
|
3594
3697
|
|
|
3595
|
-
var
|
|
3698
|
+
var noop = function noop() {
|
|
3699
|
+
return undefined;
|
|
3700
|
+
};
|
|
3596
3701
|
|
|
3597
3702
|
var TextCell = function TextCell(_ref) {
|
|
3598
3703
|
var cell = _ref.cell,
|
|
3599
3704
|
useMouseOverEffect = _ref.useMouseOverEffect,
|
|
3600
3705
|
width = _ref.width;
|
|
3601
|
-
|
|
3602
|
-
|
|
3706
|
+
var cellStyle = React.useMemo(function () {
|
|
3707
|
+
return Object.assign(Object.assign({}, cell.style), {
|
|
3603
3708
|
width: width
|
|
3604
|
-
})
|
|
3709
|
+
});
|
|
3710
|
+
}, [cell.style, width]);
|
|
3711
|
+
return React.createElement(Table_1.default.Cell, {
|
|
3712
|
+
style: cellStyle,
|
|
3605
3713
|
align: cell.align,
|
|
3606
3714
|
"data-test-cell-type": "TextCell",
|
|
3607
3715
|
"data-row-index": cell.rowIndex,
|
|
3608
3716
|
"data-col-index": cell.columnIndex,
|
|
3609
|
-
onClick: useMouseOverEffect ?
|
|
3717
|
+
onClick: useMouseOverEffect ? noop : undefined
|
|
3610
3718
|
}, cell.value.toString());
|
|
3611
3719
|
};
|
|
3612
3720
|
|
|
@@ -3615,7 +3723,7 @@ exports.TextCell.displayName = 'TextCell';
|
|
|
3615
3723
|
|
|
3616
3724
|
/***/ }),
|
|
3617
3725
|
|
|
3618
|
-
/***/
|
|
3726
|
+
/***/ 481:
|
|
3619
3727
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3620
3728
|
|
|
3621
3729
|
"use strict";
|
|
@@ -3626,22 +3734,31 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3626
3734
|
});
|
|
3627
3735
|
exports.ArrayCell = void 0;
|
|
3628
3736
|
|
|
3629
|
-
var React = __webpack_require__(
|
|
3737
|
+
var React = __webpack_require__(0);
|
|
3630
3738
|
|
|
3631
|
-
var Table_1 = __webpack_require__(
|
|
3739
|
+
var Table_1 = __webpack_require__(107);
|
|
3740
|
+
|
|
3741
|
+
var noop = function noop() {
|
|
3742
|
+
return undefined;
|
|
3743
|
+
};
|
|
3632
3744
|
|
|
3633
3745
|
var ArrayCell = function ArrayCell(_ref) {
|
|
3634
3746
|
var cell = _ref.cell,
|
|
3635
3747
|
useMouseOverEffect = _ref.useMouseOverEffect,
|
|
3636
3748
|
width = _ref.width;
|
|
3637
|
-
var value =
|
|
3638
|
-
|
|
3639
|
-
|
|
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), {
|
|
3640
3754
|
width: width
|
|
3641
|
-
})
|
|
3755
|
+
});
|
|
3756
|
+
}, [cell.style, width]);
|
|
3757
|
+
return React.createElement(Table_1.default.Cell, {
|
|
3758
|
+
style: cellStyle,
|
|
3642
3759
|
align: cell.align,
|
|
3643
3760
|
"data-test-cell-type": "ArrayCell",
|
|
3644
|
-
onClick: useMouseOverEffect ?
|
|
3761
|
+
onClick: useMouseOverEffect ? noop : undefined
|
|
3645
3762
|
}, value.map(function (v, i) {
|
|
3646
3763
|
return React.createElement("div", {
|
|
3647
3764
|
key: v.toString(),
|
|
@@ -3657,24 +3774,24 @@ exports.ArrayCell.displayName = 'ArrayCell';
|
|
|
3657
3774
|
|
|
3658
3775
|
/***/ }),
|
|
3659
3776
|
|
|
3660
|
-
/***/
|
|
3777
|
+
/***/ 482:
|
|
3661
3778
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3662
3779
|
|
|
3663
3780
|
"use strict";
|
|
3664
3781
|
|
|
3665
3782
|
|
|
3666
|
-
var _slicedToArray = __webpack_require__(
|
|
3783
|
+
var _slicedToArray = __webpack_require__(17);
|
|
3667
3784
|
|
|
3668
3785
|
Object.defineProperty(exports, "__esModule", {
|
|
3669
3786
|
value: true
|
|
3670
3787
|
});
|
|
3671
3788
|
exports.SparklineCell = exports.validSparklineTypes = void 0;
|
|
3672
3789
|
|
|
3673
|
-
var React = __webpack_require__(
|
|
3790
|
+
var React = __webpack_require__(0);
|
|
3674
3791
|
|
|
3675
|
-
var Table_1 = __webpack_require__(
|
|
3792
|
+
var Table_1 = __webpack_require__(107);
|
|
3676
3793
|
|
|
3677
|
-
var Line_1 = __webpack_require__(
|
|
3794
|
+
var Line_1 = __webpack_require__(108);
|
|
3678
3795
|
|
|
3679
3796
|
var paddingLeftRight = 5;
|
|
3680
3797
|
var paddingTopBottom = 3;
|
|
@@ -3690,17 +3807,28 @@ var parseSparklineData = function parseSparklineData(data) {
|
|
|
3690
3807
|
|
|
3691
3808
|
exports.validSparklineTypes = ['line', 'area'];
|
|
3692
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
|
+
|
|
3693
3821
|
var SparklineCell = function SparklineCell(_ref) {
|
|
3694
3822
|
var cell = _ref.cell,
|
|
3695
3823
|
useMouseOverEffect = _ref.useMouseOverEffect,
|
|
3696
3824
|
width = _ref.width;
|
|
3697
3825
|
|
|
3698
|
-
var _React$useState = React.useState(
|
|
3826
|
+
var _React$useState = React.useState(),
|
|
3699
3827
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
3700
|
-
|
|
3701
|
-
|
|
3828
|
+
cellEl = _React$useState2[0],
|
|
3829
|
+
setEl = _React$useState2[1];
|
|
3702
3830
|
|
|
3703
|
-
var _React$useState3 = React.useState(
|
|
3831
|
+
var _React$useState3 = React.useState(),
|
|
3704
3832
|
_React$useState4 = _slicedToArray(_React$useState3, 2),
|
|
3705
3833
|
height = _React$useState4[0],
|
|
3706
3834
|
setHeight = _React$useState4[1];
|
|
@@ -3708,41 +3836,43 @@ var SparklineCell = function SparklineCell(_ref) {
|
|
|
3708
3836
|
var data = React.useMemo(function () {
|
|
3709
3837
|
return parseSparklineData(cell.value);
|
|
3710
3838
|
}, [cell.value]);
|
|
3711
|
-
React.
|
|
3712
|
-
setHeight(
|
|
3713
|
-
}, [
|
|
3714
|
-
|
|
3715
|
-
|
|
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), {
|
|
3716
3844
|
padding: 0,
|
|
3717
3845
|
margin: 0,
|
|
3718
3846
|
width: width,
|
|
3719
3847
|
height: "".concat(height, "px")
|
|
3720
|
-
})
|
|
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,
|
|
3721
3860
|
align: cell.align,
|
|
3722
|
-
elementRef:
|
|
3861
|
+
elementRef: setEl,
|
|
3723
3862
|
"data-test-cell-type": "SparklineCell",
|
|
3724
3863
|
"data-row-index": cell.rowIndex,
|
|
3725
3864
|
"data-col-index": cell.columnIndex,
|
|
3726
|
-
onClick: useMouseOverEffect ?
|
|
3865
|
+
onClick: useMouseOverEffect ? noop : undefined
|
|
3727
3866
|
}, height ? React.createElement(Line_1.default, {
|
|
3728
|
-
style:
|
|
3729
|
-
paddingLeft: "".concat(paddingLeftRight, "px"),
|
|
3730
|
-
paddingTop: "".concat(paddingTopBottom, "px"),
|
|
3731
|
-
width: "".concat(cellRef.offsetWidth - paddingLeftRight * 2, "px"),
|
|
3732
|
-
height: "".concat(height - paddingTopBottom * 2, "px")
|
|
3733
|
-
},
|
|
3867
|
+
style: lineStyle,
|
|
3734
3868
|
data: data,
|
|
3735
|
-
width:
|
|
3869
|
+
width: (cellEl === null || cellEl === void 0 ? void 0 : cellEl.offsetWidth) - paddingLeftRight * 2,
|
|
3736
3870
|
height: height - paddingTopBottom * 2,
|
|
3737
3871
|
isArea: cell.sparklineType === 'area',
|
|
3738
3872
|
acceptNull: true,
|
|
3739
3873
|
lineColor: cell.sparklineColor,
|
|
3740
3874
|
fillColor: cell.sparklineAreaColor
|
|
3741
|
-
}) :
|
|
3742
|
-
style: {
|
|
3743
|
-
height: 0
|
|
3744
|
-
}
|
|
3745
|
-
}));
|
|
3875
|
+
}) : dummySVG);
|
|
3746
3876
|
};
|
|
3747
3877
|
|
|
3748
3878
|
exports.SparklineCell = SparklineCell;
|
|
@@ -3750,14 +3880,7 @@ exports.SparklineCell.displayName = 'SparklineCell';
|
|
|
3750
3880
|
|
|
3751
3881
|
/***/ }),
|
|
3752
3882
|
|
|
3753
|
-
/***/
|
|
3754
|
-
/***/ (function(module, exports) {
|
|
3755
|
-
|
|
3756
|
-
module.exports = require("@splunk/visualization-icons");
|
|
3757
|
-
|
|
3758
|
-
/***/ }),
|
|
3759
|
-
|
|
3760
|
-
/***/ 470:
|
|
3883
|
+
/***/ 483:
|
|
3761
3884
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3762
3885
|
|
|
3763
3886
|
"use strict";
|
|
@@ -3801,17 +3924,24 @@ exports.getColumnWidth = getColumnWidth;
|
|
|
3801
3924
|
|
|
3802
3925
|
/***/ }),
|
|
3803
3926
|
|
|
3804
|
-
/***/
|
|
3927
|
+
/***/ 484:
|
|
3805
3928
|
/***/ (function(module, exports) {
|
|
3806
3929
|
|
|
3807
3930
|
module.exports = require("lodash/debounce");
|
|
3808
3931
|
|
|
3809
3932
|
/***/ }),
|
|
3810
3933
|
|
|
3934
|
+
/***/ 49:
|
|
3935
|
+
/***/ (function(module, exports) {
|
|
3936
|
+
|
|
3937
|
+
module.exports = require("@splunk/visualizations-shared/colorConstants");
|
|
3938
|
+
|
|
3939
|
+
/***/ }),
|
|
3940
|
+
|
|
3811
3941
|
/***/ 51:
|
|
3812
3942
|
/***/ (function(module, exports) {
|
|
3813
3943
|
|
|
3814
|
-
module.exports = require("@
|
|
3944
|
+
module.exports = require("@splunk/visualization-icons");
|
|
3815
3945
|
|
|
3816
3946
|
/***/ }),
|
|
3817
3947
|
|
|
@@ -3849,6 +3979,7 @@ var VizBehavior;
|
|
|
3849
3979
|
|
|
3850
3980
|
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
3851
3981
|
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
3982
|
+
VizBehavior["TRELLIS"] = "trellis";
|
|
3852
3983
|
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
3853
3984
|
|
|
3854
3985
|
/***/ }),
|
|
@@ -3856,49 +3987,42 @@ var VizBehavior;
|
|
|
3856
3987
|
/***/ 7:
|
|
3857
3988
|
/***/ (function(module, exports) {
|
|
3858
3989
|
|
|
3859
|
-
module.exports = require("@babel/runtime/helpers/
|
|
3990
|
+
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
3860
3991
|
|
|
3861
3992
|
/***/ }),
|
|
3862
3993
|
|
|
3863
3994
|
/***/ 8:
|
|
3864
3995
|
/***/ (function(module, exports) {
|
|
3865
3996
|
|
|
3866
|
-
module.exports = require("@babel/runtime/helpers/
|
|
3997
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
3867
3998
|
|
|
3868
3999
|
/***/ }),
|
|
3869
4000
|
|
|
3870
|
-
/***/
|
|
4001
|
+
/***/ 87:
|
|
3871
4002
|
/***/ (function(module, exports) {
|
|
3872
4003
|
|
|
3873
|
-
module.exports = require("@
|
|
4004
|
+
module.exports = require("@splunk/react-ui/Paginator");
|
|
3874
4005
|
|
|
3875
4006
|
/***/ }),
|
|
3876
4007
|
|
|
3877
|
-
/***/
|
|
4008
|
+
/***/ 88:
|
|
3878
4009
|
/***/ (function(module, exports) {
|
|
3879
4010
|
|
|
3880
|
-
module.exports = require("@babel/runtime/helpers/
|
|
4011
|
+
module.exports = require("@babel/runtime/helpers/typeof");
|
|
3881
4012
|
|
|
3882
4013
|
/***/ }),
|
|
3883
4014
|
|
|
3884
4015
|
/***/ 9:
|
|
3885
4016
|
/***/ (function(module, exports) {
|
|
3886
4017
|
|
|
3887
|
-
module.exports = require("@splunk/
|
|
3888
|
-
|
|
3889
|
-
/***/ }),
|
|
3890
|
-
|
|
3891
|
-
/***/ 98:
|
|
3892
|
-
/***/ (function(module, exports) {
|
|
3893
|
-
|
|
3894
|
-
module.exports = require("@splunk/react-ui/Table");
|
|
4018
|
+
module.exports = require("@splunk/visualizations-shared/Message");
|
|
3895
4019
|
|
|
3896
4020
|
/***/ }),
|
|
3897
4021
|
|
|
3898
|
-
/***/
|
|
4022
|
+
/***/ 93:
|
|
3899
4023
|
/***/ (function(module, exports) {
|
|
3900
4024
|
|
|
3901
|
-
module.exports = require("@
|
|
4025
|
+
module.exports = require("@babel/runtime/helpers/taggedTemplateLiteral");
|
|
3902
4026
|
|
|
3903
4027
|
/***/ })
|
|
3904
4028
|
|