@mui/x-data-grid 5.9.0 → 5.11.1
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 +284 -10
- package/DataGrid/DataGrid.js +35 -1
- package/DataGrid/useDataGridProps.js +2 -1
- package/README.md +5 -4
- 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.js +9 -5
- 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 +2 -3
- package/components/cell/GridActionsCell.js +13 -4
- package/components/cell/GridCell.js +8 -8
- 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 +29 -5
- package/components/cell/GridEditSingleSelectCell.d.ts +12 -4
- package/components/cell/GridEditSingleSelectCell.js +28 -5
- package/components/cell/index.d.ts +2 -0
- package/components/cell/index.js +2 -0
- package/components/columnHeaders/GridColumnHeaderItem.js +15 -16
- package/components/columnHeaders/GridColumnHeaders.d.ts +2 -0
- package/components/columnHeaders/GridColumnHeadersInner.d.ts +2 -0
- package/components/columnSelection/GridCellCheckboxRenderer.js +2 -3
- 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/GridRoot.js +25 -5
- 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/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/toolbar/GridToolbar.d.ts +12 -2
- package/components/toolbar/GridToolbar.js +30 -7
- 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 +87 -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/GridVirtualScrollerContent.d.ts +4 -1
- package/components/virtualization/GridVirtualScrollerRenderZone.d.ts +4 -1
- package/constants/defaultGridSlotsComponents.js +4 -2
- package/constants/gridClasses.d.ts +32 -0
- package/constants/gridClasses.js +1 -1
- package/constants/localeTextConstants.js +8 -1
- package/hooks/core/pipeProcessing/gridPipeProcessingApi.d.ts +11 -0
- package/hooks/core/pipeProcessing/useGridPipeProcessing.js +10 -9
- 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.js +5 -6
- package/hooks/features/columnMenu/useGridColumnMenu.js +3 -3
- package/hooks/features/columns/useGridColumnSpanning.js +1 -2
- package/hooks/features/columns/useGridColumns.d.ts +1 -1
- package/hooks/features/columns/useGridColumns.js +8 -9
- package/hooks/features/dimensions/useGridDimensions.d.ts +1 -1
- package/hooks/features/dimensions/useGridDimensions.js +8 -9
- package/hooks/features/editRows/useGridCellEditing.new.d.ts +1 -1
- package/hooks/features/editRows/useGridCellEditing.new.js +133 -32
- package/hooks/features/editRows/useGridCellEditing.old.js +20 -21
- 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 +122 -42
- 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 +20 -8
- package/hooks/features/focus/useGridFocus.d.ts +1 -1
- package/hooks/features/focus/useGridFocus.js +29 -33
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +4 -5
- 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 +1 -0
- package/hooks/features/rows/gridRowsSelector.js +1 -0
- package/hooks/features/rows/gridRowsState.d.ts +16 -11
- package/hooks/features/rows/gridRowsUtils.d.ts +14 -1
- package/hooks/features/rows/gridRowsUtils.js +79 -1
- package/hooks/features/rows/useGridRows.js +148 -128
- package/hooks/features/rows/useGridRowsPreProcessors.js +2 -0
- package/hooks/features/scroll/useGridScroll.js +6 -1
- package/hooks/features/selection/useGridSelection.d.ts +1 -1
- package/hooks/features/selection/useGridSelection.js +13 -10
- package/hooks/features/sorting/useGridSorting.js +8 -9
- package/hooks/features/virtualization/useGridVirtualScroller.d.ts +2 -0
- package/hooks/features/virtualization/useGridVirtualScroller.js +14 -5
- 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 +4 -1
- package/internals/index.js +5 -2
- package/legacy/DataGrid/DataGrid.js +35 -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 +9 -5
- 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 +2 -3
- package/legacy/components/cell/GridActionsCell.js +13 -4
- package/legacy/components/cell/GridCell.js +8 -8
- package/legacy/components/cell/GridEditBooleanCell.js +132 -11
- package/legacy/components/cell/GridEditDateCell.js +148 -42
- package/legacy/components/cell/GridEditInputCell.js +61 -12
- package/legacy/components/cell/GridEditSingleSelectCell.js +41 -13
- package/legacy/components/cell/index.js +2 -0
- package/legacy/components/columnHeaders/GridColumnHeaderItem.js +15 -16
- package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +2 -3
- package/legacy/components/columnSelection/GridHeaderCheckbox.js +4 -5
- package/legacy/components/containers/GridFooterContainer.js +11 -2
- package/legacy/components/containers/GridRoot.js +23 -5
- 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/GridPanelContent.js +13 -2
- package/legacy/components/panel/GridPanelFooter.js +13 -2
- package/legacy/components/panel/GridPanelHeader.js +13 -2
- package/legacy/components/toolbar/GridToolbar.js +31 -6
- package/legacy/components/toolbar/GridToolbarExport.js +18 -19
- package/legacy/components/toolbar/GridToolbarQuickFilter.js +102 -0
- package/legacy/components/toolbar/index.js +3 -2
- package/legacy/constants/defaultGridSlotsComponents.js +4 -2
- package/legacy/constants/gridClasses.js +1 -1
- package/legacy/constants/localeTextConstants.js +8 -1
- package/legacy/hooks/core/pipeProcessing/useGridPipeProcessing.js +10 -10
- 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 +5 -6
- package/legacy/hooks/features/columnMenu/useGridColumnMenu.js +3 -3
- package/legacy/hooks/features/columns/useGridColumnSpanning.js +1 -2
- package/legacy/hooks/features/columns/useGridColumns.js +8 -9
- package/legacy/hooks/features/dimensions/useGridDimensions.js +8 -9
- package/legacy/hooks/features/editRows/useGridCellEditing.new.js +213 -83
- package/legacy/hooks/features/editRows/useGridCellEditing.old.js +20 -21
- package/legacy/hooks/features/editRows/useGridEditing.old.js +4 -5
- package/legacy/hooks/features/editRows/useGridRowEditing.new.js +126 -42
- 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 +20 -8
- package/legacy/hooks/features/focus/useGridFocus.js +31 -35
- package/legacy/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +4 -5
- 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 +3 -0
- package/legacy/hooks/features/rows/gridRowsUtils.js +82 -1
- package/legacy/hooks/features/rows/useGridRows.js +164 -131
- package/legacy/hooks/features/rows/useGridRowsPreProcessors.js +2 -0
- package/legacy/hooks/features/scroll/useGridScroll.js +6 -1
- package/legacy/hooks/features/selection/useGridSelection.js +13 -10
- package/legacy/hooks/features/sorting/useGridSorting.js +8 -9
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +14 -5
- 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 +5 -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 +8 -1
- 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/events/gridEvents.js +8 -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.js +8 -1
- 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/gridCoreApi.d.ts +10 -0
- package/models/api/gridEditingApi.d.ts +23 -4
- 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 +13 -0
- package/models/events/gridEventLookup.d.ts +293 -3
- package/models/events/gridEvents.d.ts +8 -251
- package/models/events/gridEvents.js +8 -0
- 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 +10 -0
- package/models/gridStateCommunity.d.ts +0 -2
- package/models/index.d.ts +1 -1
- package/models/index.js +4 -3
- package/models/props/DataGridProps.d.ts +56 -28
- package/modern/DataGrid/DataGrid.js +35 -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 +9 -5
- 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 +2 -3
- package/modern/components/cell/GridActionsCell.js +14 -3
- package/modern/components/cell/GridCell.js +8 -8
- package/modern/components/cell/GridEditBooleanCell.js +101 -6
- package/modern/components/cell/GridEditDateCell.js +99 -5
- package/modern/components/cell/GridEditInputCell.js +29 -5
- package/modern/components/cell/GridEditSingleSelectCell.js +28 -5
- package/modern/components/cell/index.js +2 -0
- package/modern/components/columnHeaders/GridColumnHeaderItem.js +15 -16
- package/modern/components/columnSelection/GridCellCheckboxRenderer.js +2 -3
- package/modern/components/columnSelection/GridHeaderCheckbox.js +4 -5
- package/modern/components/containers/GridFooterContainer.js +11 -2
- package/modern/components/containers/GridRoot.js +25 -3
- 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/GridPanelContent.js +13 -2
- package/modern/components/panel/GridPanelFooter.js +13 -2
- package/modern/components/panel/GridPanelHeader.js +13 -2
- package/modern/components/toolbar/GridToolbar.js +30 -7
- package/modern/components/toolbar/GridToolbarExport.js +15 -20
- package/modern/components/toolbar/GridToolbarQuickFilter.js +85 -0
- package/modern/components/toolbar/index.js +3 -2
- package/modern/constants/defaultGridSlotsComponents.js +4 -2
- package/modern/constants/gridClasses.js +1 -1
- package/modern/constants/localeTextConstants.js +8 -1
- package/modern/hooks/core/pipeProcessing/useGridPipeProcessing.js +10 -9
- 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 +5 -6
- package/modern/hooks/features/columnMenu/useGridColumnMenu.js +3 -3
- package/modern/hooks/features/columns/useGridColumnSpanning.js +1 -2
- package/modern/hooks/features/columns/useGridColumns.js +8 -9
- package/modern/hooks/features/dimensions/useGridDimensions.js +8 -9
- package/modern/hooks/features/editRows/useGridCellEditing.new.js +131 -32
- package/modern/hooks/features/editRows/useGridCellEditing.old.js +20 -21
- package/modern/hooks/features/editRows/useGridEditing.old.js +4 -5
- package/modern/hooks/features/editRows/useGridRowEditing.new.js +120 -42
- 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 +20 -8
- package/modern/hooks/features/focus/useGridFocus.js +29 -33
- package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +4 -5
- 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 +1 -0
- package/modern/hooks/features/rows/gridRowsUtils.js +77 -1
- package/modern/hooks/features/rows/useGridRows.js +148 -128
- package/modern/hooks/features/rows/useGridRowsPreProcessors.js +2 -0
- package/modern/hooks/features/scroll/useGridScroll.js +6 -1
- package/modern/hooks/features/selection/useGridSelection.js +13 -10
- package/modern/hooks/features/sorting/useGridSorting.js +8 -9
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +14 -5
- 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 +5 -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 +8 -1
- 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/events/gridEvents.js +8 -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 +35 -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 +9 -6
- 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 +2 -4
- package/node/components/cell/GridActionsCell.js +13 -4
- package/node/components/cell/GridCell.js +7 -7
- package/node/components/cell/GridEditBooleanCell.js +100 -5
- package/node/components/cell/GridEditDateCell.js +98 -4
- package/node/components/cell/GridEditInputCell.js +29 -5
- package/node/components/cell/GridEditSingleSelectCell.js +28 -6
- package/node/components/cell/index.js +26 -0
- package/node/components/columnHeaders/GridColumnHeaderItem.js +15 -17
- package/node/components/columnSelection/GridCellCheckboxRenderer.js +2 -4
- package/node/components/columnSelection/GridHeaderCheckbox.js +4 -6
- package/node/components/containers/GridFooterContainer.js +10 -1
- package/node/components/containers/GridRoot.js +24 -3
- 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/GridPanelContent.js +11 -1
- package/node/components/panel/GridPanelFooter.js +11 -1
- package/node/components/panel/GridPanelHeader.js +11 -1
- package/node/components/toolbar/GridToolbar.js +32 -7
- package/node/components/toolbar/GridToolbarExport.js +14 -19
- package/node/components/toolbar/GridToolbarQuickFilter.js +109 -0
- package/node/components/toolbar/index.js +42 -11
- package/node/constants/defaultGridSlotsComponents.js +3 -1
- package/node/constants/gridClasses.js +1 -1
- package/node/constants/localeTextConstants.js +8 -1
- package/node/hooks/core/pipeProcessing/useGridPipeProcessing.js +10 -8
- 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 +5 -7
- package/node/hooks/features/columnMenu/useGridColumnMenu.js +3 -4
- package/node/hooks/features/columns/useGridColumnSpanning.js +1 -3
- package/node/hooks/features/columns/useGridColumns.js +8 -10
- package/node/hooks/features/dimensions/useGridDimensions.js +8 -10
- package/node/hooks/features/editRows/useGridCellEditing.new.js +133 -32
- package/node/hooks/features/editRows/useGridCellEditing.old.js +20 -22
- package/node/hooks/features/editRows/useGridEditing.old.js +4 -6
- package/node/hooks/features/editRows/useGridRowEditing.new.js +122 -43
- 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 +21 -9
- package/node/hooks/features/focus/useGridFocus.js +29 -34
- package/node/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +4 -6
- 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 +3 -1
- package/node/hooks/features/rows/gridRowsUtils.js +95 -1
- package/node/hooks/features/rows/useGridRows.js +150 -126
- package/node/hooks/features/rows/useGridRowsPreProcessors.js +2 -0
- package/node/hooks/features/scroll/useGridScroll.js +6 -1
- package/node/hooks/features/selection/useGridSelection.js +13 -11
- package/node/hooks/features/sorting/useGridSorting.js +8 -10
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +14 -6
- 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 +39 -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 +8 -1
- 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/events/gridEvents.js +8 -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 +3 -2
- package/utils/createSelector.d.ts +2 -1
- package/utils/createSelector.js +20 -2
- package/utils/exportAs.d.ts +2 -2
- package/utils/exportAs.js +1 -1
|
@@ -12,253 +12,543 @@ import type { GridRowId, GridRowTreeNodeConfig } from '../gridRows';
|
|
|
12
12
|
import type { GridColumnVisibilityModel } from '../../hooks/features/columns';
|
|
13
13
|
import type { GridStrategyProcessorName } from '../../hooks/core/strategyProcessing';
|
|
14
14
|
import { GridRowEditStartParams, GridRowEditStopParams } from '../params/gridRowParams';
|
|
15
|
+
import { GridCellModesModel, GridRowModesModel } from '../api/gridEditingApi';
|
|
15
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
|
+
*/
|
|
16
21
|
rowClick: {
|
|
17
22
|
params: GridRowParams;
|
|
18
23
|
event: React.MouseEvent<HTMLElement>;
|
|
19
24
|
};
|
|
25
|
+
/**
|
|
26
|
+
* Fired when a row is double-clicked.
|
|
27
|
+
*/
|
|
20
28
|
rowDoubleClick: {
|
|
21
29
|
params: GridRowParams;
|
|
22
30
|
event: React.MouseEvent<HTMLElement>;
|
|
23
31
|
};
|
|
32
|
+
/**
|
|
33
|
+
* Fired when the mouse enters the row. Called with a [[GridRowParams]] object.
|
|
34
|
+
*/
|
|
24
35
|
rowMouseEnter: {
|
|
25
36
|
params: GridRowParams;
|
|
26
37
|
event: React.MouseEvent<HTMLElement>;
|
|
27
38
|
};
|
|
39
|
+
/**
|
|
40
|
+
* Fired when the mouse leaves the row. Called with a [[GridRowParams]] object.
|
|
41
|
+
*/
|
|
28
42
|
rowMouseLeave: {
|
|
29
43
|
params: GridRowParams;
|
|
30
44
|
event: React.MouseEvent<HTMLElement>;
|
|
31
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
|
+
};
|
|
32
71
|
}
|
|
33
72
|
export interface GridColumnHeaderEventLookup {
|
|
73
|
+
/**
|
|
74
|
+
* Fired when a column header is clicked
|
|
75
|
+
*/
|
|
34
76
|
columnHeaderClick: {
|
|
35
77
|
params: GridColumnHeaderParams;
|
|
36
78
|
event: React.MouseEvent<HTMLElement>;
|
|
37
79
|
};
|
|
80
|
+
/**
|
|
81
|
+
* Fired when a column header is double-clicked.
|
|
82
|
+
*/
|
|
38
83
|
columnHeaderDoubleClick: {
|
|
39
84
|
params: GridColumnHeaderParams;
|
|
40
85
|
event: React.MouseEvent<HTMLElement>;
|
|
41
86
|
};
|
|
87
|
+
/**
|
|
88
|
+
* Fired when a `mouseover` event happens in a column header.
|
|
89
|
+
* @ignore - do not document.
|
|
90
|
+
*/
|
|
42
91
|
columnHeaderOver: {
|
|
43
92
|
params: GridColumnHeaderParams;
|
|
44
93
|
event: React.MouseEvent<HTMLElement>;
|
|
45
94
|
};
|
|
95
|
+
/**
|
|
96
|
+
* Fired when a `mouseout` event happens in a column header.
|
|
97
|
+
* @ignore - do not document.
|
|
98
|
+
*/
|
|
46
99
|
columnHeaderOut: {
|
|
47
100
|
params: GridColumnHeaderParams;
|
|
48
101
|
event: React.MouseEvent<HTMLElement>;
|
|
49
102
|
};
|
|
103
|
+
/**
|
|
104
|
+
* Fired when a `mouseenter` event happens in a column header.
|
|
105
|
+
* @ignore - do not document.
|
|
106
|
+
*/
|
|
50
107
|
columnHeaderEnter: {
|
|
51
108
|
params: GridColumnHeaderParams;
|
|
52
109
|
event: React.MouseEvent<HTMLElement>;
|
|
53
110
|
};
|
|
111
|
+
/**
|
|
112
|
+
* Fired when a `mouseleave` event happens in a column header.
|
|
113
|
+
* @ignore - do not document.*
|
|
114
|
+
*/
|
|
54
115
|
columnHeaderLeave: {
|
|
55
116
|
params: GridColumnHeaderParams;
|
|
56
117
|
event: React.MouseEvent<HTMLElement>;
|
|
57
118
|
};
|
|
119
|
+
/**
|
|
120
|
+
* Fired when a key is pressed in a column header. It's mapped do the `keydown` DOM event.
|
|
121
|
+
*/
|
|
58
122
|
columnHeaderKeyDown: {
|
|
59
123
|
params: GridColumnHeaderParams;
|
|
60
124
|
event: React.KeyboardEvent<HTMLElement>;
|
|
61
125
|
};
|
|
126
|
+
/**
|
|
127
|
+
* Fired when a column header gains focus.
|
|
128
|
+
* @ignore - do not document.
|
|
129
|
+
*/
|
|
62
130
|
columnHeaderFocus: {
|
|
63
131
|
params: GridColumnHeaderParams;
|
|
64
132
|
event: React.FocusEvent<HTMLElement>;
|
|
65
133
|
};
|
|
134
|
+
/**
|
|
135
|
+
* Fired when a column header loses focus.
|
|
136
|
+
* @ignore - do not document.
|
|
137
|
+
*/
|
|
66
138
|
columnHeaderBlur: {
|
|
67
139
|
params: GridColumnHeaderParams;
|
|
68
140
|
event: React.FocusEvent<HTMLElement>;
|
|
69
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
|
+
*/
|
|
70
146
|
columnHeaderDragStart: {
|
|
71
147
|
params: GridColumnHeaderParams;
|
|
72
148
|
event: React.DragEvent<HTMLElement>;
|
|
73
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
|
+
*/
|
|
74
155
|
columnHeaderDragEnter: {
|
|
75
156
|
params: GridColumnHeaderParams;
|
|
76
157
|
event: React.DragEvent<HTMLElement>;
|
|
77
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
|
+
*/
|
|
78
164
|
columnHeaderDragOver: {
|
|
79
165
|
params: GridColumnHeaderParams;
|
|
80
166
|
event: React.DragEvent<HTMLElement>;
|
|
81
167
|
};
|
|
168
|
+
/**
|
|
169
|
+
* Fired when the dragging of a column header ends.
|
|
170
|
+
* @ignore - do not document.
|
|
171
|
+
*/
|
|
82
172
|
columnHeaderDragEnd: {
|
|
83
173
|
params: GridColumnHeaderParams;
|
|
84
174
|
event: React.DragEvent<HTMLElement>;
|
|
85
175
|
};
|
|
176
|
+
/**
|
|
177
|
+
* Fired when a `mousedown` DOM event happens in the column header separator.
|
|
178
|
+
* @ignore - do not document.
|
|
179
|
+
*/
|
|
86
180
|
columnSeparatorMouseDown: {
|
|
87
181
|
params: GridColumnHeaderParams;
|
|
88
182
|
event: React.MouseEvent<HTMLElement>;
|
|
89
183
|
};
|
|
90
184
|
}
|
|
91
185
|
export interface GridCellEventLookup {
|
|
186
|
+
/**
|
|
187
|
+
* Fired when a cell is clicked.
|
|
188
|
+
*/
|
|
92
189
|
cellClick: {
|
|
93
190
|
params: GridCellParams;
|
|
94
191
|
event: React.MouseEvent<HTMLElement>;
|
|
95
192
|
};
|
|
193
|
+
/**
|
|
194
|
+
* Fired when a cell is double-clicked.
|
|
195
|
+
*/
|
|
96
196
|
cellDoubleClick: {
|
|
97
197
|
params: GridCellParams;
|
|
98
198
|
event: React.MouseEvent<HTMLElement>;
|
|
99
199
|
};
|
|
200
|
+
/**
|
|
201
|
+
* Fired when a `mousedown` event happens in a cell.
|
|
202
|
+
*/
|
|
100
203
|
cellMouseDown: {
|
|
101
204
|
params: GridCellParams;
|
|
102
205
|
event: React.MouseEvent<HTMLElement>;
|
|
103
206
|
};
|
|
207
|
+
/**
|
|
208
|
+
* Fired when a `mouseup` event happens in a cell.
|
|
209
|
+
*/
|
|
104
210
|
cellMouseUp: {
|
|
105
211
|
params: GridCellParams;
|
|
106
212
|
event: React.MouseEvent<HTMLElement>;
|
|
107
213
|
};
|
|
214
|
+
/**
|
|
215
|
+
* Fired when a `keydown` event happens in a cell.
|
|
216
|
+
*/
|
|
108
217
|
cellKeyDown: {
|
|
109
218
|
params: GridCellParams;
|
|
110
219
|
event: React.KeyboardEvent<HTMLElement>;
|
|
111
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
|
+
*/
|
|
112
225
|
cellDragEnter: {
|
|
113
226
|
params: GridCellParams;
|
|
114
227
|
event: React.DragEvent<HTMLElement>;
|
|
115
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
|
+
*/
|
|
116
234
|
cellDragOver: {
|
|
117
235
|
params: GridCellParams;
|
|
118
236
|
event: React.DragEvent<HTMLElement>;
|
|
119
237
|
};
|
|
120
238
|
}
|
|
121
239
|
export interface GridControlledStateEventLookup {
|
|
240
|
+
/**
|
|
241
|
+
* Fired when the page size changes.
|
|
242
|
+
*/
|
|
122
243
|
pageSizeChange: {
|
|
123
244
|
params: number;
|
|
124
245
|
};
|
|
246
|
+
/**
|
|
247
|
+
* Fired when the page changes.
|
|
248
|
+
*/
|
|
125
249
|
pageChange: {
|
|
126
250
|
params: number;
|
|
127
251
|
};
|
|
252
|
+
/**
|
|
253
|
+
* Fired when the filter model changes.
|
|
254
|
+
*/
|
|
128
255
|
filterModelChange: {
|
|
129
256
|
params: GridFilterModel;
|
|
130
257
|
};
|
|
258
|
+
/**
|
|
259
|
+
* Fired when the sort model changes.
|
|
260
|
+
*/
|
|
131
261
|
sortModelChange: {
|
|
132
262
|
params: GridSortModel;
|
|
133
263
|
};
|
|
264
|
+
/**
|
|
265
|
+
* Fired when the row editing model changes.
|
|
266
|
+
*/
|
|
134
267
|
editRowsModelChange: {
|
|
135
268
|
params: GridEditRowsModel;
|
|
136
269
|
};
|
|
270
|
+
/**
|
|
271
|
+
* Fired when the selection state of one or multiple rows changes.
|
|
272
|
+
*/
|
|
137
273
|
selectionChange: {
|
|
138
274
|
params: GridSelectionModel;
|
|
139
275
|
};
|
|
276
|
+
/**
|
|
277
|
+
* Fired when the column visibility model changes.
|
|
278
|
+
*/
|
|
140
279
|
columnVisibilityModelChange: {
|
|
141
280
|
params: GridColumnVisibilityModel;
|
|
142
281
|
};
|
|
143
|
-
detailPanelsExpandedRowIdsChange: {
|
|
144
|
-
params: GridRowId[];
|
|
145
|
-
};
|
|
146
282
|
}
|
|
147
283
|
export interface GridEventLookup extends GridRowEventLookup, GridColumnHeaderEventLookup, GridCellEventLookup, GridControlledStateEventLookup {
|
|
284
|
+
/**
|
|
285
|
+
* Fired when the grid is unmounted.
|
|
286
|
+
*/
|
|
148
287
|
unmount: {};
|
|
288
|
+
/**
|
|
289
|
+
* Fired when an exception is thrown in the grid.
|
|
290
|
+
*/
|
|
149
291
|
componentError: {
|
|
150
292
|
params: any;
|
|
151
293
|
};
|
|
294
|
+
/**
|
|
295
|
+
* Fired when the state of the grid is updated.
|
|
296
|
+
*/
|
|
152
297
|
stateChange: {
|
|
153
298
|
params: any;
|
|
154
299
|
};
|
|
300
|
+
/**
|
|
301
|
+
* Fired when the grid is resized.
|
|
302
|
+
*/
|
|
155
303
|
resize: {
|
|
156
304
|
params: ElementSize;
|
|
157
305
|
};
|
|
306
|
+
/**
|
|
307
|
+
* Fired when the inner size of the viewport changes. Called with an [[ElementSize]] object.
|
|
308
|
+
*/
|
|
158
309
|
viewportInnerSizeChange: {
|
|
159
310
|
params: ElementSize;
|
|
160
311
|
};
|
|
312
|
+
/**
|
|
313
|
+
* Fired when the grid is resized with a debounced time of 60ms.
|
|
314
|
+
*/
|
|
161
315
|
debouncedResize: {
|
|
162
316
|
params: ElementSize;
|
|
163
317
|
};
|
|
318
|
+
/**
|
|
319
|
+
* Fired when a processor of the active strategy changes.
|
|
320
|
+
* @ignore - do not document.
|
|
321
|
+
*/
|
|
164
322
|
activeStrategyProcessorChange: {
|
|
165
323
|
params: GridStrategyProcessorName;
|
|
166
324
|
};
|
|
325
|
+
/**
|
|
326
|
+
* Fired when the callback to decide if a strategy is available or not changes.
|
|
327
|
+
* @ignore - do not document.
|
|
328
|
+
*/
|
|
167
329
|
strategyAvailabilityChange: {};
|
|
330
|
+
/**
|
|
331
|
+
* Fired when the columns state is changed.
|
|
332
|
+
*/
|
|
168
333
|
columnsChange: {
|
|
169
334
|
params: string[];
|
|
170
335
|
};
|
|
336
|
+
/**
|
|
337
|
+
* Fired when the width of a column is changed.
|
|
338
|
+
*/
|
|
171
339
|
columnWidthChange: {
|
|
172
340
|
params: GridColumnResizeParams;
|
|
173
341
|
event: MouseEvent | {};
|
|
174
342
|
};
|
|
343
|
+
/**
|
|
344
|
+
* Fired when the user starts resizing a column.
|
|
345
|
+
*/
|
|
175
346
|
columnResizeStart: {
|
|
176
347
|
params: {
|
|
177
348
|
field: string;
|
|
178
349
|
};
|
|
179
350
|
event: React.MouseEvent<HTMLElement>;
|
|
180
351
|
};
|
|
352
|
+
/**
|
|
353
|
+
* Fired when the user stops resizing a column.
|
|
354
|
+
*/
|
|
181
355
|
columnResizeStop: {
|
|
182
356
|
params: null;
|
|
183
357
|
event: MouseEvent;
|
|
184
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
|
+
*/
|
|
185
365
|
columnVisibilityChange: {
|
|
186
366
|
params: GridColumnVisibilityChangeParams;
|
|
187
367
|
};
|
|
368
|
+
/**
|
|
369
|
+
* Fired during the resizing of a column.
|
|
370
|
+
*/
|
|
188
371
|
columnResize: {
|
|
189
372
|
params: GridColumnResizeParams;
|
|
190
373
|
event: MouseEvent;
|
|
191
374
|
};
|
|
375
|
+
/**
|
|
376
|
+
* Fired when the user ends reordering a column.
|
|
377
|
+
*/
|
|
192
378
|
columnOrderChange: {
|
|
193
379
|
params: GridColumnOrderChangeParams;
|
|
194
380
|
};
|
|
381
|
+
/**
|
|
382
|
+
* Fired when the rows are updated.
|
|
383
|
+
* @ignore - do not document.
|
|
384
|
+
*/
|
|
195
385
|
rowsSet: {};
|
|
386
|
+
/**
|
|
387
|
+
* Fired when the filtered rows are updated
|
|
388
|
+
* @ignore - do not document.
|
|
389
|
+
*/
|
|
196
390
|
filteredRowsSet: {};
|
|
391
|
+
/**
|
|
392
|
+
* Fired when the sorted rows are updated
|
|
393
|
+
* @ignore - do not document
|
|
394
|
+
*/
|
|
197
395
|
sortedRowsSet: {};
|
|
396
|
+
/**
|
|
397
|
+
* Fired when the expansion of a row is changed. Called with a [[GridRowTreeNodeConfig]] object.
|
|
398
|
+
* @ignore - do not document.
|
|
399
|
+
*/
|
|
198
400
|
rowExpansionChange: {
|
|
199
401
|
params: GridRowTreeNodeConfig;
|
|
200
402
|
};
|
|
403
|
+
/**
|
|
404
|
+
* Fired when the mode of a cell changes.
|
|
405
|
+
* @ignore - do not document
|
|
406
|
+
*/
|
|
201
407
|
cellModeChange: {
|
|
202
408
|
params: GridCellParams;
|
|
203
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
|
+
*/
|
|
204
425
|
cellEditStart: {
|
|
205
426
|
params: GridCellEditStartParams;
|
|
206
427
|
event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>;
|
|
207
428
|
};
|
|
429
|
+
/**
|
|
430
|
+
* Fired when the cell turns back to view mode.
|
|
431
|
+
*/
|
|
208
432
|
cellEditStop: {
|
|
209
433
|
params: GridCellEditStopParams;
|
|
210
434
|
event: MuiBaseEvent;
|
|
211
435
|
};
|
|
436
|
+
/**
|
|
437
|
+
* Fired when the props of the edit input are committed.
|
|
438
|
+
*/
|
|
212
439
|
cellEditCommit: {
|
|
213
440
|
params: GridCellEditCommitParams;
|
|
214
441
|
event: MuiBaseEvent;
|
|
215
442
|
};
|
|
443
|
+
/**
|
|
444
|
+
* Fired when the props of the edit cell changes.
|
|
445
|
+
*/
|
|
216
446
|
editCellPropsChange: {
|
|
217
447
|
params: GridEditCellPropsParams;
|
|
218
448
|
event: React.SyntheticEvent<HTMLElement> | {};
|
|
219
449
|
};
|
|
450
|
+
/**
|
|
451
|
+
* Fired when the row turns to edit mode.
|
|
452
|
+
*/
|
|
220
453
|
rowEditStart: {
|
|
221
454
|
params: GridRowEditStartParams;
|
|
222
455
|
event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>;
|
|
223
456
|
};
|
|
457
|
+
/**
|
|
458
|
+
* Fired when the row turns back to view mode.
|
|
459
|
+
*/
|
|
224
460
|
rowEditStop: {
|
|
225
461
|
params: GridRowEditStopParams;
|
|
226
462
|
event: MuiBaseEvent;
|
|
227
463
|
};
|
|
464
|
+
/**
|
|
465
|
+
* Fired when the props of the edit input are committed.
|
|
466
|
+
*/
|
|
228
467
|
rowEditCommit: {
|
|
229
468
|
params: GridRowId;
|
|
230
469
|
event: MuiBaseEvent;
|
|
231
470
|
};
|
|
471
|
+
/**
|
|
472
|
+
* Fired when a cell gains focus.
|
|
473
|
+
*/
|
|
232
474
|
cellFocusIn: {
|
|
233
475
|
params: GridCellParams;
|
|
234
476
|
};
|
|
477
|
+
/**
|
|
478
|
+
* Fired when a cell loses focus.
|
|
479
|
+
*/
|
|
235
480
|
cellFocusOut: {
|
|
236
481
|
params: GridCellParams;
|
|
237
482
|
event: MuiBaseEvent;
|
|
238
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
|
+
*/
|
|
239
488
|
cellNavigationKeyDown: {
|
|
240
489
|
params: GridCellParams | GridRowParams;
|
|
241
490
|
event: React.KeyboardEvent<HTMLElement>;
|
|
242
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
|
+
*/
|
|
243
496
|
columnHeaderNavigationKeyDown: {
|
|
244
497
|
params: GridColumnHeaderParams;
|
|
245
498
|
event: React.KeyboardEvent<HTMLElement>;
|
|
246
499
|
};
|
|
500
|
+
/**
|
|
501
|
+
* Fired during the scroll of the grid viewport.
|
|
502
|
+
*/
|
|
247
503
|
rowsScroll: {
|
|
248
504
|
params: GridScrollParams;
|
|
249
505
|
event: React.UIEvent | MuiBaseEvent;
|
|
250
506
|
};
|
|
507
|
+
/**
|
|
508
|
+
* Fired when the content size used by the `GridVirtualScroller` changes.
|
|
509
|
+
* @ignore - do not document.
|
|
510
|
+
*/
|
|
251
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
|
+
*/
|
|
252
533
|
headerSelectionCheckboxChange: {
|
|
253
534
|
params: GridHeaderSelectionCheckboxParams;
|
|
254
535
|
};
|
|
536
|
+
/**
|
|
537
|
+
* Fired when the value of the selection checkbox of a row is changed
|
|
538
|
+
*/
|
|
255
539
|
rowSelectionCheckboxChange: {
|
|
256
540
|
params: GridRowSelectionCheckboxParams;
|
|
257
541
|
event: React.ChangeEvent<HTMLElement>;
|
|
258
542
|
};
|
|
543
|
+
/**
|
|
544
|
+
* Fired when the preference panel is closed.
|
|
545
|
+
*/
|
|
259
546
|
preferencePanelClose: {
|
|
260
547
|
params: GridPreferencePanelParams;
|
|
261
548
|
};
|
|
549
|
+
/**
|
|
550
|
+
* Fired when the preference panel is opened.
|
|
551
|
+
*/
|
|
262
552
|
preferencePanelOpen: {
|
|
263
553
|
params: GridPreferencePanelParams;
|
|
264
554
|
};
|