@mui/x-data-grid-pro 7.29.3 → 7.29.5
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 +71 -0
- package/components/GridDetailPanelToggleCell.js +1 -0
- package/components/GridRowReorderCell.js +15 -2
- package/index.js +1 -1
- package/modern/components/GridDetailPanelToggleCell.js +1 -0
- package/modern/components/GridRowReorderCell.js +15 -2
- package/modern/index.js +1 -1
- package/modern/utils/releaseInfo.js +1 -1
- package/node/components/GridDetailPanelToggleCell.js +1 -0
- package/node/components/GridRowReorderCell.js +14 -1
- package/node/index.js +1 -1
- package/node/utils/releaseInfo.js +1 -1
- package/package.json +3 -3
- package/utils/releaseInfo.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,77 @@
|
|
|
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.29.5
|
|
7
|
+
|
|
8
|
+
_May 29, 2025_
|
|
9
|
+
|
|
10
|
+
We'd like to extend a big thank you to @cherniavskii, who made this release possible.
|
|
11
|
+
|
|
12
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
13
|
+
|
|
14
|
+
### Data Grid
|
|
15
|
+
|
|
16
|
+
#### `@mui/x-data-grid@7.29.5`
|
|
17
|
+
|
|
18
|
+
- [DataGrid] Avoid ResizeObserver loop error (@cherniavskii) (#18005) @github-actions[bot]
|
|
19
|
+
|
|
20
|
+
#### `@mui/x-data-grid-pro@7.29.5` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
21
|
+
|
|
22
|
+
Same changes as in `@mui/x-data-grid@7.29.5`.
|
|
23
|
+
|
|
24
|
+
#### `@mui/x-data-grid-premium@7.29.5` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
25
|
+
|
|
26
|
+
Same changes as in `@mui/x-data-grid-pro@7.29.5`.
|
|
27
|
+
|
|
28
|
+
## 7.29.4
|
|
29
|
+
|
|
30
|
+
_May 22, 2025_
|
|
31
|
+
|
|
32
|
+
We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
|
|
33
|
+
|
|
34
|
+
- 🐞 Bugfixes
|
|
35
|
+
|
|
36
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
37
|
+
@campmarc, @whereisrmsqhs, @jyash97
|
|
38
|
+
|
|
39
|
+
Following are all team members who have contributed to this release:
|
|
40
|
+
@mapache-salvaje, @cherniavskii, @noraleonte.
|
|
41
|
+
|
|
42
|
+
<!--/ HIGHLIGHT_ABOVE_SEPARATOR /-->
|
|
43
|
+
|
|
44
|
+
### Data Grid
|
|
45
|
+
|
|
46
|
+
#### `@mui/x-data-grid@7.29.4`
|
|
47
|
+
|
|
48
|
+
- [DataGrid] Fix `renderContext` calculation loop (#17806) @cherniavskii
|
|
49
|
+
- [DataGrid] Fix column spanning jump on scroll (#17780) @cherniavskii
|
|
50
|
+
- [DataGrid] Fix content rendering for large rows while using automatic page size (#17866) @campmarc
|
|
51
|
+
|
|
52
|
+
#### `@mui/x-data-grid-pro@7.29.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
53
|
+
|
|
54
|
+
Same changes as in `@mui/x-data-grid@7.29.4`, plus:
|
|
55
|
+
|
|
56
|
+
- [DataGridPro] Add `aria-expanded` attribute to the master detail toggle button (#17890) @whereisrmsqhs
|
|
57
|
+
- [DataGridPro] Prevent text selection when reordering rows (#17920) @jyash97
|
|
58
|
+
|
|
59
|
+
#### `@mui/x-data-grid-premium@7.29.4` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
60
|
+
|
|
61
|
+
Same changes as in `@mui/x-data-grid-pro@7.29.4`.
|
|
62
|
+
|
|
63
|
+
### Date and Time Pickers
|
|
64
|
+
|
|
65
|
+
#### `@mui/x-date-pickers@7.29.4`
|
|
66
|
+
|
|
67
|
+
- [pickers] Fix `PickersTextField` overflow (#17945) @noraleonte
|
|
68
|
+
|
|
69
|
+
#### `@mui/x-date-pickers-pro@7.29.4` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
70
|
+
|
|
71
|
+
Same changes as in `@mui/x-date-pickers@7.29.4`.
|
|
72
|
+
|
|
73
|
+
### Docs
|
|
74
|
+
|
|
75
|
+
- [docs] Add "upgrade to v8" callout on v7 planned pages (#17901) @mapache-salvaje
|
|
76
|
+
|
|
6
77
|
## 7.29.3
|
|
7
78
|
|
|
8
79
|
_May 8, 2025_
|
|
@@ -46,6 +46,7 @@ function GridDetailPanelToggleCell(props) {
|
|
|
46
46
|
tabIndex: -1,
|
|
47
47
|
disabled: !hasContent,
|
|
48
48
|
className: classes.root,
|
|
49
|
+
"aria-expanded": isExpanded,
|
|
49
50
|
"aria-label": isExpanded ? apiRef.current.getLocaleText('collapseDetailPanel') : apiRef.current.getLocaleText('expandDetailPanel')
|
|
50
51
|
}, rootProps.slotProps?.baseIconButton, {
|
|
51
52
|
children: /*#__PURE__*/_jsx(Icon, {
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import composeClasses from '@mui/utils/composeClasses';
|
|
5
|
-
import { gridRowMaximumTreeDepthSelector, gridSortModelSelector, useGridApiContext, useGridSelector, getDataGridUtilityClass } from '@mui/x-data-grid';
|
|
5
|
+
import { gridRowMaximumTreeDepthSelector, gridSortModelSelector, useGridApiContext, useGridSelector, getDataGridUtilityClass, gridClasses } from '@mui/x-data-grid';
|
|
6
6
|
import { gridEditRowsStateSelector, isEventTargetInPortal } from '@mui/x-data-grid/internals';
|
|
7
7
|
import { useGridRootProps } from "../hooks/utils/useGridRootProps.js";
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -48,10 +48,23 @@ function GridRowReorderCell(params) {
|
|
|
48
48
|
propHandler(event);
|
|
49
49
|
}
|
|
50
50
|
}, [apiRef, params.id]);
|
|
51
|
+
const handleMouseDown = React.useCallback(() => {
|
|
52
|
+
// Prevent text selection as it will block all the drag events. More context: https://github.com/mui/mui-x/issues/16303
|
|
53
|
+
apiRef.current.rootElementRef?.current?.classList.add(gridClasses['root--disableUserSelection']);
|
|
54
|
+
}, [apiRef]);
|
|
55
|
+
const handleMouseUp = React.useCallback(() => {
|
|
56
|
+
apiRef.current.rootElementRef?.current?.classList.remove(gridClasses['root--disableUserSelection']);
|
|
57
|
+
}, [apiRef]);
|
|
58
|
+
const handleDragEnd = React.useCallback(event => {
|
|
59
|
+
handleMouseUp();
|
|
60
|
+
publish('rowDragEnd')(event);
|
|
61
|
+
}, [publish, handleMouseUp]);
|
|
51
62
|
const draggableEventHandlers = isDraggable ? {
|
|
52
63
|
onDragStart: publish('rowDragStart'),
|
|
53
64
|
onDragOver: publish('rowDragOver'),
|
|
54
|
-
onDragEnd:
|
|
65
|
+
onDragEnd: handleDragEnd,
|
|
66
|
+
onMouseDown: handleMouseDown,
|
|
67
|
+
onMouseUp: handleMouseUp
|
|
55
68
|
} : null;
|
|
56
69
|
if (params.rowNode.type === 'footer') {
|
|
57
70
|
return null;
|
package/index.js
CHANGED
|
@@ -46,6 +46,7 @@ function GridDetailPanelToggleCell(props) {
|
|
|
46
46
|
tabIndex: -1,
|
|
47
47
|
disabled: !hasContent,
|
|
48
48
|
className: classes.root,
|
|
49
|
+
"aria-expanded": isExpanded,
|
|
49
50
|
"aria-label": isExpanded ? apiRef.current.getLocaleText('collapseDetailPanel') : apiRef.current.getLocaleText('expandDetailPanel')
|
|
50
51
|
}, rootProps.slotProps?.baseIconButton, {
|
|
51
52
|
children: /*#__PURE__*/_jsx(Icon, {
|
|
@@ -2,7 +2,7 @@ import _extends from "@babel/runtime/helpers/esm/extends";
|
|
|
2
2
|
import * as React from 'react';
|
|
3
3
|
import PropTypes from 'prop-types';
|
|
4
4
|
import composeClasses from '@mui/utils/composeClasses';
|
|
5
|
-
import { gridRowMaximumTreeDepthSelector, gridSortModelSelector, useGridApiContext, useGridSelector, getDataGridUtilityClass } from '@mui/x-data-grid';
|
|
5
|
+
import { gridRowMaximumTreeDepthSelector, gridSortModelSelector, useGridApiContext, useGridSelector, getDataGridUtilityClass, gridClasses } from '@mui/x-data-grid';
|
|
6
6
|
import { gridEditRowsStateSelector, isEventTargetInPortal } from '@mui/x-data-grid/internals';
|
|
7
7
|
import { useGridRootProps } from "../hooks/utils/useGridRootProps.js";
|
|
8
8
|
import { jsx as _jsx, jsxs as _jsxs } from "react/jsx-runtime";
|
|
@@ -48,10 +48,23 @@ function GridRowReorderCell(params) {
|
|
|
48
48
|
propHandler(event);
|
|
49
49
|
}
|
|
50
50
|
}, [apiRef, params.id]);
|
|
51
|
+
const handleMouseDown = React.useCallback(() => {
|
|
52
|
+
// Prevent text selection as it will block all the drag events. More context: https://github.com/mui/mui-x/issues/16303
|
|
53
|
+
apiRef.current.rootElementRef?.current?.classList.add(gridClasses['root--disableUserSelection']);
|
|
54
|
+
}, [apiRef]);
|
|
55
|
+
const handleMouseUp = React.useCallback(() => {
|
|
56
|
+
apiRef.current.rootElementRef?.current?.classList.remove(gridClasses['root--disableUserSelection']);
|
|
57
|
+
}, [apiRef]);
|
|
58
|
+
const handleDragEnd = React.useCallback(event => {
|
|
59
|
+
handleMouseUp();
|
|
60
|
+
publish('rowDragEnd')(event);
|
|
61
|
+
}, [publish, handleMouseUp]);
|
|
51
62
|
const draggableEventHandlers = isDraggable ? {
|
|
52
63
|
onDragStart: publish('rowDragStart'),
|
|
53
64
|
onDragOver: publish('rowDragOver'),
|
|
54
|
-
onDragEnd:
|
|
65
|
+
onDragEnd: handleDragEnd,
|
|
66
|
+
onMouseDown: handleMouseDown,
|
|
67
|
+
onMouseUp: handleMouseUp
|
|
55
68
|
} : null;
|
|
56
69
|
if (params.rowNode.type === 'footer') {
|
|
57
70
|
return null;
|
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 = "MTc0ODQ2OTYwMDAwMA==";
|
|
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
|
|
@@ -54,6 +54,7 @@ function GridDetailPanelToggleCell(props) {
|
|
|
54
54
|
tabIndex: -1,
|
|
55
55
|
disabled: !hasContent,
|
|
56
56
|
className: classes.root,
|
|
57
|
+
"aria-expanded": isExpanded,
|
|
57
58
|
"aria-label": isExpanded ? apiRef.current.getLocaleText('collapseDetailPanel') : apiRef.current.getLocaleText('expandDetailPanel')
|
|
58
59
|
}, rootProps.slotProps?.baseIconButton, {
|
|
59
60
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Icon, {
|
|
@@ -57,10 +57,23 @@ function GridRowReorderCell(params) {
|
|
|
57
57
|
propHandler(event);
|
|
58
58
|
}
|
|
59
59
|
}, [apiRef, params.id]);
|
|
60
|
+
const handleMouseDown = React.useCallback(() => {
|
|
61
|
+
// Prevent text selection as it will block all the drag events. More context: https://github.com/mui/mui-x/issues/16303
|
|
62
|
+
apiRef.current.rootElementRef?.current?.classList.add(_xDataGrid.gridClasses['root--disableUserSelection']);
|
|
63
|
+
}, [apiRef]);
|
|
64
|
+
const handleMouseUp = React.useCallback(() => {
|
|
65
|
+
apiRef.current.rootElementRef?.current?.classList.remove(_xDataGrid.gridClasses['root--disableUserSelection']);
|
|
66
|
+
}, [apiRef]);
|
|
67
|
+
const handleDragEnd = React.useCallback(event => {
|
|
68
|
+
handleMouseUp();
|
|
69
|
+
publish('rowDragEnd')(event);
|
|
70
|
+
}, [publish, handleMouseUp]);
|
|
60
71
|
const draggableEventHandlers = isDraggable ? {
|
|
61
72
|
onDragStart: publish('rowDragStart'),
|
|
62
73
|
onDragOver: publish('rowDragOver'),
|
|
63
|
-
onDragEnd:
|
|
74
|
+
onDragEnd: handleDragEnd,
|
|
75
|
+
onMouseDown: handleMouseDown,
|
|
76
|
+
onMouseUp: handleMouseUp
|
|
64
77
|
} : null;
|
|
65
78
|
if (params.rowNode.type === 'footer') {
|
|
66
79
|
return null;
|
package/node/index.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 = "MTc0ODQ2OTYwMDAwMA==";
|
|
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": "7.29.
|
|
3
|
+
"version": "7.29.5",
|
|
4
4
|
"description": "The Pro plan edition of the Data Grid components (MUI X).",
|
|
5
5
|
"author": "MUI Team",
|
|
6
6
|
"main": "./node/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.29.5",
|
|
42
43
|
"@mui/x-internals": "7.29.0",
|
|
43
|
-
"@mui/x-license": "7.29.1"
|
|
44
|
-
"@mui/x-data-grid": "7.29.3"
|
|
44
|
+
"@mui/x-license": "7.29.1"
|
|
45
45
|
},
|
|
46
46
|
"peerDependencies": {
|
|
47
47
|
"@emotion/react": "^11.9.0",
|
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 = "MTc0ODQ2OTYwMDAwMA==";
|
|
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
|