@mui/x-data-grid-pro 6.19.9 → 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 +28 -0
- package/components/headerFiltering/GridHeaderFilterCell.js +4 -1
- package/index.js +1 -1
- 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/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/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,34 @@
|
|
|
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
|
+
|
|
6
34
|
## 6.19.9
|
|
7
35
|
|
|
8
36
|
_Apr 5, 2024_
|
|
@@ -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
|
@@ -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
|
|
@@ -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
|
|
@@ -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
|