@mui/x-data-grid 8.14.1 → 8.16.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.
Files changed (130) hide show
  1. package/CHANGELOG.md +207 -0
  2. package/DataGrid/DataGrid.js +2 -0
  3. package/DataGrid/useDataGridComponent.js +1 -1
  4. package/components/GridScrollShadows.js +23 -3
  5. package/constants/gridClasses.d.ts +12 -0
  6. package/constants/gridClasses.js +1 -1
  7. package/constants/localeTextConstants.js +2 -1
  8. package/esm/DataGrid/DataGrid.js +2 -0
  9. package/esm/DataGrid/useDataGridComponent.js +1 -1
  10. package/esm/components/GridScrollShadows.js +22 -3
  11. package/esm/constants/gridClasses.d.ts +12 -0
  12. package/esm/constants/gridClasses.js +1 -1
  13. package/esm/constants/localeTextConstants.js +2 -1
  14. package/esm/hooks/core/strategyProcessing/gridStrategyProcessingApi.d.ts +6 -4
  15. package/esm/hooks/features/dataSource/models.d.ts +28 -28
  16. package/esm/hooks/features/dataSource/useGridDataSourceBase.d.ts +1 -1
  17. package/esm/hooks/features/dataSource/useGridDataSourceBase.js +27 -14
  18. package/esm/hooks/features/dataSource/utils.d.ts +2 -1
  19. package/esm/hooks/features/dataSource/utils.js +2 -1
  20. package/esm/hooks/features/editing/useGridCellEditable.d.ts +5 -0
  21. package/esm/hooks/features/editing/useGridCellEditable.js +9 -0
  22. package/esm/hooks/features/editing/useGridEditing.d.ts +2 -1
  23. package/esm/hooks/features/editing/useGridEditing.js +4 -4
  24. package/esm/hooks/features/focus/useGridFocus.js +4 -2
  25. package/esm/hooks/features/rowSelection/useGridRowSelection.js +3 -1
  26. package/esm/index.js +1 -1
  27. package/esm/internals/index.d.ts +3 -1
  28. package/esm/internals/index.js +1 -0
  29. package/esm/locales/arSD.js +1 -0
  30. package/esm/locales/beBY.js +1 -0
  31. package/esm/locales/bgBG.js +1 -0
  32. package/esm/locales/bnBD.js +1 -0
  33. package/esm/locales/csCZ.js +1 -0
  34. package/esm/locales/daDK.js +1 -0
  35. package/esm/locales/deDE.js +1 -0
  36. package/esm/locales/elGR.js +1 -0
  37. package/esm/locales/esES.js +109 -119
  38. package/esm/locales/faIR.js +1 -0
  39. package/esm/locales/fiFI.js +1 -0
  40. package/esm/locales/frFR.js +1 -0
  41. package/esm/locales/heIL.js +1 -0
  42. package/esm/locales/hrHR.js +1 -0
  43. package/esm/locales/huHU.js +1 -0
  44. package/esm/locales/hyAM.js +1 -0
  45. package/esm/locales/idID.js +1 -0
  46. package/esm/locales/isIS.js +1 -0
  47. package/esm/locales/itIT.js +1 -0
  48. package/esm/locales/jaJP.js +1 -0
  49. package/esm/locales/koKR.js +1 -0
  50. package/esm/locales/nbNO.js +1 -0
  51. package/esm/locales/nlNL.js +1 -0
  52. package/esm/locales/nnNO.js +1 -0
  53. package/esm/locales/plPL.js +1 -0
  54. package/esm/locales/ptBR.js +1 -0
  55. package/esm/locales/ptPT.js +1 -0
  56. package/esm/locales/roRO.js +1 -0
  57. package/esm/locales/ruRU.js +1 -0
  58. package/esm/locales/skSK.js +1 -0
  59. package/esm/locales/svSE.js +1 -0
  60. package/esm/locales/trTR.js +1 -0
  61. package/esm/locales/ukUA.js +1 -0
  62. package/esm/locales/urPK.js +1 -0
  63. package/esm/locales/viVN.js +1 -0
  64. package/esm/locales/zhCN.js +1 -0
  65. package/esm/locales/zhHK.js +1 -0
  66. package/esm/locales/zhTW.js +1 -0
  67. package/esm/models/api/gridLocaleTextApi.d.ts +1 -0
  68. package/esm/models/configuration/gridCellEditableConfiguration.d.ts +19 -0
  69. package/esm/models/configuration/gridCellEditableConfiguration.js +1 -0
  70. package/esm/models/configuration/gridConfiguration.d.ts +2 -1
  71. package/esm/models/gridDataSource.d.ts +13 -0
  72. package/hooks/core/strategyProcessing/gridStrategyProcessingApi.d.ts +6 -4
  73. package/hooks/features/dataSource/models.d.ts +28 -28
  74. package/hooks/features/dataSource/useGridDataSourceBase.d.ts +1 -1
  75. package/hooks/features/dataSource/useGridDataSourceBase.js +27 -14
  76. package/hooks/features/dataSource/utils.d.ts +2 -1
  77. package/hooks/features/dataSource/utils.js +2 -1
  78. package/hooks/features/editing/useGridCellEditable.d.ts +5 -0
  79. package/hooks/features/editing/useGridCellEditable.js +15 -0
  80. package/hooks/features/editing/useGridEditing.d.ts +2 -1
  81. package/hooks/features/editing/useGridEditing.js +4 -4
  82. package/hooks/features/focus/useGridFocus.js +4 -2
  83. package/hooks/features/rowSelection/useGridRowSelection.js +3 -1
  84. package/index.js +1 -1
  85. package/internals/index.d.ts +3 -1
  86. package/internals/index.js +8 -0
  87. package/locales/arSD.js +1 -0
  88. package/locales/beBY.js +1 -0
  89. package/locales/bgBG.js +1 -0
  90. package/locales/bnBD.js +1 -0
  91. package/locales/csCZ.js +1 -0
  92. package/locales/daDK.js +1 -0
  93. package/locales/deDE.js +1 -0
  94. package/locales/elGR.js +1 -0
  95. package/locales/esES.js +109 -119
  96. package/locales/faIR.js +1 -0
  97. package/locales/fiFI.js +1 -0
  98. package/locales/frFR.js +1 -0
  99. package/locales/heIL.js +1 -0
  100. package/locales/hrHR.js +1 -0
  101. package/locales/huHU.js +1 -0
  102. package/locales/hyAM.js +1 -0
  103. package/locales/idID.js +1 -0
  104. package/locales/isIS.js +1 -0
  105. package/locales/itIT.js +1 -0
  106. package/locales/jaJP.js +1 -0
  107. package/locales/koKR.js +1 -0
  108. package/locales/nbNO.js +1 -0
  109. package/locales/nlNL.js +1 -0
  110. package/locales/nnNO.js +1 -0
  111. package/locales/plPL.js +1 -0
  112. package/locales/ptBR.js +1 -0
  113. package/locales/ptPT.js +1 -0
  114. package/locales/roRO.js +1 -0
  115. package/locales/ruRU.js +1 -0
  116. package/locales/skSK.js +1 -0
  117. package/locales/svSE.js +1 -0
  118. package/locales/trTR.js +1 -0
  119. package/locales/ukUA.js +1 -0
  120. package/locales/urPK.js +1 -0
  121. package/locales/viVN.js +1 -0
  122. package/locales/zhCN.js +1 -0
  123. package/locales/zhHK.js +1 -0
  124. package/locales/zhTW.js +1 -0
  125. package/models/api/gridLocaleTextApi.d.ts +1 -0
  126. package/models/configuration/gridCellEditableConfiguration.d.ts +19 -0
  127. package/models/configuration/gridCellEditableConfiguration.js +5 -0
  128. package/models/configuration/gridConfiguration.d.ts +2 -1
  129. package/models/gridDataSource.d.ts +13 -0
  130. package/package.json +3 -3
