@mui/x-data-grid 6.18.5 → 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,97 @@
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
+
48
+ ## 6.18.6
49
+
50
+ _Dec 22, 2023_
51
+
52
+ We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
53
+
54
+ - 🌍 Improve Russian (ru-RU) locale (#11429) @wensiet
55
+ - 🐞 Bugfixes
56
+
57
+ ### Data Grid
58
+
59
+ #### `@mui/x-data-grid@6.18.6`
60
+
61
+ - [DataGrid] Fix typos in the JSDoc (#11475) @flaviendelangle
62
+ - [l10n] Improve Russian (ru-RU) locale (#11429) @wensiet
63
+
64
+ #### `@mui/x-data-grid-pro@6.18.6` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
65
+
66
+ Same changes as in `@mui/x-data-grid@6.18.6`.
67
+
68
+ #### `@mui/x-data-grid-premium@6.18.6` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
69
+
70
+ Same changes as in `@mui/x-data-grid-pro@6.18.6`.
71
+
72
+ ### Date Pickers
73
+
74
+ #### `@mui/x-date-pickers@6.18.6`
75
+
76
+ - [fields] Fix section pasting (#11467) @LukasTy
77
+
78
+ #### `@mui/x-date-pickers-pro@6.18.6` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
79
+
80
+ Same changes as in `@mui/x-date-pickers@6.18.6`.
81
+
82
+ ### Charts / `@mui/x-charts@6.18.4`
83
+
84
+ - [charts] Allow percentage values for pie chart center and radius (#11464) @alexfauquette
85
+ - [charts] Make error message more explicit (#11457) @alexfauquette
86
+ - [charts] Make the helper `ChartsText` component public (#11370) @alexfauquette
87
+ - [charts] Improve dataset typing (#11372) @alexfauquette
88
+ - [charts] Fix size overflow (#11385) @alexfauquette
89
+
90
+ ### Docs
91
+
92
+ - [docs] Document false default values for boolean props (#11489) @cherniavskii
93
+ - [docs] Improve Pickers `name` prop examples (#11442) @LukasTy
94
+ - [docs] Limit `date-fns` package to v2 in codesandbox (#11478) @LukasTy
95
+ - [test] Reload the page if its blank and there are no links to the remaining tests (#11471) @cherniavskii
96
+
6
97
  ## 6.18.5
7
98
 
8
99
  _Dec 14, 2023_
@@ -53,21 +53,21 @@ DataGridRaw.propTypes = {
53
53
  // | To update them edit the TypeScript types and run "yarn proptypes" |
54
54
  // ----------------------------------------------------------------------
55
55
  /**
56
- * The ref object that allows grid manipulation. Can be instantiated with `useGridApiRef()`.
56
+ * The ref object that allows Data Grid manipulation. Can be instantiated with `useGridApiRef()`.
57
57
  */
58
58
  apiRef: PropTypes.shape({
59
59
  current: PropTypes.object.isRequired
60
60
  }),
61
61
  /**
62
- * The label of the grid.
62
+ * The label of the Data Grid.
63
63
  */
64
64
  'aria-label': PropTypes.string,
65
65
  /**
66
- * The id of the element containing a label for the grid.
66
+ * The id of the element containing a label for the Data Grid.
67
67
  */
68
68
  'aria-labelledby': PropTypes.string,
69
69
  /**
70
- * If `true`, the grid height is dynamic and follow the number of rows in the grid.
70
+ * If `true`, the Data Grid height is dynamic and follow the number of rows in the Data Grid.
71
71
  * @default false
72
72
  */
73
73
  autoHeight: PropTypes.bool,
@@ -81,7 +81,7 @@ DataGridRaw.propTypes = {
81
81
  */
82
82
  cellModesModel: PropTypes.object,
83
83
  /**
84
- * If `true`, the grid get a first column with a checkbox that allows to select rows.
84
+ * If `true`, the Data Grid will display an extra column with checkboxes for selecting rows.
85
85
  * @default false
86
86
  */
87
87
  checkboxSelection: PropTypes.bool,
@@ -101,7 +101,7 @@ DataGridRaw.propTypes = {
101
101
  columnBuffer: PropTypes.number,
102
102
  columnGroupingModel: PropTypes.arrayOf(PropTypes.object),
103
103
  /**
104
- * Sets the height in pixel of the column headers in the grid.
104
+ * Sets the height in pixel of the column headers in the Data Grid.
105
105
  * @default 56
106
106
  */
107
107
  columnHeaderHeight: PropTypes.number,
@@ -121,8 +121,8 @@ DataGridRaw.propTypes = {
121
121
  */
122
122
  columnThreshold: PropTypes.number,
123
123
  /**
124
- * Set the column visibility model of the grid.
125
- * If defined, the grid will ignore the `hide` property in [[GridColDef]].
124
+ * Set the column visibility model of the Data Grid.
125
+ * If defined, the Data Grid will ignore the `hide` property in [[GridColDef]].
126
126
  */
127
127
  columnVisibilityModel: PropTypes.object,
128
128
  /**
@@ -136,7 +136,7 @@ DataGridRaw.propTypes = {
136
136
  */
137
137
  componentsProps: PropTypes.object,
138
138
  /**
139
- * Set the density of the grid.
139
+ * Set the density of the Data Grid.
140
140
  * @default "standard"
141
141
  */
142
142
  density: PropTypes.oneOf(['comfortable', 'compact', 'standard']),
@@ -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
  /**
@@ -202,7 +201,7 @@ DataGridRaw.propTypes = {
202
201
  */
203
202
  filterMode: PropTypes.oneOf(['client', 'server']),
204
203
  /**
205
- * Set the filter model of the grid.
204
+ * Set the filter model of the Data Grid.
206
205
  */
207
206
  filterModel: PropTypes.shape({
208
207
  items: PropTypes.arrayOf(PropTypes.shape({
@@ -217,7 +216,7 @@ DataGridRaw.propTypes = {
217
216
  quickFilterValues: PropTypes.array
218
217
  }),
219
218
  /**
220
- * Forwarded props for the grid root element.
219
+ * Forwarded props for the Data Grid root element.
221
220
  * @ignore - do not document.
222
221
  */
223
222
  forwardedProps: PropTypes.object,
@@ -314,7 +313,7 @@ DataGridRaw.propTypes = {
314
313
  */
315
314
  loading: PropTypes.bool,
316
315
  /**
317
- * Set the locale text of the grid.
316
+ * Set the locale text of the Data Grid.
318
317
  * You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/grid/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
319
318
  */
320
319
  localeText: PropTypes.object,
@@ -482,7 +481,7 @@ DataGridRaw.propTypes = {
482
481
  */
483
482
  onProcessRowUpdateError: PropTypes.func,
484
483
  /**
485
- * Callback fired when the grid is resized.
484
+ * Callback fired when the Data Grid is resized.
486
485
  * @param {ElementSize} containerSize With all properties from [[ElementSize]].
487
486
  * @param {MuiEvent<{}>} event The event object.
488
487
  * @param {GridCallbackDetails} details Additional details for this callback.
@@ -540,7 +539,7 @@ DataGridRaw.propTypes = {
540
539
  */
541
540
  onSortModelChange: PropTypes.func,
542
541
  /**
543
- * Callback fired when the state of the grid is updated.
542
+ * Callback fired when the state of the Data Grid is updated.
544
543
  * @param {GridState} state The new state.
545
544
  * @param {MuiEvent<{}>} event The event object.
546
545
  * @param {GridCallbackDetails} details Additional details for this callback.
@@ -594,7 +593,7 @@ DataGridRaw.propTypes = {
594
593
  */
595
594
  rowCount: PropTypes.number,
596
595
  /**
597
- * Sets the height in pixel of a row in the grid.
596
+ * Sets the height in pixel of a row in the Data Grid.
598
597
  * @default 52
599
598
  */
600
599
  rowHeight: PropTypes.number,
@@ -619,7 +618,7 @@ DataGridRaw.propTypes = {
619
618
  */
620
619
  rowSelection: PropTypes.bool,
621
620
  /**
622
- * Sets the row selection model of the grid.
621
+ * Sets the row selection model of the Data Grid.
623
622
  */
624
623
  rowSelectionModel: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired), PropTypes.number, PropTypes.string]),
625
624
  /**
@@ -633,7 +632,7 @@ DataGridRaw.propTypes = {
633
632
  */
634
633
  rowThreshold: PropTypes.number,
635
634
  /**
636
- * Override the height/width of the grid inner scrollbar.
635
+ * Override the height/width of the Data Grid inner scrollbar.
637
636
  */
638
637
  scrollbarSize: PropTypes.number,
639
638
  /**
@@ -667,7 +666,7 @@ DataGridRaw.propTypes = {
667
666
  */
668
667
  sortingOrder: PropTypes.arrayOf(PropTypes.oneOf(['asc', 'desc'])),
669
668
  /**
670
- * Set the sort model of the grid.
669
+ * Set the sort model of the Data Grid.
671
670
  */
672
671
  sortModel: PropTypes.arrayOf(PropTypes.shape({
673
672
  field: PropTypes.string.isRequired,
@@ -678,7 +677,7 @@ DataGridRaw.propTypes = {
678
677
  */
679
678
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
680
679
  /**
681
- * If `true`, the grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
680
+ * If `true`, the Data Grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
682
681
  * If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
683
682
  * @default false
684
683
  */
@@ -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.5
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
@@ -53,21 +53,21 @@ DataGridRaw.propTypes = {
53
53
  // | To update them edit the TypeScript types and run "yarn proptypes" |
54
54
  // ----------------------------------------------------------------------
55
55
  /**
56
- * The ref object that allows grid manipulation. Can be instantiated with `useGridApiRef()`.
56
+ * The ref object that allows Data Grid manipulation. Can be instantiated with `useGridApiRef()`.
57
57
  */
58
58
  apiRef: PropTypes.shape({
59
59
  current: PropTypes.object.isRequired
60
60
  }),
61
61
  /**
62
- * The label of the grid.
62
+ * The label of the Data Grid.
63
63
  */
64
64
  'aria-label': PropTypes.string,
65
65
  /**
66
- * The id of the element containing a label for the grid.
66
+ * The id of the element containing a label for the Data Grid.
67
67
  */
68
68
  'aria-labelledby': PropTypes.string,
69
69
  /**
70
- * If `true`, the grid height is dynamic and follow the number of rows in the grid.
70
+ * If `true`, the Data Grid height is dynamic and follow the number of rows in the Data Grid.
71
71
  * @default false
72
72
  */
73
73
  autoHeight: PropTypes.bool,
@@ -81,7 +81,7 @@ DataGridRaw.propTypes = {
81
81
  */
82
82
  cellModesModel: PropTypes.object,
83
83
  /**
84
- * If `true`, the grid get a first column with a checkbox that allows to select rows.
84
+ * If `true`, the Data Grid will display an extra column with checkboxes for selecting rows.
85
85
  * @default false
86
86
  */
87
87
  checkboxSelection: PropTypes.bool,
@@ -101,7 +101,7 @@ DataGridRaw.propTypes = {
101
101
  columnBuffer: PropTypes.number,
102
102
  columnGroupingModel: PropTypes.arrayOf(PropTypes.object),
103
103
  /**
104
- * Sets the height in pixel of the column headers in the grid.
104
+ * Sets the height in pixel of the column headers in the Data Grid.
105
105
  * @default 56
106
106
  */
107
107
  columnHeaderHeight: PropTypes.number,
@@ -123,8 +123,8 @@ DataGridRaw.propTypes = {
123
123
  */
124
124
  columnThreshold: PropTypes.number,
125
125
  /**
126
- * Set the column visibility model of the grid.
127
- * If defined, the grid will ignore the `hide` property in [[GridColDef]].
126
+ * Set the column visibility model of the Data Grid.
127
+ * If defined, the Data Grid will ignore the `hide` property in [[GridColDef]].
128
128
  */
129
129
  columnVisibilityModel: PropTypes.object,
130
130
  /**
@@ -138,7 +138,7 @@ DataGridRaw.propTypes = {
138
138
  */
139
139
  componentsProps: PropTypes.object,
140
140
  /**
141
- * Set the density of the grid.
141
+ * Set the density of the Data Grid.
142
142
  * @default "standard"
143
143
  */
144
144
  density: PropTypes.oneOf(['comfortable', 'compact', 'standard']),
@@ -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
  /**
@@ -204,7 +203,7 @@ DataGridRaw.propTypes = {
204
203
  */
205
204
  filterMode: PropTypes.oneOf(['client', 'server']),
206
205
  /**
207
- * Set the filter model of the grid.
206
+ * Set the filter model of the Data Grid.
208
207
  */
209
208
  filterModel: PropTypes.shape({
210
209
  items: PropTypes.arrayOf(PropTypes.shape({
@@ -219,7 +218,7 @@ DataGridRaw.propTypes = {
219
218
  quickFilterValues: PropTypes.array
220
219
  }),
221
220
  /**
222
- * Forwarded props for the grid root element.
221
+ * Forwarded props for the Data Grid root element.
223
222
  * @ignore - do not document.
224
223
  */
225
224
  forwardedProps: PropTypes.object,
@@ -316,7 +315,7 @@ DataGridRaw.propTypes = {
316
315
  */
317
316
  loading: PropTypes.bool,
318
317
  /**
319
- * Set the locale text of the grid.
318
+ * Set the locale text of the Data Grid.
320
319
  * You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/grid/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
321
320
  */
322
321
  localeText: PropTypes.object,
@@ -484,7 +483,7 @@ DataGridRaw.propTypes = {
484
483
  */
485
484
  onProcessRowUpdateError: PropTypes.func,
486
485
  /**
487
- * Callback fired when the grid is resized.
486
+ * Callback fired when the Data Grid is resized.
488
487
  * @param {ElementSize} containerSize With all properties from [[ElementSize]].
489
488
  * @param {MuiEvent<{}>} event The event object.
490
489
  * @param {GridCallbackDetails} details Additional details for this callback.
@@ -542,7 +541,7 @@ DataGridRaw.propTypes = {
542
541
  */
543
542
  onSortModelChange: PropTypes.func,
544
543
  /**
545
- * Callback fired when the state of the grid is updated.
544
+ * Callback fired when the state of the Data Grid is updated.
546
545
  * @param {GridState} state The new state.
547
546
  * @param {MuiEvent<{}>} event The event object.
548
547
  * @param {GridCallbackDetails} details Additional details for this callback.
@@ -596,7 +595,7 @@ DataGridRaw.propTypes = {
596
595
  */
597
596
  rowCount: PropTypes.number,
598
597
  /**
599
- * Sets the height in pixel of a row in the grid.
598
+ * Sets the height in pixel of a row in the Data Grid.
600
599
  * @default 52
601
600
  */
602
601
  rowHeight: PropTypes.number,
@@ -621,7 +620,7 @@ DataGridRaw.propTypes = {
621
620
  */
622
621
  rowSelection: PropTypes.bool,
623
622
  /**
624
- * Sets the row selection model of the grid.
623
+ * Sets the row selection model of the Data Grid.
625
624
  */
626
625
  rowSelectionModel: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired), PropTypes.number, PropTypes.string]),
627
626
  /**
@@ -635,7 +634,7 @@ DataGridRaw.propTypes = {
635
634
  */
636
635
  rowThreshold: PropTypes.number,
637
636
  /**
638
- * Override the height/width of the grid inner scrollbar.
637
+ * Override the height/width of the Data Grid inner scrollbar.
639
638
  */
640
639
  scrollbarSize: PropTypes.number,
641
640
  /**
@@ -669,7 +668,7 @@ DataGridRaw.propTypes = {
669
668
  */
670
669
  sortingOrder: PropTypes.arrayOf(PropTypes.oneOf(['asc', 'desc'])),
671
670
  /**
672
- * Set the sort model of the grid.
671
+ * Set the sort model of the Data Grid.
673
672
  */
674
673
  sortModel: PropTypes.arrayOf(PropTypes.shape({
675
674
  field: PropTypes.string.isRequired,
@@ -680,7 +679,7 @@ DataGridRaw.propTypes = {
680
679
  */
681
680
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
682
681
  /**
683
- * If `true`, the grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
682
+ * If `true`, the Data Grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
684
683
  * If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
685
684
  * @default false
686
685
  */
@@ -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.5
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',
@@ -79,7 +79,7 @@ export interface DataGridPropsWithComplexDefaultValueBeforeProcessing {
79
79
  */
80
80
  slots?: UncapitalizeObjectKeys<Partial<GridSlotsComponent>>;
81
81
  /**
82
- * Set the locale text of the grid.
82
+ * Set the locale text of the Data Grid.
83
83
  * You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/grid/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
84
84
  */
85
85
  localeText?: Partial<GridLocaleText>;
@@ -92,7 +92,7 @@ export interface DataGridPropsWithComplexDefaultValueBeforeProcessing {
92
92
  */
93
93
  export interface DataGridPropsWithDefaultValues {
94
94
  /**
95
- * If `true`, the grid height is dynamic and follow the number of rows in the grid.
95
+ * If `true`, the Data Grid height is dynamic and follow the number of rows in the Data Grid.
96
96
  * @default false
97
97
  */
98
98
  autoHeight: boolean;
@@ -102,7 +102,7 @@ export interface DataGridPropsWithDefaultValues {
102
102
  */
103
103
  autoPageSize: boolean;
104
104
  /**
105
- * If `true`, the grid get a first column with a checkbox that allows to select rows.
105
+ * If `true`, the Data Grid will display an extra column with checkboxes for selecting rows.
106
106
  * @default false
107
107
  */
108
108
  checkboxSelection: boolean;
@@ -138,7 +138,7 @@ export interface DataGridPropsWithDefaultValues {
138
138
  */
139
139
  columnThreshold: number;
140
140
  /**
141
- * Set the density of the grid.
141
+ * Set the density of the Data Grid.
142
142
  * @default "standard"
143
143
  */
144
144
  density: GridDensity;
@@ -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
  /**
@@ -210,7 +209,7 @@ export interface DataGridPropsWithDefaultValues {
210
209
  */
211
210
  filterDebounceMs: number;
212
211
  /**
213
- * Sets the height in pixel of the column headers in the grid.
212
+ * Sets the height in pixel of the column headers in the Data Grid.
214
213
  * @default 56
215
214
  */
216
215
  columnHeaderHeight: number;
@@ -271,7 +270,7 @@ export interface DataGridPropsWithDefaultValues {
271
270
  */
272
271
  paginationMode: GridFeatureMode;
273
272
  /**
274
- * Sets the height in pixel of a row in the grid.
273
+ * Sets the height in pixel of a row in the Data Grid.
275
274
  * @default 52
276
275
  */
277
276
  rowHeight: number;
@@ -311,7 +310,7 @@ export interface DataGridPropsWithDefaultValues {
311
310
  */
312
311
  sortingMode: GridFeatureMode;
313
312
  /**
314
- * If positive, the Grid will throttle updates coming from `apiRef.current.updateRows` and `apiRef.current.setRows`.
313
+ * If positive, the Data Grid will throttle updates coming from `apiRef.current.updateRows` and `apiRef.current.setRows`.
315
314
  * It can be useful if you have a high update rate but do not want to do heavy work like filtering / sorting or rendering on each individual update.
316
315
  * @default 0
317
316
  */
@@ -327,13 +326,13 @@ export interface DataGridPropsWithDefaultValues {
327
326
  */
328
327
  disableColumnResize: boolean;
329
328
  /**
330
- * If `true`, moving the mouse pointer outside the grid before releasing the mouse button
329
+ * If `true`, moving the mouse pointer outside the Data Grid before releasing the mouse button
331
330
  * in a column re-order action will not cause the column to jump back to its original position.
332
331
  * @default false
333
332
  */
334
333
  keepColumnPositionIfDraggedOutside: boolean;
335
334
  /**
336
- * If `true`, the grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
335
+ * If `true`, the Data Grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
337
336
  * If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
338
337
  * @default false
339
338
  */
@@ -359,17 +358,17 @@ export interface DataGridPropsWithDefaultValues {
359
358
  */
360
359
  export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel = any> extends CommonProps {
361
360
  /**
362
- * The ref object that allows grid manipulation. Can be instantiated with `useGridApiRef()`.
361
+ * The ref object that allows Data Grid manipulation. Can be instantiated with `useGridApiRef()`.
363
362
  */
364
363
  apiRef?: React.MutableRefObject<GridApiCommunity>;
365
364
  /**
366
- * Forwarded props for the grid root element.
365
+ * Forwarded props for the Data Grid root element.
367
366
  * @ignore - do not document.
368
367
  */
369
368
  forwardedProps?: Record<string, unknown>;
370
369
  /**
371
370
  * Signal to the underlying logic what version of the public component API
372
- * of the data grid is exposed [[GridSignature]].
371
+ * of the Data Grid is exposed [[GridSignature]].
373
372
  * @ignore - do not document.
374
373
  */
375
374
  signature?: string;
@@ -383,7 +382,7 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
383
382
  */
384
383
  rowCount?: number;
385
384
  /**
386
- * Override the height/width of the grid inner scrollbar.
385
+ * Override the height/width of the Data Grid inner scrollbar.
387
386
  */
388
387
  scrollbarSize?: number;
389
388
  /**
@@ -552,14 +551,14 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
552
551
  */
553
552
  onRowDoubleClick?: GridEventListener<'rowDoubleClick'>;
554
553
  /**
555
- * Callback fired when the grid is resized.
554
+ * Callback fired when the Data Grid is resized.
556
555
  * @param {ElementSize} containerSize With all properties from [[ElementSize]].
557
556
  * @param {MuiEvent<{}>} event The event object.
558
557
  * @param {GridCallbackDetails} details Additional details for this callback.
559
558
  */
560
559
  onResize?: GridEventListener<'debouncedResize'>;
561
560
  /**
562
- * Callback fired when the state of the grid is updated.
561
+ * Callback fired when the state of the Data Grid is updated.
563
562
  * @param {GridState} state The new state.
564
563
  * @param {MuiEvent<{}>} event The event object.
565
564
  * @param {GridCallbackDetails} details Additional details for this callback.
@@ -625,7 +624,7 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
625
624
  */
626
625
  onRowModesModelChange?: (rowModesModel: GridRowModesModel, details: GridCallbackDetails) => void;
627
626
  /**
628
- * Set the filter model of the grid.
627
+ * Set the filter model of the Data Grid.
629
628
  */
630
629
  filterModel?: GridFilterModel;
631
630
  /**
@@ -635,7 +634,7 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
635
634
  */
636
635
  onFilterModelChange?: (model: GridFilterModel, details: GridCallbackDetails<'filter'>) => void;
637
636
  /**
638
- * Sets the row selection model of the grid.
637
+ * Sets the row selection model of the Data Grid.
639
638
  */
640
639
  rowSelectionModel?: GridInputRowSelectionModel;
641
640
  /**
@@ -645,8 +644,8 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
645
644
  */
646
645
  onRowSelectionModelChange?: (rowSelectionModel: GridRowSelectionModel, details: GridCallbackDetails) => void;
647
646
  /**
648
- * Set the column visibility model of the grid.
649
- * If defined, the grid will ignore the `hide` property in [[GridColDef]].
647
+ * Set the column visibility model of the Data Grid.
648
+ * If defined, the Data Grid will ignore the `hide` property in [[GridColDef]].
650
649
  */
651
650
  columnVisibilityModel?: GridColumnVisibilityModel;
652
651
  /**
@@ -656,7 +655,7 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
656
655
  */
657
656
  onColumnVisibilityModelChange?: (model: GridColumnVisibilityModel, details: GridCallbackDetails) => void;
658
657
  /**
659
- * Set the sort model of the grid.
658
+ * Set the sort model of the Data Grid.
660
659
  */
661
660
  sortModel?: GridSortModel;
662
661
  /**
@@ -666,11 +665,11 @@ export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel =
666
665
  */
667
666
  onSortModelChange?: (model: GridSortModel, details: GridCallbackDetails) => void;
668
667
  /**
669
- * The label of the grid.
668
+ * The label of the Data Grid.
670
669
  */
671
670
  'aria-label'?: string;
672
671
  /**
673
- * The id of the element containing a label for the grid.
672
+ * The id of the element containing a label for the Data Grid.
674
673
  */
675
674
  'aria-labelledby'?: string;
676
675
  /**
@@ -53,21 +53,21 @@ DataGridRaw.propTypes = {
53
53
  // | To update them edit the TypeScript types and run "yarn proptypes" |
54
54
  // ----------------------------------------------------------------------
55
55
  /**
56
- * The ref object that allows grid manipulation. Can be instantiated with `useGridApiRef()`.
56
+ * The ref object that allows Data Grid manipulation. Can be instantiated with `useGridApiRef()`.
57
57
  */
58
58
  apiRef: PropTypes.shape({
59
59
  current: PropTypes.object.isRequired
60
60
  }),
61
61
  /**
62
- * The label of the grid.
62
+ * The label of the Data Grid.
63
63
  */
64
64
  'aria-label': PropTypes.string,
65
65
  /**
66
- * The id of the element containing a label for the grid.
66
+ * The id of the element containing a label for the Data Grid.
67
67
  */
68
68
  'aria-labelledby': PropTypes.string,
69
69
  /**
70
- * If `true`, the grid height is dynamic and follow the number of rows in the grid.
70
+ * If `true`, the Data Grid height is dynamic and follow the number of rows in the Data Grid.
71
71
  * @default false
72
72
  */
73
73
  autoHeight: PropTypes.bool,
@@ -81,7 +81,7 @@ DataGridRaw.propTypes = {
81
81
  */
82
82
  cellModesModel: PropTypes.object,
83
83
  /**
84
- * If `true`, the grid get a first column with a checkbox that allows to select rows.
84
+ * If `true`, the Data Grid will display an extra column with checkboxes for selecting rows.
85
85
  * @default false
86
86
  */
87
87
  checkboxSelection: PropTypes.bool,
@@ -101,7 +101,7 @@ DataGridRaw.propTypes = {
101
101
  columnBuffer: PropTypes.number,
102
102
  columnGroupingModel: PropTypes.arrayOf(PropTypes.object),
103
103
  /**
104
- * Sets the height in pixel of the column headers in the grid.
104
+ * Sets the height in pixel of the column headers in the Data Grid.
105
105
  * @default 56
106
106
  */
107
107
  columnHeaderHeight: PropTypes.number,
@@ -121,8 +121,8 @@ DataGridRaw.propTypes = {
121
121
  */
122
122
  columnThreshold: PropTypes.number,
123
123
  /**
124
- * Set the column visibility model of the grid.
125
- * If defined, the grid will ignore the `hide` property in [[GridColDef]].
124
+ * Set the column visibility model of the Data Grid.
125
+ * If defined, the Data Grid will ignore the `hide` property in [[GridColDef]].
126
126
  */
127
127
  columnVisibilityModel: PropTypes.object,
128
128
  /**
@@ -136,7 +136,7 @@ DataGridRaw.propTypes = {
136
136
  */
137
137
  componentsProps: PropTypes.object,
138
138
  /**
139
- * Set the density of the grid.
139
+ * Set the density of the Data Grid.
140
140
  * @default "standard"
141
141
  */
142
142
  density: PropTypes.oneOf(['comfortable', 'compact', 'standard']),
@@ -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
  /**
@@ -202,7 +201,7 @@ DataGridRaw.propTypes = {
202
201
  */
203
202
  filterMode: PropTypes.oneOf(['client', 'server']),
204
203
  /**
205
- * Set the filter model of the grid.
204
+ * Set the filter model of the Data Grid.
206
205
  */
207
206
  filterModel: PropTypes.shape({
208
207
  items: PropTypes.arrayOf(PropTypes.shape({
@@ -217,7 +216,7 @@ DataGridRaw.propTypes = {
217
216
  quickFilterValues: PropTypes.array
218
217
  }),
219
218
  /**
220
- * Forwarded props for the grid root element.
219
+ * Forwarded props for the Data Grid root element.
221
220
  * @ignore - do not document.
222
221
  */
223
222
  forwardedProps: PropTypes.object,
@@ -314,7 +313,7 @@ DataGridRaw.propTypes = {
314
313
  */
315
314
  loading: PropTypes.bool,
316
315
  /**
317
- * Set the locale text of the grid.
316
+ * Set the locale text of the Data Grid.
318
317
  * You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/grid/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
319
318
  */
320
319
  localeText: PropTypes.object,
@@ -482,7 +481,7 @@ DataGridRaw.propTypes = {
482
481
  */
483
482
  onProcessRowUpdateError: PropTypes.func,
484
483
  /**
485
- * Callback fired when the grid is resized.
484
+ * Callback fired when the Data Grid is resized.
486
485
  * @param {ElementSize} containerSize With all properties from [[ElementSize]].
487
486
  * @param {MuiEvent<{}>} event The event object.
488
487
  * @param {GridCallbackDetails} details Additional details for this callback.
@@ -540,7 +539,7 @@ DataGridRaw.propTypes = {
540
539
  */
541
540
  onSortModelChange: PropTypes.func,
542
541
  /**
543
- * Callback fired when the state of the grid is updated.
542
+ * Callback fired when the state of the Data Grid is updated.
544
543
  * @param {GridState} state The new state.
545
544
  * @param {MuiEvent<{}>} event The event object.
546
545
  * @param {GridCallbackDetails} details Additional details for this callback.
@@ -594,7 +593,7 @@ DataGridRaw.propTypes = {
594
593
  */
595
594
  rowCount: PropTypes.number,
596
595
  /**
597
- * Sets the height in pixel of a row in the grid.
596
+ * Sets the height in pixel of a row in the Data Grid.
598
597
  * @default 52
599
598
  */
600
599
  rowHeight: PropTypes.number,
@@ -619,7 +618,7 @@ DataGridRaw.propTypes = {
619
618
  */
620
619
  rowSelection: PropTypes.bool,
621
620
  /**
622
- * Sets the row selection model of the grid.
621
+ * Sets the row selection model of the Data Grid.
623
622
  */
624
623
  rowSelectionModel: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.number, PropTypes.string]).isRequired), PropTypes.number, PropTypes.string]),
625
624
  /**
@@ -633,7 +632,7 @@ DataGridRaw.propTypes = {
633
632
  */
634
633
  rowThreshold: PropTypes.number,
635
634
  /**
636
- * Override the height/width of the grid inner scrollbar.
635
+ * Override the height/width of the Data Grid inner scrollbar.
637
636
  */
638
637
  scrollbarSize: PropTypes.number,
639
638
  /**
@@ -667,7 +666,7 @@ DataGridRaw.propTypes = {
667
666
  */
668
667
  sortingOrder: PropTypes.arrayOf(PropTypes.oneOf(['asc', 'desc'])),
669
668
  /**
670
- * Set the sort model of the grid.
669
+ * Set the sort model of the Data Grid.
671
670
  */
672
671
  sortModel: PropTypes.arrayOf(PropTypes.shape({
673
672
  field: PropTypes.string.isRequired,
@@ -678,7 +677,7 @@ DataGridRaw.propTypes = {
678
677
  */
679
678
  sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object]),
680
679
  /**
681
- * If `true`, the grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
680
+ * If `true`, the Data Grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
682
681
  * If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
683
682
  * @default false
684
683
  */
@@ -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.5
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',
@@ -61,21 +61,21 @@ DataGridRaw.propTypes = {
61
61
  // | To update them edit the TypeScript types and run "yarn proptypes" |
62
62
  // ----------------------------------------------------------------------
63
63
  /**
64
- * The ref object that allows grid manipulation. Can be instantiated with `useGridApiRef()`.
64
+ * The ref object that allows Data Grid manipulation. Can be instantiated with `useGridApiRef()`.
65
65
  */
66
66
  apiRef: _propTypes.default.shape({
67
67
  current: _propTypes.default.object.isRequired
68
68
  }),
69
69
  /**
70
- * The label of the grid.
70
+ * The label of the Data Grid.
71
71
  */
72
72
  'aria-label': _propTypes.default.string,
73
73
  /**
74
- * The id of the element containing a label for the grid.
74
+ * The id of the element containing a label for the Data Grid.
75
75
  */
76
76
  'aria-labelledby': _propTypes.default.string,
77
77
  /**
78
- * If `true`, the grid height is dynamic and follow the number of rows in the grid.
78
+ * If `true`, the Data Grid height is dynamic and follow the number of rows in the Data Grid.
79
79
  * @default false
80
80
  */
81
81
  autoHeight: _propTypes.default.bool,
@@ -89,7 +89,7 @@ DataGridRaw.propTypes = {
89
89
  */
90
90
  cellModesModel: _propTypes.default.object,
91
91
  /**
92
- * If `true`, the grid get a first column with a checkbox that allows to select rows.
92
+ * If `true`, the Data Grid will display an extra column with checkboxes for selecting rows.
93
93
  * @default false
94
94
  */
95
95
  checkboxSelection: _propTypes.default.bool,
@@ -109,7 +109,7 @@ DataGridRaw.propTypes = {
109
109
  columnBuffer: _propTypes.default.number,
110
110
  columnGroupingModel: _propTypes.default.arrayOf(_propTypes.default.object),
111
111
  /**
112
- * Sets the height in pixel of the column headers in the grid.
112
+ * Sets the height in pixel of the column headers in the Data Grid.
113
113
  * @default 56
114
114
  */
115
115
  columnHeaderHeight: _propTypes.default.number,
@@ -129,8 +129,8 @@ DataGridRaw.propTypes = {
129
129
  */
130
130
  columnThreshold: _propTypes.default.number,
131
131
  /**
132
- * Set the column visibility model of the grid.
133
- * If defined, the grid will ignore the `hide` property in [[GridColDef]].
132
+ * Set the column visibility model of the Data Grid.
133
+ * If defined, the Data Grid will ignore the `hide` property in [[GridColDef]].
134
134
  */
135
135
  columnVisibilityModel: _propTypes.default.object,
136
136
  /**
@@ -144,7 +144,7 @@ DataGridRaw.propTypes = {
144
144
  */
145
145
  componentsProps: _propTypes.default.object,
146
146
  /**
147
- * Set the density of the grid.
147
+ * Set the density of the Data Grid.
148
148
  * @default "standard"
149
149
  */
150
150
  density: _propTypes.default.oneOf(['comfortable', 'compact', 'standard']),
@@ -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
  /**
@@ -210,7 +209,7 @@ DataGridRaw.propTypes = {
210
209
  */
211
210
  filterMode: _propTypes.default.oneOf(['client', 'server']),
212
211
  /**
213
- * Set the filter model of the grid.
212
+ * Set the filter model of the Data Grid.
214
213
  */
215
214
  filterModel: _propTypes.default.shape({
216
215
  items: _propTypes.default.arrayOf(_propTypes.default.shape({
@@ -225,7 +224,7 @@ DataGridRaw.propTypes = {
225
224
  quickFilterValues: _propTypes.default.array
226
225
  }),
227
226
  /**
228
- * Forwarded props for the grid root element.
227
+ * Forwarded props for the Data Grid root element.
229
228
  * @ignore - do not document.
230
229
  */
231
230
  forwardedProps: _propTypes.default.object,
@@ -322,7 +321,7 @@ DataGridRaw.propTypes = {
322
321
  */
323
322
  loading: _propTypes.default.bool,
324
323
  /**
325
- * Set the locale text of the grid.
324
+ * Set the locale text of the Data Grid.
326
325
  * You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/grid/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
327
326
  */
328
327
  localeText: _propTypes.default.object,
@@ -490,7 +489,7 @@ DataGridRaw.propTypes = {
490
489
  */
491
490
  onProcessRowUpdateError: _propTypes.default.func,
492
491
  /**
493
- * Callback fired when the grid is resized.
492
+ * Callback fired when the Data Grid is resized.
494
493
  * @param {ElementSize} containerSize With all properties from [[ElementSize]].
495
494
  * @param {MuiEvent<{}>} event The event object.
496
495
  * @param {GridCallbackDetails} details Additional details for this callback.
@@ -548,7 +547,7 @@ DataGridRaw.propTypes = {
548
547
  */
549
548
  onSortModelChange: _propTypes.default.func,
550
549
  /**
551
- * Callback fired when the state of the grid is updated.
550
+ * Callback fired when the state of the Data Grid is updated.
552
551
  * @param {GridState} state The new state.
553
552
  * @param {MuiEvent<{}>} event The event object.
554
553
  * @param {GridCallbackDetails} details Additional details for this callback.
@@ -602,7 +601,7 @@ DataGridRaw.propTypes = {
602
601
  */
603
602
  rowCount: _propTypes.default.number,
604
603
  /**
605
- * Sets the height in pixel of a row in the grid.
604
+ * Sets the height in pixel of a row in the Data Grid.
606
605
  * @default 52
607
606
  */
608
607
  rowHeight: _propTypes.default.number,
@@ -627,7 +626,7 @@ DataGridRaw.propTypes = {
627
626
  */
628
627
  rowSelection: _propTypes.default.bool,
629
628
  /**
630
- * Sets the row selection model of the grid.
629
+ * Sets the row selection model of the Data Grid.
631
630
  */
632
631
  rowSelectionModel: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.number, _propTypes.default.string]).isRequired), _propTypes.default.number, _propTypes.default.string]),
633
632
  /**
@@ -641,7 +640,7 @@ DataGridRaw.propTypes = {
641
640
  */
642
641
  rowThreshold: _propTypes.default.number,
643
642
  /**
644
- * Override the height/width of the grid inner scrollbar.
643
+ * Override the height/width of the Data Grid inner scrollbar.
645
644
  */
646
645
  scrollbarSize: _propTypes.default.number,
647
646
  /**
@@ -675,7 +674,7 @@ DataGridRaw.propTypes = {
675
674
  */
676
675
  sortingOrder: _propTypes.default.arrayOf(_propTypes.default.oneOf(['asc', 'desc'])),
677
676
  /**
678
- * Set the sort model of the grid.
677
+ * Set the sort model of the Data Grid.
679
678
  */
680
679
  sortModel: _propTypes.default.arrayOf(_propTypes.default.shape({
681
680
  field: _propTypes.default.string.isRequired,
@@ -686,7 +685,7 @@ DataGridRaw.propTypes = {
686
685
  */
687
686
  sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
688
687
  /**
689
- * If `true`, the grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
688
+ * If `true`, the Data Grid will not use `valueFormatter` when exporting to CSV or copying to clipboard.
690
689
  * If an object is provided, you can choose to ignore the `valueFormatter` for CSV export or clipboard export.
691
690
  * @default false
692
691
  */
@@ -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.5
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.5",
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",