@splunk/visualizations 28.0.0 → 28.2.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/Area.config.js +27 -0
- package/Area.config.js.map +2 -2
- package/Area.js +722 -355
- package/Area.js.map +4 -4
- package/Bar.config.js +27 -0
- package/Bar.config.js.map +2 -2
- package/Bar.js +754 -387
- package/Bar.js.map +4 -4
- package/Bubble.config.js +27 -0
- package/Bubble.config.js.map +2 -2
- package/Bubble.js +684 -321
- package/Bubble.js.map +4 -4
- package/CHANGELOG.external.md +63 -2
- package/ChoroplethSvg.js +582 -202
- package/ChoroplethSvg.js.map +4 -4
- package/Column.config.js +27 -0
- package/Column.config.js.map +2 -2
- package/Column.js +769 -402
- package/Column.js.map +4 -4
- package/Ellipse.js +593 -214
- package/Ellipse.js.map +4 -4
- package/Events.js +592 -201
- package/Events.js.map +4 -4
- package/FEATUREFLAGS.md +1 -0
- package/FillerGauge.config.js +124 -3
- package/FillerGauge.config.js.map +3 -3
- package/FillerGauge.js +1371 -256
- package/FillerGauge.js.map +4 -4
- package/Image.js +590 -217
- package/Image.js.map +4 -4
- package/Line.config.js +28 -1
- package/Line.config.js.map +2 -2
- package/Line.js +737 -370
- package/Line.js.map +4 -4
- package/LinkGraph.js +1095 -692
- package/LinkGraph.js.map +4 -4
- package/Map.config.js +49 -3
- package/Map.config.js.map +2 -2
- package/Map.js +581 -145
- package/Map.js.map +4 -4
- package/Markdown.js +617 -230
- package/Markdown.js.map +4 -4
- package/MarkerGauge.js +544 -169
- package/MarkerGauge.js.map +4 -4
- package/ParallelCoordinates.js +565 -174
- package/ParallelCoordinates.js.map +4 -4
- package/Pie.js +651 -316
- package/Pie.js.map +4 -4
- package/Punchcard.js +589 -200
- package/Punchcard.js.map +4 -4
- package/Rectangle.js +604 -224
- package/Rectangle.js.map +4 -4
- package/Sankey.js +577 -201
- package/Sankey.js.map +4 -4
- package/Scatter.config.js +27 -0
- package/Scatter.config.js.map +2 -2
- package/Scatter.js +688 -326
- package/Scatter.js.map +4 -4
- package/SingleValue.js +543 -166
- package/SingleValue.js.map +4 -4
- package/SingleValueIcon.js +535 -160
- package/SingleValueIcon.js.map +4 -4
- package/SingleValueRadial.js +528 -153
- package/SingleValueRadial.js.map +4 -4
- package/TRELLIS.md +2 -2
- package/Table.config.js +109 -33
- package/Table.config.js.map +4 -4
- package/Table.js +986 -322
- package/Table.js.map +4 -4
- package/Timeline.js +626 -247
- package/Timeline.js.map +4 -4
- package/common/Charting.js +49 -111
- package/common/Charting.js.map +4 -4
- package/common/GaugeMajorTicks.js +6 -14
- package/common/GaugeMajorTicks.js.map +2 -2
- package/common/GaugeValueMarker.js +6 -14
- package/common/GaugeValueMarker.js.map +2 -2
- package/common/OptionsDoc.js +3 -2
- package/common/OptionsDoc.js.map +2 -2
- package/common/SplunkVisualization.js +1 -1
- package/common/SplunkVisualization.js.map +2 -2
- package/common/TimeSeriesChartWrapper.js +485 -0
- package/common/TimeSeriesChartWrapper.js.map +7 -0
- package/common/chartingUtils.js +252 -1
- package/common/chartingUtils.js.map +4 -4
- package/common/shapeUtils.js.map +1 -1
- package/common/utils/hocUtils.js +1 -1
- package/common/utils/hocUtils.js.map +2 -2
- package/common/utils/mapUtils.js.map +1 -1
- package/common/utils/tableUtils.js +60 -0
- package/common/utils/tableUtils.js.map +7 -0
- package/common/withDashboardViz.js +552 -161
- package/common/withDashboardViz.js.map +4 -4
- package/dist/types/Area/Area.d.ts +13 -0
- package/dist/types/Area/Area.d.ts.map +1 -0
- package/dist/types/Area/areaUtils.d.ts +15 -0
- package/dist/types/Area/areaUtils.d.ts.map +1 -0
- package/dist/types/Area/config.d.ts +4 -0
- package/dist/types/Area/config.d.ts.map +1 -0
- package/dist/types/Area/index.d.ts +3 -0
- package/dist/types/Area/index.d.ts.map +1 -0
- package/dist/types/Bar/Bar.d.ts +13 -0
- package/dist/types/Bar/Bar.d.ts.map +1 -0
- package/dist/types/Bar/barUtils.d.ts +30 -0
- package/dist/types/Bar/barUtils.d.ts.map +1 -0
- package/dist/types/Bar/config.d.ts +4 -0
- package/dist/types/Bar/config.d.ts.map +1 -0
- package/dist/types/Bar/index.d.ts +3 -0
- package/dist/types/Bar/index.d.ts.map +1 -0
- package/dist/types/Bubble/Bubble.d.ts +9 -0
- package/dist/types/Bubble/Bubble.d.ts.map +1 -0
- package/dist/types/Bubble/bubbleUtils.d.ts +47 -0
- package/dist/types/Bubble/bubbleUtils.d.ts.map +1 -0
- package/dist/types/Bubble/config.d.ts +4 -0
- package/dist/types/Bubble/config.d.ts.map +1 -0
- package/dist/types/Bubble/index.d.ts +3 -0
- package/dist/types/Bubble/index.d.ts.map +1 -0
- package/dist/types/ChoroplethSvg/ChoroplethSvg.d.ts +24 -0
- package/dist/types/ChoroplethSvg/ChoroplethSvg.d.ts.map +1 -0
- package/dist/types/ChoroplethSvg/ErrorMessage/ErrorMessage.d.ts +6 -0
- package/dist/types/ChoroplethSvg/ErrorMessage/ErrorMessage.d.ts.map +1 -0
- package/dist/types/ChoroplethSvg/PureChoroplethSvg/PureChoroplethSvg.d.ts +29 -0
- package/dist/types/ChoroplethSvg/PureChoroplethSvg/PureChoroplethSvg.d.ts.map +1 -0
- package/dist/types/ChoroplethSvg/PureChoroplethSvg/SvgChoroplethDynamic.d.ts +34 -0
- package/dist/types/ChoroplethSvg/PureChoroplethSvg/SvgChoroplethDynamic.d.ts.map +1 -0
- package/dist/types/ChoroplethSvg/PureChoroplethSvg/SvgMutator.d.ts +144 -0
- package/dist/types/ChoroplethSvg/PureChoroplethSvg/SvgMutator.d.ts.map +1 -0
- package/dist/types/ChoroplethSvg/config.d.ts +4 -0
- package/dist/types/ChoroplethSvg/config.d.ts.map +1 -0
- package/dist/types/ChoroplethSvg/index.d.ts +3 -0
- package/dist/types/ChoroplethSvg/index.d.ts.map +1 -0
- package/dist/types/Column/Column.d.ts +11 -0
- package/dist/types/Column/Column.d.ts.map +1 -0
- package/dist/types/Column/columnUtils.d.ts +82 -0
- package/dist/types/Column/columnUtils.d.ts.map +1 -0
- package/dist/types/Column/config.d.ts +4 -0
- package/dist/types/Column/config.d.ts.map +1 -0
- package/dist/types/Column/index.d.ts +3 -0
- package/dist/types/Column/index.d.ts.map +1 -0
- package/dist/types/Ellipse/Ellipse.d.ts +7 -0
- package/dist/types/Ellipse/Ellipse.d.ts.map +1 -0
- package/dist/types/Ellipse/config.d.ts +4 -0
- package/dist/types/Ellipse/config.d.ts.map +1 -0
- package/dist/types/Ellipse/index.d.ts +3 -0
- package/dist/types/Ellipse/index.d.ts.map +1 -0
- package/dist/types/Events/EventUtils.d.ts +137 -0
- package/dist/types/Events/EventUtils.d.ts.map +1 -0
- package/dist/types/Events/Events.d.ts +19 -0
- package/dist/types/Events/Events.d.ts.map +1 -0
- package/dist/types/Events/PureEvents/FieldSummaryTooltip.d.ts +50 -0
- package/dist/types/Events/PureEvents/FieldSummaryTooltip.d.ts.map +1 -0
- package/dist/types/Events/PureEvents/PureEvents.d.ts +34 -0
- package/dist/types/Events/PureEvents/PureEvents.d.ts.map +1 -0
- package/dist/types/Events/PureEvents/TimeControlsPopover.d.ts +33 -0
- package/dist/types/Events/PureEvents/TimeControlsPopover.d.ts.map +1 -0
- package/dist/types/Events/config.d.ts +4 -0
- package/dist/types/Events/config.d.ts.map +1 -0
- package/dist/types/Events/index.d.ts +3 -0
- package/dist/types/Events/index.d.ts.map +1 -0
- package/dist/types/FillerGauge/FillerGauge.d.ts +13 -0
- package/dist/types/FillerGauge/FillerGauge.d.ts.map +1 -0
- package/dist/types/FillerGauge/PureFillerGauge/FillerGauge.d.ts +32 -0
- package/dist/types/FillerGauge/PureFillerGauge/FillerGauge.d.ts.map +1 -0
- package/dist/types/FillerGauge/config.d.ts +4 -0
- package/dist/types/FillerGauge/config.d.ts.map +1 -0
- package/dist/types/FillerGauge/index.d.ts +3 -0
- package/dist/types/FillerGauge/index.d.ts.map +1 -0
- package/dist/types/Image/Image.d.ts +13 -0
- package/dist/types/Image/Image.d.ts.map +1 -0
- package/dist/types/Image/ImageApi.d.ts +15 -0
- package/dist/types/Image/ImageApi.d.ts.map +1 -0
- package/dist/types/Image/config.d.ts +4 -0
- package/dist/types/Image/config.d.ts.map +1 -0
- package/dist/types/Image/index.d.ts +3 -0
- package/dist/types/Image/index.d.ts.map +1 -0
- package/dist/types/Line/Line.d.ts +13 -0
- package/dist/types/Line/Line.d.ts.map +1 -0
- package/dist/types/Line/config.d.ts +4 -0
- package/dist/types/Line/config.d.ts.map +1 -0
- package/dist/types/Line/index.d.ts +3 -0
- package/dist/types/Line/index.d.ts.map +1 -0
- package/dist/types/Line/lineUtils.d.ts +22 -0
- package/dist/types/Line/lineUtils.d.ts.map +1 -0
- package/dist/types/Line/mockdata/LineData.d.ts +184 -0
- package/dist/types/Line/mockdata/LineData.d.ts.map +1 -0
- package/dist/types/LinkGraph/ESTestDataSources.d.ts +32 -0
- package/dist/types/LinkGraph/ESTestDataSources.d.ts.map +1 -0
- package/dist/types/LinkGraph/ESTestTemplate.d.ts +2 -0
- package/dist/types/LinkGraph/ESTestTemplate.d.ts.map +1 -0
- package/dist/types/LinkGraph/LinkGraph.d.ts +22 -0
- package/dist/types/LinkGraph/LinkGraph.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/PureLinkGraph.d.ts +89 -0
- package/dist/types/LinkGraph/PureLinkGraph/PureLinkGraph.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/PureLinkGraphUtils.d.ts +74 -0
- package/dist/types/LinkGraph/PureLinkGraph/PureLinkGraphUtils.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Edges.d.ts +9 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Edges.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Field.d.ts +14 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Field.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/FieldStyles.d.ts +5 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/FieldStyles.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Graph.d.ts +49 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Graph.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/GraphStyles.d.ts +11 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/GraphStyles.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Node.d.ts +24 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Node.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Nodes.d.ts +16 -0
- package/dist/types/LinkGraph/PureLinkGraph/components/Nodes.d.ts.map +1 -0
- package/dist/types/LinkGraph/PureLinkGraph/utils/iconLoader.d.ts +168 -0
- package/dist/types/LinkGraph/PureLinkGraph/utils/iconLoader.d.ts.map +1 -0
- package/dist/types/LinkGraph/config.d.ts +4 -0
- package/dist/types/LinkGraph/config.d.ts.map +1 -0
- package/dist/types/LinkGraph/index.d.ts +3 -0
- package/dist/types/LinkGraph/index.d.ts.map +1 -0
- package/dist/types/Map/Map.d.ts +28 -0
- package/dist/types/Map/Map.d.ts.map +1 -0
- package/dist/types/Map/MapContextDefault.d.ts +39 -0
- package/dist/types/Map/MapContextDefault.d.ts.map +1 -0
- package/dist/types/Map/PureMap/BubbleLayer.d.ts +51 -0
- package/dist/types/Map/PureMap/BubbleLayer.d.ts.map +1 -0
- package/dist/types/Map/PureMap/ChoroplethLayer.d.ts +36 -0
- package/dist/types/Map/PureMap/ChoroplethLayer.d.ts.map +1 -0
- package/dist/types/Map/PureMap/ClusterLayer.d.ts +17 -0
- package/dist/types/Map/PureMap/ClusterLayer.d.ts.map +1 -0
- package/dist/types/Map/PureMap/LocalChoroplethLayer.d.ts +18 -0
- package/dist/types/Map/PureMap/LocalChoroplethLayer.d.ts.map +1 -0
- package/dist/types/Map/PureMap/MapUtils.d.ts +141 -0
- package/dist/types/Map/PureMap/MapUtils.d.ts.map +1 -0
- package/dist/types/Map/PureMap/MarkerLayer.d.ts +34 -0
- package/dist/types/Map/PureMap/MarkerLayer.d.ts.map +1 -0
- package/dist/types/Map/PureMap/MarkerWrapper.d.ts +17 -0
- package/dist/types/Map/PureMap/MarkerWrapper.d.ts.map +1 -0
- package/dist/types/Map/PureMap/PureMap.d.ts +102 -0
- package/dist/types/Map/PureMap/PureMap.d.ts.map +1 -0
- package/dist/types/Map/PureMap/PureMapContainer.d.ts +15 -0
- package/dist/types/Map/PureMap/PureMapContainer.d.ts.map +1 -0
- package/dist/types/Map/PureMap/Tooltip.d.ts +20 -0
- package/dist/types/Map/PureMap/Tooltip.d.ts.map +1 -0
- package/dist/types/Map/PureMap/mockdata/data.d.ts +90 -0
- package/dist/types/Map/PureMap/mockdata/data.d.ts.map +1 -0
- package/dist/types/Map/config.d.ts +4 -0
- package/dist/types/Map/config.d.ts.map +1 -0
- package/dist/types/Map/index.d.ts +3 -0
- package/dist/types/Map/index.d.ts.map +1 -0
- package/dist/types/Markdown/Markdown.d.ts +31 -0
- package/dist/types/Markdown/Markdown.d.ts.map +1 -0
- package/dist/types/Markdown/config.d.ts +4 -0
- package/dist/types/Markdown/config.d.ts.map +1 -0
- package/dist/types/Markdown/index.d.ts +3 -0
- package/dist/types/Markdown/index.d.ts.map +1 -0
- package/dist/types/MarkerGauge/MarkerGauge.d.ts +55 -0
- package/dist/types/MarkerGauge/MarkerGauge.d.ts.map +1 -0
- package/dist/types/MarkerGauge/PureMarkerGauge/MarkerGauge.d.ts +72 -0
- package/dist/types/MarkerGauge/PureMarkerGauge/MarkerGauge.d.ts.map +1 -0
- package/dist/types/MarkerGauge/config.d.ts +4 -0
- package/dist/types/MarkerGauge/config.d.ts.map +1 -0
- package/dist/types/MarkerGauge/index.d.ts +3 -0
- package/dist/types/MarkerGauge/index.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/ParallelCoordinates.d.ts +58 -0
- package/dist/types/ParallelCoordinates/ParallelCoordinates.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/PureParallelCoordinates.d.ts +69 -0
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/PureParallelCoordinates.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesCanvas.d.ts +30 -0
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesCanvas.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesChart.d.ts +42 -0
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesChart.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesPrompt.d.ts +22 -0
- package/dist/types/ParallelCoordinates/PureParallelCoordinates/src/ParallelCoordinatesPrompt.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/config.d.ts +4 -0
- package/dist/types/ParallelCoordinates/config.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/index.d.ts +3 -0
- package/dist/types/ParallelCoordinates/index.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/mockdata/arrayValueData.d.ts +6 -0
- package/dist/types/ParallelCoordinates/mockdata/arrayValueData.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/mockdata/sampleCarData.d.ts +6 -0
- package/dist/types/ParallelCoordinates/mockdata/sampleCarData.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/mockdata/sampleCarNumericalData.d.ts +6 -0
- package/dist/types/ParallelCoordinates/mockdata/sampleCarNumericalData.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/mockdata/sampleFoodData.d.ts +6 -0
- package/dist/types/ParallelCoordinates/mockdata/sampleFoodData.d.ts.map +1 -0
- package/dist/types/ParallelCoordinates/mockdata/sampleStringNumericalData.d.ts +6 -0
- package/dist/types/ParallelCoordinates/mockdata/sampleStringNumericalData.d.ts.map +1 -0
- package/dist/types/Pie/Pie.d.ts +15 -0
- package/dist/types/Pie/Pie.d.ts.map +1 -0
- package/dist/types/Pie/config.d.ts +4 -0
- package/dist/types/Pie/config.d.ts.map +1 -0
- package/dist/types/Pie/index.d.ts +3 -0
- package/dist/types/Pie/index.d.ts.map +1 -0
- package/dist/types/Pie/pieUtils.d.ts +78 -0
- package/dist/types/Pie/pieUtils.d.ts.map +1 -0
- package/dist/types/Punchcard/Punchcard.d.ts +13 -0
- package/dist/types/Punchcard/Punchcard.d.ts.map +1 -0
- package/dist/types/Punchcard/PurePunchcard/Punchcard.d.ts +40 -0
- package/dist/types/Punchcard/PurePunchcard/Punchcard.d.ts.map +1 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardAxis.d.ts +20 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardAxis.d.ts.map +1 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardBubble.d.ts +27 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardBubble.d.ts.map +1 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardChartArea.d.ts +40 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardChartArea.d.ts.map +1 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardGridLines.d.ts +17 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardGridLines.d.ts.map +1 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardLegend.d.ts +21 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardLegend.d.ts.map +1 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardRow.d.ts +10 -0
- package/dist/types/Punchcard/PurePunchcard/src/PunchcardRow.d.ts.map +1 -0
- package/dist/types/Punchcard/PurePunchcard/src/utils/punchcardUtils.d.ts +285 -0
- package/dist/types/Punchcard/PurePunchcard/src/utils/punchcardUtils.d.ts.map +1 -0
- package/dist/types/Punchcard/config.d.ts +4 -0
- package/dist/types/Punchcard/config.d.ts.map +1 -0
- package/dist/types/Punchcard/index.d.ts +3 -0
- package/dist/types/Punchcard/index.d.ts.map +1 -0
- package/dist/types/Punchcard/punchcardUtils.d.ts +32 -0
- package/dist/types/Punchcard/punchcardUtils.d.ts.map +1 -0
- package/dist/types/Rectangle/Rectangle.d.ts +14 -0
- package/dist/types/Rectangle/Rectangle.d.ts.map +1 -0
- package/dist/types/Rectangle/config.d.ts +4 -0
- package/dist/types/Rectangle/config.d.ts.map +1 -0
- package/dist/types/Rectangle/index.d.ts +3 -0
- package/dist/types/Rectangle/index.d.ts.map +1 -0
- package/dist/types/Sankey/PureSankey/PureSankey.d.ts +98 -0
- package/dist/types/Sankey/PureSankey/PureSankey.d.ts.map +1 -0
- package/dist/types/Sankey/PureSankey/SankeyLink.d.ts +33 -0
- package/dist/types/Sankey/PureSankey/SankeyLink.d.ts.map +1 -0
- package/dist/types/Sankey/PureSankey/SankeyModels.d.ts +48 -0
- package/dist/types/Sankey/PureSankey/SankeyModels.d.ts.map +1 -0
- package/dist/types/Sankey/PureSankey/SankeyNode.d.ts +38 -0
- package/dist/types/Sankey/PureSankey/SankeyNode.d.ts.map +1 -0
- package/dist/types/Sankey/PureSankey/SankeyTooltip.d.ts +43 -0
- package/dist/types/Sankey/PureSankey/SankeyTooltip.d.ts.map +1 -0
- package/dist/types/Sankey/PureSankey/SankeyUtils.d.ts +20 -0
- package/dist/types/Sankey/PureSankey/SankeyUtils.d.ts.map +1 -0
- package/dist/types/Sankey/PureSankey/mockdata/data.d.ts +35 -0
- package/dist/types/Sankey/PureSankey/mockdata/data.d.ts.map +1 -0
- package/dist/types/Sankey/Sankey.d.ts +31 -0
- package/dist/types/Sankey/Sankey.d.ts.map +1 -0
- package/dist/types/Sankey/config.d.ts +4 -0
- package/dist/types/Sankey/config.d.ts.map +1 -0
- package/dist/types/Sankey/index.d.ts +3 -0
- package/dist/types/Sankey/index.d.ts.map +1 -0
- package/dist/types/Scatter/Scatter.d.ts +11 -0
- package/dist/types/Scatter/Scatter.d.ts.map +1 -0
- package/dist/types/Scatter/config.d.ts +4 -0
- package/dist/types/Scatter/config.d.ts.map +1 -0
- package/dist/types/Scatter/index.d.ts +3 -0
- package/dist/types/Scatter/index.d.ts.map +1 -0
- package/dist/types/Scatter/mockdata/data.d.ts +35 -0
- package/dist/types/Scatter/mockdata/data.d.ts.map +1 -0
- package/dist/types/Scatter/scatterUtils.d.ts +47 -0
- package/dist/types/Scatter/scatterUtils.d.ts.map +1 -0
- package/dist/types/SingleValue/SingleValue.d.ts +16 -0
- package/dist/types/SingleValue/SingleValue.d.ts.map +1 -0
- package/dist/types/SingleValue/config.d.ts +4 -0
- package/dist/types/SingleValue/config.d.ts.map +1 -0
- package/dist/types/SingleValue/index.d.ts +3 -0
- package/dist/types/SingleValue/index.d.ts.map +1 -0
- package/dist/types/SingleValueBasic/index.d.ts +3 -0
- package/dist/types/SingleValueBasic/index.d.ts.map +1 -0
- package/dist/types/SingleValueIcon/SingleValueIcon.d.ts +29 -0
- package/dist/types/SingleValueIcon/SingleValueIcon.d.ts.map +1 -0
- package/dist/types/SingleValueIcon/config.d.ts +4 -0
- package/dist/types/SingleValueIcon/config.d.ts.map +1 -0
- package/dist/types/SingleValueIcon/index.d.ts +3 -0
- package/dist/types/SingleValueIcon/index.d.ts.map +1 -0
- package/dist/types/SingleValueRadial/PureSingleValueRadial/GaugeGraph.d.ts +20 -0
- package/dist/types/SingleValueRadial/PureSingleValueRadial/GaugeGraph.d.ts.map +1 -0
- package/dist/types/SingleValueRadial/PureSingleValueRadial/utils/gaugeUtils.d.ts +82 -0
- package/dist/types/SingleValueRadial/PureSingleValueRadial/utils/gaugeUtils.d.ts.map +1 -0
- package/dist/types/SingleValueRadial/SingleValueRadial.d.ts +17 -0
- package/dist/types/SingleValueRadial/SingleValueRadial.d.ts.map +1 -0
- package/dist/types/SingleValueRadial/config.d.ts +4 -0
- package/dist/types/SingleValueRadial/config.d.ts.map +1 -0
- package/dist/types/SingleValueRadial/index.d.ts +3 -0
- package/dist/types/SingleValueRadial/index.d.ts.map +1 -0
- package/dist/types/SparkLine/index.d.ts +2 -0
- package/dist/types/SparkLine/index.d.ts.map +1 -0
- package/dist/types/Table/PureTable.d.ts +50 -0
- package/dist/types/Table/PureTable.d.ts.map +1 -0
- package/dist/types/Table/Table.d.ts +10 -0
- package/dist/types/Table/Table.d.ts.map +1 -0
- package/dist/types/Table/cells/ArrayCell.d.ts +12 -0
- package/dist/types/Table/cells/ArrayCell.d.ts.map +1 -0
- package/dist/types/Table/cells/SparklineCell.d.ts +13 -0
- package/dist/types/Table/cells/SparklineCell.d.ts.map +1 -0
- package/dist/types/Table/cells/SwitchTableCell.d.ts +5 -0
- package/dist/types/Table/cells/SwitchTableCell.d.ts.map +1 -0
- package/dist/types/Table/cells/TextCell.d.ts +12 -0
- package/dist/types/Table/cells/TextCell.d.ts.map +1 -0
- package/dist/types/Table/cells/index.d.ts +5 -0
- package/dist/types/Table/cells/index.d.ts.map +1 -0
- package/dist/types/Table/config.d.ts +4 -0
- package/dist/types/Table/config.d.ts.map +1 -0
- package/dist/types/Table/hooks.d.ts +130 -0
- package/dist/types/Table/hooks.d.ts.map +1 -0
- package/dist/types/Table/index.d.ts +3 -0
- package/dist/types/Table/index.d.ts.map +1 -0
- package/dist/types/Timeline/PureTimeline/PureTimeline.d.ts +81 -0
- package/dist/types/Timeline/PureTimeline/PureTimeline.d.ts.map +1 -0
- package/dist/types/Timeline/PureTimeline/src/CursorPlugin.d.ts +8 -0
- package/dist/types/Timeline/PureTimeline/src/CursorPlugin.d.ts.map +1 -0
- package/dist/types/Timeline/PureTimeline/src/TimelineLegend.d.ts +28 -0
- package/dist/types/Timeline/PureTimeline/src/TimelineLegend.d.ts.map +1 -0
- package/dist/types/Timeline/PureTimeline/src/TimelinePlugin.d.ts +16 -0
- package/dist/types/Timeline/PureTimeline/src/TimelinePlugin.d.ts.map +1 -0
- package/dist/types/Timeline/PureTimeline/src/TimelineTooltip.d.ts +11 -0
- package/dist/types/Timeline/PureTimeline/src/TimelineTooltip.d.ts.map +1 -0
- package/dist/types/Timeline/PureTimeline/src/TimelineUplot.d.ts +22 -0
- package/dist/types/Timeline/PureTimeline/src/TimelineUplot.d.ts.map +1 -0
- package/dist/types/Timeline/PureTimeline/src/TimelineYAxis.d.ts +20 -0
- package/dist/types/Timeline/PureTimeline/src/TimelineYAxis.d.ts.map +1 -0
- package/dist/types/Timeline/PureTimeline/src/XAxisPlugin.d.ts +18 -0
- package/dist/types/Timeline/PureTimeline/src/XAxisPlugin.d.ts.map +1 -0
- package/dist/types/Timeline/PureTimeline/src/utils/timelineUtils.d.ts +34 -0
- package/dist/types/Timeline/PureTimeline/src/utils/timelineUtils.d.ts.map +1 -0
- package/dist/types/Timeline/Timeline.d.ts +22 -0
- package/dist/types/Timeline/Timeline.d.ts.map +1 -0
- package/dist/types/Timeline/config.d.ts +4 -0
- package/dist/types/Timeline/config.d.ts.map +1 -0
- package/dist/types/Timeline/index.d.ts +3 -0
- package/dist/types/Timeline/index.d.ts.map +1 -0
- package/dist/types/Timeline/mockdata/basicTimelineData.d.ts +76 -0
- package/dist/types/Timeline/mockdata/basicTimelineData.d.ts.map +1 -0
- package/dist/types/Timeline/mockdata/categoricalTimelineData.d.ts +31 -0
- package/dist/types/Timeline/mockdata/categoricalTimelineData.d.ts.map +1 -0
- package/dist/types/Timeline/mockdata/timelineDataSource.d.ts +52 -0
- package/dist/types/Timeline/mockdata/timelineDataSource.d.ts.map +1 -0
- package/dist/types/common/Charting.d.ts +46 -0
- package/dist/types/common/Charting.d.ts.map +1 -0
- package/dist/types/common/ChartingApi.d.ts +36 -0
- package/dist/types/common/ChartingApi.d.ts.map +1 -0
- package/dist/types/common/DocExampleWithVizSandbox.d.ts +22 -0
- package/dist/types/common/DocExampleWithVizSandbox.d.ts.map +1 -0
- package/dist/types/common/OverviewDoc.d.ts +20 -0
- package/dist/types/common/OverviewDoc.d.ts.map +1 -0
- package/dist/types/common/SplunkVisualization.d.ts +16 -0
- package/dist/types/common/SplunkVisualization.d.ts.map +1 -0
- package/dist/types/common/SplunkVisualizationApi.d.ts +16 -0
- package/dist/types/common/SplunkVisualizationApi.d.ts.map +1 -0
- package/dist/types/common/ThemedDefaults.d.ts +2 -0
- package/dist/types/common/ThemedDefaults.d.ts.map +1 -0
- package/dist/types/common/TimeSeriesChartWrapper.d.ts +7 -0
- package/dist/types/common/TimeSeriesChartWrapper.d.ts.map +1 -0
- package/dist/types/common/chartingUtils.d.ts +164 -0
- package/dist/types/common/chartingUtils.d.ts.map +1 -0
- package/dist/types/common/components/IconPlaceholder.d.ts +21 -0
- package/dist/types/common/components/IconPlaceholder.d.ts.map +1 -0
- package/dist/types/common/components/MissingPropsMessage.d.ts +28 -0
- package/dist/types/common/components/MissingPropsMessage.d.ts.map +1 -0
- package/dist/types/common/components/TrellisTitle.d.ts +10 -0
- package/dist/types/common/components/TrellisTitle.d.ts.map +1 -0
- package/dist/types/common/configContext/singleValueContext.d.ts +3 -0
- package/dist/types/common/configContext/singleValueContext.d.ts.map +1 -0
- package/dist/types/common/docUtils.d.ts +24 -0
- package/dist/types/common/docUtils.d.ts.map +1 -0
- package/dist/types/common/editorConfig/AxesChartColorAndStyle.d.ts +5 -0
- package/dist/types/common/editorConfig/AxesChartColorAndStyle.d.ts.map +1 -0
- package/dist/types/common/editorConfig/AxesChartDataConfig.d.ts +31 -0
- package/dist/types/common/editorConfig/AxesChartDataConfig.d.ts.map +1 -0
- package/dist/types/common/editorConfig/AxesChartDataDisplay.d.ts +14 -0
- package/dist/types/common/editorConfig/AxesChartDataDisplay.d.ts.map +1 -0
- package/dist/types/common/editorConfig/AxesChartLegend.d.ts +8 -0
- package/dist/types/common/editorConfig/AxesChartLegend.d.ts.map +1 -0
- package/dist/types/common/editorConfig/AxesChartXGridAndLabels.d.ts +6 -0
- package/dist/types/common/editorConfig/AxesChartXGridAndLabels.d.ts.map +1 -0
- package/dist/types/common/editorConfig/AxesChartY2GridAndLabels.d.ts +11 -0
- package/dist/types/common/editorConfig/AxesChartY2GridAndLabels.d.ts.map +1 -0
- package/dist/types/common/editorConfig/AxesChartYGridAndLabels.d.ts +4 -0
- package/dist/types/common/editorConfig/AxesChartYGridAndLabels.d.ts.map +1 -0
- package/dist/types/common/editorConfig/BackgroundColor.d.ts +10 -0
- package/dist/types/common/editorConfig/BackgroundColor.d.ts.map +1 -0
- package/dist/types/common/editorConfig/DynamicFillColorEditor.d.ts +29 -0
- package/dist/types/common/editorConfig/DynamicFillColorEditor.d.ts.map +1 -0
- package/dist/types/common/editorConfig/DynamicGaugeColorEditor.d.ts +29 -0
- package/dist/types/common/editorConfig/DynamicGaugeColorEditor.d.ts.map +1 -0
- package/dist/types/common/editorConfig/DynamicStrokeColorEditor.d.ts +29 -0
- package/dist/types/common/editorConfig/DynamicStrokeColorEditor.d.ts.map +1 -0
- package/dist/types/common/editorConfig/Gauge.d.ts +4 -0
- package/dist/types/common/editorConfig/Gauge.d.ts.map +1 -0
- package/dist/types/common/editorConfig/Legend.d.ts +4 -0
- package/dist/types/common/editorConfig/Legend.d.ts.map +1 -0
- package/dist/types/common/editorConfig/RadialBackgroundColor.d.ts +10 -0
- package/dist/types/common/editorConfig/RadialBackgroundColor.d.ts.map +1 -0
- package/dist/types/common/editorConfig/StaticFillColorEditor.d.ts +10 -0
- package/dist/types/common/editorConfig/StaticFillColorEditor.d.ts.map +1 -0
- package/dist/types/common/editorConfig/StaticGaugeColorEditor.d.ts +10 -0
- package/dist/types/common/editorConfig/StaticGaugeColorEditor.d.ts.map +1 -0
- package/dist/types/common/editorConfig/StaticStrokeColorEditor.d.ts +10 -0
- package/dist/types/common/editorConfig/StaticStrokeColorEditor.d.ts.map +1 -0
- package/dist/types/common/editorConfig/TrellisEditors.d.ts +66 -0
- package/dist/types/common/editorConfig/TrellisEditors.d.ts.map +1 -0
- package/dist/types/common/gaugeUtils.d.ts +387 -0
- package/dist/types/common/gaugeUtils.d.ts.map +1 -0
- package/dist/types/common/hocs/FixedSizeContainer.d.ts +9 -0
- package/dist/types/common/hocs/FixedSizeContainer.d.ts.map +1 -0
- package/dist/types/common/hocs/mockdata/trellisData.d.ts +1288 -0
- package/dist/types/common/hocs/mockdata/trellisData.d.ts.map +1 -0
- package/dist/types/common/hocs/withEditModeCover.d.ts +10 -0
- package/dist/types/common/hocs/withEditModeCover.d.ts.map +1 -0
- package/dist/types/common/hocs/withPlaceholder.d.ts +8 -0
- package/dist/types/common/hocs/withPlaceholder.d.ts.map +1 -0
- package/dist/types/common/hocs/withTrellis.d.ts +18 -0
- package/dist/types/common/hocs/withTrellis.d.ts.map +1 -0
- package/dist/types/common/hooks/useDeepMemo.d.ts +15 -0
- package/dist/types/common/hooks/useDeepMemo.d.ts.map +1 -0
- package/dist/types/common/hooks/useDownsampleDataSources.d.ts +7 -0
- package/dist/types/common/hooks/useDownsampleDataSources.d.ts.map +1 -0
- package/dist/types/common/hooks/useEventCallback.d.ts +9 -0
- package/dist/types/common/hooks/useEventCallback.d.ts.map +1 -0
- package/dist/types/common/hooks/useGetXAndYFields.d.ts +10 -0
- package/dist/types/common/hooks/useGetXAndYFields.d.ts.map +1 -0
- package/dist/types/common/hooks/usePagination.d.ts +21 -0
- package/dist/types/common/hooks/usePagination.d.ts.map +1 -0
- package/dist/types/common/hooks/usePrevious.d.ts +2 -0
- package/dist/types/common/hooks/usePrevious.d.ts.map +1 -0
- package/dist/types/common/hooks/useSorting.d.ts +17 -0
- package/dist/types/common/hooks/useSorting.d.ts.map +1 -0
- package/dist/types/common/hooks/useTrellisEnabled.d.ts +4 -0
- package/dist/types/common/hooks/useTrellisEnabled.d.ts.map +1 -0
- package/dist/types/common/interfaces/ChartEvent.d.ts +26 -0
- package/dist/types/common/interfaces/ChartEvent.d.ts.map +1 -0
- package/dist/types/common/interfaces/DashboardVizProps.d.ts +27 -0
- package/dist/types/common/interfaces/DashboardVizProps.d.ts.map +1 -0
- package/dist/types/common/interfaces/DataContract.d.ts +19 -0
- package/dist/types/common/interfaces/DataContract.d.ts.map +1 -0
- package/dist/types/common/interfaces/DataSource.d.ts +45 -0
- package/dist/types/common/interfaces/DataSource.d.ts.map +1 -0
- package/dist/types/common/interfaces/DefaultContext.d.ts +30 -0
- package/dist/types/common/interfaces/DefaultContext.d.ts.map +1 -0
- package/dist/types/common/interfaces/Editor.d.ts +23 -0
- package/dist/types/common/interfaces/Editor.d.ts.map +1 -0
- package/dist/types/common/interfaces/ExtendedDashViz.d.ts +7 -0
- package/dist/types/common/interfaces/ExtendedDashViz.d.ts.map +1 -0
- package/dist/types/common/interfaces/Object.d.ts +4 -0
- package/dist/types/common/interfaces/Object.d.ts.map +1 -0
- package/dist/types/common/interfaces/Overview.d.ts +14 -0
- package/dist/types/common/interfaces/Overview.d.ts.map +1 -0
- package/dist/types/common/interfaces/ThemedDefaults.d.ts +5 -0
- package/dist/types/common/interfaces/ThemedDefaults.d.ts.map +1 -0
- package/dist/types/common/interfaces/VizActionHandler.d.ts +15 -0
- package/dist/types/common/interfaces/VizActionHandler.d.ts.map +1 -0
- package/dist/types/common/interfaces/VizBehavior.d.ts +25 -0
- package/dist/types/common/interfaces/VizBehavior.d.ts.map +1 -0
- package/dist/types/common/interfaces/VizCategory.d.ts +16 -0
- package/dist/types/common/interfaces/VizCategory.d.ts.map +1 -0
- package/dist/types/common/interfaces/VizConfig.d.ts +34 -0
- package/dist/types/common/interfaces/VizConfig.d.ts.map +1 -0
- package/dist/types/common/interfaces/VizEvent.d.ts +13 -0
- package/dist/types/common/interfaces/VizEvent.d.ts.map +1 -0
- package/dist/types/common/interfaces/VizProps.d.ts +8 -0
- package/dist/types/common/interfaces/VizProps.d.ts.map +1 -0
- package/dist/types/common/interfaces/VizRegistry.d.ts +7 -0
- package/dist/types/common/interfaces/VizRegistry.d.ts.map +1 -0
- package/dist/types/common/interfaces/VizSize.d.ts +8 -0
- package/dist/types/common/interfaces/VizSize.d.ts.map +1 -0
- package/dist/types/common/interfaces/VizStatus.d.ts +2 -0
- package/dist/types/common/interfaces/VizStatus.d.ts.map +1 -0
- package/dist/types/common/interfaces/index.d.ts +19 -0
- package/dist/types/common/interfaces/index.d.ts.map +1 -0
- package/dist/types/common/shapeUtils.d.ts +26 -0
- package/dist/types/common/shapeUtils.d.ts.map +1 -0
- package/dist/types/common/utils/configUtils.d.ts +59 -0
- package/dist/types/common/utils/configUtils.d.ts.map +1 -0
- package/dist/types/common/utils/dataUtils.d.ts +31 -0
- package/dist/types/common/utils/dataUtils.d.ts.map +1 -0
- package/dist/types/common/utils/featureFlagUtils.d.ts +3 -0
- package/dist/types/common/utils/featureFlagUtils.d.ts.map +1 -0
- package/dist/types/common/utils/hocUtils.d.ts +12 -0
- package/dist/types/common/utils/hocUtils.d.ts.map +1 -0
- package/dist/types/common/utils/mapUtils.d.ts +2 -0
- package/dist/types/common/utils/mapUtils.d.ts.map +1 -0
- package/dist/types/common/utils/styleUtils.d.ts +2 -0
- package/dist/types/common/utils/styleUtils.d.ts.map +1 -0
- package/dist/types/common/utils/tableUtils.d.ts +3 -0
- package/dist/types/common/utils/tableUtils.d.ts.map +1 -0
- package/dist/types/common/utils/trellisUtils.d.ts +60 -0
- package/dist/types/common/utils/trellisUtils.d.ts.map +1 -0
- package/dist/types/common/utils/urlUtils.d.ts +2 -0
- package/dist/types/common/utils/urlUtils.d.ts.map +1 -0
- package/dist/types/common/withDashboardViz.d.ts +22 -0
- package/dist/types/common/withDashboardViz.d.ts.map +1 -0
- package/package.json +37 -39
package/SingleValueIcon.js
CHANGED
|
@@ -1598,7 +1598,7 @@ SplunkVisualization.propTypes = {
|
|
|
1598
1598
|
/**
|
|
1599
1599
|
*
|
|
1600
1600
|
*/
|
|
1601
|
-
SplunkVisualization.
|
|
1601
|
+
SplunkVisualization.defaults = {
|
|
1602
1602
|
// BaseVisualization in dashboard-visualizations uses 100% for width but 250 for height
|
|
1603
1603
|
width: "100%",
|
|
1604
1604
|
height: INITIAL_HEIGHT,
|
|
@@ -1619,13 +1619,13 @@ var SplunkVisualization_default = SplunkVisualization;
|
|
|
1619
1619
|
// src/common/interfaces/DataSource.ts
|
|
1620
1620
|
var validSortDirs = ["asc", "desc", "none"];
|
|
1621
1621
|
|
|
1622
|
-
// src/common/hooks/
|
|
1622
|
+
// src/common/hooks/useSorting.ts
|
|
1623
1623
|
var SortParamsPropTypes = prop_types_exports.shape({
|
|
1624
1624
|
currentSortKey: prop_types_exports.string,
|
|
1625
1625
|
currentSortDir: prop_types_exports.oneOf(validSortDirs),
|
|
1626
1626
|
onSort: prop_types_exports.func
|
|
1627
1627
|
});
|
|
1628
|
-
var
|
|
1628
|
+
var useSortingParams = ({ requestParams, onRequestParamsChange }) => {
|
|
1629
1629
|
let currentSortKey;
|
|
1630
1630
|
let currentSortDir;
|
|
1631
1631
|
const nextSortDirMap = {
|
|
@@ -1655,14 +1655,14 @@ var getSortingParams = ({ requestParams, onRequestParamsChange }) => {
|
|
|
1655
1655
|
};
|
|
1656
1656
|
};
|
|
1657
1657
|
|
|
1658
|
-
// src/common/hooks/
|
|
1658
|
+
// src/common/hooks/usePagination.ts
|
|
1659
1659
|
var PaginatorParamsPropTypes = prop_types_exports.shape({
|
|
1660
1660
|
isPaging: prop_types_exports.bool,
|
|
1661
1661
|
current: prop_types_exports.number,
|
|
1662
1662
|
totalPages: prop_types_exports.number,
|
|
1663
1663
|
onChange: prop_types_exports.func
|
|
1664
1664
|
});
|
|
1665
|
-
var
|
|
1665
|
+
var usePaginationParams = ({
|
|
1666
1666
|
requestParams,
|
|
1667
1667
|
meta,
|
|
1668
1668
|
onRequestParamsChange
|
|
@@ -1706,6 +1706,76 @@ var useDeepMemo = (fn, dependencies) => {
|
|
|
1706
1706
|
return ref.current.value;
|
|
1707
1707
|
};
|
|
1708
1708
|
|
|
1709
|
+
// src/common/components/MissingPropsMessage.tsx
|
|
1710
|
+
var isMissing = (v) => {
|
|
1711
|
+
return v === null || v === void 0;
|
|
1712
|
+
};
|
|
1713
|
+
var missingKeys = (keys, target) => keys.filter((k) => isMissing(target[k]));
|
|
1714
|
+
var MissingPropsMessage = (props) => {
|
|
1715
|
+
const {
|
|
1716
|
+
width = SplunkVisualization_default.defaults.width,
|
|
1717
|
+
height = SplunkVisualization_default.defaults.height,
|
|
1718
|
+
missingProps,
|
|
1719
|
+
backgroundColor
|
|
1720
|
+
} = props;
|
|
1721
|
+
const cachedHandleResize = react_exports.useCallback((w, h) => {
|
|
1722
|
+
setContainerWidth(w);
|
|
1723
|
+
setContainerHeight(h);
|
|
1724
|
+
}, []);
|
|
1725
|
+
const [containerWidth, setContainerWidth] = react_exports.useState(Number(width));
|
|
1726
|
+
const [containerHeight, setContainerHeight] = react_exports.useState(Number(height));
|
|
1727
|
+
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(
|
|
1728
|
+
Message_default,
|
|
1729
|
+
{
|
|
1730
|
+
"data-test": "message",
|
|
1731
|
+
width,
|
|
1732
|
+
height,
|
|
1733
|
+
message: (0, i18n_exports._)(`Missing property: ${missingProps.join(", ")}`),
|
|
1734
|
+
level: "error"
|
|
1735
|
+
}
|
|
1736
|
+
));
|
|
1737
|
+
};
|
|
1738
|
+
var MissingPropsMessage_default = MissingPropsMessage;
|
|
1739
|
+
|
|
1740
|
+
// src/common/utils/hocUtils.ts
|
|
1741
|
+
var extendStaticWrapperProps = ({
|
|
1742
|
+
Wrapper,
|
|
1743
|
+
Visualization
|
|
1744
|
+
}) => {
|
|
1745
|
+
const extendProperties = ["propTypes", "config"];
|
|
1746
|
+
extendProperties.forEach((prop) => {
|
|
1747
|
+
if (Visualization[prop]) {
|
|
1748
|
+
Wrapper[prop] = Visualization[prop];
|
|
1749
|
+
}
|
|
1750
|
+
});
|
|
1751
|
+
};
|
|
1752
|
+
|
|
1753
|
+
// src/common/hocs/withEditModeCover.tsx
|
|
1754
|
+
var Cover = styled_components_default.div`
|
|
1755
|
+
position: absolute;
|
|
1756
|
+
left: 0;
|
|
1757
|
+
right: 0;
|
|
1758
|
+
top: 0;
|
|
1759
|
+
bottom: 0;
|
|
1760
|
+
`;
|
|
1761
|
+
var Blocker = styled_components_default.div.attrs({
|
|
1762
|
+
"data-splunk-visualization-version": "28.2.0 - 7eea200d8"
|
|
1763
|
+
})`
|
|
1764
|
+
position: relative;
|
|
1765
|
+
width: 100%;
|
|
1766
|
+
height: 100%;
|
|
1767
|
+
`;
|
|
1768
|
+
var withEditModeCover = (Visualization, disableEditModeCover) => {
|
|
1769
|
+
const Wrapper = (props) => {
|
|
1770
|
+
const { mode } = props;
|
|
1771
|
+
const showEditCover = mode === "edit" && !disableEditModeCover;
|
|
1772
|
+
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" }));
|
|
1773
|
+
};
|
|
1774
|
+
extendStaticWrapperProps({ Wrapper, Visualization });
|
|
1775
|
+
return Wrapper;
|
|
1776
|
+
};
|
|
1777
|
+
var withEditModeCover_default = withEditModeCover;
|
|
1778
|
+
|
|
1709
1779
|
// esm-externals:@splunk/visualizations-shared/colorUtils
|
|
1710
1780
|
var colorUtils_exports = {};
|
|
1711
1781
|
__export(colorUtils_exports, {
|
|
@@ -1715,6 +1785,15 @@ var defaultImport36 = __toESM(require("@splunk/visualizations-shared/colorUtils"
|
|
|
1715
1785
|
__reExport(colorUtils_exports, require("@splunk/visualizations-shared/colorUtils"));
|
|
1716
1786
|
var colorUtils_default = "default" in defaultImport36 ? defaultImport36.default : defaultImport36;
|
|
1717
1787
|
|
|
1788
|
+
// esm-externals:@splunk/themes/variables
|
|
1789
|
+
var variables_exports = {};
|
|
1790
|
+
__export(variables_exports, {
|
|
1791
|
+
default: () => variables_default
|
|
1792
|
+
});
|
|
1793
|
+
var defaultImport37 = __toESM(require("@splunk/themes/variables"));
|
|
1794
|
+
__reExport(variables_exports, require("@splunk/themes/variables"));
|
|
1795
|
+
var variables_default = "default" in defaultImport37 ? defaultImport37.default : defaultImport37;
|
|
1796
|
+
|
|
1718
1797
|
// src/common/hocs/FixedSizeContainer.tsx
|
|
1719
1798
|
var Item = styled_components_default.div.attrs(({ width }) => ({
|
|
1720
1799
|
style: {
|
|
@@ -1765,7 +1844,7 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
1765
1844
|
FixSizeItem,
|
|
1766
1845
|
{
|
|
1767
1846
|
"data-test": "fix-size-item",
|
|
1768
|
-
"data-splunk-visualization-version": "28.
|
|
1847
|
+
"data-splunk-visualization-version": "28.2.0 - 7eea200d8",
|
|
1769
1848
|
width,
|
|
1770
1849
|
height,
|
|
1771
1850
|
backgroundColor
|
|
@@ -1778,85 +1857,6 @@ var withFixedSizeContainer = (Viz) => {
|
|
|
1778
1857
|
};
|
|
1779
1858
|
var FixedSizeContainer_default = withFixedSizeContainer;
|
|
1780
1859
|
|
|
1781
|
-
// src/common/components/MissingPropsMessage.tsx
|
|
1782
|
-
var isMissing = (v) => {
|
|
1783
|
-
return v === null || v === void 0;
|
|
1784
|
-
};
|
|
1785
|
-
var missingKeys = (keys, target) => keys.filter((k) => isMissing(target[k]));
|
|
1786
|
-
var propTypes = {
|
|
1787
|
-
width: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number]),
|
|
1788
|
-
height: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number]),
|
|
1789
|
-
// eslint-disable-next-line react/no-unused-prop-types
|
|
1790
|
-
backgroundColor: prop_types_exports.string,
|
|
1791
|
-
missingProps: prop_types_exports.arrayOf(prop_types_exports.string)
|
|
1792
|
-
};
|
|
1793
|
-
var MissingPropsMessage = (props) => {
|
|
1794
|
-
const { width, height, missingProps } = props;
|
|
1795
|
-
return /* @__PURE__ */ react_exports.createElement(
|
|
1796
|
-
Message_default,
|
|
1797
|
-
{
|
|
1798
|
-
"data-test": "message",
|
|
1799
|
-
width,
|
|
1800
|
-
height,
|
|
1801
|
-
message: (0, i18n_exports._)(`Missing property: ${missingProps.join(", ")}`)
|
|
1802
|
-
}
|
|
1803
|
-
);
|
|
1804
|
-
};
|
|
1805
|
-
MissingPropsMessage.propTypes = propTypes;
|
|
1806
|
-
MissingPropsMessage.defaultProps = {
|
|
1807
|
-
width: "100%",
|
|
1808
|
-
height: 250
|
|
1809
|
-
};
|
|
1810
|
-
var MissingPropsMessage_default = FixedSizeContainer_default(MissingPropsMessage);
|
|
1811
|
-
|
|
1812
|
-
// src/common/utils/hocUtils.ts
|
|
1813
|
-
var extendStaticWrapperProps = ({
|
|
1814
|
-
Wrapper,
|
|
1815
|
-
Visualization
|
|
1816
|
-
}) => {
|
|
1817
|
-
const extendProperties = ["propTypes", "defaultProps", "config"];
|
|
1818
|
-
extendProperties.forEach((prop) => {
|
|
1819
|
-
if (Visualization[prop]) {
|
|
1820
|
-
Wrapper[prop] = Visualization[prop];
|
|
1821
|
-
}
|
|
1822
|
-
});
|
|
1823
|
-
};
|
|
1824
|
-
|
|
1825
|
-
// src/common/hocs/withEditModeCover.tsx
|
|
1826
|
-
var Cover = styled_components_default.div`
|
|
1827
|
-
position: absolute;
|
|
1828
|
-
left: 0;
|
|
1829
|
-
right: 0;
|
|
1830
|
-
top: 0;
|
|
1831
|
-
bottom: 0;
|
|
1832
|
-
`;
|
|
1833
|
-
var Blocker = styled_components_default.div.attrs({
|
|
1834
|
-
"data-splunk-visualization-version": "28.0.0 - 0c5f07712"
|
|
1835
|
-
})`
|
|
1836
|
-
position: relative;
|
|
1837
|
-
width: 100%;
|
|
1838
|
-
height: 100%;
|
|
1839
|
-
`;
|
|
1840
|
-
var withEditModeCover = (Visualization, disableEditModeCover) => {
|
|
1841
|
-
const Wrapper = (props) => {
|
|
1842
|
-
const { mode } = props;
|
|
1843
|
-
const showEditCover = mode === "edit" && !disableEditModeCover;
|
|
1844
|
-
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" }));
|
|
1845
|
-
};
|
|
1846
|
-
extendStaticWrapperProps({ Wrapper, Visualization });
|
|
1847
|
-
return Wrapper;
|
|
1848
|
-
};
|
|
1849
|
-
var withEditModeCover_default = withEditModeCover;
|
|
1850
|
-
|
|
1851
|
-
// esm-externals:@splunk/themes/variables
|
|
1852
|
-
var variables_exports = {};
|
|
1853
|
-
__export(variables_exports, {
|
|
1854
|
-
default: () => variables_default
|
|
1855
|
-
});
|
|
1856
|
-
var defaultImport37 = __toESM(require("@splunk/themes/variables"));
|
|
1857
|
-
__reExport(variables_exports, require("@splunk/themes/variables"));
|
|
1858
|
-
var variables_default = "default" in defaultImport37 ? defaultImport37.default : defaultImport37;
|
|
1859
|
-
|
|
1860
1860
|
// src/common/components/IconPlaceholder.tsx
|
|
1861
1861
|
var shouldShowIconPlaceholder = (dataSources, loading = false) => {
|
|
1862
1862
|
const data = (0, lodash_exports.get)(dataSources, "primary.data.columns[0]", void 0);
|
|
@@ -1865,18 +1865,23 @@ var shouldShowIconPlaceholder = (dataSources, loading = false) => {
|
|
|
1865
1865
|
const noFields = fields === void 0;
|
|
1866
1866
|
return loading || noData || noFields;
|
|
1867
1867
|
};
|
|
1868
|
-
var propTypes2 = {
|
|
1869
|
-
icon: prop_types_exports.func,
|
|
1870
|
-
width: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number]),
|
|
1871
|
-
height: prop_types_exports.oneOfType([prop_types_exports.string, prop_types_exports.number]),
|
|
1872
|
-
// eslint-disable-next-line react/no-unused-prop-types
|
|
1873
|
-
backgroundColor: prop_types_exports.string,
|
|
1874
|
-
iconColor: prop_types_exports.string
|
|
1875
|
-
};
|
|
1876
1868
|
var IconPlaceholder = (props) => {
|
|
1877
|
-
const {
|
|
1869
|
+
const {
|
|
1870
|
+
width = SplunkVisualization_default.defaults.width,
|
|
1871
|
+
height = SplunkVisualization_default.defaults.height,
|
|
1872
|
+
icon,
|
|
1873
|
+
iconColor,
|
|
1874
|
+
backgroundColor
|
|
1875
|
+
} = props;
|
|
1876
|
+
const cachedHandleResize = react_exports.useCallback((w, h) => {
|
|
1877
|
+
setContainerWidth(w);
|
|
1878
|
+
setContainerHeight(h);
|
|
1879
|
+
}, []);
|
|
1880
|
+
const [containerWidth, setContainerWidth] = react_exports.useState(Number(width));
|
|
1881
|
+
const [containerHeight, setContainerHeight] = react_exports.useState(Number(height));
|
|
1882
|
+
let content = /* @__PURE__ */ react_exports.createElement(Message_default, { width, height, level: "warning", message: (0, i18n_exports._)("No DataSource Connected") });
|
|
1878
1883
|
if (icon) {
|
|
1879
|
-
|
|
1884
|
+
content = react_exports.createElement(icon, {
|
|
1880
1885
|
style: {
|
|
1881
1886
|
left: "50%",
|
|
1882
1887
|
top: "50%",
|
|
@@ -1890,12 +1895,7 @@ var IconPlaceholder = (props) => {
|
|
|
1890
1895
|
"data-test": "icon-placeholder"
|
|
1891
1896
|
});
|
|
1892
1897
|
}
|
|
1893
|
-
return /* @__PURE__ */ react_exports.createElement(
|
|
1894
|
-
};
|
|
1895
|
-
IconPlaceholder.propTypes = propTypes2;
|
|
1896
|
-
IconPlaceholder.defaultProps = {
|
|
1897
|
-
width: "100%",
|
|
1898
|
-
height: 250
|
|
1898
|
+
return /* @__PURE__ */ react_exports.createElement("div", { style: { width: containerWidth, height: containerHeight, background: backgroundColor } }, /* @__PURE__ */ react_exports.createElement(SizeAwareWrapper_default, { width, height, onResize: cachedHandleResize }), content);
|
|
1899
1899
|
};
|
|
1900
1900
|
var IconPlaceholder_default = FixedSizeContainer_default(IconPlaceholder);
|
|
1901
1901
|
|
|
@@ -1905,11 +1905,17 @@ var withPlaceholder = (Visualization, useIconPlaceholder = shouldShowIconPlaceho
|
|
|
1905
1905
|
const { themes: themes3 } = config3;
|
|
1906
1906
|
const Wrapper = (props) => {
|
|
1907
1907
|
var _a, _b;
|
|
1908
|
-
const {
|
|
1908
|
+
const {
|
|
1909
|
+
dataSources,
|
|
1910
|
+
loading,
|
|
1911
|
+
options,
|
|
1912
|
+
height = SplunkVisualization_default.defaults.height,
|
|
1913
|
+
width = SplunkVisualization_default.defaults.width
|
|
1914
|
+
} = props;
|
|
1909
1915
|
const showPlaceholder = useIconPlaceholder(dataSources, loading, options);
|
|
1910
|
-
const
|
|
1911
|
-
const icon = (_b = config3.placeholderIcon) != null ? _b : config3.icon;
|
|
1916
|
+
const icon = (_a = config3.placeholderIcon) != null ? _a : config3.icon;
|
|
1912
1917
|
const iconColor = variables_default.contentColorActive(props);
|
|
1918
|
+
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);
|
|
1913
1919
|
if (config3.supports.includes("placeholder" /* PLACEHOLDER */) && showPlaceholder) {
|
|
1914
1920
|
return /* @__PURE__ */ react_exports.createElement(
|
|
1915
1921
|
IconPlaceholder_default,
|
|
@@ -2675,6 +2681,367 @@ var determineMinMax = (splitData, trellisSharedScale, yAxisMin, yAxisMax, stackM
|
|
|
2675
2681
|
return [shouldUseSharedMin ? sharedMin : yAxisMin, shouldUseSharedMax ? sharedMax : yAxisMax];
|
|
2676
2682
|
};
|
|
2677
2683
|
|
|
2684
|
+
// esm-externals:@splunk/visualization-canvas
|
|
2685
|
+
var visualization_canvas_exports = {};
|
|
2686
|
+
__export(visualization_canvas_exports, {
|
|
2687
|
+
default: () => visualization_canvas_default
|
|
2688
|
+
});
|
|
2689
|
+
var defaultImport40 = __toESM(require("@splunk/visualization-canvas"));
|
|
2690
|
+
__reExport(visualization_canvas_exports, require("@splunk/visualization-canvas"));
|
|
2691
|
+
var visualization_canvas_default = "default" in defaultImport40 ? defaultImport40.default : defaultImport40;
|
|
2692
|
+
|
|
2693
|
+
// esm-externals:@splunk/react-icons/Triangle
|
|
2694
|
+
var Triangle_exports = {};
|
|
2695
|
+
__export(Triangle_exports, {
|
|
2696
|
+
default: () => Triangle_default
|
|
2697
|
+
});
|
|
2698
|
+
var defaultImport41 = __toESM(require("@splunk/react-icons/Triangle"));
|
|
2699
|
+
__reExport(Triangle_exports, require("@splunk/react-icons/Triangle"));
|
|
2700
|
+
var Triangle_default = "default" in defaultImport41 ? defaultImport41.default : defaultImport41;
|
|
2701
|
+
|
|
2702
|
+
// src/common/chartingUtils.ts
|
|
2703
|
+
var DEFAULT_LINE_WIDTH = 2;
|
|
2704
|
+
var getAnnotationsForCanvas = ({
|
|
2705
|
+
annotationX,
|
|
2706
|
+
annotationColor,
|
|
2707
|
+
annotationLabel
|
|
2708
|
+
}) => (annotationX == null ? void 0 : annotationX.length) ? annotationX.map((timestamp, i) => ({
|
|
2709
|
+
key: annotationLabel == null ? void 0 : annotationLabel[i],
|
|
2710
|
+
time: timestamp,
|
|
2711
|
+
color: annotationColor == null ? void 0 : annotationColor[i]
|
|
2712
|
+
})) : [];
|
|
2713
|
+
var StyledTriangle = styled_components_default(Triangle_default)`
|
|
2714
|
+
color: ${(props) => props.eventColor || variables_default.severityColorNotice(props)};
|
|
2715
|
+
`;
|
|
2716
|
+
var triangleEventAnnotationRenderer = ({ event }) => {
|
|
2717
|
+
const eventWithColor = event;
|
|
2718
|
+
return react_default.createElement(StyledTriangle, {
|
|
2719
|
+
viewBox: "0 0 24 24",
|
|
2720
|
+
variant: "filled",
|
|
2721
|
+
eventColor: eventWithColor.color
|
|
2722
|
+
});
|
|
2723
|
+
};
|
|
2724
|
+
var canvasSupportedTimeSeriesCharts = ["splunk.line"];
|
|
2725
|
+
var isTimeSeriesCanvasRenderSupported = (vizConfigKey) => {
|
|
2726
|
+
return canvasSupportedTimeSeriesCharts.indexOf(vizConfigKey) > -1;
|
|
2727
|
+
};
|
|
2728
|
+
var filterChartDataFromInternalFields = (chartData) => {
|
|
2729
|
+
const { fields, columns } = chartData;
|
|
2730
|
+
const keepIndexes = fields.reduce((acc, field, index) => {
|
|
2731
|
+
const fieldName = typeof field === "object" ? field == null ? void 0 : field.name : field;
|
|
2732
|
+
if (!(fieldName == null ? void 0 : fieldName.startsWith("_")) || fieldName === "_time") {
|
|
2733
|
+
acc.push(index);
|
|
2734
|
+
}
|
|
2735
|
+
return acc;
|
|
2736
|
+
}, []);
|
|
2737
|
+
const filteredFields = keepIndexes.map((index) => fields[index]);
|
|
2738
|
+
const filteredColumns = keepIndexes.map((index) => columns[index]);
|
|
2739
|
+
return { fields: filteredFields, columns: filteredColumns };
|
|
2740
|
+
};
|
|
2741
|
+
var convert2DArrayToNumbers = (arr) => {
|
|
2742
|
+
return arr.map((subArray) => subArray.map((element) => parseFloat(element)));
|
|
2743
|
+
};
|
|
2744
|
+
var SideLegendWidth = 75;
|
|
2745
|
+
var commonLegendProps = { center: true, fontSize: 12, largerTiles: true, hideSeriesValue: true };
|
|
2746
|
+
var getLegend = (props) => {
|
|
2747
|
+
const legendPlacement = props == null ? void 0 : props.legendDisplay;
|
|
2748
|
+
switch (legendPlacement) {
|
|
2749
|
+
case "off":
|
|
2750
|
+
return false;
|
|
2751
|
+
case "left":
|
|
2752
|
+
return (0, visualization_canvas_exports.LeftLegendFactory)(__spreadValues({
|
|
2753
|
+
width: SideLegendWidth
|
|
2754
|
+
}, commonLegendProps));
|
|
2755
|
+
case "bottom":
|
|
2756
|
+
return (0, visualization_canvas_exports.BottomLegendFactory)(__spreadValues({
|
|
2757
|
+
wrap: true
|
|
2758
|
+
}, commonLegendProps));
|
|
2759
|
+
case "top":
|
|
2760
|
+
return (0, visualization_canvas_exports.TopLegendFactory)(__spreadValues({
|
|
2761
|
+
wrap: true
|
|
2762
|
+
}, commonLegendProps));
|
|
2763
|
+
default:
|
|
2764
|
+
return (0, visualization_canvas_exports.SideLegendFactory)(__spreadValues({
|
|
2765
|
+
width: SideLegendWidth
|
|
2766
|
+
}, commonLegendProps));
|
|
2767
|
+
}
|
|
2768
|
+
};
|
|
2769
|
+
var getComputedAxisTitles = (inputAxisTitle, fields, axisTitleVisibility) => {
|
|
2770
|
+
if (axisTitleVisibility === "collapsed") {
|
|
2771
|
+
return "";
|
|
2772
|
+
}
|
|
2773
|
+
let fieldTitle = fields.length > 1 ? "" : fields[0];
|
|
2774
|
+
if (!fieldTitle) {
|
|
2775
|
+
fieldTitle = "";
|
|
2776
|
+
}
|
|
2777
|
+
return (inputAxisTitle == null ? void 0 : inputAxisTitle.length) ? inputAxisTitle.trim() : fieldTitle;
|
|
2778
|
+
};
|
|
2779
|
+
var ellipsisAxisTitle = (axisTitle, containerSpacing, fontSize = 12) => {
|
|
2780
|
+
if (!axisTitle) {
|
|
2781
|
+
return "";
|
|
2782
|
+
}
|
|
2783
|
+
if (Number.isNaN(containerSpacing) || containerSpacing <= 0) {
|
|
2784
|
+
return axisTitle;
|
|
2785
|
+
}
|
|
2786
|
+
const availableHeight = containerSpacing * 0.6;
|
|
2787
|
+
const avgCharWidth = fontSize * 0.55;
|
|
2788
|
+
const maxChars = Math.floor(availableHeight / avgCharWidth);
|
|
2789
|
+
if (axisTitle.length <= maxChars) {
|
|
2790
|
+
return axisTitle;
|
|
2791
|
+
}
|
|
2792
|
+
if (maxChars <= 3) {
|
|
2793
|
+
return "...";
|
|
2794
|
+
}
|
|
2795
|
+
const availableChars = maxChars - 3;
|
|
2796
|
+
const halfChars = Math.floor(availableChars / 2);
|
|
2797
|
+
const start = axisTitle.slice(0, halfChars);
|
|
2798
|
+
const end = axisTitle.slice(-halfChars);
|
|
2799
|
+
return `${start}...${end}`;
|
|
2800
|
+
};
|
|
2801
|
+
var getFieldName = (field) => {
|
|
2802
|
+
const fieldName = typeof field === "object" ? field == null ? void 0 : field.name : field;
|
|
2803
|
+
return fieldName;
|
|
2804
|
+
};
|
|
2805
|
+
var getFieldNames = (fields) => {
|
|
2806
|
+
return fields.map((field) => getFieldName(field));
|
|
2807
|
+
};
|
|
2808
|
+
var getXScaleConfig = (label) => {
|
|
2809
|
+
const xConfig = { x: {} };
|
|
2810
|
+
xConfig.x.label = label;
|
|
2811
|
+
return xConfig;
|
|
2812
|
+
};
|
|
2813
|
+
var getYScaleConfig = (label, yAxisAbbreviation, yAxisScale) => {
|
|
2814
|
+
const scaleType = yAxisScale != null ? yAxisScale : "linear";
|
|
2815
|
+
const yConfig = { y: {} };
|
|
2816
|
+
yConfig.y.label = label;
|
|
2817
|
+
yConfig.y.type = scaleType;
|
|
2818
|
+
if (yAxisAbbreviation !== "none") {
|
|
2819
|
+
yConfig.y.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1);
|
|
2820
|
+
}
|
|
2821
|
+
if (yAxisAbbreviation === "none") {
|
|
2822
|
+
yConfig.y.width = 55;
|
|
2823
|
+
} else {
|
|
2824
|
+
yConfig.y.width = label && label.length > 0 ? 30 : 10;
|
|
2825
|
+
}
|
|
2826
|
+
return yConfig;
|
|
2827
|
+
};
|
|
2828
|
+
var getY2ScaleConfig = (label, axisAbbreviation, axisScale, roundAxisLabelsToInteger) => {
|
|
2829
|
+
const y2Config = { y2: {} };
|
|
2830
|
+
const scaleType = axisScale != null ? axisScale : "linear";
|
|
2831
|
+
y2Config.y2.label = label;
|
|
2832
|
+
y2Config.y2.side = "right";
|
|
2833
|
+
y2Config.y2.showGrid = false;
|
|
2834
|
+
y2Config.y2.type = scaleType;
|
|
2835
|
+
if (axisAbbreviation !== "none") {
|
|
2836
|
+
y2Config.y2.tickFmt = (v) => (0, visualization_canvas_exports.shortenNumber)(v, 1, roundAxisLabelsToInteger);
|
|
2837
|
+
} else if (roundAxisLabelsToInteger) {
|
|
2838
|
+
y2Config.y2.tickFmt = (v) => roundAxisLabelsToInteger ? Math.round(v).toString() : v.toString();
|
|
2839
|
+
}
|
|
2840
|
+
return y2Config;
|
|
2841
|
+
};
|
|
2842
|
+
var getSeriesOverrides = (yfields, y2fields, lineWidth, overlayFields, y2Enabled, nullValueMode) => {
|
|
2843
|
+
const seriesConfig = {};
|
|
2844
|
+
let spanGaps;
|
|
2845
|
+
let replaceNullsWithZero;
|
|
2846
|
+
if (nullValueMode === "gaps") {
|
|
2847
|
+
spanGaps = false;
|
|
2848
|
+
} else if (nullValueMode === "connect" || nullValueMode === "zero") {
|
|
2849
|
+
spanGaps = true;
|
|
2850
|
+
if (nullValueMode === "zero") {
|
|
2851
|
+
replaceNullsWithZero = true;
|
|
2852
|
+
}
|
|
2853
|
+
}
|
|
2854
|
+
yfields.forEach((field) => {
|
|
2855
|
+
seriesConfig[field] = {
|
|
2856
|
+
overrides: { width: lineWidth != null ? lineWidth : DEFAULT_LINE_WIDTH }
|
|
2857
|
+
};
|
|
2858
|
+
if (spanGaps !== void 0) {
|
|
2859
|
+
seriesConfig[field].overrides.spanGaps = spanGaps;
|
|
2860
|
+
}
|
|
2861
|
+
if (y2Enabled) {
|
|
2862
|
+
const shouldAssignToY2 = (
|
|
2863
|
+
// If y2Fields are present, assign all y2Fields to y2 scale
|
|
2864
|
+
(y2fields == null ? void 0 : y2fields.length) > 0 && y2fields.includes(field) || // Else, assign all overlayFields to y2 scale
|
|
2865
|
+
(!y2fields || y2fields.length === 0) && (overlayFields == null ? void 0 : overlayFields.includes(field))
|
|
2866
|
+
);
|
|
2867
|
+
if (shouldAssignToY2) {
|
|
2868
|
+
seriesConfig[field].overrides.scale = "y2";
|
|
2869
|
+
}
|
|
2870
|
+
}
|
|
2871
|
+
if (overlayFields == null ? void 0 : overlayFields.includes(field)) {
|
|
2872
|
+
seriesConfig[field].type = "line";
|
|
2873
|
+
}
|
|
2874
|
+
if (replaceNullsWithZero !== void 0) {
|
|
2875
|
+
seriesConfig[field].replaceNullsWithZero = replaceNullsWithZero;
|
|
2876
|
+
}
|
|
2877
|
+
});
|
|
2878
|
+
return seriesConfig;
|
|
2879
|
+
};
|
|
2880
|
+
|
|
2881
|
+
// src/common/TimeSeriesChartWrapper.tsx
|
|
2882
|
+
var TimeSeriesChartContainer = styled_components_default.div`
|
|
2883
|
+
overflow: hidden;
|
|
2884
|
+
${(props) => (0, style_exports.toDimension)((0, lodash_exports.pick)(props, ["width", "height"]))};
|
|
2885
|
+
|
|
2886
|
+
canvas {
|
|
2887
|
+
position: absolute !important; // This is needed for canvas element export pdf/png to work correctly
|
|
2888
|
+
}
|
|
2889
|
+
`;
|
|
2890
|
+
var handleClick = (chartEvent, props) => {
|
|
2891
|
+
const payload = __spreadProps(__spreadValues({}, (0, lodash_exports.pick)(chartEvent, "value", "seriesKey")), {
|
|
2892
|
+
name: chartEvent.seriesKey
|
|
2893
|
+
});
|
|
2894
|
+
delete payload.seriesKey;
|
|
2895
|
+
const clickHandler = props == null ? void 0 : props.onClick;
|
|
2896
|
+
if (clickHandler) {
|
|
2897
|
+
clickHandler({
|
|
2898
|
+
type: "point.click",
|
|
2899
|
+
originalEvent: chartEvent,
|
|
2900
|
+
payload
|
|
2901
|
+
});
|
|
2902
|
+
}
|
|
2903
|
+
};
|
|
2904
|
+
var handleLegendClick = (chartEvent, props) => {
|
|
2905
|
+
const payload = {
|
|
2906
|
+
name: chartEvent
|
|
2907
|
+
};
|
|
2908
|
+
const clickHandler = props == null ? void 0 : props.onClick;
|
|
2909
|
+
if (clickHandler) {
|
|
2910
|
+
clickHandler({
|
|
2911
|
+
type: "legend.click",
|
|
2912
|
+
originalEvent: chartEvent,
|
|
2913
|
+
payload
|
|
2914
|
+
});
|
|
2915
|
+
}
|
|
2916
|
+
};
|
|
2917
|
+
var TimeSeriesChartWrapper = (props) => {
|
|
2918
|
+
const { width, height, chartData, options, userLocale, annotationX, annotationLabel, annotationColor } = props;
|
|
2919
|
+
const {
|
|
2920
|
+
backgroundColor,
|
|
2921
|
+
seriesColors: seriesColorsStr,
|
|
2922
|
+
fieldColors,
|
|
2923
|
+
"axisTitleX.text": xAxisTitleText,
|
|
2924
|
+
"axisTitleY.text": yAxisTitleText,
|
|
2925
|
+
"axisTitleY2.text": y2AxisTitleText,
|
|
2926
|
+
"axisTitleX.visibility": xAxisTitleVisibility,
|
|
2927
|
+
"axisTitleY.visibility": yAxisTitleVisibility,
|
|
2928
|
+
"axisTitleY2.visibility": y2AxisTitleVisibility,
|
|
2929
|
+
"axisY.abbreviation": yAxisAbbreviation,
|
|
2930
|
+
"axisY.scale": yAxisScale,
|
|
2931
|
+
"axisY2.abbreviation": y2AxisAbbreviation,
|
|
2932
|
+
"axisY2.fields": y2FieldsStr,
|
|
2933
|
+
"axisY2.scale": y2AxisScale,
|
|
2934
|
+
"axisY2.enabled": y2Enabled,
|
|
2935
|
+
"axisLabelsY2.integerUnits": y2IntegerUnits,
|
|
2936
|
+
"chart.overlayFields": overlayFieldsStr,
|
|
2937
|
+
"chart.nullValueMode": nullValueMode,
|
|
2938
|
+
lineWidth
|
|
2939
|
+
} = options;
|
|
2940
|
+
const seriesColors = seriesColorsStr ? JSON.parse(seriesColorsStr) : void 0;
|
|
2941
|
+
const seriesColorsByField = fieldColors ? JSON.parse(fieldColors) : void 0;
|
|
2942
|
+
const [containerWidth, setContainerWidth] = react_exports.useState(Number(props.width));
|
|
2943
|
+
const [containerHeight, setContainerHeight] = react_exports.useState(Number(props.height));
|
|
2944
|
+
const cachedHandleResize = react_exports.useCallback((w, h) => {
|
|
2945
|
+
setContainerWidth(w);
|
|
2946
|
+
setContainerHeight(h);
|
|
2947
|
+
}, []);
|
|
2948
|
+
const filteredChartData = filterChartDataFromInternalFields({
|
|
2949
|
+
fields: chartData.fields,
|
|
2950
|
+
columns: chartData.seriesList
|
|
2951
|
+
});
|
|
2952
|
+
const xField = getFieldName(filteredChartData.fields[0]);
|
|
2953
|
+
const yFields = getFieldNames(
|
|
2954
|
+
filteredChartData.fields.length > 1 ? filteredChartData.fields.slice(1) : []
|
|
2955
|
+
);
|
|
2956
|
+
const y2Fields = y2FieldsStr ? y2FieldsStr.split(",").map((f) => f.trim()) : [];
|
|
2957
|
+
const overlayFields = overlayFieldsStr ? overlayFieldsStr.split(",").map((f) => f.trim()) : [];
|
|
2958
|
+
let xAxisTitle = getComputedAxisTitles(xAxisTitleText, [xField], xAxisTitleVisibility);
|
|
2959
|
+
xAxisTitle = ellipsisAxisTitle(xAxisTitle, containerWidth);
|
|
2960
|
+
let yAxisTitle = getComputedAxisTitles(yAxisTitleText, yFields, yAxisTitleVisibility);
|
|
2961
|
+
yAxisTitle = ellipsisAxisTitle(yAxisTitle, containerHeight);
|
|
2962
|
+
const fieldsForY2Axis = y2Fields.length > 0 ? y2Fields : overlayFields;
|
|
2963
|
+
let y2AxisTitle = getComputedAxisTitles(y2AxisTitleText, fieldsForY2Axis, y2AxisTitleVisibility);
|
|
2964
|
+
y2AxisTitle = ellipsisAxisTitle(y2AxisTitle, containerHeight);
|
|
2965
|
+
const xScaleConfig = getXScaleConfig(xAxisTitle);
|
|
2966
|
+
const yScaleConfig = getYScaleConfig(yAxisTitle, yAxisAbbreviation, yAxisScale);
|
|
2967
|
+
let y2ScaleConfig = {};
|
|
2968
|
+
if (y2Enabled) {
|
|
2969
|
+
y2ScaleConfig = getY2ScaleConfig(y2AxisTitle, y2AxisAbbreviation, y2AxisScale, y2IntegerUnits);
|
|
2970
|
+
}
|
|
2971
|
+
const uplotContainerElement = (0, react_exports.useRef)(null);
|
|
2972
|
+
const seriesDataFormatted = [
|
|
2973
|
+
filteredChartData.columns[0],
|
|
2974
|
+
...convert2DArrayToNumbers(filteredChartData.columns.slice(1))
|
|
2975
|
+
];
|
|
2976
|
+
chartData.fields = filteredChartData.fields;
|
|
2977
|
+
chartData.columns = seriesDataFormatted;
|
|
2978
|
+
const seriesOverrides = getSeriesOverrides(
|
|
2979
|
+
yFields,
|
|
2980
|
+
y2Fields,
|
|
2981
|
+
lineWidth,
|
|
2982
|
+
overlayFields,
|
|
2983
|
+
y2Enabled,
|
|
2984
|
+
nullValueMode
|
|
2985
|
+
);
|
|
2986
|
+
const chartingEventAnnotations = getAnnotationsForCanvas({
|
|
2987
|
+
annotationX,
|
|
2988
|
+
annotationColor,
|
|
2989
|
+
annotationLabel
|
|
2990
|
+
});
|
|
2991
|
+
const MemoizedChart = react_exports.memo(visualization_canvas_exports.TimeSeriesChart);
|
|
2992
|
+
const scaleConfig = __spreadValues(__spreadValues(__spreadValues({}, xScaleConfig), yScaleConfig), y2ScaleConfig);
|
|
2993
|
+
const memoizedChart = (0, react_exports.useMemo)(
|
|
2994
|
+
() => /* @__PURE__ */ react_exports.createElement(
|
|
2995
|
+
MemoizedChart,
|
|
2996
|
+
{
|
|
2997
|
+
data: chartData,
|
|
2998
|
+
width: containerWidth,
|
|
2999
|
+
height: containerHeight,
|
|
3000
|
+
seriesColors,
|
|
3001
|
+
seriesColorsByField,
|
|
3002
|
+
seriesConfig: seriesOverrides,
|
|
3003
|
+
legend: getLegend(props),
|
|
3004
|
+
scaleConfig,
|
|
3005
|
+
timestampFormat: "expanded",
|
|
3006
|
+
onCrosshairClick: (event) => handleClick(event, props),
|
|
3007
|
+
onSeriesClick: (event) => handleLegendClick(event, props),
|
|
3008
|
+
userLocale,
|
|
3009
|
+
events: chartingEventAnnotations,
|
|
3010
|
+
eventsConfig: { renderer: triangleEventAnnotationRenderer }
|
|
3011
|
+
}
|
|
3012
|
+
),
|
|
3013
|
+
[
|
|
3014
|
+
MemoizedChart,
|
|
3015
|
+
chartData,
|
|
3016
|
+
containerWidth,
|
|
3017
|
+
containerHeight,
|
|
3018
|
+
seriesColors,
|
|
3019
|
+
seriesColorsByField,
|
|
3020
|
+
seriesOverrides,
|
|
3021
|
+
lineWidth,
|
|
3022
|
+
props,
|
|
3023
|
+
scaleConfig,
|
|
3024
|
+
userLocale,
|
|
3025
|
+
chartingEventAnnotations
|
|
3026
|
+
]
|
|
3027
|
+
);
|
|
3028
|
+
const memoizedVisualization = (0, react_exports.useMemo)(() => {
|
|
3029
|
+
return /* @__PURE__ */ react_exports.createElement(VizStyleWrapper_default, { backgroundColor }, memoizedChart);
|
|
3030
|
+
}, [backgroundColor]);
|
|
3031
|
+
return /* @__PURE__ */ react_exports.createElement(
|
|
3032
|
+
TimeSeriesChartContainer,
|
|
3033
|
+
{
|
|
3034
|
+
height,
|
|
3035
|
+
width,
|
|
3036
|
+
ref: uplotContainerElement,
|
|
3037
|
+
"data-test": "timeseries-chart-wrapper"
|
|
3038
|
+
},
|
|
3039
|
+
/* @__PURE__ */ react_exports.createElement(SizeAwareWrapper_default, { width, height, onResize: cachedHandleResize }),
|
|
3040
|
+
memoizedVisualization
|
|
3041
|
+
);
|
|
3042
|
+
};
|
|
3043
|
+
var TimeSeriesChartWrapper_default = TimeSeriesChartWrapper;
|
|
3044
|
+
|
|
2678
3045
|
// src/common/withDashboardViz.tsx
|
|
2679
3046
|
var withDashboardViz = (opts) => {
|
|
2680
3047
|
const {
|
|
@@ -2692,30 +3059,29 @@ var withDashboardViz = (opts) => {
|
|
|
2692
3059
|
const DashboardViz = (props) => {
|
|
2693
3060
|
var _a;
|
|
2694
3061
|
const {
|
|
2695
|
-
mode,
|
|
3062
|
+
mode = "view",
|
|
2696
3063
|
hasEventHandlers,
|
|
2697
3064
|
dataSources,
|
|
2698
3065
|
// type of { [key: string]: DataSource }
|
|
2699
|
-
options,
|
|
3066
|
+
options = {},
|
|
2700
3067
|
context = {},
|
|
2701
3068
|
width,
|
|
2702
3069
|
height,
|
|
2703
|
-
onComputedProps,
|
|
2704
|
-
onEventTrigger,
|
|
3070
|
+
onComputedProps = lodash_exports.noop,
|
|
3071
|
+
onEventTrigger = SplunkVisualization_default.defaults.onEventTrigger,
|
|
2705
3072
|
theme,
|
|
2706
|
-
onRequestParamsChange
|
|
3073
|
+
onRequestParamsChange = lodash_exports.noop
|
|
2707
3074
|
} = props;
|
|
2708
|
-
const
|
|
2709
|
-
if (serializedTimezone) {
|
|
3075
|
+
const localeContext = react_exports.useContext(TimezoneContext_default);
|
|
3076
|
+
if (localeContext.serializedTimezone) {
|
|
2710
3077
|
if (!moment_default.getDefaultSplunkTimezone()) {
|
|
2711
|
-
moment_default.setDefaultSplunkTimezone(serializedTimezone);
|
|
3078
|
+
moment_default.setDefaultSplunkTimezone(localeContext.serializedTimezone);
|
|
2712
3079
|
}
|
|
2713
3080
|
}
|
|
2714
3081
|
const themeFunc = (themeVar) => {
|
|
2715
3082
|
var _a2, _b;
|
|
2716
3083
|
return (_b = (_a2 = vizConfig.themes)[themeVar]) == null ? void 0 : _b.call(_a2, props);
|
|
2717
3084
|
};
|
|
2718
|
-
const bgColorFromTheme = themeFunc("defaultBackgroundColor");
|
|
2719
3085
|
const {
|
|
2720
3086
|
family: currentThemeFamily,
|
|
2721
3087
|
colorScheme: currentThemeColorScheme,
|
|
@@ -2737,6 +3103,10 @@ var withDashboardViz = (opts) => {
|
|
|
2737
3103
|
featureFlagContext && featureFlagContext.visualizations_enableTrellis
|
|
2738
3104
|
);
|
|
2739
3105
|
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 */;
|
|
3106
|
+
const isAcceleratedRenderFeatureFlagOn = Boolean(
|
|
3107
|
+
featureFlagContext == null ? void 0 : featureFlagContext.visualizations_enableAcceleratedRender
|
|
3108
|
+
);
|
|
3109
|
+
const isAcceleratedRenderOn = isAcceleratedRenderFeatureFlagOn && isTimeSeriesCanvasRenderSupported(vizConfig.key) && (options == null ? void 0 : options.acceleratedRender) === true;
|
|
2740
3110
|
const isMounted = react_exports.useRef(true);
|
|
2741
3111
|
const optionsToEvaluate = react_exports.useMemo(() => {
|
|
2742
3112
|
var _a2;
|
|
@@ -2831,10 +3201,34 @@ var withDashboardViz = (opts) => {
|
|
|
2831
3201
|
currentThemeDensity,
|
|
2832
3202
|
optionsToEvaluate,
|
|
2833
3203
|
downsampledDataSources,
|
|
2834
|
-
serializedTimezone,
|
|
3204
|
+
localeContext.serializedTimezone,
|
|
2835
3205
|
useAsyncEvaluatedOptions
|
|
2836
3206
|
]);
|
|
2837
3207
|
const evaluatedOptionsToUse = !useAsyncEvaluatedOptions ? evaluatedOptions : evaluatedOptionsAsync;
|
|
3208
|
+
let dataSourceMetadata = {};
|
|
3209
|
+
const OptionKey = "paginateDataSourceKey";
|
|
3210
|
+
const optsKey = (0, lodash_exports.has)(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey];
|
|
3211
|
+
const paginateDataSourceKey = typeof optsKey === "string" ? optsKey : "primary";
|
|
3212
|
+
const requestParams = (0, lodash_exports.get)(dataSources, [paginateDataSourceKey, "requestParams"], {});
|
|
3213
|
+
const meta = (0, lodash_exports.get)(dataSources, [paginateDataSourceKey, "meta"], {});
|
|
3214
|
+
const handleRequestParamsChange = (payload) => onRequestParamsChange(paginateDataSourceKey, payload);
|
|
3215
|
+
const sortParams = useSortingParams({
|
|
3216
|
+
requestParams,
|
|
3217
|
+
meta,
|
|
3218
|
+
onRequestParamsChange: handleRequestParamsChange
|
|
3219
|
+
});
|
|
3220
|
+
const paginatorParams = usePaginationParams({
|
|
3221
|
+
requestParams,
|
|
3222
|
+
meta,
|
|
3223
|
+
onRequestParamsChange: handleRequestParamsChange
|
|
3224
|
+
});
|
|
3225
|
+
dataSourceMetadata = {
|
|
3226
|
+
sortParams,
|
|
3227
|
+
paginatorParams
|
|
3228
|
+
};
|
|
3229
|
+
if (vizConfig.supports.indexOf("page-and-sort" /* PAGE_AND_SORT */) === -1 && !(0, lodash_exports.has)(dataSources, paginateDataSourceKey)) {
|
|
3230
|
+
dataSourceMetadata = {};
|
|
3231
|
+
}
|
|
2838
3232
|
const clonedEvaluatedOptions = __spreadValues({}, evaluatedOptionsToUse);
|
|
2839
3233
|
if (isTrellisOn) {
|
|
2840
3234
|
clonedEvaluatedOptions.backgroundColor = clonedEvaluatedOptions == null ? void 0 : clonedEvaluatedOptions.trellisBackgroundColor;
|
|
@@ -2860,7 +3254,7 @@ var withDashboardViz = (opts) => {
|
|
|
2860
3254
|
width,
|
|
2861
3255
|
height,
|
|
2862
3256
|
missingProps: missing,
|
|
2863
|
-
backgroundColor:
|
|
3257
|
+
backgroundColor: themeFunc("defaultBackgroundColor")
|
|
2864
3258
|
}
|
|
2865
3259
|
);
|
|
2866
3260
|
}
|
|
@@ -2878,7 +3272,7 @@ var withDashboardViz = (opts) => {
|
|
|
2878
3272
|
}
|
|
2879
3273
|
eventCallbackProps[eventCallbackPropName] = (ev) => {
|
|
2880
3274
|
if (ev && ev.payload) {
|
|
2881
|
-
payload = ev.payload;
|
|
3275
|
+
payload = __spreadValues({}, ev.payload);
|
|
2882
3276
|
}
|
|
2883
3277
|
return onEventTrigger({
|
|
2884
3278
|
originalEvent: ev,
|
|
@@ -2898,45 +3292,27 @@ var withDashboardViz = (opts) => {
|
|
|
2898
3292
|
const computedVizProps = computeVizProps2(__spreadProps(__spreadValues(__spreadValues(__spreadValues({}, props), evaluatedOptionsToUse), eventCallbackProps), {
|
|
2899
3293
|
themeFunc
|
|
2900
3294
|
}));
|
|
2901
|
-
let dataSourceMetadata = {};
|
|
2902
|
-
const OptionKey = "paginateDataSourceKey";
|
|
2903
|
-
const optsKey = (0, lodash_exports.has)(evaluatedOptionsToUse, OptionKey) && evaluatedOptionsToUse[OptionKey];
|
|
2904
|
-
const paginateDataSourceKey = typeof optsKey === "string" ? optsKey : "primary";
|
|
2905
|
-
if (vizConfig.supports.indexOf("page-and-sort" /* PAGE_AND_SORT */) > -1 && (0, lodash_exports.has)(dataSources, paginateDataSourceKey)) {
|
|
2906
|
-
const requestParams = (0, lodash_exports.get)(dataSources, [paginateDataSourceKey, "requestParams"], {});
|
|
2907
|
-
const meta = (0, lodash_exports.get)(dataSources, [paginateDataSourceKey, "meta"], {});
|
|
2908
|
-
const handleRequestParamsChange = (payload) => onRequestParamsChange(paginateDataSourceKey, payload);
|
|
2909
|
-
const sortParams = getSortingParams({
|
|
2910
|
-
requestParams,
|
|
2911
|
-
meta,
|
|
2912
|
-
onRequestParamsChange: handleRequestParamsChange
|
|
2913
|
-
});
|
|
2914
|
-
const paginatorParams = getPaginationParams({
|
|
2915
|
-
requestParams,
|
|
2916
|
-
meta,
|
|
2917
|
-
onRequestParamsChange: handleRequestParamsChange
|
|
2918
|
-
});
|
|
2919
|
-
dataSourceMetadata = {
|
|
2920
|
-
sortParams,
|
|
2921
|
-
paginatorParams
|
|
2922
|
-
};
|
|
2923
|
-
}
|
|
2924
3295
|
if (useAsyncEvaluatedOptions && Object.keys(evaluatedOptionsToUse).length === 0) {
|
|
2925
3296
|
return null;
|
|
2926
3297
|
}
|
|
3298
|
+
let SanitizedViz = SanitizedReactViz;
|
|
3299
|
+
if (isAcceleratedRenderOn) {
|
|
3300
|
+
SanitizedViz = (0, SanitizeProps_exports.withSanitizedProps)(TimeSeriesChartWrapper_default);
|
|
3301
|
+
}
|
|
2927
3302
|
return /* @__PURE__ */ react_exports.createElement(
|
|
2928
|
-
|
|
2929
|
-
__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues({
|
|
3303
|
+
SanitizedViz,
|
|
3304
|
+
__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadValues(__spreadProps(__spreadValues({}, SplunkVisualization_default.defaults), {
|
|
2930
3305
|
mode,
|
|
2931
|
-
width,
|
|
2932
|
-
height
|
|
2933
|
-
|
|
3306
|
+
width: width || SplunkVisualization_default.defaults.width,
|
|
3307
|
+
height: height || SplunkVisualization_default.defaults.height,
|
|
3308
|
+
userLocale: localeContext
|
|
3309
|
+
}), downsamplingProps), evaluatedOptionsToUse), computedVizProps), eventCallbackProps), dataSourceMetadata)
|
|
2934
3310
|
);
|
|
2935
3311
|
};
|
|
2936
3312
|
DashboardViz.propTypes = __spreadValues(__spreadValues({}, SplunkVisualization_default.propTypes), ReactViz.propTypes);
|
|
2937
|
-
DashboardViz.defaultProps = __spreadProps(__spreadValues(
|
|
2938
|
-
//
|
|
2939
|
-
|
|
3313
|
+
DashboardViz.defaultProps = __spreadProps(__spreadValues({}, ReactViz.defaultProps), {
|
|
3314
|
+
// we still need ReactViz.defaultProps for the visualizations that still have them
|
|
3315
|
+
onEventTrigger: SplunkVisualization_default.defaults.onEventTrigger
|
|
2940
3316
|
});
|
|
2941
3317
|
DashboardViz.config = vizConfig;
|
|
2942
3318
|
return (0, styled_components_exports.withTheme)(
|
|
@@ -2950,27 +3326,27 @@ var PresetPalettes_exports = {};
|
|
|
2950
3326
|
__export(PresetPalettes_exports, {
|
|
2951
3327
|
default: () => PresetPalettes_default
|
|
2952
3328
|
});
|
|
2953
|
-
var
|
|
3329
|
+
var defaultImport42 = __toESM(require("@splunk/visualization-color-palettes/editors/PresetPalettes"));
|
|
2954
3330
|
__reExport(PresetPalettes_exports, require("@splunk/visualization-color-palettes/editors/PresetPalettes"));
|
|
2955
|
-
var PresetPalettes_default = "default" in
|
|
3331
|
+
var PresetPalettes_default = "default" in defaultImport42 ? defaultImport42.default : defaultImport42;
|
|
2956
3332
|
|
|
2957
3333
|
// esm-externals:@splunk/themes/pick
|
|
2958
3334
|
var pick_exports2 = {};
|
|
2959
3335
|
__export(pick_exports2, {
|
|
2960
3336
|
default: () => pick_default2
|
|
2961
3337
|
});
|
|
2962
|
-
var
|
|
3338
|
+
var defaultImport43 = __toESM(require("@splunk/themes/pick"));
|
|
2963
3339
|
__reExport(pick_exports2, require("@splunk/themes/pick"));
|
|
2964
|
-
var pick_default2 = "default" in
|
|
3340
|
+
var pick_default2 = "default" in defaultImport43 ? defaultImport43.default : defaultImport43;
|
|
2965
3341
|
|
|
2966
3342
|
// esm-externals:@splunk/visualizations-shared/configUtils
|
|
2967
3343
|
var configUtils_exports = {};
|
|
2968
3344
|
__export(configUtils_exports, {
|
|
2969
3345
|
default: () => configUtils_default
|
|
2970
3346
|
});
|
|
2971
|
-
var
|
|
3347
|
+
var defaultImport44 = __toESM(require("@splunk/visualizations-shared/configUtils"));
|
|
2972
3348
|
__reExport(configUtils_exports, require("@splunk/visualizations-shared/configUtils"));
|
|
2973
|
-
var configUtils_default = "default" in
|
|
3349
|
+
var configUtils_default = "default" in defaultImport44 ? defaultImport44.default : defaultImport44;
|
|
2974
3350
|
|
|
2975
3351
|
// src/common/configContext/singleValueContext.ts
|
|
2976
3352
|
var defaultContext = {
|
|
@@ -3687,27 +4063,27 @@ var Paginator_exports = {};
|
|
|
3687
4063
|
__export(Paginator_exports, {
|
|
3688
4064
|
default: () => Paginator_default
|
|
3689
4065
|
});
|
|
3690
|
-
var
|
|
4066
|
+
var defaultImport45 = __toESM(require("@splunk/react-ui/Paginator"));
|
|
3691
4067
|
__reExport(Paginator_exports, require("@splunk/react-ui/Paginator"));
|
|
3692
|
-
var Paginator_default = "default" in
|
|
4068
|
+
var Paginator_default = "default" in defaultImport45 ? defaultImport45.default : defaultImport45;
|
|
3693
4069
|
|
|
3694
4070
|
// esm-externals:@splunk/themes
|
|
3695
4071
|
var themes_exports = {};
|
|
3696
4072
|
__export(themes_exports, {
|
|
3697
4073
|
default: () => themes_default
|
|
3698
4074
|
});
|
|
3699
|
-
var
|
|
4075
|
+
var defaultImport46 = __toESM(require("@splunk/themes"));
|
|
3700
4076
|
__reExport(themes_exports, require("@splunk/themes"));
|
|
3701
|
-
var themes_default = "default" in
|
|
4077
|
+
var themes_default = "default" in defaultImport46 ? defaultImport46.default : defaultImport46;
|
|
3702
4078
|
|
|
3703
4079
|
// esm-externals:@splunk/themes/useSplunkTheme
|
|
3704
4080
|
var useSplunkTheme_exports = {};
|
|
3705
4081
|
__export(useSplunkTheme_exports, {
|
|
3706
4082
|
default: () => useSplunkTheme_default
|
|
3707
4083
|
});
|
|
3708
|
-
var
|
|
4084
|
+
var defaultImport47 = __toESM(require("@splunk/themes/useSplunkTheme"));
|
|
3709
4085
|
__reExport(useSplunkTheme_exports, require("@splunk/themes/useSplunkTheme"));
|
|
3710
|
-
var useSplunkTheme_default = "default" in
|
|
4086
|
+
var useSplunkTheme_default = "default" in defaultImport47 ? defaultImport47.default : defaultImport47;
|
|
3711
4087
|
|
|
3712
4088
|
// src/common/hocs/withTrellis.tsx
|
|
3713
4089
|
var TrellisContainer = styled_components_default.div`
|
|
@@ -3939,7 +4315,6 @@ var withTrellis = (Viz) => {
|
|
|
3939
4315
|
return null;
|
|
3940
4316
|
};
|
|
3941
4317
|
VizWithTrellis.propTypes = Viz.proptypes;
|
|
3942
|
-
VizWithTrellis.defaultProps = Viz.defaultProps;
|
|
3943
4318
|
VizWithTrellis.config = Viz.config;
|
|
3944
4319
|
return VizWithTrellis;
|
|
3945
4320
|
};
|