@mui/x-data-grid 5.17.20 → 5.17.22

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 (62) hide show
  1. package/CHANGELOG.md +64 -0
  2. package/components/cell/GridCell.js +3 -1
  3. package/components/panel/GridColumnsPanel.js +15 -5
  4. package/hooks/features/export/useGridPrintExport.js +19 -3
  5. package/index.js +1 -1
  6. package/legacy/components/cell/GridCell.js +3 -1
  7. package/legacy/components/panel/GridColumnsPanel.js +15 -9
  8. package/legacy/hooks/features/export/useGridPrintExport.js +20 -4
  9. package/legacy/index.js +1 -1
  10. package/legacy/lib/createDetectElementResize/index.js +5 -5
  11. package/legacy/locales/beBY.js +161 -0
  12. package/legacy/locales/coreLocales.js +67 -0
  13. package/legacy/locales/esES.js +18 -14
  14. package/legacy/locales/frFR.js +1 -1
  15. package/legacy/locales/index.js +2 -0
  16. package/legacy/locales/jaJP.js +16 -16
  17. package/legacy/locales/skSK.js +8 -8
  18. package/legacy/locales/urPK.js +135 -0
  19. package/legacy/locales/viVN.js +22 -18
  20. package/lib/createDetectElementResize/index.js +5 -5
  21. package/locales/beBY.d.ts +2 -0
  22. package/locales/beBY.js +149 -0
  23. package/locales/coreLocales.d.ts +3 -0
  24. package/locales/coreLocales.js +65 -0
  25. package/locales/esES.js +14 -14
  26. package/locales/frFR.js +1 -1
  27. package/locales/index.d.ts +2 -0
  28. package/locales/index.js +2 -0
  29. package/locales/jaJP.js +16 -16
  30. package/locales/skSK.js +8 -8
  31. package/locales/urPK.d.ts +2 -0
  32. package/locales/urPK.js +123 -0
  33. package/locales/viVN.js +18 -18
  34. package/modern/components/cell/GridCell.js +3 -1
  35. package/modern/components/panel/GridColumnsPanel.js +15 -5
  36. package/modern/hooks/features/export/useGridPrintExport.js +19 -3
  37. package/modern/index.js +1 -1
  38. package/modern/lib/createDetectElementResize/index.js +5 -5
  39. package/modern/locales/beBY.js +149 -0
  40. package/modern/locales/coreLocales.js +65 -0
  41. package/modern/locales/esES.js +14 -14
  42. package/modern/locales/frFR.js +1 -1
  43. package/modern/locales/index.js +2 -0
  44. package/modern/locales/jaJP.js +16 -16
  45. package/modern/locales/skSK.js +8 -8
  46. package/modern/locales/urPK.js +123 -0
  47. package/modern/locales/viVN.js +18 -18
  48. package/node/components/cell/GridCell.js +3 -1
  49. package/node/components/panel/GridColumnsPanel.js +13 -5
  50. package/node/hooks/features/export/useGridPrintExport.js +19 -3
  51. package/node/index.js +1 -1
  52. package/node/lib/createDetectElementResize/index.js +5 -5
  53. package/node/locales/beBY.js +158 -0
  54. package/node/locales/coreLocales.js +73 -0
  55. package/node/locales/esES.js +14 -14
  56. package/node/locales/frFR.js +1 -1
  57. package/node/locales/index.js +26 -0
  58. package/node/locales/jaJP.js +16 -16
  59. package/node/locales/skSK.js +8 -8
  60. package/node/locales/urPK.js +133 -0
  61. package/node/locales/viVN.js +18 -18
  62. package/package.json +1 -1
