@splunk/visualizations 28.2.2 → 28.3.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.js +261 -130
- 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.js +261 -130
- 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.js +257 -126
- package/Bubble.js.map +4 -4
- package/CHANGELOG.external.md +37 -0
- 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.js +167 -51
- package/ChoroplethSvg.js.map +2 -2
- 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.js +261 -130
- 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 +166 -48
- package/Ellipse.js.map +2 -2
- 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 +263 -139
- package/Events.js.map +2 -2
- 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 +166 -48
- package/FillerGauge.js.map +2 -2
- 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 +169 -51
- package/Image.js.map +2 -2
- 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/Line/mockdata/LineData.d.ts.map +1 -0
- package/Line.js +261 -130
- 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/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/LinkGraph/PureLinkGraph/components/Graph.d.ts.map +1 -0
- package/LinkGraph/PureLinkGraph/components/GraphStyles.d.ts.map +1 -0
- package/LinkGraph/PureLinkGraph/components/Node.d.ts.map +1 -0
- package/LinkGraph/PureLinkGraph/components/Nodes.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.js +166 -48
- package/LinkGraph.js.map +2 -2
- package/Map/Map.d.ts.map +1 -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.js +313 -136
- package/Map.js.map +3 -3
- 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 +166 -48
- package/Markdown.js.map +2 -2
- package/MarkerGauge/MarkerGauge.d.ts.map +1 -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.js +166 -48
- package/MarkerGauge.js.map +2 -2
- 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 +179 -51
- package/ParallelCoordinates.js.map +2 -2
- 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 +279 -132
- 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 +185 -70
- 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 +181 -72
- 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 +166 -48
- package/Sankey.js.map +2 -2
- 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.js +261 -130
- 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.js +253 -98
- package/SingleValue.js.map +2 -2
- 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.js +194 -63
- package/SingleValueIcon.js.map +2 -2
- package/SingleValueRadial/PureSingleValueRadial/GaugeGraph.d.ts.map +1 -0
- 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.js +188 -61
- package/SingleValueRadial.js.map +2 -2
- package/SparkLine/index.d.ts.map +1 -0
- package/SparkLine.js +65 -37
- package/SparkLine.js.map +2 -2
- 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 +1 -5
- package/Table/hooks.d.ts.map +1 -0
- package/Table/index.d.ts.map +1 -0
- package/Table.js +401 -198
- 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.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 +13 -23
- package/Timeline.config.js.map +4 -4
- package/Timeline.js +784 -402
- package/Timeline.js.map +4 -4
- package/{dist/types/common → common}/Charting.d.ts +2 -0
- package/common/Charting.d.ts.map +1 -0
- package/common/Charting.js +47 -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/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/TimeSeriesChartWrapper.d.ts +18 -0
- package/common/TimeSeriesChartWrapper.d.ts.map +1 -0
- package/common/TimeSeriesChartWrapper.js +181 -40
- package/common/TimeSeriesChartWrapper.js.map +2 -2
- package/{dist/types/common → common}/chartingUtils.d.ts +14 -4
- package/common/chartingUtils.d.ts.map +1 -0
- package/common/chartingUtils.js +22 -5
- package/common/chartingUtils.js.map +2 -2
- 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/common/interfaces/DashboardVizProps.d.ts.map +1 -0
- package/common/interfaces/DataContract.d.ts.map +1 -0
- 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/utils/configUtils.d.ts.map +1 -0
- package/common/utils/dataUtils.d.ts.map +1 -0
- 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.map +2 -2
- package/common/utils/styleUtils.d.ts.map +1 -0
- 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/trellisUtils.d.ts.map +1 -0
- 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 +166 -48
- package/common/withDashboardViz.js.map +2 -2
- package/package.json +21 -22
- 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.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}/ChoroplethSvg.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/Line → Line}/mockdata/LineData.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/PureLinkGraph.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/Graph.d.ts +0 -0
- /package/{dist/types/LinkGraph → LinkGraph}/PureLinkGraph/components/GraphStyles.d.ts +0 -0
- /package/{dist/types/LinkGraph → LinkGraph}/PureLinkGraph/components/Node.d.ts +0 -0
- /package/{dist/types/LinkGraph → LinkGraph}/PureLinkGraph/components/Nodes.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}/Map.d.ts +0 -0
- /package/{dist/types/Map → Map}/PureMap/BubbleLayer.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}/MarkerGauge.d.ts +0 -0
- /package/{dist/types/MarkerGauge → MarkerGauge}/PureMarkerGauge/MarkerGauge.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 → 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/ParallelCoordinates → 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/Pie → 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/Punchcard → 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/Rectangle → 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/Sankey → 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/Scatter → 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/SingleValue → 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/SingleValueIcon → 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}/PureSingleValueRadial/utils/gaugeUtils.d.ts +0 -0
- /package/{dist/types/SingleValueRadial → SingleValueRadial}/SingleValueRadial.d.ts +0 -0
- /package/{dist/types/SingleValueRadial → 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}/PureTable.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/Table → 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}/config.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/DashboardVizProps.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/DataContract.d.ts +0 -0
- /package/{dist/types/common → common}/interfaces/DataSource.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/styleUtils.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/Timeline.js
CHANGED
|
@@ -115,41 +115,32 @@ var defaultImport5 = __toESM(require("@splunk/visualization-encoding/utils/types
|
|
|
115
115
|
__reExport(types_exports, require("@splunk/visualization-encoding/utils/types"));
|
|
116
116
|
var types_default = "default" in defaultImport5 ? defaultImport5.default : defaultImport5;
|
|
117
117
|
|
|
118
|
-
// esm-externals:@splunk/visualization-icons
|
|
119
|
-
var visualization_icons_exports = {};
|
|
120
|
-
__export(visualization_icons_exports, {
|
|
121
|
-
default: () => visualization_icons_default
|
|
122
|
-
});
|
|
123
|
-
var defaultImport6 = __toESM(require("@splunk/visualization-icons"));
|
|
124
|
-
__reExport(visualization_icons_exports, require("@splunk/visualization-icons"));
|
|
125
|
-
var visualization_icons_default = "default" in defaultImport6 ? defaultImport6.default : defaultImport6;
|
|
126
|
-
|
|
127
118
|
// esm-externals:@splunk/visualization-color-palettes/editors/PresetPalettes
|
|
128
119
|
var PresetPalettes_exports = {};
|
|
129
120
|
__export(PresetPalettes_exports, {
|
|
130
121
|
default: () => PresetPalettes_default
|
|
131
122
|
});
|
|
132
|
-
var
|
|
123
|
+
var defaultImport6 = __toESM(require("@splunk/visualization-color-palettes/editors/PresetPalettes"));
|
|
133
124
|
__reExport(PresetPalettes_exports, require("@splunk/visualization-color-palettes/editors/PresetPalettes"));
|
|
134
|
-
var PresetPalettes_default = "default" in
|
|
125
|
+
var PresetPalettes_default = "default" in defaultImport6 ? defaultImport6.default : defaultImport6;
|
|
135
126
|
|
|
136
127
|
// esm-externals:@splunk/ui-utils/i18n
|
|
137
128
|
var i18n_exports = {};
|
|
138
129
|
__export(i18n_exports, {
|
|
139
130
|
default: () => i18n_default
|
|
140
131
|
});
|
|
141
|
-
var
|
|
132
|
+
var defaultImport7 = __toESM(require("@splunk/ui-utils/i18n"));
|
|
142
133
|
__reExport(i18n_exports, require("@splunk/ui-utils/i18n"));
|
|
143
|
-
var i18n_default = "default" in
|
|
134
|
+
var i18n_default = "default" in defaultImport7 ? defaultImport7.default : defaultImport7;
|
|
144
135
|
|
|
145
136
|
// esm-externals:@splunk/visualizations-shared/configUtils
|
|
146
137
|
var configUtils_exports = {};
|
|
147
138
|
__export(configUtils_exports, {
|
|
148
139
|
default: () => configUtils_default
|
|
149
140
|
});
|
|
150
|
-
var
|
|
141
|
+
var defaultImport8 = __toESM(require("@splunk/visualizations-shared/configUtils"));
|
|
151
142
|
__reExport(configUtils_exports, require("@splunk/visualizations-shared/configUtils"));
|
|
152
|
-
var configUtils_default = "default" in
|
|
143
|
+
var configUtils_default = "default" in defaultImport8 ? defaultImport8.default : defaultImport8;
|
|
153
144
|
|
|
154
145
|
// src/common/utils/configUtils.ts
|
|
155
146
|
function enhanceConfig(vizConfig) {
|
|
@@ -183,18 +174,18 @@ var pick_exports = {};
|
|
|
183
174
|
__export(pick_exports, {
|
|
184
175
|
default: () => pick_default
|
|
185
176
|
});
|
|
186
|
-
var
|
|
177
|
+
var defaultImport9 = __toESM(require("@splunk/themes/pick"));
|
|
187
178
|
__reExport(pick_exports, require("@splunk/themes/pick"));
|
|
188
|
-
var pick_default = "default" in
|
|
179
|
+
var pick_default = "default" in defaultImport9 ? defaultImport9.default : defaultImport9;
|
|
189
180
|
|
|
190
181
|
// esm-externals:@splunk/themes/variables
|
|
191
182
|
var variables_exports = {};
|
|
192
183
|
__export(variables_exports, {
|
|
193
184
|
default: () => variables_default
|
|
194
185
|
});
|
|
195
|
-
var
|
|
186
|
+
var defaultImport10 = __toESM(require("@splunk/themes/variables"));
|
|
196
187
|
__reExport(variables_exports, require("@splunk/themes/variables"));
|
|
197
|
-
var variables_default = "default" in
|
|
188
|
+
var variables_default = "default" in defaultImport10 ? defaultImport10.default : defaultImport10;
|
|
198
189
|
|
|
199
190
|
// src/common/ThemedDefaults.tsx
|
|
200
191
|
var defaultBackgroundColor = (props) => pick_default({
|
|
@@ -437,8 +428,7 @@ var config = {
|
|
|
437
428
|
/**
|
|
438
429
|
* viz icon
|
|
439
430
|
*/
|
|
440
|
-
icon:
|
|
441
|
-
// placeholderIcon: TimelinePlaceholderIcon, TBD
|
|
431
|
+
icon: null,
|
|
442
432
|
dataContract,
|
|
443
433
|
size,
|
|
444
434
|
defaultContext,
|
|
@@ -465,117 +455,117 @@ var react_exports = {};
|
|
|
465
455
|
__export(react_exports, {
|
|
466
456
|
default: () => react_default
|
|
467
457
|
});
|
|
468
|
-
var
|
|
458
|
+
var defaultImport11 = __toESM(require("react"));
|
|
469
459
|
__reExport(react_exports, require("react"));
|
|
470
|
-
var react_default = "default" in
|
|
460
|
+
var react_default = "default" in defaultImport11 ? defaultImport11.default : defaultImport11;
|
|
471
461
|
|
|
472
462
|
// esm-externals:@splunk/themes/getSettingsFromThemedProps
|
|
473
463
|
var getSettingsFromThemedProps_exports = {};
|
|
474
464
|
__export(getSettingsFromThemedProps_exports, {
|
|
475
465
|
default: () => getSettingsFromThemedProps_default
|
|
476
466
|
});
|
|
477
|
-
var
|
|
467
|
+
var defaultImport12 = __toESM(require("@splunk/themes/getSettingsFromThemedProps"));
|
|
478
468
|
__reExport(getSettingsFromThemedProps_exports, require("@splunk/themes/getSettingsFromThemedProps"));
|
|
479
|
-
var getSettingsFromThemedProps_default = "default" in
|
|
469
|
+
var getSettingsFromThemedProps_default = "default" in defaultImport12 ? defaultImport12.default : defaultImport12;
|
|
480
470
|
|
|
481
471
|
// esm-externals:@splunk/visualization-encoding/Options
|
|
482
472
|
var Options_exports = {};
|
|
483
473
|
__export(Options_exports, {
|
|
484
474
|
default: () => Options_default
|
|
485
475
|
});
|
|
486
|
-
var
|
|
476
|
+
var defaultImport13 = __toESM(require("@splunk/visualization-encoding/Options"));
|
|
487
477
|
__reExport(Options_exports, require("@splunk/visualization-encoding/Options"));
|
|
488
|
-
var Options_default = "default" in
|
|
478
|
+
var Options_default = "default" in defaultImport13 ? defaultImport13.default : defaultImport13;
|
|
489
479
|
|
|
490
480
|
// esm-externals:@splunk/visualizations-shared/SanitizeProps
|
|
491
481
|
var SanitizeProps_exports = {};
|
|
492
482
|
__export(SanitizeProps_exports, {
|
|
493
483
|
default: () => SanitizeProps_default
|
|
494
484
|
});
|
|
495
|
-
var
|
|
485
|
+
var defaultImport14 = __toESM(require("@splunk/visualizations-shared/SanitizeProps"));
|
|
496
486
|
__reExport(SanitizeProps_exports, require("@splunk/visualizations-shared/SanitizeProps"));
|
|
497
|
-
var SanitizeProps_default = "default" in
|
|
487
|
+
var SanitizeProps_default = "default" in defaultImport14 ? defaultImport14.default : defaultImport14;
|
|
498
488
|
|
|
499
489
|
// esm-externals:@splunk/visualization-context/TimezoneContext
|
|
500
490
|
var TimezoneContext_exports = {};
|
|
501
491
|
__export(TimezoneContext_exports, {
|
|
502
492
|
default: () => TimezoneContext_default
|
|
503
493
|
});
|
|
504
|
-
var
|
|
494
|
+
var defaultImport15 = __toESM(require("@splunk/visualization-context/TimezoneContext"));
|
|
505
495
|
__reExport(TimezoneContext_exports, require("@splunk/visualization-context/TimezoneContext"));
|
|
506
|
-
var TimezoneContext_default = "default" in
|
|
496
|
+
var TimezoneContext_default = "default" in defaultImport15 ? defaultImport15.default : defaultImport15;
|
|
507
497
|
|
|
508
498
|
// esm-externals:@splunk/moment
|
|
509
499
|
var moment_exports = {};
|
|
510
500
|
__export(moment_exports, {
|
|
511
501
|
default: () => moment_default
|
|
512
502
|
});
|
|
513
|
-
var
|
|
503
|
+
var defaultImport16 = __toESM(require("@splunk/moment"));
|
|
514
504
|
__reExport(moment_exports, require("@splunk/moment"));
|
|
515
|
-
var moment_default = "default" in
|
|
505
|
+
var moment_default = "default" in defaultImport16 ? defaultImport16.default : defaultImport16;
|
|
516
506
|
|
|
517
507
|
// esm-externals:@splunk/visualization-context/FeatureFlagContext
|
|
518
508
|
var FeatureFlagContext_exports = {};
|
|
519
509
|
__export(FeatureFlagContext_exports, {
|
|
520
510
|
default: () => FeatureFlagContext_default
|
|
521
511
|
});
|
|
522
|
-
var
|
|
512
|
+
var defaultImport17 = __toESM(require("@splunk/visualization-context/FeatureFlagContext"));
|
|
523
513
|
__reExport(FeatureFlagContext_exports, require("@splunk/visualization-context/FeatureFlagContext"));
|
|
524
|
-
var FeatureFlagContext_default = "default" in
|
|
514
|
+
var FeatureFlagContext_default = "default" in defaultImport17 ? defaultImport17.default : defaultImport17;
|
|
525
515
|
|
|
526
516
|
// esm-externals:styled-components
|
|
527
517
|
var styled_components_exports = {};
|
|
528
518
|
__export(styled_components_exports, {
|
|
529
519
|
default: () => styled_components_default
|
|
530
520
|
});
|
|
531
|
-
var
|
|
521
|
+
var defaultImport18 = __toESM(require("styled-components"));
|
|
532
522
|
__reExport(styled_components_exports, require("styled-components"));
|
|
533
|
-
var styled_components_default = "default" in
|
|
523
|
+
var styled_components_default = "default" in defaultImport18 ? defaultImport18.default : defaultImport18;
|
|
534
524
|
|
|
535
525
|
// esm-externals:@splunk/visualizations-shared/hocUtils
|
|
536
526
|
var hocUtils_exports = {};
|
|
537
527
|
__export(hocUtils_exports, {
|
|
538
528
|
default: () => hocUtils_default
|
|
539
529
|
});
|
|
540
|
-
var
|
|
530
|
+
var defaultImport19 = __toESM(require("@splunk/visualizations-shared/hocUtils"));
|
|
541
531
|
__reExport(hocUtils_exports, require("@splunk/visualizations-shared/hocUtils"));
|
|
542
|
-
var hocUtils_default = "default" in
|
|
532
|
+
var hocUtils_default = "default" in defaultImport19 ? defaultImport19.default : defaultImport19;
|
|
543
533
|
|
|
544
534
|
// esm-externals:@splunk/visualizations-shared/JSONSchemaUtils
|
|
545
535
|
var JSONSchemaUtils_exports = {};
|
|
546
536
|
__export(JSONSchemaUtils_exports, {
|
|
547
537
|
default: () => JSONSchemaUtils_default
|
|
548
538
|
});
|
|
549
|
-
var
|
|
539
|
+
var defaultImport20 = __toESM(require("@splunk/visualizations-shared/JSONSchemaUtils"));
|
|
550
540
|
__reExport(JSONSchemaUtils_exports, require("@splunk/visualizations-shared/JSONSchemaUtils"));
|
|
551
|
-
var JSONSchemaUtils_default = "default" in
|
|
541
|
+
var JSONSchemaUtils_default = "default" in defaultImport20 ? defaultImport20.default : defaultImport20;
|
|
552
542
|
|
|
553
543
|
// esm-externals:@splunk/async-dynamic-options-evaluator
|
|
554
544
|
var async_dynamic_options_evaluator_exports = {};
|
|
555
545
|
__export(async_dynamic_options_evaluator_exports, {
|
|
556
546
|
default: () => async_dynamic_options_evaluator_default
|
|
557
547
|
});
|
|
558
|
-
var
|
|
548
|
+
var defaultImport21 = __toESM(require("@splunk/async-dynamic-options-evaluator"));
|
|
559
549
|
__reExport(async_dynamic_options_evaluator_exports, require("@splunk/async-dynamic-options-evaluator"));
|
|
560
|
-
var async_dynamic_options_evaluator_default = "default" in
|
|
550
|
+
var async_dynamic_options_evaluator_default = "default" in defaultImport21 ? defaultImport21.default : defaultImport21;
|
|
561
551
|
|
|
562
552
|
// esm-externals:@splunk/ui-utils/id
|
|
563
553
|
var id_exports = {};
|
|
564
554
|
__export(id_exports, {
|
|
565
555
|
default: () => id_default
|
|
566
556
|
});
|
|
567
|
-
var
|
|
557
|
+
var defaultImport22 = __toESM(require("@splunk/ui-utils/id"));
|
|
568
558
|
__reExport(id_exports, require("@splunk/ui-utils/id"));
|
|
569
|
-
var id_default = "default" in
|
|
559
|
+
var id_default = "default" in defaultImport22 ? defaultImport22.default : defaultImport22;
|
|
570
560
|
|
|
571
561
|
// esm-externals:prop-types
|
|
572
562
|
var prop_types_exports = {};
|
|
573
563
|
__export(prop_types_exports, {
|
|
574
564
|
default: () => prop_types_default
|
|
575
565
|
});
|
|
576
|
-
var
|
|
566
|
+
var defaultImport23 = __toESM(require("prop-types"));
|
|
577
567
|
__reExport(prop_types_exports, require("prop-types"));
|
|
578
|
-
var prop_types_default = "default" in
|
|
568
|
+
var prop_types_default = "default" in defaultImport23 ? defaultImport23.default : defaultImport23;
|
|
579
569
|
|
|
580
570
|
// src/common/interfaces/VizActionHandler.ts
|
|
581
571
|
var DefaultVizActionHandler = class {
|
|
@@ -783,18 +773,18 @@ var Message_exports = {};
|
|
|
783
773
|
__export(Message_exports, {
|
|
784
774
|
default: () => Message_default
|
|
785
775
|
});
|
|
786
|
-
var
|
|
776
|
+
var defaultImport24 = __toESM(require("@splunk/visualizations-shared/Message"));
|
|
787
777
|
__reExport(Message_exports, require("@splunk/visualizations-shared/Message"));
|
|
788
|
-
var Message_default = "default" in
|
|
778
|
+
var Message_default = "default" in defaultImport24 ? defaultImport24.default : defaultImport24;
|
|
789
779
|
|
|
790
780
|
// esm-externals:@splunk/visualizations-shared/SizeAwareWrapper
|
|
791
781
|
var SizeAwareWrapper_exports = {};
|
|
792
782
|
__export(SizeAwareWrapper_exports, {
|
|
793
783
|
default: () => SizeAwareWrapper_default
|
|
794
784
|
});
|
|
795
|
-
var
|
|
785
|
+
var defaultImport25 = __toESM(require("@splunk/visualizations-shared/SizeAwareWrapper"));
|
|
796
786
|
__reExport(SizeAwareWrapper_exports, require("@splunk/visualizations-shared/SizeAwareWrapper"));
|
|
797
|
-
var SizeAwareWrapper_default = "default" in
|
|
787
|
+
var SizeAwareWrapper_default = "default" in defaultImport25 ? defaultImport25.default : defaultImport25;
|
|
798
788
|
|
|
799
789
|
// src/common/components/MissingPropsMessage.tsx
|
|
800
790
|
var isMissing = (v) => {
|
|
@@ -849,7 +839,7 @@ var Cover = styled_components_default.div`
|
|
|
849
839
|
bottom: 0;
|
|
850
840
|
`;
|
|
851
841
|
var Blocker = styled_components_default.div.attrs({
|
|
852
|
-
"data-splunk-visualization-version": "28.
|
|
842
|
+
"data-splunk-visualization-version": "28.3.0 - 843e0f60b"
|
|
853
843
|
})`
|
|
854
844
|
position: relative;
|
|
855
845
|
width: 100%;
|
|
@@ -871,9 +861,9 @@ var style_exports = {};
|
|
|
871
861
|
__export(style_exports, {
|
|
872
862
|
default: () => style_default
|
|
873
863
|
});
|
|
874
|
-
var
|
|
864
|
+
var defaultImport26 = __toESM(require("@splunk/visualizations-shared/style"));
|
|
875
865
|
__reExport(style_exports, require("@splunk/visualizations-shared/style"));
|
|
876
|
-
var style_default = "default" in
|
|
866
|
+
var style_default = "default" in defaultImport26 ? defaultImport26.default : defaultImport26;
|
|
877
867
|
|
|
878
868
|
// src/common/hocs/FixedSizeContainer.tsx
|
|
879
869
|
var Item = styled_components_default.div.attrs(({ width }) => ({
|
|
@@ -930,7 +920,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
930
920
|
FixSizeItem,
|
|
931
921
|
{
|
|
932
922
|
"data-test": "fix-size-item",
|
|
933
|
-
"data-splunk-visualization-version": "28.
|
|
923
|
+
"data-splunk-visualization-version": "28.3.0 - 843e0f60b",
|
|
934
924
|
width,
|
|
935
925
|
height,
|
|
936
926
|
backgroundColor
|
|
@@ -1021,9 +1011,9 @@ var numberUtils_exports = {};
|
|
|
1021
1011
|
__export(numberUtils_exports, {
|
|
1022
1012
|
default: () => numberUtils_default
|
|
1023
1013
|
});
|
|
1024
|
-
var
|
|
1014
|
+
var defaultImport27 = __toESM(require("@splunk/visualizations-shared/numberUtils"));
|
|
1025
1015
|
__reExport(numberUtils_exports, require("@splunk/visualizations-shared/numberUtils"));
|
|
1026
|
-
var numberUtils_default = "default" in
|
|
1016
|
+
var numberUtils_default = "default" in defaultImport27 ? defaultImport27.default : defaultImport27;
|
|
1027
1017
|
|
|
1028
1018
|
// src/common/utils/dataUtils.ts
|
|
1029
1019
|
var largestTriangleThreeBuckets = (data, threshold, preferredDownsampleIndices) => {
|
|
@@ -1403,9 +1393,9 @@ var FeatureFlags_exports = {};
|
|
|
1403
1393
|
__export(FeatureFlags_exports, {
|
|
1404
1394
|
default: () => FeatureFlags_default
|
|
1405
1395
|
});
|
|
1406
|
-
var
|
|
1396
|
+
var defaultImport28 = __toESM(require("@splunk/visualization-context/FeatureFlags"));
|
|
1407
1397
|
__reExport(FeatureFlags_exports, require("@splunk/visualization-context/FeatureFlags"));
|
|
1408
|
-
var FeatureFlags_default = "default" in
|
|
1398
|
+
var FeatureFlags_default = "default" in defaultImport28 ? defaultImport28.default : defaultImport28;
|
|
1409
1399
|
|
|
1410
1400
|
// src/common/utils/featureFlagUtils.ts
|
|
1411
1401
|
var getFeatureFlag = (context, flagName) => {
|
|
@@ -1423,9 +1413,9 @@ var trellisUtils_exports = {};
|
|
|
1423
1413
|
__export(trellisUtils_exports, {
|
|
1424
1414
|
default: () => trellisUtils_default
|
|
1425
1415
|
});
|
|
1426
|
-
var
|
|
1416
|
+
var defaultImport29 = __toESM(require("@splunk/visualizations-shared/trellisUtils"));
|
|
1427
1417
|
__reExport(trellisUtils_exports, require("@splunk/visualizations-shared/trellisUtils"));
|
|
1428
|
-
var trellisUtils_default = "default" in
|
|
1418
|
+
var trellisUtils_default = "default" in defaultImport29 ? defaultImport29.default : defaultImport29;
|
|
1429
1419
|
|
|
1430
1420
|
// src/common/utils/trellisUtils.ts
|
|
1431
1421
|
var turnOffLegendDisplayWhenTrellisIsOn = (isTrellisOn, options) => {
|
|
@@ -1442,9 +1432,9 @@ var visualization_canvas_exports = {};
|
|
|
1442
1432
|
__export(visualization_canvas_exports, {
|
|
1443
1433
|
default: () => visualization_canvas_default
|
|
1444
1434
|
});
|
|
1445
|
-
var
|
|
1435
|
+
var defaultImport30 = __toESM(require("@splunk/visualization-canvas"));
|
|
1446
1436
|
__reExport(visualization_canvas_exports, require("@splunk/visualization-canvas"));
|
|
1447
|
-
var visualization_canvas_default = "default" in
|
|
1437
|
+
var visualization_canvas_default = "default" in defaultImport30 ? defaultImport30.default : defaultImport30;
|
|
1448
1438
|
|
|
1449
1439
|
// src/common/components/VizStyleWrapper.jsx
|
|
1450
1440
|
var VizStyleWrapper = styled_components_default.div.attrs(({ dataTestKey }) => ({
|
|
@@ -1466,9 +1456,9 @@ var Triangle_exports = {};
|
|
|
1466
1456
|
__export(Triangle_exports, {
|
|
1467
1457
|
default: () => Triangle_default
|
|
1468
1458
|
});
|
|
1469
|
-
var
|
|
1459
|
+
var defaultImport31 = __toESM(require("@splunk/react-icons/Triangle"));
|
|
1470
1460
|
__reExport(Triangle_exports, require("@splunk/react-icons/Triangle"));
|
|
1471
|
-
var Triangle_default = "default" in
|
|
1461
|
+
var Triangle_default = "default" in defaultImport31 ? defaultImport31.default : defaultImport31;
|
|
1472
1462
|
|
|
1473
1463
|
// src/common/chartingUtils.ts
|
|
1474
1464
|
var DEFAULT_LINE_WIDTH = 2;
|
|
@@ -1484,9 +1474,14 @@ var getAnnotationsForCanvas = ({
|
|
|
1484
1474
|
var StyledTriangle = styled_components_default(Triangle_default)`
|
|
1485
1475
|
color: ${(props) => props.eventColor || variables_default.severityColorNotice(props)};
|
|
1486
1476
|
`;
|
|
1487
|
-
var triangleEventAnnotationRenderer = ({
|
|
1477
|
+
var triangleEventAnnotationRenderer = ({
|
|
1478
|
+
event,
|
|
1479
|
+
dimensions
|
|
1480
|
+
}) => {
|
|
1488
1481
|
const eventWithColor = event;
|
|
1489
1482
|
return react_default.createElement(StyledTriangle, {
|
|
1483
|
+
width: `${dimensions.width}px`,
|
|
1484
|
+
height: `${dimensions.height}px`,
|
|
1490
1485
|
viewBox: "0 0 24 24",
|
|
1491
1486
|
variant: "filled",
|
|
1492
1487
|
eventColor: eventWithColor.color
|
|
@@ -1576,12 +1571,15 @@ var getFieldName = (field) => {
|
|
|
1576
1571
|
var getFieldNames = (fields) => {
|
|
1577
1572
|
return fields.map((field) => getFieldName(field));
|
|
1578
1573
|
};
|
|
1579
|
-
var getXScaleConfig = (label) => {
|
|
1574
|
+
var getXScaleConfig = (label, xAxisLabelVisibility) => {
|
|
1580
1575
|
const xConfig = { x: {} };
|
|
1581
1576
|
xConfig.x.label = label;
|
|
1577
|
+
if (xAxisLabelVisibility === "hide") {
|
|
1578
|
+
xConfig.x.hideLabels = true;
|
|
1579
|
+
}
|
|
1582
1580
|
return xConfig;
|
|
1583
1581
|
};
|
|
1584
|
-
var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale) => {
|
|
1582
|
+
var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale, yAxisLabelVisibility) => {
|
|
1585
1583
|
const scaleType = yAxisScale != null ? yAxisScale : "linear";
|
|
1586
1584
|
const yConfig = { y: {} };
|
|
1587
1585
|
yConfig.y.label = label;
|
|
@@ -1594,9 +1592,12 @@ var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale) => {
|
|
|
1594
1592
|
} else {
|
|
1595
1593
|
yConfig.y.width = label && label.length > 0 ? 30 : 10;
|
|
1596
1594
|
}
|
|
1595
|
+
if (yAxisLabelVisibility === "hide") {
|
|
1596
|
+
yConfig.y.hideLabels = true;
|
|
1597
|
+
}
|
|
1597
1598
|
return yConfig;
|
|
1598
1599
|
};
|
|
1599
|
-
var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInteger) => {
|
|
1600
|
+
var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInteger, y2AxisLabelVisibility) => {
|
|
1600
1601
|
const y2Config = { y2: {} };
|
|
1601
1602
|
const scaleType = axisScale != null ? axisScale : "linear";
|
|
1602
1603
|
y2Config.y2.label = label;
|
|
@@ -1608,9 +1609,12 @@ var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInt
|
|
|
1608
1609
|
} else if (roundAxisLabelsToInteger) {
|
|
1609
1610
|
y2Config.y2.tickFmt = (v) => roundAxisLabelsToInteger ? Math.round(v).toString() : v.toString();
|
|
1610
1611
|
}
|
|
1612
|
+
if (y2AxisLabelVisibility === "hide") {
|
|
1613
|
+
y2Config.y2.hideLabels = true;
|
|
1614
|
+
}
|
|
1611
1615
|
return y2Config;
|
|
1612
1616
|
};
|
|
1613
|
-
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode) => {
|
|
1617
|
+
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode, markerDisplay) => {
|
|
1614
1618
|
const seriesConfig = {};
|
|
1615
1619
|
let spanGaps;
|
|
1616
1620
|
let replaceNullsWithZero;
|
|
@@ -1642,6 +1646,9 @@ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled
|
|
|
1642
1646
|
if (overlayFields == null ? void 0 : overlayFields.includes(field)) {
|
|
1643
1647
|
seriesConfig[field].type = "line";
|
|
1644
1648
|
}
|
|
1649
|
+
if (markerDisplay !== void 0) {
|
|
1650
|
+
seriesConfig[field].markerDisplay = markerDisplay;
|
|
1651
|
+
}
|
|
1645
1652
|
if (replaceNullsWithZero !== void 0) {
|
|
1646
1653
|
seriesConfig[field].replaceNullsWithZero = replaceNullsWithZero;
|
|
1647
1654
|
}
|
|
@@ -1658,27 +1665,30 @@ var TimeSeriesChartContainer = styled_components_default.div`
|
|
|
1658
1665
|
position: absolute !important; // This is needed for canvas element export pdf/png to work correctly
|
|
1659
1666
|
}
|
|
1660
1667
|
`;
|
|
1661
|
-
var handleClick = (chartEvent,
|
|
1668
|
+
var handleClick = (chartEvent, onClick) => {
|
|
1662
1669
|
const payload = __spreadProps(__spreadValues({}, (0, lodash_exports.pick)(chartEvent, "value", "seriesKey")), {
|
|
1663
1670
|
name: chartEvent.seriesKey
|
|
1664
1671
|
});
|
|
1665
1672
|
delete payload.seriesKey;
|
|
1666
|
-
|
|
1667
|
-
|
|
1668
|
-
|
|
1673
|
+
if (chartEvent.rowContext) {
|
|
1674
|
+
Object.keys(chartEvent.rowContext).forEach((fieldName) => {
|
|
1675
|
+
payload[`row.${fieldName}.value`] = chartEvent.rowContext[fieldName];
|
|
1676
|
+
});
|
|
1677
|
+
}
|
|
1678
|
+
if (onClick) {
|
|
1679
|
+
onClick({
|
|
1669
1680
|
type: "point.click",
|
|
1670
1681
|
originalEvent: chartEvent,
|
|
1671
1682
|
payload
|
|
1672
1683
|
});
|
|
1673
1684
|
}
|
|
1674
1685
|
};
|
|
1675
|
-
var handleLegendClick = (chartEvent,
|
|
1686
|
+
var handleLegendClick = (chartEvent, onClick) => {
|
|
1676
1687
|
const payload = {
|
|
1677
1688
|
name: chartEvent
|
|
1678
1689
|
};
|
|
1679
|
-
|
|
1680
|
-
|
|
1681
|
-
clickHandler({
|
|
1690
|
+
if (onClick) {
|
|
1691
|
+
onClick({
|
|
1682
1692
|
type: "legend.click",
|
|
1683
1693
|
originalEvent: chartEvent,
|
|
1684
1694
|
payload
|
|
@@ -1686,7 +1696,21 @@ var handleLegendClick = (chartEvent, props) => {
|
|
|
1686
1696
|
}
|
|
1687
1697
|
};
|
|
1688
1698
|
var TimeSeriesChartWrapper = (props) => {
|
|
1689
|
-
const {
|
|
1699
|
+
const {
|
|
1700
|
+
width,
|
|
1701
|
+
height,
|
|
1702
|
+
chartData,
|
|
1703
|
+
options,
|
|
1704
|
+
userLocale,
|
|
1705
|
+
annotationX,
|
|
1706
|
+
annotationLabel,
|
|
1707
|
+
annotationColor,
|
|
1708
|
+
legendDisplay,
|
|
1709
|
+
markerDisplay,
|
|
1710
|
+
onClick,
|
|
1711
|
+
onPointMouseOver,
|
|
1712
|
+
onPointMouseOut
|
|
1713
|
+
} = props;
|
|
1690
1714
|
const {
|
|
1691
1715
|
backgroundColor,
|
|
1692
1716
|
seriesColors: seriesColorsStr,
|
|
@@ -1697,6 +1721,9 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1697
1721
|
"axisTitleX.visibility": xAxisTitleVisibility,
|
|
1698
1722
|
"axisTitleY.visibility": yAxisTitleVisibility,
|
|
1699
1723
|
"axisTitleY2.visibility": y2AxisTitleVisibility,
|
|
1724
|
+
"axisLabelsX.majorLabelVisibility": xAxisLabelVisibility,
|
|
1725
|
+
"axisLabelsY.majorLabelVisibility": yAxisLabelVisibility,
|
|
1726
|
+
"axisLabelsY2.majorLabelVisibility": y2AxisLabelVisibility,
|
|
1700
1727
|
"axisY.abbreviation": yAxisAbbreviation,
|
|
1701
1728
|
"axisY.scale": yAxisScale,
|
|
1702
1729
|
"axisY2.abbreviation": y2AxisAbbreviation,
|
|
@@ -1733,11 +1760,17 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1733
1760
|
const fieldsForY2Axis = y2Fields.length > 0 ? y2Fields : overlayFields;
|
|
1734
1761
|
let y2AxisTitle = getComputedAxisTitles(y2AxisTitleText, fieldsForY2Axis, y2AxisTitleVisibility);
|
|
1735
1762
|
y2AxisTitle = ellipsisAxisTitle(y2AxisTitle, containerHeight);
|
|
1736
|
-
const xScaleConfig = getXScaleConfig(xAxisTitle);
|
|
1737
|
-
const yScaleConfig = getYScaleConfig(yAxisTitle, yAxisAbbreviation, yAxisScale);
|
|
1763
|
+
const xScaleConfig = getXScaleConfig(xAxisTitle, xAxisLabelVisibility);
|
|
1764
|
+
const yScaleConfig = getYScaleConfig(yAxisTitle, yAxisAbbreviation, yAxisScale, yAxisLabelVisibility);
|
|
1738
1765
|
let y2ScaleConfig = {};
|
|
1739
1766
|
if (y2Enabled) {
|
|
1740
|
-
y2ScaleConfig = getY2ScaleConfig(
|
|
1767
|
+
y2ScaleConfig = getY2ScaleConfig(
|
|
1768
|
+
y2AxisTitle,
|
|
1769
|
+
y2AxisAbbreviation,
|
|
1770
|
+
y2AxisScale,
|
|
1771
|
+
y2IntegerUnits,
|
|
1772
|
+
y2AxisLabelVisibility
|
|
1773
|
+
);
|
|
1741
1774
|
}
|
|
1742
1775
|
const uplotContainerElement = (0, react_exports.useRef)(null);
|
|
1743
1776
|
const seriesDataFormatted = [
|
|
@@ -1746,24 +1779,87 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1746
1779
|
];
|
|
1747
1780
|
chartData.fields = filteredChartData.fields;
|
|
1748
1781
|
chartData.columns = seriesDataFormatted;
|
|
1749
|
-
const seriesOverrides =
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
|
|
1753
|
-
|
|
1754
|
-
|
|
1755
|
-
|
|
1782
|
+
const seriesOverrides = (0, react_exports.useMemo)(
|
|
1783
|
+
() => getSeriesOverrides(
|
|
1784
|
+
yFields,
|
|
1785
|
+
y2Fields,
|
|
1786
|
+
lineWidth,
|
|
1787
|
+
overlayFields,
|
|
1788
|
+
y2Enabled,
|
|
1789
|
+
nullValueMode,
|
|
1790
|
+
markerDisplay
|
|
1791
|
+
),
|
|
1792
|
+
[yFields, y2Fields, lineWidth, overlayFields, y2Enabled, nullValueMode, markerDisplay]
|
|
1793
|
+
);
|
|
1794
|
+
const chartingEventAnnotations = (0, react_exports.useMemo)(
|
|
1795
|
+
() => getAnnotationsForCanvas({
|
|
1796
|
+
annotationX,
|
|
1797
|
+
annotationColor,
|
|
1798
|
+
annotationLabel
|
|
1799
|
+
}),
|
|
1800
|
+
[annotationX, annotationColor, annotationLabel]
|
|
1801
|
+
);
|
|
1802
|
+
const scaleConfig = (0, react_exports.useMemo)(
|
|
1803
|
+
() => __spreadValues(__spreadValues(__spreadValues({}, xScaleConfig), yScaleConfig), y2ScaleConfig),
|
|
1804
|
+
[xScaleConfig, yScaleConfig, y2ScaleConfig]
|
|
1805
|
+
);
|
|
1806
|
+
const legend = (0, react_exports.useMemo)(() => getLegend({ legendDisplay }), [legendDisplay]);
|
|
1807
|
+
const handleChartClick = react_exports.useCallback(
|
|
1808
|
+
(event) => {
|
|
1809
|
+
if (onClick) {
|
|
1810
|
+
handleClick(event, onClick);
|
|
1811
|
+
}
|
|
1812
|
+
},
|
|
1813
|
+
[onClick]
|
|
1814
|
+
);
|
|
1815
|
+
const handleChartLegendClick = react_exports.useCallback(
|
|
1816
|
+
(event) => {
|
|
1817
|
+
if (onClick) {
|
|
1818
|
+
handleLegendClick(event, onClick);
|
|
1819
|
+
}
|
|
1820
|
+
},
|
|
1821
|
+
[onClick]
|
|
1822
|
+
);
|
|
1823
|
+
const lastPayloadRef = react_exports.useRef(null);
|
|
1824
|
+
const lastOriginalEventRef = react_exports.useRef(null);
|
|
1825
|
+
const handleChartCrosshairChange = react_exports.useCallback(
|
|
1826
|
+
(event) => {
|
|
1827
|
+
if (onPointMouseOver || onPointMouseOut) {
|
|
1828
|
+
if (!event) {
|
|
1829
|
+
if (onPointMouseOut && lastPayloadRef.current) {
|
|
1830
|
+
onPointMouseOut({
|
|
1831
|
+
type: "point.mouseout",
|
|
1832
|
+
originalEvent: lastOriginalEventRef.current,
|
|
1833
|
+
payload: lastPayloadRef.current
|
|
1834
|
+
});
|
|
1835
|
+
}
|
|
1836
|
+
return;
|
|
1837
|
+
}
|
|
1838
|
+
const payload = __spreadProps(__spreadValues({}, (0, lodash_exports.pick)(event, "value", "seriesKey", "time", "index", "seriesIndex")), {
|
|
1839
|
+
name: event.seriesKey
|
|
1840
|
+
});
|
|
1841
|
+
delete payload.seriesKey;
|
|
1842
|
+
if (event.rowContext) {
|
|
1843
|
+
Object.keys(event.rowContext).forEach((fieldName) => {
|
|
1844
|
+
payload[`row.${fieldName}.value`] = event.rowContext[fieldName];
|
|
1845
|
+
});
|
|
1846
|
+
}
|
|
1847
|
+
lastPayloadRef.current = payload;
|
|
1848
|
+
lastOriginalEventRef.current = event;
|
|
1849
|
+
if (onPointMouseOver) {
|
|
1850
|
+
onPointMouseOver({
|
|
1851
|
+
type: "point.mouseover",
|
|
1852
|
+
originalEvent: event,
|
|
1853
|
+
payload
|
|
1854
|
+
});
|
|
1855
|
+
}
|
|
1856
|
+
}
|
|
1857
|
+
},
|
|
1858
|
+
[onPointMouseOver, onPointMouseOut]
|
|
1756
1859
|
);
|
|
1757
|
-
const chartingEventAnnotations = getAnnotationsForCanvas({
|
|
1758
|
-
annotationX,
|
|
1759
|
-
annotationColor,
|
|
1760
|
-
annotationLabel
|
|
1761
|
-
});
|
|
1762
|
-
const MemoizedChart = react_exports.memo(visualization_canvas_exports.TimeSeriesChart);
|
|
1763
|
-
const scaleConfig = __spreadValues(__spreadValues(__spreadValues({}, xScaleConfig), yScaleConfig), y2ScaleConfig);
|
|
1764
1860
|
const memoizedChart = (0, react_exports.useMemo)(
|
|
1765
1861
|
() => /* @__PURE__ */ react_exports.createElement(
|
|
1766
|
-
|
|
1862
|
+
visualization_canvas_exports.TimeSeriesChart,
|
|
1767
1863
|
{
|
|
1768
1864
|
data: chartData,
|
|
1769
1865
|
width: containerWidth,
|
|
@@ -1771,34 +1867,39 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1771
1867
|
seriesColors,
|
|
1772
1868
|
seriesColorsByField,
|
|
1773
1869
|
seriesConfig: seriesOverrides,
|
|
1774
|
-
legend
|
|
1870
|
+
legend,
|
|
1775
1871
|
scaleConfig,
|
|
1776
1872
|
timestampFormat: "expanded",
|
|
1777
|
-
onCrosshairClick:
|
|
1778
|
-
|
|
1873
|
+
onCrosshairClick: onClick ? handleChartClick : void 0,
|
|
1874
|
+
onCrosshairChange: onPointMouseOver || onPointMouseOut ? handleChartCrosshairChange : void 0,
|
|
1875
|
+
onSeriesClick: onClick ? handleChartLegendClick : void 0,
|
|
1779
1876
|
userLocale,
|
|
1780
1877
|
events: chartingEventAnnotations,
|
|
1781
1878
|
eventsConfig: { renderer: triangleEventAnnotationRenderer }
|
|
1782
1879
|
}
|
|
1783
1880
|
),
|
|
1784
1881
|
[
|
|
1785
|
-
MemoizedChart,
|
|
1786
1882
|
chartData,
|
|
1787
1883
|
containerWidth,
|
|
1788
1884
|
containerHeight,
|
|
1789
1885
|
seriesColors,
|
|
1790
1886
|
seriesColorsByField,
|
|
1791
1887
|
seriesOverrides,
|
|
1792
|
-
|
|
1793
|
-
props,
|
|
1888
|
+
legend,
|
|
1794
1889
|
scaleConfig,
|
|
1795
1890
|
userLocale,
|
|
1796
|
-
chartingEventAnnotations
|
|
1891
|
+
chartingEventAnnotations,
|
|
1892
|
+
onClick,
|
|
1893
|
+
handleChartClick,
|
|
1894
|
+
onPointMouseOver,
|
|
1895
|
+
onPointMouseOut,
|
|
1896
|
+
handleChartCrosshairChange,
|
|
1897
|
+
handleChartLegendClick
|
|
1797
1898
|
]
|
|
1798
1899
|
);
|
|
1799
1900
|
const memoizedVisualization = (0, react_exports.useMemo)(() => {
|
|
1800
1901
|
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor }, memoizedChart);
|
|
1801
|
-
}, [backgroundColor]);
|
|
1902
|
+
}, [backgroundColor, memoizedChart]);
|
|
1802
1903
|
return /* @__PURE__ */ react_exports.createElement(
|
|
1803
1904
|
TimeSeriesChartContainer,
|
|
1804
1905
|
{
|
|
@@ -1814,6 +1915,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1814
1915
|
var TimeSeriesChartWrapper_default = TimeSeriesChartWrapper;
|
|
1815
1916
|
|
|
1816
1917
|
// src/common/withDashboardViz.tsx
|
|
1918
|
+
var SanitizedTimeSeriesChartWrapper = (0, SanitizeProps_exports.withSanitizedProps)(TimeSeriesChartWrapper_default);
|
|
1817
1919
|
var withDashboardViz = (opts) => {
|
|
1818
1920
|
const {
|
|
1819
1921
|
ReactViz,
|
|
@@ -1822,6 +1924,7 @@ var withDashboardViz = (opts) => {
|
|
|
1822
1924
|
},
|
|
1823
1925
|
computeVizPropsBeforeEval = () => {
|
|
1824
1926
|
},
|
|
1927
|
+
computeDataFrames,
|
|
1825
1928
|
disableEditModeCover,
|
|
1826
1929
|
useIconPlaceholder
|
|
1827
1930
|
} = opts;
|
|
@@ -1950,11 +2053,19 @@ var withDashboardViz = (opts) => {
|
|
|
1950
2053
|
);
|
|
1951
2054
|
setDataFramesInState(dataFrames);
|
|
1952
2055
|
}
|
|
2056
|
+
let mergedFrames = dataFrames;
|
|
2057
|
+
if (computeDataFrames && dataFrames) {
|
|
2058
|
+
const derivedFrames = computeDataFrames({
|
|
2059
|
+
dataSources: downsampledDataSources,
|
|
2060
|
+
options: optionsToEvaluate.options
|
|
2061
|
+
});
|
|
2062
|
+
mergedFrames = __spreadValues(__spreadValues({}, dataFrames), derivedFrames);
|
|
2063
|
+
}
|
|
1953
2064
|
const result = Options_exports.Options.evaluate(
|
|
1954
2065
|
optionsToEvaluate,
|
|
1955
2066
|
downsampledDataSources,
|
|
1956
2067
|
themeFunc,
|
|
1957
|
-
|
|
2068
|
+
mergedFrames,
|
|
1958
2069
|
getFeatureFlag(featureFlagContext, "visualizations_bypassCloneDeepOptionScope")
|
|
1959
2070
|
);
|
|
1960
2071
|
return result;
|
|
@@ -2042,7 +2153,7 @@ var withDashboardViz = (opts) => {
|
|
|
2042
2153
|
});
|
|
2043
2154
|
}
|
|
2044
2155
|
eventCallbackProps[eventCallbackPropName] = (ev) => {
|
|
2045
|
-
if (ev
|
|
2156
|
+
if (ev == null ? void 0 : ev.payload) {
|
|
2046
2157
|
payload = __spreadValues({}, ev.payload);
|
|
2047
2158
|
}
|
|
2048
2159
|
return onEventTrigger({
|
|
@@ -2066,10 +2177,7 @@ var withDashboardViz = (opts) => {
|
|
|
2066
2177
|
if (useAsyncEvaluatedOptions && Object.keys(evaluatedOptionsToUse).length === 0) {
|
|
2067
2178
|
return null;
|
|
2068
2179
|
}
|
|
2069
|
-
|
|
2070
|
-
if (isAcceleratedRenderOn) {
|
|
2071
|
-
SanitizedViz = (0, SanitizeProps_exports.withSanitizedProps)(TimeSeriesChartWrapper_default);
|
|
2072
|
-
}
|
|
2180
|
+
const SanitizedViz = isAcceleratedRenderOn ? SanitizedTimeSeriesChartWrapper : SanitizedReactViz;
|
|
2073
2181
|
return /* @__PURE__ */ react_exports.createElement(
|
|
2074
2182
|
SanitizedViz,
|
|
2075
2183
|
__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues({}, SplunkVisualization_default.defaults), {
|
|
@@ -2097,18 +2205,18 @@ var config_exports = {};
|
|
|
2097
2205
|
__export(config_exports, {
|
|
2098
2206
|
default: () => config_default2
|
|
2099
2207
|
});
|
|
2100
|
-
var
|
|
2208
|
+
var defaultImport32 = __toESM(require("@splunk/splunk-utils/config"));
|
|
2101
2209
|
__reExport(config_exports, require("@splunk/splunk-utils/config"));
|
|
2102
|
-
var config_default2 = "default" in
|
|
2210
|
+
var config_default2 = "default" in defaultImport32 ? defaultImport32.default : defaultImport32;
|
|
2103
2211
|
|
|
2104
2212
|
// esm-externals:@splunk/themes
|
|
2105
2213
|
var themes_exports = {};
|
|
2106
2214
|
__export(themes_exports, {
|
|
2107
2215
|
default: () => themes_default
|
|
2108
2216
|
});
|
|
2109
|
-
var
|
|
2217
|
+
var defaultImport33 = __toESM(require("@splunk/themes"));
|
|
2110
2218
|
__reExport(themes_exports, require("@splunk/themes"));
|
|
2111
|
-
var themes_default = "default" in
|
|
2219
|
+
var themes_default = "default" in defaultImport33 ? defaultImport33.default : defaultImport33;
|
|
2112
2220
|
|
|
2113
2221
|
// src/common/utils/styleUtils.ts
|
|
2114
2222
|
var VIZ_FONT_FAMILY = "'Splunk Platform Sans', 'Splunk Data Sans', Roboto, Droid, 'Helvetica Neue', Helvetica, Arial, sans-serif";
|
|
@@ -2116,15 +2224,15 @@ var VIZ_FONT_FAMILY = "'Splunk Platform Sans', 'Splunk Data Sans', Roboto, Droid
|
|
|
2116
2224
|
// src/Timeline/PureTimeline/src/utils/timelineUtils.ts
|
|
2117
2225
|
function hexToRgba(hex, opacity = 1) {
|
|
2118
2226
|
const hexString = typeof hex === "string" ? hex.replace("#", "") : "#009CEB";
|
|
2119
|
-
const r = parseInt(hexString.substring(0, 2), 16);
|
|
2120
|
-
const g = parseInt(hexString.substring(2, 4), 16);
|
|
2121
|
-
const b = parseInt(hexString.substring(4, 6), 16);
|
|
2227
|
+
const r = Number.parseInt(hexString.substring(0, 2), 16);
|
|
2228
|
+
const g = Number.parseInt(hexString.substring(2, 4), 16);
|
|
2229
|
+
const b = Number.parseInt(hexString.substring(4, 6), 16);
|
|
2122
2230
|
const alpha = Math.max(0, Math.min(opacity, 1));
|
|
2123
2231
|
return `rgba(${r}, ${g}, ${b}, ${alpha})`;
|
|
2124
2232
|
}
|
|
2125
2233
|
function getAlternateColor(hex, percent) {
|
|
2126
2234
|
const cleanedHex = typeof hex === "string" ? hex.replace("#", "") : "#009CEB";
|
|
2127
|
-
const bigint = parseInt(cleanedHex, 16);
|
|
2235
|
+
const bigint = Number.parseInt(cleanedHex, 16);
|
|
2128
2236
|
const r = bigint >> 16 & 255;
|
|
2129
2237
|
const g = bigint >> 8 & 255;
|
|
2130
2238
|
const b = bigint & 255;
|
|
@@ -2160,16 +2268,28 @@ var toTimestamp = (dateStr, timezone = {}) => {
|
|
|
2160
2268
|
}
|
|
2161
2269
|
if (!dateTime.isValid()) {
|
|
2162
2270
|
console.error("Invalid date:", dateStr);
|
|
2163
|
-
return NaN;
|
|
2271
|
+
return Number.NaN;
|
|
2164
2272
|
}
|
|
2165
2273
|
return dateTime.toDate().getTime();
|
|
2166
2274
|
} catch (error) {
|
|
2167
2275
|
console.error("Invalid date or timezone:", dateStr, timezone, error);
|
|
2168
|
-
return NaN;
|
|
2276
|
+
return Number.NaN;
|
|
2169
2277
|
}
|
|
2170
2278
|
};
|
|
2171
|
-
function mapDataToTimeline(
|
|
2279
|
+
function mapDataToTimeline(mapDataToTimelineType) {
|
|
2172
2280
|
var _a, _b;
|
|
2281
|
+
const {
|
|
2282
|
+
resultLimit,
|
|
2283
|
+
x,
|
|
2284
|
+
y,
|
|
2285
|
+
duration,
|
|
2286
|
+
category = [],
|
|
2287
|
+
dataColors = [],
|
|
2288
|
+
seriesColors = [],
|
|
2289
|
+
additionalTooltipValues = [],
|
|
2290
|
+
timezone = {},
|
|
2291
|
+
defaultColor = "#009CEB"
|
|
2292
|
+
} = mapDataToTimelineType;
|
|
2173
2293
|
const categoricalColors = /* @__PURE__ */ new Map();
|
|
2174
2294
|
const lanesSet = /* @__PURE__ */ new Set();
|
|
2175
2295
|
const laneSeriesMap = /* @__PURE__ */ new Map();
|
|
@@ -2190,7 +2310,7 @@ function mapDataToTimeline(resultLimit, x, y, duration, category = [], dataColor
|
|
|
2190
2310
|
} else if (categoryValue) {
|
|
2191
2311
|
color = categoricalColors.get(categoryValue);
|
|
2192
2312
|
}
|
|
2193
|
-
const start = toTimestamp(x[i].toString(),
|
|
2313
|
+
const start = toTimestamp(x[i].toString(), timezone);
|
|
2194
2314
|
const durationValue = duration[i] || 0;
|
|
2195
2315
|
const end = start + durationValue;
|
|
2196
2316
|
const additionalTooltipValue = additionalTooltipValues ? additionalTooltipValues[i] : null;
|
|
@@ -2207,7 +2327,7 @@ function mapDataToTimeline(resultLimit, x, y, duration, category = [], dataColor
|
|
|
2207
2327
|
additionalTooltipValue
|
|
2208
2328
|
});
|
|
2209
2329
|
if (i > 0) {
|
|
2210
|
-
const prevStart = toTimestamp(x[i - 1].toString(),
|
|
2330
|
+
const prevStart = toTimestamp(x[i - 1].toString(), timezone);
|
|
2211
2331
|
const timeDiff = start - prevStart;
|
|
2212
2332
|
timeDifferences.push(timeDiff);
|
|
2213
2333
|
}
|
|
@@ -2241,42 +2361,57 @@ var drawRoundedRect = (ctx, x, y, width, height, radius) => {
|
|
|
2241
2361
|
ctx.fill();
|
|
2242
2362
|
ctx.stroke();
|
|
2243
2363
|
};
|
|
2244
|
-
var
|
|
2245
|
-
|
|
2246
|
-
const context = canvas.getContext("2d");
|
|
2247
|
-
if (!context) return text;
|
|
2248
|
-
context.font = font;
|
|
2249
|
-
const ellipsis = "...";
|
|
2250
|
-
const ellipsisWidth = context.measureText(ellipsis).width;
|
|
2251
|
-
const fullTextWidth = context.measureText(text).width;
|
|
2252
|
-
if (fullTextWidth <= maxWidth) {
|
|
2253
|
-
return text;
|
|
2254
|
-
}
|
|
2255
|
-
if (truncationType === "ellipsisEnd") {
|
|
2364
|
+
var truncators = {
|
|
2365
|
+
ellipsisEnd: ({ context, ellipsis, maxWidth, text }) => {
|
|
2256
2366
|
for (let i = text.length - 1; i > 0; i -= 1) {
|
|
2257
2367
|
const truncatedText = text.slice(0, i) + ellipsis;
|
|
2258
2368
|
if (context.measureText(truncatedText).width <= maxWidth) {
|
|
2259
2369
|
return truncatedText;
|
|
2260
2370
|
}
|
|
2261
2371
|
}
|
|
2262
|
-
|
|
2372
|
+
return null;
|
|
2373
|
+
},
|
|
2374
|
+
ellipsisStart: ({ context, ellipsis, maxWidth, text }) => {
|
|
2263
2375
|
for (let i = 0; i < text.length; i += 1) {
|
|
2264
2376
|
const truncatedText = ellipsis + text.slice(i);
|
|
2265
2377
|
if (context.measureText(truncatedText).width <= maxWidth) {
|
|
2266
2378
|
return truncatedText;
|
|
2267
2379
|
}
|
|
2268
2380
|
}
|
|
2269
|
-
|
|
2270
|
-
|
|
2271
|
-
|
|
2272
|
-
|
|
2273
|
-
|
|
2381
|
+
return null;
|
|
2382
|
+
},
|
|
2383
|
+
ellipsisMiddle: ({ context, ellipsis, ellipsisWidth, maxWidth, text }) => {
|
|
2384
|
+
const halfLength = text.length / 2;
|
|
2385
|
+
for (let i = 0; i < halfLength; i += 1) {
|
|
2386
|
+
const left = text.slice(0, Math.floor(halfLength) - i);
|
|
2387
|
+
const right = text.slice(Math.ceil(halfLength) + i);
|
|
2274
2388
|
if (context.measureText(left).width + ellipsisWidth + context.measureText(right).width <= maxWidth) {
|
|
2275
|
-
return
|
|
2389
|
+
return `${left}${ellipsis}${right}`;
|
|
2276
2390
|
}
|
|
2277
2391
|
}
|
|
2392
|
+
return null;
|
|
2393
|
+
}
|
|
2394
|
+
};
|
|
2395
|
+
var truncateText = (text, maxWidth, truncationType, font = `10px ${VIZ_FONT_FAMILY}`) => {
|
|
2396
|
+
var _a;
|
|
2397
|
+
const canvas = document.createElement("canvas");
|
|
2398
|
+
const context = canvas.getContext("2d");
|
|
2399
|
+
if (!context) return text;
|
|
2400
|
+
context.font = font;
|
|
2401
|
+
const ellipsis = "...";
|
|
2402
|
+
const ellipsisWidth = context.measureText(ellipsis).width;
|
|
2403
|
+
if (context.measureText(text).width <= maxWidth) {
|
|
2404
|
+
return text;
|
|
2278
2405
|
}
|
|
2279
|
-
|
|
2406
|
+
const params = {
|
|
2407
|
+
ellipsis,
|
|
2408
|
+
ellipsisWidth,
|
|
2409
|
+
maxWidth,
|
|
2410
|
+
text,
|
|
2411
|
+
context
|
|
2412
|
+
};
|
|
2413
|
+
const truncated = (_a = truncators[truncationType]) == null ? void 0 : _a.call(truncators, params);
|
|
2414
|
+
return truncated != null ? truncated : ellipsis;
|
|
2280
2415
|
};
|
|
2281
2416
|
var getTickInterval = (averageDiff) => {
|
|
2282
2417
|
if (averageDiff < 6e4) {
|
|
@@ -2341,26 +2476,56 @@ var tooltipLocaleTimeFormat = (displaySeconds) => {
|
|
|
2341
2476
|
year: "numeric"
|
|
2342
2477
|
}, seconds);
|
|
2343
2478
|
};
|
|
2479
|
+
var applyCanvasScale = (u, scaleFactor) => {
|
|
2480
|
+
var _a;
|
|
2481
|
+
if (!((_a = u.ctx) == null ? void 0 : _a.canvas)) {
|
|
2482
|
+
return;
|
|
2483
|
+
}
|
|
2484
|
+
const { canvas } = u.ctx;
|
|
2485
|
+
const dpr = window.devicePixelRatio || 1;
|
|
2486
|
+
const scale = dpr * scaleFactor;
|
|
2487
|
+
canvas.width = Math.round(u.width * scale);
|
|
2488
|
+
canvas.height = Math.round(u.height * scale);
|
|
2489
|
+
canvas.style.width = `${u.width}px`;
|
|
2490
|
+
canvas.style.height = `${u.height}px`;
|
|
2491
|
+
u.ctx.setTransform(1, 0, 0, 1, 0, 0);
|
|
2492
|
+
u.ctx.scale(scale, scale);
|
|
2493
|
+
};
|
|
2494
|
+
var createTimelineCanvasScaleHooks = (scaleFactor, onReady) => ({
|
|
2495
|
+
init: (u) => {
|
|
2496
|
+
applyCanvasScale(u, scaleFactor);
|
|
2497
|
+
},
|
|
2498
|
+
setSize: (u) => {
|
|
2499
|
+
applyCanvasScale(u, scaleFactor);
|
|
2500
|
+
if (onReady) {
|
|
2501
|
+
onReady(u);
|
|
2502
|
+
}
|
|
2503
|
+
}
|
|
2504
|
+
});
|
|
2344
2505
|
|
|
2345
2506
|
// esm-externals:uplot-react
|
|
2346
2507
|
var uplot_react_exports = {};
|
|
2347
2508
|
__export(uplot_react_exports, {
|
|
2348
2509
|
default: () => uplot_react_default
|
|
2349
2510
|
});
|
|
2350
|
-
var
|
|
2511
|
+
var defaultImport34 = __toESM(require("uplot-react"));
|
|
2351
2512
|
__reExport(uplot_react_exports, require("uplot-react"));
|
|
2352
|
-
var uplot_react_default = "default" in
|
|
2513
|
+
var uplot_react_default = "default" in defaultImport34 ? defaultImport34.default : defaultImport34;
|
|
2353
2514
|
|
|
2354
2515
|
// esm-externals:@splunk/visualization-context/ZoomContext
|
|
2355
2516
|
var ZoomContext_exports = {};
|
|
2356
2517
|
__export(ZoomContext_exports, {
|
|
2357
2518
|
default: () => ZoomContext_default
|
|
2358
2519
|
});
|
|
2359
|
-
var
|
|
2520
|
+
var defaultImport35 = __toESM(require("@splunk/visualization-context/ZoomContext"));
|
|
2360
2521
|
__reExport(ZoomContext_exports, require("@splunk/visualization-context/ZoomContext"));
|
|
2361
|
-
var ZoomContext_default = "default" in
|
|
2522
|
+
var ZoomContext_default = "default" in defaultImport35 ? defaultImport35.default : defaultImport35;
|
|
2362
2523
|
|
|
2363
2524
|
// src/Timeline/PureTimeline/src/CursorPlugin.tsx
|
|
2525
|
+
var FIXED_LANE_HEIGHT = 32;
|
|
2526
|
+
var MIN_BAR_WIDTH = 20;
|
|
2527
|
+
var CIRCLE_X_OFFSET = 10;
|
|
2528
|
+
var CIRCLE_LANE_SCALE_FACTOR = 0.85;
|
|
2364
2529
|
var CursorPlugin = (props) => {
|
|
2365
2530
|
const {
|
|
2366
2531
|
laneSeries,
|
|
@@ -2372,25 +2537,9 @@ var CursorPlugin = (props) => {
|
|
|
2372
2537
|
setHighlightedLane,
|
|
2373
2538
|
handleEventClick,
|
|
2374
2539
|
tooltipRef,
|
|
2375
|
-
locale
|
|
2540
|
+
locale,
|
|
2541
|
+
scaleFactor
|
|
2376
2542
|
} = props;
|
|
2377
|
-
const FIXED_LANE_HEIGHT = 32;
|
|
2378
|
-
const MIN_BAR_WIDTH = 20;
|
|
2379
|
-
const CIRCLE_X_OFFSET = 10;
|
|
2380
|
-
const CIRCLE_LANE_SCALE_FACTOR = 0.85;
|
|
2381
|
-
const zoom = (0, ZoomContext_exports.useZoomContext)();
|
|
2382
|
-
const initFullscreenEl = typeof document !== "undefined" ? document.fullscreenElement : null;
|
|
2383
|
-
const initScale = initFullscreenEl && initFullscreenEl.tagName !== "BODY" ? 1 : zoom || 1;
|
|
2384
|
-
const scaleFactorRef = (0, react_exports.useRef)(initScale);
|
|
2385
|
-
(0, react_exports.useEffect)(() => {
|
|
2386
|
-
const fullscreenEl = document.fullscreenElement;
|
|
2387
|
-
if (fullscreenEl && fullscreenEl.tagName !== "BODY") {
|
|
2388
|
-
scaleFactorRef.current = 1;
|
|
2389
|
-
} else {
|
|
2390
|
-
scaleFactorRef.current = zoom;
|
|
2391
|
-
}
|
|
2392
|
-
}, [zoom]);
|
|
2393
|
-
const dpr = window.devicePixelRatio || 1;
|
|
2394
2543
|
let previousTooltipContent = null;
|
|
2395
2544
|
const handleMouseLeave = (u) => {
|
|
2396
2545
|
const xCursorLine = u.root.querySelector(".u-cursor-x");
|
|
@@ -2442,128 +2591,294 @@ var CursorPlugin = (props) => {
|
|
|
2442
2591
|
const xCursorLine = u.root.querySelector(".u-cursor-x");
|
|
2443
2592
|
if (!mouseEvent) {
|
|
2444
2593
|
tooltipRef.current.visible = false;
|
|
2445
|
-
|
|
2446
|
-
xCursorLine.classList.add("u-off");
|
|
2447
|
-
}
|
|
2594
|
+
toggleCursorLine(xCursorLine, true);
|
|
2448
2595
|
return;
|
|
2449
2596
|
}
|
|
2450
2597
|
const rect = u.root.getBoundingClientRect();
|
|
2451
|
-
const
|
|
2452
|
-
const
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
|
|
2464
|
-
|
|
2465
|
-
|
|
2466
|
-
|
|
2467
|
-
|
|
2468
|
-
Math.max(1, Math.floor(yPos / FIXED_LANE_HEIGHT) + 1)
|
|
2469
|
-
);
|
|
2470
|
-
const events = laneSeries[cursorSeriesIndex - 1];
|
|
2471
|
-
let showTooltip = false;
|
|
2472
|
-
let tooltipContent = {};
|
|
2473
|
-
let tooltipMeta = {};
|
|
2474
|
-
let tooltipX = 0;
|
|
2475
|
-
let tooltipY = 0;
|
|
2476
|
-
let overflow = false;
|
|
2477
|
-
if (events) {
|
|
2478
|
-
const sortedEvents = [...events].sort((a, b) => {
|
|
2479
|
-
if (a.duration === 0 && b.duration !== 0) return 1;
|
|
2480
|
-
if (a.duration !== 0 && b.duration === 0) return -1;
|
|
2481
|
-
return 0;
|
|
2598
|
+
const dpr = window.devicePixelRatio || 1;
|
|
2599
|
+
const cursorPosition = getCursorPosition({
|
|
2600
|
+
mouseEvent,
|
|
2601
|
+
rect,
|
|
2602
|
+
bbox: u.bbox,
|
|
2603
|
+
scaleFactor,
|
|
2604
|
+
dpr
|
|
2605
|
+
});
|
|
2606
|
+
u.cursor.left = cursorPosition.x;
|
|
2607
|
+
u.cursor.top = cursorPosition.y;
|
|
2608
|
+
if (updateCursorLine(xCursorLine, cursorPosition, u, dpr)) {
|
|
2609
|
+
clearTooltipIfVisible({
|
|
2610
|
+
chart: u,
|
|
2611
|
+
tooltipRef,
|
|
2612
|
+
setHighlightedLane,
|
|
2613
|
+
setHighlightedEvent,
|
|
2614
|
+
setHighlightedCategory
|
|
2482
2615
|
});
|
|
2483
|
-
|
|
2484
|
-
for (let i = sortedEvents.length - 1; i >= 0; i -= 1) {
|
|
2485
|
-
const event = sortedEvents[i];
|
|
2486
|
-
const xStartFraction = (event.start - u.scales.x.min) / durationPerTick;
|
|
2487
|
-
const xStartBase = xStartFraction * widthPerTick;
|
|
2488
|
-
const xStart = cursorSeriesIndex - 1 === 0 ? xStartBase + 2 : xStartBase;
|
|
2489
|
-
if (event.duration === 0) {
|
|
2490
|
-
const circleRadius = FIXED_LANE_HEIGHT * CIRCLE_LANE_SCALE_FACTOR / 2;
|
|
2491
|
-
if (xPos >= xStart - circleRadius && xPos <= xStart + circleRadius) {
|
|
2492
|
-
tooltipX = xStart + CIRCLE_X_OFFSET;
|
|
2493
|
-
tooltipY = cursorSeriesIndex * FIXED_LANE_HEIGHT;
|
|
2494
|
-
showTooltip = true;
|
|
2495
|
-
}
|
|
2496
|
-
} else {
|
|
2497
|
-
const durationWidth = event.duration / durationPerTick * widthPerTick;
|
|
2498
|
-
const barWidth = Math.max(durationWidth, MIN_BAR_WIDTH);
|
|
2499
|
-
if (xPos >= xStart && xPos <= xStart + barWidth) {
|
|
2500
|
-
tooltipX = xStart + CIRCLE_X_OFFSET;
|
|
2501
|
-
tooltipY = cursorSeriesIndex * FIXED_LANE_HEIGHT;
|
|
2502
|
-
showTooltip = true;
|
|
2503
|
-
}
|
|
2504
|
-
}
|
|
2505
|
-
if (showTooltip) {
|
|
2506
|
-
const displaySeconds = durationPerTick < 6e4 && event.duration !== 0;
|
|
2507
|
-
const startTime = new Date(event.start).toLocaleTimeString(
|
|
2508
|
-
locale,
|
|
2509
|
-
tooltipLocaleTimeFormat(displaySeconds)
|
|
2510
|
-
);
|
|
2511
|
-
const endTime = new Date(event.end).toLocaleTimeString(
|
|
2512
|
-
locale,
|
|
2513
|
-
tooltipLocaleTimeFormat(displaySeconds)
|
|
2514
|
-
);
|
|
2515
|
-
const lane = lanes[cursorSeriesIndex - 1];
|
|
2516
|
-
tooltipContent = __spreadValues({
|
|
2517
|
-
from: startTime,
|
|
2518
|
-
to: endTime,
|
|
2519
|
-
lane,
|
|
2520
|
-
category: (event == null ? void 0 : event.category) || void 0
|
|
2521
|
-
}, event.additionalTooltipValue);
|
|
2522
|
-
tooltipMeta = __spreadValues({
|
|
2523
|
-
duration: event.duration
|
|
2524
|
-
}, event.additionalTooltipValue);
|
|
2525
|
-
const tooltipWidth = 85;
|
|
2526
|
-
const plotRightEdge = u.bbox.width / dpr;
|
|
2527
|
-
if (tooltipX + tooltipWidth > plotRightEdge) {
|
|
2528
|
-
overflow = true;
|
|
2529
|
-
tooltipY -= FIXED_LANE_HEIGHT / 2;
|
|
2530
|
-
tooltipX -= event.duration === 0 ? FIXED_LANE_HEIGHT : MIN_BAR_WIDTH;
|
|
2531
|
-
}
|
|
2532
|
-
if (!tooltipRef.current.visible || tooltipRef.current.content !== tooltipContent) {
|
|
2533
|
-
u.root.style.cursor = "pointer";
|
|
2534
|
-
tooltipRef.current = {
|
|
2535
|
-
visible: true,
|
|
2536
|
-
x: tooltipX,
|
|
2537
|
-
y: tooltipY,
|
|
2538
|
-
overflow,
|
|
2539
|
-
content: tooltipContent,
|
|
2540
|
-
meta: tooltipMeta
|
|
2541
|
-
};
|
|
2542
|
-
setHighlightedLane(lane);
|
|
2543
|
-
setHighlightedEvent(event);
|
|
2544
|
-
setHighlightedCategory(event.category);
|
|
2545
|
-
}
|
|
2546
|
-
break;
|
|
2547
|
-
}
|
|
2548
|
-
}
|
|
2616
|
+
return;
|
|
2549
2617
|
}
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
2556
|
-
|
|
2557
|
-
|
|
2558
|
-
|
|
2559
|
-
|
|
2560
|
-
|
|
2618
|
+
const tooltipState = getTooltipState({
|
|
2619
|
+
cursorPosition,
|
|
2620
|
+
laneSeries,
|
|
2621
|
+
lanes,
|
|
2622
|
+
numTicks,
|
|
2623
|
+
durationPerTick,
|
|
2624
|
+
locale,
|
|
2625
|
+
dpr,
|
|
2626
|
+
chart: u
|
|
2627
|
+
});
|
|
2628
|
+
if (!tooltipState) {
|
|
2629
|
+
clearTooltipIfVisible({
|
|
2630
|
+
chart: u,
|
|
2631
|
+
tooltipRef,
|
|
2632
|
+
setHighlightedLane,
|
|
2633
|
+
setHighlightedEvent,
|
|
2634
|
+
setHighlightedCategory
|
|
2635
|
+
});
|
|
2636
|
+
return;
|
|
2561
2637
|
}
|
|
2638
|
+
applyTooltipState({
|
|
2639
|
+
chart: u,
|
|
2640
|
+
tooltipState,
|
|
2641
|
+
tooltipRef,
|
|
2642
|
+
setHighlightedLane,
|
|
2643
|
+
setHighlightedEvent,
|
|
2644
|
+
setHighlightedCategory
|
|
2645
|
+
});
|
|
2562
2646
|
}
|
|
2563
2647
|
}
|
|
2564
2648
|
};
|
|
2565
2649
|
};
|
|
2566
2650
|
var CursorPlugin_default = CursorPlugin;
|
|
2651
|
+
function toggleCursorLine(xCursorLine, shouldHide) {
|
|
2652
|
+
if (!xCursorLine) {
|
|
2653
|
+
return;
|
|
2654
|
+
}
|
|
2655
|
+
if (shouldHide) {
|
|
2656
|
+
xCursorLine.classList.add("u-off");
|
|
2657
|
+
return;
|
|
2658
|
+
}
|
|
2659
|
+
xCursorLine.classList.remove("u-off");
|
|
2660
|
+
}
|
|
2661
|
+
function getCursorPosition({ mouseEvent, rect, bbox, scaleFactor, dpr }) {
|
|
2662
|
+
const plotLeftCss = bbox.left / dpr;
|
|
2663
|
+
const plotTopCss = bbox.top / dpr;
|
|
2664
|
+
return {
|
|
2665
|
+
x: (mouseEvent.clientX - rect.left - plotLeftCss) / scaleFactor,
|
|
2666
|
+
y: (mouseEvent.clientY - rect.top - plotTopCss) / scaleFactor
|
|
2667
|
+
};
|
|
2668
|
+
}
|
|
2669
|
+
function updateCursorLine(xCursorLine, cursorPosition, chart, dpr) {
|
|
2670
|
+
const { x, y } = cursorPosition;
|
|
2671
|
+
const outOfBounds = x < 0 || x > chart.bbox.width / dpr || y < 0 || y > chart.bbox.height / dpr;
|
|
2672
|
+
if (outOfBounds) {
|
|
2673
|
+
toggleCursorLine(xCursorLine, true);
|
|
2674
|
+
return true;
|
|
2675
|
+
}
|
|
2676
|
+
toggleCursorLine(xCursorLine, false);
|
|
2677
|
+
if (xCursorLine) {
|
|
2678
|
+
xCursorLine.style.transform = `translateX(${x}px)`;
|
|
2679
|
+
}
|
|
2680
|
+
return false;
|
|
2681
|
+
}
|
|
2682
|
+
function getTooltipState({
|
|
2683
|
+
cursorPosition,
|
|
2684
|
+
laneSeries,
|
|
2685
|
+
lanes,
|
|
2686
|
+
numTicks,
|
|
2687
|
+
durationPerTick,
|
|
2688
|
+
locale,
|
|
2689
|
+
dpr,
|
|
2690
|
+
chart
|
|
2691
|
+
}) {
|
|
2692
|
+
var _a, _b, _c;
|
|
2693
|
+
const cursorSeriesIndex = deriveCursorSeriesIndex({
|
|
2694
|
+
cursorPosition,
|
|
2695
|
+
lanes
|
|
2696
|
+
});
|
|
2697
|
+
if (!cursorSeriesIndex) {
|
|
2698
|
+
return null;
|
|
2699
|
+
}
|
|
2700
|
+
const events = laneSeries[cursorSeriesIndex - 1];
|
|
2701
|
+
if (!events || events.length === 0) {
|
|
2702
|
+
return null;
|
|
2703
|
+
}
|
|
2704
|
+
const widthPerTick = chart.bbox.width / dpr / numTicks;
|
|
2705
|
+
const sortedEvents = sortEventsByDuration(events);
|
|
2706
|
+
const hit = findEventHit({
|
|
2707
|
+
events: sortedEvents,
|
|
2708
|
+
cursorSeriesIndex,
|
|
2709
|
+
cursorPosition,
|
|
2710
|
+
durationPerTick,
|
|
2711
|
+
widthPerTick,
|
|
2712
|
+
xScaleMin: (_c = (_b = (_a = chart == null ? void 0 : chart.scales) == null ? void 0 : _a.x) == null ? void 0 : _b.min) != null ? _c : 0
|
|
2713
|
+
});
|
|
2714
|
+
if (!hit) {
|
|
2715
|
+
return null;
|
|
2716
|
+
}
|
|
2717
|
+
const lane = lanes[cursorSeriesIndex - 1];
|
|
2718
|
+
if (!lane) {
|
|
2719
|
+
return null;
|
|
2720
|
+
}
|
|
2721
|
+
const tooltip = adjustForOverflow({
|
|
2722
|
+
tooltipX: hit.tooltipX,
|
|
2723
|
+
tooltipY: hit.tooltipY,
|
|
2724
|
+
event: hit.event,
|
|
2725
|
+
plotRightEdge: chart.bbox.width / dpr
|
|
2726
|
+
});
|
|
2727
|
+
const displaySeconds = durationPerTick < 6e4 && hit.event.duration !== 0;
|
|
2728
|
+
const content = buildTooltipContent({ lane, event: hit.event, locale, displaySeconds });
|
|
2729
|
+
const meta = buildTooltipMeta(hit.event);
|
|
2730
|
+
return {
|
|
2731
|
+
lane,
|
|
2732
|
+
event: hit.event,
|
|
2733
|
+
tooltip,
|
|
2734
|
+
content,
|
|
2735
|
+
meta
|
|
2736
|
+
};
|
|
2737
|
+
}
|
|
2738
|
+
function deriveCursorSeriesIndex({ cursorPosition, lanes }) {
|
|
2739
|
+
if (!lanes.length) {
|
|
2740
|
+
return 0;
|
|
2741
|
+
}
|
|
2742
|
+
const rawIndex = Math.floor(cursorPosition.y / FIXED_LANE_HEIGHT) + 1;
|
|
2743
|
+
return Math.min(lanes.length, Math.max(1, rawIndex));
|
|
2744
|
+
}
|
|
2745
|
+
function sortEventsByDuration(events) {
|
|
2746
|
+
return [...events].sort((a, b) => {
|
|
2747
|
+
if (a.duration === 0 && b.duration !== 0) return 1;
|
|
2748
|
+
if (a.duration !== 0 && b.duration === 0) return -1;
|
|
2749
|
+
return 0;
|
|
2750
|
+
});
|
|
2751
|
+
}
|
|
2752
|
+
function findEventHit({
|
|
2753
|
+
events,
|
|
2754
|
+
cursorSeriesIndex,
|
|
2755
|
+
cursorPosition,
|
|
2756
|
+
durationPerTick,
|
|
2757
|
+
widthPerTick,
|
|
2758
|
+
xScaleMin
|
|
2759
|
+
}) {
|
|
2760
|
+
for (let i = events.length - 1; i >= 0; i -= 1) {
|
|
2761
|
+
const event = events[i];
|
|
2762
|
+
const metrics = getEventMetrics({
|
|
2763
|
+
event,
|
|
2764
|
+
cursorSeriesIndex,
|
|
2765
|
+
durationPerTick,
|
|
2766
|
+
widthPerTick,
|
|
2767
|
+
xScaleMin
|
|
2768
|
+
});
|
|
2769
|
+
if (metrics && hitTestEvent({ metrics, cursorPosition })) {
|
|
2770
|
+
return {
|
|
2771
|
+
event,
|
|
2772
|
+
tooltipX: metrics.tooltipX,
|
|
2773
|
+
tooltipY: metrics.tooltipY
|
|
2774
|
+
};
|
|
2775
|
+
}
|
|
2776
|
+
}
|
|
2777
|
+
return null;
|
|
2778
|
+
}
|
|
2779
|
+
function getEventMetrics({ event, cursorSeriesIndex, durationPerTick, widthPerTick, xScaleMin }) {
|
|
2780
|
+
const xStartFraction = (event.start - xScaleMin) / durationPerTick;
|
|
2781
|
+
const xStartBase = xStartFraction * widthPerTick;
|
|
2782
|
+
const xStart = cursorSeriesIndex - 1 === 0 ? xStartBase + 2 : xStartBase;
|
|
2783
|
+
if (event.duration === 0) {
|
|
2784
|
+
const circleRadius = FIXED_LANE_HEIGHT * CIRCLE_LANE_SCALE_FACTOR / 2;
|
|
2785
|
+
return {
|
|
2786
|
+
tooltipX: xStart + CIRCLE_X_OFFSET,
|
|
2787
|
+
tooltipY: cursorSeriesIndex * FIXED_LANE_HEIGHT,
|
|
2788
|
+
hitMin: xStart - circleRadius,
|
|
2789
|
+
hitMax: xStart + circleRadius
|
|
2790
|
+
};
|
|
2791
|
+
}
|
|
2792
|
+
const durationWidth = event.duration / durationPerTick * widthPerTick;
|
|
2793
|
+
const barWidth = Math.max(durationWidth, MIN_BAR_WIDTH);
|
|
2794
|
+
return {
|
|
2795
|
+
tooltipX: xStart + CIRCLE_X_OFFSET,
|
|
2796
|
+
tooltipY: cursorSeriesIndex * FIXED_LANE_HEIGHT,
|
|
2797
|
+
hitMin: xStart,
|
|
2798
|
+
hitMax: xStart + barWidth
|
|
2799
|
+
};
|
|
2800
|
+
}
|
|
2801
|
+
function hitTestEvent({ metrics, cursorPosition }) {
|
|
2802
|
+
const { x } = cursorPosition;
|
|
2803
|
+
return x >= metrics.hitMin && x <= metrics.hitMax;
|
|
2804
|
+
}
|
|
2805
|
+
function adjustForOverflow({ tooltipX, tooltipY, event, plotRightEdge }) {
|
|
2806
|
+
const tooltipWidth = 85;
|
|
2807
|
+
let overflow = false;
|
|
2808
|
+
let adjustedX = tooltipX;
|
|
2809
|
+
let adjustedY = tooltipY;
|
|
2810
|
+
if (tooltipX + tooltipWidth > plotRightEdge) {
|
|
2811
|
+
overflow = true;
|
|
2812
|
+
adjustedY -= FIXED_LANE_HEIGHT / 2;
|
|
2813
|
+
adjustedX -= event.duration === 0 ? FIXED_LANE_HEIGHT : MIN_BAR_WIDTH;
|
|
2814
|
+
}
|
|
2815
|
+
return {
|
|
2816
|
+
x: adjustedX,
|
|
2817
|
+
y: adjustedY,
|
|
2818
|
+
overflow
|
|
2819
|
+
};
|
|
2820
|
+
}
|
|
2821
|
+
function buildTooltipContent({ lane, event, locale, displaySeconds }) {
|
|
2822
|
+
const startTime = new Date(event.start).toLocaleTimeString(
|
|
2823
|
+
locale,
|
|
2824
|
+
tooltipLocaleTimeFormat(displaySeconds)
|
|
2825
|
+
);
|
|
2826
|
+
const endTime = new Date(event.end).toLocaleTimeString(locale, tooltipLocaleTimeFormat(displaySeconds));
|
|
2827
|
+
return __spreadValues({
|
|
2828
|
+
from: startTime,
|
|
2829
|
+
to: endTime,
|
|
2830
|
+
lane,
|
|
2831
|
+
category: (event == null ? void 0 : event.category) || void 0
|
|
2832
|
+
}, event.additionalTooltipValue);
|
|
2833
|
+
}
|
|
2834
|
+
function buildTooltipMeta(event) {
|
|
2835
|
+
return __spreadValues({
|
|
2836
|
+
duration: event.duration
|
|
2837
|
+
}, event.additionalTooltipValue);
|
|
2838
|
+
}
|
|
2839
|
+
function applyTooltipState({
|
|
2840
|
+
chart,
|
|
2841
|
+
tooltipState,
|
|
2842
|
+
tooltipRef,
|
|
2843
|
+
setHighlightedLane,
|
|
2844
|
+
setHighlightedEvent,
|
|
2845
|
+
setHighlightedCategory
|
|
2846
|
+
}) {
|
|
2847
|
+
var _a;
|
|
2848
|
+
chart.root.style.cursor = "pointer";
|
|
2849
|
+
tooltipRef.current = {
|
|
2850
|
+
visible: true,
|
|
2851
|
+
x: tooltipState.tooltip.x,
|
|
2852
|
+
y: tooltipState.tooltip.y,
|
|
2853
|
+
overflow: tooltipState.tooltip.overflow,
|
|
2854
|
+
content: tooltipState.content,
|
|
2855
|
+
meta: tooltipState.meta
|
|
2856
|
+
};
|
|
2857
|
+
setHighlightedLane(tooltipState.lane);
|
|
2858
|
+
setHighlightedEvent(tooltipState.event);
|
|
2859
|
+
setHighlightedCategory((_a = tooltipState.event) == null ? void 0 : _a.category);
|
|
2860
|
+
}
|
|
2861
|
+
function clearTooltipIfVisible({
|
|
2862
|
+
chart,
|
|
2863
|
+
tooltipRef,
|
|
2864
|
+
setHighlightedLane,
|
|
2865
|
+
setHighlightedEvent,
|
|
2866
|
+
setHighlightedCategory
|
|
2867
|
+
}) {
|
|
2868
|
+
if (!tooltipRef.current.visible) {
|
|
2869
|
+
return;
|
|
2870
|
+
}
|
|
2871
|
+
chart.root.style.cursor = "default";
|
|
2872
|
+
tooltipRef.current = {
|
|
2873
|
+
visible: false,
|
|
2874
|
+
overflow: false,
|
|
2875
|
+
content: "",
|
|
2876
|
+
meta: ""
|
|
2877
|
+
};
|
|
2878
|
+
setHighlightedLane(null);
|
|
2879
|
+
setHighlightedEvent(null);
|
|
2880
|
+
setHighlightedCategory(null);
|
|
2881
|
+
}
|
|
2567
2882
|
|
|
2568
2883
|
// src/Timeline/PureTimeline/src/TimelinePlugin.tsx
|
|
2569
2884
|
var TimelinePlugin = ({
|
|
@@ -2573,52 +2888,58 @@ var TimelinePlugin = ({
|
|
|
2573
2888
|
numTicks,
|
|
2574
2889
|
durationPerTick,
|
|
2575
2890
|
highlightedCategory = null,
|
|
2576
|
-
highlightedEvent = null
|
|
2891
|
+
highlightedEvent = null,
|
|
2892
|
+
theme
|
|
2577
2893
|
}) => {
|
|
2578
|
-
const
|
|
2894
|
+
const FIXED_LANE_HEIGHT2 = 32;
|
|
2579
2895
|
const AXIS_COLOR = backgroundColor;
|
|
2580
2896
|
const ALTERNATE_COLOR = getAlternateColor(backgroundColor, 0.1);
|
|
2581
|
-
const
|
|
2897
|
+
const MIN_BAR_WIDTH2 = 20;
|
|
2582
2898
|
const LANE_SCALE_FACTOR = 0.85;
|
|
2583
|
-
const theme = (0, themes_exports.useSplunkTheme)();
|
|
2584
2899
|
let dpr = window.devicePixelRatio || 1;
|
|
2585
2900
|
const redrawChart = (u) => {
|
|
2586
2901
|
u.redraw();
|
|
2587
2902
|
};
|
|
2903
|
+
let resizeHandler;
|
|
2588
2904
|
return {
|
|
2589
2905
|
hooks: {
|
|
2906
|
+
destroy: () => {
|
|
2907
|
+
if (resizeHandler) {
|
|
2908
|
+
window.removeEventListener("resize", resizeHandler);
|
|
2909
|
+
}
|
|
2910
|
+
},
|
|
2590
2911
|
drawClear: (u) => {
|
|
2591
2912
|
const { ctx } = u;
|
|
2592
2913
|
const canvas = u.root.querySelector("canvas");
|
|
2593
2914
|
if (canvas) {
|
|
2594
2915
|
canvas.style.position = "absolute";
|
|
2595
2916
|
}
|
|
2596
|
-
|
|
2917
|
+
resizeHandler = () => {
|
|
2597
2918
|
const newDpr = window.devicePixelRatio || 1;
|
|
2919
|
+
console.warn(newDpr, dpr);
|
|
2598
2920
|
if (newDpr !== dpr) {
|
|
2599
2921
|
dpr = newDpr;
|
|
2600
2922
|
redrawChart(u);
|
|
2601
2923
|
}
|
|
2602
|
-
}
|
|
2924
|
+
};
|
|
2925
|
+
window.addEventListener("resize", resizeHandler);
|
|
2603
2926
|
ctx.save();
|
|
2604
|
-
|
|
2605
|
-
const chartTopY = u.bbox.top / dpr;
|
|
2927
|
+
const chartTopY = 0;
|
|
2606
2928
|
lanes.forEach((lane, sidx) => {
|
|
2607
|
-
const y = chartTopY + sidx *
|
|
2929
|
+
const y = chartTopY + sidx * FIXED_LANE_HEIGHT2;
|
|
2608
2930
|
ctx.fillStyle = (lanes.length - sidx - 1) % 2 === 0 ? AXIS_COLOR : ALTERNATE_COLOR;
|
|
2609
|
-
ctx.fillRect(
|
|
2931
|
+
ctx.fillRect(0, y, u.width, FIXED_LANE_HEIGHT2);
|
|
2610
2932
|
});
|
|
2611
2933
|
ctx.restore();
|
|
2612
2934
|
},
|
|
2613
2935
|
draw: (u) => {
|
|
2614
2936
|
const { ctx } = u;
|
|
2615
|
-
const widthPerTick = u.
|
|
2937
|
+
const widthPerTick = u.width / numTicks;
|
|
2616
2938
|
const scaleMin = u.scales.x.min;
|
|
2617
2939
|
ctx.save();
|
|
2618
|
-
ctx.scale(dpr, dpr);
|
|
2619
2940
|
lanes.forEach((lane, sidx) => {
|
|
2620
2941
|
const events = laneSeries[sidx];
|
|
2621
|
-
const laneCenterY =
|
|
2942
|
+
const laneCenterY = sidx * FIXED_LANE_HEIGHT2 + FIXED_LANE_HEIGHT2 / 2;
|
|
2622
2943
|
events.forEach((event) => {
|
|
2623
2944
|
const isHighlighted = highlightedEvent ? highlightedEvent === event : highlightedCategory === null || event.category === highlightedCategory;
|
|
2624
2945
|
const fillColor = isHighlighted ? hexToRgba(event.color, 0.5) : hexToRgba(theme.contentColorMuted, 0.2);
|
|
@@ -2626,8 +2947,8 @@ var TimelinePlugin = ({
|
|
|
2626
2947
|
const xStartFraction = (event.start - scaleMin) / durationPerTick;
|
|
2627
2948
|
const xStart = sidx === 0 ? xStartFraction * widthPerTick + 2 : xStartFraction * widthPerTick;
|
|
2628
2949
|
const durationWidth = event.duration / durationPerTick * widthPerTick;
|
|
2629
|
-
const barWidth = Math.max(durationWidth,
|
|
2630
|
-
const barHeight =
|
|
2950
|
+
const barWidth = Math.max(durationWidth, MIN_BAR_WIDTH2);
|
|
2951
|
+
const barHeight = FIXED_LANE_HEIGHT2 * LANE_SCALE_FACTOR;
|
|
2631
2952
|
const yBarTop = laneCenterY - barHeight / 2;
|
|
2632
2953
|
if (xStart >= 0) {
|
|
2633
2954
|
if (event.duration === null || event.duration === 0) {
|
|
@@ -2664,9 +2985,10 @@ var XAxisPlugin = ({
|
|
|
2664
2985
|
tickInterval = "1d",
|
|
2665
2986
|
isFontLoaded = false,
|
|
2666
2987
|
locale = "en-US",
|
|
2667
|
-
setIsFontLoaded
|
|
2988
|
+
setIsFontLoaded,
|
|
2989
|
+
theme
|
|
2668
2990
|
} = {}) => {
|
|
2669
|
-
const themes3 =
|
|
2991
|
+
const themes3 = theme;
|
|
2670
2992
|
const redrawFont = () => {
|
|
2671
2993
|
if (!isFontLoaded) {
|
|
2672
2994
|
setIsFontLoaded(true);
|
|
@@ -2686,17 +3008,14 @@ var XAxisPlugin = ({
|
|
|
2686
3008
|
},
|
|
2687
3009
|
drawClear: (u) => {
|
|
2688
3010
|
const { ctx } = u;
|
|
2689
|
-
const dpr = window.devicePixelRatio || 1;
|
|
2690
3011
|
ctx.save();
|
|
2691
|
-
|
|
2692
|
-
const xAxisY = (u.bbox.top + u.bbox.height - X_AXIS_HEIGHT * dpr) / dpr;
|
|
3012
|
+
const xAxisY = u.height - X_AXIS_HEIGHT;
|
|
2693
3013
|
ctx.fillStyle = backgroundColor;
|
|
2694
|
-
ctx.fillRect(0, xAxisY, u.
|
|
3014
|
+
ctx.fillRect(0, xAxisY, u.width, X_AXIS_HEIGHT);
|
|
2695
3015
|
ctx.restore();
|
|
2696
3016
|
},
|
|
2697
3017
|
draw: (u) => {
|
|
2698
3018
|
const { ctx } = u;
|
|
2699
|
-
const dpr = window.devicePixelRatio || 1;
|
|
2700
3019
|
const scaleMin = u.scales.x.min;
|
|
2701
3020
|
const maxLabelWidth = 50;
|
|
2702
3021
|
const ticks = [scaleMin];
|
|
@@ -2739,7 +3058,6 @@ var XAxisPlugin = ({
|
|
|
2739
3058
|
return labelParts;
|
|
2740
3059
|
});
|
|
2741
3060
|
ctx.save();
|
|
2742
|
-
ctx.scale(dpr, dpr);
|
|
2743
3061
|
ctx.font = `10px ${VIZ_FONT_FAMILY}`;
|
|
2744
3062
|
ctx.fillStyle = themes3.contentColorDefault;
|
|
2745
3063
|
ctx.textAlign = "left";
|
|
@@ -2747,15 +3065,15 @@ var XAxisPlugin = ({
|
|
|
2747
3065
|
const tickHeight = 5;
|
|
2748
3066
|
const labelOffset = 5;
|
|
2749
3067
|
const lineHeight = 12;
|
|
2750
|
-
const xAxisY =
|
|
3068
|
+
const xAxisY = u.height - X_AXIS_HEIGHT;
|
|
2751
3069
|
ticks.forEach((val, i) => {
|
|
2752
3070
|
let xTickPosition;
|
|
2753
3071
|
if (i === 0) {
|
|
2754
3072
|
xTickPosition = 0;
|
|
2755
3073
|
} else {
|
|
2756
|
-
xTickPosition = i * (u.
|
|
3074
|
+
xTickPosition = i * (u.width / numTicks);
|
|
2757
3075
|
}
|
|
2758
|
-
if (i === ticks.length - 1 && xTickPosition + maxLabelWidth > u.
|
|
3076
|
+
if (i === ticks.length - 1 && xTickPosition + maxLabelWidth > u.width) {
|
|
2759
3077
|
return;
|
|
2760
3078
|
}
|
|
2761
3079
|
const yLabelPosition = xAxisY + tickHeight + labelOffset;
|
|
@@ -2763,7 +3081,7 @@ var XAxisPlugin = ({
|
|
|
2763
3081
|
ctx.moveTo(xTickPosition, xAxisY);
|
|
2764
3082
|
ctx.lineTo(xTickPosition, xAxisY + tickHeight);
|
|
2765
3083
|
ctx.strokeStyle = "rgba(144, 144, 144, 0.5)";
|
|
2766
|
-
ctx.lineWidth = i === 0 ? 1
|
|
3084
|
+
ctx.lineWidth = i === 0 ? 1 : 0.5;
|
|
2767
3085
|
ctx.stroke();
|
|
2768
3086
|
const label = labels[i];
|
|
2769
3087
|
if (label) {
|
|
@@ -2864,7 +3182,7 @@ TimelineYAxis.propTypes = {
|
|
|
2864
3182
|
var TimelineYAxis_default = TimelineYAxis;
|
|
2865
3183
|
|
|
2866
3184
|
// src/Timeline/PureTimeline/src/TimelineLegend.tsx
|
|
2867
|
-
var LEGEND_WIDTH =
|
|
3185
|
+
var LEGEND_WIDTH = 88;
|
|
2868
3186
|
var LEGEND_TEXT_WIDTH = 55;
|
|
2869
3187
|
var LegendContainer = styled_components_default.div`
|
|
2870
3188
|
display: flex;
|
|
@@ -2891,7 +3209,7 @@ var LegendContainer = styled_components_default.div`
|
|
|
2891
3209
|
`;
|
|
2892
3210
|
var LegendItem = styled_components_default.div`
|
|
2893
3211
|
display: flex;
|
|
2894
|
-
align-items: center;
|
|
3212
|
+
align-items: ${({ legendTruncation }) => legendTruncation === "ellipsisOff" ? "flex-start" : "center"};
|
|
2895
3213
|
margin: ${({ legendDisplay }) => legendDisplay === "bottom" ? "10px 20px 10px 0px" : "4px"};
|
|
2896
3214
|
cursor: pointer;
|
|
2897
3215
|
opacity: ${({ isHighlighted }) => isHighlighted ? 1 : 0.5};
|
|
@@ -2901,13 +3219,18 @@ var LegendColor = styled_components_default.div`
|
|
|
2901
3219
|
width: 6px;
|
|
2902
3220
|
height: 11px;
|
|
2903
3221
|
margin-right: ${({ legendDisplay }) => legendDisplay === "bottom" ? "8px" : "4px"};
|
|
3222
|
+
margin-top: ${({ legendTruncation }) => legendTruncation === "ellipsisOff" ? "2px" : "0"};
|
|
2904
3223
|
background-color: ${({ color }) => hexToRgba(color, 0.5)};
|
|
2905
3224
|
border: 1px solid ${({ color }) => color};
|
|
2906
3225
|
transform: ${({ legendDisplay }) => legendDisplay === "bottom" ? "rotate(90deg)" : "none"};
|
|
2907
3226
|
opacity: ${({ isHighlighted }) => isHighlighted ? 1 : 0.5};
|
|
2908
3227
|
`;
|
|
2909
3228
|
var LegendText = styled_components_default.div`
|
|
2910
|
-
${({ legendTruncation }) => legendTruncation
|
|
3229
|
+
${({ legendTruncation }) => legendTruncation === "ellipsisOff" ? `
|
|
3230
|
+
white-space: normal;
|
|
3231
|
+
word-wrap: break-word;
|
|
3232
|
+
overflow-wrap: break-word;
|
|
3233
|
+
` : `
|
|
2911
3234
|
white-space: nowrap;
|
|
2912
3235
|
overflow: hidden;
|
|
2913
3236
|
text-overflow: ellipsis;
|
|
@@ -2930,10 +3253,8 @@ var TimelineLegend = ({
|
|
|
2930
3253
|
const handleMouseEnter = (category) => {
|
|
2931
3254
|
setHighlightedCategory == null ? void 0 : setHighlightedCategory(category);
|
|
2932
3255
|
};
|
|
2933
|
-
const handleMouseLeave = (
|
|
2934
|
-
|
|
2935
|
-
setHighlightedCategory == null ? void 0 : setHighlightedCategory(null);
|
|
2936
|
-
}
|
|
3256
|
+
const handleMouseLeave = () => {
|
|
3257
|
+
setHighlightedCategory == null ? void 0 : setHighlightedCategory(null);
|
|
2937
3258
|
};
|
|
2938
3259
|
return /* @__PURE__ */ react_exports.createElement(
|
|
2939
3260
|
LegendContainer,
|
|
@@ -2958,8 +3279,9 @@ var TimelineLegend = ({
|
|
|
2958
3279
|
color,
|
|
2959
3280
|
isHighlighted,
|
|
2960
3281
|
legendDisplay,
|
|
3282
|
+
legendTruncation,
|
|
2961
3283
|
onMouseEnter: () => handleMouseEnter(category),
|
|
2962
|
-
|
|
3284
|
+
onMouseLeave: handleMouseLeave,
|
|
2963
3285
|
onClick: () => {
|
|
2964
3286
|
handleLegendClick2(category);
|
|
2965
3287
|
}
|
|
@@ -2970,7 +3292,8 @@ var TimelineLegend = ({
|
|
|
2970
3292
|
"data-test": "legend-color",
|
|
2971
3293
|
color,
|
|
2972
3294
|
isHighlighted,
|
|
2973
|
-
legendDisplay
|
|
3295
|
+
legendDisplay,
|
|
3296
|
+
legendTruncation
|
|
2974
3297
|
}
|
|
2975
3298
|
),
|
|
2976
3299
|
/* @__PURE__ */ react_exports.createElement(LegendText, { legendTruncation, "data-test": "legend-text" }, truncatedText)
|
|
@@ -2994,9 +3317,9 @@ var useSplunkTheme_exports = {};
|
|
|
2994
3317
|
__export(useSplunkTheme_exports, {
|
|
2995
3318
|
default: () => useSplunkTheme_default
|
|
2996
3319
|
});
|
|
2997
|
-
var
|
|
3320
|
+
var defaultImport36 = __toESM(require("@splunk/themes/useSplunkTheme"));
|
|
2998
3321
|
__reExport(useSplunkTheme_exports, require("@splunk/themes/useSplunkTheme"));
|
|
2999
|
-
var useSplunkTheme_default = "default" in
|
|
3322
|
+
var useSplunkTheme_default = "default" in defaultImport36 ? defaultImport36.default : defaultImport36;
|
|
3000
3323
|
|
|
3001
3324
|
// src/Timeline/PureTimeline/src/TimelineTooltip.tsx
|
|
3002
3325
|
var TooltipContainer = styled_components_default.div`
|
|
@@ -3086,9 +3409,9 @@ var uPlot_min_exports = {};
|
|
|
3086
3409
|
__export(uPlot_min_exports, {
|
|
3087
3410
|
default: () => uPlot_min_default
|
|
3088
3411
|
});
|
|
3089
|
-
var
|
|
3412
|
+
var defaultImport37 = __toESM(require("uplot/dist/uPlot.min.css"));
|
|
3090
3413
|
__reExport(uPlot_min_exports, require("uplot/dist/uPlot.min.css"));
|
|
3091
|
-
var uPlot_min_default = "default" in
|
|
3414
|
+
var uPlot_min_default = "default" in defaultImport37 ? defaultImport37.default : defaultImport37;
|
|
3092
3415
|
|
|
3093
3416
|
// src/Timeline/PureTimeline/src/TimelineUplot.tsx
|
|
3094
3417
|
var TimelineUplotContainer = styled_components_default.div`
|
|
@@ -3129,6 +3452,11 @@ var TimelineUplot = ({
|
|
|
3129
3452
|
const [highlightedEvent, setHighlightedEvent] = react_exports.useState(null);
|
|
3130
3453
|
const [highlightedLane, setHighlightedLane] = react_exports.useState(null);
|
|
3131
3454
|
const [isFontLoaded, setIsFontLoaded] = react_exports.useState(false);
|
|
3455
|
+
const theme = (0, themes_exports.useSplunkTheme)();
|
|
3456
|
+
const zoom = (0, ZoomContext_exports.useZoomContext)();
|
|
3457
|
+
const fullscreenEl = typeof document !== "undefined" ? document.fullscreenElement : null;
|
|
3458
|
+
const scaleFactor = fullscreenEl && fullscreenEl.tagName !== "BODY" ? 1 : zoom || 1;
|
|
3459
|
+
const { version: dprVersion } = (0, visualization_canvas_exports.useDevicePixelRatio)();
|
|
3132
3460
|
const tooltipRef = react_exports.useRef({
|
|
3133
3461
|
visible: false,
|
|
3134
3462
|
x: 0,
|
|
@@ -3153,63 +3481,98 @@ var TimelineUplot = ({
|
|
|
3153
3481
|
const unitsPerTick = Math.ceil(totalNumberOfTicks / maxNumOfTicks);
|
|
3154
3482
|
const numTicks = totalNumberOfTicks / unitsPerTick;
|
|
3155
3483
|
const durationPerTick = granularityMultiplier * unitsPerTick;
|
|
3156
|
-
const opts =
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
3165
|
-
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3484
|
+
const opts = react_exports.useMemo(
|
|
3485
|
+
() => ({
|
|
3486
|
+
width: chartWidth,
|
|
3487
|
+
height: chartHeight,
|
|
3488
|
+
series: [],
|
|
3489
|
+
axes: [
|
|
3490
|
+
{ scale: "x", show: false },
|
|
3491
|
+
{ scale: "y", show: false }
|
|
3492
|
+
],
|
|
3493
|
+
cursor: {
|
|
3494
|
+
x: true,
|
|
3495
|
+
y: false,
|
|
3496
|
+
hover: {
|
|
3497
|
+
prox: 1e3,
|
|
3498
|
+
bias: 0
|
|
3499
|
+
},
|
|
3500
|
+
drag: {
|
|
3501
|
+
setScale: false,
|
|
3502
|
+
x: false,
|
|
3503
|
+
y: false
|
|
3504
|
+
}
|
|
3170
3505
|
},
|
|
3171
|
-
|
|
3172
|
-
|
|
3173
|
-
|
|
3174
|
-
|
|
3175
|
-
|
|
3176
|
-
|
|
3177
|
-
|
|
3178
|
-
|
|
3179
|
-
|
|
3180
|
-
|
|
3181
|
-
|
|
3182
|
-
|
|
3183
|
-
|
|
3184
|
-
|
|
3185
|
-
|
|
3186
|
-
|
|
3187
|
-
|
|
3188
|
-
|
|
3189
|
-
|
|
3190
|
-
|
|
3191
|
-
|
|
3192
|
-
|
|
3193
|
-
|
|
3194
|
-
|
|
3195
|
-
|
|
3196
|
-
|
|
3197
|
-
|
|
3198
|
-
|
|
3199
|
-
|
|
3200
|
-
|
|
3201
|
-
|
|
3202
|
-
|
|
3203
|
-
|
|
3204
|
-
|
|
3205
|
-
|
|
3206
|
-
|
|
3207
|
-
|
|
3208
|
-
|
|
3209
|
-
|
|
3506
|
+
padding: [0, 0, 0, 0],
|
|
3507
|
+
legend: { show: false },
|
|
3508
|
+
pxAlign: false,
|
|
3509
|
+
pxRatio: 1,
|
|
3510
|
+
plugins: [
|
|
3511
|
+
{
|
|
3512
|
+
hooks: createTimelineCanvasScaleHooks(scaleFactor)
|
|
3513
|
+
},
|
|
3514
|
+
TimelinePlugin_default({
|
|
3515
|
+
laneSeries,
|
|
3516
|
+
lanes,
|
|
3517
|
+
backgroundColor,
|
|
3518
|
+
numTicks,
|
|
3519
|
+
durationPerTick,
|
|
3520
|
+
highlightedCategory,
|
|
3521
|
+
highlightedEvent,
|
|
3522
|
+
theme
|
|
3523
|
+
}),
|
|
3524
|
+
XAxisPlugin_default({
|
|
3525
|
+
durationPerTick,
|
|
3526
|
+
numTicks,
|
|
3527
|
+
backgroundColor,
|
|
3528
|
+
tickInterval,
|
|
3529
|
+
isFontLoaded,
|
|
3530
|
+
setIsFontLoaded,
|
|
3531
|
+
locale,
|
|
3532
|
+
theme
|
|
3533
|
+
}),
|
|
3534
|
+
CursorPlugin_default({
|
|
3535
|
+
laneSeries,
|
|
3536
|
+
lanes,
|
|
3537
|
+
numTicks,
|
|
3538
|
+
durationPerTick,
|
|
3539
|
+
setHighlightedCategory,
|
|
3540
|
+
setHighlightedEvent,
|
|
3541
|
+
setHighlightedLane,
|
|
3542
|
+
handleEventClick,
|
|
3543
|
+
tooltipRef,
|
|
3544
|
+
locale,
|
|
3545
|
+
scaleFactor
|
|
3546
|
+
})
|
|
3547
|
+
]
|
|
3548
|
+
}),
|
|
3549
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3550
|
+
[
|
|
3551
|
+
chartWidth,
|
|
3552
|
+
chartHeight,
|
|
3553
|
+
scaleFactor,
|
|
3554
|
+
dprVersion,
|
|
3555
|
+
// Force recreation of canvas scale hooks when DPR changes
|
|
3556
|
+
laneSeries,
|
|
3557
|
+
lanes,
|
|
3558
|
+
backgroundColor,
|
|
3559
|
+
numTicks,
|
|
3560
|
+
durationPerTick,
|
|
3561
|
+
highlightedCategory,
|
|
3562
|
+
highlightedEvent,
|
|
3563
|
+
tickInterval,
|
|
3564
|
+
isFontLoaded,
|
|
3565
|
+
setIsFontLoaded,
|
|
3566
|
+
locale,
|
|
3567
|
+
setHighlightedCategory,
|
|
3568
|
+
setHighlightedEvent,
|
|
3569
|
+
setHighlightedLane,
|
|
3570
|
+
handleEventClick,
|
|
3571
|
+
tooltipRef,
|
|
3572
|
+
theme
|
|
3210
3573
|
]
|
|
3211
|
-
|
|
3212
|
-
return /* @__PURE__ */ react_exports.createElement(TimelineUplotContainer, { legendDisplay }, /* @__PURE__ */ react_exports.createElement(TimelineChartContainer, { "data-test": "timeline-chart-container" }, /* @__PURE__ */ react_exports.createElement(
|
|
3574
|
+
);
|
|
3575
|
+
return /* @__PURE__ */ react_exports.createElement(TimelineUplotContainer, { legendDisplay, "data-test": "timeline-uplot-container" }, /* @__PURE__ */ react_exports.createElement(TimelineChartContainer, { "data-test": "timeline-chart-container" }, /* @__PURE__ */ react_exports.createElement(
|
|
3213
3576
|
TimelineYAxis_default,
|
|
3214
3577
|
{
|
|
3215
3578
|
height: chartHeight,
|
|
@@ -3220,7 +3583,14 @@ var TimelineUplot = ({
|
|
|
3220
3583
|
highlightedLane,
|
|
3221
3584
|
handleLaneClick
|
|
3222
3585
|
}
|
|
3223
|
-
), /* @__PURE__ */ react_exports.createElement(TimelineUplotWrapper, { width: chartWidth }, /* @__PURE__ */ react_exports.createElement(
|
|
3586
|
+
), /* @__PURE__ */ react_exports.createElement(TimelineUplotWrapper, { width: chartWidth }, /* @__PURE__ */ react_exports.createElement(
|
|
3587
|
+
uplot_react_default,
|
|
3588
|
+
{
|
|
3589
|
+
key: `timeline-${dprVersion}-${scaleFactor}`,
|
|
3590
|
+
options: opts,
|
|
3591
|
+
data: [[xMin], ...lanes.map(() => [])]
|
|
3592
|
+
}
|
|
3593
|
+
), /* @__PURE__ */ react_exports.createElement(TimelineTooltip_default, __spreadValues({}, tooltipRef.current)))), showLegend && /* @__PURE__ */ react_exports.createElement(
|
|
3224
3594
|
TimelineLegend_default,
|
|
3225
3595
|
{
|
|
3226
3596
|
height: chartHeight,
|
|
@@ -3274,7 +3644,7 @@ var PureTimeline = (_a) => {
|
|
|
3274
3644
|
const showLegend = (!dataColors || (dataColors == null ? void 0 : dataColors.length) === 0) && (category == null ? void 0 : category.length) > 0 && (legendDisplay === "right" || legendDisplay === "bottom");
|
|
3275
3645
|
const timezone = react_exports.useContext(TimezoneContext_default);
|
|
3276
3646
|
const theme = (0, themes_exports.useSplunkTheme)();
|
|
3277
|
-
const { laneSeries, lanes, categoricalColors, tickInterval } = mapDataToTimeline(
|
|
3647
|
+
const { laneSeries, lanes, categoricalColors, tickInterval } = mapDataToTimeline({
|
|
3278
3648
|
resultLimit,
|
|
3279
3649
|
x,
|
|
3280
3650
|
y,
|
|
@@ -3284,7 +3654,7 @@ var PureTimeline = (_a) => {
|
|
|
3284
3654
|
seriesColors,
|
|
3285
3655
|
additionalTooltipValues,
|
|
3286
3656
|
timezone
|
|
3287
|
-
);
|
|
3657
|
+
});
|
|
3288
3658
|
const handleLaneClick = (laneValue) => {
|
|
3289
3659
|
onLaneClick({
|
|
3290
3660
|
type: "lane.click",
|
|
@@ -3447,40 +3817,17 @@ var computeVizProps = (_a) => {
|
|
|
3447
3817
|
"onLegendClick",
|
|
3448
3818
|
"onLaneClick"
|
|
3449
3819
|
]);
|
|
3450
|
-
let convertedDuration;
|
|
3451
|
-
let timelineDataColors = dataColors;
|
|
3452
|
-
let timelineSeriesColors = seriesColors;
|
|
3453
3820
|
const pickedOptions = (0, lodash_exports.chain)(otherOptions).pick(validOptions).value();
|
|
3454
3821
|
const columns = ((_c = (_b = dataSources == null ? void 0 : dataSources.primary) == null ? void 0 : _b.data) == null ? void 0 : _c.columns) || [];
|
|
3455
3822
|
const fields = ((_e = (_d = dataSources == null ? void 0 : dataSources.primary) == null ? void 0 : _d.data) == null ? void 0 : _e.fields) || [];
|
|
3456
3823
|
const additionalTooltipValues = (pickedOptions == null ? void 0 : pickedOptions.additionalTooltipFields) ? extractAdditionalTooltipValues(columns, fields, pickedOptions == null ? void 0 : pickedOptions.additionalTooltipFields) : [];
|
|
3457
|
-
|
|
3458
|
-
|
|
3459
|
-
|
|
3460
|
-
} catch (e) {
|
|
3461
|
-
timelineSeriesColors = visualization_color_palettes_exports.VIZ_CATEGORICAL;
|
|
3462
|
-
}
|
|
3463
|
-
} else if (!seriesColors) {
|
|
3464
|
-
timelineSeriesColors = visualization_color_palettes_exports.VIZ_CATEGORICAL;
|
|
3465
|
-
} else if (seriesColors && Array.isArray(seriesColors)) {
|
|
3466
|
-
timelineSeriesColors = (0, colorUtils_exports.sanitizeArrayOfColors)(seriesColors);
|
|
3467
|
-
}
|
|
3468
|
-
if (Array.isArray(dataColors) && (dataColors == null ? void 0 : dataColors.length)) {
|
|
3469
|
-
timelineDataColors = (0, colorUtils_exports.sanitizeArrayOfColors)(dataColors);
|
|
3470
|
-
} else if (dataColors && typeof dataColors === "string") {
|
|
3471
|
-
try {
|
|
3472
|
-
timelineDataColors = JSON.parse(dataColors);
|
|
3473
|
-
} catch (e) {
|
|
3474
|
-
timelineDataColors = visualization_color_palettes_exports.VIZ_CATEGORICAL;
|
|
3475
|
-
}
|
|
3476
|
-
}
|
|
3477
|
-
if ((duration == null ? void 0 : duration.length) > 0 && typeof duration[0] === "string") {
|
|
3478
|
-
convertedDuration = convertToNumbers(duration);
|
|
3479
|
-
}
|
|
3824
|
+
const timelineSeriesColors = normalizeSeriesColors(seriesColors);
|
|
3825
|
+
const timelineDataColors = normalizeDataColors(dataColors);
|
|
3826
|
+
const durationValues = normalizeDuration(duration);
|
|
3480
3827
|
return __spreadValues({
|
|
3481
3828
|
x,
|
|
3482
3829
|
y,
|
|
3483
|
-
duration:
|
|
3830
|
+
duration: durationValues,
|
|
3484
3831
|
category,
|
|
3485
3832
|
additionalTooltipValues,
|
|
3486
3833
|
onEventClick,
|
|
@@ -3495,6 +3842,41 @@ function convertToNumbers(arr) {
|
|
|
3495
3842
|
return (0, types_exports.isNumber)(item) ? parseFloat(item) : 0;
|
|
3496
3843
|
});
|
|
3497
3844
|
}
|
|
3845
|
+
function normalizeSeriesColors(seriesColors) {
|
|
3846
|
+
if (seriesColors && typeof seriesColors === "string") {
|
|
3847
|
+
try {
|
|
3848
|
+
return JSON.parse(seriesColors);
|
|
3849
|
+
} catch (e) {
|
|
3850
|
+
return visualization_color_palettes_exports.VIZ_CATEGORICAL;
|
|
3851
|
+
}
|
|
3852
|
+
}
|
|
3853
|
+
if (!seriesColors) {
|
|
3854
|
+
return visualization_color_palettes_exports.VIZ_CATEGORICAL;
|
|
3855
|
+
}
|
|
3856
|
+
if (Array.isArray(seriesColors)) {
|
|
3857
|
+
return (0, colorUtils_exports.sanitizeArrayOfColors)(seriesColors);
|
|
3858
|
+
}
|
|
3859
|
+
return seriesColors;
|
|
3860
|
+
}
|
|
3861
|
+
function normalizeDataColors(dataColors) {
|
|
3862
|
+
if (Array.isArray(dataColors) && (dataColors == null ? void 0 : dataColors.length)) {
|
|
3863
|
+
return (0, colorUtils_exports.sanitizeArrayOfColors)(dataColors);
|
|
3864
|
+
}
|
|
3865
|
+
if (dataColors && typeof dataColors === "string") {
|
|
3866
|
+
try {
|
|
3867
|
+
return JSON.parse(dataColors);
|
|
3868
|
+
} catch (e) {
|
|
3869
|
+
return visualization_color_palettes_exports.VIZ_CATEGORICAL;
|
|
3870
|
+
}
|
|
3871
|
+
}
|
|
3872
|
+
return dataColors;
|
|
3873
|
+
}
|
|
3874
|
+
function normalizeDuration(duration) {
|
|
3875
|
+
if ((duration == null ? void 0 : duration.length) > 0 && typeof duration[0] === "string") {
|
|
3876
|
+
return convertToNumbers(duration);
|
|
3877
|
+
}
|
|
3878
|
+
return duration;
|
|
3879
|
+
}
|
|
3498
3880
|
function extractAdditionalTooltipValues(columns, fields, additionalTooltipFields) {
|
|
3499
3881
|
var _a;
|
|
3500
3882
|
const fieldIndexMap = fields.reduce((acc, field, index) => {
|