@mui/x-data-grid 5.17.19 → 5.17.21

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.
Files changed (70) hide show
  1. package/CHANGELOG.md +62 -0
  2. package/components/cell/GridCell.js +3 -1
  3. package/components/panel/GridColumnsPanel.js +15 -5
  4. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +1 -1
  5. package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +0 -1
  6. package/components/panel/filterPanel/GridFilterInputMultipleValue.js +0 -1
  7. package/hooks/features/export/useGridPrintExport.js +7 -3
  8. package/hooks/features/virtualization/useGridVirtualScroller.js +2 -6
  9. package/index.js +1 -1
  10. package/legacy/components/cell/GridCell.js +3 -1
  11. package/legacy/components/panel/GridColumnsPanel.js +15 -9
  12. package/legacy/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +0 -1
  13. package/legacy/components/panel/filterPanel/GridFilterInputMultipleValue.js +0 -1
  14. package/legacy/hooks/features/export/useGridPrintExport.js +8 -4
  15. package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +2 -6
  16. package/legacy/index.js +1 -1
  17. package/legacy/lib/createDetectElementResize/index.js +5 -5
  18. package/legacy/locales/beBY.js +161 -0
  19. package/legacy/locales/coreLocales.js +67 -0
  20. package/legacy/locales/esES.js +18 -14
  21. package/legacy/locales/index.js +1 -0
  22. package/legacy/locales/jaJP.js +16 -16
  23. package/legacy/locales/skSK.js +8 -8
  24. package/legacy/locales/svSE.js +10 -10
  25. package/legacy/locales/viVN.js +22 -18
  26. package/lib/createDetectElementResize/index.js +5 -5
  27. package/locales/beBY.d.ts +2 -0
  28. package/locales/beBY.js +149 -0
  29. package/locales/coreLocales.d.ts +3 -0
  30. package/locales/coreLocales.js +65 -0
  31. package/locales/esES.js +14 -14
  32. package/locales/index.d.ts +1 -0
  33. package/locales/index.js +1 -0
  34. package/locales/jaJP.js +16 -16
  35. package/locales/skSK.js +8 -8
  36. package/locales/svSE.js +10 -10
  37. package/locales/viVN.js +18 -18
  38. package/modern/components/cell/GridCell.js +3 -1
  39. package/modern/components/panel/GridColumnsPanel.js +15 -5
  40. package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +0 -1
  41. package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.js +0 -1
  42. package/modern/hooks/features/export/useGridPrintExport.js +7 -3
  43. package/modern/hooks/features/virtualization/useGridVirtualScroller.js +2 -6
  44. package/modern/index.js +1 -1
  45. package/modern/lib/createDetectElementResize/index.js +5 -5
  46. package/modern/locales/beBY.js +149 -0
  47. package/modern/locales/coreLocales.js +65 -0
  48. package/modern/locales/esES.js +14 -14
  49. package/modern/locales/index.js +1 -0
  50. package/modern/locales/jaJP.js +16 -16
  51. package/modern/locales/skSK.js +8 -8
  52. package/modern/locales/svSE.js +10 -10
  53. package/modern/locales/viVN.js +18 -18
  54. package/node/components/cell/GridCell.js +3 -1
  55. package/node/components/panel/GridColumnsPanel.js +13 -5
  56. package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +0 -1
  57. package/node/components/panel/filterPanel/GridFilterInputMultipleValue.js +0 -1
  58. package/node/hooks/features/export/useGridPrintExport.js +7 -3
  59. package/node/hooks/features/virtualization/useGridVirtualScroller.js +2 -6
  60. package/node/index.js +1 -1
  61. package/node/lib/createDetectElementResize/index.js +5 -5
  62. package/node/locales/beBY.js +158 -0
  63. package/node/locales/coreLocales.js +73 -0
  64. package/node/locales/esES.js +14 -14
  65. package/node/locales/index.js +13 -0
  66. package/node/locales/jaJP.js +16 -16
  67. package/node/locales/skSK.js +8 -8
  68. package/node/locales/svSE.js +10 -10
  69. package/node/locales/viVN.js +18 -18
  70. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,68 @@
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
+ ## v5.17.21
7
+
8
+ _Jan 27, 2023_
9
+
10
+ We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🌍 Add Belarusian (be-BY), Czech (cs-CZ), and Russian (ru-RU) locales
13
+ - 🌍 Improve Slovak (sk-SK), Japanese (ja-JP), Vietnamese (vi-VN), and Spanish (es-ES) locales
14
+ - 🐞 Bugfixes
15
+
16
+ ### `@mui/x-data-grid@v5.17.21` / `@mui/x-data-grid-pro@v5.17.21` / `@mui/x-data-grid-premium@v5.17.21`
17
+
18
+ #### Changes
19
+
20
+ - [DataGrid] Add `title` attribute to cells (#7695) @thupi
21
+ - [DataGrid] Fix grid state not being updated after print preview is closed (#7680) @cherniavskii
22
+ - [DataGrid] Fix non-hideable columns visibility toggling (#7716) @cherniavskii
23
+ - [DataGrid] Fix scrolling on resize for data grids inside shadow root (#7722) @cherniavskii
24
+ - [DataGridPremium] Create aggregation footer row with `isAutoGenerated: true` (#7681) @m4theushw
25
+ - [l10n] Add Belarusian (be-BY) locale (#7718) @volhalink
26
+ - [l10n] Add Slovak (sk-SK) translation for aggregation functions (#7690) @msidlo
27
+ - [l10n] Add missing core locales for `MuiTablePagination` (#7719) @MBilalShafi
28
+ - [l10n] Improve Japanese (ja-JP) locale (#7627) @makoto14
29
+ - [l10n] Improve Vietnamese (vi-VN) locale (#7601) @SpacerZ
30
+
31
+ ### `@mui/x-date-pickers@v5.0.16` / `@mui/x-date-pickers-pro@v5.0.16`
32
+
33
+ #### Changes
34
+
35
+ - [pickers] Add missing components to `themeAugmentation` (#7677) @LukasTy
36
+ - [l10n] Add Czech (cs-CZ) locale (#7666) @OndrejHj04
37
+ - [l10n] Add Russian (ru-RU) locale (#7708) @rstmzh
38
+ - [l10n] Improve Spanish (es-ES) locale (#7614) @WiXSL
39
+
40
+ ### Docs
41
+
42
+ - [docs] Add info callout about available component `slots` (#7723) @Vivek-Prajapatii
43
+
44
+ ## 5.17.20
45
+
46
+ _Jan 19, 2023_
47
+
48
+ We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
49
+
50
+ - 🌍 Improve Italian (it-IT) and Swedish (sv-SE) locales
51
+ - 🐞 Bugfixes
52
+
53
+ ### `@mui/x-data-grid@v5.17.20` / `@mui/x-data-grid-pro@v5.17.20` / `@mui/x-data-grid-premium@v5.17.20`
54
+
55
+ #### Changes
56
+
57
+ - [DataGrid] Fix flickering on grid scroll (#7609) @cherniavskii
58
+ - [DataGrid] Remove tag limit from `isAnyOf` operator input (#7616) @m4theushw
59
+ - [l10n] Improve Swedish (sv-SE) locale (#7463) @MaanTyringe
60
+
61
+ ### `@mui/x-date-pickers@v5.0.15` / `@mui/x-date-pickers-pro@v5.0.15`
62
+
63
+ #### Changes
64
+
65
+ - [pickers] Ensure `key` is passed without object spreading (#7584) @alexfauquette
66
+ - [l10n] Improve Italian (it-IT) locale (#7547) @marikadeveloper
67
+
6
68
  ## 5.17.19
7
69
 
8
70
  _Jan 16, 2023_
@@ -179,9 +179,11 @@ function GridCell(props) {
179
179
 
180
180
  const renderChildren = () => {
181
181
  if (children == null) {
182
+ const valueString = valueToRender == null ? void 0 : valueToRender.toString();
182
183
  return /*#__PURE__*/_jsx("div", {
184
+ title: valueString,
183
185
  className: classes.content,
184
- children: valueToRender == null ? void 0 : valueToRender.toString()
186
+ children: valueString
185
187
  });
186
188
  }
187
189
 
@@ -106,11 +106,21 @@ function GridColumnsPanel(props) {
106
106
 
107
107
  const toggleAllColumns = React.useCallback(isVisible => {
108
108
  if (apiRef.current.unstable_caches.columns.isUsingColumnVisibilityModel) {
109
- if (isVisible) {
110
- return apiRef.current.setColumnVisibilityModel({});
111
- }
112
-
113
- return apiRef.current.setColumnVisibilityModel(Object.fromEntries(columns.filter(col => col.hideable !== false).map(col => [col.field, false])));
109
+ const currentModel = gridColumnVisibilityModelSelector(apiRef);
110
+
111
+ const newModel = _extends({}, currentModel);
112
+
113
+ columns.forEach(col => {
114
+ if (col.hideable) {
115
+ if (isVisible) {
116
+ // delete the key from the model instead of setting it to `true`
117
+ delete newModel[col.field];
118
+ } else {
119
+ newModel[col.field] = false;
120
+ }
121
+ }
122
+ });
123
+ return apiRef.current.setColumnVisibilityModel(newModel);
114
124
  } // TODO v6: Remove
115
125
 
116
126
 
@@ -2,7 +2,7 @@
2
2
  import { AutocompleteProps } from '@mui/material/Autocomplete';
3
3
  import { GridFilterInputValueProps } from './GridFilterInputValueProps';
4
4
  import type { ValueOptions } from '../../../models/colDef/gridColDef';
5
- export interface GridFilterInputMultipleSingleSelectProps extends Omit<AutocompleteProps<ValueOptions, true, false, true>, 'options' | 'renderInput' | 'onChange' | 'value' | 'id' | 'filterOptions' | 'isOptionEqualToValue' | 'limitTags' | 'multiple' | 'color'>, GridFilterInputValueProps {
5
+ export interface GridFilterInputMultipleSingleSelectProps extends Omit<AutocompleteProps<ValueOptions, true, false, true>, 'options' | 'renderInput' | 'onChange' | 'value' | 'id' | 'filterOptions' | 'isOptionEqualToValue' | 'multiple' | 'color'>, GridFilterInputValueProps {
6
6
  type?: 'singleSelect';
7
7
  }
8
8
  declare function GridFilterInputMultipleSingleSelect(props: GridFilterInputMultipleSingleSelectProps): JSX.Element;
@@ -105,7 +105,6 @@ function GridFilterInputMultipleSingleSelect(props) {
105
105
  }, [applyValue, item]);
106
106
  return /*#__PURE__*/_jsx(Autocomplete, _extends({
107
107
  multiple: true,
108
- limitTags: 1,
109
108
  options: resolvedValueOptions,
110
109
  isOptionEqualToValue: isOptionEqualToValue,
111
110
  filterOptions: filter,
@@ -49,7 +49,6 @@ function GridFilterInputMultipleValue(props) {
49
49
  return /*#__PURE__*/_jsx(Autocomplete, _extends({
50
50
  multiple: true,
51
51
  freeSolo: true,
52
- limitTags: 1,
53
52
  options: [],
54
53
  filterOptions: (options, params) => {
55
54
  const {
@@ -228,10 +228,14 @@ export const useGridPrintExport = (apiRef, props) => {
228
228
  } else {
229
229
  printWindow.onload = () => {
230
230
  handlePrintWindowLoad(printWindow, options);
231
+ const mediaQueryList = printWindow.contentWindow.matchMedia('print');
232
+ mediaQueryList.addEventListener('change', mql => {
233
+ const isAfterPrint = mql.matches === false;
231
234
 
232
- printWindow.contentWindow.onafterprint = () => {
233
- handlePrintWindowAfterPrint(printWindow);
234
- };
235
+ if (isAfterPrint) {
236
+ handlePrintWindowAfterPrint(printWindow);
237
+ }
238
+ });
235
239
  };
236
240
 
237
241
  doc.current.body.appendChild(printWindow);
@@ -217,13 +217,9 @@ export const useGridVirtualScroller = props => {
217
217
  });
218
218
  }
219
219
  }, [apiRef, currentPage.rows, onRenderZonePositioning, renderZoneMinColumnIndex, renderZoneMaxColumnIndex, rootProps.columnBuffer, rootProps.rowBuffer]);
220
- React.useLayoutEffect(() => {
221
- if (renderContext) {
222
- updateRenderZonePosition(renderContext);
223
- }
224
- }, [renderContext, updateRenderZonePosition]);
225
220
  const updateRenderContext = React.useCallback(nextRenderContext => {
226
221
  setRenderContext(nextRenderContext);
222
+ updateRenderZonePosition(nextRenderContext);
227
223
  const [firstRowToRender, lastRowToRender] = getRenderableIndexes({
228
224
  firstIndex: nextRenderContext.firstRowIndex,
229
225
  lastIndex: nextRenderContext.lastRowIndex,
@@ -236,7 +232,7 @@ export const useGridVirtualScroller = props => {
236
232
  lastRowToRender
237
233
  });
238
234
  prevRenderContext.current = nextRenderContext;
239
- }, [apiRef, setRenderContext, prevRenderContext, currentPage.rows.length, rootProps.rowBuffer]);
235
+ }, [apiRef, setRenderContext, prevRenderContext, currentPage.rows.length, rootProps.rowBuffer, updateRenderZonePosition]);
240
236
  useEnhancedEffect(() => {
241
237
  if (containerDimensions.width == null) {
242
238
  return;
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI X v5.17.19
1
+ /** @license MUI X v5.17.21
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -184,9 +184,11 @@ function GridCell(props) {
184
184
 
185
185
  var renderChildren = function renderChildren() {
186
186
  if (children == null) {
187
+ var valueString = valueToRender == null ? void 0 : valueToRender.toString();
187
188
  return /*#__PURE__*/_jsx("div", {
189
+ title: valueString,
188
190
  className: classes.content,
189
- children: valueToRender == null ? void 0 : valueToRender.toString()
191
+ children: valueString
190
192
  });
191
193
  }
192
194
 
@@ -121,15 +121,21 @@ function GridColumnsPanel(props) {
121
121
 
122
122
  var toggleAllColumns = React.useCallback(function (isVisible) {
123
123
  if (apiRef.current.unstable_caches.columns.isUsingColumnVisibilityModel) {
124
- if (isVisible) {
125
- return apiRef.current.setColumnVisibilityModel({});
126
- }
127
-
128
- return apiRef.current.setColumnVisibilityModel(Object.fromEntries(columns.filter(function (col) {
129
- return col.hideable !== false;
130
- }).map(function (col) {
131
- return [col.field, false];
132
- })));
124
+ var currentModel = gridColumnVisibilityModelSelector(apiRef);
125
+
126
+ var newModel = _extends({}, currentModel);
127
+
128
+ columns.forEach(function (col) {
129
+ if (col.hideable) {
130
+ if (isVisible) {
131
+ // delete the key from the model instead of setting it to `true`
132
+ delete newModel[col.field];
133
+ } else {
134
+ newModel[col.field] = false;
135
+ }
136
+ }
137
+ });
138
+ return apiRef.current.setColumnVisibilityModel(newModel);
133
139
  } // TODO v6: Remove
134
140
 
135
141
 
@@ -115,7 +115,6 @@ function GridFilterInputMultipleSingleSelect(props) {
115
115
  }, [applyValue, item]);
116
116
  return /*#__PURE__*/_jsx(Autocomplete, _extends({
117
117
  multiple: true,
118
- limitTags: 1,
119
118
  options: resolvedValueOptions,
120
119
  isOptionEqualToValue: isOptionEqualToValue,
121
120
  filterOptions: filter,
@@ -54,7 +54,6 @@ function GridFilterInputMultipleValue(props) {
54
54
  return /*#__PURE__*/_jsx(Autocomplete, _extends({
55
55
  multiple: true,
56
56
  freeSolo: true,
57
- limitTags: 1,
58
57
  options: [],
59
58
  filterOptions: function filterOptions(options, params) {
60
59
  var inputValue = params.inputValue;
@@ -253,10 +253,14 @@ export var useGridPrintExport = function useGridPrintExport(apiRef, props) {
253
253
  } else {
254
254
  printWindow.onload = function () {
255
255
  handlePrintWindowLoad(printWindow, options);
256
-
257
- printWindow.contentWindow.onafterprint = function () {
258
- handlePrintWindowAfterPrint(printWindow);
259
- };
256
+ var mediaQueryList = printWindow.contentWindow.matchMedia('print');
257
+ mediaQueryList.addEventListener('change', function (mql) {
258
+ var isAfterPrint = mql.matches === false;
259
+
260
+ if (isAfterPrint) {
261
+ handlePrintWindowAfterPrint(printWindow);
262
+ }
263
+ });
260
264
  };
261
265
 
262
266
  doc.current.body.appendChild(printWindow);
@@ -240,13 +240,9 @@ export var useGridVirtualScroller = function useGridVirtualScroller(props) {
240
240
  });
241
241
  }
242
242
  }, [apiRef, currentPage.rows, onRenderZonePositioning, renderZoneMinColumnIndex, renderZoneMaxColumnIndex, rootProps.columnBuffer, rootProps.rowBuffer]);
243
- React.useLayoutEffect(function () {
244
- if (renderContext) {
245
- updateRenderZonePosition(renderContext);
246
- }
247
- }, [renderContext, updateRenderZonePosition]);
248
243
  var updateRenderContext = React.useCallback(function (nextRenderContext) {
249
244
  setRenderContext(nextRenderContext);
245
+ updateRenderZonePosition(nextRenderContext);
250
246
 
251
247
  var _getRenderableIndexes7 = getRenderableIndexes({
252
248
  firstIndex: nextRenderContext.firstRowIndex,
@@ -264,7 +260,7 @@ export var useGridVirtualScroller = function useGridVirtualScroller(props) {
264
260
  lastRowToRender: lastRowToRender
265
261
  });
266
262
  prevRenderContext.current = nextRenderContext;
267
- }, [apiRef, setRenderContext, prevRenderContext, currentPage.rows.length, rootProps.rowBuffer]);
263
+ }, [apiRef, setRenderContext, prevRenderContext, currentPage.rows.length, rootProps.rowBuffer, updateRenderZonePosition]);
268
264
  useEnhancedEffect(function () {
269
265
  if (containerDimensions.width == null) {
270
266
  return;
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI X v5.17.19
1
+ /** @license MUI X v5.17.21
2
2
  *
3
3
  * This source code is licensed under the MIT license found in the
4
4
  * LICENSE file in the root directory of this source tree.
@@ -86,11 +86,11 @@ export default function createDetectElementResize(nonce, hostWindow) {
86
86
  var animationKeyframes = '@' + keyframeprefix + 'keyframes ' + animationName + ' { from { opacity: 0; } to { opacity: 0; } } ';
87
87
  var animationStyle = keyframeprefix + 'animation: 1ms ' + animationName + '; ';
88
88
 
89
- var createStyles = function createStyles(doc) {
90
- if (!doc.getElementById('muiDetectElementResize')) {
89
+ var createStyles = function createStyles(doc, root) {
90
+ if (!root.getElementById('muiDetectElementResize')) {
91
91
  //opacity:0 works around a chrome bug https://code.google.com/p/chromium/issues/detail?id=286360
92
92
  var css = (animationKeyframes ? animationKeyframes : '') + '.Mui-resizeTriggers { ' + (animationStyle ? animationStyle : '') + 'visibility: hidden; opacity: 0; } ' + '.Mui-resizeTriggers, .Mui-resizeTriggers > div, .contract-trigger:before { content: " "; display: block; position: absolute; top: 0; left: 0; height: 100%; width: 100%; overflow: hidden; z-index: -1; } .Mui-resizeTriggers > div { background: #eee; overflow: auto; } .contract-trigger:before { width: 200%; height: 200%; }',
93
- head = doc.head || doc.getElementsByTagName('head')[0],
93
+ container = root.constructor.name === 'ShadowRoot' ? root : doc.head || doc.getElementsByTagName('head')[0],
94
94
  style = doc.createElement('style');
95
95
  style.id = 'muiDetectElementResize';
96
96
  style.type = 'text/css';
@@ -105,7 +105,7 @@ export default function createDetectElementResize(nonce, hostWindow) {
105
105
  style.appendChild(doc.createTextNode(css));
106
106
  }
107
107
 
108
- head.appendChild(style);
108
+ container.appendChild(style);
109
109
  }
110
110
  };
111
111
 
@@ -118,7 +118,7 @@ export default function createDetectElementResize(nonce, hostWindow) {
118
118
  element.style.position = 'relative';
119
119
  }
120
120
 
121
- createStyles(doc);
121
+ createStyles(doc, element.getRootNode());
122
122
  element.__resizeLast__ = {};
123
123
  element.__resizeListeners__ = [];
124
124
  (element.__resizeTriggers__ = doc.createElement('div')).className = 'Mui-resizeTriggers';
@@ -0,0 +1,161 @@
1
+ import { beBYCore } from './coreLocales';
2
+ import { getGridLocalization } from '../utils/getGridLocalization';
3
+
4
+ var getPluralForm = function getPluralForm(count, options) {
5
+ var pluralForm = options.other;
6
+ var lastDigit = count % 10;
7
+
8
+ if (lastDigit > 1 && lastDigit < 5 && (count < 10 || count > 20)) {
9
+ pluralForm = options.twoToFour;
10
+ } else if (lastDigit === 1 && count % 100 !== 11) {
11
+ pluralForm = options.one;
12
+ }
13
+
14
+ return "".concat(count, " ").concat(pluralForm);
15
+ };
16
+
17
+ var beBYGrid = {
18
+ // Root
19
+ noRowsLabel: 'Няма радкоў',
20
+ noResultsOverlayLabel: 'Дадзеныя не знойдзены.',
21
+ // errorOverlayDefaultLabel: 'An error occurred.',
22
+ // Density selector toolbar button text
23
+ toolbarDensity: 'Вышыня радка',
24
+ toolbarDensityLabel: 'Вышыня радка',
25
+ toolbarDensityCompact: 'Кампактны',
26
+ toolbarDensityStandard: 'Стандартны',
27
+ toolbarDensityComfortable: 'Камфортны',
28
+ // Columns selector toolbar button text
29
+ toolbarColumns: 'Слупкі',
30
+ toolbarColumnsLabel: 'Выберыце слупкі',
31
+ // Filters toolbar button text
32
+ toolbarFilters: 'Фільтры',
33
+ toolbarFiltersLabel: 'Паказаць фільтры',
34
+ toolbarFiltersTooltipHide: 'Схаваць фільтры',
35
+ toolbarFiltersTooltipShow: 'Паказаць фільтры',
36
+ toolbarFiltersTooltipActive: function toolbarFiltersTooltipActive(count) {
37
+ return getPluralForm(count, {
38
+ one: 'актыўны фільтр',
39
+ twoToFour: 'актыўных фільтра',
40
+ other: 'актыўных фільтраў'
41
+ });
42
+ },
43
+ // Quick filter toolbar field
44
+ toolbarQuickFilterPlaceholder: 'Пошук…',
45
+ toolbarQuickFilterLabel: 'Пошук',
46
+ toolbarQuickFilterDeleteIconLabel: 'Ачысціць',
47
+ // Export selector toolbar button text
48
+ toolbarExport: 'Экспарт',
49
+ toolbarExportLabel: 'Экспарт',
50
+ toolbarExportCSV: 'Спампаваць у фармаце CSV',
51
+ toolbarExportPrint: 'Друк',
52
+ toolbarExportExcel: 'Спампаваць у фармаце Excel',
53
+ // Columns panel text
54
+ columnsPanelTextFieldLabel: 'Знайсці слупок',
55
+ columnsPanelTextFieldPlaceholder: 'Загаловак слупка',
56
+ columnsPanelDragIconLabel: 'Змяніць чарговасць слупкоў',
57
+ columnsPanelShowAllButton: 'Паказаць усе',
58
+ columnsPanelHideAllButton: 'Схаваць усе',
59
+ // Filter panel text
60
+ filterPanelAddFilter: 'Дадаць фільтр',
61
+ filterPanelDeleteIconLabel: 'Выдаліць',
62
+ filterPanelLinkOperator: 'Лагічныя аператары',
63
+ filterPanelOperators: 'Аператары',
64
+ // TODO v6: rename to filterPanelOperator
65
+ filterPanelOperatorAnd: 'І',
66
+ filterPanelOperatorOr: 'Або',
67
+ filterPanelColumns: 'Слупкі',
68
+ filterPanelInputLabel: 'Значэнне',
69
+ filterPanelInputPlaceholder: 'Значэнне фільтра',
70
+ // Filter operators text
71
+ filterOperatorContains: 'змяшчае',
72
+ filterOperatorEquals: 'роўны',
73
+ filterOperatorStartsWith: 'пачынаецца з',
74
+ filterOperatorEndsWith: 'скончваецца на',
75
+ filterOperatorIs: 'роўны',
76
+ filterOperatorNot: 'не роўны',
77
+ filterOperatorAfter: 'больш чым',
78
+ filterOperatorOnOrAfter: 'больш ці роўны',
79
+ filterOperatorBefore: 'меньш чым',
80
+ filterOperatorOnOrBefore: 'меньш ці роўны',
81
+ filterOperatorIsEmpty: 'пусты',
82
+ filterOperatorIsNotEmpty: 'не пусты',
83
+ filterOperatorIsAnyOf: 'усякі з',
84
+ // Filter values text
85
+ filterValueAny: 'усякі',
86
+ filterValueTrue: 'праўда',
87
+ filterValueFalse: 'няпраўда',
88
+ // Column menu text
89
+ columnMenuLabel: 'Меню',
90
+ columnMenuShowColumns: 'Паказаць слупкі',
91
+ columnMenuFilter: 'Фільтр',
92
+ columnMenuHideColumn: 'Схаваць',
93
+ columnMenuUnsort: 'Скасаваць сартыроўку',
94
+ columnMenuSortAsc: 'Сартыраваць па нарастанню',
95
+ columnMenuSortDesc: 'Сартыраваць па спаданню',
96
+ // Column header text
97
+ columnHeaderFiltersTooltipActive: function columnHeaderFiltersTooltipActive(count) {
98
+ return getPluralForm(count, {
99
+ one: 'актыўны фільтр',
100
+ twoToFour: 'актыўных фільтра',
101
+ other: 'актыўных фільтраў'
102
+ });
103
+ },
104
+ columnHeaderFiltersLabel: 'Паказаць фільтры',
105
+ columnHeaderSortIconLabel: 'Сартыраваць',
106
+ // Rows selected footer text
107
+ footerRowSelected: function footerRowSelected(count) {
108
+ return getPluralForm(count, {
109
+ one: 'абраны радок',
110
+ twoToFour: 'абраных радка',
111
+ other: 'абраных радкоў'
112
+ });
113
+ },
114
+ // Total row amount footer text
115
+ footerTotalRows: 'Усяго радкоў:',
116
+ // Total visible row amount footer text
117
+ footerTotalVisibleRows: function footerTotalVisibleRows(visibleCount, totalCount) {
118
+ return "".concat(visibleCount.toLocaleString(), " \u0437 ").concat(totalCount.toLocaleString());
119
+ },
120
+ // Checkbox selection text
121
+ checkboxSelectionHeaderName: 'Выбар сцяжка',
122
+ checkboxSelectionSelectAllRows: 'Абраць усе радкі',
123
+ checkboxSelectionUnselectAllRows: 'Скасаваць выбар усіх радкоў',
124
+ checkboxSelectionSelectRow: 'Абраць радок',
125
+ checkboxSelectionUnselectRow: 'Скасаваць выбар радка',
126
+ // Boolean cell text
127
+ booleanCellTrueLabel: 'праўда',
128
+ booleanCellFalseLabel: 'няпраўда',
129
+ // Actions cell more text
130
+ actionsCellMore: 'больш',
131
+ // Column pinning text
132
+ pinToLeft: 'Замацаваць злева',
133
+ pinToRight: 'Замацаваць справа',
134
+ unpin: 'Адмацаваць',
135
+ // Tree Data
136
+ treeDataGroupingHeaderName: 'Група',
137
+ treeDataExpand: 'паказаць даччыныя элементы',
138
+ treeDataCollapse: 'схаваць даччыныя элементы',
139
+ // Grouping columns
140
+ groupingColumnHeaderName: 'Група',
141
+ groupColumn: function groupColumn(name) {
142
+ return "\u0413\u0440\u0443\u043F\u0430\u0432\u0430\u0446\u044C \u043F\u0430 ".concat(name);
143
+ },
144
+ unGroupColumn: function unGroupColumn(name) {
145
+ return "\u0420\u0430\u0437\u0433\u0440\u0443\u043F\u0430\u0432\u0430\u0446\u044C \u043F\u0430 ".concat(name);
146
+ },
147
+ // Master/detail
148
+ detailPanelToggle: 'Дэталі',
149
+ expandDetailPanel: 'Разгарнуць',
150
+ collapseDetailPanel: 'Згарнуць',
151
+ // Row reordering text
152
+ rowReorderingHeaderName: 'Змяненне чарговасці радкоў',
153
+ // Aggregation
154
+ aggregationMenuItemHeader: "Аб'яднанне дадзеных",
155
+ aggregationFunctionLabelSum: 'сума',
156
+ aggregationFunctionLabelAvg: 'сярэдняе',
157
+ aggregationFunctionLabelMin: 'мінімум',
158
+ aggregationFunctionLabelMax: 'максімум',
159
+ aggregationFunctionLabelSize: 'памер'
160
+ };
161
+ export var beBY = getGridLocalization(beBYGrid, beBYCore);
@@ -0,0 +1,67 @@
1
+ // This file contains copies of the core locales for `MuiTablePagination` released
2
+ // after the `@mui/material` package `v5.4.1` (peer dependency of `@mui/x-data-grid`).
3
+ // This allows not to bump the minimal version of `@mui/material` in peerDependencies which results
4
+ // in broader compatibility between the packages.
5
+ // See https://github.com/mui/mui-x/pull/7646#issuecomment-1404605556 for additional context.
6
+ export var beBYCore = {
7
+ components: {
8
+ MuiTablePagination: {
9
+ defaultProps: {
10
+ getItemAriaLabel: function getItemAriaLabel(type) {
11
+ if (type === 'first') {
12
+ return 'Перайсці на першую старонку';
13
+ }
14
+
15
+ if (type === 'last') {
16
+ return 'Перайсці на апошнюю старонку';
17
+ }
18
+
19
+ if (type === 'next') {
20
+ return 'Перайсці на наступную старонку';
21
+ } // if (type === 'previous') {
22
+
23
+
24
+ return 'Перайсці на папярэднюю старонку';
25
+ },
26
+ labelRowsPerPage: 'Радкоў на старонцы:',
27
+ labelDisplayedRows: function labelDisplayedRows(_ref) {
28
+ var from = _ref.from,
29
+ to = _ref.to,
30
+ count = _ref.count;
31
+ return "".concat(from, "\u2013").concat(to, " \u0437 ").concat(count !== -1 ? count : "\u0431\u043E\u043B\u044C\u0448 \u0447\u044B\u043C ".concat(to));
32
+ }
33
+ }
34
+ }
35
+ }
36
+ };
37
+ export var urPKCore = {
38
+ components: {
39
+ MuiTablePagination: {
40
+ defaultProps: {
41
+ getItemAriaLabel: function getItemAriaLabel(type) {
42
+ if (type === 'first') {
43
+ return 'پہلے صفحے پر جائیں';
44
+ }
45
+
46
+ if (type === 'last') {
47
+ return 'آخری صفحے پر جائیں';
48
+ }
49
+
50
+ if (type === 'next') {
51
+ return 'اگلے صفحے پر جائیں';
52
+ } // if (type === 'previous') {
53
+
54
+
55
+ return 'پچھلے صفحے پر جائیں';
56
+ },
57
+ labelRowsPerPage: 'ایک صفحے پر قطاریں:',
58
+ labelDisplayedRows: function labelDisplayedRows(_ref2) {
59
+ var from = _ref2.from,
60
+ to = _ref2.to,
61
+ count = _ref2.count;
62
+ return "".concat(count !== -1 ? "".concat(count, " \u0645\u06CC\u06BA \u0633\u06D2") : "".concat(to, " \u0633\u06D2 \u0630\u06CC\u0627\u062F\u06C1 \u0645\u06CC\u06BA \u0633\u06D2"), " ").concat(from, " \u0633\u06D2 ").concat(to, " \u0642\u0637\u0627\u0631\u06CC\u06BA");
63
+ }
64
+ }
65
+ }
66
+ }
67
+ };
@@ -107,25 +107,29 @@ var esESGrid = {
107
107
  pinToRight: 'Anclar a la derecha',
108
108
  unpin: 'Desanclar',
109
109
  // Tree Data
110
- // treeDataGroupingHeaderName: 'Group',
111
- // treeDataExpand: 'see children',
112
- // treeDataCollapse: 'hide children',
110
+ treeDataGroupingHeaderName: 'Grupo',
111
+ treeDataExpand: 'mostrar hijos',
112
+ treeDataCollapse: 'ocultar hijos',
113
113
  // Grouping columns
114
- // groupingColumnHeaderName: 'Group',
115
- // groupColumn: name => `Group by ${name}`,
116
- // unGroupColumn: name => `Stop grouping by ${name}`,
114
+ groupingColumnHeaderName: 'Grupo',
115
+ groupColumn: function groupColumn(name) {
116
+ return "Agrupar por ".concat(name);
117
+ },
118
+ unGroupColumn: function unGroupColumn(name) {
119
+ return "No agrupar por ".concat(name);
120
+ },
117
121
  // Master/detail
118
- // detailPanelToggle: 'Detail panel toggle',
122
+ detailPanelToggle: 'Alternar detalle',
119
123
  expandDetailPanel: 'Expandir',
120
- collapseDetailPanel: 'reducirse',
124
+ collapseDetailPanel: 'Contraer',
121
125
  // Row reordering text
122
- // rowReorderingHeaderName: 'Row reordering',
126
+ rowReorderingHeaderName: 'Reordenar filas',
123
127
  // Aggregation
124
- // aggregationMenuItemHeader: 'Aggregation',
125
- // aggregationFunctionLabelSum: 'sum',
126
- // aggregationFunctionLabelAvg: 'avg',
128
+ aggregationMenuItemHeader: 'Agregación',
129
+ aggregationFunctionLabelSum: 'sum',
130
+ aggregationFunctionLabelAvg: 'avg',
127
131
  aggregationFunctionLabelMin: 'min',
128
- aggregationFunctionLabelMax: 'max' // aggregationFunctionLabelSize: 'size',
129
-
132
+ aggregationFunctionLabelMax: 'max',
133
+ aggregationFunctionLabelSize: 'tamaño'
130
134
  };
131
135
  export var esES = getGridLocalization(esESGrid, esESCore);
@@ -1,5 +1,6 @@
1
1
  // Keys are translated from enUS
2
2
  export * from './arSD';
3
+ export * from './beBY';
3
4
  export * from './bgBG';
4
5
  export * from './csCZ';
5
6
  export * from './daDK';