@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
package/internals/plugins/featurePlugins/useChartPolarAxis/useChartPolarInteraction.selectors.mjs
CHANGED
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { isDeepEqual } from '@mui/x-internals/isDeepEqual';
|
|
2
|
-
import { createSelector, createSelectorMemoizedWithOptions } from '@
|
|
2
|
+
import { createSelector, createSelectorMemoized, createSelectorMemoizedWithOptions } from '@base-ui/utils/store';
|
|
3
3
|
import { selectorChartsInteractionPointerX, selectorChartsInteractionPointerY } from "../useChartInteraction/useChartInteraction.selectors.mjs";
|
|
4
4
|
import { generateSvg2rotation } from "./coordinateTransformation.mjs";
|
|
5
5
|
import { getRotationAxisIndex, getRadiusAxisIndex } from "./getAxisIndex.mjs";
|
|
@@ -32,7 +32,7 @@ const selectorChartsInteractionRotationAngle = createSelector(selectorChartsInte
|
|
|
32
32
|
return generateSvg2rotation(center)(x, y);
|
|
33
33
|
});
|
|
34
34
|
export const selectorChartsInteractionRotationAxisIndex = createSelector(selectorChartsInteractionRotationAngle, selectorChartRotationAxis, optionalGetAxisId, (rotation, rotationAxis, id) => rotation === null ? null : indexGetter(rotation, rotationAxis, id ?? rotationAxis.axisIds[0], 'rotation'));
|
|
35
|
-
export const selectorChartsInteractionRotationAxisIndexes =
|
|
35
|
+
export const selectorChartsInteractionRotationAxisIndexes = createSelectorMemoized(selectorChartsInteractionRotationAngle, selectorChartRotationAxis, (rotation, rotationAxis, ids) => rotation === null ? null : indexGetter(rotation, rotationAxis, ids ?? rotationAxis.axisIds, 'rotation'));
|
|
36
36
|
export const selectorChartsInteractionRotationAxisValue = createSelector(selectorChartRotationAxis, selectorChartsInteractionRotationAxisIndex, optionalGetAxisId, (rotationAxis, rotationIndex, id) => {
|
|
37
37
|
id = id ?? rotationAxis.axisIds[0];
|
|
38
38
|
if (rotationIndex === null || rotationIndex === -1 || rotationAxis.axisIds.length === 0) {
|
|
@@ -93,7 +93,7 @@ export const selectorChartsInteractionRadius = createSelector(selectorChartsInte
|
|
|
93
93
|
return Math.sqrt((x - center.cx) ** 2 + (y - center.cy) ** 2);
|
|
94
94
|
});
|
|
95
95
|
export const selectorChartsInteractionRadiusAxisIndex = createSelector(selectorChartsInteractionRadius, selectorChartRadiusAxis, optionalGetAxisId, (radius, radiusAxis, id) => radius === null ? null : indexGetter(radius, radiusAxis, id ?? radiusAxis.axisIds[0], 'radius'));
|
|
96
|
-
export const selectorChartsInteractionRadiusAxisIndexes =
|
|
96
|
+
export const selectorChartsInteractionRadiusAxisIndexes = createSelectorMemoized(selectorChartsInteractionRadius, selectorChartRadiusAxis, (radius, radiusAxis, ids) => radius === null ? null : indexGetter(radius, radiusAxis, ids ?? radiusAxis.axisIds, 'radius'));
|
|
97
97
|
export const selectorChartsInteractionRadiusAxisValue = createSelector(selectorChartRadiusAxis, selectorChartsInteractionRadiusAxisIndex, optionalGetAxisId, (radiusAxis, radiusIndex, id) => {
|
|
98
98
|
id = id ?? radiusAxis.axisIds[0];
|
|
99
99
|
if (radiusIndex === null || radiusIndex === -1 || radiusAxis.axisIds.length === 0) {
|
|
@@ -9,7 +9,7 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
9
9
|
var _useAssertModelConsistency = require("@mui/x-internals/useAssertModelConsistency");
|
|
10
10
|
var _useEventCallback = _interopRequireDefault(require("@mui/utils/useEventCallback"));
|
|
11
11
|
var _useEnhancedEffect = _interopRequireDefault(require("@mui/utils/useEnhancedEffect"));
|
|
12
|
-
var _fastObjectShallowCompare = require("@
|
|
12
|
+
var _fastObjectShallowCompare = require("@base-ui/utils/fastObjectShallowCompare");
|
|
13
13
|
var _useChartSeries = require("../../corePlugins/useChartSeries/useChartSeries");
|
|
14
14
|
const useChartTooltip = ({
|
|
15
15
|
store,
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import { useAssertModelConsistency } from '@mui/x-internals/useAssertModelConsistency';
|
|
3
3
|
import useEventCallback from '@mui/utils/useEventCallback';
|
|
4
4
|
import useEnhancedEffect from '@mui/utils/useEnhancedEffect';
|
|
5
|
-
import { fastObjectShallowCompare } from '@
|
|
5
|
+
import { fastObjectShallowCompare } from '@base-ui/utils/fastObjectShallowCompare';
|
|
6
6
|
import { createIdentifierWithType } from "../../corePlugins/useChartSeries/useChartSeries.mjs";
|
|
7
7
|
export const useChartTooltip = ({
|
|
8
8
|
store,
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.selectorChartsTooltipPointerItemIsDefined = exports.selectorChartsTooltipPointerItem = exports.selectorChartsTooltipItemIsDefined = exports.selectorChartsTooltipItem = void 0;
|
|
7
|
-
var _store = require("@
|
|
7
|
+
var _store = require("@base-ui/utils/store");
|
|
8
8
|
var _useChartKeyboardNavigation = require("../useChartKeyboardNavigation");
|
|
9
9
|
var _useChartInteraction = require("../useChartInteraction/useChartInteraction.selectors");
|
|
10
10
|
const selectTooltip = state => state.tooltip;
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createSelector } from '@
|
|
1
|
+
import { createSelector } from '@base-ui/utils/store';
|
|
2
2
|
import { selectorChartsKeyboardItem, selectorChartsHasFocusedItem } from "../useChartKeyboardNavigation/index.mjs";
|
|
3
3
|
import { selectorChartsLastInteraction } from "../useChartInteraction/useChartInteraction.selectors.mjs";
|
|
4
4
|
const selectTooltip = state => state.tooltip;
|
package/internals/plugins/featurePlugins/useChartVisibilityManager/useChartVisibilityManager.mjs
CHANGED
|
@@ -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 { useEffectAfterFirstRender } from '@mui/x-internals/useEffectAfterFirstRender';
|
|
6
6
|
import { EMPTY_VISIBILITY_MAP } from "./useChartVisibilityManager.selectors.mjs";
|
|
@@ -4,7 +4,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.selectorVisibilityMap = exports.selectorIsItemVisibleGetter = exports.EMPTY_VISIBILITY_MAP = void 0;
|
|
7
|
-
var _store = require("@
|
|
7
|
+
var _store = require("@base-ui/utils/store");
|
|
8
8
|
var _useChartSeriesConfig = require("../../corePlugins/useChartSeriesConfig");
|
|
9
9
|
var _serializeIdentifier = require("../../corePlugins/useChartSeriesConfig/utils/serializeIdentifier");
|
|
10
10
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createSelector, createSelectorMemoized } from '@
|
|
1
|
+
import { createSelector, createSelectorMemoized } from '@base-ui/utils/store';
|
|
2
2
|
import { selectorChartSeriesConfig } from "../../corePlugins/useChartSeriesConfig/index.mjs";
|
|
3
3
|
import { serializeIdentifier } from "../../corePlugins/useChartSeriesConfig/utils/serializeIdentifier.mjs";
|
|
4
4
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
|
|
4
|
-
import _extends from "@babel/runtime/helpers/
|
|
4
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
5
5
|
import * as React from 'react';
|
|
6
6
|
import { getColorScale, getOrdinalColorScale } from "../../../colorScale.mjs";
|
|
7
7
|
import { getSizeScale, getOrdinalSizeScale } from "../../../sizeScale.mjs";
|
|
@@ -4,6 +4,6 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
4
4
|
value: true
|
|
5
5
|
});
|
|
6
6
|
exports.selectorChartZAxis = void 0;
|
|
7
|
-
var _store = require("@
|
|
7
|
+
var _store = require("@base-ui/utils/store");
|
|
8
8
|
const selectRootState = state => state;
|
|
9
9
|
const selectorChartZAxis = exports.selectorChartZAxis = (0, _store.createSelector)(selectRootState, state => state.zAxis);
|
package/internals/plugins/featurePlugins/useProgressiveRendering/useProgressiveRendering.mjs
CHANGED
|
@@ -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 useEventCallback from '@mui/utils/useEventCallback';
|
|
6
6
|
import { sameSeriesIds, selectorProgressivePlans, selectorProgressiveRevealedRounds, selectorProgressiveTotalRounds, selectorShouldUseProgressiveRenderer } from "./useProgressiveRendering.selectors.mjs";
|
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.getRevealedBatchCount = getRevealedBatchCount;
|
|
7
7
|
exports.sameSeriesIds = sameSeriesIds;
|
|
8
8
|
exports.selectorShouldUseProgressiveRenderer = exports.selectorProgressiveTotalRounds = exports.selectorProgressiveSeriesRevealedBatches = exports.selectorProgressiveRevealedRounds = exports.selectorProgressivePlans = exports.selectorProgressiveBatchSize = exports.selectorProgressiveAggregate = void 0;
|
|
9
|
-
var _store = require("@
|
|
9
|
+
var _store = require("@base-ui/utils/store");
|
|
10
10
|
var _useChartSeries = require("../../corePlugins/useChartSeries");
|
|
11
11
|
var _useChartExperimentalFeature = require("../../corePlugins/useChartExperimentalFeature");
|
|
12
12
|
var _useChartCartesianAxis = require("../useChartCartesianAxis");
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { createSelector, createSelectorMemoized } from '@
|
|
1
|
+
import { createSelector, createSelectorMemoized } from '@base-ui/utils/store';
|
|
2
2
|
import { selectorChartSeriesProcessed } from "../../corePlugins/useChartSeries/index.mjs";
|
|
3
3
|
import { selectorChartExperimentalFeaturesState } from "../../corePlugins/useChartExperimentalFeature/index.mjs";
|
|
4
4
|
import { selectorChartZoomIsInteracting } from "../useChartCartesianAxis/index.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Store } from '@
|
|
1
|
+
import type { Store } from '@base-ui/utils/store';
|
|
2
2
|
import type { MergeSignaturesProperty, OptionalIfEmpty } from "./helpers.mjs";
|
|
3
3
|
import type { ChartCorePluginSignatures } from "../corePlugins/index.mjs";
|
|
4
4
|
import type { ChartState } from "./chart.mjs";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Store } from '@
|
|
1
|
+
import type { Store } from '@base-ui/utils/store';
|
|
2
2
|
import type { MergeSignaturesProperty, OptionalIfEmpty } from "./helpers.js";
|
|
3
3
|
import type { ChartCorePluginSignatures } from "../corePlugins/index.js";
|
|
4
4
|
import type { ChartState } from "./chart.js";
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Store } from '@
|
|
1
|
+
import type { Store } from '@base-ui/utils/store';
|
|
2
2
|
import type { ChartAnyPluginSignature, ChartState } from "../models/index.mjs";
|
|
3
3
|
export declare function useLazySelectorEffect<TSignatures extends readonly ChartAnyPluginSignature[], Value>(store: Store<ChartState<TSignatures>>, selector: (state: ChartState<TSignatures>) => Value, effect: (previous: Value, next: Value) => void,
|
|
4
4
|
/**
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import type { Store } from '@
|
|
1
|
+
import type { Store } from '@base-ui/utils/store';
|
|
2
2
|
import type { ChartAnyPluginSignature, ChartState } from "../models/index.js";
|
|
3
3
|
export declare function useLazySelectorEffect<TSignatures extends readonly ChartAnyPluginSignature[], Value>(store: Store<ChartState<TSignatures>>, selector: (state: ChartState<TSignatures>) => Value, effect: (previous: Value, next: Value) => void,
|
|
4
4
|
/**
|
|
@@ -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 { stack as d3Stack } from '@mui/x-charts-vendor/d3-shape';
|
|
4
4
|
import { warnOnce } from '@mui/x-internals/warning';
|
|
5
5
|
import { getStackingGroups } from "./stacking/index.mjs";
|
|
@@ -5,7 +5,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.useSeriesOfType = exports.useAllSeriesOfType = exports.selectorSeriesOfType = exports.selectorAllSeriesOfType = void 0;
|
|
7
7
|
var _warning = require("@mui/x-internals/warning");
|
|
8
|
-
var _store = require("@
|
|
8
|
+
var _store = require("@base-ui/utils/store");
|
|
9
9
|
var _useChartSeries = require("./plugins/corePlugins/useChartSeries/useChartSeries.selectors");
|
|
10
10
|
var _useStore = require("./store/useStore");
|
|
11
11
|
const selectorAllSeriesOfType = exports.selectorAllSeriesOfType = (0, _store.createSelector)(_useChartSeries.selectorChartSeriesProcessed, (processedSeries, seriesType) => processedSeries[seriesType]);
|
|
@@ -29,7 +29,7 @@ const selectorSeriesOfType = exports.selectorSeriesOfType = (0, _store.createSel
|
|
|
29
29
|
if (process.env.NODE_ENV !== 'production' && failedIds.length > 0) {
|
|
30
30
|
const formattedIds = failedIds.map(v => JSON.stringify(v)).join(', ');
|
|
31
31
|
const fnName = `use${seriesType.charAt(0).toUpperCase()}${seriesType.slice(1)}Series`;
|
|
32
|
-
(0, _warning.warnOnce)([`MUI X Charts: The following ids provided to "${fnName}" could not be found: ${formattedIds}.`, `Make sure that they exist and their series are using the "${seriesType}" series type.`]);
|
|
32
|
+
(0, _warning.warnOnce)([`MUI X Charts: The following ids provided to "${fnName}" could not be found: ${formattedIds}.`, `Make sure that they exist and their series are using the "${seriesType}" series type.`].join('\n'));
|
|
33
33
|
}
|
|
34
34
|
return result;
|
|
35
35
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { warnOnce } from '@mui/x-internals/warning';
|
|
2
|
-
import { createSelector, createSelectorMemoized } from '@
|
|
2
|
+
import { createSelector, createSelectorMemoized } from '@base-ui/utils/store';
|
|
3
3
|
import { selectorChartSeriesProcessed } from "./plugins/corePlugins/useChartSeries/useChartSeries.selectors.mjs";
|
|
4
4
|
import { useStore } from "./store/useStore.mjs";
|
|
5
5
|
export const selectorAllSeriesOfType = createSelector(selectorChartSeriesProcessed, (processedSeries, seriesType) => processedSeries[seriesType]);
|
|
@@ -23,7 +23,7 @@ export const selectorSeriesOfType = createSelectorMemoized(selectorChartSeriesPr
|
|
|
23
23
|
if (process.env.NODE_ENV !== 'production' && failedIds.length > 0) {
|
|
24
24
|
const formattedIds = failedIds.map(v => JSON.stringify(v)).join(', ');
|
|
25
25
|
const fnName = `use${seriesType.charAt(0).toUpperCase()}${seriesType.slice(1)}Series`;
|
|
26
|
-
warnOnce([`MUI X Charts: The following ids provided to "${fnName}" could not be found: ${formattedIds}.`, `Make sure that they exist and their series are using the "${seriesType}" series type.`]);
|
|
26
|
+
warnOnce([`MUI X Charts: The following ids provided to "${fnName}" could not be found: ${formattedIds}.`, `Make sure that they exist and their series are using the "${seriesType}" series type.`].join('\n'));
|
|
27
27
|
}
|
|
28
28
|
return result;
|
|
29
29
|
});
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
1
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
2
2
|
const _excluded = ["apiRef"];
|
|
3
3
|
export const extractPluginParamsFromProps = _ref => {
|
|
4
4
|
let {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Store } from '@
|
|
2
|
+
import { Store } from '@base-ui/utils/store';
|
|
3
3
|
import type { ChartAnyPluginSignature, ChartInstance, ChartPublicAPI, ChartState, ConvertSignaturesIntoPlugins } from "../plugins/models/index.mjs";
|
|
4
4
|
import type { UseChartBaseProps } from "./useCharts.types.mjs";
|
|
5
5
|
/**
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { Store } from '@
|
|
2
|
+
import { Store } from '@base-ui/utils/store';
|
|
3
3
|
import type { ChartAnyPluginSignature, ChartInstance, ChartPublicAPI, ChartState, ConvertSignaturesIntoPlugins } from "../plugins/models/index.js";
|
|
4
4
|
import type { UseChartBaseProps } from "./useCharts.types.js";
|
|
5
5
|
/**
|
|
@@ -10,7 +10,7 @@ exports.useChartApiInitialization = useChartApiInitialization;
|
|
|
10
10
|
exports.useCharts = useCharts;
|
|
11
11
|
var React = _interopRequireWildcard(require("react"));
|
|
12
12
|
var _useId = _interopRequireDefault(require("@mui/utils/useId"));
|
|
13
|
-
var _store = require("@
|
|
13
|
+
var _store = require("@base-ui/utils/store");
|
|
14
14
|
var _corePlugins = require("../plugins/corePlugins");
|
|
15
15
|
var _extractPluginParamsFromProps = require("./extractPluginParamsFromProps");
|
|
16
16
|
let globalId = 0;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import * as React from 'react';
|
|
4
4
|
import useId from '@mui/utils/useId';
|
|
5
|
-
import { Store } from '@
|
|
5
|
+
import { Store } from '@base-ui/utils/store';
|
|
6
6
|
import { CHART_CORE_PLUGINS } from "../plugins/corePlugins/index.mjs";
|
|
7
7
|
import { extractPluginParamsFromProps } from "./extractPluginParamsFromProps.mjs";
|
|
8
8
|
let globalId = 0;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { Store } from '@
|
|
1
|
+
import type { Store } from '@base-ui/utils/store';
|
|
2
2
|
import type { ChartAnyPluginSignature, ChartState } from "../plugins/models/index.mjs";
|
|
3
3
|
export declare function useStore<TSignatures extends ChartAnyPluginSignature[] = []>(): Store<ChartState<TSignatures>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import type { Store } from '@
|
|
1
|
+
import type { Store } from '@base-ui/utils/store';
|
|
2
2
|
import type { ChartAnyPluginSignature, ChartState } from "../plugins/models/index.js";
|
|
3
3
|
export declare function useStore<TSignatures extends ChartAnyPluginSignature[] = []>(): Store<ChartState<TSignatures>>;
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
|
|
2
|
-
export type XOR<T, U> = T | U extends object ?
|
|
2
|
+
export type XOR<T, U> = T | U extends object ? Without<T, U> & U | Without<U, T> & T : T | U;
|
|
3
3
|
export {};
|
|
@@ -1,3 +1,3 @@
|
|
|
1
1
|
type Without<T, U> = { [P in Exclude<keyof T, keyof U>]?: never };
|
|
2
|
-
export type XOR<T, U> = T | U extends object ?
|
|
2
|
+
export type XOR<T, U> = T | U extends object ? Without<T, U> & U | Without<U, T> & T : T | U;
|
|
3
3
|
export {};
|
package/locales/elGR.d.mts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const elGR: {
|
|
|
11
11
|
zoomOut?: string | undefined;
|
|
12
12
|
toolbarExport?: string | undefined;
|
|
13
13
|
toolbarExportPrint?: string | undefined;
|
|
14
|
-
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.mjs").ChartImageExportMimeType |
|
|
14
|
+
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.mjs").ChartImageExportMimeType | string & {}) => string) | undefined;
|
|
15
15
|
chartTypeBar?: string | undefined;
|
|
16
16
|
chartTypeColumn?: string | undefined;
|
|
17
17
|
chartTypeLine?: string | undefined;
|
|
@@ -114,6 +114,11 @@ export declare const elGR: {
|
|
|
114
114
|
close?: string | undefined;
|
|
115
115
|
a11yNoValue?: string | undefined;
|
|
116
116
|
a11yConnector?: string | undefined;
|
|
117
|
+
zoomRangeDescription?: ((params: {
|
|
118
|
+
axisDirection: 'x' | 'y';
|
|
119
|
+
start: number;
|
|
120
|
+
end: number;
|
|
121
|
+
}) => string) | undefined;
|
|
117
122
|
barDescription?: ((params: {
|
|
118
123
|
value: number | null;
|
|
119
124
|
formattedValue: string;
|
package/locales/elGR.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const elGR: {
|
|
|
11
11
|
zoomOut?: string | undefined;
|
|
12
12
|
toolbarExport?: string | undefined;
|
|
13
13
|
toolbarExportPrint?: string | undefined;
|
|
14
|
-
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.js").ChartImageExportMimeType |
|
|
14
|
+
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.js").ChartImageExportMimeType | string & {}) => string) | undefined;
|
|
15
15
|
chartTypeBar?: string | undefined;
|
|
16
16
|
chartTypeColumn?: string | undefined;
|
|
17
17
|
chartTypeLine?: string | undefined;
|
|
@@ -114,6 +114,11 @@ export declare const elGR: {
|
|
|
114
114
|
close?: string | undefined;
|
|
115
115
|
a11yNoValue?: string | undefined;
|
|
116
116
|
a11yConnector?: string | undefined;
|
|
117
|
+
zoomRangeDescription?: ((params: {
|
|
118
|
+
axisDirection: 'x' | 'y';
|
|
119
|
+
start: number;
|
|
120
|
+
end: number;
|
|
121
|
+
}) => string) | undefined;
|
|
117
122
|
barDescription?: ((params: {
|
|
118
123
|
value: number | null;
|
|
119
124
|
formattedValue: string;
|
package/locales/elGR.js
CHANGED
|
@@ -125,6 +125,14 @@ const elGRLocaleText = exports.elGRLocaleText = {
|
|
|
125
125
|
// Accessibility descriptions
|
|
126
126
|
// a11yNoValue: 'no value',
|
|
127
127
|
// a11yConnector: '; ',
|
|
128
|
+
// zoomRangeDescription: function zoomRangeDescription({
|
|
129
|
+
// axisDirection,
|
|
130
|
+
// start,
|
|
131
|
+
// end
|
|
132
|
+
// }) {
|
|
133
|
+
// const axisName = axisDirection === 'x' ? 'horizontal axis' : 'vertical axis';
|
|
134
|
+
// return `Showing ${Math.round(start)}% to ${Math.round(end)}% of the ${axisName}`;
|
|
135
|
+
// },
|
|
128
136
|
// barDescription: function barDescription({
|
|
129
137
|
// value,
|
|
130
138
|
// formattedValue,
|
package/locales/elGR.mjs
CHANGED
|
@@ -119,6 +119,14 @@ export const elGRLocaleText = {
|
|
|
119
119
|
// Accessibility descriptions
|
|
120
120
|
// a11yNoValue: 'no value',
|
|
121
121
|
// a11yConnector: '; ',
|
|
122
|
+
// zoomRangeDescription: function zoomRangeDescription({
|
|
123
|
+
// axisDirection,
|
|
124
|
+
// start,
|
|
125
|
+
// end
|
|
126
|
+
// }) {
|
|
127
|
+
// const axisName = axisDirection === 'x' ? 'horizontal axis' : 'vertical axis';
|
|
128
|
+
// return `Showing ${Math.round(start)}% to ${Math.round(end)}% of the ${axisName}`;
|
|
129
|
+
// },
|
|
122
130
|
// barDescription: function barDescription({
|
|
123
131
|
// value,
|
|
124
132
|
// formattedValue,
|
package/locales/enUS.d.mts
CHANGED
|
@@ -12,7 +12,7 @@ export declare const enUS: {
|
|
|
12
12
|
zoomOut?: string | undefined;
|
|
13
13
|
toolbarExport?: string | undefined;
|
|
14
14
|
toolbarExportPrint?: string | undefined;
|
|
15
|
-
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.mjs").ChartImageExportMimeType |
|
|
15
|
+
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.mjs").ChartImageExportMimeType | string & {}) => string) | undefined;
|
|
16
16
|
chartTypeBar?: string | undefined;
|
|
17
17
|
chartTypeColumn?: string | undefined;
|
|
18
18
|
chartTypeLine?: string | undefined;
|
|
@@ -115,6 +115,11 @@ export declare const enUS: {
|
|
|
115
115
|
close?: string | undefined;
|
|
116
116
|
a11yNoValue?: string | undefined;
|
|
117
117
|
a11yConnector?: string | undefined;
|
|
118
|
+
zoomRangeDescription?: ((params: {
|
|
119
|
+
axisDirection: 'x' | 'y';
|
|
120
|
+
start: number;
|
|
121
|
+
end: number;
|
|
122
|
+
}) => string) | undefined;
|
|
118
123
|
barDescription?: ((params: {
|
|
119
124
|
value: number | null;
|
|
120
125
|
formattedValue: string;
|
package/locales/enUS.d.ts
CHANGED
|
@@ -12,7 +12,7 @@ export declare const enUS: {
|
|
|
12
12
|
zoomOut?: string | undefined;
|
|
13
13
|
toolbarExport?: string | undefined;
|
|
14
14
|
toolbarExportPrint?: string | undefined;
|
|
15
|
-
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.js").ChartImageExportMimeType |
|
|
15
|
+
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.js").ChartImageExportMimeType | string & {}) => string) | undefined;
|
|
16
16
|
chartTypeBar?: string | undefined;
|
|
17
17
|
chartTypeColumn?: string | undefined;
|
|
18
18
|
chartTypeLine?: string | undefined;
|
|
@@ -115,6 +115,11 @@ export declare const enUS: {
|
|
|
115
115
|
close?: string | undefined;
|
|
116
116
|
a11yNoValue?: string | undefined;
|
|
117
117
|
a11yConnector?: string | undefined;
|
|
118
|
+
zoomRangeDescription?: ((params: {
|
|
119
|
+
axisDirection: 'x' | 'y';
|
|
120
|
+
start: number;
|
|
121
|
+
end: number;
|
|
122
|
+
}) => string) | undefined;
|
|
118
123
|
barDescription?: ((params: {
|
|
119
124
|
value: number | null;
|
|
120
125
|
formattedValue: string;
|
package/locales/enUS.js
CHANGED
|
@@ -125,6 +125,14 @@ const enUSLocaleText = exports.enUSLocaleText = {
|
|
|
125
125
|
// Accessibility descriptions
|
|
126
126
|
a11yNoValue: 'no value',
|
|
127
127
|
a11yConnector: '; ',
|
|
128
|
+
zoomRangeDescription: function zoomRangeDescription({
|
|
129
|
+
axisDirection,
|
|
130
|
+
start,
|
|
131
|
+
end
|
|
132
|
+
}) {
|
|
133
|
+
const axisName = axisDirection === 'x' ? 'horizontal axis' : 'vertical axis';
|
|
134
|
+
return `Showing ${Math.round(start)}% to ${Math.round(end)}% of the ${axisName}`;
|
|
135
|
+
},
|
|
128
136
|
barDescription: function barDescription({
|
|
129
137
|
value,
|
|
130
138
|
formattedValue,
|
package/locales/enUS.mjs
CHANGED
|
@@ -120,6 +120,14 @@ export const enUSLocaleText = {
|
|
|
120
120
|
// Accessibility descriptions
|
|
121
121
|
a11yNoValue: 'no value',
|
|
122
122
|
a11yConnector: '; ',
|
|
123
|
+
zoomRangeDescription: function zoomRangeDescription({
|
|
124
|
+
axisDirection,
|
|
125
|
+
start,
|
|
126
|
+
end
|
|
127
|
+
}) {
|
|
128
|
+
const axisName = axisDirection === 'x' ? 'horizontal axis' : 'vertical axis';
|
|
129
|
+
return `Showing ${Math.round(start)}% to ${Math.round(end)}% of the ${axisName}`;
|
|
130
|
+
},
|
|
123
131
|
barDescription: function barDescription({
|
|
124
132
|
value,
|
|
125
133
|
formattedValue,
|
package/locales/frFR.d.mts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const frFR: {
|
|
|
11
11
|
zoomOut?: string | undefined;
|
|
12
12
|
toolbarExport?: string | undefined;
|
|
13
13
|
toolbarExportPrint?: string | undefined;
|
|
14
|
-
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.mjs").ChartImageExportMimeType |
|
|
14
|
+
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.mjs").ChartImageExportMimeType | string & {}) => string) | undefined;
|
|
15
15
|
chartTypeBar?: string | undefined;
|
|
16
16
|
chartTypeColumn?: string | undefined;
|
|
17
17
|
chartTypeLine?: string | undefined;
|
|
@@ -114,6 +114,11 @@ export declare const frFR: {
|
|
|
114
114
|
close?: string | undefined;
|
|
115
115
|
a11yNoValue?: string | undefined;
|
|
116
116
|
a11yConnector?: string | undefined;
|
|
117
|
+
zoomRangeDescription?: ((params: {
|
|
118
|
+
axisDirection: 'x' | 'y';
|
|
119
|
+
start: number;
|
|
120
|
+
end: number;
|
|
121
|
+
}) => string) | undefined;
|
|
117
122
|
barDescription?: ((params: {
|
|
118
123
|
value: number | null;
|
|
119
124
|
formattedValue: string;
|
package/locales/frFR.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const frFR: {
|
|
|
11
11
|
zoomOut?: string | undefined;
|
|
12
12
|
toolbarExport?: string | undefined;
|
|
13
13
|
toolbarExportPrint?: string | undefined;
|
|
14
|
-
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.js").ChartImageExportMimeType |
|
|
14
|
+
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.js").ChartImageExportMimeType | string & {}) => string) | undefined;
|
|
15
15
|
chartTypeBar?: string | undefined;
|
|
16
16
|
chartTypeColumn?: string | undefined;
|
|
17
17
|
chartTypeLine?: string | undefined;
|
|
@@ -114,6 +114,11 @@ export declare const frFR: {
|
|
|
114
114
|
close?: string | undefined;
|
|
115
115
|
a11yNoValue?: string | undefined;
|
|
116
116
|
a11yConnector?: string | undefined;
|
|
117
|
+
zoomRangeDescription?: ((params: {
|
|
118
|
+
axisDirection: 'x' | 'y';
|
|
119
|
+
start: number;
|
|
120
|
+
end: number;
|
|
121
|
+
}) => string) | undefined;
|
|
117
122
|
barDescription?: ((params: {
|
|
118
123
|
value: number | null;
|
|
119
124
|
formattedValue: string;
|
package/locales/frFR.js
CHANGED
|
@@ -125,6 +125,14 @@ const frFRLocalText = exports.frFRLocalText = {
|
|
|
125
125
|
// Accessibility descriptions
|
|
126
126
|
// a11yNoValue: 'no value',
|
|
127
127
|
// a11yConnector: '; ',
|
|
128
|
+
// zoomRangeDescription: function zoomRangeDescription({
|
|
129
|
+
// axisDirection,
|
|
130
|
+
// start,
|
|
131
|
+
// end
|
|
132
|
+
// }) {
|
|
133
|
+
// const axisName = axisDirection === 'x' ? 'horizontal axis' : 'vertical axis';
|
|
134
|
+
// return `Showing ${Math.round(start)}% to ${Math.round(end)}% of the ${axisName}`;
|
|
135
|
+
// },
|
|
128
136
|
// barDescription: function barDescription({
|
|
129
137
|
// value,
|
|
130
138
|
// formattedValue,
|
package/locales/frFR.mjs
CHANGED
|
@@ -119,6 +119,14 @@ export const frFRLocalText = {
|
|
|
119
119
|
// Accessibility descriptions
|
|
120
120
|
// a11yNoValue: 'no value',
|
|
121
121
|
// a11yConnector: '; ',
|
|
122
|
+
// zoomRangeDescription: function zoomRangeDescription({
|
|
123
|
+
// axisDirection,
|
|
124
|
+
// start,
|
|
125
|
+
// end
|
|
126
|
+
// }) {
|
|
127
|
+
// const axisName = axisDirection === 'x' ? 'horizontal axis' : 'vertical axis';
|
|
128
|
+
// return `Showing ${Math.round(start)}% to ${Math.round(end)}% of the ${axisName}`;
|
|
129
|
+
// },
|
|
122
130
|
// barDescription: function barDescription({
|
|
123
131
|
// value,
|
|
124
132
|
// formattedValue,
|
package/locales/nbNO.d.mts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const nbNO: {
|
|
|
11
11
|
zoomOut?: string | undefined;
|
|
12
12
|
toolbarExport?: string | undefined;
|
|
13
13
|
toolbarExportPrint?: string | undefined;
|
|
14
|
-
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.mjs").ChartImageExportMimeType |
|
|
14
|
+
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.mjs").ChartImageExportMimeType | string & {}) => string) | undefined;
|
|
15
15
|
chartTypeBar?: string | undefined;
|
|
16
16
|
chartTypeColumn?: string | undefined;
|
|
17
17
|
chartTypeLine?: string | undefined;
|
|
@@ -114,6 +114,11 @@ export declare const nbNO: {
|
|
|
114
114
|
close?: string | undefined;
|
|
115
115
|
a11yNoValue?: string | undefined;
|
|
116
116
|
a11yConnector?: string | undefined;
|
|
117
|
+
zoomRangeDescription?: ((params: {
|
|
118
|
+
axisDirection: 'x' | 'y';
|
|
119
|
+
start: number;
|
|
120
|
+
end: number;
|
|
121
|
+
}) => string) | undefined;
|
|
117
122
|
barDescription?: ((params: {
|
|
118
123
|
value: number | null;
|
|
119
124
|
formattedValue: string;
|
package/locales/nbNO.d.ts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const nbNO: {
|
|
|
11
11
|
zoomOut?: string | undefined;
|
|
12
12
|
toolbarExport?: string | undefined;
|
|
13
13
|
toolbarExportPrint?: string | undefined;
|
|
14
|
-
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.js").ChartImageExportMimeType |
|
|
14
|
+
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.js").ChartImageExportMimeType | string & {}) => string) | undefined;
|
|
15
15
|
chartTypeBar?: string | undefined;
|
|
16
16
|
chartTypeColumn?: string | undefined;
|
|
17
17
|
chartTypeLine?: string | undefined;
|
|
@@ -114,6 +114,11 @@ export declare const nbNO: {
|
|
|
114
114
|
close?: string | undefined;
|
|
115
115
|
a11yNoValue?: string | undefined;
|
|
116
116
|
a11yConnector?: string | undefined;
|
|
117
|
+
zoomRangeDescription?: ((params: {
|
|
118
|
+
axisDirection: 'x' | 'y';
|
|
119
|
+
start: number;
|
|
120
|
+
end: number;
|
|
121
|
+
}) => string) | undefined;
|
|
117
122
|
barDescription?: ((params: {
|
|
118
123
|
value: number | null;
|
|
119
124
|
formattedValue: string;
|
package/locales/nbNO.js
CHANGED
|
@@ -125,6 +125,14 @@ const nbNOLocaleText = exports.nbNOLocaleText = {
|
|
|
125
125
|
// Accessibility descriptions
|
|
126
126
|
// a11yNoValue: 'no value',
|
|
127
127
|
// a11yConnector: '; ',
|
|
128
|
+
// zoomRangeDescription: function zoomRangeDescription({
|
|
129
|
+
// axisDirection,
|
|
130
|
+
// start,
|
|
131
|
+
// end
|
|
132
|
+
// }) {
|
|
133
|
+
// const axisName = axisDirection === 'x' ? 'horizontal axis' : 'vertical axis';
|
|
134
|
+
// return `Showing ${Math.round(start)}% to ${Math.round(end)}% of the ${axisName}`;
|
|
135
|
+
// },
|
|
128
136
|
// barDescription: function barDescription({
|
|
129
137
|
// value,
|
|
130
138
|
// formattedValue,
|
package/locales/nbNO.mjs
CHANGED
|
@@ -119,6 +119,14 @@ export const nbNOLocaleText = {
|
|
|
119
119
|
// Accessibility descriptions
|
|
120
120
|
// a11yNoValue: 'no value',
|
|
121
121
|
// a11yConnector: '; ',
|
|
122
|
+
// zoomRangeDescription: function zoomRangeDescription({
|
|
123
|
+
// axisDirection,
|
|
124
|
+
// start,
|
|
125
|
+
// end
|
|
126
|
+
// }) {
|
|
127
|
+
// const axisName = axisDirection === 'x' ? 'horizontal axis' : 'vertical axis';
|
|
128
|
+
// return `Showing ${Math.round(start)}% to ${Math.round(end)}% of the ${axisName}`;
|
|
129
|
+
// },
|
|
122
130
|
// barDescription: function barDescription({
|
|
123
131
|
// value,
|
|
124
132
|
// formattedValue,
|
package/locales/ptBR.d.mts
CHANGED
|
@@ -11,7 +11,7 @@ export declare const ptBR: {
|
|
|
11
11
|
zoomOut?: string | undefined;
|
|
12
12
|
toolbarExport?: string | undefined;
|
|
13
13
|
toolbarExportPrint?: string | undefined;
|
|
14
|
-
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.mjs").ChartImageExportMimeType |
|
|
14
|
+
toolbarExportImage?: ((mimeType: import("./utils/imageMimeTypes.mjs").ChartImageExportMimeType | string & {}) => string) | undefined;
|
|
15
15
|
chartTypeBar?: string | undefined;
|
|
16
16
|
chartTypeColumn?: string | undefined;
|
|
17
17
|
chartTypeLine?: string | undefined;
|
|
@@ -114,6 +114,11 @@ export declare const ptBR: {
|
|
|
114
114
|
close?: string | undefined;
|
|
115
115
|
a11yNoValue?: string | undefined;
|
|
116
116
|
a11yConnector?: string | undefined;
|
|
117
|
+
zoomRangeDescription?: ((params: {
|
|
118
|
+
axisDirection: 'x' | 'y';
|
|
119
|
+
start: number;
|
|
120
|
+
end: number;
|
|
121
|
+
}) => string) | undefined;
|
|
117
122
|
barDescription?: ((params: {
|
|
118
123
|
value: number | null;
|
|
119
124
|
formattedValue: string;
|