@mui/x-data-grid 5.6.1 → 5.9.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 +275 -53
- package/DataGrid/DataGrid.d.ts +8 -3
- package/DataGrid/DataGrid.js +35 -2
- package/DataGrid/useDataGridComponent.js +13 -7
- package/DataGrid/useDataGridProps.d.ts +2 -1
- package/LICENSE +21 -0
- package/README.md +1 -1
- package/colDef/gridBooleanColDef.d.ts +1 -1
- package/colDef/gridBooleanOperators.d.ts +1 -1
- package/colDef/gridDateColDef.d.ts +5 -9
- package/colDef/gridDateColDef.js +2 -2
- package/colDef/gridDateOperators.d.ts +1 -1
- package/{models/colDef → colDef}/gridDefaultColumnTypes.d.ts +1 -1
- package/{models/colDef → colDef}/gridDefaultColumnTypes.js +6 -6
- package/colDef/gridNumericColDef.d.ts +1 -1
- package/colDef/gridNumericOperators.d.ts +2 -2
- package/colDef/gridStringColDef.d.ts +1 -1
- package/colDef/gridStringOperators.d.ts +1 -1
- package/colDef/index.d.ts +1 -0
- package/colDef/index.js +2 -1
- package/components/ErrorOverlay.js +8 -1
- package/components/GridLoadingOverlay.d.ts +4 -2
- package/components/GridLoadingOverlay.js +11 -2
- package/components/GridNoResultsOverlay.d.ts +3 -2
- package/components/GridNoRowsOverlay.d.ts +4 -2
- package/components/GridNoRowsOverlay.js +11 -2
- package/components/GridRow.d.ts +4 -0
- package/components/GridRow.js +50 -24
- package/components/base/GridErrorHandler.js +6 -25
- package/components/base/GridOverlays.js +4 -3
- package/components/cell/GridActionsCell.d.ts +5 -1
- package/components/cell/GridActionsCell.js +170 -21
- package/components/cell/GridActionsCellItem.d.ts +66 -4
- package/components/cell/GridActionsCellItem.js +7 -5
- package/components/cell/GridCell.d.ts +5 -4
- package/components/cell/GridCell.js +30 -9
- package/components/cell/GridEditBooleanCell.js +1 -1
- package/components/cell/GridEditDateCell.js +1 -1
- package/components/cell/GridEditInputCell.js +66 -5
- package/components/cell/GridEditSingleSelectCell.js +97 -16
- package/components/columnHeaders/GridColumnHeaderFilterIconButton.d.ts +12 -0
- package/components/columnHeaders/{ColumnHeaderFilterIcon.js → GridColumnHeaderFilterIconButton.js} +22 -4
- package/components/columnHeaders/GridColumnHeaderItem.js +9 -12
- package/components/columnHeaders/GridColumnHeaderTitle.d.ts +2 -2
- package/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
- package/components/columnHeaders/GridColumnHeaders.d.ts +0 -1
- package/components/columnHeaders/GridColumnHeaders.js +4 -2
- package/components/columnHeaders/index.d.ts +1 -0
- package/components/columnHeaders/index.js +1 -0
- package/components/columnSelection/GridCellCheckboxRenderer.d.ts +3 -3
- package/components/columnSelection/GridCellCheckboxRenderer.js +22 -5
- package/components/columnSelection/GridHeaderCheckbox.d.ts +1 -1
- package/components/containers/GridOverlay.d.ts +9 -2
- package/components/containers/GridOverlay.js +11 -2
- package/components/containers/GridRoot.js +29 -17
- package/components/containers/GridRootStyles.js +2 -2
- package/components/menu/columnMenu/GridColumnMenu.js +1 -1
- package/components/panel/GridColumnsPanel.d.ts +4 -1
- package/components/panel/GridColumnsPanel.js +3 -3
- package/components/panel/GridPanel.d.ts +2 -2
- package/components/panel/GridPanel.js +1 -0
- package/components/panel/GridPanelWrapper.d.ts +1 -1
- package/components/panel/GridPreferencesPanel.js +4 -6
- 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/GridToolbarDensitySelector.js +1 -1
- package/components/toolbar/GridToolbarFilterButton.d.ts +1 -1
- package/components/virtualization/GridVirtualScroller.js +2 -0
- package/components/virtualization/GridVirtualScrollerContent.js +1 -3
- package/constants/defaultGridSlotsComponents.js +2 -1
- package/constants/gridClasses.d.ts +15 -3
- package/constants/gridDetailPanelToggleField.d.ts +1 -0
- package/constants/gridDetailPanelToggleField.js +2 -0
- package/hooks/core/index.d.ts +1 -1
- package/hooks/core/pipeProcessing/gridPipeProcessingApi.d.ts +85 -0
- package/hooks/core/{preProcessing/gridPreProcessingApi.js → pipeProcessing/gridPipeProcessingApi.js} +0 -0
- package/hooks/core/pipeProcessing/index.d.ts +4 -0
- package/hooks/core/pipeProcessing/index.js +4 -0
- package/hooks/core/pipeProcessing/useGridPipeProcessing.d.ts +32 -0
- package/hooks/core/pipeProcessing/useGridPipeProcessing.js +108 -0
- package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.d.ts +3 -0
- package/hooks/core/{preProcessing/useGridRegisterPreProcessor.js → pipeProcessing/useGridRegisterPipeApplier.js} +2 -2
- package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.d.ts +4 -0
- package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +27 -0
- package/hooks/core/strategyProcessing/gridStrategyProcessingApi.d.ts +58 -0
- package/hooks/core/{rowGroupsPreProcessing/gridRowGroupsPreProcessingApi.js → strategyProcessing/gridStrategyProcessingApi.js} +0 -0
- package/hooks/core/strategyProcessing/index.d.ts +3 -0
- package/hooks/core/strategyProcessing/index.js +3 -0
- package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.d.ts +4 -0
- package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +18 -0
- package/hooks/core/strategyProcessing/useGridStrategyProcessing.d.ts +48 -0
- package/hooks/core/strategyProcessing/useGridStrategyProcessing.js +125 -0
- package/hooks/core/useGridInitialization.js +4 -4
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +0 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +77 -11
- package/hooks/features/columns/gridColumnsInterfaces.d.ts +8 -1
- package/hooks/features/columns/gridColumnsSelector.d.ts +6 -6
- package/hooks/features/columns/gridColumnsUtils.d.ts +33 -7
- package/hooks/features/columns/gridColumnsUtils.js +210 -41
- package/hooks/features/columns/useGridColumnSpanning.d.ts +7 -0
- package/hooks/features/columns/useGridColumnSpanning.js +109 -0
- package/hooks/features/columns/useGridColumns.d.ts +1 -1
- package/hooks/features/columns/useGridColumns.js +117 -65
- package/hooks/features/dimensions/gridDimensionsApi.d.ts +5 -0
- package/hooks/features/dimensions/useGridDimensions.js +5 -4
- package/hooks/features/editRows/useGridCellEditing.new.d.ts +4 -0
- package/hooks/features/editRows/useGridCellEditing.new.js +338 -0
- package/hooks/features/editRows/{useGridCellEditing.d.ts → useGridCellEditing.old.d.ts} +0 -0
- package/hooks/features/editRows/{useGridCellEditing.js → useGridCellEditing.old.js} +1 -1
- package/hooks/features/editRows/useGridEditing.new.d.ts +6 -0
- package/hooks/features/editRows/useGridEditing.new.js +122 -0
- package/hooks/features/editRows/{useGridEditing.d.ts → useGridEditing.old.d.ts} +0 -0
- package/hooks/features/editRows/{useGridEditing.js → useGridEditing.old.js} +4 -4
- package/hooks/features/editRows/useGridRowEditing.new.d.ts +4 -0
- package/hooks/features/editRows/useGridRowEditing.new.js +509 -0
- package/hooks/features/editRows/{useGridRowEditing.d.ts → useGridRowEditing.old.d.ts} +0 -0
- package/hooks/features/editRows/{useGridRowEditing.js → useGridRowEditing.old.js} +7 -7
- package/hooks/features/events/useGridEvents.d.ts +1 -1
- package/hooks/features/events/useGridEvents.js +2 -0
- package/hooks/features/filter/gridFilterSelector.d.ts +3 -9
- package/hooks/features/filter/gridFilterState.d.ts +2 -5
- package/hooks/features/filter/useGridFilter.d.ts +1 -1
- package/hooks/features/filter/useGridFilter.js +38 -39
- package/hooks/features/focus/useGridFocus.d.ts +1 -1
- package/hooks/features/focus/useGridFocus.js +47 -1
- package/hooks/features/{keyboard → keyboardNavigation}/useGridKeyboardNavigation.d.ts +3 -5
- package/hooks/features/{keyboard → keyboardNavigation}/useGridKeyboardNavigation.js +66 -13
- package/hooks/features/pagination/gridPaginationSelector.d.ts +1 -3
- package/hooks/features/pagination/useGridPage.js +9 -4
- package/hooks/features/pagination/useGridPageSize.js +3 -3
- package/hooks/features/preferencesPanel/gridPreferencePanelState.d.ts +5 -0
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.js +18 -5
- package/hooks/features/rows/gridRowsSelector.d.ts +2 -1
- package/hooks/features/rows/gridRowsSelector.js +1 -0
- package/hooks/features/rows/gridRowsState.d.ts +24 -5
- package/hooks/features/rows/gridRowsUtils.d.ts +8 -0
- package/hooks/features/rows/gridRowsUtils.js +11 -0
- package/hooks/features/rows/index.d.ts +1 -0
- package/hooks/features/rows/index.js +1 -1
- package/hooks/features/rows/useGridRows.d.ts +2 -5
- package/hooks/features/rows/useGridRows.js +71 -49
- package/hooks/features/rows/useGridRowsMeta.js +7 -14
- package/hooks/features/rows/useGridRowsPreProcessors.d.ts +3 -0
- package/hooks/features/rows/useGridRowsPreProcessors.js +37 -0
- package/hooks/features/scroll/useGridScroll.d.ts +2 -0
- package/hooks/features/scroll/useGridScroll.js +27 -14
- package/hooks/features/selection/gridSelectionSelector.d.ts +1 -3
- package/hooks/features/selection/useGridSelection.d.ts +4 -2
- package/hooks/features/selection/useGridSelection.js +79 -27
- package/hooks/features/selection/useGridSelectionPreProcessors.js +2 -2
- package/hooks/features/sorting/gridSortingSelector.d.ts +1 -3
- package/hooks/features/sorting/gridSortingState.d.ts +2 -5
- package/hooks/features/sorting/gridSortingUtils.d.ts +1 -2
- package/hooks/features/sorting/useGridSorting.js +18 -37
- package/hooks/features/statePersistence/useGridStatePersistence.js +2 -2
- package/hooks/features/virtualization/useGridVirtualScroller.d.ts +7 -0
- package/hooks/features/virtualization/useGridVirtualScroller.js +59 -30
- package/hooks/utils/useGridRootProps.d.ts +1 -1
- package/hooks/utils/useGridVisibleRows.d.ts +2 -2
- package/index.js +1 -1
- package/internals/index.d.ts +14 -13
- package/internals/index.js +7 -6
- package/legacy/DataGrid/DataGrid.js +35 -2
- package/legacy/DataGrid/useDataGridComponent.js +13 -7
- package/legacy/colDef/gridDateColDef.js +2 -2
- package/legacy/{models/colDef → colDef}/gridDefaultColumnTypes.js +6 -6
- package/legacy/colDef/index.js +2 -1
- package/legacy/components/ErrorOverlay.js +8 -1
- package/legacy/components/GridLoadingOverlay.js +11 -2
- package/legacy/components/GridNoRowsOverlay.js +11 -2
- package/legacy/components/GridRow.js +48 -24
- package/legacy/components/base/GridErrorHandler.js +3 -24
- package/legacy/components/base/GridOverlays.js +4 -3
- package/legacy/components/cell/GridActionsCell.js +188 -27
- package/legacy/components/cell/GridActionsCellItem.js +7 -5
- package/legacy/components/cell/GridCell.js +31 -9
- package/legacy/components/cell/GridEditBooleanCell.js +2 -1
- package/legacy/components/cell/GridEditDateCell.js +2 -1
- package/legacy/components/cell/GridEditInputCell.js +66 -5
- package/legacy/components/cell/GridEditSingleSelectCell.js +109 -24
- package/legacy/components/columnHeaders/{ColumnHeaderFilterIcon.js → GridColumnHeaderFilterIconButton.js} +22 -4
- package/legacy/components/columnHeaders/GridColumnHeaderItem.js +9 -12
- package/legacy/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
- package/legacy/components/columnHeaders/GridColumnHeaders.js +5 -4
- package/legacy/components/columnHeaders/index.js +1 -0
- package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +23 -5
- package/legacy/components/containers/GridOverlay.js +11 -2
- package/legacy/components/containers/GridRoot.js +34 -17
- package/legacy/components/containers/GridRootStyles.js +2 -2
- package/legacy/components/menu/columnMenu/GridColumnMenu.js +1 -1
- package/legacy/components/panel/GridColumnsPanel.js +3 -3
- package/legacy/components/panel/GridPanel.js +1 -0
- package/legacy/components/panel/GridPreferencesPanel.js +4 -6
- 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/GridToolbarDensitySelector.js +1 -1
- package/legacy/components/virtualization/GridVirtualScroller.js +2 -0
- package/legacy/components/virtualization/GridVirtualScrollerContent.js +1 -3
- package/legacy/constants/defaultGridSlotsComponents.js +2 -1
- package/legacy/constants/gridDetailPanelToggleField.js +2 -0
- package/legacy/hooks/core/{preProcessing/gridPreProcessingApi.js → pipeProcessing/gridPipeProcessingApi.js} +0 -0
- package/legacy/hooks/core/pipeProcessing/index.js +4 -0
- package/legacy/hooks/core/pipeProcessing/useGridPipeProcessing.js +119 -0
- package/legacy/hooks/core/{preProcessing/useGridRegisterPreProcessor.js → pipeProcessing/useGridRegisterPipeApplier.js} +2 -2
- package/legacy/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +27 -0
- package/legacy/hooks/core/{rowGroupsPreProcessing/gridRowGroupsPreProcessingApi.js → strategyProcessing/gridStrategyProcessingApi.js} +0 -0
- package/legacy/hooks/core/strategyProcessing/index.js +3 -0
- package/legacy/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +18 -0
- package/legacy/hooks/core/strategyProcessing/useGridStrategyProcessing.js +130 -0
- package/legacy/hooks/core/useGridInitialization.js +4 -4
- package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +90 -11
- package/legacy/hooks/features/columns/gridColumnsUtils.js +222 -44
- package/legacy/hooks/features/columns/useGridColumnSpanning.js +107 -0
- package/legacy/hooks/features/columns/useGridColumns.js +118 -66
- package/legacy/hooks/features/dimensions/useGridDimensions.js +5 -4
- package/legacy/hooks/features/editRows/useGridCellEditing.new.js +350 -0
- package/legacy/hooks/features/editRows/{useGridCellEditing.js → useGridCellEditing.old.js} +1 -1
- package/legacy/hooks/features/editRows/useGridEditing.new.js +156 -0
- package/legacy/hooks/features/editRows/{useGridEditing.js → useGridEditing.old.js} +4 -4
- package/legacy/hooks/features/editRows/useGridRowEditing.new.js +516 -0
- package/legacy/hooks/features/editRows/{useGridRowEditing.js → useGridRowEditing.old.js} +7 -7
- package/legacy/hooks/features/events/useGridEvents.js +2 -0
- package/legacy/hooks/features/filter/useGridFilter.js +38 -39
- package/legacy/hooks/features/focus/useGridFocus.js +47 -1
- package/legacy/hooks/features/{keyboard → keyboardNavigation}/useGridKeyboardNavigation.js +66 -12
- package/legacy/hooks/features/pagination/useGridPage.js +11 -4
- package/legacy/hooks/features/pagination/useGridPageSize.js +3 -3
- package/legacy/hooks/features/preferencesPanel/useGridPreferencesPanel.js +18 -5
- package/legacy/hooks/features/rows/gridRowsSelector.js +3 -0
- package/legacy/hooks/features/rows/gridRowsUtils.js +13 -0
- package/legacy/hooks/features/rows/index.js +1 -1
- package/legacy/hooks/features/rows/useGridRows.js +75 -53
- package/legacy/hooks/features/rows/useGridRowsMeta.js +7 -14
- package/legacy/hooks/features/rows/useGridRowsPreProcessors.js +36 -0
- package/legacy/hooks/features/scroll/useGridScroll.js +27 -14
- package/legacy/hooks/features/selection/useGridSelection.js +81 -27
- package/legacy/hooks/features/selection/useGridSelectionPreProcessors.js +2 -2
- package/legacy/hooks/features/sorting/useGridSorting.js +14 -35
- package/legacy/hooks/features/statePersistence/useGridStatePersistence.js +2 -2
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +70 -40
- package/legacy/index.js +1 -1
- package/legacy/internals/index.js +7 -6
- package/legacy/locales/arSD.js +62 -58
- package/legacy/locales/daDK.js +36 -32
- package/legacy/locales/faIR.js +26 -22
- package/legacy/locales/huHU.js +120 -0
- package/legacy/locales/index.js +1 -0
- package/legacy/locales/koKR.js +1 -1
- package/legacy/locales/plPL.js +30 -26
- package/{modern/hooks/core/preProcessing/gridPreProcessingApi.js → legacy/models/api/gridColumnSpanning.js} +0 -0
- package/legacy/models/colDef/index.js +1 -2
- package/legacy/models/events/gridEvents.js +6 -4
- package/{modern/hooks/core/rowGroupsPreProcessing/gridRowGroupsPreProcessingApi.js → legacy/models/gridColumnSpanning.js} +0 -0
- package/legacy/models/gridEditRowModel.js +1 -0
- package/legacy/models/gridRows.js +1 -33
- package/legacy/models/index.js +2 -2
- package/legacy/models/params/gridEditCellParams.js +34 -1
- package/legacy/models/params/gridPreferencePanelParams.js +1 -0
- package/legacy/models/params/gridRowParams.js +39 -1
- package/legacy/models/params/index.js +2 -1
- package/legacy/utils/cleanupTracking/TimerBasedCleanupTracking.js +5 -1
- package/legacy/utils/utils.js +150 -3
- package/locales/arSD.js +58 -58
- package/locales/daDK.js +32 -32
- package/locales/faIR.js +22 -22
- package/locales/huHU.d.ts +2 -0
- package/locales/huHU.js +108 -0
- package/locales/index.d.ts +1 -0
- package/locales/index.js +1 -0
- package/locales/koKR.js +1 -1
- package/locales/plPL.js +26 -26
- package/models/api/gridApiCommon.d.ts +4 -3
- package/models/api/gridColumnSpanning.d.ts +28 -0
- package/models/api/gridColumnSpanning.js +1 -0
- package/models/api/gridEditingApi.d.ts +174 -7
- package/models/api/gridFocusApi.d.ts +9 -0
- package/models/api/gridParamsApi.d.ts +5 -5
- package/models/api/gridRowApi.d.ts +2 -2
- package/models/api/index.d.ts +1 -1
- package/models/colDef/gridColDef.d.ts +42 -28
- package/models/colDef/index.d.ts +0 -1
- package/models/colDef/index.js +1 -2
- package/models/events/gridEventLookup.d.ts +20 -13
- package/models/events/gridEvents.d.ts +22 -14
- package/models/events/gridEvents.js +6 -4
- package/models/gridCell.d.ts +1 -0
- package/models/gridColumnSpanning.d.ts +12 -0
- package/models/gridColumnSpanning.js +1 -0
- package/models/gridEditRowModel.d.ts +4 -3
- package/models/gridEditRowModel.js +1 -0
- package/models/gridFilterOperator.d.ts +3 -2
- package/models/gridRows.d.ts +10 -18
- package/models/gridRows.js +1 -31
- package/models/gridSlotsComponent.d.ts +5 -0
- package/models/gridSlotsComponentsProps.d.ts +1 -0
- package/models/gridSortModel.d.ts +3 -4
- package/models/index.d.ts +1 -1
- package/models/index.js +2 -2
- package/models/params/gridCellParams.d.ts +34 -15
- package/models/params/gridColumnHeaderParams.d.ts +3 -2
- package/models/params/gridEditCellParams.d.ts +52 -3
- package/models/params/gridEditCellParams.js +34 -1
- package/models/params/gridPreferencePanelParams.d.ts +3 -0
- package/models/params/gridPreferencePanelParams.js +1 -0
- package/models/params/gridRowParams.d.ts +51 -7
- package/models/params/gridRowParams.js +39 -1
- package/models/params/gridValueOptionsParams.d.ts +3 -3
- package/models/params/index.d.ts +1 -0
- package/models/params/index.js +2 -1
- package/models/props/DataGridProps.d.ts +45 -13
- package/modern/DataGrid/DataGrid.js +35 -2
- package/modern/DataGrid/useDataGridComponent.js +11 -7
- package/modern/colDef/gridDateColDef.js +2 -2
- package/modern/{models/colDef → colDef}/gridDefaultColumnTypes.js +6 -6
- package/modern/colDef/index.js +2 -1
- package/modern/components/ErrorOverlay.js +8 -1
- package/modern/components/GridLoadingOverlay.js +11 -2
- package/modern/components/GridNoRowsOverlay.js +11 -2
- package/modern/components/GridRow.js +48 -22
- package/modern/components/base/GridErrorHandler.js +1 -20
- package/modern/components/base/GridOverlays.js +4 -3
- package/modern/components/cell/GridActionsCell.js +168 -21
- package/modern/components/cell/GridActionsCellItem.js +7 -5
- package/modern/components/cell/GridCell.js +30 -9
- package/modern/components/cell/GridEditBooleanCell.js +1 -1
- package/modern/components/cell/GridEditDateCell.js +1 -1
- package/modern/components/cell/GridEditInputCell.js +64 -5
- package/modern/components/cell/GridEditSingleSelectCell.js +91 -14
- package/modern/components/columnHeaders/{ColumnHeaderFilterIcon.js → GridColumnHeaderFilterIconButton.js} +22 -4
- package/modern/components/columnHeaders/GridColumnHeaderItem.js +7 -10
- package/modern/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
- package/modern/components/columnHeaders/GridColumnHeaders.js +4 -2
- package/modern/components/columnHeaders/index.js +1 -0
- package/modern/components/columnSelection/GridCellCheckboxRenderer.js +22 -5
- package/modern/components/containers/GridOverlay.js +11 -2
- package/modern/components/containers/GridRoot.js +29 -17
- package/modern/components/containers/GridRootStyles.js +2 -2
- package/modern/components/menu/columnMenu/GridColumnMenu.js +1 -1
- package/modern/components/panel/GridColumnsPanel.js +3 -3
- package/modern/components/panel/GridPanel.js +1 -0
- package/modern/components/panel/GridPreferencesPanel.js +3 -5
- 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/GridToolbarDensitySelector.js +1 -1
- package/modern/components/virtualization/GridVirtualScroller.js +2 -0
- package/modern/components/virtualization/GridVirtualScrollerContent.js +1 -3
- package/modern/constants/defaultGridSlotsComponents.js +2 -1
- package/modern/constants/gridDetailPanelToggleField.js +2 -0
- package/modern/hooks/core/pipeProcessing/gridPipeProcessingApi.js +1 -0
- package/modern/hooks/core/pipeProcessing/index.js +4 -0
- package/modern/hooks/core/pipeProcessing/useGridPipeProcessing.js +108 -0
- package/modern/hooks/core/{preProcessing/useGridRegisterPreProcessor.js → pipeProcessing/useGridRegisterPipeApplier.js} +2 -2
- package/modern/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +27 -0
- package/modern/hooks/core/strategyProcessing/gridStrategyProcessingApi.js +1 -0
- package/modern/hooks/core/strategyProcessing/index.js +3 -0
- package/modern/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +18 -0
- package/modern/hooks/core/strategyProcessing/useGridStrategyProcessing.js +123 -0
- package/modern/hooks/core/useGridInitialization.js +4 -4
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +77 -11
- package/modern/hooks/features/columns/gridColumnsUtils.js +210 -39
- package/modern/hooks/features/columns/useGridColumnSpanning.js +107 -0
- package/modern/hooks/features/columns/useGridColumns.js +112 -62
- package/modern/hooks/features/dimensions/useGridDimensions.js +5 -4
- package/modern/hooks/features/editRows/useGridCellEditing.new.js +338 -0
- package/modern/hooks/features/editRows/{useGridCellEditing.js → useGridCellEditing.old.js} +1 -1
- package/modern/hooks/features/editRows/useGridEditing.new.js +122 -0
- package/modern/hooks/features/editRows/{useGridEditing.js → useGridEditing.old.js} +4 -4
- package/modern/hooks/features/editRows/useGridRowEditing.new.js +507 -0
- package/modern/hooks/features/editRows/{useGridRowEditing.js → useGridRowEditing.old.js} +7 -7
- package/modern/hooks/features/events/useGridEvents.js +2 -0
- package/modern/hooks/features/filter/useGridFilter.js +34 -39
- package/modern/hooks/features/focus/useGridFocus.js +47 -1
- package/modern/hooks/features/{keyboard → keyboardNavigation}/useGridKeyboardNavigation.js +64 -13
- package/modern/hooks/features/pagination/useGridPage.js +9 -4
- package/modern/hooks/features/pagination/useGridPageSize.js +3 -3
- package/modern/hooks/features/preferencesPanel/useGridPreferencesPanel.js +18 -5
- package/modern/hooks/features/rows/gridRowsSelector.js +1 -0
- package/modern/hooks/features/rows/gridRowsUtils.js +11 -0
- package/modern/hooks/features/rows/index.js +1 -1
- package/modern/hooks/features/rows/useGridRows.js +69 -47
- package/modern/hooks/features/rows/useGridRowsMeta.js +7 -14
- package/modern/hooks/features/rows/useGridRowsPreProcessors.js +37 -0
- package/modern/hooks/features/scroll/useGridScroll.js +25 -10
- package/modern/hooks/features/selection/useGridSelection.js +79 -27
- package/modern/hooks/features/selection/useGridSelectionPreProcessors.js +2 -2
- package/modern/hooks/features/sorting/useGridSorting.js +18 -37
- package/modern/hooks/features/statePersistence/useGridStatePersistence.js +2 -2
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +59 -26
- package/modern/index.js +1 -1
- package/modern/internals/index.js +7 -6
- package/modern/locales/arSD.js +58 -58
- package/modern/locales/daDK.js +32 -32
- package/modern/locales/faIR.js +22 -22
- package/modern/locales/huHU.js +108 -0
- package/modern/locales/index.js +1 -0
- package/modern/locales/koKR.js +1 -1
- package/modern/locales/plPL.js +26 -26
- package/modern/models/api/gridColumnSpanning.js +1 -0
- package/modern/models/colDef/index.js +1 -2
- package/modern/models/events/gridEvents.js +6 -4
- package/modern/models/gridColumnSpanning.js +1 -0
- package/modern/models/gridEditRowModel.js +1 -0
- package/modern/models/gridRows.js +1 -31
- package/modern/models/index.js +2 -2
- package/modern/models/params/gridEditCellParams.js +34 -1
- package/modern/models/params/gridPreferencePanelParams.js +1 -0
- package/modern/models/params/gridRowParams.js +39 -1
- package/modern/models/params/index.js +2 -1
- package/modern/utils/cleanupTracking/TimerBasedCleanupTracking.js +4 -2
- package/modern/utils/utils.js +150 -3
- package/node/DataGrid/DataGrid.js +35 -2
- package/node/DataGrid/useDataGridComponent.js +17 -9
- package/node/colDef/gridDateColDef.js +2 -2
- package/node/{models/colDef → colDef}/gridDefaultColumnTypes.js +6 -6
- package/node/colDef/index.js +13 -0
- package/node/components/ErrorOverlay.js +10 -1
- package/node/components/GridLoadingOverlay.js +10 -1
- package/node/components/GridNoRowsOverlay.js +10 -1
- package/node/components/GridRow.js +51 -24
- package/node/components/base/GridErrorHandler.js +7 -30
- package/node/components/base/GridOverlays.js +3 -2
- package/node/components/cell/GridActionsCell.js +172 -21
- package/node/components/cell/GridActionsCellItem.js +7 -4
- package/node/components/cell/GridCell.js +30 -9
- package/node/components/cell/GridEditBooleanCell.js +1 -1
- package/node/components/cell/GridEditDateCell.js +1 -1
- package/node/components/cell/GridEditInputCell.js +66 -5
- package/node/components/cell/GridEditSingleSelectCell.js +98 -16
- package/node/components/columnHeaders/{ColumnHeaderFilterIcon.js → GridColumnHeaderFilterIconButton.js} +23 -5
- package/node/components/columnHeaders/GridColumnHeaderItem.js +9 -13
- package/node/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
- package/node/components/columnHeaders/GridColumnHeaders.js +4 -2
- package/node/components/columnHeaders/index.js +13 -0
- package/node/components/columnSelection/GridCellCheckboxRenderer.js +22 -5
- package/node/components/containers/GridOverlay.js +10 -1
- package/node/components/containers/GridRoot.js +28 -17
- package/node/components/containers/GridRootStyles.js +2 -2
- package/node/components/menu/columnMenu/GridColumnMenu.js +1 -1
- package/node/components/panel/GridColumnsPanel.js +3 -3
- package/node/components/panel/GridPanel.js +1 -0
- package/node/components/panel/GridPreferencesPanel.js +4 -5
- 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/GridToolbarDensitySelector.js +1 -1
- package/node/components/virtualization/GridVirtualScroller.js +2 -0
- package/node/components/virtualization/GridVirtualScrollerContent.js +1 -3
- package/node/constants/defaultGridSlotsComponents.js +1 -0
- package/node/constants/gridDetailPanelToggleField.js +9 -0
- package/node/hooks/core/{preProcessing/gridPreProcessingApi.js → pipeProcessing/gridPipeProcessingApi.js} +0 -0
- package/node/hooks/core/pipeProcessing/index.js +57 -0
- package/node/hooks/core/pipeProcessing/useGridPipeProcessing.js +124 -0
- package/node/hooks/core/{preProcessing/useGridRegisterPreProcessor.js → pipeProcessing/useGridRegisterPipeApplier.js} +4 -4
- package/node/hooks/{features/filter/useGridRegisterFilteringMethod.js → core/pipeProcessing/useGridRegisterPipeProcessor.js} +27 -9
- package/node/hooks/core/{rowGroupsPreProcessing/gridRowGroupsPreProcessingApi.js → strategyProcessing/gridStrategyProcessingApi.js} +0 -0
- package/node/hooks/core/strategyProcessing/index.js +44 -0
- package/node/hooks/{features/sorting/useGridRegisterSortingMethod.js → core/strategyProcessing/useGridRegisterStrategyProcessor.js} +18 -9
- package/node/hooks/core/strategyProcessing/useGridStrategyProcessing.js +146 -0
- package/node/hooks/core/useGridInitialization.js +4 -4
- package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +81 -11
- package/node/hooks/features/columns/gridColumnsUtils.js +222 -46
- package/node/hooks/features/columns/useGridColumnSpanning.js +130 -0
- package/node/hooks/features/columns/useGridColumns.js +120 -64
- package/node/hooks/features/dimensions/useGridDimensions.js +5 -4
- package/node/hooks/features/editRows/useGridCellEditing.new.js +359 -0
- package/node/hooks/features/editRows/{useGridCellEditing.js → useGridCellEditing.old.js} +1 -1
- package/node/hooks/features/editRows/useGridEditing.new.js +146 -0
- package/node/hooks/features/editRows/{useGridEditing.js → useGridEditing.old.js} +4 -4
- package/node/hooks/features/editRows/useGridRowEditing.new.js +523 -0
- package/node/hooks/features/editRows/{useGridRowEditing.js → useGridRowEditing.old.js} +6 -6
- package/node/hooks/features/events/useGridEvents.js +2 -0
- package/node/hooks/features/filter/useGridFilter.js +38 -38
- package/node/hooks/features/focus/useGridFocus.js +50 -1
- package/node/hooks/features/{keyboard → keyboardNavigation}/useGridKeyboardNavigation.js +69 -13
- package/node/hooks/features/pagination/useGridPage.js +8 -3
- package/node/hooks/features/pagination/useGridPageSize.js +3 -3
- package/node/hooks/features/preferencesPanel/useGridPreferencesPanel.js +20 -5
- package/node/hooks/features/rows/gridRowsSelector.js +3 -1
- package/node/hooks/features/rows/gridRowsUtils.js +18 -0
- package/node/hooks/features/rows/index.js +15 -1
- package/node/hooks/features/rows/useGridRows.js +72 -50
- package/node/hooks/features/rows/useGridRowsMeta.js +7 -15
- package/node/hooks/features/rows/useGridRowsPreProcessors.js +46 -0
- package/node/hooks/features/scroll/useGridScroll.js +28 -14
- package/node/hooks/features/selection/useGridSelection.js +79 -26
- package/node/hooks/features/selection/useGridSelectionPreProcessors.js +2 -2
- package/node/hooks/features/sorting/useGridSorting.js +18 -37
- package/node/hooks/features/statePersistence/useGridStatePersistence.js +2 -2
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +64 -30
- package/node/index.js +1 -1
- package/node/internals/index.js +41 -27
- package/node/locales/arSD.js +58 -58
- package/node/locales/daDK.js +32 -32
- package/node/locales/faIR.js +22 -22
- package/node/locales/huHU.js +118 -0
- package/node/locales/index.js +13 -0
- package/node/locales/koKR.js +1 -1
- package/node/locales/plPL.js +26 -26
- package/node/models/api/gridColumnSpanning.js +5 -0
- package/node/models/colDef/index.js +0 -13
- package/node/models/events/gridEvents.js +6 -4
- package/node/models/gridColumnSpanning.js +5 -0
- package/node/models/gridEditRowModel.js +1 -0
- package/node/models/gridRows.js +1 -34
- package/node/models/index.js +13 -13
- package/node/models/params/gridEditCellParams.js +37 -1
- package/node/models/params/gridPreferencePanelParams.js +5 -0
- package/node/models/params/gridRowParams.js +42 -1
- package/node/models/params/index.js +13 -0
- package/node/utils/cleanupTracking/TimerBasedCleanupTracking.js +4 -2
- package/node/utils/utils.js +152 -11
- package/package.json +4 -4
- package/utils/cleanupTracking/TimerBasedCleanupTracking.d.ts +2 -0
- package/utils/cleanupTracking/TimerBasedCleanupTracking.js +4 -2
- package/utils/domUtils.d.ts +2 -2
- package/utils/utils.d.ts +27 -2
- package/utils/utils.js +150 -3
- package/components/columnHeaders/ColumnHeaderFilterIcon.d.ts +0 -5
- package/hooks/core/preProcessing/gridPreProcessingApi.d.ts +0 -71
- package/hooks/core/preProcessing/index.d.ts +0 -3
- package/hooks/core/preProcessing/index.js +0 -3
- package/hooks/core/preProcessing/useGridPreProcessing.d.ts +0 -3
- package/hooks/core/preProcessing/useGridPreProcessing.js +0 -49
- package/hooks/core/preProcessing/useGridRegisterPreProcessor.d.ts +0 -4
- package/hooks/core/rowGroupsPreProcessing/gridRowGroupsPreProcessingApi.d.ts +0 -35
- package/hooks/core/rowGroupsPreProcessing/index.d.ts +0 -2
- package/hooks/core/rowGroupsPreProcessing/index.js +0 -2
- package/hooks/core/rowGroupsPreProcessing/useGridRowGroupsPreProcessing.d.ts +0 -3
- package/hooks/core/rowGroupsPreProcessing/useGridRowGroupsPreProcessing.js +0 -72
- package/hooks/features/filter/useGridRegisterFilteringMethod.d.ts +0 -4
- package/hooks/features/filter/useGridRegisterFilteringMethod.js +0 -9
- package/hooks/features/keyboard/useGridKeyboard.d.ts +0 -10
- package/hooks/features/keyboard/useGridKeyboard.js +0 -70
- package/hooks/features/sorting/useGridRegisterSortingMethod.d.ts +0 -4
- package/hooks/features/sorting/useGridRegisterSortingMethod.js +0 -9
- package/legacy/hooks/core/preProcessing/index.js +0 -3
- package/legacy/hooks/core/preProcessing/useGridPreProcessing.js +0 -58
- package/legacy/hooks/core/rowGroupsPreProcessing/index.js +0 -2
- package/legacy/hooks/core/rowGroupsPreProcessing/useGridRowGroupsPreProcessing.js +0 -71
- package/legacy/hooks/features/filter/useGridRegisterFilteringMethod.js +0 -9
- package/legacy/hooks/features/keyboard/useGridKeyboard.js +0 -70
- package/legacy/hooks/features/sorting/useGridRegisterSortingMethod.js +0 -9
- package/legacy/lib/lodash/_DataView.js +0 -8
- package/legacy/lib/lodash/_Hash.js +0 -33
- package/legacy/lib/lodash/_ListCache.js +0 -33
- package/legacy/lib/lodash/_Map.js +0 -8
- package/legacy/lib/lodash/_MapCache.js +0 -33
- package/legacy/lib/lodash/_Promise.js +0 -8
- package/legacy/lib/lodash/_Set.js +0 -8
- package/legacy/lib/lodash/_SetCache.js +0 -28
- package/legacy/lib/lodash/_Stack.js +0 -28
- package/legacy/lib/lodash/_Symbol.js +0 -7
- package/legacy/lib/lodash/_Uint8Array.js +0 -7
- package/legacy/lib/lodash/_WeakMap.js +0 -8
- package/legacy/lib/lodash/_arrayFilter.js +0 -29
- package/legacy/lib/lodash/_arrayLikeKeys.js +0 -46
- package/legacy/lib/lodash/_arrayPush.js +0 -23
- package/legacy/lib/lodash/_arraySome.js +0 -26
- package/legacy/lib/lodash/_assocIndexOf.js +0 -25
- package/legacy/lib/lodash/_baseGetAllKeys.js +0 -22
- package/legacy/lib/lodash/_baseGetTag.js +0 -29
- package/legacy/lib/lodash/_baseIsArguments.js +0 -20
- package/legacy/lib/lodash/_baseIsEqual.js +0 -32
- package/legacy/lib/lodash/_baseIsEqualDeep.js +0 -85
- package/legacy/lib/lodash/_baseIsNative.js +0 -47
- package/legacy/lib/lodash/_baseIsTypedArray.js +0 -49
- package/legacy/lib/lodash/_baseKeys.js +0 -35
- package/legacy/lib/lodash/_baseTimes.js +0 -23
- package/legacy/lib/lodash/_baseUnary.js +0 -16
- package/legacy/lib/lodash/_cacheHas.js +0 -15
- package/legacy/lib/lodash/_coreJsData.js +0 -7
- package/legacy/lib/lodash/_equalArrays.js +0 -84
- package/legacy/lib/lodash/_equalByTag.js +0 -117
- package/legacy/lib/lodash/_equalObjects.js +0 -92
- package/legacy/lib/lodash/_freeGlobal.js +0 -6
- package/legacy/lib/lodash/_getAllKeys.js +0 -18
- package/legacy/lib/lodash/_getMapData.js +0 -18
- package/legacy/lib/lodash/_getNative.js +0 -19
- package/legacy/lib/lodash/_getRawTag.js +0 -50
- package/legacy/lib/lodash/_getSymbols.js +0 -32
- package/legacy/lib/lodash/_getTag.js +0 -64
- package/legacy/lib/lodash/_getValue.js +0 -15
- package/legacy/lib/lodash/_hashClear.js +0 -17
- package/legacy/lib/lodash/_hashDelete.js +0 -19
- package/legacy/lib/lodash/_hashGet.js +0 -34
- package/legacy/lib/lodash/_hashHas.js +0 -25
- package/legacy/lib/lodash/_hashSet.js +0 -25
- package/legacy/lib/lodash/_isIndex.js +0 -25
- package/legacy/lib/lodash/_isKeyable.js +0 -18
- package/legacy/lib/lodash/_isMasked.js +0 -23
- package/legacy/lib/lodash/_isPrototype.js +0 -19
- package/legacy/lib/lodash/_listCacheClear.js +0 -15
- package/legacy/lib/lodash/_listCacheDelete.js +0 -40
- package/legacy/lib/lodash/_listCacheGet.js +0 -20
- package/legacy/lib/lodash/_listCacheHas.js +0 -18
- package/legacy/lib/lodash/_listCacheSet.js +0 -29
- package/legacy/lib/lodash/_mapCacheClear.js +0 -23
- package/legacy/lib/lodash/_mapCacheDelete.js +0 -20
- package/legacy/lib/lodash/_mapCacheGet.js +0 -18
- package/legacy/lib/lodash/_mapCacheHas.js +0 -18
- package/legacy/lib/lodash/_mapCacheSet.js +0 -23
- package/legacy/lib/lodash/_mapToArray.js +0 -19
- package/legacy/lib/lodash/_nativeCreate.js +0 -7
- package/legacy/lib/lodash/_nativeKeys.js +0 -7
- package/legacy/lib/lodash/_nodeUtil.js +0 -25
- package/legacy/lib/lodash/_objectToString.js +0 -24
- package/legacy/lib/lodash/_overArg.js +0 -17
- package/legacy/lib/lodash/_root.js +0 -11
- package/legacy/lib/lodash/_setCacheAdd.js +0 -22
- package/legacy/lib/lodash/_setCacheHas.js +0 -16
- package/legacy/lib/lodash/_setToArray.js +0 -19
- package/legacy/lib/lodash/_stackClear.js +0 -17
- package/legacy/lib/lodash/_stackDelete.js +0 -19
- package/legacy/lib/lodash/_stackGet.js +0 -16
- package/legacy/lib/lodash/_stackHas.js +0 -16
- package/legacy/lib/lodash/_stackSet.js +0 -40
- package/legacy/lib/lodash/_toSource.js +0 -30
- package/legacy/lib/lodash/date.default.js +0 -4
- package/legacy/lib/lodash/date.js +0 -2
- package/legacy/lib/lodash/eq.js +0 -39
- package/legacy/lib/lodash/function.default.js +0 -4
- package/legacy/lib/lodash/function.js +0 -2
- package/legacy/lib/lodash/isArguments.js +0 -38
- package/legacy/lib/lodash/isArray.js +0 -27
- package/legacy/lib/lodash/isArrayLike.js +0 -35
- package/legacy/lib/lodash/isBuffer.js +0 -40
- package/legacy/lib/lodash/isDeepEqual.js +0 -45
- package/legacy/lib/lodash/isFunction.js +0 -40
- package/legacy/lib/lodash/isLength.js +0 -36
- package/legacy/lib/lodash/isObject.js +0 -36
- package/legacy/lib/lodash/isObjectLike.js +0 -33
- package/legacy/lib/lodash/isSymbol.js +0 -31
- package/legacy/lib/lodash/isTypedArray.js +0 -28
- package/legacy/lib/lodash/keys.js +0 -39
- package/legacy/lib/lodash/lang.default.js +0 -28
- package/legacy/lib/lodash/lang.js +0 -14
- package/legacy/lib/lodash/now.js +0 -25
- package/legacy/lib/lodash/object.default.js +0 -4
- package/legacy/lib/lodash/object.js +0 -2
- package/legacy/lib/lodash/stubArray.js +0 -25
- package/legacy/lib/lodash/stubFalse.js +0 -20
- package/legacy/lib/lodash/toNumber.js +0 -70
- package/legacy/lib/lodash/util.default.js +0 -6
- package/legacy/lib/lodash/util.js +0 -3
- package/lib/lodash/_DataView.d.ts +0 -2
- package/lib/lodash/_DataView.js +0 -8
- package/lib/lodash/_Hash.d.ts +0 -29
- package/lib/lodash/_Hash.js +0 -33
- package/lib/lodash/_ListCache.d.ts +0 -29
- package/lib/lodash/_ListCache.js +0 -33
- package/lib/lodash/_Map.d.ts +0 -2
- package/lib/lodash/_Map.js +0 -8
- package/lib/lodash/_MapCache.d.ts +0 -29
- package/lib/lodash/_MapCache.js +0 -33
- package/lib/lodash/_Promise.d.ts +0 -2
- package/lib/lodash/_Promise.js +0 -8
- package/lib/lodash/_Set.d.ts +0 -2
- package/lib/lodash/_Set.js +0 -8
- package/lib/lodash/_SetCache.d.ts +0 -28
- package/lib/lodash/_SetCache.js +0 -28
- package/lib/lodash/_Stack.d.ts +0 -32
- package/lib/lodash/_Stack.js +0 -28
- package/lib/lodash/_Symbol.d.ts +0 -3
- package/lib/lodash/_Symbol.js +0 -7
- package/lib/lodash/_Uint8Array.d.ts +0 -3
- package/lib/lodash/_Uint8Array.js +0 -7
- package/lib/lodash/_WeakMap.d.ts +0 -2
- package/lib/lodash/_WeakMap.js +0 -8
- package/lib/lodash/_arrayFilter.d.ts +0 -11
- package/lib/lodash/_arrayFilter.js +0 -29
- package/lib/lodash/_arrayLikeKeys.d.ts +0 -10
- package/lib/lodash/_arrayLikeKeys.js +0 -46
- package/lib/lodash/_arrayPush.d.ts +0 -10
- package/lib/lodash/_arrayPush.js +0 -23
- package/lib/lodash/_arraySome.d.ts +0 -12
- package/lib/lodash/_arraySome.js +0 -26
- package/lib/lodash/_assocIndexOf.d.ts +0 -10
- package/lib/lodash/_assocIndexOf.js +0 -25
- package/lib/lodash/_baseGetAllKeys.d.ts +0 -13
- package/lib/lodash/_baseGetAllKeys.js +0 -22
- package/lib/lodash/_baseGetTag.d.ts +0 -9
- package/lib/lodash/_baseGetTag.js +0 -29
- package/lib/lodash/_baseIsArguments.d.ts +0 -9
- package/lib/lodash/_baseIsArguments.js +0 -20
- package/lib/lodash/_baseIsEqual.d.ts +0 -16
- package/lib/lodash/_baseIsEqual.js +0 -32
- package/lib/lodash/_baseIsEqualDeep.d.ts +0 -16
- package/lib/lodash/_baseIsEqualDeep.js +0 -85
- package/lib/lodash/_baseIsNative.d.ts +0 -10
- package/lib/lodash/_baseIsNative.js +0 -47
- package/lib/lodash/_baseIsTypedArray.d.ts +0 -9
- package/lib/lodash/_baseIsTypedArray.js +0 -49
- package/lib/lodash/_baseKeys.d.ts +0 -9
- package/lib/lodash/_baseKeys.js +0 -35
- package/lib/lodash/_baseTimes.d.ts +0 -11
- package/lib/lodash/_baseTimes.js +0 -23
- package/lib/lodash/_baseUnary.d.ts +0 -9
- package/lib/lodash/_baseUnary.js +0 -16
- package/lib/lodash/_cacheHas.d.ts +0 -10
- package/lib/lodash/_cacheHas.js +0 -15
- package/lib/lodash/_coreJsData.d.ts +0 -3
- package/lib/lodash/_coreJsData.js +0 -7
- package/lib/lodash/_equalArrays.d.ts +0 -15
- package/lib/lodash/_equalArrays.js +0 -84
- package/lib/lodash/_equalByTag.d.ts +0 -19
- package/lib/lodash/_equalByTag.js +0 -117
- package/lib/lodash/_equalObjects.d.ts +0 -15
- package/lib/lodash/_equalObjects.js +0 -92
- package/lib/lodash/_freeGlobal.d.ts +0 -3
- package/lib/lodash/_freeGlobal.js +0 -5
- package/lib/lodash/_getAllKeys.d.ts +0 -9
- package/lib/lodash/_getAllKeys.js +0 -18
- package/lib/lodash/_getMapData.d.ts +0 -10
- package/lib/lodash/_getMapData.js +0 -18
- package/lib/lodash/_getNative.d.ts +0 -10
- package/lib/lodash/_getNative.js +0 -19
- package/lib/lodash/_getRawTag.d.ts +0 -9
- package/lib/lodash/_getRawTag.js +0 -50
- package/lib/lodash/_getSymbols.d.ts +0 -2
- package/lib/lodash/_getSymbols.js +0 -32
- package/lib/lodash/_getTag.d.ts +0 -10
- package/lib/lodash/_getTag.js +0 -64
- package/lib/lodash/_getValue.d.ts +0 -10
- package/lib/lodash/_getValue.js +0 -15
- package/lib/lodash/_hashClear.d.ts +0 -13
- package/lib/lodash/_hashClear.js +0 -17
- package/lib/lodash/_hashDelete.d.ts +0 -12
- package/lib/lodash/_hashDelete.js +0 -19
- package/lib/lodash/_hashGet.d.ts +0 -11
- package/lib/lodash/_hashGet.js +0 -34
- package/lib/lodash/_hashHas.d.ts +0 -11
- package/lib/lodash/_hashHas.js +0 -25
- package/lib/lodash/_hashSet.d.ts +0 -12
- package/lib/lodash/_hashSet.js +0 -25
- package/lib/lodash/_isIndex.d.ts +0 -10
- package/lib/lodash/_isIndex.js +0 -23
- package/lib/lodash/_isKeyable.d.ts +0 -9
- package/lib/lodash/_isKeyable.js +0 -15
- package/lib/lodash/_isMasked.d.ts +0 -9
- package/lib/lodash/_isMasked.js +0 -23
- package/lib/lodash/_isPrototype.d.ts +0 -9
- package/lib/lodash/_isPrototype.js +0 -19
- package/lib/lodash/_listCacheClear.d.ts +0 -13
- package/lib/lodash/_listCacheClear.js +0 -15
- package/lib/lodash/_listCacheDelete.d.ts +0 -11
- package/lib/lodash/_listCacheDelete.js +0 -40
- package/lib/lodash/_listCacheGet.d.ts +0 -11
- package/lib/lodash/_listCacheGet.js +0 -20
- package/lib/lodash/_listCacheHas.d.ts +0 -11
- package/lib/lodash/_listCacheHas.js +0 -18
- package/lib/lodash/_listCacheSet.d.ts +0 -12
- package/lib/lodash/_listCacheSet.js +0 -29
- package/lib/lodash/_mapCacheClear.d.ts +0 -18
- package/lib/lodash/_mapCacheClear.js +0 -23
- package/lib/lodash/_mapCacheDelete.d.ts +0 -11
- package/lib/lodash/_mapCacheDelete.js +0 -20
- package/lib/lodash/_mapCacheGet.d.ts +0 -11
- package/lib/lodash/_mapCacheGet.js +0 -18
- package/lib/lodash/_mapCacheHas.d.ts +0 -11
- package/lib/lodash/_mapCacheHas.js +0 -18
- package/lib/lodash/_mapCacheSet.d.ts +0 -12
- package/lib/lodash/_mapCacheSet.js +0 -23
- package/lib/lodash/_mapToArray.d.ts +0 -9
- package/lib/lodash/_mapToArray.js +0 -19
- package/lib/lodash/_nativeCreate.d.ts +0 -2
- package/lib/lodash/_nativeCreate.js +0 -7
- package/lib/lodash/_nativeKeys.d.ts +0 -2
- package/lib/lodash/_nativeKeys.js +0 -7
- package/lib/lodash/_nodeUtil.d.ts +0 -3
- package/lib/lodash/_nodeUtil.js +0 -24
- package/lib/lodash/_objectToString.d.ts +0 -9
- package/lib/lodash/_objectToString.js +0 -24
- package/lib/lodash/_overArg.d.ts +0 -10
- package/lib/lodash/_overArg.js +0 -17
- package/lib/lodash/_root.d.ts +0 -3
- package/lib/lodash/_root.js +0 -10
- package/lib/lodash/_setCacheAdd.d.ts +0 -12
- package/lib/lodash/_setCacheAdd.js +0 -22
- package/lib/lodash/_setCacheHas.d.ts +0 -11
- package/lib/lodash/_setCacheHas.js +0 -16
- package/lib/lodash/_setToArray.d.ts +0 -9
- package/lib/lodash/_setToArray.js +0 -19
- package/lib/lodash/_stackClear.d.ts +0 -14
- package/lib/lodash/_stackClear.js +0 -17
- package/lib/lodash/_stackDelete.d.ts +0 -24
- package/lib/lodash/_stackDelete.js +0 -19
- package/lib/lodash/_stackGet.d.ts +0 -11
- package/lib/lodash/_stackGet.js +0 -16
- package/lib/lodash/_stackHas.d.ts +0 -11
- package/lib/lodash/_stackHas.js +0 -16
- package/lib/lodash/_stackSet.d.ts +0 -28
- package/lib/lodash/_stackSet.js +0 -40
- package/lib/lodash/_toSource.d.ts +0 -9
- package/lib/lodash/_toSource.js +0 -30
- package/lib/lodash/date.d.ts +0 -2
- package/lib/lodash/date.default.d.ts +0 -5
- package/lib/lodash/date.default.js +0 -4
- package/lib/lodash/date.js +0 -2
- package/lib/lodash/eq.d.ts +0 -34
- package/lib/lodash/eq.js +0 -39
- package/lib/lodash/function.d.ts +0 -1
- package/lib/lodash/function.default.d.ts +0 -4
- package/lib/lodash/function.default.js +0 -4
- package/lib/lodash/function.js +0 -2
- package/lib/lodash/isArguments.d.ts +0 -2
- package/lib/lodash/isArguments.js +0 -38
- package/lib/lodash/isArray.d.ts +0 -25
- package/lib/lodash/isArray.js +0 -27
- package/lib/lodash/isArrayLike.d.ts +0 -27
- package/lib/lodash/isArrayLike.js +0 -35
- package/lib/lodash/isBuffer.d.ts +0 -19
- package/lib/lodash/isBuffer.js +0 -39
- package/lib/lodash/isDeepEqual.d.ts +0 -30
- package/lib/lodash/isDeepEqual.js +0 -45
- package/lib/lodash/isFunction.d.ts +0 -19
- package/lib/lodash/isFunction.js +0 -40
- package/lib/lodash/isLength.d.ts +0 -28
- package/lib/lodash/isLength.js +0 -36
- package/lib/lodash/isObject.d.ts +0 -27
- package/lib/lodash/isObject.js +0 -33
- package/lib/lodash/isObjectLike.d.ts +0 -26
- package/lib/lodash/isObjectLike.js +0 -31
- package/lib/lodash/isSymbol.d.ts +0 -19
- package/lib/lodash/isSymbol.js +0 -30
- package/lib/lodash/isTypedArray.d.ts +0 -19
- package/lib/lodash/isTypedArray.js +0 -28
- package/lib/lodash/keys.d.ts +0 -30
- package/lib/lodash/keys.js +0 -39
- package/lib/lodash/lang.d.ts +0 -14
- package/lib/lodash/lang.default.d.ts +0 -29
- package/lib/lodash/lang.default.js +0 -28
- package/lib/lodash/lang.js +0 -14
- package/lib/lodash/now.d.ts +0 -18
- package/lib/lodash/now.js +0 -25
- package/lib/lodash/object.d.ts +0 -2
- package/lib/lodash/object.default.d.ts +0 -5
- package/lib/lodash/object.default.js +0 -4
- package/lib/lodash/object.js +0 -2
- package/lib/lodash/stubArray.d.ts +0 -20
- package/lib/lodash/stubArray.js +0 -25
- package/lib/lodash/stubFalse.d.ts +0 -15
- package/lib/lodash/stubFalse.js +0 -20
- package/lib/lodash/toNumber.d.ts +0 -25
- package/lib/lodash/toNumber.js +0 -70
- package/lib/lodash/util.d.ts +0 -3
- package/lib/lodash/util.default.d.ts +0 -7
- package/lib/lodash/util.default.js +0 -6
- package/lib/lodash/util.js +0 -3
- package/modern/hooks/core/preProcessing/index.js +0 -3
- package/modern/hooks/core/preProcessing/useGridPreProcessing.js +0 -49
- package/modern/hooks/core/rowGroupsPreProcessing/index.js +0 -2
- package/modern/hooks/core/rowGroupsPreProcessing/useGridRowGroupsPreProcessing.js +0 -70
- package/modern/hooks/features/filter/useGridRegisterFilteringMethod.js +0 -9
- package/modern/hooks/features/keyboard/useGridKeyboard.js +0 -70
- package/modern/hooks/features/sorting/useGridRegisterSortingMethod.js +0 -9
- package/modern/lib/lodash/_DataView.js +0 -8
- package/modern/lib/lodash/_Hash.js +0 -33
- package/modern/lib/lodash/_ListCache.js +0 -33
- package/modern/lib/lodash/_Map.js +0 -8
- package/modern/lib/lodash/_MapCache.js +0 -33
- package/modern/lib/lodash/_Promise.js +0 -8
- package/modern/lib/lodash/_Set.js +0 -8
- package/modern/lib/lodash/_SetCache.js +0 -28
- package/modern/lib/lodash/_Stack.js +0 -28
- package/modern/lib/lodash/_Symbol.js +0 -7
- package/modern/lib/lodash/_Uint8Array.js +0 -7
- package/modern/lib/lodash/_WeakMap.js +0 -8
- package/modern/lib/lodash/_arrayFilter.js +0 -29
- package/modern/lib/lodash/_arrayLikeKeys.js +0 -46
- package/modern/lib/lodash/_arrayPush.js +0 -23
- package/modern/lib/lodash/_arraySome.js +0 -26
- package/modern/lib/lodash/_assocIndexOf.js +0 -25
- package/modern/lib/lodash/_baseGetAllKeys.js +0 -22
- package/modern/lib/lodash/_baseGetTag.js +0 -29
- package/modern/lib/lodash/_baseIsArguments.js +0 -20
- package/modern/lib/lodash/_baseIsEqual.js +0 -32
- package/modern/lib/lodash/_baseIsEqualDeep.js +0 -85
- package/modern/lib/lodash/_baseIsNative.js +0 -47
- package/modern/lib/lodash/_baseIsTypedArray.js +0 -49
- package/modern/lib/lodash/_baseKeys.js +0 -35
- package/modern/lib/lodash/_baseTimes.js +0 -23
- package/modern/lib/lodash/_baseUnary.js +0 -16
- package/modern/lib/lodash/_cacheHas.js +0 -15
- package/modern/lib/lodash/_coreJsData.js +0 -7
- package/modern/lib/lodash/_equalArrays.js +0 -84
- package/modern/lib/lodash/_equalByTag.js +0 -117
- package/modern/lib/lodash/_equalObjects.js +0 -92
- package/modern/lib/lodash/_freeGlobal.js +0 -5
- package/modern/lib/lodash/_getAllKeys.js +0 -18
- package/modern/lib/lodash/_getMapData.js +0 -18
- package/modern/lib/lodash/_getNative.js +0 -19
- package/modern/lib/lodash/_getRawTag.js +0 -50
- package/modern/lib/lodash/_getSymbols.js +0 -32
- package/modern/lib/lodash/_getTag.js +0 -64
- package/modern/lib/lodash/_getValue.js +0 -15
- package/modern/lib/lodash/_hashClear.js +0 -17
- package/modern/lib/lodash/_hashDelete.js +0 -19
- package/modern/lib/lodash/_hashGet.js +0 -34
- package/modern/lib/lodash/_hashHas.js +0 -25
- package/modern/lib/lodash/_hashSet.js +0 -25
- package/modern/lib/lodash/_isIndex.js +0 -23
- package/modern/lib/lodash/_isKeyable.js +0 -15
- package/modern/lib/lodash/_isMasked.js +0 -23
- package/modern/lib/lodash/_isPrototype.js +0 -19
- package/modern/lib/lodash/_listCacheClear.js +0 -15
- package/modern/lib/lodash/_listCacheDelete.js +0 -40
- package/modern/lib/lodash/_listCacheGet.js +0 -20
- package/modern/lib/lodash/_listCacheHas.js +0 -18
- package/modern/lib/lodash/_listCacheSet.js +0 -29
- package/modern/lib/lodash/_mapCacheClear.js +0 -23
- package/modern/lib/lodash/_mapCacheDelete.js +0 -20
- package/modern/lib/lodash/_mapCacheGet.js +0 -18
- package/modern/lib/lodash/_mapCacheHas.js +0 -18
- package/modern/lib/lodash/_mapCacheSet.js +0 -23
- package/modern/lib/lodash/_mapToArray.js +0 -19
- package/modern/lib/lodash/_nativeCreate.js +0 -7
- package/modern/lib/lodash/_nativeKeys.js +0 -7
- package/modern/lib/lodash/_nodeUtil.js +0 -24
- package/modern/lib/lodash/_objectToString.js +0 -24
- package/modern/lib/lodash/_overArg.js +0 -17
- package/modern/lib/lodash/_root.js +0 -10
- package/modern/lib/lodash/_setCacheAdd.js +0 -22
- package/modern/lib/lodash/_setCacheHas.js +0 -16
- package/modern/lib/lodash/_setToArray.js +0 -19
- package/modern/lib/lodash/_stackClear.js +0 -17
- package/modern/lib/lodash/_stackDelete.js +0 -19
- package/modern/lib/lodash/_stackGet.js +0 -16
- package/modern/lib/lodash/_stackHas.js +0 -16
- package/modern/lib/lodash/_stackSet.js +0 -40
- package/modern/lib/lodash/_toSource.js +0 -30
- package/modern/lib/lodash/date.default.js +0 -4
- package/modern/lib/lodash/date.js +0 -2
- package/modern/lib/lodash/eq.js +0 -39
- package/modern/lib/lodash/function.default.js +0 -4
- package/modern/lib/lodash/function.js +0 -2
- package/modern/lib/lodash/isArguments.js +0 -38
- package/modern/lib/lodash/isArray.js +0 -27
- package/modern/lib/lodash/isArrayLike.js +0 -35
- package/modern/lib/lodash/isBuffer.js +0 -39
- package/modern/lib/lodash/isDeepEqual.js +0 -45
- package/modern/lib/lodash/isFunction.js +0 -40
- package/modern/lib/lodash/isLength.js +0 -36
- package/modern/lib/lodash/isObject.js +0 -33
- package/modern/lib/lodash/isObjectLike.js +0 -31
- package/modern/lib/lodash/isSymbol.js +0 -30
- package/modern/lib/lodash/isTypedArray.js +0 -28
- package/modern/lib/lodash/keys.js +0 -39
- package/modern/lib/lodash/lang.default.js +0 -28
- package/modern/lib/lodash/lang.js +0 -14
- package/modern/lib/lodash/now.js +0 -25
- package/modern/lib/lodash/object.default.js +0 -4
- package/modern/lib/lodash/object.js +0 -2
- package/modern/lib/lodash/stubArray.js +0 -25
- package/modern/lib/lodash/stubFalse.js +0 -20
- package/modern/lib/lodash/toNumber.js +0 -70
- package/modern/lib/lodash/util.default.js +0 -6
- package/modern/lib/lodash/util.js +0 -3
- package/node/hooks/core/preProcessing/index.js +0 -44
- package/node/hooks/core/preProcessing/useGridPreProcessing.js +0 -69
- package/node/hooks/core/rowGroupsPreProcessing/index.js +0 -31
- package/node/hooks/core/rowGroupsPreProcessing/useGridRowGroupsPreProcessing.js +0 -87
- package/node/hooks/features/keyboard/useGridKeyboard.js +0 -91
- package/node/lib/lodash/_DataView.js +0 -20
- package/node/lib/lodash/_Hash.js +0 -48
- package/node/lib/lodash/_ListCache.js +0 -48
- package/node/lib/lodash/_Map.js +0 -20
- package/node/lib/lodash/_MapCache.js +0 -48
- package/node/lib/lodash/_Promise.js +0 -20
- package/node/lib/lodash/_Set.js +0 -20
- package/node/lib/lodash/_SetCache.js +0 -41
- package/node/lib/lodash/_Stack.js +0 -44
- package/node/lib/lodash/_Symbol.js +0 -18
- package/node/lib/lodash/_Uint8Array.js +0 -18
- package/node/lib/lodash/_WeakMap.js +0 -20
- package/node/lib/lodash/_arrayFilter.js +0 -35
- package/node/lib/lodash/_arrayLikeKeys.js +0 -62
- package/node/lib/lodash/_arrayPush.js +0 -29
- package/node/lib/lodash/_arraySome.js +0 -32
- package/node/lib/lodash/_assocIndexOf.js +0 -36
- package/node/lib/lodash/_baseGetAllKeys.js +0 -34
- package/node/lib/lodash/_baseGetTag.js +0 -42
- package/node/lib/lodash/_baseIsArguments.js +0 -32
- package/node/lib/lodash/_baseIsEqual.js +0 -44
- package/node/lib/lodash/_baseIsEqualDeep.js +0 -103
- package/node/lib/lodash/_baseIsNative.js +0 -61
- package/node/lib/lodash/_baseIsTypedArray.js +0 -62
- package/node/lib/lodash/_baseKeys.js +0 -47
- package/node/lib/lodash/_baseTimes.js +0 -29
- package/node/lib/lodash/_baseUnary.js +0 -22
- package/node/lib/lodash/_cacheHas.js +0 -21
- package/node/lib/lodash/_coreJsData.js +0 -18
- package/node/lib/lodash/_equalArrays.js +0 -97
- package/node/lib/lodash/_equalByTag.js +0 -133
- package/node/lib/lodash/_equalObjects.js +0 -103
- package/node/lib/lodash/_freeGlobal.js +0 -10
- package/node/lib/lodash/_getAllKeys.js +0 -31
- package/node/lib/lodash/_getMapData.js +0 -29
- package/node/lib/lodash/_getNative.js +0 -31
- package/node/lib/lodash/_getRawTag.js +0 -61
- package/node/lib/lodash/_getSymbols.js +0 -44
- package/node/lib/lodash/_getTag.js +0 -81
- package/node/lib/lodash/_getValue.js +0 -21
- package/node/lib/lodash/_hashClear.js +0 -28
- package/node/lib/lodash/_hashDelete.js +0 -25
- package/node/lib/lodash/_hashGet.js +0 -45
- package/node/lib/lodash/_hashHas.js +0 -36
- package/node/lib/lodash/_hashSet.js +0 -36
- package/node/lib/lodash/_isIndex.js +0 -28
- package/node/lib/lodash/_isKeyable.js +0 -21
- package/node/lib/lodash/_isMasked.js +0 -34
- package/node/lib/lodash/_isPrototype.js +0 -24
- package/node/lib/lodash/_listCacheClear.js +0 -21
- package/node/lib/lodash/_listCacheDelete.js +0 -51
- package/node/lib/lodash/_listCacheGet.js +0 -31
- package/node/lib/lodash/_listCacheHas.js +0 -29
- package/node/lib/lodash/_listCacheSet.js +0 -40
- package/node/lib/lodash/_mapCacheClear.js +0 -36
- package/node/lib/lodash/_mapCacheDelete.js +0 -31
- package/node/lib/lodash/_mapCacheGet.js +0 -29
- package/node/lib/lodash/_mapCacheHas.js +0 -29
- package/node/lib/lodash/_mapCacheSet.js +0 -34
- package/node/lib/lodash/_mapToArray.js +0 -25
- package/node/lib/lodash/_nativeCreate.js +0 -18
- package/node/lib/lodash/_nativeKeys.js +0 -18
- package/node/lib/lodash/_nodeUtil.js +0 -35
- package/node/lib/lodash/_objectToString.js +0 -29
- package/node/lib/lodash/_overArg.js +0 -23
- package/node/lib/lodash/_root.js +0 -21
- package/node/lib/lodash/_setCacheAdd.js +0 -27
- package/node/lib/lodash/_setCacheHas.js +0 -22
- package/node/lib/lodash/_setToArray.js +0 -25
- package/node/lib/lodash/_stackClear.js +0 -28
- package/node/lib/lodash/_stackDelete.js +0 -25
- package/node/lib/lodash/_stackGet.js +0 -22
- package/node/lib/lodash/_stackHas.js +0 -22
- package/node/lib/lodash/_stackSet.js +0 -53
- package/node/lib/lodash/_toSource.js +0 -35
- package/node/lib/lodash/date.default.js +0 -15
- package/node/lib/lodash/date.js +0 -23
- package/node/lib/lodash/eq.js +0 -45
- package/node/lib/lodash/function.default.js +0 -15
- package/node/lib/lodash/function.js +0 -23
- package/node/lib/lodash/isArguments.js +0 -50
- package/node/lib/lodash/isArray.js +0 -32
- package/node/lib/lodash/isArrayLike.js +0 -47
- package/node/lib/lodash/isBuffer.js +0 -51
- package/node/lib/lodash/isDeepEqual.js +0 -56
- package/node/lib/lodash/isFunction.js +0 -52
- package/node/lib/lodash/isLength.js +0 -41
- package/node/lib/lodash/isObject.js +0 -39
- package/node/lib/lodash/isObjectLike.js +0 -37
- package/node/lib/lodash/isSymbol.js +0 -42
- package/node/lib/lodash/isTypedArray.js +0 -41
- package/node/lib/lodash/keys.js +0 -52
- package/node/lib/lodash/lang.default.js +0 -51
- package/node/lib/lodash/lang.js +0 -119
- package/node/lib/lodash/now.js +0 -36
- package/node/lib/lodash/object.default.js +0 -15
- package/node/lib/lodash/object.js +0 -23
- package/node/lib/lodash/stubArray.js +0 -31
- package/node/lib/lodash/stubFalse.js +0 -26
- package/node/lib/lodash/toNumber.js +0 -82
- package/node/lib/lodash/util.default.js +0 -18
- package/node/lib/lodash/util.js +0 -31
|
@@ -1,11 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
import {
|
|
1
|
+
/// <reference types="react" />
|
|
2
|
+
import { GridCellMode } from '../gridCell';
|
|
3
|
+
import { GridRowId, GridRowModel, GridRowTreeNodeConfig, GridValidRowModel } from '../gridRows';
|
|
3
4
|
import type { GridStateColDef } from '../colDef/gridColDef';
|
|
4
5
|
import { GridEditCellProps } from '../gridEditRowModel';
|
|
5
6
|
/**
|
|
6
7
|
* Object passed as parameter in the column [[GridColDef]] cell renderer.
|
|
7
8
|
*/
|
|
8
|
-
export interface GridCellParams<V = any, R = any, F = V> {
|
|
9
|
+
export interface GridCellParams<V = any, R extends GridValidRowModel = any, F = V> {
|
|
9
10
|
/**
|
|
10
11
|
* The grid row id.
|
|
11
12
|
*/
|
|
@@ -17,11 +18,11 @@ export interface GridCellParams<V = any, R = any, F = V> {
|
|
|
17
18
|
/**
|
|
18
19
|
* The cell value, but if the column has valueGetter, use getValue.
|
|
19
20
|
*/
|
|
20
|
-
value
|
|
21
|
+
value?: V | undefined;
|
|
21
22
|
/**
|
|
22
23
|
* The cell value formatted with the column valueFormatter.
|
|
23
24
|
*/
|
|
24
|
-
formattedValue
|
|
25
|
+
formattedValue?: F | undefined;
|
|
25
26
|
/**
|
|
26
27
|
* The row model of the row that the current cell belongs to.
|
|
27
28
|
*/
|
|
@@ -54,25 +55,34 @@ export interface GridCellParams<V = any, R = any, F = V> {
|
|
|
54
55
|
* Get the cell value of a row and field.
|
|
55
56
|
* @param {GridRowId} id The row id.
|
|
56
57
|
* @param {string} field The field.
|
|
57
|
-
* @returns {
|
|
58
|
+
* @returns {any} The cell value.
|
|
58
59
|
* @deprecated Use `params.row` to directly access the fields you want instead.
|
|
59
60
|
*/
|
|
60
|
-
getValue: (id: GridRowId, field: string) =>
|
|
61
|
+
getValue: (id: GridRowId, field: string) => any;
|
|
62
|
+
}
|
|
63
|
+
export interface FocusElement {
|
|
64
|
+
focus(): void;
|
|
61
65
|
}
|
|
62
66
|
/**
|
|
63
67
|
* GridCellParams containing api.
|
|
64
68
|
*/
|
|
65
|
-
export interface GridRenderCellParams<V = any, R = any, F = V> extends GridCellParams<V, R, F> {
|
|
69
|
+
export interface GridRenderCellParams<V = any, R extends GridValidRowModel = any, F = V> extends GridCellParams<V, R, F> {
|
|
66
70
|
/**
|
|
67
71
|
* GridApi that let you manipulate the grid.
|
|
68
72
|
* @deprecated Use the `apiRef` returned by `useGridApiContext` or `useGridApiRef` (only available in `@mui/x-data-grid-pro`)
|
|
69
73
|
*/
|
|
70
74
|
api: any;
|
|
75
|
+
/**
|
|
76
|
+
* A ref allowing to set imperative focus.
|
|
77
|
+
* It can be passed to the element that should receive focus.
|
|
78
|
+
* @ignore - do not document.
|
|
79
|
+
*/
|
|
80
|
+
focusElementRef?: React.Ref<FocusElement>;
|
|
71
81
|
}
|
|
72
82
|
/**
|
|
73
83
|
* GridEditCellProps containing api.
|
|
74
84
|
*/
|
|
75
|
-
export interface GridRenderEditCellParams extends GridEditCellProps {
|
|
85
|
+
export interface GridRenderEditCellParams<V = any, R extends GridValidRowModel = any, F = V> extends GridCellParams<V, R, F>, GridEditCellProps<V> {
|
|
76
86
|
/**
|
|
77
87
|
* GridApi that let you manipulate the grid.
|
|
78
88
|
* @deprecated Use the `apiRef` returned by `useGridApiContext` or `useGridApiRef` (only available in `@mui/x-data-grid-pro`)
|
|
@@ -92,24 +102,24 @@ export interface GridValueGetterParams<V = any, R = any> extends Omit<GridCellPa
|
|
|
92
102
|
/**
|
|
93
103
|
* @deprecated Use `GridValueGetterParams` instead.
|
|
94
104
|
*/
|
|
95
|
-
export declare type GridValueGetterFullParams<V = any, R = any> = GridValueGetterParams<V, R>;
|
|
105
|
+
export declare type GridValueGetterFullParams<V = any, R extends GridValidRowModel = any> = GridValueGetterParams<V, R>;
|
|
96
106
|
/**
|
|
97
107
|
* Object passed as parameter in the column [[GridColDef]] value setter callback.
|
|
98
108
|
*/
|
|
99
|
-
export interface GridValueSetterParams {
|
|
109
|
+
export interface GridValueSetterParams<R extends GridValidRowModel = any, V = any> {
|
|
100
110
|
/**
|
|
101
111
|
* The new cell value.
|
|
102
112
|
*/
|
|
103
|
-
value:
|
|
113
|
+
value: V;
|
|
104
114
|
/**
|
|
105
115
|
* The row that is being edited.
|
|
106
116
|
*/
|
|
107
|
-
row:
|
|
117
|
+
row: R;
|
|
108
118
|
}
|
|
109
119
|
/**
|
|
110
120
|
* Object passed as parameter in the column [[GridColDef]] value formatter callback.
|
|
111
121
|
*/
|
|
112
|
-
export interface GridValueFormatterParams {
|
|
122
|
+
export interface GridValueFormatterParams<V = any> {
|
|
113
123
|
/**
|
|
114
124
|
* The grid row id.
|
|
115
125
|
* It is not available when the value formatter is called by the filter panel.
|
|
@@ -122,7 +132,7 @@ export interface GridValueFormatterParams {
|
|
|
122
132
|
/**
|
|
123
133
|
* The cell value, if the column has valueGetter it is the value returned by it.
|
|
124
134
|
*/
|
|
125
|
-
value:
|
|
135
|
+
value: V;
|
|
126
136
|
/**
|
|
127
137
|
* GridApi that let you manipulate the grid.
|
|
128
138
|
* @deprecated Use the `apiRef` returned by `useGridApiContext` or `useGridApiRef` (only available in `@mui/x-data-grid-pro`)
|
|
@@ -145,4 +155,13 @@ export interface GridPreProcessEditCellProps {
|
|
|
145
155
|
* The edit cell props.
|
|
146
156
|
*/
|
|
147
157
|
props: GridEditCellProps;
|
|
158
|
+
/**
|
|
159
|
+
* Whether the new value is different from the stored value or not.
|
|
160
|
+
*/
|
|
161
|
+
hasChanged?: boolean;
|
|
162
|
+
/**
|
|
163
|
+
* Object containing the props of the other fields.
|
|
164
|
+
* Only available for row editing and when using the new editing API.
|
|
165
|
+
*/
|
|
166
|
+
otherFieldsProps?: Record<string, GridEditCellProps>;
|
|
148
167
|
}
|
|
@@ -1,8 +1,9 @@
|
|
|
1
1
|
import type { GridStateColDef } from '../colDef/gridColDef';
|
|
2
|
+
import { GridValidRowModel } from '../gridRows';
|
|
2
3
|
/**
|
|
3
4
|
* Object passed as parameter in the column [[GridColDef]] header renderer.
|
|
4
5
|
*/
|
|
5
|
-
export interface GridColumnHeaderParams {
|
|
6
|
+
export interface GridColumnHeaderParams<V = any, R extends GridValidRowModel = GridValidRowModel, F = V> {
|
|
6
7
|
/**
|
|
7
8
|
* The column field of the column that triggered the event
|
|
8
9
|
*/
|
|
@@ -10,5 +11,5 @@ export interface GridColumnHeaderParams {
|
|
|
10
11
|
/**
|
|
11
12
|
* The column of the current header component.
|
|
12
13
|
*/
|
|
13
|
-
colDef: GridStateColDef
|
|
14
|
+
colDef: GridStateColDef<R, V, F>;
|
|
14
15
|
}
|
|
@@ -1,15 +1,30 @@
|
|
|
1
|
-
import { GridCellValue } from '../gridCell';
|
|
2
1
|
import { GridEditCellProps } from '../gridEditRowModel';
|
|
3
2
|
import { GridRowId } from '../gridRows';
|
|
3
|
+
import { GridCellParams } from './gridCellParams';
|
|
4
4
|
export interface GridEditCellPropsParams {
|
|
5
5
|
id: GridRowId;
|
|
6
6
|
field: string;
|
|
7
7
|
props: GridEditCellProps;
|
|
8
8
|
}
|
|
9
|
+
/**
|
|
10
|
+
* Params passed to `apiRef.current.setEditCellValue`.
|
|
11
|
+
*/
|
|
9
12
|
export interface GridEditCellValueParams {
|
|
13
|
+
/**
|
|
14
|
+
* The row id.
|
|
15
|
+
*/
|
|
10
16
|
id: GridRowId;
|
|
17
|
+
/**
|
|
18
|
+
* The field.
|
|
19
|
+
*/
|
|
11
20
|
field: string;
|
|
12
|
-
|
|
21
|
+
/**
|
|
22
|
+
* The new value for the cell.
|
|
23
|
+
*/
|
|
24
|
+
value: any;
|
|
25
|
+
/**
|
|
26
|
+
* The debounce time in milliseconds.
|
|
27
|
+
*/
|
|
13
28
|
debounceMs?: number;
|
|
14
29
|
}
|
|
15
30
|
export interface GridCommitCellChangeParams {
|
|
@@ -19,5 +34,39 @@ export interface GridCommitCellChangeParams {
|
|
|
19
34
|
export interface GridCellEditCommitParams {
|
|
20
35
|
id: GridRowId;
|
|
21
36
|
field: string;
|
|
22
|
-
value:
|
|
37
|
+
value: any;
|
|
23
38
|
}
|
|
39
|
+
declare enum GridCellEditStartReasons {
|
|
40
|
+
enterKeyDown = "enterKeyDown",
|
|
41
|
+
cellDoubleClick = "cellDoubleClick",
|
|
42
|
+
printableKeyDown = "printableKeyDown",
|
|
43
|
+
deleteKeyDown = "deleteKeyDown"
|
|
44
|
+
}
|
|
45
|
+
/**
|
|
46
|
+
* Params passed to the `cellEditStart` event.
|
|
47
|
+
*/
|
|
48
|
+
export interface GridCellEditStartParams<V = any, R = any, F = V> extends GridCellParams<V, R, F> {
|
|
49
|
+
/**
|
|
50
|
+
* The reason for this event to be triggered.
|
|
51
|
+
* Only applied if `props.experimentalFeatures.newEditingApi: true`.
|
|
52
|
+
*/
|
|
53
|
+
reason?: GridCellEditStartReasons;
|
|
54
|
+
}
|
|
55
|
+
declare enum GridCellEditStopReasons {
|
|
56
|
+
cellFocusOut = "cellFocusOut",
|
|
57
|
+
escapeKeyDown = "escapeKeyDown",
|
|
58
|
+
enterKeyDown = "enterKeyDown",
|
|
59
|
+
tabKeyDown = "tabKeyDown",
|
|
60
|
+
shiftTabKeyDown = "shiftTabKeyDown"
|
|
61
|
+
}
|
|
62
|
+
/**
|
|
63
|
+
* Params passed to the `cellEditStop event.
|
|
64
|
+
*/
|
|
65
|
+
export interface GridCellEditStopParams<V = any, R = any, F = V> extends GridCellParams<V, R, F> {
|
|
66
|
+
/**
|
|
67
|
+
* The reason for this event to be triggered.
|
|
68
|
+
* Only available if `props.experimentalFeatures.newEditingApi: true`.
|
|
69
|
+
*/
|
|
70
|
+
reason?: GridCellEditStopReasons;
|
|
71
|
+
}
|
|
72
|
+
export { GridCellEditStartReasons, GridCellEditStopReasons };
|
|
@@ -1 +1,34 @@
|
|
|
1
|
-
|
|
1
|
+
// TODO v6 - remove
|
|
2
|
+
|
|
3
|
+
/**
|
|
4
|
+
* Params passed to `apiRef.current.setEditCellValue`.
|
|
5
|
+
*/
|
|
6
|
+
// TODO v6 - remove
|
|
7
|
+
// TODO v6 - remove
|
|
8
|
+
var GridCellEditStartReasons;
|
|
9
|
+
/**
|
|
10
|
+
* Params passed to the `cellEditStart` event.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
(function (GridCellEditStartReasons) {
|
|
14
|
+
GridCellEditStartReasons["enterKeyDown"] = "enterKeyDown";
|
|
15
|
+
GridCellEditStartReasons["cellDoubleClick"] = "cellDoubleClick";
|
|
16
|
+
GridCellEditStartReasons["printableKeyDown"] = "printableKeyDown";
|
|
17
|
+
GridCellEditStartReasons["deleteKeyDown"] = "deleteKeyDown";
|
|
18
|
+
})(GridCellEditStartReasons || (GridCellEditStartReasons = {}));
|
|
19
|
+
|
|
20
|
+
var GridCellEditStopReasons;
|
|
21
|
+
/**
|
|
22
|
+
* Params passed to the `cellEditStop event.
|
|
23
|
+
*/
|
|
24
|
+
|
|
25
|
+
(function (GridCellEditStopReasons) {
|
|
26
|
+
GridCellEditStopReasons["cellFocusOut"] = "cellFocusOut";
|
|
27
|
+
GridCellEditStopReasons["escapeKeyDown"] = "escapeKeyDown";
|
|
28
|
+
GridCellEditStopReasons["enterKeyDown"] = "enterKeyDown";
|
|
29
|
+
GridCellEditStopReasons["tabKeyDown"] = "tabKeyDown";
|
|
30
|
+
GridCellEditStopReasons["shiftTabKeyDown"] = "shiftTabKeyDown";
|
|
31
|
+
})(GridCellEditStopReasons || (GridCellEditStopReasons = {}));
|
|
32
|
+
|
|
33
|
+
// https://github.com/mui/mui-x/pull/3738#discussion_r798504277
|
|
34
|
+
export { GridCellEditStartReasons, GridCellEditStopReasons };
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export {};
|
|
@@ -1,10 +1,9 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { GridRowEntry, GridRowId, GridRowModel } from '../gridRows';
|
|
1
|
+
import { GridValidRowModel, GridRowEntry, GridRowId } from '../gridRows';
|
|
3
2
|
import type { GridColumns } from '../colDef/gridColDef';
|
|
4
3
|
/**
|
|
5
4
|
* Object passed as parameter in the row callbacks.
|
|
6
5
|
*/
|
|
7
|
-
export interface GridRowParams<R extends
|
|
6
|
+
export interface GridRowParams<R extends GridValidRowModel = any> {
|
|
8
7
|
/**
|
|
9
8
|
* The grid row id.
|
|
10
9
|
*/
|
|
@@ -21,10 +20,10 @@ export interface GridRowParams<R extends GridRowModel = GridRowModel> {
|
|
|
21
20
|
* Get the cell value of a row and field.
|
|
22
21
|
* @param {GridRowId} id The row id.
|
|
23
22
|
* @param {string} field The field.
|
|
24
|
-
* @returns {
|
|
23
|
+
* @returns {any} The cell value.
|
|
25
24
|
* @deprecated Use `params.row` to directly access the fields you want instead.
|
|
26
25
|
*/
|
|
27
|
-
getValue: (id: GridRowId, field: string) =>
|
|
26
|
+
getValue: (id: GridRowId, field: string) => any;
|
|
28
27
|
}
|
|
29
28
|
interface GridRowVisibilityParams {
|
|
30
29
|
/**
|
|
@@ -35,11 +34,16 @@ interface GridRowVisibilityParams {
|
|
|
35
34
|
* Whether this row is the last visible or not.
|
|
36
35
|
*/
|
|
37
36
|
isLastVisible: boolean;
|
|
37
|
+
/**
|
|
38
|
+
* Index of the row in the current page.
|
|
39
|
+
* If the pagination is disabled, it will be the index relative to all filtered rows.
|
|
40
|
+
*/
|
|
41
|
+
indexRelativeToCurrentPage: number;
|
|
38
42
|
}
|
|
39
43
|
/**
|
|
40
44
|
* Object passed as parameter in the row `getRowClassName` callback prop.
|
|
41
45
|
*/
|
|
42
|
-
export interface GridRowClassNameParams extends GridRowParams
|
|
46
|
+
export interface GridRowClassNameParams<R extends GridValidRowModel = any> extends GridRowParams<R>, GridRowVisibilityParams {
|
|
43
47
|
}
|
|
44
48
|
/**
|
|
45
49
|
* Object passed as parameter in the row `getRowHeight` callback prop.
|
|
@@ -54,6 +58,46 @@ export interface GridRowHeightParams extends GridRowEntry {
|
|
|
54
58
|
* The getRowHeight return value.
|
|
55
59
|
*/
|
|
56
60
|
export declare type GridRowHeightReturnValue = number | null | undefined;
|
|
61
|
+
declare enum GridRowEditStartReasons {
|
|
62
|
+
enterKeyDown = "enterKeyDown",
|
|
63
|
+
cellDoubleClick = "cellDoubleClick",
|
|
64
|
+
printableKeyDown = "printableKeyDown",
|
|
65
|
+
deleteKeyDown = "deleteKeyDown"
|
|
66
|
+
}
|
|
67
|
+
/**
|
|
68
|
+
* Params passed to the `rowEditStart` event.
|
|
69
|
+
*/
|
|
70
|
+
export interface GridRowEditStartParams<R extends GridValidRowModel = any> extends GridRowParams<R> {
|
|
71
|
+
/**
|
|
72
|
+
* Which field triggered this event.
|
|
73
|
+
* Only applied if `props.experimentalFeatures.newEditingApi: true`.
|
|
74
|
+
*/
|
|
75
|
+
field?: string;
|
|
76
|
+
/**
|
|
77
|
+
* The reason for this event to be triggered.
|
|
78
|
+
* Only applied if `props.experimentalFeatures.newEditingApi: true`.
|
|
79
|
+
*/
|
|
80
|
+
reason?: GridRowEditStartReasons;
|
|
81
|
+
}
|
|
82
|
+
declare enum GridRowEditStopReasons {
|
|
83
|
+
rowFocusOut = "rowFocusOut",
|
|
84
|
+
escapeKeyDown = "escapeKeyDown",
|
|
85
|
+
enterKeyDown = "enterKeyDown",
|
|
86
|
+
tabKeyDown = "tabKeyDown",
|
|
87
|
+
shiftTabKeyDown = "shiftTabKeyDown"
|
|
88
|
+
}
|
|
89
|
+
export interface GridRowEditStopParams<R extends GridValidRowModel = any> extends GridRowParams<R> {
|
|
90
|
+
/**
|
|
91
|
+
* Which field triggered this event.
|
|
92
|
+
* Only applied if `props.experimentalFeatures.newEditingApi: true`.
|
|
93
|
+
*/
|
|
94
|
+
field?: string;
|
|
95
|
+
/**
|
|
96
|
+
* The reason for this event to be triggered.
|
|
97
|
+
* Only applied if `props.experimentalFeatures.newEditingApi: true`.
|
|
98
|
+
*/
|
|
99
|
+
reason?: GridRowEditStopReasons;
|
|
100
|
+
}
|
|
57
101
|
/**
|
|
58
102
|
* Object passed as parameter in the row `getRowSpacing` callback prop.
|
|
59
103
|
*/
|
|
@@ -66,4 +110,4 @@ export interface GridRowSpacing {
|
|
|
66
110
|
top?: number;
|
|
67
111
|
bottom?: number;
|
|
68
112
|
}
|
|
69
|
-
export {};
|
|
113
|
+
export { GridRowEditStartReasons, GridRowEditStopReasons };
|
|
@@ -1 +1,39 @@
|
|
|
1
|
-
|
|
1
|
+
/**
|
|
2
|
+
* Object passed as parameter in the row callbacks.
|
|
3
|
+
*/
|
|
4
|
+
|
|
5
|
+
/**
|
|
6
|
+
* Object passed as parameter in the row `getRowClassName` callback prop.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
/**
|
|
10
|
+
* Object passed as parameter in the row `getRowHeight` callback prop.
|
|
11
|
+
*/
|
|
12
|
+
|
|
13
|
+
/**
|
|
14
|
+
* The getRowHeight return value.
|
|
15
|
+
*/
|
|
16
|
+
var GridRowEditStartReasons;
|
|
17
|
+
/**
|
|
18
|
+
* Params passed to the `rowEditStart` event.
|
|
19
|
+
*/
|
|
20
|
+
|
|
21
|
+
(function (GridRowEditStartReasons) {
|
|
22
|
+
GridRowEditStartReasons["enterKeyDown"] = "enterKeyDown";
|
|
23
|
+
GridRowEditStartReasons["cellDoubleClick"] = "cellDoubleClick";
|
|
24
|
+
GridRowEditStartReasons["printableKeyDown"] = "printableKeyDown";
|
|
25
|
+
GridRowEditStartReasons["deleteKeyDown"] = "deleteKeyDown";
|
|
26
|
+
})(GridRowEditStartReasons || (GridRowEditStartReasons = {}));
|
|
27
|
+
|
|
28
|
+
var GridRowEditStopReasons;
|
|
29
|
+
|
|
30
|
+
(function (GridRowEditStopReasons) {
|
|
31
|
+
GridRowEditStopReasons["rowFocusOut"] = "rowFocusOut";
|
|
32
|
+
GridRowEditStopReasons["escapeKeyDown"] = "escapeKeyDown";
|
|
33
|
+
GridRowEditStopReasons["enterKeyDown"] = "enterKeyDown";
|
|
34
|
+
GridRowEditStopReasons["tabKeyDown"] = "tabKeyDown";
|
|
35
|
+
GridRowEditStopReasons["shiftTabKeyDown"] = "shiftTabKeyDown";
|
|
36
|
+
})(GridRowEditStopReasons || (GridRowEditStopReasons = {}));
|
|
37
|
+
|
|
38
|
+
// https://github.com/mui/mui-x/pull/3738#discussion_r798504277
|
|
39
|
+
export { GridRowEditStartReasons, GridRowEditStopReasons };
|
|
@@ -1,8 +1,8 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import { GridRowId, GridValidRowModel } from '../gridRows';
|
|
2
2
|
/**
|
|
3
3
|
* Object passed as parameter of the valueOptions function for singleSelect column.
|
|
4
4
|
*/
|
|
5
|
-
export interface GridValueOptionsParams {
|
|
5
|
+
export interface GridValueOptionsParams<R extends GridValidRowModel = any> {
|
|
6
6
|
/**
|
|
7
7
|
* The field of the column to which options will be provided
|
|
8
8
|
*/
|
|
@@ -14,5 +14,5 @@ export interface GridValueOptionsParams {
|
|
|
14
14
|
/**
|
|
15
15
|
* The row model of the row that the current cell belongs to.
|
|
16
16
|
*/
|
|
17
|
-
row?:
|
|
17
|
+
row?: R;
|
|
18
18
|
}
|
package/models/params/index.d.ts
CHANGED
package/models/params/index.js
CHANGED
|
@@ -9,4 +9,5 @@ export * from './gridRowSelectionCheckboxParams';
|
|
|
9
9
|
export * from './gridHeaderSelectionCheckboxParams';
|
|
10
10
|
export * from './gridValueOptionsParams';
|
|
11
11
|
export * from './gridCellParams';
|
|
12
|
-
export * from './gridSortModelParams';
|
|
12
|
+
export * from './gridSortModelParams';
|
|
13
|
+
export * from './gridPreferencePanelParams';
|
|
@@ -8,7 +8,7 @@ import { GridFeatureMode } from '../gridFeatureMode';
|
|
|
8
8
|
import { Logger } from '../logger';
|
|
9
9
|
import { GridSortDirection, GridSortModel } from '../gridSortModel';
|
|
10
10
|
import { GridSlotsComponent } from '../gridSlotsComponent';
|
|
11
|
-
import { GridRowIdGetter, GridRowsProp } from '../gridRows';
|
|
11
|
+
import { GridRowIdGetter, GridRowsProp, GridValidRowModel } from '../gridRows';
|
|
12
12
|
import { GridEventListener, GridEvents } from '../events';
|
|
13
13
|
import { GridCallbackDetails, GridLocaleText } from '../api';
|
|
14
14
|
import { GridApiCommunity } from '../api/gridApiCommunity';
|
|
@@ -27,6 +27,10 @@ export interface GridExperimentalFeatures {
|
|
|
27
27
|
* Will be part of the premium-plan when fully ready.
|
|
28
28
|
*/
|
|
29
29
|
preventCommitWhileValidating: boolean;
|
|
30
|
+
/**
|
|
31
|
+
* Enables the new API for cell editing and row editing.
|
|
32
|
+
*/
|
|
33
|
+
newEditingApi: boolean;
|
|
30
34
|
/**
|
|
31
35
|
* Emits a warning if the cell receives focus without also syncing the focus state.
|
|
32
36
|
* Only works if NODE_ENV=test.
|
|
@@ -36,13 +40,13 @@ export interface GridExperimentalFeatures {
|
|
|
36
40
|
/**
|
|
37
41
|
* The props users can give to the `DataGrid` component.
|
|
38
42
|
*/
|
|
39
|
-
export declare type DataGridProps = Omit<Partial<DataGridPropsWithDefaultValues> & DataGridPropsWithComplexDefaultValueBeforeProcessing & DataGridPropsWithoutDefaultValue
|
|
43
|
+
export declare type DataGridProps<R extends GridValidRowModel = any> = Omit<Partial<DataGridPropsWithDefaultValues> & DataGridPropsWithComplexDefaultValueBeforeProcessing & DataGridPropsWithoutDefaultValue<R>, DataGridForcedPropsKey> & {
|
|
40
44
|
pagination?: true;
|
|
41
45
|
};
|
|
42
46
|
/**
|
|
43
47
|
* The props of the `DataGrid` component after the pre-processing phase.
|
|
44
48
|
*/
|
|
45
|
-
export interface DataGridProcessedProps extends DataGridPropsWithDefaultValues, DataGridPropsWithComplexDefaultValueAfterProcessing, DataGridPropsWithoutDefaultValue {
|
|
49
|
+
export interface DataGridProcessedProps<R extends GridValidRowModel = any> extends DataGridPropsWithDefaultValues, DataGridPropsWithComplexDefaultValueAfterProcessing, DataGridPropsWithoutDefaultValue<R> {
|
|
46
50
|
}
|
|
47
51
|
/**
|
|
48
52
|
* The props of the `DataGrid` component after the pre-processing phase that the user should not be able to override.
|
|
@@ -289,7 +293,7 @@ export interface DataGridPropsWithDefaultValues {
|
|
|
289
293
|
/**
|
|
290
294
|
* The `DataGrid` props with no default value.
|
|
291
295
|
*/
|
|
292
|
-
export interface DataGridPropsWithoutDefaultValue extends CommonProps {
|
|
296
|
+
export interface DataGridPropsWithoutDefaultValue<R extends GridValidRowModel = any> extends CommonProps {
|
|
293
297
|
/**
|
|
294
298
|
* The ref object that allows grid manipulation. Can be instantiated with [[useGridApiRef()]].
|
|
295
299
|
* TODO: Remove `@internal` when opening `apiRef` to Community plan
|
|
@@ -324,13 +328,13 @@ export interface DataGridPropsWithoutDefaultValue extends CommonProps {
|
|
|
324
328
|
* @param {GridCellParams} params With all properties from [[GridCellParams]].
|
|
325
329
|
* @returns {string} The CSS class to apply to the cell.
|
|
326
330
|
*/
|
|
327
|
-
getCellClassName?: (params: GridCellParams) => string;
|
|
331
|
+
getCellClassName?: (params: GridCellParams<any, R>) => string;
|
|
328
332
|
/**
|
|
329
333
|
* Function that applies CSS classes dynamically on rows.
|
|
330
334
|
* @param {GridRowClassNameParams} params With all properties from [[GridRowClassNameParams]].
|
|
331
335
|
* @returns {string} The CSS class to apply to the row.
|
|
332
336
|
*/
|
|
333
|
-
getRowClassName?: (params: GridRowClassNameParams) => string;
|
|
337
|
+
getRowClassName?: (params: GridRowClassNameParams<R>) => string;
|
|
334
338
|
/**
|
|
335
339
|
* Function that sets the row height per row.
|
|
336
340
|
* @param {GridRowHeightParams} params With all properties from [[GridRowHeightParams]].
|
|
@@ -348,25 +352,25 @@ export interface DataGridPropsWithoutDefaultValue extends CommonProps {
|
|
|
348
352
|
* @param {GridRowParams} params With all properties from [[GridRowParams]].
|
|
349
353
|
* @returns {JSX.Element} The row detail element.
|
|
350
354
|
*/
|
|
351
|
-
getDetailPanelContent?: (params: GridRowParams) => React.ReactNode;
|
|
355
|
+
getDetailPanelContent?: (params: GridRowParams<R>) => React.ReactNode;
|
|
352
356
|
/**
|
|
353
357
|
* Callback fired when a cell is rendered, returns true if the cell is editable.
|
|
354
358
|
* @param {GridCellParams} params With all properties from [[GridCellParams]].
|
|
355
359
|
* @returns {boolean} A boolean indicating if the cell is editable.
|
|
356
360
|
*/
|
|
357
|
-
isCellEditable?: (params: GridCellParams) => boolean;
|
|
361
|
+
isCellEditable?: (params: GridCellParams<any, R>) => boolean;
|
|
358
362
|
/**
|
|
359
363
|
* Determines if a row can be selected.
|
|
360
364
|
* @param {GridRowParams} params With all properties from [[GridRowParams]].
|
|
361
365
|
* @returns {boolean} A boolean indicating if the cell is selectable.
|
|
362
366
|
*/
|
|
363
|
-
isRowSelectable?: (params: GridRowParams) => boolean;
|
|
367
|
+
isRowSelectable?: (params: GridRowParams<R>) => boolean;
|
|
364
368
|
/**
|
|
365
369
|
* Callback fired when the edit cell value changes.
|
|
366
370
|
* @param {GridEditCellPropsParams} params With all properties from [[GridEditCellPropsParams]].
|
|
367
371
|
* @param {MuiEvent<React.SyntheticEvent>} event The event that caused this prop to be called.
|
|
368
372
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
369
|
-
* @deprecated use `preProcessEditCellProps` from the [`GridColDef`](/api/data-grid/grid-col-def/)
|
|
373
|
+
* @deprecated use `preProcessEditCellProps` from the [`GridColDef`](/x/api/data-grid/grid-col-def/)
|
|
370
374
|
*/
|
|
371
375
|
onEditCellPropsChange?: GridEventListener<GridEvents.editCellPropsChange>;
|
|
372
376
|
/**
|
|
@@ -552,6 +556,20 @@ export interface DataGridPropsWithoutDefaultValue extends CommonProps {
|
|
|
552
556
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
553
557
|
*/
|
|
554
558
|
onPageSizeChange?: (pageSize: number, details: GridCallbackDetails) => void;
|
|
559
|
+
/**
|
|
560
|
+
* Callback fired when the preferences panel is closed.
|
|
561
|
+
* @param {GridPreferencePanelParams} params With all properties from [[GridPreferencePanelParams]].
|
|
562
|
+
* @param {MuiEvent<{}>} event The event object.
|
|
563
|
+
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
564
|
+
*/
|
|
565
|
+
onPreferencePanelClose?: GridEventListener<GridEvents.preferencePanelClose>;
|
|
566
|
+
/**
|
|
567
|
+
* Callback fired when the preferences panel is opened.
|
|
568
|
+
* @param {GridPreferencePanelParams} params With all properties from [[GridPreferencePanelParams]].
|
|
569
|
+
* @param {MuiEvent<{}>} event The event object.
|
|
570
|
+
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
571
|
+
*/
|
|
572
|
+
onPreferencePanelOpen?: GridEventListener<GridEvents.preferencePanelOpen>;
|
|
555
573
|
/**
|
|
556
574
|
* Set the edit rows model of the grid.
|
|
557
575
|
*/
|
|
@@ -614,7 +632,7 @@ export interface DataGridPropsWithoutDefaultValue extends CommonProps {
|
|
|
614
632
|
/**
|
|
615
633
|
* Set of columns of type [[GridColumns]].
|
|
616
634
|
*/
|
|
617
|
-
columns: GridColumns
|
|
635
|
+
columns: GridColumns<R>;
|
|
618
636
|
/**
|
|
619
637
|
* An error that will turn the grid into its error state and display the error component.
|
|
620
638
|
*/
|
|
@@ -622,7 +640,7 @@ export interface DataGridPropsWithoutDefaultValue extends CommonProps {
|
|
|
622
640
|
/**
|
|
623
641
|
* Return the id of a given [[GridRowModel]].
|
|
624
642
|
*/
|
|
625
|
-
getRowId?: GridRowIdGetter
|
|
643
|
+
getRowId?: GridRowIdGetter<R>;
|
|
626
644
|
/**
|
|
627
645
|
* If `true`, a loading overlay is displayed.
|
|
628
646
|
*/
|
|
@@ -634,7 +652,7 @@ export interface DataGridPropsWithoutDefaultValue extends CommonProps {
|
|
|
634
652
|
/**
|
|
635
653
|
* Set of rows of type [[GridRowsProp]].
|
|
636
654
|
*/
|
|
637
|
-
rows: GridRowsProp
|
|
655
|
+
rows: GridRowsProp<R>;
|
|
638
656
|
/**
|
|
639
657
|
* The initial state of the DataGrid.
|
|
640
658
|
* The data in it will be set in the state on initialization but will not be controlled.
|
|
@@ -654,4 +672,18 @@ export interface DataGridPropsWithoutDefaultValue extends CommonProps {
|
|
|
654
672
|
* For each feature, if the flag is not explicitly set to `true`, the feature will be fully disabled and any property / method call will not have any effect.
|
|
655
673
|
*/
|
|
656
674
|
experimentalFeatures?: Partial<GridExperimentalFeatures>;
|
|
675
|
+
/**
|
|
676
|
+
* Callback called before updating a row with new values in the row and cell editing.
|
|
677
|
+
* Only applied if `props.experimentalFeatures.newEditingApi: true`.
|
|
678
|
+
* @template R
|
|
679
|
+
* @param {R} newRow Row object with the new values.
|
|
680
|
+
* @param {R} oldRow Row object with the old values.
|
|
681
|
+
* @returns {Promise<R> | R} The final values to update the row.
|
|
682
|
+
*/
|
|
683
|
+
processRowUpdate?: (newRow: R, oldRow: R) => Promise<R> | R;
|
|
684
|
+
/**
|
|
685
|
+
* Callback called when `processRowUpdate` throws an error or rejects.
|
|
686
|
+
* @param {any} error The error thrown.
|
|
687
|
+
*/
|
|
688
|
+
onProcessRowUpdateError?: (error: any) => void;
|
|
657
689
|
}
|
|
@@ -183,6 +183,7 @@ DataGridRaw.propTypes = {
|
|
|
183
183
|
* For each feature, if the flag is not explicitly set to `true`, the feature will be fully disabled and any property / method call will not have any effect.
|
|
184
184
|
*/
|
|
185
185
|
experimentalFeatures: PropTypes.shape({
|
|
186
|
+
newEditingApi: PropTypes.bool,
|
|
186
187
|
preventCommitWhileValidating: PropTypes.bool,
|
|
187
188
|
warnIfFocusStateIsNotSynced: PropTypes.bool
|
|
188
189
|
}),
|
|
@@ -457,7 +458,7 @@ DataGridRaw.propTypes = {
|
|
|
457
458
|
* @param {GridEditCellPropsParams} params With all properties from [[GridEditCellPropsParams]].
|
|
458
459
|
* @param {MuiEvent<React.SyntheticEvent>} event The event that caused this prop to be called.
|
|
459
460
|
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
460
|
-
* @deprecated use `preProcessEditCellProps` from the [`GridColDef`](/api/data-grid/grid-col-def/)
|
|
461
|
+
* @deprecated use `preProcessEditCellProps` from the [`GridColDef`](/x/api/data-grid/grid-col-def/)
|
|
461
462
|
*/
|
|
462
463
|
onEditCellPropsChange: PropTypes.func,
|
|
463
464
|
|
|
@@ -497,6 +498,28 @@ DataGridRaw.propTypes = {
|
|
|
497
498
|
*/
|
|
498
499
|
onPageSizeChange: PropTypes.func,
|
|
499
500
|
|
|
501
|
+
/**
|
|
502
|
+
* Callback fired when the preferences panel is closed.
|
|
503
|
+
* @param {GridPreferencePanelParams} params With all properties from [[GridPreferencePanelParams]].
|
|
504
|
+
* @param {MuiEvent<{}>} event The event object.
|
|
505
|
+
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
506
|
+
*/
|
|
507
|
+
onPreferencePanelClose: PropTypes.func,
|
|
508
|
+
|
|
509
|
+
/**
|
|
510
|
+
* Callback fired when the preferences panel is opened.
|
|
511
|
+
* @param {GridPreferencePanelParams} params With all properties from [[GridPreferencePanelParams]].
|
|
512
|
+
* @param {MuiEvent<{}>} event The event object.
|
|
513
|
+
* @param {GridCallbackDetails} details Additional details for this callback.
|
|
514
|
+
*/
|
|
515
|
+
onPreferencePanelOpen: PropTypes.func,
|
|
516
|
+
|
|
517
|
+
/**
|
|
518
|
+
* Callback called when `processRowUpdate` throws an error or rejects.
|
|
519
|
+
* @param {any} error The error thrown.
|
|
520
|
+
*/
|
|
521
|
+
onProcessRowUpdateError: PropTypes.func,
|
|
522
|
+
|
|
500
523
|
/**
|
|
501
524
|
* Callback fired when the grid is resized.
|
|
502
525
|
* @param {ElementSize} containerSize With all properties from [[ElementSize]].
|
|
@@ -600,6 +623,16 @@ DataGridRaw.propTypes = {
|
|
|
600
623
|
*/
|
|
601
624
|
paginationMode: PropTypes.oneOf(['client', 'server']),
|
|
602
625
|
|
|
626
|
+
/**
|
|
627
|
+
* Callback called before updating a row with new values in the row and cell editing.
|
|
628
|
+
* Only applied if `props.experimentalFeatures.newEditingApi: true`.
|
|
629
|
+
* @template R
|
|
630
|
+
* @param {R} newRow Row object with the new values.
|
|
631
|
+
* @param {R} oldRow Row object with the old values.
|
|
632
|
+
* @returns {Promise<R> | R} The final values to update the row.
|
|
633
|
+
*/
|
|
634
|
+
processRowUpdate: PropTypes.func,
|
|
635
|
+
|
|
603
636
|
/**
|
|
604
637
|
* Number of extra rows to be rendered before/after the visible slice.
|
|
605
638
|
* @default 3
|
|
@@ -621,7 +654,7 @@ DataGridRaw.propTypes = {
|
|
|
621
654
|
/**
|
|
622
655
|
* Set of rows of type [[GridRowsProp]].
|
|
623
656
|
*/
|
|
624
|
-
rows: PropTypes.
|
|
657
|
+
rows: PropTypes.array.isRequired,
|
|
625
658
|
|
|
626
659
|
/**
|
|
627
660
|
* Sets the type of space between rows added by `getRowSpacing`.
|