@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
package/FillerGauge.js
CHANGED
|
@@ -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/FillerGauge/index.ts
|
|
64
66
|
var FillerGauge_exports = {};
|
|
@@ -314,26 +316,59 @@ var isTrellisEnabled = ({ options, featureFlags }) => {
|
|
|
314
316
|
const { splitByLayout = visualization_schemas_exports.LAYOUT_TYPE.Off } = options;
|
|
315
317
|
return isTrellisFeatureFlagOn({ featureFlags }) && splitByLayout === visualization_schemas_exports.LAYOUT_TYPE.Trellis;
|
|
316
318
|
};
|
|
317
|
-
var
|
|
318
|
-
|
|
319
|
-
|
|
320
|
-
|
|
321
|
-
|
|
322
|
-
|
|
323
|
-
|
|
324
|
-
|
|
325
|
-
|
|
326
|
-
|
|
327
|
-
|
|
328
|
-
|
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
|
|
335
|
-
|
|
336
|
-
|
|
319
|
+
var sortByValuesBase = [
|
|
320
|
+
{ label: (0, i18n_exports._)("Result"), value: "result" },
|
|
321
|
+
{ label: (0, i18n_exports._)("Name"), value: "name" }
|
|
322
|
+
];
|
|
323
|
+
var sortByValuesWithValue = [...sortByValuesBase, { label: (0, i18n_exports._)("Value"), value: "value" }];
|
|
324
|
+
var sortByValuesWithValueAndTrend = [
|
|
325
|
+
...sortByValuesBase,
|
|
326
|
+
{ label: (0, i18n_exports._)("Value"), value: "value" },
|
|
327
|
+
{ label: (0, i18n_exports._)("Trend"), value: "trend" }
|
|
328
|
+
];
|
|
329
|
+
var makeSortRow = (sortByValues) => [
|
|
330
|
+
{
|
|
331
|
+
label: (0, i18n_exports._)("Sort by"),
|
|
332
|
+
option: "trellisSortBy",
|
|
333
|
+
editor: "editor.select",
|
|
334
|
+
editorProps: {
|
|
335
|
+
values: sortByValues
|
|
336
|
+
},
|
|
337
|
+
showEditor: isTrellisEnabled
|
|
338
|
+
},
|
|
339
|
+
{
|
|
340
|
+
label: (0, i18n_exports._)("Sort order"),
|
|
341
|
+
option: "trellisSortOrder",
|
|
342
|
+
editor: "editor.select",
|
|
343
|
+
editorProps: {
|
|
344
|
+
values: [
|
|
345
|
+
{ label: (0, i18n_exports._)("Ascending"), value: "ascending" },
|
|
346
|
+
{ label: (0, i18n_exports._)("Descending"), value: "descending" }
|
|
347
|
+
]
|
|
348
|
+
},
|
|
349
|
+
showEditor: isTrellisEnabled
|
|
350
|
+
}
|
|
351
|
+
];
|
|
352
|
+
var trellisLayoutRow = [
|
|
353
|
+
{
|
|
354
|
+
label: (0, i18n_exports._)("Trellis layout"),
|
|
355
|
+
option: "splitByLayout",
|
|
356
|
+
editor: "editor.toggle",
|
|
357
|
+
showEditor: isTrellisFeatureFlagOn
|
|
358
|
+
}
|
|
359
|
+
];
|
|
360
|
+
var trellisSplitByRow = [
|
|
361
|
+
{
|
|
362
|
+
label: (0, i18n_exports._)("Split by"),
|
|
363
|
+
option: "trellisSplitBy",
|
|
364
|
+
editor: "editor.trellisSplitBy",
|
|
365
|
+
editorProps: {
|
|
366
|
+
dataSourceKey: "primary"
|
|
367
|
+
},
|
|
368
|
+
showEditor: isTrellisEnabled
|
|
369
|
+
}
|
|
370
|
+
];
|
|
371
|
+
var trellisLayoutRows = [
|
|
337
372
|
[
|
|
338
373
|
{
|
|
339
374
|
label: (0, i18n_exports._)("Number of columns"),
|
|
@@ -377,6 +412,24 @@ var TrellisEditorConfig = [
|
|
|
377
412
|
}
|
|
378
413
|
]
|
|
379
414
|
];
|
|
415
|
+
var TrellisEditorConfig = [
|
|
416
|
+
trellisLayoutRow,
|
|
417
|
+
trellisSplitByRow,
|
|
418
|
+
makeSortRow(sortByValuesBase),
|
|
419
|
+
...trellisLayoutRows
|
|
420
|
+
];
|
|
421
|
+
var GaugeTrellisEditorConfig = [
|
|
422
|
+
trellisLayoutRow,
|
|
423
|
+
trellisSplitByRow,
|
|
424
|
+
makeSortRow(sortByValuesWithValue),
|
|
425
|
+
...trellisLayoutRows
|
|
426
|
+
];
|
|
427
|
+
var SingleValueTrellisEditorConfig = [
|
|
428
|
+
trellisLayoutRow,
|
|
429
|
+
trellisSplitByRow,
|
|
430
|
+
makeSortRow(sortByValuesWithValueAndTrend),
|
|
431
|
+
...trellisLayoutRows
|
|
432
|
+
];
|
|
380
433
|
var TimechartTrellisEditorConfig = [
|
|
381
434
|
[
|
|
382
435
|
{
|
|
@@ -384,7 +437,6 @@ var TimechartTrellisEditorConfig = [
|
|
|
384
437
|
option: "splitByLayout",
|
|
385
438
|
editor: "editor.toggle",
|
|
386
439
|
showEditor: isTrellisFeatureFlagOn,
|
|
387
|
-
// add help text for timecharts
|
|
388
440
|
editorProps: {
|
|
389
441
|
help: (0, i18n_exports._)(
|
|
390
442
|
"Y2-axis and overlay field configurations are not supported when trellis is enabled."
|
|
@@ -393,7 +445,9 @@ var TimechartTrellisEditorConfig = [
|
|
|
393
445
|
}
|
|
394
446
|
}
|
|
395
447
|
],
|
|
396
|
-
|
|
448
|
+
trellisSplitByRow,
|
|
449
|
+
makeSortRow(sortByValuesBase),
|
|
450
|
+
...trellisLayoutRows,
|
|
397
451
|
[
|
|
398
452
|
{
|
|
399
453
|
label: (0, i18n_exports._)("Shared y-axis scale"),
|
|
@@ -528,7 +582,7 @@ var editorConfig = [
|
|
|
528
582
|
},
|
|
529
583
|
{
|
|
530
584
|
label: Gauge_default.label,
|
|
531
|
-
layout: [...Gauge_default.layout, ...
|
|
585
|
+
layout: [...Gauge_default.layout, ...GaugeTrellisEditorConfig]
|
|
532
586
|
},
|
|
533
587
|
{
|
|
534
588
|
label: (0, i18n_exports._)("Color and style"),
|
|
@@ -542,7 +596,7 @@ var editorConfig = [
|
|
|
542
596
|
presets,
|
|
543
597
|
value: ({ context, options }) => {
|
|
544
598
|
const initialPreset = getInitialPreset(context, options, presets);
|
|
545
|
-
return initialPreset
|
|
599
|
+
return (initialPreset == null ? void 0 : initialPreset.label) || null;
|
|
546
600
|
}
|
|
547
601
|
}
|
|
548
602
|
}
|
|
@@ -726,7 +780,7 @@ var DefaultVizActionHandler = class {
|
|
|
726
780
|
var INITIAL_HEIGHT = 250;
|
|
727
781
|
var SplunkVisualization = class {
|
|
728
782
|
};
|
|
729
|
-
SplunkVisualization
|
|
783
|
+
__publicField(SplunkVisualization, "propTypes", {
|
|
730
784
|
/**
|
|
731
785
|
* display mode
|
|
732
786
|
*/
|
|
@@ -802,11 +856,11 @@ SplunkVisualization.propTypes = {
|
|
|
802
856
|
* A callback to request new data with updated request params
|
|
803
857
|
*/
|
|
804
858
|
onRequestParamsChange: prop_types_exports.func
|
|
805
|
-
};
|
|
859
|
+
});
|
|
806
860
|
/**
|
|
807
861
|
*
|
|
808
862
|
*/
|
|
809
|
-
SplunkVisualization
|
|
863
|
+
__publicField(SplunkVisualization, "defaults", {
|
|
810
864
|
// BaseVisualization in dashboard-visualizations uses 100% for width but 250 for height
|
|
811
865
|
width: "100%",
|
|
812
866
|
height: INITIAL_HEIGHT,
|
|
@@ -821,7 +875,7 @@ SplunkVisualization.defaults = {
|
|
|
821
875
|
onComputedProps: () => ({}),
|
|
822
876
|
loading: false,
|
|
823
877
|
onRequestParamsChange: lodash_exports.noop
|
|
824
|
-
};
|
|
878
|
+
});
|
|
825
879
|
var SplunkVisualization_default = SplunkVisualization;
|
|
826
880
|
|
|
827
881
|
// src/common/interfaces/DataSource.ts
|
|
@@ -875,9 +929,9 @@ var usePaginationParams = ({
|
|
|
875
929
|
meta,
|
|
876
930
|
onRequestParamsChange
|
|
877
931
|
}) => {
|
|
878
|
-
const totalCount = meta
|
|
879
|
-
const offset = requestParams
|
|
880
|
-
const count = requestParams
|
|
932
|
+
const totalCount = (meta == null ? void 0 : meta.totalCount) || 0;
|
|
933
|
+
const offset = (requestParams == null ? void 0 : requestParams.offset) || 0;
|
|
934
|
+
const count = requestParams == null ? void 0 : requestParams.count;
|
|
881
935
|
const totalPages = typeof count === "number" && count > 0 ? Math.ceil(totalCount / count) : 0;
|
|
882
936
|
const current = typeof count === "number" && count > 0 ? Math.floor(offset / count) + 1 : 0;
|
|
883
937
|
const isPaging = totalPages > 1 && typeof onRequestParamsChange === "function";
|
|
@@ -985,7 +1039,7 @@ var Cover = styled_components_default.div`
|
|
|
985
1039
|
bottom: 0;
|
|
986
1040
|
`;
|
|
987
1041
|
var Blocker = styled_components_default.div.attrs({
|
|
988
|
-
"data-splunk-visualization-version": "28.
|
|
1042
|
+
"data-splunk-visualization-version": "28.7.0 - d7b18cab6"
|
|
989
1043
|
})`
|
|
990
1044
|
position: relative;
|
|
991
1045
|
width: 100%;
|
|
@@ -1075,7 +1129,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
1075
1129
|
FixSizeItem,
|
|
1076
1130
|
{
|
|
1077
1131
|
"data-test": "fix-size-item",
|
|
1078
|
-
"data-splunk-visualization-version": "28.
|
|
1132
|
+
"data-splunk-visualization-version": "28.7.0 - d7b18cab6",
|
|
1079
1133
|
width,
|
|
1080
1134
|
height,
|
|
1081
1135
|
backgroundColor
|
|
@@ -1581,7 +1635,7 @@ var dataSourcesSplitByAggregationsUnknown = (dataSource) => {
|
|
|
1581
1635
|
const columns = (_d = (_c = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _c.data) == null ? void 0 : _d.columns;
|
|
1582
1636
|
let splitDataSources = null;
|
|
1583
1637
|
let errorCode = null;
|
|
1584
|
-
if (fields
|
|
1638
|
+
if (fields == null ? void 0 : fields.length) {
|
|
1585
1639
|
splitDataSources = {};
|
|
1586
1640
|
for (let i = 0; i < fields.length; i += 1) {
|
|
1587
1641
|
const fieldName = fields[i].name;
|
|
@@ -1632,7 +1686,7 @@ var dataSourcesSplitByAggregationsTimechartAndChart = (dataSource) => {
|
|
|
1632
1686
|
}
|
|
1633
1687
|
});
|
|
1634
1688
|
});
|
|
1635
|
-
} else if ((
|
|
1689
|
+
} else if (!(splitByFields == null ? void 0 : splitByFields.length) && fields.length > 1) {
|
|
1636
1690
|
splitDataSources = {};
|
|
1637
1691
|
for (let i = 1; i < fields.length; i += 1) {
|
|
1638
1692
|
const fieldName = fields[i].name;
|
|
@@ -1688,7 +1742,7 @@ var dataSourcesSplitByModeTimechart = (dataSource, splitBy) => {
|
|
|
1688
1742
|
if (fields.length > 0) {
|
|
1689
1743
|
splitByFields = (0, trellisUtils_exports.extractSplitByFieldsChartFields)(fields);
|
|
1690
1744
|
}
|
|
1691
|
-
if (splitByFields
|
|
1745
|
+
if (splitByFields == null ? void 0 : splitByFields.includes(splitBy)) {
|
|
1692
1746
|
splitDataSources = {};
|
|
1693
1747
|
const dataSourceKeys = (0, trellisUtils_exports.extractDataSourceAggregationKeysChart)(fields);
|
|
1694
1748
|
const valueKeys = [];
|
|
@@ -1719,6 +1773,68 @@ var dataSourcesSplitByModeTimechart = (dataSource, splitBy) => {
|
|
|
1719
1773
|
}
|
|
1720
1774
|
return { splitDataSources, errorCode };
|
|
1721
1775
|
};
|
|
1776
|
+
var splitRowWise = (dataSource, columns, fields, otherSplitBy, dataSourceKeys, nonDataSourceAggregations) => {
|
|
1777
|
+
const splitDataSources = {};
|
|
1778
|
+
const valueKeys = (0, lodash_exports.cloneDeep)(columns[0]);
|
|
1779
|
+
valueKeys.forEach((val, idx) => {
|
|
1780
|
+
splitDataSources[val] = (0, lodash_exports.cloneDeep)((0, lodash_exports.omit)(dataSource, ["primary.data.fields", "primary.data.columns"]));
|
|
1781
|
+
splitDataSources[val].primary.data.fields = [];
|
|
1782
|
+
if (otherSplitBy.length) {
|
|
1783
|
+
splitDataSources[val].primary.data.fields = [{ name: otherSplitBy[0] }];
|
|
1784
|
+
}
|
|
1785
|
+
if (dataSourceKeys.length) {
|
|
1786
|
+
const columnValues = [[]];
|
|
1787
|
+
splitDataSources[val].primary.data.fields = [
|
|
1788
|
+
...splitDataSources[val].primary.data.fields,
|
|
1789
|
+
...dataSourceKeys.map((k) => ({ name: k }))
|
|
1790
|
+
];
|
|
1791
|
+
dataSourceKeys.forEach(() => {
|
|
1792
|
+
columnValues.push([]);
|
|
1793
|
+
});
|
|
1794
|
+
for (let i = 1; i <= Math.ceil((fields.length - 1) / dataSourceKeys.length); i += 1) {
|
|
1795
|
+
columnValues[0].push(fields[i].splitby_value ? fields[i].splitby_value : fields[i].name);
|
|
1796
|
+
dataSourceKeys.forEach((dskey, dsIndx) => {
|
|
1797
|
+
const mul = (fields.length - 1) / dataSourceKeys.length;
|
|
1798
|
+
columnValues[dsIndx + 1].push(columns[i + dsIndx * mul][idx]);
|
|
1799
|
+
});
|
|
1800
|
+
}
|
|
1801
|
+
splitDataSources[val].primary.data.columns = columnValues;
|
|
1802
|
+
} else if (nonDataSourceAggregations.length) {
|
|
1803
|
+
const columnValues = [];
|
|
1804
|
+
fields.forEach((aggregationField, fieldIdx) => {
|
|
1805
|
+
if (fieldIdx > 0) {
|
|
1806
|
+
splitDataSources[val].primary.data.fields.push(aggregationField);
|
|
1807
|
+
columnValues.push([columns[fieldIdx][idx]]);
|
|
1808
|
+
}
|
|
1809
|
+
});
|
|
1810
|
+
splitDataSources[val].primary.data.columns = columnValues;
|
|
1811
|
+
}
|
|
1812
|
+
});
|
|
1813
|
+
return splitDataSources;
|
|
1814
|
+
};
|
|
1815
|
+
var splitColumnWise = (dataSource, columns, fields, otherSplitBy, dataSourceKeys) => {
|
|
1816
|
+
const splitDataSources = {};
|
|
1817
|
+
const valueKeys = [];
|
|
1818
|
+
for (let i = 1; i < fields.length; i += 1) {
|
|
1819
|
+
valueKeys.push(fields[i].splitby_value ? fields[i].splitby_value : fields[i].name);
|
|
1820
|
+
}
|
|
1821
|
+
valueKeys.forEach((val) => {
|
|
1822
|
+
splitDataSources[val] = (0, lodash_exports.cloneDeep)((0, lodash_exports.omit)(dataSource, ["primary.data.fields", "primary.data.columns"]));
|
|
1823
|
+
splitDataSources[val].primary.data.fields = [
|
|
1824
|
+
{ name: otherSplitBy[0] },
|
|
1825
|
+
...dataSourceKeys.map((k) => ({ name: k }))
|
|
1826
|
+
];
|
|
1827
|
+
splitDataSources[val].primary.data.columns = [[...columns[0]]];
|
|
1828
|
+
dataSourceKeys.forEach((dsKey) => {
|
|
1829
|
+
fields.forEach((field, idx) => {
|
|
1830
|
+
if (field.data_source === dsKey && (field.splitby_value === val || field.name === val)) {
|
|
1831
|
+
splitDataSources[val].primary.data.columns.push([...columns[idx]]);
|
|
1832
|
+
}
|
|
1833
|
+
});
|
|
1834
|
+
});
|
|
1835
|
+
});
|
|
1836
|
+
return splitDataSources;
|
|
1837
|
+
};
|
|
1722
1838
|
var dataSourcesSplitByModeChart = (dataSource, splitBy) => {
|
|
1723
1839
|
var _a, _b, _c, _d;
|
|
1724
1840
|
const fields = toFieldEntries((_b = (_a = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _a.data) == null ? void 0 : _b.fields);
|
|
@@ -1729,8 +1845,7 @@ var dataSourcesSplitByModeChart = (dataSource, splitBy) => {
|
|
|
1729
1845
|
if (fields.length > 0) {
|
|
1730
1846
|
splitByFields = (0, trellisUtils_exports.extractSplitByFieldsChartFields)(fields);
|
|
1731
1847
|
}
|
|
1732
|
-
if (splitByFields
|
|
1733
|
-
splitDataSources = {};
|
|
1848
|
+
if (splitByFields == null ? void 0 : splitByFields.includes(splitBy)) {
|
|
1734
1849
|
const splitByFieldIdx = splitByFields.findIndex((f) => f === splitBy);
|
|
1735
1850
|
const otherSplitBy = splitByFields.filter((f) => f !== splitBy);
|
|
1736
1851
|
const dataSourceKeys = (0, trellisUtils_exports.extractDataSourceAggregationKeysChart)(fields);
|
|
@@ -1741,71 +1856,16 @@ var dataSourcesSplitByModeChart = (dataSource, splitBy) => {
|
|
|
1741
1856
|
}
|
|
1742
1857
|
}
|
|
1743
1858
|
if (splitByFieldIdx === 0) {
|
|
1744
|
-
|
|
1745
|
-
|
|
1746
|
-
|
|
1747
|
-
|
|
1748
|
-
|
|
1749
|
-
|
|
1750
|
-
|
|
1751
|
-
|
|
1752
|
-
}
|
|
1753
|
-
if (dataSourceKeys.length) {
|
|
1754
|
-
const columnValues = [[]];
|
|
1755
|
-
splitDataSources[val].primary.data.fields = [
|
|
1756
|
-
...splitDataSources[val].primary.data.fields,
|
|
1757
|
-
...dataSourceKeys.map((k) => ({
|
|
1758
|
-
name: k
|
|
1759
|
-
}))
|
|
1760
|
-
];
|
|
1761
|
-
dataSourceKeys.forEach(() => {
|
|
1762
|
-
columnValues.push([]);
|
|
1763
|
-
});
|
|
1764
|
-
for (let i = 1; i <= Math.ceil((fields.length - 1) / dataSourceKeys.length); i += 1) {
|
|
1765
|
-
columnValues[0].push(
|
|
1766
|
-
fields[i].splitby_value ? fields[i].splitby_value : fields[i].name
|
|
1767
|
-
);
|
|
1768
|
-
dataSourceKeys.forEach((dskey, dsIndx) => {
|
|
1769
|
-
const mul = (fields.length - 1) / dataSourceKeys.length;
|
|
1770
|
-
columnValues[dsIndx + 1].push(columns[i + dsIndx * mul][idx]);
|
|
1771
|
-
});
|
|
1772
|
-
}
|
|
1773
|
-
splitDataSources[val].primary.data.columns = columnValues;
|
|
1774
|
-
} else if (nonDataSourceAggregations.length) {
|
|
1775
|
-
const columnValues = [];
|
|
1776
|
-
fields.forEach((aggregationField, fieldIdx) => {
|
|
1777
|
-
if (fieldIdx > 0) {
|
|
1778
|
-
splitDataSources[val].primary.data.fields.push(aggregationField);
|
|
1779
|
-
columnValues.push([columns[fieldIdx][idx]]);
|
|
1780
|
-
}
|
|
1781
|
-
});
|
|
1782
|
-
splitDataSources[val].primary.data.columns = columnValues;
|
|
1783
|
-
}
|
|
1784
|
-
});
|
|
1859
|
+
splitDataSources = splitRowWise(
|
|
1860
|
+
dataSource,
|
|
1861
|
+
columns,
|
|
1862
|
+
fields,
|
|
1863
|
+
otherSplitBy,
|
|
1864
|
+
dataSourceKeys,
|
|
1865
|
+
nonDataSourceAggregations
|
|
1866
|
+
);
|
|
1785
1867
|
} else {
|
|
1786
|
-
|
|
1787
|
-
for (let i = 1; i < fields.length; i += 1) {
|
|
1788
|
-
valueKeys.push(fields[i].splitby_value ? fields[i].splitby_value : fields[i].name);
|
|
1789
|
-
}
|
|
1790
|
-
valueKeys.forEach((val) => {
|
|
1791
|
-
splitDataSources[val] = (0, lodash_exports.cloneDeep)(
|
|
1792
|
-
(0, lodash_exports.omit)(dataSource, ["primary.data.fields", "primary.data.columns"])
|
|
1793
|
-
);
|
|
1794
|
-
splitDataSources[val].primary.data.fields = [
|
|
1795
|
-
{ name: otherSplitBy[0] },
|
|
1796
|
-
...dataSourceKeys.map((k) => ({
|
|
1797
|
-
name: k
|
|
1798
|
-
}))
|
|
1799
|
-
];
|
|
1800
|
-
splitDataSources[val].primary.data.columns = [[...columns[0]]];
|
|
1801
|
-
dataSourceKeys.forEach((dsKey) => {
|
|
1802
|
-
fields.forEach((field, idx) => {
|
|
1803
|
-
if (field.data_source === dsKey && (field.splitby_value === val || field.name === val)) {
|
|
1804
|
-
splitDataSources[val].primary.data.columns.push([...columns[idx]]);
|
|
1805
|
-
}
|
|
1806
|
-
});
|
|
1807
|
-
});
|
|
1808
|
-
});
|
|
1868
|
+
splitDataSources = splitColumnWise(dataSource, columns, fields, otherSplitBy, dataSourceKeys);
|
|
1809
1869
|
}
|
|
1810
1870
|
} else {
|
|
1811
1871
|
errorCode = "INVALID_SPLIT_BY_FIELD";
|
|
@@ -1823,7 +1883,7 @@ var dataSourcesSplitByModeStatsorUnknown = (dataSource, splitBy, splitMode) => {
|
|
|
1823
1883
|
splitByFields = splitMode !== trellisUtils_exports.UNKNOWN ? (0, trellisUtils_exports.extractSplitByFieldsForStats)(fields) : (0, trellisUtils_exports.extractSplitByFieldsForUnknown)(fields);
|
|
1824
1884
|
}
|
|
1825
1885
|
const splitByIndex = fields.findIndex((field) => field.name === splitBy);
|
|
1826
|
-
if (splitByFields
|
|
1886
|
+
if (splitByFields == null ? void 0 : splitByFields.includes(splitBy)) {
|
|
1827
1887
|
const splitByColumn = (_f = (_e = dataSource == null ? void 0 : dataSource.primary) == null ? void 0 : _e.data) == null ? void 0 : _f.columns[splitByIndex];
|
|
1828
1888
|
splitDataSources = {};
|
|
1829
1889
|
splitByColumn.forEach((val, idx) => {
|
|
@@ -1945,6 +2005,24 @@ var defaultImport32 = __toESM(require("@splunk/react-icons/Triangle"));
|
|
|
1945
2005
|
__reExport(Triangle_exports, require("@splunk/react-icons/Triangle"));
|
|
1946
2006
|
var Triangle_default = "default" in defaultImport32 ? defaultImport32.default : defaultImport32;
|
|
1947
2007
|
|
|
2008
|
+
// esm-externals:@splunk/visualizations-shared/propUtils
|
|
2009
|
+
var propUtils_exports = {};
|
|
2010
|
+
__export(propUtils_exports, {
|
|
2011
|
+
default: () => propUtils_default
|
|
2012
|
+
});
|
|
2013
|
+
var defaultImport33 = __toESM(require("@splunk/visualizations-shared/propUtils"));
|
|
2014
|
+
__reExport(propUtils_exports, require("@splunk/visualizations-shared/propUtils"));
|
|
2015
|
+
var propUtils_default = "default" in defaultImport33 ? defaultImport33.default : defaultImport33;
|
|
2016
|
+
|
|
2017
|
+
// esm-externals:@splunk/visualizations-shared/simpleXMLOptions
|
|
2018
|
+
var simpleXMLOptions_exports = {};
|
|
2019
|
+
__export(simpleXMLOptions_exports, {
|
|
2020
|
+
default: () => simpleXMLOptions_default
|
|
2021
|
+
});
|
|
2022
|
+
var defaultImport34 = __toESM(require("@splunk/visualizations-shared/simpleXMLOptions"));
|
|
2023
|
+
__reExport(simpleXMLOptions_exports, require("@splunk/visualizations-shared/simpleXMLOptions"));
|
|
2024
|
+
var simpleXMLOptions_default = "default" in defaultImport34 ? defaultImport34.default : defaultImport34;
|
|
2025
|
+
|
|
1948
2026
|
// src/common/chartingUtils.ts
|
|
1949
2027
|
var DEFAULT_LINE_WIDTH = 2;
|
|
1950
2028
|
var getAnnotationsForCanvas = ({
|
|
@@ -1982,9 +2060,9 @@ var shouldEnableSearchZoom = (eventHandlers = [], xField = "") => {
|
|
|
1982
2060
|
const xAxisIsTime = xField === "_time";
|
|
1983
2061
|
return !!rangeSelectEventHandler && xAxisIsTime;
|
|
1984
2062
|
};
|
|
1985
|
-
var canvasSupportedTimeSeriesCharts = ["splunk.line"];
|
|
2063
|
+
var canvasSupportedTimeSeriesCharts = ["splunk.line", "splunk.area"];
|
|
1986
2064
|
var isTimeSeriesCanvasRenderSupported = (vizConfigKey) => {
|
|
1987
|
-
return canvasSupportedTimeSeriesCharts.
|
|
2065
|
+
return canvasSupportedTimeSeriesCharts.includes(vizConfigKey);
|
|
1988
2066
|
};
|
|
1989
2067
|
var filterChartDataFromInternalFields = (chartData) => {
|
|
1990
2068
|
const { fields, columns } = chartData;
|
|
@@ -2139,46 +2217,66 @@ var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInt
|
|
|
2139
2217
|
}
|
|
2140
2218
|
return y2Config;
|
|
2141
2219
|
};
|
|
2142
|
-
var
|
|
2220
|
+
var getSeriesType = (isOverlay, isAreaChart, isStacked) => {
|
|
2221
|
+
if (isOverlay) return "line";
|
|
2222
|
+
if (!isAreaChart) return void 0;
|
|
2223
|
+
return isStacked ? "stacked-area" : "area";
|
|
2224
|
+
};
|
|
2225
|
+
var getY2Scale = (field, y2fields, overlayFields) => {
|
|
2226
|
+
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));
|
|
2227
|
+
return assignToY2 ? "y2" : "y";
|
|
2228
|
+
};
|
|
2229
|
+
var getSeriesOverrides = (opts) => {
|
|
2230
|
+
var _a;
|
|
2231
|
+
const {
|
|
2232
|
+
yfields,
|
|
2233
|
+
y2fields,
|
|
2234
|
+
lineWidth,
|
|
2235
|
+
overlayFields,
|
|
2236
|
+
y2Enabled,
|
|
2237
|
+
nullValueMode,
|
|
2238
|
+
markerDisplay,
|
|
2239
|
+
lineDashStyle,
|
|
2240
|
+
lineDashStylesByField,
|
|
2241
|
+
stepPosition,
|
|
2242
|
+
stepPositionsByField,
|
|
2243
|
+
type,
|
|
2244
|
+
stackMode,
|
|
2245
|
+
showLines
|
|
2246
|
+
} = opts;
|
|
2143
2247
|
const seriesConfig = {};
|
|
2144
2248
|
let spanGaps;
|
|
2145
|
-
let replaceNullsWithZero;
|
|
2146
2249
|
if (nullValueMode === "gaps") {
|
|
2147
2250
|
spanGaps = false;
|
|
2148
|
-
} else if (nullValueMode
|
|
2251
|
+
} else if (nullValueMode != null) {
|
|
2149
2252
|
spanGaps = true;
|
|
2150
|
-
|
|
2151
|
-
|
|
2152
|
-
}
|
|
2253
|
+
} else {
|
|
2254
|
+
spanGaps = void 0;
|
|
2153
2255
|
}
|
|
2154
|
-
|
|
2256
|
+
const replaceNullsWithZero = nullValueMode === "zero" ? true : void 0;
|
|
2257
|
+
const isAreaChart = type === "area";
|
|
2258
|
+
const isStacked = isAreaChart && (stackMode === "stacked" || stackMode === "stacked100");
|
|
2259
|
+
const areaFields = isAreaChart ? yfields.filter((f) => !(overlayFields == null ? void 0 : overlayFields.includes(f))) : yfields;
|
|
2260
|
+
const overlayFieldsInOrder = (_a = overlayFields == null ? void 0 : overlayFields.filter((f) => yfields.includes(f))) != null ? _a : [];
|
|
2261
|
+
const orderedFields = isAreaChart ? [...areaFields, ...overlayFieldsInOrder] : yfields;
|
|
2262
|
+
orderedFields.forEach((field) => {
|
|
2263
|
+
var _a2;
|
|
2264
|
+
const isOverlay = (_a2 = overlayFields == null ? void 0 : overlayFields.includes(field)) != null ? _a2 : false;
|
|
2265
|
+
const isPercent = isAreaChart && stackMode === "stacked100" && !isOverlay;
|
|
2266
|
+
const shouldHideAreaOutline = isAreaChart && showLines === false && !isOverlay;
|
|
2155
2267
|
seriesConfig[field] = {
|
|
2156
|
-
overrides: {
|
|
2268
|
+
overrides: __spreadValues({
|
|
2269
|
+
width: shouldHideAreaOutline ? 0 : lineWidth != null ? lineWidth : DEFAULT_LINE_WIDTH
|
|
2270
|
+
}, isPercent ? { stacking: { mode: "percent", group: "A" } } : {})
|
|
2157
2271
|
};
|
|
2158
|
-
|
|
2159
|
-
|
|
2160
|
-
|
|
2161
|
-
if (y2Enabled)
|
|
2162
|
-
|
|
2163
|
-
|
|
2164
|
-
|
|
2165
|
-
|
|
2166
|
-
);
|
|
2167
|
-
if (shouldAssignToY2) {
|
|
2168
|
-
seriesConfig[field].overrides.scale = "y2";
|
|
2169
|
-
} else {
|
|
2170
|
-
seriesConfig[field].overrides.scale = "y";
|
|
2171
|
-
}
|
|
2172
|
-
}
|
|
2173
|
-
if (overlayFields == null ? void 0 : overlayFields.includes(field)) {
|
|
2174
|
-
seriesConfig[field].type = "line";
|
|
2175
|
-
}
|
|
2176
|
-
if (markerDisplay !== void 0) {
|
|
2177
|
-
seriesConfig[field].markerDisplay = markerDisplay;
|
|
2178
|
-
}
|
|
2179
|
-
const fieldDashStyle = (lineDashStylesByField == null ? void 0 : lineDashStylesByField[field]) || lineDashStyle;
|
|
2180
|
-
if (fieldDashStyle) {
|
|
2181
|
-
seriesConfig[field].lineDashStyle = fieldDashStyle;
|
|
2272
|
+
const seriesType = getSeriesType(isOverlay, isAreaChart, isStacked);
|
|
2273
|
+
if (seriesType !== void 0) seriesConfig[field].type = seriesType;
|
|
2274
|
+
if (spanGaps !== void 0) seriesConfig[field].overrides.spanGaps = spanGaps;
|
|
2275
|
+
if (y2Enabled) seriesConfig[field].overrides.scale = getY2Scale(field, y2fields, overlayFields);
|
|
2276
|
+
if (markerDisplay !== void 0) seriesConfig[field].markerDisplay = markerDisplay;
|
|
2277
|
+
if (!isAreaChart || isOverlay) {
|
|
2278
|
+
const fieldDashStyle = (lineDashStylesByField == null ? void 0 : lineDashStylesByField[field]) || lineDashStyle;
|
|
2279
|
+
if (fieldDashStyle) seriesConfig[field].lineDashStyle = fieldDashStyle;
|
|
2182
2280
|
}
|
|
2183
2281
|
const hasFieldStepPosition = Object.hasOwn(stepPositionsByField || {}, field);
|
|
2184
2282
|
const fieldStepPosition = hasFieldStepPosition ? stepPositionsByField == null ? void 0 : stepPositionsByField[field] : stepPosition;
|
|
@@ -2249,8 +2347,27 @@ var TrellisTitleDiv = styled_components_default.div`
|
|
|
2249
2347
|
background-color: ${(props) => props.backgroundColor};
|
|
2250
2348
|
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.
|
|
2251
2349
|
`;
|
|
2350
|
+
var formatTrellisKey = (value) => {
|
|
2351
|
+
if (value === null || value === void 0) {
|
|
2352
|
+
return "";
|
|
2353
|
+
}
|
|
2354
|
+
if (typeof value === "string") {
|
|
2355
|
+
return value;
|
|
2356
|
+
}
|
|
2357
|
+
if (typeof value === "number" || typeof value === "boolean") {
|
|
2358
|
+
return value.toString();
|
|
2359
|
+
}
|
|
2360
|
+
if (typeof value === "symbol") {
|
|
2361
|
+
return value.toString();
|
|
2362
|
+
}
|
|
2363
|
+
try {
|
|
2364
|
+
return JSON.stringify(value);
|
|
2365
|
+
} catch (e) {
|
|
2366
|
+
return typeof value === "bigint" ? value.toString() : "";
|
|
2367
|
+
}
|
|
2368
|
+
};
|
|
2252
2369
|
var TrellisTitle = (props) => {
|
|
2253
|
-
const titleText =
|
|
2370
|
+
const titleText = formatTrellisKey(props.trellisKey);
|
|
2254
2371
|
return /* @__PURE__ */ react_exports.createElement(
|
|
2255
2372
|
TrellisTitleDiv,
|
|
2256
2373
|
{
|
|
@@ -2386,6 +2503,38 @@ var parseArrayOption = (value) => {
|
|
|
2386
2503
|
}
|
|
2387
2504
|
return void 0;
|
|
2388
2505
|
};
|
|
2506
|
+
var getAreaOpacityForCanvas = (areaOpacity) => (
|
|
2507
|
+
// Preserve legacy visualizations behavior where area opacity is squared to match charting output.
|
|
2508
|
+
areaOpacity !== void 0 && areaOpacity !== null ? __pow(areaOpacity, 2) : areaOpacity
|
|
2509
|
+
);
|
|
2510
|
+
var parseTickIntervalOption = (simpleXMLValue, canvasValue) => {
|
|
2511
|
+
if (simpleXMLValue) return Number(simpleXMLValue);
|
|
2512
|
+
if (canvasValue) return Number(canvasValue);
|
|
2513
|
+
return void 0;
|
|
2514
|
+
};
|
|
2515
|
+
var getYAxisTitles = ({
|
|
2516
|
+
y2Enabled,
|
|
2517
|
+
yFields,
|
|
2518
|
+
y2Fields,
|
|
2519
|
+
overlayFields,
|
|
2520
|
+
yAxisTitleText,
|
|
2521
|
+
yAxisTitleVisibility,
|
|
2522
|
+
y2AxisTitleText,
|
|
2523
|
+
y2AxisTitleVisibility,
|
|
2524
|
+
containerHeight
|
|
2525
|
+
}) => {
|
|
2526
|
+
const yFieldsForTitle = y2Enabled ? yFields.filter((field) => !y2Fields.includes(field)) : yFields;
|
|
2527
|
+
const fieldsForY2Axis = y2Fields.length > 0 ? y2Fields : overlayFields;
|
|
2528
|
+
const yAxisTitle = ellipsisAxisTitle(
|
|
2529
|
+
getComputedAxisTitles(yAxisTitleText, yFieldsForTitle, yAxisTitleVisibility),
|
|
2530
|
+
containerHeight
|
|
2531
|
+
);
|
|
2532
|
+
const y2AxisTitle = ellipsisAxisTitle(
|
|
2533
|
+
getComputedAxisTitles(y2AxisTitleText, fieldsForY2Axis, y2AxisTitleVisibility),
|
|
2534
|
+
containerHeight
|
|
2535
|
+
);
|
|
2536
|
+
return { yAxisTitle, y2AxisTitle };
|
|
2537
|
+
};
|
|
2389
2538
|
var TimeSeriesChartWrapper = (props) => {
|
|
2390
2539
|
var _b, _c, _d;
|
|
2391
2540
|
const _a = props, {
|
|
@@ -2475,6 +2624,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2475
2624
|
"chart.overlayFields": overlayFieldsStr,
|
|
2476
2625
|
"chart.nullValueMode": nullValueMode,
|
|
2477
2626
|
"chart.showDataLabels": showDataLabels,
|
|
2627
|
+
"chart.showLines": showLines,
|
|
2628
|
+
"chart.stackMode": stackMode,
|
|
2478
2629
|
lineWidth,
|
|
2479
2630
|
lineDashStyle,
|
|
2480
2631
|
fieldDashStyles: lineDashStylesByFieldStr,
|
|
@@ -2503,7 +2654,10 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2503
2654
|
yAxisMinorTickSize,
|
|
2504
2655
|
y2AxisMinorTickSize,
|
|
2505
2656
|
showYAxisWithZero: showYAxisWithZeroFromOptions,
|
|
2506
|
-
showY2AxisWithZero: showY2AxisWithZeroFromOptions
|
|
2657
|
+
showY2AxisWithZero: showY2AxisWithZeroFromOptions,
|
|
2658
|
+
// area only props
|
|
2659
|
+
areaFillOpacity: areaOpacity,
|
|
2660
|
+
chart: chartType
|
|
2507
2661
|
} = options;
|
|
2508
2662
|
const dataValuesDisplay = showDataLabels === "none" ? "off" : showDataLabels;
|
|
2509
2663
|
const showYAxisWithZero = showYAxisWithZeroFromProps != null ? showYAxisWithZeroFromProps : showYAxisWithZeroFromOptions;
|
|
@@ -2520,13 +2674,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2520
2674
|
const yAxisMax = parseAxisValue(yAxisMaxRaw);
|
|
2521
2675
|
const y2AxisMin = parseAxisValue(y2AxisMinRaw);
|
|
2522
2676
|
const y2AxisMax = parseAxisValue(y2AxisMaxRaw);
|
|
2523
|
-
const
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
const yAxisMajorTickIntervalNum = parseTickInterval(yAxisMajorUnitFromSimpleXML, yAxisMajorTickInterval);
|
|
2529
|
-
const y2AxisMajorTickIntervalNum = parseTickInterval(
|
|
2677
|
+
const yAxisMajorTickIntervalNum = parseTickIntervalOption(
|
|
2678
|
+
yAxisMajorUnitFromSimpleXML,
|
|
2679
|
+
yAxisMajorTickInterval
|
|
2680
|
+
);
|
|
2681
|
+
const y2AxisMajorTickIntervalNum = parseTickIntervalOption(
|
|
2530
2682
|
y2AxisMajorUnitFromSimpleXML,
|
|
2531
2683
|
y2AxisMajorTickInterval
|
|
2532
2684
|
);
|
|
@@ -2535,6 +2687,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2535
2687
|
const y2AxisMajorTickSizeNum = y2AxisMajorTickSize != null ? Number(y2AxisMajorTickSize) : void 0;
|
|
2536
2688
|
const yAxisMinorTickSizeNum = yAxisMinorTickSize != null ? Number(yAxisMinorTickSize) : void 0;
|
|
2537
2689
|
const y2AxisMinorTickSizeNum = y2AxisMinorTickSize != null ? Number(y2AxisMinorTickSize) : void 0;
|
|
2690
|
+
const areaOpacityForCanvas = getAreaOpacityForCanvas(areaOpacity);
|
|
2538
2691
|
const seriesColors = seriesColorsStr ? JSON.parse(seriesColorsStr) : void 0;
|
|
2539
2692
|
const seriesColorsByField = fieldColors ? JSON.parse(fieldColors) : void 0;
|
|
2540
2693
|
const lineDashStylesByField = lineDashStylesByFieldStr ? JSON.parse(lineDashStylesByFieldStr) : void 0;
|
|
@@ -2565,26 +2718,40 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2565
2718
|
);
|
|
2566
2719
|
let xAxisTitle = getComputedAxisTitles(xAxisTitleText, [xField], xAxisTitleVisibility);
|
|
2567
2720
|
xAxisTitle = ellipsisAxisTitle(xAxisTitle, containerWidth);
|
|
2568
|
-
const
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
|
|
2573
|
-
|
|
2721
|
+
const { yAxisTitle, y2AxisTitle } = getYAxisTitles({
|
|
2722
|
+
y2Enabled,
|
|
2723
|
+
yFields,
|
|
2724
|
+
y2Fields,
|
|
2725
|
+
overlayFields,
|
|
2726
|
+
yAxisTitleText,
|
|
2727
|
+
yAxisTitleVisibility,
|
|
2728
|
+
y2AxisTitleText,
|
|
2729
|
+
y2AxisTitleVisibility,
|
|
2730
|
+
containerHeight
|
|
2731
|
+
});
|
|
2574
2732
|
const xScaleConfig = (0, react_exports.useMemo)(
|
|
2575
2733
|
() => getXScaleConfig(xAxisTitle, xAxisLabelVisibility, xAxisLabelRotation),
|
|
2576
2734
|
[xAxisTitle, xAxisLabelVisibility, xAxisLabelRotation]
|
|
2577
2735
|
);
|
|
2736
|
+
const isStacked100 = stackMode === "stacked100";
|
|
2578
2737
|
const yScaleConfig = (0, react_exports.useMemo)(
|
|
2579
|
-
() =>
|
|
2580
|
-
|
|
2581
|
-
|
|
2582
|
-
|
|
2583
|
-
|
|
2584
|
-
|
|
2585
|
-
|
|
2586
|
-
|
|
2587
|
-
|
|
2738
|
+
() => {
|
|
2739
|
+
const config3 = getYScaleConfig(
|
|
2740
|
+
yAxisTitle,
|
|
2741
|
+
yAxisAbbreviation,
|
|
2742
|
+
yAxisScale,
|
|
2743
|
+
yAxisLabelVisibility,
|
|
2744
|
+
yAxisMin,
|
|
2745
|
+
yAxisMax
|
|
2746
|
+
);
|
|
2747
|
+
if (isStacked100) {
|
|
2748
|
+
config3.y.tickFmt = (v) => `${Math.round(v * 100)}%`;
|
|
2749
|
+
config3.y.range = () => [0, 1];
|
|
2750
|
+
}
|
|
2751
|
+
return config3;
|
|
2752
|
+
},
|
|
2753
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2754
|
+
[yAxisTitle, yAxisAbbreviation, yAxisScale, yAxisLabelVisibility, yAxisMin, yAxisMax, isStacked100]
|
|
2588
2755
|
);
|
|
2589
2756
|
const y2ScaleConfig = (0, react_exports.useMemo)(() => {
|
|
2590
2757
|
if (y2Enabled) {
|
|
@@ -2616,10 +2783,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2616
2783
|
];
|
|
2617
2784
|
chartData.fields = filteredChartData.fields;
|
|
2618
2785
|
chartData.columns = seriesDataFormatted;
|
|
2786
|
+
const normalizedStackMode = stackMode === "stacked" || stackMode === "stacked100" ? stackMode : "auto";
|
|
2619
2787
|
const seriesOverrides = (0, react_exports.useMemo)(
|
|
2620
|
-
() => getSeriesOverrides(
|
|
2621
|
-
yFields,
|
|
2622
|
-
y2Fields,
|
|
2788
|
+
() => getSeriesOverrides({
|
|
2789
|
+
yfields: yFields,
|
|
2790
|
+
y2fields: y2Fields,
|
|
2623
2791
|
lineWidth,
|
|
2624
2792
|
overlayFields,
|
|
2625
2793
|
y2Enabled,
|
|
@@ -2628,8 +2796,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2628
2796
|
lineDashStyle,
|
|
2629
2797
|
lineDashStylesByField,
|
|
2630
2798
|
stepPosition,
|
|
2631
|
-
stepPositionsByField
|
|
2632
|
-
|
|
2799
|
+
stepPositionsByField,
|
|
2800
|
+
type: chartType,
|
|
2801
|
+
stackMode: normalizedStackMode,
|
|
2802
|
+
showLines
|
|
2803
|
+
}),
|
|
2633
2804
|
[
|
|
2634
2805
|
yFields,
|
|
2635
2806
|
y2Fields,
|
|
@@ -2641,7 +2812,10 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2641
2812
|
lineDashStyle,
|
|
2642
2813
|
lineDashStylesByField,
|
|
2643
2814
|
stepPosition,
|
|
2644
|
-
stepPositionsByField
|
|
2815
|
+
stepPositionsByField,
|
|
2816
|
+
chartType,
|
|
2817
|
+
normalizedStackMode,
|
|
2818
|
+
showLines
|
|
2645
2819
|
]
|
|
2646
2820
|
);
|
|
2647
2821
|
const chartingEventAnnotations = (0, react_exports.useMemo)(
|
|
@@ -2709,50 +2883,54 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2709
2883
|
react_exports.useEffect(() => {
|
|
2710
2884
|
additionalTooltipValuesRef.current = additionalTooltipValues;
|
|
2711
2885
|
}, [additionalTooltipValues]);
|
|
2886
|
+
const handleCrosshairMouseout = react_exports.useCallback(() => {
|
|
2887
|
+
if (onPointMouseOut && lastPayloadRef.current) {
|
|
2888
|
+
onPointMouseOut({
|
|
2889
|
+
type: "point.mouseout",
|
|
2890
|
+
originalEvent: lastOriginalEventRef.current,
|
|
2891
|
+
payload: lastPayloadRef.current
|
|
2892
|
+
});
|
|
2893
|
+
}
|
|
2894
|
+
previousMouseoverPayloadRef.current = null;
|
|
2895
|
+
}, [onPointMouseOut]);
|
|
2712
2896
|
const handleChartCrosshairChange = react_exports.useCallback(
|
|
2713
2897
|
(event) => {
|
|
2714
|
-
if (onPointMouseOver
|
|
2715
|
-
|
|
2716
|
-
|
|
2717
|
-
|
|
2718
|
-
|
|
2719
|
-
|
|
2720
|
-
|
|
2721
|
-
|
|
2722
|
-
|
|
2723
|
-
|
|
2724
|
-
|
|
2725
|
-
|
|
2726
|
-
|
|
2727
|
-
|
|
2898
|
+
if (!onPointMouseOver && !onPointMouseOut) {
|
|
2899
|
+
return;
|
|
2900
|
+
}
|
|
2901
|
+
if (!event) {
|
|
2902
|
+
handleCrosshairMouseout();
|
|
2903
|
+
return;
|
|
2904
|
+
}
|
|
2905
|
+
const payload = __spreadProps(__spreadValues({}, (0, lodash_exports.pick)(event, "value", "seriesKey", "time", "index", "seriesIndex")), {
|
|
2906
|
+
name: event.seriesKey
|
|
2907
|
+
});
|
|
2908
|
+
delete payload.seriesKey;
|
|
2909
|
+
if (event.rowContext) {
|
|
2910
|
+
Object.assign(
|
|
2911
|
+
payload,
|
|
2912
|
+
Object.keys(event.rowContext).reduce((acc, fieldName) => {
|
|
2913
|
+
acc[`row.${fieldName}.value`] = event.rowContext[fieldName];
|
|
2914
|
+
return acc;
|
|
2915
|
+
}, {})
|
|
2916
|
+
);
|
|
2917
|
+
}
|
|
2918
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
2919
|
+
if (!hasMouseoverPayloadChanged(updatedPayload, previousMouseoverPayloadRef.current)) {
|
|
2920
|
+
return;
|
|
2921
|
+
}
|
|
2922
|
+
lastPayloadRef.current = updatedPayload;
|
|
2923
|
+
lastOriginalEventRef.current = event;
|
|
2924
|
+
previousMouseoverPayloadRef.current = __spreadValues({}, updatedPayload);
|
|
2925
|
+
if (onPointMouseOver) {
|
|
2926
|
+
onPointMouseOver({
|
|
2927
|
+
type: "point.mouseover",
|
|
2928
|
+
originalEvent: event,
|
|
2929
|
+
payload: updatedPayload
|
|
2728
2930
|
});
|
|
2729
|
-
delete payload.seriesKey;
|
|
2730
|
-
if (event.rowContext) {
|
|
2731
|
-
Object.assign(
|
|
2732
|
-
payload,
|
|
2733
|
-
Object.keys(event.rowContext).reduce((acc, fieldName) => {
|
|
2734
|
-
acc[`row.${fieldName}.value`] = event.rowContext[fieldName];
|
|
2735
|
-
return acc;
|
|
2736
|
-
}, {})
|
|
2737
|
-
);
|
|
2738
|
-
}
|
|
2739
|
-
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
2740
|
-
if (!hasMouseoverPayloadChanged(updatedPayload, previousMouseoverPayloadRef.current)) {
|
|
2741
|
-
return;
|
|
2742
|
-
}
|
|
2743
|
-
lastPayloadRef.current = updatedPayload;
|
|
2744
|
-
lastOriginalEventRef.current = event;
|
|
2745
|
-
previousMouseoverPayloadRef.current = __spreadValues({}, updatedPayload);
|
|
2746
|
-
if (onPointMouseOver) {
|
|
2747
|
-
onPointMouseOver({
|
|
2748
|
-
type: "point.mouseover",
|
|
2749
|
-
originalEvent: event,
|
|
2750
|
-
payload: updatedPayload
|
|
2751
|
-
});
|
|
2752
|
-
}
|
|
2753
2931
|
}
|
|
2754
2932
|
},
|
|
2755
|
-
[onPointMouseOver, onPointMouseOut, trellisKey, trellisSplitBy]
|
|
2933
|
+
[onPointMouseOver, onPointMouseOut, trellisKey, trellisSplitBy, handleCrosshairMouseout]
|
|
2756
2934
|
);
|
|
2757
2935
|
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}`;
|
|
2758
2936
|
const memoizedChart = (0, react_exports.useMemo)(() => {
|
|
@@ -2807,7 +2985,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2807
2985
|
showXAxisLine,
|
|
2808
2986
|
showYAxisLine,
|
|
2809
2987
|
showY2AxisLine,
|
|
2810
|
-
xAxisMaxLabelParts
|
|
2988
|
+
xAxisMaxLabelParts,
|
|
2989
|
+
areaOpacity: areaOpacityForCanvas
|
|
2811
2990
|
}
|
|
2812
2991
|
));
|
|
2813
2992
|
}, [
|
|
@@ -2859,7 +3038,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2859
3038
|
showYAxisLine,
|
|
2860
3039
|
showY2AxisLine,
|
|
2861
3040
|
legendMode,
|
|
2862
|
-
xAxisMaxLabelParts
|
|
3041
|
+
xAxisMaxLabelParts,
|
|
3042
|
+
areaOpacityForCanvas
|
|
2863
3043
|
]);
|
|
2864
3044
|
const memoizedVisualization = (0, react_exports.useMemo)(() => {
|
|
2865
3045
|
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor: bgColor }, memoizedChart);
|
|
@@ -2887,6 +3067,37 @@ var TimeSeriesChartWrapper_default = TimeSeriesChartWrapper;
|
|
|
2887
3067
|
|
|
2888
3068
|
// src/common/withDashboardViz.tsx
|
|
2889
3069
|
var SanitizedTimeSeriesChartWrapper = (0, SanitizeProps_exports.withSanitizedProps)(TimeSeriesChartWrapper_default);
|
|
3070
|
+
var buildEventCallbackProps = (supportedEvents, evaluatedOptionsToUse, onEventTrigger) => {
|
|
3071
|
+
const result = {};
|
|
3072
|
+
Object.keys(supportedEvents).forEach((eventName) => {
|
|
3073
|
+
const { parentKeys, payloadKeys } = supportedEvents[eventName];
|
|
3074
|
+
const eventCallbackPropName = (0, lodash_exports.camelCase)(`on.${eventName}`);
|
|
3075
|
+
let payload = {};
|
|
3076
|
+
if (Array.isArray(payloadKeys) && payloadKeys.length) {
|
|
3077
|
+
payloadKeys.forEach((p) => {
|
|
3078
|
+
payload[p] = evaluatedOptionsToUse[p];
|
|
3079
|
+
});
|
|
3080
|
+
}
|
|
3081
|
+
result[eventCallbackPropName] = (ev) => {
|
|
3082
|
+
if (ev == null ? void 0 : ev.payload) {
|
|
3083
|
+
payload = __spreadValues({}, ev.payload);
|
|
3084
|
+
}
|
|
3085
|
+
return onEventTrigger({
|
|
3086
|
+
originalEvent: ev,
|
|
3087
|
+
payload,
|
|
3088
|
+
type: eventName
|
|
3089
|
+
});
|
|
3090
|
+
};
|
|
3091
|
+
if (parentKeys) {
|
|
3092
|
+
for (let i = parentKeys.length - 1; i >= 0; i -= 1) {
|
|
3093
|
+
const newObject = {};
|
|
3094
|
+
newObject[parentKeys[i]] = result[eventCallbackPropName];
|
|
3095
|
+
result[eventCallbackPropName] = newObject;
|
|
3096
|
+
}
|
|
3097
|
+
}
|
|
3098
|
+
});
|
|
3099
|
+
return result;
|
|
3100
|
+
};
|
|
2890
3101
|
var withDashboardViz = (opts) => {
|
|
2891
3102
|
const {
|
|
2892
3103
|
ReactViz,
|
|
@@ -2944,9 +3155,7 @@ var withDashboardViz = (opts) => {
|
|
|
2944
3155
|
const isDownsamplingEnabledByFeatureFlag = Boolean(
|
|
2945
3156
|
featureFlagContext == null ? void 0 : featureFlagContext.visualizations_enableDownsampling
|
|
2946
3157
|
);
|
|
2947
|
-
const isTrellisFeatureFlagOn2 = Boolean(
|
|
2948
|
-
featureFlagContext && featureFlagContext.visualizations_enableTrellis
|
|
2949
|
-
);
|
|
3158
|
+
const isTrellisFeatureFlagOn2 = Boolean(featureFlagContext == null ? void 0 : featureFlagContext.visualizations_enableTrellis);
|
|
2950
3159
|
const isTrellisOn = isTrellisFeatureFlagOn2 && ((_a = vizConfig == null ? void 0 : vizConfig.supports) == null ? void 0 : _a.includes("trellis" /* TRELLIS */)) && (options == null ? void 0 : options.splitByLayout) === "trellis" /* TRELLIS */;
|
|
2951
3160
|
const isAcceleratedRenderFeatureFlagOn = Boolean(
|
|
2952
3161
|
featureFlagContext == null ? void 0 : featureFlagContext.visualizations_enableAcceleratedRender
|
|
@@ -3111,38 +3320,12 @@ var withDashboardViz = (opts) => {
|
|
|
3111
3320
|
}
|
|
3112
3321
|
);
|
|
3113
3322
|
}
|
|
3114
|
-
const eventCallbackProps = {};
|
|
3115
|
-
|
|
3116
|
-
|
|
3117
|
-
|
|
3118
|
-
|
|
3119
|
-
|
|
3120
|
-
let payload = {};
|
|
3121
|
-
if (Array.isArray(payloadKeys) && payloadKeys.length) {
|
|
3122
|
-
payloadKeys.forEach((p) => {
|
|
3123
|
-
payload[p] = evaluatedOptionsToUse[p];
|
|
3124
|
-
});
|
|
3125
|
-
}
|
|
3126
|
-
eventCallbackProps[eventCallbackPropName] = (ev) => {
|
|
3127
|
-
if (ev == null ? void 0 : ev.payload) {
|
|
3128
|
-
payload = __spreadValues({}, ev.payload);
|
|
3129
|
-
}
|
|
3130
|
-
return onEventTrigger({
|
|
3131
|
-
originalEvent: ev,
|
|
3132
|
-
payload,
|
|
3133
|
-
type: eventName
|
|
3134
|
-
});
|
|
3135
|
-
};
|
|
3136
|
-
if (parentKeys) {
|
|
3137
|
-
for (let i = parentKeys.length - 1; i >= 0; i -= 1) {
|
|
3138
|
-
const newObject = {};
|
|
3139
|
-
newObject[parentKeys[i]] = eventCallbackProps[eventCallbackPropName];
|
|
3140
|
-
eventCallbackProps[eventCallbackPropName] = newObject;
|
|
3141
|
-
}
|
|
3142
|
-
}
|
|
3143
|
-
});
|
|
3144
|
-
}
|
|
3145
|
-
const computedVizProps = computeVizProps2(__spreadProps(__spreadValues(__spreadValues(__spreadValues({}, props), evaluatedOptionsToUse), eventCallbackProps), {
|
|
3323
|
+
const eventCallbackProps = hasEventHandlers && mode === "view" && vizConfig.supports.includes("events" /* EVENTS */) ? buildEventCallbackProps(vizConfig.events, evaluatedOptionsToUse, onEventTrigger) : {};
|
|
3324
|
+
const computedVizProps = computeVizProps2(__spreadProps(__spreadValues(__spreadProps(__spreadValues(__spreadValues({}, props), evaluatedOptionsToUse), {
|
|
3325
|
+
// Align option transformation with the actual renderer selected below.
|
|
3326
|
+
// This prevents canvas-only option preservation from leaking into Highcharts mode.
|
|
3327
|
+
isAcceleratedRenderOn
|
|
3328
|
+
}), eventCallbackProps), {
|
|
3146
3329
|
themeFunc
|
|
3147
3330
|
}));
|
|
3148
3331
|
if (useAsyncEvaluatedOptions && Object.keys(evaluatedOptionsToUse).length === 0) {
|
|
@@ -3176,9 +3359,9 @@ var colorConstants_exports = {};
|
|
|
3176
3359
|
__export(colorConstants_exports, {
|
|
3177
3360
|
default: () => colorConstants_default
|
|
3178
3361
|
});
|
|
3179
|
-
var
|
|
3362
|
+
var defaultImport35 = __toESM(require("@splunk/visualizations-shared/colorConstants"));
|
|
3180
3363
|
__reExport(colorConstants_exports, require("@splunk/visualizations-shared/colorConstants"));
|
|
3181
|
-
var colorConstants_default = "default" in
|
|
3364
|
+
var colorConstants_default = "default" in defaultImport35 ? defaultImport35.default : defaultImport35;
|
|
3182
3365
|
|
|
3183
3366
|
// src/common/gaugeUtils.ts
|
|
3184
3367
|
var GAUGE_THICKNESS = 50;
|
|
@@ -3675,9 +3858,9 @@ var format_exports = {};
|
|
|
3675
3858
|
__export(format_exports, {
|
|
3676
3859
|
default: () => format_default
|
|
3677
3860
|
});
|
|
3678
|
-
var
|
|
3861
|
+
var defaultImport36 = __toESM(require("@splunk/ui-utils/format"));
|
|
3679
3862
|
__reExport(format_exports, require("@splunk/ui-utils/format"));
|
|
3680
|
-
var format_default = "default" in
|
|
3863
|
+
var format_default = "default" in defaultImport36 ? defaultImport36.default : defaultImport36;
|
|
3681
3864
|
|
|
3682
3865
|
// src/common/GaugeValueMarker.jsx
|
|
3683
3866
|
var MARKER_THICKNESS = 15;
|
|
@@ -4022,29 +4205,76 @@ var Paginator_exports = {};
|
|
|
4022
4205
|
__export(Paginator_exports, {
|
|
4023
4206
|
default: () => Paginator_default
|
|
4024
4207
|
});
|
|
4025
|
-
var
|
|
4208
|
+
var defaultImport37 = __toESM(require("@splunk/react-ui/Paginator"));
|
|
4026
4209
|
__reExport(Paginator_exports, require("@splunk/react-ui/Paginator"));
|
|
4027
|
-
var Paginator_default = "default" in
|
|
4210
|
+
var Paginator_default = "default" in defaultImport37 ? defaultImport37.default : defaultImport37;
|
|
4028
4211
|
|
|
4029
4212
|
// esm-externals:@splunk/themes
|
|
4030
4213
|
var themes_exports = {};
|
|
4031
4214
|
__export(themes_exports, {
|
|
4032
4215
|
default: () => themes_default
|
|
4033
4216
|
});
|
|
4034
|
-
var
|
|
4217
|
+
var defaultImport38 = __toESM(require("@splunk/themes"));
|
|
4035
4218
|
__reExport(themes_exports, require("@splunk/themes"));
|
|
4036
|
-
var themes_default = "default" in
|
|
4219
|
+
var themes_default = "default" in defaultImport38 ? defaultImport38.default : defaultImport38;
|
|
4037
4220
|
|
|
4038
4221
|
// esm-externals:@splunk/themes/useSplunkTheme
|
|
4039
4222
|
var useSplunkTheme_exports = {};
|
|
4040
4223
|
__export(useSplunkTheme_exports, {
|
|
4041
4224
|
default: () => useSplunkTheme_default
|
|
4042
4225
|
});
|
|
4043
|
-
var
|
|
4226
|
+
var defaultImport39 = __toESM(require("@splunk/themes/useSplunkTheme"));
|
|
4044
4227
|
__reExport(useSplunkTheme_exports, require("@splunk/themes/useSplunkTheme"));
|
|
4045
|
-
var useSplunkTheme_default = "default" in
|
|
4228
|
+
var useSplunkTheme_default = "default" in defaultImport39 ? defaultImport39.default : defaultImport39;
|
|
4046
4229
|
|
|
4047
4230
|
// src/common/hocs/withTrellis.tsx
|
|
4231
|
+
var evaluatePanelOption = (panelDataSources, allOptions, optionKey, vizContext) => {
|
|
4232
|
+
try {
|
|
4233
|
+
const evaluated = Options_exports.Options.evaluate({ context: vizContext, options: allOptions }, panelDataSources);
|
|
4234
|
+
const num = Number(evaluated == null ? void 0 : evaluated[optionKey]);
|
|
4235
|
+
return Number.isNaN(num) ? Number.NaN : num;
|
|
4236
|
+
} catch (e) {
|
|
4237
|
+
return Number.NaN;
|
|
4238
|
+
}
|
|
4239
|
+
};
|
|
4240
|
+
var sortTrellisKeys = (keys, trellisSortBy, trellisSortOrder, modifiedDataSourceBySplitBy, mergedOptions, vizContext) => {
|
|
4241
|
+
if (trellisSortBy === "name") {
|
|
4242
|
+
keys.sort((a, b) => {
|
|
4243
|
+
const cmp = a.localeCompare(b, void 0, { numeric: true, sensitivity: "base" });
|
|
4244
|
+
return trellisSortOrder === "descending" ? -cmp : cmp;
|
|
4245
|
+
});
|
|
4246
|
+
} else if (trellisSortBy === "value" || trellisSortBy === "trend") {
|
|
4247
|
+
let optionKey;
|
|
4248
|
+
if (trellisSortBy === "trend") {
|
|
4249
|
+
optionKey = "trendValue";
|
|
4250
|
+
} else {
|
|
4251
|
+
optionKey = mergedOptions.value !== void 0 ? "value" : "majorValue";
|
|
4252
|
+
}
|
|
4253
|
+
keys.sort((a, b) => {
|
|
4254
|
+
const valA = evaluatePanelOption(
|
|
4255
|
+
modifiedDataSourceBySplitBy[a],
|
|
4256
|
+
mergedOptions,
|
|
4257
|
+
optionKey,
|
|
4258
|
+
vizContext
|
|
4259
|
+
);
|
|
4260
|
+
const valB = evaluatePanelOption(
|
|
4261
|
+
modifiedDataSourceBySplitBy[b],
|
|
4262
|
+
mergedOptions,
|
|
4263
|
+
optionKey,
|
|
4264
|
+
vizContext
|
|
4265
|
+
);
|
|
4266
|
+
const nanA = Number.isNaN(valA);
|
|
4267
|
+
const nanB = Number.isNaN(valB);
|
|
4268
|
+
if (nanA && nanB) return 0;
|
|
4269
|
+
if (nanA) return 1;
|
|
4270
|
+
if (nanB) return -1;
|
|
4271
|
+
const cmp = valA - valB;
|
|
4272
|
+
return trellisSortOrder === "descending" ? -cmp : cmp;
|
|
4273
|
+
});
|
|
4274
|
+
} else if (trellisSortOrder === "descending") {
|
|
4275
|
+
keys.reverse();
|
|
4276
|
+
}
|
|
4277
|
+
};
|
|
4048
4278
|
var TrellisContainer = styled_components_default.div`
|
|
4049
4279
|
overflow: hidden;
|
|
4050
4280
|
display: flex;
|
|
@@ -4089,6 +4319,14 @@ var showErrorMessage = (errorCode, width, height) => {
|
|
|
4089
4319
|
}
|
|
4090
4320
|
return /* @__PURE__ */ react_exports.createElement(Message_default, { width, height, message: (0, i18n_exports._)("Error render in trellis"), level: "info" });
|
|
4091
4321
|
};
|
|
4322
|
+
var resolveTrellisSplitBy = (trellisSplitBy, fields) => {
|
|
4323
|
+
var _a;
|
|
4324
|
+
if (trellisSplitBy && trellisSplitBy.length > 0) {
|
|
4325
|
+
return trellisSplitBy;
|
|
4326
|
+
}
|
|
4327
|
+
const splitByPossibleFields = (0, trellisUtils_exports.getAllPossibleSplitByFields)(fields);
|
|
4328
|
+
return ((_a = splitByPossibleFields.fields) == null ? void 0 : _a.length) ? splitByPossibleFields.fields[0] : AGGREGATIONS;
|
|
4329
|
+
};
|
|
4092
4330
|
var withTrellis = (Viz) => {
|
|
4093
4331
|
const VizWithTrellis = (opts) => {
|
|
4094
4332
|
const cachedHandleResize = react_exports.useCallback((w, h) => {
|
|
@@ -4097,7 +4335,7 @@ var withTrellis = (Viz) => {
|
|
|
4097
4335
|
}, []);
|
|
4098
4336
|
const [containerWidth, setContainerWidth] = react_exports.useState(Number(opts.width));
|
|
4099
4337
|
const [containerHeight, setContainerHeight] = react_exports.useState(Number(opts.height));
|
|
4100
|
-
const _a = opts, { options = {}, height, width } = _a, otherProps = __objRest(_a, ["options", "height", "width"]);
|
|
4338
|
+
const _a = opts, { options = {}, context = {}, height, width } = _a, otherProps = __objRest(_a, ["options", "context", "height", "width"]);
|
|
4101
4339
|
const defaultOptions = (0, JSONSchemaUtils_exports.pickFieldFromJSONSchema)(Viz.config.optionsSchema, "default");
|
|
4102
4340
|
const mergedOptions = (0, hocUtils_exports.deepMergeWithArrayPrimitiveOverrides)({}, options, defaultOptions);
|
|
4103
4341
|
const {
|
|
@@ -4107,6 +4345,8 @@ var withTrellis = (Viz) => {
|
|
|
4107
4345
|
trellisRowHeight,
|
|
4108
4346
|
splitByLayout,
|
|
4109
4347
|
trellisSplitBy,
|
|
4348
|
+
trellisSortBy,
|
|
4349
|
+
trellisSortOrder,
|
|
4110
4350
|
trellisSharedScale,
|
|
4111
4351
|
stackMode,
|
|
4112
4352
|
yAxisMin,
|
|
@@ -4175,7 +4415,7 @@ var withTrellis = (Viz) => {
|
|
|
4175
4415
|
}, [pageCount, trellisSplitBy]);
|
|
4176
4416
|
(0, react_exports.useEffect)(() => {
|
|
4177
4417
|
updateDataDisplay(pageNum);
|
|
4178
|
-
}, [columns, fields, trellisSplitBy, pageNum, splitByLayout]);
|
|
4418
|
+
}, [columns, fields, trellisSplitBy, trellisSortBy, trellisSortOrder, pageNum, splitByLayout]);
|
|
4179
4419
|
const handlePageChange = (0, react_exports.useCallback)(
|
|
4180
4420
|
(event, { page }) => {
|
|
4181
4421
|
setPageNum(page);
|
|
@@ -4183,9 +4423,7 @@ var withTrellis = (Viz) => {
|
|
|
4183
4423
|
[pageNum, pagedData]
|
|
4184
4424
|
);
|
|
4185
4425
|
const featureFlagContext = react_exports.useContext(FeatureFlagContext_default);
|
|
4186
|
-
const isTrellisFeatureFlagOn2 = Boolean(
|
|
4187
|
-
featureFlagContext && featureFlagContext.visualizations_enableTrellis
|
|
4188
|
-
);
|
|
4426
|
+
const isTrellisFeatureFlagOn2 = Boolean(featureFlagContext == null ? void 0 : featureFlagContext.visualizations_enableTrellis);
|
|
4189
4427
|
if (!isTrellisFeatureFlagOn2 || !splitByLayout || splitByLayout !== visualization_schemas_exports.LAYOUT_TYPE.Trellis) {
|
|
4190
4428
|
return /* @__PURE__ */ react_exports.createElement(Viz, __spreadValues({}, opts));
|
|
4191
4429
|
}
|
|
@@ -4193,14 +4431,9 @@ var withTrellis = (Viz) => {
|
|
|
4193
4431
|
if (noColumns || noFields) {
|
|
4194
4432
|
return /* @__PURE__ */ react_exports.createElement(Message_default, { width, height, message: (0, i18n_exports._)("Loading"), level: "info" });
|
|
4195
4433
|
}
|
|
4196
|
-
|
|
4197
|
-
if (!trellisSplitBy || trellisSplitBy.length === 0) {
|
|
4198
|
-
const splitByPossibleFields = (0, trellisUtils_exports.getAllPossibleSplitByFields)(fields);
|
|
4199
|
-
currTrellisSplitBy = splitByPossibleFields.fields && splitByPossibleFields.fields.length ? splitByPossibleFields.fields[0] : AGGREGATIONS;
|
|
4200
|
-
}
|
|
4201
|
-
const splitMode = (0, trellisUtils_exports.getTrellisDataSplitterMode)(fields);
|
|
4434
|
+
const currTrellisSplitBy = resolveTrellisSplitBy(trellisSplitBy, fields);
|
|
4202
4435
|
const dataSplitResult = getTrellisDataSourcesBySplitMode(
|
|
4203
|
-
|
|
4436
|
+
(0, trellisUtils_exports.getTrellisDataSplitterMode)(fields),
|
|
4204
4437
|
dataSources,
|
|
4205
4438
|
currTrellisSplitBy
|
|
4206
4439
|
);
|
|
@@ -4209,12 +4442,19 @@ var withTrellis = (Viz) => {
|
|
|
4209
4442
|
if (!modifiedDataSourceBySplitBy || Object.keys(modifiedDataSourceBySplitBy).length === 0 || dataSplitErrorCode) {
|
|
4210
4443
|
return showErrorMessage(dataSplitErrorCode, width, height);
|
|
4211
4444
|
}
|
|
4212
|
-
const splitByKeysModified =
|
|
4213
|
-
|
|
4214
|
-
|
|
4215
|
-
|
|
4216
|
-
|
|
4217
|
-
|
|
4445
|
+
const splitByKeysModified = Object.keys(modifiedDataSourceBySplitBy);
|
|
4446
|
+
const vizContext = (0, lodash_exports.defaultsDeep)({}, context, Viz.config.defaultContext);
|
|
4447
|
+
sortTrellisKeys(
|
|
4448
|
+
splitByKeysModified,
|
|
4449
|
+
trellisSortBy,
|
|
4450
|
+
trellisSortOrder,
|
|
4451
|
+
modifiedDataSourceBySplitBy,
|
|
4452
|
+
mergedOptions,
|
|
4453
|
+
vizContext
|
|
4454
|
+
);
|
|
4455
|
+
showPaginator = splitByKeysModified.length > pageCount;
|
|
4456
|
+
splitByKeys = splitByKeysModified;
|
|
4457
|
+
totalPages = Math.ceil(splitByKeysModified.length / pageCount);
|
|
4218
4458
|
const [calculatedMin, calculatedMax] = determineMinMax(
|
|
4219
4459
|
modifiedDataSourceBySplitBy,
|
|
4220
4460
|
trellisSharedScale,
|
|
@@ -4248,6 +4488,7 @@ var withTrellis = (Viz) => {
|
|
|
4248
4488
|
/* @__PURE__ */ react_exports.createElement(
|
|
4249
4489
|
Viz,
|
|
4250
4490
|
__spreadProps(__spreadValues({}, otherProps), {
|
|
4491
|
+
context,
|
|
4251
4492
|
trellisKey: splitByKey,
|
|
4252
4493
|
trellisSplitBy: currTrellisSplitBy,
|
|
4253
4494
|
dataSources: modifiedDataSourceBySplitBy[splitByKey],
|