package/locales/esES.js CHANGED
@@ -9,10 +9,9 @@ const esESGrid = {
9
9
  // Root
10
10
  noRowsLabel: 'Sin filas',
11
11
  noResultsOverlayLabel: 'Resultados no encontrados',
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: 'Ninguna columna',
13
+ noColumnsOverlayManageColumns: 'Gestionar columnas',
14
+ emptyPivotOverlayLabel: 'Añada campos a filas, columnas y valores para crear una tabla dinámica',
16
15
  // Density selector toolbar button text
17
16
  toolbarDensity: 'Densidad',
18
17
  toolbarDensityLabel: 'Densidad',
@@ -39,14 +38,11 @@ const esESGrid = {
39
38
  toolbarExportPrint: 'Imprimir',
40
39
  toolbarExportExcel: 'Descargar como Excel',
41
40
  // Toolbar pivot button
42
- // toolbarPivot: 'Pivot',
43
-
41
+ toolbarPivot: 'Tabla dinámica',
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: 'Asistente de IA',
50
46
  // Columns management text
51
47
  columnsManagementSearchTitle: 'Buscar',
52
48
  columnsManagementNoColumns: 'Sin columnas',
@@ -108,15 +104,14 @@ const esESGrid = {
108
104
  'headerFilterOperator>=': 'Es mayor o igual que',
109
105
  'headerFilterOperator<': 'Es menor que',
110
106
  'headerFilterOperator<=': 'Es menor o igual que',
111
- // headerFilterClear: 'Clear filter',
112
-
107
+ headerFilterClear: 'Limpiar filtros',
113
108
  // Filter values text
114
109
  filterValueAny: 'cualquiera',
115
110
  filterValueTrue: 'verdadero',
116
111
  filterValueFalse: 'falso',
117
112
  // Column menu text
118
113
  columnMenuLabel: 'Menú',
119
- // columnMenuAriaLabel: (columnName: string) => `${columnName} column menu`,
114
+ columnMenuAriaLabel: columnName => `Menú de la columna ${columnName}`,
120
115
  columnMenuShowColumns: 'Mostrar columnas',
121
116
  columnMenuManageColumns: 'Administrar columnas',
122
117
  columnMenuFilter: 'Filtro',
@@ -124,9 +119,8 @@ const esESGrid = {
124
119
  columnMenuUnsort: 'Desordenar',
125
120
  columnMenuSortAsc: 'Ordenar ASC',
126
121
  columnMenuSortDesc: 'Ordenar DESC',
127
- // columnMenuManagePivot: 'Manage pivot',
128
- // columnMenuManageCharts: 'Manage charts',
129
-
122
+ columnMenuManagePivot: 'Gestionar tabla dinámica',
123
+ columnMenuManageCharts: 'Gestionar gráficos',
130
124
  // Column header text
131
125
  columnHeaderFiltersTooltipActive: count => count > 1 ? `${count} filtros activos` : `${count} filtro activo`,
132
126
  columnHeaderFiltersLabel: 'Mostrar filtros',
@@ -166,18 +160,18 @@ const esESGrid = {
166
160
  collapseDetailPanel: 'Contraer',
167
161
  // Pagination
168
162
  paginationRowsPerPage: 'Filas 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 : `más de ${to}`}`;
171
+ }
172
+ const estimatedLabel = estimated && estimated > to ? `alrededor de ${estimated}` : `más 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 a la primera página';
@@ -195,113 +189,109 @@ const esESGrid = {
195
189
  rowReorderingHeaderName: 'Reordenar filas',
196
190
  // Aggregation
197
191
  aggregationMenuItemHeader: 'Agregación',
198
- // aggregationFunctionLabelNone: 'none',
192
+ aggregationFunctionLabelNone: 'ninguna',
199
193
  aggregationFunctionLabelSum: 'suma',
200
194
  aggregationFunctionLabelAvg: 'promedio',
201
195
  aggregationFunctionLabelMin: 'mínimo',
202
196
  aggregationFunctionLabelMax: 'máximo',
203
197
  aggregationFunctionLabelSize: 'tamaño',
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: 'Tabla dinámica',
200
+ pivotRows: 'Filas',
201
+ pivotColumns: 'Columnas',
202
+ pivotValues: 'Valores',
203
+ pivotCloseButton: 'Cerrar la configuración de tabla dinámica',
204
+ pivotSearchButton: 'Campos de búsqueda',
205
+ pivotSearchControlPlaceholder: 'Campos de búsqueda',
206
+ pivotSearchControlLabel: 'Campos de búsqueda',
207
+ pivotSearchControlClear: 'Limpiar la búsqueda',
208
+ pivotNoFields: 'Ningún campo',
209
+ pivotMenuMoveUp: 'Mover arriba',
210
+ pivotMenuMoveDown: 'Mover abajo',
211
+ pivotMenuMoveToTop: 'Mover al inicio',
212
+ pivotMenuMoveToBottom: 'Mover al final',
213
+ pivotMenuRows: 'Filas',
214
+ pivotMenuColumns: 'Columnas',
215
+ pivotMenuValues: 'Valores',
216
+ pivotMenuOptions: 'Opciones de campo',
217
+ pivotMenuAddToRows: 'Añadir a filas',
218
+ pivotMenuAddToColumns: 'Añadir a columnas',
219
+ pivotMenuAddToValues: 'Añadir a valores',
220
+ pivotMenuRemove: 'Eliminar',
221
+ pivotDragToRows: 'Arrastrar aquí para crear filas',
222
+ pivotDragToColumns: 'Arrastrar aquí para crear columnas',
223
+ pivotDragToValues: 'Arrastrar aquí para crear valores',
224
+ pivotYearColumnHeaderName: '(Año)',
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: 'No hay ningún gráfico disponible',
228
+ chartsChartNotSelected: 'Seleccionar un tipo de gráfico para configurar sus opciones',
229
+ chartsTabChart: 'Gráfico',
230
+ chartsTabFields: 'Campos',
231
+ chartsTabCustomize: 'Personalizar',
232
+ chartsCloseButton: 'Cerrar la configuración de gráficos',
233
+ chartsSyncButtonLabel: 'Sincronizar gráfico',
234
+ chartsSearchPlaceholder: 'Campos de búsqueda',
235
+ chartsSearchLabel: 'Campos de búsqueda',
236
+ chartsSearchClear: 'Limpiar búsqueda',
237
+ chartsNoFields: 'Ningún campo',
238
+ chartsFieldBlocked: 'Este campo no se puede añadir a ninguna sección',
239
+ chartsCategories: 'Categorías',
240
+ chartsSeries: 'Series',
241
+ chartsMenuAddToDimensions: dimensionLabel => `Añadir a ${dimensionLabel}`,
242
+ chartsMenuAddToValues: valuesLabel => `Añadir a ${valuesLabel}`,
243
+ chartsMenuMoveUp: 'Mover arriba',
244
+ chartsMenuMoveDown: 'Mover abajo',
245
+ chartsMenuMoveToTop: 'Mover al inicio',
246
+ chartsMenuMoveToBottom: 'Mover al final',
247
+ chartsMenuOptions: 'Opciones de campo',
248
+ chartsMenuRemove: 'Eliminar',
249
+ chartsDragToDimensions: dimensionLabel => `Arrastrar aquí para utilizar la columna como ${dimensionLabel}`,
250
+ chartsDragToValues: valuesLabel => `Arrastrar aquí para utilizar la columna 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: 'Asistente de IA',
253
+ aiAssistantPanelClose: 'Cerrar el asistente de IA',
254
+ aiAssistantPanelNewConversation: 'Nueva conversación',
255
+ aiAssistantPanelConversationHistory: 'Historial de conversaciones',
256
+ aiAssistantPanelEmptyConversation: 'El historial de conversaciones está vacío',
257
+ aiAssistantSuggestions: 'Sugerencias',
267
258
  // Prompt field
268
259
  promptFieldLabel: 'Prompt',
269
260
  promptFieldPlaceholder: 'Escribe un prompt…',
270
261
  promptFieldPlaceholderWithRecording: 'Escriba o grabe un prompt…',
271
262
  promptFieldPlaceholderListening: 'Esperando por un prompt…',
272
- // promptFieldSpeechRecognitionNotSupported: 'Speech recognition is not supported in this browser',
263
+ promptFieldSpeechRecognitionNotSupported: 'El reconocimiento de voz no está soportado en este navegador',
273
264
  promptFieldSend: 'Enviar',
274
265
  promptFieldRecord: 'Grabar',
275
- promptFieldStopRecording: 'Parar de grabar'
276
-
266
+ promptFieldStopRecording: 'Parar de grabar',
277
267
  // Prompt
278
- // promptRerun: 'Run again',
279
- // promptProcessing: 'Processing…',
280
- // promptAppliedChanges: 'Applied changes',
281
-
268
+ promptRerun: 'Ejecutar de nuevo',
269
+ promptProcessing: 'Procesando…',
270
+ promptAppliedChanges: 'Se han aplicado los cambios',
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} es uno de: ${value}`;
278
+ }
279
+ return `${column} ${operator} ${value}`;
280
+ },
281
+ promptChangeFilterDescription: (column, operator, value) => {
282
+ if (operator === 'is any of') {
283
+ return `Filtrar por ${column} cuando sea uno de: ${value}`;
284
+ }
285
+ return `Filtrar por ${column} ${operator} ${value}`;
286
+ },
287
+ promptChangeSortDescription: (column, direction) => `Ordenar por ${column} (${direction})`,
288
+ promptChangePivotEnableLabel: 'Tabla dinámica',
289
+ promptChangePivotEnableDescription: 'Activar tabla dinámica',
290
+ promptChangePivotColumnsLabel: count => `Columnas (${count})`,
291
+ promptChangePivotColumnsDescription: (column, direction) => `${column}${direction ? ` (${direction})` : ''}`,
292
+ promptChangePivotRowsLabel: count => `Filas (${count})`,
293
+ promptChangePivotValuesLabel: count => `Valores (${count})`,
294
+ promptChangePivotValuesDescription: (column, aggregation) => `${column} (${aggregation})`,
295
+ promptChangeChartsLabel: (dimensionsCount, valuesCount) => `Dimensiones (${dimensionsCount}), Valores (${valuesCount})`
306
296
  };
307
297
  const esES = exports.esES = (0, _getGridLocalization.getGridLocalization)(esESGrid);
package/locales/faIR.js CHANGED
@@ -304,5 +304,6 @@ const faIRGrid = {
304
304
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
305
305
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
306
306
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
307
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
307
308
  };
308
309
  const faIR = exports.faIR = (0, _getGridLocalization.getGridLocalization)(faIRGrid);
package/locales/fiFI.js CHANGED
@@ -305,5 +305,6 @@ const fiFIGrid = {
305
305
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
306
306
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
307
307
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
308
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
308
309
  };
309
310
  const fiFI = exports.fiFI = (0, _getGridLocalization.getGridLocalization)(fiFIGrid);
package/locales/frFR.js CHANGED
@@ -301,5 +301,6 @@ const frFRGrid = {
301
301
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
302
302
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
303
303
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
304
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
304
305
  };
305
306
  const frFR = exports.frFR = (0, _getGridLocalization.getGridLocalization)(frFRGrid);
package/locales/heIL.js CHANGED
@@ -303,5 +303,6 @@ const heILGrid = {
303
303
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
304
304
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
305
305
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
306
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
306
307
  };
307
308
  const heIL = exports.heIL = (0, _getGridLocalization.getGridLocalization)(heILGrid);
package/locales/hrHR.js CHANGED
@@ -323,5 +323,6 @@ const hrHRGrid = {
323
323
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
324
324
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
325
325
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
326
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
326
327
  };
327
328
  const hrHR = exports.hrHR = (0, _getGridLocalization.getGridLocalization)(hrHRGrid);
package/locales/huHU.js CHANGED
@@ -303,5 +303,6 @@ const huHUGrid = {
303
303
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
304
304
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
305
305
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
306
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
306
307
  };
307
308
  const huHU = exports.huHU = (0, _getGridLocalization.getGridLocalization)(huHUGrid);
package/locales/hyAM.js CHANGED
@@ -329,5 +329,6 @@ const hyAMGrid = {
329
329
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
330
330
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
331
331
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
332
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
332
333
  };
333
334
  const hyAM = exports.hyAM = (0, _getGridLocalization.getGridLocalization)(hyAMGrid);
package/locales/idID.js CHANGED
@@ -295,5 +295,6 @@ const idIDGrid = exports.idIDGrid = {
295
295
  promptChangePivotRowsLabel: count => `Baris (${count})`,
296
296
  promptChangePivotValuesLabel: count => `Nilai (${count})`,
297
297
  promptChangePivotValuesDescription: (column, aggregation) => `${column} (${aggregation})`
298
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
298
299
  };
299
300
  const idID = exports.idID = (0, _getGridLocalization.getGridLocalization)(idIDGrid);
package/locales/isIS.js CHANGED
@@ -305,5 +305,6 @@ const isISGrid = {
305
305
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
306
306
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
307
307
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
308
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
308
309
  };
309
310
  const isIS = exports.isIS = (0, _getGridLocalization.getGridLocalization)(isISGrid);
package/locales/itIT.js CHANGED
@@ -293,5 +293,6 @@ const itITGrid = {
293
293
  promptChangePivotRowsLabel: count => `Righe (${count})`,
294
294
  promptChangePivotValuesLabel: count => `Valori (${count})`,
295
295
  promptChangePivotValuesDescription: (column, aggregation) => `${column} (${aggregation})`
296
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
296
297
  };
297
298
  const itIT = exports.itIT = (0, _getGridLocalization.getGridLocalization)(itITGrid);
package/locales/jaJP.js CHANGED
@@ -305,5 +305,6 @@ const jaJPGrid = {
305
305
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
306
306
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
307
307
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
308
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
308
309
  };
309
310
  const jaJP = exports.jaJP = (0, _getGridLocalization.getGridLocalization)(jaJPGrid);
package/locales/koKR.js CHANGED
@@ -295,5 +295,6 @@ const koKRGrid = {
295
295
  promptChangePivotRowsLabel: count => `(${count}) 개의 행`,
296
296
  promptChangePivotValuesLabel: count => `(${count}) 개의 값`,
297
297
  promptChangePivotValuesDescription: (column, aggregation) => `${column} (${aggregation})`
298
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
298
299
  };
299
300
  const koKR = exports.koKR = (0, _getGridLocalization.getGridLocalization)(koKRGrid);
package/locales/nbNO.js CHANGED
@@ -303,5 +303,6 @@ const nbNOGrid = {
303
303
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
304
304
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
305
305
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
306
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
306
307
  };
307
308
  const nbNO = exports.nbNO = (0, _getGridLocalization.getGridLocalization)(nbNOGrid);
package/locales/nlNL.js CHANGED
@@ -304,5 +304,6 @@ const nlNLGrid = {
304
304
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
305
305
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
306
306
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
307
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
307
308
  };
308
309
  const nlNL = exports.nlNL = (0, _getGridLocalization.getGridLocalization)(nlNLGrid);
package/locales/nnNO.js CHANGED
@@ -295,5 +295,6 @@ const nnNOGrid = {
295
295
  promptChangePivotRowsLabel: count => `Rader (${count})`,
296
296
  promptChangePivotValuesLabel: count => `Verdiar (${count})`,
297
297
  promptChangePivotValuesDescription: (column, aggregation) => `${column} (${aggregation})`
298
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
298
299
  };
299
300
  const nnNO = exports.nnNO = (0, _getGridLocalization.getGridLocalization)(nnNOGrid);
package/locales/plPL.js CHANGED
@@ -300,5 +300,6 @@ const plPLGrid = {
300
300
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
301
301
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
302
302
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
303
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
303
304
  };
304
305
  const plPL = exports.plPL = (0, _getGridLocalization.getGridLocalization)(plPLGrid);
package/locales/ptBR.js CHANGED
@@ -292,5 +292,6 @@ const ptBRGrid = {
292
292
  promptChangePivotRowsLabel: count => `Linhas (${count})`,
293
293
  promptChangePivotValuesLabel: count => `Valores (${count})`,
294
294
  promptChangePivotValuesDescription: (column, aggregation) => `${column} (${aggregation})`
295
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
295
296
  };
296
297
  const ptBR = exports.ptBR = (0, _getGridLocalization.getGridLocalization)(ptBRGrid);
package/locales/ptPT.js CHANGED
@@ -303,5 +303,6 @@ const ptPTGrid = {
303
303
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
304
304
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
305
305
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
306
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
306
307
  };
307
308
  const ptPT = exports.ptPT = (0, _getGridLocalization.getGridLocalization)(ptPTGrid);
package/locales/roRO.js CHANGED
@@ -303,5 +303,6 @@ const roROGrid = {
303
303
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
304
304
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
305
305
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
306
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
306
307
  };
307
308
  const roRO = exports.roRO = (0, _getGridLocalization.getGridLocalization)(roROGrid);
package/locales/ruRU.js CHANGED
@@ -325,5 +325,6 @@ const ruRUGrid = {
325
325
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
326
326
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
327
327
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
328
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
328
329
  };
329
330
  const ruRU = exports.ruRU = (0, _getGridLocalization.getGridLocalization)(ruRUGrid);
package/locales/skSK.js CHANGED
@@ -331,5 +331,6 @@ const skSKGrid = {
331
331
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
332
332
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
333
333
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
334
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
334
335
  };
335
336
  const skSK = exports.skSK = (0, _getGridLocalization.getGridLocalization)(skSKGrid);
package/locales/svSE.js CHANGED
@@ -305,5 +305,6 @@ const svSEGrid = {
305
305
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
306
306
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
307
307
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
308
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
308
309
  };
309
310
  const svSE = exports.svSE = (0, _getGridLocalization.getGridLocalization)(svSEGrid);
package/locales/trTR.js CHANGED
@@ -303,5 +303,6 @@ const trTRGrid = {
303
303
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
304
304
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
305
305
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
306
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
306
307
  };
307
308
  const trTR = exports.trTR = (0, _getGridLocalization.getGridLocalization)(trTRGrid);
package/locales/ukUA.js CHANGED
@@ -325,5 +325,6 @@ const ukUAGrid = {
325
325
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
326
326
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
327
327
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
328
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
328
329
  };
329
330
  const ukUA = exports.ukUA = (0, _getGridLocalization.getGridLocalization)(ukUAGrid);
package/locales/urPK.js CHANGED
@@ -305,5 +305,6 @@ const urPKGrid = {
305
305
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
306
306
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
307
307
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
308
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
308
309
  };
309
310
  const urPK = exports.urPK = (0, _getGridLocalization.getGridLocalization)(urPKGrid);
package/locales/viVN.js CHANGED
@@ -305,5 +305,6 @@ const viVNGrid = {
305
305
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
306
306
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
307
307
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
308
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
308
309
  };
309
310
  const viVN = exports.viVN = (0, _getGridLocalization.getGridLocalization)(viVNGrid);
package/locales/zhCN.js CHANGED
@@ -301,5 +301,6 @@ const zhCNGrid = {
301
301
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
302
302
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
303
303
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
304
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
304
305
  };
305
306
  const zhCN = exports.zhCN = (0, _getGridLocalization.getGridLocalization)(zhCNGrid);
package/locales/zhHK.js CHANGED
@@ -301,5 +301,6 @@ const zhHKGrid = {
301
301
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
302
302
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
303
303
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
304
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
304
305
  };
305
306
  const zhHK = exports.zhHK = (0, _getGridLocalization.getGridLocalization)(zhHKGrid);
package/locales/zhTW.js CHANGED
@@ -301,5 +301,6 @@ const zhTWGrid = {
301
301
  // promptChangePivotRowsLabel: (count: number) => `Rows (${count})`,
302
302
  // promptChangePivotValuesLabel: (count: number) => `Values (${count})`,
303
303
  // promptChangePivotValuesDescription: (column: string, aggregation: string) => `${column} (${aggregation})`,
304
+ // promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => `Dimensions (${dimensionsCount}), Values (${valuesCount})`,
304
305
  };
305
306
  const zhTW = exports.zhTW = (0, _getGridLocalization.getGridLocalization)(zhTWGrid);
@@ -219,6 +219,7 @@ export interface GridLocaleText {
219
219
  promptChangePivotRowsLabel: (count: number) => string;
220
220
  promptChangePivotValuesLabel: (count: number) => string;
221
221
  promptChangePivotValuesDescription: (column: string, aggregation: string) => string;
222
+ promptChangeChartsLabel: (dimensionsCount: number, valuesCount: number) => string;
222
223
  promptFieldLabel: string;
223
224
  promptFieldPlaceholder: string;
224
225
  promptFieldPlaceholderWithRecording: string;
@@ -0,0 +1,19 @@
1
+ import { RefObject } from '@mui/x-internals/types';
2
+ import { GridPrivateApiCommunity } from "../api/gridApiCommunity.js";
3
+ import { DataGridProcessedProps } from "../props/DataGridProps.js";
4
+ import { GridEditingApi } from "../api/gridEditingApi.js";
5
+ /**
6
+ * Get the cell editable condition function
7
+ * @param {Object} params The cell parameters
8
+ * @param {Object} params.rowNode The row node
9
+ * @param {Object} params.colDef The column definition
10
+ * @param {any} params.value The cell value
11
+ * @returns {boolean} Whether the cell is editable
12
+ */
13
+ export type CellEditableConditionFn = (params: Parameters<GridEditingApi['isCellEditable']>[0]) => boolean;
14
+ /**
15
+ * Cell editable configuration interface for internal hooks
16
+ */
17
+ export interface GridCellEditableInternalHook<Api = GridPrivateApiCommunity, Props = DataGridProcessedProps> {
18
+ useIsCellEditable: (apiRef: RefObject<Api>, props: Props) => CellEditableConditionFn;
19
+ }
@@ -0,0 +1,5 @@
1
+ "use strict";
2
+
3
+ Object.defineProperty(exports, "__esModule", {
4
+ value: true
5
+ });
@@ -1,6 +1,7 @@
1
1
  import * as React from 'react';
2
2
  import type { GridRowAriaAttributesInternalHook, GridRowsOverridableMethodsInternalHook } from "./gridRowConfiguration.js";
3
3
  import type { GridAggregationInternalHooks } from "./gridAggregationConfiguration.js";
4
+ import type { GridCellEditableInternalHook } from "./gridCellEditableConfiguration.js";
4
5
  import type { GridCSSVariablesInterface } from "../../constants/cssVariables.js";
5
6
  import { DataGridProcessedProps } from "../props/DataGridProps.js";
6
7
  import type { GridPrivateApiCommon } from "../api/gridApiCommon.js";
@@ -9,7 +10,7 @@ import type { GridParamsOverridableMethodsInternalHook } from "./gridParamsConfi
9
10
  export interface GridAriaAttributesInternalHook {
10
11
  useGridAriaAttributes: () => React.HTMLAttributes<HTMLElement>;
11
12
  }
12
- export interface GridInternalHook<Api, Props> extends GridAriaAttributesInternalHook, GridRowAriaAttributesInternalHook, GridAggregationInternalHooks<Api, Props>, GridRowsOverridableMethodsInternalHook<Api>, GridParamsOverridableMethodsInternalHook<Api> {
13
+ export interface GridInternalHook<Api, Props> extends GridAriaAttributesInternalHook, GridRowAriaAttributesInternalHook, GridCellEditableInternalHook<Api, Props>, GridAggregationInternalHooks<Api, Props>, GridRowsOverridableMethodsInternalHook<Api>, GridParamsOverridableMethodsInternalHook<Api> {
13
14
  useCSSVariables: () => {
14
15
  id: string;
15
16
  variables: GridCSSVariablesInterface;