@mui/x-data-grid 5.17.20 → 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 (53) hide show
  1. package/CHANGELOG.md +38 -0
  2. package/components/cell/GridCell.js +3 -1
  3. package/components/panel/GridColumnsPanel.js +15 -5
  4. package/hooks/features/export/useGridPrintExport.js +7 -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 +8 -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/index.js +1 -0
  15. package/legacy/locales/jaJP.js +16 -16
  16. package/legacy/locales/skSK.js +8 -8
  17. package/legacy/locales/viVN.js +22 -18
  18. package/lib/createDetectElementResize/index.js +5 -5
  19. package/locales/beBY.d.ts +2 -0
  20. package/locales/beBY.js +149 -0
  21. package/locales/coreLocales.d.ts +3 -0
  22. package/locales/coreLocales.js +65 -0
  23. package/locales/esES.js +14 -14
  24. package/locales/index.d.ts +1 -0
  25. package/locales/index.js +1 -0
  26. package/locales/jaJP.js +16 -16
  27. package/locales/skSK.js +8 -8
  28. package/locales/viVN.js +18 -18
  29. package/modern/components/cell/GridCell.js +3 -1
  30. package/modern/components/panel/GridColumnsPanel.js +15 -5
  31. package/modern/hooks/features/export/useGridPrintExport.js +7 -3
  32. package/modern/index.js +1 -1
  33. package/modern/lib/createDetectElementResize/index.js +5 -5
  34. package/modern/locales/beBY.js +149 -0
  35. package/modern/locales/coreLocales.js +65 -0
  36. package/modern/locales/esES.js +14 -14
  37. package/modern/locales/index.js +1 -0
  38. package/modern/locales/jaJP.js +16 -16
  39. package/modern/locales/skSK.js +8 -8
  40. package/modern/locales/viVN.js +18 -18
  41. package/node/components/cell/GridCell.js +3 -1
  42. package/node/components/panel/GridColumnsPanel.js +13 -5
  43. package/node/hooks/features/export/useGridPrintExport.js +7 -3
  44. package/node/index.js +1 -1
  45. package/node/lib/createDetectElementResize/index.js +5 -5
  46. package/node/locales/beBY.js +158 -0
  47. package/node/locales/coreLocales.js +73 -0
  48. package/node/locales/esES.js +14 -14
  49. package/node/locales/index.js +13 -0
  50. package/node/locales/jaJP.js +16 -16
  51. package/node/locales/skSK.js +8 -8
  52. package/node/locales/viVN.js +18 -18
  53. package/package.json +1 -1
package/CHANGELOG.md CHANGED
@@ -3,6 +3,44 @@
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
+
6
44
  ## 5.17.20
7
45
 
8
46
  _Jan 19, 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
 
@@ -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);
package/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI X v5.17.20
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
 
@@ -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);
package/legacy/index.js CHANGED
@@ -1,4 +1,4 @@
1
- /** @license MUI X v5.17.20
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';
@@ -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);