@mui/x-data-grid-pro 8.0.0-beta.1 → 8.0.0-beta.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 +94 -0
- package/DataGridPro/DataGridPro.js +2 -0
- package/components/GridDataSourceTreeDataGroupingCell.js +2 -2
- package/esm/DataGridPro/DataGridPro.js +2 -0
- package/esm/components/GridDataSourceTreeDataGroupingCell.js +2 -2
- package/esm/index.js +1 -1
- package/esm/utils/releaseInfo.js +1 -1
- package/esm/utils/tree/updateRowTree.js +2 -1
- package/index.js +1 -1
- package/modern/DataGridPro/DataGridPro.js +2 -0
- package/modern/components/GridDataSourceTreeDataGroupingCell.js +2 -2
- package/modern/index.js +1 -1
- package/modern/utils/releaseInfo.js +1 -1
- package/modern/utils/tree/updateRowTree.js +2 -1
- package/package.json +4 -4
- package/tsconfig.build.tsbuildinfo +1 -1
- package/utils/releaseInfo.js +1 -1
- package/utils/tree/updateRowTree.js +2 -1
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,100 @@
|
|
|
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-beta.2
|
|
9
|
+
|
|
10
|
+
_Mar 27, 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
|
+
- 🔍 Update the Data Grid quick filter to be collapsed when not in use
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
|
|
17
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
18
|
+
@lhilgert9.
|
|
19
|
+
Following are all team members who have contributed to this release:
|
|
20
|
+
@alexfauquette, @arminmeh, @flaviendelangle, @hasdfa, @JCQuintas, @KenanYusuf, @LukasTy, @MBilalShafi, @michelengelen, @mnajdova, @romgrk.
|
|
21
|
+
|
|
22
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
23
|
+
|
|
24
|
+
### Data Grid
|
|
25
|
+
|
|
26
|
+
#### `@mui/x-data-grid@8.0.0-beta.2`
|
|
27
|
+
|
|
28
|
+
- [DataGrid] Fix error caused by trying to render rows that are not in the state anymore (#17057) @arminmeh
|
|
29
|
+
- [DataGrid] Refactor: remove more material (#16922) @romgrk
|
|
30
|
+
- [DataGrid] Update Quick Filter component to be expandable (#16862) @KenanYusuf
|
|
31
|
+
- [DataGrid] Fix crash when used with `@mui/styled-engine-sc` (#17154) @KenanYusuf
|
|
32
|
+
|
|
33
|
+
#### `@mui/x-data-grid-pro@8.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
34
|
+
|
|
35
|
+
Same changes as in `@mui/x-data-grid@8.0.0-beta.2`, plus:
|
|
36
|
+
|
|
37
|
+
- [DataGridPro] Data source: Allow expanding groups with unknown children (#17144) @MBilalShafi
|
|
38
|
+
|
|
39
|
+
#### `@mui/x-data-grid-premium@8.0.0-beta.2` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
40
|
+
|
|
41
|
+
Same changes as in `@mui/x-data-grid-pro@8.0.0-beta.2`.
|
|
42
|
+
|
|
43
|
+
### Date and Time Pickers
|
|
44
|
+
|
|
45
|
+
#### `@mui/x-date-pickers@8.0.0-beta.2`
|
|
46
|
+
|
|
47
|
+
- [fields] Extract the props of each field slot into a standalone hook for easier re-use (#17114) @flaviendelangle
|
|
48
|
+
- [pickers] Fix visual regression in Date Range Calendar's day (#17148) @flaviendelangle
|
|
49
|
+
- [pickers] Remove all code duplication to apply default values to validation props (#17038) @flaviendelangle
|
|
50
|
+
|
|
51
|
+
#### `@mui/x-date-pickers-pro@8.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
52
|
+
|
|
53
|
+
Same changes as in `@mui/x-date-pickers@8.0.0-beta.2`.
|
|
54
|
+
|
|
55
|
+
### Charts
|
|
56
|
+
|
|
57
|
+
#### `@mui/x-charts@8.0.0-beta.2`
|
|
58
|
+
|
|
59
|
+
- [charts] Memoize axes and series with default (#17156) @alexfauquette
|
|
60
|
+
- [charts] Add pie benchmark (#17115) @JCQuintas
|
|
61
|
+
- [charts] Fix CSS vars support for dark theme (#17106) @alexfauquette
|
|
62
|
+
- [charts] Fix radar hover (#17134) @alexfauquette
|
|
63
|
+
- [charts] Move axis interaction to selectors (#17039) @alexfauquette
|
|
64
|
+
- [charts] Fix Pie benchmark (#17125) @JCQuintas
|
|
65
|
+
|
|
66
|
+
#### `@mui/x-charts-pro@8.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
67
|
+
|
|
68
|
+
Same changes as in `@mui/x-charts@8.0.0-beta.2`.
|
|
69
|
+
|
|
70
|
+
### Tree View
|
|
71
|
+
|
|
72
|
+
#### `@mui/x-tree-view@8.0.0-beta.2`
|
|
73
|
+
|
|
74
|
+
Internal changes.
|
|
75
|
+
|
|
76
|
+
#### `@mui/x-tree-view-pro@8.0.0-beta.2` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
77
|
+
|
|
78
|
+
Same changes as in `@mui/x-tree-view@8.0.0-beta.2`.
|
|
79
|
+
|
|
80
|
+
### `@mui/x-codemod@8.0.0-beta.1`
|
|
81
|
+
|
|
82
|
+
- [codemod] Add Data Grid codemods (#17121, #17124) @MBilalShafi
|
|
83
|
+
|
|
84
|
+
### Docs
|
|
85
|
+
|
|
86
|
+
- [docs] Fix example import for `ExportExcel` component (#17110) @KenanYusuf
|
|
87
|
+
|
|
88
|
+
### Core
|
|
89
|
+
|
|
90
|
+
- [code-infra] Remove `@mui/styles` dependency & patches (#17071) @mnajdova
|
|
91
|
+
- [code-infra] Add more tests to slow screenshot tests (#17075) @JCQuintas
|
|
92
|
+
- [code-infra] Fix pickers codecov (#17120) @JCQuintas
|
|
93
|
+
- [code-infra] Move `isDeepEqual` to @mui/x-internals (#17129) @JCQuintas
|
|
94
|
+
- [code-infra] Remove `test_regressions` step from React 18 pipeline (#17108) @LukasTy
|
|
95
|
+
- [code-infra] Update some data-grid tests for vitest (#17078, #17104, #17146) @JCQuintas
|
|
96
|
+
- [code-infra] Update some date-pickers tests for vitest (#17083) @JCQuintas
|
|
97
|
+
- [infra] Update `issue-status-label-handler.yml` @michelengelen
|
|
98
|
+
- [infra] Added reusable issue status label handler workflow (#17145) @michelengelen
|
|
99
|
+
- [infra] Switch to reusable 'stale issues/PRs' workflow (#17107) @michelengelen
|
|
100
|
+
- [telemetry] Improve request body size, update dependencies, and optimize SSR handling (#17008) @hasdfa
|
|
101
|
+
|
|
8
102
|
## 8.0.0-beta.1
|
|
9
103
|
|
|
10
104
|
_Mar 21, 2025_
|
|
@@ -132,6 +132,7 @@ DataGridProRaw.propTypes = {
|
|
|
132
132
|
* Override or extend the styles applied to the component.
|
|
133
133
|
*/
|
|
134
134
|
classes: _propTypes.default.object,
|
|
135
|
+
className: _propTypes.default.string,
|
|
135
136
|
/**
|
|
136
137
|
* The character used to separate cell values when copying to the clipboard.
|
|
137
138
|
* @default '\t'
|
|
@@ -978,6 +979,7 @@ DataGridProRaw.propTypes = {
|
|
|
978
979
|
field: _propTypes.default.string.isRequired,
|
|
979
980
|
sort: _propTypes.default.oneOf(['asc', 'desc'])
|
|
980
981
|
})),
|
|
982
|
+
style: _propTypes.default.object,
|
|
981
983
|
/**
|
|
982
984
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
983
985
|
*/
|
|
@@ -58,7 +58,7 @@ function GridTreeDataGroupingCellIcon(props) {
|
|
|
58
58
|
})
|
|
59
59
|
});
|
|
60
60
|
}
|
|
61
|
-
return descendantCount > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseIconButton, (0, _extends2.default)({
|
|
61
|
+
return descendantCount === -1 || descendantCount > 0 ? /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseIconButton, (0, _extends2.default)({
|
|
62
62
|
size: "small",
|
|
63
63
|
onClick: handleClick,
|
|
64
64
|
tabIndex: -1,
|
|
@@ -92,7 +92,7 @@ function GridDataSourceTreeDataGroupingCell(props) {
|
|
|
92
92
|
const classes = useUtilityClasses(rootProps);
|
|
93
93
|
let descendantCount = 0;
|
|
94
94
|
if (row) {
|
|
95
|
-
descendantCount =
|
|
95
|
+
descendantCount = rootProps.dataSource?.getChildrenCount?.(row) ?? 0;
|
|
96
96
|
}
|
|
97
97
|
return /*#__PURE__*/(0, _jsxRuntime.jsxs)("div", {
|
|
98
98
|
className: classes.root,
|
|
@@ -125,6 +125,7 @@ DataGridProRaw.propTypes = {
|
|
|
125
125
|
* Override or extend the styles applied to the component.
|
|
126
126
|
*/
|
|
127
127
|
classes: PropTypes.object,
|
|
128
|
+
className: PropTypes.string,
|
|
128
129
|
/**
|
|
129
130
|
* The character used to separate cell values when copying to the clipboard.
|
|
130
131
|
* @default '\t'
|
|
@@ -971,6 +972,7 @@ DataGridProRaw.propTypes = {
|
|
|
971
972
|
field: PropTypes.string.isRequired,
|
|
972
973
|
sort: PropTypes.oneOf(['asc', 'desc'])
|
|
973
974
|
})),
|
|
975
|
+
style: PropTypes.object,
|
|
974
976
|
/**
|
|
975
977
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
976
978
|
*/
|
|
@@ -50,7 +50,7 @@ function GridTreeDataGroupingCellIcon(props) {
|
|
|
50
50
|
})
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
return descendantCount > 0 ? /*#__PURE__*/_jsx(rootProps.slots.baseIconButton, _extends({
|
|
53
|
+
return descendantCount === -1 || descendantCount > 0 ? /*#__PURE__*/_jsx(rootProps.slots.baseIconButton, _extends({
|
|
54
54
|
size: "small",
|
|
55
55
|
onClick: handleClick,
|
|
56
56
|
tabIndex: -1,
|
|
@@ -84,7 +84,7 @@ export function GridDataSourceTreeDataGroupingCell(props) {
|
|
|
84
84
|
const classes = useUtilityClasses(rootProps);
|
|
85
85
|
let descendantCount = 0;
|
|
86
86
|
if (row) {
|
|
87
|
-
descendantCount =
|
|
87
|
+
descendantCount = rootProps.dataSource?.getChildrenCount?.(row) ?? 0;
|
|
88
88
|
}
|
|
89
89
|
return /*#__PURE__*/_jsxs("div", {
|
|
90
90
|
className: classes.root,
|
package/esm/index.js
CHANGED
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
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import { GRID_ROOT_GROUP_ID } from '@mui/x-data-grid';
|
|
3
|
-
import {
|
|
3
|
+
import { getTreeNodeDescendants } from '@mui/x-data-grid/internals';
|
|
4
|
+
import { isDeepEqual } from '@mui/x-internals/isDeepEqual';
|
|
4
5
|
import { insertDataRowInTree } from "./insertDataRowInTree.js";
|
|
5
6
|
import { removeDataRowFromTree } from "./removeDataRowFromTree.js";
|
|
6
7
|
import { createUpdatedGroupsManager, getNodePathInTree } from "./utils.js";
|
package/index.js
CHANGED
|
@@ -125,6 +125,7 @@ DataGridProRaw.propTypes = {
|
|
|
125
125
|
* Override or extend the styles applied to the component.
|
|
126
126
|
*/
|
|
127
127
|
classes: PropTypes.object,
|
|
128
|
+
className: PropTypes.string,
|
|
128
129
|
/**
|
|
129
130
|
* The character used to separate cell values when copying to the clipboard.
|
|
130
131
|
* @default '\t'
|
|
@@ -971,6 +972,7 @@ DataGridProRaw.propTypes = {
|
|
|
971
972
|
field: PropTypes.string.isRequired,
|
|
972
973
|
sort: PropTypes.oneOf(['asc', 'desc'])
|
|
973
974
|
})),
|
|
975
|
+
style: PropTypes.object,
|
|
974
976
|
/**
|
|
975
977
|
* The system prop that allows defining system overrides as well as additional CSS styles.
|
|
976
978
|
*/
|
|
@@ -50,7 +50,7 @@ function GridTreeDataGroupingCellIcon(props) {
|
|
|
50
50
|
})
|
|
51
51
|
});
|
|
52
52
|
}
|
|
53
|
-
return descendantCount > 0 ? /*#__PURE__*/_jsx(rootProps.slots.baseIconButton, _extends({
|
|
53
|
+
return descendantCount === -1 || descendantCount > 0 ? /*#__PURE__*/_jsx(rootProps.slots.baseIconButton, _extends({
|
|
54
54
|
size: "small",
|
|
55
55
|
onClick: handleClick,
|
|
56
56
|
tabIndex: -1,
|
|
@@ -84,7 +84,7 @@ export function GridDataSourceTreeDataGroupingCell(props) {
|
|
|
84
84
|
const classes = useUtilityClasses(rootProps);
|
|
85
85
|
let descendantCount = 0;
|
|
86
86
|
if (row) {
|
|
87
|
-
descendantCount =
|
|
87
|
+
descendantCount = rootProps.dataSource?.getChildrenCount?.(row) ?? 0;
|
|
88
88
|
}
|
|
89
89
|
return /*#__PURE__*/_jsxs("div", {
|
|
90
90
|
className: classes.root,
|
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
|
|
@@ -1,6 +1,7 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import { GRID_ROOT_GROUP_ID } from '@mui/x-data-grid';
|
|
3
|
-
import {
|
|
3
|
+
import { getTreeNodeDescendants } from '@mui/x-data-grid/internals';
|
|
4
|
+
import { isDeepEqual } from '@mui/x-internals/isDeepEqual';
|
|
4
5
|
import { insertDataRowInTree } from "./insertDataRowInTree.js";
|
|
5
6
|
import { removeDataRowFromTree } from "./removeDataRowFromTree.js";
|
|
6
7
|
import { createUpdatedGroupsManager, getNodePathInTree } from "./utils.js";
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid-pro",
|
|
3
|
-
"version": "8.0.0-beta.
|
|
3
|
+
"version": "8.0.0-beta.2",
|
|
4
4
|
"description": "The Pro plan edition of the Data Grid components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./index.js",
|
|
@@ -39,9 +39,9 @@
|
|
|
39
39
|
"clsx": "^2.1.1",
|
|
40
40
|
"prop-types": "^15.8.1",
|
|
41
41
|
"reselect": "^5.1.1",
|
|
42
|
-
"@mui/x-
|
|
43
|
-
"@mui/x-internals": "8.0.0-beta.
|
|
44
|
-
"@mui/x-
|
|
42
|
+
"@mui/x-license": "8.0.0-beta.2",
|
|
43
|
+
"@mui/x-internals": "8.0.0-beta.2",
|
|
44
|
+
"@mui/x-data-grid": "8.0.0-beta.2"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@emotion/react": "^11.9.0",
|