@mui/x-data-grid 8.13.1 → 8.14.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.
Files changed (36) hide show
  1. package/CHANGELOG.md +204 -1
  2. package/components/cell/GridCell.js +1 -0
  3. package/esm/components/cell/GridCell.js +1 -0
  4. package/esm/hooks/core/useGridProps.d.ts +3 -5
  5. package/esm/hooks/core/useGridProps.js +5 -3
  6. package/esm/hooks/core/useGridVirtualizer.js +11 -9
  7. package/esm/hooks/features/columnGrouping/gridColumnGroupsUtils.d.ts +3 -2
  8. package/esm/hooks/features/columnGrouping/gridColumnGroupsUtils.js +34 -0
  9. package/esm/hooks/features/columnGrouping/useGridColumnGrouping.js +1 -34
  10. package/esm/hooks/features/dataSource/useGridDataSourceBase.js +8 -6
  11. package/esm/hooks/features/dataSource/utils.js +2 -4
  12. package/esm/hooks/features/rowSelection/useGridRowSelection.js +1 -1
  13. package/esm/hooks/features/rows/gridRowsInterfaces.d.ts +1 -11
  14. package/esm/hooks/features/rows/useGridRows.js +4 -4
  15. package/esm/index.js +1 -1
  16. package/esm/internals/index.d.ts +1 -1
  17. package/esm/locales/itIT.js +103 -115
  18. package/esm/locales/ptBR.js +117 -128
  19. package/esm/models/gridStateCommunity.d.ts +2 -3
  20. package/hooks/core/useGridProps.d.ts +3 -5
  21. package/hooks/core/useGridProps.js +5 -3
  22. package/hooks/core/useGridVirtualizer.js +11 -9
  23. package/hooks/features/columnGrouping/gridColumnGroupsUtils.d.ts +3 -2
  24. package/hooks/features/columnGrouping/gridColumnGroupsUtils.js +37 -1
  25. package/hooks/features/columnGrouping/useGridColumnGrouping.js +3 -36
  26. package/hooks/features/dataSource/useGridDataSourceBase.js +8 -6
  27. package/hooks/features/dataSource/utils.js +2 -4
  28. package/hooks/features/rowSelection/useGridRowSelection.js +1 -1
  29. package/hooks/features/rows/gridRowsInterfaces.d.ts +1 -11
  30. package/hooks/features/rows/useGridRows.js +4 -4
  31. package/index.js +1 -1
  32. package/internals/index.d.ts +1 -1
  33. package/locales/itIT.js +103 -115
  34. package/locales/ptBR.js +117 -128
  35. package/models/gridStateCommunity.d.ts +2 -3
  36. package/package.json +5 -5
