@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.
- package/CHANGELOG.md +62 -0
- package/components/cell/GridCell.js +3 -1
- package/components/panel/GridColumnsPanel.js +15 -5
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +1 -1
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +0 -1
- package/components/panel/filterPanel/GridFilterInputMultipleValue.js +0 -1
- package/hooks/features/export/useGridPrintExport.js +7 -3
- package/hooks/features/virtualization/useGridVirtualScroller.js +2 -6
- package/index.js +1 -1
- package/legacy/components/cell/GridCell.js +3 -1
- package/legacy/components/panel/GridColumnsPanel.js +15 -9
- package/legacy/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +0 -1
- package/legacy/components/panel/filterPanel/GridFilterInputMultipleValue.js +0 -1
- package/legacy/hooks/features/export/useGridPrintExport.js +8 -4
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +2 -6
- 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/index.js +1 -0
- package/legacy/locales/jaJP.js +16 -16
- package/legacy/locales/skSK.js +8 -8
- package/legacy/locales/svSE.js +10 -10
- 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/index.d.ts +1 -0
- package/locales/index.js +1 -0
- package/locales/jaJP.js +16 -16
- package/locales/skSK.js +8 -8
- package/locales/svSE.js +10 -10
- package/locales/viVN.js +18 -18
- package/modern/components/cell/GridCell.js +3 -1
- package/modern/components/panel/GridColumnsPanel.js +15 -5
- package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +0 -1
- package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.js +0 -1
- package/modern/hooks/features/export/useGridPrintExport.js +7 -3
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +2 -6
- 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/index.js +1 -0
- package/modern/locales/jaJP.js +16 -16
- package/modern/locales/skSK.js +8 -8
- package/modern/locales/svSE.js +10 -10
- 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/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +0 -1
- package/node/components/panel/filterPanel/GridFilterInputMultipleValue.js +0 -1
- package/node/hooks/features/export/useGridPrintExport.js +7 -3
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +2 -6
- 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/index.js +13 -0
- package/node/locales/jaJP.js +16 -16
- package/node/locales/skSK.js +8 -8
- package/node/locales/svSE.js +10 -10
- package/node/locales/viVN.js +18 -18
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,68 @@
|
|
|
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
|
+
|
|
44
|
+
## 5.17.20
|
|
45
|
+
|
|
46
|
+
_Jan 19, 2023_
|
|
47
|
+
|
|
48
|
+
We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
|
|
49
|
+
|
|
50
|
+
- 🌍 Improve Italian (it-IT) and Swedish (sv-SE) locales
|
|
51
|
+
- 🐞 Bugfixes
|
|
52
|
+
|
|
53
|
+
### `@mui/x-data-grid@v5.17.20` / `@mui/x-data-grid-pro@v5.17.20` / `@mui/x-data-grid-premium@v5.17.20`
|
|
54
|
+
|
|
55
|
+
#### Changes
|
|
56
|
+
|
|
57
|
+
- [DataGrid] Fix flickering on grid scroll (#7609) @cherniavskii
|
|
58
|
+
- [DataGrid] Remove tag limit from `isAnyOf` operator input (#7616) @m4theushw
|
|
59
|
+
- [l10n] Improve Swedish (sv-SE) locale (#7463) @MaanTyringe
|
|
60
|
+
|
|
61
|
+
### `@mui/x-date-pickers@v5.0.15` / `@mui/x-date-pickers-pro@v5.0.15`
|
|
62
|
+
|
|
63
|
+
#### Changes
|
|
64
|
+
|
|
65
|
+
- [pickers] Ensure `key` is passed without object spreading (#7584) @alexfauquette
|
|
66
|
+
- [l10n] Improve Italian (it-IT) locale (#7547) @marikadeveloper
|
|
67
|
+
|
|
6
68
|
## 5.17.19
|
|
7
69
|
|
|
8
70
|
_Jan 16, 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
|
|
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
import { AutocompleteProps } from '@mui/material/Autocomplete';
|
|
3
3
|
import { GridFilterInputValueProps } from './GridFilterInputValueProps';
|
|
4
4
|
import type { ValueOptions } from '../../../models/colDef/gridColDef';
|
|
5
|
-
export interface GridFilterInputMultipleSingleSelectProps extends Omit<AutocompleteProps<ValueOptions, true, false, true>, 'options' | 'renderInput' | 'onChange' | 'value' | 'id' | 'filterOptions' | 'isOptionEqualToValue' | '
|
|
5
|
+
export interface GridFilterInputMultipleSingleSelectProps extends Omit<AutocompleteProps<ValueOptions, true, false, true>, 'options' | 'renderInput' | 'onChange' | 'value' | 'id' | 'filterOptions' | 'isOptionEqualToValue' | 'multiple' | 'color'>, GridFilterInputValueProps {
|
|
6
6
|
type?: 'singleSelect';
|
|
7
7
|
}
|
|
8
8
|
declare function GridFilterInputMultipleSingleSelect(props: GridFilterInputMultipleSingleSelectProps): JSX.Element;
|
|
@@ -105,7 +105,6 @@ function GridFilterInputMultipleSingleSelect(props) {
|
|
|
105
105
|
}, [applyValue, item]);
|
|
106
106
|
return /*#__PURE__*/_jsx(Autocomplete, _extends({
|
|
107
107
|
multiple: true,
|
|
108
|
-
limitTags: 1,
|
|
109
108
|
options: resolvedValueOptions,
|
|
110
109
|
isOptionEqualToValue: isOptionEqualToValue,
|
|
111
110
|
filterOptions: filter,
|
|
@@ -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
|
-
|
|
233
|
-
|
|
234
|
-
|
|
235
|
+
if (isAfterPrint) {
|
|
236
|
+
handlePrintWindowAfterPrint(printWindow);
|
|
237
|
+
}
|
|
238
|
+
});
|
|
235
239
|
};
|
|
236
240
|
|
|
237
241
|
doc.current.body.appendChild(printWindow);
|
|
@@ -217,13 +217,9 @@ export const useGridVirtualScroller = props => {
|
|
|
217
217
|
});
|
|
218
218
|
}
|
|
219
219
|
}, [apiRef, currentPage.rows, onRenderZonePositioning, renderZoneMinColumnIndex, renderZoneMaxColumnIndex, rootProps.columnBuffer, rootProps.rowBuffer]);
|
|
220
|
-
React.useLayoutEffect(() => {
|
|
221
|
-
if (renderContext) {
|
|
222
|
-
updateRenderZonePosition(renderContext);
|
|
223
|
-
}
|
|
224
|
-
}, [renderContext, updateRenderZonePosition]);
|
|
225
220
|
const updateRenderContext = React.useCallback(nextRenderContext => {
|
|
226
221
|
setRenderContext(nextRenderContext);
|
|
222
|
+
updateRenderZonePosition(nextRenderContext);
|
|
227
223
|
const [firstRowToRender, lastRowToRender] = getRenderableIndexes({
|
|
228
224
|
firstIndex: nextRenderContext.firstRowIndex,
|
|
229
225
|
lastIndex: nextRenderContext.lastRowIndex,
|
|
@@ -236,7 +232,7 @@ export const useGridVirtualScroller = props => {
|
|
|
236
232
|
lastRowToRender
|
|
237
233
|
});
|
|
238
234
|
prevRenderContext.current = nextRenderContext;
|
|
239
|
-
}, [apiRef, setRenderContext, prevRenderContext, currentPage.rows.length, rootProps.rowBuffer]);
|
|
235
|
+
}, [apiRef, setRenderContext, prevRenderContext, currentPage.rows.length, rootProps.rowBuffer, updateRenderZonePosition]);
|
|
240
236
|
useEnhancedEffect(() => {
|
|
241
237
|
if (containerDimensions.width == null) {
|
|
242
238
|
return;
|
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
|
|
|
@@ -115,7 +115,6 @@ function GridFilterInputMultipleSingleSelect(props) {
|
|
|
115
115
|
}, [applyValue, item]);
|
|
116
116
|
return /*#__PURE__*/_jsx(Autocomplete, _extends({
|
|
117
117
|
multiple: true,
|
|
118
|
-
limitTags: 1,
|
|
119
118
|
options: resolvedValueOptions,
|
|
120
119
|
isOptionEqualToValue: isOptionEqualToValue,
|
|
121
120
|
filterOptions: filter,
|
|
@@ -54,7 +54,6 @@ function GridFilterInputMultipleValue(props) {
|
|
|
54
54
|
return /*#__PURE__*/_jsx(Autocomplete, _extends({
|
|
55
55
|
multiple: true,
|
|
56
56
|
freeSolo: true,
|
|
57
|
-
limitTags: 1,
|
|
58
57
|
options: [],
|
|
59
58
|
filterOptions: function filterOptions(options, params) {
|
|
60
59
|
var inputValue = params.inputValue;
|
|
@@ -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
|
-
|
|
258
|
-
|
|
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);
|
|
@@ -240,13 +240,9 @@ export var useGridVirtualScroller = function useGridVirtualScroller(props) {
|
|
|
240
240
|
});
|
|
241
241
|
}
|
|
242
242
|
}, [apiRef, currentPage.rows, onRenderZonePositioning, renderZoneMinColumnIndex, renderZoneMaxColumnIndex, rootProps.columnBuffer, rootProps.rowBuffer]);
|
|
243
|
-
React.useLayoutEffect(function () {
|
|
244
|
-
if (renderContext) {
|
|
245
|
-
updateRenderZonePosition(renderContext);
|
|
246
|
-
}
|
|
247
|
-
}, [renderContext, updateRenderZonePosition]);
|
|
248
243
|
var updateRenderContext = React.useCallback(function (nextRenderContext) {
|
|
249
244
|
setRenderContext(nextRenderContext);
|
|
245
|
+
updateRenderZonePosition(nextRenderContext);
|
|
250
246
|
|
|
251
247
|
var _getRenderableIndexes7 = getRenderableIndexes({
|
|
252
248
|
firstIndex: nextRenderContext.firstRowIndex,
|
|
@@ -264,7 +260,7 @@ export var useGridVirtualScroller = function useGridVirtualScroller(props) {
|
|
|
264
260
|
lastRowToRender: lastRowToRender
|
|
265
261
|
});
|
|
266
262
|
prevRenderContext.current = nextRenderContext;
|
|
267
|
-
}, [apiRef, setRenderContext, prevRenderContext, currentPage.rows.length, rootProps.rowBuffer]);
|
|
263
|
+
}, [apiRef, setRenderContext, prevRenderContext, currentPage.rows.length, rootProps.rowBuffer, updateRenderZonePosition]);
|
|
268
264
|
useEnhancedEffect(function () {
|
|
269
265
|
if (containerDimensions.width == null) {
|
|
270
266
|
return;
|
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);
|