@mui/x-data-grid 8.0.0-alpha.1 → 8.0.0-alpha.3
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 +330 -7
- package/DataGrid/DataGrid.js +9 -17
- package/components/GridPagination.js +2 -1
- package/components/base/GridOverlays.d.ts +4 -3
- package/components/base/GridOverlays.js +2 -24
- package/components/base/index.d.ts +0 -1
- package/components/base/index.js +1 -2
- package/components/cell/GridCell.js +7 -10
- package/components/columnSelection/GridCellCheckboxRenderer.js +2 -3
- package/components/columnSelection/GridHeaderCheckbox.js +6 -4
- package/components/toolbar/GridToolbarColumnsButton.js +3 -4
- package/components/toolbar/GridToolbarDensitySelector.js +3 -4
- package/components/toolbar/GridToolbarExportContainer.js +3 -4
- package/components/toolbar/GridToolbarFilterButton.d.ts +2 -0
- package/components/toolbar/GridToolbarFilterButton.js +7 -6
- package/components/toolbar/GridToolbarQuickFilter.js +1 -0
- package/components/virtualization/GridVirtualScroller.js +5 -3
- package/constants/dataGridPropsDefaultValues.js +2 -4
- package/constants/localeTextConstants.js +0 -1
- package/hooks/core/strategyProcessing/gridStrategyProcessingApi.d.ts +25 -9
- package/hooks/core/strategyProcessing/gridStrategyProcessingApi.js +5 -1
- package/hooks/core/strategyProcessing/useGridStrategyProcessing.d.ts +3 -6
- package/hooks/core/strategyProcessing/useGridStrategyProcessing.js +7 -8
- package/hooks/features/columnResize/useGridColumnResize.js +2 -1
- package/hooks/features/dimensions/gridDimensionsApi.d.ts +0 -4
- package/hooks/features/dimensions/useGridDimensions.js +3 -19
- package/hooks/features/editing/useGridCellEditing.js +3 -3
- package/hooks/features/editing/useGridRowEditing.js +3 -3
- package/hooks/features/index.d.ts +1 -0
- package/hooks/features/index.js +1 -0
- package/hooks/features/listView/gridListViewSelectors.d.ts +3 -1
- package/hooks/features/listView/gridListViewSelectors.js +3 -1
- package/hooks/features/listView/index.d.ts +1 -0
- package/hooks/features/listView/index.js +1 -0
- package/hooks/features/overlays/useGridOverlays.d.ts +7 -4
- package/hooks/features/overlays/useGridOverlays.js +19 -1
- package/hooks/features/rowSelection/useGridRowSelection.js +0 -9
- package/hooks/features/rowSelection/utils.js +2 -2
- package/hooks/features/rows/gridRowsInterfaces.d.ts +1 -8
- package/hooks/features/rows/gridRowsSelector.d.ts +0 -1
- package/hooks/features/rows/gridRowsSelector.js +0 -1
- package/hooks/features/rows/gridRowsUtils.js +0 -9
- package/hooks/features/rows/index.d.ts +1 -1
- package/hooks/features/rows/index.js +1 -1
- package/hooks/features/rows/useGridRows.js +12 -14
- package/hooks/features/rows/useGridRowsMeta.d.ts +1 -1
- package/hooks/features/virtualization/useGridVirtualScroller.d.ts +1 -1
- package/hooks/features/virtualization/useGridVirtualScroller.js +55 -15
- package/index.js +1 -1
- package/internals/index.d.ts +1 -1
- package/internals/index.js +1 -1
- package/locales/arSD.js +0 -1
- package/locales/beBY.js +0 -1
- package/locales/bgBG.js +0 -1
- package/locales/csCZ.js +0 -1
- package/locales/daDK.js +0 -1
- package/locales/deDE.js +10 -13
- package/locales/elGR.js +0 -1
- package/locales/esES.js +10 -13
- package/locales/faIR.js +0 -1
- package/locales/fiFI.js +0 -1
- package/locales/frFR.js +0 -1
- package/locales/heIL.js +14 -17
- package/locales/hrHR.js +0 -1
- package/locales/huHU.js +0 -1
- package/locales/isIS.js +0 -1
- package/locales/itIT.js +0 -1
- package/locales/jaJP.js +0 -1
- package/locales/koKR.js +0 -1
- package/locales/nbNO.js +0 -1
- package/locales/nlNL.js +0 -1
- package/locales/nnNO.js +0 -1
- package/locales/plPL.js +0 -1
- package/locales/ptBR.js +10 -13
- package/locales/ptPT.js +10 -13
- package/locales/roRO.js +0 -1
- package/locales/ruRU.js +0 -1
- package/locales/skSK.js +0 -1
- package/locales/svSE.js +0 -1
- package/locales/trTR.js +12 -15
- package/locales/ukUA.js +0 -1
- package/locales/urPK.js +0 -1
- package/locales/viVN.js +0 -1
- package/locales/zhCN.js +10 -13
- package/locales/zhHK.js +0 -1
- package/locales/zhTW.js +0 -1
- package/models/api/gridCoreApi.d.ts +1 -1
- package/models/api/gridLocaleTextApi.d.ts +0 -1
- package/models/colDef/gridColDef.d.ts +24 -24
- package/models/events/gridEventLookup.d.ts +1 -0
- package/models/gridDataSource.d.ts +1 -1
- package/models/props/DataGridProps.d.ts +9 -17
- package/modern/DataGrid/DataGrid.js +9 -17
- package/modern/components/GridPagination.js +2 -1
- package/modern/components/base/GridOverlays.js +2 -24
- package/modern/components/base/index.js +1 -2
- package/modern/components/cell/GridCell.js +7 -10
- package/modern/components/columnSelection/GridCellCheckboxRenderer.js +2 -3
- package/modern/components/columnSelection/GridHeaderCheckbox.js +6 -4
- package/modern/components/toolbar/GridToolbarColumnsButton.js +3 -4
- package/modern/components/toolbar/GridToolbarDensitySelector.js +3 -4
- package/modern/components/toolbar/GridToolbarExportContainer.js +3 -4
- package/modern/components/toolbar/GridToolbarFilterButton.js +7 -6
- package/modern/components/toolbar/GridToolbarQuickFilter.js +1 -0
- package/modern/components/virtualization/GridVirtualScroller.js +5 -3
- package/modern/constants/dataGridPropsDefaultValues.js +2 -4
- package/modern/constants/localeTextConstants.js +0 -1
- package/modern/hooks/core/strategyProcessing/gridStrategyProcessingApi.js +5 -1
- package/modern/hooks/core/strategyProcessing/useGridStrategyProcessing.js +7 -8
- package/modern/hooks/features/columnResize/useGridColumnResize.js +2 -1
- package/modern/hooks/features/dimensions/useGridDimensions.js +3 -19
- package/modern/hooks/features/editing/useGridCellEditing.js +3 -3
- package/modern/hooks/features/editing/useGridRowEditing.js +3 -3
- package/modern/hooks/features/index.js +1 -0
- package/modern/hooks/features/listView/gridListViewSelectors.js +3 -1
- package/modern/hooks/features/listView/index.js +1 -0
- package/modern/hooks/features/overlays/useGridOverlays.js +19 -1
- package/modern/hooks/features/rowSelection/useGridRowSelection.js +0 -9
- package/modern/hooks/features/rowSelection/utils.js +2 -2
- package/modern/hooks/features/rows/gridRowsSelector.js +0 -1
- package/modern/hooks/features/rows/gridRowsUtils.js +0 -9
- package/modern/hooks/features/rows/index.js +1 -1
- package/modern/hooks/features/rows/useGridRows.js +12 -14
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +55 -15
- package/modern/index.js +1 -1
- package/modern/internals/index.js +1 -1
- package/modern/locales/arSD.js +0 -1
- package/modern/locales/beBY.js +0 -1
- package/modern/locales/bgBG.js +0 -1
- package/modern/locales/csCZ.js +0 -1
- package/modern/locales/daDK.js +0 -1
- package/modern/locales/deDE.js +10 -13
- package/modern/locales/elGR.js +0 -1
- package/modern/locales/esES.js +10 -13
- package/modern/locales/faIR.js +0 -1
- package/modern/locales/fiFI.js +0 -1
- package/modern/locales/frFR.js +0 -1
- package/modern/locales/heIL.js +14 -17
- package/modern/locales/hrHR.js +0 -1
- package/modern/locales/huHU.js +0 -1
- package/modern/locales/isIS.js +0 -1
- package/modern/locales/itIT.js +0 -1
- package/modern/locales/jaJP.js +0 -1
- package/modern/locales/koKR.js +0 -1
- package/modern/locales/nbNO.js +0 -1
- package/modern/locales/nlNL.js +0 -1
- package/modern/locales/nnNO.js +0 -1
- package/modern/locales/plPL.js +0 -1
- package/modern/locales/ptBR.js +10 -13
- package/modern/locales/ptPT.js +10 -13
- package/modern/locales/roRO.js +0 -1
- package/modern/locales/ruRU.js +0 -1
- package/modern/locales/skSK.js +0 -1
- package/modern/locales/svSE.js +0 -1
- package/modern/locales/trTR.js +12 -15
- package/modern/locales/ukUA.js +0 -1
- package/modern/locales/urPK.js +0 -1
- package/modern/locales/viVN.js +0 -1
- package/modern/locales/zhCN.js +10 -13
- package/modern/locales/zhHK.js +0 -1
- package/modern/locales/zhTW.js +0 -1
- package/node/DataGrid/DataGrid.js +9 -17
- package/node/components/GridPagination.js +2 -1
- package/node/components/base/GridOverlays.js +2 -24
- package/node/components/base/index.js +0 -11
- package/node/components/cell/GridCell.js +7 -10
- package/node/components/columnSelection/GridCellCheckboxRenderer.js +2 -3
- package/node/components/columnSelection/GridHeaderCheckbox.js +6 -4
- package/node/components/toolbar/GridToolbarColumnsButton.js +3 -4
- package/node/components/toolbar/GridToolbarDensitySelector.js +3 -4
- package/node/components/toolbar/GridToolbarExportContainer.js +3 -4
- package/node/components/toolbar/GridToolbarFilterButton.js +7 -6
- package/node/components/toolbar/GridToolbarQuickFilter.js +1 -0
- package/node/components/virtualization/GridVirtualScroller.js +5 -3
- package/node/constants/dataGridPropsDefaultValues.js +2 -4
- package/node/constants/localeTextConstants.js +0 -1
- package/node/hooks/core/strategyProcessing/gridStrategyProcessingApi.js +7 -1
- package/node/hooks/core/strategyProcessing/useGridStrategyProcessing.js +7 -8
- package/node/hooks/features/columnResize/useGridColumnResize.js +2 -1
- package/node/hooks/features/dimensions/useGridDimensions.js +2 -18
- package/node/hooks/features/editing/useGridCellEditing.js +2 -2
- package/node/hooks/features/editing/useGridRowEditing.js +2 -2
- package/node/hooks/features/index.js +11 -0
- package/node/hooks/features/listView/gridListViewSelectors.js +3 -1
- package/node/hooks/features/listView/index.js +16 -0
- package/node/hooks/features/overlays/useGridOverlays.js +21 -1
- package/node/hooks/features/rowSelection/useGridRowSelection.js +0 -9
- package/node/hooks/features/rowSelection/utils.js +2 -2
- package/node/hooks/features/rows/gridRowsSelector.js +1 -2
- package/node/hooks/features/rows/gridRowsUtils.js +0 -9
- package/node/hooks/features/rows/index.js +0 -7
- package/node/hooks/features/rows/useGridRows.js +11 -13
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +55 -15
- package/node/index.js +1 -1
- package/node/internals/index.js +7 -0
- package/node/locales/arSD.js +0 -1
- package/node/locales/beBY.js +0 -1
- package/node/locales/bgBG.js +0 -1
- package/node/locales/csCZ.js +0 -1
- package/node/locales/daDK.js +0 -1
- package/node/locales/deDE.js +10 -13
- package/node/locales/elGR.js +0 -1
- package/node/locales/esES.js +10 -13
- package/node/locales/faIR.js +0 -1
- package/node/locales/fiFI.js +0 -1
- package/node/locales/frFR.js +0 -1
- package/node/locales/heIL.js +14 -17
- package/node/locales/hrHR.js +0 -1
- package/node/locales/huHU.js +0 -1
- package/node/locales/isIS.js +0 -1
- package/node/locales/itIT.js +0 -1
- package/node/locales/jaJP.js +0 -1
- package/node/locales/koKR.js +0 -1
- package/node/locales/nbNO.js +0 -1
- package/node/locales/nlNL.js +0 -1
- package/node/locales/nnNO.js +0 -1
- package/node/locales/plPL.js +0 -1
- package/node/locales/ptBR.js +10 -13
- package/node/locales/ptPT.js +10 -13
- package/node/locales/roRO.js +0 -1
- package/node/locales/ruRU.js +0 -1
- package/node/locales/skSK.js +0 -1
- package/node/locales/svSE.js +0 -1
- package/node/locales/trTR.js +12 -15
- package/node/locales/ukUA.js +0 -1
- package/node/locales/urPK.js +0 -1
- package/node/locales/viVN.js +0 -1
- package/node/locales/zhCN.js +10 -13
- package/node/locales/zhHK.js +0 -1
- package/node/locales/zhTW.js +0 -1
- package/package.json +2 -2
package/modern/locales/ptPT.js
CHANGED
|
@@ -24,17 +24,15 @@ const ptPTGrid = {
|
|
|
24
24
|
toolbarQuickFilterLabel: 'Procurar',
|
|
25
25
|
toolbarQuickFilterDeleteIconLabel: 'Claro',
|
|
26
26
|
// Prompt toolbar field
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
// toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
|
|
37
|
-
|
|
27
|
+
toolbarPromptControlPlaceholder: 'Digite um prompt…',
|
|
28
|
+
toolbarPromptControlWithRecordingPlaceholder: 'Digite ou grave um prompt…',
|
|
29
|
+
toolbarPromptControlRecordingPlaceholder: 'Ouvindo o prompt…',
|
|
30
|
+
toolbarPromptControlLabel: 'Entrada de prompt',
|
|
31
|
+
toolbarPromptControlRecordButtonDefaultLabel: 'Gravar',
|
|
32
|
+
toolbarPromptControlRecordButtonActiveLabel: 'Parar gravação',
|
|
33
|
+
toolbarPromptControlSendActionLabel: 'Enviar',
|
|
34
|
+
toolbarPromptControlSendActionAriaLabel: 'Enviar prompt',
|
|
35
|
+
toolbarPromptControlErrorMessage: 'Ocorreu um erro ao processar a solicitação. Por favor, tente novamente com um prompt diferente.',
|
|
38
36
|
// Export selector toolbar button text
|
|
39
37
|
toolbarExport: 'Exportar',
|
|
40
38
|
toolbarExportLabel: 'Exportar',
|
|
@@ -46,8 +44,7 @@ const ptPTGrid = {
|
|
|
46
44
|
columnsManagementNoColumns: 'Sem colunas',
|
|
47
45
|
columnsManagementShowHideAllText: 'Mostrar/Ocultar Todas',
|
|
48
46
|
columnsManagementReset: 'Repor',
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
columnsManagementDeleteIconLabel: 'Limpar',
|
|
51
48
|
// Filter panel text
|
|
52
49
|
filterPanelAddFilter: 'Adicionar filtro',
|
|
53
50
|
filterPanelRemoveAll: 'Excluir todos',
|
package/modern/locales/roRO.js
CHANGED
|
@@ -28,7 +28,6 @@ const roROGrid = {
|
|
|
28
28
|
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
29
29
|
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
30
30
|
// toolbarPromptControlLabel: 'Prompt input',
|
|
31
|
-
// toolbarPromptControlDeleteIconLabel: 'Clear',
|
|
32
31
|
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
33
32
|
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
34
33
|
// toolbarPromptControlSendActionLabel: 'Send',
|
package/modern/locales/ruRU.js
CHANGED
|
@@ -43,7 +43,6 @@ const ruRUGrid = {
|
|
|
43
43
|
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
44
44
|
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
45
45
|
// toolbarPromptControlLabel: 'Prompt input',
|
|
46
|
-
// toolbarPromptControlDeleteIconLabel: 'Clear',
|
|
47
46
|
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
48
47
|
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
49
48
|
// toolbarPromptControlSendActionLabel: 'Send',
|
package/modern/locales/skSK.js
CHANGED
|
@@ -36,7 +36,6 @@ const skSKGrid = {
|
|
|
36
36
|
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
37
37
|
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
38
38
|
// toolbarPromptControlLabel: 'Prompt input',
|
|
39
|
-
// toolbarPromptControlDeleteIconLabel: 'Clear',
|
|
40
39
|
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
41
40
|
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
42
41
|
// toolbarPromptControlSendActionLabel: 'Send',
|
package/modern/locales/svSE.js
CHANGED
|
@@ -28,7 +28,6 @@ const svSEGrid = {
|
|
|
28
28
|
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
29
29
|
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
30
30
|
// toolbarPromptControlLabel: 'Prompt input',
|
|
31
|
-
// toolbarPromptControlDeleteIconLabel: 'Clear',
|
|
32
31
|
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
33
32
|
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
34
33
|
// toolbarPromptControlSendActionLabel: 'Send',
|
package/modern/locales/trTR.js
CHANGED
|
@@ -24,17 +24,15 @@ const trTRGrid = {
|
|
|
24
24
|
toolbarQuickFilterLabel: 'Ara',
|
|
25
25
|
toolbarQuickFilterDeleteIconLabel: 'Temizle',
|
|
26
26
|
// Prompt toolbar field
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
// toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
|
|
37
|
-
|
|
27
|
+
toolbarPromptControlPlaceholder: 'Bir istem yazın…',
|
|
28
|
+
toolbarPromptControlWithRecordingPlaceholder: 'Bir istem yazın veya kaydedin…',
|
|
29
|
+
toolbarPromptControlRecordingPlaceholder: 'İstem dinleniyor…',
|
|
30
|
+
toolbarPromptControlLabel: 'İstem girişi',
|
|
31
|
+
toolbarPromptControlRecordButtonDefaultLabel: 'Kaydet',
|
|
32
|
+
toolbarPromptControlRecordButtonActiveLabel: 'Kaydı durdur',
|
|
33
|
+
toolbarPromptControlSendActionLabel: 'Gönder',
|
|
34
|
+
toolbarPromptControlSendActionAriaLabel: 'İstemi gönder',
|
|
35
|
+
toolbarPromptControlErrorMessage: 'İstek işlenirken bir hata oluştu. Lütfen farklı bir istemle tekrar deneyin.',
|
|
38
36
|
// Export selector toolbar button text
|
|
39
37
|
toolbarExport: 'Dışa aktar',
|
|
40
38
|
toolbarExportLabel: 'Dışa aktar',
|
|
@@ -46,8 +44,7 @@ const trTRGrid = {
|
|
|
46
44
|
columnsManagementNoColumns: 'Kolon yok',
|
|
47
45
|
columnsManagementShowHideAllText: 'Hepsini Göster/Gizle',
|
|
48
46
|
columnsManagementReset: 'Sıfırla',
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
columnsManagementDeleteIconLabel: 'Temizle',
|
|
51
48
|
// Filter panel text
|
|
52
49
|
filterPanelAddFilter: 'Filtre Ekle',
|
|
53
50
|
filterPanelRemoveAll: 'Hepsini kaldır',
|
|
@@ -61,9 +58,9 @@ const trTRGrid = {
|
|
|
61
58
|
filterPanelInputPlaceholder: 'Filtre değeri',
|
|
62
59
|
// Filter operators text
|
|
63
60
|
filterOperatorContains: 'içerir',
|
|
64
|
-
|
|
61
|
+
filterOperatorDoesNotContain: 'içermiyor',
|
|
65
62
|
filterOperatorEquals: 'eşittir',
|
|
66
|
-
|
|
63
|
+
filterOperatorDoesNotEqual: 'eşit değil',
|
|
67
64
|
filterOperatorStartsWith: 'ile başlar',
|
|
68
65
|
filterOperatorEndsWith: 'ile biter',
|
|
69
66
|
filterOperatorIs: 'eşittir',
|
package/modern/locales/ukUA.js
CHANGED
|
@@ -43,7 +43,6 @@ const ukUAGrid = {
|
|
|
43
43
|
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
44
44
|
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
45
45
|
// toolbarPromptControlLabel: 'Prompt input',
|
|
46
|
-
// toolbarPromptControlDeleteIconLabel: 'Clear',
|
|
47
46
|
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
48
47
|
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
49
48
|
// toolbarPromptControlSendActionLabel: 'Send',
|
package/modern/locales/urPK.js
CHANGED
|
@@ -28,7 +28,6 @@ const urPKGrid = {
|
|
|
28
28
|
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
29
29
|
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
30
30
|
// toolbarPromptControlLabel: 'Prompt input',
|
|
31
|
-
// toolbarPromptControlDeleteIconLabel: 'Clear',
|
|
32
31
|
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
33
32
|
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
34
33
|
// toolbarPromptControlSendActionLabel: 'Send',
|
package/modern/locales/viVN.js
CHANGED
|
@@ -28,7 +28,6 @@ const viVNGrid = {
|
|
|
28
28
|
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
29
29
|
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
30
30
|
// toolbarPromptControlLabel: 'Prompt input',
|
|
31
|
-
// toolbarPromptControlDeleteIconLabel: 'Clear',
|
|
32
31
|
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
33
32
|
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
34
33
|
// toolbarPromptControlSendActionLabel: 'Send',
|
package/modern/locales/zhCN.js
CHANGED
|
@@ -24,17 +24,15 @@ const zhCNGrid = {
|
|
|
24
24
|
toolbarQuickFilterLabel: '搜索',
|
|
25
25
|
toolbarQuickFilterDeleteIconLabel: '清除',
|
|
26
26
|
// Prompt toolbar field
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
30
|
-
|
|
31
|
-
|
|
32
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
// toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
|
|
37
|
-
|
|
27
|
+
toolbarPromptControlPlaceholder: '输入提示词',
|
|
28
|
+
toolbarPromptControlWithRecordingPlaceholder: '输入提示词或点击录音',
|
|
29
|
+
toolbarPromptControlRecordingPlaceholder: '正在录音…',
|
|
30
|
+
toolbarPromptControlLabel: '提示词输入',
|
|
31
|
+
toolbarPromptControlRecordButtonDefaultLabel: '录音',
|
|
32
|
+
toolbarPromptControlRecordButtonActiveLabel: '停止录音',
|
|
33
|
+
toolbarPromptControlSendActionLabel: '发送',
|
|
34
|
+
toolbarPromptControlSendActionAriaLabel: '发送提示词',
|
|
35
|
+
toolbarPromptControlErrorMessage: '处理请求时出现错误。请使用其他提示词再试。',
|
|
38
36
|
// Export selector toolbar button text
|
|
39
37
|
toolbarExport: '导出',
|
|
40
38
|
toolbarExportLabel: '导出',
|
|
@@ -46,8 +44,7 @@ const zhCNGrid = {
|
|
|
46
44
|
columnsManagementNoColumns: '没有列',
|
|
47
45
|
columnsManagementShowHideAllText: '显示/隐藏所有',
|
|
48
46
|
columnsManagementReset: '重置',
|
|
49
|
-
|
|
50
|
-
|
|
47
|
+
columnsManagementDeleteIconLabel: '清除',
|
|
51
48
|
// Filter panel text
|
|
52
49
|
filterPanelAddFilter: '添加筛选器',
|
|
53
50
|
filterPanelRemoveAll: '清除全部',
|
package/modern/locales/zhHK.js
CHANGED
|
@@ -28,7 +28,6 @@ const zhHKGrid = {
|
|
|
28
28
|
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
29
29
|
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
30
30
|
// toolbarPromptControlLabel: 'Prompt input',
|
|
31
|
-
// toolbarPromptControlDeleteIconLabel: 'Clear',
|
|
32
31
|
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
33
32
|
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
34
33
|
// toolbarPromptControlSendActionLabel: 'Send',
|
package/modern/locales/zhTW.js
CHANGED
|
@@ -28,7 +28,6 @@ const zhTWGrid = {
|
|
|
28
28
|
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
29
29
|
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
30
30
|
// toolbarPromptControlLabel: 'Prompt input',
|
|
31
|
-
// toolbarPromptControlDeleteIconLabel: 'Clear',
|
|
32
31
|
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
33
32
|
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
34
33
|
// toolbarPromptControlSendActionLabel: 'Send',
|
|
@@ -332,14 +332,6 @@ DataGridRaw.propTypes = {
|
|
|
332
332
|
clipboardExport: _propTypes.default.bool,
|
|
333
333
|
csvExport: _propTypes.default.bool
|
|
334
334
|
}), _propTypes.default.bool]),
|
|
335
|
-
/**
|
|
336
|
-
* If `select`, a group header checkbox in indeterminate state (like "Select All" checkbox)
|
|
337
|
-
* will select all the rows under it.
|
|
338
|
-
* If `deselect`, it will deselect all the rows under it.
|
|
339
|
-
* Works only if `checkboxSelection` is enabled.
|
|
340
|
-
* @default "deselect"
|
|
341
|
-
*/
|
|
342
|
-
indeterminateCheckboxAction: _propTypes.default.oneOf(['deselect', 'select']),
|
|
343
335
|
/**
|
|
344
336
|
* The initial state of the DataGrid.
|
|
345
337
|
* The data in it will be set in the state on initialization but will not be controlled.
|
|
@@ -697,14 +689,6 @@ DataGridRaw.propTypes = {
|
|
|
697
689
|
* Controls the modes of the rows.
|
|
698
690
|
*/
|
|
699
691
|
rowModesModel: _propTypes.default.object,
|
|
700
|
-
/**
|
|
701
|
-
* The milliseconds delay to wait after measuring the row height before recalculating row positions.
|
|
702
|
-
* Setting it to a lower value could be useful when using dynamic row height,
|
|
703
|
-
* but might reduce performance when displaying a large number of rows.
|
|
704
|
-
* @default 166
|
|
705
|
-
* @deprecated
|
|
706
|
-
*/
|
|
707
|
-
rowPositionsDebounceMs: _propTypes.default.number,
|
|
708
692
|
/**
|
|
709
693
|
* Set of rows of type [[GridRowsProp]].
|
|
710
694
|
* @default []
|
|
@@ -773,5 +757,13 @@ DataGridRaw.propTypes = {
|
|
|
773
757
|
* If `true`, the Data Grid will auto span the cells over the rows having the same value.
|
|
774
758
|
* @default false
|
|
775
759
|
*/
|
|
776
|
-
unstable_rowSpanning: _propTypes.default.bool
|
|
760
|
+
unstable_rowSpanning: _propTypes.default.bool,
|
|
761
|
+
/**
|
|
762
|
+
* If `true`, the Data Grid enables column virtualization when `getRowHeight` is set to `() => 'auto'`.
|
|
763
|
+
* By default, column virtualization is disabled when dynamic row height is enabled to measure the row height correctly.
|
|
764
|
+
* For datasets with a large number of columns, this can cause performance issues.
|
|
765
|
+
* The downside of enabling this prop is that the row height will be estimated based the cells that are currently rendered, which can cause row height change when scrolling horizontally.
|
|
766
|
+
* @default false
|
|
767
|
+
*/
|
|
768
|
+
virtualizeColumnsWithAutoRowHeight: _propTypes.default.bool
|
|
777
769
|
};
|
|
@@ -58,7 +58,8 @@ const defaultLabelDisplayedRows = ({
|
|
|
58
58
|
if (!estimated) {
|
|
59
59
|
return `${from}–${to} of ${count !== -1 ? count : `more than ${to}`}`;
|
|
60
60
|
}
|
|
61
|
-
|
|
61
|
+
const estimateLabel = estimated && estimated > to ? `around ${estimated}` : `more than ${to}`;
|
|
62
|
+
return `${from}–${to} of ${count !== -1 ? count : estimateLabel}`;
|
|
62
63
|
};
|
|
63
64
|
|
|
64
65
|
// A mutable version of a readonly array.
|
|
@@ -5,7 +5,7 @@ var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefau
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", {
|
|
6
6
|
value: true
|
|
7
7
|
});
|
|
8
|
-
exports.
|
|
8
|
+
exports.GridOverlayWrapper = GridOverlayWrapper;
|
|
9
9
|
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
10
|
var React = _interopRequireWildcard(require("react"));
|
|
11
11
|
var _propTypes = _interopRequireDefault(require("prop-types"));
|
|
@@ -91,26 +91,4 @@ process.env.NODE_ENV !== "production" ? GridOverlayWrapper.propTypes = {
|
|
|
91
91
|
// ----------------------------------------------------------------------
|
|
92
92
|
loadingOverlayVariant: _propTypes.default.oneOf(['circular-progress', 'linear-progress', 'skeleton']),
|
|
93
93
|
overlayType: _propTypes.default.oneOf(['loadingOverlay', 'noResultsOverlay', 'noRowsOverlay'])
|
|
94
|
-
} : void 0;
|
|
95
|
-
process.env.NODE_ENV !== "production" ? GridOverlays.propTypes = {
|
|
96
|
-
// ----------------------------- Warning --------------------------------
|
|
97
|
-
// | These PropTypes are generated from the TypeScript type definitions |
|
|
98
|
-
// | To update them edit the TypeScript types and run "pnpm proptypes" |
|
|
99
|
-
// ----------------------------------------------------------------------
|
|
100
|
-
loadingOverlayVariant: _propTypes.default.oneOf(['circular-progress', 'linear-progress', 'skeleton']),
|
|
101
|
-
overlayType: _propTypes.default.oneOf(['loadingOverlay', 'noResultsOverlay', 'noRowsOverlay'])
|
|
102
|
-
} : void 0;
|
|
103
|
-
function GridOverlays(props) {
|
|
104
|
-
const {
|
|
105
|
-
overlayType
|
|
106
|
-
} = props;
|
|
107
|
-
const rootProps = (0, _useGridRootProps.useGridRootProps)();
|
|
108
|
-
if (!overlayType) {
|
|
109
|
-
return null;
|
|
110
|
-
}
|
|
111
|
-
const Overlay = rootProps.slots?.[overlayType];
|
|
112
|
-
const overlayProps = rootProps.slotProps?.[overlayType];
|
|
113
|
-
return /*#__PURE__*/(0, _jsxRuntime.jsx)(GridOverlayWrapper, (0, _extends2.default)({}, props, {
|
|
114
|
-
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(Overlay, (0, _extends2.default)({}, overlayProps))
|
|
115
|
-
}));
|
|
116
|
-
}
|
|
94
|
+
} : void 0;
|
|
@@ -24,15 +24,4 @@ Object.keys(_GridFooterPlaceholder).forEach(function (key) {
|
|
|
24
24
|
return _GridFooterPlaceholder[key];
|
|
25
25
|
}
|
|
26
26
|
});
|
|
27
|
-
});
|
|
28
|
-
var _GridOverlays = require("./GridOverlays");
|
|
29
|
-
Object.keys(_GridOverlays).forEach(function (key) {
|
|
30
|
-
if (key === "default" || key === "__esModule") return;
|
|
31
|
-
if (key in exports && exports[key] === _GridOverlays[key]) return;
|
|
32
|
-
Object.defineProperty(exports, key, {
|
|
33
|
-
enumerable: true,
|
|
34
|
-
get: function () {
|
|
35
|
-
return _GridOverlays[key];
|
|
36
|
-
}
|
|
37
|
-
});
|
|
38
27
|
});
|
|
@@ -21,7 +21,6 @@ var _useGridSelector = require("../../hooks/utils/useGridSelector");
|
|
|
21
21
|
var _useGridApiContext = require("../../hooks/utils/useGridApiContext");
|
|
22
22
|
var _useGridRootProps = require("../../hooks/utils/useGridRootProps");
|
|
23
23
|
var _gridFocusStateSelector = require("../../hooks/features/focus/gridFocusStateSelector");
|
|
24
|
-
var _useGridParamsApi = require("../../hooks/features/rows/useGridParamsApi");
|
|
25
24
|
var _cellBorderUtils = require("../../utils/cellBorderUtils");
|
|
26
25
|
var _gridColumnsInterfaces = require("../../hooks/features/columns/gridColumnsInterfaces");
|
|
27
26
|
var _gridRowSpanningSelectors = require("../../hooks/features/rows/gridRowSpanningSelectors");
|
|
@@ -122,16 +121,13 @@ const GridCell = /*#__PURE__*/React.forwardRef(function GridCell(props, ref) {
|
|
|
122
121
|
// This is required because `.getCellParams` tries to get the `state.rows.tree` entry
|
|
123
122
|
// associated with `rowId`/`fieldId`, but this selector runs after the state has been
|
|
124
123
|
// updated, while `rowId`/`fieldId` reference an entry in the old state.
|
|
125
|
-
|
|
126
|
-
|
|
127
|
-
|
|
128
|
-
return result;
|
|
129
|
-
} catch (error) {
|
|
130
|
-
if (error instanceof _useGridParamsApi.MissingRowIdError) {
|
|
131
|
-
return EMPTY_CELL_PARAMS;
|
|
132
|
-
}
|
|
133
|
-
throw error;
|
|
124
|
+
const row = apiRef.current.getRow(rowId);
|
|
125
|
+
if (!row) {
|
|
126
|
+
return EMPTY_CELL_PARAMS;
|
|
134
127
|
}
|
|
128
|
+
const result = apiRef.current.getCellParams(rowId, field);
|
|
129
|
+
result.api = apiRef.current;
|
|
130
|
+
return result;
|
|
135
131
|
}, _useGridSelector.objectShallowCompare);
|
|
136
132
|
const isSelected = (0, _useGridSelector.useGridSelector)(apiRef, () => apiRef.current.unstable_applyPipeProcessors('isCellSelected', false, {
|
|
137
133
|
id: rowId,
|
|
@@ -219,6 +215,7 @@ const GridCell = /*#__PURE__*/React.forwardRef(function GridCell(props, ref) {
|
|
|
219
215
|
padding: 0,
|
|
220
216
|
opacity: 0,
|
|
221
217
|
width: 0,
|
|
218
|
+
height: 0,
|
|
222
219
|
border: 0
|
|
223
220
|
};
|
|
224
221
|
}
|
|
@@ -87,12 +87,11 @@ const GridCellCheckboxForwardRef = exports.GridCellCheckboxForwardRef = /*#__PUR
|
|
|
87
87
|
if (rowNode.type === 'footer' || rowNode.type === 'pinnedRow') {
|
|
88
88
|
return null;
|
|
89
89
|
}
|
|
90
|
-
const label = apiRef.current.getLocaleText(isChecked ? 'checkboxSelectionUnselectRow' : 'checkboxSelectionSelectRow');
|
|
91
|
-
const checked = rootProps.indeterminateCheckboxAction === 'select' ? isChecked && !isIndeterminate : isChecked;
|
|
90
|
+
const label = apiRef.current.getLocaleText(isChecked && !isIndeterminate ? 'checkboxSelectionUnselectRow' : 'checkboxSelectionSelectRow');
|
|
92
91
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseCheckbox, (0, _extends2.default)({
|
|
93
92
|
ref: handleRef,
|
|
94
93
|
tabIndex: tabIndex,
|
|
95
|
-
checked:
|
|
94
|
+
checked: isChecked && !isIndeterminate,
|
|
96
95
|
onChange: handleChange,
|
|
97
96
|
className: classes.root,
|
|
98
97
|
inputProps: {
|
|
@@ -64,10 +64,13 @@ const GridHeaderCheckbox = exports.GridHeaderCheckbox = /*#__PURE__*/React.forwa
|
|
|
64
64
|
// Convert to an object to make O(1) checking if a row exists or not
|
|
65
65
|
// TODO create selector that returns visibleRowIds/paginatedVisibleRowIds as an object
|
|
66
66
|
return rowIds.reduce((acc, id) => {
|
|
67
|
+
if (!apiRef.current.isRowSelectable(id)) {
|
|
68
|
+
return acc;
|
|
69
|
+
}
|
|
67
70
|
acc[id] = true;
|
|
68
71
|
return acc;
|
|
69
72
|
}, {});
|
|
70
|
-
}, [rootProps.pagination, rootProps.checkboxSelectionVisibleOnly, paginatedVisibleRowIds, visibleRowIds]);
|
|
73
|
+
}, [apiRef, rootProps.pagination, rootProps.checkboxSelectionVisibleOnly, paginatedVisibleRowIds, visibleRowIds]);
|
|
71
74
|
|
|
72
75
|
// Amount of rows selected and that are visible in the current page
|
|
73
76
|
const currentSelectionSize = React.useMemo(() => filteredSelection.filter(id => selectionCandidates[id]).length, [filteredSelection, selectionCandidates]);
|
|
@@ -100,12 +103,11 @@ const GridHeaderCheckbox = exports.GridHeaderCheckbox = /*#__PURE__*/React.forwa
|
|
|
100
103
|
React.useEffect(() => {
|
|
101
104
|
return apiRef.current.subscribeEvent('rowSelectionChange', handleSelectionChange);
|
|
102
105
|
}, [apiRef, handleSelectionChange]);
|
|
103
|
-
const label = apiRef.current.getLocaleText(isChecked ? 'checkboxSelectionUnselectAllRows' : 'checkboxSelectionSelectAllRows');
|
|
104
|
-
const checked = rootProps.indeterminateCheckboxAction === 'select' ? isChecked && !isIndeterminate : isChecked;
|
|
106
|
+
const label = apiRef.current.getLocaleText(isChecked && !isIndeterminate ? 'checkboxSelectionUnselectAllRows' : 'checkboxSelectionSelectAllRows');
|
|
105
107
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseCheckbox, (0, _extends2.default)({
|
|
106
108
|
ref: ref,
|
|
107
109
|
indeterminate: isIndeterminate,
|
|
108
|
-
checked:
|
|
110
|
+
checked: isChecked && !isIndeterminate,
|
|
109
111
|
onChange: handleChange,
|
|
110
112
|
className: classes.root,
|
|
111
113
|
inputProps: {
|
|
@@ -44,7 +44,7 @@ const GridToolbarColumnsButton = exports.GridToolbarColumnsButton = /*#__PURE__*
|
|
|
44
44
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseTooltip, (0, _extends2.default)({
|
|
45
45
|
title: apiRef.current.getLocaleText('toolbarColumnsLabel'),
|
|
46
46
|
enterDelay: 1000
|
|
47
|
-
},
|
|
47
|
+
}, rootProps.slotProps?.baseTooltip, tooltipProps, {
|
|
48
48
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseButton, (0, _extends2.default)({
|
|
49
49
|
ref: ref,
|
|
50
50
|
id: columnButtonId,
|
|
@@ -53,10 +53,9 @@ const GridToolbarColumnsButton = exports.GridToolbarColumnsButton = /*#__PURE__*
|
|
|
53
53
|
"aria-haspopup": "menu",
|
|
54
54
|
"aria-expanded": isOpen,
|
|
55
55
|
"aria-controls": isOpen ? columnPanelId : undefined,
|
|
56
|
-
startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.columnSelectorIcon, {})
|
|
57
|
-
}, buttonProps, {
|
|
56
|
+
startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.columnSelectorIcon, {}),
|
|
58
57
|
onClick: showColumns
|
|
59
|
-
}, rootProps.slotProps?.baseButton, {
|
|
58
|
+
}, rootProps.slotProps?.baseButton, buttonProps, {
|
|
60
59
|
children: apiRef.current.getLocaleText('toolbarColumns')
|
|
61
60
|
}))
|
|
62
61
|
}));
|
|
@@ -91,7 +91,7 @@ const GridToolbarDensitySelector = exports.GridToolbarDensitySelector = /*#__PUR
|
|
|
91
91
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseTooltip, (0, _extends2.default)({
|
|
92
92
|
title: apiRef.current.getLocaleText('toolbarDensityLabel'),
|
|
93
93
|
enterDelay: 1000
|
|
94
|
-
},
|
|
94
|
+
}, rootProps.slotProps?.baseTooltip, tooltipProps, {
|
|
95
95
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseButton, (0, _extends2.default)({
|
|
96
96
|
ref: handleRef,
|
|
97
97
|
size: "small",
|
|
@@ -100,10 +100,9 @@ const GridToolbarDensitySelector = exports.GridToolbarDensitySelector = /*#__PUR
|
|
|
100
100
|
"aria-haspopup": "menu",
|
|
101
101
|
"aria-expanded": open,
|
|
102
102
|
"aria-controls": open ? densityMenuId : undefined,
|
|
103
|
-
id: densityButtonId
|
|
104
|
-
}, buttonProps, {
|
|
103
|
+
id: densityButtonId,
|
|
105
104
|
onClick: handleDensitySelectorOpen
|
|
106
|
-
}, rootProps.slotProps?.baseButton, {
|
|
105
|
+
}, rootProps.slotProps?.baseButton, buttonProps, {
|
|
107
106
|
children: apiRef.current.getLocaleText('toolbarDensity')
|
|
108
107
|
}))
|
|
109
108
|
})), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GridMenu.GridMenu, {
|
|
@@ -50,7 +50,7 @@ const GridToolbarExportContainer = exports.GridToolbarExportContainer = /*#__PUR
|
|
|
50
50
|
children: [/*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseTooltip, (0, _extends2.default)({
|
|
51
51
|
title: apiRef.current.getLocaleText('toolbarExportLabel'),
|
|
52
52
|
enterDelay: 1000
|
|
53
|
-
},
|
|
53
|
+
}, rootProps.slotProps?.baseTooltip, tooltipProps, {
|
|
54
54
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseButton, (0, _extends2.default)({
|
|
55
55
|
ref: handleRef,
|
|
56
56
|
size: "small",
|
|
@@ -59,10 +59,9 @@ const GridToolbarExportContainer = exports.GridToolbarExportContainer = /*#__PUR
|
|
|
59
59
|
"aria-label": apiRef.current.getLocaleText('toolbarExportLabel'),
|
|
60
60
|
"aria-haspopup": "menu",
|
|
61
61
|
"aria-controls": open ? exportMenuId : undefined,
|
|
62
|
-
id: exportButtonId
|
|
63
|
-
}, buttonProps, {
|
|
62
|
+
id: exportButtonId,
|
|
64
63
|
onClick: handleMenuOpen
|
|
65
|
-
}, rootProps.slotProps?.baseButton, {
|
|
64
|
+
}, rootProps.slotProps?.baseButton, buttonProps, {
|
|
66
65
|
children: apiRef.current.getLocaleText('toolbarExport')
|
|
67
66
|
}))
|
|
68
67
|
})), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GridMenu.GridMenu, {
|
|
@@ -45,6 +45,7 @@ const GridToolbarFilterButton = exports.GridToolbarFilterButton = /*#__PURE__*/R
|
|
|
45
45
|
} = props;
|
|
46
46
|
const buttonProps = slotProps.button || {};
|
|
47
47
|
const tooltipProps = slotProps.tooltip || {};
|
|
48
|
+
const badgeProps = slotProps.badge || {};
|
|
48
49
|
const apiRef = (0, _useGridApiContext.useGridApiContext)();
|
|
49
50
|
const rootProps = (0, _useGridRootProps.useGridRootProps)();
|
|
50
51
|
const activeFilters = (0, _useGridSelector.useGridSelector)(apiRef, _gridFilterSelector.gridFilterActiveItemsSelector);
|
|
@@ -102,7 +103,7 @@ const GridToolbarFilterButton = exports.GridToolbarFilterButton = /*#__PURE__*/R
|
|
|
102
103
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseTooltip, (0, _extends2.default)({
|
|
103
104
|
title: tooltipContentNode,
|
|
104
105
|
enterDelay: 1000
|
|
105
|
-
},
|
|
106
|
+
}, rootProps.slotProps?.baseTooltip, tooltipProps, {
|
|
106
107
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseButton, (0, _extends2.default)({
|
|
107
108
|
ref: ref,
|
|
108
109
|
id: filterButtonId,
|
|
@@ -111,14 +112,14 @@ const GridToolbarFilterButton = exports.GridToolbarFilterButton = /*#__PURE__*/R
|
|
|
111
112
|
"aria-controls": isOpen ? filterPanelId : undefined,
|
|
112
113
|
"aria-expanded": isOpen,
|
|
113
114
|
"aria-haspopup": true,
|
|
114
|
-
startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseBadge, {
|
|
115
|
+
startIcon: /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseBadge, (0, _extends2.default)({
|
|
115
116
|
badgeContent: activeFilters.length,
|
|
116
|
-
color: "primary"
|
|
117
|
+
color: "primary"
|
|
118
|
+
}, rootProps.slotProps?.baseBadge, badgeProps, {
|
|
117
119
|
children: /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.openFilterButtonIcon, {})
|
|
118
|
-
})
|
|
119
|
-
}, buttonProps, {
|
|
120
|
+
})),
|
|
120
121
|
onClick: toggleFilter
|
|
121
|
-
}, rootProps.slotProps?.baseButton, {
|
|
122
|
+
}, rootProps.slotProps?.baseButton, buttonProps, {
|
|
122
123
|
children: apiRef.current.getLocaleText('toolbarFilters')
|
|
123
124
|
}))
|
|
124
125
|
}));
|
|
@@ -86,6 +86,7 @@ function GridToolbarQuickFilter(props) {
|
|
|
86
86
|
apiRef.current.setQuickFilterValues(newQuickFilterValues);
|
|
87
87
|
}, [apiRef, quickFilterParser]);
|
|
88
88
|
const debouncedUpdateSearchValue = React.useMemo(() => (0, _utils.unstable_debounce)(updateSearchValue, debounceMs), [updateSearchValue, debounceMs]);
|
|
89
|
+
React.useEffect(() => debouncedUpdateSearchValue.clear, [debouncedUpdateSearchValue]);
|
|
89
90
|
const handleSearchValueChange = React.useCallback(event => {
|
|
90
91
|
const newSearchValue = event.target.value;
|
|
91
92
|
setSearchValue(newSearchValue);
|
|
@@ -18,7 +18,6 @@ var _gridClasses = require("../../constants/gridClasses");
|
|
|
18
18
|
var _dimensions = require("../../hooks/features/dimensions");
|
|
19
19
|
var _useGridVirtualScroller = require("../../hooks/features/virtualization/useGridVirtualScroller");
|
|
20
20
|
var _useGridOverlays = require("../../hooks/features/overlays/useGridOverlays");
|
|
21
|
-
var _GridOverlays = require("../base/GridOverlays");
|
|
22
21
|
var _GridHeaders = require("../GridHeaders");
|
|
23
22
|
var _GridMainContainer = require("./GridMainContainer");
|
|
24
23
|
var _GridTopContainer = require("./GridTopContainer");
|
|
@@ -63,7 +62,10 @@ function GridVirtualScroller(props) {
|
|
|
63
62
|
const apiRef = (0, _useGridApiContext.useGridApiContext)();
|
|
64
63
|
const rootProps = (0, _useGridRootProps.useGridRootProps)();
|
|
65
64
|
const dimensions = (0, _useGridSelector.useGridSelector)(apiRef, _dimensions.gridDimensionsSelector);
|
|
66
|
-
const
|
|
65
|
+
const {
|
|
66
|
+
getOverlay,
|
|
67
|
+
overlaysProps
|
|
68
|
+
} = (0, _useGridOverlays.useGridOverlays)();
|
|
67
69
|
const classes = useUtilityClasses(rootProps, dimensions, overlaysProps.loadingOverlayVariant);
|
|
68
70
|
const virtualScroller = (0, _useGridVirtualScroller.useGridVirtualScroller)();
|
|
69
71
|
const {
|
|
@@ -92,7 +94,7 @@ function GridVirtualScroller(props) {
|
|
|
92
94
|
position: "top",
|
|
93
95
|
virtualScroller: virtualScroller
|
|
94
96
|
})]
|
|
95
|
-
}),
|
|
97
|
+
}), getOverlay(), /*#__PURE__*/(0, _jsxRuntime.jsx)(_GridVirtualScrollerContent.GridVirtualScrollerContent, (0, _extends2.default)({}, getContentProps(), {
|
|
96
98
|
children: /*#__PURE__*/(0, _jsxRuntime.jsxs)(_GridVirtualScrollerRenderZone.GridVirtualScrollerRenderZone, (0, _extends2.default)({}, getRenderZoneProps(), {
|
|
97
99
|
children: [rows, /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.detailPanels, {
|
|
98
100
|
virtualScroller: virtualScroller
|
|
@@ -40,8 +40,6 @@ const DATA_GRID_PROPS_DEFAULT_VALUES = exports.DATA_GRID_PROPS_DEFAULT_VALUES =
|
|
|
40
40
|
hideFooterSelectedRowCount: false,
|
|
41
41
|
ignoreDiacritics: false,
|
|
42
42
|
ignoreValueFormatterDuringExport: false,
|
|
43
|
-
// TODO v8: Update to 'select'
|
|
44
|
-
indeterminateCheckboxAction: 'deselect',
|
|
45
43
|
keepColumnPositionIfDraggedOutside: false,
|
|
46
44
|
keepNonExistentRowsSelected: false,
|
|
47
45
|
loading: false,
|
|
@@ -53,7 +51,6 @@ const DATA_GRID_PROPS_DEFAULT_VALUES = exports.DATA_GRID_PROPS_DEFAULT_VALUES =
|
|
|
53
51
|
resizeThrottleMs: 60,
|
|
54
52
|
rowBufferPx: 150,
|
|
55
53
|
rowHeight: 52,
|
|
56
|
-
rowPositionsDebounceMs: 166,
|
|
57
54
|
rows: [],
|
|
58
55
|
rowSelection: true,
|
|
59
56
|
rowSpacingType: 'margin',
|
|
@@ -62,5 +59,6 @@ const DATA_GRID_PROPS_DEFAULT_VALUES = exports.DATA_GRID_PROPS_DEFAULT_VALUES =
|
|
|
62
59
|
sortingMode: 'client',
|
|
63
60
|
sortingOrder: ['asc', 'desc', null],
|
|
64
61
|
throttleRowsMs: 0,
|
|
65
|
-
unstable_rowSpanning: false
|
|
62
|
+
unstable_rowSpanning: false,
|
|
63
|
+
virtualizeColumnsWithAutoRowHeight: false
|
|
66
64
|
};
|
|
@@ -32,7 +32,6 @@ const GRID_DEFAULT_LOCALE_TEXT = exports.GRID_DEFAULT_LOCALE_TEXT = {
|
|
|
32
32
|
toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
33
33
|
toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
34
34
|
toolbarPromptControlLabel: 'Prompt input',
|
|
35
|
-
toolbarPromptControlDeleteIconLabel: 'Clear',
|
|
36
35
|
toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
37
36
|
toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
38
37
|
toolbarPromptControlSendActionLabel: 'Send',
|
|
@@ -2,4 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Object.defineProperty(exports, "__esModule", {
|
|
4
4
|
value: true
|
|
5
|
-
});
|
|
5
|
+
});
|
|
6
|
+
exports.GridStrategyGroup = void 0;
|
|
7
|
+
let GridStrategyGroup = exports.GridStrategyGroup = /*#__PURE__*/function (GridStrategyGroup) {
|
|
8
|
+
GridStrategyGroup["DataSource"] = "dataSource";
|
|
9
|
+
GridStrategyGroup["RowTree"] = "rowTree";
|
|
10
|
+
return GridStrategyGroup;
|
|
11
|
+
}({});
|