@mui/x-data-grid-pro 6.11.1 → 6.11.2
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 +57 -1
- package/DataGridPro/DataGrid.d.ts +1 -0
- package/DataGridPro/DataGrid.js +2 -0
- package/DataGridPro/DataGridPro.js +11 -0
- package/components/GridDetailPanel.js +2 -2
- package/index.js +1 -1
- package/legacy/DataGridPro/DataGrid.js +2 -0
- package/legacy/DataGridPro/DataGridPro.js +11 -0
- package/legacy/components/GridDetailPanel.js +2 -2
- package/legacy/index.js +1 -1
- package/legacy/utils/releaseInfo.js +1 -1
- package/modern/DataGridPro/DataGrid.js +2 -0
- package/modern/DataGridPro/DataGridPro.js +11 -0
- package/modern/components/GridDetailPanel.js +2 -2
- package/modern/index.js +1 -1
- package/modern/utils/releaseInfo.js +1 -1
- package/node/DataGridPro/DataGrid.js +13 -0
- package/node/DataGridPro/DataGridPro.js +11 -0
- package/node/components/GridDetailPanel.js +2 -2
- 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,62 @@
|
|
|
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.11.2
|
|
7
|
+
|
|
8
|
+
_Aug 17, 2023_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🏎️ Lower the filtering delay in the grid
|
|
13
|
+
- 🌍 Improve Spanish (es-ES) locale on the data grid
|
|
14
|
+
- 🐞 Bugfixes
|
|
15
|
+
- 📚 Documentation improvements
|
|
16
|
+
|
|
17
|
+
### Data Grid
|
|
18
|
+
|
|
19
|
+
#### `@mui/x-data-grid@v6.11.2`
|
|
20
|
+
|
|
21
|
+
- [DataGrid] Fix `eval` blocked by CSP (#9863) @romgrk
|
|
22
|
+
- [DataGrid] Fix row id bug (#10051) @romgrk
|
|
23
|
+
- [DataGrid] Honor `disableExport` flag in Print Export (#10044) @MBilalShafi
|
|
24
|
+
- [DataGrid] Lower filter debounce delay (#9712) @romgrk
|
|
25
|
+
- [DataGrid] Unhide potential ref binding issue (#9965) @oliviertassinari
|
|
26
|
+
- [l10n] Improve Chinese (zh-CN) and Chinese(traditional) (zh-TW) locales (#9999) @MyNameIsTakenOMG
|
|
27
|
+
- [l10n] Improve Spanish (es-ES) locale (#10037) @Macampu420
|
|
28
|
+
|
|
29
|
+
#### `@mui/x-data-grid-pro@v6.11.2` [](https://mui.com/r/x-pro-svg-link)
|
|
30
|
+
|
|
31
|
+
Same changes as in `@mui/x-data-grid@v6.11.2`.
|
|
32
|
+
|
|
33
|
+
#### `@mui/x-data-grid-premium@v6.11.2` [](https://mui.com/r/x-premium-svg-link)
|
|
34
|
+
|
|
35
|
+
Same changes as in `@mui/x-data-grid-pro@v6.11.2`.
|
|
36
|
+
|
|
37
|
+
### Date Pickers
|
|
38
|
+
|
|
39
|
+
#### `@mui/x-date-pickers@v6.11.2`
|
|
40
|
+
|
|
41
|
+
- [pickers] Fix month switcher RTL (#10003) @alexfauquette
|
|
42
|
+
- [pickers] Follow-up on using device motion reduction preference (#9858) @LukasTy
|
|
43
|
+
- [pickers] Pass the shortcut information in the `onChange` context (#9985) @flaviendelangle
|
|
44
|
+
- [pickers] Replace `Grid` toolbar component with a styled `div` (#10052) @LukasTy
|
|
45
|
+
|
|
46
|
+
#### `@mui/x-date-pickers-pro@v6.11.2` [](https://mui.com/r/x-pro-svg-link)
|
|
47
|
+
|
|
48
|
+
Same changes as in `@mui/x-date-pickers@v6.11.2`.
|
|
49
|
+
|
|
50
|
+
### Docs
|
|
51
|
+
|
|
52
|
+
- [docs] Add migration guide for the Tree View (#9987) @flaviendelangle
|
|
53
|
+
- [docs] Fix en-US changelog @oliviertassinari
|
|
54
|
+
- [docs] Update column types (#10040) @romgrk
|
|
55
|
+
|
|
56
|
+
### Core
|
|
57
|
+
|
|
58
|
+
- [core] Remove unnecessary Box (#9831) @oliviertassinari
|
|
59
|
+
- [core] Set GitHub Action top level permission @oliviertassinari
|
|
60
|
+
- [core] Split the pickers test utils (#9976) @flaviendelangle
|
|
61
|
+
|
|
6
62
|
## 6.11.1
|
|
7
63
|
|
|
8
64
|
_Aug 11, 2023_
|
|
@@ -2872,7 +2928,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
|
|
|
2872
2928
|
|
|
2873
2929
|
#### Changes
|
|
2874
2930
|
|
|
2875
|
-
- [DateRangePicker] Fix input focused style and mobile
|
|
2931
|
+
- [DateRangePicker] Fix input focused style and mobile behavior (#6645) @LukasTy
|
|
2876
2932
|
- [fields] Update sections when the locale changes (#6649) @flaviendelangle
|
|
2877
2933
|
- [pickers] Add Ukrainian (uk-UA) locale (#6661) @Dufran
|
|
2878
2934
|
- [pickers] Allow non-controlled usage of the calendar components (#6643) @flaviendelangle
|
package/DataGridPro/DataGrid.js
CHANGED
|
@@ -193,6 +193,12 @@ DataGridProRaw.propTypes = {
|
|
|
193
193
|
* @default false
|
|
194
194
|
*/
|
|
195
195
|
disableDensitySelector: PropTypes.bool,
|
|
196
|
+
/**
|
|
197
|
+
* If `true`, `eval()` is not used for performance optimization.
|
|
198
|
+
* @default false
|
|
199
|
+
* @ignore - do not document
|
|
200
|
+
*/
|
|
201
|
+
disableEval: PropTypes.bool,
|
|
196
202
|
/**
|
|
197
203
|
* If `true`, filtering with multiple columns is disabled.
|
|
198
204
|
* @default false
|
|
@@ -233,6 +239,11 @@ DataGridProRaw.propTypes = {
|
|
|
233
239
|
lazyLoading: PropTypes.bool,
|
|
234
240
|
warnIfFocusStateIsNotSynced: PropTypes.bool
|
|
235
241
|
}),
|
|
242
|
+
/**
|
|
243
|
+
* The milliseconds delay to wait after a keystroke before triggering filtering.
|
|
244
|
+
* @default 150
|
|
245
|
+
*/
|
|
246
|
+
filterDebounceMs: PropTypes.number,
|
|
236
247
|
/**
|
|
237
248
|
* Filtering can be processed on the server or client-side.
|
|
238
249
|
* Set it to 'server' if you would like to handle filtering on the server-side.
|
|
@@ -32,14 +32,14 @@ function GridDetailPanel(props) {
|
|
|
32
32
|
const rootProps = useGridRootProps();
|
|
33
33
|
const ownerState = rootProps;
|
|
34
34
|
React.useLayoutEffect(() => {
|
|
35
|
-
if (height === 'auto' &&
|
|
35
|
+
if (height === 'auto' && typeof ResizeObserver === 'undefined') {
|
|
36
36
|
// Fallback for IE
|
|
37
37
|
apiRef.current.storeDetailPanelHeight(rowId, ref.current.clientHeight);
|
|
38
38
|
}
|
|
39
39
|
}, [apiRef, height, rowId]);
|
|
40
40
|
React.useLayoutEffect(() => {
|
|
41
41
|
const hasFixedHeight = height !== 'auto';
|
|
42
|
-
if (
|
|
42
|
+
if (hasFixedHeight || typeof ResizeObserver === 'undefined') {
|
|
43
43
|
return undefined;
|
|
44
44
|
}
|
|
45
45
|
const resizeObserver = new ResizeObserver(entries => {
|
package/index.js
CHANGED
|
@@ -193,6 +193,12 @@ DataGridProRaw.propTypes = {
|
|
|
193
193
|
* @default false
|
|
194
194
|
*/
|
|
195
195
|
disableDensitySelector: PropTypes.bool,
|
|
196
|
+
/**
|
|
197
|
+
* If `true`, `eval()` is not used for performance optimization.
|
|
198
|
+
* @default false
|
|
199
|
+
* @ignore - do not document
|
|
200
|
+
*/
|
|
201
|
+
disableEval: PropTypes.bool,
|
|
196
202
|
/**
|
|
197
203
|
* If `true`, filtering with multiple columns is disabled.
|
|
198
204
|
* @default false
|
|
@@ -233,6 +239,11 @@ DataGridProRaw.propTypes = {
|
|
|
233
239
|
lazyLoading: PropTypes.bool,
|
|
234
240
|
warnIfFocusStateIsNotSynced: PropTypes.bool
|
|
235
241
|
}),
|
|
242
|
+
/**
|
|
243
|
+
* The milliseconds delay to wait after a keystroke before triggering filtering.
|
|
244
|
+
* @default 150
|
|
245
|
+
*/
|
|
246
|
+
filterDebounceMs: PropTypes.number,
|
|
236
247
|
/**
|
|
237
248
|
* Filtering can be processed on the server or client-side.
|
|
238
249
|
* Set it to 'server' if you would like to handle filtering on the server-side.
|
|
@@ -35,14 +35,14 @@ function GridDetailPanel(props) {
|
|
|
35
35
|
var rootProps = useGridRootProps();
|
|
36
36
|
var ownerState = rootProps;
|
|
37
37
|
React.useLayoutEffect(function () {
|
|
38
|
-
if (height === 'auto' &&
|
|
38
|
+
if (height === 'auto' && typeof ResizeObserver === 'undefined') {
|
|
39
39
|
// Fallback for IE
|
|
40
40
|
apiRef.current.storeDetailPanelHeight(rowId, ref.current.clientHeight);
|
|
41
41
|
}
|
|
42
42
|
}, [apiRef, height, rowId]);
|
|
43
43
|
React.useLayoutEffect(function () {
|
|
44
44
|
var hasFixedHeight = height !== 'auto';
|
|
45
|
-
if (
|
|
45
|
+
if (hasFixedHeight || typeof ResizeObserver === 'undefined') {
|
|
46
46
|
return undefined;
|
|
47
47
|
}
|
|
48
48
|
var resizeObserver = new ResizeObserver(function (entries) {
|
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 = "MTY5MjI0NDgwMDAwMA==";
|
|
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
|
|
@@ -193,6 +193,12 @@ DataGridProRaw.propTypes = {
|
|
|
193
193
|
* @default false
|
|
194
194
|
*/
|
|
195
195
|
disableDensitySelector: PropTypes.bool,
|
|
196
|
+
/**
|
|
197
|
+
* If `true`, `eval()` is not used for performance optimization.
|
|
198
|
+
* @default false
|
|
199
|
+
* @ignore - do not document
|
|
200
|
+
*/
|
|
201
|
+
disableEval: PropTypes.bool,
|
|
196
202
|
/**
|
|
197
203
|
* If `true`, filtering with multiple columns is disabled.
|
|
198
204
|
* @default false
|
|
@@ -233,6 +239,11 @@ DataGridProRaw.propTypes = {
|
|
|
233
239
|
lazyLoading: PropTypes.bool,
|
|
234
240
|
warnIfFocusStateIsNotSynced: PropTypes.bool
|
|
235
241
|
}),
|
|
242
|
+
/**
|
|
243
|
+
* The milliseconds delay to wait after a keystroke before triggering filtering.
|
|
244
|
+
* @default 150
|
|
245
|
+
*/
|
|
246
|
+
filterDebounceMs: PropTypes.number,
|
|
236
247
|
/**
|
|
237
248
|
* Filtering can be processed on the server or client-side.
|
|
238
249
|
* Set it to 'server' if you would like to handle filtering on the server-side.
|
|
@@ -32,14 +32,14 @@ function GridDetailPanel(props) {
|
|
|
32
32
|
const rootProps = useGridRootProps();
|
|
33
33
|
const ownerState = rootProps;
|
|
34
34
|
React.useLayoutEffect(() => {
|
|
35
|
-
if (height === 'auto' &&
|
|
35
|
+
if (height === 'auto' && typeof ResizeObserver === 'undefined') {
|
|
36
36
|
// Fallback for IE
|
|
37
37
|
apiRef.current.storeDetailPanelHeight(rowId, ref.current.clientHeight);
|
|
38
38
|
}
|
|
39
39
|
}, [apiRef, height, rowId]);
|
|
40
40
|
React.useLayoutEffect(() => {
|
|
41
41
|
const hasFixedHeight = height !== 'auto';
|
|
42
|
-
if (
|
|
42
|
+
if (hasFixedHeight || typeof ResizeObserver === 'undefined') {
|
|
43
43
|
return undefined;
|
|
44
44
|
}
|
|
45
45
|
const resizeObserver = new ResizeObserver(entries => {
|
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 = "MTY5MjI0NDgwMDAwMA==";
|
|
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
|
|
@@ -5,6 +5,19 @@ Object.defineProperty(exports, "__esModule", {
|
|
|
5
5
|
});
|
|
6
6
|
exports.DataGrid = DataGrid;
|
|
7
7
|
exports.DataGridPremium = DataGridPremium;
|
|
8
|
+
Object.defineProperty(exports, "SUBMIT_FILTER_DATE_STROKE_TIME", {
|
|
9
|
+
enumerable: true,
|
|
10
|
+
get: function () {
|
|
11
|
+
return _xDataGrid.SUBMIT_FILTER_DATE_STROKE_TIME;
|
|
12
|
+
}
|
|
13
|
+
});
|
|
14
|
+
Object.defineProperty(exports, "SUBMIT_FILTER_STROKE_TIME", {
|
|
15
|
+
enumerable: true,
|
|
16
|
+
get: function () {
|
|
17
|
+
return _xDataGrid.SUBMIT_FILTER_STROKE_TIME;
|
|
18
|
+
}
|
|
19
|
+
});
|
|
20
|
+
var _xDataGrid = require("@mui/x-data-grid");
|
|
8
21
|
/**
|
|
9
22
|
* @deprecated Import DataGridPro instead.
|
|
10
23
|
*/
|
|
@@ -202,6 +202,12 @@ DataGridProRaw.propTypes = {
|
|
|
202
202
|
* @default false
|
|
203
203
|
*/
|
|
204
204
|
disableDensitySelector: _propTypes.default.bool,
|
|
205
|
+
/**
|
|
206
|
+
* If `true`, `eval()` is not used for performance optimization.
|
|
207
|
+
* @default false
|
|
208
|
+
* @ignore - do not document
|
|
209
|
+
*/
|
|
210
|
+
disableEval: _propTypes.default.bool,
|
|
205
211
|
/**
|
|
206
212
|
* If `true`, filtering with multiple columns is disabled.
|
|
207
213
|
* @default false
|
|
@@ -242,6 +248,11 @@ DataGridProRaw.propTypes = {
|
|
|
242
248
|
lazyLoading: _propTypes.default.bool,
|
|
243
249
|
warnIfFocusStateIsNotSynced: _propTypes.default.bool
|
|
244
250
|
}),
|
|
251
|
+
/**
|
|
252
|
+
* The milliseconds delay to wait after a keystroke before triggering filtering.
|
|
253
|
+
* @default 150
|
|
254
|
+
*/
|
|
255
|
+
filterDebounceMs: _propTypes.default.number,
|
|
245
256
|
/**
|
|
246
257
|
* Filtering can be processed on the server or client-side.
|
|
247
258
|
* Set it to 'server' if you would like to handle filtering on the server-side.
|
|
@@ -41,14 +41,14 @@ function GridDetailPanel(props) {
|
|
|
41
41
|
const rootProps = (0, _useGridRootProps.useGridRootProps)();
|
|
42
42
|
const ownerState = rootProps;
|
|
43
43
|
React.useLayoutEffect(() => {
|
|
44
|
-
if (height === 'auto' &&
|
|
44
|
+
if (height === 'auto' && typeof ResizeObserver === 'undefined') {
|
|
45
45
|
// Fallback for IE
|
|
46
46
|
apiRef.current.storeDetailPanelHeight(rowId, ref.current.clientHeight);
|
|
47
47
|
}
|
|
48
48
|
}, [apiRef, height, rowId]);
|
|
49
49
|
React.useLayoutEffect(() => {
|
|
50
50
|
const hasFixedHeight = height !== 'auto';
|
|
51
|
-
if (
|
|
51
|
+
if (hasFixedHeight || typeof ResizeObserver === 'undefined') {
|
|
52
52
|
return undefined;
|
|
53
53
|
}
|
|
54
54
|
const resizeObserver = new ResizeObserver(entries => {
|
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 = "MTY5MjI0NDgwMDAwMA==";
|
|
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.11.
|
|
3
|
+
"version": "6.11.2",
|
|
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.6",
|
|
35
|
-
"@mui/utils": "^5.14.
|
|
36
|
-
"@mui/x-data-grid": "6.11.
|
|
35
|
+
"@mui/utils": "^5.14.5",
|
|
36
|
+
"@mui/x-data-grid": "6.11.2",
|
|
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 = "MTY5MjI0NDgwMDAwMA==";
|
|
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
|