@mui/x-data-grid 6.18.6 → 6.18.7

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,48 @@
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.18.7
7
+
8
+ _Jan 5, 2024_
9
+
10
+ We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🌍 Improve Czech (cs-CZ) locale on Data Grid (#11429) @wensiet
13
+ - 🐞 Bugfixes
14
+
15
+ ### Data Grid
16
+
17
+ #### `@mui/x-data-grid@6.18.7`
18
+
19
+ - [DataGrid] Don't evaluate `hasEval` when `disableEval` is set (#11553) @reihwald
20
+ - [l10n] Update Czech (cs-CZ) locale (#11498) @fdebef
21
+
22
+ #### `@mui/x-data-grid-pro@6.18.7` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
23
+
24
+ Same changes as in `@mui/x-data-grid@6.18.7`.
25
+
26
+ #### `@mui/x-data-grid-premium@6.18.7` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
27
+
28
+ Same changes as in `@mui/x-data-grid-pro@6.18.7`.
29
+
30
+ ### Date Pickers
31
+
32
+ #### `@mui/x-date-pickers@6.18.7`
33
+
34
+ - [pickers] Fix views management (@LukasTy) (#11572)
35
+
36
+ #### `@mui/x-date-pickers-pro@6.18.7` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
37
+
38
+ Same changes as in `@mui/x-date-pickers@6.18.7`.
39
+
40
+ ### Charts / `@mui/x-charts@6.18.7`
41
+
42
+ - [charts] Fix `null` in line chart using dataset (@alexfauquette) (#11561)
43
+
44
+ ### Docs
45
+
46
+ - [docs] Clarify Pickers usage with Luxon (#11566) @LukasTy
47
+
6
48
  ## 6.18.6
7
49
 
8
50
  _Dec 22, 2023_
@@ -37,7 +79,7 @@ Same changes as in `@mui/x-data-grid-pro@6.18.6`.
37
79
 
38
80
  Same changes as in `@mui/x-date-pickers@6.18.6`.
39
81
 
40
- ### Charts / `@mui/x-charts@6.18.6`
82
+ ### Charts / `@mui/x-charts@6.18.4`
41
83
 
42
84
  - [charts] Allow percentage values for pie chart center and radius (#11464) @alexfauquette
43
85
  - [charts] Make error message more explicit (#11457) @alexfauquette
@@ -163,7 +163,6 @@ DataGridRaw.propTypes = {
163
163
  /**
164
164
  * If `true`, `eval()` is not used for performance optimization.
165
165
  * @default false
166
- * @ignore - do not document
167
166
  */
168
167
  disableEval: PropTypes.bool,
169
168
  /**
@@ -10,11 +10,17 @@ import { gridColumnFieldsSelector, gridColumnLookupSelector, gridVisibleColumnFi
10
10
  const globalScope = typeof window === 'undefined' ? globalThis : window;
11
11
  const evalCode = globalScope[atob('ZXZhbA==')];
12
12
  let hasEval;
13
- try {
14
- hasEval = evalCode('true');
15
- } catch (_) {
16
- hasEval = false;
17
- }
13
+ const getHasEval = () => {
14
+ if (hasEval !== undefined) {
15
+ return hasEval;
16
+ }
17
+ try {
18
+ hasEval = evalCode('true');
19
+ } catch (_) {
20
+ hasEval = false;
21
+ }
22
+ return hasEval;
23
+ };
18
24
  /**
19
25
  * Adds default values to the optional fields of a filter items.
20
26
  * @param {GridFilterItem} item The raw filter item.
@@ -164,7 +170,7 @@ const buildAggregatedFilterItemsApplier = (filterModel, apiRef, disableEval) =>
164
170
  if (appliers.length === 0) {
165
171
  return null;
166
172
  }
167
- if (!hasEval || disableEval) {
173
+ if (disableEval || !getHasEval()) {
168
174
  // This is the original logic, which is used if `eval()` is not supported (aka prevented by CSP).
169
175
  return (row, shouldApplyFilter) => {
170
176
  const resultPerItemId = {};
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid v6.18.6
2
+ * @mui/x-data-grid v6.18.7
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -165,7 +165,6 @@ DataGridRaw.propTypes = {
165
165
  /**
166
166
  * If `true`, `eval()` is not used for performance optimization.
167
167
  * @default false
168
- * @ignore - do not document
169
168
  */
170
169
  disableEval: PropTypes.bool,
171
170
  /**
@@ -10,11 +10,17 @@ import { gridColumnFieldsSelector, gridColumnLookupSelector, gridVisibleColumnFi
10
10
  var globalScope = typeof window === 'undefined' ? globalThis : window;
11
11
  var evalCode = globalScope[atob('ZXZhbA==')];
12
12
  var hasEval;
13
- try {
14
- hasEval = evalCode('true');
15
- } catch (_) {
16
- hasEval = false;
17
- }
13
+ var getHasEval = function getHasEval() {
14
+ if (hasEval !== undefined) {
15
+ return hasEval;
16
+ }
17
+ try {
18
+ hasEval = evalCode('true');
19
+ } catch (_) {
20
+ hasEval = false;
21
+ }
22
+ return hasEval;
23
+ };
18
24
  /**
19
25
  * Adds default values to the optional fields of a filter items.
20
26
  * @param {GridFilterItem} item The raw filter item.
@@ -178,7 +184,7 @@ var buildAggregatedFilterItemsApplier = function buildAggregatedFilterItemsAppli
178
184
  if (appliers.length === 0) {
179
185
  return null;
180
186
  }
181
- if (!hasEval || disableEval) {
187
+ if (disableEval || !getHasEval()) {
182
188
  // This is the original logic, which is used if `eval()` is not supported (aka prevented by CSP).
183
189
  return function (row, shouldApplyFilter) {
184
190
  var resultPerItemId = {};
package/legacy/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid v6.18.6
2
+ * @mui/x-data-grid v6.18.7
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -160,10 +160,10 @@ var csCZGrid = {
160
160
  // Grouping columns
161
161
  groupingColumnHeaderName: 'Skupina',
162
162
  groupColumn: function groupColumn(name) {
163
- return "Zeskupit podle ".concat(name);
163
+ return "Seskupit podle ".concat(name);
164
164
  },
165
165
  unGroupColumn: function unGroupColumn(name) {
166
- return "P\u0159estat zeskupovat podle ".concat(name);
166
+ return "P\u0159estat seskupovat podle ".concat(name);
167
167
  },
168
168
  // Master/detail
169
169
  detailPanelToggle: 'Přepnout detail panelu',
package/locales/csCZ.js CHANGED
@@ -159,8 +159,8 @@ const csCZGrid = {
159
159
  treeDataCollapse: 'skrýt potomky',
160
160
  // Grouping columns
161
161
  groupingColumnHeaderName: 'Skupina',
162
- groupColumn: name => `Zeskupit podle ${name}`,
163
- unGroupColumn: name => `Přestat zeskupovat podle ${name}`,
162
+ groupColumn: name => `Seskupit podle ${name}`,
163
+ unGroupColumn: name => `Přestat seskupovat podle ${name}`,
164
164
  // Master/detail
165
165
  detailPanelToggle: 'Přepnout detail panelu',
166
166
  expandDetailPanel: 'Rozbalit',
@@ -165,7 +165,6 @@ export interface DataGridPropsWithDefaultValues {
165
165
  /**
166
166
  * If `true`, `eval()` is not used for performance optimization.
167
167
  * @default false
168
- * @ignore - do not document
169
168
  */
170
169
  disableEval: boolean;
171
170
  /**
@@ -163,7 +163,6 @@ DataGridRaw.propTypes = {
163
163
  /**
164
164
  * If `true`, `eval()` is not used for performance optimization.
165
165
  * @default false
166
- * @ignore - do not document
167
166
  */
168
167
  disableEval: PropTypes.bool,
169
168
  /**
@@ -10,11 +10,17 @@ import { gridColumnFieldsSelector, gridColumnLookupSelector, gridVisibleColumnFi
10
10
  const globalScope = typeof window === 'undefined' ? globalThis : window;
11
11
  const evalCode = globalScope[atob('ZXZhbA==')];
12
12
  let hasEval;
13
- try {
14
- hasEval = evalCode('true');
15
- } catch (_) {
16
- hasEval = false;
17
- }
13
+ const getHasEval = () => {
14
+ if (hasEval !== undefined) {
15
+ return hasEval;
16
+ }
17
+ try {
18
+ hasEval = evalCode('true');
19
+ } catch (_) {
20
+ hasEval = false;
21
+ }
22
+ return hasEval;
23
+ };
18
24
  /**
19
25
  * Adds default values to the optional fields of a filter items.
20
26
  * @param {GridFilterItem} item The raw filter item.
@@ -163,7 +169,7 @@ const buildAggregatedFilterItemsApplier = (filterModel, apiRef, disableEval) =>
163
169
  if (appliers.length === 0) {
164
170
  return null;
165
171
  }
166
- if (!hasEval || disableEval) {
172
+ if (disableEval || !getHasEval()) {
167
173
  // This is the original logic, which is used if `eval()` is not supported (aka prevented by CSP).
168
174
  return (row, shouldApplyFilter) => {
169
175
  const resultPerItemId = {};
package/modern/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid v6.18.6
2
+ * @mui/x-data-grid v6.18.7
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -159,8 +159,8 @@ const csCZGrid = {
159
159
  treeDataCollapse: 'skrýt potomky',
160
160
  // Grouping columns
161
161
  groupingColumnHeaderName: 'Skupina',
162
- groupColumn: name => `Zeskupit podle ${name}`,
163
- unGroupColumn: name => `Přestat zeskupovat podle ${name}`,
162
+ groupColumn: name => `Seskupit podle ${name}`,
163
+ unGroupColumn: name => `Přestat seskupovat podle ${name}`,
164
164
  // Master/detail
165
165
  detailPanelToggle: 'Přepnout detail panelu',
166
166
  expandDetailPanel: 'Rozbalit',
@@ -171,7 +171,6 @@ DataGridRaw.propTypes = {
171
171
  /**
172
172
  * If `true`, `eval()` is not used for performance optimization.
173
173
  * @default false
174
- * @ignore - do not document
175
174
  */
176
175
  disableEval: _propTypes.default.bool,
177
176
  /**
@@ -16,11 +16,17 @@ var _columns = require("../columns");
16
16
  const globalScope = typeof window === 'undefined' ? globalThis : window;
17
17
  const evalCode = globalScope[atob('ZXZhbA==')];
18
18
  let hasEval;
19
- try {
20
- hasEval = evalCode('true');
21
- } catch (_) {
22
- hasEval = false;
23
- }
19
+ const getHasEval = () => {
20
+ if (hasEval !== undefined) {
21
+ return hasEval;
22
+ }
23
+ try {
24
+ hasEval = evalCode('true');
25
+ } catch (_) {
26
+ hasEval = false;
27
+ }
28
+ return hasEval;
29
+ };
24
30
  /**
25
31
  * Adds default values to the optional fields of a filter items.
26
32
  * @param {GridFilterItem} item The raw filter item.
@@ -173,7 +179,7 @@ const buildAggregatedFilterItemsApplier = (filterModel, apiRef, disableEval) =>
173
179
  if (appliers.length === 0) {
174
180
  return null;
175
181
  }
176
- if (!hasEval || disableEval) {
182
+ if (disableEval || !getHasEval()) {
177
183
  // This is the original logic, which is used if `eval()` is not supported (aka prevented by CSP).
178
184
  return (row, shouldApplyFilter) => {
179
185
  const resultPerItemId = {};
package/node/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-data-grid v6.18.6
2
+ * @mui/x-data-grid v6.18.7
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -165,8 +165,8 @@ const csCZGrid = {
165
165
  treeDataCollapse: 'skrýt potomky',
166
166
  // Grouping columns
167
167
  groupingColumnHeaderName: 'Skupina',
168
- groupColumn: name => `Zeskupit podle ${name}`,
169
- unGroupColumn: name => `Přestat zeskupovat podle ${name}`,
168
+ groupColumn: name => `Seskupit podle ${name}`,
169
+ unGroupColumn: name => `Přestat seskupovat podle ${name}`,
170
170
  // Master/detail
171
171
  detailPanelToggle: 'Přepnout detail panelu',
172
172
  expandDetailPanel: 'Rozbalit',
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-data-grid",
3
- "version": "6.18.6",
3
+ "version": "6.18.7",
4
4
  "description": "The community edition of the data grid component (MUI X).",
5
5
  "author": "MUI Team",
6
6
  "main": "./node/index.js",