@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/Punchcard.js
CHANGED
|
@@ -60,6 +60,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
60
60
|
mod
|
|
61
61
|
));
|
|
62
62
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
63
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
63
64
|
|
|
64
65
|
// src/Punchcard/index.ts
|
|
65
66
|
var Punchcard_exports = {};
|
|
@@ -495,7 +496,7 @@ var DefaultVizActionHandler = class {
|
|
|
495
496
|
var INITIAL_HEIGHT = 250;
|
|
496
497
|
var SplunkVisualization = class {
|
|
497
498
|
};
|
|
498
|
-
SplunkVisualization
|
|
499
|
+
__publicField(SplunkVisualization, "propTypes", {
|
|
499
500
|
/**
|
|
500
501
|
* display mode
|
|
501
502
|
*/
|
|
@@ -571,11 +572,11 @@ SplunkVisualization.propTypes = {
|
|
|
571
572
|
* A callback to request new data with updated request params
|
|
572
573
|
*/
|
|
573
574
|
onRequestParamsChange: prop_types_exports.func
|
|
574
|
-
};
|
|
575
|
+
});
|
|
575
576
|
/**
|
|
576
577
|
*
|
|
577
578
|
*/
|
|
578
|
-
SplunkVisualization
|
|
579
|
+
__publicField(SplunkVisualization, "defaults", {
|
|
579
580
|
// BaseVisualization in dashboard-visualizations uses 100% for width but 250 for height
|
|
580
581
|
width: "100%",
|
|
581
582
|
height: INITIAL_HEIGHT,
|
|
@@ -590,7 +591,7 @@ SplunkVisualization.defaults = {
|
|
|
590
591
|
onComputedProps: () => ({}),
|
|
591
592
|
loading: false,
|
|
592
593
|
onRequestParamsChange: lodash_exports.noop
|
|
593
|
-
};
|
|
594
|
+
});
|
|
594
595
|
var SplunkVisualization_default = SplunkVisualization;
|
|
595
596
|
|
|
596
597
|
// src/common/interfaces/DataSource.ts
|
|
@@ -644,9 +645,9 @@ var usePaginationParams = ({
|
|
|
644
645
|
meta,
|
|
645
646
|
onRequestParamsChange
|
|
646
647
|
}) => {
|
|
647
|
-
const totalCount = meta
|
|
648
|
-
const offset = requestParams
|
|
649
|
-
const count = requestParams
|
|
648
|
+
const totalCount = (meta == null ? void 0 : meta.totalCount) || 0;
|
|
649
|
+
const offset = (requestParams == null ? void 0 : requestParams.offset) || 0;
|
|
650
|
+
const count = requestParams == null ? void 0 : requestParams.count;
|
|
650
651
|
const totalPages = typeof count === "number" && count > 0 ? Math.ceil(totalCount / count) : 0;
|
|
651
652
|
const current = typeof count === "number" && count > 0 ? Math.floor(offset / count) + 1 : 0;
|
|
652
653
|
const isPaging = totalPages > 1 && typeof onRequestParamsChange === "function";
|
|
@@ -754,7 +755,7 @@ var Cover = styled_components_default.div`
|
|
|
754
755
|
bottom: 0;
|
|
755
756
|
`;
|
|
756
757
|
var Blocker = styled_components_default.div.attrs({
|
|
757
|
-
"data-splunk-visualization-version": "28.
|
|
758
|
+
"data-splunk-visualization-version": "28.7.0 - d7b18cab6"
|
|
758
759
|
})`
|
|
759
760
|
position: relative;
|
|
760
761
|
width: 100%;
|
|
@@ -844,7 +845,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
844
845
|
FixSizeItem,
|
|
845
846
|
{
|
|
846
847
|
"data-test": "fix-size-item",
|
|
847
|
-
"data-splunk-visualization-version": "28.
|
|
848
|
+
"data-splunk-visualization-version": "28.7.0 - d7b18cab6",
|
|
848
849
|
width,
|
|
849
850
|
height,
|
|
850
851
|
backgroundColor
|
|
@@ -1385,6 +1386,24 @@ var defaultImport31 = __toESM(require("@splunk/react-icons/Triangle"));
|
|
|
1385
1386
|
__reExport(Triangle_exports, require("@splunk/react-icons/Triangle"));
|
|
1386
1387
|
var Triangle_default = "default" in defaultImport31 ? defaultImport31.default : defaultImport31;
|
|
1387
1388
|
|
|
1389
|
+
// esm-externals:@splunk/visualizations-shared/propUtils
|
|
1390
|
+
var propUtils_exports = {};
|
|
1391
|
+
__export(propUtils_exports, {
|
|
1392
|
+
default: () => propUtils_default
|
|
1393
|
+
});
|
|
1394
|
+
var defaultImport32 = __toESM(require("@splunk/visualizations-shared/propUtils"));
|
|
1395
|
+
__reExport(propUtils_exports, require("@splunk/visualizations-shared/propUtils"));
|
|
1396
|
+
var propUtils_default = "default" in defaultImport32 ? defaultImport32.default : defaultImport32;
|
|
1397
|
+
|
|
1398
|
+
// esm-externals:@splunk/visualizations-shared/simpleXMLOptions
|
|
1399
|
+
var simpleXMLOptions_exports = {};
|
|
1400
|
+
__export(simpleXMLOptions_exports, {
|
|
1401
|
+
default: () => simpleXMLOptions_default
|
|
1402
|
+
});
|
|
1403
|
+
var defaultImport33 = __toESM(require("@splunk/visualizations-shared/simpleXMLOptions"));
|
|
1404
|
+
__reExport(simpleXMLOptions_exports, require("@splunk/visualizations-shared/simpleXMLOptions"));
|
|
1405
|
+
var simpleXMLOptions_default = "default" in defaultImport33 ? defaultImport33.default : defaultImport33;
|
|
1406
|
+
|
|
1388
1407
|
// src/common/chartingUtils.ts
|
|
1389
1408
|
var DEFAULT_LINE_WIDTH = 2;
|
|
1390
1409
|
var getAnnotationsForCanvas = ({
|
|
@@ -1434,9 +1453,9 @@ var shouldEnableSearchZoom = (eventHandlers = [], xField = "") => {
|
|
|
1434
1453
|
const xAxisIsTime = xField === "_time";
|
|
1435
1454
|
return !!rangeSelectEventHandler && xAxisIsTime;
|
|
1436
1455
|
};
|
|
1437
|
-
var canvasSupportedTimeSeriesCharts = ["splunk.line"];
|
|
1456
|
+
var canvasSupportedTimeSeriesCharts = ["splunk.line", "splunk.area"];
|
|
1438
1457
|
var isTimeSeriesCanvasRenderSupported = (vizConfigKey) => {
|
|
1439
|
-
return canvasSupportedTimeSeriesCharts.
|
|
1458
|
+
return canvasSupportedTimeSeriesCharts.includes(vizConfigKey);
|
|
1440
1459
|
};
|
|
1441
1460
|
var filterChartDataFromInternalFields = (chartData) => {
|
|
1442
1461
|
const { fields, columns } = chartData;
|
|
@@ -1591,46 +1610,66 @@ var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInt
|
|
|
1591
1610
|
}
|
|
1592
1611
|
return y2Config;
|
|
1593
1612
|
};
|
|
1594
|
-
var
|
|
1613
|
+
var getSeriesType = (isOverlay, isAreaChart, isStacked) => {
|
|
1614
|
+
if (isOverlay) return "line";
|
|
1615
|
+
if (!isAreaChart) return void 0;
|
|
1616
|
+
return isStacked ? "stacked-area" : "area";
|
|
1617
|
+
};
|
|
1618
|
+
var getY2Scale = (field, y2fields, overlayFields) => {
|
|
1619
|
+
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));
|
|
1620
|
+
return assignToY2 ? "y2" : "y";
|
|
1621
|
+
};
|
|
1622
|
+
var getSeriesOverrides = (opts) => {
|
|
1623
|
+
var _a;
|
|
1624
|
+
const {
|
|
1625
|
+
yfields,
|
|
1626
|
+
y2fields,
|
|
1627
|
+
lineWidth,
|
|
1628
|
+
overlayFields,
|
|
1629
|
+
y2Enabled,
|
|
1630
|
+
nullValueMode,
|
|
1631
|
+
markerDisplay,
|
|
1632
|
+
lineDashStyle,
|
|
1633
|
+
lineDashStylesByField,
|
|
1634
|
+
stepPosition,
|
|
1635
|
+
stepPositionsByField,
|
|
1636
|
+
type,
|
|
1637
|
+
stackMode,
|
|
1638
|
+
showLines
|
|
1639
|
+
} = opts;
|
|
1595
1640
|
const seriesConfig = {};
|
|
1596
1641
|
let spanGaps;
|
|
1597
|
-
let replaceNullsWithZero;
|
|
1598
1642
|
if (nullValueMode === "gaps") {
|
|
1599
1643
|
spanGaps = false;
|
|
1600
|
-
} else if (nullValueMode
|
|
1644
|
+
} else if (nullValueMode != null) {
|
|
1601
1645
|
spanGaps = true;
|
|
1602
|
-
|
|
1603
|
-
|
|
1604
|
-
|
|
1605
|
-
|
|
1606
|
-
|
|
1646
|
+
} else {
|
|
1647
|
+
spanGaps = void 0;
|
|
1648
|
+
}
|
|
1649
|
+
const replaceNullsWithZero = nullValueMode === "zero" ? true : void 0;
|
|
1650
|
+
const isAreaChart = type === "area";
|
|
1651
|
+
const isStacked = isAreaChart && (stackMode === "stacked" || stackMode === "stacked100");
|
|
1652
|
+
const areaFields = isAreaChart ? yfields.filter((f) => !(overlayFields == null ? void 0 : overlayFields.includes(f))) : yfields;
|
|
1653
|
+
const overlayFieldsInOrder = (_a = overlayFields == null ? void 0 : overlayFields.filter((f) => yfields.includes(f))) != null ? _a : [];
|
|
1654
|
+
const orderedFields = isAreaChart ? [...areaFields, ...overlayFieldsInOrder] : yfields;
|
|
1655
|
+
orderedFields.forEach((field) => {
|
|
1656
|
+
var _a2;
|
|
1657
|
+
const isOverlay = (_a2 = overlayFields == null ? void 0 : overlayFields.includes(field)) != null ? _a2 : false;
|
|
1658
|
+
const isPercent = isAreaChart && stackMode === "stacked100" && !isOverlay;
|
|
1659
|
+
const shouldHideAreaOutline = isAreaChart && showLines === false && !isOverlay;
|
|
1607
1660
|
seriesConfig[field] = {
|
|
1608
|
-
overrides: {
|
|
1661
|
+
overrides: __spreadValues({
|
|
1662
|
+
width: shouldHideAreaOutline ? 0 : lineWidth != null ? lineWidth : DEFAULT_LINE_WIDTH
|
|
1663
|
+
}, isPercent ? { stacking: { mode: "percent", group: "A" } } : {})
|
|
1609
1664
|
};
|
|
1610
|
-
|
|
1611
|
-
|
|
1612
|
-
|
|
1613
|
-
if (y2Enabled)
|
|
1614
|
-
|
|
1615
|
-
|
|
1616
|
-
|
|
1617
|
-
|
|
1618
|
-
);
|
|
1619
|
-
if (shouldAssignToY2) {
|
|
1620
|
-
seriesConfig[field].overrides.scale = "y2";
|
|
1621
|
-
} else {
|
|
1622
|
-
seriesConfig[field].overrides.scale = "y";
|
|
1623
|
-
}
|
|
1624
|
-
}
|
|
1625
|
-
if (overlayFields == null ? void 0 : overlayFields.includes(field)) {
|
|
1626
|
-
seriesConfig[field].type = "line";
|
|
1627
|
-
}
|
|
1628
|
-
if (markerDisplay !== void 0) {
|
|
1629
|
-
seriesConfig[field].markerDisplay = markerDisplay;
|
|
1630
|
-
}
|
|
1631
|
-
const fieldDashStyle = (lineDashStylesByField == null ? void 0 : lineDashStylesByField[field]) || lineDashStyle;
|
|
1632
|
-
if (fieldDashStyle) {
|
|
1633
|
-
seriesConfig[field].lineDashStyle = fieldDashStyle;
|
|
1665
|
+
const seriesType = getSeriesType(isOverlay, isAreaChart, isStacked);
|
|
1666
|
+
if (seriesType !== void 0) seriesConfig[field].type = seriesType;
|
|
1667
|
+
if (spanGaps !== void 0) seriesConfig[field].overrides.spanGaps = spanGaps;
|
|
1668
|
+
if (y2Enabled) seriesConfig[field].overrides.scale = getY2Scale(field, y2fields, overlayFields);
|
|
1669
|
+
if (markerDisplay !== void 0) seriesConfig[field].markerDisplay = markerDisplay;
|
|
1670
|
+
if (!isAreaChart || isOverlay) {
|
|
1671
|
+
const fieldDashStyle = (lineDashStylesByField == null ? void 0 : lineDashStylesByField[field]) || lineDashStyle;
|
|
1672
|
+
if (fieldDashStyle) seriesConfig[field].lineDashStyle = fieldDashStyle;
|
|
1634
1673
|
}
|
|
1635
1674
|
const hasFieldStepPosition = Object.hasOwn(stepPositionsByField || {}, field);
|
|
1636
1675
|
const fieldStepPosition = hasFieldStepPosition ? stepPositionsByField == null ? void 0 : stepPositionsByField[field] : stepPosition;
|
|
@@ -1701,8 +1740,27 @@ var TrellisTitleDiv = styled_components_default.div`
|
|
|
1701
1740
|
background-color: ${(props) => props.backgroundColor};
|
|
1702
1741
|
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.
|
|
1703
1742
|
`;
|
|
1743
|
+
var formatTrellisKey = (value) => {
|
|
1744
|
+
if (value === null || value === void 0) {
|
|
1745
|
+
return "";
|
|
1746
|
+
}
|
|
1747
|
+
if (typeof value === "string") {
|
|
1748
|
+
return value;
|
|
1749
|
+
}
|
|
1750
|
+
if (typeof value === "number" || typeof value === "boolean") {
|
|
1751
|
+
return value.toString();
|
|
1752
|
+
}
|
|
1753
|
+
if (typeof value === "symbol") {
|
|
1754
|
+
return value.toString();
|
|
1755
|
+
}
|
|
1756
|
+
try {
|
|
1757
|
+
return JSON.stringify(value);
|
|
1758
|
+
} catch (e) {
|
|
1759
|
+
return typeof value === "bigint" ? value.toString() : "";
|
|
1760
|
+
}
|
|
1761
|
+
};
|
|
1704
1762
|
var TrellisTitle = (props) => {
|
|
1705
|
-
const titleText =
|
|
1763
|
+
const titleText = formatTrellisKey(props.trellisKey);
|
|
1706
1764
|
return /* @__PURE__ */ react_exports.createElement(
|
|
1707
1765
|
TrellisTitleDiv,
|
|
1708
1766
|
{
|
|
@@ -1838,6 +1896,38 @@ var parseArrayOption = (value) => {
|
|
|
1838
1896
|
}
|
|
1839
1897
|
return void 0;
|
|
1840
1898
|
};
|
|
1899
|
+
var getAreaOpacityForCanvas = (areaOpacity) => (
|
|
1900
|
+
// Preserve legacy visualizations behavior where area opacity is squared to match charting output.
|
|
1901
|
+
areaOpacity !== void 0 && areaOpacity !== null ? __pow(areaOpacity, 2) : areaOpacity
|
|
1902
|
+
);
|
|
1903
|
+
var parseTickIntervalOption = (simpleXMLValue, canvasValue) => {
|
|
1904
|
+
if (simpleXMLValue) return Number(simpleXMLValue);
|
|
1905
|
+
if (canvasValue) return Number(canvasValue);
|
|
1906
|
+
return void 0;
|
|
1907
|
+
};
|
|
1908
|
+
var getYAxisTitles = ({
|
|
1909
|
+
y2Enabled,
|
|
1910
|
+
yFields,
|
|
1911
|
+
y2Fields,
|
|
1912
|
+
overlayFields,
|
|
1913
|
+
yAxisTitleText,
|
|
1914
|
+
yAxisTitleVisibility,
|
|
1915
|
+
y2AxisTitleText,
|
|
1916
|
+
y2AxisTitleVisibility,
|
|
1917
|
+
containerHeight
|
|
1918
|
+
}) => {
|
|
1919
|
+
const yFieldsForTitle = y2Enabled ? yFields.filter((field) => !y2Fields.includes(field)) : yFields;
|
|
1920
|
+
const fieldsForY2Axis = y2Fields.length > 0 ? y2Fields : overlayFields;
|
|
1921
|
+
const yAxisTitle = ellipsisAxisTitle(
|
|
1922
|
+
getComputedAxisTitles(yAxisTitleText, yFieldsForTitle, yAxisTitleVisibility),
|
|
1923
|
+
containerHeight
|
|
1924
|
+
);
|
|
1925
|
+
const y2AxisTitle = ellipsisAxisTitle(
|
|
1926
|
+
getComputedAxisTitles(y2AxisTitleText, fieldsForY2Axis, y2AxisTitleVisibility),
|
|
1927
|
+
containerHeight
|
|
1928
|
+
);
|
|
1929
|
+
return { yAxisTitle, y2AxisTitle };
|
|
1930
|
+
};
|
|
1841
1931
|
var TimeSeriesChartWrapper = (props) => {
|
|
1842
1932
|
var _b, _c, _d;
|
|
1843
1933
|
const _a = props, {
|
|
@@ -1927,6 +2017,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1927
2017
|
"chart.overlayFields": overlayFieldsStr,
|
|
1928
2018
|
"chart.nullValueMode": nullValueMode,
|
|
1929
2019
|
"chart.showDataLabels": showDataLabels,
|
|
2020
|
+
"chart.showLines": showLines,
|
|
2021
|
+
"chart.stackMode": stackMode,
|
|
1930
2022
|
lineWidth,
|
|
1931
2023
|
lineDashStyle,
|
|
1932
2024
|
fieldDashStyles: lineDashStylesByFieldStr,
|
|
@@ -1955,7 +2047,10 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1955
2047
|
yAxisMinorTickSize,
|
|
1956
2048
|
y2AxisMinorTickSize,
|
|
1957
2049
|
showYAxisWithZero: showYAxisWithZeroFromOptions,
|
|
1958
|
-
showY2AxisWithZero: showY2AxisWithZeroFromOptions
|
|
2050
|
+
showY2AxisWithZero: showY2AxisWithZeroFromOptions,
|
|
2051
|
+
// area only props
|
|
2052
|
+
areaFillOpacity: areaOpacity,
|
|
2053
|
+
chart: chartType
|
|
1959
2054
|
} = options;
|
|
1960
2055
|
const dataValuesDisplay = showDataLabels === "none" ? "off" : showDataLabels;
|
|
1961
2056
|
const showYAxisWithZero = showYAxisWithZeroFromProps != null ? showYAxisWithZeroFromProps : showYAxisWithZeroFromOptions;
|
|
@@ -1972,13 +2067,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1972
2067
|
const yAxisMax = parseAxisValue(yAxisMaxRaw);
|
|
1973
2068
|
const y2AxisMin = parseAxisValue(y2AxisMinRaw);
|
|
1974
2069
|
const y2AxisMax = parseAxisValue(y2AxisMaxRaw);
|
|
1975
|
-
const
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
const yAxisMajorTickIntervalNum = parseTickInterval(yAxisMajorUnitFromSimpleXML, yAxisMajorTickInterval);
|
|
1981
|
-
const y2AxisMajorTickIntervalNum = parseTickInterval(
|
|
2070
|
+
const yAxisMajorTickIntervalNum = parseTickIntervalOption(
|
|
2071
|
+
yAxisMajorUnitFromSimpleXML,
|
|
2072
|
+
yAxisMajorTickInterval
|
|
2073
|
+
);
|
|
2074
|
+
const y2AxisMajorTickIntervalNum = parseTickIntervalOption(
|
|
1982
2075
|
y2AxisMajorUnitFromSimpleXML,
|
|
1983
2076
|
y2AxisMajorTickInterval
|
|
1984
2077
|
);
|
|
@@ -1987,6 +2080,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1987
2080
|
const y2AxisMajorTickSizeNum = y2AxisMajorTickSize != null ? Number(y2AxisMajorTickSize) : void 0;
|
|
1988
2081
|
const yAxisMinorTickSizeNum = yAxisMinorTickSize != null ? Number(yAxisMinorTickSize) : void 0;
|
|
1989
2082
|
const y2AxisMinorTickSizeNum = y2AxisMinorTickSize != null ? Number(y2AxisMinorTickSize) : void 0;
|
|
2083
|
+
const areaOpacityForCanvas = getAreaOpacityForCanvas(areaOpacity);
|
|
1990
2084
|
const seriesColors = seriesColorsStr ? JSON.parse(seriesColorsStr) : void 0;
|
|
1991
2085
|
const seriesColorsByField = fieldColors ? JSON.parse(fieldColors) : void 0;
|
|
1992
2086
|
const lineDashStylesByField = lineDashStylesByFieldStr ? JSON.parse(lineDashStylesByFieldStr) : void 0;
|
|
@@ -2017,26 +2111,40 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2017
2111
|
);
|
|
2018
2112
|
let xAxisTitle = getComputedAxisTitles(xAxisTitleText, [xField], xAxisTitleVisibility);
|
|
2019
2113
|
xAxisTitle = ellipsisAxisTitle(xAxisTitle, containerWidth);
|
|
2020
|
-
const
|
|
2021
|
-
|
|
2022
|
-
|
|
2023
|
-
|
|
2024
|
-
|
|
2025
|
-
|
|
2114
|
+
const { yAxisTitle, y2AxisTitle } = getYAxisTitles({
|
|
2115
|
+
y2Enabled,
|
|
2116
|
+
yFields,
|
|
2117
|
+
y2Fields,
|
|
2118
|
+
overlayFields,
|
|
2119
|
+
yAxisTitleText,
|
|
2120
|
+
yAxisTitleVisibility,
|
|
2121
|
+
y2AxisTitleText,
|
|
2122
|
+
y2AxisTitleVisibility,
|
|
2123
|
+
containerHeight
|
|
2124
|
+
});
|
|
2026
2125
|
const xScaleConfig = (0, react_exports.useMemo)(
|
|
2027
2126
|
() => getXScaleConfig(xAxisTitle, xAxisLabelVisibility, xAxisLabelRotation),
|
|
2028
2127
|
[xAxisTitle, xAxisLabelVisibility, xAxisLabelRotation]
|
|
2029
2128
|
);
|
|
2129
|
+
const isStacked100 = stackMode === "stacked100";
|
|
2030
2130
|
const yScaleConfig = (0, react_exports.useMemo)(
|
|
2031
|
-
() =>
|
|
2032
|
-
|
|
2033
|
-
|
|
2034
|
-
|
|
2035
|
-
|
|
2036
|
-
|
|
2037
|
-
|
|
2038
|
-
|
|
2039
|
-
|
|
2131
|
+
() => {
|
|
2132
|
+
const config3 = getYScaleConfig(
|
|
2133
|
+
yAxisTitle,
|
|
2134
|
+
yAxisAbbreviation,
|
|
2135
|
+
yAxisScale,
|
|
2136
|
+
yAxisLabelVisibility,
|
|
2137
|
+
yAxisMin,
|
|
2138
|
+
yAxisMax
|
|
2139
|
+
);
|
|
2140
|
+
if (isStacked100) {
|
|
2141
|
+
config3.y.tickFmt = (v) => `${Math.round(v * 100)}%`;
|
|
2142
|
+
config3.y.range = () => [0, 1];
|
|
2143
|
+
}
|
|
2144
|
+
return config3;
|
|
2145
|
+
},
|
|
2146
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2147
|
+
[yAxisTitle, yAxisAbbreviation, yAxisScale, yAxisLabelVisibility, yAxisMin, yAxisMax, isStacked100]
|
|
2040
2148
|
);
|
|
2041
2149
|
const y2ScaleConfig = (0, react_exports.useMemo)(() => {
|
|
2042
2150
|
if (y2Enabled) {
|
|
@@ -2068,10 +2176,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2068
2176
|
];
|
|
2069
2177
|
chartData.fields = filteredChartData.fields;
|
|
2070
2178
|
chartData.columns = seriesDataFormatted;
|
|
2179
|
+
const normalizedStackMode = stackMode === "stacked" || stackMode === "stacked100" ? stackMode : "auto";
|
|
2071
2180
|
const seriesOverrides = (0, react_exports.useMemo)(
|
|
2072
|
-
() => getSeriesOverrides(
|
|
2073
|
-
yFields,
|
|
2074
|
-
y2Fields,
|
|
2181
|
+
() => getSeriesOverrides({
|
|
2182
|
+
yfields: yFields,
|
|
2183
|
+
y2fields: y2Fields,
|
|
2075
2184
|
lineWidth,
|
|
2076
2185
|
overlayFields,
|
|
2077
2186
|
y2Enabled,
|
|
@@ -2080,8 +2189,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2080
2189
|
lineDashStyle,
|
|
2081
2190
|
lineDashStylesByField,
|
|
2082
2191
|
stepPosition,
|
|
2083
|
-
stepPositionsByField
|
|
2084
|
-
|
|
2192
|
+
stepPositionsByField,
|
|
2193
|
+
type: chartType,
|
|
2194
|
+
stackMode: normalizedStackMode,
|
|
2195
|
+
showLines
|
|
2196
|
+
}),
|
|
2085
2197
|
[
|
|
2086
2198
|
yFields,
|
|
2087
2199
|
y2Fields,
|
|
@@ -2093,7 +2205,10 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2093
2205
|
lineDashStyle,
|
|
2094
2206
|
lineDashStylesByField,
|
|
2095
2207
|
stepPosition,
|
|
2096
|
-
stepPositionsByField
|
|
2208
|
+
stepPositionsByField,
|
|
2209
|
+
chartType,
|
|
2210
|
+
normalizedStackMode,
|
|
2211
|
+
showLines
|
|
2097
2212
|
]
|
|
2098
2213
|
);
|
|
2099
2214
|
const chartingEventAnnotations = (0, react_exports.useMemo)(
|
|
@@ -2161,50 +2276,54 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2161
2276
|
react_exports.useEffect(() => {
|
|
2162
2277
|
additionalTooltipValuesRef.current = additionalTooltipValues;
|
|
2163
2278
|
}, [additionalTooltipValues]);
|
|
2279
|
+
const handleCrosshairMouseout = react_exports.useCallback(() => {
|
|
2280
|
+
if (onPointMouseOut && lastPayloadRef.current) {
|
|
2281
|
+
onPointMouseOut({
|
|
2282
|
+
type: "point.mouseout",
|
|
2283
|
+
originalEvent: lastOriginalEventRef.current,
|
|
2284
|
+
payload: lastPayloadRef.current
|
|
2285
|
+
});
|
|
2286
|
+
}
|
|
2287
|
+
previousMouseoverPayloadRef.current = null;
|
|
2288
|
+
}, [onPointMouseOut]);
|
|
2164
2289
|
const handleChartCrosshairChange = react_exports.useCallback(
|
|
2165
2290
|
(event) => {
|
|
2166
|
-
if (onPointMouseOver
|
|
2167
|
-
|
|
2168
|
-
|
|
2169
|
-
|
|
2170
|
-
|
|
2171
|
-
|
|
2172
|
-
|
|
2173
|
-
|
|
2174
|
-
|
|
2175
|
-
|
|
2176
|
-
|
|
2177
|
-
|
|
2178
|
-
|
|
2179
|
-
|
|
2291
|
+
if (!onPointMouseOver && !onPointMouseOut) {
|
|
2292
|
+
return;
|
|
2293
|
+
}
|
|
2294
|
+
if (!event) {
|
|
2295
|
+
handleCrosshairMouseout();
|
|
2296
|
+
return;
|
|
2297
|
+
}
|
|
2298
|
+
const payload = __spreadProps(__spreadValues({}, (0, lodash_exports.pick)(event, "value", "seriesKey", "time", "index", "seriesIndex")), {
|
|
2299
|
+
name: event.seriesKey
|
|
2300
|
+
});
|
|
2301
|
+
delete payload.seriesKey;
|
|
2302
|
+
if (event.rowContext) {
|
|
2303
|
+
Object.assign(
|
|
2304
|
+
payload,
|
|
2305
|
+
Object.keys(event.rowContext).reduce((acc, fieldName) => {
|
|
2306
|
+
acc[`row.${fieldName}.value`] = event.rowContext[fieldName];
|
|
2307
|
+
return acc;
|
|
2308
|
+
}, {})
|
|
2309
|
+
);
|
|
2310
|
+
}
|
|
2311
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
2312
|
+
if (!hasMouseoverPayloadChanged(updatedPayload, previousMouseoverPayloadRef.current)) {
|
|
2313
|
+
return;
|
|
2314
|
+
}
|
|
2315
|
+
lastPayloadRef.current = updatedPayload;
|
|
2316
|
+
lastOriginalEventRef.current = event;
|
|
2317
|
+
previousMouseoverPayloadRef.current = __spreadValues({}, updatedPayload);
|
|
2318
|
+
if (onPointMouseOver) {
|
|
2319
|
+
onPointMouseOver({
|
|
2320
|
+
type: "point.mouseover",
|
|
2321
|
+
originalEvent: event,
|
|
2322
|
+
payload: updatedPayload
|
|
2180
2323
|
});
|
|
2181
|
-
delete payload.seriesKey;
|
|
2182
|
-
if (event.rowContext) {
|
|
2183
|
-
Object.assign(
|
|
2184
|
-
payload,
|
|
2185
|
-
Object.keys(event.rowContext).reduce((acc, fieldName) => {
|
|
2186
|
-
acc[`row.${fieldName}.value`] = event.rowContext[fieldName];
|
|
2187
|
-
return acc;
|
|
2188
|
-
}, {})
|
|
2189
|
-
);
|
|
2190
|
-
}
|
|
2191
|
-
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
2192
|
-
if (!hasMouseoverPayloadChanged(updatedPayload, previousMouseoverPayloadRef.current)) {
|
|
2193
|
-
return;
|
|
2194
|
-
}
|
|
2195
|
-
lastPayloadRef.current = updatedPayload;
|
|
2196
|
-
lastOriginalEventRef.current = event;
|
|
2197
|
-
previousMouseoverPayloadRef.current = __spreadValues({}, updatedPayload);
|
|
2198
|
-
if (onPointMouseOver) {
|
|
2199
|
-
onPointMouseOver({
|
|
2200
|
-
type: "point.mouseover",
|
|
2201
|
-
originalEvent: event,
|
|
2202
|
-
payload: updatedPayload
|
|
2203
|
-
});
|
|
2204
|
-
}
|
|
2205
2324
|
}
|
|
2206
2325
|
},
|
|
2207
|
-
[onPointMouseOver, onPointMouseOut, trellisKey, trellisSplitBy]
|
|
2326
|
+
[onPointMouseOver, onPointMouseOut, trellisKey, trellisSplitBy, handleCrosshairMouseout]
|
|
2208
2327
|
);
|
|
2209
2328
|
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}`;
|
|
2210
2329
|
const memoizedChart = (0, react_exports.useMemo)(() => {
|
|
@@ -2259,7 +2378,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2259
2378
|
showXAxisLine,
|
|
2260
2379
|
showYAxisLine,
|
|
2261
2380
|
showY2AxisLine,
|
|
2262
|
-
xAxisMaxLabelParts
|
|
2381
|
+
xAxisMaxLabelParts,
|
|
2382
|
+
areaOpacity: areaOpacityForCanvas
|
|
2263
2383
|
}
|
|
2264
2384
|
));
|
|
2265
2385
|
}, [
|
|
@@ -2311,7 +2431,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2311
2431
|
showYAxisLine,
|
|
2312
2432
|
showY2AxisLine,
|
|
2313
2433
|
legendMode,
|
|
2314
|
-
xAxisMaxLabelParts
|
|
2434
|
+
xAxisMaxLabelParts,
|
|
2435
|
+
areaOpacityForCanvas
|
|
2315
2436
|
]);
|
|
2316
2437
|
const memoizedVisualization = (0, react_exports.useMemo)(() => {
|
|
2317
2438
|
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor: bgColor }, memoizedChart);
|
|
@@ -2339,6 +2460,37 @@ var TimeSeriesChartWrapper_default = TimeSeriesChartWrapper;
|
|
|
2339
2460
|
|
|
2340
2461
|
// src/common/withDashboardViz.tsx
|
|
2341
2462
|
var SanitizedTimeSeriesChartWrapper = (0, SanitizeProps_exports.withSanitizedProps)(TimeSeriesChartWrapper_default);
|
|
2463
|
+
var buildEventCallbackProps = (supportedEvents, evaluatedOptionsToUse, onEventTrigger) => {
|
|
2464
|
+
const result = {};
|
|
2465
|
+
Object.keys(supportedEvents).forEach((eventName) => {
|
|
2466
|
+
const { parentKeys, payloadKeys } = supportedEvents[eventName];
|
|
2467
|
+
const eventCallbackPropName = (0, lodash_exports.camelCase)(`on.${eventName}`);
|
|
2468
|
+
let payload = {};
|
|
2469
|
+
if (Array.isArray(payloadKeys) && payloadKeys.length) {
|
|
2470
|
+
payloadKeys.forEach((p) => {
|
|
2471
|
+
payload[p] = evaluatedOptionsToUse[p];
|
|
2472
|
+
});
|
|
2473
|
+
}
|
|
2474
|
+
result[eventCallbackPropName] = (ev) => {
|
|
2475
|
+
if (ev == null ? void 0 : ev.payload) {
|
|
2476
|
+
payload = __spreadValues({}, ev.payload);
|
|
2477
|
+
}
|
|
2478
|
+
return onEventTrigger({
|
|
2479
|
+
originalEvent: ev,
|
|
2480
|
+
payload,
|
|
2481
|
+
type: eventName
|
|
2482
|
+
});
|
|
2483
|
+
};
|
|
2484
|
+
if (parentKeys) {
|
|
2485
|
+
for (let i = parentKeys.length - 1; i >= 0; i -= 1) {
|
|
2486
|
+
const newObject = {};
|
|
2487
|
+
newObject[parentKeys[i]] = result[eventCallbackPropName];
|
|
2488
|
+
result[eventCallbackPropName] = newObject;
|
|
2489
|
+
}
|
|
2490
|
+
}
|
|
2491
|
+
});
|
|
2492
|
+
return result;
|
|
2493
|
+
};
|
|
2342
2494
|
var withDashboardViz = (opts) => {
|
|
2343
2495
|
const {
|
|
2344
2496
|
ReactViz,
|
|
@@ -2396,9 +2548,7 @@ var withDashboardViz = (opts) => {
|
|
|
2396
2548
|
const isDownsamplingEnabledByFeatureFlag = Boolean(
|
|
2397
2549
|
featureFlagContext == null ? void 0 : featureFlagContext.visualizations_enableDownsampling
|
|
2398
2550
|
);
|
|
2399
|
-
const isTrellisFeatureFlagOn = Boolean(
|
|
2400
|
-
featureFlagContext && featureFlagContext.visualizations_enableTrellis
|
|
2401
|
-
);
|
|
2551
|
+
const isTrellisFeatureFlagOn = Boolean(featureFlagContext == null ? void 0 : featureFlagContext.visualizations_enableTrellis);
|
|
2402
2552
|
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 */;
|
|
2403
2553
|
const isAcceleratedRenderFeatureFlagOn = Boolean(
|
|
2404
2554
|
featureFlagContext == null ? void 0 : featureFlagContext.visualizations_enableAcceleratedRender
|
|
@@ -2563,38 +2713,12 @@ var withDashboardViz = (opts) => {
|
|
|
2563
2713
|
}
|
|
2564
2714
|
);
|
|
2565
2715
|
}
|
|
2566
|
-
const eventCallbackProps = {};
|
|
2567
|
-
|
|
2568
|
-
|
|
2569
|
-
|
|
2570
|
-
|
|
2571
|
-
|
|
2572
|
-
let payload = {};
|
|
2573
|
-
if (Array.isArray(payloadKeys) && payloadKeys.length) {
|
|
2574
|
-
payloadKeys.forEach((p) => {
|
|
2575
|
-
payload[p] = evaluatedOptionsToUse[p];
|
|
2576
|
-
});
|
|
2577
|
-
}
|
|
2578
|
-
eventCallbackProps[eventCallbackPropName] = (ev) => {
|
|
2579
|
-
if (ev == null ? void 0 : ev.payload) {
|
|
2580
|
-
payload = __spreadValues({}, ev.payload);
|
|
2581
|
-
}
|
|
2582
|
-
return onEventTrigger({
|
|
2583
|
-
originalEvent: ev,
|
|
2584
|
-
payload,
|
|
2585
|
-
type: eventName
|
|
2586
|
-
});
|
|
2587
|
-
};
|
|
2588
|
-
if (parentKeys) {
|
|
2589
|
-
for (let i = parentKeys.length - 1; i >= 0; i -= 1) {
|
|
2590
|
-
const newObject = {};
|
|
2591
|
-
newObject[parentKeys[i]] = eventCallbackProps[eventCallbackPropName];
|
|
2592
|
-
eventCallbackProps[eventCallbackPropName] = newObject;
|
|
2593
|
-
}
|
|
2594
|
-
}
|
|
2595
|
-
});
|
|
2596
|
-
}
|
|
2597
|
-
const computedVizProps = computeVizProps2(__spreadProps(__spreadValues(__spreadValues(__spreadValues({}, props), evaluatedOptionsToUse), eventCallbackProps), {
|
|
2716
|
+
const eventCallbackProps = hasEventHandlers && mode === "view" && vizConfig.supports.includes("events" /* EVENTS */) ? buildEventCallbackProps(vizConfig.events, evaluatedOptionsToUse, onEventTrigger) : {};
|
|
2717
|
+
const computedVizProps = computeVizProps2(__spreadProps(__spreadValues(__spreadProps(__spreadValues(__spreadValues({}, props), evaluatedOptionsToUse), {
|
|
2718
|
+
// Align option transformation with the actual renderer selected below.
|
|
2719
|
+
// This prevents canvas-only option preservation from leaking into Highcharts mode.
|
|
2720
|
+
isAcceleratedRenderOn
|
|
2721
|
+
}), eventCallbackProps), {
|
|
2598
2722
|
themeFunc
|
|
2599
2723
|
}));
|
|
2600
2724
|
if (useAsyncEvaluatedOptions && Object.keys(evaluatedOptionsToUse).length === 0) {
|
|
@@ -2628,46 +2752,20 @@ var types_exports = {};
|
|
|
2628
2752
|
__export(types_exports, {
|
|
2629
2753
|
default: () => types_default
|
|
2630
2754
|
});
|
|
2631
|
-
var
|
|
2755
|
+
var defaultImport34 = __toESM(require("@splunk/visualization-encoding/utils/types"));
|
|
2632
2756
|
__reExport(types_exports, require("@splunk/visualization-encoding/utils/types"));
|
|
2633
|
-
var types_default = "default" in
|
|
2757
|
+
var types_default = "default" in defaultImport34 ? defaultImport34.default : defaultImport34;
|
|
2634
2758
|
|
|
2635
2759
|
// esm-externals:d3-scale
|
|
2636
2760
|
var d3_scale_exports = {};
|
|
2637
2761
|
__export(d3_scale_exports, {
|
|
2638
2762
|
default: () => d3_scale_default
|
|
2639
2763
|
});
|
|
2640
|
-
var
|
|
2764
|
+
var defaultImport35 = __toESM(require("d3-scale"));
|
|
2641
2765
|
__reExport(d3_scale_exports, require("d3-scale"));
|
|
2642
|
-
var d3_scale_default = "default" in
|
|
2766
|
+
var d3_scale_default = "default" in defaultImport35 ? defaultImport35.default : defaultImport35;
|
|
2643
2767
|
|
|
2644
2768
|
// src/Punchcard/PurePunchcard/src/utils/punchcardUtils.ts
|
|
2645
|
-
var AXIS_ORIENTATION_TYPES = /* @__PURE__ */ ((AXIS_ORIENTATION_TYPES2) => {
|
|
2646
|
-
AXIS_ORIENTATION_TYPES2["VERTICAL"] = "vertical";
|
|
2647
|
-
AXIS_ORIENTATION_TYPES2["HORIZONTAL"] = "horizontal";
|
|
2648
|
-
return AXIS_ORIENTATION_TYPES2;
|
|
2649
|
-
})(AXIS_ORIENTATION_TYPES || {});
|
|
2650
|
-
var BUBBLE_ROW_SCALE_TYPES = /* @__PURE__ */ ((BUBBLE_ROW_SCALE_TYPES2) => {
|
|
2651
|
-
BUBBLE_ROW_SCALE_TYPES2["GLOBAL"] = "global";
|
|
2652
|
-
BUBBLE_ROW_SCALE_TYPES2["ROW"] = "row";
|
|
2653
|
-
return BUBBLE_ROW_SCALE_TYPES2;
|
|
2654
|
-
})(BUBBLE_ROW_SCALE_TYPES || {});
|
|
2655
|
-
var BUBBLE_SCALE_TYPES = /* @__PURE__ */ ((BUBBLE_SCALE_TYPES2) => {
|
|
2656
|
-
BUBBLE_SCALE_TYPES2["RADIUS"] = "radius";
|
|
2657
|
-
BUBBLE_SCALE_TYPES2["AREA"] = "area";
|
|
2658
|
-
return BUBBLE_SCALE_TYPES2;
|
|
2659
|
-
})(BUBBLE_SCALE_TYPES || {});
|
|
2660
|
-
var COLOR_MODE_TYPES = /* @__PURE__ */ ((COLOR_MODE_TYPES2) => {
|
|
2661
|
-
COLOR_MODE_TYPES2["SEQUENTIAL"] = "sequential";
|
|
2662
|
-
COLOR_MODE_TYPES2["CATEGORICAL"] = "categorical";
|
|
2663
|
-
return COLOR_MODE_TYPES2;
|
|
2664
|
-
})(COLOR_MODE_TYPES || {});
|
|
2665
|
-
var BUBBLE_LABELS_TYPES = /* @__PURE__ */ ((BUBBLE_LABELS_TYPES2) => {
|
|
2666
|
-
BUBBLE_LABELS_TYPES2["ALL"] = "all";
|
|
2667
|
-
BUBBLE_LABELS_TYPES2["MAX"] = "max";
|
|
2668
|
-
BUBBLE_LABELS_TYPES2["NONE"] = "none";
|
|
2669
|
-
return BUBBLE_LABELS_TYPES2;
|
|
2670
|
-
})(BUBBLE_LABELS_TYPES || {});
|
|
2671
2769
|
var GRAYSCALE_FILTER_ID = `punchcard-grayscale-filter-id-${Math.floor(Math.random() * 1e3)}`;
|
|
2672
2770
|
var X_AXIS_HEIGHT = 15;
|
|
2673
2771
|
var Y_AXIS_WIDTH = 77;
|
|
@@ -2750,7 +2848,7 @@ var getDataByRows = ({
|
|
|
2750
2848
|
y.forEach((yValue, index) => {
|
|
2751
2849
|
const xValue = x[index];
|
|
2752
2850
|
const sizeValue = size2[index];
|
|
2753
|
-
const categoryValue = category
|
|
2851
|
+
const categoryValue = (category == null ? void 0 : category[index]) || null;
|
|
2754
2852
|
const bubbleColorValue = colorMode === "sequential" /* SEQUENTIAL */ && isBubbleColorAnArray ? bubbleColor[index] : getColorValue(categoryValue);
|
|
2755
2853
|
if (xValue == null || yValue == null || sizeValue == null) {
|
|
2756
2854
|
return;
|
|
@@ -2896,7 +2994,7 @@ var getElementToFocus = ({
|
|
|
2896
2994
|
return {
|
|
2897
2995
|
x: el,
|
|
2898
2996
|
y: y[i],
|
|
2899
|
-
category: (_a = category[i]) != null ? _a : null,
|
|
2997
|
+
category: category ? (_a = category[i]) != null ? _a : null : null,
|
|
2900
2998
|
size: bubbleSizes[i]
|
|
2901
2999
|
};
|
|
2902
3000
|
});
|
|
@@ -2963,36 +3061,36 @@ var findIndex_exports = {};
|
|
|
2963
3061
|
__export(findIndex_exports, {
|
|
2964
3062
|
default: () => findIndex_default
|
|
2965
3063
|
});
|
|
2966
|
-
var
|
|
3064
|
+
var defaultImport36 = __toESM(require("lodash/findIndex"));
|
|
2967
3065
|
__reExport(findIndex_exports, require("lodash/findIndex"));
|
|
2968
|
-
var findIndex_default = "default" in
|
|
3066
|
+
var findIndex_default = "default" in defaultImport36 ? defaultImport36.default : defaultImport36;
|
|
2969
3067
|
|
|
2970
3068
|
// esm-externals:lodash/find
|
|
2971
3069
|
var find_exports = {};
|
|
2972
3070
|
__export(find_exports, {
|
|
2973
3071
|
default: () => find_default
|
|
2974
3072
|
});
|
|
2975
|
-
var
|
|
3073
|
+
var defaultImport37 = __toESM(require("lodash/find"));
|
|
2976
3074
|
__reExport(find_exports, require("lodash/find"));
|
|
2977
|
-
var find_default = "default" in
|
|
3075
|
+
var find_default = "default" in defaultImport37 ? defaultImport37.default : defaultImport37;
|
|
2978
3076
|
|
|
2979
3077
|
// esm-externals:lodash/sortBy
|
|
2980
3078
|
var sortBy_exports = {};
|
|
2981
3079
|
__export(sortBy_exports, {
|
|
2982
3080
|
default: () => sortBy_default
|
|
2983
3081
|
});
|
|
2984
|
-
var
|
|
3082
|
+
var defaultImport38 = __toESM(require("lodash/sortBy"));
|
|
2985
3083
|
__reExport(sortBy_exports, require("lodash/sortBy"));
|
|
2986
|
-
var sortBy_default = "default" in
|
|
3084
|
+
var sortBy_default = "default" in defaultImport38 ? defaultImport38.default : defaultImport38;
|
|
2987
3085
|
|
|
2988
3086
|
// esm-externals:lodash/flattenDeep
|
|
2989
3087
|
var flattenDeep_exports = {};
|
|
2990
3088
|
__export(flattenDeep_exports, {
|
|
2991
3089
|
default: () => flattenDeep_default
|
|
2992
3090
|
});
|
|
2993
|
-
var
|
|
3091
|
+
var defaultImport39 = __toESM(require("lodash/flattenDeep"));
|
|
2994
3092
|
__reExport(flattenDeep_exports, require("lodash/flattenDeep"));
|
|
2995
|
-
var flattenDeep_default = "default" in
|
|
3093
|
+
var flattenDeep_default = "default" in defaultImport39 ? defaultImport39.default : defaultImport39;
|
|
2996
3094
|
|
|
2997
3095
|
// src/Punchcard/PurePunchcard/src/utils/sortUtils.js
|
|
2998
3096
|
var TIME_RANGES = {
|
|
@@ -3136,6 +3234,8 @@ var sortAxis = (axis) => {
|
|
|
3136
3234
|
};
|
|
3137
3235
|
|
|
3138
3236
|
// src/Punchcard/PurePunchcard/src/PunchcardAxis.tsx
|
|
3237
|
+
var noop4 = () => {
|
|
3238
|
+
};
|
|
3139
3239
|
var AxisLabelText = styled_components_default.text`
|
|
3140
3240
|
cursor: pointer;
|
|
3141
3241
|
dominant-baseline: middle;
|
|
@@ -3145,17 +3245,16 @@ var AxisLabelText = styled_components_default.text`
|
|
|
3145
3245
|
opacity: ${(props) => props.muted ? 0.15 : 1};
|
|
3146
3246
|
transition: all 0.15s;
|
|
3147
3247
|
`;
|
|
3148
|
-
var PunchcardAxis = (
|
|
3149
|
-
|
|
3150
|
-
|
|
3151
|
-
|
|
3152
|
-
|
|
3153
|
-
|
|
3154
|
-
|
|
3155
|
-
|
|
3156
|
-
|
|
3157
|
-
|
|
3158
|
-
} = props;
|
|
3248
|
+
var PunchcardAxis = ({
|
|
3249
|
+
labels,
|
|
3250
|
+
handleMouseEnter = noop4,
|
|
3251
|
+
handleMouseLeave = noop4,
|
|
3252
|
+
orientation = "vertical" /* VERTICAL */,
|
|
3253
|
+
scale,
|
|
3254
|
+
selected = null,
|
|
3255
|
+
startPositionX = 0,
|
|
3256
|
+
startPositionY = 0
|
|
3257
|
+
}) => {
|
|
3159
3258
|
return /* @__PURE__ */ react_exports.createElement("g", { "data-test": `${orientation === "vertical" /* VERTICAL */ ? "y" : "x"}-axis` }, labels.map((label, index) => {
|
|
3160
3259
|
const positionDelta = index * scale.bandwidth() + scale.bandwidth() / 2;
|
|
3161
3260
|
const xPosition = orientation === "vertical" /* VERTICAL */ ? startPositionX : startPositionX + positionDelta;
|
|
@@ -3181,34 +3280,6 @@ var PunchcardAxis = (props) => {
|
|
|
3181
3280
|
);
|
|
3182
3281
|
}));
|
|
3183
3282
|
};
|
|
3184
|
-
var propTypes = {
|
|
3185
|
-
labels: prop_types_exports.arrayOf(prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number])).isRequired,
|
|
3186
|
-
handleMouseEnter: prop_types_exports.func,
|
|
3187
|
-
handleMouseLeave: prop_types_exports.func,
|
|
3188
|
-
orientation: prop_types_exports.oneOf(Object.values(AXIS_ORIENTATION_TYPES)),
|
|
3189
|
-
scale: prop_types_exports.func.isRequired,
|
|
3190
|
-
selected: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number]),
|
|
3191
|
-
startPositionX: prop_types_exports.number,
|
|
3192
|
-
startPositionY: prop_types_exports.number
|
|
3193
|
-
};
|
|
3194
|
-
var defaultProps = {
|
|
3195
|
-
// set as undefined as we are using defaultProps in conjunction with ts
|
|
3196
|
-
// where it requires all keys of interface to be present in defaultProps
|
|
3197
|
-
// eslint-disable-next-line react/default-props-match-prop-types
|
|
3198
|
-
labels: void 0,
|
|
3199
|
-
handleMouseEnter: () => {
|
|
3200
|
-
},
|
|
3201
|
-
handleMouseLeave: () => {
|
|
3202
|
-
},
|
|
3203
|
-
orientation: "vertical",
|
|
3204
|
-
// eslint-disable-next-line react/default-props-match-prop-types
|
|
3205
|
-
scale: void 0,
|
|
3206
|
-
selected: null,
|
|
3207
|
-
startPositionX: 0,
|
|
3208
|
-
startPositionY: 0
|
|
3209
|
-
};
|
|
3210
|
-
PunchcardAxis.propTypes = propTypes;
|
|
3211
|
-
PunchcardAxis.defaultProps = defaultProps;
|
|
3212
3283
|
var PunchcardAxis_default = PunchcardAxis;
|
|
3213
3284
|
|
|
3214
3285
|
// esm-externals:@splunk/themes
|
|
@@ -3216,9 +3287,9 @@ var themes_exports = {};
|
|
|
3216
3287
|
__export(themes_exports, {
|
|
3217
3288
|
default: () => themes_default
|
|
3218
3289
|
});
|
|
3219
|
-
var
|
|
3290
|
+
var defaultImport40 = __toESM(require("@splunk/themes"));
|
|
3220
3291
|
__reExport(themes_exports, require("@splunk/themes"));
|
|
3221
|
-
var themes_default = "default" in
|
|
3292
|
+
var themes_default = "default" in defaultImport40 ? defaultImport40.default : defaultImport40;
|
|
3222
3293
|
|
|
3223
3294
|
// src/Punchcard/PurePunchcard/src/PunchcardBubble.tsx
|
|
3224
3295
|
var BubbleCircle = styled_components_default.circle`
|
|
@@ -3258,25 +3329,26 @@ var MIN_BUBBLE_SIZE_TO_DISPLAY_LABEL = 13;
|
|
|
3258
3329
|
var MAX_DISPLAYABLE_VALUE = 99499999999999;
|
|
3259
3330
|
var VALUE_OVERFLOW_TEXT = "99T+";
|
|
3260
3331
|
var WCAG_LUMINANCE_THRESHOLD = 0.182;
|
|
3261
|
-
var
|
|
3262
|
-
|
|
3263
|
-
|
|
3264
|
-
|
|
3265
|
-
|
|
3266
|
-
|
|
3267
|
-
|
|
3268
|
-
|
|
3269
|
-
|
|
3270
|
-
|
|
3271
|
-
|
|
3272
|
-
|
|
3273
|
-
|
|
3274
|
-
|
|
3275
|
-
|
|
3276
|
-
|
|
3277
|
-
|
|
3278
|
-
|
|
3279
|
-
|
|
3332
|
+
var noop5 = () => {
|
|
3333
|
+
};
|
|
3334
|
+
var PunchcardBubble = ({
|
|
3335
|
+
showBubbleLabel = true,
|
|
3336
|
+
color = "#46D3BB",
|
|
3337
|
+
cx = 0,
|
|
3338
|
+
cy = 0,
|
|
3339
|
+
fillOpacity = 1,
|
|
3340
|
+
handleMouseEnter = noop5,
|
|
3341
|
+
handleMouseLeave = noop5,
|
|
3342
|
+
hover = false,
|
|
3343
|
+
muted = false,
|
|
3344
|
+
pulsate = false,
|
|
3345
|
+
value = void 0,
|
|
3346
|
+
r = 1,
|
|
3347
|
+
handlePointClick = noop5,
|
|
3348
|
+
accessibleLabel = "",
|
|
3349
|
+
tabindex = -1,
|
|
3350
|
+
backgroundColor = null
|
|
3351
|
+
}) => {
|
|
3280
3352
|
const outline = value < 0;
|
|
3281
3353
|
const showPulsateBubble = pulsate && !muted && !hover;
|
|
3282
3354
|
const displayLabel = hover || showBubbleLabel && r >= MIN_BUBBLE_SIZE_TO_DISPLAY_LABEL;
|
|
@@ -3330,73 +3402,33 @@ var PunchcardBubble = (props) => {
|
|
|
3330
3402
|
)
|
|
3331
3403
|
);
|
|
3332
3404
|
};
|
|
3333
|
-
var propTypes2 = {
|
|
3334
|
-
showBubbleLabel: prop_types_exports.bool,
|
|
3335
|
-
backgroundColor: prop_types_exports.string,
|
|
3336
|
-
color: prop_types_exports.string,
|
|
3337
|
-
cx: prop_types_exports.number,
|
|
3338
|
-
cy: prop_types_exports.number,
|
|
3339
|
-
fillOpacity: prop_types_exports.number,
|
|
3340
|
-
handleMouseEnter: prop_types_exports.func,
|
|
3341
|
-
handleMouseLeave: prop_types_exports.func,
|
|
3342
|
-
hover: prop_types_exports.bool,
|
|
3343
|
-
muted: prop_types_exports.bool,
|
|
3344
|
-
pulsate: prop_types_exports.bool,
|
|
3345
|
-
value: prop_types_exports.number,
|
|
3346
|
-
r: prop_types_exports.number,
|
|
3347
|
-
handlePointClick: prop_types_exports.func,
|
|
3348
|
-
accessibleLabel: prop_types_exports.string,
|
|
3349
|
-
tabindex: prop_types_exports.number
|
|
3350
|
-
};
|
|
3351
|
-
var defaultProps2 = {
|
|
3352
|
-
showBubbleLabel: true,
|
|
3353
|
-
backgroundColor: null,
|
|
3354
|
-
color: "#46D3BB",
|
|
3355
|
-
cx: 0,
|
|
3356
|
-
cy: 0,
|
|
3357
|
-
fillOpacity: 1,
|
|
3358
|
-
handleMouseEnter: () => {
|
|
3359
|
-
},
|
|
3360
|
-
handleMouseLeave: () => {
|
|
3361
|
-
},
|
|
3362
|
-
hover: false,
|
|
3363
|
-
muted: false,
|
|
3364
|
-
pulsate: false,
|
|
3365
|
-
r: 1,
|
|
3366
|
-
value: void 0,
|
|
3367
|
-
handlePointClick: () => {
|
|
3368
|
-
},
|
|
3369
|
-
accessibleLabel: "",
|
|
3370
|
-
tabindex: -1
|
|
3371
|
-
};
|
|
3372
|
-
PunchcardBubble.propTypes = propTypes2;
|
|
3373
|
-
PunchcardBubble.defaultProps = defaultProps2;
|
|
3374
3405
|
var PunchcardBubble_default = PunchcardBubble;
|
|
3375
3406
|
|
|
3376
3407
|
// src/Punchcard/PurePunchcard/src/PunchcardRow.tsx
|
|
3377
|
-
var
|
|
3378
|
-
|
|
3379
|
-
|
|
3380
|
-
|
|
3381
|
-
|
|
3382
|
-
|
|
3383
|
-
|
|
3384
|
-
|
|
3385
|
-
|
|
3386
|
-
|
|
3387
|
-
|
|
3388
|
-
|
|
3389
|
-
|
|
3390
|
-
|
|
3391
|
-
|
|
3392
|
-
|
|
3393
|
-
|
|
3394
|
-
|
|
3395
|
-
|
|
3396
|
-
|
|
3397
|
-
|
|
3398
|
-
|
|
3399
|
-
|
|
3408
|
+
var noop6 = () => {
|
|
3409
|
+
};
|
|
3410
|
+
var PunchcardRow = ({
|
|
3411
|
+
showBubbleLabels = null,
|
|
3412
|
+
backgroundColor = null,
|
|
3413
|
+
category,
|
|
3414
|
+
colors,
|
|
3415
|
+
handleMouseEnter = noop6,
|
|
3416
|
+
handleMouseLeave = noop6,
|
|
3417
|
+
maxSizeValue = null,
|
|
3418
|
+
opacities,
|
|
3419
|
+
radiusValues,
|
|
3420
|
+
selectedCategory = null,
|
|
3421
|
+
selectedX = null,
|
|
3422
|
+
selectedY = null,
|
|
3423
|
+
showMaxValuePulsation = true,
|
|
3424
|
+
size: size2,
|
|
3425
|
+
x,
|
|
3426
|
+
xScale,
|
|
3427
|
+
yIndex = null,
|
|
3428
|
+
yPosition = null,
|
|
3429
|
+
yValue = null,
|
|
3430
|
+
handlePointClick = noop6
|
|
3431
|
+
}) => {
|
|
3400
3432
|
return /* @__PURE__ */ react_exports.createElement("g", null, x.map((xValue, index) => {
|
|
3401
3433
|
const sizeValue = size2[index];
|
|
3402
3434
|
const categoryValue = category[index];
|
|
@@ -3454,90 +3486,41 @@ var PunchcardRow = (props) => {
|
|
|
3454
3486
|
);
|
|
3455
3487
|
}));
|
|
3456
3488
|
};
|
|
3457
|
-
var propTypes3 = {
|
|
3458
|
-
showBubbleLabels: prop_types_exports.oneOf(Object.values(BUBBLE_LABELS_TYPES)),
|
|
3459
|
-
backgroundColor: prop_types_exports.string,
|
|
3460
|
-
category: prop_types_exports.arrayOf(prop_types_exports.string),
|
|
3461
|
-
colors: prop_types_exports.arrayOf(prop_types_exports.string),
|
|
3462
|
-
handleMouseEnter: prop_types_exports.func,
|
|
3463
|
-
handleMouseLeave: prop_types_exports.func,
|
|
3464
|
-
maxSizeValue: prop_types_exports.number,
|
|
3465
|
-
opacities: prop_types_exports.arrayOf(prop_types_exports.number),
|
|
3466
|
-
radiusValues: prop_types_exports.arrayOf(prop_types_exports.number),
|
|
3467
|
-
selectedCategory: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number]),
|
|
3468
|
-
selectedX: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number]),
|
|
3469
|
-
selectedY: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number]),
|
|
3470
|
-
showMaxValuePulsation: prop_types_exports.bool,
|
|
3471
|
-
size: prop_types_exports.arrayOf(prop_types_exports.number),
|
|
3472
|
-
x: prop_types_exports.arrayOf(prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number])).isRequired,
|
|
3473
|
-
xScale: prop_types_exports.func,
|
|
3474
|
-
yIndex: prop_types_exports.number,
|
|
3475
|
-
yPosition: prop_types_exports.number,
|
|
3476
|
-
yValue: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number]),
|
|
3477
|
-
handlePointClick: prop_types_exports.func
|
|
3478
|
-
};
|
|
3479
|
-
var defaultProps3 = {
|
|
3480
|
-
backgroundColor: null,
|
|
3481
|
-
showBubbleLabels: null,
|
|
3482
|
-
category: null,
|
|
3483
|
-
colors: null,
|
|
3484
|
-
handleMouseEnter: () => {
|
|
3485
|
-
},
|
|
3486
|
-
handleMouseLeave: () => {
|
|
3487
|
-
},
|
|
3488
|
-
maxSizeValue: null,
|
|
3489
|
-
opacities: null,
|
|
3490
|
-
radiusValues: null,
|
|
3491
|
-
selectedCategory: null,
|
|
3492
|
-
selectedX: null,
|
|
3493
|
-
selectedY: null,
|
|
3494
|
-
showMaxValuePulsation: true,
|
|
3495
|
-
size: null,
|
|
3496
|
-
// eslint-disable-next-line react/default-props-match-prop-types
|
|
3497
|
-
x: null,
|
|
3498
|
-
xScale: null,
|
|
3499
|
-
yIndex: null,
|
|
3500
|
-
yPosition: null,
|
|
3501
|
-
yValue: null,
|
|
3502
|
-
handlePointClick: () => {
|
|
3503
|
-
}
|
|
3504
|
-
};
|
|
3505
|
-
PunchcardRow.propTypes = propTypes3;
|
|
3506
|
-
PunchcardRow.defaultProps = defaultProps3;
|
|
3507
3489
|
var PunchcardRow_default = (0, styled_components_exports.withTheme)(PunchcardRow);
|
|
3508
3490
|
|
|
3509
3491
|
// src/Punchcard/PurePunchcard/src/PunchcardChartArea.tsx
|
|
3510
|
-
var
|
|
3511
|
-
|
|
3512
|
-
|
|
3513
|
-
|
|
3514
|
-
|
|
3515
|
-
|
|
3516
|
-
|
|
3517
|
-
|
|
3518
|
-
|
|
3519
|
-
|
|
3520
|
-
|
|
3521
|
-
|
|
3522
|
-
|
|
3523
|
-
|
|
3524
|
-
|
|
3525
|
-
|
|
3526
|
-
|
|
3527
|
-
|
|
3528
|
-
|
|
3529
|
-
|
|
3530
|
-
|
|
3531
|
-
|
|
3532
|
-
|
|
3533
|
-
|
|
3534
|
-
|
|
3535
|
-
|
|
3536
|
-
|
|
3537
|
-
|
|
3538
|
-
|
|
3539
|
-
|
|
3540
|
-
|
|
3492
|
+
var noop7 = () => {
|
|
3493
|
+
};
|
|
3494
|
+
var PunchcardChartArea = ({
|
|
3495
|
+
showBubbleLabels = "all" /* ALL */,
|
|
3496
|
+
backgroundColor = null,
|
|
3497
|
+
bubbleRowScale = "row" /* ROW */,
|
|
3498
|
+
bubbleScale = "area" /* AREA */,
|
|
3499
|
+
category = null,
|
|
3500
|
+
colorCategoryMapping = null,
|
|
3501
|
+
colorMode = "categorical" /* CATEGORICAL */,
|
|
3502
|
+
bubbleColor = "#A870EF",
|
|
3503
|
+
handleMouseEnter = noop7,
|
|
3504
|
+
handleMouseLeave = noop7,
|
|
3505
|
+
isBubbleSizeDynamic = true,
|
|
3506
|
+
minBubbleColorIntensity = 0.25,
|
|
3507
|
+
minBand = 15,
|
|
3508
|
+
minBubbleSize = 0.01,
|
|
3509
|
+
maxBubbleSize = 1,
|
|
3510
|
+
maxBubbleRadius = 15,
|
|
3511
|
+
minBubbleRadius = 1,
|
|
3512
|
+
showMaxValuePulsation = true,
|
|
3513
|
+
selectedCategory = null,
|
|
3514
|
+
selectedX = null,
|
|
3515
|
+
selectedY = null,
|
|
3516
|
+
size: size2,
|
|
3517
|
+
uniqX,
|
|
3518
|
+
x,
|
|
3519
|
+
xScale,
|
|
3520
|
+
y,
|
|
3521
|
+
yScale,
|
|
3522
|
+
handlePointClick = noop7
|
|
3523
|
+
}) => {
|
|
3541
3524
|
const dataByRows = getDataByRows({
|
|
3542
3525
|
bubbleRowScale,
|
|
3543
3526
|
bubbleScale,
|
|
@@ -3596,78 +3579,11 @@ var PunchcardChartArea = (props) => {
|
|
|
3596
3579
|
);
|
|
3597
3580
|
}));
|
|
3598
3581
|
};
|
|
3599
|
-
var propTypes4 = {
|
|
3600
|
-
showBubbleLabels: prop_types_exports.oneOf(Object.values(BUBBLE_LABELS_TYPES)),
|
|
3601
|
-
backgroundColor: prop_types_exports.string,
|
|
3602
|
-
bubbleRowScale: prop_types_exports.oneOf(Object.values(BUBBLE_ROW_SCALE_TYPES)),
|
|
3603
|
-
bubbleScale: prop_types_exports.oneOf(Object.values(BUBBLE_SCALE_TYPES)),
|
|
3604
|
-
category: prop_types_exports.arrayOf(prop_types_exports.string),
|
|
3605
|
-
colorCategoryMapping: prop_types_exports.func,
|
|
3606
|
-
colorMode: prop_types_exports.oneOf(Object.values(COLOR_MODE_TYPES)),
|
|
3607
|
-
bubbleColor: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.arrayOf(prop_types_exports.string)]),
|
|
3608
|
-
handleMouseEnter: prop_types_exports.func,
|
|
3609
|
-
handleMouseLeave: prop_types_exports.func,
|
|
3610
|
-
isBubbleSizeDynamic: prop_types_exports.bool,
|
|
3611
|
-
minBubbleColorIntensity: prop_types_exports.number,
|
|
3612
|
-
minBand: prop_types_exports.number,
|
|
3613
|
-
minBubbleSize: prop_types_exports.number,
|
|
3614
|
-
maxBubbleSize: prop_types_exports.number,
|
|
3615
|
-
maxBubbleRadius: prop_types_exports.number,
|
|
3616
|
-
minBubbleRadius: prop_types_exports.number,
|
|
3617
|
-
showMaxValuePulsation: prop_types_exports.bool,
|
|
3618
|
-
selectedCategory: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number]),
|
|
3619
|
-
selectedX: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number]),
|
|
3620
|
-
selectedY: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number]),
|
|
3621
|
-
size: prop_types_exports.arrayOf(prop_types_exports.number).isRequired,
|
|
3622
|
-
uniqX: prop_types_exports.arrayOf(prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number])).isRequired,
|
|
3623
|
-
x: prop_types_exports.arrayOf(prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number])).isRequired,
|
|
3624
|
-
xScale: prop_types_exports.func,
|
|
3625
|
-
y: prop_types_exports.arrayOf(prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number])).isRequired,
|
|
3626
|
-
yScale: prop_types_exports.func,
|
|
3627
|
-
handlePointClick: prop_types_exports.func
|
|
3628
|
-
};
|
|
3629
|
-
var defaultProps4 = {
|
|
3630
|
-
showBubbleLabels: "all" /* ALL */,
|
|
3631
|
-
backgroundColor: null,
|
|
3632
|
-
bubbleRowScale: "row" /* ROW */,
|
|
3633
|
-
bubbleScale: "area" /* AREA */,
|
|
3634
|
-
category: null,
|
|
3635
|
-
colorCategoryMapping: null,
|
|
3636
|
-
colorMode: "categorical" /* CATEGORICAL */,
|
|
3637
|
-
bubbleColor: "#A870EF",
|
|
3638
|
-
handleMouseEnter: () => {
|
|
3639
|
-
},
|
|
3640
|
-
handleMouseLeave: () => {
|
|
3641
|
-
},
|
|
3642
|
-
isBubbleSizeDynamic: true,
|
|
3643
|
-
minBubbleColorIntensity: 0.25,
|
|
3644
|
-
minBand: 15,
|
|
3645
|
-
minBubbleSize: 0.01,
|
|
3646
|
-
maxBubbleSize: 1,
|
|
3647
|
-
maxBubbleRadius: 15,
|
|
3648
|
-
minBubbleRadius: 1,
|
|
3649
|
-
showMaxValuePulsation: true,
|
|
3650
|
-
selectedCategory: null,
|
|
3651
|
-
selectedX: null,
|
|
3652
|
-
selectedY: null,
|
|
3653
|
-
// eslint-disable-next-line react/default-props-match-prop-types
|
|
3654
|
-
size: null,
|
|
3655
|
-
// eslint-disable-next-line react/default-props-match-prop-types
|
|
3656
|
-
uniqX: null,
|
|
3657
|
-
// eslint-disable-next-line react/default-props-match-prop-types
|
|
3658
|
-
x: null,
|
|
3659
|
-
xScale: null,
|
|
3660
|
-
// eslint-disable-next-line react/default-props-match-prop-types
|
|
3661
|
-
y: null,
|
|
3662
|
-
yScale: null,
|
|
3663
|
-
handlePointClick: () => {
|
|
3664
|
-
}
|
|
3665
|
-
};
|
|
3666
|
-
PunchcardChartArea.propTypes = propTypes4;
|
|
3667
|
-
PunchcardChartArea.defaultProps = defaultProps4;
|
|
3668
3582
|
var PunchcardChartArea_default = PunchcardChartArea;
|
|
3669
3583
|
|
|
3670
3584
|
// src/Punchcard/PurePunchcard/src/PunchcardLegend.tsx
|
|
3585
|
+
var noop8 = () => {
|
|
3586
|
+
};
|
|
3671
3587
|
var LEGEND_ITEM_VERTICAL_SPACER = 25;
|
|
3672
3588
|
var LEGEND_ITEM_HORIZONTAL_SPACER = 10;
|
|
3673
3589
|
var LEGEND_RECT_WIDTH = 5;
|
|
@@ -3691,19 +3607,18 @@ var LegendText = styled_components_default.text`
|
|
|
3691
3607
|
fill: ${variables_default.contentColorDefault};
|
|
3692
3608
|
font-size: 12px;
|
|
3693
3609
|
`;
|
|
3694
|
-
var PunchcardLegend = (
|
|
3695
|
-
|
|
3696
|
-
|
|
3697
|
-
|
|
3698
|
-
|
|
3699
|
-
|
|
3700
|
-
|
|
3701
|
-
|
|
3702
|
-
|
|
3703
|
-
|
|
3704
|
-
|
|
3705
|
-
|
|
3706
|
-
} = props;
|
|
3610
|
+
var PunchcardLegend = ({
|
|
3611
|
+
category,
|
|
3612
|
+
colorCategoryMapping,
|
|
3613
|
+
handleMouseEnter = noop8,
|
|
3614
|
+
handleMouseLeave = noop8,
|
|
3615
|
+
selected = null,
|
|
3616
|
+
startPositionX = 0,
|
|
3617
|
+
startPositionY = 0,
|
|
3618
|
+
containerWidth = 100,
|
|
3619
|
+
containerHeight = 100,
|
|
3620
|
+
handleLegendClick: handleLegendClick2 = noop8
|
|
3621
|
+
}) => {
|
|
3707
3622
|
const legendWidth = containerWidth - LEGEND_OFFSET_RIGHT - startPositionX;
|
|
3708
3623
|
const legendHeight = containerHeight - LEGEND_OFFSET_BOTTOM;
|
|
3709
3624
|
return /* @__PURE__ */ react_exports.createElement(
|
|
@@ -3740,36 +3655,6 @@ var PunchcardLegend = (props) => {
|
|
|
3740
3655
|
}))
|
|
3741
3656
|
);
|
|
3742
3657
|
};
|
|
3743
|
-
var propTypes5 = {
|
|
3744
|
-
category: prop_types_exports.arrayOf(prop_types_exports.string),
|
|
3745
|
-
colorCategoryMapping: prop_types_exports.func.isRequired,
|
|
3746
|
-
handleMouseEnter: prop_types_exports.func,
|
|
3747
|
-
handleMouseLeave: prop_types_exports.func,
|
|
3748
|
-
selected: prop_types_exports.string,
|
|
3749
|
-
startPositionX: prop_types_exports.number,
|
|
3750
|
-
startPositionY: prop_types_exports.number,
|
|
3751
|
-
containerWidth: prop_types_exports.number,
|
|
3752
|
-
containerHeight: prop_types_exports.number,
|
|
3753
|
-
handleLegendClick: prop_types_exports.func
|
|
3754
|
-
};
|
|
3755
|
-
var defaultProps5 = {
|
|
3756
|
-
category: null,
|
|
3757
|
-
// eslint-disable-next-line react/default-props-match-prop-types
|
|
3758
|
-
colorCategoryMapping: null,
|
|
3759
|
-
handleMouseEnter: () => {
|
|
3760
|
-
},
|
|
3761
|
-
handleMouseLeave: () => {
|
|
3762
|
-
},
|
|
3763
|
-
selected: null,
|
|
3764
|
-
startPositionX: 0,
|
|
3765
|
-
startPositionY: 0,
|
|
3766
|
-
containerWidth: 100,
|
|
3767
|
-
containerHeight: 100,
|
|
3768
|
-
handleLegendClick: () => {
|
|
3769
|
-
}
|
|
3770
|
-
};
|
|
3771
|
-
PunchcardLegend.propTypes = propTypes5;
|
|
3772
|
-
PunchcardLegend.defaultProps = defaultProps5;
|
|
3773
3658
|
var PunchcardLegend_default = PunchcardLegend;
|
|
3774
3659
|
|
|
3775
3660
|
// src/Punchcard/PurePunchcard/src/PunchcardGridLines.tsx
|
|
@@ -3777,8 +3662,14 @@ var GridLine = styled_components_default.line`
|
|
|
3777
3662
|
stroke: ${variables_default.borderColorWeak};
|
|
3778
3663
|
stroke-width: 1px;
|
|
3779
3664
|
`;
|
|
3780
|
-
var PunchcardGridLines = (
|
|
3781
|
-
|
|
3665
|
+
var PunchcardGridLines = ({
|
|
3666
|
+
xStartPosition,
|
|
3667
|
+
xEndPosition,
|
|
3668
|
+
yStartPosition,
|
|
3669
|
+
yEndPosition,
|
|
3670
|
+
xDelta = 10,
|
|
3671
|
+
yDelta = 10
|
|
3672
|
+
}) => {
|
|
3782
3673
|
const yGridLinesXPositions = (0, lodash_exports.range)(xStartPosition, xEndPosition + 1, xDelta);
|
|
3783
3674
|
const xGridLinesYPositions = (0, lodash_exports.range)(yStartPosition, yEndPosition + 1, yDelta);
|
|
3784
3675
|
return /* @__PURE__ */ react_exports.createElement("g", { "data-test": "data-test-gridlines" }, yGridLinesXPositions.map((xValue) => /* @__PURE__ */ react_exports.createElement(
|
|
@@ -3801,27 +3692,11 @@ var PunchcardGridLines = (props) => {
|
|
|
3801
3692
|
}
|
|
3802
3693
|
)));
|
|
3803
3694
|
};
|
|
3804
|
-
var propTypes6 = {
|
|
3805
|
-
xStartPosition: prop_types_exports.number,
|
|
3806
|
-
xEndPosition: prop_types_exports.number,
|
|
3807
|
-
yStartPosition: prop_types_exports.number,
|
|
3808
|
-
yEndPosition: prop_types_exports.number,
|
|
3809
|
-
xDelta: prop_types_exports.number,
|
|
3810
|
-
yDelta: prop_types_exports.number
|
|
3811
|
-
};
|
|
3812
|
-
var defaultProps6 = {
|
|
3813
|
-
xStartPosition: void 0,
|
|
3814
|
-
xEndPosition: void 0,
|
|
3815
|
-
yStartPosition: void 0,
|
|
3816
|
-
yEndPosition: void 0,
|
|
3817
|
-
xDelta: 10,
|
|
3818
|
-
yDelta: 10
|
|
3819
|
-
};
|
|
3820
|
-
PunchcardGridLines.propTypes = propTypes6;
|
|
3821
|
-
PunchcardGridLines.defaultProps = defaultProps6;
|
|
3822
3695
|
var PunchcardGridLines_default = PunchcardGridLines;
|
|
3823
3696
|
|
|
3824
3697
|
// src/Punchcard/PurePunchcard/Punchcard.tsx
|
|
3698
|
+
var noop9 = () => {
|
|
3699
|
+
};
|
|
3825
3700
|
var Container = styled_components_default.div`
|
|
3826
3701
|
cursor: default;
|
|
3827
3702
|
overflow: hidden;
|
|
@@ -3844,7 +3719,37 @@ var PunchcardContainer = styled_components_default.div`
|
|
|
3844
3719
|
var PunchcardSVG = styled_components_default.svg`
|
|
3845
3720
|
${(props) => (0, style_exports.toDimension)((0, lodash_exports.pick)(props, ["width", "height"]))};
|
|
3846
3721
|
`;
|
|
3847
|
-
var
|
|
3722
|
+
var DEFAULT_BUBBLE_COLOR = "#7B56DB";
|
|
3723
|
+
var Punchcard = ({
|
|
3724
|
+
backgroundColor = "transparent",
|
|
3725
|
+
showBubbleLabels = "all" /* ALL */,
|
|
3726
|
+
bubbleRowScale = "global" /* GLOBAL */,
|
|
3727
|
+
bubbleScale = "area" /* AREA */,
|
|
3728
|
+
category = null,
|
|
3729
|
+
categoryField = null,
|
|
3730
|
+
colorMode = "categorical" /* CATEGORICAL */,
|
|
3731
|
+
seriesColors = visualization_color_palettes_exports.CATEGORICAL,
|
|
3732
|
+
bubbleColor = DEFAULT_BUBBLE_COLOR,
|
|
3733
|
+
minBubbleColorIntensity = 0.4,
|
|
3734
|
+
showMaxValuePulsation = true,
|
|
3735
|
+
height = 500,
|
|
3736
|
+
isBubbleSizeDynamic = true,
|
|
3737
|
+
minBubbleSize = 0.25,
|
|
3738
|
+
maxBubbleSize = 1,
|
|
3739
|
+
maxBubbleRadius = 15,
|
|
3740
|
+
minBubbleRadius = 1,
|
|
3741
|
+
useDefaultSort = false,
|
|
3742
|
+
showLegend = true,
|
|
3743
|
+
size: size2 = null,
|
|
3744
|
+
sizeField = null,
|
|
3745
|
+
width = "100%",
|
|
3746
|
+
x = null,
|
|
3747
|
+
y = null,
|
|
3748
|
+
xField = null,
|
|
3749
|
+
yField = null,
|
|
3750
|
+
onPointClick = noop9,
|
|
3751
|
+
onLegendClick = noop9
|
|
3752
|
+
}) => {
|
|
3848
3753
|
const [selectedX, setSelectedX] = react_exports.useState(null);
|
|
3849
3754
|
const [selectedY, setSelectedY] = react_exports.useState(null);
|
|
3850
3755
|
const [selectedCategory, setSelectedCategory] = react_exports.useState(null);
|
|
@@ -3852,17 +3757,17 @@ var Punchcard = (props) => {
|
|
|
3852
3757
|
setContainerWidth(w);
|
|
3853
3758
|
setContainerHeight(h);
|
|
3854
3759
|
}, []);
|
|
3855
|
-
const [containerWidth, setContainerWidth] = react_exports.useState(Number(
|
|
3856
|
-
const [containerHeight, setContainerHeight] = react_exports.useState(Number(
|
|
3760
|
+
const [containerWidth, setContainerWidth] = react_exports.useState(Number(width));
|
|
3761
|
+
const [containerHeight, setContainerHeight] = react_exports.useState(Number(height));
|
|
3857
3762
|
const handleMouseLeave = () => {
|
|
3858
3763
|
setSelectedX(null);
|
|
3859
3764
|
setSelectedY(null);
|
|
3860
3765
|
setSelectedCategory(null);
|
|
3861
3766
|
};
|
|
3862
|
-
const handleLegendHover = (
|
|
3767
|
+
const handleLegendHover = (hoveredCategory) => {
|
|
3863
3768
|
setSelectedX(null);
|
|
3864
3769
|
setSelectedY(null);
|
|
3865
|
-
setSelectedCategory(
|
|
3770
|
+
setSelectedCategory(hoveredCategory);
|
|
3866
3771
|
};
|
|
3867
3772
|
const handleXAxisHover = (xValue) => {
|
|
3868
3773
|
setSelectedX(xValue);
|
|
@@ -3874,43 +3779,17 @@ var Punchcard = (props) => {
|
|
|
3874
3779
|
setSelectedY(yValue);
|
|
3875
3780
|
setSelectedCategory(null);
|
|
3876
3781
|
};
|
|
3877
|
-
const handleBubbleHover = (xValue, yValue,
|
|
3782
|
+
const handleBubbleHover = (xValue, yValue, categoryValue) => {
|
|
3878
3783
|
setSelectedX(xValue);
|
|
3879
3784
|
setSelectedY(yValue);
|
|
3880
|
-
setSelectedCategory(
|
|
3785
|
+
setSelectedCategory(categoryValue);
|
|
3881
3786
|
};
|
|
3882
|
-
const {
|
|
3883
|
-
backgroundColor,
|
|
3884
|
-
showBubbleLabels,
|
|
3885
|
-
bubbleRowScale,
|
|
3886
|
-
bubbleScale,
|
|
3887
|
-
category,
|
|
3888
|
-
categoryField,
|
|
3889
|
-
colorMode,
|
|
3890
|
-
seriesColors,
|
|
3891
|
-
bubbleColor,
|
|
3892
|
-
minBubbleColorIntensity,
|
|
3893
|
-
height,
|
|
3894
|
-
showMaxValuePulsation,
|
|
3895
|
-
isBubbleSizeDynamic,
|
|
3896
|
-
minBubbleSize,
|
|
3897
|
-
maxBubbleSize,
|
|
3898
|
-
maxBubbleRadius,
|
|
3899
|
-
minBubbleRadius,
|
|
3900
|
-
useDefaultSort,
|
|
3901
|
-
showLegend,
|
|
3902
|
-
size: size2,
|
|
3903
|
-
sizeField,
|
|
3904
|
-
width,
|
|
3905
|
-
x,
|
|
3906
|
-
y,
|
|
3907
|
-
xField,
|
|
3908
|
-
yField,
|
|
3909
|
-
onPointClick,
|
|
3910
|
-
onLegendClick
|
|
3911
|
-
} = props;
|
|
3912
3787
|
const calculatedColorMode = category ? colorMode : "sequential" /* SEQUENTIAL */;
|
|
3913
3788
|
const displayLegend = showLegend && calculatedColorMode === "categorical" /* CATEGORICAL */;
|
|
3789
|
+
const chartRef = react_exports.useRef();
|
|
3790
|
+
if (!x || !y || !size2) {
|
|
3791
|
+
return null;
|
|
3792
|
+
}
|
|
3914
3793
|
const uniqX = useDefaultSort ? sortAxis((0, lodash_exports.uniq)(x.map((v) => `${v}`))) : (0, lodash_exports.uniq)(x);
|
|
3915
3794
|
const uniqY = useDefaultSort ? sortAxis((0, lodash_exports.uniq)(y.map((v) => `${v}`))) : (0, lodash_exports.uniq)(y);
|
|
3916
3795
|
const uniqCategory = (0, lodash_exports.uniq)(category);
|
|
@@ -3943,7 +3822,6 @@ var Punchcard = (props) => {
|
|
|
3943
3822
|
}
|
|
3944
3823
|
});
|
|
3945
3824
|
};
|
|
3946
|
-
const chartRef = react_exports.useRef();
|
|
3947
3825
|
const handleKeyDown = (e) => {
|
|
3948
3826
|
var _a, _b;
|
|
3949
3827
|
const keyMap = {
|
|
@@ -4104,71 +3982,6 @@ var Punchcard = (props) => {
|
|
|
4104
3982
|
};
|
|
4105
3983
|
return /* @__PURE__ */ react_exports.createElement(Container, { backgroundColor, height, width }, /* @__PURE__ */ react_exports.createElement(SizeAwareWrapper_default, { width, height, onResize: cachedHandleResize }), renderVisualization());
|
|
4106
3984
|
};
|
|
4107
|
-
var propTypes7 = {
|
|
4108
|
-
backgroundColor: prop_types_exports.string,
|
|
4109
|
-
showBubbleLabels: prop_types_exports.oneOf(Object.values(BUBBLE_LABELS_TYPES)),
|
|
4110
|
-
bubbleRowScale: prop_types_exports.oneOf(Object.values(BUBBLE_ROW_SCALE_TYPES)),
|
|
4111
|
-
bubbleScale: prop_types_exports.oneOf(Object.values(BUBBLE_SCALE_TYPES)),
|
|
4112
|
-
category: prop_types_exports.arrayOf(prop_types_exports.string),
|
|
4113
|
-
categoryField: prop_types_exports.string,
|
|
4114
|
-
colorMode: prop_types_exports.oneOf(Object.values(COLOR_MODE_TYPES)),
|
|
4115
|
-
seriesColors: prop_types_exports.arrayOf(prop_types_exports.string),
|
|
4116
|
-
bubbleColor: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.arrayOf(prop_types_exports.string)]),
|
|
4117
|
-
minBubbleColorIntensity: prop_types_exports.number,
|
|
4118
|
-
height: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number]),
|
|
4119
|
-
isBubbleSizeDynamic: prop_types_exports.bool,
|
|
4120
|
-
minBubbleSize: prop_types_exports.number,
|
|
4121
|
-
maxBubbleSize: prop_types_exports.number,
|
|
4122
|
-
maxBubbleRadius: prop_types_exports.number,
|
|
4123
|
-
minBubbleRadius: prop_types_exports.number,
|
|
4124
|
-
useDefaultSort: prop_types_exports.bool,
|
|
4125
|
-
showMaxValuePulsation: prop_types_exports.bool,
|
|
4126
|
-
showLegend: prop_types_exports.bool,
|
|
4127
|
-
sizeField: prop_types_exports.string,
|
|
4128
|
-
width: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number]),
|
|
4129
|
-
// hotfix: isRequired check is removed here for x, y and size props
|
|
4130
|
-
// to remove console warnings on early return of this component and
|
|
4131
|
-
// implemented in config file using requiredProps
|
|
4132
|
-
x: prop_types_exports.arrayOf(prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number])),
|
|
4133
|
-
y: prop_types_exports.arrayOf(prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number])),
|
|
4134
|
-
size: prop_types_exports.arrayOf(prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number])),
|
|
4135
|
-
xField: prop_types_exports.string,
|
|
4136
|
-
yField: prop_types_exports.string,
|
|
4137
|
-
onPointClick: prop_types_exports.func,
|
|
4138
|
-
onLegendClick: prop_types_exports.func
|
|
4139
|
-
};
|
|
4140
|
-
var defaultProps7 = {
|
|
4141
|
-
backgroundColor: "transparent",
|
|
4142
|
-
showBubbleLabels: "all",
|
|
4143
|
-
bubbleRowScale: "global",
|
|
4144
|
-
bubbleScale: "area",
|
|
4145
|
-
category: null,
|
|
4146
|
-
categoryField: null,
|
|
4147
|
-
colorMode: "categorical",
|
|
4148
|
-
seriesColors: visualization_color_palettes_exports.CATEGORICAL,
|
|
4149
|
-
bubbleColor: "#7B56DB",
|
|
4150
|
-
minBubbleColorIntensity: 0.4,
|
|
4151
|
-
showMaxValuePulsation: true,
|
|
4152
|
-
height: 500,
|
|
4153
|
-
isBubbleSizeDynamic: true,
|
|
4154
|
-
minBubbleSize: 0.25,
|
|
4155
|
-
maxBubbleSize: 1,
|
|
4156
|
-
maxBubbleRadius: 15,
|
|
4157
|
-
minBubbleRadius: 1,
|
|
4158
|
-
useDefaultSort: false,
|
|
4159
|
-
showLegend: true,
|
|
4160
|
-
size: null,
|
|
4161
|
-
sizeField: null,
|
|
4162
|
-
width: "100%",
|
|
4163
|
-
x: null,
|
|
4164
|
-
y: null,
|
|
4165
|
-
xField: null,
|
|
4166
|
-
yField: null,
|
|
4167
|
-
onPointClick: lodash_exports.noop,
|
|
4168
|
-
onLegendClick: lodash_exports.noop
|
|
4169
|
-
};
|
|
4170
|
-
Punchcard.propTypes = propTypes7;
|
|
4171
|
-
Punchcard.defaultProps = defaultProps7;
|
|
4172
3985
|
var Punchcard_default = Punchcard;
|
|
4173
3986
|
|
|
4174
3987
|
// src/Punchcard/punchcardUtils.ts
|
|
@@ -4230,7 +4043,7 @@ var computeVizProps = (_a) => {
|
|
|
4230
4043
|
x,
|
|
4231
4044
|
y,
|
|
4232
4045
|
// PurePunchcard accepts category as string array
|
|
4233
|
-
category: category
|
|
4046
|
+
category: category == null ? void 0 : category.map(String)
|
|
4234
4047
|
}, options);
|
|
4235
4048
|
};
|
|
4236
4049
|
var viz = withDashboardViz_default({
|