@mui/x-data-grid-pro 5.17.23 → 5.17.24
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 +24 -0
- package/hooks/features/columnReorder/useGridColumnReorder.js +5 -0
- package/index.js +1 -1
- package/legacy/hooks/features/columnReorder/useGridColumnReorder.js +5 -0
- package/legacy/index.js +1 -1
- package/legacy/utils/releaseInfo.js +1 -1
- package/modern/hooks/features/columnReorder/useGridColumnReorder.js +5 -0
- package/modern/index.js +1 -1
- package/modern/utils/releaseInfo.js +1 -1
- package/node/hooks/features/columnReorder/useGridColumnReorder.js +5 -0
- package/node/index.js +1 -1
- package/node/utils/releaseInfo.js +1 -1
- package/package.json +2 -2
- package/utils/releaseInfo.js +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,30 @@
|
|
|
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
|
+
## 5.17.24
|
|
7
|
+
|
|
8
|
+
_Feb 16, 2023_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🌍 Add Hungarian (hu-HU) locale
|
|
13
|
+
- 🐞 Bugfixes
|
|
14
|
+
|
|
15
|
+
### `@mui/x-data-grid@v5.17.24` / `@mui/x-data-grid-pro@v5.17.24` / `@mui/x-data-grid-premium@v5.17.24`
|
|
16
|
+
|
|
17
|
+
#### Changes
|
|
18
|
+
|
|
19
|
+
- [DataGrid] Allow to pass props to the `TrapFocus` inside the panel wrapper (#7897) @Vivek-Prajapatii
|
|
20
|
+
- [DataGrid] Avoid unnecessary rerenders after `updateRows` (#7945) @cherniavskii
|
|
21
|
+
- [DataGridPro] Change cursor when dragging a column (#7878) @sai6855
|
|
22
|
+
- [DataGridPremium] Fix `leafField` to have correct focus value (#7959) @MBilalShafi
|
|
23
|
+
|
|
24
|
+
### `@mui/x-date-pickers@v5.0.19` / `@mui/x-date-pickers-pro@v5.0.19`
|
|
25
|
+
|
|
26
|
+
#### Changes
|
|
27
|
+
|
|
28
|
+
- [l10n] Add Hungarian (hu-HU) locale (#7796) @noherczeg
|
|
29
|
+
|
|
6
30
|
## 5.17.23
|
|
7
31
|
|
|
8
32
|
_Feb 9, 2023_
|
|
@@ -61,6 +61,11 @@ export const useGridColumnReorder = (apiRef, props) => {
|
|
|
61
61
|
event.stopPropagation();
|
|
62
62
|
dragColNode.current = event.currentTarget;
|
|
63
63
|
dragColNode.current.classList.add(classes.columnHeaderDragging);
|
|
64
|
+
|
|
65
|
+
if (event.dataTransfer) {
|
|
66
|
+
event.dataTransfer.effectAllowed = 'move';
|
|
67
|
+
}
|
|
68
|
+
|
|
64
69
|
apiRef.current.setState(state => _extends({}, state, {
|
|
65
70
|
columnReorder: _extends({}, state.columnReorder, {
|
|
66
71
|
dragCol: params.field
|
package/index.js
CHANGED
|
@@ -63,6 +63,11 @@ export var useGridColumnReorder = function useGridColumnReorder(apiRef, props) {
|
|
|
63
63
|
event.stopPropagation();
|
|
64
64
|
dragColNode.current = event.currentTarget;
|
|
65
65
|
dragColNode.current.classList.add(classes.columnHeaderDragging);
|
|
66
|
+
|
|
67
|
+
if (event.dataTransfer) {
|
|
68
|
+
event.dataTransfer.effectAllowed = 'move';
|
|
69
|
+
}
|
|
70
|
+
|
|
66
71
|
apiRef.current.setState(function (state) {
|
|
67
72
|
return _extends({}, state, {
|
|
68
73
|
columnReorder: _extends({}, state.columnReorder, {
|
package/legacy/index.js
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { ponyfillGlobal } from '@mui/utils';
|
|
2
2
|
export var getReleaseInfo = function getReleaseInfo() {
|
|
3
|
-
var releaseInfo = "
|
|
3
|
+
var releaseInfo = "MTY3NjQ5ODQwMDAwMA==";
|
|
4
4
|
|
|
5
5
|
if (process.env.NODE_ENV !== 'production') {
|
|
6
6
|
// A simple hack to set the value in the test environment (has no build step).
|
|
@@ -61,6 +61,11 @@ export const useGridColumnReorder = (apiRef, props) => {
|
|
|
61
61
|
event.stopPropagation();
|
|
62
62
|
dragColNode.current = event.currentTarget;
|
|
63
63
|
dragColNode.current.classList.add(classes.columnHeaderDragging);
|
|
64
|
+
|
|
65
|
+
if (event.dataTransfer) {
|
|
66
|
+
event.dataTransfer.effectAllowed = 'move';
|
|
67
|
+
}
|
|
68
|
+
|
|
64
69
|
apiRef.current.setState(state => _extends({}, state, {
|
|
65
70
|
columnReorder: _extends({}, state.columnReorder, {
|
|
66
71
|
dragCol: params.field
|
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 = "MTY3NjQ5ODQwMDAwMA==";
|
|
4
4
|
|
|
5
5
|
if (process.env.NODE_ENV !== 'production') {
|
|
6
6
|
// A simple hack to set the value in the test environment (has no build step).
|
|
@@ -82,6 +82,11 @@ const useGridColumnReorder = (apiRef, props) => {
|
|
|
82
82
|
event.stopPropagation();
|
|
83
83
|
dragColNode.current = event.currentTarget;
|
|
84
84
|
dragColNode.current.classList.add(classes.columnHeaderDragging);
|
|
85
|
+
|
|
86
|
+
if (event.dataTransfer) {
|
|
87
|
+
event.dataTransfer.effectAllowed = 'move';
|
|
88
|
+
}
|
|
89
|
+
|
|
85
90
|
apiRef.current.setState(state => (0, _extends2.default)({}, state, {
|
|
86
91
|
columnReorder: (0, _extends2.default)({}, state.columnReorder, {
|
|
87
92
|
dragCol: params.field
|
package/node/index.js
CHANGED
|
@@ -8,7 +8,7 @@ exports.getReleaseInfo = void 0;
|
|
|
8
8
|
var _utils = require("@mui/utils");
|
|
9
9
|
|
|
10
10
|
const getReleaseInfo = () => {
|
|
11
|
-
const releaseInfo = "
|
|
11
|
+
const releaseInfo = "MTY3NjQ5ODQwMDAwMA==";
|
|
12
12
|
|
|
13
13
|
if (process.env.NODE_ENV !== 'production') {
|
|
14
14
|
// A simple hack to set the value in the test environment (has no build step).
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid-pro",
|
|
3
|
-
"version": "5.17.
|
|
3
|
+
"version": "5.17.24",
|
|
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.18.9",
|
|
35
35
|
"@mui/utils": "^5.10.3",
|
|
36
|
-
"@mui/x-data-grid": "5.17.
|
|
36
|
+
"@mui/x-data-grid": "5.17.24",
|
|
37
37
|
"@mui/x-license-pro": "5.17.12",
|
|
38
38
|
"@types/format-util": "^1.0.2",
|
|
39
39
|
"clsx": "^1.2.1",
|
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 = "MTY3NjQ5ODQwMDAwMA==";
|
|
4
4
|
|
|
5
5
|
if (process.env.NODE_ENV !== 'production') {
|
|
6
6
|
// A simple hack to set the value in the test environment (has no build step).
|