@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
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,193 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## 5.8.0
|
|
7
|
+
<!-- generated comparing v5.7.0..master -->
|
|
8
|
+
_Apr 4, 2022_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🚀 Expose new methods to save and restore the grid state (#4028) @flaviendelangle
|
|
13
|
+
|
|
14
|
+
The different methods to save and restore the data-grid state are now [documented](mui.com/components/data-grid/state/#save-and-restore-the-state)
|
|
15
|
+
|
|
16
|
+
- ⌚️ Move date and time picker components from the lab (#3451) @flaviendelangle
|
|
17
|
+
|
|
18
|
+
Date and time picker components have been moved to the MUI-X repo.
|
|
19
|
+
They are now accessible in their own packages: `@mui/x-date-pickers` and `@mui/x-date-pickers-pro`.
|
|
20
|
+
For more information, you can read the [blog article](https://mui.com/blog/lab-pickers-to-mui-x) and the [migration guide](https://mui.com/x/react-date-pickers/migration-lab)
|
|
21
|
+
|
|
22
|
+
- 📝 Add `onProcessRowUpdateError` prop to simplify error management in edit mode (#4267) @m4theushw
|
|
23
|
+
- ✨ Add generic typing to `GridColDef` and derived interfaces (#4064) @flaviendelangle
|
|
24
|
+
|
|
25
|
+
You can now strongly type all the objects related to the row and the cell values.
|
|
26
|
+
Here is an example, you can find out more in the description of #4064.
|
|
27
|
+
|
|
28
|
+
```tsx
|
|
29
|
+
const rows: Movie[] = [];
|
|
30
|
+
|
|
31
|
+
return (
|
|
32
|
+
<DataGrid
|
|
33
|
+
rows={rows}
|
|
34
|
+
columns={[{
|
|
35
|
+
// typeof params.row => Movie (R)
|
|
36
|
+
valueGetter: params => params.row.year,
|
|
37
|
+
}]}
|
|
38
|
+
/>
|
|
39
|
+
);
|
|
40
|
+
```
|
|
41
|
+
|
|
42
|
+
### `@mui/x-data-grid@v5.8.0` / `@mui/x-data-grid-pro@v5.8.0`
|
|
43
|
+
|
|
44
|
+
#### Changes
|
|
45
|
+
|
|
46
|
+
- [DataGrid] Add `onProcessRowUpdateError` prop (#4267) @m4theushw
|
|
47
|
+
- [DataGrid] Add generic typing to `GridColDef` and derived interfaces (#4064) @flaviendelangle
|
|
48
|
+
- [DataGrid] Add missing classes on `gridClasses` and `gridPanelClasses` (#4273) @flaviendelangle
|
|
49
|
+
- [DataGrid] Add `onPreferencePanelClose`/`onPreferencePanelOpen` props (#4265) @kyeongsoosoo
|
|
50
|
+
- [DataGrid] Add slot for filter icon button (#4276) @m4theushw
|
|
51
|
+
- [DataGrid] Add the documentation of the portable state (#4028) @flaviendelangle
|
|
52
|
+
- [DataGrid] Allow to use keyboard navigation even with no rows (#4302) @alexfauquette
|
|
53
|
+
- [DataGrid] Fix inconsistency in the border of the last column (#4224) @alexfauquette
|
|
54
|
+
- [DataGrid] Fix overlay blocking scrollbar when rows is empty (#4281) @m4theushw
|
|
55
|
+
- [DataGrid] Improve selection with keyboard (#4157) @flaviendelangle
|
|
56
|
+
- [DataGrid] Scroll to the top of the page when changing page (#4272) @flaviendelangle
|
|
57
|
+
- [l10n] Improve Danish (da-DK) locale (#4271) @simplenotezy
|
|
58
|
+
|
|
59
|
+
### `@mui/x-date-pickers@v5.0.0-alpha.0` / `@mui/x-date-pickers-pro@v5.0.0-alpha.0`
|
|
60
|
+
|
|
61
|
+
#### Changes
|
|
62
|
+
|
|
63
|
+
- [DatePicker] Import date-picker components from the lab (#3451) @flaviendelangle
|
|
64
|
+
|
|
65
|
+
### Docs
|
|
66
|
+
|
|
67
|
+
- [docs] Create an home page for "Advanced Components" (#4298) @flaviendelangle
|
|
68
|
+
- [docs] Update installation docs (#4259) @cherniavskii
|
|
69
|
+
- [docs] New page for the migration of date and time pickers from the lab (#4327) @flaviendelangle
|
|
70
|
+
|
|
71
|
+
### Core
|
|
72
|
+
|
|
73
|
+
- [core] Fix typo in issue template @oliviertassinari
|
|
74
|
+
- [core] Move last variables outside of the models folder (#4303) @flaviendelangle
|
|
75
|
+
- [core] Remove dead code (#4283) @oliviertassinari
|
|
76
|
+
- [core] Rename the "pre-processing" concept "pipe-processing" (#4261) @flaviendelangle
|
|
77
|
+
- [core] Reuse previous state when updating the columns prop (#4229) @m4theushw
|
|
78
|
+
- [core] Fix Argos flakyness for pickers tests (#4312) @flaviendelangle
|
|
79
|
+
|
|
80
|
+
## 5.7.0
|
|
81
|
+
|
|
82
|
+
_Mar 24, 2022_
|
|
83
|
+
|
|
84
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
85
|
+
|
|
86
|
+
- ✏ Add a new editing API with better support for server-side persistence and validation (#3963, #4060) @m4theushw
|
|
87
|
+
|
|
88
|
+
The new API is stable, but to avoid any breaking changes or conflicts with the old API, you must add the following flag to access it:
|
|
89
|
+
|
|
90
|
+
```tsx
|
|
91
|
+
<DataGrid experimentalFeatures={{ newEditingApi: true }} />
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
⚠ Users relying on the old API (legacy) don't need to worry as it will continue to work until v6.
|
|
95
|
+
|
|
96
|
+
The new API also features brand new documentation with more useful demos and guides explaining how to create custom edit components.
|
|
97
|
+
Visit the new [documentation](https://mui.com/components/data-grid/editing/) for more information.
|
|
98
|
+
|
|
99
|
+
- 📚 Documentation improvements
|
|
100
|
+
- 🐞 Bug and typo fixes
|
|
101
|
+
|
|
102
|
+
### `@mui/x-data-grid@v5.7.0` / `@mui/x-data-grid-pro@v5.7.0`
|
|
103
|
+
|
|
104
|
+
#### Changes
|
|
105
|
+
|
|
106
|
+
- [DataGrid] Add column order and dimensions to the portable state (#3816) @flaviendelangle
|
|
107
|
+
- [DataGrid] Add new editing API (#3963) @m4theushw
|
|
108
|
+
- [DataGrid] Allow to customize `ColumnsPanel` with `componentsProps` prop (#4207) @alexfauquette
|
|
109
|
+
- [DataGrid] Do not unselect row when <kbd>Shift</kbd> + click on the last selected row of a range (#4196) @flaviendelangle
|
|
110
|
+
- [DataGrid] Fix `showCellRightBorder` not working in the last row (#4140) @cherniavskii
|
|
111
|
+
- [DataGrid] Fix error overlay not visible when `autoHeight` is enabled (#4110) @cherniavskii
|
|
112
|
+
- [DataGrid] Fix white blank when scrolling (#4158) @alexfauquette
|
|
113
|
+
- [DataGrid] Adjust type of the `description` prop in `GridColumnHeaderTitle` (#4247) @baahrens
|
|
114
|
+
- [DataGrid] Fix focus after stopping row edit mode (#4252) @m4theushw
|
|
115
|
+
- [DataGridPro] Fix pinned columns edge overflow with custom `borderRadius` (#4188) @socramm9
|
|
116
|
+
- [DataGridPro] Fix tab switching order with pinned columns and `editMode="row"` (#4198) @cherniavskii
|
|
117
|
+
- [l10n] Improve Persian (fa-IR) locale (#4227) @SaeedZhiany
|
|
118
|
+
- [l10n] Improve Polish (pl-PL) locale (#4153) @pbmchc
|
|
119
|
+
- [l10n] Improve Arabic (ar-SD) locale (#4212) @shadigaafar
|
|
120
|
+
- [l10n] Improve Korean (ko-KR) locale (#4245) @kyeongsoosoo
|
|
121
|
+
|
|
122
|
+
### Docs
|
|
123
|
+
|
|
124
|
+
- [docs] Clean demo (#4073) @alexfauquette
|
|
125
|
+
- [docs] Delete restore state demos (#4220) @flaviendelangle
|
|
126
|
+
- [docs] Document Print export `X-Frame-Options` limitation (#4222) @DanailH
|
|
127
|
+
- [docs] Add docs for the new editing API (#4060) @m4theushw
|
|
128
|
+
- [docs] Explain how to use `printOptions.pageStyle` (#4138) @alexfauquette
|
|
129
|
+
- [docs] Fix 301 links (#4165) @oliviertassinari
|
|
130
|
+
- [docs] Fix 404 API links (#4164) @oliviertassinari
|
|
131
|
+
- [docs] Fix broken anchor links (#4162) @alexfauquette
|
|
132
|
+
- [docs] Remove useless `apiRef` from demos (#4221) @flaviendelangle
|
|
133
|
+
- [docs] Sync the headers with core (#4195) @oliviertassinari
|
|
134
|
+
|
|
135
|
+
### Core
|
|
136
|
+
|
|
137
|
+
- [core] Add CLI to decode license key (#4126) @flaviendelangle
|
|
138
|
+
- [core] Fix Lerna package change detection (#4202) @oliviertassinari
|
|
139
|
+
- [core] Implement strategy pattern for pre-processors (#4030) @flaviendelangle
|
|
140
|
+
- [core] Keep same reference to the column visibility model if no column has changed (#4154) @m4theushw
|
|
141
|
+
- [core] Prepare `@mui/x-license-pro` for date pickers (#4123) @flaviendelangle
|
|
142
|
+
- [core] Remove datagen from `@mui/x-data-grid-generator` bundle (#4163) @m4theushw
|
|
143
|
+
- [core] Remove lodash `isDeepEqual` (#4159) @flaviendelangle
|
|
144
|
+
- [core] Use a pipe processor for `GridPreferencePanel` children (#4216) @flaviendelangle
|
|
145
|
+
- [core] Add markdown documentation for contributors (#3447) @alexfauquette
|
|
146
|
+
- [test] Add regression test for `showCellRightBorder` (#4191) @cherniavskii
|
|
147
|
+
- [test] Mock `getComputedStyle` to speed up unit tests (#4142) @m4theushw
|
|
148
|
+
- [test] Upgrade CircleCI convenience image (#4143) @m4theushw
|
|
149
|
+
|
|
150
|
+
## 5.6.1
|
|
151
|
+
|
|
152
|
+
_Mar 10, 2022_
|
|
153
|
+
|
|
154
|
+
We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
|
|
155
|
+
|
|
156
|
+
- ✨ Allow to add margins or borders between rows (#3848) @m4theushw
|
|
157
|
+
|
|
158
|
+
```tsx
|
|
159
|
+
<DataGrid getRowSpacing={() => ({ top: 10, bottom: 10 })} />
|
|
160
|
+
```
|
|
161
|
+
|
|
162
|
+
Check the [documentation](https://mui.com/components/data-grid/rows/#row-spacing) for more information.
|
|
163
|
+
|
|
164
|
+
### `@mui/x-data-grid@v5.6.1` / `@mui/x-data-grid-pro@v5.6.1`
|
|
165
|
+
|
|
166
|
+
#### Changes
|
|
167
|
+
|
|
168
|
+
- [DataGrid] Display column's filter icon if a filter is applied (#4120) @DanailH
|
|
169
|
+
- [DataGrid] Do not loop through rows to compute top level rows count when the tree is flat (#4081) @flaviendelangle
|
|
170
|
+
- [DataGrid] Rename API method (#4148) @m4theushw
|
|
171
|
+
- [DataGrid] Support extending built-in column types (#4114) @cherniavskii
|
|
172
|
+
- [DataGridPro] Re-export the components removed by mistake during bundle split (#4134) @flaviendelangle
|
|
173
|
+
|
|
174
|
+
### Docs
|
|
175
|
+
|
|
176
|
+
- [docs] Fix links to prevent duplicate search result (#4130) @siriwatknp
|
|
177
|
+
- [docs] Fix outdated links to `localeTextConstants.ts` (#4080) @patilvishal755
|
|
178
|
+
- [docs] Neglect e2e tests related to search (#4118) @siriwatknp
|
|
179
|
+
- [docs] Use regex instead of specific url in e2e-website-tests (#4121) @siriwatknp
|
|
180
|
+
|
|
181
|
+
### Core
|
|
182
|
+
|
|
183
|
+
- [core] Enforce `noImplicitAny` (#4084) @cherniavskii
|
|
184
|
+
- [core] Improve the Pro support issue template (#4082) @oliviertassinari
|
|
185
|
+
- [core] Initialize remaining states before feature hooks (#4036) @m4theushw
|
|
186
|
+
- [core] Merge `page` and `pageSize` state initializer into a single `pagination` state initializer (#4087) @flaviendelangle
|
|
187
|
+
- [core] Prepare `yarn docs:api:build` scripts for multi packages support (#4111) @flaviendelangle
|
|
188
|
+
- [core] Upgrade `@mui/monorepo` (#4149) @cherniavskii
|
|
189
|
+
- [core] Use `buildWarning` and `wrapWithWarningOnCall` for deprecated methods and wrong usages (#4056) @flaviendelangle
|
|
190
|
+
- [test] Make focus state out-of-sync warning opt-in (#4129) @m4theushw
|
|
191
|
+
- [test] Only test custom input keyboard event in edit mode (#4075) @alexfauquette
|
|
192
|
+
|
|
6
193
|
## 5.6.0
|
|
7
194
|
|
|
8
195
|
_Mar 4, 2022_
|
package/DataGrid/DataGrid.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { DataGridProps } from '../models/props/DataGridProps';
|
|
3
|
+
import { GridValidRowModel } from '../models/gridRows';
|
|
4
|
+
interface DataGridComponent {
|
|
5
|
+
<R extends GridValidRowModel = any>(props: DataGridProps<R> & React.RefAttributes<HTMLDivElement>): JSX.Element;
|
|
6
|
+
propTypes?: any;
|
|
7
|
+
}
|
|
8
|
+
export declare const DataGrid: DataGridComponent;
|
|
9
|
+
export {};
|
package/DataGrid/DataGrid.js
CHANGED
|
@@ -79,6 +79,7 @@ DataGridRaw.propTypes = {
|
|
|
79
79
|
* Set of columns of type [[GridColumns]].
|
|
80
80
|
*/
|
|
81
81
|
columns: chainPropTypes(PropTypes.array.isRequired, props => {
|
|
82
|
+
// @ts-ignore because otherwise `build:api` doesn't work
|
|
82
83
|
if (props.columns && props.columns.some(column => column.resizable)) {
|
|
83
84
|
return new Error([`MUI: \`column.resizable = true\` is not a valid prop.`, 'Column resizing is not available in the MIT version.', '', 'You need to upgrade to the DataGridPro component to unlock this feature.'].join('\n'));
|
|
84
85
|
}
|
|
@@ -182,7 +183,9 @@ DataGridRaw.propTypes = {
|
|
|
182
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.
|
|
183
184
|
*/
|
|
184
185
|
experimentalFeatures: PropTypes.shape({
|
|
185
|
-
|
|
186
|
+
newEditingApi: PropTypes.bool,
|
|
187
|
+
preventCommitWhileValidating: PropTypes.bool,
|
|
188
|
+
warnIfFocusStateIsNotSynced: PropTypes.bool
|
|
186
189
|
}),
|
|
187
190
|
|
|
188
191
|
/**
|
|
@@ -221,7 +224,7 @@ DataGridRaw.propTypes = {
|
|
|
221
224
|
|
|
222
225
|
/**
|
|
223
226
|
* Function that applies CSS classes dynamically on rows.
|
|
224
|
-
* @param {
|
|
227
|
+
* @param {GridRowClassNameParams} params With all properties from [[GridRowClassNameParams]].
|
|
225
228
|
* @returns {string} The CSS class to apply to the row.
|
|
226
229
|
*/
|
|
227
230
|
getRowClassName: PropTypes.func,
|
|
@@ -238,6 +241,13 @@ DataGridRaw.propTypes = {
|
|
|
238
241
|
*/
|
|
239
242
|
getRowId: PropTypes.func,
|
|
240
243
|
|
|
244
|
+
/**
|
|
245
|
+
* Function that allows to specify the spacing between rows.
|
|
246
|
+
* @param {GridRowSpacingParams} params With all properties from [[GridRowSpacingParams]].
|
|
247
|
+
* @returns {GridRowSpacing} The row spacing values.
|
|
248
|
+
*/
|
|
249
|
+
getRowSpacing: PropTypes.func,
|
|
250
|
+
|
|
241
251
|
/**
|
|
242
252
|
* Set the height in pixel of the column headers in the grid.
|
|
243
253
|
* @default 56
|
|
@@ -290,7 +300,7 @@ DataGridRaw.propTypes = {
|
|
|
290
300
|
|
|
291
301
|
/**
|
|
292
302
|
* Set the locale text of the grid.
|
|
293
|
-
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/grid/x-data-grid/src/
|
|
303
|
+
* You can find all the translation keys supported in [the source](https://github.com/mui/mui-x/blob/HEAD/packages/grid/x-data-grid/src/constants/localeTextConstants.ts) in the GitHub repository.
|
|
294
304
|
*/
|
|
295
305
|
localeText: PropTypes.object,
|
|
296
306
|
|
|
@@ -488,6 +498,28 @@ DataGridRaw.propTypes = {
|
|
|
488
498
|
*/
|
|
489
499
|
onPageSizeChange: PropTypes.func,
|
|
490
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
|
+
|
|
491
523
|
/**
|
|
492
524
|
* Callback fired when the grid is resized.
|
|
493
525
|
* @param {ElementSize} containerSize With all properties from [[ElementSize]].
|
|
@@ -591,6 +623,16 @@ DataGridRaw.propTypes = {
|
|
|
591
623
|
*/
|
|
592
624
|
paginationMode: PropTypes.oneOf(['client', 'server']),
|
|
593
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
|
+
|
|
594
636
|
/**
|
|
595
637
|
* Number of extra rows to be rendered before/after the visible slice.
|
|
596
638
|
* @default 3
|
|
@@ -612,7 +654,13 @@ DataGridRaw.propTypes = {
|
|
|
612
654
|
/**
|
|
613
655
|
* Set of rows of type [[GridRowsProp]].
|
|
614
656
|
*/
|
|
615
|
-
rows: PropTypes.
|
|
657
|
+
rows: PropTypes.array.isRequired,
|
|
658
|
+
|
|
659
|
+
/**
|
|
660
|
+
* Sets the type of space between rows added by `getRowSpacing`.
|
|
661
|
+
* @default "margin"
|
|
662
|
+
*/
|
|
663
|
+
rowSpacingType: PropTypes.oneOf(['border', 'margin']),
|
|
616
664
|
|
|
617
665
|
/**
|
|
618
666
|
* Select the pageSize dynamically using the component UI.
|
|
@@ -1,63 +1,71 @@
|
|
|
1
1
|
import { useGridInitialization } from '../hooks/core/useGridInitialization';
|
|
2
2
|
import { useGridInitializeState } from '../hooks/utils/useGridInitializeState';
|
|
3
3
|
import { useGridClipboard } from '../hooks/features/clipboard/useGridClipboard';
|
|
4
|
-
import { useGridColumnMenu } from '../hooks/features/columnMenu/useGridColumnMenu';
|
|
4
|
+
import { columnMenuStateInitializer, useGridColumnMenu } from '../hooks/features/columnMenu/useGridColumnMenu';
|
|
5
5
|
import { useGridColumns, columnsStateInitializer } from '../hooks/features/columns/useGridColumns';
|
|
6
|
-
import { useGridDensity } from '../hooks/features/density/useGridDensity';
|
|
6
|
+
import { densityStateInitializer, useGridDensity } from '../hooks/features/density/useGridDensity';
|
|
7
7
|
import { useGridCsvExport } from '../hooks/features/export/useGridCsvExport';
|
|
8
8
|
import { useGridPrintExport } from '../hooks/features/export/useGridPrintExport';
|
|
9
9
|
import { useGridFilter, filterStateInitializer } from '../hooks/features/filter/useGridFilter';
|
|
10
|
-
import { useGridFocus } from '../hooks/features/focus/useGridFocus';
|
|
11
|
-
import {
|
|
12
|
-
import {
|
|
13
|
-
import {
|
|
14
|
-
import {
|
|
15
|
-
import {
|
|
16
|
-
import { useGridPreferencesPanel } from '../hooks/features/preferencesPanel/useGridPreferencesPanel';
|
|
17
|
-
import { useGridEditing } from '../hooks/features/editRows/useGridEditing';
|
|
10
|
+
import { focusStateInitializer, useGridFocus } from '../hooks/features/focus/useGridFocus';
|
|
11
|
+
import { useGridKeyboardNavigation } from '../hooks/features/keyboardNavigation/useGridKeyboardNavigation';
|
|
12
|
+
import { useGridPagination, paginationStateInitializer } from '../hooks/features/pagination/useGridPagination';
|
|
13
|
+
import { useGridPreferencesPanel, preferencePanelStateInitializer } from '../hooks/features/preferencesPanel/useGridPreferencesPanel';
|
|
14
|
+
import { useGridEditing as useGridEditing_old, editingStateInitializer as editingStateInitializer_old } from '../hooks/features/editRows/useGridEditing.old';
|
|
15
|
+
import { useGridEditing as useGridEditing_new, editingStateInitializer as editingStateInitializer_new } from '../hooks/features/editRows/useGridEditing.new';
|
|
18
16
|
import { useGridRows, rowsStateInitializer } from '../hooks/features/rows/useGridRows';
|
|
17
|
+
import { useGridRowsPreProcessors } from '../hooks/features/rows/useGridRowsPreProcessors';
|
|
19
18
|
import { useGridParamsApi } from '../hooks/features/rows/useGridParamsApi';
|
|
20
|
-
import { useGridSelection } from '../hooks/features/selection/useGridSelection';
|
|
19
|
+
import { selectionStateInitializer, useGridSelection } from '../hooks/features/selection/useGridSelection';
|
|
21
20
|
import { useGridSelectionPreProcessors } from '../hooks/features/selection/useGridSelectionPreProcessors';
|
|
22
21
|
import { useGridSorting, sortingStateInitializer } from '../hooks/features/sorting/useGridSorting';
|
|
23
22
|
import { useGridScroll } from '../hooks/features/scroll/useGridScroll';
|
|
24
23
|
import { useGridEvents } from '../hooks/features/events/useGridEvents';
|
|
25
24
|
import { useGridDimensions } from '../hooks/features/dimensions/useGridDimensions';
|
|
26
|
-
import { useGridRowsMeta } from '../hooks/features/rows/useGridRowsMeta';
|
|
25
|
+
import { rowsMetaStateInitializer, useGridRowsMeta } from '../hooks/features/rows/useGridRowsMeta';
|
|
27
26
|
import { useGridStatePersistence } from '../hooks/features/statePersistence/useGridStatePersistence';
|
|
28
27
|
export const useDataGridComponent = props => {
|
|
28
|
+
var _props$experimentalFe, _props$experimentalFe2;
|
|
29
|
+
|
|
29
30
|
const apiRef = useGridInitialization(undefined, props);
|
|
30
31
|
/**
|
|
31
32
|
* Register all pre-processors called during state initialization here.
|
|
32
33
|
*/
|
|
33
34
|
|
|
34
35
|
useGridSelectionPreProcessors(apiRef, props);
|
|
36
|
+
useGridRowsPreProcessors(apiRef);
|
|
35
37
|
/**
|
|
36
38
|
* Register all state initializers here.
|
|
37
39
|
*/
|
|
38
40
|
|
|
39
|
-
useGridInitializeState(
|
|
40
|
-
useGridInitializeState(
|
|
41
|
-
useGridInitializeState(pageStateInitializer, apiRef, props);
|
|
41
|
+
useGridInitializeState(selectionStateInitializer, apiRef, props);
|
|
42
|
+
useGridInitializeState(columnsStateInitializer, apiRef, props);
|
|
42
43
|
useGridInitializeState(rowsStateInitializer, apiRef, props);
|
|
44
|
+
useGridInitializeState((_props$experimentalFe = props.experimentalFeatures) != null && _props$experimentalFe.newEditingApi ? editingStateInitializer_new : editingStateInitializer_old, apiRef, props);
|
|
45
|
+
useGridInitializeState(focusStateInitializer, apiRef, props);
|
|
43
46
|
useGridInitializeState(sortingStateInitializer, apiRef, props);
|
|
44
|
-
useGridInitializeState(
|
|
47
|
+
useGridInitializeState(preferencePanelStateInitializer, apiRef, props);
|
|
48
|
+
useGridInitializeState(filterStateInitializer, apiRef, props);
|
|
49
|
+
useGridInitializeState(densityStateInitializer, apiRef, props);
|
|
50
|
+
useGridInitializeState(paginationStateInitializer, apiRef, props);
|
|
51
|
+
useGridInitializeState(rowsMetaStateInitializer, apiRef, props);
|
|
52
|
+
useGridInitializeState(columnMenuStateInitializer, apiRef, props);
|
|
53
|
+
useGridKeyboardNavigation(apiRef, props);
|
|
45
54
|
useGridSelection(apiRef, props);
|
|
46
55
|
useGridColumns(apiRef, props);
|
|
47
56
|
useGridRows(apiRef, props);
|
|
48
57
|
useGridParamsApi(apiRef);
|
|
58
|
+
const useGridEditing = (_props$experimentalFe2 = props.experimentalFeatures) != null && _props$experimentalFe2.newEditingApi ? useGridEditing_new : useGridEditing_old;
|
|
49
59
|
useGridEditing(apiRef, props);
|
|
50
60
|
useGridFocus(apiRef, props);
|
|
51
61
|
useGridSorting(apiRef, props);
|
|
52
|
-
useGridPreferencesPanel(apiRef
|
|
62
|
+
useGridPreferencesPanel(apiRef);
|
|
53
63
|
useGridFilter(apiRef, props);
|
|
54
64
|
useGridDensity(apiRef, props);
|
|
55
65
|
useGridPagination(apiRef, props);
|
|
56
66
|
useGridRowsMeta(apiRef, props);
|
|
57
67
|
useGridScroll(apiRef, props);
|
|
58
68
|
useGridColumnMenu(apiRef);
|
|
59
|
-
useGridKeyboard(apiRef);
|
|
60
|
-
useGridKeyboardNavigation(apiRef, props);
|
|
61
69
|
useGridCsvExport(apiRef);
|
|
62
70
|
useGridPrintExport(apiRef, props);
|
|
63
71
|
useGridClipboard(apiRef);
|
|
@@ -1,7 +1,8 @@
|
|
|
1
1
|
import { DataGridProcessedProps, DataGridProps, DataGridPropsWithDefaultValues } from '../models/props/DataGridProps';
|
|
2
|
+
import { GridValidRowModel } from '../models';
|
|
2
3
|
export declare const MAX_PAGE_SIZE = 100;
|
|
3
4
|
/**
|
|
4
5
|
* The default values of `DataGridPropsWithDefaultValues` to inject in the props of DataGrid.
|
|
5
6
|
*/
|
|
6
7
|
export declare const DATA_GRID_PROPS_DEFAULT_VALUES: DataGridPropsWithDefaultValues;
|
|
7
|
-
export declare const useDataGridProps: (inProps: DataGridProps) => DataGridProcessedProps
|
|
8
|
+
export declare const useDataGridProps: <R extends GridValidRowModel>(inProps: DataGridProps<R>) => DataGridProcessedProps<R>;
|
|
@@ -54,6 +54,7 @@ export const DATA_GRID_PROPS_DEFAULT_VALUES = {
|
|
|
54
54
|
paginationMode: GridFeatureModeConstant.client,
|
|
55
55
|
rowHeight: 52,
|
|
56
56
|
rowsPerPageOptions: [25, 50, 100],
|
|
57
|
+
rowSpacingType: 'margin',
|
|
57
58
|
showCellRightBorder: false,
|
|
58
59
|
showColumnRightBorder: false,
|
|
59
60
|
sortingOrder: ['asc', 'desc', null],
|
|
@@ -80,8 +81,8 @@ export const useDataGridProps = inProps => {
|
|
|
80
81
|
}
|
|
81
82
|
|
|
82
83
|
const mergedComponents = {};
|
|
83
|
-
Object.
|
|
84
|
-
mergedComponents[key] = overrides[key] === undefined ?
|
|
84
|
+
Object.entries(DATA_GRID_DEFAULT_SLOTS_COMPONENTS).forEach(([key, defaultComponent]) => {
|
|
85
|
+
mergedComponents[key] = overrides[key] === undefined ? defaultComponent : overrides[key];
|
|
85
86
|
});
|
|
86
87
|
return mergedComponents;
|
|
87
88
|
}, [themedProps.components]);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { GridColTypeDef } from '../models/colDef/gridColDef';
|
|
2
|
-
export declare const GRID_BOOLEAN_COL_DEF: GridColTypeDef
|
|
2
|
+
export declare const GRID_BOOLEAN_COL_DEF: GridColTypeDef<boolean | null, any>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { GridFilterOperator } from '../models/gridFilterOperator';
|
|
2
|
-
export declare const getGridBooleanOperators: () => GridFilterOperator[];
|
|
2
|
+
export declare const getGridBooleanOperators: () => GridFilterOperator<any, boolean | null, any>[];
|
|
@@ -1,10 +1,6 @@
|
|
|
1
|
-
import { GridCellValue } from '../models/gridCell';
|
|
2
1
|
import { GridColTypeDef } from '../models/colDef/gridColDef';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
export declare
|
|
7
|
-
|
|
8
|
-
}): string | number | boolean | object | null | undefined;
|
|
9
|
-
export declare const GRID_DATE_COL_DEF: GridColTypeDef;
|
|
10
|
-
export declare const GRID_DATETIME_COL_DEF: GridColTypeDef;
|
|
2
|
+
import { GridValueFormatterParams } from '../models/params/gridCellParams';
|
|
3
|
+
export declare function gridDateFormatter({ value }: GridValueFormatterParams<Date | string>): string;
|
|
4
|
+
export declare function gridDateTimeFormatter({ value }: GridValueFormatterParams<Date | string>): string;
|
|
5
|
+
export declare const GRID_DATE_COL_DEF: GridColTypeDef<Date | string, string>;
|
|
6
|
+
export declare const GRID_DATETIME_COL_DEF: GridColTypeDef<Date | string, string>;
|
package/colDef/gridDateColDef.js
CHANGED
|
@@ -10,7 +10,7 @@ export function gridDateFormatter({
|
|
|
10
10
|
return value.toLocaleDateString();
|
|
11
11
|
}
|
|
12
12
|
|
|
13
|
-
return value;
|
|
13
|
+
return value != null ? value : '';
|
|
14
14
|
}
|
|
15
15
|
export function gridDateTimeFormatter({
|
|
16
16
|
value
|
|
@@ -19,7 +19,7 @@ export function gridDateTimeFormatter({
|
|
|
19
19
|
return value.toLocaleString();
|
|
20
20
|
}
|
|
21
21
|
|
|
22
|
-
return value;
|
|
22
|
+
return value != null ? value : '';
|
|
23
23
|
}
|
|
24
24
|
export const GRID_DATE_COL_DEF = _extends({}, GRID_STRING_COL_DEF, {
|
|
25
25
|
type: 'date',
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { GridFilterOperator } from '../models/gridFilterOperator';
|
|
2
|
-
export declare const getGridDateOperators: (showTime?: boolean | undefined) => GridFilterOperator[];
|
|
2
|
+
export declare const getGridDateOperators: (showTime?: boolean | undefined) => GridFilterOperator<any, string | number | Date, any>[];
|
|
@@ -1,3 +1,3 @@
|
|
|
1
|
-
import { GridColumnTypesRecord } from '
|
|
1
|
+
import { GridColumnTypesRecord } from '../models/colDef/gridColumnTypesRecord';
|
|
2
2
|
export declare const DEFAULT_GRID_COL_TYPE_KEY = "__default__";
|
|
3
3
|
export declare const getGridDefaultColumnTypes: () => GridColumnTypesRecord;
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
import { GRID_STRING_COL_DEF } from './gridStringColDef';
|
|
2
|
+
import { GRID_NUMERIC_COL_DEF } from './gridNumericColDef';
|
|
3
|
+
import { GRID_DATE_COL_DEF, GRID_DATETIME_COL_DEF } from './gridDateColDef';
|
|
4
|
+
import { GRID_BOOLEAN_COL_DEF } from './gridBooleanColDef';
|
|
5
|
+
import { GRID_SINGLE_SELECT_COL_DEF } from './gridSingleSelectColDef';
|
|
6
|
+
import { GRID_ACTIONS_COL_DEF, GRID_ACTIONS_COLUMN_TYPE } from './gridActionsColDef';
|
|
7
|
+
export const DEFAULT_GRID_COL_TYPE_KEY = '__default__';
|
|
8
|
+
export const getGridDefaultColumnTypes = () => {
|
|
9
|
+
const nativeColumnTypes = {
|
|
10
|
+
string: GRID_STRING_COL_DEF,
|
|
11
|
+
number: GRID_NUMERIC_COL_DEF,
|
|
12
|
+
date: GRID_DATE_COL_DEF,
|
|
13
|
+
dateTime: GRID_DATETIME_COL_DEF,
|
|
14
|
+
boolean: GRID_BOOLEAN_COL_DEF,
|
|
15
|
+
singleSelect: GRID_SINGLE_SELECT_COL_DEF,
|
|
16
|
+
[GRID_ACTIONS_COLUMN_TYPE]: GRID_ACTIONS_COL_DEF,
|
|
17
|
+
[DEFAULT_GRID_COL_TYPE_KEY]: GRID_STRING_COL_DEF
|
|
18
|
+
};
|
|
19
|
+
return nativeColumnTypes;
|
|
20
|
+
};
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { GridColTypeDef } from '../models/colDef/gridColDef';
|
|
2
|
-
export declare const GRID_NUMERIC_COL_DEF: GridColTypeDef
|
|
2
|
+
export declare const GRID_NUMERIC_COL_DEF: GridColTypeDef<number | string | null, string>;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { GridFilterOperator } from '../models/gridFilterOperator';
|
|
2
|
-
export declare const getGridNumericOperators: () => GridFilterOperator[];
|
|
2
|
+
export declare const getGridNumericOperators: () => GridFilterOperator<any, number | string | null, any>[];
|
|
3
3
|
/**
|
|
4
4
|
* @deprecated Use `getGridNumericOperators` instead.
|
|
5
5
|
*/
|
|
6
|
-
export declare const getGridNumericColumnOperators: () => GridFilterOperator[];
|
|
6
|
+
export declare const getGridNumericColumnOperators: (() => GridFilterOperator<any, number | string | null, any>[]) | ((...args: any[]) => any);
|
|
@@ -174,4 +174,4 @@ export const getGridNumericOperators = () => [{
|
|
|
174
174
|
* @deprecated Use `getGridNumericOperators` instead.
|
|
175
175
|
*/
|
|
176
176
|
|
|
177
|
-
export const getGridNumericColumnOperators = wrapWithWarningOnCall(getGridNumericOperators, 'MUI:
|
|
177
|
+
export const getGridNumericColumnOperators = wrapWithWarningOnCall(getGridNumericOperators, ['MUI: The method getGridNumericColumnOperators is deprecated and will be removed in the next major version.', 'Use getGridNumericOperators instead.']);
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { GridColTypeDef } from '../models/colDef/gridColDef';
|
|
2
|
-
export declare const GRID_STRING_COL_DEF: GridColTypeDef
|
|
2
|
+
export declare const GRID_STRING_COL_DEF: GridColTypeDef<any, any>;
|
|
@@ -1,2 +1,2 @@
|
|
|
1
1
|
import { GridFilterOperator } from '../models/gridFilterOperator';
|
|
2
|
-
export declare const getGridStringOperators: () => GridFilterOperator[];
|
|
2
|
+
export declare const getGridStringOperators: () => GridFilterOperator<any, number | string | null, any>[];
|
package/colDef/index.d.ts
CHANGED
package/colDef/index.js
CHANGED
|
@@ -9,4 +9,5 @@ export * from './gridBooleanOperators';
|
|
|
9
9
|
export * from './gridDateOperators';
|
|
10
10
|
export * from './gridNumericOperators';
|
|
11
11
|
export * from './gridSingleSelectOperators';
|
|
12
|
-
export * from './gridStringOperators';
|
|
12
|
+
export * from './gridStringOperators';
|
|
13
|
+
export * from './gridDefaultColumnTypes';
|
|
@@ -10,9 +10,9 @@ export interface ErrorBoundaryProps {
|
|
|
10
10
|
componentProps?: any[];
|
|
11
11
|
}
|
|
12
12
|
export declare class ErrorBoundary extends React.Component<ErrorBoundaryProps, any> {
|
|
13
|
-
static getDerivedStateFromError(error:
|
|
13
|
+
static getDerivedStateFromError(error: Error): {
|
|
14
14
|
hasError: boolean;
|
|
15
|
-
error:
|
|
15
|
+
error: Error;
|
|
16
16
|
};
|
|
17
17
|
componentDidCatch(error: Error, errorInfo: ErrorInfo): void;
|
|
18
18
|
logError(error: Error, errorInfo?: ErrorInfo): void;
|
|
@@ -4,6 +4,8 @@ const _excluded = ["message", "hasError", "errorInfo"];
|
|
|
4
4
|
import * as React from 'react';
|
|
5
5
|
import { useGridApiContext } from '../hooks/utils/useGridApiContext';
|
|
6
6
|
import { GridOverlay } from './containers/GridOverlay';
|
|
7
|
+
import { useGridSelector } from '../hooks/utils/useGridSelector';
|
|
8
|
+
import { gridDensityRowHeightSelector } from '../hooks/features/density/densitySelector';
|
|
7
9
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
8
10
|
// TODO v6: rename to GridErrorOverlay
|
|
9
11
|
export const ErrorOverlay = /*#__PURE__*/React.forwardRef(function ErrorOverlay(props, ref) {
|
|
@@ -14,8 +16,13 @@ export const ErrorOverlay = /*#__PURE__*/React.forwardRef(function ErrorOverlay(
|
|
|
14
16
|
|
|
15
17
|
const apiRef = useGridApiContext();
|
|
16
18
|
const defaultLabel = apiRef.current.getLocaleText('errorOverlayDefaultLabel');
|
|
19
|
+
const rowHeight = useGridSelector(apiRef, gridDensityRowHeightSelector);
|
|
17
20
|
return /*#__PURE__*/_jsx(GridOverlay, _extends({
|
|
18
|
-
ref: ref
|
|
21
|
+
ref: ref,
|
|
22
|
+
sx: {
|
|
23
|
+
width: '100%',
|
|
24
|
+
minHeight: 2 * rowHeight
|
|
25
|
+
}
|
|
19
26
|
}, other, {
|
|
20
27
|
children: message || defaultLabel
|
|
21
28
|
}));
|
|
@@ -1,3 +1,5 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
2
|
+
declare const GridLoadingOverlay: React.ForwardRefExoticComponent<React.HTMLAttributes<HTMLDivElement> & {
|
|
3
|
+
sx?: import("@mui/system").SxProps<import("@mui/material").Theme> | undefined;
|
|
4
|
+
} & React.RefAttributes<HTMLDivElement>>;
|
|
5
|
+
export { GridLoadingOverlay };
|
|
@@ -1,12 +1,21 @@
|
|
|
1
1
|
import _extends from "@babel/runtime/helpers/esm/extends";
|
|
2
2
|
import * as React from 'react';
|
|
3
|
+
import PropTypes from 'prop-types';
|
|
3
4
|
import CircularProgress from '@mui/material/CircularProgress';
|
|
4
5
|
import { GridOverlay } from './containers/GridOverlay';
|
|
5
6
|
import { jsx as _jsx } from "react/jsx-runtime";
|
|
6
|
-
|
|
7
|
+
const GridLoadingOverlay = /*#__PURE__*/React.forwardRef(function GridLoadingOverlay(props, ref) {
|
|
7
8
|
return /*#__PURE__*/_jsx(GridOverlay, _extends({
|
|
8
9
|
ref: ref
|
|
9
10
|
}, props, {
|
|
10
11
|
children: /*#__PURE__*/_jsx(CircularProgress, {})
|
|
11
12
|
}));
|
|
12
|
-
});
|
|
13
|
+
});
|
|
14
|
+
process.env.NODE_ENV !== "production" ? GridLoadingOverlay.propTypes = {
|
|
15
|
+
// ----------------------------- Warning --------------------------------
|
|
16
|
+
// | These PropTypes are generated from the TypeScript type definitions |
|
|
17
|
+
// | To update them edit the TypeScript types and run "yarn proptypes" |
|
|
18
|
+
// ----------------------------------------------------------------------
|
|
19
|
+
sx: PropTypes.oneOfType([PropTypes.arrayOf(PropTypes.oneOfType([PropTypes.func, PropTypes.object, PropTypes.bool])), PropTypes.func, PropTypes.object])
|
|
20
|
+
} : void 0;
|
|
21
|
+
export { GridLoadingOverlay };
|