package/locales/skSK.js CHANGED
@@ -146,13 +146,13 @@ const skSKGrid = {
146
146
  expandDetailPanel: 'Rozbaliť',
147
147
  collapseDetailPanel: 'Zbaliť',
148
148
  // Row reordering text
149
- rowReorderingHeaderName: 'Preusporiadávanie riadkov' // Aggregation
150
- // aggregationMenuItemHeader: 'Aggregation',
151
- // aggregationFunctionLabelSum: 'sum',
152
- // aggregationFunctionLabelAvg: 'avg',
153
- // aggregationFunctionLabelMin: 'min',
154
- // aggregationFunctionLabelMax: 'max',
155
- // aggregationFunctionLabelSize: 'size',
156
-
149
+ rowReorderingHeaderName: 'Preusporiadávanie riadkov',
150
+ // Aggregation
151
+ aggregationMenuItemHeader: 'Agregácia',
152
+ aggregationFunctionLabelSum: 'suma',
153
+ aggregationFunctionLabelAvg: 'priemer',
154
+ aggregationFunctionLabelMin: 'min',
155
+ aggregationFunctionLabelMax: 'max',
156
+ aggregationFunctionLabelSize: 'počet'
157
157
  };
158
158
  export const skSK = getGridLocalization(skSKGrid, skSKCore);
