@mui/x-data-grid 8.0.0-alpha.0 → 8.0.0-alpha.2
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 +651 -6
- package/DataGrid/DataGrid.js +9 -9
- package/README.md +2 -2
- package/components/GridLoadingOverlay.d.ts +2 -2
- package/components/GridLoadingOverlay.js +4 -4
- 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 +10 -10
- package/components/columnSelection/GridCellCheckboxRenderer.js +2 -3
- package/components/columnSelection/GridHeaderCheckbox.js +2 -3
- package/components/columnsManagement/GridColumnsManagement.d.ts +2 -0
- package/components/columnsManagement/GridColumnsManagement.js +53 -6
- 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 -3
- package/constants/gridClasses.d.ts +24 -0
- package/constants/gridClasses.js +1 -1
- package/constants/localeTextConstants.js +11 -0
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +2 -2
- package/hooks/features/dimensions/gridDimensionsApi.d.ts +0 -4
- package/hooks/features/dimensions/useGridDimensions.js +3 -19
- 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/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 -0
- package/internals/index.js +1 -0
- package/joy/joySlots.js +7 -2
- package/locales/arSD.js +12 -0
- package/locales/beBY.js +12 -0
- package/locales/bgBG.js +13 -0
- package/locales/csCZ.js +13 -0
- package/locales/daDK.js +13 -0
- package/locales/deDE.js +11 -0
- package/locales/elGR.js +12 -0
- package/locales/esES.js +15 -4
- package/locales/faIR.js +13 -0
- package/locales/fiFI.js +13 -0
- package/locales/frFR.js +13 -0
- package/locales/heIL.js +13 -0
- package/locales/hrHR.js +13 -0
- package/locales/huHU.js +13 -0
- package/locales/isIS.js +12 -0
- package/locales/itIT.js +13 -0
- package/locales/jaJP.js +13 -0
- package/locales/koKR.js +12 -0
- package/locales/nbNO.js +13 -0
- package/locales/nlNL.js +13 -0
- package/locales/nnNO.js +13 -0
- package/locales/plPL.js +13 -0
- package/locales/ptBR.js +11 -0
- package/locales/ptPT.js +11 -0
- package/locales/roRO.js +12 -0
- package/locales/ruRU.js +13 -0
- package/locales/skSK.js +12 -0
- package/locales/svSE.js +17 -5
- package/locales/trTR.js +13 -0
- package/locales/ukUA.js +12 -0
- package/locales/urPK.js +12 -0
- package/locales/viVN.js +13 -0
- package/locales/zhCN.js +15 -4
- package/locales/zhHK.js +12 -0
- package/locales/zhTW.js +12 -0
- package/models/api/gridCoreApi.d.ts +1 -1
- package/models/api/gridLocaleTextApi.d.ts +10 -0
- package/models/colDef/gridColDef.d.ts +28 -24
- package/models/gridDataSource.d.ts +12 -12
- package/models/props/DataGridProps.d.ts +9 -9
- package/modern/DataGrid/DataGrid.js +9 -9
- package/modern/components/GridLoadingOverlay.js +4 -4
- 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 +10 -10
- package/modern/components/columnSelection/GridCellCheckboxRenderer.js +2 -3
- package/modern/components/columnSelection/GridHeaderCheckbox.js +2 -3
- package/modern/components/columnsManagement/GridColumnsManagement.js +53 -6
- 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 -3
- package/modern/constants/gridClasses.js +1 -1
- package/modern/constants/localeTextConstants.js +11 -0
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +2 -2
- package/modern/hooks/features/dimensions/useGridDimensions.js +3 -19
- 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/virtualization/useGridVirtualScroller.js +55 -15
- package/modern/index.js +1 -1
- package/modern/internals/index.js +1 -0
- package/modern/joy/joySlots.js +7 -2
- package/modern/locales/arSD.js +12 -0
- package/modern/locales/beBY.js +12 -0
- package/modern/locales/bgBG.js +13 -0
- package/modern/locales/csCZ.js +13 -0
- package/modern/locales/daDK.js +13 -0
- package/modern/locales/deDE.js +11 -0
- package/modern/locales/elGR.js +12 -0
- package/modern/locales/esES.js +15 -4
- package/modern/locales/faIR.js +13 -0
- package/modern/locales/fiFI.js +13 -0
- package/modern/locales/frFR.js +13 -0
- package/modern/locales/heIL.js +13 -0
- package/modern/locales/hrHR.js +13 -0
- package/modern/locales/huHU.js +13 -0
- package/modern/locales/isIS.js +12 -0
- package/modern/locales/itIT.js +13 -0
- package/modern/locales/jaJP.js +13 -0
- package/modern/locales/koKR.js +12 -0
- package/modern/locales/nbNO.js +13 -0
- package/modern/locales/nlNL.js +13 -0
- package/modern/locales/nnNO.js +13 -0
- package/modern/locales/plPL.js +13 -0
- package/modern/locales/ptBR.js +11 -0
- package/modern/locales/ptPT.js +11 -0
- package/modern/locales/roRO.js +12 -0
- package/modern/locales/ruRU.js +13 -0
- package/modern/locales/skSK.js +12 -0
- package/modern/locales/svSE.js +17 -5
- package/modern/locales/trTR.js +13 -0
- package/modern/locales/ukUA.js +12 -0
- package/modern/locales/urPK.js +12 -0
- package/modern/locales/viVN.js +13 -0
- package/modern/locales/zhCN.js +15 -4
- package/modern/locales/zhHK.js +12 -0
- package/modern/locales/zhTW.js +12 -0
- package/node/DataGrid/DataGrid.js +9 -9
- package/node/components/GridLoadingOverlay.js +4 -4
- 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 +10 -10
- package/node/components/columnSelection/GridCellCheckboxRenderer.js +2 -3
- package/node/components/columnSelection/GridHeaderCheckbox.js +2 -3
- package/node/components/columnsManagement/GridColumnsManagement.js +53 -6
- 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 -3
- package/node/constants/gridClasses.js +1 -1
- package/node/constants/localeTextConstants.js +11 -0
- package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +2 -2
- package/node/hooks/features/dimensions/useGridDimensions.js +2 -18
- 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/virtualization/useGridVirtualScroller.js +55 -15
- package/node/index.js +1 -1
- package/node/internals/index.js +9 -2
- package/node/joy/joySlots.js +7 -2
- package/node/locales/arSD.js +12 -0
- package/node/locales/beBY.js +12 -0
- package/node/locales/bgBG.js +13 -0
- package/node/locales/csCZ.js +13 -0
- package/node/locales/daDK.js +13 -0
- package/node/locales/deDE.js +11 -0
- package/node/locales/elGR.js +12 -0
- package/node/locales/esES.js +15 -4
- package/node/locales/faIR.js +13 -0
- package/node/locales/fiFI.js +13 -0
- package/node/locales/frFR.js +13 -0
- package/node/locales/heIL.js +13 -0
- package/node/locales/hrHR.js +13 -0
- package/node/locales/huHU.js +13 -0
- package/node/locales/isIS.js +12 -0
- package/node/locales/itIT.js +13 -0
- package/node/locales/jaJP.js +13 -0
- package/node/locales/koKR.js +12 -0
- package/node/locales/nbNO.js +13 -0
- package/node/locales/nlNL.js +13 -0
- package/node/locales/nnNO.js +13 -0
- package/node/locales/plPL.js +13 -0
- package/node/locales/ptBR.js +11 -0
- package/node/locales/ptPT.js +11 -0
- package/node/locales/roRO.js +12 -0
- package/node/locales/ruRU.js +13 -0
- package/node/locales/skSK.js +12 -0
- package/node/locales/svSE.js +17 -5
- package/node/locales/trTR.js +13 -0
- package/node/locales/ukUA.js +12 -0
- package/node/locales/urPK.js +12 -0
- package/node/locales/viVN.js +13 -0
- package/node/locales/zhCN.js +15 -4
- package/node/locales/zhHK.js +12 -0
- package/node/locales/zhTW.js +12 -0
- package/package.json +4 -4
package/modern/locales/plPL.js
CHANGED
|
@@ -23,6 +23,17 @@ const plPLGrid = {
|
|
|
23
23
|
toolbarQuickFilterPlaceholder: 'Wyszukaj…',
|
|
24
24
|
toolbarQuickFilterLabel: 'Szukaj',
|
|
25
25
|
toolbarQuickFilterDeleteIconLabel: 'Wyczyść',
|
|
26
|
+
// Prompt toolbar field
|
|
27
|
+
// toolbarPromptControlPlaceholder: 'Type a prompt…',
|
|
28
|
+
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
29
|
+
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
30
|
+
// toolbarPromptControlLabel: 'Prompt input',
|
|
31
|
+
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
32
|
+
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
33
|
+
// toolbarPromptControlSendActionLabel: 'Send',
|
|
34
|
+
// toolbarPromptControlSendActionAriaLabel: 'Send prompt',
|
|
35
|
+
// toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
|
|
36
|
+
|
|
26
37
|
// Export selector toolbar button text
|
|
27
38
|
toolbarExport: 'Eksportuj',
|
|
28
39
|
toolbarExportLabel: 'Eksportuj',
|
|
@@ -34,6 +45,8 @@ const plPLGrid = {
|
|
|
34
45
|
columnsManagementNoColumns: 'Brak kolumn',
|
|
35
46
|
columnsManagementShowHideAllText: 'Wyświetl/Ukryj wszystkie',
|
|
36
47
|
columnsManagementReset: 'Resetuj',
|
|
48
|
+
// columnsManagementDeleteIconLabel: 'Clear',
|
|
49
|
+
|
|
37
50
|
// Filter panel text
|
|
38
51
|
filterPanelAddFilter: 'Dodaj filtr',
|
|
39
52
|
filterPanelRemoveAll: 'Usuń wszystkie',
|
package/modern/locales/ptBR.js
CHANGED
|
@@ -23,6 +23,16 @@ const ptBRGrid = {
|
|
|
23
23
|
toolbarQuickFilterPlaceholder: 'Procurar…',
|
|
24
24
|
toolbarQuickFilterLabel: 'Procurar',
|
|
25
25
|
toolbarQuickFilterDeleteIconLabel: 'Limpar',
|
|
26
|
+
// Prompt toolbar field
|
|
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.',
|
|
26
36
|
// Export selector toolbar button text
|
|
27
37
|
toolbarExport: 'Exportar',
|
|
28
38
|
toolbarExportLabel: 'Exportar',
|
|
@@ -34,6 +44,7 @@ const ptBRGrid = {
|
|
|
34
44
|
columnsManagementNoColumns: 'Nenhuma coluna',
|
|
35
45
|
columnsManagementShowHideAllText: 'Mostrar/Ocultar Todas',
|
|
36
46
|
columnsManagementReset: 'Redefinir',
|
|
47
|
+
columnsManagementDeleteIconLabel: 'Limpar',
|
|
37
48
|
// Filter panel text
|
|
38
49
|
filterPanelAddFilter: 'Adicionar filtro',
|
|
39
50
|
filterPanelRemoveAll: 'Remover todos',
|
package/modern/locales/ptPT.js
CHANGED
|
@@ -23,6 +23,16 @@ const ptPTGrid = {
|
|
|
23
23
|
toolbarQuickFilterPlaceholder: 'Procurar…',
|
|
24
24
|
toolbarQuickFilterLabel: 'Procurar',
|
|
25
25
|
toolbarQuickFilterDeleteIconLabel: 'Claro',
|
|
26
|
+
// Prompt toolbar field
|
|
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.',
|
|
26
36
|
// Export selector toolbar button text
|
|
27
37
|
toolbarExport: 'Exportar',
|
|
28
38
|
toolbarExportLabel: 'Exportar',
|
|
@@ -34,6 +44,7 @@ const ptPTGrid = {
|
|
|
34
44
|
columnsManagementNoColumns: 'Sem colunas',
|
|
35
45
|
columnsManagementShowHideAllText: 'Mostrar/Ocultar Todas',
|
|
36
46
|
columnsManagementReset: 'Repor',
|
|
47
|
+
columnsManagementDeleteIconLabel: 'Limpar',
|
|
37
48
|
// Filter panel text
|
|
38
49
|
filterPanelAddFilter: 'Adicionar filtro',
|
|
39
50
|
filterPanelRemoveAll: 'Excluir todos',
|
package/modern/locales/roRO.js
CHANGED
|
@@ -23,6 +23,17 @@ const roROGrid = {
|
|
|
23
23
|
toolbarQuickFilterPlaceholder: 'Căutare…',
|
|
24
24
|
toolbarQuickFilterLabel: 'Căutare',
|
|
25
25
|
toolbarQuickFilterDeleteIconLabel: 'Ștergere',
|
|
26
|
+
// Prompt toolbar field
|
|
27
|
+
// toolbarPromptControlPlaceholder: 'Type a prompt…',
|
|
28
|
+
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
29
|
+
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
30
|
+
// toolbarPromptControlLabel: 'Prompt input',
|
|
31
|
+
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
32
|
+
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
33
|
+
// toolbarPromptControlSendActionLabel: 'Send',
|
|
34
|
+
// toolbarPromptControlSendActionAriaLabel: 'Send prompt',
|
|
35
|
+
// toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
|
|
36
|
+
|
|
26
37
|
// Export selector toolbar button text
|
|
27
38
|
toolbarExport: 'Export',
|
|
28
39
|
toolbarExportLabel: 'Export',
|
|
@@ -34,6 +45,7 @@ const roROGrid = {
|
|
|
34
45
|
// columnsManagementNoColumns: 'No columns',
|
|
35
46
|
// columnsManagementShowHideAllText: 'Show/Hide All',
|
|
36
47
|
// columnsManagementReset: 'Reset',
|
|
48
|
+
// columnsManagementDeleteIconLabel: 'Clear',
|
|
37
49
|
|
|
38
50
|
// Filter panel text
|
|
39
51
|
filterPanelAddFilter: 'Adăugare filtru',
|
package/modern/locales/ruRU.js
CHANGED
|
@@ -38,6 +38,17 @@ const ruRUGrid = {
|
|
|
38
38
|
toolbarQuickFilterPlaceholder: 'Поиск…',
|
|
39
39
|
toolbarQuickFilterLabel: 'Поиск',
|
|
40
40
|
toolbarQuickFilterDeleteIconLabel: 'Очистить',
|
|
41
|
+
// Prompt toolbar field
|
|
42
|
+
// toolbarPromptControlPlaceholder: 'Type a prompt…',
|
|
43
|
+
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
44
|
+
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
45
|
+
// toolbarPromptControlLabel: 'Prompt input',
|
|
46
|
+
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
47
|
+
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
48
|
+
// toolbarPromptControlSendActionLabel: 'Send',
|
|
49
|
+
// toolbarPromptControlSendActionAriaLabel: 'Send prompt',
|
|
50
|
+
// toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
|
|
51
|
+
|
|
41
52
|
// Export selector toolbar button text
|
|
42
53
|
toolbarExport: 'Экспорт',
|
|
43
54
|
toolbarExportLabel: 'Экспорт',
|
|
@@ -49,6 +60,8 @@ const ruRUGrid = {
|
|
|
49
60
|
columnsManagementNoColumns: 'Нет столбцов',
|
|
50
61
|
columnsManagementShowHideAllText: 'Показать/Скрыть Всё',
|
|
51
62
|
columnsManagementReset: 'Сбросить',
|
|
63
|
+
// columnsManagementDeleteIconLabel: 'Clear',
|
|
64
|
+
|
|
52
65
|
// Filter panel text
|
|
53
66
|
filterPanelAddFilter: 'Добавить фильтр',
|
|
54
67
|
filterPanelRemoveAll: 'Очистить фильтр',
|
package/modern/locales/skSK.js
CHANGED
|
@@ -31,6 +31,17 @@ const skSKGrid = {
|
|
|
31
31
|
toolbarQuickFilterPlaceholder: 'Vyhľadať…',
|
|
32
32
|
toolbarQuickFilterLabel: 'Vyhľadať',
|
|
33
33
|
toolbarQuickFilterDeleteIconLabel: 'Vymazať',
|
|
34
|
+
// Prompt toolbar field
|
|
35
|
+
// toolbarPromptControlPlaceholder: 'Type a prompt…',
|
|
36
|
+
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
37
|
+
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
38
|
+
// toolbarPromptControlLabel: 'Prompt input',
|
|
39
|
+
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
40
|
+
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
41
|
+
// toolbarPromptControlSendActionLabel: 'Send',
|
|
42
|
+
// toolbarPromptControlSendActionAriaLabel: 'Send prompt',
|
|
43
|
+
// toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
|
|
44
|
+
|
|
34
45
|
// Export selector toolbar button text
|
|
35
46
|
toolbarExport: 'Export',
|
|
36
47
|
toolbarExportLabel: 'Export',
|
|
@@ -42,6 +53,7 @@ const skSKGrid = {
|
|
|
42
53
|
columnsManagementNoColumns: 'Žiadne stĺpce',
|
|
43
54
|
columnsManagementShowHideAllText: 'Zobraziť/Skryť všetko',
|
|
44
55
|
// columnsManagementReset: 'Reset',
|
|
56
|
+
// columnsManagementDeleteIconLabel: 'Clear',
|
|
45
57
|
|
|
46
58
|
// Filter panel text
|
|
47
59
|
filterPanelAddFilter: 'Pridať filter',
|
package/modern/locales/svSE.js
CHANGED
|
@@ -23,6 +23,17 @@ const svSEGrid = {
|
|
|
23
23
|
toolbarQuickFilterPlaceholder: 'Sök…',
|
|
24
24
|
toolbarQuickFilterLabel: 'Sök',
|
|
25
25
|
toolbarQuickFilterDeleteIconLabel: 'Rensa',
|
|
26
|
+
// Prompt toolbar field
|
|
27
|
+
// toolbarPromptControlPlaceholder: 'Type a prompt…',
|
|
28
|
+
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
29
|
+
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
30
|
+
// toolbarPromptControlLabel: 'Prompt input',
|
|
31
|
+
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
32
|
+
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
33
|
+
// toolbarPromptControlSendActionLabel: 'Send',
|
|
34
|
+
// toolbarPromptControlSendActionAriaLabel: 'Send prompt',
|
|
35
|
+
// toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
|
|
36
|
+
|
|
26
37
|
// Export selector toolbar button text
|
|
27
38
|
toolbarExport: 'Exportera',
|
|
28
39
|
toolbarExportLabel: 'Exportera',
|
|
@@ -33,7 +44,8 @@ const svSEGrid = {
|
|
|
33
44
|
columnsManagementSearchTitle: 'Sök',
|
|
34
45
|
columnsManagementNoColumns: 'Inga kolumner',
|
|
35
46
|
columnsManagementShowHideAllText: 'Visa/Dölj alla',
|
|
36
|
-
|
|
47
|
+
columnsManagementReset: 'Återställ',
|
|
48
|
+
// columnsManagementDeleteIconLabel: 'Clear',
|
|
37
49
|
|
|
38
50
|
// Filter panel text
|
|
39
51
|
filterPanelAddFilter: 'Lägg till filter',
|
|
@@ -48,9 +60,9 @@ const svSEGrid = {
|
|
|
48
60
|
filterPanelInputPlaceholder: 'Filtervärde',
|
|
49
61
|
// Filter operators text
|
|
50
62
|
filterOperatorContains: 'innehåller',
|
|
51
|
-
|
|
63
|
+
filterOperatorDoesNotContain: 'innehåller inte',
|
|
52
64
|
filterOperatorEquals: 'lika med',
|
|
53
|
-
|
|
65
|
+
filterOperatorDoesNotEqual: 'inte lika med',
|
|
54
66
|
filterOperatorStartsWith: 'börjar med',
|
|
55
67
|
filterOperatorEndsWith: 'slutar med',
|
|
56
68
|
filterOperatorIs: 'är',
|
|
@@ -70,9 +82,9 @@ const svSEGrid = {
|
|
|
70
82
|
'filterOperator<=': '<=',
|
|
71
83
|
// Header filter operators text
|
|
72
84
|
headerFilterOperatorContains: 'Innehåller',
|
|
73
|
-
|
|
85
|
+
headerFilterOperatorDoesNotContain: 'Innehåller inte',
|
|
74
86
|
headerFilterOperatorEquals: 'Lika med',
|
|
75
|
-
|
|
87
|
+
headerFilterOperatorDoesNotEqual: 'Inte lika med',
|
|
76
88
|
headerFilterOperatorStartsWith: 'Börjar med',
|
|
77
89
|
headerFilterOperatorEndsWith: 'Slutar med',
|
|
78
90
|
headerFilterOperatorIs: 'Är',
|
package/modern/locales/trTR.js
CHANGED
|
@@ -23,6 +23,17 @@ const trTRGrid = {
|
|
|
23
23
|
toolbarQuickFilterPlaceholder: 'Ara…',
|
|
24
24
|
toolbarQuickFilterLabel: 'Ara',
|
|
25
25
|
toolbarQuickFilterDeleteIconLabel: 'Temizle',
|
|
26
|
+
// Prompt toolbar field
|
|
27
|
+
// toolbarPromptControlPlaceholder: 'Type a prompt…',
|
|
28
|
+
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
29
|
+
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
30
|
+
// toolbarPromptControlLabel: 'Prompt input',
|
|
31
|
+
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
32
|
+
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
33
|
+
// toolbarPromptControlSendActionLabel: 'Send',
|
|
34
|
+
// toolbarPromptControlSendActionAriaLabel: 'Send prompt',
|
|
35
|
+
// toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
|
|
36
|
+
|
|
26
37
|
// Export selector toolbar button text
|
|
27
38
|
toolbarExport: 'Dışa aktar',
|
|
28
39
|
toolbarExportLabel: 'Dışa aktar',
|
|
@@ -34,6 +45,8 @@ const trTRGrid = {
|
|
|
34
45
|
columnsManagementNoColumns: 'Kolon yok',
|
|
35
46
|
columnsManagementShowHideAllText: 'Hepsini Göster/Gizle',
|
|
36
47
|
columnsManagementReset: 'Sıfırla',
|
|
48
|
+
// columnsManagementDeleteIconLabel: 'Clear',
|
|
49
|
+
|
|
37
50
|
// Filter panel text
|
|
38
51
|
filterPanelAddFilter: 'Filtre Ekle',
|
|
39
52
|
filterPanelRemoveAll: 'Hepsini kaldır',
|
package/modern/locales/ukUA.js
CHANGED
|
@@ -38,6 +38,17 @@ const ukUAGrid = {
|
|
|
38
38
|
toolbarQuickFilterPlaceholder: 'Пошук…',
|
|
39
39
|
toolbarQuickFilterLabel: 'Пошук',
|
|
40
40
|
toolbarQuickFilterDeleteIconLabel: 'Очистити',
|
|
41
|
+
// Prompt toolbar field
|
|
42
|
+
// toolbarPromptControlPlaceholder: 'Type a prompt…',
|
|
43
|
+
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
44
|
+
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
45
|
+
// toolbarPromptControlLabel: 'Prompt input',
|
|
46
|
+
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
47
|
+
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
48
|
+
// toolbarPromptControlSendActionLabel: 'Send',
|
|
49
|
+
// toolbarPromptControlSendActionAriaLabel: 'Send prompt',
|
|
50
|
+
// toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
|
|
51
|
+
|
|
41
52
|
// Export selector toolbar button text
|
|
42
53
|
toolbarExport: 'Експорт',
|
|
43
54
|
toolbarExportLabel: 'Експорт',
|
|
@@ -49,6 +60,7 @@ const ukUAGrid = {
|
|
|
49
60
|
// columnsManagementNoColumns: 'No columns',
|
|
50
61
|
// columnsManagementShowHideAllText: 'Show/Hide All',
|
|
51
62
|
// columnsManagementReset: 'Reset',
|
|
63
|
+
// columnsManagementDeleteIconLabel: 'Clear',
|
|
52
64
|
|
|
53
65
|
// Filter panel text
|
|
54
66
|
filterPanelAddFilter: 'Додати фільтр',
|
package/modern/locales/urPK.js
CHANGED
|
@@ -23,6 +23,17 @@ const urPKGrid = {
|
|
|
23
23
|
toolbarQuickFilterPlaceholder: 'تلاش کریں۔۔۔',
|
|
24
24
|
toolbarQuickFilterLabel: 'تلاش کریں',
|
|
25
25
|
toolbarQuickFilterDeleteIconLabel: 'کلئیر کریں',
|
|
26
|
+
// Prompt toolbar field
|
|
27
|
+
// toolbarPromptControlPlaceholder: 'Type a prompt…',
|
|
28
|
+
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
29
|
+
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
30
|
+
// toolbarPromptControlLabel: 'Prompt input',
|
|
31
|
+
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
32
|
+
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
33
|
+
// toolbarPromptControlSendActionLabel: 'Send',
|
|
34
|
+
// toolbarPromptControlSendActionAriaLabel: 'Send prompt',
|
|
35
|
+
// toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
|
|
36
|
+
|
|
26
37
|
// Export selector toolbar button text
|
|
27
38
|
toolbarExport: 'ایکسپورٹ',
|
|
28
39
|
toolbarExportLabel: 'ایکسپورٹ',
|
|
@@ -34,6 +45,7 @@ const urPKGrid = {
|
|
|
34
45
|
// columnsManagementNoColumns: 'No columns',
|
|
35
46
|
// columnsManagementShowHideAllText: 'Show/Hide All',
|
|
36
47
|
// columnsManagementReset: 'Reset',
|
|
48
|
+
// columnsManagementDeleteIconLabel: 'Clear',
|
|
37
49
|
|
|
38
50
|
// Filter panel text
|
|
39
51
|
filterPanelAddFilter: 'نیا فلٹر',
|
package/modern/locales/viVN.js
CHANGED
|
@@ -23,6 +23,17 @@ const viVNGrid = {
|
|
|
23
23
|
toolbarQuickFilterPlaceholder: 'Tìm kiếm…',
|
|
24
24
|
toolbarQuickFilterLabel: 'Tìm kiếm',
|
|
25
25
|
toolbarQuickFilterDeleteIconLabel: 'Xóa tìm kiếm',
|
|
26
|
+
// Prompt toolbar field
|
|
27
|
+
// toolbarPromptControlPlaceholder: 'Type a prompt…',
|
|
28
|
+
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
29
|
+
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
30
|
+
// toolbarPromptControlLabel: 'Prompt input',
|
|
31
|
+
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
32
|
+
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
33
|
+
// toolbarPromptControlSendActionLabel: 'Send',
|
|
34
|
+
// toolbarPromptControlSendActionAriaLabel: 'Send prompt',
|
|
35
|
+
// toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
|
|
36
|
+
|
|
26
37
|
// Export selector toolbar button text
|
|
27
38
|
toolbarExport: 'Xuất',
|
|
28
39
|
toolbarExportLabel: 'Xuất',
|
|
@@ -34,6 +45,8 @@ const viVNGrid = {
|
|
|
34
45
|
columnsManagementNoColumns: 'Không có cột',
|
|
35
46
|
columnsManagementShowHideAllText: 'Hiện/Ẩn Tất cả',
|
|
36
47
|
columnsManagementReset: 'Đặt lại',
|
|
48
|
+
// columnsManagementDeleteIconLabel: 'Clear',
|
|
49
|
+
|
|
37
50
|
// Filter panel text
|
|
38
51
|
filterPanelAddFilter: 'Thêm bộ lọc',
|
|
39
52
|
filterPanelRemoveAll: 'Xóa tất cả',
|
package/modern/locales/zhCN.js
CHANGED
|
@@ -23,6 +23,16 @@ const zhCNGrid = {
|
|
|
23
23
|
toolbarQuickFilterPlaceholder: '搜索…',
|
|
24
24
|
toolbarQuickFilterLabel: '搜索',
|
|
25
25
|
toolbarQuickFilterDeleteIconLabel: '清除',
|
|
26
|
+
// Prompt toolbar field
|
|
27
|
+
toolbarPromptControlPlaceholder: '输入提示词',
|
|
28
|
+
toolbarPromptControlWithRecordingPlaceholder: '输入提示词或点击录音',
|
|
29
|
+
toolbarPromptControlRecordingPlaceholder: '正在录音…',
|
|
30
|
+
toolbarPromptControlLabel: '提示词输入',
|
|
31
|
+
toolbarPromptControlRecordButtonDefaultLabel: '录音',
|
|
32
|
+
toolbarPromptControlRecordButtonActiveLabel: '停止录音',
|
|
33
|
+
toolbarPromptControlSendActionLabel: '发送',
|
|
34
|
+
toolbarPromptControlSendActionAriaLabel: '发送提示词',
|
|
35
|
+
toolbarPromptControlErrorMessage: '处理请求时出现错误。请使用其他提示词再试。',
|
|
26
36
|
// Export selector toolbar button text
|
|
27
37
|
toolbarExport: '导出',
|
|
28
38
|
toolbarExportLabel: '导出',
|
|
@@ -34,6 +44,7 @@ const zhCNGrid = {
|
|
|
34
44
|
columnsManagementNoColumns: '没有列',
|
|
35
45
|
columnsManagementShowHideAllText: '显示/隐藏所有',
|
|
36
46
|
columnsManagementReset: '重置',
|
|
47
|
+
columnsManagementDeleteIconLabel: '清除',
|
|
37
48
|
// Filter panel text
|
|
38
49
|
filterPanelAddFilter: '添加筛选器',
|
|
39
50
|
filterPanelRemoveAll: '清除全部',
|
|
@@ -47,9 +58,9 @@ const zhCNGrid = {
|
|
|
47
58
|
filterPanelInputPlaceholder: '筛选值',
|
|
48
59
|
// Filter operators text
|
|
49
60
|
filterOperatorContains: '包含',
|
|
50
|
-
|
|
61
|
+
filterOperatorDoesNotContain: '不包含',
|
|
51
62
|
filterOperatorEquals: '等于',
|
|
52
|
-
|
|
63
|
+
filterOperatorDoesNotEqual: '不等于',
|
|
53
64
|
filterOperatorStartsWith: '开始于',
|
|
54
65
|
filterOperatorEndsWith: '结束于',
|
|
55
66
|
filterOperatorIs: '是',
|
|
@@ -69,9 +80,9 @@ const zhCNGrid = {
|
|
|
69
80
|
'filterOperator<=': '<=',
|
|
70
81
|
// Header filter operators text
|
|
71
82
|
headerFilterOperatorContains: '包含',
|
|
72
|
-
|
|
83
|
+
headerFilterOperatorDoesNotContain: '不包含',
|
|
73
84
|
headerFilterOperatorEquals: '等于',
|
|
74
|
-
|
|
85
|
+
headerFilterOperatorDoesNotEqual: '不等于',
|
|
75
86
|
headerFilterOperatorStartsWith: '开始于',
|
|
76
87
|
headerFilterOperatorEndsWith: '结束于',
|
|
77
88
|
headerFilterOperatorIs: '是',
|
package/modern/locales/zhHK.js
CHANGED
|
@@ -23,6 +23,17 @@ const zhHKGrid = {
|
|
|
23
23
|
toolbarQuickFilterPlaceholder: '搜尋…',
|
|
24
24
|
toolbarQuickFilterLabel: '搜尋',
|
|
25
25
|
toolbarQuickFilterDeleteIconLabel: '清除',
|
|
26
|
+
// Prompt toolbar field
|
|
27
|
+
// toolbarPromptControlPlaceholder: 'Type a prompt…',
|
|
28
|
+
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
29
|
+
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
30
|
+
// toolbarPromptControlLabel: 'Prompt input',
|
|
31
|
+
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
32
|
+
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
33
|
+
// toolbarPromptControlSendActionLabel: 'Send',
|
|
34
|
+
// toolbarPromptControlSendActionAriaLabel: 'Send prompt',
|
|
35
|
+
// toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
|
|
36
|
+
|
|
26
37
|
// Export selector toolbar button text
|
|
27
38
|
toolbarExport: '出口',
|
|
28
39
|
toolbarExportLabel: '出口',
|
|
@@ -34,6 +45,7 @@ const zhHKGrid = {
|
|
|
34
45
|
// columnsManagementNoColumns: 'No columns',
|
|
35
46
|
// columnsManagementShowHideAllText: 'Show/Hide All',
|
|
36
47
|
// columnsManagementReset: 'Reset',
|
|
48
|
+
// columnsManagementDeleteIconLabel: 'Clear',
|
|
37
49
|
|
|
38
50
|
// Filter panel text
|
|
39
51
|
filterPanelAddFilter: '新增過濾器',
|
package/modern/locales/zhTW.js
CHANGED
|
@@ -23,6 +23,17 @@ const zhTWGrid = {
|
|
|
23
23
|
toolbarQuickFilterPlaceholder: '搜尋…',
|
|
24
24
|
toolbarQuickFilterLabel: '搜尋',
|
|
25
25
|
toolbarQuickFilterDeleteIconLabel: '清除',
|
|
26
|
+
// Prompt toolbar field
|
|
27
|
+
// toolbarPromptControlPlaceholder: 'Type a prompt…',
|
|
28
|
+
// toolbarPromptControlWithRecordingPlaceholder: 'Type or record a prompt…',
|
|
29
|
+
// toolbarPromptControlRecordingPlaceholder: 'Listening for prompt…',
|
|
30
|
+
// toolbarPromptControlLabel: 'Prompt input',
|
|
31
|
+
// toolbarPromptControlRecordButtonDefaultLabel: 'Record',
|
|
32
|
+
// toolbarPromptControlRecordButtonActiveLabel: 'Stop recording',
|
|
33
|
+
// toolbarPromptControlSendActionLabel: 'Send',
|
|
34
|
+
// toolbarPromptControlSendActionAriaLabel: 'Send prompt',
|
|
35
|
+
// toolbarPromptControlErrorMessage: 'An error occurred while processing the request. Please try again with a different prompt.',
|
|
36
|
+
|
|
26
37
|
// Export selector toolbar button text
|
|
27
38
|
toolbarExport: '匯出',
|
|
28
39
|
toolbarExportLabel: '匯出',
|
|
@@ -34,6 +45,7 @@ const zhTWGrid = {
|
|
|
34
45
|
// columnsManagementNoColumns: 'No columns',
|
|
35
46
|
// columnsManagementShowHideAllText: 'Show/Hide All',
|
|
36
47
|
// columnsManagementReset: 'Reset',
|
|
48
|
+
// columnsManagementDeleteIconLabel: 'Clear',
|
|
37
49
|
|
|
38
50
|
// Filter panel text
|
|
39
51
|
filterPanelAddFilter: '增加篩選器',
|
|
@@ -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.
|
|
@@ -773,5 +765,13 @@ DataGridRaw.propTypes = {
|
|
|
773
765
|
* If `true`, the Data Grid will auto span the cells over the rows having the same value.
|
|
774
766
|
* @default false
|
|
775
767
|
*/
|
|
776
|
-
unstable_rowSpanning: _propTypes.default.bool
|
|
768
|
+
unstable_rowSpanning: _propTypes.default.bool,
|
|
769
|
+
/**
|
|
770
|
+
* If `true`, the Data Grid enables column virtualization when `getRowHeight` is set to `() => 'auto'`.
|
|
771
|
+
* By default, column virtualization is disabled when dynamic row height is enabled to measure the row height correctly.
|
|
772
|
+
* For datasets with a large number of columns, this can cause performance issues.
|
|
773
|
+
* 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.
|
|
774
|
+
* @default false
|
|
775
|
+
*/
|
|
776
|
+
virtualizeColumnsWithAutoRowHeight: _propTypes.default.bool
|
|
777
777
|
};
|
|
@@ -38,8 +38,8 @@ const LOADING_VARIANTS = {
|
|
|
38
38
|
};
|
|
39
39
|
const GridLoadingOverlay = exports.GridLoadingOverlay = /*#__PURE__*/React.forwardRef(function GridLoadingOverlay(props, ref) {
|
|
40
40
|
const {
|
|
41
|
-
variant = '
|
|
42
|
-
noRowsVariant = '
|
|
41
|
+
variant = 'linear-progress',
|
|
42
|
+
noRowsVariant = 'skeleton',
|
|
43
43
|
style
|
|
44
44
|
} = props,
|
|
45
45
|
other = (0, _objectWithoutPropertiesLoose2.default)(props, _excluded);
|
|
@@ -60,13 +60,13 @@ process.env.NODE_ENV !== "production" ? GridLoadingOverlay.propTypes = {
|
|
|
60
60
|
// ----------------------------------------------------------------------
|
|
61
61
|
/**
|
|
62
62
|
* The variant of the overlay when no rows are displayed.
|
|
63
|
-
* @default '
|
|
63
|
+
* @default 'skeleton'
|
|
64
64
|
*/
|
|
65
65
|
noRowsVariant: _propTypes.default.oneOf(['circular-progress', 'linear-progress', 'skeleton']),
|
|
66
66
|
sx: _propTypes.default.oneOfType([_propTypes.default.arrayOf(_propTypes.default.oneOfType([_propTypes.default.func, _propTypes.default.object, _propTypes.default.bool])), _propTypes.default.func, _propTypes.default.object]),
|
|
67
67
|
/**
|
|
68
68
|
* The variant of the overlay.
|
|
69
|
-
* @default '
|
|
69
|
+
* @default 'linear-progress'
|
|
70
70
|
*/
|
|
71
71
|
variant: _propTypes.default.oneOf(['circular-progress', 'linear-progress', 'skeleton'])
|
|
72
72
|
} : void 0;
|
|
@@ -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
|
}
|
|
@@ -237,6 +234,9 @@ const GridCell = /*#__PURE__*/React.forwardRef(function GridCell(props, ref) {
|
|
|
237
234
|
if (rowSpan > 1) {
|
|
238
235
|
cellStyle.height = `calc(var(--height) * ${rowSpan})`;
|
|
239
236
|
cellStyle.zIndex = 5;
|
|
237
|
+
if (isLeftPinned || isRightPinned) {
|
|
238
|
+
cellStyle.zIndex = 6;
|
|
239
|
+
}
|
|
240
240
|
}
|
|
241
241
|
return cellStyle;
|
|
242
242
|
}, [width, isNotVisible, styleProp, pinnedOffset, pinnedPosition, isRtl, rowSpan]);
|
|
@@ -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: {
|
|
@@ -100,12 +100,11 @@ const GridHeaderCheckbox = exports.GridHeaderCheckbox = /*#__PURE__*/React.forwa
|
|
|
100
100
|
React.useEffect(() => {
|
|
101
101
|
return apiRef.current.subscribeEvent('rowSelectionChange', handleSelectionChange);
|
|
102
102
|
}, [apiRef, handleSelectionChange]);
|
|
103
|
-
const label = apiRef.current.getLocaleText(isChecked ? 'checkboxSelectionUnselectAllRows' : 'checkboxSelectionSelectAllRows');
|
|
104
|
-
const checked = rootProps.indeterminateCheckboxAction === 'select' ? isChecked && !isIndeterminate : isChecked;
|
|
103
|
+
const label = apiRef.current.getLocaleText(isChecked && !isIndeterminate ? 'checkboxSelectionUnselectAllRows' : 'checkboxSelectionSelectAllRows');
|
|
105
104
|
return /*#__PURE__*/(0, _jsxRuntime.jsx)(rootProps.slots.baseCheckbox, (0, _extends2.default)({
|
|
106
105
|
ref: ref,
|
|
107
106
|
indeterminate: isIndeterminate,
|
|
108
|
-
checked:
|
|
107
|
+
checked: isChecked && !isIndeterminate,
|
|
109
108
|
onChange: handleChange,
|
|
110
109
|
className: classes.root,
|
|
111
110
|
inputProps: {
|