@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/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
- // noColumnsOverlayLabel: 'No columns',
13
- // noColumnsOverlayManageColumns: 'Manage columns',
14
- // emptyPivotOverlayLabel: 'Add fields to rows, columns, and values to create a pivot table',
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 => `${count} ${count !== 1 ? 'filtros' : 'filtro'} ${count !== 1 ? 'ativos' : 'ativo'}`,
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
- // toolbarPivot: 'Pivot',
43
-
41
+ toolbarPivot: 'Pivotar',
44
42
  // Toolbar charts button
45
- // toolbarCharts: 'Charts',
46
-
43
+ toolbarCharts: 'Gráficos',
47
44
  // Toolbar AI Assistant button
48
- // toolbarAssistant: 'AI Assistant',
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
- // headerFilterClear: 'Clear filter',
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
- // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
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
- // columnMenuManagePivot: 'Manage pivot',
128
- // columnMenuManageCharts: 'Manage charts',
129
-
122
+ columnMenuManagePivot: 'Gerenciar pivot',
123
+ columnMenuManageCharts: 'Gerenciar gráficos',
130
124
  // Column header text
131
- columnHeaderFiltersTooltipActive: count => `${count} ${count !== 1 ? 'filtros' : 'filtro'} ${count !== 1 ? 'ativos' : 'ativo'}`,
132
- columnHeaderFiltersLabel: 'Exibir Filtros',
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: 'Seleção',
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: 'esconder filhos',
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: 'Esconder',
160
+ collapseDetailPanel: 'Recolher',
167
161
  // Pagination
168
162
  paginationRowsPerPage: 'Linhas por página:',
