@mui/x-data-grid 5.6.0 → 5.8.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 +187 -0
- package/DataGrid/DataGrid.d.ts +8 -3
- package/DataGrid/DataGrid.js +52 -4
- package/DataGrid/useDataGridComponent.js +27 -19
- package/DataGrid/useDataGridProps.d.ts +2 -1
- package/DataGrid/useDataGridProps.js +3 -2
- 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/colDef/gridDefaultColumnTypes.js +20 -0
- package/colDef/gridNumericColDef.d.ts +1 -1
- package/colDef/gridNumericOperators.d.ts +2 -2
- package/colDef/gridNumericOperators.js +1 -1
- 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/ErrorBoundary.d.ts +2 -2
- 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.js +30 -4
- package/components/base/GridErrorHandler.d.ts +8 -2
- package/components/base/GridErrorHandler.js +19 -27
- package/components/cell/GridBooleanCell.d.ts +2 -1
- package/components/cell/GridCell.d.ts +4 -4
- package/components/cell/GridCell.js +6 -4
- package/components/cell/GridEditBooleanCell.d.ts +2 -1
- package/components/cell/GridEditBooleanCell.js +1 -1
- package/components/cell/GridEditDateCell.d.ts +2 -1
- package/components/cell/GridEditDateCell.js +1 -1
- package/components/cell/GridEditInputCell.d.ts +2 -1
- package/components/cell/GridEditInputCell.js +66 -5
- package/components/cell/GridEditSingleSelectCell.d.ts +2 -1
- package/components/cell/GridEditSingleSelectCell.js +78 -5
- package/components/columnHeaders/GridColumnHeaderFilterIconButton.d.ts +12 -0
- package/components/columnHeaders/{ColumnHeaderFilterIcon.js → GridColumnHeaderFilterIconButton.js} +22 -4
- package/components/columnHeaders/GridColumnHeaderItem.js +10 -8
- package/components/columnHeaders/GridColumnHeaderTitle.d.ts +2 -2
- package/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
- package/components/columnHeaders/GridColumnHeaders.js +3 -1
- package/components/columnHeaders/index.d.ts +1 -0
- package/components/columnHeaders/index.js +1 -0
- package/components/columnSelection/GridCellCheckboxRenderer.js +2 -2
- 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 +3 -3
- 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/GridPanelWrapper.d.ts +1 -1
- package/components/panel/GridPreferencesPanel.js +4 -6
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +2 -1
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +27 -23
- package/components/panel/filterPanel/filterPanelUtils.d.ts +2 -2
- package/components/virtualization/GridVirtualScrollerRenderZone.js +4 -1
- package/constants/defaultGridSlotsComponents.js +2 -1
- package/constants/gridClasses.d.ts +19 -3
- package/constants/gridClasses.js +1 -1
- package/context/GridContextProvider.d.ts +9 -6
- package/hooks/core/index.d.ts +1 -1
- package/hooks/core/pipeProcessing/gridPipeProcessingApi.d.ts +68 -0
- package/hooks/core/{preProcessing/gridPreProcessingApi.js → pipeProcessing/gridPipeProcessingApi.js} +0 -0
- package/hooks/core/pipeProcessing/index.d.ts +3 -0
- package/hooks/core/pipeProcessing/index.js +3 -0
- package/hooks/core/pipeProcessing/useGridPipeProcessing.d.ts +27 -0
- package/hooks/core/pipeProcessing/useGridPipeProcessing.js +74 -0
- package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.d.ts +7 -0
- package/hooks/core/{preProcessing/useGridRegisterPreProcessor.js → pipeProcessing/useGridRegisterPipeProcessor.js} +6 -2
- 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.js +1 -1
- package/hooks/features/columnMenu/useGridColumnMenu.d.ts +2 -0
- package/hooks/features/columnMenu/useGridColumnMenu.js +6 -7
- package/hooks/features/columns/gridColumnsInterfaces.d.ts +6 -1
- package/hooks/features/columns/gridColumnsSelector.d.ts +11 -11
- package/hooks/features/columns/gridColumnsSelector.js +11 -10
- package/hooks/features/columns/gridColumnsUtils.d.ts +14 -6
- package/hooks/features/columns/gridColumnsUtils.js +163 -45
- package/hooks/features/columns/useGridColumns.d.ts +1 -1
- package/hooks/features/columns/useGridColumns.js +101 -55
- package/hooks/features/density/useGridDensity.d.ts +2 -0
- package/hooks/features/density/useGridDensity.js +3 -4
- package/hooks/features/dimensions/gridDimensionsApi.d.ts +5 -0
- package/hooks/features/dimensions/useGridDimensions.js +4 -3
- package/hooks/features/editRows/useGridCellEditing.new.d.ts +4 -0
- package/hooks/features/editRows/useGridCellEditing.new.js +330 -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 +118 -0
- package/hooks/features/editRows/{useGridEditing.d.ts → useGridEditing.old.d.ts} +2 -0
- package/hooks/features/editRows/{useGridEditing.js → useGridEditing.old.js} +7 -8
- package/hooks/features/editRows/useGridRowEditing.new.d.ts +4 -0
- package/hooks/features/editRows/useGridRowEditing.new.js +501 -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/export/serializers/csvSerializer.js +4 -4
- package/hooks/features/filter/gridFilterSelector.d.ts +4 -9
- package/hooks/features/filter/gridFilterSelector.js +1 -0
- package/hooks/features/filter/gridFilterState.d.ts +2 -5
- package/hooks/features/filter/useGridFilter.d.ts +1 -1
- package/hooks/features/filter/useGridFilter.js +24 -30
- package/hooks/features/focus/useGridFocus.d.ts +3 -1
- package/hooks/features/focus/useGridFocus.js +47 -12
- package/hooks/features/{keyboard → keyboardNavigation}/useGridKeyboardNavigation.d.ts +2 -5
- package/hooks/features/{keyboard → keyboardNavigation}/useGridKeyboardNavigation.js +29 -8
- package/hooks/features/pagination/gridPaginationSelector.d.ts +1 -3
- package/hooks/features/pagination/useGridPage.d.ts +1 -2
- package/hooks/features/pagination/useGridPage.js +14 -21
- package/hooks/features/pagination/useGridPageSize.d.ts +1 -2
- package/hooks/features/pagination/useGridPageSize.js +8 -29
- package/hooks/features/pagination/useGridPagination.d.ts +2 -0
- package/hooks/features/pagination/useGridPagination.js +25 -2
- package/hooks/features/preferencesPanel/gridPreferencePanelState.d.ts +5 -0
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.d.ts +3 -1
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.js +28 -16
- package/hooks/features/rows/gridRowsSelector.d.ts +1 -1
- package/hooks/features/rows/gridRowsState.d.ts +20 -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/useGridParamsApi.js +3 -10
- package/hooks/features/rows/useGridRows.d.ts +0 -3
- package/hooks/features/rows/useGridRows.js +77 -48
- package/hooks/features/rows/useGridRowsMeta.d.ts +3 -1
- package/hooks/features/rows/useGridRowsMeta.js +44 -26
- package/hooks/features/rows/useGridRowsPreProcessors.d.ts +3 -0
- package/hooks/features/rows/useGridRowsPreProcessors.js +37 -0
- package/hooks/features/scroll/useGridScroll.js +4 -13
- package/hooks/features/selection/gridSelectionSelector.d.ts +2 -4
- package/hooks/features/selection/useGridSelection.d.ts +6 -2
- package/hooks/features/selection/useGridSelection.js +103 -40
- 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 +10 -29
- package/hooks/features/statePersistence/useGridStatePersistence.js +2 -2
- package/hooks/features/virtualization/useGridVirtualScroller.d.ts +8 -3
- package/hooks/features/virtualization/useGridVirtualScroller.js +9 -7
- package/hooks/utils/useGridApi.js +10 -1
- package/hooks/utils/useGridInitializeState.d.ts +2 -1
- package/hooks/utils/useGridRootProps.d.ts +1 -1
- package/hooks/utils/useGridSelector.js +4 -4
- package/hooks/utils/useGridState.js +10 -1
- package/hooks/utils/{useCurrentPageRows.d.ts → useGridVisibleRows.d.ts} +9 -8
- package/hooks/utils/{useCurrentPageRows.js → useGridVisibleRows.js} +8 -7
- package/index.js +1 -1
- package/internals/index.d.ts +21 -24
- package/internals/index.js +14 -17
- package/legacy/DataGrid/DataGrid.js +52 -4
- package/legacy/DataGrid/useDataGridComponent.js +27 -19
- package/legacy/DataGrid/useDataGridProps.js +8 -2
- package/legacy/colDef/gridDateColDef.js +2 -2
- package/legacy/colDef/gridDefaultColumnTypes.js +21 -0
- package/legacy/colDef/gridNumericOperators.js +1 -1
- 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 +31 -4
- package/legacy/components/base/GridErrorHandler.js +16 -26
- package/legacy/components/cell/GridCell.js +6 -4
- 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 +89 -12
- package/legacy/components/columnHeaders/{ColumnHeaderFilterIcon.js → GridColumnHeaderFilterIconButton.js} +22 -4
- package/legacy/components/columnHeaders/GridColumnHeaderItem.js +10 -8
- package/legacy/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
- package/legacy/components/columnHeaders/GridColumnHeaders.js +3 -1
- package/legacy/components/columnHeaders/index.js +1 -0
- package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +2 -2
- package/legacy/components/containers/GridOverlay.js +11 -2
- package/legacy/components/containers/GridRoot.js +34 -17
- package/legacy/components/containers/GridRootStyles.js +3 -3
- package/legacy/components/menu/columnMenu/GridColumnMenu.js +1 -1
- package/legacy/components/panel/GridColumnsPanel.js +3 -3
- package/legacy/components/panel/GridPreferencesPanel.js +4 -6
- package/legacy/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +29 -26
- package/legacy/components/virtualization/GridVirtualScrollerRenderZone.js +4 -1
- package/legacy/constants/defaultGridSlotsComponents.js +2 -1
- package/legacy/constants/gridClasses.js +1 -1
- package/legacy/hooks/core/{preProcessing/gridPreProcessingApi.js → pipeProcessing/gridPipeProcessingApi.js} +0 -0
- package/legacy/hooks/core/pipeProcessing/index.js +3 -0
- package/legacy/hooks/core/pipeProcessing/useGridPipeProcessing.js +83 -0
- package/legacy/hooks/core/{preProcessing/useGridRegisterPreProcessor.js → pipeProcessing/useGridRegisterPipeProcessor.js} +6 -2
- 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 +1 -1
- package/legacy/hooks/features/columnMenu/useGridColumnMenu.js +8 -9
- package/legacy/hooks/features/columns/gridColumnsSelector.js +13 -12
- package/legacy/hooks/features/columns/gridColumnsUtils.js +165 -42
- package/legacy/hooks/features/columns/useGridColumns.js +102 -56
- package/legacy/hooks/features/density/useGridDensity.js +5 -6
- package/legacy/hooks/features/dimensions/useGridDimensions.js +4 -3
- package/legacy/hooks/features/editRows/useGridCellEditing.new.js +344 -0
- package/legacy/hooks/features/editRows/{useGridCellEditing.js → useGridCellEditing.old.js} +1 -1
- package/legacy/hooks/features/editRows/useGridEditing.new.js +152 -0
- package/legacy/hooks/features/editRows/{useGridEditing.js → useGridEditing.old.js} +9 -10
- package/legacy/hooks/features/editRows/useGridRowEditing.new.js +508 -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/export/serializers/csvSerializer.js +4 -4
- package/legacy/hooks/features/filter/gridFilterSelector.js +1 -0
- package/legacy/hooks/features/filter/useGridFilter.js +24 -30
- package/legacy/hooks/features/focus/useGridFocus.js +49 -14
- package/legacy/hooks/features/{keyboard → keyboardNavigation}/useGridKeyboardNavigation.js +29 -8
- package/legacy/hooks/features/pagination/useGridPage.js +16 -21
- package/legacy/hooks/features/pagination/useGridPageSize.js +8 -29
- package/legacy/hooks/features/pagination/useGridPagination.js +25 -2
- package/legacy/hooks/features/preferencesPanel/useGridPreferencesPanel.js +28 -16
- package/legacy/hooks/features/rows/gridRowsUtils.js +13 -0
- package/legacy/hooks/features/rows/index.js +1 -1
- package/legacy/hooks/features/rows/useGridParamsApi.js +3 -10
- package/legacy/hooks/features/rows/useGridRows.js +80 -48
- package/legacy/hooks/features/rows/useGridRowsMeta.js +46 -28
- package/legacy/hooks/features/rows/useGridRowsPreProcessors.js +36 -0
- package/legacy/hooks/features/scroll/useGridScroll.js +4 -13
- package/legacy/hooks/features/selection/useGridSelection.js +106 -43
- package/legacy/hooks/features/selection/useGridSelectionPreProcessors.js +2 -2
- package/legacy/hooks/features/sorting/useGridSorting.js +10 -29
- package/legacy/hooks/features/statePersistence/useGridStatePersistence.js +2 -2
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +9 -7
- package/legacy/hooks/utils/useGridApi.js +7 -0
- package/legacy/hooks/utils/useGridSelector.js +4 -4
- package/legacy/hooks/utils/useGridState.js +7 -0
- package/legacy/hooks/utils/{useCurrentPageRows.js → useGridVisibleRows.js} +8 -7
- package/legacy/index.js +1 -1
- package/legacy/internals/index.js +14 -17
- package/legacy/locales/arSD.js +62 -58
- package/legacy/locales/daDK.js +36 -32
- package/legacy/locales/faIR.js +26 -22
- package/legacy/locales/koKR.js +1 -1
- package/legacy/locales/plPL.js +30 -26
- package/legacy/models/colDef/index.js +1 -2
- package/legacy/models/events/gridEvents.js +6 -3
- 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/{modern/hooks/core/preProcessing/gridPreProcessingApi.js → legacy/models/params/gridPreferencePanelParams.js} +0 -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/createSelector.js +4 -4
- package/legacy/utils/getGridLocalization.js +2 -2
- 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/koKR.js +1 -1
- package/locales/plPL.js +26 -26
- package/models/api/gridApiCommon.d.ts +3 -3
- package/models/api/gridEditingApi.d.ts +127 -6
- package/models/api/gridFocusApi.d.ts +9 -0
- package/models/api/gridParamsApi.d.ts +5 -5
- package/models/api/gridRowApi.d.ts +8 -2
- package/models/api/gridRowsMetaApi.d.ts +7 -0
- package/models/api/gridSortApi.d.ts +1 -0
- package/models/api/index.d.ts +1 -1
- package/models/colDef/gridColDef.d.ts +38 -30
- package/models/colDef/index.d.ts +0 -1
- package/models/colDef/index.js +1 -2
- package/models/events/gridEventLookup.d.ts +23 -11
- package/models/events/gridEvents.d.ts +18 -5
- package/models/events/gridEvents.js +6 -3
- package/models/gridCell.d.ts +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 +17 -19
- 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 +23 -14
- 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/{modern/hooks/core/rowGroupsPreProcessing/gridRowGroupsPreProcessingApi.js → models/params/gridPreferencePanelParams.js} +0 -0
- package/models/params/gridRowParams.d.ts +73 -6
- 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 +63 -15
- package/modern/DataGrid/DataGrid.js +52 -4
- package/modern/DataGrid/useDataGridComponent.js +25 -19
- package/modern/DataGrid/useDataGridProps.js +3 -2
- package/modern/colDef/gridDateColDef.js +2 -2
- package/modern/colDef/gridDefaultColumnTypes.js +20 -0
- package/modern/colDef/gridNumericOperators.js +1 -1
- 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 +30 -4
- package/modern/components/base/GridErrorHandler.js +14 -22
- package/modern/components/cell/GridCell.js +4 -4
- 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 +74 -5
- package/modern/components/columnHeaders/{ColumnHeaderFilterIcon.js → GridColumnHeaderFilterIconButton.js} +22 -4
- package/modern/components/columnHeaders/GridColumnHeaderItem.js +8 -6
- package/modern/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
- package/modern/components/columnHeaders/GridColumnHeaders.js +3 -1
- package/modern/components/columnHeaders/index.js +1 -0
- package/modern/components/columnSelection/GridCellCheckboxRenderer.js +2 -2
- package/modern/components/containers/GridOverlay.js +11 -2
- package/modern/components/containers/GridRoot.js +29 -17
- package/modern/components/containers/GridRootStyles.js +3 -3
- package/modern/components/menu/columnMenu/GridColumnMenu.js +1 -1
- package/modern/components/panel/GridColumnsPanel.js +3 -3
- package/modern/components/panel/GridPreferencesPanel.js +3 -5
- package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +27 -23
- package/modern/components/virtualization/GridVirtualScrollerRenderZone.js +4 -1
- package/modern/constants/defaultGridSlotsComponents.js +2 -1
- package/modern/constants/gridClasses.js +1 -1
- package/modern/hooks/core/pipeProcessing/gridPipeProcessingApi.js +1 -0
- package/modern/hooks/core/pipeProcessing/index.js +3 -0
- package/modern/hooks/core/pipeProcessing/useGridPipeProcessing.js +74 -0
- package/modern/hooks/core/{preProcessing/useGridRegisterPreProcessor.js → pipeProcessing/useGridRegisterPipeProcessor.js} +6 -2
- 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 +1 -1
- package/modern/hooks/features/columnMenu/useGridColumnMenu.js +6 -7
- package/modern/hooks/features/columns/gridColumnsSelector.js +11 -10
- package/modern/hooks/features/columns/gridColumnsUtils.js +163 -43
- package/modern/hooks/features/columns/useGridColumns.js +96 -52
- package/modern/hooks/features/density/useGridDensity.js +3 -4
- package/modern/hooks/features/dimensions/useGridDimensions.js +4 -3
- package/modern/hooks/features/editRows/useGridCellEditing.new.js +330 -0
- package/modern/hooks/features/editRows/{useGridCellEditing.js → useGridCellEditing.old.js} +1 -1
- package/modern/hooks/features/editRows/useGridEditing.new.js +118 -0
- package/modern/hooks/features/editRows/{useGridEditing.js → useGridEditing.old.js} +7 -8
- package/modern/hooks/features/editRows/useGridRowEditing.new.js +499 -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/export/serializers/csvSerializer.js +4 -4
- package/modern/hooks/features/filter/gridFilterSelector.js +1 -0
- package/modern/hooks/features/filter/useGridFilter.js +20 -30
- package/modern/hooks/features/focus/useGridFocus.js +47 -12
- package/modern/hooks/features/{keyboard → keyboardNavigation}/useGridKeyboardNavigation.js +29 -8
- package/modern/hooks/features/pagination/useGridPage.js +10 -13
- package/modern/hooks/features/pagination/useGridPageSize.js +4 -23
- package/modern/hooks/features/pagination/useGridPagination.js +23 -2
- package/modern/hooks/features/preferencesPanel/useGridPreferencesPanel.js +24 -12
- package/modern/hooks/features/rows/gridRowsUtils.js +11 -0
- package/modern/hooks/features/rows/index.js +1 -1
- package/modern/hooks/features/rows/useGridParamsApi.js +3 -10
- package/modern/hooks/features/rows/useGridRows.js +75 -46
- package/modern/hooks/features/rows/useGridRowsMeta.js +38 -26
- package/modern/hooks/features/rows/useGridRowsPreProcessors.js +37 -0
- package/modern/hooks/features/scroll/useGridScroll.js +4 -9
- package/modern/hooks/features/selection/useGridSelection.js +99 -40
- package/modern/hooks/features/selection/useGridSelectionPreProcessors.js +2 -2
- package/modern/hooks/features/sorting/useGridSorting.js +10 -29
- package/modern/hooks/features/statePersistence/useGridStatePersistence.js +2 -2
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +9 -7
- package/modern/hooks/utils/useGridApi.js +10 -1
- package/modern/hooks/utils/useGridSelector.js +4 -4
- package/modern/hooks/utils/useGridState.js +10 -1
- package/modern/hooks/utils/{useCurrentPageRows.js → useGridVisibleRows.js} +8 -7
- package/modern/index.js +1 -1
- package/modern/internals/index.js +14 -17
- package/modern/locales/arSD.js +58 -58
- package/modern/locales/daDK.js +32 -32
- package/modern/locales/faIR.js +22 -22
- package/modern/locales/koKR.js +1 -1
- package/modern/locales/plPL.js +26 -26
- package/modern/models/colDef/index.js +1 -2
- package/modern/models/events/gridEvents.js +6 -3
- 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/createSelector.js +4 -4
- package/modern/utils/getGridLocalization.js +1 -1
- package/modern/utils/utils.js +150 -3
- package/node/DataGrid/DataGrid.js +52 -4
- package/node/DataGrid/useDataGridComponent.js +23 -16
- package/node/DataGrid/useDataGridProps.js +3 -2
- package/node/colDef/gridDateColDef.js +2 -2
- package/node/{models/colDef → colDef}/gridDefaultColumnTypes.js +8 -8
- package/node/colDef/gridNumericOperators.js +1 -1
- 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 +29 -4
- package/node/components/base/GridErrorHandler.js +17 -30
- package/node/components/cell/GridCell.js +6 -4
- 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 +78 -5
- package/node/components/columnHeaders/{ColumnHeaderFilterIcon.js → GridColumnHeaderFilterIconButton.js} +23 -5
- package/node/components/columnHeaders/GridColumnHeaderItem.js +10 -9
- package/node/components/columnHeaders/GridColumnHeaderTitle.js +1 -1
- package/node/components/columnHeaders/GridColumnHeaders.js +3 -1
- package/node/components/columnHeaders/index.js +13 -0
- package/node/components/columnSelection/GridCellCheckboxRenderer.js +2 -2
- package/node/components/containers/GridOverlay.js +10 -1
- package/node/components/containers/GridRoot.js +28 -17
- package/node/components/containers/GridRootStyles.js +3 -3
- package/node/components/menu/columnMenu/GridColumnMenu.js +1 -1
- package/node/components/panel/GridColumnsPanel.js +3 -3
- package/node/components/panel/GridPreferencesPanel.js +4 -5
- package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +27 -23
- package/node/components/virtualization/GridVirtualScrollerRenderZone.js +4 -1
- package/node/constants/defaultGridSlotsComponents.js +1 -0
- package/node/constants/gridClasses.js +1 -1
- package/node/hooks/core/{preProcessing/gridPreProcessingApi.js → pipeProcessing/gridPipeProcessingApi.js} +0 -0
- package/node/hooks/core/pipeProcessing/index.js +44 -0
- package/node/hooks/core/pipeProcessing/useGridPipeProcessing.js +93 -0
- package/node/hooks/core/{preProcessing/useGridRegisterPreProcessor.js → pipeProcessing/useGridRegisterPipeProcessor.js} +7 -4
- 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 +1 -1
- package/node/hooks/features/columnMenu/useGridColumnMenu.js +10 -8
- package/node/hooks/features/columns/gridColumnsSelector.js +11 -9
- package/node/hooks/features/columns/gridColumnsUtils.js +171 -49
- package/node/hooks/features/columns/useGridColumns.js +104 -54
- package/node/hooks/features/density/useGridDensity.js +7 -6
- package/node/hooks/features/dimensions/useGridDimensions.js +4 -3
- package/node/hooks/features/editRows/useGridCellEditing.new.js +351 -0
- package/node/hooks/features/editRows/{useGridCellEditing.js → useGridCellEditing.old.js} +1 -1
- package/node/hooks/features/editRows/useGridEditing.new.js +142 -0
- package/node/hooks/features/editRows/{useGridEditing.js → useGridEditing.old.js} +12 -9
- package/node/hooks/features/editRows/useGridRowEditing.new.js +516 -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/export/serializers/csvSerializer.js +5 -4
- package/node/hooks/features/filter/gridFilterSelector.js +1 -0
- package/node/hooks/features/filter/useGridFilter.js +24 -29
- package/node/hooks/features/focus/useGridFocus.js +55 -14
- package/node/hooks/features/{keyboard → keyboardNavigation}/useGridKeyboardNavigation.js +31 -8
- package/node/hooks/features/pagination/useGridPage.js +15 -23
- package/node/hooks/features/pagination/useGridPageSize.js +9 -29
- package/node/hooks/features/pagination/useGridPagination.js +31 -1
- package/node/hooks/features/preferencesPanel/useGridPreferencesPanel.js +35 -18
- package/node/hooks/features/rows/gridRowsUtils.js +18 -0
- package/node/hooks/features/rows/index.js +15 -1
- package/node/hooks/features/rows/useGridParamsApi.js +4 -10
- package/node/hooks/features/rows/useGridRows.js +79 -49
- package/node/hooks/features/rows/useGridRowsMeta.js +49 -28
- package/node/hooks/features/rows/useGridRowsPreProcessors.js +46 -0
- package/node/hooks/features/scroll/useGridScroll.js +3 -13
- package/node/hooks/features/selection/useGridSelection.js +107 -42
- package/node/hooks/features/selection/useGridSelectionPreProcessors.js +2 -2
- package/node/hooks/features/sorting/useGridSorting.js +10 -29
- package/node/hooks/features/statePersistence/useGridStatePersistence.js +2 -2
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +9 -7
- package/node/hooks/utils/useGridApi.js +11 -1
- package/node/hooks/utils/useGridSelector.js +6 -4
- package/node/hooks/utils/useGridState.js +11 -1
- package/node/hooks/utils/{useCurrentPageRows.js → useGridVisibleRows.js} +11 -10
- package/node/index.js +1 -1
- package/node/internals/index.js +77 -47
- package/node/locales/arSD.js +58 -58
- package/node/locales/daDK.js +32 -32
- package/node/locales/faIR.js +22 -22
- package/node/locales/koKR.js +1 -1
- package/node/locales/plPL.js +26 -26
- package/node/models/colDef/index.js +0 -13
- package/node/models/events/gridEvents.js +6 -3
- 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/createSelector.js +5 -4
- package/node/utils/getGridLocalization.js +2 -2
- package/node/utils/utils.js +152 -11
- package/package.json +2 -2
- package/utils/cleanupTracking/TimerBasedCleanupTracking.d.ts +2 -0
- package/utils/cleanupTracking/TimerBasedCleanupTracking.js +4 -2
- package/utils/createSelector.js +4 -4
- package/utils/getGridLocalization.d.ts +2 -1
- package/utils/getGridLocalization.js +2 -2
- package/utils/keyboardUtils.d.ts +1 -1
- package/utils/utils.d.ts +27 -2
- package/utils/utils.js +150 -3
- package/utils/warning.d.ts +1 -1
- 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/hooks/utils/useGridStateInit.d.ts +0 -7
- package/hooks/utils/useGridStateInit.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/hooks/utils/useGridStateInit.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/legacy/models/colDef/gridDefaultColumnTypes.js +0 -21
- 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/models/colDef/gridDefaultColumnTypes.js +0 -20
- 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/hooks/utils/useGridStateInit.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/modern/models/colDef/gridDefaultColumnTypes.js +0 -20
- 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/filter/useGridRegisterFilteringMethod.js +0 -24
- package/node/hooks/features/keyboard/useGridKeyboard.js +0 -91
- package/node/hooks/utils/useGridStateInit.js +0 -23
- 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,4 +1,4 @@
|
|
|
1
|
-
import { GridCellMode, GridRowMode
|
|
1
|
+
import { GridCellMode, GridRowMode } from '../gridCell';
|
|
2
2
|
import { GridEditRowsModel, GridEditCellProps } from '../gridEditRowModel';
|
|
3
3
|
import { GridRowId } from '../gridRows';
|
|
4
4
|
import { GridCellParams } from '../params/gridCellParams';
|
|
@@ -38,7 +38,7 @@ export interface GridEditingSharedApi {
|
|
|
38
38
|
* @param {string} field The field to update. If not passed, updates all fields in the given row id.
|
|
39
39
|
* @ignore - do not document.
|
|
40
40
|
*/
|
|
41
|
-
|
|
41
|
+
unstable_runPendingEditCellValueMutation: (id: GridRowId, field?: string) => void;
|
|
42
42
|
/**
|
|
43
43
|
* @ignore - do not document.
|
|
44
44
|
*/
|
|
@@ -46,7 +46,7 @@ export interface GridEditingSharedApi {
|
|
|
46
46
|
/**
|
|
47
47
|
* @ignore - do not document.
|
|
48
48
|
*/
|
|
49
|
-
unstable_parseValue: (id: GridRowId, field: string, value:
|
|
49
|
+
unstable_parseValue: (id: GridRowId, field: string, value: any) => any;
|
|
50
50
|
}
|
|
51
51
|
/**
|
|
52
52
|
* The row editing API interface.
|
|
@@ -65,7 +65,7 @@ export interface GridRowEditingApi extends GridEditingSharedApi {
|
|
|
65
65
|
*/
|
|
66
66
|
getRowMode: (id: GridRowId) => GridRowMode;
|
|
67
67
|
/**
|
|
68
|
-
* Updates the row
|
|
68
|
+
* Updates the row corresponding to the given id with the values stored in the edit row model.
|
|
69
69
|
* @param {GridRowId} id The id to commit to.
|
|
70
70
|
* @param {React.SyntheticEvent} event The event to pass forward.
|
|
71
71
|
* @returns {boolean} A boolean indicating if there is an error.
|
|
@@ -84,7 +84,7 @@ export interface GridRowEditingApi extends GridEditingSharedApi {
|
|
|
84
84
|
*/
|
|
85
85
|
export interface GridCellEditingApi extends GridEditingSharedApi {
|
|
86
86
|
/**
|
|
87
|
-
* Updates the field
|
|
87
|
+
* Updates the field corresponding to the given id with the value stored in the edit row model.
|
|
88
88
|
* @param {GridCommitCellChangeParams} params The id and field to commit to.
|
|
89
89
|
* @param {React.SyntheticEvent} event The event to pass forward.
|
|
90
90
|
* @returns {boolean} A boolean indicating if there is an error.
|
|
@@ -112,8 +112,129 @@ export interface GridCellEditingApi extends GridEditingSharedApi {
|
|
|
112
112
|
*/
|
|
113
113
|
unstable_setCellEditingEditCellValue: (params: GridEditCellValueParams) => Promise<boolean>;
|
|
114
114
|
}
|
|
115
|
+
/**
|
|
116
|
+
* Params passed to `apiRef.current.startCellEditMode`.
|
|
117
|
+
*/
|
|
118
|
+
interface GridStartCellEditModeParams {
|
|
119
|
+
/**
|
|
120
|
+
* The row id.
|
|
121
|
+
*/
|
|
122
|
+
id: GridRowId;
|
|
123
|
+
/**
|
|
124
|
+
* The field.
|
|
125
|
+
*/
|
|
126
|
+
field: string;
|
|
127
|
+
}
|
|
128
|
+
/**
|
|
129
|
+
* Params passed to `apiRef.current.stopCellEditMode`.
|
|
130
|
+
*/
|
|
131
|
+
export interface GridStopCellEditModeParams {
|
|
132
|
+
/**
|
|
133
|
+
* The row id.
|
|
134
|
+
*/
|
|
135
|
+
id: GridRowId;
|
|
136
|
+
/**
|
|
137
|
+
* The field.
|
|
138
|
+
*/
|
|
139
|
+
field: string;
|
|
140
|
+
/**
|
|
141
|
+
* Whether or not to ignore the modifications made on this cell.
|
|
142
|
+
* @default false
|
|
143
|
+
*/
|
|
144
|
+
ignoreModifications?: boolean;
|
|
145
|
+
/**
|
|
146
|
+
* To which cell to move focus after finishing editing.
|
|
147
|
+
* @default "none"
|
|
148
|
+
*/
|
|
149
|
+
cellToFocusAfter?: 'none' | 'below' | 'right' | 'left';
|
|
150
|
+
}
|
|
151
|
+
/**
|
|
152
|
+
* Params passed to `apiRef.current.startRowEditMode`.
|
|
153
|
+
*/
|
|
154
|
+
interface GridStartRowEditModeParams {
|
|
155
|
+
/**
|
|
156
|
+
* The row id.
|
|
157
|
+
*/
|
|
158
|
+
id: GridRowId;
|
|
159
|
+
/**
|
|
160
|
+
* The field to put focus.
|
|
161
|
+
*/
|
|
162
|
+
fieldToFocus?: string;
|
|
163
|
+
}
|
|
164
|
+
/**
|
|
165
|
+
* Params passed to `apiRef.current.stopRowEditMode`.
|
|
166
|
+
*/
|
|
167
|
+
export interface GridStopRowEditModeParams {
|
|
168
|
+
/**
|
|
169
|
+
* The row id.
|
|
170
|
+
*/
|
|
171
|
+
id: GridRowId;
|
|
172
|
+
/**
|
|
173
|
+
* Whether or not to ignore the modifications made on this cell.
|
|
174
|
+
* @default false
|
|
175
|
+
*/
|
|
176
|
+
ignoreModifications?: boolean;
|
|
177
|
+
/**
|
|
178
|
+
* The field that has focus when the editing is stopped.
|
|
179
|
+
* Used to calculate which cell to move the focus to after finishing editing.
|
|
180
|
+
*/
|
|
181
|
+
field?: string;
|
|
182
|
+
/**
|
|
183
|
+
* To which cell to move focus after finishing editing.
|
|
184
|
+
* Only works if the field is also specified, otherwise focus stay in the same cell.
|
|
185
|
+
* @default "none"
|
|
186
|
+
*/
|
|
187
|
+
cellToFocusAfter?: 'none' | 'below' | 'right' | 'left';
|
|
188
|
+
}
|
|
189
|
+
export interface GridNewCellEditingApi extends Omit<GridEditingSharedApi, 'getEditRowsModel' | 'setEditRowsModel'>, Pick<GridCellEditingApi, 'getCellMode'> {
|
|
190
|
+
/**
|
|
191
|
+
* Puts the cell corresponding to the given row id and field into edit mode.
|
|
192
|
+
* @param {GridStartCellEditModeParams} params The row id and field of the cell to edit.
|
|
193
|
+
*/
|
|
194
|
+
startCellEditMode(params: GridStartCellEditModeParams): void;
|
|
195
|
+
/**
|
|
196
|
+
* Puts the cell corresponding to the given row id and field into view mode and updates the original row with the new value stored.
|
|
197
|
+
* If `params.ignoreModifications` is `false` it will discard the modifications made.
|
|
198
|
+
* @param {GridStopCellEditModeParams} params The row id and field of the cell to stop editing.
|
|
199
|
+
*/
|
|
200
|
+
stopCellEditMode(params: GridStopCellEditModeParams): void;
|
|
201
|
+
/**
|
|
202
|
+
* Updates the value of a cell being edited.
|
|
203
|
+
* Don't call this method directly, prefer `setEditCellValue`.
|
|
204
|
+
* @param {GridCommitCellChangeParams} params Object with the new value and id and field to update.
|
|
205
|
+
* @returns {Promise<boolean>} Resolves with `true` when the new value is valid.
|
|
206
|
+
* @ignore - do not document.
|
|
207
|
+
*/
|
|
208
|
+
unstable_setCellEditingEditCellValue: (params: GridEditCellValueParams) => Promise<boolean>;
|
|
209
|
+
}
|
|
210
|
+
export interface GridNewRowEditingApi extends Omit<GridEditingSharedApi, 'getEditRowsModel' | 'setEditRowsModel'>, Pick<GridRowEditingApi, 'getRowMode'> {
|
|
211
|
+
/**
|
|
212
|
+
* Puts the row corresponding to the given id into edit mode.
|
|
213
|
+
* @param {GridStartCellEditModeParams} params The row id edit.
|
|
214
|
+
*/
|
|
215
|
+
startRowEditMode(params: GridStartRowEditModeParams): void;
|
|
216
|
+
/**
|
|
217
|
+
* Puts the row corresponding to the given id and into view mode and updates the original row with the new values stored.
|
|
218
|
+
* If `params.ignoreModifications` is `false` it will discard the modifications made.
|
|
219
|
+
* @param {GridStopCellEditModeParams} params The row id and field of the cell to stop editing.
|
|
220
|
+
*/
|
|
221
|
+
stopRowEditMode(params: GridStopRowEditModeParams): void;
|
|
222
|
+
/**
|
|
223
|
+
* Updates the value of a cell being edited.
|
|
224
|
+
* Don't call this method directly, prefer `setEditCellValue`.
|
|
225
|
+
* @param {GridCommitCellChangeParams} params Object with the new value and id and field to update.
|
|
226
|
+
* @returns {Promise<boolean>} Resolves with `true` when all values in the row are valid.
|
|
227
|
+
* @ignore - do not document.
|
|
228
|
+
*/
|
|
229
|
+
unstable_setRowEditingEditCellValue: (params: GridEditCellValueParams) => Promise<boolean>;
|
|
230
|
+
}
|
|
115
231
|
/**
|
|
116
232
|
* The editing API interface that is available in the grid `apiRef`.
|
|
117
233
|
*/
|
|
118
|
-
export interface GridEditingApi extends GridCellEditingApi, GridRowEditingApi {
|
|
234
|
+
export interface GridEditingApi extends GridCellEditingApi, GridRowEditingApi, GridNewCellEditingApi, GridNewRowEditingApi {
|
|
235
|
+
}
|
|
236
|
+
export interface GridOldEditingApi extends GridCellEditingApi, GridRowEditingApi {
|
|
237
|
+
}
|
|
238
|
+
export interface GridNewEditingApi extends GridNewCellEditingApi, GridNewRowEditingApi {
|
|
119
239
|
}
|
|
240
|
+
export {};
|
|
@@ -13,4 +13,13 @@ export interface GridFocusApi {
|
|
|
13
13
|
* @param {string} event The event that triggers the action.
|
|
14
14
|
*/
|
|
15
15
|
setColumnHeaderFocus: (field: string, event?: MuiBaseEvent) => void;
|
|
16
|
+
/**
|
|
17
|
+
* Moves the focus to the cell situated at the given direction.
|
|
18
|
+
* If field is the last and direction=right, the focus goes to the next row.
|
|
19
|
+
* If field is the first and direction=left, the focus goes to the previous row.
|
|
20
|
+
* @param {GridRowId} id The base row id.
|
|
21
|
+
* @param {string} field The base column field.
|
|
22
|
+
* @param {'below' | 'right' | 'left'} direction Which direction is the next cell to focus.
|
|
23
|
+
*/
|
|
24
|
+
unstable_moveFocusToRelativeCell: (id: GridRowId, field: string, direction: 'below' | 'right' | 'left') => void;
|
|
16
25
|
}
|
|
@@ -1,16 +1,16 @@
|
|
|
1
|
-
import {
|
|
2
|
-
import { GridRowId } from '../gridRows';
|
|
1
|
+
import { GridValidRowModel, GridRowId } from '../gridRows';
|
|
3
2
|
import { GridCellParams } from '../params/gridCellParams';
|
|
4
3
|
import { GridColumnHeaderParams } from '../params/gridColumnHeaderParams';
|
|
5
4
|
import { GridRowParams } from '../params/gridRowParams';
|
|
6
5
|
export interface GridParamsApi {
|
|
7
6
|
/**
|
|
8
7
|
* Gets the value of a cell at the given `id` and `field`.
|
|
8
|
+
* @template V
|
|
9
9
|
* @param {GridRowId} id The id of the row.
|
|
10
10
|
* @param {string} field The column field.
|
|
11
|
-
* @returns {
|
|
11
|
+
* @returns {v} The cell value.
|
|
12
12
|
*/
|
|
13
|
-
getCellValue: (id: GridRowId, field: string) =>
|
|
13
|
+
getCellValue: <V extends any = any>(id: GridRowId, field: string) => V;
|
|
14
14
|
/**
|
|
15
15
|
* Gets the underlying DOM element for a cell at the given `id` and `field`.
|
|
16
16
|
* @param {GridRowId} id The id of the row.
|
|
@@ -24,7 +24,7 @@ export interface GridParamsApi {
|
|
|
24
24
|
* @param {string} field The column field.
|
|
25
25
|
* @returns {GridCellParams} The cell params.
|
|
26
26
|
*/
|
|
27
|
-
getCellParams: <V = any, R = any, F = V>(id: GridRowId, field: string) => GridCellParams<
|
|
27
|
+
getCellParams: <V = any, R extends GridValidRowModel = any, F = V>(id: GridRowId, field: string) => GridCellParams<R, V, F>;
|
|
28
28
|
/**
|
|
29
29
|
* Gets the [[GridRowParams]] object that is passed as argument in events.
|
|
30
30
|
* @param {GridRowId} id The id of the row.
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
import { GridRowModel, GridRowId, GridRowModelUpdate, GridRowTreeNodeConfig } from '../gridRows';
|
|
1
|
+
import { GridRowModel, GridRowId, GridRowModelUpdate, GridRowTreeNodeConfig, GridValidRowModel } from '../gridRows';
|
|
2
2
|
/**
|
|
3
3
|
* The Row API interface that is available in the grid `apiRef`.
|
|
4
4
|
*/
|
|
@@ -33,7 +33,7 @@ export interface GridRowApi {
|
|
|
33
33
|
* @param {GridRowId} id The id of the row.
|
|
34
34
|
* @returns {GridRowModel} The row data.
|
|
35
35
|
*/
|
|
36
|
-
getRow: (id: GridRowId) =>
|
|
36
|
+
getRow: <R extends GridValidRowModel = any>(id: GridRowId) => R | null;
|
|
37
37
|
/**
|
|
38
38
|
* Gets the row node from the internal tree structure.
|
|
39
39
|
* @param {GridRowId} id The id of the row.
|
|
@@ -46,4 +46,10 @@ export interface GridRowApi {
|
|
|
46
46
|
* @param {boolean} isExpanded A boolean indicating if the row must be expanded or collapsed.
|
|
47
47
|
*/
|
|
48
48
|
setRowChildrenExpansion: (id: GridRowId, isExpanded: boolean) => void;
|
|
49
|
+
/**
|
|
50
|
+
* Gets the index of a row relative to the rows that are reachable by scroll.
|
|
51
|
+
* @param {GridRowId} id The row id.
|
|
52
|
+
* @returns {number} The index of the row.
|
|
53
|
+
*/
|
|
54
|
+
getRowIndexRelativeToVisibleRows: (id: GridRowId) => number;
|
|
49
55
|
}
|
|
@@ -10,6 +10,13 @@ export interface GridRowsMetaApi {
|
|
|
10
10
|
* @ignore - do not document.
|
|
11
11
|
*/
|
|
12
12
|
unstable_getRowHeight: (id: GridRowId) => number;
|
|
13
|
+
/**
|
|
14
|
+
* Gets all sizes that compose the total height that the given row takes.
|
|
15
|
+
* @param {GridRowId} id The id of the row.
|
|
16
|
+
* @returns {Record<string, number>} The object containing the sizes.
|
|
17
|
+
* @ignore - do not document.
|
|
18
|
+
*/
|
|
19
|
+
unstable_getRowInternalSizes: (id: GridRowId) => Record<string, number> | undefined;
|
|
13
20
|
/**
|
|
14
21
|
* Updates the base height of a row.
|
|
15
22
|
* @param {GridRowId} id The id of the row.
|
|
@@ -48,6 +48,7 @@ export interface GridSortApi {
|
|
|
48
48
|
* The index is based on the sorted but unfiltered row list.
|
|
49
49
|
* @param {GridRowId} id The `GridRowId` of the row.
|
|
50
50
|
* @returns {number} The index of the row.
|
|
51
|
+
* @deprecated Use `getRowIndexRelativeToVisibleRows` instead.
|
|
51
52
|
*/
|
|
52
53
|
getRowIndex: (id: GridRowId) => number;
|
|
53
54
|
}
|
package/models/api/index.d.ts
CHANGED
|
@@ -21,5 +21,5 @@ export * from './gridCallbackDetails';
|
|
|
21
21
|
export * from './gridScrollApi';
|
|
22
22
|
export * from './gridVirtualScrollerApi';
|
|
23
23
|
export * from './gridApiCommon';
|
|
24
|
-
export type { GridEditingApi } from './gridEditingApi';
|
|
24
|
+
export type { GridEditingApi, GridOldEditingApi, GridNewEditingApi } from './gridEditingApi';
|
|
25
25
|
export declare type GridEditRowApi = GridEditingApi;
|
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import { GridCellValue } from '../gridCell';
|
|
3
2
|
import { GridCellClassNamePropType } from '../gridCellClass';
|
|
4
3
|
import { GridColumnHeaderClassNamePropType } from '../gridColumnHeaderClass';
|
|
5
4
|
import { GridFilterOperator } from '../gridFilterOperator';
|
|
@@ -10,13 +9,13 @@ import { GridColType, GridNativeColTypes } from './gridColType';
|
|
|
10
9
|
import { GridRowParams } from '../params/gridRowParams';
|
|
11
10
|
import { GridValueOptionsParams } from '../params/gridValueOptionsParams';
|
|
12
11
|
import { GridActionsCellItemProps } from '../../components/cell/GridActionsCellItem';
|
|
13
|
-
import { GridRowModel } from '../gridRows';
|
|
14
12
|
import { GridEditCellProps } from '../gridEditRowModel';
|
|
13
|
+
import type { GridValidRowModel } from '../gridRows';
|
|
15
14
|
/**
|
|
16
15
|
* Alignment used in position elements in Cells.
|
|
17
16
|
*/
|
|
18
17
|
export declare type GridAlignment = 'left' | 'right' | 'center';
|
|
19
|
-
declare type ValueOptions = string | number | {
|
|
18
|
+
export declare type ValueOptions = string | number | {
|
|
20
19
|
value: any;
|
|
21
20
|
label: string;
|
|
22
21
|
};
|
|
@@ -27,7 +26,7 @@ export declare type GridKeyValue = string | number | boolean;
|
|
|
27
26
|
/**
|
|
28
27
|
* Column Definition interface.
|
|
29
28
|
*/
|
|
30
|
-
export interface GridColDef {
|
|
29
|
+
export interface GridColDef<R extends GridValidRowModel = any, V = any, F = V> {
|
|
31
30
|
/**
|
|
32
31
|
* The column identifier. It's used to map with [[GridRowModel]] values.
|
|
33
32
|
*/
|
|
@@ -103,7 +102,7 @@ export interface GridColDef {
|
|
|
103
102
|
/**
|
|
104
103
|
* A comparator function used to sort rows.
|
|
105
104
|
*/
|
|
106
|
-
sortComparator?: GridComparatorFn
|
|
105
|
+
sortComparator?: GridComparatorFn<V>;
|
|
107
106
|
/**
|
|
108
107
|
* Type allows to merge this object with a default definition [[GridColDef]].
|
|
109
108
|
* @default 'string'
|
|
@@ -112,53 +111,58 @@ export interface GridColDef {
|
|
|
112
111
|
/**
|
|
113
112
|
* To be used in combination with `type: 'singleSelect'`. This is an array (or a function returning an array) of the possible cell values and labels.
|
|
114
113
|
*/
|
|
115
|
-
valueOptions?: Array<ValueOptions> | ((params: GridValueOptionsParams) => Array<ValueOptions>);
|
|
114
|
+
valueOptions?: Array<ValueOptions> | ((params: GridValueOptionsParams<R>) => Array<ValueOptions>);
|
|
116
115
|
/**
|
|
117
116
|
* Allows to align the column values in cells.
|
|
118
117
|
*/
|
|
119
118
|
align?: GridAlignment;
|
|
120
119
|
/**
|
|
121
120
|
* Function that allows to get a specific data instead of field to render in the cell.
|
|
122
|
-
* @
|
|
123
|
-
* @
|
|
121
|
+
* @template R, V
|
|
122
|
+
* @param {GridValueGetterParams<any, R>} params Object containing parameters for the getter.
|
|
123
|
+
* @returns {V} The cell value.
|
|
124
124
|
*/
|
|
125
|
-
valueGetter?: (params: GridValueGetterParams) =>
|
|
125
|
+
valueGetter?: (params: GridValueGetterParams<any, R>) => V;
|
|
126
126
|
/**
|
|
127
127
|
* Function that allows to customize how the entered value is stored in the row.
|
|
128
128
|
* It only works with cell/row editing.
|
|
129
|
-
* @
|
|
130
|
-
* @
|
|
129
|
+
* @template R, V
|
|
130
|
+
* @param {GridValueSetterParams<R, V>} params Object containing parameters for the setter.
|
|
131
|
+
* @returns {R} The row with the updated field.
|
|
131
132
|
*/
|
|
132
|
-
valueSetter?: (params: GridValueSetterParams) =>
|
|
133
|
+
valueSetter?: (params: GridValueSetterParams<R, V>) => R;
|
|
133
134
|
/**
|
|
134
135
|
* Function that allows to apply a formatter before rendering its value.
|
|
135
|
-
* @
|
|
136
|
-
* @
|
|
136
|
+
* @template V, F
|
|
137
|
+
* @param {GridValueFormatterParams<V>} params Object containing parameters for the formatter.
|
|
138
|
+
* @returns {F} The formatted value.
|
|
137
139
|
*/
|
|
138
|
-
valueFormatter?: (params: GridValueFormatterParams) =>
|
|
140
|
+
valueFormatter?: (params: GridValueFormatterParams<V>) => F;
|
|
139
141
|
/**
|
|
140
142
|
* Function that takes the user-entered value and converts it to a value used internally.
|
|
141
|
-
* @
|
|
142
|
-
* @param {
|
|
143
|
-
* @
|
|
143
|
+
* @template R, V, F
|
|
144
|
+
* @param {F | undefined} value The user-entered value.
|
|
145
|
+
* @param {GridCellParams<V, R, F>} params The params when called before saving the value.
|
|
146
|
+
* @returns {V} The converted value to use internally.
|
|
144
147
|
*/
|
|
145
|
-
valueParser?: (value:
|
|
148
|
+
valueParser?: (value: F | undefined, params?: GridCellParams<V, R, F>) => V;
|
|
146
149
|
/**
|
|
147
150
|
* Class name that will be added in cells for that column.
|
|
148
151
|
*/
|
|
149
152
|
cellClassName?: GridCellClassNamePropType;
|
|
150
153
|
/**
|
|
151
154
|
* Allows to override the component rendered as cell for this column.
|
|
152
|
-
* @
|
|
155
|
+
* @template R, V, F
|
|
156
|
+
* @param {GridRenderCellParams<V, R, F>} params Object containing parameters for the renderer.
|
|
153
157
|
* @returns {React.ReactNode} The element to be rendered.
|
|
154
158
|
*/
|
|
155
|
-
renderCell?: (params: GridRenderCellParams) => React.ReactNode;
|
|
159
|
+
renderCell?: (params: GridRenderCellParams<V, R, F>) => React.ReactNode;
|
|
156
160
|
/**
|
|
157
161
|
* Allows to override the component rendered in edit cell mode for this column.
|
|
158
162
|
* @param {GridRenderEditCellParams} params Object containing parameters for the renderer.
|
|
159
163
|
* @returns {React.ReactNode} The element to be rendered.
|
|
160
164
|
*/
|
|
161
|
-
renderEditCell?: (params: GridRenderEditCellParams) => React.ReactNode;
|
|
165
|
+
renderEditCell?: (params: GridRenderEditCellParams<V>) => React.ReactNode;
|
|
162
166
|
/**
|
|
163
167
|
* Callback fired when the edit props of the cell changes.
|
|
164
168
|
* It allows to process the props that saved into the state.
|
|
@@ -172,10 +176,11 @@ export interface GridColDef {
|
|
|
172
176
|
headerClassName?: GridColumnHeaderClassNamePropType;
|
|
173
177
|
/**
|
|
174
178
|
* Allows to render a component in the column header cell.
|
|
175
|
-
* @
|
|
179
|
+
* @template V, R, F
|
|
180
|
+
* @param {GridColumnHeaderParams<V, R, F>} params Object containing parameters for the renderer.
|
|
176
181
|
* @returns {React.ReactNode} The element to be rendered.
|
|
177
182
|
*/
|
|
178
|
-
renderHeader?: (params: GridColumnHeaderParams) => React.ReactNode;
|
|
183
|
+
renderHeader?: (params: GridColumnHeaderParams<V, R, F>) => React.ReactNode;
|
|
179
184
|
/**
|
|
180
185
|
* Header cell element alignment.
|
|
181
186
|
*/
|
|
@@ -198,7 +203,7 @@ export interface GridColDef {
|
|
|
198
203
|
/**
|
|
199
204
|
* Allows setting the filter operators for this column.
|
|
200
205
|
*/
|
|
201
|
-
filterOperators?: GridFilterOperator[];
|
|
206
|
+
filterOperators?: GridFilterOperator<R, V, F>[];
|
|
202
207
|
/**
|
|
203
208
|
* If `true`, this column cannot be reordered.
|
|
204
209
|
* @default false
|
|
@@ -223,13 +228,17 @@ export interface GridActionsColDef extends GridColDef {
|
|
|
223
228
|
*/
|
|
224
229
|
getActions: (params: GridRowParams) => React.ReactElement<GridActionsCellItemProps>[];
|
|
225
230
|
}
|
|
226
|
-
export declare type GridEnrichedColDef = GridColDef | GridActionsColDef;
|
|
227
|
-
export declare type GridColumns = GridEnrichedColDef[];
|
|
228
|
-
export declare type GridColTypeDef = Omit<GridColDef, 'field'> & {
|
|
231
|
+
export declare type GridEnrichedColDef<R extends GridValidRowModel = any, V = any, F = V> = GridColDef<R, V, F> | GridActionsColDef;
|
|
232
|
+
export declare type GridColumns<R extends GridValidRowModel = any> = GridEnrichedColDef<R>[];
|
|
233
|
+
export declare type GridColTypeDef<V = any, F = V> = Omit<GridColDef<V, any, F>, 'field'> & {
|
|
229
234
|
extendType?: GridNativeColTypes;
|
|
230
235
|
};
|
|
231
|
-
export declare type GridStateColDef = GridEnrichedColDef & {
|
|
236
|
+
export declare type GridStateColDef<R extends GridValidRowModel = any, V = any, F = V> = GridEnrichedColDef<R, V, F> & {
|
|
232
237
|
computedWidth: number;
|
|
238
|
+
/**
|
|
239
|
+
* If `true`, it means that at least one of the dimension's property of this column has been modified since the last time the column prop has changed.
|
|
240
|
+
*/
|
|
241
|
+
hasBeenResized?: boolean;
|
|
233
242
|
};
|
|
234
243
|
/**
|
|
235
244
|
* Meta Info about columns.
|
|
@@ -238,4 +247,3 @@ export interface GridColumnsMeta {
|
|
|
238
247
|
totalWidth: number;
|
|
239
248
|
positions: number[];
|
|
240
249
|
}
|
|
241
|
-
export {};
|
package/models/colDef/index.d.ts
CHANGED
package/models/colDef/index.js
CHANGED
|
@@ -1,5 +1,6 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
import type { GridCellEditCommitParams, GridColumnHeaderParams, GridColumnOrderChangeParams, GridColumnResizeParams, GridColumnVisibilityChangeParams, GridEditCellPropsParams, GridHeaderSelectionCheckboxParams, GridRowParams, GridRowSelectionCheckboxParams, GridScrollParams } from '../params';
|
|
2
|
+
import type { GridCellEditCommitParams, GridColumnHeaderParams, GridColumnOrderChangeParams, GridColumnResizeParams, GridColumnVisibilityChangeParams, GridEditCellPropsParams, GridHeaderSelectionCheckboxParams, GridPreferencePanelParams, GridRowParams, GridRowSelectionCheckboxParams, GridScrollParams } from '../params';
|
|
3
|
+
import { GridCellEditStartParams, GridCellEditStopParams } from '../params/gridEditCellParams';
|
|
3
4
|
import { GridCellParams } from '../params/gridCellParams';
|
|
4
5
|
import type { GridFilterModel } from '../gridFilterModel';
|
|
5
6
|
import type { GridSortModel } from '../gridSortModel';
|
|
@@ -8,8 +9,10 @@ import type { GridSelectionModel } from '../gridSelectionModel';
|
|
|
8
9
|
import type { ElementSize } from '../elementSize';
|
|
9
10
|
import type { MuiBaseEvent } from '../muiEvent';
|
|
10
11
|
import type { GridRowId, GridRowTreeNodeConfig } from '../gridRows';
|
|
11
|
-
import type {
|
|
12
|
+
import type { GridPipeProcessorGroup } from '../../hooks/core/pipeProcessing';
|
|
12
13
|
import type { GridColumnVisibilityModel } from '../../hooks/features/columns';
|
|
14
|
+
import type { GridStrategyProcessorName } from '../../hooks/core/strategyProcessing';
|
|
15
|
+
import { GridRowEditStartParams, GridRowEditStopParams } from '../params/gridRowParams';
|
|
13
16
|
export interface GridRowEventLookup {
|
|
14
17
|
rowClick: {
|
|
15
18
|
params: GridRowParams;
|
|
@@ -159,13 +162,16 @@ export interface GridEventLookup extends GridRowEventLookup, GridColumnHeaderEve
|
|
|
159
162
|
debouncedResize: {
|
|
160
163
|
params: ElementSize;
|
|
161
164
|
};
|
|
162
|
-
|
|
163
|
-
|
|
164
|
-
params: GridPreProcessingGroup;
|
|
165
|
+
pipeProcessorRegister: {
|
|
166
|
+
params: GridPipeProcessorGroup;
|
|
165
167
|
};
|
|
166
|
-
|
|
167
|
-
params:
|
|
168
|
+
pipeProcessorUnregister: {
|
|
169
|
+
params: GridPipeProcessorGroup;
|
|
168
170
|
};
|
|
171
|
+
activeStrategyProcessorChange: {
|
|
172
|
+
params: GridStrategyProcessorName;
|
|
173
|
+
};
|
|
174
|
+
strategyAvailabilityChange: {};
|
|
169
175
|
columnsChange: {
|
|
170
176
|
params: string[];
|
|
171
177
|
};
|
|
@@ -202,11 +208,11 @@ export interface GridEventLookup extends GridRowEventLookup, GridColumnHeaderEve
|
|
|
202
208
|
params: GridCellParams;
|
|
203
209
|
};
|
|
204
210
|
cellEditStart: {
|
|
205
|
-
params:
|
|
211
|
+
params: GridCellEditStartParams;
|
|
206
212
|
event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>;
|
|
207
213
|
};
|
|
208
214
|
cellEditStop: {
|
|
209
|
-
params:
|
|
215
|
+
params: GridCellEditStopParams;
|
|
210
216
|
event: MuiBaseEvent;
|
|
211
217
|
};
|
|
212
218
|
cellEditCommit: {
|
|
@@ -218,11 +224,11 @@ export interface GridEventLookup extends GridRowEventLookup, GridColumnHeaderEve
|
|
|
218
224
|
event: React.SyntheticEvent<HTMLElement> | {};
|
|
219
225
|
};
|
|
220
226
|
rowEditStart: {
|
|
221
|
-
params:
|
|
227
|
+
params: GridRowEditStartParams;
|
|
222
228
|
event: React.MouseEvent<HTMLElement> | React.KeyboardEvent<HTMLElement>;
|
|
223
229
|
};
|
|
224
230
|
rowEditStop: {
|
|
225
|
-
params:
|
|
231
|
+
params: GridRowEditStopParams;
|
|
226
232
|
event: MuiBaseEvent;
|
|
227
233
|
};
|
|
228
234
|
rowEditCommit: {
|
|
@@ -255,4 +261,10 @@ export interface GridEventLookup extends GridRowEventLookup, GridColumnHeaderEve
|
|
|
255
261
|
params: GridRowSelectionCheckboxParams;
|
|
256
262
|
event: React.ChangeEvent<HTMLElement>;
|
|
257
263
|
};
|
|
264
|
+
preferencePanelClose: {
|
|
265
|
+
params: GridPreferencePanelParams;
|
|
266
|
+
};
|
|
267
|
+
preferencePanelOpen: {
|
|
268
|
+
params: GridPreferencePanelParams;
|
|
269
|
+
};
|
|
258
270
|
}
|
|
@@ -277,17 +277,22 @@ declare enum GridEvents {
|
|
|
277
277
|
* Fired when a pre-processor is registered.
|
|
278
278
|
* @ignore - do not document.
|
|
279
279
|
*/
|
|
280
|
-
|
|
280
|
+
pipeProcessorRegister = "pipeProcessorRegister",
|
|
281
281
|
/**
|
|
282
282
|
* Fired when a pre-processor is unregistered.
|
|
283
283
|
* @ignore - do not document.
|
|
284
284
|
*/
|
|
285
|
-
|
|
285
|
+
pipeProcessorUnregister = "pipeProcessorUnregister",
|
|
286
286
|
/**
|
|
287
|
-
* Fired when
|
|
287
|
+
* Fired when a processor of the active strategy changes.
|
|
288
288
|
* @ignore - do not document.
|
|
289
289
|
*/
|
|
290
|
-
|
|
290
|
+
activeStrategyProcessorChange = "activeStrategyProcessorChange",
|
|
291
|
+
/**
|
|
292
|
+
* Fired when the callback to decide if a strategy is available or not changes.
|
|
293
|
+
* @ignore - do not document.
|
|
294
|
+
*/
|
|
295
|
+
strategyAvailabilityChange = "strategyAvailabilityChange",
|
|
291
296
|
/**
|
|
292
297
|
* Fired when the sort model changes.
|
|
293
298
|
*/
|
|
@@ -315,7 +320,15 @@ declare enum GridEvents {
|
|
|
315
320
|
* Fired when the content size used by the `GridVirtualScroller` changes.
|
|
316
321
|
* @ignore - do not document.
|
|
317
322
|
*/
|
|
318
|
-
virtualScrollerContentSizeChange = "virtualScrollerContentSizeChange"
|
|
323
|
+
virtualScrollerContentSizeChange = "virtualScrollerContentSizeChange",
|
|
324
|
+
/**
|
|
325
|
+
* Fired when the preferences panel is closed.
|
|
326
|
+
*/
|
|
327
|
+
preferencePanelClose = "preferencePanelClose",
|
|
328
|
+
/**
|
|
329
|
+
* Fired when the preferences panel is opened.
|
|
330
|
+
*/
|
|
331
|
+
preferencePanelOpen = "preferencePanelOpen"
|
|
319
332
|
}
|
|
320
333
|
export declare type GridEventsStr = keyof GridEventLookup;
|
|
321
334
|
export { GridEvents };
|
|
@@ -63,15 +63,18 @@ var GridEvents;
|
|
|
63
63
|
GridEvents["columnsChange"] = "columnsChange";
|
|
64
64
|
GridEvents["detailPanelsExpandedRowIdsChange"] = "detailPanelsExpandedRowIdsChange";
|
|
65
65
|
GridEvents["pinnedColumnsChange"] = "pinnedColumnsChange";
|
|
66
|
-
GridEvents["
|
|
67
|
-
GridEvents["
|
|
68
|
-
GridEvents["
|
|
66
|
+
GridEvents["pipeProcessorRegister"] = "pipeProcessorRegister";
|
|
67
|
+
GridEvents["pipeProcessorUnregister"] = "pipeProcessorUnregister";
|
|
68
|
+
GridEvents["activeStrategyProcessorChange"] = "activeStrategyProcessorChange";
|
|
69
|
+
GridEvents["strategyAvailabilityChange"] = "strategyAvailabilityChange";
|
|
69
70
|
GridEvents["sortModelChange"] = "sortModelChange";
|
|
70
71
|
GridEvents["filterModelChange"] = "filterModelChange";
|
|
71
72
|
GridEvents["columnVisibilityModelChange"] = "columnVisibilityModelChange";
|
|
72
73
|
GridEvents["stateChange"] = "stateChange";
|
|
73
74
|
GridEvents["columnVisibilityChange"] = "columnVisibilityChange";
|
|
74
75
|
GridEvents["virtualScrollerContentSizeChange"] = "virtualScrollerContentSizeChange";
|
|
76
|
+
GridEvents["preferencePanelClose"] = "preferencePanelClose";
|
|
77
|
+
GridEvents["preferencePanelOpen"] = "preferencePanelOpen";
|
|
75
78
|
})(GridEvents || (GridEvents = {}));
|
|
76
79
|
|
|
77
80
|
export { GridEvents };
|
package/models/gridCell.d.ts
CHANGED
|
@@ -8,6 +8,7 @@ export declare type GridCellMode = 'edit' | 'view';
|
|
|
8
8
|
export declare type GridRowMode = 'edit' | 'view';
|
|
9
9
|
/**
|
|
10
10
|
* The cell value type.
|
|
11
|
+
* @deprecated Use `any` or the V generic passed to most interfaces.
|
|
11
12
|
*/
|
|
12
13
|
export declare type GridCellValue = string | number | boolean | Date | null | undefined | object;
|
|
13
14
|
/**
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
value: GridCellValue;
|
|
1
|
+
export interface GridEditCellProps<V = any> {
|
|
2
|
+
value: V | undefined;
|
|
4
3
|
isValidating?: boolean;
|
|
4
|
+
isProcessingProps?: boolean;
|
|
5
5
|
[prop: string]: any;
|
|
6
6
|
}
|
|
7
7
|
export declare type GridEditRowProps = {
|
|
@@ -10,6 +10,7 @@ export declare type GridEditRowProps = {
|
|
|
10
10
|
export declare type GridEditRowsModel = {
|
|
11
11
|
[rowId: string]: GridEditRowProps;
|
|
12
12
|
};
|
|
13
|
+
export declare type GridEditingState = GridEditRowsModel;
|
|
13
14
|
export declare type GridEditMode = 'cell' | 'row';
|
|
14
15
|
declare enum GridEditModes {
|
|
15
16
|
Cell = "cell",
|