@splunk/visualizations 28.2.1 → 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 +269 -133
- 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 +269 -133
- 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 +265 -129
- package/Bubble.js.map +4 -4
- package/CHANGELOG.external.md +58 -1
- 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 +175 -54
- 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 +269 -133
- 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 +174 -51
- 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 +271 -142
- 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 +174 -51
- 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 +177 -54
- 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 +269 -133
- 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 +174 -51
- 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 +321 -139
- 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 +174 -51
- 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 +174 -51
- 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 +187 -54
- 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 +287 -135
- 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 +193 -73
- 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 +189 -75
- 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 +174 -51
- 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 +269 -133
- 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 +261 -101
- 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 +202 -66
- 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 +196 -64
- 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 +3 -6
- package/Table/hooks.d.ts.map +1 -0
- package/Table/index.d.ts.map +1 -0
- package/Table.js +503 -232
- 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 +792 -405
- 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 +174 -51
- 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 }) => ({
|
|
@@ -888,14 +878,18 @@ var FixSizeItem = styled_components_default.div.attrs(
|
|
|
888
878
|
({
|
|
889
879
|
width,
|
|
890
880
|
height
|
|
891
|
-
}) =>
|
|
892
|
-
|
|
893
|
-
|
|
881
|
+
}) => {
|
|
882
|
+
const validHeight = typeof height === "number" ? Math.max(height, 1) : height;
|
|
883
|
+
return {
|
|
884
|
+
style: __spreadValues(__spreadValues({}, width && { width: (0, style_exports.toPx)(width) }), validHeight && { height: (0, style_exports.toPx)(validHeight) })
|
|
885
|
+
};
|
|
886
|
+
}
|
|
894
887
|
)`
|
|
895
888
|
position: relative;
|
|
896
889
|
flex-direction: column;
|
|
897
890
|
flex: 1;
|
|
898
891
|
display: flex;
|
|
892
|
+
overflow: hidden !important;
|
|
899
893
|
background-color: ${(props) => (0, colorUtils_exports.isColor)(props.backgroundColor) && props.backgroundColor || props.theme.defaultBackgroundColor}};
|
|
900
894
|
`;
|
|
901
895
|
var ItemContent = styled_components_default.div`
|
|
@@ -908,6 +902,7 @@ var FixSizeItemContent = styled_components_default.div`
|
|
|
908
902
|
flex: 1;
|
|
909
903
|
position: relative;
|
|
910
904
|
box-sizing: border-box;
|
|
905
|
+
overflow: hidden !important;
|
|
911
906
|
`;
|
|
912
907
|
var withFixedSizeContainer = (Viz) => {
|
|
913
908
|
const FixedSizeContainer = (props) => {
|
|
@@ -925,7 +920,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
925
920
|
FixSizeItem,
|
|
926
921
|
{
|
|
927
922
|
"data-test": "fix-size-item",
|
|
928
|
-
"data-splunk-visualization-version": "28.
|
|
923
|
+
"data-splunk-visualization-version": "28.3.0 - 843e0f60b",
|
|
929
924
|
width,
|
|
930
925
|
height,
|
|
931
926
|
backgroundColor
|
|
@@ -1016,9 +1011,9 @@ var numberUtils_exports = {};
|
|
|
1016
1011
|
__export(numberUtils_exports, {
|
|
1017
1012
|
default: () => numberUtils_default
|
|
1018
1013
|
});
|
|
1019
|
-
var
|
|
1014
|
+
var defaultImport27 = __toESM(require("@splunk/visualizations-shared/numberUtils"));
|
|
1020
1015
|
__reExport(numberUtils_exports, require("@splunk/visualizations-shared/numberUtils"));
|
|
1021
|
-
var numberUtils_default = "default" in
|
|
1016
|
+
var numberUtils_default = "default" in defaultImport27 ? defaultImport27.default : defaultImport27;
|
|
1022
1017
|
|
|
1023
1018
|
// src/common/utils/dataUtils.ts
|
|
1024
1019
|
var largestTriangleThreeBuckets = (data, threshold, preferredDownsampleIndices) => {
|
|
@@ -1398,9 +1393,9 @@ var FeatureFlags_exports = {};
|
|
|
1398
1393
|
__export(FeatureFlags_exports, {
|
|
1399
1394
|
default: () => FeatureFlags_default
|
|
1400
1395
|
});
|
|
1401
|
-
var
|
|
1396
|
+
var defaultImport28 = __toESM(require("@splunk/visualization-context/FeatureFlags"));
|
|
1402
1397
|
__reExport(FeatureFlags_exports, require("@splunk/visualization-context/FeatureFlags"));
|
|
1403
|
-
var FeatureFlags_default = "default" in
|
|
1398
|
+
var FeatureFlags_default = "default" in defaultImport28 ? defaultImport28.default : defaultImport28;
|
|
1404
1399
|
|
|
1405
1400
|
// src/common/utils/featureFlagUtils.ts
|
|
1406
1401
|
var getFeatureFlag = (context, flagName) => {
|
|
@@ -1418,9 +1413,9 @@ var trellisUtils_exports = {};
|
|
|
1418
1413
|
__export(trellisUtils_exports, {
|
|
1419
1414
|
default: () => trellisUtils_default
|
|
1420
1415
|
});
|
|
1421
|
-
var
|
|
1416
|
+
var defaultImport29 = __toESM(require("@splunk/visualizations-shared/trellisUtils"));
|
|
1422
1417
|
__reExport(trellisUtils_exports, require("@splunk/visualizations-shared/trellisUtils"));
|
|
1423
|
-
var trellisUtils_default = "default" in
|
|
1418
|
+
var trellisUtils_default = "default" in defaultImport29 ? defaultImport29.default : defaultImport29;
|
|
1424
1419
|
|
|
1425
1420
|
// src/common/utils/trellisUtils.ts
|
|
1426
1421
|
var turnOffLegendDisplayWhenTrellisIsOn = (isTrellisOn, options) => {
|
|
@@ -1437,9 +1432,9 @@ var visualization_canvas_exports = {};
|
|
|
1437
1432
|
__export(visualization_canvas_exports, {
|
|
1438
1433
|
default: () => visualization_canvas_default
|
|
1439
1434
|
});
|
|
1440
|
-
var
|
|
1435
|
+
var defaultImport30 = __toESM(require("@splunk/visualization-canvas"));
|
|
1441
1436
|
__reExport(visualization_canvas_exports, require("@splunk/visualization-canvas"));
|
|
1442
|
-
var visualization_canvas_default = "default" in
|
|
1437
|
+
var visualization_canvas_default = "default" in defaultImport30 ? defaultImport30.default : defaultImport30;
|
|
1443
1438
|
|
|
1444
1439
|
// src/common/components/VizStyleWrapper.jsx
|
|
1445
1440
|
var VizStyleWrapper = styled_components_default.div.attrs(({ dataTestKey }) => ({
|
|
@@ -1461,9 +1456,9 @@ var Triangle_exports = {};
|
|
|
1461
1456
|
__export(Triangle_exports, {
|
|
1462
1457
|
default: () => Triangle_default
|
|
1463
1458
|
});
|
|
1464
|
-
var
|
|
1459
|
+
var defaultImport31 = __toESM(require("@splunk/react-icons/Triangle"));
|
|
1465
1460
|
__reExport(Triangle_exports, require("@splunk/react-icons/Triangle"));
|
|
1466
|
-
var Triangle_default = "default" in
|
|
1461
|
+
var Triangle_default = "default" in defaultImport31 ? defaultImport31.default : defaultImport31;
|
|
1467
1462
|
|
|
1468
1463
|
// src/common/chartingUtils.ts
|
|
1469
1464
|
var DEFAULT_LINE_WIDTH = 2;
|
|
@@ -1479,9 +1474,14 @@ var getAnnotationsForCanvas = ({
|
|
|
1479
1474
|
var StyledTriangle = styled_components_default(Triangle_default)`
|
|
1480
1475
|
color: ${(props) => props.eventColor || variables_default.severityColorNotice(props)};
|
|
1481
1476
|
`;
|
|
1482
|
-
var triangleEventAnnotationRenderer = ({
|
|
1477
|
+
var triangleEventAnnotationRenderer = ({
|
|
1478
|
+
event,
|
|
1479
|
+
dimensions
|
|
1480
|
+
}) => {
|
|
1483
1481
|
const eventWithColor = event;
|
|
1484
1482
|
return react_default.createElement(StyledTriangle, {
|
|
1483
|
+
width: `${dimensions.width}px`,
|
|
1484
|
+
height: `${dimensions.height}px`,
|
|
1485
1485
|
viewBox: "0 0 24 24",
|
|
1486
1486
|
variant: "filled",
|
|
1487
1487
|
eventColor: eventWithColor.color
|
|
@@ -1571,12 +1571,15 @@ var getFieldName = (field) => {
|
|
|
1571
1571
|
var getFieldNames = (fields) => {
|
|
1572
1572
|
return fields.map((field) => getFieldName(field));
|
|
1573
1573
|
};
|
|
1574
|
-
var getXScaleConfig = (label) => {
|
|
1574
|
+
var getXScaleConfig = (label, xAxisLabelVisibility) => {
|
|
1575
1575
|
const xConfig = { x: {} };
|
|
1576
1576
|
xConfig.x.label = label;
|
|
1577
|
+
if (xAxisLabelVisibility === "hide") {
|
|
1578
|
+
xConfig.x.hideLabels = true;
|
|
1579
|
+
}
|
|
1577
1580
|
return xConfig;
|
|
1578
1581
|
};
|
|
1579
|
-
var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale) => {
|
|
1582
|
+
var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale, yAxisLabelVisibility) => {
|
|
1580
1583
|
const scaleType = yAxisScale != null ? yAxisScale : "linear";
|
|
1581
1584
|
const yConfig = { y: {} };
|
|
1582
1585
|
yConfig.y.label = label;
|
|
@@ -1589,9 +1592,12 @@ var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale) => {
|
|
|
1589
1592
|
} else {
|
|
1590
1593
|
yConfig.y.width = label && label.length > 0 ? 30 : 10;
|
|
1591
1594
|
}
|
|
1595
|
+
if (yAxisLabelVisibility === "hide") {
|
|
1596
|
+
yConfig.y.hideLabels = true;
|
|
1597
|
+
}
|
|
1592
1598
|
return yConfig;
|
|
1593
1599
|
};
|
|
1594
|
-
var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInteger) => {
|
|
1600
|
+
var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInteger, y2AxisLabelVisibility) => {
|
|
1595
1601
|
const y2Config = { y2: {} };
|
|
1596
1602
|
const scaleType = axisScale != null ? axisScale : "linear";
|
|
1597
1603
|
y2Config.y2.label = label;
|
|
@@ -1603,9 +1609,12 @@ var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInt
|
|
|
1603
1609
|
} else if (roundAxisLabelsToInteger) {
|
|
1604
1610
|
y2Config.y2.tickFmt = (v) => roundAxisLabelsToInteger ? Math.round(v).toString() : v.toString();
|
|
1605
1611
|
}
|
|
1612
|
+
if (y2AxisLabelVisibility === "hide") {
|
|
1613
|
+
y2Config.y2.hideLabels = true;
|
|
1614
|
+
}
|
|
1606
1615
|
return y2Config;
|
|
1607
1616
|
};
|
|
1608
|
-
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode) => {
|
|
1617
|
+
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode, markerDisplay) => {
|
|
1609
1618
|
const seriesConfig = {};
|
|
1610
1619
|
let spanGaps;
|
|
1611
1620
|
let replaceNullsWithZero;
|
|
@@ -1637,6 +1646,9 @@ var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled
|
|
|
1637
1646
|
if (overlayFields == null ? void 0 : overlayFields.includes(field)) {
|
|
1638
1647
|
seriesConfig[field].type = "line";
|
|
1639
1648
|
}
|
|
1649
|
+
if (markerDisplay !== void 0) {
|
|
1650
|
+
seriesConfig[field].markerDisplay = markerDisplay;
|
|
1651
|
+
}
|
|
1640
1652
|
if (replaceNullsWithZero !== void 0) {
|
|
1641
1653
|
seriesConfig[field].replaceNullsWithZero = replaceNullsWithZero;
|
|
1642
1654
|
}
|
|
@@ -1653,27 +1665,30 @@ var TimeSeriesChartContainer = styled_components_default.div`
|
|
|
1653
1665
|
position: absolute !important; // This is needed for canvas element export pdf/png to work correctly
|
|
1654
1666
|
}
|
|
1655
1667
|
`;
|
|
1656
|
-
var handleClick = (chartEvent,
|
|
1668
|
+
var handleClick = (chartEvent, onClick) => {
|
|
1657
1669
|
const payload = __spreadProps(__spreadValues({}, (0, lodash_exports.pick)(chartEvent, "value", "seriesKey")), {
|
|
1658
1670
|
name: chartEvent.seriesKey
|
|
1659
1671
|
});
|
|
1660
1672
|
delete payload.seriesKey;
|
|
1661
|
-
|
|
1662
|
-
|
|
1663
|
-
|
|
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({
|
|
1664
1680
|
type: "point.click",
|
|
1665
1681
|
originalEvent: chartEvent,
|
|
1666
1682
|
payload
|
|
1667
1683
|
});
|
|
1668
1684
|
}
|
|
1669
1685
|
};
|
|
1670
|
-
var handleLegendClick = (chartEvent,
|
|
1686
|
+
var handleLegendClick = (chartEvent, onClick) => {
|
|
1671
1687
|
const payload = {
|
|
1672
1688
|
name: chartEvent
|
|
1673
1689
|
};
|
|
1674
|
-
|
|
1675
|
-
|
|
1676
|
-
clickHandler({
|
|
1690
|
+
if (onClick) {
|
|
1691
|
+
onClick({
|
|
1677
1692
|
type: "legend.click",
|
|
1678
1693
|
originalEvent: chartEvent,
|
|
1679
1694
|
payload
|
|
@@ -1681,7 +1696,21 @@ var handleLegendClick = (chartEvent, props) => {
|
|
|
1681
1696
|
}
|
|
1682
1697
|
};
|
|
1683
1698
|
var TimeSeriesChartWrapper = (props) => {
|
|
1684
|
-
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;
|
|
1685
1714
|
const {
|
|
1686
1715
|
backgroundColor,
|
|
1687
1716
|
seriesColors: seriesColorsStr,
|
|
@@ -1692,6 +1721,9 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1692
1721
|
"axisTitleX.visibility": xAxisTitleVisibility,
|
|
1693
1722
|
"axisTitleY.visibility": yAxisTitleVisibility,
|
|
1694
1723
|
"axisTitleY2.visibility": y2AxisTitleVisibility,
|
|
1724
|
+
"axisLabelsX.majorLabelVisibility": xAxisLabelVisibility,
|
|
1725
|
+
"axisLabelsY.majorLabelVisibility": yAxisLabelVisibility,
|
|
1726
|
+
"axisLabelsY2.majorLabelVisibility": y2AxisLabelVisibility,
|
|
1695
1727
|
"axisY.abbreviation": yAxisAbbreviation,
|
|
1696
1728
|
"axisY.scale": yAxisScale,
|
|
1697
1729
|
"axisY2.abbreviation": y2AxisAbbreviation,
|
|
@@ -1728,11 +1760,17 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1728
1760
|
const fieldsForY2Axis = y2Fields.length > 0 ? y2Fields : overlayFields;
|
|
1729
1761
|
let y2AxisTitle = getComputedAxisTitles(y2AxisTitleText, fieldsForY2Axis, y2AxisTitleVisibility);
|
|
1730
1762
|
y2AxisTitle = ellipsisAxisTitle(y2AxisTitle, containerHeight);
|
|
1731
|
-
const xScaleConfig = getXScaleConfig(xAxisTitle);
|
|
1732
|
-
const yScaleConfig = getYScaleConfig(yAxisTitle, yAxisAbbreviation, yAxisScale);
|
|
1763
|
+
const xScaleConfig = getXScaleConfig(xAxisTitle, xAxisLabelVisibility);
|
|
1764
|
+
const yScaleConfig = getYScaleConfig(yAxisTitle, yAxisAbbreviation, yAxisScale, yAxisLabelVisibility);
|
|
1733
1765
|
let y2ScaleConfig = {};
|
|
1734
1766
|
if (y2Enabled) {
|
|
1735
|
-
y2ScaleConfig = getY2ScaleConfig(
|
|
1767
|
+
y2ScaleConfig = getY2ScaleConfig(
|
|
1768
|
+
y2AxisTitle,
|
|
1769
|
+
y2AxisAbbreviation,
|
|
1770
|
+
y2AxisScale,
|
|
1771
|
+
y2IntegerUnits,
|
|
1772
|
+
y2AxisLabelVisibility
|
|
1773
|
+
);
|
|
1736
1774
|
}
|
|
1737
1775
|
const uplotContainerElement = (0, react_exports.useRef)(null);
|
|
1738
1776
|
const seriesDataFormatted = [
|
|
@@ -1741,24 +1779,87 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1741
1779
|
];
|
|
1742
1780
|
chartData.fields = filteredChartData.fields;
|
|
1743
1781
|
chartData.columns = seriesDataFormatted;
|
|
1744
|
-
const seriesOverrides =
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
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]
|
|
1751
1859
|
);
|
|
1752
|
-
const chartingEventAnnotations = getAnnotationsForCanvas({
|
|
1753
|
-
annotationX,
|
|
1754
|
-
annotationColor,
|
|
1755
|
-
annotationLabel
|
|
1756
|
-
});
|
|
1757
|
-
const MemoizedChart = react_exports.memo(visualization_canvas_exports.TimeSeriesChart);
|
|
1758
|
-
const scaleConfig = __spreadValues(__spreadValues(__spreadValues({}, xScaleConfig), yScaleConfig), y2ScaleConfig);
|
|
1759
1860
|
const memoizedChart = (0, react_exports.useMemo)(
|
|
1760
1861
|
() => /* @__PURE__ */ react_exports.createElement(
|
|
1761
|
-
|
|
1862
|
+
visualization_canvas_exports.TimeSeriesChart,
|
|
1762
1863
|
{
|
|
1763
1864
|
data: chartData,
|
|
1764
1865
|
width: containerWidth,
|
|
@@ -1766,34 +1867,39 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1766
1867
|
seriesColors,
|
|
1767
1868
|
seriesColorsByField,
|
|
1768
1869
|
seriesConfig: seriesOverrides,
|
|
1769
|
-
legend
|
|
1870
|
+
legend,
|
|
1770
1871
|
scaleConfig,
|
|
1771
1872
|
timestampFormat: "expanded",
|
|
1772
|
-
onCrosshairClick:
|
|
1773
|
-
|
|
1873
|
+
onCrosshairClick: onClick ? handleChartClick : void 0,
|
|
1874
|
+
onCrosshairChange: onPointMouseOver || onPointMouseOut ? handleChartCrosshairChange : void 0,
|
|
1875
|
+
onSeriesClick: onClick ? handleChartLegendClick : void 0,
|
|
1774
1876
|
userLocale,
|
|
1775
1877
|
events: chartingEventAnnotations,
|
|
1776
1878
|
eventsConfig: { renderer: triangleEventAnnotationRenderer }
|
|
1777
1879
|
}
|
|
1778
1880
|
),
|
|
1779
1881
|
[
|
|
1780
|
-
MemoizedChart,
|
|
1781
1882
|
chartData,
|
|
1782
1883
|
containerWidth,
|
|
1783
1884
|
containerHeight,
|
|
1784
1885
|
seriesColors,
|
|
1785
1886
|
seriesColorsByField,
|
|
1786
1887
|
seriesOverrides,
|
|
1787
|
-
|
|
1788
|
-
props,
|
|
1888
|
+
legend,
|
|
1789
1889
|
scaleConfig,
|
|
1790
1890
|
userLocale,
|
|
1791
|
-
chartingEventAnnotations
|
|
1891
|
+
chartingEventAnnotations,
|
|
1892
|
+
onClick,
|
|
1893
|
+
handleChartClick,
|
|
1894
|
+
onPointMouseOver,
|
|
1895
|
+
onPointMouseOut,
|
|
1896
|
+
handleChartCrosshairChange,
|
|
1897
|
+
handleChartLegendClick
|
|
1792
1898
|
]
|
|
1793
1899
|
);
|
|
1794
1900
|
const memoizedVisualization = (0, react_exports.useMemo)(() => {
|
|
1795
1901
|
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor }, memoizedChart);
|
|
1796
|
-
}, [backgroundColor]);
|
|
1902
|
+
}, [backgroundColor, memoizedChart]);
|
|
1797
1903
|
return /* @__PURE__ */ react_exports.createElement(
|
|
1798
1904
|
TimeSeriesChartContainer,
|
|
1799
1905
|
{
|
|
@@ -1809,6 +1915,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1809
1915
|
var TimeSeriesChartWrapper_default = TimeSeriesChartWrapper;
|
|
1810
1916
|
|
|
1811
1917
|
// src/common/withDashboardViz.tsx
|
|
1918
|
+
var SanitizedTimeSeriesChartWrapper = (0, SanitizeProps_exports.withSanitizedProps)(TimeSeriesChartWrapper_default);
|
|
1812
1919
|
var withDashboardViz = (opts) => {
|
|
1813
1920
|
const {
|
|
1814
1921
|
ReactViz,
|
|
@@ -1817,6 +1924,7 @@ var withDashboardViz = (opts) => {
|
|
|
1817
1924
|
},
|
|
1818
1925
|
computeVizPropsBeforeEval = () => {
|
|
1819
1926
|
},
|
|
1927
|
+
computeDataFrames,
|
|
1820
1928
|
disableEditModeCover,
|
|
1821
1929
|
useIconPlaceholder
|
|
1822
1930
|
} = opts;
|
|
@@ -1945,11 +2053,19 @@ var withDashboardViz = (opts) => {
|
|
|
1945
2053
|
);
|
|
1946
2054
|
setDataFramesInState(dataFrames);
|
|
1947
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
|
+
}
|
|
1948
2064
|
const result = Options_exports.Options.evaluate(
|
|
1949
2065
|
optionsToEvaluate,
|
|
1950
2066
|
downsampledDataSources,
|
|
1951
2067
|
themeFunc,
|
|
1952
|
-
|
|
2068
|
+
mergedFrames,
|
|
1953
2069
|
getFeatureFlag(featureFlagContext, "visualizations_bypassCloneDeepOptionScope")
|
|
1954
2070
|
);
|
|
1955
2071
|
return result;
|
|
@@ -2037,7 +2153,7 @@ var withDashboardViz = (opts) => {
|
|
|
2037
2153
|
});
|
|
2038
2154
|
}
|
|
2039
2155
|
eventCallbackProps[eventCallbackPropName] = (ev) => {
|
|
2040
|
-
if (ev
|
|
2156
|
+
if (ev == null ? void 0 : ev.payload) {
|
|
2041
2157
|
payload = __spreadValues({}, ev.payload);
|
|
2042
2158
|
}
|
|
2043
2159
|
return onEventTrigger({
|
|
@@ -2061,10 +2177,7 @@ var withDashboardViz = (opts) => {
|
|
|
2061
2177
|
if (useAsyncEvaluatedOptions && Object.keys(evaluatedOptionsToUse).length === 0) {
|
|
2062
2178
|
return null;
|
|
2063
2179
|
}
|
|
2064
|
-
|
|
2065
|
-
if (isAcceleratedRenderOn) {
|
|
2066
|
-
SanitizedViz = (0, SanitizeProps_exports.withSanitizedProps)(TimeSeriesChartWrapper_default);
|
|
2067
|
-
}
|
|
2180
|
+
const SanitizedViz = isAcceleratedRenderOn ? SanitizedTimeSeriesChartWrapper : SanitizedReactViz;
|
|
2068
2181
|
return /* @__PURE__ */ react_exports.createElement(
|
|
2069
2182
|
SanitizedViz,
|
|
2070
2183
|
__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues({}, SplunkVisualization_default.defaults), {
|
|
@@ -2092,18 +2205,18 @@ var config_exports = {};
|
|
|
2092
2205
|
__export(config_exports, {
|
|
2093
2206
|
default: () => config_default2
|
|
2094
2207
|
});
|
|
2095
|
-
var
|
|
2208
|
+
var defaultImport32 = __toESM(require("@splunk/splunk-utils/config"));
|
|
2096
2209
|
__reExport(config_exports, require("@splunk/splunk-utils/config"));
|
|
2097
|
-
var config_default2 = "default" in
|
|
2210
|
+
var config_default2 = "default" in defaultImport32 ? defaultImport32.default : defaultImport32;
|
|
2098
2211
|
|
|
2099
2212
|
// esm-externals:@splunk/themes
|
|
2100
2213
|
var themes_exports = {};
|
|
2101
2214
|
__export(themes_exports, {
|
|
2102
2215
|
default: () => themes_default
|
|
2103
2216
|
});
|
|
2104
|
-
var
|
|
2217
|
+
var defaultImport33 = __toESM(require("@splunk/themes"));
|
|
2105
2218
|
__reExport(themes_exports, require("@splunk/themes"));
|
|
2106
|
-
var themes_default = "default" in
|
|
2219
|
+
var themes_default = "default" in defaultImport33 ? defaultImport33.default : defaultImport33;
|
|
2107
2220
|
|
|
2108
2221
|
// src/common/utils/styleUtils.ts
|
|
2109
2222
|
var VIZ_FONT_FAMILY = "'Splunk Platform Sans', 'Splunk Data Sans', Roboto, Droid, 'Helvetica Neue', Helvetica, Arial, sans-serif";
|
|
@@ -2111,15 +2224,15 @@ var VIZ_FONT_FAMILY = "'Splunk Platform Sans', 'Splunk Data Sans', Roboto, Droid
|
|
|
2111
2224
|
// src/Timeline/PureTimeline/src/utils/timelineUtils.ts
|
|
2112
2225
|
function hexToRgba(hex, opacity = 1) {
|
|
2113
2226
|
const hexString = typeof hex === "string" ? hex.replace("#", "") : "#009CEB";
|
|
2114
|
-
const r = parseInt(hexString.substring(0, 2), 16);
|
|
2115
|
-
const g = parseInt(hexString.substring(2, 4), 16);
|
|
2116
|
-
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);
|
|
2117
2230
|
const alpha = Math.max(0, Math.min(opacity, 1));
|
|
2118
2231
|
return `rgba(${r}, ${g}, ${b}, ${alpha})`;
|
|
2119
2232
|
}
|
|
2120
2233
|
function getAlternateColor(hex, percent) {
|
|
2121
2234
|
const cleanedHex = typeof hex === "string" ? hex.replace("#", "") : "#009CEB";
|
|
2122
|
-
const bigint = parseInt(cleanedHex, 16);
|
|
2235
|
+
const bigint = Number.parseInt(cleanedHex, 16);
|
|
2123
2236
|
const r = bigint >> 16 & 255;
|
|
2124
2237
|
const g = bigint >> 8 & 255;
|
|
2125
2238
|
const b = bigint & 255;
|
|
@@ -2155,16 +2268,28 @@ var toTimestamp = (dateStr, timezone = {}) => {
|
|
|
2155
2268
|
}
|
|
2156
2269
|
if (!dateTime.isValid()) {
|
|
2157
2270
|
console.error("Invalid date:", dateStr);
|
|
2158
|
-
return NaN;
|
|
2271
|
+
return Number.NaN;
|
|
2159
2272
|
}
|
|
2160
2273
|
return dateTime.toDate().getTime();
|
|
2161
2274
|
} catch (error) {
|
|
2162
2275
|
console.error("Invalid date or timezone:", dateStr, timezone, error);
|
|
2163
|
-
return NaN;
|
|
2276
|
+
return Number.NaN;
|
|
2164
2277
|
}
|
|
2165
2278
|
};
|
|
2166
|
-
function mapDataToTimeline(
|
|
2279
|
+
function mapDataToTimeline(mapDataToTimelineType) {
|
|
2167
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;
|
|
2168
2293
|
const categoricalColors = /* @__PURE__ */ new Map();
|
|
2169
2294
|
const lanesSet = /* @__PURE__ */ new Set();
|
|
2170
2295
|
const laneSeriesMap = /* @__PURE__ */ new Map();
|
|
@@ -2185,7 +2310,7 @@ function mapDataToTimeline(resultLimit, x, y, duration, category = [], dataColor
|
|
|
2185
2310
|
} else if (categoryValue) {
|
|
2186
2311
|
color = categoricalColors.get(categoryValue);
|
|
2187
2312
|
}
|
|
2188
|
-
const start = toTimestamp(x[i].toString(),
|
|
2313
|
+
const start = toTimestamp(x[i].toString(), timezone);
|
|
2189
2314
|
const durationValue = duration[i] || 0;
|
|
2190
2315
|
const end = start + durationValue;
|
|
2191
2316
|
const additionalTooltipValue = additionalTooltipValues ? additionalTooltipValues[i] : null;
|
|
@@ -2202,7 +2327,7 @@ function mapDataToTimeline(resultLimit, x, y, duration, category = [], dataColor
|
|
|
2202
2327
|
additionalTooltipValue
|
|
2203
2328
|
});
|
|
2204
2329
|
if (i > 0) {
|
|
2205
|
-
const prevStart = toTimestamp(x[i - 1].toString(),
|
|
2330
|
+
const prevStart = toTimestamp(x[i - 1].toString(), timezone);
|
|
2206
2331
|
const timeDiff = start - prevStart;
|
|
2207
2332
|
timeDifferences.push(timeDiff);
|
|
2208
2333
|
}
|
|
@@ -2236,42 +2361,57 @@ var drawRoundedRect = (ctx, x, y, width, height, radius) => {
|
|
|
2236
2361
|
ctx.fill();
|
|
2237
2362
|
ctx.stroke();
|
|
2238
2363
|
};
|
|
2239
|
-
var
|
|
2240
|
-
|
|
2241
|
-
const context = canvas.getContext("2d");
|
|
2242
|
-
if (!context) return text;
|
|
2243
|
-
context.font = font;
|
|
2244
|
-
const ellipsis = "...";
|
|
2245
|
-
const ellipsisWidth = context.measureText(ellipsis).width;
|
|
2246
|
-
const fullTextWidth = context.measureText(text).width;
|
|
2247
|
-
if (fullTextWidth <= maxWidth) {
|
|
2248
|
-
return text;
|
|
2249
|
-
}
|
|
2250
|
-
if (truncationType === "ellipsisEnd") {
|
|
2364
|
+
var truncators = {
|
|
2365
|
+
ellipsisEnd: ({ context, ellipsis, maxWidth, text }) => {
|
|
2251
2366
|
for (let i = text.length - 1; i > 0; i -= 1) {
|
|
2252
2367
|
const truncatedText = text.slice(0, i) + ellipsis;
|
|
2253
2368
|
if (context.measureText(truncatedText).width <= maxWidth) {
|
|
2254
2369
|
return truncatedText;
|
|
2255
2370
|
}
|
|
2256
2371
|
}
|
|
2257
|
-
|
|
2372
|
+
return null;
|
|
2373
|
+
},
|
|
2374
|
+
ellipsisStart: ({ context, ellipsis, maxWidth, text }) => {
|
|
2258
2375
|
for (let i = 0; i < text.length; i += 1) {
|
|
2259
2376
|
const truncatedText = ellipsis + text.slice(i);
|
|
2260
2377
|
if (context.measureText(truncatedText).width <= maxWidth) {
|
|
2261
2378
|
return truncatedText;
|
|
2262
2379
|
}
|
|
2263
2380
|
}
|
|
2264
|
-
|
|
2265
|
-
|
|
2266
|
-
|
|
2267
|
-
|
|
2268
|
-
|
|
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);
|
|
2269
2388
|
if (context.measureText(left).width + ellipsisWidth + context.measureText(right).width <= maxWidth) {
|
|
2270
|
-
return
|
|
2389
|
+
return `${left}${ellipsis}${right}`;
|
|
2271
2390
|
}
|
|
2272
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;
|
|
2273
2405
|
}
|
|
2274
|
-
|
|
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;
|
|
2275
2415
|
};
|
|
2276
2416
|
var getTickInterval = (averageDiff) => {
|
|
2277
2417
|
if (averageDiff < 6e4) {
|
|
@@ -2336,26 +2476,56 @@ var tooltipLocaleTimeFormat = (displaySeconds) => {
|
|
|
2336
2476
|
year: "numeric"
|
|
2337
2477
|
}, seconds);
|
|
2338
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
|
+
});
|
|
2339
2505
|
|
|
2340
2506
|
// esm-externals:uplot-react
|
|
2341
2507
|
var uplot_react_exports = {};
|
|
2342
2508
|
__export(uplot_react_exports, {
|
|
2343
2509
|
default: () => uplot_react_default
|
|
2344
2510
|
});
|
|
2345
|
-
var
|
|
2511
|
+
var defaultImport34 = __toESM(require("uplot-react"));
|
|
2346
2512
|
__reExport(uplot_react_exports, require("uplot-react"));
|
|
2347
|
-
var uplot_react_default = "default" in
|
|
2513
|
+
var uplot_react_default = "default" in defaultImport34 ? defaultImport34.default : defaultImport34;
|
|
2348
2514
|
|
|
2349
2515
|
// esm-externals:@splunk/visualization-context/ZoomContext
|
|
2350
2516
|
var ZoomContext_exports = {};
|
|
2351
2517
|
__export(ZoomContext_exports, {
|
|
2352
2518
|
default: () => ZoomContext_default
|
|
2353
2519
|
});
|
|
2354
|
-
var
|
|
2520
|
+
var defaultImport35 = __toESM(require("@splunk/visualization-context/ZoomContext"));
|
|
2355
2521
|
__reExport(ZoomContext_exports, require("@splunk/visualization-context/ZoomContext"));
|
|
2356
|
-
var ZoomContext_default = "default" in
|
|
2522
|
+
var ZoomContext_default = "default" in defaultImport35 ? defaultImport35.default : defaultImport35;
|
|
2357
2523
|
|
|
2358
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;
|
|
2359
2529
|
var CursorPlugin = (props) => {
|
|
2360
2530
|
const {
|
|
2361
2531
|
laneSeries,
|
|
@@ -2367,25 +2537,9 @@ var CursorPlugin = (props) => {
|
|
|
2367
2537
|
setHighlightedLane,
|
|
2368
2538
|
handleEventClick,
|
|
2369
2539
|
tooltipRef,
|
|
2370
|
-
locale
|
|
2540
|
+
locale,
|
|
2541
|
+
scaleFactor
|
|
2371
2542
|
} = props;
|
|
2372
|
-
const FIXED_LANE_HEIGHT = 32;
|
|
2373
|
-
const MIN_BAR_WIDTH = 20;
|
|
2374
|
-
const CIRCLE_X_OFFSET = 10;
|
|
2375
|
-
const CIRCLE_LANE_SCALE_FACTOR = 0.85;
|
|
2376
|
-
const zoom = (0, ZoomContext_exports.useZoomContext)();
|
|
2377
|
-
const initFullscreenEl = typeof document !== "undefined" ? document.fullscreenElement : null;
|
|
2378
|
-
const initScale = initFullscreenEl && initFullscreenEl.tagName !== "BODY" ? 1 : zoom || 1;
|
|
2379
|
-
const scaleFactorRef = (0, react_exports.useRef)(initScale);
|
|
2380
|
-
(0, react_exports.useEffect)(() => {
|
|
2381
|
-
const fullscreenEl = document.fullscreenElement;
|
|
2382
|
-
if (fullscreenEl && fullscreenEl.tagName !== "BODY") {
|
|
2383
|
-
scaleFactorRef.current = 1;
|
|
2384
|
-
} else {
|
|
2385
|
-
scaleFactorRef.current = zoom;
|
|
2386
|
-
}
|
|
2387
|
-
}, [zoom]);
|
|
2388
|
-
const dpr = window.devicePixelRatio || 1;
|
|
2389
2543
|
let previousTooltipContent = null;
|
|
2390
2544
|
const handleMouseLeave = (u) => {
|
|
2391
2545
|
const xCursorLine = u.root.querySelector(".u-cursor-x");
|
|
@@ -2437,128 +2591,294 @@ var CursorPlugin = (props) => {
|
|
|
2437
2591
|
const xCursorLine = u.root.querySelector(".u-cursor-x");
|
|
2438
2592
|
if (!mouseEvent) {
|
|
2439
2593
|
tooltipRef.current.visible = false;
|
|
2440
|
-
|
|
2441
|
-
xCursorLine.classList.add("u-off");
|
|
2442
|
-
}
|
|
2594
|
+
toggleCursorLine(xCursorLine, true);
|
|
2443
2595
|
return;
|
|
2444
2596
|
}
|
|
2445
2597
|
const rect = u.root.getBoundingClientRect();
|
|
2446
|
-
const
|
|
2447
|
-
const
|
|
2448
|
-
|
|
2449
|
-
|
|
2450
|
-
|
|
2451
|
-
|
|
2452
|
-
|
|
2453
|
-
|
|
2454
|
-
|
|
2455
|
-
|
|
2456
|
-
|
|
2457
|
-
|
|
2458
|
-
|
|
2459
|
-
|
|
2460
|
-
|
|
2461
|
-
|
|
2462
|
-
|
|
2463
|
-
Math.max(1, Math.floor(yPos / FIXED_LANE_HEIGHT) + 1)
|
|
2464
|
-
);
|
|
2465
|
-
const events = laneSeries[cursorSeriesIndex - 1];
|
|
2466
|
-
let showTooltip = false;
|
|
2467
|
-
let tooltipContent = {};
|
|
2468
|
-
let tooltipMeta = {};
|
|
2469
|
-
let tooltipX = 0;
|
|
2470
|
-
let tooltipY = 0;
|
|
2471
|
-
let overflow = false;
|
|
2472
|
-
if (events) {
|
|
2473
|
-
const sortedEvents = [...events].sort((a, b) => {
|
|
2474
|
-
if (a.duration === 0 && b.duration !== 0) return 1;
|
|
2475
|
-
if (a.duration !== 0 && b.duration === 0) return -1;
|
|
2476
|
-
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
|
|
2477
2615
|
});
|
|
2478
|
-
|
|
2479
|
-
for (let i = sortedEvents.length - 1; i >= 0; i -= 1) {
|
|
2480
|
-
const event = sortedEvents[i];
|
|
2481
|
-
const xStartFraction = (event.start - u.scales.x.min) / durationPerTick;
|
|
2482
|
-
const xStartBase = xStartFraction * widthPerTick;
|
|
2483
|
-
const xStart = cursorSeriesIndex - 1 === 0 ? xStartBase + 2 : xStartBase;
|
|
2484
|
-
if (event.duration === 0) {
|
|
2485
|
-
const circleRadius = FIXED_LANE_HEIGHT * CIRCLE_LANE_SCALE_FACTOR / 2;
|
|
2486
|
-
if (xPos >= xStart - circleRadius && xPos <= xStart + circleRadius) {
|
|
2487
|
-
tooltipX = xStart + CIRCLE_X_OFFSET;
|
|
2488
|
-
tooltipY = cursorSeriesIndex * FIXED_LANE_HEIGHT;
|
|
2489
|
-
showTooltip = true;
|
|
2490
|
-
}
|
|
2491
|
-
} else {
|
|
2492
|
-
const durationWidth = event.duration / durationPerTick * widthPerTick;
|
|
2493
|
-
const barWidth = Math.max(durationWidth, MIN_BAR_WIDTH);
|
|
2494
|
-
if (xPos >= xStart && xPos <= xStart + barWidth) {
|
|
2495
|
-
tooltipX = xStart + CIRCLE_X_OFFSET;
|
|
2496
|
-
tooltipY = cursorSeriesIndex * FIXED_LANE_HEIGHT;
|
|
2497
|
-
showTooltip = true;
|
|
2498
|
-
}
|
|
2499
|
-
}
|
|
2500
|
-
if (showTooltip) {
|
|
2501
|
-
const displaySeconds = durationPerTick < 6e4 && event.duration !== 0;
|
|
2502
|
-
const startTime = new Date(event.start).toLocaleTimeString(
|
|
2503
|
-
locale,
|
|
2504
|
-
tooltipLocaleTimeFormat(displaySeconds)
|
|
2505
|
-
);
|
|
2506
|
-
const endTime = new Date(event.end).toLocaleTimeString(
|
|
2507
|
-
locale,
|
|
2508
|
-
tooltipLocaleTimeFormat(displaySeconds)
|
|
2509
|
-
);
|
|
2510
|
-
const lane = lanes[cursorSeriesIndex - 1];
|
|
2511
|
-
tooltipContent = __spreadValues({
|
|
2512
|
-
from: startTime,
|
|
2513
|
-
to: endTime,
|
|
2514
|
-
lane,
|
|
2515
|
-
category: (event == null ? void 0 : event.category) || void 0
|
|
2516
|
-
}, event.additionalTooltipValue);
|
|
2517
|
-
tooltipMeta = __spreadValues({
|
|
2518
|
-
duration: event.duration
|
|
2519
|
-
}, event.additionalTooltipValue);
|
|
2520
|
-
const tooltipWidth = 85;
|
|
2521
|
-
const plotRightEdge = u.bbox.width / dpr;
|
|
2522
|
-
if (tooltipX + tooltipWidth > plotRightEdge) {
|
|
2523
|
-
overflow = true;
|
|
2524
|
-
tooltipY -= FIXED_LANE_HEIGHT / 2;
|
|
2525
|
-
tooltipX -= event.duration === 0 ? FIXED_LANE_HEIGHT : MIN_BAR_WIDTH;
|
|
2526
|
-
}
|
|
2527
|
-
if (!tooltipRef.current.visible || tooltipRef.current.content !== tooltipContent) {
|
|
2528
|
-
u.root.style.cursor = "pointer";
|
|
2529
|
-
tooltipRef.current = {
|
|
2530
|
-
visible: true,
|
|
2531
|
-
x: tooltipX,
|
|
2532
|
-
y: tooltipY,
|
|
2533
|
-
overflow,
|
|
2534
|
-
content: tooltipContent,
|
|
2535
|
-
meta: tooltipMeta
|
|
2536
|
-
};
|
|
2537
|
-
setHighlightedLane(lane);
|
|
2538
|
-
setHighlightedEvent(event);
|
|
2539
|
-
setHighlightedCategory(event.category);
|
|
2540
|
-
}
|
|
2541
|
-
break;
|
|
2542
|
-
}
|
|
2543
|
-
}
|
|
2616
|
+
return;
|
|
2544
2617
|
}
|
|
2545
|
-
|
|
2546
|
-
|
|
2547
|
-
|
|
2548
|
-
|
|
2549
|
-
|
|
2550
|
-
|
|
2551
|
-
|
|
2552
|
-
|
|
2553
|
-
|
|
2554
|
-
|
|
2555
|
-
|
|
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;
|
|
2556
2637
|
}
|
|
2638
|
+
applyTooltipState({
|
|
2639
|
+
chart: u,
|
|
2640
|
+
tooltipState,
|
|
2641
|
+
tooltipRef,
|
|
2642
|
+
setHighlightedLane,
|
|
2643
|
+
setHighlightedEvent,
|
|
2644
|
+
setHighlightedCategory
|
|
2645
|
+
});
|
|
2557
2646
|
}
|
|
2558
2647
|
}
|
|
2559
2648
|
};
|
|
2560
2649
|
};
|
|
2561
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
|
+
}
|
|
2562
2882
|
|
|
2563
2883
|
// src/Timeline/PureTimeline/src/TimelinePlugin.tsx
|
|
2564
2884
|
var TimelinePlugin = ({
|
|
@@ -2568,52 +2888,58 @@ var TimelinePlugin = ({
|
|
|
2568
2888
|
numTicks,
|
|
2569
2889
|
durationPerTick,
|
|
2570
2890
|
highlightedCategory = null,
|
|
2571
|
-
highlightedEvent = null
|
|
2891
|
+
highlightedEvent = null,
|
|
2892
|
+
theme
|
|
2572
2893
|
}) => {
|
|
2573
|
-
const
|
|
2894
|
+
const FIXED_LANE_HEIGHT2 = 32;
|
|
2574
2895
|
const AXIS_COLOR = backgroundColor;
|
|
2575
2896
|
const ALTERNATE_COLOR = getAlternateColor(backgroundColor, 0.1);
|
|
2576
|
-
const
|
|
2897
|
+
const MIN_BAR_WIDTH2 = 20;
|
|
2577
2898
|
const LANE_SCALE_FACTOR = 0.85;
|
|
2578
|
-
const theme = (0, themes_exports.useSplunkTheme)();
|
|
2579
2899
|
let dpr = window.devicePixelRatio || 1;
|
|
2580
2900
|
const redrawChart = (u) => {
|
|
2581
2901
|
u.redraw();
|
|
2582
2902
|
};
|
|
2903
|
+
let resizeHandler;
|
|
2583
2904
|
return {
|
|
2584
2905
|
hooks: {
|
|
2906
|
+
destroy: () => {
|
|
2907
|
+
if (resizeHandler) {
|
|
2908
|
+
window.removeEventListener("resize", resizeHandler);
|
|
2909
|
+
}
|
|
2910
|
+
},
|
|
2585
2911
|
drawClear: (u) => {
|
|
2586
2912
|
const { ctx } = u;
|
|
2587
2913
|
const canvas = u.root.querySelector("canvas");
|
|
2588
2914
|
if (canvas) {
|
|
2589
2915
|
canvas.style.position = "absolute";
|
|
2590
2916
|
}
|
|
2591
|
-
|
|
2917
|
+
resizeHandler = () => {
|
|
2592
2918
|
const newDpr = window.devicePixelRatio || 1;
|
|
2919
|
+
console.warn(newDpr, dpr);
|
|
2593
2920
|
if (newDpr !== dpr) {
|
|
2594
2921
|
dpr = newDpr;
|
|
2595
2922
|
redrawChart(u);
|
|
2596
2923
|
}
|
|
2597
|
-
}
|
|
2924
|
+
};
|
|
2925
|
+
window.addEventListener("resize", resizeHandler);
|
|
2598
2926
|
ctx.save();
|
|
2599
|
-
|
|
2600
|
-
const chartTopY = u.bbox.top / dpr;
|
|
2927
|
+
const chartTopY = 0;
|
|
2601
2928
|
lanes.forEach((lane, sidx) => {
|
|
2602
|
-
const y = chartTopY + sidx *
|
|
2929
|
+
const y = chartTopY + sidx * FIXED_LANE_HEIGHT2;
|
|
2603
2930
|
ctx.fillStyle = (lanes.length - sidx - 1) % 2 === 0 ? AXIS_COLOR : ALTERNATE_COLOR;
|
|
2604
|
-
ctx.fillRect(
|
|
2931
|
+
ctx.fillRect(0, y, u.width, FIXED_LANE_HEIGHT2);
|
|
2605
2932
|
});
|
|
2606
2933
|
ctx.restore();
|
|
2607
2934
|
},
|
|
2608
2935
|
draw: (u) => {
|
|
2609
2936
|
const { ctx } = u;
|
|
2610
|
-
const widthPerTick = u.
|
|
2937
|
+
const widthPerTick = u.width / numTicks;
|
|
2611
2938
|
const scaleMin = u.scales.x.min;
|
|
2612
2939
|
ctx.save();
|
|
2613
|
-
ctx.scale(dpr, dpr);
|
|
2614
2940
|
lanes.forEach((lane, sidx) => {
|
|
2615
2941
|
const events = laneSeries[sidx];
|
|
2616
|
-
const laneCenterY =
|
|
2942
|
+
const laneCenterY = sidx * FIXED_LANE_HEIGHT2 + FIXED_LANE_HEIGHT2 / 2;
|
|
2617
2943
|
events.forEach((event) => {
|
|
2618
2944
|
const isHighlighted = highlightedEvent ? highlightedEvent === event : highlightedCategory === null || event.category === highlightedCategory;
|
|
2619
2945
|
const fillColor = isHighlighted ? hexToRgba(event.color, 0.5) : hexToRgba(theme.contentColorMuted, 0.2);
|
|
@@ -2621,8 +2947,8 @@ var TimelinePlugin = ({
|
|
|
2621
2947
|
const xStartFraction = (event.start - scaleMin) / durationPerTick;
|
|
2622
2948
|
const xStart = sidx === 0 ? xStartFraction * widthPerTick + 2 : xStartFraction * widthPerTick;
|
|
2623
2949
|
const durationWidth = event.duration / durationPerTick * widthPerTick;
|
|
2624
|
-
const barWidth = Math.max(durationWidth,
|
|
2625
|
-
const barHeight =
|
|
2950
|
+
const barWidth = Math.max(durationWidth, MIN_BAR_WIDTH2);
|
|
2951
|
+
const barHeight = FIXED_LANE_HEIGHT2 * LANE_SCALE_FACTOR;
|
|
2626
2952
|
const yBarTop = laneCenterY - barHeight / 2;
|
|
2627
2953
|
if (xStart >= 0) {
|
|
2628
2954
|
if (event.duration === null || event.duration === 0) {
|
|
@@ -2659,9 +2985,10 @@ var XAxisPlugin = ({
|
|
|
2659
2985
|
tickInterval = "1d",
|
|
2660
2986
|
isFontLoaded = false,
|
|
2661
2987
|
locale = "en-US",
|
|
2662
|
-
setIsFontLoaded
|
|
2988
|
+
setIsFontLoaded,
|
|
2989
|
+
theme
|
|
2663
2990
|
} = {}) => {
|
|
2664
|
-
const themes3 =
|
|
2991
|
+
const themes3 = theme;
|
|
2665
2992
|
const redrawFont = () => {
|
|
2666
2993
|
if (!isFontLoaded) {
|
|
2667
2994
|
setIsFontLoaded(true);
|
|
@@ -2681,17 +3008,14 @@ var XAxisPlugin = ({
|
|
|
2681
3008
|
},
|
|
2682
3009
|
drawClear: (u) => {
|
|
2683
3010
|
const { ctx } = u;
|
|
2684
|
-
const dpr = window.devicePixelRatio || 1;
|
|
2685
3011
|
ctx.save();
|
|
2686
|
-
|
|
2687
|
-
const xAxisY = (u.bbox.top + u.bbox.height - X_AXIS_HEIGHT * dpr) / dpr;
|
|
3012
|
+
const xAxisY = u.height - X_AXIS_HEIGHT;
|
|
2688
3013
|
ctx.fillStyle = backgroundColor;
|
|
2689
|
-
ctx.fillRect(0, xAxisY, u.
|
|
3014
|
+
ctx.fillRect(0, xAxisY, u.width, X_AXIS_HEIGHT);
|
|
2690
3015
|
ctx.restore();
|
|
2691
3016
|
},
|
|
2692
3017
|
draw: (u) => {
|
|
2693
3018
|
const { ctx } = u;
|
|
2694
|
-
const dpr = window.devicePixelRatio || 1;
|
|
2695
3019
|
const scaleMin = u.scales.x.min;
|
|
2696
3020
|
const maxLabelWidth = 50;
|
|
2697
3021
|
const ticks = [scaleMin];
|
|
@@ -2734,7 +3058,6 @@ var XAxisPlugin = ({
|
|
|
2734
3058
|
return labelParts;
|
|
2735
3059
|
});
|
|
2736
3060
|
ctx.save();
|
|
2737
|
-
ctx.scale(dpr, dpr);
|
|
2738
3061
|
ctx.font = `10px ${VIZ_FONT_FAMILY}`;
|
|
2739
3062
|
ctx.fillStyle = themes3.contentColorDefault;
|
|
2740
3063
|
ctx.textAlign = "left";
|
|
@@ -2742,15 +3065,15 @@ var XAxisPlugin = ({
|
|
|
2742
3065
|
const tickHeight = 5;
|
|
2743
3066
|
const labelOffset = 5;
|
|
2744
3067
|
const lineHeight = 12;
|
|
2745
|
-
const xAxisY =
|
|
3068
|
+
const xAxisY = u.height - X_AXIS_HEIGHT;
|
|
2746
3069
|
ticks.forEach((val, i) => {
|
|
2747
3070
|
let xTickPosition;
|
|
2748
3071
|
if (i === 0) {
|
|
2749
3072
|
xTickPosition = 0;
|
|
2750
3073
|
} else {
|
|
2751
|
-
xTickPosition = i * (u.
|
|
3074
|
+
xTickPosition = i * (u.width / numTicks);
|
|
2752
3075
|
}
|
|
2753
|
-
if (i === ticks.length - 1 && xTickPosition + maxLabelWidth > u.
|
|
3076
|
+
if (i === ticks.length - 1 && xTickPosition + maxLabelWidth > u.width) {
|
|
2754
3077
|
return;
|
|
2755
3078
|
}
|
|
2756
3079
|
const yLabelPosition = xAxisY + tickHeight + labelOffset;
|
|
@@ -2758,7 +3081,7 @@ var XAxisPlugin = ({
|
|
|
2758
3081
|
ctx.moveTo(xTickPosition, xAxisY);
|
|
2759
3082
|
ctx.lineTo(xTickPosition, xAxisY + tickHeight);
|
|
2760
3083
|
ctx.strokeStyle = "rgba(144, 144, 144, 0.5)";
|
|
2761
|
-
ctx.lineWidth = i === 0 ? 1
|
|
3084
|
+
ctx.lineWidth = i === 0 ? 1 : 0.5;
|
|
2762
3085
|
ctx.stroke();
|
|
2763
3086
|
const label = labels[i];
|
|
2764
3087
|
if (label) {
|
|
@@ -2859,7 +3182,7 @@ TimelineYAxis.propTypes = {
|
|
|
2859
3182
|
var TimelineYAxis_default = TimelineYAxis;
|
|
2860
3183
|
|
|
2861
3184
|
// src/Timeline/PureTimeline/src/TimelineLegend.tsx
|
|
2862
|
-
var LEGEND_WIDTH =
|
|
3185
|
+
var LEGEND_WIDTH = 88;
|
|
2863
3186
|
var LEGEND_TEXT_WIDTH = 55;
|
|
2864
3187
|
var LegendContainer = styled_components_default.div`
|
|
2865
3188
|
display: flex;
|
|
@@ -2886,7 +3209,7 @@ var LegendContainer = styled_components_default.div`
|
|
|
2886
3209
|
`;
|
|
2887
3210
|
var LegendItem = styled_components_default.div`
|
|
2888
3211
|
display: flex;
|
|
2889
|
-
align-items: center;
|
|
3212
|
+
align-items: ${({ legendTruncation }) => legendTruncation === "ellipsisOff" ? "flex-start" : "center"};
|
|
2890
3213
|
margin: ${({ legendDisplay }) => legendDisplay === "bottom" ? "10px 20px 10px 0px" : "4px"};
|
|
2891
3214
|
cursor: pointer;
|
|
2892
3215
|
opacity: ${({ isHighlighted }) => isHighlighted ? 1 : 0.5};
|
|
@@ -2896,13 +3219,18 @@ var LegendColor = styled_components_default.div`
|
|
|
2896
3219
|
width: 6px;
|
|
2897
3220
|
height: 11px;
|
|
2898
3221
|
margin-right: ${({ legendDisplay }) => legendDisplay === "bottom" ? "8px" : "4px"};
|
|
3222
|
+
margin-top: ${({ legendTruncation }) => legendTruncation === "ellipsisOff" ? "2px" : "0"};
|
|
2899
3223
|
background-color: ${({ color }) => hexToRgba(color, 0.5)};
|
|
2900
3224
|
border: 1px solid ${({ color }) => color};
|
|
2901
3225
|
transform: ${({ legendDisplay }) => legendDisplay === "bottom" ? "rotate(90deg)" : "none"};
|
|
2902
3226
|
opacity: ${({ isHighlighted }) => isHighlighted ? 1 : 0.5};
|
|
2903
3227
|
`;
|
|
2904
3228
|
var LegendText = styled_components_default.div`
|
|
2905
|
-
${({ legendTruncation }) => legendTruncation
|
|
3229
|
+
${({ legendTruncation }) => legendTruncation === "ellipsisOff" ? `
|
|
3230
|
+
white-space: normal;
|
|
3231
|
+
word-wrap: break-word;
|
|
3232
|
+
overflow-wrap: break-word;
|
|
3233
|
+
` : `
|
|
2906
3234
|
white-space: nowrap;
|
|
2907
3235
|
overflow: hidden;
|
|
2908
3236
|
text-overflow: ellipsis;
|
|
@@ -2925,10 +3253,8 @@ var TimelineLegend = ({
|
|
|
2925
3253
|
const handleMouseEnter = (category) => {
|
|
2926
3254
|
setHighlightedCategory == null ? void 0 : setHighlightedCategory(category);
|
|
2927
3255
|
};
|
|
2928
|
-
const handleMouseLeave = (
|
|
2929
|
-
|
|
2930
|
-
setHighlightedCategory == null ? void 0 : setHighlightedCategory(null);
|
|
2931
|
-
}
|
|
3256
|
+
const handleMouseLeave = () => {
|
|
3257
|
+
setHighlightedCategory == null ? void 0 : setHighlightedCategory(null);
|
|
2932
3258
|
};
|
|
2933
3259
|
return /* @__PURE__ */ react_exports.createElement(
|
|
2934
3260
|
LegendContainer,
|
|
@@ -2953,8 +3279,9 @@ var TimelineLegend = ({
|
|
|
2953
3279
|
color,
|
|
2954
3280
|
isHighlighted,
|
|
2955
3281
|
legendDisplay,
|
|
3282
|
+
legendTruncation,
|
|
2956
3283
|
onMouseEnter: () => handleMouseEnter(category),
|
|
2957
|
-
|
|
3284
|
+
onMouseLeave: handleMouseLeave,
|
|
2958
3285
|
onClick: () => {
|
|
2959
3286
|
handleLegendClick2(category);
|
|
2960
3287
|
}
|
|
@@ -2965,7 +3292,8 @@ var TimelineLegend = ({
|
|
|
2965
3292
|
"data-test": "legend-color",
|
|
2966
3293
|
color,
|
|
2967
3294
|
isHighlighted,
|
|
2968
|
-
legendDisplay
|
|
3295
|
+
legendDisplay,
|
|
3296
|
+
legendTruncation
|
|
2969
3297
|
}
|
|
2970
3298
|
),
|
|
2971
3299
|
/* @__PURE__ */ react_exports.createElement(LegendText, { legendTruncation, "data-test": "legend-text" }, truncatedText)
|
|
@@ -2989,9 +3317,9 @@ var useSplunkTheme_exports = {};
|
|
|
2989
3317
|
__export(useSplunkTheme_exports, {
|
|
2990
3318
|
default: () => useSplunkTheme_default
|
|
2991
3319
|
});
|
|
2992
|
-
var
|
|
3320
|
+
var defaultImport36 = __toESM(require("@splunk/themes/useSplunkTheme"));
|
|
2993
3321
|
__reExport(useSplunkTheme_exports, require("@splunk/themes/useSplunkTheme"));
|
|
2994
|
-
var useSplunkTheme_default = "default" in
|
|
3322
|
+
var useSplunkTheme_default = "default" in defaultImport36 ? defaultImport36.default : defaultImport36;
|
|
2995
3323
|
|
|
2996
3324
|
// src/Timeline/PureTimeline/src/TimelineTooltip.tsx
|
|
2997
3325
|
var TooltipContainer = styled_components_default.div`
|
|
@@ -3081,9 +3409,9 @@ var uPlot_min_exports = {};
|
|
|
3081
3409
|
__export(uPlot_min_exports, {
|
|
3082
3410
|
default: () => uPlot_min_default
|
|
3083
3411
|
});
|
|
3084
|
-
var
|
|
3412
|
+
var defaultImport37 = __toESM(require("uplot/dist/uPlot.min.css"));
|
|
3085
3413
|
__reExport(uPlot_min_exports, require("uplot/dist/uPlot.min.css"));
|
|
3086
|
-
var uPlot_min_default = "default" in
|
|
3414
|
+
var uPlot_min_default = "default" in defaultImport37 ? defaultImport37.default : defaultImport37;
|
|
3087
3415
|
|
|
3088
3416
|
// src/Timeline/PureTimeline/src/TimelineUplot.tsx
|
|
3089
3417
|
var TimelineUplotContainer = styled_components_default.div`
|
|
@@ -3124,6 +3452,11 @@ var TimelineUplot = ({
|
|
|
3124
3452
|
const [highlightedEvent, setHighlightedEvent] = react_exports.useState(null);
|
|
3125
3453
|
const [highlightedLane, setHighlightedLane] = react_exports.useState(null);
|
|
3126
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)();
|
|
3127
3460
|
const tooltipRef = react_exports.useRef({
|
|
3128
3461
|
visible: false,
|
|
3129
3462
|
x: 0,
|
|
@@ -3148,63 +3481,98 @@ var TimelineUplot = ({
|
|
|
3148
3481
|
const unitsPerTick = Math.ceil(totalNumberOfTicks / maxNumOfTicks);
|
|
3149
3482
|
const numTicks = totalNumberOfTicks / unitsPerTick;
|
|
3150
3483
|
const durationPerTick = granularityMultiplier * unitsPerTick;
|
|
3151
|
-
const opts =
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
|
|
3159
|
-
|
|
3160
|
-
|
|
3161
|
-
|
|
3162
|
-
|
|
3163
|
-
|
|
3164
|
-
|
|
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
|
+
}
|
|
3165
3505
|
},
|
|
3166
|
-
|
|
3167
|
-
|
|
3168
|
-
|
|
3169
|
-
|
|
3170
|
-
|
|
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
|
-
|
|
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
|
|
3205
3573
|
]
|
|
3206
|
-
|
|
3207
|
-
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(
|
|
3208
3576
|
TimelineYAxis_default,
|
|
3209
3577
|
{
|
|
3210
3578
|
height: chartHeight,
|
|
@@ -3215,7 +3583,14 @@ var TimelineUplot = ({
|
|
|
3215
3583
|
highlightedLane,
|
|
3216
3584
|
handleLaneClick
|
|
3217
3585
|
}
|
|
3218
|
-
), /* @__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(
|
|
3219
3594
|
TimelineLegend_default,
|
|
3220
3595
|
{
|
|
3221
3596
|
height: chartHeight,
|
|
@@ -3269,7 +3644,7 @@ var PureTimeline = (_a) => {
|
|
|
3269
3644
|
const showLegend = (!dataColors || (dataColors == null ? void 0 : dataColors.length) === 0) && (category == null ? void 0 : category.length) > 0 && (legendDisplay === "right" || legendDisplay === "bottom");
|
|
3270
3645
|
const timezone = react_exports.useContext(TimezoneContext_default);
|
|
3271
3646
|
const theme = (0, themes_exports.useSplunkTheme)();
|
|
3272
|
-
const { laneSeries, lanes, categoricalColors, tickInterval } = mapDataToTimeline(
|
|
3647
|
+
const { laneSeries, lanes, categoricalColors, tickInterval } = mapDataToTimeline({
|
|
3273
3648
|
resultLimit,
|
|
3274
3649
|
x,
|
|
3275
3650
|
y,
|
|
@@ -3279,7 +3654,7 @@ var PureTimeline = (_a) => {
|
|
|
3279
3654
|
seriesColors,
|
|
3280
3655
|
additionalTooltipValues,
|
|
3281
3656
|
timezone
|
|
3282
|
-
);
|
|
3657
|
+
});
|
|
3283
3658
|
const handleLaneClick = (laneValue) => {
|
|
3284
3659
|
onLaneClick({
|
|
3285
3660
|
type: "lane.click",
|
|
@@ -3442,40 +3817,17 @@ var computeVizProps = (_a) => {
|
|
|
3442
3817
|
"onLegendClick",
|
|
3443
3818
|
"onLaneClick"
|
|
3444
3819
|
]);
|
|
3445
|
-
let convertedDuration;
|
|
3446
|
-
let timelineDataColors = dataColors;
|
|
3447
|
-
let timelineSeriesColors = seriesColors;
|
|
3448
3820
|
const pickedOptions = (0, lodash_exports.chain)(otherOptions).pick(validOptions).value();
|
|
3449
3821
|
const columns = ((_c = (_b = dataSources == null ? void 0 : dataSources.primary) == null ? void 0 : _b.data) == null ? void 0 : _c.columns) || [];
|
|
3450
3822
|
const fields = ((_e = (_d = dataSources == null ? void 0 : dataSources.primary) == null ? void 0 : _d.data) == null ? void 0 : _e.fields) || [];
|
|
3451
3823
|
const additionalTooltipValues = (pickedOptions == null ? void 0 : pickedOptions.additionalTooltipFields) ? extractAdditionalTooltipValues(columns, fields, pickedOptions == null ? void 0 : pickedOptions.additionalTooltipFields) : [];
|
|
3452
|
-
|
|
3453
|
-
|
|
3454
|
-
|
|
3455
|
-
} catch (e) {
|
|
3456
|
-
timelineSeriesColors = visualization_color_palettes_exports.VIZ_CATEGORICAL;
|
|
3457
|
-
}
|
|
3458
|
-
} else if (!seriesColors) {
|
|
3459
|
-
timelineSeriesColors = visualization_color_palettes_exports.VIZ_CATEGORICAL;
|
|
3460
|
-
} else if (seriesColors && Array.isArray(seriesColors)) {
|
|
3461
|
-
timelineSeriesColors = (0, colorUtils_exports.sanitizeArrayOfColors)(seriesColors);
|
|
3462
|
-
}
|
|
3463
|
-
if (Array.isArray(dataColors) && (dataColors == null ? void 0 : dataColors.length)) {
|
|
3464
|
-
timelineDataColors = (0, colorUtils_exports.sanitizeArrayOfColors)(dataColors);
|
|
3465
|
-
} else if (dataColors && typeof dataColors === "string") {
|
|
3466
|
-
try {
|
|
3467
|
-
timelineDataColors = JSON.parse(dataColors);
|
|
3468
|
-
} catch (e) {
|
|
3469
|
-
timelineDataColors = visualization_color_palettes_exports.VIZ_CATEGORICAL;
|
|
3470
|
-
}
|
|
3471
|
-
}
|
|
3472
|
-
if ((duration == null ? void 0 : duration.length) > 0 && typeof duration[0] === "string") {
|
|
3473
|
-
convertedDuration = convertToNumbers(duration);
|
|
3474
|
-
}
|
|
3824
|
+
const timelineSeriesColors = normalizeSeriesColors(seriesColors);
|
|
3825
|
+
const timelineDataColors = normalizeDataColors(dataColors);
|
|
3826
|
+
const durationValues = normalizeDuration(duration);
|
|
3475
3827
|
return __spreadValues({
|
|
3476
3828
|
x,
|
|
3477
3829
|
y,
|
|
3478
|
-
duration:
|
|
3830
|
+
duration: durationValues,
|
|
3479
3831
|
category,
|
|
3480
3832
|
additionalTooltipValues,
|
|
3481
3833
|
onEventClick,
|
|
@@ -3490,6 +3842,41 @@ function convertToNumbers(arr) {
|
|
|
3490
3842
|
return (0, types_exports.isNumber)(item) ? parseFloat(item) : 0;
|
|
3491
3843
|
});
|
|
3492
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
|
+
}
|
|
3493
3880
|
function extractAdditionalTooltipValues(columns, fields, additionalTooltipFields) {
|
|
3494
3881
|
var _a;
|
|
3495
3882
|
const fieldIndexMap = fields.reduce((acc, field, index) => {
|