@mui/x-charts-pro 8.0.0-alpha.12 → 8.0.0-alpha.14
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/BarChartPro/BarChartPro.d.ts +2 -1
- package/BarChartPro/BarChartPro.js +25 -30
- package/CHANGELOG.md +430 -0
- package/ChartContainerPro/ChartContainerPro.d.ts +1 -1
- package/ChartContainerPro/ChartContainerPro.js +1 -1
- package/ChartContainerPro/useChartContainerProProps.d.ts +1 -1
- package/ChartContainerPro/useChartContainerProProps.js +3 -1
- package/ChartDataProviderPro/ChartDataProviderPro.d.ts +1 -1
- package/ChartDataProviderPro/ChartDataProviderPro.js +3 -2
- package/ChartDataProviderPro/useChartDataProviderProProps.d.ts +1 -1
- package/FunnelChart/FunnelChart.d.ts +37 -0
- package/FunnelChart/FunnelChart.js +218 -0
- package/FunnelChart/FunnelPlot.d.ts +16 -0
- package/FunnelChart/FunnelPlot.js +191 -0
- package/FunnelChart/FunnelSection.d.ts +15 -0
- package/FunnelChart/FunnelSection.js +62 -0
- package/FunnelChart/categoryAxis.types.d.ts +24 -0
- package/FunnelChart/categoryAxis.types.js +5 -0
- package/FunnelChart/funnel.types.d.ts +124 -0
- package/FunnelChart/funnel.types.js +5 -0
- package/FunnelChart/funnelPlotSlots.types.d.ts +20 -0
- package/FunnelChart/funnelPlotSlots.types.js +5 -0
- package/FunnelChart/funnelSectionClasses.d.ts +13 -0
- package/FunnelChart/funnelSectionClasses.js +28 -0
- package/FunnelChart/funnelSlots.types.d.ts +19 -0
- package/FunnelChart/funnelSlots.types.js +5 -0
- package/FunnelChart/funnelStepCurve.d.ts +4 -0
- package/FunnelChart/funnelStepCurve.js +74 -0
- package/FunnelChart/index.d.ts +7 -0
- package/FunnelChart/index.js +59 -0
- package/FunnelChart/labelUtils.d.ts +42 -0
- package/FunnelChart/labelUtils.js +174 -0
- package/FunnelChart/seriesConfig/extremums.d.ts +3 -0
- package/FunnelChart/seriesConfig/extremums.js +50 -0
- package/FunnelChart/seriesConfig/getColor.d.ts +3 -0
- package/FunnelChart/seriesConfig/getColor.js +10 -0
- package/FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/FunnelChart/seriesConfig/getSeriesWithDefaultValues.js +18 -0
- package/FunnelChart/seriesConfig/index.d.ts +2 -0
- package/FunnelChart/seriesConfig/index.js +22 -0
- package/FunnelChart/seriesConfig/legend.d.ts +3 -0
- package/FunnelChart/seriesConfig/legend.js +31 -0
- package/FunnelChart/seriesConfig/seriesProcessor.d.ts +3 -0
- package/FunnelChart/seriesConfig/seriesProcessor.js +96 -0
- package/FunnelChart/seriesConfig/tooltip.d.ts +3 -0
- package/FunnelChart/seriesConfig/tooltip.js +36 -0
- package/FunnelChart/useFunnelChartProps.d.ts +30 -0
- package/FunnelChart/useFunnelChartProps.js +168 -0
- package/Heatmap/Heatmap.d.ts +5 -4
- package/Heatmap/Heatmap.js +37 -52
- package/Heatmap/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/Heatmap/seriesConfig/getSeriesWithDefaultValues.js +15 -0
- package/Heatmap/seriesConfig/index.js +3 -1
- package/LineChartPro/LineChartPro.d.ts +2 -1
- package/LineChartPro/LineChartPro.js +25 -30
- package/ScatterChartPro/ScatterChartPro.js +25 -30
- package/esm/BarChartPro/BarChartPro.d.ts +2 -1
- package/esm/BarChartPro/BarChartPro.js +25 -30
- package/esm/ChartContainerPro/ChartContainerPro.d.ts +1 -1
- package/esm/ChartContainerPro/ChartContainerPro.js +1 -1
- package/esm/ChartContainerPro/useChartContainerProProps.d.ts +1 -1
- package/esm/ChartContainerPro/useChartContainerProProps.js +3 -1
- package/esm/ChartDataProviderPro/ChartDataProviderPro.d.ts +1 -1
- package/esm/ChartDataProviderPro/ChartDataProviderPro.js +3 -2
- package/esm/ChartDataProviderPro/useChartDataProviderProProps.d.ts +1 -1
- package/esm/FunnelChart/FunnelChart.d.ts +37 -0
- package/esm/FunnelChart/FunnelChart.js +212 -0
- package/esm/FunnelChart/FunnelPlot.d.ts +16 -0
- package/esm/FunnelChart/FunnelPlot.js +184 -0
- package/esm/FunnelChart/FunnelSection.d.ts +15 -0
- package/esm/FunnelChart/FunnelSection.js +56 -0
- package/esm/FunnelChart/categoryAxis.types.d.ts +24 -0
- package/esm/FunnelChart/categoryAxis.types.js +1 -0
- package/esm/FunnelChart/funnel.types.d.ts +124 -0
- package/esm/FunnelChart/funnel.types.js +1 -0
- package/esm/FunnelChart/funnelPlotSlots.types.d.ts +20 -0
- package/esm/FunnelChart/funnelPlotSlots.types.js +1 -0
- package/esm/FunnelChart/funnelSectionClasses.d.ts +13 -0
- package/esm/FunnelChart/funnelSectionClasses.js +20 -0
- package/esm/FunnelChart/funnelSlots.types.d.ts +19 -0
- package/esm/FunnelChart/funnelSlots.types.js +1 -0
- package/esm/FunnelChart/funnelStepCurve.d.ts +4 -0
- package/esm/FunnelChart/funnelStepCurve.js +67 -0
- package/esm/FunnelChart/index.d.ts +7 -0
- package/esm/FunnelChart/index.js +5 -0
- package/esm/FunnelChart/labelUtils.d.ts +42 -0
- package/esm/FunnelChart/labelUtils.js +166 -0
- package/esm/FunnelChart/seriesConfig/extremums.d.ts +3 -0
- package/esm/FunnelChart/seriesConfig/extremums.js +42 -0
- package/esm/FunnelChart/seriesConfig/getColor.d.ts +3 -0
- package/esm/FunnelChart/seriesConfig/getColor.js +4 -0
- package/esm/FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/esm/FunnelChart/seriesConfig/getSeriesWithDefaultValues.js +11 -0
- package/esm/FunnelChart/seriesConfig/index.d.ts +2 -0
- package/esm/FunnelChart/seriesConfig/index.js +15 -0
- package/esm/FunnelChart/seriesConfig/legend.d.ts +3 -0
- package/esm/FunnelChart/seriesConfig/legend.js +25 -0
- package/esm/FunnelChart/seriesConfig/seriesProcessor.d.ts +3 -0
- package/esm/FunnelChart/seriesConfig/seriesProcessor.js +89 -0
- package/esm/FunnelChart/seriesConfig/tooltip.d.ts +3 -0
- package/esm/FunnelChart/seriesConfig/tooltip.js +29 -0
- package/esm/FunnelChart/useFunnelChartProps.d.ts +30 -0
- package/esm/FunnelChart/useFunnelChartProps.js +161 -0
- package/esm/Heatmap/Heatmap.d.ts +5 -4
- package/esm/Heatmap/Heatmap.js +37 -52
- package/esm/Heatmap/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/esm/Heatmap/seriesConfig/getSeriesWithDefaultValues.js +8 -0
- package/esm/Heatmap/seriesConfig/index.js +3 -1
- package/esm/LineChartPro/LineChartPro.d.ts +2 -1
- package/esm/LineChartPro/LineChartPro.js +25 -30
- package/esm/ScatterChartPro/ScatterChartPro.js +25 -30
- package/esm/hooks/useFunnelSeries.d.ts +33 -0
- package/esm/hooks/useFunnelSeries.js +42 -0
- package/esm/index.d.ts +3 -1
- package/esm/index.js +4 -2
- package/esm/internals/plugins/allPlugins.d.ts +3 -3
- package/esm/internals/plugins/allPlugins.js +2 -2
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.js +63 -12
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +26 -24
- package/esm/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +12 -3
- package/esm/internals/utils/releaseInfo.js +1 -1
- package/esm/models/seriesType/heatmap.d.ts +2 -2
- package/esm/typeOverloads/modules.d.ts +13 -2
- package/hooks/useFunnelSeries.d.ts +33 -0
- package/hooks/useFunnelSeries.js +48 -0
- package/index.d.ts +3 -1
- package/index.js +23 -1
- package/internals/plugins/allPlugins.d.ts +3 -3
- package/internals/plugins/allPlugins.js +1 -1
- package/internals/plugins/useChartProZoom/useChartProZoom.js +63 -12
- package/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +26 -24
- package/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +12 -3
- package/internals/utils/releaseInfo.js +1 -1
- package/models/seriesType/heatmap.d.ts +2 -2
- package/modern/BarChartPro/BarChartPro.d.ts +2 -1
- package/modern/BarChartPro/BarChartPro.js +25 -30
- package/modern/ChartContainerPro/ChartContainerPro.d.ts +1 -1
- package/modern/ChartContainerPro/ChartContainerPro.js +1 -1
- package/modern/ChartContainerPro/useChartContainerProProps.d.ts +1 -1
- package/modern/ChartContainerPro/useChartContainerProProps.js +3 -1
- package/modern/ChartDataProviderPro/ChartDataProviderPro.d.ts +1 -1
- package/modern/ChartDataProviderPro/ChartDataProviderPro.js +3 -2
- package/modern/ChartDataProviderPro/useChartDataProviderProProps.d.ts +1 -1
- package/modern/FunnelChart/FunnelChart.d.ts +37 -0
- package/modern/FunnelChart/FunnelChart.js +212 -0
- package/modern/FunnelChart/FunnelPlot.d.ts +16 -0
- package/modern/FunnelChart/FunnelPlot.js +184 -0
- package/modern/FunnelChart/FunnelSection.d.ts +15 -0
- package/modern/FunnelChart/FunnelSection.js +56 -0
- package/modern/FunnelChart/categoryAxis.types.d.ts +24 -0
- package/modern/FunnelChart/categoryAxis.types.js +1 -0
- package/modern/FunnelChart/funnel.types.d.ts +124 -0
- package/modern/FunnelChart/funnel.types.js +1 -0
- package/modern/FunnelChart/funnelPlotSlots.types.d.ts +20 -0
- package/modern/FunnelChart/funnelPlotSlots.types.js +1 -0
- package/modern/FunnelChart/funnelSectionClasses.d.ts +13 -0
- package/modern/FunnelChart/funnelSectionClasses.js +20 -0
- package/modern/FunnelChart/funnelSlots.types.d.ts +19 -0
- package/modern/FunnelChart/funnelSlots.types.js +1 -0
- package/modern/FunnelChart/funnelStepCurve.d.ts +4 -0
- package/modern/FunnelChart/funnelStepCurve.js +67 -0
- package/modern/FunnelChart/index.d.ts +7 -0
- package/modern/FunnelChart/index.js +5 -0
- package/modern/FunnelChart/labelUtils.d.ts +42 -0
- package/modern/FunnelChart/labelUtils.js +166 -0
- package/modern/FunnelChart/seriesConfig/extremums.d.ts +3 -0
- package/modern/FunnelChart/seriesConfig/extremums.js +42 -0
- package/modern/FunnelChart/seriesConfig/getColor.d.ts +3 -0
- package/modern/FunnelChart/seriesConfig/getColor.js +4 -0
- package/modern/FunnelChart/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/modern/FunnelChart/seriesConfig/getSeriesWithDefaultValues.js +11 -0
- package/modern/FunnelChart/seriesConfig/index.d.ts +2 -0
- package/modern/FunnelChart/seriesConfig/index.js +15 -0
- package/modern/FunnelChart/seriesConfig/legend.d.ts +3 -0
- package/modern/FunnelChart/seriesConfig/legend.js +25 -0
- package/modern/FunnelChart/seriesConfig/seriesProcessor.d.ts +3 -0
- package/modern/FunnelChart/seriesConfig/seriesProcessor.js +89 -0
- package/modern/FunnelChart/seriesConfig/tooltip.d.ts +3 -0
- package/modern/FunnelChart/seriesConfig/tooltip.js +29 -0
- package/modern/FunnelChart/useFunnelChartProps.d.ts +30 -0
- package/modern/FunnelChart/useFunnelChartProps.js +161 -0
- package/modern/Heatmap/Heatmap.d.ts +5 -4
- package/modern/Heatmap/Heatmap.js +37 -52
- package/modern/Heatmap/seriesConfig/getSeriesWithDefaultValues.d.ts +3 -0
- package/modern/Heatmap/seriesConfig/getSeriesWithDefaultValues.js +8 -0
- package/modern/Heatmap/seriesConfig/index.js +3 -1
- package/modern/LineChartPro/LineChartPro.d.ts +2 -1
- package/modern/LineChartPro/LineChartPro.js +25 -30
- package/modern/ScatterChartPro/ScatterChartPro.js +25 -30
- package/modern/hooks/useFunnelSeries.d.ts +33 -0
- package/modern/hooks/useFunnelSeries.js +42 -0
- package/modern/index.d.ts +3 -1
- package/modern/index.js +4 -2
- package/modern/internals/plugins/allPlugins.d.ts +3 -3
- package/modern/internals/plugins/allPlugins.js +2 -2
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.js +63 -12
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.selectors.d.ts +26 -24
- package/modern/internals/plugins/useChartProZoom/useChartProZoom.types.d.ts +12 -3
- package/modern/internals/utils/releaseInfo.js +1 -1
- package/modern/models/seriesType/heatmap.d.ts +2 -2
- package/modern/typeOverloads/modules.d.ts +13 -2
- package/package.json +5 -5
- package/tsconfig.build.tsbuildinfo +1 -1
- package/typeOverloads/modules.d.ts +13 -2
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
2
|
import { BarChartProps } from '@mui/x-charts/BarChart';
|
|
3
3
|
import { ChartContainerProProps } from "../ChartContainerPro/index.js";
|
|
4
|
-
|
|
4
|
+
import { BarChartProPluginsSignatures } from "./BarChartPro.plugins.js";
|
|
5
|
+
export interface BarChartProProps extends Omit<BarChartProps, 'apiRef'>, Omit<ChartContainerProProps<'bar', BarChartProPluginsSignatures>, 'series' | 'plugins' | 'seriesConfig'> {}
|
|
5
6
|
/**
|
|
6
7
|
* Demos:
|
|
7
8
|
*
|
|
@@ -27,7 +27,7 @@ var _useChartContainerProProps = require("../ChartContainerPro/useChartContainer
|
|
|
27
27
|
var _ChartDataProviderPro = require("../ChartDataProviderPro");
|
|
28
28
|
var _BarChartPro = require("./BarChartPro.plugins");
|
|
29
29
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
30
|
-
const _excluded = ["initialZoom", "onZoomChange", "apiRef"];
|
|
30
|
+
const _excluded = ["initialZoom", "zoomData", "onZoomChange", "apiRef"];
|
|
31
31
|
function BarChartPlotZoom(props) {
|
|
32
32
|
const isInteracting = (0, _zoom.useIsZoomInteracting)();
|
|
33
33
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(_BarChart.BarPlot, (0, _extends2.default)({}, props, {
|
|
@@ -91,6 +91,7 @@ const BarChartPro = exports.BarChartPro = /*#__PURE__*/React.forwardRef(function
|
|
|
91
91
|
});
|
|
92
92
|
const {
|
|
93
93
|
initialZoom,
|
|
94
|
+
zoomData,
|
|
94
95
|
onZoomChange,
|
|
95
96
|
apiRef
|
|
96
97
|
} = props,
|
|
@@ -113,6 +114,7 @@ const BarChartPro = exports.BarChartPro = /*#__PURE__*/React.forwardRef(function
|
|
|
113
114
|
chartsSurfaceProps
|
|
114
115
|
} = (0, _useChartContainerProProps.useChartContainerProProps)((0, _extends2.default)({}, chartContainerProps, {
|
|
115
116
|
initialZoom,
|
|
117
|
+
zoomData,
|
|
116
118
|
onZoomChange,
|
|
117
119
|
apiRef,
|
|
118
120
|
plugins: _BarChartPro.BAR_CHART_PRO_PLUGINS
|
|
@@ -160,12 +162,6 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
160
162
|
* Defines the border radius of the bar element.
|
|
161
163
|
*/
|
|
162
164
|
borderRadius: _propTypes.default.number,
|
|
163
|
-
/**
|
|
164
|
-
* Indicate which axis to display the bottom of the charts.
|
|
165
|
-
* Can be a string (the id of the axis) or an object `ChartsXAxisProps`.
|
|
166
|
-
* @default xAxisIds[0] The id of the first provided axis
|
|
167
|
-
*/
|
|
168
|
-
bottomAxis: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.string]),
|
|
169
165
|
children: _propTypes.default.node,
|
|
170
166
|
className: _propTypes.default.string,
|
|
171
167
|
/**
|
|
@@ -214,6 +210,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
214
210
|
id: _propTypes.default.string,
|
|
215
211
|
/**
|
|
216
212
|
* The list of zoom data related to each axis.
|
|
213
|
+
* Used to initialize the zoom in a specific configuration without controlling it.
|
|
217
214
|
*/
|
|
218
215
|
initialZoom: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
219
216
|
axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
|
|
@@ -225,12 +222,6 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
225
222
|
* @default 'vertical'
|
|
226
223
|
*/
|
|
227
224
|
layout: _propTypes.default.oneOf(['horizontal', 'vertical']),
|
|
228
|
-
/**
|
|
229
|
-
* Indicate which axis to display the left of the charts.
|
|
230
|
-
* Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
|
|
231
|
-
* @default yAxisIds[0] The id of the first provided axis
|
|
232
|
-
*/
|
|
233
|
-
leftAxis: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.string]),
|
|
234
225
|
/**
|
|
235
226
|
* If `true`, a loading overlay is displayed.
|
|
236
227
|
* @default false
|
|
@@ -239,14 +230,15 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
239
230
|
/**
|
|
240
231
|
* The margin between the SVG and the drawing area.
|
|
241
232
|
* It's used for leaving some space for extra information such as the x- and y-axis or legend.
|
|
242
|
-
*
|
|
233
|
+
*
|
|
234
|
+
* Accepts a `number` to be used on all sides or an object with the optional properties: `top`, `bottom`, `left`, and `right`.
|
|
243
235
|
*/
|
|
244
|
-
margin: _propTypes.default.shape({
|
|
236
|
+
margin: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.shape({
|
|
245
237
|
bottom: _propTypes.default.number,
|
|
246
238
|
left: _propTypes.default.number,
|
|
247
239
|
right: _propTypes.default.number,
|
|
248
240
|
top: _propTypes.default.number
|
|
249
|
-
}),
|
|
241
|
+
})]),
|
|
250
242
|
/**
|
|
251
243
|
* The function called for onClick events.
|
|
252
244
|
* The second argument contains information about all line/bar elements at the current mouse position.
|
|
@@ -272,12 +264,6 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
272
264
|
* @param {ZoomData[]} zoomData Updated zoom data.
|
|
273
265
|
*/
|
|
274
266
|
onZoomChange: _propTypes.default.func,
|
|
275
|
-
/**
|
|
276
|
-
* Indicate which axis to display the right of the charts.
|
|
277
|
-
* Can be a string (the id of the axis) or an object `ChartsYAxisProps`.
|
|
278
|
-
* @default null
|
|
279
|
-
*/
|
|
280
|
-
rightAxis: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.string]),
|
|
281
267
|
/**
|
|
282
268
|
* The series to display in the bar chart.
|
|
283
269
|
* An array of [[BarSeriesType]] objects.
|
|
@@ -301,12 +287,6 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
301
287
|
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
302
288
|
theme: _propTypes.default.oneOf(['dark', 'light']),
|
|
303
289
|
title: _propTypes.default.string,
|
|
304
|
-
/**
|
|
305
|
-
* Indicate which axis to display the top of the charts.
|
|
306
|
-
* Can be a string (the id of the axis) or an object `ChartsXAxisProps`.
|
|
307
|
-
* @default null
|
|
308
|
-
*/
|
|
309
|
-
topAxis: _propTypes.default.oneOfType([_propTypes.default.object, _propTypes.default.string]),
|
|
310
290
|
/**
|
|
311
291
|
* The width of the chart in px. If not defined, it takes the width of the parent element.
|
|
312
292
|
*/
|
|
@@ -317,6 +297,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
317
297
|
* An array of [[AxisConfig]] objects.
|
|
318
298
|
*/
|
|
319
299
|
xAxis: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
300
|
+
axis: _propTypes.default.oneOf(['x']),
|
|
320
301
|
classes: _propTypes.default.object,
|
|
321
302
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
322
303
|
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
@@ -339,13 +320,15 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
339
320
|
disableTicks: _propTypes.default.bool,
|
|
340
321
|
domainLimit: _propTypes.default.oneOfType([_propTypes.default.oneOf(['nice', 'strict']), _propTypes.default.func]),
|
|
341
322
|
fill: _propTypes.default.string,
|
|
323
|
+
height: _propTypes.default.number,
|
|
342
324
|
hideTooltip: _propTypes.default.bool,
|
|
343
325
|
id: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]),
|
|
344
326
|
label: _propTypes.default.string,
|
|
345
327
|
labelStyle: _propTypes.default.object,
|
|
346
328
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
347
329
|
min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
348
|
-
|
|
330
|
+
offset: _propTypes.default.number,
|
|
331
|
+
position: _propTypes.default.oneOf(['bottom', 'none', 'top']),
|
|
349
332
|
reverse: _propTypes.default.bool,
|
|
350
333
|
scaleType: _propTypes.default.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
|
|
351
334
|
slotProps: _propTypes.default.object,
|
|
@@ -354,6 +337,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
354
337
|
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
355
338
|
tickInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.array, _propTypes.default.func]),
|
|
356
339
|
tickLabelInterval: _propTypes.default.oneOfType([_propTypes.default.oneOf(['auto']), _propTypes.default.func]),
|
|
340
|
+
tickLabelMinGap: _propTypes.default.number,
|
|
357
341
|
tickLabelPlacement: _propTypes.default.oneOf(['middle', 'tick']),
|
|
358
342
|
tickLabelStyle: _propTypes.default.object,
|
|
359
343
|
tickMaxStep: _propTypes.default.number,
|
|
@@ -378,6 +362,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
378
362
|
* An array of [[AxisConfig]] objects.
|
|
379
363
|
*/
|
|
380
364
|
yAxis: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
365
|
+
axis: _propTypes.default.oneOf(['y']),
|
|
381
366
|
classes: _propTypes.default.object,
|
|
382
367
|
colorMap: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
383
368
|
colors: _propTypes.default.arrayOf(_propTypes.default.string).isRequired,
|
|
@@ -406,7 +391,8 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
406
391
|
labelStyle: _propTypes.default.object,
|
|
407
392
|
max: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
408
393
|
min: _propTypes.default.oneOfType([_propTypes.default.instanceOf(Date), _propTypes.default.number]),
|
|
409
|
-
|
|
394
|
+
offset: _propTypes.default.number,
|
|
395
|
+
position: _propTypes.default.oneOf(['left', 'none', 'right']),
|
|
410
396
|
reverse: _propTypes.default.bool,
|
|
411
397
|
scaleType: _propTypes.default.oneOf(['band', 'linear', 'log', 'point', 'pow', 'sqrt', 'time', 'utc']),
|
|
412
398
|
slotProps: _propTypes.default.object,
|
|
@@ -423,6 +409,7 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
423
409
|
tickPlacement: _propTypes.default.oneOf(['end', 'extremities', 'middle', 'start']),
|
|
424
410
|
tickSize: _propTypes.default.number,
|
|
425
411
|
valueFormatter: _propTypes.default.func,
|
|
412
|
+
width: _propTypes.default.number,
|
|
426
413
|
zoom: _propTypes.default.oneOfType([_propTypes.default.shape({
|
|
427
414
|
filterMode: _propTypes.default.oneOf(['discard', 'keep']),
|
|
428
415
|
maxEnd: _propTypes.default.number,
|
|
@@ -457,5 +444,13 @@ process.env.NODE_ENV !== "production" ? BarChartPro.propTypes = {
|
|
|
457
444
|
id: _propTypes.default.string,
|
|
458
445
|
max: _propTypes.default.number,
|
|
459
446
|
min: _propTypes.default.number
|
|
447
|
+
})),
|
|
448
|
+
/**
|
|
449
|
+
* The list of zoom data related to each axis.
|
|
450
|
+
*/
|
|
451
|
+
zoomData: _propTypes.default.arrayOf(_propTypes.default.shape({
|
|
452
|
+
axisId: _propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired,
|
|
453
|
+
end: _propTypes.default.number.isRequired,
|
|
454
|
+
start: _propTypes.default.number.isRequired
|
|
460
455
|
}))
|
|
461
456
|
} : void 0;
|
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,436 @@
|
|
|
5
5
|
All notable changes to this project will be documented in this file.
|
|
6
6
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
7
7
|
|
|
8
|
+
## 8.0.0-alpha.14
|
|
9
|
+
|
|
10
|
+
_Mar 7, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 🚀📊 New Pro Chart: It is now possible to create Funnel charts—perfect for visualizing conversions, sales pipelines and more!
|
|
15
|
+
<img width="418" alt="Screenshot 2025-01-31 at 12 22 31" src="https://github.com/user-attachments/assets/8cd26821-5f11-46bf-a9bb-34d212880a47" />
|
|
16
|
+
- 🎁 The first iteration of the radar chart is available. Features and refinements will be added in the coming weeks.
|
|
17
|
+
- 🛠️ New and improved [Toolbar component](https://next.mui.com/x/react-data-grid/components/toolbar/) for the data grid
|
|
18
|
+
- 🐞 Bugfixes
|
|
19
|
+
|
|
20
|
+
Special thanks go out to the community member for their valuable contributions:
|
|
21
|
+
@vadimka123.
|
|
22
|
+
|
|
23
|
+
Following are all team members who have contributed to this release:
|
|
24
|
+
@alexfauquette, @arminmeh, @bernardobelchior, @cherniavskii, @flaviendelangle, @JCQuintas, @KenanYusuf, @LukasTy, @michelengelen, @noraleonte, @oliviertassinari.
|
|
25
|
+
|
|
26
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
27
|
+
|
|
28
|
+
### Data Grid
|
|
29
|
+
|
|
30
|
+
#### Breaking changes
|
|
31
|
+
|
|
32
|
+
- The density selector has been removed from the toolbar. It is still possible to set the density programmatically via the `density` prop. A density selector can be added to a custom toolbar passed to `slots.toolbar`. See [Toolbar component—Settings menu](https://next.mui.com/x/react-data-grid/components/toolbar/#settings-menu) for an example.
|
|
33
|
+
- The quick filter is now shown in the toolbar by default. Use `slotProps={{ toolbar: { showQuickFilter: false } }}` to hide it.
|
|
34
|
+
- The `<GridSaveAltIcon />` icon is not exported anymore. Import `SaveAlt` from `@mui/icons-material` instead.
|
|
35
|
+
|
|
36
|
+
#### `@mui/x-data-grid@8.0.0-alpha.14`
|
|
37
|
+
|
|
38
|
+
- [DataGrid] Fix `aria-hidden` console error when scrollbar is dragged (#16829) @arminmeh
|
|
39
|
+
- [DataGrid] Fix scroll jump with dynamic row height (#16763) @cherniavskii
|
|
40
|
+
- [DataGrid] New `<Toolbar />` component (#14611) @KenanYusuf
|
|
41
|
+
- [DataGrid] Use new toolbar by default (#16814) @KenanYusuf
|
|
42
|
+
- [DataGrid] Remove the quick filtering on a given column (#16738) @vadimka123
|
|
43
|
+
|
|
44
|
+
#### `@mui/x-data-grid-pro@8.0.0-alpha.14` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
45
|
+
|
|
46
|
+
Same changes as in `@mui/x-data-grid@8.0.0-alpha.14`.
|
|
47
|
+
|
|
48
|
+
#### `@mui/x-data-grid-premium@8.0.0-alpha.14` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
49
|
+
|
|
50
|
+
Same changes as in `@mui/x-data-grid-pro@8.0.0-alpha.14`.
|
|
51
|
+
|
|
52
|
+
### Date and Time Pickers
|
|
53
|
+
|
|
54
|
+
#### Breaking changes
|
|
55
|
+
|
|
56
|
+
- All Date Time Picker variants now use Digital Clock for time editing.
|
|
57
|
+
- Stop passing invalid date to `onChange` when the date is partially filled — [Learn more](https://next.mui.com/x/migration/migration-pickers-v7/#treat-partially-filled-date-as-null-in-onchange).
|
|
58
|
+
|
|
59
|
+
#### `@mui/x-date-pickers@8.0.0-alpha.14`
|
|
60
|
+
|
|
61
|
+
- [DateTimePicker] Use Digital Clock in all component variants (#16678) @LukasTy
|
|
62
|
+
- [fields] Always use `props.value` as the source of truth when defined (#15875) @flaviendelangle
|
|
63
|
+
- [fields] Fix Fields aria relationship with `helperText` (#16821) @LukasTy
|
|
64
|
+
- [pickers] Add `TValidationProps` generic to the `PickerManager` interface (#16832) @flaviendelangle
|
|
65
|
+
- [pickers] Fix `edge` property setting in different button position cases (#16838) @LukasTy
|
|
66
|
+
- [pickers] Fix typo in JSDoc (#16831) @flaviendelangle
|
|
67
|
+
- [pickers] Refactor the files in the `usePicker` folder (#16680) @flaviendelangle
|
|
68
|
+
|
|
69
|
+
#### `@mui/x-date-pickers-pro@8.0.0-alpha.14` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
70
|
+
|
|
71
|
+
Same changes as in `@mui/x-date-pickers@8.0.0-alpha.14`.
|
|
72
|
+
|
|
73
|
+
### Charts
|
|
74
|
+
|
|
75
|
+
#### `@mui/x-charts@8.0.0-alpha.14`
|
|
76
|
+
|
|
77
|
+
- [charts] Fix `undefined` behaving differently from missing value for axis size (#16844) @bernardobelchior
|
|
78
|
+
- [charts] Fix x-axis text anchor default when language is RTL (#16836) @bernardobelchior
|
|
79
|
+
- [charts] Add Radar chart (#16406) @alexfauquette
|
|
80
|
+
- [charts] Move series default color generation in the series config (#16752) @alexfauquette
|
|
81
|
+
- [charts] Render axis title within axis size (#16730) @bernardobelchior
|
|
82
|
+
- [charts] Split `defaultizeAxis` function into two (#16745) @bernardobelchior
|
|
83
|
+
- [charts] Warn if axes data don't have enough elements (#16830) @alexfauquette
|
|
84
|
+
- [charts] XAxis: Add defaults for `textAnchor` and `dominantBaseline` based on `angle` (#16817) @bernardobelchior
|
|
85
|
+
|
|
86
|
+
#### `@mui/x-charts-pro@8.0.0-alpha.14` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
87
|
+
|
|
88
|
+
Same changes as in `@mui/x-charts@8.0.0-alpha.14`, plus:
|
|
89
|
+
|
|
90
|
+
- [charts] Add Funnel chart (#14804) @JCQuintas
|
|
91
|
+
|
|
92
|
+
### Tree View
|
|
93
|
+
|
|
94
|
+
#### Breaking changes
|
|
95
|
+
|
|
96
|
+
- The `selectItem` method has been renamed `setItemSelection`:
|
|
97
|
+
|
|
98
|
+
```diff
|
|
99
|
+
const { publicAPI } = useTreeItemUtils();
|
|
100
|
+
|
|
101
|
+
const handleSelectItem() {
|
|
102
|
+
- publicAPI.selectItem({ event, itemId: props.itemId, shouldBeSelected: true })
|
|
103
|
+
+ publicAPI.setItemSelection({ event, itemId: props.itemId, shouldBeSelected: true })
|
|
104
|
+
}
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
- The `setItemExpansion` method now receives a single object instead of a list of parameters:
|
|
108
|
+
|
|
109
|
+
```diff
|
|
110
|
+
const { publicAPI } = useTreeItemUtils();
|
|
111
|
+
|
|
112
|
+
const handleExpandItem() {
|
|
113
|
+
- publicAPI.setItemExpansion(event, props.itemId, true)
|
|
114
|
+
+ publicAPI.setItemExpansion({ event, itemId: props.itemId, shouldBeExpanded: true })
|
|
115
|
+
}
|
|
116
|
+
```
|
|
117
|
+
|
|
118
|
+
#### `@mui/x-tree-view@8.0.0-alpha.14`
|
|
119
|
+
|
|
120
|
+
- [TreeView] Clean the expansion and selection API methods (#16795) @flaviendelangle
|
|
121
|
+
|
|
122
|
+
#### `@mui/x-tree-view-pro@8.0.0-alpha.14` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
123
|
+
|
|
124
|
+
Same changes as in `@mui/x-tree-view@8.0.0-alpha.14`.
|
|
125
|
+
|
|
126
|
+
### Docs
|
|
127
|
+
|
|
128
|
+
- [docs] Fix padding package install on mobile (#16794) @oliviertassinari
|
|
129
|
+
- [docs] Typo fixes (#16835) @alexfauquette
|
|
130
|
+
|
|
131
|
+
### Core
|
|
132
|
+
|
|
133
|
+
- [code-infra] Fix console warning in telemetry package (#16816) @JCQuintas
|
|
134
|
+
- [code-infra] Split date-picker test files (#16825) @JCQuintas
|
|
135
|
+
- [infra] Replace PR label check workflow with reusable version (#16762) @michelengelen
|
|
136
|
+
- [infra] Update label in priority-support issue template (#16767) @michelengelen
|
|
137
|
+
- [test] Add timeout to flaky screenshot tests (#16852) @LukasTy
|
|
138
|
+
|
|
139
|
+
## 8.0.0-alpha.13
|
|
140
|
+
|
|
141
|
+
_Feb 28, 2025_
|
|
142
|
+
|
|
143
|
+
We'd like to offer a big thanks to the 19 contributors who made this release possible. Here are some highlights ✨:
|
|
144
|
+
|
|
145
|
+
- 📊 Decouple `margin` and `axis-size`. A new API to support multiple axes (#16418) @JCQuintas
|
|
146
|
+
- 🗺️ Added Bangla (bn-BD) locale
|
|
147
|
+
- 🗺️ Improve Russian (ru-RU) and Hungarian (hu-HU) locale on the Data Grid
|
|
148
|
+
|
|
149
|
+
Special thanks go out to the community members for their contributions:
|
|
150
|
+
@denpiligrim, @lhilgert9, @noherczeg, @officialkidmax, @pcorpet.
|
|
151
|
+
Following are all team members who have contributed to this release:
|
|
152
|
+
@alexfauquette, @arminmeh, @bernardobelchior, @cherniavskii, @flaviendelangle, @hasdfa, @Janpot, @JCQuintas, @KenanYusuf, @LukasTy, @michelengelen, @MBilalShafi, @oliviertassinari, @romgrk.
|
|
153
|
+
|
|
154
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
155
|
+
|
|
156
|
+
### Data Grid
|
|
157
|
+
|
|
158
|
+
#### Breaking changes
|
|
159
|
+
|
|
160
|
+
- The `slots.baseFormControl` component was removed.
|
|
161
|
+
|
|
162
|
+
- The "Reset" button in the column visibility panel now resets to the initial column visibility model. Previously it was reset to the model that was active at the time the panel was opened. The reset behavior follows these rules:
|
|
163
|
+
|
|
164
|
+
1. If an initial `columnVisibilityModel` is provided, it resets to that model.
|
|
165
|
+
2. If a controlled `columnVisibilityModel` is provided, it resets to the first model value.
|
|
166
|
+
3. When the columns are updated (via the `columns` prop or `updateColumns()` API method), the reset reference point updates to the current `columnVisibilityModel`.
|
|
167
|
+
|
|
168
|
+
To revert to the previous behavior, provide a custom component to the `slots.columnsManagement`.
|
|
169
|
+
|
|
170
|
+
- The deprecated `LicenseInfo` export has been removed from the `@mui/x-data-grid-pro` and `@mui/x-data-grid-premium` packages.
|
|
171
|
+
You have to import it from `@mui/x-license` instead:
|
|
172
|
+
|
|
173
|
+
```diff
|
|
174
|
+
- import { LicenseInfo } from '@mui/x-data-grid-pro';
|
|
175
|
+
- import { LicenseInfo } from '@mui/x-data-grid-premium';
|
|
176
|
+
+ import { LicenseInfo } from '@mui/x-license';
|
|
177
|
+
|
|
178
|
+
LicenseInfo.setLicenseKey('YOUR_LICENSE_KEY');
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
- The row selection model has been changed from `GridRowId[]` to `{ type: 'include' | 'exclude'; ids: Set<GridRowId> }`.
|
|
182
|
+
Using `Set` allows for a more efficient row selection management.
|
|
183
|
+
The `exclude` selection type allows to select all rows except the ones in the `ids` set.
|
|
184
|
+
|
|
185
|
+
This change impacts the following props:
|
|
186
|
+
|
|
187
|
+
- `rowSelectionModel`
|
|
188
|
+
- `onRowSelectionModelChange`
|
|
189
|
+
- `initialState.rowSelectionModel`
|
|
190
|
+
|
|
191
|
+
```diff
|
|
192
|
+
- const [rowSelectionModel, setRowSelectionModel] = React.useState<GridRowSelectionModel>([]);
|
|
193
|
+
+ const [rowSelectionModel, setRowSelectionModel] = React.useState<GridRowSelectionModel>({ type: 'include', ids: new Set() });
|
|
194
|
+
```
|
|
195
|
+
|
|
196
|
+
This change also impacts the `gridRowSelectionStateSelector` selector.
|
|
197
|
+
For convenience, use the `gridRowSelectionManagerSelector` selector to handle both selection types:
|
|
198
|
+
|
|
199
|
+
```diff
|
|
200
|
+
- const rowSelection = gridRowSelectionStateSelector(apiRef);
|
|
201
|
+
- const isRowSelected = rowSelection.includes(rowId);
|
|
202
|
+
+ const rowSelectionManager = gridRowSelectionManagerSelector(apiRef);
|
|
203
|
+
+ const isRowSelected = rowSelectionManager.has(rowId);
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
There is also a `createRowSelectionManager` utility function that can be used to manage the row selection:
|
|
207
|
+
|
|
208
|
+
```ts
|
|
209
|
+
const rowSelectionManager = createRowSelectionManager({
|
|
210
|
+
type: 'include',
|
|
211
|
+
ids: new Set(),
|
|
212
|
+
});
|
|
213
|
+
rowSelectionManager.select(rowId);
|
|
214
|
+
rowSelectionManager.unselect(rowId);
|
|
215
|
+
rowSelectionManager.has(rowId);
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
- The `selectedIdsLookupSelector` selector has been removed. Use the `gridRowSelectionManagerSelector` or `gridRowSelectionStateSelector` selectors instead.
|
|
219
|
+
- The `selectedGridRowsSelector` has been renamed to `gridRowSelectionIdsSelector`.
|
|
220
|
+
- The `selectedGridRowsCountSelector` has been renamed to `gridRowSelectionCountSelector`.
|
|
221
|
+
|
|
222
|
+
- The data source feature and its related props are now stable.
|
|
223
|
+
|
|
224
|
+
```diff
|
|
225
|
+
<DataGridPro
|
|
226
|
+
- unstable_dataSource={dataSource}
|
|
227
|
+
- unstable_dataSourceCache={cache}
|
|
228
|
+
- unstable_lazyLoading
|
|
229
|
+
- unstable_lazyLoadingRequestThrottleMs={100}
|
|
230
|
+
+ dataSource={dataSource}
|
|
231
|
+
+ dataSourceCache={cache}
|
|
232
|
+
+ lazyLoading
|
|
233
|
+
+ lazyLoadingRequestThrottleMs={100}
|
|
234
|
+
/>
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
- The data source API is now stable.
|
|
238
|
+
|
|
239
|
+
```diff
|
|
240
|
+
- apiRef.current.unstable_dataSource.getRows()
|
|
241
|
+
+ apiRef.current.dataSource.getRows()
|
|
242
|
+
```
|
|
243
|
+
|
|
244
|
+
- The signature of `unstable_onDataSourceError()` has been updated to support future use-cases.
|
|
245
|
+
|
|
246
|
+
```diff
|
|
247
|
+
<DataGrid
|
|
248
|
+
- unstable_onDataSourceError={(error: Error, params: GridGetRowsParams) => {
|
|
249
|
+
- if (params.filterModel) {
|
|
250
|
+
- // do something
|
|
251
|
+
- }
|
|
252
|
+
- }}
|
|
253
|
+
+ unstable_onDataSourceError={(error: GridGetRowsError | GridUpdateRowError) => {
|
|
254
|
+
+ if (error instanceof GridGetRowsError && error.params.filterModel) {
|
|
255
|
+
+ // do something
|
|
256
|
+
+ }
|
|
257
|
+
+ }}
|
|
258
|
+
/>
|
|
259
|
+
```
|
|
260
|
+
|
|
261
|
+
- Fix the type of the `GridSortModel` to allow readonly arrays.
|
|
262
|
+
|
|
263
|
+
- `GridSortItem` interface is not exported anymore.
|
|
264
|
+
|
|
265
|
+
- The `showToolbar` prop is now required to display the toolbar.
|
|
266
|
+
|
|
267
|
+
It is no longer necessary to pass `GridToolbar` as a slot to display the default toolbar.
|
|
268
|
+
|
|
269
|
+
```diff
|
|
270
|
+
<DataGrid
|
|
271
|
+
+ showToolbar
|
|
272
|
+
- slots={{
|
|
273
|
+
- toolbar: GridToolbar,
|
|
274
|
+
- }}
|
|
275
|
+
/>
|
|
276
|
+
```
|
|
277
|
+
|
|
278
|
+
#### `@mui/x-data-grid@8.0.0-alpha.13`
|
|
279
|
+
|
|
280
|
+
- [DataGrid] Add `showToolbar` prop to enable default toolbar (#16687) @KenanYusuf
|
|
281
|
+
- [DataGrid] Column Visibility: Update "Reset" button behavior (#16626) @MBilalShafi
|
|
282
|
+
- [DataGrid] Column management design updates (#16630) @KenanYusuf
|
|
283
|
+
- [DataGrid] Fix `showColumnVerticalBorder` prop (#16715) @KenanYusuf
|
|
284
|
+
- [DataGrid] Fix scrollbar overlapping cells on mount (#16639) @KenanYusuf
|
|
285
|
+
- [DataGrid] Fix: base `Select` menuprops `onClose()` (#16643) @romgrk
|
|
286
|
+
- [DataGrid] Make `GridSortItem` internal (#16732) @arminmeh
|
|
287
|
+
- [DataGrid] Make data source stable (#16710) @MBilalShafi
|
|
288
|
+
- [DataGrid] Reshape row selection model (#15651) @cherniavskii
|
|
289
|
+
- [DataGrid] Replace `sx` prop usage with `styled()` components (#16665) @KenanYusuf
|
|
290
|
+
- [DataGrid] Refactor: create base `Autocomplete` (#16390) @romgrk
|
|
291
|
+
- [DataGrid] Refactor: remove base form control (#16634) @romgrk
|
|
292
|
+
- [DataGrid] Refactor: remove base input label & adornment (#16646) @romgrk
|
|
293
|
+
- [DataGrid] Refactor: remove material containers (#16633) @romgrk
|
|
294
|
+
- [DataGrid] Refactor: theme to CSS variables (#16588) @romgrk
|
|
295
|
+
- [DataGrid] Update the signature of the `onDataSourceError()` callback (#16718) @MBilalShafi
|
|
296
|
+
- [DataGrid] Use readonly array for the `GridSortModel` (#16627) @pcorpet
|
|
297
|
+
- [DataGrid] Fix the popper focus trap (#16736) @romgrk
|
|
298
|
+
- [l10n] Added Bangla (bn-BD) locale (#16648) @officialkidmax
|
|
299
|
+
- [l10n] Improve Hungarian (hu-HU) locale (#16578) @noherczeg
|
|
300
|
+
- [l10n] Improve Russian (ru-RU) locale (#16591) @denpiligrim
|
|
301
|
+
|
|
302
|
+
#### `@mui/x-data-grid-pro@8.0.0-alpha.13` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
303
|
+
|
|
304
|
+
Same changes as in `@mui/x-data-grid@8.0.0-alpha.13`, plus:
|
|
305
|
+
|
|
306
|
+
- [DataGridPro] Remove `LicenseInfo` reexports (#16671) @cherniavskii
|
|
307
|
+
|
|
308
|
+
#### `@mui/x-data-grid-premium@8.0.0-alpha.13` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
309
|
+
|
|
310
|
+
Same changes as in `@mui/x-data-grid-pro@8.0.0-alpha.13`, plus:
|
|
311
|
+
|
|
312
|
+
- [DataGridPremium] Use `valueGetter` to get row group keys (#16016) @cherniavskii
|
|
313
|
+
|
|
314
|
+
### Date and Time Pickers
|
|
315
|
+
|
|
316
|
+
#### Breaking changes
|
|
317
|
+
|
|
318
|
+
- The `<DateRangePicker />` now uses a `dialog` instead of a `tooltip` to render their view when used with a single input range field.
|
|
319
|
+
|
|
320
|
+
#### `@mui/x-date-pickers@8.0.0-alpha.13`
|
|
321
|
+
|
|
322
|
+
- [l10n] Added Bangla (bn-BD) locale (#16648) @officialkidmax
|
|
323
|
+
- [pickers] Clean the typing of the slots on the range pickers (#16670) @flaviendelangle
|
|
324
|
+
- [pickers] Fix Time Clock meridiem button selected styles (#16681) @LukasTy
|
|
325
|
+
- [pickers] Make the single input field the default field on range pickers (#16656) @flaviendelangle
|
|
326
|
+
- [pickers] Move the opening logic to the range fields (#16175) @flaviendelangle
|
|
327
|
+
|
|
328
|
+
#### `@mui/x-date-pickers-pro@8.0.0-alpha.13` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
329
|
+
|
|
330
|
+
Same changes as in `@mui/x-date-pickers@8.0.0-alpha.13`.
|
|
331
|
+
|
|
332
|
+
### Charts
|
|
333
|
+
|
|
334
|
+
#### Breaking changes
|
|
335
|
+
|
|
336
|
+
- Charts array inputs are now `readonly`. Allowing externally defined `as const` to be used as a prop value of the React component.
|
|
337
|
+
|
|
338
|
+
```tsx
|
|
339
|
+
const xAxis = [{ position: 'bottom' }] as const
|
|
340
|
+
<BarChart xAxis={xAxis} />
|
|
341
|
+
```
|
|
342
|
+
|
|
343
|
+
- Replace `topAxis`, `rightAxis`, `bottomAxis` and `leftAxis` props by the `position` property in the axis config.
|
|
344
|
+
If you were using them to place axis, set the `position` property to the corresponding value `'top' | 'right' | 'bottom' | 'left'`.
|
|
345
|
+
If you were disabling an axis by setting it to `null`, set its `position` to `'none'`.
|
|
346
|
+
|
|
347
|
+
```diff
|
|
348
|
+
<LineChart
|
|
349
|
+
yAxis={[
|
|
350
|
+
{
|
|
351
|
+
scaleType: 'linear',
|
|
352
|
+
+ position: 'right',
|
|
353
|
+
},
|
|
354
|
+
]}
|
|
355
|
+
series={[{ data: [1, 10, 30, 50, 70, 90, 100], label: 'linear' }]}
|
|
356
|
+
height={400}
|
|
357
|
+
- rightAxis={{}}
|
|
358
|
+
/>
|
|
359
|
+
```
|
|
360
|
+
|
|
361
|
+
- Remove `position` prop from `ChartsXAxis` and `ChartsYAxis`.
|
|
362
|
+
The `position` prop has been removed from the `ChartsXAxis` and `ChartsYAxis` components. Configure it directly in the axis config.
|
|
363
|
+
|
|
364
|
+
```diff
|
|
365
|
+
<ChartContainer
|
|
366
|
+
yAxis={[
|
|
367
|
+
{
|
|
368
|
+
id: 'my-axis',
|
|
369
|
+
+ position: 'right',
|
|
370
|
+
},
|
|
371
|
+
]}
|
|
372
|
+
>
|
|
373
|
+
- <ChartsYAxis axisId="my-axis" position="right" />
|
|
374
|
+
+ <ChartsYAxis axisId="my-axis" />
|
|
375
|
+
</ChartContainer>
|
|
376
|
+
```
|
|
377
|
+
|
|
378
|
+
- Add `minTickLabelGap` to x-axis, which allows users to define the minimum gap, in pixels, between two tick labels. The default value is 4px. Make sure to check your charts as the spacing between tick labels might have changed.
|
|
379
|
+
|
|
380
|
+
#### `@mui/x-charts@8.0.0-alpha.13`
|
|
381
|
+
|
|
382
|
+
- [charts] Accept component in `labelMarkType` (#16739) @bernardobelchior
|
|
383
|
+
- [charts] Add `minTickLabelGap` to x-axis (#16548) @bernardobelchior
|
|
384
|
+
- [charts] Add unit test for pie chart with empty series (#16663) @bernardobelchior
|
|
385
|
+
- [charts] Decouple `margin` and `axis-size` (#16418) @JCQuintas
|
|
386
|
+
- [charts] Display slider tooltip on demos (#16723) @JCQuintas
|
|
387
|
+
- [charts] Fix composition docs link (#16761) @bernardobelchior
|
|
388
|
+
- [charts] Fix default label measurement being off (#16635) @bernardobelchior
|
|
389
|
+
- [charts] Fix is highlighted memoization (#16592) @alexfauquette
|
|
390
|
+
- [charts] Fix missing `theme.shape` error in the tooltip (#16748) @alexfauquette
|
|
391
|
+
- [charts] Fix typo in error message (#16641) @JCQuintas
|
|
392
|
+
- [charts] Improve axis size docs (#16673) @JCQuintas
|
|
393
|
+
- [charts] Improve performance of rendering ticks in x-axis (#16536) @bernardobelchior
|
|
394
|
+
- [charts] Make `defaultizeAxis` function type-safe (#16642) @JCQuintas
|
|
395
|
+
- [charts] Make `series.data` readonly (#16645) @JCQuintas
|
|
396
|
+
- [charts] Migrate `ChartsUsageDemo` to TSX and removed NoSnap (#16686) @JCQuintas
|
|
397
|
+
- [charts] Prevent `position='none'` axes from rendering (#16727) @JCQuintas
|
|
398
|
+
- [charts] Make array inputs readonly (#16632) @JCQuintas
|
|
399
|
+
- [charts] Remove state initialization hack (#16520) @alexfauquette
|
|
400
|
+
- [charts] Remove redundant default axis (#16734) @bernardobelchior
|
|
401
|
+
|
|
402
|
+
#### `@mui/x-charts-pro@8.0.0-alpha.13` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
403
|
+
|
|
404
|
+
Same changes as in `@mui/x-charts@8.0.0-alpha.13`, plus:
|
|
405
|
+
|
|
406
|
+
- [charts-pro] Add back zoom control (#16550) @alexfauquette
|
|
407
|
+
|
|
408
|
+
### Tree View
|
|
409
|
+
|
|
410
|
+
#### `@mui/x-tree-view@8.0.0-alpha.13`
|
|
411
|
+
|
|
412
|
+
Internal changes.
|
|
413
|
+
|
|
414
|
+
#### `@mui/x-tree-view-pro@8.0.0-alpha.13` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
415
|
+
|
|
416
|
+
Same changes as in `@mui/x-tree-view@8.0.0-alpha.13`.
|
|
417
|
+
|
|
418
|
+
### `@mui/x-codemod@8.0.0-alpha.13`
|
|
419
|
+
|
|
420
|
+
- [codemod] Add a few Data Grid codemods (#16711) @MBilalShafi
|
|
421
|
+
- [codemod] Improve Pickers renaming codemod (#16685) @LukasTy
|
|
422
|
+
|
|
423
|
+
### Docs
|
|
424
|
+
|
|
425
|
+
- [docs] Fix charts with on bar and line pages (#16712) @alexfauquette
|
|
426
|
+
- [docs] Fix migration guide introduction for charts (#16679) @alexfauquette
|
|
427
|
+
- [docs] Fix remaining charts demos on mobile (#16728) @alexfauquette
|
|
428
|
+
- [docs] Fix scroll overflow on mobile (#16675) @oliviertassinari
|
|
429
|
+
- [docs] Improve Pickers migration page (#16682) @LukasTy
|
|
430
|
+
- [docs] Update small Pickers doc inconsistencies (#16724) @LukasTy
|
|
431
|
+
- [code-infra] Charts changes for `vitest` (#16755) @JCQuintas
|
|
432
|
+
- [code-infra] General packages changes for `vitest` (#16757) @JCQuintas
|
|
433
|
+
- [code-infra] Native Node.js ESM (#16603) @Janpot
|
|
434
|
+
- [infra] Update contributor acknowledgment wording (#16751) @michelengelen
|
|
435
|
+
- [test] Revert timeout increase for possibly slow tests (#16651) @LukasTy
|
|
436
|
+
- [x-license] Introduce usage telemetry (#13530) @hasdfa
|
|
437
|
+
|
|
8
438
|
## 8.0.0-alpha.12
|
|
9
439
|
|
|
10
440
|
_Feb 17, 2025_
|
|
@@ -27,7 +27,7 @@ type ChartContainerProComponent = <TSeries extends ChartSeriesType = ChartSeries
|
|
|
27
27
|
* xAxis={[{ data: ["A", "B"], scaleType: "band", id: "x-axis" }]}
|
|
28
28
|
* >
|
|
29
29
|
* <BarPlot />
|
|
30
|
-
* <ChartsXAxis
|
|
30
|
+
* <ChartsXAxis axisId="x-axis" />
|
|
31
31
|
* </ChartContainerPro>
|
|
32
32
|
* ```
|
|
33
33
|
*/
|
|
@@ -34,7 +34,7 @@ var _jsxRuntime = require("react/jsx-runtime");
|
|
|
34
34
|
* xAxis={[{ data: ["A", "B"], scaleType: "band", id: "x-axis" }]}
|
|
35
35
|
* >
|
|
36
36
|
* <BarPlot />
|
|
37
|
-
* <ChartsXAxis
|
|
37
|
+
* <ChartsXAxis axisId="x-axis" />
|
|
38
38
|
* </ChartContainerPro>
|
|
39
39
|
* ```
|
|
40
40
|
*/
|
|
@@ -6,4 +6,4 @@ import { AllPluginSignatures } from "../internals/plugins/allPlugins.js";
|
|
|
6
6
|
export type UseChartContainerProPropsReturnValue<TSeries extends ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[]> = Pick<UseChartContainerPropsReturnValue<TSeries, TSignatures>, 'chartsSurfaceProps' | 'children'> & {
|
|
7
7
|
chartDataProviderProProps: ChartDataProviderProps<TSeries, TSignatures>;
|
|
8
8
|
};
|
|
9
|
-
export declare const useChartContainerProProps: <TSeries extends ChartSeriesType =
|
|
9
|
+
export declare const useChartContainerProProps: <TSeries extends ChartSeriesType = ChartSeriesType, TSignatures extends readonly ChartAnyPluginSignature[] = AllPluginSignatures<TSeries>>(props: ChartContainerProProps<TSeries, TSignatures>, ref: React.Ref<SVGSVGElement>) => UseChartContainerProPropsReturnValue<TSeries, TSignatures>;
|
|
@@ -10,11 +10,12 @@ var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends")
|
|
|
10
10
|
var _objectWithoutPropertiesLoose2 = _interopRequireDefault(require("@babel/runtime/helpers/objectWithoutPropertiesLoose"));
|
|
11
11
|
var _internals = require("@mui/x-charts/internals");
|
|
12
12
|
var _allPlugins = require("../internals/plugins/allPlugins");
|
|
13
|
-
const _excluded = ["initialZoom", "onZoomChange", "plugins", "apiRef"];
|
|
13
|
+
const _excluded = ["initialZoom", "zoomData", "onZoomChange", "plugins", "apiRef"];
|
|
14
14
|
const useChartContainerProProps = (props, ref) => {
|
|
15
15
|
const _ref = props,
|
|
16
16
|
{
|
|
17
17
|
initialZoom,
|
|
18
|
+
zoomData,
|
|
18
19
|
onZoomChange,
|
|
19
20
|
plugins,
|
|
20
21
|
apiRef
|
|
@@ -27,6 +28,7 @@ const useChartContainerProProps = (props, ref) => {
|
|
|
27
28
|
} = (0, _internals.useChartContainerProps)(baseProps, ref);
|
|
28
29
|
const chartDataProviderProProps = (0, _extends2.default)({}, chartDataProviderProps, {
|
|
29
30
|
initialZoom,
|
|
31
|
+
zoomData,
|
|
30
32
|
onZoomChange,
|
|
31
33
|
apiRef,
|
|
32
34
|
plugins: plugins ?? _allPlugins.ALL_PLUGINS
|