@splunk/visualizations 28.5.3 → 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 +56 -10
- 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.config.js.map +1 -1
- package/NetworkGraph.js +544 -417
- 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/ParallelCoordinates.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/ParallelCoordinates/index.ts
|
|
64
66
|
var ParallelCoordinates_exports = {};
|
|
@@ -856,7 +858,7 @@ var DefaultVizActionHandler = class {
|
|
|
856
858
|
var INITIAL_HEIGHT = 250;
|
|
857
859
|
var SplunkVisualization = class {
|
|
858
860
|
};
|
|
859
|
-
SplunkVisualization
|
|
861
|
+
__publicField(SplunkVisualization, "propTypes", {
|
|
860
862
|
/**
|
|
861
863
|
* display mode
|
|
862
864
|
*/
|
|
@@ -932,11 +934,11 @@ SplunkVisualization.propTypes = {
|
|
|
932
934
|
* A callback to request new data with updated request params
|
|
933
935
|
*/
|
|
934
936
|
onRequestParamsChange: prop_types_exports.func
|
|
935
|
-
};
|
|
937
|
+
});
|
|
936
938
|
/**
|
|
937
939
|
*
|
|
938
940
|
*/
|
|
939
|
-
SplunkVisualization
|
|
941
|
+
__publicField(SplunkVisualization, "defaults", {
|
|
940
942
|
// BaseVisualization in dashboard-visualizations uses 100% for width but 250 for height
|
|
941
943
|
width: "100%",
|
|
942
944
|
height: INITIAL_HEIGHT,
|
|
@@ -951,7 +953,7 @@ SplunkVisualization.defaults = {
|
|
|
951
953
|
onComputedProps: () => ({}),
|
|
952
954
|
loading: false,
|
|
953
955
|
onRequestParamsChange: lodash_exports.noop
|
|
954
|
-
};
|
|
956
|
+
});
|
|
955
957
|
var SplunkVisualization_default = SplunkVisualization;
|
|
956
958
|
|
|
957
959
|
// src/common/interfaces/DataSource.ts
|
|
@@ -1005,9 +1007,9 @@ var usePaginationParams = ({
|
|
|
1005
1007
|
meta,
|
|
1006
1008
|
onRequestParamsChange
|
|
1007
1009
|
}) => {
|
|
1008
|
-
const totalCount = meta
|
|
1009
|
-
const offset = requestParams
|
|
1010
|
-
const count = requestParams
|
|
1010
|
+
const totalCount = (meta == null ? void 0 : meta.totalCount) || 0;
|
|
1011
|
+
const offset = (requestParams == null ? void 0 : requestParams.offset) || 0;
|
|
1012
|
+
const count = requestParams == null ? void 0 : requestParams.count;
|
|
1011
1013
|
const totalPages = typeof count === "number" && count > 0 ? Math.ceil(totalCount / count) : 0;
|
|
1012
1014
|
const current = typeof count === "number" && count > 0 ? Math.floor(offset / count) + 1 : 0;
|
|
1013
1015
|
const isPaging = totalPages > 1 && typeof onRequestParamsChange === "function";
|
|
@@ -1106,7 +1108,7 @@ var Cover = styled_components_default.div`
|
|
|
1106
1108
|
bottom: 0;
|
|
1107
1109
|
`;
|
|
1108
1110
|
var Blocker = styled_components_default.div.attrs({
|
|
1109
|
-
"data-splunk-visualization-version": "28.
|
|
1111
|
+
"data-splunk-visualization-version": "28.6.0 - 92427899a"
|
|
1110
1112
|
})`
|
|
1111
1113
|
position: relative;
|
|
1112
1114
|
width: 100%;
|
|
@@ -1196,7 +1198,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
1196
1198
|
FixSizeItem,
|
|
1197
1199
|
{
|
|
1198
1200
|
"data-test": "fix-size-item",
|
|
1199
|
-
"data-splunk-visualization-version": "28.
|
|
1201
|
+
"data-splunk-visualization-version": "28.6.0 - 92427899a",
|
|
1200
1202
|
width,
|
|
1201
1203
|
height,
|
|
1202
1204
|
backgroundColor
|
|
@@ -1737,6 +1739,24 @@ var defaultImport32 = __toESM(require("@splunk/react-icons/Triangle"));
|
|
|
1737
1739
|
__reExport(Triangle_exports, require("@splunk/react-icons/Triangle"));
|
|
1738
1740
|
var Triangle_default = "default" in defaultImport32 ? defaultImport32.default : defaultImport32;
|
|
1739
1741
|
|
|
1742
|
+
// esm-externals:@splunk/visualizations-shared/propUtils
|
|
1743
|
+
var propUtils_exports = {};
|
|
1744
|
+
__export(propUtils_exports, {
|
|
1745
|
+
default: () => propUtils_default
|
|
1746
|
+
});
|
|
1747
|
+
var defaultImport33 = __toESM(require("@splunk/visualizations-shared/propUtils"));
|
|
1748
|
+
__reExport(propUtils_exports, require("@splunk/visualizations-shared/propUtils"));
|
|
1749
|
+
var propUtils_default = "default" in defaultImport33 ? defaultImport33.default : defaultImport33;
|
|
1750
|
+
|
|
1751
|
+
// esm-externals:@splunk/visualizations-shared/simpleXMLOptions
|
|
1752
|
+
var simpleXMLOptions_exports = {};
|
|
1753
|
+
__export(simpleXMLOptions_exports, {
|
|
1754
|
+
default: () => simpleXMLOptions_default
|
|
1755
|
+
});
|
|
1756
|
+
var defaultImport34 = __toESM(require("@splunk/visualizations-shared/simpleXMLOptions"));
|
|
1757
|
+
__reExport(simpleXMLOptions_exports, require("@splunk/visualizations-shared/simpleXMLOptions"));
|
|
1758
|
+
var simpleXMLOptions_default = "default" in defaultImport34 ? defaultImport34.default : defaultImport34;
|
|
1759
|
+
|
|
1740
1760
|
// src/common/chartingUtils.ts
|
|
1741
1761
|
var DEFAULT_LINE_WIDTH = 2;
|
|
1742
1762
|
var getAnnotationsForCanvas = ({
|
|
@@ -1774,9 +1794,9 @@ var shouldEnableSearchZoom = (eventHandlers = [], xField = "") => {
|
|
|
1774
1794
|
const xAxisIsTime = xField === "_time";
|
|
1775
1795
|
return !!rangeSelectEventHandler && xAxisIsTime;
|
|
1776
1796
|
};
|
|
1777
|
-
var canvasSupportedTimeSeriesCharts = ["splunk.line"];
|
|
1797
|
+
var canvasSupportedTimeSeriesCharts = ["splunk.line", "splunk.area"];
|
|
1778
1798
|
var isTimeSeriesCanvasRenderSupported = (vizConfigKey) => {
|
|
1779
|
-
return canvasSupportedTimeSeriesCharts.
|
|
1799
|
+
return canvasSupportedTimeSeriesCharts.includes(vizConfigKey);
|
|
1780
1800
|
};
|
|
1781
1801
|
var filterChartDataFromInternalFields = (chartData) => {
|
|
1782
1802
|
const { fields, columns } = chartData;
|
|
@@ -1931,46 +1951,66 @@ var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInt
|
|
|
1931
1951
|
}
|
|
1932
1952
|
return y2Config;
|
|
1933
1953
|
};
|
|
1934
|
-
var
|
|
1954
|
+
var getSeriesType = (isOverlay, isAreaChart, isStacked) => {
|
|
1955
|
+
if (isOverlay) return "line";
|
|
1956
|
+
if (!isAreaChart) return void 0;
|
|
1957
|
+
return isStacked ? "stacked-area" : "area";
|
|
1958
|
+
};
|
|
1959
|
+
var getY2Scale = (field, y2fields, overlayFields) => {
|
|
1960
|
+
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));
|
|
1961
|
+
return assignToY2 ? "y2" : "y";
|
|
1962
|
+
};
|
|
1963
|
+
var getSeriesOverrides = (opts) => {
|
|
1964
|
+
var _a;
|
|
1965
|
+
const {
|
|
1966
|
+
yfields,
|
|
1967
|
+
y2fields,
|
|
1968
|
+
lineWidth,
|
|
1969
|
+
overlayFields,
|
|
1970
|
+
y2Enabled,
|
|
1971
|
+
nullValueMode,
|
|
1972
|
+
markerDisplay,
|
|
1973
|
+
lineDashStyle,
|
|
1974
|
+
lineDashStylesByField,
|
|
1975
|
+
stepPosition,
|
|
1976
|
+
stepPositionsByField,
|
|
1977
|
+
type,
|
|
1978
|
+
stackMode,
|
|
1979
|
+
showLines
|
|
1980
|
+
} = opts;
|
|
1935
1981
|
const seriesConfig = {};
|
|
1936
1982
|
let spanGaps;
|
|
1937
|
-
let replaceNullsWithZero;
|
|
1938
1983
|
if (nullValueMode === "gaps") {
|
|
1939
1984
|
spanGaps = false;
|
|
1940
|
-
} else if (nullValueMode
|
|
1985
|
+
} else if (nullValueMode != null) {
|
|
1941
1986
|
spanGaps = true;
|
|
1942
|
-
|
|
1943
|
-
|
|
1944
|
-
}
|
|
1987
|
+
} else {
|
|
1988
|
+
spanGaps = void 0;
|
|
1945
1989
|
}
|
|
1946
|
-
|
|
1990
|
+
const replaceNullsWithZero = nullValueMode === "zero" ? true : void 0;
|
|
1991
|
+
const isAreaChart = type === "area";
|
|
1992
|
+
const isStacked = isAreaChart && (stackMode === "stacked" || stackMode === "stacked100");
|
|
1993
|
+
const areaFields = isAreaChart ? yfields.filter((f) => !(overlayFields == null ? void 0 : overlayFields.includes(f))) : yfields;
|
|
1994
|
+
const overlayFieldsInOrder = (_a = overlayFields == null ? void 0 : overlayFields.filter((f) => yfields.includes(f))) != null ? _a : [];
|
|
1995
|
+
const orderedFields = isAreaChart ? [...areaFields, ...overlayFieldsInOrder] : yfields;
|
|
1996
|
+
orderedFields.forEach((field) => {
|
|
1997
|
+
var _a2;
|
|
1998
|
+
const isOverlay = (_a2 = overlayFields == null ? void 0 : overlayFields.includes(field)) != null ? _a2 : false;
|
|
1999
|
+
const isPercent = isAreaChart && stackMode === "stacked100" && !isOverlay;
|
|
2000
|
+
const shouldHideAreaOutline = isAreaChart && showLines === false && !isOverlay;
|
|
1947
2001
|
seriesConfig[field] = {
|
|
1948
|
-
overrides: {
|
|
2002
|
+
overrides: __spreadValues({
|
|
2003
|
+
width: shouldHideAreaOutline ? 0 : lineWidth != null ? lineWidth : DEFAULT_LINE_WIDTH
|
|
2004
|
+
}, isPercent ? { stacking: { mode: "percent", group: "A" } } : {})
|
|
1949
2005
|
};
|
|
1950
|
-
|
|
1951
|
-
|
|
1952
|
-
|
|
1953
|
-
if (y2Enabled)
|
|
1954
|
-
|
|
1955
|
-
|
|
1956
|
-
|
|
1957
|
-
|
|
1958
|
-
);
|
|
1959
|
-
if (shouldAssignToY2) {
|
|
1960
|
-
seriesConfig[field].overrides.scale = "y2";
|
|
1961
|
-
} else {
|
|
1962
|
-
seriesConfig[field].overrides.scale = "y";
|
|
1963
|
-
}
|
|
1964
|
-
}
|
|
1965
|
-
if (overlayFields == null ? void 0 : overlayFields.includes(field)) {
|
|
1966
|
-
seriesConfig[field].type = "line";
|
|
1967
|
-
}
|
|
1968
|
-
if (markerDisplay !== void 0) {
|
|
1969
|
-
seriesConfig[field].markerDisplay = markerDisplay;
|
|
1970
|
-
}
|
|
1971
|
-
const fieldDashStyle = (lineDashStylesByField == null ? void 0 : lineDashStylesByField[field]) || lineDashStyle;
|
|
1972
|
-
if (fieldDashStyle) {
|
|
1973
|
-
seriesConfig[field].lineDashStyle = fieldDashStyle;
|
|
2006
|
+
const seriesType = getSeriesType(isOverlay, isAreaChart, isStacked);
|
|
2007
|
+
if (seriesType !== void 0) seriesConfig[field].type = seriesType;
|
|
2008
|
+
if (spanGaps !== void 0) seriesConfig[field].overrides.spanGaps = spanGaps;
|
|
2009
|
+
if (y2Enabled) seriesConfig[field].overrides.scale = getY2Scale(field, y2fields, overlayFields);
|
|
2010
|
+
if (markerDisplay !== void 0) seriesConfig[field].markerDisplay = markerDisplay;
|
|
2011
|
+
if (!isAreaChart || isOverlay) {
|
|
2012
|
+
const fieldDashStyle = (lineDashStylesByField == null ? void 0 : lineDashStylesByField[field]) || lineDashStyle;
|
|
2013
|
+
if (fieldDashStyle) seriesConfig[field].lineDashStyle = fieldDashStyle;
|
|
1974
2014
|
}
|
|
1975
2015
|
const hasFieldStepPosition = Object.hasOwn(stepPositionsByField || {}, field);
|
|
1976
2016
|
const fieldStepPosition = hasFieldStepPosition ? stepPositionsByField == null ? void 0 : stepPositionsByField[field] : stepPosition;
|
|
@@ -2018,9 +2058,9 @@ var visualization_schemas_exports = {};
|
|
|
2018
2058
|
__export(visualization_schemas_exports, {
|
|
2019
2059
|
default: () => visualization_schemas_default
|
|
2020
2060
|
});
|
|
2021
|
-
var
|
|
2061
|
+
var defaultImport35 = __toESM(require("@splunk/visualization-schemas"));
|
|
2022
2062
|
__reExport(visualization_schemas_exports, require("@splunk/visualization-schemas"));
|
|
2023
|
-
var visualization_schemas_default = "default" in
|
|
2063
|
+
var visualization_schemas_default = "default" in defaultImport35 ? defaultImport35.default : defaultImport35;
|
|
2024
2064
|
|
|
2025
2065
|
// src/common/hooks/useTrellisEnabled.ts
|
|
2026
2066
|
var useTrellisFeatureFlagOn = () => {
|
|
@@ -2050,8 +2090,27 @@ var TrellisTitleDiv = styled_components_default.div`
|
|
|
2050
2090
|
background-color: ${(props) => props.backgroundColor};
|
|
2051
2091
|
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.
|
|
2052
2092
|
`;
|
|
2093
|
+
var formatTrellisKey = (value) => {
|
|
2094
|
+
if (value === null || value === void 0) {
|
|
2095
|
+
return "";
|
|
2096
|
+
}
|
|
2097
|
+
if (typeof value === "string") {
|
|
2098
|
+
return value;
|
|
2099
|
+
}
|
|
2100
|
+
if (typeof value === "number" || typeof value === "boolean") {
|
|
2101
|
+
return value.toString();
|
|
2102
|
+
}
|
|
2103
|
+
if (typeof value === "symbol") {
|
|
2104
|
+
return value.toString();
|
|
2105
|
+
}
|
|
2106
|
+
try {
|
|
2107
|
+
return JSON.stringify(value);
|
|
2108
|
+
} catch (e) {
|
|
2109
|
+
return typeof value === "bigint" ? value.toString() : "";
|
|
2110
|
+
}
|
|
2111
|
+
};
|
|
2053
2112
|
var TrellisTitle = (props) => {
|
|
2054
|
-
const titleText =
|
|
2113
|
+
const titleText = formatTrellisKey(props.trellisKey);
|
|
2055
2114
|
return /* @__PURE__ */ react_exports.createElement(
|
|
2056
2115
|
TrellisTitleDiv,
|
|
2057
2116
|
{
|
|
@@ -2187,6 +2246,38 @@ var parseArrayOption = (value) => {
|
|
|
2187
2246
|
}
|
|
2188
2247
|
return void 0;
|
|
2189
2248
|
};
|
|
2249
|
+
var getAreaOpacityForCanvas = (areaOpacity) => (
|
|
2250
|
+
// Preserve legacy visualizations behavior where area opacity is squared to match charting output.
|
|
2251
|
+
areaOpacity !== void 0 && areaOpacity !== null ? __pow(areaOpacity, 2) : areaOpacity
|
|
2252
|
+
);
|
|
2253
|
+
var parseTickIntervalOption = (simpleXMLValue, canvasValue) => {
|
|
2254
|
+
if (simpleXMLValue) return Number(simpleXMLValue);
|
|
2255
|
+
if (canvasValue) return Number(canvasValue);
|
|
2256
|
+
return void 0;
|
|
2257
|
+
};
|
|
2258
|
+
var getYAxisTitles = ({
|
|
2259
|
+
y2Enabled,
|
|
2260
|
+
yFields,
|
|
2261
|
+
y2Fields,
|
|
2262
|
+
overlayFields,
|
|
2263
|
+
yAxisTitleText,
|
|
2264
|
+
yAxisTitleVisibility,
|
|
2265
|
+
y2AxisTitleText,
|
|
2266
|
+
y2AxisTitleVisibility,
|
|
2267
|
+
containerHeight
|
|
2268
|
+
}) => {
|
|
2269
|
+
const yFieldsForTitle = y2Enabled ? yFields.filter((field) => !y2Fields.includes(field)) : yFields;
|
|
2270
|
+
const fieldsForY2Axis = y2Fields.length > 0 ? y2Fields : overlayFields;
|
|
2271
|
+
const yAxisTitle = ellipsisAxisTitle(
|
|
2272
|
+
getComputedAxisTitles(yAxisTitleText, yFieldsForTitle, yAxisTitleVisibility),
|
|
2273
|
+
containerHeight
|
|
2274
|
+
);
|
|
2275
|
+
const y2AxisTitle = ellipsisAxisTitle(
|
|
2276
|
+
getComputedAxisTitles(y2AxisTitleText, fieldsForY2Axis, y2AxisTitleVisibility),
|
|
2277
|
+
containerHeight
|
|
2278
|
+
);
|
|
2279
|
+
return { yAxisTitle, y2AxisTitle };
|
|
2280
|
+
};
|
|
2190
2281
|
var TimeSeriesChartWrapper = (props) => {
|
|
2191
2282
|
var _b, _c, _d;
|
|
2192
2283
|
const _a = props, {
|
|
@@ -2276,6 +2367,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2276
2367
|
"chart.overlayFields": overlayFieldsStr,
|
|
2277
2368
|
"chart.nullValueMode": nullValueMode,
|
|
2278
2369
|
"chart.showDataLabels": showDataLabels,
|
|
2370
|
+
"chart.showLines": showLines,
|
|
2371
|
+
"chart.stackMode": stackMode,
|
|
2279
2372
|
lineWidth,
|
|
2280
2373
|
lineDashStyle,
|
|
2281
2374
|
fieldDashStyles: lineDashStylesByFieldStr,
|
|
@@ -2304,7 +2397,10 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2304
2397
|
yAxisMinorTickSize,
|
|
2305
2398
|
y2AxisMinorTickSize,
|
|
2306
2399
|
showYAxisWithZero: showYAxisWithZeroFromOptions,
|
|
2307
|
-
showY2AxisWithZero: showY2AxisWithZeroFromOptions
|
|
2400
|
+
showY2AxisWithZero: showY2AxisWithZeroFromOptions,
|
|
2401
|
+
// area only props
|
|
2402
|
+
areaFillOpacity: areaOpacity,
|
|
2403
|
+
chart: chartType
|
|
2308
2404
|
} = options;
|
|
2309
2405
|
const dataValuesDisplay = showDataLabels === "none" ? "off" : showDataLabels;
|
|
2310
2406
|
const showYAxisWithZero = showYAxisWithZeroFromProps != null ? showYAxisWithZeroFromProps : showYAxisWithZeroFromOptions;
|
|
@@ -2321,13 +2417,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2321
2417
|
const yAxisMax = parseAxisValue(yAxisMaxRaw);
|
|
2322
2418
|
const y2AxisMin = parseAxisValue(y2AxisMinRaw);
|
|
2323
2419
|
const y2AxisMax = parseAxisValue(y2AxisMaxRaw);
|
|
2324
|
-
const
|
|
2325
|
-
|
|
2326
|
-
|
|
2327
|
-
|
|
2328
|
-
|
|
2329
|
-
const yAxisMajorTickIntervalNum = parseTickInterval(yAxisMajorUnitFromSimpleXML, yAxisMajorTickInterval);
|
|
2330
|
-
const y2AxisMajorTickIntervalNum = parseTickInterval(
|
|
2420
|
+
const yAxisMajorTickIntervalNum = parseTickIntervalOption(
|
|
2421
|
+
yAxisMajorUnitFromSimpleXML,
|
|
2422
|
+
yAxisMajorTickInterval
|
|
2423
|
+
);
|
|
2424
|
+
const y2AxisMajorTickIntervalNum = parseTickIntervalOption(
|
|
2331
2425
|
y2AxisMajorUnitFromSimpleXML,
|
|
2332
2426
|
y2AxisMajorTickInterval
|
|
2333
2427
|
);
|
|
@@ -2336,6 +2430,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2336
2430
|
const y2AxisMajorTickSizeNum = y2AxisMajorTickSize != null ? Number(y2AxisMajorTickSize) : void 0;
|
|
2337
2431
|
const yAxisMinorTickSizeNum = yAxisMinorTickSize != null ? Number(yAxisMinorTickSize) : void 0;
|
|
2338
2432
|
const y2AxisMinorTickSizeNum = y2AxisMinorTickSize != null ? Number(y2AxisMinorTickSize) : void 0;
|
|
2433
|
+
const areaOpacityForCanvas = getAreaOpacityForCanvas(areaOpacity);
|
|
2339
2434
|
const seriesColors = seriesColorsStr ? JSON.parse(seriesColorsStr) : void 0;
|
|
2340
2435
|
const seriesColorsByField = fieldColors ? JSON.parse(fieldColors) : void 0;
|
|
2341
2436
|
const lineDashStylesByField = lineDashStylesByFieldStr ? JSON.parse(lineDashStylesByFieldStr) : void 0;
|
|
@@ -2366,26 +2461,40 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2366
2461
|
);
|
|
2367
2462
|
let xAxisTitle = getComputedAxisTitles(xAxisTitleText, [xField], xAxisTitleVisibility);
|
|
2368
2463
|
xAxisTitle = ellipsisAxisTitle(xAxisTitle, containerWidth);
|
|
2369
|
-
const
|
|
2370
|
-
|
|
2371
|
-
|
|
2372
|
-
|
|
2373
|
-
|
|
2374
|
-
|
|
2464
|
+
const { yAxisTitle, y2AxisTitle } = getYAxisTitles({
|
|
2465
|
+
y2Enabled,
|
|
2466
|
+
yFields,
|
|
2467
|
+
y2Fields,
|
|
2468
|
+
overlayFields,
|
|
2469
|
+
yAxisTitleText,
|
|
2470
|
+
yAxisTitleVisibility,
|
|
2471
|
+
y2AxisTitleText,
|
|
2472
|
+
y2AxisTitleVisibility,
|
|
2473
|
+
containerHeight
|
|
2474
|
+
});
|
|
2375
2475
|
const xScaleConfig = (0, react_exports.useMemo)(
|
|
2376
2476
|
() => getXScaleConfig(xAxisTitle, xAxisLabelVisibility, xAxisLabelRotation),
|
|
2377
2477
|
[xAxisTitle, xAxisLabelVisibility, xAxisLabelRotation]
|
|
2378
2478
|
);
|
|
2479
|
+
const isStacked100 = stackMode === "stacked100";
|
|
2379
2480
|
const yScaleConfig = (0, react_exports.useMemo)(
|
|
2380
|
-
() =>
|
|
2381
|
-
|
|
2382
|
-
|
|
2383
|
-
|
|
2384
|
-
|
|
2385
|
-
|
|
2386
|
-
|
|
2387
|
-
|
|
2388
|
-
|
|
2481
|
+
() => {
|
|
2482
|
+
const config3 = getYScaleConfig(
|
|
2483
|
+
yAxisTitle,
|
|
2484
|
+
yAxisAbbreviation,
|
|
2485
|
+
yAxisScale,
|
|
2486
|
+
yAxisLabelVisibility,
|
|
2487
|
+
yAxisMin,
|
|
2488
|
+
yAxisMax
|
|
2489
|
+
);
|
|
2490
|
+
if (isStacked100) {
|
|
2491
|
+
config3.y.tickFmt = (v) => `${Math.round(v * 100)}%`;
|
|
2492
|
+
config3.y.range = () => [0, 1];
|
|
2493
|
+
}
|
|
2494
|
+
return config3;
|
|
2495
|
+
},
|
|
2496
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
2497
|
+
[yAxisTitle, yAxisAbbreviation, yAxisScale, yAxisLabelVisibility, yAxisMin, yAxisMax, isStacked100]
|
|
2389
2498
|
);
|
|
2390
2499
|
const y2ScaleConfig = (0, react_exports.useMemo)(() => {
|
|
2391
2500
|
if (y2Enabled) {
|
|
@@ -2417,10 +2526,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2417
2526
|
];
|
|
2418
2527
|
chartData.fields = filteredChartData.fields;
|
|
2419
2528
|
chartData.columns = seriesDataFormatted;
|
|
2529
|
+
const normalizedStackMode = stackMode === "stacked" || stackMode === "stacked100" ? stackMode : "auto";
|
|
2420
2530
|
const seriesOverrides = (0, react_exports.useMemo)(
|
|
2421
|
-
() => getSeriesOverrides(
|
|
2422
|
-
yFields,
|
|
2423
|
-
y2Fields,
|
|
2531
|
+
() => getSeriesOverrides({
|
|
2532
|
+
yfields: yFields,
|
|
2533
|
+
y2fields: y2Fields,
|
|
2424
2534
|
lineWidth,
|
|
2425
2535
|
overlayFields,
|
|
2426
2536
|
y2Enabled,
|
|
@@ -2429,8 +2539,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2429
2539
|
lineDashStyle,
|
|
2430
2540
|
lineDashStylesByField,
|
|
2431
2541
|
stepPosition,
|
|
2432
|
-
stepPositionsByField
|
|
2433
|
-
|
|
2542
|
+
stepPositionsByField,
|
|
2543
|
+
type: chartType,
|
|
2544
|
+
stackMode: normalizedStackMode,
|
|
2545
|
+
showLines
|
|
2546
|
+
}),
|
|
2434
2547
|
[
|
|
2435
2548
|
yFields,
|
|
2436
2549
|
y2Fields,
|
|
@@ -2442,7 +2555,10 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2442
2555
|
lineDashStyle,
|
|
2443
2556
|
lineDashStylesByField,
|
|
2444
2557
|
stepPosition,
|
|
2445
|
-
stepPositionsByField
|
|
2558
|
+
stepPositionsByField,
|
|
2559
|
+
chartType,
|
|
2560
|
+
normalizedStackMode,
|
|
2561
|
+
showLines
|
|
2446
2562
|
]
|
|
2447
2563
|
);
|
|
2448
2564
|
const chartingEventAnnotations = (0, react_exports.useMemo)(
|
|
@@ -2510,50 +2626,54 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2510
2626
|
react_exports.useEffect(() => {
|
|
2511
2627
|
additionalTooltipValuesRef.current = additionalTooltipValues;
|
|
2512
2628
|
}, [additionalTooltipValues]);
|
|
2629
|
+
const handleCrosshairMouseout = react_exports.useCallback(() => {
|
|
2630
|
+
if (onPointMouseOut && lastPayloadRef.current) {
|
|
2631
|
+
onPointMouseOut({
|
|
2632
|
+
type: "point.mouseout",
|
|
2633
|
+
originalEvent: lastOriginalEventRef.current,
|
|
2634
|
+
payload: lastPayloadRef.current
|
|
2635
|
+
});
|
|
2636
|
+
}
|
|
2637
|
+
previousMouseoverPayloadRef.current = null;
|
|
2638
|
+
}, [onPointMouseOut]);
|
|
2513
2639
|
const handleChartCrosshairChange = react_exports.useCallback(
|
|
2514
2640
|
(event) => {
|
|
2515
|
-
if (onPointMouseOver
|
|
2516
|
-
|
|
2517
|
-
|
|
2518
|
-
|
|
2519
|
-
|
|
2520
|
-
|
|
2521
|
-
|
|
2522
|
-
|
|
2523
|
-
|
|
2524
|
-
|
|
2525
|
-
|
|
2526
|
-
|
|
2527
|
-
|
|
2528
|
-
|
|
2641
|
+
if (!onPointMouseOver && !onPointMouseOut) {
|
|
2642
|
+
return;
|
|
2643
|
+
}
|
|
2644
|
+
if (!event) {
|
|
2645
|
+
handleCrosshairMouseout();
|
|
2646
|
+
return;
|
|
2647
|
+
}
|
|
2648
|
+
const payload = __spreadProps(__spreadValues({}, (0, lodash_exports.pick)(event, "value", "seriesKey", "time", "index", "seriesIndex")), {
|
|
2649
|
+
name: event.seriesKey
|
|
2650
|
+
});
|
|
2651
|
+
delete payload.seriesKey;
|
|
2652
|
+
if (event.rowContext) {
|
|
2653
|
+
Object.assign(
|
|
2654
|
+
payload,
|
|
2655
|
+
Object.keys(event.rowContext).reduce((acc, fieldName) => {
|
|
2656
|
+
acc[`row.${fieldName}.value`] = event.rowContext[fieldName];
|
|
2657
|
+
return acc;
|
|
2658
|
+
}, {})
|
|
2659
|
+
);
|
|
2660
|
+
}
|
|
2661
|
+
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
2662
|
+
if (!hasMouseoverPayloadChanged(updatedPayload, previousMouseoverPayloadRef.current)) {
|
|
2663
|
+
return;
|
|
2664
|
+
}
|
|
2665
|
+
lastPayloadRef.current = updatedPayload;
|
|
2666
|
+
lastOriginalEventRef.current = event;
|
|
2667
|
+
previousMouseoverPayloadRef.current = __spreadValues({}, updatedPayload);
|
|
2668
|
+
if (onPointMouseOver) {
|
|
2669
|
+
onPointMouseOver({
|
|
2670
|
+
type: "point.mouseover",
|
|
2671
|
+
originalEvent: event,
|
|
2672
|
+
payload: updatedPayload
|
|
2529
2673
|
});
|
|
2530
|
-
delete payload.seriesKey;
|
|
2531
|
-
if (event.rowContext) {
|
|
2532
|
-
Object.assign(
|
|
2533
|
-
payload,
|
|
2534
|
-
Object.keys(event.rowContext).reduce((acc, fieldName) => {
|
|
2535
|
-
acc[`row.${fieldName}.value`] = event.rowContext[fieldName];
|
|
2536
|
-
return acc;
|
|
2537
|
-
}, {})
|
|
2538
|
-
);
|
|
2539
|
-
}
|
|
2540
|
-
const updatedPayload = appendTrellisToPayload(payload, trellisKey, trellisSplitBy);
|
|
2541
|
-
if (!hasMouseoverPayloadChanged(updatedPayload, previousMouseoverPayloadRef.current)) {
|
|
2542
|
-
return;
|
|
2543
|
-
}
|
|
2544
|
-
lastPayloadRef.current = updatedPayload;
|
|
2545
|
-
lastOriginalEventRef.current = event;
|
|
2546
|
-
previousMouseoverPayloadRef.current = __spreadValues({}, updatedPayload);
|
|
2547
|
-
if (onPointMouseOver) {
|
|
2548
|
-
onPointMouseOver({
|
|
2549
|
-
type: "point.mouseover",
|
|
2550
|
-
originalEvent: event,
|
|
2551
|
-
payload: updatedPayload
|
|
2552
|
-
});
|
|
2553
|
-
}
|
|
2554
2674
|
}
|
|
2555
2675
|
},
|
|
2556
|
-
[onPointMouseOver, onPointMouseOut, trellisKey, trellisSplitBy]
|
|
2676
|
+
[onPointMouseOver, onPointMouseOut, trellisKey, trellisSplitBy, handleCrosshairMouseout]
|
|
2557
2677
|
);
|
|
2558
2678
|
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}`;
|
|
2559
2679
|
const memoizedChart = (0, react_exports.useMemo)(() => {
|
|
@@ -2608,7 +2728,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2608
2728
|
showXAxisLine,
|
|
2609
2729
|
showYAxisLine,
|
|
2610
2730
|
showY2AxisLine,
|
|
2611
|
-
xAxisMaxLabelParts
|
|
2731
|
+
xAxisMaxLabelParts,
|
|
2732
|
+
areaOpacity: areaOpacityForCanvas
|
|
2612
2733
|
}
|
|
2613
2734
|
));
|
|
2614
2735
|
}, [
|
|
@@ -2660,7 +2781,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
2660
2781
|
showYAxisLine,
|
|
2661
2782
|
showY2AxisLine,
|
|
2662
2783
|
legendMode,
|
|
2663
|
-
xAxisMaxLabelParts
|
|
2784
|
+
xAxisMaxLabelParts,
|
|
2785
|
+
areaOpacityForCanvas
|
|
2664
2786
|
]);
|
|
2665
2787
|
const memoizedVisualization = (0, react_exports.useMemo)(() => {
|
|
2666
2788
|
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor: bgColor }, memoizedChart);
|
|
@@ -2688,6 +2810,37 @@ var TimeSeriesChartWrapper_default = TimeSeriesChartWrapper;
|
|
|
2688
2810
|
|
|
2689
2811
|
// src/common/withDashboardViz.tsx
|
|
2690
2812
|
var SanitizedTimeSeriesChartWrapper = (0, SanitizeProps_exports.withSanitizedProps)(TimeSeriesChartWrapper_default);
|
|
2813
|
+
var buildEventCallbackProps = (supportedEvents, evaluatedOptionsToUse, onEventTrigger) => {
|
|
2814
|
+
const result = {};
|
|
2815
|
+
Object.keys(supportedEvents).forEach((eventName) => {
|
|
2816
|
+
const { parentKeys, payloadKeys } = supportedEvents[eventName];
|
|
2817
|
+
const eventCallbackPropName = (0, lodash_exports.camelCase)(`on.${eventName}`);
|
|
2818
|
+
let payload = {};
|
|
2819
|
+
if (Array.isArray(payloadKeys) && payloadKeys.length) {
|
|
2820
|
+
payloadKeys.forEach((p) => {
|
|
2821
|
+
payload[p] = evaluatedOptionsToUse[p];
|
|
2822
|
+
});
|
|
2823
|
+
}
|
|
2824
|
+
result[eventCallbackPropName] = (ev) => {
|
|
2825
|
+
if (ev == null ? void 0 : ev.payload) {
|
|
2826
|
+
payload = __spreadValues({}, ev.payload);
|
|
2827
|
+
}
|
|
2828
|
+
return onEventTrigger({
|
|
2829
|
+
originalEvent: ev,
|
|
2830
|
+
payload,
|
|
2831
|
+
type: eventName
|
|
2832
|
+
});
|
|
2833
|
+
};
|
|
2834
|
+
if (parentKeys) {
|
|
2835
|
+
for (let i = parentKeys.length - 1; i >= 0; i -= 1) {
|
|
2836
|
+
const newObject = {};
|
|
2837
|
+
newObject[parentKeys[i]] = result[eventCallbackPropName];
|
|
2838
|
+
result[eventCallbackPropName] = newObject;
|
|
2839
|
+
}
|
|
2840
|
+
}
|
|
2841
|
+
});
|
|
2842
|
+
return result;
|
|
2843
|
+
};
|
|
2691
2844
|
var withDashboardViz = (opts) => {
|
|
2692
2845
|
const {
|
|
2693
2846
|
ReactViz,
|
|
@@ -2745,9 +2898,7 @@ var withDashboardViz = (opts) => {
|
|
|
2745
2898
|
const isDownsamplingEnabledByFeatureFlag = Boolean(
|
|
2746
2899
|
featureFlagContext == null ? void 0 : featureFlagContext.visualizations_enableDownsampling
|
|
2747
2900
|
);
|
|
2748
|
-
const isTrellisFeatureFlagOn = Boolean(
|
|
2749
|
-
featureFlagContext && featureFlagContext.visualizations_enableTrellis
|
|
2750
|
-
);
|
|
2901
|
+
const isTrellisFeatureFlagOn = Boolean(featureFlagContext == null ? void 0 : featureFlagContext.visualizations_enableTrellis);
|
|
2751
2902
|
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 */;
|
|
2752
2903
|
const isAcceleratedRenderFeatureFlagOn = Boolean(
|
|
2753
2904
|
featureFlagContext == null ? void 0 : featureFlagContext.visualizations_enableAcceleratedRender
|
|
@@ -2912,38 +3063,12 @@ var withDashboardViz = (opts) => {
|
|
|
2912
3063
|
}
|
|
2913
3064
|
);
|
|
2914
3065
|
}
|
|
2915
|
-
const eventCallbackProps = {};
|
|
2916
|
-
|
|
2917
|
-
|
|
2918
|
-
|
|
2919
|
-
|
|
2920
|
-
|
|
2921
|
-
let payload = {};
|
|
2922
|
-
if (Array.isArray(payloadKeys) && payloadKeys.length) {
|
|
2923
|
-
payloadKeys.forEach((p) => {
|
|
2924
|
-
payload[p] = evaluatedOptionsToUse[p];
|
|
2925
|
-
});
|
|
2926
|
-
}
|
|
2927
|
-
eventCallbackProps[eventCallbackPropName] = (ev) => {
|
|
2928
|
-
if (ev == null ? void 0 : ev.payload) {
|
|
2929
|
-
payload = __spreadValues({}, ev.payload);
|
|
2930
|
-
}
|
|
2931
|
-
return onEventTrigger({
|
|
2932
|
-
originalEvent: ev,
|
|
2933
|
-
payload,
|
|
2934
|
-
type: eventName
|
|
2935
|
-
});
|
|
2936
|
-
};
|
|
2937
|
-
if (parentKeys) {
|
|
2938
|
-
for (let i = parentKeys.length - 1; i >= 0; i -= 1) {
|
|
2939
|
-
const newObject = {};
|
|
2940
|
-
newObject[parentKeys[i]] = eventCallbackProps[eventCallbackPropName];
|
|
2941
|
-
eventCallbackProps[eventCallbackPropName] = newObject;
|
|
2942
|
-
}
|
|
2943
|
-
}
|
|
2944
|
-
});
|
|
2945
|
-
}
|
|
2946
|
-
const computedVizProps = computeVizProps2(__spreadProps(__spreadValues(__spreadValues(__spreadValues({}, props), evaluatedOptionsToUse), eventCallbackProps), {
|
|
3066
|
+
const eventCallbackProps = hasEventHandlers && mode === "view" && vizConfig.supports.includes("events" /* EVENTS */) ? buildEventCallbackProps(vizConfig.events, evaluatedOptionsToUse, onEventTrigger) : {};
|
|
3067
|
+
const computedVizProps = computeVizProps2(__spreadProps(__spreadValues(__spreadProps(__spreadValues(__spreadValues({}, props), evaluatedOptionsToUse), {
|
|
3068
|
+
// Align option transformation with the actual renderer selected below.
|
|
3069
|
+
// This prevents canvas-only option preservation from leaking into Highcharts mode.
|
|
3070
|
+
isAcceleratedRenderOn
|
|
3071
|
+
}), eventCallbackProps), {
|
|
2947
3072
|
themeFunc
|
|
2948
3073
|
}));
|
|
2949
3074
|
if (useAsyncEvaluatedOptions && Object.keys(evaluatedOptionsToUse).length === 0) {
|
|
@@ -2977,36 +3102,36 @@ var pick_exports = {};
|
|
|
2977
3102
|
__export(pick_exports, {
|
|
2978
3103
|
default: () => pick_default
|
|
2979
3104
|
});
|
|
2980
|
-
var
|
|
3105
|
+
var defaultImport36 = __toESM(require("@splunk/themes/pick"));
|
|
2981
3106
|
__reExport(pick_exports, require("@splunk/themes/pick"));
|
|
2982
|
-
var pick_default = "default" in
|
|
3107
|
+
var pick_default = "default" in defaultImport36 ? defaultImport36.default : defaultImport36;
|
|
2983
3108
|
|
|
2984
3109
|
// esm-externals:@splunk/visualization-icons
|
|
2985
3110
|
var visualization_icons_exports = {};
|
|
2986
3111
|
__export(visualization_icons_exports, {
|
|
2987
3112
|
default: () => visualization_icons_default
|
|
2988
3113
|
});
|
|
2989
|
-
var
|
|
3114
|
+
var defaultImport37 = __toESM(require("@splunk/visualization-icons"));
|
|
2990
3115
|
__reExport(visualization_icons_exports, require("@splunk/visualization-icons"));
|
|
2991
|
-
var visualization_icons_default = "default" in
|
|
3116
|
+
var visualization_icons_default = "default" in defaultImport37 ? defaultImport37.default : defaultImport37;
|
|
2992
3117
|
|
|
2993
3118
|
// esm-externals:@splunk/visualization-icons/placeholders
|
|
2994
3119
|
var placeholders_exports = {};
|
|
2995
3120
|
__export(placeholders_exports, {
|
|
2996
3121
|
default: () => placeholders_default
|
|
2997
3122
|
});
|
|
2998
|
-
var
|
|
3123
|
+
var defaultImport38 = __toESM(require("@splunk/visualization-icons/placeholders"));
|
|
2999
3124
|
__reExport(placeholders_exports, require("@splunk/visualization-icons/placeholders"));
|
|
3000
|
-
var placeholders_default = "default" in
|
|
3125
|
+
var placeholders_default = "default" in defaultImport38 ? defaultImport38.default : defaultImport38;
|
|
3001
3126
|
|
|
3002
3127
|
// esm-externals:@splunk/visualizations-shared/configUtils
|
|
3003
3128
|
var configUtils_exports = {};
|
|
3004
3129
|
__export(configUtils_exports, {
|
|
3005
3130
|
default: () => configUtils_default
|
|
3006
3131
|
});
|
|
3007
|
-
var
|
|
3132
|
+
var defaultImport39 = __toESM(require("@splunk/visualizations-shared/configUtils"));
|
|
3008
3133
|
__reExport(configUtils_exports, require("@splunk/visualizations-shared/configUtils"));
|
|
3009
|
-
var configUtils_default = "default" in
|
|
3134
|
+
var configUtils_default = "default" in defaultImport39 ? defaultImport39.default : defaultImport39;
|
|
3010
3135
|
|
|
3011
3136
|
// src/common/utils/configUtils.ts
|
|
3012
3137
|
function enhanceConfig(vizConfig) {
|
|
@@ -3205,27 +3330,18 @@ var domUtils_exports = {};
|
|
|
3205
3330
|
__export(domUtils_exports, {
|
|
3206
3331
|
default: () => domUtils_default
|
|
3207
3332
|
});
|
|
3208
|
-
var
|
|
3333
|
+
var defaultImport40 = __toESM(require("@splunk/visualizations-shared/domUtils"));
|
|
3209
3334
|
__reExport(domUtils_exports, require("@splunk/visualizations-shared/domUtils"));
|
|
3210
|
-
var domUtils_default = "default" in
|
|
3211
|
-
|
|
3212
|
-
// esm-externals:@splunk/visualizations-shared/propUtils
|
|
3213
|
-
var propUtils_exports = {};
|
|
3214
|
-
__export(propUtils_exports, {
|
|
3215
|
-
default: () => propUtils_default
|
|
3216
|
-
});
|
|
3217
|
-
var defaultImport39 = __toESM(require("@splunk/visualizations-shared/propUtils"));
|
|
3218
|
-
__reExport(propUtils_exports, require("@splunk/visualizations-shared/propUtils"));
|
|
3219
|
-
var propUtils_default = "default" in defaultImport39 ? defaultImport39.default : defaultImport39;
|
|
3335
|
+
var domUtils_default = "default" in defaultImport40 ? defaultImport40.default : defaultImport40;
|
|
3220
3336
|
|
|
3221
3337
|
// esm-externals:@splunk/visualizations-shared/colorConstants
|
|
3222
3338
|
var colorConstants_exports = {};
|
|
3223
3339
|
__export(colorConstants_exports, {
|
|
3224
3340
|
default: () => colorConstants_default
|
|
3225
3341
|
});
|
|
3226
|
-
var
|
|
3342
|
+
var defaultImport41 = __toESM(require("@splunk/visualizations-shared/colorConstants"));
|
|
3227
3343
|
__reExport(colorConstants_exports, require("@splunk/visualizations-shared/colorConstants"));
|
|
3228
|
-
var colorConstants_default = "default" in
|
|
3344
|
+
var colorConstants_default = "default" in defaultImport41 ? defaultImport41.default : defaultImport41;
|
|
3229
3345
|
|
|
3230
3346
|
// src/common/utils/singleValueUtils.js
|
|
3231
3347
|
var isLoadingOrNoColumns = (dataSources, loading) => {
|