@@ -3,10 +3,9 @@ const itITGrid = {
3
3
  // Root
4
4
  noRowsLabel: 'Nessun record',
5
5
  noResultsOverlayLabel: 'Nessun record trovato.',
6
- // noColumnsOverlayLabel: 'No columns',
7
- // noColumnsOverlayManageColumns: 'Manage columns',
8
- // emptyPivotOverlayLabel: 'Add fields to rows, columns, and values to create a pivot table',
9
-
6
+ noColumnsOverlayLabel: 'Nessuna colonna',
7
+ noColumnsOverlayManageColumns: 'Gestisci colonne',
8
+ emptyPivotOverlayLabel: 'Aggiungi campi a righe, colonne e valori per creare una tabella pivot',
10
9
  // Density selector toolbar button text
11
10
  toolbarDensity: 'Densità',
12
11
  toolbarDensityLabel: 'Densità',
@@ -33,14 +32,11 @@ const itITGrid = {
33
32
  toolbarExportPrint: 'Stampa',
34
33
  toolbarExportExcel: 'Scarica come Excel',
35
34
  // Toolbar pivot button
36
- // toolbarPivot: 'Pivot',
37
-
35
+ toolbarPivot: 'Pivota',
38
36
  // Toolbar charts button
39
- // toolbarCharts: 'Charts',
40
-
37
+ toolbarCharts: 'Grafici',
41
38
  // Toolbar AI Assistant button
42
- // toolbarAssistant: 'AI Assistant',
43
-
39
+ toolbarAssistant: 'Assistente AI',
44
40
  // Columns management text
45
41
  columnsManagementSearchTitle: 'Cerca',
46
42
  columnsManagementNoColumns: 'Nessuna colonna',
@@ -103,15 +99,14 @@ const itITGrid = {
103
99
  'headerFilterOperator>=': 'Maggiore o uguale a',
104
100
  'headerFilterOperator<': 'Minore di',
105
101
  'headerFilterOperator<=': 'Minore o uguale a',
106
- // headerFilterClear: 'Clear filter',
107
-
102
+ headerFilterClear: 'Rimuovi filtri',
108
103
  // Filter values text
109
104
  filterValueAny: 'qualunque',
110
105
  filterValueTrue: 'vero',
111
106
  filterValueFalse: 'falso',
112
107
  // Column menu text
113
108
  columnMenuLabel: 'Menu',
114
- // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
109
+ columnMenuAriaLabel: columnName => `Menù della colonna ${columnName}`,
115
110
  columnMenuShowColumns: 'Mostra le colonne',
116
111
  columnMenuManageColumns: 'Gestisci colonne',
117
112
  columnMenuFilter: 'Filtra',
@@ -119,9 +114,8 @@ const itITGrid = {
119
114
  columnMenuUnsort: "Annulla l'ordinamento",
120
115
  columnMenuSortAsc: 'Ordinamento crescente',
121
116
  columnMenuSortDesc: 'Ordinamento decrescente',
122
- // columnMenuManagePivot: 'Manage pivot',
123
- // columnMenuManageCharts: 'Manage charts',
124
-
117
+ columnMenuManagePivot: 'Gestisci pivoting',
118
+ columnMenuManageCharts: 'Gestisci grafici',
125
119
  // Column header text
126
120
  columnHeaderFiltersTooltipActive: count => count > 1 ? `${count} filtri attivi` : `${count} filtro attivo`,
127
121
  columnHeaderFiltersLabel: 'Mostra i filtri',
@@ -161,18 +155,18 @@ const itITGrid = {
161
155
  collapseDetailPanel: 'Comprimi',
162
156
  // Pagination
163
157
  paginationRowsPerPage: 'Righe per pagina:',
164
- // paginationDisplayedRows: ({
165
- // from,
166
- // to,
167
- // count,
168
- // estimated
169
- // }) => {
170
- // if (!estimated) {
171
- // return `${from}–${to} of ${count !== -1 ? count : `more than ${to}`}`;
172
- // }
173
- // const estimatedLabel = estimated && estimated > to ? `around ${estimated}` : `more than ${to}`;
174
- // return `${from}–${to} of ${count !== -1 ? count : estimatedLabel}`;
175
- // },
158
+ paginationDisplayedRows: ({
159
+ from,
160
+ to,
161
+ count,
162
+ estimated
163
+ }) => {
164
+ if (!estimated) {
165
+ return `${from}–${to} di ${count !== -1 ? count : `più di ${to}`}`;
166
+ }
167
+ const estimatedLabel = estimated && estimated > to ? `circa ${estimated}` : `più di ${to}`;
168
+ return `${from}–${to} di ${count !== -1 ? count : estimatedLabel}`;
169
+ },
176
170
  paginationItemAriaLabel: type => {
177
171
  if (type === 'first') {
178
172
  return 'Vai alla prima pagina';
@@ -190,95 +184,89 @@ const itITGrid = {
190
184
  rowReorderingHeaderName: 'Riordinamento righe',
191
185
  // Aggregation
192
186
  aggregationMenuItemHeader: 'aggregazione',
193
- // aggregationFunctionLabelNone: 'none',
187
+ aggregationFunctionLabelNone: 'nessuna',
194
188
  aggregationFunctionLabelSum: 'somma',
195
189
  aggregationFunctionLabelAvg: 'media',
196
190
  aggregationFunctionLabelMin: 'minimo',
197
191
  aggregationFunctionLabelMax: 'massimo',
198
- aggregationFunctionLabelSize: 'numero di elementi'
199
-
192
+ aggregationFunctionLabelSize: 'numero di elementi',
200
193
  // Pivot panel
201
- // pivotToggleLabel: 'Pivot',
202
- // pivotRows: 'Rows',
203
- // pivotColumns: 'Columns',
204
- // pivotValues: 'Values',
205
- // pivotCloseButton: 'Close pivot settings',
206
- // pivotSearchButton: 'Search fields',
207
- // pivotSearchControlPlaceholder: 'Search fields',
208
- // pivotSearchControlLabel: 'Search fields',
209
- // pivotSearchControlClear: 'Clear search',
210
- // pivotNoFields: 'No fields',
211
- // pivotMenuMoveUp: 'Move up',
212
- // pivotMenuMoveDown: 'Move down',
213
- // pivotMenuMoveToTop: 'Move to top',
214
- // pivotMenuMoveToBottom: 'Move to bottom',
215
- // pivotMenuRows: 'Rows',
216
- // pivotMenuColumns: 'Columns',
217
- // pivotMenuValues: 'Values',
218
- // pivotMenuOptions: 'Field options',
219
- // pivotMenuAddToRows: 'Add to Rows',
220
- // pivotMenuAddToColumns: 'Add to Columns',
221
- // pivotMenuAddToValues: 'Add to Values',
222
- // pivotMenuRemove: 'Remove',
223
- // pivotDragToRows: 'Drag here to create rows',
224
- // pivotDragToColumns: 'Drag here to create columns',
225
- // pivotDragToValues: 'Drag here to create values',
226
- // pivotYearColumnHeaderName: '(Year)',
227
- // pivotQuarterColumnHeaderName: '(Quarter)',
228
-
194
+ pivotToggleLabel: 'Pivota la tabella',
195
+ pivotRows: 'Righe',
196
+ pivotColumns: 'Colonne',
197
+ pivotValues: 'Valori',
198
+ pivotCloseButton: 'Chiudi impostazioni di trasposizione',
199
+ pivotSearchButton: 'Cerca attrubuti',
200
+ pivotSearchControlPlaceholder: 'Cerca attrubuti',
201
+ pivotSearchControlLabel: 'Cerca attrubuti',
202
+ pivotSearchControlClear: 'Annulla ricerca',
203
+ pivotNoFields: 'Nessun attributo',
204
+ pivotMenuMoveUp: 'Sposta in alto',
205
+ pivotMenuMoveDown: 'Sposta in basso',
206
+ pivotMenuMoveToTop: 'Sposta in cima',
207
+ pivotMenuMoveToBottom: 'Sposta in fondo',
208
+ pivotMenuRows: 'Righe',
209
+ pivotMenuColumns: 'Colonne',
210
+ pivotMenuValues: 'Valori',
211
+ pivotMenuOptions: 'Opzioni',
212
+ pivotMenuAddToRows: 'Aggiungi alle Righe',
213
+ pivotMenuAddToColumns: 'Aggiungi alle Colonne',
214
+ pivotMenuAddToValues: 'Aggiungi ai Valori',
215
+ pivotMenuRemove: 'Rimuovi',
216
+ pivotDragToRows: 'Trascina qui per creare le righe',
217
+ pivotDragToColumns: 'Trascina qui per creare le colonne',
218
+ pivotDragToValues: 'Trascina qui per creare valori',
219
+ pivotYearColumnHeaderName: '(Anno)',
220
+ pivotQuarterColumnHeaderName: '(Quarto)',
229
221
  // Charts configuration panel
230
- // chartsNoCharts: 'There are no charts available',
231
- // chartsChartNotSelected: 'Select a chart type to configure its options',
232
- // chartsTabChart: 'Chart',
233
- // chartsTabFields: 'Fields',
234
- // chartsTabCustomize: 'Customize',
235
- // chartsCloseButton: 'Close charts configuration',
236
- // chartsSyncButtonLabel: 'Sync chart',
237
- // chartsSearchPlaceholder: 'Search fields',
238
- // chartsSearchLabel: 'Search fields',
239
- // chartsSearchClear: 'Clear search',
240
- // chartsNoFields: 'No fields',
241
- // chartsFieldBlocked: 'This field cannot be added to any section',
242
- // chartsCategories: 'Categories',
243
- // chartsSeries: 'Series',
244
- // chartsMenuAddToDimensions: (dimensionLabel: string) => `Add to ${dimensionLabel}`,
245
- // chartsMenuAddToValues: (valuesLabel: string) => `Add to ${valuesLabel}`,
246
- // chartsMenuMoveUp: 'Move up',
247
- // chartsMenuMoveDown: 'Move down',
248
- // chartsMenuMoveToTop: 'Move to top',
249
- // chartsMenuMoveToBottom: 'Move to bottom',
250
- // chartsMenuOptions: 'Field options',
251
- // chartsMenuRemove: 'Remove',
252
- // chartsDragToDimensions: (dimensionLabel: string) => `Drag here to use column as ${dimensionLabel}`,
253
- // chartsDragToValues: (valuesLabel: string) => `Drag here to use column as ${valuesLabel}`,
254
-
222
+ chartsNoCharts: 'Non ci sono grafici disponibili',
223
+ chartsChartNotSelected: 'Seleziona un tipo di grafico per configurarne le opzioni',
224
+ chartsTabChart: 'Grafico',
225
+ chartsTabFields: 'Attributi',
226
+ chartsTabCustomize: 'Personalizza',
227
+ chartsCloseButton: 'Chiudi la configurazione dei grafici',
228
+ chartsSyncButtonLabel: 'Sincronizza grafico',
229
+ chartsSearchPlaceholder: 'Cerca attributi',
230
+ chartsSearchLabel: 'Cerca attributi',
231
+ chartsSearchClear: 'Annulla ricerca',
232
+ chartsNoFields: 'Nessun attributo',
233
+ chartsFieldBlocked: 'Questo attributo non può essere aggiunto ad alcuna sezione',
234
+ chartsCategories: 'Categorie',
235
+ chartsSeries: 'Serie',
236
+ chartsMenuAddToDimensions: dimensionLabel => `Aggiungi a ${dimensionLabel}`,
237
+ chartsMenuAddToValues: valuesLabel => `Aggiungi a ${valuesLabel}`,
238
+ chartsMenuMoveUp: 'Sposta in alto',
239
+ chartsMenuMoveDown: 'Sposta in basso',
240
+ chartsMenuMoveToTop: 'Sposta in cima',
241
+ chartsMenuMoveToBottom: 'Sposta in fondo',
242
+ chartsMenuOptions: "Opzioni per l'attributo",
243
+ chartsMenuRemove: 'Rimuovi',
244
+ chartsDragToDimensions: dimensionLabel => `Trascina qui per usare la colonna come ${dimensionLabel}`,
245
+ chartsDragToValues: valuesLabel => `Trascina qui per usare la colonna come ${valuesLabel}`,
255
246
  // AI Assistant panel
256
- // aiAssistantPanelTitle: 'AI Assistant',
257
- // aiAssistantPanelClose: 'Close AI Assistant',
258
- // aiAssistantPanelNewConversation: 'New conversation',
259
- // aiAssistantPanelConversationHistory: 'Conversation history',
260
- // aiAssistantPanelEmptyConversation: 'No prompt history',
261
- // aiAssistantSuggestions: 'Suggestions',
262
-
247
+ aiAssistantPanelTitle: 'Assistente AI',
248
+ aiAssistantPanelClose: 'Chiudi Assistente AI',
249
+ aiAssistantPanelNewConversation: 'Nuova Conversazione',
250
+ aiAssistantPanelConversationHistory: 'Conversazioni precedenti',
251
+ aiAssistantPanelEmptyConversation: 'Nessuna conversazione precedente',
252
+ aiAssistantSuggestions: 'Suggerimenti:',
263
253
  // Prompt field
264
- // promptFieldLabel: 'Prompt',
265
- // promptFieldPlaceholder: 'Type a prompt…',
266
- // promptFieldPlaceholderWithRecording: 'Type or record a prompt…',
267
- // promptFieldPlaceholderListening: 'Listening for prompt…',
268
- // promptFieldSpeechRecognitionNotSupported: 'Speech recognition is not supported in this browser',
269
- // promptFieldSend: 'Send',
270
- // promptFieldRecord: 'Record',
271
- // promptFieldStopRecording: 'Stop recording',
272
-
254
+ promptFieldLabel: 'Prompt',
255
+ promptFieldPlaceholder: 'Scrivi un prompt…',
256
+ promptFieldPlaceholderWithRecording: 'Scrivi o registra un prompt…',
257
+ promptFieldPlaceholderListening: 'In attesa di un prompt…',
258
+ promptFieldSpeechRecognitionNotSupported: 'Il riconoscimento vocale non è supportato dal tuo browser.',
259
+ promptFieldSend: 'Invia',
260
+ promptFieldRecord: 'Registra',
261
+ promptFieldStopRecording: 'Interrompi registrazione',
273
262
  // Prompt
274
- // promptRerun: 'Run again',
275
- // promptProcessing: 'Processing…',
276
- // promptAppliedChanges: 'Applied changes',
277
-
263
+ promptRerun: 'Esegui nuovamente',
264
+ promptProcessing: 'In elaborazione…',
265
+ promptAppliedChanges: 'Cambiamenti applicati',
278
266
  // Prompt changes
279
- // promptChangeGroupDescription: (column: string) => `Group by ${column}`,
280
- // promptChangeAggregationLabel: (column: string, aggregation: string) => `${column} (${aggregation})`,
281
- // promptChangeAggregationDescription: (column: string, aggregation: string) => `Aggregate ${column} (${aggregation})`,
267
+ promptChangeGroupDescription: column => `Raggruppa per ${column}`,
268
+ promptChangeAggregationLabel: (column, aggregation) => `${column} (${aggregation})`,
269
+ promptChangeAggregationDescription: (column, aggregation) => `Aggrega ${column} (${aggregation})`,
282
270
  // promptChangeFilterLabel: (column: string, operator: string, value: string) => {
283
271
  // if (operator === 'is any of') {
284
272
  // return `${column} is any of: ${value}`;
@@ -291,13 +279,13 @@ const itITGrid = {
291
279
  // }
292
280
  // return `Filter where ${column} ${operator} ${value}`;
293
281
  // },
294
- // promptChangeSortDescription: (column: string, direction: string) => `Sort by ${column} (${direction})`,
295
- // promptChangePivotEnableLabel: 'Pivot',
296
- // promptChangePivotEnableDescription: 'Enable pivot',
297
- // promptChangePivotColumnsLabel: (count: number) => `Columns (${count})`,
298
- // promptChangePivotColumnsDescription: (column: string, direction: string) => `${column}${direction ? ` (${direction})` : ''}`,
299
- // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
300
- // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
301
- // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
282
+ promptChangeSortDescription: (column, direction) => `Ordina per ${column} (${direction})`,
283
+ promptChangePivotEnableLabel: 'Pivota',
284
+ promptChangePivotEnableDescription: 'Abilita pivoting',
285
+ promptChangePivotColumnsLabel: count => `Colonne (${count})`,
286
+ promptChangePivotColumnsDescription: (column, direction) => `${column}${direction ? ` (${direction})` : ''}`,
287
+ promptChangePivotRowsLabel: count => `Righe (${count})`,
288
+ promptChangePivotValuesLabel: count => `Valori (${count})`,
289
+ promptChangePivotValuesDescription: (column, aggregation) => `${column} (${aggregation})`
302
290
  };
303
291
  export const itIT = getGridLocalization(itITGrid);
@@ -3,10 +3,9 @@ const ptBRGrid = {
3
3
  // Root
4
4
  noRowsLabel: 'Nenhuma linha',
5
5
  noResultsOverlayLabel: 'Nenhum resultado encontrado.',
6
- // noColumnsOverlayLabel: 'No columns',
7
- // noColumnsOverlayManageColumns: 'Manage columns',
8
- // emptyPivotOverlayLabel: 'Add fields to rows, columns, and values to create a pivot table',
9
-
6
+ noColumnsOverlayLabel: 'Nenhuma coluna',
7
+ noColumnsOverlayManageColumns: 'Gerenciar colunas',
8
+ emptyPivotOverlayLabel: 'Adicionar campos às linhas, colunas e valores para criar uma tabela dinâmica',
10
9
  // Density selector toolbar button text
11
10
  toolbarDensity: 'Densidade',
12
11
  toolbarDensityLabel: 'Densidade',
@@ -21,7 +20,7 @@ const ptBRGrid = {
21
20
  toolbarFiltersLabel: 'Exibir filtros',
22
21
  toolbarFiltersTooltipHide: 'Ocultar filtros',
23
22
  toolbarFiltersTooltipShow: 'Exibir filtros',
24
- toolbarFiltersTooltipActive: count => `${count} ${count !== 1 ? 'filtros' : 'filtro'} ${count !== 1 ? 'ativos' : 'ativo'}`,
23
+ toolbarFiltersTooltipActive: count => count !== 1 ? `${count} filtros ativos` : `${count} filtro ativo`,
25
24
  // Quick filter toolbar field
26
25
  toolbarQuickFilterPlaceholder: 'Procurar…',
27
26
  toolbarQuickFilterLabel: 'Procurar',
@@ -33,14 +32,11 @@ const ptBRGrid = {
33
32
  toolbarExportPrint: 'Imprimir',
34
33
  toolbarExportExcel: 'Baixar como Excel',
35
34
  // Toolbar pivot button
36
- // toolbarPivot: 'Pivot',
37
-
35
+ toolbarPivot: 'Pivotar',
38
36
  // Toolbar charts button
39
- // toolbarCharts: 'Charts',
40
-
37
+ toolbarCharts: 'Gráficos',
41
38
  // Toolbar AI Assistant button
42
- // toolbarAssistant: 'AI Assistant',
43
-
39
+ toolbarAssistant: 'Assistente de IA',
44
40
  // Columns management text
45
41
  columnsManagementSearchTitle: 'Buscar',
46
42
  columnsManagementNoColumns: 'Nenhuma coluna',
@@ -102,28 +98,26 @@ const ptBRGrid = {
102
98
  'headerFilterOperator>=': 'Maior que ou igual a',
103
99
  'headerFilterOperator<': 'Menor que',
104
100
  'headerFilterOperator<=': 'Menor que ou igual a',
105
- // headerFilterClear: 'Clear filter',
106
-
101
+ headerFilterClear: 'Limpar filtro',
107
102
  // Filter values text
108
103
  filterValueAny: 'qualquer',
109
104
  filterValueTrue: 'verdadeiro',
110
105
  filterValueFalse: 'falso',
111
106
  // Column menu text
112
107
  columnMenuLabel: 'Menu',
113
- // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
108
+ columnMenuAriaLabel: columnName => `menu da coluna ${columnName}`,
114
109
  columnMenuShowColumns: 'Exibir colunas',
115
110
  columnMenuManageColumns: 'Gerir colunas',
116
111
  columnMenuFilter: 'Filtrar',
117
- columnMenuHideColumn: 'Ocultar',
112
+ columnMenuHideColumn: 'Ocultar coluna',
118
113
  columnMenuUnsort: 'Desfazer ordenação',
119
114
  columnMenuSortAsc: 'Ordenar do menor para o maior',
120
115
  columnMenuSortDesc: 'Ordenar do maior para o menor',
121
- // columnMenuManagePivot: 'Manage pivot',
122
- // columnMenuManageCharts: 'Manage charts',
123
-
116
+ columnMenuManagePivot: 'Gerenciar pivot',
117
+ columnMenuManageCharts: 'Gerenciar gráficos',
124
118
  // Column header text
125
- columnHeaderFiltersTooltipActive: count => `${count} ${count !== 1 ? 'filtros' : 'filtro'} ${count !== 1 ? 'ativos' : 'ativo'}`,
126
- columnHeaderFiltersLabel: 'Exibir Filtros',
119
+ columnHeaderFiltersTooltipActive: count => count !== 1 ? `${count} filtros ativos` : `${count} filtro ativo`,
120
+ columnHeaderFiltersLabel: 'Exibir filtros',
127
121
  columnHeaderSortIconLabel: 'Ordenar',
128
122
  // Rows selected footer text
129
123
  footerRowSelected: count => count !== 1 ? `${count.toLocaleString()} linhas selecionadas` : `${count.toLocaleString()} linha selecionada`,
@@ -132,9 +126,9 @@ const ptBRGrid = {
132
126
  // Total visible row amount footer text
133
127
  footerTotalVisibleRows: (visibleCount, totalCount) => `${visibleCount.toLocaleString()} de ${totalCount.toLocaleString()}`,
134
128
  // Checkbox selection text
135
- checkboxSelectionHeaderName: 'Seleção',
136
- checkboxSelectionSelectAllRows: 'Selecionar todas linhas',
137
- checkboxSelectionUnselectAllRows: 'Deselecionar todas linhas',
129
+ checkboxSelectionHeaderName: 'Caixa de seleção',
130
+ checkboxSelectionSelectAllRows: 'Selecionar todas as linhas',
131
+ checkboxSelectionUnselectAllRows: 'Deselecionar todas as linhas',
138
132
  checkboxSelectionSelectRow: 'Selecionar linha',
139
133
  checkboxSelectionUnselectRow: 'Deselecionar linha',
140
134
  // Boolean cell text
@@ -149,7 +143,7 @@ const ptBRGrid = {
149
143
  // Tree Data
150
144
  treeDataGroupingHeaderName: 'Grupo',
151
145
  treeDataExpand: 'mostrar filhos',
152
- treeDataCollapse: 'esconder filhos',
146
+ treeDataCollapse: 'ocultar filhos',
153
147
  // Grouping columns
154
148
  groupingColumnHeaderName: 'Grupo',
155
149
  groupColumn: name => `Agrupar por ${name}`,
@@ -157,21 +151,21 @@ const ptBRGrid = {
157
151
  // Master/detail
158
152
  detailPanelToggle: 'Painel de detalhes',
159
153
  expandDetailPanel: 'Expandir',
160
- collapseDetailPanel: 'Esconder',
154
+ collapseDetailPanel: 'Recolher',
161
155
  // Pagination
162
156
  paginationRowsPerPage: 'Linhas por página:',
163
- // paginationDisplayedRows: ({
164
- // from,
165
- // to,
166
- // count,
167
- // estimated
168
- // }) => {
169
- // if (!estimated) {
170
- // return `${from}–${to} of ${count !== -1 ? count : `more than ${to}`}`;
171
- // }
172
- // const estimatedLabel = estimated && estimated > to ? `around ${estimated}` : `more than ${to}`;
173
- // return `${from}–${to} of ${count !== -1 ? count : estimatedLabel}`;
174
- // },
157
+ paginationDisplayedRows: ({
158
+ from,
159
+ to,
160
+ count,
161
+ estimated
162
+ }) => {
163
+ if (!estimated) {
164
+ return `${from}–${to} de ${count !== -1 ? count : `mais de ${to}`}`;
165
+ }
166
+ const estimatedLabel = estimated && estimated > to ? `cerca de ${estimated}` : `mais de ${to}`;
167
+ return `${from}–${to} de ${count !== -1 ? count : estimatedLabel}`;
168
+ },
175
169
  paginationItemAriaLabel: type => {
176
170
  if (type === 'first') {
177
171
  return 'Ir para a primeira página';
@@ -189,113 +183,108 @@ const ptBRGrid = {
189
183
  rowReorderingHeaderName: 'Reorganizar linhas',
190
184
  // Aggregation
191
185
  aggregationMenuItemHeader: 'Agrupar',
192
- // aggregationFunctionLabelNone: 'none',
186
+ aggregationFunctionLabelNone: 'nenhum',
193
187
  aggregationFunctionLabelSum: 'soma',
194
188
  aggregationFunctionLabelAvg: 'média',
195
189
  aggregationFunctionLabelMin: 'mín',
196
190
  aggregationFunctionLabelMax: 'máx',
197
191
  aggregationFunctionLabelSize: 'tamanho',
198
192
  // Pivot panel
199
- // pivotToggleLabel: 'Pivot',
200
- // pivotRows: 'Rows',
201
- // pivotColumns: 'Columns',
202
- // pivotValues: 'Values',
203
- // pivotCloseButton: 'Close pivot settings',
204
- // pivotSearchButton: 'Search fields',
205
- // pivotSearchControlPlaceholder: 'Search fields',
206
- // pivotSearchControlLabel: 'Search fields',
207
- // pivotSearchControlClear: 'Clear search',
208
- // pivotNoFields: 'No fields',
209
- // pivotMenuMoveUp: 'Move up',
210
- // pivotMenuMoveDown: 'Move down',
211
- // pivotMenuMoveToTop: 'Move to top',
212
- // pivotMenuMoveToBottom: 'Move to bottom',
213
- // pivotMenuRows: 'Rows',
214
- // pivotMenuColumns: 'Columns',
215
- // pivotMenuValues: 'Values',
216
- // pivotMenuOptions: 'Field options',
217
- // pivotMenuAddToRows: 'Add to Rows',
218
- // pivotMenuAddToColumns: 'Add to Columns',
219
- // pivotMenuAddToValues: 'Add to Values',
220
- // pivotMenuRemove: 'Remove',
221
- // pivotDragToRows: 'Drag here to create rows',
222
- // pivotDragToColumns: 'Drag here to create columns',
223
- // pivotDragToValues: 'Drag here to create values',
224
- // pivotYearColumnHeaderName: '(Year)',
225
- // pivotQuarterColumnHeaderName: '(Quarter)',
226
-
193
+ pivotToggleLabel: 'Pivot',
194
+ pivotRows: 'Linhas',
195
+ pivotColumns: 'Colunas',
196
+ pivotValues: 'Valores',
197
+ pivotCloseButton: 'Fechar configurações de pivot',
198
+ pivotSearchButton: 'Pesquisar campos',
199
+ pivotSearchControlPlaceholder: 'Pesquisar campos',
200
+ pivotSearchControlLabel: 'Pesquisar campos',
201
+ pivotSearchControlClear: 'Limpar pesquisa',
202
+ pivotNoFields: 'Nenhum campo',
203
+ pivotMenuMoveUp: 'Mover para cima',
204
+ pivotMenuMoveDown: 'Mover para baixo',
205
+ pivotMenuMoveToTop: 'Mover para o topo',
206
+ pivotMenuMoveToBottom: 'Mover para a parte inferior',
207
+ pivotMenuRows: 'Linhas',
208
+ pivotMenuColumns: 'Colunas',
209
+ pivotMenuValues: 'Valores',
210
+ pivotMenuOptions: 'Opções de campo',
211
+ pivotMenuAddToRows: 'Adicionar às Linhas',
212
+ pivotMenuAddToColumns: 'Adicionar às Colunas',
213
+ pivotMenuAddToValues: 'Adicionar aos Valores',
214
+ pivotMenuRemove: 'Remover',
215
+ pivotDragToRows: 'Arraste aqui para criar linhas',
216
+ pivotDragToColumns: 'Arraste aqui para criar colunas',
217
+ pivotDragToValues: 'Arraste aqui para criar valores',
218
+ pivotYearColumnHeaderName: '(Ano)',
219
+ pivotQuarterColumnHeaderName: '(Trimestre)',
227
220
  // Charts configuration panel
228
- // chartsNoCharts: 'There are no charts available',
229
- // chartsChartNotSelected: 'Select a chart type to configure its options',
230
- // chartsTabChart: 'Chart',
231
- // chartsTabFields: 'Fields',
232
- // chartsTabCustomize: 'Customize',
233
- // chartsCloseButton: 'Close charts configuration',
234
- // chartsSyncButtonLabel: 'Sync chart',
235
- // chartsSearchPlaceholder: 'Search fields',
236
- // chartsSearchLabel: 'Search fields',
237
- // chartsSearchClear: 'Clear search',
238
- // chartsNoFields: 'No fields',
239
- // chartsFieldBlocked: 'This field cannot be added to any section',
240
- // chartsCategories: 'Categories',
241
- // chartsSeries: 'Series',
242
- // chartsMenuAddToDimensions: (dimensionLabel: string) => `Add to ${dimensionLabel}`,
243
- // chartsMenuAddToValues: (valuesLabel: string) => `Add to ${valuesLabel}`,
244
- // chartsMenuMoveUp: 'Move up',
245
- // chartsMenuMoveDown: 'Move down',
246
- // chartsMenuMoveToTop: 'Move to top',
247
- // chartsMenuMoveToBottom: 'Move to bottom',
248
- // chartsMenuOptions: 'Field options',
249
- // chartsMenuRemove: 'Remove',
250
- // chartsDragToDimensions: (dimensionLabel: string) => `Drag here to use column as ${dimensionLabel}`,
251
- // chartsDragToValues: (valuesLabel: string) => `Drag here to use column as ${valuesLabel}`,
252
-
221
+ chartsNoCharts: 'Não gráficos disponíveis',
222
+ chartsChartNotSelected: 'Selecione um tipo de gráfico para configurar suas opções',
223
+ chartsTabChart: 'Gráfico',
224
+ chartsTabFields: 'Campos',
225
+ chartsTabCustomize: 'Personalizar',
226
+ chartsCloseButton: 'Fechar configuração de gráficos',
227
+ chartsSyncButtonLabel: 'Sincronizar gráfico',
228
+ chartsSearchPlaceholder: 'Pesquisar campos',
229
+ chartsSearchLabel: 'Pesquisar campos',
230
+ chartsSearchClear: 'Limpar pesquisa',
231
+ chartsNoFields: 'Nenhum campo',
232
+ chartsFieldBlocked: 'Este campo não pode ser adicionado a nenhuma seção',
233
+ chartsCategories: 'Categorias',
234
+ chartsSeries: 'Séries',
235
+ chartsMenuAddToDimensions: dimensionLabel => `Adicionar a ${dimensionLabel}`,
236
+ chartsMenuAddToValues: valuesLabel => `Adicionar a ${valuesLabel}`,
237
+ chartsMenuMoveUp: 'Mover para cima',
238
+ chartsMenuMoveDown: 'Mover para baixo',
239
+ chartsMenuMoveToTop: 'Mover para o topo',
240
+ chartsMenuMoveToBottom: 'Mover para a parte inferior',
241
+ chartsMenuOptions: 'Opções de campo',
242
+ chartsMenuRemove: 'Remover',
243
+ chartsDragToDimensions: dimensionLabel => `Arraste aqui para usar a coluna como ${dimensionLabel}`,
244
+ chartsDragToValues: valuesLabel => `Arraste aqui para usar a coluna como ${valuesLabel}`,
253
245
  // AI Assistant panel
254
- // aiAssistantPanelTitle: 'AI Assistant',
255
- // aiAssistantPanelClose: 'Close AI Assistant',
256
- // aiAssistantPanelNewConversation: 'New conversation',
257
- // aiAssistantPanelConversationHistory: 'Conversation history',
258
- // aiAssistantPanelEmptyConversation: 'No prompt history',
259
- // aiAssistantSuggestions: 'Suggestions',
260
-
246
+ aiAssistantPanelTitle: 'Assistente de IA',
247
+ aiAssistantPanelClose: 'Fechar Assistente de IA',
248
+ aiAssistantPanelNewConversation: 'Nova conversa',
249
+ aiAssistantPanelConversationHistory: 'Histórico de conversas',
250
+ aiAssistantPanelEmptyConversation: 'Sem histórico de prompts',
251
+ aiAssistantSuggestions: 'Sugestões',
261
252
  // Prompt field
262
253
  promptFieldLabel: 'Prompt',
263
254
  promptFieldPlaceholder: 'Digite um prompt…',
264
255
  promptFieldPlaceholderWithRecording: 'Digite ou grave um prompt…',
265
256
  promptFieldPlaceholderListening: 'Ouvindo o prompt…',
266
- // promptFieldSpeechRecognitionNotSupported: 'Speech recognition is not supported in this browser',
257
+ promptFieldSpeechRecognitionNotSupported: 'O reconhecimento de fala não é suportado neste navegador',
267
258
  promptFieldSend: 'Enviar',
268
259
  promptFieldRecord: 'Gravar',
269
- promptFieldStopRecording: 'Parar gravação'
270
-
260
+ promptFieldStopRecording: 'Parar gravação',
271
261
  // Prompt
272
- // promptRerun: 'Run again',
273
- // promptProcessing: 'Processing…',
274
- // promptAppliedChanges: 'Applied changes',
275
-
262
+ promptRerun: 'Executar novamente',
263
+ promptProcessing: 'Processando…',
264
+ promptAppliedChanges: 'Alterações aplicadas',
276
265
  // Prompt changes
277
- // promptChangeGroupDescription: (column: string) => `Group by ${column}`,
278
- // promptChangeAggregationLabel: (column: string, aggregation: string) => `${column} (${aggregation})`,
279
- // promptChangeAggregationDescription: (column: string, aggregation: string) => `Aggregate ${column} (${aggregation})`,
280
- // promptChangeFilterLabel: (column: string, operator: string, value: string) => {
281
- // if (operator === 'is any of') {
282
- // return `${column} is any of: ${value}`;
283
- // }
284
- // return `${column} ${operator} ${value}`;
285
- // },
286
- // promptChangeFilterDescription: (column: string, operator: string, value: string) => {
287
- // if (operator === 'is any of') {
288
- // return `Filter where ${column} is any of: ${value}`;
289
- // }
290
- // return `Filter where ${column} ${operator} ${value}`;
291
- // },
292
- // promptChangeSortDescription: (column: string, direction: string) => `Sort by ${column} (${direction})`,
293
- // promptChangePivotEnableLabel: 'Pivot',
294
- // promptChangePivotEnableDescription: 'Enable pivot',
295
- // promptChangePivotColumnsLabel: (count: number) => `Columns (${count})`,
296
- // promptChangePivotColumnsDescription: (column: string, direction: string) => `${column}${direction ? ` (${direction})` : ''}`,
297
- // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
298
- // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
299
- // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
266
+ promptChangeGroupDescription: column => `Agrupar por ${column}`,
267
+ promptChangeAggregationLabel: (column, aggregation) => `${column} (${aggregation})`,
268
+ promptChangeAggregationDescription: (column, aggregation) => `Agregar ${column} (${aggregation})`,
269
+ promptChangeFilterLabel: (column, operator, value) => {
270
+ if (operator === 'is any of') {
271
+ return `${column} é um destes: ${value}`;
272
+ }
273
+ return `${column} ${operator} ${value}`;
274
+ },
275
+ promptChangeFilterDescription: (column, operator, value) => {
276
+ if (operator === 'is any of') {
277
+ return `Filtrar onde ${column} é um destes: ${value}`;
278
+ }
279
+ return `Filtrar onde ${column} ${operator} ${value}`;
280
+ },
281
+ promptChangeSortDescription: (column, direction) => `Classificar por ${column} (${direction})`,
282
+ promptChangePivotEnableLabel: 'Pivotar',
283
+ promptChangePivotEnableDescription: 'Ativar pivotar',
284
+ promptChangePivotColumnsLabel: count => `Colunas (${count})`,
285
+ promptChangePivotColumnsDescription: (column, direction) => `${column}${direction ? ` (${direction})` : ''}`,
286
+ promptChangePivotRowsLabel: count => `Linhas (${count})`,
287
+ promptChangePivotValuesLabel: count => `Valores (${count})`,
288
+ promptChangePivotValuesDescription: (column, aggregation) => `${column} (${aggregation})`
300
289
  };
301
290
  export const ptBR = getGridLocalization(ptBRGrid);