@mui/x-data-grid 6.18.7 → 6.19.2
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 +106 -0
- package/components/GridPagination.d.ts +4 -4
- package/components/GridRow.js +0 -1
- package/components/base/GridOverlays.js +0 -2
- package/components/cell/GridActionsCell.js +0 -1
- package/components/cell/GridActionsCellItem.d.ts +5 -5
- package/components/panel/GridPanel.d.ts +3 -3
- package/components/toolbar/GridToolbarQuickFilter.d.ts +4 -0
- package/components/toolbar/GridToolbarQuickFilter.js +4 -0
- package/components/virtualization/GridVirtualScroller.js +0 -1
- package/hooks/features/editing/useGridCellEditing.js +0 -2
- package/hooks/features/editing/useGridRowEditing.js +0 -1
- package/hooks/features/rows/gridRowsUtils.js +4 -1
- package/hooks/features/rows/useGridRowsMeta.js +0 -1
- package/hooks/features/virtualization/useGridVirtualScroller.js +0 -1
- package/index.js +1 -1
- package/legacy/colDef/gridDefaultColumnTypes.js +2 -3
- package/legacy/components/GridPagination.js +3 -4
- package/legacy/components/GridRow.js +0 -1
- package/legacy/components/base/GridOverlays.js +0 -2
- package/legacy/components/cell/GridActionsCell.js +0 -1
- package/legacy/components/columnHeaders/GridColumnHeadersInner.js +4 -5
- package/legacy/components/containers/GridRootStyles.js +69 -70
- package/legacy/components/toolbar/GridToolbarQuickFilter.js +8 -5
- package/legacy/components/virtualization/GridVirtualScroller.js +0 -1
- package/legacy/hooks/features/editing/useGridCellEditing.js +0 -2
- package/legacy/hooks/features/editing/useGridRowEditing.js +0 -1
- package/legacy/hooks/features/rows/gridRowsUtils.js +4 -1
- package/legacy/hooks/features/rows/useGridParamsApi.js +4 -5
- package/legacy/hooks/features/rows/useGridRowsMeta.js +0 -1
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +0 -1
- package/legacy/index.js +1 -1
- package/legacy/locales/coreLocales.js +1 -0
- package/legacy/locales/hrHR.js +161 -0
- package/legacy/locales/index.js +4 -1
- package/legacy/locales/plPL.js +0 -1
- package/legacy/locales/ptPT.js +161 -0
- package/legacy/locales/zhHK.js +161 -0
- package/legacy/utils/utils.js +0 -1
- package/locales/coreLocales.js +1 -0
- 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/plPL.js +0 -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/modern/components/GridRow.js +0 -1
- package/modern/components/base/GridOverlays.js +0 -2
- package/modern/components/cell/GridActionsCell.js +0 -1
- package/modern/components/toolbar/GridToolbarQuickFilter.js +4 -0
- package/modern/components/virtualization/GridVirtualScroller.js +0 -1
- package/modern/hooks/features/editing/useGridCellEditing.js +0 -2
- package/modern/hooks/features/editing/useGridRowEditing.js +0 -1
- package/modern/hooks/features/rows/gridRowsUtils.js +4 -1
- package/modern/hooks/features/rows/useGridRowsMeta.js +0 -1
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +0 -1
- package/modern/index.js +1 -1
- package/modern/locales/coreLocales.js +1 -0
- package/modern/locales/hrHR.js +149 -0
- package/modern/locales/index.js +4 -1
- package/modern/locales/plPL.js +0 -1
- package/modern/locales/ptPT.js +149 -0
- package/modern/locales/zhHK.js +149 -0
- package/modern/utils/utils.js +0 -1
- package/node/components/GridRow.js +0 -1
- package/node/components/base/GridOverlays.js +0 -2
- package/node/components/cell/GridActionsCell.js +0 -1
- package/node/components/toolbar/GridToolbarQuickFilter.js +4 -0
- package/node/components/virtualization/GridVirtualScroller.js +0 -1
- package/node/hooks/features/editing/useGridCellEditing.js +0 -2
- package/node/hooks/features/editing/useGridRowEditing.js +0 -1
- package/node/hooks/features/rows/gridRowsUtils.js +4 -1
- package/node/hooks/features/rows/useGridRowsMeta.js +0 -1
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +0 -1
- package/node/index.js +1 -1
- package/node/locales/hrHR.js +155 -0
- package/node/locales/index.js +33 -0
- package/node/locales/plPL.js +0 -1
- package/node/locales/ptPT.js +155 -0
- package/node/locales/zhHK.js +155 -0
- package/node/utils/utils.js +0 -1
- package/package.json +1 -1
- package/utils/utils.js +0 -1
package/locales/index.d.ts
CHANGED
package/locales/index.js
CHANGED
package/locales/plPL.js
CHANGED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const ptPT: import("../utils/getGridLocalization").Localization;
|
package/locales/ptPT.js
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { ptPT as ptPTCore } from '@mui/material/locale';
|
|
2
|
+
import { getGridLocalization } from '../utils/getGridLocalization';
|
|
3
|
+
const 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: count => count !== 1 ? `${count} filtros ativos` : `${count} filtro ativo`,
|
|
22
|
+
// Quick filter toolbar field
|
|
23
|
+
toolbarQuickFilterPlaceholder: 'Procurar…',
|
|
24
|
+
toolbarQuickFilterLabel: 'Procurar',
|
|
25
|
+
toolbarQuickFilterDeleteIconLabel: 'Claro',
|
|
26
|
+
// Export selector toolbar button text
|
|
27
|
+
toolbarExport: 'Exportar',
|
|
28
|
+
toolbarExportLabel: 'Exportar',
|
|
29
|
+
toolbarExportCSV: 'Baixar como CSV',
|
|
30
|
+
toolbarExportPrint: 'Imprimir',
|
|
31
|
+
toolbarExportExcel: 'Baixe como Excel',
|
|
32
|
+
// Columns panel text
|
|
33
|
+
columnsPanelTextFieldLabel: 'Encontrar coluna',
|
|
34
|
+
columnsPanelTextFieldPlaceholder: 'Título da coluna',
|
|
35
|
+
columnsPanelDragIconLabel: 'Reordenar coluna',
|
|
36
|
+
columnsPanelShowAllButton: 'Mostre tudo',
|
|
37
|
+
columnsPanelHideAllButton: 'Esconda tudo',
|
|
38
|
+
// Filter panel text
|
|
39
|
+
filterPanelAddFilter: 'Adicionar filtro',
|
|
40
|
+
filterPanelRemoveAll: 'Deletar tudo',
|
|
41
|
+
filterPanelDeleteIconLabel: 'Excluir',
|
|
42
|
+
filterPanelLogicOperator: 'Operador lógico',
|
|
43
|
+
filterPanelOperator: 'Operador',
|
|
44
|
+
filterPanelOperatorAnd: 'E',
|
|
45
|
+
filterPanelOperatorOr: 'Ou',
|
|
46
|
+
filterPanelColumns: 'Colunas',
|
|
47
|
+
filterPanelInputLabel: 'Valor',
|
|
48
|
+
filterPanelInputPlaceholder: 'Valor do filtro',
|
|
49
|
+
// Filter operators text
|
|
50
|
+
filterOperatorContains: 'contém',
|
|
51
|
+
filterOperatorEquals: 'é igual a',
|
|
52
|
+
filterOperatorStartsWith: 'começa com',
|
|
53
|
+
filterOperatorEndsWith: 'termina com',
|
|
54
|
+
filterOperatorIs: 'é',
|
|
55
|
+
filterOperatorNot: 'não é',
|
|
56
|
+
filterOperatorAfter: 'está depois',
|
|
57
|
+
filterOperatorOnOrAfter: 'está ligado ou depois',
|
|
58
|
+
filterOperatorBefore: 'é antes',
|
|
59
|
+
filterOperatorOnOrBefore: 'está ligado ou antes',
|
|
60
|
+
filterOperatorIsEmpty: 'está vazia',
|
|
61
|
+
filterOperatorIsNotEmpty: 'não está vazio',
|
|
62
|
+
filterOperatorIsAnyOf: 'é qualquer um',
|
|
63
|
+
'filterOperator=': '=',
|
|
64
|
+
'filterOperator!=': '!=',
|
|
65
|
+
'filterOperator>': '>',
|
|
66
|
+
'filterOperator>=': '>=',
|
|
67
|
+
'filterOperator<': '<',
|
|
68
|
+
'filterOperator<=': '<=',
|
|
69
|
+
// Header filter operators text
|
|
70
|
+
headerFilterOperatorContains: 'Contém',
|
|
71
|
+
headerFilterOperatorEquals: 'É igual a',
|
|
72
|
+
headerFilterOperatorStartsWith: 'Começa com',
|
|
73
|
+
headerFilterOperatorEndsWith: 'Termina com',
|
|
74
|
+
headerFilterOperatorIs: 'É',
|
|
75
|
+
headerFilterOperatorNot: 'Não é',
|
|
76
|
+
headerFilterOperatorAfter: 'Está depois',
|
|
77
|
+
headerFilterOperatorOnOrAfter: 'Está ligado ou depois',
|
|
78
|
+
headerFilterOperatorBefore: 'É antes',
|
|
79
|
+
headerFilterOperatorOnOrBefore: 'Está ligado ou antes',
|
|
80
|
+
headerFilterOperatorIsEmpty: 'Está vazia',
|
|
81
|
+
headerFilterOperatorIsNotEmpty: 'Não está vazio',
|
|
82
|
+
headerFilterOperatorIsAnyOf: 'Algum',
|
|
83
|
+
'headerFilterOperator=': 'É igual a',
|
|
84
|
+
'headerFilterOperator!=': 'Não é igual',
|
|
85
|
+
'headerFilterOperator>': 'Maior que',
|
|
86
|
+
'headerFilterOperator>=': 'Melhor que ou igual a',
|
|
87
|
+
'headerFilterOperator<': 'Menor que',
|
|
88
|
+
'headerFilterOperator<=': 'Menos que ou igual a',
|
|
89
|
+
// Filter values text
|
|
90
|
+
filterValueAny: 'qualquer',
|
|
91
|
+
filterValueTrue: 'verdadeiro',
|
|
92
|
+
filterValueFalse: 'falso',
|
|
93
|
+
// Column menu text
|
|
94
|
+
columnMenuLabel: 'Cardápio',
|
|
95
|
+
columnMenuShowColumns: 'Mostrar colunas',
|
|
96
|
+
columnMenuManageColumns: 'Gerenciar colunas',
|
|
97
|
+
columnMenuFilter: 'Filtro',
|
|
98
|
+
columnMenuHideColumn: 'Ocultar coluna',
|
|
99
|
+
columnMenuUnsort: 'Desclassificar',
|
|
100
|
+
columnMenuSortAsc: 'Classificar por ordem crescente',
|
|
101
|
+
columnMenuSortDesc: 'Classificar por ordem decrescente',
|
|
102
|
+
// Column header text
|
|
103
|
+
columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} filtros ativos` : `${count} filtro ativo`,
|
|
104
|
+
columnHeaderFiltersLabel: 'Mostrar filtros',
|
|
105
|
+
columnHeaderSortIconLabel: 'Organizar',
|
|
106
|
+
// Rows selected footer text
|
|
107
|
+
footerRowSelected: count => count !== 1 ? `${count.toLocaleString()} linhas selecionadas` : `${count.toLocaleString()} linha selecionada`,
|
|
108
|
+
// Total row amount footer text
|
|
109
|
+
footerTotalRows: 'Total de linhas:',
|
|
110
|
+
// Total visible row amount footer text
|
|
111
|
+
footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} de ${totalCount.toLocaleString()}`,
|
|
112
|
+
// Checkbox selection text
|
|
113
|
+
checkboxSelectionHeaderName: 'Seleção de caixa de seleção',
|
|
114
|
+
checkboxSelectionSelectAllRows: 'Selecione todas as linhas',
|
|
115
|
+
checkboxSelectionUnselectAllRows: 'Desmarque todas as linhas',
|
|
116
|
+
checkboxSelectionSelectRow: 'Selecione a linha',
|
|
117
|
+
checkboxSelectionUnselectRow: 'Desmarcar linha',
|
|
118
|
+
// Boolean cell text
|
|
119
|
+
booleanCellTrueLabel: 'sim',
|
|
120
|
+
booleanCellFalseLabel: 'não',
|
|
121
|
+
// Actions cell more text
|
|
122
|
+
actionsCellMore: 'mais',
|
|
123
|
+
// Column pinning text
|
|
124
|
+
pinToLeft: 'Fixar à esquerda',
|
|
125
|
+
pinToRight: 'Fixar à direita',
|
|
126
|
+
unpin: 'Liberar',
|
|
127
|
+
// Tree Data
|
|
128
|
+
treeDataGroupingHeaderName: 'Group',
|
|
129
|
+
treeDataExpand: 'veja crianças',
|
|
130
|
+
treeDataCollapse: 'esconder crianças',
|
|
131
|
+
// Grouping columns
|
|
132
|
+
groupingColumnHeaderName: 'Grupo',
|
|
133
|
+
groupColumn: name => `Agrupar por ${name}`,
|
|
134
|
+
unGroupColumn: name => `Pare de agrupar por ${name}`,
|
|
135
|
+
// Master/detail
|
|
136
|
+
detailPanelToggle: 'Alternar painel de detalhes',
|
|
137
|
+
expandDetailPanel: 'Expandir',
|
|
138
|
+
collapseDetailPanel: 'Colapso',
|
|
139
|
+
// Row reordering text
|
|
140
|
+
rowReorderingHeaderName: 'Reordenação de linhas',
|
|
141
|
+
// Aggregation
|
|
142
|
+
aggregationMenuItemHeader: 'Agregação',
|
|
143
|
+
aggregationFunctionLabelSum: 'soma',
|
|
144
|
+
aggregationFunctionLabelAvg: 'média',
|
|
145
|
+
aggregationFunctionLabelMin: 'min',
|
|
146
|
+
aggregationFunctionLabelMax: 'máx.',
|
|
147
|
+
aggregationFunctionLabelSize: 'tamanho'
|
|
148
|
+
};
|
|
149
|
+
export const ptPT = getGridLocalization(ptPTGrid, ptPTCore);
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export declare const zhHK: import("../utils/getGridLocalization").Localization;
|
package/locales/zhHK.js
ADDED
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { zhHK as zhHKCore } from '@mui/material/locale';
|
|
2
|
+
import { getGridLocalization } from '../utils/getGridLocalization';
|
|
3
|
+
const zhHKGrid = {
|
|
4
|
+
// Root
|
|
5
|
+
noRowsLabel: '沒有行',
|
|
6
|
+
noResultsOverlayLabel: '未找到結果。',
|
|
7
|
+
// Density selector toolbar button text
|
|
8
|
+
toolbarDensity: '密度',
|
|
9
|
+
toolbarDensityLabel: '密度',
|
|
10
|
+
toolbarDensityCompact: '袖珍的',
|
|
11
|
+
toolbarDensityStandard: '標準',
|
|
12
|
+
toolbarDensityComfortable: '舒服的',
|
|
13
|
+
// Columns selector toolbar button text
|
|
14
|
+
toolbarColumns: '列',
|
|
15
|
+
toolbarColumnsLabel: '選擇列',
|
|
16
|
+
// Filters toolbar button text
|
|
17
|
+
toolbarFilters: '過濾器',
|
|
18
|
+
toolbarFiltersLabel: '顯示過濾器',
|
|
19
|
+
toolbarFiltersTooltipHide: '隱藏過濾器',
|
|
20
|
+
toolbarFiltersTooltipShow: '顯示過濾器',
|
|
21
|
+
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} 個有效過濾器` : `${count} 個活動過濾器`,
|
|
22
|
+
// Quick filter toolbar field
|
|
23
|
+
toolbarQuickFilterPlaceholder: '搜尋…',
|
|
24
|
+
toolbarQuickFilterLabel: '搜尋',
|
|
25
|
+
toolbarQuickFilterDeleteIconLabel: '清除',
|
|
26
|
+
// Export selector toolbar button text
|
|
27
|
+
toolbarExport: '出口',
|
|
28
|
+
toolbarExportLabel: '出口',
|
|
29
|
+
toolbarExportCSV: '下載為 CSV',
|
|
30
|
+
toolbarExportPrint: '列印',
|
|
31
|
+
toolbarExportExcel: '下載為 Excel',
|
|
32
|
+
// Columns panel text
|
|
33
|
+
columnsPanelTextFieldLabel: '查找欄目',
|
|
34
|
+
columnsPanelTextFieldPlaceholder: '欄目標題',
|
|
35
|
+
columnsPanelDragIconLabel: '重新排序列',
|
|
36
|
+
columnsPanelShowAllButton: '顯示所有',
|
|
37
|
+
columnsPanelHideAllButton: '全部藏起來',
|
|
38
|
+
// Filter panel text
|
|
39
|
+
filterPanelAddFilter: '新增過濾器',
|
|
40
|
+
filterPanelRemoveAll: '移除所有',
|
|
41
|
+
filterPanelDeleteIconLabel: '刪除',
|
|
42
|
+
filterPanelLogicOperator: '邏輯運算符',
|
|
43
|
+
filterPanelOperator: '操作員',
|
|
44
|
+
filterPanelOperatorAnd: '和',
|
|
45
|
+
filterPanelOperatorOr: '或者',
|
|
46
|
+
filterPanelColumns: '列',
|
|
47
|
+
filterPanelInputLabel: '價值',
|
|
48
|
+
filterPanelInputPlaceholder: '過濾值',
|
|
49
|
+
// Filter operators text
|
|
50
|
+
filterOperatorContains: '包含',
|
|
51
|
+
filterOperatorEquals: '等於',
|
|
52
|
+
filterOperatorStartsWith: '以。。開始',
|
|
53
|
+
filterOperatorEndsWith: '以。。結束',
|
|
54
|
+
filterOperatorIs: '是',
|
|
55
|
+
filterOperatorNot: '不是',
|
|
56
|
+
filterOperatorAfter: '是在之後',
|
|
57
|
+
filterOperatorOnOrAfter: '是在或之後',
|
|
58
|
+
filterOperatorBefore: '是在之前',
|
|
59
|
+
filterOperatorOnOrBefore: '是在或之前',
|
|
60
|
+
filterOperatorIsEmpty: '是空的',
|
|
61
|
+
filterOperatorIsNotEmpty: '不為空',
|
|
62
|
+
filterOperatorIsAnyOf: '是以下任一個',
|
|
63
|
+
'filterOperator=': '=',
|
|
64
|
+
'filterOperator!=': '!=',
|
|
65
|
+
'filterOperator>': '>',
|
|
66
|
+
'filterOperator>=': '>=',
|
|
67
|
+
'filterOperator<': '<',
|
|
68
|
+
'filterOperator<=': '<=',
|
|
69
|
+
// Header filter operators text
|
|
70
|
+
headerFilterOperatorContains: '包含',
|
|
71
|
+
headerFilterOperatorEquals: '等於',
|
|
72
|
+
headerFilterOperatorStartsWith: '以。。開始',
|
|
73
|
+
headerFilterOperatorEndsWith: '以。。結束',
|
|
74
|
+
headerFilterOperatorIs: '是',
|
|
75
|
+
headerFilterOperatorNot: '不是',
|
|
76
|
+
headerFilterOperatorAfter: '是在之後',
|
|
77
|
+
headerFilterOperatorOnOrAfter: '是在或之後',
|
|
78
|
+
headerFilterOperatorBefore: '是之前',
|
|
79
|
+
headerFilterOperatorOnOrBefore: '是在或之前',
|
|
80
|
+
headerFilterOperatorIsEmpty: '是空的',
|
|
81
|
+
headerFilterOperatorIsNotEmpty: '不為空',
|
|
82
|
+
headerFilterOperatorIsAnyOf: '是以下任一個',
|
|
83
|
+
'headerFilterOperator=': '等於',
|
|
84
|
+
'headerFilterOperator!=': '不等於',
|
|
85
|
+
'headerFilterOperator>': '比...更棒',
|
|
86
|
+
'headerFilterOperator>=': '大於或等於',
|
|
87
|
+
'headerFilterOperator<': '少於',
|
|
88
|
+
'headerFilterOperator<=': '小於或等於',
|
|
89
|
+
// Filter values text
|
|
90
|
+
filterValueAny: '任何',
|
|
91
|
+
filterValueTrue: '真的',
|
|
92
|
+
filterValueFalse: '錯誤的',
|
|
93
|
+
// Column menu text
|
|
94
|
+
columnMenuLabel: '選單',
|
|
95
|
+
columnMenuShowColumns: '顯示欄目',
|
|
96
|
+
columnMenuManageColumns: '管理欄目',
|
|
97
|
+
columnMenuFilter: '篩選',
|
|
98
|
+
columnMenuHideColumn: '隱藏列',
|
|
99
|
+
columnMenuUnsort: '取消排序',
|
|
100
|
+
columnMenuSortAsc: '按升序排序',
|
|
101
|
+
columnMenuSortDesc: '按降序排序',
|
|
102
|
+
// Column header text
|
|
103
|
+
columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} 個有效過濾器` : `${count} 個活動過濾器`,
|
|
104
|
+
columnHeaderFiltersLabel: '顯示過濾器',
|
|
105
|
+
columnHeaderSortIconLabel: '種類',
|
|
106
|
+
// Rows selected footer text
|
|
107
|
+
footerRowSelected: count => count !== 1 ? `已選擇 ${count.toLocaleString()} 行` : `已選擇 ${count.toLocaleString()} 行`,
|
|
108
|
+
// Total row amount footer text
|
|
109
|
+
footerTotalRows: '總行數:',
|
|
110
|
+
// Total visible row amount footer text
|
|
111
|
+
footerTotalVisibleRows: (visibleCount, totalCount) => `${totalCount.toLocaleString()} 的 ${visibleCount.toLocaleString()}`,
|
|
112
|
+
// Checkbox selection text
|
|
113
|
+
checkboxSelectionHeaderName: '複選框選擇',
|
|
114
|
+
checkboxSelectionSelectAllRows: '選擇所有行',
|
|
115
|
+
checkboxSelectionUnselectAllRows: '取消選擇所有行',
|
|
116
|
+
checkboxSelectionSelectRow: '選擇行',
|
|
117
|
+
checkboxSelectionUnselectRow: '取消選擇行',
|
|
118
|
+
// Boolean cell text
|
|
119
|
+
booleanCellTrueLabel: '是的',
|
|
120
|
+
booleanCellFalseLabel: '不',
|
|
121
|
+
// Actions cell more text
|
|
122
|
+
actionsCellMore: '更多的',
|
|
123
|
+
// Column pinning text
|
|
124
|
+
pinToLeft: '固定到左側',
|
|
125
|
+
pinToRight: '固定到右側',
|
|
126
|
+
unpin: '取消固定',
|
|
127
|
+
// Tree Data
|
|
128
|
+
treeDataGroupingHeaderName: 'Group',
|
|
129
|
+
treeDataExpand: '看看孩子們',
|
|
130
|
+
treeDataCollapse: '隱藏孩子',
|
|
131
|
+
// Grouping columns
|
|
132
|
+
groupingColumnHeaderName: '團體',
|
|
133
|
+
groupColumn: name => `按 ${name} 分組`,
|
|
134
|
+
unGroupColumn: name => `停止以 ${name} 分組`,
|
|
135
|
+
// Master/detail
|
|
136
|
+
detailPanelToggle: '詳細資訊面板切換',
|
|
137
|
+
expandDetailPanel: '擴張',
|
|
138
|
+
collapseDetailPanel: '坍塌',
|
|
139
|
+
// Row reordering text
|
|
140
|
+
rowReorderingHeaderName: '行重新排序',
|
|
141
|
+
// Aggregation
|
|
142
|
+
aggregationMenuItemHeader: '聚合',
|
|
143
|
+
aggregationFunctionLabelSum: '和',
|
|
144
|
+
aggregationFunctionLabelAvg: '平均',
|
|
145
|
+
aggregationFunctionLabelMin: '分分鐘',
|
|
146
|
+
aggregationFunctionLabelMax: '最大限度',
|
|
147
|
+
aggregationFunctionLabelSize: '尺寸'
|
|
148
|
+
};
|
|
149
|
+
export const zhHK = getGridLocalization(zhHKGrid, zhHKCore);
|
|
@@ -31,7 +31,6 @@ const GridOverlayWrapperRoot = styled('div', {
|
|
|
31
31
|
zIndex: overlayType === 'loadingOverlay' ? 5 // Should be above pinned columns, pinned rows, and detail panel
|
|
32
32
|
: 4 // Should be above pinned columns and detail panel
|
|
33
33
|
}));
|
|
34
|
-
|
|
35
34
|
const GridOverlayWrapperInner = styled('div', {
|
|
36
35
|
name: 'MuiDataGrid',
|
|
37
36
|
slot: 'OverlayWrapperInner',
|
|
@@ -62,7 +61,6 @@ function GridOverlayWrapper(props) {
|
|
|
62
61
|
if (rootProps.autoHeight && height === 0) {
|
|
63
62
|
height = getMinimalContentHeight(apiRef, rootProps.rowHeight); // Give room to show the overlay when there no rows.
|
|
64
63
|
}
|
|
65
|
-
|
|
66
64
|
const classes = useUtilityClasses(_extends({}, props, {
|
|
67
65
|
classes: rootProps.classes
|
|
68
66
|
}));
|
|
@@ -126,7 +126,6 @@ function GridActionsCell(props) {
|
|
|
126
126
|
if (newIndex < 0 || newIndex >= numberOfButtons) {
|
|
127
127
|
return; // We're already in the first or last item = do nothing and let the grid listen the event
|
|
128
128
|
}
|
|
129
|
-
|
|
130
129
|
if (newIndex !== focusedButtonIndex) {
|
|
131
130
|
event.preventDefault(); // Prevent scrolling
|
|
132
131
|
event.stopPropagation(); // Don't stop propagation for other keys, e.g. ArrowUp
|
|
@@ -123,12 +123,16 @@ process.env.NODE_ENV !== "production" ? GridToolbarQuickFilter.propTypes = {
|
|
|
123
123
|
* Function responsible for formatting values of quick filter in a string when the model is modified
|
|
124
124
|
* @param {any[]} values The new values passed to the quick filter model
|
|
125
125
|
* @returns {string} The string to display in the text field
|
|
126
|
+
* @default (values: string[]) => values.join(' ')
|
|
126
127
|
*/
|
|
127
128
|
quickFilterFormatter: PropTypes.func,
|
|
128
129
|
/**
|
|
129
130
|
* Function responsible for parsing text input in an array of independent values for quick filtering.
|
|
130
131
|
* @param {string} input The value entered by the user
|
|
131
132
|
* @returns {any[]} The array of value on which quick filter is applied
|
|
133
|
+
* @default (searchText: string) => searchText
|
|
134
|
+
* .split(' ')
|
|
135
|
+
* .filter((word) => word !== '')
|
|
132
136
|
*/
|
|
133
137
|
quickFilterParser: PropTypes.func
|
|
134
138
|
} : void 0;
|
|
@@ -29,7 +29,6 @@ const VirtualScrollerRoot = styled('div', {
|
|
|
29
29
|
},
|
|
30
30
|
zIndex: 0 // See https://github.com/mui/mui-x/issues/10547
|
|
31
31
|
});
|
|
32
|
-
|
|
33
32
|
const GridVirtualScroller = /*#__PURE__*/React.forwardRef(function GridVirtualScroller(props, ref) {
|
|
34
33
|
const rootProps = useGridRootProps();
|
|
35
34
|
const classes = useUtilityClasses(rootProps);
|
|
@@ -81,7 +81,6 @@ export const useGridCellEditing = (apiRef, props) => {
|
|
|
81
81
|
reason = event.shiftKey ? GridCellEditStopReasons.shiftTabKeyDown : GridCellEditStopReasons.tabKeyDown;
|
|
82
82
|
event.preventDefault(); // Prevent going to the next element in the tab sequence
|
|
83
83
|
}
|
|
84
|
-
|
|
85
84
|
if (reason) {
|
|
86
85
|
const newParams = _extends({}, params, {
|
|
87
86
|
reason
|
|
@@ -175,7 +174,6 @@ export const useGridCellEditing = (apiRef, props) => {
|
|
|
175
174
|
if (props.cellModesModel && isNewModelDifferentFromProp) {
|
|
176
175
|
return; // The prop always win
|
|
177
176
|
}
|
|
178
|
-
|
|
179
177
|
setCellModesModel(newModel);
|
|
180
178
|
cellModesModelRef.current = newModel;
|
|
181
179
|
apiRef.current.publishEvent('cellModesModelChange', newModel);
|
|
@@ -239,7 +239,6 @@ export const useGridRowEditing = (apiRef, props) => {
|
|
|
239
239
|
if (props.rowModesModel && isNewModelDifferentFromProp) {
|
|
240
240
|
return; // The prop always win
|
|
241
241
|
}
|
|
242
|
-
|
|
243
242
|
setRowModesModel(newModel);
|
|
244
243
|
rowModesModelRef.current = newModel;
|
|
245
244
|
apiRef.current.publishEvent('rowModesModelChange', newModel);
|
|
@@ -131,7 +131,10 @@ export const getTreeNodeDescendants = (tree, parentId, skipAutoGeneratedRows) =>
|
|
|
131
131
|
if (!skipAutoGeneratedRows || !isAutoGeneratedRow(tree[child])) {
|
|
132
132
|
validDescendants.push(child);
|
|
133
133
|
}
|
|
134
|
-
|
|
134
|
+
const childDescendants = getTreeNodeDescendants(tree, child, skipAutoGeneratedRows);
|
|
135
|
+
for (let j = 0; j < childDescendants.length; j += 1) {
|
|
136
|
+
validDescendants.push(childDescendants[j]);
|
|
137
|
+
}
|
|
135
138
|
}
|
|
136
139
|
if (!skipAutoGeneratedRows && node.footerId != null) {
|
|
137
140
|
validDescendants.push(node.footerId);
|
|
@@ -550,7 +550,6 @@ export const useGridVirtualScroller = props => {
|
|
|
550
550
|
if (rootProps.autoHeight && currentPage.rows.length === 0) {
|
|
551
551
|
size.height = getMinimalContentHeight(apiRef, rootProps.rowHeight); // Give room to show the overlay when there no rows.
|
|
552
552
|
}
|
|
553
|
-
|
|
554
553
|
return size;
|
|
555
554
|
}, [apiRef, rootRef, columnsTotalWidth, rowsMeta.currentPageTotalHeight, needsHorizontalScrollbar, rootProps.autoHeight, rootProps.rowHeight, currentPage.rows.length]);
|
|
556
555
|
React.useEffect(() => {
|
package/modern/index.js
CHANGED
|
@@ -3,6 +3,7 @@
|
|
|
3
3
|
// This allows not to bump the minimal version of `@mui/material` in peerDependencies which results
|
|
4
4
|
// in broader compatibility between the packages.
|
|
5
5
|
// See https://github.com/mui/mui-x/pull/7646#issuecomment-1404605556 for additional context.
|
|
6
|
+
|
|
6
7
|
export const beBYCore = {
|
|
7
8
|
components: {
|
|
8
9
|
MuiTablePagination: {
|
|
@@ -0,0 +1,149 @@
|
|
|
1
|
+
import { hrHR as hrHRCore } from '@mui/material/locale';
|
|
2
|
+
import { getGridLocalization } from '../utils/getGridLocalization';
|
|
3
|
+
const 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: count => count !== 1 ? `${count} aktivnih filtara` : `${count} aktivni filter`,
|
|
22
|
+
// Quick filter toolbar field
|
|
23
|
+
toolbarQuickFilterPlaceholder: 'Traži…',
|
|
24
|
+
toolbarQuickFilterLabel: 'traži',
|
|
25
|
+
toolbarQuickFilterDeleteIconLabel: 'Čisto',
|
|
26
|
+
// Export selector toolbar button text
|
|
27
|
+
toolbarExport: 'Izvoz',
|
|
28
|
+
toolbarExportLabel: 'Izvoz',
|
|
29
|
+
toolbarExportCSV: 'Preuzmi kao CSV',
|
|
30
|
+
toolbarExportPrint: 'Ispis',
|
|
31
|
+
toolbarExportExcel: 'Preuzmite kao Excel',
|
|
32
|
+
// Columns panel text
|
|
33
|
+
columnsPanelTextFieldLabel: 'Pronađi stupac',
|
|
34
|
+
columnsPanelTextFieldPlaceholder: 'Naslov stupca',
|
|
35
|
+
columnsPanelDragIconLabel: 'Promijeni redoslijed stupca',
|
|
36
|
+
columnsPanelShowAllButton: 'Pokaži sve',
|
|
37
|
+
columnsPanelHideAllButton: 'Sakrij sve',
|
|
38
|
+
// Filter panel text
|
|
39
|
+
filterPanelAddFilter: 'Dodajte filter',
|
|
40
|
+
filterPanelRemoveAll: 'Ukloniti sve',
|
|
41
|
+
filterPanelDeleteIconLabel: 'Izbrisati',
|
|
42
|
+
filterPanelLogicOperator: 'Logički operator',
|
|
43
|
+
filterPanelOperator: 'Operater',
|
|
44
|
+
filterPanelOperatorAnd: 'I',
|
|
45
|
+
filterPanelOperatorOr: 'Ili',
|
|
46
|
+
filterPanelColumns: 'Stupci',
|
|
47
|
+
filterPanelInputLabel: 'Vrijednost',
|
|
48
|
+
filterPanelInputPlaceholder: 'Vrijednost filtra',
|
|
49
|
+
// Filter operators text
|
|
50
|
+
filterOperatorContains: 'sadrži',
|
|
51
|
+
filterOperatorEquals: 'jednaki',
|
|
52
|
+
filterOperatorStartsWith: 'počinje sa',
|
|
53
|
+
filterOperatorEndsWith: 'završava sa',
|
|
54
|
+
filterOperatorIs: 'je',
|
|
55
|
+
filterOperatorNot: 'nije',
|
|
56
|
+
filterOperatorAfter: 'je poslije',
|
|
57
|
+
filterOperatorOnOrAfter: 'je na ili poslije',
|
|
58
|
+
filterOperatorBefore: 'je prije',
|
|
59
|
+
filterOperatorOnOrBefore: 'je na ili prije',
|
|
60
|
+
filterOperatorIsEmpty: 'prazno je',
|
|
61
|
+
filterOperatorIsNotEmpty: 'nije prazna',
|
|
62
|
+
filterOperatorIsAnyOf: 'je bilo koji od',
|
|
63
|
+
'filterOperator=': '=',
|
|
64
|
+
'filterOperator!=': '!=',
|
|
65
|
+
'filterOperator>': '>',
|
|
66
|
+
'filterOperator>=': '>=',
|
|
67
|
+
'filterOperator<': '<',
|
|
68
|
+
'filterOperator<=': '<=',
|
|
69
|
+
// Header filter operators text
|
|
70
|
+
headerFilterOperatorContains: 'Sadrži',
|
|
71
|
+
headerFilterOperatorEquals: 'Jednako',
|
|
72
|
+
headerFilterOperatorStartsWith: 'Počinje sa',
|
|
73
|
+
headerFilterOperatorEndsWith: 'Završava s',
|
|
74
|
+
headerFilterOperatorIs: 'Je',
|
|
75
|
+
headerFilterOperatorNot: 'Nije',
|
|
76
|
+
headerFilterOperatorAfter: 'Je poslije',
|
|
77
|
+
headerFilterOperatorOnOrAfter: 'Je uključeno ili poslije',
|
|
78
|
+
headerFilterOperatorBefore: 'Je li prije',
|
|
79
|
+
headerFilterOperatorOnOrBefore: 'Uključeno je ili prije',
|
|
80
|
+
headerFilterOperatorIsEmpty: 'Prazno je',
|
|
81
|
+
headerFilterOperatorIsNotEmpty: 'Nije prazna',
|
|
82
|
+
headerFilterOperatorIsAnyOf: 'Je li bilo koji od',
|
|
83
|
+
'headerFilterOperator=': 'Jednako',
|
|
84
|
+
'headerFilterOperator!=': 'Nije jednako',
|
|
85
|
+
'headerFilterOperator>': 'Veći od',
|
|
86
|
+
'headerFilterOperator>=': 'Veće ili jednako',
|
|
87
|
+
'headerFilterOperator<': 'Manje od',
|
|
88
|
+
'headerFilterOperator<=': 'Manje od ili jednako',
|
|
89
|
+
// Filter values text
|
|
90
|
+
filterValueAny: 'bilo koji',
|
|
91
|
+
filterValueTrue: 'pravi',
|
|
92
|
+
filterValueFalse: 'lažno',
|
|
93
|
+
// Column menu text
|
|
94
|
+
columnMenuLabel: 'Jelovnik ',
|
|
95
|
+
columnMenuShowColumns: 'Prikaži stupce',
|
|
96
|
+
columnMenuManageColumns: 'Upravljanje stupcima',
|
|
97
|
+
columnMenuFilter: 'filtar',
|
|
98
|
+
columnMenuHideColumn: 'Sakrij stupac',
|
|
99
|
+
columnMenuUnsort: 'Poništi sortiranje',
|
|
100
|
+
columnMenuSortAsc: 'Poredaj uzlazno',
|
|
101
|
+
columnMenuSortDesc: 'Poredaj silaznim redom',
|
|
102
|
+
// Column header text
|
|
103
|
+
columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} aktivnih filtara` : `${count} aktivni filter`,
|
|
104
|
+
columnHeaderFiltersLabel: 'Prikaži filtre',
|
|
105
|
+
columnHeaderSortIconLabel: 'Vrsta',
|
|
106
|
+
// Rows selected footer text
|
|
107
|
+
footerRowSelected: count => count !== 1 ? `Odabrano je ${count.toLocaleString()} redaka` : `${count.toLocaleString()} redak odabran`,
|
|
108
|
+
// Total row amount footer text
|
|
109
|
+
footerTotalRows: 'Ukupno redaka:',
|
|
110
|
+
// Total visible row amount footer text
|
|
111
|
+
footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} od ${totalCount.toLocaleString()}`,
|
|
112
|
+
// Checkbox selection text
|
|
113
|
+
checkboxSelectionHeaderName: 'Odabir potvrdnog okvira',
|
|
114
|
+
checkboxSelectionSelectAllRows: 'Odaberite sve retke',
|
|
115
|
+
checkboxSelectionUnselectAllRows: 'Poništi odabir svih redaka',
|
|
116
|
+
checkboxSelectionSelectRow: 'Odaberite red',
|
|
117
|
+
checkboxSelectionUnselectRow: 'Poništi odabir retka',
|
|
118
|
+
// Boolean cell text
|
|
119
|
+
booleanCellTrueLabel: 'Da',
|
|
120
|
+
booleanCellFalseLabel: 'Ne',
|
|
121
|
+
// Actions cell more text
|
|
122
|
+
actionsCellMore: 'više',
|
|
123
|
+
// Column pinning text
|
|
124
|
+
pinToLeft: 'Prikvači lijevo',
|
|
125
|
+
pinToRight: 'Prikvači desno',
|
|
126
|
+
unpin: 'Otkvači',
|
|
127
|
+
// Tree Data
|
|
128
|
+
treeDataGroupingHeaderName: 'Group',
|
|
129
|
+
treeDataExpand: 'vidjeti djecu',
|
|
130
|
+
treeDataCollapse: 'sakriti djecu',
|
|
131
|
+
// Grouping columns
|
|
132
|
+
groupingColumnHeaderName: 'Skupina',
|
|
133
|
+
groupColumn: name => `Grupiraj prema ${name}`,
|
|
134
|
+
unGroupColumn: name => `Zaustavi grupiranje prema ${name}`,
|
|
135
|
+
// Master/detail
|
|
136
|
+
detailPanelToggle: 'Prebacivanje ploče s detaljima',
|
|
137
|
+
expandDetailPanel: 'Proširiti',
|
|
138
|
+
collapseDetailPanel: 'Kolaps',
|
|
139
|
+
// Row reordering text
|
|
140
|
+
rowReorderingHeaderName: 'Promjena redoslijeda',
|
|
141
|
+
// Aggregation
|
|
142
|
+
aggregationMenuItemHeader: 'Agregacija',
|
|
143
|
+
aggregationFunctionLabelSum: 'iznos',
|
|
144
|
+
aggregationFunctionLabelAvg: 'prosj',
|
|
145
|
+
aggregationFunctionLabelMin: 'min',
|
|
146
|
+
aggregationFunctionLabelMax: 'max',
|
|
147
|
+
aggregationFunctionLabelSize: 'veličina'
|
|
148
|
+
};
|
|
149
|
+
export const hrHR = getGridLocalization(hrHRGrid, hrHRCore);
|
package/modern/locales/index.js
CHANGED