@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.
- package/CHANGELOG.md +64 -0
- package/components/cell/GridCell.js +3 -1
- package/components/panel/GridColumnsPanel.js +15 -5
- package/hooks/features/export/useGridPrintExport.js +19 -3
- package/index.js +1 -1
- package/legacy/components/cell/GridCell.js +3 -1
- package/legacy/components/panel/GridColumnsPanel.js +15 -9
- package/legacy/hooks/features/export/useGridPrintExport.js +20 -4
- package/legacy/index.js +1 -1
- package/legacy/lib/createDetectElementResize/index.js +5 -5
- package/legacy/locales/beBY.js +161 -0
- package/legacy/locales/coreLocales.js +67 -0
- package/legacy/locales/esES.js +18 -14
- package/legacy/locales/frFR.js +1 -1
- package/legacy/locales/index.js +2 -0
- package/legacy/locales/jaJP.js +16 -16
- package/legacy/locales/skSK.js +8 -8
- package/legacy/locales/urPK.js +135 -0
- package/legacy/locales/viVN.js +22 -18
- package/lib/createDetectElementResize/index.js +5 -5
- package/locales/beBY.d.ts +2 -0
- package/locales/beBY.js +149 -0
- package/locales/coreLocales.d.ts +3 -0
- package/locales/coreLocales.js +65 -0
- package/locales/esES.js +14 -14
- package/locales/frFR.js +1 -1
- package/locales/index.d.ts +2 -0
- package/locales/index.js +2 -0
- package/locales/jaJP.js +16 -16
- package/locales/skSK.js +8 -8
- package/locales/urPK.d.ts +2 -0
- package/locales/urPK.js +123 -0
- package/locales/viVN.js +18 -18
- package/modern/components/cell/GridCell.js +3 -1
- package/modern/components/panel/GridColumnsPanel.js +15 -5
- package/modern/hooks/features/export/useGridPrintExport.js +19 -3
- package/modern/index.js +1 -1
- package/modern/lib/createDetectElementResize/index.js +5 -5
- package/modern/locales/beBY.js +149 -0
- package/modern/locales/coreLocales.js +65 -0
- package/modern/locales/esES.js +14 -14
- package/modern/locales/frFR.js +1 -1
- package/modern/locales/index.js +2 -0
- package/modern/locales/jaJP.js +16 -16
- package/modern/locales/skSK.js +8 -8
- package/modern/locales/urPK.js +123 -0
- package/modern/locales/viVN.js +18 -18
- package/node/components/cell/GridCell.js +3 -1
- package/node/components/panel/GridColumnsPanel.js +13 -5
- package/node/hooks/features/export/useGridPrintExport.js +19 -3
- package/node/index.js +1 -1
- package/node/lib/createDetectElementResize/index.js +5 -5
- package/node/locales/beBY.js +158 -0
- package/node/locales/coreLocales.js +73 -0
- package/node/locales/esES.js +14 -14
- package/node/locales/frFR.js +1 -1
- package/node/locales/index.js +26 -0
- package/node/locales/jaJP.js +16 -16
- package/node/locales/skSK.js +8 -8
- package/node/locales/urPK.js +133 -0
- package/node/locales/viVN.js +18 -18
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,70 @@
|
|
|
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.22
|
|
7
|
+
|
|
8
|
+
_Feb 2, 2023_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🌍 Add Urdu (ur-PK) locale
|
|
13
|
+
- 🌍 Improve French (fr-FR) and Italian (it-IT) locales
|
|
14
|
+
- 🐞 Bugfixes
|
|
15
|
+
|
|
16
|
+
### `@mui/x-data-grid@v5.17.22` / `@mui/x-data-grid-pro@v5.17.22` / `@mui/x-data-grid-premium@v5.17.22`
|
|
17
|
+
|
|
18
|
+
#### Changes
|
|
19
|
+
|
|
20
|
+
- [DataGrid] Fix an error when deleting pinned row using the buttons in the `actions` column (#7767) @cherniavskii
|
|
21
|
+
- [DataGrid] Fix print preview regression in Chrome browser (#7405) @cherniavskii
|
|
22
|
+
- [l10n] Add Urdu (ur-PK) locale (#7778) @MBilalShafi
|
|
23
|
+
- [l10n] Improve French (fr-FR) locale (#7795) @Vivek-Prajapatii
|
|
24
|
+
|
|
25
|
+
### `@mui/x-date-pickers@v5.0.17` / `@mui/x-date-pickers-pro@v5.0.17`
|
|
26
|
+
|
|
27
|
+
#### Changes
|
|
28
|
+
|
|
29
|
+
- [TimePicker] Add missing `themeAugmentation` entry (#7732) @LukasTy
|
|
30
|
+
- [l10n] Improve Italian (it-IT) locale (#7761) @simonecervini
|
|
31
|
+
|
|
32
|
+
## v5.17.21
|
|
33
|
+
|
|
34
|
+
_Jan 27, 2023_
|
|
35
|
+
|
|
36
|
+
We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
|
|
37
|
+
|
|
38
|
+
- 🌍 Add Belarusian (be-BY), Czech (cs-CZ), and Russian (ru-RU) locales
|
|
39
|
+
- 🌍 Improve Slovak (sk-SK), Japanese (ja-JP), Vietnamese (vi-VN), and Spanish (es-ES) locales
|
|
40
|
+
- 🐞 Bugfixes
|
|
41
|
+
|
|
42
|
+
### `@mui/x-data-grid@v5.17.21` / `@mui/x-data-grid-pro@v5.17.21` / `@mui/x-data-grid-premium@v5.17.21`
|
|
43
|
+
|
|
44
|
+
#### Changes
|
|
45
|
+
|
|
46
|
+
- [DataGrid] Add `title` attribute to cells (#7695) @thupi
|
|
47
|
+
- [DataGrid] Fix grid state not being updated after print preview is closed (#7680) @cherniavskii
|
|
48
|
+
- [DataGrid] Fix non-hideable columns visibility toggling (#7716) @cherniavskii
|
|
49
|
+
- [DataGrid] Fix scrolling on resize for data grids inside shadow root (#7722) @cherniavskii
|
|
50
|
+
- [DataGridPremium] Create aggregation footer row with `isAutoGenerated: true` (#7681) @m4theushw
|
|
51
|
+
- [l10n] Add Belarusian (be-BY) locale (#7718) @volhalink
|
|
52
|
+
- [l10n] Add Slovak (sk-SK) translation for aggregation functions (#7690) @msidlo
|
|
53
|
+
- [l10n] Add missing core locales for `MuiTablePagination` (#7719) @MBilalShafi
|
|
54
|
+
- [l10n] Improve Japanese (ja-JP) locale (#7627) @makoto14
|
|
55
|
+
- [l10n] Improve Vietnamese (vi-VN) locale (#7601) @SpacerZ
|
|
56
|
+
|
|
57
|
+
### `@mui/x-date-pickers@v5.0.16` / `@mui/x-date-pickers-pro@v5.0.16`
|
|
58
|
+
|
|
59
|
+
#### Changes
|
|
60
|
+
|
|
61
|
+
- [pickers] Add missing components to `themeAugmentation` (#7677) @LukasTy
|
|
62
|
+
- [l10n] Add Czech (cs-CZ) locale (#7666) @OndrejHj04
|
|
63
|
+
- [l10n] Add Russian (ru-RU) locale (#7708) @rstmzh
|
|
64
|
+
- [l10n] Improve Spanish (es-ES) locale (#7614) @WiXSL
|
|
65
|
+
|
|
66
|
+
### Docs
|
|
67
|
+
|
|
68
|
+
- [docs] Add info callout about available component `slots` (#7723) @Vivek-Prajapatii
|
|
69
|
+
|
|
6
70
|
## 5.17.20
|
|
7
71
|
|
|
8
72
|
_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:
|
|
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
|
-
|
|
110
|
-
|
|
111
|
-
}
|
|
112
|
-
|
|
113
|
-
|
|
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
|
|
|
@@ -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)
|
|
@@ -96,6 +101,13 @@ export const useGridPrintExport = (apiRef, props) => {
|
|
|
96
101
|
|
|
97
102
|
const gridMain = gridClone.querySelector(`.${gridClasses.main}`);
|
|
98
103
|
gridMain.style.overflow = 'visible';
|
|
104
|
+
const chromeVersion = getChromeVersion();
|
|
105
|
+
|
|
106
|
+
if (chromeVersion && chromeVersion >= 108) {
|
|
107
|
+
// See https://support.google.com/chrome/thread/191619088?hl=en&msgid=193009642
|
|
108
|
+
gridClone.style.contain = 'size';
|
|
109
|
+
}
|
|
110
|
+
|
|
99
111
|
const columnHeaders = gridClone.querySelector(`.${gridClasses.columnHeaders}`);
|
|
100
112
|
const columnHeadersInner = columnHeaders.querySelector(`.${gridClasses.columnHeadersInner}`);
|
|
101
113
|
columnHeadersInner.style.width = '100%';
|
|
@@ -228,10 +240,14 @@ export const useGridPrintExport = (apiRef, props) => {
|
|
|
228
240
|
} else {
|
|
229
241
|
printWindow.onload = () => {
|
|
230
242
|
handlePrintWindowLoad(printWindow, options);
|
|
243
|
+
const mediaQueryList = printWindow.contentWindow.matchMedia('print');
|
|
244
|
+
mediaQueryList.addEventListener('change', mql => {
|
|
245
|
+
const isAfterPrint = mql.matches === false;
|
|
231
246
|
|
|
232
|
-
|
|
233
|
-
|
|
234
|
-
|
|
247
|
+
if (isAfterPrint) {
|
|
248
|
+
handlePrintWindowAfterPrint(printWindow);
|
|
249
|
+
}
|
|
250
|
+
});
|
|
235
251
|
};
|
|
236
252
|
|
|
237
253
|
doc.current.body.appendChild(printWindow);
|
package/index.js
CHANGED
|
@@ -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:
|
|
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
|
-
|
|
125
|
-
|
|
126
|
-
}
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
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
|
|
|
@@ -24,6 +24,11 @@ function raf() {
|
|
|
24
24
|
});
|
|
25
25
|
}
|
|
26
26
|
|
|
27
|
+
function getChromeVersion() {
|
|
28
|
+
var raw = navigator.userAgent.match(/Chrom(e|ium)\/([0-9]+)\./);
|
|
29
|
+
return raw ? parseInt(raw[2], 10) : null;
|
|
30
|
+
}
|
|
31
|
+
|
|
27
32
|
/**
|
|
28
33
|
* @requires useGridColumns (state)
|
|
29
34
|
* @requires useGridFilter (state)
|
|
@@ -103,6 +108,13 @@ export var useGridPrintExport = function useGridPrintExport(apiRef, props) {
|
|
|
103
108
|
|
|
104
109
|
var gridMain = gridClone.querySelector(".".concat(gridClasses.main));
|
|
105
110
|
gridMain.style.overflow = 'visible';
|
|
111
|
+
var chromeVersion = getChromeVersion();
|
|
112
|
+
|
|
113
|
+
if (chromeVersion && chromeVersion >= 108) {
|
|
114
|
+
// See https://support.google.com/chrome/thread/191619088?hl=en&msgid=193009642
|
|
115
|
+
gridClone.style.contain = 'size';
|
|
116
|
+
}
|
|
117
|
+
|
|
106
118
|
var columnHeaders = gridClone.querySelector(".".concat(gridClasses.columnHeaders));
|
|
107
119
|
var columnHeadersInner = columnHeaders.querySelector(".".concat(gridClasses.columnHeadersInner));
|
|
108
120
|
columnHeadersInner.style.width = '100%';
|
|
@@ -253,10 +265,14 @@ export var useGridPrintExport = function useGridPrintExport(apiRef, props) {
|
|
|
253
265
|
} else {
|
|
254
266
|
printWindow.onload = function () {
|
|
255
267
|
handlePrintWindowLoad(printWindow, options);
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
259
|
-
|
|
268
|
+
var mediaQueryList = printWindow.contentWindow.matchMedia('print');
|
|
269
|
+
mediaQueryList.addEventListener('change', function (mql) {
|
|
270
|
+
var isAfterPrint = mql.matches === false;
|
|
271
|
+
|
|
272
|
+
if (isAfterPrint) {
|
|
273
|
+
handlePrintWindowAfterPrint(printWindow);
|
|
274
|
+
}
|
|
275
|
+
});
|
|
260
276
|
};
|
|
261
277
|
|
|
262
278
|
doc.current.body.appendChild(printWindow);
|
package/legacy/index.js
CHANGED
|
@@ -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 (!
|
|
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
|
-
|
|
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
|
-
|
|
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
|
+
};
|
package/legacy/locales/esES.js
CHANGED
|
@@ -107,25 +107,29 @@ var esESGrid = {
|
|
|
107
107
|
pinToRight: 'Anclar a la derecha',
|
|
108
108
|
unpin: 'Desanclar',
|
|
109
109
|
// Tree Data
|
|
110
|
-
|
|
111
|
-
|
|
112
|
-
|
|
110
|
+
treeDataGroupingHeaderName: 'Grupo',
|
|
111
|
+
treeDataExpand: 'mostrar hijos',
|
|
112
|
+
treeDataCollapse: 'ocultar hijos',
|
|
113
113
|
// Grouping columns
|
|
114
|
-
|
|
115
|
-
|
|
116
|
-
|
|
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
|
-
|
|
122
|
+
detailPanelToggle: 'Alternar detalle',
|
|
119
123
|
expandDetailPanel: 'Expandir',
|
|
120
|
-
collapseDetailPanel: '
|
|
124
|
+
collapseDetailPanel: 'Contraer',
|
|
121
125
|
// Row reordering text
|
|
122
|
-
|
|
126
|
+
rowReorderingHeaderName: 'Reordenar filas',
|
|
123
127
|
// Aggregation
|
|
124
|
-
|
|
125
|
-
|
|
126
|
-
|
|
128
|
+
aggregationMenuItemHeader: 'Agregación',
|
|
129
|
+
aggregationFunctionLabelSum: 'sum',
|
|
130
|
+
aggregationFunctionLabelAvg: 'avg',
|
|
127
131
|
aggregationFunctionLabelMin: 'min',
|
|
128
|
-
aggregationFunctionLabelMax: 'max'
|
|
129
|
-
|
|
132
|
+
aggregationFunctionLabelMax: 'max',
|
|
133
|
+
aggregationFunctionLabelSize: 'tamaño'
|
|
130
134
|
};
|
|
131
135
|
export var esES = getGridLocalization(esESGrid, esESCore);
|
package/legacy/locales/frFR.js
CHANGED
|
@@ -62,7 +62,7 @@ var frFRGrid = {
|
|
|
62
62
|
filterOperatorOnOrBefore: 'égal ou antérieur',
|
|
63
63
|
filterOperatorIsEmpty: 'est vide',
|
|
64
64
|
filterOperatorIsNotEmpty: "n'est pas vide",
|
|
65
|
-
filterOperatorIsAnyOf: 'fait
|
|
65
|
+
filterOperatorIsAnyOf: 'fait partie de',
|
|
66
66
|
// Filter values text
|
|
67
67
|
filterValueAny: 'tous',
|
|
68
68
|
filterValueTrue: 'vrai',
|
package/legacy/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';
|
|
@@ -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';
|
package/legacy/locales/jaJP.js
CHANGED
|
@@ -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
|
-
|
|
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
|
-
|
|
68
|
-
|
|
69
|
-
|
|
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
|
-
|
|
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
|
-
|
|
122
|
+
detailPanelToggle: '詳細パネルの切り替え',
|
|
123
123
|
expandDetailPanel: '展開',
|
|
124
124
|
collapseDetailPanel: '折りたたみ',
|
|
125
125
|
// Row reordering text
|
|
126
|
-
rowReorderingHeaderName: '行並び替え'
|
|
127
|
-
//
|
|
128
|
-
|
|
129
|
-
|
|
130
|
-
|
|
131
|
-
|
|
132
|
-
|
|
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);
|