@mui/x-charts 7.22.1 → 8.0.0-alpha.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/BarChart.d.ts +7 -7
- package/BarChart/BarChart.js +9 -29
- package/BarChart/BarElement.d.ts +1 -1
- package/BarChart/BarLabel/BarLabelItem.d.ts +1 -1
- package/BarChart/BarPlot.js +12 -4
- package/BarChart/extremums.js +3 -3
- package/BarChart/useBarChartProps.d.ts +2 -2
- package/BarChart/useBarChartProps.js +3 -4
- package/CHANGELOG.md +143 -92
- package/ChartContainer/ChartContainer.d.ts +16 -33
- package/ChartContainer/ChartContainer.js +24 -41
- package/{ResponsiveChartContainer → ChartContainer}/ResizableContainer.d.ts +2 -2
- package/{ResponsiveChartContainer → ChartContainer}/useChartContainerDimensions.d.ts +1 -1
- package/{ResponsiveChartContainer → ChartContainer}/useChartContainerDimensions.js +6 -4
- package/ChartContainer/useChartContainerProps.d.ts +11 -86
- package/ChartContainer/useChartContainerProps.js +42 -58
- package/ChartsLegend/ChartsLegend.js +0 -3
- package/ChartsLegend/DefaultChartsLegend.d.ts +0 -5
- package/ChartsLegend/DefaultChartsLegend.js +1 -12
- package/ChartsLegend/LegendPerItem.d.ts +1 -1
- package/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.js +2 -2
- package/ChartsOverlay/ChartsOverlay.d.ts +1 -1
- package/ChartsTooltip/ChartsAxisTooltipContent.js +3 -3
- package/ChartsTooltip/ChartsItemTooltipContent.js +3 -3
- package/ChartsTooltip/ChartsTooltip.js +45 -6
- package/ChartsTooltip/useAxisTooltip.js +3 -3
- package/ChartsTooltip/useItemTooltip.js +3 -3
- package/ChartsTooltip/utils.d.ts +5 -13
- package/ChartsTooltip/utils.js +45 -42
- package/ChartsVoronoiHandler/ChartsVoronoiHandler.js +3 -5
- package/Gauge/GaugeContainer.js +1 -1
- package/LineChart/AreaElement.d.ts +1 -1
- package/LineChart/AreaPlot.js +2 -6
- package/LineChart/LineChart.d.ts +7 -7
- package/LineChart/LineChart.js +9 -29
- package/LineChart/LineElement.d.ts +1 -1
- package/LineChart/LineHighlightPlot.d.ts +1 -1
- package/LineChart/LineHighlightPlot.js +2 -6
- package/LineChart/LinePlot.js +2 -6
- package/LineChart/MarkPlot.js +2 -6
- package/LineChart/extremums.js +10 -6
- package/LineChart/useLineChartProps.d.ts +2 -2
- package/LineChart/useLineChartProps.js +3 -4
- package/PieChart/PieArc.d.ts +0 -5
- package/PieChart/PieArc.js +1 -10
- package/PieChart/PieArcPlot.js +0 -5
- package/PieChart/PieChart.d.ts +9 -32
- package/PieChart/PieChart.js +19 -102
- package/README.md +2 -2
- package/ScatterChart/ScatterChart.d.ts +7 -7
- package/ScatterChart/ScatterChart.js +9 -29
- package/ScatterChart/ScatterPlot.js +3 -6
- package/ScatterChart/extremums.js +6 -6
- package/ScatterChart/useScatterChartProps.d.ts +2 -2
- package/ScatterChart/useScatterChartProps.js +3 -4
- package/SparkLineChart/SparkLineChart.d.ts +4 -4
- package/SparkLineChart/SparkLineChart.js +4 -2
- package/context/CartesianProvider/defaultizeAxis.d.ts +5 -1
- package/context/ChartDataProvider/ChartDataProvider.d.ts +41 -0
- package/{ResponsiveChartContainer/ResponsiveChartContainer.js → context/ChartDataProvider/ChartDataProvider.js} +48 -27
- package/context/ChartDataProvider/index.d.ts +1 -0
- package/context/ChartDataProvider/index.js +1 -0
- package/context/ChartDataProvider/useChartDataProviderProps.d.ts +97 -0
- package/context/ChartDataProvider/useChartDataProviderProps.js +86 -0
- package/{ChartContainer → context/ChartDataProvider}/useDefaultizeAxis.d.ts +16 -12
- package/{ChartContainer → context/ChartDataProvider}/useDefaultizeAxis.js +1 -1
- package/context/HighlightedProvider/HighlightedContext.d.ts +0 -8
- package/context/HighlightedProvider/HighlightedProvider.js +1 -16
- package/context/PluginProvider/ExtremumGetter.types.d.ts +2 -2
- package/context/ZAxisContextProvider.d.ts +1 -1
- package/index.d.ts +1 -2
- package/index.js +2 -3
- package/internals/computeAxisValue.js +13 -5
- package/internals/defaultizeColor.d.ts +1 -8
- package/internals/getSymbol.js +19 -3
- package/internals/index.d.ts +5 -5
- package/internals/index.js +5 -5
- package/internals/useStringInterpolator.js +1 -0
- package/models/axis.d.ts +10 -0
- package/models/seriesType/bar.d.ts +1 -1
- package/models/seriesType/common.d.ts +2 -12
- package/models/seriesType/config.d.ts +1 -1
- package/models/seriesType/line.d.ts +1 -1
- package/models/seriesType/pie.d.ts +1 -1
- package/models/seriesType/scatter.d.ts +1 -6
- package/modern/BarChart/BarChart.js +9 -29
- package/modern/BarChart/BarPlot.js +12 -4
- package/modern/BarChart/extremums.js +3 -3
- package/modern/BarChart/useBarChartProps.js +3 -4
- package/modern/ChartContainer/ChartContainer.js +24 -41
- package/modern/{ResponsiveChartContainer → ChartContainer}/useChartContainerDimensions.js +6 -4
- package/modern/ChartContainer/useChartContainerProps.js +42 -58
- package/modern/ChartsLegend/ChartsLegend.js +0 -3
- package/modern/ChartsLegend/DefaultChartsLegend.js +1 -12
- package/modern/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.js +2 -2
- package/modern/ChartsTooltip/ChartsAxisTooltipContent.js +3 -3
- package/modern/ChartsTooltip/ChartsItemTooltipContent.js +3 -3
- package/modern/ChartsTooltip/ChartsTooltip.js +45 -6
- package/modern/ChartsTooltip/useAxisTooltip.js +3 -3
- package/modern/ChartsTooltip/useItemTooltip.js +3 -3
- package/modern/ChartsTooltip/utils.js +45 -42
- package/modern/ChartsVoronoiHandler/ChartsVoronoiHandler.js +3 -5
- package/modern/Gauge/GaugeContainer.js +1 -1
- package/modern/LineChart/AreaPlot.js +2 -6
- package/modern/LineChart/LineChart.js +9 -29
- package/modern/LineChart/LineHighlightPlot.js +2 -6
- package/modern/LineChart/LinePlot.js +2 -6
- package/modern/LineChart/MarkPlot.js +2 -6
- package/modern/LineChart/extremums.js +10 -6
- package/modern/LineChart/useLineChartProps.js +3 -4
- package/modern/PieChart/PieArc.js +1 -10
- package/modern/PieChart/PieArcPlot.js +0 -5
- package/modern/PieChart/PieChart.js +19 -102
- package/modern/ScatterChart/ScatterChart.js +9 -29
- package/modern/ScatterChart/ScatterPlot.js +3 -6
- package/modern/ScatterChart/extremums.js +6 -6
- package/modern/ScatterChart/useScatterChartProps.js +3 -4
- package/modern/SparkLineChart/SparkLineChart.js +4 -2
- package/modern/{ResponsiveChartContainer/ResponsiveChartContainer.js → context/ChartDataProvider/ChartDataProvider.js} +48 -27
- package/modern/context/ChartDataProvider/index.js +1 -0
- package/modern/context/ChartDataProvider/useChartDataProviderProps.js +86 -0
- package/modern/{ChartContainer → context/ChartDataProvider}/useDefaultizeAxis.js +1 -1
- package/modern/context/HighlightedProvider/HighlightedProvider.js +1 -16
- package/modern/index.js +2 -3
- package/modern/internals/computeAxisValue.js +13 -5
- package/modern/internals/getSymbol.js +19 -3
- package/modern/internals/index.js +5 -5
- package/modern/internals/useStringInterpolator.js +1 -0
- package/node/BarChart/BarChart.js +9 -29
- package/node/BarChart/BarPlot.js +11 -3
- package/node/BarChart/extremums.js +3 -3
- package/node/BarChart/useBarChartProps.js +3 -4
- package/node/ChartContainer/ChartContainer.js +23 -40
- package/node/{ResponsiveChartContainer → ChartContainer}/useChartContainerDimensions.js +6 -4
- package/node/ChartContainer/useChartContainerProps.js +42 -59
- package/node/ChartsLegend/ChartsLegend.js +0 -3
- package/node/ChartsLegend/DefaultChartsLegend.js +1 -12
- package/node/ChartsOnAxisClickHandler/ChartsOnAxisClickHandler.js +2 -2
- package/node/ChartsTooltip/ChartsAxisTooltipContent.js +3 -3
- package/node/ChartsTooltip/ChartsItemTooltipContent.js +3 -3
- package/node/ChartsTooltip/ChartsTooltip.js +44 -5
- package/node/ChartsTooltip/useAxisTooltip.js +3 -3
- package/node/ChartsTooltip/useItemTooltip.js +3 -3
- package/node/ChartsTooltip/utils.js +46 -44
- package/node/ChartsVoronoiHandler/ChartsVoronoiHandler.js +3 -5
- package/node/Gauge/GaugeContainer.js +1 -1
- package/node/LineChart/AreaPlot.js +2 -6
- package/node/LineChart/LineChart.js +9 -29
- package/node/LineChart/LineHighlightPlot.js +2 -6
- package/node/LineChart/LinePlot.js +2 -6
- package/node/LineChart/MarkPlot.js +2 -6
- package/node/LineChart/extremums.js +10 -6
- package/node/LineChart/useLineChartProps.js +3 -4
- package/node/PieChart/PieArc.js +1 -10
- package/node/PieChart/PieArcPlot.js +0 -5
- package/node/PieChart/PieChart.js +19 -102
- package/node/ScatterChart/ScatterChart.js +9 -29
- package/node/ScatterChart/ScatterPlot.js +3 -6
- package/node/ScatterChart/extremums.js +6 -6
- package/node/ScatterChart/useScatterChartProps.js +3 -4
- package/node/SparkLineChart/SparkLineChart.js +4 -2
- package/node/{ResponsiveChartContainer/ResponsiveChartContainer.js → context/ChartDataProvider/ChartDataProvider.js} +47 -26
- package/node/context/ChartDataProvider/index.js +16 -0
- package/node/context/ChartDataProvider/useChartDataProviderProps.js +94 -0
- package/node/{ChartContainer → context/ChartDataProvider}/useDefaultizeAxis.js +1 -1
- package/node/context/HighlightedProvider/HighlightedProvider.js +1 -16
- package/node/index.js +5 -16
- package/node/internals/computeAxisValue.js +13 -5
- package/node/internals/getSymbol.js +19 -3
- package/node/internals/index.js +37 -29
- package/node/internals/useStringInterpolator.js +2 -0
- package/package.json +4 -4
- package/ResponsiveChartContainer/ResponsiveChartContainer.d.ts +0 -24
- package/ResponsiveChartContainer/index.d.ts +0 -1
- package/ResponsiveChartContainer/index.js +0 -1
- package/ResponsiveChartContainer/package.json +0 -6
- package/ResponsiveChartContainer/useResponsiveChartContainerProps.d.ts +0 -19
- package/ResponsiveChartContainer/useResponsiveChartContainerProps.js +0 -70
- package/internals/SlotComponentPropsFromProps.d.ts +0 -1
- package/internals/SlotComponentPropsFromProps.js +0 -1
- package/models/helpers.d.ts +0 -3
- package/models/helpers.js +0 -1
- package/modern/ResponsiveChartContainer/index.js +0 -1
- package/modern/ResponsiveChartContainer/useResponsiveChartContainerProps.js +0 -70
- package/modern/internals/SlotComponentPropsFromProps.js +0 -1
- package/modern/models/helpers.js +0 -1
- package/node/ResponsiveChartContainer/index.js +0 -16
- package/node/ResponsiveChartContainer/useResponsiveChartContainerProps.js +0 -77
- package/node/internals/SlotComponentPropsFromProps.js +0 -5
- package/node/models/helpers.js +0 -5
- /package/{ResponsiveChartContainer → ChartContainer}/ResizableContainer.js +0 -0
- /package/modern/{ResponsiveChartContainer → ChartContainer}/ResizableContainer.js +0 -0
- /package/node/{ResponsiveChartContainer → ChartContainer}/ResizableContainer.js +0 -0
package/BarChart/BarChart.d.ts
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
+
import { MakeOptional } from '@mui/x-internals/types';
|
|
2
3
|
import { BarPlotProps, BarPlotSlotProps, BarPlotSlots } from './BarPlot';
|
|
3
|
-
import {
|
|
4
|
+
import { ChartContainerProps } from '../ChartContainer';
|
|
4
5
|
import { ChartsAxisProps } from '../ChartsAxis';
|
|
5
6
|
import { BarSeriesType } from '../models/seriesType/bar';
|
|
6
|
-
import { MakeOptional } from '../models/helpers';
|
|
7
7
|
import { ChartsTooltipProps, ChartsTooltipSlotProps, ChartsTooltipSlots } from '../ChartsTooltip';
|
|
8
|
-
import {
|
|
8
|
+
import { ChartsLegendSlots, ChartsLegendSlotProps } from '../ChartsLegend';
|
|
9
9
|
import { ChartsAxisHighlightProps } from '../ChartsAxisHighlight';
|
|
10
10
|
import { ChartsAxisSlots, ChartsAxisSlotProps } from '../models/axis';
|
|
11
11
|
import { ChartsGridProps } from '../ChartsGrid';
|
|
@@ -15,7 +15,7 @@ export interface BarChartSlots extends ChartsAxisSlots, BarPlotSlots, ChartsLege
|
|
|
15
15
|
}
|
|
16
16
|
export interface BarChartSlotProps extends ChartsAxisSlotProps, BarPlotSlotProps, ChartsLegendSlotProps, ChartsTooltipSlotProps<'bar'>, ChartsOverlaySlotProps {
|
|
17
17
|
}
|
|
18
|
-
export interface BarChartProps extends Omit<
|
|
18
|
+
export interface BarChartProps extends Omit<ChartContainerProps, 'series' | 'plugins' | 'zAxis'>, Omit<ChartsAxisProps, 'slots' | 'slotProps'>, Omit<BarPlotProps, 'slots' | 'slotProps'>, Omit<ChartsOverlayProps, 'slots' | 'slotProps'>, ChartsOnAxisClickHandlerProps {
|
|
19
19
|
/**
|
|
20
20
|
* The series to display in the bar chart.
|
|
21
21
|
* An array of [[BarSeriesType]] objects.
|
|
@@ -39,9 +39,9 @@ export interface BarChartProps extends Omit<ResponsiveChartContainerProps, 'seri
|
|
|
39
39
|
*/
|
|
40
40
|
axisHighlight?: ChartsAxisHighlightProps;
|
|
41
41
|
/**
|
|
42
|
-
*
|
|
42
|
+
* If `true`, the legend is not rendered.
|
|
43
43
|
*/
|
|
44
|
-
|
|
44
|
+
hideLegend?: boolean;
|
|
45
45
|
/**
|
|
46
46
|
* Overridable component slots.
|
|
47
47
|
* @default {}
|
|
@@ -69,5 +69,5 @@ export interface BarChartProps extends Omit<ResponsiveChartContainerProps, 'seri
|
|
|
69
69
|
*
|
|
70
70
|
* - [BarChart API](https://mui.com/x/api/charts/bar-chart/)
|
|
71
71
|
*/
|
|
72
|
-
declare const BarChart: React.ForwardRefExoticComponent<BarChartProps & React.RefAttributes<
|
|
72
|
+
declare const BarChart: React.ForwardRefExoticComponent<BarChartProps & React.RefAttributes<SVGSVGElement>>;
|
|
73
73
|
export { BarChart };
|
package/BarChart/BarChart.js
CHANGED
|
@@ -5,7 +5,7 @@ import * as React from 'react';
|
|
|
5
5
|
import PropTypes from 'prop-types';
|
|
6
6
|
import { useThemeProps } from '@mui/material/styles';
|
|
7
7
|
import { BarPlot } from "./BarPlot.js";
|
|
8
|
-
import {
|
|
8
|
+
import { ChartContainer } from "../ChartContainer/index.js";
|
|
9
9
|
import { ChartsAxis } from "../ChartsAxis/index.js";
|
|
10
10
|
import { ChartsTooltip } from "../ChartsTooltip/index.js";
|
|
11
11
|
import { ChartsLegend } from "../ChartsLegend/index.js";
|
|
@@ -46,12 +46,12 @@ const BarChart = /*#__PURE__*/React.forwardRef(function BarChart(inProps, ref) {
|
|
|
46
46
|
tooltipProps,
|
|
47
47
|
children
|
|
48
48
|
} = useBarChartProps(props);
|
|
49
|
-
return /*#__PURE__*/_jsxs(
|
|
49
|
+
return /*#__PURE__*/_jsxs(ChartContainer, _extends({
|
|
50
50
|
ref: ref
|
|
51
51
|
}, chartContainerProps, {
|
|
52
52
|
children: [props.onAxisClick && /*#__PURE__*/_jsx(ChartsOnAxisClickHandler, _extends({}, axisClickHandlerProps)), /*#__PURE__*/_jsx(ChartsGrid, _extends({}, gridProps)), /*#__PURE__*/_jsxs("g", _extends({}, clipPathGroupProps, {
|
|
53
53
|
children: [/*#__PURE__*/_jsx(BarPlot, _extends({}, barPlotProps)), /*#__PURE__*/_jsx(ChartsOverlay, _extends({}, overlayProps)), /*#__PURE__*/_jsx(ChartsAxisHighlight, _extends({}, axisHighlightProps))]
|
|
54
|
-
})), /*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), !props.loading && /*#__PURE__*/_jsx(ChartsTooltip, _extends({}, tooltipProps)), /*#__PURE__*/_jsx(ChartsClipPath, _extends({}, clipPathProps)), children]
|
|
54
|
+
})), /*#__PURE__*/_jsx(ChartsAxis, _extends({}, chartsAxisProps)), !props.hideLegend && /*#__PURE__*/_jsx(ChartsLegend, _extends({}, legendProps)), !props.loading && /*#__PURE__*/_jsx(ChartsTooltip, _extends({}, tooltipProps)), /*#__PURE__*/_jsx(ChartsClipPath, _extends({}, clipPathProps)), children]
|
|
55
55
|
}));
|
|
56
56
|
});
|
|
57
57
|
process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
@@ -116,6 +116,10 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
116
116
|
* The height of the chart in px. If not defined, it takes the height of the parent element.
|
|
117
117
|
*/
|
|
118
118
|
height: PropTypes.number,
|
|
119
|
+
/**
|
|
120
|
+
* If `true`, the legend is not rendered.
|
|
121
|
+
*/
|
|
122
|
+
hideLegend: PropTypes.bool,
|
|
119
123
|
/**
|
|
120
124
|
* The item currently highlighted. Turns highlighting into a controlled prop.
|
|
121
125
|
*/
|
|
@@ -134,32 +138,6 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
134
138
|
* @default yAxisIds[0] The id of the first provided axis
|
|
135
139
|
*/
|
|
136
140
|
leftAxis: PropTypes.oneOfType([PropTypes.object, PropTypes.string]),
|
|
137
|
-
/**
|
|
138
|
-
* @deprecated Consider using `slotProps.legend` instead.
|
|
139
|
-
*/
|
|
140
|
-
legend: PropTypes.shape({
|
|
141
|
-
classes: PropTypes.object,
|
|
142
|
-
direction: PropTypes.oneOf(['column', 'row']),
|
|
143
|
-
hidden: PropTypes.bool,
|
|
144
|
-
itemGap: PropTypes.number,
|
|
145
|
-
itemMarkHeight: PropTypes.number,
|
|
146
|
-
itemMarkWidth: PropTypes.number,
|
|
147
|
-
labelStyle: PropTypes.object,
|
|
148
|
-
markGap: PropTypes.number,
|
|
149
|
-
onItemClick: PropTypes.func,
|
|
150
|
-
padding: PropTypes.oneOfType([PropTypes.number, PropTypes.shape({
|
|
151
|
-
bottom: PropTypes.number,
|
|
152
|
-
left: PropTypes.number,
|
|
153
|
-
right: PropTypes.number,
|
|
154
|
-
top: PropTypes.number
|
|
155
|
-
})]),
|
|
156
|
-
position: PropTypes.shape({
|
|
157
|
-
horizontal: PropTypes.oneOf(['left', 'middle', 'right']).isRequired,
|
|
158
|
-
vertical: PropTypes.oneOf(['bottom', 'middle', 'top']).isRequired
|
|
159
|
-
}),
|
|
160
|
-
slotProps: PropTypes.object,
|
|
161
|
-
slots: PropTypes.object
|
|
162
|
-
}),
|
|
163
141
|
/**
|
|
164
142
|
* If `true`, a loading overlay is displayed.
|
|
165
143
|
* @default false
|
|
@@ -288,6 +266,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
288
266
|
dataKey: PropTypes.string,
|
|
289
267
|
disableLine: PropTypes.bool,
|
|
290
268
|
disableTicks: PropTypes.bool,
|
|
269
|
+
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
291
270
|
fill: PropTypes.string,
|
|
292
271
|
hideTooltip: PropTypes.bool,
|
|
293
272
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
|
@@ -341,6 +320,7 @@ process.env.NODE_ENV !== "production" ? BarChart.propTypes = {
|
|
|
341
320
|
dataKey: PropTypes.string,
|
|
342
321
|
disableLine: PropTypes.bool,
|
|
343
322
|
disableTicks: PropTypes.bool,
|
|
323
|
+
domainLimit: PropTypes.oneOfType([PropTypes.oneOf(['nice', 'strict']), PropTypes.func]),
|
|
344
324
|
fill: PropTypes.string,
|
|
345
325
|
hideTooltip: PropTypes.bool,
|
|
346
326
|
id: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
|
package/BarChart/BarElement.d.ts
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { AnimatedProps } from '@react-spring/web';
|
|
3
|
-
import { SlotComponentPropsFromProps } from '
|
|
3
|
+
import { SlotComponentPropsFromProps } from '@mui/x-internals/types';
|
|
4
4
|
import { SeriesId } from '../models/seriesType/common';
|
|
5
5
|
export interface BarElementClasses {
|
|
6
6
|
/** Styles applied to the root element. */
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { SlotComponentPropsFromProps } from '
|
|
2
|
+
import { SlotComponentPropsFromProps } from '@mui/x-internals/types';
|
|
3
3
|
import { BarLabelOwnerState, BarItem, BarLabelContext } from './BarLabel.types';
|
|
4
4
|
import { BarLabelProps } from './BarLabel';
|
|
5
5
|
export interface BarLabelSlots {
|
package/BarChart/BarPlot.js
CHANGED
|
@@ -9,7 +9,7 @@ import { useTransition } from '@react-spring/web';
|
|
|
9
9
|
import { useCartesianContext } from "../context/CartesianProvider/index.js";
|
|
10
10
|
import { BarElement } from "./BarElement.js";
|
|
11
11
|
import getColor from "./getColor.js";
|
|
12
|
-
import { useChartId } from "../hooks/index.js";
|
|
12
|
+
import { useChartId, useDrawingArea } from "../hooks/index.js";
|
|
13
13
|
import { BarClipPath } from "./BarClipPath.js";
|
|
14
14
|
import { BarLabelPlot } from "./BarLabel/BarLabelPlot.js";
|
|
15
15
|
import { checkScaleErrors } from "./checkScaleErrors.js";
|
|
@@ -51,6 +51,7 @@ const useAggregatedData = () => {
|
|
|
51
51
|
seriesOrder: []
|
|
52
52
|
};
|
|
53
53
|
const axisData = useCartesianContext();
|
|
54
|
+
const drawingArea = useDrawingArea();
|
|
54
55
|
const chartId = useChartId();
|
|
55
56
|
const {
|
|
56
57
|
series,
|
|
@@ -68,9 +69,13 @@ const useAggregatedData = () => {
|
|
|
68
69
|
const data = stackingGroups.flatMap(({
|
|
69
70
|
ids: groupIds
|
|
70
71
|
}, groupIndex) => {
|
|
72
|
+
const xMin = drawingArea.left;
|
|
73
|
+
const xMax = drawingArea.left + drawingArea.width;
|
|
74
|
+
const yMin = drawingArea.top;
|
|
75
|
+
const yMax = drawingArea.top + drawingArea.height;
|
|
71
76
|
return groupIds.flatMap(seriesId => {
|
|
72
|
-
const xAxisId = series[seriesId].xAxisId ??
|
|
73
|
-
const yAxisId = series[seriesId].yAxisId ??
|
|
77
|
+
const xAxisId = series[seriesId].xAxisId ?? defaultXAxisId;
|
|
78
|
+
const yAxisId = series[seriesId].yAxisId ?? defaultYAxisId;
|
|
74
79
|
const xAxisConfig = xAxis[xAxisId];
|
|
75
80
|
const yAxisConfig = yAxis[yAxisId];
|
|
76
81
|
const verticalLayout = series[seriesId].layout === 'vertical';
|
|
@@ -111,6 +116,9 @@ const useAggregatedData = () => {
|
|
|
111
116
|
value: series[seriesId].data[dataIndex],
|
|
112
117
|
maskId: `${chartId}_${stackId || seriesId}_${groupIndex}_${dataIndex}`
|
|
113
118
|
};
|
|
119
|
+
if (result.x > xMax || result.x + result.width < xMin || result.y > yMax || result.y + result.height < yMin) {
|
|
120
|
+
return null;
|
|
121
|
+
}
|
|
114
122
|
if (!masks[result.maskId]) {
|
|
115
123
|
masks[result.maskId] = {
|
|
116
124
|
id: result.maskId,
|
|
@@ -133,7 +141,7 @@ const useAggregatedData = () => {
|
|
|
133
141
|
mask.hasNegative = mask.hasNegative || (result.value ?? 0) < 0;
|
|
134
142
|
mask.hasPositive = mask.hasPositive || (result.value ?? 0) > 0;
|
|
135
143
|
return result;
|
|
136
|
-
});
|
|
144
|
+
}).filter(rectangle => rectangle !== null);
|
|
137
145
|
});
|
|
138
146
|
});
|
|
139
147
|
return {
|
package/BarChart/extremums.js
CHANGED
|
@@ -36,7 +36,7 @@ const getValueExtremum = direction => params => {
|
|
|
36
36
|
isDefaultAxis
|
|
37
37
|
} = params;
|
|
38
38
|
return Object.keys(series).filter(seriesId => {
|
|
39
|
-
const yAxisId = series[seriesId].yAxisId
|
|
39
|
+
const yAxisId = series[seriesId].yAxisId;
|
|
40
40
|
return yAxisId === axis.id || isDefaultAxis && yAxisId === undefined;
|
|
41
41
|
}).reduce((acc, seriesId) => {
|
|
42
42
|
const {
|
|
@@ -45,8 +45,8 @@ const getValueExtremum = direction => params => {
|
|
|
45
45
|
const filter = getFilters?.({
|
|
46
46
|
currentAxisId: axis.id,
|
|
47
47
|
isDefaultAxis,
|
|
48
|
-
seriesXAxisId: series[seriesId].xAxisId
|
|
49
|
-
seriesYAxisId: series[seriesId].yAxisId
|
|
48
|
+
seriesXAxisId: series[seriesId].xAxisId,
|
|
49
|
+
seriesYAxisId: series[seriesId].yAxisId
|
|
50
50
|
});
|
|
51
51
|
const [seriesMin, seriesMax] = stackedData?.reduce((seriesAcc, values, index) => {
|
|
52
52
|
if (filter && (!filter(createResult(values[0], direction), index) || !filter(createResult(values[1], direction), index))) {
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import type { BarChartProps } from './BarChart';
|
|
2
|
-
import {
|
|
2
|
+
import { ChartContainerProps } from '../ChartContainer';
|
|
3
3
|
import { BarPlotProps } from './BarPlot';
|
|
4
4
|
import { ChartsOnAxisClickHandlerProps } from '../ChartsOnAxisClickHandler';
|
|
5
5
|
import { ChartsGridProps } from '../ChartsGrid';
|
|
@@ -17,7 +17,7 @@ import { ChartsTooltipProps } from '../ChartsTooltip';
|
|
|
17
17
|
* @returns An object with props for the children components of BarChart
|
|
18
18
|
*/
|
|
19
19
|
export declare const useBarChartProps: (props: BarChartProps) => {
|
|
20
|
-
chartContainerProps:
|
|
20
|
+
chartContainerProps: ChartContainerProps;
|
|
21
21
|
barPlotProps: BarPlotProps;
|
|
22
22
|
axisClickHandlerProps: ChartsOnAxisClickHandlerProps;
|
|
23
23
|
gridProps: ChartsGridProps;
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
4
4
|
import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
|
|
5
|
-
const _excluded = ["xAxis", "yAxis", "series", "width", "height", "margin", "colors", "dataset", "sx", "tooltip", "onAxisClick", "axisHighlight", "
|
|
5
|
+
const _excluded = ["xAxis", "yAxis", "series", "width", "height", "margin", "colors", "dataset", "sx", "tooltip", "onAxisClick", "axisHighlight", "grid", "topAxis", "leftAxis", "rightAxis", "bottomAxis", "children", "slots", "slotProps", "skipAnimation", "loading", "layout", "onItemClick", "highlightedItem", "onHighlightChange", "borderRadius", "barLabel", "className", "hideLegend"];
|
|
6
6
|
import useId from '@mui/utils/useId';
|
|
7
7
|
import { DEFAULT_X_AXIS_KEY, DEFAULT_Y_AXIS_KEY } from "../constants/index.js";
|
|
8
8
|
/**
|
|
@@ -26,7 +26,6 @@ export const useBarChartProps = props => {
|
|
|
26
26
|
tooltip,
|
|
27
27
|
onAxisClick,
|
|
28
28
|
axisHighlight,
|
|
29
|
-
legend,
|
|
30
29
|
grid,
|
|
31
30
|
topAxis,
|
|
32
31
|
leftAxis,
|
|
@@ -117,10 +116,10 @@ export const useBarChartProps = props => {
|
|
|
117
116
|
} : {
|
|
118
117
|
x: 'band'
|
|
119
118
|
}, axisHighlight);
|
|
120
|
-
const legendProps =
|
|
119
|
+
const legendProps = {
|
|
121
120
|
slots,
|
|
122
121
|
slotProps
|
|
123
|
-
}
|
|
122
|
+
};
|
|
124
123
|
const tooltipProps = _extends({}, tooltip, {
|
|
125
124
|
slots,
|
|
126
125
|
slotProps
|
package/CHANGELOG.md
CHANGED
|
@@ -1,149 +1,200 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
> For full v7 changelog, please refer to the [v.7x branch](https://github.com/mui/mui-x/blob/v7.x/CHANGELOG.md).
|
|
4
|
+
|
|
3
5
|
All notable changes to this project will be documented in this file.
|
|
4
6
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
7
|
|
|
6
|
-
##
|
|
8
|
+
## 8.0.0-alpha.0
|
|
7
9
|
|
|
8
|
-
|
|
10
|
+
<img width="100%" alt="MUI X v8 Alpha is live" src="https://github.com/user-attachments/assets/114cf615-b617-435f-8499-76ac3c26c57b">
|
|
9
11
|
|
|
10
|
-
|
|
12
|
+
_Nov 14, 2024_
|
|
11
13
|
|
|
14
|
+
We'd like to offer a big thanks to the 22 contributors who made this release possible. Here are some highlights ✨:
|
|
15
|
+
|
|
16
|
+
- 🔁 Support [automatic parents and children selection](https://next.mui.com/x/react-tree-view/rich-tree-view/selection/#automatic-parents-and-children-selection) for the Rich Tree View components.
|
|
17
|
+
- 🌍 Improve Greek (el-GR) locale on the Date and Time Pickers components
|
|
18
|
+
- 🌍 Improve Polish (pl-PL) locale on the Data Grid component
|
|
12
19
|
- 🐞 Bugfixes
|
|
13
20
|
- 📚 Documentation improvements
|
|
14
|
-
- 🌍 Improve Polish (pl-PL) locale on the Date Pickers
|
|
15
21
|
|
|
16
|
-
Special thanks go out to the community contributors who have helped make this release possible:
|
|
17
|
-
@
|
|
18
|
-
Following are all team members who have contributed to this release:
|
|
19
|
-
@
|
|
22
|
+
Special thanks go out to the community contributors who have helped make this release possible:
|
|
23
|
+
@belkocik, @GeorgiosDrivas, @k-rajat19, @kalyan90, @DungTiger, @fxnoob, @GuillaumeMeheut
|
|
24
|
+
Following are all team members who have contributed to this release:
|
|
25
|
+
@alexfauquette, @arminmeh, @arthurbalduini, @cherniavskii, @flaviendelangle, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi, @michelengelen, @noraleonte, @oliviertassinari, @romgrk, @samuelsycamore, @joserodolfofreitas.
|
|
20
26
|
|
|
21
27
|
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
22
28
|
|
|
23
29
|
### Data Grid
|
|
24
30
|
|
|
25
|
-
#### `@mui/x-data-grid@
|
|
26
|
-
|
|
27
|
-
- [DataGrid] Fix right column group header border (#15152) @KenanYusuf
|
|
28
|
-
- [DataGrid] Fix scroll jump when holding down arrow keys (#15167) @arminmeh
|
|
29
|
-
- [DataGrid] Move `rowGroupingModelChange` handler to respective hook (#15127) @MBilalShafi
|
|
30
|
-
- [DataGrid] Prevent error when deleting the last row (#15153) @dpak-maurya
|
|
31
|
-
- [DataGrid] Fix overlay height in autoHeight mode (#15205) @cherniavskii
|
|
31
|
+
#### `@mui/x-data-grid@8.0.0-alpha.0`
|
|
32
32
|
|
|
33
|
-
|
|
33
|
+
- [DataGrid] Fix grid overlay aligment with scroll for rtl (#15072) @kalyan90
|
|
34
|
+
- [DataGrid] Fix resizing right pinned column (#15107) @KenanYusuf
|
|
35
|
+
- [DataGrid] Pass the reason to the `onPaginationModelChange` callback (#13959) @DungTiger
|
|
36
|
+
- [DataGrid] Set default overlay height in flex parent layout (#15202) @cherniavskii
|
|
37
|
+
- [DataGrid] Refactor `baseMenuList` and `baseMenuItem` (#15049) @romgrk
|
|
38
|
+
- [DataGrid] Remove more material imports (#15063) @romgrk
|
|
39
|
+
- [l10n] Improve Polish (pl-PL) locale (#15227) @belkocik
|
|
34
40
|
|
|
35
|
-
|
|
41
|
+
#### `@mui/x-data-grid-pro@8.0.0-alpha.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
36
42
|
|
|
37
|
-
|
|
43
|
+
Same changes as in `@mui/x-data-grid@8.0.0-alpha.0`, plus:
|
|
38
44
|
|
|
39
|
-
|
|
45
|
+
- [DataGridPro] Fix column pinning layout (#14966) @cherniavskii
|
|
40
46
|
|
|
41
|
-
- [
|
|
42
|
-
|
|
43
|
-
### Date and Time Pickers
|
|
47
|
+
#### `@mui/x-data-grid-premium@8.0.0-alpha.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
44
48
|
|
|
45
|
-
|
|
49
|
+
Same changes as in `@mui/x-data-grid-pro@8.0.0-alpha.0`, plus:
|
|
46
50
|
|
|
47
|
-
- [
|
|
51
|
+
- [DataGridPremium] Server-side data source with row grouping (#13826) @MBilalShafi
|
|
48
52
|
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
Same changes as in `@mui/x-date-pickers@7.22.1`.
|
|
52
|
-
|
|
53
|
-
### Tree View
|
|
54
|
-
|
|
55
|
-
#### `@mui/x-tree-view@7.22.1`
|
|
53
|
+
### Date and Time Pickers
|
|
56
54
|
|
|
57
|
-
|
|
58
|
-
- [TreeView] Fix drag and drop color usage (#15149) @LukasTy
|
|
55
|
+
#### Breaking changes
|
|
59
56
|
|
|
60
|
-
|
|
57
|
+
- The default DOM structure of the field has changed [Learn more](https://next.mui.com/x/migration/migration-pickers-v7/#new-dom-structure-for-the-field).
|
|
61
58
|
|
|
62
|
-
|
|
59
|
+
- Before version `v8.x`, the fields' DOM structure consisted of an `<input />`, which held the whole value for the component, but unfortunately presents a few limitations in terms of accessibility when managing multiple section values.
|
|
60
|
+
- Starting with version `v8.x`, all the field and picker components come with a new DOM structure that allows the field component to set aria attributes on individual sections, providing a far better experience with screen readers.
|
|
63
61
|
|
|
64
|
-
|
|
62
|
+
- Some translation keys no longer require `utils` and the date object as parameters, but only the formatted value as a string. The keys affected by this changes are: `clockLabelText`, `openDatePickerDialogue` and `openTimePickerDialogue` — [Learn more](https://next.mui.com/x/migration/migration-pickers-v7/#stop-passing-utils-and-the-date-object-to-some-translation-keys).
|
|
65
63
|
|
|
66
|
-
-
|
|
64
|
+
- The following types are no longer exported by `@mui/x-date-pickers` and `@mui/x-date-pickers-pro` — [Learn more](https://next.mui.com/x/migration/migration-pickers-v7/#removed-types).
|
|
67
65
|
|
|
68
|
-
|
|
66
|
+
- `UseDateFieldComponentProps`
|
|
67
|
+
- `UseTimeFieldComponentProps`
|
|
68
|
+
- `UseDateTimeFieldComponentProps`
|
|
69
|
+
- `BaseSingleInputFieldProps`
|
|
70
|
+
- `BaseMultiInputFieldProps`
|
|
71
|
+
- `BasePickersTextFieldProps`
|
|
69
72
|
|
|
70
|
-
|
|
73
|
+
- The `TDate` generic has been removed from all the types, interfaces, and variables of the `@mui/x-date-pickers` and `@mui/x-date-pickers-pro` packages — [Learn more](https://next.mui.com/x/migration/migration-pickers-v7/#remove-tdate-generic).
|
|
71
74
|
|
|
72
|
-
|
|
75
|
+
- Renamed `usePickersTranslations` and `usePickersContext` hooks to have a coherent `Picker` prefix instead of `Pickers` — [Learn more](https://next.mui.com/x/migration/migration-pickers-v7/#renamed-variables).
|
|
73
76
|
|
|
74
|
-
-
|
|
75
|
-
- 🐞 Bugfixes
|
|
76
|
-
- 📚 Documentation improvements
|
|
77
|
-
- 🌍 Improve Portuguese (pt-BR) locale on the Data Grid component
|
|
77
|
+
- The `LicenseInfo` object is no longer exported from the `@mui/x-date-pickers-pro` package — [Learn more](https://next.mui.com/x/migration/migration-pickers-v7/#stop-using-licenseinfo-from-mui-x-date-pickers-pro).
|
|
78
78
|
|
|
79
|
-
|
|
80
|
-
@clins1994, @GITPHLAP, @k-rajat19, @kalyan90, @merotosc, @yash49.
|
|
81
|
-
Following are all team members who have contributed to this release:
|
|
82
|
-
@cherniavskii, @flaviendelangle, @LukasTy, @MBilalShafi, @romgrk.
|
|
79
|
+
#### `@mui/x-date-pickers@8.0.0-alpha.0`
|
|
83
80
|
|
|
84
|
-
|
|
81
|
+
- [fields] Enable the new field DOM structure by default (#14651) @flaviendelangle
|
|
82
|
+
- [fields] Remove `UseDateFieldComponentProps` and equivalent interfaces (#15053) @flaviendelangle
|
|
83
|
+
- [fields] Remove clear button from the tab sequence (#14616) @k-rajat19
|
|
84
|
+
- [l10n] Improve Greek (el-GR) locale (#15250) @GeorgiosDrivas
|
|
85
|
+
- [pickers] Clean definition of validation props (#15198) @flaviendelangle
|
|
86
|
+
- [pickers] Clean the new `ownerState` object (#15056) @flaviendelangle
|
|
87
|
+
- [pickers] Correctly type the `ownerState` of the `field` and `actionBar` slots when resolved in a picker component (#15162) @flaviendelangle
|
|
88
|
+
- [pickers] Fix `DateCalendar` timezone management (#12321) @LukasTy
|
|
89
|
+
- [pickers] Fix `DateTimeRangePicker` error when using format without time (#14917) @fxnoob
|
|
90
|
+
- [pickers] Fix `DigitalClock` time options on a `DST` switch day (#10793) @LukasTy
|
|
91
|
+
- [pickers] Remove `TDate` generics in favor of `PickerValidDate` direct usage (#15001) @flaviendelangle
|
|
92
|
+
- [pickers] Remove `utils` and `value` params from translations (#14986) @arthurbalduini
|
|
93
|
+
- [pickers] Remove plural in "Pickers" on recently introduced APIs (#15297) @flaviendelangle
|
|
94
|
+
- [pickers] Remove the re-export from `@mui/x-license` (#14487) @k-rajat19
|
|
95
|
+
- [pickers] Strictly type the props a picker passes to its field, and migrate all the custom field demos accordingly (#15197) @flaviendelangle
|
|
96
|
+
- [pickers] Unify JSDoc for all the `disabled` and `readOnly` props (#15304) @flaviendelangle
|
|
97
|
+
- [pickers] Use the new `ownerState` in `DateCalendar`, `DateRangeCalendar`, `MonthCalendar` and `YearCalendar` (#15171) @flaviendelangle
|
|
98
|
+
- [pickers] Use the new `ownerState` in `usePickersLayout` and `useXXXPicker` (#14994) @flaviendelangle
|
|
85
99
|
|
|
86
|
-
|
|
100
|
+
#### `@mui/x-date-pickers-pro@8.0.0-alpha.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
87
101
|
|
|
88
|
-
|
|
102
|
+
Same changes as in `@mui/x-date-pickers@8.0.0-alpha.0`.
|
|
89
103
|
|
|
90
|
-
|
|
91
|
-
- [DataGrid] Fix ugly prop-types for the `pageStyle` prop of the `GridPrintExportMenuItem` component (#15015) @flaviendelangle
|
|
92
|
-
- [DataGrid] Fix value type in filter model for number and boolean column type (#14733) @k-rajat19
|
|
93
|
-
- [DataGrid] Focus next row when the focused row is deleted (#15067) @cherniavskii
|
|
94
|
-
- [DataGrid] Remove some usages of `<Box />` and `<Badge />` (#15013) @romgrk
|
|
95
|
-
- [DataGrid] Fix number of rows to display for page size options with negative value (#14890) @kalyan90
|
|
96
|
-
- [l10n] Improve Portuguese (pt-BR) locale (#15021) @k-rajat19
|
|
104
|
+
### Charts
|
|
97
105
|
|
|
98
|
-
####
|
|
106
|
+
#### Breaking changes
|
|
99
107
|
|
|
100
|
-
|
|
108
|
+
- The `legend` prop got removed. To pass props to the legend, use `slotProps={{ legend: { ... } }}` instead. This can be automatically done with the codemod as long as the `legend` prop does not come from a destructured object — [Learn more](https://next.mui.com/x/migration/migration-charts-v7/#legend-props-propagation-✅).
|
|
101
109
|
|
|
102
|
-
-
|
|
110
|
+
- The `slots.legend` does not receive the `drawingArea` prop. You can still access your custom legend with the `useDrawingArea()` hook if your custom legend needs it.
|
|
103
111
|
|
|
104
|
-
|
|
112
|
+
- Removed or renamed multiple props from Series — [Learn more](https://next.mui.com/x/migration/migration-charts-v7/#series-properties-renaming).
|
|
105
113
|
|
|
106
|
-
|
|
114
|
+
- The `highlighted` and `faded` properties of highlightScope were deprecated in favor of `highlight` and `fade`.
|
|
115
|
+
The deprecated ones are now removed.
|
|
116
|
+
- The `xAxisKey`, `yAxisKey`, and `zAxisKey` properties got deprecated in favor of `xAxisId`, `yAxisId`, and `zAxisId`.
|
|
107
117
|
|
|
108
|
-
-
|
|
118
|
+
- The Pie Chart lost all props and renderer linked to axes because pie chart does not need cartesian axes. If you used it, you can still add them back with composition. Please consider opening an issue to share your use case with us — [Learn more](https://next.mui.com/x/migration/migration-charts-v7/#remove-pie-chart-axes).
|
|
109
119
|
|
|
110
|
-
|
|
120
|
+
#### `@mui/x-charts@8.0.0-alpha.0`
|
|
111
121
|
|
|
112
|
-
|
|
122
|
+
- [charts] Introduce `hideLegend` prop (#15277) @alexfauquette
|
|
123
|
+
- [charts] Filter items outside the drawing area for performance (#14281) @alexfauquette
|
|
124
|
+
- [charts] Fix log scale with `null` data (#15337) @alexfauquette
|
|
125
|
+
- [charts] Fix tooltip follow mouse (#15189) @alexfauquette
|
|
126
|
+
- [charts] Remove `xAxisKey`, `yAxisKey`, and `zAxisKey` series keys (#15192) @alexfauquette
|
|
127
|
+
- [charts] Remove axis from the pie chart (#15187) @alexfauquette
|
|
128
|
+
- [charts] Remove deprecated `legend` props (#15081) @alexfauquette
|
|
129
|
+
- [charts] Remove deprecated highlight properties (#15191) @alexfauquette
|
|
130
|
+
- [charts] Update Popper position outside of React (#15003) @alexfauquette
|
|
131
|
+
- [charts] Improve the performance of the `getSymbol` method (#15233) @romgrk
|
|
113
132
|
|
|
114
|
-
- [
|
|
115
|
-
- [pickers] Fix `DigitalClock` time options on a `DST` switch day (#15092) @LukasTy
|
|
133
|
+
#### `@mui/x-charts-pro@8.0.0-alpha.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
116
134
|
|
|
117
|
-
|
|
135
|
+
Same changes as in `@mui/x-charts@8.0.0-alpha.0`.
|
|
118
136
|
|
|
119
|
-
|
|
137
|
+
### Tree View
|
|
120
138
|
|
|
121
|
-
|
|
139
|
+
#### Breaking changes
|
|
122
140
|
|
|
123
|
-
|
|
141
|
+
- The `ContentComponent` or `ContentProps` props of the `<TreeItem />` component have been removed in favor of the new `slots`, `slotProps` props and of the `useTreeItem` hook — [Learn more](https://next.mui.com/x/migration/migration-tree-view-v7/#new-api-to-customize-the-tree-item).
|
|
124
142
|
|
|
125
|
-
-
|
|
143
|
+
- The `onClick` and `onMouseDown` callbacks of the Tree Item component are now passed to the root element instead of the content — [Learn more](https://next.mui.com/x/migration/migration-tree-view-v7/#behavior-change-on-the-onclick-and-onmousedown-props-of-treeitem).
|
|
126
144
|
|
|
127
|
-
|
|
145
|
+
- Rename the `<TreeItem2 />` component (and related utils) — [Learn more](https://next.mui.com/x/migration/migration-tree-view-v7/#✅-rename-the-treeitem2-and-related-utils).
|
|
128
146
|
|
|
129
|
-
|
|
147
|
+
- The `<TreeView />` component has been renamed `<SimpleTreeView />` which has exactly the same API — [Learn more](https://next.mui.com/x/migration/migration-tree-view-v7/#✅-use-simple-tree-view-instead-of-tree-view).
|
|
130
148
|
|
|
131
|
-
|
|
149
|
+
- The indentation of nested Tree Items is now applied on the content of the element — [Learn more](https://next.mui.com/x/migration/migration-tree-view-v7/#apply-the-indentation-on-the-item-content-instead-of-its-parents-group).
|
|
132
150
|
|
|
133
|
-
#### `@mui/x-tree-view@
|
|
151
|
+
#### `@mui/x-tree-view@8.0.0-alpha.0`
|
|
134
152
|
|
|
135
|
-
- [TreeView]
|
|
153
|
+
- [TreeView] Always apply the indentation on the item content instead of its parent's group (#15089) @flaviendelangle
|
|
154
|
+
- [TreeView] Automatic parents and children selection (#14899) @flaviendelangle
|
|
155
|
+
- [TreeView] Remove deprecated `TreeView` component (#15093) @flaviendelangle
|
|
156
|
+
- [TreeView] Replace `<TreeItem />` with `<TreeItem2 />` and migrate all the components and utils (#14913) @flaviendelangle
|
|
136
157
|
|
|
137
158
|
### Docs
|
|
138
159
|
|
|
139
|
-
- [docs]
|
|
160
|
+
- [docs] Add docs for rounded symbol (#15324) @GuillaumeMeheut
|
|
161
|
+
- [docs] Add migration guide for the removal of `LicenseInfo` from `@mui/x-date-pickers-pro` (#15321) @flaviendelangle
|
|
162
|
+
- [docs] Add migration guide for the first breaking changes of charts (#15276) @alexfauquette
|
|
163
|
+
- [docs] Add `PickersPopper` component to the Date Picker customization playground (#15305) @LukasTy
|
|
164
|
+
- [docs] Add v8 to supported releases table (#15384) @joserodolfofreitas
|
|
165
|
+
- [docs] Apply the new DX to the Button Field demos (#14860) @flaviendelangle
|
|
166
|
+
- [docs] Apply the new DX to the `Autocomplete` Field demo (#15165) @flaviendelangle
|
|
167
|
+
- [docs] Cleanup the pickers migration guide (#15310) @flaviendelangle
|
|
168
|
+
- [docs] Copyedit the Charts Getting Started sequence (#14962) @samuelsycamore
|
|
169
|
+
- [docs] Create Pickers masked field recipe (#13515) @flaviendelangle
|
|
170
|
+
- [docs] Fix `applyDomain` docs for the charts (#15332) @JCQuintas
|
|
171
|
+
- [docs] Fix link to private notion page (#15396) @michelengelen
|
|
172
|
+
- [docs] Fix missing punctuation on descriptions (#15229) @oliviertassinari
|
|
173
|
+
- [docs] Fix peer dependency range (#15281) @oliviertassinari
|
|
174
|
+
- [docs] Fix small Tree View typo (#15390) @oliviertassinari
|
|
175
|
+
- [docs] Fix the `AdapterMomentHijri` doc section (#15312) @flaviendelangle
|
|
176
|
+
- [docs] Replace the Tree Item anatomy images (#15066) @noraleonte
|
|
177
|
+
- [docs] Start v8 migration guides (#15096) @MBilalShafi
|
|
178
|
+
- [docs] Subdivide and reorganize navigation bar (#15014) @samuelsycamore
|
|
179
|
+
- [docs] Use `PickersTextField` in the customization playground (#15288) @LukasTy
|
|
180
|
+
- [docs] Use `next` instead of `^8.0.0` in the migration guides (#15091) @flaviendelangle
|
|
140
181
|
|
|
141
182
|
### Core
|
|
142
183
|
|
|
143
|
-
- [core] Adjust cherry-pick
|
|
144
|
-
- [core]
|
|
145
|
-
- [core]
|
|
146
|
-
- [
|
|
184
|
+
- [core] Adjust the `cherry-pick` GitHub actions (#15099) @LukasTy
|
|
185
|
+
- [core] Add `()` at the name of function name in the doc (#15075) @oliviertassinari
|
|
186
|
+
- [core] Clarify release version bump strategy (#15219) @cherniavskii
|
|
187
|
+
- [core] Fix CodeSandbox and StackBlitz for next doc-infra sync @oliviertassinari
|
|
188
|
+
- [core] Fix Vale error on `master` @oliviertassinari
|
|
189
|
+
- [core] Fix changelog reference to VoiceOver @oliviertassinari
|
|
190
|
+
- [core] Fix `tools-public.mui.com` redirection @oliviertassinari
|
|
191
|
+
- [core] Fix webpack capitalization (#15353) @oliviertassinari
|
|
192
|
+
- [core] Move `helpers` to `@mui/x-internals` package (#15188) @LukasTy
|
|
193
|
+
- [code-infra] Set renovate to automerge devDependencies (#13463) @JCQuintas
|
|
194
|
+
- [infra] Reintroduce the cherry pick workflow (#15293) @michelengelen
|
|
195
|
+
- [core] Remove duplicate title header (#15389) @oliviertassinari
|
|
196
|
+
- [release] v8 preparation (#15054) @michelengelen
|
|
197
|
+
- [test] Fix advanced list view regression test snapshot (#15260) @KenanYusuf
|
|
147
198
|
|
|
148
199
|
## 7.21.0
|
|
149
200
|
|
|
@@ -211,7 +262,7 @@ Same changes as in `@mui/x-charts@7.21.0`.
|
|
|
211
262
|
|
|
212
263
|
#### `@mui/x-tree-view@7.21.0`
|
|
213
264
|
|
|
214
|
-
- [TreeView] Fix `alpha` usage with CSS variables (#14969) @wangkailang
|
|
265
|
+
- [TreeView] Fix `alpha()` usage with CSS variables (#14969) @wangkailang
|
|
215
266
|
- [TreeView] Fix usage of the `aria-selected` attribute (#14991) @flaviendelangle
|
|
216
267
|
- [TreeView] Fix hydration error (#15002) @flaviendelangle
|
|
217
268
|
|
|
@@ -431,7 +482,7 @@ Same changes as in `@mui/x-charts@7.19.0`.
|
|
|
431
482
|
- [code-infra] Remove custom playwright installation steps (#14728) @Janpot
|
|
432
483
|
- [code-infra] Replace or remove all instances of `e` identifier (#14724) @samuelsycamore
|
|
433
484
|
- [infra] Adds community contribution section to the changelog script (#14799) @michelengelen
|
|
434
|
-
- [infra] Fix line break in Stack
|
|
485
|
+
- [infra] Fix line break in Stack Overflow message @oliviertassinari
|
|
435
486
|
- [test] Fix `Escape` event firing event (#14797) @oliviertassinari
|
|
436
487
|
|
|
437
488
|
## 7.18.0
|
|
@@ -523,7 +574,7 @@ Same changes as in `@mui/x-charts@7.18.0`.
|
|
|
523
574
|
- [core] Fix 301 link to Next.js and git diff @oliviertassinari
|
|
524
575
|
- [core] Fix failing CI on `master` (#14644) @cherniavskii
|
|
525
576
|
- [core] Fix `package.json` repository rule @oliviertassinari
|
|
526
|
-
- [core] MUI
|
|
577
|
+
- [core] MUI X repository moved to a new location @oliviertassinari
|
|
527
578
|
- [docs-infra] Strengthen CSP (#14581) @oliviertassinari
|
|
528
579
|
- [license] Finish renaming of LicensingModel (#14615) @oliviertassinari
|
|
529
580
|
|
|
@@ -547,7 +598,7 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
|
|
|
547
598
|
|
|
548
599
|
- [DataGrid] Add "does not equal" and "does not contain" filter operators (#14489) @KenanYusuf
|
|
549
600
|
- [DataGrid] Add demo to the "Custom columns" page that does not use generator (#13695) @arminmeh
|
|
550
|
-
- [DataGrid] Fix
|
|
601
|
+
- [DataGrid] Fix VoiceOver reading the column name twice (#14482) @arminmeh
|
|
551
602
|
- [DataGrid] Fix bug in CRUD example (#14513) @michelengelen
|
|
552
603
|
- [DataGrid] Fix failing jsdom tests caused by `:has()` selectors (#14559) @KenanYusuf
|
|
553
604
|
- [DataGrid] Refactor string operator filter functions (#14564) @KenanYusuf
|
|
@@ -1003,10 +1054,9 @@ No changes since `@mui/x-tree-view@7.12.0`.
|
|
|
1003
1054
|
|
|
1004
1055
|
### Docs
|
|
1005
1056
|
|
|
1006
|
-
- [docs] Add a warning to promote the usage of `updateRows` (#14027) @MBilalShafi
|
|
1057
|
+
- [docs] Add a warning to promote the usage of `updateRows()` (#14027) @MBilalShafi
|
|
1007
1058
|
- [docs] Disable ad in `Rich Tree View-Ordering` page (#14123) @oliviertassinari
|
|
1008
1059
|
- [docs] Redesign Date and Time Pickers overview page (#13241) @noraleonte
|
|
1009
|
-
|
|
1010
1060
|
- [CHANGELOG] Polish details @oliviertassinari
|
|
1011
1061
|
- [code-infra] Use concurrency 1 in CircleCI (#14110) @JCQuintas
|
|
1012
1062
|
- [infra] Re-added the removal of `Latest Version` section (#14132) @michelengelen
|
|
@@ -1367,7 +1417,7 @@ _Jul 5, 2024_
|
|
|
1367
1417
|
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
1368
1418
|
|
|
1369
1419
|
- 🔄 Add loading overlay variants, including a skeleton loader option to the Data Grid component. See [Loading overlay docs](https://mui.com/x/react-data-grid/overlays/#loading-overlay) for more details.
|
|
1370
|
-
- 🌳 Add `selectItem` and `getItemDOMElement` methods to the TreeView component public API
|
|
1420
|
+
- 🌳 Add `selectItem()` and `getItemDOMElement()` methods to the TreeView component public API
|
|
1371
1421
|
- ⛏️ Make the `usePickersTranslations` hook public in the pickers component
|
|
1372
1422
|
- 🐞 Bugfixes
|
|
1373
1423
|
|
|
@@ -1412,7 +1462,7 @@ Same changes as in `@mui/x-date-pickers@7.9.0`.
|
|
|
1412
1462
|
|
|
1413
1463
|
#### `@mui/x-tree-view@7.9.0`
|
|
1414
1464
|
|
|
1415
|
-
- [TreeView] Add `selectItem` and `getItemDOMElement` methods to the public API (#13485) @flaviendelangle
|
|
1465
|
+
- [TreeView] Add `selectItem()` and `getItemDOMElement()` methods to the public API (#13485) @flaviendelangle
|
|
1416
1466
|
|
|
1417
1467
|
### Docs
|
|
1418
1468
|
|
|
@@ -3044,7 +3094,8 @@ Same changes as in `@mui/x-data-grid-pro@7.0.0-beta.4`.
|
|
|
3044
3094
|
```
|
|
3045
3095
|
|
|
3046
3096
|
- The headless field hooks (e.g.: `useDateField`) now returns a new prop called `enableAccessibleFieldDOMStructure`.
|
|
3047
|
-
This property is utilized to determine whether the anticipated UI is constructed using an accessible DOM structure.
|
|
3097
|
+
This property is utilized to determine whether the anticipated UI is constructed using an accessible DOM structure.
|
|
3098
|
+
Learn more about this new accessible DOM structure in the [v8 migration guide](https://next.mui.com/x/migration/migration-pickers-v7/#new-dom-structure-for-the-field).
|
|
3048
3099
|
|
|
3049
3100
|
When building a custom UI, you are most-likely only supporting one DOM structure, so you can remove `enableAccessibleFieldDOMStructure` before it is passed to the DOM:
|
|
3050
3101
|
|