@mui/x-data-grid-pro 6.11.0 → 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 CHANGED
@@ -3,6 +3,124 @@
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` [![pro](https://mui.com/r/x-pro-svg)](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` [![premium](https://mui.com/r/x-premium-svg)](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` [![pro](https://mui.com/r/x-pro-svg)](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
+
62
+ ## 6.11.1
63
+
64
+ _Aug 11, 2023_
65
+
66
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
67
+
68
+ - 💫 Add theme augmentation to `@mui/x-tree-view`
69
+ - 📈 Enable charts customization using `slot` and `slotProps` props
70
+ - 🌍 Improve Finnish (fi-FI) and Icelandic (is-IS) locales on the pickers
71
+ - 🐞 Bugfixes
72
+ - 📚 Documentation improvements
73
+
74
+ ### Data Grid
75
+
76
+ #### `@mui/x-data-grid@6.11.1`
77
+
78
+ - [DataGrid] `getCellAggregationResult`: Handle `null` `rowNode` case (#9915) @romgrk
79
+
80
+ #### `@mui/x-data-grid-pro@6.11.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
81
+
82
+ Same changes as in `@mui/x-data-grid@6.11.1`.
83
+
84
+ #### `@mui/x-data-grid-premium@6.11.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link)
85
+
86
+ Same changes as in `@mui/x-data-grid-pro@6.11.1`.
87
+
88
+ ### Date Pickers
89
+
90
+ #### `@mui/x-date-pickers@6.11.1`
91
+
92
+ - [fields] Use `numeric` `inputmode` instead of `tel` (#9918) @LukasTy
93
+ - [pickers] Always respect locale when formatting meridiem (#9979) @flaviendelangle
94
+ - [pickers] Call `onChange` when selecting a shortcut with `changeImportance="set"` (#9974) @flaviendelangle
95
+ - [pickers] Refactor `themeAugmentation` `styleOverrides` (#9978) @LukasTy
96
+ - [l10n] Improve Finnish (fi-FI) locale (#9795) @kurkle
97
+ - [l10n] Improve Icelandic (is-IS) locale (#9639) @magnimarels
98
+
99
+ #### `@mui/x-date-pickers-pro@6.11.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link)
100
+
101
+ Same changes as in `@mui/x-date-pickers@6.11.1`.
102
+
103
+ ### Charts / `@mui/x-charts@v6.0.0-alpha.7`
104
+
105
+ - [charts] Fix label and tick alignment (#9952) @LukasTy
106
+ - [charts] Remove not functional component `styleOverrides` (#9996) @LukasTy
107
+ - [charts] Set custom ticks number (#9922) @alexfauquette
108
+ - [charts] Use `slot`/`slotProps` for customization (#9744) @alexfauquette
109
+ - [charts] Extend cheerful fiesta palette (#9980) @noraleonte
110
+
111
+ ### Tree View / `@mui/x-tree-view@v6.0.0-alpha.1`
112
+
113
+ - [TreeView] Add theme augmentation (#9967) @flaviendelangle
114
+
115
+ ### Docs
116
+
117
+ - [docs] Clarify the `shouldDisableClock` migration code options (#9920) @LukasTy
118
+
119
+ ### Core
120
+
121
+ - [core] Port GitHub workflow for ensuring triage label is present (#9924) @DanailH
122
+ - [docs-infra] Fix the import samples in Api pages (#9898) @alexfauquette
123
+
6
124
  ## 6.11.0
7
125
 
8
126
  _Aug 4, 2023_
@@ -2810,7 +2928,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
2810
2928
 
2811
2929
  #### Changes
2812
2930
 
2813
- - [DateRangePicker] Fix input focused style and mobile behaviour (#6645) @LukasTy
2931
+ - [DateRangePicker] Fix input focused style and mobile behavior (#6645) @LukasTy
2814
2932
  - [fields] Update sections when the locale changes (#6649) @flaviendelangle
2815
2933
  - [pickers] Add Ukrainian (uk-UA) locale (#6661) @Dufran
2816
2934
  - [pickers] Allow non-controlled usage of the calendar components (#6643) @flaviendelangle
@@ -1,3 +1,4 @@
1
+ export { SUBMIT_FILTER_STROKE_TIME, SUBMIT_FILTER_DATE_STROKE_TIME } from '@mui/x-data-grid';
1
2
  /**
2
3
  * @deprecated Import DataGridPro instead.
3
4
  */
@@ -1,3 +1,5 @@
1
+ export { SUBMIT_FILTER_STROKE_TIME, SUBMIT_FILTER_DATE_STROKE_TIME } from '@mui/x-data-grid';
2
+
1
3
  /**
2
4
  * @deprecated Import DataGridPro instead.
3
5
  */
@@ -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' && ref.current && typeof ResizeObserver === 'undefined') {
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 (!ref.current || hasFixedHeight || typeof ResizeObserver === 'undefined') {
42
+ if (hasFixedHeight || typeof ResizeObserver === 'undefined') {
43
43
  return undefined;
44
44
  }
45
45
  const resizeObserver = new ResizeObserver(entries => {
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.11.0
2
+ * @mui/x-data-grid-pro v6.11.2
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,3 +1,5 @@
1
+ export { SUBMIT_FILTER_STROKE_TIME, SUBMIT_FILTER_DATE_STROKE_TIME } from '@mui/x-data-grid';
2
+
1
3
  /**
2
4
  * @deprecated Import DataGridPro instead.
3
5
  */
@@ -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' && ref.current && typeof ResizeObserver === 'undefined') {
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 (!ref.current || hasFixedHeight || typeof ResizeObserver === 'undefined') {
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,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.11.0
2
+ * @mui/x-data-grid-pro v6.11.2
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export var getReleaseInfo = function getReleaseInfo() {
3
- var releaseInfo = "MTY5MTA4OTIwMDAwMA==";
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
@@ -1,3 +1,5 @@
1
+ export { SUBMIT_FILTER_STROKE_TIME, SUBMIT_FILTER_DATE_STROKE_TIME } from '@mui/x-data-grid';
2
+
1
3
  /**
2
4
  * @deprecated Import DataGridPro instead.
3
5
  */
@@ -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' && ref.current && typeof ResizeObserver === 'undefined') {
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 (!ref.current || hasFixedHeight || typeof ResizeObserver === 'undefined') {
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,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.11.0
2
+ * @mui/x-data-grid-pro v6.11.2
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY5MTA4OTIwMDAwMA==";
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' && ref.current && typeof ResizeObserver === 'undefined') {
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 (!ref.current || hasFixedHeight || typeof ResizeObserver === 'undefined') {
51
+ if (hasFixedHeight || typeof ResizeObserver === 'undefined') {
52
52
  return undefined;
53
53
  }
54
54
  const resizeObserver = new ResizeObserver(entries => {
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-pro v6.11.0
2
+ * @mui/x-data-grid-pro v6.11.2
3
3
  *
4
4
  * @license MUI X Commercial
5
5
  * This source code is licensed under the commercial license found in the
@@ -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 = "MTY5MTA4OTIwMDAwMA==";
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.0",
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,11 +32,11 @@
32
32
  },
33
33
  "dependencies": {
34
34
  "@babel/runtime": "^7.22.6",
35
- "@mui/utils": "^5.14.1",
36
- "@mui/x-data-grid": "6.11.0",
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
- "clsx": "^1.2.1",
39
+ "clsx": "^2.0.0",
40
40
  "prop-types": "^15.8.1",
41
41
  "reselect": "^4.1.8"
42
42
  },
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY5MTA4OTIwMDAwMA==";
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