@mui/x-data-grid-premium 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 DataGridPremium 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 DataGridPremium instead.
3
5
  */
@@ -218,6 +218,12 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
218
218
  * @default false
219
219
  */
220
220
  disableDensitySelector: PropTypes.bool,
221
+ /**
222
+ * If `true`, `eval()` is not used for performance optimization.
223
+ * @default false
224
+ * @ignore - do not document
225
+ */
226
+ disableEval: PropTypes.bool,
221
227
  /**
222
228
  * If `true`, filtering with multiple columns is disabled.
223
229
  * @default false
@@ -264,6 +270,11 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
264
270
  lazyLoading: PropTypes.bool,
265
271
  warnIfFocusStateIsNotSynced: PropTypes.bool
266
272
  }),
273
+ /**
274
+ * The milliseconds delay to wait after a keystroke before triggering filtering.
275
+ * @default 150
276
+ */
277
+ filterDebounceMs: PropTypes.number,
267
278
  /**
268
279
  * Filtering can be processed on the server or client-side.
269
280
  * Set it to 'server' if you would like to handle filtering on the server-side.
@@ -83,6 +83,7 @@ const getAggregationValueWrappedRenderCell = ({
83
83
  */
84
84
  const getWrappedFilterOperators = ({
85
85
  value: filterOperators,
86
+ apiRef,
86
87
  getCellAggregationResult
87
88
  }) => filterOperators.map(operator => {
88
89
  const baseGetApplyFilterFn = operator.getApplyFilterFn;
@@ -105,7 +106,7 @@ const getWrappedFilterOperators = ({
105
106
  return null;
106
107
  }
107
108
  return (value, row, column, api) => {
108
- if (getCellAggregationResult(row.id, column.field) != null) {
109
+ if (getCellAggregationResult(apiRef.current.getRowId(row), column.field) != null) {
109
110
  return true;
110
111
  }
111
112
  return filterFn(value, row, column, api);
@@ -152,9 +153,6 @@ export const wrapColumnWithAggregationValue = ({
152
153
  var _rowNode$parent, _gridAggregationLooku;
153
154
  let cellAggregationPosition = null;
154
155
  const rowNode = apiRef.current.getRowNode(id);
155
- if (!rowNode) {
156
- return null;
157
- }
158
156
  if (rowNode.type === 'group') {
159
157
  cellAggregationPosition = 'inline';
160
158
  } else if (id.toString().startsWith('auto-generated-group-footer-')) {
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v6.11.1
2
+ * @mui/x-data-grid-premium 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 DataGridPremium instead.
3
5
  */
@@ -218,6 +218,12 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
218
218
  * @default false
219
219
  */
220
220
  disableDensitySelector: PropTypes.bool,
221
+ /**
222
+ * If `true`, `eval()` is not used for performance optimization.
223
+ * @default false
224
+ * @ignore - do not document
225
+ */
226
+ disableEval: PropTypes.bool,
221
227
  /**
222
228
  * If `true`, filtering with multiple columns is disabled.
223
229
  * @default false
@@ -264,6 +270,11 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
264
270
  lazyLoading: PropTypes.bool,
265
271
  warnIfFocusStateIsNotSynced: PropTypes.bool
266
272
  }),
273
+ /**
274
+ * The milliseconds delay to wait after a keystroke before triggering filtering.
275
+ * @default 150
276
+ */
277
+ filterDebounceMs: PropTypes.number,
267
278
  /**
268
279
  * Filtering can be processed on the server or client-side.
269
280
  * Set it to 'server' if you would like to handle filtering on the server-side.
@@ -80,6 +80,7 @@ var getAggregationValueWrappedRenderCell = function getAggregationValueWrappedRe
80
80
  */
81
81
  var getWrappedFilterOperators = function getWrappedFilterOperators(_ref4) {
82
82
  var filterOperators = _ref4.value,
83
+ apiRef = _ref4.apiRef,
83
84
  getCellAggregationResult = _ref4.getCellAggregationResult;
84
85
  return filterOperators.map(function (operator) {
85
86
  var baseGetApplyFilterFn = operator.getApplyFilterFn;
@@ -102,7 +103,7 @@ var getWrappedFilterOperators = function getWrappedFilterOperators(_ref4) {
102
103
  return null;
103
104
  }
104
105
  return function (value, row, column, api) {
105
- if (getCellAggregationResult(row.id, column.field) != null) {
106
+ if (getCellAggregationResult(apiRef.current.getRowId(row), column.field) != null) {
106
107
  return true;
107
108
  }
108
109
  return filterFn(value, row, column, api);
@@ -148,9 +149,6 @@ export var wrapColumnWithAggregationValue = function wrapColumnWithAggregationVa
148
149
  var _rowNode$parent, _gridAggregationLooku;
149
150
  var cellAggregationPosition = null;
150
151
  var rowNode = apiRef.current.getRowNode(id);
151
- if (!rowNode) {
152
- return null;
153
- }
154
152
  if (rowNode.type === 'group') {
155
153
  cellAggregationPosition = 'inline';
156
154
  } else if (id.toString().startsWith('auto-generated-group-footer-')) {
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v6.11.1
2
+ * @mui/x-data-grid-premium 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 DataGridPremium instead.
3
5
  */
@@ -218,6 +218,12 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
218
218
  * @default false
219
219
  */
220
220
  disableDensitySelector: PropTypes.bool,
221
+ /**
222
+ * If `true`, `eval()` is not used for performance optimization.
223
+ * @default false
224
+ * @ignore - do not document
225
+ */
226
+ disableEval: PropTypes.bool,
221
227
  /**
222
228
  * If `true`, filtering with multiple columns is disabled.
223
229
  * @default false
@@ -264,6 +270,11 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
264
270
  lazyLoading: PropTypes.bool,
265
271
  warnIfFocusStateIsNotSynced: PropTypes.bool
266
272
  }),
273
+ /**
274
+ * The milliseconds delay to wait after a keystroke before triggering filtering.
275
+ * @default 150
276
+ */
277
+ filterDebounceMs: PropTypes.number,
267
278
  /**
268
279
  * Filtering can be processed on the server or client-side.
269
280
  * Set it to 'server' if you would like to handle filtering on the server-side.
@@ -81,6 +81,7 @@ const getAggregationValueWrappedRenderCell = ({
81
81
  */
82
82
  const getWrappedFilterOperators = ({
83
83
  value: filterOperators,
84
+ apiRef,
84
85
  getCellAggregationResult
85
86
  }) => filterOperators.map(operator => {
86
87
  const baseGetApplyFilterFn = operator.getApplyFilterFn;
@@ -103,7 +104,7 @@ const getWrappedFilterOperators = ({
103
104
  return null;
104
105
  }
105
106
  return (value, row, column, api) => {
106
- if (getCellAggregationResult(row.id, column.field) != null) {
107
+ if (getCellAggregationResult(apiRef.current.getRowId(row), column.field) != null) {
107
108
  return true;
108
109
  }
109
110
  return filterFn(value, row, column, api);
@@ -149,9 +150,6 @@ export const wrapColumnWithAggregationValue = ({
149
150
  const getCellAggregationResult = (id, field) => {
150
151
  let cellAggregationPosition = null;
151
152
  const rowNode = apiRef.current.getRowNode(id);
152
- if (!rowNode) {
153
- return null;
154
- }
155
153
  if (rowNode.type === 'group') {
156
154
  cellAggregationPosition = 'inline';
157
155
  } else if (id.toString().startsWith('auto-generated-group-footer-')) {
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v6.11.1
2
+ * @mui/x-data-grid-premium 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.DataGridPro = DataGridPro;
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 DataGridPremium instead.
10
23
  */
@@ -227,6 +227,12 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
227
227
  * @default false
228
228
  */
229
229
  disableDensitySelector: _propTypes.default.bool,
230
+ /**
231
+ * If `true`, `eval()` is not used for performance optimization.
232
+ * @default false
233
+ * @ignore - do not document
234
+ */
235
+ disableEval: _propTypes.default.bool,
230
236
  /**
231
237
  * If `true`, filtering with multiple columns is disabled.
232
238
  * @default false
@@ -273,6 +279,11 @@ process.env.NODE_ENV !== "production" ? DataGridPremiumRaw.propTypes = {
273
279
  lazyLoading: _propTypes.default.bool,
274
280
  warnIfFocusStateIsNotSynced: _propTypes.default.bool
275
281
  }),
282
+ /**
283
+ * The milliseconds delay to wait after a keystroke before triggering filtering.
284
+ * @default 150
285
+ */
286
+ filterDebounceMs: _propTypes.default.number,
276
287
  /**
277
288
  * Filtering can be processed on the server or client-side.
278
289
  * Set it to 'server' if you would like to handle filtering on the server-side.
@@ -90,6 +90,7 @@ const getAggregationValueWrappedRenderCell = ({
90
90
  */
91
91
  const getWrappedFilterOperators = ({
92
92
  value: filterOperators,
93
+ apiRef,
93
94
  getCellAggregationResult
94
95
  }) => filterOperators.map(operator => {
95
96
  const baseGetApplyFilterFn = operator.getApplyFilterFn;
@@ -112,7 +113,7 @@ const getWrappedFilterOperators = ({
112
113
  return null;
113
114
  }
114
115
  return (value, row, column, api) => {
115
- if (getCellAggregationResult(row.id, column.field) != null) {
116
+ if (getCellAggregationResult(apiRef.current.getRowId(row), column.field) != null) {
116
117
  return true;
117
118
  }
118
119
  return filterFn(value, row, column, api);
@@ -158,9 +159,6 @@ const wrapColumnWithAggregationValue = ({
158
159
  const getCellAggregationResult = (id, field) => {
159
160
  let cellAggregationPosition = null;
160
161
  const rowNode = apiRef.current.getRowNode(id);
161
- if (!rowNode) {
162
- return null;
163
- }
164
162
  if (rowNode.type === 'group') {
165
163
  cellAggregationPosition = 'inline';
166
164
  } else if (id.toString().startsWith('auto-generated-group-footer-')) {
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v6.11.1
2
+ * @mui/x-data-grid-premium 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-premium",
3
- "version": "6.11.1",
3
+ "version": "6.11.2",
4
4
  "description": "The Premium plan edition of the data grid component (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",
@@ -32,9 +32,9 @@
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",
37
- "@mui/x-data-grid-pro": "6.11.1",
35
+ "@mui/utils": "^5.14.5",
36
+ "@mui/x-data-grid": "6.11.2",
37
+ "@mui/x-data-grid-pro": "6.11.2",
38
38
  "@mui/x-license-pro": "6.10.2",
39
39
  "@types/format-util": "^1.0.2",
40
40
  "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