@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/ChoroplethSvg.js
CHANGED
|
@@ -87,20 +87,20 @@ 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 = 181);
|
|
91
91
|
/******/ })
|
|
92
92
|
/************************************************************************/
|
|
93
93
|
/******/ ([
|
|
94
94
|
/* 0 */
|
|
95
95
|
/***/ (function(module, exports) {
|
|
96
96
|
|
|
97
|
-
module.exports = require("
|
|
97
|
+
module.exports = require("react");
|
|
98
98
|
|
|
99
99
|
/***/ }),
|
|
100
100
|
/* 1 */
|
|
101
101
|
/***/ (function(module, exports) {
|
|
102
102
|
|
|
103
|
-
module.exports = require("
|
|
103
|
+
module.exports = require("prop-types");
|
|
104
104
|
|
|
105
105
|
/***/ }),
|
|
106
106
|
/* 2 */
|
|
@@ -156,31 +156,32 @@ var VizBehavior;
|
|
|
156
156
|
|
|
157
157
|
VizBehavior["PLACEHOLDER"] = "placeholder";
|
|
158
158
|
VizBehavior["PAGE_AND_SORT"] = "page-and-sort";
|
|
159
|
+
VizBehavior["TRELLIS"] = "trellis";
|
|
159
160
|
})(VizBehavior = exports.VizBehavior || (exports.VizBehavior = {}));
|
|
160
161
|
|
|
161
162
|
/***/ }),
|
|
162
163
|
/* 7 */
|
|
163
164
|
/***/ (function(module, exports) {
|
|
164
165
|
|
|
165
|
-
module.exports = require("@babel/runtime/helpers/
|
|
166
|
+
module.exports = require("@babel/runtime/helpers/toConsumableArray");
|
|
166
167
|
|
|
167
168
|
/***/ }),
|
|
168
169
|
/* 8 */
|
|
169
170
|
/***/ (function(module, exports) {
|
|
170
171
|
|
|
171
|
-
module.exports = require("@babel/runtime/helpers/
|
|
172
|
+
module.exports = require("@babel/runtime/helpers/defineProperty");
|
|
172
173
|
|
|
173
174
|
/***/ }),
|
|
174
175
|
/* 9 */
|
|
175
176
|
/***/ (function(module, exports) {
|
|
176
177
|
|
|
177
|
-
module.exports = require("@splunk/
|
|
178
|
+
module.exports = require("@splunk/visualizations-shared/Message");
|
|
178
179
|
|
|
179
180
|
/***/ }),
|
|
180
181
|
/* 10 */
|
|
181
182
|
/***/ (function(module, exports) {
|
|
182
183
|
|
|
183
|
-
module.exports = require("@splunk/
|
|
184
|
+
module.exports = require("@splunk/themes/variables");
|
|
184
185
|
|
|
185
186
|
/***/ }),
|
|
186
187
|
/* 11 */
|
|
@@ -205,13 +206,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
205
206
|
value: true
|
|
206
207
|
});
|
|
207
208
|
|
|
208
|
-
var React = __webpack_require__(
|
|
209
|
+
var React = __webpack_require__(0);
|
|
209
210
|
|
|
210
211
|
var styled_components_1 = __webpack_require__(4);
|
|
211
212
|
|
|
212
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
213
|
+
var SizeAwareWrapper_1 = __webpack_require__(18);
|
|
213
214
|
|
|
214
|
-
var style_1 = __webpack_require__(
|
|
215
|
+
var style_1 = __webpack_require__(14);
|
|
215
216
|
|
|
216
217
|
var colorUtils_1 = __webpack_require__(12);
|
|
217
218
|
|
|
@@ -270,7 +271,7 @@ var withFixedSizeContainer = function withFixedSizeContainer(Viz) {
|
|
|
270
271
|
|
|
271
272
|
return React.createElement(FixSizeItem, {
|
|
272
273
|
"data-test": "fix-size-item",
|
|
273
|
-
"data-splunk-visualization-version": "25.
|
|
274
|
+
"data-splunk-visualization-version": "25.7.0 - d10a7789b",
|
|
274
275
|
width: width,
|
|
275
276
|
height: height,
|
|
276
277
|
backgroundColor: backgroundColor
|
|
@@ -292,6 +293,12 @@ exports.default = withFixedSizeContainer;
|
|
|
292
293
|
|
|
293
294
|
/***/ }),
|
|
294
295
|
/* 14 */
|
|
296
|
+
/***/ (function(module, exports) {
|
|
297
|
+
|
|
298
|
+
module.exports = require("@splunk/visualizations-shared/style");
|
|
299
|
+
|
|
300
|
+
/***/ }),
|
|
301
|
+
/* 15 */
|
|
295
302
|
/***/ (function(module, exports, __webpack_require__) {
|
|
296
303
|
|
|
297
304
|
"use strict";
|
|
@@ -323,27 +330,33 @@ var extendStaticWrapperProps = function extendStaticWrapperProps(_ref) {
|
|
|
323
330
|
exports.extendStaticWrapperProps = extendStaticWrapperProps;
|
|
324
331
|
|
|
325
332
|
/***/ }),
|
|
326
|
-
/*
|
|
333
|
+
/* 16 */
|
|
327
334
|
/***/ (function(module, exports) {
|
|
328
335
|
|
|
329
|
-
module.exports = require("@splunk/visualizations-shared/
|
|
336
|
+
module.exports = require("@splunk/visualizations-shared/schemaUtils");
|
|
330
337
|
|
|
331
338
|
/***/ }),
|
|
332
|
-
/*
|
|
339
|
+
/* 17 */
|
|
333
340
|
/***/ (function(module, exports) {
|
|
334
341
|
|
|
335
|
-
module.exports = require("@
|
|
342
|
+
module.exports = require("@babel/runtime/helpers/slicedToArray");
|
|
336
343
|
|
|
337
344
|
/***/ }),
|
|
338
|
-
/*
|
|
345
|
+
/* 18 */
|
|
346
|
+
/***/ (function(module, exports) {
|
|
347
|
+
|
|
348
|
+
module.exports = require("@splunk/visualizations-shared/SizeAwareWrapper");
|
|
349
|
+
|
|
350
|
+
/***/ }),
|
|
351
|
+
/* 19 */
|
|
339
352
|
/***/ (function(module, exports, __webpack_require__) {
|
|
340
353
|
|
|
341
354
|
"use strict";
|
|
342
355
|
|
|
343
356
|
|
|
344
|
-
var _toConsumableArray = __webpack_require__(
|
|
357
|
+
var _toConsumableArray = __webpack_require__(7);
|
|
345
358
|
|
|
346
|
-
var _defineProperty = __webpack_require__(
|
|
359
|
+
var _defineProperty = __webpack_require__(8);
|
|
347
360
|
|
|
348
361
|
var __rest = this && this.__rest || function (s, e) {
|
|
349
362
|
var t = {};
|
|
@@ -571,51 +584,58 @@ var insertLayout = function insertLayout(layout, index) {
|
|
|
571
584
|
exports.insertLayout = insertLayout;
|
|
572
585
|
|
|
573
586
|
/***/ }),
|
|
574
|
-
/*
|
|
587
|
+
/* 20 */
|
|
575
588
|
/***/ (function(module, exports) {
|
|
576
589
|
|
|
577
|
-
module.exports = require("@splunk/
|
|
590
|
+
module.exports = require("@splunk/visualization-context/FeatureFlagContext");
|
|
578
591
|
|
|
579
592
|
/***/ }),
|
|
580
|
-
/*
|
|
593
|
+
/* 21 */
|
|
581
594
|
/***/ (function(module, exports) {
|
|
582
595
|
|
|
583
|
-
module.exports = require("@
|
|
596
|
+
module.exports = require("@splunk/visualizations-shared/configUtils");
|
|
584
597
|
|
|
585
598
|
/***/ }),
|
|
586
|
-
/*
|
|
599
|
+
/* 22 */
|
|
587
600
|
/***/ (function(module, exports) {
|
|
588
601
|
|
|
589
|
-
module.exports = require("@
|
|
602
|
+
module.exports = require("@babel/runtime/helpers/createClass");
|
|
590
603
|
|
|
591
604
|
/***/ }),
|
|
592
|
-
/*
|
|
605
|
+
/* 23 */
|
|
593
606
|
/***/ (function(module, exports) {
|
|
594
607
|
|
|
595
608
|
module.exports = require("@splunk/themes/pick");
|
|
596
609
|
|
|
597
610
|
/***/ }),
|
|
598
|
-
/*
|
|
599
|
-
/*
|
|
611
|
+
/* 24 */,
|
|
612
|
+
/* 25 */
|
|
600
613
|
/***/ (function(module, exports) {
|
|
601
614
|
|
|
602
615
|
module.exports = require("@splunk/visualization-context/TimezoneContext");
|
|
603
616
|
|
|
604
617
|
/***/ }),
|
|
605
|
-
/*
|
|
606
|
-
/* 25 */
|
|
618
|
+
/* 26 */
|
|
607
619
|
/***/ (function(module, exports) {
|
|
608
620
|
|
|
609
621
|
module.exports = require("@splunk/visualizations-shared/hocUtils");
|
|
610
622
|
|
|
611
623
|
/***/ }),
|
|
612
|
-
/*
|
|
624
|
+
/* 27 */
|
|
613
625
|
/***/ (function(module, exports) {
|
|
614
626
|
|
|
615
627
|
module.exports = require("@splunk/visualizations-shared/JSONSchemaUtils");
|
|
616
628
|
|
|
617
629
|
/***/ }),
|
|
618
|
-
/*
|
|
630
|
+
/* 28 */,
|
|
631
|
+
/* 29 */
|
|
632
|
+
/***/ (function(module, exports) {
|
|
633
|
+
|
|
634
|
+
module.exports = require("@splunk/visualization-encoding/Options");
|
|
635
|
+
|
|
636
|
+
/***/ }),
|
|
637
|
+
/* 30 */,
|
|
638
|
+
/* 31 */
|
|
619
639
|
/***/ (function(module, exports, __webpack_require__) {
|
|
620
640
|
|
|
621
641
|
"use strict";
|
|
@@ -626,15 +646,15 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
626
646
|
});
|
|
627
647
|
exports.shouldShowIconPlaceholder = void 0;
|
|
628
648
|
|
|
629
|
-
var React = __webpack_require__(
|
|
649
|
+
var React = __webpack_require__(0);
|
|
630
650
|
|
|
631
|
-
var T = __webpack_require__(
|
|
651
|
+
var T = __webpack_require__(1);
|
|
632
652
|
|
|
633
653
|
var lodash_1 = __webpack_require__(3);
|
|
634
654
|
|
|
635
655
|
var i18n_1 = __webpack_require__(2);
|
|
636
656
|
|
|
637
|
-
var Message_1 = __webpack_require__(
|
|
657
|
+
var Message_1 = __webpack_require__(9);
|
|
638
658
|
|
|
639
659
|
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
640
660
|
/**
|
|
@@ -706,24 +726,30 @@ IconPlaceholder.defaultProps = {
|
|
|
706
726
|
exports.default = FixedSizeContainer_1.default(IconPlaceholder);
|
|
707
727
|
|
|
708
728
|
/***/ }),
|
|
709
|
-
/*
|
|
729
|
+
/* 32 */
|
|
730
|
+
/***/ (function(module, exports) {
|
|
731
|
+
|
|
732
|
+
module.exports = require("@splunk/ui-utils/id");
|
|
733
|
+
|
|
734
|
+
/***/ }),
|
|
735
|
+
/* 33 */
|
|
710
736
|
/***/ (function(module, exports, __webpack_require__) {
|
|
711
737
|
|
|
712
738
|
"use strict";
|
|
713
739
|
|
|
714
740
|
|
|
715
|
-
var _defineProperty = __webpack_require__(
|
|
741
|
+
var _defineProperty = __webpack_require__(8);
|
|
716
742
|
|
|
717
743
|
Object.defineProperty(exports, "__esModule", {
|
|
718
744
|
value: true
|
|
719
745
|
});
|
|
720
746
|
exports.getSortingParams = exports.SortParamsPropTypes = void 0;
|
|
721
747
|
|
|
722
|
-
var T = __webpack_require__(
|
|
748
|
+
var T = __webpack_require__(1);
|
|
723
749
|
|
|
724
750
|
var lodash_1 = __webpack_require__(3);
|
|
725
751
|
|
|
726
|
-
var DataSource_1 = __webpack_require__(
|
|
752
|
+
var DataSource_1 = __webpack_require__(43);
|
|
727
753
|
|
|
728
754
|
exports.SortParamsPropTypes = T.shape({
|
|
729
755
|
currentSortKey: T.string,
|
|
@@ -743,7 +769,7 @@ var getSortingParams = function getSortingParams(_ref) {
|
|
|
743
769
|
};
|
|
744
770
|
var onSort;
|
|
745
771
|
|
|
746
|
-
if (
|
|
772
|
+
if (typeof onRequestParamsChange === 'function') {
|
|
747
773
|
if (requestParams && lodash_1.has(requestParams, 'sort')) {
|
|
748
774
|
currentSortKey = Object.keys(requestParams.sort).shift();
|
|
749
775
|
currentSortDir = requestParams.sort[currentSortKey];
|
|
@@ -776,7 +802,7 @@ var getSortingParams = function getSortingParams(_ref) {
|
|
|
776
802
|
exports.getSortingParams = getSortingParams;
|
|
777
803
|
|
|
778
804
|
/***/ }),
|
|
779
|
-
/*
|
|
805
|
+
/* 34 */
|
|
780
806
|
/***/ (function(module, exports, __webpack_require__) {
|
|
781
807
|
|
|
782
808
|
"use strict";
|
|
@@ -787,7 +813,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
787
813
|
});
|
|
788
814
|
exports.getPaginationParams = exports.PaginatorParamsPropTypes = void 0;
|
|
789
815
|
|
|
790
|
-
var T = __webpack_require__(
|
|
816
|
+
var T = __webpack_require__(1);
|
|
791
817
|
|
|
792
818
|
var lodash_1 = __webpack_require__(3);
|
|
793
819
|
|
|
@@ -807,7 +833,7 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
807
833
|
var count = requestParams && requestParams.count;
|
|
808
834
|
var totalPages = typeof count === 'number' && count > 0 ? Math.ceil(totalCount / count) : 0;
|
|
809
835
|
var current = typeof count === 'number' && count > 0 ? Math.floor(offset / count) + 1 : 0;
|
|
810
|
-
var isPaging = totalPages > 1 &&
|
|
836
|
+
var isPaging = totalPages > 1 && typeof onRequestParamsChange === 'function';
|
|
811
837
|
|
|
812
838
|
var onChangeHandler = function onChangeHandler(e, _ref2) {
|
|
813
839
|
var page = _ref2.page,
|
|
@@ -833,15 +859,14 @@ var getPaginationParams = function getPaginationParams(_ref) {
|
|
|
833
859
|
isPaging: isPaging,
|
|
834
860
|
current: current,
|
|
835
861
|
totalPages: totalPages,
|
|
836
|
-
onChange:
|
|
862
|
+
onChange: typeof onRequestParamsChange === 'function' ? onChangeHandler : lodash_1.noop
|
|
837
863
|
};
|
|
838
864
|
};
|
|
839
865
|
|
|
840
866
|
exports.getPaginationParams = getPaginationParams;
|
|
841
867
|
|
|
842
868
|
/***/ }),
|
|
843
|
-
/*
|
|
844
|
-
/* 31 */
|
|
869
|
+
/* 35 */
|
|
845
870
|
/***/ (function(module, exports, __webpack_require__) {
|
|
846
871
|
|
|
847
872
|
"use strict";
|
|
@@ -869,58 +894,67 @@ var VizCategory;
|
|
|
869
894
|
})(VizCategory = exports.VizCategory || (exports.VizCategory = {}));
|
|
870
895
|
|
|
871
896
|
/***/ }),
|
|
872
|
-
/*
|
|
897
|
+
/* 36 */
|
|
873
898
|
/***/ (function(module, exports, __webpack_require__) {
|
|
874
899
|
|
|
875
900
|
"use strict";
|
|
876
901
|
|
|
877
902
|
|
|
903
|
+
var _slicedToArray = __webpack_require__(17);
|
|
904
|
+
|
|
878
905
|
Object.defineProperty(exports, "__esModule", {
|
|
879
906
|
value: true
|
|
880
907
|
});
|
|
881
908
|
|
|
882
|
-
var React = __webpack_require__(
|
|
909
|
+
var React = __webpack_require__(0);
|
|
883
910
|
|
|
884
911
|
var lodash_1 = __webpack_require__(3);
|
|
885
912
|
|
|
886
|
-
var getSettingsFromThemedProps_1 = __webpack_require__(
|
|
913
|
+
var getSettingsFromThemedProps_1 = __webpack_require__(37);
|
|
914
|
+
|
|
915
|
+
var Options_1 = __webpack_require__(29);
|
|
887
916
|
|
|
888
|
-
var
|
|
917
|
+
var SanitizeProps_1 = __webpack_require__(38);
|
|
889
918
|
|
|
890
|
-
var
|
|
919
|
+
var TimezoneContext_1 = __webpack_require__(25);
|
|
891
920
|
|
|
892
|
-
var
|
|
921
|
+
var moment_1 = __webpack_require__(39);
|
|
893
922
|
|
|
894
|
-
var
|
|
923
|
+
var FeatureFlagContext_1 = __webpack_require__(20);
|
|
895
924
|
|
|
896
925
|
var styled_components_1 = __webpack_require__(4);
|
|
897
926
|
|
|
898
|
-
var hocUtils_1 = __webpack_require__(
|
|
927
|
+
var hocUtils_1 = __webpack_require__(26);
|
|
899
928
|
|
|
900
|
-
var JSONSchemaUtils_1 = __webpack_require__(
|
|
929
|
+
var JSONSchemaUtils_1 = __webpack_require__(27);
|
|
901
930
|
|
|
902
|
-
var
|
|
931
|
+
var async_dynamic_options_evaluator_1 = __webpack_require__(40);
|
|
932
|
+
|
|
933
|
+
var id_1 = __webpack_require__(32);
|
|
934
|
+
|
|
935
|
+
var SplunkVisualization_1 = __webpack_require__(41);
|
|
903
936
|
|
|
904
937
|
var VizBehavior_1 = __webpack_require__(6);
|
|
905
938
|
|
|
906
|
-
var getSorting_1 = __webpack_require__(
|
|
939
|
+
var getSorting_1 = __webpack_require__(33);
|
|
907
940
|
|
|
908
|
-
var getPagination_1 = __webpack_require__(
|
|
941
|
+
var getPagination_1 = __webpack_require__(34);
|
|
909
942
|
|
|
910
|
-
var useDeepMemo_1 = __webpack_require__(
|
|
943
|
+
var useDeepMemo_1 = __webpack_require__(44);
|
|
911
944
|
|
|
912
|
-
var MissingPropsMessage_1 = __webpack_require__(
|
|
945
|
+
var MissingPropsMessage_1 = __webpack_require__(45);
|
|
913
946
|
|
|
914
|
-
var withEditModeCover_1 = __webpack_require__(
|
|
947
|
+
var withEditModeCover_1 = __webpack_require__(46);
|
|
915
948
|
|
|
916
|
-
var withPlaceholder_1 = __webpack_require__(
|
|
949
|
+
var withPlaceholder_1 = __webpack_require__(47);
|
|
950
|
+
|
|
951
|
+
var UUID = id_1.createGUID();
|
|
917
952
|
/**
|
|
918
953
|
* hoc that wraps a pure react visualization in a Dashboard visualization
|
|
919
954
|
* @param {DashboardVizOpts} opts
|
|
920
955
|
* @returns {HOC}
|
|
921
956
|
*/
|
|
922
957
|
|
|
923
|
-
|
|
924
958
|
var withDashboardViz = function withDashboardViz(opts) {
|
|
925
959
|
var ReactViz = opts.ReactViz,
|
|
926
960
|
vizConfig = opts.vizConfig,
|
|
@@ -933,6 +967,8 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
933
967
|
var defaultOptions = JSONSchemaUtils_1.pickFieldFromJSONSchema(vizConfig.optionsSchema, 'default');
|
|
934
968
|
|
|
935
969
|
var DashboardViz = function DashboardViz(props) {
|
|
970
|
+
var _a;
|
|
971
|
+
|
|
936
972
|
var mode = props.mode,
|
|
937
973
|
hasEventHandlers = props.hasEventHandlers,
|
|
938
974
|
dataSources = props.dataSources,
|
|
@@ -980,38 +1016,97 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
980
1016
|
|
|
981
1017
|
var evaluatedOptions = {}; // evaluatedOptions need to be initialized as an empty object
|
|
982
1018
|
|
|
1019
|
+
var _React$useState = React.useState({}),
|
|
1020
|
+
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
1021
|
+
evaluatedOptionsAsync = _React$useState2[0],
|
|
1022
|
+
setEvaluatedOptionsAsync = _React$useState2[1]; // evaluatedOptions need to be initialized as an empty object
|
|
1023
|
+
|
|
1024
|
+
|
|
1025
|
+
var featureFlagContext = React.useContext(FeatureFlagContext_1.default);
|
|
1026
|
+
|
|
1027
|
+
var _React$useState3 = React.useState("".concat(vizConfig.name, " - ").concat(UUID)),
|
|
1028
|
+
_React$useState4 = _slicedToArray(_React$useState3, 1),
|
|
1029
|
+
visualizationID = _React$useState4[0];
|
|
1030
|
+
|
|
1031
|
+
var _React$useState5 = React.useState(Boolean(featureFlagContext && featureFlagContext.visualizations_useWebWorkersForDSL && typeof Worker !== 'undefined')),
|
|
1032
|
+
_React$useState6 = _slicedToArray(_React$useState5, 2),
|
|
1033
|
+
useAsyncEvaluatedOptions = _React$useState6[0],
|
|
1034
|
+
setUseAsyncEvaluatedOptions = _React$useState6[1];
|
|
1035
|
+
|
|
983
1036
|
evaluatedOptions = useDeepMemo_1.useDeepMemo(function () {
|
|
984
1037
|
try {
|
|
985
|
-
|
|
986
|
-
|
|
987
|
-
|
|
988
|
-
|
|
1038
|
+
if (useAsyncEvaluatedOptions) {
|
|
1039
|
+
var optionsToEvaluate = {
|
|
1040
|
+
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
1041
|
+
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
1042
|
+
};
|
|
1043
|
+
var asyncDynamicOptionsEvaluatorParams = {
|
|
1044
|
+
visualizationID: visualizationID,
|
|
1045
|
+
props: props,
|
|
1046
|
+
options: optionsToEvaluate,
|
|
1047
|
+
dataSources: dataSources,
|
|
1048
|
+
theme: vizConfig.themes
|
|
1049
|
+
};
|
|
1050
|
+
async_dynamic_options_evaluator_1.default.evaluate(asyncDynamicOptionsEvaluatorParams).then(function (results) {
|
|
1051
|
+
setEvaluatedOptionsAsync(results.results);
|
|
1052
|
+
}).catch(function (e) {
|
|
1053
|
+
// eslint-disable-next-line no-console
|
|
1054
|
+
console.error("unexpected error evaluating options - async: ".concat(e.message));
|
|
1055
|
+
setUseAsyncEvaluatedOptions(false);
|
|
1056
|
+
});
|
|
1057
|
+
} else {
|
|
1058
|
+
return Options_1.Options.evaluate({
|
|
1059
|
+
context: lodash_1.defaultsDeep({}, context, vizConfig.defaultContext),
|
|
1060
|
+
options: hocUtils_1.deepMergeWithArrayPrimitiveOverrides({}, options, defaultOptions)
|
|
1061
|
+
}, dataSources, themeFunc);
|
|
1062
|
+
}
|
|
989
1063
|
} catch (e) {
|
|
990
1064
|
// eslint-disable-next-line no-console
|
|
991
|
-
console.error("unexpected error evaluating options:
|
|
1065
|
+
console.error("unexpected error evaluating options: ".concat(e.message));
|
|
992
1066
|
return {};
|
|
993
1067
|
}
|
|
994
|
-
|
|
1068
|
+
|
|
1069
|
+
return {};
|
|
1070
|
+
}, [currentThemeFamily, currentThemeColorScheme, currentThemeDensity, options, context, dataSources, serializedTimezone, useAsyncEvaluatedOptions]);
|
|
1071
|
+
var evaluatedOptionsToUse = !useAsyncEvaluatedOptions ? evaluatedOptions : evaluatedOptionsAsync; // trellis specific backgroundColor update for onComputedProps
|
|
1072
|
+
// 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
|
|
1073
|
+
// onComputedProps api should return back trellisBackgroundColor value for backgroundColor option to support coloring of sibling panels (for eg:- title/ description on UDF side)
|
|
1074
|
+
|
|
1075
|
+
var isTrellisFeatureFlagOn = Boolean(featureFlagContext && featureFlagContext.visualizations_enableTrellis);
|
|
1076
|
+
var clonedEvaluatedOptions = lodash_1.cloneDeep(evaluatedOptionsToUse);
|
|
1077
|
+
|
|
1078
|
+
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) {
|
|
1079
|
+
clonedEvaluatedOptions.backgroundColor = clonedEvaluatedOptions === null || clonedEvaluatedOptions === void 0 ? void 0 : clonedEvaluatedOptions.trellisBackgroundColor;
|
|
1080
|
+
} // useEffect hook needs to be initialized before any early returns
|
|
995
1081
|
// this is in accordance with the order of hook calls being the same on each render https://reactjs.org/docs/hooks-rules.html#explanation
|
|
996
1082
|
|
|
1083
|
+
|
|
997
1084
|
React.useEffect(function () {
|
|
998
|
-
onComputedProps(
|
|
999
|
-
});
|
|
1085
|
+
onComputedProps(clonedEvaluatedOptions);
|
|
1086
|
+
});
|
|
1087
|
+
React.useEffect(function () {
|
|
1088
|
+
return function () {
|
|
1089
|
+
if (useAsyncEvaluatedOptions) {
|
|
1090
|
+
async_dynamic_options_evaluator_1.default.reset(visualizationID);
|
|
1091
|
+
}
|
|
1092
|
+
}; // eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1093
|
+
}, []); // present warning message if any required props are missing
|
|
1000
1094
|
|
|
1001
1095
|
var _vizConfig$requiredPr = vizConfig.requiredProps,
|
|
1002
1096
|
requiredProps = _vizConfig$requiredPr === void 0 ? [] : _vizConfig$requiredPr,
|
|
1003
1097
|
supports = vizConfig.supports;
|
|
1004
|
-
var missing = MissingPropsMessage_1.missingKeys(requiredProps,
|
|
1005
|
-
|
|
1006
|
-
if (missing.length > 0 && supports.includes(VizBehavior_1.VizBehavior.PLACEHOLDER)
|
|
1007
|
-
|
|
1008
|
-
|
|
1009
|
-
|
|
1010
|
-
|
|
1011
|
-
|
|
1012
|
-
|
|
1013
|
-
|
|
1014
|
-
|
|
1098
|
+
var missing = MissingPropsMessage_1.missingKeys(requiredProps, evaluatedOptionsToUse);
|
|
1099
|
+
|
|
1100
|
+
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
|
|
1101
|
+
) {
|
|
1102
|
+
return React.createElement(MissingPropsMessage_1.default, {
|
|
1103
|
+
"data-test": "missing-props-message",
|
|
1104
|
+
width: width,
|
|
1105
|
+
height: height,
|
|
1106
|
+
missingProps: missing,
|
|
1107
|
+
backgroundColor: bgColorFromTheme
|
|
1108
|
+
});
|
|
1109
|
+
} // events
|
|
1015
1110
|
|
|
1016
1111
|
|
|
1017
1112
|
var eventCallbackProps = {};
|
|
@@ -1028,7 +1123,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1028
1123
|
|
|
1029
1124
|
if (Array.isArray(payloadKeys) && payloadKeys.length) {
|
|
1030
1125
|
payloadKeys.forEach(function (p) {
|
|
1031
|
-
payload[p] =
|
|
1126
|
+
payload[p] = evaluatedOptionsToUse[p];
|
|
1032
1127
|
});
|
|
1033
1128
|
}
|
|
1034
1129
|
|
|
@@ -1047,7 +1142,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1047
1142
|
} // compute pure viz props which are not from options
|
|
1048
1143
|
|
|
1049
1144
|
|
|
1050
|
-
var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props),
|
|
1145
|
+
var computedVizProps = computeVizProps(Object.assign(Object.assign(Object.assign(Object.assign({}, props), evaluatedOptionsToUse), eventCallbackProps), {
|
|
1051
1146
|
themeFunc: themeFunc
|
|
1052
1147
|
}));
|
|
1053
1148
|
/**
|
|
@@ -1067,7 +1162,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1067
1162
|
|
|
1068
1163
|
var dataSourceMetadata = {};
|
|
1069
1164
|
var OptionKey = 'paginateDataSourceKey';
|
|
1070
|
-
var paginateDataSourceKey = lodash_1.has(
|
|
1165
|
+
var paginateDataSourceKey = lodash_1.has(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey] || 'primary';
|
|
1071
1166
|
|
|
1072
1167
|
if (vizConfig.supports.indexOf(VizBehavior_1.VizBehavior.PAGE_AND_SORT) > -1 && lodash_1.has(dataSources, paginateDataSourceKey)) {
|
|
1073
1168
|
var requestParams = lodash_1.get(dataSources, [paginateDataSourceKey, 'requestParams'], {});
|
|
@@ -1097,7 +1192,7 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1097
1192
|
mode: mode,
|
|
1098
1193
|
width: width,
|
|
1099
1194
|
height: height
|
|
1100
|
-
},
|
|
1195
|
+
}, evaluatedOptionsToUse, computedVizProps, eventCallbackProps, dataSourceMetadata));
|
|
1101
1196
|
};
|
|
1102
1197
|
|
|
1103
1198
|
DashboardViz.propTypes = Object.assign(Object.assign({}, SplunkVisualization_1.default.propTypes), ReactViz.propTypes);
|
|
@@ -1114,31 +1209,31 @@ var withDashboardViz = function withDashboardViz(opts) {
|
|
|
1114
1209
|
exports.default = withDashboardViz;
|
|
1115
1210
|
|
|
1116
1211
|
/***/ }),
|
|
1117
|
-
/*
|
|
1212
|
+
/* 37 */
|
|
1118
1213
|
/***/ (function(module, exports) {
|
|
1119
1214
|
|
|
1120
1215
|
module.exports = require("@splunk/themes/getSettingsFromThemedProps");
|
|
1121
1216
|
|
|
1122
1217
|
/***/ }),
|
|
1123
|
-
/*
|
|
1218
|
+
/* 38 */
|
|
1124
1219
|
/***/ (function(module, exports) {
|
|
1125
1220
|
|
|
1126
|
-
module.exports = require("@splunk/
|
|
1221
|
+
module.exports = require("@splunk/visualizations-shared/SanitizeProps");
|
|
1127
1222
|
|
|
1128
1223
|
/***/ }),
|
|
1129
|
-
/*
|
|
1224
|
+
/* 39 */
|
|
1130
1225
|
/***/ (function(module, exports) {
|
|
1131
1226
|
|
|
1132
|
-
module.exports = require("@splunk/
|
|
1227
|
+
module.exports = require("@splunk/moment");
|
|
1133
1228
|
|
|
1134
1229
|
/***/ }),
|
|
1135
|
-
/*
|
|
1230
|
+
/* 40 */
|
|
1136
1231
|
/***/ (function(module, exports) {
|
|
1137
1232
|
|
|
1138
|
-
module.exports = require("@splunk/
|
|
1233
|
+
module.exports = require("@splunk/async-dynamic-options-evaluator");
|
|
1139
1234
|
|
|
1140
1235
|
/***/ }),
|
|
1141
|
-
/*
|
|
1236
|
+
/* 41 */
|
|
1142
1237
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1143
1238
|
|
|
1144
1239
|
"use strict";
|
|
@@ -1152,11 +1247,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1152
1247
|
exports.INITIAL_HEIGHT = exports.INITIAL_WIDTH = void 0;
|
|
1153
1248
|
/* eslint-disable react/no-unused-prop-types,react/prefer-stateless-function */
|
|
1154
1249
|
|
|
1155
|
-
var T = __webpack_require__(
|
|
1250
|
+
var T = __webpack_require__(1);
|
|
1156
1251
|
|
|
1157
1252
|
var lodash_1 = __webpack_require__(3);
|
|
1158
1253
|
|
|
1159
|
-
var VizActionHandler_1 = __webpack_require__(
|
|
1254
|
+
var VizActionHandler_1 = __webpack_require__(42); // this is identical to the initial height and width we use in BaseVisualization in dashboard-visualizations
|
|
1160
1255
|
|
|
1161
1256
|
|
|
1162
1257
|
exports.INITIAL_WIDTH = 250;
|
|
@@ -1289,7 +1384,7 @@ SplunkVisualization.defaultProps = {
|
|
|
1289
1384
|
exports.default = SplunkVisualization;
|
|
1290
1385
|
|
|
1291
1386
|
/***/ }),
|
|
1292
|
-
/*
|
|
1387
|
+
/* 42 */
|
|
1293
1388
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1294
1389
|
|
|
1295
1390
|
"use strict";
|
|
@@ -1297,7 +1392,7 @@ exports.default = SplunkVisualization;
|
|
|
1297
1392
|
|
|
1298
1393
|
var _classCallCheck = __webpack_require__(11);
|
|
1299
1394
|
|
|
1300
|
-
var _createClass = __webpack_require__(
|
|
1395
|
+
var _createClass = __webpack_require__(22);
|
|
1301
1396
|
|
|
1302
1397
|
Object.defineProperty(exports, "__esModule", {
|
|
1303
1398
|
value: true
|
|
@@ -1326,7 +1421,7 @@ var DefaultVizActionHandler = /*#__PURE__*/function () {
|
|
|
1326
1421
|
exports.DefaultVizActionHandler = DefaultVizActionHandler;
|
|
1327
1422
|
|
|
1328
1423
|
/***/ }),
|
|
1329
|
-
/*
|
|
1424
|
+
/* 43 */
|
|
1330
1425
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1331
1426
|
|
|
1332
1427
|
"use strict";
|
|
@@ -1339,7 +1434,7 @@ exports.validSortDirs = void 0;
|
|
|
1339
1434
|
exports.validSortDirs = ['asc', 'desc', 'none'];
|
|
1340
1435
|
|
|
1341
1436
|
/***/ }),
|
|
1342
|
-
/*
|
|
1437
|
+
/* 44 */
|
|
1343
1438
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1344
1439
|
|
|
1345
1440
|
"use strict";
|
|
@@ -1350,7 +1445,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1350
1445
|
});
|
|
1351
1446
|
exports.useDeepMemo = void 0;
|
|
1352
1447
|
|
|
1353
|
-
var react_1 = __webpack_require__(
|
|
1448
|
+
var react_1 = __webpack_require__(0);
|
|
1354
1449
|
|
|
1355
1450
|
var lodash_1 = __webpack_require__(3);
|
|
1356
1451
|
/**
|
|
@@ -1384,7 +1479,7 @@ var useDeepMemo = function useDeepMemo(fn, dependencies) {
|
|
|
1384
1479
|
exports.useDeepMemo = useDeepMemo;
|
|
1385
1480
|
|
|
1386
1481
|
/***/ }),
|
|
1387
|
-
/*
|
|
1482
|
+
/* 45 */
|
|
1388
1483
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1389
1484
|
|
|
1390
1485
|
"use strict";
|
|
@@ -1395,13 +1490,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1395
1490
|
});
|
|
1396
1491
|
exports.MissingPropsMessage = exports.missingKeys = exports.isMissing = void 0;
|
|
1397
1492
|
|
|
1398
|
-
var React = __webpack_require__(
|
|
1493
|
+
var React = __webpack_require__(0);
|
|
1399
1494
|
|
|
1400
|
-
var T = __webpack_require__(
|
|
1495
|
+
var T = __webpack_require__(1);
|
|
1401
1496
|
|
|
1402
1497
|
var i18n_1 = __webpack_require__(2);
|
|
1403
1498
|
|
|
1404
|
-
var Message_1 = __webpack_require__(
|
|
1499
|
+
var Message_1 = __webpack_require__(9);
|
|
1405
1500
|
|
|
1406
1501
|
var FixedSizeContainer_1 = __webpack_require__(13);
|
|
1407
1502
|
/**
|
|
@@ -1464,7 +1559,7 @@ exports.MissingPropsMessage.defaultProps = {
|
|
|
1464
1559
|
exports.default = FixedSizeContainer_1.default(exports.MissingPropsMessage);
|
|
1465
1560
|
|
|
1466
1561
|
/***/ }),
|
|
1467
|
-
/*
|
|
1562
|
+
/* 46 */
|
|
1468
1563
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1469
1564
|
|
|
1470
1565
|
"use strict";
|
|
@@ -1474,18 +1569,18 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1474
1569
|
value: true
|
|
1475
1570
|
});
|
|
1476
1571
|
|
|
1477
|
-
var React = __webpack_require__(
|
|
1572
|
+
var React = __webpack_require__(0);
|
|
1478
1573
|
|
|
1479
1574
|
var styled_components_1 = __webpack_require__(4);
|
|
1480
1575
|
|
|
1481
|
-
var hocUtils_1 = __webpack_require__(
|
|
1576
|
+
var hocUtils_1 = __webpack_require__(15);
|
|
1482
1577
|
|
|
1483
1578
|
var Cover = styled_components_1.default.div.withConfig({
|
|
1484
1579
|
displayName: "withEditModeCover__Cover",
|
|
1485
1580
|
componentId: "sc-1gsbnxb-0"
|
|
1486
1581
|
})(["position:absolute;left:0;right:0;top:0;bottom:0;"]);
|
|
1487
1582
|
var Blocker = styled_components_1.default.div.attrs({
|
|
1488
|
-
'data-splunk-visualization-version': "25.
|
|
1583
|
+
'data-splunk-visualization-version': "25.7.0 - d10a7789b"
|
|
1489
1584
|
}).withConfig({
|
|
1490
1585
|
displayName: "withEditModeCover__Blocker",
|
|
1491
1586
|
componentId: "sc-1gsbnxb-1"
|
|
@@ -1516,7 +1611,7 @@ var withEditModeCover = function withEditModeCover(Visualization, disableEditMod
|
|
|
1516
1611
|
exports.default = withEditModeCover;
|
|
1517
1612
|
|
|
1518
1613
|
/***/ }),
|
|
1519
|
-
/*
|
|
1614
|
+
/* 47 */
|
|
1520
1615
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1521
1616
|
|
|
1522
1617
|
"use strict";
|
|
@@ -1526,17 +1621,17 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1526
1621
|
value: true
|
|
1527
1622
|
});
|
|
1528
1623
|
|
|
1529
|
-
var React = __webpack_require__(
|
|
1624
|
+
var React = __webpack_require__(0);
|
|
1530
1625
|
|
|
1531
1626
|
var colorUtils_1 = __webpack_require__(12);
|
|
1532
1627
|
|
|
1533
|
-
var variables_1 = __webpack_require__(
|
|
1628
|
+
var variables_1 = __webpack_require__(10);
|
|
1534
1629
|
|
|
1535
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
1630
|
+
var IconPlaceholder_1 = __webpack_require__(31);
|
|
1536
1631
|
|
|
1537
1632
|
var VizBehavior_1 = __webpack_require__(6);
|
|
1538
1633
|
|
|
1539
|
-
var hocUtils_1 = __webpack_require__(
|
|
1634
|
+
var hocUtils_1 = __webpack_require__(15);
|
|
1540
1635
|
|
|
1541
1636
|
var withPlaceholder = function withPlaceholder(Visualization) {
|
|
1542
1637
|
var useIconPlaceholder = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : IconPlaceholder_1.shouldShowIconPlaceholder;
|
|
@@ -1580,41 +1675,42 @@ var withPlaceholder = function withPlaceholder(Visualization) {
|
|
|
1580
1675
|
exports.default = withPlaceholder;
|
|
1581
1676
|
|
|
1582
1677
|
/***/ }),
|
|
1583
|
-
/*
|
|
1678
|
+
/* 48 */
|
|
1584
1679
|
/***/ (function(module, exports) {
|
|
1585
1680
|
|
|
1586
1681
|
module.exports = require("@splunk/visualization-icons/placeholders");
|
|
1587
1682
|
|
|
1588
1683
|
/***/ }),
|
|
1589
|
-
/*
|
|
1590
|
-
/*
|
|
1591
|
-
/*
|
|
1684
|
+
/* 49 */,
|
|
1685
|
+
/* 50 */,
|
|
1686
|
+
/* 51 */
|
|
1592
1687
|
/***/ (function(module, exports) {
|
|
1593
1688
|
|
|
1594
1689
|
module.exports = require("@splunk/visualization-icons");
|
|
1595
1690
|
|
|
1596
1691
|
/***/ }),
|
|
1597
|
-
/* 48 */,
|
|
1598
|
-
/* 49 */,
|
|
1599
|
-
/* 50 */,
|
|
1600
|
-
/* 51 */,
|
|
1601
1692
|
/* 52 */,
|
|
1602
1693
|
/* 53 */,
|
|
1603
|
-
/* 54
|
|
1604
|
-
/***/ (function(module, exports) {
|
|
1605
|
-
|
|
1606
|
-
module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
|
|
1607
|
-
|
|
1608
|
-
/***/ }),
|
|
1694
|
+
/* 54 */,
|
|
1609
1695
|
/* 55 */,
|
|
1610
1696
|
/* 56 */,
|
|
1611
1697
|
/* 57 */,
|
|
1612
1698
|
/* 58 */,
|
|
1613
1699
|
/* 59 */,
|
|
1614
|
-
/* 60
|
|
1700
|
+
/* 60 */
|
|
1701
|
+
/***/ (function(module, exports) {
|
|
1702
|
+
|
|
1703
|
+
module.exports = require("@splunk/visualization-color-palettes/editors/PresetPalettes");
|
|
1704
|
+
|
|
1705
|
+
/***/ }),
|
|
1615
1706
|
/* 61 */,
|
|
1616
1707
|
/* 62 */,
|
|
1617
|
-
/* 63
|
|
1708
|
+
/* 63 */,
|
|
1709
|
+
/* 64 */,
|
|
1710
|
+
/* 65 */,
|
|
1711
|
+
/* 66 */,
|
|
1712
|
+
/* 67 */,
|
|
1713
|
+
/* 68 */
|
|
1618
1714
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1619
1715
|
|
|
1620
1716
|
"use strict";
|
|
@@ -1637,11 +1733,6 @@ VizStyleWrapper.displayName = 'VizStyleWrapper';
|
|
|
1637
1733
|
/* harmony default export */ __webpack_exports__["default"] = (VizStyleWrapper);
|
|
1638
1734
|
|
|
1639
1735
|
/***/ }),
|
|
1640
|
-
/* 64 */,
|
|
1641
|
-
/* 65 */,
|
|
1642
|
-
/* 66 */,
|
|
1643
|
-
/* 67 */,
|
|
1644
|
-
/* 68 */,
|
|
1645
1736
|
/* 69 */,
|
|
1646
1737
|
/* 70 */,
|
|
1647
1738
|
/* 71 */,
|
|
@@ -1651,14 +1742,20 @@ VizStyleWrapper.displayName = 'VizStyleWrapper';
|
|
|
1651
1742
|
/* 75 */,
|
|
1652
1743
|
/* 76 */,
|
|
1653
1744
|
/* 77 */,
|
|
1654
|
-
/* 78
|
|
1745
|
+
/* 78 */,
|
|
1746
|
+
/* 79 */,
|
|
1747
|
+
/* 80 */,
|
|
1748
|
+
/* 81 */,
|
|
1749
|
+
/* 82 */,
|
|
1750
|
+
/* 83 */,
|
|
1751
|
+
/* 84 */
|
|
1655
1752
|
/***/ (function(module, __webpack_exports__, __webpack_require__) {
|
|
1656
1753
|
|
|
1657
1754
|
"use strict";
|
|
1658
1755
|
__webpack_require__.r(__webpack_exports__);
|
|
1659
1756
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(2);
|
|
1660
1757
|
/* harmony import */ var _splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(_splunk_ui_utils_i18n__WEBPACK_IMPORTED_MODULE_0__);
|
|
1661
|
-
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(
|
|
1758
|
+
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(21);
|
|
1662
1759
|
/* harmony import */ var _splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1___default = /*#__PURE__*/__webpack_require__.n(_splunk_visualizations_shared_configUtils__WEBPACK_IMPORTED_MODULE_1__);
|
|
1663
1760
|
|
|
1664
1761
|
|
|
@@ -1674,12 +1771,6 @@ var StaticBackgroundColorEditor = {
|
|
|
1674
1771
|
/* harmony default export */ __webpack_exports__["default"] = (StaticBackgroundColorEditor);
|
|
1675
1772
|
|
|
1676
1773
|
/***/ }),
|
|
1677
|
-
/* 79 */,
|
|
1678
|
-
/* 80 */,
|
|
1679
|
-
/* 81 */,
|
|
1680
|
-
/* 82 */,
|
|
1681
|
-
/* 83 */,
|
|
1682
|
-
/* 84 */,
|
|
1683
1774
|
/* 85 */,
|
|
1684
1775
|
/* 86 */,
|
|
1685
1776
|
/* 87 */,
|
|
@@ -1689,45 +1780,40 @@ var StaticBackgroundColorEditor = {
|
|
|
1689
1780
|
/* 91 */,
|
|
1690
1781
|
/* 92 */,
|
|
1691
1782
|
/* 93 */,
|
|
1692
|
-
/* 94
|
|
1693
|
-
/***/ (function(module, exports) {
|
|
1694
|
-
|
|
1695
|
-
module.exports = require("@splunk/visualization-context/FeatureFlagContext");
|
|
1696
|
-
|
|
1697
|
-
/***/ }),
|
|
1783
|
+
/* 94 */,
|
|
1698
1784
|
/* 95 */,
|
|
1699
1785
|
/* 96 */,
|
|
1700
1786
|
/* 97 */,
|
|
1701
1787
|
/* 98 */,
|
|
1702
1788
|
/* 99 */,
|
|
1703
1789
|
/* 100 */,
|
|
1704
|
-
/* 101
|
|
1790
|
+
/* 101 */,
|
|
1791
|
+
/* 102 */,
|
|
1792
|
+
/* 103 */,
|
|
1793
|
+
/* 104 */,
|
|
1794
|
+
/* 105 */,
|
|
1795
|
+
/* 106 */,
|
|
1796
|
+
/* 107 */,
|
|
1797
|
+
/* 108 */,
|
|
1798
|
+
/* 109 */,
|
|
1799
|
+
/* 110 */
|
|
1705
1800
|
/***/ (function(module, exports) {
|
|
1706
1801
|
|
|
1707
1802
|
module.exports = require("@babel/runtime/helpers/inherits");
|
|
1708
1803
|
|
|
1709
1804
|
/***/ }),
|
|
1710
|
-
/*
|
|
1805
|
+
/* 111 */
|
|
1711
1806
|
/***/ (function(module, exports) {
|
|
1712
1807
|
|
|
1713
1808
|
module.exports = require("@babel/runtime/helpers/possibleConstructorReturn");
|
|
1714
1809
|
|
|
1715
1810
|
/***/ }),
|
|
1716
|
-
/*
|
|
1811
|
+
/* 112 */
|
|
1717
1812
|
/***/ (function(module, exports) {
|
|
1718
1813
|
|
|
1719
1814
|
module.exports = require("@babel/runtime/helpers/getPrototypeOf");
|
|
1720
1815
|
|
|
1721
1816
|
/***/ }),
|
|
1722
|
-
/* 104 */,
|
|
1723
|
-
/* 105 */,
|
|
1724
|
-
/* 106 */,
|
|
1725
|
-
/* 107 */,
|
|
1726
|
-
/* 108 */,
|
|
1727
|
-
/* 109 */,
|
|
1728
|
-
/* 110 */,
|
|
1729
|
-
/* 111 */,
|
|
1730
|
-
/* 112 */,
|
|
1731
1817
|
/* 113 */,
|
|
1732
1818
|
/* 114 */,
|
|
1733
1819
|
/* 115 */,
|
|
@@ -1744,7 +1830,21 @@ module.exports = require("@babel/runtime/helpers/getPrototypeOf");
|
|
|
1744
1830
|
/* 126 */,
|
|
1745
1831
|
/* 127 */,
|
|
1746
1832
|
/* 128 */,
|
|
1747
|
-
/* 129
|
|
1833
|
+
/* 129 */,
|
|
1834
|
+
/* 130 */,
|
|
1835
|
+
/* 131 */,
|
|
1836
|
+
/* 132 */,
|
|
1837
|
+
/* 133 */,
|
|
1838
|
+
/* 134 */,
|
|
1839
|
+
/* 135 */,
|
|
1840
|
+
/* 136 */,
|
|
1841
|
+
/* 137 */,
|
|
1842
|
+
/* 138 */,
|
|
1843
|
+
/* 139 */,
|
|
1844
|
+
/* 140 */,
|
|
1845
|
+
/* 141 */,
|
|
1846
|
+
/* 142 */,
|
|
1847
|
+
/* 143 */
|
|
1748
1848
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1749
1849
|
|
|
1750
1850
|
"use strict";
|
|
@@ -1752,13 +1852,13 @@ module.exports = require("@babel/runtime/helpers/getPrototypeOf");
|
|
|
1752
1852
|
|
|
1753
1853
|
var _classCallCheck = __webpack_require__(11);
|
|
1754
1854
|
|
|
1755
|
-
var _createClass = __webpack_require__(
|
|
1855
|
+
var _createClass = __webpack_require__(22);
|
|
1756
1856
|
|
|
1757
|
-
var _inherits = __webpack_require__(
|
|
1857
|
+
var _inherits = __webpack_require__(110);
|
|
1758
1858
|
|
|
1759
|
-
var _possibleConstructorReturn = __webpack_require__(
|
|
1859
|
+
var _possibleConstructorReturn = __webpack_require__(111);
|
|
1760
1860
|
|
|
1761
|
-
var _getPrototypeOf = __webpack_require__(
|
|
1861
|
+
var _getPrototypeOf = __webpack_require__(112);
|
|
1762
1862
|
|
|
1763
1863
|
function _createSuper(Derived) { var hasNativeReflectConstruct = _isNativeReflectConstruct(); return function _createSuperInternal() { var Super = _getPrototypeOf(Derived), result; if (hasNativeReflectConstruct) { var NewTarget = _getPrototypeOf(this).constructor; result = Reflect.construct(Super, arguments, NewTarget); } else { result = Super.apply(this, arguments); } return _possibleConstructorReturn(this, result); }; }
|
|
1764
1864
|
|
|
@@ -1768,11 +1868,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1768
1868
|
value: true
|
|
1769
1869
|
});
|
|
1770
1870
|
|
|
1771
|
-
var React = __webpack_require__(
|
|
1871
|
+
var React = __webpack_require__(0);
|
|
1772
1872
|
|
|
1773
1873
|
var lodash_1 = __webpack_require__(3);
|
|
1774
1874
|
|
|
1775
|
-
var SvgMutator_1 = __webpack_require__(
|
|
1875
|
+
var SvgMutator_1 = __webpack_require__(186);
|
|
1776
1876
|
/**
|
|
1777
1877
|
* This react component simply take an SVG document, and mutates it by applying data to the document according to
|
|
1778
1878
|
* dataBindings. The data (data prop) is processed by performing the mutation once for each 'row' of the data even though the data is formatted as columns.
|
|
@@ -1825,20 +1925,17 @@ var SvgChoroplethDynamic = /*#__PURE__*/function (_React$Component) {
|
|
|
1825
1925
|
key: "componentDidMount",
|
|
1826
1926
|
value: function componentDidMount() {
|
|
1827
1927
|
this.mutate();
|
|
1828
|
-
}
|
|
1829
|
-
// fill whatever component it is in. If we revisit that, we need to remember to allow the component to
|
|
1830
|
-
// update when width and height change
|
|
1831
|
-
|
|
1928
|
+
}
|
|
1832
1929
|
}, {
|
|
1833
1930
|
key: "shouldComponentUpdate",
|
|
1834
1931
|
value: function shouldComponentUpdate(nextProps, nextState) {
|
|
1835
1932
|
return nextProps.svg !== this.props.svg || !lodash_1.isEqual(nextProps.data, this.props.data) || // must do deep equal on data because when no data is passed we do 'let data = { featureIDs: [], values: [], fill: [] };' in ChoroplethSVG which looks to react like different data every time
|
|
1836
|
-
nextState.svgNode !== this.state.svgNode;
|
|
1933
|
+
nextState.svgNode !== this.state.svgNode || !lodash_1.isEqual(nextProps.width, this.props.width) || !lodash_1.isEqual(nextProps.height, this.props.height);
|
|
1837
1934
|
}
|
|
1838
1935
|
}, {
|
|
1839
1936
|
key: "componentDidUpdate",
|
|
1840
1937
|
value: function componentDidUpdate(prevProps) {
|
|
1841
|
-
if (prevProps.svg !== this.props.svg || !lodash_1.isEqual(prevProps.data, this.props.data)) {
|
|
1938
|
+
if (prevProps.svg !== this.props.svg || !lodash_1.isEqual(prevProps.data, this.props.data) || !lodash_1.isEqual(prevProps.width, this.props.width) || !lodash_1.isEqual(prevProps.height, this.props.height)) {
|
|
1842
1939
|
this.mutate();
|
|
1843
1940
|
}
|
|
1844
1941
|
}
|
|
@@ -1900,20 +1997,6 @@ SvgChoroplethDynamic.defaultProps = {
|
|
|
1900
1997
|
};
|
|
1901
1998
|
|
|
1902
1999
|
/***/ }),
|
|
1903
|
-
/* 130 */,
|
|
1904
|
-
/* 131 */,
|
|
1905
|
-
/* 132 */,
|
|
1906
|
-
/* 133 */,
|
|
1907
|
-
/* 134 */,
|
|
1908
|
-
/* 135 */,
|
|
1909
|
-
/* 136 */,
|
|
1910
|
-
/* 137 */,
|
|
1911
|
-
/* 138 */,
|
|
1912
|
-
/* 139 */,
|
|
1913
|
-
/* 140 */,
|
|
1914
|
-
/* 141 */,
|
|
1915
|
-
/* 142 */,
|
|
1916
|
-
/* 143 */,
|
|
1917
2000
|
/* 144 */,
|
|
1918
2001
|
/* 145 */,
|
|
1919
2002
|
/* 146 */,
|
|
@@ -1938,7 +2021,20 @@ SvgChoroplethDynamic.defaultProps = {
|
|
|
1938
2021
|
/* 165 */,
|
|
1939
2022
|
/* 166 */,
|
|
1940
2023
|
/* 167 */,
|
|
1941
|
-
/* 168
|
|
2024
|
+
/* 168 */,
|
|
2025
|
+
/* 169 */,
|
|
2026
|
+
/* 170 */,
|
|
2027
|
+
/* 171 */,
|
|
2028
|
+
/* 172 */,
|
|
2029
|
+
/* 173 */,
|
|
2030
|
+
/* 174 */,
|
|
2031
|
+
/* 175 */,
|
|
2032
|
+
/* 176 */,
|
|
2033
|
+
/* 177 */,
|
|
2034
|
+
/* 178 */,
|
|
2035
|
+
/* 179 */,
|
|
2036
|
+
/* 180 */,
|
|
2037
|
+
/* 181 */
|
|
1942
2038
|
/***/ (function(module, exports, __webpack_require__) {
|
|
1943
2039
|
|
|
1944
2040
|
"use strict";
|
|
@@ -1962,29 +2058,29 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
1962
2058
|
});
|
|
1963
2059
|
exports.useIconPlaceholder = exports.createProtocolHandlers = exports.PureSvgChoroplethDynamic = exports.PureChoroplethSvg = exports.config = void 0;
|
|
1964
2060
|
|
|
1965
|
-
var React = __webpack_require__(
|
|
2061
|
+
var React = __webpack_require__(0);
|
|
1966
2062
|
|
|
1967
|
-
var T = __webpack_require__(
|
|
2063
|
+
var T = __webpack_require__(1);
|
|
1968
2064
|
|
|
1969
2065
|
var lodash_1 = __webpack_require__(3);
|
|
1970
2066
|
|
|
1971
|
-
var FeatureFlagContext_1 = __webpack_require__(
|
|
2067
|
+
var FeatureFlagContext_1 = __webpack_require__(20);
|
|
1972
2068
|
|
|
1973
|
-
var ImageContext_1 = __webpack_require__(
|
|
2069
|
+
var ImageContext_1 = __webpack_require__(182);
|
|
1974
2070
|
|
|
1975
|
-
var FileDownloader_1 = __webpack_require__(
|
|
2071
|
+
var FileDownloader_1 = __webpack_require__(183);
|
|
1976
2072
|
|
|
1977
|
-
var Downloader_1 = __webpack_require__(
|
|
2073
|
+
var Downloader_1 = __webpack_require__(184);
|
|
1978
2074
|
|
|
1979
|
-
var withDashboardViz_1 = __webpack_require__(
|
|
2075
|
+
var withDashboardViz_1 = __webpack_require__(36);
|
|
1980
2076
|
|
|
1981
|
-
var PureChoroplethSvg_1 = __webpack_require__(
|
|
2077
|
+
var PureChoroplethSvg_1 = __webpack_require__(185);
|
|
1982
2078
|
|
|
1983
|
-
var SvgChoroplethDynamic_1 = __webpack_require__(
|
|
2079
|
+
var SvgChoroplethDynamic_1 = __webpack_require__(143);
|
|
1984
2080
|
|
|
1985
|
-
var config_1 = __webpack_require__(
|
|
2081
|
+
var config_1 = __webpack_require__(190);
|
|
1986
2082
|
|
|
1987
|
-
var IconPlaceholder_1 = __webpack_require__(
|
|
2083
|
+
var IconPlaceholder_1 = __webpack_require__(31);
|
|
1988
2084
|
|
|
1989
2085
|
exports.config = config_1.default;
|
|
1990
2086
|
exports.PureChoroplethSvg = PureChoroplethSvg_1.default; // todo: need remove when deleting @splunk/react-visualizations package
|
|
@@ -2068,25 +2164,25 @@ var platformViz = withDashboardViz_1.default({
|
|
|
2068
2164
|
exports.default = platformViz;
|
|
2069
2165
|
|
|
2070
2166
|
/***/ }),
|
|
2071
|
-
/*
|
|
2167
|
+
/* 182 */
|
|
2072
2168
|
/***/ (function(module, exports) {
|
|
2073
2169
|
|
|
2074
2170
|
module.exports = require("@splunk/visualization-context/ImageContext");
|
|
2075
2171
|
|
|
2076
2172
|
/***/ }),
|
|
2077
|
-
/*
|
|
2173
|
+
/* 183 */
|
|
2078
2174
|
/***/ (function(module, exports) {
|
|
2079
2175
|
|
|
2080
2176
|
module.exports = require("@splunk/visualizations-shared/FileDownloader");
|
|
2081
2177
|
|
|
2082
2178
|
/***/ }),
|
|
2083
|
-
/*
|
|
2179
|
+
/* 184 */
|
|
2084
2180
|
/***/ (function(module, exports) {
|
|
2085
2181
|
|
|
2086
2182
|
module.exports = require("@splunk/visualizations-shared/Downloader");
|
|
2087
2183
|
|
|
2088
2184
|
/***/ }),
|
|
2089
|
-
/*
|
|
2185
|
+
/* 185 */
|
|
2090
2186
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2091
2187
|
|
|
2092
2188
|
"use strict";
|
|
@@ -2110,19 +2206,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2110
2206
|
});
|
|
2111
2207
|
exports.computeSvgDynamicProps = void 0;
|
|
2112
2208
|
|
|
2113
|
-
var React = __webpack_require__(
|
|
2209
|
+
var React = __webpack_require__(0);
|
|
2114
2210
|
|
|
2115
2211
|
var styled_components_1 = __webpack_require__(4);
|
|
2116
2212
|
|
|
2117
2213
|
var lodash_1 = __webpack_require__(3);
|
|
2118
2214
|
|
|
2119
|
-
var style_1 = __webpack_require__(
|
|
2215
|
+
var style_1 = __webpack_require__(14);
|
|
2120
2216
|
|
|
2121
|
-
var SizeAwareWrapper_1 = __webpack_require__(
|
|
2217
|
+
var SizeAwareWrapper_1 = __webpack_require__(18);
|
|
2122
2218
|
|
|
2123
|
-
var SvgChoroplethDynamic_1 = __webpack_require__(
|
|
2219
|
+
var SvgChoroplethDynamic_1 = __webpack_require__(143);
|
|
2124
2220
|
|
|
2125
|
-
var VizStyleWrapper_1 = __webpack_require__(
|
|
2221
|
+
var VizStyleWrapper_1 = __webpack_require__(68);
|
|
2126
2222
|
|
|
2127
2223
|
var Container = styled_components_1.default.div.withConfig({
|
|
2128
2224
|
displayName: "PureChoroplethSvg__Container",
|
|
@@ -2192,7 +2288,7 @@ PureChoroplethSvg.defaultProps = {
|
|
|
2192
2288
|
exports.default = styled_components_1.withTheme(PureChoroplethSvg);
|
|
2193
2289
|
|
|
2194
2290
|
/***/ }),
|
|
2195
|
-
/*
|
|
2291
|
+
/* 186 */
|
|
2196
2292
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2197
2293
|
|
|
2198
2294
|
"use strict";
|
|
@@ -2200,7 +2296,7 @@ exports.default = styled_components_1.withTheme(PureChoroplethSvg);
|
|
|
2200
2296
|
|
|
2201
2297
|
var _classCallCheck = __webpack_require__(11);
|
|
2202
2298
|
|
|
2203
|
-
var _createClass = __webpack_require__(
|
|
2299
|
+
var _createClass = __webpack_require__(22);
|
|
2204
2300
|
|
|
2205
2301
|
Object.defineProperty(exports, "__esModule", {
|
|
2206
2302
|
value: true
|
|
@@ -2208,13 +2304,13 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2208
2304
|
exports.SvgMutator = exports.ERROR_NON_ATTRIBUTE_MUTATION = void 0;
|
|
2209
2305
|
/* eslint-disable no-param-reassign */
|
|
2210
2306
|
|
|
2211
|
-
var React = __webpack_require__(
|
|
2307
|
+
var React = __webpack_require__(0);
|
|
2212
2308
|
|
|
2213
|
-
var XPath = __webpack_require__(
|
|
2309
|
+
var XPath = __webpack_require__(187);
|
|
2214
2310
|
|
|
2215
|
-
var xmldom_1 = __webpack_require__(
|
|
2311
|
+
var xmldom_1 = __webpack_require__(188);
|
|
2216
2312
|
|
|
2217
|
-
var jexl = __webpack_require__(
|
|
2313
|
+
var jexl = __webpack_require__(189);
|
|
2218
2314
|
/**
|
|
2219
2315
|
* An error message indicating that a mutation has attempted to target anything other than SVG attribute(s)
|
|
2220
2316
|
* @type {string}
|
|
@@ -2618,25 +2714,25 @@ exports.SvgMutator = SvgMutator;
|
|
|
2618
2714
|
SvgMutator.serializer = new xmldom_1.XMLSerializer();
|
|
2619
2715
|
|
|
2620
2716
|
/***/ }),
|
|
2621
|
-
/*
|
|
2717
|
+
/* 187 */
|
|
2622
2718
|
/***/ (function(module, exports) {
|
|
2623
2719
|
|
|
2624
2720
|
module.exports = require("xpath");
|
|
2625
2721
|
|
|
2626
2722
|
/***/ }),
|
|
2627
|
-
/*
|
|
2723
|
+
/* 188 */
|
|
2628
2724
|
/***/ (function(module, exports) {
|
|
2629
2725
|
|
|
2630
2726
|
module.exports = require("@xmldom/xmldom");
|
|
2631
2727
|
|
|
2632
2728
|
/***/ }),
|
|
2633
|
-
/*
|
|
2729
|
+
/* 189 */
|
|
2634
2730
|
/***/ (function(module, exports) {
|
|
2635
2731
|
|
|
2636
2732
|
module.exports = require("jexl");
|
|
2637
2733
|
|
|
2638
2734
|
/***/ }),
|
|
2639
|
-
/*
|
|
2735
|
+
/* 190 */
|
|
2640
2736
|
/***/ (function(module, exports, __webpack_require__) {
|
|
2641
2737
|
|
|
2642
2738
|
"use strict";
|
|
@@ -2648,25 +2744,25 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
2648
2744
|
|
|
2649
2745
|
var i18n_1 = __webpack_require__(2);
|
|
2650
2746
|
|
|
2651
|
-
var pick_1 = __webpack_require__(
|
|
2747
|
+
var pick_1 = __webpack_require__(23);
|
|
2652
2748
|
|
|
2653
|
-
var variables_1 = __webpack_require__(
|
|
2749
|
+
var variables_1 = __webpack_require__(10);
|
|
2654
2750
|
|
|
2655
2751
|
var schemaUtils_1 = __webpack_require__(16);
|
|
2656
2752
|
|
|
2657
|
-
var PresetPalettes_1 = __webpack_require__(
|
|
2753
|
+
var PresetPalettes_1 = __webpack_require__(60);
|
|
2658
2754
|
|
|
2659
|
-
var visualization_icons_1 = __webpack_require__(
|
|
2755
|
+
var visualization_icons_1 = __webpack_require__(51);
|
|
2660
2756
|
|
|
2661
|
-
var placeholders_1 = __webpack_require__(
|
|
2757
|
+
var placeholders_1 = __webpack_require__(48);
|
|
2662
2758
|
|
|
2663
2759
|
var VizBehavior_1 = __webpack_require__(6);
|
|
2664
2760
|
|
|
2665
|
-
var configUtils_1 = __webpack_require__(
|
|
2761
|
+
var configUtils_1 = __webpack_require__(19);
|
|
2666
2762
|
|
|
2667
|
-
var VizCategory_1 = __webpack_require__(
|
|
2763
|
+
var VizCategory_1 = __webpack_require__(35);
|
|
2668
2764
|
|
|
2669
|
-
var StaticBackgroundColorEditor_1 = __webpack_require__(
|
|
2765
|
+
var StaticBackgroundColorEditor_1 = __webpack_require__(84);
|
|
2670
2766
|
|
|
2671
2767
|
var dataContract = {
|
|
2672
2768
|
requiredDataSources: [],
|
|
@@ -2783,12 +2879,12 @@ var editorConfig = [{
|
|
|
2783
2879
|
}, {
|
|
2784
2880
|
label: i18n_1._('Color and style'),
|
|
2785
2881
|
layout: [[{
|
|
2786
|
-
label: i18n_1._('
|
|
2882
|
+
label: i18n_1._('Areas'),
|
|
2787
2883
|
option: 'areaColors',
|
|
2788
2884
|
context: 'defaultContext',
|
|
2789
2885
|
editor: 'editor.dynamicColor',
|
|
2790
2886
|
editorProps: {
|
|
2791
|
-
labelPosition: '
|
|
2887
|
+
labelPosition: 'top',
|
|
2792
2888
|
flyoutTitle: i18n_1._('Dynamic coloring: value'),
|
|
2793
2889
|
formatters: [{
|
|
2794
2890
|
label: i18n_1._('Ranges'),
|
|
@@ -2812,7 +2908,6 @@ var editorConfig = [{
|
|
|
2812
2908
|
}
|
|
2813
2909
|
}], [Object.assign(Object.assign({}, StaticBackgroundColorEditor_1.default), {
|
|
2814
2910
|
editorProps: {
|
|
2815
|
-
labelPosition: 'left',
|
|
2816
2911
|
themes: themes
|
|
2817
2912
|
}
|
|
2818
2913
|
})]]
|