@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/ParallelCoordinates.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 = 427);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -95,21 +95,21 @@ module.exports =
|
|
|
95
95
|
/***/ 0:
|
|
96
96
|
/***/ (function(module, exports) {
|
|
97
97
|
|
|
98
|
-
module.exports = require("
|
|
98
|
+
module.exports = require("react");
|
|
99
99
|
|
|
100
100
|
/***/ }),
|
|
101
101
|
|
|
102
102
|
/***/ 1:
|
|
103
103
|
/***/ (function(module, exports) {
|
|
104
104
|
|
|
105
|
-
module.exports = require("
|
|
105
|
+
module.exports = require("prop-types");
|
|
106
106
|
|
|
107
107
|
/***/ }),
|
|
108
108
|
|
|
109
109
|
/***/ 10:
|
|
110
110
|
/***/ (function(module, exports) {
|
|
111
111
|
|
|
112
|
-
module.exports = require("@splunk/
|
|
112
|
+
module.exports = require("@splunk/themes/variables");
|
|
113
113
|
|
|
114
114
|
/***/ }),
|
|
115
115
|
|
|
@@ -137,13 +137,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
137
137
|
value: true
|
|
138
138
|
});
|
|
139
139
|
|
|
140
|
-
var React = __webpack_require__(
|
|
140
|
+
var React = __webpack_require__(0);
|
|
141
141
|
|
|
142
142
|
var styled_components_1 = __webpack_require__(4);
|
|
143
143
|
|
|
144
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
144
|
+
var SizeAwareWrapper_1 = __webpack_require__(18);
|
|
145
145
|
|
|
146
|
-
var style_1 = __webpack_require__(
|
|
146
|
+
var style_1 = __webpack_require__(14);
|
|
147
147
|
|
|
148
148
|
var colorUtils_1 = __webpack_require__(12);
|
|
149
149
|
|
|
@@ -202,7 +202,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
202
202
|
|
|
203
203
|
return React.createElement(FixSizeItem, {
|
|
204
204
|
"data-test": "fix-size-item",
|
|
205
|
-
"data-splunk-visualization-version": "25.
|
|
205
|
+
"data-splunk-visualization-version": "25.7.0 - d10a7789b",
|
|
206
206
|
width: width,
|
|
207
207
|
height: height,
|
|
208
208
|
backgroundColor: backgroundColor
|
|
@@ -225,6 +225,13 @@ exports.default = withFixedSizeContainer;
|
|
|
225
225
|
/***/ }),
|
|
226
226
|
|
|
227
227
|
/***/ 14:
|
|
228
|
+
/***/ (function(module, exports) {
|
|
229
|
+
|
|
230
|
+
module.exports = require("@splunk/visualizations-shared/style");
|
|
231
|
+
|
|
232
|
+
/***/ }),
|
|
233
|
+
|
|
234
|
+
/***/ 15:
|
|
228
235
|
/***/ (function(module, exports, __webpack_require__) {
|
|
229
236
|
|
|
230
237
|
"use strict";
|
|
@@ -257,36 +264,43 @@ exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
|
257
264
|
|
|
258
265
|
/***/ }),
|
|
259
266
|
|
|
260
|
-
/***/
|
|
267
|
+
/***/ 159:
|
|
261
268
|
/***/ (function(module, exports) {
|
|
262
269
|
|
|
263
270
|
module.exports = require("@mdhnpm/rgb-hex-converter");
|
|
264
271
|
|
|
265
272
|
/***/ }),
|
|
266
273
|
|
|
267
|
-
/***/
|
|
274
|
+
/***/ 16:
|
|
268
275
|
/***/ (function(module, exports) {
|
|
269
276
|
|
|
270
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
277
|
+
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
271
278
|
|
|
272
279
|
/***/ }),
|
|
273
280
|
|
|
274
|
-
/***/
|
|
281
|
+
/***/ 17:
|
|
275
282
|
/***/ (function(module, exports) {
|
|
276
283
|
|
|
277
|
-
module.exports = require("@
|
|
284
|
+
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
278
285
|
|
|
279
286
|
/***/ }),
|
|
280
287
|
|
|
281
|
-
/***/
|
|
288
|
+
/***/ 18:
|
|
289
|
+
/***/ (function(module, exports) {
|
|
290
|
+
|
|
291
|
+
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
292
|
+
|
|
293
|
+
/***/ }),
|
|
294
|
+
|
|
295
|
+
/***/ 19:
|
|
282
296
|
/***/ (function(module, exports, __webpack_require__) {
|
|
283
297
|
|
|
284
298
|
"use strict";
|
|
285
299
|
|
|
286
300
|
|
|
287
|
-
var _toConsumableArray = __webpack_require__(
|
|
301
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
288
302
|
|
|
289
|
-
var _defineProperty = __webpack_require__(
|
|
303
|
+
var _defineProperty = __webpack_require__(8);
|
|
290
304
|
|
|
291
305
|
var __rest = this && this.__rest || function (s, e) {
|
|
292
306
|
var t = {};
|
|
@@ -515,35 +529,35 @@ exports.insertLayout = insertLayout;
|
|
|
515
529
|
|
|
516
530
|
/***/ }),
|
|
517
531
|
|
|
518
|
-
/***/
|
|
532
|
+
/***/ 2:
|
|
519
533
|
/***/ (function(module, exports) {
|
|
520
534
|
|
|
521
|
-
module.exports = require("@
|
|
535
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
522
536
|
|
|
523
537
|
/***/ }),
|
|
524
538
|
|
|
525
|
-
/***/
|
|
539
|
+
/***/ 20:
|
|
526
540
|
/***/ (function(module, exports) {
|
|
527
541
|
|
|
528
|
-
module.exports = require("@splunk/
|
|
542
|
+
module.exports = require("@splunk/visualization-context/FeatureFlagContext");
|
|
529
543
|
|
|
530
544
|
/***/ }),
|
|
531
545
|
|
|
532
|
-
/***/
|
|
546
|
+
/***/ 22:
|
|
533
547
|
/***/ (function(module, exports) {
|
|
534
548
|
|
|
535
|
-
module.exports = require("@
|
|
549
|
+
module.exports = require("@babel/runtime/helpers/createClass");
|
|
536
550
|
|
|
537
551
|
/***/ }),
|
|
538
552
|
|
|
539
|
-
/***/
|
|
553
|
+
/***/ 23:
|
|
540
554
|
/***/ (function(module, exports) {
|
|
541
555
|
|
|
542
556
|
module.exports = require("@splunk/themes/pick");
|
|
543
557
|
|
|
544
558
|
/***/ }),
|
|
545
559
|
|
|
546
|
-
/***/
|
|
560
|
+
/***/ 24:
|
|
547
561
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
548
562
|
|
|
549
563
|
"use strict";
|
|
@@ -578,17 +592,17 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
578
592
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "lighten", function() { return lighten; });
|
|
579
593
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "darken", function() { return darken; });
|
|
580
594
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "handleValueClickCallback", function() { return handleValueClickCallback; });
|
|
581
|
-
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
595
|
+
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(8);
|
|
582
596
|
/* harmony import */ var _babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_babel_runtime_helpers_defineProperty__WEBPACK_IMPORTED_MODULE_0__);
|
|
583
597
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(3);
|
|
584
598
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_1__);
|
|
585
599
|
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(30);
|
|
586
600
|
/* harmony import */ var _splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_numberUtils__WEBPACK_IMPORTED_MODULE_2__);
|
|
587
|
-
/* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
601
|
+
/* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(54);
|
|
588
602
|
/* harmony import */ var _splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_domUtils__WEBPACK_IMPORTED_MODULE_3__);
|
|
589
|
-
/* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(
|
|
603
|
+
/* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(28);
|
|
590
604
|
/* harmony import */ var _splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_propUtils__WEBPACK_IMPORTED_MODULE_4__);
|
|
591
|
-
/* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(
|
|
605
|
+
/* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__ = __webpack_require__(49);
|
|
592
606
|
/* harmony import */ var _splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_colorConstants__WEBPACK_IMPORTED_MODULE_5__);
|
|
593
607
|
|
|
594
608
|
|
|
@@ -1540,11 +1554,22 @@ var darken = function darken(color) {
|
|
|
1540
1554
|
*/
|
|
1541
1555
|
|
|
1542
1556
|
var handleValueClickCallback = function handleValueClickCallback(ev, majorValue, majorValueField, trendValue, onValueClick) {
|
|
1557
|
+
var trellisEnabled = arguments.length > 5 && arguments[5] !== undefined ? arguments[5] : false;
|
|
1558
|
+
var trellisSplityBy = arguments.length > 6 && arguments[6] !== undefined ? arguments[6] : '';
|
|
1559
|
+
var trellisKey = arguments.length > 7 && arguments[7] !== undefined ? arguments[7] : '';
|
|
1543
1560
|
var payload = {
|
|
1544
1561
|
trendValue: trendValue,
|
|
1545
1562
|
value: majorValue,
|
|
1546
1563
|
name: majorValueField
|
|
1547
1564
|
};
|
|
1565
|
+
|
|
1566
|
+
if (trellisEnabled) {
|
|
1567
|
+
payload = _objectSpread(_objectSpread({}, payload), {}, {
|
|
1568
|
+
'trellis.name': trellisSplityBy,
|
|
1569
|
+
'trellis.value': trellisKey
|
|
1570
|
+
});
|
|
1571
|
+
}
|
|
1572
|
+
|
|
1548
1573
|
return onValueClick(_objectSpread(_objectSpread({}, ev), {}, {
|
|
1549
1574
|
payload: payload
|
|
1550
1575
|
}));
|
|
@@ -1552,35 +1577,56 @@ var handleValueClickCallback = function handleValueClickCallback(ev, majorValue,
|
|
|
1552
1577
|
|
|
1553
1578
|
/***/ }),
|
|
1554
1579
|
|
|
1555
|
-
/***/
|
|
1580
|
+
/***/ 25:
|
|
1556
1581
|
/***/ (function(module, exports) {
|
|
1557
1582
|
|
|
1558
1583
|
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
1559
1584
|
|
|
1560
1585
|
/***/ }),
|
|
1561
1586
|
|
|
1562
|
-
/***/
|
|
1587
|
+
/***/ 26:
|
|
1588
|
+
/***/ (function(module, exports) {
|
|
1589
|
+
|
|
1590
|
+
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
1591
|
+
|
|
1592
|
+
/***/ }),
|
|
1593
|
+
|
|
1594
|
+
/***/ 27:
|
|
1595
|
+
/***/ (function(module, exports) {
|
|
1596
|
+
|
|
1597
|
+
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
1598
|
+
|
|
1599
|
+
/***/ }),
|
|
1600
|
+
|
|
1601
|
+
/***/ 28:
|
|
1563
1602
|
/***/ (function(module, exports) {
|
|
1564
1603
|
|
|
1565
1604
|
module.exports = require("@splunk/visualizations-shared/propUtils");
|
|
1566
1605
|
|
|
1567
1606
|
/***/ }),
|
|
1568
1607
|
|
|
1569
|
-
/***/
|
|
1608
|
+
/***/ 29:
|
|
1570
1609
|
/***/ (function(module, exports) {
|
|
1571
1610
|
|
|
1572
|
-
module.exports = require("@splunk/
|
|
1611
|
+
module.exports = require("@splunk/visualization-encoding/Options");
|
|
1573
1612
|
|
|
1574
1613
|
/***/ }),
|
|
1575
1614
|
|
|
1576
|
-
/***/
|
|
1615
|
+
/***/ 3:
|
|
1577
1616
|
/***/ (function(module, exports) {
|
|
1578
1617
|
|
|
1579
|
-
module.exports = require("
|
|
1618
|
+
module.exports = require("lodash");
|
|
1580
1619
|
|
|
1581
1620
|
/***/ }),
|
|
1582
1621
|
|
|
1583
|
-
/***/
|
|
1622
|
+
/***/ 30:
|
|
1623
|
+
/***/ (function(module, exports) {
|
|
1624
|
+
|
|
1625
|
+
module.exports = require("@splunk/visualizations-shared/numberUtils");
|
|
1626
|
+
|
|
1627
|
+
/***/ }),
|
|
1628
|
+
|
|
1629
|
+
/***/ 31:
|
|
1584
1630
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1585
1631
|
|
|
1586
1632
|
"use strict";
|
|
@@ -1591,15 +1637,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1591
1637
|
});
|
|
1592
1638
|
exports.shouldShowIconPlaceholder = void 0;
|
|
1593
1639
|
|
|
1594
|
-
var React = __webpack_require__(
|
|
1640
|
+
var React = __webpack_require__(0);
|
|
1595
1641
|
|
|
1596
|
-
var T = __webpack_require__(
|
|
1642
|
+
var T = __webpack_require__(1);
|
|
1597
1643
|
|
|
1598
1644
|
var lodash_1 = __webpack_require__(3);
|
|
1599
1645
|
|
|
1600
1646
|
var i18n_1 = __webpack_require__(2);
|
|
1601
1647
|
|
|
1602
|
-
var Message_1 = __webpack_require__(
|
|
1648
|
+
var Message_1 = __webpack_require__(9);
|
|
1603
1649
|
|
|
1604
1650
|
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
1605
1651
|
/**
|
|
@@ -1672,24 +1718,31 @@ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
|
1672
1718
|
|
|
1673
1719
|
/***/ }),
|
|
1674
1720
|
|
|
1675
|
-
/***/
|
|
1721
|
+
/***/ 32:
|
|
1722
|
+
/***/ (function(module, exports) {
|
|
1723
|
+
|
|
1724
|
+
module.exports = require("@splunk/ui-utils/id");
|
|
1725
|
+
|
|
1726
|
+
/***/ }),
|
|
1727
|
+
|
|
1728
|
+
/***/ 33:
|
|
1676
1729
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1677
1730
|
|
|
1678
1731
|
"use strict";
|
|
1679
1732
|
|
|
1680
1733
|
|
|
1681
|
-
var _defineProperty = __webpack_require__(
|
|
1734
|
+
var _defineProperty = __webpack_require__(8);
|
|
1682
1735
|
|
|
1683
1736
|
Object.defineProperty(exports, "__esModule", {
|
|
1684
1737
|
value: true
|
|
1685
1738
|
});
|
|
1686
1739
|
exports.getSortingParams = exports.SortParamsPropTypes = void 0;
|
|
1687
1740
|
|
|
1688
|
-
var T = __webpack_require__(
|
|
1741
|
+
var T = __webpack_require__(1);
|
|
1689
1742
|
|
|
1690
1743
|
var lodash_1 = __webpack_require__(3);
|
|
1691
1744
|
|
|
1692
|
-
var DataSource_1 = __webpack_require__(
|
|
1745
|
+
var DataSource_1 = __webpack_require__(43);
|
|
1693
1746
|
|
|
1694
1747
|
exports.SortParamsPropTypes = T.shape({
|
|
1695
1748
|
currentSortKey: T.string,
|
|
@@ -1709,7 +1762,7 @@ var getSortingParams = function getSortingParams(_ref) {
|
|
|
1709
1762
|
};
|
|
1710
1763
|
var onSort;
|
|
1711
1764
|
|
|
1712
|
-
if (
|
|
1765
|
+
if (typeof onRequestParamsChange === 'function') {
|
|
1713
1766
|
if (requestParams && lodash_1.has(requestParams, 'sort')) {
|
|
1714
1767
|
currentSortKey = Object.keys(requestParams.sort).shift();
|
|
1715
1768
|
currentSortDir = requestParams.sort[currentSortKey];
|
|
@@ -1743,7 +1796,7 @@ exports.getSortingParams = getSortingParams;
|
|
|
1743
1796
|
|
|
1744
1797
|
/***/ }),
|
|
1745
1798
|
|
|
1746
|
-
/***/
|
|
1799
|
+
/***/ 34:
|
|
1747
1800
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1748
1801
|
|
|
1749
1802
|
"use strict";
|
|
@@ -1754,7 +1807,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1754
1807
|
});
|
|
1755
1808
|
exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
|
|
1756
1809
|
|
|
1757
|
-
var T = __webpack_require__(
|
|
1810
|
+
var T = __webpack_require__(1);
|
|
1758
1811
|
|
|
1759
1812
|
var lodash_1 = __webpack_require__(3);
|
|
1760
1813
|
|
|
@@ -1774,7 +1827,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
1774
1827
|
var count = requestParams && requestParams.count;
|
|
1775
1828
|
var totalPages = typeof count === 'number' && count > 0 ? Math.ceil(totalCount / count) : 0;
|
|
1776
1829
|
var current = typeof count === 'number' && count > 0 ? Math.floor(offset / count) + 1 : 0;
|
|
1777
|
-
var isPaging = totalPages > 1 &&
|
|
1830
|
+
var isPaging = totalPages > 1 && typeof onRequestParamsChange === 'function';
|
|
1778
1831
|
|
|
1779
1832
|
var onChangeHandler = function onChangeHandler(e, _ref2) {
|
|
1780
1833
|
var page = _ref2.page,
|
|
@@ -1800,7 +1853,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
1800
1853
|
isPaging: isPaging,
|
|
1801
1854
|
current: current,
|
|
1802
1855
|
totalPages: totalPages,
|
|
1803
|
-
onChange:
|
|
1856
|
+
onChange: typeof onRequestParamsChange === 'function' ? onChangeHandler : lodash_1.noop
|
|
1804
1857
|
};
|
|
1805
1858
|
};
|
|
1806
1859
|
|
|
@@ -1808,21 +1861,7 @@ exports.getPaginationParams = getPaginationParams;
|
|
|
1808
1861
|
|
|
1809
1862
|
/***/ }),
|
|
1810
1863
|
|
|
1811
|
-
/***/
|
|
1812
|
-
/***/ (function(module, exports) {
|
|
1813
|
-
|
|
1814
|
-
module.exports = require("lodash");
|
|
1815
|
-
|
|
1816
|
-
/***/ }),
|
|
1817
|
-
|
|
1818
|
-
/***/ 30:
|
|
1819
|
-
/***/ (function(module, exports) {
|
|
1820
|
-
|
|
1821
|
-
module.exports = require("@splunk/visualizations-shared/numberUtils");
|
|
1822
|
-
|
|
1823
|
-
/***/ }),
|
|
1824
|
-
|
|
1825
|
-
/***/ 31:
|
|
1864
|
+
/***/ 35:
|
|
1826
1865
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1827
1866
|
|
|
1828
1867
|
"use strict";
|
|
@@ -1851,58 +1890,67 @@ var VizCategory;
|
|
|
1851
1890
|
|
|
1852
1891
|
/***/ }),
|
|
1853
1892
|
|
|
1854
|
-
/***/
|
|
1893
|
+
/***/ 36:
|
|
1855
1894
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1856
1895
|
|
|
1857
1896
|
"use strict";
|
|
1858
1897
|
|
|
1859
1898
|
|
|
1899
|
+
var _slicedToArray = __webpack_require__(17);
|
|
1900
|
+
|
|
1860
1901
|
Object.defineProperty(exports, "__esModule", {
|
|
1861
1902
|
value: true
|
|
1862
1903
|
});
|
|
1863
1904
|
|
|
1864
|
-
var React = __webpack_require__(
|
|
1905
|
+
var React = __webpack_require__(0);
|
|
1865
1906
|
|
|
1866
1907
|
var lodash_1 = __webpack_require__(3);
|
|
1867
1908
|
|
|
1868
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
1909
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(37);
|
|
1910
|
+
|
|
1911
|
+
var Options_1 = __webpack_require__(29);
|
|
1869
1912
|
|
|
1870
|
-
var
|
|
1913
|
+
var SanitizeProps_1 = __webpack_require__(38);
|
|
1871
1914
|
|
|
1872
|
-
var
|
|
1915
|
+
var TimezoneContext_1 = __webpack_require__(25);
|
|
1873
1916
|
|
|
1874
|
-
var
|
|
1917
|
+
var moment_1 = __webpack_require__(39);
|
|
1875
1918
|
|
|
1876
|
-
var
|
|
1919
|
+
var FeatureFlagContext_1 = __webpack_require__(20);
|
|
1877
1920
|
|
|
1878
1921
|
var styled_components_1 = __webpack_require__(4);
|
|
1879
1922
|
|
|
1880
|
-
var hocUtils_1 = __webpack_require__(
|
|
1923
|
+
var hocUtils_1 = __webpack_require__(26);
|
|
1881
1924
|
|
|
1882
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
1925
|
+
var JSONSchemaUtils_1 = __webpack_require__(27);
|
|
1883
1926
|
|
|
1884
|
-
var
|
|
1927
|
+
var async_dynamic_options_evaluator_1 = __webpack_require__(40);
|
|
1928
|
+
|
|
1929
|
+
var id_1 = __webpack_require__(32);
|
|
1930
|
+
|
|
1931
|
+
var SplunkVisualization_1 = __webpack_require__(41);
|
|
1885
1932
|
|
|
1886
1933
|
var VizBehavior_1 = __webpack_require__(6);
|
|
1887
1934
|
|
|
1888
|
-
var getSorting_1 = __webpack_require__(
|
|
1935
|
+
var getSorting_1 = __webpack_require__(33);
|
|
1889
1936
|
|
|
1890
|
-
var getPagination_1 = __webpack_require__(
|
|
1937
|
+
var getPagination_1 = __webpack_require__(34);
|
|
1891
1938
|
|
|
1892
|
-
var useDeepMemo_1 = __webpack_require__(
|
|
1939
|
+
var useDeepMemo_1 = __webpack_require__(44);
|
|
1893
1940
|
|
|
1894
|
-
var MissingPropsMessage_1 = __webpack_require__(
|
|
1941
|
+
var MissingPropsMessage_1 = __webpack_require__(45);
|
|
1895
1942
|
|
|
1896
|
-
var withEditModeCover_1 = __webpack_require__(
|
|
1943
|
+
var withEditModeCover_1 = __webpack_require__(46);
|
|
1897
1944
|
|
|
1898
|
-
var withPlaceholder_1 = __webpack_require__(
|
|
1945
|
+
var withPlaceholder_1 = __webpack_require__(47);
|
|
1946
|
+
|
|
1947
|
+
var UUID = id_1.createGUID();
|
|
1899
1948
|
/**
|
|
1900
1949
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
1901
1950
|
* @param {DashboardVizOpts} opts
|
|
1902
1951
|
* @returns {HOC}
|
|
1903
1952
|
*/
|
|
1904
1953
|
|
|
1905
|
-
|
|
1906
1954
|
var withDashboardViz = function withDashboardViz(opts) {
|
|
1907
1955
|
var ReactViz = opts.ReactViz,
|
|
1908
1956
|
vizConfig = opts.vizConfig,
|
|
@@ -1915,6 +1963,8 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1915
1963
|
var defaultOptions = JSONSchemaUtils_1.pickFieldFromJSONSchema(vizConfig.optionsSchema, 'default');
|
|
1916
1964
|
|
|
1917
1965
|
var DashboardViz = function DashboardViz(props) {
|
|
1966
|
+
var _a;
|
|
1967
|
+
|
|
1918
1968
|
var mode = props.mode,
|
|
1919
1969
|
hasEventHandlers = props.hasEventHandlers,
|
|
1920
1970
|
dataSources = props.dataSources,
|
|
@@ -1962,38 +2012,97 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1962
2012
|
|
|
1963
2013
|
var evaluatedOptions = {}; // evaluatedOptions need to be initialized as an empty object
|
|
1964
2014
|
|
|
2015
|
+
var _React$useState = React.useState({}),
|
|
2016
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
2017
|
+
evaluatedOptionsAsync = _React$useState2[0],
|
|
2018
|
+
setEvaluatedOptionsAsync = _React$useState2[1]; // evaluatedOptions need to be initialized as an empty object
|
|
2019
|
+
|
|
2020
|
+
|
|
2021
|
+
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
2022
|
+
|
|
2023
|
+
var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(UUID)),
|
|
2024
|
+
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
2025
|
+
visualizationID = _React$useState4[0];
|
|
2026
|
+
|
|
2027
|
+
var _React$useState5 = React.useState(Boolean(featureFlagContext && featureFlagContext.visualizations_useWebWorkersForDSL && typeof Worker !== 'undefined')),
|
|
2028
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
2029
|
+
useAsyncEvaluatedOptions = _React$useState6[0],
|
|
2030
|
+
setUseAsyncEvaluatedOptions = _React$useState6[1];
|
|
2031
|
+
|
|
1965
2032
|
evaluatedOptions = useDeepMemo_1.useDeepMemo(function () {
|
|
1966
2033
|
try {
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
|
|
1970
|
-
|
|
2034
|
+
if (useAsyncEvaluatedOptions) {
|
|
2035
|
+
var optionsToEvaluate = {
|
|
2036
|
+
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
2037
|
+
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
2038
|
+
};
|
|
2039
|
+
var asyncDynamicOptionsEvaluatorParams = {
|
|
2040
|
+
visualizationID: visualizationID,
|
|
2041
|
+
props: props,
|
|
2042
|
+
options: optionsToEvaluate,
|
|
2043
|
+
dataSources: dataSources,
|
|
2044
|
+
theme: vizConfig.themes
|
|
2045
|
+
};
|
|
2046
|
+
async_dynamic_options_evaluator_1.default.evaluate(asyncDynamicOptionsEvaluatorParams).then(function (results) {
|
|
2047
|
+
setEvaluatedOptionsAsync(results.results);
|
|
2048
|
+
}).catch(function (e) {
|
|
2049
|
+
// eslint-disable-next-line no-console
|
|
2050
|
+
console.error("unexpected error evaluating options - async: ".concat(e.message));
|
|
2051
|
+
setUseAsyncEvaluatedOptions(false);
|
|
2052
|
+
});
|
|
2053
|
+
} else {
|
|
2054
|
+
return Options_1.Options.evaluate({
|
|
2055
|
+
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
2056
|
+
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
2057
|
+
}, dataSources, themeFunc);
|
|
2058
|
+
}
|
|
1971
2059
|
} catch (e) {
|
|
1972
2060
|
// eslint-disable-next-line no-console
|
|
1973
|
-
console.error("unexpected error evaluating options:
|
|
2061
|
+
console.error("unexpected error evaluating options: ".concat(e.message));
|
|
1974
2062
|
return {};
|
|
1975
2063
|
}
|
|
1976
|
-
|
|
2064
|
+
|
|
2065
|
+
return {};
|
|
2066
|
+
}, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone, useAsyncEvaluatedOptions]);
|
|
2067
|
+
var evaluatedOptionsToUse = !useAsyncEvaluatedOptions ? evaluatedOptions : evaluatedOptionsAsync; // trellis specific backgroundColor update for onComputedProps
|
|
2068
|
+
// 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
|
|
2069
|
+
// onComputedProps api should return back trellisBackgroundColor value for backgroundColor option to support coloring of sibling panels (for eg:- title/ description on UDF side)
|
|
2070
|
+
|
|
2071
|
+
var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
|
|
2072
|
+
var clonedEvaluatedOptions = lodash_1.cloneDeep(evaluatedOptionsToUse);
|
|
2073
|
+
|
|
2074
|
+
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) {
|
|
2075
|
+
clonedEvaluatedOptions.backgroundColor = clonedEvaluatedOptions === null || clonedEvaluatedOptions === void 0 ? void 0 : clonedEvaluatedOptions.trellisBackgroundColor;
|
|
2076
|
+
} // useEffect hook needs to be initialized before any early returns
|
|
1977
2077
|
// this is in accordance with the order of hook calls being the same on each render https://reactjs.org/docs/hooks-rules.html#explanation
|
|
1978
2078
|
|
|
2079
|
+
|
|
2080
|
+
React.useEffect(function () {
|
|
2081
|
+
onComputedProps(clonedEvaluatedOptions);
|
|
2082
|
+
});
|
|
1979
2083
|
React.useEffect(function () {
|
|
1980
|
-
|
|
1981
|
-
|
|
2084
|
+
return function () {
|
|
2085
|
+
if (useAsyncEvaluatedOptions) {
|
|
2086
|
+
async_dynamic_options_evaluator_1.default.reset(visualizationID);
|
|
2087
|
+
}
|
|
2088
|
+
}; // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2089
|
+
}, []); // present warning message if any required props are missing
|
|
1982
2090
|
|
|
1983
2091
|
var _vizConfig$requiredPr = vizConfig.requiredProps,
|
|
1984
2092
|
requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
|
|
1985
2093
|
supports = vizConfig.supports;
|
|
1986
|
-
var missing = MissingPropsMessage_1.missingKeys(requiredProps,
|
|
1987
|
-
|
|
1988
|
-
if (missing.length > 0 && supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER)
|
|
1989
|
-
|
|
1990
|
-
|
|
1991
|
-
|
|
1992
|
-
|
|
1993
|
-
|
|
1994
|
-
|
|
1995
|
-
|
|
1996
|
-
|
|
2094
|
+
var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptionsToUse);
|
|
2095
|
+
|
|
2096
|
+
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
|
|
2097
|
+
) {
|
|
2098
|
+
return React.createElement(MissingPropsMessage_1.default, {
|
|
2099
|
+
"data-test": "missing-props-message",
|
|
2100
|
+
width: width,
|
|
2101
|
+
height: height,
|
|
2102
|
+
missingProps: missing,
|
|
2103
|
+
backgroundColor: bgColorFromTheme
|
|
2104
|
+
});
|
|
2105
|
+
} // events
|
|
1997
2106
|
|
|
1998
2107
|
|
|
1999
2108
|
var eventCallbackProps = {};
|
|
@@ -2010,7 +2119,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2010
2119
|
|
|
2011
2120
|
if (Array.isArray(payloadKeys) && payloadKeys.length) {
|
|
2012
2121
|
payloadKeys.forEach(function (p) {
|
|
2013
|
-
payload[p] =
|
|
2122
|
+
payload[p] = evaluatedOptionsToUse[p];
|
|
2014
2123
|
});
|
|
2015
2124
|
}
|
|
2016
2125
|
|
|
@@ -2029,7 +2138,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2029
2138
|
} // compute pure viz props which are not from options
|
|
2030
2139
|
|
|
2031
2140
|
|
|
2032
|
-
var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props),
|
|
2141
|
+
var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props), evaluatedOptionsToUse), eventCallbackProps), {
|
|
2033
2142
|
themeFunc: themeFunc
|
|
2034
2143
|
}));
|
|
2035
2144
|
/**
|
|
@@ -2049,7 +2158,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2049
2158
|
|
|
2050
2159
|
var dataSourceMetadata = {};
|
|
2051
2160
|
var OptionKey = 'paginateDataSourceKey';
|
|
2052
|
-
var paginateDataSourceKey = lodash_1.has(
|
|
2161
|
+
var paginateDataSourceKey = lodash_1.has(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
|
|
2053
2162
|
|
|
2054
2163
|
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && lodash_1.has(dataSources, paginateDataSourceKey)) {
|
|
2055
2164
|
var requestParams = lodash_1.get(dataSources, [paginateDataSourceKey, 'requestParams'], {});
|
|
@@ -2079,7 +2188,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
2079
2188
|
mode: mode,
|
|
2080
2189
|
width: width,
|
|
2081
2190
|
height: height
|
|
2082
|
-
},
|
|
2191
|
+
}, evaluatedOptionsToUse, computedVizProps, eventCallbackProps, dataSourceMetadata));
|
|
2083
2192
|
};
|
|
2084
2193
|
|
|
2085
2194
|
DashboardViz.propTypes = Object.assign(Object.assign({}, SplunkVisualization_1.default.propTypes), ReactViz.propTypes);
|
|
@@ -2097,35 +2206,42 @@ exports.default = withDashboardViz;
|
|
|
2097
2206
|
|
|
2098
2207
|
/***/ }),
|
|
2099
2208
|
|
|
2100
|
-
/***/
|
|
2209
|
+
/***/ 37:
|
|
2101
2210
|
/***/ (function(module, exports) {
|
|
2102
2211
|
|
|
2103
2212
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
2104
2213
|
|
|
2105
2214
|
/***/ }),
|
|
2106
2215
|
|
|
2107
|
-
/***/
|
|
2216
|
+
/***/ 38:
|
|
2108
2217
|
/***/ (function(module, exports) {
|
|
2109
2218
|
|
|
2110
|
-
module.exports = require("@splunk/
|
|
2219
|
+
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
2111
2220
|
|
|
2112
2221
|
/***/ }),
|
|
2113
2222
|
|
|
2114
|
-
/***/
|
|
2223
|
+
/***/ 39:
|
|
2115
2224
|
/***/ (function(module, exports) {
|
|
2116
2225
|
|
|
2117
|
-
module.exports = require("@splunk/
|
|
2226
|
+
module.exports = require("@splunk/moment");
|
|
2118
2227
|
|
|
2119
2228
|
/***/ }),
|
|
2120
2229
|
|
|
2121
|
-
/***/
|
|
2230
|
+
/***/ 4:
|
|
2122
2231
|
/***/ (function(module, exports) {
|
|
2123
2232
|
|
|
2124
|
-
module.exports = require("
|
|
2233
|
+
module.exports = require("styled-components");
|
|
2125
2234
|
|
|
2126
2235
|
/***/ }),
|
|
2127
2236
|
|
|
2128
|
-
/***/
|
|
2237
|
+
/***/ 40:
|
|
2238
|
+
/***/ (function(module, exports) {
|
|
2239
|
+
|
|
2240
|
+
module.exports = require("@splunk/async-dynamic-options-evaluator");
|
|
2241
|
+
|
|
2242
|
+
/***/ }),
|
|
2243
|
+
|
|
2244
|
+
/***/ 41:
|
|
2129
2245
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2130
2246
|
|
|
2131
2247
|
"use strict";
|
|
@@ -2139,11 +2255,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2139
2255
|
exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
|
|
2140
2256
|
/* eslint-disable react/no-unused-prop-types,react/prefer-stateless-function */
|
|
2141
2257
|
|
|
2142
|
-
var T = __webpack_require__(
|
|
2258
|
+
var T = __webpack_require__(1);
|
|
2143
2259
|
|
|
2144
2260
|
var lodash_1 = __webpack_require__(3);
|
|
2145
2261
|
|
|
2146
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
2262
|
+
var VizActionHandler_1 = __webpack_require__(42); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
2147
2263
|
|
|
2148
2264
|
|
|
2149
2265
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -2277,7 +2393,7 @@ exports.default = SplunkVisualization;
|
|
|
2277
2393
|
|
|
2278
2394
|
/***/ }),
|
|
2279
2395
|
|
|
2280
|
-
/***/
|
|
2396
|
+
/***/ 42:
|
|
2281
2397
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2282
2398
|
|
|
2283
2399
|
"use strict";
|
|
@@ -2285,7 +2401,7 @@ exports.default = SplunkVisualization;
|
|
|
2285
2401
|
|
|
2286
2402
|
var _classCallCheck = __webpack_require__(11);
|
|
2287
2403
|
|
|
2288
|
-
var _createClass = __webpack_require__(
|
|
2404
|
+
var _createClass = __webpack_require__(22);
|
|
2289
2405
|
|
|
2290
2406
|
Object.defineProperty(exports, "__esModule", {
|
|
2291
2407
|
value: true
|
|
@@ -2315,159 +2431,87 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
|
2315
2431
|
|
|
2316
2432
|
/***/ }),
|
|
2317
2433
|
|
|
2318
|
-
/***/
|
|
2434
|
+
/***/ 427:
|
|
2319
2435
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2320
2436
|
|
|
2321
2437
|
"use strict";
|
|
2322
2438
|
|
|
2323
2439
|
|
|
2324
|
-
|
|
2325
|
-
|
|
2326
|
-
});
|
|
2327
|
-
exports.validSortDirs = void 0;
|
|
2328
|
-
exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
2329
|
-
|
|
2330
|
-
/***/ }),
|
|
2331
|
-
|
|
2332
|
-
/***/ 4:
|
|
2333
|
-
/***/ (function(module, exports) {
|
|
2334
|
-
|
|
2335
|
-
module.exports = require("styled-components");
|
|
2336
|
-
|
|
2337
|
-
/***/ }),
|
|
2338
|
-
|
|
2339
|
-
/***/ 40:
|
|
2340
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2440
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
2441
|
+
var t = {};
|
|
2341
2442
|
|
|
2342
|
-
|
|
2443
|
+
for (var p in s) {
|
|
2444
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
2445
|
+
}
|
|
2343
2446
|
|
|
2447
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
2448
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
2449
|
+
}
|
|
2450
|
+
return t;
|
|
2451
|
+
};
|
|
2344
2452
|
|
|
2345
2453
|
Object.defineProperty(exports, "__esModule", {
|
|
2346
2454
|
value: true
|
|
2347
2455
|
});
|
|
2348
|
-
exports.
|
|
2456
|
+
exports.themes = exports.computeVizProps = exports.PureParallelCoordinates = exports.config = void 0;
|
|
2349
2457
|
|
|
2350
|
-
var
|
|
2458
|
+
var PureParallelCoordinates_1 = __webpack_require__(428);
|
|
2351
2459
|
|
|
2352
|
-
var
|
|
2353
|
-
/**
|
|
2354
|
-
* This hook evaluates and stores the result of a passed function and only
|
|
2355
|
-
* re-evaluates the function when passed dependencies change.
|
|
2356
|
-
*
|
|
2357
|
-
* It is different from the internal React useMemo in the following aspects:
|
|
2358
|
-
* - it only stores the last evaluated result
|
|
2359
|
-
* - it uses a deep equality check to determine if dependencies have changed
|
|
2360
|
-
*
|
|
2361
|
-
* Inspired by apollo-client's useDeepMemo
|
|
2362
|
-
*
|
|
2363
|
-
* @param fn the function to be executed and
|
|
2364
|
-
* @param dependencies an array of dependencies
|
|
2365
|
-
*/
|
|
2460
|
+
var withDashboardViz_1 = __webpack_require__(36);
|
|
2366
2461
|
|
|
2462
|
+
var config_1 = __webpack_require__(435);
|
|
2367
2463
|
|
|
2368
|
-
var
|
|
2369
|
-
var ref = react_1.useRef();
|
|
2464
|
+
var singleValueUtils_1 = __webpack_require__(24);
|
|
2370
2465
|
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
|
|
2466
|
+
exports.config = config_1.default;
|
|
2467
|
+
exports.PureParallelCoordinates = PureParallelCoordinates_1.default;
|
|
2468
|
+
|
|
2469
|
+
var computeVizProps = function computeVizProps(_a) {
|
|
2470
|
+
var themeFunc = _a.themeFunc,
|
|
2471
|
+
props = __rest(_a, ["themeFunc"]);
|
|
2472
|
+
|
|
2473
|
+
var defaultThemeColorVariables = ['defaultBackgroundColor', 'axisLineColor', 'axisLineHighlightColor', 'axisLabelColor', 'axisTitleColor', 'filterButtonDisabledColor', 'filterButtonActiveColor', 'filterTextColor', 'truncatedTextColor', 'filterSelectionColor', 'textShadowColor'];
|
|
2474
|
+
var defaultThemeColors = {};
|
|
2475
|
+
defaultThemeColorVariables.forEach(function (variable) {
|
|
2476
|
+
defaultThemeColors[variable] = themeFunc(variable);
|
|
2477
|
+
});
|
|
2478
|
+
|
|
2479
|
+
if (props.dataSources) {
|
|
2480
|
+
var _props$dataSources$pr = props.dataSources.primary.data,
|
|
2481
|
+
fields = _props$dataSources$pr.fields,
|
|
2482
|
+
columns = _props$dataSources$pr.columns;
|
|
2483
|
+
return Object.assign({
|
|
2484
|
+
fields: fields.map(function (field) {
|
|
2485
|
+
return field.name ? field.name : field;
|
|
2486
|
+
}),
|
|
2487
|
+
columns: columns
|
|
2488
|
+
}, defaultThemeColors);
|
|
2376
2489
|
}
|
|
2377
2490
|
|
|
2378
|
-
return
|
|
2491
|
+
return defaultThemeColors;
|
|
2379
2492
|
};
|
|
2380
2493
|
|
|
2381
|
-
exports.
|
|
2494
|
+
exports.computeVizProps = computeVizProps;
|
|
2495
|
+
var viz = withDashboardViz_1.default({
|
|
2496
|
+
ReactViz: exports.PureParallelCoordinates,
|
|
2497
|
+
vizConfig: config_1.default,
|
|
2498
|
+
computeVizProps: exports.computeVizProps,
|
|
2499
|
+
useIconPlaceholder: function useIconPlaceholder(dataSources, loading) {
|
|
2500
|
+
return singleValueUtils_1.isLoadingOrNoColumns(dataSources, loading);
|
|
2501
|
+
}
|
|
2502
|
+
});
|
|
2503
|
+
exports.themes = config_1.default.themes;
|
|
2504
|
+
exports.default = viz;
|
|
2382
2505
|
|
|
2383
2506
|
/***/ }),
|
|
2384
2507
|
|
|
2385
|
-
/***/
|
|
2508
|
+
/***/ 428:
|
|
2386
2509
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2387
2510
|
|
|
2388
2511
|
"use strict";
|
|
2389
2512
|
|
|
2390
2513
|
|
|
2391
|
-
|
|
2392
|
-
value: true
|
|
2393
|
-
});
|
|
2394
|
-
exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
|
|
2395
|
-
|
|
2396
|
-
var React = __webpack_require__(1);
|
|
2397
|
-
|
|
2398
|
-
var T = __webpack_require__(0);
|
|
2399
|
-
|
|
2400
|
-
var i18n_1 = __webpack_require__(2);
|
|
2401
|
-
|
|
2402
|
-
var Message_1 = __webpack_require__(10);
|
|
2403
|
-
|
|
2404
|
-
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
2405
|
-
/**
|
|
2406
|
-
* @method isMissing
|
|
2407
|
-
* @param {any} v
|
|
2408
|
-
* @returns {boolean} true if the input value === null or undefined
|
|
2409
|
-
*/
|
|
2410
|
-
|
|
2411
|
-
|
|
2412
|
-
var isMissing = function isMissing(v) {
|
|
2413
|
-
return v === null || v === undefined;
|
|
2414
|
-
};
|
|
2415
|
-
|
|
2416
|
-
exports.isMissing = isMissing;
|
|
2417
|
-
/**
|
|
2418
|
-
* @method misskingKeys
|
|
2419
|
-
* @param {string[]} keys
|
|
2420
|
-
* @param {object} target
|
|
2421
|
-
* @returns {string[]} the keys of missing required props
|
|
2422
|
-
*/
|
|
2423
|
-
|
|
2424
|
-
var missingKeys = function missingKeys(keys, target) {
|
|
2425
|
-
return keys.filter(function (k) {
|
|
2426
|
-
return exports.isMissing(target[k]);
|
|
2427
|
-
});
|
|
2428
|
-
};
|
|
2429
|
-
|
|
2430
|
-
exports.missingKeys = missingKeys;
|
|
2431
|
-
var propTypes = {
|
|
2432
|
-
width: T.oneOfType([T.string, T.number]),
|
|
2433
|
-
height: T.oneOfType([T.string, T.number]),
|
|
2434
|
-
// eslint-disable-next-line react/no-unused-prop-types
|
|
2435
|
-
backgroundColor: T.string,
|
|
2436
|
-
missingProps: T.arrayOf(T.string)
|
|
2437
|
-
};
|
|
2438
|
-
/**
|
|
2439
|
-
* @method MissingPropsMessage
|
|
2440
|
-
* @param {MissingPropsProps} props
|
|
2441
|
-
* @returns {React.ReactElement}
|
|
2442
|
-
*/
|
|
2443
|
-
|
|
2444
|
-
var MissingPropsMessage = function MissingPropsMessage(props) {
|
|
2445
|
-
var width = props.width,
|
|
2446
|
-
height = props.height,
|
|
2447
|
-
missingProps = props.missingProps;
|
|
2448
|
-
return React.createElement(Message_1.default, {
|
|
2449
|
-
"data-test": "message",
|
|
2450
|
-
width: width,
|
|
2451
|
-
height: height,
|
|
2452
|
-
message: i18n_1._("Missing property: ".concat(missingProps.join(', ')))
|
|
2453
|
-
});
|
|
2454
|
-
};
|
|
2455
|
-
|
|
2456
|
-
exports.MissingPropsMessage = MissingPropsMessage;
|
|
2457
|
-
exports.MissingPropsMessage.propTypes = propTypes;
|
|
2458
|
-
exports.MissingPropsMessage.defaultProps = {
|
|
2459
|
-
width: '100%',
|
|
2460
|
-
height: 250
|
|
2461
|
-
};
|
|
2462
|
-
exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
2463
|
-
|
|
2464
|
-
/***/ }),
|
|
2465
|
-
|
|
2466
|
-
/***/ 412:
|
|
2467
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2468
|
-
|
|
2469
|
-
"use strict";
|
|
2470
|
-
|
|
2514
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
2471
2515
|
|
|
2472
2516
|
var __rest = this && this.__rest || function (s, e) {
|
|
2473
2517
|
var t = {};
|
|
@@ -2485,96 +2529,20 @@ var __rest = this && this.__rest || function (s, e) {
|
|
|
2485
2529
|
Object.defineProperty(exports, "__esModule", {
|
|
2486
2530
|
value: true
|
|
2487
2531
|
});
|
|
2488
|
-
exports.themes = exports.computeVizProps = exports.PureParallelCoordinates = exports.config = void 0;
|
|
2489
|
-
|
|
2490
|
-
var PureParallelCoordinates_1 = __webpack_require__(413);
|
|
2491
|
-
|
|
2492
|
-
var withDashboardViz_1 = __webpack_require__(32);
|
|
2493
|
-
|
|
2494
|
-
var config_1 = __webpack_require__(420);
|
|
2495
|
-
|
|
2496
|
-
var singleValueUtils_1 = __webpack_require__(22);
|
|
2497
|
-
|
|
2498
|
-
exports.config = config_1.default;
|
|
2499
|
-
exports.PureParallelCoordinates = PureParallelCoordinates_1.default;
|
|
2500
2532
|
|
|
2501
|
-
var
|
|
2502
|
-
var themeFunc = _a.themeFunc,
|
|
2503
|
-
props = __rest(_a, ["themeFunc"]);
|
|
2533
|
+
var React = __webpack_require__(0);
|
|
2504
2534
|
|
|
2505
|
-
|
|
2506
|
-
var defaultThemeColors = {};
|
|
2507
|
-
defaultThemeColorVariables.forEach(function (variable) {
|
|
2508
|
-
defaultThemeColors[variable] = themeFunc(variable);
|
|
2509
|
-
});
|
|
2535
|
+
var d3_array_1 = __webpack_require__(61);
|
|
2510
2536
|
|
|
2511
|
-
|
|
2512
|
-
var _props$dataSources$pr = props.dataSources.primary.data,
|
|
2513
|
-
fields = _props$dataSources$pr.fields,
|
|
2514
|
-
columns = _props$dataSources$pr.columns;
|
|
2515
|
-
return Object.assign({
|
|
2516
|
-
fields: fields.map(function (field) {
|
|
2517
|
-
return field.name ? field.name : field;
|
|
2518
|
-
}),
|
|
2519
|
-
columns: columns
|
|
2520
|
-
}, defaultThemeColors);
|
|
2521
|
-
}
|
|
2537
|
+
var d3_scale_1 = __webpack_require__(86);
|
|
2522
2538
|
|
|
2523
|
-
|
|
2524
|
-
};
|
|
2525
|
-
|
|
2526
|
-
exports.computeVizProps = computeVizProps;
|
|
2527
|
-
var viz = withDashboardViz_1.default({
|
|
2528
|
-
ReactViz: exports.PureParallelCoordinates,
|
|
2529
|
-
vizConfig: config_1.default,
|
|
2530
|
-
computeVizProps: exports.computeVizProps,
|
|
2531
|
-
useIconPlaceholder: function useIconPlaceholder(dataSources, loading) {
|
|
2532
|
-
return singleValueUtils_1.isLoadingOrNoColumns(dataSources, loading);
|
|
2533
|
-
}
|
|
2534
|
-
});
|
|
2535
|
-
exports.themes = config_1.default.themes;
|
|
2536
|
-
exports.default = viz;
|
|
2537
|
-
|
|
2538
|
-
/***/ }),
|
|
2539
|
-
|
|
2540
|
-
/***/ 413:
|
|
2541
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2542
|
-
|
|
2543
|
-
"use strict";
|
|
2544
|
-
|
|
2545
|
-
|
|
2546
|
-
var _toConsumableArray = __webpack_require__(8);
|
|
2547
|
-
|
|
2548
|
-
var __rest = this && this.__rest || function (s, e) {
|
|
2549
|
-
var t = {};
|
|
2550
|
-
|
|
2551
|
-
for (var p in s) {
|
|
2552
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
2553
|
-
}
|
|
2554
|
-
|
|
2555
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
2556
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
2557
|
-
}
|
|
2558
|
-
return t;
|
|
2559
|
-
};
|
|
2560
|
-
|
|
2561
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2562
|
-
value: true
|
|
2563
|
-
});
|
|
2564
|
-
|
|
2565
|
-
var React = __webpack_require__(1);
|
|
2566
|
-
|
|
2567
|
-
var d3_array_1 = __webpack_require__(55);
|
|
2568
|
-
|
|
2569
|
-
var d3_scale_1 = __webpack_require__(80);
|
|
2570
|
-
|
|
2571
|
-
var T = __webpack_require__(0);
|
|
2539
|
+
var T = __webpack_require__(1);
|
|
2572
2540
|
|
|
2573
2541
|
var i18n_1 = __webpack_require__(2);
|
|
2574
2542
|
|
|
2575
|
-
var Message_1 = __webpack_require__(
|
|
2543
|
+
var Message_1 = __webpack_require__(9);
|
|
2576
2544
|
|
|
2577
|
-
var ParallelCoordinatesChart_1 = __webpack_require__(
|
|
2545
|
+
var ParallelCoordinatesChart_1 = __webpack_require__(429);
|
|
2578
2546
|
|
|
2579
2547
|
var PureParallelCoordinates = function PureParallelCoordinates(_a) {
|
|
2580
2548
|
var props = __rest(_a, []);
|
|
@@ -2767,15 +2735,15 @@ exports.default = PureParallelCoordinates;
|
|
|
2767
2735
|
|
|
2768
2736
|
/***/ }),
|
|
2769
2737
|
|
|
2770
|
-
/***/
|
|
2738
|
+
/***/ 429:
|
|
2771
2739
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2772
2740
|
|
|
2773
2741
|
"use strict";
|
|
2774
2742
|
|
|
2775
2743
|
|
|
2776
|
-
var _toConsumableArray = __webpack_require__(
|
|
2744
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
2777
2745
|
|
|
2778
|
-
var _slicedToArray = __webpack_require__(
|
|
2746
|
+
var _slicedToArray = __webpack_require__(17);
|
|
2779
2747
|
|
|
2780
2748
|
var __rest = this && this.__rest || function (s, e) {
|
|
2781
2749
|
var t = {};
|
|
@@ -2794,21 +2762,21 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2794
2762
|
value: true
|
|
2795
2763
|
});
|
|
2796
2764
|
|
|
2797
|
-
var React = __webpack_require__(
|
|
2765
|
+
var React = __webpack_require__(0);
|
|
2798
2766
|
|
|
2799
2767
|
var styled_components_1 = __webpack_require__(4);
|
|
2800
2768
|
|
|
2801
|
-
var d3_selection_1 = __webpack_require__(
|
|
2769
|
+
var d3_selection_1 = __webpack_require__(430);
|
|
2802
2770
|
|
|
2803
|
-
var d3_brush_1 = __webpack_require__(
|
|
2771
|
+
var d3_brush_1 = __webpack_require__(431);
|
|
2804
2772
|
|
|
2805
|
-
var d3_axis_1 = __webpack_require__(
|
|
2773
|
+
var d3_axis_1 = __webpack_require__(432);
|
|
2806
2774
|
|
|
2807
|
-
var d3_drag_1 = __webpack_require__(
|
|
2775
|
+
var d3_drag_1 = __webpack_require__(433);
|
|
2808
2776
|
|
|
2809
|
-
var rgb_hex_converter_1 = __webpack_require__(
|
|
2777
|
+
var rgb_hex_converter_1 = __webpack_require__(159);
|
|
2810
2778
|
|
|
2811
|
-
var ParallelCoordinatesCanvas_1 = __webpack_require__(
|
|
2779
|
+
var ParallelCoordinatesCanvas_1 = __webpack_require__(434);
|
|
2812
2780
|
|
|
2813
2781
|
var ChartDiv = styled_components_1.default.div.withConfig({
|
|
2814
2782
|
displayName: "ParallelCoordinatesChart__ChartDiv",
|
|
@@ -3136,35 +3104,49 @@ exports.default = ParallelCoordinatesChart;
|
|
|
3136
3104
|
|
|
3137
3105
|
/***/ }),
|
|
3138
3106
|
|
|
3139
|
-
/***/
|
|
3107
|
+
/***/ 43:
|
|
3108
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3109
|
+
|
|
3110
|
+
"use strict";
|
|
3111
|
+
|
|
3112
|
+
|
|
3113
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3114
|
+
value: true
|
|
3115
|
+
});
|
|
3116
|
+
exports.validSortDirs = void 0;
|
|
3117
|
+
exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
3118
|
+
|
|
3119
|
+
/***/ }),
|
|
3120
|
+
|
|
3121
|
+
/***/ 430:
|
|
3140
3122
|
/***/ (function(module, exports) {
|
|
3141
3123
|
|
|
3142
3124
|
module.exports = require("d3-selection");
|
|
3143
3125
|
|
|
3144
3126
|
/***/ }),
|
|
3145
3127
|
|
|
3146
|
-
/***/
|
|
3128
|
+
/***/ 431:
|
|
3147
3129
|
/***/ (function(module, exports) {
|
|
3148
3130
|
|
|
3149
3131
|
module.exports = require("d3-brush");
|
|
3150
3132
|
|
|
3151
3133
|
/***/ }),
|
|
3152
3134
|
|
|
3153
|
-
/***/
|
|
3135
|
+
/***/ 432:
|
|
3154
3136
|
/***/ (function(module, exports) {
|
|
3155
3137
|
|
|
3156
3138
|
module.exports = require("d3-axis");
|
|
3157
3139
|
|
|
3158
3140
|
/***/ }),
|
|
3159
3141
|
|
|
3160
|
-
/***/
|
|
3142
|
+
/***/ 433:
|
|
3161
3143
|
/***/ (function(module, exports) {
|
|
3162
3144
|
|
|
3163
3145
|
module.exports = require("d3-drag");
|
|
3164
3146
|
|
|
3165
3147
|
/***/ }),
|
|
3166
3148
|
|
|
3167
|
-
/***/
|
|
3149
|
+
/***/ 434:
|
|
3168
3150
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3169
3151
|
|
|
3170
3152
|
"use strict";
|
|
@@ -3187,9 +3169,9 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3187
3169
|
value: true
|
|
3188
3170
|
});
|
|
3189
3171
|
|
|
3190
|
-
var React = __webpack_require__(
|
|
3172
|
+
var React = __webpack_require__(0);
|
|
3191
3173
|
|
|
3192
|
-
var rgb_hex_converter_1 = __webpack_require__(
|
|
3174
|
+
var rgb_hex_converter_1 = __webpack_require__(159);
|
|
3193
3175
|
|
|
3194
3176
|
var ParallelCoordinatesCanvas = function ParallelCoordinatesCanvas(_a) {
|
|
3195
3177
|
var props = __rest(_a, []);
|
|
@@ -3325,60 +3307,7 @@ exports.default = ParallelCoordinatesCanvas;
|
|
|
3325
3307
|
|
|
3326
3308
|
/***/ }),
|
|
3327
3309
|
|
|
3328
|
-
/***/
|
|
3329
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3330
|
-
|
|
3331
|
-
"use strict";
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3335
|
-
value: true
|
|
3336
|
-
});
|
|
3337
|
-
|
|
3338
|
-
var React = __webpack_require__(1);
|
|
3339
|
-
|
|
3340
|
-
var styled_components_1 = __webpack_require__(4);
|
|
3341
|
-
|
|
3342
|
-
var hocUtils_1 = __webpack_require__(14);
|
|
3343
|
-
|
|
3344
|
-
var Cover = styled_components_1.default.div.withConfig({
|
|
3345
|
-
displayName: "withEditModeCover__Cover",
|
|
3346
|
-
componentId: "sc-1gsbnxb-0"
|
|
3347
|
-
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
3348
|
-
var Blocker = styled_components_1.default.div.attrs({
|
|
3349
|
-
'data-splunk-visualization-version': "25.5.0 - 12c0447a7"
|
|
3350
|
-
}).withConfig({
|
|
3351
|
-
displayName: "withEditModeCover__Blocker",
|
|
3352
|
-
componentId: "sc-1gsbnxb-1"
|
|
3353
|
-
})(["position:relative;width:100%;height:100%;"]);
|
|
3354
|
-
/**
|
|
3355
|
-
* HOC that renders a cover layer in edit mode
|
|
3356
|
-
* @method withEditModeCover
|
|
3357
|
-
* @param {ExtendedDashViz} Visualization
|
|
3358
|
-
* @returns {ExtendedDashViz} Wrapper
|
|
3359
|
-
*/
|
|
3360
|
-
|
|
3361
|
-
var withEditModeCover = function withEditModeCover(Visualization, disableEditModeCover) {
|
|
3362
|
-
var Wrapper = function Wrapper(props) {
|
|
3363
|
-
var mode = props.mode;
|
|
3364
|
-
var showEditCover = mode === 'edit' && !disableEditModeCover;
|
|
3365
|
-
return React.createElement(Blocker, null, React.createElement(Visualization, Object.assign({}, props)), showEditCover && React.createElement(Cover, {
|
|
3366
|
-
"data-test": "edit-mode-cover"
|
|
3367
|
-
}));
|
|
3368
|
-
};
|
|
3369
|
-
|
|
3370
|
-
hocUtils_1.extendStaticWrapperProps({
|
|
3371
|
-
Wrapper: Wrapper,
|
|
3372
|
-
Visualization: Visualization
|
|
3373
|
-
});
|
|
3374
|
-
return Wrapper;
|
|
3375
|
-
};
|
|
3376
|
-
|
|
3377
|
-
exports.default = withEditModeCover;
|
|
3378
|
-
|
|
3379
|
-
/***/ }),
|
|
3380
|
-
|
|
3381
|
-
/***/ 420:
|
|
3310
|
+
/***/ 435:
|
|
3382
3311
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3383
3312
|
|
|
3384
3313
|
"use strict";
|
|
@@ -3392,23 +3321,23 @@ var i18n_1 = __webpack_require__(2);
|
|
|
3392
3321
|
|
|
3393
3322
|
var schemaUtils_1 = __webpack_require__(16);
|
|
3394
3323
|
|
|
3395
|
-
var pick_1 = __webpack_require__(
|
|
3324
|
+
var pick_1 = __webpack_require__(23);
|
|
3396
3325
|
|
|
3397
|
-
var variables_1 = __webpack_require__(
|
|
3326
|
+
var variables_1 = __webpack_require__(10);
|
|
3398
3327
|
|
|
3399
|
-
var visualization_color_palettes_1 = __webpack_require__(
|
|
3328
|
+
var visualization_color_palettes_1 = __webpack_require__(50);
|
|
3400
3329
|
|
|
3401
|
-
var visualization_icons_1 = __webpack_require__(
|
|
3330
|
+
var visualization_icons_1 = __webpack_require__(51);
|
|
3402
3331
|
|
|
3403
|
-
var placeholders_1 = __webpack_require__(
|
|
3332
|
+
var placeholders_1 = __webpack_require__(48);
|
|
3404
3333
|
|
|
3405
3334
|
var VizBehavior_1 = __webpack_require__(6);
|
|
3406
3335
|
|
|
3407
|
-
var configUtils_1 = __webpack_require__(
|
|
3336
|
+
var configUtils_1 = __webpack_require__(19);
|
|
3408
3337
|
|
|
3409
|
-
var VizCategory_1 = __webpack_require__(
|
|
3338
|
+
var VizCategory_1 = __webpack_require__(35);
|
|
3410
3339
|
|
|
3411
|
-
var BackgroundColor_1 = __webpack_require__(
|
|
3340
|
+
var BackgroundColor_1 = __webpack_require__(53);
|
|
3412
3341
|
|
|
3413
3342
|
var dataContract = {
|
|
3414
3343
|
requiredDataSources: [{
|
|
@@ -3554,7 +3483,6 @@ var editorConfig = [{
|
|
|
3554
3483
|
option: 'showNullAxis',
|
|
3555
3484
|
editor: 'editor.toggle',
|
|
3556
3485
|
editorProps: {
|
|
3557
|
-
labelPosition: 'left',
|
|
3558
3486
|
labelWidth: EDITOR_LABEL_WIDTH
|
|
3559
3487
|
}
|
|
3560
3488
|
}]]
|
|
@@ -3614,7 +3542,7 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
3614
3542
|
|
|
3615
3543
|
/***/ }),
|
|
3616
3544
|
|
|
3617
|
-
/***/
|
|
3545
|
+
/***/ 44:
|
|
3618
3546
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3619
3547
|
|
|
3620
3548
|
"use strict";
|
|
@@ -3623,18 +3551,198 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
3623
3551
|
Object.defineProperty(exports, "__esModule", {
|
|
3624
3552
|
value: true
|
|
3625
3553
|
});
|
|
3554
|
+
exports.useDeepMemo = void 0;
|
|
3555
|
+
|
|
3556
|
+
var react_1 = __webpack_require__(0);
|
|
3557
|
+
|
|
3558
|
+
var lodash_1 = __webpack_require__(3);
|
|
3559
|
+
/**
|
|
3560
|
+
* This hook evaluates and stores the result of a passed function and only
|
|
3561
|
+
* re-evaluates the function when passed dependencies change.
|
|
3562
|
+
*
|
|
3563
|
+
* It is different from the internal React useMemo in the following aspects:
|
|
3564
|
+
* - it only stores the last evaluated result
|
|
3565
|
+
* - it uses a deep equality check to determine if dependencies have changed
|
|
3566
|
+
*
|
|
3567
|
+
* Inspired by apollo-client's useDeepMemo
|
|
3568
|
+
*
|
|
3569
|
+
* @param fn the function to be executed and
|
|
3570
|
+
* @param dependencies an array of dependencies
|
|
3571
|
+
*/
|
|
3572
|
+
|
|
3573
|
+
|
|
3574
|
+
var useDeepMemo = function useDeepMemo(fn, dependencies) {
|
|
3575
|
+
var ref = react_1.useRef();
|
|
3576
|
+
|
|
3577
|
+
if (!ref.current || !lodash_1.isEqual(dependencies, ref.current.dependencies)) {
|
|
3578
|
+
ref.current = {
|
|
3579
|
+
dependencies: dependencies,
|
|
3580
|
+
value: fn()
|
|
3581
|
+
};
|
|
3582
|
+
}
|
|
3583
|
+
|
|
3584
|
+
return ref.current.value;
|
|
3585
|
+
};
|
|
3586
|
+
|
|
3587
|
+
exports.useDeepMemo = useDeepMemo;
|
|
3588
|
+
|
|
3589
|
+
/***/ }),
|
|
3590
|
+
|
|
3591
|
+
/***/ 45:
|
|
3592
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3593
|
+
|
|
3594
|
+
"use strict";
|
|
3595
|
+
|
|
3596
|
+
|
|
3597
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3598
|
+
value: true
|
|
3599
|
+
});
|
|
3600
|
+
exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
|
|
3601
|
+
|
|
3602
|
+
var React = __webpack_require__(0);
|
|
3603
|
+
|
|
3604
|
+
var T = __webpack_require__(1);
|
|
3605
|
+
|
|
3606
|
+
var i18n_1 = __webpack_require__(2);
|
|
3607
|
+
|
|
3608
|
+
var Message_1 = __webpack_require__(9);
|
|
3609
|
+
|
|
3610
|
+
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
3611
|
+
/**
|
|
3612
|
+
* @method isMissing
|
|
3613
|
+
* @param {any} v
|
|
3614
|
+
* @returns {boolean} true if the input value === null or undefined
|
|
3615
|
+
*/
|
|
3616
|
+
|
|
3617
|
+
|
|
3618
|
+
var isMissing = function isMissing(v) {
|
|
3619
|
+
return v === null || v === undefined;
|
|
3620
|
+
};
|
|
3621
|
+
|
|
3622
|
+
exports.isMissing = isMissing;
|
|
3623
|
+
/**
|
|
3624
|
+
* @method misskingKeys
|
|
3625
|
+
* @param {string[]} keys
|
|
3626
|
+
* @param {object} target
|
|
3627
|
+
* @returns {string[]} the keys of missing required props
|
|
3628
|
+
*/
|
|
3629
|
+
|
|
3630
|
+
var missingKeys = function missingKeys(keys, target) {
|
|
3631
|
+
return keys.filter(function (k) {
|
|
3632
|
+
return exports.isMissing(target[k]);
|
|
3633
|
+
});
|
|
3634
|
+
};
|
|
3635
|
+
|
|
3636
|
+
exports.missingKeys = missingKeys;
|
|
3637
|
+
var propTypes = {
|
|
3638
|
+
width: T.oneOfType([T.string, T.number]),
|
|
3639
|
+
height: T.oneOfType([T.string, T.number]),
|
|
3640
|
+
// eslint-disable-next-line react/no-unused-prop-types
|
|
3641
|
+
backgroundColor: T.string,
|
|
3642
|
+
missingProps: T.arrayOf(T.string)
|
|
3643
|
+
};
|
|
3644
|
+
/**
|
|
3645
|
+
* @method MissingPropsMessage
|
|
3646
|
+
* @param {MissingPropsProps} props
|
|
3647
|
+
* @returns {React.ReactElement}
|
|
3648
|
+
*/
|
|
3626
3649
|
|
|
3627
|
-
var
|
|
3650
|
+
var MissingPropsMessage = function MissingPropsMessage(props) {
|
|
3651
|
+
var width = props.width,
|
|
3652
|
+
height = props.height,
|
|
3653
|
+
missingProps = props.missingProps;
|
|
3654
|
+
return React.createElement(Message_1.default, {
|
|
3655
|
+
"data-test": "message",
|
|
3656
|
+
width: width,
|
|
3657
|
+
height: height,
|
|
3658
|
+
message: i18n_1._("Missing property: ".concat(missingProps.join(', ')))
|
|
3659
|
+
});
|
|
3660
|
+
};
|
|
3661
|
+
|
|
3662
|
+
exports.MissingPropsMessage = MissingPropsMessage;
|
|
3663
|
+
exports.MissingPropsMessage.propTypes = propTypes;
|
|
3664
|
+
exports.MissingPropsMessage.defaultProps = {
|
|
3665
|
+
width: '100%',
|
|
3666
|
+
height: 250
|
|
3667
|
+
};
|
|
3668
|
+
exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
3669
|
+
|
|
3670
|
+
/***/ }),
|
|
3671
|
+
|
|
3672
|
+
/***/ 46:
|
|
3673
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3674
|
+
|
|
3675
|
+
"use strict";
|
|
3676
|
+
|
|
3677
|
+
|
|
3678
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3679
|
+
value: true
|
|
3680
|
+
});
|
|
3681
|
+
|
|
3682
|
+
var React = __webpack_require__(0);
|
|
3683
|
+
|
|
3684
|
+
var styled_components_1 = __webpack_require__(4);
|
|
3685
|
+
|
|
3686
|
+
var hocUtils_1 = __webpack_require__(15);
|
|
3687
|
+
|
|
3688
|
+
var Cover = styled_components_1.default.div.withConfig({
|
|
3689
|
+
displayName: "withEditModeCover__Cover",
|
|
3690
|
+
componentId: "sc-1gsbnxb-0"
|
|
3691
|
+
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
3692
|
+
var Blocker = styled_components_1.default.div.attrs({
|
|
3693
|
+
'data-splunk-visualization-version': "25.7.0 - d10a7789b"
|
|
3694
|
+
}).withConfig({
|
|
3695
|
+
displayName: "withEditModeCover__Blocker",
|
|
3696
|
+
componentId: "sc-1gsbnxb-1"
|
|
3697
|
+
})(["position:relative;width:100%;height:100%;"]);
|
|
3698
|
+
/**
|
|
3699
|
+
* HOC that renders a cover layer in edit mode
|
|
3700
|
+
* @method withEditModeCover
|
|
3701
|
+
* @param {ExtendedDashViz} Visualization
|
|
3702
|
+
* @returns {ExtendedDashViz} Wrapper
|
|
3703
|
+
*/
|
|
3704
|
+
|
|
3705
|
+
var withEditModeCover = function withEditModeCover(Visualization, disableEditModeCover) {
|
|
3706
|
+
var Wrapper = function Wrapper(props) {
|
|
3707
|
+
var mode = props.mode;
|
|
3708
|
+
var showEditCover = mode === 'edit' && !disableEditModeCover;
|
|
3709
|
+
return React.createElement(Blocker, null, React.createElement(Visualization, Object.assign({}, props)), showEditCover && React.createElement(Cover, {
|
|
3710
|
+
"data-test": "edit-mode-cover"
|
|
3711
|
+
}));
|
|
3712
|
+
};
|
|
3713
|
+
|
|
3714
|
+
hocUtils_1.extendStaticWrapperProps({
|
|
3715
|
+
Wrapper: Wrapper,
|
|
3716
|
+
Visualization: Visualization
|
|
3717
|
+
});
|
|
3718
|
+
return Wrapper;
|
|
3719
|
+
};
|
|
3720
|
+
|
|
3721
|
+
exports.default = withEditModeCover;
|
|
3722
|
+
|
|
3723
|
+
/***/ }),
|
|
3724
|
+
|
|
3725
|
+
/***/ 47:
|
|
3726
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3727
|
+
|
|
3728
|
+
"use strict";
|
|
3729
|
+
|
|
3730
|
+
|
|
3731
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3732
|
+
value: true
|
|
3733
|
+
});
|
|
3734
|
+
|
|
3735
|
+
var React = __webpack_require__(0);
|
|
3628
3736
|
|
|
3629
3737
|
var colorUtils_1 = __webpack_require__(12);
|
|
3630
3738
|
|
|
3631
|
-
var variables_1 = __webpack_require__(
|
|
3739
|
+
var variables_1 = __webpack_require__(10);
|
|
3632
3740
|
|
|
3633
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
3741
|
+
var IconPlaceholder_1 = __webpack_require__(31);
|
|
3634
3742
|
|
|
3635
3743
|
var VizBehavior_1 = __webpack_require__(6);
|
|
3636
3744
|
|
|
3637
|
-
var hocUtils_1 = __webpack_require__(
|
|
3745
|
+
var hocUtils_1 = __webpack_require__(15);
|
|
3638
3746
|
|
|
3639
3747
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
3640
3748
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -3679,35 +3787,35 @@ exports.default = withPlaceholder;
|
|
|
3679
3787
|
|
|
3680
3788
|
/***/ }),
|
|
3681
3789
|
|
|
3682
|
-
/***/
|
|
3790
|
+
/***/ 48:
|
|
3683
3791
|
/***/ (function(module, exports) {
|
|
3684
3792
|
|
|
3685
3793
|
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
3686
3794
|
|
|
3687
3795
|
/***/ }),
|
|
3688
3796
|
|
|
3689
|
-
/***/
|
|
3797
|
+
/***/ 49:
|
|
3690
3798
|
/***/ (function(module, exports) {
|
|
3691
3799
|
|
|
3692
3800
|
module.exports = require("@splunk/visualizations-shared/colorConstants");
|
|
3693
3801
|
|
|
3694
3802
|
/***/ }),
|
|
3695
3803
|
|
|
3696
|
-
/***/
|
|
3804
|
+
/***/ 50:
|
|
3697
3805
|
/***/ (function(module, exports) {
|
|
3698
3806
|
|
|
3699
3807
|
module.exports = require("@splunk/visualization-color-palettes");
|
|
3700
3808
|
|
|
3701
3809
|
/***/ }),
|
|
3702
3810
|
|
|
3703
|
-
/***/
|
|
3811
|
+
/***/ 51:
|
|
3704
3812
|
/***/ (function(module, exports) {
|
|
3705
3813
|
|
|
3706
3814
|
module.exports = require("@splunk/visualization-icons");
|
|
3707
3815
|
|
|
3708
3816
|
/***/ }),
|
|
3709
3817
|
|
|
3710
|
-
/***/
|
|
3818
|
+
/***/ 53:
|
|
3711
3819
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3712
3820
|
|
|
3713
3821
|
"use strict";
|
|
@@ -3738,27 +3846,13 @@ exports.default = background;
|
|
|
3738
3846
|
|
|
3739
3847
|
/***/ }),
|
|
3740
3848
|
|
|
3741
|
-
/***/
|
|
3849
|
+
/***/ 54:
|
|
3742
3850
|
/***/ (function(module, exports) {
|
|
3743
3851
|
|
|
3744
3852
|
module.exports = require("@splunk/visualizations-shared/domUtils");
|
|
3745
3853
|
|
|
3746
3854
|
/***/ }),
|
|
3747
3855
|
|
|
3748
|
-
/***/ 51:
|
|
3749
|
-
/***/ (function(module, exports) {
|
|
3750
|
-
|
|
3751
|
-
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
3752
|
-
|
|
3753
|
-
/***/ }),
|
|
3754
|
-
|
|
3755
|
-
/***/ 55:
|
|
3756
|
-
/***/ (function(module, exports) {
|
|
3757
|
-
|
|
3758
|
-
module.exports = require("d3-array");
|
|
3759
|
-
|
|
3760
|
-
/***/ }),
|
|
3761
|
-
|
|
3762
3856
|
/***/ 6:
|
|
3763
3857
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3764
3858
|
|
|
@@ -3793,25 +3887,33 @@ var VizBehavior;
|
|
|
3793
3887
|
|
|
3794
3888
|
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
3795
3889
|
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
3890
|
+
VizBehavior["TRELLIS"] = "trellis";
|
|
3796
3891
|
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
3797
3892
|
|
|
3798
3893
|
/***/ }),
|
|
3799
3894
|
|
|
3895
|
+
/***/ 61:
|
|
3896
|
+
/***/ (function(module, exports) {
|
|
3897
|
+
|
|
3898
|
+
module.exports = require("d3-array");
|
|
3899
|
+
|
|
3900
|
+
/***/ }),
|
|
3901
|
+
|
|
3800
3902
|
/***/ 7:
|
|
3801
3903
|
/***/ (function(module, exports) {
|
|
3802
3904
|
|
|
3803
|
-
module.exports = require("@babel/runtime/helpers/
|
|
3905
|
+
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
3804
3906
|
|
|
3805
3907
|
/***/ }),
|
|
3806
3908
|
|
|
3807
3909
|
/***/ 8:
|
|
3808
3910
|
/***/ (function(module, exports) {
|
|
3809
3911
|
|
|
3810
|
-
module.exports = require("@babel/runtime/helpers/
|
|
3912
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
3811
3913
|
|
|
3812
3914
|
/***/ }),
|
|
3813
3915
|
|
|
3814
|
-
/***/
|
|
3916
|
+
/***/ 86:
|
|
3815
3917
|
/***/ (function(module, exports) {
|
|
3816
3918
|
|
|
3817
3919
|
module.exports = require("d3-scale");
|
|
@@ -3821,7 +3923,7 @@ module.exports = require("d3-scale");
|
|
|
3821
3923
|
/***/ 9:
|
|
3822
3924
|
/***/ (function(module, exports) {
|
|
3823
3925
|
|
|
3824
|
-
module.exports = require("@splunk/
|
|
3926
|
+
module.exports = require("@splunk/visualizations-shared/Message");
|
|
3825
3927
|
|
|
3826
3928
|
/***/ })
|
|
3827
3929
|
|