@mui/x-data-grid 6.18.6 → 6.19.1
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 +114 -1
- package/DataGrid/DataGrid.js +0 -1
- package/hooks/features/filter/gridFilterUtils.js +12 -6
- package/index.js +1 -1
- package/legacy/DataGrid/DataGrid.js +0 -1
- package/legacy/hooks/features/filter/gridFilterUtils.js +12 -6
- package/legacy/index.js +1 -1
- package/legacy/locales/csCZ.js +2 -2
- package/legacy/locales/hrHR.js +161 -0
- package/legacy/locales/index.js +4 -1
- package/legacy/locales/ptPT.js +161 -0
- package/legacy/locales/zhHK.js +161 -0
- package/locales/csCZ.js +2 -2
- package/locales/hrHR.d.ts +1 -0
- package/locales/hrHR.js +149 -0
- package/locales/index.d.ts +3 -0
- package/locales/index.js +4 -1
- package/locales/ptPT.d.ts +1 -0
- package/locales/ptPT.js +149 -0
- package/locales/zhHK.d.ts +1 -0
- package/locales/zhHK.js +149 -0
- package/models/props/DataGridProps.d.ts +0 -1
- package/modern/DataGrid/DataGrid.js +0 -1
- package/modern/hooks/features/filter/gridFilterUtils.js +12 -6
- package/modern/index.js +1 -1
- package/modern/locales/csCZ.js +2 -2
- package/modern/locales/hrHR.js +149 -0
- package/modern/locales/index.js +4 -1
- package/modern/locales/ptPT.js +149 -0
- package/modern/locales/zhHK.js +149 -0
- package/node/DataGrid/DataGrid.js +0 -1
- package/node/hooks/features/filter/gridFilterUtils.js +12 -6
- package/node/index.js +1 -1
- package/node/locales/csCZ.js +2 -2
- package/node/locales/hrHR.js +155 -0
- package/node/locales/index.js +33 -0
- package/node/locales/ptPT.js +155 -0
- package/node/locales/zhHK.js +155 -0
- package/package.json +1 -1
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,119 @@
|
|
|
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
|
+
## 6.19.1
|
|
7
|
+
|
|
8
|
+
_Jan 19, 2024_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 1 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🌍 Add Croatian (hr-HR), Portuguese (pt-PT), and Chinese (Hong Kong) (zh-HK) locales (#11717) @BCaspari
|
|
13
|
+
- 🐞 Bugfixes
|
|
14
|
+
|
|
15
|
+
### Data Grid
|
|
16
|
+
|
|
17
|
+
#### `@mui/x-data-grid@6.19.1`
|
|
18
|
+
|
|
19
|
+
- [l10n] Add Croatian (hr-HR), Portuguese (pt-PT), and Chinese (Hong Kong) (zh-HK) locales (#11717) @BCaspari
|
|
20
|
+
|
|
21
|
+
#### `@mui/x-data-grid-pro@6.19.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
22
|
+
|
|
23
|
+
Same changes as in `@mui/x-data-grid@6.19.1`.
|
|
24
|
+
|
|
25
|
+
#### `@mui/x-data-grid-premium@6.19.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
26
|
+
|
|
27
|
+
Same changes as in `@mui/x-data-grid-pro@6.19.1`.
|
|
28
|
+
|
|
29
|
+
### Charts / `@mui/x-charts@6.19.1`
|
|
30
|
+
|
|
31
|
+
- [charts] Add `arcLabelRadius` property (#11563) @alexfauquette
|
|
32
|
+
- [charts] Do not propagate `innerRadius` and `outerRadius` to the DOM (#11719) @alexfauquette
|
|
33
|
+
- [charts] Fix default `stackOffset` for `LineChart` (#11703) @alexfauquette
|
|
34
|
+
|
|
35
|
+
## 6.19.0
|
|
36
|
+
|
|
37
|
+
_Jan 11, 2024_
|
|
38
|
+
|
|
39
|
+
We'd like to offer a big thanks to the 3 contributors who made this release possible. Here are some highlights ✨:
|
|
40
|
+
|
|
41
|
+
- ⏰ Support date-fns v3 (#11659) @LukasTy
|
|
42
|
+
Pickers support both v2 and v3 of date-fns. For v3 use `AdapterDateFnsV3`.
|
|
43
|
+
```js
|
|
44
|
+
// with date-fns v2.x
|
|
45
|
+
import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns';
|
|
46
|
+
import de from 'date-fns/locale/de';
|
|
47
|
+
```
|
|
48
|
+
```js
|
|
49
|
+
// with date-fns v3.x
|
|
50
|
+
import { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFnsV3';
|
|
51
|
+
import { de } from 'date-fns/locale/de';
|
|
52
|
+
```
|
|
53
|
+
|
|
54
|
+
### Date Pickers
|
|
55
|
+
|
|
56
|
+
#### `@mui/x-date-pickers@6.19.0`
|
|
57
|
+
|
|
58
|
+
- [pickers] Add date-fns@3.x adapter (#11659) @LukasTy
|
|
59
|
+
- [pickers] Fix clearable behavior blocking focus return to `OpenPickerButton` (#11643) @noraleonte
|
|
60
|
+
- [l10n] Add missing Danish (da-DK) locale export (#11641) @etlos
|
|
61
|
+
|
|
62
|
+
#### `@mui/x-date-pickers-pro@6.19.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
63
|
+
|
|
64
|
+
Same changes as in `@mui/x-date-pickers@6.19.0`.
|
|
65
|
+
|
|
66
|
+
### Docs
|
|
67
|
+
|
|
68
|
+
- [docs] Add missing component @oliviertassinari
|
|
69
|
+
- [docs] Fix parsing of `x-date-pickers-pro` demo adapter imports (#11637) @LukasTy
|
|
70
|
+
- [docs] Push up the MUI X brand (#11533) @oliviertassinari
|
|
71
|
+
- [docs] Improve Server-side data grid docs (#11589) @oliviertassinari
|
|
72
|
+
- [docs] Add demo to the charts overview page (#11586) @danilo-leal
|
|
73
|
+
- [docs] Fix 404 links in the docs @oliviertassinari
|
|
74
|
+
- [docs] Improve landing page (#11570) @oliviertassinari
|
|
75
|
+
- [docs] Give a general revision to the docs (#11249) @danilo-leal
|
|
76
|
+
|
|
77
|
+
## 6.18.7
|
|
78
|
+
|
|
79
|
+
_Jan 5, 2024_
|
|
80
|
+
|
|
81
|
+
We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
|
|
82
|
+
|
|
83
|
+
- 🌍 Improve Czech (cs-CZ) locale on Data Grid (#11429) @wensiet
|
|
84
|
+
- 🐞 Bugfixes
|
|
85
|
+
|
|
86
|
+
### Data Grid
|
|
87
|
+
|
|
88
|
+
#### `@mui/x-data-grid@6.18.7`
|
|
89
|
+
|
|
90
|
+
- [DataGrid] Don't evaluate `hasEval` when `disableEval` is set (#11553) @reihwald
|
|
91
|
+
- [l10n] Update Czech (cs-CZ) locale (#11498) @fdebef
|
|
92
|
+
|
|
93
|
+
#### `@mui/x-data-grid-pro@6.18.7` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
94
|
+
|
|
95
|
+
Same changes as in `@mui/x-data-grid@6.18.7`.
|
|
96
|
+
|
|
97
|
+
#### `@mui/x-data-grid-premium@6.18.7` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
98
|
+
|
|
99
|
+
Same changes as in `@mui/x-data-grid-pro@6.18.7`.
|
|
100
|
+
|
|
101
|
+
### Date Pickers
|
|
102
|
+
|
|
103
|
+
#### `@mui/x-date-pickers@6.18.7`
|
|
104
|
+
|
|
105
|
+
- [pickers] Fix views management (@LukasTy) (#11572)
|
|
106
|
+
|
|
107
|
+
#### `@mui/x-date-pickers-pro@6.18.7` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
108
|
+
|
|
109
|
+
Same changes as in `@mui/x-date-pickers@6.18.7`.
|
|
110
|
+
|
|
111
|
+
### Charts / `@mui/x-charts@6.18.7`
|
|
112
|
+
|
|
113
|
+
- [charts] Fix `null` in line chart using dataset (@alexfauquette) (#11561)
|
|
114
|
+
|
|
115
|
+
### Docs
|
|
116
|
+
|
|
117
|
+
- [docs] Clarify Pickers usage with Luxon (#11566) @LukasTy
|
|
118
|
+
|
|
6
119
|
## 6.18.6
|
|
7
120
|
|
|
8
121
|
_Dec 22, 2023_
|
|
@@ -37,7 +150,7 @@ Same changes as in `@mui/x-data-grid-pro@6.18.6`.
|
|
|
37
150
|
|
|
38
151
|
Same changes as in `@mui/x-date-pickers@6.18.6`.
|
|
39
152
|
|
|
40
|
-
### Charts / `@mui/x-charts@6.18.
|
|
153
|
+
### Charts / `@mui/x-charts@6.18.4`
|
|
41
154
|
|
|
42
155
|
- [charts] Allow percentage values for pie chart center and radius (#11464) @alexfauquette
|
|
43
156
|
- [charts] Make error message more explicit (#11457) @alexfauquette
|
package/DataGrid/DataGrid.js
CHANGED
|
@@ -10,11 +10,17 @@ import { gridColumnFieldsSelector, gridColumnLookupSelector, gridVisibleColumnFi
|
|
|
10
10
|
const globalScope = typeof window === 'undefined' ? globalThis : window;
|
|
11
11
|
const evalCode = globalScope[atob('ZXZhbA==')];
|
|
12
12
|
let hasEval;
|
|
13
|
-
|
|
14
|
-
hasEval
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
const getHasEval = () => {
|
|
14
|
+
if (hasEval !== undefined) {
|
|
15
|
+
return hasEval;
|
|
16
|
+
}
|
|
17
|
+
try {
|
|
18
|
+
hasEval = evalCode('true');
|
|
19
|
+
} catch (_) {
|
|
20
|
+
hasEval = false;
|
|
21
|
+
}
|
|
22
|
+
return hasEval;
|
|
23
|
+
};
|
|
18
24
|
/**
|
|
19
25
|
* Adds default values to the optional fields of a filter items.
|
|
20
26
|
* @param {GridFilterItem} item The raw filter item.
|
|
@@ -164,7 +170,7 @@ const buildAggregatedFilterItemsApplier = (filterModel, apiRef, disableEval) =>
|
|
|
164
170
|
if (appliers.length === 0) {
|
|
165
171
|
return null;
|
|
166
172
|
}
|
|
167
|
-
if (
|
|
173
|
+
if (disableEval || !getHasEval()) {
|
|
168
174
|
// This is the original logic, which is used if `eval()` is not supported (aka prevented by CSP).
|
|
169
175
|
return (row, shouldApplyFilter) => {
|
|
170
176
|
const resultPerItemId = {};
|
package/index.js
CHANGED
|
@@ -10,11 +10,17 @@ import { gridColumnFieldsSelector, gridColumnLookupSelector, gridVisibleColumnFi
|
|
|
10
10
|
var globalScope = typeof window === 'undefined' ? globalThis : window;
|
|
11
11
|
var evalCode = globalScope[atob('ZXZhbA==')];
|
|
12
12
|
var hasEval;
|
|
13
|
-
|
|
14
|
-
hasEval
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
13
|
+
var getHasEval = function getHasEval() {
|
|
14
|
+
if (hasEval !== undefined) {
|
|
15
|
+
return hasEval;
|
|
16
|
+
}
|
|
17
|
+
try {
|
|
18
|
+
hasEval = evalCode('true');
|
|
19
|
+
} catch (_) {
|
|
20
|
+
hasEval = false;
|
|
21
|
+
}
|
|
22
|
+
return hasEval;
|
|
23
|
+
};
|
|
18
24
|
/**
|
|
19
25
|
* Adds default values to the optional fields of a filter items.
|
|
20
26
|
* @param {GridFilterItem} item The raw filter item.
|
|
@@ -178,7 +184,7 @@ var buildAggregatedFilterItemsApplier = function buildAggregatedFilterItemsAppli
|
|
|
178
184
|
if (appliers.length === 0) {
|
|
179
185
|
return null;
|
|
180
186
|
}
|
|
181
|
-
if (
|
|
187
|
+
if (disableEval || !getHasEval()) {
|
|
182
188
|
// This is the original logic, which is used if `eval()` is not supported (aka prevented by CSP).
|
|
183
189
|
return function (row, shouldApplyFilter) {
|
|
184
190
|
var resultPerItemId = {};
|
package/legacy/index.js
CHANGED
package/legacy/locales/csCZ.js
CHANGED
|
@@ -160,10 +160,10 @@ var csCZGrid = {
|
|
|
160
160
|
// Grouping columns
|
|
161
161
|
groupingColumnHeaderName: 'Skupina',
|
|
162
162
|
groupColumn: function groupColumn(name) {
|
|
163
|
-
return "
|
|
163
|
+
return "Seskupit podle ".concat(name);
|
|
164
164
|
},
|
|
165
165
|
unGroupColumn: function unGroupColumn(name) {
|
|
166
|
-
return "P\u0159estat
|
|
166
|
+
return "P\u0159estat seskupovat podle ".concat(name);
|
|
167
167
|
},
|
|
168
168
|
// Master/detail
|
|
169
169
|
detailPanelToggle: 'Přepnout detail panelu',
|
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { hrHR as hrHRCore } from '@mui/material/locale';
|
|
2
|
+
import { getGridLocalization } from '../utils/getGridLocalization';
|
|
3
|
+
var hrHRGrid = {
|
|
4
|
+
// Root
|
|
5
|
+
noRowsLabel: 'Nema redova',
|
|
6
|
+
noResultsOverlayLabel: 'Nema rezultata.',
|
|
7
|
+
// Density selector toolbar button text
|
|
8
|
+
toolbarDensity: 'Gustoća',
|
|
9
|
+
toolbarDensityLabel: 'Gustoća',
|
|
10
|
+
toolbarDensityCompact: 'Kompaktan',
|
|
11
|
+
toolbarDensityStandard: 'Standard',
|
|
12
|
+
toolbarDensityComfortable: 'Udobno',
|
|
13
|
+
// Columns selector toolbar button text
|
|
14
|
+
toolbarColumns: 'Stupci',
|
|
15
|
+
toolbarColumnsLabel: 'Odaberite stupce',
|
|
16
|
+
// Filters toolbar button text
|
|
17
|
+
toolbarFilters: 'Filteri',
|
|
18
|
+
toolbarFiltersLabel: 'Prikaži filtre',
|
|
19
|
+
toolbarFiltersTooltipHide: 'Sakrij filtre',
|
|
20
|
+
toolbarFiltersTooltipShow: 'Prikaži filtre',
|
|
21
|
+
toolbarFiltersTooltipActive: function toolbarFiltersTooltipActive(count) {
|
|
22
|
+
return count !== 1 ? "".concat(count, " aktivnih filtara") : "".concat(count, " aktivni filter");
|
|
23
|
+
},
|
|
24
|
+
// Quick filter toolbar field
|
|
25
|
+
toolbarQuickFilterPlaceholder: 'Traži…',
|
|
26
|
+
toolbarQuickFilterLabel: 'traži',
|
|
27
|
+
toolbarQuickFilterDeleteIconLabel: 'Čisto',
|
|
28
|
+
// Export selector toolbar button text
|
|
29
|
+
toolbarExport: 'Izvoz',
|
|
30
|
+
toolbarExportLabel: 'Izvoz',
|
|
31
|
+
toolbarExportCSV: 'Preuzmi kao CSV',
|
|
32
|
+
toolbarExportPrint: 'Ispis',
|
|
33
|
+
toolbarExportExcel: 'Preuzmite kao Excel',
|
|
34
|
+
// Columns panel text
|
|
35
|
+
columnsPanelTextFieldLabel: 'Pronađi stupac',
|
|
36
|
+
columnsPanelTextFieldPlaceholder: 'Naslov stupca',
|
|
37
|
+
columnsPanelDragIconLabel: 'Promijeni redoslijed stupca',
|
|
38
|
+
columnsPanelShowAllButton: 'Pokaži sve',
|
|
39
|
+
columnsPanelHideAllButton: 'Sakrij sve',
|
|
40
|
+
// Filter panel text
|
|
41
|
+
filterPanelAddFilter: 'Dodajte filter',
|
|
42
|
+
filterPanelRemoveAll: 'Ukloniti sve',
|
|
43
|
+
filterPanelDeleteIconLabel: 'Izbrisati',
|
|
44
|
+
filterPanelLogicOperator: 'Logički operator',
|
|
45
|
+
filterPanelOperator: 'Operater',
|
|
46
|
+
filterPanelOperatorAnd: 'I',
|
|
47
|
+
filterPanelOperatorOr: 'Ili',
|
|
48
|
+
filterPanelColumns: 'Stupci',
|
|
49
|
+
filterPanelInputLabel: 'Vrijednost',
|
|
50
|
+
filterPanelInputPlaceholder: 'Vrijednost filtra',
|
|
51
|
+
// Filter operators text
|
|
52
|
+
filterOperatorContains: 'sadrži',
|
|
53
|
+
filterOperatorEquals: 'jednaki',
|
|
54
|
+
filterOperatorStartsWith: 'počinje sa',
|
|
55
|
+
filterOperatorEndsWith: 'završava sa',
|
|
56
|
+
filterOperatorIs: 'je',
|
|
57
|
+
filterOperatorNot: 'nije',
|
|
58
|
+
filterOperatorAfter: 'je poslije',
|
|
59
|
+
filterOperatorOnOrAfter: 'je na ili poslije',
|
|
60
|
+
filterOperatorBefore: 'je prije',
|
|
61
|
+
filterOperatorOnOrBefore: 'je na ili prije',
|
|
62
|
+
filterOperatorIsEmpty: 'prazno je',
|
|
63
|
+
filterOperatorIsNotEmpty: 'nije prazna',
|
|
64
|
+
filterOperatorIsAnyOf: 'je bilo koji od',
|
|
65
|
+
'filterOperator=': '=',
|
|
66
|
+
'filterOperator!=': '!=',
|
|
67
|
+
'filterOperator>': '>',
|
|
68
|
+
'filterOperator>=': '>=',
|
|
69
|
+
'filterOperator<': '<',
|
|
70
|
+
'filterOperator<=': '<=',
|
|
71
|
+
// Header filter operators text
|
|
72
|
+
headerFilterOperatorContains: 'Sadrži',
|
|
73
|
+
headerFilterOperatorEquals: 'Jednako',
|
|
74
|
+
headerFilterOperatorStartsWith: 'Počinje sa',
|
|
75
|
+
headerFilterOperatorEndsWith: 'Završava s',
|
|
76
|
+
headerFilterOperatorIs: 'Je',
|
|
77
|
+
headerFilterOperatorNot: 'Nije',
|
|
78
|
+
headerFilterOperatorAfter: 'Je poslije',
|
|
79
|
+
headerFilterOperatorOnOrAfter: 'Je uključeno ili poslije',
|
|
80
|
+
headerFilterOperatorBefore: 'Je li prije',
|
|
81
|
+
headerFilterOperatorOnOrBefore: 'Uključeno je ili prije',
|
|
82
|
+
headerFilterOperatorIsEmpty: 'Prazno je',
|
|
83
|
+
headerFilterOperatorIsNotEmpty: 'Nije prazna',
|
|
84
|
+
headerFilterOperatorIsAnyOf: 'Je li bilo koji od',
|
|
85
|
+
'headerFilterOperator=': 'Jednako',
|
|
86
|
+
'headerFilterOperator!=': 'Nije jednako',
|
|
87
|
+
'headerFilterOperator>': 'Veći od',
|
|
88
|
+
'headerFilterOperator>=': 'Veće ili jednako',
|
|
89
|
+
'headerFilterOperator<': 'Manje od',
|
|
90
|
+
'headerFilterOperator<=': 'Manje od ili jednako',
|
|
91
|
+
// Filter values text
|
|
92
|
+
filterValueAny: 'bilo koji',
|
|
93
|
+
filterValueTrue: 'pravi',
|
|
94
|
+
filterValueFalse: 'lažno',
|
|
95
|
+
// Column menu text
|
|
96
|
+
columnMenuLabel: 'Jelovnik ',
|
|
97
|
+
columnMenuShowColumns: 'Prikaži stupce',
|
|
98
|
+
columnMenuManageColumns: 'Upravljanje stupcima',
|
|
99
|
+
columnMenuFilter: 'filtar',
|
|
100
|
+
columnMenuHideColumn: 'Sakrij stupac',
|
|
101
|
+
columnMenuUnsort: 'Poništi sortiranje',
|
|
102
|
+
columnMenuSortAsc: 'Poredaj uzlazno',
|
|
103
|
+
columnMenuSortDesc: 'Poredaj silaznim redom',
|
|
104
|
+
// Column header text
|
|
105
|
+
columnHeaderFiltersTooltipActive: function columnHeaderFiltersTooltipActive(count) {
|
|
106
|
+
return count !== 1 ? "".concat(count, " aktivnih filtara") : "".concat(count, " aktivni filter");
|
|
107
|
+
},
|
|
108
|
+
columnHeaderFiltersLabel: 'Prikaži filtre',
|
|
109
|
+
columnHeaderSortIconLabel: 'Vrsta',
|
|
110
|
+
// Rows selected footer text
|
|
111
|
+
footerRowSelected: function footerRowSelected(count) {
|
|
112
|
+
return count !== 1 ? "Odabrano je ".concat(count.toLocaleString(), " redaka") : "".concat(count.toLocaleString(), " redak odabran");
|
|
113
|
+
},
|
|
114
|
+
// Total row amount footer text
|
|
115
|
+
footerTotalRows: 'Ukupno redaka:',
|
|
116
|
+
// Total visible row amount footer text
|
|
117
|
+
footerTotalVisibleRows: function footerTotalVisibleRows(visibleCount, totalCount) {
|
|
118
|
+
return "".concat(visibleCount.toLocaleString(), " od ").concat(totalCount.toLocaleString());
|
|
119
|
+
},
|
|
120
|
+
// Checkbox selection text
|
|
121
|
+
checkboxSelectionHeaderName: 'Odabir potvrdnog okvira',
|
|
122
|
+
checkboxSelectionSelectAllRows: 'Odaberite sve retke',
|
|
123
|
+
checkboxSelectionUnselectAllRows: 'Poništi odabir svih redaka',
|
|
124
|
+
checkboxSelectionSelectRow: 'Odaberite red',
|
|
125
|
+
checkboxSelectionUnselectRow: 'Poništi odabir retka',
|
|
126
|
+
// Boolean cell text
|
|
127
|
+
booleanCellTrueLabel: 'Da',
|
|
128
|
+
booleanCellFalseLabel: 'Ne',
|
|
129
|
+
// Actions cell more text
|
|
130
|
+
actionsCellMore: 'više',
|
|
131
|
+
// Column pinning text
|
|
132
|
+
pinToLeft: 'Prikvači lijevo',
|
|
133
|
+
pinToRight: 'Prikvači desno',
|
|
134
|
+
unpin: 'Otkvači',
|
|
135
|
+
// Tree Data
|
|
136
|
+
treeDataGroupingHeaderName: 'Group',
|
|
137
|
+
treeDataExpand: 'vidjeti djecu',
|
|
138
|
+
treeDataCollapse: 'sakriti djecu',
|
|
139
|
+
// Grouping columns
|
|
140
|
+
groupingColumnHeaderName: 'Skupina',
|
|
141
|
+
groupColumn: function groupColumn(name) {
|
|
142
|
+
return "Grupiraj prema ".concat(name);
|
|
143
|
+
},
|
|
144
|
+
unGroupColumn: function unGroupColumn(name) {
|
|
145
|
+
return "Zaustavi grupiranje prema ".concat(name);
|
|
146
|
+
},
|
|
147
|
+
// Master/detail
|
|
148
|
+
detailPanelToggle: 'Prebacivanje ploče s detaljima',
|
|
149
|
+
expandDetailPanel: 'Proširiti',
|
|
150
|
+
collapseDetailPanel: 'Kolaps',
|
|
151
|
+
// Row reordering text
|
|
152
|
+
rowReorderingHeaderName: 'Promjena redoslijeda',
|
|
153
|
+
// Aggregation
|
|
154
|
+
aggregationMenuItemHeader: 'Agregacija',
|
|
155
|
+
aggregationFunctionLabelSum: 'iznos',
|
|
156
|
+
aggregationFunctionLabelAvg: 'prosj',
|
|
157
|
+
aggregationFunctionLabelMin: 'min',
|
|
158
|
+
aggregationFunctionLabelMax: 'max',
|
|
159
|
+
aggregationFunctionLabelSize: 'veličina'
|
|
160
|
+
};
|
|
161
|
+
export var hrHR = getGridLocalization(hrHRGrid, hrHRCore);
|
package/legacy/locales/index.js
CHANGED
|
@@ -0,0 +1,161 @@
|
|
|
1
|
+
import { ptPT as ptPTCore } from '@mui/material/locale';
|
|
2
|
+
import { getGridLocalization } from '../utils/getGridLocalization';
|
|
3
|
+
var ptPTGrid = {
|
|
4
|
+
// Root
|
|
5
|
+
noRowsLabel: 'Nenhuma linha',
|
|
6
|
+
noResultsOverlayLabel: 'Nenhum resultado encontrado.',
|
|
7
|
+
// Density selector toolbar button text
|
|
8
|
+
toolbarDensity: 'Densidade',
|
|
9
|
+
toolbarDensityLabel: 'Densidade',
|
|
10
|
+
toolbarDensityCompact: 'Compactar',
|
|
11
|
+
toolbarDensityStandard: 'Padrão',
|
|
12
|
+
toolbarDensityComfortable: 'Confortável',
|
|
13
|
+
// Columns selector toolbar button text
|
|
14
|
+
toolbarColumns: 'Colunas',
|
|
15
|
+
toolbarColumnsLabel: 'Selecione colunas',
|
|
16
|
+
// Filters toolbar button text
|
|
17
|
+
toolbarFilters: 'Filtros',
|
|
18
|
+
toolbarFiltersLabel: 'Mostrar filtros',
|
|
19
|
+
toolbarFiltersTooltipHide: 'Ocultar filtros',
|
|
20
|
+
toolbarFiltersTooltipShow: 'Mostrar filtros',
|
|
21
|
+
toolbarFiltersTooltipActive: function toolbarFiltersTooltipActive(count) {
|
|
22
|
+
return count !== 1 ? "".concat(count, " filtros ativos") : "".concat(count, " filtro ativo");
|
|
23
|
+
},
|
|
24
|
+
// Quick filter toolbar field
|
|
25
|
+
toolbarQuickFilterPlaceholder: 'Procurar…',
|
|
26
|
+
toolbarQuickFilterLabel: 'Procurar',
|
|
27
|
+
toolbarQuickFilterDeleteIconLabel: 'Claro',
|
|
28
|
+
// Export selector toolbar button text
|
|
29
|
+
toolbarExport: 'Exportar',
|
|
30
|
+
toolbarExportLabel: 'Exportar',
|
|
31
|
+
toolbarExportCSV: 'Baixar como CSV',
|
|
32
|
+
toolbarExportPrint: 'Imprimir',
|
|
33
|
+
toolbarExportExcel: 'Baixe como Excel',
|
|
34
|
+
// Columns panel text
|
|
35
|
+
columnsPanelTextFieldLabel: 'Encontrar coluna',
|
|
36
|
+
columnsPanelTextFieldPlaceholder: 'Título da coluna',
|
|
37
|
+
columnsPanelDragIconLabel: 'Reordenar coluna',
|
|
38
|
+
columnsPanelShowAllButton: 'Mostre tudo',
|
|
39
|
+
columnsPanelHideAllButton: 'Esconda tudo',
|
|
40
|
+
// Filter panel text
|
|
41
|
+
filterPanelAddFilter: 'Adicionar filtro',
|
|
42
|
+
filterPanelRemoveAll: 'Deletar tudo',
|
|
43
|
+
filterPanelDeleteIconLabel: 'Excluir',
|
|
44
|
+
filterPanelLogicOperator: 'Operador lógico',
|
|
45
|
+
filterPanelOperator: 'Operador',
|
|
46
|
+
filterPanelOperatorAnd: 'E',
|
|
47
|
+
filterPanelOperatorOr: 'Ou',
|
|
48
|
+
filterPanelColumns: 'Colunas',
|
|
49
|
+
filterPanelInputLabel: 'Valor',
|
|
50
|
+
filterPanelInputPlaceholder: 'Valor do filtro',
|
|
51
|
+
// Filter operators text
|
|
52
|
+
filterOperatorContains: 'contém',
|
|
53
|
+
filterOperatorEquals: 'é igual a',
|
|
54
|
+
filterOperatorStartsWith: 'começa com',
|
|
55
|
+
filterOperatorEndsWith: 'termina com',
|
|
56
|
+
filterOperatorIs: 'é',
|
|
57
|
+
filterOperatorNot: 'não é',
|
|
58
|
+
filterOperatorAfter: 'está depois',
|
|
59
|
+
filterOperatorOnOrAfter: 'está ligado ou depois',
|
|
60
|
+
filterOperatorBefore: 'é antes',
|
|
61
|
+
filterOperatorOnOrBefore: 'está ligado ou antes',
|
|
62
|
+
filterOperatorIsEmpty: 'está vazia',
|
|
63
|
+
filterOperatorIsNotEmpty: 'não está vazio',
|
|
64
|
+
filterOperatorIsAnyOf: 'é qualquer um',
|
|
65
|
+
'filterOperator=': '=',
|
|
66
|
+
'filterOperator!=': '!=',
|
|
67
|
+
'filterOperator>': '>',
|
|
68
|
+
'filterOperator>=': '>=',
|
|
69
|
+
'filterOperator<': '<',
|
|
70
|
+
'filterOperator<=': '<=',
|
|
71
|
+
// Header filter operators text
|
|
72
|
+
headerFilterOperatorContains: 'Contém',
|
|
73
|
+
headerFilterOperatorEquals: 'É igual a',
|
|
74
|
+
headerFilterOperatorStartsWith: 'Começa com',
|
|
75
|
+
headerFilterOperatorEndsWith: 'Termina com',
|
|
76
|
+
headerFilterOperatorIs: 'É',
|
|
77
|
+
headerFilterOperatorNot: 'Não é',
|
|
78
|
+
headerFilterOperatorAfter: 'Está depois',
|
|
79
|
+
headerFilterOperatorOnOrAfter: 'Está ligado ou depois',
|
|
80
|
+
headerFilterOperatorBefore: 'É antes',
|
|
81
|
+
headerFilterOperatorOnOrBefore: 'Está ligado ou antes',
|
|
82
|
+
headerFilterOperatorIsEmpty: 'Está vazia',
|
|
83
|
+
headerFilterOperatorIsNotEmpty: 'Não está vazio',
|
|
84
|
+
headerFilterOperatorIsAnyOf: 'Algum',
|
|
85
|
+
'headerFilterOperator=': 'É igual a',
|
|
86
|
+
'headerFilterOperator!=': 'Não é igual',
|
|
87
|
+
'headerFilterOperator>': 'Maior que',
|
|
88
|
+
'headerFilterOperator>=': 'Melhor que ou igual a',
|
|
89
|
+
'headerFilterOperator<': 'Menor que',
|
|
90
|
+
'headerFilterOperator<=': 'Menos que ou igual a',
|
|
91
|
+
// Filter values text
|
|
92
|
+
filterValueAny: 'qualquer',
|
|
93
|
+
filterValueTrue: 'verdadeiro',
|
|
94
|
+
filterValueFalse: 'falso',
|
|
95
|
+
// Column menu text
|
|
96
|
+
columnMenuLabel: 'Cardápio',
|
|
97
|
+
columnMenuShowColumns: 'Mostrar colunas',
|
|
98
|
+
columnMenuManageColumns: 'Gerenciar colunas',
|
|
99
|
+
columnMenuFilter: 'Filtro',
|
|
100
|
+
columnMenuHideColumn: 'Ocultar coluna',
|
|
101
|
+
columnMenuUnsort: 'Desclassificar',
|
|
102
|
+
columnMenuSortAsc: 'Classificar por ordem crescente',
|
|
103
|
+
columnMenuSortDesc: 'Classificar por ordem decrescente',
|
|
104
|
+
// Column header text
|
|
105
|
+
columnHeaderFiltersTooltipActive: function columnHeaderFiltersTooltipActive(count) {
|
|
106
|
+
return count !== 1 ? "".concat(count, " filtros ativos") : "".concat(count, " filtro ativo");
|
|
107
|
+
},
|
|
108
|
+
columnHeaderFiltersLabel: 'Mostrar filtros',
|
|
109
|
+
columnHeaderSortIconLabel: 'Organizar',
|
|
110
|
+
// Rows selected footer text
|
|
111
|
+
footerRowSelected: function footerRowSelected(count) {
|
|
112
|
+
return count !== 1 ? "".concat(count.toLocaleString(), " linhas selecionadas") : "".concat(count.toLocaleString(), " linha selecionada");
|
|
113
|
+
},
|
|
114
|
+
// Total row amount footer text
|
|
115
|
+
footerTotalRows: 'Total de linhas:',
|
|
116
|
+
// Total visible row amount footer text
|
|
117
|
+
footerTotalVisibleRows: function footerTotalVisibleRows(visibleCount, totalCount) {
|
|
118
|
+
return "".concat(visibleCount.toLocaleString(), " de ").concat(totalCount.toLocaleString());
|
|
119
|
+
},
|
|
120
|
+
// Checkbox selection text
|
|
121
|
+
checkboxSelectionHeaderName: 'Seleção de caixa de seleção',
|
|
122
|
+
checkboxSelectionSelectAllRows: 'Selecione todas as linhas',
|
|
123
|
+
checkboxSelectionUnselectAllRows: 'Desmarque todas as linhas',
|
|
124
|
+
checkboxSelectionSelectRow: 'Selecione a linha',
|
|
125
|
+
checkboxSelectionUnselectRow: 'Desmarcar linha',
|
|
126
|
+
// Boolean cell text
|
|
127
|
+
booleanCellTrueLabel: 'sim',
|
|
128
|
+
booleanCellFalseLabel: 'não',
|
|
129
|
+
// Actions cell more text
|
|
130
|
+
actionsCellMore: 'mais',
|
|
131
|
+
// Column pinning text
|
|
132
|
+
pinToLeft: 'Fixar à esquerda',
|
|
133
|
+
pinToRight: 'Fixar à direita',
|
|
134
|
+
unpin: 'Liberar',
|
|
135
|
+
// Tree Data
|
|
136
|
+
treeDataGroupingHeaderName: 'Group',
|
|
137
|
+
treeDataExpand: 'veja crianças',
|
|
138
|
+
treeDataCollapse: 'esconder crianças',
|
|
139
|
+
// Grouping columns
|
|
140
|
+
groupingColumnHeaderName: 'Grupo',
|
|
141
|
+
groupColumn: function groupColumn(name) {
|
|
142
|
+
return "Agrupar por ".concat(name);
|
|
143
|
+
},
|
|
144
|
+
unGroupColumn: function unGroupColumn(name) {
|
|
145
|
+
return "Pare de agrupar por ".concat(name);
|
|
146
|
+
},
|
|
147
|
+
// Master/detail
|
|
148
|
+
detailPanelToggle: 'Alternar painel de detalhes',
|
|
149
|
+
expandDetailPanel: 'Expandir',
|
|
150
|
+
collapseDetailPanel: 'Colapso',
|
|
151
|
+
// Row reordering text
|
|
152
|
+
rowReorderingHeaderName: 'Reordenação de linhas',
|
|
153
|
+
// Aggregation
|
|
154
|
+
aggregationMenuItemHeader: 'Agregação',
|
|
155
|
+
aggregationFunctionLabelSum: 'soma',
|
|
156
|
+
aggregationFunctionLabelAvg: 'média',
|
|
157
|
+
aggregationFunctionLabelMin: 'min',
|
|
158
|
+
aggregationFunctionLabelMax: 'máx.',
|
|
159
|
+
aggregationFunctionLabelSize: 'tamanho'
|
|
160
|
+
};
|
|
161
|
+
export var ptPT = getGridLocalization(ptPTGrid, ptPTCore);
|