@splunk/visualizations 28.0.0 → 28.2.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.config.js +27 -0
- package/Area.config.js.map +2 -2
- package/Area.js +722 -355
- package/Area.js.map +4 -4
- package/Bar.config.js +27 -0
- package/Bar.config.js.map +2 -2
- package/Bar.js +754 -387
- package/Bar.js.map +4 -4
- package/Bubble.config.js +27 -0
- package/Bubble.config.js.map +2 -2
- package/Bubble.js +684 -321
- package/Bubble.js.map +4 -4
- package/CHANGELOG.external.md +63 -2
- package/ChoroplethSvg.js +582 -202
- package/ChoroplethSvg.js.map +4 -4
- package/Column.config.js +27 -0
- package/Column.config.js.map +2 -2
- package/Column.js +769 -402
- package/Column.js.map +4 -4
- package/Ellipse.js +593 -214
- package/Ellipse.js.map +4 -4
- package/Events.js +592 -201
- package/Events.js.map +4 -4
- package/FEATUREFLAGS.md +1 -0
- package/FillerGauge.config.js +124 -3
- package/FillerGauge.config.js.map +3 -3
- package/FillerGauge.js +1371 -256
- package/FillerGauge.js.map +4 -4
- package/Image.js +590 -217
- package/Image.js.map +4 -4
- package/Line.config.js +28 -1
- package/Line.config.js.map +2 -2
- package/Line.js +737 -370
- package/Line.js.map +4 -4
- package/LinkGraph.js +1095 -692
- package/LinkGraph.js.map +4 -4
- package/Map.config.js +49 -3
- package/Map.config.js.map +2 -2
- package/Map.js +581 -145
- package/Map.js.map +4 -4
- package/Markdown.js +617 -230
- package/Markdown.js.map +4 -4
- package/MarkerGauge.js +544 -169
- package/MarkerGauge.js.map +4 -4
- package/ParallelCoordinates.js +565 -174
- package/ParallelCoordinates.js.map +4 -4
- package/Pie.js +651 -316
- package/Pie.js.map +4 -4
- package/Punchcard.js +589 -200
- package/Punchcard.js.map +4 -4
- package/Rectangle.js +604 -224
- package/Rectangle.js.map +4 -4
- package/Sankey.js +577 -201
- package/Sankey.js.map +4 -4
- package/Scatter.config.js +27 -0
- package/Scatter.config.js.map +2 -2
- package/Scatter.js +688 -326
- package/Scatter.js.map +4 -4
- package/SingleValue.js +543 -166
- package/SingleValue.js.map +4 -4
- package/SingleValueIcon.js +535 -160
- package/SingleValueIcon.js.map +4 -4
- package/SingleValueRadial.js +528 -153
- package/SingleValueRadial.js.map +4 -4
- package/TRELLIS.md +2 -2
- package/Table.config.js +109 -33
- package/Table.config.js.map +4 -4
- package/Table.js +986 -322
- package/Table.js.map +4 -4
- package/Timeline.js +626 -247
- package/Timeline.js.map +4 -4
- package/common/Charting.js +49 -111
- package/common/Charting.js.map +4 -4
- package/common/GaugeMajorTicks.js +6 -14
- package/common/GaugeMajorTicks.js.map +2 -2
- package/common/GaugeValueMarker.js +6 -14
- package/common/GaugeValueMarker.js.map +2 -2
- package/common/OptionsDoc.js +3 -2
- package/common/OptionsDoc.js.map +2 -2
- package/common/SplunkVisualization.js +1 -1
- package/common/SplunkVisualization.js.map +2 -2
- package/common/TimeSeriesChartWrapper.js +485 -0
- package/common/TimeSeriesChartWrapper.js.map +7 -0
- package/common/chartingUtils.js +252 -1
- package/common/chartingUtils.js.map +4 -4
- package/common/shapeUtils.js.map +1 -1
- package/common/utils/hocUtils.js +1 -1
- package/common/utils/hocUtils.js.map +2 -2
- package/common/utils/mapUtils.js.map +1 -1
- package/common/utils/tableUtils.js +60 -0
- package/common/utils/tableUtils.js.map +7 -0
- package/common/withDashboardViz.js +552 -161
- package/common/withDashboardViz.js.map +4 -4
- package/dist/types/Area/Area.d.ts +13 -0
- package/dist/types/Area/Area.d.ts.map +1 -0
- package/dist/types/Area/areaUtils.d.ts +15 -0
- package/dist/types/Area/areaUtils.d.ts.map +1 -0
- package/dist/types/Area/config.d.ts +4 -0
- package/dist/types/Area/config.d.ts.map +1 -0
- package/dist/types/Area/index.d.ts +3 -0
- package/dist/types/Area/index.d.ts.map +1 -0
- package/dist/types/Bar/Bar.d.ts +13 -0
- package/dist/types/Bar/Bar.d.ts.map +1 -0
- package/dist/types/Bar/barUtils.d.ts +30 -0
- package/dist/types/Bar/barUtils.d.ts.map +1 -0
- package/dist/types/Bar/config.d.ts +4 -0
- package/dist/types/Bar/config.d.ts.map +1 -0
- package/dist/types/Bar/index.d.ts +3 -0
- package/dist/types/Bar/index.d.ts.map +1 -0
- package/dist/types/Bubble/Bubble.d.ts +9 -0
- package/dist/types/Bubble/Bubble.d.ts.map +1 -0
- package/dist/types/Bubble/bubbleUtils.d.ts +47 -0
- package/dist/types/Bubble/bubbleUtils.d.ts.map +1 -0
- package/dist/types/Bubble/config.d.ts +4 -0
- package/dist/types/Bubble/config.d.ts.map +1 -0
- package/dist/types/Bubble/index.d.ts +3 -0
- package/dist/types/Bubble/index.d.ts.map +1 -0
- package/dist/types/ChoroplethSvg/ChoroplethSvg.d.ts +24 -0
- package/dist/types/ChoroplethSvg/ChoroplethSvg.d.ts.map +1 -0
- package/dist/types/ChoroplethSvg/ErrorMessage/ErrorMessage.d.ts +6 -0
- package/dist/types/ChoroplethSvg/ErrorMessage/ErrorMessage.d.ts.map +1 -0
- package/dist/types/ChoroplethSvg/PureChoroplethSvg/PureChoroplethSvg.d.ts +29 -0
- package/dist/types/ChoroplethSvg/PureChoroplethSvg/PureChoroplethSvg.d.ts.map +1 -0
- package/dist/types/ChoroplethSvg/PureChoroplethSvg/SvgChoroplethDynamic.d.ts +34 -0
- package/dist/types/ChoroplethSvg/PureChoroplethSvg/SvgChoroplethDynamic.d.ts.map +1 -0
- package/dist/types/ChoroplethSvg/PureChoroplethSvg/SvgMutator.d.ts +144 -0
- package/dist/types/ChoroplethSvg/PureChoroplethSvg/SvgMutator.d.ts.map +1 -0
- package/dist/types/ChoroplethSvg/config.d.ts +4 -0
- package/dist/types/ChoroplethSvg/config.d.ts.map +1 -0
- package/dist/types/ChoroplethSvg/index.d.ts +3 -0
- package/dist/types/ChoroplethSvg/index.d.ts.map +1 -0
- package/dist/types/Column/Column.d.ts +11 -0
- package/dist/types/Column/Column.d.ts.map +1 -0
- package/dist/types/Column/columnUtils.d.ts +82 -0
- package/dist/types/Column/columnUtils.d.ts.map +1 -0
- package/dist/types/Column/config.d.ts +4 -0
- package/dist/types/Column/config.d.ts.map +1 -0
- package/dist/types/Column/index.d.ts +3 -0
- package/dist/types/Column/index.d.ts.map +1 -0
- package/dist/types/Ellipse/Ellipse.d.ts +7 -0
- package/dist/types/Ellipse/Ellipse.d.ts.map +1 -0
- package/dist/types/Ellipse/config.d.ts +4 -0
- package/dist/types/Ellipse/config.d.ts.map +1 -0
- package/dist/types/Ellipse/index.d.ts +3 -0
- package/dist/types/Ellipse/index.d.ts.map +1 -0
- package/dist/types/Events/EventUtils.d.ts +137 -0
- package/dist/types/Events/EventUtils.d.ts.map +1 -0
- package/dist/types/Events/Events.d.ts +19 -0
- package/dist/types/Events/Events.d.ts.map +1 -0
- package/dist/types/Events/PureEvents/FieldSummaryTooltip.d.ts +50 -0
- package/dist/types/Events/PureEvents/FieldSummaryTooltip.d.ts.map +1 -0
- package/dist/types/Events/PureEvents/PureEvents.d.ts +34 -0
- package/dist/types/Events/PureEvents/PureEvents.d.ts.map +1 -0
- package/dist/types/Events/PureEvents/TimeControlsPopover.d.ts +33 -0
- package/dist/types/Events/PureEvents/TimeControlsPopover.d.ts.map +1 -0
- package/dist/types/Events/config.d.ts +4 -0
- package/dist/types/Events/config.d.ts.map +1 -0
- package/dist/types/Events/index.d.ts +3 -0
- package/dist/types/Events/index.d.ts.map +1 -0
- package/dist/types/FillerGauge/FillerGauge.d.ts +13 -0
- package/dist/types/FillerGauge/FillerGauge.d.ts.map +1 -0
- package/dist/types/FillerGauge/PureFillerGauge/FillerGauge.d.ts +32 -0
- package/dist/types/FillerGauge/PureFillerGauge/FillerGauge.d.ts.map +1 -0
- package/dist/types/FillerGauge/config.d.ts +4 -0
- package/dist/types/FillerGauge/config.d.ts.map +1 -0
- package/dist/types/FillerGauge/index.d.ts +3 -0
- package/dist/types/FillerGauge/index.d.ts.map +1 -0
- package/dist/types/Image/Image.d.ts +13 -0
- package/dist/types/Image/Image.d.ts.map +1 -0
- package/dist/types/Image/ImageApi.d.ts +15 -0
- package/dist/types/Image/ImageApi.d.ts.map +1 -0
- package/dist/types/Image/config.d.ts +4 -0
- package/dist/types/Image/config.d.ts.map +1 -0
- package/dist/types/Image/index.d.ts +3 -0
- package/dist/types/Image/index.d.ts.map +1 -0
- package/dist/types/Line/Line.d.ts +13 -0
- package/dist/types/Line/Line.d.ts.map +1 -0
- package/dist/types/Line/config.d.ts +4 -0
- package/dist/types/Line/config.d.ts.map +1 -0
- package/dist/types/Line/index.d.ts +3 -0
- package/dist/types/Line/index.d.ts.map +1 -0
- package/dist/types/Line/lineUtils.d.ts +22 -0
- package/dist/types/Line/lineUtils.d.ts.map +1 -0
- package/dist/types/Line/mockdata/LineData.d.ts +184 -0
- package/dist/types/Line/mockdata/LineData.d.ts.map +1 -0
- package/dist/types/LinkGraph/ESTestDataSources.d.ts +32 -0
- package/dist/types/LinkGraph/ESTestDataSources.d.ts.map +1 -0
- package/dist/types/LinkGraph/ESTestTemplate.d.ts +2 -0
- package/dist/types/LinkGraph/ESTestTemplate.d.ts.map +1 -0
- package/dist/types/LinkGraph/LinkGraph.d.ts +22 -0
- package/dist/types/LinkGraph/LinkGraph.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/PureLinkGraph.d.ts +89 -0
- package/dist/types/LinkGraph/PureLinkGraph/PureLinkGraph.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/PureLinkGraphUtils.d.ts +74 -0
- package/dist/types/LinkGraph/PureLinkGraph/PureLinkGraphUtils.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Edges.d.ts +9 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Edges.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Field.d.ts +14 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Field.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/FieldStyles.d.ts +5 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/FieldStyles.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Graph.d.ts +49 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Graph.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/GraphStyles.d.ts +11 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/GraphStyles.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Node.d.ts +24 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Node.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Nodes.d.ts +16 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Nodes.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/utils/iconLoader.d.ts +168 -0
- package/dist/types/LinkGraph/PureLinkGraph/utils/iconLoader.d.ts.map +1 -0
- package/dist/types/LinkGraph/config.d.ts +4 -0
- package/dist/types/LinkGraph/config.d.ts.map +1 -0
- package/dist/types/LinkGraph/index.d.ts +3 -0
- package/dist/types/LinkGraph/index.d.ts.map +1 -0
- package/dist/types/Map/Map.d.ts +28 -0
- package/dist/types/Map/Map.d.ts.map +1 -0
- package/dist/types/Map/MapContextDefault.d.ts +39 -0
- package/dist/types/Map/MapContextDefault.d.ts.map +1 -0
- package/dist/types/Map/PureMap/BubbleLayer.d.ts +51 -0
- package/dist/types/Map/PureMap/BubbleLayer.d.ts.map +1 -0
- package/dist/types/Map/PureMap/ChoroplethLayer.d.ts +36 -0
- package/dist/types/Map/PureMap/ChoroplethLayer.d.ts.map +1 -0
- package/dist/types/Map/PureMap/ClusterLayer.d.ts +17 -0
- package/dist/types/Map/PureMap/ClusterLayer.d.ts.map +1 -0
- package/dist/types/Map/PureMap/LocalChoroplethLayer.d.ts +18 -0
- package/dist/types/Map/PureMap/LocalChoroplethLayer.d.ts.map +1 -0
- package/dist/types/Map/PureMap/MapUtils.d.ts +141 -0
- package/dist/types/Map/PureMap/MapUtils.d.ts.map +1 -0
- package/dist/types/Map/PureMap/MarkerLayer.d.ts +34 -0
- package/dist/types/Map/PureMap/MarkerLayer.d.ts.map +1 -0
- package/dist/types/Map/PureMap/MarkerWrapper.d.ts +17 -0
- package/dist/types/Map/PureMap/MarkerWrapper.d.ts.map +1 -0
- package/dist/types/Map/PureMap/PureMap.d.ts +102 -0
- package/dist/types/Map/PureMap/PureMap.d.ts.map +1 -0
- package/dist/types/Map/PureMap/PureMapContainer.d.ts +15 -0
- package/dist/types/Map/PureMap/PureMapContainer.d.ts.map +1 -0
- package/dist/types/Map/PureMap/Tooltip.d.ts +20 -0
- package/dist/types/Map/PureMap/Tooltip.d.ts.map +1 -0
- package/dist/types/Map/PureMap/mockdata/data.d.ts +90 -0
- package/dist/types/Map/PureMap/mockdata/data.d.ts.map +1 -0
- package/dist/types/Map/config.d.ts +4 -0
- package/dist/types/Map/config.d.ts.map +1 -0
- package/dist/types/Map/index.d.ts +3 -0
- package/dist/types/Map/index.d.ts.map +1 -0
- package/dist/types/Markdown/Markdown.d.ts +31 -0
- package/dist/types/Markdown/Markdown.d.ts.map +1 -0
- package/dist/types/Markdown/config.d.ts +4 -0
- package/dist/types/Markdown/config.d.ts.map +1 -0
- package/dist/types/Markdown/index.d.ts +3 -0
- package/dist/types/Markdown/index.d.ts.map +1 -0
- package/dist/types/MarkerGauge/MarkerGauge.d.ts +55 -0
- package/dist/types/MarkerGauge/MarkerGauge.d.ts.map +1 -0
- package/dist/types/MarkerGauge/PureMarkerGauge/MarkerGauge.d.ts +72 -0
- package/dist/types/MarkerGauge/PureMarkerGauge/MarkerGauge.d.ts.map +1 -0
- package/dist/types/MarkerGauge/config.d.ts +4 -0
- package/dist/types/MarkerGauge/config.d.ts.map +1 -0
- package/dist/types/MarkerGauge/index.d.ts +3 -0
- package/dist/types/MarkerGauge/index.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/ParallelCoordinates.d.ts +58 -0
- package/dist/types/ParallelCoordinates/ParallelCoordinates.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/PureParallelCoordinates.d.ts +69 -0
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/PureParallelCoordinates.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesCanvas.d.ts +30 -0
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesCanvas.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesChart.d.ts +42 -0
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesChart.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesPrompt.d.ts +22 -0
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesPrompt.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/config.d.ts +4 -0
- package/dist/types/ParallelCoordinates/config.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/index.d.ts +3 -0
- package/dist/types/ParallelCoordinates/index.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/mockdata/arrayValueData.d.ts +6 -0
- package/dist/types/ParallelCoordinates/mockdata/arrayValueData.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/mockdata/sampleCarData.d.ts +6 -0
- package/dist/types/ParallelCoordinates/mockdata/sampleCarData.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/mockdata/sampleCarNumericalData.d.ts +6 -0
- package/dist/types/ParallelCoordinates/mockdata/sampleCarNumericalData.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/mockdata/sampleFoodData.d.ts +6 -0
- package/dist/types/ParallelCoordinates/mockdata/sampleFoodData.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/mockdata/sampleStringNumericalData.d.ts +6 -0
- package/dist/types/ParallelCoordinates/mockdata/sampleStringNumericalData.d.ts.map +1 -0
- package/dist/types/Pie/Pie.d.ts +15 -0
- package/dist/types/Pie/Pie.d.ts.map +1 -0
- package/dist/types/Pie/config.d.ts +4 -0
- package/dist/types/Pie/config.d.ts.map +1 -0
- package/dist/types/Pie/index.d.ts +3 -0
- package/dist/types/Pie/index.d.ts.map +1 -0
- package/dist/types/Pie/pieUtils.d.ts +78 -0
- package/dist/types/Pie/pieUtils.d.ts.map +1 -0
- package/dist/types/Punchcard/Punchcard.d.ts +13 -0
- package/dist/types/Punchcard/Punchcard.d.ts.map +1 -0
- package/dist/types/Punchcard/PurePunchcard/Punchcard.d.ts +40 -0
- package/dist/types/Punchcard/PurePunchcard/Punchcard.d.ts.map +1 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardAxis.d.ts +20 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardAxis.d.ts.map +1 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardBubble.d.ts +27 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardBubble.d.ts.map +1 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardChartArea.d.ts +40 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardChartArea.d.ts.map +1 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardGridLines.d.ts +17 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardGridLines.d.ts.map +1 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardLegend.d.ts +21 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardLegend.d.ts.map +1 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardRow.d.ts +10 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardRow.d.ts.map +1 -0
- package/dist/types/Punchcard/PurePunchcard/src/utils/punchcardUtils.d.ts +285 -0
- package/dist/types/Punchcard/PurePunchcard/src/utils/punchcardUtils.d.ts.map +1 -0
- package/dist/types/Punchcard/config.d.ts +4 -0
- package/dist/types/Punchcard/config.d.ts.map +1 -0
- package/dist/types/Punchcard/index.d.ts +3 -0
- package/dist/types/Punchcard/index.d.ts.map +1 -0
- package/dist/types/Punchcard/punchcardUtils.d.ts +32 -0
- package/dist/types/Punchcard/punchcardUtils.d.ts.map +1 -0
- package/dist/types/Rectangle/Rectangle.d.ts +14 -0
- package/dist/types/Rectangle/Rectangle.d.ts.map +1 -0
- package/dist/types/Rectangle/config.d.ts +4 -0
- package/dist/types/Rectangle/config.d.ts.map +1 -0
- package/dist/types/Rectangle/index.d.ts +3 -0
- package/dist/types/Rectangle/index.d.ts.map +1 -0
- package/dist/types/Sankey/PureSankey/PureSankey.d.ts +98 -0
- package/dist/types/Sankey/PureSankey/PureSankey.d.ts.map +1 -0
- package/dist/types/Sankey/PureSankey/SankeyLink.d.ts +33 -0
- package/dist/types/Sankey/PureSankey/SankeyLink.d.ts.map +1 -0
- package/dist/types/Sankey/PureSankey/SankeyModels.d.ts +48 -0
- package/dist/types/Sankey/PureSankey/SankeyModels.d.ts.map +1 -0
- package/dist/types/Sankey/PureSankey/SankeyNode.d.ts +38 -0
- package/dist/types/Sankey/PureSankey/SankeyNode.d.ts.map +1 -0
- package/dist/types/Sankey/PureSankey/SankeyTooltip.d.ts +43 -0
- package/dist/types/Sankey/PureSankey/SankeyTooltip.d.ts.map +1 -0
- package/dist/types/Sankey/PureSankey/SankeyUtils.d.ts +20 -0
- package/dist/types/Sankey/PureSankey/SankeyUtils.d.ts.map +1 -0
- package/dist/types/Sankey/PureSankey/mockdata/data.d.ts +35 -0
- package/dist/types/Sankey/PureSankey/mockdata/data.d.ts.map +1 -0
- package/dist/types/Sankey/Sankey.d.ts +31 -0
- package/dist/types/Sankey/Sankey.d.ts.map +1 -0
- package/dist/types/Sankey/config.d.ts +4 -0
- package/dist/types/Sankey/config.d.ts.map +1 -0
- package/dist/types/Sankey/index.d.ts +3 -0
- package/dist/types/Sankey/index.d.ts.map +1 -0
- package/dist/types/Scatter/Scatter.d.ts +11 -0
- package/dist/types/Scatter/Scatter.d.ts.map +1 -0
- package/dist/types/Scatter/config.d.ts +4 -0
- package/dist/types/Scatter/config.d.ts.map +1 -0
- package/dist/types/Scatter/index.d.ts +3 -0
- package/dist/types/Scatter/index.d.ts.map +1 -0
- package/dist/types/Scatter/mockdata/data.d.ts +35 -0
- package/dist/types/Scatter/mockdata/data.d.ts.map +1 -0
- package/dist/types/Scatter/scatterUtils.d.ts +47 -0
- package/dist/types/Scatter/scatterUtils.d.ts.map +1 -0
- package/dist/types/SingleValue/SingleValue.d.ts +16 -0
- package/dist/types/SingleValue/SingleValue.d.ts.map +1 -0
- package/dist/types/SingleValue/config.d.ts +4 -0
- package/dist/types/SingleValue/config.d.ts.map +1 -0
- package/dist/types/SingleValue/index.d.ts +3 -0
- package/dist/types/SingleValue/index.d.ts.map +1 -0
- package/dist/types/SingleValueBasic/index.d.ts +3 -0
- package/dist/types/SingleValueBasic/index.d.ts.map +1 -0
- package/dist/types/SingleValueIcon/SingleValueIcon.d.ts +29 -0
- package/dist/types/SingleValueIcon/SingleValueIcon.d.ts.map +1 -0
- package/dist/types/SingleValueIcon/config.d.ts +4 -0
- package/dist/types/SingleValueIcon/config.d.ts.map +1 -0
- package/dist/types/SingleValueIcon/index.d.ts +3 -0
- package/dist/types/SingleValueIcon/index.d.ts.map +1 -0
- package/dist/types/SingleValueRadial/PureSingleValueRadial/GaugeGraph.d.ts +20 -0
- package/dist/types/SingleValueRadial/PureSingleValueRadial/GaugeGraph.d.ts.map +1 -0
- package/dist/types/SingleValueRadial/PureSingleValueRadial/utils/gaugeUtils.d.ts +82 -0
- package/dist/types/SingleValueRadial/PureSingleValueRadial/utils/gaugeUtils.d.ts.map +1 -0
- package/dist/types/SingleValueRadial/SingleValueRadial.d.ts +17 -0
- package/dist/types/SingleValueRadial/SingleValueRadial.d.ts.map +1 -0
- package/dist/types/SingleValueRadial/config.d.ts +4 -0
- package/dist/types/SingleValueRadial/config.d.ts.map +1 -0
- package/dist/types/SingleValueRadial/index.d.ts +3 -0
- package/dist/types/SingleValueRadial/index.d.ts.map +1 -0
- package/dist/types/SparkLine/index.d.ts +2 -0
- package/dist/types/SparkLine/index.d.ts.map +1 -0
- package/dist/types/Table/PureTable.d.ts +50 -0
- package/dist/types/Table/PureTable.d.ts.map +1 -0
- package/dist/types/Table/Table.d.ts +10 -0
- package/dist/types/Table/Table.d.ts.map +1 -0
- package/dist/types/Table/cells/ArrayCell.d.ts +12 -0
- package/dist/types/Table/cells/ArrayCell.d.ts.map +1 -0
- package/dist/types/Table/cells/SparklineCell.d.ts +13 -0
- package/dist/types/Table/cells/SparklineCell.d.ts.map +1 -0
- package/dist/types/Table/cells/SwitchTableCell.d.ts +5 -0
- package/dist/types/Table/cells/SwitchTableCell.d.ts.map +1 -0
- package/dist/types/Table/cells/TextCell.d.ts +12 -0
- package/dist/types/Table/cells/TextCell.d.ts.map +1 -0
- package/dist/types/Table/cells/index.d.ts +5 -0
- package/dist/types/Table/cells/index.d.ts.map +1 -0
- package/dist/types/Table/config.d.ts +4 -0
- package/dist/types/Table/config.d.ts.map +1 -0
- package/dist/types/Table/hooks.d.ts +130 -0
- package/dist/types/Table/hooks.d.ts.map +1 -0
- package/dist/types/Table/index.d.ts +3 -0
- package/dist/types/Table/index.d.ts.map +1 -0
- package/dist/types/Timeline/PureTimeline/PureTimeline.d.ts +81 -0
- package/dist/types/Timeline/PureTimeline/PureTimeline.d.ts.map +1 -0
- package/dist/types/Timeline/PureTimeline/src/CursorPlugin.d.ts +8 -0
- package/dist/types/Timeline/PureTimeline/src/CursorPlugin.d.ts.map +1 -0
- package/dist/types/Timeline/PureTimeline/src/TimelineLegend.d.ts +28 -0
- package/dist/types/Timeline/PureTimeline/src/TimelineLegend.d.ts.map +1 -0
- package/dist/types/Timeline/PureTimeline/src/TimelinePlugin.d.ts +16 -0
- package/dist/types/Timeline/PureTimeline/src/TimelinePlugin.d.ts.map +1 -0
- package/dist/types/Timeline/PureTimeline/src/TimelineTooltip.d.ts +11 -0
- package/dist/types/Timeline/PureTimeline/src/TimelineTooltip.d.ts.map +1 -0
- package/dist/types/Timeline/PureTimeline/src/TimelineUplot.d.ts +22 -0
- package/dist/types/Timeline/PureTimeline/src/TimelineUplot.d.ts.map +1 -0
- package/dist/types/Timeline/PureTimeline/src/TimelineYAxis.d.ts +20 -0
- package/dist/types/Timeline/PureTimeline/src/TimelineYAxis.d.ts.map +1 -0
- package/dist/types/Timeline/PureTimeline/src/XAxisPlugin.d.ts +18 -0
- package/dist/types/Timeline/PureTimeline/src/XAxisPlugin.d.ts.map +1 -0
- package/dist/types/Timeline/PureTimeline/src/utils/timelineUtils.d.ts +34 -0
- package/dist/types/Timeline/PureTimeline/src/utils/timelineUtils.d.ts.map +1 -0
- package/dist/types/Timeline/Timeline.d.ts +22 -0
- package/dist/types/Timeline/Timeline.d.ts.map +1 -0
- package/dist/types/Timeline/config.d.ts +4 -0
- package/dist/types/Timeline/config.d.ts.map +1 -0
- package/dist/types/Timeline/index.d.ts +3 -0
- package/dist/types/Timeline/index.d.ts.map +1 -0
- package/dist/types/Timeline/mockdata/basicTimelineData.d.ts +76 -0
- package/dist/types/Timeline/mockdata/basicTimelineData.d.ts.map +1 -0
- package/dist/types/Timeline/mockdata/categoricalTimelineData.d.ts +31 -0
- package/dist/types/Timeline/mockdata/categoricalTimelineData.d.ts.map +1 -0
- package/dist/types/Timeline/mockdata/timelineDataSource.d.ts +52 -0
- package/dist/types/Timeline/mockdata/timelineDataSource.d.ts.map +1 -0
- package/dist/types/common/Charting.d.ts +46 -0
- package/dist/types/common/Charting.d.ts.map +1 -0
- package/dist/types/common/ChartingApi.d.ts +36 -0
- package/dist/types/common/ChartingApi.d.ts.map +1 -0
- package/dist/types/common/DocExampleWithVizSandbox.d.ts +22 -0
- package/dist/types/common/DocExampleWithVizSandbox.d.ts.map +1 -0
- package/dist/types/common/OverviewDoc.d.ts +20 -0
- package/dist/types/common/OverviewDoc.d.ts.map +1 -0
- package/dist/types/common/SplunkVisualization.d.ts +16 -0
- package/dist/types/common/SplunkVisualization.d.ts.map +1 -0
- package/dist/types/common/SplunkVisualizationApi.d.ts +16 -0
- package/dist/types/common/SplunkVisualizationApi.d.ts.map +1 -0
- package/dist/types/common/ThemedDefaults.d.ts +2 -0
- package/dist/types/common/ThemedDefaults.d.ts.map +1 -0
- package/dist/types/common/TimeSeriesChartWrapper.d.ts +7 -0
- package/dist/types/common/TimeSeriesChartWrapper.d.ts.map +1 -0
- package/dist/types/common/chartingUtils.d.ts +164 -0
- package/dist/types/common/chartingUtils.d.ts.map +1 -0
- package/dist/types/common/components/IconPlaceholder.d.ts +21 -0
- package/dist/types/common/components/IconPlaceholder.d.ts.map +1 -0
- package/dist/types/common/components/MissingPropsMessage.d.ts +28 -0
- package/dist/types/common/components/MissingPropsMessage.d.ts.map +1 -0
- package/dist/types/common/components/TrellisTitle.d.ts +10 -0
- package/dist/types/common/components/TrellisTitle.d.ts.map +1 -0
- package/dist/types/common/configContext/singleValueContext.d.ts +3 -0
- package/dist/types/common/configContext/singleValueContext.d.ts.map +1 -0
- package/dist/types/common/docUtils.d.ts +24 -0
- package/dist/types/common/docUtils.d.ts.map +1 -0
- package/dist/types/common/editorConfig/AxesChartColorAndStyle.d.ts +5 -0
- package/dist/types/common/editorConfig/AxesChartColorAndStyle.d.ts.map +1 -0
- package/dist/types/common/editorConfig/AxesChartDataConfig.d.ts +31 -0
- package/dist/types/common/editorConfig/AxesChartDataConfig.d.ts.map +1 -0
- package/dist/types/common/editorConfig/AxesChartDataDisplay.d.ts +14 -0
- package/dist/types/common/editorConfig/AxesChartDataDisplay.d.ts.map +1 -0
- package/dist/types/common/editorConfig/AxesChartLegend.d.ts +8 -0
- package/dist/types/common/editorConfig/AxesChartLegend.d.ts.map +1 -0
- package/dist/types/common/editorConfig/AxesChartXGridAndLabels.d.ts +6 -0
- package/dist/types/common/editorConfig/AxesChartXGridAndLabels.d.ts.map +1 -0
- package/dist/types/common/editorConfig/AxesChartY2GridAndLabels.d.ts +11 -0
- package/dist/types/common/editorConfig/AxesChartY2GridAndLabels.d.ts.map +1 -0
- package/dist/types/common/editorConfig/AxesChartYGridAndLabels.d.ts +4 -0
- package/dist/types/common/editorConfig/AxesChartYGridAndLabels.d.ts.map +1 -0
- package/dist/types/common/editorConfig/BackgroundColor.d.ts +10 -0
- package/dist/types/common/editorConfig/BackgroundColor.d.ts.map +1 -0
- package/dist/types/common/editorConfig/DynamicFillColorEditor.d.ts +29 -0
- package/dist/types/common/editorConfig/DynamicFillColorEditor.d.ts.map +1 -0
- package/dist/types/common/editorConfig/DynamicGaugeColorEditor.d.ts +29 -0
- package/dist/types/common/editorConfig/DynamicGaugeColorEditor.d.ts.map +1 -0
- package/dist/types/common/editorConfig/DynamicStrokeColorEditor.d.ts +29 -0
- package/dist/types/common/editorConfig/DynamicStrokeColorEditor.d.ts.map +1 -0
- package/dist/types/common/editorConfig/Gauge.d.ts +4 -0
- package/dist/types/common/editorConfig/Gauge.d.ts.map +1 -0
- package/dist/types/common/editorConfig/Legend.d.ts +4 -0
- package/dist/types/common/editorConfig/Legend.d.ts.map +1 -0
- package/dist/types/common/editorConfig/RadialBackgroundColor.d.ts +10 -0
- package/dist/types/common/editorConfig/RadialBackgroundColor.d.ts.map +1 -0
- package/dist/types/common/editorConfig/StaticFillColorEditor.d.ts +10 -0
- package/dist/types/common/editorConfig/StaticFillColorEditor.d.ts.map +1 -0
- package/dist/types/common/editorConfig/StaticGaugeColorEditor.d.ts +10 -0
- package/dist/types/common/editorConfig/StaticGaugeColorEditor.d.ts.map +1 -0
- package/dist/types/common/editorConfig/StaticStrokeColorEditor.d.ts +10 -0
- package/dist/types/common/editorConfig/StaticStrokeColorEditor.d.ts.map +1 -0
- package/dist/types/common/editorConfig/TrellisEditors.d.ts +66 -0
- package/dist/types/common/editorConfig/TrellisEditors.d.ts.map +1 -0
- package/dist/types/common/gaugeUtils.d.ts +387 -0
- package/dist/types/common/gaugeUtils.d.ts.map +1 -0
- package/dist/types/common/hocs/FixedSizeContainer.d.ts +9 -0
- package/dist/types/common/hocs/FixedSizeContainer.d.ts.map +1 -0
- package/dist/types/common/hocs/mockdata/trellisData.d.ts +1288 -0
- package/dist/types/common/hocs/mockdata/trellisData.d.ts.map +1 -0
- package/dist/types/common/hocs/withEditModeCover.d.ts +10 -0
- package/dist/types/common/hocs/withEditModeCover.d.ts.map +1 -0
- package/dist/types/common/hocs/withPlaceholder.d.ts +8 -0
- package/dist/types/common/hocs/withPlaceholder.d.ts.map +1 -0
- package/dist/types/common/hocs/withTrellis.d.ts +18 -0
- package/dist/types/common/hocs/withTrellis.d.ts.map +1 -0
- package/dist/types/common/hooks/useDeepMemo.d.ts +15 -0
- package/dist/types/common/hooks/useDeepMemo.d.ts.map +1 -0
- package/dist/types/common/hooks/useDownsampleDataSources.d.ts +7 -0
- package/dist/types/common/hooks/useDownsampleDataSources.d.ts.map +1 -0
- package/dist/types/common/hooks/useEventCallback.d.ts +9 -0
- package/dist/types/common/hooks/useEventCallback.d.ts.map +1 -0
- package/dist/types/common/hooks/useGetXAndYFields.d.ts +10 -0
- package/dist/types/common/hooks/useGetXAndYFields.d.ts.map +1 -0
- package/dist/types/common/hooks/usePagination.d.ts +21 -0
- package/dist/types/common/hooks/usePagination.d.ts.map +1 -0
- package/dist/types/common/hooks/usePrevious.d.ts +2 -0
- package/dist/types/common/hooks/usePrevious.d.ts.map +1 -0
- package/dist/types/common/hooks/useSorting.d.ts +17 -0
- package/dist/types/common/hooks/useSorting.d.ts.map +1 -0
- package/dist/types/common/hooks/useTrellisEnabled.d.ts +4 -0
- package/dist/types/common/hooks/useTrellisEnabled.d.ts.map +1 -0
- package/dist/types/common/interfaces/ChartEvent.d.ts +26 -0
- package/dist/types/common/interfaces/ChartEvent.d.ts.map +1 -0
- package/dist/types/common/interfaces/DashboardVizProps.d.ts +27 -0
- package/dist/types/common/interfaces/DashboardVizProps.d.ts.map +1 -0
- package/dist/types/common/interfaces/DataContract.d.ts +19 -0
- package/dist/types/common/interfaces/DataContract.d.ts.map +1 -0
- package/dist/types/common/interfaces/DataSource.d.ts +45 -0
- package/dist/types/common/interfaces/DataSource.d.ts.map +1 -0
- package/dist/types/common/interfaces/DefaultContext.d.ts +30 -0
- package/dist/types/common/interfaces/DefaultContext.d.ts.map +1 -0
- package/dist/types/common/interfaces/Editor.d.ts +23 -0
- package/dist/types/common/interfaces/Editor.d.ts.map +1 -0
- package/dist/types/common/interfaces/ExtendedDashViz.d.ts +7 -0
- package/dist/types/common/interfaces/ExtendedDashViz.d.ts.map +1 -0
- package/dist/types/common/interfaces/Object.d.ts +4 -0
- package/dist/types/common/interfaces/Object.d.ts.map +1 -0
- package/dist/types/common/interfaces/Overview.d.ts +14 -0
- package/dist/types/common/interfaces/Overview.d.ts.map +1 -0
- package/dist/types/common/interfaces/ThemedDefaults.d.ts +5 -0
- package/dist/types/common/interfaces/ThemedDefaults.d.ts.map +1 -0
- package/dist/types/common/interfaces/VizActionHandler.d.ts +15 -0
- package/dist/types/common/interfaces/VizActionHandler.d.ts.map +1 -0
- package/dist/types/common/interfaces/VizBehavior.d.ts +25 -0
- package/dist/types/common/interfaces/VizBehavior.d.ts.map +1 -0
- package/dist/types/common/interfaces/VizCategory.d.ts +16 -0
- package/dist/types/common/interfaces/VizCategory.d.ts.map +1 -0
- package/dist/types/common/interfaces/VizConfig.d.ts +34 -0
- package/dist/types/common/interfaces/VizConfig.d.ts.map +1 -0
- package/dist/types/common/interfaces/VizEvent.d.ts +13 -0
- package/dist/types/common/interfaces/VizEvent.d.ts.map +1 -0
- package/dist/types/common/interfaces/VizProps.d.ts +8 -0
- package/dist/types/common/interfaces/VizProps.d.ts.map +1 -0
- package/dist/types/common/interfaces/VizRegistry.d.ts +7 -0
- package/dist/types/common/interfaces/VizRegistry.d.ts.map +1 -0
- package/dist/types/common/interfaces/VizSize.d.ts +8 -0
- package/dist/types/common/interfaces/VizSize.d.ts.map +1 -0
- package/dist/types/common/interfaces/VizStatus.d.ts +2 -0
- package/dist/types/common/interfaces/VizStatus.d.ts.map +1 -0
- package/dist/types/common/interfaces/index.d.ts +19 -0
- package/dist/types/common/interfaces/index.d.ts.map +1 -0
- package/dist/types/common/shapeUtils.d.ts +26 -0
- package/dist/types/common/shapeUtils.d.ts.map +1 -0
- package/dist/types/common/utils/configUtils.d.ts +59 -0
- package/dist/types/common/utils/configUtils.d.ts.map +1 -0
- package/dist/types/common/utils/dataUtils.d.ts +31 -0
- package/dist/types/common/utils/dataUtils.d.ts.map +1 -0
- package/dist/types/common/utils/featureFlagUtils.d.ts +3 -0
- package/dist/types/common/utils/featureFlagUtils.d.ts.map +1 -0
- package/dist/types/common/utils/hocUtils.d.ts +12 -0
- package/dist/types/common/utils/hocUtils.d.ts.map +1 -0
- package/dist/types/common/utils/mapUtils.d.ts +2 -0
- package/dist/types/common/utils/mapUtils.d.ts.map +1 -0
- package/dist/types/common/utils/styleUtils.d.ts +2 -0
- package/dist/types/common/utils/styleUtils.d.ts.map +1 -0
- package/dist/types/common/utils/tableUtils.d.ts +3 -0
- package/dist/types/common/utils/tableUtils.d.ts.map +1 -0
- package/dist/types/common/utils/trellisUtils.d.ts +60 -0
- package/dist/types/common/utils/trellisUtils.d.ts.map +1 -0
- package/dist/types/common/utils/urlUtils.d.ts +2 -0
- package/dist/types/common/utils/urlUtils.d.ts.map +1 -0
- package/dist/types/common/withDashboardViz.d.ts +22 -0
- package/dist/types/common/withDashboardViz.d.ts.map +1 -0
- package/package.json +37 -39
package/SingleValue.js
CHANGED
|
@@ -1666,6 +1666,7 @@ var OverflowWrapper = styled_components_default.div.attrs(() => ({
|
|
|
1666
1666
|
}
|
|
1667
1667
|
&:after {
|
|
1668
1668
|
right: 0;
|
|
1669
|
+
pointer-events: none;
|
|
1669
1670
|
background: linear-gradient(
|
|
1670
1671
|
90deg,
|
|
1671
1672
|
${(props) => props.overflowBackgroundColor}00,
|
|
@@ -1674,6 +1675,7 @@ var OverflowWrapper = styled_components_default.div.attrs(() => ({
|
|
|
1674
1675
|
}
|
|
1675
1676
|
&:before {
|
|
1676
1677
|
left: 0;
|
|
1678
|
+
pointer-events: none;
|
|
1677
1679
|
background: linear-gradient(
|
|
1678
1680
|
-90deg,
|
|
1679
1681
|
${(props) => props.overflowBackgroundColor}00,
|
|
@@ -2244,7 +2246,7 @@ SplunkVisualization.propTypes = {
|
|
|
2244
2246
|
/**
|
|
2245
2247
|
*
|
|
2246
2248
|
*/
|
|
2247
|
-
SplunkVisualization.
|
|
2249
|
+
SplunkVisualization.defaults = {
|
|
2248
2250
|
// BaseVisualization in dashboard-visualizations uses 100% for width but 250 for height
|
|
2249
2251
|
width: "100%",
|
|
2250
2252
|
height: INITIAL_HEIGHT,
|
|
@@ -2265,13 +2267,13 @@ var SplunkVisualization_default = SplunkVisualization;
|
|
|
2265
2267
|
// src/common/interfaces/DataSource.ts
|
|
2266
2268
|
var validSortDirs = ["asc", "desc", "none"];
|
|
2267
2269
|
|
|
2268
|
-
// src/common/hooks/
|
|
2270
|
+
// src/common/hooks/useSorting.ts
|
|
2269
2271
|
var SortParamsPropTypes = prop_types_exports.shape({
|
|
2270
2272
|
currentSortKey: prop_types_exports.string,
|
|
2271
2273
|
currentSortDir: prop_types_exports.oneOf(validSortDirs),
|
|
2272
2274
|
onSort: prop_types_exports.func
|
|
2273
2275
|
});
|
|
2274
|
-
var
|
|
2276
|
+
var useSortingParams = ({ requestParams, onRequestParamsChange }) => {
|
|
2275
2277
|
let currentSortKey;
|
|
2276
2278
|
let currentSortDir;
|
|
2277
2279
|
const nextSortDirMap = {
|
|
@@ -2301,14 +2303,14 @@ var getSortingParams = ({ requestParams, onRequestParamsChange }) => {
|
|
|
2301
2303
|
};
|
|
2302
2304
|
};
|
|
2303
2305
|
|
|
2304
|
-
// src/common/hooks/
|
|
2306
|
+
// src/common/hooks/usePagination.ts
|
|
2305
2307
|
var PaginatorParamsPropTypes = prop_types_exports.shape({
|
|
2306
2308
|
isPaging: prop_types_exports.bool,
|
|
2307
2309
|
current: prop_types_exports.number,
|
|
2308
2310
|
totalPages: prop_types_exports.number,
|
|
2309
2311
|
onChange: prop_types_exports.func
|
|
2310
2312
|
});
|
|
2311
|
-
var
|
|
2313
|
+
var usePaginationParams = ({
|
|
2312
2314
|
requestParams,
|
|
2313
2315
|
meta,
|
|
2314
2316
|
onRequestParamsChange
|
|
@@ -2361,6 +2363,76 @@ var defaultImport29 = __toESM(require("@splunk/visualizations-shared/Message"));
|
|
|
2361
2363
|
__reExport(Message_exports, require("@splunk/visualizations-shared/Message"));
|
|
2362
2364
|
var Message_default = "default" in defaultImport29 ? defaultImport29.default : defaultImport29;
|
|
2363
2365
|
|
|
2366
|
+
// src/common/components/MissingPropsMessage.tsx
|
|
2367
|
+
var isMissing = (v) => {
|
|
2368
|
+
return v === null || v === void 0;
|
|
2369
|
+
};
|
|
2370
|
+
var missingKeys = (keys2, target) => keys2.filter((k) => isMissing(target[k]));
|
|
2371
|
+
var MissingPropsMessage = (props) => {
|
|
2372
|
+
const {
|
|
2373
|
+
width = SplunkVisualization_default.defaults.width,
|
|
2374
|
+
height = SplunkVisualization_default.defaults.height,
|
|
2375
|
+
missingProps,
|
|
2376
|
+
backgroundColor
|
|
2377
|
+
} = props;
|
|
2378
|
+
const cachedHandleResize = react_exports.useCallback((w, h) => {
|
|
2379
|
+
setContainerWidth(w);
|
|
2380
|
+
setContainerHeight(h);
|
|
2381
|
+
}, []);
|
|
2382
|
+
const [containerWidth, setContainerWidth] = react_exports.useState(Number(width));
|
|
2383
|
+
const [containerHeight, setContainerHeight] = react_exports.useState(Number(height));
|
|
2384
|
+
return /* @__PURE__ */ react_exports.createElement("div", { style: { width: containerWidth, height: containerHeight, background: backgroundColor } }, /* @__PURE__ */ react_exports.createElement(SizeAwareWrapper_default, { width, height, onResize: cachedHandleResize }), /* @__PURE__ */ react_exports.createElement(
|
|
2385
|
+
Message_default,
|
|
2386
|
+
{
|
|
2387
|
+
"data-test": "message",
|
|
2388
|
+
width,
|
|
2389
|
+
height,
|
|
2390
|
+
message: (0, i18n_exports._)(`Missing property: ${missingProps.join(", ")}`),
|
|
2391
|
+
level: "error"
|
|
2392
|
+
}
|
|
2393
|
+
));
|
|
2394
|
+
};
|
|
2395
|
+
var MissingPropsMessage_default = MissingPropsMessage;
|
|
2396
|
+
|
|
2397
|
+
// src/common/utils/hocUtils.ts
|
|
2398
|
+
var extendStaticWrapperProps = ({
|
|
2399
|
+
Wrapper,
|
|
2400
|
+
Visualization
|
|
2401
|
+
}) => {
|
|
2402
|
+
const extendProperties = ["propTypes", "config"];
|
|
2403
|
+
extendProperties.forEach((prop) => {
|
|
2404
|
+
if (Visualization[prop]) {
|
|
2405
|
+
Wrapper[prop] = Visualization[prop];
|
|
2406
|
+
}
|
|
2407
|
+
});
|
|
2408
|
+
};
|
|
2409
|
+
|
|
2410
|
+
// src/common/hocs/withEditModeCover.tsx
|
|
2411
|
+
var Cover = styled_components_default.div`
|
|
2412
|
+
position: absolute;
|
|
2413
|
+
left: 0;
|
|
2414
|
+
right: 0;
|
|
2415
|
+
top: 0;
|
|
2416
|
+
bottom: 0;
|
|
2417
|
+
`;
|
|
2418
|
+
var Blocker = styled_components_default.div.attrs({
|
|
2419
|
+
"data-splunk-visualization-version": "28.2.0 - 7eea200d8"
|
|
2420
|
+
})`
|
|
2421
|
+
position: relative;
|
|
2422
|
+
width: 100%;
|
|
2423
|
+
height: 100%;
|
|
2424
|
+
`;
|
|
2425
|
+
var withEditModeCover = (Visualization, disableEditModeCover) => {
|
|
2426
|
+
const Wrapper = (props) => {
|
|
2427
|
+
const { mode } = props;
|
|
2428
|
+
const showEditCover = mode === "edit" && !disableEditModeCover;
|
|
2429
|
+
return /* @__PURE__ */ react_exports.createElement(Blocker, null, /* @__PURE__ */ react_exports.createElement(Visualization, __spreadValues({}, props)), showEditCover && /* @__PURE__ */ react_exports.createElement(Cover, { "data-test": "edit-mode-cover" }));
|
|
2430
|
+
};
|
|
2431
|
+
extendStaticWrapperProps({ Wrapper, Visualization });
|
|
2432
|
+
return Wrapper;
|
|
2433
|
+
};
|
|
2434
|
+
var withEditModeCover_default = withEditModeCover;
|
|
2435
|
+
|
|
2364
2436
|
// esm-externals:@splunk/visualizations-shared/colorUtils
|
|
2365
2437
|
var colorUtils_exports = {};
|
|
2366
2438
|
__export(colorUtils_exports, {
|
|
@@ -2370,6 +2442,15 @@ var defaultImport30 = __toESM(require("@splunk/visualizations-shared/colorUtils"
|
|
|
2370
2442
|
__reExport(colorUtils_exports, require("@splunk/visualizations-shared/colorUtils"));
|
|
2371
2443
|
var colorUtils_default = "default" in defaultImport30 ? defaultImport30.default : defaultImport30;
|
|
2372
2444
|
|
|
2445
|
+
// esm-externals:@splunk/themes/variables
|
|
2446
|
+
var variables_exports = {};
|
|
2447
|
+
__export(variables_exports, {
|
|
2448
|
+
default: () => variables_default
|
|
2449
|
+
});
|
|
2450
|
+
var defaultImport31 = __toESM(require("@splunk/themes/variables"));
|
|
2451
|
+
__reExport(variables_exports, require("@splunk/themes/variables"));
|
|
2452
|
+
var variables_default = "default" in defaultImport31 ? defaultImport31.default : defaultImport31;
|
|
2453
|
+
|
|
2373
2454
|
// src/common/hocs/FixedSizeContainer.tsx
|
|
2374
2455
|
var Item = styled_components_default.div.attrs(({ width }) => ({
|
|
2375
2456
|
style: {
|
|
@@ -2420,7 +2501,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
2420
2501
|
FixSizeItem,
|
|
2421
2502
|
{
|
|
2422
2503
|
"data-test": "fix-size-item",
|
|
2423
|
-
"data-splunk-visualization-version": "28.
|
|
2504
|
+
"data-splunk-visualization-version": "28.2.0 - 7eea200d8",
|
|
2424
2505
|
width,
|
|
2425
2506
|
height,
|
|
2426
2507
|
backgroundColor
|
|
@@ -2433,85 +2514,6 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
2433
2514
|
};
|
|
2434
2515
|
var FixedSizeContainer_default = withFixedSizeContainer;
|
|
2435
2516
|
|
|
2436
|
-
// src/common/components/MissingPropsMessage.tsx
|
|
2437
|
-
var isMissing = (v) => {
|
|
2438
|
-
return v === null || v === void 0;
|
|
2439
|
-
};
|
|
2440
|
-
var missingKeys = (keys2, target) => keys2.filter((k) => isMissing(target[k]));
|
|
2441
|
-
var propTypes = {
|
|
2442
|
-
width: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number]),
|
|
2443
|
-
height: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number]),
|
|
2444
|
-
// eslint-disable-next-line react/no-unused-prop-types
|
|
2445
|
-
backgroundColor: prop_types_exports.string,
|
|
2446
|
-
missingProps: prop_types_exports.arrayOf(prop_types_exports.string)
|
|
2447
|
-
};
|
|
2448
|
-
var MissingPropsMessage = (props) => {
|
|
2449
|
-
const { width, height, missingProps } = props;
|
|
2450
|
-
return /* @__PURE__ */ react_exports.createElement(
|
|
2451
|
-
Message_default,
|
|
2452
|
-
{
|
|
2453
|
-
"data-test": "message",
|
|
2454
|
-
width,
|
|
2455
|
-
height,
|
|
2456
|
-
message: (0, i18n_exports._)(`Missing property: ${missingProps.join(", ")}`)
|
|
2457
|
-
}
|
|
2458
|
-
);
|
|
2459
|
-
};
|
|
2460
|
-
MissingPropsMessage.propTypes = propTypes;
|
|
2461
|
-
MissingPropsMessage.defaultProps = {
|
|
2462
|
-
width: "100%",
|
|
2463
|
-
height: 250
|
|
2464
|
-
};
|
|
2465
|
-
var MissingPropsMessage_default = FixedSizeContainer_default(MissingPropsMessage);
|
|
2466
|
-
|
|
2467
|
-
// src/common/utils/hocUtils.ts
|
|
2468
|
-
var extendStaticWrapperProps = ({
|
|
2469
|
-
Wrapper,
|
|
2470
|
-
Visualization
|
|
2471
|
-
}) => {
|
|
2472
|
-
const extendProperties = ["propTypes", "defaultProps", "config"];
|
|
2473
|
-
extendProperties.forEach((prop) => {
|
|
2474
|
-
if (Visualization[prop]) {
|
|
2475
|
-
Wrapper[prop] = Visualization[prop];
|
|
2476
|
-
}
|
|
2477
|
-
});
|
|
2478
|
-
};
|
|
2479
|
-
|
|
2480
|
-
// src/common/hocs/withEditModeCover.tsx
|
|
2481
|
-
var Cover = styled_components_default.div`
|
|
2482
|
-
position: absolute;
|
|
2483
|
-
left: 0;
|
|
2484
|
-
right: 0;
|
|
2485
|
-
top: 0;
|
|
2486
|
-
bottom: 0;
|
|
2487
|
-
`;
|
|
2488
|
-
var Blocker = styled_components_default.div.attrs({
|
|
2489
|
-
"data-splunk-visualization-version": "28.0.0 - 0c5f07712"
|
|
2490
|
-
})`
|
|
2491
|
-
position: relative;
|
|
2492
|
-
width: 100%;
|
|
2493
|
-
height: 100%;
|
|
2494
|
-
`;
|
|
2495
|
-
var withEditModeCover = (Visualization, disableEditModeCover) => {
|
|
2496
|
-
const Wrapper = (props) => {
|
|
2497
|
-
const { mode } = props;
|
|
2498
|
-
const showEditCover = mode === "edit" && !disableEditModeCover;
|
|
2499
|
-
return /* @__PURE__ */ react_exports.createElement(Blocker, null, /* @__PURE__ */ react_exports.createElement(Visualization, __spreadValues({}, props)), showEditCover && /* @__PURE__ */ react_exports.createElement(Cover, { "data-test": "edit-mode-cover" }));
|
|
2500
|
-
};
|
|
2501
|
-
extendStaticWrapperProps({ Wrapper, Visualization });
|
|
2502
|
-
return Wrapper;
|
|
2503
|
-
};
|
|
2504
|
-
var withEditModeCover_default = withEditModeCover;
|
|
2505
|
-
|
|
2506
|
-
// esm-externals:@splunk/themes/variables
|
|
2507
|
-
var variables_exports = {};
|
|
2508
|
-
__export(variables_exports, {
|
|
2509
|
-
default: () => variables_default
|
|
2510
|
-
});
|
|
2511
|
-
var defaultImport31 = __toESM(require("@splunk/themes/variables"));
|
|
2512
|
-
__reExport(variables_exports, require("@splunk/themes/variables"));
|
|
2513
|
-
var variables_default = "default" in defaultImport31 ? defaultImport31.default : defaultImport31;
|
|
2514
|
-
|
|
2515
2517
|
// src/common/components/IconPlaceholder.tsx
|
|
2516
2518
|
var shouldShowIconPlaceholder = (dataSources, loading = false) => {
|
|
2517
2519
|
const data = (0, lodash_exports.get)(dataSources, "primary.data.columns[0]", void 0);
|
|
@@ -2520,18 +2522,23 @@ var shouldShowIconPlaceholder = (dataSources, loading = false) => {
|
|
|
2520
2522
|
const noFields = fields === void 0;
|
|
2521
2523
|
return loading || noData || noFields;
|
|
2522
2524
|
};
|
|
2523
|
-
var propTypes2 = {
|
|
2524
|
-
icon: prop_types_exports.func,
|
|
2525
|
-
width: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number]),
|
|
2526
|
-
height: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number]),
|
|
2527
|
-
// eslint-disable-next-line react/no-unused-prop-types
|
|
2528
|
-
backgroundColor: prop_types_exports.string,
|
|
2529
|
-
iconColor: prop_types_exports.string
|
|
2530
|
-
};
|
|
2531
2525
|
var IconPlaceholder = (props) => {
|
|
2532
|
-
const {
|
|
2526
|
+
const {
|
|
2527
|
+
width = SplunkVisualization_default.defaults.width,
|
|
2528
|
+
height = SplunkVisualization_default.defaults.height,
|
|
2529
|
+
icon,
|
|
2530
|
+
iconColor,
|
|
2531
|
+
backgroundColor
|
|
2532
|
+
} = props;
|
|
2533
|
+
const cachedHandleResize = react_exports.useCallback((w, h) => {
|
|
2534
|
+
setContainerWidth(w);
|
|
2535
|
+
setContainerHeight(h);
|
|
2536
|
+
}, []);
|
|
2537
|
+
const [containerWidth, setContainerWidth] = react_exports.useState(Number(width));
|
|
2538
|
+
const [containerHeight, setContainerHeight] = react_exports.useState(Number(height));
|
|
2539
|
+
let content = /* @__PURE__ */ react_exports.createElement(Message_default, { width, height, level: "warning", message: (0, i18n_exports._)("No DataSource Connected") });
|
|
2533
2540
|
if (icon) {
|
|
2534
|
-
|
|
2541
|
+
content = react_exports.createElement(icon, {
|
|
2535
2542
|
style: {
|
|
2536
2543
|
left: "50%",
|
|
2537
2544
|
top: "50%",
|
|
@@ -2545,12 +2552,7 @@ var IconPlaceholder = (props) => {
|
|
|
2545
2552
|
"data-test": "icon-placeholder"
|
|
2546
2553
|
});
|
|
2547
2554
|
}
|
|
2548
|
-
return /* @__PURE__ */ react_exports.createElement(
|
|
2549
|
-
};
|
|
2550
|
-
IconPlaceholder.propTypes = propTypes2;
|
|
2551
|
-
IconPlaceholder.defaultProps = {
|
|
2552
|
-
width: "100%",
|
|
2553
|
-
height: 250
|
|
2555
|
+
return /* @__PURE__ */ react_exports.createElement("div", { style: { width: containerWidth, height: containerHeight, background: backgroundColor } }, /* @__PURE__ */ react_exports.createElement(SizeAwareWrapper_default, { width, height, onResize: cachedHandleResize }), content);
|
|
2554
2556
|
};
|
|
2555
2557
|
var IconPlaceholder_default = FixedSizeContainer_default(IconPlaceholder);
|
|
2556
2558
|
|
|
@@ -2560,11 +2562,17 @@ var withPlaceholder = (Visualization, useIconPlaceholder = shouldShowIconPlaceho
|
|
|
2560
2562
|
const { themes: themes3 } = config3;
|
|
2561
2563
|
const Wrapper = (props) => {
|
|
2562
2564
|
var _a, _b;
|
|
2563
|
-
const {
|
|
2565
|
+
const {
|
|
2566
|
+
dataSources,
|
|
2567
|
+
loading,
|
|
2568
|
+
options,
|
|
2569
|
+
height = SplunkVisualization_default.defaults.height,
|
|
2570
|
+
width = SplunkVisualization_default.defaults.width
|
|
2571
|
+
} = props;
|
|
2564
2572
|
const showPlaceholder = useIconPlaceholder(dataSources, loading, options);
|
|
2565
|
-
const
|
|
2566
|
-
const icon = (_b = config3.placeholderIcon) != null ? _b : config3.icon;
|
|
2573
|
+
const icon = (_a = config3.placeholderIcon) != null ? _a : config3.icon;
|
|
2567
2574
|
const iconColor = variables_default.contentColorActive(props);
|
|
2575
|
+
const bgColorFromTheme = (0, colorUtils_exports.isColor)(options == null ? void 0 : options.backgroundColor) ? options == null ? void 0 : options.backgroundColor : (_b = themes3 == null ? void 0 : themes3.defaultBackgroundColor) == null ? void 0 : _b.call(themes3, props);
|
|
2568
2576
|
if (config3.supports.includes("placeholder" /* PLACEHOLDER */) && showPlaceholder) {
|
|
2569
2577
|
return /* @__PURE__ */ react_exports.createElement(
|
|
2570
2578
|
IconPlaceholder_default,
|
|
@@ -3330,6 +3338,367 @@ var determineMinMax = (splitData, trellisSharedScale, yAxisMin, yAxisMax, stackM
|
|
|
3330
3338
|
return [shouldUseSharedMin ? sharedMin : yAxisMin, shouldUseSharedMax ? sharedMax : yAxisMax];
|
|
3331
3339
|
};
|
|
3332
3340
|
|
|
3341
|
+
// esm-externals:@splunk/visualization-canvas
|
|
3342
|
+
var visualization_canvas_exports = {};
|
|
3343
|
+
__export(visualization_canvas_exports, {
|
|
3344
|
+
default: () => visualization_canvas_default
|
|
3345
|
+
});
|
|
3346
|
+
var defaultImport34 = __toESM(require("@splunk/visualization-canvas"));
|
|
3347
|
+
__reExport(visualization_canvas_exports, require("@splunk/visualization-canvas"));
|
|
3348
|
+
var visualization_canvas_default = "default" in defaultImport34 ? defaultImport34.default : defaultImport34;
|
|
3349
|
+
|
|
3350
|
+
// esm-externals:@splunk/react-icons/Triangle
|
|
3351
|
+
var Triangle_exports = {};
|
|
3352
|
+
__export(Triangle_exports, {
|
|
3353
|
+
default: () => Triangle_default
|
|
3354
|
+
});
|
|
3355
|
+
var defaultImport35 = __toESM(require("@splunk/react-icons/Triangle"));
|
|
3356
|
+
__reExport(Triangle_exports, require("@splunk/react-icons/Triangle"));
|
|
3357
|
+
var Triangle_default = "default" in defaultImport35 ? defaultImport35.default : defaultImport35;
|
|
3358
|
+
|
|
3359
|
+
// src/common/chartingUtils.ts
|
|
3360
|
+
var DEFAULT_LINE_WIDTH = 2;
|
|
3361
|
+
var getAnnotationsForCanvas = ({
|
|
3362
|
+
annotationX,
|
|
3363
|
+
annotationColor,
|
|
3364
|
+
annotationLabel
|
|
3365
|
+
}) => (annotationX == null ? void 0 : annotationX.length) ? annotationX.map((timestamp, i) => ({
|
|
3366
|
+
key: annotationLabel == null ? void 0 : annotationLabel[i],
|
|
3367
|
+
time: timestamp,
|
|
3368
|
+
color: annotationColor == null ? void 0 : annotationColor[i]
|
|
3369
|
+
})) : [];
|
|
3370
|
+
var StyledTriangle = styled_components_default(Triangle_default)`
|
|
3371
|
+
color: ${(props) => props.eventColor || variables_default.severityColorNotice(props)};
|
|
3372
|
+
`;
|
|
3373
|
+
var triangleEventAnnotationRenderer = ({ event }) => {
|
|
3374
|
+
const eventWithColor = event;
|
|
3375
|
+
return react_default.createElement(StyledTriangle, {
|
|
3376
|
+
viewBox: "0 0 24 24",
|
|
3377
|
+
variant: "filled",
|
|
3378
|
+
eventColor: eventWithColor.color
|
|
3379
|
+
});
|
|
3380
|
+
};
|
|
3381
|
+
var canvasSupportedTimeSeriesCharts = ["splunk.line"];
|
|
3382
|
+
var isTimeSeriesCanvasRenderSupported = (vizConfigKey) => {
|
|
3383
|
+
return canvasSupportedTimeSeriesCharts.indexOf(vizConfigKey) > -1;
|
|
3384
|
+
};
|
|
3385
|
+
var filterChartDataFromInternalFields = (chartData) => {
|
|
3386
|
+
const { fields, columns } = chartData;
|
|
3387
|
+
const keepIndexes = fields.reduce((acc, field, index) => {
|
|
3388
|
+
const fieldName = typeof field === "object" ? field == null ? void 0 : field.name : field;
|
|
3389
|
+
if (!(fieldName == null ? void 0 : fieldName.startsWith("_")) || fieldName === "_time") {
|
|
3390
|
+
acc.push(index);
|
|
3391
|
+
}
|
|
3392
|
+
return acc;
|
|
3393
|
+
}, []);
|
|
3394
|
+
const filteredFields = keepIndexes.map((index) => fields[index]);
|
|
3395
|
+
const filteredColumns = keepIndexes.map((index) => columns[index]);
|
|
3396
|
+
return { fields: filteredFields, columns: filteredColumns };
|
|
3397
|
+
};
|
|
3398
|
+
var convert2DArrayToNumbers = (arr) => {
|
|
3399
|
+
return arr.map((subArray) => subArray.map((element) => parseFloat(element)));
|
|
3400
|
+
};
|
|
3401
|
+
var SideLegendWidth = 75;
|
|
3402
|
+
var commonLegendProps = { center: true, fontSize: 12, largerTiles: true, hideSeriesValue: true };
|
|
3403
|
+
var getLegend = (props) => {
|
|
3404
|
+
const legendPlacement = props == null ? void 0 : props.legendDisplay;
|
|
3405
|
+
switch (legendPlacement) {
|
|
3406
|
+
case "off":
|
|
3407
|
+
return false;
|
|
3408
|
+
case "left":
|
|
3409
|
+
return (0, visualization_canvas_exports.LeftLegendFactory)(__spreadValues({
|
|
3410
|
+
width: SideLegendWidth
|
|
3411
|
+
}, commonLegendProps));
|
|
3412
|
+
case "bottom":
|
|
3413
|
+
return (0, visualization_canvas_exports.BottomLegendFactory)(__spreadValues({
|
|
3414
|
+
wrap: true
|
|
3415
|
+
}, commonLegendProps));
|
|
3416
|
+
case "top":
|
|
3417
|
+
return (0, visualization_canvas_exports.TopLegendFactory)(__spreadValues({
|
|
3418
|
+
wrap: true
|
|
3419
|
+
}, commonLegendProps));
|
|
3420
|
+
default:
|
|
3421
|
+
return (0, visualization_canvas_exports.SideLegendFactory)(__spreadValues({
|
|
3422
|
+
width: SideLegendWidth
|
|
3423
|
+
}, commonLegendProps));
|
|
3424
|
+
}
|
|
3425
|
+
};
|
|
3426
|
+
var getComputedAxisTitles = (inputAxisTitle, fields, axisTitleVisibility) => {
|
|
3427
|
+
if (axisTitleVisibility === "collapsed") {
|
|
3428
|
+
return "";
|
|
3429
|
+
}
|
|
3430
|
+
let fieldTitle = fields.length > 1 ? "" : fields[0];
|
|
3431
|
+
if (!fieldTitle) {
|
|
3432
|
+
fieldTitle = "";
|
|
3433
|
+
}
|
|
3434
|
+
return (inputAxisTitle == null ? void 0 : inputAxisTitle.length) ? inputAxisTitle.trim() : fieldTitle;
|
|
3435
|
+
};
|
|
3436
|
+
var ellipsisAxisTitle = (axisTitle, containerSpacing, fontSize = 12) => {
|
|
3437
|
+
if (!axisTitle) {
|
|
3438
|
+
return "";
|
|
3439
|
+
}
|
|
3440
|
+
if (Number.isNaN(containerSpacing) || containerSpacing <= 0) {
|
|
3441
|
+
return axisTitle;
|
|
3442
|
+
}
|
|
3443
|
+
const availableHeight = containerSpacing * 0.6;
|
|
3444
|
+
const avgCharWidth = fontSize * 0.55;
|
|
3445
|
+
const maxChars = Math.floor(availableHeight / avgCharWidth);
|
|
3446
|
+
if (axisTitle.length <= maxChars) {
|
|
3447
|
+
return axisTitle;
|
|
3448
|
+
}
|
|
3449
|
+
if (maxChars <= 3) {
|
|
3450
|
+
return "...";
|
|
3451
|
+
}
|
|
3452
|
+
const availableChars = maxChars - 3;
|
|
3453
|
+
const halfChars = Math.floor(availableChars / 2);
|
|
3454
|
+
const start = axisTitle.slice(0, halfChars);
|
|
3455
|
+
const end = axisTitle.slice(-halfChars);
|
|
3456
|
+
return `${start}...${end}`;
|
|
3457
|
+
};
|
|
3458
|
+
var getFieldName = (field) => {
|
|
3459
|
+
const fieldName = typeof field === "object" ? field == null ? void 0 : field.name : field;
|
|
3460
|
+
return fieldName;
|
|
3461
|
+
};
|
|
3462
|
+
var getFieldNames = (fields) => {
|
|
3463
|
+
return fields.map((field) => getFieldName(field));
|
|
3464
|
+
};
|
|
3465
|
+
var getXScaleConfig = (label) => {
|
|
3466
|
+
const xConfig = { x: {} };
|
|
3467
|
+
xConfig.x.label = label;
|
|
3468
|
+
return xConfig;
|
|
3469
|
+
};
|
|
3470
|
+
var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale) => {
|
|
3471
|
+
const scaleType = yAxisScale != null ? yAxisScale : "linear";
|
|
3472
|
+
const yConfig = { y: {} };
|
|
3473
|
+
yConfig.y.label = label;
|
|
3474
|
+
yConfig.y.type = scaleType;
|
|
3475
|
+
if (yAxisAbbreviation !== "none") {
|
|
3476
|
+
yConfig.y.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1);
|
|
3477
|
+
}
|
|
3478
|
+
if (yAxisAbbreviation === "none") {
|
|
3479
|
+
yConfig.y.width = 55;
|
|
3480
|
+
} else {
|
|
3481
|
+
yConfig.y.width = label && label.length > 0 ? 30 : 10;
|
|
3482
|
+
}
|
|
3483
|
+
return yConfig;
|
|
3484
|
+
};
|
|
3485
|
+
var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInteger) => {
|
|
3486
|
+
const y2Config = { y2: {} };
|
|
3487
|
+
const scaleType = axisScale != null ? axisScale : "linear";
|
|
3488
|
+
y2Config.y2.label = label;
|
|
3489
|
+
y2Config.y2.side = "right";
|
|
3490
|
+
y2Config.y2.showGrid = false;
|
|
3491
|
+
y2Config.y2.type = scaleType;
|
|
3492
|
+
if (axisAbbreviation !== "none") {
|
|
3493
|
+
y2Config.y2.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1, roundAxisLabelsToInteger);
|
|
3494
|
+
} else if (roundAxisLabelsToInteger) {
|
|
3495
|
+
y2Config.y2.tickFmt = (v) => roundAxisLabelsToInteger ? Math.round(v).toString() : v.toString();
|
|
3496
|
+
}
|
|
3497
|
+
return y2Config;
|
|
3498
|
+
};
|
|
3499
|
+
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode) => {
|
|
3500
|
+
const seriesConfig = {};
|
|
3501
|
+
let spanGaps;
|
|
3502
|
+
let replaceNullsWithZero;
|
|
3503
|
+
if (nullValueMode === "gaps") {
|
|
3504
|
+
spanGaps = false;
|
|
3505
|
+
} else if (nullValueMode === "connect" || nullValueMode === "zero") {
|
|
3506
|
+
spanGaps = true;
|
|
3507
|
+
if (nullValueMode === "zero") {
|
|
3508
|
+
replaceNullsWithZero = true;
|
|
3509
|
+
}
|
|
3510
|
+
}
|
|
3511
|
+
yfields.forEach((field) => {
|
|
3512
|
+
seriesConfig[field] = {
|
|
3513
|
+
overrides: { width: lineWidth != null ? lineWidth : DEFAULT_LINE_WIDTH }
|
|
3514
|
+
};
|
|
3515
|
+
if (spanGaps !== void 0) {
|
|
3516
|
+
seriesConfig[field].overrides.spanGaps = spanGaps;
|
|
3517
|
+
}
|
|
3518
|
+
if (y2Enabled) {
|
|
3519
|
+
const shouldAssignToY2 = (
|
|
3520
|
+
// If y2Fields are present, assign all y2Fields to y2 scale
|
|
3521
|
+
(y2fields == null ? void 0 : y2fields.length) > 0 && y2fields.includes(field) || // Else, assign all overlayFields to y2 scale
|
|
3522
|
+
(!y2fields || y2fields.length === 0) && (overlayFields == null ? void 0 : overlayFields.includes(field))
|
|
3523
|
+
);
|
|
3524
|
+
if (shouldAssignToY2) {
|
|
3525
|
+
seriesConfig[field].overrides.scale = "y2";
|
|
3526
|
+
}
|
|
3527
|
+
}
|
|
3528
|
+
if (overlayFields == null ? void 0 : overlayFields.includes(field)) {
|
|
3529
|
+
seriesConfig[field].type = "line";
|
|
3530
|
+
}
|
|
3531
|
+
if (replaceNullsWithZero !== void 0) {
|
|
3532
|
+
seriesConfig[field].replaceNullsWithZero = replaceNullsWithZero;
|
|
3533
|
+
}
|
|
3534
|
+
});
|
|
3535
|
+
return seriesConfig;
|
|
3536
|
+
};
|
|
3537
|
+
|
|
3538
|
+
// src/common/TimeSeriesChartWrapper.tsx
|
|
3539
|
+
var TimeSeriesChartContainer = styled_components_default.div`
|
|
3540
|
+
overflow: hidden;
|
|
3541
|
+
${(props) => (0, style_exports.toDimension)((0, lodash_exports.pick)(props, ["width", "height"]))};
|
|
3542
|
+
|
|
3543
|
+
canvas {
|
|
3544
|
+
position: absolute !important; // This is needed for canvas element export pdf/png to work correctly
|
|
3545
|
+
}
|
|
3546
|
+
`;
|
|
3547
|
+
var handleClick = (chartEvent, props) => {
|
|
3548
|
+
const payload = __spreadProps(__spreadValues({}, (0, lodash_exports.pick)(chartEvent, "value", "seriesKey")), {
|
|
3549
|
+
name: chartEvent.seriesKey
|
|
3550
|
+
});
|
|
3551
|
+
delete payload.seriesKey;
|
|
3552
|
+
const clickHandler = props == null ? void 0 : props.onClick;
|
|
3553
|
+
if (clickHandler) {
|
|
3554
|
+
clickHandler({
|
|
3555
|
+
type: "point.click",
|
|
3556
|
+
originalEvent: chartEvent,
|
|
3557
|
+
payload
|
|
3558
|
+
});
|
|
3559
|
+
}
|
|
3560
|
+
};
|
|
3561
|
+
var handleLegendClick = (chartEvent, props) => {
|
|
3562
|
+
const payload = {
|
|
3563
|
+
name: chartEvent
|
|
3564
|
+
};
|
|
3565
|
+
const clickHandler = props == null ? void 0 : props.onClick;
|
|
3566
|
+
if (clickHandler) {
|
|
3567
|
+
clickHandler({
|
|
3568
|
+
type: "legend.click",
|
|
3569
|
+
originalEvent: chartEvent,
|
|
3570
|
+
payload
|
|
3571
|
+
});
|
|
3572
|
+
}
|
|
3573
|
+
};
|
|
3574
|
+
var TimeSeriesChartWrapper = (props) => {
|
|
3575
|
+
const { width, height, chartData, options, userLocale, annotationX, annotationLabel, annotationColor } = props;
|
|
3576
|
+
const {
|
|
3577
|
+
backgroundColor,
|
|
3578
|
+
seriesColors: seriesColorsStr,
|
|
3579
|
+
fieldColors,
|
|
3580
|
+
"axisTitleX.text": xAxisTitleText,
|
|
3581
|
+
"axisTitleY.text": yAxisTitleText,
|
|
3582
|
+
"axisTitleY2.text": y2AxisTitleText,
|
|
3583
|
+
"axisTitleX.visibility": xAxisTitleVisibility,
|
|
3584
|
+
"axisTitleY.visibility": yAxisTitleVisibility,
|
|
3585
|
+
"axisTitleY2.visibility": y2AxisTitleVisibility,
|
|
3586
|
+
"axisY.abbreviation": yAxisAbbreviation,
|
|
3587
|
+
"axisY.scale": yAxisScale,
|
|
3588
|
+
"axisY2.abbreviation": y2AxisAbbreviation,
|
|
3589
|
+
"axisY2.fields": y2FieldsStr,
|
|
3590
|
+
"axisY2.scale": y2AxisScale,
|
|
3591
|
+
"axisY2.enabled": y2Enabled,
|
|
3592
|
+
"axisLabelsY2.integerUnits": y2IntegerUnits,
|
|
3593
|
+
"chart.overlayFields": overlayFieldsStr,
|
|
3594
|
+
"chart.nullValueMode": nullValueMode,
|
|
3595
|
+
lineWidth
|
|
3596
|
+
} = options;
|
|
3597
|
+
const seriesColors = seriesColorsStr ? JSON.parse(seriesColorsStr) : void 0;
|
|
3598
|
+
const seriesColorsByField = fieldColors ? JSON.parse(fieldColors) : void 0;
|
|
3599
|
+
const [containerWidth, setContainerWidth] = react_exports.useState(Number(props.width));
|
|
3600
|
+
const [containerHeight, setContainerHeight] = react_exports.useState(Number(props.height));
|
|
3601
|
+
const cachedHandleResize = react_exports.useCallback((w, h) => {
|
|
3602
|
+
setContainerWidth(w);
|
|
3603
|
+
setContainerHeight(h);
|
|
3604
|
+
}, []);
|
|
3605
|
+
const filteredChartData = filterChartDataFromInternalFields({
|
|
3606
|
+
fields: chartData.fields,
|
|
3607
|
+
columns: chartData.seriesList
|
|
3608
|
+
});
|
|
3609
|
+
const xField = getFieldName(filteredChartData.fields[0]);
|
|
3610
|
+
const yFields = getFieldNames(
|
|
3611
|
+
filteredChartData.fields.length > 1 ? filteredChartData.fields.slice(1) : []
|
|
3612
|
+
);
|
|
3613
|
+
const y2Fields = y2FieldsStr ? y2FieldsStr.split(",").map((f) => f.trim()) : [];
|
|
3614
|
+
const overlayFields = overlayFieldsStr ? overlayFieldsStr.split(",").map((f) => f.trim()) : [];
|
|
3615
|
+
let xAxisTitle = getComputedAxisTitles(xAxisTitleText, [xField], xAxisTitleVisibility);
|
|
3616
|
+
xAxisTitle = ellipsisAxisTitle(xAxisTitle, containerWidth);
|
|
3617
|
+
let yAxisTitle = getComputedAxisTitles(yAxisTitleText, yFields, yAxisTitleVisibility);
|
|
3618
|
+
yAxisTitle = ellipsisAxisTitle(yAxisTitle, containerHeight);
|
|
3619
|
+
const fieldsForY2Axis = y2Fields.length > 0 ? y2Fields : overlayFields;
|
|
3620
|
+
let y2AxisTitle = getComputedAxisTitles(y2AxisTitleText, fieldsForY2Axis, y2AxisTitleVisibility);
|
|
3621
|
+
y2AxisTitle = ellipsisAxisTitle(y2AxisTitle, containerHeight);
|
|
3622
|
+
const xScaleConfig = getXScaleConfig(xAxisTitle);
|
|
3623
|
+
const yScaleConfig = getYScaleConfig(yAxisTitle, yAxisAbbreviation, yAxisScale);
|
|
3624
|
+
let y2ScaleConfig = {};
|
|
3625
|
+
if (y2Enabled) {
|
|
3626
|
+
y2ScaleConfig = getY2ScaleConfig(y2AxisTitle, y2AxisAbbreviation, y2AxisScale, y2IntegerUnits);
|
|
3627
|
+
}
|
|
3628
|
+
const uplotContainerElement = (0, react_exports.useRef)(null);
|
|
3629
|
+
const seriesDataFormatted = [
|
|
3630
|
+
filteredChartData.columns[0],
|
|
3631
|
+
...convert2DArrayToNumbers(filteredChartData.columns.slice(1))
|
|
3632
|
+
];
|
|
3633
|
+
chartData.fields = filteredChartData.fields;
|
|
3634
|
+
chartData.columns = seriesDataFormatted;
|
|
3635
|
+
const seriesOverrides = getSeriesOverrides(
|
|
3636
|
+
yFields,
|
|
3637
|
+
y2Fields,
|
|
3638
|
+
lineWidth,
|
|
3639
|
+
overlayFields,
|
|
3640
|
+
y2Enabled,
|
|
3641
|
+
nullValueMode
|
|
3642
|
+
);
|
|
3643
|
+
const chartingEventAnnotations = getAnnotationsForCanvas({
|
|
3644
|
+
annotationX,
|
|
3645
|
+
annotationColor,
|
|
3646
|
+
annotationLabel
|
|
3647
|
+
});
|
|
3648
|
+
const MemoizedChart = react_exports.memo(visualization_canvas_exports.TimeSeriesChart);
|
|
3649
|
+
const scaleConfig = __spreadValues(__spreadValues(__spreadValues({}, xScaleConfig), yScaleConfig), y2ScaleConfig);
|
|
3650
|
+
const memoizedChart = (0, react_exports.useMemo)(
|
|
3651
|
+
() => /* @__PURE__ */ react_exports.createElement(
|
|
3652
|
+
MemoizedChart,
|
|
3653
|
+
{
|
|
3654
|
+
data: chartData,
|
|
3655
|
+
width: containerWidth,
|
|
3656
|
+
height: containerHeight,
|
|
3657
|
+
seriesColors,
|
|
3658
|
+
seriesColorsByField,
|
|
3659
|
+
seriesConfig: seriesOverrides,
|
|
3660
|
+
legend: getLegend(props),
|
|
3661
|
+
scaleConfig,
|
|
3662
|
+
timestampFormat: "expanded",
|
|
3663
|
+
onCrosshairClick: (event) => handleClick(event, props),
|
|
3664
|
+
onSeriesClick: (event) => handleLegendClick(event, props),
|
|
3665
|
+
userLocale,
|
|
3666
|
+
events: chartingEventAnnotations,
|
|
3667
|
+
eventsConfig: { renderer: triangleEventAnnotationRenderer }
|
|
3668
|
+
}
|
|
3669
|
+
),
|
|
3670
|
+
[
|
|
3671
|
+
MemoizedChart,
|
|
3672
|
+
chartData,
|
|
3673
|
+
containerWidth,
|
|
3674
|
+
containerHeight,
|
|
3675
|
+
seriesColors,
|
|
3676
|
+
seriesColorsByField,
|
|
3677
|
+
seriesOverrides,
|
|
3678
|
+
lineWidth,
|
|
3679
|
+
props,
|
|
3680
|
+
scaleConfig,
|
|
3681
|
+
userLocale,
|
|
3682
|
+
chartingEventAnnotations
|
|
3683
|
+
]
|
|
3684
|
+
);
|
|
3685
|
+
const memoizedVisualization = (0, react_exports.useMemo)(() => {
|
|
3686
|
+
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor }, memoizedChart);
|
|
3687
|
+
}, [backgroundColor]);
|
|
3688
|
+
return /* @__PURE__ */ react_exports.createElement(
|
|
3689
|
+
TimeSeriesChartContainer,
|
|
3690
|
+
{
|
|
3691
|
+
height,
|
|
3692
|
+
width,
|
|
3693
|
+
ref: uplotContainerElement,
|
|
3694
|
+
"data-test": "timeseries-chart-wrapper"
|
|
3695
|
+
},
|
|
3696
|
+
/* @__PURE__ */ react_exports.createElement(SizeAwareWrapper_default, { width, height, onResize: cachedHandleResize }),
|
|
3697
|
+
memoizedVisualization
|
|
3698
|
+
);
|
|
3699
|
+
};
|
|
3700
|
+
var TimeSeriesChartWrapper_default = TimeSeriesChartWrapper;
|
|
3701
|
+
|
|
3333
3702
|
// src/common/withDashboardViz.tsx
|
|
3334
3703
|
var withDashboardViz = (opts) => {
|
|
3335
3704
|
const {
|
|
@@ -3347,30 +3716,29 @@ var withDashboardViz = (opts) => {
|
|
|
3347
3716
|
const DashboardViz = (props) => {
|
|
3348
3717
|
var _a;
|
|
3349
3718
|
const {
|
|
3350
|
-
mode,
|
|
3719
|
+
mode = "view",
|
|
3351
3720
|
hasEventHandlers,
|
|
3352
3721
|
dataSources,
|
|
3353
3722
|
// type of { [key: string]: DataSource }
|
|
3354
|
-
options,
|
|
3723
|
+
options = {},
|
|
3355
3724
|
context = {},
|
|
3356
3725
|
width,
|
|
3357
3726
|
height,
|
|
3358
|
-
onComputedProps,
|
|
3359
|
-
onEventTrigger,
|
|
3727
|
+
onComputedProps = lodash_exports.noop,
|
|
3728
|
+
onEventTrigger = SplunkVisualization_default.defaults.onEventTrigger,
|
|
3360
3729
|
theme,
|
|
3361
|
-
onRequestParamsChange
|
|
3730
|
+
onRequestParamsChange = lodash_exports.noop
|
|
3362
3731
|
} = props;
|
|
3363
|
-
const
|
|
3364
|
-
if (serializedTimezone) {
|
|
3732
|
+
const localeContext = react_exports.useContext(TimezoneContext_default);
|
|
3733
|
+
if (localeContext.serializedTimezone) {
|
|
3365
3734
|
if (!moment_default.getDefaultSplunkTimezone()) {
|
|
3366
|
-
moment_default.setDefaultSplunkTimezone(serializedTimezone);
|
|
3735
|
+
moment_default.setDefaultSplunkTimezone(localeContext.serializedTimezone);
|
|
3367
3736
|
}
|
|
3368
3737
|
}
|
|
3369
3738
|
const themeFunc = (themeVar) => {
|
|
3370
3739
|
var _a2, _b;
|
|
3371
3740
|
return (_b = (_a2 = vizConfig.themes)[themeVar]) == null ? void 0 : _b.call(_a2, props);
|
|
3372
3741
|
};
|
|
3373
|
-
const bgColorFromTheme = themeFunc("defaultBackgroundColor");
|
|
3374
3742
|
const {
|
|
3375
3743
|
family: currentThemeFamily,
|
|
3376
3744
|
colorScheme: currentThemeColorScheme,
|
|
@@ -3392,6 +3760,10 @@ var withDashboardViz = (opts) => {
|
|
|
3392
3760
|
featureFlagContext && featureFlagContext.visualizations_enableTrellis
|
|
3393
3761
|
);
|
|
3394
3762
|
const isTrellisOn = isTrellisFeatureFlagOn2 && ((_a = vizConfig == null ? void 0 : vizConfig.supports) == null ? void 0 : _a.includes("trellis" /* TRELLIS */)) && (options == null ? void 0 : options.splitByLayout) === "trellis" /* TRELLIS */;
|
|
3763
|
+
const isAcceleratedRenderFeatureFlagOn = Boolean(
|
|
3764
|
+
featureFlagContext == null ? void 0 : featureFlagContext.visualizations_enableAcceleratedRender
|
|
3765
|
+
);
|
|
3766
|
+
const isAcceleratedRenderOn = isAcceleratedRenderFeatureFlagOn && isTimeSeriesCanvasRenderSupported(vizConfig.key) && (options == null ? void 0 : options.acceleratedRender) === true;
|
|
3395
3767
|
const isMounted = react_exports.useRef(true);
|
|
3396
3768
|
const optionsToEvaluate = react_exports.useMemo(() => {
|
|
3397
3769
|
var _a2;
|
|
@@ -3486,10 +3858,34 @@ var withDashboardViz = (opts) => {
|
|
|
3486
3858
|
currentThemeDensity,
|
|
3487
3859
|
optionsToEvaluate,
|
|
3488
3860
|
downsampledDataSources,
|
|
3489
|
-
serializedTimezone,
|
|
3861
|
+
localeContext.serializedTimezone,
|
|
3490
3862
|
useAsyncEvaluatedOptions
|
|
3491
3863
|
]);
|
|
3492
3864
|
const evaluatedOptionsToUse = !useAsyncEvaluatedOptions ? evaluatedOptions : evaluatedOptionsAsync;
|
|
3865
|
+
let dataSourceMetadata = {};
|
|
3866
|
+
const OptionKey = "paginateDataSourceKey";
|
|
3867
|
+
const optsKey = (0, lodash_exports.has)(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey];
|
|
3868
|
+
const paginateDataSourceKey = typeof optsKey === "string" ? optsKey : "primary";
|
|
3869
|
+
const requestParams = (0, lodash_exports.get)(dataSources, [paginateDataSourceKey, "requestParams"], {});
|
|
3870
|
+
const meta = (0, lodash_exports.get)(dataSources, [paginateDataSourceKey, "meta"], {});
|
|
3871
|
+
const handleRequestParamsChange = (payload) => onRequestParamsChange(paginateDataSourceKey, payload);
|
|
3872
|
+
const sortParams = useSortingParams({
|
|
3873
|
+
requestParams,
|
|
3874
|
+
meta,
|
|
3875
|
+
onRequestParamsChange: handleRequestParamsChange
|
|
3876
|
+
});
|
|
3877
|
+
const paginatorParams = usePaginationParams({
|
|
3878
|
+
requestParams,
|
|
3879
|
+
meta,
|
|
3880
|
+
onRequestParamsChange: handleRequestParamsChange
|
|
3881
|
+
});
|
|
3882
|
+
dataSourceMetadata = {
|
|
3883
|
+
sortParams,
|
|
3884
|
+
paginatorParams
|
|
3885
|
+
};
|
|
3886
|
+
if (vizConfig.supports.indexOf("page-and-sort" /* PAGE_AND_SORT */) === -1 && !(0, lodash_exports.has)(dataSources, paginateDataSourceKey)) {
|
|
3887
|
+
dataSourceMetadata = {};
|
|
3888
|
+
}
|
|
3493
3889
|
const clonedEvaluatedOptions = __spreadValues({}, evaluatedOptionsToUse);
|
|
3494
3890
|
if (isTrellisOn) {
|
|
3495
3891
|
clonedEvaluatedOptions.backgroundColor = clonedEvaluatedOptions == null ? void 0 : clonedEvaluatedOptions.trellisBackgroundColor;
|
|
@@ -3515,7 +3911,7 @@ var withDashboardViz = (opts) => {
|
|
|
3515
3911
|
width,
|
|
3516
3912
|
height,
|
|
3517
3913
|
missingProps: missing,
|
|
3518
|
-
backgroundColor:
|
|
3914
|
+
backgroundColor: themeFunc("defaultBackgroundColor")
|
|
3519
3915
|
}
|
|
3520
3916
|
);
|
|
3521
3917
|
}
|
|
@@ -3533,7 +3929,7 @@ var withDashboardViz = (opts) => {
|
|
|
3533
3929
|
}
|
|
3534
3930
|
eventCallbackProps[eventCallbackPropName] = (ev) => {
|
|
3535
3931
|
if (ev && ev.payload) {
|
|
3536
|
-
payload = ev.payload;
|
|
3932
|
+
payload = __spreadValues({}, ev.payload);
|
|
3537
3933
|
}
|
|
3538
3934
|
return onEventTrigger({
|
|
3539
3935
|
originalEvent: ev,
|
|
@@ -3553,45 +3949,27 @@ var withDashboardViz = (opts) => {
|
|
|
3553
3949
|
const computedVizProps = computeVizProps2(__spreadProps(__spreadValues(__spreadValues(__spreadValues({}, props), evaluatedOptionsToUse), eventCallbackProps), {
|
|
3554
3950
|
themeFunc
|
|
3555
3951
|
}));
|
|
3556
|
-
let dataSourceMetadata = {};
|
|
3557
|
-
const OptionKey = "paginateDataSourceKey";
|
|
3558
|
-
const optsKey = (0, lodash_exports.has)(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey];
|
|
3559
|
-
const paginateDataSourceKey = typeof optsKey === "string" ? optsKey : "primary";
|
|
3560
|
-
if (vizConfig.supports.indexOf("page-and-sort" /* PAGE_AND_SORT */) > -1 && (0, lodash_exports.has)(dataSources, paginateDataSourceKey)) {
|
|
3561
|
-
const requestParams = (0, lodash_exports.get)(dataSources, [paginateDataSourceKey, "requestParams"], {});
|
|
3562
|
-
const meta = (0, lodash_exports.get)(dataSources, [paginateDataSourceKey, "meta"], {});
|
|
3563
|
-
const handleRequestParamsChange = (payload) => onRequestParamsChange(paginateDataSourceKey, payload);
|
|
3564
|
-
const sortParams = getSortingParams({
|
|
3565
|
-
requestParams,
|
|
3566
|
-
meta,
|
|
3567
|
-
onRequestParamsChange: handleRequestParamsChange
|
|
3568
|
-
});
|
|
3569
|
-
const paginatorParams = getPaginationParams({
|
|
3570
|
-
requestParams,
|
|
3571
|
-
meta,
|
|
3572
|
-
onRequestParamsChange: handleRequestParamsChange
|
|
3573
|
-
});
|
|
3574
|
-
dataSourceMetadata = {
|
|
3575
|
-
sortParams,
|
|
3576
|
-
paginatorParams
|
|
3577
|
-
};
|
|
3578
|
-
}
|
|
3579
3952
|
if (useAsyncEvaluatedOptions && Object.keys(evaluatedOptionsToUse).length === 0) {
|
|
3580
3953
|
return null;
|
|
3581
3954
|
}
|
|
3955
|
+
let SanitizedViz = SanitizedReactViz;
|
|
3956
|
+
if (isAcceleratedRenderOn) {
|
|
3957
|
+
SanitizedViz = (0, SanitizeProps_exports.withSanitizedProps)(TimeSeriesChartWrapper_default);
|
|
3958
|
+
}
|
|
3582
3959
|
return /* @__PURE__ */ react_exports.createElement(
|
|
3583
|
-
|
|
3584
|
-
__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
3960
|
+
SanitizedViz,
|
|
3961
|
+
__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues({}, SplunkVisualization_default.defaults), {
|
|
3585
3962
|
mode,
|
|
3586
|
-
width,
|
|
3587
|
-
height
|
|
3588
|
-
|
|
3963
|
+
width: width || SplunkVisualization_default.defaults.width,
|
|
3964
|
+
height: height || SplunkVisualization_default.defaults.height,
|
|
3965
|
+
userLocale: localeContext
|
|
3966
|
+
}), downsamplingProps), evaluatedOptionsToUse), computedVizProps), eventCallbackProps), dataSourceMetadata)
|
|
3589
3967
|
);
|
|
3590
3968
|
};
|
|
3591
3969
|
DashboardViz.propTypes = __spreadValues(__spreadValues({}, SplunkVisualization_default.propTypes), ReactViz.propTypes);
|
|
3592
|
-
DashboardViz.defaultProps = __spreadProps(__spreadValues(
|
|
3593
|
-
//
|
|
3594
|
-
|
|
3970
|
+
DashboardViz.defaultProps = __spreadProps(__spreadValues({}, ReactViz.defaultProps), {
|
|
3971
|
+
// we still need ReactViz.defaultProps for the visualizations that still have them
|
|
3972
|
+
onEventTrigger: SplunkVisualization_default.defaults.onEventTrigger
|
|
3595
3973
|
});
|
|
3596
3974
|
DashboardViz.config = vizConfig;
|
|
3597
3975
|
return (0, styled_components_exports.withTheme)(
|
|
@@ -3605,45 +3983,45 @@ var PresetPalettes_exports = {};
|
|
|
3605
3983
|
__export(PresetPalettes_exports, {
|
|
3606
3984
|
default: () => PresetPalettes_default
|
|
3607
3985
|
});
|
|
3608
|
-
var
|
|
3986
|
+
var defaultImport36 = __toESM(require("@splunk/visualization-color-palettes/editors/PresetPalettes"));
|
|
3609
3987
|
__reExport(PresetPalettes_exports, require("@splunk/visualization-color-palettes/editors/PresetPalettes"));
|
|
3610
|
-
var PresetPalettes_default = "default" in
|
|
3988
|
+
var PresetPalettes_default = "default" in defaultImport36 ? defaultImport36.default : defaultImport36;
|
|
3611
3989
|
|
|
3612
3990
|
// esm-externals:@splunk/visualization-themes/variables
|
|
3613
3991
|
var variables_exports2 = {};
|
|
3614
3992
|
__export(variables_exports2, {
|
|
3615
3993
|
default: () => variables_default2
|
|
3616
3994
|
});
|
|
3617
|
-
var
|
|
3995
|
+
var defaultImport37 = __toESM(require("@splunk/visualization-themes/variables"));
|
|
3618
3996
|
__reExport(variables_exports2, require("@splunk/visualization-themes/variables"));
|
|
3619
|
-
var variables_default2 = "default" in
|
|
3997
|
+
var variables_default2 = "default" in defaultImport37 ? defaultImport37.default : defaultImport37;
|
|
3620
3998
|
|
|
3621
3999
|
// esm-externals:@splunk/themes/pick
|
|
3622
4000
|
var pick_exports2 = {};
|
|
3623
4001
|
__export(pick_exports2, {
|
|
3624
4002
|
default: () => pick_default2
|
|
3625
4003
|
});
|
|
3626
|
-
var
|
|
4004
|
+
var defaultImport38 = __toESM(require("@splunk/themes/pick"));
|
|
3627
4005
|
__reExport(pick_exports2, require("@splunk/themes/pick"));
|
|
3628
|
-
var pick_default2 = "default" in
|
|
4006
|
+
var pick_default2 = "default" in defaultImport38 ? defaultImport38.default : defaultImport38;
|
|
3629
4007
|
|
|
3630
4008
|
// esm-externals:@splunk/visualization-icons
|
|
3631
4009
|
var visualization_icons_exports = {};
|
|
3632
4010
|
__export(visualization_icons_exports, {
|
|
3633
4011
|
default: () => visualization_icons_default
|
|
3634
4012
|
});
|
|
3635
|
-
var
|
|
4013
|
+
var defaultImport39 = __toESM(require("@splunk/visualization-icons"));
|
|
3636
4014
|
__reExport(visualization_icons_exports, require("@splunk/visualization-icons"));
|
|
3637
|
-
var visualization_icons_default = "default" in
|
|
4015
|
+
var visualization_icons_default = "default" in defaultImport39 ? defaultImport39.default : defaultImport39;
|
|
3638
4016
|
|
|
3639
4017
|
// esm-externals:@splunk/visualization-icons/placeholders
|
|
3640
4018
|
var placeholders_exports = {};
|
|
3641
4019
|
__export(placeholders_exports, {
|
|
3642
4020
|
default: () => placeholders_default
|
|
3643
4021
|
});
|
|
3644
|
-
var
|
|
4022
|
+
var defaultImport40 = __toESM(require("@splunk/visualization-icons/placeholders"));
|
|
3645
4023
|
__reExport(placeholders_exports, require("@splunk/visualization-icons/placeholders"));
|
|
3646
|
-
var placeholders_default = "default" in
|
|
4024
|
+
var placeholders_default = "default" in defaultImport40 ? defaultImport40.default : defaultImport40;
|
|
3647
4025
|
|
|
3648
4026
|
// src/common/configContext/singleValueContext.ts
|
|
3649
4027
|
var defaultContext = {
|
|
@@ -3675,9 +4053,9 @@ var configUtils_exports = {};
|
|
|
3675
4053
|
__export(configUtils_exports, {
|
|
3676
4054
|
default: () => configUtils_default
|
|
3677
4055
|
});
|
|
3678
|
-
var
|
|
4056
|
+
var defaultImport41 = __toESM(require("@splunk/visualizations-shared/configUtils"));
|
|
3679
4057
|
__reExport(configUtils_exports, require("@splunk/visualizations-shared/configUtils"));
|
|
3680
|
-
var configUtils_default = "default" in
|
|
4058
|
+
var configUtils_default = "default" in defaultImport41 ? defaultImport41.default : defaultImport41;
|
|
3681
4059
|
|
|
3682
4060
|
// src/common/editorConfig/DynamicMajorColorEditor.js
|
|
3683
4061
|
var getDynamicMajorColorEditor = ({ defaultContext: defaultContext2, defaultPalettesConfig: defaultPalettesConfig2 }) => ({
|
|
@@ -4404,27 +4782,27 @@ var Paginator_exports = {};
|
|
|
4404
4782
|
__export(Paginator_exports, {
|
|
4405
4783
|
default: () => Paginator_default
|
|
4406
4784
|
});
|
|
4407
|
-
var
|
|
4785
|
+
var defaultImport42 = __toESM(require("@splunk/react-ui/Paginator"));
|
|
4408
4786
|
__reExport(Paginator_exports, require("@splunk/react-ui/Paginator"));
|
|
4409
|
-
var Paginator_default = "default" in
|
|
4787
|
+
var Paginator_default = "default" in defaultImport42 ? defaultImport42.default : defaultImport42;
|
|
4410
4788
|
|
|
4411
4789
|
// esm-externals:@splunk/themes
|
|
4412
4790
|
var themes_exports = {};
|
|
4413
4791
|
__export(themes_exports, {
|
|
4414
4792
|
default: () => themes_default
|
|
4415
4793
|
});
|
|
4416
|
-
var
|
|
4794
|
+
var defaultImport43 = __toESM(require("@splunk/themes"));
|
|
4417
4795
|
__reExport(themes_exports, require("@splunk/themes"));
|
|
4418
|
-
var themes_default = "default" in
|
|
4796
|
+
var themes_default = "default" in defaultImport43 ? defaultImport43.default : defaultImport43;
|
|
4419
4797
|
|
|
4420
4798
|
// esm-externals:@splunk/themes/useSplunkTheme
|
|
4421
4799
|
var useSplunkTheme_exports = {};
|
|
4422
4800
|
__export(useSplunkTheme_exports, {
|
|
4423
4801
|
default: () => useSplunkTheme_default
|
|
4424
4802
|
});
|
|
4425
|
-
var
|
|
4803
|
+
var defaultImport44 = __toESM(require("@splunk/themes/useSplunkTheme"));
|
|
4426
4804
|
__reExport(useSplunkTheme_exports, require("@splunk/themes/useSplunkTheme"));
|
|
4427
|
-
var useSplunkTheme_default = "default" in
|
|
4805
|
+
var useSplunkTheme_default = "default" in defaultImport44 ? defaultImport44.default : defaultImport44;
|
|
4428
4806
|
|
|
4429
4807
|
// src/common/hocs/withTrellis.tsx
|
|
4430
4808
|
var TrellisContainer = styled_components_default.div`
|
|
@@ -4656,7 +5034,6 @@ var withTrellis = (Viz) => {
|
|
|
4656
5034
|
return null;
|
|
4657
5035
|
};
|
|
4658
5036
|
VizWithTrellis.propTypes = Viz.proptypes;
|
|
4659
|
-
VizWithTrellis.defaultProps = Viz.defaultProps;
|
|
4660
5037
|
VizWithTrellis.config = Viz.config;
|
|
4661
5038
|
return VizWithTrellis;
|
|
4662
5039
|
};
|