@mui/x-charts 9.13.0 → 9.15.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/BarChart/AnimatedBarElement.mjs +2 -2
- package/BarChart/BarChart.mjs +1 -1
- package/BarChart/BarElement.mjs +2 -2
- package/BarChart/BarLabel/BarLabel.mjs +2 -2
- package/BarChart/BarLabel/BarLabelItem.mjs +2 -2
- package/BarChart/BarLabel/BarLabelPlot.mjs +2 -2
- package/BarChart/BarPlot.mjs +2 -2
- package/BarChart/BatchBarPlot/BarGroup.mjs +2 -2
- package/BarChart/FocusedBar.mjs +1 -1
- package/BarChart/IndividualBarPlot.mjs +2 -2
- package/BarChart/checkBarChartScaleErrors.js +1 -1
- package/BarChart/checkBarChartScaleErrors.mjs +2 -2
- package/BarChart/seriesConfig/bar/getSeriesWithDefaultValues.mjs +1 -1
- package/BarChart/seriesConfig/bar/seriesProcessor.mjs +1 -1
- package/BarChart/seriesConfig/bar/tooltipPosition.js +1 -1
- package/BarChart/seriesConfig/bar/tooltipPosition.mjs +1 -1
- package/BarChart/useBarChartProps.mjs +2 -2
- package/BarChart/useBarPlotData.mjs +1 -1
- package/CHANGELOG.md +325 -0
- package/ChartsAxisHighlight/ChartsAxisHighlightPath.mjs +1 -1
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValue.mjs +1 -1
- package/ChartsAxisHighlightValue/ChartsAxisHighlightValueItem.mjs +1 -1
- package/ChartsBrushOverlay/ChartsBrushOverlay.mjs +1 -1
- package/ChartsClipPath/ChartsClipPath.mjs +1 -1
- package/ChartsContainer/ChartsContainer.mjs +1 -1
- package/ChartsContainer/useChartsContainerProps.mjs +2 -2
- package/ChartsDataProvider/ChartsDataProvider.mjs +1 -1
- package/ChartsDataProvider/useChartsDataProviderProps.mjs +2 -2
- package/ChartsGrid/ChartsGrid.mjs +2 -2
- package/ChartsLabel/ChartsLabel.mjs +2 -2
- package/ChartsLabel/ChartsLabelGradient.mjs +2 -2
- package/ChartsLabel/ChartsLabelMark.mjs +2 -2
- package/ChartsLayerContainer/ChartsLayerContainer.js +1 -1
- package/ChartsLayerContainer/ChartsLayerContainer.mjs +4 -4
- package/ChartsLegend/ChartsLegend.mjs +2 -2
- package/ChartsLegend/ContinuousColorLegend.mjs +2 -2
- package/ChartsLegend/PiecewiseColorLegend.mjs +2 -2
- package/ChartsLocalizationProvider/ChartsLocalizationProvider.mjs +2 -2
- package/ChartsOverlay/ChartsLoadingOverlay.mjs +1 -1
- package/ChartsOverlay/ChartsNoDataOverlay.mjs +1 -1
- package/ChartsOverlay/ChartsOverlay.mjs +1 -1
- package/ChartsOverlay/common.mjs +1 -1
- package/ChartsRadialAxisHighlight/ChartsRadialAxisHighlightPath.mjs +1 -1
- package/ChartsRadialDataProvider/ChartsRadialDataProvider.mjs +1 -1
- package/ChartsRadialDataProvider/useChartsRadialDataProviderProps.mjs +2 -2
- package/ChartsRadialGrid/ChartsRadialGrid.mjs +2 -2
- package/ChartsRadiusAxis/ChartsRadiusAxis.mjs +1 -1
- package/ChartsReferenceLine/ChartsReferenceLine.mjs +1 -1
- package/ChartsReferenceLine/ChartsXReferenceLine.js +1 -1
- package/ChartsReferenceLine/ChartsXReferenceLine.mjs +3 -3
- package/ChartsReferenceLine/ChartsYReferenceLine.js +1 -1
- package/ChartsReferenceLine/ChartsYReferenceLine.mjs +3 -3
- package/ChartsReferenceLine/common.mjs +1 -1
- package/ChartsRotationAxis/ChartsRotationAxis.mjs +1 -1
- package/ChartsSurface/ChartsSurface.mjs +2 -2
- package/ChartsSvgLayer/ChartsSvgLayer.mjs +2 -2
- package/ChartsText/ChartsText.mjs +2 -2
- package/ChartsTooltip/ChartsTooltip.mjs +2 -2
- package/ChartsTooltip/ChartsTooltipContainer.js +2 -2
- package/ChartsTooltip/ChartsTooltipContainer.mjs +5 -5
- package/ChartsWrapper/ChartsWrapper.mjs +2 -2
- package/ChartsXAxis/ChartsGroupedXAxisTicks.mjs +1 -1
- package/ChartsXAxis/ChartsSingleXAxisTicks.mjs +1 -1
- package/ChartsXAxis/ChartsXAxis.mjs +1 -1
- package/ChartsXAxis/ChartsXAxisImpl.js +2 -1
- package/ChartsXAxis/ChartsXAxisImpl.mjs +4 -3
- package/ChartsXAxis/useAxisTicksProps.d.mts +17 -17
- package/ChartsXAxis/useAxisTicksProps.d.ts +17 -17
- package/ChartsXAxis/useAxisTicksProps.js +2 -1
- package/ChartsXAxis/useAxisTicksProps.mjs +4 -3
- package/ChartsYAxis/ChartsGroupedYAxisTicks.mjs +1 -1
- package/ChartsYAxis/ChartsSingleYAxisTicks.mjs +1 -1
- package/ChartsYAxis/ChartsYAxis.mjs +1 -1
- package/ChartsYAxis/ChartsYAxisImpl.js +2 -1
- package/ChartsYAxis/ChartsYAxisImpl.mjs +4 -3
- package/ChartsYAxis/useAxisTicksProps.d.mts +17 -17
- package/ChartsYAxis/useAxisTicksProps.d.ts +17 -17
- package/ChartsYAxis/useAxisTicksProps.js +2 -1
- package/ChartsYAxis/useAxisTicksProps.mjs +4 -3
- package/Gauge/Gauge.mjs +2 -2
- package/Gauge/GaugeContainer.mjs +2 -2
- package/Gauge/GaugeReferenceArc.mjs +2 -2
- package/Gauge/GaugeValueArc.mjs +2 -2
- package/Gauge/GaugeValueText.mjs +2 -2
- package/LineChart/AnimatedArea.mjs +2 -2
- package/LineChart/AnimatedLine.mjs +2 -2
- package/LineChart/AreaElement.mjs +2 -2
- package/LineChart/AreaPlot.mjs +2 -2
- package/LineChart/CircleMarkElement.mjs +2 -2
- package/LineChart/LineChart.mjs +1 -1
- package/LineChart/LineElement.mjs +2 -2
- package/LineChart/LineHighlightElement.d.mts +3 -3
- package/LineChart/LineHighlightElement.d.ts +3 -3
- package/LineChart/LineHighlightElement.js +2 -2
- package/LineChart/LineHighlightElement.mjs +4 -4
- package/LineChart/LineHighlightPlot.mjs +2 -2
- package/LineChart/LinePlot.mjs +2 -2
- package/LineChart/MarkElement.mjs +2 -2
- package/LineChart/MarkPlot.mjs +2 -2
- package/LineChart/seriesConfig/getSeriesWithDefaultValues.mjs +1 -1
- package/LineChart/seriesConfig/tooltipPosition.js +1 -1
- package/LineChart/seriesConfig/tooltipPosition.mjs +1 -1
- package/LineChart/useLineChartProps.mjs +2 -2
- package/LineChart/useLinePlotData.js +1 -1
- package/LineChart/useLinePlotData.mjs +2 -2
- package/PieChart/FocusedPieArc.mjs +2 -2
- package/PieChart/PieArc.mjs +2 -2
- package/PieChart/PieArcLabel.mjs +2 -2
- package/PieChart/PieArcLabelPlot.mjs +2 -2
- package/PieChart/PieArcPlot.mjs +2 -2
- package/PieChart/PieChart.mjs +2 -2
- package/PieChart/dataTransform/getModifiedArcProperties.mjs +1 -1
- package/PieChart/dataTransform/useTransformData.mjs +1 -1
- package/PieChart/seriesConfig/getSeriesWithDefaultValues.mjs +1 -1
- package/PieChart/seriesConfig/seriesProcessor.mjs +1 -1
- package/PieChart/seriesConfig/tooltip.mjs +1 -1
- package/PieChart/seriesConfig/tooltipPosition.js +1 -1
- package/PieChart/seriesConfig/tooltipPosition.mjs +1 -1
- package/RadarChart/FocusedRadarMark.mjs +1 -1
- package/RadarChart/RadarAxis/RadarAxis.mjs +1 -1
- package/RadarChart/RadarAxis/RadarAxis.utils.d.mts +1 -1
- package/RadarChart/RadarAxis/RadarAxis.utils.d.ts +1 -1
- package/RadarChart/RadarAxis/useRadarAxis.js +1 -1
- package/RadarChart/RadarAxis/useRadarAxis.mjs +1 -1
- package/RadarChart/RadarAxisHighlight/RadarAxisHighlight.mjs +1 -1
- package/RadarChart/RadarChart.mjs +1 -1
- package/RadarChart/RadarDataProvider/RadarDataProvider.mjs +2 -2
- package/RadarChart/RadarMetricLabels/RadarMetricLabels.js +2 -1
- package/RadarChart/RadarMetricLabels/RadarMetricLabels.mjs +3 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesArea.mjs +2 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesMarks.mjs +2 -2
- package/RadarChart/RadarSeriesPlot/RadarSeriesPlot.mjs +1 -1
- package/RadarChart/RadarSeriesPlot/useRadarSeriesData.mjs +1 -1
- package/RadarChart/seriesConfig/getSeriesWithDefaultValues.mjs +1 -1
- package/RadarChart/seriesConfig/seriesProcessor.mjs +1 -1
- package/RadarChart/seriesConfig/tooltipPosition.js +1 -1
- package/RadarChart/seriesConfig/tooltipPosition.mjs +1 -1
- package/RadarChart/useRadarChartProps.mjs +1 -1
- package/ScatterChart/FocusedScatterMark.mjs +2 -2
- package/ScatterChart/HighlightedScatterMark.mjs +2 -2
- package/ScatterChart/Scatter.mjs +2 -2
- package/ScatterChart/ScatterChart.mjs +1 -1
- package/ScatterChart/ScatterMarker.mjs +2 -2
- package/ScatterChart/ScatterPlot.mjs +1 -1
- package/ScatterChart/async/ScatterAsyncBatch.mjs +2 -2
- package/ScatterChart/async/scatterRenderData.selectors.js +1 -1
- package/ScatterChart/async/scatterRenderData.selectors.mjs +1 -1
- package/ScatterChart/seriesConfig/getSeriesWithDefaultValues.mjs +1 -1
- package/ScatterChart/seriesConfig/seriesProcessor.mjs +1 -1
- package/ScatterChart/seriesConfig/tooltipPosition.js +1 -1
- package/ScatterChart/seriesConfig/tooltipPosition.mjs +1 -1
- package/ScatterChart/useScatterChartProps.mjs +2 -2
- package/SparkLineChart/SparkLineChart.js +21 -21
- package/SparkLineChart/SparkLineChart.mjs +23 -23
- package/Toolbar/Toolbar.mjs +2 -2
- package/Toolbar/ToolbarButton.mjs +2 -2
- package/context/ChartsProvider/ChartsProvider.types.d.mts +1 -1
- package/context/ChartsProvider/ChartsProvider.types.d.ts +1 -1
- package/context/ChartsSlotsContext.mjs +1 -1
- package/hooks/animation/useAnimate.mjs +1 -1
- package/hooks/useAxisCoordinates.mjs +1 -1
- package/hooks/useAxisTicks.mjs +1 -1
- package/hooks/useIsItemFocusedGetter.js +1 -1
- package/hooks/useIsItemFocusedGetter.mjs +1 -1
- package/index.js +1 -1
- package/index.mjs +1 -1
- package/internals/Flatbush.js +9 -0
- package/internals/Flatbush.mjs +9 -0
- package/internals/commonNextFocusItem.d.mts +46 -0
- package/internals/commonNextFocusItem.d.ts +46 -0
- package/internals/commonNextFocusItem.js +241 -0
- package/internals/commonNextFocusItem.mjs +235 -0
- package/internals/components/AxisSharedComponents.mjs +1 -1
- package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.js +31 -8
- package/internals/components/ChartsAccessibilityProxy/ChartsAccessibilityProxy.mjs +32 -9
- package/internals/components/ChartsAccessibilityProxy/useZoomAnnouncement.d.mts +9 -0
- package/internals/components/ChartsAccessibilityProxy/useZoomAnnouncement.d.ts +9 -0
- package/internals/components/ChartsAccessibilityProxy/useZoomAnnouncement.js +67 -0
- package/internals/components/ChartsAccessibilityProxy/useZoomAnnouncement.mjs +62 -0
- package/internals/components/ChartsAxesGradients/ChartsContinuousGradientObjectBound.mjs +1 -1
- package/internals/consumeSlots.mjs +2 -2
- package/internals/consumeThemeProps.js +1 -2
- package/internals/consumeThemeProps.mjs +1 -1
- package/internals/createCommonKeyboardFocusHandler.js +16 -0
- package/internals/createCommonKeyboardFocusHandler.mjs +17 -1
- package/internals/defaultizeMargin.mjs +1 -1
- package/internals/geometry.js +1 -1
- package/internals/geometry.mjs +1 -1
- package/internals/getGroupingConfig.mjs +1 -1
- package/internals/getInlineTypographyStyle.d.mts +9 -0
- package/internals/getInlineTypographyStyle.d.ts +9 -0
- package/internals/getInlineTypographyStyle.js +22 -0
- package/internals/getInlineTypographyStyle.mjs +16 -0
- package/internals/getLineLikeTooltip.mjs +1 -1
- package/internals/getWordsByLines.mjs +1 -1
- package/internals/material/index.mjs +1 -1
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.mjs +1 -1
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.js +1 -1
- package/internals/plugins/corePlugins/useChartAnimation/useChartAnimation.selectors.mjs +1 -1
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.mjs +1 -1
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.js +1 -1
- package/internals/plugins/corePlugins/useChartDimensions/useChartDimensions.selectors.mjs +1 -1
- package/internals/plugins/corePlugins/useChartId/useChartId.mjs +1 -1
- package/internals/plugins/corePlugins/useChartId/useChartId.selectors.js +1 -1
- package/internals/plugins/corePlugins/useChartId/useChartId.selectors.mjs +1 -1
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.mjs +1 -1
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.js +1 -1
- package/internals/plugins/corePlugins/useChartSeries/useChartSeries.selectors.mjs +1 -1
- package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.js +1 -1
- package/internals/plugins/corePlugins/useChartSeries/useChartSeriesLayout.selectors.mjs +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.mjs +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.selectors.js +1 -1
- package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartBrush/useChartBrush.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisAutoSize.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/computeAxisValue.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/sampling.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.js +3 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxis.mjs +4 -4
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPosition.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisPreview.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.mts +10 -10
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.d.ts +10 -10
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.mts +10 -10
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.d.ts +10 -10
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianHighlight.selectors.mjs +2 -2
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianInteraction.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartCartesianTooltip.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartClosestPoint/useChartClosestPoint.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.js +1 -1
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.mjs +2 -2
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartHighlight/useChartHighlight.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.js +1 -1
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.mjs +2 -2
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartInteraction/useChartInteraction.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +23 -9
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.mjs +24 -10
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.mts +3 -0
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.d.ts +3 -0
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.js +4 -3
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.mjs +3 -2
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.mts +12 -0
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.types.d.ts +12 -0
- package/internals/plugins/featurePlugins/useChartPolarAxis/computeAxisValue.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/defaultizeAxis.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.js +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.mjs +3 -3
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarAxis.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.mts +3 -3
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.d.ts +3 -3
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.js +3 -3
- package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.mjs +3 -3
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.js +1 -1
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.mjs +2 -2
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartTooltip/useChartTooltip.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useChartZAxis/useChartZAxis.selectors.mjs +1 -1
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.mjs +1 -1
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.js +1 -1
- package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.selectors.mjs +1 -1
- package/internals/plugins/models/plugin.d.mts +1 -1
- package/internals/plugins/models/plugin.d.ts +1 -1
- package/internals/plugins/utils/useLazySelectorEffect.d.mts +1 -1
- package/internals/plugins/utils/useLazySelectorEffect.d.ts +1 -1
- package/internals/processLineLikeSeries.mjs +1 -1
- package/internals/seriesSelectorOfType.js +2 -2
- package/internals/seriesSelectorOfType.mjs +2 -2
- package/internals/store/extractPluginParamsFromProps.mjs +1 -1
- package/internals/store/useCharts.d.mts +1 -1
- package/internals/store/useCharts.d.ts +1 -1
- package/internals/store/useCharts.js +1 -1
- package/internals/store/useCharts.mjs +1 -1
- package/internals/store/useStore.d.mts +1 -1
- package/internals/store/useStore.d.ts +1 -1
- package/internals/ts-generic.d.mts +1 -1
- package/internals/ts-generic.d.ts +1 -1
- package/locales/elGR.d.mts +6 -1
- package/locales/elGR.d.ts +6 -1
- package/locales/elGR.js +8 -0
- package/locales/elGR.mjs +8 -0
- package/locales/enUS.d.mts +6 -1
- package/locales/enUS.d.ts +6 -1
- package/locales/enUS.js +8 -0
- package/locales/enUS.mjs +8 -0
- package/locales/frFR.d.mts +6 -1
- package/locales/frFR.d.ts +6 -1
- package/locales/frFR.js +8 -0
- package/locales/frFR.mjs +8 -0
- package/locales/nbNO.d.mts +6 -1
- package/locales/nbNO.d.ts +6 -1
- package/locales/nbNO.js +8 -0
- package/locales/nbNO.mjs +8 -0
- package/locales/ptBR.d.mts +6 -1
- package/locales/ptBR.d.ts +6 -1
- package/locales/ptBR.js +8 -0
- package/locales/ptBR.mjs +8 -0
- package/locales/ptPT.d.mts +6 -1
- package/locales/ptPT.d.ts +6 -1
- package/locales/ptPT.js +8 -0
- package/locales/ptPT.mjs +8 -0
- package/locales/svSE.d.mts +6 -1
- package/locales/svSE.d.ts +6 -1
- package/locales/svSE.js +8 -0
- package/locales/svSE.mjs +8 -0
- package/locales/utils/chartsLocaleTextApi.d.mts +15 -1
- package/locales/utils/chartsLocaleTextApi.d.ts +15 -1
- package/locales/utils/getChartsLocalization.d.mts +6 -1
- package/locales/utils/getChartsLocalization.d.ts +6 -1
- package/locales/utils/getChartsLocalization.mjs +1 -1
- package/package.json +9 -8
- package/tests/web-components.js +1 -0
- package/tests/web-components.mjs +1 -0
|
@@ -0,0 +1,67 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
'use client';
|
|
3
|
+
|
|
4
|
+
var _interopRequireWildcard = require("@babel/runtime/helpers/interopRequireWildcard").default;
|
|
5
|
+
Object.defineProperty(exports, "__esModule", {
|
|
6
|
+
value: true
|
|
7
|
+
});
|
|
8
|
+
exports.useZoomAnnouncement = useZoomAnnouncement;
|
|
9
|
+
var React = _interopRequireWildcard(require("react"));
|
|
10
|
+
var _hooks = require("../../../hooks");
|
|
11
|
+
var _useStore = require("../../store/useStore");
|
|
12
|
+
var _useChartKeyboardNavigation = require("../../plugins/featurePlugins/useChartKeyboardNavigation");
|
|
13
|
+
var _useChartCartesianAxis = require("../../plugins/featurePlugins/useChartCartesianAxis");
|
|
14
|
+
/**
|
|
15
|
+
* Get the message announcing the visible range of the zoomable axes.
|
|
16
|
+
*
|
|
17
|
+
* The message is taken when the keyboard zoom and pan asks for it, not derived from the zoom
|
|
18
|
+
* itself: the zoom also moves on wheel, drag, and from the application, and the live region must
|
|
19
|
+
* stay silent then.
|
|
20
|
+
* @returns {string | null} the message to announce, or `null` when there is nothing to announce
|
|
21
|
+
*/
|
|
22
|
+
function useZoomAnnouncement() {
|
|
23
|
+
const store = (0, _useStore.useStore)();
|
|
24
|
+
const announcement = store.use(_useChartKeyboardNavigation.selectorChartsZoomAnnouncement);
|
|
25
|
+
const zoomMap = store.use(_useChartCartesianAxis.selectorChartZoomMap);
|
|
26
|
+
const optionsLookup = store.use(_useChartCartesianAxis.selectorChartZoomOptionsLookup);
|
|
27
|
+
const {
|
|
28
|
+
localeText
|
|
29
|
+
} = (0, _hooks.useChartsLocalization)();
|
|
30
|
+
const [message, setMessage] = React.useState(null);
|
|
31
|
+
|
|
32
|
+
// The announcement is written from the values of the render the request lands on, so a later
|
|
33
|
+
// zoom coming from elsewhere does not rewrite the live region.
|
|
34
|
+
const currentValuesRef = React.useRef({
|
|
35
|
+
zoomMap,
|
|
36
|
+
optionsLookup,
|
|
37
|
+
localeText
|
|
38
|
+
});
|
|
39
|
+
currentValuesRef.current = {
|
|
40
|
+
zoomMap,
|
|
41
|
+
optionsLookup,
|
|
42
|
+
localeText
|
|
43
|
+
};
|
|
44
|
+
React.useEffect(() => {
|
|
45
|
+
if (announcement === 0) {
|
|
46
|
+
setMessage(null);
|
|
47
|
+
return;
|
|
48
|
+
}
|
|
49
|
+
const current = currentValuesRef.current;
|
|
50
|
+
if (!current.zoomMap) {
|
|
51
|
+
return;
|
|
52
|
+
}
|
|
53
|
+
const descriptions = Object.values(current.optionsLookup).map(options => {
|
|
54
|
+
const zoomData = current.zoomMap.get(options.axisId);
|
|
55
|
+
if (!zoomData) {
|
|
56
|
+
return null;
|
|
57
|
+
}
|
|
58
|
+
return current.localeText.zoomRangeDescription({
|
|
59
|
+
axisDirection: options.axisDirection,
|
|
60
|
+
start: zoomData.start,
|
|
61
|
+
end: zoomData.end
|
|
62
|
+
});
|
|
63
|
+
}).filter(Boolean);
|
|
64
|
+
setMessage(descriptions.length === 0 ? null : descriptions.join(current.localeText.a11yConnector));
|
|
65
|
+
}, [announcement]);
|
|
66
|
+
return message;
|
|
67
|
+
}
|
|
@@ -0,0 +1,62 @@
|
|
|
1
|
+
'use client';
|
|
2
|
+
|
|
3
|
+
import * as React from 'react';
|
|
4
|
+
import { useChartsLocalization } from "../../../hooks/index.mjs";
|
|
5
|
+
import { useStore } from "../../store/useStore.mjs";
|
|
6
|
+
import { selectorChartsZoomAnnouncement } from "../../plugins/featurePlugins/useChartKeyboardNavigation/index.mjs";
|
|
7
|
+
import { selectorChartZoomMap, selectorChartZoomOptionsLookup } from "../../plugins/featurePlugins/useChartCartesianAxis/index.mjs";
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Get the message announcing the visible range of the zoomable axes.
|
|
11
|
+
*
|
|
12
|
+
* The message is taken when the keyboard zoom and pan asks for it, not derived from the zoom
|
|
13
|
+
* itself: the zoom also moves on wheel, drag, and from the application, and the live region must
|
|
14
|
+
* stay silent then.
|
|
15
|
+
* @returns {string | null} the message to announce, or `null` when there is nothing to announce
|
|
16
|
+
*/
|
|
17
|
+
export function useZoomAnnouncement() {
|
|
18
|
+
const store = useStore();
|
|
19
|
+
const announcement = store.use(selectorChartsZoomAnnouncement);
|
|
20
|
+
const zoomMap = store.use(selectorChartZoomMap);
|
|
21
|
+
const optionsLookup = store.use(selectorChartZoomOptionsLookup);
|
|
22
|
+
const {
|
|
23
|
+
localeText
|
|
24
|
+
} = useChartsLocalization();
|
|
25
|
+
const [message, setMessage] = React.useState(null);
|
|
26
|
+
|
|
27
|
+
// The announcement is written from the values of the render the request lands on, so a later
|
|
28
|
+
// zoom coming from elsewhere does not rewrite the live region.
|
|
29
|
+
const currentValuesRef = React.useRef({
|
|
30
|
+
zoomMap,
|
|
31
|
+
optionsLookup,
|
|
32
|
+
localeText
|
|
33
|
+
});
|
|
34
|
+
currentValuesRef.current = {
|
|
35
|
+
zoomMap,
|
|
36
|
+
optionsLookup,
|
|
37
|
+
localeText
|
|
38
|
+
};
|
|
39
|
+
React.useEffect(() => {
|
|
40
|
+
if (announcement === 0) {
|
|
41
|
+
setMessage(null);
|
|
42
|
+
return;
|
|
43
|
+
}
|
|
44
|
+
const current = currentValuesRef.current;
|
|
45
|
+
if (!current.zoomMap) {
|
|
46
|
+
return;
|
|
47
|
+
}
|
|
48
|
+
const descriptions = Object.values(current.optionsLookup).map(options => {
|
|
49
|
+
const zoomData = current.zoomMap.get(options.axisId);
|
|
50
|
+
if (!zoomData) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
53
|
+
return current.localeText.zoomRangeDescription({
|
|
54
|
+
axisDirection: options.axisDirection,
|
|
55
|
+
start: zoomData.start,
|
|
56
|
+
end: zoomData.end
|
|
57
|
+
});
|
|
58
|
+
}).filter(Boolean);
|
|
59
|
+
setMessage(descriptions.length === 0 ? null : descriptions.join(current.localeText.a11yConnector));
|
|
60
|
+
}, [announcement]);
|
|
61
|
+
return message;
|
|
62
|
+
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import { interpolateDate, interpolateNumber } from '@mui/x-charts-vendor/d3-interpolate';
|
|
3
3
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
4
4
|
const PX_PRECISION = 10;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
5
5
|
const _excluded = ["slots", "slotProps"],
|
|
6
6
|
_excluded2 = ["ownerState"];
|
|
7
7
|
import { useTheme, useThemeProps } from '@mui/material/styles';
|
|
@@ -56,8 +56,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
56
56
|
* @param {Record<string, any>} options.defaultProps A set of defaults for the component, will be deep merged with the props.
|
|
57
57
|
* @param {Function} options.classesResolver A function that returns the classes for the component. It receives the props, after theme props and defaults have been applied. And the theme object as the second argument.
|
|
58
58
|
* @param InComponent The component to render if the slot is not provided.
|
|
59
|
-
*/
|
|
60
|
-
const consumeThemeProps = (name, options, InComponent) => /*#__PURE__*/React.forwardRef(function ConsumeThemeInternal(props, ref) {
|
|
59
|
+
*/const consumeThemeProps = (name, options, InComponent) => /*#__PURE__*/React.forwardRef(function ConsumeThemeInternal(props, ref) {
|
|
61
60
|
const themedProps = (0, _styles.useThemeProps)({
|
|
62
61
|
props,
|
|
63
62
|
// eslint-disable-next-line mui/material-ui-name-matches-component-name
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
4
|
import { useTheme, useThemeProps } from '@mui/material/styles';
|
|
5
5
|
import resolveProps from '@mui/utils/resolveProps';
|
|
6
6
|
import * as React from 'react';
|
|
@@ -19,6 +19,22 @@ function createCommonKeyboardFocusHandler(outSeriesTypes, allowCycles, useCurren
|
|
|
19
19
|
return (0, _commonNextFocusItem.createGetPreviousSeriesFocusedItem)(outSeriesTypes);
|
|
20
20
|
case 'ArrowUp':
|
|
21
21
|
return (0, _commonNextFocusItem.createGetNextSeriesFocusedItem)(outSeriesTypes);
|
|
22
|
+
case 'Home':
|
|
23
|
+
// Ctrl+Home (⌘+Home on macOS) jumps to the first item of the first series.
|
|
24
|
+
if (event.ctrlKey || event.metaKey) {
|
|
25
|
+
return (0, _commonNextFocusItem.createGetFirstSeriesFirstIndexFocusedItem)(outSeriesTypes, useCurrentSeriesMaxLength);
|
|
26
|
+
}
|
|
27
|
+
return (0, _commonNextFocusItem.createGetFirstIndexFocusedItem)(outSeriesTypes, useCurrentSeriesMaxLength);
|
|
28
|
+
case 'End':
|
|
29
|
+
// Ctrl+End (⌘+End on macOS) jumps to the last item of the last series.
|
|
30
|
+
if (event.ctrlKey || event.metaKey) {
|
|
31
|
+
return (0, _commonNextFocusItem.createGetLastSeriesLastIndexFocusedItem)(outSeriesTypes, useCurrentSeriesMaxLength);
|
|
32
|
+
}
|
|
33
|
+
return (0, _commonNextFocusItem.createGetLastIndexFocusedItem)(outSeriesTypes, useCurrentSeriesMaxLength);
|
|
34
|
+
case 'PageUp':
|
|
35
|
+
return (0, _commonNextFocusItem.createGetFirstSeriesFocusedItem)(outSeriesTypes);
|
|
36
|
+
case 'PageDown':
|
|
37
|
+
return (0, _commonNextFocusItem.createGetLastSeriesFocusedItem)(outSeriesTypes);
|
|
22
38
|
default:
|
|
23
39
|
return null;
|
|
24
40
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createGetNextIndexFocusedItem, createGetPreviousIndexFocusedItem, createGetNextSeriesFocusedItem, createGetPreviousSeriesFocusedItem } from "./commonNextFocusItem.mjs";
|
|
1
|
+
import { createGetNextIndexFocusedItem, createGetPreviousIndexFocusedItem, createGetFirstIndexFocusedItem, createGetLastIndexFocusedItem, createGetNextSeriesFocusedItem, createGetPreviousSeriesFocusedItem, createGetFirstSeriesFirstIndexFocusedItem, createGetLastSeriesLastIndexFocusedItem, createGetFirstSeriesFocusedItem, createGetLastSeriesFocusedItem } from "./commonNextFocusItem.mjs";
|
|
2
2
|
|
|
3
3
|
/**
|
|
4
4
|
* Create a keyboard focus handler for common use cases where focused item are defined by the series is and data index.
|
|
@@ -14,6 +14,22 @@ export function createCommonKeyboardFocusHandler(outSeriesTypes, allowCycles, us
|
|
|
14
14
|
return createGetPreviousSeriesFocusedItem(outSeriesTypes);
|
|
15
15
|
case 'ArrowUp':
|
|
16
16
|
return createGetNextSeriesFocusedItem(outSeriesTypes);
|
|
17
|
+
case 'Home':
|
|
18
|
+
// Ctrl+Home (⌘+Home on macOS) jumps to the first item of the first series.
|
|
19
|
+
if (event.ctrlKey || event.metaKey) {
|
|
20
|
+
return createGetFirstSeriesFirstIndexFocusedItem(outSeriesTypes, useCurrentSeriesMaxLength);
|
|
21
|
+
}
|
|
22
|
+
return createGetFirstIndexFocusedItem(outSeriesTypes, useCurrentSeriesMaxLength);
|
|
23
|
+
case 'End':
|
|
24
|
+
// Ctrl+End (⌘+End on macOS) jumps to the last item of the last series.
|
|
25
|
+
if (event.ctrlKey || event.metaKey) {
|
|
26
|
+
return createGetLastSeriesLastIndexFocusedItem(outSeriesTypes, useCurrentSeriesMaxLength);
|
|
27
|
+
}
|
|
28
|
+
return createGetLastIndexFocusedItem(outSeriesTypes, useCurrentSeriesMaxLength);
|
|
29
|
+
case 'PageUp':
|
|
30
|
+
return createGetFirstSeriesFocusedItem(outSeriesTypes);
|
|
31
|
+
case 'PageDown':
|
|
32
|
+
return createGetLastSeriesFocusedItem(outSeriesTypes);
|
|
17
33
|
default:
|
|
18
34
|
return null;
|
|
19
35
|
}
|
package/internals/geometry.js
CHANGED
|
@@ -19,7 +19,7 @@ const ANGLE_APPROX = 5; // Angle (in deg) for which we approximate the rectangle
|
|
|
19
19
|
function getMinXTranslation(width, height, angle = 0) {
|
|
20
20
|
if (process.env.NODE_ENV !== 'production') {
|
|
21
21
|
if (angle > 90 || angle < -90) {
|
|
22
|
-
(0, _warning.warnOnce)([`MUI X Charts: It seems you applied an angle larger than 90° or smaller than -90° to an axis text.`, `This could cause some text overlapping.`, `If you encounter a use case where it's needed, please open an issue.`]);
|
|
22
|
+
(0, _warning.warnOnce)([`MUI X Charts: It seems you applied an angle larger than 90° or smaller than -90° to an axis text.`, `This could cause some text overlapping.`, `If you encounter a use case where it's needed, please open an issue.`].join('\n'));
|
|
23
23
|
}
|
|
24
24
|
}
|
|
25
25
|
const standardAngle = Math.min(Math.abs(angle) % 180, Math.abs(Math.abs(angle) % 180 - 180) % 180); // Map from R to [0, 90]
|
package/internals/geometry.mjs
CHANGED
|
@@ -13,7 +13,7 @@ const ANGLE_APPROX = 5; // Angle (in deg) for which we approximate the rectangle
|
|
|
13
13
|
export function getMinXTranslation(width, height, angle = 0) {
|
|
14
14
|
if (process.env.NODE_ENV !== 'production') {
|
|
15
15
|
if (angle > 90 || angle < -90) {
|
|
16
|
-
warnOnce([`MUI X Charts: It seems you applied an angle larger than 90° or smaller than -90° to an axis text.`, `This could cause some text overlapping.`, `If you encounter a use case where it's needed, please open an issue.`]);
|
|
16
|
+
warnOnce([`MUI X Charts: It seems you applied an angle larger than 90° or smaller than -90° to an axis text.`, `This could cause some text overlapping.`, `If you encounter a use case where it's needed, please open an issue.`].join('\n'));
|
|
17
17
|
}
|
|
18
18
|
}
|
|
19
19
|
const standardAngle = Math.min(Math.abs(angle) % 180, Math.abs(Math.abs(angle) % 180 - 180) % 180); // Map from R to [0, 90]
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the typography variant without its nested rules (media queries, selectors),
|
|
4
|
+
* so it can be passed to an inline `style` prop.
|
|
5
|
+
* Inline styles can't hold nested rules: React ignores them and warns in development.
|
|
6
|
+
* @param variant A theme typography variant, for example `theme.typography.caption`.
|
|
7
|
+
* @returns The variant's flat CSS properties.
|
|
8
|
+
*/
|
|
9
|
+
export declare function getInlineTypographyStyle(variant: object): React.CSSProperties;
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import type * as React from 'react';
|
|
2
|
+
/**
|
|
3
|
+
* Returns the typography variant without its nested rules (media queries, selectors),
|
|
4
|
+
* so it can be passed to an inline `style` prop.
|
|
5
|
+
* Inline styles can't hold nested rules: React ignores them and warns in development.
|
|
6
|
+
* @param variant A theme typography variant, for example `theme.typography.caption`.
|
|
7
|
+
* @returns The variant's flat CSS properties.
|
|
8
|
+
*/
|
|
9
|
+
export declare function getInlineTypographyStyle(variant: object): React.CSSProperties;
|
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
Object.defineProperty(exports, "__esModule", {
|
|
4
|
+
value: true
|
|
5
|
+
});
|
|
6
|
+
exports.getInlineTypographyStyle = getInlineTypographyStyle;
|
|
7
|
+
/**
|
|
8
|
+
* Returns the typography variant without its nested rules (media queries, selectors),
|
|
9
|
+
* so it can be passed to an inline `style` prop.
|
|
10
|
+
* Inline styles can't hold nested rules: React ignores them and warns in development.
|
|
11
|
+
* @param variant A theme typography variant, for example `theme.typography.caption`.
|
|
12
|
+
* @returns The variant's flat CSS properties.
|
|
13
|
+
*/
|
|
14
|
+
function getInlineTypographyStyle(variant) {
|
|
15
|
+
const result = {};
|
|
16
|
+
for (const [key, value] of Object.entries(variant)) {
|
|
17
|
+
if (value === null || typeof value !== 'object') {
|
|
18
|
+
result[key] = value;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
return result;
|
|
22
|
+
}
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Returns the typography variant without its nested rules (media queries, selectors),
|
|
3
|
+
* so it can be passed to an inline `style` prop.
|
|
4
|
+
* Inline styles can't hold nested rules: React ignores them and warns in development.
|
|
5
|
+
* @param variant A theme typography variant, for example `theme.typography.caption`.
|
|
6
|
+
* @returns The variant's flat CSS properties.
|
|
7
|
+
*/
|
|
8
|
+
export function getInlineTypographyStyle(variant) {
|
|
9
|
+
const result = {};
|
|
10
|
+
for (const [key, value] of Object.entries(variant)) {
|
|
11
|
+
if (value === null || typeof value !== 'object') {
|
|
12
|
+
result[key] = value;
|
|
13
|
+
}
|
|
14
|
+
}
|
|
15
|
+
return result;
|
|
16
|
+
}
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
|
|
6
6
|
export const useChartAnimation = ({
|
|
@@ -4,6 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.selectorChartSkipAnimation = void 0;
|
|
7
|
-
var _store = require("@
|
|
7
|
+
var _store = require("@base-ui/utils/store");
|
|
8
8
|
const selectorChartAnimationState = state => state.animation;
|
|
9
9
|
const selectorChartSkipAnimation = exports.selectorChartSkipAnimation = (0, _store.createSelector)(selectorChartAnimationState, state => state.skip || state.skipAnimationRequests > 0);
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { createSelector } from '@
|
|
1
|
+
import { createSelector } from '@base-ui/utils/store';
|
|
2
2
|
const selectorChartAnimationState = state => state.animation;
|
|
3
3
|
export const selectorChartSkipAnimation = createSelector(selectorChartAnimationState, state => state.skip || state.skipAnimationRequests > 0);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { useEffectAfterFirstRender } from '@mui/x-internals/useEffectAfterFirstRender';
|
|
6
6
|
import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.selectorChartSvgWidth = exports.selectorChartSvgHeight = exports.selectorChartPropsWidth = exports.selectorChartPropsHeight = exports.selectorChartMargin = exports.selectorChartDrawingArea = exports.selectorChartDimensionsState = void 0;
|
|
7
|
-
var _store = require("@
|
|
7
|
+
var _store = require("@base-ui/utils/store");
|
|
8
8
|
var _useChartAxisSize = require("../../featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors");
|
|
9
9
|
const selectorChartDimensionsState = state => state.dimensions;
|
|
10
10
|
exports.selectorChartDimensionsState = selectorChartDimensionsState;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createSelector, createSelectorMemoized } from '@
|
|
1
|
+
import { createSelector, createSelectorMemoized } from '@base-ui/utils/store';
|
|
2
2
|
import { selectorChartAxisSizes } from "../../featurePlugins/useChartCartesianAxis/useChartAxisSize.selectors.mjs";
|
|
3
3
|
export const selectorChartDimensionsState = state => state.dimensions;
|
|
4
4
|
export const selectorChartMargin = state => state.dimensions.margin;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
4
|
import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
|
|
5
5
|
import { useEffectAfterFirstRender } from '@mui/x-internals/useEffectAfterFirstRender';
|
|
6
6
|
import { rainbowSurgePalette } from "../../../../colorPalettes/index.mjs";
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.selectorChartsDataset = exports.selectorChartSeriesState = exports.selectorChartSeriesProcessed = exports.selectorChartSeriesConfigGetter = exports.selectorChartDefaultizedSeries = void 0;
|
|
7
|
-
var _store = require("@
|
|
7
|
+
var _store = require("@base-ui/utils/store");
|
|
8
8
|
var _processSeries = require("./processSeries");
|
|
9
9
|
var _useChartVisibilityManager = require("../../featurePlugins/useChartVisibilityManager");
|
|
10
10
|
var _useChartSeriesConfig = require("../useChartSeriesConfig/useChartSeriesConfig.selectors");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createSelectorMemoized, createSelector } from '@
|
|
1
|
+
import { createSelectorMemoized, createSelector } from '@base-ui/utils/store';
|
|
2
2
|
import { applySeriesProcessors } from "./processSeries.mjs";
|
|
3
3
|
import { selectorIsItemVisibleGetter } from "../../featurePlugins/useChartVisibilityManager/index.mjs";
|
|
4
4
|
import { selectorChartSeriesConfig } from "../useChartSeriesConfig/useChartSeriesConfig.selectors.mjs";
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.selectorChartSeriesLayout = void 0;
|
|
7
|
-
var _store = require("@
|
|
7
|
+
var _store = require("@base-ui/utils/store");
|
|
8
8
|
var _processSeries = require("./processSeries");
|
|
9
9
|
var _useChartDimensions = require("../useChartDimensions");
|
|
10
10
|
var _useChartSeriesConfig = require("../useChartSeriesConfig/useChartSeriesConfig.selectors");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createSelectorMemoized } from '@
|
|
1
|
+
import { createSelectorMemoized } from '@base-ui/utils/store';
|
|
2
2
|
import { applySeriesLayout } from "./processSeries.mjs";
|
|
3
3
|
import { selectorChartDrawingArea } from "../useChartDimensions/index.mjs";
|
|
4
4
|
import { selectorChartSeriesConfig } from "../useChartSeriesConfig/useChartSeriesConfig.selectors.mjs";
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
4
|
import useEventCallback from '@mui/utils/useEventCallback';
|
|
5
5
|
import { serializeIdentifier as serializeIdentifierFn } from "./utils/serializeIdentifier.mjs";
|
|
6
6
|
import { cleanIdentifier as cleanIdentifierFn } from "./utils/cleanIdentifier.mjs";
|
package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.selectors.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.selectorChartSeriesConfigState = exports.selectorChartSeriesConfig = void 0;
|
|
7
|
-
var _store = require("@
|
|
7
|
+
var _store = require("@base-ui/utils/store");
|
|
8
8
|
const selectorChartSeriesConfigState = state => state.seriesConfig;
|
|
9
9
|
exports.selectorChartSeriesConfigState = selectorChartSeriesConfigState;
|
|
10
10
|
const selectorChartSeriesConfig = exports.selectorChartSeriesConfig = (0, _store.createSelector)(selectorChartSeriesConfigState, seriesConfigState => seriesConfigState.config);
|
package/internals/plugins/corePlugins/useChartSeriesConfig/useChartSeriesConfig.selectors.mjs
CHANGED
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { createSelector } from '@
|
|
1
|
+
import { createSelector } from '@base-ui/utils/store';
|
|
2
2
|
export const selectorChartSeriesConfigState = state => state.seriesConfig;
|
|
3
3
|
export const selectorChartSeriesConfig = createSelector(selectorChartSeriesConfigState, seriesConfigState => seriesConfigState.config);
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
4
|
import useEventCallback from '@mui/utils/useEventCallback';
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.selectorIsBrushSelectionActive = exports.selectorIsBrushEnabled = exports.selectorBrushState = exports.selectorBrushStartY = exports.selectorBrushStartX = exports.selectorBrushStart = exports.selectorBrushShouldPreventTooltip = exports.selectorBrushShouldPreventAxisHighlight = exports.selectorBrushCurrentY = exports.selectorBrushCurrentX = exports.selectorBrushCurrent = exports.selectorBrushConfigZoom = exports.selectorBrushConfigNoZoom = exports.selectorBrushConfig = exports.selectorBrush = void 0;
|
|
7
|
-
var _store = require("@
|
|
7
|
+
var _store = require("@base-ui/utils/store");
|
|
8
8
|
var _useChartCartesianAxisRendering = require("../useChartCartesianAxis/useChartCartesianAxisRendering.selectors");
|
|
9
9
|
var _useChartSeries = require("../../corePlugins/useChartSeries");
|
|
10
10
|
const selectorBrush = state => state.brush;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createSelector, createSelectorMemoized } from '@
|
|
1
|
+
import { createSelector, createSelectorMemoized } from '@base-ui/utils/store';
|
|
2
2
|
import { selectorChartZoomOptionsLookup } from "../useChartCartesianAxis/useChartCartesianAxisRendering.selectors.mjs";
|
|
3
3
|
import { selectorChartSeriesProcessed } from "../../corePlugins/useChartSeries/index.mjs";
|
|
4
4
|
export const selectorBrush = state => state.brush;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import { batchMeasureStrings } from "../../../domUtils.mjs";
|
|
3
3
|
import { deg2rad } from "../../../angleConversion.mjs";
|
|
4
4
|
import { getGraphemeCount } from "../../../getGraphemeCount.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import { createScalarFormatter } from "../../../defaultValueFormatters.mjs";
|
|
3
3
|
import { isBandScaleConfig, isPointScaleConfig } from "../../../../models/axis.mjs";
|
|
4
4
|
import { getColorScale, getOrdinalColorScale, getSequentialColorScale } from "../../../colorScale.mjs";
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
|
|
2
|
-
import _extends from "@babel/runtime/helpers/
|
|
2
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
3
3
|
import { defaultizeZoom, getEffectiveZoomReverse } from "./defaultizeZoom.mjs";
|
|
4
4
|
import { DEFAULT_X_AXIS_KEY, DEFAULT_Y_AXIS_KEY, DEFAULT_AXIS_SIZE_HEIGHT, DEFAULT_AXIS_SIZE_WIDTH, AXIS_LABEL_DEFAULT_HEIGHT } from "../../../../constants/index.mjs";
|
|
5
5
|
export function defaultizeXAxis(inAxes, dataset, axesGap) {
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import { DEFAULT_ZOOM_SLIDER_PREVIEW_SIZE, DEFAULT_ZOOM_SLIDER_SHOW_TOOLTIP, DEFAULT_ZOOM_SLIDER_SIZE } from "../../../constants.mjs";
|
|
3
3
|
/**
|
|
4
4
|
* Ordinal Y axes (band/point) render with `domain[0]` at the top of the chart
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.getFullRangeZoom = getFullRangeZoom;
|
|
7
7
|
exports.selectorChartSamplingState = exports.selectorChartSamplingPyramids = exports.selectorChartHighlightBucketSize = void 0;
|
|
8
|
-
var _store = require("@
|
|
8
|
+
var _store = require("@base-ui/utils/store");
|
|
9
9
|
var _useChartSeries = require("../../corePlugins/useChartSeries");
|
|
10
10
|
var _useChartSeriesConfig = require("../../corePlugins/useChartSeriesConfig");
|
|
11
11
|
var _useChartDimensions = require("../../corePlugins/useChartDimensions");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createSelectorMemoized } from '@
|
|
1
|
+
import { createSelectorMemoized } from '@base-ui/utils/store';
|
|
2
2
|
import { selectorChartSeriesProcessed } from "../../corePlugins/useChartSeries/index.mjs";
|
|
3
3
|
import { selectorChartSeriesConfig } from "../../corePlugins/useChartSeriesConfig/index.mjs";
|
|
4
4
|
import { selectorChartDrawingArea } from "../../corePlugins/useChartDimensions/index.mjs";
|
package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.selectorChartYAxisAutoSizes = exports.selectorChartYAxisAutoSizeResults = exports.selectorChartXAxisAutoSizes = exports.selectorChartXAxisAutoSizeResults = void 0;
|
|
7
|
-
var _store = require("@
|
|
7
|
+
var _store = require("@base-ui/utils/store");
|
|
8
8
|
var _useChartCartesianAxisLayout = require("./useChartCartesianAxisLayout.selectors");
|
|
9
9
|
var _computeAxisAutoSize = require("./computeAxisAutoSize");
|
|
10
10
|
var _useChartAxisDomains = require("./useChartAxisDomains.selectors");
|
package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisAutoSize.selectors.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createSelectorMemoized } from '@
|
|
1
|
+
import { createSelectorMemoized } from '@base-ui/utils/store';
|
|
2
2
|
import { selectorChartRawXAxis, selectorChartRawYAxis } from "./useChartCartesianAxisLayout.selectors.mjs";
|
|
3
3
|
import { computeAxisAutoSize } from "./computeAxisAutoSize.mjs";
|
|
4
4
|
import { selectorChartXAxisDomainsForAutoSize, selectorChartYAxisDomainsForAutoSize } from "./useChartAxisDomains.selectors.mjs";
|
package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.selectorChartYAxisDomainsForAutoSize = exports.selectorChartXAxisDomainsForAutoSize = void 0;
|
|
7
|
-
var _store = require("@
|
|
7
|
+
var _store = require("@base-ui/utils/store");
|
|
8
8
|
var _useChartCartesianAxisLayout = require("./useChartCartesianAxisLayout.selectors");
|
|
9
9
|
var _useChartSeries = require("../../corePlugins/useChartSeries/useChartSeries.selectors");
|
|
10
10
|
var _useChartAxisExtrema = require("./useChartAxisExtrema.selectors");
|
package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisDomains.selectors.mjs
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createSelectorMemoized } from '@
|
|
1
|
+
import { createSelectorMemoized } from '@base-ui/utils/store';
|
|
2
2
|
import { selectorChartRawXAxis, selectorChartRawYAxis } from "./useChartCartesianAxisLayout.selectors.mjs";
|
|
3
3
|
import { selectorChartSeriesProcessed } from "../../corePlugins/useChartSeries/useChartSeries.selectors.mjs";
|
|
4
4
|
import { selectorChartXAxisExtrema, selectorChartYAxisExtrema } from "./useChartAxisExtrema.selectors.mjs";
|
package/internals/plugins/featurePlugins/useChartCartesianAxis/useChartAxisExtrema.selectors.js
CHANGED
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.selectorChartYAxisExtrema = exports.selectorChartXAxisExtrema = void 0;
|
|
7
|
-
var _store = require("@
|
|
7
|
+
var _store = require("@base-ui/utils/store");
|
|
8
8
|
var _useChartCartesianAxisLayout = require("./useChartCartesianAxisLayout.selectors");
|
|
9
9
|
var _axis = require("../../../../models/axis");
|
|
10
10
|
var _useChartSeries = require("../../corePlugins/useChartSeries/useChartSeries.selectors");
|