@splunk/visualizations 28.5.2 → 28.6.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 -8
- 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/config.d.ts.map +1 -1
- package/Events.config.js +13 -3
- package/Events.config.js.map +2 -2
- package/Events.js +330 -194
- 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/PureMap/BubbleLayer.d.ts.map +1 -1
- package/Map/PureMap/Tooltip.d.ts.map +1 -1
- package/Map/config.d.ts.map +1 -1
- package/Map.config.js +4 -1
- package/Map.config.js.map +2 -2
- package/Map.js +296 -169
- package/Map.js.map +4 -4
- package/Markdown/Markdown.d.ts.map +1 -1
- package/Markdown.config.js.map +1 -1
- package/Markdown.js +283 -157
- 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 -1
- package/NetworkGraph/NetworkGraph.d.ts.map +1 -1
- package/NetworkGraph/PureNetworkGraph/utils/networkGraphUtils.d.ts.map +1 -1
- package/NetworkGraph.config.js.map +2 -2
- package/NetworkGraph.js +628 -434
- 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 +21 -0
- package/ProcessTree/ProcessTree.d.ts.map +1 -0
- package/ProcessTree/PureProcessTree/PureProcessTree.d.ts +32 -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 +44 -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 +44 -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 +80 -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 +5058 -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/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 +534 -314
- 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/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.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 +769 -355
- 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 +2 -6
- package/common/utils/mapUtils.js.map +2 -2
- 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/package.json +32 -27
- package/LICENSE.md +0 -449
package/Markdown.js
CHANGED
|
@@ -12,6 +12,7 @@ var __getOwnPropSymbols = Object.getOwnPropertySymbols;
|
|
|
12
12
|
var __getProtoOf = Object.getPrototypeOf;
|
|
13
13
|
var __hasOwnProp = Object.prototype.hasOwnProperty;
|
|
14
14
|
var __propIsEnum = Object.prototype.propertyIsEnumerable;
|
|
15
|
+
var __pow = Math.pow;
|
|
15
16
|
var __defNormalProp = (obj, key, value) => key in obj ? __defProp(obj, key, { enumerable: true, configurable: true, writable: true, value }) : obj[key] = value;
|
|
16
17
|
var __spreadValues = (a, b) => {
|
|
17
18
|
for (var prop in b || (b = {}))
|
|
@@ -59,6 +60,7 @@ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__ge
|
|
|
59
60
|
mod
|
|
60
61
|
));
|
|
61
62
|
var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
|
|
63
|
+
var __publicField = (obj, key, value) => __defNormalProp(obj, typeof key !== "symbol" ? key + "" : key, value);
|
|
62
64
|
|
|
63
65
|
// src/Markdown/index.ts
|
|
64
66
|
var Markdown_exports3 = {};
|
|
@@ -301,7 +303,7 @@ var DefaultVizActionHandler = class {
|
|
|
301
303
|
var INITIAL_HEIGHT = 250;
|
|
302
304
|
var SplunkVisualization = class {
|
|
303
305
|
};
|
|
304
|
-
SplunkVisualization
|
|
306
|
+
__publicField(SplunkVisualization, "propTypes", {
|
|
305
307
|
/**
|
|
306
308
|
* display mode
|
|
307
309
|
*/
|
|
@@ -377,11 +379,11 @@ SplunkVisualization.propTypes = {
|
|
|
377
379
|
* A callback to request new data with updated request params
|
|
378
380
|
*/
|
|
379
381
|
onRequestParamsChange: prop_types_exports.func
|
|
380
|
-
};
|
|
382
|
+
});
|
|
381
383
|
/**
|
|
382
384
|
*
|
|
383
385
|
*/
|
|
384
|
-
SplunkVisualization
|
|
386
|
+
__publicField(SplunkVisualization, "defaults", {
|
|
385
387
|
// BaseVisualization in dashboard-visualizations uses 100% for width but 250 for height
|
|
386
388
|
width: "100%",
|
|
387
389
|
height: INITIAL_HEIGHT,
|
|
@@ -396,7 +398,7 @@ SplunkVisualization.defaults = {
|
|
|
396
398
|
onComputedProps: () => ({}),
|
|
397
399
|
loading: false,
|
|
398
400
|
onRequestParamsChange: lodash_exports.noop
|
|
399
|
-
};
|
|
401
|
+
});
|
|
400
402
|
var SplunkVisualization_default = SplunkVisualization;
|
|
401
403
|
|
|
402
404
|
// src/common/interfaces/DataSource.ts
|
|
@@ -450,9 +452,9 @@ var usePaginationParams = ({
|
|
|
450
452
|
meta,
|
|
451
453
|
onRequestParamsChange
|
|
452
454
|
}) => {
|
|
453
|
-
const totalCount = meta
|
|
454
|
-
const offset = requestParams
|
|
455
|
-
const count = requestParams
|
|
455
|
+
const totalCount = (meta == null ? void 0 : meta.totalCount) || 0;
|
|
456
|
+
const offset = (requestParams == null ? void 0 : requestParams.offset) || 0;
|
|
457
|
+
const count = requestParams == null ? void 0 : requestParams.count;
|
|
456
458
|
const totalPages = typeof count === "number" && count > 0 ? Math.ceil(totalCount / count) : 0;
|
|
457
459
|
const current = typeof count === "number" && count > 0 ? Math.floor(offset / count) + 1 : 0;
|
|
458
460
|
const isPaging = totalPages > 1 && typeof onRequestParamsChange === "function";
|
|
@@ -560,7 +562,7 @@ var Cover = styled_components_default.div`
|
|
|
560
562
|
bottom: 0;
|
|
561
563
|
`;
|
|
562
564
|
var Blocker = styled_components_default.div.attrs({
|
|
563
|
-
"data-splunk-visualization-version": "28.
|
|
565
|
+
"data-splunk-visualization-version": "28.6.0 - 92427899a"
|
|
564
566
|
})`
|
|
565
567
|
position: relative;
|
|
566
568
|
width: 100%;
|
|
@@ -650,7 +652,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
650
652
|
FixSizeItem,
|
|
651
653
|
{
|
|
652
654
|
"data-test": "fix-size-item",
|
|
653
|
-
"data-splunk-visualization-version": "28.
|
|
655
|
+
"data-splunk-visualization-version": "28.6.0 - 92427899a",
|
|
654
656
|
width,
|
|
655
657
|
height,
|
|
656
658
|
backgroundColor
|
|
@@ -1191,6 +1193,24 @@ var defaultImport33 = __toESM(require("@splunk/react-icons/Triangle"));
|
|
|
1191
1193
|
__reExport(Triangle_exports, require("@splunk/react-icons/Triangle"));
|
|
1192
1194
|
var Triangle_default = "default" in defaultImport33 ? defaultImport33.default : defaultImport33;
|
|
1193
1195
|
|
|
1196
|
+
// esm-externals:@splunk/visualizations-shared/propUtils
|
|
1197
|
+
var propUtils_exports = {};
|
|
1198
|
+
__export(propUtils_exports, {
|
|
1199
|
+
default: () => propUtils_default
|
|
1200
|
+
});
|
|
1201
|
+
var defaultImport34 = __toESM(require("@splunk/visualizations-shared/propUtils"));
|
|
1202
|
+
__reExport(propUtils_exports, require("@splunk/visualizations-shared/propUtils"));
|
|
1203
|
+
var propUtils_default = "default" in defaultImport34 ? defaultImport34.default : defaultImport34;
|
|
1204
|
+
|
|
1205
|
+
// esm-externals:@splunk/visualizations-shared/simpleXMLOptions
|
|
1206
|
+
var simpleXMLOptions_exports = {};
|
|
1207
|
+
__export(simpleXMLOptions_exports, {
|
|
1208
|
+
default: () => simpleXMLOptions_default
|
|
1209
|
+
});
|
|
1210
|
+
var defaultImport35 = __toESM(require("@splunk/visualizations-shared/simpleXMLOptions"));
|
|
1211
|
+
__reExport(simpleXMLOptions_exports, require("@splunk/visualizations-shared/simpleXMLOptions"));
|
|
1212
|
+
var simpleXMLOptions_default = "default" in defaultImport35 ? defaultImport35.default : defaultImport35;
|
|
1213
|
+
|
|
1194
1214
|
// src/common/chartingUtils.ts
|
|
1195
1215
|
var DEFAULT_LINE_WIDTH = 2;
|
|
1196
1216
|
var getAnnotationsForCanvas = ({
|
|
@@ -1228,9 +1248,9 @@ var shouldEnableSearchZoom = (eventHandlers = [], xField = "") => {
|
|
|
1228
1248
|
const xAxisIsTime = xField === "_time";
|
|
1229
1249
|
return !!rangeSelectEventHandler && xAxisIsTime;
|
|
1230
1250
|
};
|
|
1231
|
-
var canvasSupportedTimeSeriesCharts = ["splunk.line"];
|
|
1251
|
+
var canvasSupportedTimeSeriesCharts = ["splunk.line", "splunk.area"];
|
|
1232
1252
|
var isTimeSeriesCanvasRenderSupported = (vizConfigKey) => {
|
|
1233
|
-
return canvasSupportedTimeSeriesCharts.
|
|
1253
|
+
return canvasSupportedTimeSeriesCharts.includes(vizConfigKey);
|
|
1234
1254
|
};
|
|
1235
1255
|
var filterChartDataFromInternalFields = (chartData) => {
|
|
1236
1256
|
const { fields, columns } = chartData;
|
|
@@ -1385,46 +1405,66 @@ var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInt
|
|
|
1385
1405
|
}
|
|
1386
1406
|
return y2Config;
|
|
1387
1407
|
};
|
|
1388
|
-
var
|
|
1408
|
+
var getSeriesType = (isOverlay, isAreaChart, isStacked) => {
|
|
1409
|
+
if (isOverlay) return "line";
|
|
1410
|
+
if (!isAreaChart) return void 0;
|
|
1411
|
+
return isStacked ? "stacked-area" : "area";
|
|
1412
|
+
};
|
|
1413
|
+
var getY2Scale = (field, y2fields, overlayFields) => {
|
|
1414
|
+
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));
|
|
1415
|
+
return assignToY2 ? "y2" : "y";
|
|
1416
|
+
};
|
|
1417
|
+
var getSeriesOverrides = (opts) => {
|
|
1418
|
+
var _a;
|
|
1419
|
+
const {
|
|
1420
|
+
yfields,
|
|
1421
|
+
y2fields,
|
|
1422
|
+
lineWidth,
|
|
1423
|
+
overlayFields,
|
|
1424
|
+
y2Enabled,
|
|
1425
|
+
nullValueMode,
|
|
1426
|
+
markerDisplay,
|
|
1427
|
+
lineDashStyle,
|
|
1428
|
+
lineDashStylesByField,
|
|
1429
|
+
stepPosition,
|
|
1430
|
+
stepPositionsByField,
|
|
1431
|
+
type,
|
|
1432
|
+
stackMode,
|
|
1433
|
+
showLines
|
|
1434
|
+
} = opts;
|
|
1389
1435
|
const seriesConfig = {};
|
|
1390
1436
|
let spanGaps;
|
|
1391
|
-
let replaceNullsWithZero;
|
|
1392
1437
|
if (nullValueMode === "gaps") {
|
|
1393
1438
|
spanGaps = false;
|
|
1394
|
-
} else if (nullValueMode
|
|
1439
|
+
} else if (nullValueMode != null) {
|
|
1395
1440
|
spanGaps = true;
|
|
1396
|
-
|
|
1397
|
-
|
|
1398
|
-
}
|
|
1441
|
+
} else {
|
|
1442
|
+
spanGaps = void 0;
|
|
1399
1443
|
}
|
|
1400
|
-
|
|
1444
|
+
const replaceNullsWithZero = nullValueMode === "zero" ? true : void 0;
|
|
1445
|
+
const isAreaChart = type === "area";
|
|
1446
|
+
const isStacked = isAreaChart && (stackMode === "stacked" || stackMode === "stacked100");
|
|
1447
|
+
const areaFields = isAreaChart ? yfields.filter((f) => !(overlayFields == null ? void 0 : overlayFields.includes(f))) : yfields;
|
|
1448
|
+
const overlayFieldsInOrder = (_a = overlayFields == null ? void 0 : overlayFields.filter((f) => yfields.includes(f))) != null ? _a : [];
|
|
1449
|
+
const orderedFields = isAreaChart ? [...areaFields, ...overlayFieldsInOrder] : yfields;
|
|
1450
|
+
orderedFields.forEach((field) => {
|
|
1451
|
+
var _a2;
|
|
1452
|
+
const isOverlay = (_a2 = overlayFields == null ? void 0 : overlayFields.includes(field)) != null ? _a2 : false;
|
|
1453
|
+
const isPercent = isAreaChart && stackMode === "stacked100" && !isOverlay;
|
|
1454
|
+
const shouldHideAreaOutline = isAreaChart && showLines === false && !isOverlay;
|
|
1401
1455
|
seriesConfig[field] = {
|
|
1402
|
-
overrides: {
|
|
1456
|
+
overrides: __spreadValues({
|
|
1457
|
+
width: shouldHideAreaOutline ? 0 : lineWidth != null ? lineWidth : DEFAULT_LINE_WIDTH
|
|
1458
|
+
}, isPercent ? { stacking: { mode: "percent", group: "A" } } : {})
|
|
1403
1459
|
};
|
|
1404
|
-
|
|
1405
|
-
|
|
1406
|
-
|
|
1407
|
-
if (y2Enabled)
|
|
1408
|
-
|
|
1409
|
-
|
|
1410
|
-
|
|
1411
|
-
|
|
1412
|
-
);
|
|
1413
|
-
if (shouldAssignToY2) {
|
|
1414
|
-
seriesConfig[field].overrides.scale = "y2";
|
|
1415
|
-
} else {
|
|
1416
|
-
seriesConfig[field].overrides.scale = "y";
|
|
1417
|
-
}
|
|
1418
|
-
}
|
|
1419
|
-
if (overlayFields == null ? void 0 : overlayFields.includes(field)) {
|
|
1420
|
-
seriesConfig[field].type = "line";
|
|
1421
|
-
}
|
|
1422
|
-
if (markerDisplay !== void 0) {
|
|
1423
|
-
seriesConfig[field].markerDisplay = markerDisplay;
|
|
1424
|
-
}
|
|
1425
|
-
const fieldDashStyle = (lineDashStylesByField == null ? void 0 : lineDashStylesByField[field]) || lineDashStyle;
|
|
1426
|
-
if (fieldDashStyle) {
|
|
1427
|
-
seriesConfig[field].lineDashStyle = fieldDashStyle;
|
|
1460
|
+
const seriesType = getSeriesType(isOverlay, isAreaChart, isStacked);
|
|
1461
|
+
if (seriesType !== void 0) seriesConfig[field].type = seriesType;
|
|
1462
|
+
if (spanGaps !== void 0) seriesConfig[field].overrides.spanGaps = spanGaps;
|
|
1463
|
+
if (y2Enabled) seriesConfig[field].overrides.scale = getY2Scale(field, y2fields, overlayFields);
|
|
1464
|
+
if (markerDisplay !== void 0) seriesConfig[field].markerDisplay = markerDisplay;
|
|
1465
|
+
if (!isAreaChart || isOverlay) {
|
|
1466
|
+
const fieldDashStyle = (lineDashStylesByField == null ? void 0 : lineDashStylesByField[field]) || lineDashStyle;
|
|
1467
|
+
if (fieldDashStyle) seriesConfig[field].lineDashStyle = fieldDashStyle;
|
|
1428
1468
|
}
|
|
1429
1469
|
const hasFieldStepPosition = Object.hasOwn(stepPositionsByField || {}, field);
|
|
1430
1470
|
const fieldStepPosition = hasFieldStepPosition ? stepPositionsByField == null ? void 0 : stepPositionsByField[field] : stepPosition;
|
|
@@ -1472,9 +1512,9 @@ var visualization_schemas_exports = {};
|
|
|
1472
1512
|
__export(visualization_schemas_exports, {
|
|
1473
1513
|
default: () => visualization_schemas_default
|
|
1474
1514
|
});
|
|
1475
|
-
var
|
|
1515
|
+
var defaultImport36 = __toESM(require("@splunk/visualization-schemas"));
|
|
1476
1516
|
__reExport(visualization_schemas_exports, require("@splunk/visualization-schemas"));
|
|
1477
|
-
var visualization_schemas_default = "default" in
|
|
1517
|
+
var visualization_schemas_default = "default" in defaultImport36 ? defaultImport36.default : defaultImport36;
|
|
1478
1518
|
|
|
1479
1519
|
// src/common/hooks/useTrellisEnabled.ts
|
|
1480
1520
|
var useTrellisFeatureFlagOn = () => {
|
|
@@ -1504,8 +1544,27 @@ var TrellisTitleDiv = styled_components_default.div`
|
|
|
1504
1544
|
background-color: ${(props) => props.backgroundColor};
|
|
1505
1545
|
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.
|
|
1506
1546
|
`;
|
|
1547
|
+
var formatTrellisKey = (value) => {
|
|
1548
|
+
if (value === null || value === void 0) {
|
|
1549
|
+
return "";
|
|
1550
|
+
}
|
|
1551
|
+
if (typeof value === "string") {
|
|
1552
|
+
return value;
|
|
1553
|
+
}
|
|
1554
|
+
if (typeof value === "number" || typeof value === "boolean") {
|
|
1555
|
+
return value.toString();
|
|
1556
|
+
}
|
|
1557
|
+
if (typeof value === "symbol") {
|
|
1558
|
+
return value.toString();
|
|
1559
|
+
}
|
|
1560
|
+
try {
|
|
1561
|
+
return JSON.stringify(value);
|
|
1562
|
+
} catch (e) {
|
|
1563
|
+
return typeof value === "bigint" ? value.toString() : "";
|
|
1564
|
+
}
|
|
1565
|
+
};
|
|
1507
1566
|
var TrellisTitle = (props) => {
|
|
1508
|
-
const titleText =
|
|
1567
|
+
const titleText = formatTrellisKey(props.trellisKey);
|
|
1509
1568
|
return /* @__PURE__ */ react_exports.createElement(
|
|
1510
1569
|
TrellisTitleDiv,
|
|
1511
1570
|
{
|
|
@@ -1641,6 +1700,38 @@ var parseArrayOption = (value) => {
|
|
|
1641
1700
|
}
|
|
1642
1701
|
return void 0;
|
|
1643
1702
|
};
|
|
1703
|
+
var getAreaOpacityForCanvas = (areaOpacity) => (
|
|
1704
|
+
// Preserve legacy visualizations behavior where area opacity is squared to match charting output.
|
|
1705
|
+
areaOpacity !== void 0 && areaOpacity !== null ? __pow(areaOpacity, 2) : areaOpacity
|
|
1706
|
+
);
|
|
1707
|
+
var parseTickIntervalOption = (simpleXMLValue, canvasValue) => {
|
|
1708
|
+
if (simpleXMLValue) return Number(simpleXMLValue);
|
|
1709
|
+
if (canvasValue) return Number(canvasValue);
|
|
1710
|
+
return void 0;
|
|
1711
|
+
};
|
|
1712
|
+
var getYAxisTitles = ({
|
|
1713
|
+
y2Enabled,
|
|
1714
|
+
yFields,
|
|
1715
|
+
y2Fields,
|
|
1716
|
+
overlayFields,
|
|
1717
|
+
yAxisTitleText,
|
|
1718
|
+
yAxisTitleVisibility,
|
|
1719
|
+
y2AxisTitleText,
|
|
1720
|
+
y2AxisTitleVisibility,
|
|
1721
|
+
containerHeight
|
|
1722
|
+
}) => {
|
|
1723
|
+
const yFieldsForTitle = y2Enabled ? yFields.filter((field) => !y2Fields.includes(field)) : yFields;
|
|
1724
|
+
const fieldsForY2Axis = y2Fields.length > 0 ? y2Fields : overlayFields;
|
|
1725
|
+
const yAxisTitle = ellipsisAxisTitle(
|
|
1726
|
+
getComputedAxisTitles(yAxisTitleText, yFieldsForTitle, yAxisTitleVisibility),
|
|
1727
|
+
containerHeight
|
|
1728
|
+
);
|
|
1729
|
+
const y2AxisTitle = ellipsisAxisTitle(
|
|
1730
|
+
getComputedAxisTitles(y2AxisTitleText, fieldsForY2Axis, y2AxisTitleVisibility),
|
|
1731
|
+
containerHeight
|
|
1732
|
+
);
|
|
1733
|
+
return { yAxisTitle, y2AxisTitle };
|
|
1734
|
+
};
|
|
1644
1735
|
var TimeSeriesChartWrapper = (props) => {
|
|
1645
1736
|
var _b, _c, _d;
|
|
1646
1737
|
const _a = props, {
|
|
@@ -1730,6 +1821,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1730
1821
|
"chart.overlayFields": overlayFieldsStr,
|
|
1731
1822
|
"chart.nullValueMode": nullValueMode,
|
|
1732
1823
|
"chart.showDataLabels": showDataLabels,
|
|
1824
|
+
"chart.showLines": showLines,
|
|
1825
|
+
"chart.stackMode": stackMode,
|
|
1733
1826
|
lineWidth,
|
|
1734
1827
|
lineDashStyle,
|
|
1735
1828
|
fieldDashStyles: lineDashStylesByFieldStr,
|
|
@@ -1758,7 +1851,10 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1758
1851
|
yAxisMinorTickSize,
|
|
1759
1852
|
y2AxisMinorTickSize,
|
|
1760
1853
|
showYAxisWithZero: showYAxisWithZeroFromOptions,
|
|
1761
|
-
showY2AxisWithZero: showY2AxisWithZeroFromOptions
|
|
1854
|
+
showY2AxisWithZero: showY2AxisWithZeroFromOptions,
|
|
1855
|
+
// area only props
|
|
1856
|
+
areaFillOpacity: areaOpacity,
|
|
1857
|
+
chart: chartType
|
|
1762
1858
|
} = options;
|
|
1763
1859
|
const dataValuesDisplay = showDataLabels === "none" ? "off" : showDataLabels;
|
|
1764
1860
|
const showYAxisWithZero = showYAxisWithZeroFromProps != null ? showYAxisWithZeroFromProps : showYAxisWithZeroFromOptions;
|
|
@@ -1775,13 +1871,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1775
1871
|
const yAxisMax = parseAxisValue(yAxisMaxRaw);
|
|
1776
1872
|
const y2AxisMin = parseAxisValue(y2AxisMinRaw);
|
|
1777
1873
|
const y2AxisMax = parseAxisValue(y2AxisMaxRaw);
|
|
1778
|
-
const
|
|
1779
|
-
|
|
1780
|
-
|
|
1781
|
-
|
|
1782
|
-
|
|
1783
|
-
const yAxisMajorTickIntervalNum = parseTickInterval(yAxisMajorUnitFromSimpleXML, yAxisMajorTickInterval);
|
|
1784
|
-
const y2AxisMajorTickIntervalNum = parseTickInterval(
|
|
1874
|
+
const yAxisMajorTickIntervalNum = parseTickIntervalOption(
|
|
1875
|
+
yAxisMajorUnitFromSimpleXML,
|
|
1876
|
+
yAxisMajorTickInterval
|
|
1877
|
+
);
|
|
1878
|
+
const y2AxisMajorTickIntervalNum = parseTickIntervalOption(
|
|
1785
1879
|
y2AxisMajorUnitFromSimpleXML,
|
|
1786
1880
|
y2AxisMajorTickInterval
|
|
1787
1881
|
);
|
|
@@ -1790,6 +1884,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1790
1884
|
const y2AxisMajorTickSizeNum = y2AxisMajorTickSize != null ? Number(y2AxisMajorTickSize) : void 0;
|
|
1791
1885
|
const yAxisMinorTickSizeNum = yAxisMinorTickSize != null ? Number(yAxisMinorTickSize) : void 0;
|
|
1792
1886
|
const y2AxisMinorTickSizeNum = y2AxisMinorTickSize != null ? Number(y2AxisMinorTickSize) : void 0;
|
|
1887
|
+
const areaOpacityForCanvas = getAreaOpacityForCanvas(areaOpacity);
|
|
1793
1888
|
const seriesColors = seriesColorsStr ? JSON.parse(seriesColorsStr) : void 0;
|
|
1794
1889
|
const seriesColorsByField = fieldColors ? JSON.parse(fieldColors) : void 0;
|
|
1795
1890
|
const lineDashStylesByField = lineDashStylesByFieldStr ? JSON.parse(lineDashStylesByFieldStr) : void 0;
|
|
@@ -1820,26 +1915,40 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1820
1915
|
);
|
|
1821
1916
|
let xAxisTitle = getComputedAxisTitles(xAxisTitleText, [xField], xAxisTitleVisibility);
|
|
1822
1917
|
xAxisTitle = ellipsisAxisTitle(xAxisTitle, containerWidth);
|
|
1823
|
-
const
|
|
1824
|
-
|
|
1825
|
-
|
|
1826
|
-
|
|
1827
|
-
|
|
1828
|
-
|
|
1918
|
+
const { yAxisTitle, y2AxisTitle } = getYAxisTitles({
|
|
1919
|
+
y2Enabled,
|
|
1920
|
+
yFields,
|
|
1921
|
+
y2Fields,
|
|
1922
|
+
overlayFields,
|
|
1923
|
+
yAxisTitleText,
|
|
1924
|
+
yAxisTitleVisibility,
|
|
1925
|
+
y2AxisTitleText,
|
|
1926
|
+
y2AxisTitleVisibility,
|
|
1927
|
+
containerHeight
|
|
1928
|
+
});
|
|
1829
1929
|
const xScaleConfig = (0, react_exports.useMemo)(
|
|
1830
1930
|
() => getXScaleConfig(xAxisTitle, xAxisLabelVisibility, xAxisLabelRotation),
|
|
1831
1931
|
[xAxisTitle, xAxisLabelVisibility, xAxisLabelRotation]
|
|
1832
1932
|
);
|
|
1933
|
+
const isStacked100 = stackMode === "stacked100";
|
|
1833
1934
|
const yScaleConfig = (0, react_exports.useMemo)(
|
|
1834
|
-
() =>
|
|
1835
|
-
|
|
1836
|
-
|
|
1837
|
-
|
|
1838
|
-
|
|
1839
|
-
|
|
1840
|
-
|
|
1841
|
-
|
|
1842
|
-
|
|
1935
|
+
() => {
|
|
1936
|
+
const config2 = getYScaleConfig(
|
|
1937
|
+
yAxisTitle,
|
|
1938
|
+
yAxisAbbreviation,
|
|
1939
|
+
yAxisScale,
|
|
1940
|
+
yAxisLabelVisibility,
|
|
1941
|
+
yAxisMin,
|
|
1942
|
+
yAxisMax
|
|
1943
|
+
);
|
|
1944
|
+
if (isStacked100) {
|
|
1945
|
+
config2.y.tickFmt = (v) => `${Math.round(v * 100)}%`;
|
|
1946
|
+
config2.y.range = () => [0, 1];
|
|
1947
|
+
}
|
|
1948
|
+
return config2;
|
|
1949
|
+
},
|
|
1950
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
1951
|
+
[yAxisTitle, yAxisAbbreviation, yAxisScale, yAxisLabelVisibility, yAxisMin, yAxisMax, isStacked100]
|
|
1843
1952
|
);
|
|
1844
1953
|
const y2ScaleConfig = (0, react_exports.useMemo)(() => {
|
|
1845
1954
|
if (y2Enabled) {
|
|
@@ -1871,10 +1980,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1871
1980
|
];
|
|
1872
1981
|
chartData.fields = filteredChartData.fields;
|
|
1873
1982
|
chartData.columns = seriesDataFormatted;
|
|
1983
|
+
const normalizedStackMode = stackMode === "stacked" || stackMode === "stacked100" ? stackMode : "auto";
|
|
1874
1984
|
const seriesOverrides = (0, react_exports.useMemo)(
|
|
1875
|
-
() => getSeriesOverrides(
|
|
1876
|
-
yFields,
|
|
1877
|
-
y2Fields,
|
|
1985
|
+
() => getSeriesOverrides({
|
|
1986
|
+
yfields: yFields,
|
|
1987
|
+
y2fields: y2Fields,
|
|
1878
1988
|
lineWidth,
|
|
1879
1989
|
overlayFields,
|
|
1880
1990
|
y2Enabled,
|
|
@@ -1883,8 +1993,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1883
1993
|
lineDashStyle,
|
|
1884
1994
|
lineDashStylesByField,
|
|
1885
1995
|
stepPosition,
|
|
1886
|
-
stepPositionsByField
|
|
1887
|
-
|
|
1996
|
+
stepPositionsByField,
|
|
1997
|
+
type: chartType,
|
|
1998
|
+
stackMode: normalizedStackMode,
|
|
1999
|
+
showLines
|
|
2000
|
+
}),
|
|
1888
2001
|
[
|
|
1889
2002
|
yFields,
|
|
1890
2003
|
y2Fields,
|
|
@@ -1896,7 +2009,10 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1896
2009
|
lineDashStyle,
|
|
1897
2010
|
lineDashStylesByField,
|
|
1898
2011
|
stepPosition,
|
|
1899
|
-
stepPositionsByField
|
|
2012
|
+
stepPositionsByField,
|
|
2013
|
+
chartType,
|
|
2014
|
+
normalizedStackMode,
|
|
2015
|
+
showLines
|
|
1900
2016
|
]
|
|
1901
2017
|
);
|
|
1902
2018
|
const chartingEventAnnotations = (0, react_exports.useMemo)(
|
|
@@ -1964,50 +2080,54 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
1964
2080
|
react_exports.useEffect(() => {
|
|
1965
2081
|
additionalTooltipValuesRef.current = additionalTooltipValues;
|
|
1966
2082
|
}, [additionalTooltipValues]);
|
|
2083
|
+
const handleCrosshairMouseout = react_exports.useCallback(() => {
|
|
2084
|
+
if (onPointMouseOut && lastPayloadRef.current) {
|
|
2085
|
+
onPointMouseOut({
|
|
2086
|
+
type: "point.mouseout",
|
|
2087
|
+
originalEvent: lastOriginalEventRef.current,
|
|
2088
|
+
payload: lastPayloadRef.current
|
|
2089
|
+
});
|
|
2090
|
+
}
|
|
2091
|
+
previousMouseoverPayloadRef.current = null;
|
|
2092
|
+
}, [onPointMouseOut]);
|
|
1967
2093
|
const handleChartCrosshairChange = react_exports.useCallback(
|
|
1968
2094
|
(event) => {
|
|
1969
|
-
if (onPointMouseOver
|
|
1970
|
-
|
|
1971
|
-
|
|
1972
|
-
|
|
1973
|
-
|
|
1974
|
-
|
|
1975
|
-
|
|
1976
|
-
|
|
1977
|
-
|
|
1978
|
-
|
|
1979
|
-
|
|
1980
|
-
|
|
1981
|
-
|
|
1982
|
-
|
|
2095
|
+
if (!onPointMouseOver && !onPointMouseOut) {
|
|
2096
|
+
return;
|
|
2097
|
+
}
|
|
2098
|
+
if (!event) {
|
|
2099
|
+
handleCrosshairMouseout();
|
|
2100
|
+
return;
|
|
2101
|
+
}
|
|
2102
|
+
const payload = __spreadProps(__spreadValues({}, (0, lodash_exports.pick)(event, "value", "seriesKey", "time", "index", "seriesIndex")), {
|
|
2103
|
+
name: event.seriesKey
|
|
2104
|
+
});
|
|
2105
|
+
delete payload.seriesKey;
|
|
2106
|
+
if (event.rowContext) {
|
|
2107
|
+
Object.assign(
|
|
2108
|
+
payload,
|
|
2109
|
+
Object.keys(event.rowContext).reduce((acc, fieldName) => {
|
|
2110
|
+
acc[`row.${fieldName}.value`] = event.rowContext[fieldName];
|
|
2111
|
+
return acc;
|
|
2112
|
+
}, {})
|
|
2113
|
+
);
|
|
2114
|
+
}
|
|
2115
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
2116
|
+
if (!hasMouseoverPayloadChanged(updatedPayload, previousMouseoverPayloadRef.current)) {
|
|
2117
|
+
return;
|
|
2118
|
+
}
|
|
2119
|
+
lastPayloadRef.current = updatedPayload;
|
|
2120
|
+
lastOriginalEventRef.current = event;
|
|
2121
|
+
previousMouseoverPayloadRef.current = __spreadValues({}, updatedPayload);
|
|
2122
|
+
if (onPointMouseOver) {
|
|
2123
|
+
onPointMouseOver({
|
|
2124
|
+
type: "point.mouseover",
|
|
2125
|
+
originalEvent: event,
|
|
2126
|
+
payload: updatedPayload
|
|
1983
2127
|
});
|
|
1984
|
-
delete payload.seriesKey;
|
|
1985
|
-
if (event.rowContext) {
|
|
1986
|
-
Object.assign(
|
|
1987
|
-
payload,
|
|
1988
|
-
Object.keys(event.rowContext).reduce((acc, fieldName) => {
|
|
1989
|
-
acc[`row.${fieldName}.value`] = event.rowContext[fieldName];
|
|
1990
|
-
return acc;
|
|
1991
|
-
}, {})
|
|
1992
|
-
);
|
|
1993
|
-
}
|
|
1994
|
-
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
1995
|
-
if (!hasMouseoverPayloadChanged(updatedPayload, previousMouseoverPayloadRef.current)) {
|
|
1996
|
-
return;
|
|
1997
|
-
}
|
|
1998
|
-
lastPayloadRef.current = updatedPayload;
|
|
1999
|
-
lastOriginalEventRef.current = event;
|
|
2000
|
-
previousMouseoverPayloadRef.current = __spreadValues({}, updatedPayload);
|
|
2001
|
-
if (onPointMouseOver) {
|
|
2002
|
-
onPointMouseOver({
|
|
2003
|
-
type: "point.mouseover",
|
|
2004
|
-
originalEvent: event,
|
|
2005
|
-
payload: updatedPayload
|
|
2006
|
-
});
|
|
2007
|
-
}
|
|
2008
2128
|
}
|
|
2009
2129
|
},
|
|
2010
|
-
[onPointMouseOver, onPointMouseOut, trellisKey, trellisSplitBy]
|
|
2130
|
+
[onPointMouseOver, onPointMouseOut, trellisKey, trellisSplitBy, handleCrosshairMouseout]
|
|
2011
2131
|
);
|
|
2012
2132
|
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}`;
|
|
2013
2133
|
const memoizedChart = (0, react_exports.useMemo)(() => {
|
|
@@ -2062,7 +2182,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2062
2182
|
showXAxisLine,
|
|
2063
2183
|
showYAxisLine,
|
|
2064
2184
|
showY2AxisLine,
|
|
2065
|
-
xAxisMaxLabelParts
|
|
2185
|
+
xAxisMaxLabelParts,
|
|
2186
|
+
areaOpacity: areaOpacityForCanvas
|
|
2066
2187
|
}
|
|
2067
2188
|
));
|
|
2068
2189
|
}, [
|
|
@@ -2114,7 +2235,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2114
2235
|
showYAxisLine,
|
|
2115
2236
|
showY2AxisLine,
|
|
2116
2237
|
legendMode,
|
|
2117
|
-
xAxisMaxLabelParts
|
|
2238
|
+
xAxisMaxLabelParts,
|
|
2239
|
+
areaOpacityForCanvas
|
|
2118
2240
|
]);
|
|
2119
2241
|
const memoizedVisualization = (0, react_exports.useMemo)(() => {
|
|
2120
2242
|
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor: bgColor }, memoizedChart);
|
|
@@ -2142,6 +2264,37 @@ var TimeSeriesChartWrapper_default = TimeSeriesChartWrapper;
|
|
|
2142
2264
|
|
|
2143
2265
|
// src/common/withDashboardViz.tsx
|
|
2144
2266
|
var SanitizedTimeSeriesChartWrapper = (0, SanitizeProps_exports.withSanitizedProps)(TimeSeriesChartWrapper_default);
|
|
2267
|
+
var buildEventCallbackProps = (supportedEvents, evaluatedOptionsToUse, onEventTrigger) => {
|
|
2268
|
+
const result = {};
|
|
2269
|
+
Object.keys(supportedEvents).forEach((eventName) => {
|
|
2270
|
+
const { parentKeys, payloadKeys } = supportedEvents[eventName];
|
|
2271
|
+
const eventCallbackPropName = (0, lodash_exports.camelCase)(`on.${eventName}`);
|
|
2272
|
+
let payload = {};
|
|
2273
|
+
if (Array.isArray(payloadKeys) && payloadKeys.length) {
|
|
2274
|
+
payloadKeys.forEach((p) => {
|
|
2275
|
+
payload[p] = evaluatedOptionsToUse[p];
|
|
2276
|
+
});
|
|
2277
|
+
}
|
|
2278
|
+
result[eventCallbackPropName] = (ev) => {
|
|
2279
|
+
if (ev == null ? void 0 : ev.payload) {
|
|
2280
|
+
payload = __spreadValues({}, ev.payload);
|
|
2281
|
+
}
|
|
2282
|
+
return onEventTrigger({
|
|
2283
|
+
originalEvent: ev,
|
|
2284
|
+
payload,
|
|
2285
|
+
type: eventName
|
|
2286
|
+
});
|
|
2287
|
+
};
|
|
2288
|
+
if (parentKeys) {
|
|
2289
|
+
for (let i = parentKeys.length - 1; i >= 0; i -= 1) {
|
|
2290
|
+
const newObject = {};
|
|
2291
|
+
newObject[parentKeys[i]] = result[eventCallbackPropName];
|
|
2292
|
+
result[eventCallbackPropName] = newObject;
|
|
2293
|
+
}
|
|
2294
|
+
}
|
|
2295
|
+
});
|
|
2296
|
+
return result;
|
|
2297
|
+
};
|
|
2145
2298
|
var withDashboardViz = (opts) => {
|
|
2146
2299
|
const {
|
|
2147
2300
|
ReactViz,
|
|
@@ -2199,9 +2352,7 @@ var withDashboardViz = (opts) => {
|
|
|
2199
2352
|
const isDownsamplingEnabledByFeatureFlag = Boolean(
|
|
2200
2353
|
featureFlagContext == null ? void 0 : featureFlagContext.visualizations_enableDownsampling
|
|
2201
2354
|
);
|
|
2202
|
-
const isTrellisFeatureFlagOn = Boolean(
|
|
2203
|
-
featureFlagContext && featureFlagContext.visualizations_enableTrellis
|
|
2204
|
-
);
|
|
2355
|
+
const isTrellisFeatureFlagOn = Boolean(featureFlagContext == null ? void 0 : featureFlagContext.visualizations_enableTrellis);
|
|
2205
2356
|
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 */;
|
|
2206
2357
|
const isAcceleratedRenderFeatureFlagOn = Boolean(
|
|
2207
2358
|
featureFlagContext == null ? void 0 : featureFlagContext.visualizations_enableAcceleratedRender
|
|
@@ -2366,38 +2517,12 @@ var withDashboardViz = (opts) => {
|
|
|
2366
2517
|
}
|
|
2367
2518
|
);
|
|
2368
2519
|
}
|
|
2369
|
-
const eventCallbackProps = {};
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2375
|
-
let payload = {};
|
|
2376
|
-
if (Array.isArray(payloadKeys) && payloadKeys.length) {
|
|
2377
|
-
payloadKeys.forEach((p) => {
|
|
2378
|
-
payload[p] = evaluatedOptionsToUse[p];
|
|
2379
|
-
});
|
|
2380
|
-
}
|
|
2381
|
-
eventCallbackProps[eventCallbackPropName] = (ev) => {
|
|
2382
|
-
if (ev == null ? void 0 : ev.payload) {
|
|
2383
|
-
payload = __spreadValues({}, ev.payload);
|
|
2384
|
-
}
|
|
2385
|
-
return onEventTrigger({
|
|
2386
|
-
originalEvent: ev,
|
|
2387
|
-
payload,
|
|
2388
|
-
type: eventName
|
|
2389
|
-
});
|
|
2390
|
-
};
|
|
2391
|
-
if (parentKeys) {
|
|
2392
|
-
for (let i = parentKeys.length - 1; i >= 0; i -= 1) {
|
|
2393
|
-
const newObject = {};
|
|
2394
|
-
newObject[parentKeys[i]] = eventCallbackProps[eventCallbackPropName];
|
|
2395
|
-
eventCallbackProps[eventCallbackPropName] = newObject;
|
|
2396
|
-
}
|
|
2397
|
-
}
|
|
2398
|
-
});
|
|
2399
|
-
}
|
|
2400
|
-
const computedVizProps = computeVizProps2(__spreadProps(__spreadValues(__spreadValues(__spreadValues({}, props), evaluatedOptionsToUse), eventCallbackProps), {
|
|
2520
|
+
const eventCallbackProps = hasEventHandlers && mode === "view" && vizConfig.supports.includes("events" /* EVENTS */) ? buildEventCallbackProps(vizConfig.events, evaluatedOptionsToUse, onEventTrigger) : {};
|
|
2521
|
+
const computedVizProps = computeVizProps2(__spreadProps(__spreadValues(__spreadProps(__spreadValues(__spreadValues({}, props), evaluatedOptionsToUse), {
|
|
2522
|
+
// Align option transformation with the actual renderer selected below.
|
|
2523
|
+
// This prevents canvas-only option preservation from leaking into Highcharts mode.
|
|
2524
|
+
isAcceleratedRenderOn
|
|
2525
|
+
}), eventCallbackProps), {
|
|
2401
2526
|
themeFunc
|
|
2402
2527
|
}));
|
|
2403
2528
|
if (useAsyncEvaluatedOptions && Object.keys(evaluatedOptionsToUse).length === 0) {
|
|
@@ -2431,18 +2556,18 @@ var Markdown_exports2 = {};
|
|
|
2431
2556
|
__export(Markdown_exports2, {
|
|
2432
2557
|
default: () => Markdown_default2
|
|
2433
2558
|
});
|
|
2434
|
-
var
|
|
2559
|
+
var defaultImport37 = __toESM(require("@splunk/react-icons/Markdown"));
|
|
2435
2560
|
__reExport(Markdown_exports2, require("@splunk/react-icons/Markdown"));
|
|
2436
|
-
var Markdown_default2 = "default" in
|
|
2561
|
+
var Markdown_default2 = "default" in defaultImport37 ? defaultImport37.default : defaultImport37;
|
|
2437
2562
|
|
|
2438
2563
|
// esm-externals:@splunk/visualizations-shared/configUtils
|
|
2439
2564
|
var configUtils_exports = {};
|
|
2440
2565
|
__export(configUtils_exports, {
|
|
2441
2566
|
default: () => configUtils_default
|
|
2442
2567
|
});
|
|
2443
|
-
var
|
|
2568
|
+
var defaultImport38 = __toESM(require("@splunk/visualizations-shared/configUtils"));
|
|
2444
2569
|
__reExport(configUtils_exports, require("@splunk/visualizations-shared/configUtils"));
|
|
2445
|
-
var configUtils_default = "default" in
|
|
2570
|
+
var configUtils_default = "default" in defaultImport38 ? defaultImport38.default : defaultImport38;
|
|
2446
2571
|
|
|
2447
2572
|
// src/common/utils/configUtils.ts
|
|
2448
2573
|
function enhanceConfig(vizConfig) {
|
|
@@ -2765,13 +2890,14 @@ var getMarkdownRenderer = (fontFamilyStyle, fontSize, customFontSize) => {
|
|
|
2765
2890
|
);
|
|
2766
2891
|
},
|
|
2767
2892
|
headingRenderer: ({ children, level }) => {
|
|
2893
|
+
const headingFontSize = fontMap[`h${level}`];
|
|
2768
2894
|
return /* @__PURE__ */ react_exports.createElement(
|
|
2769
2895
|
Heading_default,
|
|
2770
2896
|
{
|
|
2771
2897
|
level,
|
|
2772
2898
|
style: __spreadValues({
|
|
2773
|
-
fontSize:
|
|
2774
|
-
lineHeight: `${
|
|
2899
|
+
fontSize: headingFontSize,
|
|
2900
|
+
lineHeight: `${headingFontSize}px`
|
|
2775
2901
|
}, fontFamilyStyle)
|
|
2776
2902
|
},
|
|
2777
2903
|
children
|