@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/FillerGauge.js
CHANGED
|
@@ -985,7 +985,7 @@ var Cover = styled_components_default.div`
|
|
|
985
985
|
bottom: 0;
|
|
986
986
|
`;
|
|
987
987
|
var Blocker = styled_components_default.div.attrs({
|
|
988
|
-
"data-splunk-visualization-version": "28.
|
|
988
|
+
"data-splunk-visualization-version": "28.4.0 - 002bd482f"
|
|
989
989
|
})`
|
|
990
990
|
position: relative;
|
|
991
991
|
width: 100%;
|
|
@@ -1075,7 +1075,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
1075
1075
|
FixSizeItem,
|
|
1076
1076
|
{
|
|
1077
1077
|
"data-test": "fix-size-item",
|
|
1078
|
-
"data-splunk-visualization-version": "28.
|
|
1078
|
+
"data-splunk-visualization-version": "28.4.0 - 002bd482f",
|
|
1079
1079
|
width,
|
|
1080
1080
|
height,
|
|
1081
1081
|
backgroundColor
|
|
@@ -1171,6 +1171,7 @@ __reExport(numberUtils_exports, require("@splunk/visualizations-shared/numberUti
|
|
|
1171
1171
|
var numberUtils_default = "default" in defaultImport28 ? defaultImport28.default : defaultImport28;
|
|
1172
1172
|
|
|
1173
1173
|
// src/common/utils/dataUtils.ts
|
|
1174
|
+
var getFieldName = (field) => typeof field === "string" ? field : field.name;
|
|
1174
1175
|
var largestTriangleThreeBuckets = (data, threshold, preferredDownsampleIndices) => {
|
|
1175
1176
|
const dataLength = data.length;
|
|
1176
1177
|
const downsampledIndices = [];
|
|
@@ -1287,9 +1288,9 @@ var tryToCoerceAllDisplayedFields = (ds, xField, yFields, fieldTypes, options) =
|
|
|
1287
1288
|
let xColumn = [];
|
|
1288
1289
|
const yColumns = [];
|
|
1289
1290
|
const canDownsample = !ds.data.fields.some((field, index) => {
|
|
1290
|
-
var _a
|
|
1291
|
-
const fieldName = (
|
|
1292
|
-
const fieldType = (
|
|
1291
|
+
var _a;
|
|
1292
|
+
const fieldName = getFieldName(field);
|
|
1293
|
+
const fieldType = (_a = fieldTypes[index]) != null ? _a : "unknown";
|
|
1293
1294
|
const column = ds.data.columns[index];
|
|
1294
1295
|
let hasDisplayedColumnThatCantBeDownsampled = false;
|
|
1295
1296
|
if (fieldName === xField) {
|
|
@@ -1576,7 +1577,7 @@ var trellisUtils_default = "default" in defaultImport30 ? defaultImport30.defaul
|
|
|
1576
1577
|
var AGGREGATIONS = "aggregations";
|
|
1577
1578
|
var dataSourcesSplitByAggregationsUnknown = (dataSource) => {
|
|
1578
1579
|
var _a, _b, _c, _d;
|
|
1579
|
-
const fields = (_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields;
|
|
1580
|
+
const fields = toFieldEntries((_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields);
|
|
1580
1581
|
const columns = (_d = (_c = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _c.data) == null ? void 0 : _d.columns;
|
|
1581
1582
|
let splitDataSources = null;
|
|
1582
1583
|
let errorCode = null;
|
|
@@ -1597,7 +1598,7 @@ var dataSourcesSplitByAggregationsUnknown = (dataSource) => {
|
|
|
1597
1598
|
}
|
|
1598
1599
|
return { splitDataSources, errorCode };
|
|
1599
1600
|
};
|
|
1600
|
-
var toFieldEntries = (fields) => {
|
|
1601
|
+
var toFieldEntries = (fields = []) => {
|
|
1601
1602
|
return fields.map((field) => {
|
|
1602
1603
|
if (typeof field === "string") {
|
|
1603
1604
|
return { name: field };
|
|
@@ -1612,7 +1613,7 @@ var dataSourcesSplitByAggregationsTimechartAndChart = (dataSource) => {
|
|
|
1612
1613
|
let splitDataSources = null;
|
|
1613
1614
|
let splitByFields = [];
|
|
1614
1615
|
let errorCode = null;
|
|
1615
|
-
if (
|
|
1616
|
+
if (fields.length > 0) {
|
|
1616
1617
|
splitByFields = (0, trellisUtils_exports.extractDataSourceAggregationKeysChart)(fields);
|
|
1617
1618
|
}
|
|
1618
1619
|
if (splitByFields && splitByFields.length > 0) {
|
|
@@ -1650,12 +1651,12 @@ var dataSourcesSplitByAggregationsTimechartAndChart = (dataSource) => {
|
|
|
1650
1651
|
};
|
|
1651
1652
|
var dataSourcesSplitByAggregationsStats = (dataSource) => {
|
|
1652
1653
|
var _a, _b, _c, _d;
|
|
1653
|
-
const fields = (_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields;
|
|
1654
|
+
const fields = toFieldEntries((_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields);
|
|
1654
1655
|
const columns = (_d = (_c = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _c.data) == null ? void 0 : _d.columns;
|
|
1655
1656
|
let splitDataSources = null;
|
|
1656
1657
|
let splitByFields = [];
|
|
1657
1658
|
let errorCode = null;
|
|
1658
|
-
if (
|
|
1659
|
+
if (fields.length > 0) {
|
|
1659
1660
|
splitByFields = (0, trellisUtils_exports.extractDataSourceAggregationKeysStats)(fields);
|
|
1660
1661
|
}
|
|
1661
1662
|
if (splitByFields && splitByFields.length > 0) {
|
|
@@ -1679,12 +1680,12 @@ var dataSourcesSplitByAggregationsStats = (dataSource) => {
|
|
|
1679
1680
|
};
|
|
1680
1681
|
var dataSourcesSplitByModeTimechart = (dataSource, splitBy) => {
|
|
1681
1682
|
var _a, _b, _c, _d, _e;
|
|
1682
|
-
const fields = (_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields;
|
|
1683
|
+
const fields = toFieldEntries((_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields);
|
|
1683
1684
|
const columns = (_d = (_c = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _c.data) == null ? void 0 : _d.columns;
|
|
1684
1685
|
let splitDataSources = null;
|
|
1685
1686
|
let splitByFields = [];
|
|
1686
1687
|
let errorCode = null;
|
|
1687
|
-
if (
|
|
1688
|
+
if (fields.length > 0) {
|
|
1688
1689
|
splitByFields = (0, trellisUtils_exports.extractSplitByFieldsChartFields)(fields);
|
|
1689
1690
|
}
|
|
1690
1691
|
if (splitByFields && splitByFields.indexOf(splitBy) > -1) {
|
|
@@ -1722,12 +1723,12 @@ var dataSourcesSplitByModeTimechart = (dataSource, splitBy) => {
|
|
|
1722
1723
|
};
|
|
1723
1724
|
var dataSourcesSplitByModeChart = (dataSource, splitBy) => {
|
|
1724
1725
|
var _a, _b, _c, _d;
|
|
1725
|
-
const fields = (_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields;
|
|
1726
|
+
const fields = toFieldEntries((_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields);
|
|
1726
1727
|
const columns = (_d = (_c = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _c.data) == null ? void 0 : _d.columns;
|
|
1727
1728
|
let splitDataSources = null;
|
|
1728
1729
|
let splitByFields = [];
|
|
1729
1730
|
let errorCode = null;
|
|
1730
|
-
if (
|
|
1731
|
+
if (fields.length > 0) {
|
|
1731
1732
|
splitByFields = (0, trellisUtils_exports.extractSplitByFieldsChartFields)(fields);
|
|
1732
1733
|
}
|
|
1733
1734
|
if (splitByFields && splitByFields.indexOf(splitBy) > -1) {
|
|
@@ -1815,17 +1816,15 @@ var dataSourcesSplitByModeChart = (dataSource, splitBy) => {
|
|
|
1815
1816
|
};
|
|
1816
1817
|
var dataSourcesSplitByModeStatsorUnknown = (dataSource, splitBy, splitMode) => {
|
|
1817
1818
|
var _a, _b, _c, _d, _e, _f;
|
|
1818
|
-
const fields = (_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields;
|
|
1819
|
+
const fields = toFieldEntries((_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields);
|
|
1819
1820
|
const columns = (_d = (_c = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _c.data) == null ? void 0 : _d.columns;
|
|
1820
1821
|
let splitDataSources = null;
|
|
1821
1822
|
let splitByFields = [];
|
|
1822
1823
|
let errorCode = null;
|
|
1823
|
-
if (
|
|
1824
|
+
if (fields.length > 0) {
|
|
1824
1825
|
splitByFields = splitMode !== trellisUtils_exports.UNKNOWN ? (0, trellisUtils_exports.extractSplitByFieldsForStats)(fields) : (0, trellisUtils_exports.extractSplitByFieldsForUnknown)(fields);
|
|
1825
1826
|
}
|
|
1826
|
-
const splitByIndex = fields
|
|
1827
|
-
(field) => field === splitBy || field.name === splitBy
|
|
1828
|
-
);
|
|
1827
|
+
const splitByIndex = fields.findIndex((field) => field.name === splitBy);
|
|
1829
1828
|
if (splitByFields && splitByFields.indexOf(splitBy) > -1) {
|
|
1830
1829
|
const splitByColumn = (_f = (_e = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _e.data) == null ? void 0 : _f.columns[splitByIndex];
|
|
1831
1830
|
splitDataSources = {};
|
|
@@ -1962,14 +1961,29 @@ var getAnnotationsForCanvas = ({
|
|
|
1962
1961
|
var StyledTriangle = styled_components_default(Triangle_default)`
|
|
1963
1962
|
color: ${(props) => props.eventColor || variables_default.severityColorNotice(props)};
|
|
1964
1963
|
`;
|
|
1965
|
-
var triangleEventAnnotationRenderer = ({
|
|
1964
|
+
var triangleEventAnnotationRenderer = ({
|
|
1965
|
+
event,
|
|
1966
|
+
dimensions
|
|
1967
|
+
}) => {
|
|
1966
1968
|
const eventWithColor = event;
|
|
1967
1969
|
return react_default.createElement(StyledTriangle, {
|
|
1970
|
+
width: `${dimensions.width}px`,
|
|
1971
|
+
height: `${dimensions.height}px`,
|
|
1968
1972
|
viewBox: "0 0 24 24",
|
|
1969
1973
|
variant: "filled",
|
|
1970
1974
|
eventColor: eventWithColor.color
|
|
1971
1975
|
});
|
|
1972
1976
|
};
|
|
1977
|
+
var shouldEnableSearchZoom = (eventHandlers = [], xField = "") => {
|
|
1978
|
+
const rangeSelectEventHandler = eventHandlers.find(
|
|
1979
|
+
(eventHandler) => {
|
|
1980
|
+
var _a;
|
|
1981
|
+
return (_a = eventHandler.options.events) == null ? void 0 : _a.includes("range.select");
|
|
1982
|
+
}
|
|
1983
|
+
);
|
|
1984
|
+
const xAxisIsTime = xField === "_time";
|
|
1985
|
+
return !!rangeSelectEventHandler && xAxisIsTime;
|
|
1986
|
+
};
|
|
1973
1987
|
var canvasSupportedTimeSeriesCharts = ["splunk.line"];
|
|
1974
1988
|
var isTimeSeriesCanvasRenderSupported = (vizConfigKey) => {
|
|
1975
1989
|
return canvasSupportedTimeSeriesCharts.indexOf(vizConfigKey) > -1;
|
|
@@ -1990,16 +2004,31 @@ var filterChartDataFromInternalFields = (chartData) => {
|
|
|
1990
2004
|
var convert2DArrayToNumbers = (arr) => {
|
|
1991
2005
|
return arr.map((subArray) => subArray.map((element) => parseFloat(element)));
|
|
1992
2006
|
};
|
|
2007
|
+
var parseAxisValue = (val) => {
|
|
2008
|
+
if (val === void 0 || val === null || val === "auto" || val === "") {
|
|
2009
|
+
return void 0;
|
|
2010
|
+
}
|
|
2011
|
+
const num = typeof val === "number" ? val : Number.parseFloat(val);
|
|
2012
|
+
return Number.isNaN(num) ? void 0 : num;
|
|
2013
|
+
};
|
|
1993
2014
|
var SideLegendWidth = 75;
|
|
1994
|
-
var
|
|
2015
|
+
var SeriesCompareLegendWidth = 200;
|
|
1995
2016
|
var getLegend = (props) => {
|
|
1996
2017
|
const legendPlacement = props == null ? void 0 : props.legendDisplay;
|
|
2018
|
+
const { isSeriesCompare } = props;
|
|
2019
|
+
const commonLegendProps = {
|
|
2020
|
+
center: true,
|
|
2021
|
+
fontSize: 12,
|
|
2022
|
+
largerTiles: true,
|
|
2023
|
+
hideSeriesValue: !isSeriesCompare
|
|
2024
|
+
// Show values if in seriesCompare mode
|
|
2025
|
+
};
|
|
1997
2026
|
switch (legendPlacement) {
|
|
1998
2027
|
case "off":
|
|
1999
2028
|
return false;
|
|
2000
2029
|
case "left":
|
|
2001
2030
|
return (0, visualization_canvas_exports.LeftLegendFactory)(__spreadValues({
|
|
2002
|
-
width: SideLegendWidth
|
|
2031
|
+
width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
|
|
2003
2032
|
}, commonLegendProps));
|
|
2004
2033
|
case "bottom":
|
|
2005
2034
|
return (0, visualization_canvas_exports.BottomLegendFactory)(__spreadValues({
|
|
@@ -2011,7 +2040,7 @@ var getLegend = (props) => {
|
|
|
2011
2040
|
}, commonLegendProps));
|
|
2012
2041
|
default:
|
|
2013
2042
|
return (0, visualization_canvas_exports.SideLegendFactory)(__spreadValues({
|
|
2014
|
-
width: SideLegendWidth
|
|
2043
|
+
width: isSeriesCompare ? SeriesCompareLegendWidth : SideLegendWidth
|
|
2015
2044
|
}, commonLegendProps));
|
|
2016
2045
|
}
|
|
2017
2046
|
};
|
|
@@ -2047,19 +2076,25 @@ var ellipsisAxisTitle = (axisTitle, containerSpacing, fontSize = 12) => {
|
|
|
2047
2076
|
const end = axisTitle.slice(-halfChars);
|
|
2048
2077
|
return `${start}...${end}`;
|
|
2049
2078
|
};
|
|
2050
|
-
var
|
|
2079
|
+
var getFieldName2 = (field) => {
|
|
2051
2080
|
const fieldName = typeof field === "object" ? field == null ? void 0 : field.name : field;
|
|
2052
2081
|
return fieldName;
|
|
2053
2082
|
};
|
|
2054
2083
|
var getFieldNames = (fields) => {
|
|
2055
|
-
return fields.map((field) =>
|
|
2084
|
+
return fields.map((field) => getFieldName2(field));
|
|
2056
2085
|
};
|
|
2057
|
-
var getXScaleConfig = (label) => {
|
|
2086
|
+
var getXScaleConfig = (label, xAxisLabelVisibility, xAxisLabelRotation) => {
|
|
2058
2087
|
const xConfig = { x: {} };
|
|
2059
2088
|
xConfig.x.label = label;
|
|
2089
|
+
if (xAxisLabelVisibility === "hide") {
|
|
2090
|
+
xConfig.x.hideLabels = true;
|
|
2091
|
+
}
|
|
2092
|
+
if (xAxisLabelRotation !== void 0) {
|
|
2093
|
+
xConfig.x.labelRotation = xAxisLabelRotation;
|
|
2094
|
+
}
|
|
2060
2095
|
return xConfig;
|
|
2061
2096
|
};
|
|
2062
|
-
var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale) => {
|
|
2097
|
+
var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale, yAxisLabelVisibility, yAxisMin, yAxisMax) => {
|
|
2063
2098
|
const scaleType = yAxisScale != null ? yAxisScale : "linear";
|
|
2064
2099
|
const yConfig = { y: {} };
|
|
2065
2100
|
yConfig.y.label = label;
|
|
@@ -2072,23 +2107,42 @@ var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale) => {
|
|
|
2072
2107
|
} else {
|
|
2073
2108
|
yConfig.y.width = label && label.length > 0 ? 30 : 10;
|
|
2074
2109
|
}
|
|
2110
|
+
if (yAxisLabelVisibility === "hide") {
|
|
2111
|
+
yConfig.y.hideLabels = true;
|
|
2112
|
+
}
|
|
2113
|
+
if (yAxisMin !== void 0 || yAxisMax !== void 0) {
|
|
2114
|
+
yConfig.y.range = (u, dataMin, dataMax) => {
|
|
2115
|
+
const min = yAxisMin != null ? yAxisMin : dataMin;
|
|
2116
|
+
const max = yAxisMax != null ? yAxisMax : dataMax;
|
|
2117
|
+
return [min, max];
|
|
2118
|
+
};
|
|
2119
|
+
}
|
|
2075
2120
|
return yConfig;
|
|
2076
2121
|
};
|
|
2077
|
-
var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInteger) => {
|
|
2122
|
+
var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInteger, y2AxisLabelVisibility, y2AxisMin, y2AxisMax) => {
|
|
2078
2123
|
const y2Config = { y2: {} };
|
|
2079
2124
|
const scaleType = axisScale != null ? axisScale : "linear";
|
|
2080
2125
|
y2Config.y2.label = label;
|
|
2081
2126
|
y2Config.y2.side = "right";
|
|
2082
|
-
y2Config.y2.showGrid = false;
|
|
2083
2127
|
y2Config.y2.type = scaleType;
|
|
2084
2128
|
if (axisAbbreviation !== "none") {
|
|
2085
2129
|
y2Config.y2.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1, roundAxisLabelsToInteger);
|
|
2086
2130
|
} else if (roundAxisLabelsToInteger) {
|
|
2087
2131
|
y2Config.y2.tickFmt = (v) => roundAxisLabelsToInteger ? Math.round(v).toString() : v.toString();
|
|
2088
2132
|
}
|
|
2133
|
+
if (y2AxisLabelVisibility === "hide") {
|
|
2134
|
+
y2Config.y2.hideLabels = true;
|
|
2135
|
+
}
|
|
2136
|
+
if (y2AxisMin !== void 0 || y2AxisMax !== void 0) {
|
|
2137
|
+
y2Config.y2.range = (u, dataMin, dataMax) => {
|
|
2138
|
+
const min = y2AxisMin != null ? y2AxisMin : dataMin;
|
|
2139
|
+
const max = y2AxisMax != null ? y2AxisMax : dataMax;
|
|
2140
|
+
return [min, max];
|
|
2141
|
+
};
|
|
2142
|
+
}
|
|
2089
2143
|
return y2Config;
|
|
2090
2144
|
};
|
|
2091
|
-
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode) => {
|
|
2145
|
+
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode, markerDisplay, lineDashStyle, lineDashStylesByField) => {
|
|
2092
2146
|
const seriesConfig = {};
|
|
2093
2147
|
let spanGaps;
|
|
2094
2148
|
let replaceNullsWithZero;
|
|
@@ -2120,12 +2174,90 @@ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled
|
|
|
2120
2174
|
if (overlayFields == null ? void 0 : overlayFields.includes(field)) {
|
|
2121
2175
|
seriesConfig[field].type = "line";
|
|
2122
2176
|
}
|
|
2177
|
+
if (markerDisplay !== void 0) {
|
|
2178
|
+
seriesConfig[field].markerDisplay = markerDisplay;
|
|
2179
|
+
}
|
|
2180
|
+
const fieldDashStyle = (lineDashStylesByField == null ? void 0 : lineDashStylesByField[field]) || lineDashStyle;
|
|
2181
|
+
if (fieldDashStyle) {
|
|
2182
|
+
seriesConfig[field].lineDashStyle = fieldDashStyle;
|
|
2183
|
+
}
|
|
2123
2184
|
if (replaceNullsWithZero !== void 0) {
|
|
2124
2185
|
seriesConfig[field].replaceNullsWithZero = replaceNullsWithZero;
|
|
2125
2186
|
}
|
|
2126
2187
|
});
|
|
2127
2188
|
return seriesConfig;
|
|
2128
2189
|
};
|
|
2190
|
+
var findRangeIndices = (xData, startValue, endValue) => {
|
|
2191
|
+
let startXIndex = -1;
|
|
2192
|
+
let endXIndex = -1;
|
|
2193
|
+
const xDataEpoch = xData.map((val) => {
|
|
2194
|
+
if (typeof val === "string") {
|
|
2195
|
+
return new Date(val).getTime() / 1e3;
|
|
2196
|
+
}
|
|
2197
|
+
return val;
|
|
2198
|
+
});
|
|
2199
|
+
for (let i = 0; i < xDataEpoch.length; i += 1) {
|
|
2200
|
+
if (xDataEpoch[i] >= startValue) {
|
|
2201
|
+
startXIndex = i;
|
|
2202
|
+
break;
|
|
2203
|
+
}
|
|
2204
|
+
}
|
|
2205
|
+
if (startXIndex === -1 && xDataEpoch.length > 0) {
|
|
2206
|
+
startXIndex = xDataEpoch.length - 1;
|
|
2207
|
+
}
|
|
2208
|
+
for (let i = xDataEpoch.length - 1; i >= 0; i -= 1) {
|
|
2209
|
+
if (xDataEpoch[i] <= endValue) {
|
|
2210
|
+
endXIndex = i;
|
|
2211
|
+
break;
|
|
2212
|
+
}
|
|
2213
|
+
}
|
|
2214
|
+
if (endXIndex === -1 && xDataEpoch.length > 0) {
|
|
2215
|
+
endXIndex = 0;
|
|
2216
|
+
}
|
|
2217
|
+
return { startXIndex, endXIndex };
|
|
2218
|
+
};
|
|
2219
|
+
|
|
2220
|
+
// src/common/hooks/useTrellisEnabled.ts
|
|
2221
|
+
var useTrellisFeatureFlagOn = () => {
|
|
2222
|
+
const context = (0, react_exports.useContext)(FeatureFlagContext_default);
|
|
2223
|
+
return Boolean(context == null ? void 0 : context.visualizations_enableTrellis);
|
|
2224
|
+
};
|
|
2225
|
+
var useTrellisEnabled = (layoutType = visualization_schemas_exports.LAYOUT_TYPE.Off) => {
|
|
2226
|
+
const trellisFeatureEnabled = useTrellisFeatureFlagOn();
|
|
2227
|
+
return trellisFeatureEnabled && layoutType === visualization_schemas_exports.LAYOUT_TYPE.Trellis;
|
|
2228
|
+
};
|
|
2229
|
+
|
|
2230
|
+
// src/common/components/TrellisTitle.tsx
|
|
2231
|
+
var TRELLIS_TITLE_HEIGHT = 28;
|
|
2232
|
+
var TrellisTitleText = styled_components_default.div`
|
|
2233
|
+
margin-left: 10px;
|
|
2234
|
+
margin-right: 10px;
|
|
2235
|
+
padding-top: 8px;
|
|
2236
|
+
text-overflow: ellipsis;
|
|
2237
|
+
white-space: nowrap;
|
|
2238
|
+
overflow: hidden;
|
|
2239
|
+
`;
|
|
2240
|
+
var TrellisTitleDiv = styled_components_default.div`
|
|
2241
|
+
height: ${TRELLIS_TITLE_HEIGHT}px;
|
|
2242
|
+
font-size: 14px;
|
|
2243
|
+
font-weight: 700;
|
|
2244
|
+
color: ${(props) => props.fontColor};
|
|
2245
|
+
background-color: ${(props) => props.backgroundColor};
|
|
2246
|
+
box-shadow: 0 1px ${(props) => props.backgroundColor}; // this is added to avoid a 1px gap between title and viz divs that showed up intermittently because of pixel rounding error in chrome.
|
|
2247
|
+
`;
|
|
2248
|
+
var TrellisTitle = (props) => {
|
|
2249
|
+
const titleText = String(props.trellisKey).toString();
|
|
2250
|
+
return /* @__PURE__ */ react_exports.createElement(
|
|
2251
|
+
TrellisTitleDiv,
|
|
2252
|
+
{
|
|
2253
|
+
fontColor: props.fontColor,
|
|
2254
|
+
backgroundColor: props.backgroundColor,
|
|
2255
|
+
"data-test": "trellis-title",
|
|
2256
|
+
title: titleText
|
|
2257
|
+
},
|
|
2258
|
+
/* @__PURE__ */ react_exports.createElement(TrellisTitleText, null, titleText)
|
|
2259
|
+
);
|
|
2260
|
+
};
|
|
2129
2261
|
|
|
2130
2262
|
// src/common/TimeSeriesChartWrapper.tsx
|
|
2131
2263
|
var TimeSeriesChartContainer = styled_components_default.div`
|
|
@@ -2136,45 +2268,190 @@ var TimeSeriesChartContainer = styled_components_default.div`
|
|
|
2136
2268
|
position: absolute !important; // This is needed for canvas element export pdf/png to work correctly
|
|
2137
2269
|
}
|
|
2138
2270
|
`;
|
|
2139
|
-
var
|
|
2271
|
+
var appendTrellisToPayload = (payload, trellisKey, trellisSplitBy) => {
|
|
2272
|
+
const result = __spreadValues({}, payload);
|
|
2273
|
+
if (trellisSplitBy) {
|
|
2274
|
+
result["trellis.name"] = trellisSplitBy;
|
|
2275
|
+
}
|
|
2276
|
+
if (trellisKey) {
|
|
2277
|
+
result["trellis.value"] = trellisKey;
|
|
2278
|
+
}
|
|
2279
|
+
return result;
|
|
2280
|
+
};
|
|
2281
|
+
var hasMouseoverPayloadChanged = (currentPayload, previousPayload) => {
|
|
2282
|
+
if (!previousPayload) {
|
|
2283
|
+
return true;
|
|
2284
|
+
}
|
|
2285
|
+
if (currentPayload.index !== previousPayload.index) {
|
|
2286
|
+
return true;
|
|
2287
|
+
}
|
|
2288
|
+
if (currentPayload.seriesIndex !== previousPayload.seriesIndex) {
|
|
2289
|
+
return true;
|
|
2290
|
+
}
|
|
2291
|
+
if (currentPayload["trellis.name"] !== previousPayload["trellis.name"]) {
|
|
2292
|
+
return true;
|
|
2293
|
+
}
|
|
2294
|
+
if (currentPayload["trellis.value"] !== previousPayload["trellis.value"]) {
|
|
2295
|
+
return true;
|
|
2296
|
+
}
|
|
2297
|
+
return false;
|
|
2298
|
+
};
|
|
2299
|
+
var handleClick = (chartEvent, onClick, trellisKey, trellisSplitBy) => {
|
|
2140
2300
|
const payload = __spreadProps(__spreadValues({}, (0, lodash_exports.pick)(chartEvent, "value", "seriesKey")), {
|
|
2141
2301
|
name: chartEvent.seriesKey
|
|
2142
2302
|
});
|
|
2143
2303
|
delete payload.seriesKey;
|
|
2144
|
-
|
|
2145
|
-
|
|
2146
|
-
|
|
2304
|
+
if (chartEvent.rowContext) {
|
|
2305
|
+
Object.assign(
|
|
2306
|
+
payload,
|
|
2307
|
+
Object.keys(chartEvent.rowContext).reduce((acc, fieldName) => {
|
|
2308
|
+
acc[`row.${fieldName}.value`] = chartEvent.rowContext[fieldName];
|
|
2309
|
+
return acc;
|
|
2310
|
+
}, {})
|
|
2311
|
+
);
|
|
2312
|
+
}
|
|
2313
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
2314
|
+
if (onClick) {
|
|
2315
|
+
onClick({
|
|
2147
2316
|
type: "point.click",
|
|
2148
2317
|
originalEvent: chartEvent,
|
|
2149
|
-
payload
|
|
2318
|
+
payload: updatedPayload
|
|
2150
2319
|
});
|
|
2151
2320
|
}
|
|
2152
2321
|
};
|
|
2153
|
-
var handleLegendClick = (chartEvent,
|
|
2322
|
+
var handleLegendClick = (chartEvent, onClick, trellisKey, trellisSplitBy) => {
|
|
2154
2323
|
const payload = {
|
|
2155
2324
|
name: chartEvent
|
|
2156
2325
|
};
|
|
2157
|
-
const
|
|
2158
|
-
if (
|
|
2159
|
-
|
|
2326
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
2327
|
+
if (onClick) {
|
|
2328
|
+
onClick({
|
|
2160
2329
|
type: "legend.click",
|
|
2161
2330
|
originalEvent: chartEvent,
|
|
2162
|
-
payload
|
|
2331
|
+
payload: updatedPayload
|
|
2332
|
+
});
|
|
2333
|
+
}
|
|
2334
|
+
};
|
|
2335
|
+
var handleRangeSelection = (rangeEvent, onSelect, chartData, trellisKey, trellisSplitBy) => {
|
|
2336
|
+
var _a;
|
|
2337
|
+
if (!rangeEvent) {
|
|
2338
|
+
return;
|
|
2339
|
+
}
|
|
2340
|
+
const xData = ((_a = chartData == null ? void 0 : chartData.columns) == null ? void 0 : _a[0]) || [];
|
|
2341
|
+
const { startXIndex, endXIndex } = findRangeIndices(xData, rangeEvent.start, rangeEvent.end);
|
|
2342
|
+
const payload = {
|
|
2343
|
+
startXIndex,
|
|
2344
|
+
startXValue: rangeEvent.start,
|
|
2345
|
+
endXIndex,
|
|
2346
|
+
endXValue: rangeEvent.end
|
|
2347
|
+
};
|
|
2348
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
2349
|
+
if (onSelect) {
|
|
2350
|
+
onSelect({
|
|
2351
|
+
type: "range.selectBeforeZoom",
|
|
2352
|
+
originalEvent: rangeEvent,
|
|
2353
|
+
payload: updatedPayload
|
|
2163
2354
|
});
|
|
2164
2355
|
}
|
|
2165
2356
|
};
|
|
2357
|
+
var handleRangeZoom = (rangeEvent, onSelect, chartData, trellisKey, trellisSplitBy) => {
|
|
2358
|
+
var _a;
|
|
2359
|
+
const xData = ((_a = chartData == null ? void 0 : chartData.columns) == null ? void 0 : _a[0]) || [];
|
|
2360
|
+
const { startXIndex, endXIndex } = findRangeIndices(xData, rangeEvent.start, rangeEvent.end);
|
|
2361
|
+
const payload = {
|
|
2362
|
+
startXIndex,
|
|
2363
|
+
startXValue: rangeEvent.start,
|
|
2364
|
+
endXIndex,
|
|
2365
|
+
endXValue: rangeEvent.end
|
|
2366
|
+
};
|
|
2367
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
2368
|
+
if (onSelect) {
|
|
2369
|
+
onSelect({
|
|
2370
|
+
type: "range.select",
|
|
2371
|
+
originalEvent: rangeEvent,
|
|
2372
|
+
payload: updatedPayload
|
|
2373
|
+
});
|
|
2374
|
+
}
|
|
2375
|
+
};
|
|
2376
|
+
var parseArrayOption = (value) => {
|
|
2377
|
+
if (Array.isArray(value)) {
|
|
2378
|
+
return value;
|
|
2379
|
+
}
|
|
2380
|
+
if (value) {
|
|
2381
|
+
return JSON.parse(value);
|
|
2382
|
+
}
|
|
2383
|
+
return void 0;
|
|
2384
|
+
};
|
|
2166
2385
|
var TimeSeriesChartWrapper = (props) => {
|
|
2167
|
-
|
|
2168
|
-
const {
|
|
2386
|
+
var _b, _c, _d;
|
|
2387
|
+
const _a = props, {
|
|
2388
|
+
width,
|
|
2389
|
+
height,
|
|
2390
|
+
chartData,
|
|
2391
|
+
options,
|
|
2392
|
+
userLocale,
|
|
2393
|
+
annotationX,
|
|
2394
|
+
annotationLabel,
|
|
2395
|
+
annotationColor,
|
|
2396
|
+
legendDisplay,
|
|
2397
|
+
markerDisplay,
|
|
2398
|
+
onClick,
|
|
2399
|
+
onPointMouseOver,
|
|
2400
|
+
onPointMouseOut,
|
|
2401
|
+
onSelect,
|
|
2402
|
+
splitByLayout,
|
|
2403
|
+
trellisKey,
|
|
2404
|
+
trellisSplitBy,
|
|
2169
2405
|
backgroundColor,
|
|
2406
|
+
defaultFontColor,
|
|
2407
|
+
additionalTooltipValues,
|
|
2408
|
+
showYAxisWithZero: showYAxisWithZeroFromProps,
|
|
2409
|
+
showY2AxisWithZero: showY2AxisWithZeroFromProps
|
|
2410
|
+
} = _a, otherOptions = __objRest(_a, [
|
|
2411
|
+
"width",
|
|
2412
|
+
"height",
|
|
2413
|
+
"chartData",
|
|
2414
|
+
"options",
|
|
2415
|
+
"userLocale",
|
|
2416
|
+
"annotationX",
|
|
2417
|
+
"annotationLabel",
|
|
2418
|
+
"annotationColor",
|
|
2419
|
+
"legendDisplay",
|
|
2420
|
+
"markerDisplay",
|
|
2421
|
+
"onClick",
|
|
2422
|
+
"onPointMouseOver",
|
|
2423
|
+
"onPointMouseOut",
|
|
2424
|
+
"onSelect",
|
|
2425
|
+
"splitByLayout",
|
|
2426
|
+
"trellisKey",
|
|
2427
|
+
"trellisSplitBy",
|
|
2428
|
+
"backgroundColor",
|
|
2429
|
+
"defaultFontColor",
|
|
2430
|
+
"additionalTooltipValues",
|
|
2431
|
+
// Extract showYAxisWithZero directly from props for accelerated render mode
|
|
2432
|
+
"showYAxisWithZero",
|
|
2433
|
+
"showY2AxisWithZero"
|
|
2434
|
+
]);
|
|
2435
|
+
const { eventHandlers, xField: xFieldFromProps } = otherOptions;
|
|
2436
|
+
const trellisEnabled = useTrellisEnabled(splitByLayout);
|
|
2437
|
+
const {
|
|
2438
|
+
backgroundColor: bgColorFromOptions,
|
|
2170
2439
|
seriesColors: seriesColorsStr,
|
|
2171
2440
|
fieldColors,
|
|
2441
|
+
legendLabels: legendLabelsStr,
|
|
2442
|
+
legendMode,
|
|
2172
2443
|
"axisTitleX.text": xAxisTitleText,
|
|
2173
2444
|
"axisTitleY.text": yAxisTitleText,
|
|
2174
2445
|
"axisTitleY2.text": y2AxisTitleText,
|
|
2175
2446
|
"axisTitleX.visibility": xAxisTitleVisibility,
|
|
2176
2447
|
"axisTitleY.visibility": yAxisTitleVisibility,
|
|
2177
2448
|
"axisTitleY2.visibility": y2AxisTitleVisibility,
|
|
2449
|
+
"axisLabelsX.majorLabelVisibility": xAxisLabelVisibility,
|
|
2450
|
+
"axisLabelsX.majorLabelStyle.rotation": xAxisLabelRotation,
|
|
2451
|
+
"axisLabelsY.majorLabelVisibility": yAxisLabelVisibility,
|
|
2452
|
+
"axisLabelsY.majorUnit": yAxisMajorUnitFromSimpleXML,
|
|
2453
|
+
"axisLabelsY2.majorLabelVisibility": y2AxisLabelVisibility,
|
|
2454
|
+
"axisLabelsY2.majorUnit": y2AxisMajorUnitFromSimpleXML,
|
|
2178
2455
|
"axisY.abbreviation": yAxisAbbreviation,
|
|
2179
2456
|
"axisY.scale": yAxisScale,
|
|
2180
2457
|
"axisY2.abbreviation": y2AxisAbbreviation,
|
|
@@ -2184,10 +2461,63 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2184
2461
|
"axisLabelsY2.integerUnits": y2IntegerUnits,
|
|
2185
2462
|
"chart.overlayFields": overlayFieldsStr,
|
|
2186
2463
|
"chart.nullValueMode": nullValueMode,
|
|
2187
|
-
|
|
2464
|
+
"chart.showDataLabels": showDataLabels,
|
|
2465
|
+
lineWidth,
|
|
2466
|
+
lineDashStyle,
|
|
2467
|
+
fieldDashStyles: lineDashStylesByFieldStr,
|
|
2468
|
+
yAxisMin: yAxisMinRaw,
|
|
2469
|
+
yAxisMax: yAxisMaxRaw,
|
|
2470
|
+
y2AxisMin: y2AxisMinRaw,
|
|
2471
|
+
y2AxisMax: y2AxisMaxRaw,
|
|
2472
|
+
showXMajorGridLines,
|
|
2473
|
+
showYMajorGridLines,
|
|
2474
|
+
showY2MajorGridLines,
|
|
2475
|
+
showYMinorGridLines,
|
|
2476
|
+
showY2MinorGridLines,
|
|
2477
|
+
showLineSmoothing,
|
|
2478
|
+
yAxisMajorTickVisibility,
|
|
2479
|
+
y2AxisMajorTickVisibility,
|
|
2480
|
+
yAxisMajorTickSize,
|
|
2481
|
+
y2AxisMajorTickSize,
|
|
2482
|
+
yAxisMajorTickInterval,
|
|
2483
|
+
y2AxisMajorTickInterval,
|
|
2484
|
+
yAxisMinorTickVisibility,
|
|
2485
|
+
y2AxisMinorTickVisibility,
|
|
2486
|
+
yAxisMinorTickSize,
|
|
2487
|
+
y2AxisMinorTickSize,
|
|
2488
|
+
showYAxisWithZero: showYAxisWithZeroFromOptions,
|
|
2489
|
+
showY2AxisWithZero: showY2AxisWithZeroFromOptions
|
|
2188
2490
|
} = options;
|
|
2491
|
+
const dataValuesDisplay = showDataLabels === "none" ? "off" : showDataLabels;
|
|
2492
|
+
const showYAxisWithZero = showYAxisWithZeroFromProps != null ? showYAxisWithZeroFromProps : showYAxisWithZeroFromOptions;
|
|
2493
|
+
const showY2AxisWithZero = showY2AxisWithZeroFromProps != null ? showY2AxisWithZeroFromProps : showY2AxisWithZeroFromOptions;
|
|
2494
|
+
const showYMajorTicks = yAxisMajorTickVisibility === "show";
|
|
2495
|
+
const showY2MajorTicks = y2AxisMajorTickVisibility === "show";
|
|
2496
|
+
const showYMinorTicks = yAxisMinorTickVisibility === "show";
|
|
2497
|
+
const showY2MinorTicks = y2AxisMinorTickVisibility === "show";
|
|
2498
|
+
const yAxisMin = parseAxisValue(yAxisMinRaw);
|
|
2499
|
+
const yAxisMax = parseAxisValue(yAxisMaxRaw);
|
|
2500
|
+
const y2AxisMin = parseAxisValue(y2AxisMinRaw);
|
|
2501
|
+
const y2AxisMax = parseAxisValue(y2AxisMaxRaw);
|
|
2502
|
+
const parseTickInterval = (simpleXMLValue, canvasValue) => {
|
|
2503
|
+
if (simpleXMLValue) return Number(simpleXMLValue);
|
|
2504
|
+
if (canvasValue) return Number(canvasValue);
|
|
2505
|
+
return void 0;
|
|
2506
|
+
};
|
|
2507
|
+
const yAxisMajorTickIntervalNum = parseTickInterval(yAxisMajorUnitFromSimpleXML, yAxisMajorTickInterval);
|
|
2508
|
+
const y2AxisMajorTickIntervalNum = parseTickInterval(
|
|
2509
|
+
y2AxisMajorUnitFromSimpleXML,
|
|
2510
|
+
y2AxisMajorTickInterval
|
|
2511
|
+
);
|
|
2512
|
+
const yAxisMajorTickSizeNum = yAxisMajorTickSize ? Number(yAxisMajorTickSize) : void 0;
|
|
2513
|
+
const y2AxisMajorTickSizeNum = y2AxisMajorTickSize ? Number(y2AxisMajorTickSize) : void 0;
|
|
2514
|
+
const yAxisMinorTickSizeNum = yAxisMinorTickSize ? Number(yAxisMinorTickSize) : void 0;
|
|
2515
|
+
const y2AxisMinorTickSizeNum = y2AxisMinorTickSize ? Number(y2AxisMinorTickSize) : void 0;
|
|
2189
2516
|
const seriesColors = seriesColorsStr ? JSON.parse(seriesColorsStr) : void 0;
|
|
2190
2517
|
const seriesColorsByField = fieldColors ? JSON.parse(fieldColors) : void 0;
|
|
2518
|
+
const lineDashStylesByField = lineDashStylesByFieldStr ? JSON.parse(lineDashStylesByFieldStr) : void 0;
|
|
2519
|
+
const legendLabels = parseArrayOption(legendLabelsStr);
|
|
2520
|
+
const bgColor = backgroundColor || bgColorFromOptions;
|
|
2191
2521
|
const [containerWidth, setContainerWidth] = react_exports.useState(Number(props.width));
|
|
2192
2522
|
const [containerHeight, setContainerHeight] = react_exports.useState(Number(props.height));
|
|
2193
2523
|
const cachedHandleResize = react_exports.useCallback((w, h) => {
|
|
@@ -2198,25 +2528,64 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2198
2528
|
fields: chartData.fields,
|
|
2199
2529
|
columns: chartData.seriesList
|
|
2200
2530
|
});
|
|
2201
|
-
const xField =
|
|
2531
|
+
const xField = getFieldName2(filteredChartData.fields[0]);
|
|
2202
2532
|
const yFields = getFieldNames(
|
|
2203
2533
|
filteredChartData.fields.length > 1 ? filteredChartData.fields.slice(1) : []
|
|
2204
2534
|
);
|
|
2205
|
-
const y2Fields =
|
|
2206
|
-
|
|
2535
|
+
const y2Fields = (0, react_exports.useMemo)(
|
|
2536
|
+
() => y2FieldsStr ? y2FieldsStr.split(",").map((f) => f.trim()) : [],
|
|
2537
|
+
[y2FieldsStr]
|
|
2538
|
+
);
|
|
2539
|
+
const overlayFields = (0, react_exports.useMemo)(
|
|
2540
|
+
() => overlayFieldsStr ? overlayFieldsStr.split(",").map((f) => f.trim()) : [],
|
|
2541
|
+
[overlayFieldsStr]
|
|
2542
|
+
);
|
|
2207
2543
|
let xAxisTitle = getComputedAxisTitles(xAxisTitleText, [xField], xAxisTitleVisibility);
|
|
2208
2544
|
xAxisTitle = ellipsisAxisTitle(xAxisTitle, containerWidth);
|
|
2209
|
-
|
|
2545
|
+
const yFieldsForTitle = y2Enabled ? yFields.filter((field) => !y2Fields.includes(field)) : yFields;
|
|
2546
|
+
let yAxisTitle = getComputedAxisTitles(yAxisTitleText, yFieldsForTitle, yAxisTitleVisibility);
|
|
2210
2547
|
yAxisTitle = ellipsisAxisTitle(yAxisTitle, containerHeight);
|
|
2211
2548
|
const fieldsForY2Axis = y2Fields.length > 0 ? y2Fields : overlayFields;
|
|
2212
2549
|
let y2AxisTitle = getComputedAxisTitles(y2AxisTitleText, fieldsForY2Axis, y2AxisTitleVisibility);
|
|
2213
2550
|
y2AxisTitle = ellipsisAxisTitle(y2AxisTitle, containerHeight);
|
|
2214
|
-
const xScaleConfig =
|
|
2215
|
-
|
|
2216
|
-
|
|
2217
|
-
|
|
2218
|
-
|
|
2219
|
-
|
|
2551
|
+
const xScaleConfig = (0, react_exports.useMemo)(
|
|
2552
|
+
() => getXScaleConfig(xAxisTitle, xAxisLabelVisibility, xAxisLabelRotation),
|
|
2553
|
+
[xAxisTitle, xAxisLabelVisibility, xAxisLabelRotation]
|
|
2554
|
+
);
|
|
2555
|
+
const yScaleConfig = (0, react_exports.useMemo)(
|
|
2556
|
+
() => getYScaleConfig(
|
|
2557
|
+
yAxisTitle,
|
|
2558
|
+
yAxisAbbreviation,
|
|
2559
|
+
yAxisScale,
|
|
2560
|
+
yAxisLabelVisibility,
|
|
2561
|
+
yAxisMin,
|
|
2562
|
+
yAxisMax
|
|
2563
|
+
),
|
|
2564
|
+
[yAxisTitle, yAxisAbbreviation, yAxisScale, yAxisLabelVisibility, yAxisMin, yAxisMax]
|
|
2565
|
+
);
|
|
2566
|
+
const y2ScaleConfig = (0, react_exports.useMemo)(() => {
|
|
2567
|
+
if (y2Enabled) {
|
|
2568
|
+
return getY2ScaleConfig(
|
|
2569
|
+
y2AxisTitle,
|
|
2570
|
+
y2AxisAbbreviation,
|
|
2571
|
+
y2AxisScale,
|
|
2572
|
+
y2IntegerUnits,
|
|
2573
|
+
y2AxisLabelVisibility,
|
|
2574
|
+
y2AxisMin,
|
|
2575
|
+
y2AxisMax
|
|
2576
|
+
);
|
|
2577
|
+
}
|
|
2578
|
+
return {};
|
|
2579
|
+
}, [
|
|
2580
|
+
y2Enabled,
|
|
2581
|
+
y2AxisTitle,
|
|
2582
|
+
y2AxisAbbreviation,
|
|
2583
|
+
y2AxisScale,
|
|
2584
|
+
y2IntegerUnits,
|
|
2585
|
+
y2AxisLabelVisibility,
|
|
2586
|
+
y2AxisMin,
|
|
2587
|
+
y2AxisMax
|
|
2588
|
+
]);
|
|
2220
2589
|
const uplotContainerElement = (0, react_exports.useRef)(null);
|
|
2221
2590
|
const seriesDataFormatted = [
|
|
2222
2591
|
filteredChartData.columns[0],
|
|
@@ -2224,24 +2593,140 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2224
2593
|
];
|
|
2225
2594
|
chartData.fields = filteredChartData.fields;
|
|
2226
2595
|
chartData.columns = seriesDataFormatted;
|
|
2227
|
-
const seriesOverrides =
|
|
2228
|
-
|
|
2229
|
-
|
|
2230
|
-
|
|
2231
|
-
|
|
2232
|
-
|
|
2233
|
-
|
|
2596
|
+
const seriesOverrides = (0, react_exports.useMemo)(
|
|
2597
|
+
() => getSeriesOverrides(
|
|
2598
|
+
yFields,
|
|
2599
|
+
y2Fields,
|
|
2600
|
+
lineWidth,
|
|
2601
|
+
overlayFields,
|
|
2602
|
+
y2Enabled,
|
|
2603
|
+
nullValueMode,
|
|
2604
|
+
markerDisplay,
|
|
2605
|
+
lineDashStyle,
|
|
2606
|
+
lineDashStylesByField
|
|
2607
|
+
),
|
|
2608
|
+
[
|
|
2609
|
+
yFields,
|
|
2610
|
+
y2Fields,
|
|
2611
|
+
lineWidth,
|
|
2612
|
+
overlayFields,
|
|
2613
|
+
y2Enabled,
|
|
2614
|
+
nullValueMode,
|
|
2615
|
+
markerDisplay,
|
|
2616
|
+
lineDashStyle,
|
|
2617
|
+
lineDashStylesByField
|
|
2618
|
+
]
|
|
2234
2619
|
);
|
|
2235
|
-
const chartingEventAnnotations =
|
|
2236
|
-
|
|
2237
|
-
|
|
2238
|
-
|
|
2239
|
-
|
|
2240
|
-
|
|
2241
|
-
|
|
2242
|
-
|
|
2243
|
-
|
|
2244
|
-
|
|
2620
|
+
const chartingEventAnnotations = (0, react_exports.useMemo)(
|
|
2621
|
+
() => getAnnotationsForCanvas({
|
|
2622
|
+
annotationX,
|
|
2623
|
+
annotationColor,
|
|
2624
|
+
annotationLabel
|
|
2625
|
+
}),
|
|
2626
|
+
[annotationX, annotationColor, annotationLabel]
|
|
2627
|
+
);
|
|
2628
|
+
const scaleConfig = (0, react_exports.useMemo)(
|
|
2629
|
+
() => __spreadValues(__spreadValues(__spreadValues({}, xScaleConfig), yScaleConfig), y2ScaleConfig),
|
|
2630
|
+
[xScaleConfig, yScaleConfig, y2ScaleConfig]
|
|
2631
|
+
);
|
|
2632
|
+
const legend = (0, react_exports.useMemo)(
|
|
2633
|
+
() => getLegend({ legendDisplay, isSeriesCompare: legendMode === "seriesCompare" }),
|
|
2634
|
+
[legendDisplay, legendMode]
|
|
2635
|
+
);
|
|
2636
|
+
const handleChartClick = react_exports.useCallback(
|
|
2637
|
+
(event) => {
|
|
2638
|
+
if (onClick) {
|
|
2639
|
+
handleClick(event, onClick, trellisKey, trellisSplitBy);
|
|
2640
|
+
}
|
|
2641
|
+
},
|
|
2642
|
+
[onClick, trellisKey, trellisSplitBy]
|
|
2643
|
+
);
|
|
2644
|
+
const handleChartLegendClick = react_exports.useCallback(
|
|
2645
|
+
(event) => {
|
|
2646
|
+
if (onClick) {
|
|
2647
|
+
handleLegendClick(event, onClick, trellisKey, trellisSplitBy);
|
|
2648
|
+
}
|
|
2649
|
+
},
|
|
2650
|
+
[onClick, trellisKey, trellisSplitBy]
|
|
2651
|
+
);
|
|
2652
|
+
const handleChartRangeSelection = react_exports.useCallback(
|
|
2653
|
+
(range2) => {
|
|
2654
|
+
if (onSelect) {
|
|
2655
|
+
handleRangeSelection(range2, onSelect, chartData, trellisKey, trellisSplitBy);
|
|
2656
|
+
}
|
|
2657
|
+
},
|
|
2658
|
+
[onSelect, chartData, trellisKey, trellisSplitBy]
|
|
2659
|
+
);
|
|
2660
|
+
const handleChartRangeZoom = react_exports.useCallback(
|
|
2661
|
+
(range2) => {
|
|
2662
|
+
if (onSelect) {
|
|
2663
|
+
handleRangeZoom(range2, onSelect, chartData, trellisKey, trellisSplitBy);
|
|
2664
|
+
}
|
|
2665
|
+
},
|
|
2666
|
+
[onSelect, chartData, trellisKey, trellisSplitBy]
|
|
2667
|
+
);
|
|
2668
|
+
const xFieldToUse = xFieldFromProps || xField;
|
|
2669
|
+
const enableSearchZoom = react_exports.useMemo(
|
|
2670
|
+
() => shouldEnableSearchZoom(eventHandlers, xFieldToUse),
|
|
2671
|
+
[eventHandlers, xFieldToUse]
|
|
2672
|
+
);
|
|
2673
|
+
const lastPayloadRef = react_exports.useRef(null);
|
|
2674
|
+
const lastOriginalEventRef = react_exports.useRef(null);
|
|
2675
|
+
const previousMouseoverPayloadRef = react_exports.useRef(null);
|
|
2676
|
+
const additionalTooltipValuesRef = react_exports.useRef(additionalTooltipValues);
|
|
2677
|
+
react_exports.useEffect(() => {
|
|
2678
|
+
additionalTooltipValuesRef.current = additionalTooltipValues;
|
|
2679
|
+
}, [additionalTooltipValues]);
|
|
2680
|
+
const handleChartCrosshairChange = react_exports.useCallback(
|
|
2681
|
+
(event) => {
|
|
2682
|
+
if (onPointMouseOver || onPointMouseOut) {
|
|
2683
|
+
if (!event) {
|
|
2684
|
+
if (onPointMouseOut && lastPayloadRef.current) {
|
|
2685
|
+
onPointMouseOut({
|
|
2686
|
+
type: "point.mouseout",
|
|
2687
|
+
originalEvent: lastOriginalEventRef.current,
|
|
2688
|
+
payload: lastPayloadRef.current
|
|
2689
|
+
});
|
|
2690
|
+
}
|
|
2691
|
+
previousMouseoverPayloadRef.current = null;
|
|
2692
|
+
return;
|
|
2693
|
+
}
|
|
2694
|
+
const payload = __spreadProps(__spreadValues({}, (0, lodash_exports.pick)(event, "value", "seriesKey", "time", "index", "seriesIndex")), {
|
|
2695
|
+
name: event.seriesKey
|
|
2696
|
+
});
|
|
2697
|
+
delete payload.seriesKey;
|
|
2698
|
+
if (event.rowContext) {
|
|
2699
|
+
Object.assign(
|
|
2700
|
+
payload,
|
|
2701
|
+
Object.keys(event.rowContext).reduce((acc, fieldName) => {
|
|
2702
|
+
acc[`row.${fieldName}.value`] = event.rowContext[fieldName];
|
|
2703
|
+
return acc;
|
|
2704
|
+
}, {})
|
|
2705
|
+
);
|
|
2706
|
+
}
|
|
2707
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
2708
|
+
if (!hasMouseoverPayloadChanged(updatedPayload, previousMouseoverPayloadRef.current)) {
|
|
2709
|
+
return;
|
|
2710
|
+
}
|
|
2711
|
+
lastPayloadRef.current = updatedPayload;
|
|
2712
|
+
lastOriginalEventRef.current = event;
|
|
2713
|
+
previousMouseoverPayloadRef.current = __spreadValues({}, updatedPayload);
|
|
2714
|
+
if (onPointMouseOver) {
|
|
2715
|
+
onPointMouseOver({
|
|
2716
|
+
type: "point.mouseover",
|
|
2717
|
+
originalEvent: event,
|
|
2718
|
+
payload: updatedPayload
|
|
2719
|
+
});
|
|
2720
|
+
}
|
|
2721
|
+
}
|
|
2722
|
+
},
|
|
2723
|
+
[onPointMouseOver, onPointMouseOut, trellisKey, trellisSplitBy]
|
|
2724
|
+
);
|
|
2725
|
+
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}`;
|
|
2726
|
+
const memoizedChart = (0, react_exports.useMemo)(() => {
|
|
2727
|
+
const computedOnRangeZoom = onSelect ? handleChartRangeZoom : void 0;
|
|
2728
|
+
return /* @__PURE__ */ react_exports.createElement(visualization_canvas_exports.RangeSelectionProvider, { key: dataKey }, /* @__PURE__ */ react_exports.createElement(
|
|
2729
|
+
visualization_canvas_exports.TimeSeriesChart,
|
|
2245
2730
|
{
|
|
2246
2731
|
data: chartData,
|
|
2247
2732
|
width: containerWidth,
|
|
@@ -2249,49 +2734,113 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2249
2734
|
seriesColors,
|
|
2250
2735
|
seriesColorsByField,
|
|
2251
2736
|
seriesConfig: seriesOverrides,
|
|
2252
|
-
legend
|
|
2737
|
+
legend,
|
|
2738
|
+
legendLabels,
|
|
2739
|
+
isSeriesCompare: legendMode === "seriesCompare",
|
|
2740
|
+
maxSeriesFocus: legendMode === "seriesCompare" ? 0 : void 0,
|
|
2253
2741
|
scaleConfig,
|
|
2254
2742
|
timestampFormat: "expanded",
|
|
2255
|
-
onCrosshairClick:
|
|
2256
|
-
|
|
2743
|
+
onCrosshairClick: onClick ? handleChartClick : void 0,
|
|
2744
|
+
onCrosshairChange: onPointMouseOver || onPointMouseOut ? handleChartCrosshairChange : void 0,
|
|
2745
|
+
onSeriesClick: onClick ? handleChartLegendClick : void 0,
|
|
2746
|
+
onRangeSelection: handleChartRangeSelection,
|
|
2747
|
+
onRangeZoom: computedOnRangeZoom,
|
|
2748
|
+
serverSideZoom: enableSearchZoom,
|
|
2257
2749
|
userLocale,
|
|
2258
2750
|
events: chartingEventAnnotations,
|
|
2259
|
-
eventsConfig: { renderer: triangleEventAnnotationRenderer }
|
|
2751
|
+
eventsConfig: { renderer: triangleEventAnnotationRenderer },
|
|
2752
|
+
additionalTooltipValuesRef,
|
|
2753
|
+
showXMajorGridLines,
|
|
2754
|
+
showYMajorGridLines,
|
|
2755
|
+
showY2MajorGridLines,
|
|
2756
|
+
showYMinorGridLines,
|
|
2757
|
+
showY2MinorGridLines,
|
|
2758
|
+
showLineSmoothing,
|
|
2759
|
+
dataValuesDisplay,
|
|
2760
|
+
showYMajorTicks,
|
|
2761
|
+
showY2MajorTicks,
|
|
2762
|
+
yAxisMajorTickSize: yAxisMajorTickSizeNum,
|
|
2763
|
+
y2AxisMajorTickSize: y2AxisMajorTickSizeNum,
|
|
2764
|
+
yAxisMajorTickInterval: yAxisMajorTickIntervalNum,
|
|
2765
|
+
y2AxisMajorTickInterval: y2AxisMajorTickIntervalNum,
|
|
2766
|
+
showYMinorTicks,
|
|
2767
|
+
showY2MinorTicks,
|
|
2768
|
+
yAxisMinorTickSize: yAxisMinorTickSizeNum,
|
|
2769
|
+
y2AxisMinorTickSize: y2AxisMinorTickSizeNum,
|
|
2770
|
+
showYAxisWithZero,
|
|
2771
|
+
showY2AxisWithZero
|
|
2260
2772
|
}
|
|
2261
|
-
)
|
|
2262
|
-
|
|
2263
|
-
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2274
|
-
|
|
2275
|
-
|
|
2276
|
-
|
|
2773
|
+
));
|
|
2774
|
+
}, [
|
|
2775
|
+
onSelect,
|
|
2776
|
+
handleChartRangeZoom,
|
|
2777
|
+
dataKey,
|
|
2778
|
+
chartData,
|
|
2779
|
+
containerWidth,
|
|
2780
|
+
containerHeight,
|
|
2781
|
+
seriesColors,
|
|
2782
|
+
seriesColorsByField,
|
|
2783
|
+
seriesOverrides,
|
|
2784
|
+
legend,
|
|
2785
|
+
legendLabels,
|
|
2786
|
+
scaleConfig,
|
|
2787
|
+
onClick,
|
|
2788
|
+
handleChartClick,
|
|
2789
|
+
onPointMouseOver,
|
|
2790
|
+
onPointMouseOut,
|
|
2791
|
+
handleChartCrosshairChange,
|
|
2792
|
+
handleChartLegendClick,
|
|
2793
|
+
handleChartRangeSelection,
|
|
2794
|
+
enableSearchZoom,
|
|
2795
|
+
userLocale,
|
|
2796
|
+
chartingEventAnnotations,
|
|
2797
|
+
showXMajorGridLines,
|
|
2798
|
+
showYMajorGridLines,
|
|
2799
|
+
showY2MajorGridLines,
|
|
2800
|
+
showYMinorGridLines,
|
|
2801
|
+
showY2MinorGridLines,
|
|
2802
|
+
showLineSmoothing,
|
|
2803
|
+
dataValuesDisplay,
|
|
2804
|
+
showYMajorTicks,
|
|
2805
|
+
showY2MajorTicks,
|
|
2806
|
+
yAxisMajorTickSizeNum,
|
|
2807
|
+
y2AxisMajorTickSizeNum,
|
|
2808
|
+
yAxisMajorTickIntervalNum,
|
|
2809
|
+
y2AxisMajorTickIntervalNum,
|
|
2810
|
+
showYMinorTicks,
|
|
2811
|
+
showY2MinorTicks,
|
|
2812
|
+
yAxisMinorTickSizeNum,
|
|
2813
|
+
y2AxisMinorTickSizeNum,
|
|
2814
|
+
showYAxisWithZero,
|
|
2815
|
+
showY2AxisWithZero,
|
|
2816
|
+
legendMode
|
|
2817
|
+
]);
|
|
2277
2818
|
const memoizedVisualization = (0, react_exports.useMemo)(() => {
|
|
2278
|
-
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor }, memoizedChart);
|
|
2279
|
-
}, [
|
|
2280
|
-
return /* @__PURE__ */ react_exports.createElement(
|
|
2819
|
+
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor: bgColor }, memoizedChart);
|
|
2820
|
+
}, [bgColor, memoizedChart]);
|
|
2821
|
+
return /* @__PURE__ */ react_exports.createElement(react_exports.Fragment, null, trellisEnabled && /* @__PURE__ */ react_exports.createElement(
|
|
2822
|
+
TrellisTitle,
|
|
2823
|
+
{
|
|
2824
|
+
trellisKey,
|
|
2825
|
+
backgroundColor: bgColor,
|
|
2826
|
+
fontColor: defaultFontColor
|
|
2827
|
+
}
|
|
2828
|
+
), /* @__PURE__ */ react_exports.createElement(
|
|
2281
2829
|
TimeSeriesChartContainer,
|
|
2282
2830
|
{
|
|
2283
|
-
height,
|
|
2831
|
+
height: trellisEnabled ? Number(height) - TRELLIS_TITLE_HEIGHT : height,
|
|
2284
2832
|
width,
|
|
2285
2833
|
ref: uplotContainerElement,
|
|
2286
2834
|
"data-test": "timeseries-chart-wrapper"
|
|
2287
2835
|
},
|
|
2288
2836
|
/* @__PURE__ */ react_exports.createElement(SizeAwareWrapper_default, { width, height, onResize: cachedHandleResize }),
|
|
2289
2837
|
memoizedVisualization
|
|
2290
|
-
);
|
|
2838
|
+
));
|
|
2291
2839
|
};
|
|
2292
2840
|
var TimeSeriesChartWrapper_default = TimeSeriesChartWrapper;
|
|
2293
2841
|
|
|
2294
2842
|
// src/common/withDashboardViz.tsx
|
|
2843
|
+
var SanitizedTimeSeriesChartWrapper = (0, SanitizeProps_exports.withSanitizedProps)(TimeSeriesChartWrapper_default);
|
|
2295
2844
|
var withDashboardViz = (opts) => {
|
|
2296
2845
|
const {
|
|
2297
2846
|
ReactViz,
|
|
@@ -2300,6 +2849,7 @@ var withDashboardViz = (opts) => {
|
|
|
2300
2849
|
},
|
|
2301
2850
|
computeVizPropsBeforeEval = () => {
|
|
2302
2851
|
},
|
|
2852
|
+
computeDataFrames,
|
|
2303
2853
|
disableEditModeCover,
|
|
2304
2854
|
useIconPlaceholder
|
|
2305
2855
|
} = opts;
|
|
@@ -2428,11 +2978,19 @@ var withDashboardViz = (opts) => {
|
|
|
2428
2978
|
);
|
|
2429
2979
|
setDataFramesInState(dataFrames);
|
|
2430
2980
|
}
|
|
2981
|
+
let mergedFrames = dataFrames;
|
|
2982
|
+
if (computeDataFrames && dataFrames) {
|
|
2983
|
+
const derivedFrames = computeDataFrames({
|
|
2984
|
+
dataSources: downsampledDataSources,
|
|
2985
|
+
options: optionsToEvaluate.options
|
|
2986
|
+
});
|
|
2987
|
+
mergedFrames = __spreadValues(__spreadValues({}, dataFrames), derivedFrames);
|
|
2988
|
+
}
|
|
2431
2989
|
const result = Options_exports.Options.evaluate(
|
|
2432
2990
|
optionsToEvaluate,
|
|
2433
2991
|
downsampledDataSources,
|
|
2434
2992
|
themeFunc,
|
|
2435
|
-
|
|
2993
|
+
mergedFrames,
|
|
2436
2994
|
getFeatureFlag(featureFlagContext, "visualizations_bypassCloneDeepOptionScope")
|
|
2437
2995
|
);
|
|
2438
2996
|
return result;
|
|
@@ -2520,7 +3078,7 @@ var withDashboardViz = (opts) => {
|
|
|
2520
3078
|
});
|
|
2521
3079
|
}
|
|
2522
3080
|
eventCallbackProps[eventCallbackPropName] = (ev) => {
|
|
2523
|
-
if (ev
|
|
3081
|
+
if (ev == null ? void 0 : ev.payload) {
|
|
2524
3082
|
payload = __spreadValues({}, ev.payload);
|
|
2525
3083
|
}
|
|
2526
3084
|
return onEventTrigger({
|
|
@@ -2544,10 +3102,7 @@ var withDashboardViz = (opts) => {
|
|
|
2544
3102
|
if (useAsyncEvaluatedOptions && Object.keys(evaluatedOptionsToUse).length === 0) {
|
|
2545
3103
|
return null;
|
|
2546
3104
|
}
|
|
2547
|
-
|
|
2548
|
-
if (isAcceleratedRenderOn) {
|
|
2549
|
-
SanitizedViz = (0, SanitizeProps_exports.withSanitizedProps)(TimeSeriesChartWrapper_default);
|
|
2550
|
-
}
|
|
3105
|
+
const SanitizedViz = isAcceleratedRenderOn ? SanitizedTimeSeriesChartWrapper : SanitizedReactViz;
|
|
2551
3106
|
return /* @__PURE__ */ react_exports.createElement(
|
|
2552
3107
|
SanitizedViz,
|
|
2553
3108
|
__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues({}, SplunkVisualization_default.defaults), {
|
|
@@ -3077,48 +3632,6 @@ ValueMarker.propTypes = {
|
|
|
3077
3632
|
};
|
|
3078
3633
|
var GaugeValueMarker_default = ValueMarker;
|
|
3079
3634
|
|
|
3080
|
-
// src/common/hooks/useTrellisEnabled.ts
|
|
3081
|
-
var useTrellisFeatureFlagOn = () => {
|
|
3082
|
-
const context = (0, react_exports.useContext)(FeatureFlagContext_default);
|
|
3083
|
-
return Boolean(context == null ? void 0 : context.visualizations_enableTrellis);
|
|
3084
|
-
};
|
|
3085
|
-
var useTrellisEnabled = (layoutType = visualization_schemas_exports.LAYOUT_TYPE.Off) => {
|
|
3086
|
-
const trellisFeatureEnabled = useTrellisFeatureFlagOn();
|
|
3087
|
-
return trellisFeatureEnabled && layoutType === visualization_schemas_exports.LAYOUT_TYPE.Trellis;
|
|
3088
|
-
};
|
|
3089
|
-
|
|
3090
|
-
// src/common/components/TrellisTitle.tsx
|
|
3091
|
-
var TRELLIS_TITLE_HEIGHT = 28;
|
|
3092
|
-
var TrellisTitleText = styled_components_default.div`
|
|
3093
|
-
margin-left: 10px;
|
|
3094
|
-
margin-right: 10px;
|
|
3095
|
-
padding-top: 8px;
|
|
3096
|
-
text-overflow: ellipsis;
|
|
3097
|
-
white-space: nowrap;
|
|
3098
|
-
overflow: hidden;
|
|
3099
|
-
`;
|
|
3100
|
-
var TrellisTitleDiv = styled_components_default.div`
|
|
3101
|
-
height: ${TRELLIS_TITLE_HEIGHT}px;
|
|
3102
|
-
font-size: 14px;
|
|
3103
|
-
font-weight: 700;
|
|
3104
|
-
color: ${(props) => props.fontColor};
|
|
3105
|
-
background-color: ${(props) => props.backgroundColor};
|
|
3106
|
-
box-shadow: 0 1px ${(props) => props.backgroundColor}; // this is added to avoid a 1px gap between title and viz divs that showed up intermittently because of pixel rounding error in chrome.
|
|
3107
|
-
`;
|
|
3108
|
-
var TrellisTitle = (props) => {
|
|
3109
|
-
const titleText = String(props.trellisKey).toString();
|
|
3110
|
-
return /* @__PURE__ */ react_exports.createElement(
|
|
3111
|
-
TrellisTitleDiv,
|
|
3112
|
-
{
|
|
3113
|
-
fontColor: props.fontColor,
|
|
3114
|
-
backgroundColor: props.backgroundColor,
|
|
3115
|
-
"data-test": "trellis-title",
|
|
3116
|
-
title: titleText
|
|
3117
|
-
},
|
|
3118
|
-
/* @__PURE__ */ react_exports.createElement(TrellisTitleText, null, titleText)
|
|
3119
|
-
);
|
|
3120
|
-
};
|
|
3121
|
-
|
|
3122
3635
|
// src/FillerGauge/PureFillerGauge/FillerGauge.tsx
|
|
3123
3636
|
var Container = styled_components_default.div`
|
|
3124
3637
|
overflow: hidden;
|