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