@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/Map.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 = 406);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ({
|
|
@@ -95,21 +95,28 @@ module.exports =
|
|
|
95
95
|
/***/ 0:
|
|
96
96
|
/***/ (function(module, exports) {
|
|
97
97
|
|
|
98
|
-
module.exports = require("
|
|
98
|
+
module.exports = require("react");
|
|
99
99
|
|
|
100
100
|
/***/ }),
|
|
101
101
|
|
|
102
102
|
/***/ 1:
|
|
103
103
|
/***/ (function(module, exports) {
|
|
104
104
|
|
|
105
|
-
module.exports = require("
|
|
105
|
+
module.exports = require("prop-types");
|
|
106
106
|
|
|
107
107
|
/***/ }),
|
|
108
108
|
|
|
109
109
|
/***/ 10:
|
|
110
110
|
/***/ (function(module, exports) {
|
|
111
111
|
|
|
112
|
-
module.exports = require("@splunk/
|
|
112
|
+
module.exports = require("@splunk/themes/variables");
|
|
113
|
+
|
|
114
|
+
/***/ }),
|
|
115
|
+
|
|
116
|
+
/***/ 105:
|
|
117
|
+
/***/ (function(module, exports) {
|
|
118
|
+
|
|
119
|
+
module.exports = require("@splunk/visualization-encoding/utils/dsl");
|
|
113
120
|
|
|
114
121
|
/***/ }),
|
|
115
122
|
|
|
@@ -120,7 +127,14 @@ module.exports = require("@babel/runtime/helpers/classCallCheck");
|
|
|
120
127
|
|
|
121
128
|
/***/ }),
|
|
122
129
|
|
|
123
|
-
/***/
|
|
130
|
+
/***/ 12:
|
|
131
|
+
/***/ (function(module, exports) {
|
|
132
|
+
|
|
133
|
+
module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
134
|
+
|
|
135
|
+
/***/ }),
|
|
136
|
+
|
|
137
|
+
/***/ 120:
|
|
124
138
|
/***/ (function(module, exports, __webpack_require__) {
|
|
125
139
|
|
|
126
140
|
"use strict";
|
|
@@ -160,125 +174,6 @@ exports.convertToArrOfObjects = convertToArrOfObjects;
|
|
|
160
174
|
|
|
161
175
|
/***/ }),
|
|
162
176
|
|
|
163
|
-
/***/ 117:
|
|
164
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
165
|
-
|
|
166
|
-
"use strict";
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
var _slicedToArray = __webpack_require__(51);
|
|
170
|
-
|
|
171
|
-
var __rest = this && this.__rest || function (s, e) {
|
|
172
|
-
var t = {};
|
|
173
|
-
|
|
174
|
-
for (var p in s) {
|
|
175
|
-
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
176
|
-
}
|
|
177
|
-
|
|
178
|
-
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
179
|
-
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
180
|
-
}
|
|
181
|
-
return t;
|
|
182
|
-
};
|
|
183
|
-
|
|
184
|
-
Object.defineProperty(exports, "__esModule", {
|
|
185
|
-
value: true
|
|
186
|
-
});
|
|
187
|
-
|
|
188
|
-
var maplibre_gl_1 = __webpack_require__(141);
|
|
189
|
-
|
|
190
|
-
var React = __webpack_require__(1);
|
|
191
|
-
|
|
192
|
-
var Tooltip_1 = __webpack_require__(395);
|
|
193
|
-
|
|
194
|
-
var MarkerWrapper = function MarkerWrapper(_a) {
|
|
195
|
-
var longitude = _a.longitude,
|
|
196
|
-
latitude = _a.latitude,
|
|
197
|
-
areaId = _a.areaId,
|
|
198
|
-
areaValue = _a.areaValue,
|
|
199
|
-
_a$additionalFields = _a.additionalFields,
|
|
200
|
-
additionalFields = _a$additionalFields === void 0 ? [] : _a$additionalFields,
|
|
201
|
-
map = _a.map,
|
|
202
|
-
isChoroplethTooltipOpen = _a.isChoroplethTooltipOpen,
|
|
203
|
-
children = _a.children,
|
|
204
|
-
otherProps = __rest(_a, ["longitude", "latitude", "areaId", "areaValue", "additionalFields", "map", "isChoroplethTooltipOpen", "children"]);
|
|
205
|
-
|
|
206
|
-
var container = React.useRef();
|
|
207
|
-
var marker = React.useRef();
|
|
208
|
-
|
|
209
|
-
var _React$useState = React.useState(false),
|
|
210
|
-
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
211
|
-
isTooltipOpen = _React$useState2[0],
|
|
212
|
-
setTooltipOpenStatus = _React$useState2[1];
|
|
213
|
-
|
|
214
|
-
var isChoroplethTooltip = React.useCallback(function () {
|
|
215
|
-
return isChoroplethTooltipOpen !== undefined;
|
|
216
|
-
}, [isChoroplethTooltipOpen]);
|
|
217
|
-
var openTooltip = React.useCallback(function () {
|
|
218
|
-
return setTooltipOpenStatus(true);
|
|
219
|
-
}, []);
|
|
220
|
-
var closeTooltip = React.useCallback(function () {
|
|
221
|
-
return setTooltipOpenStatus(false);
|
|
222
|
-
}, []);
|
|
223
|
-
var cleanupMarker = React.useCallback(function () {
|
|
224
|
-
if (marker.current) {
|
|
225
|
-
marker.current.remove();
|
|
226
|
-
marker.current = undefined;
|
|
227
|
-
}
|
|
228
|
-
}, []);
|
|
229
|
-
React.useEffect(function () {
|
|
230
|
-
try {
|
|
231
|
-
if (marker.current) {
|
|
232
|
-
marker.current.setLngLat([longitude, latitude]);
|
|
233
|
-
} else {
|
|
234
|
-
marker.current = new maplibre_gl_1.Marker(container.current);
|
|
235
|
-
marker.current.setLngLat([longitude, latitude]);
|
|
236
|
-
marker.current.addTo(map.current);
|
|
237
|
-
}
|
|
238
|
-
} catch (error) {
|
|
239
|
-
console.error(error);
|
|
240
|
-
cleanupMarker();
|
|
241
|
-
}
|
|
242
|
-
}, [latitude, longitude, map]);
|
|
243
|
-
React.useEffect(function () {
|
|
244
|
-
return cleanupMarker;
|
|
245
|
-
}, []);
|
|
246
|
-
return React.createElement("div", {
|
|
247
|
-
style: {
|
|
248
|
-
visibility: isChoroplethTooltip() ? 'hidden' : 'visible'
|
|
249
|
-
}
|
|
250
|
-
}, React.createElement("div", Object.assign({
|
|
251
|
-
style: {
|
|
252
|
-
visibility: isChoroplethTooltip() ? 'hidden' : 'visible'
|
|
253
|
-
},
|
|
254
|
-
ref: container,
|
|
255
|
-
"data-test": "map-marker",
|
|
256
|
-
onMouseOver: openTooltip,
|
|
257
|
-
onMouseLeave: closeTooltip,
|
|
258
|
-
onFocus: openTooltip,
|
|
259
|
-
onBlur: closeTooltip
|
|
260
|
-
}, otherProps), children), React.createElement("div", null, React.createElement(Tooltip_1.default, {
|
|
261
|
-
open: isChoroplethTooltip() ? isChoroplethTooltipOpen : isTooltipOpen,
|
|
262
|
-
anchor: container.current,
|
|
263
|
-
latitude: isChoroplethTooltip() ? null : latitude,
|
|
264
|
-
longitude: isChoroplethTooltip() ? null : longitude,
|
|
265
|
-
areaId: areaId,
|
|
266
|
-
areaValue: areaValue,
|
|
267
|
-
additionalFields: additionalFields
|
|
268
|
-
})));
|
|
269
|
-
};
|
|
270
|
-
|
|
271
|
-
exports.default = MarkerWrapper;
|
|
272
|
-
|
|
273
|
-
/***/ }),
|
|
274
|
-
|
|
275
|
-
/***/ 12:
|
|
276
|
-
/***/ (function(module, exports) {
|
|
277
|
-
|
|
278
|
-
module.exports = require("@splunk/visualizations-shared/colorUtils");
|
|
279
|
-
|
|
280
|
-
/***/ }),
|
|
281
|
-
|
|
282
177
|
/***/ 13:
|
|
283
178
|
/***/ (function(module, exports, __webpack_require__) {
|
|
284
179
|
|
|
@@ -289,13 +184,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
289
184
|
value: true
|
|
290
185
|
});
|
|
291
186
|
|
|
292
|
-
var React = __webpack_require__(
|
|
187
|
+
var React = __webpack_require__(0);
|
|
293
188
|
|
|
294
189
|
var styled_components_1 = __webpack_require__(4);
|
|
295
190
|
|
|
296
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
191
|
+
var SizeAwareWrapper_1 = __webpack_require__(18);
|
|
297
192
|
|
|
298
|
-
var style_1 = __webpack_require__(
|
|
193
|
+
var style_1 = __webpack_require__(14);
|
|
299
194
|
|
|
300
195
|
var colorUtils_1 = __webpack_require__(12);
|
|
301
196
|
|
|
@@ -354,7 +249,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
354
249
|
|
|
355
250
|
return React.createElement(FixSizeItem, {
|
|
356
251
|
"data-test": "fix-size-item",
|
|
357
|
-
"data-splunk-visualization-version": "25.
|
|
252
|
+
"data-splunk-visualization-version": "25.7.0 - d10a7789b",
|
|
358
253
|
width: width,
|
|
359
254
|
height: height,
|
|
360
255
|
backgroundColor: backgroundColor
|
|
@@ -376,71 +271,24 @@ exports.default = withFixedSizeContainer;
|
|
|
376
271
|
|
|
377
272
|
/***/ }),
|
|
378
273
|
|
|
379
|
-
/***/
|
|
380
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
381
|
-
|
|
382
|
-
"use strict";
|
|
383
|
-
|
|
384
|
-
|
|
385
|
-
Object.defineProperty(exports, "__esModule", {
|
|
386
|
-
value: true
|
|
387
|
-
});
|
|
388
|
-
exports.extendStaticWrapperProps = void 0;
|
|
389
|
-
/**
|
|
390
|
-
* @method extendStaticWrapperProps
|
|
391
|
-
* @param {Object} props
|
|
392
|
-
* @param {DashboardVizType} props.Wrapper
|
|
393
|
-
* @param {DashboardVizType} props.Visualization
|
|
394
|
-
*/
|
|
395
|
-
|
|
396
|
-
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
397
|
-
var Wrapper = _ref.Wrapper,
|
|
398
|
-
Visualization = _ref.Visualization;
|
|
399
|
-
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
400
|
-
extendProperties.forEach(function (prop) {
|
|
401
|
-
if (Visualization[prop]) {
|
|
402
|
-
// eslint-disable-next-line no-param-reassign
|
|
403
|
-
Wrapper[prop] = Visualization[prop];
|
|
404
|
-
}
|
|
405
|
-
});
|
|
406
|
-
};
|
|
407
|
-
|
|
408
|
-
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
409
|
-
|
|
410
|
-
/***/ }),
|
|
411
|
-
|
|
412
|
-
/***/ 140:
|
|
413
|
-
/***/ (function(module, exports) {
|
|
414
|
-
|
|
415
|
-
module.exports = require("chroma-js");
|
|
416
|
-
|
|
417
|
-
/***/ }),
|
|
418
|
-
|
|
419
|
-
/***/ 141:
|
|
420
|
-
/***/ (function(module, exports) {
|
|
421
|
-
|
|
422
|
-
module.exports = require("maplibre-gl");
|
|
423
|
-
|
|
424
|
-
/***/ }),
|
|
425
|
-
|
|
426
|
-
/***/ 142:
|
|
274
|
+
/***/ 130:
|
|
427
275
|
/***/ (function(module, exports, __webpack_require__) {
|
|
428
276
|
|
|
429
277
|
"use strict";
|
|
430
278
|
|
|
431
279
|
|
|
432
|
-
var _slicedToArray = __webpack_require__(
|
|
280
|
+
var _slicedToArray = __webpack_require__(17);
|
|
433
281
|
|
|
434
|
-
var _defineProperty = __webpack_require__(
|
|
282
|
+
var _defineProperty = __webpack_require__(8);
|
|
435
283
|
|
|
436
|
-
var _toConsumableArray = __webpack_require__(
|
|
284
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
437
285
|
|
|
438
286
|
Object.defineProperty(exports, "__esModule", {
|
|
439
287
|
value: true
|
|
440
288
|
});
|
|
441
|
-
exports.Bubble = exports.PieSegment = exports.GEO_BOUND_PREFIX = void 0;
|
|
289
|
+
exports.Bubble = exports.PieSegment = exports.GEO_LAT_AND_LONG_FIELD = exports.GEO_BOUND_PREFIX = void 0;
|
|
442
290
|
|
|
443
|
-
var React = __webpack_require__(
|
|
291
|
+
var React = __webpack_require__(0);
|
|
444
292
|
|
|
445
293
|
var styled_components_1 = __webpack_require__(4);
|
|
446
294
|
|
|
@@ -448,11 +296,12 @@ var lodash_1 = __webpack_require__(3);
|
|
|
448
296
|
|
|
449
297
|
var colorUtils_1 = __webpack_require__(12);
|
|
450
298
|
|
|
451
|
-
var MapUtils_1 = __webpack_require__(
|
|
299
|
+
var MapUtils_1 = __webpack_require__(85);
|
|
452
300
|
|
|
453
|
-
var MarkerWrapper_1 = __webpack_require__(
|
|
301
|
+
var MarkerWrapper_1 = __webpack_require__(131);
|
|
454
302
|
|
|
455
303
|
exports.GEO_BOUND_PREFIX = '_geo_bounds_';
|
|
304
|
+
exports.GEO_LAT_AND_LONG_FIELD = ['_geo_long_field', '_geo_lat_field'];
|
|
456
305
|
exports.PieSegment = React.memo(function (_ref) {
|
|
457
306
|
var start = _ref.start,
|
|
458
307
|
end = _ref.end,
|
|
@@ -689,30 +538,196 @@ var BubbleLayer = function BubbleLayer(props) {
|
|
|
689
538
|
}));
|
|
690
539
|
};
|
|
691
540
|
|
|
692
|
-
exports.default = BubbleLayer;
|
|
541
|
+
exports.default = BubbleLayer;
|
|
542
|
+
|
|
543
|
+
/***/ }),
|
|
544
|
+
|
|
545
|
+
/***/ 131:
|
|
546
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
547
|
+
|
|
548
|
+
"use strict";
|
|
549
|
+
|
|
550
|
+
|
|
551
|
+
var _slicedToArray = __webpack_require__(17);
|
|
552
|
+
|
|
553
|
+
var __rest = this && this.__rest || function (s, e) {
|
|
554
|
+
var t = {};
|
|
555
|
+
|
|
556
|
+
for (var p in s) {
|
|
557
|
+
if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0) t[p] = s[p];
|
|
558
|
+
}
|
|
559
|
+
|
|
560
|
+
if (s != null && typeof Object.getOwnPropertySymbols === "function") for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
|
|
561
|
+
if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i])) t[p[i]] = s[p[i]];
|
|
562
|
+
}
|
|
563
|
+
return t;
|
|
564
|
+
};
|
|
565
|
+
|
|
566
|
+
Object.defineProperty(exports, "__esModule", {
|
|
567
|
+
value: true
|
|
568
|
+
});
|
|
569
|
+
|
|
570
|
+
var maplibre_gl_1 = __webpack_require__(155);
|
|
571
|
+
|
|
572
|
+
var React = __webpack_require__(0);
|
|
573
|
+
|
|
574
|
+
var Tooltip_1 = __webpack_require__(412);
|
|
575
|
+
|
|
576
|
+
var MarkerWrapper = function MarkerWrapper(_a) {
|
|
577
|
+
var longitude = _a.longitude,
|
|
578
|
+
latitude = _a.latitude,
|
|
579
|
+
areaId = _a.areaId,
|
|
580
|
+
areaValue = _a.areaValue,
|
|
581
|
+
_a$additionalFields = _a.additionalFields,
|
|
582
|
+
additionalFields = _a$additionalFields === void 0 ? [] : _a$additionalFields,
|
|
583
|
+
map = _a.map,
|
|
584
|
+
isChoroplethTooltipOpen = _a.isChoroplethTooltipOpen,
|
|
585
|
+
children = _a.children,
|
|
586
|
+
otherProps = __rest(_a, ["longitude", "latitude", "areaId", "areaValue", "additionalFields", "map", "isChoroplethTooltipOpen", "children"]);
|
|
587
|
+
|
|
588
|
+
var container = React.useRef();
|
|
589
|
+
var marker = React.useRef();
|
|
590
|
+
|
|
591
|
+
var _React$useState = React.useState(false),
|
|
592
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
593
|
+
isTooltipOpen = _React$useState2[0],
|
|
594
|
+
setTooltipOpenStatus = _React$useState2[1];
|
|
595
|
+
|
|
596
|
+
var isChoroplethTooltip = React.useCallback(function () {
|
|
597
|
+
return isChoroplethTooltipOpen !== undefined;
|
|
598
|
+
}, [isChoroplethTooltipOpen]);
|
|
599
|
+
var openTooltip = React.useCallback(function () {
|
|
600
|
+
return setTooltipOpenStatus(true);
|
|
601
|
+
}, []);
|
|
602
|
+
var closeTooltip = React.useCallback(function () {
|
|
603
|
+
return setTooltipOpenStatus(false);
|
|
604
|
+
}, []);
|
|
605
|
+
var cleanupMarker = React.useCallback(function () {
|
|
606
|
+
if (marker.current) {
|
|
607
|
+
marker.current.remove();
|
|
608
|
+
marker.current = undefined;
|
|
609
|
+
}
|
|
610
|
+
}, []);
|
|
611
|
+
React.useEffect(function () {
|
|
612
|
+
try {
|
|
613
|
+
if (marker.current) {
|
|
614
|
+
marker.current.setLngLat([longitude, latitude]);
|
|
615
|
+
} else {
|
|
616
|
+
marker.current = new maplibre_gl_1.Marker(container.current);
|
|
617
|
+
marker.current.setLngLat([longitude, latitude]);
|
|
618
|
+
marker.current.addTo(map.current);
|
|
619
|
+
}
|
|
620
|
+
} catch (error) {
|
|
621
|
+
console.error(error);
|
|
622
|
+
cleanupMarker();
|
|
623
|
+
}
|
|
624
|
+
}, [latitude, longitude, map]);
|
|
625
|
+
React.useEffect(function () {
|
|
626
|
+
return cleanupMarker;
|
|
627
|
+
}, []);
|
|
628
|
+
return React.createElement("div", {
|
|
629
|
+
style: {
|
|
630
|
+
visibility: isChoroplethTooltip() ? 'hidden' : 'visible'
|
|
631
|
+
}
|
|
632
|
+
}, React.createElement("div", Object.assign({
|
|
633
|
+
style: {
|
|
634
|
+
visibility: isChoroplethTooltip() ? 'hidden' : 'visible'
|
|
635
|
+
},
|
|
636
|
+
ref: container,
|
|
637
|
+
"data-test": "map-marker",
|
|
638
|
+
onMouseOver: openTooltip,
|
|
639
|
+
onMouseLeave: closeTooltip,
|
|
640
|
+
onFocus: openTooltip,
|
|
641
|
+
onBlur: closeTooltip
|
|
642
|
+
}, otherProps), children), React.createElement("div", null, React.createElement(Tooltip_1.default, {
|
|
643
|
+
open: isChoroplethTooltip() ? isChoroplethTooltipOpen : isTooltipOpen,
|
|
644
|
+
anchor: container.current,
|
|
645
|
+
latitude: isChoroplethTooltip() ? null : latitude,
|
|
646
|
+
longitude: isChoroplethTooltip() ? null : longitude,
|
|
647
|
+
areaId: areaId,
|
|
648
|
+
areaValue: areaValue,
|
|
649
|
+
additionalFields: additionalFields
|
|
650
|
+
})));
|
|
651
|
+
};
|
|
652
|
+
|
|
653
|
+
exports.default = MarkerWrapper;
|
|
654
|
+
|
|
655
|
+
/***/ }),
|
|
656
|
+
|
|
657
|
+
/***/ 14:
|
|
658
|
+
/***/ (function(module, exports) {
|
|
659
|
+
|
|
660
|
+
module.exports = require("@splunk/visualizations-shared/style");
|
|
661
|
+
|
|
662
|
+
/***/ }),
|
|
663
|
+
|
|
664
|
+
/***/ 15:
|
|
665
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
666
|
+
|
|
667
|
+
"use strict";
|
|
668
|
+
|
|
669
|
+
|
|
670
|
+
Object.defineProperty(exports, "__esModule", {
|
|
671
|
+
value: true
|
|
672
|
+
});
|
|
673
|
+
exports.extendStaticWrapperProps = void 0;
|
|
674
|
+
/**
|
|
675
|
+
* @method extendStaticWrapperProps
|
|
676
|
+
* @param {Object} props
|
|
677
|
+
* @param {DashboardVizType} props.Wrapper
|
|
678
|
+
* @param {DashboardVizType} props.Visualization
|
|
679
|
+
*/
|
|
680
|
+
|
|
681
|
+
var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
682
|
+
var Wrapper = _ref.Wrapper,
|
|
683
|
+
Visualization = _ref.Visualization;
|
|
684
|
+
var extendProperties = ['propTypes', 'defaultProps', 'config'];
|
|
685
|
+
extendProperties.forEach(function (prop) {
|
|
686
|
+
if (Visualization[prop]) {
|
|
687
|
+
// eslint-disable-next-line no-param-reassign
|
|
688
|
+
Wrapper[prop] = Visualization[prop];
|
|
689
|
+
}
|
|
690
|
+
});
|
|
691
|
+
};
|
|
692
|
+
|
|
693
|
+
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
694
|
+
|
|
695
|
+
/***/ }),
|
|
696
|
+
|
|
697
|
+
/***/ 154:
|
|
698
|
+
/***/ (function(module, exports) {
|
|
699
|
+
|
|
700
|
+
module.exports = require("chroma-js");
|
|
701
|
+
|
|
702
|
+
/***/ }),
|
|
703
|
+
|
|
704
|
+
/***/ 155:
|
|
705
|
+
/***/ (function(module, exports) {
|
|
706
|
+
|
|
707
|
+
module.exports = require("maplibre-gl");
|
|
693
708
|
|
|
694
709
|
/***/ }),
|
|
695
710
|
|
|
696
|
-
/***/
|
|
711
|
+
/***/ 156:
|
|
697
712
|
/***/ (function(module, exports, __webpack_require__) {
|
|
698
713
|
|
|
699
714
|
"use strict";
|
|
700
715
|
|
|
701
716
|
|
|
702
|
-
var _slicedToArray = __webpack_require__(
|
|
717
|
+
var _slicedToArray = __webpack_require__(17);
|
|
703
718
|
|
|
704
719
|
Object.defineProperty(exports, "__esModule", {
|
|
705
720
|
value: true
|
|
706
721
|
});
|
|
707
722
|
exports.Choropleth = exports.cleanupChoropleth = exports.compareChoropleth = exports.compareGeom = void 0;
|
|
708
723
|
|
|
709
|
-
var React = __webpack_require__(
|
|
724
|
+
var React = __webpack_require__(0);
|
|
710
725
|
|
|
711
726
|
var lodash_1 = __webpack_require__(3);
|
|
712
727
|
|
|
713
|
-
var MapUtils_1 = __webpack_require__(
|
|
728
|
+
var MapUtils_1 = __webpack_require__(85);
|
|
714
729
|
|
|
715
|
-
var MarkerWrapper_1 = __webpack_require__(
|
|
730
|
+
var MarkerWrapper_1 = __webpack_require__(131);
|
|
716
731
|
|
|
717
732
|
var getShapeId = function getShapeId(id) {
|
|
718
733
|
return "shape-".concat(id);
|
|
@@ -966,29 +981,36 @@ exports.default = ChoroplethLayer;
|
|
|
966
981
|
|
|
967
982
|
/***/ }),
|
|
968
983
|
|
|
969
|
-
/***/
|
|
984
|
+
/***/ 16:
|
|
970
985
|
/***/ (function(module, exports) {
|
|
971
986
|
|
|
972
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
987
|
+
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
973
988
|
|
|
974
989
|
/***/ }),
|
|
975
990
|
|
|
976
|
-
/***/
|
|
991
|
+
/***/ 17:
|
|
977
992
|
/***/ (function(module, exports) {
|
|
978
993
|
|
|
979
|
-
module.exports = require("@
|
|
994
|
+
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
980
995
|
|
|
981
996
|
/***/ }),
|
|
982
997
|
|
|
983
|
-
/***/
|
|
998
|
+
/***/ 18:
|
|
999
|
+
/***/ (function(module, exports) {
|
|
1000
|
+
|
|
1001
|
+
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
1002
|
+
|
|
1003
|
+
/***/ }),
|
|
1004
|
+
|
|
1005
|
+
/***/ 19:
|
|
984
1006
|
/***/ (function(module, exports, __webpack_require__) {
|
|
985
1007
|
|
|
986
1008
|
"use strict";
|
|
987
1009
|
|
|
988
1010
|
|
|
989
|
-
var _toConsumableArray = __webpack_require__(
|
|
1011
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
990
1012
|
|
|
991
|
-
var _defineProperty = __webpack_require__(
|
|
1013
|
+
var _defineProperty = __webpack_require__(8);
|
|
992
1014
|
|
|
993
1015
|
var __rest = this && this.__rest || function (s, e) {
|
|
994
1016
|
var t = {};
|
|
@@ -1217,49 +1239,63 @@ exports.insertLayout = insertLayout;
|
|
|
1217
1239
|
|
|
1218
1240
|
/***/ }),
|
|
1219
1241
|
|
|
1220
|
-
/***/
|
|
1242
|
+
/***/ 2:
|
|
1221
1243
|
/***/ (function(module, exports) {
|
|
1222
1244
|
|
|
1223
|
-
module.exports = require("@
|
|
1245
|
+
module.exports = require("@splunk/ui-utils/i18n");
|
|
1224
1246
|
|
|
1225
1247
|
/***/ }),
|
|
1226
1248
|
|
|
1227
|
-
/***/
|
|
1249
|
+
/***/ 20:
|
|
1228
1250
|
/***/ (function(module, exports) {
|
|
1229
1251
|
|
|
1230
|
-
module.exports = require("@splunk/
|
|
1252
|
+
module.exports = require("@splunk/visualization-context/FeatureFlagContext");
|
|
1231
1253
|
|
|
1232
1254
|
/***/ }),
|
|
1233
1255
|
|
|
1234
|
-
/***/
|
|
1256
|
+
/***/ 22:
|
|
1235
1257
|
/***/ (function(module, exports) {
|
|
1236
1258
|
|
|
1237
|
-
module.exports = require("@
|
|
1259
|
+
module.exports = require("@babel/runtime/helpers/createClass");
|
|
1238
1260
|
|
|
1239
1261
|
/***/ }),
|
|
1240
1262
|
|
|
1241
|
-
/***/
|
|
1263
|
+
/***/ 25:
|
|
1242
1264
|
/***/ (function(module, exports) {
|
|
1243
1265
|
|
|
1244
1266
|
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
1245
1267
|
|
|
1246
1268
|
/***/ }),
|
|
1247
1269
|
|
|
1248
|
-
/***/
|
|
1270
|
+
/***/ 26:
|
|
1249
1271
|
/***/ (function(module, exports) {
|
|
1250
1272
|
|
|
1251
1273
|
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
1252
1274
|
|
|
1253
1275
|
/***/ }),
|
|
1254
1276
|
|
|
1255
|
-
/***/
|
|
1277
|
+
/***/ 27:
|
|
1256
1278
|
/***/ (function(module, exports) {
|
|
1257
1279
|
|
|
1258
1280
|
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
1259
1281
|
|
|
1260
1282
|
/***/ }),
|
|
1261
1283
|
|
|
1262
|
-
/***/
|
|
1284
|
+
/***/ 29:
|
|
1285
|
+
/***/ (function(module, exports) {
|
|
1286
|
+
|
|
1287
|
+
module.exports = require("@splunk/visualization-encoding/Options");
|
|
1288
|
+
|
|
1289
|
+
/***/ }),
|
|
1290
|
+
|
|
1291
|
+
/***/ 3:
|
|
1292
|
+
/***/ (function(module, exports) {
|
|
1293
|
+
|
|
1294
|
+
module.exports = require("lodash");
|
|
1295
|
+
|
|
1296
|
+
/***/ }),
|
|
1297
|
+
|
|
1298
|
+
/***/ 31:
|
|
1263
1299
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1264
1300
|
|
|
1265
1301
|
"use strict";
|
|
@@ -1270,15 +1306,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1270
1306
|
});
|
|
1271
1307
|
exports.shouldShowIconPlaceholder = void 0;
|
|
1272
1308
|
|
|
1273
|
-
var React = __webpack_require__(
|
|
1309
|
+
var React = __webpack_require__(0);
|
|
1274
1310
|
|
|
1275
|
-
var T = __webpack_require__(
|
|
1311
|
+
var T = __webpack_require__(1);
|
|
1276
1312
|
|
|
1277
1313
|
var lodash_1 = __webpack_require__(3);
|
|
1278
1314
|
|
|
1279
1315
|
var i18n_1 = __webpack_require__(2);
|
|
1280
1316
|
|
|
1281
|
-
var Message_1 = __webpack_require__(
|
|
1317
|
+
var Message_1 = __webpack_require__(9);
|
|
1282
1318
|
|
|
1283
1319
|
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
1284
1320
|
/**
|
|
@@ -1351,24 +1387,31 @@ exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
|
1351
1387
|
|
|
1352
1388
|
/***/ }),
|
|
1353
1389
|
|
|
1354
|
-
/***/
|
|
1390
|
+
/***/ 32:
|
|
1391
|
+
/***/ (function(module, exports) {
|
|
1392
|
+
|
|
1393
|
+
module.exports = require("@splunk/ui-utils/id");
|
|
1394
|
+
|
|
1395
|
+
/***/ }),
|
|
1396
|
+
|
|
1397
|
+
/***/ 33:
|
|
1355
1398
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1356
1399
|
|
|
1357
1400
|
"use strict";
|
|
1358
1401
|
|
|
1359
1402
|
|
|
1360
|
-
var _defineProperty = __webpack_require__(
|
|
1403
|
+
var _defineProperty = __webpack_require__(8);
|
|
1361
1404
|
|
|
1362
1405
|
Object.defineProperty(exports, "__esModule", {
|
|
1363
1406
|
value: true
|
|
1364
1407
|
});
|
|
1365
1408
|
exports.getSortingParams = exports.SortParamsPropTypes = void 0;
|
|
1366
1409
|
|
|
1367
|
-
var T = __webpack_require__(
|
|
1410
|
+
var T = __webpack_require__(1);
|
|
1368
1411
|
|
|
1369
1412
|
var lodash_1 = __webpack_require__(3);
|
|
1370
1413
|
|
|
1371
|
-
var DataSource_1 = __webpack_require__(
|
|
1414
|
+
var DataSource_1 = __webpack_require__(43);
|
|
1372
1415
|
|
|
1373
1416
|
exports.SortParamsPropTypes = T.shape({
|
|
1374
1417
|
currentSortKey: T.string,
|
|
@@ -1388,7 +1431,7 @@ var getSortingParams = function getSortingParams(_ref) {
|
|
|
1388
1431
|
};
|
|
1389
1432
|
var onSort;
|
|
1390
1433
|
|
|
1391
|
-
if (
|
|
1434
|
+
if (typeof onRequestParamsChange === 'function') {
|
|
1392
1435
|
if (requestParams && lodash_1.has(requestParams, 'sort')) {
|
|
1393
1436
|
currentSortKey = Object.keys(requestParams.sort).shift();
|
|
1394
1437
|
currentSortDir = requestParams.sort[currentSortKey];
|
|
@@ -1422,7 +1465,7 @@ exports.getSortingParams = getSortingParams;
|
|
|
1422
1465
|
|
|
1423
1466
|
/***/ }),
|
|
1424
1467
|
|
|
1425
|
-
/***/
|
|
1468
|
+
/***/ 34:
|
|
1426
1469
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1427
1470
|
|
|
1428
1471
|
"use strict";
|
|
@@ -1433,7 +1476,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1433
1476
|
});
|
|
1434
1477
|
exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
|
|
1435
1478
|
|
|
1436
|
-
var T = __webpack_require__(
|
|
1479
|
+
var T = __webpack_require__(1);
|
|
1437
1480
|
|
|
1438
1481
|
var lodash_1 = __webpack_require__(3);
|
|
1439
1482
|
|
|
@@ -1453,7 +1496,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
1453
1496
|
var count = requestParams && requestParams.count;
|
|
1454
1497
|
var totalPages = typeof count === 'number' && count > 0 ? Math.ceil(totalCount / count) : 0;
|
|
1455
1498
|
var current = typeof count === 'number' && count > 0 ? Math.floor(offset / count) + 1 : 0;
|
|
1456
|
-
var isPaging = totalPages > 1 &&
|
|
1499
|
+
var isPaging = totalPages > 1 && typeof onRequestParamsChange === 'function';
|
|
1457
1500
|
|
|
1458
1501
|
var onChangeHandler = function onChangeHandler(e, _ref2) {
|
|
1459
1502
|
var page = _ref2.page,
|
|
@@ -1479,7 +1522,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
1479
1522
|
isPaging: isPaging,
|
|
1480
1523
|
current: current,
|
|
1481
1524
|
totalPages: totalPages,
|
|
1482
|
-
onChange:
|
|
1525
|
+
onChange: typeof onRequestParamsChange === 'function' ? onChangeHandler : lodash_1.noop
|
|
1483
1526
|
};
|
|
1484
1527
|
};
|
|
1485
1528
|
|
|
@@ -1487,14 +1530,7 @@ exports.getPaginationParams = getPaginationParams;
|
|
|
1487
1530
|
|
|
1488
1531
|
/***/ }),
|
|
1489
1532
|
|
|
1490
|
-
/***/
|
|
1491
|
-
/***/ (function(module, exports) {
|
|
1492
|
-
|
|
1493
|
-
module.exports = require("lodash");
|
|
1494
|
-
|
|
1495
|
-
/***/ }),
|
|
1496
|
-
|
|
1497
|
-
/***/ 31:
|
|
1533
|
+
/***/ 35:
|
|
1498
1534
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1499
1535
|
|
|
1500
1536
|
"use strict";
|
|
@@ -1523,58 +1559,67 @@ var VizCategory;
|
|
|
1523
1559
|
|
|
1524
1560
|
/***/ }),
|
|
1525
1561
|
|
|
1526
|
-
/***/
|
|
1562
|
+
/***/ 36:
|
|
1527
1563
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1528
1564
|
|
|
1529
1565
|
"use strict";
|
|
1530
1566
|
|
|
1531
1567
|
|
|
1568
|
+
var _slicedToArray = __webpack_require__(17);
|
|
1569
|
+
|
|
1532
1570
|
Object.defineProperty(exports, "__esModule", {
|
|
1533
1571
|
value: true
|
|
1534
1572
|
});
|
|
1535
1573
|
|
|
1536
|
-
var React = __webpack_require__(
|
|
1574
|
+
var React = __webpack_require__(0);
|
|
1537
1575
|
|
|
1538
1576
|
var lodash_1 = __webpack_require__(3);
|
|
1539
1577
|
|
|
1540
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
1578
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(37);
|
|
1579
|
+
|
|
1580
|
+
var Options_1 = __webpack_require__(29);
|
|
1541
1581
|
|
|
1542
|
-
var
|
|
1582
|
+
var SanitizeProps_1 = __webpack_require__(38);
|
|
1543
1583
|
|
|
1544
|
-
var
|
|
1584
|
+
var TimezoneContext_1 = __webpack_require__(25);
|
|
1545
1585
|
|
|
1546
|
-
var
|
|
1586
|
+
var moment_1 = __webpack_require__(39);
|
|
1547
1587
|
|
|
1548
|
-
var
|
|
1588
|
+
var FeatureFlagContext_1 = __webpack_require__(20);
|
|
1549
1589
|
|
|
1550
1590
|
var styled_components_1 = __webpack_require__(4);
|
|
1551
1591
|
|
|
1552
|
-
var hocUtils_1 = __webpack_require__(
|
|
1592
|
+
var hocUtils_1 = __webpack_require__(26);
|
|
1593
|
+
|
|
1594
|
+
var JSONSchemaUtils_1 = __webpack_require__(27);
|
|
1595
|
+
|
|
1596
|
+
var async_dynamic_options_evaluator_1 = __webpack_require__(40);
|
|
1553
1597
|
|
|
1554
|
-
var
|
|
1598
|
+
var id_1 = __webpack_require__(32);
|
|
1555
1599
|
|
|
1556
|
-
var SplunkVisualization_1 = __webpack_require__(
|
|
1600
|
+
var SplunkVisualization_1 = __webpack_require__(41);
|
|
1557
1601
|
|
|
1558
1602
|
var VizBehavior_1 = __webpack_require__(6);
|
|
1559
1603
|
|
|
1560
|
-
var getSorting_1 = __webpack_require__(
|
|
1604
|
+
var getSorting_1 = __webpack_require__(33);
|
|
1561
1605
|
|
|
1562
|
-
var getPagination_1 = __webpack_require__(
|
|
1606
|
+
var getPagination_1 = __webpack_require__(34);
|
|
1563
1607
|
|
|
1564
|
-
var useDeepMemo_1 = __webpack_require__(
|
|
1608
|
+
var useDeepMemo_1 = __webpack_require__(44);
|
|
1565
1609
|
|
|
1566
|
-
var MissingPropsMessage_1 = __webpack_require__(
|
|
1610
|
+
var MissingPropsMessage_1 = __webpack_require__(45);
|
|
1567
1611
|
|
|
1568
|
-
var withEditModeCover_1 = __webpack_require__(
|
|
1612
|
+
var withEditModeCover_1 = __webpack_require__(46);
|
|
1569
1613
|
|
|
1570
|
-
var withPlaceholder_1 = __webpack_require__(
|
|
1614
|
+
var withPlaceholder_1 = __webpack_require__(47);
|
|
1615
|
+
|
|
1616
|
+
var UUID = id_1.createGUID();
|
|
1571
1617
|
/**
|
|
1572
1618
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
1573
1619
|
* @param {DashboardVizOpts} opts
|
|
1574
1620
|
* @returns {HOC}
|
|
1575
1621
|
*/
|
|
1576
1622
|
|
|
1577
|
-
|
|
1578
1623
|
var withDashboardViz = function withDashboardViz(opts) {
|
|
1579
1624
|
var ReactViz = opts.ReactViz,
|
|
1580
1625
|
vizConfig = opts.vizConfig,
|
|
@@ -1587,6 +1632,8 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1587
1632
|
var defaultOptions = JSONSchemaUtils_1.pickFieldFromJSONSchema(vizConfig.optionsSchema, 'default');
|
|
1588
1633
|
|
|
1589
1634
|
var DashboardViz = function DashboardViz(props) {
|
|
1635
|
+
var _a;
|
|
1636
|
+
|
|
1590
1637
|
var mode = props.mode,
|
|
1591
1638
|
hasEventHandlers = props.hasEventHandlers,
|
|
1592
1639
|
dataSources = props.dataSources,
|
|
@@ -1634,38 +1681,97 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1634
1681
|
|
|
1635
1682
|
var evaluatedOptions = {}; // evaluatedOptions need to be initialized as an empty object
|
|
1636
1683
|
|
|
1684
|
+
var _React$useState = React.useState({}),
|
|
1685
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
1686
|
+
evaluatedOptionsAsync = _React$useState2[0],
|
|
1687
|
+
setEvaluatedOptionsAsync = _React$useState2[1]; // evaluatedOptions need to be initialized as an empty object
|
|
1688
|
+
|
|
1689
|
+
|
|
1690
|
+
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
1691
|
+
|
|
1692
|
+
var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(UUID)),
|
|
1693
|
+
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
1694
|
+
visualizationID = _React$useState4[0];
|
|
1695
|
+
|
|
1696
|
+
var _React$useState5 = React.useState(Boolean(featureFlagContext && featureFlagContext.visualizations_useWebWorkersForDSL && typeof Worker !== 'undefined')),
|
|
1697
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
1698
|
+
useAsyncEvaluatedOptions = _React$useState6[0],
|
|
1699
|
+
setUseAsyncEvaluatedOptions = _React$useState6[1];
|
|
1700
|
+
|
|
1637
1701
|
evaluatedOptions = useDeepMemo_1.useDeepMemo(function () {
|
|
1638
1702
|
try {
|
|
1639
|
-
|
|
1640
|
-
|
|
1641
|
-
|
|
1642
|
-
|
|
1703
|
+
if (useAsyncEvaluatedOptions) {
|
|
1704
|
+
var optionsToEvaluate = {
|
|
1705
|
+
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
1706
|
+
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
1707
|
+
};
|
|
1708
|
+
var asyncDynamicOptionsEvaluatorParams = {
|
|
1709
|
+
visualizationID: visualizationID,
|
|
1710
|
+
props: props,
|
|
1711
|
+
options: optionsToEvaluate,
|
|
1712
|
+
dataSources: dataSources,
|
|
1713
|
+
theme: vizConfig.themes
|
|
1714
|
+
};
|
|
1715
|
+
async_dynamic_options_evaluator_1.default.evaluate(asyncDynamicOptionsEvaluatorParams).then(function (results) {
|
|
1716
|
+
setEvaluatedOptionsAsync(results.results);
|
|
1717
|
+
}).catch(function (e) {
|
|
1718
|
+
// eslint-disable-next-line no-console
|
|
1719
|
+
console.error("unexpected error evaluating options - async: ".concat(e.message));
|
|
1720
|
+
setUseAsyncEvaluatedOptions(false);
|
|
1721
|
+
});
|
|
1722
|
+
} else {
|
|
1723
|
+
return Options_1.Options.evaluate({
|
|
1724
|
+
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
1725
|
+
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
1726
|
+
}, dataSources, themeFunc);
|
|
1727
|
+
}
|
|
1643
1728
|
} catch (e) {
|
|
1644
1729
|
// eslint-disable-next-line no-console
|
|
1645
|
-
console.error("unexpected error evaluating options:
|
|
1730
|
+
console.error("unexpected error evaluating options: ".concat(e.message));
|
|
1646
1731
|
return {};
|
|
1647
1732
|
}
|
|
1648
|
-
|
|
1733
|
+
|
|
1734
|
+
return {};
|
|
1735
|
+
}, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone, useAsyncEvaluatedOptions]);
|
|
1736
|
+
var evaluatedOptionsToUse = !useAsyncEvaluatedOptions ? evaluatedOptions : evaluatedOptionsAsync; // trellis specific backgroundColor update for onComputedProps
|
|
1737
|
+
// 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
|
|
1738
|
+
// onComputedProps api should return back trellisBackgroundColor value for backgroundColor option to support coloring of sibling panels (for eg:- title/ description on UDF side)
|
|
1739
|
+
|
|
1740
|
+
var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
|
|
1741
|
+
var clonedEvaluatedOptions = lodash_1.cloneDeep(evaluatedOptionsToUse);
|
|
1742
|
+
|
|
1743
|
+
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) {
|
|
1744
|
+
clonedEvaluatedOptions.backgroundColor = clonedEvaluatedOptions === null || clonedEvaluatedOptions === void 0 ? void 0 : clonedEvaluatedOptions.trellisBackgroundColor;
|
|
1745
|
+
} // useEffect hook needs to be initialized before any early returns
|
|
1649
1746
|
// this is in accordance with the order of hook calls being the same on each render https://reactjs.org/docs/hooks-rules.html#explanation
|
|
1650
1747
|
|
|
1748
|
+
|
|
1749
|
+
React.useEffect(function () {
|
|
1750
|
+
onComputedProps(clonedEvaluatedOptions);
|
|
1751
|
+
});
|
|
1651
1752
|
React.useEffect(function () {
|
|
1652
|
-
|
|
1653
|
-
|
|
1753
|
+
return function () {
|
|
1754
|
+
if (useAsyncEvaluatedOptions) {
|
|
1755
|
+
async_dynamic_options_evaluator_1.default.reset(visualizationID);
|
|
1756
|
+
}
|
|
1757
|
+
}; // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1758
|
+
}, []); // present warning message if any required props are missing
|
|
1654
1759
|
|
|
1655
1760
|
var _vizConfig$requiredPr = vizConfig.requiredProps,
|
|
1656
1761
|
requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
|
|
1657
1762
|
supports = vizConfig.supports;
|
|
1658
|
-
var missing = MissingPropsMessage_1.missingKeys(requiredProps,
|
|
1659
|
-
|
|
1660
|
-
if (missing.length > 0 && supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER)
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
1664
|
-
|
|
1665
|
-
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1763
|
+
var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptionsToUse);
|
|
1764
|
+
|
|
1765
|
+
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
|
|
1766
|
+
) {
|
|
1767
|
+
return React.createElement(MissingPropsMessage_1.default, {
|
|
1768
|
+
"data-test": "missing-props-message",
|
|
1769
|
+
width: width,
|
|
1770
|
+
height: height,
|
|
1771
|
+
missingProps: missing,
|
|
1772
|
+
backgroundColor: bgColorFromTheme
|
|
1773
|
+
});
|
|
1774
|
+
} // events
|
|
1669
1775
|
|
|
1670
1776
|
|
|
1671
1777
|
var eventCallbackProps = {};
|
|
@@ -1682,7 +1788,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1682
1788
|
|
|
1683
1789
|
if (Array.isArray(payloadKeys) && payloadKeys.length) {
|
|
1684
1790
|
payloadKeys.forEach(function (p) {
|
|
1685
|
-
payload[p] =
|
|
1791
|
+
payload[p] = evaluatedOptionsToUse[p];
|
|
1686
1792
|
});
|
|
1687
1793
|
}
|
|
1688
1794
|
|
|
@@ -1701,7 +1807,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1701
1807
|
} // compute pure viz props which are not from options
|
|
1702
1808
|
|
|
1703
1809
|
|
|
1704
|
-
var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props),
|
|
1810
|
+
var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props), evaluatedOptionsToUse), eventCallbackProps), {
|
|
1705
1811
|
themeFunc: themeFunc
|
|
1706
1812
|
}));
|
|
1707
1813
|
/**
|
|
@@ -1721,7 +1827,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1721
1827
|
|
|
1722
1828
|
var dataSourceMetadata = {};
|
|
1723
1829
|
var OptionKey = 'paginateDataSourceKey';
|
|
1724
|
-
var paginateDataSourceKey = lodash_1.has(
|
|
1830
|
+
var paginateDataSourceKey = lodash_1.has(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
|
|
1725
1831
|
|
|
1726
1832
|
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && lodash_1.has(dataSources, paginateDataSourceKey)) {
|
|
1727
1833
|
var requestParams = lodash_1.get(dataSources, [paginateDataSourceKey, 'requestParams'], {});
|
|
@@ -1735,259 +1841,76 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1735
1841
|
requestParams: requestParams,
|
|
1736
1842
|
meta: meta,
|
|
1737
1843
|
onRequestParamsChange: handleRequestParamsChange
|
|
1738
|
-
});
|
|
1739
|
-
var paginatorParams = getPagination_1.getPaginationParams({
|
|
1740
|
-
requestParams: requestParams,
|
|
1741
|
-
meta: meta,
|
|
1742
|
-
onRequestParamsChange: handleRequestParamsChange
|
|
1743
|
-
});
|
|
1744
|
-
dataSourceMetadata = {
|
|
1745
|
-
sortParams: sortParams,
|
|
1746
|
-
paginatorParams: paginatorParams
|
|
1747
|
-
};
|
|
1748
|
-
}
|
|
1749
|
-
|
|
1750
|
-
return React.createElement(SanitizedReactViz, Object.assign({
|
|
1751
|
-
mode: mode,
|
|
1752
|
-
width: width,
|
|
1753
|
-
height: height
|
|
1754
|
-
}, evaluatedOptions, computedVizProps, eventCallbackProps, dataSourceMetadata));
|
|
1755
|
-
};
|
|
1756
|
-
|
|
1757
|
-
DashboardViz.propTypes = Object.assign(Object.assign({}, SplunkVisualization_1.default.propTypes), ReactViz.propTypes);
|
|
1758
|
-
DashboardViz.defaultProps = Object.assign(Object.assign(Object.assign({}, SplunkVisualization_1.default.defaultProps), ReactViz.defaultProps), {
|
|
1759
|
-
// using withTheme requires component to receive theme prop. In case the consumer did not provide ThemeProvider, a default empty object will prevent warnings.
|
|
1760
|
-
theme: {}
|
|
1761
|
-
}); // attach viz config
|
|
1762
|
-
|
|
1763
|
-
DashboardViz.config = vizConfig; // @ts-ignore: TODO fix sc upgrade TS issues
|
|
1764
|
-
|
|
1765
|
-
return styled_components_1.withTheme(withPlaceholder_1.default(withEditModeCover_1.default(DashboardViz, disableEditModeCover), useIconPlaceholder));
|
|
1766
|
-
};
|
|
1767
|
-
|
|
1768
|
-
exports.default = withDashboardViz;
|
|
1769
|
-
|
|
1770
|
-
/***/ }),
|
|
1771
|
-
|
|
1772
|
-
/***/ 33:
|
|
1773
|
-
/***/ (function(module, exports) {
|
|
1774
|
-
|
|
1775
|
-
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
1776
|
-
|
|
1777
|
-
/***/ }),
|
|
1778
|
-
|
|
1779
|
-
/***/ 34:
|
|
1780
|
-
/***/ (function(module, exports) {
|
|
1781
|
-
|
|
1782
|
-
module.exports = require("@splunk/visualization-encoding/Options");
|
|
1783
|
-
|
|
1784
|
-
/***/ }),
|
|
1785
|
-
|
|
1786
|
-
/***/ 35:
|
|
1787
|
-
/***/ (function(module, exports) {
|
|
1788
|
-
|
|
1789
|
-
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
1790
|
-
|
|
1791
|
-
/***/ }),
|
|
1792
|
-
|
|
1793
|
-
/***/ 36:
|
|
1794
|
-
/***/ (function(module, exports) {
|
|
1795
|
-
|
|
1796
|
-
module.exports = require("@splunk/moment");
|
|
1797
|
-
|
|
1798
|
-
/***/ }),
|
|
1799
|
-
|
|
1800
|
-
/***/ 37:
|
|
1801
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
1802
|
-
|
|
1803
|
-
"use strict";
|
|
1804
|
-
|
|
1805
|
-
|
|
1806
|
-
var _classCallCheck = __webpack_require__(11);
|
|
1807
|
-
|
|
1808
|
-
Object.defineProperty(exports, "__esModule", {
|
|
1809
|
-
value: true
|
|
1810
|
-
});
|
|
1811
|
-
exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
|
|
1812
|
-
/* eslint-disable react/no-unused-prop-types,react/prefer-stateless-function */
|
|
1813
|
-
|
|
1814
|
-
var T = __webpack_require__(0);
|
|
1815
|
-
|
|
1816
|
-
var lodash_1 = __webpack_require__(3);
|
|
1817
|
-
|
|
1818
|
-
var VizActionHandler_1 = __webpack_require__(38); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
1819
|
-
|
|
1820
|
-
|
|
1821
|
-
exports.INITIAL_WIDTH = 250;
|
|
1822
|
-
exports.INITIAL_HEIGHT = 250;
|
|
1823
|
-
/**
|
|
1824
|
-
* A Splunk visualization
|
|
1825
|
-
*/
|
|
1826
|
-
|
|
1827
|
-
var SplunkVisualization = function SplunkVisualization() {
|
|
1828
|
-
_classCallCheck(this, SplunkVisualization);
|
|
1829
|
-
};
|
|
1830
|
-
|
|
1831
|
-
SplunkVisualization.propTypes = {
|
|
1832
|
-
/**
|
|
1833
|
-
* display mode
|
|
1834
|
-
*/
|
|
1835
|
-
mode: T.oneOf(['view', 'edit', 'export']).isRequired,
|
|
1836
|
-
|
|
1837
|
-
/**
|
|
1838
|
-
* width in pixel or string, defaults to 100%
|
|
1839
|
-
*/
|
|
1840
|
-
width: T.oneOfType([T.string, T.number]).isRequired,
|
|
1841
|
-
|
|
1842
|
-
/**
|
|
1843
|
-
* height in pixel or string
|
|
1844
|
-
*/
|
|
1845
|
-
height: T.oneOfType([T.string, T.number]).isRequired,
|
|
1846
|
-
|
|
1847
|
-
/**
|
|
1848
|
-
* visualization context used for dynamic option evaluation
|
|
1849
|
-
*/
|
|
1850
|
-
context: T.object,
|
|
1851
|
-
|
|
1852
|
-
/**
|
|
1853
|
-
* visualization formatting options
|
|
1854
|
-
*/
|
|
1855
|
-
options: T.object,
|
|
1856
|
-
|
|
1857
|
-
/**
|
|
1858
|
-
* A callback to update formatting options
|
|
1859
|
-
*/
|
|
1860
|
-
onOptionsChange: T.func,
|
|
1861
|
-
|
|
1862
|
-
/**
|
|
1863
|
-
* datasource state which include data and request params, object key indicate the datasource type.
|
|
1864
|
-
*/
|
|
1865
|
-
dataSources: T.objectOf(T.shape({
|
|
1866
|
-
/**
|
|
1867
|
-
* current request params
|
|
1868
|
-
*/
|
|
1869
|
-
requestParams: T.object,
|
|
1870
|
-
|
|
1871
|
-
/**
|
|
1872
|
-
* current dataset
|
|
1873
|
-
*/
|
|
1874
|
-
data: T.shape({
|
|
1875
|
-
fields: T.array,
|
|
1876
|
-
columns: T.array
|
|
1877
|
-
}),
|
|
1844
|
+
});
|
|
1845
|
+
var paginatorParams = getPagination_1.getPaginationParams({
|
|
1846
|
+
requestParams: requestParams,
|
|
1847
|
+
meta: meta,
|
|
1848
|
+
onRequestParamsChange: handleRequestParamsChange
|
|
1849
|
+
});
|
|
1850
|
+
dataSourceMetadata = {
|
|
1851
|
+
sortParams: sortParams,
|
|
1852
|
+
paginatorParams: paginatorParams
|
|
1853
|
+
};
|
|
1854
|
+
}
|
|
1878
1855
|
|
|
1879
|
-
|
|
1880
|
-
|
|
1881
|
-
|
|
1882
|
-
|
|
1883
|
-
|
|
1884
|
-
|
|
1885
|
-
}),
|
|
1856
|
+
return React.createElement(SanitizedReactViz, Object.assign({
|
|
1857
|
+
mode: mode,
|
|
1858
|
+
width: width,
|
|
1859
|
+
height: height
|
|
1860
|
+
}, evaluatedOptionsToUse, computedVizProps, eventCallbackProps, dataSourceMetadata));
|
|
1861
|
+
};
|
|
1886
1862
|
|
|
1887
|
-
|
|
1888
|
-
|
|
1889
|
-
|
|
1890
|
-
|
|
1891
|
-
})
|
|
1863
|
+
DashboardViz.propTypes = Object.assign(Object.assign({}, SplunkVisualization_1.default.propTypes), ReactViz.propTypes);
|
|
1864
|
+
DashboardViz.defaultProps = Object.assign(Object.assign(Object.assign({}, SplunkVisualization_1.default.defaultProps), ReactViz.defaultProps), {
|
|
1865
|
+
// using withTheme requires component to receive theme prop. In case the consumer did not provide ThemeProvider, a default empty object will prevent warnings.
|
|
1866
|
+
theme: {}
|
|
1867
|
+
}); // attach viz config
|
|
1892
1868
|
|
|
1893
|
-
|
|
1894
|
-
* A callback to trigger event
|
|
1895
|
-
*/
|
|
1896
|
-
onEventTrigger: T.func,
|
|
1869
|
+
DashboardViz.config = vizConfig; // @ts-ignore: TODO fix sc upgrade TS issues
|
|
1897
1870
|
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
*/
|
|
1901
|
-
hasEventHandlers: T.bool,
|
|
1871
|
+
return styled_components_1.withTheme(withPlaceholder_1.default(withEditModeCover_1.default(DashboardViz, disableEditModeCover), useIconPlaceholder));
|
|
1872
|
+
};
|
|
1902
1873
|
|
|
1903
|
-
|
|
1904
|
-
* A callback to communicate computed props to a consumer
|
|
1905
|
-
*/
|
|
1906
|
-
onComputedProps: T.func,
|
|
1874
|
+
exports.default = withDashboardViz;
|
|
1907
1875
|
|
|
1908
|
-
|
|
1909
|
-
* A callback to obtain visualization api
|
|
1910
|
-
*/
|
|
1911
|
-
vizActionHandlerRef: T.func,
|
|
1912
|
-
loading: T.bool,
|
|
1913
|
-
theme: T.object,
|
|
1876
|
+
/***/ }),
|
|
1914
1877
|
|
|
1915
|
-
|
|
1916
|
-
|
|
1917
|
-
*/
|
|
1918
|
-
onRequestParamsChange: T.func
|
|
1919
|
-
};
|
|
1920
|
-
/**
|
|
1921
|
-
*
|
|
1922
|
-
*/
|
|
1878
|
+
/***/ 37:
|
|
1879
|
+
/***/ (function(module, exports) {
|
|
1923
1880
|
|
|
1924
|
-
|
|
1925
|
-
// BaseVisualization in dashboard-visualizations uses 100% for width but 250 for height
|
|
1926
|
-
width: '100%',
|
|
1927
|
-
height: exports.INITIAL_HEIGHT,
|
|
1928
|
-
dataSources: {},
|
|
1929
|
-
onEventTrigger: function onEventTrigger() {
|
|
1930
|
-
return {};
|
|
1931
|
-
},
|
|
1932
|
-
mode: 'view',
|
|
1933
|
-
hasEventHandlers: false,
|
|
1934
|
-
options: {},
|
|
1935
|
-
context: {},
|
|
1936
|
-
onOptionsChange: function onOptionsChange() {
|
|
1937
|
-
return {};
|
|
1938
|
-
},
|
|
1939
|
-
vizActionHandlerRef: function vizActionHandlerRef() {
|
|
1940
|
-
return new VizActionHandler_1.DefaultVizActionHandler();
|
|
1941
|
-
},
|
|
1942
|
-
onComputedProps: function onComputedProps() {
|
|
1943
|
-
return {};
|
|
1944
|
-
},
|
|
1945
|
-
loading: false,
|
|
1946
|
-
onRequestParamsChange: lodash_1.noop
|
|
1947
|
-
};
|
|
1948
|
-
exports.default = SplunkVisualization;
|
|
1881
|
+
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
1949
1882
|
|
|
1950
1883
|
/***/ }),
|
|
1951
1884
|
|
|
1952
1885
|
/***/ 38:
|
|
1953
|
-
/***/ (function(module, exports
|
|
1886
|
+
/***/ (function(module, exports) {
|
|
1954
1887
|
|
|
1955
|
-
|
|
1888
|
+
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
1956
1889
|
|
|
1890
|
+
/***/ }),
|
|
1957
1891
|
|
|
1958
|
-
|
|
1892
|
+
/***/ 39:
|
|
1893
|
+
/***/ (function(module, exports) {
|
|
1959
1894
|
|
|
1960
|
-
|
|
1895
|
+
module.exports = require("@splunk/moment");
|
|
1961
1896
|
|
|
1962
|
-
|
|
1963
|
-
value: true
|
|
1964
|
-
});
|
|
1965
|
-
exports.DefaultVizActionHandler = void 0;
|
|
1897
|
+
/***/ }),
|
|
1966
1898
|
|
|
1967
|
-
|
|
1968
|
-
|
|
1969
|
-
_classCallCheck(this, DefaultVizActionHandler);
|
|
1970
|
-
}
|
|
1899
|
+
/***/ 4:
|
|
1900
|
+
/***/ (function(module, exports) {
|
|
1971
1901
|
|
|
1972
|
-
|
|
1973
|
-
key: "focus",
|
|
1974
|
-
value: function focus() {// noop
|
|
1975
|
-
}
|
|
1976
|
-
}, {
|
|
1977
|
-
key: "snapshot",
|
|
1978
|
-
value: function snapshot() {
|
|
1979
|
-
return null; // noop
|
|
1980
|
-
}
|
|
1981
|
-
}]);
|
|
1902
|
+
module.exports = require("styled-components");
|
|
1982
1903
|
|
|
1983
|
-
|
|
1984
|
-
}();
|
|
1904
|
+
/***/ }),
|
|
1985
1905
|
|
|
1986
|
-
|
|
1906
|
+
/***/ 40:
|
|
1907
|
+
/***/ (function(module, exports) {
|
|
1908
|
+
|
|
1909
|
+
module.exports = require("@splunk/async-dynamic-options-evaluator");
|
|
1987
1910
|
|
|
1988
1911
|
/***/ }),
|
|
1989
1912
|
|
|
1990
|
-
/***/
|
|
1913
|
+
/***/ 406:
|
|
1991
1914
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1992
1915
|
|
|
1993
1916
|
"use strict";
|
|
@@ -2012,31 +1935,31 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2012
1935
|
exports.PureMap = exports.config = exports.themes = exports.useIconPlaceholder = exports.computeVizProps = void 0;
|
|
2013
1936
|
/* eslint-disable no-sequences */
|
|
2014
1937
|
|
|
2015
|
-
var React = __webpack_require__(
|
|
1938
|
+
var React = __webpack_require__(0);
|
|
2016
1939
|
|
|
2017
1940
|
var colorUtils_1 = __webpack_require__(12);
|
|
2018
1941
|
|
|
2019
|
-
var dsl_1 = __webpack_require__(
|
|
1942
|
+
var dsl_1 = __webpack_require__(105);
|
|
2020
1943
|
|
|
2021
|
-
var hocUtils_1 = __webpack_require__(
|
|
1944
|
+
var hocUtils_1 = __webpack_require__(26);
|
|
2022
1945
|
|
|
2023
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
1946
|
+
var JSONSchemaUtils_1 = __webpack_require__(27);
|
|
2024
1947
|
|
|
2025
|
-
var PureMap_1 = __webpack_require__(
|
|
1948
|
+
var PureMap_1 = __webpack_require__(407);
|
|
2026
1949
|
|
|
2027
1950
|
exports.PureMap = PureMap_1.default;
|
|
2028
1951
|
|
|
2029
|
-
var config_1 = __webpack_require__(
|
|
1952
|
+
var config_1 = __webpack_require__(417);
|
|
2030
1953
|
|
|
2031
1954
|
exports.config = config_1.default;
|
|
2032
1955
|
|
|
2033
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
1956
|
+
var withDashboardViz_1 = __webpack_require__(36);
|
|
2034
1957
|
|
|
2035
|
-
var mapUtils_1 = __webpack_require__(
|
|
1958
|
+
var mapUtils_1 = __webpack_require__(418);
|
|
2036
1959
|
|
|
2037
|
-
var BubbleLayer_1 = __webpack_require__(
|
|
1960
|
+
var BubbleLayer_1 = __webpack_require__(130);
|
|
2038
1961
|
|
|
2039
|
-
var dataUtils_1 = __webpack_require__(
|
|
1962
|
+
var dataUtils_1 = __webpack_require__(120);
|
|
2040
1963
|
|
|
2041
1964
|
var formatLayer = function formatLayer(l, dataFields, dataSourceData, transformedData) {
|
|
2042
1965
|
// add key `geobin` to the layer object if the data is returned from geostats commands
|
|
@@ -2173,7 +2096,7 @@ var withoutInternalFields = function withoutInternalFields(Viz) {
|
|
|
2173
2096
|
var indicesToRemove = new Set(fields.reduce(function (arr, e, i) {
|
|
2174
2097
|
var field = typeof e === 'string' ? e : e.name.toString();
|
|
2175
2098
|
|
|
2176
|
-
if (field.startsWith('_') && !field.startsWith(BubbleLayer_1.GEO_BOUND_PREFIX)) {
|
|
2099
|
+
if (field.startsWith('_') && !field.startsWith(BubbleLayer_1.GEO_BOUND_PREFIX) && !BubbleLayer_1.GEO_LAT_AND_LONG_FIELD.includes(field)) {
|
|
2177
2100
|
arr.push(i);
|
|
2178
2101
|
}
|
|
2179
2102
|
|
|
@@ -2252,56 +2175,42 @@ exports.default = Map;
|
|
|
2252
2175
|
|
|
2253
2176
|
/***/ }),
|
|
2254
2177
|
|
|
2255
|
-
/***/
|
|
2256
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
2257
|
-
|
|
2258
|
-
"use strict";
|
|
2259
|
-
|
|
2260
|
-
|
|
2261
|
-
Object.defineProperty(exports, "__esModule", {
|
|
2262
|
-
value: true
|
|
2263
|
-
});
|
|
2264
|
-
exports.validSortDirs = void 0;
|
|
2265
|
-
exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
2266
|
-
|
|
2267
|
-
/***/ }),
|
|
2268
|
-
|
|
2269
|
-
/***/ 390:
|
|
2178
|
+
/***/ 407:
|
|
2270
2179
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2271
2180
|
|
|
2272
2181
|
"use strict";
|
|
2273
2182
|
|
|
2274
2183
|
|
|
2275
|
-
var _slicedToArray = __webpack_require__(
|
|
2184
|
+
var _slicedToArray = __webpack_require__(17);
|
|
2276
2185
|
|
|
2277
2186
|
Object.defineProperty(exports, "__esModule", {
|
|
2278
2187
|
value: true
|
|
2279
2188
|
});
|
|
2280
2189
|
exports.isLatLng = exports.formatColor = exports.DEFAULT_ZOOM = exports.DEFAULT_SHOW_BASELAYER = exports.DEFAULT_SHOW_ZOOM_CONTROLS = exports.DEFAULT_SHOW_SCALE = exports.DEFAULT_SCALE_UNIT = exports.DEFAULT_CONTROL_FOREGROUND_COLOR = exports.DEFAULT_CONTROL_BACKGROUND_COLOR = exports.DEFAULT_CENTER = void 0;
|
|
2281
2190
|
|
|
2282
|
-
var React = __webpack_require__(
|
|
2191
|
+
var React = __webpack_require__(0);
|
|
2283
2192
|
|
|
2284
2193
|
var lodash_1 = __webpack_require__(3);
|
|
2285
2194
|
|
|
2286
|
-
var react_1 = __webpack_require__(
|
|
2195
|
+
var react_1 = __webpack_require__(0);
|
|
2287
2196
|
|
|
2288
|
-
var T = __webpack_require__(
|
|
2197
|
+
var T = __webpack_require__(1);
|
|
2289
2198
|
|
|
2290
|
-
var chroma = __webpack_require__(
|
|
2199
|
+
var chroma = __webpack_require__(154);
|
|
2291
2200
|
|
|
2292
|
-
var maplibre_gl_1 = __webpack_require__(
|
|
2201
|
+
var maplibre_gl_1 = __webpack_require__(155);
|
|
2293
2202
|
|
|
2294
|
-
var MapContext_1 = __webpack_require__(
|
|
2203
|
+
var MapContext_1 = __webpack_require__(408);
|
|
2295
2204
|
|
|
2296
|
-
var PureMapContainer_1 = __webpack_require__(
|
|
2205
|
+
var PureMapContainer_1 = __webpack_require__(409);
|
|
2297
2206
|
|
|
2298
|
-
var MapUtils_1 = __webpack_require__(
|
|
2207
|
+
var MapUtils_1 = __webpack_require__(85);
|
|
2299
2208
|
|
|
2300
|
-
var ClusterLayer_1 = __webpack_require__(
|
|
2209
|
+
var ClusterLayer_1 = __webpack_require__(411);
|
|
2301
2210
|
|
|
2302
|
-
var ChoroplethLayer_1 = __webpack_require__(
|
|
2211
|
+
var ChoroplethLayer_1 = __webpack_require__(156);
|
|
2303
2212
|
|
|
2304
|
-
var LocalChoroplethLayer_1 = __webpack_require__(
|
|
2213
|
+
var LocalChoroplethLayer_1 = __webpack_require__(414);
|
|
2305
2214
|
|
|
2306
2215
|
exports.DEFAULT_CENTER = [0, 0];
|
|
2307
2216
|
exports.DEFAULT_CONTROL_BACKGROUND_COLOR = '#2b3033';
|
|
@@ -2652,14 +2561,14 @@ exports.default = PureMap;
|
|
|
2652
2561
|
|
|
2653
2562
|
/***/ }),
|
|
2654
2563
|
|
|
2655
|
-
/***/
|
|
2564
|
+
/***/ 408:
|
|
2656
2565
|
/***/ (function(module, exports) {
|
|
2657
2566
|
|
|
2658
2567
|
module.exports = require("@splunk/visualization-context/MapContext");
|
|
2659
2568
|
|
|
2660
2569
|
/***/ }),
|
|
2661
2570
|
|
|
2662
|
-
/***/
|
|
2571
|
+
/***/ 409:
|
|
2663
2572
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2664
2573
|
|
|
2665
2574
|
"use strict";
|
|
@@ -2673,9 +2582,9 @@ var styled_components_1 = __webpack_require__(4);
|
|
|
2673
2582
|
|
|
2674
2583
|
var lodash_1 = __webpack_require__(3);
|
|
2675
2584
|
|
|
2676
|
-
var style_1 = __webpack_require__(
|
|
2585
|
+
var style_1 = __webpack_require__(14);
|
|
2677
2586
|
|
|
2678
|
-
var maplibre_gl_css_1 = __webpack_require__(
|
|
2587
|
+
var maplibre_gl_css_1 = __webpack_require__(410);
|
|
2679
2588
|
|
|
2680
2589
|
var PureMapContainer = styled_components_1.default.div.withConfig({
|
|
2681
2590
|
displayName: "PureMapContainer",
|
|
@@ -2711,7 +2620,159 @@ exports.default = PureMapContainer;
|
|
|
2711
2620
|
|
|
2712
2621
|
/***/ }),
|
|
2713
2622
|
|
|
2714
|
-
/***/
|
|
2623
|
+
/***/ 41:
|
|
2624
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
2625
|
+
|
|
2626
|
+
"use strict";
|
|
2627
|
+
|
|
2628
|
+
|
|
2629
|
+
var _classCallCheck = __webpack_require__(11);
|
|
2630
|
+
|
|
2631
|
+
Object.defineProperty(exports, "__esModule", {
|
|
2632
|
+
value: true
|
|
2633
|
+
});
|
|
2634
|
+
exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
|
|
2635
|
+
/* eslint-disable react/no-unused-prop-types,react/prefer-stateless-function */
|
|
2636
|
+
|
|
2637
|
+
var T = __webpack_require__(1);
|
|
2638
|
+
|
|
2639
|
+
var lodash_1 = __webpack_require__(3);
|
|
2640
|
+
|
|
2641
|
+
var VizActionHandler_1 = __webpack_require__(42); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
2642
|
+
|
|
2643
|
+
|
|
2644
|
+
exports.INITIAL_WIDTH = 250;
|
|
2645
|
+
exports.INITIAL_HEIGHT = 250;
|
|
2646
|
+
/**
|
|
2647
|
+
* A Splunk visualization
|
|
2648
|
+
*/
|
|
2649
|
+
|
|
2650
|
+
var SplunkVisualization = function SplunkVisualization() {
|
|
2651
|
+
_classCallCheck(this, SplunkVisualization);
|
|
2652
|
+
};
|
|
2653
|
+
|
|
2654
|
+
SplunkVisualization.propTypes = {
|
|
2655
|
+
/**
|
|
2656
|
+
* display mode
|
|
2657
|
+
*/
|
|
2658
|
+
mode: T.oneOf(['view', 'edit', 'export']).isRequired,
|
|
2659
|
+
|
|
2660
|
+
/**
|
|
2661
|
+
* width in pixel or string, defaults to 100%
|
|
2662
|
+
*/
|
|
2663
|
+
width: T.oneOfType([T.string, T.number]).isRequired,
|
|
2664
|
+
|
|
2665
|
+
/**
|
|
2666
|
+
* height in pixel or string
|
|
2667
|
+
*/
|
|
2668
|
+
height: T.oneOfType([T.string, T.number]).isRequired,
|
|
2669
|
+
|
|
2670
|
+
/**
|
|
2671
|
+
* visualization context used for dynamic option evaluation
|
|
2672
|
+
*/
|
|
2673
|
+
context: T.object,
|
|
2674
|
+
|
|
2675
|
+
/**
|
|
2676
|
+
* visualization formatting options
|
|
2677
|
+
*/
|
|
2678
|
+
options: T.object,
|
|
2679
|
+
|
|
2680
|
+
/**
|
|
2681
|
+
* A callback to update formatting options
|
|
2682
|
+
*/
|
|
2683
|
+
onOptionsChange: T.func,
|
|
2684
|
+
|
|
2685
|
+
/**
|
|
2686
|
+
* datasource state which include data and request params, object key indicate the datasource type.
|
|
2687
|
+
*/
|
|
2688
|
+
dataSources: T.objectOf(T.shape({
|
|
2689
|
+
/**
|
|
2690
|
+
* current request params
|
|
2691
|
+
*/
|
|
2692
|
+
requestParams: T.object,
|
|
2693
|
+
|
|
2694
|
+
/**
|
|
2695
|
+
* current dataset
|
|
2696
|
+
*/
|
|
2697
|
+
data: T.shape({
|
|
2698
|
+
fields: T.array,
|
|
2699
|
+
columns: T.array
|
|
2700
|
+
}),
|
|
2701
|
+
|
|
2702
|
+
/**
|
|
2703
|
+
* error
|
|
2704
|
+
*/
|
|
2705
|
+
error: T.shape({
|
|
2706
|
+
level: T.string,
|
|
2707
|
+
message: T.string
|
|
2708
|
+
}),
|
|
2709
|
+
|
|
2710
|
+
/**
|
|
2711
|
+
* meta data that came with the dataset
|
|
2712
|
+
*/
|
|
2713
|
+
meta: T.object
|
|
2714
|
+
})),
|
|
2715
|
+
|
|
2716
|
+
/**
|
|
2717
|
+
* A callback to trigger event
|
|
2718
|
+
*/
|
|
2719
|
+
onEventTrigger: T.func,
|
|
2720
|
+
|
|
2721
|
+
/**
|
|
2722
|
+
* Inform viz if there are handlers listening to events
|
|
2723
|
+
*/
|
|
2724
|
+
hasEventHandlers: T.bool,
|
|
2725
|
+
|
|
2726
|
+
/**
|
|
2727
|
+
* A callback to communicate computed props to a consumer
|
|
2728
|
+
*/
|
|
2729
|
+
onComputedProps: T.func,
|
|
2730
|
+
|
|
2731
|
+
/**
|
|
2732
|
+
* A callback to obtain visualization api
|
|
2733
|
+
*/
|
|
2734
|
+
vizActionHandlerRef: T.func,
|
|
2735
|
+
loading: T.bool,
|
|
2736
|
+
theme: T.object,
|
|
2737
|
+
|
|
2738
|
+
/**
|
|
2739
|
+
* A callback to request new data with updated request params
|
|
2740
|
+
*/
|
|
2741
|
+
onRequestParamsChange: T.func
|
|
2742
|
+
};
|
|
2743
|
+
/**
|
|
2744
|
+
*
|
|
2745
|
+
*/
|
|
2746
|
+
|
|
2747
|
+
SplunkVisualization.defaultProps = {
|
|
2748
|
+
// BaseVisualization in dashboard-visualizations uses 100% for width but 250 for height
|
|
2749
|
+
width: '100%',
|
|
2750
|
+
height: exports.INITIAL_HEIGHT,
|
|
2751
|
+
dataSources: {},
|
|
2752
|
+
onEventTrigger: function onEventTrigger() {
|
|
2753
|
+
return {};
|
|
2754
|
+
},
|
|
2755
|
+
mode: 'view',
|
|
2756
|
+
hasEventHandlers: false,
|
|
2757
|
+
options: {},
|
|
2758
|
+
context: {},
|
|
2759
|
+
onOptionsChange: function onOptionsChange() {
|
|
2760
|
+
return {};
|
|
2761
|
+
},
|
|
2762
|
+
vizActionHandlerRef: function vizActionHandlerRef() {
|
|
2763
|
+
return new VizActionHandler_1.DefaultVizActionHandler();
|
|
2764
|
+
},
|
|
2765
|
+
onComputedProps: function onComputedProps() {
|
|
2766
|
+
return {};
|
|
2767
|
+
},
|
|
2768
|
+
loading: false,
|
|
2769
|
+
onRequestParamsChange: lodash_1.noop
|
|
2770
|
+
};
|
|
2771
|
+
exports.default = SplunkVisualization;
|
|
2772
|
+
|
|
2773
|
+
/***/ }),
|
|
2774
|
+
|
|
2775
|
+
/***/ 410:
|
|
2715
2776
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
2716
2777
|
|
|
2717
2778
|
"use strict";
|
|
@@ -2720,7 +2781,7 @@ __webpack_require__.r(__webpack_exports__);
|
|
|
2720
2781
|
|
|
2721
2782
|
/***/ }),
|
|
2722
2783
|
|
|
2723
|
-
/***/
|
|
2784
|
+
/***/ 411:
|
|
2724
2785
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2725
2786
|
|
|
2726
2787
|
"use strict";
|
|
@@ -2730,13 +2791,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2730
2791
|
value: true
|
|
2731
2792
|
});
|
|
2732
2793
|
|
|
2733
|
-
var React = __webpack_require__(
|
|
2794
|
+
var React = __webpack_require__(0);
|
|
2734
2795
|
|
|
2735
|
-
var BubbleLayer_1 = __webpack_require__(
|
|
2796
|
+
var BubbleLayer_1 = __webpack_require__(130);
|
|
2736
2797
|
|
|
2737
|
-
var MarkerLayer_1 = __webpack_require__(
|
|
2798
|
+
var MarkerLayer_1 = __webpack_require__(413);
|
|
2738
2799
|
|
|
2739
|
-
var MapUtils_1 = __webpack_require__(
|
|
2800
|
+
var MapUtils_1 = __webpack_require__(85);
|
|
2740
2801
|
|
|
2741
2802
|
var ClusterLayer = function ClusterLayer(_ref) {
|
|
2742
2803
|
var clusterLayer = _ref.clusterLayer,
|
|
@@ -2775,7 +2836,7 @@ exports.default = ClusterLayer;
|
|
|
2775
2836
|
|
|
2776
2837
|
/***/ }),
|
|
2777
2838
|
|
|
2778
|
-
/***/
|
|
2839
|
+
/***/ 412:
|
|
2779
2840
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2780
2841
|
|
|
2781
2842
|
"use strict";
|
|
@@ -2786,11 +2847,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2786
2847
|
});
|
|
2787
2848
|
exports.convertDegToDMS = void 0;
|
|
2788
2849
|
|
|
2789
|
-
var React = __webpack_require__(
|
|
2850
|
+
var React = __webpack_require__(0);
|
|
2790
2851
|
|
|
2791
2852
|
var styled_components_1 = __webpack_require__(4);
|
|
2792
2853
|
|
|
2793
|
-
var Popover_1 = __webpack_require__(
|
|
2854
|
+
var Popover_1 = __webpack_require__(89);
|
|
2794
2855
|
|
|
2795
2856
|
var i18n_1 = __webpack_require__(2);
|
|
2796
2857
|
|
|
@@ -2894,13 +2955,13 @@ exports.default = Tooltip;
|
|
|
2894
2955
|
|
|
2895
2956
|
/***/ }),
|
|
2896
2957
|
|
|
2897
|
-
/***/
|
|
2958
|
+
/***/ 413:
|
|
2898
2959
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2899
2960
|
|
|
2900
2961
|
"use strict";
|
|
2901
2962
|
|
|
2902
2963
|
|
|
2903
|
-
var _defineProperty = __webpack_require__(
|
|
2964
|
+
var _defineProperty = __webpack_require__(8);
|
|
2904
2965
|
|
|
2905
2966
|
var __rest = this && this.__rest || function (s, e) {
|
|
2906
2967
|
var t = {};
|
|
@@ -2922,15 +2983,15 @@ exports.generateMarkerWrapperProps = exports.MarkerIcon = void 0;
|
|
|
2922
2983
|
|
|
2923
2984
|
var styled_components_1 = __webpack_require__(4);
|
|
2924
2985
|
|
|
2925
|
-
var React = __webpack_require__(
|
|
2986
|
+
var React = __webpack_require__(0);
|
|
2926
2987
|
|
|
2927
2988
|
var colorUtils_1 = __webpack_require__(12);
|
|
2928
2989
|
|
|
2929
2990
|
var lodash_1 = __webpack_require__(3);
|
|
2930
2991
|
|
|
2931
|
-
var MapUtils_1 = __webpack_require__(
|
|
2992
|
+
var MapUtils_1 = __webpack_require__(85);
|
|
2932
2993
|
|
|
2933
|
-
var MarkerWrapper_1 = __webpack_require__(
|
|
2994
|
+
var MarkerWrapper_1 = __webpack_require__(131);
|
|
2934
2995
|
|
|
2935
2996
|
var MarkerIcon = function MarkerIcon(_a) {
|
|
2936
2997
|
var theme = _a.theme,
|
|
@@ -3059,29 +3120,29 @@ exports.default = MarkerLayer;
|
|
|
3059
3120
|
|
|
3060
3121
|
/***/ }),
|
|
3061
3122
|
|
|
3062
|
-
/***/
|
|
3123
|
+
/***/ 414:
|
|
3063
3124
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3064
3125
|
|
|
3065
3126
|
"use strict";
|
|
3066
3127
|
|
|
3067
3128
|
|
|
3068
|
-
var _slicedToArray = __webpack_require__(
|
|
3129
|
+
var _slicedToArray = __webpack_require__(17);
|
|
3069
3130
|
|
|
3070
3131
|
Object.defineProperty(exports, "__esModule", {
|
|
3071
3132
|
value: true
|
|
3072
3133
|
});
|
|
3073
3134
|
|
|
3074
|
-
var React = __webpack_require__(
|
|
3135
|
+
var React = __webpack_require__(0);
|
|
3075
3136
|
|
|
3076
|
-
var Message_1 = __webpack_require__(
|
|
3137
|
+
var Message_1 = __webpack_require__(9);
|
|
3077
3138
|
|
|
3078
|
-
var GeoRegistry_1 = __webpack_require__(
|
|
3139
|
+
var GeoRegistry_1 = __webpack_require__(415);
|
|
3079
3140
|
|
|
3080
|
-
var GeoJsonProvider_1 = __webpack_require__(
|
|
3141
|
+
var GeoJsonProvider_1 = __webpack_require__(416);
|
|
3081
3142
|
|
|
3082
|
-
var MapUtils_1 = __webpack_require__(
|
|
3143
|
+
var MapUtils_1 = __webpack_require__(85);
|
|
3083
3144
|
|
|
3084
|
-
var ChoroplethLayer_1 = __webpack_require__(
|
|
3145
|
+
var ChoroplethLayer_1 = __webpack_require__(156);
|
|
3085
3146
|
|
|
3086
3147
|
var LocalChoroplethLayer = function LocalChoroplethLayer(props) {
|
|
3087
3148
|
var _a, _b;
|
|
@@ -3271,74 +3332,21 @@ exports.default = LocalChoroplethLayer;
|
|
|
3271
3332
|
|
|
3272
3333
|
/***/ }),
|
|
3273
3334
|
|
|
3274
|
-
/***/
|
|
3335
|
+
/***/ 415:
|
|
3275
3336
|
/***/ (function(module, exports) {
|
|
3276
3337
|
|
|
3277
3338
|
module.exports = require("@splunk/visualization-context/GeoRegistry");
|
|
3278
3339
|
|
|
3279
3340
|
/***/ }),
|
|
3280
3341
|
|
|
3281
|
-
/***/
|
|
3342
|
+
/***/ 416:
|
|
3282
3343
|
/***/ (function(module, exports) {
|
|
3283
3344
|
|
|
3284
3345
|
module.exports = require("@splunk/visualization-context/GeoJsonProvider");
|
|
3285
3346
|
|
|
3286
3347
|
/***/ }),
|
|
3287
3348
|
|
|
3288
|
-
/***/
|
|
3289
|
-
/***/ (function(module, exports) {
|
|
3290
|
-
|
|
3291
|
-
module.exports = require("styled-components");
|
|
3292
|
-
|
|
3293
|
-
/***/ }),
|
|
3294
|
-
|
|
3295
|
-
/***/ 40:
|
|
3296
|
-
/***/ (function(module, exports, __webpack_require__) {
|
|
3297
|
-
|
|
3298
|
-
"use strict";
|
|
3299
|
-
|
|
3300
|
-
|
|
3301
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3302
|
-
value: true
|
|
3303
|
-
});
|
|
3304
|
-
exports.useDeepMemo = void 0;
|
|
3305
|
-
|
|
3306
|
-
var react_1 = __webpack_require__(1);
|
|
3307
|
-
|
|
3308
|
-
var lodash_1 = __webpack_require__(3);
|
|
3309
|
-
/**
|
|
3310
|
-
* This hook evaluates and stores the result of a passed function and only
|
|
3311
|
-
* re-evaluates the function when passed dependencies change.
|
|
3312
|
-
*
|
|
3313
|
-
* It is different from the internal React useMemo in the following aspects:
|
|
3314
|
-
* - it only stores the last evaluated result
|
|
3315
|
-
* - it uses a deep equality check to determine if dependencies have changed
|
|
3316
|
-
*
|
|
3317
|
-
* Inspired by apollo-client's useDeepMemo
|
|
3318
|
-
*
|
|
3319
|
-
* @param fn the function to be executed and
|
|
3320
|
-
* @param dependencies an array of dependencies
|
|
3321
|
-
*/
|
|
3322
|
-
|
|
3323
|
-
|
|
3324
|
-
var useDeepMemo = function useDeepMemo(fn, dependencies) {
|
|
3325
|
-
var ref = react_1.useRef();
|
|
3326
|
-
|
|
3327
|
-
if (!ref.current || !lodash_1.isEqual(dependencies, ref.current.dependencies)) {
|
|
3328
|
-
ref.current = {
|
|
3329
|
-
dependencies: dependencies,
|
|
3330
|
-
value: fn()
|
|
3331
|
-
};
|
|
3332
|
-
}
|
|
3333
|
-
|
|
3334
|
-
return ref.current.value;
|
|
3335
|
-
};
|
|
3336
|
-
|
|
3337
|
-
exports.useDeepMemo = useDeepMemo;
|
|
3338
|
-
|
|
3339
|
-
/***/ }),
|
|
3340
|
-
|
|
3341
|
-
/***/ 400:
|
|
3349
|
+
/***/ 417:
|
|
3342
3350
|
/***/ (function(module, exports, __webpack_require__) {
|
|
3343
3351
|
|
|
3344
3352
|
"use strict";
|
|
@@ -3348,27 +3356,27 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
3348
3356
|
value: true
|
|
3349
3357
|
});
|
|
3350
3358
|
|
|
3351
|
-
var visualization_icons_1 = __webpack_require__(
|
|
3359
|
+
var visualization_icons_1 = __webpack_require__(51);
|
|
3352
3360
|
|
|
3353
|
-
var placeholders_1 = __webpack_require__(
|
|
3361
|
+
var placeholders_1 = __webpack_require__(48);
|
|
3354
3362
|
|
|
3355
3363
|
var schemaUtils_1 = __webpack_require__(16);
|
|
3356
3364
|
|
|
3357
|
-
var visualization_color_palettes_1 = __webpack_require__(
|
|
3365
|
+
var visualization_color_palettes_1 = __webpack_require__(50);
|
|
3358
3366
|
|
|
3359
|
-
var themes_1 = __webpack_require__(
|
|
3367
|
+
var themes_1 = __webpack_require__(59);
|
|
3360
3368
|
|
|
3361
3369
|
var i18n_1 = __webpack_require__(2);
|
|
3362
3370
|
|
|
3363
3371
|
var VizBehavior_1 = __webpack_require__(6);
|
|
3364
3372
|
|
|
3365
|
-
var VizCategory_1 = __webpack_require__(
|
|
3373
|
+
var VizCategory_1 = __webpack_require__(35);
|
|
3366
3374
|
|
|
3367
|
-
var configUtils_1 = __webpack_require__(
|
|
3375
|
+
var configUtils_1 = __webpack_require__(19);
|
|
3368
3376
|
|
|
3369
|
-
var MapUtils_1 = __webpack_require__(
|
|
3377
|
+
var MapUtils_1 = __webpack_require__(85);
|
|
3370
3378
|
|
|
3371
|
-
var BackgroundColor_1 = __webpack_require__(
|
|
3379
|
+
var BackgroundColor_1 = __webpack_require__(53);
|
|
3372
3380
|
|
|
3373
3381
|
var defaultContext = {
|
|
3374
3382
|
colorRangeConfig: [{
|
|
@@ -3820,18 +3828,11 @@ var editorConfig = [{
|
|
|
3820
3828
|
shouldShowInternalFields: false,
|
|
3821
3829
|
excludeByNames: ['latitude', 'longitude', 'geobin']
|
|
3822
3830
|
}
|
|
3823
|
-
}],
|
|
3824
|
-
|
|
3825
|
-
|
|
3826
|
-
|
|
3827
|
-
|
|
3828
|
-
// editor: 'editor.columnMultiSelectionByFieldNameEditor',
|
|
3829
|
-
// editorProps: {
|
|
3830
|
-
// excludeByNames: ['geom'],
|
|
3831
|
-
// },
|
|
3832
|
-
// },
|
|
3833
|
-
// ],
|
|
3834
|
-
[{
|
|
3831
|
+
}], [{
|
|
3832
|
+
label: i18n_1._('Additional tooltip fields'),
|
|
3833
|
+
option: 'layers[0].additionalTooltipFields',
|
|
3834
|
+
editor: 'editor.columnMultiSelectionByFieldNameEditor'
|
|
3835
|
+
}], [{
|
|
3835
3836
|
label: i18n_1._('Result limit'),
|
|
3836
3837
|
option: 'layers[0].resultLimit',
|
|
3837
3838
|
editor: 'editor.number',
|
|
@@ -3847,20 +3848,28 @@ var editorConfig = [{
|
|
|
3847
3848
|
}]]
|
|
3848
3849
|
}, {
|
|
3849
3850
|
label: i18n_1._('Data display'),
|
|
3850
|
-
layout: [
|
|
3851
|
-
|
|
3852
|
-
|
|
3853
|
-
|
|
3854
|
-
|
|
3855
|
-
|
|
3856
|
-
|
|
3857
|
-
|
|
3858
|
-
|
|
3859
|
-
|
|
3860
|
-
|
|
3861
|
-
|
|
3862
|
-
|
|
3863
|
-
|
|
3851
|
+
layout: [[{
|
|
3852
|
+
label: i18n_1._('Latitude (initial map location)'),
|
|
3853
|
+
option: 'center[0]',
|
|
3854
|
+
editor: 'editor.number',
|
|
3855
|
+
editorProps: {
|
|
3856
|
+
themes: themes,
|
|
3857
|
+
labelPosition: 'top',
|
|
3858
|
+
min: -90,
|
|
3859
|
+
max: 90
|
|
3860
|
+
}
|
|
3861
|
+
}], [{
|
|
3862
|
+
label: i18n_1._('Longitude (initial map location)'),
|
|
3863
|
+
option: 'center[1]',
|
|
3864
|
+
editor: 'editor.number',
|
|
3865
|
+
editorProps: {
|
|
3866
|
+
themes: themes,
|
|
3867
|
+
labelPosition: 'top',
|
|
3868
|
+
min: -180,
|
|
3869
|
+
max: 180
|
|
3870
|
+
}
|
|
3871
|
+
}], [{
|
|
3872
|
+
label: i18n_1._('Zoom (initial map location)'),
|
|
3864
3873
|
option: 'zoom',
|
|
3865
3874
|
editor: 'editor.number',
|
|
3866
3875
|
editorProps: {
|
|
@@ -3871,9 +3880,9 @@ var editorConfig = [{
|
|
|
3871
3880
|
}], [{
|
|
3872
3881
|
label: i18n_1._('Show zoom controls'),
|
|
3873
3882
|
option: 'showZoomControls',
|
|
3874
|
-
editor: 'editor.
|
|
3883
|
+
editor: 'editor.checkbox',
|
|
3875
3884
|
editorProps: {
|
|
3876
|
-
labelPosition: '
|
|
3885
|
+
labelPosition: 'right',
|
|
3877
3886
|
labelWidth: EDITOR_LABEL_WIDTH
|
|
3878
3887
|
}
|
|
3879
3888
|
}], [{
|
|
@@ -3881,7 +3890,7 @@ var editorConfig = [{
|
|
|
3881
3890
|
option: 'showScale',
|
|
3882
3891
|
editor: 'editor.toggle',
|
|
3883
3892
|
editorProps: {
|
|
3884
|
-
labelPosition: '
|
|
3893
|
+
labelPosition: 'right',
|
|
3885
3894
|
labelWidth: EDITOR_LABEL_WIDTH
|
|
3886
3895
|
}
|
|
3887
3896
|
}], [{
|
|
@@ -3952,7 +3961,7 @@ var editorConfig = [{
|
|
|
3952
3961
|
themes: themes
|
|
3953
3962
|
}
|
|
3954
3963
|
}], [{
|
|
3955
|
-
label: i18n_1._('Choropleth stroke
|
|
3964
|
+
label: i18n_1._('Choropleth stroke'),
|
|
3956
3965
|
option: 'layers[0].choroplethStrokeColor',
|
|
3957
3966
|
editor: 'editor.color',
|
|
3958
3967
|
showEditor: function showEditor(_ref9) {
|
|
@@ -3987,10 +3996,7 @@ var editorConfig = [{
|
|
|
3987
3996
|
}), [{
|
|
3988
3997
|
label: i18n_1._('Show base layer'),
|
|
3989
3998
|
option: 'showBaseLayer',
|
|
3990
|
-
editor: 'editor.toggle'
|
|
3991
|
-
editorProps: {
|
|
3992
|
-
labelPosition: 'left'
|
|
3993
|
-
}
|
|
3999
|
+
editor: 'editor.toggle'
|
|
3994
4000
|
}], [{
|
|
3995
4001
|
label: i18n_1._('Base layer tile server'),
|
|
3996
4002
|
option: 'baseLayerTileServer',
|
|
@@ -4061,7 +4067,7 @@ exports.default = configUtils_1.enhanceConfig(config);
|
|
|
4061
4067
|
|
|
4062
4068
|
/***/ }),
|
|
4063
4069
|
|
|
4064
|
-
/***/
|
|
4070
|
+
/***/ 418:
|
|
4065
4071
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4066
4072
|
|
|
4067
4073
|
"use strict";
|
|
@@ -4072,13 +4078,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4072
4078
|
});
|
|
4073
4079
|
exports.columnsNullToZeros = void 0;
|
|
4074
4080
|
|
|
4075
|
-
var types_1 = __webpack_require__(
|
|
4081
|
+
var types_1 = __webpack_require__(90);
|
|
4082
|
+
|
|
4083
|
+
var dsl_1 = __webpack_require__(105);
|
|
4076
4084
|
|
|
4077
|
-
var
|
|
4085
|
+
var hocUtils_1 = __webpack_require__(26);
|
|
4078
4086
|
|
|
4079
|
-
var
|
|
4087
|
+
var JSONSchemaUtils_1 = __webpack_require__(27);
|
|
4080
4088
|
|
|
4081
|
-
var
|
|
4089
|
+
var BubbleLayer_1 = __webpack_require__(130);
|
|
4082
4090
|
|
|
4083
4091
|
var columnsNullToZeros = function columnsNullToZeros(config, dataSources, options) {
|
|
4084
4092
|
var _a, _b;
|
|
@@ -4093,7 +4101,7 @@ var columnsNullToZeros = function columnsNullToZeros(config, dataSources, option
|
|
|
4093
4101
|
if (((_b = (_a = mergedOptions.layers) === null || _a === void 0 ? void 0 : _a[0]) === null || _b === void 0 ? void 0 : _b.type) === 'bubble') {
|
|
4094
4102
|
var latitudeField = dsl_1.getFieldsFromDSL(mergedOptions.layers[0].latitude, dataSources)[0] || '';
|
|
4095
4103
|
var longitudeField = dsl_1.getFieldsFromDSL(mergedOptions.layers[0].longitude, dataSources)[0] || '';
|
|
4096
|
-
var excludedFields = [latitudeField, longitudeField, 'geobin'];
|
|
4104
|
+
var excludedFields = [latitudeField, longitudeField, 'geobin'].concat(BubbleLayer_1.GEO_LAT_AND_LONG_FIELD);
|
|
4097
4105
|
var indicesToEvaluate = new Set(fields.reduce(function (arr, e, i) {
|
|
4098
4106
|
var field = typeof e === 'string' ? e : e.name.toString();
|
|
4099
4107
|
|
|
@@ -4129,7 +4137,105 @@ exports.columnsNullToZeros = columnsNullToZeros;
|
|
|
4129
4137
|
|
|
4130
4138
|
/***/ }),
|
|
4131
4139
|
|
|
4132
|
-
/***/
|
|
4140
|
+
/***/ 42:
|
|
4141
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4142
|
+
|
|
4143
|
+
"use strict";
|
|
4144
|
+
|
|
4145
|
+
|
|
4146
|
+
var _classCallCheck = __webpack_require__(11);
|
|
4147
|
+
|
|
4148
|
+
var _createClass = __webpack_require__(22);
|
|
4149
|
+
|
|
4150
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4151
|
+
value: true
|
|
4152
|
+
});
|
|
4153
|
+
exports.DefaultVizActionHandler = void 0;
|
|
4154
|
+
|
|
4155
|
+
var DefaultVizActionHandler = /*#__PURE__*/function () {
|
|
4156
|
+
function DefaultVizActionHandler() {
|
|
4157
|
+
_classCallCheck(this, DefaultVizActionHandler);
|
|
4158
|
+
}
|
|
4159
|
+
|
|
4160
|
+
_createClass(DefaultVizActionHandler, [{
|
|
4161
|
+
key: "focus",
|
|
4162
|
+
value: function focus() {// noop
|
|
4163
|
+
}
|
|
4164
|
+
}, {
|
|
4165
|
+
key: "snapshot",
|
|
4166
|
+
value: function snapshot() {
|
|
4167
|
+
return null; // noop
|
|
4168
|
+
}
|
|
4169
|
+
}]);
|
|
4170
|
+
|
|
4171
|
+
return DefaultVizActionHandler;
|
|
4172
|
+
}();
|
|
4173
|
+
|
|
4174
|
+
exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
4175
|
+
|
|
4176
|
+
/***/ }),
|
|
4177
|
+
|
|
4178
|
+
/***/ 43:
|
|
4179
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4180
|
+
|
|
4181
|
+
"use strict";
|
|
4182
|
+
|
|
4183
|
+
|
|
4184
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4185
|
+
value: true
|
|
4186
|
+
});
|
|
4187
|
+
exports.validSortDirs = void 0;
|
|
4188
|
+
exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
4189
|
+
|
|
4190
|
+
/***/ }),
|
|
4191
|
+
|
|
4192
|
+
/***/ 44:
|
|
4193
|
+
/***/ (function(module, exports, __webpack_require__) {
|
|
4194
|
+
|
|
4195
|
+
"use strict";
|
|
4196
|
+
|
|
4197
|
+
|
|
4198
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4199
|
+
value: true
|
|
4200
|
+
});
|
|
4201
|
+
exports.useDeepMemo = void 0;
|
|
4202
|
+
|
|
4203
|
+
var react_1 = __webpack_require__(0);
|
|
4204
|
+
|
|
4205
|
+
var lodash_1 = __webpack_require__(3);
|
|
4206
|
+
/**
|
|
4207
|
+
* This hook evaluates and stores the result of a passed function and only
|
|
4208
|
+
* re-evaluates the function when passed dependencies change.
|
|
4209
|
+
*
|
|
4210
|
+
* It is different from the internal React useMemo in the following aspects:
|
|
4211
|
+
* - it only stores the last evaluated result
|
|
4212
|
+
* - it uses a deep equality check to determine if dependencies have changed
|
|
4213
|
+
*
|
|
4214
|
+
* Inspired by apollo-client's useDeepMemo
|
|
4215
|
+
*
|
|
4216
|
+
* @param fn the function to be executed and
|
|
4217
|
+
* @param dependencies an array of dependencies
|
|
4218
|
+
*/
|
|
4219
|
+
|
|
4220
|
+
|
|
4221
|
+
var useDeepMemo = function useDeepMemo(fn, dependencies) {
|
|
4222
|
+
var ref = react_1.useRef();
|
|
4223
|
+
|
|
4224
|
+
if (!ref.current || !lodash_1.isEqual(dependencies, ref.current.dependencies)) {
|
|
4225
|
+
ref.current = {
|
|
4226
|
+
dependencies: dependencies,
|
|
4227
|
+
value: fn()
|
|
4228
|
+
};
|
|
4229
|
+
}
|
|
4230
|
+
|
|
4231
|
+
return ref.current.value;
|
|
4232
|
+
};
|
|
4233
|
+
|
|
4234
|
+
exports.useDeepMemo = useDeepMemo;
|
|
4235
|
+
|
|
4236
|
+
/***/ }),
|
|
4237
|
+
|
|
4238
|
+
/***/ 45:
|
|
4133
4239
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4134
4240
|
|
|
4135
4241
|
"use strict";
|
|
@@ -4140,13 +4246,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4140
4246
|
});
|
|
4141
4247
|
exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
|
|
4142
4248
|
|
|
4143
|
-
var React = __webpack_require__(
|
|
4249
|
+
var React = __webpack_require__(0);
|
|
4144
4250
|
|
|
4145
|
-
var T = __webpack_require__(
|
|
4251
|
+
var T = __webpack_require__(1);
|
|
4146
4252
|
|
|
4147
4253
|
var i18n_1 = __webpack_require__(2);
|
|
4148
4254
|
|
|
4149
|
-
var Message_1 = __webpack_require__(
|
|
4255
|
+
var Message_1 = __webpack_require__(9);
|
|
4150
4256
|
|
|
4151
4257
|
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
4152
4258
|
/**
|
|
@@ -4210,7 +4316,7 @@ exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
|
4210
4316
|
|
|
4211
4317
|
/***/ }),
|
|
4212
4318
|
|
|
4213
|
-
/***/
|
|
4319
|
+
/***/ 46:
|
|
4214
4320
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4215
4321
|
|
|
4216
4322
|
"use strict";
|
|
@@ -4220,18 +4326,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4220
4326
|
value: true
|
|
4221
4327
|
});
|
|
4222
4328
|
|
|
4223
|
-
var React = __webpack_require__(
|
|
4329
|
+
var React = __webpack_require__(0);
|
|
4224
4330
|
|
|
4225
4331
|
var styled_components_1 = __webpack_require__(4);
|
|
4226
4332
|
|
|
4227
|
-
var hocUtils_1 = __webpack_require__(
|
|
4333
|
+
var hocUtils_1 = __webpack_require__(15);
|
|
4228
4334
|
|
|
4229
4335
|
var Cover = styled_components_1.default.div.withConfig({
|
|
4230
4336
|
displayName: "withEditModeCover__Cover",
|
|
4231
4337
|
componentId: "sc-1gsbnxb-0"
|
|
4232
4338
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
4233
4339
|
var Blocker = styled_components_1.default.div.attrs({
|
|
4234
|
-
'data-splunk-visualization-version': "25.
|
|
4340
|
+
'data-splunk-visualization-version': "25.7.0 - d10a7789b"
|
|
4235
4341
|
}).withConfig({
|
|
4236
4342
|
displayName: "withEditModeCover__Blocker",
|
|
4237
4343
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -4263,7 +4369,7 @@ exports.default = withEditModeCover;
|
|
|
4263
4369
|
|
|
4264
4370
|
/***/ }),
|
|
4265
4371
|
|
|
4266
|
-
/***/
|
|
4372
|
+
/***/ 47:
|
|
4267
4373
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4268
4374
|
|
|
4269
4375
|
"use strict";
|
|
@@ -4273,17 +4379,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4273
4379
|
value: true
|
|
4274
4380
|
});
|
|
4275
4381
|
|
|
4276
|
-
var React = __webpack_require__(
|
|
4382
|
+
var React = __webpack_require__(0);
|
|
4277
4383
|
|
|
4278
4384
|
var colorUtils_1 = __webpack_require__(12);
|
|
4279
4385
|
|
|
4280
|
-
var variables_1 = __webpack_require__(
|
|
4386
|
+
var variables_1 = __webpack_require__(10);
|
|
4281
4387
|
|
|
4282
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
4388
|
+
var IconPlaceholder_1 = __webpack_require__(31);
|
|
4283
4389
|
|
|
4284
4390
|
var VizBehavior_1 = __webpack_require__(6);
|
|
4285
4391
|
|
|
4286
|
-
var hocUtils_1 = __webpack_require__(
|
|
4392
|
+
var hocUtils_1 = __webpack_require__(15);
|
|
4287
4393
|
|
|
4288
4394
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
4289
4395
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -4328,28 +4434,28 @@ exports.default = withPlaceholder;
|
|
|
4328
4434
|
|
|
4329
4435
|
/***/ }),
|
|
4330
4436
|
|
|
4331
|
-
/***/
|
|
4437
|
+
/***/ 48:
|
|
4332
4438
|
/***/ (function(module, exports) {
|
|
4333
4439
|
|
|
4334
4440
|
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
4335
4441
|
|
|
4336
4442
|
/***/ }),
|
|
4337
4443
|
|
|
4338
|
-
/***/
|
|
4444
|
+
/***/ 50:
|
|
4339
4445
|
/***/ (function(module, exports) {
|
|
4340
4446
|
|
|
4341
4447
|
module.exports = require("@splunk/visualization-color-palettes");
|
|
4342
4448
|
|
|
4343
4449
|
/***/ }),
|
|
4344
4450
|
|
|
4345
|
-
/***/
|
|
4451
|
+
/***/ 51:
|
|
4346
4452
|
/***/ (function(module, exports) {
|
|
4347
4453
|
|
|
4348
4454
|
module.exports = require("@splunk/visualization-icons");
|
|
4349
4455
|
|
|
4350
4456
|
/***/ }),
|
|
4351
4457
|
|
|
4352
|
-
/***/
|
|
4458
|
+
/***/ 53:
|
|
4353
4459
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4354
4460
|
|
|
4355
4461
|
"use strict";
|
|
@@ -4380,10 +4486,10 @@ exports.default = background;
|
|
|
4380
4486
|
|
|
4381
4487
|
/***/ }),
|
|
4382
4488
|
|
|
4383
|
-
/***/
|
|
4489
|
+
/***/ 59:
|
|
4384
4490
|
/***/ (function(module, exports) {
|
|
4385
4491
|
|
|
4386
|
-
module.exports = require("@
|
|
4492
|
+
module.exports = require("@splunk/themes");
|
|
4387
4493
|
|
|
4388
4494
|
/***/ }),
|
|
4389
4495
|
|
|
@@ -4421,35 +4527,36 @@ var VizBehavior;
|
|
|
4421
4527
|
|
|
4422
4528
|
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
4423
4529
|
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
4530
|
+
VizBehavior["TRELLIS"] = "trellis";
|
|
4424
4531
|
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
4425
4532
|
|
|
4426
4533
|
/***/ }),
|
|
4427
4534
|
|
|
4428
|
-
/***/
|
|
4535
|
+
/***/ 7:
|
|
4429
4536
|
/***/ (function(module, exports) {
|
|
4430
4537
|
|
|
4431
|
-
module.exports = require("@
|
|
4538
|
+
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
4432
4539
|
|
|
4433
4540
|
/***/ }),
|
|
4434
4541
|
|
|
4435
|
-
/***/
|
|
4542
|
+
/***/ 8:
|
|
4436
4543
|
/***/ (function(module, exports) {
|
|
4437
4544
|
|
|
4438
4545
|
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
4439
4546
|
|
|
4440
4547
|
/***/ }),
|
|
4441
4548
|
|
|
4442
|
-
/***/
|
|
4549
|
+
/***/ 85:
|
|
4443
4550
|
/***/ (function(module, exports, __webpack_require__) {
|
|
4444
4551
|
|
|
4445
4552
|
"use strict";
|
|
4446
4553
|
|
|
4447
4554
|
|
|
4448
|
-
var _defineProperty = __webpack_require__(
|
|
4555
|
+
var _defineProperty = __webpack_require__(8);
|
|
4449
4556
|
|
|
4450
|
-
var _slicedToArray = __webpack_require__(
|
|
4557
|
+
var _slicedToArray = __webpack_require__(17);
|
|
4451
4558
|
|
|
4452
|
-
var _toConsumableArray = __webpack_require__(
|
|
4559
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
4453
4560
|
|
|
4454
4561
|
Object.defineProperty(exports, "__esModule", {
|
|
4455
4562
|
value: true
|
|
@@ -4458,15 +4565,15 @@ exports.formatMetadata = exports.compareBaseStyles = exports.getScaledOpacities
|
|
|
4458
4565
|
|
|
4459
4566
|
var lodash_1 = __webpack_require__(3);
|
|
4460
4567
|
|
|
4461
|
-
var d3_scale_1 = __webpack_require__(
|
|
4568
|
+
var d3_scale_1 = __webpack_require__(86);
|
|
4462
4569
|
|
|
4463
|
-
var chroma = __webpack_require__(
|
|
4570
|
+
var chroma = __webpack_require__(154);
|
|
4464
4571
|
|
|
4465
4572
|
var colorUtils_1 = __webpack_require__(12);
|
|
4466
4573
|
|
|
4467
|
-
var visualization_color_palettes_1 = __webpack_require__(
|
|
4574
|
+
var visualization_color_palettes_1 = __webpack_require__(50);
|
|
4468
4575
|
|
|
4469
|
-
var types_1 = __webpack_require__(
|
|
4576
|
+
var types_1 = __webpack_require__(90);
|
|
4470
4577
|
|
|
4471
4578
|
exports.MAX_LATITUDE = 90;
|
|
4472
4579
|
exports.MIN_LATITUDE = -90;
|
|
@@ -5006,28 +5113,14 @@ exports.formatMetadata = formatMetadata;
|
|
|
5006
5113
|
|
|
5007
5114
|
/***/ }),
|
|
5008
5115
|
|
|
5009
|
-
/***/
|
|
5010
|
-
/***/ (function(module, exports) {
|
|
5011
|
-
|
|
5012
|
-
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
5013
|
-
|
|
5014
|
-
/***/ }),
|
|
5015
|
-
|
|
5016
|
-
/***/ 80:
|
|
5116
|
+
/***/ 86:
|
|
5017
5117
|
/***/ (function(module, exports) {
|
|
5018
5118
|
|
|
5019
5119
|
module.exports = require("d3-scale");
|
|
5020
5120
|
|
|
5021
5121
|
/***/ }),
|
|
5022
5122
|
|
|
5023
|
-
/***/
|
|
5024
|
-
/***/ (function(module, exports) {
|
|
5025
|
-
|
|
5026
|
-
module.exports = require("@splunk/visualization-encoding/utils/types");
|
|
5027
|
-
|
|
5028
|
-
/***/ }),
|
|
5029
|
-
|
|
5030
|
-
/***/ 84:
|
|
5123
|
+
/***/ 89:
|
|
5031
5124
|
/***/ (function(module, exports) {
|
|
5032
5125
|
|
|
5033
5126
|
module.exports = require("@splunk/react-ui/Popover");
|
|
@@ -5037,14 +5130,14 @@ module.exports = require("@splunk/react-ui/Popover");
|
|
|
5037
5130
|
/***/ 9:
|
|
5038
5131
|
/***/ (function(module, exports) {
|
|
5039
5132
|
|
|
5040
|
-
module.exports = require("@splunk/
|
|
5133
|
+
module.exports = require("@splunk/visualizations-shared/Message");
|
|
5041
5134
|
|
|
5042
5135
|
/***/ }),
|
|
5043
5136
|
|
|
5044
|
-
/***/
|
|
5137
|
+
/***/ 90:
|
|
5045
5138
|
/***/ (function(module, exports) {
|
|
5046
5139
|
|
|
5047
|
-
module.exports = require("@splunk/visualization-encoding/utils/
|
|
5140
|
+
module.exports = require("@splunk/visualization-encoding/utils/types");
|
|
5048
5141
|
|
|
5049
5142
|
/***/ })
|
|
5050
5143
|
|