@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
@@ -10,7 +10,7 @@ var jaJPGrid = {
10
10
  toolbarDensityLabel: '行間隔',
11
11
  toolbarDensityCompact: 'コンパクト',
12
12
  toolbarDensityStandard: '標準',
13
- toolbarDensityComfortable: 'ひろめ',
13
+ toolbarDensityComfortable: '広め',
14
14
  // Columns selector toolbar button text
15
15
  toolbarColumns: '列一覧',
16
16
  toolbarColumnsLabel: '列選択',
@@ -41,8 +41,8 @@ var jaJPGrid = {
41
41
  // Filter panel text
42
42
  filterPanelAddFilter: 'フィルター追加',
43
43
  filterPanelDeleteIconLabel: '削除',
44
- // filterPanelLinkOperator: 'Logic operator',
45
- filterPanelOperators: 'オペレータ',
44
+ filterPanelLinkOperator: '論理演算子',
45
+ filterPanelOperators: '演算子',
46
46
  // TODO v6: rename to filterPanelOperator
47
47
  filterPanelOperatorAnd: 'And',
48
48
  filterPanelOperatorOr: 'Or',
@@ -64,9 +64,9 @@ var jaJPGrid = {
64
64
  filterOperatorIsNotEmpty: '...空でない',
65
65
  filterOperatorIsAnyOf: '...のいずれか',
66
66
  // Filter values text
67
- // filterValueAny: 'any',
68
- // filterValueTrue: 'true',
69
- // filterValueFalse: 'false',
67
+ filterValueAny: 'いずれか',
68
+ filterValueTrue: '',
69
+ filterValueFalse: '',
70
70
  // Column menu text
71
71
  columnMenuLabel: 'メニュー',
72
72
  columnMenuShowColumns: '列表示',
@@ -101,7 +101,7 @@ var jaJPGrid = {
101
101
  booleanCellTrueLabel: '真',
102
102
  booleanCellFalseLabel: '偽',
103
103
  // Actions cell more text
104
- // actionsCellMore: 'more',
104
+ actionsCellMore: 'もっと見る',
105
105
  // Column pinning text
106
106
  pinToLeft: '左側に固定',
107
107
  pinToRight: '右側に固定',
@@ -119,17 +119,17 @@ var jaJPGrid = {
119
119
  return "".concat(name, "\u306E\u30B0\u30EB\u30FC\u30D7\u3092\u89E3\u9664");
120
120
  },
121
121
  // Master/detail
122
- // detailPanelToggle: 'Detail panel toggle',
122
+ detailPanelToggle: '詳細パネルの切り替え',
123
123
  expandDetailPanel: '展開',
124
124
  collapseDetailPanel: '折りたたみ',
125
125
  // Row reordering text
126
- rowReorderingHeaderName: '行並び替え' // Aggregation
127
- // aggregationMenuItemHeader: 'Aggregation',
128
- // aggregationFunctionLabelSum: 'sum',
129
- // aggregationFunctionLabelAvg: 'avg',
130
- // aggregationFunctionLabelMin: 'min',
131
- // aggregationFunctionLabelMax: 'max',
132
- // aggregationFunctionLabelSize: 'size',
133
-
126
+ rowReorderingHeaderName: '行並び替え',
127
+ // Aggregation
128
+ aggregationMenuItemHeader: '合計',
129
+ aggregationFunctionLabelSum: '',
130
+ aggregationFunctionLabelAvg: '平均',
131
+ aggregationFunctionLabelMin: '最小値',
132
+ aggregationFunctionLabelMax: '最大値',
133
+ aggregationFunctionLabelSize: 'サイズ'
134
134
  };
135
135
  export var jaJP = getGridLocalization(jaJPGrid, jaJPCore);
@@ -150,13 +150,13 @@ var skSKGrid = {
150
150
  expandDetailPanel: 'Rozbaliť',
151
151
  collapseDetailPanel: 'Zbaliť',
152
152
  // Row reordering text
153
- rowReorderingHeaderName: 'Preusporiadávanie riadkov' // Aggregation
154
- // aggregationMenuItemHeader: 'Aggregation',
155
- // aggregationFunctionLabelSum: 'sum',
156
- // aggregationFunctionLabelAvg: 'avg',
157
- // aggregationFunctionLabelMin: 'min',
158
- // aggregationFunctionLabelMax: 'max',
159
- // aggregationFunctionLabelSize: 'size',
160
-
153
+ rowReorderingHeaderName: 'Preusporiadávanie riadkov',
154
+ // Aggregation
155
+ aggregationMenuItemHeader: 'Agregácia',
156
+ aggregationFunctionLabelSum: 'suma',
157
+ aggregationFunctionLabelAvg: 'priemer',
158
+ aggregationFunctionLabelMin: 'min',
159
+ aggregationFunctionLabelMax: 'max',
160
+ aggregationFunctionLabelSize: 'počet'
161
161
  };
162
162
  export var skSK = getGridLocalization(skSKGrid, skSKCore);
@@ -105,7 +105,7 @@ var svSEGrid = {
105
105
  // Column pinning text
106
106
  pinToLeft: 'Fäst till vänster',
107
107
  pinToRight: 'Fäst till höger',
108
- unpin: 'Ta bort fäste',
108
+ unpin: 'Ta bort fästning',
109
109
  // Tree Data
110
110
  treeDataGroupingHeaderName: 'Grupp',
111
111
  treeDataExpand: 'visa underordnade',
@@ -119,17 +119,17 @@ var svSEGrid = {
119
119
  return "Sluta gruppera efter ".concat(name);
120
120
  },
121
121
  // Master/detail
122
- // detailPanelToggle: 'Detail panel toggle',
122
+ detailPanelToggle: 'Växla detaljpanel',
123
123
  expandDetailPanel: 'Expandera',
124
124
  collapseDetailPanel: 'Kollapsa',
125
125
  // Row reordering text
126
- rowReorderingHeaderName: 'Ordna om rader' // Aggregation
127
- // aggregationMenuItemHeader: 'Aggregation',
128
- // aggregationFunctionLabelSum: 'sum',
129
- // aggregationFunctionLabelAvg: 'avg',
130
- // aggregationFunctionLabelMin: 'min',
131
- // aggregationFunctionLabelMax: 'max',
132
- // aggregationFunctionLabelSize: 'size',
133
-
126
+ rowReorderingHeaderName: 'Ordna om rader',
127
+ // Aggregation
128
+ aggregationMenuItemHeader: 'Aggregering',
129
+ aggregationFunctionLabelSum: 'sum',
130
+ aggregationFunctionLabelAvg: 'medel',
131
+ aggregationFunctionLabelMin: 'min',
132
+ aggregationFunctionLabelMax: 'max',
133
+ aggregationFunctionLabelSize: 'antal'
134
134
  };
135
135
  export var svSE = getGridLocalization(svSEGrid, svSECore);
@@ -23,15 +23,15 @@ var viVNGrid = {
23
23
  return count > 1 ? "".concat(count, " b\u1ED9 l\u1ECDc ho\u1EA1t \u0111\u1ED9ng") : "".concat(count, " b\u1ED9 l\u1ECDc ho\u1EA1t \u0111\u1ED9ng");
24
24
  },
25
25
  // Quick filter toolbar field
26
- // toolbarQuickFilterPlaceholder: 'Search…',
27
- // toolbarQuickFilterLabel: 'Search',
28
- // toolbarQuickFilterDeleteIconLabel: 'Clear',
26
+ toolbarQuickFilterPlaceholder: 'Tìm kiếm…',
27
+ toolbarQuickFilterLabel: 'Tìm kiếm',
28
+ toolbarQuickFilterDeleteIconLabel: 'Xóa tìm kiếm',
29
29
  // Export selector toolbar button text
30
30
  toolbarExport: 'Xuất',
31
31
  toolbarExportLabel: 'Xuất',
32
32
  toolbarExportCSV: 'Xuất CSV',
33
33
  toolbarExportPrint: 'In',
34
- // toolbarExportExcel: 'Download as Excel',
34
+ toolbarExportExcel: 'Xuất Excel',
35
35
  // Columns panel text
36
36
  columnsPanelTextFieldLabel: 'Tìm kiếm',
37
37
  columnsPanelTextFieldPlaceholder: 'Tiêu đề cột',
@@ -41,7 +41,7 @@ var viVNGrid = {
41
41
  // Filter panel text
42
42
  filterPanelAddFilter: 'Thêm bộ lọc',
43
43
  filterPanelDeleteIconLabel: 'Xóa',
44
- // filterPanelLinkOperator: 'Logic operator',
44
+ filterPanelLinkOperator: 'Toán tử logic',
45
45
  filterPanelOperators: 'Toán tử',
46
46
  // TODO v6: rename to filterPanelOperator
47
47
  filterPanelOperatorAnd: 'Và',
@@ -93,10 +93,10 @@ var viVNGrid = {
93
93
  },
94
94
  // Checkbox selection text
95
95
  checkboxSelectionHeaderName: 'Tích vào ô trống',
96
- // checkboxSelectionSelectAllRows: 'Select all rows',
97
- // checkboxSelectionUnselectAllRows: 'Unselect all rows',
98
- // checkboxSelectionSelectRow: 'Select row',
99
- // checkboxSelectionUnselectRow: 'Unselect row',
96
+ checkboxSelectionSelectAllRows: 'Chọn tất cả hàng',
97
+ checkboxSelectionUnselectAllRows: 'Bỏ chọn tất cả hàng',
98
+ checkboxSelectionSelectRow: 'Chọn hàng',
99
+ checkboxSelectionUnselectRow: 'Bỏ chọn hàng',
100
100
  // Boolean cell text
101
101
  booleanCellTrueLabel: 'Có',
102
102
  booleanCellFalseLabel: 'Không',
@@ -109,17 +109,21 @@ var viVNGrid = {
109
109
  // Tree Data
110
110
  treeDataGroupingHeaderName: 'Nhóm',
111
111
  treeDataExpand: 'mở rộng',
112
- treeDataCollapse: 'ẩn đi' // Grouping columns
113
- // groupingColumnHeaderName: 'Group',
114
- // groupColumn: name => `Group by ${name}`,
115
- // unGroupColumn: name => `Stop grouping by ${name}`,
112
+ treeDataCollapse: 'ẩn đi',
113
+ // Grouping columns
114
+ groupingColumnHeaderName: 'Nhóm',
115
+ groupColumn: function groupColumn(name) {
116
+ return "Nh\xF3m theo ".concat(name);
117
+ },
118
+ unGroupColumn: function unGroupColumn(name) {
119
+ return "H\u1EE7y nh\xF3m theo ".concat(name);
120
+ },
116
121
  // Master/detail
117
- // detailPanelToggle: 'Detail panel toggle',
118
- // expandDetailPanel: 'Expand',
119
- // collapseDetailPanel: 'Collapse',
122
+ detailPanelToggle: 'Ẩn/hiện chi tiết',
123
+ expandDetailPanel: 'Mở rộng',
124
+ collapseDetailPanel: 'Thu nhỏ',
120
125
  // Row reordering text
121
- // rowReorderingHeaderName: 'Row reordering',
122
- // Aggregation
126
+ rowReorderingHeaderName: 'Sắp xếp hàng' // Aggregation
123
127
  // aggregationMenuItemHeader: 'Aggregation',
124
128
  // aggregationFunctionLabelSum: 'sum',
125
129
  // aggregationFunctionLabelAvg: 'avg',
@@ -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,2 @@
1
+ import { Localization } from '../utils/getGridLocalization';
2
+ export declare const beBY: Localization;
@@ -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,3 @@
1
+ import { Localization as CoreLocalization } from '@mui/material/locale';
2
+ export declare const beBYCore: CoreLocalization;
3
+ export declare const urPKCore: CoreLocalization;
@@ -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
+ };
package/locales/esES.js CHANGED
@@ -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);
@@ -1,4 +1,5 @@
1
1
  export * from './arSD';
2
+ export * from './beBY';
2
3
  export * from './bgBG';
3
4
  export * from './csCZ';
4
5
  export * from './daDK';
package/locales/index.js CHANGED
@@ -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';
package/locales/jaJP.js CHANGED
@@ -10,7 +10,7 @@ const jaJPGrid = {
10
10
  toolbarDensityLabel: '行間隔',
11
11
  toolbarDensityCompact: 'コンパクト',
12
12
  toolbarDensityStandard: '標準',
13
- toolbarDensityComfortable: 'ひろめ',
13
+ toolbarDensityComfortable: '広め',
14
14
  // Columns selector toolbar button text
15
15
  toolbarColumns: '列一覧',
16
16
  toolbarColumnsLabel: '列選択',
@@ -39,8 +39,8 @@ const jaJPGrid = {
39
39
  // Filter panel text
40
40
  filterPanelAddFilter: 'フィルター追加',
41
41
  filterPanelDeleteIconLabel: '削除',
42
- // filterPanelLinkOperator: 'Logic operator',
43
- filterPanelOperators: 'オペレータ',
42
+ filterPanelLinkOperator: '論理演算子',
43
+ filterPanelOperators: '演算子',
44
44
  // TODO v6: rename to filterPanelOperator
45
45
  filterPanelOperatorAnd: 'And',
46
46
  filterPanelOperatorOr: 'Or',
@@ -62,9 +62,9 @@ const jaJPGrid = {
62
62
  filterOperatorIsNotEmpty: '...空でない',
63
63
  filterOperatorIsAnyOf: '...のいずれか',
64
64
  // Filter values text
65
- // filterValueAny: 'any',
66
- // filterValueTrue: 'true',
67
- // filterValueFalse: 'false',
65
+ filterValueAny: 'いずれか',
66
+ filterValueTrue: '',
67
+ filterValueFalse: '',
68
68
  // Column menu text
69
69
  columnMenuLabel: 'メニュー',
70
70
  columnMenuShowColumns: '列表示',
@@ -93,7 +93,7 @@ const jaJPGrid = {
93
93
  booleanCellTrueLabel: '真',
94
94
  booleanCellFalseLabel: '偽',
95
95
  // Actions cell more text
96
- // actionsCellMore: 'more',
96
+ actionsCellMore: 'もっと見る',
97
97
  // Column pinning text
98
98
  pinToLeft: '左側に固定',
99
99
  pinToRight: '右側に固定',
@@ -107,17 +107,17 @@ const jaJPGrid = {
107
107
  groupColumn: name => `${name}でグループ化`,
108
108
  unGroupColumn: name => `${name}のグループを解除`,
109
109
  // Master/detail
110
- // detailPanelToggle: 'Detail panel toggle',
110
+ detailPanelToggle: '詳細パネルの切り替え',
111
111
  expandDetailPanel: '展開',
112
112
  collapseDetailPanel: '折りたたみ',
113
113
  // Row reordering text
114
- rowReorderingHeaderName: '行並び替え' // Aggregation
115
- // aggregationMenuItemHeader: 'Aggregation',
116
- // aggregationFunctionLabelSum: 'sum',
117
- // aggregationFunctionLabelAvg: 'avg',
118
- // aggregationFunctionLabelMin: 'min',
119
- // aggregationFunctionLabelMax: 'max',
120
- // aggregationFunctionLabelSize: 'size',
121
-
114
+ rowReorderingHeaderName: '行並び替え',
115
+ // Aggregation
116
+ aggregationMenuItemHeader: '合計',
117
+ aggregationFunctionLabelSum: '',
118
+ aggregationFunctionLabelAvg: '平均',
119
+ aggregationFunctionLabelMin: '最小値',
120
+ aggregationFunctionLabelMax: '最大値',
121
+ aggregationFunctionLabelSize: 'サイズ'
122
122
  };
123
123
  export const jaJP = getGridLocalization(jaJPGrid, jaJPCore);
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);
package/locales/svSE.js CHANGED
@@ -97,7 +97,7 @@ const svSEGrid = {
97
97
  // Column pinning text
98
98
  pinToLeft: 'Fäst till vänster',
99
99
  pinToRight: 'Fäst till höger',
100
- unpin: 'Ta bort fäste',
100
+ unpin: 'Ta bort fästning',
101
101
  // Tree Data
102
102
  treeDataGroupingHeaderName: 'Grupp',
103
103
  treeDataExpand: 'visa underordnade',
@@ -107,17 +107,17 @@ const svSEGrid = {
107
107
  groupColumn: name => `Gruppera efter ${name}`,
108
108
  unGroupColumn: name => `Sluta gruppera efter ${name}`,
109
109
  // Master/detail
110
- // detailPanelToggle: 'Detail panel toggle',
110
+ detailPanelToggle: 'Växla detaljpanel',
111
111
  expandDetailPanel: 'Expandera',
112
112
  collapseDetailPanel: 'Kollapsa',
113
113
  // Row reordering text
114
- rowReorderingHeaderName: 'Ordna om rader' // Aggregation
115
- // aggregationMenuItemHeader: 'Aggregation',
116
- // aggregationFunctionLabelSum: 'sum',
117
- // aggregationFunctionLabelAvg: 'avg',
118
- // aggregationFunctionLabelMin: 'min',
119
- // aggregationFunctionLabelMax: 'max',
120
- // aggregationFunctionLabelSize: 'size',
121
-
114
+ rowReorderingHeaderName: 'Ordna om rader',
115
+ // Aggregation
116
+ aggregationMenuItemHeader: 'Aggregering',
117
+ aggregationFunctionLabelSum: 'sum',
118
+ aggregationFunctionLabelAvg: 'medel',
119
+ aggregationFunctionLabelMin: 'min',
120
+ aggregationFunctionLabelMax: 'max',
121
+ aggregationFunctionLabelSize: 'antal'
122
122
  };
123
123
  export const svSE = getGridLocalization(svSEGrid, svSECore);