@splunk/visualizations 28.1.0 → 28.2.1
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 +715 -354
- package/Area.js.map +4 -4
- package/Bar.config.js +27 -0
- package/Bar.config.js.map +2 -2
- package/Bar.js +747 -386
- package/Bar.js.map +4 -4
- package/Bubble.config.js +27 -0
- package/Bubble.config.js.map +2 -2
- package/Bubble.js +677 -320
- package/Bubble.js.map +4 -4
- package/CHANGELOG.external.md +49 -0
- package/ChoroplethSvg.js +563 -193
- package/ChoroplethSvg.js.map +4 -4
- package/Column.config.js +27 -0
- package/Column.config.js.map +2 -2
- package/Column.js +762 -401
- package/Column.js.map +4 -4
- package/Ellipse.js +586 -213
- package/Ellipse.js.map +4 -4
- package/Events.js +585 -200
- package/Events.js.map +4 -4
- package/FEATUREFLAGS.md +1 -0
- package/FillerGauge.js +558 -190
- package/FillerGauge.js.map +4 -4
- package/Image.js +583 -216
- package/Image.js.map +4 -4
- package/Line.config.js +28 -1
- package/Line.config.js.map +2 -2
- package/Line.js +730 -369
- package/Line.js.map +4 -4
- package/LinkGraph.js +1087 -690
- package/LinkGraph.js.map +4 -4
- package/Map.config.js +2 -0
- package/Map.config.js.map +2 -2
- package/Map.js +527 -141
- package/Map.js.map +4 -4
- package/Markdown.js +607 -229
- package/Markdown.js.map +4 -4
- package/MarkerGauge.js +537 -168
- package/MarkerGauge.js.map +4 -4
- package/ParallelCoordinates.js +558 -173
- package/ParallelCoordinates.js.map +4 -4
- package/Pie.js +644 -315
- package/Pie.js.map +4 -4
- package/Punchcard.js +582 -199
- package/Punchcard.js.map +4 -4
- package/Rectangle.js +597 -223
- package/Rectangle.js.map +4 -4
- package/Sankey.js +570 -200
- package/Sankey.js.map +4 -4
- package/Scatter.config.js +27 -0
- package/Scatter.config.js.map +2 -2
- package/Scatter.js +681 -325
- package/Scatter.js.map +4 -4
- package/SingleValue.js +534 -165
- package/SingleValue.js.map +4 -4
- package/SingleValueIcon.js +528 -159
- package/SingleValueIcon.js.map +4 -4
- package/SingleValueRadial.js +521 -152
- package/SingleValueRadial.js.map +4 -4
- package/Table.config.js +87 -32
- package/Table.config.js.map +4 -4
- package/Table.js +925 -441
- package/Table.js.map +4 -4
- package/Timeline.js +605 -272
- 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 +29 -28
- package/common/utils/tableUtils.js.map +2 -2
- package/common/withDashboardViz.js +545 -160
- 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 +32 -34
|
@@ -274,7 +274,7 @@ SplunkVisualization.propTypes = {
|
|
|
274
274
|
/**
|
|
275
275
|
*
|
|
276
276
|
*/
|
|
277
|
-
SplunkVisualization.
|
|
277
|
+
SplunkVisualization.defaults = {
|
|
278
278
|
// BaseVisualization in dashboard-visualizations uses 100% for width but 250 for height
|
|
279
279
|
width: "100%",
|
|
280
280
|
height: INITIAL_HEIGHT,
|
|
@@ -295,13 +295,13 @@ var SplunkVisualization_default = SplunkVisualization;
|
|
|
295
295
|
// src/common/interfaces/DataSource.ts
|
|
296
296
|
var validSortDirs = ["asc", "desc", "none"];
|
|
297
297
|
|
|
298
|
-
// src/common/hooks/
|
|
298
|
+
// src/common/hooks/useSorting.ts
|
|
299
299
|
var SortParamsPropTypes = prop_types_exports.shape({
|
|
300
300
|
currentSortKey: prop_types_exports.string,
|
|
301
301
|
currentSortDir: prop_types_exports.oneOf(validSortDirs),
|
|
302
302
|
onSort: prop_types_exports.func
|
|
303
303
|
});
|
|
304
|
-
var
|
|
304
|
+
var useSortingParams = ({ requestParams, onRequestParamsChange }) => {
|
|
305
305
|
let currentSortKey;
|
|
306
306
|
let currentSortDir;
|
|
307
307
|
const nextSortDirMap = {
|
|
@@ -331,14 +331,14 @@ var getSortingParams = ({ requestParams, onRequestParamsChange }) => {
|
|
|
331
331
|
};
|
|
332
332
|
};
|
|
333
333
|
|
|
334
|
-
// src/common/hooks/
|
|
334
|
+
// src/common/hooks/usePagination.ts
|
|
335
335
|
var PaginatorParamsPropTypes = prop_types_exports.shape({
|
|
336
336
|
isPaging: prop_types_exports.bool,
|
|
337
337
|
current: prop_types_exports.number,
|
|
338
338
|
totalPages: prop_types_exports.number,
|
|
339
339
|
onChange: prop_types_exports.func
|
|
340
340
|
});
|
|
341
|
-
var
|
|
341
|
+
var usePaginationParams = ({
|
|
342
342
|
requestParams,
|
|
343
343
|
meta,
|
|
344
344
|
onRequestParamsChange
|
|
@@ -400,14 +400,84 @@ var defaultImport16 = __toESM(require("@splunk/visualizations-shared/Message"));
|
|
|
400
400
|
__reExport(Message_exports, require("@splunk/visualizations-shared/Message"));
|
|
401
401
|
var Message_default = "default" in defaultImport16 ? defaultImport16.default : defaultImport16;
|
|
402
402
|
|
|
403
|
-
// esm-externals:@splunk/visualizations-shared/
|
|
404
|
-
var
|
|
405
|
-
__export(
|
|
406
|
-
default: () =>
|
|
403
|
+
// esm-externals:@splunk/visualizations-shared/SizeAwareWrapper
|
|
404
|
+
var SizeAwareWrapper_exports = {};
|
|
405
|
+
__export(SizeAwareWrapper_exports, {
|
|
406
|
+
default: () => SizeAwareWrapper_default
|
|
407
407
|
});
|
|
408
|
-
var defaultImport17 = __toESM(require("@splunk/visualizations-shared/
|
|
409
|
-
__reExport(
|
|
410
|
-
var
|
|
408
|
+
var defaultImport17 = __toESM(require("@splunk/visualizations-shared/SizeAwareWrapper"));
|
|
409
|
+
__reExport(SizeAwareWrapper_exports, require("@splunk/visualizations-shared/SizeAwareWrapper"));
|
|
410
|
+
var SizeAwareWrapper_default = "default" in defaultImport17 ? defaultImport17.default : defaultImport17;
|
|
411
|
+
|
|
412
|
+
// src/common/components/MissingPropsMessage.tsx
|
|
413
|
+
var isMissing = (v) => {
|
|
414
|
+
return v === null || v === void 0;
|
|
415
|
+
};
|
|
416
|
+
var missingKeys = (keys, target) => keys.filter((k) => isMissing(target[k]));
|
|
417
|
+
var MissingPropsMessage = (props) => {
|
|
418
|
+
const {
|
|
419
|
+
width = SplunkVisualization_default.defaults.width,
|
|
420
|
+
height = SplunkVisualization_default.defaults.height,
|
|
421
|
+
missingProps,
|
|
422
|
+
backgroundColor
|
|
423
|
+
} = props;
|
|
424
|
+
const cachedHandleResize = react_exports.useCallback((w, h) => {
|
|
425
|
+
setContainerWidth(w);
|
|
426
|
+
setContainerHeight(h);
|
|
427
|
+
}, []);
|
|
428
|
+
const [containerWidth, setContainerWidth] = react_exports.useState(Number(width));
|
|
429
|
+
const [containerHeight, setContainerHeight] = react_exports.useState(Number(height));
|
|
430
|
+
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(
|
|
431
|
+
Message_default,
|
|
432
|
+
{
|
|
433
|
+
"data-test": "message",
|
|
434
|
+
width,
|
|
435
|
+
height,
|
|
436
|
+
message: (0, i18n_exports._)(`Missing property: ${missingProps.join(", ")}`),
|
|
437
|
+
level: "error"
|
|
438
|
+
}
|
|
439
|
+
));
|
|
440
|
+
};
|
|
441
|
+
var MissingPropsMessage_default = MissingPropsMessage;
|
|
442
|
+
|
|
443
|
+
// src/common/utils/hocUtils.ts
|
|
444
|
+
var extendStaticWrapperProps = ({
|
|
445
|
+
Wrapper,
|
|
446
|
+
Visualization
|
|
447
|
+
}) => {
|
|
448
|
+
const extendProperties = ["propTypes", "config"];
|
|
449
|
+
extendProperties.forEach((prop) => {
|
|
450
|
+
if (Visualization[prop]) {
|
|
451
|
+
Wrapper[prop] = Visualization[prop];
|
|
452
|
+
}
|
|
453
|
+
});
|
|
454
|
+
};
|
|
455
|
+
|
|
456
|
+
// src/common/hocs/withEditModeCover.tsx
|
|
457
|
+
var Cover = styled_components_default.div`
|
|
458
|
+
position: absolute;
|
|
459
|
+
left: 0;
|
|
460
|
+
right: 0;
|
|
461
|
+
top: 0;
|
|
462
|
+
bottom: 0;
|
|
463
|
+
`;
|
|
464
|
+
var Blocker = styled_components_default.div.attrs({
|
|
465
|
+
"data-splunk-visualization-version": "28.2.1 - b6faf8893"
|
|
466
|
+
})`
|
|
467
|
+
position: relative;
|
|
468
|
+
width: 100%;
|
|
469
|
+
height: 100%;
|
|
470
|
+
`;
|
|
471
|
+
var withEditModeCover = (Visualization, disableEditModeCover) => {
|
|
472
|
+
const Wrapper = (props) => {
|
|
473
|
+
const { mode } = props;
|
|
474
|
+
const showEditCover = mode === "edit" && !disableEditModeCover;
|
|
475
|
+
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" }));
|
|
476
|
+
};
|
|
477
|
+
extendStaticWrapperProps({ Wrapper, Visualization });
|
|
478
|
+
return Wrapper;
|
|
479
|
+
};
|
|
480
|
+
var withEditModeCover_default = withEditModeCover;
|
|
411
481
|
|
|
412
482
|
// esm-externals:@splunk/visualizations-shared/colorUtils
|
|
413
483
|
var colorUtils_exports = {};
|
|
@@ -418,14 +488,23 @@ var defaultImport18 = __toESM(require("@splunk/visualizations-shared/colorUtils"
|
|
|
418
488
|
__reExport(colorUtils_exports, require("@splunk/visualizations-shared/colorUtils"));
|
|
419
489
|
var colorUtils_default = "default" in defaultImport18 ? defaultImport18.default : defaultImport18;
|
|
420
490
|
|
|
421
|
-
// esm-externals:@splunk/
|
|
422
|
-
var
|
|
423
|
-
__export(
|
|
424
|
-
default: () =>
|
|
491
|
+
// esm-externals:@splunk/themes/variables
|
|
492
|
+
var variables_exports = {};
|
|
493
|
+
__export(variables_exports, {
|
|
494
|
+
default: () => variables_default
|
|
425
495
|
});
|
|
426
|
-
var defaultImport19 = __toESM(require("@splunk/
|
|
427
|
-
__reExport(
|
|
428
|
-
var
|
|
496
|
+
var defaultImport19 = __toESM(require("@splunk/themes/variables"));
|
|
497
|
+
__reExport(variables_exports, require("@splunk/themes/variables"));
|
|
498
|
+
var variables_default = "default" in defaultImport19 ? defaultImport19.default : defaultImport19;
|
|
499
|
+
|
|
500
|
+
// esm-externals:@splunk/visualizations-shared/style
|
|
501
|
+
var style_exports = {};
|
|
502
|
+
__export(style_exports, {
|
|
503
|
+
default: () => style_default
|
|
504
|
+
});
|
|
505
|
+
var defaultImport20 = __toESM(require("@splunk/visualizations-shared/style"));
|
|
506
|
+
__reExport(style_exports, require("@splunk/visualizations-shared/style"));
|
|
507
|
+
var style_default = "default" in defaultImport20 ? defaultImport20.default : defaultImport20;
|
|
429
508
|
|
|
430
509
|
// src/common/hocs/FixedSizeContainer.tsx
|
|
431
510
|
var Item = styled_components_default.div.attrs(({ width }) => ({
|
|
@@ -477,7 +556,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
477
556
|
FixSizeItem,
|
|
478
557
|
{
|
|
479
558
|
"data-test": "fix-size-item",
|
|
480
|
-
"data-splunk-visualization-version": "28.1
|
|
559
|
+
"data-splunk-visualization-version": "28.2.1 - b6faf8893",
|
|
481
560
|
width,
|
|
482
561
|
height,
|
|
483
562
|
backgroundColor
|
|
@@ -490,85 +569,6 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
490
569
|
};
|
|
491
570
|
var FixedSizeContainer_default = withFixedSizeContainer;
|
|
492
571
|
|
|
493
|
-
// src/common/components/MissingPropsMessage.tsx
|
|
494
|
-
var isMissing = (v) => {
|
|
495
|
-
return v === null || v === void 0;
|
|
496
|
-
};
|
|
497
|
-
var missingKeys = (keys, target) => keys.filter((k) => isMissing(target[k]));
|
|
498
|
-
var propTypes = {
|
|
499
|
-
width: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number]),
|
|
500
|
-
height: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number]),
|
|
501
|
-
// eslint-disable-next-line react/no-unused-prop-types
|
|
502
|
-
backgroundColor: prop_types_exports.string,
|
|
503
|
-
missingProps: prop_types_exports.arrayOf(prop_types_exports.string)
|
|
504
|
-
};
|
|
505
|
-
var MissingPropsMessage = (props) => {
|
|
506
|
-
const { width, height, missingProps } = props;
|
|
507
|
-
return /* @__PURE__ */ react_exports.createElement(
|
|
508
|
-
Message_default,
|
|
509
|
-
{
|
|
510
|
-
"data-test": "message",
|
|
511
|
-
width,
|
|
512
|
-
height,
|
|
513
|
-
message: (0, i18n_exports._)(`Missing property: ${missingProps.join(", ")}`)
|
|
514
|
-
}
|
|
515
|
-
);
|
|
516
|
-
};
|
|
517
|
-
MissingPropsMessage.propTypes = propTypes;
|
|
518
|
-
MissingPropsMessage.defaultProps = {
|
|
519
|
-
width: "100%",
|
|
520
|
-
height: 250
|
|
521
|
-
};
|
|
522
|
-
var MissingPropsMessage_default = FixedSizeContainer_default(MissingPropsMessage);
|
|
523
|
-
|
|
524
|
-
// src/common/utils/hocUtils.ts
|
|
525
|
-
var extendStaticWrapperProps = ({
|
|
526
|
-
Wrapper,
|
|
527
|
-
Visualization
|
|
528
|
-
}) => {
|
|
529
|
-
const extendProperties = ["propTypes", "defaultProps", "config"];
|
|
530
|
-
extendProperties.forEach((prop) => {
|
|
531
|
-
if (Visualization[prop]) {
|
|
532
|
-
Wrapper[prop] = Visualization[prop];
|
|
533
|
-
}
|
|
534
|
-
});
|
|
535
|
-
};
|
|
536
|
-
|
|
537
|
-
// src/common/hocs/withEditModeCover.tsx
|
|
538
|
-
var Cover = styled_components_default.div`
|
|
539
|
-
position: absolute;
|
|
540
|
-
left: 0;
|
|
541
|
-
right: 0;
|
|
542
|
-
top: 0;
|
|
543
|
-
bottom: 0;
|
|
544
|
-
`;
|
|
545
|
-
var Blocker = styled_components_default.div.attrs({
|
|
546
|
-
"data-splunk-visualization-version": "28.1.0 - 4a1bff08b"
|
|
547
|
-
})`
|
|
548
|
-
position: relative;
|
|
549
|
-
width: 100%;
|
|
550
|
-
height: 100%;
|
|
551
|
-
`;
|
|
552
|
-
var withEditModeCover = (Visualization, disableEditModeCover) => {
|
|
553
|
-
const Wrapper = (props) => {
|
|
554
|
-
const { mode } = props;
|
|
555
|
-
const showEditCover = mode === "edit" && !disableEditModeCover;
|
|
556
|
-
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" }));
|
|
557
|
-
};
|
|
558
|
-
extendStaticWrapperProps({ Wrapper, Visualization });
|
|
559
|
-
return Wrapper;
|
|
560
|
-
};
|
|
561
|
-
var withEditModeCover_default = withEditModeCover;
|
|
562
|
-
|
|
563
|
-
// esm-externals:@splunk/themes/variables
|
|
564
|
-
var variables_exports = {};
|
|
565
|
-
__export(variables_exports, {
|
|
566
|
-
default: () => variables_default
|
|
567
|
-
});
|
|
568
|
-
var defaultImport20 = __toESM(require("@splunk/themes/variables"));
|
|
569
|
-
__reExport(variables_exports, require("@splunk/themes/variables"));
|
|
570
|
-
var variables_default = "default" in defaultImport20 ? defaultImport20.default : defaultImport20;
|
|
571
|
-
|
|
572
572
|
// src/common/components/IconPlaceholder.tsx
|
|
573
573
|
var shouldShowIconPlaceholder = (dataSources, loading = false) => {
|
|
574
574
|
const data = (0, lodash_exports.get)(dataSources, "primary.data.columns[0]", void 0);
|
|
@@ -577,18 +577,17 @@ var shouldShowIconPlaceholder = (dataSources, loading = false) => {
|
|
|
577
577
|
const noFields = fields === void 0;
|
|
578
578
|
return loading || noData || noFields;
|
|
579
579
|
};
|
|
580
|
-
var propTypes2 = {
|
|
581
|
-
icon: prop_types_exports.func,
|
|
582
|
-
width: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number]),
|
|
583
|
-
height: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number]),
|
|
584
|
-
// eslint-disable-next-line react/no-unused-prop-types
|
|
585
|
-
backgroundColor: prop_types_exports.string,
|
|
586
|
-
iconColor: prop_types_exports.string
|
|
587
|
-
};
|
|
588
580
|
var IconPlaceholder = (props) => {
|
|
589
|
-
const {
|
|
581
|
+
const {
|
|
582
|
+
width = SplunkVisualization_default.defaults.width,
|
|
583
|
+
height = SplunkVisualization_default.defaults.height,
|
|
584
|
+
icon,
|
|
585
|
+
iconColor,
|
|
586
|
+
backgroundColor
|
|
587
|
+
} = props;
|
|
588
|
+
let content = /* @__PURE__ */ react_exports.createElement(Message_default, { width, height, level: "warning", message: (0, i18n_exports._)("No DataSource Connected") });
|
|
590
589
|
if (icon) {
|
|
591
|
-
|
|
590
|
+
content = react_exports.createElement(icon, {
|
|
592
591
|
style: {
|
|
593
592
|
left: "50%",
|
|
594
593
|
top: "50%",
|
|
@@ -602,12 +601,7 @@ var IconPlaceholder = (props) => {
|
|
|
602
601
|
"data-test": "icon-placeholder"
|
|
603
602
|
});
|
|
604
603
|
}
|
|
605
|
-
return /* @__PURE__ */ react_exports.createElement(
|
|
606
|
-
};
|
|
607
|
-
IconPlaceholder.propTypes = propTypes2;
|
|
608
|
-
IconPlaceholder.defaultProps = {
|
|
609
|
-
width: "100%",
|
|
610
|
-
height: 250
|
|
604
|
+
return /* @__PURE__ */ react_exports.createElement("div", { style: { width, height, background: backgroundColor } }, content);
|
|
611
605
|
};
|
|
612
606
|
var IconPlaceholder_default = FixedSizeContainer_default(IconPlaceholder);
|
|
613
607
|
|
|
@@ -617,11 +611,17 @@ var withPlaceholder = (Visualization, useIconPlaceholder = shouldShowIconPlaceho
|
|
|
617
611
|
const { themes } = config;
|
|
618
612
|
const Wrapper = (props) => {
|
|
619
613
|
var _a, _b;
|
|
620
|
-
const {
|
|
614
|
+
const {
|
|
615
|
+
dataSources,
|
|
616
|
+
loading,
|
|
617
|
+
options,
|
|
618
|
+
height = SplunkVisualization_default.defaults.height,
|
|
619
|
+
width = SplunkVisualization_default.defaults.width
|
|
620
|
+
} = props;
|
|
621
621
|
const showPlaceholder = useIconPlaceholder(dataSources, loading, options);
|
|
622
|
-
const
|
|
623
|
-
const icon = (_b = config.placeholderIcon) != null ? _b : config.icon;
|
|
622
|
+
const icon = (_a = config.placeholderIcon) != null ? _a : config.icon;
|
|
624
623
|
const iconColor = variables_default.contentColorActive(props);
|
|
624
|
+
const bgColorFromTheme = (0, colorUtils_exports.isColor)(options == null ? void 0 : options.backgroundColor) ? options == null ? void 0 : options.backgroundColor : (_b = themes == null ? void 0 : themes.defaultBackgroundColor) == null ? void 0 : _b.call(themes, props);
|
|
625
625
|
if (config.supports.includes("placeholder" /* PLACEHOLDER */) && showPlaceholder) {
|
|
626
626
|
return /* @__PURE__ */ react_exports.createElement(
|
|
627
627
|
IconPlaceholder_default,
|
|
@@ -1063,6 +1063,382 @@ var turnOffLegendDisplayWhenTrellisIsOn = (isTrellisOn, options) => {
|
|
|
1063
1063
|
return {};
|
|
1064
1064
|
};
|
|
1065
1065
|
|
|
1066
|
+
// esm-externals:@splunk/visualization-canvas
|
|
1067
|
+
var visualization_canvas_exports = {};
|
|
1068
|
+
__export(visualization_canvas_exports, {
|
|
1069
|
+
default: () => visualization_canvas_default
|
|
1070
|
+
});
|
|
1071
|
+
var defaultImport24 = __toESM(require("@splunk/visualization-canvas"));
|
|
1072
|
+
__reExport(visualization_canvas_exports, require("@splunk/visualization-canvas"));
|
|
1073
|
+
var visualization_canvas_default = "default" in defaultImport24 ? defaultImport24.default : defaultImport24;
|
|
1074
|
+
|
|
1075
|
+
// src/common/components/VizStyleWrapper.jsx
|
|
1076
|
+
var VizStyleWrapper = styled_components_default.div.attrs(({ dataTestKey }) => ({
|
|
1077
|
+
"data-test": dataTestKey,
|
|
1078
|
+
"data-testid": dataTestKey
|
|
1079
|
+
}))`
|
|
1080
|
+
display: flex;
|
|
1081
|
+
justify-content: center;
|
|
1082
|
+
flex-direction: column;
|
|
1083
|
+
width: 100%;
|
|
1084
|
+
height: 100%;
|
|
1085
|
+
background-color: ${(props) => props.backgroundColor};
|
|
1086
|
+
`;
|
|
1087
|
+
VizStyleWrapper.displayName = "VizStyleWrapper";
|
|
1088
|
+
var VizStyleWrapper_default = VizStyleWrapper;
|
|
1089
|
+
|
|
1090
|
+
// esm-externals:@splunk/react-icons/Triangle
|
|
1091
|
+
var Triangle_exports = {};
|
|
1092
|
+
__export(Triangle_exports, {
|
|
1093
|
+
default: () => Triangle_default
|
|
1094
|
+
});
|
|
1095
|
+
var defaultImport25 = __toESM(require("@splunk/react-icons/Triangle"));
|
|
1096
|
+
__reExport(Triangle_exports, require("@splunk/react-icons/Triangle"));
|
|
1097
|
+
var Triangle_default = "default" in defaultImport25 ? defaultImport25.default : defaultImport25;
|
|
1098
|
+
|
|
1099
|
+
// src/common/chartingUtils.ts
|
|
1100
|
+
var DEFAULT_LINE_WIDTH = 2;
|
|
1101
|
+
var getAnnotationsForCanvas = ({
|
|
1102
|
+
annotationX,
|
|
1103
|
+
annotationColor,
|
|
1104
|
+
annotationLabel
|
|
1105
|
+
}) => (annotationX == null ? void 0 : annotationX.length) ? annotationX.map((timestamp, i) => ({
|
|
1106
|
+
key: annotationLabel == null ? void 0 : annotationLabel[i],
|
|
1107
|
+
time: timestamp,
|
|
1108
|
+
color: annotationColor == null ? void 0 : annotationColor[i]
|
|
1109
|
+
})) : [];
|
|
1110
|
+
var StyledTriangle = styled_components_default(Triangle_default)`
|
|
1111
|
+
color: ${(props) => props.eventColor || variables_default.severityColorNotice(props)};
|
|
1112
|
+
`;
|
|
1113
|
+
var triangleEventAnnotationRenderer = ({ event }) => {
|
|
1114
|
+
const eventWithColor = event;
|
|
1115
|
+
return react_default.createElement(StyledTriangle, {
|
|
1116
|
+
viewBox: "0 0 24 24",
|
|
1117
|
+
variant: "filled",
|
|
1118
|
+
eventColor: eventWithColor.color
|
|
1119
|
+
});
|
|
1120
|
+
};
|
|
1121
|
+
var canvasSupportedTimeSeriesCharts = ["splunk.line"];
|
|
1122
|
+
var isTimeSeriesCanvasRenderSupported = (vizConfigKey) => {
|
|
1123
|
+
return canvasSupportedTimeSeriesCharts.indexOf(vizConfigKey) > -1;
|
|
1124
|
+
};
|
|
1125
|
+
var filterChartDataFromInternalFields = (chartData) => {
|
|
1126
|
+
const { fields, columns } = chartData;
|
|
1127
|
+
const keepIndexes = fields.reduce((acc, field, index) => {
|
|
1128
|
+
const fieldName = typeof field === "object" ? field == null ? void 0 : field.name : field;
|
|
1129
|
+
if (!(fieldName == null ? void 0 : fieldName.startsWith("_")) || fieldName === "_time") {
|
|
1130
|
+
acc.push(index);
|
|
1131
|
+
}
|
|
1132
|
+
return acc;
|
|
1133
|
+
}, []);
|
|
1134
|
+
const filteredFields = keepIndexes.map((index) => fields[index]);
|
|
1135
|
+
const filteredColumns = keepIndexes.map((index) => columns[index]);
|
|
1136
|
+
return { fields: filteredFields, columns: filteredColumns };
|
|
1137
|
+
};
|
|
1138
|
+
var convert2DArrayToNumbers = (arr) => {
|
|
1139
|
+
return arr.map((subArray) => subArray.map((element) => parseFloat(element)));
|
|
1140
|
+
};
|
|
1141
|
+
var SideLegendWidth = 75;
|
|
1142
|
+
var commonLegendProps = { center: true, fontSize: 12, largerTiles: true, hideSeriesValue: true };
|
|
1143
|
+
var getLegend = (props) => {
|
|
1144
|
+
const legendPlacement = props == null ? void 0 : props.legendDisplay;
|
|
1145
|
+
switch (legendPlacement) {
|
|
1146
|
+
case "off":
|
|
1147
|
+
return false;
|
|
1148
|
+
case "left":
|
|
1149
|
+
return (0, visualization_canvas_exports.LeftLegendFactory)(__spreadValues({
|
|
1150
|
+
width: SideLegendWidth
|
|
1151
|
+
}, commonLegendProps));
|
|
1152
|
+
case "bottom":
|
|
1153
|
+
return (0, visualization_canvas_exports.BottomLegendFactory)(__spreadValues({
|
|
1154
|
+
wrap: true
|
|
1155
|
+
}, commonLegendProps));
|
|
1156
|
+
case "top":
|
|
1157
|
+
return (0, visualization_canvas_exports.TopLegendFactory)(__spreadValues({
|
|
1158
|
+
wrap: true
|
|
1159
|
+
}, commonLegendProps));
|
|
1160
|
+
default:
|
|
1161
|
+
return (0, visualization_canvas_exports.SideLegendFactory)(__spreadValues({
|
|
1162
|
+
width: SideLegendWidth
|
|
1163
|
+
}, commonLegendProps));
|
|
1164
|
+
}
|
|
1165
|
+
};
|
|
1166
|
+
var getComputedAxisTitles = (inputAxisTitle, fields, axisTitleVisibility) => {
|
|
1167
|
+
if (axisTitleVisibility === "collapsed") {
|
|
1168
|
+
return "";
|
|
1169
|
+
}
|
|
1170
|
+
let fieldTitle = fields.length > 1 ? "" : fields[0];
|
|
1171
|
+
if (!fieldTitle) {
|
|
1172
|
+
fieldTitle = "";
|
|
1173
|
+
}
|
|
1174
|
+
return (inputAxisTitle == null ? void 0 : inputAxisTitle.length) ? inputAxisTitle.trim() : fieldTitle;
|
|
1175
|
+
};
|
|
1176
|
+
var ellipsisAxisTitle = (axisTitle, containerSpacing, fontSize = 12) => {
|
|
1177
|
+
if (!axisTitle) {
|
|
1178
|
+
return "";
|
|
1179
|
+
}
|
|
1180
|
+
if (Number.isNaN(containerSpacing) || containerSpacing <= 0) {
|
|
1181
|
+
return axisTitle;
|
|
1182
|
+
}
|
|
1183
|
+
const availableHeight = containerSpacing * 0.6;
|
|
1184
|
+
const avgCharWidth = fontSize * 0.55;
|
|
1185
|
+
const maxChars = Math.floor(availableHeight / avgCharWidth);
|
|
1186
|
+
if (axisTitle.length <= maxChars) {
|
|
1187
|
+
return axisTitle;
|
|
1188
|
+
}
|
|
1189
|
+
if (maxChars <= 3) {
|
|
1190
|
+
return "...";
|
|
1191
|
+
}
|
|
1192
|
+
const availableChars = maxChars - 3;
|
|
1193
|
+
const halfChars = Math.floor(availableChars / 2);
|
|
1194
|
+
const start = axisTitle.slice(0, halfChars);
|
|
1195
|
+
const end = axisTitle.slice(-halfChars);
|
|
1196
|
+
return `${start}...${end}`;
|
|
1197
|
+
};
|
|
1198
|
+
var getFieldName = (field) => {
|
|
1199
|
+
const fieldName = typeof field === "object" ? field == null ? void 0 : field.name : field;
|
|
1200
|
+
return fieldName;
|
|
1201
|
+
};
|
|
1202
|
+
var getFieldNames = (fields) => {
|
|
1203
|
+
return fields.map((field) => getFieldName(field));
|
|
1204
|
+
};
|
|
1205
|
+
var getXScaleConfig = (label) => {
|
|
1206
|
+
const xConfig = { x: {} };
|
|
1207
|
+
xConfig.x.label = label;
|
|
1208
|
+
return xConfig;
|
|
1209
|
+
};
|
|
1210
|
+
var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale) => {
|
|
1211
|
+
const scaleType = yAxisScale != null ? yAxisScale : "linear";
|
|
1212
|
+
const yConfig = { y: {} };
|
|
1213
|
+
yConfig.y.label = label;
|
|
1214
|
+
yConfig.y.type = scaleType;
|
|
1215
|
+
if (yAxisAbbreviation !== "none") {
|
|
1216
|
+
yConfig.y.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1);
|
|
1217
|
+
}
|
|
1218
|
+
if (yAxisAbbreviation === "none") {
|
|
1219
|
+
yConfig.y.width = 55;
|
|
1220
|
+
} else {
|
|
1221
|
+
yConfig.y.width = label && label.length > 0 ? 30 : 10;
|
|
1222
|
+
}
|
|
1223
|
+
return yConfig;
|
|
1224
|
+
};
|
|
1225
|
+
var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInteger) => {
|
|
1226
|
+
const y2Config = { y2: {} };
|
|
1227
|
+
const scaleType = axisScale != null ? axisScale : "linear";
|
|
1228
|
+
y2Config.y2.label = label;
|
|
1229
|
+
y2Config.y2.side = "right";
|
|
1230
|
+
y2Config.y2.showGrid = false;
|
|
1231
|
+
y2Config.y2.type = scaleType;
|
|
1232
|
+
if (axisAbbreviation !== "none") {
|
|
1233
|
+
y2Config.y2.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1, roundAxisLabelsToInteger);
|
|
1234
|
+
} else if (roundAxisLabelsToInteger) {
|
|
1235
|
+
y2Config.y2.tickFmt = (v) => roundAxisLabelsToInteger ? Math.round(v).toString() : v.toString();
|
|
1236
|
+
}
|
|
1237
|
+
return y2Config;
|
|
1238
|
+
};
|
|
1239
|
+
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode) => {
|
|
1240
|
+
const seriesConfig = {};
|
|
1241
|
+
let spanGaps;
|
|
1242
|
+
let replaceNullsWithZero;
|
|
1243
|
+
if (nullValueMode === "gaps") {
|
|
1244
|
+
spanGaps = false;
|
|
1245
|
+
} else if (nullValueMode === "connect" || nullValueMode === "zero") {
|
|
1246
|
+
spanGaps = true;
|
|
1247
|
+
if (nullValueMode === "zero") {
|
|
1248
|
+
replaceNullsWithZero = true;
|
|
1249
|
+
}
|
|
1250
|
+
}
|
|
1251
|
+
yfields.forEach((field) => {
|
|
1252
|
+
seriesConfig[field] = {
|
|
1253
|
+
overrides: { width: lineWidth != null ? lineWidth : DEFAULT_LINE_WIDTH }
|
|
1254
|
+
};
|
|
1255
|
+
if (spanGaps !== void 0) {
|
|
1256
|
+
seriesConfig[field].overrides.spanGaps = spanGaps;
|
|
1257
|
+
}
|
|
1258
|
+
if (y2Enabled) {
|
|
1259
|
+
const shouldAssignToY2 = (
|
|
1260
|
+
// If y2Fields are present, assign all y2Fields to y2 scale
|
|
1261
|
+
(y2fields == null ? void 0 : y2fields.length) > 0 && y2fields.includes(field) || // Else, assign all overlayFields to y2 scale
|
|
1262
|
+
(!y2fields || y2fields.length === 0) && (overlayFields == null ? void 0 : overlayFields.includes(field))
|
|
1263
|
+
);
|
|
1264
|
+
if (shouldAssignToY2) {
|
|
1265
|
+
seriesConfig[field].overrides.scale = "y2";
|
|
1266
|
+
}
|
|
1267
|
+
}
|
|
1268
|
+
if (overlayFields == null ? void 0 : overlayFields.includes(field)) {
|
|
1269
|
+
seriesConfig[field].type = "line";
|
|
1270
|
+
}
|
|
1271
|
+
if (replaceNullsWithZero !== void 0) {
|
|
1272
|
+
seriesConfig[field].replaceNullsWithZero = replaceNullsWithZero;
|
|
1273
|
+
}
|
|
1274
|
+
});
|
|
1275
|
+
return seriesConfig;
|
|
1276
|
+
};
|
|
1277
|
+
|
|
1278
|
+
// src/common/TimeSeriesChartWrapper.tsx
|
|
1279
|
+
var TimeSeriesChartContainer = styled_components_default.div`
|
|
1280
|
+
overflow: hidden;
|
|
1281
|
+
${(props) => (0, style_exports.toDimension)((0, lodash_exports.pick)(props, ["width", "height"]))};
|
|
1282
|
+
|
|
1283
|
+
canvas {
|
|
1284
|
+
position: absolute !important; // This is needed for canvas element export pdf/png to work correctly
|
|
1285
|
+
}
|
|
1286
|
+
`;
|
|
1287
|
+
var handleClick = (chartEvent, props) => {
|
|
1288
|
+
const payload = __spreadProps(__spreadValues({}, (0, lodash_exports.pick)(chartEvent, "value", "seriesKey")), {
|
|
1289
|
+
name: chartEvent.seriesKey
|
|
1290
|
+
});
|
|
1291
|
+
delete payload.seriesKey;
|
|
1292
|
+
const clickHandler = props == null ? void 0 : props.onClick;
|
|
1293
|
+
if (clickHandler) {
|
|
1294
|
+
clickHandler({
|
|
1295
|
+
type: "point.click",
|
|
1296
|
+
originalEvent: chartEvent,
|
|
1297
|
+
payload
|
|
1298
|
+
});
|
|
1299
|
+
}
|
|
1300
|
+
};
|
|
1301
|
+
var handleLegendClick = (chartEvent, props) => {
|
|
1302
|
+
const payload = {
|
|
1303
|
+
name: chartEvent
|
|
1304
|
+
};
|
|
1305
|
+
const clickHandler = props == null ? void 0 : props.onClick;
|
|
1306
|
+
if (clickHandler) {
|
|
1307
|
+
clickHandler({
|
|
1308
|
+
type: "legend.click",
|
|
1309
|
+
originalEvent: chartEvent,
|
|
1310
|
+
payload
|
|
1311
|
+
});
|
|
1312
|
+
}
|
|
1313
|
+
};
|
|
1314
|
+
var TimeSeriesChartWrapper = (props) => {
|
|
1315
|
+
const { width, height, chartData, options, userLocale, annotationX, annotationLabel, annotationColor } = props;
|
|
1316
|
+
const {
|
|
1317
|
+
backgroundColor,
|
|
1318
|
+
seriesColors: seriesColorsStr,
|
|
1319
|
+
fieldColors,
|
|
1320
|
+
"axisTitleX.text": xAxisTitleText,
|
|
1321
|
+
"axisTitleY.text": yAxisTitleText,
|
|
1322
|
+
"axisTitleY2.text": y2AxisTitleText,
|
|
1323
|
+
"axisTitleX.visibility": xAxisTitleVisibility,
|
|
1324
|
+
"axisTitleY.visibility": yAxisTitleVisibility,
|
|
1325
|
+
"axisTitleY2.visibility": y2AxisTitleVisibility,
|
|
1326
|
+
"axisY.abbreviation": yAxisAbbreviation,
|
|
1327
|
+
"axisY.scale": yAxisScale,
|
|
1328
|
+
"axisY2.abbreviation": y2AxisAbbreviation,
|
|
1329
|
+
"axisY2.fields": y2FieldsStr,
|
|
1330
|
+
"axisY2.scale": y2AxisScale,
|
|
1331
|
+
"axisY2.enabled": y2Enabled,
|
|
1332
|
+
"axisLabelsY2.integerUnits": y2IntegerUnits,
|
|
1333
|
+
"chart.overlayFields": overlayFieldsStr,
|
|
1334
|
+
"chart.nullValueMode": nullValueMode,
|
|
1335
|
+
lineWidth
|
|
1336
|
+
} = options;
|
|
1337
|
+
const seriesColors = seriesColorsStr ? JSON.parse(seriesColorsStr) : void 0;
|
|
1338
|
+
const seriesColorsByField = fieldColors ? JSON.parse(fieldColors) : void 0;
|
|
1339
|
+
const [containerWidth, setContainerWidth] = react_exports.useState(Number(props.width));
|
|
1340
|
+
const [containerHeight, setContainerHeight] = react_exports.useState(Number(props.height));
|
|
1341
|
+
const cachedHandleResize = react_exports.useCallback((w, h) => {
|
|
1342
|
+
setContainerWidth(w);
|
|
1343
|
+
setContainerHeight(h);
|
|
1344
|
+
}, []);
|
|
1345
|
+
const filteredChartData = filterChartDataFromInternalFields({
|
|
1346
|
+
fields: chartData.fields,
|
|
1347
|
+
columns: chartData.seriesList
|
|
1348
|
+
});
|
|
1349
|
+
const xField = getFieldName(filteredChartData.fields[0]);
|
|
1350
|
+
const yFields = getFieldNames(
|
|
1351
|
+
filteredChartData.fields.length > 1 ? filteredChartData.fields.slice(1) : []
|
|
1352
|
+
);
|
|
1353
|
+
const y2Fields = y2FieldsStr ? y2FieldsStr.split(",").map((f) => f.trim()) : [];
|
|
1354
|
+
const overlayFields = overlayFieldsStr ? overlayFieldsStr.split(",").map((f) => f.trim()) : [];
|
|
1355
|
+
let xAxisTitle = getComputedAxisTitles(xAxisTitleText, [xField], xAxisTitleVisibility);
|
|
1356
|
+
xAxisTitle = ellipsisAxisTitle(xAxisTitle, containerWidth);
|
|
1357
|
+
let yAxisTitle = getComputedAxisTitles(yAxisTitleText, yFields, yAxisTitleVisibility);
|
|
1358
|
+
yAxisTitle = ellipsisAxisTitle(yAxisTitle, containerHeight);
|
|
1359
|
+
const fieldsForY2Axis = y2Fields.length > 0 ? y2Fields : overlayFields;
|
|
1360
|
+
let y2AxisTitle = getComputedAxisTitles(y2AxisTitleText, fieldsForY2Axis, y2AxisTitleVisibility);
|
|
1361
|
+
y2AxisTitle = ellipsisAxisTitle(y2AxisTitle, containerHeight);
|
|
1362
|
+
const xScaleConfig = getXScaleConfig(xAxisTitle);
|
|
1363
|
+
const yScaleConfig = getYScaleConfig(yAxisTitle, yAxisAbbreviation, yAxisScale);
|
|
1364
|
+
let y2ScaleConfig = {};
|
|
1365
|
+
if (y2Enabled) {
|
|
1366
|
+
y2ScaleConfig = getY2ScaleConfig(y2AxisTitle, y2AxisAbbreviation, y2AxisScale, y2IntegerUnits);
|
|
1367
|
+
}
|
|
1368
|
+
const uplotContainerElement = (0, react_exports.useRef)(null);
|
|
1369
|
+
const seriesDataFormatted = [
|
|
1370
|
+
filteredChartData.columns[0],
|
|
1371
|
+
...convert2DArrayToNumbers(filteredChartData.columns.slice(1))
|
|
1372
|
+
];
|
|
1373
|
+
chartData.fields = filteredChartData.fields;
|
|
1374
|
+
chartData.columns = seriesDataFormatted;
|
|
1375
|
+
const seriesOverrides = getSeriesOverrides(
|
|
1376
|
+
yFields,
|
|
1377
|
+
y2Fields,
|
|
1378
|
+
lineWidth,
|
|
1379
|
+
overlayFields,
|
|
1380
|
+
y2Enabled,
|
|
1381
|
+
nullValueMode
|
|
1382
|
+
);
|
|
1383
|
+
const chartingEventAnnotations = getAnnotationsForCanvas({
|
|
1384
|
+
annotationX,
|
|
1385
|
+
annotationColor,
|
|
1386
|
+
annotationLabel
|
|
1387
|
+
});
|
|
1388
|
+
const MemoizedChart = react_exports.memo(visualization_canvas_exports.TimeSeriesChart);
|
|
1389
|
+
const scaleConfig = __spreadValues(__spreadValues(__spreadValues({}, xScaleConfig), yScaleConfig), y2ScaleConfig);
|
|
1390
|
+
const memoizedChart = (0, react_exports.useMemo)(
|
|
1391
|
+
() => /* @__PURE__ */ react_exports.createElement(
|
|
1392
|
+
MemoizedChart,
|
|
1393
|
+
{
|
|
1394
|
+
data: chartData,
|
|
1395
|
+
width: containerWidth,
|
|
1396
|
+
height: containerHeight,
|
|
1397
|
+
seriesColors,
|
|
1398
|
+
seriesColorsByField,
|
|
1399
|
+
seriesConfig: seriesOverrides,
|
|
1400
|
+
legend: getLegend(props),
|
|
1401
|
+
scaleConfig,
|
|
1402
|
+
timestampFormat: "expanded",
|
|
1403
|
+
onCrosshairClick: (event) => handleClick(event, props),
|
|
1404
|
+
onSeriesClick: (event) => handleLegendClick(event, props),
|
|
1405
|
+
userLocale,
|
|
1406
|
+
events: chartingEventAnnotations,
|
|
1407
|
+
eventsConfig: { renderer: triangleEventAnnotationRenderer }
|
|
1408
|
+
}
|
|
1409
|
+
),
|
|
1410
|
+
[
|
|
1411
|
+
MemoizedChart,
|
|
1412
|
+
chartData,
|
|
1413
|
+
containerWidth,
|
|
1414
|
+
containerHeight,
|
|
1415
|
+
seriesColors,
|
|
1416
|
+
seriesColorsByField,
|
|
1417
|
+
seriesOverrides,
|
|
1418
|
+
lineWidth,
|
|
1419
|
+
props,
|
|
1420
|
+
scaleConfig,
|
|
1421
|
+
userLocale,
|
|
1422
|
+
chartingEventAnnotations
|
|
1423
|
+
]
|
|
1424
|
+
);
|
|
1425
|
+
const memoizedVisualization = (0, react_exports.useMemo)(() => {
|
|
1426
|
+
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor }, memoizedChart);
|
|
1427
|
+
}, [backgroundColor]);
|
|
1428
|
+
return /* @__PURE__ */ react_exports.createElement(
|
|
1429
|
+
TimeSeriesChartContainer,
|
|
1430
|
+
{
|
|
1431
|
+
height,
|
|
1432
|
+
width,
|
|
1433
|
+
ref: uplotContainerElement,
|
|
1434
|
+
"data-test": "timeseries-chart-wrapper"
|
|
1435
|
+
},
|
|
1436
|
+
/* @__PURE__ */ react_exports.createElement(SizeAwareWrapper_default, { width, height, onResize: cachedHandleResize }),
|
|
1437
|
+
memoizedVisualization
|
|
1438
|
+
);
|
|
1439
|
+
};
|
|
1440
|
+
var TimeSeriesChartWrapper_default = TimeSeriesChartWrapper;
|
|
1441
|
+
|
|
1066
1442
|
// src/common/withDashboardViz.tsx
|
|
1067
1443
|
var withDashboardViz = (opts) => {
|
|
1068
1444
|
const {
|
|
@@ -1080,30 +1456,29 @@ var withDashboardViz = (opts) => {
|
|
|
1080
1456
|
const DashboardViz = (props) => {
|
|
1081
1457
|
var _a;
|
|
1082
1458
|
const {
|
|
1083
|
-
mode,
|
|
1459
|
+
mode = "view",
|
|
1084
1460
|
hasEventHandlers,
|
|
1085
1461
|
dataSources,
|
|
1086
1462
|
// type of { [key: string]: DataSource }
|
|
1087
|
-
options,
|
|
1463
|
+
options = {},
|
|
1088
1464
|
context = {},
|
|
1089
1465
|
width,
|
|
1090
1466
|
height,
|
|
1091
|
-
onComputedProps,
|
|
1092
|
-
onEventTrigger,
|
|
1467
|
+
onComputedProps = lodash_exports.noop,
|
|
1468
|
+
onEventTrigger = SplunkVisualization_default.defaults.onEventTrigger,
|
|
1093
1469
|
theme,
|
|
1094
|
-
onRequestParamsChange
|
|
1470
|
+
onRequestParamsChange = lodash_exports.noop
|
|
1095
1471
|
} = props;
|
|
1096
|
-
const
|
|
1097
|
-
if (serializedTimezone) {
|
|
1472
|
+
const localeContext = react_exports.useContext(TimezoneContext_default);
|
|
1473
|
+
if (localeContext.serializedTimezone) {
|
|
1098
1474
|
if (!moment_default.getDefaultSplunkTimezone()) {
|
|
1099
|
-
moment_default.setDefaultSplunkTimezone(serializedTimezone);
|
|
1475
|
+
moment_default.setDefaultSplunkTimezone(localeContext.serializedTimezone);
|
|
1100
1476
|
}
|
|
1101
1477
|
}
|
|
1102
1478
|
const themeFunc = (themeVar) => {
|
|
1103
1479
|
var _a2, _b;
|
|
1104
1480
|
return (_b = (_a2 = vizConfig.themes)[themeVar]) == null ? void 0 : _b.call(_a2, props);
|
|
1105
1481
|
};
|
|
1106
|
-
const bgColorFromTheme = themeFunc("defaultBackgroundColor");
|
|
1107
1482
|
const {
|
|
1108
1483
|
family: currentThemeFamily,
|
|
1109
1484
|
colorScheme: currentThemeColorScheme,
|
|
@@ -1125,6 +1500,10 @@ var withDashboardViz = (opts) => {
|
|
|
1125
1500
|
featureFlagContext && featureFlagContext.visualizations_enableTrellis
|
|
1126
1501
|
);
|
|
1127
1502
|
const isTrellisOn = isTrellisFeatureFlagOn && ((_a = vizConfig == null ? void 0 : vizConfig.supports) == null ? void 0 : _a.includes("trellis" /* TRELLIS */)) && (options == null ? void 0 : options.splitByLayout) === "trellis" /* TRELLIS */;
|
|
1503
|
+
const isAcceleratedRenderFeatureFlagOn = Boolean(
|
|
1504
|
+
featureFlagContext == null ? void 0 : featureFlagContext.visualizations_enableAcceleratedRender
|
|
1505
|
+
);
|
|
1506
|
+
const isAcceleratedRenderOn = isAcceleratedRenderFeatureFlagOn && isTimeSeriesCanvasRenderSupported(vizConfig.key) && (options == null ? void 0 : options.acceleratedRender) === true;
|
|
1128
1507
|
const isMounted = react_exports.useRef(true);
|
|
1129
1508
|
const optionsToEvaluate = react_exports.useMemo(() => {
|
|
1130
1509
|
var _a2;
|
|
@@ -1219,10 +1598,34 @@ var withDashboardViz = (opts) => {
|
|
|
1219
1598
|
currentThemeDensity,
|
|
1220
1599
|
optionsToEvaluate,
|
|
1221
1600
|
downsampledDataSources,
|
|
1222
|
-
serializedTimezone,
|
|
1601
|
+
localeContext.serializedTimezone,
|
|
1223
1602
|
useAsyncEvaluatedOptions
|
|
1224
1603
|
]);
|
|
1225
1604
|
const evaluatedOptionsToUse = !useAsyncEvaluatedOptions ? evaluatedOptions : evaluatedOptionsAsync;
|
|
1605
|
+
let dataSourceMetadata = {};
|
|
1606
|
+
const OptionKey = "paginateDataSourceKey";
|
|
1607
|
+
const optsKey = (0, lodash_exports.has)(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey];
|
|
1608
|
+
const paginateDataSourceKey = typeof optsKey === "string" ? optsKey : "primary";
|
|
1609
|
+
const requestParams = (0, lodash_exports.get)(dataSources, [paginateDataSourceKey, "requestParams"], {});
|
|
1610
|
+
const meta = (0, lodash_exports.get)(dataSources, [paginateDataSourceKey, "meta"], {});
|
|
1611
|
+
const handleRequestParamsChange = (payload) => onRequestParamsChange(paginateDataSourceKey, payload);
|
|
1612
|
+
const sortParams = useSortingParams({
|
|
1613
|
+
requestParams,
|
|
1614
|
+
meta,
|
|
1615
|
+
onRequestParamsChange: handleRequestParamsChange
|
|
1616
|
+
});
|
|
1617
|
+
const paginatorParams = usePaginationParams({
|
|
1618
|
+
requestParams,
|
|
1619
|
+
meta,
|
|
1620
|
+
onRequestParamsChange: handleRequestParamsChange
|
|
1621
|
+
});
|
|
1622
|
+
dataSourceMetadata = {
|
|
1623
|
+
sortParams,
|
|
1624
|
+
paginatorParams
|
|
1625
|
+
};
|
|
1626
|
+
if (vizConfig.supports.indexOf("page-and-sort" /* PAGE_AND_SORT */) === -1 && !(0, lodash_exports.has)(dataSources, paginateDataSourceKey)) {
|
|
1627
|
+
dataSourceMetadata = {};
|
|
1628
|
+
}
|
|
1226
1629
|
const clonedEvaluatedOptions = __spreadValues({}, evaluatedOptionsToUse);
|
|
1227
1630
|
if (isTrellisOn) {
|
|
1228
1631
|
clonedEvaluatedOptions.backgroundColor = clonedEvaluatedOptions == null ? void 0 : clonedEvaluatedOptions.trellisBackgroundColor;
|
|
@@ -1248,7 +1651,7 @@ var withDashboardViz = (opts) => {
|
|
|
1248
1651
|
width,
|
|
1249
1652
|
height,
|
|
1250
1653
|
missingProps: missing,
|
|
1251
|
-
backgroundColor:
|
|
1654
|
+
backgroundColor: themeFunc("defaultBackgroundColor")
|
|
1252
1655
|
}
|
|
1253
1656
|
);
|
|
1254
1657
|
}
|
|
@@ -1286,45 +1689,27 @@ var withDashboardViz = (opts) => {
|
|
|
1286
1689
|
const computedVizProps = computeVizProps(__spreadProps(__spreadValues(__spreadValues(__spreadValues({}, props), evaluatedOptionsToUse), eventCallbackProps), {
|
|
1287
1690
|
themeFunc
|
|
1288
1691
|
}));
|
|
1289
|
-
let dataSourceMetadata = {};
|
|
1290
|
-
const OptionKey = "paginateDataSourceKey";
|
|
1291
|
-
const optsKey = (0, lodash_exports.has)(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey];
|
|
1292
|
-
const paginateDataSourceKey = typeof optsKey === "string" ? optsKey : "primary";
|
|
1293
|
-
if (vizConfig.supports.indexOf("page-and-sort" /* PAGE_AND_SORT */) > -1 && (0, lodash_exports.has)(dataSources, paginateDataSourceKey)) {
|
|
1294
|
-
const requestParams = (0, lodash_exports.get)(dataSources, [paginateDataSourceKey, "requestParams"], {});
|
|
1295
|
-
const meta = (0, lodash_exports.get)(dataSources, [paginateDataSourceKey, "meta"], {});
|
|
1296
|
-
const handleRequestParamsChange = (payload) => onRequestParamsChange(paginateDataSourceKey, payload);
|
|
1297
|
-
const sortParams = getSortingParams({
|
|
1298
|
-
requestParams,
|
|
1299
|
-
meta,
|
|
1300
|
-
onRequestParamsChange: handleRequestParamsChange
|
|
1301
|
-
});
|
|
1302
|
-
const paginatorParams = getPaginationParams({
|
|
1303
|
-
requestParams,
|
|
1304
|
-
meta,
|
|
1305
|
-
onRequestParamsChange: handleRequestParamsChange
|
|
1306
|
-
});
|
|
1307
|
-
dataSourceMetadata = {
|
|
1308
|
-
sortParams,
|
|
1309
|
-
paginatorParams
|
|
1310
|
-
};
|
|
1311
|
-
}
|
|
1312
1692
|
if (useAsyncEvaluatedOptions && Object.keys(evaluatedOptionsToUse).length === 0) {
|
|
1313
1693
|
return null;
|
|
1314
1694
|
}
|
|
1695
|
+
let SanitizedViz = SanitizedReactViz;
|
|
1696
|
+
if (isAcceleratedRenderOn) {
|
|
1697
|
+
SanitizedViz = (0, SanitizeProps_exports.withSanitizedProps)(TimeSeriesChartWrapper_default);
|
|
1698
|
+
}
|
|
1315
1699
|
return /* @__PURE__ */ react_exports.createElement(
|
|
1316
|
-
|
|
1317
|
-
__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
1700
|
+
SanitizedViz,
|
|
1701
|
+
__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues({}, SplunkVisualization_default.defaults), {
|
|
1318
1702
|
mode,
|
|
1319
|
-
width,
|
|
1320
|
-
height
|
|
1321
|
-
|
|
1703
|
+
width: width || SplunkVisualization_default.defaults.width,
|
|
1704
|
+
height: height || SplunkVisualization_default.defaults.height,
|
|
1705
|
+
userLocale: localeContext
|
|
1706
|
+
}), downsamplingProps), evaluatedOptionsToUse), computedVizProps), eventCallbackProps), dataSourceMetadata)
|
|
1322
1707
|
);
|
|
1323
1708
|
};
|
|
1324
1709
|
DashboardViz.propTypes = __spreadValues(__spreadValues({}, SplunkVisualization_default.propTypes), ReactViz.propTypes);
|
|
1325
|
-
DashboardViz.defaultProps = __spreadProps(__spreadValues(
|
|
1326
|
-
//
|
|
1327
|
-
|
|
1710
|
+
DashboardViz.defaultProps = __spreadProps(__spreadValues({}, ReactViz.defaultProps), {
|
|
1711
|
+
// we still need ReactViz.defaultProps for the visualizations that still have them
|
|
1712
|
+
onEventTrigger: SplunkVisualization_default.defaults.onEventTrigger
|
|
1328
1713
|
});
|
|
1329
1714
|
DashboardViz.config = vizConfig;
|
|
1330
1715
|
return (0, styled_components_exports.withTheme)(
|