@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 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` [![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
+
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 behaviour (#6645) @LukasTy
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
@@ -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.1
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.1
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 = "MTY5MTcwMTIwMDAwMA==";
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.1
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 = "MTY5MTcwMTIwMDAwMA==";
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.1
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 = "MTY5MTcwMTIwMDAwMA==";
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.1",
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.3",
36
- "@mui/x-data-grid": "6.11.1",
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",
@@ -1,6 +1,6 @@
1
1
  import { ponyfillGlobal } from '@mui/utils';
2
2
  export const getReleaseInfo = () => {
3
- const releaseInfo = "MTY5MTcwMTIwMDAwMA==";
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