@mui/x-data-grid-premium 7.28.0 → 7.28.2
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 +92 -0
- package/esm/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +5 -9
- package/esm/utils/releaseInfo.js +1 -1
- package/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +5 -9
- package/index.js +1 -1
- package/modern/hooks/features/rowGrouping/useGridRowGroupingPreProcessors.js +5 -9
- package/modern/index.js +1 -1
- package/modern/utils/releaseInfo.js +1 -1
- package/package.json +5 -5
- package/utils/releaseInfo.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,98 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 7.28.2
|
|
7
|
+
|
|
8
|
+
_Mar 28, 2025_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 3 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🐞 Bugfixes
|
|
13
|
+
|
|
14
|
+
Team members who have contributed to this release:
|
|
15
|
+
@flaviendelangle, @LukasTy, @arminmeh.
|
|
16
|
+
|
|
17
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
18
|
+
|
|
19
|
+
### Data Grid
|
|
20
|
+
|
|
21
|
+
#### `@mui/x-data-grid@7.28.2`
|
|
22
|
+
|
|
23
|
+
- [DataGrid] Fix error caused by trying to render rows that are not in the state anymore (#17117) @arminmeh
|
|
24
|
+
|
|
25
|
+
#### `@mui/x-data-grid-pro@7.28.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
26
|
+
|
|
27
|
+
Same changes as in `@mui/x-data-grid@7.28.2`.
|
|
28
|
+
|
|
29
|
+
#### `@mui/x-data-grid-premium@7.28.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
30
|
+
|
|
31
|
+
Same changes as in `@mui/x-data-grid-pro@7.28.2`.
|
|
32
|
+
|
|
33
|
+
### Date and Time Pickers
|
|
34
|
+
|
|
35
|
+
#### `@mui/x-date-pickers@7.28.2`
|
|
36
|
+
|
|
37
|
+
- [fields] Improve the check for year in `doesSectionFormatHaveLeadingZeros` (#17112) @flaviendelangle
|
|
38
|
+
|
|
39
|
+
#### `@mui/x-date-pickers-pro@7.28.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
40
|
+
|
|
41
|
+
Same changes as in `@mui/x-date-pickers@7.28.2`.
|
|
42
|
+
|
|
43
|
+
### Core
|
|
44
|
+
|
|
45
|
+
- [code-infra] Remove `test_regressions` step from React 18 pipeline (#17109) @LukasTy
|
|
46
|
+
|
|
47
|
+
## 7.28.1
|
|
48
|
+
|
|
49
|
+
_Mar 21, 2025_
|
|
50
|
+
|
|
51
|
+
We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
|
|
52
|
+
|
|
53
|
+
- 🐞 Bugfixes
|
|
54
|
+
|
|
55
|
+
Special thanks go out to the community contributors who have helped make this release possible:
|
|
56
|
+
@jyash97, @nusr.
|
|
57
|
+
|
|
58
|
+
Following are all team members who have contributed to this release:
|
|
59
|
+
@arminmeh, @KenanYusuf.
|
|
60
|
+
|
|
61
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
62
|
+
|
|
63
|
+
### Data Grid
|
|
64
|
+
|
|
65
|
+
#### `@mui/x-data-grid@7.28.1`
|
|
66
|
+
|
|
67
|
+
- [DataGrid] Fix error while editing rows with custom id (@arminmeh) (#17050)
|
|
68
|
+
|
|
69
|
+
#### `@mui/x-data-grid-pro@7.28.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
70
|
+
|
|
71
|
+
Same changes as in `@mui/x-data-grid@7.28.1`, plus:
|
|
72
|
+
|
|
73
|
+
- [DataGridPro] Fix header select checkbox state with `checkboxSelectionVisibleOnly` and `paginationMode="server"` (@arminmeh) (#17032)
|
|
74
|
+
|
|
75
|
+
#### `@mui/x-data-grid-premium@7.28.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
76
|
+
|
|
77
|
+
Same changes as in `@mui/x-data-grid-pro@7.28.1`, plus:
|
|
78
|
+
|
|
79
|
+
- [DataGridPremium] Update column state correctly when grouping mode is updated with one grouping column (@arminmeh) (#17074)
|
|
80
|
+
|
|
81
|
+
### Tree View
|
|
82
|
+
|
|
83
|
+
#### `@mui/x-tree-view@7.28.1`
|
|
84
|
+
|
|
85
|
+
Internal changes.
|
|
86
|
+
|
|
87
|
+
#### `@mui/x-tree-view-pro@7.28.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
88
|
+
|
|
89
|
+
Same changes as in `@mui/x-tree-view@7.28.1`, plus:
|
|
90
|
+
|
|
91
|
+
- [TreeView] Allow moving an item after the last children of some other item (@jyash97) (#17065)
|
|
92
|
+
|
|
93
|
+
### Docs
|
|
94
|
+
|
|
95
|
+
- [docs] Fix Data Grid advanced list view demo (#17066) @KenanYusuf
|
|
96
|
+
- [docs] Fix custom detail panel toggle state update (@nusr) (#17018)
|
|
97
|
+
|
|
6
98
|
## 7.28.0
|
|
7
99
|
|
|
8
100
|
_Mar 17, 2025_
|
|
@@ -48,13 +48,10 @@ export const useGridRowGroupingPreProcessors = (apiRef, props) => {
|
|
|
48
48
|
const groupingColDefs = getGroupingColDefs(columnsState);
|
|
49
49
|
let newColumnFields = [];
|
|
50
50
|
const newColumnsLookup = {};
|
|
51
|
-
const prevGroupingfields = [];
|
|
52
51
|
|
|
53
52
|
// We only keep the non-grouping columns
|
|
54
53
|
columnsState.orderedFields.forEach(field => {
|
|
55
|
-
if (isGroupingColumn(field)) {
|
|
56
|
-
prevGroupingfields.push(field);
|
|
57
|
-
} else {
|
|
54
|
+
if (!isGroupingColumn(field)) {
|
|
58
55
|
newColumnFields.push(field);
|
|
59
56
|
newColumnsLookup[field] = columnsState.lookup[field];
|
|
60
57
|
}
|
|
@@ -69,11 +66,10 @@ export const useGridRowGroupingPreProcessors = (apiRef, props) => {
|
|
|
69
66
|
}
|
|
70
67
|
newColumnsLookup[groupingColDef.field] = groupingColDef;
|
|
71
68
|
});
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
69
|
+
const checkBoxFieldIndex = newColumnFields.findIndex(field => field === GRID_CHECKBOX_SELECTION_FIELD);
|
|
70
|
+
const checkBoxColumn = checkBoxFieldIndex !== -1 ? newColumnFields.splice(checkBoxFieldIndex, 1) : [];
|
|
71
|
+
newColumnFields = [...checkBoxColumn, ...groupingColDefs.map(colDef => colDef.field), ...newColumnFields];
|
|
72
|
+
columnsState.orderedFields = newColumnFields;
|
|
77
73
|
columnsState.lookup = newColumnsLookup;
|
|
78
74
|
return columnsState;
|
|
79
75
|
}, [getGroupingColDefs]);
|
package/esm/utils/releaseInfo.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTc0MzExMjgwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
|
@@ -55,13 +55,10 @@ const useGridRowGroupingPreProcessors = (apiRef, props) => {
|
|
|
55
55
|
const groupingColDefs = getGroupingColDefs(columnsState);
|
|
56
56
|
let newColumnFields = [];
|
|
57
57
|
const newColumnsLookup = {};
|
|
58
|
-
const prevGroupingfields = [];
|
|
59
58
|
|
|
60
59
|
// We only keep the non-grouping columns
|
|
61
60
|
columnsState.orderedFields.forEach(field => {
|
|
62
|
-
if ((0, _gridRowGroupingUtils.isGroupingColumn)(field)) {
|
|
63
|
-
prevGroupingfields.push(field);
|
|
64
|
-
} else {
|
|
61
|
+
if (!(0, _gridRowGroupingUtils.isGroupingColumn)(field)) {
|
|
65
62
|
newColumnFields.push(field);
|
|
66
63
|
newColumnsLookup[field] = columnsState.lookup[field];
|
|
67
64
|
}
|
|
@@ -76,11 +73,10 @@ const useGridRowGroupingPreProcessors = (apiRef, props) => {
|
|
|
76
73
|
}
|
|
77
74
|
newColumnsLookup[groupingColDef.field] = groupingColDef;
|
|
78
75
|
});
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
}
|
|
76
|
+
const checkBoxFieldIndex = newColumnFields.findIndex(field => field === _xDataGridPro.GRID_CHECKBOX_SELECTION_FIELD);
|
|
77
|
+
const checkBoxColumn = checkBoxFieldIndex !== -1 ? newColumnFields.splice(checkBoxFieldIndex, 1) : [];
|
|
78
|
+
newColumnFields = [...checkBoxColumn, ...groupingColDefs.map(colDef => colDef.field), ...newColumnFields];
|
|
79
|
+
columnsState.orderedFields = newColumnFields;
|
|
84
80
|
columnsState.lookup = newColumnsLookup;
|
|
85
81
|
return columnsState;
|
|
86
82
|
}, [getGroupingColDefs]);
|
package/index.js
CHANGED
|
@@ -48,13 +48,10 @@ export const useGridRowGroupingPreProcessors = (apiRef, props) => {
|
|
|
48
48
|
const groupingColDefs = getGroupingColDefs(columnsState);
|
|
49
49
|
let newColumnFields = [];
|
|
50
50
|
const newColumnsLookup = {};
|
|
51
|
-
const prevGroupingfields = [];
|
|
52
51
|
|
|
53
52
|
// We only keep the non-grouping columns
|
|
54
53
|
columnsState.orderedFields.forEach(field => {
|
|
55
|
-
if (isGroupingColumn(field)) {
|
|
56
|
-
prevGroupingfields.push(field);
|
|
57
|
-
} else {
|
|
54
|
+
if (!isGroupingColumn(field)) {
|
|
58
55
|
newColumnFields.push(field);
|
|
59
56
|
newColumnsLookup[field] = columnsState.lookup[field];
|
|
60
57
|
}
|
|
@@ -69,11 +66,10 @@ export const useGridRowGroupingPreProcessors = (apiRef, props) => {
|
|
|
69
66
|
}
|
|
70
67
|
newColumnsLookup[groupingColDef.field] = groupingColDef;
|
|
71
68
|
});
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
}
|
|
69
|
+
const checkBoxFieldIndex = newColumnFields.findIndex(field => field === GRID_CHECKBOX_SELECTION_FIELD);
|
|
70
|
+
const checkBoxColumn = checkBoxFieldIndex !== -1 ? newColumnFields.splice(checkBoxFieldIndex, 1) : [];
|
|
71
|
+
newColumnFields = [...checkBoxColumn, ...groupingColDefs.map(colDef => colDef.field), ...newColumnFields];
|
|
72
|
+
columnsState.orderedFields = newColumnFields;
|
|
77
73
|
columnsState.lookup = newColumnsLookup;
|
|
78
74
|
return columnsState;
|
|
79
75
|
}, [getGroupingColDefs]);
|
package/modern/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTc0MzExMjgwMDAwMA==";
|
|
4
4
|
if (process.env.NODE_ENV !== 'production') {
|
|
5
5
|
// A simple hack to set the value in the test environment (has no build step).
|
|
6
6
|
// eslint-disable-next-line no-useless-concat
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid-premium",
|
|
3
|
-
"version": "7.28.
|
|
3
|
+
"version": "7.28.2",
|
|
4
4
|
"description": "The Premium plan edition of the Data Grid Components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -40,10 +40,10 @@
|
|
|
40
40
|
"exceljs": "^4.4.0",
|
|
41
41
|
"prop-types": "^15.8.1",
|
|
42
42
|
"reselect": "^5.1.1",
|
|
43
|
-
"@mui/x-
|
|
44
|
-
"@mui/x-data-grid-pro": "7.28.
|
|
45
|
-
"@mui/x-
|
|
46
|
-
"@mui/x-
|
|
43
|
+
"@mui/x-license": "7.28.0",
|
|
44
|
+
"@mui/x-data-grid-pro": "7.28.2",
|
|
45
|
+
"@mui/x-data-grid": "7.28.2",
|
|
46
|
+
"@mui/x-internals": "7.28.0"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@emotion/react": "^11.9.0",
|
package/utils/releaseInfo.js
CHANGED
|
@@ -6,7 +6,7 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
6
6
|
exports.getReleaseInfo = void 0;
|
|
7
7
|
var _utils = require("@mui/utils");
|
|
8
8
|
const getReleaseInfo = () => {
|
|
9
|
-
const releaseInfo = "
|
|
9
|
+
const releaseInfo = "MTc0MzExMjgwMDAwMA==";
|
|
10
10
|
if (process.env.NODE_ENV !== 'production') {
|
|
11
11
|
// A simple hack to set the value in the test environment (has no build step).
|
|
12
12
|
// eslint-disable-next-line no-useless-concat
|