@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
@@ -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',
@@ -203,9 +203,11 @@ function GridCell(props) {
203
203
 
204
204
  const renderChildren = () => {
205
205
  if (children == null) {
206
+ const valueString = valueToRender == null ? void 0 : valueToRender.toString();
206
207
  return /*#__PURE__*/(0, _jsxRuntime.jsx)("div", {
208
+ title: valueString,
207
209
  className: classes.content,
208
- children: valueToRender == null ? void 0 : valueToRender.toString()
210
+ children: valueString
209
211
  });
210
212
  }
211
213
 
@@ -137,11 +137,19 @@ function GridColumnsPanel(props) {
137
137
 
138
138
  const toggleAllColumns = React.useCallback(isVisible => {
139
139
  if (apiRef.current.unstable_caches.columns.isUsingColumnVisibilityModel) {
140
- if (isVisible) {
141
- return apiRef.current.setColumnVisibilityModel({});
142
- }
143
-
144
- return apiRef.current.setColumnVisibilityModel(Object.fromEntries(columns.filter(col => col.hideable !== false).map(col => [col.field, false])));
140
+ const currentModel = (0, _gridColumnsSelector.gridColumnVisibilityModelSelector)(apiRef);
141
+ const newModel = (0, _extends2.default)({}, currentModel);
142
+ columns.forEach(col => {
143
+ if (col.hideable) {
144
+ if (isVisible) {
145
+ // delete the key from the model instead of setting it to `true`
146
+ delete newModel[col.field];
147
+ } else {
148
+ newModel[col.field] = false;
149
+ }
150
+ }
151
+ });
152
+ return apiRef.current.setColumnVisibilityModel(newModel);
145
153
  } // TODO v6: Remove
146
154
 
147
155
 
@@ -127,7 +127,6 @@ function GridFilterInputMultipleSingleSelect(props) {
127
127
  }, [applyValue, item]);
128
128
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Autocomplete.default, (0, _extends2.default)({
129
129
  multiple: true,
130
- limitTags: 1,
131
130
  options: resolvedValueOptions,
132
131
  isOptionEqualToValue: isOptionEqualToValue,
133
132
  filterOptions: filter,
@@ -70,7 +70,6 @@ function GridFilterInputMultipleValue(props) {
70
70
  return /*#__PURE__*/(0, _jsxRuntime.jsx)(_Autocomplete.default, (0, _extends2.default)({
71
71
  multiple: true,
72
72
  freeSolo: true,
73
- limitTags: 1,
74
73
  options: [],
75
74
  filterOptions: (options, params) => {
76
75
  const {
@@ -253,10 +253,14 @@ const useGridPrintExport = (apiRef, props) => {
253
253
  } else {
254
254
  printWindow.onload = () => {
255
255
  handlePrintWindowLoad(printWindow, options);
256
+ const mediaQueryList = printWindow.contentWindow.matchMedia('print');
257
+ mediaQueryList.addEventListener('change', mql => {
258
+ const isAfterPrint = mql.matches === false;
256
259
 
257
- printWindow.contentWindow.onafterprint = () => {
258
- handlePrintWindowAfterPrint(printWindow);
259
- };
260
+ if (isAfterPrint) {
261
+ handlePrintWindowAfterPrint(printWindow);
262
+ }
263
+ });
260
264
  };
261
265
 
262
266
  doc.current.body.appendChild(printWindow);
@@ -254,13 +254,9 @@ const useGridVirtualScroller = props => {
254
254
  });
255
255
  }
256
256
  }, [apiRef, currentPage.rows, onRenderZonePositioning, renderZoneMinColumnIndex, renderZoneMaxColumnIndex, rootProps.columnBuffer, rootProps.rowBuffer]);
257
- React.useLayoutEffect(() => {
258
- if (renderContext) {
259
- updateRenderZonePosition(renderContext);
260
- }
261
- }, [renderContext, updateRenderZonePosition]);
262
257
  const updateRenderContext = React.useCallback(nextRenderContext => {
263
258
  setRenderContext(nextRenderContext);
259
+ updateRenderZonePosition(nextRenderContext);
264
260
  const [firstRowToRender, lastRowToRender] = getRenderableIndexes({
265
261
  firstIndex: nextRenderContext.firstRowIndex,
266
262
  lastIndex: nextRenderContext.lastRowIndex,
@@ -273,7 +269,7 @@ const useGridVirtualScroller = props => {
273
269
  lastRowToRender
274
270
  });
275
271
  prevRenderContext.current = nextRenderContext;
276
- }, [apiRef, setRenderContext, prevRenderContext, currentPage.rows.length, rootProps.rowBuffer]);
272
+ }, [apiRef, setRenderContext, prevRenderContext, currentPage.rows.length, rootProps.rowBuffer, updateRenderZonePosition]);
277
273
  (0, _utils.unstable_useEnhancedEffect)(() => {
278
274
  if (containerDimensions.width == null) {
279
275
  return;
package/node/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.
@@ -93,11 +93,11 @@ function createDetectElementResize(nonce, hostWindow) {
93
93
  var animationKeyframes = '@' + keyframeprefix + 'keyframes ' + animationName + ' { from { opacity: 0; } to { opacity: 0; } } ';
94
94
  var animationStyle = keyframeprefix + 'animation: 1ms ' + animationName + '; ';
95
95
 
96
- var createStyles = function createStyles(doc) {
97
- if (!doc.getElementById('muiDetectElementResize')) {
96
+ var createStyles = function createStyles(doc, root) {
97
+ if (!root.getElementById('muiDetectElementResize')) {
98
98
  //opacity:0 works around a chrome bug https://code.google.com/p/chromium/issues/detail?id=286360
99
99
  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%; }',
100
- head = doc.head || doc.getElementsByTagName('head')[0],
100
+ container = root.constructor.name === 'ShadowRoot' ? root : doc.head || doc.getElementsByTagName('head')[0],
101
101
  style = doc.createElement('style');
102
102
  style.id = 'muiDetectElementResize';
103
103
  style.type = 'text/css';
@@ -112,7 +112,7 @@ function createDetectElementResize(nonce, hostWindow) {
112
112
  style.appendChild(doc.createTextNode(css));
113
113
  }
114
114
 
115
- head.appendChild(style);
115
+ container.appendChild(style);
116
116
  }
117
117
  };
118
118
 
@@ -125,7 +125,7 @@ function createDetectElementResize(nonce, hostWindow) {
125
125
  element.style.position = 'relative';
126
126
  }
127
127
 
128
- createStyles(doc);
128
+ createStyles(doc, element.getRootNode());
129
129
  element.__resizeLast__ = {};
130
130
  element.__resizeListeners__ = [];
131
131
  (element.__resizeTriggers__ = doc.createElement('div')).className = 'Mui-resizeTriggers';
@@ -0,0 +1,158 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.beBY = void 0;
7
+
8
+ var _coreLocales = require("./coreLocales");
9
+
10
+ var _getGridLocalization = require("../utils/getGridLocalization");
11
+
12
+ const getPluralForm = (count, options) => {
13
+ let pluralForm = options.other;
14
+ const lastDigit = count % 10;
15
+
16
+ if (lastDigit > 1 && lastDigit < 5 && (count < 10 || count > 20)) {
17
+ pluralForm = options.twoToFour;
18
+ } else if (lastDigit === 1 && count % 100 !== 11) {
19
+ pluralForm = options.one;
20
+ }
21
+
22
+ return `${count} ${pluralForm}`;
23
+ };
24
+
25
+ const beBYGrid = {
26
+ // Root
27
+ noRowsLabel: 'Няма радкоў',
28
+ noResultsOverlayLabel: 'Дадзеныя не знойдзены.',
29
+ // errorOverlayDefaultLabel: 'An error occurred.',
30
+ // Density selector toolbar button text
31
+ toolbarDensity: 'Вышыня радка',
32
+ toolbarDensityLabel: 'Вышыня радка',
33
+ toolbarDensityCompact: 'Кампактны',
34
+ toolbarDensityStandard: 'Стандартны',
35
+ toolbarDensityComfortable: 'Камфортны',
36
+ // Columns selector toolbar button text
37
+ toolbarColumns: 'Слупкі',
38
+ toolbarColumnsLabel: 'Выберыце слупкі',
39
+ // Filters toolbar button text
40
+ toolbarFilters: 'Фільтры',
41
+ toolbarFiltersLabel: 'Паказаць фільтры',
42
+ toolbarFiltersTooltipHide: 'Схаваць фільтры',
43
+ toolbarFiltersTooltipShow: 'Паказаць фільтры',
44
+ toolbarFiltersTooltipActive: count => getPluralForm(count, {
45
+ one: 'актыўны фільтр',
46
+ twoToFour: 'актыўных фільтра',
47
+ other: 'актыўных фільтраў'
48
+ }),
49
+ // Quick filter toolbar field
50
+ toolbarQuickFilterPlaceholder: 'Пошук…',
51
+ toolbarQuickFilterLabel: 'Пошук',
52
+ toolbarQuickFilterDeleteIconLabel: 'Ачысціць',
53
+ // Export selector toolbar button text
54
+ toolbarExport: 'Экспарт',
55
+ toolbarExportLabel: 'Экспарт',
56
+ toolbarExportCSV: 'Спампаваць у фармаце CSV',
57
+ toolbarExportPrint: 'Друк',
58
+ toolbarExportExcel: 'Спампаваць у фармаце Excel',
59
+ // Columns panel text
60
+ columnsPanelTextFieldLabel: 'Знайсці слупок',
61
+ columnsPanelTextFieldPlaceholder: 'Загаловак слупка',
62
+ columnsPanelDragIconLabel: 'Змяніць чарговасць слупкоў',
63
+ columnsPanelShowAllButton: 'Паказаць усе',
64
+ columnsPanelHideAllButton: 'Схаваць усе',
65
+ // Filter panel text
66
+ filterPanelAddFilter: 'Дадаць фільтр',
67
+ filterPanelDeleteIconLabel: 'Выдаліць',
68
+ filterPanelLinkOperator: 'Лагічныя аператары',
69
+ filterPanelOperators: 'Аператары',
70
+ // TODO v6: rename to filterPanelOperator
71
+ filterPanelOperatorAnd: 'І',
72
+ filterPanelOperatorOr: 'Або',
73
+ filterPanelColumns: 'Слупкі',
74
+ filterPanelInputLabel: 'Значэнне',
75
+ filterPanelInputPlaceholder: 'Значэнне фільтра',
76
+ // Filter operators text
77
+ filterOperatorContains: 'змяшчае',
78
+ filterOperatorEquals: 'роўны',
79
+ filterOperatorStartsWith: 'пачынаецца з',
80
+ filterOperatorEndsWith: 'скончваецца на',
81
+ filterOperatorIs: 'роўны',
82
+ filterOperatorNot: 'не роўны',
83
+ filterOperatorAfter: 'больш чым',
84
+ filterOperatorOnOrAfter: 'больш ці роўны',
85
+ filterOperatorBefore: 'меньш чым',
86
+ filterOperatorOnOrBefore: 'меньш ці роўны',
87
+ filterOperatorIsEmpty: 'пусты',
88
+ filterOperatorIsNotEmpty: 'не пусты',
89
+ filterOperatorIsAnyOf: 'усякі з',
90
+ // Filter values text
91
+ filterValueAny: 'усякі',
92
+ filterValueTrue: 'праўда',
93
+ filterValueFalse: 'няпраўда',
94
+ // Column menu text
95
+ columnMenuLabel: 'Меню',
96
+ columnMenuShowColumns: 'Паказаць слупкі',
97
+ columnMenuFilter: 'Фільтр',
98
+ columnMenuHideColumn: 'Схаваць',
99
+ columnMenuUnsort: 'Скасаваць сартыроўку',
100
+ columnMenuSortAsc: 'Сартыраваць па нарастанню',
101
+ columnMenuSortDesc: 'Сартыраваць па спаданню',
102
+ // Column header text
103
+ columnHeaderFiltersTooltipActive: count => getPluralForm(count, {
104
+ one: 'актыўны фільтр',
105
+ twoToFour: 'актыўных фільтра',
106
+ other: 'актыўных фільтраў'
107
+ }),
108
+ columnHeaderFiltersLabel: 'Паказаць фільтры',
109
+ columnHeaderSortIconLabel: 'Сартыраваць',
110
+ // Rows selected footer text
111
+ footerRowSelected: count => getPluralForm(count, {
112
+ one: 'абраны радок',
113
+ twoToFour: 'абраных радка',
114
+ other: 'абраных радкоў'
115
+ }),
116
+ // Total row amount footer text
117
+ footerTotalRows: 'Усяго радкоў:',
118
+ // Total visible row amount footer text
119
+ footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} з ${totalCount.toLocaleString()}`,
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: name => `Групаваць па ${name}`,
142
+ unGroupColumn: name => `Разгрупаваць па ${name}`,
143
+ // Master/detail
144
+ detailPanelToggle: 'Дэталі',
145
+ expandDetailPanel: 'Разгарнуць',
146
+ collapseDetailPanel: 'Згарнуць',
147
+ // Row reordering text
148
+ rowReorderingHeaderName: 'Змяненне чарговасці радкоў',
149
+ // Aggregation
150
+ aggregationMenuItemHeader: "Аб'яднанне дадзеных",
151
+ aggregationFunctionLabelSum: 'сума',
152
+ aggregationFunctionLabelAvg: 'сярэдняе',
153
+ aggregationFunctionLabelMin: 'мінімум',
154
+ aggregationFunctionLabelMax: 'максімум',
155
+ aggregationFunctionLabelSize: 'памер'
156
+ };
157
+ const beBY = (0, _getGridLocalization.getGridLocalization)(beBYGrid, _coreLocales.beBYCore);
158
+ exports.beBY = beBY;
@@ -0,0 +1,73 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
6
+ exports.urPKCore = exports.beBYCore = void 0;
7
+ // This file contains copies of the core locales for `MuiTablePagination` released
8
+ // after the `@mui/material` package `v5.4.1` (peer dependency of `@mui/x-data-grid`).
9
+ // This allows not to bump the minimal version of `@mui/material` in peerDependencies which results
10
+ // in broader compatibility between the packages.
11
+ // See https://github.com/mui/mui-x/pull/7646#issuecomment-1404605556 for additional context.
12
+ const beBYCore = {
13
+ components: {
14
+ MuiTablePagination: {
15
+ defaultProps: {
16
+ getItemAriaLabel: type => {
17
+ if (type === 'first') {
18
+ return 'Перайсці на першую старонку';
19
+ }
20
+
21
+ if (type === 'last') {
22
+ return 'Перайсці на апошнюю старонку';
23
+ }
24
+
25
+ if (type === 'next') {
26
+ return 'Перайсці на наступную старонку';
27
+ } // if (type === 'previous') {
28
+
29
+
30
+ return 'Перайсці на папярэднюю старонку';
31
+ },
32
+ labelRowsPerPage: 'Радкоў на старонцы:',
33
+ labelDisplayedRows: ({
34
+ from,
35
+ to,
36
+ count
37
+ }) => `${from}–${to} з ${count !== -1 ? count : `больш чым ${to}`}`
38
+ }
39
+ }
40
+ }
41
+ };
42
+ exports.beBYCore = beBYCore;
43
+ const urPKCore = {
44
+ components: {
45
+ MuiTablePagination: {
46
+ defaultProps: {
47
+ getItemAriaLabel: type => {
48
+ if (type === 'first') {
49
+ return 'پہلے صفحے پر جائیں';
50
+ }
51
+
52
+ if (type === 'last') {
53
+ return 'آخری صفحے پر جائیں';
54
+ }
55
+
56
+ if (type === 'next') {
57
+ return 'اگلے صفحے پر جائیں';
58
+ } // if (type === 'previous') {
59
+
60
+
61
+ return 'پچھلے صفحے پر جائیں';
62
+ },
63
+ labelRowsPerPage: 'ایک صفحے پر قطاریں:',
64
+ labelDisplayedRows: ({
65
+ from,
66
+ to,
67
+ count
68
+ }) => `${count !== -1 ? `${count} میں سے` : `${to} سے ذیادہ میں سے`} ${from} سے ${to} قطاریں`
69
+ }
70
+ }
71
+ }
72
+ };
73
+ exports.urPKCore = urPKCore;
@@ -108,26 +108,26 @@ const esESGrid = {
108
108
  pinToRight: 'Anclar a la derecha',
109
109
  unpin: 'Desanclar',
110
110
  // Tree Data
111
- // treeDataGroupingHeaderName: 'Group',
112
- // treeDataExpand: 'see children',
113
- // treeDataCollapse: 'hide children',
111
+ treeDataGroupingHeaderName: 'Grupo',
112
+ treeDataExpand: 'mostrar hijos',
113
+ treeDataCollapse: 'ocultar hijos',
114
114
  // Grouping columns
115
- // groupingColumnHeaderName: 'Group',
116
- // groupColumn: name => `Group by ${name}`,
117
- // unGroupColumn: name => `Stop grouping by ${name}`,
115
+ groupingColumnHeaderName: 'Grupo',
116
+ groupColumn: name => `Agrupar por ${name}`,
117
+ unGroupColumn: name => `No agrupar por ${name}`,
118
118
  // Master/detail
119
- // detailPanelToggle: 'Detail panel toggle',
119
+ detailPanelToggle: 'Alternar detalle',
120
120
  expandDetailPanel: 'Expandir',
121
- collapseDetailPanel: 'reducirse',
121
+ collapseDetailPanel: 'Contraer',
122
122
  // Row reordering text
123
- // rowReorderingHeaderName: 'Row reordering',
123
+ rowReorderingHeaderName: 'Reordenar filas',
124
124
  // Aggregation
125
- // aggregationMenuItemHeader: 'Aggregation',
126
- // aggregationFunctionLabelSum: 'sum',
127
- // aggregationFunctionLabelAvg: 'avg',
125
+ aggregationMenuItemHeader: 'Agregación',
126
+ aggregationFunctionLabelSum: 'sum',
127
+ aggregationFunctionLabelAvg: 'avg',
128
128
  aggregationFunctionLabelMin: 'min',
129
- aggregationFunctionLabelMax: 'max' // aggregationFunctionLabelSize: 'size',
130
-
129
+ aggregationFunctionLabelMax: 'max',
130
+ aggregationFunctionLabelSize: 'tamaño'
131
131
  };
132
132
  const esES = (0, _getGridLocalization.getGridLocalization)(esESGrid, _locale.esES);
133
133
  exports.esES = esES;
@@ -17,6 +17,19 @@ Object.keys(_arSD).forEach(function (key) {
17
17
  });
18
18
  });
19
19
 
20
+ var _beBY = require("./beBY");
21
+
22
+ Object.keys(_beBY).forEach(function (key) {
23
+ if (key === "default" || key === "__esModule") return;
24
+ if (key in exports && exports[key] === _beBY[key]) return;
25
+ Object.defineProperty(exports, key, {
26
+ enumerable: true,
27
+ get: function () {
28
+ return _beBY[key];
29
+ }
30
+ });
31
+ });
32
+
20
33
  var _bgBG = require("./bgBG");
21
34
 
22
35
  Object.keys(_bgBG).forEach(function (key) {
@@ -19,7 +19,7 @@ const jaJPGrid = {
19
19
  toolbarDensityLabel: '行間隔',
20
20
  toolbarDensityCompact: 'コンパクト',
21
21
  toolbarDensityStandard: '標準',
22
- toolbarDensityComfortable: 'ひろめ',
22
+ toolbarDensityComfortable: '広め',
23
23
  // Columns selector toolbar button text
24
24
  toolbarColumns: '列一覧',
25
25
  toolbarColumnsLabel: '列選択',
@@ -48,8 +48,8 @@ const jaJPGrid = {
48
48
  // Filter panel text
49
49
  filterPanelAddFilter: 'フィルター追加',
50
50
  filterPanelDeleteIconLabel: '削除',
51
- // filterPanelLinkOperator: 'Logic operator',
52
- filterPanelOperators: 'オペレータ',
51
+ filterPanelLinkOperator: '論理演算子',
52
+ filterPanelOperators: '演算子',
53
53
  // TODO v6: rename to filterPanelOperator
54
54
  filterPanelOperatorAnd: 'And',
55
55
  filterPanelOperatorOr: 'Or',
@@ -71,9 +71,9 @@ const jaJPGrid = {
71
71
  filterOperatorIsNotEmpty: '...空でない',
72
72
  filterOperatorIsAnyOf: '...のいずれか',
73
73
  // Filter values text
74
- // filterValueAny: 'any',
75
- // filterValueTrue: 'true',
76
- // filterValueFalse: 'false',
74
+ filterValueAny: 'いずれか',
75
+ filterValueTrue: '',
76
+ filterValueFalse: '',
77
77
  // Column menu text
78
78
  columnMenuLabel: 'メニュー',
79
79
  columnMenuShowColumns: '列表示',
@@ -102,7 +102,7 @@ const jaJPGrid = {
102
102
  booleanCellTrueLabel: '真',
103
103
  booleanCellFalseLabel: '偽',
104
104
  // Actions cell more text
105
- // actionsCellMore: 'more',
105
+ actionsCellMore: 'もっと見る',
106
106
  // Column pinning text
107
107
  pinToLeft: '左側に固定',
108
108
  pinToRight: '右側に固定',
@@ -116,18 +116,18 @@ const jaJPGrid = {
116
116
  groupColumn: name => `${name}でグループ化`,
117
117
  unGroupColumn: name => `${name}のグループを解除`,
118
118
  // Master/detail
119
- // detailPanelToggle: 'Detail panel toggle',
119
+ detailPanelToggle: '詳細パネルの切り替え',
120
120
  expandDetailPanel: '展開',
121
121
  collapseDetailPanel: '折りたたみ',
122
122
  // Row reordering text
123
- rowReorderingHeaderName: '行並び替え' // Aggregation
124
- // aggregationMenuItemHeader: 'Aggregation',
125
- // aggregationFunctionLabelSum: 'sum',
126
- // aggregationFunctionLabelAvg: 'avg',
127
- // aggregationFunctionLabelMin: 'min',
128
- // aggregationFunctionLabelMax: 'max',
129
- // aggregationFunctionLabelSize: 'size',
130
-
123
+ rowReorderingHeaderName: '行並び替え',
124
+ // Aggregation
125
+ aggregationMenuItemHeader: '合計',
126
+ aggregationFunctionLabelSum: '',
127
+ aggregationFunctionLabelAvg: '平均',
128
+ aggregationFunctionLabelMin: '最小値',
129
+ aggregationFunctionLabelMax: '最大値',
130
+ aggregationFunctionLabelSize: 'サイズ'
131
131
  };
132
132
  const jaJP = (0, _getGridLocalization.getGridLocalization)(jaJPGrid, _locale.jaJP);
133
133
  exports.jaJP = jaJP;
@@ -155,14 +155,14 @@ const skSKGrid = {
155
155
  expandDetailPanel: 'Rozbaliť',
156
156
  collapseDetailPanel: 'Zbaliť',
157
157
  // Row reordering text
158
- rowReorderingHeaderName: 'Preusporiadávanie riadkov' // Aggregation
159
- // aggregationMenuItemHeader: 'Aggregation',
160
- // aggregationFunctionLabelSum: 'sum',
161
- // aggregationFunctionLabelAvg: 'avg',
162
- // aggregationFunctionLabelMin: 'min',
163
- // aggregationFunctionLabelMax: 'max',
164
- // aggregationFunctionLabelSize: 'size',
165
-
158
+ rowReorderingHeaderName: 'Preusporiadávanie riadkov',
159
+ // Aggregation
160
+ aggregationMenuItemHeader: 'Agregácia',
161
+ aggregationFunctionLabelSum: 'suma',
162
+ aggregationFunctionLabelAvg: 'priemer',
163
+ aggregationFunctionLabelMin: 'min',
164
+ aggregationFunctionLabelMax: 'max',
165
+ aggregationFunctionLabelSize: 'počet'
166
166
  };
167
167
  const skSK = (0, _getGridLocalization.getGridLocalization)(skSKGrid, _locale.skSK);
168
168
  exports.skSK = skSK;
@@ -106,7 +106,7 @@ const svSEGrid = {
106
106
  // Column pinning text
107
107
  pinToLeft: 'Fäst till vänster',
108
108
  pinToRight: 'Fäst till höger',
109
- unpin: 'Ta bort fäste',
109
+ unpin: 'Ta bort fästning',
110
110
  // Tree Data
111
111
  treeDataGroupingHeaderName: 'Grupp',
112
112
  treeDataExpand: 'visa underordnade',
@@ -116,18 +116,18 @@ const svSEGrid = {
116
116
  groupColumn: name => `Gruppera efter ${name}`,
117
117
  unGroupColumn: name => `Sluta gruppera efter ${name}`,
118
118
  // Master/detail
119
- // detailPanelToggle: 'Detail panel toggle',
119
+ detailPanelToggle: 'Växla detaljpanel',
120
120
  expandDetailPanel: 'Expandera',
121
121
  collapseDetailPanel: 'Kollapsa',
122
122
  // Row reordering text
123
- rowReorderingHeaderName: 'Ordna om rader' // Aggregation
124
- // aggregationMenuItemHeader: 'Aggregation',
125
- // aggregationFunctionLabelSum: 'sum',
126
- // aggregationFunctionLabelAvg: 'avg',
127
- // aggregationFunctionLabelMin: 'min',
128
- // aggregationFunctionLabelMax: 'max',
129
- // aggregationFunctionLabelSize: 'size',
130
-
123
+ rowReorderingHeaderName: 'Ordna om rader',
124
+ // Aggregation
125
+ aggregationMenuItemHeader: 'Aggregering',
126
+ aggregationFunctionLabelSum: 'sum',
127
+ aggregationFunctionLabelAvg: 'medel',
128
+ aggregationFunctionLabelMin: 'min',
129
+ aggregationFunctionLabelMax: 'max',
130
+ aggregationFunctionLabelSize: 'antal'
131
131
  };
132
132
  const svSE = (0, _getGridLocalization.getGridLocalization)(svSEGrid, _locale.svSE);
133
133
  exports.svSE = svSE;