169
- // paginationDisplayedRows: ({
170
- // from,
171
- // to,
172
- // count,
173
- // estimated
174
- // }) => {
175
- // if (!estimated) {
176
- // return `${from}–${to} of ${count !== -1 ? count : `more than ${to}`}`;
177
- // }
178
- // const estimatedLabel = estimated && estimated > to ? `around ${estimated}` : `more than ${to}`;
179
- // return `${from}–${to} of ${count !== -1 ? count : estimatedLabel}`;
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
- // aggregationFunctionLabelNone: 'none',
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
- // pivotToggleLabel: 'Pivot',
206
- // pivotRows: 'Rows',
207
- // pivotColumns: 'Columns',
208
- // pivotValues: 'Values',
209
- // pivotCloseButton: 'Close pivot settings',
210
- // pivotSearchButton: 'Search fields',
211
- // pivotSearchControlPlaceholder: 'Search fields',
212
- // pivotSearchControlLabel: 'Search fields',
213
- // pivotSearchControlClear: 'Clear search',
214
- // pivotNoFields: 'No fields',
215
- // pivotMenuMoveUp: 'Move up',
216
- // pivotMenuMoveDown: 'Move down',
217
- // pivotMenuMoveToTop: 'Move to top',
218
- // pivotMenuMoveToBottom: 'Move to bottom',
219
- // pivotMenuRows: 'Rows',
220
- // pivotMenuColumns: 'Columns',
221
- // pivotMenuValues: 'Values',
222
- // pivotMenuOptions: 'Field options',
223
- // pivotMenuAddToRows: 'Add to Rows',
224
- // pivotMenuAddToColumns: 'Add to Columns',
225
- // pivotMenuAddToValues: 'Add to Values',
226
- // pivotMenuRemove: 'Remove',
227
- // pivotDragToRows: 'Drag here to create rows',
228
- // pivotDragToColumns: 'Drag here to create columns',
229
- // pivotDragToValues: 'Drag here to create values',
230
- // pivotYearColumnHeaderName: '(Year)',
231
- // pivotQuarterColumnHeaderName: '(Quarter)',
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
- // chartsNoCharts: 'There are no charts available',
235
- // chartsChartNotSelected: 'Select a chart type to configure its options',
236
- // chartsTabChart: 'Chart',
237
- // chartsTabFields: 'Fields',
238
- // chartsTabCustomize: 'Customize',
239
- // chartsCloseButton: 'Close charts configuration',
240
- // chartsSyncButtonLabel: 'Sync chart',
241
- // chartsSearchPlaceholder: 'Search fields',
242
- // chartsSearchLabel: 'Search fields',
243
- // chartsSearchClear: 'Clear search',
244
- // chartsNoFields: 'No fields',
245
- // chartsFieldBlocked: 'This field cannot be added to any section',
246
- // chartsCategories: 'Categories',
247
- // chartsSeries: 'Series',
248
- // chartsMenuAddToDimensions: (dimensionLabel: string) => `Add to ${dimensionLabel}`,
249
- // chartsMenuAddToValues: (valuesLabel: string) => `Add to ${valuesLabel}`,
250
- // chartsMenuMoveUp: 'Move up',
251
- // chartsMenuMoveDown: 'Move down',
252
- // chartsMenuMoveToTop: 'Move to top',
253
- // chartsMenuMoveToBottom: 'Move to bottom',
254
- // chartsMenuOptions: 'Field options',
255
- // chartsMenuRemove: 'Remove',
256
- // chartsDragToDimensions: (dimensionLabel: string) => `Drag here to use column as ${dimensionLabel}`,
257
- // chartsDragToValues: (valuesLabel: string) => `Drag here to use column as ${valuesLabel}`,
258
-
227
+ chartsNoCharts: 'Não 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
- // aiAssistantPanelTitle: 'AI Assistant',
261
- // aiAssistantPanelClose: 'Close AI Assistant',
262
- // aiAssistantPanelNewConversation: 'New conversation',
263
- // aiAssistantPanelConversationHistory: 'Conversation history',
264
- // aiAssistantPanelEmptyConversation: 'No prompt history',
265
- // aiAssistantSuggestions: 'Suggestions',
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
- // promptFieldSpeechRecognitionNotSupported: 'Speech recognition is not supported in this browser',
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
- // promptRerun: 'Run again',
279
- // promptProcessing: 'Processing…',
280
- // promptAppliedChanges: 'Applied changes',
281
-
268
+ promptRerun: 'Executar novamente',
269
+ promptProcessing: 'Processando…',
270
+ promptAppliedChanges: 'Alterações aplicadas',
282
271
  // Prompt changes
283
- // promptChangeGroupDescription: (column: string) => `Group by ${column}`,
284
- // promptChangeAggregationLabel: (column: string, aggregation: string) => `${column} (${aggregation})`,
285
- // promptChangeAggregationDescription: (column: string, aggregation: string) => `Aggregate ${column} (${aggregation})`,
286
- // promptChangeFilterLabel: (column: string, operator: string, value: string) => {
287
- // if (operator === 'is any of') {
288
- // return `${column} is any of: ${value}`;
289
- // }
290
- // return `${column} ${operator} ${value}`;
291
- // },
292
- // promptChangeFilterDescription: (column: string, operator: string, value: string) => {
293
- // if (operator === 'is any of') {
294
- // return `Filter where ${column} is any of: ${value}`;
295
- // }
296
- // return `Filter where ${column} ${operator} ${value}`;
297
- // },
298
- // promptChangeSortDescription: (column: string, direction: string) => `Sort by ${column} (${direction})`,
299
- // promptChangePivotEnableLabel: 'Pivot',
300
- // promptChangePivotEnableDescription: 'Enable pivot',
301
- // promptChangePivotColumnsLabel: (count: number) => `Columns (${count})`,
302
- // promptChangePivotColumnsDescription: (column: string, direction: string) => `${column}${direction ? ` (${direction})` : ''}`,
303
- // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
304
- // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
305
- // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
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.13.0",
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.2",
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.5.0",
45
- "@mui/x-internals": "8.12.0",
46
- "@mui/x-virtualizer": "0.2.1"
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",