@splunk/visualizations 28.2.3 → 28.4.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/Area/Area.d.ts.map +1 -0
- package/Area/areaUtils.d.ts.map +1 -0
- package/Area/config.d.ts.map +1 -0
- package/Area/index.d.ts.map +1 -0
- package/Area.config.js +0 -1
- package/Area.config.js.map +2 -2
- package/Area.js +711 -184
- package/Area.js.map +4 -4
- package/Bar/Bar.d.ts.map +1 -0
- package/Bar/barUtils.d.ts.map +1 -0
- package/Bar/config.d.ts.map +1 -0
- package/Bar/index.d.ts.map +1 -0
- package/Bar.config.js +0 -1
- package/Bar.config.js.map +2 -2
- package/Bar.js +721 -184
- package/Bar.js.map +4 -4
- package/Bubble/Bubble.d.ts.map +1 -0
- package/Bubble/bubbleUtils.d.ts.map +1 -0
- package/Bubble/config.d.ts.map +1 -0
- package/Bubble/index.d.ts.map +1 -0
- package/Bubble.config.js +0 -1
- package/Bubble.config.js.map +2 -2
- package/Bubble.js +706 -167
- package/Bubble.js.map +4 -4
- package/CHANGELOG.external.md +99 -2
- package/{dist/types/ChoroplethSvg → ChoroplethSvg}/ChoroplethSvg.d.ts +4 -3
- package/ChoroplethSvg/ChoroplethSvg.d.ts.map +1 -0
- package/ChoroplethSvg/ErrorMessage/ErrorMessage.d.ts.map +1 -0
- package/ChoroplethSvg/PureChoroplethSvg/PureChoroplethSvg.d.ts.map +1 -0
- package/ChoroplethSvg/PureChoroplethSvg/SvgChoroplethDynamic.d.ts.map +1 -0
- package/ChoroplethSvg/PureChoroplethSvg/SvgMutator.d.ts.map +1 -0
- package/ChoroplethSvg/config.d.ts.map +1 -0
- package/ChoroplethSvg/index.d.ts.map +1 -0
- package/ChoroplethSvg.config.js +1 -3
- package/ChoroplethSvg.config.js.map +2 -2
- package/ChoroplethSvg.js +661 -109
- package/ChoroplethSvg.js.map +4 -4
- package/Column/Column.d.ts.map +1 -0
- package/Column/columnUtils.d.ts.map +1 -0
- package/Column/config.d.ts.map +1 -0
- package/Column/index.d.ts.map +1 -0
- package/Column.config.js +0 -1
- package/Column.config.js.map +2 -2
- package/Column.js +711 -184
- package/Column.js.map +4 -4
- package/Ellipse/Ellipse.d.ts.map +1 -0
- package/Ellipse/config.d.ts.map +1 -0
- package/Ellipse/index.d.ts.map +1 -0
- package/Ellipse.js +649 -107
- package/Ellipse.js.map +4 -4
- package/Events/EventUtils.d.ts.map +1 -0
- package/Events/Events.d.ts.map +1 -0
- package/Events/PureEvents/FieldSummaryTooltip.d.ts.map +1 -0
- package/Events/PureEvents/PureEvents.d.ts.map +1 -0
- package/Events/PureEvents/TimeControlsPopover.d.ts.map +1 -0
- package/Events/config.d.ts.map +1 -0
- package/Events/index.d.ts.map +1 -0
- package/Events.js +780 -193
- package/Events.js.map +4 -4
- package/FillerGauge/FillerGauge.d.ts.map +1 -0
- package/FillerGauge/PureFillerGauge/FillerGauge.d.ts.map +1 -0
- package/FillerGauge/config.d.ts.map +1 -0
- package/FillerGauge/index.d.ts.map +1 -0
- package/FillerGauge.js +656 -143
- package/FillerGauge.js.map +4 -4
- package/Image/Image.d.ts.map +1 -0
- package/Image/ImageApi.d.ts.map +1 -0
- package/Image/config.d.ts.map +1 -0
- package/Image/index.d.ts.map +1 -0
- package/Image.js +687 -113
- package/Image.js.map +4 -4
- package/LICENSE.md +0 -1
- package/Line/Line.d.ts.map +1 -0
- package/Line/config.d.ts.map +1 -0
- package/Line/index.d.ts.map +1 -0
- package/Line/lineUtils.d.ts.map +1 -0
- package/{dist/types/Line → Line}/mockdata/LineData.d.ts +59 -0
- package/Line/mockdata/LineData.d.ts.map +1 -0
- package/Line.config.js +0 -1
- package/Line.config.js.map +2 -2
- package/Line.js +817 -185
- package/Line.js.map +4 -4
- package/LinkGraph/ESTestDataSources.d.ts.map +1 -0
- package/LinkGraph/ESTestTemplate.d.ts.map +1 -0
- package/LinkGraph/LinkGraph.d.ts.map +1 -0
- package/{dist/types/LinkGraph → LinkGraph}/PureLinkGraph/PureLinkGraph.d.ts +5 -0
- package/LinkGraph/PureLinkGraph/PureLinkGraph.d.ts.map +1 -0
- package/LinkGraph/PureLinkGraph/PureLinkGraphUtils.d.ts.map +1 -0
- package/LinkGraph/PureLinkGraph/components/Edges.d.ts.map +1 -0
- package/LinkGraph/PureLinkGraph/components/Field.d.ts.map +1 -0
- package/LinkGraph/PureLinkGraph/components/FieldStyles.d.ts.map +1 -0
- package/{dist/types/LinkGraph → LinkGraph}/PureLinkGraph/components/Graph.d.ts +9 -1
- package/LinkGraph/PureLinkGraph/components/Graph.d.ts.map +1 -0
- package/LinkGraph/PureLinkGraph/components/GraphStyles.d.ts.map +1 -0
- package/{dist/types/LinkGraph → LinkGraph}/PureLinkGraph/components/Node.d.ts +1 -0
- package/LinkGraph/PureLinkGraph/components/Node.d.ts.map +1 -0
- package/{dist/types/LinkGraph → LinkGraph}/PureLinkGraph/components/Nodes.d.ts +1 -0
- package/LinkGraph/PureLinkGraph/components/Nodes.d.ts.map +1 -0
- package/LinkGraph/PureLinkGraph/measurementUtils.d.ts +16 -0
- package/LinkGraph/PureLinkGraph/measurementUtils.d.ts.map +1 -0
- package/{dist/types/LinkGraph → LinkGraph}/PureLinkGraph/utils/iconLoader.d.ts.map +1 -1
- package/LinkGraph/config.d.ts.map +1 -0
- package/LinkGraph/index.d.ts.map +1 -0
- package/LinkGraph.config.js +15 -1
- package/LinkGraph.config.js.map +2 -2
- package/LinkGraph.js +1476 -657
- package/LinkGraph.js.map +4 -4
- package/{dist/types/Map → Map}/Map.d.ts +2 -2
- package/Map/Map.d.ts.map +1 -0
- package/{dist/types/Map → Map}/PureMap/BubbleLayer.d.ts +5 -0
- package/Map/PureMap/BubbleLayer.d.ts.map +1 -0
- package/Map/PureMap/ChoroplethLayer.d.ts.map +1 -0
- package/Map/PureMap/ClusterLayer.d.ts.map +1 -0
- package/Map/PureMap/LocalChoroplethLayer.d.ts.map +1 -0
- package/{dist/types/Map → Map}/PureMap/MapUtils.d.ts +10 -6
- package/Map/PureMap/MapUtils.d.ts.map +1 -0
- package/Map/PureMap/MarkerLayer.d.ts.map +1 -0
- package/Map/PureMap/MarkerWrapper.d.ts.map +1 -0
- package/Map/PureMap/PureMap.d.ts.map +1 -0
- package/Map/PureMap/PureMapContainer.d.ts.map +1 -0
- package/Map/PureMap/Tooltip.d.ts.map +1 -0
- package/{dist/types/Map → Map}/PureMap/mockdata/data.d.ts +21 -17
- package/Map/PureMap/mockdata/data.d.ts.map +1 -0
- package/Map/config.d.ts.map +1 -0
- package/Map/index.d.ts.map +1 -0
- package/Map.config.js +0 -1
- package/Map.config.js.map +2 -2
- package/Map.js +1002 -319
- package/Map.js.map +4 -4
- package/Markdown/Markdown.d.ts.map +1 -0
- package/Markdown/config.d.ts.map +1 -0
- package/Markdown/index.d.ts.map +1 -0
- package/Markdown.js +669 -98
- package/Markdown.js.map +4 -4
- package/{dist/types/MarkerGauge → MarkerGauge}/MarkerGauge.d.ts +5 -1
- package/MarkerGauge/MarkerGauge.d.ts.map +1 -0
- package/{dist/types/MarkerGauge → MarkerGauge}/PureMarkerGauge/MarkerGauge.d.ts +4 -0
- package/MarkerGauge/PureMarkerGauge/MarkerGauge.d.ts.map +1 -0
- package/MarkerGauge/config.d.ts.map +1 -0
- package/MarkerGauge/index.d.ts.map +1 -0
- package/MarkerGauge.config.js +121 -3
- package/MarkerGauge.config.js.map +3 -3
- package/MarkerGauge.js +1439 -145
- package/MarkerGauge.js.map +4 -4
- package/NetworkGraph/NetworkGraph.d.ts +22 -0
- package/NetworkGraph/NetworkGraph.d.ts.map +1 -0
- package/NetworkGraph/PureNetworkGraph/PureNetworkGraph.d.ts +60 -0
- package/NetworkGraph/PureNetworkGraph/PureNetworkGraph.d.ts.map +1 -0
- package/NetworkGraph/PureNetworkGraph/components/Link.d.ts +19 -0
- package/NetworkGraph/PureNetworkGraph/components/Link.d.ts.map +1 -0
- package/NetworkGraph/PureNetworkGraph/components/NetworkGraphSvg.d.ts +29 -0
- package/NetworkGraph/PureNetworkGraph/components/NetworkGraphSvg.d.ts.map +1 -0
- package/NetworkGraph/PureNetworkGraph/components/Node.d.ts +27 -0
- package/NetworkGraph/PureNetworkGraph/components/Node.d.ts.map +1 -0
- package/NetworkGraph/PureNetworkGraph/components/Tooltip.d.ts +12 -0
- package/NetworkGraph/PureNetworkGraph/components/Tooltip.d.ts.map +1 -0
- package/NetworkGraph/PureNetworkGraph/components/ZoomControls.d.ts +13 -0
- package/NetworkGraph/PureNetworkGraph/components/ZoomControls.d.ts.map +1 -0
- package/NetworkGraph/PureNetworkGraph/mockdata/data.d.ts +140 -0
- package/NetworkGraph/PureNetworkGraph/mockdata/data.d.ts.map +1 -0
- package/NetworkGraph/PureNetworkGraph/mockdata/datasource.d.ts +89 -0
- package/NetworkGraph/PureNetworkGraph/mockdata/datasource.d.ts.map +1 -0
- package/NetworkGraph/PureNetworkGraph/utils/forceLayout.d.ts +47 -0
- package/NetworkGraph/PureNetworkGraph/utils/forceLayout.d.ts.map +1 -0
- package/NetworkGraph/PureNetworkGraph/utils/iconLoader.d.ts +78 -0
- package/NetworkGraph/PureNetworkGraph/utils/iconLoader.d.ts.map +1 -0
- package/NetworkGraph/PureNetworkGraph/utils/networkGraphShared.d.ts +111 -0
- package/NetworkGraph/PureNetworkGraph/utils/networkGraphShared.d.ts.map +1 -0
- package/NetworkGraph/PureNetworkGraph/utils/networkGraphUtils.d.ts +123 -0
- package/NetworkGraph/PureNetworkGraph/utils/networkGraphUtils.d.ts.map +1 -0
- package/NetworkGraph/config.d.ts.map +1 -0
- package/NetworkGraph/index.d.ts +3 -0
- package/NetworkGraph/index.d.ts.map +1 -0
- package/NetworkGraph.config.js +938 -0
- package/NetworkGraph.config.js.map +7 -0
- package/NetworkGraph.js +6793 -0
- package/NetworkGraph.js.map +7 -0
- package/ParallelCoordinates/ParallelCoordinates.d.ts.map +1 -0
- package/ParallelCoordinates/PureParallelCoordinates/PureParallelCoordinates.d.ts.map +1 -0
- package/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesCanvas.d.ts.map +1 -0
- package/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesChart.d.ts.map +1 -0
- package/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesPrompt.d.ts.map +1 -0
- package/ParallelCoordinates/config.d.ts.map +1 -0
- package/ParallelCoordinates/index.d.ts.map +1 -0
- package/ParallelCoordinates/mockdata/arrayValueData.d.ts.map +1 -0
- package/ParallelCoordinates/mockdata/sampleCarData.d.ts.map +1 -0
- package/ParallelCoordinates/mockdata/sampleCarNumericalData.d.ts.map +1 -0
- package/ParallelCoordinates/mockdata/sampleFoodData.d.ts.map +1 -0
- package/ParallelCoordinates/mockdata/sampleStringNumericalData.d.ts.map +1 -0
- package/ParallelCoordinates.js +666 -99
- package/ParallelCoordinates.js.map +4 -4
- package/Pie/Pie.d.ts.map +1 -0
- package/Pie/config.d.ts.map +1 -0
- package/Pie/index.d.ts.map +1 -0
- package/Pie/pieUtils.d.ts.map +1 -0
- package/Pie.config.js +13 -0
- package/Pie.config.js.map +2 -2
- package/Pie.js +744 -188
- package/Pie.js.map +4 -4
- package/Punchcard/Punchcard.d.ts.map +1 -0
- package/Punchcard/PurePunchcard/Punchcard.d.ts.map +1 -0
- package/Punchcard/PurePunchcard/src/PunchcardAxis.d.ts.map +1 -0
- package/Punchcard/PurePunchcard/src/PunchcardBubble.d.ts.map +1 -0
- package/Punchcard/PurePunchcard/src/PunchcardChartArea.d.ts.map +1 -0
- package/Punchcard/PurePunchcard/src/PunchcardGridLines.d.ts.map +1 -0
- package/Punchcard/PurePunchcard/src/PunchcardLegend.d.ts.map +1 -0
- package/Punchcard/PurePunchcard/src/PunchcardRow.d.ts.map +1 -0
- package/Punchcard/PurePunchcard/src/utils/punchcardUtils.d.ts.map +1 -0
- package/Punchcard/config.d.ts.map +1 -0
- package/Punchcard/index.d.ts.map +1 -0
- package/Punchcard/punchcardUtils.d.ts.map +1 -0
- package/Punchcard.js +663 -109
- package/Punchcard.js.map +4 -4
- package/README.md +1 -1
- package/Rectangle/Rectangle.d.ts.map +1 -0
- package/Rectangle/config.d.ts.map +1 -0
- package/Rectangle/index.d.ts.map +1 -0
- package/Rectangle.config.js +13 -22
- package/Rectangle.config.js.map +4 -4
- package/Rectangle.js +671 -138
- package/Rectangle.js.map +4 -4
- package/Sankey/PureSankey/PureSankey.d.ts.map +1 -0
- package/Sankey/PureSankey/SankeyLink.d.ts.map +1 -0
- package/Sankey/PureSankey/SankeyModels.d.ts.map +1 -0
- package/Sankey/PureSankey/SankeyNode.d.ts.map +1 -0
- package/Sankey/PureSankey/SankeyTooltip.d.ts.map +1 -0
- package/Sankey/PureSankey/SankeyUtils.d.ts.map +1 -0
- package/Sankey/PureSankey/mockdata/data.d.ts.map +1 -0
- package/Sankey/Sankey.d.ts.map +1 -0
- package/Sankey/config.d.ts.map +1 -0
- package/Sankey/index.d.ts.map +1 -0
- package/Sankey.js +683 -114
- package/Sankey.js.map +4 -4
- package/Scatter/Scatter.d.ts.map +1 -0
- package/Scatter/config.d.ts.map +1 -0
- package/Scatter/index.d.ts.map +1 -0
- package/Scatter/mockdata/data.d.ts.map +1 -0
- package/Scatter/scatterUtils.d.ts.map +1 -0
- package/Scatter.config.js +0 -1
- package/Scatter.config.js.map +2 -2
- package/Scatter.js +721 -184
- package/Scatter.js.map +4 -4
- package/SingleValue/SingleValue.d.ts.map +1 -0
- package/SingleValue/config.d.ts.map +1 -0
- package/SingleValue/index.d.ts.map +1 -0
- package/SingleValue.config.js +15 -2
- package/SingleValue.config.js.map +2 -2
- package/SingleValue.js +864 -226
- package/SingleValue.js.map +3 -3
- package/SingleValueBasic/index.d.ts.map +1 -0
- package/SingleValueBasic.js +22 -13
- package/SingleValueBasic.js.map +2 -2
- package/SingleValueIcon/SingleValueIcon.d.ts.map +1 -0
- package/SingleValueIcon/config.d.ts.map +1 -0
- package/SingleValueIcon/index.d.ts.map +1 -0
- package/SingleValueIcon.config.js +0 -1
- package/SingleValueIcon.config.js.map +2 -2
- package/SingleValueIcon.js +661 -142
- package/SingleValueIcon.js.map +3 -3
- package/SingleValueRadial/PureSingleValueRadial/GaugeGraph.d.ts.map +1 -0
- package/{dist/types/SingleValueRadial → SingleValueRadial}/PureSingleValueRadial/utils/gaugeUtils.d.ts +0 -8
- package/SingleValueRadial/PureSingleValueRadial/utils/gaugeUtils.d.ts.map +1 -0
- package/SingleValueRadial/SingleValueRadial.d.ts.map +1 -0
- package/SingleValueRadial/config.d.ts.map +1 -0
- package/SingleValueRadial/index.d.ts.map +1 -0
- package/SingleValueRadial.config.js +0 -1
- package/SingleValueRadial.config.js.map +2 -2
- package/SingleValueRadial.js +660 -140
- package/SingleValueRadial.js.map +4 -4
- package/SparkLine/index.d.ts.map +1 -0
- package/SparkLine.js +111 -45
- package/SparkLine.js.map +2 -2
- package/{dist/types/Table → Table}/PureTable.d.ts +10 -0
- package/Table/PureTable.d.ts.map +1 -0
- package/Table/Table.d.ts +18 -0
- package/Table/Table.d.ts.map +1 -0
- package/Table/cells/ArrayCell.d.ts.map +1 -0
- package/Table/cells/SparklineCell.d.ts.map +1 -0
- package/Table/cells/SwitchTableCell.d.ts.map +1 -0
- package/Table/cells/TextCell.d.ts.map +1 -0
- package/Table/cells/index.d.ts.map +1 -0
- package/Table/config.d.ts.map +1 -0
- package/{dist/types/Table → Table}/hooks.d.ts +5 -5
- package/Table/hooks.d.ts.map +1 -0
- package/Table/index.d.ts.map +1 -0
- package/Table.config.js +1 -1
- package/Table.config.js.map +2 -2
- package/Table.js +1115 -375
- package/Table.js.map +4 -4
- package/Timeline/PureTimeline/PureTimeline.d.ts.map +1 -0
- package/Timeline/PureTimeline/src/CursorPlugin.d.ts.map +1 -0
- package/Timeline/PureTimeline/src/TimelineLegend.d.ts.map +1 -0
- package/{dist/types/Timeline → Timeline}/PureTimeline/src/TimelinePlugin.d.ts +3 -1
- package/Timeline/PureTimeline/src/TimelinePlugin.d.ts.map +1 -0
- package/Timeline/PureTimeline/src/TimelineTooltip.d.ts.map +1 -0
- package/Timeline/PureTimeline/src/TimelineUplot.d.ts.map +1 -0
- package/Timeline/PureTimeline/src/TimelineYAxis.d.ts.map +1 -0
- package/{dist/types/Timeline → Timeline}/PureTimeline/src/XAxisPlugin.d.ts +2 -1
- package/Timeline/PureTimeline/src/XAxisPlugin.d.ts.map +1 -0
- package/{dist/types/Timeline → Timeline}/PureTimeline/src/utils/timelineUtils.d.ts +26 -2
- package/Timeline/PureTimeline/src/utils/timelineUtils.d.ts.map +1 -0
- package/Timeline/Timeline.d.ts.map +1 -0
- package/Timeline/config.d.ts +4 -0
- package/Timeline/config.d.ts.map +1 -0
- package/Timeline/index.d.ts.map +1 -0
- package/Timeline/mockdata/basicTimelineData.d.ts.map +1 -0
- package/Timeline/mockdata/categoricalTimelineData.d.ts.map +1 -0
- package/Timeline/mockdata/timelineDataSource.d.ts.map +1 -0
- package/Timeline.config.js +30 -21
- package/Timeline.config.js.map +4 -4
- package/Timeline.js +1287 -467
- package/Timeline.js.map +4 -4
- package/{dist/types/common → common}/Charting.d.ts +7 -0
- package/common/Charting.d.ts.map +1 -0
- package/common/Charting.js +59 -34
- package/common/Charting.js.map +4 -4
- package/common/ChartingApi.d.ts.map +1 -0
- package/common/DocExampleWithVizSandbox.d.ts.map +1 -0
- package/common/DocExampleWithVizSandbox.js.map +1 -1
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.d.ts.map +1 -0
- package/common/OverviewDoc.js.map +1 -1
- package/common/SplunkVisualization.d.ts.map +1 -0
- package/common/SplunkVisualizationApi.d.ts.map +1 -0
- package/common/ThemedDefaults.d.ts.map +1 -0
- package/common/ThemesDoc.js +0 -1
- package/common/ThemesDoc.js.map +2 -2
- package/common/TimeSeriesChartWrapper.d.ts +31 -0
- package/common/TimeSeriesChartWrapper.d.ts.map +1 -0
- package/common/TimeSeriesChartWrapper.js +693 -74
- package/common/TimeSeriesChartWrapper.js.map +4 -4
- package/{dist/types/common → common}/chartingUtils.d.ts +55 -5
- package/common/chartingUtils.d.ts.map +1 -0
- package/common/chartingUtils.js +120 -9
- package/common/chartingUtils.js.map +3 -3
- package/common/components/IconPlaceholder.d.ts.map +1 -0
- package/common/components/MissingPropsMessage.d.ts.map +1 -0
- package/common/components/TrellisTitle.d.ts.map +1 -0
- package/common/configContext/singleValueContext.d.ts.map +1 -0
- package/common/docUtils.d.ts.map +1 -0
- package/common/docUtils.js +1 -1
- package/common/docUtils.js.map +2 -2
- package/common/editorConfig/AxesChartColorAndStyle.d.ts.map +1 -0
- package/common/editorConfig/AxesChartDataConfig.d.ts.map +1 -0
- package/common/editorConfig/AxesChartDataDisplay.d.ts.map +1 -0
- package/common/editorConfig/AxesChartLegend.d.ts.map +1 -0
- package/common/editorConfig/AxesChartXGridAndLabels.d.ts.map +1 -0
- package/common/editorConfig/AxesChartY2GridAndLabels.d.ts.map +1 -0
- package/common/editorConfig/AxesChartYGridAndLabels.d.ts.map +1 -0
- package/common/editorConfig/BackgroundColor.d.ts.map +1 -0
- package/common/editorConfig/DynamicFillColorEditor.d.ts.map +1 -0
- package/common/editorConfig/DynamicGaugeColorEditor.d.ts.map +1 -0
- package/common/editorConfig/DynamicStrokeColorEditor.d.ts.map +1 -0
- package/common/editorConfig/Gauge.d.ts.map +1 -0
- package/common/editorConfig/Legend.d.ts.map +1 -0
- package/common/editorConfig/RadialBackgroundColor.d.ts.map +1 -0
- package/common/editorConfig/StaticFillColorEditor.d.ts.map +1 -0
- package/common/editorConfig/StaticGaugeColorEditor.d.ts.map +1 -0
- package/common/editorConfig/StaticStrokeColorEditor.d.ts.map +1 -0
- package/common/editorConfig/TrellisEditors.d.ts.map +1 -0
- package/common/gaugeUtils.d.ts.map +1 -0
- package/common/hocs/FixedSizeContainer.d.ts.map +1 -0
- package/common/hocs/mockdata/trellisData.d.ts.map +1 -0
- package/common/hocs/withEditModeCover.d.ts.map +1 -0
- package/common/hocs/withPlaceholder.d.ts.map +1 -0
- package/common/hocs/withTrellis.d.ts.map +1 -0
- package/common/hooks/useDeepMemo.d.ts.map +1 -0
- package/common/hooks/useDownsampleDataSources.d.ts.map +1 -0
- package/common/hooks/useEventCallback.d.ts.map +1 -0
- package/common/hooks/useGetXAndYFields.d.ts.map +1 -0
- package/common/hooks/usePagination.d.ts.map +1 -0
- package/common/hooks/usePrevious.d.ts.map +1 -0
- package/common/hooks/useSorting.d.ts.map +1 -0
- package/common/hooks/useTrellisEnabled.d.ts.map +1 -0
- package/common/interfaces/ChartEvent.d.ts.map +1 -0
- package/{dist/types/common → common}/interfaces/DashboardVizProps.d.ts +0 -3
- package/common/interfaces/DashboardVizProps.d.ts.map +1 -0
- package/common/interfaces/DataContract.d.ts.map +1 -0
- package/{dist/types/common → common}/interfaces/DataSource.d.ts +1 -1
- package/common/interfaces/DataSource.d.ts.map +1 -0
- package/common/interfaces/DefaultContext.d.ts.map +1 -0
- package/common/interfaces/Editor.d.ts.map +1 -0
- package/common/interfaces/ExtendedDashViz.d.ts.map +1 -0
- package/common/interfaces/Object.d.ts.map +1 -0
- package/common/interfaces/Overview.d.ts.map +1 -0
- package/common/interfaces/ThemedDefaults.d.ts.map +1 -0
- package/common/interfaces/VizActionHandler.d.ts.map +1 -0
- package/common/interfaces/VizBehavior.d.ts.map +1 -0
- package/common/interfaces/VizCategory.d.ts.map +1 -0
- package/common/interfaces/VizConfig.d.ts.map +1 -0
- package/common/interfaces/VizEvent.d.ts.map +1 -0
- package/common/interfaces/VizProps.d.ts.map +1 -0
- package/common/interfaces/VizRegistry.d.ts.map +1 -0
- package/common/interfaces/VizSize.d.ts.map +1 -0
- package/common/interfaces/VizStatus.d.ts.map +1 -0
- package/common/interfaces/index.d.ts.map +1 -0
- package/common/shapeUtils.d.ts.map +1 -0
- package/common/shapeUtils.js +5 -20
- package/common/shapeUtils.js.map +2 -2
- package/common/utils/configUtils.d.ts.map +1 -0
- package/common/utils/dataUtils.d.ts.map +1 -0
- package/common/utils/dataUtils.js +5 -4
- package/common/utils/dataUtils.js.map +2 -2
- package/common/utils/featureFlagUtils.d.ts +4 -0
- package/common/utils/featureFlagUtils.d.ts.map +1 -0
- package/common/utils/featureFlagUtils.js.map +2 -2
- package/common/utils/hocUtils.d.ts.map +1 -0
- package/common/utils/mapUtils.d.ts.map +1 -0
- package/common/utils/mapUtils.js +16 -9
- package/common/utils/mapUtils.js.map +2 -2
- package/common/utils/singleValueUtils.js +17 -18
- package/common/utils/singleValueUtils.js.map +2 -2
- package/common/utils/tableUtils.d.ts +10 -0
- package/common/utils/tableUtils.d.ts.map +1 -0
- package/common/utils/tableUtils.js +20 -8
- package/common/utils/tableUtils.js.map +2 -2
- package/common/utils/textUtils.d.ts +20 -0
- package/common/utils/textUtils.d.ts.map +1 -0
- package/common/utils/textUtils.js +76 -0
- package/common/utils/textUtils.js.map +7 -0
- package/common/utils/trellisUtils.d.ts.map +1 -0
- package/common/utils/trellisUtils.js +12 -14
- package/common/utils/trellisUtils.js.map +2 -2
- package/common/utils/urlUtils.d.ts.map +1 -0
- package/{dist/types/common → common}/withDashboardViz.d.ts +7 -0
- package/common/withDashboardViz.d.ts.map +1 -0
- package/common/withDashboardViz.js +665 -87
- package/common/withDashboardViz.js.map +4 -4
- package/package.json +35 -29
- package/common/utils/styleUtils.js +0 -30
- package/common/utils/styleUtils.js.map +0 -7
- package/dist/types/Area/Area.d.ts.map +0 -1
- package/dist/types/Area/areaUtils.d.ts.map +0 -1
- package/dist/types/Area/config.d.ts.map +0 -1
- package/dist/types/Area/index.d.ts.map +0 -1
- package/dist/types/Bar/Bar.d.ts.map +0 -1
- package/dist/types/Bar/barUtils.d.ts.map +0 -1
- package/dist/types/Bar/config.d.ts.map +0 -1
- package/dist/types/Bar/index.d.ts.map +0 -1
- package/dist/types/Bubble/Bubble.d.ts.map +0 -1
- package/dist/types/Bubble/bubbleUtils.d.ts.map +0 -1
- package/dist/types/Bubble/config.d.ts.map +0 -1
- package/dist/types/Bubble/index.d.ts.map +0 -1
- package/dist/types/ChoroplethSvg/ChoroplethSvg.d.ts.map +0 -1
- package/dist/types/ChoroplethSvg/ErrorMessage/ErrorMessage.d.ts.map +0 -1
- package/dist/types/ChoroplethSvg/PureChoroplethSvg/PureChoroplethSvg.d.ts.map +0 -1
- package/dist/types/ChoroplethSvg/PureChoroplethSvg/SvgChoroplethDynamic.d.ts.map +0 -1
- package/dist/types/ChoroplethSvg/PureChoroplethSvg/SvgMutator.d.ts.map +0 -1
- package/dist/types/ChoroplethSvg/config.d.ts.map +0 -1
- package/dist/types/ChoroplethSvg/index.d.ts.map +0 -1
- package/dist/types/Column/Column.d.ts.map +0 -1
- package/dist/types/Column/columnUtils.d.ts.map +0 -1
- package/dist/types/Column/config.d.ts.map +0 -1
- package/dist/types/Column/index.d.ts.map +0 -1
- package/dist/types/Ellipse/Ellipse.d.ts.map +0 -1
- package/dist/types/Ellipse/config.d.ts.map +0 -1
- package/dist/types/Ellipse/index.d.ts.map +0 -1
- package/dist/types/Events/EventUtils.d.ts.map +0 -1
- package/dist/types/Events/Events.d.ts.map +0 -1
- package/dist/types/Events/PureEvents/FieldSummaryTooltip.d.ts.map +0 -1
- package/dist/types/Events/PureEvents/PureEvents.d.ts.map +0 -1
- package/dist/types/Events/PureEvents/TimeControlsPopover.d.ts.map +0 -1
- package/dist/types/Events/config.d.ts.map +0 -1
- package/dist/types/Events/index.d.ts.map +0 -1
- package/dist/types/FillerGauge/FillerGauge.d.ts.map +0 -1
- package/dist/types/FillerGauge/PureFillerGauge/FillerGauge.d.ts.map +0 -1
- package/dist/types/FillerGauge/config.d.ts.map +0 -1
- package/dist/types/FillerGauge/index.d.ts.map +0 -1
- package/dist/types/Image/Image.d.ts.map +0 -1
- package/dist/types/Image/ImageApi.d.ts.map +0 -1
- package/dist/types/Image/config.d.ts.map +0 -1
- package/dist/types/Image/index.d.ts.map +0 -1
- package/dist/types/Line/Line.d.ts.map +0 -1
- package/dist/types/Line/config.d.ts.map +0 -1
- package/dist/types/Line/index.d.ts.map +0 -1
- package/dist/types/Line/lineUtils.d.ts.map +0 -1
- package/dist/types/Line/mockdata/LineData.d.ts.map +0 -1
- package/dist/types/LinkGraph/ESTestDataSources.d.ts.map +0 -1
- package/dist/types/LinkGraph/ESTestTemplate.d.ts.map +0 -1
- package/dist/types/LinkGraph/LinkGraph.d.ts.map +0 -1
- package/dist/types/LinkGraph/PureLinkGraph/PureLinkGraph.d.ts.map +0 -1
- package/dist/types/LinkGraph/PureLinkGraph/PureLinkGraphUtils.d.ts.map +0 -1
- package/dist/types/LinkGraph/PureLinkGraph/components/Edges.d.ts.map +0 -1
- package/dist/types/LinkGraph/PureLinkGraph/components/Field.d.ts.map +0 -1
- package/dist/types/LinkGraph/PureLinkGraph/components/FieldStyles.d.ts.map +0 -1
- package/dist/types/LinkGraph/PureLinkGraph/components/Graph.d.ts.map +0 -1
- package/dist/types/LinkGraph/PureLinkGraph/components/GraphStyles.d.ts.map +0 -1
- package/dist/types/LinkGraph/PureLinkGraph/components/Node.d.ts.map +0 -1
- package/dist/types/LinkGraph/PureLinkGraph/components/Nodes.d.ts.map +0 -1
- package/dist/types/LinkGraph/config.d.ts.map +0 -1
- package/dist/types/LinkGraph/index.d.ts.map +0 -1
- package/dist/types/Map/Map.d.ts.map +0 -1
- package/dist/types/Map/MapContextDefault.d.ts +0 -39
- package/dist/types/Map/MapContextDefault.d.ts.map +0 -1
- package/dist/types/Map/PureMap/BubbleLayer.d.ts.map +0 -1
- package/dist/types/Map/PureMap/ChoroplethLayer.d.ts.map +0 -1
- package/dist/types/Map/PureMap/ClusterLayer.d.ts.map +0 -1
- package/dist/types/Map/PureMap/LocalChoroplethLayer.d.ts.map +0 -1
- package/dist/types/Map/PureMap/MapUtils.d.ts.map +0 -1
- package/dist/types/Map/PureMap/MarkerLayer.d.ts.map +0 -1
- package/dist/types/Map/PureMap/MarkerWrapper.d.ts.map +0 -1
- package/dist/types/Map/PureMap/PureMap.d.ts.map +0 -1
- package/dist/types/Map/PureMap/PureMapContainer.d.ts.map +0 -1
- package/dist/types/Map/PureMap/Tooltip.d.ts.map +0 -1
- package/dist/types/Map/PureMap/mockdata/data.d.ts.map +0 -1
- package/dist/types/Map/config.d.ts.map +0 -1
- package/dist/types/Map/index.d.ts.map +0 -1
- package/dist/types/Markdown/Markdown.d.ts.map +0 -1
- package/dist/types/Markdown/config.d.ts.map +0 -1
- package/dist/types/Markdown/index.d.ts.map +0 -1
- package/dist/types/MarkerGauge/MarkerGauge.d.ts.map +0 -1
- package/dist/types/MarkerGauge/PureMarkerGauge/MarkerGauge.d.ts.map +0 -1
- package/dist/types/MarkerGauge/config.d.ts.map +0 -1
- package/dist/types/MarkerGauge/index.d.ts.map +0 -1
- package/dist/types/ParallelCoordinates/ParallelCoordinates.d.ts.map +0 -1
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/PureParallelCoordinates.d.ts.map +0 -1
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesCanvas.d.ts.map +0 -1
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesChart.d.ts.map +0 -1
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesPrompt.d.ts.map +0 -1
- package/dist/types/ParallelCoordinates/config.d.ts.map +0 -1
- package/dist/types/ParallelCoordinates/index.d.ts.map +0 -1
- package/dist/types/ParallelCoordinates/mockdata/arrayValueData.d.ts.map +0 -1
- package/dist/types/ParallelCoordinates/mockdata/sampleCarData.d.ts.map +0 -1
- package/dist/types/ParallelCoordinates/mockdata/sampleCarNumericalData.d.ts.map +0 -1
- package/dist/types/ParallelCoordinates/mockdata/sampleFoodData.d.ts.map +0 -1
- package/dist/types/ParallelCoordinates/mockdata/sampleStringNumericalData.d.ts.map +0 -1
- package/dist/types/Pie/Pie.d.ts.map +0 -1
- package/dist/types/Pie/config.d.ts.map +0 -1
- package/dist/types/Pie/index.d.ts.map +0 -1
- package/dist/types/Pie/pieUtils.d.ts.map +0 -1
- package/dist/types/Punchcard/Punchcard.d.ts.map +0 -1
- package/dist/types/Punchcard/PurePunchcard/Punchcard.d.ts.map +0 -1
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardAxis.d.ts.map +0 -1
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardBubble.d.ts.map +0 -1
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardChartArea.d.ts.map +0 -1
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardGridLines.d.ts.map +0 -1
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardLegend.d.ts.map +0 -1
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardRow.d.ts.map +0 -1
- package/dist/types/Punchcard/PurePunchcard/src/utils/punchcardUtils.d.ts.map +0 -1
- package/dist/types/Punchcard/config.d.ts.map +0 -1
- package/dist/types/Punchcard/index.d.ts.map +0 -1
- package/dist/types/Punchcard/punchcardUtils.d.ts.map +0 -1
- package/dist/types/Rectangle/Rectangle.d.ts.map +0 -1
- package/dist/types/Rectangle/config.d.ts.map +0 -1
- package/dist/types/Rectangle/index.d.ts.map +0 -1
- package/dist/types/Sankey/PureSankey/PureSankey.d.ts.map +0 -1
- package/dist/types/Sankey/PureSankey/SankeyLink.d.ts.map +0 -1
- package/dist/types/Sankey/PureSankey/SankeyModels.d.ts.map +0 -1
- package/dist/types/Sankey/PureSankey/SankeyNode.d.ts.map +0 -1
- package/dist/types/Sankey/PureSankey/SankeyTooltip.d.ts.map +0 -1
- package/dist/types/Sankey/PureSankey/SankeyUtils.d.ts.map +0 -1
- package/dist/types/Sankey/PureSankey/mockdata/data.d.ts.map +0 -1
- package/dist/types/Sankey/Sankey.d.ts.map +0 -1
- package/dist/types/Sankey/config.d.ts.map +0 -1
- package/dist/types/Sankey/index.d.ts.map +0 -1
- package/dist/types/Scatter/Scatter.d.ts.map +0 -1
- package/dist/types/Scatter/config.d.ts.map +0 -1
- package/dist/types/Scatter/index.d.ts.map +0 -1
- package/dist/types/Scatter/mockdata/data.d.ts.map +0 -1
- package/dist/types/Scatter/scatterUtils.d.ts.map +0 -1
- package/dist/types/SingleValue/SingleValue.d.ts.map +0 -1
- package/dist/types/SingleValue/config.d.ts.map +0 -1
- package/dist/types/SingleValue/index.d.ts.map +0 -1
- package/dist/types/SingleValueBasic/index.d.ts.map +0 -1
- package/dist/types/SingleValueIcon/SingleValueIcon.d.ts.map +0 -1
- package/dist/types/SingleValueIcon/config.d.ts.map +0 -1
- package/dist/types/SingleValueIcon/index.d.ts.map +0 -1
- package/dist/types/SingleValueRadial/PureSingleValueRadial/GaugeGraph.d.ts.map +0 -1
- package/dist/types/SingleValueRadial/PureSingleValueRadial/utils/gaugeUtils.d.ts.map +0 -1
- package/dist/types/SingleValueRadial/SingleValueRadial.d.ts.map +0 -1
- package/dist/types/SingleValueRadial/config.d.ts.map +0 -1
- package/dist/types/SingleValueRadial/index.d.ts.map +0 -1
- package/dist/types/SparkLine/index.d.ts.map +0 -1
- package/dist/types/Table/PureTable.d.ts.map +0 -1
- package/dist/types/Table/Table.d.ts +0 -10
- package/dist/types/Table/Table.d.ts.map +0 -1
- package/dist/types/Table/cells/ArrayCell.d.ts.map +0 -1
- package/dist/types/Table/cells/SparklineCell.d.ts.map +0 -1
- package/dist/types/Table/cells/SwitchTableCell.d.ts.map +0 -1
- package/dist/types/Table/cells/TextCell.d.ts.map +0 -1
- package/dist/types/Table/cells/index.d.ts.map +0 -1
- package/dist/types/Table/config.d.ts.map +0 -1
- package/dist/types/Table/hooks.d.ts.map +0 -1
- package/dist/types/Table/index.d.ts.map +0 -1
- package/dist/types/Timeline/PureTimeline/PureTimeline.d.ts.map +0 -1
- package/dist/types/Timeline/PureTimeline/src/CursorPlugin.d.ts.map +0 -1
- package/dist/types/Timeline/PureTimeline/src/TimelineLegend.d.ts.map +0 -1
- package/dist/types/Timeline/PureTimeline/src/TimelinePlugin.d.ts.map +0 -1
- package/dist/types/Timeline/PureTimeline/src/TimelineTooltip.d.ts.map +0 -1
- package/dist/types/Timeline/PureTimeline/src/TimelineUplot.d.ts.map +0 -1
- package/dist/types/Timeline/PureTimeline/src/TimelineYAxis.d.ts.map +0 -1
- package/dist/types/Timeline/PureTimeline/src/XAxisPlugin.d.ts.map +0 -1
- package/dist/types/Timeline/PureTimeline/src/utils/timelineUtils.d.ts.map +0 -1
- package/dist/types/Timeline/Timeline.d.ts.map +0 -1
- package/dist/types/Timeline/config.d.ts.map +0 -1
- package/dist/types/Timeline/index.d.ts.map +0 -1
- package/dist/types/Timeline/mockdata/basicTimelineData.d.ts.map +0 -1
- package/dist/types/Timeline/mockdata/categoricalTimelineData.d.ts.map +0 -1
- package/dist/types/Timeline/mockdata/timelineDataSource.d.ts.map +0 -1
- package/dist/types/common/Charting.d.ts.map +0 -1
- package/dist/types/common/ChartingApi.d.ts.map +0 -1
- package/dist/types/common/DocExampleWithVizSandbox.d.ts.map +0 -1
- package/dist/types/common/OverviewDoc.d.ts.map +0 -1
- package/dist/types/common/SplunkVisualization.d.ts.map +0 -1
- package/dist/types/common/SplunkVisualizationApi.d.ts.map +0 -1
- package/dist/types/common/ThemedDefaults.d.ts.map +0 -1
- package/dist/types/common/TimeSeriesChartWrapper.d.ts +0 -7
- package/dist/types/common/TimeSeriesChartWrapper.d.ts.map +0 -1
- package/dist/types/common/chartingUtils.d.ts.map +0 -1
- package/dist/types/common/components/IconPlaceholder.d.ts.map +0 -1
- package/dist/types/common/components/MissingPropsMessage.d.ts.map +0 -1
- package/dist/types/common/components/TrellisTitle.d.ts.map +0 -1
- package/dist/types/common/configContext/singleValueContext.d.ts.map +0 -1
- package/dist/types/common/docUtils.d.ts.map +0 -1
- package/dist/types/common/editorConfig/AxesChartColorAndStyle.d.ts.map +0 -1
- package/dist/types/common/editorConfig/AxesChartDataConfig.d.ts.map +0 -1
- package/dist/types/common/editorConfig/AxesChartDataDisplay.d.ts.map +0 -1
- package/dist/types/common/editorConfig/AxesChartLegend.d.ts.map +0 -1
- package/dist/types/common/editorConfig/AxesChartXGridAndLabels.d.ts.map +0 -1
- package/dist/types/common/editorConfig/AxesChartY2GridAndLabels.d.ts.map +0 -1
- package/dist/types/common/editorConfig/AxesChartYGridAndLabels.d.ts.map +0 -1
- package/dist/types/common/editorConfig/BackgroundColor.d.ts.map +0 -1
- package/dist/types/common/editorConfig/DynamicFillColorEditor.d.ts.map +0 -1
- package/dist/types/common/editorConfig/DynamicGaugeColorEditor.d.ts.map +0 -1
- package/dist/types/common/editorConfig/DynamicStrokeColorEditor.d.ts.map +0 -1
- package/dist/types/common/editorConfig/Gauge.d.ts.map +0 -1
- package/dist/types/common/editorConfig/Legend.d.ts.map +0 -1
- package/dist/types/common/editorConfig/RadialBackgroundColor.d.ts.map +0 -1
- package/dist/types/common/editorConfig/StaticFillColorEditor.d.ts.map +0 -1
- package/dist/types/common/editorConfig/StaticGaugeColorEditor.d.ts.map +0 -1
- package/dist/types/common/editorConfig/StaticStrokeColorEditor.d.ts.map +0 -1
- package/dist/types/common/editorConfig/TrellisEditors.d.ts.map +0 -1
- package/dist/types/common/gaugeUtils.d.ts.map +0 -1
- package/dist/types/common/hocs/FixedSizeContainer.d.ts.map +0 -1
- package/dist/types/common/hocs/mockdata/trellisData.d.ts.map +0 -1
- package/dist/types/common/hocs/withEditModeCover.d.ts.map +0 -1
- package/dist/types/common/hocs/withPlaceholder.d.ts.map +0 -1
- package/dist/types/common/hocs/withTrellis.d.ts.map +0 -1
- package/dist/types/common/hooks/useDeepMemo.d.ts.map +0 -1
- package/dist/types/common/hooks/useDownsampleDataSources.d.ts.map +0 -1
- package/dist/types/common/hooks/useEventCallback.d.ts.map +0 -1
- package/dist/types/common/hooks/useGetXAndYFields.d.ts.map +0 -1
- package/dist/types/common/hooks/usePagination.d.ts.map +0 -1
- package/dist/types/common/hooks/usePrevious.d.ts.map +0 -1
- package/dist/types/common/hooks/useSorting.d.ts.map +0 -1
- package/dist/types/common/hooks/useTrellisEnabled.d.ts.map +0 -1
- package/dist/types/common/interfaces/ChartEvent.d.ts.map +0 -1
- package/dist/types/common/interfaces/DashboardVizProps.d.ts.map +0 -1
- package/dist/types/common/interfaces/DataContract.d.ts.map +0 -1
- package/dist/types/common/interfaces/DataSource.d.ts.map +0 -1
- package/dist/types/common/interfaces/DefaultContext.d.ts.map +0 -1
- package/dist/types/common/interfaces/Editor.d.ts.map +0 -1
- package/dist/types/common/interfaces/ExtendedDashViz.d.ts.map +0 -1
- package/dist/types/common/interfaces/Object.d.ts.map +0 -1
- package/dist/types/common/interfaces/Overview.d.ts.map +0 -1
- package/dist/types/common/interfaces/ThemedDefaults.d.ts.map +0 -1
- package/dist/types/common/interfaces/VizActionHandler.d.ts.map +0 -1
- package/dist/types/common/interfaces/VizBehavior.d.ts.map +0 -1
- package/dist/types/common/interfaces/VizCategory.d.ts.map +0 -1
- package/dist/types/common/interfaces/VizConfig.d.ts.map +0 -1
- package/dist/types/common/interfaces/VizEvent.d.ts.map +0 -1
- package/dist/types/common/interfaces/VizProps.d.ts.map +0 -1
- package/dist/types/common/interfaces/VizRegistry.d.ts.map +0 -1
- package/dist/types/common/interfaces/VizSize.d.ts.map +0 -1
- package/dist/types/common/interfaces/VizStatus.d.ts.map +0 -1
- package/dist/types/common/interfaces/index.d.ts.map +0 -1
- package/dist/types/common/shapeUtils.d.ts.map +0 -1
- package/dist/types/common/utils/configUtils.d.ts.map +0 -1
- package/dist/types/common/utils/dataUtils.d.ts.map +0 -1
- package/dist/types/common/utils/featureFlagUtils.d.ts +0 -3
- package/dist/types/common/utils/featureFlagUtils.d.ts.map +0 -1
- package/dist/types/common/utils/hocUtils.d.ts.map +0 -1
- package/dist/types/common/utils/mapUtils.d.ts.map +0 -1
- package/dist/types/common/utils/styleUtils.d.ts +0 -2
- package/dist/types/common/utils/styleUtils.d.ts.map +0 -1
- package/dist/types/common/utils/tableUtils.d.ts +0 -3
- package/dist/types/common/utils/tableUtils.d.ts.map +0 -1
- package/dist/types/common/utils/trellisUtils.d.ts.map +0 -1
- package/dist/types/common/utils/urlUtils.d.ts.map +0 -1
- package/dist/types/common/withDashboardViz.d.ts.map +0 -1
- /package/{dist/types/Area → Area}/Area.d.ts +0 -0
- /package/{dist/types/Area → Area}/areaUtils.d.ts +0 -0
- /package/{dist/types/Area → Area}/config.d.ts +0 -0
- /package/{dist/types/Area → Area}/index.d.ts +0 -0
- /package/{dist/types/Bar → Bar}/Bar.d.ts +0 -0
- /package/{dist/types/Bar → Bar}/barUtils.d.ts +0 -0
- /package/{dist/types/Bar → Bar}/config.d.ts +0 -0
- /package/{dist/types/Bar → Bar}/index.d.ts +0 -0
- /package/{dist/types/Bubble → Bubble}/Bubble.d.ts +0 -0
- /package/{dist/types/Bubble → Bubble}/bubbleUtils.d.ts +0 -0
- /package/{dist/types/Bubble → Bubble}/config.d.ts +0 -0
- /package/{dist/types/Bubble → Bubble}/index.d.ts +0 -0
- /package/{dist/types/ChoroplethSvg → ChoroplethSvg}/ErrorMessage/ErrorMessage.d.ts +0 -0
- /package/{dist/types/ChoroplethSvg → ChoroplethSvg}/PureChoroplethSvg/PureChoroplethSvg.d.ts +0 -0
- /package/{dist/types/ChoroplethSvg → ChoroplethSvg}/PureChoroplethSvg/SvgChoroplethDynamic.d.ts +0 -0
- /package/{dist/types/ChoroplethSvg → ChoroplethSvg}/PureChoroplethSvg/SvgMutator.d.ts +0 -0
- /package/{dist/types/ChoroplethSvg → ChoroplethSvg}/config.d.ts +0 -0
- /package/{dist/types/ChoroplethSvg → ChoroplethSvg}/index.d.ts +0 -0
- /package/{dist/types/Column → Column}/Column.d.ts +0 -0
- /package/{dist/types/Column → Column}/columnUtils.d.ts +0 -0
- /package/{dist/types/Column → Column}/config.d.ts +0 -0
- /package/{dist/types/Column → Column}/index.d.ts +0 -0
- /package/{dist/types/Ellipse → Ellipse}/Ellipse.d.ts +0 -0
- /package/{dist/types/Ellipse → Ellipse}/config.d.ts +0 -0
- /package/{dist/types/Ellipse → Ellipse}/index.d.ts +0 -0
- /package/{dist/types/Events → Events}/EventUtils.d.ts +0 -0
- /package/{dist/types/Events → Events}/Events.d.ts +0 -0
- /package/{dist/types/Events → Events}/PureEvents/FieldSummaryTooltip.d.ts +0 -0
- /package/{dist/types/Events → Events}/PureEvents/PureEvents.d.ts +0 -0
- /package/{dist/types/Events → Events}/PureEvents/TimeControlsPopover.d.ts +0 -0
- /package/{dist/types/Events → Events}/config.d.ts +0 -0
- /package/{dist/types/Events → Events}/index.d.ts +0 -0
- /package/{dist/types/FillerGauge → FillerGauge}/FillerGauge.d.ts +0 -0
- /package/{dist/types/FillerGauge → FillerGauge}/PureFillerGauge/FillerGauge.d.ts +0 -0
- /package/{dist/types/FillerGauge → FillerGauge}/config.d.ts +0 -0
- /package/{dist/types/FillerGauge → FillerGauge}/index.d.ts +0 -0
- /package/{dist/types/Image → Image}/Image.d.ts +0 -0
- /package/{dist/types/Image → Image}/ImageApi.d.ts +0 -0
- /package/{dist/types/Image → Image}/config.d.ts +0 -0
- /package/{dist/types/Image → Image}/index.d.ts +0 -0
- /package/{dist/types/Line → Line}/Line.d.ts +0 -0
- /package/{dist/types/Line → Line}/config.d.ts +0 -0
- /package/{dist/types/Line → Line}/index.d.ts +0 -0
- /package/{dist/types/Line → Line}/lineUtils.d.ts +0 -0
- /package/{dist/types/LinkGraph → LinkGraph}/ESTestDataSources.d.ts +0 -0
- /package/{dist/types/LinkGraph → LinkGraph}/ESTestTemplate.d.ts +0 -0
- /package/{dist/types/LinkGraph → LinkGraph}/LinkGraph.d.ts +0 -0
- /package/{dist/types/LinkGraph → LinkGraph}/PureLinkGraph/PureLinkGraphUtils.d.ts +0 -0
- /package/{dist/types/LinkGraph → LinkGraph}/PureLinkGraph/components/Edges.d.ts +0 -0
- /package/{dist/types/LinkGraph → LinkGraph}/PureLinkGraph/components/Field.d.ts +0 -0
- /package/{dist/types/LinkGraph → LinkGraph}/PureLinkGraph/components/FieldStyles.d.ts +0 -0
- /package/{dist/types/LinkGraph → LinkGraph}/PureLinkGraph/components/GraphStyles.d.ts +0 -0
- /package/{dist/types/LinkGraph → LinkGraph}/PureLinkGraph/utils/iconLoader.d.ts +0 -0
- /package/{dist/types/LinkGraph → LinkGraph}/config.d.ts +0 -0
- /package/{dist/types/LinkGraph → LinkGraph}/index.d.ts +0 -0
- /package/{dist/types/Map → Map}/PureMap/ChoroplethLayer.d.ts +0 -0
- /package/{dist/types/Map → Map}/PureMap/ClusterLayer.d.ts +0 -0
- /package/{dist/types/Map → Map}/PureMap/LocalChoroplethLayer.d.ts +0 -0
- /package/{dist/types/Map → Map}/PureMap/MarkerLayer.d.ts +0 -0
- /package/{dist/types/Map → Map}/PureMap/MarkerWrapper.d.ts +0 -0
- /package/{dist/types/Map → Map}/PureMap/PureMap.d.ts +0 -0
- /package/{dist/types/Map → Map}/PureMap/PureMapContainer.d.ts +0 -0
- /package/{dist/types/Map → Map}/PureMap/Tooltip.d.ts +0 -0
- /package/{dist/types/Map → Map}/config.d.ts +0 -0
- /package/{dist/types/Map → Map}/index.d.ts +0 -0
- /package/{dist/types/Markdown → Markdown}/Markdown.d.ts +0 -0
- /package/{dist/types/Markdown → Markdown}/config.d.ts +0 -0
- /package/{dist/types/Markdown → Markdown}/index.d.ts +0 -0
- /package/{dist/types/MarkerGauge → MarkerGauge}/config.d.ts +0 -0
- /package/{dist/types/MarkerGauge → MarkerGauge}/index.d.ts +0 -0
- /package/{dist/types/ParallelCoordinates → NetworkGraph}/config.d.ts +0 -0
- /package/{dist/types/ParallelCoordinates → ParallelCoordinates}/ParallelCoordinates.d.ts +0 -0
- /package/{dist/types/ParallelCoordinates → ParallelCoordinates}/PureParallelCoordinates/PureParallelCoordinates.d.ts +0 -0
- /package/{dist/types/ParallelCoordinates → ParallelCoordinates}/PureParallelCoordinates/src/ParallelCoordinatesCanvas.d.ts +0 -0
- /package/{dist/types/ParallelCoordinates → ParallelCoordinates}/PureParallelCoordinates/src/ParallelCoordinatesChart.d.ts +0 -0
- /package/{dist/types/ParallelCoordinates → ParallelCoordinates}/PureParallelCoordinates/src/ParallelCoordinatesPrompt.d.ts +0 -0
- /package/{dist/types/Pie → ParallelCoordinates}/config.d.ts +0 -0
- /package/{dist/types/ParallelCoordinates → ParallelCoordinates}/index.d.ts +0 -0
- /package/{dist/types/ParallelCoordinates → ParallelCoordinates}/mockdata/arrayValueData.d.ts +0 -0
- /package/{dist/types/ParallelCoordinates → ParallelCoordinates}/mockdata/sampleCarData.d.ts +0 -0
- /package/{dist/types/ParallelCoordinates → ParallelCoordinates}/mockdata/sampleCarNumericalData.d.ts +0 -0
- /package/{dist/types/ParallelCoordinates → ParallelCoordinates}/mockdata/sampleFoodData.d.ts +0 -0
- /package/{dist/types/ParallelCoordinates → ParallelCoordinates}/mockdata/sampleStringNumericalData.d.ts +0 -0
- /package/{dist/types/Pie → Pie}/Pie.d.ts +0 -0
- /package/{dist/types/Punchcard → Pie}/config.d.ts +0 -0
- /package/{dist/types/Pie → Pie}/index.d.ts +0 -0
- /package/{dist/types/Pie → Pie}/pieUtils.d.ts +0 -0
- /package/{dist/types/Punchcard → Punchcard}/Punchcard.d.ts +0 -0
- /package/{dist/types/Punchcard → Punchcard}/PurePunchcard/Punchcard.d.ts +0 -0
- /package/{dist/types/Punchcard → Punchcard}/PurePunchcard/src/PunchcardAxis.d.ts +0 -0
- /package/{dist/types/Punchcard → Punchcard}/PurePunchcard/src/PunchcardBubble.d.ts +0 -0
- /package/{dist/types/Punchcard → Punchcard}/PurePunchcard/src/PunchcardChartArea.d.ts +0 -0
- /package/{dist/types/Punchcard → Punchcard}/PurePunchcard/src/PunchcardGridLines.d.ts +0 -0
- /package/{dist/types/Punchcard → Punchcard}/PurePunchcard/src/PunchcardLegend.d.ts +0 -0
- /package/{dist/types/Punchcard → Punchcard}/PurePunchcard/src/PunchcardRow.d.ts +0 -0
- /package/{dist/types/Punchcard → Punchcard}/PurePunchcard/src/utils/punchcardUtils.d.ts +0 -0
- /package/{dist/types/Rectangle → Punchcard}/config.d.ts +0 -0
- /package/{dist/types/Punchcard → Punchcard}/index.d.ts +0 -0
- /package/{dist/types/Punchcard → Punchcard}/punchcardUtils.d.ts +0 -0
- /package/{dist/types/Rectangle → Rectangle}/Rectangle.d.ts +0 -0
- /package/{dist/types/Sankey → Rectangle}/config.d.ts +0 -0
- /package/{dist/types/Rectangle → Rectangle}/index.d.ts +0 -0
- /package/{dist/types/Sankey → Sankey}/PureSankey/PureSankey.d.ts +0 -0
- /package/{dist/types/Sankey → Sankey}/PureSankey/SankeyLink.d.ts +0 -0
- /package/{dist/types/Sankey → Sankey}/PureSankey/SankeyModels.d.ts +0 -0
- /package/{dist/types/Sankey → Sankey}/PureSankey/SankeyNode.d.ts +0 -0
- /package/{dist/types/Sankey → Sankey}/PureSankey/SankeyTooltip.d.ts +0 -0
- /package/{dist/types/Sankey → Sankey}/PureSankey/SankeyUtils.d.ts +0 -0
- /package/{dist/types/Sankey → Sankey}/PureSankey/mockdata/data.d.ts +0 -0
- /package/{dist/types/Sankey → Sankey}/Sankey.d.ts +0 -0
- /package/{dist/types/Scatter → Sankey}/config.d.ts +0 -0
- /package/{dist/types/Sankey → Sankey}/index.d.ts +0 -0
- /package/{dist/types/Scatter → Scatter}/Scatter.d.ts +0 -0
- /package/{dist/types/SingleValue → Scatter}/config.d.ts +0 -0
- /package/{dist/types/Scatter → Scatter}/index.d.ts +0 -0
- /package/{dist/types/Scatter → Scatter}/mockdata/data.d.ts +0 -0
- /package/{dist/types/Scatter → Scatter}/scatterUtils.d.ts +0 -0
- /package/{dist/types/SingleValue → SingleValue}/SingleValue.d.ts +0 -0
- /package/{dist/types/SingleValueIcon → SingleValue}/config.d.ts +0 -0
- /package/{dist/types/SingleValue → SingleValue}/index.d.ts +0 -0
- /package/{dist/types/SingleValueBasic → SingleValueBasic}/index.d.ts +0 -0
- /package/{dist/types/SingleValueIcon → SingleValueIcon}/SingleValueIcon.d.ts +0 -0
- /package/{dist/types/SingleValueRadial → SingleValueIcon}/config.d.ts +0 -0
- /package/{dist/types/SingleValueIcon → SingleValueIcon}/index.d.ts +0 -0
- /package/{dist/types/SingleValueRadial → SingleValueRadial}/PureSingleValueRadial/GaugeGraph.d.ts +0 -0
- /package/{dist/types/SingleValueRadial → SingleValueRadial}/SingleValueRadial.d.ts +0 -0
- /package/{dist/types/Table → SingleValueRadial}/config.d.ts +0 -0
- /package/{dist/types/SingleValueRadial → SingleValueRadial}/index.d.ts +0 -0
- /package/{dist/types/SparkLine → SparkLine}/index.d.ts +0 -0
- /package/{dist/types/Table → Table}/cells/ArrayCell.d.ts +0 -0
- /package/{dist/types/Table → Table}/cells/SparklineCell.d.ts +0 -0
- /package/{dist/types/Table → Table}/cells/SwitchTableCell.d.ts +0 -0
- /package/{dist/types/Table → Table}/cells/TextCell.d.ts +0 -0
- /package/{dist/types/Table → Table}/cells/index.d.ts +0 -0
- /package/{dist/types/Timeline → Table}/config.d.ts +0 -0
- /package/{dist/types/Table → Table}/index.d.ts +0 -0
- /package/{dist/types/Timeline → Timeline}/PureTimeline/PureTimeline.d.ts +0 -0
- /package/{dist/types/Timeline → Timeline}/PureTimeline/src/CursorPlugin.d.ts +0 -0
- /package/{dist/types/Timeline → Timeline}/PureTimeline/src/TimelineLegend.d.ts +0 -0
- /package/{dist/types/Timeline → Timeline}/PureTimeline/src/TimelineTooltip.d.ts +0 -0
- /package/{dist/types/Timeline → Timeline}/PureTimeline/src/TimelineUplot.d.ts +0 -0
- /package/{dist/types/Timeline → Timeline}/PureTimeline/src/TimelineYAxis.d.ts +0 -0
- /package/{dist/types/Timeline → Timeline}/Timeline.d.ts +0 -0
- /package/{dist/types/Timeline → Timeline}/index.d.ts +0 -0
- /package/{dist/types/Timeline → Timeline}/mockdata/basicTimelineData.d.ts +0 -0
- /package/{dist/types/Timeline → Timeline}/mockdata/categoricalTimelineData.d.ts +0 -0
- /package/{dist/types/Timeline → Timeline}/mockdata/timelineDataSource.d.ts +0 -0
- /package/{dist/types/common → common}/ChartingApi.d.ts +0 -0
- /package/{dist/types/common → common}/DocExampleWithVizSandbox.d.ts +0 -0
- /package/{dist/types/common → common}/OverviewDoc.d.ts +0 -0
- /package/{dist/types/common → common}/SplunkVisualization.d.ts +0 -0
- /package/{dist/types/common → common}/SplunkVisualizationApi.d.ts +0 -0
- /package/{dist/types/common → common}/ThemedDefaults.d.ts +0 -0
- /package/{dist/types/common → common}/components/IconPlaceholder.d.ts +0 -0
- /package/{dist/types/common → common}/components/MissingPropsMessage.d.ts +0 -0
- /package/{dist/types/common → common}/components/TrellisTitle.d.ts +0 -0
- /package/{dist/types/common → common}/configContext/singleValueContext.d.ts +0 -0
- /package/{dist/types/common → common}/docUtils.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/AxesChartColorAndStyle.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/AxesChartDataConfig.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/AxesChartDataDisplay.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/AxesChartLegend.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/AxesChartXGridAndLabels.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/AxesChartY2GridAndLabels.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/AxesChartYGridAndLabels.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/BackgroundColor.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/DynamicFillColorEditor.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/DynamicGaugeColorEditor.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/DynamicStrokeColorEditor.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/Gauge.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/Legend.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/RadialBackgroundColor.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/StaticFillColorEditor.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/StaticGaugeColorEditor.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/StaticStrokeColorEditor.d.ts +0 -0
- /package/{dist/types/common → common}/editorConfig/TrellisEditors.d.ts +0 -0
- /package/{dist/types/common → common}/gaugeUtils.d.ts +0 -0
- /package/{dist/types/common → common}/hocs/FixedSizeContainer.d.ts +0 -0
- /package/{dist/types/common → common}/hocs/mockdata/trellisData.d.ts +0 -0
- /package/{dist/types/common → common}/hocs/withEditModeCover.d.ts +0 -0
- /package/{dist/types/common → common}/hocs/withPlaceholder.d.ts +0 -0
- /package/{dist/types/common → common}/hocs/withTrellis.d.ts +0 -0
- /package/{dist/types/common → common}/hooks/useDeepMemo.d.ts +0 -0
- /package/{dist/types/common → common}/hooks/useDownsampleDataSources.d.ts +0 -0
- /package/{dist/types/common → common}/hooks/useEventCallback.d.ts +0 -0
- /package/{dist/types/common → common}/hooks/useGetXAndYFields.d.ts +0 -0
- /package/{dist/types/common → common}/hooks/usePagination.d.ts +0 -0
- /package/{dist/types/common → common}/hooks/usePrevious.d.ts +0 -0
- /package/{dist/types/common → common}/hooks/useSorting.d.ts +0 -0
- /package/{dist/types/common → common}/hooks/useTrellisEnabled.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/ChartEvent.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/DataContract.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/DefaultContext.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/Editor.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/ExtendedDashViz.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/Object.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/Overview.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/ThemedDefaults.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/VizActionHandler.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/VizBehavior.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/VizCategory.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/VizConfig.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/VizEvent.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/VizProps.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/VizRegistry.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/VizSize.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/VizStatus.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/index.d.ts +0 -0
- /package/{dist/types/common → common}/shapeUtils.d.ts +0 -0
- /package/{dist/types/common → common}/utils/configUtils.d.ts +0 -0
- /package/{dist/types/common → common}/utils/dataUtils.d.ts +0 -0
- /package/{dist/types/common → common}/utils/hocUtils.d.ts +0 -0
- /package/{dist/types/common → common}/utils/mapUtils.d.ts +0 -0
- /package/{dist/types/common → common}/utils/trellisUtils.d.ts +0 -0
- /package/{dist/types/common → common}/utils/urlUtils.d.ts +0 -0
package/Map.js
CHANGED
|
@@ -59,6 +59,26 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
59
59
|
mod
|
|
60
60
|
));
|
|
61
61
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
62
|
+
var __async = (__this, __arguments, generator) => {
|
|
63
|
+
return new Promise((resolve, reject) => {
|
|
64
|
+
var fulfilled = (value) => {
|
|
65
|
+
try {
|
|
66
|
+
step(generator.next(value));
|
|
67
|
+
} catch (e) {
|
|
68
|
+
reject(e);
|
|
69
|
+
}
|
|
70
|
+
};
|
|
71
|
+
var rejected = (value) => {
|
|
72
|
+
try {
|
|
73
|
+
step(generator.throw(value));
|
|
74
|
+
} catch (e) {
|
|
75
|
+
reject(e);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
var step = (x) => x.done ? resolve(x.value) : Promise.resolve(x.value).then(fulfilled, rejected);
|
|
79
|
+
step((generator = generator.apply(__this, __arguments)).next());
|
|
80
|
+
});
|
|
81
|
+
};
|
|
62
82
|
|
|
63
83
|
// src/Map/index.ts
|
|
64
84
|
var Map_exports = {};
|
|
@@ -207,113 +227,68 @@ var defaultImport15 = __toESM(require("maplibre-gl/dist/maplibre-gl.css"));
|
|
|
207
227
|
__reExport(maplibre_gl_exports2, require("maplibre-gl/dist/maplibre-gl.css"));
|
|
208
228
|
var maplibre_gl_default2 = "default" in defaultImport15 ? defaultImport15.default : defaultImport15;
|
|
209
229
|
|
|
210
|
-
//
|
|
211
|
-
var
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
background-color: ${(props) => props.backgroundColor};
|
|
219
|
-
${(props) => (0, style_exports.toDimension)((0, lodash_exports.pick)(props, ["width", "height"]))};
|
|
220
|
-
|
|
221
|
-
// keep zoom control on top of cooperative gesture layer
|
|
222
|
-
.maplibregl-cooperative-gesture-screen {
|
|
223
|
-
z-index: 0;
|
|
224
|
-
}
|
|
230
|
+
// esm-externals:@splunk/visualizations-shared/iconUtils
|
|
231
|
+
var iconUtils_exports = {};
|
|
232
|
+
__export(iconUtils_exports, {
|
|
233
|
+
default: () => iconUtils_default
|
|
234
|
+
});
|
|
235
|
+
var defaultImport16 = __toESM(require("@splunk/visualizations-shared/iconUtils"));
|
|
236
|
+
__reExport(iconUtils_exports, require("@splunk/visualizations-shared/iconUtils"));
|
|
237
|
+
var iconUtils_default = "default" in defaultImport16 ? defaultImport16.default : defaultImport16;
|
|
225
238
|
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
height: 87px !important;
|
|
235
|
-
border-radius: 4px;
|
|
236
|
-
margin: 8px 0px;
|
|
237
|
-
background-color: ${(props) => props.controlBackgroundColor};
|
|
238
|
-
box-shadow:
|
|
239
|
-
0px 26px 103px rgba(0, 0, 0, 0.64),
|
|
240
|
-
0px 11px 18px rgba(0, 0, 0, 0.32),
|
|
241
|
-
0px 3px 6px rgba(0, 0, 0, 0.3);
|
|
242
|
-
& button {
|
|
243
|
-
width: 40px;
|
|
244
|
-
height: 43px;
|
|
245
|
-
border-top: 0;
|
|
246
|
-
}
|
|
247
|
-
.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon {
|
|
248
|
-
background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M9 1C9 0.447715 8.55229 0 8 0C7.44772 0 7 0.447715 7 1V7H1C0.447715 7 0 7.44772 0 8C0 8.55229 0.447715 9 1 9H7V15C7 15.5523 7.44772 16 8 16C8.55229 16 9 15.5523 9 15V9H15C15.5523 9 16 8.55229 16 8C16 7.44772 15.5523 7 15 7H9V1Z" fill="${(props) => props.controlIconColorEncoded.color}" fill-opacity="${(props) => props.controlIconColorEncoded.opacity}" /></svg>');
|
|
249
|
-
}
|
|
239
|
+
// esm-externals:@splunk/visualizations-shared/RemoteIcon
|
|
240
|
+
var RemoteIcon_exports = {};
|
|
241
|
+
__export(RemoteIcon_exports, {
|
|
242
|
+
default: () => RemoteIcon_default
|
|
243
|
+
});
|
|
244
|
+
var defaultImport17 = __toESM(require("@splunk/visualizations-shared/RemoteIcon"));
|
|
245
|
+
__reExport(RemoteIcon_exports, require("@splunk/visualizations-shared/RemoteIcon"));
|
|
246
|
+
var RemoteIcon_default = "default" in defaultImport17 ? defaultImport17.default : defaultImport17;
|
|
250
247
|
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
248
|
+
// esm-externals:@splunk/visualization-context/FeatureFlagContext
|
|
249
|
+
var FeatureFlagContext_exports = {};
|
|
250
|
+
__export(FeatureFlagContext_exports, {
|
|
251
|
+
default: () => FeatureFlagContext_default
|
|
252
|
+
});
|
|
253
|
+
var defaultImport18 = __toESM(require("@splunk/visualization-context/FeatureFlagContext"));
|
|
254
|
+
__reExport(FeatureFlagContext_exports, require("@splunk/visualization-context/FeatureFlagContext"));
|
|
255
|
+
var FeatureFlagContext_default = "default" in defaultImport18 ? defaultImport18.default : defaultImport18;
|
|
256
256
|
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
height: 29px;
|
|
266
|
-
border-radius: 4px;
|
|
267
|
-
margin: 0;
|
|
268
|
-
background-color: ${(props) => props.controlBackgroundColor};
|
|
269
|
-
box-shadow:
|
|
270
|
-
0px 26px 103px rgba(0, 0, 0, 0.13),
|
|
271
|
-
0px 11px 18px rgba(0, 0, 0, 0.06),
|
|
272
|
-
0px 3px 6px rgba(0, 0, 0, 0.06);
|
|
273
|
-
.maplibregl-ctrl-scale {
|
|
274
|
-
background-color: ${(props) => props.controlBackgroundColor};
|
|
275
|
-
color: ${(props) => props.controlForegroundColor};
|
|
276
|
-
border: 2px solid ${(props) => props.controlForegroundColor};
|
|
277
|
-
border-top: 0;
|
|
278
|
-
border-left: 0;
|
|
279
|
-
border-right: 0;
|
|
280
|
-
padding: 0;
|
|
281
|
-
margin: 6px 8px 8px 8px;
|
|
282
|
-
line-height: 13px;
|
|
283
|
-
letter-spacing: 0.02em;
|
|
284
|
-
font-family: sans-serif;
|
|
285
|
-
font-size: 10px;
|
|
286
|
-
}
|
|
287
|
-
}
|
|
288
|
-
`;
|
|
289
|
-
var PureMapContainer_default = PureMapContainer;
|
|
257
|
+
// esm-externals:@splunk/ui-utils/id
|
|
258
|
+
var id_exports = {};
|
|
259
|
+
__export(id_exports, {
|
|
260
|
+
default: () => id_default
|
|
261
|
+
});
|
|
262
|
+
var defaultImport19 = __toESM(require("@splunk/ui-utils/id"));
|
|
263
|
+
__reExport(id_exports, require("@splunk/ui-utils/id"));
|
|
264
|
+
var id_default = "default" in defaultImport19 ? defaultImport19.default : defaultImport19;
|
|
290
265
|
|
|
291
266
|
// esm-externals:d3-scale
|
|
292
267
|
var d3_scale_exports = {};
|
|
293
268
|
__export(d3_scale_exports, {
|
|
294
269
|
default: () => d3_scale_default
|
|
295
270
|
});
|
|
296
|
-
var
|
|
271
|
+
var defaultImport20 = __toESM(require("d3-scale"));
|
|
297
272
|
__reExport(d3_scale_exports, require("d3-scale"));
|
|
298
|
-
var d3_scale_default = "default" in
|
|
273
|
+
var d3_scale_default = "default" in defaultImport20 ? defaultImport20.default : defaultImport20;
|
|
299
274
|
|
|
300
275
|
// esm-externals:@splunk/visualization-color-palettes
|
|
301
276
|
var visualization_color_palettes_exports = {};
|
|
302
277
|
__export(visualization_color_palettes_exports, {
|
|
303
278
|
default: () => visualization_color_palettes_default
|
|
304
279
|
});
|
|
305
|
-
var
|
|
280
|
+
var defaultImport21 = __toESM(require("@splunk/visualization-color-palettes"));
|
|
306
281
|
__reExport(visualization_color_palettes_exports, require("@splunk/visualization-color-palettes"));
|
|
307
|
-
var visualization_color_palettes_default = "default" in
|
|
282
|
+
var visualization_color_palettes_default = "default" in defaultImport21 ? defaultImport21.default : defaultImport21;
|
|
308
283
|
|
|
309
284
|
// esm-externals:@splunk/visualization-encoding/utils/types
|
|
310
285
|
var types_exports = {};
|
|
311
286
|
__export(types_exports, {
|
|
312
287
|
default: () => types_default
|
|
313
288
|
});
|
|
314
|
-
var
|
|
289
|
+
var defaultImport22 = __toESM(require("@splunk/visualization-encoding/utils/types"));
|
|
315
290
|
__reExport(types_exports, require("@splunk/visualization-encoding/utils/types"));
|
|
316
|
-
var types_default = "default" in
|
|
291
|
+
var types_default = "default" in defaultImport22 ? defaultImport22.default : defaultImport22;
|
|
317
292
|
|
|
318
293
|
// src/Map/PureMap/MapUtils.ts
|
|
319
294
|
var MAX_LATITUDE = 90;
|
|
@@ -332,23 +307,24 @@ var getTilePreset = ({
|
|
|
332
307
|
defaultTileConfig = [],
|
|
333
308
|
customTileConfig = []
|
|
334
309
|
}) => {
|
|
335
|
-
var _a, _b;
|
|
310
|
+
var _a, _b, _c, _d;
|
|
336
311
|
const tilePreset = {};
|
|
337
312
|
let defaultTileLight = {};
|
|
338
313
|
let defaultTileDark = {};
|
|
339
|
-
const tileConfigs = [
|
|
314
|
+
const tileConfigs = [...defaultTileConfig, ...customTileConfig];
|
|
340
315
|
(0, lodash_exports.forEach)(tileConfigs, (tileConfig) => {
|
|
341
316
|
const key = tileConfig == null ? void 0 : tileConfig.key;
|
|
342
|
-
|
|
343
|
-
|
|
344
|
-
}
|
|
317
|
+
if (!key) {
|
|
318
|
+
return;
|
|
319
|
+
}
|
|
320
|
+
const updatedConfig = __spreadProps(__spreadValues({}, tileConfig), {
|
|
345
321
|
version: MAP_STYLE_VERSION_NUMBER
|
|
346
322
|
});
|
|
347
323
|
tilePreset[key] = updatedConfig;
|
|
348
324
|
});
|
|
349
325
|
if (defaultTileConfig.length > 0) {
|
|
350
|
-
defaultTileLight = (_a = defaultTileConfig.find((config2) => config2.theme === "light")) != null ? _a : defaultTileConfig.find((config2) => config2.theme === void 0);
|
|
351
|
-
defaultTileDark = (
|
|
326
|
+
defaultTileLight = (_b = (_a = defaultTileConfig.find((config2) => config2.theme === "light")) != null ? _a : defaultTileConfig.find((config2) => config2.theme === void 0)) != null ? _b : {};
|
|
327
|
+
defaultTileDark = (_d = (_c = defaultTileConfig.find((config2) => config2.theme === "dark")) != null ? _c : defaultTileConfig.find((config2) => config2.theme === void 0)) != null ? _d : {};
|
|
352
328
|
}
|
|
353
329
|
return { tilePreset, defaultTileLight, defaultTileDark };
|
|
354
330
|
};
|
|
@@ -363,6 +339,8 @@ var getMapStyle = ({
|
|
|
363
339
|
}) => {
|
|
364
340
|
if (!showBaseLayer) {
|
|
365
341
|
return {
|
|
342
|
+
name: "empty-base-layer",
|
|
343
|
+
key: "empty-base-layer",
|
|
366
344
|
version: MAP_STYLE_VERSION_NUMBER,
|
|
367
345
|
sources: {
|
|
368
346
|
"base-tiles": {
|
|
@@ -384,21 +362,23 @@ var getMapStyle = ({
|
|
|
384
362
|
]
|
|
385
363
|
};
|
|
386
364
|
}
|
|
387
|
-
if (baseLayerTileServer && tilePreset[baseLayerTileServer] && (tilePreset[baseLayerTileServer].theme
|
|
365
|
+
if (baseLayerTileServer && tilePreset[baseLayerTileServer] && (!tilePreset[baseLayerTileServer].theme || tilePreset[baseLayerTileServer].theme === colorScheme)) {
|
|
388
366
|
return tilePreset[baseLayerTileServer];
|
|
389
367
|
}
|
|
390
368
|
if (baseLayerTileServer && baseLayerTileServerType) {
|
|
391
369
|
let tiles = [];
|
|
392
|
-
if (
|
|
370
|
+
if (/^(https?):\/\/{[sS]}\./.exec(baseLayerTileServer)) {
|
|
393
371
|
tiles = [
|
|
394
|
-
baseLayerTileServer.replace(/{
|
|
395
|
-
baseLayerTileServer.replace(/{
|
|
396
|
-
baseLayerTileServer.replace(/{
|
|
372
|
+
baseLayerTileServer.replace(/{[sS]}/, "a"),
|
|
373
|
+
baseLayerTileServer.replace(/{[sS]}/, "b"),
|
|
374
|
+
baseLayerTileServer.replace(/{[sS]}/, "c")
|
|
397
375
|
];
|
|
398
376
|
} else {
|
|
399
377
|
tiles = [baseLayerTileServer];
|
|
400
378
|
}
|
|
401
379
|
const mapStyle = {
|
|
380
|
+
name: baseLayerTileServer,
|
|
381
|
+
key: baseLayerTileServer,
|
|
402
382
|
version: MAP_STYLE_VERSION_NUMBER,
|
|
403
383
|
sources: {
|
|
404
384
|
"base-tiles": {
|
|
@@ -426,9 +406,11 @@ var getZoomConstraintsFromTileConfig = (tileConfig, baseLayerTileServer) => {
|
|
|
426
406
|
const { sources, layers } = tileConfig;
|
|
427
407
|
let matchedBaseLayerTileServer = false;
|
|
428
408
|
const sourceKeys = Object.keys(sources);
|
|
429
|
-
for (
|
|
430
|
-
const
|
|
431
|
-
|
|
409
|
+
for (const key of sourceKeys) {
|
|
410
|
+
const source = sources[key];
|
|
411
|
+
const { minzoom, maxzoom } = source;
|
|
412
|
+
const tiles = Array.isArray(source == null ? void 0 : source.tiles) ? source.tiles : [];
|
|
413
|
+
if (baseLayerTileServer && tiles.includes(baseLayerTileServer)) {
|
|
432
414
|
matchedBaseLayerTileServer = true;
|
|
433
415
|
}
|
|
434
416
|
if ((baseLayerTileServer && matchedBaseLayerTileServer || !baseLayerTileServer) && (0, lodash_exports.isNumber)(minzoom) && (0, lodash_exports.isNumber)(maxzoom)) {
|
|
@@ -438,8 +420,8 @@ var getZoomConstraintsFromTileConfig = (tileConfig, baseLayerTileServer) => {
|
|
|
438
420
|
};
|
|
439
421
|
}
|
|
440
422
|
}
|
|
441
|
-
for (
|
|
442
|
-
const { minzoom, maxzoom } =
|
|
423
|
+
for (const layer of layers) {
|
|
424
|
+
const { minzoom, maxzoom } = layer;
|
|
443
425
|
if ((baseLayerTileServer && matchedBaseLayerTileServer || !baseLayerTileServer) && (0, lodash_exports.isNumber)(minzoom) && (0, lodash_exports.isNumber)(maxzoom)) {
|
|
444
426
|
return {
|
|
445
427
|
minZoom: minzoom,
|
|
@@ -452,12 +434,13 @@ var getZoomConstraintsFromTileConfig = (tileConfig, baseLayerTileServer) => {
|
|
|
452
434
|
maxZoom: 24
|
|
453
435
|
};
|
|
454
436
|
};
|
|
437
|
+
var isBaseTileConfig = (config2) => Boolean(config2 && "name" in config2 && "key" in config2 && "sources" in config2 && "layers" in config2);
|
|
455
438
|
var getZoomLevelFromGeobin = (geobinStr) => {
|
|
456
439
|
var _a;
|
|
457
440
|
if (!geobinStr) {
|
|
458
441
|
return null;
|
|
459
442
|
}
|
|
460
|
-
const geobinPattern = /bin_id_zl_(
|
|
443
|
+
const geobinPattern = /bin_id_zl_(\d{1,2})_y_/g;
|
|
461
444
|
const match = geobinPattern.exec(geobinStr);
|
|
462
445
|
return (_a = (match == null ? void 0 : match.length) && parseInt(match[1], 10)) != null ? _a : null;
|
|
463
446
|
};
|
|
@@ -465,7 +448,7 @@ var getStaticColors = (colorCount, colorArray) => {
|
|
|
465
448
|
if (colorCount < 0 || !colorCount) {
|
|
466
449
|
return [DEFAULT_CLUSTER_COLOR];
|
|
467
450
|
}
|
|
468
|
-
if (!colorArray
|
|
451
|
+
if (!(colorArray == null ? void 0 : colorArray.length)) {
|
|
469
452
|
return [...Array(colorCount).keys()].map((i) => DEFAULT_SERIES_COLORS[i]);
|
|
470
453
|
}
|
|
471
454
|
return [...Array(colorCount).keys()].map(
|
|
@@ -485,7 +468,8 @@ var matchBubbleSize = (dataRange, data) => {
|
|
|
485
468
|
return size2;
|
|
486
469
|
};
|
|
487
470
|
var transposeArray = (array2) => {
|
|
488
|
-
|
|
471
|
+
var _a;
|
|
472
|
+
if (!(array2 == null ? void 0 : array2.length) || !((_a = array2[0]) == null ? void 0 : _a.length)) {
|
|
489
473
|
return [];
|
|
490
474
|
}
|
|
491
475
|
return array2[0].map((_7, i) => array2.map((row) => row[i]));
|
|
@@ -507,8 +491,8 @@ var sortByValuesField = (bubbleLayer) => {
|
|
|
507
491
|
bubbleLayer.bubbleSize.unshift(bubbleLayer.bubbleSize.splice(index, 1)[0]);
|
|
508
492
|
};
|
|
509
493
|
var bakeBubbleData = (layer) => {
|
|
510
|
-
var _a;
|
|
511
|
-
if (!
|
|
494
|
+
var _a, _b, _c, _d;
|
|
495
|
+
if (!((_a = layer == null ? void 0 : layer.bubbleSize) == null ? void 0 : _a.length) || !((_b = layer == null ? void 0 : layer.geobin) == null ? void 0 : _b.length) || !((_c = layer == null ? void 0 : layer.latitude) == null ? void 0 : _c.length) || !((_d = layer == null ? void 0 : layer.longitude) == null ? void 0 : _d.length)) {
|
|
512
496
|
return null;
|
|
513
497
|
}
|
|
514
498
|
const sanitizedBubbleSize = sanitizeValues(layer.bubbleSize);
|
|
@@ -528,7 +512,7 @@ var bakeBubbleData = (layer) => {
|
|
|
528
512
|
transposedBubbleSize = layer.bubbleSize.map((n) => [n]);
|
|
529
513
|
transposedSanitizedBubbleSize = sanitizedBubbleSize.map((n) => [n]);
|
|
530
514
|
}
|
|
531
|
-
if (!transposedBubbleSize
|
|
515
|
+
if (!(transposedBubbleSize == null ? void 0 : transposedBubbleSize.length)) {
|
|
532
516
|
return null;
|
|
533
517
|
}
|
|
534
518
|
const data = layer.latitude.map((lat, i) => ({
|
|
@@ -566,17 +550,33 @@ var isValidLatLon = (latlon) => {
|
|
|
566
550
|
}
|
|
567
551
|
return true;
|
|
568
552
|
};
|
|
553
|
+
var getChoroplethValues = (field, choroplethLayer) => {
|
|
554
|
+
var _a;
|
|
555
|
+
if (!Array.isArray(choroplethLayer.geom) || choroplethLayer.geom.length === 0) {
|
|
556
|
+
return [];
|
|
557
|
+
}
|
|
558
|
+
const limit = (_a = choroplethLayer.resultLimit) != null ? _a : DEFAULT_RESULT_LIMIT;
|
|
559
|
+
const slicedGeomList = choroplethLayer.geom.slice(0, limit);
|
|
560
|
+
const flatCoordinates = slicedGeomList.flatMap((geomObject) => {
|
|
561
|
+
if (!geomObject) {
|
|
562
|
+
return [];
|
|
563
|
+
}
|
|
564
|
+
if (geomObject.type === "MultiPolygon") {
|
|
565
|
+
return geomObject.coordinates.flat(2);
|
|
566
|
+
}
|
|
567
|
+
if (geomObject.type === "Polygon") {
|
|
568
|
+
return geomObject.coordinates.flat();
|
|
569
|
+
}
|
|
570
|
+
return [];
|
|
571
|
+
});
|
|
572
|
+
return flatCoordinates.map((coord) => coord[field === LONGITUDE ? 0 : 1]);
|
|
573
|
+
};
|
|
569
574
|
var getLatOrLonCoordinates = (layer, field) => {
|
|
570
575
|
const getClusterValues = (clusterLayer) => (0, lodash_exports.get)(clusterLayer, field, []).slice(
|
|
571
576
|
0,
|
|
572
577
|
clusterLayer.type === visualization_schemas_exports.LAYER_TYPE.Marker && clusterLayer.resultLimit ? clusterLayer.resultLimit : DEFAULT_RESULT_LIMIT
|
|
573
578
|
);
|
|
574
|
-
|
|
575
|
-
const slicedGeomList = choroplethLayer.geom.slice(0, choroplethLayer.resultLimit);
|
|
576
|
-
const flatCoordinates = slicedGeomList.flatMap((geomObject) => geomObject.coordinates.flat(2));
|
|
577
|
-
return flatCoordinates.map((coord) => coord[field === LONGITUDE ? 0 : 1]);
|
|
578
|
-
};
|
|
579
|
-
return layer.type === visualization_schemas_exports.LAYER_TYPE.Choropleth ? getChoroplethValues(layer) : getClusterValues(layer);
|
|
579
|
+
return layer.type === visualization_schemas_exports.LAYER_TYPE.Choropleth ? getChoroplethValues(field, layer) : getClusterValues(layer);
|
|
580
580
|
};
|
|
581
581
|
var getGlobalLayerBoundaries = (layers) => {
|
|
582
582
|
const isLayerValid = (field) => layers.every((layer) => layer[field] || layer.geom);
|
|
@@ -608,6 +608,15 @@ var getGlobalLayerBoundaries = (layers) => {
|
|
|
608
608
|
[getMax(LONGITUDE), getMax(LATITUDE)]
|
|
609
609
|
];
|
|
610
610
|
};
|
|
611
|
+
var formatTooltipFieldValue = (value) => {
|
|
612
|
+
if (value === null || value === void 0) {
|
|
613
|
+
return "";
|
|
614
|
+
}
|
|
615
|
+
if (typeof value === "string" || typeof value === "number") {
|
|
616
|
+
return value;
|
|
617
|
+
}
|
|
618
|
+
return JSON.stringify(value);
|
|
619
|
+
};
|
|
611
620
|
var getScaledOpacities = (colors, cfgOpacity) => {
|
|
612
621
|
const opacities = colors == null ? void 0 : colors.map((color) => {
|
|
613
622
|
var _a;
|
|
@@ -627,7 +636,7 @@ var compareBaseStyles = (curr, next) => {
|
|
|
627
636
|
return (0, lodash_exports.isEqual)(currBaseLayer, nextBaseLayer) && (0, lodash_exports.isEqual)(currBaseSource, nextBaseSource);
|
|
628
637
|
};
|
|
629
638
|
var formatMetadata = (choroplethLayer, i) => {
|
|
630
|
-
if (!choroplethLayer
|
|
639
|
+
if (!(choroplethLayer == null ? void 0 : choroplethLayer.areaIds) || !(choroplethLayer == null ? void 0 : choroplethLayer.areaValues)) return {};
|
|
631
640
|
if (i >= choroplethLayer.areaIds.length) return {};
|
|
632
641
|
const metadata = choroplethLayer.metadata ? choroplethLayer.metadata[i] : {};
|
|
633
642
|
const name = choroplethLayer.areaIds[i];
|
|
@@ -640,42 +649,6 @@ var formatMetadata = (choroplethLayer, i) => {
|
|
|
640
649
|
}, base);
|
|
641
650
|
};
|
|
642
651
|
|
|
643
|
-
// esm-externals:@splunk/visualizations-shared/iconUtils
|
|
644
|
-
var iconUtils_exports = {};
|
|
645
|
-
__export(iconUtils_exports, {
|
|
646
|
-
default: () => iconUtils_default
|
|
647
|
-
});
|
|
648
|
-
var defaultImport19 = __toESM(require("@splunk/visualizations-shared/iconUtils"));
|
|
649
|
-
__reExport(iconUtils_exports, require("@splunk/visualizations-shared/iconUtils"));
|
|
650
|
-
var iconUtils_default = "default" in defaultImport19 ? defaultImport19.default : defaultImport19;
|
|
651
|
-
|
|
652
|
-
// esm-externals:@splunk/visualizations-shared/RemoteIcon
|
|
653
|
-
var RemoteIcon_exports = {};
|
|
654
|
-
__export(RemoteIcon_exports, {
|
|
655
|
-
default: () => RemoteIcon_default
|
|
656
|
-
});
|
|
657
|
-
var defaultImport20 = __toESM(require("@splunk/visualizations-shared/RemoteIcon"));
|
|
658
|
-
__reExport(RemoteIcon_exports, require("@splunk/visualizations-shared/RemoteIcon"));
|
|
659
|
-
var RemoteIcon_default = "default" in defaultImport20 ? defaultImport20.default : defaultImport20;
|
|
660
|
-
|
|
661
|
-
// esm-externals:@splunk/visualization-context/FeatureFlagContext
|
|
662
|
-
var FeatureFlagContext_exports = {};
|
|
663
|
-
__export(FeatureFlagContext_exports, {
|
|
664
|
-
default: () => FeatureFlagContext_default
|
|
665
|
-
});
|
|
666
|
-
var defaultImport21 = __toESM(require("@splunk/visualization-context/FeatureFlagContext"));
|
|
667
|
-
__reExport(FeatureFlagContext_exports, require("@splunk/visualization-context/FeatureFlagContext"));
|
|
668
|
-
var FeatureFlagContext_default = "default" in defaultImport21 ? defaultImport21.default : defaultImport21;
|
|
669
|
-
|
|
670
|
-
// esm-externals:@splunk/ui-utils/id
|
|
671
|
-
var id_exports = {};
|
|
672
|
-
__export(id_exports, {
|
|
673
|
-
default: () => id_default
|
|
674
|
-
});
|
|
675
|
-
var defaultImport22 = __toESM(require("@splunk/ui-utils/id"));
|
|
676
|
-
__reExport(id_exports, require("@splunk/ui-utils/id"));
|
|
677
|
-
var id_default = "default" in defaultImport22 ? defaultImport22.default : defaultImport22;
|
|
678
|
-
|
|
679
652
|
// esm-externals:@splunk/react-ui/Popover
|
|
680
653
|
var Popover_exports = {};
|
|
681
654
|
__export(Popover_exports, {
|
|
@@ -696,19 +669,24 @@ var themes_default = "default" in defaultImport24 ? defaultImport24.default : de
|
|
|
696
669
|
|
|
697
670
|
// src/Map/PureMap/Tooltip.tsx
|
|
698
671
|
var StyledPopover = styled_components_default(Popover_default)`
|
|
699
|
-
width: 250px;
|
|
672
|
+
min-width: 250px;
|
|
673
|
+
max-width: 332px;
|
|
674
|
+
max-width: fit-content;
|
|
700
675
|
font-size: 12px;
|
|
701
676
|
`;
|
|
702
677
|
var StyledTable = styled_components_default.table`
|
|
703
678
|
margin: 2px 6px 2px 6px;
|
|
704
|
-
table-layout: fixed;
|
|
705
679
|
width: calc(100% - 12px);
|
|
706
680
|
`;
|
|
707
681
|
var StyledTitleColumn = styled_components_default.td`
|
|
708
682
|
opacity: 0.85;
|
|
683
|
+
word-break: break-all;
|
|
684
|
+
vertical-align: top;
|
|
709
685
|
`;
|
|
710
686
|
var StyledValueColumn = styled_components_default.td`
|
|
711
687
|
text-align: right;
|
|
688
|
+
word-break: break-all;
|
|
689
|
+
vertical-align: top;
|
|
712
690
|
`;
|
|
713
691
|
var StyledColorBlock = styled_components_default.div`
|
|
714
692
|
background-color: ${(props) => props.color};
|
|
@@ -719,10 +697,6 @@ var StyledColorBlock = styled_components_default.div`
|
|
|
719
697
|
height: 11px;
|
|
720
698
|
transform: translateY(1px);
|
|
721
699
|
`;
|
|
722
|
-
var StyledFieldLabel = styled_components_default.span`
|
|
723
|
-
display: inline-block;
|
|
724
|
-
white-space: nowrap;
|
|
725
|
-
`;
|
|
726
700
|
var StyledIconWrapper = styled_components_default.span`
|
|
727
701
|
margin-left: 4px;
|
|
728
702
|
display: inline-block;
|
|
@@ -789,7 +763,7 @@ var Tooltip = ({
|
|
|
789
763
|
"data-test": "map-marker-tooltip",
|
|
790
764
|
defaultPlacement: "above"
|
|
791
765
|
},
|
|
792
|
-
/* @__PURE__ */ react_exports.createElement(StyledTable, null, tooltipHeader && /* @__PURE__ */ react_exports.createElement(StyledTooltipHeader, { "data-test": "tooltip-header" }, /* @__PURE__ */ react_exports.createElement("tr", null, /* @__PURE__ */ react_exports.createElement("th", { colSpan: 2 }, /* @__PURE__ */ react_exports.createElement("span", { "data-test": "tooltip-header-value" }, tooltipHeader)))), /* @__PURE__ */ react_exports.createElement("tbody", null, areaId && areaValue && /* @__PURE__ */ react_exports.createElement("tr", null, /* @__PURE__ */ react_exports.createElement(StyledTitleColumn, { "data-test": "area-id" }, areaId), /* @__PURE__ */ react_exports.createElement(StyledValueColumn, { "data-test": "area-value" }, areaValue)), Boolean(showCoordinates && latitude) && /* @__PURE__ */ react_exports.createElement("tr", null, /* @__PURE__ */ react_exports.createElement(StyledTitleColumn, null, (0, i18n_exports._)("Latitude")), /* @__PURE__ */ react_exports.createElement(StyledValueColumn, { "data-test": "latitude" }, convertDegToDMS(latitude, "latitude"))), Boolean(showCoordinates && longitude) && /* @__PURE__ */ react_exports.createElement("tr", null, /* @__PURE__ */ react_exports.createElement(StyledTitleColumn, null, (0, i18n_exports._)("Longitude")), /* @__PURE__ */ react_exports.createElement(StyledValueColumn, { "data-test": "longitude" }, convertDegToDMS(longitude, "longitude"))), additionalFields.filter(({ value }) => value && String(value) !== "0").map(({ name, value, color, icon }) => /* @__PURE__ */ react_exports.createElement("tr", { key: (0, id_exports.createDOMID)() }, /* @__PURE__ */ react_exports.createElement(StyledTitleColumn, { "data-test": "field-title" }, color ? /* @__PURE__ */ react_exports.createElement(StyledColorBlock, { "data-test": "field-color", color }) : null, /* @__PURE__ */ react_exports.createElement(
|
|
766
|
+
/* @__PURE__ */ react_exports.createElement(StyledTable, null, tooltipHeader && /* @__PURE__ */ react_exports.createElement(StyledTooltipHeader, { "data-test": "tooltip-header" }, /* @__PURE__ */ react_exports.createElement("tr", null, /* @__PURE__ */ react_exports.createElement("th", { colSpan: 2 }, /* @__PURE__ */ react_exports.createElement("span", { "data-test": "tooltip-header-value" }, tooltipHeader)))), /* @__PURE__ */ react_exports.createElement("tbody", null, Boolean(areaId && areaValue) && /* @__PURE__ */ react_exports.createElement("tr", null, /* @__PURE__ */ react_exports.createElement(StyledTitleColumn, { "data-test": "area-id" }, areaId), /* @__PURE__ */ react_exports.createElement(StyledValueColumn, { "data-test": "area-value" }, areaValue)), Boolean(showCoordinates && latitude) && /* @__PURE__ */ react_exports.createElement("tr", null, /* @__PURE__ */ react_exports.createElement(StyledTitleColumn, null, (0, i18n_exports._)("Latitude")), /* @__PURE__ */ react_exports.createElement(StyledValueColumn, { "data-test": "latitude" }, convertDegToDMS(latitude, "latitude"))), Boolean(showCoordinates && longitude) && /* @__PURE__ */ react_exports.createElement("tr", null, /* @__PURE__ */ react_exports.createElement(StyledTitleColumn, null, (0, i18n_exports._)("Longitude")), /* @__PURE__ */ react_exports.createElement(StyledValueColumn, { "data-test": "longitude" }, convertDegToDMS(longitude, "longitude"))), additionalFields.filter(({ value }) => value && String(value) !== "0").map(({ name, value, color, icon }) => /* @__PURE__ */ react_exports.createElement("tr", { key: (0, id_exports.createDOMID)() }, /* @__PURE__ */ react_exports.createElement(StyledTitleColumn, { "data-test": "field-title" }, color ? /* @__PURE__ */ react_exports.createElement(StyledColorBlock, { "data-test": "field-color", color }) : null, /* @__PURE__ */ react_exports.createElement("span", null, name, isTooltipIconFlagEnabled && icon && ((0, iconUtils_exports.isRemoteIcon)(icon) || (0, iconUtils_exports.isDataURI)(icon)) ? /* @__PURE__ */ react_exports.createElement(StyledIconWrapper, { "data-test": "field-icon" }, /* @__PURE__ */ react_exports.createElement(RemoteIcon_default, { iconURL: icon, width: 16, height: 16 })) : null)), /* @__PURE__ */ react_exports.createElement(StyledValueColumn, { "data-test": "field-value" }, value)))))
|
|
793
767
|
);
|
|
794
768
|
};
|
|
795
769
|
var Tooltip_default = Tooltip;
|
|
@@ -905,8 +879,9 @@ var PieSegment = react_exports.memo(
|
|
|
905
879
|
);
|
|
906
880
|
if (end - start === 1) {
|
|
907
881
|
return /* @__PURE__ */ react_exports.createElement(
|
|
908
|
-
|
|
882
|
+
BubbleSegment,
|
|
909
883
|
{
|
|
884
|
+
as: "circle",
|
|
910
885
|
onClick: handleSegmentClick,
|
|
911
886
|
cx: radius,
|
|
912
887
|
cy: radius,
|
|
@@ -926,8 +901,9 @@ var PieSegment = react_exports.memo(
|
|
|
926
901
|
const y1 = Math.sin(a1);
|
|
927
902
|
const arc = end - start > 0.5 ? 1 : 0;
|
|
928
903
|
return /* @__PURE__ */ react_exports.createElement(
|
|
929
|
-
|
|
904
|
+
BubbleSegment,
|
|
930
905
|
{
|
|
906
|
+
as: "path",
|
|
931
907
|
onClick: handleSegmentClick,
|
|
932
908
|
d: `M ${radius} ${radius} L ${radius + radius * x0} ${radius + radius * y0} A ${radius} ${radius} 0 ${arc} 1 ${radius + radius * x1} ${radius + radius * y1} L ${radius} ${radius} A 0 0 0 ${arc} 0 ${radius} ${radius}`,
|
|
933
909
|
fill: color,
|
|
@@ -940,6 +916,14 @@ var PieSegment = react_exports.memo(
|
|
|
940
916
|
}
|
|
941
917
|
);
|
|
942
918
|
PieSegment.displayName = "MapBubblePieSegment";
|
|
919
|
+
var BubbleSegment = styled_components_default.path`
|
|
920
|
+
transition: 0.2s ease-in-out;
|
|
921
|
+
transition-property: fill, stroke;
|
|
922
|
+
`;
|
|
923
|
+
var BUBBLE_SEGMENT_DIMMED_STYLES = {
|
|
924
|
+
fill: "rgba(150, 150, 150, 0.3)",
|
|
925
|
+
stroke: "rgba(200, 200, 200, 0.4)"
|
|
926
|
+
};
|
|
943
927
|
var StyledMarkerWrapper = styled_components_default(MarkerWrapper_default)`
|
|
944
928
|
cursor: pointer;
|
|
945
929
|
`;
|
|
@@ -1138,6 +1122,92 @@ var BubbleLayer = (props) => {
|
|
|
1138
1122
|
};
|
|
1139
1123
|
var BubbleLayer_default = BubbleLayer;
|
|
1140
1124
|
|
|
1125
|
+
// src/Map/PureMap/PureMapContainer.tsx
|
|
1126
|
+
var PureMapContainer = styled_components_default.div.attrs({
|
|
1127
|
+
"data-test": "puremap-container"
|
|
1128
|
+
})`
|
|
1129
|
+
${maplibre_gl_default2}
|
|
1130
|
+
overflow: hidden;
|
|
1131
|
+
position: relative;
|
|
1132
|
+
z-index: 0;
|
|
1133
|
+
background-color: ${(props) => props.backgroundColor};
|
|
1134
|
+
${(props) => (0, style_exports.toDimension)((0, lodash_exports.pick)(props, ["width", "height"]))};
|
|
1135
|
+
|
|
1136
|
+
// keep zoom control on top of cooperative gesture layer
|
|
1137
|
+
.maplibregl-cooperative-gesture-screen {
|
|
1138
|
+
z-index: 0;
|
|
1139
|
+
}
|
|
1140
|
+
|
|
1141
|
+
// overwrite maplibregl zoom control styles
|
|
1142
|
+
.maplibregl-ctrl-top-left {
|
|
1143
|
+
display: ${(props) => props.showZoomControls ? "block" : "none"};
|
|
1144
|
+
position: absolute;
|
|
1145
|
+
top: 12px;
|
|
1146
|
+
left: 16px;
|
|
1147
|
+
.maplibregl-ctrl-group {
|
|
1148
|
+
width: 40px !important;
|
|
1149
|
+
height: 87px !important;
|
|
1150
|
+
border-radius: 4px;
|
|
1151
|
+
margin: 8px 0px;
|
|
1152
|
+
background-color: ${(props) => props.controlBackgroundColor};
|
|
1153
|
+
box-shadow:
|
|
1154
|
+
0px 26px 103px rgba(0, 0, 0, 0.64),
|
|
1155
|
+
0px 11px 18px rgba(0, 0, 0, 0.32),
|
|
1156
|
+
0px 3px 6px rgba(0, 0, 0, 0.3);
|
|
1157
|
+
& button {
|
|
1158
|
+
width: 40px;
|
|
1159
|
+
height: 43px;
|
|
1160
|
+
border-top: 0;
|
|
1161
|
+
}
|
|
1162
|
+
.maplibregl-ctrl-zoom-in .maplibregl-ctrl-icon {
|
|
1163
|
+
background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="16" height="16" viewBox="0 0 16 16" xmlns="http://www.w3.org/2000/svg"><path d="M9 1C9 0.447715 8.55229 0 8 0C7.44772 0 7 0.447715 7 1V7H1C0.447715 7 0 7.44772 0 8C0 8.55229 0.447715 9 1 9H7V15C7 15.5523 7.44772 16 8 16C8.55229 16 9 15.5523 9 15V9H15C15.5523 9 16 8.55229 16 8C16 7.44772 15.5523 7 15 7H9V1Z" fill="${(props) => props.controlIconColorEncoded.color}" fill-opacity="${(props) => props.controlIconColorEncoded.opacity}" /></svg>');
|
|
1164
|
+
}
|
|
1165
|
+
|
|
1166
|
+
.maplibregl-ctrl-zoom-out .maplibregl-ctrl-icon {
|
|
1167
|
+
background-image: url('data:image/svg+xml;charset=UTF-8,<svg width="14" height="3" viewBox="0 0 14 3" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 1.99707C0 1.44479 0.447715 0.99707 1 0.99707H13C13.5523 0.99707 14 1.44479 14 1.99707C14 2.54936 13.5523 2.99707 13 2.99707H1C0.447715 2.99707 0 2.54936 0 1.99707Z" fill="${(props) => props.controlIconColorEncoded.color}" fill-opacity="${(props) => props.controlIconColorEncoded.opacity}" /></svg>');
|
|
1168
|
+
}
|
|
1169
|
+
}
|
|
1170
|
+
}
|
|
1171
|
+
|
|
1172
|
+
// overwrite maplibregl scale styles
|
|
1173
|
+
.maplibregl-ctrl-bottom-left {
|
|
1174
|
+
display: ${(props) => props.showScale ? "block" : "none"};
|
|
1175
|
+
position: absolute;
|
|
1176
|
+
z-index: 0;
|
|
1177
|
+
bottom: 16px;
|
|
1178
|
+
left: 12px;
|
|
1179
|
+
width: 86px;
|
|
1180
|
+
height: 29px;
|
|
1181
|
+
border-radius: 4px;
|
|
1182
|
+
margin: 0;
|
|
1183
|
+
background-color: ${(props) => props.controlBackgroundColor};
|
|
1184
|
+
box-shadow:
|
|
1185
|
+
0px 26px 103px rgba(0, 0, 0, 0.13),
|
|
1186
|
+
0px 11px 18px rgba(0, 0, 0, 0.06),
|
|
1187
|
+
0px 3px 6px rgba(0, 0, 0, 0.06);
|
|
1188
|
+
.maplibregl-ctrl-scale {
|
|
1189
|
+
background-color: ${(props) => props.controlBackgroundColor};
|
|
1190
|
+
color: ${(props) => props.controlForegroundColor};
|
|
1191
|
+
border: 2px solid ${(props) => props.controlForegroundColor};
|
|
1192
|
+
border-top: 0;
|
|
1193
|
+
border-left: 0;
|
|
1194
|
+
border-right: 0;
|
|
1195
|
+
padding: 0;
|
|
1196
|
+
margin: 6px 8px 8px 8px;
|
|
1197
|
+
line-height: 13px;
|
|
1198
|
+
letter-spacing: 0.02em;
|
|
1199
|
+
font-family: sans-serif;
|
|
1200
|
+
font-size: 10px;
|
|
1201
|
+
}
|
|
1202
|
+
}
|
|
1203
|
+
|
|
1204
|
+
:has(${BubbleSegment}:hover) ${BubbleSegment}:not(:hover) {
|
|
1205
|
+
fill: ${BUBBLE_SEGMENT_DIMMED_STYLES.fill};
|
|
1206
|
+
stroke: ${BUBBLE_SEGMENT_DIMMED_STYLES.stroke};
|
|
1207
|
+
}
|
|
1208
|
+
`;
|
|
1209
|
+
var PureMapContainer_default = PureMapContainer;
|
|
1210
|
+
|
|
1141
1211
|
// src/Map/PureMap/MarkerLayer.tsx
|
|
1142
1212
|
var MarkerIcon = (_a) => {
|
|
1143
1213
|
var _b = _a, { theme, color } = _b, otherProps = __objRest(_b, ["theme", "color"]);
|
|
@@ -1452,18 +1522,21 @@ var ChoroplethLayer = (props) => {
|
|
|
1452
1522
|
);
|
|
1453
1523
|
const areaIdSliced = (_h = (_g = choroplethLayer == null ? void 0 : choroplethLayer.areaIds) == null ? void 0 : _g.slice(0, limit)) != null ? _h : [];
|
|
1454
1524
|
const uniqueAreaIdSliced = (0, lodash_exports.uniq)(areaIdSliced).length !== areaIdSliced.length ? areaIdSliced.map((id, i) => `${id}${i}`) : areaIdSliced;
|
|
1455
|
-
const additionalFields = (choroplethLayer == null ? void 0 : choroplethLayer.metadata) ? choroplethLayer.metadata.map(
|
|
1456
|
-
(
|
|
1457
|
-
|
|
1458
|
-
|
|
1459
|
-
|
|
1460
|
-
|
|
1525
|
+
const additionalFields = (choroplethLayer == null ? void 0 : choroplethLayer.metadata) ? choroplethLayer.metadata.map((choroplethMetadata) => {
|
|
1526
|
+
if (choroplethLayer.additionalTooltipFields) {
|
|
1527
|
+
return choroplethLayer.additionalTooltipFields.map((field) => ({
|
|
1528
|
+
name: field,
|
|
1529
|
+
value: formatTooltipFieldValue(choroplethMetadata[field])
|
|
1530
|
+
}));
|
|
1531
|
+
}
|
|
1532
|
+
return [];
|
|
1533
|
+
}) : [];
|
|
1461
1534
|
const tooltipHeaderField = (choroplethLayer == null ? void 0 : choroplethLayer.tooltipHeaderField) || null;
|
|
1462
1535
|
const handleMapClick = (e, i) => {
|
|
1463
1536
|
const payload = formatMetadata(choroplethLayer, i);
|
|
1464
1537
|
onMapClick({ e, payload });
|
|
1465
1538
|
};
|
|
1466
|
-
if (!map || !choroplethLayer
|
|
1539
|
+
if (!map || !(choroplethLayer == null ? void 0 : choroplethLayer.geom)) {
|
|
1467
1540
|
return null;
|
|
1468
1541
|
}
|
|
1469
1542
|
if (isThemeChanged) {
|
|
@@ -1526,74 +1599,99 @@ var LocalChoroplethLayer = (props) => {
|
|
|
1526
1599
|
var _a, _b;
|
|
1527
1600
|
const { width, height, map, choroplethLayer, isThemeChanged, setIsThemeChanged, onMapClick } = props;
|
|
1528
1601
|
const cfgOpacity = Math.min(Math.max(choroplethLayer == null ? void 0 : choroplethLayer.choroplethOpacity, 0), 1);
|
|
1529
|
-
const
|
|
1530
|
-
|
|
1531
|
-
|
|
1602
|
+
const emptyFeature = {
|
|
1603
|
+
type: "Feature",
|
|
1604
|
+
properties: { name: "" },
|
|
1605
|
+
geometry: null
|
|
1606
|
+
};
|
|
1607
|
+
const [geoJson, setGeoJson] = react_exports.useState(
|
|
1608
|
+
{
|
|
1609
|
+
type: "FeatureCollection",
|
|
1610
|
+
features: [emptyFeature]
|
|
1611
|
+
}
|
|
1612
|
+
);
|
|
1532
1613
|
const [validGeoJson, setValidGeoJson] = react_exports.useState(true);
|
|
1533
1614
|
const [geoJsonError, setGeoJsonError] = react_exports.useState({
|
|
1534
1615
|
message: ""
|
|
1535
1616
|
});
|
|
1536
1617
|
react_exports.useEffect(() => {
|
|
1537
|
-
let
|
|
1618
|
+
let isMounted = true;
|
|
1538
1619
|
const geoRegistry = GeoRegistry_default.create();
|
|
1539
1620
|
geoRegistry.addDefaultProvider(new GeoJsonProvider_default());
|
|
1540
|
-
|
|
1541
|
-
|
|
1542
|
-
|
|
1543
|
-
|
|
1544
|
-
|
|
1545
|
-
|
|
1546
|
-
|
|
1547
|
-
|
|
1621
|
+
const loadGeoJson = () => __async(void 0, null, function* () {
|
|
1622
|
+
try {
|
|
1623
|
+
const geoJsonData = yield geoRegistry.getByURL(choroplethLayer.source);
|
|
1624
|
+
if (!isMounted) {
|
|
1625
|
+
return;
|
|
1626
|
+
}
|
|
1627
|
+
setGeoJson(geoJsonData);
|
|
1628
|
+
setValidGeoJson(true);
|
|
1629
|
+
} catch (e) {
|
|
1630
|
+
if (!isMounted) {
|
|
1631
|
+
return;
|
|
1632
|
+
}
|
|
1633
|
+
setGeoJsonError(e);
|
|
1634
|
+
setValidGeoJson(false);
|
|
1635
|
+
}
|
|
1636
|
+
});
|
|
1637
|
+
loadGeoJson();
|
|
1638
|
+
return () => {
|
|
1639
|
+
isMounted = false;
|
|
1640
|
+
};
|
|
1548
1641
|
}, [choroplethLayer.source]);
|
|
1549
1642
|
const updatedPropertyFormat = react_exports.useMemo(() => {
|
|
1550
1643
|
let propertyFormat = "name";
|
|
1551
1644
|
if (choroplethLayer.areaIds && validGeoJson) {
|
|
1552
1645
|
const propertyFormats = Object.keys(geoJson.features[0].properties);
|
|
1553
|
-
|
|
1554
|
-
|
|
1555
|
-
|
|
1556
|
-
|
|
1557
|
-
|
|
1558
|
-
if (formatCheck !== void 0) {
|
|
1559
|
-
propertyFormat = formatCheck;
|
|
1560
|
-
break;
|
|
1561
|
-
}
|
|
1646
|
+
const formatCheck = geoJson.features.flatMap(
|
|
1647
|
+
(element) => propertyFormats.filter((key) => element.properties[key] === choroplethLayer.areaIds[0])
|
|
1648
|
+
)[0];
|
|
1649
|
+
if (formatCheck !== void 0) {
|
|
1650
|
+
propertyFormat = formatCheck;
|
|
1562
1651
|
}
|
|
1563
1652
|
}
|
|
1564
1653
|
return propertyFormat;
|
|
1565
1654
|
}, [choroplethLayer.areaIds, geoJson]);
|
|
1566
1655
|
const colors = (_a = choroplethLayer == null ? void 0 : choroplethLayer.dataColors) == null ? void 0 : _a.map((color) => (color == null ? void 0 : color.length) > 7 ? color.slice(0, 7) : color);
|
|
1567
1656
|
const scaledOpacities = (_b = getScaledOpacities(choroplethLayer == null ? void 0 : choroplethLayer.dataColors, cfgOpacity)) != null ? _b : [];
|
|
1568
|
-
const
|
|
1569
|
-
const
|
|
1570
|
-
|
|
1571
|
-
|
|
1572
|
-
|
|
1573
|
-
|
|
1574
|
-
|
|
1575
|
-
|
|
1576
|
-
|
|
1577
|
-
|
|
1578
|
-
|
|
1579
|
-
|
|
1580
|
-
|
|
1581
|
-
|
|
1582
|
-
|
|
1583
|
-
|
|
1584
|
-
|
|
1585
|
-
|
|
1586
|
-
|
|
1587
|
-
|
|
1588
|
-
} else {
|
|
1589
|
-
choroplethData.idx = choroplethLayer.areaIds.length;
|
|
1590
|
-
}
|
|
1591
|
-
}
|
|
1592
|
-
allChoroplethData.push(choroplethData);
|
|
1657
|
+
const buildChoroplethData = (el) => {
|
|
1658
|
+
const choroplethData = {
|
|
1659
|
+
color: choroplethLayer.choroplethEmptyAreaColor,
|
|
1660
|
+
areaValue: "No Data",
|
|
1661
|
+
opacity: cfgOpacity,
|
|
1662
|
+
name: "",
|
|
1663
|
+
idx: 0
|
|
1664
|
+
};
|
|
1665
|
+
const rawName = el.properties[updatedPropertyFormat];
|
|
1666
|
+
choroplethData.name = typeof rawName === "string" || typeof rawName === "number" ? String(rawName) : "";
|
|
1667
|
+
if (choroplethLayer.areaIds) {
|
|
1668
|
+
const lookupValue = choroplethData.name;
|
|
1669
|
+
const dataIdx = choroplethLayer.areaIds.indexOf(lookupValue);
|
|
1670
|
+
if (dataIdx !== -1) {
|
|
1671
|
+
choroplethData.color = colors[dataIdx];
|
|
1672
|
+
choroplethData.areaValue = choroplethLayer.areaValues[dataIdx];
|
|
1673
|
+
choroplethData.opacity = scaledOpacities[dataIdx];
|
|
1674
|
+
choroplethData.idx = dataIdx;
|
|
1675
|
+
} else {
|
|
1676
|
+
choroplethData.idx = choroplethLayer.areaIds.length;
|
|
1593
1677
|
}
|
|
1594
1678
|
}
|
|
1595
|
-
return
|
|
1596
|
-
}
|
|
1679
|
+
return choroplethData;
|
|
1680
|
+
};
|
|
1681
|
+
const updatedAllChoroplethData = react_exports.useMemo(() => {
|
|
1682
|
+
if (!validGeoJson) return [];
|
|
1683
|
+
return geoJson.features.map((el) => buildChoroplethData(el));
|
|
1684
|
+
}, [
|
|
1685
|
+
choroplethLayer.areaIds,
|
|
1686
|
+
choroplethLayer.areaValues,
|
|
1687
|
+
choroplethLayer.choroplethEmptyAreaColor,
|
|
1688
|
+
colors,
|
|
1689
|
+
scaledOpacities,
|
|
1690
|
+
cfgOpacity,
|
|
1691
|
+
validGeoJson,
|
|
1692
|
+
geoJson.features,
|
|
1693
|
+
updatedPropertyFormat
|
|
1694
|
+
]);
|
|
1597
1695
|
const handleMapClick = (e, i) => {
|
|
1598
1696
|
const payload = formatMetadata(choroplethLayer, i);
|
|
1599
1697
|
onMapClick({ e, payload });
|
|
@@ -1601,15 +1699,14 @@ var LocalChoroplethLayer = (props) => {
|
|
|
1601
1699
|
if (isThemeChanged) {
|
|
1602
1700
|
setIsThemeChanged(false);
|
|
1603
1701
|
}
|
|
1604
|
-
const additionalFields = (choroplethLayer == null ? void 0 : choroplethLayer.metadata) ? choroplethLayer.metadata.map(
|
|
1605
|
-
|
|
1606
|
-
|
|
1607
|
-
|
|
1608
|
-
|
|
1609
|
-
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
) : [];
|
|
1702
|
+
const additionalFields = (choroplethLayer == null ? void 0 : choroplethLayer.metadata) ? choroplethLayer.metadata.map((choroplethMetadata) => {
|
|
1703
|
+
var _a2;
|
|
1704
|
+
const tooltipFields = (_a2 = choroplethLayer.additionalTooltipFields) != null ? _a2 : [];
|
|
1705
|
+
return tooltipFields.map((field) => ({
|
|
1706
|
+
name: field,
|
|
1707
|
+
value: formatTooltipFieldValue(choroplethMetadata[field])
|
|
1708
|
+
}));
|
|
1709
|
+
}) : [];
|
|
1613
1710
|
return /* @__PURE__ */ react_exports.createElement("div", null, !validGeoJson && /* @__PURE__ */ react_exports.createElement(
|
|
1614
1711
|
Message_default,
|
|
1615
1712
|
{
|
|
@@ -1620,6 +1717,9 @@ var LocalChoroplethLayer = (props) => {
|
|
|
1620
1717
|
message: geoJsonError.message
|
|
1621
1718
|
}
|
|
1622
1719
|
), validGeoJson && updatedAllChoroplethData.map((el, i) => {
|
|
1720
|
+
var _a2, _b2;
|
|
1721
|
+
const geometry = (_a2 = geoJson.features[i]) == null ? void 0 : _a2.geometry;
|
|
1722
|
+
const geomData = geometry && (geometry.type === "MultiPolygon" || geometry.type === "Polygon") ? geometry : null;
|
|
1623
1723
|
return /* @__PURE__ */ react_exports.createElement(
|
|
1624
1724
|
Choropleth,
|
|
1625
1725
|
{
|
|
@@ -1630,12 +1730,12 @@ var LocalChoroplethLayer = (props) => {
|
|
|
1630
1730
|
opacity: el.opacity,
|
|
1631
1731
|
strokeColor: choroplethLayer.choroplethStrokeColor,
|
|
1632
1732
|
areaId: el.name,
|
|
1633
|
-
areaValue: el.areaValue,
|
|
1733
|
+
areaValue: typeof el.areaValue === "number" ? el.areaValue : Number(el.areaValue),
|
|
1634
1734
|
handleMapClick: (e) => handleMapClick(e, el.idx),
|
|
1635
1735
|
isThemeChanged,
|
|
1636
|
-
geomData
|
|
1736
|
+
geomData,
|
|
1637
1737
|
additionalFields: additionalFields[el.idx],
|
|
1638
|
-
tooltipHeader: choroplethLayer.tooltipHeaderField
|
|
1738
|
+
tooltipHeader: (_b2 = choroplethLayer.tooltipHeaderField) == null ? void 0 : _b2[el.idx]
|
|
1639
1739
|
}
|
|
1640
1740
|
);
|
|
1641
1741
|
}));
|
|
@@ -1708,6 +1808,7 @@ var PureMap = (props) => {
|
|
|
1708
1808
|
const scaleControl = (0, react_exports.useRef)(null);
|
|
1709
1809
|
const zoomControl = (0, react_exports.useRef)(null);
|
|
1710
1810
|
const fitToDataButtonClickedRef = (0, react_exports.useRef)(false);
|
|
1811
|
+
const isUserInteractingRef = (0, react_exports.useRef)(false);
|
|
1711
1812
|
const { tilePreset, defaultTileLight, defaultTileDark } = (0, react_exports.useMemo)(
|
|
1712
1813
|
() => getTilePreset({ defaultTileConfig, customTileConfig }),
|
|
1713
1814
|
[defaultTileConfig, customTileConfig]
|
|
@@ -1791,7 +1892,7 @@ var PureMap = (props) => {
|
|
|
1791
1892
|
map.current.on("load", () => {
|
|
1792
1893
|
if ((layers == null ? void 0 : layers.length) > 0 && center === void 0 && zoom === void 0) {
|
|
1793
1894
|
setMapMinZoom(map.current.getZoom());
|
|
1794
|
-
map.current.
|
|
1895
|
+
map.current.once("zoomend", () => {
|
|
1795
1896
|
addZoomEndEventListener();
|
|
1796
1897
|
});
|
|
1797
1898
|
fitMapToContent();
|
|
@@ -1816,6 +1917,26 @@ var PureMap = (props) => {
|
|
|
1816
1917
|
zoom: map.current.getZoom()
|
|
1817
1918
|
});
|
|
1818
1919
|
});
|
|
1920
|
+
map.current.on("dragstart", () => {
|
|
1921
|
+
isUserInteractingRef.current = true;
|
|
1922
|
+
});
|
|
1923
|
+
map.current.on("dragend", () => {
|
|
1924
|
+
setTimeout(() => {
|
|
1925
|
+
if (isUserInteractingRef) {
|
|
1926
|
+
isUserInteractingRef.current = false;
|
|
1927
|
+
}
|
|
1928
|
+
}, 100);
|
|
1929
|
+
});
|
|
1930
|
+
map.current.on("zoomstart", () => {
|
|
1931
|
+
isUserInteractingRef.current = true;
|
|
1932
|
+
});
|
|
1933
|
+
map.current.on("zoomend", () => {
|
|
1934
|
+
setTimeout(() => {
|
|
1935
|
+
if (isUserInteractingRef) {
|
|
1936
|
+
isUserInteractingRef.current = false;
|
|
1937
|
+
}
|
|
1938
|
+
}, 100);
|
|
1939
|
+
});
|
|
1819
1940
|
map.current.on("resize", () => {
|
|
1820
1941
|
const mapZoomLevel = map.current.getZoom();
|
|
1821
1942
|
if (currentZoomLevelRef.current <= mapMinZoomRef.current && mapZoomLevel !== mapMinZoomRef.current) {
|
|
@@ -1875,6 +1996,9 @@ var PureMap = (props) => {
|
|
|
1875
1996
|
defaultTileLight,
|
|
1876
1997
|
defaultTileDark
|
|
1877
1998
|
});
|
|
1999
|
+
if (!isBaseTileConfig(mapStyle)) {
|
|
2000
|
+
return;
|
|
2001
|
+
}
|
|
1878
2002
|
mapStyle.version = MAP_STYLE_VERSION_NUMBER;
|
|
1879
2003
|
if (map.current) {
|
|
1880
2004
|
const curr = map.current.getStyle();
|
|
@@ -1908,6 +2032,9 @@ var PureMap = (props) => {
|
|
|
1908
2032
|
if (fitToDataButtonClickedRef.current) {
|
|
1909
2033
|
return;
|
|
1910
2034
|
}
|
|
2035
|
+
if (isUserInteractingRef.current) {
|
|
2036
|
+
return;
|
|
2037
|
+
}
|
|
1911
2038
|
map.current.flyTo({
|
|
1912
2039
|
center: lngLatCenter,
|
|
1913
2040
|
// Make sure we are not flying to a zoom value smaller than the mapMinZoom
|
|
@@ -2586,7 +2713,6 @@ var editorConfig = [
|
|
|
2586
2713
|
}
|
|
2587
2714
|
}
|
|
2588
2715
|
],
|
|
2589
|
-
// TODO: add support for seriesColorsByField option
|
|
2590
2716
|
// [
|
|
2591
2717
|
// {
|
|
2592
2718
|
// label: _('Series colors by field name'),
|
|
@@ -2980,7 +3106,7 @@ var Cover = styled_components_default.div`
|
|
|
2980
3106
|
bottom: 0;
|
|
2981
3107
|
`;
|
|
2982
3108
|
var Blocker = styled_components_default.div.attrs({
|
|
2983
|
-
"data-splunk-visualization-version": "28.
|
|
3109
|
+
"data-splunk-visualization-version": "28.4.0 - 002bd482f"
|
|
2984
3110
|
})`
|
|
2985
3111
|
position: relative;
|
|
2986
3112
|
width: 100%;
|
|
@@ -3052,7 +3178,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
3052
3178
|
FixSizeItem,
|
|
3053
3179
|
{
|
|
3054
3180
|
"data-test": "fix-size-item",
|
|
3055
|
-
"data-splunk-visualization-version": "28.
|
|
3181
|
+
"data-splunk-visualization-version": "28.4.0 - 002bd482f",
|
|
3056
3182
|
width,
|
|
3057
3183
|
height,
|
|
3058
3184
|
backgroundColor
|
|
@@ -3154,7 +3280,7 @@ var convertToArrOfObjects = (columns, fields) => {
|
|
|
3154
3280
|
for (let i = 0; i < columns[0].length; i += 1) {
|
|
3155
3281
|
const newObj = {};
|
|
3156
3282
|
fields.forEach((field, index) => {
|
|
3157
|
-
const fieldName =
|
|
3283
|
+
const fieldName = getFieldName(field);
|
|
3158
3284
|
if (columns[index][i] === "") {
|
|
3159
3285
|
newObj[fieldName] = null;
|
|
3160
3286
|
} else {
|
|
@@ -3165,6 +3291,7 @@ var convertToArrOfObjects = (columns, fields) => {
|
|
|
3165
3291
|
}
|
|
3166
3292
|
return data;
|
|
3167
3293
|
};
|
|
3294
|
+
var getFieldName = (field) => typeof field === "string" ? field : field.name;
|
|
3168
3295
|
var largestTriangleThreeBuckets = (data, threshold, preferredDownsampleIndices) => {
|
|
3169
3296
|
const dataLength = data.length;
|
|
3170
3297
|
const downsampledIndices = [];
|
|
@@ -3281,9 +3408,9 @@ var tryToCoerceAllDisplayedFields = (ds, xField, yFields, fieldTypes, options) =
|
|
|
3281
3408
|
let xColumn = [];
|
|
3282
3409
|
const yColumns = [];
|
|
3283
3410
|
const canDownsample = !ds.data.fields.some((field, index) => {
|
|
3284
|
-
var _a
|
|
3285
|
-
const fieldName = (
|
|
3286
|
-
const fieldType = (
|
|
3411
|
+
var _a;
|
|
3412
|
+
const fieldName = getFieldName(field);
|
|
3413
|
+
const fieldType = (_a = fieldTypes[index]) != null ? _a : "unknown";
|
|
3287
3414
|
const column = ds.data.columns[index];
|
|
3288
3415
|
let hasDisplayedColumnThatCantBeDownsampled = false;
|
|
3289
3416
|
if (fieldName === xField) {
|
|
@@ -3623,14 +3750,29 @@ var getAnnotationsForCanvas = ({
|
|
|
3623
3750
|
var StyledTriangle = styled_components_default(Triangle_default)`
|
|
3624
3751
|
color: ${(props) => props.eventColor || variables_default.severityColorNotice(props)};
|
|
3625
3752
|
`;
|
|
3626
|
-
var triangleEventAnnotationRenderer = ({
|
|
3753
|
+
var triangleEventAnnotationRenderer = ({
|
|
3754
|
+
event,
|
|
3755
|
+
dimensions
|
|
3756
|
+
}) => {
|
|
3627
3757
|
const eventWithColor = event;
|
|
3628
3758
|
return react_default.createElement(StyledTriangle, {
|
|
3759
|
+
width: `${dimensions.width}px`,
|
|
3760
|
+
height: `${dimensions.height}px`,
|
|
3629
3761
|
viewBox: "0 0 24 24",
|
|
3630
3762
|
variant: "filled",
|
|
3631
3763
|
eventColor: eventWithColor.color
|
|
3632
3764
|
});
|
|
3633
3765
|
};
|
|
3766
|
+
var shouldEnableSearchZoom = (eventHandlers = [], xField = "") => {
|
|
3767
|
+
const rangeSelectEventHandler = eventHandlers.find(
|
|
3768
|
+
(eventHandler) => {
|
|
3769
|
+
var _a;
|
|
3770
|
+
return (_a = eventHandler.options.events) == null ? void 0 : _a.includes("range.select");
|
|
3771
|
+
}
|
|
3772
|
+
);
|
|
3773
|
+
const xAxisIsTime = xField === "_time";
|
|
3774
|
+
return !!rangeSelectEventHandler && xAxisIsTime;
|
|
3775
|
+
};
|
|
3634
3776
|
var canvasSupportedTimeSeriesCharts = ["splunk.line"];
|
|
3635
3777
|
var isTimeSeriesCanvasRenderSupported = (vizConfigKey) => {
|
|
3636
3778
|
return canvasSupportedTimeSeriesCharts.indexOf(vizConfigKey) > -1;
|
|
@@ -3651,16 +3793,31 @@ var filterChartDataFromInternalFields = (chartData) => {
|
|
|
3651
3793
|
var convert2DArrayToNumbers = (arr) => {
|
|
3652
3794
|
return arr.map((subArray) => subArray.map((element) => parseFloat(element)));
|
|
3653
3795
|
};
|
|
3796
|
+
var parseAxisValue = (val) => {
|
|
3797
|
+
if (val === void 0 || val === null || val === "auto" || val === "") {
|
|
3798
|
+
return void 0;
|
|
3799
|
+
}
|
|
3800
|
+
const num = typeof val === "number" ? val : Number.parseFloat(val);
|
|
3801
|
+
return Number.isNaN(num) ? void 0 : num;
|
|
3802
|
+
};
|
|
3654
3803
|
var SideLegendWidth = 75;
|
|
3655
|
-
var
|
|
3804
|
+
var SeriesCompareLegendWidth = 200;
|
|
3656
3805
|
var getLegend = (props) => {
|
|
3657
3806
|
const legendPlacement = props == null ? void 0 : props.legendDisplay;
|
|
3807
|
+
const { isSeriesCompare } = props;
|
|
3808
|
+
const commonLegendProps = {
|
|
3809
|
+
center: true,
|
|
3810
|
+
fontSize: 12,
|
|
3811
|
+
largerTiles: true,
|
|
3812
|
+
hideSeriesValue: !isSeriesCompare
|
|
3813
|
+
// Show values if in seriesCompare mode
|
|
3814
|
+
};
|
|
3658
3815
|
switch (legendPlacement) {
|
|
3659
3816
|
case "off":
|
|
3660
3817
|
return false;
|
|
3661
3818
|
case "left":
|
|
3662
3819
|
return (0, visualization_canvas_exports.LeftLegendFactory)(__spreadValues({
|
|
3663
|
-
width: SideLegendWidth
|
|
3820
|
+
width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
|
|
3664
3821
|
}, commonLegendProps));
|
|
3665
3822
|
case "bottom":
|
|
3666
3823
|
return (0, visualization_canvas_exports.BottomLegendFactory)(__spreadValues({
|
|
@@ -3672,7 +3829,7 @@ var getLegend = (props) => {
|
|
|
3672
3829
|
}, commonLegendProps));
|
|
3673
3830
|
default:
|
|
3674
3831
|
return (0, visualization_canvas_exports.SideLegendFactory)(__spreadValues({
|
|
3675
|
-
width: SideLegendWidth
|
|
3832
|
+
width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
|
|
3676
3833
|
}, commonLegendProps));
|
|
3677
3834
|
}
|
|
3678
3835
|
};
|
|
@@ -3708,19 +3865,25 @@ var ellipsisAxisTitle = (axisTitle, containerSpacing, fontSize = 12) => {
|
|
|
3708
3865
|
const end = axisTitle.slice(-halfChars);
|
|
3709
3866
|
return `${start}...${end}`;
|
|
3710
3867
|
};
|
|
3711
|
-
var
|
|
3868
|
+
var getFieldName2 = (field) => {
|
|
3712
3869
|
const fieldName = typeof field === "object" ? field == null ? void 0 : field.name : field;
|
|
3713
3870
|
return fieldName;
|
|
3714
3871
|
};
|
|
3715
3872
|
var getFieldNames = (fields) => {
|
|
3716
|
-
return fields.map((field) =>
|
|
3873
|
+
return fields.map((field) => getFieldName2(field));
|
|
3717
3874
|
};
|
|
3718
|
-
var getXScaleConfig = (label) => {
|
|
3875
|
+
var getXScaleConfig = (label, xAxisLabelVisibility, xAxisLabelRotation) => {
|
|
3719
3876
|
const xConfig = { x: {} };
|
|
3720
3877
|
xConfig.x.label = label;
|
|
3878
|
+
if (xAxisLabelVisibility === "hide") {
|
|
3879
|
+
xConfig.x.hideLabels = true;
|
|
3880
|
+
}
|
|
3881
|
+
if (xAxisLabelRotation !== void 0) {
|
|
3882
|
+
xConfig.x.labelRotation = xAxisLabelRotation;
|
|
3883
|
+
}
|
|
3721
3884
|
return xConfig;
|
|
3722
3885
|
};
|
|
3723
|
-
var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale) => {
|
|
3886
|
+
var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale, yAxisLabelVisibility, yAxisMin, yAxisMax) => {
|
|
3724
3887
|
const scaleType = yAxisScale != null ? yAxisScale : "linear";
|
|
3725
3888
|
const yConfig = { y: {} };
|
|
3726
3889
|
yConfig.y.label = label;
|
|
@@ -3733,23 +3896,42 @@ var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale) => {
|
|
|
3733
3896
|
} else {
|
|
3734
3897
|
yConfig.y.width = label && label.length > 0 ? 30 : 10;
|
|
3735
3898
|
}
|
|
3899
|
+
if (yAxisLabelVisibility === "hide") {
|
|
3900
|
+
yConfig.y.hideLabels = true;
|
|
3901
|
+
}
|
|
3902
|
+
if (yAxisMin !== void 0 || yAxisMax !== void 0) {
|
|
3903
|
+
yConfig.y.range = (u, dataMin, dataMax) => {
|
|
3904
|
+
const min = yAxisMin != null ? yAxisMin : dataMin;
|
|
3905
|
+
const max = yAxisMax != null ? yAxisMax : dataMax;
|
|
3906
|
+
return [min, max];
|
|
3907
|
+
};
|
|
3908
|
+
}
|
|
3736
3909
|
return yConfig;
|
|
3737
3910
|
};
|
|
3738
|
-
var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInteger) => {
|
|
3911
|
+
var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInteger, y2AxisLabelVisibility, y2AxisMin, y2AxisMax) => {
|
|
3739
3912
|
const y2Config = { y2: {} };
|
|
3740
3913
|
const scaleType = axisScale != null ? axisScale : "linear";
|
|
3741
3914
|
y2Config.y2.label = label;
|
|
3742
3915
|
y2Config.y2.side = "right";
|
|
3743
|
-
y2Config.y2.showGrid = false;
|
|
3744
3916
|
y2Config.y2.type = scaleType;
|
|
3745
3917
|
if (axisAbbreviation !== "none") {
|
|
3746
3918
|
y2Config.y2.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1, roundAxisLabelsToInteger);
|
|
3747
3919
|
} else if (roundAxisLabelsToInteger) {
|
|
3748
3920
|
y2Config.y2.tickFmt = (v) => roundAxisLabelsToInteger ? Math.round(v).toString() : v.toString();
|
|
3749
3921
|
}
|
|
3922
|
+
if (y2AxisLabelVisibility === "hide") {
|
|
3923
|
+
y2Config.y2.hideLabels = true;
|
|
3924
|
+
}
|
|
3925
|
+
if (y2AxisMin !== void 0 || y2AxisMax !== void 0) {
|
|
3926
|
+
y2Config.y2.range = (u, dataMin, dataMax) => {
|
|
3927
|
+
const min = y2AxisMin != null ? y2AxisMin : dataMin;
|
|
3928
|
+
const max = y2AxisMax != null ? y2AxisMax : dataMax;
|
|
3929
|
+
return [min, max];
|
|
3930
|
+
};
|
|
3931
|
+
}
|
|
3750
3932
|
return y2Config;
|
|
3751
3933
|
};
|
|
3752
|
-
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode) => {
|
|
3934
|
+
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode, markerDisplay, lineDashStyle, lineDashStylesByField) => {
|
|
3753
3935
|
const seriesConfig = {};
|
|
3754
3936
|
let spanGaps;
|
|
3755
3937
|
let replaceNullsWithZero;
|
|
@@ -3781,12 +3963,90 @@ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled
|
|
|
3781
3963
|
if (overlayFields == null ? void 0 : overlayFields.includes(field)) {
|
|
3782
3964
|
seriesConfig[field].type = "line";
|
|
3783
3965
|
}
|
|
3966
|
+
if (markerDisplay !== void 0) {
|
|
3967
|
+
seriesConfig[field].markerDisplay = markerDisplay;
|
|
3968
|
+
}
|
|
3969
|
+
const fieldDashStyle = (lineDashStylesByField == null ? void 0 : lineDashStylesByField[field]) || lineDashStyle;
|
|
3970
|
+
if (fieldDashStyle) {
|
|
3971
|
+
seriesConfig[field].lineDashStyle = fieldDashStyle;
|
|
3972
|
+
}
|
|
3784
3973
|
if (replaceNullsWithZero !== void 0) {
|
|
3785
3974
|
seriesConfig[field].replaceNullsWithZero = replaceNullsWithZero;
|
|
3786
3975
|
}
|
|
3787
3976
|
});
|
|
3788
3977
|
return seriesConfig;
|
|
3789
3978
|
};
|
|
3979
|
+
var findRangeIndices = (xData, startValue, endValue) => {
|
|
3980
|
+
let startXIndex = -1;
|
|
3981
|
+
let endXIndex = -1;
|
|
3982
|
+
const xDataEpoch = xData.map((val) => {
|
|
3983
|
+
if (typeof val === "string") {
|
|
3984
|
+
return new Date(val).getTime() / 1e3;
|
|
3985
|
+
}
|
|
3986
|
+
return val;
|
|
3987
|
+
});
|
|
3988
|
+
for (let i = 0; i < xDataEpoch.length; i += 1) {
|
|
3989
|
+
if (xDataEpoch[i] >= startValue) {
|
|
3990
|
+
startXIndex = i;
|
|
3991
|
+
break;
|
|
3992
|
+
}
|
|
3993
|
+
}
|
|
3994
|
+
if (startXIndex === -1 && xDataEpoch.length > 0) {
|
|
3995
|
+
startXIndex = xDataEpoch.length - 1;
|
|
3996
|
+
}
|
|
3997
|
+
for (let i = xDataEpoch.length - 1; i >= 0; i -= 1) {
|
|
3998
|
+
if (xDataEpoch[i] <= endValue) {
|
|
3999
|
+
endXIndex = i;
|
|
4000
|
+
break;
|
|
4001
|
+
}
|
|
4002
|
+
}
|
|
4003
|
+
if (endXIndex === -1 && xDataEpoch.length > 0) {
|
|
4004
|
+
endXIndex = 0;
|
|
4005
|
+
}
|
|
4006
|
+
return { startXIndex, endXIndex };
|
|
4007
|
+
};
|
|
4008
|
+
|
|
4009
|
+
// src/common/hooks/useTrellisEnabled.ts
|
|
4010
|
+
var useTrellisFeatureFlagOn = () => {
|
|
4011
|
+
const context = (0, react_exports.useContext)(FeatureFlagContext_default);
|
|
4012
|
+
return Boolean(context == null ? void 0 : context.visualizations_enableTrellis);
|
|
4013
|
+
};
|
|
4014
|
+
var useTrellisEnabled = (layoutType = visualization_schemas_exports.LAYOUT_TYPE.Off) => {
|
|
4015
|
+
const trellisFeatureEnabled = useTrellisFeatureFlagOn();
|
|
4016
|
+
return trellisFeatureEnabled && layoutType === visualization_schemas_exports.LAYOUT_TYPE.Trellis;
|
|
4017
|
+
};
|
|
4018
|
+
|
|
4019
|
+
// src/common/components/TrellisTitle.tsx
|
|
4020
|
+
var TRELLIS_TITLE_HEIGHT = 28;
|
|
4021
|
+
var TrellisTitleText = styled_components_default.div`
|
|
4022
|
+
margin-left: 10px;
|
|
4023
|
+
margin-right: 10px;
|
|
4024
|
+
padding-top: 8px;
|
|
4025
|
+
text-overflow: ellipsis;
|
|
4026
|
+
white-space: nowrap;
|
|
4027
|
+
overflow: hidden;
|
|
4028
|
+
`;
|
|
4029
|
+
var TrellisTitleDiv = styled_components_default.div`
|
|
4030
|
+
height: ${TRELLIS_TITLE_HEIGHT}px;
|
|
4031
|
+
font-size: 14px;
|
|
4032
|
+
font-weight: 700;
|
|
4033
|
+
color: ${(props) => props.fontColor};
|
|
4034
|
+
background-color: ${(props) => props.backgroundColor};
|
|
4035
|
+
box-shadow: 0 1px ${(props) => props.backgroundColor}; // this is added to avoid a 1px gap between title and viz divs that showed up intermittently because of pixel rounding error in chrome.
|
|
4036
|
+
`;
|
|
4037
|
+
var TrellisTitle = (props) => {
|
|
4038
|
+
const titleText = String(props.trellisKey).toString();
|
|
4039
|
+
return /* @__PURE__ */ react_exports.createElement(
|
|
4040
|
+
TrellisTitleDiv,
|
|
4041
|
+
{
|
|
4042
|
+
fontColor: props.fontColor,
|
|
4043
|
+
backgroundColor: props.backgroundColor,
|
|
4044
|
+
"data-test": "trellis-title",
|
|
4045
|
+
title: titleText
|
|
4046
|
+
},
|
|
4047
|
+
/* @__PURE__ */ react_exports.createElement(TrellisTitleText, null, titleText)
|
|
4048
|
+
);
|
|
4049
|
+
};
|
|
3790
4050
|
|
|
3791
4051
|
// src/common/TimeSeriesChartWrapper.tsx
|
|
3792
4052
|
var TimeSeriesChartContainer = styled_components_default.div`
|
|
@@ -3797,45 +4057,190 @@ var TimeSeriesChartContainer = styled_components_default.div`
|
|
|
3797
4057
|
position: absolute !important; // This is needed for canvas element export pdf/png to work correctly
|
|
3798
4058
|
}
|
|
3799
4059
|
`;
|
|
3800
|
-
var
|
|
4060
|
+
var appendTrellisToPayload = (payload, trellisKey, trellisSplitBy) => {
|
|
4061
|
+
const result = __spreadValues({}, payload);
|
|
4062
|
+
if (trellisSplitBy) {
|
|
4063
|
+
result["trellis.name"] = trellisSplitBy;
|
|
4064
|
+
}
|
|
4065
|
+
if (trellisKey) {
|
|
4066
|
+
result["trellis.value"] = trellisKey;
|
|
4067
|
+
}
|
|
4068
|
+
return result;
|
|
4069
|
+
};
|
|
4070
|
+
var hasMouseoverPayloadChanged = (currentPayload, previousPayload) => {
|
|
4071
|
+
if (!previousPayload) {
|
|
4072
|
+
return true;
|
|
4073
|
+
}
|
|
4074
|
+
if (currentPayload.index !== previousPayload.index) {
|
|
4075
|
+
return true;
|
|
4076
|
+
}
|
|
4077
|
+
if (currentPayload.seriesIndex !== previousPayload.seriesIndex) {
|
|
4078
|
+
return true;
|
|
4079
|
+
}
|
|
4080
|
+
if (currentPayload["trellis.name"] !== previousPayload["trellis.name"]) {
|
|
4081
|
+
return true;
|
|
4082
|
+
}
|
|
4083
|
+
if (currentPayload["trellis.value"] !== previousPayload["trellis.value"]) {
|
|
4084
|
+
return true;
|
|
4085
|
+
}
|
|
4086
|
+
return false;
|
|
4087
|
+
};
|
|
4088
|
+
var handleClick = (chartEvent, onClick, trellisKey, trellisSplitBy) => {
|
|
3801
4089
|
const payload = __spreadProps(__spreadValues({}, (0, lodash_exports.pick)(chartEvent, "value", "seriesKey")), {
|
|
3802
4090
|
name: chartEvent.seriesKey
|
|
3803
4091
|
});
|
|
3804
4092
|
delete payload.seriesKey;
|
|
3805
|
-
|
|
3806
|
-
|
|
3807
|
-
|
|
4093
|
+
if (chartEvent.rowContext) {
|
|
4094
|
+
Object.assign(
|
|
4095
|
+
payload,
|
|
4096
|
+
Object.keys(chartEvent.rowContext).reduce((acc, fieldName) => {
|
|
4097
|
+
acc[`row.${fieldName}.value`] = chartEvent.rowContext[fieldName];
|
|
4098
|
+
return acc;
|
|
4099
|
+
}, {})
|
|
4100
|
+
);
|
|
4101
|
+
}
|
|
4102
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
4103
|
+
if (onClick) {
|
|
4104
|
+
onClick({
|
|
3808
4105
|
type: "point.click",
|
|
3809
4106
|
originalEvent: chartEvent,
|
|
3810
|
-
payload
|
|
4107
|
+
payload: updatedPayload
|
|
3811
4108
|
});
|
|
3812
4109
|
}
|
|
3813
4110
|
};
|
|
3814
|
-
var handleLegendClick = (chartEvent,
|
|
4111
|
+
var handleLegendClick = (chartEvent, onClick, trellisKey, trellisSplitBy) => {
|
|
3815
4112
|
const payload = {
|
|
3816
4113
|
name: chartEvent
|
|
3817
4114
|
};
|
|
3818
|
-
const
|
|
3819
|
-
if (
|
|
3820
|
-
|
|
4115
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
4116
|
+
if (onClick) {
|
|
4117
|
+
onClick({
|
|
3821
4118
|
type: "legend.click",
|
|
3822
4119
|
originalEvent: chartEvent,
|
|
3823
|
-
payload
|
|
4120
|
+
payload: updatedPayload
|
|
4121
|
+
});
|
|
4122
|
+
}
|
|
4123
|
+
};
|
|
4124
|
+
var handleRangeSelection = (rangeEvent, onSelect, chartData, trellisKey, trellisSplitBy) => {
|
|
4125
|
+
var _a;
|
|
4126
|
+
if (!rangeEvent) {
|
|
4127
|
+
return;
|
|
4128
|
+
}
|
|
4129
|
+
const xData = ((_a = chartData == null ? void 0 : chartData.columns) == null ? void 0 : _a[0]) || [];
|
|
4130
|
+
const { startXIndex, endXIndex } = findRangeIndices(xData, rangeEvent.start, rangeEvent.end);
|
|
4131
|
+
const payload = {
|
|
4132
|
+
startXIndex,
|
|
4133
|
+
startXValue: rangeEvent.start,
|
|
4134
|
+
endXIndex,
|
|
4135
|
+
endXValue: rangeEvent.end
|
|
4136
|
+
};
|
|
4137
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
4138
|
+
if (onSelect) {
|
|
4139
|
+
onSelect({
|
|
4140
|
+
type: "range.selectBeforeZoom",
|
|
4141
|
+
originalEvent: rangeEvent,
|
|
4142
|
+
payload: updatedPayload
|
|
4143
|
+
});
|
|
4144
|
+
}
|
|
4145
|
+
};
|
|
4146
|
+
var handleRangeZoom = (rangeEvent, onSelect, chartData, trellisKey, trellisSplitBy) => {
|
|
4147
|
+
var _a;
|
|
4148
|
+
const xData = ((_a = chartData == null ? void 0 : chartData.columns) == null ? void 0 : _a[0]) || [];
|
|
4149
|
+
const { startXIndex, endXIndex } = findRangeIndices(xData, rangeEvent.start, rangeEvent.end);
|
|
4150
|
+
const payload = {
|
|
4151
|
+
startXIndex,
|
|
4152
|
+
startXValue: rangeEvent.start,
|
|
4153
|
+
endXIndex,
|
|
4154
|
+
endXValue: rangeEvent.end
|
|
4155
|
+
};
|
|
4156
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
4157
|
+
if (onSelect) {
|
|
4158
|
+
onSelect({
|
|
4159
|
+
type: "range.select",
|
|
4160
|
+
originalEvent: rangeEvent,
|
|
4161
|
+
payload: updatedPayload
|
|
3824
4162
|
});
|
|
3825
4163
|
}
|
|
3826
4164
|
};
|
|
4165
|
+
var parseArrayOption = (value) => {
|
|
4166
|
+
if (Array.isArray(value)) {
|
|
4167
|
+
return value;
|
|
4168
|
+
}
|
|
4169
|
+
if (value) {
|
|
4170
|
+
return JSON.parse(value);
|
|
4171
|
+
}
|
|
4172
|
+
return void 0;
|
|
4173
|
+
};
|
|
3827
4174
|
var TimeSeriesChartWrapper = (props) => {
|
|
3828
|
-
|
|
3829
|
-
const {
|
|
4175
|
+
var _b, _c, _d;
|
|
4176
|
+
const _a = props, {
|
|
4177
|
+
width,
|
|
4178
|
+
height,
|
|
4179
|
+
chartData,
|
|
4180
|
+
options,
|
|
4181
|
+
userLocale,
|
|
4182
|
+
annotationX,
|
|
4183
|
+
annotationLabel,
|
|
4184
|
+
annotationColor,
|
|
4185
|
+
legendDisplay,
|
|
4186
|
+
markerDisplay,
|
|
4187
|
+
onClick,
|
|
4188
|
+
onPointMouseOver,
|
|
4189
|
+
onPointMouseOut,
|
|
4190
|
+
onSelect,
|
|
4191
|
+
splitByLayout,
|
|
4192
|
+
trellisKey,
|
|
4193
|
+
trellisSplitBy,
|
|
3830
4194
|
backgroundColor,
|
|
4195
|
+
defaultFontColor,
|
|
4196
|
+
additionalTooltipValues,
|
|
4197
|
+
showYAxisWithZero: showYAxisWithZeroFromProps,
|
|
4198
|
+
showY2AxisWithZero: showY2AxisWithZeroFromProps
|
|
4199
|
+
} = _a, otherOptions = __objRest(_a, [
|
|
4200
|
+
"width",
|
|
4201
|
+
"height",
|
|
4202
|
+
"chartData",
|
|
4203
|
+
"options",
|
|
4204
|
+
"userLocale",
|
|
4205
|
+
"annotationX",
|
|
4206
|
+
"annotationLabel",
|
|
4207
|
+
"annotationColor",
|
|
4208
|
+
"legendDisplay",
|
|
4209
|
+
"markerDisplay",
|
|
4210
|
+
"onClick",
|
|
4211
|
+
"onPointMouseOver",
|
|
4212
|
+
"onPointMouseOut",
|
|
4213
|
+
"onSelect",
|
|
4214
|
+
"splitByLayout",
|
|
4215
|
+
"trellisKey",
|
|
4216
|
+
"trellisSplitBy",
|
|
4217
|
+
"backgroundColor",
|
|
4218
|
+
"defaultFontColor",
|
|
4219
|
+
"additionalTooltipValues",
|
|
4220
|
+
// Extract showYAxisWithZero directly from props for accelerated render mode
|
|
4221
|
+
"showYAxisWithZero",
|
|
4222
|
+
"showY2AxisWithZero"
|
|
4223
|
+
]);
|
|
4224
|
+
const { eventHandlers, xField: xFieldFromProps } = otherOptions;
|
|
4225
|
+
const trellisEnabled = useTrellisEnabled(splitByLayout);
|
|
4226
|
+
const {
|
|
4227
|
+
backgroundColor: bgColorFromOptions,
|
|
3831
4228
|
seriesColors: seriesColorsStr,
|
|
3832
4229
|
fieldColors,
|
|
4230
|
+
legendLabels: legendLabelsStr,
|
|
4231
|
+
legendMode,
|
|
3833
4232
|
"axisTitleX.text": xAxisTitleText,
|
|
3834
4233
|
"axisTitleY.text": yAxisTitleText,
|
|
3835
4234
|
"axisTitleY2.text": y2AxisTitleText,
|
|
3836
4235
|
"axisTitleX.visibility": xAxisTitleVisibility,
|
|
3837
4236
|
"axisTitleY.visibility": yAxisTitleVisibility,
|
|
3838
4237
|
"axisTitleY2.visibility": y2AxisTitleVisibility,
|
|
4238
|
+
"axisLabelsX.majorLabelVisibility": xAxisLabelVisibility,
|
|
4239
|
+
"axisLabelsX.majorLabelStyle.rotation": xAxisLabelRotation,
|
|
4240
|
+
"axisLabelsY.majorLabelVisibility": yAxisLabelVisibility,
|
|
4241
|
+
"axisLabelsY.majorUnit": yAxisMajorUnitFromSimpleXML,
|
|
4242
|
+
"axisLabelsY2.majorLabelVisibility": y2AxisLabelVisibility,
|
|
4243
|
+
"axisLabelsY2.majorUnit": y2AxisMajorUnitFromSimpleXML,
|
|
3839
4244
|
"axisY.abbreviation": yAxisAbbreviation,
|
|
3840
4245
|
"axisY.scale": yAxisScale,
|
|
3841
4246
|
"axisY2.abbreviation": y2AxisAbbreviation,
|
|
@@ -3845,10 +4250,63 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3845
4250
|
"axisLabelsY2.integerUnits": y2IntegerUnits,
|
|
3846
4251
|
"chart.overlayFields": overlayFieldsStr,
|
|
3847
4252
|
"chart.nullValueMode": nullValueMode,
|
|
3848
|
-
|
|
4253
|
+
"chart.showDataLabels": showDataLabels,
|
|
4254
|
+
lineWidth,
|
|
4255
|
+
lineDashStyle,
|
|
4256
|
+
fieldDashStyles: lineDashStylesByFieldStr,
|
|
4257
|
+
yAxisMin: yAxisMinRaw,
|
|
4258
|
+
yAxisMax: yAxisMaxRaw,
|
|
4259
|
+
y2AxisMin: y2AxisMinRaw,
|
|
4260
|
+
y2AxisMax: y2AxisMaxRaw,
|
|
4261
|
+
showXMajorGridLines,
|
|
4262
|
+
showYMajorGridLines,
|
|
4263
|
+
showY2MajorGridLines,
|
|
4264
|
+
showYMinorGridLines,
|
|
4265
|
+
showY2MinorGridLines,
|
|
4266
|
+
showLineSmoothing,
|
|
4267
|
+
yAxisMajorTickVisibility,
|
|
4268
|
+
y2AxisMajorTickVisibility,
|
|
4269
|
+
yAxisMajorTickSize,
|
|
4270
|
+
y2AxisMajorTickSize,
|
|
4271
|
+
yAxisMajorTickInterval,
|
|
4272
|
+
y2AxisMajorTickInterval,
|
|
4273
|
+
yAxisMinorTickVisibility,
|
|
4274
|
+
y2AxisMinorTickVisibility,
|
|
4275
|
+
yAxisMinorTickSize,
|
|
4276
|
+
y2AxisMinorTickSize,
|
|
4277
|
+
showYAxisWithZero: showYAxisWithZeroFromOptions,
|
|
4278
|
+
showY2AxisWithZero: showY2AxisWithZeroFromOptions
|
|
3849
4279
|
} = options;
|
|
4280
|
+
const dataValuesDisplay = showDataLabels === "none" ? "off" : showDataLabels;
|
|
4281
|
+
const showYAxisWithZero = showYAxisWithZeroFromProps != null ? showYAxisWithZeroFromProps : showYAxisWithZeroFromOptions;
|
|
4282
|
+
const showY2AxisWithZero = showY2AxisWithZeroFromProps != null ? showY2AxisWithZeroFromProps : showY2AxisWithZeroFromOptions;
|
|
4283
|
+
const showYMajorTicks = yAxisMajorTickVisibility === "show";
|
|
4284
|
+
const showY2MajorTicks = y2AxisMajorTickVisibility === "show";
|
|
4285
|
+
const showYMinorTicks = yAxisMinorTickVisibility === "show";
|
|
4286
|
+
const showY2MinorTicks = y2AxisMinorTickVisibility === "show";
|
|
4287
|
+
const yAxisMin = parseAxisValue(yAxisMinRaw);
|
|
4288
|
+
const yAxisMax = parseAxisValue(yAxisMaxRaw);
|
|
4289
|
+
const y2AxisMin = parseAxisValue(y2AxisMinRaw);
|
|
4290
|
+
const y2AxisMax = parseAxisValue(y2AxisMaxRaw);
|
|
4291
|
+
const parseTickInterval = (simpleXMLValue, canvasValue) => {
|
|
4292
|
+
if (simpleXMLValue) return Number(simpleXMLValue);
|
|
4293
|
+
if (canvasValue) return Number(canvasValue);
|
|
4294
|
+
return void 0;
|
|
4295
|
+
};
|
|
4296
|
+
const yAxisMajorTickIntervalNum = parseTickInterval(yAxisMajorUnitFromSimpleXML, yAxisMajorTickInterval);
|
|
4297
|
+
const y2AxisMajorTickIntervalNum = parseTickInterval(
|
|
4298
|
+
y2AxisMajorUnitFromSimpleXML,
|
|
4299
|
+
y2AxisMajorTickInterval
|
|
4300
|
+
);
|
|
4301
|
+
const yAxisMajorTickSizeNum = yAxisMajorTickSize ? Number(yAxisMajorTickSize) : void 0;
|
|
4302
|
+
const y2AxisMajorTickSizeNum = y2AxisMajorTickSize ? Number(y2AxisMajorTickSize) : void 0;
|
|
4303
|
+
const yAxisMinorTickSizeNum = yAxisMinorTickSize ? Number(yAxisMinorTickSize) : void 0;
|
|
4304
|
+
const y2AxisMinorTickSizeNum = y2AxisMinorTickSize ? Number(y2AxisMinorTickSize) : void 0;
|
|
3850
4305
|
const seriesColors = seriesColorsStr ? JSON.parse(seriesColorsStr) : void 0;
|
|
3851
4306
|
const seriesColorsByField = fieldColors ? JSON.parse(fieldColors) : void 0;
|
|
4307
|
+
const lineDashStylesByField = lineDashStylesByFieldStr ? JSON.parse(lineDashStylesByFieldStr) : void 0;
|
|
4308
|
+
const legendLabels = parseArrayOption(legendLabelsStr);
|
|
4309
|
+
const bgColor = backgroundColor || bgColorFromOptions;
|
|
3852
4310
|
const [containerWidth, setContainerWidth] = react_exports.useState(Number(props.width));
|
|
3853
4311
|
const [containerHeight, setContainerHeight] = react_exports.useState(Number(props.height));
|
|
3854
4312
|
const cachedHandleResize = react_exports.useCallback((w, h) => {
|
|
@@ -3859,25 +4317,64 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3859
4317
|
fields: chartData.fields,
|
|
3860
4318
|
columns: chartData.seriesList
|
|
3861
4319
|
});
|
|
3862
|
-
const xField =
|
|
4320
|
+
const xField = getFieldName2(filteredChartData.fields[0]);
|
|
3863
4321
|
const yFields = getFieldNames(
|
|
3864
4322
|
filteredChartData.fields.length > 1 ? filteredChartData.fields.slice(1) : []
|
|
3865
4323
|
);
|
|
3866
|
-
const y2Fields =
|
|
3867
|
-
|
|
4324
|
+
const y2Fields = (0, react_exports.useMemo)(
|
|
4325
|
+
() => y2FieldsStr ? y2FieldsStr.split(",").map((f) => f.trim()) : [],
|
|
4326
|
+
[y2FieldsStr]
|
|
4327
|
+
);
|
|
4328
|
+
const overlayFields = (0, react_exports.useMemo)(
|
|
4329
|
+
() => overlayFieldsStr ? overlayFieldsStr.split(",").map((f) => f.trim()) : [],
|
|
4330
|
+
[overlayFieldsStr]
|
|
4331
|
+
);
|
|
3868
4332
|
let xAxisTitle = getComputedAxisTitles(xAxisTitleText, [xField], xAxisTitleVisibility);
|
|
3869
4333
|
xAxisTitle = ellipsisAxisTitle(xAxisTitle, containerWidth);
|
|
3870
|
-
|
|
4334
|
+
const yFieldsForTitle = y2Enabled ? yFields.filter((field) => !y2Fields.includes(field)) : yFields;
|
|
4335
|
+
let yAxisTitle = getComputedAxisTitles(yAxisTitleText, yFieldsForTitle, yAxisTitleVisibility);
|
|
3871
4336
|
yAxisTitle = ellipsisAxisTitle(yAxisTitle, containerHeight);
|
|
3872
4337
|
const fieldsForY2Axis = y2Fields.length > 0 ? y2Fields : overlayFields;
|
|
3873
4338
|
let y2AxisTitle = getComputedAxisTitles(y2AxisTitleText, fieldsForY2Axis, y2AxisTitleVisibility);
|
|
3874
4339
|
y2AxisTitle = ellipsisAxisTitle(y2AxisTitle, containerHeight);
|
|
3875
|
-
const xScaleConfig =
|
|
3876
|
-
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
4340
|
+
const xScaleConfig = (0, react_exports.useMemo)(
|
|
4341
|
+
() => getXScaleConfig(xAxisTitle, xAxisLabelVisibility, xAxisLabelRotation),
|
|
4342
|
+
[xAxisTitle, xAxisLabelVisibility, xAxisLabelRotation]
|
|
4343
|
+
);
|
|
4344
|
+
const yScaleConfig = (0, react_exports.useMemo)(
|
|
4345
|
+
() => getYScaleConfig(
|
|
4346
|
+
yAxisTitle,
|
|
4347
|
+
yAxisAbbreviation,
|
|
4348
|
+
yAxisScale,
|
|
4349
|
+
yAxisLabelVisibility,
|
|
4350
|
+
yAxisMin,
|
|
4351
|
+
yAxisMax
|
|
4352
|
+
),
|
|
4353
|
+
[yAxisTitle, yAxisAbbreviation, yAxisScale, yAxisLabelVisibility, yAxisMin, yAxisMax]
|
|
4354
|
+
);
|
|
4355
|
+
const y2ScaleConfig = (0, react_exports.useMemo)(() => {
|
|
4356
|
+
if (y2Enabled) {
|
|
4357
|
+
return getY2ScaleConfig(
|
|
4358
|
+
y2AxisTitle,
|
|
4359
|
+
y2AxisAbbreviation,
|
|
4360
|
+
y2AxisScale,
|
|
4361
|
+
y2IntegerUnits,
|
|
4362
|
+
y2AxisLabelVisibility,
|
|
4363
|
+
y2AxisMin,
|
|
4364
|
+
y2AxisMax
|
|
4365
|
+
);
|
|
4366
|
+
}
|
|
4367
|
+
return {};
|
|
4368
|
+
}, [
|
|
4369
|
+
y2Enabled,
|
|
4370
|
+
y2AxisTitle,
|
|
4371
|
+
y2AxisAbbreviation,
|
|
4372
|
+
y2AxisScale,
|
|
4373
|
+
y2IntegerUnits,
|
|
4374
|
+
y2AxisLabelVisibility,
|
|
4375
|
+
y2AxisMin,
|
|
4376
|
+
y2AxisMax
|
|
4377
|
+
]);
|
|
3881
4378
|
const uplotContainerElement = (0, react_exports.useRef)(null);
|
|
3882
4379
|
const seriesDataFormatted = [
|
|
3883
4380
|
filteredChartData.columns[0],
|
|
@@ -3885,24 +4382,140 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3885
4382
|
];
|
|
3886
4383
|
chartData.fields = filteredChartData.fields;
|
|
3887
4384
|
chartData.columns = seriesDataFormatted;
|
|
3888
|
-
const seriesOverrides =
|
|
3889
|
-
|
|
3890
|
-
|
|
3891
|
-
|
|
3892
|
-
|
|
3893
|
-
|
|
3894
|
-
|
|
4385
|
+
const seriesOverrides = (0, react_exports.useMemo)(
|
|
4386
|
+
() => getSeriesOverrides(
|
|
4387
|
+
yFields,
|
|
4388
|
+
y2Fields,
|
|
4389
|
+
lineWidth,
|
|
4390
|
+
overlayFields,
|
|
4391
|
+
y2Enabled,
|
|
4392
|
+
nullValueMode,
|
|
4393
|
+
markerDisplay,
|
|
4394
|
+
lineDashStyle,
|
|
4395
|
+
lineDashStylesByField
|
|
4396
|
+
),
|
|
4397
|
+
[
|
|
4398
|
+
yFields,
|
|
4399
|
+
y2Fields,
|
|
4400
|
+
lineWidth,
|
|
4401
|
+
overlayFields,
|
|
4402
|
+
y2Enabled,
|
|
4403
|
+
nullValueMode,
|
|
4404
|
+
markerDisplay,
|
|
4405
|
+
lineDashStyle,
|
|
4406
|
+
lineDashStylesByField
|
|
4407
|
+
]
|
|
3895
4408
|
);
|
|
3896
|
-
const chartingEventAnnotations =
|
|
3897
|
-
|
|
3898
|
-
|
|
3899
|
-
|
|
3900
|
-
|
|
3901
|
-
|
|
3902
|
-
|
|
3903
|
-
|
|
3904
|
-
|
|
3905
|
-
|
|
4409
|
+
const chartingEventAnnotations = (0, react_exports.useMemo)(
|
|
4410
|
+
() => getAnnotationsForCanvas({
|
|
4411
|
+
annotationX,
|
|
4412
|
+
annotationColor,
|
|
4413
|
+
annotationLabel
|
|
4414
|
+
}),
|
|
4415
|
+
[annotationX, annotationColor, annotationLabel]
|
|
4416
|
+
);
|
|
4417
|
+
const scaleConfig = (0, react_exports.useMemo)(
|
|
4418
|
+
() => __spreadValues(__spreadValues(__spreadValues({}, xScaleConfig), yScaleConfig), y2ScaleConfig),
|
|
4419
|
+
[xScaleConfig, yScaleConfig, y2ScaleConfig]
|
|
4420
|
+
);
|
|
4421
|
+
const legend = (0, react_exports.useMemo)(
|
|
4422
|
+
() => getLegend({ legendDisplay, isSeriesCompare: legendMode === "seriesCompare" }),
|
|
4423
|
+
[legendDisplay, legendMode]
|
|
4424
|
+
);
|
|
4425
|
+
const handleChartClick = react_exports.useCallback(
|
|
4426
|
+
(event) => {
|
|
4427
|
+
if (onClick) {
|
|
4428
|
+
handleClick(event, onClick, trellisKey, trellisSplitBy);
|
|
4429
|
+
}
|
|
4430
|
+
},
|
|
4431
|
+
[onClick, trellisKey, trellisSplitBy]
|
|
4432
|
+
);
|
|
4433
|
+
const handleChartLegendClick = react_exports.useCallback(
|
|
4434
|
+
(event) => {
|
|
4435
|
+
if (onClick) {
|
|
4436
|
+
handleLegendClick(event, onClick, trellisKey, trellisSplitBy);
|
|
4437
|
+
}
|
|
4438
|
+
},
|
|
4439
|
+
[onClick, trellisKey, trellisSplitBy]
|
|
4440
|
+
);
|
|
4441
|
+
const handleChartRangeSelection = react_exports.useCallback(
|
|
4442
|
+
(range2) => {
|
|
4443
|
+
if (onSelect) {
|
|
4444
|
+
handleRangeSelection(range2, onSelect, chartData, trellisKey, trellisSplitBy);
|
|
4445
|
+
}
|
|
4446
|
+
},
|
|
4447
|
+
[onSelect, chartData, trellisKey, trellisSplitBy]
|
|
4448
|
+
);
|
|
4449
|
+
const handleChartRangeZoom = react_exports.useCallback(
|
|
4450
|
+
(range2) => {
|
|
4451
|
+
if (onSelect) {
|
|
4452
|
+
handleRangeZoom(range2, onSelect, chartData, trellisKey, trellisSplitBy);
|
|
4453
|
+
}
|
|
4454
|
+
},
|
|
4455
|
+
[onSelect, chartData, trellisKey, trellisSplitBy]
|
|
4456
|
+
);
|
|
4457
|
+
const xFieldToUse = xFieldFromProps || xField;
|
|
4458
|
+
const enableSearchZoom = react_exports.useMemo(
|
|
4459
|
+
() => shouldEnableSearchZoom(eventHandlers, xFieldToUse),
|
|
4460
|
+
[eventHandlers, xFieldToUse]
|
|
4461
|
+
);
|
|
4462
|
+
const lastPayloadRef = react_exports.useRef(null);
|
|
4463
|
+
const lastOriginalEventRef = react_exports.useRef(null);
|
|
4464
|
+
const previousMouseoverPayloadRef = react_exports.useRef(null);
|
|
4465
|
+
const additionalTooltipValuesRef = react_exports.useRef(additionalTooltipValues);
|
|
4466
|
+
react_exports.useEffect(() => {
|
|
4467
|
+
additionalTooltipValuesRef.current = additionalTooltipValues;
|
|
4468
|
+
}, [additionalTooltipValues]);
|
|
4469
|
+
const handleChartCrosshairChange = react_exports.useCallback(
|
|
4470
|
+
(event) => {
|
|
4471
|
+
if (onPointMouseOver || onPointMouseOut) {
|
|
4472
|
+
if (!event) {
|
|
4473
|
+
if (onPointMouseOut && lastPayloadRef.current) {
|
|
4474
|
+
onPointMouseOut({
|
|
4475
|
+
type: "point.mouseout",
|
|
4476
|
+
originalEvent: lastOriginalEventRef.current,
|
|
4477
|
+
payload: lastPayloadRef.current
|
|
4478
|
+
});
|
|
4479
|
+
}
|
|
4480
|
+
previousMouseoverPayloadRef.current = null;
|
|
4481
|
+
return;
|
|
4482
|
+
}
|
|
4483
|
+
const payload = __spreadProps(__spreadValues({}, (0, lodash_exports.pick)(event, "value", "seriesKey", "time", "index", "seriesIndex")), {
|
|
4484
|
+
name: event.seriesKey
|
|
4485
|
+
});
|
|
4486
|
+
delete payload.seriesKey;
|
|
4487
|
+
if (event.rowContext) {
|
|
4488
|
+
Object.assign(
|
|
4489
|
+
payload,
|
|
4490
|
+
Object.keys(event.rowContext).reduce((acc, fieldName) => {
|
|
4491
|
+
acc[`row.${fieldName}.value`] = event.rowContext[fieldName];
|
|
4492
|
+
return acc;
|
|
4493
|
+
}, {})
|
|
4494
|
+
);
|
|
4495
|
+
}
|
|
4496
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
4497
|
+
if (!hasMouseoverPayloadChanged(updatedPayload, previousMouseoverPayloadRef.current)) {
|
|
4498
|
+
return;
|
|
4499
|
+
}
|
|
4500
|
+
lastPayloadRef.current = updatedPayload;
|
|
4501
|
+
lastOriginalEventRef.current = event;
|
|
4502
|
+
previousMouseoverPayloadRef.current = __spreadValues({}, updatedPayload);
|
|
4503
|
+
if (onPointMouseOver) {
|
|
4504
|
+
onPointMouseOver({
|
|
4505
|
+
type: "point.mouseover",
|
|
4506
|
+
originalEvent: event,
|
|
4507
|
+
payload: updatedPayload
|
|
4508
|
+
});
|
|
4509
|
+
}
|
|
4510
|
+
}
|
|
4511
|
+
},
|
|
4512
|
+
[onPointMouseOver, onPointMouseOut, trellisKey, trellisSplitBy]
|
|
4513
|
+
);
|
|
4514
|
+
const dataKey = `${(_b = chartData.columns[0]) == null ? void 0 : _b[0]}-${(_c = chartData.columns[0]) == null ? void 0 : _c[chartData.columns[0].length - 1]}-${(_d = chartData.columns[0]) == null ? void 0 : _d.length}`;
|
|
4515
|
+
const memoizedChart = (0, react_exports.useMemo)(() => {
|
|
4516
|
+
const computedOnRangeZoom = onSelect ? handleChartRangeZoom : void 0;
|
|
4517
|
+
return /* @__PURE__ */ react_exports.createElement(visualization_canvas_exports.RangeSelectionProvider, { key: dataKey }, /* @__PURE__ */ react_exports.createElement(
|
|
4518
|
+
visualization_canvas_exports.TimeSeriesChart,
|
|
3906
4519
|
{
|
|
3907
4520
|
data: chartData,
|
|
3908
4521
|
width: containerWidth,
|
|
@@ -3910,49 +4523,113 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3910
4523
|
seriesColors,
|
|
3911
4524
|
seriesColorsByField,
|
|
3912
4525
|
seriesConfig: seriesOverrides,
|
|
3913
|
-
legend
|
|
4526
|
+
legend,
|
|
4527
|
+
legendLabels,
|
|
4528
|
+
isSeriesCompare: legendMode === "seriesCompare",
|
|
4529
|
+
maxSeriesFocus: legendMode === "seriesCompare" ? 0 : void 0,
|
|
3914
4530
|
scaleConfig,
|
|
3915
4531
|
timestampFormat: "expanded",
|
|
3916
|
-
onCrosshairClick:
|
|
3917
|
-
|
|
4532
|
+
onCrosshairClick: onClick ? handleChartClick : void 0,
|
|
4533
|
+
onCrosshairChange: onPointMouseOver || onPointMouseOut ? handleChartCrosshairChange : void 0,
|
|
4534
|
+
onSeriesClick: onClick ? handleChartLegendClick : void 0,
|
|
4535
|
+
onRangeSelection: handleChartRangeSelection,
|
|
4536
|
+
onRangeZoom: computedOnRangeZoom,
|
|
4537
|
+
serverSideZoom: enableSearchZoom,
|
|
3918
4538
|
userLocale,
|
|
3919
4539
|
events: chartingEventAnnotations,
|
|
3920
|
-
eventsConfig: { renderer: triangleEventAnnotationRenderer }
|
|
4540
|
+
eventsConfig: { renderer: triangleEventAnnotationRenderer },
|
|
4541
|
+
additionalTooltipValuesRef,
|
|
4542
|
+
showXMajorGridLines,
|
|
4543
|
+
showYMajorGridLines,
|
|
4544
|
+
showY2MajorGridLines,
|
|
4545
|
+
showYMinorGridLines,
|
|
4546
|
+
showY2MinorGridLines,
|
|
4547
|
+
showLineSmoothing,
|
|
4548
|
+
dataValuesDisplay,
|
|
4549
|
+
showYMajorTicks,
|
|
4550
|
+
showY2MajorTicks,
|
|
4551
|
+
yAxisMajorTickSize: yAxisMajorTickSizeNum,
|
|
4552
|
+
y2AxisMajorTickSize: y2AxisMajorTickSizeNum,
|
|
4553
|
+
yAxisMajorTickInterval: yAxisMajorTickIntervalNum,
|
|
4554
|
+
y2AxisMajorTickInterval: y2AxisMajorTickIntervalNum,
|
|
4555
|
+
showYMinorTicks,
|
|
4556
|
+
showY2MinorTicks,
|
|
4557
|
+
yAxisMinorTickSize: yAxisMinorTickSizeNum,
|
|
4558
|
+
y2AxisMinorTickSize: y2AxisMinorTickSizeNum,
|
|
4559
|
+
showYAxisWithZero,
|
|
4560
|
+
showY2AxisWithZero
|
|
3921
4561
|
}
|
|
3922
|
-
)
|
|
3923
|
-
|
|
3924
|
-
|
|
3925
|
-
|
|
3926
|
-
|
|
3927
|
-
|
|
3928
|
-
|
|
3929
|
-
|
|
3930
|
-
|
|
3931
|
-
|
|
3932
|
-
|
|
3933
|
-
|
|
3934
|
-
|
|
3935
|
-
|
|
3936
|
-
|
|
3937
|
-
|
|
4562
|
+
));
|
|
4563
|
+
}, [
|
|
4564
|
+
onSelect,
|
|
4565
|
+
handleChartRangeZoom,
|
|
4566
|
+
dataKey,
|
|
4567
|
+
chartData,
|
|
4568
|
+
containerWidth,
|
|
4569
|
+
containerHeight,
|
|
4570
|
+
seriesColors,
|
|
4571
|
+
seriesColorsByField,
|
|
4572
|
+
seriesOverrides,
|
|
4573
|
+
legend,
|
|
4574
|
+
legendLabels,
|
|
4575
|
+
scaleConfig,
|
|
4576
|
+
onClick,
|
|
4577
|
+
handleChartClick,
|
|
4578
|
+
onPointMouseOver,
|
|
4579
|
+
onPointMouseOut,
|
|
4580
|
+
handleChartCrosshairChange,
|
|
4581
|
+
handleChartLegendClick,
|
|
4582
|
+
handleChartRangeSelection,
|
|
4583
|
+
enableSearchZoom,
|
|
4584
|
+
userLocale,
|
|
4585
|
+
chartingEventAnnotations,
|
|
4586
|
+
showXMajorGridLines,
|
|
4587
|
+
showYMajorGridLines,
|
|
4588
|
+
showY2MajorGridLines,
|
|
4589
|
+
showYMinorGridLines,
|
|
4590
|
+
showY2MinorGridLines,
|
|
4591
|
+
showLineSmoothing,
|
|
4592
|
+
dataValuesDisplay,
|
|
4593
|
+
showYMajorTicks,
|
|
4594
|
+
showY2MajorTicks,
|
|
4595
|
+
yAxisMajorTickSizeNum,
|
|
4596
|
+
y2AxisMajorTickSizeNum,
|
|
4597
|
+
yAxisMajorTickIntervalNum,
|
|
4598
|
+
y2AxisMajorTickIntervalNum,
|
|
4599
|
+
showYMinorTicks,
|
|
4600
|
+
showY2MinorTicks,
|
|
4601
|
+
yAxisMinorTickSizeNum,
|
|
4602
|
+
y2AxisMinorTickSizeNum,
|
|
4603
|
+
showYAxisWithZero,
|
|
4604
|
+
showY2AxisWithZero,
|
|
4605
|
+
legendMode
|
|
4606
|
+
]);
|
|
3938
4607
|
const memoizedVisualization = (0, react_exports.useMemo)(() => {
|
|
3939
|
-
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor }, memoizedChart);
|
|
3940
|
-
}, [
|
|
3941
|
-
return /* @__PURE__ */ react_exports.createElement(
|
|
4608
|
+
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor: bgColor }, memoizedChart);
|
|
4609
|
+
}, [bgColor, memoizedChart]);
|
|
4610
|
+
return /* @__PURE__ */ react_exports.createElement(react_exports.Fragment, null, trellisEnabled && /* @__PURE__ */ react_exports.createElement(
|
|
4611
|
+
TrellisTitle,
|
|
4612
|
+
{
|
|
4613
|
+
trellisKey,
|
|
4614
|
+
backgroundColor: bgColor,
|
|
4615
|
+
fontColor: defaultFontColor
|
|
4616
|
+
}
|
|
4617
|
+
), /* @__PURE__ */ react_exports.createElement(
|
|
3942
4618
|
TimeSeriesChartContainer,
|
|
3943
4619
|
{
|
|
3944
|
-
height,
|
|
4620
|
+
height: trellisEnabled ? Number(height) - TRELLIS_TITLE_HEIGHT : height,
|
|
3945
4621
|
width,
|
|
3946
4622
|
ref: uplotContainerElement,
|
|
3947
4623
|
"data-test": "timeseries-chart-wrapper"
|
|
3948
4624
|
},
|
|
3949
4625
|
/* @__PURE__ */ react_exports.createElement(SizeAwareWrapper_default, { width, height, onResize: cachedHandleResize }),
|
|
3950
4626
|
memoizedVisualization
|
|
3951
|
-
);
|
|
4627
|
+
));
|
|
3952
4628
|
};
|
|
3953
4629
|
var TimeSeriesChartWrapper_default = TimeSeriesChartWrapper;
|
|
3954
4630
|
|
|
3955
4631
|
// src/common/withDashboardViz.tsx
|
|
4632
|
+
var SanitizedTimeSeriesChartWrapper = (0, SanitizeProps_exports.withSanitizedProps)(TimeSeriesChartWrapper_default);
|
|
3956
4633
|
var withDashboardViz = (opts) => {
|
|
3957
4634
|
const {
|
|
3958
4635
|
ReactViz,
|
|
@@ -3961,6 +4638,7 @@ var withDashboardViz = (opts) => {
|
|
|
3961
4638
|
},
|
|
3962
4639
|
computeVizPropsBeforeEval = () => {
|
|
3963
4640
|
},
|
|
4641
|
+
computeDataFrames,
|
|
3964
4642
|
disableEditModeCover,
|
|
3965
4643
|
useIconPlaceholder: useIconPlaceholder2
|
|
3966
4644
|
} = opts;
|
|
@@ -4089,11 +4767,19 @@ var withDashboardViz = (opts) => {
|
|
|
4089
4767
|
);
|
|
4090
4768
|
setDataFramesInState(dataFrames);
|
|
4091
4769
|
}
|
|
4770
|
+
let mergedFrames = dataFrames;
|
|
4771
|
+
if (computeDataFrames && dataFrames) {
|
|
4772
|
+
const derivedFrames = computeDataFrames({
|
|
4773
|
+
dataSources: downsampledDataSources,
|
|
4774
|
+
options: optionsToEvaluate.options
|
|
4775
|
+
});
|
|
4776
|
+
mergedFrames = __spreadValues(__spreadValues({}, dataFrames), derivedFrames);
|
|
4777
|
+
}
|
|
4092
4778
|
const result = Options_exports.Options.evaluate(
|
|
4093
4779
|
optionsToEvaluate,
|
|
4094
4780
|
downsampledDataSources,
|
|
4095
4781
|
themeFunc,
|
|
4096
|
-
|
|
4782
|
+
mergedFrames,
|
|
4097
4783
|
getFeatureFlag(featureFlagContext, "visualizations_bypassCloneDeepOptionScope")
|
|
4098
4784
|
);
|
|
4099
4785
|
return result;
|
|
@@ -4181,7 +4867,7 @@ var withDashboardViz = (opts) => {
|
|
|
4181
4867
|
});
|
|
4182
4868
|
}
|
|
4183
4869
|
eventCallbackProps[eventCallbackPropName] = (ev) => {
|
|
4184
|
-
if (ev
|
|
4870
|
+
if (ev == null ? void 0 : ev.payload) {
|
|
4185
4871
|
payload = __spreadValues({}, ev.payload);
|
|
4186
4872
|
}
|
|
4187
4873
|
return onEventTrigger({
|
|
@@ -4205,10 +4891,7 @@ var withDashboardViz = (opts) => {
|
|
|
4205
4891
|
if (useAsyncEvaluatedOptions && Object.keys(evaluatedOptionsToUse).length === 0) {
|
|
4206
4892
|
return null;
|
|
4207
4893
|
}
|
|
4208
|
-
|
|
4209
|
-
if (isAcceleratedRenderOn) {
|
|
4210
|
-
SanitizedViz = (0, SanitizeProps_exports.withSanitizedProps)(TimeSeriesChartWrapper_default);
|
|
4211
|
-
}
|
|
4894
|
+
const SanitizedViz = isAcceleratedRenderOn ? SanitizedTimeSeriesChartWrapper : SanitizedReactViz;
|
|
4212
4895
|
return /* @__PURE__ */ react_exports.createElement(
|
|
4213
4896
|
SanitizedViz,
|
|
4214
4897
|
__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues({}, SplunkVisualization_default.defaults), {
|
|
@@ -4304,10 +4987,10 @@ var formatLayer = (l, dataFields, dataSourceData, transformedData) => {
|
|
|
4304
4987
|
return typeof geomItem === "string" ? JSON.parse(geomItem) : geomItem;
|
|
4305
4988
|
});
|
|
4306
4989
|
}
|
|
4307
|
-
if (Object.
|
|
4990
|
+
if (Object.hasOwn(layer, "seriesColors")) {
|
|
4308
4991
|
layer.seriesColors = Array.isArray(layer.seriesColors) ? (0, colorUtils_exports.sanitizeArrayOfColors)(layer.seriesColors) : void 0;
|
|
4309
4992
|
}
|
|
4310
|
-
if (Object.
|
|
4993
|
+
if (Object.hasOwn(layer, "dataColors")) {
|
|
4311
4994
|
layer.dataColors = Array.isArray(layer.dataColors) ? (0, colorUtils_exports.sanitizeArrayOfColors)(layer.dataColors) : void 0;
|
|
4312
4995
|
}
|
|
4313
4996
|
layer.metadata = transformedData;
|
|
@@ -4422,7 +5105,7 @@ var withNullToZeros = (Viz) => {
|
|
|
4422
5105
|
function useIconPlaceholder(dataSources, loading) {
|
|
4423
5106
|
return loading;
|
|
4424
5107
|
}
|
|
4425
|
-
var
|
|
5108
|
+
var MapVisualization = withoutInternalFields(
|
|
4426
5109
|
withTooltipFields(
|
|
4427
5110
|
withNullToZeros(
|
|
4428
5111
|
withDashboardViz_default({
|
|
@@ -4436,5 +5119,5 @@ var Map2 = withoutInternalFields(
|
|
|
4436
5119
|
)
|
|
4437
5120
|
);
|
|
4438
5121
|
var { themes: themes2 } = config_default;
|
|
4439
|
-
var Map_default =
|
|
5122
|
+
var Map_default = MapVisualization;
|
|
4440
5123
|
//# sourceMappingURL=Map.js.map
|