@mui/x-charts 9.0.0-alpha.3 → 9.0.0-alpha.4
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/BarChart/BarChart.d.mts +2 -2
- package/BarChart/BarChart.d.ts +2 -2
- package/BarChart/BarChart.js +36 -6
- package/BarChart/BarChart.mjs +36 -6
- package/BarChart/BarElement.js +1 -3
- package/BarChart/BarElement.mjs +1 -3
- package/BarChart/BarLabel/BarLabel.js +1 -11
- package/BarChart/BarLabel/BarLabel.mjs +1 -11
- package/BarChart/BarLabel/BarLabelItem.js +1 -3
- package/BarChart/BarLabel/BarLabelItem.mjs +1 -3
- package/BarChart/BarLabel/index.d.mts +1 -3
- package/BarChart/BarLabel/index.d.ts +1 -3
- package/BarChart/BarLabel/index.js +1 -14
- package/BarChart/BarLabel/index.mjs +1 -2
- package/BarChart/BarPlot.d.mts +4 -0
- package/BarChart/BarPlot.d.ts +4 -0
- package/BarChart/BarPlot.js +8 -2
- package/BarChart/BarPlot.mjs +8 -2
- package/BarChart/BatchBarPlot/BatchBarPlot.js +3 -3
- package/BarChart/BatchBarPlot/BatchBarPlot.mjs +3 -3
- package/BarChart/index.d.mts +0 -1
- package/BarChart/index.d.ts +0 -1
- package/BarChart/index.js +0 -12
- package/BarChart/index.mjs +0 -1
- package/BarChart/seriesConfig/bar/legend.js +2 -21
- package/BarChart/seriesConfig/bar/legend.mjs +2 -21
- package/BarChart/useBarChartProps.d.mts +2 -2
- package/BarChart/useBarChartProps.d.ts +2 -2
- package/BarChart/useBarChartProps.js +2 -2
- package/BarChart/useBarChartProps.mjs +2 -2
- package/BarChart/useRegisterItemClickHandlers.js +2 -2
- package/BarChart/useRegisterItemClickHandlers.mjs +2 -2
- package/CHANGELOG.md +123 -0
- package/ChartsAxis/index.d.mts +2 -1
- package/ChartsAxis/index.d.ts +2 -1
- package/ChartsAxis/index.js +11 -11
- package/ChartsAxis/index.mjs +1 -1
- package/ChartsAxisHighlight/index.d.mts +2 -1
- package/ChartsAxisHighlight/index.d.ts +2 -1
- package/ChartsAxisHighlight/index.js +12 -10
- package/ChartsAxisHighlight/index.mjs +1 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.mts +6 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.d.ts +6 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.js +12 -9
- package/ChartsBrushOverlay/ChartsBrushOverlay.mjs +12 -9
- package/ChartsContainer/ChartsContainer.js +49 -15
- package/ChartsContainer/ChartsContainer.mjs +49 -15
- package/ChartsContainer/useChartsContainerProps.d.mts +2 -2
- package/ChartsContainer/useChartsContainerProps.d.ts +2 -2
- package/ChartsContainer/useChartsContainerProps.js +8 -8
- package/ChartsContainer/useChartsContainerProps.mjs +8 -8
- package/ChartsDataProvider/ChartsDataProvider.js +0 -6
- package/ChartsDataProvider/ChartsDataProvider.mjs +0 -6
- package/ChartsDataProvider/useChartsDataProviderProps.js +1 -1
- package/ChartsDataProvider/useChartsDataProviderProps.mjs +1 -1
- package/ChartsGrid/ChartsGrid.d.mts +4 -0
- package/ChartsGrid/ChartsGrid.d.ts +4 -0
- package/ChartsGrid/ChartsGrid.js +4 -2
- package/ChartsGrid/ChartsGrid.mjs +4 -2
- package/ChartsGrid/ChartsHorizontalGrid.js +2 -2
- package/ChartsGrid/ChartsHorizontalGrid.mjs +2 -2
- package/ChartsGrid/ChartsVerticalGrid.js +2 -2
- package/ChartsGrid/ChartsVerticalGrid.mjs +2 -2
- package/ChartsGrid/index.d.mts +2 -1
- package/ChartsGrid/index.d.ts +2 -1
- package/ChartsGrid/index.js +11 -11
- package/ChartsGrid/index.mjs +1 -1
- package/ChartsLayerContainer/ChartsLayerContainer.d.mts +10 -0
- package/ChartsLayerContainer/ChartsLayerContainer.d.ts +10 -0
- package/ChartsLayerContainer/ChartsLayerContainer.js +49 -9
- package/ChartsLayerContainer/ChartsLayerContainer.mjs +50 -10
- package/ChartsLayerContainer/chartsLayerContainerClasses.d.mts +6 -0
- package/ChartsLayerContainer/chartsLayerContainerClasses.d.ts +6 -0
- package/ChartsLayerContainer/chartsLayerContainerClasses.js +21 -0
- package/ChartsLayerContainer/chartsLayerContainerClasses.mjs +13 -0
- package/ChartsLegend/ChartsLegend.js +2 -2
- package/ChartsLegend/ChartsLegend.mjs +2 -2
- package/ChartsLegend/legendContext.types.d.mts +0 -6
- package/ChartsLegend/legendContext.types.d.ts +0 -6
- package/ChartsLegend/onClickContextBuilder.js +0 -1
- package/ChartsLegend/onClickContextBuilder.mjs +0 -1
- package/ChartsOverlay/ChartsLoadingOverlay.js +2 -8
- package/ChartsOverlay/ChartsLoadingOverlay.mjs +2 -8
- package/ChartsOverlay/ChartsNoDataOverlay.js +2 -8
- package/ChartsOverlay/ChartsNoDataOverlay.mjs +2 -8
- package/ChartsOverlay/ChartsOverlay.d.mts +0 -6
- package/ChartsOverlay/ChartsOverlay.d.ts +0 -6
- package/ChartsReferenceLine/index.d.mts +2 -1
- package/ChartsReferenceLine/index.d.ts +2 -1
- package/ChartsReferenceLine/index.js +11 -11
- package/ChartsReferenceLine/index.mjs +1 -2
- package/ChartsSurface/ChartsSurface.d.mts +2 -3
- package/ChartsSurface/ChartsSurface.d.ts +2 -3
- package/ChartsSurface/ChartsSurface.js +14 -2
- package/ChartsSurface/ChartsSurface.mjs +14 -2
- package/ChartsSvgLayer/ChartsSvgLayer.d.mts +0 -4
- package/ChartsSvgLayer/ChartsSvgLayer.d.ts +0 -4
- package/ChartsSvgLayer/ChartsSvgLayer.js +9 -31
- package/ChartsSvgLayer/ChartsSvgLayer.mjs +9 -31
- package/ChartsTooltip/ChartsAxisTooltipContent.js +45 -31
- package/ChartsTooltip/ChartsAxisTooltipContent.mjs +45 -31
- package/ChartsTooltip/ChartsItemTooltipContent.js +77 -41
- package/ChartsTooltip/ChartsItemTooltipContent.mjs +76 -41
- package/ChartsTooltip/ChartsTooltipContainer.js +5 -1
- package/ChartsTooltip/ChartsTooltipContainer.mjs +5 -1
- package/ChartsTooltip/index.d.mts +1 -2
- package/ChartsTooltip/index.d.ts +1 -2
- package/ChartsTooltip/index.js +1 -16
- package/ChartsTooltip/index.mjs +1 -2
- package/ChartsTooltip/useAxesTooltip.d.mts +2 -3
- package/ChartsTooltip/useAxesTooltip.d.ts +2 -3
- package/ChartsTooltip/useItemTooltip.d.mts +2 -4
- package/ChartsTooltip/useItemTooltip.d.ts +2 -4
- package/ChartsTooltip/utils.d.mts +0 -4
- package/ChartsTooltip/utils.d.ts +0 -4
- package/ChartsTooltip/utils.js +0 -39
- package/ChartsTooltip/utils.mjs +0 -38
- package/ChartsXAxis/ChartsGroupedXAxisTicks.js +2 -2
- package/ChartsXAxis/ChartsGroupedXAxisTicks.mjs +2 -2
- package/ChartsXAxis/ChartsSingleXAxisTicks.js +2 -2
- package/ChartsXAxis/ChartsSingleXAxisTicks.mjs +2 -2
- package/ChartsXAxis/ChartsXAxisImpl.js +3 -1
- package/ChartsXAxis/ChartsXAxisImpl.mjs +3 -1
- package/ChartsXAxis/useAxisTicksProps.d.mts +81 -0
- package/ChartsXAxis/useAxisTicksProps.d.ts +81 -0
- package/ChartsYAxis/ChartsGroupedYAxisTicks.js +2 -2
- package/ChartsYAxis/ChartsGroupedYAxisTicks.mjs +2 -2
- package/ChartsYAxis/ChartsSingleYAxisTicks.js +2 -2
- package/ChartsYAxis/ChartsSingleYAxisTicks.mjs +2 -2
- package/ChartsYAxis/ChartsYAxisImpl.js +3 -1
- package/ChartsYAxis/ChartsYAxisImpl.mjs +3 -1
- package/ChartsYAxis/useAxisTicksProps.d.mts +81 -0
- package/ChartsYAxis/useAxisTicksProps.d.ts +81 -0
- package/Gauge/Gauge.js +12 -0
- package/Gauge/Gauge.mjs +12 -0
- package/Gauge/GaugeContainer.d.mts +1 -1
- package/Gauge/GaugeContainer.d.ts +1 -1
- package/Gauge/GaugeContainer.js +14 -2
- package/Gauge/GaugeContainer.mjs +14 -2
- package/Gauge/index.d.mts +2 -1
- package/Gauge/index.d.ts +2 -1
- package/Gauge/index.js +7 -11
- package/Gauge/index.mjs +1 -1
- package/LineChart/AreaElement.d.mts +2 -35
- package/LineChart/AreaElement.d.ts +2 -35
- package/LineChart/AreaElement.js +3 -41
- package/LineChart/AreaElement.mjs +3 -41
- package/LineChart/CircleMarkElement.d.mts +1 -1
- package/LineChart/CircleMarkElement.d.ts +1 -1
- package/LineChart/CircleMarkElement.js +3 -11
- package/LineChart/CircleMarkElement.mjs +4 -12
- package/LineChart/LineChart.d.mts +2 -2
- package/LineChart/LineChart.d.ts +2 -2
- package/LineChart/LineChart.js +33 -9
- package/LineChart/LineChart.mjs +33 -9
- package/LineChart/LineElement.d.mts +2 -35
- package/LineChart/LineElement.d.ts +2 -35
- package/LineChart/LineElement.js +3 -41
- package/LineChart/LineElement.mjs +3 -41
- package/LineChart/LineHighlightElement.d.mts +0 -20
- package/LineChart/LineHighlightElement.d.ts +0 -20
- package/LineChart/LineHighlightElement.js +2 -39
- package/LineChart/LineHighlightElement.mjs +2 -39
- package/LineChart/LineHighlightPlot.js +2 -2
- package/LineChart/LineHighlightPlot.mjs +2 -2
- package/LineChart/MarkElement.d.mts +1 -1
- package/LineChart/MarkElement.d.ts +1 -1
- package/LineChart/MarkElement.js +3 -4
- package/LineChart/MarkElement.mjs +4 -5
- package/LineChart/MarkPlot.js +2 -2
- package/LineChart/MarkPlot.mjs +2 -2
- package/LineChart/index.d.mts +0 -2
- package/LineChart/index.d.ts +0 -2
- package/LineChart/index.js +0 -15
- package/LineChart/index.mjs +0 -1
- package/LineChart/seriesConfig/seriesProcessor.js +8 -5
- package/LineChart/seriesConfig/seriesProcessor.mjs +8 -5
- package/LineChart/useLineChartProps.d.mts +2 -2
- package/LineChart/useLineChartProps.d.ts +2 -2
- package/LineChart/useLineChartProps.js +2 -2
- package/LineChart/useLineChartProps.mjs +2 -2
- package/LineChart/useMarkPlotData.js +2 -2
- package/LineChart/useMarkPlotData.mjs +2 -2
- package/PieChart/FocusedPieArc.js +1 -4
- package/PieChart/FocusedPieArc.mjs +2 -4
- package/PieChart/PieArc.d.mts +0 -37
- package/PieChart/PieArc.d.ts +0 -37
- package/PieChart/PieArc.js +3 -42
- package/PieChart/PieArc.mjs +3 -42
- package/PieChart/PieArcLabel.d.mts +2 -43
- package/PieChart/PieArcLabel.d.ts +2 -43
- package/PieChart/PieArcLabel.js +3 -46
- package/PieChart/PieArcLabel.mjs +5 -48
- package/PieChart/PieArcLabelPlot.js +0 -2
- package/PieChart/PieArcLabelPlot.mjs +0 -2
- package/PieChart/PieChart.d.mts +2 -2
- package/PieChart/PieChart.d.ts +2 -2
- package/PieChart/PieChart.js +17 -5
- package/PieChart/PieChart.mjs +17 -5
- package/PieChart/index.d.mts +1 -1
- package/PieChart/index.d.ts +1 -1
- package/PieChart/seriesConfig/legend.js +0 -2
- package/PieChart/seriesConfig/legend.mjs +0 -2
- package/RadarChart/RadarAxis/RadarAxis.d.mts +6 -2
- package/RadarChart/RadarAxis/RadarAxis.d.ts +6 -2
- package/RadarChart/RadarAxis/RadarAxis.js +7 -5
- package/RadarChart/RadarAxis/RadarAxis.mjs +6 -4
- package/RadarChart/RadarAxis/index.d.mts +1 -2
- package/RadarChart/RadarAxis/index.d.ts +1 -2
- package/RadarChart/RadarAxis/index.js +1 -13
- package/RadarChart/RadarAxis/index.mjs +1 -2
- package/RadarChart/RadarAxis/useRadarAxis.js +2 -2
- package/RadarChart/RadarAxis/useRadarAxis.mjs +2 -2
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.mts +6 -2
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.d.ts +6 -2
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.js +9 -14
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.mjs +8 -13
- package/RadarChart/RadarAxisHighlight/index.d.mts +1 -2
- package/RadarChart/RadarAxisHighlight/index.d.ts +1 -2
- package/RadarChart/RadarAxisHighlight/index.mjs +1 -2
- package/RadarChart/RadarAxisHighlight/useRadarAxisHighlight.js +2 -2
- package/RadarChart/RadarAxisHighlight/useRadarAxisHighlight.mjs +2 -2
- package/RadarChart/RadarChart.js +15 -0
- package/RadarChart/RadarChart.mjs +15 -0
- package/RadarChart/RadarDataProvider/RadarDataProvider.d.mts +2 -2
- package/RadarChart/RadarDataProvider/RadarDataProvider.d.ts +2 -2
- package/RadarChart/RadarDataProvider/RadarDataProvider.js +2 -2
- package/RadarChart/RadarDataProvider/RadarDataProvider.mjs +2 -2
- package/RadarChart/RadarGrid/CircularRadarGrid.js +2 -2
- package/RadarChart/RadarGrid/CircularRadarGrid.mjs +2 -2
- package/RadarChart/RadarGrid/CircularRadarStripes.js +1 -1
- package/RadarChart/RadarGrid/CircularRadarStripes.mjs +1 -1
- package/RadarChart/RadarGrid/RadarGrid.js +2 -2
- package/RadarChart/RadarGrid/RadarGrid.mjs +2 -2
- package/RadarChart/RadarGrid/RadarGrid.types.d.mts +6 -7
- package/RadarChart/RadarGrid/RadarGrid.types.d.ts +6 -7
- package/RadarChart/RadarGrid/SharpRadarGrid.js +2 -2
- package/RadarChart/RadarGrid/SharpRadarGrid.mjs +2 -2
- package/RadarChart/RadarGrid/SharpRadarStripes.js +1 -1
- package/RadarChart/RadarGrid/SharpRadarStripes.mjs +1 -1
- package/RadarChart/RadarGrid/index.d.mts +1 -2
- package/RadarChart/RadarGrid/index.d.ts +1 -2
- package/RadarChart/RadarGrid/useRadarGridData.js +2 -2
- package/RadarChart/RadarGrid/useRadarGridData.mjs +2 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.mts +2 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.d.ts +2 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.js +6 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.mjs +6 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.mts +13 -4
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.d.ts +13 -4
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.js +8 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.mjs +8 -6
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.js +5 -3
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.mjs +4 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.mts +6 -4
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.types.d.ts +6 -4
- package/RadarChart/RadarSeriesPlot/index.d.mts +1 -3
- package/RadarChart/RadarSeriesPlot/index.d.ts +1 -3
- package/RadarChart/RadarSeriesPlot/index.js +2 -10
- package/RadarChart/RadarSeriesPlot/index.mjs +1 -2
- package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.js +2 -2
- package/RadarChart/RadarSeriesPlot/useInteractionAllItemProps.mjs +2 -2
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.js +2 -2
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.mjs +2 -2
- package/RadarChart/index.d.mts +3 -1
- package/RadarChart/index.d.ts +3 -1
- package/RadarChart/index.js +9 -1
- package/RadarChart/index.mjs +2 -1
- package/RadarChart/radarClasses.d.mts +30 -0
- package/RadarChart/radarClasses.d.ts +30 -0
- package/RadarChart/radarClasses.js +33 -0
- package/RadarChart/radarClasses.mjs +24 -0
- package/RadarChart/seriesConfig/legend.js +2 -21
- package/RadarChart/seriesConfig/legend.mjs +2 -21
- package/ScatterChart/BatchScatter.js +3 -3
- package/ScatterChart/BatchScatter.mjs +3 -3
- package/ScatterChart/Scatter.js +3 -3
- package/ScatterChart/Scatter.mjs +3 -3
- package/ScatterChart/ScatterChart.d.mts +15 -3
- package/ScatterChart/ScatterChart.d.ts +15 -3
- package/ScatterChart/ScatterChart.js +55 -13
- package/ScatterChart/ScatterChart.mjs +55 -13
- package/ScatterChart/seriesConfig/legend.js +2 -21
- package/ScatterChart/seriesConfig/legend.mjs +2 -21
- package/ScatterChart/useScatterChartProps.d.mts +2 -2
- package/ScatterChart/useScatterChartProps.d.ts +2 -2
- package/ScatterChart/useScatterChartProps.js +9 -8
- package/ScatterChart/useScatterChartProps.mjs +9 -8
- package/SparkLineChart/SparkLineChart.d.mts +2 -2
- package/SparkLineChart/SparkLineChart.d.ts +2 -2
- package/SparkLineChart/SparkLineChart.js +40 -10
- package/SparkLineChart/SparkLineChart.mjs +40 -10
- package/context/useChartApiContext.d.mts +1 -1
- package/context/useChartApiContext.d.ts +1 -1
- package/context/useChartApiContext.js +3 -3
- package/context/useChartApiContext.mjs +3 -3
- package/hooks/animation/useAnimatePieArcLabel.d.mts +1 -10
- package/hooks/animation/useAnimatePieArcLabel.d.ts +1 -10
- package/hooks/animation/useAnimatePieArcLabel.js +6 -10
- package/hooks/animation/useAnimatePieArcLabel.mjs +6 -10
- package/hooks/useChartRootRef.js +2 -2
- package/hooks/useChartRootRef.mjs +2 -2
- package/hooks/useChartsLayerContainerRef.js +2 -2
- package/hooks/useChartsLayerContainerRef.mjs +2 -2
- package/hooks/useDataset.js +1 -1
- package/hooks/useDataset.mjs +2 -2
- package/hooks/useInteractionItemProps.js +2 -2
- package/hooks/useInteractionItemProps.mjs +2 -2
- package/hooks/useTicks.js +2 -2
- package/hooks/useTicks.mjs +2 -2
- package/index.d.mts +0 -3
- package/index.d.ts +0 -3
- package/index.js +2 -22
- package/index.mjs +1 -3
- package/internals/consumeSlots.d.mts +1 -1
- package/internals/consumeSlots.d.ts +1 -1
- package/internals/identifierCleaner.d.mts +5 -5
- package/internals/identifierCleaner.d.ts +5 -5
- package/internals/identifierCleaner.js +0 -1
- package/internals/identifierCleaner.mjs +0 -1
- package/internals/index.d.mts +2 -3
- package/internals/index.d.ts +2 -3
- package/internals/index.js +27 -36
- package/internals/index.mjs +2 -3
- package/internals/legendUtils.d.mts +11 -0
- package/internals/legendUtils.d.ts +11 -0
- package/internals/legendUtils.js +28 -0
- package/internals/legendUtils.mjs +22 -0
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.js +2 -2
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.mjs +2 -2
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.mts +1 -4
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.d.ts +1 -4
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.js +2 -4
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.selectors.mjs +1 -3
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.mts +1 -6
- package/internals/plugins/corePlugins/useChartExperimentalFeature/useChartExperimentalFeature.types.d.ts +1 -6
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.mts +24 -2
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.d.ts +24 -2
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +24 -3
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.mjs +23 -2
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.d.mts +18 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.d.ts +18 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.mts +2 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.d.ts +2 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.js +11 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/index.mjs +2 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.mts +5 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/seriesConfig.types.d.ts +5 -0
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.mts +16 -37
- package/internals/plugins/corePlugins/useChartSeriesConfig/types/tooltipGetter.types.d.ts +16 -37
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.js +2 -2
- package/internals/plugins/featurePlugins/shared/useRegisterPointerInteractions.mjs +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.mts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.d.ts +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.js +4 -7
- package/internals/plugins/featurePlugins/useChartCartesianAxis/domain.mjs +4 -7
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +8 -9
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs +8 -9
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.mts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.d.ts +5 -5
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.d.mts +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.d.ts +1 -1
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.js +13 -11
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.mjs +13 -11
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.types.d.mts +4 -9
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.types.d.ts +4 -9
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.mts +3 -3
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.types.d.ts +3 -3
- package/internals/seriesSelectorOfType.d.mts +3 -3
- package/internals/seriesSelectorOfType.d.ts +3 -3
- package/internals/store/useStore.js +2 -2
- package/internals/store/useStore.mjs +2 -2
- package/locales/elGR.d.mts +4 -0
- package/locales/elGR.d.ts +4 -0
- package/locales/elGR.js +6 -0
- package/locales/elGR.mjs +6 -0
- package/locales/enUS.d.mts +4 -0
- package/locales/enUS.d.ts +4 -0
- package/locales/enUS.js +6 -1
- package/locales/enUS.mjs +6 -1
- package/locales/frFR.d.mts +4 -0
- package/locales/frFR.d.ts +4 -0
- package/locales/frFR.js +6 -1
- package/locales/frFR.mjs +6 -1
- package/locales/nbNO.d.mts +4 -0
- package/locales/nbNO.d.ts +4 -0
- package/locales/nbNO.js +6 -0
- package/locales/nbNO.mjs +6 -0
- package/locales/ptBR.d.mts +4 -0
- package/locales/ptBR.d.ts +4 -0
- package/locales/ptBR.js +6 -0
- package/locales/ptBR.mjs +6 -0
- package/locales/ptPT.d.mts +4 -0
- package/locales/ptPT.d.ts +4 -0
- package/locales/ptPT.js +102 -99
- package/locales/ptPT.mjs +102 -99
- package/locales/svSE.d.mts +4 -0
- package/locales/svSE.d.ts +4 -0
- package/locales/svSE.js +6 -0
- package/locales/svSE.mjs +6 -0
- package/locales/utils/chartsLocaleTextApi.d.mts +16 -0
- package/locales/utils/chartsLocaleTextApi.d.ts +16 -0
- package/locales/utils/getChartsLocalization.d.mts +4 -0
- package/locales/utils/getChartsLocalization.d.ts +4 -0
- package/models/axis.d.mts +4 -0
- package/models/axis.d.ts +4 -0
- package/models/seriesType/composition.d.mts +1 -1
- package/models/seriesType/composition.d.ts +1 -1
- package/models/seriesType/composition.js +1 -1
- package/models/seriesType/composition.mjs +1 -1
- package/models/seriesType/line.d.mts +2 -1
- package/models/seriesType/line.d.ts +2 -1
- package/models/seriesType/scatter.d.mts +0 -7
- package/models/seriesType/scatter.d.ts +0 -7
- package/package.json +87 -115
- package/themeAugmentation/components.d.mts +5 -25
- package/themeAugmentation/components.d.ts +5 -25
- package/themeAugmentation/overrides.d.mts +3 -15
- package/themeAugmentation/overrides.d.ts +3 -15
- package/themeAugmentation/props.d.mts +0 -2
- package/themeAugmentation/props.d.ts +0 -2
- package/BarChart/BarLabel/barLabelClasses.d.mts +0 -41
- package/BarChart/BarLabel/barLabelClasses.d.ts +0 -41
- package/BarChart/BarLabel/barLabelClasses.js +0 -49
- package/BarChart/BarLabel/barLabelClasses.mjs +0 -40
- package/BarChart/barElementClasses.d.mts +0 -40
- package/BarChart/barElementClasses.d.ts +0 -40
- package/BarChart/barElementClasses.js +0 -48
- package/BarChart/barElementClasses.mjs +0 -39
- package/ChartContainer/ChartContainer.d.mts +0 -22
- package/ChartContainer/ChartContainer.d.ts +0 -22
- package/ChartContainer/ChartContainer.js +0 -24
- package/ChartContainer/ChartContainer.mjs +0 -20
- package/ChartContainer/index.d.mts +0 -1
- package/ChartContainer/index.d.ts +0 -1
- package/ChartContainer/index.js +0 -16
- package/ChartContainer/index.mjs +0 -1
- package/ChartContainer/useChartContainerProps.d.mts +0 -13
- package/ChartContainer/useChartContainerProps.d.ts +0 -13
- package/ChartContainer/useChartContainerProps.js +0 -19
- package/ChartContainer/useChartContainerProps.mjs +0 -14
- package/ChartDataProvider/ChartDataProvider.d.mts +0 -20
- package/ChartDataProvider/ChartDataProvider.d.ts +0 -20
- package/ChartDataProvider/ChartDataProvider.js +0 -24
- package/ChartDataProvider/ChartDataProvider.mjs +0 -20
- package/ChartDataProvider/index.d.mts +0 -1
- package/ChartDataProvider/index.d.ts +0 -1
- package/ChartDataProvider/index.js +0 -16
- package/ChartDataProvider/index.mjs +0 -1
- package/ChartDataProvider/useChartDataProviderProps.d.mts +0 -10
- package/ChartDataProvider/useChartDataProviderProps.d.ts +0 -10
- package/ChartDataProvider/useChartDataProviderProps.js +0 -12
- package/ChartDataProvider/useChartDataProviderProps.mjs +0 -8
- package/LineChart/markElementClasses.d.mts +0 -42
- package/LineChart/markElementClasses.d.ts +0 -42
- package/LineChart/markElementClasses.js +0 -48
- package/LineChart/markElementClasses.mjs +0 -40
- package/RadarChart/RadarAxis/radarAxisClasses.d.mts +0 -12
- package/RadarChart/RadarAxis/radarAxisClasses.d.ts +0 -12
- package/RadarChart/RadarAxis/radarAxisClasses.js +0 -25
- package/RadarChart/RadarAxis/radarAxisClasses.mjs +0 -15
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.d.mts +0 -11
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.d.ts +0 -11
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.js +0 -14
- package/RadarChart/RadarAxisHighlight/radarAxisHighlightClasses.mjs +0 -6
- package/RadarChart/RadarGrid/radarGridClasses.d.mts +0 -12
- package/RadarChart/RadarGrid/radarGridClasses.d.ts +0 -12
- package/RadarChart/RadarGrid/radarGridClasses.js +0 -25
- package/RadarChart/RadarGrid/radarGridClasses.mjs +0 -15
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.d.mts +0 -22
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.d.ts +0 -22
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.js +0 -26
- package/RadarChart/RadarSeriesPlot/radarSeriesPlotClasses.mjs +0 -17
- package/context/ChartProvider/ChartContext.d.mts +0 -5
- package/context/ChartProvider/ChartContext.d.ts +0 -5
- package/context/ChartProvider/ChartContext.js +0 -13
- package/context/ChartProvider/ChartContext.mjs +0 -9
- package/context/ChartProvider/ChartProvider.d.mts +0 -5
- package/context/ChartProvider/ChartProvider.d.ts +0 -5
- package/context/ChartProvider/ChartProvider.js +0 -12
- package/context/ChartProvider/ChartProvider.mjs +0 -8
- package/context/ChartProvider/ChartProvider.types.d.mts +0 -15
- package/context/ChartProvider/ChartProvider.types.d.ts +0 -15
- package/context/ChartProvider/index.d.mts +0 -3
- package/context/ChartProvider/index.d.ts +0 -3
- package/context/ChartProvider/index.js +0 -38
- package/context/ChartProvider/index.mjs +0 -3
- package/context/ChartProvider/useChartContext.d.mts +0 -4
- package/context/ChartProvider/useChartContext.d.ts +0 -4
- package/context/ChartProvider/useChartContext.js +0 -12
- package/context/ChartProvider/useChartContext.mjs +0 -8
- package/tests/constants.js +0 -7
- package/tests/constants.mjs +0 -1
- /package/{context/ChartProvider/ChartProvider.types.js → internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.js} +0 -0
- /package/{context/ChartProvider/ChartProvider.types.mjs → internals/plugins/corePlugins/useChartSeriesConfig/types/TooltipContent.types.mjs} +0 -0
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { useTicks } from "../hooks/useTicks.mjs";
|
|
3
3
|
import { GridLine } from "./styledComponents.mjs";
|
|
4
|
-
import {
|
|
4
|
+
import { useChartsContext } from "../context/ChartsProvider/index.mjs";
|
|
5
5
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
6
|
/**
|
|
7
7
|
* @ignore - internal component.
|
|
@@ -9,7 +9,7 @@ import { jsx as _jsx } from "react/jsx-runtime";
|
|
|
9
9
|
export function ChartsGridVertical(props) {
|
|
10
10
|
const {
|
|
11
11
|
instance
|
|
12
|
-
} =
|
|
12
|
+
} = useChartsContext();
|
|
13
13
|
const {
|
|
14
14
|
axis,
|
|
15
15
|
start,
|
package/ChartsGrid/index.d.mts
CHANGED
package/ChartsGrid/index.d.ts
CHANGED
package/ChartsGrid/index.js
CHANGED
|
@@ -3,9 +3,19 @@
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
|
+
var _exportNames = {
|
|
7
|
+
chartsGridClasses: true
|
|
8
|
+
};
|
|
9
|
+
Object.defineProperty(exports, "chartsGridClasses", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () {
|
|
12
|
+
return _chartsGridClasses.chartsGridClasses;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
6
15
|
var _ChartsGrid = require("./ChartsGrid");
|
|
7
16
|
Object.keys(_ChartsGrid).forEach(function (key) {
|
|
8
17
|
if (key === "default" || key === "__esModule") return;
|
|
18
|
+
if (Object.prototype.hasOwnProperty.call(_exportNames, key)) return;
|
|
9
19
|
if (key in exports && exports[key] === _ChartsGrid[key]) return;
|
|
10
20
|
Object.defineProperty(exports, key, {
|
|
11
21
|
enumerable: true,
|
|
@@ -14,14 +24,4 @@ Object.keys(_ChartsGrid).forEach(function (key) {
|
|
|
14
24
|
}
|
|
15
25
|
});
|
|
16
26
|
});
|
|
17
|
-
var _chartsGridClasses = require("./chartsGridClasses");
|
|
18
|
-
Object.keys(_chartsGridClasses).forEach(function (key) {
|
|
19
|
-
if (key === "default" || key === "__esModule") return;
|
|
20
|
-
if (key in exports && exports[key] === _chartsGridClasses[key]) return;
|
|
21
|
-
Object.defineProperty(exports, key, {
|
|
22
|
-
enumerable: true,
|
|
23
|
-
get: function () {
|
|
24
|
-
return _chartsGridClasses[key];
|
|
25
|
-
}
|
|
26
|
-
});
|
|
27
|
-
});
|
|
27
|
+
var _chartsGridClasses = require("./chartsGridClasses");
|
package/ChartsGrid/index.mjs
CHANGED
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
export * from "./ChartsGrid.mjs";
|
|
2
|
-
export
|
|
2
|
+
export { chartsGridClasses } from "./chartsGridClasses.mjs";
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type SxProps, type Theme } from '@mui/material/styles';
|
|
3
3
|
export interface ChartsLayerContainerProps extends React.ComponentProps<'div'> {
|
|
4
|
+
/**
|
|
5
|
+
* The title of the chart.
|
|
6
|
+
* Used to provide an accessible label for the chart.
|
|
7
|
+
*/
|
|
8
|
+
title?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The description of the chart.
|
|
11
|
+
* Used to provide an accessible description for the chart.
|
|
12
|
+
*/
|
|
13
|
+
desc?: string;
|
|
4
14
|
sx?: SxProps<Theme>;
|
|
5
15
|
}
|
|
6
16
|
/**
|
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { type SxProps, type Theme } from '@mui/material/styles';
|
|
3
3
|
export interface ChartsLayerContainerProps extends React.ComponentProps<'div'> {
|
|
4
|
+
/**
|
|
5
|
+
* The title of the chart.
|
|
6
|
+
* Used to provide an accessible label for the chart.
|
|
7
|
+
*/
|
|
8
|
+
title?: string;
|
|
9
|
+
/**
|
|
10
|
+
* The description of the chart.
|
|
11
|
+
* Used to provide an accessible description for the chart.
|
|
12
|
+
*/
|
|
13
|
+
desc?: string;
|
|
4
14
|
sx?: SxProps<Theme>;
|
|
5
15
|
}
|
|
6
16
|
/**
|
|
@@ -10,16 +10,19 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
10
10
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
13
|
+
var _clsx = _interopRequireDefault(require("clsx"));
|
|
13
14
|
var _warning = require("@mui/x-internals/warning");
|
|
14
15
|
var _styles = require("@mui/material/styles");
|
|
15
16
|
var _useForkRef = _interopRequireDefault(require("@mui/utils/useForkRef"));
|
|
17
|
+
var _useId = _interopRequireDefault(require("@mui/utils/useId"));
|
|
18
|
+
var _chartsSurfaceClasses = require("../ChartsSurface/chartsSurfaceClasses");
|
|
16
19
|
var _useChartDimensions = require("../internals/plugins/corePlugins/useChartDimensions");
|
|
17
20
|
var _useChartKeyboardNavigation = require("../internals/plugins/featurePlugins/useChartKeyboardNavigation");
|
|
18
|
-
var
|
|
21
|
+
var _ChartsProvider = require("../context/ChartsProvider");
|
|
19
22
|
var _hooks = require("../hooks");
|
|
20
23
|
var _ChartsSurface = require("../ChartsSurface");
|
|
21
24
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
22
|
-
const _excluded = ["children"]; // eslint-disable-next-line import/no-cycle
|
|
25
|
+
const _excluded = ["children", "title", "desc", "className"]; // eslint-disable-next-line import/no-cycle
|
|
23
26
|
const ChartsLayerContainerDiv = (0, _styles.styled)('div', {
|
|
24
27
|
name: 'MuiChartsLayerContainer',
|
|
25
28
|
slot: 'Root'
|
|
@@ -49,8 +52,9 @@ const ChartsLayerContainerDiv = (0, _styles.styled)('div', {
|
|
|
49
52
|
*/
|
|
50
53
|
const ChartsLayerContainer = exports.ChartsLayerContainer = /*#__PURE__*/React.forwardRef(function ChartsLayerContainer(inProps, ref) {
|
|
51
54
|
const {
|
|
52
|
-
store
|
|
53
|
-
|
|
55
|
+
store,
|
|
56
|
+
instance
|
|
57
|
+
} = (0, _ChartsProvider.useChartsContext)();
|
|
54
58
|
const propsWidth = store.use(_useChartDimensions.selectorChartPropsWidth);
|
|
55
59
|
const propsHeight = store.use(_useChartDimensions.selectorChartPropsHeight);
|
|
56
60
|
const isKeyboardNavigationEnabled = store.use(_useChartKeyboardNavigation.selectorChartsIsKeyboardNavigationEnabled);
|
|
@@ -59,11 +63,16 @@ const ChartsLayerContainer = exports.ChartsLayerContainer = /*#__PURE__*/React.f
|
|
|
59
63
|
name: 'MuiChartsLayerContainer'
|
|
60
64
|
});
|
|
61
65
|
const {
|
|
62
|
-
children
|
|
66
|
+
children,
|
|
67
|
+
title,
|
|
68
|
+
desc,
|
|
69
|
+
className
|
|
63
70
|
} = themeProps,
|
|
64
71
|
other = (0, _objectWithoutPropertiesLoose2.default)(themeProps, _excluded);
|
|
72
|
+
const classes = (0, _chartsSurfaceClasses.useUtilityClasses)();
|
|
65
73
|
const chartsLayerContainerRef = (0, _hooks.useChartsLayerContainerRef)();
|
|
66
74
|
const handleRef = (0, _useForkRef.default)(chartsLayerContainerRef, ref);
|
|
75
|
+
const descId = (0, _useId.default)();
|
|
67
76
|
if (process.env.NODE_ENV !== 'production') {
|
|
68
77
|
React.Children.forEach(children, child => {
|
|
69
78
|
if (typeof child === 'object' && child != null && 'type' in child && child.type === _ChartsSurface.ChartsSurface) {
|
|
@@ -71,15 +80,36 @@ const ChartsLayerContainer = exports.ChartsLayerContainer = /*#__PURE__*/React.f
|
|
|
71
80
|
}
|
|
72
81
|
});
|
|
73
82
|
}
|
|
74
|
-
return /*#__PURE__*/(0, _jsxRuntime.
|
|
83
|
+
return /*#__PURE__*/(0, _jsxRuntime.jsxs)(ChartsLayerContainerDiv, (0, _extends2.default)({
|
|
75
84
|
ref: handleRef,
|
|
76
85
|
ownerState: {
|
|
77
86
|
width: propsWidth,
|
|
78
87
|
height: propsHeight
|
|
79
88
|
},
|
|
80
|
-
tabIndex: isKeyboardNavigationEnabled ? 0 : undefined
|
|
89
|
+
tabIndex: isKeyboardNavigationEnabled ? 0 : undefined,
|
|
90
|
+
"aria-label": title,
|
|
91
|
+
"aria-describedby": desc ? descId : undefined,
|
|
92
|
+
className: (0, _clsx.default)(classes.root, className)
|
|
81
93
|
}, other, {
|
|
82
|
-
|
|
94
|
+
onPointerEnter: event => {
|
|
95
|
+
other.onPointerEnter?.(event);
|
|
96
|
+
instance.handlePointerEnter?.(event);
|
|
97
|
+
},
|
|
98
|
+
onPointerLeave: event => {
|
|
99
|
+
other.onPointerLeave?.(event);
|
|
100
|
+
instance.handlePointerLeave?.(event);
|
|
101
|
+
},
|
|
102
|
+
onClick: event => {
|
|
103
|
+
other.onClick?.(event);
|
|
104
|
+
instance.handleClick?.(event);
|
|
105
|
+
},
|
|
106
|
+
children: [desc && /*#__PURE__*/(0, _jsxRuntime.jsx)("span", {
|
|
107
|
+
id: descId,
|
|
108
|
+
style: {
|
|
109
|
+
display: 'none'
|
|
110
|
+
},
|
|
111
|
+
children: desc
|
|
112
|
+
}), children]
|
|
83
113
|
}));
|
|
84
114
|
});
|
|
85
115
|
if (process.env.NODE_ENV !== "production") ChartsLayerContainer.displayName = "ChartsLayerContainer";
|
|
@@ -88,5 +118,15 @@ process.env.NODE_ENV !== "production" ? ChartsLayerContainer.propTypes = {
|
|
|
88
118
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
89
119
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
90
120
|
// ----------------------------------------------------------------------
|
|
91
|
-
|
|
121
|
+
/**
|
|
122
|
+
* The description of the chart.
|
|
123
|
+
* Used to provide an accessible description for the chart.
|
|
124
|
+
*/
|
|
125
|
+
desc: _propTypes.default.string,
|
|
126
|
+
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
127
|
+
/**
|
|
128
|
+
* The title of the chart.
|
|
129
|
+
* Used to provide an accessible label for the chart.
|
|
130
|
+
*/
|
|
131
|
+
title: _propTypes.default.string
|
|
92
132
|
} : void 0;
|
|
@@ -1,18 +1,21 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
3
|
-
const _excluded = ["children"];
|
|
3
|
+
const _excluded = ["children", "title", "desc", "className"];
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
|
+
import clsx from 'clsx';
|
|
6
7
|
import { warnOnce } from '@mui/x-internals/warning';
|
|
7
8
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
8
9
|
import useForkRef from '@mui/utils/useForkRef';
|
|
10
|
+
import useId from '@mui/utils/useId';
|
|
11
|
+
import { useUtilityClasses } from "../ChartsSurface/chartsSurfaceClasses.mjs";
|
|
9
12
|
import { selectorChartPropsHeight, selectorChartPropsWidth } from "../internals/plugins/corePlugins/useChartDimensions/index.mjs";
|
|
10
13
|
import { selectorChartsIsKeyboardNavigationEnabled } from "../internals/plugins/featurePlugins/useChartKeyboardNavigation/index.mjs";
|
|
11
|
-
import {
|
|
14
|
+
import { useChartsContext } from "../context/ChartsProvider/index.mjs";
|
|
12
15
|
import { useChartsLayerContainerRef } from "../hooks/index.mjs";
|
|
13
16
|
// eslint-disable-next-line import/no-cycle
|
|
14
17
|
import { ChartsSurface } from "../ChartsSurface/index.mjs";
|
|
15
|
-
import { jsx as _jsx } from "react/jsx-runtime";
|
|
18
|
+
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
16
19
|
const ChartsLayerContainerDiv = styled('div', {
|
|
17
20
|
name: 'MuiChartsLayerContainer',
|
|
18
21
|
slot: 'Root'
|
|
@@ -42,8 +45,9 @@ const ChartsLayerContainerDiv = styled('div', {
|
|
|
42
45
|
*/
|
|
43
46
|
const ChartsLayerContainer = /*#__PURE__*/React.forwardRef(function ChartsLayerContainer(inProps, ref) {
|
|
44
47
|
const {
|
|
45
|
-
store
|
|
46
|
-
|
|
48
|
+
store,
|
|
49
|
+
instance
|
|
50
|
+
} = useChartsContext();
|
|
47
51
|
const propsWidth = store.use(selectorChartPropsWidth);
|
|
48
52
|
const propsHeight = store.use(selectorChartPropsHeight);
|
|
49
53
|
const isKeyboardNavigationEnabled = store.use(selectorChartsIsKeyboardNavigationEnabled);
|
|
@@ -52,11 +56,16 @@ const ChartsLayerContainer = /*#__PURE__*/React.forwardRef(function ChartsLayerC
|
|
|
52
56
|
name: 'MuiChartsLayerContainer'
|
|
53
57
|
});
|
|
54
58
|
const {
|
|
55
|
-
children
|
|
59
|
+
children,
|
|
60
|
+
title,
|
|
61
|
+
desc,
|
|
62
|
+
className
|
|
56
63
|
} = themeProps,
|
|
57
64
|
other = _objectWithoutPropertiesLoose(themeProps, _excluded);
|
|
65
|
+
const classes = useUtilityClasses();
|
|
58
66
|
const chartsLayerContainerRef = useChartsLayerContainerRef();
|
|
59
67
|
const handleRef = useForkRef(chartsLayerContainerRef, ref);
|
|
68
|
+
const descId = useId();
|
|
60
69
|
if (process.env.NODE_ENV !== 'production') {
|
|
61
70
|
React.Children.forEach(children, child => {
|
|
62
71
|
if (typeof child === 'object' && child != null && 'type' in child && child.type === ChartsSurface) {
|
|
@@ -64,15 +73,36 @@ const ChartsLayerContainer = /*#__PURE__*/React.forwardRef(function ChartsLayerC
|
|
|
64
73
|
}
|
|
65
74
|
});
|
|
66
75
|
}
|
|
67
|
-
return /*#__PURE__*/
|
|
76
|
+
return /*#__PURE__*/_jsxs(ChartsLayerContainerDiv, _extends({
|
|
68
77
|
ref: handleRef,
|
|
69
78
|
ownerState: {
|
|
70
79
|
width: propsWidth,
|
|
71
80
|
height: propsHeight
|
|
72
81
|
},
|
|
73
|
-
tabIndex: isKeyboardNavigationEnabled ? 0 : undefined
|
|
82
|
+
tabIndex: isKeyboardNavigationEnabled ? 0 : undefined,
|
|
83
|
+
"aria-label": title,
|
|
84
|
+
"aria-describedby": desc ? descId : undefined,
|
|
85
|
+
className: clsx(classes.root, className)
|
|
74
86
|
}, other, {
|
|
75
|
-
|
|
87
|
+
onPointerEnter: event => {
|
|
88
|
+
other.onPointerEnter?.(event);
|
|
89
|
+
instance.handlePointerEnter?.(event);
|
|
90
|
+
},
|
|
91
|
+
onPointerLeave: event => {
|
|
92
|
+
other.onPointerLeave?.(event);
|
|
93
|
+
instance.handlePointerLeave?.(event);
|
|
94
|
+
},
|
|
95
|
+
onClick: event => {
|
|
96
|
+
other.onClick?.(event);
|
|
97
|
+
instance.handleClick?.(event);
|
|
98
|
+
},
|
|
99
|
+
children: [desc && /*#__PURE__*/_jsx("span", {
|
|
100
|
+
id: descId,
|
|
101
|
+
style: {
|
|
102
|
+
display: 'none'
|
|
103
|
+
},
|
|
104
|
+
children: desc
|
|
105
|
+
}), children]
|
|
76
106
|
}));
|
|
77
107
|
});
|
|
78
108
|
if (process.env.NODE_ENV !== "production") ChartsLayerContainer.displayName = "ChartsLayerContainer";
|
|
@@ -81,6 +111,16 @@ process.env.NODE_ENV !== "production" ? ChartsLayerContainer.propTypes = {
|
|
|
81
111
|
// | These PropTypes are generated from the TypeScript type definitions |
|
|
82
112
|
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
83
113
|
// ----------------------------------------------------------------------
|
|
84
|
-
|
|
114
|
+
/**
|
|
115
|
+
* The description of the chart.
|
|
116
|
+
* Used to provide an accessible description for the chart.
|
|
117
|
+
*/
|
|
118
|
+
desc: PropTypes.string,
|
|
119
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
|
|
120
|
+
/**
|
|
121
|
+
* The title of the chart.
|
|
122
|
+
* Used to provide an accessible label for the chart.
|
|
123
|
+
*/
|
|
124
|
+
title: PropTypes.string
|
|
85
125
|
} : void 0;
|
|
86
126
|
export { ChartsLayerContainer };
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault").default;
|
|
4
|
+
Object.defineProperty(exports, "__esModule", {
|
|
5
|
+
value: true
|
|
6
|
+
});
|
|
7
|
+
exports.useUtilityClasses = exports.chartsLayerContainerClasses = void 0;
|
|
8
|
+
var _generateUtilityClass = _interopRequireDefault(require("@mui/utils/generateUtilityClass"));
|
|
9
|
+
var _generateUtilityClasses = _interopRequireDefault(require("@mui/utils/generateUtilityClasses"));
|
|
10
|
+
var _composeClasses = _interopRequireDefault(require("@mui/utils/composeClasses"));
|
|
11
|
+
function getLayerContainerUtilityClass(slot) {
|
|
12
|
+
return (0, _generateUtilityClass.default)('MuiChartsLayerContainer', slot);
|
|
13
|
+
}
|
|
14
|
+
const useUtilityClasses = () => {
|
|
15
|
+
const slots = {
|
|
16
|
+
root: ['root']
|
|
17
|
+
};
|
|
18
|
+
return (0, _composeClasses.default)(slots, getLayerContainerUtilityClass);
|
|
19
|
+
};
|
|
20
|
+
exports.useUtilityClasses = useUtilityClasses;
|
|
21
|
+
const chartsLayerContainerClasses = exports.chartsLayerContainerClasses = (0, _generateUtilityClasses.default)('MuiChartsLayerContainer', ['root']);
|
|
@@ -0,0 +1,13 @@
|
|
|
1
|
+
import generateUtilityClass from '@mui/utils/generateUtilityClass';
|
|
2
|
+
import generateUtilityClasses from '@mui/utils/generateUtilityClasses';
|
|
3
|
+
import composeClasses from '@mui/utils/composeClasses';
|
|
4
|
+
function getLayerContainerUtilityClass(slot) {
|
|
5
|
+
return generateUtilityClass('MuiChartsLayerContainer', slot);
|
|
6
|
+
}
|
|
7
|
+
export const useUtilityClasses = () => {
|
|
8
|
+
const slots = {
|
|
9
|
+
root: ['root']
|
|
10
|
+
};
|
|
11
|
+
return composeClasses(slots, getLayerContainerUtilityClass);
|
|
12
|
+
};
|
|
13
|
+
export const chartsLayerContainerClasses = generateUtilityClasses('MuiChartsLayerContainer', ['root']);
|
|
@@ -20,7 +20,7 @@ var _onClickContextBuilder = require("./onClickContextBuilder");
|
|
|
20
20
|
var _chartsLegendClasses = require("./chartsLegendClasses");
|
|
21
21
|
var _consumeSlots = require("../internals/consumeSlots");
|
|
22
22
|
var _ChartsLabel = require("../ChartsLabel/ChartsLabel");
|
|
23
|
-
var
|
|
23
|
+
var _ChartsProvider = require("../context/ChartsProvider");
|
|
24
24
|
var _useChartVisibilityManager = require("../internals/plugins/featurePlugins/useChartVisibilityManager");
|
|
25
25
|
var _useStore = require("../internals/store/useStore");
|
|
26
26
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
@@ -81,7 +81,7 @@ const ChartsLegend = exports.ChartsLegend = (0, _consumeSlots.consumeSlots)('Mui
|
|
|
81
81
|
const data = (0, _useLegend.useLegend)();
|
|
82
82
|
const {
|
|
83
83
|
instance
|
|
84
|
-
} = (0,
|
|
84
|
+
} = (0, _ChartsProvider.useChartsContext)();
|
|
85
85
|
const store = (0, _useStore.useStore)();
|
|
86
86
|
const isItemVisible = store.use(_useChartVisibilityManager.selectorIsItemVisibleGetter);
|
|
87
87
|
const {
|
|
@@ -14,7 +14,7 @@ import { seriesContextBuilder } from "./onClickContextBuilder.mjs";
|
|
|
14
14
|
import { legendClasses, useUtilityClasses } from "./chartsLegendClasses.mjs";
|
|
15
15
|
import { consumeSlots } from "../internals/consumeSlots.mjs";
|
|
16
16
|
import { ChartsLabel } from "../ChartsLabel/ChartsLabel.mjs";
|
|
17
|
-
import {
|
|
17
|
+
import { useChartsContext } from "../context/ChartsProvider/index.mjs";
|
|
18
18
|
import { selectorIsItemVisibleGetter } from "../internals/plugins/featurePlugins/useChartVisibilityManager/index.mjs";
|
|
19
19
|
import { useStore } from "../internals/store/useStore.mjs";
|
|
20
20
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -74,7 +74,7 @@ const ChartsLegend = consumeSlots('MuiChartsLegend', 'legend', {
|
|
|
74
74
|
const data = useLegend();
|
|
75
75
|
const {
|
|
76
76
|
instance
|
|
77
|
-
} =
|
|
77
|
+
} = useChartsContext();
|
|
78
78
|
const store = useStore();
|
|
79
79
|
const isItemVisible = store.use(selectorIsItemVisibleGetter);
|
|
80
80
|
const {
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type ChartsLabelMarkProps } from "../ChartsLabel/ChartsLabelMark.mjs";
|
|
2
|
-
import { type PieItemId } from "../models/index.mjs";
|
|
3
2
|
import { type SeriesId } from "../models/seriesType/common.mjs";
|
|
4
3
|
import type { ChartSeriesType } from "../models/seriesType/config.mjs";
|
|
5
4
|
interface LegendItemContextBase {
|
|
@@ -42,11 +41,6 @@ export interface SeriesLegendItemContext extends LegendItemContextBase {
|
|
|
42
41
|
* The identifier of the series
|
|
43
42
|
*/
|
|
44
43
|
seriesId: SeriesId;
|
|
45
|
-
/**
|
|
46
|
-
* The identifier of the pie item
|
|
47
|
-
* @deprecated use `dataIndex` instead
|
|
48
|
-
*/
|
|
49
|
-
itemId?: PieItemId;
|
|
50
44
|
/**
|
|
51
45
|
* The data index of the item in the series data array
|
|
52
46
|
*/
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import { type ChartsLabelMarkProps } from "../ChartsLabel/ChartsLabelMark.js";
|
|
2
|
-
import { type PieItemId } from "../models/index.js";
|
|
3
2
|
import { type SeriesId } from "../models/seriesType/common.js";
|
|
4
3
|
import type { ChartSeriesType } from "../models/seriesType/config.js";
|
|
5
4
|
interface LegendItemContextBase {
|
|
@@ -42,11 +41,6 @@ export interface SeriesLegendItemContext extends LegendItemContextBase {
|
|
|
42
41
|
* The identifier of the series
|
|
43
42
|
*/
|
|
44
43
|
seriesId: SeriesId;
|
|
45
|
-
/**
|
|
46
|
-
* The identifier of the pie item
|
|
47
|
-
* @deprecated use `dataIndex` instead
|
|
48
|
-
*/
|
|
49
|
-
itemId?: PieItemId;
|
|
50
44
|
/**
|
|
51
45
|
* The data index of the item in the series data array
|
|
52
46
|
*/
|
|
@@ -7,17 +7,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.ChartsLoadingOverlay = ChartsLoadingOverlay;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
-
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
10
|
var _useDrawingArea = require("../hooks/useDrawingArea");
|
|
12
11
|
var _useChartsLocalization = require("../hooks/useChartsLocalization");
|
|
13
12
|
var _common = require("./common");
|
|
14
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
const _excluded = ["message"];
|
|
16
14
|
function ChartsLoadingOverlay(props) {
|
|
17
|
-
const {
|
|
18
|
-
message
|
|
19
|
-
} = props,
|
|
20
|
-
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
21
15
|
const {
|
|
22
16
|
top,
|
|
23
17
|
left,
|
|
@@ -30,7 +24,7 @@ function ChartsLoadingOverlay(props) {
|
|
|
30
24
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.StyledText, (0, _extends2.default)({
|
|
31
25
|
x: left + width / 2,
|
|
32
26
|
y: top + height / 2
|
|
33
|
-
},
|
|
34
|
-
children:
|
|
27
|
+
}, props, {
|
|
28
|
+
children: localeText.loading
|
|
35
29
|
}));
|
|
36
30
|
}
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
-
const _excluded = ["message"];
|
|
6
4
|
import { useDrawingArea } from "../hooks/useDrawingArea.mjs";
|
|
7
5
|
import { useChartsLocalization } from "../hooks/useChartsLocalization.mjs";
|
|
8
6
|
import { StyledText } from "./common.mjs";
|
|
9
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
8
|
export function ChartsLoadingOverlay(props) {
|
|
11
|
-
const {
|
|
12
|
-
message
|
|
13
|
-
} = props,
|
|
14
|
-
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
15
9
|
const {
|
|
16
10
|
top,
|
|
17
11
|
left,
|
|
@@ -24,7 +18,7 @@ export function ChartsLoadingOverlay(props) {
|
|
|
24
18
|
return /*#__PURE__*/_jsx(StyledText, _extends({
|
|
25
19
|
x: left + width / 2,
|
|
26
20
|
y: top + height / 2
|
|
27
|
-
},
|
|
28
|
-
children:
|
|
21
|
+
}, props, {
|
|
22
|
+
children: localeText.loading
|
|
29
23
|
}));
|
|
30
24
|
}
|
|
@@ -7,17 +7,11 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
7
7
|
});
|
|
8
8
|
exports.ChartsNoDataOverlay = ChartsNoDataOverlay;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
-
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
10
|
var _useDrawingArea = require("../hooks/useDrawingArea");
|
|
12
11
|
var _useChartsLocalization = require("../hooks/useChartsLocalization");
|
|
13
12
|
var _common = require("./common");
|
|
14
13
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
const _excluded = ["message"];
|
|
16
14
|
function ChartsNoDataOverlay(props) {
|
|
17
|
-
const {
|
|
18
|
-
message
|
|
19
|
-
} = props,
|
|
20
|
-
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
21
15
|
const {
|
|
22
16
|
top,
|
|
23
17
|
left,
|
|
@@ -30,7 +24,7 @@ function ChartsNoDataOverlay(props) {
|
|
|
30
24
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_common.StyledText, (0, _extends2.default)({
|
|
31
25
|
x: left + width / 2,
|
|
32
26
|
y: top + height / 2
|
|
33
|
-
},
|
|
34
|
-
children:
|
|
27
|
+
}, props, {
|
|
28
|
+
children: localeText.noData
|
|
35
29
|
}));
|
|
36
30
|
}
|
|
@@ -1,17 +1,11 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
-
const _excluded = ["message"];
|
|
6
4
|
import { useDrawingArea } from "../hooks/useDrawingArea.mjs";
|
|
7
5
|
import { useChartsLocalization } from "../hooks/useChartsLocalization.mjs";
|
|
8
6
|
import { StyledText } from "./common.mjs";
|
|
9
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
10
8
|
export function ChartsNoDataOverlay(props) {
|
|
11
|
-
const {
|
|
12
|
-
message
|
|
13
|
-
} = props,
|
|
14
|
-
other = _objectWithoutPropertiesLoose(props, _excluded);
|
|
15
9
|
const {
|
|
16
10
|
top,
|
|
17
11
|
left,
|
|
@@ -24,7 +18,7 @@ export function ChartsNoDataOverlay(props) {
|
|
|
24
18
|
return /*#__PURE__*/_jsx(StyledText, _extends({
|
|
25
19
|
x: left + width / 2,
|
|
26
20
|
y: top + height / 2
|
|
27
|
-
},
|
|
28
|
-
children:
|
|
21
|
+
}, props, {
|
|
22
|
+
children: localeText.noData
|
|
29
23
|
}));
|
|
30
24
|
}
|
|
@@ -3,12 +3,6 @@ import { type SxProps, type Theme } from '@mui/material/styles';
|
|
|
3
3
|
import { type SlotComponentPropsFromProps } from '@mui/x-internals/types';
|
|
4
4
|
export declare function useNoData(): boolean;
|
|
5
5
|
export type CommonOverlayProps = React.SVGAttributes<SVGTextElement> & {
|
|
6
|
-
/**
|
|
7
|
-
* The message displayed by the overlay.
|
|
8
|
-
* @deprecated The customization of the message should be done with the localization key `loading` and `noData`.
|
|
9
|
-
* @see See {@link https://mui.com/x/react-charts/localization/ localization docs} for more details.
|
|
10
|
-
*/
|
|
11
|
-
message?: string;
|
|
12
6
|
sx?: SxProps<Theme>;
|
|
13
7
|
};
|
|
14
8
|
export interface ChartsOverlaySlots {
|
|
@@ -3,12 +3,6 @@ import { type SxProps, type Theme } from '@mui/material/styles';
|
|
|
3
3
|
import { type SlotComponentPropsFromProps } from '@mui/x-internals/types';
|
|
4
4
|
export declare function useNoData(): boolean;
|
|
5
5
|
export type CommonOverlayProps = React.SVGAttributes<SVGTextElement> & {
|
|
6
|
-
/**
|
|
7
|
-
* The message displayed by the overlay.
|
|
8
|
-
* @deprecated The customization of the message should be done with the localization key `loading` and `noData`.
|
|
9
|
-
* @see See {@link https://mui.com/x/react-charts/localization/ localization docs} for more details.
|
|
10
|
-
*/
|
|
11
|
-
message?: string;
|
|
12
6
|
sx?: SxProps<Theme>;
|
|
13
7
|
};
|
|
14
8
|
export interface ChartsOverlaySlots {
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./ChartsReferenceLine.mjs";
|
|
2
|
-
export
|
|
2
|
+
export { referenceLineClasses } from "./chartsReferenceLineClasses.mjs";
|
|
3
|
+
export type { ChartsReferenceLineClasses, ChartsReferenceLineClassKey } from "./chartsReferenceLineClasses.mjs";
|
|
3
4
|
export type { ChartsXReferenceLineProps } from "./ChartsXReferenceLine.mjs";
|
|
4
5
|
export type { ChartsYReferenceLineProps } from "./ChartsYReferenceLine.mjs";
|
|
@@ -1,4 +1,5 @@
|
|
|
1
1
|
export * from "./ChartsReferenceLine.js";
|
|
2
|
-
export
|
|
2
|
+
export { referenceLineClasses } from "./chartsReferenceLineClasses.js";
|
|
3
|
+
export type { ChartsReferenceLineClasses, ChartsReferenceLineClassKey } from "./chartsReferenceLineClasses.js";
|
|
3
4
|
export type { ChartsXReferenceLineProps } from "./ChartsXReferenceLine.js";
|
|
4
5
|
export type { ChartsYReferenceLineProps } from "./ChartsYReferenceLine.js";
|