@splunk/visualizations 28.5.3 → 28.7.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 -1
- package/Area/areaUtils.d.ts +1 -1
- package/Area/areaUtils.d.ts.map +1 -1
- package/Area/config.d.ts.map +1 -1
- package/Area.config.js +93 -25
- package/Area.config.js.map +3 -3
- package/Area.js +708 -319
- package/Area.js.map +4 -4
- package/Bar/Bar.d.ts.map +1 -1
- package/Bar.config.js +81 -24
- package/Bar.config.js.map +3 -3
- package/Bar.js +528 -297
- package/Bar.js.map +4 -4
- package/Bubble.config.js +80 -23
- package/Bubble.config.js.map +2 -2
- package/Bubble.js +375 -208
- package/Bubble.js.map +4 -4
- package/CHANGELOG.external.md +75 -60
- package/ChoroplethSvg/PureChoroplethSvg/PureChoroplethSvg.d.ts +1 -0
- package/ChoroplethSvg/PureChoroplethSvg/PureChoroplethSvg.d.ts.map +1 -1
- package/ChoroplethSvg/PureChoroplethSvg/SvgChoroplethDynamic.d.ts +12 -25
- package/ChoroplethSvg/PureChoroplethSvg/SvgChoroplethDynamic.d.ts.map +1 -1
- package/ChoroplethSvg/PureChoroplethSvg/SvgMutator.d.ts +11 -4
- package/ChoroplethSvg/PureChoroplethSvg/SvgMutator.d.ts.map +1 -1
- package/ChoroplethSvg.js +1133 -253
- package/ChoroplethSvg.js.map +4 -4
- package/Column/Column.d.ts.map +1 -1
- package/Column.config.js +81 -24
- package/Column.config.js.map +3 -3
- package/Column.js +531 -300
- package/Column.js.map +4 -4
- package/Ellipse.config.js +1 -1
- package/Ellipse.config.js.map +2 -2
- package/Ellipse.js +277 -161
- package/Ellipse.js.map +4 -4
- package/Events/PureEvents/FieldSummaryTooltip.d.ts +8 -31
- package/Events/PureEvents/FieldSummaryTooltip.d.ts.map +1 -1
- package/Events/PureEvents/PureEvents.d.ts.map +1 -1
- package/Events/PureEvents/TimeControlsPopover.d.ts +6 -25
- package/Events/PureEvents/TimeControlsPopover.d.ts.map +1 -1
- package/Events/config.d.ts.map +1 -1
- package/Events.config.js +13 -3
- package/Events.config.js.map +2 -2
- package/Events.js +355 -293
- package/Events.js.map +4 -4
- package/FillerGauge/FillerGauge.d.ts.map +1 -1
- package/FillerGauge/config.d.ts.map +1 -1
- package/FillerGauge.config.js +76 -24
- package/FillerGauge.config.js.map +2 -2
- package/FillerGauge.js +512 -271
- package/FillerGauge.js.map +4 -4
- package/Image/config.d.ts.map +1 -1
- package/Image.config.js +7 -0
- package/Image.config.js.map +2 -2
- package/Image.js +282 -149
- package/Image.js.map +4 -4
- package/LICENSE +13 -0
- package/Line/Line.d.ts.map +1 -1
- package/Line/config.d.ts.map +1 -1
- package/Line/lineUtils.d.ts.map +1 -1
- package/Line/mockdata/LineData.d.ts +21 -0
- package/Line/mockdata/LineData.d.ts.map +1 -1
- package/Line.config.js +86 -25
- package/Line.config.js.map +3 -3
- package/Line.js +638 -382
- package/Line.js.map +4 -4
- package/LinkGraph/PureLinkGraph/PureLinkGraph.d.ts +47 -73
- package/LinkGraph/PureLinkGraph/PureLinkGraph.d.ts.map +1 -1
- package/LinkGraph/PureLinkGraph/PureLinkGraphUtils.d.ts +11 -2
- package/LinkGraph/PureLinkGraph/PureLinkGraphUtils.d.ts.map +1 -1
- package/LinkGraph/PureLinkGraph/components/Graph.d.ts +5 -5
- package/LinkGraph/PureLinkGraph/components/Node.d.ts +2 -2
- package/LinkGraph/PureLinkGraph/components/Nodes.d.ts +2 -2
- package/LinkGraph.js +886 -759
- package/LinkGraph.js.map +4 -4
- package/Map/Map.d.ts +1 -0
- package/Map/Map.d.ts.map +1 -1
- package/Map/PureMap/BubbleLayer.d.ts +22 -4
- package/Map/PureMap/BubbleLayer.d.ts.map +1 -1
- package/Map/PureMap/ChoroplethLayer.d.ts +9 -1
- package/Map/PureMap/ChoroplethLayer.d.ts.map +1 -1
- package/Map/PureMap/ClusterLayer.d.ts +3 -1
- package/Map/PureMap/ClusterLayer.d.ts.map +1 -1
- package/Map/PureMap/LocalChoroplethLayer.d.ts +1 -0
- package/Map/PureMap/LocalChoroplethLayer.d.ts.map +1 -1
- package/Map/PureMap/MapContext.d.ts +13 -0
- package/Map/PureMap/MapContext.d.ts.map +1 -0
- package/Map/PureMap/MarkerLayer.d.ts +19 -2
- package/Map/PureMap/MarkerLayer.d.ts.map +1 -1
- package/Map/PureMap/MarkerWrapper.d.ts +3 -2
- package/Map/PureMap/MarkerWrapper.d.ts.map +1 -1
- package/Map/PureMap/PureMap.d.ts +1 -0
- package/Map/PureMap/PureMap.d.ts.map +1 -1
- package/Map/PureMap/PureMapContainer.d.ts.map +1 -1
- package/Map/PureMap/Tooltip.d.ts +6 -1
- package/Map/PureMap/Tooltip.d.ts.map +1 -1
- package/Map/PureMap/keyboardConstants.d.ts +11 -0
- package/Map/PureMap/keyboardConstants.d.ts.map +1 -0
- package/Map/PureMap/useRovingTabindex.d.ts +18 -0
- package/Map/PureMap/useRovingTabindex.d.ts.map +1 -0
- package/Map/config.d.ts.map +1 -1
- package/Map.config.js +4 -1
- package/Map.config.js.map +2 -2
- package/Map.js +1594 -628
- package/Map.js.map +4 -4
- package/Markdown/Markdown.d.ts.map +1 -1
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +304 -161
- package/Markdown.js.map +4 -4
- package/MarkerGauge/MarkerGauge.d.ts +1 -47
- package/MarkerGauge/MarkerGauge.d.ts.map +1 -1
- package/MarkerGauge/PureMarkerGauge/MarkerGauge.d.ts +22 -68
- package/MarkerGauge/PureMarkerGauge/MarkerGauge.d.ts.map +1 -1
- package/MarkerGauge/config.d.ts.map +1 -1
- package/MarkerGauge.config.js +75 -23
- package/MarkerGauge.config.js.map +2 -2
- package/MarkerGauge.js +560 -375
- package/MarkerGauge.js.map +4 -4
- package/NetworkGraph/NetworkGraph.d.ts +2 -5
- package/NetworkGraph/NetworkGraph.d.ts.map +1 -1
- package/NetworkGraph/PureNetworkGraph/PureNetworkGraph.d.ts.map +1 -1
- package/NetworkGraph/PureNetworkGraph/components/NetworkGraphSvg.d.ts +1 -0
- package/NetworkGraph/PureNetworkGraph/components/NetworkGraphSvg.d.ts.map +1 -1
- package/NetworkGraph/PureNetworkGraph/components/Node.d.ts +1 -0
- package/NetworkGraph/PureNetworkGraph/components/Node.d.ts.map +1 -1
- package/NetworkGraph/PureNetworkGraph/components/Tooltip.d.ts +1 -1
- package/NetworkGraph/PureNetworkGraph/components/Tooltip.d.ts.map +1 -1
- package/NetworkGraph/PureNetworkGraph/components/ZoomControls.d.ts +1 -0
- package/NetworkGraph/PureNetworkGraph/components/ZoomControls.d.ts.map +1 -1
- package/NetworkGraph/PureNetworkGraph/utils/networkGraphUtils.d.ts +23 -0
- package/NetworkGraph/PureNetworkGraph/utils/networkGraphUtils.d.ts.map +1 -1
- package/NetworkGraph.config.js +2 -0
- package/NetworkGraph.config.js.map +2 -2
- package/NetworkGraph.js +895 -455
- package/NetworkGraph.js.map +4 -4
- package/ParallelCoordinates.config.js.map +1 -1
- package/ParallelCoordinates.js +288 -172
- package/ParallelCoordinates.js.map +4 -4
- package/Pie/Pie.d.ts.map +1 -1
- package/Pie/pieUtils.d.ts +2 -2
- package/Pie.config.js +74 -22
- package/Pie.config.js.map +2 -2
- package/Pie.js +522 -296
- package/Pie.js.map +4 -4
- package/ProcessTree/ProcessTree.d.ts +23 -0
- package/ProcessTree/ProcessTree.d.ts.map +1 -0
- package/ProcessTree/PureProcessTree/PureProcessTree.d.ts +33 -0
- package/ProcessTree/PureProcessTree/PureProcessTree.d.ts.map +1 -0
- package/ProcessTree/PureProcessTree/components/DirectionalBytes.d.ts +8 -0
- package/ProcessTree/PureProcessTree/components/DirectionalBytes.d.ts.map +1 -0
- package/ProcessTree/PureProcessTree/components/ProcessTreeLeftPanel.d.ts +46 -0
- package/ProcessTree/PureProcessTree/components/ProcessTreeLeftPanel.d.ts.map +1 -0
- package/ProcessTree/PureProcessTree/components/ProcessTreeRightPanel.d.ts +20 -0
- package/ProcessTree/PureProcessTree/components/ProcessTreeRightPanel.d.ts.map +1 -0
- package/ProcessTree/PureProcessTree/hooks/useProcessTreeExpansionState.d.ts +20 -0
- package/ProcessTree/PureProcessTree/hooks/useProcessTreeExpansionState.d.ts.map +1 -0
- package/ProcessTree/PureProcessTree/hooks/useProcessTreeGraphData.d.ts +46 -0
- package/ProcessTree/PureProcessTree/hooks/useProcessTreeGraphData.d.ts.map +1 -0
- package/ProcessTree/PureProcessTree/hooks/useProcessTreeLinkOverlay.d.ts +23 -0
- package/ProcessTree/PureProcessTree/hooks/useProcessTreeLinkOverlay.d.ts.map +1 -0
- package/ProcessTree/PureProcessTree/mockdata/data.d.ts +235 -0
- package/ProcessTree/PureProcessTree/mockdata/data.d.ts.map +1 -0
- package/ProcessTree/PureProcessTree/utils/iconLoader.d.ts +9 -0
- package/ProcessTree/PureProcessTree/utils/iconLoader.d.ts.map +1 -0
- package/ProcessTree/PureProcessTree/utils/processTreeLinkOverlayUtils.d.ts +36 -0
- package/ProcessTree/PureProcessTree/utils/processTreeLinkOverlayUtils.d.ts.map +1 -0
- package/ProcessTree/PureProcessTree/utils/processTreeUtils.d.ts +82 -0
- package/ProcessTree/PureProcessTree/utils/processTreeUtils.d.ts.map +1 -0
- package/ProcessTree/config.d.ts +4 -0
- package/ProcessTree/config.d.ts.map +1 -0
- package/ProcessTree/index.d.ts +3 -0
- package/ProcessTree/index.d.ts.map +1 -0
- package/ProcessTree.config.js +192 -0
- package/ProcessTree.config.js.map +7 -0
- package/ProcessTree.js +5128 -0
- package/ProcessTree.js.map +7 -0
- package/Punchcard/Punchcard.d.ts +1 -5
- package/Punchcard/Punchcard.d.ts.map +1 -1
- package/Punchcard/PurePunchcard/Punchcard.d.ts +28 -32
- package/Punchcard/PurePunchcard/Punchcard.d.ts.map +1 -1
- package/Punchcard/PurePunchcard/src/PunchcardAxis.d.ts +7 -12
- package/Punchcard/PurePunchcard/src/PunchcardAxis.d.ts.map +1 -1
- package/Punchcard/PurePunchcard/src/PunchcardBubble.d.ts +14 -19
- package/Punchcard/PurePunchcard/src/PunchcardBubble.d.ts.map +1 -1
- package/Punchcard/PurePunchcard/src/PunchcardChartArea.d.ts +22 -27
- package/Punchcard/PurePunchcard/src/PunchcardChartArea.d.ts.map +1 -1
- package/Punchcard/PurePunchcard/src/PunchcardGridLines.d.ts +3 -8
- package/Punchcard/PurePunchcard/src/PunchcardGridLines.d.ts.map +1 -1
- package/Punchcard/PurePunchcard/src/PunchcardLegend.d.ts +9 -14
- package/Punchcard/PurePunchcard/src/PunchcardLegend.d.ts.map +1 -1
- package/Punchcard/PurePunchcard/src/PunchcardRow.d.ts.map +1 -1
- package/Punchcard.config.js.map +1 -1
- package/Punchcard.js +444 -631
- package/Punchcard.js.map +4 -4
- package/README.md +2 -0
- package/Rectangle.config.js +1 -1
- package/Rectangle.config.js.map +2 -2
- package/Rectangle.js +289 -173
- package/Rectangle.js.map +4 -4
- package/RichText/PureRichText/Editor/EditorPanel.d.ts +20 -0
- package/RichText/PureRichText/Editor/EditorPanel.d.ts.map +1 -0
- package/RichText/PureRichText/Editor/EditorPanelStyles.d.ts +17 -0
- package/RichText/PureRichText/Editor/EditorPanelStyles.d.ts.map +1 -0
- package/RichText/PureRichText/Editor/FontSelector.d.ts +15 -0
- package/RichText/PureRichText/Editor/FontSelector.d.ts.map +1 -0
- package/RichText/PureRichText/Editor/FormatButton.d.ts +23 -0
- package/RichText/PureRichText/Editor/FormatButton.d.ts.map +1 -0
- package/RichText/PureRichText/Editor/editorPanelUtils.d.ts +19 -0
- package/RichText/PureRichText/Editor/editorPanelUtils.d.ts.map +1 -0
- package/RichText/PureRichText/Editor/hooks/useLineSpacing.d.ts +11 -0
- package/RichText/PureRichText/Editor/hooks/useLineSpacing.d.ts.map +1 -0
- package/RichText/PureRichText/Editor/hooks/useLinkHandlers.d.ts +26 -0
- package/RichText/PureRichText/Editor/hooks/useLinkHandlers.d.ts.map +1 -0
- package/RichText/PureRichText/Editor/index.d.ts +9 -0
- package/RichText/PureRichText/Editor/index.d.ts.map +1 -0
- package/RichText/PureRichText/InnerEditor.d.ts +41 -0
- package/RichText/PureRichText/InnerEditor.d.ts.map +1 -0
- package/RichText/PureRichText/PureRichText.d.ts +19 -0
- package/RichText/PureRichText/PureRichText.d.ts.map +1 -0
- package/RichText/PureRichText/PureRichTextContext.d.ts +64 -0
- package/RichText/PureRichText/PureRichTextContext.d.ts.map +1 -0
- package/RichText/PureRichText/RichTextStyles.d.ts +25 -0
- package/RichText/PureRichText/RichTextStyles.d.ts.map +1 -0
- package/RichText/PureRichText/activeInstance.d.ts +23 -0
- package/RichText/PureRichText/activeInstance.d.ts.map +1 -0
- package/RichText/PureRichText/config.d.ts +17 -0
- package/RichText/PureRichText/config.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/index.d.ts +12 -0
- package/RichText/PureRichText/hooks/index.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/useContentSave.d.ts +25 -0
- package/RichText/PureRichText/hooks/useContentSave.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/useContentSync.d.ts +28 -0
- package/RichText/PureRichText/hooks/useContentSync.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/useDashboardKeyboardNav.d.ts +33 -0
- package/RichText/PureRichText/hooks/useDashboardKeyboardNav.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/useEditModeEffect.d.ts +10 -0
- package/RichText/PureRichText/hooks/useEditModeEffect.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/useEditorSetup.d.ts +36 -0
- package/RichText/PureRichText/hooks/useEditorSetup.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/useFakeHighlight.d.ts +33 -0
- package/RichText/PureRichText/hooks/useFakeHighlight.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/useFocusHandlers.d.ts +35 -0
- package/RichText/PureRichText/hooks/useFocusHandlers.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/useKeyboardShortcuts.d.ts +18 -0
- package/RichText/PureRichText/hooks/useKeyboardShortcuts.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/useMouseHandlers.d.ts +24 -0
- package/RichText/PureRichText/hooks/useMouseHandlers.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/useRichTextState.d.ts +38 -0
- package/RichText/PureRichText/hooks/useRichTextState.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/useStepFontSize.d.ts +17 -0
- package/RichText/PureRichText/hooks/useStepFontSize.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/useStepLineSpacing.d.ts +18 -0
- package/RichText/PureRichText/hooks/useStepLineSpacing.d.ts.map +1 -0
- package/RichText/PureRichText/hooks/useTokenMap.d.ts +45 -0
- package/RichText/PureRichText/hooks/useTokenMap.d.ts.map +1 -0
- package/RichText/PureRichText/index.d.ts +16 -0
- package/RichText/PureRichText/index.d.ts.map +1 -0
- package/RichText/PureRichText/renderers/ElementRenderer.d.ts +8 -0
- package/RichText/PureRichText/renderers/ElementRenderer.d.ts.map +1 -0
- package/RichText/PureRichText/renderers/LeafRenderer.d.ts +8 -0
- package/RichText/PureRichText/renderers/LeafRenderer.d.ts.map +1 -0
- package/RichText/PureRichText/types.d.ts +111 -0
- package/RichText/PureRichText/types.d.ts.map +1 -0
- package/RichText/PureRichText/utils/a11yUtils.d.ts +9 -0
- package/RichText/PureRichText/utils/a11yUtils.d.ts.map +1 -0
- package/RichText/PureRichText/utils/fontSize.d.ts +6 -0
- package/RichText/PureRichText/utils/fontSize.d.ts.map +1 -0
- package/RichText/PureRichText/utils/slateUtils.d.ts +99 -0
- package/RichText/PureRichText/utils/slateUtils.d.ts.map +1 -0
- package/RichText/RichText.d.ts +17 -0
- package/RichText/RichText.d.ts.map +1 -0
- package/RichText/config.d.ts +4 -0
- package/RichText/config.d.ts.map +1 -0
- package/RichText/index.d.ts +7 -0
- package/RichText/index.d.ts.map +1 -0
- package/RichText.config.js +268 -0
- package/RichText.config.js.map +7 -0
- package/RichText.js +7674 -0
- package/RichText.js.map +7 -0
- package/Sankey/PureSankey/PureSankey.d.ts.map +1 -1
- package/Sankey/PureSankey/SankeyLink.d.ts.map +1 -1
- package/Sankey/PureSankey/SankeyNode.d.ts +10 -3
- package/Sankey/PureSankey/SankeyNode.d.ts.map +1 -1
- package/Sankey/PureSankey/SankeyTooltip.d.ts.map +1 -1
- package/Sankey/PureSankey/SankeyUtils.d.ts +10 -0
- package/Sankey/PureSankey/SankeyUtils.d.ts.map +1 -1
- package/Sankey.config.js.map +1 -1
- package/Sankey.js +562 -290
- package/Sankey.js.map +4 -4
- package/Scatter/Scatter.d.ts.map +1 -1
- package/Scatter.config.js +81 -24
- package/Scatter.config.js.map +3 -3
- package/Scatter.js +528 -297
- package/Scatter.js.map +4 -4
- package/SingleValue/SingleValue.d.ts.map +1 -1
- package/SingleValue/config.d.ts.map +1 -1
- package/SingleValue.config.js +76 -24
- package/SingleValue.config.js.map +2 -2
- package/SingleValue.js +896 -779
- package/SingleValue.js.map +4 -4
- package/SingleValueBasic.js.map +1 -1
- package/SingleValueIcon/SingleValueIcon.d.ts.map +1 -1
- package/SingleValueIcon/config.d.ts.map +1 -1
- package/SingleValueIcon.config.js +76 -24
- package/SingleValueIcon.config.js.map +2 -2
- package/SingleValueIcon.js +512 -287
- package/SingleValueIcon.js.map +4 -4
- package/SingleValueRadial/PureSingleValueRadial/utils/gaugeUtils.d.ts +0 -8
- package/SingleValueRadial/PureSingleValueRadial/utils/gaugeUtils.d.ts.map +1 -1
- package/SingleValueRadial/SingleValueRadial.d.ts.map +1 -1
- package/SingleValueRadial/config.d.ts.map +1 -1
- package/SingleValueRadial.config.js +76 -24
- package/SingleValueRadial.config.js.map +2 -2
- package/SingleValueRadial.js +543 -326
- package/SingleValueRadial.js.map +4 -4
- package/SparkLine/SparkLine.d.ts +57 -0
- package/SparkLine/SparkLine.d.ts.map +1 -0
- package/SparkLine/index.d.ts +1 -1
- package/SparkLine/index.d.ts.map +1 -1
- package/SparkLine.js +384 -485
- package/SparkLine.js.map +4 -4
- package/TRELLIS.md +48 -0
- package/Table/PureTable.d.ts +1 -0
- package/Table/PureTable.d.ts.map +1 -1
- package/Table/Table.d.ts.map +1 -1
- package/Table/cells/ArrayCell.d.ts.map +1 -1
- package/Table/config.d.ts.map +1 -1
- package/Table/hooks.d.ts +1 -1
- package/Table/hooks.d.ts.map +1 -1
- package/Table/tableUtils.d.ts +14 -0
- package/Table/tableUtils.d.ts.map +1 -0
- package/Table.config.js +4 -10
- package/Table.config.js.map +2 -2
- package/Table.js +1158 -846
- package/Table.js.map +4 -4
- package/Timeline/PureTimeline/src/TimelineYAxis.d.ts.map +1 -1
- package/Timeline/PureTimeline/src/utils/timelineUtils.d.ts +5 -0
- package/Timeline/PureTimeline/src/utils/timelineUtils.d.ts.map +1 -1
- package/Timeline/Timeline.d.ts +2 -0
- package/Timeline/Timeline.d.ts.map +1 -1
- package/Timeline/config.d.ts.map +1 -1
- package/Timeline/mockdata/timelineDataSource.d.ts +34 -0
- package/Timeline/mockdata/timelineDataSource.d.ts.map +1 -1
- package/Timeline.config.js +15 -0
- package/Timeline.config.js.map +2 -2
- package/Timeline.js +348 -186
- package/Timeline.js.map +4 -4
- package/common/Charting.d.ts.map +1 -1
- package/common/Charting.js +50 -28
- package/common/Charting.js.map +2 -2
- package/common/ChartingApi.d.ts +1 -1
- package/common/ChartingApi.d.ts.map +1 -1
- package/common/ChartingApi.js.map +2 -2
- package/common/DocExampleWithVizSandbox.js.map +1 -1
- package/common/OptionsDoc.js.map +1 -1
- package/common/OverviewDoc.js.map +1 -1
- package/common/SplunkVisualization.d.ts +1 -1
- package/common/SplunkVisualization.d.ts.map +1 -1
- package/common/SplunkVisualization.js +6 -4
- package/common/SplunkVisualization.js.map +2 -2
- package/common/StyledSkipLink.d.ts +2 -0
- package/common/StyledSkipLink.d.ts.map +1 -0
- package/common/StyledSkipLink.js +81 -0
- package/common/StyledSkipLink.js.map +7 -0
- package/common/TimeSeriesChartWrapper.d.ts.map +1 -1
- package/common/TimeSeriesChartWrapper.js +228 -107
- package/common/TimeSeriesChartWrapper.js.map +4 -4
- package/common/chartingUtils.d.ts +32 -6
- package/common/chartingUtils.d.ts.map +1 -1
- package/common/chartingUtils.js +166 -39
- package/common/chartingUtils.js.map +4 -4
- package/common/components/TrellisTitle.d.ts.map +1 -1
- package/common/docUtils.js +1 -1
- package/common/docUtils.js.map +2 -2
- package/common/editorConfig/AxesChartDataDisplay.d.ts.map +1 -1
- package/common/editorConfig/AxesChartYGridAndLabels.d.ts.map +1 -1
- package/common/editorConfig/BackgroundColor.d.ts +2 -2
- package/common/editorConfig/TrellisEditors.d.ts +33 -5
- package/common/editorConfig/TrellisEditors.d.ts.map +1 -1
- package/common/hocs/mockdata/trellisData.d.ts +54 -0
- package/common/hocs/mockdata/trellisData.d.ts.map +1 -1
- package/common/hocs/withTrellis.d.ts +9 -0
- package/common/hocs/withTrellis.d.ts.map +1 -1
- package/common/hooks/useSorting.d.ts +2 -2
- package/common/hooks/useSorting.d.ts.map +1 -1
- package/common/shapeUtils.d.ts +1 -1
- package/common/shapeUtils.d.ts.map +1 -1
- package/common/shapeUtils.js.map +2 -2
- package/common/utils/dataUtils.js +2 -1
- package/common/utils/dataUtils.js.map +2 -2
- package/common/utils/focusUtils.d.ts +4 -0
- package/common/utils/focusUtils.d.ts.map +1 -0
- package/common/utils/focusUtils.js +101 -0
- package/common/utils/focusUtils.js.map +7 -0
- package/common/utils/mapUtils.js +513 -184
- package/common/utils/mapUtils.js.map +4 -4
- package/common/utils/shadowDomUtils.d.ts +2 -0
- package/common/utils/shadowDomUtils.d.ts.map +1 -0
- package/common/utils/shadowDomUtils.js +39 -0
- package/common/utils/shadowDomUtils.js.map +7 -0
- package/common/utils/singleValueUtils.js +14 -26
- package/common/utils/singleValueUtils.js.map +2 -2
- package/common/utils/trellisUtils.d.ts.map +1 -1
- package/common/utils/trellisUtils.js +76 -70
- package/common/utils/trellisUtils.js.map +2 -2
- package/common/withDashboardViz.d.ts.map +1 -1
- package/common/withDashboardViz.js +276 -151
- package/common/withDashboardViz.js.map +4 -4
- package/docs-llm/INDEX.md +118 -0
- package/docs-llm/area/examples-json.md +3854 -0
- package/docs-llm/area/examples-react.md +2816 -0
- package/docs-llm/area/options.md +97 -0
- package/docs-llm/area/overview.md +27 -0
- package/docs-llm/bar/examples-json.md +3380 -0
- package/docs-llm/bar/examples-react.md +2352 -0
- package/docs-llm/bar/options.md +89 -0
- package/docs-llm/bar/overview.md +25 -0
- package/docs-llm/bubble/examples-json.md +4082 -0
- package/docs-llm/bubble/examples-react.md +3977 -0
- package/docs-llm/bubble/options.md +62 -0
- package/docs-llm/bubble/overview.md +26 -0
- package/docs-llm/choropleth-svg/examples-json.md +397 -0
- package/docs-llm/choropleth-svg/examples-react.md +389 -0
- package/docs-llm/choropleth-svg/options.md +15 -0
- package/docs-llm/choropleth-svg/overview.md +23 -0
- package/docs-llm/column/examples-json.md +3898 -0
- package/docs-llm/column/examples-react.md +2653 -0
- package/docs-llm/column/options.md +94 -0
- package/docs-llm/column/overview.md +31 -0
- package/docs-llm/dsl/examples-json.md +43 -0
- package/docs-llm/dsl/examples-react.md +78 -0
- package/docs-llm/dsl/formatters/format-by-type-examples-json.md +58 -0
- package/docs-llm/dsl/formatters/format-by-type-examples-react.md +43 -0
- package/docs-llm/dsl/formatters/format-by-type.md +38 -0
- package/docs-llm/dsl/formatters/frame-examples-json.md +42 -0
- package/docs-llm/dsl/formatters/frame-examples-react.md +24 -0
- package/docs-llm/dsl/formatters/frame.md +6 -0
- package/docs-llm/dsl/formatters/gradient-examples-json.md +98 -0
- package/docs-llm/dsl/formatters/gradient-examples-react.md +44 -0
- package/docs-llm/dsl/formatters/gradient.md +23 -0
- package/docs-llm/dsl/formatters/lerp-examples-json.md +40 -0
- package/docs-llm/dsl/formatters/lerp-examples-react.md +28 -0
- package/docs-llm/dsl/formatters/lerp.md +19 -0
- package/docs-llm/dsl/formatters/match-value-examples-json.md +65 -0
- package/docs-llm/dsl/formatters/match-value-examples-react.md +37 -0
- package/docs-llm/dsl/formatters/match-value.md +13 -0
- package/docs-llm/dsl/formatters/max-contrast-examples-json.md +39 -0
- package/docs-llm/dsl/formatters/max-contrast-examples-react.md +27 -0
- package/docs-llm/dsl/formatters/max-contrast.md +9 -0
- package/docs-llm/dsl/formatters/multi-format-examples-json.md +67 -0
- package/docs-llm/dsl/formatters/multi-format-examples-react.md +49 -0
- package/docs-llm/dsl/formatters/multi-format.md +12 -0
- package/docs-llm/dsl/formatters/objects-examples-json.md +49 -0
- package/docs-llm/dsl/formatters/objects-examples-react.md +37 -0
- package/docs-llm/dsl/formatters/objects.md +3 -0
- package/docs-llm/dsl/formatters/pick-examples-json.md +59 -0
- package/docs-llm/dsl/formatters/pick-examples-react.md +30 -0
- package/docs-llm/dsl/formatters/pick.md +9 -0
- package/docs-llm/dsl/formatters/prefix-examples-json.md +29 -0
- package/docs-llm/dsl/formatters/prefix-examples-react.md +19 -0
- package/docs-llm/dsl/formatters/prefix.md +3 -0
- package/docs-llm/dsl/formatters/prepend-examples-json.md +51 -0
- package/docs-llm/dsl/formatters/prepend-examples-react.md +33 -0
- package/docs-llm/dsl/formatters/prepend.md +9 -0
- package/docs-llm/dsl/formatters/range-value-examples-json.md +48 -0
- package/docs-llm/dsl/formatters/range-value-examples-react.md +34 -0
- package/docs-llm/dsl/formatters/range-value.md +15 -0
- package/docs-llm/dsl/formatters/set-color-channel-examples-json.md +40 -0
- package/docs-llm/dsl/formatters/set-color-channel-examples-react.md +31 -0
- package/docs-llm/dsl/formatters/set-color-channel.md +9 -0
- package/docs-llm/dsl/formatters/suffix-examples-json.md +29 -0
- package/docs-llm/dsl/formatters/suffix-examples-react.md +19 -0
- package/docs-llm/dsl/formatters/suffix.md +3 -0
- package/docs-llm/dsl/formatters/type-examples-json.md +37 -0
- package/docs-llm/dsl/formatters/type-examples-react.md +20 -0
- package/docs-llm/dsl/formatters/type.md +3 -0
- package/docs-llm/dsl/overview.md +41 -0
- package/docs-llm/dsl/selectors/abs.md +7 -0
- package/docs-llm/dsl/selectors/ceil.md +7 -0
- package/docs-llm/dsl/selectors/data-frame-average-examples-json.md +41 -0
- package/docs-llm/dsl/selectors/data-frame-average-examples-react.md +36 -0
- package/docs-llm/dsl/selectors/data-frame-average.md +7 -0
- package/docs-llm/dsl/selectors/data-frame-count-examples-json.md +41 -0
- package/docs-llm/dsl/selectors/data-frame-count-examples-react.md +36 -0
- package/docs-llm/dsl/selectors/data-frame-count.md +7 -0
- package/docs-llm/dsl/selectors/data-frame-examples-json.md +830 -0
- package/docs-llm/dsl/selectors/data-frame-examples-react.md +929 -0
- package/docs-llm/dsl/selectors/data-frame-get-field-examples-json.md +89 -0
- package/docs-llm/dsl/selectors/data-frame-get-field-examples-react.md +124 -0
- package/docs-llm/dsl/selectors/data-frame-get-field.md +5 -0
- package/docs-llm/dsl/selectors/data-frame-get-raw-value.md +5 -0
- package/docs-llm/dsl/selectors/data-frame-get-type.md +5 -0
- package/docs-llm/dsl/selectors/data-frame-get-value.md +5 -0
- package/docs-llm/dsl/selectors/data-frame-max-examples-json.md +51 -0
- package/docs-llm/dsl/selectors/data-frame-max-examples-react.md +41 -0
- package/docs-llm/dsl/selectors/data-frame-max.md +7 -0
- package/docs-llm/dsl/selectors/data-frame-min-examples-json.md +51 -0
- package/docs-llm/dsl/selectors/data-frame-min-examples-react.md +41 -0
- package/docs-llm/dsl/selectors/data-frame-min.md +7 -0
- package/docs-llm/dsl/selectors/data-frame-percentile-examples-json.md +41 -0
- package/docs-llm/dsl/selectors/data-frame-percentile-examples-react.md +36 -0
- package/docs-llm/dsl/selectors/data-frame-percentile.md +8 -0
- package/docs-llm/dsl/selectors/data-frame-set-value.md +5 -0
- package/docs-llm/dsl/selectors/data-frame-sum-examples-json.md +51 -0
- package/docs-llm/dsl/selectors/data-frame-sum-examples-react.md +41 -0
- package/docs-llm/dsl/selectors/data-frame-sum.md +7 -0
- package/docs-llm/dsl/selectors/data-frame.md +4 -0
- package/docs-llm/dsl/selectors/data-point-get-field.md +5 -0
- package/docs-llm/dsl/selectors/data-point-get-raw-value.md +4 -0
- package/docs-llm/dsl/selectors/data-point-get-type.md +5 -0
- package/docs-llm/dsl/selectors/data-point-get-value.md +5 -0
- package/docs-llm/dsl/selectors/data-point-set-value.md +4 -0
- package/docs-llm/dsl/selectors/data-point.md +5 -0
- package/docs-llm/dsl/selectors/data-series-average.md +22 -0
- package/docs-llm/dsl/selectors/data-series-count.md +14 -0
- package/docs-llm/dsl/selectors/data-series-get-field.md +5 -0
- package/docs-llm/dsl/selectors/data-series-get-raw-value.md +4 -0
- package/docs-llm/dsl/selectors/data-series-get-type.md +5 -0
- package/docs-llm/dsl/selectors/data-series-get-value.md +4 -0
- package/docs-llm/dsl/selectors/data-series-max.md +5 -0
- package/docs-llm/dsl/selectors/data-series-min.md +5 -0
- package/docs-llm/dsl/selectors/data-series-percentile.md +17 -0
- package/docs-llm/dsl/selectors/data-series-set-value.md +4 -0
- package/docs-llm/dsl/selectors/data-series-sum.md +24 -0
- package/docs-llm/dsl/selectors/data-series.md +4 -0
- package/docs-llm/dsl/selectors/delta.md +7 -0
- package/docs-llm/dsl/selectors/divide.md +8 -0
- package/docs-llm/dsl/selectors/first-point.md +5 -0
- package/docs-llm/dsl/selectors/floor.md +7 -0
- package/docs-llm/dsl/selectors/frame-by-series-index-range-examples-json.md +89 -0
- package/docs-llm/dsl/selectors/frame-by-series-index-range-examples-react.md +88 -0
- package/docs-llm/dsl/selectors/frame-by-series-index-range.md +10 -0
- package/docs-llm/dsl/selectors/frame-by-series-indexes-examples-json.md +88 -0
- package/docs-llm/dsl/selectors/frame-by-series-indexes-examples-react.md +87 -0
- package/docs-llm/dsl/selectors/frame-by-series-indexes.md +9 -0
- package/docs-llm/dsl/selectors/frame-by-series-names-examples-json.md +89 -0
- package/docs-llm/dsl/selectors/frame-by-series-names-examples-react.md +88 -0
- package/docs-llm/dsl/selectors/frame-by-series-names-or-indexes-examples-json.md +89 -0
- package/docs-llm/dsl/selectors/frame-by-series-names-or-indexes-examples-react.md +88 -0
- package/docs-llm/dsl/selectors/frame-by-series-names-or-indexes.md +9 -0
- package/docs-llm/dsl/selectors/frame-by-series-names.md +9 -0
- package/docs-llm/dsl/selectors/frame-by-series-types-examples-json.md +89 -0
- package/docs-llm/dsl/selectors/frame-by-series-types-examples-react.md +88 -0
- package/docs-llm/dsl/selectors/frame-by-series-types.md +9 -0
- package/docs-llm/dsl/selectors/frame-without-internal-fields-examples-json.md +137 -0
- package/docs-llm/dsl/selectors/frame-without-internal-fields-examples-react.md +135 -0
- package/docs-llm/dsl/selectors/frame-without-internal-fields-except-examples-json.md +157 -0
- package/docs-llm/dsl/selectors/frame-without-internal-fields-except-examples-react.md +155 -0
- package/docs-llm/dsl/selectors/frame-without-internal-fields-except.md +21 -0
- package/docs-llm/dsl/selectors/frame-without-internal-fields.md +17 -0
- package/docs-llm/dsl/selectors/frame-without-series-names.md +8 -0
- package/docs-llm/dsl/selectors/last-point.md +5 -0
- package/docs-llm/dsl/selectors/minus.md +8 -0
- package/docs-llm/dsl/selectors/multiply.md +8 -0
- package/docs-llm/dsl/selectors/plus.md +8 -0
- package/docs-llm/dsl/selectors/point-by-index.md +6 -0
- package/docs-llm/dsl/selectors/points-by-indexes.md +6 -0
- package/docs-llm/dsl/selectors/round.md +7 -0
- package/docs-llm/dsl/selectors/series-by-index-examples-json.md +49 -0
- package/docs-llm/dsl/selectors/series-by-index-examples-react.md +39 -0
- package/docs-llm/dsl/selectors/series-by-index.md +8 -0
- package/docs-llm/dsl/selectors/series-by-name-examples-json.md +49 -0
- package/docs-llm/dsl/selectors/series-by-name-examples-react.md +39 -0
- package/docs-llm/dsl/selectors/series-by-name.md +8 -0
- package/docs-llm/dsl/selectors/series-by-prioritized-types-examples-json.md +47 -0
- package/docs-llm/dsl/selectors/series-by-prioritized-types-examples-react.md +39 -0
- package/docs-llm/dsl/selectors/series-by-prioritized-types.md +10 -0
- package/docs-llm/dsl/selectors/series-by-type-examples-json.md +49 -0
- package/docs-llm/dsl/selectors/series-by-type-examples-react.md +39 -0
- package/docs-llm/dsl/selectors/series-by-type.md +10 -0
- package/docs-llm/dsl/selectors/series-by-types.md +6 -0
- package/docs-llm/ellipse/examples-json.md +5 -0
- package/docs-llm/ellipse/examples-react.md +5 -0
- package/docs-llm/ellipse/options.md +16 -0
- package/docs-llm/ellipse/overview.md +5 -0
- package/docs-llm/events/examples-json.md +705 -0
- package/docs-llm/events/examples-react.md +536 -0
- package/docs-llm/events/options.md +18 -0
- package/docs-llm/events/overview.md +5 -0
- package/docs-llm/filler-gauge/examples-json.md +376 -0
- package/docs-llm/filler-gauge/examples-react.md +274 -0
- package/docs-llm/filler-gauge/options.md +26 -0
- package/docs-llm/filler-gauge/overview.md +5 -0
- package/docs-llm/image/examples-json.md +39 -0
- package/docs-llm/image/examples-react.md +65 -0
- package/docs-llm/image/options.md +13 -0
- package/docs-llm/image/overview.md +5 -0
- package/docs-llm/line/examples-json.md +3724 -0
- package/docs-llm/line/examples-react.md +2683 -0
- package/docs-llm/line/options.md +95 -0
- package/docs-llm/line/overview.md +29 -0
- package/docs-llm/link-graph/examples-json.md +5 -0
- package/docs-llm/link-graph/examples-react.md +5 -0
- package/docs-llm/link-graph/options.md +26 -0
- package/docs-llm/link-graph/overview.md +16 -0
- package/docs-llm/map/examples-json.md +13973 -0
- package/docs-llm/map/examples-react.md +6154 -0
- package/docs-llm/map/options.md +22 -0
- package/docs-llm/map/overview.md +32 -0
- package/docs-llm/markdown/examples-json.md +63 -0
- package/docs-llm/markdown/examples-react.md +98 -0
- package/docs-llm/markdown/options.md +17 -0
- package/docs-llm/markdown/overview.md +5 -0
- package/docs-llm/marker-gauge/examples-json.md +436 -0
- package/docs-llm/marker-gauge/examples-react.md +367 -0
- package/docs-llm/marker-gauge/options.md +26 -0
- package/docs-llm/marker-gauge/overview.md +5 -0
- package/docs-llm/network-graph/examples-json.md +8843 -0
- package/docs-llm/network-graph/examples-react.md +7339 -0
- package/docs-llm/network-graph/options.md +50 -0
- package/docs-llm/network-graph/overview.md +28 -0
- package/docs-llm/parallel-coordinates/examples-json.md +8376 -0
- package/docs-llm/parallel-coordinates/examples-react.md +2771 -0
- package/docs-llm/parallel-coordinates/options.md +14 -0
- package/docs-llm/parallel-coordinates/overview.md +22 -0
- package/docs-llm/pie/examples-json.md +851 -0
- package/docs-llm/pie/examples-react.md +606 -0
- package/docs-llm/pie/options.md +34 -0
- package/docs-llm/pie/overview.md +23 -0
- package/docs-llm/process-tree/options.md +32 -0
- package/docs-llm/punchcard/examples-json.md +6134 -0
- package/docs-llm/punchcard/examples-react.md +4562 -0
- package/docs-llm/punchcard/options.md +33 -0
- package/docs-llm/punchcard/overview.md +5 -0
- package/docs-llm/pure-rich-text/options.md +28 -0
- package/docs-llm/rectangle/examples-json.md +5 -0
- package/docs-llm/rectangle/examples-react.md +5 -0
- package/docs-llm/rectangle/options.md +19 -0
- package/docs-llm/rectangle/overview.md +5 -0
- package/docs-llm/rich-text/examples-json.md +96 -0
- package/docs-llm/rich-text/examples-react.md +119 -0
- package/docs-llm/rich-text/options.md +28 -0
- package/docs-llm/rich-text/overview.md +5 -0
- package/docs-llm/sankey/examples-json.md +844 -0
- package/docs-llm/sankey/examples-react.md +546 -0
- package/docs-llm/sankey/options.md +19 -0
- package/docs-llm/sankey/overview.md +24 -0
- package/docs-llm/scatter/examples-json.md +4012 -0
- package/docs-llm/scatter/examples-react.md +3914 -0
- package/docs-llm/scatter/options.md +68 -0
- package/docs-llm/scatter/overview.md +25 -0
- package/docs-llm/single-value/examples-json.md +2613 -0
- package/docs-llm/single-value/examples-react.md +2296 -0
- package/docs-llm/single-value/options.md +49 -0
- package/docs-llm/single-value/overview.md +23 -0
- package/docs-llm/single-value-icon/examples-json.md +1686 -0
- package/docs-llm/single-value-icon/examples-react.md +1573 -0
- package/docs-llm/single-value-icon/options.md +43 -0
- package/docs-llm/single-value-icon/overview.md +5 -0
- package/docs-llm/single-value-radial/examples-json.md +1178 -0
- package/docs-llm/single-value-radial/examples-react.md +1028 -0
- package/docs-llm/single-value-radial/options.md +41 -0
- package/docs-llm/single-value-radial/overview.md +5 -0
- package/docs-llm/table/examples-json.md +5 -0
- package/docs-llm/table/examples-react.md +5 -0
- package/docs-llm/table/options.md +25 -0
- package/docs-llm/table/overview.md +24 -0
- package/docs-llm/timeline/examples-json.md +5 -0
- package/docs-llm/timeline/examples-react.md +5 -0
- package/docs-llm/timeline/options.md +27 -0
- package/docs-llm/timeline/overview.md +24 -0
- package/package.json +39 -30
- package/LICENSE.md +0 -449
|
@@ -12,6 +12,7 @@ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
|
12
12
|
var __getProtoOf = Object.getPrototypeOf;
|
|
13
13
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
14
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
15
|
+
var __pow = Math.pow;
|
|
15
16
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16
17
|
var __spreadValues = (a, b) => {
|
|
17
18
|
for (var prop in b || (b = {}))
|
|
@@ -59,6 +60,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
59
60
|
mod
|
|
60
61
|
));
|
|
61
62
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
63
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
62
64
|
|
|
63
65
|
// src/common/withDashboardViz.tsx
|
|
64
66
|
var withDashboardViz_exports = {};
|
|
@@ -206,7 +208,7 @@ var DefaultVizActionHandler = class {
|
|
|
206
208
|
var INITIAL_HEIGHT = 250;
|
|
207
209
|
var SplunkVisualization = class {
|
|
208
210
|
};
|
|
209
|
-
SplunkVisualization
|
|
211
|
+
__publicField(SplunkVisualization, "propTypes", {
|
|
210
212
|
/**
|
|
211
213
|
* display mode
|
|
212
214
|
*/
|
|
@@ -282,11 +284,11 @@ SplunkVisualization.propTypes = {
|
|
|
282
284
|
* A callback to request new data with updated request params
|
|
283
285
|
*/
|
|
284
286
|
onRequestParamsChange: prop_types_exports.func
|
|
285
|
-
};
|
|
287
|
+
});
|
|
286
288
|
/**
|
|
287
289
|
*
|
|
288
290
|
*/
|
|
289
|
-
SplunkVisualization
|
|
291
|
+
__publicField(SplunkVisualization, "defaults", {
|
|
290
292
|
// BaseVisualization in dashboard-visualizations uses 100% for width but 250 for height
|
|
291
293
|
width: "100%",
|
|
292
294
|
height: INITIAL_HEIGHT,
|
|
@@ -301,7 +303,7 @@ SplunkVisualization.defaults = {
|
|
|
301
303
|
onComputedProps: () => ({}),
|
|
302
304
|
loading: false,
|
|
303
305
|
onRequestParamsChange: lodash_exports.noop
|
|
304
|
-
};
|
|
306
|
+
});
|
|
305
307
|
var SplunkVisualization_default = SplunkVisualization;
|
|
306
308
|
|
|
307
309
|
// src/common/interfaces/DataSource.ts
|
|
@@ -355,9 +357,9 @@ var usePaginationParams = ({
|
|
|
355
357
|
meta,
|
|
356
358
|
onRequestParamsChange
|
|
357
359
|
}) => {
|
|
358
|
-
const totalCount = meta
|
|
359
|
-
const offset = requestParams
|
|
360
|
-
const count = requestParams
|
|
360
|
+
const totalCount = (meta == null ? void 0 : meta.totalCount) || 0;
|
|
361
|
+
const offset = (requestParams == null ? void 0 : requestParams.offset) || 0;
|
|
362
|
+
const count = requestParams == null ? void 0 : requestParams.count;
|
|
361
363
|
const totalPages = typeof count === "number" && count > 0 ? Math.ceil(totalCount / count) : 0;
|
|
362
364
|
const current = typeof count === "number" && count > 0 ? Math.floor(offset / count) + 1 : 0;
|
|
363
365
|
const isPaging = totalPages > 1 && typeof onRequestParamsChange === "function";
|
|
@@ -474,7 +476,7 @@ var Cover = styled_components_default.div`
|
|
|
474
476
|
bottom: 0;
|
|
475
477
|
`;
|
|
476
478
|
var Blocker = styled_components_default.div.attrs({
|
|
477
|
-
"data-splunk-visualization-version": "28.
|
|
479
|
+
"data-splunk-visualization-version": "28.7.0 - d7b18cab6"
|
|
478
480
|
})`
|
|
479
481
|
position: relative;
|
|
480
482
|
width: 100%;
|
|
@@ -573,7 +575,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
573
575
|
FixSizeItem,
|
|
574
576
|
{
|
|
575
577
|
"data-test": "fix-size-item",
|
|
576
|
-
"data-splunk-visualization-version": "28.
|
|
578
|
+
"data-splunk-visualization-version": "28.7.0 - d7b18cab6",
|
|
577
579
|
width,
|
|
578
580
|
height,
|
|
579
581
|
backgroundColor
|
|
@@ -1114,6 +1116,24 @@ var defaultImport25 = __toESM(require("@splunk/react-icons/Triangle"));
|
|
|
1114
1116
|
__reExport(Triangle_exports, require("@splunk/react-icons/Triangle"));
|
|
1115
1117
|
var Triangle_default = "default" in defaultImport25 ? defaultImport25.default : defaultImport25;
|
|
1116
1118
|
|
|
1119
|
+
// esm-externals:@splunk/visualizations-shared/propUtils
|
|
1120
|
+
var propUtils_exports = {};
|
|
1121
|
+
__export(propUtils_exports, {
|
|
1122
|
+
default: () => propUtils_default
|
|
1123
|
+
});
|
|
1124
|
+
var defaultImport26 = __toESM(require("@splunk/visualizations-shared/propUtils"));
|
|
1125
|
+
__reExport(propUtils_exports, require("@splunk/visualizations-shared/propUtils"));
|
|
1126
|
+
var propUtils_default = "default" in defaultImport26 ? defaultImport26.default : defaultImport26;
|
|
1127
|
+
|
|
1128
|
+
// esm-externals:@splunk/visualizations-shared/simpleXMLOptions
|
|
1129
|
+
var simpleXMLOptions_exports = {};
|
|
1130
|
+
__export(simpleXMLOptions_exports, {
|
|
1131
|
+
default: () => simpleXMLOptions_default
|
|
1132
|
+
});
|
|
1133
|
+
var defaultImport27 = __toESM(require("@splunk/visualizations-shared/simpleXMLOptions"));
|
|
1134
|
+
__reExport(simpleXMLOptions_exports, require("@splunk/visualizations-shared/simpleXMLOptions"));
|
|
1135
|
+
var simpleXMLOptions_default = "default" in defaultImport27 ? defaultImport27.default : defaultImport27;
|
|
1136
|
+
|
|
1117
1137
|
// src/common/chartingUtils.ts
|
|
1118
1138
|
var DEFAULT_LINE_WIDTH = 2;
|
|
1119
1139
|
var getAnnotationsForCanvas = ({
|
|
@@ -1151,9 +1171,9 @@ var shouldEnableSearchZoom = (eventHandlers = [], xField = "") => {
|
|
|
1151
1171
|
const xAxisIsTime = xField === "_time";
|
|
1152
1172
|
return !!rangeSelectEventHandler && xAxisIsTime;
|
|
1153
1173
|
};
|
|
1154
|
-
var canvasSupportedTimeSeriesCharts = ["splunk.line"];
|
|
1174
|
+
var canvasSupportedTimeSeriesCharts = ["splunk.line", "splunk.area"];
|
|
1155
1175
|
var isTimeSeriesCanvasRenderSupported = (vizConfigKey) => {
|
|
1156
|
-
return canvasSupportedTimeSeriesCharts.
|
|
1176
|
+
return canvasSupportedTimeSeriesCharts.includes(vizConfigKey);
|
|
1157
1177
|
};
|
|
1158
1178
|
var filterChartDataFromInternalFields = (chartData) => {
|
|
1159
1179
|
const { fields, columns } = chartData;
|
|
@@ -1308,46 +1328,66 @@ var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInt
|
|
|
1308
1328
|
}
|
|
1309
1329
|
return y2Config;
|
|
1310
1330
|
};
|
|
1311
|
-
var
|
|
1331
|
+
var getSeriesType = (isOverlay, isAreaChart, isStacked) => {
|
|
1332
|
+
if (isOverlay) return "line";
|
|
1333
|
+
if (!isAreaChart) return void 0;
|
|
1334
|
+
return isStacked ? "stacked-area" : "area";
|
|
1335
|
+
};
|
|
1336
|
+
var getY2Scale = (field, y2fields, overlayFields) => {
|
|
1337
|
+
const assignToY2 = (y2fields == null ? void 0 : y2fields.length) > 0 && y2fields.includes(field) || !(y2fields == null ? void 0 : y2fields.length) && (overlayFields == null ? void 0 : overlayFields.includes(field));
|
|
1338
|
+
return assignToY2 ? "y2" : "y";
|
|
1339
|
+
};
|
|
1340
|
+
var getSeriesOverrides = (opts) => {
|
|
1341
|
+
var _a;
|
|
1342
|
+
const {
|
|
1343
|
+
yfields,
|
|
1344
|
+
y2fields,
|
|
1345
|
+
lineWidth,
|
|
1346
|
+
overlayFields,
|
|
1347
|
+
y2Enabled,
|
|
1348
|
+
nullValueMode,
|
|
1349
|
+
markerDisplay,
|
|
1350
|
+
lineDashStyle,
|
|
1351
|
+
lineDashStylesByField,
|
|
1352
|
+
stepPosition,
|
|
1353
|
+
stepPositionsByField,
|
|
1354
|
+
type,
|
|
1355
|
+
stackMode,
|
|
1356
|
+
showLines
|
|
1357
|
+
} = opts;
|
|
1312
1358
|
const seriesConfig = {};
|
|
1313
1359
|
let spanGaps;
|
|
1314
|
-
let replaceNullsWithZero;
|
|
1315
1360
|
if (nullValueMode === "gaps") {
|
|
1316
1361
|
spanGaps = false;
|
|
1317
|
-
} else if (nullValueMode
|
|
1362
|
+
} else if (nullValueMode != null) {
|
|
1318
1363
|
spanGaps = true;
|
|
1319
|
-
|
|
1320
|
-
|
|
1321
|
-
}
|
|
1364
|
+
} else {
|
|
1365
|
+
spanGaps = void 0;
|
|
1322
1366
|
}
|
|
1323
|
-
|
|
1367
|
+
const replaceNullsWithZero = nullValueMode === "zero" ? true : void 0;
|
|
1368
|
+
const isAreaChart = type === "area";
|
|
1369
|
+
const isStacked = isAreaChart && (stackMode === "stacked" || stackMode === "stacked100");
|
|
1370
|
+
const areaFields = isAreaChart ? yfields.filter((f) => !(overlayFields == null ? void 0 : overlayFields.includes(f))) : yfields;
|
|
1371
|
+
const overlayFieldsInOrder = (_a = overlayFields == null ? void 0 : overlayFields.filter((f) => yfields.includes(f))) != null ? _a : [];
|
|
1372
|
+
const orderedFields = isAreaChart ? [...areaFields, ...overlayFieldsInOrder] : yfields;
|
|
1373
|
+
orderedFields.forEach((field) => {
|
|
1374
|
+
var _a2;
|
|
1375
|
+
const isOverlay = (_a2 = overlayFields == null ? void 0 : overlayFields.includes(field)) != null ? _a2 : false;
|
|
1376
|
+
const isPercent = isAreaChart && stackMode === "stacked100" && !isOverlay;
|
|
1377
|
+
const shouldHideAreaOutline = isAreaChart && showLines === false && !isOverlay;
|
|
1324
1378
|
seriesConfig[field] = {
|
|
1325
|
-
overrides: {
|
|
1379
|
+
overrides: __spreadValues({
|
|
1380
|
+
width: shouldHideAreaOutline ? 0 : lineWidth != null ? lineWidth : DEFAULT_LINE_WIDTH
|
|
1381
|
+
}, isPercent ? { stacking: { mode: "percent", group: "A" } } : {})
|
|
1326
1382
|
};
|
|
1327
|
-
|
|
1328
|
-
|
|
1329
|
-
|
|
1330
|
-
if (y2Enabled)
|
|
1331
|
-
|
|
1332
|
-
|
|
1333
|
-
|
|
1334
|
-
|
|
1335
|
-
);
|
|
1336
|
-
if (shouldAssignToY2) {
|
|
1337
|
-
seriesConfig[field].overrides.scale = "y2";
|
|
1338
|
-
} else {
|
|
1339
|
-
seriesConfig[field].overrides.scale = "y";
|
|
1340
|
-
}
|
|
1341
|
-
}
|
|
1342
|
-
if (overlayFields == null ? void 0 : overlayFields.includes(field)) {
|
|
1343
|
-
seriesConfig[field].type = "line";
|
|
1344
|
-
}
|
|
1345
|
-
if (markerDisplay !== void 0) {
|
|
1346
|
-
seriesConfig[field].markerDisplay = markerDisplay;
|
|
1347
|
-
}
|
|
1348
|
-
const fieldDashStyle = (lineDashStylesByField == null ? void 0 : lineDashStylesByField[field]) || lineDashStyle;
|
|
1349
|
-
if (fieldDashStyle) {
|
|
1350
|
-
seriesConfig[field].lineDashStyle = fieldDashStyle;
|
|
1383
|
+
const seriesType = getSeriesType(isOverlay, isAreaChart, isStacked);
|
|
1384
|
+
if (seriesType !== void 0) seriesConfig[field].type = seriesType;
|
|
1385
|
+
if (spanGaps !== void 0) seriesConfig[field].overrides.spanGaps = spanGaps;
|
|
1386
|
+
if (y2Enabled) seriesConfig[field].overrides.scale = getY2Scale(field, y2fields, overlayFields);
|
|
1387
|
+
if (markerDisplay !== void 0) seriesConfig[field].markerDisplay = markerDisplay;
|
|
1388
|
+
if (!isAreaChart || isOverlay) {
|
|
1389
|
+
const fieldDashStyle = (lineDashStylesByField == null ? void 0 : lineDashStylesByField[field]) || lineDashStyle;
|
|
1390
|
+
if (fieldDashStyle) seriesConfig[field].lineDashStyle = fieldDashStyle;
|
|
1351
1391
|
}
|
|
1352
1392
|
const hasFieldStepPosition = Object.hasOwn(stepPositionsByField || {}, field);
|
|
1353
1393
|
const fieldStepPosition = hasFieldStepPosition ? stepPositionsByField == null ? void 0 : stepPositionsByField[field] : stepPosition;
|
|
@@ -1395,9 +1435,9 @@ var visualization_schemas_exports = {};
|
|
|
1395
1435
|
__export(visualization_schemas_exports, {
|
|
1396
1436
|
default: () => visualization_schemas_default
|
|
1397
1437
|
});
|
|
1398
|
-
var
|
|
1438
|
+
var defaultImport28 = __toESM(require("@splunk/visualization-schemas"));
|
|
1399
1439
|
__reExport(visualization_schemas_exports, require("@splunk/visualization-schemas"));
|
|
1400
|
-
var visualization_schemas_default = "default" in
|
|
1440
|
+
var visualization_schemas_default = "default" in defaultImport28 ? defaultImport28.default : defaultImport28;
|
|
1401
1441
|
|
|
1402
1442
|
// src/common/hooks/useTrellisEnabled.ts
|
|
1403
1443
|
var useTrellisFeatureFlagOn = () => {
|
|
@@ -1427,8 +1467,27 @@ var TrellisTitleDiv = styled_components_default.div`
|
|
|
1427
1467
|
background-color: ${(props) => props.backgroundColor};
|
|
1428
1468
|
box-shadow: 0 1px ${(props) => props.backgroundColor}; // this is added to avoid a 1px gap between title and viz divs that showed up intermittently because of pixel rounding error in chrome.
|
|
1429
1469
|
`;
|
|
1470
|
+
var formatTrellisKey = (value) => {
|
|
1471
|
+
if (value === null || value === void 0) {
|
|
1472
|
+
return "";
|
|
1473
|
+
}
|
|
1474
|
+
if (typeof value === "string") {
|
|
1475
|
+
return value;
|
|
1476
|
+
}
|
|
1477
|
+
if (typeof value === "number" || typeof value === "boolean") {
|
|
1478
|
+
return value.toString();
|
|
1479
|
+
}
|
|
1480
|
+
if (typeof value === "symbol") {
|
|
1481
|
+
return value.toString();
|
|
1482
|
+
}
|
|
1483
|
+
try {
|
|
1484
|
+
return JSON.stringify(value);
|
|
1485
|
+
} catch (e) {
|
|
1486
|
+
return typeof value === "bigint" ? value.toString() : "";
|
|
1487
|
+
}
|
|
1488
|
+
};
|
|
1430
1489
|
var TrellisTitle = (props) => {
|
|
1431
|
-
const titleText =
|
|
1490
|
+
const titleText = formatTrellisKey(props.trellisKey);
|
|
1432
1491
|
return /* @__PURE__ */ react_exports.createElement(
|
|
1433
1492
|
TrellisTitleDiv,
|
|
1434
1493
|
{
|
|
@@ -1564,6 +1623,38 @@ var parseArrayOption = (value) => {
|
|
|
1564
1623
|
}
|
|
1565
1624
|
return void 0;
|
|
1566
1625
|
};
|
|
1626
|
+
var getAreaOpacityForCanvas = (areaOpacity) => (
|
|
1627
|
+
// Preserve legacy visualizations behavior where area opacity is squared to match charting output.
|
|
1628
|
+
areaOpacity !== void 0 && areaOpacity !== null ? __pow(areaOpacity, 2) : areaOpacity
|
|
1629
|
+
);
|
|
1630
|
+
var parseTickIntervalOption = (simpleXMLValue, canvasValue) => {
|
|
1631
|
+
if (simpleXMLValue) return Number(simpleXMLValue);
|
|
1632
|
+
if (canvasValue) return Number(canvasValue);
|
|
1633
|
+
return void 0;
|
|
1634
|
+
};
|
|
1635
|
+
var getYAxisTitles = ({
|
|
1636
|
+
y2Enabled,
|
|
1637
|
+
yFields,
|
|
1638
|
+
y2Fields,
|
|
1639
|
+
overlayFields,
|
|
1640
|
+
yAxisTitleText,
|
|
1641
|
+
yAxisTitleVisibility,
|
|
1642
|
+
y2AxisTitleText,
|
|
1643
|
+
y2AxisTitleVisibility,
|
|
1644
|
+
containerHeight
|
|
1645
|
+
}) => {
|
|
1646
|
+
const yFieldsForTitle = y2Enabled ? yFields.filter((field) => !y2Fields.includes(field)) : yFields;
|
|
1647
|
+
const fieldsForY2Axis = y2Fields.length > 0 ? y2Fields : overlayFields;
|
|
1648
|
+
const yAxisTitle = ellipsisAxisTitle(
|
|
1649
|
+
getComputedAxisTitles(yAxisTitleText, yFieldsForTitle, yAxisTitleVisibility),
|
|
1650
|
+
containerHeight
|
|
1651
|
+
);
|
|
1652
|
+
const y2AxisTitle = ellipsisAxisTitle(
|
|
1653
|
+
getComputedAxisTitles(y2AxisTitleText, fieldsForY2Axis, y2AxisTitleVisibility),
|
|
1654
|
+
containerHeight
|
|
1655
|
+
);
|
|
1656
|
+
return { yAxisTitle, y2AxisTitle };
|
|
1657
|
+
};
|
|
1567
1658
|
var TimeSeriesChartWrapper = (props) => {
|
|
1568
1659
|
var _b, _c, _d;
|
|
1569
1660
|
const _a = props, {
|
|
@@ -1653,6 +1744,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1653
1744
|
"chart.overlayFields": overlayFieldsStr,
|
|
1654
1745
|
"chart.nullValueMode": nullValueMode,
|
|
1655
1746
|
"chart.showDataLabels": showDataLabels,
|
|
1747
|
+
"chart.showLines": showLines,
|
|
1748
|
+
"chart.stackMode": stackMode,
|
|
1656
1749
|
lineWidth,
|
|
1657
1750
|
lineDashStyle,
|
|
1658
1751
|
fieldDashStyles: lineDashStylesByFieldStr,
|
|
@@ -1681,7 +1774,10 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1681
1774
|
yAxisMinorTickSize,
|
|
1682
1775
|
y2AxisMinorTickSize,
|
|
1683
1776
|
showYAxisWithZero: showYAxisWithZeroFromOptions,
|
|
1684
|
-
showY2AxisWithZero: showY2AxisWithZeroFromOptions
|
|
1777
|
+
showY2AxisWithZero: showY2AxisWithZeroFromOptions,
|
|
1778
|
+
// area only props
|
|
1779
|
+
areaFillOpacity: areaOpacity,
|
|
1780
|
+
chart: chartType
|
|
1685
1781
|
} = options;
|
|
1686
1782
|
const dataValuesDisplay = showDataLabels === "none" ? "off" : showDataLabels;
|
|
1687
1783
|
const showYAxisWithZero = showYAxisWithZeroFromProps != null ? showYAxisWithZeroFromProps : showYAxisWithZeroFromOptions;
|
|
@@ -1698,13 +1794,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1698
1794
|
const yAxisMax = parseAxisValue(yAxisMaxRaw);
|
|
1699
1795
|
const y2AxisMin = parseAxisValue(y2AxisMinRaw);
|
|
1700
1796
|
const y2AxisMax = parseAxisValue(y2AxisMaxRaw);
|
|
1701
|
-
const
|
|
1702
|
-
|
|
1703
|
-
|
|
1704
|
-
|
|
1705
|
-
|
|
1706
|
-
const yAxisMajorTickIntervalNum = parseTickInterval(yAxisMajorUnitFromSimpleXML, yAxisMajorTickInterval);
|
|
1707
|
-
const y2AxisMajorTickIntervalNum = parseTickInterval(
|
|
1797
|
+
const yAxisMajorTickIntervalNum = parseTickIntervalOption(
|
|
1798
|
+
yAxisMajorUnitFromSimpleXML,
|
|
1799
|
+
yAxisMajorTickInterval
|
|
1800
|
+
);
|
|
1801
|
+
const y2AxisMajorTickIntervalNum = parseTickIntervalOption(
|
|
1708
1802
|
y2AxisMajorUnitFromSimpleXML,
|
|
1709
1803
|
y2AxisMajorTickInterval
|
|
1710
1804
|
);
|
|
@@ -1713,6 +1807,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1713
1807
|
const y2AxisMajorTickSizeNum = y2AxisMajorTickSize != null ? Number(y2AxisMajorTickSize) : void 0;
|
|
1714
1808
|
const yAxisMinorTickSizeNum = yAxisMinorTickSize != null ? Number(yAxisMinorTickSize) : void 0;
|
|
1715
1809
|
const y2AxisMinorTickSizeNum = y2AxisMinorTickSize != null ? Number(y2AxisMinorTickSize) : void 0;
|
|
1810
|
+
const areaOpacityForCanvas = getAreaOpacityForCanvas(areaOpacity);
|
|
1716
1811
|
const seriesColors = seriesColorsStr ? JSON.parse(seriesColorsStr) : void 0;
|
|
1717
1812
|
const seriesColorsByField = fieldColors ? JSON.parse(fieldColors) : void 0;
|
|
1718
1813
|
const lineDashStylesByField = lineDashStylesByFieldStr ? JSON.parse(lineDashStylesByFieldStr) : void 0;
|
|
@@ -1743,26 +1838,40 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1743
1838
|
);
|
|
1744
1839
|
let xAxisTitle = getComputedAxisTitles(xAxisTitleText, [xField], xAxisTitleVisibility);
|
|
1745
1840
|
xAxisTitle = ellipsisAxisTitle(xAxisTitle, containerWidth);
|
|
1746
|
-
const
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1841
|
+
const { yAxisTitle, y2AxisTitle } = getYAxisTitles({
|
|
1842
|
+
y2Enabled,
|
|
1843
|
+
yFields,
|
|
1844
|
+
y2Fields,
|
|
1845
|
+
overlayFields,
|
|
1846
|
+
yAxisTitleText,
|
|
1847
|
+
yAxisTitleVisibility,
|
|
1848
|
+
y2AxisTitleText,
|
|
1849
|
+
y2AxisTitleVisibility,
|
|
1850
|
+
containerHeight
|
|
1851
|
+
});
|
|
1752
1852
|
const xScaleConfig = (0, react_exports.useMemo)(
|
|
1753
1853
|
() => getXScaleConfig(xAxisTitle, xAxisLabelVisibility, xAxisLabelRotation),
|
|
1754
1854
|
[xAxisTitle, xAxisLabelVisibility, xAxisLabelRotation]
|
|
1755
1855
|
);
|
|
1856
|
+
const isStacked100 = stackMode === "stacked100";
|
|
1756
1857
|
const yScaleConfig = (0, react_exports.useMemo)(
|
|
1757
|
-
() =>
|
|
1758
|
-
|
|
1759
|
-
|
|
1760
|
-
|
|
1761
|
-
|
|
1762
|
-
|
|
1763
|
-
|
|
1764
|
-
|
|
1765
|
-
|
|
1858
|
+
() => {
|
|
1859
|
+
const config = getYScaleConfig(
|
|
1860
|
+
yAxisTitle,
|
|
1861
|
+
yAxisAbbreviation,
|
|
1862
|
+
yAxisScale,
|
|
1863
|
+
yAxisLabelVisibility,
|
|
1864
|
+
yAxisMin,
|
|
1865
|
+
yAxisMax
|
|
1866
|
+
);
|
|
1867
|
+
if (isStacked100) {
|
|
1868
|
+
config.y.tickFmt = (v) => `${Math.round(v * 100)}%`;
|
|
1869
|
+
config.y.range = () => [0, 1];
|
|
1870
|
+
}
|
|
1871
|
+
return config;
|
|
1872
|
+
},
|
|
1873
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1874
|
+
[yAxisTitle, yAxisAbbreviation, yAxisScale, yAxisLabelVisibility, yAxisMin, yAxisMax, isStacked100]
|
|
1766
1875
|
);
|
|
1767
1876
|
const y2ScaleConfig = (0, react_exports.useMemo)(() => {
|
|
1768
1877
|
if (y2Enabled) {
|
|
@@ -1794,10 +1903,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1794
1903
|
];
|
|
1795
1904
|
chartData.fields = filteredChartData.fields;
|
|
1796
1905
|
chartData.columns = seriesDataFormatted;
|
|
1906
|
+
const normalizedStackMode = stackMode === "stacked" || stackMode === "stacked100" ? stackMode : "auto";
|
|
1797
1907
|
const seriesOverrides = (0, react_exports.useMemo)(
|
|
1798
|
-
() => getSeriesOverrides(
|
|
1799
|
-
yFields,
|
|
1800
|
-
y2Fields,
|
|
1908
|
+
() => getSeriesOverrides({
|
|
1909
|
+
yfields: yFields,
|
|
1910
|
+
y2fields: y2Fields,
|
|
1801
1911
|
lineWidth,
|
|
1802
1912
|
overlayFields,
|
|
1803
1913
|
y2Enabled,
|
|
@@ -1806,8 +1916,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1806
1916
|
lineDashStyle,
|
|
1807
1917
|
lineDashStylesByField,
|
|
1808
1918
|
stepPosition,
|
|
1809
|
-
stepPositionsByField
|
|
1810
|
-
|
|
1919
|
+
stepPositionsByField,
|
|
1920
|
+
type: chartType,
|
|
1921
|
+
stackMode: normalizedStackMode,
|
|
1922
|
+
showLines
|
|
1923
|
+
}),
|
|
1811
1924
|
[
|
|
1812
1925
|
yFields,
|
|
1813
1926
|
y2Fields,
|
|
@@ -1819,7 +1932,10 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1819
1932
|
lineDashStyle,
|
|
1820
1933
|
lineDashStylesByField,
|
|
1821
1934
|
stepPosition,
|
|
1822
|
-
stepPositionsByField
|
|
1935
|
+
stepPositionsByField,
|
|
1936
|
+
chartType,
|
|
1937
|
+
normalizedStackMode,
|
|
1938
|
+
showLines
|
|
1823
1939
|
]
|
|
1824
1940
|
);
|
|
1825
1941
|
const chartingEventAnnotations = (0, react_exports.useMemo)(
|
|
@@ -1887,50 +2003,54 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1887
2003
|
react_exports.useEffect(() => {
|
|
1888
2004
|
additionalTooltipValuesRef.current = additionalTooltipValues;
|
|
1889
2005
|
}, [additionalTooltipValues]);
|
|
2006
|
+
const handleCrosshairMouseout = react_exports.useCallback(() => {
|
|
2007
|
+
if (onPointMouseOut && lastPayloadRef.current) {
|
|
2008
|
+
onPointMouseOut({
|
|
2009
|
+
type: "point.mouseout",
|
|
2010
|
+
originalEvent: lastOriginalEventRef.current,
|
|
2011
|
+
payload: lastPayloadRef.current
|
|
2012
|
+
});
|
|
2013
|
+
}
|
|
2014
|
+
previousMouseoverPayloadRef.current = null;
|
|
2015
|
+
}, [onPointMouseOut]);
|
|
1890
2016
|
const handleChartCrosshairChange = react_exports.useCallback(
|
|
1891
2017
|
(event) => {
|
|
1892
|
-
if (onPointMouseOver
|
|
1893
|
-
|
|
1894
|
-
|
|
1895
|
-
|
|
1896
|
-
|
|
1897
|
-
|
|
1898
|
-
|
|
1899
|
-
|
|
1900
|
-
|
|
1901
|
-
|
|
1902
|
-
|
|
1903
|
-
|
|
1904
|
-
|
|
1905
|
-
|
|
2018
|
+
if (!onPointMouseOver && !onPointMouseOut) {
|
|
2019
|
+
return;
|
|
2020
|
+
}
|
|
2021
|
+
if (!event) {
|
|
2022
|
+
handleCrosshairMouseout();
|
|
2023
|
+
return;
|
|
2024
|
+
}
|
|
2025
|
+
const payload = __spreadProps(__spreadValues({}, (0, lodash_exports.pick)(event, "value", "seriesKey", "time", "index", "seriesIndex")), {
|
|
2026
|
+
name: event.seriesKey
|
|
2027
|
+
});
|
|
2028
|
+
delete payload.seriesKey;
|
|
2029
|
+
if (event.rowContext) {
|
|
2030
|
+
Object.assign(
|
|
2031
|
+
payload,
|
|
2032
|
+
Object.keys(event.rowContext).reduce((acc, fieldName) => {
|
|
2033
|
+
acc[`row.${fieldName}.value`] = event.rowContext[fieldName];
|
|
2034
|
+
return acc;
|
|
2035
|
+
}, {})
|
|
2036
|
+
);
|
|
2037
|
+
}
|
|
2038
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
2039
|
+
if (!hasMouseoverPayloadChanged(updatedPayload, previousMouseoverPayloadRef.current)) {
|
|
2040
|
+
return;
|
|
2041
|
+
}
|
|
2042
|
+
lastPayloadRef.current = updatedPayload;
|
|
2043
|
+
lastOriginalEventRef.current = event;
|
|
2044
|
+
previousMouseoverPayloadRef.current = __spreadValues({}, updatedPayload);
|
|
2045
|
+
if (onPointMouseOver) {
|
|
2046
|
+
onPointMouseOver({
|
|
2047
|
+
type: "point.mouseover",
|
|
2048
|
+
originalEvent: event,
|
|
2049
|
+
payload: updatedPayload
|
|
1906
2050
|
});
|
|
1907
|
-
delete payload.seriesKey;
|
|
1908
|
-
if (event.rowContext) {
|
|
1909
|
-
Object.assign(
|
|
1910
|
-
payload,
|
|
1911
|
-
Object.keys(event.rowContext).reduce((acc, fieldName) => {
|
|
1912
|
-
acc[`row.${fieldName}.value`] = event.rowContext[fieldName];
|
|
1913
|
-
return acc;
|
|
1914
|
-
}, {})
|
|
1915
|
-
);
|
|
1916
|
-
}
|
|
1917
|
-
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
1918
|
-
if (!hasMouseoverPayloadChanged(updatedPayload, previousMouseoverPayloadRef.current)) {
|
|
1919
|
-
return;
|
|
1920
|
-
}
|
|
1921
|
-
lastPayloadRef.current = updatedPayload;
|
|
1922
|
-
lastOriginalEventRef.current = event;
|
|
1923
|
-
previousMouseoverPayloadRef.current = __spreadValues({}, updatedPayload);
|
|
1924
|
-
if (onPointMouseOver) {
|
|
1925
|
-
onPointMouseOver({
|
|
1926
|
-
type: "point.mouseover",
|
|
1927
|
-
originalEvent: event,
|
|
1928
|
-
payload: updatedPayload
|
|
1929
|
-
});
|
|
1930
|
-
}
|
|
1931
2051
|
}
|
|
1932
2052
|
},
|
|
1933
|
-
[onPointMouseOver, onPointMouseOut, trellisKey, trellisSplitBy]
|
|
2053
|
+
[onPointMouseOver, onPointMouseOut, trellisKey, trellisSplitBy, handleCrosshairMouseout]
|
|
1934
2054
|
);
|
|
1935
2055
|
const dataKey = `${(_b = chartData.columns[0]) == null ? void 0 : _b[0]}-${(_c = chartData.columns[0]) == null ? void 0 : _c[chartData.columns[0].length - 1]}-${(_d = chartData.columns[0]) == null ? void 0 : _d.length}`;
|
|
1936
2056
|
const memoizedChart = (0, react_exports.useMemo)(() => {
|
|
@@ -1985,7 +2105,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1985
2105
|
showXAxisLine,
|
|
1986
2106
|
showYAxisLine,
|
|
1987
2107
|
showY2AxisLine,
|
|
1988
|
-
xAxisMaxLabelParts
|
|
2108
|
+
xAxisMaxLabelParts,
|
|
2109
|
+
areaOpacity: areaOpacityForCanvas
|
|
1989
2110
|
}
|
|
1990
2111
|
));
|
|
1991
2112
|
}, [
|
|
@@ -2037,7 +2158,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2037
2158
|
showYAxisLine,
|
|
2038
2159
|
showY2AxisLine,
|
|
2039
2160
|
legendMode,
|
|
2040
|
-
xAxisMaxLabelParts
|
|
2161
|
+
xAxisMaxLabelParts,
|
|
2162
|
+
areaOpacityForCanvas
|
|
2041
2163
|
]);
|
|
2042
2164
|
const memoizedVisualization = (0, react_exports.useMemo)(() => {
|
|
2043
2165
|
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor: bgColor }, memoizedChart);
|
|
@@ -2065,6 +2187,37 @@ var TimeSeriesChartWrapper_default = TimeSeriesChartWrapper;
|
|
|
2065
2187
|
|
|
2066
2188
|
// src/common/withDashboardViz.tsx
|
|
2067
2189
|
var SanitizedTimeSeriesChartWrapper = (0, SanitizeProps_exports.withSanitizedProps)(TimeSeriesChartWrapper_default);
|
|
2190
|
+
var buildEventCallbackProps = (supportedEvents, evaluatedOptionsToUse, onEventTrigger) => {
|
|
2191
|
+
const result = {};
|
|
2192
|
+
Object.keys(supportedEvents).forEach((eventName) => {
|
|
2193
|
+
const { parentKeys, payloadKeys } = supportedEvents[eventName];
|
|
2194
|
+
const eventCallbackPropName = (0, lodash_exports.camelCase)(`on.${eventName}`);
|
|
2195
|
+
let payload = {};
|
|
2196
|
+
if (Array.isArray(payloadKeys) && payloadKeys.length) {
|
|
2197
|
+
payloadKeys.forEach((p) => {
|
|
2198
|
+
payload[p] = evaluatedOptionsToUse[p];
|
|
2199
|
+
});
|
|
2200
|
+
}
|
|
2201
|
+
result[eventCallbackPropName] = (ev) => {
|
|
2202
|
+
if (ev == null ? void 0 : ev.payload) {
|
|
2203
|
+
payload = __spreadValues({}, ev.payload);
|
|
2204
|
+
}
|
|
2205
|
+
return onEventTrigger({
|
|
2206
|
+
originalEvent: ev,
|
|
2207
|
+
payload,
|
|
2208
|
+
type: eventName
|
|
2209
|
+
});
|
|
2210
|
+
};
|
|
2211
|
+
if (parentKeys) {
|
|
2212
|
+
for (let i = parentKeys.length - 1; i >= 0; i -= 1) {
|
|
2213
|
+
const newObject = {};
|
|
2214
|
+
newObject[parentKeys[i]] = result[eventCallbackPropName];
|
|
2215
|
+
result[eventCallbackPropName] = newObject;
|
|
2216
|
+
}
|
|
2217
|
+
}
|
|
2218
|
+
});
|
|
2219
|
+
return result;
|
|
2220
|
+
};
|
|
2068
2221
|
var withDashboardViz = (opts) => {
|
|
2069
2222
|
const {
|
|
2070
2223
|
ReactViz,
|
|
@@ -2122,9 +2275,7 @@ var withDashboardViz = (opts) => {
|
|
|
2122
2275
|
const isDownsamplingEnabledByFeatureFlag = Boolean(
|
|
2123
2276
|
featureFlagContext == null ? void 0 : featureFlagContext.visualizations_enableDownsampling
|
|
2124
2277
|
);
|
|
2125
|
-
const isTrellisFeatureFlagOn = Boolean(
|
|
2126
|
-
featureFlagContext && featureFlagContext.visualizations_enableTrellis
|
|
2127
|
-
);
|
|
2278
|
+
const isTrellisFeatureFlagOn = Boolean(featureFlagContext == null ? void 0 : featureFlagContext.visualizations_enableTrellis);
|
|
2128
2279
|
const isTrellisOn = isTrellisFeatureFlagOn && ((_a = vizConfig == null ? void 0 : vizConfig.supports) == null ? void 0 : _a.includes("trellis" /* TRELLIS */)) && (options == null ? void 0 : options.splitByLayout) === "trellis" /* TRELLIS */;
|
|
2129
2280
|
const isAcceleratedRenderFeatureFlagOn = Boolean(
|
|
2130
2281
|
featureFlagContext == null ? void 0 : featureFlagContext.visualizations_enableAcceleratedRender
|
|
@@ -2289,38 +2440,12 @@ var withDashboardViz = (opts) => {
|
|
|
2289
2440
|
}
|
|
2290
2441
|
);
|
|
2291
2442
|
}
|
|
2292
|
-
const eventCallbackProps = {};
|
|
2293
|
-
|
|
2294
|
-
|
|
2295
|
-
|
|
2296
|
-
|
|
2297
|
-
|
|
2298
|
-
let payload = {};
|
|
2299
|
-
if (Array.isArray(payloadKeys) && payloadKeys.length) {
|
|
2300
|
-
payloadKeys.forEach((p) => {
|
|
2301
|
-
payload[p] = evaluatedOptionsToUse[p];
|
|
2302
|
-
});
|
|
2303
|
-
}
|
|
2304
|
-
eventCallbackProps[eventCallbackPropName] = (ev) => {
|
|
2305
|
-
if (ev == null ? void 0 : ev.payload) {
|
|
2306
|
-
payload = __spreadValues({}, ev.payload);
|
|
2307
|
-
}
|
|
2308
|
-
return onEventTrigger({
|
|
2309
|
-
originalEvent: ev,
|
|
2310
|
-
payload,
|
|
2311
|
-
type: eventName
|
|
2312
|
-
});
|
|
2313
|
-
};
|
|
2314
|
-
if (parentKeys) {
|
|
2315
|
-
for (let i = parentKeys.length - 1; i >= 0; i -= 1) {
|
|
2316
|
-
const newObject = {};
|
|
2317
|
-
newObject[parentKeys[i]] = eventCallbackProps[eventCallbackPropName];
|
|
2318
|
-
eventCallbackProps[eventCallbackPropName] = newObject;
|
|
2319
|
-
}
|
|
2320
|
-
}
|
|
2321
|
-
});
|
|
2322
|
-
}
|
|
2323
|
-
const computedVizProps = computeVizProps(__spreadProps(__spreadValues(__spreadValues(__spreadValues({}, props), evaluatedOptionsToUse), eventCallbackProps), {
|
|
2443
|
+
const eventCallbackProps = hasEventHandlers && mode === "view" && vizConfig.supports.includes("events" /* EVENTS */) ? buildEventCallbackProps(vizConfig.events, evaluatedOptionsToUse, onEventTrigger) : {};
|
|
2444
|
+
const computedVizProps = computeVizProps(__spreadProps(__spreadValues(__spreadProps(__spreadValues(__spreadValues({}, props), evaluatedOptionsToUse), {
|
|
2445
|
+
// Align option transformation with the actual renderer selected below.
|
|
2446
|
+
// This prevents canvas-only option preservation from leaking into Highcharts mode.
|
|
2447
|
+
isAcceleratedRenderOn
|
|
2448
|
+
}), eventCallbackProps), {
|
|
2324
2449
|
themeFunc
|
|
2325
2450
|
}));
|
|
2326
2451
|
if (useAsyncEvaluatedOptions && Object.keys(evaluatedOptionsToUse).length === 0) {
|