@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/SingleValueIcon.js
CHANGED
|
@@ -346,7 +346,6 @@ var computeText = ({
|
|
|
346
346
|
}) => {
|
|
347
347
|
let text = (0, numberUtils_exports.isNumerial)(value) ? (0, numberUtils_exports.formatNumber)(value, numberPrecision, {
|
|
348
348
|
useThousandSeparators: shouldUseThousandSeparators,
|
|
349
|
-
// todo: need update formatNumber
|
|
350
349
|
useTrendUnits: shouldAbbreviateValue
|
|
351
350
|
}) : value;
|
|
352
351
|
text = text || "";
|
|
@@ -423,13 +422,10 @@ var getTrendFontSize = ({ width, height, trendText, spaceRatio = 1 }) => {
|
|
|
423
422
|
return trendFontSize;
|
|
424
423
|
};
|
|
425
424
|
var getUnderLabelHeight = (height) => height > DEFAULT_FONT ? DEFAULT_FONT : height;
|
|
426
|
-
var getUnderLabel = ({ underLabel, width, height }) => (
|
|
427
|
-
|
|
428
|
-
|
|
429
|
-
|
|
430
|
-
height
|
|
431
|
-
})
|
|
432
|
-
);
|
|
425
|
+
var getUnderLabel = ({ underLabel, width, height }) => computeFontSize(underLabel, {
|
|
426
|
+
width,
|
|
427
|
+
height
|
|
428
|
+
});
|
|
433
429
|
var getMajorAndTrend = ({
|
|
434
430
|
width,
|
|
435
431
|
height,
|
|
@@ -603,16 +599,19 @@ var computeSingleValueContent = ({
|
|
|
603
599
|
smallVizProps
|
|
604
600
|
};
|
|
605
601
|
};
|
|
606
|
-
var handleValueClickCallback = (ev, majorValue, majorValueField, trendValue, onValueClick,
|
|
607
|
-
|
|
608
|
-
|
|
609
|
-
|
|
610
|
-
|
|
611
|
-
|
|
612
|
-
|
|
613
|
-
|
|
614
|
-
|
|
615
|
-
|
|
602
|
+
var handleValueClickCallback = (ev, majorValue, majorValueField, trendValue, onValueClick, trellisContext = {}) => {
|
|
603
|
+
const { trellisEnabled = false, trellisSplitBy = "", trellisKey = "" } = trellisContext;
|
|
604
|
+
return onValueClick(__spreadProps(__spreadValues({}, ev), {
|
|
605
|
+
payload: __spreadValues({
|
|
606
|
+
trendValue,
|
|
607
|
+
value: majorValue,
|
|
608
|
+
name: majorValueField
|
|
609
|
+
}, trellisEnabled && {
|
|
610
|
+
"trellis.name": trellisSplitBy,
|
|
611
|
+
"trellis.value": trellisKey
|
|
612
|
+
})
|
|
613
|
+
}));
|
|
614
|
+
};
|
|
616
615
|
var getTrendColorWithPercent = (options) => {
|
|
617
616
|
const shouldUsePercentTrendColor = options.trendColor === "> trendValue | rangeValue(trendColorEditorConfig)" && options.trendDisplay === "percent";
|
|
618
617
|
return shouldUsePercentTrendColor ? {
|
|
@@ -723,6 +722,12 @@ var Text2 = styled_components_default.div`
|
|
|
723
722
|
}`;
|
|
724
723
|
}}
|
|
725
724
|
`;
|
|
725
|
+
var Button = styled_components_default(Text2).attrs({ as: "button", type: "button" })`
|
|
726
|
+
border: 0;
|
|
727
|
+
background: transparent;
|
|
728
|
+
padding: 0;
|
|
729
|
+
-webkit-appearance: none;
|
|
730
|
+
`;
|
|
726
731
|
var validUnitPositions = ["before", "after"];
|
|
727
732
|
var MajorValue = ({ color, fontSize, unitPosition, title, value, onValueClick, unit }) => {
|
|
728
733
|
let sanitizedUnit;
|
|
@@ -735,28 +740,31 @@ var MajorValue = ({ color, fontSize, unitPosition, title, value, onValueClick, u
|
|
|
735
740
|
sanitizedUnitPosition = "after";
|
|
736
741
|
}
|
|
737
742
|
}
|
|
738
|
-
|
|
739
|
-
|
|
740
|
-
|
|
741
|
-
|
|
742
|
-
|
|
743
|
-
|
|
744
|
-
|
|
745
|
-
|
|
743
|
+
return /* @__PURE__ */ react_default.createElement(Row, { size: fontSize }, typeof onValueClick === "function" ? /* @__PURE__ */ react_default.createElement(
|
|
744
|
+
Button,
|
|
745
|
+
{
|
|
746
|
+
"data-test": "majorValue",
|
|
747
|
+
color,
|
|
748
|
+
size: fontSize,
|
|
749
|
+
title,
|
|
750
|
+
pseudoContent: sanitizedUnit,
|
|
751
|
+
pseudoContentPosition: sanitizedUnitPosition,
|
|
752
|
+
pseudoContentFontSize: fontSize * 0.6,
|
|
753
|
+
showUnderline: true,
|
|
754
|
+
onClick: onValueClick
|
|
755
|
+
},
|
|
756
|
+
value
|
|
757
|
+
) : /* @__PURE__ */ react_default.createElement(
|
|
746
758
|
Text2,
|
|
747
759
|
{
|
|
748
760
|
"data-test": "majorValue",
|
|
749
761
|
color,
|
|
750
|
-
onClick: (e) => typeof onValueClick === "function" && onValueClick(e),
|
|
751
|
-
showUnderline: !!onValueClick,
|
|
752
762
|
size: fontSize,
|
|
753
763
|
title,
|
|
754
764
|
pseudoContent: sanitizedUnit,
|
|
755
765
|
pseudoContentPosition: sanitizedUnitPosition,
|
|
756
766
|
pseudoContentFontSize: fontSize * 0.6,
|
|
757
|
-
|
|
758
|
-
role: "button",
|
|
759
|
-
onKeyDown: handleKeyDown
|
|
767
|
+
showUnderline: false
|
|
760
768
|
},
|
|
761
769
|
value
|
|
762
770
|
));
|
|
@@ -1187,16 +1195,11 @@ var SingleValueIcon = (_a) => {
|
|
|
1187
1195
|
});
|
|
1188
1196
|
const trellisEnabled = useTrellisEnabled(splitByLayout);
|
|
1189
1197
|
const handleValueClick = (0, react_exports.useCallback)(
|
|
1190
|
-
(ev) => handleValueClickCallback(
|
|
1191
|
-
ev,
|
|
1192
|
-
majorValue,
|
|
1193
|
-
majorValueField,
|
|
1194
|
-
trendValue,
|
|
1195
|
-
onValueClick,
|
|
1198
|
+
(ev) => handleValueClickCallback(ev, majorValue, majorValueField, trendValue, onValueClick, {
|
|
1196
1199
|
trellisEnabled,
|
|
1197
1200
|
trellisSplitBy,
|
|
1198
1201
|
trellisKey
|
|
1199
|
-
),
|
|
1202
|
+
}),
|
|
1200
1203
|
[onValueClick, majorValue, majorValueField, trendValue, trellisEnabled, trellisSplitBy, trellisKey]
|
|
1201
1204
|
);
|
|
1202
1205
|
const renderVisualization = () => {
|
|
@@ -1759,7 +1762,7 @@ var Cover = styled_components_default.div`
|
|
|
1759
1762
|
bottom: 0;
|
|
1760
1763
|
`;
|
|
1761
1764
|
var Blocker = styled_components_default.div.attrs({
|
|
1762
|
-
"data-splunk-visualization-version": "28.
|
|
1765
|
+
"data-splunk-visualization-version": "28.4.0 - 002bd482f"
|
|
1763
1766
|
})`
|
|
1764
1767
|
position: relative;
|
|
1765
1768
|
width: 100%;
|
|
@@ -1849,7 +1852,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
1849
1852
|
FixSizeItem,
|
|
1850
1853
|
{
|
|
1851
1854
|
"data-test": "fix-size-item",
|
|
1852
|
-
"data-splunk-visualization-version": "28.
|
|
1855
|
+
"data-splunk-visualization-version": "28.4.0 - 002bd482f",
|
|
1853
1856
|
width,
|
|
1854
1857
|
height,
|
|
1855
1858
|
backgroundColor
|
|
@@ -1936,6 +1939,7 @@ var withPlaceholder = (Visualization, useIconPlaceholder = shouldShowIconPlaceho
|
|
|
1936
1939
|
var withPlaceholder_default = withPlaceholder;
|
|
1937
1940
|
|
|
1938
1941
|
// src/common/utils/dataUtils.ts
|
|
1942
|
+
var getFieldName = (field) => typeof field === "string" ? field : field.name;
|
|
1939
1943
|
var largestTriangleThreeBuckets = (data, threshold, preferredDownsampleIndices) => {
|
|
1940
1944
|
const dataLength = data.length;
|
|
1941
1945
|
const downsampledIndices = [];
|
|
@@ -2052,9 +2056,9 @@ var tryToCoerceAllDisplayedFields = (ds, xField, yFields, fieldTypes, options) =
|
|
|
2052
2056
|
let xColumn = [];
|
|
2053
2057
|
const yColumns = [];
|
|
2054
2058
|
const canDownsample = !ds.data.fields.some((field, index) => {
|
|
2055
|
-
var _a
|
|
2056
|
-
const fieldName = (
|
|
2057
|
-
const fieldType = (
|
|
2059
|
+
var _a;
|
|
2060
|
+
const fieldName = getFieldName(field);
|
|
2061
|
+
const fieldType = (_a = fieldTypes[index]) != null ? _a : "unknown";
|
|
2058
2062
|
const column = ds.data.columns[index];
|
|
2059
2063
|
let hasDisplayedColumnThatCantBeDownsampled = false;
|
|
2060
2064
|
if (fieldName === xField) {
|
|
@@ -2341,7 +2345,7 @@ var trellisUtils_default = "default" in defaultImport39 ? defaultImport39.defaul
|
|
|
2341
2345
|
var AGGREGATIONS = "aggregations";
|
|
2342
2346
|
var dataSourcesSplitByAggregationsUnknown = (dataSource) => {
|
|
2343
2347
|
var _a, _b, _c, _d;
|
|
2344
|
-
const fields = (_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields;
|
|
2348
|
+
const fields = toFieldEntries((_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields);
|
|
2345
2349
|
const columns = (_d = (_c = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _c.data) == null ? void 0 : _d.columns;
|
|
2346
2350
|
let splitDataSources = null;
|
|
2347
2351
|
let errorCode = null;
|
|
@@ -2362,7 +2366,7 @@ var dataSourcesSplitByAggregationsUnknown = (dataSource) => {
|
|
|
2362
2366
|
}
|
|
2363
2367
|
return { splitDataSources, errorCode };
|
|
2364
2368
|
};
|
|
2365
|
-
var toFieldEntries = (fields) => {
|
|
2369
|
+
var toFieldEntries = (fields = []) => {
|
|
2366
2370
|
return fields.map((field) => {
|
|
2367
2371
|
if (typeof field === "string") {
|
|
2368
2372
|
return { name: field };
|
|
@@ -2377,7 +2381,7 @@ var dataSourcesSplitByAggregationsTimechartAndChart = (dataSource) => {
|
|
|
2377
2381
|
let splitDataSources = null;
|
|
2378
2382
|
let splitByFields = [];
|
|
2379
2383
|
let errorCode = null;
|
|
2380
|
-
if (
|
|
2384
|
+
if (fields.length > 0) {
|
|
2381
2385
|
splitByFields = (0, trellisUtils_exports.extractDataSourceAggregationKeysChart)(fields);
|
|
2382
2386
|
}
|
|
2383
2387
|
if (splitByFields && splitByFields.length > 0) {
|
|
@@ -2415,12 +2419,12 @@ var dataSourcesSplitByAggregationsTimechartAndChart = (dataSource) => {
|
|
|
2415
2419
|
};
|
|
2416
2420
|
var dataSourcesSplitByAggregationsStats = (dataSource) => {
|
|
2417
2421
|
var _a, _b, _c, _d;
|
|
2418
|
-
const fields = (_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields;
|
|
2422
|
+
const fields = toFieldEntries((_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields);
|
|
2419
2423
|
const columns = (_d = (_c = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _c.data) == null ? void 0 : _d.columns;
|
|
2420
2424
|
let splitDataSources = null;
|
|
2421
2425
|
let splitByFields = [];
|
|
2422
2426
|
let errorCode = null;
|
|
2423
|
-
if (
|
|
2427
|
+
if (fields.length > 0) {
|
|
2424
2428
|
splitByFields = (0, trellisUtils_exports.extractDataSourceAggregationKeysStats)(fields);
|
|
2425
2429
|
}
|
|
2426
2430
|
if (splitByFields && splitByFields.length > 0) {
|
|
@@ -2444,12 +2448,12 @@ var dataSourcesSplitByAggregationsStats = (dataSource) => {
|
|
|
2444
2448
|
};
|
|
2445
2449
|
var dataSourcesSplitByModeTimechart = (dataSource, splitBy) => {
|
|
2446
2450
|
var _a, _b, _c, _d, _e;
|
|
2447
|
-
const fields = (_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields;
|
|
2451
|
+
const fields = toFieldEntries((_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields);
|
|
2448
2452
|
const columns = (_d = (_c = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _c.data) == null ? void 0 : _d.columns;
|
|
2449
2453
|
let splitDataSources = null;
|
|
2450
2454
|
let splitByFields = [];
|
|
2451
2455
|
let errorCode = null;
|
|
2452
|
-
if (
|
|
2456
|
+
if (fields.length > 0) {
|
|
2453
2457
|
splitByFields = (0, trellisUtils_exports.extractSplitByFieldsChartFields)(fields);
|
|
2454
2458
|
}
|
|
2455
2459
|
if (splitByFields && splitByFields.indexOf(splitBy) > -1) {
|
|
@@ -2487,12 +2491,12 @@ var dataSourcesSplitByModeTimechart = (dataSource, splitBy) => {
|
|
|
2487
2491
|
};
|
|
2488
2492
|
var dataSourcesSplitByModeChart = (dataSource, splitBy) => {
|
|
2489
2493
|
var _a, _b, _c, _d;
|
|
2490
|
-
const fields = (_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields;
|
|
2494
|
+
const fields = toFieldEntries((_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields);
|
|
2491
2495
|
const columns = (_d = (_c = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _c.data) == null ? void 0 : _d.columns;
|
|
2492
2496
|
let splitDataSources = null;
|
|
2493
2497
|
let splitByFields = [];
|
|
2494
2498
|
let errorCode = null;
|
|
2495
|
-
if (
|
|
2499
|
+
if (fields.length > 0) {
|
|
2496
2500
|
splitByFields = (0, trellisUtils_exports.extractSplitByFieldsChartFields)(fields);
|
|
2497
2501
|
}
|
|
2498
2502
|
if (splitByFields && splitByFields.indexOf(splitBy) > -1) {
|
|
@@ -2580,17 +2584,15 @@ var dataSourcesSplitByModeChart = (dataSource, splitBy) => {
|
|
|
2580
2584
|
};
|
|
2581
2585
|
var dataSourcesSplitByModeStatsorUnknown = (dataSource, splitBy, splitMode) => {
|
|
2582
2586
|
var _a, _b, _c, _d, _e, _f;
|
|
2583
|
-
const fields = (_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields;
|
|
2587
|
+
const fields = toFieldEntries((_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields);
|
|
2584
2588
|
const columns = (_d = (_c = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _c.data) == null ? void 0 : _d.columns;
|
|
2585
2589
|
let splitDataSources = null;
|
|
2586
2590
|
let splitByFields = [];
|
|
2587
2591
|
let errorCode = null;
|
|
2588
|
-
if (
|
|
2592
|
+
if (fields.length > 0) {
|
|
2589
2593
|
splitByFields = splitMode !== trellisUtils_exports.UNKNOWN ? (0, trellisUtils_exports.extractSplitByFieldsForStats)(fields) : (0, trellisUtils_exports.extractSplitByFieldsForUnknown)(fields);
|
|
2590
2594
|
}
|
|
2591
|
-
const splitByIndex = fields
|
|
2592
|
-
(field) => field === splitBy || field.name === splitBy
|
|
2593
|
-
);
|
|
2595
|
+
const splitByIndex = fields.findIndex((field) => field.name === splitBy);
|
|
2594
2596
|
if (splitByFields && splitByFields.indexOf(splitBy) > -1) {
|
|
2595
2597
|
const splitByColumn = (_f = (_e = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _e.data) == null ? void 0 : _f.columns[splitByIndex];
|
|
2596
2598
|
splitDataSources = {};
|
|
@@ -2712,14 +2714,29 @@ var getAnnotationsForCanvas = ({
|
|
|
2712
2714
|
var StyledTriangle = styled_components_default(Triangle_default)`
|
|
2713
2715
|
color: ${(props) => props.eventColor || variables_default.severityColorNotice(props)};
|
|
2714
2716
|
`;
|
|
2715
|
-
var triangleEventAnnotationRenderer = ({
|
|
2717
|
+
var triangleEventAnnotationRenderer = ({
|
|
2718
|
+
event,
|
|
2719
|
+
dimensions
|
|
2720
|
+
}) => {
|
|
2716
2721
|
const eventWithColor = event;
|
|
2717
2722
|
return react_default.createElement(StyledTriangle, {
|
|
2723
|
+
width: `${dimensions.width}px`,
|
|
2724
|
+
height: `${dimensions.height}px`,
|
|
2718
2725
|
viewBox: "0 0 24 24",
|
|
2719
2726
|
variant: "filled",
|
|
2720
2727
|
eventColor: eventWithColor.color
|
|
2721
2728
|
});
|
|
2722
2729
|
};
|
|
2730
|
+
var shouldEnableSearchZoom = (eventHandlers = [], xField = "") => {
|
|
2731
|
+
const rangeSelectEventHandler = eventHandlers.find(
|
|
2732
|
+
(eventHandler) => {
|
|
2733
|
+
var _a;
|
|
2734
|
+
return (_a = eventHandler.options.events) == null ? void 0 : _a.includes("range.select");
|
|
2735
|
+
}
|
|
2736
|
+
);
|
|
2737
|
+
const xAxisIsTime = xField === "_time";
|
|
2738
|
+
return !!rangeSelectEventHandler && xAxisIsTime;
|
|
2739
|
+
};
|
|
2723
2740
|
var canvasSupportedTimeSeriesCharts = ["splunk.line"];
|
|
2724
2741
|
var isTimeSeriesCanvasRenderSupported = (vizConfigKey) => {
|
|
2725
2742
|
return canvasSupportedTimeSeriesCharts.indexOf(vizConfigKey) > -1;
|
|
@@ -2740,16 +2757,31 @@ var filterChartDataFromInternalFields = (chartData) => {
|
|
|
2740
2757
|
var convert2DArrayToNumbers = (arr) => {
|
|
2741
2758
|
return arr.map((subArray) => subArray.map((element) => parseFloat(element)));
|
|
2742
2759
|
};
|
|
2760
|
+
var parseAxisValue = (val) => {
|
|
2761
|
+
if (val === void 0 || val === null || val === "auto" || val === "") {
|
|
2762
|
+
return void 0;
|
|
2763
|
+
}
|
|
2764
|
+
const num = typeof val === "number" ? val : Number.parseFloat(val);
|
|
2765
|
+
return Number.isNaN(num) ? void 0 : num;
|
|
2766
|
+
};
|
|
2743
2767
|
var SideLegendWidth = 75;
|
|
2744
|
-
var
|
|
2768
|
+
var SeriesCompareLegendWidth = 200;
|
|
2745
2769
|
var getLegend = (props) => {
|
|
2746
2770
|
const legendPlacement = props == null ? void 0 : props.legendDisplay;
|
|
2771
|
+
const { isSeriesCompare } = props;
|
|
2772
|
+
const commonLegendProps = {
|
|
2773
|
+
center: true,
|
|
2774
|
+
fontSize: 12,
|
|
2775
|
+
largerTiles: true,
|
|
2776
|
+
hideSeriesValue: !isSeriesCompare
|
|
2777
|
+
// Show values if in seriesCompare mode
|
|
2778
|
+
};
|
|
2747
2779
|
switch (legendPlacement) {
|
|
2748
2780
|
case "off":
|
|
2749
2781
|
return false;
|
|
2750
2782
|
case "left":
|
|
2751
2783
|
return (0, visualization_canvas_exports.LeftLegendFactory)(__spreadValues({
|
|
2752
|
-
width: SideLegendWidth
|
|
2784
|
+
width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
|
|
2753
2785
|
}, commonLegendProps));
|
|
2754
2786
|
case "bottom":
|
|
2755
2787
|
return (0, visualization_canvas_exports.BottomLegendFactory)(__spreadValues({
|
|
@@ -2761,7 +2793,7 @@ var getLegend = (props) => {
|
|
|
2761
2793
|
}, commonLegendProps));
|
|
2762
2794
|
default:
|
|
2763
2795
|
return (0, visualization_canvas_exports.SideLegendFactory)(__spreadValues({
|
|
2764
|
-
width: SideLegendWidth
|
|
2796
|
+
width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
|
|
2765
2797
|
}, commonLegendProps));
|
|
2766
2798
|
}
|
|
2767
2799
|
};
|
|
@@ -2797,19 +2829,25 @@ var ellipsisAxisTitle = (axisTitle, containerSpacing, fontSize = 12) => {
|
|
|
2797
2829
|
const end = axisTitle.slice(-halfChars);
|
|
2798
2830
|
return `${start}...${end}`;
|
|
2799
2831
|
};
|
|
2800
|
-
var
|
|
2832
|
+
var getFieldName2 = (field) => {
|
|
2801
2833
|
const fieldName = typeof field === "object" ? field == null ? void 0 : field.name : field;
|
|
2802
2834
|
return fieldName;
|
|
2803
2835
|
};
|
|
2804
2836
|
var getFieldNames = (fields) => {
|
|
2805
|
-
return fields.map((field) =>
|
|
2837
|
+
return fields.map((field) => getFieldName2(field));
|
|
2806
2838
|
};
|
|
2807
|
-
var getXScaleConfig = (label) => {
|
|
2839
|
+
var getXScaleConfig = (label, xAxisLabelVisibility, xAxisLabelRotation) => {
|
|
2808
2840
|
const xConfig = { x: {} };
|
|
2809
2841
|
xConfig.x.label = label;
|
|
2842
|
+
if (xAxisLabelVisibility === "hide") {
|
|
2843
|
+
xConfig.x.hideLabels = true;
|
|
2844
|
+
}
|
|
2845
|
+
if (xAxisLabelRotation !== void 0) {
|
|
2846
|
+
xConfig.x.labelRotation = xAxisLabelRotation;
|
|
2847
|
+
}
|
|
2810
2848
|
return xConfig;
|
|
2811
2849
|
};
|
|
2812
|
-
var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale) => {
|
|
2850
|
+
var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale, yAxisLabelVisibility, yAxisMin, yAxisMax) => {
|
|
2813
2851
|
const scaleType = yAxisScale != null ? yAxisScale : "linear";
|
|
2814
2852
|
const yConfig = { y: {} };
|
|
2815
2853
|
yConfig.y.label = label;
|
|
@@ -2822,23 +2860,42 @@ var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale) => {
|
|
|
2822
2860
|
} else {
|
|
2823
2861
|
yConfig.y.width = label && label.length > 0 ? 30 : 10;
|
|
2824
2862
|
}
|
|
2863
|
+
if (yAxisLabelVisibility === "hide") {
|
|
2864
|
+
yConfig.y.hideLabels = true;
|
|
2865
|
+
}
|
|
2866
|
+
if (yAxisMin !== void 0 || yAxisMax !== void 0) {
|
|
2867
|
+
yConfig.y.range = (u, dataMin, dataMax) => {
|
|
2868
|
+
const min = yAxisMin != null ? yAxisMin : dataMin;
|
|
2869
|
+
const max = yAxisMax != null ? yAxisMax : dataMax;
|
|
2870
|
+
return [min, max];
|
|
2871
|
+
};
|
|
2872
|
+
}
|
|
2825
2873
|
return yConfig;
|
|
2826
2874
|
};
|
|
2827
|
-
var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInteger) => {
|
|
2875
|
+
var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInteger, y2AxisLabelVisibility, y2AxisMin, y2AxisMax) => {
|
|
2828
2876
|
const y2Config = { y2: {} };
|
|
2829
2877
|
const scaleType = axisScale != null ? axisScale : "linear";
|
|
2830
2878
|
y2Config.y2.label = label;
|
|
2831
2879
|
y2Config.y2.side = "right";
|
|
2832
|
-
y2Config.y2.showGrid = false;
|
|
2833
2880
|
y2Config.y2.type = scaleType;
|
|
2834
2881
|
if (axisAbbreviation !== "none") {
|
|
2835
2882
|
y2Config.y2.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1, roundAxisLabelsToInteger);
|
|
2836
2883
|
} else if (roundAxisLabelsToInteger) {
|
|
2837
2884
|
y2Config.y2.tickFmt = (v) => roundAxisLabelsToInteger ? Math.round(v).toString() : v.toString();
|
|
2838
2885
|
}
|
|
2886
|
+
if (y2AxisLabelVisibility === "hide") {
|
|
2887
|
+
y2Config.y2.hideLabels = true;
|
|
2888
|
+
}
|
|
2889
|
+
if (y2AxisMin !== void 0 || y2AxisMax !== void 0) {
|
|
2890
|
+
y2Config.y2.range = (u, dataMin, dataMax) => {
|
|
2891
|
+
const min = y2AxisMin != null ? y2AxisMin : dataMin;
|
|
2892
|
+
const max = y2AxisMax != null ? y2AxisMax : dataMax;
|
|
2893
|
+
return [min, max];
|
|
2894
|
+
};
|
|
2895
|
+
}
|
|
2839
2896
|
return y2Config;
|
|
2840
2897
|
};
|
|
2841
|
-
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode) => {
|
|
2898
|
+
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode, markerDisplay, lineDashStyle, lineDashStylesByField) => {
|
|
2842
2899
|
const seriesConfig = {};
|
|
2843
2900
|
let spanGaps;
|
|
2844
2901
|
let replaceNullsWithZero;
|
|
@@ -2870,12 +2927,48 @@ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled
|
|
|
2870
2927
|
if (overlayFields == null ? void 0 : overlayFields.includes(field)) {
|
|
2871
2928
|
seriesConfig[field].type = "line";
|
|
2872
2929
|
}
|
|
2930
|
+
if (markerDisplay !== void 0) {
|
|
2931
|
+
seriesConfig[field].markerDisplay = markerDisplay;
|
|
2932
|
+
}
|
|
2933
|
+
const fieldDashStyle = (lineDashStylesByField == null ? void 0 : lineDashStylesByField[field]) || lineDashStyle;
|
|
2934
|
+
if (fieldDashStyle) {
|
|
2935
|
+
seriesConfig[field].lineDashStyle = fieldDashStyle;
|
|
2936
|
+
}
|
|
2873
2937
|
if (replaceNullsWithZero !== void 0) {
|
|
2874
2938
|
seriesConfig[field].replaceNullsWithZero = replaceNullsWithZero;
|
|
2875
2939
|
}
|
|
2876
2940
|
});
|
|
2877
2941
|
return seriesConfig;
|
|
2878
2942
|
};
|
|
2943
|
+
var findRangeIndices = (xData, startValue, endValue) => {
|
|
2944
|
+
let startXIndex = -1;
|
|
2945
|
+
let endXIndex = -1;
|
|
2946
|
+
const xDataEpoch = xData.map((val) => {
|
|
2947
|
+
if (typeof val === "string") {
|
|
2948
|
+
return new Date(val).getTime() / 1e3;
|
|
2949
|
+
}
|
|
2950
|
+
return val;
|
|
2951
|
+
});
|
|
2952
|
+
for (let i = 0; i < xDataEpoch.length; i += 1) {
|
|
2953
|
+
if (xDataEpoch[i] >= startValue) {
|
|
2954
|
+
startXIndex = i;
|
|
2955
|
+
break;
|
|
2956
|
+
}
|
|
2957
|
+
}
|
|
2958
|
+
if (startXIndex === -1 && xDataEpoch.length > 0) {
|
|
2959
|
+
startXIndex = xDataEpoch.length - 1;
|
|
2960
|
+
}
|
|
2961
|
+
for (let i = xDataEpoch.length - 1; i >= 0; i -= 1) {
|
|
2962
|
+
if (xDataEpoch[i] <= endValue) {
|
|
2963
|
+
endXIndex = i;
|
|
2964
|
+
break;
|
|
2965
|
+
}
|
|
2966
|
+
}
|
|
2967
|
+
if (endXIndex === -1 && xDataEpoch.length > 0) {
|
|
2968
|
+
endXIndex = 0;
|
|
2969
|
+
}
|
|
2970
|
+
return { startXIndex, endXIndex };
|
|
2971
|
+
};
|
|
2879
2972
|
|
|
2880
2973
|
// src/common/TimeSeriesChartWrapper.tsx
|
|
2881
2974
|
var TimeSeriesChartContainer = styled_components_default.div`
|
|
@@ -2886,45 +2979,190 @@ var TimeSeriesChartContainer = styled_components_default.div`
|
|
|
2886
2979
|
position: absolute !important; // This is needed for canvas element export pdf/png to work correctly
|
|
2887
2980
|
}
|
|
2888
2981
|
`;
|
|
2889
|
-
var
|
|
2982
|
+
var appendTrellisToPayload = (payload, trellisKey, trellisSplitBy) => {
|
|
2983
|
+
const result = __spreadValues({}, payload);
|
|
2984
|
+
if (trellisSplitBy) {
|
|
2985
|
+
result["trellis.name"] = trellisSplitBy;
|
|
2986
|
+
}
|
|
2987
|
+
if (trellisKey) {
|
|
2988
|
+
result["trellis.value"] = trellisKey;
|
|
2989
|
+
}
|
|
2990
|
+
return result;
|
|
2991
|
+
};
|
|
2992
|
+
var hasMouseoverPayloadChanged = (currentPayload, previousPayload) => {
|
|
2993
|
+
if (!previousPayload) {
|
|
2994
|
+
return true;
|
|
2995
|
+
}
|
|
2996
|
+
if (currentPayload.index !== previousPayload.index) {
|
|
2997
|
+
return true;
|
|
2998
|
+
}
|
|
2999
|
+
if (currentPayload.seriesIndex !== previousPayload.seriesIndex) {
|
|
3000
|
+
return true;
|
|
3001
|
+
}
|
|
3002
|
+
if (currentPayload["trellis.name"] !== previousPayload["trellis.name"]) {
|
|
3003
|
+
return true;
|
|
3004
|
+
}
|
|
3005
|
+
if (currentPayload["trellis.value"] !== previousPayload["trellis.value"]) {
|
|
3006
|
+
return true;
|
|
3007
|
+
}
|
|
3008
|
+
return false;
|
|
3009
|
+
};
|
|
3010
|
+
var handleClick = (chartEvent, onClick, trellisKey, trellisSplitBy) => {
|
|
2890
3011
|
const payload = __spreadProps(__spreadValues({}, (0, lodash_exports.pick)(chartEvent, "value", "seriesKey")), {
|
|
2891
3012
|
name: chartEvent.seriesKey
|
|
2892
3013
|
});
|
|
2893
3014
|
delete payload.seriesKey;
|
|
2894
|
-
|
|
2895
|
-
|
|
2896
|
-
|
|
3015
|
+
if (chartEvent.rowContext) {
|
|
3016
|
+
Object.assign(
|
|
3017
|
+
payload,
|
|
3018
|
+
Object.keys(chartEvent.rowContext).reduce((acc, fieldName) => {
|
|
3019
|
+
acc[`row.${fieldName}.value`] = chartEvent.rowContext[fieldName];
|
|
3020
|
+
return acc;
|
|
3021
|
+
}, {})
|
|
3022
|
+
);
|
|
3023
|
+
}
|
|
3024
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
3025
|
+
if (onClick) {
|
|
3026
|
+
onClick({
|
|
2897
3027
|
type: "point.click",
|
|
2898
3028
|
originalEvent: chartEvent,
|
|
2899
|
-
payload
|
|
3029
|
+
payload: updatedPayload
|
|
2900
3030
|
});
|
|
2901
3031
|
}
|
|
2902
3032
|
};
|
|
2903
|
-
var handleLegendClick = (chartEvent,
|
|
3033
|
+
var handleLegendClick = (chartEvent, onClick, trellisKey, trellisSplitBy) => {
|
|
2904
3034
|
const payload = {
|
|
2905
3035
|
name: chartEvent
|
|
2906
3036
|
};
|
|
2907
|
-
const
|
|
2908
|
-
if (
|
|
2909
|
-
|
|
3037
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
3038
|
+
if (onClick) {
|
|
3039
|
+
onClick({
|
|
2910
3040
|
type: "legend.click",
|
|
2911
3041
|
originalEvent: chartEvent,
|
|
2912
|
-
payload
|
|
3042
|
+
payload: updatedPayload
|
|
3043
|
+
});
|
|
3044
|
+
}
|
|
3045
|
+
};
|
|
3046
|
+
var handleRangeSelection = (rangeEvent, onSelect, chartData, trellisKey, trellisSplitBy) => {
|
|
3047
|
+
var _a;
|
|
3048
|
+
if (!rangeEvent) {
|
|
3049
|
+
return;
|
|
3050
|
+
}
|
|
3051
|
+
const xData = ((_a = chartData == null ? void 0 : chartData.columns) == null ? void 0 : _a[0]) || [];
|
|
3052
|
+
const { startXIndex, endXIndex } = findRangeIndices(xData, rangeEvent.start, rangeEvent.end);
|
|
3053
|
+
const payload = {
|
|
3054
|
+
startXIndex,
|
|
3055
|
+
startXValue: rangeEvent.start,
|
|
3056
|
+
endXIndex,
|
|
3057
|
+
endXValue: rangeEvent.end
|
|
3058
|
+
};
|
|
3059
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
3060
|
+
if (onSelect) {
|
|
3061
|
+
onSelect({
|
|
3062
|
+
type: "range.selectBeforeZoom",
|
|
3063
|
+
originalEvent: rangeEvent,
|
|
3064
|
+
payload: updatedPayload
|
|
3065
|
+
});
|
|
3066
|
+
}
|
|
3067
|
+
};
|
|
3068
|
+
var handleRangeZoom = (rangeEvent, onSelect, chartData, trellisKey, trellisSplitBy) => {
|
|
3069
|
+
var _a;
|
|
3070
|
+
const xData = ((_a = chartData == null ? void 0 : chartData.columns) == null ? void 0 : _a[0]) || [];
|
|
3071
|
+
const { startXIndex, endXIndex } = findRangeIndices(xData, rangeEvent.start, rangeEvent.end);
|
|
3072
|
+
const payload = {
|
|
3073
|
+
startXIndex,
|
|
3074
|
+
startXValue: rangeEvent.start,
|
|
3075
|
+
endXIndex,
|
|
3076
|
+
endXValue: rangeEvent.end
|
|
3077
|
+
};
|
|
3078
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
3079
|
+
if (onSelect) {
|
|
3080
|
+
onSelect({
|
|
3081
|
+
type: "range.select",
|
|
3082
|
+
originalEvent: rangeEvent,
|
|
3083
|
+
payload: updatedPayload
|
|
2913
3084
|
});
|
|
2914
3085
|
}
|
|
2915
3086
|
};
|
|
3087
|
+
var parseArrayOption = (value) => {
|
|
3088
|
+
if (Array.isArray(value)) {
|
|
3089
|
+
return value;
|
|
3090
|
+
}
|
|
3091
|
+
if (value) {
|
|
3092
|
+
return JSON.parse(value);
|
|
3093
|
+
}
|
|
3094
|
+
return void 0;
|
|
3095
|
+
};
|
|
2916
3096
|
var TimeSeriesChartWrapper = (props) => {
|
|
2917
|
-
|
|
2918
|
-
const {
|
|
3097
|
+
var _b, _c, _d;
|
|
3098
|
+
const _a = props, {
|
|
3099
|
+
width,
|
|
3100
|
+
height,
|
|
3101
|
+
chartData,
|
|
3102
|
+
options,
|
|
3103
|
+
userLocale,
|
|
3104
|
+
annotationX,
|
|
3105
|
+
annotationLabel,
|
|
3106
|
+
annotationColor,
|
|
3107
|
+
legendDisplay,
|
|
3108
|
+
markerDisplay,
|
|
3109
|
+
onClick,
|
|
3110
|
+
onPointMouseOver,
|
|
3111
|
+
onPointMouseOut,
|
|
3112
|
+
onSelect,
|
|
3113
|
+
splitByLayout,
|
|
3114
|
+
trellisKey,
|
|
3115
|
+
trellisSplitBy,
|
|
2919
3116
|
backgroundColor,
|
|
3117
|
+
defaultFontColor,
|
|
3118
|
+
additionalTooltipValues,
|
|
3119
|
+
showYAxisWithZero: showYAxisWithZeroFromProps,
|
|
3120
|
+
showY2AxisWithZero: showY2AxisWithZeroFromProps
|
|
3121
|
+
} = _a, otherOptions = __objRest(_a, [
|
|
3122
|
+
"width",
|
|
3123
|
+
"height",
|
|
3124
|
+
"chartData",
|
|
3125
|
+
"options",
|
|
3126
|
+
"userLocale",
|
|
3127
|
+
"annotationX",
|
|
3128
|
+
"annotationLabel",
|
|
3129
|
+
"annotationColor",
|
|
3130
|
+
"legendDisplay",
|
|
3131
|
+
"markerDisplay",
|
|
3132
|
+
"onClick",
|
|
3133
|
+
"onPointMouseOver",
|
|
3134
|
+
"onPointMouseOut",
|
|
3135
|
+
"onSelect",
|
|
3136
|
+
"splitByLayout",
|
|
3137
|
+
"trellisKey",
|
|
3138
|
+
"trellisSplitBy",
|
|
3139
|
+
"backgroundColor",
|
|
3140
|
+
"defaultFontColor",
|
|
3141
|
+
"additionalTooltipValues",
|
|
3142
|
+
// Extract showYAxisWithZero directly from props for accelerated render mode
|
|
3143
|
+
"showYAxisWithZero",
|
|
3144
|
+
"showY2AxisWithZero"
|
|
3145
|
+
]);
|
|
3146
|
+
const { eventHandlers, xField: xFieldFromProps } = otherOptions;
|
|
3147
|
+
const trellisEnabled = useTrellisEnabled(splitByLayout);
|
|
3148
|
+
const {
|
|
3149
|
+
backgroundColor: bgColorFromOptions,
|
|
2920
3150
|
seriesColors: seriesColorsStr,
|
|
2921
3151
|
fieldColors,
|
|
3152
|
+
legendLabels: legendLabelsStr,
|
|
3153
|
+
legendMode,
|
|
2922
3154
|
"axisTitleX.text": xAxisTitleText,
|
|
2923
3155
|
"axisTitleY.text": yAxisTitleText,
|
|
2924
3156
|
"axisTitleY2.text": y2AxisTitleText,
|
|
2925
3157
|
"axisTitleX.visibility": xAxisTitleVisibility,
|
|
2926
3158
|
"axisTitleY.visibility": yAxisTitleVisibility,
|
|
2927
3159
|
"axisTitleY2.visibility": y2AxisTitleVisibility,
|
|
3160
|
+
"axisLabelsX.majorLabelVisibility": xAxisLabelVisibility,
|
|
3161
|
+
"axisLabelsX.majorLabelStyle.rotation": xAxisLabelRotation,
|
|
3162
|
+
"axisLabelsY.majorLabelVisibility": yAxisLabelVisibility,
|
|
3163
|
+
"axisLabelsY.majorUnit": yAxisMajorUnitFromSimpleXML,
|
|
3164
|
+
"axisLabelsY2.majorLabelVisibility": y2AxisLabelVisibility,
|
|
3165
|
+
"axisLabelsY2.majorUnit": y2AxisMajorUnitFromSimpleXML,
|
|
2928
3166
|
"axisY.abbreviation": yAxisAbbreviation,
|
|
2929
3167
|
"axisY.scale": yAxisScale,
|
|
2930
3168
|
"axisY2.abbreviation": y2AxisAbbreviation,
|
|
@@ -2934,10 +3172,63 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2934
3172
|
"axisLabelsY2.integerUnits": y2IntegerUnits,
|
|
2935
3173
|
"chart.overlayFields": overlayFieldsStr,
|
|
2936
3174
|
"chart.nullValueMode": nullValueMode,
|
|
2937
|
-
|
|
3175
|
+
"chart.showDataLabels": showDataLabels,
|
|
3176
|
+
lineWidth,
|
|
3177
|
+
lineDashStyle,
|
|
3178
|
+
fieldDashStyles: lineDashStylesByFieldStr,
|
|
3179
|
+
yAxisMin: yAxisMinRaw,
|
|
3180
|
+
yAxisMax: yAxisMaxRaw,
|
|
3181
|
+
y2AxisMin: y2AxisMinRaw,
|
|
3182
|
+
y2AxisMax: y2AxisMaxRaw,
|
|
3183
|
+
showXMajorGridLines,
|
|
3184
|
+
showYMajorGridLines,
|
|
3185
|
+
showY2MajorGridLines,
|
|
3186
|
+
showYMinorGridLines,
|
|
3187
|
+
showY2MinorGridLines,
|
|
3188
|
+
showLineSmoothing,
|
|
3189
|
+
yAxisMajorTickVisibility,
|
|
3190
|
+
y2AxisMajorTickVisibility,
|
|
3191
|
+
yAxisMajorTickSize,
|
|
3192
|
+
y2AxisMajorTickSize,
|
|
3193
|
+
yAxisMajorTickInterval,
|
|
3194
|
+
y2AxisMajorTickInterval,
|
|
3195
|
+
yAxisMinorTickVisibility,
|
|
3196
|
+
y2AxisMinorTickVisibility,
|
|
3197
|
+
yAxisMinorTickSize,
|
|
3198
|
+
y2AxisMinorTickSize,
|
|
3199
|
+
showYAxisWithZero: showYAxisWithZeroFromOptions,
|
|
3200
|
+
showY2AxisWithZero: showY2AxisWithZeroFromOptions
|
|
2938
3201
|
} = options;
|
|
3202
|
+
const dataValuesDisplay = showDataLabels === "none" ? "off" : showDataLabels;
|
|
3203
|
+
const showYAxisWithZero = showYAxisWithZeroFromProps != null ? showYAxisWithZeroFromProps : showYAxisWithZeroFromOptions;
|
|
3204
|
+
const showY2AxisWithZero = showY2AxisWithZeroFromProps != null ? showY2AxisWithZeroFromProps : showY2AxisWithZeroFromOptions;
|
|
3205
|
+
const showYMajorTicks = yAxisMajorTickVisibility === "show";
|
|
3206
|
+
const showY2MajorTicks = y2AxisMajorTickVisibility === "show";
|
|
3207
|
+
const showYMinorTicks = yAxisMinorTickVisibility === "show";
|
|
3208
|
+
const showY2MinorTicks = y2AxisMinorTickVisibility === "show";
|
|
3209
|
+
const yAxisMin = parseAxisValue(yAxisMinRaw);
|
|
3210
|
+
const yAxisMax = parseAxisValue(yAxisMaxRaw);
|
|
3211
|
+
const y2AxisMin = parseAxisValue(y2AxisMinRaw);
|
|
3212
|
+
const y2AxisMax = parseAxisValue(y2AxisMaxRaw);
|
|
3213
|
+
const parseTickInterval = (simpleXMLValue, canvasValue) => {
|
|
3214
|
+
if (simpleXMLValue) return Number(simpleXMLValue);
|
|
3215
|
+
if (canvasValue) return Number(canvasValue);
|
|
3216
|
+
return void 0;
|
|
3217
|
+
};
|
|
3218
|
+
const yAxisMajorTickIntervalNum = parseTickInterval(yAxisMajorUnitFromSimpleXML, yAxisMajorTickInterval);
|
|
3219
|
+
const y2AxisMajorTickIntervalNum = parseTickInterval(
|
|
3220
|
+
y2AxisMajorUnitFromSimpleXML,
|
|
3221
|
+
y2AxisMajorTickInterval
|
|
3222
|
+
);
|
|
3223
|
+
const yAxisMajorTickSizeNum = yAxisMajorTickSize ? Number(yAxisMajorTickSize) : void 0;
|
|
3224
|
+
const y2AxisMajorTickSizeNum = y2AxisMajorTickSize ? Number(y2AxisMajorTickSize) : void 0;
|
|
3225
|
+
const yAxisMinorTickSizeNum = yAxisMinorTickSize ? Number(yAxisMinorTickSize) : void 0;
|
|
3226
|
+
const y2AxisMinorTickSizeNum = y2AxisMinorTickSize ? Number(y2AxisMinorTickSize) : void 0;
|
|
2939
3227
|
const seriesColors = seriesColorsStr ? JSON.parse(seriesColorsStr) : void 0;
|
|
2940
3228
|
const seriesColorsByField = fieldColors ? JSON.parse(fieldColors) : void 0;
|
|
3229
|
+
const lineDashStylesByField = lineDashStylesByFieldStr ? JSON.parse(lineDashStylesByFieldStr) : void 0;
|
|
3230
|
+
const legendLabels = parseArrayOption(legendLabelsStr);
|
|
3231
|
+
const bgColor = backgroundColor || bgColorFromOptions;
|
|
2941
3232
|
const [containerWidth, setContainerWidth] = react_exports.useState(Number(props.width));
|
|
2942
3233
|
const [containerHeight, setContainerHeight] = react_exports.useState(Number(props.height));
|
|
2943
3234
|
const cachedHandleResize = react_exports.useCallback((w, h) => {
|
|
@@ -2948,25 +3239,64 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2948
3239
|
fields: chartData.fields,
|
|
2949
3240
|
columns: chartData.seriesList
|
|
2950
3241
|
});
|
|
2951
|
-
const xField =
|
|
3242
|
+
const xField = getFieldName2(filteredChartData.fields[0]);
|
|
2952
3243
|
const yFields = getFieldNames(
|
|
2953
3244
|
filteredChartData.fields.length > 1 ? filteredChartData.fields.slice(1) : []
|
|
2954
3245
|
);
|
|
2955
|
-
const y2Fields =
|
|
2956
|
-
|
|
3246
|
+
const y2Fields = (0, react_exports.useMemo)(
|
|
3247
|
+
() => y2FieldsStr ? y2FieldsStr.split(",").map((f) => f.trim()) : [],
|
|
3248
|
+
[y2FieldsStr]
|
|
3249
|
+
);
|
|
3250
|
+
const overlayFields = (0, react_exports.useMemo)(
|
|
3251
|
+
() => overlayFieldsStr ? overlayFieldsStr.split(",").map((f) => f.trim()) : [],
|
|
3252
|
+
[overlayFieldsStr]
|
|
3253
|
+
);
|
|
2957
3254
|
let xAxisTitle = getComputedAxisTitles(xAxisTitleText, [xField], xAxisTitleVisibility);
|
|
2958
3255
|
xAxisTitle = ellipsisAxisTitle(xAxisTitle, containerWidth);
|
|
2959
|
-
|
|
3256
|
+
const yFieldsForTitle = y2Enabled ? yFields.filter((field) => !y2Fields.includes(field)) : yFields;
|
|
3257
|
+
let yAxisTitle = getComputedAxisTitles(yAxisTitleText, yFieldsForTitle, yAxisTitleVisibility);
|
|
2960
3258
|
yAxisTitle = ellipsisAxisTitle(yAxisTitle, containerHeight);
|
|
2961
3259
|
const fieldsForY2Axis = y2Fields.length > 0 ? y2Fields : overlayFields;
|
|
2962
3260
|
let y2AxisTitle = getComputedAxisTitles(y2AxisTitleText, fieldsForY2Axis, y2AxisTitleVisibility);
|
|
2963
3261
|
y2AxisTitle = ellipsisAxisTitle(y2AxisTitle, containerHeight);
|
|
2964
|
-
const xScaleConfig =
|
|
2965
|
-
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
3262
|
+
const xScaleConfig = (0, react_exports.useMemo)(
|
|
3263
|
+
() => getXScaleConfig(xAxisTitle, xAxisLabelVisibility, xAxisLabelRotation),
|
|
3264
|
+
[xAxisTitle, xAxisLabelVisibility, xAxisLabelRotation]
|
|
3265
|
+
);
|
|
3266
|
+
const yScaleConfig = (0, react_exports.useMemo)(
|
|
3267
|
+
() => getYScaleConfig(
|
|
3268
|
+
yAxisTitle,
|
|
3269
|
+
yAxisAbbreviation,
|
|
3270
|
+
yAxisScale,
|
|
3271
|
+
yAxisLabelVisibility,
|
|
3272
|
+
yAxisMin,
|
|
3273
|
+
yAxisMax
|
|
3274
|
+
),
|
|
3275
|
+
[yAxisTitle, yAxisAbbreviation, yAxisScale, yAxisLabelVisibility, yAxisMin, yAxisMax]
|
|
3276
|
+
);
|
|
3277
|
+
const y2ScaleConfig = (0, react_exports.useMemo)(() => {
|
|
3278
|
+
if (y2Enabled) {
|
|
3279
|
+
return getY2ScaleConfig(
|
|
3280
|
+
y2AxisTitle,
|
|
3281
|
+
y2AxisAbbreviation,
|
|
3282
|
+
y2AxisScale,
|
|
3283
|
+
y2IntegerUnits,
|
|
3284
|
+
y2AxisLabelVisibility,
|
|
3285
|
+
y2AxisMin,
|
|
3286
|
+
y2AxisMax
|
|
3287
|
+
);
|
|
3288
|
+
}
|
|
3289
|
+
return {};
|
|
3290
|
+
}, [
|
|
3291
|
+
y2Enabled,
|
|
3292
|
+
y2AxisTitle,
|
|
3293
|
+
y2AxisAbbreviation,
|
|
3294
|
+
y2AxisScale,
|
|
3295
|
+
y2IntegerUnits,
|
|
3296
|
+
y2AxisLabelVisibility,
|
|
3297
|
+
y2AxisMin,
|
|
3298
|
+
y2AxisMax
|
|
3299
|
+
]);
|
|
2970
3300
|
const uplotContainerElement = (0, react_exports.useRef)(null);
|
|
2971
3301
|
const seriesDataFormatted = [
|
|
2972
3302
|
filteredChartData.columns[0],
|
|
@@ -2974,24 +3304,140 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2974
3304
|
];
|
|
2975
3305
|
chartData.fields = filteredChartData.fields;
|
|
2976
3306
|
chartData.columns = seriesDataFormatted;
|
|
2977
|
-
const seriesOverrides =
|
|
2978
|
-
|
|
2979
|
-
|
|
2980
|
-
|
|
2981
|
-
|
|
2982
|
-
|
|
2983
|
-
|
|
3307
|
+
const seriesOverrides = (0, react_exports.useMemo)(
|
|
3308
|
+
() => getSeriesOverrides(
|
|
3309
|
+
yFields,
|
|
3310
|
+
y2Fields,
|
|
3311
|
+
lineWidth,
|
|
3312
|
+
overlayFields,
|
|
3313
|
+
y2Enabled,
|
|
3314
|
+
nullValueMode,
|
|
3315
|
+
markerDisplay,
|
|
3316
|
+
lineDashStyle,
|
|
3317
|
+
lineDashStylesByField
|
|
3318
|
+
),
|
|
3319
|
+
[
|
|
3320
|
+
yFields,
|
|
3321
|
+
y2Fields,
|
|
3322
|
+
lineWidth,
|
|
3323
|
+
overlayFields,
|
|
3324
|
+
y2Enabled,
|
|
3325
|
+
nullValueMode,
|
|
3326
|
+
markerDisplay,
|
|
3327
|
+
lineDashStyle,
|
|
3328
|
+
lineDashStylesByField
|
|
3329
|
+
]
|
|
2984
3330
|
);
|
|
2985
|
-
const chartingEventAnnotations =
|
|
2986
|
-
|
|
2987
|
-
|
|
2988
|
-
|
|
2989
|
-
|
|
2990
|
-
|
|
2991
|
-
|
|
2992
|
-
|
|
2993
|
-
|
|
2994
|
-
|
|
3331
|
+
const chartingEventAnnotations = (0, react_exports.useMemo)(
|
|
3332
|
+
() => getAnnotationsForCanvas({
|
|
3333
|
+
annotationX,
|
|
3334
|
+
annotationColor,
|
|
3335
|
+
annotationLabel
|
|
3336
|
+
}),
|
|
3337
|
+
[annotationX, annotationColor, annotationLabel]
|
|
3338
|
+
);
|
|
3339
|
+
const scaleConfig = (0, react_exports.useMemo)(
|
|
3340
|
+
() => __spreadValues(__spreadValues(__spreadValues({}, xScaleConfig), yScaleConfig), y2ScaleConfig),
|
|
3341
|
+
[xScaleConfig, yScaleConfig, y2ScaleConfig]
|
|
3342
|
+
);
|
|
3343
|
+
const legend = (0, react_exports.useMemo)(
|
|
3344
|
+
() => getLegend({ legendDisplay, isSeriesCompare: legendMode === "seriesCompare" }),
|
|
3345
|
+
[legendDisplay, legendMode]
|
|
3346
|
+
);
|
|
3347
|
+
const handleChartClick = react_exports.useCallback(
|
|
3348
|
+
(event) => {
|
|
3349
|
+
if (onClick) {
|
|
3350
|
+
handleClick(event, onClick, trellisKey, trellisSplitBy);
|
|
3351
|
+
}
|
|
3352
|
+
},
|
|
3353
|
+
[onClick, trellisKey, trellisSplitBy]
|
|
3354
|
+
);
|
|
3355
|
+
const handleChartLegendClick = react_exports.useCallback(
|
|
3356
|
+
(event) => {
|
|
3357
|
+
if (onClick) {
|
|
3358
|
+
handleLegendClick(event, onClick, trellisKey, trellisSplitBy);
|
|
3359
|
+
}
|
|
3360
|
+
},
|
|
3361
|
+
[onClick, trellisKey, trellisSplitBy]
|
|
3362
|
+
);
|
|
3363
|
+
const handleChartRangeSelection = react_exports.useCallback(
|
|
3364
|
+
(range2) => {
|
|
3365
|
+
if (onSelect) {
|
|
3366
|
+
handleRangeSelection(range2, onSelect, chartData, trellisKey, trellisSplitBy);
|
|
3367
|
+
}
|
|
3368
|
+
},
|
|
3369
|
+
[onSelect, chartData, trellisKey, trellisSplitBy]
|
|
3370
|
+
);
|
|
3371
|
+
const handleChartRangeZoom = react_exports.useCallback(
|
|
3372
|
+
(range2) => {
|
|
3373
|
+
if (onSelect) {
|
|
3374
|
+
handleRangeZoom(range2, onSelect, chartData, trellisKey, trellisSplitBy);
|
|
3375
|
+
}
|
|
3376
|
+
},
|
|
3377
|
+
[onSelect, chartData, trellisKey, trellisSplitBy]
|
|
3378
|
+
);
|
|
3379
|
+
const xFieldToUse = xFieldFromProps || xField;
|
|
3380
|
+
const enableSearchZoom = react_exports.useMemo(
|
|
3381
|
+
() => shouldEnableSearchZoom(eventHandlers, xFieldToUse),
|
|
3382
|
+
[eventHandlers, xFieldToUse]
|
|
3383
|
+
);
|
|
3384
|
+
const lastPayloadRef = react_exports.useRef(null);
|
|
3385
|
+
const lastOriginalEventRef = react_exports.useRef(null);
|
|
3386
|
+
const previousMouseoverPayloadRef = react_exports.useRef(null);
|
|
3387
|
+
const additionalTooltipValuesRef = react_exports.useRef(additionalTooltipValues);
|
|
3388
|
+
react_exports.useEffect(() => {
|
|
3389
|
+
additionalTooltipValuesRef.current = additionalTooltipValues;
|
|
3390
|
+
}, [additionalTooltipValues]);
|
|
3391
|
+
const handleChartCrosshairChange = react_exports.useCallback(
|
|
3392
|
+
(event) => {
|
|
3393
|
+
if (onPointMouseOver || onPointMouseOut) {
|
|
3394
|
+
if (!event) {
|
|
3395
|
+
if (onPointMouseOut && lastPayloadRef.current) {
|
|
3396
|
+
onPointMouseOut({
|
|
3397
|
+
type: "point.mouseout",
|
|
3398
|
+
originalEvent: lastOriginalEventRef.current,
|
|
3399
|
+
payload: lastPayloadRef.current
|
|
3400
|
+
});
|
|
3401
|
+
}
|
|
3402
|
+
previousMouseoverPayloadRef.current = null;
|
|
3403
|
+
return;
|
|
3404
|
+
}
|
|
3405
|
+
const payload = __spreadProps(__spreadValues({}, (0, lodash_exports.pick)(event, "value", "seriesKey", "time", "index", "seriesIndex")), {
|
|
3406
|
+
name: event.seriesKey
|
|
3407
|
+
});
|
|
3408
|
+
delete payload.seriesKey;
|
|
3409
|
+
if (event.rowContext) {
|
|
3410
|
+
Object.assign(
|
|
3411
|
+
payload,
|
|
3412
|
+
Object.keys(event.rowContext).reduce((acc, fieldName) => {
|
|
3413
|
+
acc[`row.${fieldName}.value`] = event.rowContext[fieldName];
|
|
3414
|
+
return acc;
|
|
3415
|
+
}, {})
|
|
3416
|
+
);
|
|
3417
|
+
}
|
|
3418
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
3419
|
+
if (!hasMouseoverPayloadChanged(updatedPayload, previousMouseoverPayloadRef.current)) {
|
|
3420
|
+
return;
|
|
3421
|
+
}
|
|
3422
|
+
lastPayloadRef.current = updatedPayload;
|
|
3423
|
+
lastOriginalEventRef.current = event;
|
|
3424
|
+
previousMouseoverPayloadRef.current = __spreadValues({}, updatedPayload);
|
|
3425
|
+
if (onPointMouseOver) {
|
|
3426
|
+
onPointMouseOver({
|
|
3427
|
+
type: "point.mouseover",
|
|
3428
|
+
originalEvent: event,
|
|
3429
|
+
payload: updatedPayload
|
|
3430
|
+
});
|
|
3431
|
+
}
|
|
3432
|
+
}
|
|
3433
|
+
},
|
|
3434
|
+
[onPointMouseOver, onPointMouseOut, trellisKey, trellisSplitBy]
|
|
3435
|
+
);
|
|
3436
|
+
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}`;
|
|
3437
|
+
const memoizedChart = (0, react_exports.useMemo)(() => {
|
|
3438
|
+
const computedOnRangeZoom = onSelect ? handleChartRangeZoom : void 0;
|
|
3439
|
+
return /* @__PURE__ */ react_exports.createElement(visualization_canvas_exports.RangeSelectionProvider, { key: dataKey }, /* @__PURE__ */ react_exports.createElement(
|
|
3440
|
+
visualization_canvas_exports.TimeSeriesChart,
|
|
2995
3441
|
{
|
|
2996
3442
|
data: chartData,
|
|
2997
3443
|
width: containerWidth,
|
|
@@ -2999,49 +3445,113 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2999
3445
|
seriesColors,
|
|
3000
3446
|
seriesColorsByField,
|
|
3001
3447
|
seriesConfig: seriesOverrides,
|
|
3002
|
-
legend
|
|
3448
|
+
legend,
|
|
3449
|
+
legendLabels,
|
|
3450
|
+
isSeriesCompare: legendMode === "seriesCompare",
|
|
3451
|
+
maxSeriesFocus: legendMode === "seriesCompare" ? 0 : void 0,
|
|
3003
3452
|
scaleConfig,
|
|
3004
3453
|
timestampFormat: "expanded",
|
|
3005
|
-
onCrosshairClick:
|
|
3006
|
-
|
|
3454
|
+
onCrosshairClick: onClick ? handleChartClick : void 0,
|
|
3455
|
+
onCrosshairChange: onPointMouseOver || onPointMouseOut ? handleChartCrosshairChange : void 0,
|
|
3456
|
+
onSeriesClick: onClick ? handleChartLegendClick : void 0,
|
|
3457
|
+
onRangeSelection: handleChartRangeSelection,
|
|
3458
|
+
onRangeZoom: computedOnRangeZoom,
|
|
3459
|
+
serverSideZoom: enableSearchZoom,
|
|
3007
3460
|
userLocale,
|
|
3008
3461
|
events: chartingEventAnnotations,
|
|
3009
|
-
eventsConfig: { renderer: triangleEventAnnotationRenderer }
|
|
3462
|
+
eventsConfig: { renderer: triangleEventAnnotationRenderer },
|
|
3463
|
+
additionalTooltipValuesRef,
|
|
3464
|
+
showXMajorGridLines,
|
|
3465
|
+
showYMajorGridLines,
|
|
3466
|
+
showY2MajorGridLines,
|
|
3467
|
+
showYMinorGridLines,
|
|
3468
|
+
showY2MinorGridLines,
|
|
3469
|
+
showLineSmoothing,
|
|
3470
|
+
dataValuesDisplay,
|
|
3471
|
+
showYMajorTicks,
|
|
3472
|
+
showY2MajorTicks,
|
|
3473
|
+
yAxisMajorTickSize: yAxisMajorTickSizeNum,
|
|
3474
|
+
y2AxisMajorTickSize: y2AxisMajorTickSizeNum,
|
|
3475
|
+
yAxisMajorTickInterval: yAxisMajorTickIntervalNum,
|
|
3476
|
+
y2AxisMajorTickInterval: y2AxisMajorTickIntervalNum,
|
|
3477
|
+
showYMinorTicks,
|
|
3478
|
+
showY2MinorTicks,
|
|
3479
|
+
yAxisMinorTickSize: yAxisMinorTickSizeNum,
|
|
3480
|
+
y2AxisMinorTickSize: y2AxisMinorTickSizeNum,
|
|
3481
|
+
showYAxisWithZero,
|
|
3482
|
+
showY2AxisWithZero
|
|
3010
3483
|
}
|
|
3011
|
-
)
|
|
3012
|
-
|
|
3013
|
-
|
|
3014
|
-
|
|
3015
|
-
|
|
3016
|
-
|
|
3017
|
-
|
|
3018
|
-
|
|
3019
|
-
|
|
3020
|
-
|
|
3021
|
-
|
|
3022
|
-
|
|
3023
|
-
|
|
3024
|
-
|
|
3025
|
-
|
|
3026
|
-
|
|
3484
|
+
));
|
|
3485
|
+
}, [
|
|
3486
|
+
onSelect,
|
|
3487
|
+
handleChartRangeZoom,
|
|
3488
|
+
dataKey,
|
|
3489
|
+
chartData,
|
|
3490
|
+
containerWidth,
|
|
3491
|
+
containerHeight,
|
|
3492
|
+
seriesColors,
|
|
3493
|
+
seriesColorsByField,
|
|
3494
|
+
seriesOverrides,
|
|
3495
|
+
legend,
|
|
3496
|
+
legendLabels,
|
|
3497
|
+
scaleConfig,
|
|
3498
|
+
onClick,
|
|
3499
|
+
handleChartClick,
|
|
3500
|
+
onPointMouseOver,
|
|
3501
|
+
onPointMouseOut,
|
|
3502
|
+
handleChartCrosshairChange,
|
|
3503
|
+
handleChartLegendClick,
|
|
3504
|
+
handleChartRangeSelection,
|
|
3505
|
+
enableSearchZoom,
|
|
3506
|
+
userLocale,
|
|
3507
|
+
chartingEventAnnotations,
|
|
3508
|
+
showXMajorGridLines,
|
|
3509
|
+
showYMajorGridLines,
|
|
3510
|
+
showY2MajorGridLines,
|
|
3511
|
+
showYMinorGridLines,
|
|
3512
|
+
showY2MinorGridLines,
|
|
3513
|
+
showLineSmoothing,
|
|
3514
|
+
dataValuesDisplay,
|
|
3515
|
+
showYMajorTicks,
|
|
3516
|
+
showY2MajorTicks,
|
|
3517
|
+
yAxisMajorTickSizeNum,
|
|
3518
|
+
y2AxisMajorTickSizeNum,
|
|
3519
|
+
yAxisMajorTickIntervalNum,
|
|
3520
|
+
y2AxisMajorTickIntervalNum,
|
|
3521
|
+
showYMinorTicks,
|
|
3522
|
+
showY2MinorTicks,
|
|
3523
|
+
yAxisMinorTickSizeNum,
|
|
3524
|
+
y2AxisMinorTickSizeNum,
|
|
3525
|
+
showYAxisWithZero,
|
|
3526
|
+
showY2AxisWithZero,
|
|
3527
|
+
legendMode
|
|
3528
|
+
]);
|
|
3027
3529
|
const memoizedVisualization = (0, react_exports.useMemo)(() => {
|
|
3028
|
-
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor }, memoizedChart);
|
|
3029
|
-
}, [
|
|
3030
|
-
return /* @__PURE__ */ react_exports.createElement(
|
|
3530
|
+
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor: bgColor }, memoizedChart);
|
|
3531
|
+
}, [bgColor, memoizedChart]);
|
|
3532
|
+
return /* @__PURE__ */ react_exports.createElement(react_exports.Fragment, null, trellisEnabled && /* @__PURE__ */ react_exports.createElement(
|
|
3533
|
+
TrellisTitle,
|
|
3534
|
+
{
|
|
3535
|
+
trellisKey,
|
|
3536
|
+
backgroundColor: bgColor,
|
|
3537
|
+
fontColor: defaultFontColor
|
|
3538
|
+
}
|
|
3539
|
+
), /* @__PURE__ */ react_exports.createElement(
|
|
3031
3540
|
TimeSeriesChartContainer,
|
|
3032
3541
|
{
|
|
3033
|
-
height,
|
|
3542
|
+
height: trellisEnabled ? Number(height) - TRELLIS_TITLE_HEIGHT : height,
|
|
3034
3543
|
width,
|
|
3035
3544
|
ref: uplotContainerElement,
|
|
3036
3545
|
"data-test": "timeseries-chart-wrapper"
|
|
3037
3546
|
},
|
|
3038
3547
|
/* @__PURE__ */ react_exports.createElement(SizeAwareWrapper_default, { width, height, onResize: cachedHandleResize }),
|
|
3039
3548
|
memoizedVisualization
|
|
3040
|
-
);
|
|
3549
|
+
));
|
|
3041
3550
|
};
|
|
3042
3551
|
var TimeSeriesChartWrapper_default = TimeSeriesChartWrapper;
|
|
3043
3552
|
|
|
3044
3553
|
// src/common/withDashboardViz.tsx
|
|
3554
|
+
var SanitizedTimeSeriesChartWrapper = (0, SanitizeProps_exports.withSanitizedProps)(TimeSeriesChartWrapper_default);
|
|
3045
3555
|
var withDashboardViz = (opts) => {
|
|
3046
3556
|
const {
|
|
3047
3557
|
ReactViz,
|
|
@@ -3050,6 +3560,7 @@ var withDashboardViz = (opts) => {
|
|
|
3050
3560
|
},
|
|
3051
3561
|
computeVizPropsBeforeEval: computeVizPropsBeforeEval2 = () => {
|
|
3052
3562
|
},
|
|
3563
|
+
computeDataFrames,
|
|
3053
3564
|
disableEditModeCover,
|
|
3054
3565
|
useIconPlaceholder
|
|
3055
3566
|
} = opts;
|
|
@@ -3178,11 +3689,19 @@ var withDashboardViz = (opts) => {
|
|
|
3178
3689
|
);
|
|
3179
3690
|
setDataFramesInState(dataFrames);
|
|
3180
3691
|
}
|
|
3692
|
+
let mergedFrames = dataFrames;
|
|
3693
|
+
if (computeDataFrames && dataFrames) {
|
|
3694
|
+
const derivedFrames = computeDataFrames({
|
|
3695
|
+
dataSources: downsampledDataSources,
|
|
3696
|
+
options: optionsToEvaluate.options
|
|
3697
|
+
});
|
|
3698
|
+
mergedFrames = __spreadValues(__spreadValues({}, dataFrames), derivedFrames);
|
|
3699
|
+
}
|
|
3181
3700
|
const result = Options_exports.Options.evaluate(
|
|
3182
3701
|
optionsToEvaluate,
|
|
3183
3702
|
downsampledDataSources,
|
|
3184
3703
|
themeFunc,
|
|
3185
|
-
|
|
3704
|
+
mergedFrames,
|
|
3186
3705
|
getFeatureFlag(featureFlagContext, "visualizations_bypassCloneDeepOptionScope")
|
|
3187
3706
|
);
|
|
3188
3707
|
return result;
|
|
@@ -3270,7 +3789,7 @@ var withDashboardViz = (opts) => {
|
|
|
3270
3789
|
});
|
|
3271
3790
|
}
|
|
3272
3791
|
eventCallbackProps[eventCallbackPropName] = (ev) => {
|
|
3273
|
-
if (ev
|
|
3792
|
+
if (ev == null ? void 0 : ev.payload) {
|
|
3274
3793
|
payload = __spreadValues({}, ev.payload);
|
|
3275
3794
|
}
|
|
3276
3795
|
return onEventTrigger({
|
|
@@ -3294,10 +3813,7 @@ var withDashboardViz = (opts) => {
|
|
|
3294
3813
|
if (useAsyncEvaluatedOptions && Object.keys(evaluatedOptionsToUse).length === 0) {
|
|
3295
3814
|
return null;
|
|
3296
3815
|
}
|
|
3297
|
-
|
|
3298
|
-
if (isAcceleratedRenderOn) {
|
|
3299
|
-
SanitizedViz = (0, SanitizeProps_exports.withSanitizedProps)(TimeSeriesChartWrapper_default);
|
|
3300
|
-
}
|
|
3816
|
+
const SanitizedViz = isAcceleratedRenderOn ? SanitizedTimeSeriesChartWrapper : SanitizedReactViz;
|
|
3301
3817
|
return /* @__PURE__ */ react_exports.createElement(
|
|
3302
3818
|
SanitizedViz,
|
|
3303
3819
|
__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues({}, SplunkVisualization_default.defaults), {
|
|
@@ -3377,7 +3893,6 @@ var StaticMajorAndTrendLayout = [
|
|
|
3377
3893
|
[
|
|
3378
3894
|
{
|
|
3379
3895
|
label: (0, i18n_exports._)("Unit position"),
|
|
3380
|
-
// todo: we need a new editor combining unit and position
|
|
3381
3896
|
option: "unitPosition",
|
|
3382
3897
|
editor: "editor.select",
|
|
3383
3898
|
editorProps: {
|
|
@@ -4329,8 +4844,12 @@ var computeVizProps = ({
|
|
|
4329
4844
|
trellisKey,
|
|
4330
4845
|
trellisSplitBy
|
|
4331
4846
|
}) => {
|
|
4332
|
-
|
|
4333
|
-
|
|
4847
|
+
let iconUrl = icon;
|
|
4848
|
+
if (icon && (0, iconUtils_exports.isRelativeUrlPath)(icon)) {
|
|
4849
|
+
iconUrl = `${window.location.origin}${icon}`;
|
|
4850
|
+
}
|
|
4851
|
+
if (iconUrl && ((0, iconUtils_exports.isRemoteIcon)(iconUrl) || (0, iconUtils_exports.isDataURI)(iconUrl) || (0, iconUtils_exports.isRelativeUrlPath)(icon))) {
|
|
4852
|
+
IconComponent = /* @__PURE__ */ react_exports.createElement(RemoteIcon_default, { iconURL: iconUrl });
|
|
4334
4853
|
}
|
|
4335
4854
|
return {
|
|
4336
4855
|
IconComponent,
|