@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/Bubble.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/Bubble/index.ts
|
|
64
66
|
var Bubble_exports = {};
|
|
@@ -558,8 +560,27 @@ var TrellisTitleDiv = styled_components_default.div`
|
|
|
558
560
|
background-color: ${(props) => props.backgroundColor};
|
|
559
561
|
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.
|
|
560
562
|
`;
|
|
563
|
+
var formatTrellisKey = (value) => {
|
|
564
|
+
if (value === null || value === void 0) {
|
|
565
|
+
return "";
|
|
566
|
+
}
|
|
567
|
+
if (typeof value === "string") {
|
|
568
|
+
return value;
|
|
569
|
+
}
|
|
570
|
+
if (typeof value === "number" || typeof value === "boolean") {
|
|
571
|
+
return value.toString();
|
|
572
|
+
}
|
|
573
|
+
if (typeof value === "symbol") {
|
|
574
|
+
return value.toString();
|
|
575
|
+
}
|
|
576
|
+
try {
|
|
577
|
+
return JSON.stringify(value);
|
|
578
|
+
} catch (e) {
|
|
579
|
+
return typeof value === "bigint" ? value.toString() : "";
|
|
580
|
+
}
|
|
581
|
+
};
|
|
561
582
|
var TrellisTitle = (props) => {
|
|
562
|
-
const titleText =
|
|
583
|
+
const titleText = formatTrellisKey(props.trellisKey);
|
|
563
584
|
return /* @__PURE__ */ react_exports.createElement(
|
|
564
585
|
TrellisTitleDiv,
|
|
565
586
|
{
|
|
@@ -797,6 +818,35 @@ var Charting = (props) => {
|
|
|
797
818
|
});
|
|
798
819
|
}
|
|
799
820
|
);
|
|
821
|
+
const initChart = (updatedOptions, serializedTimezone, ianaTimezone, utcOffset) => {
|
|
822
|
+
destroyChart();
|
|
823
|
+
charting_bundle_default.setTheme(themeKey);
|
|
824
|
+
if (colorPalette.length > 0) {
|
|
825
|
+
charting_bundle_default.setColorPalette(colorPalette);
|
|
826
|
+
}
|
|
827
|
+
chart.current = charting_bundle_default.createChart(container.current, __spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues({}, updatedOptions), {
|
|
828
|
+
drilldown: "all"
|
|
829
|
+
}), typeof serializedTimezone === "string" && {
|
|
830
|
+
"time.serializedTz": serializedTimezone
|
|
831
|
+
}), typeof ianaTimezone === "string" && {
|
|
832
|
+
"time.ianaTimezone": ianaTimezone
|
|
833
|
+
}), typeof utcOffset === "number" && {
|
|
834
|
+
"time.timezoneOffset": utcOffset
|
|
835
|
+
}));
|
|
836
|
+
chart.current.on("pointClick", (e) => {
|
|
837
|
+
handleClick2(e, "point.click" /* POINT_CLICK */);
|
|
838
|
+
});
|
|
839
|
+
chart.current.on("pointMouseOver", (e) => {
|
|
840
|
+
handlePointMouseOver(e, "point.mouseover" /* POINT_MOUSE_OVER */);
|
|
841
|
+
});
|
|
842
|
+
chart.current.on("pointMouseOut", (e) => {
|
|
843
|
+
handlePointMouseOut(e, "point.mouseout" /* POINT_MOUSE_OUT */);
|
|
844
|
+
});
|
|
845
|
+
chart.current.on("legendClick", (e) => {
|
|
846
|
+
handleClick2(e, "legend.click" /* LEGEND_CLICK */);
|
|
847
|
+
});
|
|
848
|
+
chart.current.on("chartRangeSelect", handleSelect);
|
|
849
|
+
};
|
|
800
850
|
const drawChart = () => {
|
|
801
851
|
const updatedOptions = __spreadProps(__spreadValues({}, options), { shouldColorizeTooltipData: false });
|
|
802
852
|
const computedChartSize = computeChartingSize();
|
|
@@ -820,33 +870,7 @@ var Charting = (props) => {
|
|
|
820
870
|
}
|
|
821
871
|
try {
|
|
822
872
|
if (needsInit.current) {
|
|
823
|
-
|
|
824
|
-
charting_bundle_default.setTheme(themeKey);
|
|
825
|
-
if (colorPalette.length > 0) {
|
|
826
|
-
charting_bundle_default.setColorPalette(colorPalette);
|
|
827
|
-
}
|
|
828
|
-
chart.current = charting_bundle_default.createChart(container.current, __spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues({}, updatedOptions), {
|
|
829
|
-
drilldown: "all"
|
|
830
|
-
}), typeof serializedTimezone === "string" && {
|
|
831
|
-
"time.serializedTz": serializedTimezone
|
|
832
|
-
}), typeof ianaTimezone === "string" && {
|
|
833
|
-
"time.ianaTimezone": ianaTimezone
|
|
834
|
-
}), typeof utcOffset === "number" && {
|
|
835
|
-
"time.timezoneOffset": utcOffset
|
|
836
|
-
}));
|
|
837
|
-
chart.current.on("pointClick", (e) => {
|
|
838
|
-
handleClick2(e, "point.click" /* POINT_CLICK */);
|
|
839
|
-
});
|
|
840
|
-
chart.current.on("pointMouseOver", (e) => {
|
|
841
|
-
handlePointMouseOver(e, "point.mouseover" /* POINT_MOUSE_OVER */);
|
|
842
|
-
});
|
|
843
|
-
chart.current.on("pointMouseOut", (e) => {
|
|
844
|
-
handlePointMouseOut(e, "point.mouseout" /* POINT_MOUSE_OUT */);
|
|
845
|
-
});
|
|
846
|
-
chart.current.on("legendClick", (e) => {
|
|
847
|
-
handleClick2(e, "legend.click" /* LEGEND_CLICK */);
|
|
848
|
-
});
|
|
849
|
-
chart.current.on("chartRangeSelect", handleSelect);
|
|
873
|
+
initChart(updatedOptions, serializedTimezone, ianaTimezone, utcOffset);
|
|
850
874
|
}
|
|
851
875
|
if (needsRedraw.current) {
|
|
852
876
|
charting_bundle_default.setTheme(themeKey);
|
|
@@ -1507,26 +1531,59 @@ var isTrellisEnabled2 = ({ options, featureFlags }) => {
|
|
|
1507
1531
|
const { splitByLayout = visualization_schemas_exports.LAYOUT_TYPE.Off } = options;
|
|
1508
1532
|
return isTrellisFeatureFlagOn2({ featureFlags }) && splitByLayout === visualization_schemas_exports.LAYOUT_TYPE.Trellis;
|
|
1509
1533
|
};
|
|
1510
|
-
var
|
|
1511
|
-
|
|
1512
|
-
|
|
1513
|
-
|
|
1514
|
-
|
|
1515
|
-
|
|
1516
|
-
|
|
1517
|
-
|
|
1518
|
-
|
|
1519
|
-
|
|
1520
|
-
|
|
1521
|
-
|
|
1522
|
-
|
|
1523
|
-
|
|
1524
|
-
|
|
1525
|
-
|
|
1526
|
-
|
|
1527
|
-
|
|
1528
|
-
|
|
1529
|
-
|
|
1534
|
+
var sortByValuesBase = [
|
|
1535
|
+
{ label: (0, i18n_exports._)("Result"), value: "result" },
|
|
1536
|
+
{ label: (0, i18n_exports._)("Name"), value: "name" }
|
|
1537
|
+
];
|
|
1538
|
+
var sortByValuesWithValue = [...sortByValuesBase, { label: (0, i18n_exports._)("Value"), value: "value" }];
|
|
1539
|
+
var sortByValuesWithValueAndTrend = [
|
|
1540
|
+
...sortByValuesBase,
|
|
1541
|
+
{ label: (0, i18n_exports._)("Value"), value: "value" },
|
|
1542
|
+
{ label: (0, i18n_exports._)("Trend"), value: "trend" }
|
|
1543
|
+
];
|
|
1544
|
+
var makeSortRow = (sortByValues) => [
|
|
1545
|
+
{
|
|
1546
|
+
label: (0, i18n_exports._)("Sort by"),
|
|
1547
|
+
option: "trellisSortBy",
|
|
1548
|
+
editor: "editor.select",
|
|
1549
|
+
editorProps: {
|
|
1550
|
+
values: sortByValues
|
|
1551
|
+
},
|
|
1552
|
+
showEditor: isTrellisEnabled2
|
|
1553
|
+
},
|
|
1554
|
+
{
|
|
1555
|
+
label: (0, i18n_exports._)("Sort order"),
|
|
1556
|
+
option: "trellisSortOrder",
|
|
1557
|
+
editor: "editor.select",
|
|
1558
|
+
editorProps: {
|
|
1559
|
+
values: [
|
|
1560
|
+
{ label: (0, i18n_exports._)("Ascending"), value: "ascending" },
|
|
1561
|
+
{ label: (0, i18n_exports._)("Descending"), value: "descending" }
|
|
1562
|
+
]
|
|
1563
|
+
},
|
|
1564
|
+
showEditor: isTrellisEnabled2
|
|
1565
|
+
}
|
|
1566
|
+
];
|
|
1567
|
+
var trellisLayoutRow = [
|
|
1568
|
+
{
|
|
1569
|
+
label: (0, i18n_exports._)("Trellis layout"),
|
|
1570
|
+
option: "splitByLayout",
|
|
1571
|
+
editor: "editor.toggle",
|
|
1572
|
+
showEditor: isTrellisFeatureFlagOn2
|
|
1573
|
+
}
|
|
1574
|
+
];
|
|
1575
|
+
var trellisSplitByRow = [
|
|
1576
|
+
{
|
|
1577
|
+
label: (0, i18n_exports._)("Split by"),
|
|
1578
|
+
option: "trellisSplitBy",
|
|
1579
|
+
editor: "editor.trellisSplitBy",
|
|
1580
|
+
editorProps: {
|
|
1581
|
+
dataSourceKey: "primary"
|
|
1582
|
+
},
|
|
1583
|
+
showEditor: isTrellisEnabled2
|
|
1584
|
+
}
|
|
1585
|
+
];
|
|
1586
|
+
var trellisLayoutRows = [
|
|
1530
1587
|
[
|
|
1531
1588
|
{
|
|
1532
1589
|
label: (0, i18n_exports._)("Number of columns"),
|
|
@@ -1570,6 +1627,24 @@ var TrellisEditorConfig = [
|
|
|
1570
1627
|
}
|
|
1571
1628
|
]
|
|
1572
1629
|
];
|
|
1630
|
+
var TrellisEditorConfig = [
|
|
1631
|
+
trellisLayoutRow,
|
|
1632
|
+
trellisSplitByRow,
|
|
1633
|
+
makeSortRow(sortByValuesBase),
|
|
1634
|
+
...trellisLayoutRows
|
|
1635
|
+
];
|
|
1636
|
+
var GaugeTrellisEditorConfig = [
|
|
1637
|
+
trellisLayoutRow,
|
|
1638
|
+
trellisSplitByRow,
|
|
1639
|
+
makeSortRow(sortByValuesWithValue),
|
|
1640
|
+
...trellisLayoutRows
|
|
1641
|
+
];
|
|
1642
|
+
var SingleValueTrellisEditorConfig = [
|
|
1643
|
+
trellisLayoutRow,
|
|
1644
|
+
trellisSplitByRow,
|
|
1645
|
+
makeSortRow(sortByValuesWithValueAndTrend),
|
|
1646
|
+
...trellisLayoutRows
|
|
1647
|
+
];
|
|
1573
1648
|
var TimechartTrellisEditorConfig = [
|
|
1574
1649
|
[
|
|
1575
1650
|
{
|
|
@@ -1577,7 +1652,6 @@ var TimechartTrellisEditorConfig = [
|
|
|
1577
1652
|
option: "splitByLayout",
|
|
1578
1653
|
editor: "editor.toggle",
|
|
1579
1654
|
showEditor: isTrellisFeatureFlagOn2,
|
|
1580
|
-
// add help text for timecharts
|
|
1581
1655
|
editorProps: {
|
|
1582
1656
|
help: (0, i18n_exports._)(
|
|
1583
1657
|
"Y2-axis and overlay field configurations are not supported when trellis is enabled."
|
|
@@ -1586,7 +1660,9 @@ var TimechartTrellisEditorConfig = [
|
|
|
1586
1660
|
}
|
|
1587
1661
|
}
|
|
1588
1662
|
],
|
|
1589
|
-
|
|
1663
|
+
trellisSplitByRow,
|
|
1664
|
+
makeSortRow(sortByValuesBase),
|
|
1665
|
+
...trellisLayoutRows,
|
|
1590
1666
|
[
|
|
1591
1667
|
{
|
|
1592
1668
|
label: (0, i18n_exports._)("Shared y-axis scale"),
|
|
@@ -1710,6 +1786,10 @@ var AxesChartLegend = {
|
|
|
1710
1786
|
var AxesChartLegend_default = AxesChartLegend;
|
|
1711
1787
|
|
|
1712
1788
|
// src/common/editorConfig/AxesChartYGridAndLabels.ts
|
|
1789
|
+
var isAcceleratedRenderEnabled = ({ options, featureFlags }) => {
|
|
1790
|
+
const { acceleratedRender } = options;
|
|
1791
|
+
return isAcceleratedRenderFeatureFlagOn({ featureFlags }) && acceleratedRender;
|
|
1792
|
+
};
|
|
1713
1793
|
var AxesChartYGridAndLabels = {
|
|
1714
1794
|
label: (0, i18n_exports._)("Y-axis grid and labels"),
|
|
1715
1795
|
layout: [
|
|
@@ -1774,7 +1854,8 @@ var AxesChartYGridAndLabels = {
|
|
|
1774
1854
|
{
|
|
1775
1855
|
label: (0, i18n_exports._)("Extend to whole grid"),
|
|
1776
1856
|
option: "showYAxisExtendedRange",
|
|
1777
|
-
editor: "editor.checkbox"
|
|
1857
|
+
editor: "editor.checkbox",
|
|
1858
|
+
showEditor: ({ options, featureFlags }) => !isAcceleratedRenderEnabled({ options, featureFlags })
|
|
1778
1859
|
}
|
|
1779
1860
|
],
|
|
1780
1861
|
[
|
|
@@ -2080,7 +2161,7 @@ var prop_types_default = "default" in defaultImport30 ? defaultImport30.default
|
|
|
2080
2161
|
var INITIAL_HEIGHT = 250;
|
|
2081
2162
|
var SplunkVisualization = class {
|
|
2082
2163
|
};
|
|
2083
|
-
SplunkVisualization
|
|
2164
|
+
__publicField(SplunkVisualization, "propTypes", {
|
|
2084
2165
|
/**
|
|
2085
2166
|
* display mode
|
|
2086
2167
|
*/
|
|
@@ -2156,11 +2237,11 @@ SplunkVisualization.propTypes = {
|
|
|
2156
2237
|
* A callback to request new data with updated request params
|
|
2157
2238
|
*/
|
|
2158
2239
|
onRequestParamsChange: prop_types_exports.func
|
|
2159
|
-
};
|
|
2240
|
+
});
|
|
2160
2241
|
/**
|
|
2161
2242
|
*
|
|
2162
2243
|
*/
|
|
2163
|
-
SplunkVisualization
|
|
2244
|
+
__publicField(SplunkVisualization, "defaults", {
|
|
2164
2245
|
// BaseVisualization in dashboard-visualizations uses 100% for width but 250 for height
|
|
2165
2246
|
width: "100%",
|
|
2166
2247
|
height: INITIAL_HEIGHT,
|
|
@@ -2175,7 +2256,7 @@ SplunkVisualization.defaults = {
|
|
|
2175
2256
|
onComputedProps: () => ({}),
|
|
2176
2257
|
loading: false,
|
|
2177
2258
|
onRequestParamsChange: lodash_exports.noop
|
|
2178
|
-
};
|
|
2259
|
+
});
|
|
2179
2260
|
var SplunkVisualization_default = SplunkVisualization;
|
|
2180
2261
|
|
|
2181
2262
|
// src/common/hooks/useSorting.ts
|
|
@@ -2226,9 +2307,9 @@ var usePaginationParams = ({
|
|
|
2226
2307
|
meta,
|
|
2227
2308
|
onRequestParamsChange
|
|
2228
2309
|
}) => {
|
|
2229
|
-
const totalCount = meta
|
|
2230
|
-
const offset = requestParams
|
|
2231
|
-
const count = requestParams
|
|
2310
|
+
const totalCount = (meta == null ? void 0 : meta.totalCount) || 0;
|
|
2311
|
+
const offset = (requestParams == null ? void 0 : requestParams.offset) || 0;
|
|
2312
|
+
const count = requestParams == null ? void 0 : requestParams.count;
|
|
2232
2313
|
const totalPages = typeof count === "number" && count > 0 ? Math.ceil(totalCount / count) : 0;
|
|
2233
2314
|
const current = typeof count === "number" && count > 0 ? Math.floor(offset / count) + 1 : 0;
|
|
2234
2315
|
const isPaging = totalPages > 1 && typeof onRequestParamsChange === "function";
|
|
@@ -2327,7 +2408,7 @@ var Cover = styled_components_default.div`
|
|
|
2327
2408
|
bottom: 0;
|
|
2328
2409
|
`;
|
|
2329
2410
|
var Blocker = styled_components_default.div.attrs({
|
|
2330
|
-
"data-splunk-visualization-version": "28.
|
|
2411
|
+
"data-splunk-visualization-version": "28.6.0 - 92427899a"
|
|
2331
2412
|
})`
|
|
2332
2413
|
position: relative;
|
|
2333
2414
|
width: 100%;
|
|
@@ -2408,7 +2489,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
2408
2489
|
FixSizeItem,
|
|
2409
2490
|
{
|
|
2410
2491
|
"data-test": "fix-size-item",
|
|
2411
|
-
"data-splunk-visualization-version": "28.
|
|
2492
|
+
"data-splunk-visualization-version": "28.6.0 - 92427899a",
|
|
2412
2493
|
width,
|
|
2413
2494
|
height,
|
|
2414
2495
|
backgroundColor
|
|
@@ -2723,6 +2804,15 @@ var defaultImport36 = __toESM(require("@splunk/react-icons/Triangle"));
|
|
|
2723
2804
|
__reExport(Triangle_exports, require("@splunk/react-icons/Triangle"));
|
|
2724
2805
|
var Triangle_default = "default" in defaultImport36 ? defaultImport36.default : defaultImport36;
|
|
2725
2806
|
|
|
2807
|
+
// esm-externals:@splunk/visualizations-shared/propUtils
|
|
2808
|
+
var propUtils_exports = {};
|
|
2809
|
+
__export(propUtils_exports, {
|
|
2810
|
+
default: () => propUtils_default
|
|
2811
|
+
});
|
|
2812
|
+
var defaultImport37 = __toESM(require("@splunk/visualizations-shared/propUtils"));
|
|
2813
|
+
__reExport(propUtils_exports, require("@splunk/visualizations-shared/propUtils"));
|
|
2814
|
+
var propUtils_default = "default" in defaultImport37 ? defaultImport37.default : defaultImport37;
|
|
2815
|
+
|
|
2726
2816
|
// src/common/chartingUtils.ts
|
|
2727
2817
|
var DEFAULT_LINE_WIDTH = 2;
|
|
2728
2818
|
var getAnnotationsForCanvas = ({
|
|
@@ -2786,9 +2876,9 @@ var shouldEnableSearchZoom = (eventHandlers = [], xField = "") => {
|
|
|
2786
2876
|
const xAxisIsTime = xField === "_time";
|
|
2787
2877
|
return !!rangeSelectEventHandler && xAxisIsTime;
|
|
2788
2878
|
};
|
|
2789
|
-
var canvasSupportedTimeSeriesCharts = ["splunk.line"];
|
|
2879
|
+
var canvasSupportedTimeSeriesCharts = ["splunk.line", "splunk.area"];
|
|
2790
2880
|
var isTimeSeriesCanvasRenderSupported = (vizConfigKey) => {
|
|
2791
|
-
return canvasSupportedTimeSeriesCharts.
|
|
2881
|
+
return canvasSupportedTimeSeriesCharts.includes(vizConfigKey);
|
|
2792
2882
|
};
|
|
2793
2883
|
var filterChartDataFromInternalFields = (chartData) => {
|
|
2794
2884
|
const { fields, columns } = chartData;
|
|
@@ -2943,46 +3033,66 @@ var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInt
|
|
|
2943
3033
|
}
|
|
2944
3034
|
return y2Config;
|
|
2945
3035
|
};
|
|
2946
|
-
var
|
|
3036
|
+
var getSeriesType = (isOverlay, isAreaChart, isStacked) => {
|
|
3037
|
+
if (isOverlay) return "line";
|
|
3038
|
+
if (!isAreaChart) return void 0;
|
|
3039
|
+
return isStacked ? "stacked-area" : "area";
|
|
3040
|
+
};
|
|
3041
|
+
var getY2Scale = (field, y2fields, overlayFields) => {
|
|
3042
|
+
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));
|
|
3043
|
+
return assignToY2 ? "y2" : "y";
|
|
3044
|
+
};
|
|
3045
|
+
var getSeriesOverrides = (opts) => {
|
|
3046
|
+
var _a;
|
|
3047
|
+
const {
|
|
3048
|
+
yfields,
|
|
3049
|
+
y2fields,
|
|
3050
|
+
lineWidth,
|
|
3051
|
+
overlayFields,
|
|
3052
|
+
y2Enabled,
|
|
3053
|
+
nullValueMode,
|
|
3054
|
+
markerDisplay,
|
|
3055
|
+
lineDashStyle,
|
|
3056
|
+
lineDashStylesByField,
|
|
3057
|
+
stepPosition,
|
|
3058
|
+
stepPositionsByField,
|
|
3059
|
+
type,
|
|
3060
|
+
stackMode,
|
|
3061
|
+
showLines
|
|
3062
|
+
} = opts;
|
|
2947
3063
|
const seriesConfig = {};
|
|
2948
3064
|
let spanGaps;
|
|
2949
|
-
let replaceNullsWithZero;
|
|
2950
3065
|
if (nullValueMode === "gaps") {
|
|
2951
3066
|
spanGaps = false;
|
|
2952
|
-
} else if (nullValueMode
|
|
3067
|
+
} else if (nullValueMode != null) {
|
|
2953
3068
|
spanGaps = true;
|
|
2954
|
-
|
|
2955
|
-
|
|
2956
|
-
}
|
|
3069
|
+
} else {
|
|
3070
|
+
spanGaps = void 0;
|
|
2957
3071
|
}
|
|
2958
|
-
|
|
3072
|
+
const replaceNullsWithZero = nullValueMode === "zero" ? true : void 0;
|
|
3073
|
+
const isAreaChart = type === "area";
|
|
3074
|
+
const isStacked = isAreaChart && (stackMode === "stacked" || stackMode === "stacked100");
|
|
3075
|
+
const areaFields = isAreaChart ? yfields.filter((f) => !(overlayFields == null ? void 0 : overlayFields.includes(f))) : yfields;
|
|
3076
|
+
const overlayFieldsInOrder = (_a = overlayFields == null ? void 0 : overlayFields.filter((f) => yfields.includes(f))) != null ? _a : [];
|
|
3077
|
+
const orderedFields = isAreaChart ? [...areaFields, ...overlayFieldsInOrder] : yfields;
|
|
3078
|
+
orderedFields.forEach((field) => {
|
|
3079
|
+
var _a2;
|
|
3080
|
+
const isOverlay = (_a2 = overlayFields == null ? void 0 : overlayFields.includes(field)) != null ? _a2 : false;
|
|
3081
|
+
const isPercent = isAreaChart && stackMode === "stacked100" && !isOverlay;
|
|
3082
|
+
const shouldHideAreaOutline = isAreaChart && showLines === false && !isOverlay;
|
|
2959
3083
|
seriesConfig[field] = {
|
|
2960
|
-
overrides: {
|
|
3084
|
+
overrides: __spreadValues({
|
|
3085
|
+
width: shouldHideAreaOutline ? 0 : lineWidth != null ? lineWidth : DEFAULT_LINE_WIDTH
|
|
3086
|
+
}, isPercent ? { stacking: { mode: "percent", group: "A" } } : {})
|
|
2961
3087
|
};
|
|
2962
|
-
|
|
2963
|
-
|
|
2964
|
-
|
|
2965
|
-
if (y2Enabled)
|
|
2966
|
-
|
|
2967
|
-
|
|
2968
|
-
|
|
2969
|
-
|
|
2970
|
-
);
|
|
2971
|
-
if (shouldAssignToY2) {
|
|
2972
|
-
seriesConfig[field].overrides.scale = "y2";
|
|
2973
|
-
} else {
|
|
2974
|
-
seriesConfig[field].overrides.scale = "y";
|
|
2975
|
-
}
|
|
2976
|
-
}
|
|
2977
|
-
if (overlayFields == null ? void 0 : overlayFields.includes(field)) {
|
|
2978
|
-
seriesConfig[field].type = "line";
|
|
2979
|
-
}
|
|
2980
|
-
if (markerDisplay !== void 0) {
|
|
2981
|
-
seriesConfig[field].markerDisplay = markerDisplay;
|
|
2982
|
-
}
|
|
2983
|
-
const fieldDashStyle = (lineDashStylesByField == null ? void 0 : lineDashStylesByField[field]) || lineDashStyle;
|
|
2984
|
-
if (fieldDashStyle) {
|
|
2985
|
-
seriesConfig[field].lineDashStyle = fieldDashStyle;
|
|
3088
|
+
const seriesType = getSeriesType(isOverlay, isAreaChart, isStacked);
|
|
3089
|
+
if (seriesType !== void 0) seriesConfig[field].type = seriesType;
|
|
3090
|
+
if (spanGaps !== void 0) seriesConfig[field].overrides.spanGaps = spanGaps;
|
|
3091
|
+
if (y2Enabled) seriesConfig[field].overrides.scale = getY2Scale(field, y2fields, overlayFields);
|
|
3092
|
+
if (markerDisplay !== void 0) seriesConfig[field].markerDisplay = markerDisplay;
|
|
3093
|
+
if (!isAreaChart || isOverlay) {
|
|
3094
|
+
const fieldDashStyle = (lineDashStylesByField == null ? void 0 : lineDashStylesByField[field]) || lineDashStyle;
|
|
3095
|
+
if (fieldDashStyle) seriesConfig[field].lineDashStyle = fieldDashStyle;
|
|
2986
3096
|
}
|
|
2987
3097
|
const hasFieldStepPosition = Object.hasOwn(stepPositionsByField || {}, field);
|
|
2988
3098
|
const fieldStepPosition = hasFieldStepPosition ? stepPositionsByField == null ? void 0 : stepPositionsByField[field] : stepPosition;
|
|
@@ -3148,6 +3258,38 @@ var parseArrayOption = (value) => {
|
|
|
3148
3258
|
}
|
|
3149
3259
|
return void 0;
|
|
3150
3260
|
};
|
|
3261
|
+
var getAreaOpacityForCanvas = (areaOpacity) => (
|
|
3262
|
+
// Preserve legacy visualizations behavior where area opacity is squared to match charting output.
|
|
3263
|
+
areaOpacity !== void 0 && areaOpacity !== null ? __pow(areaOpacity, 2) : areaOpacity
|
|
3264
|
+
);
|
|
3265
|
+
var parseTickIntervalOption = (simpleXMLValue, canvasValue) => {
|
|
3266
|
+
if (simpleXMLValue) return Number(simpleXMLValue);
|
|
3267
|
+
if (canvasValue) return Number(canvasValue);
|
|
3268
|
+
return void 0;
|
|
3269
|
+
};
|
|
3270
|
+
var getYAxisTitles = ({
|
|
3271
|
+
y2Enabled,
|
|
3272
|
+
yFields,
|
|
3273
|
+
y2Fields,
|
|
3274
|
+
overlayFields,
|
|
3275
|
+
yAxisTitleText,
|
|
3276
|
+
yAxisTitleVisibility,
|
|
3277
|
+
y2AxisTitleText,
|
|
3278
|
+
y2AxisTitleVisibility,
|
|
3279
|
+
containerHeight
|
|
3280
|
+
}) => {
|
|
3281
|
+
const yFieldsForTitle = y2Enabled ? yFields.filter((field) => !y2Fields.includes(field)) : yFields;
|
|
3282
|
+
const fieldsForY2Axis = y2Fields.length > 0 ? y2Fields : overlayFields;
|
|
3283
|
+
const yAxisTitle = ellipsisAxisTitle(
|
|
3284
|
+
getComputedAxisTitles(yAxisTitleText, yFieldsForTitle, yAxisTitleVisibility),
|
|
3285
|
+
containerHeight
|
|
3286
|
+
);
|
|
3287
|
+
const y2AxisTitle = ellipsisAxisTitle(
|
|
3288
|
+
getComputedAxisTitles(y2AxisTitleText, fieldsForY2Axis, y2AxisTitleVisibility),
|
|
3289
|
+
containerHeight
|
|
3290
|
+
);
|
|
3291
|
+
return { yAxisTitle, y2AxisTitle };
|
|
3292
|
+
};
|
|
3151
3293
|
var TimeSeriesChartWrapper = (props) => {
|
|
3152
3294
|
var _b, _c, _d;
|
|
3153
3295
|
const _a = props, {
|
|
@@ -3237,6 +3379,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3237
3379
|
"chart.overlayFields": overlayFieldsStr,
|
|
3238
3380
|
"chart.nullValueMode": nullValueMode,
|
|
3239
3381
|
"chart.showDataLabels": showDataLabels,
|
|
3382
|
+
"chart.showLines": showLines,
|
|
3383
|
+
"chart.stackMode": stackMode,
|
|
3240
3384
|
lineWidth,
|
|
3241
3385
|
lineDashStyle,
|
|
3242
3386
|
fieldDashStyles: lineDashStylesByFieldStr,
|
|
@@ -3265,7 +3409,10 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3265
3409
|
yAxisMinorTickSize,
|
|
3266
3410
|
y2AxisMinorTickSize,
|
|
3267
3411
|
showYAxisWithZero: showYAxisWithZeroFromOptions,
|
|
3268
|
-
showY2AxisWithZero: showY2AxisWithZeroFromOptions
|
|
3412
|
+
showY2AxisWithZero: showY2AxisWithZeroFromOptions,
|
|
3413
|
+
// area only props
|
|
3414
|
+
areaFillOpacity: areaOpacity,
|
|
3415
|
+
chart: chartType
|
|
3269
3416
|
} = options;
|
|
3270
3417
|
const dataValuesDisplay = showDataLabels === "none" ? "off" : showDataLabels;
|
|
3271
3418
|
const showYAxisWithZero = showYAxisWithZeroFromProps != null ? showYAxisWithZeroFromProps : showYAxisWithZeroFromOptions;
|
|
@@ -3282,13 +3429,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3282
3429
|
const yAxisMax = parseAxisValue(yAxisMaxRaw);
|
|
3283
3430
|
const y2AxisMin = parseAxisValue(y2AxisMinRaw);
|
|
3284
3431
|
const y2AxisMax = parseAxisValue(y2AxisMaxRaw);
|
|
3285
|
-
const
|
|
3286
|
-
|
|
3287
|
-
|
|
3288
|
-
|
|
3289
|
-
|
|
3290
|
-
const yAxisMajorTickIntervalNum = parseTickInterval(yAxisMajorUnitFromSimpleXML, yAxisMajorTickInterval);
|
|
3291
|
-
const y2AxisMajorTickIntervalNum = parseTickInterval(
|
|
3432
|
+
const yAxisMajorTickIntervalNum = parseTickIntervalOption(
|
|
3433
|
+
yAxisMajorUnitFromSimpleXML,
|
|
3434
|
+
yAxisMajorTickInterval
|
|
3435
|
+
);
|
|
3436
|
+
const y2AxisMajorTickIntervalNum = parseTickIntervalOption(
|
|
3292
3437
|
y2AxisMajorUnitFromSimpleXML,
|
|
3293
3438
|
y2AxisMajorTickInterval
|
|
3294
3439
|
);
|
|
@@ -3297,6 +3442,7 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3297
3442
|
const y2AxisMajorTickSizeNum = y2AxisMajorTickSize != null ? Number(y2AxisMajorTickSize) : void 0;
|
|
3298
3443
|
const yAxisMinorTickSizeNum = yAxisMinorTickSize != null ? Number(yAxisMinorTickSize) : void 0;
|
|
3299
3444
|
const y2AxisMinorTickSizeNum = y2AxisMinorTickSize != null ? Number(y2AxisMinorTickSize) : void 0;
|
|
3445
|
+
const areaOpacityForCanvas = getAreaOpacityForCanvas(areaOpacity);
|
|
3300
3446
|
const seriesColors = seriesColorsStr ? JSON.parse(seriesColorsStr) : void 0;
|
|
3301
3447
|
const seriesColorsByField = fieldColors ? JSON.parse(fieldColors) : void 0;
|
|
3302
3448
|
const lineDashStylesByField = lineDashStylesByFieldStr ? JSON.parse(lineDashStylesByFieldStr) : void 0;
|
|
@@ -3327,26 +3473,40 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3327
3473
|
);
|
|
3328
3474
|
let xAxisTitle = getComputedAxisTitles(xAxisTitleText, [xField], xAxisTitleVisibility);
|
|
3329
3475
|
xAxisTitle = ellipsisAxisTitle(xAxisTitle, containerWidth);
|
|
3330
|
-
const
|
|
3331
|
-
|
|
3332
|
-
|
|
3333
|
-
|
|
3334
|
-
|
|
3335
|
-
|
|
3476
|
+
const { yAxisTitle, y2AxisTitle } = getYAxisTitles({
|
|
3477
|
+
y2Enabled,
|
|
3478
|
+
yFields,
|
|
3479
|
+
y2Fields,
|
|
3480
|
+
overlayFields,
|
|
3481
|
+
yAxisTitleText,
|
|
3482
|
+
yAxisTitleVisibility,
|
|
3483
|
+
y2AxisTitleText,
|
|
3484
|
+
y2AxisTitleVisibility,
|
|
3485
|
+
containerHeight
|
|
3486
|
+
});
|
|
3336
3487
|
const xScaleConfig = (0, react_exports.useMemo)(
|
|
3337
3488
|
() => getXScaleConfig(xAxisTitle, xAxisLabelVisibility, xAxisLabelRotation),
|
|
3338
3489
|
[xAxisTitle, xAxisLabelVisibility, xAxisLabelRotation]
|
|
3339
3490
|
);
|
|
3491
|
+
const isStacked100 = stackMode === "stacked100";
|
|
3340
3492
|
const yScaleConfig = (0, react_exports.useMemo)(
|
|
3341
|
-
() =>
|
|
3342
|
-
|
|
3343
|
-
|
|
3344
|
-
|
|
3345
|
-
|
|
3346
|
-
|
|
3347
|
-
|
|
3348
|
-
|
|
3349
|
-
|
|
3493
|
+
() => {
|
|
3494
|
+
const config2 = getYScaleConfig(
|
|
3495
|
+
yAxisTitle,
|
|
3496
|
+
yAxisAbbreviation,
|
|
3497
|
+
yAxisScale,
|
|
3498
|
+
yAxisLabelVisibility,
|
|
3499
|
+
yAxisMin,
|
|
3500
|
+
yAxisMax
|
|
3501
|
+
);
|
|
3502
|
+
if (isStacked100) {
|
|
3503
|
+
config2.y.tickFmt = (v) => `${Math.round(v * 100)}%`;
|
|
3504
|
+
config2.y.range = () => [0, 1];
|
|
3505
|
+
}
|
|
3506
|
+
return config2;
|
|
3507
|
+
},
|
|
3508
|
+
// eslint-disable-next-line react-hooks/exhaustive-deps
|
|
3509
|
+
[yAxisTitle, yAxisAbbreviation, yAxisScale, yAxisLabelVisibility, yAxisMin, yAxisMax, isStacked100]
|
|
3350
3510
|
);
|
|
3351
3511
|
const y2ScaleConfig = (0, react_exports.useMemo)(() => {
|
|
3352
3512
|
if (y2Enabled) {
|
|
@@ -3378,10 +3538,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3378
3538
|
];
|
|
3379
3539
|
chartData.fields = filteredChartData.fields;
|
|
3380
3540
|
chartData.columns = seriesDataFormatted;
|
|
3541
|
+
const normalizedStackMode = stackMode === "stacked" || stackMode === "stacked100" ? stackMode : "auto";
|
|
3381
3542
|
const seriesOverrides = (0, react_exports.useMemo)(
|
|
3382
|
-
() => getSeriesOverrides(
|
|
3383
|
-
yFields,
|
|
3384
|
-
y2Fields,
|
|
3543
|
+
() => getSeriesOverrides({
|
|
3544
|
+
yfields: yFields,
|
|
3545
|
+
y2fields: y2Fields,
|
|
3385
3546
|
lineWidth,
|
|
3386
3547
|
overlayFields,
|
|
3387
3548
|
y2Enabled,
|
|
@@ -3390,8 +3551,11 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3390
3551
|
lineDashStyle,
|
|
3391
3552
|
lineDashStylesByField,
|
|
3392
3553
|
stepPosition,
|
|
3393
|
-
stepPositionsByField
|
|
3394
|
-
|
|
3554
|
+
stepPositionsByField,
|
|
3555
|
+
type: chartType,
|
|
3556
|
+
stackMode: normalizedStackMode,
|
|
3557
|
+
showLines
|
|
3558
|
+
}),
|
|
3395
3559
|
[
|
|
3396
3560
|
yFields,
|
|
3397
3561
|
y2Fields,
|
|
@@ -3403,7 +3567,10 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3403
3567
|
lineDashStyle,
|
|
3404
3568
|
lineDashStylesByField,
|
|
3405
3569
|
stepPosition,
|
|
3406
|
-
stepPositionsByField
|
|
3570
|
+
stepPositionsByField,
|
|
3571
|
+
chartType,
|
|
3572
|
+
normalizedStackMode,
|
|
3573
|
+
showLines
|
|
3407
3574
|
]
|
|
3408
3575
|
);
|
|
3409
3576
|
const chartingEventAnnotations = (0, react_exports.useMemo)(
|
|
@@ -3471,50 +3638,54 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3471
3638
|
react_exports.useEffect(() => {
|
|
3472
3639
|
additionalTooltipValuesRef.current = additionalTooltipValues;
|
|
3473
3640
|
}, [additionalTooltipValues]);
|
|
3641
|
+
const handleCrosshairMouseout = react_exports.useCallback(() => {
|
|
3642
|
+
if (onPointMouseOut && lastPayloadRef.current) {
|
|
3643
|
+
onPointMouseOut({
|
|
3644
|
+
type: "point.mouseout",
|
|
3645
|
+
originalEvent: lastOriginalEventRef.current,
|
|
3646
|
+
payload: lastPayloadRef.current
|
|
3647
|
+
});
|
|
3648
|
+
}
|
|
3649
|
+
previousMouseoverPayloadRef.current = null;
|
|
3650
|
+
}, [onPointMouseOut]);
|
|
3474
3651
|
const handleChartCrosshairChange = react_exports.useCallback(
|
|
3475
3652
|
(event) => {
|
|
3476
|
-
if (onPointMouseOver
|
|
3477
|
-
|
|
3478
|
-
|
|
3479
|
-
|
|
3480
|
-
|
|
3481
|
-
|
|
3482
|
-
|
|
3483
|
-
|
|
3484
|
-
|
|
3485
|
-
|
|
3486
|
-
|
|
3487
|
-
|
|
3488
|
-
|
|
3489
|
-
|
|
3653
|
+
if (!onPointMouseOver && !onPointMouseOut) {
|
|
3654
|
+
return;
|
|
3655
|
+
}
|
|
3656
|
+
if (!event) {
|
|
3657
|
+
handleCrosshairMouseout();
|
|
3658
|
+
return;
|
|
3659
|
+
}
|
|
3660
|
+
const payload = __spreadProps(__spreadValues({}, (0, lodash_exports.pick)(event, "value", "seriesKey", "time", "index", "seriesIndex")), {
|
|
3661
|
+
name: event.seriesKey
|
|
3662
|
+
});
|
|
3663
|
+
delete payload.seriesKey;
|
|
3664
|
+
if (event.rowContext) {
|
|
3665
|
+
Object.assign(
|
|
3666
|
+
payload,
|
|
3667
|
+
Object.keys(event.rowContext).reduce((acc, fieldName) => {
|
|
3668
|
+
acc[`row.${fieldName}.value`] = event.rowContext[fieldName];
|
|
3669
|
+
return acc;
|
|
3670
|
+
}, {})
|
|
3671
|
+
);
|
|
3672
|
+
}
|
|
3673
|
+
const updatedPayload = appendTrellisToPayload2(payload, trellisKey, trellisSplitBy);
|
|
3674
|
+
if (!hasMouseoverPayloadChanged(updatedPayload, previousMouseoverPayloadRef.current)) {
|
|
3675
|
+
return;
|
|
3676
|
+
}
|
|
3677
|
+
lastPayloadRef.current = updatedPayload;
|
|
3678
|
+
lastOriginalEventRef.current = event;
|
|
3679
|
+
previousMouseoverPayloadRef.current = __spreadValues({}, updatedPayload);
|
|
3680
|
+
if (onPointMouseOver) {
|
|
3681
|
+
onPointMouseOver({
|
|
3682
|
+
type: "point.mouseover",
|
|
3683
|
+
originalEvent: event,
|
|
3684
|
+
payload: updatedPayload
|
|
3490
3685
|
});
|
|
3491
|
-
delete payload.seriesKey;
|
|
3492
|
-
if (event.rowContext) {
|
|
3493
|
-
Object.assign(
|
|
3494
|
-
payload,
|
|
3495
|
-
Object.keys(event.rowContext).reduce((acc, fieldName) => {
|
|
3496
|
-
acc[`row.${fieldName}.value`] = event.rowContext[fieldName];
|
|
3497
|
-
return acc;
|
|
3498
|
-
}, {})
|
|
3499
|
-
);
|
|
3500
|
-
}
|
|
3501
|
-
const updatedPayload = appendTrellisToPayload2(payload, trellisKey, trellisSplitBy);
|
|
3502
|
-
if (!hasMouseoverPayloadChanged(updatedPayload, previousMouseoverPayloadRef.current)) {
|
|
3503
|
-
return;
|
|
3504
|
-
}
|
|
3505
|
-
lastPayloadRef.current = updatedPayload;
|
|
3506
|
-
lastOriginalEventRef.current = event;
|
|
3507
|
-
previousMouseoverPayloadRef.current = __spreadValues({}, updatedPayload);
|
|
3508
|
-
if (onPointMouseOver) {
|
|
3509
|
-
onPointMouseOver({
|
|
3510
|
-
type: "point.mouseover",
|
|
3511
|
-
originalEvent: event,
|
|
3512
|
-
payload: updatedPayload
|
|
3513
|
-
});
|
|
3514
|
-
}
|
|
3515
3686
|
}
|
|
3516
3687
|
},
|
|
3517
|
-
[onPointMouseOver, onPointMouseOut, trellisKey, trellisSplitBy]
|
|
3688
|
+
[onPointMouseOver, onPointMouseOut, trellisKey, trellisSplitBy, handleCrosshairMouseout]
|
|
3518
3689
|
);
|
|
3519
3690
|
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}`;
|
|
3520
3691
|
const memoizedChart = (0, react_exports.useMemo)(() => {
|
|
@@ -3569,7 +3740,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3569
3740
|
showXAxisLine,
|
|
3570
3741
|
showYAxisLine,
|
|
3571
3742
|
showY2AxisLine,
|
|
3572
|
-
xAxisMaxLabelParts
|
|
3743
|
+
xAxisMaxLabelParts,
|
|
3744
|
+
areaOpacity: areaOpacityForCanvas
|
|
3573
3745
|
}
|
|
3574
3746
|
));
|
|
3575
3747
|
}, [
|
|
@@ -3621,7 +3793,8 @@ var TimeSeriesChartWrapper = (props) => {
|
|
|
3621
3793
|
showYAxisLine,
|
|
3622
3794
|
showY2AxisLine,
|
|
3623
3795
|
legendMode,
|
|
3624
|
-
xAxisMaxLabelParts
|
|
3796
|
+
xAxisMaxLabelParts,
|
|
3797
|
+
areaOpacityForCanvas
|
|
3625
3798
|
]);
|
|
3626
3799
|
const memoizedVisualization = (0, react_exports.useMemo)(() => {
|
|
3627
3800
|
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor: bgColor }, memoizedChart);
|
|
@@ -3649,6 +3822,37 @@ var TimeSeriesChartWrapper_default = TimeSeriesChartWrapper;
|
|
|
3649
3822
|
|
|
3650
3823
|
// src/common/withDashboardViz.tsx
|
|
3651
3824
|
var SanitizedTimeSeriesChartWrapper = (0, SanitizeProps_exports.withSanitizedProps)(TimeSeriesChartWrapper_default);
|
|
3825
|
+
var buildEventCallbackProps = (supportedEvents, evaluatedOptionsToUse, onEventTrigger) => {
|
|
3826
|
+
const result = {};
|
|
3827
|
+
Object.keys(supportedEvents).forEach((eventName) => {
|
|
3828
|
+
const { parentKeys, payloadKeys } = supportedEvents[eventName];
|
|
3829
|
+
const eventCallbackPropName = (0, lodash_exports.camelCase)(`on.${eventName}`);
|
|
3830
|
+
let payload = {};
|
|
3831
|
+
if (Array.isArray(payloadKeys) && payloadKeys.length) {
|
|
3832
|
+
payloadKeys.forEach((p) => {
|
|
3833
|
+
payload[p] = evaluatedOptionsToUse[p];
|
|
3834
|
+
});
|
|
3835
|
+
}
|
|
3836
|
+
result[eventCallbackPropName] = (ev) => {
|
|
3837
|
+
if (ev == null ? void 0 : ev.payload) {
|
|
3838
|
+
payload = __spreadValues({}, ev.payload);
|
|
3839
|
+
}
|
|
3840
|
+
return onEventTrigger({
|
|
3841
|
+
originalEvent: ev,
|
|
3842
|
+
payload,
|
|
3843
|
+
type: eventName
|
|
3844
|
+
});
|
|
3845
|
+
};
|
|
3846
|
+
if (parentKeys) {
|
|
3847
|
+
for (let i = parentKeys.length - 1; i >= 0; i -= 1) {
|
|
3848
|
+
const newObject = {};
|
|
3849
|
+
newObject[parentKeys[i]] = result[eventCallbackPropName];
|
|
3850
|
+
result[eventCallbackPropName] = newObject;
|
|
3851
|
+
}
|
|
3852
|
+
}
|
|
3853
|
+
});
|
|
3854
|
+
return result;
|
|
3855
|
+
};
|
|
3652
3856
|
var withDashboardViz = (opts) => {
|
|
3653
3857
|
const {
|
|
3654
3858
|
ReactViz,
|
|
@@ -3706,9 +3910,7 @@ var withDashboardViz = (opts) => {
|
|
|
3706
3910
|
const isDownsamplingEnabledByFeatureFlag = Boolean(
|
|
3707
3911
|
featureFlagContext == null ? void 0 : featureFlagContext.visualizations_enableDownsampling
|
|
3708
3912
|
);
|
|
3709
|
-
const isTrellisFeatureFlagOn3 = Boolean(
|
|
3710
|
-
featureFlagContext && featureFlagContext.visualizations_enableTrellis
|
|
3711
|
-
);
|
|
3913
|
+
const isTrellisFeatureFlagOn3 = Boolean(featureFlagContext == null ? void 0 : featureFlagContext.visualizations_enableTrellis);
|
|
3712
3914
|
const isTrellisOn = isTrellisFeatureFlagOn3 && ((_a = vizConfig == null ? void 0 : vizConfig.supports) == null ? void 0 : _a.includes("trellis" /* TRELLIS */)) && (options == null ? void 0 : options.splitByLayout) === "trellis" /* TRELLIS */;
|
|
3713
3915
|
const isAcceleratedRenderFeatureFlagOn2 = Boolean(
|
|
3714
3916
|
featureFlagContext == null ? void 0 : featureFlagContext.visualizations_enableAcceleratedRender
|
|
@@ -3873,38 +4075,12 @@ var withDashboardViz = (opts) => {
|
|
|
3873
4075
|
}
|
|
3874
4076
|
);
|
|
3875
4077
|
}
|
|
3876
|
-
const eventCallbackProps = {};
|
|
3877
|
-
|
|
3878
|
-
|
|
3879
|
-
|
|
3880
|
-
|
|
3881
|
-
|
|
3882
|
-
let payload = {};
|
|
3883
|
-
if (Array.isArray(payloadKeys) && payloadKeys.length) {
|
|
3884
|
-
payloadKeys.forEach((p) => {
|
|
3885
|
-
payload[p] = evaluatedOptionsToUse[p];
|
|
3886
|
-
});
|
|
3887
|
-
}
|
|
3888
|
-
eventCallbackProps[eventCallbackPropName] = (ev) => {
|
|
3889
|
-
if (ev == null ? void 0 : ev.payload) {
|
|
3890
|
-
payload = __spreadValues({}, ev.payload);
|
|
3891
|
-
}
|
|
3892
|
-
return onEventTrigger({
|
|
3893
|
-
originalEvent: ev,
|
|
3894
|
-
payload,
|
|
3895
|
-
type: eventName
|
|
3896
|
-
});
|
|
3897
|
-
};
|
|
3898
|
-
if (parentKeys) {
|
|
3899
|
-
for (let i = parentKeys.length - 1; i >= 0; i -= 1) {
|
|
3900
|
-
const newObject = {};
|
|
3901
|
-
newObject[parentKeys[i]] = eventCallbackProps[eventCallbackPropName];
|
|
3902
|
-
eventCallbackProps[eventCallbackPropName] = newObject;
|
|
3903
|
-
}
|
|
3904
|
-
}
|
|
3905
|
-
});
|
|
3906
|
-
}
|
|
3907
|
-
const computedVizProps = computeVizProps2(__spreadProps(__spreadValues(__spreadValues(__spreadValues({}, props), evaluatedOptionsToUse), eventCallbackProps), {
|
|
4078
|
+
const eventCallbackProps = hasEventHandlers && mode === "view" && vizConfig.supports.includes("events" /* EVENTS */) ? buildEventCallbackProps(vizConfig.events, evaluatedOptionsToUse, onEventTrigger) : {};
|
|
4079
|
+
const computedVizProps = computeVizProps2(__spreadProps(__spreadValues(__spreadProps(__spreadValues(__spreadValues({}, props), evaluatedOptionsToUse), {
|
|
4080
|
+
// Align option transformation with the actual renderer selected below.
|
|
4081
|
+
// This prevents canvas-only option preservation from leaking into Highcharts mode.
|
|
4082
|
+
isAcceleratedRenderOn
|
|
4083
|
+
}), eventCallbackProps), {
|
|
3908
4084
|
themeFunc
|
|
3909
4085
|
}));
|
|
3910
4086
|
if (useAsyncEvaluatedOptions && Object.keys(evaluatedOptionsToUse).length === 0) {
|
|
@@ -3933,15 +4109,6 @@ var withDashboardViz = (opts) => {
|
|
|
3933
4109
|
};
|
|
3934
4110
|
var withDashboardViz_default = withDashboardViz;
|
|
3935
4111
|
|
|
3936
|
-
// esm-externals:@splunk/visualizations-shared/propUtils
|
|
3937
|
-
var propUtils_exports = {};
|
|
3938
|
-
__export(propUtils_exports, {
|
|
3939
|
-
default: () => propUtils_default
|
|
3940
|
-
});
|
|
3941
|
-
var defaultImport37 = __toESM(require("@splunk/visualizations-shared/propUtils"));
|
|
3942
|
-
__reExport(propUtils_exports, require("@splunk/visualizations-shared/propUtils"));
|
|
3943
|
-
var propUtils_default = "default" in defaultImport37 ? defaultImport37.default : defaultImport37;
|
|
3944
|
-
|
|
3945
4112
|
// src/Bubble/bubbleUtils.ts
|
|
3946
4113
|
var bubbleOptionsSCMapping = {
|
|
3947
4114
|
xAxisLabelRotation: "xAxisMajorLabelRotation",
|