@mui/x-data-grid 5.8.0 → 5.11.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +333 -66
- package/DataGrid/DataGrid.js +36 -2
- package/DataGrid/useDataGridComponent.js +3 -1
- package/DataGrid/useDataGridProps.js +2 -1
- package/LICENSE +21 -0
- package/README.md +7 -5
- package/colDef/gridActionsColDef.js +2 -1
- package/colDef/gridBooleanColDef.js +2 -1
- package/colDef/gridCheckboxSelectionColDef.js +1 -0
- package/colDef/gridDateColDef.js +4 -2
- package/colDef/gridNumericColDef.js +3 -2
- package/colDef/gridNumericOperators.d.ts +2 -0
- package/colDef/gridNumericOperators.js +11 -0
- package/colDef/gridSingleSelectColDef.js +3 -2
- package/colDef/gridSingleSelectOperators.d.ts +3 -0
- package/colDef/gridSingleSelectOperators.js +52 -0
- package/colDef/gridStringColDef.js +3 -2
- package/colDef/gridStringOperators.d.ts +2 -0
- package/colDef/gridStringOperators.js +12 -0
- package/components/GridFooter.d.ts +4 -2
- package/components/GridFooter.js +11 -2
- package/components/GridRow.d.ts +4 -0
- package/components/GridRow.js +58 -28
- package/components/GridRowCount.d.ts +4 -1
- package/components/GridRowCount.js +1 -0
- package/components/GridScrollArea.js +3 -4
- package/components/GridSelectedRowCount.d.ts +4 -1
- package/components/GridSelectedRowCount.js +2 -1
- package/components/base/GridBody.js +1 -2
- package/components/base/GridOverlays.js +5 -5
- package/components/cell/GridActionsCell.d.ts +5 -1
- package/components/cell/GridActionsCell.js +179 -21
- package/components/cell/GridActionsCellItem.d.ts +66 -4
- package/components/cell/GridActionsCellItem.js +7 -5
- package/components/cell/GridCell.d.ts +1 -0
- package/components/cell/GridCell.js +36 -15
- package/components/cell/GridEditBooleanCell.d.ts +15 -3
- package/components/cell/GridEditBooleanCell.js +101 -6
- package/components/cell/GridEditDateCell.d.ts +16 -4
- package/components/cell/GridEditDateCell.js +99 -5
- package/components/cell/GridEditInputCell.d.ts +11 -5
- package/components/cell/GridEditInputCell.js +30 -6
- package/components/cell/GridEditSingleSelectCell.d.ts +12 -4
- package/components/cell/GridEditSingleSelectCell.js +50 -18
- package/components/cell/index.d.ts +2 -0
- package/components/cell/index.js +2 -0
- package/components/columnHeaders/GridColumnHeaderItem.js +19 -23
- package/components/columnHeaders/GridColumnHeaders.d.ts +2 -1
- package/components/columnHeaders/GridColumnHeaders.js +1 -1
- package/components/columnHeaders/GridColumnHeadersInner.d.ts +2 -0
- package/components/columnSelection/GridCellCheckboxRenderer.d.ts +3 -3
- package/components/columnSelection/GridCellCheckboxRenderer.js +22 -6
- package/components/columnSelection/GridHeaderCheckbox.js +4 -5
- package/components/containers/GridFooterContainer.d.ts +8 -2
- package/components/containers/GridFooterContainer.js +11 -2
- package/components/containers/GridRootStyles.js +36 -1
- package/components/containers/GridToolbarContainer.d.ts +8 -2
- package/components/containers/GridToolbarContainer.js +12 -2
- package/components/menu/GridMenu.js +1 -0
- package/components/panel/GridPanel.js +1 -0
- package/components/panel/GridPanelContent.d.ts +8 -1
- package/components/panel/GridPanelContent.js +13 -2
- package/components/panel/GridPanelFooter.d.ts +8 -1
- package/components/panel/GridPanelFooter.js +13 -2
- package/components/panel/GridPanelHeader.d.ts +8 -1
- package/components/panel/GridPanelHeader.js +13 -2
- package/components/panel/filterPanel/GridFilterForm.js +14 -10
- package/components/panel/filterPanel/GridFilterInputBoolean.js +13 -8
- package/components/panel/filterPanel/GridFilterInputSingleSelect.js +22 -15
- package/components/panel/filterPanel/GridFilterInputValue.js +22 -15
- package/components/toolbar/GridToolbar.d.ts +12 -2
- package/components/toolbar/GridToolbar.js +30 -7
- package/components/toolbar/GridToolbarDensitySelector.js +1 -1
- package/components/toolbar/GridToolbarExport.d.ts +5 -4
- package/components/toolbar/GridToolbarExport.js +15 -20
- package/components/toolbar/GridToolbarFilterButton.d.ts +1 -1
- package/components/toolbar/GridToolbarQuickFilter.d.ts +20 -0
- package/components/toolbar/GridToolbarQuickFilter.js +88 -0
- package/components/toolbar/index.d.ts +3 -1
- package/components/toolbar/index.js +3 -2
- package/components/virtualization/GridVirtualScroller.d.ts +4 -1
- package/components/virtualization/GridVirtualScroller.js +2 -0
- package/components/virtualization/GridVirtualScrollerContent.d.ts +4 -1
- package/components/virtualization/GridVirtualScrollerContent.js +1 -3
- package/components/virtualization/GridVirtualScrollerRenderZone.d.ts +4 -1
- package/constants/defaultGridSlotsComponents.js +3 -2
- package/constants/gridClasses.d.ts +20 -0
- package/constants/gridClasses.js +1 -1
- package/constants/gridDetailPanelToggleField.d.ts +1 -0
- package/constants/gridDetailPanelToggleField.js +2 -0
- package/constants/localeTextConstants.js +8 -1
- package/hooks/core/pipeProcessing/gridPipeProcessingApi.d.ts +39 -15
- package/hooks/core/pipeProcessing/index.d.ts +1 -0
- package/hooks/core/pipeProcessing/index.js +2 -1
- package/hooks/core/pipeProcessing/useGridPipeProcessing.d.ts +8 -3
- package/hooks/core/pipeProcessing/useGridPipeProcessing.js +53 -19
- package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.d.ts +3 -0
- package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +27 -0
- package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.d.ts +0 -3
- package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +0 -4
- package/hooks/core/strategyProcessing/useGridStrategyProcessing.d.ts +4 -4
- package/hooks/core/strategyProcessing/useGridStrategyProcessing.js +6 -7
- package/hooks/core/useGridApiInitialization.js +3 -3
- package/hooks/core/useGridErrorHandler.js +1 -2
- package/hooks/core/useGridStateInitialization.js +1 -2
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +0 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +81 -16
- package/hooks/features/columnMenu/useGridColumnMenu.js +3 -3
- package/hooks/features/columns/gridColumnsInterfaces.d.ts +3 -1
- package/hooks/features/columns/gridColumnsUtils.d.ts +19 -1
- package/hooks/features/columns/gridColumnsUtils.js +61 -8
- package/hooks/features/columns/useGridColumnSpanning.d.ts +7 -0
- package/hooks/features/columns/useGridColumnSpanning.js +108 -0
- package/hooks/features/columns/useGridColumns.d.ts +1 -1
- package/hooks/features/columns/useGridColumns.js +30 -25
- package/hooks/features/dimensions/useGridDimensions.d.ts +1 -1
- package/hooks/features/dimensions/useGridDimensions.js +10 -11
- package/hooks/features/editRows/useGridCellEditing.new.d.ts +1 -1
- package/hooks/features/editRows/useGridCellEditing.new.js +151 -42
- package/hooks/features/editRows/useGridCellEditing.old.js +20 -21
- package/hooks/features/editRows/useGridEditing.new.js +7 -3
- package/hooks/features/editRows/useGridEditing.old.js +4 -5
- package/hooks/features/editRows/useGridRowEditing.new.d.ts +1 -1
- package/hooks/features/editRows/useGridRowEditing.new.js +145 -57
- package/hooks/features/editRows/useGridRowEditing.old.js +21 -22
- package/hooks/features/events/useGridEvents.js +17 -18
- package/hooks/features/export/serializers/csvSerializer.js +5 -5
- package/hooks/features/export/useGridCsvExport.js +23 -16
- package/hooks/features/export/useGridPrintExport.js +22 -0
- package/hooks/features/export/utils.d.ts +3 -1
- package/hooks/features/export/utils.js +13 -0
- package/hooks/features/filter/gridFilterState.d.ts +1 -2
- package/hooks/features/filter/gridFilterState.js +3 -1
- package/hooks/features/filter/gridFilterUtils.d.ts +8 -0
- package/hooks/features/filter/gridFilterUtils.js +84 -2
- package/hooks/features/filter/useGridFilter.js +32 -15
- package/hooks/features/focus/useGridFocus.d.ts +1 -1
- package/hooks/features/focus/useGridFocus.js +48 -42
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.d.ts +1 -0
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +43 -12
- package/hooks/features/pagination/useGridPage.js +3 -4
- package/hooks/features/pagination/useGridPageSize.js +2 -3
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.js +4 -6
- package/hooks/features/rows/gridRowsSelector.d.ts +2 -0
- package/hooks/features/rows/gridRowsSelector.js +2 -0
- package/hooks/features/rows/gridRowsState.d.ts +7 -7
- package/hooks/features/rows/gridRowsUtils.d.ts +2 -1
- package/hooks/features/rows/gridRowsUtils.js +25 -1
- package/hooks/features/rows/useGridRows.d.ts +2 -2
- package/hooks/features/rows/useGridRows.js +121 -61
- package/hooks/features/rows/useGridRowsMeta.js +6 -13
- package/hooks/features/rows/useGridRowsPreProcessors.js +2 -0
- package/hooks/features/scroll/useGridScroll.d.ts +2 -0
- package/hooks/features/scroll/useGridScroll.js +31 -4
- package/hooks/features/selection/useGridSelection.d.ts +1 -1
- package/hooks/features/selection/useGridSelection.js +15 -11
- package/hooks/features/sorting/useGridSorting.js +17 -18
- package/hooks/features/virtualization/useGridVirtualScroller.d.ts +9 -0
- package/hooks/features/virtualization/useGridVirtualScroller.js +68 -32
- package/hooks/utils/useGridApiEventHandler.d.ts +4 -1
- package/hooks/utils/useGridApiEventHandler.js +22 -9
- package/hooks/utils/useGridNativeEventListener.js +1 -2
- package/hooks/utils/useGridSelector.js +1 -1
- package/index.d.ts +2 -0
- package/index.js +1 -1
- package/internals/index.d.ts +5 -1
- package/internals/index.js +6 -2
- package/legacy/DataGrid/DataGrid.js +36 -2
- package/legacy/DataGrid/useDataGridComponent.js +3 -1
- package/legacy/DataGrid/useDataGridProps.js +2 -1
- package/legacy/colDef/gridActionsColDef.js +2 -1
- package/legacy/colDef/gridBooleanColDef.js +2 -1
- package/legacy/colDef/gridCheckboxSelectionColDef.js +1 -0
- package/legacy/colDef/gridDateColDef.js +4 -2
- package/legacy/colDef/gridNumericColDef.js +3 -2
- package/legacy/colDef/gridNumericOperators.js +28 -18
- package/legacy/colDef/gridSingleSelectColDef.js +3 -2
- package/legacy/colDef/gridSingleSelectOperators.js +55 -6
- package/legacy/colDef/gridStringColDef.js +3 -2
- package/legacy/colDef/gridStringOperators.js +25 -14
- package/legacy/components/GridFooter.js +11 -2
- package/legacy/components/GridRow.js +56 -28
- package/legacy/components/GridRowCount.js +1 -0
- package/legacy/components/GridScrollArea.js +3 -4
- package/legacy/components/GridSelectedRowCount.js +2 -1
- package/legacy/components/base/GridBody.js +1 -2
- package/legacy/components/base/GridOverlays.js +5 -5
- package/legacy/components/cell/GridActionsCell.js +197 -27
- package/legacy/components/cell/GridActionsCellItem.js +7 -5
- package/legacy/components/cell/GridCell.js +37 -15
- package/legacy/components/cell/GridEditBooleanCell.js +132 -11
- package/legacy/components/cell/GridEditDateCell.js +148 -42
- package/legacy/components/cell/GridEditInputCell.js +62 -13
- package/legacy/components/cell/GridEditSingleSelectCell.js +65 -28
- package/legacy/components/cell/index.js +2 -0
- package/legacy/components/columnHeaders/GridColumnHeaderItem.js +19 -23
- package/legacy/components/columnHeaders/GridColumnHeaders.js +2 -3
- package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +23 -6
- package/legacy/components/columnSelection/GridHeaderCheckbox.js +4 -5
- package/legacy/components/containers/GridFooterContainer.js +11 -2
- package/legacy/components/containers/GridRootStyles.js +26 -5
- package/legacy/components/containers/GridToolbarContainer.js +12 -2
- package/legacy/components/menu/GridMenu.js +1 -0
- package/legacy/components/panel/GridPanel.js +1 -0
- package/legacy/components/panel/GridPanelContent.js +13 -2
- package/legacy/components/panel/GridPanelFooter.js +13 -2
- package/legacy/components/panel/GridPanelHeader.js +13 -2
- package/legacy/components/panel/filterPanel/GridFilterForm.js +14 -10
- package/legacy/components/panel/filterPanel/GridFilterInputBoolean.js +13 -8
- package/legacy/components/panel/filterPanel/GridFilterInputSingleSelect.js +22 -17
- package/legacy/components/panel/filterPanel/GridFilterInputValue.js +22 -17
- package/legacy/components/toolbar/GridToolbar.js +31 -6
- package/legacy/components/toolbar/GridToolbarDensitySelector.js +1 -1
- package/legacy/components/toolbar/GridToolbarExport.js +18 -19
- package/legacy/components/toolbar/GridToolbarQuickFilter.js +103 -0
- package/legacy/components/toolbar/index.js +3 -2
- package/legacy/components/virtualization/GridVirtualScroller.js +2 -0
- package/legacy/components/virtualization/GridVirtualScrollerContent.js +1 -3
- package/legacy/constants/defaultGridSlotsComponents.js +3 -2
- package/legacy/constants/gridClasses.js +1 -1
- package/legacy/constants/gridDetailPanelToggleField.js +2 -0
- package/legacy/constants/localeTextConstants.js +8 -1
- package/legacy/hooks/core/pipeProcessing/index.js +2 -1
- package/legacy/hooks/core/pipeProcessing/useGridPipeProcessing.js +60 -24
- package/legacy/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +27 -0
- package/legacy/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +0 -4
- package/legacy/hooks/core/strategyProcessing/useGridStrategyProcessing.js +6 -7
- package/legacy/hooks/core/useGridApiInitialization.js +3 -3
- package/legacy/hooks/core/useGridErrorHandler.js +1 -2
- package/legacy/hooks/core/useGridStateInitialization.js +1 -2
- package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +94 -16
- package/legacy/hooks/features/columnMenu/useGridColumnMenu.js +3 -3
- package/legacy/hooks/features/columns/gridColumnsUtils.js +79 -22
- package/legacy/hooks/features/columns/useGridColumnSpanning.js +106 -0
- package/legacy/hooks/features/columns/useGridColumns.js +30 -25
- package/legacy/hooks/features/dimensions/useGridDimensions.js +10 -11
- package/legacy/hooks/features/editRows/useGridCellEditing.new.js +225 -89
- package/legacy/hooks/features/editRows/useGridCellEditing.old.js +20 -21
- package/legacy/hooks/features/editRows/useGridEditing.new.js +7 -3
- package/legacy/hooks/features/editRows/useGridEditing.old.js +4 -5
- package/legacy/hooks/features/editRows/useGridRowEditing.new.js +157 -65
- package/legacy/hooks/features/editRows/useGridRowEditing.old.js +20 -21
- package/legacy/hooks/features/events/useGridEvents.js +17 -18
- package/legacy/hooks/features/export/serializers/csvSerializer.js +5 -5
- package/legacy/hooks/features/export/useGridCsvExport.js +24 -17
- package/legacy/hooks/features/export/useGridPrintExport.js +22 -0
- package/legacy/hooks/features/export/utils.js +14 -0
- package/legacy/hooks/features/filter/gridFilterState.js +3 -1
- package/legacy/hooks/features/filter/gridFilterUtils.js +96 -2
- package/legacy/hooks/features/filter/useGridFilter.js +32 -15
- package/legacy/hooks/features/focus/useGridFocus.js +50 -44
- package/legacy/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +43 -11
- package/legacy/hooks/features/pagination/useGridPage.js +3 -4
- package/legacy/hooks/features/pagination/useGridPageSize.js +2 -3
- package/legacy/hooks/features/preferencesPanel/useGridPreferencesPanel.js +4 -6
- package/legacy/hooks/features/rows/gridRowsSelector.js +6 -0
- package/legacy/hooks/features/rows/gridRowsUtils.js +27 -1
- package/legacy/hooks/features/rows/useGridRows.js +131 -61
- package/legacy/hooks/features/rows/useGridRowsMeta.js +6 -13
- package/legacy/hooks/features/rows/useGridRowsPreProcessors.js +2 -0
- package/legacy/hooks/features/scroll/useGridScroll.js +31 -4
- package/legacy/hooks/features/selection/useGridSelection.js +15 -11
- package/legacy/hooks/features/sorting/useGridSorting.js +12 -15
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +79 -42
- package/legacy/hooks/utils/useGridApiEventHandler.js +20 -9
- package/legacy/hooks/utils/useGridNativeEventListener.js +1 -2
- package/legacy/hooks/utils/useGridSelector.js +1 -1
- package/legacy/index.js +1 -1
- package/legacy/internals/index.js +6 -2
- package/legacy/locales/arSD.js +8 -1
- package/legacy/locales/bgBG.js +8 -1
- package/legacy/locales/csCZ.js +7 -0
- package/legacy/locales/daDK.js +8 -1
- package/legacy/locales/deDE.js +10 -3
- package/legacy/locales/elGR.js +7 -0
- package/legacy/locales/esES.js +7 -0
- package/legacy/locales/faIR.js +8 -1
- package/legacy/locales/fiFI.js +7 -0
- package/legacy/locales/frFR.js +7 -0
- package/legacy/locales/heIL.js +8 -1
- package/legacy/locales/huHU.js +127 -0
- package/legacy/locales/index.js +1 -0
- package/legacy/locales/itIT.js +7 -0
- package/legacy/locales/jaJP.js +7 -0
- package/legacy/locales/koKR.js +7 -0
- package/legacy/locales/nlNL.js +7 -0
- package/legacy/locales/plPL.js +8 -1
- package/legacy/locales/ptBR.js +8 -1
- package/legacy/locales/ruRU.js +7 -0
- package/legacy/locales/skSK.js +7 -0
- package/legacy/locales/trTR.js +8 -1
- package/legacy/locales/ukUA.js +7 -0
- package/legacy/locales/viVN.js +7 -0
- package/legacy/locales/zhCN.js +7 -0
- package/legacy/models/api/gridColumnSpanning.js +1 -0
- package/legacy/models/events/gridEvents.js +10 -3
- package/legacy/models/gridColumnSpanning.js +1 -0
- package/legacy/models/index.js +4 -3
- package/legacy/utils/createSelector.js +18 -2
- package/legacy/utils/exportAs.js +1 -1
- package/locales/arSD.js +8 -1
- package/locales/bgBG.js +8 -1
- package/locales/csCZ.js +7 -0
- package/locales/daDK.js +8 -1
- package/locales/deDE.js +10 -3
- package/locales/elGR.js +7 -0
- package/locales/esES.js +7 -0
- package/locales/faIR.js +8 -1
- package/locales/fiFI.js +7 -0
- package/locales/frFR.js +7 -0
- package/locales/heIL.js +8 -1
- package/locales/huHU.d.ts +2 -0
- package/locales/huHU.js +115 -0
- package/locales/index.d.ts +1 -0
- package/locales/index.js +1 -0
- package/locales/itIT.js +7 -0
- package/locales/jaJP.js +7 -0
- package/locales/koKR.js +7 -0
- package/locales/nlNL.js +7 -0
- package/locales/plPL.js +8 -1
- package/locales/ptBR.js +8 -1
- package/locales/ruRU.js +7 -0
- package/locales/skSK.js +7 -0
- package/locales/trTR.js +8 -1
- package/locales/ukUA.js +7 -0
- package/locales/viVN.js +7 -0
- package/locales/zhCN.js +7 -0
- package/models/api/gridApiCommon.d.ts +2 -1
- package/models/api/gridColumnSpanning.d.ts +28 -0
- package/models/api/gridColumnSpanning.js +1 -0
- package/models/api/gridCoreApi.d.ts +10 -0
- package/models/api/gridEditingApi.d.ts +72 -7
- package/models/api/gridFilterApi.d.ts +5 -0
- package/models/api/gridFocusApi.d.ts +1 -0
- package/models/api/gridLocaleTextApi.d.ts +5 -0
- package/models/api/gridRowApi.d.ts +34 -0
- package/models/api/index.d.ts +1 -1
- package/models/colDef/gridColDef.d.ts +18 -0
- package/models/events/gridEventLookup.d.ts +296 -11
- package/models/events/gridEvents.d.ts +10 -258
- package/models/events/gridEvents.js +10 -3
- package/models/gridColumnSpanning.d.ts +12 -0
- package/models/gridColumnSpanning.js +1 -0
- package/models/gridEditRowModel.d.ts +1 -1
- package/models/gridExport.d.ts +29 -2
- package/models/gridFilterModel.d.ts +11 -0
- package/models/gridFilterOperator.d.ts +1 -1
- package/models/gridIconSlotsComponent.d.ts +5 -0
- package/models/gridStateCommunity.d.ts +0 -2
- package/models/index.d.ts +1 -1
- package/models/index.js +4 -3
- package/models/params/gridCellParams.d.ts +12 -2
- package/models/params/gridRowParams.d.ts +5 -0
- package/models/props/DataGridProps.d.ts +57 -29
- package/modern/DataGrid/DataGrid.js +36 -2
- package/modern/DataGrid/useDataGridComponent.js +3 -1
- package/modern/DataGrid/useDataGridProps.js +2 -1
- package/modern/colDef/gridActionsColDef.js +2 -1
- package/modern/colDef/gridBooleanColDef.js +2 -1
- package/modern/colDef/gridCheckboxSelectionColDef.js +1 -0
- package/modern/colDef/gridDateColDef.js +4 -2
- package/modern/colDef/gridNumericColDef.js +3 -2
- package/modern/colDef/gridNumericOperators.js +11 -0
- package/modern/colDef/gridSingleSelectColDef.js +3 -2
- package/modern/colDef/gridSingleSelectOperators.js +52 -0
- package/modern/colDef/gridStringColDef.js +3 -2
- package/modern/colDef/gridStringOperators.js +12 -0
- package/modern/components/GridFooter.js +11 -2
- package/modern/components/GridRow.js +56 -26
- package/modern/components/GridRowCount.js +1 -0
- package/modern/components/GridScrollArea.js +3 -4
- package/modern/components/GridSelectedRowCount.js +2 -1
- package/modern/components/base/GridBody.js +1 -2
- package/modern/components/base/GridOverlays.js +5 -5
- package/modern/components/cell/GridActionsCell.js +179 -21
- package/modern/components/cell/GridActionsCellItem.js +7 -5
- package/modern/components/cell/GridCell.js +36 -15
- package/modern/components/cell/GridEditBooleanCell.js +101 -6
- package/modern/components/cell/GridEditDateCell.js +99 -5
- package/modern/components/cell/GridEditInputCell.js +30 -6
- package/modern/components/cell/GridEditSingleSelectCell.js +48 -16
- package/modern/components/cell/index.js +2 -0
- package/modern/components/columnHeaders/GridColumnHeaderItem.js +19 -23
- package/modern/components/columnHeaders/GridColumnHeaders.js +1 -1
- package/modern/components/columnSelection/GridCellCheckboxRenderer.js +22 -6
- package/modern/components/columnSelection/GridHeaderCheckbox.js +4 -5
- package/modern/components/containers/GridFooterContainer.js +11 -2
- package/modern/components/containers/GridRootStyles.js +36 -1
- package/modern/components/containers/GridToolbarContainer.js +12 -2
- package/modern/components/menu/GridMenu.js +1 -0
- package/modern/components/panel/GridPanel.js +1 -0
- package/modern/components/panel/GridPanelContent.js +13 -2
- package/modern/components/panel/GridPanelFooter.js +13 -2
- package/modern/components/panel/GridPanelHeader.js +13 -2
- package/modern/components/panel/filterPanel/GridFilterForm.js +10 -6
- package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +11 -6
- package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +20 -13
- package/modern/components/panel/filterPanel/GridFilterInputValue.js +20 -13
- package/modern/components/toolbar/GridToolbar.js +30 -7
- package/modern/components/toolbar/GridToolbarDensitySelector.js +1 -1
- package/modern/components/toolbar/GridToolbarExport.js +15 -20
- package/modern/components/toolbar/GridToolbarQuickFilter.js +86 -0
- package/modern/components/toolbar/index.js +3 -2
- package/modern/components/virtualization/GridVirtualScroller.js +2 -0
- package/modern/components/virtualization/GridVirtualScrollerContent.js +1 -3
- package/modern/constants/defaultGridSlotsComponents.js +3 -2
- package/modern/constants/gridClasses.js +1 -1
- package/modern/constants/gridDetailPanelToggleField.js +2 -0
- package/modern/constants/localeTextConstants.js +8 -1
- package/modern/hooks/core/pipeProcessing/index.js +2 -1
- package/modern/hooks/core/pipeProcessing/useGridPipeProcessing.js +53 -19
- package/modern/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +27 -0
- package/modern/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +0 -4
- package/modern/hooks/core/strategyProcessing/useGridStrategyProcessing.js +6 -7
- package/modern/hooks/core/useGridApiInitialization.js +3 -3
- package/modern/hooks/core/useGridErrorHandler.js +1 -2
- package/modern/hooks/core/useGridStateInitialization.js +1 -2
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +81 -16
- package/modern/hooks/features/columnMenu/useGridColumnMenu.js +3 -3
- package/modern/hooks/features/columns/gridColumnsUtils.js +61 -8
- package/modern/hooks/features/columns/useGridColumnSpanning.js +106 -0
- package/modern/hooks/features/columns/useGridColumns.js +30 -25
- package/modern/hooks/features/dimensions/useGridDimensions.js +10 -11
- package/modern/hooks/features/editRows/useGridCellEditing.new.js +149 -42
- package/modern/hooks/features/editRows/useGridCellEditing.old.js +20 -21
- package/modern/hooks/features/editRows/useGridEditing.new.js +7 -3
- package/modern/hooks/features/editRows/useGridEditing.old.js +4 -5
- package/modern/hooks/features/editRows/useGridRowEditing.new.js +143 -57
- package/modern/hooks/features/editRows/useGridRowEditing.old.js +21 -22
- package/modern/hooks/features/events/useGridEvents.js +17 -18
- package/modern/hooks/features/export/serializers/csvSerializer.js +5 -5
- package/modern/hooks/features/export/useGridCsvExport.js +21 -16
- package/modern/hooks/features/export/useGridPrintExport.js +20 -0
- package/modern/hooks/features/export/utils.js +13 -0
- package/modern/hooks/features/filter/gridFilterState.js +3 -1
- package/modern/hooks/features/filter/gridFilterUtils.js +80 -2
- package/modern/hooks/features/filter/useGridFilter.js +32 -15
- package/modern/hooks/features/focus/useGridFocus.js +48 -42
- package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +41 -12
- package/modern/hooks/features/pagination/useGridPage.js +3 -4
- package/modern/hooks/features/pagination/useGridPageSize.js +2 -3
- package/modern/hooks/features/preferencesPanel/useGridPreferencesPanel.js +4 -6
- package/modern/hooks/features/rows/gridRowsSelector.js +2 -0
- package/modern/hooks/features/rows/gridRowsUtils.js +23 -1
- package/modern/hooks/features/rows/useGridRows.js +121 -61
- package/modern/hooks/features/rows/useGridRowsMeta.js +6 -13
- package/modern/hooks/features/rows/useGridRowsPreProcessors.js +2 -0
- package/modern/hooks/features/scroll/useGridScroll.js +29 -4
- package/modern/hooks/features/selection/useGridSelection.js +15 -11
- package/modern/hooks/features/sorting/useGridSorting.js +17 -18
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +68 -28
- package/modern/hooks/utils/useGridApiEventHandler.js +20 -9
- package/modern/hooks/utils/useGridNativeEventListener.js +1 -2
- package/modern/hooks/utils/useGridSelector.js +1 -1
- package/modern/index.js +1 -1
- package/modern/internals/index.js +6 -2
- package/modern/locales/arSD.js +8 -1
- package/modern/locales/bgBG.js +8 -1
- package/modern/locales/csCZ.js +7 -0
- package/modern/locales/daDK.js +8 -1
- package/modern/locales/deDE.js +10 -3
- package/modern/locales/elGR.js +7 -0
- package/modern/locales/esES.js +7 -0
- package/modern/locales/faIR.js +8 -1
- package/modern/locales/fiFI.js +7 -0
- package/modern/locales/frFR.js +7 -0
- package/modern/locales/heIL.js +8 -1
- package/modern/locales/huHU.js +115 -0
- package/modern/locales/index.js +1 -0
- package/modern/locales/itIT.js +7 -0
- package/modern/locales/jaJP.js +7 -0
- package/modern/locales/koKR.js +7 -0
- package/modern/locales/nlNL.js +7 -0
- package/modern/locales/plPL.js +8 -1
- package/modern/locales/ptBR.js +8 -1
- package/modern/locales/ruRU.js +7 -0
- package/modern/locales/skSK.js +7 -0
- package/modern/locales/trTR.js +8 -1
- package/modern/locales/ukUA.js +7 -0
- package/modern/locales/viVN.js +7 -0
- package/modern/locales/zhCN.js +7 -0
- package/modern/models/api/gridColumnSpanning.js +1 -0
- package/modern/models/events/gridEvents.js +10 -3
- package/modern/models/gridColumnSpanning.js +1 -0
- package/modern/models/index.js +4 -3
- package/modern/utils/createSelector.js +20 -2
- package/modern/utils/exportAs.js +1 -1
- package/node/DataGrid/DataGrid.js +36 -2
- package/node/DataGrid/useDataGridComponent.js +4 -1
- package/node/DataGrid/useDataGridProps.js +2 -1
- package/node/colDef/gridActionsColDef.js +2 -1
- package/node/colDef/gridBooleanColDef.js +2 -1
- package/node/colDef/gridCheckboxSelectionColDef.js +1 -0
- package/node/colDef/gridDateColDef.js +4 -2
- package/node/colDef/gridNumericColDef.js +2 -1
- package/node/colDef/gridNumericOperators.js +15 -1
- package/node/colDef/gridSingleSelectColDef.js +2 -1
- package/node/colDef/gridSingleSelectOperators.js +56 -1
- package/node/colDef/gridStringColDef.js +2 -1
- package/node/colDef/gridStringOperators.js +16 -1
- package/node/components/GridFooter.js +10 -1
- package/node/components/GridRow.js +59 -29
- package/node/components/GridRowCount.js +1 -0
- package/node/components/GridScrollArea.js +3 -5
- package/node/components/GridSelectedRowCount.js +2 -1
- package/node/components/base/GridBody.js +1 -3
- package/node/components/base/GridOverlays.js +4 -5
- package/node/components/cell/GridActionsCell.js +181 -21
- package/node/components/cell/GridActionsCellItem.js +7 -4
- package/node/components/cell/GridCell.js +35 -14
- package/node/components/cell/GridEditBooleanCell.js +100 -5
- package/node/components/cell/GridEditDateCell.js +98 -4
- package/node/components/cell/GridEditInputCell.js +30 -6
- package/node/components/cell/GridEditSingleSelectCell.js +50 -18
- package/node/components/cell/index.js +26 -0
- package/node/components/columnHeaders/GridColumnHeaderItem.js +19 -24
- package/node/components/columnHeaders/GridColumnHeaders.js +1 -1
- package/node/components/columnSelection/GridCellCheckboxRenderer.js +22 -7
- package/node/components/columnSelection/GridHeaderCheckbox.js +4 -6
- package/node/components/containers/GridFooterContainer.js +10 -1
- package/node/components/containers/GridRootStyles.js +36 -1
- package/node/components/containers/GridToolbarContainer.js +11 -1
- package/node/components/menu/GridMenu.js +1 -0
- package/node/components/panel/GridPanel.js +1 -0
- package/node/components/panel/GridPanelContent.js +11 -1
- package/node/components/panel/GridPanelFooter.js +11 -1
- package/node/components/panel/GridPanelHeader.js +11 -1
- package/node/components/panel/filterPanel/GridFilterForm.js +15 -10
- package/node/components/panel/filterPanel/GridFilterInputBoolean.js +14 -8
- package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +23 -15
- package/node/components/panel/filterPanel/GridFilterInputValue.js +23 -15
- package/node/components/toolbar/GridToolbar.js +32 -7
- package/node/components/toolbar/GridToolbarDensitySelector.js +1 -1
- package/node/components/toolbar/GridToolbarExport.js +14 -19
- package/node/components/toolbar/GridToolbarQuickFilter.js +111 -0
- package/node/components/toolbar/index.js +42 -11
- package/node/components/virtualization/GridVirtualScroller.js +2 -0
- package/node/components/virtualization/GridVirtualScrollerContent.js +1 -3
- package/node/constants/defaultGridSlotsComponents.js +2 -1
- package/node/constants/gridClasses.js +1 -1
- package/node/constants/gridDetailPanelToggleField.js +9 -0
- package/node/constants/localeTextConstants.js +8 -1
- package/node/hooks/core/pipeProcessing/index.js +13 -0
- package/node/hooks/core/pipeProcessing/useGridPipeProcessing.js +51 -20
- package/node/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +42 -0
- package/node/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +0 -3
- package/node/hooks/core/strategyProcessing/useGridStrategyProcessing.js +6 -8
- package/node/hooks/core/useGridApiInitialization.js +3 -4
- package/node/hooks/core/useGridErrorHandler.js +1 -3
- package/node/hooks/core/useGridStateInitialization.js +1 -3
- package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +85 -17
- package/node/hooks/features/columnMenu/useGridColumnMenu.js +3 -4
- package/node/hooks/features/columns/gridColumnsUtils.js +65 -9
- package/node/hooks/features/columns/useGridColumnSpanning.js +128 -0
- package/node/hooks/features/columns/useGridColumns.js +29 -25
- package/node/hooks/features/dimensions/useGridDimensions.js +10 -12
- package/node/hooks/features/editRows/useGridCellEditing.new.js +151 -42
- package/node/hooks/features/editRows/useGridCellEditing.old.js +20 -22
- package/node/hooks/features/editRows/useGridEditing.new.js +6 -2
- package/node/hooks/features/editRows/useGridEditing.old.js +4 -6
- package/node/hooks/features/editRows/useGridRowEditing.new.js +143 -57
- package/node/hooks/features/editRows/useGridRowEditing.old.js +21 -23
- package/node/hooks/features/events/useGridEvents.js +17 -19
- package/node/hooks/features/export/serializers/csvSerializer.js +5 -5
- package/node/hooks/features/export/useGridCsvExport.js +26 -17
- package/node/hooks/features/export/useGridPrintExport.js +25 -0
- package/node/hooks/features/export/utils.js +19 -2
- package/node/hooks/features/filter/gridFilterState.js +3 -1
- package/node/hooks/features/filter/gridFilterUtils.js +92 -3
- package/node/hooks/features/filter/useGridFilter.js +33 -16
- package/node/hooks/features/focus/useGridFocus.js +48 -43
- package/node/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +44 -13
- package/node/hooks/features/pagination/useGridPage.js +3 -5
- package/node/hooks/features/pagination/useGridPageSize.js +2 -4
- package/node/hooks/features/preferencesPanel/useGridPreferencesPanel.js +4 -8
- package/node/hooks/features/rows/gridRowsSelector.js +5 -1
- package/node/hooks/features/rows/gridRowsUtils.js +29 -1
- package/node/hooks/features/rows/useGridRows.js +122 -61
- package/node/hooks/features/rows/useGridRowsMeta.js +6 -14
- package/node/hooks/features/rows/useGridRowsPreProcessors.js +2 -0
- package/node/hooks/features/scroll/useGridScroll.js +32 -3
- package/node/hooks/features/selection/useGridSelection.js +16 -12
- package/node/hooks/features/sorting/useGridSorting.js +17 -19
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +73 -33
- package/node/hooks/utils/useGridApiEventHandler.js +22 -10
- package/node/hooks/utils/useGridNativeEventListener.js +1 -3
- package/node/hooks/utils/useGridSelector.js +1 -1
- package/node/index.js +1 -1
- package/node/internals/index.js +47 -3
- package/node/locales/arSD.js +8 -1
- package/node/locales/bgBG.js +8 -1
- package/node/locales/csCZ.js +7 -0
- package/node/locales/daDK.js +8 -1
- package/node/locales/deDE.js +10 -3
- package/node/locales/elGR.js +7 -0
- package/node/locales/esES.js +7 -0
- package/node/locales/faIR.js +8 -1
- package/node/locales/fiFI.js +7 -0
- package/node/locales/frFR.js +7 -0
- package/node/locales/heIL.js +8 -1
- package/node/locales/huHU.js +125 -0
- package/node/locales/index.js +13 -0
- package/node/locales/itIT.js +7 -0
- package/node/locales/jaJP.js +7 -0
- package/node/locales/koKR.js +7 -0
- package/node/locales/nlNL.js +7 -0
- package/node/locales/plPL.js +8 -1
- package/node/locales/ptBR.js +8 -1
- package/node/locales/ruRU.js +7 -0
- package/node/locales/skSK.js +7 -0
- package/node/locales/trTR.js +8 -1
- package/node/locales/ukUA.js +7 -0
- package/node/locales/viVN.js +7 -0
- package/node/locales/zhCN.js +7 -0
- package/node/models/api/gridColumnSpanning.js +5 -0
- package/node/models/events/gridEvents.js +10 -3
- package/node/models/gridColumnSpanning.js +5 -0
- package/node/models/index.js +0 -13
- package/node/utils/createSelector.js +25 -4
- package/node/utils/exportAs.js +1 -1
- package/package.json +4 -4
- package/utils/createSelector.d.ts +2 -1
- package/utils/createSelector.js +20 -2
- package/utils/domUtils.d.ts +2 -2
- package/utils/exportAs.d.ts +2 -2
- package/utils/exportAs.js +1 -1
|
@@ -9,261 +9,546 @@ import type { GridSelectionModel } from '../gridSelectionModel';
|
|
|
9
9
|
import type { ElementSize } from '../elementSize';
|
|
10
10
|
import type { MuiBaseEvent } from '../muiEvent';
|
|
11
11
|
import type { GridRowId, GridRowTreeNodeConfig } from '../gridRows';
|
|
12
|
-
import type { GridPipeProcessorGroup } from '../../hooks/core/pipeProcessing';
|
|
13
12
|
import type { GridColumnVisibilityModel } from '../../hooks/features/columns';
|
|
14
13
|
import type { GridStrategyProcessorName } from '../../hooks/core/strategyProcessing';
|
|
15
14
|
import { GridRowEditStartParams, GridRowEditStopParams } from '../params/gridRowParams';
|
|
15
|
+
import { GridCellModesModel, GridRowModesModel } from '../api/gridEditingApi';
|
|
16
16
|
export interface GridRowEventLookup {
|
|
17
|
+
/**
|
|
18
|
+
* Fired when a row is clicked.
|
|
19
|
+
* Not fired if the cell clicked is from an interactive column (actions, checkbox, etc).
|
|
20
|
+
*/
|
|
17
21
|
rowClick: {
|
|
18
22
|
params: GridRowParams;
|
|
19
23
|
event: React.MouseEvent<HTMLElement>;
|
|
20
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* Fired when a row is double-clicked.
|
|
27
|
+
*/
|
|
21
28
|
rowDoubleClick: {
|
|
22
29
|
params: GridRowParams;
|
|
23
30
|
event: React.MouseEvent<HTMLElement>;
|
|
24
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* Fired when the mouse enters the row. Called with a [[GridRowParams]] object.
|
|
34
|
+
*/
|
|
25
35
|
rowMouseEnter: {
|
|
26
36
|
params: GridRowParams;
|
|
27
37
|
event: React.MouseEvent<HTMLElement>;
|
|
28
38
|
};
|
|
39
|
+
/**
|
|
40
|
+
* Fired when the mouse leaves the row. Called with a [[GridRowParams]] object.
|
|
41
|
+
*/
|
|
29
42
|
rowMouseLeave: {
|
|
30
43
|
params: GridRowParams;
|
|
31
44
|
event: React.MouseEvent<HTMLElement>;
|
|
32
45
|
};
|
|
46
|
+
/**
|
|
47
|
+
* Fired when the user starts dragging a row. It's mapped to the `dragstart` DOM event.
|
|
48
|
+
* @ignore - do not document.
|
|
49
|
+
*/
|
|
50
|
+
rowDragStart: {
|
|
51
|
+
params: GridRowParams;
|
|
52
|
+
event: React.DragEvent<HTMLElement>;
|
|
53
|
+
};
|
|
54
|
+
/**
|
|
55
|
+
* Fired while an element or text selection is dragged over the row.
|
|
56
|
+
* It's mapped to the `dragover` DOM event.
|
|
57
|
+
* @ignore - do not document.
|
|
58
|
+
*/
|
|
59
|
+
rowDragOver: {
|
|
60
|
+
params: GridRowParams;
|
|
61
|
+
event: React.DragEvent<HTMLElement>;
|
|
62
|
+
};
|
|
63
|
+
/**
|
|
64
|
+
* Fired when the dragging of a row ends.
|
|
65
|
+
* @ignore - do not document.
|
|
66
|
+
*/
|
|
67
|
+
rowDragEnd: {
|
|
68
|
+
params: GridRowParams;
|
|
69
|
+
event: React.DragEvent<HTMLElement>;
|
|
70
|
+
};
|
|
33
71
|
}
|
|
34
72
|
export interface GridColumnHeaderEventLookup {
|
|
73
|
+
/**
|
|
74
|
+
* Fired when a column header is clicked
|
|
75
|
+
*/
|
|
35
76
|
columnHeaderClick: {
|
|
36
77
|
params: GridColumnHeaderParams;
|
|
37
78
|
event: React.MouseEvent<HTMLElement>;
|
|
38
79
|
};
|
|
80
|
+
/**
|
|
81
|
+
* Fired when a column header is double-clicked.
|
|
82
|
+
*/
|
|
39
83
|
columnHeaderDoubleClick: {
|
|
40
84
|
params: GridColumnHeaderParams;
|
|
41
85
|
event: React.MouseEvent<HTMLElement>;
|
|
42
86
|
};
|
|
87
|
+
/**
|
|
88
|
+
* Fired when a `mouseover` event happens in a column header.
|
|
89
|
+
* @ignore - do not document.
|
|
90
|
+
*/
|
|
43
91
|
columnHeaderOver: {
|
|
44
92
|
params: GridColumnHeaderParams;
|
|
45
93
|
event: React.MouseEvent<HTMLElement>;
|
|
46
94
|
};
|
|
95
|
+
/**
|
|
96
|
+
* Fired when a `mouseout` event happens in a column header.
|
|
97
|
+
* @ignore - do not document.
|
|
98
|
+
*/
|
|
47
99
|
columnHeaderOut: {
|
|
48
100
|
params: GridColumnHeaderParams;
|
|
49
101
|
event: React.MouseEvent<HTMLElement>;
|
|
50
102
|
};
|
|
103
|
+
/**
|
|
104
|
+
* Fired when a `mouseenter` event happens in a column header.
|
|
105
|
+
* @ignore - do not document.
|
|
106
|
+
*/
|
|
51
107
|
columnHeaderEnter: {
|
|
52
108
|
params: GridColumnHeaderParams;
|
|
53
109
|
event: React.MouseEvent<HTMLElement>;
|
|
54
110
|
};
|
|
111
|
+
/**
|
|
112
|
+
* Fired when a `mouseleave` event happens in a column header.
|
|
113
|
+
* @ignore - do not document.*
|
|
114
|
+
*/
|
|
55
115
|
columnHeaderLeave: {
|
|
56
116
|
params: GridColumnHeaderParams;
|
|
57
117
|
event: React.MouseEvent<HTMLElement>;
|
|
58
118
|
};
|
|
119
|
+
/**
|
|
120
|
+
* Fired when a key is pressed in a column header. It's mapped do the `keydown` DOM event.
|
|
121
|
+
*/
|
|
59
122
|
columnHeaderKeyDown: {
|
|
60
123
|
params: GridColumnHeaderParams;
|
|
61
124
|
event: React.KeyboardEvent<HTMLElement>;
|
|
62
125
|
};
|
|
126
|
+
/**
|
|
127
|
+
* Fired when a column header gains focus.
|
|
128
|
+
* @ignore - do not document.
|
|
129
|
+
*/
|
|
63
130
|
columnHeaderFocus: {
|
|
64
131
|
params: GridColumnHeaderParams;
|
|
65
132
|
event: React.FocusEvent<HTMLElement>;
|
|
66
133
|
};
|
|
134
|
+
/**
|
|
135
|
+
* Fired when a column header loses focus.
|
|
136
|
+
* @ignore - do not document.
|
|
137
|
+
*/
|
|
67
138
|
columnHeaderBlur: {
|
|
68
139
|
params: GridColumnHeaderParams;
|
|
69
140
|
event: React.FocusEvent<HTMLElement>;
|
|
70
141
|
};
|
|
142
|
+
/**
|
|
143
|
+
* Fired when the user starts dragging a column header. It's mapped to the `dragstart` DOM event.
|
|
144
|
+
* @ignore - do not document.
|
|
145
|
+
*/
|
|
71
146
|
columnHeaderDragStart: {
|
|
72
147
|
params: GridColumnHeaderParams;
|
|
73
148
|
event: React.DragEvent<HTMLElement>;
|
|
74
149
|
};
|
|
150
|
+
/**
|
|
151
|
+
* Fired when the dragged column header enters a valid drop target.
|
|
152
|
+
* It's mapped to the `dragend` DOM event.
|
|
153
|
+
* @ignore - do not document.
|
|
154
|
+
*/
|
|
75
155
|
columnHeaderDragEnter: {
|
|
76
156
|
params: GridColumnHeaderParams;
|
|
77
157
|
event: React.DragEvent<HTMLElement>;
|
|
78
158
|
};
|
|
159
|
+
/**
|
|
160
|
+
* Fired while an element or text selection is dragged over the column header.
|
|
161
|
+
* It's mapped to the `dragover` DOM event.
|
|
162
|
+
* @ignore - do not document.
|
|
163
|
+
*/
|
|
79
164
|
columnHeaderDragOver: {
|
|
80
165
|
params: GridColumnHeaderParams;
|
|
81
166
|
event: React.DragEvent<HTMLElement>;
|
|
82
167
|
};
|
|
168
|
+
/**
|
|
169
|
+
* Fired when the dragging of a column header ends.
|
|
170
|
+
* @ignore - do not document.
|
|
171
|
+
*/
|
|
83
172
|
columnHeaderDragEnd: {
|
|
84
173
|
params: GridColumnHeaderParams;
|
|
85
174
|
event: React.DragEvent<HTMLElement>;
|
|
86
175
|
};
|
|
176
|
+
/**
|
|
177
|
+
* Fired when a `mousedown` DOM event happens in the column header separator.
|
|
178
|
+
* @ignore - do not document.
|
|
179
|
+
*/
|
|
87
180
|
columnSeparatorMouseDown: {
|
|
88
181
|
params: GridColumnHeaderParams;
|
|
89
182
|
event: React.MouseEvent<HTMLElement>;
|
|
90
183
|
};
|
|
91
184
|
}
|
|
92
185
|
export interface GridCellEventLookup {
|
|
186
|
+
/**
|
|
187
|
+
* Fired when a cell is clicked.
|
|
188
|
+
*/
|
|
93
189
|
cellClick: {
|
|
94
190
|
params: GridCellParams;
|
|
95
191
|
event: React.MouseEvent<HTMLElement>;
|
|
96
192
|
};
|
|
193
|
+
/**
|
|
194
|
+
* Fired when a cell is double-clicked.
|
|
195
|
+
*/
|
|
97
196
|
cellDoubleClick: {
|
|
98
197
|
params: GridCellParams;
|
|
99
198
|
event: React.MouseEvent<HTMLElement>;
|
|
100
199
|
};
|
|
200
|
+
/**
|
|
201
|
+
* Fired when a `mousedown` event happens in a cell.
|
|
202
|
+
*/
|
|
101
203
|
cellMouseDown: {
|
|
102
204
|
params: GridCellParams;
|
|
103
205
|
event: React.MouseEvent<HTMLElement>;
|
|
104
206
|
};
|
|
207
|
+
/**
|
|
208
|
+
* Fired when a `mouseup` event happens in a cell.
|
|
209
|
+
*/
|
|
105
210
|
cellMouseUp: {
|
|
106
211
|
params: GridCellParams;
|
|
107
212
|
event: React.MouseEvent<HTMLElement>;
|
|
108
213
|
};
|
|
214
|
+
/**
|
|
215
|
+
* Fired when a `keydown` event happens in a cell.
|
|
216
|
+
*/
|
|
109
217
|
cellKeyDown: {
|
|
110
218
|
params: GridCellParams;
|
|
111
219
|
event: React.KeyboardEvent<HTMLElement>;
|
|
112
220
|
};
|
|
221
|
+
/**
|
|
222
|
+
* Fired when the dragged cell enters a valid drop target. It's mapped to the `dragend` DOM event.
|
|
223
|
+
* @ignore - do not document.
|
|
224
|
+
*/
|
|
113
225
|
cellDragEnter: {
|
|
114
226
|
params: GridCellParams;
|
|
115
227
|
event: React.DragEvent<HTMLElement>;
|
|
116
228
|
};
|
|
229
|
+
/**
|
|
230
|
+
* Fired while an element or text selection is dragged over the cell.
|
|
231
|
+
* It's mapped to the `dragover` DOM event.
|
|
232
|
+
* @ignore - do not document.
|
|
233
|
+
*/
|
|
117
234
|
cellDragOver: {
|
|
118
235
|
params: GridCellParams;
|
|
119
236
|
event: React.DragEvent<HTMLElement>;
|
|
120
237
|
};
|
|
121
238
|
}
|
|
122
239
|
export interface GridControlledStateEventLookup {
|
|
240
|
+
/**
|
|
241
|
+
* Fired when the page size changes.
|
|
242
|
+
*/
|
|
123
243
|
pageSizeChange: {
|
|
124
244
|
params: number;
|
|
125
245
|
};
|
|
246
|
+
/**
|
|
247
|
+
* Fired when the page changes.
|
|
248
|
+
*/
|
|
126
249
|
pageChange: {
|
|
127
250
|
params: number;
|
|
128
251
|
};
|
|
252
|
+
/**
|
|
253
|
+
* Fired when the filter model changes.
|
|
254
|
+
*/
|
|
129
255
|
filterModelChange: {
|
|
130
256
|
params: GridFilterModel;
|
|
131
257
|
};
|
|
258
|
+
/**
|
|
259
|
+
* Fired when the sort model changes.
|
|
260
|
+
*/
|
|
132
261
|
sortModelChange: {
|
|
133
262
|
params: GridSortModel;
|
|
134
263
|
};
|
|
264
|
+
/**
|
|
265
|
+
* Fired when the row editing model changes.
|
|
266
|
+
*/
|
|
135
267
|
editRowsModelChange: {
|
|
136
268
|
params: GridEditRowsModel;
|
|
137
269
|
};
|
|
270
|
+
/**
|
|
271
|
+
* Fired when the selection state of one or multiple rows changes.
|
|
272
|
+
*/
|
|
138
273
|
selectionChange: {
|
|
139
274
|
params: GridSelectionModel;
|
|
140
275
|
};
|
|
276
|
+
/**
|
|
277
|
+
* Fired when the column visibility model changes.
|
|
278
|
+
*/
|
|
141
279
|
columnVisibilityModelChange: {
|
|
142
280
|
params: GridColumnVisibilityModel;
|
|
143
281
|
};
|
|
144
|
-
detailPanelsExpandedRowIdsChange: {
|
|
145
|
-
params: GridRowId[];
|
|
146
|
-
};
|
|
147
282
|
}
|
|
148
283
|
export interface GridEventLookup extends GridRowEventLookup, GridColumnHeaderEventLookup, GridCellEventLookup, GridControlledStateEventLookup {
|
|
284
|
+
/**
|
|
285
|
+
* Fired when the grid is unmounted.
|
|
286
|
+
*/
|
|
149
287
|
unmount: {};
|
|
288
|
+
/**
|
|
289
|
+
* Fired when an exception is thrown in the grid.
|
|
290
|
+
*/
|
|
150
291
|
componentError: {
|
|
151
292
|
params: any;
|
|
152
293
|
};
|
|
294
|
+
/**
|
|
295
|
+
* Fired when the state of the grid is updated.
|
|
296
|
+
*/
|
|
153
297
|
stateChange: {
|
|
154
298
|
params: any;
|
|
155
299
|
};
|
|
300
|
+
/**
|
|
301
|
+
* Fired when the grid is resized.
|
|
302
|
+
*/
|
|
156
303
|
resize: {
|
|
157
304
|
params: ElementSize;
|
|
158
305
|
};
|
|
306
|
+
/**
|
|
307
|
+
* Fired when the inner size of the viewport changes. Called with an [[ElementSize]] object.
|
|
308
|
+
*/
|
|
159
309
|
viewportInnerSizeChange: {
|
|
160
310
|
params: ElementSize;
|
|
161
311
|
};
|
|
312
|
+
/**
|
|
313
|
+
* Fired when the grid is resized with a debounced time of 60ms.
|
|
314
|
+
*/
|
|
162
315
|
debouncedResize: {
|
|
163
316
|
params: ElementSize;
|
|
164
317
|
};
|
|
165
|
-
|
|
166
|
-
|
|
167
|
-
|
|
168
|
-
|
|
169
|
-
params: GridPipeProcessorGroup;
|
|
170
|
-
};
|
|
318
|
+
/**
|
|
319
|
+
* Fired when a processor of the active strategy changes.
|
|
320
|
+
* @ignore - do not document.
|
|
321
|
+
*/
|
|
171
322
|
activeStrategyProcessorChange: {
|
|
172
323
|
params: GridStrategyProcessorName;
|
|
173
324
|
};
|
|
325
|
+
/**
|
|
326
|
+
* Fired when the callback to decide if a strategy is available or not changes.
|
|
327
|
+
* @ignore - do not document.
|
|
328
|
+
*/
|
|
174
329
|
strategyAvailabilityChange: {};
|
|
330
|
+
/**
|
|
331
|
+
* Fired when the columns state is changed.
|
|
332
|
+
*/
|
|
175
333
|
columnsChange: {
|
|
176
334
|
params: string[];
|
|
177
335
|
};
|
|
336
|
+
/**
|
|
337
|
+
* Fired when the width of a column is changed.
|
|
338
|
+
*/
|
|
178
339
|
columnWidthChange: {
|
|
179
340
|
params: GridColumnResizeParams;
|
|
180
341
|
event: MouseEvent | {};
|
|
181
342
|
};
|
|
343
|
+
/**
|
|
344
|
+
* Fired when the user starts resizing a column.
|
|
345
|
+
*/
|
|
182
346
|
columnResizeStart: {
|
|
183
347
|
params: {
|
|
184
348
|
field: string;
|
|
185
349
|
};
|
|
186
350
|
event: React.MouseEvent<HTMLElement>;
|
|
187
351
|
};
|
|
352
|
+
/**
|
|
353
|
+
* Fired when the user stops resizing a column.
|
|
354
|
+
*/
|
|
188
355
|
columnResizeStop: {
|
|
189
356
|
params: null;
|
|
190
357
|
event: MouseEvent;
|
|
191
358
|
};
|
|
359
|
+
/**
|
|
360
|
+
* Fired when a column visibility changes.
|
|
361
|
+
* It is not fired when the `columnVisibilityModel` is controlled or initialized.
|
|
362
|
+
* It is not fired when toggling all column's visibility at once.
|
|
363
|
+
* @deprecated Use `'columnVisibilityModelChange'` instead.
|
|
364
|
+
*/
|
|
192
365
|
columnVisibilityChange: {
|
|
193
366
|
params: GridColumnVisibilityChangeParams;
|
|
194
367
|
};
|
|
368
|
+
/**
|
|
369
|
+
* Fired during the resizing of a column.
|
|
370
|
+
*/
|
|
195
371
|
columnResize: {
|
|
196
372
|
params: GridColumnResizeParams;
|
|
197
373
|
event: MouseEvent;
|
|
198
374
|
};
|
|
375
|
+
/**
|
|
376
|
+
* Fired when the user ends reordering a column.
|
|
377
|
+
*/
|
|
199
378
|
columnOrderChange: {
|
|
200
379
|
params: GridColumnOrderChangeParams;
|
|
201
380
|
};
|
|
381
|
+
/**
|
|
382
|
+
* Fired when the rows are updated.
|
|
383
|
+
* @ignore - do not document.
|
|
384
|
+
*/
|
|
202
385
|
rowsSet: {};
|
|
203
|
-
|
|
386
|
+
/**
|
|
387
|
+
* Fired when the filtered rows are updated
|
|
388
|
+
* @ignore - do not document.
|
|
389
|
+
*/
|
|
390
|
+
filteredRowsSet: {};
|
|
391
|
+
/**
|
|
392
|
+
* Fired when the sorted rows are updated
|
|
393
|
+
* @ignore - do not document
|
|
394
|
+
*/
|
|
395
|
+
sortedRowsSet: {};
|
|
396
|
+
/**
|
|
397
|
+
* Fired when the expansion of a row is changed. Called with a [[GridRowTreeNodeConfig]] object.
|
|
398
|
+
* @ignore - do not document.
|
|
399
|
+
*/
|
|
204
400
|
rowExpansionChange: {
|
|
205
401
|
params: GridRowTreeNodeConfig;
|
|
206
402
|
};
|
|
403
|
+
/**
|
|
404
|
+
* Fired when the mode of a cell changes.
|
|
405
|
+
* @ignore - do not document
|
|
406
|
+
*/
|
|
207
407
|
cellModeChange: {
|
|
208
408
|
params: GridCellParams;
|
|
209
409
|
};
|
|
410
|
+
/**
|
|
411
|
+
* Fired when the model that controls the cell modes changes.
|
|
412
|
+
*/
|
|
413
|
+
cellModesModelChange: {
|
|
414
|
+
params: GridCellModesModel;
|
|
415
|
+
};
|
|
416
|
+
/**
|
|
417
|
+
* Fired when the model that controls the row modes changes.
|
|
418
|
+
*/
|
|
419
|
+
rowModesModelChange: {
|
|
420
|
+
params: GridRowModesModel;
|
|
421
|
+
};
|
|
422
|
+
/**
|
|
423
|
+
* Fired when the cell turns to edit mode.
|
|
424
|
+
*/
|
|
210
425
|
cellEditStart: {
|
|
211
426
|
params: GridCellEditStartParams;
|
|
212
427
|
event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>;
|
|
213
428
|
};
|
|
429
|
+
/**
|
|
430
|
+
* Fired when the cell turns back to view mode.
|
|
431
|
+
*/
|
|
214
432
|
cellEditStop: {
|
|
215
433
|
params: GridCellEditStopParams;
|
|
216
434
|
event: MuiBaseEvent;
|
|
217
435
|
};
|
|
436
|
+
/**
|
|
437
|
+
* Fired when the props of the edit input are committed.
|
|
438
|
+
*/
|
|
218
439
|
cellEditCommit: {
|
|
219
440
|
params: GridCellEditCommitParams;
|
|
220
441
|
event: MuiBaseEvent;
|
|
221
442
|
};
|
|
443
|
+
/**
|
|
444
|
+
* Fired when the props of the edit cell changes.
|
|
445
|
+
*/
|
|
222
446
|
editCellPropsChange: {
|
|
223
447
|
params: GridEditCellPropsParams;
|
|
224
448
|
event: React.SyntheticEvent<HTMLElement> | {};
|
|
225
449
|
};
|
|
450
|
+
/**
|
|
451
|
+
* Fired when the row turns to edit mode.
|
|
452
|
+
*/
|
|
226
453
|
rowEditStart: {
|
|
227
454
|
params: GridRowEditStartParams;
|
|
228
455
|
event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>;
|
|
229
456
|
};
|
|
457
|
+
/**
|
|
458
|
+
* Fired when the row turns back to view mode.
|
|
459
|
+
*/
|
|
230
460
|
rowEditStop: {
|
|
231
461
|
params: GridRowEditStopParams;
|
|
232
462
|
event: MuiBaseEvent;
|
|
233
463
|
};
|
|
464
|
+
/**
|
|
465
|
+
* Fired when the props of the edit input are committed.
|
|
466
|
+
*/
|
|
234
467
|
rowEditCommit: {
|
|
235
468
|
params: GridRowId;
|
|
236
469
|
event: MuiBaseEvent;
|
|
237
470
|
};
|
|
471
|
+
/**
|
|
472
|
+
* Fired when a cell gains focus.
|
|
473
|
+
*/
|
|
238
474
|
cellFocusIn: {
|
|
239
475
|
params: GridCellParams;
|
|
240
476
|
};
|
|
477
|
+
/**
|
|
478
|
+
* Fired when a cell loses focus.
|
|
479
|
+
*/
|
|
241
480
|
cellFocusOut: {
|
|
242
481
|
params: GridCellParams;
|
|
243
482
|
event: MuiBaseEvent;
|
|
244
483
|
};
|
|
484
|
+
/**
|
|
485
|
+
* Fired when a [navigation key](/x/react-data-grid/accessibility#keyboard-navigation) is pressed in a cell.
|
|
486
|
+
* @ignore - do not document.
|
|
487
|
+
*/
|
|
245
488
|
cellNavigationKeyDown: {
|
|
246
489
|
params: GridCellParams | GridRowParams;
|
|
247
490
|
event: React.KeyboardEvent<HTMLElement>;
|
|
248
491
|
};
|
|
492
|
+
/**
|
|
493
|
+
* Fired when a [navigation key](/x/react-data-grid/accessibility#keyboard-navigation) is pressed in a column header.
|
|
494
|
+
* @ignore - do not document.
|
|
495
|
+
*/
|
|
249
496
|
columnHeaderNavigationKeyDown: {
|
|
250
497
|
params: GridColumnHeaderParams;
|
|
251
498
|
event: React.KeyboardEvent<HTMLElement>;
|
|
252
499
|
};
|
|
500
|
+
/**
|
|
501
|
+
* Fired during the scroll of the grid viewport.
|
|
502
|
+
*/
|
|
253
503
|
rowsScroll: {
|
|
254
504
|
params: GridScrollParams;
|
|
505
|
+
event: React.UIEvent | MuiBaseEvent;
|
|
255
506
|
};
|
|
507
|
+
/**
|
|
508
|
+
* Fired when the content size used by the `GridVirtualScroller` changes.
|
|
509
|
+
* @ignore - do not document.
|
|
510
|
+
*/
|
|
256
511
|
virtualScrollerContentSizeChange: {};
|
|
512
|
+
/**
|
|
513
|
+
* Fired when the content is scrolled by the mouse wheel.
|
|
514
|
+
* It's attached to the "mousewheel" event.
|
|
515
|
+
* @ignore - do not document.
|
|
516
|
+
*/
|
|
517
|
+
virtualScrollerWheel: {
|
|
518
|
+
params: {};
|
|
519
|
+
event: React.WheelEvent;
|
|
520
|
+
};
|
|
521
|
+
/**
|
|
522
|
+
* Fired when the content is moved using a touch device.
|
|
523
|
+
* It's attached to the "touchmove" event.
|
|
524
|
+
* @ignore - do not document.
|
|
525
|
+
*/
|
|
526
|
+
virtualScrollerTouchMove: {
|
|
527
|
+
params: {};
|
|
528
|
+
event: React.TouchEvent;
|
|
529
|
+
};
|
|
530
|
+
/**
|
|
531
|
+
* Fired when the value of the selection checkbox of the header is changed
|
|
532
|
+
*/
|
|
257
533
|
headerSelectionCheckboxChange: {
|
|
258
534
|
params: GridHeaderSelectionCheckboxParams;
|
|
259
535
|
};
|
|
536
|
+
/**
|
|
537
|
+
* Fired when the value of the selection checkbox of a row is changed
|
|
538
|
+
*/
|
|
260
539
|
rowSelectionCheckboxChange: {
|
|
261
540
|
params: GridRowSelectionCheckboxParams;
|
|
262
541
|
event: React.ChangeEvent<HTMLElement>;
|
|
263
542
|
};
|
|
543
|
+
/**
|
|
544
|
+
* Fired when the preference panel is closed.
|
|
545
|
+
*/
|
|
264
546
|
preferencePanelClose: {
|
|
265
547
|
params: GridPreferencePanelParams;
|
|
266
548
|
};
|
|
549
|
+
/**
|
|
550
|
+
* Fired when the preference panel is opened.
|
|
551
|
+
*/
|
|
267
552
|
preferencePanelOpen: {
|
|
268
553
|
params: GridPreferencePanelParams;
|
|
269
554
|
};
|