@mui/x-data-grid-pro 6.19.8 → 6.19.10
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 +70 -0
- package/DataGridPro/DataGridPro.js +0 -6
- package/components/headerFiltering/GridHeaderFilterCell.js +4 -1
- package/index.js +1 -1
- package/legacy/DataGridPro/DataGridPro.js +0 -6
- package/legacy/components/headerFiltering/GridHeaderFilterCell.js +4 -1
- package/legacy/index.js +1 -1
- package/legacy/utils/domUtils.js +5 -1
- package/legacy/utils/releaseInfo.js +1 -1
- package/modern/DataGridPro/DataGridPro.js +0 -6
- package/modern/components/headerFiltering/GridHeaderFilterCell.js +3 -1
- package/modern/index.js +1 -1
- package/modern/utils/domUtils.js +4 -1
- package/modern/utils/releaseInfo.js +1 -1
- package/node/DataGridPro/DataGridPro.js +0 -6
- package/node/components/headerFiltering/GridHeaderFilterCell.js +3 -1
- package/node/index.js +1 -1
- package/node/utils/domUtils.js +4 -1
- package/node/utils/releaseInfo.js +1 -1
- package/package.json +2 -2
- package/utils/domUtils.js +5 -1
- package/utils/releaseInfo.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,76 @@
|
|
|
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
|
+
## 6.19.10
|
|
7
|
+
|
|
8
|
+
_Apr 12, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🐞 Bugfixes
|
|
13
|
+
- 📚 Documentation improvements
|
|
14
|
+
|
|
15
|
+
### Data Grid
|
|
16
|
+
|
|
17
|
+
#### `@mui/x-data-grid@6.19.10`
|
|
18
|
+
|
|
19
|
+
- [DataGrid] Do not escape double quotes when copying to clipboard (#12734) @cherniavskii
|
|
20
|
+
- [DataGrid] Fix bug in suspense (#12754) @cherniavskii
|
|
21
|
+
|
|
22
|
+
#### `@mui/x-data-grid-pro@6.19.10` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
23
|
+
|
|
24
|
+
Same changes as in `@mui/x-data-grid@6.19.10`.
|
|
25
|
+
|
|
26
|
+
#### `@mui/x-data-grid-premium@6.19.10` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
27
|
+
|
|
28
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.10`.
|
|
29
|
+
|
|
30
|
+
### Core
|
|
31
|
+
|
|
32
|
+
- [core] Update the docs release source branch (#12685) @LukasTy
|
|
33
|
+
|
|
34
|
+
## 6.19.9
|
|
35
|
+
|
|
36
|
+
_Apr 5, 2024_
|
|
37
|
+
|
|
38
|
+
We'd like to offer a big thanks to the 3 contributors who made this release possible. Here are some highlights ✨:
|
|
39
|
+
|
|
40
|
+
- 🐞 Bugfixes
|
|
41
|
+
- 📚 Documentation improvements
|
|
42
|
+
|
|
43
|
+
### Data Grid
|
|
44
|
+
|
|
45
|
+
#### `@mui/x-data-grid@6.19.9`
|
|
46
|
+
|
|
47
|
+
- [DataGrid] Remove legacy editing API event: `rowEditCommit` (#12087) @MBilalShafi
|
|
48
|
+
|
|
49
|
+
#### `@mui/x-data-grid-pro@6.19.9` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
50
|
+
|
|
51
|
+
Same changes as in `@mui/x-data-grid@6.19.9`.
|
|
52
|
+
|
|
53
|
+
#### `@mui/x-data-grid-premium@6.19.9` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
54
|
+
|
|
55
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.9`.
|
|
56
|
+
|
|
57
|
+
### Date Pickers
|
|
58
|
+
|
|
59
|
+
#### `@mui/x-date-pickers@6.19.9`
|
|
60
|
+
|
|
61
|
+
No changes.
|
|
62
|
+
|
|
63
|
+
#### `@mui/x-date-pickers-pro@6.19.9` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
64
|
+
|
|
65
|
+
- [DateRangePicker] Fix selection behavior with single input field when `readOnly` (#12605) @LukasTy
|
|
66
|
+
|
|
67
|
+
### Docs
|
|
68
|
+
|
|
69
|
+
- [docs] Adds a recipe for the `checkboxSelectionVisibleOnly` prop (#12667) @michelengelen
|
|
70
|
+
- [docs] Explain the use of `_action: 'delete'` in `processRowUpdate` (#12673) @michelengelen
|
|
71
|
+
|
|
72
|
+
### Core
|
|
73
|
+
|
|
74
|
+
- [core] Use Circle CI context (#12607) @cherniavskii
|
|
75
|
+
|
|
6
76
|
## 6.19.8
|
|
7
77
|
|
|
8
78
|
_Mar 20, 2024_
|
|
@@ -644,12 +644,6 @@ DataGridProRaw.propTypes = {
|
|
|
644
644
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
645
645
|
*/
|
|
646
646
|
onRowDoubleClick: PropTypes.func,
|
|
647
|
-
/**
|
|
648
|
-
* Callback fired when the row changes are committed.
|
|
649
|
-
* @param {GridRowId} id The row id.
|
|
650
|
-
* @param {MuiEvent<MuiBaseEvent>} event The event that caused this prop to be called.
|
|
651
|
-
*/
|
|
652
|
-
onRowEditCommit: PropTypes.func,
|
|
653
647
|
/**
|
|
654
648
|
* Callback fired when the row turns to edit mode.
|
|
655
649
|
* @param {GridRowParams} params With all properties from [[GridRowParams]].
|
|
@@ -71,13 +71,16 @@ const GridHeaderFilterCell = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
71
71
|
}
|
|
72
72
|
React.useLayoutEffect(() => {
|
|
73
73
|
if (hasFocus && !isMenuOpen) {
|
|
74
|
+
var _apiRef$current$colum;
|
|
74
75
|
let focusableElement = cellRef.current.querySelector('[tabindex="0"]');
|
|
75
76
|
if (isEditing && InputComponent) {
|
|
76
77
|
focusableElement = inputRef.current;
|
|
77
78
|
}
|
|
78
79
|
const elementToFocus = focusableElement || cellRef.current;
|
|
79
80
|
elementToFocus == null || elementToFocus.focus();
|
|
80
|
-
apiRef.current.columnHeadersContainerElementRef.current
|
|
81
|
+
if ((_apiRef$current$colum = apiRef.current.columnHeadersContainerElementRef) != null && _apiRef$current$colum.current) {
|
|
82
|
+
apiRef.current.columnHeadersContainerElementRef.current.scrollLeft = 0;
|
|
83
|
+
}
|
|
81
84
|
}
|
|
82
85
|
}, [InputComponent, apiRef, hasFocus, isEditing, isMenuOpen]);
|
|
83
86
|
const onKeyDown = React.useCallback(event => {
|
package/index.js
CHANGED
|
@@ -644,12 +644,6 @@ DataGridProRaw.propTypes = {
|
|
|
644
644
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
645
645
|
*/
|
|
646
646
|
onRowDoubleClick: PropTypes.func,
|
|
647
|
-
/**
|
|
648
|
-
* Callback fired when the row changes are committed.
|
|
649
|
-
* @param {GridRowId} id The row id.
|
|
650
|
-
* @param {MuiEvent<MuiBaseEvent>} event The event that caused this prop to be called.
|
|
651
|
-
*/
|
|
652
|
-
onRowEditCommit: PropTypes.func,
|
|
653
647
|
/**
|
|
654
648
|
* Callback fired when the row turns to edit mode.
|
|
655
649
|
* @param {GridRowParams} params With all properties from [[GridRowParams]].
|
|
@@ -67,13 +67,16 @@ var GridHeaderFilterCell = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
67
67
|
}
|
|
68
68
|
React.useLayoutEffect(function () {
|
|
69
69
|
if (hasFocus && !isMenuOpen) {
|
|
70
|
+
var _apiRef$current$colum;
|
|
70
71
|
var focusableElement = cellRef.current.querySelector('[tabindex="0"]');
|
|
71
72
|
if (isEditing && InputComponent) {
|
|
72
73
|
focusableElement = inputRef.current;
|
|
73
74
|
}
|
|
74
75
|
var elementToFocus = focusableElement || cellRef.current;
|
|
75
76
|
elementToFocus == null || elementToFocus.focus();
|
|
76
|
-
apiRef.current.columnHeadersContainerElementRef.current
|
|
77
|
+
if ((_apiRef$current$colum = apiRef.current.columnHeadersContainerElementRef) != null && _apiRef$current$colum.current) {
|
|
78
|
+
apiRef.current.columnHeadersContainerElementRef.current.scrollLeft = 0;
|
|
79
|
+
}
|
|
77
80
|
}
|
|
78
81
|
}, [InputComponent, apiRef, hasFocus, isEditing, isMenuOpen]);
|
|
79
82
|
var onKeyDown = React.useCallback(function (event) {
|
package/legacy/index.js
CHANGED
package/legacy/utils/domUtils.js
CHANGED
|
@@ -45,7 +45,11 @@ export function findGridCellElementsFromCol(col, api) {
|
|
|
45
45
|
return cells;
|
|
46
46
|
}
|
|
47
47
|
export function findGridHeader(api, field) {
|
|
48
|
-
var
|
|
48
|
+
var _api$columnHeadersCon;
|
|
49
|
+
var headers = (_api$columnHeadersCon = api.columnHeadersContainerElementRef) == null ? void 0 : _api$columnHeadersCon.current;
|
|
50
|
+
if (!headers) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
49
53
|
return headers.querySelector(":scope > div > div > [data-field=\"".concat(field, "\"][role=\"columnheader\"]"));
|
|
50
54
|
}
|
|
51
55
|
export function findGridCells(api, field) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export var getReleaseInfo = function getReleaseInfo() {
|
|
3
|
-
var releaseInfo = "
|
|
3
|
+
var releaseInfo = "MTcxMjg2OTIwMDAwMA==";
|
|
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
|
|
@@ -644,12 +644,6 @@ DataGridProRaw.propTypes = {
|
|
|
644
644
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
645
645
|
*/
|
|
646
646
|
onRowDoubleClick: PropTypes.func,
|
|
647
|
-
/**
|
|
648
|
-
* Callback fired when the row changes are committed.
|
|
649
|
-
* @param {GridRowId} id The row id.
|
|
650
|
-
* @param {MuiEvent<MuiBaseEvent>} event The event that caused this prop to be called.
|
|
651
|
-
*/
|
|
652
|
-
onRowEditCommit: PropTypes.func,
|
|
653
647
|
/**
|
|
654
648
|
* Callback fired when the row turns to edit mode.
|
|
655
649
|
* @param {GridRowParams} params With all properties from [[GridRowParams]].
|
|
@@ -76,7 +76,9 @@ const GridHeaderFilterCell = /*#__PURE__*/React.forwardRef((props, ref) => {
|
|
|
76
76
|
}
|
|
77
77
|
const elementToFocus = focusableElement || cellRef.current;
|
|
78
78
|
elementToFocus?.focus();
|
|
79
|
-
apiRef.current.columnHeadersContainerElementRef
|
|
79
|
+
if (apiRef.current.columnHeadersContainerElementRef?.current) {
|
|
80
|
+
apiRef.current.columnHeadersContainerElementRef.current.scrollLeft = 0;
|
|
81
|
+
}
|
|
80
82
|
}
|
|
81
83
|
}, [InputComponent, apiRef, hasFocus, isEditing, isMenuOpen]);
|
|
82
84
|
const onKeyDown = React.useCallback(event => {
|
package/modern/index.js
CHANGED
package/modern/utils/domUtils.js
CHANGED
|
@@ -43,7 +43,10 @@ export function findGridCellElementsFromCol(col, api) {
|
|
|
43
43
|
return cells;
|
|
44
44
|
}
|
|
45
45
|
export function findGridHeader(api, field) {
|
|
46
|
-
const headers = api.columnHeadersContainerElementRef
|
|
46
|
+
const headers = api.columnHeadersContainerElementRef?.current;
|
|
47
|
+
if (!headers) {
|
|
48
|
+
return null;
|
|
49
|
+
}
|
|
47
50
|
return headers.querySelector(`:scope > div > div > [data-field="${field}"][role="columnheader"]`);
|
|
48
51
|
}
|
|
49
52
|
export function findGridCells(api, field) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export const getReleaseInfo = () => {
|
|
3
|
-
const releaseInfo = "
|
|
3
|
+
const releaseInfo = "MTcxMjg2OTIwMDAwMA==";
|
|
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
|
|
@@ -652,12 +652,6 @@ DataGridProRaw.propTypes = {
|
|
|
652
652
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
653
653
|
*/
|
|
654
654
|
onRowDoubleClick: _propTypes.default.func,
|
|
655
|
-
/**
|
|
656
|
-
* Callback fired when the row changes are committed.
|
|
657
|
-
* @param {GridRowId} id The row id.
|
|
658
|
-
* @param {MuiEvent<MuiBaseEvent>} event The event that caused this prop to be called.
|
|
659
|
-
*/
|
|
660
|
-
onRowEditCommit: _propTypes.default.func,
|
|
661
655
|
/**
|
|
662
656
|
* Callback fired when the row turns to edit mode.
|
|
663
657
|
* @param {GridRowParams} params With all properties from [[GridRowParams]].
|
|
@@ -84,7 +84,9 @@ const GridHeaderFilterCell = exports.GridHeaderFilterCell = /*#__PURE__*/React.f
|
|
|
84
84
|
}
|
|
85
85
|
const elementToFocus = focusableElement || cellRef.current;
|
|
86
86
|
elementToFocus?.focus();
|
|
87
|
-
apiRef.current.columnHeadersContainerElementRef
|
|
87
|
+
if (apiRef.current.columnHeadersContainerElementRef?.current) {
|
|
88
|
+
apiRef.current.columnHeadersContainerElementRef.current.scrollLeft = 0;
|
|
89
|
+
}
|
|
88
90
|
}
|
|
89
91
|
}, [InputComponent, apiRef, hasFocus, isEditing, isMenuOpen]);
|
|
90
92
|
const onKeyDown = React.useCallback(event => {
|
package/node/index.js
CHANGED
package/node/utils/domUtils.js
CHANGED
|
@@ -54,7 +54,10 @@ function findGridCellElementsFromCol(col, api) {
|
|
|
54
54
|
return cells;
|
|
55
55
|
}
|
|
56
56
|
function findGridHeader(api, field) {
|
|
57
|
-
const headers = api.columnHeadersContainerElementRef
|
|
57
|
+
const headers = api.columnHeadersContainerElementRef?.current;
|
|
58
|
+
if (!headers) {
|
|
59
|
+
return null;
|
|
60
|
+
}
|
|
58
61
|
return headers.querySelector(`:scope > div > div > [data-field="${field}"][role="columnheader"]`);
|
|
59
62
|
}
|
|
60
63
|
function findGridCells(api, field) {
|
|
@@ -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 = "MTcxMjg2OTIwMDAwMA==";
|
|
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
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid-pro",
|
|
3
|
-
"version": "6.19.
|
|
3
|
+
"version": "6.19.10",
|
|
4
4
|
"description": "The Pro plan edition of the data grid component (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/index.js",
|
|
@@ -33,7 +33,7 @@
|
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.23.2",
|
|
35
35
|
"@mui/utils": "^5.14.16",
|
|
36
|
-
"@mui/x-data-grid": "6.19.
|
|
36
|
+
"@mui/x-data-grid": "6.19.10",
|
|
37
37
|
"@mui/x-license-pro": "6.10.2",
|
|
38
38
|
"@types/format-util": "^1.0.3",
|
|
39
39
|
"clsx": "^2.0.0",
|
package/utils/domUtils.js
CHANGED
|
@@ -45,7 +45,11 @@ export function findGridCellElementsFromCol(col, api) {
|
|
|
45
45
|
return cells;
|
|
46
46
|
}
|
|
47
47
|
export function findGridHeader(api, field) {
|
|
48
|
-
|
|
48
|
+
var _api$columnHeadersCon;
|
|
49
|
+
const headers = (_api$columnHeadersCon = api.columnHeadersContainerElementRef) == null ? void 0 : _api$columnHeadersCon.current;
|
|
50
|
+
if (!headers) {
|
|
51
|
+
return null;
|
|
52
|
+
}
|
|
49
53
|
return headers.querySelector(`:scope > div > div > [data-field="${field}"][role="columnheader"]`);
|
|
50
54
|
}
|
|
51
55
|
export function findGridCells(api, field) {
|
package/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 = "MTcxMjg2OTIwMDAwMA==";
|
|
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
|