@@ -0,0 +1,2 @@
1
+ import { Localization } from '../utils/getGridLocalization';
2
+ export declare const urPK: Localization;
@@ -0,0 +1,123 @@
1
+ import { urPKCore } from './coreLocales';
2
+ import { getGridLocalization } from '../utils/getGridLocalization';
3
+ const urPKGrid = {
4
+ // Root
5
+ noRowsLabel: 'کوئی قطاریں نہیں',
6
+ noResultsOverlayLabel: 'کوئی نتائج نہیں',
7
+ errorOverlayDefaultLabel: 'ایک مسئلہ ہو گیا',
8
+ // Density selector toolbar button text
9
+ toolbarDensity: 'کثافت',
10
+ toolbarDensityLabel: 'کثافت',
11
+ toolbarDensityCompact: 'تنگ',
12
+ toolbarDensityStandard: 'درمیانہ',
13
+ toolbarDensityComfortable: 'مناسب',
14
+ // Columns selector toolbar button text
15
+ toolbarColumns: 'کالمز',
16
+ toolbarColumnsLabel: 'کالمز کو منتخب کریں',
17
+ // Filters toolbar button text
18
+ toolbarFilters: 'فلٹرز',
19
+ toolbarFiltersLabel: 'فلٹرز دکھائیں',
20
+ toolbarFiltersTooltipHide: 'فلٹرز چھپائیں',
21
+ toolbarFiltersTooltipShow: 'فلٹرز دکھائیں',
22
+ toolbarFiltersTooltipActive: count => count !== 1 ? `${count} فعال فلٹرز` : `${count} فلٹرز فعال`,
23
+ // Quick filter toolbar field
24
+ toolbarQuickFilterPlaceholder: 'تلاش کریں۔۔۔',
25
+ toolbarQuickFilterLabel: 'تلاش کریں',
26
+ toolbarQuickFilterDeleteIconLabel: 'کلئیر کریں',
27
+ // Export selector toolbar button text
28
+ toolbarExport: 'ایکسپورٹ',
29
+ toolbarExportLabel: 'ایکسپورٹ',
30
+ toolbarExportCSV: 'CSV کے طور پر ڈاوٴنلوڈ کریں',
31
+ toolbarExportPrint: 'پرنٹ کریں',
32
+ toolbarExportExcel: 'ایکسل کے طور پر ڈاوٴنلوڈ کریں',
33
+ // Columns panel text
34
+ columnsPanelTextFieldLabel: 'کالم کو تلاش کریں',
35
+ columnsPanelTextFieldPlaceholder: 'کالم کا عنوان',
36
+ columnsPanelDragIconLabel: 'کالم کی ترتیب تبدیل کریں',
37
+ columnsPanelShowAllButton: 'سارے دکھائیں',
38
+ columnsPanelHideAllButton: 'سارے چھپائیں',
39
+ // Filter panel text
40
+ filterPanelAddFilter: 'نیا فلٹر',
41
+ filterPanelDeleteIconLabel: 'ختم کریں',
42
+ filterPanelLinkOperator: 'لاجک آپریٹر',
43
+ filterPanelOperators: 'آپریٹر',
44
+ // TODO v6: rename to filterPanelOperator
45
+ filterPanelOperatorAnd: 'اور',
46
+ filterPanelOperatorOr: 'یا',
47
+ filterPanelColumns: 'کالمز',
48
+ filterPanelInputLabel: 'ویلیو',
49
+ filterPanelInputPlaceholder: 'ویلیو کو فلٹر کریں',
50
+ // Filter operators text
51
+ filterOperatorContains: 'شامل ہے',
52
+ filterOperatorEquals: 'برابر ہے',
53
+ filterOperatorStartsWith: 'شروع ہوتا ہے',
54
+ filterOperatorEndsWith: 'ختم ہوتا ہے',
55
+ filterOperatorIs: 'ہے',
56
+ filterOperatorNot: 'نہیں',
57
+ filterOperatorAfter: 'بعد میں ہے',
58
+ filterOperatorOnOrAfter: 'پر یا بعد میں ہے',
59
+ filterOperatorBefore: 'پہلے ہے',
60
+ filterOperatorOnOrBefore: 'پر یا پہلے ہے',
61
+ filterOperatorIsEmpty: 'خالی ہے',
62
+ filterOperatorIsNotEmpty: 'خالی نہیں ہے',
63
+ filterOperatorIsAnyOf: 'ان میں سے کوئی ہے',
64
+ // Filter values text
65
+ filterValueAny: 'کوئی بھی',
66
+ filterValueTrue: 'صحیح',
67
+ filterValueFalse: 'غلط',
68
+ // Column menu text
69
+ columnMenuLabel: 'مینیو',
70
+ columnMenuShowColumns: 'کالم دکھائیں',
71
+ columnMenuFilter: 'فلٹر',
72
+ columnMenuHideColumn: 'چھپائیں',
73
+ columnMenuUnsort: 'sort ختم کریں',
74
+ columnMenuSortAsc: 'ترتیب صعودی',
75
+ columnMenuSortDesc: 'ترتیب نزولی',
76
+ // Column header text
77
+ columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} فعال فلٹرز` : `${count} فلٹرز فعال`,
78
+ columnHeaderFiltersLabel: 'فلٹرز دکھائیں',
79
+ columnHeaderSortIconLabel: 'Sort',
80
+ // Rows selected footer text
81
+ footerRowSelected: count => count !== 1 ? `${count.toLocaleString()} منتخب قطاریں` : `${count.toLocaleString()} منتخب قطار`,
82
+ // Total row amount footer text
83
+ footerTotalRows: 'کل قطاریں:',
84
+ // Total visible row amount footer text
85
+ footerTotalVisibleRows: (visibleCount, totalCount) => `${totalCount.toLocaleString()} میں سے ${visibleCount.toLocaleString()}`,
86
+ // Checkbox selection text
87
+ checkboxSelectionHeaderName: 'چیک باکس منتخب کریں',
88
+ checkboxSelectionSelectAllRows: 'تمام قطاریں منتخب کریں',
89
+ checkboxSelectionUnselectAllRows: 'تمام قطاریں نامنتخب کریں ',
90
+ checkboxSelectionSelectRow: 'قطار منتخب کریں',
91
+ checkboxSelectionUnselectRow: 'قطار نامنتخب کریں',
92
+ // Boolean cell text
93
+ booleanCellTrueLabel: 'ہاں',
94
+ booleanCellFalseLabel: 'نہیں',
95
+ // Actions cell more text
96
+ actionsCellMore: 'ذیادہ',
97
+ // Column pinning text
98
+ pinToLeft: 'بائیں جانب pin کریں',
99
+ pinToRight: 'دائیں جانب pin کریں',
100
+ unpin: 'pin ختم کریں',
101
+ // Tree Data
102
+ treeDataGroupingHeaderName: 'گروپ',
103
+ treeDataExpand: 'شاخیں دیکھیں',
104
+ treeDataCollapse: 'شاخیں چھپائیں',
105
+ // Grouping columns
106
+ groupingColumnHeaderName: 'گروپ',
107
+ groupColumn: name => `${name} سے گروپ کریں`,
108
+ unGroupColumn: name => `${name} سے گروپ ختم کریں`,
109
+ // Master/detail
110
+ detailPanelToggle: 'ڈیٹیل پینل کھولیں / بند کریں',
111
+ expandDetailPanel: 'پھیلائیں',
112
+ collapseDetailPanel: 'تنگ کریں',
113
+ // Row reordering text
114
+ rowReorderingHeaderName: 'قطاروں کی ترتیب تبدیل کریں',
115
+ // Aggregation
116
+ aggregationMenuItemHeader: 'Aggregation',
117
+ aggregationFunctionLabelSum: 'sum',
118
+ aggregationFunctionLabelAvg: 'avg',
119
+ aggregationFunctionLabelMin: 'min',
120
+ aggregationFunctionLabelMax: 'max',
121
+ aggregationFunctionLabelSize: 'size'
122
+ };
123
+ export const urPK = getGridLocalization(urPKGrid, urPKCore);
package/locales/viVN.js CHANGED
@@ -21,15 +21,15 @@ const viVNGrid = {
21
21
  toolbarFiltersTooltipShow: 'Hiện',
22
22
  toolbarFiltersTooltipActive: count => count > 1 ? `${count} bộ lọc hoạt động` : `${count} bộ lọc hoạt động`,
23
23
  // Quick filter toolbar field
24
- // toolbarQuickFilterPlaceholder: 'Search…',
25
- // toolbarQuickFilterLabel: 'Search',
26
- // toolbarQuickFilterDeleteIconLabel: 'Clear',
24
+ toolbarQuickFilterPlaceholder: 'Tìm kiếm…',
25
+ toolbarQuickFilterLabel: 'Tìm kiếm',
26
+ toolbarQuickFilterDeleteIconLabel: 'Xóa tìm kiếm',
27
27
  // Export selector toolbar button text
28
28
  toolbarExport: 'Xuất',
29
29
  toolbarExportLabel: 'Xuất',
30
30
  toolbarExportCSV: 'Xuất CSV',
31
31
  toolbarExportPrint: 'In',
32
- // toolbarExportExcel: 'Download as Excel',
32
+ toolbarExportExcel: 'Xuất Excel',
33
33
  // Columns panel text
34
34
  columnsPanelTextFieldLabel: 'Tìm kiếm',
35
35
  columnsPanelTextFieldPlaceholder: 'Tiêu đề cột',
@@ -39,7 +39,7 @@ const viVNGrid = {
39
39
  // Filter panel text
40
40
  filterPanelAddFilter: 'Thêm bộ lọc',
41
41
  filterPanelDeleteIconLabel: 'Xóa',
42
- // filterPanelLinkOperator: 'Logic operator',
42
+ filterPanelLinkOperator: 'Toán tử logic',
43
43
  filterPanelOperators: 'Toán tử',
44
44
  // TODO v6: rename to filterPanelOperator
45
45
  filterPanelOperatorAnd: 'Và',
@@ -85,10 +85,10 @@ const viVNGrid = {
85
85
  footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} / ${totalCount.toLocaleString()}`,
