@mui/x-data-grid-pro 8.5.3 → 8.6.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/CHANGELOG.md +107 -0
- package/DataGridPro/DataGridPro.js +1 -1
- package/components/headerFiltering/GridHeaderFilterMenu.js +0 -9
- package/esm/DataGridPro/DataGridPro.js +1 -1
- package/esm/components/headerFiltering/GridHeaderFilterMenu.js +0 -9
- package/esm/hooks/features/dataSource/index.d.ts +1 -0
- package/esm/hooks/features/dataSource/index.js +1 -0
- package/esm/hooks/features/index.d.ts +1 -1
- package/esm/hooks/features/index.js +1 -1
- package/esm/hooks/features/serverSideLazyLoader/useGridDataSourceLazyLoader.js +2 -2
- package/esm/index.js +1 -1
- package/hooks/features/dataSource/index.d.ts +1 -0
- package/hooks/features/dataSource/index.js +5 -0
- package/hooks/features/index.d.ts +1 -1
- package/hooks/features/index.js +11 -0
- package/hooks/features/serverSideLazyLoader/useGridDataSourceLazyLoader.js +2 -2
- package/index.js +1 -1
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,113 @@
|
|
|
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.6.0
|
|
9
|
+
|
|
10
|
+
_Jun 27, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to extend a big thank you to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 📊 Add export menu to charts toolbar
|
|
15
|
+
- 📅 Add `usePickerAdapter` hook to access the date adapter.
|
|
16
|
+
|
|
17
|
+
You can use the adapter in your custom components if you need them to work with multiple date libraries — [Learn more](https://mui.com/x/react-date-pickers/custom-components/#access-date-adapter).
|
|
18
|
+
- 🌎 Improve Danish (da-DK) locale
|
|
19
|
+
- 🌎 Improve German (de-DE) locale
|
|
20
|
+
|
|
21
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
22
|
+
@ShahrazH, @vadimka123
|
|
23
|
+
|
|
24
|
+
The following are all team members who have contributed to this release:
|
|
25
|
+
@arminmeh, @bernardobelchior, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi, @michelengelen, @noraleonte, @rita-codes, @sai6855
|
|
26
|
+
|
|
27
|
+
### Data Grid
|
|
28
|
+
|
|
29
|
+
#### `@mui/x-data-grid@8.6.0`
|
|
30
|
+
|
|
31
|
+
- [DataGrid] Fix `label` type in `GridActionsCellItem` type (#18175) @sai6855
|
|
32
|
+
- [DataGrid] Fix grid menu not closing when pressing escape/tab (#18300) @KenanYusuf
|
|
33
|
+
- [l10n] Improve Danish (da-DK) locale (#18428) @ShahrazH
|
|
34
|
+
- [l10n] Improve German (de-DE) locale (#18388) @omalyutin
|
|
35
|
+
|
|
36
|
+
#### `@mui/x-data-grid-pro@8.6.0` [](https://mui.com/r/x-pro-svg-link "Pro plan")
|
|
37
|
+
|
|
38
|
+
Same changes as in `@mui/x-data-grid@8.6.0`, plus:
|
|
39
|
+
|
|
40
|
+
- [DataGridPro] Fix lazy loading params calculated from rendering context (#18460) @arminmeh
|
|
41
|
+
|
|
42
|
+
#### `@mui/x-data-grid-premium@8.6.0` [](https://mui.com/r/x-premium-svg-link "Premium plan")
|
|
43
|
+
|
|
44
|
+
Same changes as in `@mui/x-data-grid-pro@8.6.0`.
|
|
45
|
+
|
|
46
|
+
### Date and Time Pickers
|
|
47
|
+
|
|
48
|
+
#### `@mui/x-date-pickers@8.6.0`
|
|
49
|
+
|
|
50
|
+
- [pickers] Add `usePickerAdapter` hook (#18457) @LukasTy
|
|
51
|
+
- [pickers] Fix to use latest `value` when updating `lastCommittedValue` in internal state (#18518) @LukasTy
|
|
52
|
+
- [pickers] Use `usePickerAdapter` hook internally instead of `useUtils` (#18465) @LukasTy
|
|
53
|
+
|
|
54
|
+
#### `@mui/x-date-pickers-pro@8.6.0` [](https://mui.com/r/x-pro-svg-link "Pro plan")
|
|
55
|
+
|
|
56
|
+
Same changes as in `@mui/x-date-pickers@8.6.0`.
|
|
57
|
+
|
|
58
|
+
### Charts
|
|
59
|
+
|
|
60
|
+
#### `@mui/x-charts@8.6.0`
|
|
61
|
+
|
|
62
|
+
- [charts] Add `data-series` to charts legend item (#18414) @bernardobelchior
|
|
63
|
+
- [charts] Add `data-series` to bar charts (#18413) @bernardobelchior
|
|
64
|
+
- [charts] Add `data-series` to elements of line chart (#18409) @bernardobelchior
|
|
65
|
+
- [charts] Add `data-series` to pie charts (#18432) @bernardobelchior
|
|
66
|
+
- [charts] Fix missing key in bar plot (#18502) @bernardobelchior
|
|
67
|
+
- [charts] Split axis utils from main file (#18517) @JCQuintas
|
|
68
|
+
- [charts] Improve touch behavior for polar axis (#18531) @JCQuintas
|
|
69
|
+
- [charts] Add `isElementInside` helper (#18530) @JCQuintas
|
|
70
|
+
|
|
71
|
+
#### `@mui/x-charts-pro@8.6.0` [](https://mui.com/r/x-pro-svg-link "Pro plan")
|
|
72
|
+
|
|
73
|
+
Same changes as in `@mui/x-charts@8.6.0`, plus:
|
|
74
|
+
|
|
75
|
+
- [charts-pro] Add export menu to charts toolbar (#18210) @bernardobelchior
|
|
76
|
+
- [charts-pro] Fix export docs mentioning tooltip instead of toolbar (#18490) @bernardobelchior
|
|
77
|
+
- [charts-pro] Fix iframe not being removed after print export (#18500) @bernardobelchior
|
|
78
|
+
|
|
79
|
+
### Tree View
|
|
80
|
+
|
|
81
|
+
#### `@mui/x-tree-view@8.6.0`
|
|
82
|
+
|
|
83
|
+
Internal changes.
|
|
84
|
+
|
|
85
|
+
#### `@mui/x-tree-view-pro@8.6.0` [](https://mui.com/r/x-pro-svg-link "Pro plan")
|
|
86
|
+
|
|
87
|
+
Same changes as in `@mui/x-tree-view@8.6.0`, plus:
|
|
88
|
+
|
|
89
|
+
- [tree view pro] Fix theme augmentation (#18437) @LukasTy
|
|
90
|
+
|
|
91
|
+
### Codemod
|
|
92
|
+
|
|
93
|
+
#### `@mui/x-codemod@8.6.0`
|
|
94
|
+
|
|
95
|
+
Internal changes.
|
|
96
|
+
|
|
97
|
+
### Docs
|
|
98
|
+
|
|
99
|
+
- [docs] Document `GridRenderContext` (#18492) @arminmeh
|
|
100
|
+
- [docs] Prevent stale rows to appear on sort and filter change in the lazy loading demo (#18461) @arminmeh
|
|
101
|
+
- [docs][pickers] Update action bar demo to use the `nextOrAccept` action (#18505) @LukasTy
|
|
102
|
+
- [docs] Update indeterminate checkbox section in migration guide (#18229) @michelengelen
|
|
103
|
+
- [docs] Data source nested pagination recipe (#14777) @MBilalShafi
|
|
104
|
+
|
|
105
|
+
### Core
|
|
106
|
+
|
|
107
|
+
- [core] Avoid json stringify whole window object (#18512) @vadimka123
|
|
108
|
+
|
|
109
|
+
### Miscellaneous
|
|
110
|
+
|
|
111
|
+
- [code-infra] Dynamically get pickers adapters dependencies versions (#18446) @JCQuintas
|
|
112
|
+
- [infra] Adjust inquirer version and usage (#18495) @michelengelen
|
|
113
|
+
- [infra] Use `String.raw` for creating the remote regex (#18462) @michelengelen
|
|
114
|
+
|
|
8
115
|
## 8.5.3
|
|
9
116
|
|
|
10
117
|
_Jun 19, 2025_
|
|
@@ -29,7 +29,7 @@ const configuration = {
|
|
|
29
29
|
useCellAggregationResult: () => null
|
|
30
30
|
}
|
|
31
31
|
};
|
|
32
|
-
const releaseInfo = "
|
|
32
|
+
const releaseInfo = "MTc1MDk3NTIwMDAwMA==";
|
|
33
33
|
const watermark = /*#__PURE__*/(0, _jsxRuntime.jsx)(_xLicense.Watermark, {
|
|
34
34
|
packageName: "x-data-grid-pro",
|
|
35
35
|
releaseInfo: releaseInfo
|
|
@@ -30,14 +30,6 @@ function GridHeaderFilterMenu({
|
|
|
30
30
|
const hideMenu = React.useCallback(() => {
|
|
31
31
|
apiRef.current.hideHeaderFilterMenu();
|
|
32
32
|
}, [apiRef]);
|
|
33
|
-
const handleListKeyDown = React.useCallback(event => {
|
|
34
|
-
if (event.key === 'Tab') {
|
|
35
|
-
event.preventDefault();
|
|
36
|
-
}
|
|
37
|
-
if (event.key === 'Escape' || event.key === 'Tab') {
|
|
38
|
-
hideMenu();
|
|
39
|
-
}
|
|
40
|
-
}, [hideMenu]);
|
|
41
33
|
if (!target) {
|
|
42
34
|
return null;
|
|
43
35
|
}
|
|
@@ -49,7 +41,6 @@ function GridHeaderFilterMenu({
|
|
|
49
41
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(rootProps.slots.baseMenuList, {
|
|
50
42
|
"aria-labelledby": labelledBy,
|
|
51
43
|
id: id,
|
|
52
|
-
onKeyDown: handleListKeyDown,
|
|
53
44
|
children: [showClearItem && [/*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseMenuItem, {
|
|
54
45
|
iconStart: /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.columnMenuClearIcon, {
|
|
55
46
|
fontSize: "small"
|
|
@@ -22,7 +22,7 @@ const configuration = {
|
|
|
22
22
|
useCellAggregationResult: () => null
|
|
23
23
|
}
|
|
24
24
|
};
|
|
25
|
-
const releaseInfo = "
|
|
25
|
+
const releaseInfo = "MTc1MDk3NTIwMDAwMA==";
|
|
26
26
|
const watermark = /*#__PURE__*/_jsx(Watermark, {
|
|
27
27
|
packageName: "x-data-grid-pro",
|
|
28
28
|
releaseInfo: releaseInfo
|
|
@@ -22,14 +22,6 @@ function GridHeaderFilterMenu({
|
|
|
22
22
|
const hideMenu = React.useCallback(() => {
|
|
23
23
|
apiRef.current.hideHeaderFilterMenu();
|
|
24
24
|
}, [apiRef]);
|
|
25
|
-
const handleListKeyDown = React.useCallback(event => {
|
|
26
|
-
if (event.key === 'Tab') {
|
|
27
|
-
event.preventDefault();
|
|
28
|
-
}
|
|
29
|
-
if (event.key === 'Escape' || event.key === 'Tab') {
|
|
30
|
-
hideMenu();
|
|
31
|
-
}
|
|
32
|
-
}, [hideMenu]);
|
|
33
25
|
if (!target) {
|
|
34
26
|
return null;
|
|
35
27
|
}
|
|
@@ -41,7 +33,6 @@ function GridHeaderFilterMenu({
|
|
|
41
33
|
children: /*#__PURE__*/_jsxs(rootProps.slots.baseMenuList, {
|
|
42
34
|
"aria-labelledby": labelledBy,
|
|
43
35
|
id: id,
|
|
44
|
-
onKeyDown: handleListKeyDown,
|
|
45
36
|
children: [showClearItem && [/*#__PURE__*/_jsx(rootProps.slots.baseMenuItem, {
|
|
46
37
|
iconStart: /*#__PURE__*/_jsx(rootProps.slots.columnMenuClearIcon, {
|
|
47
38
|
fontSize: "small"
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type GridDataSourceState } from "./models.js";
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -276,7 +276,7 @@ export const useGridDataSourceLazyLoader = (privateApiRef, props) => {
|
|
|
276
276
|
const filterModel = gridFilterModelSelector(privateApiRef);
|
|
277
277
|
const getRowsParams = {
|
|
278
278
|
start: params.firstRowIndex,
|
|
279
|
-
end: params.lastRowIndex,
|
|
279
|
+
end: params.lastRowIndex - 1,
|
|
280
280
|
sortModel,
|
|
281
281
|
filterModel
|
|
282
282
|
};
|
|
@@ -293,7 +293,7 @@ export const useGridDataSourceLazyLoader = (privateApiRef, props) => {
|
|
|
293
293
|
visibleRows: currentVisibleRows.rows,
|
|
294
294
|
range: {
|
|
295
295
|
firstRowIndex: params.firstRowIndex,
|
|
296
|
-
lastRowIndex: params.lastRowIndex
|
|
296
|
+
lastRowIndex: params.lastRowIndex - 1
|
|
297
297
|
}
|
|
298
298
|
});
|
|
299
299
|
if (!skeletonRowsSection) {
|
package/esm/index.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { type GridDataSourceState } from "./models.js";
|
package/hooks/features/index.js
CHANGED
|
@@ -68,4 +68,15 @@ Object.keys(_rowPinning).forEach(function (key) {
|
|
|
68
68
|
return _rowPinning[key];
|
|
69
69
|
}
|
|
70
70
|
});
|
|
71
|
+
});
|
|
72
|
+
var _dataSource = require("./dataSource");
|
|
73
|
+
Object.keys(_dataSource).forEach(function (key) {
|
|
74
|
+
if (key === "default" || key === "__esModule") return;
|
|
75
|
+
if (key in exports && exports[key] === _dataSource[key]) return;
|
|
76
|
+
Object.defineProperty(exports, key, {
|
|
77
|
+
enumerable: true,
|
|
78
|
+
get: function () {
|
|
79
|
+
return _dataSource[key];
|
|
80
|
+
}
|
|
81
|
+
});
|
|
71
82
|
});
|
|
@@ -284,7 +284,7 @@ const useGridDataSourceLazyLoader = (privateApiRef, props) => {
|
|
|
284
284
|
const filterModel = (0, _xDataGrid.gridFilterModelSelector)(privateApiRef);
|
|
285
285
|
const getRowsParams = {
|
|
286
286
|
start: params.firstRowIndex,
|
|
287
|
-
end: params.lastRowIndex,
|
|
287
|
+
end: params.lastRowIndex - 1,
|
|
288
288
|
sortModel,
|
|
289
289
|
filterModel
|
|
290
290
|
};
|
|
@@ -301,7 +301,7 @@ const useGridDataSourceLazyLoader = (privateApiRef, props) => {
|
|
|
301
301
|
visibleRows: currentVisibleRows.rows,
|
|
302
302
|
range: {
|
|
303
303
|
firstRowIndex: params.firstRowIndex,
|
|
304
|
-
lastRowIndex: params.lastRowIndex
|
|
304
|
+
lastRowIndex: params.lastRowIndex - 1
|
|
305
305
|
}
|
|
306
306
|
});
|
|
307
307
|
if (!skeletonRowsSection) {
|
package/index.js
CHANGED
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid-pro",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.6.0",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The Pro plan edition of the MUI X Data Grid components.",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -40,9 +40,9 @@
|
|
|
40
40
|
"@types/format-util": "^1.0.4",
|
|
41
41
|
"clsx": "^2.1.1",
|
|
42
42
|
"prop-types": "^15.8.1",
|
|
43
|
-
"@mui/x-
|
|
44
|
-
"@mui/x-
|
|
45
|
-
"@mui/x-
|
|
43
|
+
"@mui/x-data-grid": "8.6.0",
|
|
44
|
+
"@mui/x-internals": "8.6.0",
|
|
45
|
+
"@mui/x-license": "8.6.0"
|
|
46
46
|
},
|
|
47
47
|
"peerDependencies": {
|
|
48
48
|
"@emotion/react": "^11.9.0",
|