@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/SingleValueRadial.js
CHANGED
|
@@ -331,7 +331,6 @@ var computeText = ({
|
|
|
331
331
|
}) => {
|
|
332
332
|
let text = (0, numberUtils_exports.isNumerial)(value) ? (0, numberUtils_exports.formatNumber)(value, numberPrecision, {
|
|
333
333
|
useThousandSeparators: shouldUseThousandSeparators,
|
|
334
|
-
// todo: need update formatNumber
|
|
335
334
|
useTrendUnits: shouldAbbreviateValue
|
|
336
335
|
}) : value;
|
|
337
336
|
text = text || "";
|
|
@@ -610,16 +609,19 @@ var changeColor = (color, ratio) => {
|
|
|
610
609
|
};
|
|
611
610
|
var lighten = (color) => changeColor(color, 1.3);
|
|
612
611
|
var darken = (color) => changeColor(color, 0.5);
|
|
613
|
-
var handleValueClickCallback = (ev, majorValue, majorValueField, trendValue, onValueClick,
|
|
614
|
-
|
|
615
|
-
|
|
616
|
-
|
|
617
|
-
|
|
618
|
-
|
|
619
|
-
|
|
620
|
-
|
|
621
|
-
|
|
622
|
-
|
|
612
|
+
var handleValueClickCallback = (ev, majorValue, majorValueField, trendValue, onValueClick, trellisContext = {}) => {
|
|
613
|
+
const { trellisEnabled = false, trellisSplitBy = "", trellisKey = "" } = trellisContext;
|
|
614
|
+
return onValueClick(__spreadProps(__spreadValues({}, ev), {
|
|
615
|
+
payload: __spreadValues({
|
|
616
|
+
trendValue,
|
|
617
|
+
value: majorValue,
|
|
618
|
+
name: majorValueField
|
|
619
|
+
}, trellisEnabled && {
|
|
620
|
+
"trellis.name": trellisSplitBy,
|
|
621
|
+
"trellis.value": trellisKey
|
|
622
|
+
})
|
|
623
|
+
}));
|
|
624
|
+
};
|
|
623
625
|
var getTrendColorWithPercent = (options) => {
|
|
624
626
|
const shouldUsePercentTrendColor = options.trendColor === "> trendValue | rangeValue(trendColorEditorConfig)" && options.trendDisplay === "percent";
|
|
625
627
|
return shouldUsePercentTrendColor ? {
|
|
@@ -739,6 +741,12 @@ var Text2 = styled_components_default.div`
|
|
|
739
741
|
}`;
|
|
740
742
|
}}
|
|
741
743
|
`;
|
|
744
|
+
var Button = styled_components_default(Text2).attrs({ as: "button", type: "button" })`
|
|
745
|
+
border: 0;
|
|
746
|
+
background: transparent;
|
|
747
|
+
padding: 0;
|
|
748
|
+
-webkit-appearance: none;
|
|
749
|
+
`;
|
|
742
750
|
var validUnitPositions = ["before", "after"];
|
|
743
751
|
var MajorValue = ({ color, fontSize, unitPosition, title, value, onValueClick, unit }) => {
|
|
744
752
|
let sanitizedUnit;
|
|
@@ -751,28 +759,31 @@ var MajorValue = ({ color, fontSize, unitPosition, title, value, onValueClick, u
|
|
|
751
759
|
sanitizedUnitPosition = "after";
|
|
752
760
|
}
|
|
753
761
|
}
|
|
754
|
-
|
|
755
|
-
|
|
756
|
-
|
|
757
|
-
|
|
758
|
-
|
|
759
|
-
|
|
760
|
-
|
|
761
|
-
|
|
762
|
+
return /* @__PURE__ */ react_default.createElement(Row, { size: fontSize }, typeof onValueClick === "function" ? /* @__PURE__ */ react_default.createElement(
|
|
763
|
+
Button,
|
|
764
|
+
{
|
|
765
|
+
"data-test": "majorValue",
|
|
766
|
+
color,
|
|
767
|
+
size: fontSize,
|
|
768
|
+
title,
|
|
769
|
+
pseudoContent: sanitizedUnit,
|
|
770
|
+
pseudoContentPosition: sanitizedUnitPosition,
|
|
771
|
+
pseudoContentFontSize: fontSize * 0.6,
|
|
772
|
+
showUnderline: true,
|
|
773
|
+
onClick: onValueClick
|
|
774
|
+
},
|
|
775
|
+
value
|
|
776
|
+
) : /* @__PURE__ */ react_default.createElement(
|
|
762
777
|
Text2,
|
|
763
778
|
{
|
|
764
779
|
"data-test": "majorValue",
|
|
765
780
|
color,
|
|
766
|
-
onClick: (e) => typeof onValueClick === "function" && onValueClick(e),
|
|
767
|
-
showUnderline: !!onValueClick,
|
|
768
781
|
size: fontSize,
|
|
769
782
|
title,
|
|
770
783
|
pseudoContent: sanitizedUnit,
|
|
771
784
|
pseudoContentPosition: sanitizedUnitPosition,
|
|
772
785
|
pseudoContentFontSize: fontSize * 0.6,
|
|
773
|
-
|
|
774
|
-
role: "button",
|
|
775
|
-
onKeyDown: handleKeyDown
|
|
786
|
+
showUnderline: false
|
|
776
787
|
},
|
|
777
788
|
value
|
|
778
789
|
));
|
|
@@ -1030,13 +1041,6 @@ var getProgressWidth = (value, minValue, maxValue, circumference) => {
|
|
|
1030
1041
|
const progressWidth = progress50 / 100 * circumference;
|
|
1031
1042
|
return progressWidth;
|
|
1032
1043
|
};
|
|
1033
|
-
var computeTextWidth = (text, font) => {
|
|
1034
|
-
const canvas = document.createElement("canvas");
|
|
1035
|
-
const context = canvas.getContext("2d");
|
|
1036
|
-
context.font = font;
|
|
1037
|
-
const measure = context.measureText(text);
|
|
1038
|
-
return measure.width;
|
|
1039
|
-
};
|
|
1040
1044
|
var getVerticalLabelOffset = (theta, textHeight, maxOffset) => {
|
|
1041
1045
|
if (theta > 90) {
|
|
1042
1046
|
return (-(maxOffset / 90) * (180 - theta) + maxOffset) * textHeight;
|
|
@@ -1104,6 +1108,15 @@ var getFormattedGaugeRanges = (gaugeRanges, minValue, maxValue) => {
|
|
|
1104
1108
|
return formattedGaugeRanges;
|
|
1105
1109
|
};
|
|
1106
1110
|
|
|
1111
|
+
// src/common/utils/textUtils.ts
|
|
1112
|
+
var computeTextWidth = (text, font) => {
|
|
1113
|
+
const canvas = document.createElement("canvas");
|
|
1114
|
+
const context = canvas.getContext("2d");
|
|
1115
|
+
context.font = font;
|
|
1116
|
+
const measure = context.measureText(text);
|
|
1117
|
+
return measure.width;
|
|
1118
|
+
};
|
|
1119
|
+
|
|
1107
1120
|
// src/SingleValueRadial/PureSingleValueRadial/GaugeGraph.tsx
|
|
1108
1121
|
var GaugeGraph = ({
|
|
1109
1122
|
width = 200,
|
|
@@ -1621,16 +1634,11 @@ var SingleValueRadial = (_a) => {
|
|
|
1621
1634
|
const radialStrokeColor = props.radialStrokeColor || radialColors.stroke;
|
|
1622
1635
|
const trellisEnabled = useTrellisEnabled(splitByLayout);
|
|
1623
1636
|
const handleValueClick = (0, react_exports.useCallback)(
|
|
1624
|
-
(ev) => handleValueClickCallback(
|
|
1625
|
-
ev,
|
|
1626
|
-
majorValue,
|
|
1627
|
-
majorValueField,
|
|
1628
|
-
trendValue,
|
|
1629
|
-
onValueClick,
|
|
1637
|
+
(ev) => handleValueClickCallback(ev, majorValue, majorValueField, trendValue, onValueClick, {
|
|
1630
1638
|
trellisEnabled,
|
|
1631
1639
|
trellisSplitBy,
|
|
1632
1640
|
trellisKey
|
|
1633
|
-
),
|
|
1641
|
+
}),
|
|
1634
1642
|
[onValueClick, majorValue, majorValueField, trendValue, trellisEnabled, trellisSplitBy, trellisKey]
|
|
1635
1643
|
);
|
|
1636
1644
|
const sortedGaugeRanges = gaugeRanges && getSortedGaugeRanges(gaugeRanges);
|
|
@@ -2135,7 +2143,7 @@ var Cover = styled_components_default.div`
|
|
|
2135
2143
|
bottom: 0;
|
|
2136
2144
|
`;
|
|
2137
2145
|
var Blocker = styled_components_default.div.attrs({
|
|
2138
|
-
"data-splunk-visualization-version": "28.
|
|
2146
|
+
"data-splunk-visualization-version": "28.4.0 - 002bd482f"
|
|
2139
2147
|
})`
|
|
2140
2148
|
position: relative;
|
|
2141
2149
|
width: 100%;
|
|
@@ -2216,7 +2224,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
2216
2224
|
FixSizeItem,
|
|
2217
2225
|
{
|
|
2218
2226
|
"data-test": "fix-size-item",
|
|
2219
|
-
"data-splunk-visualization-version": "28.
|
|
2227
|
+
"data-splunk-visualization-version": "28.4.0 - 002bd482f",
|
|
2220
2228
|
width,
|
|
2221
2229
|
height,
|
|
2222
2230
|
backgroundColor
|
|
@@ -2303,6 +2311,7 @@ var withPlaceholder = (Visualization, useIconPlaceholder = shouldShowIconPlaceho
|
|
|
2303
2311
|
var withPlaceholder_default = withPlaceholder;
|
|
2304
2312
|
|
|
2305
2313
|
// src/common/utils/dataUtils.ts
|
|
2314
|
+
var getFieldName = (field) => typeof field === "string" ? field : field.name;
|
|
2306
2315
|
var largestTriangleThreeBuckets = (data, threshold, preferredDownsampleIndices) => {
|
|
2307
2316
|
const dataLength = data.length;
|
|
2308
2317
|
const downsampledIndices = [];
|
|
@@ -2419,9 +2428,9 @@ var tryToCoerceAllDisplayedFields = (ds, xField, yFields, fieldTypes, options) =
|
|
|
2419
2428
|
let xColumn = [];
|
|
2420
2429
|
const yColumns = [];
|
|
2421
2430
|
const canDownsample = !ds.data.fields.some((field, index) => {
|
|
2422
|
-
var _a
|
|
2423
|
-
const fieldName = (
|
|
2424
|
-
const fieldType = (
|
|
2431
|
+
var _a;
|
|
2432
|
+
const fieldName = getFieldName(field);
|
|
2433
|
+
const fieldType = (_a = fieldTypes[index]) != null ? _a : "unknown";
|
|
2425
2434
|
const column = ds.data.columns[index];
|
|
2426
2435
|
let hasDisplayedColumnThatCantBeDownsampled = false;
|
|
2427
2436
|
if (fieldName === xField) {
|
|
@@ -2708,7 +2717,7 @@ var trellisUtils_default = "default" in defaultImport33 ? defaultImport33.defaul
|
|
|
2708
2717
|
var AGGREGATIONS = "aggregations";
|
|
2709
2718
|
var dataSourcesSplitByAggregationsUnknown = (dataSource) => {
|
|
2710
2719
|
var _a, _b, _c, _d;
|
|
2711
|
-
const fields = (_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields;
|
|
2720
|
+
const fields = toFieldEntries((_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields);
|
|
2712
2721
|
const columns = (_d = (_c = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _c.data) == null ? void 0 : _d.columns;
|
|
2713
2722
|
let splitDataSources = null;
|
|
2714
2723
|
let errorCode = null;
|
|
@@ -2729,7 +2738,7 @@ var dataSourcesSplitByAggregationsUnknown = (dataSource) => {
|
|
|
2729
2738
|
}
|
|
2730
2739
|
return { splitDataSources, errorCode };
|
|
2731
2740
|
};
|
|
2732
|
-
var toFieldEntries = (fields) => {
|
|
2741
|
+
var toFieldEntries = (fields = []) => {
|
|
2733
2742
|
return fields.map((field) => {
|
|
2734
2743
|
if (typeof field === "string") {
|
|
2735
2744
|
return { name: field };
|
|
@@ -2744,7 +2753,7 @@ var dataSourcesSplitByAggregationsTimechartAndChart = (dataSource) => {
|
|
|
2744
2753
|
let splitDataSources = null;
|
|
2745
2754
|
let splitByFields = [];
|
|
2746
2755
|
let errorCode = null;
|
|
2747
|
-
if (
|
|
2756
|
+
if (fields.length > 0) {
|
|
2748
2757
|
splitByFields = (0, trellisUtils_exports.extractDataSourceAggregationKeysChart)(fields);
|
|
2749
2758
|
}
|
|
2750
2759
|
if (splitByFields && splitByFields.length > 0) {
|
|
@@ -2782,12 +2791,12 @@ var dataSourcesSplitByAggregationsTimechartAndChart = (dataSource) => {
|
|
|
2782
2791
|
};
|
|
2783
2792
|
var dataSourcesSplitByAggregationsStats = (dataSource) => {
|
|
2784
2793
|
var _a, _b, _c, _d;
|
|
2785
|
-
const fields = (_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields;
|
|
2794
|
+
const fields = toFieldEntries((_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields);
|
|
2786
2795
|
const columns = (_d = (_c = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _c.data) == null ? void 0 : _d.columns;
|
|
2787
2796
|
let splitDataSources = null;
|
|
2788
2797
|
let splitByFields = [];
|
|
2789
2798
|
let errorCode = null;
|
|
2790
|
-
if (
|
|
2799
|
+
if (fields.length > 0) {
|
|
2791
2800
|
splitByFields = (0, trellisUtils_exports.extractDataSourceAggregationKeysStats)(fields);
|
|
2792
2801
|
}
|
|
2793
2802
|
if (splitByFields && splitByFields.length > 0) {
|
|
@@ -2811,12 +2820,12 @@ var dataSourcesSplitByAggregationsStats = (dataSource) => {
|
|
|
2811
2820
|
};
|
|
2812
2821
|
var dataSourcesSplitByModeTimechart = (dataSource, splitBy) => {
|
|
2813
2822
|
var _a, _b, _c, _d, _e;
|
|
2814
|
-
const fields = (_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields;
|
|
2823
|
+
const fields = toFieldEntries((_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields);
|
|
2815
2824
|
const columns = (_d = (_c = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _c.data) == null ? void 0 : _d.columns;
|
|
2816
2825
|
let splitDataSources = null;
|
|
2817
2826
|
let splitByFields = [];
|
|
2818
2827
|
let errorCode = null;
|
|
2819
|
-
if (
|
|
2828
|
+
if (fields.length > 0) {
|
|
2820
2829
|
splitByFields = (0, trellisUtils_exports.extractSplitByFieldsChartFields)(fields);
|
|
2821
2830
|
}
|
|
2822
2831
|
if (splitByFields && splitByFields.indexOf(splitBy) > -1) {
|
|
@@ -2854,12 +2863,12 @@ var dataSourcesSplitByModeTimechart = (dataSource, splitBy) => {
|
|
|
2854
2863
|
};
|
|
2855
2864
|
var dataSourcesSplitByModeChart = (dataSource, splitBy) => {
|
|
2856
2865
|
var _a, _b, _c, _d;
|
|
2857
|
-
const fields = (_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields;
|
|
2866
|
+
const fields = toFieldEntries((_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields);
|
|
2858
2867
|
const columns = (_d = (_c = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _c.data) == null ? void 0 : _d.columns;
|
|
2859
2868
|
let splitDataSources = null;
|
|
2860
2869
|
let splitByFields = [];
|
|
2861
2870
|
let errorCode = null;
|
|
2862
|
-
if (
|
|
2871
|
+
if (fields.length > 0) {
|
|
2863
2872
|
splitByFields = (0, trellisUtils_exports.extractSplitByFieldsChartFields)(fields);
|
|
2864
2873
|
}
|
|
2865
2874
|
if (splitByFields && splitByFields.indexOf(splitBy) > -1) {
|
|
@@ -2947,17 +2956,15 @@ var dataSourcesSplitByModeChart = (dataSource, splitBy) => {
|
|
|
2947
2956
|
};
|
|
2948
2957
|
var dataSourcesSplitByModeStatsorUnknown = (dataSource, splitBy, splitMode) => {
|
|
2949
2958
|
var _a, _b, _c, _d, _e, _f;
|
|
2950
|
-
const fields = (_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields;
|
|
2959
|
+
const fields = toFieldEntries((_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields);
|
|
2951
2960
|
const columns = (_d = (_c = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _c.data) == null ? void 0 : _d.columns;
|
|
2952
2961
|
let splitDataSources = null;
|
|
2953
2962
|
let splitByFields = [];
|
|
2954
2963
|
let errorCode = null;
|
|
2955
|
-
if (
|
|
2964
|
+
if (fields.length > 0) {
|
|
2956
2965
|
splitByFields = splitMode !== trellisUtils_exports.UNKNOWN ? (0, trellisUtils_exports.extractSplitByFieldsForStats)(fields) : (0, trellisUtils_exports.extractSplitByFieldsForUnknown)(fields);
|
|
2957
2966
|
}
|
|
2958
|
-
const splitByIndex = fields
|
|
2959
|
-
(field) => field === splitBy || field.name === splitBy
|
|
2960
|
-
);
|
|
2967
|
+
const splitByIndex = fields.findIndex((field) => field.name === splitBy);
|
|
2961
2968
|
if (splitByFields && splitByFields.indexOf(splitBy) > -1) {
|
|
2962
2969
|
const splitByColumn = (_f = (_e = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _e.data) == null ? void 0 : _f.columns[splitByIndex];
|
|
2963
2970
|
splitDataSources = {};
|
|
@@ -3079,14 +3086,29 @@ var getAnnotationsForCanvas = ({
|
|
|
3079
3086
|
var StyledTriangle = styled_components_default(Triangle_default)`
|
|
3080
3087
|
color: ${(props) => props.eventColor || variables_default.severityColorNotice(props)};
|
|
3081
3088
|
`;
|
|
3082
|
-
var triangleEventAnnotationRenderer = ({
|
|
3089
|
+
var triangleEventAnnotationRenderer = ({
|
|
3090
|
+
event,
|
|
3091
|
+
dimensions
|
|
3092
|
+
}) => {
|
|
3083
3093
|
const eventWithColor = event;
|
|
3084
3094
|
return react_default.createElement(StyledTriangle, {
|
|
3095
|
+
width: `${dimensions.width}px`,
|
|
3096
|
+
height: `${dimensions.height}px`,
|
|
3085
3097
|
viewBox: "0 0 24 24",
|
|
3086
3098
|
variant: "filled",
|
|
3087
3099
|
eventColor: eventWithColor.color
|
|
3088
3100
|
});
|
|
3089
3101
|
};
|
|
3102
|
+
var shouldEnableSearchZoom = (eventHandlers = [], xField = "") => {
|
|
3103
|
+
const rangeSelectEventHandler = eventHandlers.find(
|
|
3104
|
+
(eventHandler) => {
|
|
3105
|
+
var _a;
|
|
3106
|
+
return (_a = eventHandler.options.events) == null ? void 0 : _a.includes("range.select");
|
|
3107
|
+
}
|
|
3108
|
+
);
|
|
3109
|
+
const xAxisIsTime = xField === "_time";
|
|
3110
|
+
return !!rangeSelectEventHandler && xAxisIsTime;
|
|
3111
|
+
};
|
|
3090
3112
|
var canvasSupportedTimeSeriesCharts = ["splunk.line"];
|
|
3091
3113
|
var isTimeSeriesCanvasRenderSupported = (vizConfigKey) => {
|
|
3092
3114
|
return canvasSupportedTimeSeriesCharts.indexOf(vizConfigKey) > -1;
|
|
@@ -3107,16 +3129,31 @@ var filterChartDataFromInternalFields = (chartData) => {
|
|
|
3107
3129
|
var convert2DArrayToNumbers = (arr) => {
|
|
3108
3130
|
return arr.map((subArray) => subArray.map((element2) => parseFloat(element2)));
|
|
3109
3131
|
};
|
|
3132
|
+
var parseAxisValue = (val) => {
|
|
3133
|
+
if (val === void 0 || val === null || val === "auto" || val === "") {
|
|
3134
|
+
return void 0;
|
|
3135
|
+
}
|
|
3136
|
+
const num = typeof val === "number" ? val : Number.parseFloat(val);
|
|
3137
|
+
return Number.isNaN(num) ? void 0 : num;
|
|
3138
|
+
};
|
|
3110
3139
|
var SideLegendWidth = 75;
|
|
3111
|
-
var
|
|
3140
|
+
var SeriesCompareLegendWidth = 200;
|
|
3112
3141
|
var getLegend = (props) => {
|
|
3113
3142
|
const legendPlacement = props == null ? void 0 : props.legendDisplay;
|
|
3143
|
+
const { isSeriesCompare } = props;
|
|
3144
|
+
const commonLegendProps = {
|
|
3145
|
+
center: true,
|
|
3146
|
+
fontSize: 12,
|
|
3147
|
+
largerTiles: true,
|
|
3148
|
+
hideSeriesValue: !isSeriesCompare
|
|
3149
|
+
// Show values if in seriesCompare mode
|
|
3150
|
+
};
|
|
3114
3151
|
switch (legendPlacement) {
|
|
3115
3152
|
case "off":
|
|
3116
3153
|
return false;
|
|
3117
3154
|
case "left":
|
|
3118
3155
|
return (0, visualization_canvas_exports.LeftLegendFactory)(__spreadValues({
|
|
3119
|
-
width: SideLegendWidth
|
|
3156
|
+
width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
|
|
3120
3157
|
}, commonLegendProps));
|
|
3121
3158
|
case "bottom":
|
|
3122
3159
|
return (0, visualization_canvas_exports.BottomLegendFactory)(__spreadValues({
|
|
@@ -3128,7 +3165,7 @@ var getLegend = (props) => {
|
|
|
3128
3165
|
}, commonLegendProps));
|
|
3129
3166
|
default:
|
|
3130
3167
|
return (0, visualization_canvas_exports.SideLegendFactory)(__spreadValues({
|
|
3131
|
-
width: SideLegendWidth
|
|
3168
|
+
width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
|
|
3132
3169
|
}, commonLegendProps));
|
|
3133
3170
|
}
|
|
3134
3171
|
};
|
|
@@ -3164,19 +3201,25 @@ var ellipsisAxisTitle = (axisTitle, containerSpacing, fontSize = 12) => {
|
|
|
3164
3201
|
const end = axisTitle.slice(-halfChars);
|
|
3165
3202
|
return `${start}...${end}`;
|
|
3166
3203
|
};
|
|
3167
|
-
var
|
|
3204
|
+
var getFieldName2 = (field) => {
|
|
3168
3205
|
const fieldName = typeof field === "object" ? field == null ? void 0 : field.name : field;
|
|
3169
3206
|
return fieldName;
|
|
3170
3207
|
};
|
|
3171
3208
|
var getFieldNames = (fields) => {
|
|
3172
|
-
return fields.map((field) =>
|
|
3209
|
+
return fields.map((field) => getFieldName2(field));
|
|
3173
3210
|
};
|
|
3174
|
-
var getXScaleConfig = (label) => {
|
|
3211
|
+
var getXScaleConfig = (label, xAxisLabelVisibility, xAxisLabelRotation) => {
|
|
3175
3212
|
const xConfig = { x: {} };
|
|
3176
3213
|
xConfig.x.label = label;
|
|
3214
|
+
if (xAxisLabelVisibility === "hide") {
|
|
3215
|
+
xConfig.x.hideLabels = true;
|
|
3216
|
+
}
|
|
3217
|
+
if (xAxisLabelRotation !== void 0) {
|
|
3218
|
+
xConfig.x.labelRotation = xAxisLabelRotation;
|
|
3219
|
+
}
|
|
3177
3220
|
return xConfig;
|
|
3178
3221
|
};
|
|
3179
|
-
var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale) => {
|
|
3222
|
+
var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale, yAxisLabelVisibility, yAxisMin, yAxisMax) => {
|
|
3180
3223
|
const scaleType = yAxisScale != null ? yAxisScale : "linear";
|
|
3181
3224
|
const yConfig = { y: {} };
|
|
3182
3225
|
yConfig.y.label = label;
|
|
@@ -3189,23 +3232,42 @@ var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale) => {
|
|
|
3189
3232
|
} else {
|
|
3190
3233
|
yConfig.y.width = label && label.length > 0 ? 30 : 10;
|
|
3191
3234
|
}
|
|
3235
|
+
if (yAxisLabelVisibility === "hide") {
|
|
3236
|
+
yConfig.y.hideLabels = true;
|
|
3237
|
+
}
|
|
3238
|
+
if (yAxisMin !== void 0 || yAxisMax !== void 0) {
|
|
3239
|
+
yConfig.y.range = (u, dataMin, dataMax) => {
|
|
3240
|
+
const min = yAxisMin != null ? yAxisMin : dataMin;
|
|
3241
|
+
const max = yAxisMax != null ? yAxisMax : dataMax;
|
|
3242
|
+
return [min, max];
|
|
3243
|
+
};
|
|
3244
|
+
}
|
|
3192
3245
|
return yConfig;
|
|
3193
3246
|
};
|
|
3194
|
-
var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInteger) => {
|
|
3247
|
+
var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInteger, y2AxisLabelVisibility, y2AxisMin, y2AxisMax) => {
|
|
3195
3248
|
const y2Config = { y2: {} };
|
|
3196
3249
|
const scaleType = axisScale != null ? axisScale : "linear";
|
|
3197
3250
|
y2Config.y2.label = label;
|
|
3198
3251
|
y2Config.y2.side = "right";
|
|
3199
|
-
y2Config.y2.showGrid = false;
|
|
3200
3252
|
y2Config.y2.type = scaleType;
|
|
3201
3253
|
if (axisAbbreviation !== "none") {
|
|
3202
3254
|
y2Config.y2.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1, roundAxisLabelsToInteger);
|
|
3203
3255
|
} else if (roundAxisLabelsToInteger) {
|
|
3204
3256
|
y2Config.y2.tickFmt = (v) => roundAxisLabelsToInteger ? Math.round(v).toString() : v.toString();
|
|
3205
3257
|
}
|
|
3258
|
+
if (y2AxisLabelVisibility === "hide") {
|
|
3259
|
+
y2Config.y2.hideLabels = true;
|
|
3260
|
+
}
|
|
3261
|
+
if (y2AxisMin !== void 0 || y2AxisMax !== void 0) {
|
|
3262
|
+
y2Config.y2.range = (u, dataMin, dataMax) => {
|
|
3263
|
+
const min = y2AxisMin != null ? y2AxisMin : dataMin;
|
|
3264
|
+
const max = y2AxisMax != null ? y2AxisMax : dataMax;
|
|
3265
|
+
return [min, max];
|
|
3266
|
+
};
|
|
3267
|
+
}
|
|
3206
3268
|
return y2Config;
|
|
3207
3269
|
};
|
|
3208
|
-
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode) => {
|
|
3270
|
+
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode, markerDisplay, lineDashStyle, lineDashStylesByField) => {
|
|
3209
3271
|
const seriesConfig = {};
|
|
3210
3272
|
let spanGaps;
|
|
3211
3273
|
let replaceNullsWithZero;
|
|
@@ -3237,12 +3299,48 @@ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled
|
|
|
3237
3299
|
if (overlayFields == null ? void 0 : overlayFields.includes(field)) {
|
|
3238
3300
|
seriesConfig[field].type = "line";
|
|
3239
3301
|
}
|
|
3302
|
+
if (markerDisplay !== void 0) {
|
|
3303
|
+
seriesConfig[field].markerDisplay = markerDisplay;
|
|
3304
|
+
}
|
|
3305
|
+
const fieldDashStyle = (lineDashStylesByField == null ? void 0 : lineDashStylesByField[field]) || lineDashStyle;
|
|
3306
|
+
if (fieldDashStyle) {
|
|
3307
|
+
seriesConfig[field].lineDashStyle = fieldDashStyle;
|
|
3308
|
+
}
|
|
3240
3309
|
if (replaceNullsWithZero !== void 0) {
|
|
3241
3310
|
seriesConfig[field].replaceNullsWithZero = replaceNullsWithZero;
|
|
3242
3311
|
}
|
|
3243
3312
|
});
|
|
3244
3313
|
return seriesConfig;
|
|
3245
3314
|
};
|
|
3315
|
+
var findRangeIndices = (xData, startValue, endValue) => {
|
|
3316
|
+
let startXIndex = -1;
|
|
3317
|
+
let endXIndex = -1;
|
|
3318
|
+
const xDataEpoch = xData.map((val) => {
|
|
3319
|
+
if (typeof val === "string") {
|
|
3320
|
+
return new Date(val).getTime() / 1e3;
|
|
3321
|
+
}
|
|
3322
|
+
return val;
|
|
3323
|
+
});
|
|
3324
|
+
for (let i = 0; i < xDataEpoch.length; i += 1) {
|
|
3325
|
+
if (xDataEpoch[i] >= startValue) {
|
|
3326
|
+
startXIndex = i;
|
|
3327
|
+
break;
|
|
3328
|
+
}
|
|
3329
|
+
}
|
|
3330
|
+
if (startXIndex === -1 && xDataEpoch.length > 0) {
|
|
3331
|
+
startXIndex = xDataEpoch.length - 1;
|
|
3332
|
+
}
|
|
3333
|
+
for (let i = xDataEpoch.length - 1; i >= 0; i -= 1) {
|
|
3334
|
+
if (xDataEpoch[i] <= endValue) {
|
|
3335
|
+
endXIndex = i;
|
|
3336
|
+
break;
|
|
3337
|
+
}
|
|
3338
|
+
}
|
|
3339
|
+
if (endXIndex === -1 && xDataEpoch.length > 0) {
|
|
3340
|
+
endXIndex = 0;
|
|
3341
|
+
}
|
|
3342
|
+
return { startXIndex, endXIndex };
|
|
3343
|
+
};
|
|
3246
3344
|
|
|
3247
3345
|
// src/common/TimeSeriesChartWrapper.tsx
|
|
3248
3346
|
var TimeSeriesChartContainer = styled_components_default.div`
|
|
@@ -3253,45 +3351,190 @@ var TimeSeriesChartContainer = styled_components_default.div`
|
|
|
3253
3351
|
position: absolute !important; // This is needed for canvas element export pdf/png to work correctly
|
|
3254
3352
|
}
|
|
3255
3353
|
`;
|
|
3256
|
-
var
|
|
3354
|
+
var appendTrellisToPayload = (payload, trellisKey, trellisSplitBy) => {
|
|
3355
|
+
const result = __spreadValues({}, payload);
|
|
3356
|
+
if (trellisSplitBy) {
|
|
3357
|
+
result["trellis.name"] = trellisSplitBy;
|
|
3358
|
+
}
|
|
3359
|
+
if (trellisKey) {
|
|
3360
|
+
result["trellis.value"] = trellisKey;
|
|
3361
|
+
}
|
|
3362
|
+
return result;
|
|
3363
|
+
};
|
|
3364
|
+
var hasMouseoverPayloadChanged = (currentPayload, previousPayload) => {
|
|
3365
|
+
if (!previousPayload) {
|
|
3366
|
+
return true;
|
|
3367
|
+
}
|
|
3368
|
+
if (currentPayload.index !== previousPayload.index) {
|
|
3369
|
+
return true;
|
|
3370
|
+
}
|
|
3371
|
+
if (currentPayload.seriesIndex !== previousPayload.seriesIndex) {
|
|
3372
|
+
return true;
|
|
3373
|
+
}
|
|
3374
|
+
if (currentPayload["trellis.name"] !== previousPayload["trellis.name"]) {
|
|
3375
|
+
return true;
|
|
3376
|
+
}
|
|
3377
|
+
if (currentPayload["trellis.value"] !== previousPayload["trellis.value"]) {
|
|
3378
|
+
return true;
|
|
3379
|
+
}
|
|
3380
|
+
return false;
|
|
3381
|
+
};
|
|
3382
|
+
var handleClick = (chartEvent, onClick, trellisKey, trellisSplitBy) => {
|
|
3257
3383
|
const payload = __spreadProps(__spreadValues({}, (0, lodash_exports.pick)(chartEvent, "value", "seriesKey")), {
|
|
3258
3384
|
name: chartEvent.seriesKey
|
|
3259
3385
|
});
|
|
3260
3386
|
delete payload.seriesKey;
|
|
3261
|
-
|
|
3262
|
-
|
|
3263
|
-
|
|
3387
|
+
if (chartEvent.rowContext) {
|
|
3388
|
+
Object.assign(
|
|
3389
|
+
payload,
|
|
3390
|
+
Object.keys(chartEvent.rowContext).reduce((acc, fieldName) => {
|
|
3391
|
+
acc[`row.${fieldName}.value`] = chartEvent.rowContext[fieldName];
|
|
3392
|
+
return acc;
|
|
3393
|
+
}, {})
|
|
3394
|
+
);
|
|
3395
|
+
}
|
|
3396
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
3397
|
+
if (onClick) {
|
|
3398
|
+
onClick({
|
|
3264
3399
|
type: "point.click",
|
|
3265
3400
|
originalEvent: chartEvent,
|
|
3266
|
-
payload
|
|
3401
|
+
payload: updatedPayload
|
|
3267
3402
|
});
|
|
3268
3403
|
}
|
|
3269
3404
|
};
|
|
3270
|
-
var handleLegendClick = (chartEvent,
|
|
3405
|
+
var handleLegendClick = (chartEvent, onClick, trellisKey, trellisSplitBy) => {
|
|
3271
3406
|
const payload = {
|
|
3272
3407
|
name: chartEvent
|
|
3273
3408
|
};
|
|
3274
|
-
const
|
|
3275
|
-
if (
|
|
3276
|
-
|
|
3409
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
3410
|
+
if (onClick) {
|
|
3411
|
+
onClick({
|
|
3277
3412
|
type: "legend.click",
|
|
3278
3413
|
originalEvent: chartEvent,
|
|
3279
|
-
payload
|
|
3414
|
+
payload: updatedPayload
|
|
3415
|
+
});
|
|
3416
|
+
}
|
|
3417
|
+
};
|
|
3418
|
+
var handleRangeSelection = (rangeEvent, onSelect, chartData, trellisKey, trellisSplitBy) => {
|
|
3419
|
+
var _a;
|
|
3420
|
+
if (!rangeEvent) {
|
|
3421
|
+
return;
|
|
3422
|
+
}
|
|
3423
|
+
const xData = ((_a = chartData == null ? void 0 : chartData.columns) == null ? void 0 : _a[0]) || [];
|
|
3424
|
+
const { startXIndex, endXIndex } = findRangeIndices(xData, rangeEvent.start, rangeEvent.end);
|
|
3425
|
+
const payload = {
|
|
3426
|
+
startXIndex,
|
|
3427
|
+
startXValue: rangeEvent.start,
|
|
3428
|
+
endXIndex,
|
|
3429
|
+
endXValue: rangeEvent.end
|
|
3430
|
+
};
|
|
3431
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
3432
|
+
if (onSelect) {
|
|
3433
|
+
onSelect({
|
|
3434
|
+
type: "range.selectBeforeZoom",
|
|
3435
|
+
originalEvent: rangeEvent,
|
|
3436
|
+
payload: updatedPayload
|
|
3280
3437
|
});
|
|
3281
3438
|
}
|
|
3282
3439
|
};
|
|
3440
|
+
var handleRangeZoom = (rangeEvent, onSelect, chartData, trellisKey, trellisSplitBy) => {
|
|
3441
|
+
var _a;
|
|
3442
|
+
const xData = ((_a = chartData == null ? void 0 : chartData.columns) == null ? void 0 : _a[0]) || [];
|
|
3443
|
+
const { startXIndex, endXIndex } = findRangeIndices(xData, rangeEvent.start, rangeEvent.end);
|
|
3444
|
+
const payload = {
|
|
3445
|
+
startXIndex,
|
|
3446
|
+
startXValue: rangeEvent.start,
|
|
3447
|
+
endXIndex,
|
|
3448
|
+
endXValue: rangeEvent.end
|
|
3449
|
+
};
|
|
3450
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
3451
|
+
if (onSelect) {
|
|
3452
|
+
onSelect({
|
|
3453
|
+
type: "range.select",
|
|
3454
|
+
originalEvent: rangeEvent,
|
|
3455
|
+
payload: updatedPayload
|
|
3456
|
+
});
|
|
3457
|
+
}
|
|
3458
|
+
};
|
|
3459
|
+
var parseArrayOption = (value) => {
|
|
3460
|
+
if (Array.isArray(value)) {
|
|
3461
|
+
return value;
|
|
3462
|
+
}
|
|
3463
|
+
if (value) {
|
|
3464
|
+
return JSON.parse(value);
|
|
3465
|
+
}
|
|
3466
|
+
return void 0;
|
|
3467
|
+
};
|
|
3283
3468
|
var TimeSeriesChartWrapper = (props) => {
|
|
3284
|
-
|
|
3285
|
-
const {
|
|
3469
|
+
var _b, _c, _d;
|
|
3470
|
+
const _a = props, {
|
|
3471
|
+
width,
|
|
3472
|
+
height,
|
|
3473
|
+
chartData,
|
|
3474
|
+
options,
|
|
3475
|
+
userLocale,
|
|
3476
|
+
annotationX,
|
|
3477
|
+
annotationLabel,
|
|
3478
|
+
annotationColor,
|
|
3479
|
+
legendDisplay,
|
|
3480
|
+
markerDisplay,
|
|
3481
|
+
onClick,
|
|
3482
|
+
onPointMouseOver,
|
|
3483
|
+
onPointMouseOut,
|
|
3484
|
+
onSelect,
|
|
3485
|
+
splitByLayout,
|
|
3486
|
+
trellisKey,
|
|
3487
|
+
trellisSplitBy,
|
|
3286
3488
|
backgroundColor,
|
|
3489
|
+
defaultFontColor,
|
|
3490
|
+
additionalTooltipValues,
|
|
3491
|
+
showYAxisWithZero: showYAxisWithZeroFromProps,
|
|
3492
|
+
showY2AxisWithZero: showY2AxisWithZeroFromProps
|
|
3493
|
+
} = _a, otherOptions = __objRest(_a, [
|
|
3494
|
+
"width",
|
|
3495
|
+
"height",
|
|
3496
|
+
"chartData",
|
|
3497
|
+
"options",
|
|
3498
|
+
"userLocale",
|
|
3499
|
+
"annotationX",
|
|
3500
|
+
"annotationLabel",
|
|
3501
|
+
"annotationColor",
|
|
3502
|
+
"legendDisplay",
|
|
3503
|
+
"markerDisplay",
|
|
3504
|
+
"onClick",
|
|
3505
|
+
"onPointMouseOver",
|
|
3506
|
+
"onPointMouseOut",
|
|
3507
|
+
"onSelect",
|
|
3508
|
+
"splitByLayout",
|
|
3509
|
+
"trellisKey",
|
|
3510
|
+
"trellisSplitBy",
|
|
3511
|
+
"backgroundColor",
|
|
3512
|
+
"defaultFontColor",
|
|
3513
|
+
"additionalTooltipValues",
|
|
3514
|
+
// Extract showYAxisWithZero directly from props for accelerated render mode
|
|
3515
|
+
"showYAxisWithZero",
|
|
3516
|
+
"showY2AxisWithZero"
|
|
3517
|
+
]);
|
|
3518
|
+
const { eventHandlers, xField: xFieldFromProps } = otherOptions;
|
|
3519
|
+
const trellisEnabled = useTrellisEnabled(splitByLayout);
|
|
3520
|
+
const {
|
|
3521
|
+
backgroundColor: bgColorFromOptions,
|
|
3287
3522
|
seriesColors: seriesColorsStr,
|
|
3288
3523
|
fieldColors,
|
|
3524
|
+
legendLabels: legendLabelsStr,
|
|
3525
|
+
legendMode,
|
|
3289
3526
|
"axisTitleX.text": xAxisTitleText,
|
|
3290
3527
|
"axisTitleY.text": yAxisTitleText,
|
|
3291
3528
|
"axisTitleY2.text": y2AxisTitleText,
|
|
3292
3529
|
"axisTitleX.visibility": xAxisTitleVisibility,
|
|
3293
3530
|
"axisTitleY.visibility": yAxisTitleVisibility,
|
|
3294
3531
|
"axisTitleY2.visibility": y2AxisTitleVisibility,
|
|
3532
|
+
"axisLabelsX.majorLabelVisibility": xAxisLabelVisibility,
|
|
3533
|
+
"axisLabelsX.majorLabelStyle.rotation": xAxisLabelRotation,
|
|
3534
|
+
"axisLabelsY.majorLabelVisibility": yAxisLabelVisibility,
|
|
3535
|
+
"axisLabelsY.majorUnit": yAxisMajorUnitFromSimpleXML,
|
|
3536
|
+
"axisLabelsY2.majorLabelVisibility": y2AxisLabelVisibility,
|
|
3537
|
+
"axisLabelsY2.majorUnit": y2AxisMajorUnitFromSimpleXML,
|
|
3295
3538
|
"axisY.abbreviation": yAxisAbbreviation,
|
|
3296
3539
|
"axisY.scale": yAxisScale,
|
|
3297
3540
|
"axisY2.abbreviation": y2AxisAbbreviation,
|
|
@@ -3301,10 +3544,63 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3301
3544
|
"axisLabelsY2.integerUnits": y2IntegerUnits,
|
|
3302
3545
|
"chart.overlayFields": overlayFieldsStr,
|
|
3303
3546
|
"chart.nullValueMode": nullValueMode,
|
|
3304
|
-
|
|
3547
|
+
"chart.showDataLabels": showDataLabels,
|
|
3548
|
+
lineWidth,
|
|
3549
|
+
lineDashStyle,
|
|
3550
|
+
fieldDashStyles: lineDashStylesByFieldStr,
|
|
3551
|
+
yAxisMin: yAxisMinRaw,
|
|
3552
|
+
yAxisMax: yAxisMaxRaw,
|
|
3553
|
+
y2AxisMin: y2AxisMinRaw,
|
|
3554
|
+
y2AxisMax: y2AxisMaxRaw,
|
|
3555
|
+
showXMajorGridLines,
|
|
3556
|
+
showYMajorGridLines,
|
|
3557
|
+
showY2MajorGridLines,
|
|
3558
|
+
showYMinorGridLines,
|
|
3559
|
+
showY2MinorGridLines,
|
|
3560
|
+
showLineSmoothing,
|
|
3561
|
+
yAxisMajorTickVisibility,
|
|
3562
|
+
y2AxisMajorTickVisibility,
|
|
3563
|
+
yAxisMajorTickSize,
|
|
3564
|
+
y2AxisMajorTickSize,
|
|
3565
|
+
yAxisMajorTickInterval,
|
|
3566
|
+
y2AxisMajorTickInterval,
|
|
3567
|
+
yAxisMinorTickVisibility,
|
|
3568
|
+
y2AxisMinorTickVisibility,
|
|
3569
|
+
yAxisMinorTickSize,
|
|
3570
|
+
y2AxisMinorTickSize,
|
|
3571
|
+
showYAxisWithZero: showYAxisWithZeroFromOptions,
|
|
3572
|
+
showY2AxisWithZero: showY2AxisWithZeroFromOptions
|
|
3305
3573
|
} = options;
|
|
3574
|
+
const dataValuesDisplay = showDataLabels === "none" ? "off" : showDataLabels;
|
|
3575
|
+
const showYAxisWithZero = showYAxisWithZeroFromProps != null ? showYAxisWithZeroFromProps : showYAxisWithZeroFromOptions;
|
|
3576
|
+
const showY2AxisWithZero = showY2AxisWithZeroFromProps != null ? showY2AxisWithZeroFromProps : showY2AxisWithZeroFromOptions;
|
|
3577
|
+
const showYMajorTicks = yAxisMajorTickVisibility === "show";
|
|
3578
|
+
const showY2MajorTicks = y2AxisMajorTickVisibility === "show";
|
|
3579
|
+
const showYMinorTicks = yAxisMinorTickVisibility === "show";
|
|
3580
|
+
const showY2MinorTicks = y2AxisMinorTickVisibility === "show";
|
|
3581
|
+
const yAxisMin = parseAxisValue(yAxisMinRaw);
|
|
3582
|
+
const yAxisMax = parseAxisValue(yAxisMaxRaw);
|
|
3583
|
+
const y2AxisMin = parseAxisValue(y2AxisMinRaw);
|
|
3584
|
+
const y2AxisMax = parseAxisValue(y2AxisMaxRaw);
|
|
3585
|
+
const parseTickInterval = (simpleXMLValue, canvasValue) => {
|
|
3586
|
+
if (simpleXMLValue) return Number(simpleXMLValue);
|
|
3587
|
+
if (canvasValue) return Number(canvasValue);
|
|
3588
|
+
return void 0;
|
|
3589
|
+
};
|
|
3590
|
+
const yAxisMajorTickIntervalNum = parseTickInterval(yAxisMajorUnitFromSimpleXML, yAxisMajorTickInterval);
|
|
3591
|
+
const y2AxisMajorTickIntervalNum = parseTickInterval(
|
|
3592
|
+
y2AxisMajorUnitFromSimpleXML,
|
|
3593
|
+
y2AxisMajorTickInterval
|
|
3594
|
+
);
|
|
3595
|
+
const yAxisMajorTickSizeNum = yAxisMajorTickSize ? Number(yAxisMajorTickSize) : void 0;
|
|
3596
|
+
const y2AxisMajorTickSizeNum = y2AxisMajorTickSize ? Number(y2AxisMajorTickSize) : void 0;
|
|
3597
|
+
const yAxisMinorTickSizeNum = yAxisMinorTickSize ? Number(yAxisMinorTickSize) : void 0;
|
|
3598
|
+
const y2AxisMinorTickSizeNum = y2AxisMinorTickSize ? Number(y2AxisMinorTickSize) : void 0;
|
|
3306
3599
|
const seriesColors = seriesColorsStr ? JSON.parse(seriesColorsStr) : void 0;
|
|
3307
3600
|
const seriesColorsByField = fieldColors ? JSON.parse(fieldColors) : void 0;
|
|
3601
|
+
const lineDashStylesByField = lineDashStylesByFieldStr ? JSON.parse(lineDashStylesByFieldStr) : void 0;
|
|
3602
|
+
const legendLabels = parseArrayOption(legendLabelsStr);
|
|
3603
|
+
const bgColor = backgroundColor || bgColorFromOptions;
|
|
3308
3604
|
const [containerWidth, setContainerWidth] = react_exports.useState(Number(props.width));
|
|
3309
3605
|
const [containerHeight, setContainerHeight] = react_exports.useState(Number(props.height));
|
|
3310
3606
|
const cachedHandleResize = react_exports.useCallback((w, h) => {
|
|
@@ -3315,25 +3611,64 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3315
3611
|
fields: chartData.fields,
|
|
3316
3612
|
columns: chartData.seriesList
|
|
3317
3613
|
});
|
|
3318
|
-
const xField =
|
|
3614
|
+
const xField = getFieldName2(filteredChartData.fields[0]);
|
|
3319
3615
|
const yFields = getFieldNames(
|
|
3320
3616
|
filteredChartData.fields.length > 1 ? filteredChartData.fields.slice(1) : []
|
|
3321
3617
|
);
|
|
3322
|
-
const y2Fields =
|
|
3323
|
-
|
|
3618
|
+
const y2Fields = (0, react_exports.useMemo)(
|
|
3619
|
+
() => y2FieldsStr ? y2FieldsStr.split(",").map((f) => f.trim()) : [],
|
|
3620
|
+
[y2FieldsStr]
|
|
3621
|
+
);
|
|
3622
|
+
const overlayFields = (0, react_exports.useMemo)(
|
|
3623
|
+
() => overlayFieldsStr ? overlayFieldsStr.split(",").map((f) => f.trim()) : [],
|
|
3624
|
+
[overlayFieldsStr]
|
|
3625
|
+
);
|
|
3324
3626
|
let xAxisTitle = getComputedAxisTitles(xAxisTitleText, [xField], xAxisTitleVisibility);
|
|
3325
3627
|
xAxisTitle = ellipsisAxisTitle(xAxisTitle, containerWidth);
|
|
3326
|
-
|
|
3628
|
+
const yFieldsForTitle = y2Enabled ? yFields.filter((field) => !y2Fields.includes(field)) : yFields;
|
|
3629
|
+
let yAxisTitle = getComputedAxisTitles(yAxisTitleText, yFieldsForTitle, yAxisTitleVisibility);
|
|
3327
3630
|
yAxisTitle = ellipsisAxisTitle(yAxisTitle, containerHeight);
|
|
3328
3631
|
const fieldsForY2Axis = y2Fields.length > 0 ? y2Fields : overlayFields;
|
|
3329
3632
|
let y2AxisTitle = getComputedAxisTitles(y2AxisTitleText, fieldsForY2Axis, y2AxisTitleVisibility);
|
|
3330
3633
|
y2AxisTitle = ellipsisAxisTitle(y2AxisTitle, containerHeight);
|
|
3331
|
-
const xScaleConfig =
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3336
|
-
|
|
3634
|
+
const xScaleConfig = (0, react_exports.useMemo)(
|
|
3635
|
+
() => getXScaleConfig(xAxisTitle, xAxisLabelVisibility, xAxisLabelRotation),
|
|
3636
|
+
[xAxisTitle, xAxisLabelVisibility, xAxisLabelRotation]
|
|
3637
|
+
);
|
|
3638
|
+
const yScaleConfig = (0, react_exports.useMemo)(
|
|
3639
|
+
() => getYScaleConfig(
|
|
3640
|
+
yAxisTitle,
|
|
3641
|
+
yAxisAbbreviation,
|
|
3642
|
+
yAxisScale,
|
|
3643
|
+
yAxisLabelVisibility,
|
|
3644
|
+
yAxisMin,
|
|
3645
|
+
yAxisMax
|
|
3646
|
+
),
|
|
3647
|
+
[yAxisTitle, yAxisAbbreviation, yAxisScale, yAxisLabelVisibility, yAxisMin, yAxisMax]
|
|
3648
|
+
);
|
|
3649
|
+
const y2ScaleConfig = (0, react_exports.useMemo)(() => {
|
|
3650
|
+
if (y2Enabled) {
|
|
3651
|
+
return getY2ScaleConfig(
|
|
3652
|
+
y2AxisTitle,
|
|
3653
|
+
y2AxisAbbreviation,
|
|
3654
|
+
y2AxisScale,
|
|
3655
|
+
y2IntegerUnits,
|
|
3656
|
+
y2AxisLabelVisibility,
|
|
3657
|
+
y2AxisMin,
|
|
3658
|
+
y2AxisMax
|
|
3659
|
+
);
|
|
3660
|
+
}
|
|
3661
|
+
return {};
|
|
3662
|
+
}, [
|
|
3663
|
+
y2Enabled,
|
|
3664
|
+
y2AxisTitle,
|
|
3665
|
+
y2AxisAbbreviation,
|
|
3666
|
+
y2AxisScale,
|
|
3667
|
+
y2IntegerUnits,
|
|
3668
|
+
y2AxisLabelVisibility,
|
|
3669
|
+
y2AxisMin,
|
|
3670
|
+
y2AxisMax
|
|
3671
|
+
]);
|
|
3337
3672
|
const uplotContainerElement = (0, react_exports.useRef)(null);
|
|
3338
3673
|
const seriesDataFormatted = [
|
|
3339
3674
|
filteredChartData.columns[0],
|
|
@@ -3341,24 +3676,140 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3341
3676
|
];
|
|
3342
3677
|
chartData.fields = filteredChartData.fields;
|
|
3343
3678
|
chartData.columns = seriesDataFormatted;
|
|
3344
|
-
const seriesOverrides =
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3350
|
-
|
|
3679
|
+
const seriesOverrides = (0, react_exports.useMemo)(
|
|
3680
|
+
() => getSeriesOverrides(
|
|
3681
|
+
yFields,
|
|
3682
|
+
y2Fields,
|
|
3683
|
+
lineWidth,
|
|
3684
|
+
overlayFields,
|
|
3685
|
+
y2Enabled,
|
|
3686
|
+
nullValueMode,
|
|
3687
|
+
markerDisplay,
|
|
3688
|
+
lineDashStyle,
|
|
3689
|
+
lineDashStylesByField
|
|
3690
|
+
),
|
|
3691
|
+
[
|
|
3692
|
+
yFields,
|
|
3693
|
+
y2Fields,
|
|
3694
|
+
lineWidth,
|
|
3695
|
+
overlayFields,
|
|
3696
|
+
y2Enabled,
|
|
3697
|
+
nullValueMode,
|
|
3698
|
+
markerDisplay,
|
|
3699
|
+
lineDashStyle,
|
|
3700
|
+
lineDashStylesByField
|
|
3701
|
+
]
|
|
3351
3702
|
);
|
|
3352
|
-
const chartingEventAnnotations =
|
|
3353
|
-
|
|
3354
|
-
|
|
3355
|
-
|
|
3356
|
-
|
|
3357
|
-
|
|
3358
|
-
|
|
3359
|
-
|
|
3360
|
-
|
|
3361
|
-
|
|
3703
|
+
const chartingEventAnnotations = (0, react_exports.useMemo)(
|
|
3704
|
+
() => getAnnotationsForCanvas({
|
|
3705
|
+
annotationX,
|
|
3706
|
+
annotationColor,
|
|
3707
|
+
annotationLabel
|
|
3708
|
+
}),
|
|
3709
|
+
[annotationX, annotationColor, annotationLabel]
|
|
3710
|
+
);
|
|
3711
|
+
const scaleConfig = (0, react_exports.useMemo)(
|
|
3712
|
+
() => __spreadValues(__spreadValues(__spreadValues({}, xScaleConfig), yScaleConfig), y2ScaleConfig),
|
|
3713
|
+
[xScaleConfig, yScaleConfig, y2ScaleConfig]
|
|
3714
|
+
);
|
|
3715
|
+
const legend = (0, react_exports.useMemo)(
|
|
3716
|
+
() => getLegend({ legendDisplay, isSeriesCompare: legendMode === "seriesCompare" }),
|
|
3717
|
+
[legendDisplay, legendMode]
|
|
3718
|
+
);
|
|
3719
|
+
const handleChartClick = react_exports.useCallback(
|
|
3720
|
+
(event) => {
|
|
3721
|
+
if (onClick) {
|
|
3722
|
+
handleClick(event, onClick, trellisKey, trellisSplitBy);
|
|
3723
|
+
}
|
|
3724
|
+
},
|
|
3725
|
+
[onClick, trellisKey, trellisSplitBy]
|
|
3726
|
+
);
|
|
3727
|
+
const handleChartLegendClick = react_exports.useCallback(
|
|
3728
|
+
(event) => {
|
|
3729
|
+
if (onClick) {
|
|
3730
|
+
handleLegendClick(event, onClick, trellisKey, trellisSplitBy);
|
|
3731
|
+
}
|
|
3732
|
+
},
|
|
3733
|
+
[onClick, trellisKey, trellisSplitBy]
|
|
3734
|
+
);
|
|
3735
|
+
const handleChartRangeSelection = react_exports.useCallback(
|
|
3736
|
+
(range2) => {
|
|
3737
|
+
if (onSelect) {
|
|
3738
|
+
handleRangeSelection(range2, onSelect, chartData, trellisKey, trellisSplitBy);
|
|
3739
|
+
}
|
|
3740
|
+
},
|
|
3741
|
+
[onSelect, chartData, trellisKey, trellisSplitBy]
|
|
3742
|
+
);
|
|
3743
|
+
const handleChartRangeZoom = react_exports.useCallback(
|
|
3744
|
+
(range2) => {
|
|
3745
|
+
if (onSelect) {
|
|
3746
|
+
handleRangeZoom(range2, onSelect, chartData, trellisKey, trellisSplitBy);
|
|
3747
|
+
}
|
|
3748
|
+
},
|
|
3749
|
+
[onSelect, chartData, trellisKey, trellisSplitBy]
|
|
3750
|
+
);
|
|
3751
|
+
const xFieldToUse = xFieldFromProps || xField;
|
|
3752
|
+
const enableSearchZoom = react_exports.useMemo(
|
|
3753
|
+
() => shouldEnableSearchZoom(eventHandlers, xFieldToUse),
|
|
3754
|
+
[eventHandlers, xFieldToUse]
|
|
3755
|
+
);
|
|
3756
|
+
const lastPayloadRef = react_exports.useRef(null);
|
|
3757
|
+
const lastOriginalEventRef = react_exports.useRef(null);
|
|
3758
|
+
const previousMouseoverPayloadRef = react_exports.useRef(null);
|
|
3759
|
+
const additionalTooltipValuesRef = react_exports.useRef(additionalTooltipValues);
|
|
3760
|
+
react_exports.useEffect(() => {
|
|
3761
|
+
additionalTooltipValuesRef.current = additionalTooltipValues;
|
|
3762
|
+
}, [additionalTooltipValues]);
|
|
3763
|
+
const handleChartCrosshairChange = react_exports.useCallback(
|
|
3764
|
+
(event) => {
|
|
3765
|
+
if (onPointMouseOver || onPointMouseOut) {
|
|
3766
|
+
if (!event) {
|
|
3767
|
+
if (onPointMouseOut && lastPayloadRef.current) {
|
|
3768
|
+
onPointMouseOut({
|
|
3769
|
+
type: "point.mouseout",
|
|
3770
|
+
originalEvent: lastOriginalEventRef.current,
|
|
3771
|
+
payload: lastPayloadRef.current
|
|
3772
|
+
});
|
|
3773
|
+
}
|
|
3774
|
+
previousMouseoverPayloadRef.current = null;
|
|
3775
|
+
return;
|
|
3776
|
+
}
|
|
3777
|
+
const payload = __spreadProps(__spreadValues({}, (0, lodash_exports.pick)(event, "value", "seriesKey", "time", "index", "seriesIndex")), {
|
|
3778
|
+
name: event.seriesKey
|
|
3779
|
+
});
|
|
3780
|
+
delete payload.seriesKey;
|
|
3781
|
+
if (event.rowContext) {
|
|
3782
|
+
Object.assign(
|
|
3783
|
+
payload,
|
|
3784
|
+
Object.keys(event.rowContext).reduce((acc, fieldName) => {
|
|
3785
|
+
acc[`row.${fieldName}.value`] = event.rowContext[fieldName];
|
|
3786
|
+
return acc;
|
|
3787
|
+
}, {})
|
|
3788
|
+
);
|
|
3789
|
+
}
|
|
3790
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
3791
|
+
if (!hasMouseoverPayloadChanged(updatedPayload, previousMouseoverPayloadRef.current)) {
|
|
3792
|
+
return;
|
|
3793
|
+
}
|
|
3794
|
+
lastPayloadRef.current = updatedPayload;
|
|
3795
|
+
lastOriginalEventRef.current = event;
|
|
3796
|
+
previousMouseoverPayloadRef.current = __spreadValues({}, updatedPayload);
|
|
3797
|
+
if (onPointMouseOver) {
|
|
3798
|
+
onPointMouseOver({
|
|
3799
|
+
type: "point.mouseover",
|
|
3800
|
+
originalEvent: event,
|
|
3801
|
+
payload: updatedPayload
|
|
3802
|
+
});
|
|
3803
|
+
}
|
|
3804
|
+
}
|
|
3805
|
+
},
|
|
3806
|
+
[onPointMouseOver, onPointMouseOut, trellisKey, trellisSplitBy]
|
|
3807
|
+
);
|
|
3808
|
+
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}`;
|
|
3809
|
+
const memoizedChart = (0, react_exports.useMemo)(() => {
|
|
3810
|
+
const computedOnRangeZoom = onSelect ? handleChartRangeZoom : void 0;
|
|
3811
|
+
return /* @__PURE__ */ react_exports.createElement(visualization_canvas_exports.RangeSelectionProvider, { key: dataKey }, /* @__PURE__ */ react_exports.createElement(
|
|
3812
|
+
visualization_canvas_exports.TimeSeriesChart,
|
|
3362
3813
|
{
|
|
3363
3814
|
data: chartData,
|
|
3364
3815
|
width: containerWidth,
|
|
@@ -3366,49 +3817,113 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3366
3817
|
seriesColors,
|
|
3367
3818
|
seriesColorsByField,
|
|
3368
3819
|
seriesConfig: seriesOverrides,
|
|
3369
|
-
legend
|
|
3820
|
+
legend,
|
|
3821
|
+
legendLabels,
|
|
3822
|
+
isSeriesCompare: legendMode === "seriesCompare",
|
|
3823
|
+
maxSeriesFocus: legendMode === "seriesCompare" ? 0 : void 0,
|
|
3370
3824
|
scaleConfig,
|
|
3371
3825
|
timestampFormat: "expanded",
|
|
3372
|
-
onCrosshairClick:
|
|
3373
|
-
|
|
3826
|
+
onCrosshairClick: onClick ? handleChartClick : void 0,
|
|
3827
|
+
onCrosshairChange: onPointMouseOver || onPointMouseOut ? handleChartCrosshairChange : void 0,
|
|
3828
|
+
onSeriesClick: onClick ? handleChartLegendClick : void 0,
|
|
3829
|
+
onRangeSelection: handleChartRangeSelection,
|
|
3830
|
+
onRangeZoom: computedOnRangeZoom,
|
|
3831
|
+
serverSideZoom: enableSearchZoom,
|
|
3374
3832
|
userLocale,
|
|
3375
3833
|
events: chartingEventAnnotations,
|
|
3376
|
-
eventsConfig: { renderer: triangleEventAnnotationRenderer }
|
|
3834
|
+
eventsConfig: { renderer: triangleEventAnnotationRenderer },
|
|
3835
|
+
additionalTooltipValuesRef,
|
|
3836
|
+
showXMajorGridLines,
|
|
3837
|
+
showYMajorGridLines,
|
|
3838
|
+
showY2MajorGridLines,
|
|
3839
|
+
showYMinorGridLines,
|
|
3840
|
+
showY2MinorGridLines,
|
|
3841
|
+
showLineSmoothing,
|
|
3842
|
+
dataValuesDisplay,
|
|
3843
|
+
showYMajorTicks,
|
|
3844
|
+
showY2MajorTicks,
|
|
3845
|
+
yAxisMajorTickSize: yAxisMajorTickSizeNum,
|
|
3846
|
+
y2AxisMajorTickSize: y2AxisMajorTickSizeNum,
|
|
3847
|
+
yAxisMajorTickInterval: yAxisMajorTickIntervalNum,
|
|
3848
|
+
y2AxisMajorTickInterval: y2AxisMajorTickIntervalNum,
|
|
3849
|
+
showYMinorTicks,
|
|
3850
|
+
showY2MinorTicks,
|
|
3851
|
+
yAxisMinorTickSize: yAxisMinorTickSizeNum,
|
|
3852
|
+
y2AxisMinorTickSize: y2AxisMinorTickSizeNum,
|
|
3853
|
+
showYAxisWithZero,
|
|
3854
|
+
showY2AxisWithZero
|
|
3377
3855
|
}
|
|
3378
|
-
)
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3856
|
+
));
|
|
3857
|
+
}, [
|
|
3858
|
+
onSelect,
|
|
3859
|
+
handleChartRangeZoom,
|
|
3860
|
+
dataKey,
|
|
3861
|
+
chartData,
|
|
3862
|
+
containerWidth,
|
|
3863
|
+
containerHeight,
|
|
3864
|
+
seriesColors,
|
|
3865
|
+
seriesColorsByField,
|
|
3866
|
+
seriesOverrides,
|
|
3867
|
+
legend,
|
|
3868
|
+
legendLabels,
|
|
3869
|
+
scaleConfig,
|
|
3870
|
+
onClick,
|
|
3871
|
+
handleChartClick,
|
|
3872
|
+
onPointMouseOver,
|
|
3873
|
+
onPointMouseOut,
|
|
3874
|
+
handleChartCrosshairChange,
|
|
3875
|
+
handleChartLegendClick,
|
|
3876
|
+
handleChartRangeSelection,
|
|
3877
|
+
enableSearchZoom,
|
|
3878
|
+
userLocale,
|
|
3879
|
+
chartingEventAnnotations,
|
|
3880
|
+
showXMajorGridLines,
|
|
3881
|
+
showYMajorGridLines,
|
|
3882
|
+
showY2MajorGridLines,
|
|
3883
|
+
showYMinorGridLines,
|
|
3884
|
+
showY2MinorGridLines,
|
|
3885
|
+
showLineSmoothing,
|
|
3886
|
+
dataValuesDisplay,
|
|
3887
|
+
showYMajorTicks,
|
|
3888
|
+
showY2MajorTicks,
|
|
3889
|
+
yAxisMajorTickSizeNum,
|
|
3890
|
+
y2AxisMajorTickSizeNum,
|
|
3891
|
+
yAxisMajorTickIntervalNum,
|
|
3892
|
+
y2AxisMajorTickIntervalNum,
|
|
3893
|
+
showYMinorTicks,
|
|
3894
|
+
showY2MinorTicks,
|
|
3895
|
+
yAxisMinorTickSizeNum,
|
|
3896
|
+
y2AxisMinorTickSizeNum,
|
|
3897
|
+
showYAxisWithZero,
|
|
3898
|
+
showY2AxisWithZero,
|
|
3899
|
+
legendMode
|
|
3900
|
+
]);
|
|
3394
3901
|
const memoizedVisualization = (0, react_exports.useMemo)(() => {
|
|
3395
|
-
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor }, memoizedChart);
|
|
3396
|
-
}, [
|
|
3397
|
-
return /* @__PURE__ */ react_exports.createElement(
|
|
3902
|
+
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor: bgColor }, memoizedChart);
|
|
3903
|
+
}, [bgColor, memoizedChart]);
|
|
3904
|
+
return /* @__PURE__ */ react_exports.createElement(react_exports.Fragment, null, trellisEnabled && /* @__PURE__ */ react_exports.createElement(
|
|
3905
|
+
TrellisTitle,
|
|
3906
|
+
{
|
|
3907
|
+
trellisKey,
|
|
3908
|
+
backgroundColor: bgColor,
|
|
3909
|
+
fontColor: defaultFontColor
|
|
3910
|
+
}
|
|
3911
|
+
), /* @__PURE__ */ react_exports.createElement(
|
|
3398
3912
|
TimeSeriesChartContainer,
|
|
3399
3913
|
{
|
|
3400
|
-
height,
|
|
3914
|
+
height: trellisEnabled ? Number(height) - TRELLIS_TITLE_HEIGHT : height,
|
|
3401
3915
|
width,
|
|
3402
3916
|
ref: uplotContainerElement,
|
|
3403
3917
|
"data-test": "timeseries-chart-wrapper"
|
|
3404
3918
|
},
|
|
3405
3919
|
/* @__PURE__ */ react_exports.createElement(SizeAwareWrapper_default, { width, height, onResize: cachedHandleResize }),
|
|
3406
3920
|
memoizedVisualization
|
|
3407
|
-
);
|
|
3921
|
+
));
|
|
3408
3922
|
};
|
|
3409
3923
|
var TimeSeriesChartWrapper_default = TimeSeriesChartWrapper;
|
|
3410
3924
|
|
|
3411
3925
|
// src/common/withDashboardViz.tsx
|
|
3926
|
+
var SanitizedTimeSeriesChartWrapper = (0, SanitizeProps_exports.withSanitizedProps)(TimeSeriesChartWrapper_default);
|
|
3412
3927
|
var withDashboardViz = (opts) => {
|
|
3413
3928
|
const {
|
|
3414
3929
|
ReactViz,
|
|
@@ -3417,6 +3932,7 @@ var withDashboardViz = (opts) => {
|
|
|
3417
3932
|
},
|
|
3418
3933
|
computeVizPropsBeforeEval: computeVizPropsBeforeEval2 = () => {
|
|
3419
3934
|
},
|
|
3935
|
+
computeDataFrames,
|
|
3420
3936
|
disableEditModeCover,
|
|
3421
3937
|
useIconPlaceholder
|
|
3422
3938
|
} = opts;
|
|
@@ -3545,11 +4061,19 @@ var withDashboardViz = (opts) => {
|
|
|
3545
4061
|
);
|
|
3546
4062
|
setDataFramesInState(dataFrames);
|
|
3547
4063
|
}
|
|
4064
|
+
let mergedFrames = dataFrames;
|
|
4065
|
+
if (computeDataFrames && dataFrames) {
|
|
4066
|
+
const derivedFrames = computeDataFrames({
|
|
4067
|
+
dataSources: downsampledDataSources,
|
|
4068
|
+
options: optionsToEvaluate.options
|
|
4069
|
+
});
|
|
4070
|
+
mergedFrames = __spreadValues(__spreadValues({}, dataFrames), derivedFrames);
|
|
4071
|
+
}
|
|
3548
4072
|
const result = Options_exports.Options.evaluate(
|
|
3549
4073
|
optionsToEvaluate,
|
|
3550
4074
|
downsampledDataSources,
|
|
3551
4075
|
themeFunc,
|
|
3552
|
-
|
|
4076
|
+
mergedFrames,
|
|
3553
4077
|
getFeatureFlag(featureFlagContext, "visualizations_bypassCloneDeepOptionScope")
|
|
3554
4078
|
);
|
|
3555
4079
|
return result;
|
|
@@ -3637,7 +4161,7 @@ var withDashboardViz = (opts) => {
|
|
|
3637
4161
|
});
|
|
3638
4162
|
}
|
|
3639
4163
|
eventCallbackProps[eventCallbackPropName] = (ev) => {
|
|
3640
|
-
if (ev
|
|
4164
|
+
if (ev == null ? void 0 : ev.payload) {
|
|
3641
4165
|
payload = __spreadValues({}, ev.payload);
|
|
3642
4166
|
}
|
|
3643
4167
|
return onEventTrigger({
|
|
@@ -3661,10 +4185,7 @@ var withDashboardViz = (opts) => {
|
|
|
3661
4185
|
if (useAsyncEvaluatedOptions && Object.keys(evaluatedOptionsToUse).length === 0) {
|
|
3662
4186
|
return null;
|
|
3663
4187
|
}
|
|
3664
|
-
|
|
3665
|
-
if (isAcceleratedRenderOn) {
|
|
3666
|
-
SanitizedViz = (0, SanitizeProps_exports.withSanitizedProps)(TimeSeriesChartWrapper_default);
|
|
3667
|
-
}
|
|
4188
|
+
const SanitizedViz = isAcceleratedRenderOn ? SanitizedTimeSeriesChartWrapper : SanitizedReactViz;
|
|
3668
4189
|
return /* @__PURE__ */ react_exports.createElement(
|
|
3669
4190
|
SanitizedViz,
|
|
3670
4191
|
__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues({}, SplunkVisualization_default.defaults), {
|
|
@@ -3728,7 +4249,6 @@ var StaticMajorAndTrendLayout = [
|
|
|
3728
4249
|
[
|
|
3729
4250
|
{
|
|
3730
4251
|
label: (0, i18n_exports._)("Unit position"),
|
|
3731
|
-
// todo: we need a new editor combining unit and position
|
|
3732
4252
|
option: "unitPosition",
|
|
3733
4253
|
editor: "editor.select",
|
|
3734
4254
|
editorProps: {
|