@mui/x-data-grid-pro 7.22.0 → 7.22.1
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 +62 -0
- package/esm/hooks/features/dataSource/useGridDataSource.js +0 -2
- package/esm/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +2 -1
- package/esm/hooks/features/treeData/gridTreeDataGroupColDef.js +2 -1
- package/esm/utils/releaseInfo.js +1 -1
- package/hooks/features/dataSource/useGridDataSource.js +0 -2
- package/hooks/features/detailPanel/gridDetailPanelToggleColDef.d.ts +2 -1
- package/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +9 -3
- package/hooks/features/treeData/gridTreeDataGroupColDef.d.ts +2 -1
- package/hooks/features/treeData/gridTreeDataGroupColDef.js +9 -3
- package/index.js +1 -1
- package/modern/hooks/features/dataSource/useGridDataSource.js +0 -2
- package/modern/hooks/features/detailPanel/gridDetailPanelToggleColDef.js +2 -1
- package/modern/hooks/features/treeData/gridTreeDataGroupColDef.js +2 -1
- package/modern/index.js +1 -1
- package/modern/utils/releaseInfo.js +1 -1
- package/package.json +3 -3
- package/utils/releaseInfo.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,68 @@
|
|
|
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.22.1
|
|
7
|
+
|
|
8
|
+
_Nov 1, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🐞 Bugfixes
|
|
13
|
+
- 📚 Documentation improvements
|
|
14
|
+
- 🌍 Improve Polish (pl-PL) locale on the Date Pickers
|
|
15
|
+
|
|
16
|
+
Special thanks go out to the community contributors who have helped make this release possible:
|
|
17
|
+
@wojtkolos, @dpak-maurya, @k-rajat19.
|
|
18
|
+
Following are all team members who have contributed to this release:
|
|
19
|
+
@LukasTy, @arminmeh, @MBilalShafi, @KenanYusuf, @flaviendelangle.
|
|
20
|
+
|
|
21
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
22
|
+
|
|
23
|
+
### Data Grid
|
|
24
|
+
|
|
25
|
+
#### `@mui/x-data-grid@7.22.1`
|
|
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
|
|
32
|
+
|
|
33
|
+
#### `@mui/x-data-grid-pro@7.22.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
34
|
+
|
|
35
|
+
Same changes as in `@mui/x-data-grid@7.22.1`, plus:
|
|
36
|
+
|
|
37
|
+
- [DataGridPro] Add list view tests (#15166) @KenanYusuf
|
|
38
|
+
|
|
39
|
+
#### `@mui/x-data-grid-premium@7.22.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
40
|
+
|
|
41
|
+
- [DataGridPremium] Keep focus on the grouping cell on space bar press #15155 @k-rajat19
|
|
42
|
+
|
|
43
|
+
### Date and Time Pickers
|
|
44
|
+
|
|
45
|
+
#### `@mui/x-date-pickers@7.22.1`
|
|
46
|
+
|
|
47
|
+
- [l10n] Improve Polish (pl-PL) locale (#15177) @wojtkolos
|
|
48
|
+
|
|
49
|
+
#### `@mui/x-date-pickers-pro@7.22.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
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`
|
|
56
|
+
|
|
57
|
+
- [TreeView] Export `TreeItem2DragAndDropOverlay` and `TreeItem2LabelInput` from the root of each package (#15208) @flaviendelangle
|
|
58
|
+
- [TreeView] Fix drag and drop color usage (#15149) @LukasTy
|
|
59
|
+
|
|
60
|
+
#### `@mui/x-tree-view-pro@7.22.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
61
|
+
|
|
62
|
+
Same changes as in `@mui/x-tree-view@7.22.1`.
|
|
63
|
+
|
|
64
|
+
### Docs
|
|
65
|
+
|
|
66
|
+
- [docs] Add section explaining how to keep the selection while filtering in Data grid docs (#15199) @arminmeh
|
|
67
|
+
|
|
6
68
|
## 7.22.0
|
|
7
69
|
|
|
8
70
|
_Oct 25, 2024_
|
|
@@ -194,8 +194,6 @@ export const useGridDataSource = (apiRef, props) => {
|
|
|
194
194
|
useGridApiEventHandler(apiRef, 'sortModelChange', runIfServerMode(props.sortingMode, fetchRows));
|
|
195
195
|
useGridApiEventHandler(apiRef, 'filterModelChange', runIfServerMode(props.filterMode, fetchRows));
|
|
196
196
|
useGridApiEventHandler(apiRef, 'paginationModelChange', runIfServerMode(props.paginationMode, fetchRows));
|
|
197
|
-
// @ts-ignore - Event is not defined in the Pro API
|
|
198
|
-
useGridApiEventHandler(apiRef, 'rowGroupingModelChange', () => fetchRows());
|
|
199
197
|
const isFirstRender = React.useRef(true);
|
|
200
198
|
React.useEffect(() => {
|
|
201
199
|
if (isFirstRender.current) {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { GRID_STRING_COL_DEF } from '@mui/x-data-grid';
|
|
4
|
+
import { GRID_DETAIL_PANEL_TOGGLE_FIELD } from '@mui/x-data-grid/internals';
|
|
4
5
|
import { GridDetailPanelToggleCell } from "../../../components/GridDetailPanelToggleCell.js";
|
|
5
6
|
import { gridDetailPanelExpandedRowIdsSelector } from "./gridDetailPanelSelector.js";
|
|
6
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
export
|
|
8
|
+
export { GRID_DETAIL_PANEL_TOGGLE_FIELD };
|
|
8
9
|
export const GRID_DETAIL_PANEL_TOGGLE_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {
|
|
9
10
|
type: 'custom',
|
|
10
11
|
field: GRID_DETAIL_PANEL_TOGGLE_FIELD,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import { GRID_STRING_COL_DEF } from '@mui/x-data-grid';
|
|
3
|
+
import { GRID_TREE_DATA_GROUPING_FIELD } from '@mui/x-data-grid/internals';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* TODO: Add sorting and filtering on the value and the filteredDescendantCount
|
|
@@ -18,7 +19,7 @@ export const GRID_TREE_DATA_GROUPING_COL_DEF = _extends({}, GRID_STRING_COL_DEF,
|
|
|
18
19
|
return rowNode?.type === 'group' || rowNode?.type === 'leaf' ? rowNode.groupingKey : undefined;
|
|
19
20
|
}
|
|
20
21
|
});
|
|
21
|
-
export
|
|
22
|
+
export { GRID_TREE_DATA_GROUPING_FIELD };
|
|
22
23
|
export const GRID_TREE_DATA_GROUPING_COL_DEF_FORCED_PROPERTIES = {
|
|
23
24
|
field: GRID_TREE_DATA_GROUPING_FIELD,
|
|
24
25
|
editable: false,
|
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 = "MTczMDQzMzYwMDAwMA==";
|
|
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
|
|
@@ -203,8 +203,6 @@ const useGridDataSource = (apiRef, props) => {
|
|
|
203
203
|
(0, _xDataGrid.useGridApiEventHandler)(apiRef, 'sortModelChange', (0, _utils.runIfServerMode)(props.sortingMode, fetchRows));
|
|
204
204
|
(0, _xDataGrid.useGridApiEventHandler)(apiRef, 'filterModelChange', (0, _utils.runIfServerMode)(props.filterMode, fetchRows));
|
|
205
205
|
(0, _xDataGrid.useGridApiEventHandler)(apiRef, 'paginationModelChange', (0, _utils.runIfServerMode)(props.paginationMode, fetchRows));
|
|
206
|
-
// @ts-ignore - Event is not defined in the Pro API
|
|
207
|
-
(0, _xDataGrid.useGridApiEventHandler)(apiRef, 'rowGroupingModelChange', () => fetchRows());
|
|
208
206
|
const isFirstRender = React.useRef(true);
|
|
209
207
|
React.useEffect(() => {
|
|
210
208
|
if (isFirstRender.current) {
|
|
@@ -1,3 +1,4 @@
|
|
|
1
1
|
import { GridColDef } from '@mui/x-data-grid';
|
|
2
|
-
|
|
2
|
+
import { GRID_DETAIL_PANEL_TOGGLE_FIELD } from '@mui/x-data-grid/internals';
|
|
3
|
+
export { GRID_DETAIL_PANEL_TOGGLE_FIELD };
|
|
3
4
|
export declare const GRID_DETAIL_PANEL_TOGGLE_COL_DEF: GridColDef;
|
|
@@ -5,17 +5,23 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.GRID_DETAIL_PANEL_TOGGLE_COL_DEF = void 0;
|
|
9
|
+
Object.defineProperty(exports, "GRID_DETAIL_PANEL_TOGGLE_FIELD", {
|
|
10
|
+
enumerable: true,
|
|
11
|
+
get: function () {
|
|
12
|
+
return _internals.GRID_DETAIL_PANEL_TOGGLE_FIELD;
|
|
13
|
+
}
|
|
14
|
+
});
|
|
9
15
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
16
|
var React = _interopRequireWildcard(require("react"));
|
|
11
17
|
var _xDataGrid = require("@mui/x-data-grid");
|
|
18
|
+
var _internals = require("@mui/x-data-grid/internals");
|
|
12
19
|
var _GridDetailPanelToggleCell = require("../../../components/GridDetailPanelToggleCell");
|
|
13
20
|
var _gridDetailPanelSelector = require("./gridDetailPanelSelector");
|
|
14
21
|
var _jsxRuntime = require("react/jsx-runtime");
|
|
15
|
-
const GRID_DETAIL_PANEL_TOGGLE_FIELD = exports.GRID_DETAIL_PANEL_TOGGLE_FIELD = '__detail_panel_toggle__';
|
|
16
22
|
const GRID_DETAIL_PANEL_TOGGLE_COL_DEF = exports.GRID_DETAIL_PANEL_TOGGLE_COL_DEF = (0, _extends2.default)({}, _xDataGrid.GRID_STRING_COL_DEF, {
|
|
17
23
|
type: 'custom',
|
|
18
|
-
field: GRID_DETAIL_PANEL_TOGGLE_FIELD,
|
|
24
|
+
field: _internals.GRID_DETAIL_PANEL_TOGGLE_FIELD,
|
|
19
25
|
editable: false,
|
|
20
26
|
sortable: false,
|
|
21
27
|
filterable: false,
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { GridColDef } from '@mui/x-data-grid';
|
|
2
|
+
import { GRID_TREE_DATA_GROUPING_FIELD } from '@mui/x-data-grid/internals';
|
|
2
3
|
/**
|
|
3
4
|
* TODO: Add sorting and filtering on the value and the filteredDescendantCount
|
|
4
5
|
*/
|
|
5
6
|
export declare const GRID_TREE_DATA_GROUPING_COL_DEF: Omit<GridColDef, 'field' | 'editable'>;
|
|
6
|
-
export
|
|
7
|
+
export { GRID_TREE_DATA_GROUPING_FIELD };
|
|
7
8
|
export declare const GRID_TREE_DATA_GROUPING_COL_DEF_FORCED_PROPERTIES: Pick<GridColDef, 'field' | 'editable' | 'groupable'>;
|
|
@@ -4,9 +4,16 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
4
4
|
Object.defineProperty(exports, "__esModule", {
|
|
5
5
|
value: true
|
|
6
6
|
});
|
|
7
|
-
exports.
|
|
7
|
+
exports.GRID_TREE_DATA_GROUPING_COL_DEF_FORCED_PROPERTIES = exports.GRID_TREE_DATA_GROUPING_COL_DEF = void 0;
|
|
8
|
+
Object.defineProperty(exports, "GRID_TREE_DATA_GROUPING_FIELD", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () {
|
|
11
|
+
return _internals.GRID_TREE_DATA_GROUPING_FIELD;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
8
14
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
15
|
var _xDataGrid = require("@mui/x-data-grid");
|
|
16
|
+
var _internals = require("@mui/x-data-grid/internals");
|
|
10
17
|
/**
|
|
11
18
|
* TODO: Add sorting and filtering on the value and the filteredDescendantCount
|
|
12
19
|
*/
|
|
@@ -24,9 +31,8 @@ const GRID_TREE_DATA_GROUPING_COL_DEF = exports.GRID_TREE_DATA_GROUPING_COL_DEF
|
|
|
24
31
|
return rowNode?.type === 'group' || rowNode?.type === 'leaf' ? rowNode.groupingKey : undefined;
|
|
25
32
|
}
|
|
26
33
|
});
|
|
27
|
-
const GRID_TREE_DATA_GROUPING_FIELD = exports.GRID_TREE_DATA_GROUPING_FIELD = '__tree_data_group__';
|
|
28
34
|
const GRID_TREE_DATA_GROUPING_COL_DEF_FORCED_PROPERTIES = exports.GRID_TREE_DATA_GROUPING_COL_DEF_FORCED_PROPERTIES = {
|
|
29
|
-
field: GRID_TREE_DATA_GROUPING_FIELD,
|
|
35
|
+
field: _internals.GRID_TREE_DATA_GROUPING_FIELD,
|
|
30
36
|
editable: false,
|
|
31
37
|
groupable: false
|
|
32
38
|
};
|
package/index.js
CHANGED
|
@@ -194,8 +194,6 @@ export const useGridDataSource = (apiRef, props) => {
|
|
|
194
194
|
useGridApiEventHandler(apiRef, 'sortModelChange', runIfServerMode(props.sortingMode, fetchRows));
|
|
195
195
|
useGridApiEventHandler(apiRef, 'filterModelChange', runIfServerMode(props.filterMode, fetchRows));
|
|
196
196
|
useGridApiEventHandler(apiRef, 'paginationModelChange', runIfServerMode(props.paginationMode, fetchRows));
|
|
197
|
-
// @ts-ignore - Event is not defined in the Pro API
|
|
198
|
-
useGridApiEventHandler(apiRef, 'rowGroupingModelChange', () => fetchRows());
|
|
199
197
|
const isFirstRender = React.useRef(true);
|
|
200
198
|
React.useEffect(() => {
|
|
201
199
|
if (isFirstRender.current) {
|
|
@@ -1,10 +1,11 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import { GRID_STRING_COL_DEF } from '@mui/x-data-grid';
|
|
4
|
+
import { GRID_DETAIL_PANEL_TOGGLE_FIELD } from '@mui/x-data-grid/internals';
|
|
4
5
|
import { GridDetailPanelToggleCell } from "../../../components/GridDetailPanelToggleCell.js";
|
|
5
6
|
import { gridDetailPanelExpandedRowIdsSelector } from "./gridDetailPanelSelector.js";
|
|
6
7
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
7
|
-
export
|
|
8
|
+
export { GRID_DETAIL_PANEL_TOGGLE_FIELD };
|
|
8
9
|
export const GRID_DETAIL_PANEL_TOGGLE_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {
|
|
9
10
|
type: 'custom',
|
|
10
11
|
field: GRID_DETAIL_PANEL_TOGGLE_FIELD,
|
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import { GRID_STRING_COL_DEF } from '@mui/x-data-grid';
|
|
3
|
+
import { GRID_TREE_DATA_GROUPING_FIELD } from '@mui/x-data-grid/internals';
|
|
3
4
|
|
|
4
5
|
/**
|
|
5
6
|
* TODO: Add sorting and filtering on the value and the filteredDescendantCount
|
|
@@ -18,7 +19,7 @@ export const GRID_TREE_DATA_GROUPING_COL_DEF = _extends({}, GRID_STRING_COL_DEF,
|
|
|
18
19
|
return rowNode?.type === 'group' || rowNode?.type === 'leaf' ? rowNode.groupingKey : undefined;
|
|
19
20
|
}
|
|
20
21
|
});
|
|
21
|
-
export
|
|
22
|
+
export { GRID_TREE_DATA_GROUPING_FIELD };
|
|
22
23
|
export const GRID_TREE_DATA_GROUPING_COL_DEF_FORCED_PROPERTIES = {
|
|
23
24
|
field: GRID_TREE_DATA_GROUPING_FIELD,
|
|
24
25
|
editable: false,
|
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 = "MTczMDQzMzYwMDAwMA==";
|
|
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-pro",
|
|
3
|
-
"version": "7.22.
|
|
3
|
+
"version": "7.22.1",
|
|
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-data-grid": "7.22.1",
|
|
42
43
|
"@mui/x-internals": "7.21.0",
|
|
43
|
-
"@mui/x-license": "7.21.0"
|
|
44
|
-
"@mui/x-data-grid": "7.22.0"
|
|
44
|
+
"@mui/x-license": "7.21.0"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@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 = "MTczMDQzMzYwMDAwMA==";
|
|
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
|