@mui/x-charts 9.14.0 → 9.16.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 +338 -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.js +1 -1
- package/ChartsContainer/ChartsContainer.mjs +2 -2
- 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.js +1 -3
- package/ChartsLegend/PiecewiseColorLegend.mjs +3 -5
- package/ChartsLocalizationProvider/ChartsLocalizationProvider.mjs +2 -2
- package/ChartsOverlay/ChartsLoadingOverlay.mjs +1 -1
- package/ChartsOverlay/ChartsNoDataOverlay.mjs +1 -1
- package/ChartsOverlay/ChartsOverlay.js +4 -2
- package/ChartsOverlay/ChartsOverlay.mjs +5 -3
- 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.js +3 -3
- package/ChartsTooltip/ChartsTooltip.mjs +5 -5
- package/ChartsTooltip/ChartsTooltipContainer.js +5 -5
- package/ChartsTooltip/ChartsTooltipContainer.mjs +8 -8
- 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/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.js +1 -1
- package/hooks/useAxisTicks.mjs +2 -2
- 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 +10 -0
- package/internals/Flatbush.mjs +10 -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/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/createZoomLookup.js +2 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/createZoomLookup.mjs +2 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeAxis.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/defaultizeZoom.mjs +1 -1
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisClickPayload.js +5 -3
- package/internals/plugins/featurePlugins/useChartCartesianAxis/getAxisClickPayload.mjs +5 -3
- 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/useChartItemClick/useChartItemClick.js +2 -2
- package/internals/plugins/featurePlugins/useChartItemClick/useChartItemClick.mjs +2 -2
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.js +8 -4
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.mjs +9 -5
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.js +2 -2
- package/internals/plugins/featurePlugins/useChartKeyboardNavigation/useChartKeyboardNavigation.selectors.mjs +2 -2
- 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/seriesHasData.js +2 -1
- package/internals/seriesHasData.mjs +2 -1
- package/internals/seriesSelectorOfType.js +2 -2
- package/internals/seriesSelectorOfType.mjs +2 -2
- package/internals/shallowEqual.js +1 -3
- package/internals/shallowEqual.mjs +1 -3
- 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 +2 -1
- package/locales/elGR.d.ts +2 -1
- package/locales/elGR.js +2 -0
- package/locales/elGR.mjs +2 -0
- package/locales/enUS.d.mts +2 -1
- package/locales/enUS.d.ts +2 -1
- package/locales/enUS.js +1 -0
- package/locales/enUS.mjs +1 -0
- package/locales/frFR.d.mts +2 -1
- package/locales/frFR.d.ts +2 -1
- package/locales/frFR.js +1 -0
- package/locales/frFR.mjs +1 -0
- package/locales/nbNO.d.mts +2 -1
- package/locales/nbNO.d.ts +2 -1
- package/locales/nbNO.js +2 -0
- package/locales/nbNO.mjs +2 -0
- package/locales/ptBR.d.mts +2 -1
- package/locales/ptBR.d.ts +2 -1
- package/locales/ptBR.js +2 -0
- package/locales/ptBR.mjs +2 -0
- package/locales/ptPT.d.mts +2 -1
- package/locales/ptPT.d.ts +2 -1
- package/locales/ptPT.js +2 -0
- package/locales/ptPT.mjs +2 -0
- package/locales/svSE.d.mts +2 -1
- package/locales/svSE.d.ts +2 -1
- package/locales/svSE.js +1 -0
- package/locales/svSE.mjs +1 -0
- package/locales/utils/chartsLocaleTextApi.d.mts +5 -1
- package/locales/utils/chartsLocaleTextApi.d.ts +5 -1
- package/locales/utils/getChartsLocalization.d.mts +2 -1
- package/locales/utils/getChartsLocalization.d.ts +2 -1
- package/locales/utils/getChartsLocalization.mjs +1 -1
- package/package.json +9 -11
- package/tests/web-components.js +1 -0
- package/tests/web-components.mjs +1 -0
|
@@ -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 = ["className", "vertical", "horizontal"];
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import clsx from 'clsx';
|
|
@@ -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 = ["children", "className", "classes"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -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 = ["gradientId", "direction", "classes", "className", "rotate", "reverse", "thickness"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -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 = ["type", "markShape", "color", "className", "classes"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import clsx from 'clsx';
|
|
@@ -77,7 +77,7 @@ const ChartsLayerContainer = exports.ChartsLayerContainer = /*#__PURE__*/React.f
|
|
|
77
77
|
if (process.env.NODE_ENV !== 'production') {
|
|
78
78
|
React.Children.forEach(children, child => {
|
|
79
79
|
if (typeof child === 'object' && child != null && 'type' in child && child.type === _ChartsSurface.ChartsSurface) {
|
|
80
|
-
(0, _warning.
|
|
80
|
+
(0, _warning.errorOnce)('MUI X Charts: ChartsSurface should not be used inside ChartsLayerContainer. Render a ChartsSvgLayer instead.');
|
|
81
81
|
}
|
|
82
82
|
});
|
|
83
83
|
}
|
|
@@ -1,12 +1,12 @@
|
|
|
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 = ["children", "title", "desc", "className"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import clsx from 'clsx';
|
|
9
|
-
import {
|
|
9
|
+
import { errorOnce } from '@mui/x-internals/warning';
|
|
10
10
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
11
11
|
import useForkRef from '@mui/utils/useForkRef';
|
|
12
12
|
import useId from '@mui/utils/useId';
|
|
@@ -71,7 +71,7 @@ const ChartsLayerContainer = /*#__PURE__*/React.forwardRef(function ChartsLayerC
|
|
|
71
71
|
if (process.env.NODE_ENV !== 'production') {
|
|
72
72
|
React.Children.forEach(children, child => {
|
|
73
73
|
if (typeof child === 'object' && child != null && 'type' in child && child.type === ChartsSurface) {
|
|
74
|
-
|
|
74
|
+
errorOnce('MUI X Charts: ChartsSurface should not be used inside ChartsLayerContainer. Render a ChartsSvgLayer instead.');
|
|
75
75
|
}
|
|
76
76
|
});
|
|
77
77
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
4
|
-
import _extends from "@babel/runtime/helpers/
|
|
3
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
4
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
5
5
|
const _excluded = ["direction", "onItemClick", "className", "classes", "toggleVisibilityOnClick"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import { styled } from '@mui/material/styles';
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
4
|
-
import _extends from "@babel/runtime/helpers/
|
|
3
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
4
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
5
5
|
const _excluded = ["minLabel", "maxLabel", "direction", "axisDirection", "axisId", "rotateGradient", "reverse", "classes", "className", "gradientId", "labelPosition", "thickness"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -211,9 +211,7 @@ const PiecewiseColorLegend = exports.PiecewiseColorLegend = (0, _consumeThemePro
|
|
|
211
211
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(Element, {
|
|
212
212
|
role: onItemClick ? 'button' : undefined,
|
|
213
213
|
type: onItemClick ? 'button' : undefined,
|
|
214
|
-
onClick:
|
|
215
|
-
// @ts-ignore onClick is only attached to a button
|
|
216
|
-
onItemClick ? event => onItemClick(event, clickObject, index) : undefined,
|
|
214
|
+
onClick: onItemClick ? event => onItemClick(event, clickObject, index) : undefined,
|
|
217
215
|
className: (0, _clsx.default)(classes?.item, index === 0 && `${startClass}`, index === orderedColors.length - 1 && `${endClass}`),
|
|
218
216
|
children: [isTextBefore && /*#__PURE__*/(0, _jsxRuntime.jsx)(_ChartsLabel.ChartsLabel, {
|
|
219
217
|
className: classes?.label,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
4
|
-
import _extends from "@babel/runtime/helpers/
|
|
3
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
4
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
5
5
|
const _excluded = ["direction", "classes", "className", "markType", "labelPosition", "axisDirection", "axisId", "labelFormatter", "onItemClick"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -204,9 +204,7 @@ const PiecewiseColorLegend = consumeThemeProps('MuiPiecewiseColorLegend', {
|
|
|
204
204
|
children: /*#__PURE__*/_jsxs(Element, {
|
|
205
205
|
role: onItemClick ? 'button' : undefined,
|
|
206
206
|
type: onItemClick ? 'button' : undefined,
|
|
207
|
-
onClick:
|
|
208
|
-
// @ts-ignore onClick is only attached to a button
|
|
209
|
-
onItemClick ? event => onItemClick(event, clickObject, index) : undefined,
|
|
207
|
+
onClick: onItemClick ? event => onItemClick(event, clickObject, index) : undefined,
|
|
210
208
|
className: clsx(classes?.item, index === 0 && `${startClass}`, index === orderedColors.length - 1 && `${endClass}`),
|
|
211
209
|
children: [isTextBefore && /*#__PURE__*/_jsx(ChartsLabel, {
|
|
212
210
|
className: classes?.label,
|
|
@@ -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 = ["localeText"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -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 { useDrawingArea } from "../hooks/useDrawingArea.mjs";
|
|
5
5
|
import { useChartsLocalization } from "../hooks/useChartsLocalization.mjs";
|
|
6
6
|
import { StyledText } from "./common.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 { useDrawingArea } from "../hooks/useDrawingArea.mjs";
|
|
5
5
|
import { useChartsLocalization } from "../hooks/useChartsLocalization.mjs";
|
|
6
6
|
import { StyledText } from "./common.mjs";
|
|
@@ -28,9 +28,11 @@ function useNoData() {
|
|
|
28
28
|
const seriesItem = series[seriesId];
|
|
29
29
|
|
|
30
30
|
// These prevent a type error when building the package.
|
|
31
|
-
// @ts-
|
|
31
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- Sankey is added by Premium augmentation, absent when building the community package.
|
|
32
|
+
// @ts-ignore Sankey is added by Premium augmentation, absent when building the community package.
|
|
32
33
|
if (seriesItem.type === 'sankey') {
|
|
33
|
-
// @ts-
|
|
34
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- Sankey data is added by Premium augmentation, absent in the community build.
|
|
35
|
+
// @ts-ignore Sankey data is added by Premium augmentation, absent in the community build.
|
|
34
36
|
return seriesItem.data.links.length === 0;
|
|
35
37
|
}
|
|
36
38
|
return seriesItem.data.length === 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 { ChartsLoadingOverlay } from "./ChartsLoadingOverlay.mjs";
|
|
6
6
|
import { useSeries } from "../hooks/useSeries.mjs";
|
|
@@ -20,9 +20,11 @@ export function useNoData() {
|
|
|
20
20
|
const seriesItem = series[seriesId];
|
|
21
21
|
|
|
22
22
|
// These prevent a type error when building the package.
|
|
23
|
-
// @ts-
|
|
23
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- Sankey is added by Premium augmentation, absent when building the community package.
|
|
24
|
+
// @ts-ignore Sankey is added by Premium augmentation, absent when building the community package.
|
|
24
25
|
if (seriesItem.type === 'sankey') {
|
|
25
|
-
// @ts-
|
|
26
|
+
// eslint-disable-next-line @typescript-eslint/ban-ts-comment -- Sankey data is added by Premium augmentation, absent in the community build.
|
|
27
|
+
// @ts-ignore Sankey data is added by Premium augmentation, absent in the community build.
|
|
26
28
|
return seriesItem.data.links.length === 0;
|
|
27
29
|
}
|
|
28
30
|
return seriesItem.data.length === 0;
|
package/ChartsOverlay/common.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 { styled } from '@mui/material/styles';
|
|
5
5
|
export const ChartsRadialAxisHighlightPath = styled('path', {
|
|
6
6
|
name: 'MuiChartsRadialAxisHighlight',
|
|
@@ -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 PropTypes from 'prop-types';
|
|
6
6
|
import { defaultSlotsMaterial } from "../internals/material/index.mjs";
|
|
@@ -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 = ["children", "localeText", "plugins", "slots", "slotProps", "seriesConfig"];
|
|
6
6
|
import { useTheme, useThemeProps } from '@mui/material/styles';
|
|
7
7
|
import { RADIAL_PLUGINS } from "./ChartsRadialDataProvider.plugins.mjs";
|
|
@@ -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 = ["className", "rotation", "radius"];
|
|
6
6
|
import PropTypes from 'prop-types';
|
|
7
7
|
import clsx from 'clsx';
|
|
@@ -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 PropTypes from 'prop-types';
|
|
6
6
|
import { ChartsXReferenceLine } from "./ChartsXReferenceLine.mjs";
|
|
@@ -84,7 +84,7 @@ function ChartsXReferenceLine(props) {
|
|
|
84
84
|
const xPosition = xAxisScale(x);
|
|
85
85
|
if (xPosition === undefined) {
|
|
86
86
|
if (process.env.NODE_ENV !== 'production') {
|
|
87
|
-
(0, _warning.
|
|
87
|
+
(0, _warning.errorOnce)(`MUI X Charts: the value ${x} does not exist in the data of x axis with id ${axisId}.`);
|
|
88
88
|
}
|
|
89
89
|
return null;
|
|
90
90
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import composeClasses from '@mui/utils/composeClasses';
|
|
6
|
-
import {
|
|
6
|
+
import { errorOnce } from '@mui/x-internals/warning';
|
|
7
7
|
import { useDrawingArea, useXScale } from "../hooks/index.mjs";
|
|
8
8
|
import { DEFAULT_SPACING, DEFAULT_SPACING_MIDDLE_OTHER_AXIS, ReferenceLineRoot } from "./common.mjs";
|
|
9
9
|
import { ChartsText } from "../ChartsText/index.mjs";
|
|
@@ -77,7 +77,7 @@ function ChartsXReferenceLine(props) {
|
|
|
77
77
|
const xPosition = xAxisScale(x);
|
|
78
78
|
if (xPosition === undefined) {
|
|
79
79
|
if (process.env.NODE_ENV !== 'production') {
|
|
80
|
-
|
|
80
|
+
errorOnce(`MUI X Charts: the value ${x} does not exist in the data of x axis with id ${axisId}.`);
|
|
81
81
|
}
|
|
82
82
|
return null;
|
|
83
83
|
}
|
|
@@ -84,7 +84,7 @@ function ChartsYReferenceLine(props) {
|
|
|
84
84
|
const yPosition = yAxisScale(y);
|
|
85
85
|
if (yPosition === undefined) {
|
|
86
86
|
if (process.env.NODE_ENV !== 'production') {
|
|
87
|
-
(0, _warning.
|
|
87
|
+
(0, _warning.errorOnce)(`MUI X Charts: the value ${y} does not exist in the data of y axis with id ${axisId}.`);
|
|
88
88
|
}
|
|
89
89
|
return null;
|
|
90
90
|
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
|
-
import _extends from "@babel/runtime/helpers/
|
|
3
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
4
4
|
import PropTypes from 'prop-types';
|
|
5
5
|
import composeClasses from '@mui/utils/composeClasses';
|
|
6
|
-
import {
|
|
6
|
+
import { errorOnce } from '@mui/x-internals/warning';
|
|
7
7
|
import { useDrawingArea, useYScale } from "../hooks/index.mjs";
|
|
8
8
|
import { DEFAULT_SPACING, DEFAULT_SPACING_MIDDLE_OTHER_AXIS, ReferenceLineRoot } from "./common.mjs";
|
|
9
9
|
import { ChartsText } from "../ChartsText/index.mjs";
|
|
@@ -77,7 +77,7 @@ function ChartsYReferenceLine(props) {
|
|
|
77
77
|
const yPosition = yAxisScale(y);
|
|
78
78
|
if (yPosition === undefined) {
|
|
79
79
|
if (process.env.NODE_ENV !== 'production') {
|
|
80
|
-
|
|
80
|
+
errorOnce(`MUI X Charts: the value ${y} does not exist in the data of y axis with id ${axisId}.`);
|
|
81
81
|
}
|
|
82
82
|
return null;
|
|
83
83
|
}
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import _extends from "@babel/runtime/helpers/
|
|
1
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
2
2
|
import { styled } from '@mui/material/styles';
|
|
3
3
|
import { referenceLineClasses } from "./chartsReferenceLineClasses.mjs";
|
|
4
4
|
export const DEFAULT_SPACING = 5;
|
|
@@ -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 = ["children", "className", "title", "desc"];
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import { useThemeProps } from '@mui/material/styles';
|
|
@@ -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 = ["children", "className"];
|
|
6
6
|
import { styled, useThemeProps } from '@mui/material/styles';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -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 = ["x", "y", "style", "text", "ownerState"],
|
|
6
6
|
_excluded2 = ["angle", "textAnchor", "dominantBaseline"];
|
|
7
7
|
import * as React from 'react';
|
|
@@ -56,7 +56,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes /* remove-propty
|
|
|
56
56
|
*/
|
|
57
57
|
anchor: _propTypes.default.oneOf(['chart', 'node', 'pointer']),
|
|
58
58
|
/**
|
|
59
|
-
* An HTML element, [virtualElement](https://
|
|
59
|
+
* An HTML element, [virtualElement](https://github.com/floating-ui/popper-docs/blob/main/docs/v2/virtual-elements.md),
|
|
60
60
|
* or a function that returns either.
|
|
61
61
|
* It's used to set the position of the popper.
|
|
62
62
|
* The return value will passed as the reference object of the Popper instance.
|
|
@@ -109,7 +109,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes /* remove-propty
|
|
|
109
109
|
* A modifier is a function that is called each time Popper.js needs to
|
|
110
110
|
* compute the position of the popper.
|
|
111
111
|
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
|
112
|
-
* To learn how to create a modifier, [read the modifiers documentation](https://
|
|
112
|
+
* To learn how to create a modifier, [read the modifiers documentation](https://github.com/floating-ui/popper-docs/blob/main/docs/v2/modifiers/index.md).
|
|
113
113
|
*/
|
|
114
114
|
modifiers: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
115
115
|
data: _propTypes.default.object,
|
|
@@ -132,7 +132,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes /* remove-propty
|
|
|
132
132
|
*/
|
|
133
133
|
placement: _propTypes.default.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
|
|
134
134
|
/**
|
|
135
|
-
* Options provided to the [`Popper.js`](https://
|
|
135
|
+
* Options provided to the [`Popper.js`](https://github.com/floating-ui/popper-docs/blob/main/docs/v2/constructors.md#options) instance.
|
|
136
136
|
* @default {}
|
|
137
137
|
*/
|
|
138
138
|
popperOptions: _propTypes.default.shape({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
|
|
4
|
-
import _extends from "@babel/runtime/helpers/
|
|
5
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
4
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
5
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
6
6
|
const _excluded = ["classes", "trigger", "sort"];
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
8
8
|
import HTMLElementType from '@mui/utils/HTMLElementType';
|
|
@@ -50,7 +50,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes /* remove-propty
|
|
|
50
50
|
*/
|
|
51
51
|
anchor: PropTypes.oneOf(['chart', 'node', 'pointer']),
|
|
52
52
|
/**
|
|
53
|
-
* An HTML element, [virtualElement](https://
|
|
53
|
+
* An HTML element, [virtualElement](https://github.com/floating-ui/popper-docs/blob/main/docs/v2/virtual-elements.md),
|
|
54
54
|
* or a function that returns either.
|
|
55
55
|
* It's used to set the position of the popper.
|
|
56
56
|
* The return value will passed as the reference object of the Popper instance.
|
|
@@ -103,7 +103,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes /* remove-propty
|
|
|
103
103
|
* A modifier is a function that is called each time Popper.js needs to
|
|
104
104
|
* compute the position of the popper.
|
|
105
105
|
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
|
106
|
-
* To learn how to create a modifier, [read the modifiers documentation](https://
|
|
106
|
+
* To learn how to create a modifier, [read the modifiers documentation](https://github.com/floating-ui/popper-docs/blob/main/docs/v2/modifiers/index.md).
|
|
107
107
|
*/
|
|
108
108
|
modifiers: PropTypes.arrayOf(PropTypes.shape({
|
|
109
109
|
data: PropTypes.object,
|
|
@@ -126,7 +126,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltip.propTypes /* remove-propty
|
|
|
126
126
|
*/
|
|
127
127
|
placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
|
|
128
128
|
/**
|
|
129
|
-
* Options provided to the [`Popper.js`](https://
|
|
129
|
+
* Options provided to the [`Popper.js`](https://github.com/floating-ui/popper-docs/blob/main/docs/v2/constructors.md#options) instance.
|
|
130
130
|
* @default {}
|
|
131
131
|
*/
|
|
132
132
|
popperOptions: PropTypes.shape({
|
|
@@ -107,10 +107,10 @@ function ChartsTooltipContainer(inProps) {
|
|
|
107
107
|
const isItemControlled = store.state.tooltip?.itemIsControlled ?? false;
|
|
108
108
|
const isAxisControlled = store.state.controlledCartesianAxisTooltip !== undefined;
|
|
109
109
|
if (trigger !== 'item' && isItemControlled) {
|
|
110
|
-
(0, _warning.
|
|
110
|
+
(0, _warning.errorOnce)([`MUI X Charts: The \`tooltipItem\` prop is provided, but the tooltip trigger is set to '${trigger}'.`, "The `tooltipItem` prop only has an effect when the tooltip trigger is 'item'."].join('\n'));
|
|
111
111
|
}
|
|
112
112
|
if (trigger !== 'axis' && isAxisControlled) {
|
|
113
|
-
(0, _warning.
|
|
113
|
+
(0, _warning.errorOnce)([`MUI X Charts: The \`tooltipAxis\` prop is provided, but the tooltip trigger is set to '${trigger}'.`, "The `tooltipAxis` prop only has an effect when the tooltip trigger is 'axis'."].join('\n'));
|
|
114
114
|
}
|
|
115
115
|
}
|
|
116
116
|
const chartsLayerContainerRef = (0, _hooks.useChartsLayerContainerRef)();
|
|
@@ -258,7 +258,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes /* remo
|
|
|
258
258
|
*/
|
|
259
259
|
anchor: _propTypes.default.oneOf(['chart', 'node', 'pointer']),
|
|
260
260
|
/**
|
|
261
|
-
* An HTML element, [virtualElement](https://
|
|
261
|
+
* An HTML element, [virtualElement](https://github.com/floating-ui/popper-docs/blob/main/docs/v2/virtual-elements.md),
|
|
262
262
|
* or a function that returns either.
|
|
263
263
|
* It's used to set the position of the popper.
|
|
264
264
|
* The return value will passed as the reference object of the Popper instance.
|
|
@@ -315,7 +315,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes /* remo
|
|
|
315
315
|
* A modifier is a function that is called each time Popper.js needs to
|
|
316
316
|
* compute the position of the popper.
|
|
317
317
|
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
|
318
|
-
* To learn how to create a modifier, [read the modifiers documentation](https://
|
|
318
|
+
* To learn how to create a modifier, [read the modifiers documentation](https://github.com/floating-ui/popper-docs/blob/main/docs/v2/modifiers/index.md).
|
|
319
319
|
*/
|
|
320
320
|
modifiers: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
321
321
|
data: _propTypes.default.object,
|
|
@@ -338,7 +338,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes /* remo
|
|
|
338
338
|
*/
|
|
339
339
|
placement: _propTypes.default.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
|
|
340
340
|
/**
|
|
341
|
-
* Options provided to the [`Popper.js`](https://
|
|
341
|
+
* Options provided to the [`Popper.js`](https://github.com/floating-ui/popper-docs/blob/main/docs/v2/constructors.md#options) instance.
|
|
342
342
|
* @default {}
|
|
343
343
|
*/
|
|
344
344
|
popperOptions: _propTypes.default.shape({
|
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
'use client';
|
|
2
2
|
|
|
3
3
|
import _formatErrorMessage from "@mui/x-internals/formatErrorMessage";
|
|
4
|
-
import _extends from "@babel/runtime/helpers/
|
|
5
|
-
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/
|
|
4
|
+
import _extends from "@babel/runtime/helpers/extends";
|
|
5
|
+
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/objectWithoutPropertiesLoose";
|
|
6
6
|
const _excluded = ["trigger", "position", "anchor", "classes", "children"];
|
|
7
7
|
import * as React from 'react';
|
|
8
8
|
import * as ReactDOM from 'react-dom';
|
|
@@ -14,7 +14,7 @@ import { styled, useThemeProps } from '@mui/material/styles';
|
|
|
14
14
|
import Popper from '@mui/material/Popper';
|
|
15
15
|
import NoSsr from '@mui/material/NoSsr';
|
|
16
16
|
import { rafThrottle } from '@mui/x-internals/rafThrottle';
|
|
17
|
-
import {
|
|
17
|
+
import { errorOnce } from '@mui/x-internals/warning';
|
|
18
18
|
import { useIsFineMainPointer } from "./utils.mjs";
|
|
19
19
|
import { useUtilityClasses } from "./chartsTooltipClasses.mjs";
|
|
20
20
|
import { useStore } from "../internals/store/useStore.mjs";
|
|
@@ -100,10 +100,10 @@ function ChartsTooltipContainer(inProps) {
|
|
|
100
100
|
const isItemControlled = store.state.tooltip?.itemIsControlled ?? false;
|
|
101
101
|
const isAxisControlled = store.state.controlledCartesianAxisTooltip !== undefined;
|
|
102
102
|
if (trigger !== 'item' && isItemControlled) {
|
|
103
|
-
|
|
103
|
+
errorOnce([`MUI X Charts: The \`tooltipItem\` prop is provided, but the tooltip trigger is set to '${trigger}'.`, "The `tooltipItem` prop only has an effect when the tooltip trigger is 'item'."].join('\n'));
|
|
104
104
|
}
|
|
105
105
|
if (trigger !== 'axis' && isAxisControlled) {
|
|
106
|
-
|
|
106
|
+
errorOnce([`MUI X Charts: The \`tooltipAxis\` prop is provided, but the tooltip trigger is set to '${trigger}'.`, "The `tooltipAxis` prop only has an effect when the tooltip trigger is 'axis'."].join('\n'));
|
|
107
107
|
}
|
|
108
108
|
}
|
|
109
109
|
const chartsLayerContainerRef = useChartsLayerContainerRef();
|
|
@@ -251,7 +251,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes /* remo
|
|
|
251
251
|
*/
|
|
252
252
|
anchor: PropTypes.oneOf(['chart', 'node', 'pointer']),
|
|
253
253
|
/**
|
|
254
|
-
* An HTML element, [virtualElement](https://
|
|
254
|
+
* An HTML element, [virtualElement](https://github.com/floating-ui/popper-docs/blob/main/docs/v2/virtual-elements.md),
|
|
255
255
|
* or a function that returns either.
|
|
256
256
|
* It's used to set the position of the popper.
|
|
257
257
|
* The return value will passed as the reference object of the Popper instance.
|
|
@@ -308,7 +308,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes /* remo
|
|
|
308
308
|
* A modifier is a function that is called each time Popper.js needs to
|
|
309
309
|
* compute the position of the popper.
|
|
310
310
|
* For this reason, modifiers should be very performant to avoid bottlenecks.
|
|
311
|
-
* To learn how to create a modifier, [read the modifiers documentation](https://
|
|
311
|
+
* To learn how to create a modifier, [read the modifiers documentation](https://github.com/floating-ui/popper-docs/blob/main/docs/v2/modifiers/index.md).
|
|
312
312
|
*/
|
|
313
313
|
modifiers: PropTypes.arrayOf(PropTypes.shape({
|
|
314
314
|
data: PropTypes.object,
|
|
@@ -331,7 +331,7 @@ process.env.NODE_ENV !== "production" ? ChartsTooltipContainer.propTypes /* remo
|
|
|
331
331
|
*/
|
|
332
332
|
placement: PropTypes.oneOf(['auto-end', 'auto-start', 'auto', 'bottom-end', 'bottom-start', 'bottom', 'left-end', 'left-start', 'left', 'right-end', 'right-start', 'right', 'top-end', 'top-start', 'top']),
|
|
333
333
|
/**
|
|
334
|
-
* Options provided to the [`Popper.js`](https://
|
|
334
|
+
* Options provided to the [`Popper.js`](https://github.com/floating-ui/popper-docs/blob/main/docs/v2/constructors.md#options) instance.
|
|
335
335
|
* @default {}
|
|
336
336
|
*/
|
|
337
337
|
popperOptions: PropTypes.shape({
|
|
@@ -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 = ["children", "sx", "extendVertically", "hideLegend", "legendDirection", "legendPosition"];
|
|
6
6
|
import * as React from 'react';
|
|
7
7
|
import PropTypes from 'prop-types';
|
|
@@ -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 * as React from 'react';
|
|
6
6
|
import { isOrdinalScale } from "../internals/scaleGuards.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 * as React from 'react';
|
|
5
5
|
import { useRtl } from '@mui/system/RtlProvider';
|
|
6
6
|
import { useIsHydrated } from '@mui/x-internals/useIsHydrated';
|
|
@@ -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 PropTypes from 'prop-types';
|
|
5
5
|
import { warnOnce } from '@mui/x-internals/warning';
|
|
6
6
|
import { useXAxes } from "../hooks/useAxis.mjs";
|