@mui/x-data-grid-pro 6.12.0 → 6.12.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 +59 -1
- package/components/GridScrollArea.js +5 -10
- package/index.js +1 -1
- package/legacy/components/GridScrollArea.js +5 -10
- package/legacy/index.js +1 -1
- package/legacy/utils/releaseInfo.js +1 -1
- package/modern/components/GridScrollArea.js +5 -10
- package/modern/index.js +1 -1
- package/modern/utils/releaseInfo.js +1 -1
- package/node/components/GridScrollArea.js +4 -9
- 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,64 @@
|
|
|
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.12.1
|
|
7
|
+
|
|
8
|
+
_Aug 31, 2023_
|
|
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
|
+
- 🏎️ Perf improvement for line charts
|
|
13
|
+
- 🎁 Add `referenceDate` prop on pickers (#9991) @flaviendelangle
|
|
14
|
+
Find out more about this feature in the [documentation section](https://mui.com/x/react-date-pickers/base-concepts/#reference-date-when-no-value-is-defined).
|
|
15
|
+
- 🐞 Bugfixes
|
|
16
|
+
- 📚 Documentation improvements
|
|
17
|
+
|
|
18
|
+
### Data Grid
|
|
19
|
+
|
|
20
|
+
#### `@mui/x-data-grid@v6.12.1`
|
|
21
|
+
|
|
22
|
+
- [DataGrid] Add a recipe showing how to render components outside of the grid (#10121) @DanailH
|
|
23
|
+
- [DataGrid] Fix `valueFormatter` being persisted on column type change (#10041) @cherniavskii
|
|
24
|
+
- [DataGrid] Fix error when keyboard navigating an empty grid (#10081) @romgrk
|
|
25
|
+
- [DataGrid] Replace timeout with `useTimeout` (#10179) @romgrk
|
|
26
|
+
|
|
27
|
+
#### `@mui/x-data-grid-pro@v6.12.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
28
|
+
|
|
29
|
+
Same changes as in `@mui/x-data-grid@v6.12.1`.
|
|
30
|
+
|
|
31
|
+
#### `@mui/x-data-grid-premium@v6.12.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
32
|
+
|
|
33
|
+
Same changes as in `@mui/x-data-grid-pro@v6.12.1`.
|
|
34
|
+
|
|
35
|
+
### Date Pickers
|
|
36
|
+
|
|
37
|
+
#### `@mui/x-date-pickers@v6.12.1`
|
|
38
|
+
|
|
39
|
+
- [pickers] Add `referenceDate` on picker components (and `DateRangeCalendar`) (#9991) @flaviendelangle
|
|
40
|
+
|
|
41
|
+
#### `@mui/x-date-pickers-pro@v6.12.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
42
|
+
|
|
43
|
+
Same changes as in `@mui/x-date-pickers@v6.12.1`.
|
|
44
|
+
|
|
45
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.9`
|
|
46
|
+
|
|
47
|
+
- [charts] Move the line item highligh into a dedicated component (#10117) @alexfauquette
|
|
48
|
+
|
|
49
|
+
### Docs
|
|
50
|
+
|
|
51
|
+
- [docs] Add `DemoContainer` and `DemoItem` JSDoc (#10186) @LukasTy
|
|
52
|
+
- [docs] Add link to `custom layout` page (#10184) @LukasTy
|
|
53
|
+
- [docs] Add tree view nav item (#10181) @LukasTy
|
|
54
|
+
- [docs] Fix wrong chart tooltip reference (#10169) @oliviertassinari
|
|
55
|
+
- [docs] Improve chart SEO (#10170) @oliviertassinari
|
|
56
|
+
- [docs] Precise expired license key condition (#10165) @oliviertassinari
|
|
57
|
+
- [docs] Reorganize the page menu (#10139) @alexfauquette
|
|
58
|
+
|
|
59
|
+
### Core
|
|
60
|
+
|
|
61
|
+
- [core] Update babel configs (#9713) @romgrk
|
|
62
|
+
- [test] Disable false positive e2e test on webkit (#10187) @LukasTy
|
|
63
|
+
|
|
6
64
|
## 6.12.0
|
|
7
65
|
|
|
8
66
|
_Aug 25, 2023_
|
|
@@ -46,7 +104,7 @@ Same changes as in `@mui/x-data-grid-pro@v6.12.0`.
|
|
|
46
104
|
|
|
47
105
|
Same changes as in `@mui/x-date-pickers@v6.12.0`.
|
|
48
106
|
|
|
49
|
-
### Charts / `@mui/x-charts@6.
|
|
107
|
+
### Charts / `@mui/x-charts@6.0.0-alpha.8`
|
|
50
108
|
|
|
51
109
|
- [charts] Fix import issue (#10111) @alexfauquette
|
|
52
110
|
- [charts] Fix `slotProps` propagation (#10105) @alexfauquette
|
|
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { unstable_composeClasses as composeClasses, unstable_useEventCallback as useEventCallback } from '@mui/utils';
|
|
6
6
|
import { styled } from '@mui/system';
|
|
7
|
-
import { getTotalHeaderHeight } from '@mui/x-data-grid/internals';
|
|
7
|
+
import { getTotalHeaderHeight, useTimeout } from '@mui/x-data-grid/internals';
|
|
8
8
|
import { getDataGridUtilityClass, gridClasses, gridDensityFactorSelector, useGridApiContext, useGridApiEventHandler, useGridSelector, gridColumnsTotalWidthSelector } from '@mui/x-data-grid';
|
|
9
9
|
import { useGridRootProps } from '../hooks/utils/useGridRootProps';
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -47,7 +47,7 @@ function GridScrollAreaRaw(props) {
|
|
|
47
47
|
} = props;
|
|
48
48
|
const rootRef = React.useRef(null);
|
|
49
49
|
const apiRef = useGridApiContext();
|
|
50
|
-
const timeout =
|
|
50
|
+
const timeout = useTimeout();
|
|
51
51
|
const [dragging, setDragging] = React.useState(false);
|
|
52
52
|
const [canScrollMore, setCanScrollMore] = React.useState(true);
|
|
53
53
|
const densityFactor = useGridSelector(apiRef, gridDensityFactorSelector);
|
|
@@ -92,20 +92,15 @@ function GridScrollAreaRaw(props) {
|
|
|
92
92
|
throw new Error('MUI: Wrong drag direction');
|
|
93
93
|
}
|
|
94
94
|
offset = (offset - CLIFF) * SLOP + CLIFF;
|
|
95
|
-
|
|
95
|
+
|
|
96
96
|
// Avoid freeze and inertia.
|
|
97
|
-
timeout.
|
|
97
|
+
timeout.start(0, () => {
|
|
98
98
|
apiRef.current.scroll({
|
|
99
99
|
left: scrollPosition.current.left + offset,
|
|
100
100
|
top: scrollPosition.current.top
|
|
101
101
|
});
|
|
102
102
|
});
|
|
103
|
-
}, [scrollDirection, apiRef]);
|
|
104
|
-
React.useEffect(() => {
|
|
105
|
-
return () => {
|
|
106
|
-
clearTimeout(timeout.current);
|
|
107
|
-
};
|
|
108
|
-
}, []);
|
|
103
|
+
}, [scrollDirection, apiRef, timeout]);
|
|
109
104
|
const handleColumnHeaderDragStart = useEventCallback(() => {
|
|
110
105
|
setDragging(true);
|
|
111
106
|
});
|
package/index.js
CHANGED
|
@@ -6,7 +6,7 @@ import PropTypes from 'prop-types';
|
|
|
6
6
|
import clsx from 'clsx';
|
|
7
7
|
import { unstable_composeClasses as composeClasses, unstable_useEventCallback as useEventCallback } from '@mui/utils';
|
|
8
8
|
import { styled } from '@mui/system';
|
|
9
|
-
import { getTotalHeaderHeight } from '@mui/x-data-grid/internals';
|
|
9
|
+
import { getTotalHeaderHeight, useTimeout } from '@mui/x-data-grid/internals';
|
|
10
10
|
import { getDataGridUtilityClass, gridClasses, gridDensityFactorSelector, useGridApiContext, useGridApiEventHandler, useGridSelector, gridColumnsTotalWidthSelector } from '@mui/x-data-grid';
|
|
11
11
|
import { useGridRootProps } from '../hooks/utils/useGridRootProps';
|
|
12
12
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -44,7 +44,7 @@ function GridScrollAreaRaw(props) {
|
|
|
44
44
|
var scrollDirection = props.scrollDirection;
|
|
45
45
|
var rootRef = React.useRef(null);
|
|
46
46
|
var apiRef = useGridApiContext();
|
|
47
|
-
var timeout =
|
|
47
|
+
var timeout = useTimeout();
|
|
48
48
|
var _React$useState = React.useState(false),
|
|
49
49
|
_React$useState2 = _slicedToArray(_React$useState, 2),
|
|
50
50
|
dragging = _React$useState2[0],
|
|
@@ -95,20 +95,15 @@ function GridScrollAreaRaw(props) {
|
|
|
95
95
|
throw new Error('MUI: Wrong drag direction');
|
|
96
96
|
}
|
|
97
97
|
offset = (offset - CLIFF) * SLOP + CLIFF;
|
|
98
|
-
|
|
98
|
+
|
|
99
99
|
// Avoid freeze and inertia.
|
|
100
|
-
timeout.
|
|
100
|
+
timeout.start(0, function () {
|
|
101
101
|
apiRef.current.scroll({
|
|
102
102
|
left: scrollPosition.current.left + offset,
|
|
103
103
|
top: scrollPosition.current.top
|
|
104
104
|
});
|
|
105
105
|
});
|
|
106
|
-
}, [scrollDirection, apiRef]);
|
|
107
|
-
React.useEffect(function () {
|
|
108
|
-
return function () {
|
|
109
|
-
clearTimeout(timeout.current);
|
|
110
|
-
};
|
|
111
|
-
}, []);
|
|
106
|
+
}, [scrollDirection, apiRef, timeout]);
|
|
112
107
|
var handleColumnHeaderDragStart = useEventCallback(function () {
|
|
113
108
|
setDragging(true);
|
|
114
109
|
});
|
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 = "MTY5MzQzMjgwMDAwMA==";
|
|
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
|
|
@@ -4,7 +4,7 @@ import PropTypes from 'prop-types';
|
|
|
4
4
|
import clsx from 'clsx';
|
|
5
5
|
import { unstable_composeClasses as composeClasses, unstable_useEventCallback as useEventCallback } from '@mui/utils';
|
|
6
6
|
import { styled } from '@mui/system';
|
|
7
|
-
import { getTotalHeaderHeight } from '@mui/x-data-grid/internals';
|
|
7
|
+
import { getTotalHeaderHeight, useTimeout } from '@mui/x-data-grid/internals';
|
|
8
8
|
import { getDataGridUtilityClass, gridClasses, gridDensityFactorSelector, useGridApiContext, useGridApiEventHandler, useGridSelector, gridColumnsTotalWidthSelector } from '@mui/x-data-grid';
|
|
9
9
|
import { useGridRootProps } from '../hooks/utils/useGridRootProps';
|
|
10
10
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
@@ -47,7 +47,7 @@ function GridScrollAreaRaw(props) {
|
|
|
47
47
|
} = props;
|
|
48
48
|
const rootRef = React.useRef(null);
|
|
49
49
|
const apiRef = useGridApiContext();
|
|
50
|
-
const timeout =
|
|
50
|
+
const timeout = useTimeout();
|
|
51
51
|
const [dragging, setDragging] = React.useState(false);
|
|
52
52
|
const [canScrollMore, setCanScrollMore] = React.useState(true);
|
|
53
53
|
const densityFactor = useGridSelector(apiRef, gridDensityFactorSelector);
|
|
@@ -92,20 +92,15 @@ function GridScrollAreaRaw(props) {
|
|
|
92
92
|
throw new Error('MUI: Wrong drag direction');
|
|
93
93
|
}
|
|
94
94
|
offset = (offset - CLIFF) * SLOP + CLIFF;
|
|
95
|
-
|
|
95
|
+
|
|
96
96
|
// Avoid freeze and inertia.
|
|
97
|
-
timeout.
|
|
97
|
+
timeout.start(0, () => {
|
|
98
98
|
apiRef.current.scroll({
|
|
99
99
|
left: scrollPosition.current.left + offset,
|
|
100
100
|
top: scrollPosition.current.top
|
|
101
101
|
});
|
|
102
102
|
});
|
|
103
|
-
}, [scrollDirection, apiRef]);
|
|
104
|
-
React.useEffect(() => {
|
|
105
|
-
return () => {
|
|
106
|
-
clearTimeout(timeout.current);
|
|
107
|
-
};
|
|
108
|
-
}, []);
|
|
103
|
+
}, [scrollDirection, apiRef, timeout]);
|
|
109
104
|
const handleColumnHeaderDragStart = useEventCallback(() => {
|
|
110
105
|
setDragging(true);
|
|
111
106
|
});
|
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 = "MTY5MzQzMjgwMDAwMA==";
|
|
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
|
|
@@ -56,7 +56,7 @@ function GridScrollAreaRaw(props) {
|
|
|
56
56
|
} = props;
|
|
57
57
|
const rootRef = React.useRef(null);
|
|
58
58
|
const apiRef = (0, _xDataGrid.useGridApiContext)();
|
|
59
|
-
const timeout =
|
|
59
|
+
const timeout = (0, _internals.useTimeout)();
|
|
60
60
|
const [dragging, setDragging] = React.useState(false);
|
|
61
61
|
const [canScrollMore, setCanScrollMore] = React.useState(true);
|
|
62
62
|
const densityFactor = (0, _xDataGrid.useGridSelector)(apiRef, _xDataGrid.gridDensityFactorSelector);
|
|
@@ -101,20 +101,15 @@ function GridScrollAreaRaw(props) {
|
|
|
101
101
|
throw new Error('MUI: Wrong drag direction');
|
|
102
102
|
}
|
|
103
103
|
offset = (offset - CLIFF) * SLOP + CLIFF;
|
|
104
|
-
|
|
104
|
+
|
|
105
105
|
// Avoid freeze and inertia.
|
|
106
|
-
timeout.
|
|
106
|
+
timeout.start(0, () => {
|
|
107
107
|
apiRef.current.scroll({
|
|
108
108
|
left: scrollPosition.current.left + offset,
|
|
109
109
|
top: scrollPosition.current.top
|
|
110
110
|
});
|
|
111
111
|
});
|
|
112
|
-
}, [scrollDirection, apiRef]);
|
|
113
|
-
React.useEffect(() => {
|
|
114
|
-
return () => {
|
|
115
|
-
clearTimeout(timeout.current);
|
|
116
|
-
};
|
|
117
|
-
}, []);
|
|
112
|
+
}, [scrollDirection, apiRef, timeout]);
|
|
118
113
|
const handleColumnHeaderDragStart = (0, _utils.unstable_useEventCallback)(() => {
|
|
119
114
|
setDragging(true);
|
|
120
115
|
});
|
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 = "MTY5MzQzMjgwMDAwMA==";
|
|
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.12.
|
|
3
|
+
"version": "6.12.1",
|
|
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",
|
|
@@ -32,8 +32,8 @@
|
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
34
|
"@babel/runtime": "^7.22.11",
|
|
35
|
-
"@mui/utils": "^5.14.
|
|
36
|
-
"@mui/x-data-grid": "6.12.
|
|
35
|
+
"@mui/utils": "^5.14.7",
|
|
36
|
+
"@mui/x-data-grid": "6.12.1",
|
|
37
37
|
"@mui/x-license-pro": "6.10.2",
|
|
38
38
|
"@types/format-util": "^1.0.2",
|
|
39
39
|
"clsx": "^2.0.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 = "MTY5MzQzMjgwMDAwMA==";
|
|
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
|