@mui/x-data-grid 8.13.0 → 8.14.0
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 +171 -1
- package/esm/hooks/features/columnGrouping/gridColumnGroupsUtils.d.ts +3 -2
- package/esm/hooks/features/columnGrouping/gridColumnGroupsUtils.js +34 -0
- package/esm/hooks/features/columnGrouping/useGridColumnGrouping.js +1 -34
- package/esm/hooks/features/dataSource/useGridDataSourceBase.js +7 -5
- package/esm/hooks/features/dataSource/utils.js +2 -4
- package/esm/hooks/features/rows/useGridRows.js +4 -4
- package/esm/index.js +1 -1
- package/esm/locales/ptBR.js +117 -128
- package/hooks/features/columnGrouping/gridColumnGroupsUtils.d.ts +3 -2
- package/hooks/features/columnGrouping/gridColumnGroupsUtils.js +37 -1
- package/hooks/features/columnGrouping/useGridColumnGrouping.js +3 -36
- package/hooks/features/dataSource/useGridDataSourceBase.js +7 -5
- package/hooks/features/dataSource/utils.js +2 -4
- package/hooks/features/rows/useGridRows.js +4 -4
- package/index.js +1 -1
- package/locales/ptBR.js +117 -128
- package/package.json +5 -5
package/locales/ptBR.js
CHANGED
|
@@ -9,10 +9,9 @@ const ptBRGrid = {
|
|
|
9
9
|
// Root
|
|
10
10
|
noRowsLabel: 'Nenhuma linha',
|
|
11
11
|
noResultsOverlayLabel: 'Nenhum resultado encontrado.',
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
12
|
+
noColumnsOverlayLabel: 'Nenhuma coluna',
|
|
13
|
+
noColumnsOverlayManageColumns: 'Gerenciar colunas',
|
|
14
|
+
emptyPivotOverlayLabel: 'Adicionar campos às linhas, colunas e valores para criar uma tabela dinâmica',
|
|
16
15
|
// Density selector toolbar button text
|
|
17
16
|
toolbarDensity: 'Densidade',
|
|
18
17
|
toolbarDensityLabel: 'Densidade',
|
|
@@ -27,7 +26,7 @@ const ptBRGrid = {
|
|
|
27
26
|
toolbarFiltersLabel: 'Exibir filtros',
|
|
28
27
|
toolbarFiltersTooltipHide: 'Ocultar filtros',
|
|
29
28
|
toolbarFiltersTooltipShow: 'Exibir filtros',
|
|
30
|
-
toolbarFiltersTooltipActive: count =>
|
|
29
|
+
toolbarFiltersTooltipActive: count => count !== 1 ? `${count} filtros ativos` : `${count} filtro ativo`,
|
|
31
30
|
// Quick filter toolbar field
|
|
32
31
|
toolbarQuickFilterPlaceholder: 'Procurar…',
|
|
33
32
|
toolbarQuickFilterLabel: 'Procurar',
|
|
@@ -39,14 +38,11 @@ const ptBRGrid = {
|
|
|
39
38
|
toolbarExportPrint: 'Imprimir',
|
|
40
39
|
toolbarExportExcel: 'Baixar como Excel',
|
|
41
40
|
// Toolbar pivot button
|
|
42
|
-
|
|
43
|
-
|
|
41
|
+
toolbarPivot: 'Pivotar',
|
|
44
42
|
// Toolbar charts button
|
|
45
|
-
|
|
46
|
-
|
|
43
|
+
toolbarCharts: 'Gráficos',
|
|
47
44
|
// Toolbar AI Assistant button
|
|
48
|
-
|
|
49
|
-
|
|
45
|
+
toolbarAssistant: 'Assistente de IA',
|
|
50
46
|
// Columns management text
|
|
51
47
|
columnsManagementSearchTitle: 'Buscar',
|
|
52
48
|
columnsManagementNoColumns: 'Nenhuma coluna',
|
|
@@ -108,28 +104,26 @@ const ptBRGrid = {
|
|
|
108
104
|
'headerFilterOperator>=': 'Maior que ou igual a',
|
|
109
105
|
'headerFilterOperator<': 'Menor que',
|
|
110
106
|
'headerFilterOperator<=': 'Menor que ou igual a',
|
|
111
|
-
|
|
112
|
-
|
|
107
|
+
headerFilterClear: 'Limpar filtro',
|
|
113
108
|
// Filter values text
|
|
114
109
|
filterValueAny: 'qualquer',
|
|
115
110
|
filterValueTrue: 'verdadeiro',
|
|
116
111
|
filterValueFalse: 'falso',
|
|
117
112
|
// Column menu text
|
|
118
113
|
columnMenuLabel: 'Menu',
|
|
119
|
-
|
|
114
|
+
columnMenuAriaLabel: columnName => `menu da coluna ${columnName}`,
|
|
120
115
|
columnMenuShowColumns: 'Exibir colunas',
|
|
121
116
|
columnMenuManageColumns: 'Gerir colunas',
|
|
122
117
|
columnMenuFilter: 'Filtrar',
|
|
123
|
-
columnMenuHideColumn: 'Ocultar',
|
|
118
|
+
columnMenuHideColumn: 'Ocultar coluna',
|
|
124
119
|
columnMenuUnsort: 'Desfazer ordenação',
|
|
125
120
|
columnMenuSortAsc: 'Ordenar do menor para o maior',
|
|
126
121
|
columnMenuSortDesc: 'Ordenar do maior para o menor',
|
|
127
|
-
|
|
128
|
-
|
|
129
|
-
|
|
122
|
+
columnMenuManagePivot: 'Gerenciar pivot',
|
|
123
|
+
columnMenuManageCharts: 'Gerenciar gráficos',
|
|
130
124
|
// Column header text
|
|
131
|
-
columnHeaderFiltersTooltipActive: count =>
|
|
132
|
-
columnHeaderFiltersLabel: 'Exibir
|
|
125
|
+
columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} filtros ativos` : `${count} filtro ativo`,
|
|
126
|
+
columnHeaderFiltersLabel: 'Exibir filtros',
|
|
133
127
|
columnHeaderSortIconLabel: 'Ordenar',
|
|
134
128
|
// Rows selected footer text
|
|
135
129
|
footerRowSelected: count => count !== 1 ? `${count.toLocaleString()} linhas selecionadas` : `${count.toLocaleString()} linha selecionada`,
|
|
@@ -138,9 +132,9 @@ const ptBRGrid = {
|
|
|
138
132
|
// Total visible row amount footer text
|
|
139
133
|
footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} de ${totalCount.toLocaleString()}`,
|
|
140
134
|
// Checkbox selection text
|
|
141
|
-
checkboxSelectionHeaderName: '
|
|
142
|
-
checkboxSelectionSelectAllRows: 'Selecionar todas linhas',
|
|
143
|
-
checkboxSelectionUnselectAllRows: 'Deselecionar todas linhas',
|
|
135
|
+
checkboxSelectionHeaderName: 'Caixa de seleção',
|
|
136
|
+
checkboxSelectionSelectAllRows: 'Selecionar todas as linhas',
|
|
137
|
+
checkboxSelectionUnselectAllRows: 'Deselecionar todas as linhas',
|
|
144
138
|
checkboxSelectionSelectRow: 'Selecionar linha',
|
|
145
139
|
checkboxSelectionUnselectRow: 'Deselecionar linha',
|
|
146
140
|
// Boolean cell text
|
|
@@ -155,7 +149,7 @@ const ptBRGrid = {
|
|
|
155
149
|
// Tree Data
|
|
156
150
|
treeDataGroupingHeaderName: 'Grupo',
|
|
157
151
|
treeDataExpand: 'mostrar filhos',
|
|
158
|
-
treeDataCollapse: '
|
|
152
|
+
treeDataCollapse: 'ocultar filhos',
|
|
159
153
|
// Grouping columns
|
|
160
154
|
groupingColumnHeaderName: 'Grupo',
|
|
161
155
|
groupColumn: name => `Agrupar por ${name}`,
|
|
@@ -163,21 +157,21 @@ const ptBRGrid = {
|
|
|
163
157
|
// Master/detail
|
|
164
158
|
detailPanelToggle: 'Painel de detalhes',
|
|
165
159
|
expandDetailPanel: 'Expandir',
|
|
166
|
-
collapseDetailPanel: '
|
|
160
|
+
collapseDetailPanel: 'Recolher',
|
|
167
161
|
// Pagination
|
|
168
162
|
paginationRowsPerPage: 'Linhas por página:',
|
|
169
|
-
|
|
170
|
-
|
|
171
|
-
|
|
172
|
-
|
|
173
|
-
|
|
174
|
-
|
|
175
|
-
|
|
176
|
-
|
|
177
|
-
|
|
178
|
-
|
|
179
|
-
|
|
180
|
-
|
|
163
|
+
paginationDisplayedRows: ({
|
|
164
|
+
from,
|
|
165
|
+
to,
|
|
166
|
+
count,
|
|
167
|
+
estimated
|
|
168
|
+
}) => {
|
|
169
|
+
if (!estimated) {
|
|
170
|
+
return `${from}–${to} de ${count !== -1 ? count : `mais de ${to}`}`;
|
|
171
|
+
}
|
|
172
|
+
const estimatedLabel = estimated && estimated > to ? `cerca de ${estimated}` : `mais de ${to}`;
|
|
173
|
+
return `${from}–${to} de ${count !== -1 ? count : estimatedLabel}`;
|
|
174
|
+
},
|
|
181
175
|
paginationItemAriaLabel: type => {
|
|
182
176
|
if (type === 'first') {
|
|
183
177
|
return 'Ir para a primeira página';
|
|
@@ -195,113 +189,108 @@ const ptBRGrid = {
|
|
|
195
189
|
rowReorderingHeaderName: 'Reorganizar linhas',
|
|
196
190
|
// Aggregation
|
|
197
191
|
aggregationMenuItemHeader: 'Agrupar',
|
|
198
|
-
|
|
192
|
+
aggregationFunctionLabelNone: 'nenhum',
|
|
199
193
|
aggregationFunctionLabelSum: 'soma',
|
|
200
194
|
aggregationFunctionLabelAvg: 'média',
|
|
201
195
|
aggregationFunctionLabelMin: 'mín',
|
|
202
196
|
aggregationFunctionLabelMax: 'máx',
|
|
203
197
|
aggregationFunctionLabelSize: 'tamanho',
|
|
204
198
|
// Pivot panel
|
|
205
|
-
|
|
206
|
-
|
|
207
|
-
|
|
208
|
-
|
|
209
|
-
|
|
210
|
-
|
|
211
|
-
|
|
212
|
-
|
|
213
|
-
|
|
214
|
-
|
|
215
|
-
|
|
216
|
-
|
|
217
|
-
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
|
|
225
|
-
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
|
|
229
|
-
|
|
230
|
-
|
|
231
|
-
|
|
232
|
-
|
|
199
|
+
pivotToggleLabel: 'Pivot',
|
|
200
|
+
pivotRows: 'Linhas',
|
|
201
|
+
pivotColumns: 'Colunas',
|
|
202
|
+
pivotValues: 'Valores',
|
|
203
|
+
pivotCloseButton: 'Fechar configurações de pivot',
|
|
204
|
+
pivotSearchButton: 'Pesquisar campos',
|
|
205
|
+
pivotSearchControlPlaceholder: 'Pesquisar campos',
|
|
206
|
+
pivotSearchControlLabel: 'Pesquisar campos',
|
|
207
|
+
pivotSearchControlClear: 'Limpar pesquisa',
|
|
208
|
+
pivotNoFields: 'Nenhum campo',
|
|
209
|
+
pivotMenuMoveUp: 'Mover para cima',
|
|
210
|
+
pivotMenuMoveDown: 'Mover para baixo',
|
|
211
|
+
pivotMenuMoveToTop: 'Mover para o topo',
|
|
212
|
+
pivotMenuMoveToBottom: 'Mover para a parte inferior',
|
|
213
|
+
pivotMenuRows: 'Linhas',
|
|
214
|
+
pivotMenuColumns: 'Colunas',
|
|
215
|
+
pivotMenuValues: 'Valores',
|
|
216
|
+
pivotMenuOptions: 'Opções de campo',
|
|
217
|
+
pivotMenuAddToRows: 'Adicionar às Linhas',
|
|
218
|
+
pivotMenuAddToColumns: 'Adicionar às Colunas',
|
|
219
|
+
pivotMenuAddToValues: 'Adicionar aos Valores',
|
|
220
|
+
pivotMenuRemove: 'Remover',
|
|
221
|
+
pivotDragToRows: 'Arraste aqui para criar linhas',
|
|
222
|
+
pivotDragToColumns: 'Arraste aqui para criar colunas',
|
|
223
|
+
pivotDragToValues: 'Arraste aqui para criar valores',
|
|
224
|
+
pivotYearColumnHeaderName: '(Ano)',
|
|
225
|
+
pivotQuarterColumnHeaderName: '(Trimestre)',
|
|
233
226
|
// Charts configuration panel
|
|
234
|
-
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
238
|
-
|
|
239
|
-
|
|
240
|
-
|
|
241
|
-
|
|
242
|
-
|
|
243
|
-
|
|
244
|
-
|
|
245
|
-
|
|
246
|
-
|
|
247
|
-
|
|
248
|
-
|
|
249
|
-
|
|
250
|
-
|
|
251
|
-
|
|
252
|
-
|
|
253
|
-
|
|
254
|
-
|
|
255
|
-
|
|
256
|
-
|
|
257
|
-
|
|
258
|
-
|
|
227
|
+
chartsNoCharts: 'Não há gráficos disponíveis',
|
|
228
|
+
chartsChartNotSelected: 'Selecione um tipo de gráfico para configurar suas opções',
|
|
229
|
+
chartsTabChart: 'Gráfico',
|
|
230
|
+
chartsTabFields: 'Campos',
|
|
231
|
+
chartsTabCustomize: 'Personalizar',
|
|
232
|
+
chartsCloseButton: 'Fechar configuração de gráficos',
|
|
233
|
+
chartsSyncButtonLabel: 'Sincronizar gráfico',
|
|
234
|
+
chartsSearchPlaceholder: 'Pesquisar campos',
|
|
235
|
+
chartsSearchLabel: 'Pesquisar campos',
|
|
236
|
+
chartsSearchClear: 'Limpar pesquisa',
|
|
237
|
+
chartsNoFields: 'Nenhum campo',
|
|
238
|
+
chartsFieldBlocked: 'Este campo não pode ser adicionado a nenhuma seção',
|
|
239
|
+
chartsCategories: 'Categorias',
|
|
240
|
+
chartsSeries: 'Séries',
|
|
241
|
+
chartsMenuAddToDimensions: dimensionLabel => `Adicionar a ${dimensionLabel}`,
|
|
242
|
+
chartsMenuAddToValues: valuesLabel => `Adicionar a ${valuesLabel}`,
|
|
243
|
+
chartsMenuMoveUp: 'Mover para cima',
|
|
244
|
+
chartsMenuMoveDown: 'Mover para baixo',
|
|
245
|
+
chartsMenuMoveToTop: 'Mover para o topo',
|
|
246
|
+
chartsMenuMoveToBottom: 'Mover para a parte inferior',
|
|
247
|
+
chartsMenuOptions: 'Opções de campo',
|
|
248
|
+
chartsMenuRemove: 'Remover',
|
|
249
|
+
chartsDragToDimensions: dimensionLabel => `Arraste aqui para usar a coluna como ${dimensionLabel}`,
|
|
250
|
+
chartsDragToValues: valuesLabel => `Arraste aqui para usar a coluna como ${valuesLabel}`,
|
|
259
251
|
// AI Assistant panel
|
|
260
|
-
|
|
261
|
-
|
|
262
|
-
|
|
263
|
-
|
|
264
|
-
|
|
265
|
-
|
|
266
|
-
|
|
252
|
+
aiAssistantPanelTitle: 'Assistente de IA',
|
|
253
|
+
aiAssistantPanelClose: 'Fechar Assistente de IA',
|
|
254
|
+
aiAssistantPanelNewConversation: 'Nova conversa',
|
|
255
|
+
aiAssistantPanelConversationHistory: 'Histórico de conversas',
|
|
256
|
+
aiAssistantPanelEmptyConversation: 'Sem histórico de prompts',
|
|
257
|
+
aiAssistantSuggestions: 'Sugestões',
|
|
267
258
|
// Prompt field
|
|
268
259
|
promptFieldLabel: 'Prompt',
|
|
269
260
|
promptFieldPlaceholder: 'Digite um prompt…',
|
|
270
261
|
promptFieldPlaceholderWithRecording: 'Digite ou grave um prompt…',
|
|
271
262
|
promptFieldPlaceholderListening: 'Ouvindo o prompt…',
|
|
272
|
-
|
|
263
|
+
promptFieldSpeechRecognitionNotSupported: 'O reconhecimento de fala não é suportado neste navegador',
|
|
273
264
|
promptFieldSend: 'Enviar',
|
|
274
265
|
promptFieldRecord: 'Gravar',
|
|
275
|
-
promptFieldStopRecording: 'Parar gravação'
|
|
276
|
-
|
|
266
|
+
promptFieldStopRecording: 'Parar gravação',
|
|
277
267
|
// Prompt
|
|
278
|
-
|
|
279
|
-
|
|
280
|
-
|
|
281
|
-
|
|
268
|
+
promptRerun: 'Executar novamente',
|
|
269
|
+
promptProcessing: 'Processando…',
|
|
270
|
+
promptAppliedChanges: 'Alterações aplicadas',
|
|
282
271
|
// Prompt changes
|
|
283
|
-
|
|
284
|
-
|
|
285
|
-
|
|
286
|
-
|
|
287
|
-
|
|
288
|
-
|
|
289
|
-
|
|
290
|
-
|
|
291
|
-
|
|
292
|
-
|
|
293
|
-
|
|
294
|
-
|
|
295
|
-
|
|
296
|
-
|
|
297
|
-
|
|
298
|
-
|
|
299
|
-
|
|
300
|
-
|
|
301
|
-
|
|
302
|
-
|
|
303
|
-
|
|
304
|
-
|
|
305
|
-
|
|
272
|
+
promptChangeGroupDescription: column => `Agrupar por ${column}`,
|
|
273
|
+
promptChangeAggregationLabel: (column, aggregation) => `${column} (${aggregation})`,
|
|
274
|
+
promptChangeAggregationDescription: (column, aggregation) => `Agregar ${column} (${aggregation})`,
|
|
275
|
+
promptChangeFilterLabel: (column, operator, value) => {
|
|
276
|
+
if (operator === 'is any of') {
|
|
277
|
+
return `${column} é um destes: ${value}`;
|
|
278
|
+
}
|
|
279
|
+
return `${column} ${operator} ${value}`;
|
|
280
|
+
},
|
|
281
|
+
promptChangeFilterDescription: (column, operator, value) => {
|
|
282
|
+
if (operator === 'is any of') {
|
|
283
|
+
return `Filtrar onde ${column} é um destes: ${value}`;
|
|
284
|
+
}
|
|
285
|
+
return `Filtrar onde ${column} ${operator} ${value}`;
|
|
286
|
+
},
|
|
287
|
+
promptChangeSortDescription: (column, direction) => `Classificar por ${column} (${direction})`,
|
|
288
|
+
promptChangePivotEnableLabel: 'Pivotar',
|
|
289
|
+
promptChangePivotEnableDescription: 'Ativar pivotar',
|
|
290
|
+
promptChangePivotColumnsLabel: count => `Colunas (${count})`,
|
|
291
|
+
promptChangePivotColumnsDescription: (column, direction) => `${column}${direction ? ` (${direction})` : ''}`,
|
|
292
|
+
promptChangePivotRowsLabel: count => `Linhas (${count})`,
|
|
293
|
+
promptChangePivotValuesLabel: count => `Valores (${count})`,
|
|
294
|
+
promptChangePivotValuesDescription: (column, aggregation) => `${column} (${aggregation})`
|
|
306
295
|
};
|
|
307
296
|
const ptBR = exports.ptBR = (0, _getGridLocalization.getGridLocalization)(ptBRGrid);
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-data-grid",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.14.0",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The Community plan edition of the MUI X Data Grid components.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -38,12 +38,12 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@babel/runtime": "^7.28.4",
|
|
41
|
-
"@mui/utils": "^7.3.
|
|
41
|
+
"@mui/utils": "^7.3.3",
|
|
42
42
|
"clsx": "^2.1.1",
|
|
43
43
|
"prop-types": "^15.8.1",
|
|
44
|
-
"use-sync-external-store": "^1.
|
|
45
|
-
"@mui/x-internals": "8.
|
|
46
|
-
"@mui/x-virtualizer": "0.2.
|
|
44
|
+
"use-sync-external-store": "^1.6.0",
|
|
45
|
+
"@mui/x-internals": "8.14.0",
|
|
46
|
+
"@mui/x-virtualizer": "0.2.3"
|
|
47
47
|
},
|
|
48
48
|
"peerDependencies": {
|
|
49
49
|
"@emotion/react": "^11.9.0",
|