@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/Punchcard.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 = 440);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -95,25 +95,25 @@ module.exports =
|
|
|
95
95
|
/***/ 0:
|
|
96
96
|
/***/ (function(module, exports) {
|
|
97
97
|
|
|
98
|
-
module.exports = require("
|
|
98
|
+
module.exports = require("react");
|
|
99
99
|
|
|
100
100
|
/***/ }),
|
|
101
101
|
|
|
102
102
|
/***/ 1:
|
|
103
103
|
/***/ (function(module, exports) {
|
|
104
104
|
|
|
105
|
-
module.exports = require("
|
|
105
|
+
module.exports = require("prop-types");
|
|
106
106
|
|
|
107
107
|
/***/ }),
|
|
108
108
|
|
|
109
109
|
/***/ 10:
|
|
110
110
|
/***/ (function(module, exports) {
|
|
111
111
|
|
|
112
|
-
module.exports = require("@splunk/
|
|
112
|
+
module.exports = require("@splunk/themes/variables");
|
|
113
113
|
|
|
114
114
|
/***/ }),
|
|
115
115
|
|
|
116
|
-
/***/
|
|
116
|
+
/***/ 109:
|
|
117
117
|
/***/ (function(module, exports) {
|
|
118
118
|
|
|
119
119
|
module.exports = require("lodash/find");
|
|
@@ -134,20 +134,6 @@ module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
|
134
134
|
|
|
135
135
|
/***/ }),
|
|
136
136
|
|
|
137
|
-
/***/ 121:
|
|
138
|
-
/***/ (function(module, exports) {
|
|
139
|
-
|
|
140
|
-
module.exports = require("lodash/findIndex");
|
|
141
|
-
|
|
142
|
-
/***/ }),
|
|
143
|
-
|
|
144
|
-
/***/ 122:
|
|
145
|
-
/***/ (function(module, exports) {
|
|
146
|
-
|
|
147
|
-
module.exports = require("lodash/flattenDeep");
|
|
148
|
-
|
|
149
|
-
/***/ }),
|
|
150
|
-
|
|
151
137
|
/***/ 13:
|
|
152
138
|
/***/ (function(module, exports, __webpack_require__) {
|
|
153
139
|
|
|
@@ -158,13 +144,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
158
144
|
value: true
|
|
159
145
|
});
|
|
160
146
|
|
|
161
|
-
var React = __webpack_require__(
|
|
147
|
+
var React = __webpack_require__(0);
|
|
162
148
|
|
|
163
149
|
var styled_components_1 = __webpack_require__(4);
|
|
164
150
|
|
|
165
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
151
|
+
var SizeAwareWrapper_1 = __webpack_require__(18);
|
|
166
152
|
|
|
167
|
-
var style_1 = __webpack_require__(
|
|
153
|
+
var style_1 = __webpack_require__(14);
|
|
168
154
|
|
|
169
155
|
var colorUtils_1 = __webpack_require__(12);
|
|
170
156
|
|
|
@@ -223,7 +209,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
223
209
|
|
|
224
210
|
return React.createElement(FixSizeItem, {
|
|
225
211
|
"data-test": "fix-size-item",
|
|
226
|
-
"data-splunk-visualization-version": "25.
|
|
212
|
+
"data-splunk-visualization-version": "25.7.0 - d10a7789b",
|
|
227
213
|
width: width,
|
|
228
214
|
height: height,
|
|
229
215
|
backgroundColor: backgroundColor
|
|
@@ -245,7 +231,28 @@ exports.default = withFixedSizeContainer;
|
|
|
245
231
|
|
|
246
232
|
/***/ }),
|
|
247
233
|
|
|
234
|
+
/***/ 135:
|
|
235
|
+
/***/ (function(module, exports) {
|
|
236
|
+
|
|
237
|
+
module.exports = require("lodash/findIndex");
|
|
238
|
+
|
|
239
|
+
/***/ }),
|
|
240
|
+
|
|
241
|
+
/***/ 136:
|
|
242
|
+
/***/ (function(module, exports) {
|
|
243
|
+
|
|
244
|
+
module.exports = require("lodash/flattenDeep");
|
|
245
|
+
|
|
246
|
+
/***/ }),
|
|
247
|
+
|
|
248
248
|
/***/ 14:
|
|
249
|
+
/***/ (function(module, exports) {
|
|
250
|
+
|
|
251
|
+
module.exports = require("@splunk/visualizations-shared/style");
|
|
252
|
+
|
|
253
|
+
/***/ }),
|
|
254
|
+
|
|
255
|
+
/***/ 15:
|
|
249
256
|
/***/ (function(module, exports, __webpack_require__) {
|
|
250
257
|
|
|
251
258
|
"use strict";
|
|
@@ -278,36 +285,43 @@ exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
|
278
285
|
|
|
279
286
|
/***/ }),
|
|
280
287
|
|
|
281
|
-
/***/
|
|
288
|
+
/***/ 16:
|
|
282
289
|
/***/ (function(module, exports) {
|
|
283
290
|
|
|
284
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
291
|
+
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
285
292
|
|
|
286
293
|
/***/ }),
|
|
287
294
|
|
|
288
|
-
/***/
|
|
295
|
+
/***/ 166:
|
|
289
296
|
/***/ (function(module, exports) {
|
|
290
297
|
|
|
291
298
|
module.exports = require("lodash/sortBy");
|
|
292
299
|
|
|
293
300
|
/***/ }),
|
|
294
301
|
|
|
295
|
-
/***/
|
|
302
|
+
/***/ 17:
|
|
296
303
|
/***/ (function(module, exports) {
|
|
297
304
|
|
|
298
|
-
module.exports = require("@
|
|
305
|
+
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
299
306
|
|
|
300
307
|
/***/ }),
|
|
301
308
|
|
|
302
|
-
/***/
|
|
309
|
+
/***/ 18:
|
|
310
|
+
/***/ (function(module, exports) {
|
|
311
|
+
|
|
312
|
+
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
313
|
+
|
|
314
|
+
/***/ }),
|
|
315
|
+
|
|
316
|
+
/***/ 19:
|
|
303
317
|
/***/ (function(module, exports, __webpack_require__) {
|
|
304
318
|
|
|
305
319
|
"use strict";
|
|
306
320
|
|
|
307
321
|
|
|
308
|
-
var _toConsumableArray = __webpack_require__(
|
|
322
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
309
323
|
|
|
310
|
-
var _defineProperty = __webpack_require__(
|
|
324
|
+
var _defineProperty = __webpack_require__(8);
|
|
311
325
|
|
|
312
326
|
var __rest = this && this.__rest || function (s, e) {
|
|
313
327
|
var t = {};
|
|
@@ -536,56 +550,77 @@ exports.insertLayout = insertLayout;
|
|
|
536
550
|
|
|
537
551
|
/***/ }),
|
|
538
552
|
|
|
539
|
-
/***/
|
|
553
|
+
/***/ 2:
|
|
540
554
|
/***/ (function(module, exports) {
|
|
541
555
|
|
|
542
|
-
module.exports = require("@
|
|
556
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
543
557
|
|
|
544
558
|
/***/ }),
|
|
545
559
|
|
|
546
|
-
/***/
|
|
560
|
+
/***/ 20:
|
|
547
561
|
/***/ (function(module, exports) {
|
|
548
562
|
|
|
549
|
-
module.exports = require("@splunk/
|
|
563
|
+
module.exports = require("@splunk/visualization-context/FeatureFlagContext");
|
|
550
564
|
|
|
551
565
|
/***/ }),
|
|
552
566
|
|
|
553
|
-
/***/
|
|
567
|
+
/***/ 22:
|
|
554
568
|
/***/ (function(module, exports) {
|
|
555
569
|
|
|
556
|
-
module.exports = require("@
|
|
570
|
+
module.exports = require("@babel/runtime/helpers/createClass");
|
|
557
571
|
|
|
558
572
|
/***/ }),
|
|
559
573
|
|
|
560
|
-
/***/
|
|
574
|
+
/***/ 23:
|
|
561
575
|
/***/ (function(module, exports) {
|
|
562
576
|
|
|
563
577
|
module.exports = require("@splunk/themes/pick");
|
|
564
578
|
|
|
565
579
|
/***/ }),
|
|
566
580
|
|
|
567
|
-
/***/
|
|
581
|
+
/***/ 25:
|
|
568
582
|
/***/ (function(module, exports) {
|
|
569
583
|
|
|
570
584
|
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
571
585
|
|
|
572
586
|
/***/ }),
|
|
573
587
|
|
|
574
|
-
/***/
|
|
588
|
+
/***/ 26:
|
|
575
589
|
/***/ (function(module, exports) {
|
|
576
590
|
|
|
577
591
|
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
578
592
|
|
|
579
593
|
/***/ }),
|
|
580
594
|
|
|
581
|
-
/***/
|
|
595
|
+
/***/ 27:
|
|
582
596
|
/***/ (function(module, exports) {
|
|
583
597
|
|
|
584
598
|
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
585
599
|
|
|
586
600
|
/***/ }),
|
|
587
601
|
|
|
588
|
-
/***/
|
|
602
|
+
/***/ 29:
|
|
603
|
+
/***/ (function(module, exports) {
|
|
604
|
+
|
|
605
|
+
module.exports = require("@splunk/visualization-encoding/Options");
|
|
606
|
+
|
|
607
|
+
/***/ }),
|
|
608
|
+
|
|
609
|
+
/***/ 3:
|
|
610
|
+
/***/ (function(module, exports) {
|
|
611
|
+
|
|
612
|
+
module.exports = require("lodash");
|
|
613
|
+
|
|
614
|
+
/***/ }),
|
|
615
|
+
|
|
616
|
+
/***/ 30:
|
|
617
|
+
/***/ (function(module, exports) {
|
|
618
|
+
|
|
619
|
+
module.exports = require("@splunk/visualizations-shared/numberUtils");
|
|
620
|
+
|
|
621
|
+
/***/ }),
|
|
622
|
+
|
|
623
|
+
/***/ 31:
|
|
589
624
|
/***/ (function(module, exports, __webpack_require__) {
|
|
590
625
|
|
|
591
626
|
"use strict";
|
|
@@ -596,15 +631,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
596
631
|
});
|
|
597
632
|
exports.shouldShowIconPlaceholder = void 0;
|
|
598
633
|
|
|
599
|
-
var React = __webpack_require__(
|
|
634
|
+
var React = __webpack_require__(0);
|
|
600
635
|
|
|
601
|
-
var T = __webpack_require__(
|
|
636
|
+
var T = __webpack_require__(1);
|
|
602
637
|
|
|
603
638
|
var lodash_1 = __webpack_require__(3);
|
|
604
639
|
|
|
605
640
|
var i18n_1 = __webpack_require__(2);
|
|
606
641
|
|
|
607
|
-
var Message_1 = __webpack_require__(
|
|
642
|
+
var Message_1 = __webpack_require__(9);
|
|
608
643
|
|
|
609
644
|
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
610
645
|
/**
|
|
@@ -677,24 +712,31 @@ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
|
677
712
|
|
|
678
713
|
/***/ }),
|
|
679
714
|
|
|
680
|
-
/***/
|
|
715
|
+
/***/ 32:
|
|
716
|
+
/***/ (function(module, exports) {
|
|
717
|
+
|
|
718
|
+
module.exports = require("@splunk/ui-utils/id");
|
|
719
|
+
|
|
720
|
+
/***/ }),
|
|
721
|
+
|
|
722
|
+
/***/ 33:
|
|
681
723
|
/***/ (function(module, exports, __webpack_require__) {
|
|
682
724
|
|
|
683
725
|
"use strict";
|
|
684
726
|
|
|
685
727
|
|
|
686
|
-
var _defineProperty = __webpack_require__(
|
|
728
|
+
var _defineProperty = __webpack_require__(8);
|
|
687
729
|
|
|
688
730
|
Object.defineProperty(exports, "__esModule", {
|
|
689
731
|
value: true
|
|
690
732
|
});
|
|
691
733
|
exports.getSortingParams = exports.SortParamsPropTypes = void 0;
|
|
692
734
|
|
|
693
|
-
var T = __webpack_require__(
|
|
735
|
+
var T = __webpack_require__(1);
|
|
694
736
|
|
|
695
737
|
var lodash_1 = __webpack_require__(3);
|
|
696
738
|
|
|
697
|
-
var DataSource_1 = __webpack_require__(
|
|
739
|
+
var DataSource_1 = __webpack_require__(43);
|
|
698
740
|
|
|
699
741
|
exports.SortParamsPropTypes = T.shape({
|
|
700
742
|
currentSortKey: T.string,
|
|
@@ -714,7 +756,7 @@ var getSortingParams = function getSortingParams(_ref) {
|
|
|
714
756
|
};
|
|
715
757
|
var onSort;
|
|
716
758
|
|
|
717
|
-
if (
|
|
759
|
+
if (typeof onRequestParamsChange === 'function') {
|
|
718
760
|
if (requestParams && lodash_1.has(requestParams, 'sort')) {
|
|
719
761
|
currentSortKey = Object.keys(requestParams.sort).shift();
|
|
720
762
|
currentSortDir = requestParams.sort[currentSortKey];
|
|
@@ -748,7 +790,7 @@ exports.getSortingParams = getSortingParams;
|
|
|
748
790
|
|
|
749
791
|
/***/ }),
|
|
750
792
|
|
|
751
|
-
/***/
|
|
793
|
+
/***/ 34:
|
|
752
794
|
/***/ (function(module, exports, __webpack_require__) {
|
|
753
795
|
|
|
754
796
|
"use strict";
|
|
@@ -759,7 +801,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
759
801
|
});
|
|
760
802
|
exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
|
|
761
803
|
|
|
762
|
-
var T = __webpack_require__(
|
|
804
|
+
var T = __webpack_require__(1);
|
|
763
805
|
|
|
764
806
|
var lodash_1 = __webpack_require__(3);
|
|
765
807
|
|
|
@@ -779,7 +821,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
779
821
|
var count = requestParams && requestParams.count;
|
|
780
822
|
var totalPages = typeof count === 'number' && count > 0 ? Math.ceil(totalCount / count) : 0;
|
|
781
823
|
var current = typeof count === 'number' && count > 0 ? Math.floor(offset / count) + 1 : 0;
|
|
782
|
-
var isPaging = totalPages > 1 &&
|
|
824
|
+
var isPaging = totalPages > 1 && typeof onRequestParamsChange === 'function';
|
|
783
825
|
|
|
784
826
|
var onChangeHandler = function onChangeHandler(e, _ref2) {
|
|
785
827
|
var page = _ref2.page,
|
|
@@ -805,7 +847,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
805
847
|
isPaging: isPaging,
|
|
806
848
|
current: current,
|
|
807
849
|
totalPages: totalPages,
|
|
808
|
-
onChange:
|
|
850
|
+
onChange: typeof onRequestParamsChange === 'function' ? onChangeHandler : lodash_1.noop
|
|
809
851
|
};
|
|
810
852
|
};
|
|
811
853
|
|
|
@@ -813,21 +855,7 @@ exports.getPaginationParams = getPaginationParams;
|
|
|
813
855
|
|
|
814
856
|
/***/ }),
|
|
815
857
|
|
|
816
|
-
/***/
|
|
817
|
-
/***/ (function(module, exports) {
|
|
818
|
-
|
|
819
|
-
module.exports = require("lodash");
|
|
820
|
-
|
|
821
|
-
/***/ }),
|
|
822
|
-
|
|
823
|
-
/***/ 30:
|
|
824
|
-
/***/ (function(module, exports) {
|
|
825
|
-
|
|
826
|
-
module.exports = require("@splunk/visualizations-shared/numberUtils");
|
|
827
|
-
|
|
828
|
-
/***/ }),
|
|
829
|
-
|
|
830
|
-
/***/ 31:
|
|
858
|
+
/***/ 35:
|
|
831
859
|
/***/ (function(module, exports, __webpack_require__) {
|
|
832
860
|
|
|
833
861
|
"use strict";
|
|
@@ -856,58 +884,67 @@ var VizCategory;
|
|
|
856
884
|
|
|
857
885
|
/***/ }),
|
|
858
886
|
|
|
859
|
-
/***/
|
|
887
|
+
/***/ 36:
|
|
860
888
|
/***/ (function(module, exports, __webpack_require__) {
|
|
861
889
|
|
|
862
890
|
"use strict";
|
|
863
891
|
|
|
864
892
|
|
|
893
|
+
var _slicedToArray = __webpack_require__(17);
|
|
894
|
+
|
|
865
895
|
Object.defineProperty(exports, "__esModule", {
|
|
866
896
|
value: true
|
|
867
897
|
});
|
|
868
898
|
|
|
869
|
-
var React = __webpack_require__(
|
|
899
|
+
var React = __webpack_require__(0);
|
|
870
900
|
|
|
871
901
|
var lodash_1 = __webpack_require__(3);
|
|
872
902
|
|
|
873
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
903
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(37);
|
|
904
|
+
|
|
905
|
+
var Options_1 = __webpack_require__(29);
|
|
874
906
|
|
|
875
|
-
var
|
|
907
|
+
var SanitizeProps_1 = __webpack_require__(38);
|
|
876
908
|
|
|
877
|
-
var
|
|
909
|
+
var TimezoneContext_1 = __webpack_require__(25);
|
|
878
910
|
|
|
879
|
-
var
|
|
911
|
+
var moment_1 = __webpack_require__(39);
|
|
880
912
|
|
|
881
|
-
var
|
|
913
|
+
var FeatureFlagContext_1 = __webpack_require__(20);
|
|
882
914
|
|
|
883
915
|
var styled_components_1 = __webpack_require__(4);
|
|
884
916
|
|
|
885
|
-
var hocUtils_1 = __webpack_require__(
|
|
917
|
+
var hocUtils_1 = __webpack_require__(26);
|
|
886
918
|
|
|
887
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
919
|
+
var JSONSchemaUtils_1 = __webpack_require__(27);
|
|
888
920
|
|
|
889
|
-
var
|
|
921
|
+
var async_dynamic_options_evaluator_1 = __webpack_require__(40);
|
|
922
|
+
|
|
923
|
+
var id_1 = __webpack_require__(32);
|
|
924
|
+
|
|
925
|
+
var SplunkVisualization_1 = __webpack_require__(41);
|
|
890
926
|
|
|
891
927
|
var VizBehavior_1 = __webpack_require__(6);
|
|
892
928
|
|
|
893
|
-
var getSorting_1 = __webpack_require__(
|
|
929
|
+
var getSorting_1 = __webpack_require__(33);
|
|
930
|
+
|
|
931
|
+
var getPagination_1 = __webpack_require__(34);
|
|
894
932
|
|
|
895
|
-
var
|
|
933
|
+
var useDeepMemo_1 = __webpack_require__(44);
|
|
896
934
|
|
|
897
|
-
var
|
|
935
|
+
var MissingPropsMessage_1 = __webpack_require__(45);
|
|
898
936
|
|
|
899
|
-
var
|
|
937
|
+
var withEditModeCover_1 = __webpack_require__(46);
|
|
900
938
|
|
|
901
|
-
var
|
|
939
|
+
var withPlaceholder_1 = __webpack_require__(47);
|
|
902
940
|
|
|
903
|
-
var
|
|
941
|
+
var UUID = id_1.createGUID();
|
|
904
942
|
/**
|
|
905
943
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
906
944
|
* @param {DashboardVizOpts} opts
|
|
907
945
|
* @returns {HOC}
|
|
908
946
|
*/
|
|
909
947
|
|
|
910
|
-
|
|
911
948
|
var withDashboardViz = function withDashboardViz(opts) {
|
|
912
949
|
var ReactViz = opts.ReactViz,
|
|
913
950
|
vizConfig = opts.vizConfig,
|
|
@@ -920,6 +957,8 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
920
957
|
var defaultOptions = JSONSchemaUtils_1.pickFieldFromJSONSchema(vizConfig.optionsSchema, 'default');
|
|
921
958
|
|
|
922
959
|
var DashboardViz = function DashboardViz(props) {
|
|
960
|
+
var _a;
|
|
961
|
+
|
|
923
962
|
var mode = props.mode,
|
|
924
963
|
hasEventHandlers = props.hasEventHandlers,
|
|
925
964
|
dataSources = props.dataSources,
|
|
@@ -967,38 +1006,97 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
967
1006
|
|
|
968
1007
|
var evaluatedOptions = {}; // evaluatedOptions need to be initialized as an empty object
|
|
969
1008
|
|
|
1009
|
+
var _React$useState = React.useState({}),
|
|
1010
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
1011
|
+
evaluatedOptionsAsync = _React$useState2[0],
|
|
1012
|
+
setEvaluatedOptionsAsync = _React$useState2[1]; // evaluatedOptions need to be initialized as an empty object
|
|
1013
|
+
|
|
1014
|
+
|
|
1015
|
+
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
1016
|
+
|
|
1017
|
+
var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(UUID)),
|
|
1018
|
+
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
1019
|
+
visualizationID = _React$useState4[0];
|
|
1020
|
+
|
|
1021
|
+
var _React$useState5 = React.useState(Boolean(featureFlagContext && featureFlagContext.visualizations_useWebWorkersForDSL && typeof Worker !== 'undefined')),
|
|
1022
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
1023
|
+
useAsyncEvaluatedOptions = _React$useState6[0],
|
|
1024
|
+
setUseAsyncEvaluatedOptions = _React$useState6[1];
|
|
1025
|
+
|
|
970
1026
|
evaluatedOptions = useDeepMemo_1.useDeepMemo(function () {
|
|
971
1027
|
try {
|
|
972
|
-
|
|
973
|
-
|
|
974
|
-
|
|
975
|
-
|
|
1028
|
+
if (useAsyncEvaluatedOptions) {
|
|
1029
|
+
var optionsToEvaluate = {
|
|
1030
|
+
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
1031
|
+
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
1032
|
+
};
|
|
1033
|
+
var asyncDynamicOptionsEvaluatorParams = {
|
|
1034
|
+
visualizationID: visualizationID,
|
|
1035
|
+
props: props,
|
|
1036
|
+
options: optionsToEvaluate,
|
|
1037
|
+
dataSources: dataSources,
|
|
1038
|
+
theme: vizConfig.themes
|
|
1039
|
+
};
|
|
1040
|
+
async_dynamic_options_evaluator_1.default.evaluate(asyncDynamicOptionsEvaluatorParams).then(function (results) {
|
|
1041
|
+
setEvaluatedOptionsAsync(results.results);
|
|
1042
|
+
}).catch(function (e) {
|
|
1043
|
+
// eslint-disable-next-line no-console
|
|
1044
|
+
console.error("unexpected error evaluating options - async: ".concat(e.message));
|
|
1045
|
+
setUseAsyncEvaluatedOptions(false);
|
|
1046
|
+
});
|
|
1047
|
+
} else {
|
|
1048
|
+
return Options_1.Options.evaluate({
|
|
1049
|
+
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
1050
|
+
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
1051
|
+
}, dataSources, themeFunc);
|
|
1052
|
+
}
|
|
976
1053
|
} catch (e) {
|
|
977
1054
|
// eslint-disable-next-line no-console
|
|
978
|
-
console.error("unexpected error evaluating options:
|
|
1055
|
+
console.error("unexpected error evaluating options: ".concat(e.message));
|
|
979
1056
|
return {};
|
|
980
1057
|
}
|
|
981
|
-
|
|
1058
|
+
|
|
1059
|
+
return {};
|
|
1060
|
+
}, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone, useAsyncEvaluatedOptions]);
|
|
1061
|
+
var evaluatedOptionsToUse = !useAsyncEvaluatedOptions ? evaluatedOptions : evaluatedOptionsAsync; // trellis specific backgroundColor update for onComputedProps
|
|
1062
|
+
// 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
|
|
1063
|
+
// onComputedProps api should return back trellisBackgroundColor value for backgroundColor option to support coloring of sibling panels (for eg:- title/ description on UDF side)
|
|
1064
|
+
|
|
1065
|
+
var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
|
|
1066
|
+
var clonedEvaluatedOptions = lodash_1.cloneDeep(evaluatedOptionsToUse);
|
|
1067
|
+
|
|
1068
|
+
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) {
|
|
1069
|
+
clonedEvaluatedOptions.backgroundColor = clonedEvaluatedOptions === null || clonedEvaluatedOptions === void 0 ? void 0 : clonedEvaluatedOptions.trellisBackgroundColor;
|
|
1070
|
+
} // useEffect hook needs to be initialized before any early returns
|
|
982
1071
|
// this is in accordance with the order of hook calls being the same on each render https://reactjs.org/docs/hooks-rules.html#explanation
|
|
983
1072
|
|
|
1073
|
+
|
|
984
1074
|
React.useEffect(function () {
|
|
985
|
-
onComputedProps(
|
|
986
|
-
});
|
|
1075
|
+
onComputedProps(clonedEvaluatedOptions);
|
|
1076
|
+
});
|
|
1077
|
+
React.useEffect(function () {
|
|
1078
|
+
return function () {
|
|
1079
|
+
if (useAsyncEvaluatedOptions) {
|
|
1080
|
+
async_dynamic_options_evaluator_1.default.reset(visualizationID);
|
|
1081
|
+
}
|
|
1082
|
+
}; // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1083
|
+
}, []); // present warning message if any required props are missing
|
|
987
1084
|
|
|
988
1085
|
var _vizConfig$requiredPr = vizConfig.requiredProps,
|
|
989
1086
|
requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
|
|
990
1087
|
supports = vizConfig.supports;
|
|
991
|
-
var missing = MissingPropsMessage_1.missingKeys(requiredProps,
|
|
992
|
-
|
|
993
|
-
if (missing.length > 0 && supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER)
|
|
994
|
-
|
|
995
|
-
|
|
996
|
-
|
|
997
|
-
|
|
998
|
-
|
|
999
|
-
|
|
1000
|
-
|
|
1001
|
-
|
|
1088
|
+
var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptionsToUse);
|
|
1089
|
+
|
|
1090
|
+
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
|
|
1091
|
+
) {
|
|
1092
|
+
return React.createElement(MissingPropsMessage_1.default, {
|
|
1093
|
+
"data-test": "missing-props-message",
|
|
1094
|
+
width: width,
|
|
1095
|
+
height: height,
|
|
1096
|
+
missingProps: missing,
|
|
1097
|
+
backgroundColor: bgColorFromTheme
|
|
1098
|
+
});
|
|
1099
|
+
} // events
|
|
1002
1100
|
|
|
1003
1101
|
|
|
1004
1102
|
var eventCallbackProps = {};
|
|
@@ -1015,7 +1113,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1015
1113
|
|
|
1016
1114
|
if (Array.isArray(payloadKeys) && payloadKeys.length) {
|
|
1017
1115
|
payloadKeys.forEach(function (p) {
|
|
1018
|
-
payload[p] =
|
|
1116
|
+
payload[p] = evaluatedOptionsToUse[p];
|
|
1019
1117
|
});
|
|
1020
1118
|
}
|
|
1021
1119
|
|
|
@@ -1034,7 +1132,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1034
1132
|
} // compute pure viz props which are not from options
|
|
1035
1133
|
|
|
1036
1134
|
|
|
1037
|
-
var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props),
|
|
1135
|
+
var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props), evaluatedOptionsToUse), eventCallbackProps), {
|
|
1038
1136
|
themeFunc: themeFunc
|
|
1039
1137
|
}));
|
|
1040
1138
|
/**
|
|
@@ -1054,7 +1152,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1054
1152
|
|
|
1055
1153
|
var dataSourceMetadata = {};
|
|
1056
1154
|
var OptionKey = 'paginateDataSourceKey';
|
|
1057
|
-
var paginateDataSourceKey = lodash_1.has(
|
|
1155
|
+
var paginateDataSourceKey = lodash_1.has(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
|
|
1058
1156
|
|
|
1059
1157
|
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && lodash_1.has(dataSources, paginateDataSourceKey)) {
|
|
1060
1158
|
var requestParams = lodash_1.get(dataSources, [paginateDataSourceKey, 'requestParams'], {});
|
|
@@ -1084,7 +1182,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1084
1182
|
mode: mode,
|
|
1085
1183
|
width: width,
|
|
1086
1184
|
height: height
|
|
1087
|
-
},
|
|
1185
|
+
}, evaluatedOptionsToUse, computedVizProps, eventCallbackProps, dataSourceMetadata));
|
|
1088
1186
|
};
|
|
1089
1187
|
|
|
1090
1188
|
DashboardViz.propTypes = Object.assign(Object.assign({}, SplunkVisualization_1.default.propTypes), ReactViz.propTypes);
|
|
@@ -1102,35 +1200,42 @@ exports.default = withDashboardViz;
|
|
|
1102
1200
|
|
|
1103
1201
|
/***/ }),
|
|
1104
1202
|
|
|
1105
|
-
/***/
|
|
1203
|
+
/***/ 37:
|
|
1106
1204
|
/***/ (function(module, exports) {
|
|
1107
1205
|
|
|
1108
1206
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
1109
1207
|
|
|
1110
1208
|
/***/ }),
|
|
1111
1209
|
|
|
1112
|
-
/***/
|
|
1210
|
+
/***/ 38:
|
|
1113
1211
|
/***/ (function(module, exports) {
|
|
1114
1212
|
|
|
1115
|
-
module.exports = require("@splunk/
|
|
1213
|
+
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
1116
1214
|
|
|
1117
1215
|
/***/ }),
|
|
1118
1216
|
|
|
1119
|
-
/***/
|
|
1217
|
+
/***/ 39:
|
|
1120
1218
|
/***/ (function(module, exports) {
|
|
1121
1219
|
|
|
1122
|
-
module.exports = require("@splunk/
|
|
1220
|
+
module.exports = require("@splunk/moment");
|
|
1123
1221
|
|
|
1124
1222
|
/***/ }),
|
|
1125
1223
|
|
|
1126
|
-
/***/
|
|
1224
|
+
/***/ 4:
|
|
1127
1225
|
/***/ (function(module, exports) {
|
|
1128
1226
|
|
|
1129
|
-
module.exports = require("
|
|
1227
|
+
module.exports = require("styled-components");
|
|
1130
1228
|
|
|
1131
1229
|
/***/ }),
|
|
1132
1230
|
|
|
1133
|
-
/***/
|
|
1231
|
+
/***/ 40:
|
|
1232
|
+
/***/ (function(module, exports) {
|
|
1233
|
+
|
|
1234
|
+
module.exports = require("@splunk/async-dynamic-options-evaluator");
|
|
1235
|
+
|
|
1236
|
+
/***/ }),
|
|
1237
|
+
|
|
1238
|
+
/***/ 41:
|
|
1134
1239
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1135
1240
|
|
|
1136
1241
|
"use strict";
|
|
@@ -1144,11 +1249,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1144
1249
|
exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
|
|
1145
1250
|
/* eslint-disable react/no-unused-prop-types,react/prefer-stateless-function */
|
|
1146
1251
|
|
|
1147
|
-
var T = __webpack_require__(
|
|
1252
|
+
var T = __webpack_require__(1);
|
|
1148
1253
|
|
|
1149
1254
|
var lodash_1 = __webpack_require__(3);
|
|
1150
1255
|
|
|
1151
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
1256
|
+
var VizActionHandler_1 = __webpack_require__(42); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
1152
1257
|
|
|
1153
1258
|
|
|
1154
1259
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -1282,7 +1387,7 @@ exports.default = SplunkVisualization;
|
|
|
1282
1387
|
|
|
1283
1388
|
/***/ }),
|
|
1284
1389
|
|
|
1285
|
-
/***/
|
|
1390
|
+
/***/ 42:
|
|
1286
1391
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1287
1392
|
|
|
1288
1393
|
"use strict";
|
|
@@ -1290,7 +1395,7 @@ exports.default = SplunkVisualization;
|
|
|
1290
1395
|
|
|
1291
1396
|
var _classCallCheck = __webpack_require__(11);
|
|
1292
1397
|
|
|
1293
|
-
var _createClass = __webpack_require__(
|
|
1398
|
+
var _createClass = __webpack_require__(22);
|
|
1294
1399
|
|
|
1295
1400
|
Object.defineProperty(exports, "__esModule", {
|
|
1296
1401
|
value: true
|
|
@@ -1320,7 +1425,7 @@ exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
|
1320
1425
|
|
|
1321
1426
|
/***/ }),
|
|
1322
1427
|
|
|
1323
|
-
/***/
|
|
1428
|
+
/***/ 43:
|
|
1324
1429
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1325
1430
|
|
|
1326
1431
|
"use strict";
|
|
@@ -1334,14 +1439,7 @@ exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
|
1334
1439
|
|
|
1335
1440
|
/***/ }),
|
|
1336
1441
|
|
|
1337
|
-
/***/
|
|
1338
|
-
/***/ (function(module, exports) {
|
|
1339
|
-
|
|
1340
|
-
module.exports = require("styled-components");
|
|
1341
|
-
|
|
1342
|
-
/***/ }),
|
|
1343
|
-
|
|
1344
|
-
/***/ 40:
|
|
1442
|
+
/***/ 44:
|
|
1345
1443
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1346
1444
|
|
|
1347
1445
|
"use strict";
|
|
@@ -1352,7 +1450,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1352
1450
|
});
|
|
1353
1451
|
exports.useDeepMemo = void 0;
|
|
1354
1452
|
|
|
1355
|
-
var react_1 = __webpack_require__(
|
|
1453
|
+
var react_1 = __webpack_require__(0);
|
|
1356
1454
|
|
|
1357
1455
|
var lodash_1 = __webpack_require__(3);
|
|
1358
1456
|
/**
|
|
@@ -1387,141 +1485,7 @@ exports.useDeepMemo = useDeepMemo;
|
|
|
1387
1485
|
|
|
1388
1486
|
/***/ }),
|
|
1389
1487
|
|
|
1390
|
-
/***/
|
|
1391
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1392
|
-
|
|
1393
|
-
"use strict";
|
|
1394
|
-
|
|
1395
|
-
|
|
1396
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1397
|
-
value: true
|
|
1398
|
-
});
|
|
1399
|
-
exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
|
|
1400
|
-
|
|
1401
|
-
var React = __webpack_require__(1);
|
|
1402
|
-
|
|
1403
|
-
var T = __webpack_require__(0);
|
|
1404
|
-
|
|
1405
|
-
var i18n_1 = __webpack_require__(2);
|
|
1406
|
-
|
|
1407
|
-
var Message_1 = __webpack_require__(10);
|
|
1408
|
-
|
|
1409
|
-
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
1410
|
-
/**
|
|
1411
|
-
* @method isMissing
|
|
1412
|
-
* @param {any} v
|
|
1413
|
-
* @returns {boolean} true if the input value === null or undefined
|
|
1414
|
-
*/
|
|
1415
|
-
|
|
1416
|
-
|
|
1417
|
-
var isMissing = function isMissing(v) {
|
|
1418
|
-
return v === null || v === undefined;
|
|
1419
|
-
};
|
|
1420
|
-
|
|
1421
|
-
exports.isMissing = isMissing;
|
|
1422
|
-
/**
|
|
1423
|
-
* @method misskingKeys
|
|
1424
|
-
* @param {string[]} keys
|
|
1425
|
-
* @param {object} target
|
|
1426
|
-
* @returns {string[]} the keys of missing required props
|
|
1427
|
-
*/
|
|
1428
|
-
|
|
1429
|
-
var missingKeys = function missingKeys(keys, target) {
|
|
1430
|
-
return keys.filter(function (k) {
|
|
1431
|
-
return exports.isMissing(target[k]);
|
|
1432
|
-
});
|
|
1433
|
-
};
|
|
1434
|
-
|
|
1435
|
-
exports.missingKeys = missingKeys;
|
|
1436
|
-
var propTypes = {
|
|
1437
|
-
width: T.oneOfType([T.string, T.number]),
|
|
1438
|
-
height: T.oneOfType([T.string, T.number]),
|
|
1439
|
-
// eslint-disable-next-line react/no-unused-prop-types
|
|
1440
|
-
backgroundColor: T.string,
|
|
1441
|
-
missingProps: T.arrayOf(T.string)
|
|
1442
|
-
};
|
|
1443
|
-
/**
|
|
1444
|
-
* @method MissingPropsMessage
|
|
1445
|
-
* @param {MissingPropsProps} props
|
|
1446
|
-
* @returns {React.ReactElement}
|
|
1447
|
-
*/
|
|
1448
|
-
|
|
1449
|
-
var MissingPropsMessage = function MissingPropsMessage(props) {
|
|
1450
|
-
var width = props.width,
|
|
1451
|
-
height = props.height,
|
|
1452
|
-
missingProps = props.missingProps;
|
|
1453
|
-
return React.createElement(Message_1.default, {
|
|
1454
|
-
"data-test": "message",
|
|
1455
|
-
width: width,
|
|
1456
|
-
height: height,
|
|
1457
|
-
message: i18n_1._("Missing property: ".concat(missingProps.join(', ')))
|
|
1458
|
-
});
|
|
1459
|
-
};
|
|
1460
|
-
|
|
1461
|
-
exports.MissingPropsMessage = MissingPropsMessage;
|
|
1462
|
-
exports.MissingPropsMessage.propTypes = propTypes;
|
|
1463
|
-
exports.MissingPropsMessage.defaultProps = {
|
|
1464
|
-
width: '100%',
|
|
1465
|
-
height: 250
|
|
1466
|
-
};
|
|
1467
|
-
exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
1468
|
-
|
|
1469
|
-
/***/ }),
|
|
1470
|
-
|
|
1471
|
-
/***/ 42:
|
|
1472
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1473
|
-
|
|
1474
|
-
"use strict";
|
|
1475
|
-
|
|
1476
|
-
|
|
1477
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1478
|
-
value: true
|
|
1479
|
-
});
|
|
1480
|
-
|
|
1481
|
-
var React = __webpack_require__(1);
|
|
1482
|
-
|
|
1483
|
-
var styled_components_1 = __webpack_require__(4);
|
|
1484
|
-
|
|
1485
|
-
var hocUtils_1 = __webpack_require__(14);
|
|
1486
|
-
|
|
1487
|
-
var Cover = styled_components_1.default.div.withConfig({
|
|
1488
|
-
displayName: "withEditModeCover__Cover",
|
|
1489
|
-
componentId: "sc-1gsbnxb-0"
|
|
1490
|
-
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
1491
|
-
var Blocker = styled_components_1.default.div.attrs({
|
|
1492
|
-
'data-splunk-visualization-version': "25.5.0 - 12c0447a7"
|
|
1493
|
-
}).withConfig({
|
|
1494
|
-
displayName: "withEditModeCover__Blocker",
|
|
1495
|
-
componentId: "sc-1gsbnxb-1"
|
|
1496
|
-
})(["position:relative;width:100%;height:100%;"]);
|
|
1497
|
-
/**
|
|
1498
|
-
* HOC that renders a cover layer in edit mode
|
|
1499
|
-
* @method withEditModeCover
|
|
1500
|
-
* @param {ExtendedDashViz} Visualization
|
|
1501
|
-
* @returns {ExtendedDashViz} Wrapper
|
|
1502
|
-
*/
|
|
1503
|
-
|
|
1504
|
-
var withEditModeCover = function withEditModeCover(Visualization, disableEditModeCover) {
|
|
1505
|
-
var Wrapper = function Wrapper(props) {
|
|
1506
|
-
var mode = props.mode;
|
|
1507
|
-
var showEditCover = mode === 'edit' && !disableEditModeCover;
|
|
1508
|
-
return React.createElement(Blocker, null, React.createElement(Visualization, Object.assign({}, props)), showEditCover && React.createElement(Cover, {
|
|
1509
|
-
"data-test": "edit-mode-cover"
|
|
1510
|
-
}));
|
|
1511
|
-
};
|
|
1512
|
-
|
|
1513
|
-
hocUtils_1.extendStaticWrapperProps({
|
|
1514
|
-
Wrapper: Wrapper,
|
|
1515
|
-
Visualization: Visualization
|
|
1516
|
-
});
|
|
1517
|
-
return Wrapper;
|
|
1518
|
-
};
|
|
1519
|
-
|
|
1520
|
-
exports.default = withEditModeCover;
|
|
1521
|
-
|
|
1522
|
-
/***/ }),
|
|
1523
|
-
|
|
1524
|
-
/***/ 425:
|
|
1488
|
+
/***/ 440:
|
|
1525
1489
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1526
1490
|
|
|
1527
1491
|
"use strict";
|
|
@@ -1547,15 +1511,15 @@ exports.themes = exports.computeVizProps = exports.PurePunchcard = exports.confi
|
|
|
1547
1511
|
|
|
1548
1512
|
var lodash_1 = __webpack_require__(3);
|
|
1549
1513
|
|
|
1550
|
-
var visualization_color_palettes_1 = __webpack_require__(
|
|
1514
|
+
var visualization_color_palettes_1 = __webpack_require__(50);
|
|
1551
1515
|
|
|
1552
|
-
var config_1 = __webpack_require__(
|
|
1516
|
+
var config_1 = __webpack_require__(441);
|
|
1553
1517
|
|
|
1554
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
1518
|
+
var withDashboardViz_1 = __webpack_require__(36);
|
|
1555
1519
|
|
|
1556
|
-
var Punchcard_1 = __webpack_require__(
|
|
1520
|
+
var Punchcard_1 = __webpack_require__(442);
|
|
1557
1521
|
|
|
1558
|
-
var punchcardUtils_1 = __webpack_require__(
|
|
1522
|
+
var punchcardUtils_1 = __webpack_require__(450);
|
|
1559
1523
|
|
|
1560
1524
|
exports.config = config_1.default;
|
|
1561
1525
|
exports.PurePunchcard = Punchcard_1.default;
|
|
@@ -1600,7 +1564,7 @@ exports.default = viz;
|
|
|
1600
1564
|
|
|
1601
1565
|
/***/ }),
|
|
1602
1566
|
|
|
1603
|
-
/***/
|
|
1567
|
+
/***/ 441:
|
|
1604
1568
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1605
1569
|
|
|
1606
1570
|
"use strict";
|
|
@@ -1614,23 +1578,23 @@ var i18n_1 = __webpack_require__(2);
|
|
|
1614
1578
|
|
|
1615
1579
|
var schemaUtils_1 = __webpack_require__(16);
|
|
1616
1580
|
|
|
1617
|
-
var visualization_icons_1 = __webpack_require__(
|
|
1581
|
+
var visualization_icons_1 = __webpack_require__(51);
|
|
1618
1582
|
|
|
1619
|
-
var placeholders_1 = __webpack_require__(
|
|
1583
|
+
var placeholders_1 = __webpack_require__(48);
|
|
1620
1584
|
|
|
1621
|
-
var visualization_color_palettes_1 = __webpack_require__(
|
|
1585
|
+
var visualization_color_palettes_1 = __webpack_require__(50);
|
|
1622
1586
|
|
|
1623
|
-
var pick_1 = __webpack_require__(
|
|
1587
|
+
var pick_1 = __webpack_require__(23);
|
|
1624
1588
|
|
|
1625
|
-
var variables_1 = __webpack_require__(
|
|
1589
|
+
var variables_1 = __webpack_require__(10);
|
|
1626
1590
|
|
|
1627
1591
|
var VizBehavior_1 = __webpack_require__(6);
|
|
1628
1592
|
|
|
1629
|
-
var VizCategory_1 = __webpack_require__(
|
|
1593
|
+
var VizCategory_1 = __webpack_require__(35);
|
|
1630
1594
|
|
|
1631
|
-
var configUtils_1 = __webpack_require__(
|
|
1595
|
+
var configUtils_1 = __webpack_require__(19);
|
|
1632
1596
|
|
|
1633
|
-
var BackgroundColor_1 = __webpack_require__(
|
|
1597
|
+
var BackgroundColor_1 = __webpack_require__(53);
|
|
1634
1598
|
|
|
1635
1599
|
var dataContract = {
|
|
1636
1600
|
requiredDataSources: [{
|
|
@@ -1957,45 +1921,45 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
1957
1921
|
|
|
1958
1922
|
/***/ }),
|
|
1959
1923
|
|
|
1960
|
-
/***/
|
|
1924
|
+
/***/ 442:
|
|
1961
1925
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1962
1926
|
|
|
1963
1927
|
"use strict";
|
|
1964
1928
|
|
|
1965
1929
|
|
|
1966
|
-
var _defineProperty = __webpack_require__(
|
|
1930
|
+
var _defineProperty = __webpack_require__(8);
|
|
1967
1931
|
|
|
1968
|
-
var _slicedToArray = __webpack_require__(
|
|
1932
|
+
var _slicedToArray = __webpack_require__(17);
|
|
1969
1933
|
|
|
1970
1934
|
Object.defineProperty(exports, "__esModule", {
|
|
1971
1935
|
value: true
|
|
1972
1936
|
});
|
|
1973
1937
|
|
|
1974
|
-
var React = __webpack_require__(
|
|
1938
|
+
var React = __webpack_require__(0);
|
|
1975
1939
|
|
|
1976
1940
|
var styled_components_1 = __webpack_require__(4);
|
|
1977
1941
|
|
|
1978
|
-
var T = __webpack_require__(
|
|
1942
|
+
var T = __webpack_require__(1);
|
|
1979
1943
|
|
|
1980
1944
|
var lodash_1 = __webpack_require__(3);
|
|
1981
1945
|
|
|
1982
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
1946
|
+
var SizeAwareWrapper_1 = __webpack_require__(18);
|
|
1983
1947
|
|
|
1984
|
-
var style_1 = __webpack_require__(
|
|
1948
|
+
var style_1 = __webpack_require__(14);
|
|
1985
1949
|
|
|
1986
|
-
var visualization_color_palettes_1 = __webpack_require__(
|
|
1950
|
+
var visualization_color_palettes_1 = __webpack_require__(50);
|
|
1987
1951
|
|
|
1988
|
-
var punchcardUtils_1 = __webpack_require__(
|
|
1952
|
+
var punchcardUtils_1 = __webpack_require__(94);
|
|
1989
1953
|
|
|
1990
|
-
var sortUtils_1 = __webpack_require__(
|
|
1954
|
+
var sortUtils_1 = __webpack_require__(443);
|
|
1991
1955
|
|
|
1992
|
-
var PunchcardAxis_1 = __webpack_require__(
|
|
1956
|
+
var PunchcardAxis_1 = __webpack_require__(444);
|
|
1993
1957
|
|
|
1994
|
-
var PunchcardChartArea_1 = __webpack_require__(
|
|
1958
|
+
var PunchcardChartArea_1 = __webpack_require__(445);
|
|
1995
1959
|
|
|
1996
|
-
var PunchcardLegend_1 = __webpack_require__(
|
|
1960
|
+
var PunchcardLegend_1 = __webpack_require__(448);
|
|
1997
1961
|
|
|
1998
|
-
var PunchcardGridLines_1 = __webpack_require__(
|
|
1962
|
+
var PunchcardGridLines_1 = __webpack_require__(449);
|
|
1999
1963
|
|
|
2000
1964
|
var Container = styled_components_1.default.div.withConfig({
|
|
2001
1965
|
displayName: "Punchcard__Container",
|
|
@@ -2327,7 +2291,7 @@ exports.default = Punchcard;
|
|
|
2327
2291
|
|
|
2328
2292
|
/***/ }),
|
|
2329
2293
|
|
|
2330
|
-
/***/
|
|
2294
|
+
/***/ 443:
|
|
2331
2295
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2332
2296
|
|
|
2333
2297
|
"use strict";
|
|
@@ -2337,13 +2301,13 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2337
2301
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sortedByDTime", function() { return sortedByDTime; });
|
|
2338
2302
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sortByDigitOrAlpha", function() { return sortByDigitOrAlpha; });
|
|
2339
2303
|
/* harmony export (binding) */ __webpack_require__.d(__webpack_exports__, "sortAxis", function() { return sortAxis; });
|
|
2340
|
-
/* harmony import */ var lodash_findIndex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(
|
|
2304
|
+
/* harmony import */ var lodash_findIndex__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(135);
|
|
2341
2305
|
/* harmony import */ var lodash_findIndex__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(lodash_findIndex__WEBPACK_IMPORTED_MODULE_0__);
|
|
2342
|
-
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
2306
|
+
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(109);
|
|
2343
2307
|
/* harmony import */ var lodash_find__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(lodash_find__WEBPACK_IMPORTED_MODULE_1__);
|
|
2344
|
-
/* harmony import */ var lodash_sortBy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(
|
|
2308
|
+
/* harmony import */ var lodash_sortBy__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(166);
|
|
2345
2309
|
/* harmony import */ var lodash_sortBy__WEBPACK_IMPORTED_MODULE_2___default = /*#__PURE__*/__webpack_require__.n(lodash_sortBy__WEBPACK_IMPORTED_MODULE_2__);
|
|
2346
|
-
/* harmony import */ var lodash_flattenDeep__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(
|
|
2310
|
+
/* harmony import */ var lodash_flattenDeep__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(136);
|
|
2347
2311
|
/* harmony import */ var lodash_flattenDeep__WEBPACK_IMPORTED_MODULE_3___default = /*#__PURE__*/__webpack_require__.n(lodash_flattenDeep__WEBPACK_IMPORTED_MODULE_3__);
|
|
2348
2312
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4__ = __webpack_require__(3);
|
|
2349
2313
|
/* harmony import */ var lodash__WEBPACK_IMPORTED_MODULE_4___default = /*#__PURE__*/__webpack_require__.n(lodash__WEBPACK_IMPORTED_MODULE_4__);
|
|
@@ -2612,7 +2576,7 @@ var sortAxis = function sortAxis(axis) {
|
|
|
2612
2576
|
|
|
2613
2577
|
/***/ }),
|
|
2614
2578
|
|
|
2615
|
-
/***/
|
|
2579
|
+
/***/ 444:
|
|
2616
2580
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2617
2581
|
|
|
2618
2582
|
"use strict";
|
|
@@ -2622,17 +2586,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2622
2586
|
value: true
|
|
2623
2587
|
});
|
|
2624
2588
|
|
|
2625
|
-
var React = __webpack_require__(
|
|
2589
|
+
var React = __webpack_require__(0);
|
|
2626
2590
|
|
|
2627
|
-
var T = __webpack_require__(
|
|
2591
|
+
var T = __webpack_require__(1);
|
|
2628
2592
|
|
|
2629
2593
|
var styled_components_1 = __webpack_require__(4);
|
|
2630
2594
|
|
|
2631
|
-
var pick_1 = __webpack_require__(
|
|
2595
|
+
var pick_1 = __webpack_require__(23);
|
|
2632
2596
|
|
|
2633
|
-
var variables_1 = __webpack_require__(
|
|
2597
|
+
var variables_1 = __webpack_require__(10);
|
|
2634
2598
|
|
|
2635
|
-
var punchcardUtils_1 = __webpack_require__(
|
|
2599
|
+
var punchcardUtils_1 = __webpack_require__(94);
|
|
2636
2600
|
|
|
2637
2601
|
var AxisLabelText = styled_components_1.default.text.withConfig({
|
|
2638
2602
|
displayName: "PunchcardAxis__AxisLabelText",
|
|
@@ -2672,133 +2636,68 @@ var PunchcardAxis = function PunchcardAxis(props) {
|
|
|
2672
2636
|
return React.createElement(AxisLabelText, {
|
|
2673
2637
|
key: label,
|
|
2674
2638
|
x: xPosition,
|
|
2675
|
-
y: yPosition,
|
|
2676
|
-
orientation: orientation,
|
|
2677
|
-
onMouseEnter: function onMouseEnter() {
|
|
2678
|
-
return handleMouseEnter(label);
|
|
2679
|
-
},
|
|
2680
|
-
onMouseLeave: handleMouseLeave,
|
|
2681
|
-
muted: selected && label !== selected
|
|
2682
|
-
}, React.createElement("title", null, label), truncatedLabel);
|
|
2683
|
-
}));
|
|
2684
|
-
};
|
|
2685
|
-
|
|
2686
|
-
var propTypes = {
|
|
2687
|
-
labels: T.arrayOf(T.oneOfType([T.string, T.number])).isRequired,
|
|
2688
|
-
handleMouseEnter: T.func,
|
|
2689
|
-
handleMouseLeave: T.func,
|
|
2690
|
-
orientation: T.oneOf(Object.values(punchcardUtils_1.AXIS_ORIENTATION_TYPES)),
|
|
2691
|
-
scale: T.func.isRequired,
|
|
2692
|
-
selected: T.oneOfType([T.string, T.number]),
|
|
2693
|
-
startPositionX: T.number,
|
|
2694
|
-
startPositionY: T.number
|
|
2695
|
-
};
|
|
2696
|
-
var defaultProps = {
|
|
2697
|
-
// set as undefined as we are using defaultProps in conjunction with ts
|
|
2698
|
-
// where it requires all keys of interface to be present in defaultProps
|
|
2699
|
-
// eslint-disable-next-line react/default-props-match-prop-types
|
|
2700
|
-
labels: undefined,
|
|
2701
|
-
handleMouseEnter: function handleMouseEnter() {},
|
|
2702
|
-
handleMouseLeave: function handleMouseLeave() {},
|
|
2703
|
-
orientation: 'vertical',
|
|
2704
|
-
// eslint-disable-next-line react/default-props-match-prop-types
|
|
2705
|
-
scale: undefined,
|
|
2706
|
-
selected: null,
|
|
2707
|
-
startPositionX: 0,
|
|
2708
|
-
startPositionY: 0
|
|
2709
|
-
};
|
|
2710
|
-
PunchcardAxis.propTypes = propTypes;
|
|
2711
|
-
PunchcardAxis.defaultProps = defaultProps;
|
|
2712
|
-
exports.default = PunchcardAxis;
|
|
2713
|
-
|
|
2714
|
-
/***/ }),
|
|
2715
|
-
|
|
2716
|
-
/***/ 43:
|
|
2717
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2718
|
-
|
|
2719
|
-
"use strict";
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2723
|
-
value: true
|
|
2724
|
-
});
|
|
2725
|
-
|
|
2726
|
-
var React = __webpack_require__(1);
|
|
2727
|
-
|
|
2728
|
-
var colorUtils_1 = __webpack_require__(12);
|
|
2729
|
-
|
|
2730
|
-
var variables_1 = __webpack_require__(9);
|
|
2731
|
-
|
|
2732
|
-
var IconPlaceholder_1 = __webpack_require__(27);
|
|
2733
|
-
|
|
2734
|
-
var VizBehavior_1 = __webpack_require__(6);
|
|
2735
|
-
|
|
2736
|
-
var hocUtils_1 = __webpack_require__(14);
|
|
2737
|
-
|
|
2738
|
-
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
2739
|
-
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
2740
|
-
var config = Visualization.config;
|
|
2741
|
-
var themes = config.themes;
|
|
2742
|
-
|
|
2743
|
-
var Wrapper = function Wrapper(props) {
|
|
2744
|
-
var _a, _b;
|
|
2745
|
-
|
|
2746
|
-
var dataSources = props.dataSources,
|
|
2747
|
-
loading = props.loading,
|
|
2748
|
-
options = props.options,
|
|
2749
|
-
height = props.height,
|
|
2750
|
-
width = props.width;
|
|
2751
|
-
var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
|
|
2752
|
-
var bgColorFromTheme = colorUtils_1.isColor(options === null || options === void 0 ? void 0 : options.backgroundColor) ? options === null || options === void 0 ? void 0 : options.backgroundColor : (_a = themes === null || themes === void 0 ? void 0 : themes.defaultBackgroundColor) === null || _a === void 0 ? void 0 : _a.call(themes, props);
|
|
2753
|
-
var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
|
|
2754
|
-
var iconColor = variables_1.default.contentColorActive(props);
|
|
2755
|
-
|
|
2756
|
-
if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
|
|
2757
|
-
return React.createElement(IconPlaceholder_1.default, {
|
|
2758
|
-
"data-test": "icon-placeholder",
|
|
2759
|
-
icon: icon,
|
|
2760
|
-
width: width,
|
|
2761
|
-
height: height,
|
|
2762
|
-
backgroundColor: bgColorFromTheme,
|
|
2763
|
-
iconColor: iconColor
|
|
2764
|
-
});
|
|
2765
|
-
}
|
|
2766
|
-
|
|
2767
|
-
return React.createElement(Visualization, Object.assign({}, props));
|
|
2768
|
-
};
|
|
2769
|
-
|
|
2770
|
-
hocUtils_1.extendStaticWrapperProps({
|
|
2771
|
-
Wrapper: Wrapper,
|
|
2772
|
-
Visualization: Visualization
|
|
2773
|
-
});
|
|
2774
|
-
return Wrapper;
|
|
2639
|
+
y: yPosition,
|
|
2640
|
+
orientation: orientation,
|
|
2641
|
+
onMouseEnter: function onMouseEnter() {
|
|
2642
|
+
return handleMouseEnter(label);
|
|
2643
|
+
},
|
|
2644
|
+
onMouseLeave: handleMouseLeave,
|
|
2645
|
+
muted: selected && label !== selected
|
|
2646
|
+
}, React.createElement("title", null, label), truncatedLabel);
|
|
2647
|
+
}));
|
|
2775
2648
|
};
|
|
2776
2649
|
|
|
2777
|
-
|
|
2650
|
+
var propTypes = {
|
|
2651
|
+
labels: T.arrayOf(T.oneOfType([T.string, T.number])).isRequired,
|
|
2652
|
+
handleMouseEnter: T.func,
|
|
2653
|
+
handleMouseLeave: T.func,
|
|
2654
|
+
orientation: T.oneOf(Object.values(punchcardUtils_1.AXIS_ORIENTATION_TYPES)),
|
|
2655
|
+
scale: T.func.isRequired,
|
|
2656
|
+
selected: T.oneOfType([T.string, T.number]),
|
|
2657
|
+
startPositionX: T.number,
|
|
2658
|
+
startPositionY: T.number
|
|
2659
|
+
};
|
|
2660
|
+
var defaultProps = {
|
|
2661
|
+
// set as undefined as we are using defaultProps in conjunction with ts
|
|
2662
|
+
// where it requires all keys of interface to be present in defaultProps
|
|
2663
|
+
// eslint-disable-next-line react/default-props-match-prop-types
|
|
2664
|
+
labels: undefined,
|
|
2665
|
+
handleMouseEnter: function handleMouseEnter() {},
|
|
2666
|
+
handleMouseLeave: function handleMouseLeave() {},
|
|
2667
|
+
orientation: 'vertical',
|
|
2668
|
+
// eslint-disable-next-line react/default-props-match-prop-types
|
|
2669
|
+
scale: undefined,
|
|
2670
|
+
selected: null,
|
|
2671
|
+
startPositionX: 0,
|
|
2672
|
+
startPositionY: 0
|
|
2673
|
+
};
|
|
2674
|
+
PunchcardAxis.propTypes = propTypes;
|
|
2675
|
+
PunchcardAxis.defaultProps = defaultProps;
|
|
2676
|
+
exports.default = PunchcardAxis;
|
|
2778
2677
|
|
|
2779
2678
|
/***/ }),
|
|
2780
2679
|
|
|
2781
|
-
/***/
|
|
2680
|
+
/***/ 445:
|
|
2782
2681
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2783
2682
|
|
|
2784
2683
|
"use strict";
|
|
2785
2684
|
|
|
2786
2685
|
|
|
2787
|
-
var _toConsumableArray = __webpack_require__(
|
|
2686
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
2788
2687
|
|
|
2789
|
-
var _slicedToArray = __webpack_require__(
|
|
2688
|
+
var _slicedToArray = __webpack_require__(17);
|
|
2790
2689
|
|
|
2791
2690
|
Object.defineProperty(exports, "__esModule", {
|
|
2792
2691
|
value: true
|
|
2793
2692
|
});
|
|
2794
2693
|
|
|
2795
|
-
var React = __webpack_require__(
|
|
2694
|
+
var React = __webpack_require__(0);
|
|
2796
2695
|
|
|
2797
|
-
var T = __webpack_require__(
|
|
2696
|
+
var T = __webpack_require__(1);
|
|
2798
2697
|
|
|
2799
|
-
var punchcardUtils_1 = __webpack_require__(
|
|
2698
|
+
var punchcardUtils_1 = __webpack_require__(94);
|
|
2800
2699
|
|
|
2801
|
-
var PunchcardRow_1 = __webpack_require__(
|
|
2700
|
+
var PunchcardRow_1 = __webpack_require__(446);
|
|
2802
2701
|
|
|
2803
2702
|
var PunchcardChartArea = function PunchcardChartArea(props) {
|
|
2804
2703
|
var showBubbleLabels = props.showBubbleLabels,
|
|
@@ -2950,7 +2849,7 @@ exports.default = PunchcardChartArea;
|
|
|
2950
2849
|
|
|
2951
2850
|
/***/ }),
|
|
2952
2851
|
|
|
2953
|
-
/***/
|
|
2852
|
+
/***/ 446:
|
|
2954
2853
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2955
2854
|
|
|
2956
2855
|
"use strict";
|
|
@@ -2960,15 +2859,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2960
2859
|
value: true
|
|
2961
2860
|
});
|
|
2962
2861
|
|
|
2963
|
-
var React = __webpack_require__(
|
|
2862
|
+
var React = __webpack_require__(0);
|
|
2964
2863
|
|
|
2965
|
-
var T = __webpack_require__(
|
|
2864
|
+
var T = __webpack_require__(1);
|
|
2966
2865
|
|
|
2967
2866
|
var styled_components_1 = __webpack_require__(4);
|
|
2968
2867
|
|
|
2969
|
-
var PunchcardBubble_1 = __webpack_require__(
|
|
2868
|
+
var PunchcardBubble_1 = __webpack_require__(447);
|
|
2970
2869
|
|
|
2971
|
-
var punchcardUtils_1 = __webpack_require__(
|
|
2870
|
+
var punchcardUtils_1 = __webpack_require__(94);
|
|
2972
2871
|
|
|
2973
2872
|
var PunchcardRow = function PunchcardRow(props) {
|
|
2974
2873
|
var showBubbleLabels = props.showBubbleLabels,
|
|
@@ -3082,13 +2981,13 @@ exports.default = styled_components_1.withTheme(PunchcardRow);
|
|
|
3082
2981
|
|
|
3083
2982
|
/***/ }),
|
|
3084
2983
|
|
|
3085
|
-
/***/
|
|
2984
|
+
/***/ 447:
|
|
3086
2985
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3087
2986
|
|
|
3088
2987
|
"use strict";
|
|
3089
2988
|
|
|
3090
2989
|
|
|
3091
|
-
var _taggedTemplateLiteral = __webpack_require__(
|
|
2990
|
+
var _taggedTemplateLiteral = __webpack_require__(93);
|
|
3092
2991
|
|
|
3093
2992
|
var _templateObject;
|
|
3094
2993
|
|
|
@@ -3096,19 +2995,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3096
2995
|
value: true
|
|
3097
2996
|
});
|
|
3098
2997
|
|
|
3099
|
-
var React = __webpack_require__(
|
|
2998
|
+
var React = __webpack_require__(0);
|
|
3100
2999
|
|
|
3101
|
-
var T = __webpack_require__(
|
|
3000
|
+
var T = __webpack_require__(1);
|
|
3102
3001
|
|
|
3103
3002
|
var styled_components_1 = __webpack_require__(4);
|
|
3104
3003
|
|
|
3105
|
-
var pick_1 = __webpack_require__(
|
|
3004
|
+
var pick_1 = __webpack_require__(23);
|
|
3106
3005
|
|
|
3107
|
-
var variables_1 = __webpack_require__(
|
|
3006
|
+
var variables_1 = __webpack_require__(10);
|
|
3108
3007
|
|
|
3109
3008
|
var numberUtils_1 = __webpack_require__(30);
|
|
3110
3009
|
|
|
3111
|
-
var punchcardUtils_1 = __webpack_require__(
|
|
3010
|
+
var punchcardUtils_1 = __webpack_require__(94);
|
|
3112
3011
|
|
|
3113
3012
|
var BubbleCircle = styled_components_1.default.circle.withConfig({
|
|
3114
3013
|
displayName: "PunchcardBubble__BubbleCircle",
|
|
@@ -3265,7 +3164,7 @@ exports.default = PunchcardBubble;
|
|
|
3265
3164
|
|
|
3266
3165
|
/***/ }),
|
|
3267
3166
|
|
|
3268
|
-
/***/
|
|
3167
|
+
/***/ 448:
|
|
3269
3168
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3270
3169
|
|
|
3271
3170
|
"use strict";
|
|
@@ -3275,15 +3174,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3275
3174
|
value: true
|
|
3276
3175
|
});
|
|
3277
3176
|
|
|
3278
|
-
var React = __webpack_require__(
|
|
3177
|
+
var React = __webpack_require__(0);
|
|
3279
3178
|
|
|
3280
|
-
var T = __webpack_require__(
|
|
3179
|
+
var T = __webpack_require__(1);
|
|
3281
3180
|
|
|
3282
3181
|
var styled_components_1 = __webpack_require__(4);
|
|
3283
3182
|
|
|
3284
|
-
var pick_1 = __webpack_require__(
|
|
3183
|
+
var pick_1 = __webpack_require__(23);
|
|
3285
3184
|
|
|
3286
|
-
var variables_1 = __webpack_require__(
|
|
3185
|
+
var variables_1 = __webpack_require__(10);
|
|
3287
3186
|
|
|
3288
3187
|
var LEGEND_ITEM_VERTICAL_SPACER = 25;
|
|
3289
3188
|
var LEGEND_ITEM_HORIZONTAL_SPACER = 10;
|
|
@@ -3384,7 +3283,7 @@ exports.default = PunchcardLegend;
|
|
|
3384
3283
|
|
|
3385
3284
|
/***/ }),
|
|
3386
3285
|
|
|
3387
|
-
/***/
|
|
3286
|
+
/***/ 449:
|
|
3388
3287
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3389
3288
|
|
|
3390
3289
|
"use strict";
|
|
@@ -3394,17 +3293,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3394
3293
|
value: true
|
|
3395
3294
|
});
|
|
3396
3295
|
|
|
3397
|
-
var React = __webpack_require__(
|
|
3296
|
+
var React = __webpack_require__(0);
|
|
3398
3297
|
|
|
3399
|
-
var T = __webpack_require__(
|
|
3298
|
+
var T = __webpack_require__(1);
|
|
3400
3299
|
|
|
3401
3300
|
var styled_components_1 = __webpack_require__(4);
|
|
3402
3301
|
|
|
3403
3302
|
var lodash_1 = __webpack_require__(3);
|
|
3404
3303
|
|
|
3405
|
-
var pick_1 = __webpack_require__(
|
|
3304
|
+
var pick_1 = __webpack_require__(23);
|
|
3406
3305
|
|
|
3407
|
-
var variables_1 = __webpack_require__(
|
|
3306
|
+
var variables_1 = __webpack_require__(10); // was previously lineColor in themeRegistry
|
|
3408
3307
|
|
|
3409
3308
|
|
|
3410
3309
|
var GridLine = styled_components_1.default.line.withConfig({
|
|
@@ -3470,7 +3369,88 @@ exports.default = PunchcardGridLines;
|
|
|
3470
3369
|
|
|
3471
3370
|
/***/ }),
|
|
3472
3371
|
|
|
3473
|
-
/***/
|
|
3372
|
+
/***/ 45:
|
|
3373
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3374
|
+
|
|
3375
|
+
"use strict";
|
|
3376
|
+
|
|
3377
|
+
|
|
3378
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3379
|
+
value: true
|
|
3380
|
+
});
|
|
3381
|
+
exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
|
|
3382
|
+
|
|
3383
|
+
var React = __webpack_require__(0);
|
|
3384
|
+
|
|
3385
|
+
var T = __webpack_require__(1);
|
|
3386
|
+
|
|
3387
|
+
var i18n_1 = __webpack_require__(2);
|
|
3388
|
+
|
|
3389
|
+
var Message_1 = __webpack_require__(9);
|
|
3390
|
+
|
|
3391
|
+
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
3392
|
+
/**
|
|
3393
|
+
* @method isMissing
|
|
3394
|
+
* @param {any} v
|
|
3395
|
+
* @returns {boolean} true if the input value === null or undefined
|
|
3396
|
+
*/
|
|
3397
|
+
|
|
3398
|
+
|
|
3399
|
+
var isMissing = function isMissing(v) {
|
|
3400
|
+
return v === null || v === undefined;
|
|
3401
|
+
};
|
|
3402
|
+
|
|
3403
|
+
exports.isMissing = isMissing;
|
|
3404
|
+
/**
|
|
3405
|
+
* @method misskingKeys
|
|
3406
|
+
* @param {string[]} keys
|
|
3407
|
+
* @param {object} target
|
|
3408
|
+
* @returns {string[]} the keys of missing required props
|
|
3409
|
+
*/
|
|
3410
|
+
|
|
3411
|
+
var missingKeys = function missingKeys(keys, target) {
|
|
3412
|
+
return keys.filter(function (k) {
|
|
3413
|
+
return exports.isMissing(target[k]);
|
|
3414
|
+
});
|
|
3415
|
+
};
|
|
3416
|
+
|
|
3417
|
+
exports.missingKeys = missingKeys;
|
|
3418
|
+
var propTypes = {
|
|
3419
|
+
width: T.oneOfType([T.string, T.number]),
|
|
3420
|
+
height: T.oneOfType([T.string, T.number]),
|
|
3421
|
+
// eslint-disable-next-line react/no-unused-prop-types
|
|
3422
|
+
backgroundColor: T.string,
|
|
3423
|
+
missingProps: T.arrayOf(T.string)
|
|
3424
|
+
};
|
|
3425
|
+
/**
|
|
3426
|
+
* @method MissingPropsMessage
|
|
3427
|
+
* @param {MissingPropsProps} props
|
|
3428
|
+
* @returns {React.ReactElement}
|
|
3429
|
+
*/
|
|
3430
|
+
|
|
3431
|
+
var MissingPropsMessage = function MissingPropsMessage(props) {
|
|
3432
|
+
var width = props.width,
|
|
3433
|
+
height = props.height,
|
|
3434
|
+
missingProps = props.missingProps;
|
|
3435
|
+
return React.createElement(Message_1.default, {
|
|
3436
|
+
"data-test": "message",
|
|
3437
|
+
width: width,
|
|
3438
|
+
height: height,
|
|
3439
|
+
message: i18n_1._("Missing property: ".concat(missingProps.join(', ')))
|
|
3440
|
+
});
|
|
3441
|
+
};
|
|
3442
|
+
|
|
3443
|
+
exports.MissingPropsMessage = MissingPropsMessage;
|
|
3444
|
+
exports.MissingPropsMessage.propTypes = propTypes;
|
|
3445
|
+
exports.MissingPropsMessage.defaultProps = {
|
|
3446
|
+
width: '100%',
|
|
3447
|
+
height: 250
|
|
3448
|
+
};
|
|
3449
|
+
exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
3450
|
+
|
|
3451
|
+
/***/ }),
|
|
3452
|
+
|
|
3453
|
+
/***/ 450:
|
|
3474
3454
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3475
3455
|
|
|
3476
3456
|
"use strict";
|
|
@@ -3483,7 +3463,7 @@ exports.convertToPunchcardProperties = exports.mapToOldKey = exports.punchcardOp
|
|
|
3483
3463
|
|
|
3484
3464
|
var lodash_1 = __webpack_require__(3);
|
|
3485
3465
|
|
|
3486
|
-
var chartingUtils_1 = __webpack_require__(
|
|
3466
|
+
var chartingUtils_1 = __webpack_require__(55);
|
|
3487
3467
|
|
|
3488
3468
|
var punchcardOptionsMapping = {
|
|
3489
3469
|
legendDisplay: 'showLegend',
|
|
@@ -3540,28 +3520,146 @@ exports.convertToPunchcardProperties = convertToPunchcardProperties;
|
|
|
3540
3520
|
|
|
3541
3521
|
/***/ }),
|
|
3542
3522
|
|
|
3543
|
-
/***/
|
|
3523
|
+
/***/ 46:
|
|
3524
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3525
|
+
|
|
3526
|
+
"use strict";
|
|
3527
|
+
|
|
3528
|
+
|
|
3529
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3530
|
+
value: true
|
|
3531
|
+
});
|
|
3532
|
+
|
|
3533
|
+
var React = __webpack_require__(0);
|
|
3534
|
+
|
|
3535
|
+
var styled_components_1 = __webpack_require__(4);
|
|
3536
|
+
|
|
3537
|
+
var hocUtils_1 = __webpack_require__(15);
|
|
3538
|
+
|
|
3539
|
+
var Cover = styled_components_1.default.div.withConfig({
|
|
3540
|
+
displayName: "withEditModeCover__Cover",
|
|
3541
|
+
componentId: "sc-1gsbnxb-0"
|
|
3542
|
+
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
3543
|
+
var Blocker = styled_components_1.default.div.attrs({
|
|
3544
|
+
'data-splunk-visualization-version': "25.7.0 - d10a7789b"
|
|
3545
|
+
}).withConfig({
|
|
3546
|
+
displayName: "withEditModeCover__Blocker",
|
|
3547
|
+
componentId: "sc-1gsbnxb-1"
|
|
3548
|
+
})(["position:relative;width:100%;height:100%;"]);
|
|
3549
|
+
/**
|
|
3550
|
+
* HOC that renders a cover layer in edit mode
|
|
3551
|
+
* @method withEditModeCover
|
|
3552
|
+
* @param {ExtendedDashViz} Visualization
|
|
3553
|
+
* @returns {ExtendedDashViz} Wrapper
|
|
3554
|
+
*/
|
|
3555
|
+
|
|
3556
|
+
var withEditModeCover = function withEditModeCover(Visualization, disableEditModeCover) {
|
|
3557
|
+
var Wrapper = function Wrapper(props) {
|
|
3558
|
+
var mode = props.mode;
|
|
3559
|
+
var showEditCover = mode === 'edit' && !disableEditModeCover;
|
|
3560
|
+
return React.createElement(Blocker, null, React.createElement(Visualization, Object.assign({}, props)), showEditCover && React.createElement(Cover, {
|
|
3561
|
+
"data-test": "edit-mode-cover"
|
|
3562
|
+
}));
|
|
3563
|
+
};
|
|
3564
|
+
|
|
3565
|
+
hocUtils_1.extendStaticWrapperProps({
|
|
3566
|
+
Wrapper: Wrapper,
|
|
3567
|
+
Visualization: Visualization
|
|
3568
|
+
});
|
|
3569
|
+
return Wrapper;
|
|
3570
|
+
};
|
|
3571
|
+
|
|
3572
|
+
exports.default = withEditModeCover;
|
|
3573
|
+
|
|
3574
|
+
/***/ }),
|
|
3575
|
+
|
|
3576
|
+
/***/ 47:
|
|
3577
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
3578
|
+
|
|
3579
|
+
"use strict";
|
|
3580
|
+
|
|
3581
|
+
|
|
3582
|
+
Object.defineProperty(exports, "__esModule", {
|
|
3583
|
+
value: true
|
|
3584
|
+
});
|
|
3585
|
+
|
|
3586
|
+
var React = __webpack_require__(0);
|
|
3587
|
+
|
|
3588
|
+
var colorUtils_1 = __webpack_require__(12);
|
|
3589
|
+
|
|
3590
|
+
var variables_1 = __webpack_require__(10);
|
|
3591
|
+
|
|
3592
|
+
var IconPlaceholder_1 = __webpack_require__(31);
|
|
3593
|
+
|
|
3594
|
+
var VizBehavior_1 = __webpack_require__(6);
|
|
3595
|
+
|
|
3596
|
+
var hocUtils_1 = __webpack_require__(15);
|
|
3597
|
+
|
|
3598
|
+
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
3599
|
+
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
3600
|
+
var config = Visualization.config;
|
|
3601
|
+
var themes = config.themes;
|
|
3602
|
+
|
|
3603
|
+
var Wrapper = function Wrapper(props) {
|
|
3604
|
+
var _a, _b;
|
|
3605
|
+
|
|
3606
|
+
var dataSources = props.dataSources,
|
|
3607
|
+
loading = props.loading,
|
|
3608
|
+
options = props.options,
|
|
3609
|
+
height = props.height,
|
|
3610
|
+
width = props.width;
|
|
3611
|
+
var showPlaceholder = useIconPlaceholder(dataSources, loading, options);
|
|
3612
|
+
var bgColorFromTheme = colorUtils_1.isColor(options === null || options === void 0 ? void 0 : options.backgroundColor) ? options === null || options === void 0 ? void 0 : options.backgroundColor : (_a = themes === null || themes === void 0 ? void 0 : themes.defaultBackgroundColor) === null || _a === void 0 ? void 0 : _a.call(themes, props);
|
|
3613
|
+
var icon = (_b = config.placeholderIcon) !== null && _b !== void 0 ? _b : config.icon;
|
|
3614
|
+
var iconColor = variables_1.default.contentColorActive(props);
|
|
3615
|
+
|
|
3616
|
+
if (config.supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER) && showPlaceholder) {
|
|
3617
|
+
return React.createElement(IconPlaceholder_1.default, {
|
|
3618
|
+
"data-test": "icon-placeholder",
|
|
3619
|
+
icon: icon,
|
|
3620
|
+
width: width,
|
|
3621
|
+
height: height,
|
|
3622
|
+
backgroundColor: bgColorFromTheme,
|
|
3623
|
+
iconColor: iconColor
|
|
3624
|
+
});
|
|
3625
|
+
}
|
|
3626
|
+
|
|
3627
|
+
return React.createElement(Visualization, Object.assign({}, props));
|
|
3628
|
+
};
|
|
3629
|
+
|
|
3630
|
+
hocUtils_1.extendStaticWrapperProps({
|
|
3631
|
+
Wrapper: Wrapper,
|
|
3632
|
+
Visualization: Visualization
|
|
3633
|
+
});
|
|
3634
|
+
return Wrapper;
|
|
3635
|
+
};
|
|
3636
|
+
|
|
3637
|
+
exports.default = withPlaceholder;
|
|
3638
|
+
|
|
3639
|
+
/***/ }),
|
|
3640
|
+
|
|
3641
|
+
/***/ 48:
|
|
3544
3642
|
/***/ (function(module, exports) {
|
|
3545
3643
|
|
|
3546
3644
|
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
3547
3645
|
|
|
3548
3646
|
/***/ }),
|
|
3549
3647
|
|
|
3550
|
-
/***/
|
|
3648
|
+
/***/ 50:
|
|
3551
3649
|
/***/ (function(module, exports) {
|
|
3552
3650
|
|
|
3553
3651
|
module.exports = require("@splunk/visualization-color-palettes");
|
|
3554
3652
|
|
|
3555
3653
|
/***/ }),
|
|
3556
3654
|
|
|
3557
|
-
/***/
|
|
3655
|
+
/***/ 51:
|
|
3558
3656
|
/***/ (function(module, exports) {
|
|
3559
3657
|
|
|
3560
3658
|
module.exports = require("@splunk/visualization-icons");
|
|
3561
3659
|
|
|
3562
3660
|
/***/ }),
|
|
3563
3661
|
|
|
3564
|
-
/***/
|
|
3662
|
+
/***/ 53:
|
|
3565
3663
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3566
3664
|
|
|
3567
3665
|
"use strict";
|
|
@@ -3592,20 +3690,13 @@ exports.default = background;
|
|
|
3592
3690
|
|
|
3593
3691
|
/***/ }),
|
|
3594
3692
|
|
|
3595
|
-
/***/
|
|
3596
|
-
/***/ (function(module, exports) {
|
|
3597
|
-
|
|
3598
|
-
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
3599
|
-
|
|
3600
|
-
/***/ }),
|
|
3601
|
-
|
|
3602
|
-
/***/ 52:
|
|
3693
|
+
/***/ 55:
|
|
3603
3694
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3604
3695
|
|
|
3605
3696
|
"use strict";
|
|
3606
3697
|
|
|
3607
3698
|
|
|
3608
|
-
var _toConsumableArray = __webpack_require__(
|
|
3699
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
3609
3700
|
|
|
3610
3701
|
var __rest = this && this.__rest || function (s, e) {
|
|
3611
3702
|
var t = {};
|
|
@@ -3855,6 +3946,7 @@ var VizBehavior;
|
|
|
3855
3946
|
|
|
3856
3947
|
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
3857
3948
|
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
3949
|
+
VizBehavior["TRELLIS"] = "trellis";
|
|
3858
3950
|
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
3859
3951
|
|
|
3860
3952
|
/***/ }),
|
|
@@ -3862,45 +3954,52 @@ var VizBehavior;
|
|
|
3862
3954
|
/***/ 7:
|
|
3863
3955
|
/***/ (function(module, exports) {
|
|
3864
3956
|
|
|
3865
|
-
module.exports = require("@babel/runtime/helpers/
|
|
3957
|
+
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
3866
3958
|
|
|
3867
3959
|
/***/ }),
|
|
3868
3960
|
|
|
3869
3961
|
/***/ 8:
|
|
3870
3962
|
/***/ (function(module, exports) {
|
|
3871
3963
|
|
|
3872
|
-
module.exports = require("@babel/runtime/helpers/
|
|
3964
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
3873
3965
|
|
|
3874
3966
|
/***/ }),
|
|
3875
3967
|
|
|
3876
|
-
/***/
|
|
3968
|
+
/***/ 86:
|
|
3877
3969
|
/***/ (function(module, exports) {
|
|
3878
3970
|
|
|
3879
3971
|
module.exports = require("d3-scale");
|
|
3880
3972
|
|
|
3881
3973
|
/***/ }),
|
|
3882
3974
|
|
|
3883
|
-
/***/
|
|
3975
|
+
/***/ 9:
|
|
3976
|
+
/***/ (function(module, exports) {
|
|
3977
|
+
|
|
3978
|
+
module.exports = require("@splunk/visualizations-shared/Message");
|
|
3979
|
+
|
|
3980
|
+
/***/ }),
|
|
3981
|
+
|
|
3982
|
+
/***/ 93:
|
|
3884
3983
|
/***/ (function(module, exports) {
|
|
3885
3984
|
|
|
3886
3985
|
module.exports = require("@babel/runtime/helpers/taggedTemplateLiteral");
|
|
3887
3986
|
|
|
3888
3987
|
/***/ }),
|
|
3889
3988
|
|
|
3890
|
-
/***/
|
|
3989
|
+
/***/ 94:
|
|
3891
3990
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3892
3991
|
|
|
3893
3992
|
"use strict";
|
|
3894
3993
|
|
|
3895
3994
|
|
|
3896
|
-
var _slicedToArray = __webpack_require__(
|
|
3995
|
+
var _slicedToArray = __webpack_require__(17);
|
|
3897
3996
|
|
|
3898
3997
|
Object.defineProperty(exports, "__esModule", {
|
|
3899
3998
|
value: true
|
|
3900
3999
|
});
|
|
3901
4000
|
exports.truncateAxisLabelText = exports.isBubbleSelected = exports.isSomethingSelected = exports.getDataByRows = exports.createValueScale = exports.getScales = exports.getChartAreaDimensions = exports.getColorCategoryMapping = exports.GRAYSCALE_FILTER_ID = exports.BUBBLE_LABELS_TYPES = exports.COLOR_MODE_TYPES = exports.BUBBLE_SCALE_TYPES = exports.BUBBLE_ROW_SCALE_TYPES = exports.AXIS_ORIENTATION_TYPES = void 0;
|
|
3902
4001
|
|
|
3903
|
-
var d3_scale_1 = __webpack_require__(
|
|
4002
|
+
var d3_scale_1 = __webpack_require__(86);
|
|
3904
4003
|
/**
|
|
3905
4004
|
* @enum {AXIS_ORIENTATION_TYPES}
|
|
3906
4005
|
*/
|
|
@@ -4294,13 +4393,6 @@ var truncateAxisLabelText = function truncateAxisLabelText(_ref9) {
|
|
|
4294
4393
|
|
|
4295
4394
|
exports.truncateAxisLabelText = truncateAxisLabelText;
|
|
4296
4395
|
|
|
4297
|
-
/***/ }),
|
|
4298
|
-
|
|
4299
|
-
/***/ 9:
|
|
4300
|
-
/***/ (function(module, exports) {
|
|
4301
|
-
|
|
4302
|
-
module.exports = require("@splunk/themes/variables");
|
|
4303
|
-
|
|
4304
4396
|
/***/ })
|
|
4305
4397
|
|
|
4306
4398
|
/******/ });
|