86
86
  // Checkbox selection text
87
87
  checkboxSelectionHeaderName: 'Tích vào ô trống',
88
- // checkboxSelectionSelectAllRows: 'Select all rows',
89
- // checkboxSelectionUnselectAllRows: 'Unselect all rows',
90
- // checkboxSelectionSelectRow: 'Select row',
91
- // checkboxSelectionUnselectRow: 'Unselect row',
88
+ checkboxSelectionSelectAllRows: 'Chọn tất cả hàng',
89
+ checkboxSelectionUnselectAllRows: 'Bỏ chọn tất cả hàng',
90
+ checkboxSelectionSelectRow: 'Chọn hàng',
91
+ checkboxSelectionUnselectRow: 'Bỏ chọn hàng',
92
92
  // Boolean cell text
93
93
  booleanCellTrueLabel: 'Có',
94
94
  booleanCellFalseLabel: 'Không',
@@ -101,17 +101,17 @@ const viVNGrid = {
101
101
  // Tree Data
102
102
  treeDataGroupingHeaderName: 'Nhóm',
103
103
  treeDataExpand: 'mở rộng',
104
- treeDataCollapse: 'ẩn đi' // Grouping columns
105
- // groupingColumnHeaderName: 'Group',
106
- // groupColumn: name => `Group by ${name}`,
107
- // unGroupColumn: name => `Stop grouping by ${name}`,
104
+ treeDataCollapse: 'ẩn đi',
105
+ // Grouping columns
106
+ groupingColumnHeaderName: 'Nhóm',
107
+ groupColumn: name => `Nhóm theo ${name}`,
108
+ unGroupColumn: name => `Hủy nhóm theo ${name}`,
108
109
  // Master/detail
109
- // detailPanelToggle: 'Detail panel toggle',
110
- // expandDetailPanel: 'Expand',
111
- // collapseDetailPanel: 'Collapse',
110
+ detailPanelToggle: 'Ẩn/hiện chi tiết',
111
+ expandDetailPanel: 'Mở rộng',
112
+ collapseDetailPanel: 'Thu nhỏ',
112
113
  // Row reordering text
113
- // rowReorderingHeaderName: 'Row reordering',
114
- // Aggregation
114
+ rowReorderingHeaderName: 'Sắp xếp hàng' // Aggregation
115
115
  // aggregationMenuItemHeader: 'Aggregation',
116
116
  // aggregationFunctionLabelSum: 'sum',
117
117
  // aggregationFunctionLabelAvg: 'avg',
@@ -177,9 +177,11 @@ function GridCell(props) {
177
177
 
178
178
  const renderChildren = () => {
179
179
  if (children == null) {
180
+ const valueString = valueToRender?.toString();
180
181
  return /*#__PURE__*/_jsx("div", {
182
+ title: valueString,
181
183
  className: classes.content,
182
- children: valueToRender?.toString()
184
+ children: valueString
183
185
  });
184
186
  }
185
187
 
@@ -104,11 +104,21 @@ function GridColumnsPanel(props) {
104
104
 
105
105
  const toggleAllColumns = React.useCallback(isVisible => {
106
106
  if (apiRef.current.unstable_caches.columns.isUsingColumnVisibilityModel) {
107
- if (isVisible) {
108
- return apiRef.current.setColumnVisibilityModel({});
109
- }
110
-
111
- return apiRef.current.setColumnVisibilityModel(Object.fromEntries(columns.filter(col => col.hideable !== false).map(col => [col.field, false])));
107
+ const currentModel = gridColumnVisibilityModelSelector(apiRef);
108
+
109
+ const newModel = _extends({}, currentModel);
110
+
111
+ columns.forEach(col => {
112
+ if (col.hideable) {
113
+ if (isVisible) {
114
+ // delete the key from the model instead of setting it to `true`
115
+ delete newModel[col.field];
116
+ } else {
117
+ newModel[col.field] = false;
118
+ }
119
+ }
120
+ });
121
+ return apiRef.current.setColumnVisibilityModel(newModel);
112
122
  } // TODO v6: Remove
113
123
 
114
124
 
@@ -21,6 +21,11 @@ function raf() {
21
21
  });
22
22
  }
23
23
 
24
+ function getChromeVersion() {
25
+ const raw = navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);
26
+ return raw ? parseInt(raw[2], 10) : null;
27
+ }
28
+
24
29
  /**
25
30
  * @requires useGridColumns (state)
26
31
  * @requires useGridFilter (state)
@@ -94,6 +99,13 @@ export const useGridPrintExport = (apiRef, props) => {
94
99
 
95
100
  const gridMain = gridClone.querySelector(`.${gridClasses.main}`);
96
101
  gridMain.style.overflow = 'visible';
102
+ const chromeVersion = getChromeVersion();
103
+
104
+ if (chromeVersion && chromeVersion >= 108) {
105
+ // See https://support.google.com/chrome/thread/191619088?hl=en&msgid=193009642
106
+ gridClone.style.contain = 'size';
107
+ }
108
+
97
109
  const columnHeaders = gridClone.querySelector(`.${gridClasses.columnHeaders}`);
98
110
  const columnHeadersInner = columnHeaders.querySelector(`.${gridClasses.columnHeadersInner}`);
99
111
  columnHeadersInner.style.width = '100%';
@@ -220,10 +232,14 @@ export const useGridPrintExport = (apiRef, props) => {
220
232
  } else {
221
233
  printWindow.onload = () => {
222
234
  handlePrintWindowLoad(printWindow, options);
235
+ const mediaQueryList = printWindow.contentWindow.matchMedia('print');
236
+ mediaQueryList.addEventListener('change', mql => {
237
+ const isAfterPrint = mql.matches === false;
223
238
 
224
- printWindow.contentWindow.onafterprint = () => {
225
- handlePrintWindowAfterPrint(printWindow);
226
- };
239
+ if (isAfterPrint) {
240
+ handlePrintWindowAfterPrint(printWindow);
241
+ }
242
+ });
227
243
  };
228
244
 
229
245
  doc.current.body.appendChild(printWindow);
package/modern/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI X v5.17.20
1
+ /** @license MUI X v5.17.22
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,149 @@
1
+ import { beBYCore } from './coreLocales';
2
+ import { getGridLocalization } from '../utils/getGridLocalization';
3
+
4
+ const getPluralForm = (count, options) => {
5
+ let pluralForm = options.other;
6
+ const 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 `${count} ${pluralForm}`;
15
+ };
16
+
17
+ const 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: count => getPluralForm(count, {
37
+ one: 'актыўны фільтр',
38
+ twoToFour: 'актыўных фільтра',
39
+ other: 'актыўных фільтраў'
40
+ }),
41
+ // Quick filter toolbar field
42
+ toolbarQuickFilterPlaceholder: 'Пошук…',
43
+ toolbarQuickFilterLabel: 'Пошук',
44
+ toolbarQuickFilterDeleteIconLabel: 'Ачысціць',
45
+ // Export selector toolbar button text
46
+ toolbarExport: 'Экспарт',
47
+ toolbarExportLabel: 'Экспарт',
48
+ toolbarExportCSV: 'Спампаваць у фармаце CSV',
49
+ toolbarExportPrint: 'Друк',
50
+ toolbarExportExcel: 'Спампаваць у фармаце Excel',
51
+ // Columns panel text
52
+ columnsPanelTextFieldLabel: 'Знайсці слупок',
53
+ columnsPanelTextFieldPlaceholder: 'Загаловак слупка',
54
+ columnsPanelDragIconLabel: 'Змяніць чарговасць слупкоў',
55
+ columnsPanelShowAllButton: 'Паказаць усе',
56
+ columnsPanelHideAllButton: 'Схаваць усе',
57
+ // Filter panel text
58
+ filterPanelAddFilter: 'Дадаць фільтр',
59
+ filterPanelDeleteIconLabel: 'Выдаліць',
60
+ filterPanelLinkOperator: 'Лагічныя аператары',
61
+ filterPanelOperators: 'Аператары',
62
+ // TODO v6: rename to filterPanelOperator
63
+ filterPanelOperatorAnd: 'І',
64
+ filterPanelOperatorOr: 'Або',
65
+ filterPanelColumns: 'Слупкі',
66
+ filterPanelInputLabel: 'Значэнне',
67
+ filterPanelInputPlaceholder: 'Значэнне фільтра',
68
+ // Filter operators text
69
+ filterOperatorContains: 'змяшчае',
70
+ filterOperatorEquals: 'роўны',
71
+ filterOperatorStartsWith: 'пачынаецца з',
72
+ filterOperatorEndsWith: 'скончваецца на',
73
+ filterOperatorIs: 'роўны',
74
+ filterOperatorNot: 'не роўны',
75
+ filterOperatorAfter: 'больш чым',
76
+ filterOperatorOnOrAfter: 'больш ці роўны',
77
+ filterOperatorBefore: 'меньш чым',
78
+ filterOperatorOnOrBefore: 'меньш ці роўны',
79
+ filterOperatorIsEmpty: 'пусты',
80
+ filterOperatorIsNotEmpty: 'не пусты',
81
+ filterOperatorIsAnyOf: 'усякі з',
82
+ // Filter values text
83
+ filterValueAny: 'усякі',
84
+ filterValueTrue: 'праўда',
85
+ filterValueFalse: 'няпраўда',
86
+ // Column menu text
87
+ columnMenuLabel: 'Меню',
88
+ columnMenuShowColumns: 'Паказаць слупкі',
89
+ columnMenuFilter: 'Фільтр',
90
+ columnMenuHideColumn: 'Схаваць',
91
+ columnMenuUnsort: 'Скасаваць сартыроўку',
92
+ columnMenuSortAsc: 'Сартыраваць па нарастанню',
93
+ columnMenuSortDesc: 'Сартыраваць па спаданню',
94
+ // Column header text
95
+ columnHeaderFiltersTooltipActive: count => getPluralForm(count, {
96
+ one: 'актыўны фільтр',
97
+ twoToFour: 'актыўных фільтра',
98
+ other: 'актыўных фільтраў'
99
+ }),
100
+ columnHeaderFiltersLabel: 'Паказаць фільтры',
101
+ columnHeaderSortIconLabel: 'Сартыраваць',
102
+ // Rows selected footer text
103
+ footerRowSelected: count => getPluralForm(count, {
104
+ one: 'абраны радок',
105
+ twoToFour: 'абраных радка',
106
+ other: 'абраных радкоў'
107
+ }),
108
+ // Total row amount footer text
109
+ footerTotalRows: 'Усяго радкоў:',
110
+ // Total visible row amount footer text
111
+ footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} з ${totalCount.toLocaleString()}`,
112
+ // Checkbox selection text
113
+ checkboxSelectionHeaderName: 'Выбар сцяжка',
114
+ checkboxSelectionSelectAllRows: 'Абраць усе радкі',
115
+ checkboxSelectionUnselectAllRows: 'Скасаваць выбар усіх радкоў',
116
+ checkboxSelectionSelectRow: 'Абраць радок',
117
+ checkboxSelectionUnselectRow: 'Скасаваць выбар радка',
118
+ // Boolean cell text
119
+ booleanCellTrueLabel: 'праўда',
120
+ booleanCellFalseLabel: 'няпраўда',
121
+ // Actions cell more text
122
+ actionsCellMore: 'больш',
123
+ // Column pinning text
124
+ pinToLeft: 'Замацаваць злева',
125
+ pinToRight: 'Замацаваць справа',
126
+ unpin: 'Адмацаваць',
127
+ // Tree Data
128
+ treeDataGroupingHeaderName: 'Група',
129
+ treeDataExpand: 'паказаць даччыныя элементы',
130
+ treeDataCollapse: 'схаваць даччыныя элементы',
131
+ // Grouping columns
132
+ groupingColumnHeaderName: 'Група',
133
+ groupColumn: name => `Групаваць па ${name}`,
134
+ unGroupColumn: name => `Разгрупаваць па ${name}`,
135
+ // Master/detail
136
+ detailPanelToggle: 'Дэталі',
137
+ expandDetailPanel: 'Разгарнуць',
138
+ collapseDetailPanel: 'Згарнуць',
139
+ // Row reordering text
140
+ rowReorderingHeaderName: 'Змяненне чарговасці радкоў',
141
+ // Aggregation
142
+ aggregationMenuItemHeader: "Аб'яднанне дадзеных",
143
+ aggregationFunctionLabelSum: 'сума',
144
+ aggregationFunctionLabelAvg: 'сярэдняе',
145
+ aggregationFunctionLabelMin: 'мінімум',
146
+ aggregationFunctionLabelMax: 'максімум',
147
+ aggregationFunctionLabelSize: 'памер'
148
+ };
149
+ export const beBY = getGridLocalization(beBYGrid, beBYCore);
@@ -0,0 +1,65 @@
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 const beBYCore = {
7
+ components: {
8
+ MuiTablePagination: {
9
+ defaultProps: {
10
+ 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: ({
28
+ from,
29
+ to,
30
+ count
31
+ }) => `${from}–${to} з ${count !== -1 ? count : `больш чым ${to}`}`
32
+ }
33
+ }
34
+ }
35
+ };
36
+ export const urPKCore = {
37
+ components: {
38
+ MuiTablePagination: {
39
+ defaultProps: {
40
+ getItemAriaLabel: type => {
41
+ if (type === 'first') {
42
+ return 'پہلے صفحے پر جائیں';
43
+ }
44
+
45
+ if (type === 'last') {
46
+ return 'آخری صفحے پر جائیں';
47
+ }
48
+
49
+ if (type === 'next') {
50
+ return 'اگلے صفحے پر جائیں';
51
+ } // if (type === 'previous') {
52
+
53
+
54
+ return 'پچھلے صفحے پر جائیں';
55
+ },
56
+ labelRowsPerPage: 'ایک صفحے پر قطاریں:',
57
+ labelDisplayedRows: ({
58
+ from,
59
+ to,
60
+ count
61
+ }) => `${count !== -1 ? `${count} میں سے` : `${to} سے ذیادہ میں سے`} ${from} سے ${to} قطاریں`
62
+ }
63
+ }
64
+ }
65
+ };
@@ -99,25 +99,25 @@ const esESGrid = {
99
99
  pinToRight: 'Anclar a la derecha',
100
100
  unpin: 'Desanclar',
101
101
  // Tree Data
102
- // treeDataGroupingHeaderName: 'Group',
103
- // treeDataExpand: 'see children',
104
- // treeDataCollapse: 'hide children',
102
+ treeDataGroupingHeaderName: 'Grupo',
103
+ treeDataExpand: 'mostrar hijos',
104
+ treeDataCollapse: 'ocultar hijos',
105
105
  // Grouping columns
106
- // groupingColumnHeaderName: 'Group',
107
- // groupColumn: name => `Group by ${name}`,
108
- // unGroupColumn: name => `Stop grouping by ${name}`,
106
+ groupingColumnHeaderName: 'Grupo',
107
+ groupColumn: name => `Agrupar por ${name}`,
108
+ unGroupColumn: name => `No agrupar por ${name}`,
109
109
  // Master/detail
110
- // detailPanelToggle: 'Detail panel toggle',
110
+ detailPanelToggle: 'Alternar detalle',
111
111
  expandDetailPanel: 'Expandir',
112
- collapseDetailPanel: 'reducirse',
112
+ collapseDetailPanel: 'Contraer',
113
113
  // Row reordering text
114
- // rowReorderingHeaderName: 'Row reordering',
114
+ rowReorderingHeaderName: 'Reordenar filas',
115
115
  // Aggregation
116
- // aggregationMenuItemHeader: 'Aggregation',
117
- // aggregationFunctionLabelSum: 'sum',
118
- // aggregationFunctionLabelAvg: 'avg',
116
+ aggregationMenuItemHeader: 'Agregación',
117
+ aggregationFunctionLabelSum: 'sum',
118
+ aggregationFunctionLabelAvg: 'avg',
119
119
  aggregationFunctionLabelMin: 'min',
120
- aggregationFunctionLabelMax: 'max' // aggregationFunctionLabelSize: 'size',
121
-
120
+ aggregationFunctionLabelMax: 'max',
121
+ aggregationFunctionLabelSize: 'tamaño'
122
122
  };
123
123
  export const esES = getGridLocalization(esESGrid, esESCore);
@@ -60,7 +60,7 @@ const frFRGrid = {
60
60
  filterOperatorOnOrBefore: 'égal ou antérieur',
61
61
  filterOperatorIsEmpty: 'est vide',
62
62
  filterOperatorIsNotEmpty: "n'est pas vide",
63
- filterOperatorIsAnyOf: 'fait parti de',
63
+ filterOperatorIsAnyOf: 'fait partie de',
64
64
  // Filter values text
65
65
  filterValueAny: 'tous',
66
66
  filterValueTrue: 'vrai',
@@ -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';
@@ -25,6 +26,7 @@ export * from './skSK';
25
26
  export * from './svSE';
26
27
  export * from './trTR';
27
28
  export * from './ukUA';
29
+ export * from './urPK';
28
30
  export * from './viVN';
29
31
  export * from './zhCN';
30
32
  export * from './zhTW';