@mui/x-data-grid-premium 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 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);
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v6.11.0
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);
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v6.11.0
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 = "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 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);
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v6.11.0
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 = "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.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);
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid-premium v6.11.0
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 = "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-premium",
3
- "version": "6.11.0",
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,12 +32,12 @@
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",
37
- "@mui/x-data-grid-pro": "6.11.0",
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
- "clsx": "^1.2.1",
40
+ "clsx": "^2.0.0",
41
41
  "exceljs": "^4.3.0",
42
42
  "prop-types": "^15.8.1",
43
43
  "reselect": "^4.1.8"
@@ -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