@splunk/visualizations 28.1.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 +721 -354
- package/Area.js.map +4 -4
- package/Bar.config.js +27 -0
- package/Bar.config.js.map +2 -2
- package/Bar.js +753 -386
- package/Bar.js.map +4 -4
- package/Bubble.config.js +27 -0
- package/Bubble.config.js.map +2 -2
- package/Bubble.js +683 -320
- package/Bubble.js.map +4 -4
- package/CHANGELOG.external.md +33 -0
- package/ChoroplethSvg.js +569 -193
- package/ChoroplethSvg.js.map +4 -4
- package/Column.config.js +27 -0
- package/Column.config.js.map +2 -2
- package/Column.js +768 -401
- package/Column.js.map +4 -4
- package/Ellipse.js +592 -213
- package/Ellipse.js.map +4 -4
- package/Events.js +591 -200
- package/Events.js.map +4 -4
- package/FEATUREFLAGS.md +1 -0
- package/FillerGauge.js +564 -190
- package/FillerGauge.js.map +4 -4
- package/Image.js +589 -216
- package/Image.js.map +4 -4
- package/Line.config.js +28 -1
- package/Line.config.js.map +2 -2
- package/Line.js +736 -369
- package/Line.js.map +4 -4
- package/LinkGraph.js +1093 -690
- package/LinkGraph.js.map +4 -4
- package/Map.config.js +2 -0
- package/Map.config.js.map +2 -2
- package/Map.js +533 -141
- package/Map.js.map +4 -4
- package/Markdown.js +613 -229
- package/Markdown.js.map +4 -4
- package/MarkerGauge.js +543 -168
- package/MarkerGauge.js.map +4 -4
- package/ParallelCoordinates.js +564 -173
- package/ParallelCoordinates.js.map +4 -4
- package/Pie.js +650 -315
- package/Pie.js.map +4 -4
- package/Punchcard.js +588 -199
- package/Punchcard.js.map +4 -4
- package/Rectangle.js +603 -223
- package/Rectangle.js.map +4 -4
- package/Sankey.js +576 -200
- package/Sankey.js.map +4 -4
- package/Scatter.config.js +27 -0
- package/Scatter.config.js.map +2 -2
- package/Scatter.js +687 -325
- package/Scatter.js.map +4 -4
- package/SingleValue.js +540 -165
- package/SingleValue.js.map +4 -4
- package/SingleValueIcon.js +534 -159
- package/SingleValueIcon.js.map +4 -4
- package/SingleValueRadial.js +527 -152
- package/SingleValueRadial.js.map +4 -4
- package/Table.config.js +87 -32
- package/Table.config.js.map +4 -4
- package/Table.js +931 -441
- package/Table.js.map +4 -4
- package/Timeline.js +611 -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 +551 -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
package/SingleValueRadial.js
CHANGED
|
@@ -1965,7 +1965,7 @@ SplunkVisualization.propTypes = {
|
|
|
1965
1965
|
/**
|
|
1966
1966
|
*
|
|
1967
1967
|
*/
|
|
1968
|
-
SplunkVisualization.
|
|
1968
|
+
SplunkVisualization.defaults = {
|
|
1969
1969
|
// BaseVisualization in dashboard-visualizations uses 100% for width but 250 for height
|
|
1970
1970
|
width: "100%",
|
|
1971
1971
|
height: INITIAL_HEIGHT,
|
|
@@ -1986,13 +1986,13 @@ var SplunkVisualization_default = SplunkVisualization;
|
|
|
1986
1986
|
// src/common/interfaces/DataSource.ts
|
|
1987
1987
|
var validSortDirs = ["asc", "desc", "none"];
|
|
1988
1988
|
|
|
1989
|
-
// src/common/hooks/
|
|
1989
|
+
// src/common/hooks/useSorting.ts
|
|
1990
1990
|
var SortParamsPropTypes = prop_types_exports.shape({
|
|
1991
1991
|
currentSortKey: prop_types_exports.string,
|
|
1992
1992
|
currentSortDir: prop_types_exports.oneOf(validSortDirs),
|
|
1993
1993
|
onSort: prop_types_exports.func
|
|
1994
1994
|
});
|
|
1995
|
-
var
|
|
1995
|
+
var useSortingParams = ({ requestParams, onRequestParamsChange }) => {
|
|
1996
1996
|
let currentSortKey;
|
|
1997
1997
|
let currentSortDir;
|
|
1998
1998
|
const nextSortDirMap = {
|
|
@@ -2022,14 +2022,14 @@ var getSortingParams = ({ requestParams, onRequestParamsChange }) => {
|
|
|
2022
2022
|
};
|
|
2023
2023
|
};
|
|
2024
2024
|
|
|
2025
|
-
// src/common/hooks/
|
|
2025
|
+
// src/common/hooks/usePagination.ts
|
|
2026
2026
|
var PaginatorParamsPropTypes = prop_types_exports.shape({
|
|
2027
2027
|
isPaging: prop_types_exports.bool,
|
|
2028
2028
|
current: prop_types_exports.number,
|
|
2029
2029
|
totalPages: prop_types_exports.number,
|
|
2030
2030
|
onChange: prop_types_exports.func
|
|
2031
2031
|
});
|
|
2032
|
-
var
|
|
2032
|
+
var usePaginationParams = ({
|
|
2033
2033
|
requestParams,
|
|
2034
2034
|
meta,
|
|
2035
2035
|
onRequestParamsChange
|
|
@@ -2082,6 +2082,76 @@ var defaultImport30 = __toESM(require("@splunk/visualizations-shared/Message"));
|
|
|
2082
2082
|
__reExport(Message_exports, require("@splunk/visualizations-shared/Message"));
|
|
2083
2083
|
var Message_default = "default" in defaultImport30 ? defaultImport30.default : defaultImport30;
|
|
2084
2084
|
|
|
2085
|
+
// src/common/components/MissingPropsMessage.tsx
|
|
2086
|
+
var isMissing = (v) => {
|
|
2087
|
+
return v === null || v === void 0;
|
|
2088
|
+
};
|
|
2089
|
+
var missingKeys = (keys, target) => keys.filter((k) => isMissing(target[k]));
|
|
2090
|
+
var MissingPropsMessage = (props) => {
|
|
2091
|
+
const {
|
|
2092
|
+
width = SplunkVisualization_default.defaults.width,
|
|
2093
|
+
height = SplunkVisualization_default.defaults.height,
|
|
2094
|
+
missingProps,
|
|
2095
|
+
backgroundColor
|
|
2096
|
+
} = props;
|
|
2097
|
+
const cachedHandleResize = react_exports.useCallback((w, h) => {
|
|
2098
|
+
setContainerWidth(w);
|
|
2099
|
+
setContainerHeight(h);
|
|
2100
|
+
}, []);
|
|
2101
|
+
const [containerWidth, setContainerWidth] = react_exports.useState(Number(width));
|
|
2102
|
+
const [containerHeight, setContainerHeight] = react_exports.useState(Number(height));
|
|
2103
|
+
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(
|
|
2104
|
+
Message_default,
|
|
2105
|
+
{
|
|
2106
|
+
"data-test": "message",
|
|
2107
|
+
width,
|
|
2108
|
+
height,
|
|
2109
|
+
message: (0, i18n_exports._)(`Missing property: ${missingProps.join(", ")}`),
|
|
2110
|
+
level: "error"
|
|
2111
|
+
}
|
|
2112
|
+
));
|
|
2113
|
+
};
|
|
2114
|
+
var MissingPropsMessage_default = MissingPropsMessage;
|
|
2115
|
+
|
|
2116
|
+
// src/common/utils/hocUtils.ts
|
|
2117
|
+
var extendStaticWrapperProps = ({
|
|
2118
|
+
Wrapper,
|
|
2119
|
+
Visualization
|
|
2120
|
+
}) => {
|
|
2121
|
+
const extendProperties = ["propTypes", "config"];
|
|
2122
|
+
extendProperties.forEach((prop) => {
|
|
2123
|
+
if (Visualization[prop]) {
|
|
2124
|
+
Wrapper[prop] = Visualization[prop];
|
|
2125
|
+
}
|
|
2126
|
+
});
|
|
2127
|
+
};
|
|
2128
|
+
|
|
2129
|
+
// src/common/hocs/withEditModeCover.tsx
|
|
2130
|
+
var Cover = styled_components_default.div`
|
|
2131
|
+
position: absolute;
|
|
2132
|
+
left: 0;
|
|
2133
|
+
right: 0;
|
|
2134
|
+
top: 0;
|
|
2135
|
+
bottom: 0;
|
|
2136
|
+
`;
|
|
2137
|
+
var Blocker = styled_components_default.div.attrs({
|
|
2138
|
+
"data-splunk-visualization-version": "28.2.0 - 7eea200d8"
|
|
2139
|
+
})`
|
|
2140
|
+
position: relative;
|
|
2141
|
+
width: 100%;
|
|
2142
|
+
height: 100%;
|
|
2143
|
+
`;
|
|
2144
|
+
var withEditModeCover = (Visualization, disableEditModeCover) => {
|
|
2145
|
+
const Wrapper = (props) => {
|
|
2146
|
+
const { mode } = props;
|
|
2147
|
+
const showEditCover = mode === "edit" && !disableEditModeCover;
|
|
2148
|
+
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" }));
|
|
2149
|
+
};
|
|
2150
|
+
extendStaticWrapperProps({ Wrapper, Visualization });
|
|
2151
|
+
return Wrapper;
|
|
2152
|
+
};
|
|
2153
|
+
var withEditModeCover_default = withEditModeCover;
|
|
2154
|
+
|
|
2085
2155
|
// esm-externals:@splunk/visualizations-shared/colorUtils
|
|
2086
2156
|
var colorUtils_exports = {};
|
|
2087
2157
|
__export(colorUtils_exports, {
|
|
@@ -2141,7 +2211,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
2141
2211
|
FixSizeItem,
|
|
2142
2212
|
{
|
|
2143
2213
|
"data-test": "fix-size-item",
|
|
2144
|
-
"data-splunk-visualization-version": "28.
|
|
2214
|
+
"data-splunk-visualization-version": "28.2.0 - 7eea200d8",
|
|
2145
2215
|
width,
|
|
2146
2216
|
height,
|
|
2147
2217
|
backgroundColor
|
|
@@ -2154,76 +2224,6 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
2154
2224
|
};
|
|
2155
2225
|
var FixedSizeContainer_default = withFixedSizeContainer;
|
|
2156
2226
|
|
|
2157
|
-
// src/common/components/MissingPropsMessage.tsx
|
|
2158
|
-
var isMissing = (v) => {
|
|
2159
|
-
return v === null || v === void 0;
|
|
2160
|
-
};
|
|
2161
|
-
var missingKeys = (keys, target) => keys.filter((k) => isMissing(target[k]));
|
|
2162
|
-
var propTypes = {
|
|
2163
|
-
width: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number]),
|
|
2164
|
-
height: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number]),
|
|
2165
|
-
// eslint-disable-next-line react/no-unused-prop-types
|
|
2166
|
-
backgroundColor: prop_types_exports.string,
|
|
2167
|
-
missingProps: prop_types_exports.arrayOf(prop_types_exports.string)
|
|
2168
|
-
};
|
|
2169
|
-
var MissingPropsMessage = (props) => {
|
|
2170
|
-
const { width, height, missingProps } = props;
|
|
2171
|
-
return /* @__PURE__ */ react_exports.createElement(
|
|
2172
|
-
Message_default,
|
|
2173
|
-
{
|
|
2174
|
-
"data-test": "message",
|
|
2175
|
-
width,
|
|
2176
|
-
height,
|
|
2177
|
-
message: (0, i18n_exports._)(`Missing property: ${missingProps.join(", ")}`)
|
|
2178
|
-
}
|
|
2179
|
-
);
|
|
2180
|
-
};
|
|
2181
|
-
MissingPropsMessage.propTypes = propTypes;
|
|
2182
|
-
MissingPropsMessage.defaultProps = {
|
|
2183
|
-
width: "100%",
|
|
2184
|
-
height: 250
|
|
2185
|
-
};
|
|
2186
|
-
var MissingPropsMessage_default = FixedSizeContainer_default(MissingPropsMessage);
|
|
2187
|
-
|
|
2188
|
-
// src/common/utils/hocUtils.ts
|
|
2189
|
-
var extendStaticWrapperProps = ({
|
|
2190
|
-
Wrapper,
|
|
2191
|
-
Visualization
|
|
2192
|
-
}) => {
|
|
2193
|
-
const extendProperties = ["propTypes", "defaultProps", "config"];
|
|
2194
|
-
extendProperties.forEach((prop) => {
|
|
2195
|
-
if (Visualization[prop]) {
|
|
2196
|
-
Wrapper[prop] = Visualization[prop];
|
|
2197
|
-
}
|
|
2198
|
-
});
|
|
2199
|
-
};
|
|
2200
|
-
|
|
2201
|
-
// src/common/hocs/withEditModeCover.tsx
|
|
2202
|
-
var Cover = styled_components_default.div`
|
|
2203
|
-
position: absolute;
|
|
2204
|
-
left: 0;
|
|
2205
|
-
right: 0;
|
|
2206
|
-
top: 0;
|
|
2207
|
-
bottom: 0;
|
|
2208
|
-
`;
|
|
2209
|
-
var Blocker = styled_components_default.div.attrs({
|
|
2210
|
-
"data-splunk-visualization-version": "28.1.0 - 4a1bff08b"
|
|
2211
|
-
})`
|
|
2212
|
-
position: relative;
|
|
2213
|
-
width: 100%;
|
|
2214
|
-
height: 100%;
|
|
2215
|
-
`;
|
|
2216
|
-
var withEditModeCover = (Visualization, disableEditModeCover) => {
|
|
2217
|
-
const Wrapper = (props) => {
|
|
2218
|
-
const { mode } = props;
|
|
2219
|
-
const showEditCover = mode === "edit" && !disableEditModeCover;
|
|
2220
|
-
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" }));
|
|
2221
|
-
};
|
|
2222
|
-
extendStaticWrapperProps({ Wrapper, Visualization });
|
|
2223
|
-
return Wrapper;
|
|
2224
|
-
};
|
|
2225
|
-
var withEditModeCover_default = withEditModeCover;
|
|
2226
|
-
|
|
2227
2227
|
// src/common/components/IconPlaceholder.tsx
|
|
2228
2228
|
var shouldShowIconPlaceholder = (dataSources, loading = false) => {
|
|
2229
2229
|
const data = (0, lodash_exports.get)(dataSources, "primary.data.columns[0]", void 0);
|
|
@@ -2232,18 +2232,23 @@ var shouldShowIconPlaceholder = (dataSources, loading = false) => {
|
|
|
2232
2232
|
const noFields = fields === void 0;
|
|
2233
2233
|
return loading || noData || noFields;
|
|
2234
2234
|
};
|
|
2235
|
-
var propTypes2 = {
|
|
2236
|
-
icon: prop_types_exports.func,
|
|
2237
|
-
width: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number]),
|
|
2238
|
-
height: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number]),
|
|
2239
|
-
// eslint-disable-next-line react/no-unused-prop-types
|
|
2240
|
-
backgroundColor: prop_types_exports.string,
|
|
2241
|
-
iconColor: prop_types_exports.string
|
|
2242
|
-
};
|
|
2243
2235
|
var IconPlaceholder = (props) => {
|
|
2244
|
-
const {
|
|
2236
|
+
const {
|
|
2237
|
+
width = SplunkVisualization_default.defaults.width,
|
|
2238
|
+
height = SplunkVisualization_default.defaults.height,
|
|
2239
|
+
icon,
|
|
2240
|
+
iconColor,
|
|
2241
|
+
backgroundColor
|
|
2242
|
+
} = props;
|
|
2243
|
+
const cachedHandleResize = react_exports.useCallback((w, h) => {
|
|
2244
|
+
setContainerWidth(w);
|
|
2245
|
+
setContainerHeight(h);
|
|
2246
|
+
}, []);
|
|
2247
|
+
const [containerWidth, setContainerWidth] = react_exports.useState(Number(width));
|
|
2248
|
+
const [containerHeight, setContainerHeight] = react_exports.useState(Number(height));
|
|
2249
|
+
let content = /* @__PURE__ */ react_exports.createElement(Message_default, { width, height, level: "warning", message: (0, i18n_exports._)("No DataSource Connected") });
|
|
2245
2250
|
if (icon) {
|
|
2246
|
-
|
|
2251
|
+
content = react_exports.createElement(icon, {
|
|
2247
2252
|
style: {
|
|
2248
2253
|
left: "50%",
|
|
2249
2254
|
top: "50%",
|
|
@@ -2257,12 +2262,7 @@ var IconPlaceholder = (props) => {
|
|
|
2257
2262
|
"data-test": "icon-placeholder"
|
|
2258
2263
|
});
|
|
2259
2264
|
}
|
|
2260
|
-
return /* @__PURE__ */ react_exports.createElement(
|
|
2261
|
-
};
|
|
2262
|
-
IconPlaceholder.propTypes = propTypes2;
|
|
2263
|
-
IconPlaceholder.defaultProps = {
|
|
2264
|
-
width: "100%",
|
|
2265
|
-
height: 250
|
|
2265
|
+
return /* @__PURE__ */ react_exports.createElement("div", { style: { width: containerWidth, height: containerHeight, background: backgroundColor } }, /* @__PURE__ */ react_exports.createElement(SizeAwareWrapper_default, { width, height, onResize: cachedHandleResize }), content);
|
|
2266
2266
|
};
|
|
2267
2267
|
var IconPlaceholder_default = FixedSizeContainer_default(IconPlaceholder);
|
|
2268
2268
|
|
|
@@ -2272,11 +2272,17 @@ var withPlaceholder = (Visualization, useIconPlaceholder = shouldShowIconPlaceho
|
|
|
2272
2272
|
const { themes: themes3 } = config3;
|
|
2273
2273
|
const Wrapper = (props) => {
|
|
2274
2274
|
var _a, _b;
|
|
2275
|
-
const {
|
|
2275
|
+
const {
|
|
2276
|
+
dataSources,
|
|
2277
|
+
loading,
|
|
2278
|
+
options,
|
|
2279
|
+
height = SplunkVisualization_default.defaults.height,
|
|
2280
|
+
width = SplunkVisualization_default.defaults.width
|
|
2281
|
+
} = props;
|
|
2276
2282
|
const showPlaceholder = useIconPlaceholder(dataSources, loading, options);
|
|
2277
|
-
const
|
|
2278
|
-
const icon = (_b = config3.placeholderIcon) != null ? _b : config3.icon;
|
|
2283
|
+
const icon = (_a = config3.placeholderIcon) != null ? _a : config3.icon;
|
|
2279
2284
|
const iconColor = variables_default.contentColorActive(props);
|
|
2285
|
+
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);
|
|
2280
2286
|
if (config3.supports.includes("placeholder" /* PLACEHOLDER */) && showPlaceholder) {
|
|
2281
2287
|
return /* @__PURE__ */ react_exports.createElement(
|
|
2282
2288
|
IconPlaceholder_default,
|
|
@@ -3042,6 +3048,367 @@ var determineMinMax = (splitData, trellisSharedScale, yAxisMin, yAxisMax, stackM
|
|
|
3042
3048
|
return [shouldUseSharedMin ? sharedMin : yAxisMin, shouldUseSharedMax ? sharedMax : yAxisMax];
|
|
3043
3049
|
};
|
|
3044
3050
|
|
|
3051
|
+
// esm-externals:@splunk/visualization-canvas
|
|
3052
|
+
var visualization_canvas_exports = {};
|
|
3053
|
+
__export(visualization_canvas_exports, {
|
|
3054
|
+
default: () => visualization_canvas_default
|
|
3055
|
+
});
|
|
3056
|
+
var defaultImport34 = __toESM(require("@splunk/visualization-canvas"));
|
|
3057
|
+
__reExport(visualization_canvas_exports, require("@splunk/visualization-canvas"));
|
|
3058
|
+
var visualization_canvas_default = "default" in defaultImport34 ? defaultImport34.default : defaultImport34;
|
|
3059
|
+
|
|
3060
|
+
// esm-externals:@splunk/react-icons/Triangle
|
|
3061
|
+
var Triangle_exports = {};
|
|
3062
|
+
__export(Triangle_exports, {
|
|
3063
|
+
default: () => Triangle_default
|
|
3064
|
+
});
|
|
3065
|
+
var defaultImport35 = __toESM(require("@splunk/react-icons/Triangle"));
|
|
3066
|
+
__reExport(Triangle_exports, require("@splunk/react-icons/Triangle"));
|
|
3067
|
+
var Triangle_default = "default" in defaultImport35 ? defaultImport35.default : defaultImport35;
|
|
3068
|
+
|
|
3069
|
+
// src/common/chartingUtils.ts
|
|
3070
|
+
var DEFAULT_LINE_WIDTH = 2;
|
|
3071
|
+
var getAnnotationsForCanvas = ({
|
|
3072
|
+
annotationX,
|
|
3073
|
+
annotationColor,
|
|
3074
|
+
annotationLabel
|
|
3075
|
+
}) => (annotationX == null ? void 0 : annotationX.length) ? annotationX.map((timestamp, i) => ({
|
|
3076
|
+
key: annotationLabel == null ? void 0 : annotationLabel[i],
|
|
3077
|
+
time: timestamp,
|
|
3078
|
+
color: annotationColor == null ? void 0 : annotationColor[i]
|
|
3079
|
+
})) : [];
|
|
3080
|
+
var StyledTriangle = styled_components_default(Triangle_default)`
|
|
3081
|
+
color: ${(props) => props.eventColor || variables_default.severityColorNotice(props)};
|
|
3082
|
+
`;
|
|
3083
|
+
var triangleEventAnnotationRenderer = ({ event }) => {
|
|
3084
|
+
const eventWithColor = event;
|
|
3085
|
+
return react_default.createElement(StyledTriangle, {
|
|
3086
|
+
viewBox: "0 0 24 24",
|
|
3087
|
+
variant: "filled",
|
|
3088
|
+
eventColor: eventWithColor.color
|
|
3089
|
+
});
|
|
3090
|
+
};
|
|
3091
|
+
var canvasSupportedTimeSeriesCharts = ["splunk.line"];
|
|
3092
|
+
var isTimeSeriesCanvasRenderSupported = (vizConfigKey) => {
|
|
3093
|
+
return canvasSupportedTimeSeriesCharts.indexOf(vizConfigKey) > -1;
|
|
3094
|
+
};
|
|
3095
|
+
var filterChartDataFromInternalFields = (chartData) => {
|
|
3096
|
+
const { fields, columns } = chartData;
|
|
3097
|
+
const keepIndexes = fields.reduce((acc, field, index) => {
|
|
3098
|
+
const fieldName = typeof field === "object" ? field == null ? void 0 : field.name : field;
|
|
3099
|
+
if (!(fieldName == null ? void 0 : fieldName.startsWith("_")) || fieldName === "_time") {
|
|
3100
|
+
acc.push(index);
|
|
3101
|
+
}
|
|
3102
|
+
return acc;
|
|
3103
|
+
}, []);
|
|
3104
|
+
const filteredFields = keepIndexes.map((index) => fields[index]);
|
|
3105
|
+
const filteredColumns = keepIndexes.map((index) => columns[index]);
|
|
3106
|
+
return { fields: filteredFields, columns: filteredColumns };
|
|
3107
|
+
};
|
|
3108
|
+
var convert2DArrayToNumbers = (arr) => {
|
|
3109
|
+
return arr.map((subArray) => subArray.map((element2) => parseFloat(element2)));
|
|
3110
|
+
};
|
|
3111
|
+
var SideLegendWidth = 75;
|
|
3112
|
+
var commonLegendProps = { center: true, fontSize: 12, largerTiles: true, hideSeriesValue: true };
|
|
3113
|
+
var getLegend = (props) => {
|
|
3114
|
+
const legendPlacement = props == null ? void 0 : props.legendDisplay;
|
|
3115
|
+
switch (legendPlacement) {
|
|
3116
|
+
case "off":
|
|
3117
|
+
return false;
|
|
3118
|
+
case "left":
|
|
3119
|
+
return (0, visualization_canvas_exports.LeftLegendFactory)(__spreadValues({
|
|
3120
|
+
width: SideLegendWidth
|
|
3121
|
+
}, commonLegendProps));
|
|
3122
|
+
case "bottom":
|
|
3123
|
+
return (0, visualization_canvas_exports.BottomLegendFactory)(__spreadValues({
|
|
3124
|
+
wrap: true
|
|
3125
|
+
}, commonLegendProps));
|
|
3126
|
+
case "top":
|
|
3127
|
+
return (0, visualization_canvas_exports.TopLegendFactory)(__spreadValues({
|
|
3128
|
+
wrap: true
|
|
3129
|
+
}, commonLegendProps));
|
|
3130
|
+
default:
|
|
3131
|
+
return (0, visualization_canvas_exports.SideLegendFactory)(__spreadValues({
|
|
3132
|
+
width: SideLegendWidth
|
|
3133
|
+
}, commonLegendProps));
|
|
3134
|
+
}
|
|
3135
|
+
};
|
|
3136
|
+
var getComputedAxisTitles = (inputAxisTitle, fields, axisTitleVisibility) => {
|
|
3137
|
+
if (axisTitleVisibility === "collapsed") {
|
|
3138
|
+
return "";
|
|
3139
|
+
}
|
|
3140
|
+
let fieldTitle = fields.length > 1 ? "" : fields[0];
|
|
3141
|
+
if (!fieldTitle) {
|
|
3142
|
+
fieldTitle = "";
|
|
3143
|
+
}
|
|
3144
|
+
return (inputAxisTitle == null ? void 0 : inputAxisTitle.length) ? inputAxisTitle.trim() : fieldTitle;
|
|
3145
|
+
};
|
|
3146
|
+
var ellipsisAxisTitle = (axisTitle, containerSpacing, fontSize = 12) => {
|
|
3147
|
+
if (!axisTitle) {
|
|
3148
|
+
return "";
|
|
3149
|
+
}
|
|
3150
|
+
if (Number.isNaN(containerSpacing) || containerSpacing <= 0) {
|
|
3151
|
+
return axisTitle;
|
|
3152
|
+
}
|
|
3153
|
+
const availableHeight = containerSpacing * 0.6;
|
|
3154
|
+
const avgCharWidth = fontSize * 0.55;
|
|
3155
|
+
const maxChars = Math.floor(availableHeight / avgCharWidth);
|
|
3156
|
+
if (axisTitle.length <= maxChars) {
|
|
3157
|
+
return axisTitle;
|
|
3158
|
+
}
|
|
3159
|
+
if (maxChars <= 3) {
|
|
3160
|
+
return "...";
|
|
3161
|
+
}
|
|
3162
|
+
const availableChars = maxChars - 3;
|
|
3163
|
+
const halfChars = Math.floor(availableChars / 2);
|
|
3164
|
+
const start = axisTitle.slice(0, halfChars);
|
|
3165
|
+
const end = axisTitle.slice(-halfChars);
|
|
3166
|
+
return `${start}...${end}`;
|
|
3167
|
+
};
|
|
3168
|
+
var getFieldName = (field) => {
|
|
3169
|
+
const fieldName = typeof field === "object" ? field == null ? void 0 : field.name : field;
|
|
3170
|
+
return fieldName;
|
|
3171
|
+
};
|
|
3172
|
+
var getFieldNames = (fields) => {
|
|
3173
|
+
return fields.map((field) => getFieldName(field));
|
|
3174
|
+
};
|
|
3175
|
+
var getXScaleConfig = (label) => {
|
|
3176
|
+
const xConfig = { x: {} };
|
|
3177
|
+
xConfig.x.label = label;
|
|
3178
|
+
return xConfig;
|
|
3179
|
+
};
|
|
3180
|
+
var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale) => {
|
|
3181
|
+
const scaleType = yAxisScale != null ? yAxisScale : "linear";
|
|
3182
|
+
const yConfig = { y: {} };
|
|
3183
|
+
yConfig.y.label = label;
|
|
3184
|
+
yConfig.y.type = scaleType;
|
|
3185
|
+
if (yAxisAbbreviation !== "none") {
|
|
3186
|
+
yConfig.y.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1);
|
|
3187
|
+
}
|
|
3188
|
+
if (yAxisAbbreviation === "none") {
|
|
3189
|
+
yConfig.y.width = 55;
|
|
3190
|
+
} else {
|
|
3191
|
+
yConfig.y.width = label && label.length > 0 ? 30 : 10;
|
|
3192
|
+
}
|
|
3193
|
+
return yConfig;
|
|
3194
|
+
};
|
|
3195
|
+
var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInteger) => {
|
|
3196
|
+
const y2Config = { y2: {} };
|
|
3197
|
+
const scaleType = axisScale != null ? axisScale : "linear";
|
|
3198
|
+
y2Config.y2.label = label;
|
|
3199
|
+
y2Config.y2.side = "right";
|
|
3200
|
+
y2Config.y2.showGrid = false;
|
|
3201
|
+
y2Config.y2.type = scaleType;
|
|
3202
|
+
if (axisAbbreviation !== "none") {
|
|
3203
|
+
y2Config.y2.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1, roundAxisLabelsToInteger);
|
|
3204
|
+
} else if (roundAxisLabelsToInteger) {
|
|
3205
|
+
y2Config.y2.tickFmt = (v) => roundAxisLabelsToInteger ? Math.round(v).toString() : v.toString();
|
|
3206
|
+
}
|
|
3207
|
+
return y2Config;
|
|
3208
|
+
};
|
|
3209
|
+
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode) => {
|
|
3210
|
+
const seriesConfig = {};
|
|
3211
|
+
let spanGaps;
|
|
3212
|
+
let replaceNullsWithZero;
|
|
3213
|
+
if (nullValueMode === "gaps") {
|
|
3214
|
+
spanGaps = false;
|
|
3215
|
+
} else if (nullValueMode === "connect" || nullValueMode === "zero") {
|
|
3216
|
+
spanGaps = true;
|
|
3217
|
+
if (nullValueMode === "zero") {
|
|
3218
|
+
replaceNullsWithZero = true;
|
|
3219
|
+
}
|
|
3220
|
+
}
|
|
3221
|
+
yfields.forEach((field) => {
|
|
3222
|
+
seriesConfig[field] = {
|
|
3223
|
+
overrides: { width: lineWidth != null ? lineWidth : DEFAULT_LINE_WIDTH }
|
|
3224
|
+
};
|
|
3225
|
+
if (spanGaps !== void 0) {
|
|
3226
|
+
seriesConfig[field].overrides.spanGaps = spanGaps;
|
|
3227
|
+
}
|
|
3228
|
+
if (y2Enabled) {
|
|
3229
|
+
const shouldAssignToY2 = (
|
|
3230
|
+
// If y2Fields are present, assign all y2Fields to y2 scale
|
|
3231
|
+
(y2fields == null ? void 0 : y2fields.length) > 0 && y2fields.includes(field) || // Else, assign all overlayFields to y2 scale
|
|
3232
|
+
(!y2fields || y2fields.length === 0) && (overlayFields == null ? void 0 : overlayFields.includes(field))
|
|
3233
|
+
);
|
|
3234
|
+
if (shouldAssignToY2) {
|
|
3235
|
+
seriesConfig[field].overrides.scale = "y2";
|
|
3236
|
+
}
|
|
3237
|
+
}
|
|
3238
|
+
if (overlayFields == null ? void 0 : overlayFields.includes(field)) {
|
|
3239
|
+
seriesConfig[field].type = "line";
|
|
3240
|
+
}
|
|
3241
|
+
if (replaceNullsWithZero !== void 0) {
|
|
3242
|
+
seriesConfig[field].replaceNullsWithZero = replaceNullsWithZero;
|
|
3243
|
+
}
|
|
3244
|
+
});
|
|
3245
|
+
return seriesConfig;
|
|
3246
|
+
};
|
|
3247
|
+
|
|
3248
|
+
// src/common/TimeSeriesChartWrapper.tsx
|
|
3249
|
+
var TimeSeriesChartContainer = styled_components_default.div`
|
|
3250
|
+
overflow: hidden;
|
|
3251
|
+
${(props) => (0, style_exports.toDimension)((0, lodash_exports.pick)(props, ["width", "height"]))};
|
|
3252
|
+
|
|
3253
|
+
canvas {
|
|
3254
|
+
position: absolute !important; // This is needed for canvas element export pdf/png to work correctly
|
|
3255
|
+
}
|
|
3256
|
+
`;
|
|
3257
|
+
var handleClick = (chartEvent, props) => {
|
|
3258
|
+
const payload = __spreadProps(__spreadValues({}, (0, lodash_exports.pick)(chartEvent, "value", "seriesKey")), {
|
|
3259
|
+
name: chartEvent.seriesKey
|
|
3260
|
+
});
|
|
3261
|
+
delete payload.seriesKey;
|
|
3262
|
+
const clickHandler = props == null ? void 0 : props.onClick;
|
|
3263
|
+
if (clickHandler) {
|
|
3264
|
+
clickHandler({
|
|
3265
|
+
type: "point.click",
|
|
3266
|
+
originalEvent: chartEvent,
|
|
3267
|
+
payload
|
|
3268
|
+
});
|
|
3269
|
+
}
|
|
3270
|
+
};
|
|
3271
|
+
var handleLegendClick = (chartEvent, props) => {
|
|
3272
|
+
const payload = {
|
|
3273
|
+
name: chartEvent
|
|
3274
|
+
};
|
|
3275
|
+
const clickHandler = props == null ? void 0 : props.onClick;
|
|
3276
|
+
if (clickHandler) {
|
|
3277
|
+
clickHandler({
|
|
3278
|
+
type: "legend.click",
|
|
3279
|
+
originalEvent: chartEvent,
|
|
3280
|
+
payload
|
|
3281
|
+
});
|
|
3282
|
+
}
|
|
3283
|
+
};
|
|
3284
|
+
var TimeSeriesChartWrapper = (props) => {
|
|
3285
|
+
const { width, height, chartData, options, userLocale, annotationX, annotationLabel, annotationColor } = props;
|
|
3286
|
+
const {
|
|
3287
|
+
backgroundColor,
|
|
3288
|
+
seriesColors: seriesColorsStr,
|
|
3289
|
+
fieldColors,
|
|
3290
|
+
"axisTitleX.text": xAxisTitleText,
|
|
3291
|
+
"axisTitleY.text": yAxisTitleText,
|
|
3292
|
+
"axisTitleY2.text": y2AxisTitleText,
|
|
3293
|
+
"axisTitleX.visibility": xAxisTitleVisibility,
|
|
3294
|
+
"axisTitleY.visibility": yAxisTitleVisibility,
|
|
3295
|
+
"axisTitleY2.visibility": y2AxisTitleVisibility,
|
|
3296
|
+
"axisY.abbreviation": yAxisAbbreviation,
|
|
3297
|
+
"axisY.scale": yAxisScale,
|
|
3298
|
+
"axisY2.abbreviation": y2AxisAbbreviation,
|
|
3299
|
+
"axisY2.fields": y2FieldsStr,
|
|
3300
|
+
"axisY2.scale": y2AxisScale,
|
|
3301
|
+
"axisY2.enabled": y2Enabled,
|
|
3302
|
+
"axisLabelsY2.integerUnits": y2IntegerUnits,
|
|
3303
|
+
"chart.overlayFields": overlayFieldsStr,
|
|
3304
|
+
"chart.nullValueMode": nullValueMode,
|
|
3305
|
+
lineWidth
|
|
3306
|
+
} = options;
|
|
3307
|
+
const seriesColors = seriesColorsStr ? JSON.parse(seriesColorsStr) : void 0;
|
|
3308
|
+
const seriesColorsByField = fieldColors ? JSON.parse(fieldColors) : void 0;
|
|
3309
|
+
const [containerWidth, setContainerWidth] = react_exports.useState(Number(props.width));
|
|
3310
|
+
const [containerHeight, setContainerHeight] = react_exports.useState(Number(props.height));
|
|
3311
|
+
const cachedHandleResize = react_exports.useCallback((w, h) => {
|
|
3312
|
+
setContainerWidth(w);
|
|
3313
|
+
setContainerHeight(h);
|
|
3314
|
+
}, []);
|
|
3315
|
+
const filteredChartData = filterChartDataFromInternalFields({
|
|
3316
|
+
fields: chartData.fields,
|
|
3317
|
+
columns: chartData.seriesList
|
|
3318
|
+
});
|
|
3319
|
+
const xField = getFieldName(filteredChartData.fields[0]);
|
|
3320
|
+
const yFields = getFieldNames(
|
|
3321
|
+
filteredChartData.fields.length > 1 ? filteredChartData.fields.slice(1) : []
|
|
3322
|
+
);
|
|
3323
|
+
const y2Fields = y2FieldsStr ? y2FieldsStr.split(",").map((f) => f.trim()) : [];
|
|
3324
|
+
const overlayFields = overlayFieldsStr ? overlayFieldsStr.split(",").map((f) => f.trim()) : [];
|
|
3325
|
+
let xAxisTitle = getComputedAxisTitles(xAxisTitleText, [xField], xAxisTitleVisibility);
|
|
3326
|
+
xAxisTitle = ellipsisAxisTitle(xAxisTitle, containerWidth);
|
|
3327
|
+
let yAxisTitle = getComputedAxisTitles(yAxisTitleText, yFields, yAxisTitleVisibility);
|
|
3328
|
+
yAxisTitle = ellipsisAxisTitle(yAxisTitle, containerHeight);
|
|
3329
|
+
const fieldsForY2Axis = y2Fields.length > 0 ? y2Fields : overlayFields;
|
|
3330
|
+
let y2AxisTitle = getComputedAxisTitles(y2AxisTitleText, fieldsForY2Axis, y2AxisTitleVisibility);
|
|
3331
|
+
y2AxisTitle = ellipsisAxisTitle(y2AxisTitle, containerHeight);
|
|
3332
|
+
const xScaleConfig = getXScaleConfig(xAxisTitle);
|
|
3333
|
+
const yScaleConfig = getYScaleConfig(yAxisTitle, yAxisAbbreviation, yAxisScale);
|
|
3334
|
+
let y2ScaleConfig = {};
|
|
3335
|
+
if (y2Enabled) {
|
|
3336
|
+
y2ScaleConfig = getY2ScaleConfig(y2AxisTitle, y2AxisAbbreviation, y2AxisScale, y2IntegerUnits);
|
|
3337
|
+
}
|
|
3338
|
+
const uplotContainerElement = (0, react_exports.useRef)(null);
|
|
3339
|
+
const seriesDataFormatted = [
|
|
3340
|
+
filteredChartData.columns[0],
|
|
3341
|
+
...convert2DArrayToNumbers(filteredChartData.columns.slice(1))
|
|
3342
|
+
];
|
|
3343
|
+
chartData.fields = filteredChartData.fields;
|
|
3344
|
+
chartData.columns = seriesDataFormatted;
|
|
3345
|
+
const seriesOverrides = getSeriesOverrides(
|
|
3346
|
+
yFields,
|
|
3347
|
+
y2Fields,
|
|
3348
|
+
lineWidth,
|
|
3349
|
+
overlayFields,
|
|
3350
|
+
y2Enabled,
|
|
3351
|
+
nullValueMode
|
|
3352
|
+
);
|
|
3353
|
+
const chartingEventAnnotations = getAnnotationsForCanvas({
|
|
3354
|
+
annotationX,
|
|
3355
|
+
annotationColor,
|
|
3356
|
+
annotationLabel
|
|
3357
|
+
});
|
|
3358
|
+
const MemoizedChart = react_exports.memo(visualization_canvas_exports.TimeSeriesChart);
|
|
3359
|
+
const scaleConfig = __spreadValues(__spreadValues(__spreadValues({}, xScaleConfig), yScaleConfig), y2ScaleConfig);
|
|
3360
|
+
const memoizedChart = (0, react_exports.useMemo)(
|
|
3361
|
+
() => /* @__PURE__ */ react_exports.createElement(
|
|
3362
|
+
MemoizedChart,
|
|
3363
|
+
{
|
|
3364
|
+
data: chartData,
|
|
3365
|
+
width: containerWidth,
|
|
3366
|
+
height: containerHeight,
|
|
3367
|
+
seriesColors,
|
|
3368
|
+
seriesColorsByField,
|
|
3369
|
+
seriesConfig: seriesOverrides,
|
|
3370
|
+
legend: getLegend(props),
|
|
3371
|
+
scaleConfig,
|
|
3372
|
+
timestampFormat: "expanded",
|
|
3373
|
+
onCrosshairClick: (event) => handleClick(event, props),
|
|
3374
|
+
onSeriesClick: (event) => handleLegendClick(event, props),
|
|
3375
|
+
userLocale,
|
|
3376
|
+
events: chartingEventAnnotations,
|
|
3377
|
+
eventsConfig: { renderer: triangleEventAnnotationRenderer }
|
|
3378
|
+
}
|
|
3379
|
+
),
|
|
3380
|
+
[
|
|
3381
|
+
MemoizedChart,
|
|
3382
|
+
chartData,
|
|
3383
|
+
containerWidth,
|
|
3384
|
+
containerHeight,
|
|
3385
|
+
seriesColors,
|
|
3386
|
+
seriesColorsByField,
|
|
3387
|
+
seriesOverrides,
|
|
3388
|
+
lineWidth,
|
|
3389
|
+
props,
|
|
3390
|
+
scaleConfig,
|
|
3391
|
+
userLocale,
|
|
3392
|
+
chartingEventAnnotations
|
|
3393
|
+
]
|
|
3394
|
+
);
|
|
3395
|
+
const memoizedVisualization = (0, react_exports.useMemo)(() => {
|
|
3396
|
+
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor }, memoizedChart);
|
|
3397
|
+
}, [backgroundColor]);
|
|
3398
|
+
return /* @__PURE__ */ react_exports.createElement(
|
|
3399
|
+
TimeSeriesChartContainer,
|
|
3400
|
+
{
|
|
3401
|
+
height,
|
|
3402
|
+
width,
|
|
3403
|
+
ref: uplotContainerElement,
|
|
3404
|
+
"data-test": "timeseries-chart-wrapper"
|
|
3405
|
+
},
|
|
3406
|
+
/* @__PURE__ */ react_exports.createElement(SizeAwareWrapper_default, { width, height, onResize: cachedHandleResize }),
|
|
3407
|
+
memoizedVisualization
|
|
3408
|
+
);
|
|
3409
|
+
};
|
|
3410
|
+
var TimeSeriesChartWrapper_default = TimeSeriesChartWrapper;
|
|
3411
|
+
|
|
3045
3412
|
// src/common/withDashboardViz.tsx
|
|
3046
3413
|
var withDashboardViz = (opts) => {
|
|
3047
3414
|
const {
|
|
@@ -3059,30 +3426,29 @@ var withDashboardViz = (opts) => {
|
|
|
3059
3426
|
const DashboardViz = (props) => {
|
|
3060
3427
|
var _a;
|
|
3061
3428
|
const {
|
|
3062
|
-
mode,
|
|
3429
|
+
mode = "view",
|
|
3063
3430
|
hasEventHandlers,
|
|
3064
3431
|
dataSources,
|
|
3065
3432
|
// type of { [key: string]: DataSource }
|
|
3066
|
-
options,
|
|
3433
|
+
options = {},
|
|
3067
3434
|
context = {},
|
|
3068
3435
|
width,
|
|
3069
3436
|
height,
|
|
3070
|
-
onComputedProps,
|
|
3071
|
-
onEventTrigger,
|
|
3437
|
+
onComputedProps = lodash_exports.noop,
|
|
3438
|
+
onEventTrigger = SplunkVisualization_default.defaults.onEventTrigger,
|
|
3072
3439
|
theme,
|
|
3073
|
-
onRequestParamsChange
|
|
3440
|
+
onRequestParamsChange = lodash_exports.noop
|
|
3074
3441
|
} = props;
|
|
3075
|
-
const
|
|
3076
|
-
if (serializedTimezone) {
|
|
3442
|
+
const localeContext = react_exports.useContext(TimezoneContext_default);
|
|
3443
|
+
if (localeContext.serializedTimezone) {
|
|
3077
3444
|
if (!moment_default.getDefaultSplunkTimezone()) {
|
|
3078
|
-
moment_default.setDefaultSplunkTimezone(serializedTimezone);
|
|
3445
|
+
moment_default.setDefaultSplunkTimezone(localeContext.serializedTimezone);
|
|
3079
3446
|
}
|
|
3080
3447
|
}
|
|
3081
3448
|
const themeFunc = (themeVar) => {
|
|
3082
3449
|
var _a2, _b;
|
|
3083
3450
|
return (_b = (_a2 = vizConfig.themes)[themeVar]) == null ? void 0 : _b.call(_a2, props);
|
|
3084
3451
|
};
|
|
3085
|
-
const bgColorFromTheme = themeFunc("defaultBackgroundColor");
|
|
3086
3452
|
const {
|
|
3087
3453
|
family: currentThemeFamily,
|
|
3088
3454
|
colorScheme: currentThemeColorScheme,
|
|
@@ -3104,6 +3470,10 @@ var withDashboardViz = (opts) => {
|
|
|
3104
3470
|
featureFlagContext && featureFlagContext.visualizations_enableTrellis
|
|
3105
3471
|
);
|
|
3106
3472
|
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 */;
|
|
3473
|
+
const isAcceleratedRenderFeatureFlagOn = Boolean(
|
|
3474
|
+
featureFlagContext == null ? void 0 : featureFlagContext.visualizations_enableAcceleratedRender
|
|
3475
|
+
);
|
|
3476
|
+
const isAcceleratedRenderOn = isAcceleratedRenderFeatureFlagOn && isTimeSeriesCanvasRenderSupported(vizConfig.key) && (options == null ? void 0 : options.acceleratedRender) === true;
|
|
3107
3477
|
const isMounted = react_exports.useRef(true);
|
|
3108
3478
|
const optionsToEvaluate = react_exports.useMemo(() => {
|
|
3109
3479
|
var _a2;
|
|
@@ -3198,10 +3568,34 @@ var withDashboardViz = (opts) => {
|
|
|
3198
3568
|
currentThemeDensity,
|
|
3199
3569
|
optionsToEvaluate,
|
|
3200
3570
|
downsampledDataSources,
|
|
3201
|
-
serializedTimezone,
|
|
3571
|
+
localeContext.serializedTimezone,
|
|
3202
3572
|
useAsyncEvaluatedOptions
|
|
3203
3573
|
]);
|
|
3204
3574
|
const evaluatedOptionsToUse = !useAsyncEvaluatedOptions ? evaluatedOptions : evaluatedOptionsAsync;
|
|
3575
|
+
let dataSourceMetadata = {};
|
|
3576
|
+
const OptionKey = "paginateDataSourceKey";
|
|
3577
|
+
const optsKey = (0, lodash_exports.has)(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey];
|
|
3578
|
+
const paginateDataSourceKey = typeof optsKey === "string" ? optsKey : "primary";
|
|
3579
|
+
const requestParams = (0, lodash_exports.get)(dataSources, [paginateDataSourceKey, "requestParams"], {});
|
|
3580
|
+
const meta = (0, lodash_exports.get)(dataSources, [paginateDataSourceKey, "meta"], {});
|
|
3581
|
+
const handleRequestParamsChange = (payload) => onRequestParamsChange(paginateDataSourceKey, payload);
|
|
3582
|
+
const sortParams = useSortingParams({
|
|
3583
|
+
requestParams,
|
|
3584
|
+
meta,
|
|
3585
|
+
onRequestParamsChange: handleRequestParamsChange
|
|
3586
|
+
});
|
|
3587
|
+
const paginatorParams = usePaginationParams({
|
|
3588
|
+
requestParams,
|
|
3589
|
+
meta,
|
|
3590
|
+
onRequestParamsChange: handleRequestParamsChange
|
|
3591
|
+
});
|
|
3592
|
+
dataSourceMetadata = {
|
|
3593
|
+
sortParams,
|
|
3594
|
+
paginatorParams
|
|
3595
|
+
};
|
|
3596
|
+
if (vizConfig.supports.indexOf("page-and-sort" /* PAGE_AND_SORT */) === -1 && !(0, lodash_exports.has)(dataSources, paginateDataSourceKey)) {
|
|
3597
|
+
dataSourceMetadata = {};
|
|
3598
|
+
}
|
|
3205
3599
|
const clonedEvaluatedOptions = __spreadValues({}, evaluatedOptionsToUse);
|
|
3206
3600
|
if (isTrellisOn) {
|
|
3207
3601
|
clonedEvaluatedOptions.backgroundColor = clonedEvaluatedOptions == null ? void 0 : clonedEvaluatedOptions.trellisBackgroundColor;
|
|
@@ -3227,7 +3621,7 @@ var withDashboardViz = (opts) => {
|
|
|
3227
3621
|
width,
|
|
3228
3622
|
height,
|
|
3229
3623
|
missingProps: missing,
|
|
3230
|
-
backgroundColor:
|
|
3624
|
+
backgroundColor: themeFunc("defaultBackgroundColor")
|
|
3231
3625
|
}
|
|
3232
3626
|
);
|
|
3233
3627
|
}
|
|
@@ -3265,45 +3659,27 @@ var withDashboardViz = (opts) => {
|
|
|
3265
3659
|
const computedVizProps = computeVizProps2(__spreadProps(__spreadValues(__spreadValues(__spreadValues({}, props), evaluatedOptionsToUse), eventCallbackProps), {
|
|
3266
3660
|
themeFunc
|
|
3267
3661
|
}));
|
|
3268
|
-
let dataSourceMetadata = {};
|
|
3269
|
-
const OptionKey = "paginateDataSourceKey";
|
|
3270
|
-
const optsKey = (0, lodash_exports.has)(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey];
|
|
3271
|
-
const paginateDataSourceKey = typeof optsKey === "string" ? optsKey : "primary";
|
|
3272
|
-
if (vizConfig.supports.indexOf("page-and-sort" /* PAGE_AND_SORT */) > -1 && (0, lodash_exports.has)(dataSources, paginateDataSourceKey)) {
|
|
3273
|
-
const requestParams = (0, lodash_exports.get)(dataSources, [paginateDataSourceKey, "requestParams"], {});
|
|
3274
|
-
const meta = (0, lodash_exports.get)(dataSources, [paginateDataSourceKey, "meta"], {});
|
|
3275
|
-
const handleRequestParamsChange = (payload) => onRequestParamsChange(paginateDataSourceKey, payload);
|
|
3276
|
-
const sortParams = getSortingParams({
|
|
3277
|
-
requestParams,
|
|
3278
|
-
meta,
|
|
3279
|
-
onRequestParamsChange: handleRequestParamsChange
|
|
3280
|
-
});
|
|
3281
|
-
const paginatorParams = getPaginationParams({
|
|
3282
|
-
requestParams,
|
|
3283
|
-
meta,
|
|
3284
|
-
onRequestParamsChange: handleRequestParamsChange
|
|
3285
|
-
});
|
|
3286
|
-
dataSourceMetadata = {
|
|
3287
|
-
sortParams,
|
|
3288
|
-
paginatorParams
|
|
3289
|
-
};
|
|
3290
|
-
}
|
|
3291
3662
|
if (useAsyncEvaluatedOptions && Object.keys(evaluatedOptionsToUse).length === 0) {
|
|
3292
3663
|
return null;
|
|
3293
3664
|
}
|
|
3665
|
+
let SanitizedViz = SanitizedReactViz;
|
|
3666
|
+
if (isAcceleratedRenderOn) {
|
|
3667
|
+
SanitizedViz = (0, SanitizeProps_exports.withSanitizedProps)(TimeSeriesChartWrapper_default);
|
|
3668
|
+
}
|
|
3294
3669
|
return /* @__PURE__ */ react_exports.createElement(
|
|
3295
|
-
|
|
3296
|
-
__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
3670
|
+
SanitizedViz,
|
|
3671
|
+
__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues({}, SplunkVisualization_default.defaults), {
|
|
3297
3672
|
mode,
|
|
3298
|
-
width,
|
|
3299
|
-
height
|
|
3300
|
-
|
|
3673
|
+
width: width || SplunkVisualization_default.defaults.width,
|
|
3674
|
+
height: height || SplunkVisualization_default.defaults.height,
|
|
3675
|
+
userLocale: localeContext
|
|
3676
|
+
}), downsamplingProps), evaluatedOptionsToUse), computedVizProps), eventCallbackProps), dataSourceMetadata)
|
|
3301
3677
|
);
|
|
3302
3678
|
};
|
|
3303
3679
|
DashboardViz.propTypes = __spreadValues(__spreadValues({}, SplunkVisualization_default.propTypes), ReactViz.propTypes);
|
|
3304
|
-
DashboardViz.defaultProps = __spreadProps(__spreadValues(
|
|
3305
|
-
//
|
|
3306
|
-
|
|
3680
|
+
DashboardViz.defaultProps = __spreadProps(__spreadValues({}, ReactViz.defaultProps), {
|
|
3681
|
+
// we still need ReactViz.defaultProps for the visualizations that still have them
|
|
3682
|
+
onEventTrigger: SplunkVisualization_default.defaults.onEventTrigger
|
|
3307
3683
|
});
|
|
3308
3684
|
DashboardViz.config = vizConfig;
|
|
3309
3685
|
return (0, styled_components_exports.withTheme)(
|
|
@@ -3317,36 +3693,36 @@ var PresetPalettes_exports = {};
|
|
|
3317
3693
|
__export(PresetPalettes_exports, {
|
|
3318
3694
|
default: () => PresetPalettes_default
|
|
3319
3695
|
});
|
|
3320
|
-
var
|
|
3696
|
+
var defaultImport36 = __toESM(require("@splunk/visualization-color-palettes/editors/PresetPalettes"));
|
|
3321
3697
|
__reExport(PresetPalettes_exports, require("@splunk/visualization-color-palettes/editors/PresetPalettes"));
|
|
3322
|
-
var PresetPalettes_default = "default" in
|
|
3698
|
+
var PresetPalettes_default = "default" in defaultImport36 ? defaultImport36.default : defaultImport36;
|
|
3323
3699
|
|
|
3324
3700
|
// esm-externals:@splunk/visualization-icons
|
|
3325
3701
|
var visualization_icons_exports = {};
|
|
3326
3702
|
__export(visualization_icons_exports, {
|
|
3327
3703
|
default: () => visualization_icons_default
|
|
3328
3704
|
});
|
|
3329
|
-
var
|
|
3705
|
+
var defaultImport37 = __toESM(require("@splunk/visualization-icons"));
|
|
3330
3706
|
__reExport(visualization_icons_exports, require("@splunk/visualization-icons"));
|
|
3331
|
-
var visualization_icons_default = "default" in
|
|
3707
|
+
var visualization_icons_default = "default" in defaultImport37 ? defaultImport37.default : defaultImport37;
|
|
3332
3708
|
|
|
3333
3709
|
// esm-externals:@splunk/visualization-icons/placeholders
|
|
3334
3710
|
var placeholders_exports = {};
|
|
3335
3711
|
__export(placeholders_exports, {
|
|
3336
3712
|
default: () => placeholders_default
|
|
3337
3713
|
});
|
|
3338
|
-
var
|
|
3714
|
+
var defaultImport38 = __toESM(require("@splunk/visualization-icons/placeholders"));
|
|
3339
3715
|
__reExport(placeholders_exports, require("@splunk/visualization-icons/placeholders"));
|
|
3340
|
-
var placeholders_default = "default" in
|
|
3716
|
+
var placeholders_default = "default" in defaultImport38 ? defaultImport38.default : defaultImport38;
|
|
3341
3717
|
|
|
3342
3718
|
// esm-externals:@splunk/visualizations-shared/configUtils
|
|
3343
3719
|
var configUtils_exports = {};
|
|
3344
3720
|
__export(configUtils_exports, {
|
|
3345
3721
|
default: () => configUtils_default
|
|
3346
3722
|
});
|
|
3347
|
-
var
|
|
3723
|
+
var defaultImport39 = __toESM(require("@splunk/visualizations-shared/configUtils"));
|
|
3348
3724
|
__reExport(configUtils_exports, require("@splunk/visualizations-shared/configUtils"));
|
|
3349
|
-
var configUtils_default = "default" in
|
|
3725
|
+
var configUtils_default = "default" in defaultImport39 ? defaultImport39.default : defaultImport39;
|
|
3350
3726
|
|
|
3351
3727
|
// src/common/editorConfig/StaticMajorAndTrendLayout.js
|
|
3352
3728
|
var StaticMajorAndTrendLayout = [
|
|
@@ -3983,27 +4359,27 @@ var Paginator_exports = {};
|
|
|
3983
4359
|
__export(Paginator_exports, {
|
|
3984
4360
|
default: () => Paginator_default
|
|
3985
4361
|
});
|
|
3986
|
-
var
|
|
4362
|
+
var defaultImport40 = __toESM(require("@splunk/react-ui/Paginator"));
|
|
3987
4363
|
__reExport(Paginator_exports, require("@splunk/react-ui/Paginator"));
|
|
3988
|
-
var Paginator_default = "default" in
|
|
4364
|
+
var Paginator_default = "default" in defaultImport40 ? defaultImport40.default : defaultImport40;
|
|
3989
4365
|
|
|
3990
4366
|
// esm-externals:@splunk/themes
|
|
3991
4367
|
var themes_exports = {};
|
|
3992
4368
|
__export(themes_exports, {
|
|
3993
4369
|
default: () => themes_default
|
|
3994
4370
|
});
|
|
3995
|
-
var
|
|
4371
|
+
var defaultImport41 = __toESM(require("@splunk/themes"));
|
|
3996
4372
|
__reExport(themes_exports, require("@splunk/themes"));
|
|
3997
|
-
var themes_default = "default" in
|
|
4373
|
+
var themes_default = "default" in defaultImport41 ? defaultImport41.default : defaultImport41;
|
|
3998
4374
|
|
|
3999
4375
|
// esm-externals:@splunk/themes/useSplunkTheme
|
|
4000
4376
|
var useSplunkTheme_exports = {};
|
|
4001
4377
|
__export(useSplunkTheme_exports, {
|
|
4002
4378
|
default: () => useSplunkTheme_default
|
|
4003
4379
|
});
|
|
4004
|
-
var
|
|
4380
|
+
var defaultImport42 = __toESM(require("@splunk/themes/useSplunkTheme"));
|
|
4005
4381
|
__reExport(useSplunkTheme_exports, require("@splunk/themes/useSplunkTheme"));
|
|
4006
|
-
var useSplunkTheme_default = "default" in
|
|
4382
|
+
var useSplunkTheme_default = "default" in defaultImport42 ? defaultImport42.default : defaultImport42;
|
|
4007
4383
|
|
|
4008
4384
|
// src/common/hocs/withTrellis.tsx
|
|
4009
4385
|
var TrellisContainer = styled_components_default.div`
|
|
@@ -4235,7 +4611,6 @@ var withTrellis = (Viz) => {
|
|
|
4235
4611
|
return null;
|
|
4236
4612
|
};
|
|
4237
4613
|
VizWithTrellis.propTypes = Viz.proptypes;
|
|
4238
|
-
VizWithTrellis.defaultProps = Viz.defaultProps;
|
|
4239
4614
|
VizWithTrellis.config = Viz.config;
|
|
4240
4615
|
return VizWithTrellis;
|
|
4241
4616
|
};
|