@mui/x-data-grid 6.0.0-alpha.1 → 6.0.0-alpha.10
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 +1306 -149
- package/DataGrid/DataGrid.js +22 -150
- package/DataGrid/useDataGridComponent.d.ts +2 -2
- package/DataGrid/useDataGridComponent.js +43 -49
- package/DataGrid/useDataGridProps.js +8 -9
- package/colDef/gridBooleanColDef.js +0 -2
- package/colDef/gridBooleanOperators.js +0 -1
- package/colDef/gridCheckboxSelectionColDef.js +1 -1
- package/colDef/gridDateColDef.js +0 -2
- package/colDef/gridDateOperators.js +2 -7
- package/colDef/gridNumericOperators.d.ts +1 -5
- package/colDef/gridNumericOperators.js +1 -22
- package/colDef/gridSingleSelectOperators.d.ts +1 -1
- package/colDef/gridSingleSelectOperators.js +0 -12
- package/colDef/gridStringColDef.js +1 -1
- package/colDef/gridStringOperators.d.ts +1 -1
- package/colDef/gridStringOperators.js +0 -6
- package/components/DataGridColumnHeaders.js +3 -4
- package/components/DataGridVirtualScroller.js +4 -5
- package/components/ErrorBoundary.d.ts +0 -1
- package/components/ErrorBoundary.js +3 -8
- package/components/GridApiContext.js +0 -1
- package/components/GridAutoSizer.d.ts +1 -1
- package/components/GridAutoSizer.js +16 -31
- package/components/GridErrorOverlay.d.ts +8 -0
- package/{modern/components/ErrorOverlay.js → components/GridErrorOverlay.js} +6 -8
- package/components/GridFooter.js +1 -4
- package/components/GridHeader.js +0 -1
- package/components/GridPagination.d.ts +2 -2
- package/components/GridPagination.js +0 -6
- package/components/GridRow.js +56 -94
- package/components/GridRowCount.js +6 -11
- package/components/GridScrollArea.js +4 -12
- package/components/GridSelectedRowCount.js +5 -8
- package/components/base/GridBody.js +10 -15
- package/components/base/GridErrorHandler.js +5 -9
- package/components/base/GridFooterPlaceholder.js +0 -3
- package/components/base/GridHeaderPlaceholder.js +0 -1
- package/components/base/GridOverlays.js +2 -20
- package/components/cell/GridActionsCell.d.ts +5 -5
- package/components/cell/GridActionsCell.js +15 -61
- package/components/cell/GridActionsCellItem.d.ts +2 -2
- package/components/cell/GridActionsCellItem.js +6 -9
- package/components/cell/GridBooleanCell.d.ts +5 -4
- package/components/cell/GridBooleanCell.js +8 -36
- package/components/cell/GridCell.js +32 -59
- package/components/cell/GridEditBooleanCell.js +11 -42
- package/components/cell/GridEditDateCell.js +12 -50
- package/components/cell/GridEditInputCell.js +15 -52
- package/components/cell/GridEditSingleSelectCell.js +23 -97
- package/components/cell/GridSkeletonCell.js +6 -11
- package/components/columnHeaders/ColumnHeaderMenuIcon.js +1 -5
- package/components/columnHeaders/GridColumnGroupHeader.d.ts +2 -0
- package/components/columnHeaders/GridColumnGroupHeader.js +35 -16
- package/components/columnHeaders/GridColumnHeaderFilterIconButton.js +1 -12
- package/components/columnHeaders/GridColumnHeaderItem.js +3 -19
- package/components/columnHeaders/GridColumnHeaderSeparator.js +5 -13
- package/components/columnHeaders/GridColumnHeaderSortIcon.js +1 -12
- package/components/columnHeaders/GridColumnHeaderTitle.js +4 -11
- package/components/columnHeaders/GridColumnHeaders.js +6 -8
- package/components/columnHeaders/GridColumnHeadersInner.js +5 -9
- package/components/columnHeaders/GridColumnUnsortedIcon.js +3 -4
- package/components/columnHeaders/GridGenericColumnHeaderItem.js +25 -29
- package/components/columnHeaders/GridIconButtonContainer.js +4 -7
- package/components/columnSelection/GridCellCheckboxRenderer.d.ts +1 -1
- package/components/columnSelection/GridCellCheckboxRenderer.js +20 -53
- package/components/columnSelection/GridHeaderCheckbox.js +12 -26
- package/components/containers/GridFooterContainer.js +6 -8
- package/components/containers/GridMainContainer.js +1 -3
- package/components/containers/GridOverlay.js +6 -9
- package/components/containers/GridRoot.js +14 -20
- package/components/containers/GridRootStyles.js +23 -23
- package/components/containers/GridToolbarContainer.js +7 -11
- package/components/menu/GridMenu.d.ts +4 -4
- package/components/menu/GridMenu.js +14 -25
- package/components/menu/columnMenu/GridColumnHeaderMenu.js +0 -4
- package/components/menu/columnMenu/GridColumnMenuContainer.js +8 -10
- package/components/menu/columnMenu/GridColumnsMenuItem.d.ts +4 -4
- package/components/menu/columnMenu/GridColumnsMenuItem.js +2 -6
- package/components/menu/columnMenu/GridFilterMenuItem.d.ts +4 -4
- package/components/menu/columnMenu/GridFilterMenuItem.js +2 -6
- package/components/menu/columnMenu/HideGridColMenuItem.d.ts +4 -4
- package/components/menu/columnMenu/HideGridColMenuItem.js +6 -12
- package/components/menu/columnMenu/SortGridMenuItems.d.ts +4 -4
- package/components/menu/columnMenu/SortGridMenuItems.js +2 -7
- package/components/panel/GridColumnsPanel.d.ts +3 -0
- package/components/panel/GridColumnsPanel.js +31 -24
- package/components/panel/GridPanel.d.ts +3 -6
- package/components/panel/GridPanel.js +9 -12
- package/components/panel/GridPanelContent.js +4 -9
- package/components/panel/GridPanelFooter.js +4 -9
- package/components/panel/GridPanelHeader.js +4 -9
- package/components/panel/GridPanelWrapper.js +4 -9
- package/components/panel/GridPreferencesPanel.js +0 -1
- package/components/panel/filterPanel/GridFilterForm.d.ts +12 -0
- package/components/panel/filterPanel/GridFilterForm.js +71 -88
- package/components/panel/filterPanel/GridFilterInputBoolean.js +6 -8
- package/components/panel/filterPanel/GridFilterInputDate.js +12 -19
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +20 -34
- package/components/panel/filterPanel/GridFilterInputMultipleValue.js +16 -23
- package/components/panel/filterPanel/GridFilterInputSingleSelect.js +15 -26
- package/components/panel/filterPanel/GridFilterInputValue.js +17 -29
- package/components/panel/filterPanel/GridFilterPanel.d.ts +12 -0
- package/components/panel/filterPanel/GridFilterPanel.js +61 -39
- package/components/panel/filterPanel/filterPanelUtils.js +0 -2
- package/components/toolbar/GridToolbar.js +9 -13
- package/components/toolbar/GridToolbarColumnsButton.d.ts +1 -1
- package/components/toolbar/GridToolbarColumnsButton.js +5 -10
- package/components/toolbar/GridToolbarDensitySelector.d.ts +1 -1
- package/components/toolbar/GridToolbarDensitySelector.js +6 -18
- package/components/toolbar/GridToolbarExport.d.ts +2 -2
- package/components/toolbar/GridToolbarExport.js +19 -26
- package/components/toolbar/GridToolbarExportContainer.d.ts +1 -1
- package/components/toolbar/GridToolbarExportContainer.js +5 -17
- package/components/toolbar/GridToolbarFilterButton.d.ts +1 -1
- package/components/toolbar/GridToolbarFilterButton.js +9 -24
- package/components/toolbar/GridToolbarQuickFilter.js +9 -17
- package/components/virtualization/GridVirtualScroller.js +4 -7
- package/components/virtualization/GridVirtualScrollerContent.js +5 -8
- package/components/virtualization/GridVirtualScrollerRenderZone.js +4 -7
- package/constants/defaultGridSlotsComponents.js +3 -3
- package/constants/envConstants.js +1 -0
- package/constants/gridClasses.js +1 -1
- package/context/GridContextProvider.d.ts +3 -3
- package/context/GridContextProvider.js +12 -7
- package/context/GridRootPropsContext.js +0 -2
- package/hooks/core/pipeProcessing/gridPipeProcessingApi.d.ts +12 -13
- package/hooks/core/pipeProcessing/useGridPipeProcessing.d.ts +4 -4
- package/hooks/core/pipeProcessing/useGridPipeProcessing.js +11 -18
- package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.d.ts +2 -2
- package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +1 -2
- package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.d.ts +2 -2
- package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +1 -2
- package/hooks/core/strategyProcessing/gridStrategyProcessingApi.d.ts +5 -8
- package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.d.ts +2 -2
- package/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +1 -1
- package/hooks/core/strategyProcessing/useGridStrategyProcessing.d.ts +4 -4
- package/hooks/core/strategyProcessing/useGridStrategyProcessing.js +10 -23
- package/hooks/core/useGridApiInitialization.d.ts +2 -2
- package/hooks/core/useGridApiInitialization.js +58 -26
- package/hooks/core/useGridErrorHandler.js +7 -1
- package/hooks/core/useGridInitialization.d.ts +2 -2
- package/hooks/core/useGridInitialization.js +9 -9
- package/hooks/core/useGridLocaleText.d.ts +2 -2
- package/hooks/core/useGridLocaleText.js +1 -2
- package/hooks/core/useGridLoggerFactory.d.ts +2 -2
- package/hooks/core/useGridLoggerFactory.js +5 -10
- package/hooks/core/useGridStateInitialization.d.ts +2 -2
- package/hooks/core/useGridStateInitialization.js +15 -23
- package/hooks/features/clipboard/useGridClipboard.d.ts +2 -2
- package/hooks/features/clipboard/useGridClipboard.js +6 -13
- package/hooks/features/columnGrouping/gridColumnGroupsInterfaces.d.ts +10 -1
- package/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +6 -0
- package/hooks/features/columnGrouping/gridColumnGroupsSelector.js +27 -2
- package/hooks/features/columnGrouping/gridColumnGroupsUtils.d.ts +15 -0
- package/hooks/features/columnGrouping/gridColumnGroupsUtils.js +75 -0
- package/hooks/features/columnGrouping/useGridColumnGrouping.d.ts +3 -17
- package/hooks/features/columnGrouping/useGridColumnGrouping.js +69 -88
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +1 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +72 -146
- package/hooks/features/columnMenu/useGridColumnMenu.d.ts +2 -2
- package/hooks/features/columnMenu/useGridColumnMenu.js +10 -16
- package/hooks/features/columns/gridColumnsInterfaces.d.ts +1 -4
- package/hooks/features/columns/gridColumnsSelector.d.ts +2 -50
- package/hooks/features/columns/gridColumnsSelector.js +12 -74
- package/hooks/features/columns/gridColumnsUtils.d.ts +1 -5
- package/hooks/features/columns/gridColumnsUtils.js +42 -87
- package/hooks/features/columns/index.d.ts +1 -2
- package/hooks/features/columns/index.js +1 -2
- package/hooks/features/columns/useGridColumnSpanning.d.ts +2 -2
- package/hooks/features/columns/useGridColumnSpanning.js +13 -18
- package/hooks/features/columns/useGridColumns.d.ts +2 -2
- package/hooks/features/columns/useGridColumns.js +22 -51
- package/hooks/features/density/densitySelector.d.ts +0 -2
- package/hooks/features/density/densitySelector.js +1 -3
- package/hooks/features/density/densityState.d.ts +0 -1
- package/hooks/features/density/useGridDensity.d.ts +3 -3
- package/hooks/features/density/useGridDensity.js +12 -52
- package/hooks/features/dimensions/gridDimensionsApi.d.ts +4 -4
- package/hooks/features/dimensions/index.d.ts +1 -1
- package/hooks/features/dimensions/index.js +1 -1
- package/hooks/features/dimensions/useGridDimensions.d.ts +2 -2
- package/hooks/features/dimensions/useGridDimensions.js +19 -32
- package/hooks/features/{editRows/gridEditRowsSelector.d.ts → editing/gridEditingSelectors.d.ts} +0 -0
- package/hooks/features/{editRows/gridEditRowsSelector.js → editing/gridEditingSelectors.js} +0 -0
- package/hooks/features/editing/index.d.ts +1 -0
- package/hooks/features/editing/index.js +1 -0
- package/hooks/features/editing/useGridCellEditing.d.ts +4 -0
- package/hooks/features/{editRows/useGridCellEditing.new.js → editing/useGridCellEditing.js} +61 -98
- package/hooks/features/{editRows/useGridEditing.new.d.ts → editing/useGridEditing.d.ts} +2 -2
- package/hooks/features/{editRows/useGridEditing.new.js → editing/useGridEditing.js} +14 -21
- package/hooks/features/editing/useGridRowEditing.d.ts +4 -0
- package/hooks/features/{editRows/useGridRowEditing.new.js → editing/useGridRowEditing.js} +60 -127
- package/hooks/features/events/useGridEvents.js +0 -1
- package/hooks/features/export/serializers/csvSerializer.js +2 -11
- package/hooks/features/export/useGridCsvExport.d.ts +2 -2
- package/hooks/features/export/useGridCsvExport.js +3 -6
- package/hooks/features/export/useGridPrintExport.d.ts +2 -2
- package/hooks/features/export/useGridPrintExport.js +31 -58
- package/hooks/features/export/utils.js +0 -5
- package/hooks/features/filter/gridFilterSelector.d.ts +1 -12
- package/hooks/features/filter/gridFilterSelector.js +19 -38
- package/hooks/features/filter/gridFilterState.d.ts +1 -1
- package/hooks/features/filter/gridFilterUtils.d.ts +2 -2
- package/hooks/features/filter/gridFilterUtils.js +35 -77
- package/hooks/features/filter/useGridFilter.d.ts +2 -2
- package/hooks/features/filter/useGridFilter.js +33 -57
- package/hooks/features/focus/gridFocusState.d.ts +6 -0
- package/hooks/features/focus/gridFocusStateSelector.d.ts +2 -0
- package/hooks/features/focus/gridFocusStateSelector.js +7 -1
- package/hooks/features/focus/useGridFocus.d.ts +2 -2
- package/hooks/features/focus/useGridFocus.js +81 -42
- package/hooks/features/index.d.ts +2 -2
- package/hooks/features/index.js +2 -2
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.d.ts +2 -2
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +204 -150
- package/hooks/features/pagination/gridPaginationSelector.js +11 -17
- package/hooks/features/pagination/useGridPage.d.ts +2 -2
- package/hooks/features/pagination/useGridPage.js +15 -23
- package/hooks/features/pagination/useGridPageSize.d.ts +2 -2
- package/hooks/features/pagination/useGridPageSize.js +16 -24
- package/hooks/features/pagination/useGridPagination.d.ts +2 -2
- package/hooks/features/pagination/useGridPagination.js +1 -4
- package/hooks/features/preferencesPanel/gridPreferencePanelsValue.js +0 -2
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.d.ts +2 -2
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.js +17 -21
- package/hooks/features/{selection/gridSelectionSelector.d.ts → rowSelection/gridRowSelectionSelector.d.ts} +1 -1
- package/hooks/features/rowSelection/gridRowSelectionSelector.js +9 -0
- package/hooks/features/rowSelection/index.d.ts +1 -0
- package/hooks/features/rowSelection/index.js +1 -0
- package/hooks/features/rowSelection/useGridRowSelection.d.ts +12 -0
- package/hooks/features/{selection/useGridSelection.js → rowSelection/useGridRowSelection.js} +95 -119
- package/hooks/features/rowSelection/useGridRowSelectionPreProcessors.d.ts +4 -0
- package/hooks/features/{selection/useGridSelectionPreProcessors.js → rowSelection/useGridRowSelectionPreProcessors.js} +4 -9
- package/hooks/features/rows/gridRowsInterfaces.d.ts +4 -0
- package/hooks/features/rows/gridRowsSelector.d.ts +0 -1
- package/hooks/features/rows/gridRowsSelector.js +6 -11
- package/hooks/features/rows/gridRowsUtils.d.ts +3 -3
- package/hooks/features/rows/gridRowsUtils.js +41 -49
- package/hooks/features/rows/index.d.ts +1 -1
- package/hooks/features/rows/index.js +1 -1
- package/hooks/features/rows/useGridParamsApi.d.ts +2 -2
- package/hooks/features/rows/useGridParamsApi.js +5 -42
- package/hooks/features/rows/useGridRows.d.ts +2 -2
- package/hooks/features/rows/useGridRows.js +52 -73
- package/hooks/features/rows/useGridRowsMeta.d.ts +2 -2
- package/hooks/features/rows/useGridRowsMeta.js +24 -36
- package/hooks/features/rows/useGridRowsPreProcessors.d.ts +2 -2
- package/hooks/features/rows/useGridRowsPreProcessors.js +2 -13
- package/hooks/features/scroll/useGridScroll.d.ts +2 -2
- package/hooks/features/scroll/useGridScroll.js +24 -43
- package/hooks/features/sorting/gridSortingSelector.d.ts +0 -5
- package/hooks/features/sorting/gridSortingSelector.js +6 -7
- package/hooks/features/sorting/gridSortingUtils.js +2 -30
- package/hooks/features/sorting/useGridSorting.d.ts +2 -2
- package/hooks/features/sorting/useGridSorting.js +17 -38
- package/hooks/features/statePersistence/useGridStatePersistence.d.ts +2 -2
- package/hooks/features/statePersistence/useGridStatePersistence.js +1 -1
- package/hooks/features/virtualization/useGridVirtualScroller.d.ts +5 -8
- package/hooks/features/virtualization/useGridVirtualScroller.js +29 -68
- package/hooks/utils/index.d.ts +0 -2
- package/hooks/utils/index.js +0 -2
- package/hooks/utils/useFirstRender.js +0 -1
- package/hooks/utils/useGridApiContext.js +0 -2
- package/hooks/utils/useGridApiEventHandler.d.ts +2 -2
- package/hooks/utils/useGridApiEventHandler.js +8 -22
- package/hooks/utils/useGridApiMethod.d.ts +6 -2
- package/hooks/utils/useGridApiMethod.js +9 -9
- package/hooks/utils/useGridApiRef.d.ts +1 -1
- package/hooks/utils/useGridApiRef.js +0 -1
- package/hooks/utils/useGridInitializeState.d.ts +4 -4
- package/hooks/utils/useGridInitializeState.js +2 -3
- package/hooks/utils/useGridLogger.d.ts +2 -2
- package/hooks/utils/useGridLogger.js +2 -4
- package/hooks/utils/useGridNativeEventListener.d.ts +2 -2
- package/hooks/utils/useGridNativeEventListener.js +0 -4
- package/hooks/utils/useGridPrivateApiContext.d.ts +5 -0
- package/hooks/utils/useGridPrivateApiContext.js +12 -0
- package/hooks/utils/useGridRootProps.js +0 -2
- package/hooks/utils/useGridScrollFn.d.ts +2 -2
- package/hooks/utils/useGridScrollFn.js +2 -4
- package/hooks/utils/useGridSelector.d.ts +1 -1
- package/hooks/utils/useGridSelector.js +0 -4
- package/hooks/utils/useGridVisibleRows.d.ts +2 -2
- package/hooks/utils/useGridVisibleRows.js +1 -4
- package/index.d.ts +0 -5
- package/index.js +1 -1
- package/internals/index.d.ts +5 -5
- package/internals/index.js +5 -6
- package/legacy/DataGrid/DataGrid.js +22 -150
- package/legacy/DataGrid/useDataGridComponent.js +43 -49
- package/legacy/DataGrid/useDataGridProps.js +10 -12
- package/legacy/colDef/gridBooleanColDef.js +1 -3
- package/legacy/colDef/gridBooleanOperators.js +0 -1
- package/legacy/colDef/gridCheckboxSelectionColDef.js +1 -1
- package/legacy/colDef/gridDateColDef.js +0 -4
- package/legacy/colDef/gridDateOperators.js +8 -15
- package/legacy/colDef/gridDefaultColumnTypes.js +0 -1
- package/legacy/colDef/gridNumericOperators.js +1 -26
- package/legacy/colDef/gridSingleSelectOperators.js +2 -14
- package/legacy/colDef/gridStringColDef.js +1 -1
- package/legacy/colDef/gridStringOperators.js +0 -6
- package/legacy/components/DataGridColumnHeaders.js +9 -11
- package/legacy/components/DataGridVirtualScroller.js +9 -11
- package/legacy/components/ErrorBoundary.js +3 -12
- package/legacy/components/GridApiContext.js +0 -1
- package/legacy/components/GridAutoSizer.js +24 -40
- package/legacy/components/{ErrorOverlay.js → GridErrorOverlay.js} +7 -9
- package/legacy/components/GridFooter.js +1 -4
- package/legacy/components/GridHeader.js +0 -1
- package/legacy/components/GridPagination.js +0 -7
- package/legacy/components/GridRow.js +71 -114
- package/legacy/components/GridRowCount.js +4 -9
- package/legacy/components/GridScrollArea.js +8 -19
- package/legacy/components/GridSelectedRowCount.js +3 -6
- package/legacy/components/base/GridBody.js +15 -22
- package/legacy/components/base/GridErrorHandler.js +5 -9
- package/legacy/components/base/GridFooterPlaceholder.js +0 -3
- package/legacy/components/base/GridHeaderPlaceholder.js +0 -1
- package/legacy/components/base/GridOverlays.js +8 -28
- package/legacy/components/cell/GridActionsCell.js +29 -79
- package/legacy/components/cell/GridActionsCellItem.js +4 -7
- package/legacy/components/cell/GridBooleanCell.js +17 -46
- package/legacy/components/cell/GridCell.js +36 -63
- package/legacy/components/cell/GridEditBooleanCell.js +23 -60
- package/legacy/components/cell/GridEditDateCell.js +22 -67
- package/legacy/components/cell/GridEditInputCell.js +25 -68
- package/legacy/components/cell/GridEditSingleSelectCell.js +31 -126
- package/legacy/components/cell/GridSkeletonCell.js +6 -11
- package/legacy/components/columnHeaders/ColumnHeaderMenuIcon.js +6 -10
- package/legacy/components/columnHeaders/GridColumnGroupHeader.js +72 -49
- package/legacy/components/columnHeaders/GridColumnHeaderFilterIconButton.js +5 -17
- package/legacy/components/columnHeaders/GridColumnHeaderItem.js +29 -48
- package/legacy/components/columnHeaders/GridColumnHeaderSeparator.js +9 -17
- package/legacy/components/columnHeaders/GridColumnHeaderSortIcon.js +3 -14
- package/legacy/components/columnHeaders/GridColumnHeaderTitle.js +7 -16
- package/legacy/components/columnHeaders/GridColumnHeaders.js +4 -6
- package/legacy/components/columnHeaders/GridColumnHeadersInner.js +5 -10
- package/legacy/components/columnHeaders/GridColumnUnsortedIcon.js +2 -5
- package/legacy/components/columnHeaders/GridGenericColumnHeaderItem.js +30 -36
- package/legacy/components/columnHeaders/GridIconButtonContainer.js +2 -5
- package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +24 -58
- package/legacy/components/columnSelection/GridHeaderCheckbox.js +16 -31
- package/legacy/components/containers/GridFooterContainer.js +4 -6
- package/legacy/components/containers/GridMainContainer.js +1 -3
- package/legacy/components/containers/GridOverlay.js +4 -7
- package/legacy/components/containers/GridRoot.js +17 -24
- package/legacy/components/containers/GridRootStyles.js +21 -23
- package/legacy/components/containers/GridToolbarContainer.js +5 -9
- package/legacy/components/menu/GridMenu.js +13 -24
- package/legacy/components/menu/columnMenu/GridColumnHeaderMenu.js +7 -11
- package/legacy/components/menu/columnMenu/GridColumnMenu.js +1 -1
- package/legacy/components/menu/columnMenu/GridColumnMenuContainer.js +7 -9
- package/legacy/components/menu/columnMenu/GridColumnsMenuItem.js +2 -6
- package/legacy/components/menu/columnMenu/GridFilterMenuItem.js +3 -7
- package/legacy/components/menu/columnMenu/HideGridColMenuItem.js +7 -13
- package/legacy/components/menu/columnMenu/SortGridMenuItems.js +3 -8
- package/legacy/components/panel/GridColumnsPanel.js +35 -28
- package/legacy/components/panel/GridPanel.js +11 -16
- package/legacy/components/panel/GridPanelContent.js +2 -7
- package/legacy/components/panel/GridPanelFooter.js +2 -7
- package/legacy/components/panel/GridPanelHeader.js +2 -7
- package/legacy/components/panel/GridPanelWrapper.js +2 -7
- package/legacy/components/panel/GridPreferencesPanel.js +0 -1
- package/legacy/components/panel/filterPanel/GridFilterForm.js +78 -93
- package/legacy/components/panel/filterPanel/GridFilterInputBoolean.js +7 -10
- package/legacy/components/panel/filterPanel/GridFilterInputDate.js +16 -26
- package/legacy/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +22 -37
- package/legacy/components/panel/filterPanel/GridFilterInputMultipleValue.js +17 -26
- package/legacy/components/panel/filterPanel/GridFilterInputSingleSelect.js +18 -30
- package/legacy/components/panel/filterPanel/GridFilterInputValue.js +23 -38
- package/legacy/components/panel/filterPanel/GridFilterPanel.js +65 -39
- package/legacy/components/panel/filterPanel/filterPanelUtils.js +0 -2
- package/legacy/components/toolbar/GridToolbar.js +10 -14
- package/legacy/components/toolbar/GridToolbarColumnsButton.js +5 -11
- package/legacy/components/toolbar/GridToolbarDensitySelector.js +7 -21
- package/legacy/components/toolbar/GridToolbarExport.js +15 -22
- package/legacy/components/toolbar/GridToolbarExportContainer.js +6 -20
- package/legacy/components/toolbar/GridToolbarFilterButton.js +11 -26
- package/legacy/components/toolbar/GridToolbarQuickFilter.js +18 -30
- package/legacy/components/virtualization/GridVirtualScroller.js +2 -5
- package/legacy/components/virtualization/GridVirtualScrollerContent.js +4 -7
- package/legacy/components/virtualization/GridVirtualScrollerRenderZone.js +2 -5
- package/legacy/constants/defaultGridSlotsComponents.js +3 -3
- package/legacy/constants/envConstants.js +1 -0
- package/legacy/constants/gridClasses.js +1 -1
- package/legacy/context/GridContextProvider.js +13 -8
- package/legacy/context/GridRootPropsContext.js +0 -2
- package/legacy/hooks/core/pipeProcessing/useGridPipeProcessing.js +16 -24
- package/legacy/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +1 -2
- package/legacy/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +1 -2
- package/legacy/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +1 -1
- package/legacy/hooks/core/strategyProcessing/useGridStrategyProcessing.js +12 -26
- package/legacy/hooks/core/useGridApiInitialization.js +64 -31
- package/legacy/hooks/core/useGridErrorHandler.js +7 -1
- package/legacy/hooks/core/useGridInitialization.js +9 -9
- package/legacy/hooks/core/useGridLocaleText.js +1 -2
- package/legacy/hooks/core/useGridLoggerFactory.js +6 -14
- package/legacy/hooks/core/useGridStateInitialization.js +17 -27
- package/legacy/hooks/features/clipboard/useGridClipboard.js +6 -14
- package/legacy/hooks/features/columnGrouping/gridColumnGroupsSelector.js +26 -2
- package/legacy/hooks/features/columnGrouping/gridColumnGroupsUtils.js +81 -0
- package/legacy/hooks/features/columnGrouping/useGridColumnGrouping.js +65 -84
- package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +122 -201
- package/legacy/hooks/features/columnMenu/useGridColumnMenu.js +10 -16
- package/legacy/hooks/features/columns/gridColumnsSelector.js +17 -87
- package/legacy/hooks/features/columns/gridColumnsUtils.js +68 -117
- package/legacy/hooks/features/columns/index.js +1 -2
- package/legacy/hooks/features/columns/useGridColumnSpanning.js +20 -26
- package/legacy/hooks/features/columns/useGridColumns.js +22 -57
- package/legacy/hooks/features/density/densitySelector.js +0 -6
- package/legacy/hooks/features/density/useGridDensity.js +9 -51
- package/legacy/hooks/features/dimensions/index.js +1 -1
- package/legacy/hooks/features/dimensions/useGridDimensions.js +21 -34
- package/legacy/hooks/features/{editRows/gridEditRowsSelector.js → editing/gridEditingSelectors.js} +0 -0
- package/legacy/hooks/features/editing/index.js +1 -0
- package/legacy/hooks/features/{editRows/useGridCellEditing.new.js → editing/useGridCellEditing.js} +67 -117
- package/legacy/hooks/features/{editRows/useGridEditing.new.js → editing/useGridEditing.js} +21 -39
- package/legacy/hooks/features/{editRows/useGridRowEditing.new.js → editing/useGridRowEditing.js} +80 -151
- package/legacy/hooks/features/events/useGridEvents.js +0 -1
- package/legacy/hooks/features/export/serializers/csvSerializer.js +6 -15
- package/legacy/hooks/features/export/useGridCsvExport.js +3 -6
- package/legacy/hooks/features/export/useGridPrintExport.js +31 -63
- package/legacy/hooks/features/export/utils.js +1 -6
- package/legacy/hooks/features/filter/gridFilterSelector.js +20 -39
- package/legacy/hooks/features/filter/gridFilterUtils.js +37 -79
- package/legacy/hooks/features/filter/useGridFilter.js +36 -65
- package/legacy/hooks/features/focus/gridFocusStateSelector.js +10 -0
- package/legacy/hooks/features/focus/useGridFocus.js +84 -44
- package/legacy/hooks/features/index.js +2 -2
- package/legacy/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +200 -152
- package/legacy/hooks/features/pagination/gridPaginationSelector.js +11 -17
- package/legacy/hooks/features/pagination/useGridPage.js +15 -23
- package/legacy/hooks/features/pagination/useGridPageSize.js +16 -24
- package/legacy/hooks/features/pagination/useGridPagination.js +1 -4
- package/legacy/hooks/features/preferencesPanel/gridPreferencePanelsValue.js +0 -2
- package/legacy/hooks/features/preferencesPanel/useGridPreferencesPanel.js +17 -21
- package/legacy/hooks/features/rowSelection/gridRowSelectionSelector.js +19 -0
- package/legacy/hooks/features/rowSelection/index.js +1 -0
- package/legacy/hooks/features/{selection/useGridSelection.js → rowSelection/useGridRowSelection.js} +108 -135
- package/legacy/hooks/features/{selection/useGridSelectionPreProcessors.js → rowSelection/useGridRowSelectionPreProcessors.js} +4 -9
- package/legacy/hooks/features/rows/gridRowsSelector.js +8 -15
- package/legacy/hooks/features/rows/gridRowsUtils.js +61 -75
- package/legacy/hooks/features/rows/index.js +1 -1
- package/legacy/hooks/features/rows/useGridParamsApi.js +5 -44
- package/legacy/hooks/features/rows/useGridRows.js +61 -86
- package/legacy/hooks/features/rows/useGridRowsMeta.js +33 -47
- package/legacy/hooks/features/rows/useGridRowsPreProcessors.js +3 -15
- package/legacy/hooks/features/scroll/useGridScroll.js +27 -46
- package/legacy/hooks/features/sorting/gridSortingSelector.js +7 -8
- package/legacy/hooks/features/sorting/gridSortingUtils.js +2 -30
- package/legacy/hooks/features/sorting/useGridSorting.js +17 -42
- package/legacy/hooks/features/statePersistence/useGridStatePersistence.js +1 -1
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +117 -171
- package/legacy/hooks/utils/index.js +0 -2
- package/legacy/hooks/utils/useFirstRender.js +0 -1
- package/legacy/hooks/utils/useGridApiContext.js +0 -2
- package/legacy/hooks/utils/useGridApiEventHandler.js +7 -24
- package/legacy/hooks/utils/useGridApiMethod.js +10 -17
- package/legacy/hooks/utils/useGridApiRef.js +0 -1
- package/legacy/hooks/utils/useGridInitializeState.js +2 -3
- package/legacy/hooks/utils/useGridLogger.js +2 -4
- package/legacy/hooks/utils/useGridNativeEventListener.js +3 -9
- package/legacy/hooks/utils/useGridPrivateApiContext.js +12 -0
- package/legacy/hooks/utils/useGridRootProps.js +0 -2
- package/legacy/hooks/utils/useGridScrollFn.js +2 -4
- package/legacy/hooks/utils/useGridSelector.js +0 -4
- package/legacy/hooks/utils/useGridVisibleRows.js +1 -4
- package/legacy/index.js +1 -1
- package/legacy/internals/index.js +5 -6
- package/legacy/lib/createDetectElementResize/index.js +14 -37
- package/legacy/locales/arSD.js +8 -3
- package/legacy/locales/bgBG.js +8 -3
- package/legacy/locales/csCZ.js +10 -8
- package/legacy/locales/daDK.js +7 -2
- package/legacy/locales/elGR.js +15 -2
- package/legacy/locales/esES.js +15 -2
- package/legacy/locales/fiFI.js +2 -2
- package/legacy/locales/frFR.js +4 -2
- package/legacy/locales/heIL.js +4 -2
- package/legacy/locales/huHU.js +7 -2
- package/legacy/locales/itIT.js +4 -2
- package/legacy/locales/jaJP.js +6 -2
- package/legacy/locales/nbNO.js +4 -2
- package/legacy/locales/nlNL.js +4 -2
- package/legacy/locales/plPL.js +4 -2
- package/legacy/locales/ptBR.js +4 -2
- package/legacy/locales/roRO.js +4 -2
- package/legacy/locales/ruRU.js +6 -8
- package/legacy/locales/skSK.js +4 -8
- package/legacy/locales/svSE.js +4 -2
- package/legacy/locales/trTR.js +17 -17
- package/legacy/locales/ukUA.js +25 -24
- package/legacy/locales/viVN.js +11 -2
- package/legacy/locales/zhTW.js +4 -2
- package/legacy/models/api/{gridSelectionApi.js → gridRowSelectionApi.js} +0 -0
- package/legacy/models/api/index.js +1 -6
- package/legacy/models/colDef/index.js +2 -1
- package/legacy/models/gridColumnGrouping.js +1 -0
- package/legacy/models/gridDensity.js +0 -3
- package/legacy/models/gridEditRowModel.js +0 -6
- package/legacy/models/gridFilterItem.js +0 -2
- package/legacy/models/{gridSelectionModel.js → gridRowSelectionModel.js} +0 -0
- package/legacy/models/index.js +4 -2
- package/legacy/models/params/{gridSortModelParams.js → gridColumnGroupHeaderParams.js} +0 -0
- package/legacy/models/params/gridEditCellParams.js +0 -8
- package/legacy/models/params/gridRowParams.js +0 -7
- package/legacy/models/params/index.js +1 -1
- package/legacy/themeAugmentation/index.js +2 -1
- package/legacy/utils/EventManager.js +0 -16
- package/legacy/utils/cleanupTracking/FinalizationRegistryBasedCleanupTracking.js +2 -4
- package/legacy/utils/cleanupTracking/TimerBasedCleanupTracking.js +0 -9
- package/legacy/utils/createSelector.js +14 -17
- package/legacy/utils/domUtils.js +3 -7
- package/legacy/utils/exportAs.js +11 -7
- package/legacy/utils/getGridLocalization.js +0 -1
- package/legacy/utils/keyboardUtils.js +3 -4
- package/legacy/utils/utils.js +7 -34
- package/legacy/utils/warning.js +0 -2
- package/lib/createDetectElementResize/index.js +14 -37
- package/locales/arSD.js +8 -3
- package/locales/bgBG.js +8 -3
- package/locales/csCZ.js +10 -8
- package/locales/daDK.js +7 -2
- package/locales/elGR.js +15 -2
- package/locales/esES.js +15 -2
- package/locales/fiFI.js +2 -2
- package/locales/frFR.js +4 -2
- package/locales/heIL.js +4 -2
- package/locales/huHU.js +7 -2
- package/locales/itIT.js +4 -2
- package/locales/jaJP.js +6 -2
- package/locales/nbNO.js +4 -2
- package/locales/nlNL.js +4 -2
- package/locales/plPL.js +4 -2
- package/locales/ptBR.js +4 -2
- package/locales/roRO.js +4 -2
- package/locales/ruRU.js +6 -8
- package/locales/skSK.js +4 -8
- package/locales/svSE.js +4 -2
- package/locales/trTR.js +17 -17
- package/locales/ukUA.js +21 -24
- package/locales/viVN.js +11 -2
- package/locales/zhTW.js +4 -2
- package/models/api/gridApiCommon.d.ts +15 -14
- package/models/api/gridApiCommunity.d.ts +5 -8
- package/models/api/gridCallbackDetails.d.ts +0 -5
- package/models/api/gridColumnApi.d.ts +1 -13
- package/models/api/gridColumnSpanning.d.ts +4 -2
- package/models/api/gridCoreApi.d.ts +28 -20
- package/models/api/gridEditingApi.d.ts +52 -129
- package/models/api/gridFocusApi.d.ts +16 -2
- package/models/api/gridLoggerApi.d.ts +0 -1
- package/models/api/{gridSelectionApi.d.ts → gridRowSelectionApi.d.ts} +43 -20
- package/models/api/{gridSelectionApi.js → gridRowSelectionApi.js} +0 -0
- package/models/api/gridRowsMetaApi.d.ts +14 -11
- package/models/api/gridSortApi.d.ts +0 -8
- package/models/api/gridStateApi.d.ts +4 -4
- package/models/api/gridVirtualScrollerApi.d.ts +1 -2
- package/models/api/index.d.ts +7 -7
- package/models/api/index.js +1 -6
- package/models/colDef/gridColDef.d.ts +0 -8
- package/models/colDef/index.js +2 -1
- package/models/events/gridEventLookup.d.ts +31 -36
- package/models/gridCell.d.ts +0 -5
- package/models/gridColumnGrouping.d.ts +1 -26
- package/models/gridColumnGrouping.js +1 -0
- package/models/gridDensity.js +0 -3
- package/models/gridEditRowModel.js +0 -6
- package/models/gridFilterItem.d.ts +2 -3
- package/models/gridFilterItem.js +0 -2
- package/models/gridFilterOperator.d.ts +1 -1
- package/models/gridRowSelectionModel.d.ts +3 -0
- package/models/{gridSelectionModel.js → gridRowSelectionModel.js} +0 -0
- package/models/gridRows.d.ts +0 -4
- package/models/gridSlotsComponent.d.ts +1 -1
- package/models/gridSortModel.d.ts +0 -3
- package/models/gridStateCommunity.d.ts +2 -2
- package/models/index.d.ts +1 -1
- package/models/index.js +4 -2
- package/models/params/gridCellParams.d.ts +5 -16
- package/models/params/gridColumnGroupHeaderParams.d.ts +30 -0
- package/models/params/{gridSortModelParams.js → gridColumnGroupHeaderParams.js} +0 -0
- package/models/params/gridEditCellParams.d.ts +4 -17
- package/models/params/gridEditCellParams.js +0 -8
- package/models/params/gridRowParams.d.ts +4 -12
- package/models/params/gridRowParams.js +0 -7
- package/models/params/index.d.ts +1 -1
- package/models/params/index.js +1 -1
- package/models/props/DataGridProps.d.ts +20 -38
- package/modern/DataGrid/DataGrid.js +22 -150
- package/modern/DataGrid/useDataGridComponent.js +44 -48
- package/modern/DataGrid/useDataGridProps.js +8 -9
- package/modern/colDef/gridBooleanColDef.js +0 -2
- package/modern/colDef/gridBooleanOperators.js +0 -1
- package/modern/colDef/gridCheckboxSelectionColDef.js +1 -1
- package/modern/colDef/gridDateColDef.js +0 -2
- package/modern/colDef/gridDateOperators.js +2 -7
- package/modern/colDef/gridNumericOperators.js +1 -22
- package/modern/colDef/gridSingleSelectOperators.js +0 -12
- package/modern/colDef/gridStringColDef.js +1 -1
- package/modern/colDef/gridStringOperators.js +0 -6
- package/modern/components/DataGridColumnHeaders.js +3 -4
- package/modern/components/DataGridVirtualScroller.js +4 -5
- package/modern/components/ErrorBoundary.js +3 -7
- package/modern/components/GridApiContext.js +0 -1
- package/modern/components/GridAutoSizer.js +16 -30
- package/{components/ErrorOverlay.js → modern/components/GridErrorOverlay.js} +6 -8
- package/modern/components/GridFooter.js +1 -3
- package/modern/components/GridPagination.js +0 -3
- package/modern/components/GridRow.js +56 -89
- package/modern/components/GridRowCount.js +6 -11
- package/modern/components/GridScrollArea.js +4 -12
- package/modern/components/GridSelectedRowCount.js +5 -8
- package/modern/components/base/GridBody.js +10 -15
- package/modern/components/base/GridErrorHandler.js +5 -8
- package/modern/components/base/GridFooterPlaceholder.js +0 -2
- package/modern/components/base/GridOverlays.js +2 -14
- package/modern/components/cell/GridActionsCell.js +15 -61
- package/modern/components/cell/GridActionsCellItem.js +6 -9
- package/modern/components/cell/GridBooleanCell.js +8 -36
- package/modern/components/cell/GridCell.js +32 -58
- package/modern/components/cell/GridEditBooleanCell.js +11 -41
- package/modern/components/cell/GridEditDateCell.js +12 -49
- package/modern/components/cell/GridEditInputCell.js +15 -48
- package/modern/components/cell/GridEditSingleSelectCell.js +23 -92
- package/modern/components/cell/GridSkeletonCell.js +6 -11
- package/modern/components/columnHeaders/ColumnHeaderMenuIcon.js +1 -5
- package/modern/components/columnHeaders/GridColumnGroupHeader.js +35 -15
- package/modern/components/columnHeaders/GridColumnHeaderFilterIconButton.js +1 -11
- package/modern/components/columnHeaders/GridColumnHeaderItem.js +3 -18
- package/modern/components/columnHeaders/GridColumnHeaderSeparator.js +5 -13
- package/modern/components/columnHeaders/GridColumnHeaderSortIcon.js +1 -12
- package/modern/components/columnHeaders/GridColumnHeaderTitle.js +4 -10
- package/modern/components/columnHeaders/GridColumnHeaders.js +6 -8
- package/modern/components/columnHeaders/GridColumnHeadersInner.js +5 -8
- package/modern/components/columnHeaders/GridColumnUnsortedIcon.js +3 -4
- package/modern/components/columnHeaders/GridGenericColumnHeaderItem.js +25 -29
- package/modern/components/columnHeaders/GridIconButtonContainer.js +4 -7
- package/modern/components/columnSelection/GridCellCheckboxRenderer.js +20 -51
- package/modern/components/columnSelection/GridHeaderCheckbox.js +12 -25
- package/modern/components/containers/GridFooterContainer.js +6 -8
- package/modern/components/containers/GridMainContainer.js +1 -3
- package/modern/components/containers/GridOverlay.js +6 -9
- package/modern/components/containers/GridRoot.js +14 -20
- package/modern/components/containers/GridRootStyles.js +23 -23
- package/modern/components/containers/GridToolbarContainer.js +7 -11
- package/modern/components/menu/GridMenu.js +14 -24
- package/modern/components/menu/columnMenu/GridColumnHeaderMenu.js +0 -4
- package/modern/components/menu/columnMenu/GridColumnMenuContainer.js +8 -10
- package/modern/components/menu/columnMenu/GridColumnsMenuItem.js +2 -6
- package/modern/components/menu/columnMenu/GridFilterMenuItem.js +2 -6
- package/modern/components/menu/columnMenu/HideGridColMenuItem.js +6 -12
- package/modern/components/menu/columnMenu/SortGridMenuItems.js +2 -7
- package/modern/components/panel/GridColumnsPanel.js +31 -22
- package/modern/components/panel/GridPanel.js +9 -11
- package/modern/components/panel/GridPanelContent.js +4 -9
- package/modern/components/panel/GridPanelFooter.js +4 -9
- package/modern/components/panel/GridPanelHeader.js +4 -9
- package/modern/components/panel/GridPanelWrapper.js +4 -9
- package/modern/components/panel/filterPanel/GridFilterForm.js +71 -85
- package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +6 -7
- package/modern/components/panel/filterPanel/GridFilterInputDate.js +12 -17
- package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +20 -33
- package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.js +16 -21
- package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +15 -24
- package/modern/components/panel/filterPanel/GridFilterInputValue.js +17 -27
- package/modern/components/panel/filterPanel/GridFilterPanel.js +59 -35
- package/modern/components/panel/filterPanel/filterPanelUtils.js +0 -2
- package/modern/components/toolbar/GridToolbar.js +9 -13
- package/modern/components/toolbar/GridToolbarColumnsButton.js +5 -9
- package/modern/components/toolbar/GridToolbarDensitySelector.js +8 -17
- package/modern/components/toolbar/GridToolbarExport.js +19 -26
- package/modern/components/toolbar/GridToolbarExportContainer.js +7 -16
- package/modern/components/toolbar/GridToolbarFilterButton.js +9 -21
- package/modern/components/toolbar/GridToolbarQuickFilter.js +9 -16
- package/modern/components/virtualization/GridVirtualScroller.js +4 -7
- package/modern/components/virtualization/GridVirtualScrollerContent.js +5 -8
- package/modern/components/virtualization/GridVirtualScrollerRenderZone.js +4 -7
- package/modern/constants/defaultGridSlotsComponents.js +3 -3
- package/modern/constants/envConstants.js +1 -0
- package/modern/constants/gridClasses.js +1 -1
- package/modern/context/GridContextProvider.js +12 -7
- package/modern/context/GridRootPropsContext.js +0 -2
- package/modern/hooks/core/pipeProcessing/useGridPipeProcessing.js +11 -18
- package/modern/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +1 -2
- package/modern/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +1 -2
- package/modern/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +1 -1
- package/modern/hooks/core/strategyProcessing/useGridStrategyProcessing.js +10 -22
- package/modern/hooks/core/useGridApiInitialization.js +58 -26
- package/modern/hooks/core/useGridErrorHandler.js +7 -1
- package/modern/hooks/core/useGridInitialization.js +9 -9
- package/modern/hooks/core/useGridLocaleText.js +1 -2
- package/modern/hooks/core/useGridLoggerFactory.js +5 -10
- package/modern/hooks/core/useGridStateInitialization.js +15 -23
- package/modern/hooks/features/clipboard/useGridClipboard.js +6 -12
- package/modern/hooks/features/columnGrouping/gridColumnGroupsSelector.js +12 -2
- package/modern/hooks/features/columnGrouping/gridColumnGroupsUtils.js +71 -0
- package/modern/hooks/features/columnGrouping/useGridColumnGrouping.js +56 -79
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +71 -127
- package/modern/hooks/features/columnMenu/useGridColumnMenu.js +10 -16
- package/modern/hooks/features/columns/gridColumnsSelector.js +12 -74
- package/modern/hooks/features/columns/gridColumnsUtils.js +42 -86
- package/modern/hooks/features/columns/index.js +1 -2
- package/modern/hooks/features/columns/useGridColumnSpanning.js +13 -17
- package/modern/hooks/features/columns/useGridColumns.js +22 -45
- package/modern/hooks/features/density/densitySelector.js +1 -3
- package/modern/hooks/features/density/useGridDensity.js +12 -44
- package/modern/hooks/features/dimensions/index.js +1 -1
- package/modern/hooks/features/dimensions/useGridDimensions.js +19 -31
- package/modern/hooks/features/{editRows/gridEditRowsSelector.js → editing/gridEditingSelectors.js} +0 -0
- package/modern/hooks/features/editing/index.js +1 -0
- package/modern/hooks/features/{editRows/useGridCellEditing.new.js → editing/useGridCellEditing.js} +61 -96
- package/modern/hooks/features/{editRows/useGridEditing.new.js → editing/useGridEditing.js} +14 -21
- package/modern/hooks/features/{editRows/useGridRowEditing.new.js → editing/useGridRowEditing.js} +60 -125
- package/modern/hooks/features/events/useGridEvents.js +0 -1
- package/modern/hooks/features/export/serializers/csvSerializer.js +2 -11
- package/modern/hooks/features/export/useGridCsvExport.js +3 -4
- package/modern/hooks/features/export/useGridPrintExport.js +31 -53
- package/modern/hooks/features/export/utils.js +0 -4
- package/modern/hooks/features/filter/gridFilterSelector.js +19 -35
- package/modern/hooks/features/filter/gridFilterUtils.js +34 -73
- package/modern/hooks/features/filter/useGridFilter.js +33 -51
- package/modern/hooks/features/focus/gridFocusStateSelector.js +7 -1
- package/modern/hooks/features/focus/useGridFocus.js +81 -42
- package/modern/hooks/features/index.js +2 -2
- package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +204 -150
- package/modern/hooks/features/pagination/gridPaginationSelector.js +11 -17
- package/modern/hooks/features/pagination/useGridPage.js +15 -20
- package/modern/hooks/features/pagination/useGridPageSize.js +16 -21
- package/modern/hooks/features/pagination/useGridPagination.js +1 -3
- package/modern/hooks/features/preferencesPanel/gridPreferencePanelsValue.js +0 -2
- package/modern/hooks/features/preferencesPanel/useGridPreferencesPanel.js +17 -18
- package/modern/hooks/features/rowSelection/gridRowSelectionSelector.js +9 -0
- package/modern/hooks/features/rowSelection/index.js +1 -0
- package/modern/hooks/features/{selection/useGridSelection.js → rowSelection/useGridRowSelection.js} +94 -116
- package/modern/hooks/features/{selection/useGridSelectionPreProcessors.js → rowSelection/useGridRowSelectionPreProcessors.js} +4 -9
- package/modern/hooks/features/rows/gridRowsSelector.js +6 -7
- package/modern/hooks/features/rows/gridRowsUtils.js +41 -47
- package/modern/hooks/features/rows/index.js +1 -1
- package/modern/hooks/features/rows/useGridParamsApi.js +5 -42
- package/modern/hooks/features/rows/useGridRows.js +52 -71
- package/modern/hooks/features/rows/useGridRowsMeta.js +24 -32
- package/modern/hooks/features/rows/useGridRowsPreProcessors.js +2 -13
- package/modern/hooks/features/scroll/useGridScroll.js +24 -41
- package/modern/hooks/features/sorting/gridSortingSelector.js +6 -6
- package/modern/hooks/features/sorting/gridSortingUtils.js +2 -30
- package/modern/hooks/features/sorting/useGridSorting.js +17 -32
- package/modern/hooks/features/statePersistence/useGridStatePersistence.js +1 -1
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +29 -65
- package/modern/hooks/utils/index.js +0 -2
- package/modern/hooks/utils/useFirstRender.js +0 -1
- package/modern/hooks/utils/useGridApiContext.js +0 -2
- package/modern/hooks/utils/useGridApiEventHandler.js +8 -17
- package/modern/hooks/utils/useGridApiMethod.js +9 -9
- package/modern/hooks/utils/useGridApiRef.js +0 -1
- package/modern/hooks/utils/useGridInitializeState.js +2 -3
- package/modern/hooks/utils/useGridLogger.js +2 -4
- package/modern/hooks/utils/useGridNativeEventListener.js +0 -4
- package/modern/hooks/utils/useGridPrivateApiContext.js +12 -0
- package/modern/hooks/utils/useGridRootProps.js +0 -2
- package/modern/hooks/utils/useGridScrollFn.js +2 -3
- package/modern/hooks/utils/useGridSelector.js +0 -4
- package/modern/hooks/utils/useGridVisibleRows.js +1 -4
- package/modern/index.js +1 -1
- package/modern/internals/index.js +5 -6
- package/modern/lib/createDetectElementResize/index.js +14 -37
- package/modern/locales/arSD.js +8 -3
- package/modern/locales/bgBG.js +8 -3
- package/modern/locales/csCZ.js +10 -8
- package/modern/locales/daDK.js +7 -2
- package/modern/locales/elGR.js +15 -2
- package/modern/locales/esES.js +15 -2
- package/modern/locales/fiFI.js +2 -2
- package/modern/locales/frFR.js +4 -2
- package/modern/locales/heIL.js +4 -2
- package/modern/locales/huHU.js +7 -2
- package/modern/locales/itIT.js +4 -2
- package/modern/locales/jaJP.js +6 -2
- package/modern/locales/nbNO.js +4 -2
- package/modern/locales/nlNL.js +4 -2
- package/modern/locales/plPL.js +4 -2
- package/modern/locales/ptBR.js +4 -2
- package/modern/locales/roRO.js +4 -2
- package/modern/locales/ruRU.js +6 -8
- package/modern/locales/skSK.js +4 -8
- package/modern/locales/svSE.js +4 -2
- package/modern/locales/trTR.js +17 -17
- package/modern/locales/ukUA.js +21 -24
- package/modern/locales/viVN.js +11 -2
- package/modern/locales/zhTW.js +4 -2
- package/modern/models/api/{gridSelectionApi.js → gridRowSelectionApi.js} +0 -0
- package/modern/models/api/index.js +1 -6
- package/modern/models/colDef/index.js +2 -1
- package/modern/models/gridColumnGrouping.js +1 -0
- package/modern/models/gridDensity.js +0 -3
- package/modern/models/gridEditRowModel.js +0 -6
- package/modern/models/gridFilterItem.js +0 -2
- package/modern/models/{gridSelectionModel.js → gridRowSelectionModel.js} +0 -0
- package/modern/models/index.js +4 -2
- package/modern/models/params/{gridSortModelParams.js → gridColumnGroupHeaderParams.js} +0 -0
- package/modern/models/params/gridEditCellParams.js +0 -8
- package/modern/models/params/gridRowParams.js +0 -7
- package/modern/models/params/index.js +1 -1
- package/modern/themeAugmentation/index.js +2 -1
- package/modern/utils/EventManager.js +0 -16
- package/modern/utils/cleanupTracking/FinalizationRegistryBasedCleanupTracking.js +2 -5
- package/modern/utils/cleanupTracking/TimerBasedCleanupTracking.js +0 -7
- package/modern/utils/createSelector.js +13 -14
- package/modern/utils/domUtils.js +2 -6
- package/modern/utils/exportAs.js +11 -7
- package/modern/utils/keyboardUtils.js +3 -4
- package/modern/utils/utils.js +7 -34
- package/modern/utils/warning.js +0 -2
- package/node/DataGrid/DataGrid.js +22 -164
- package/node/DataGrid/index.js +0 -3
- package/node/DataGrid/useDataGridComponent.js +43 -80
- package/node/DataGrid/useDataGridProps.js +8 -20
- package/node/colDef/gridActionsColDef.js +0 -5
- package/node/colDef/gridBooleanColDef.js +0 -9
- package/node/colDef/gridBooleanOperators.js +0 -4
- package/node/colDef/gridCheckboxSelectionColDef.js +2 -13
- package/node/colDef/gridDateColDef.js +2 -13
- package/node/colDef/gridDateOperators.js +2 -10
- package/node/colDef/gridDefaultColumnTypes.js +0 -9
- package/node/colDef/gridNumericColDef.js +0 -7
- package/node/colDef/gridNumericOperators.js +2 -30
- package/node/colDef/gridSingleSelectColDef.js +0 -6
- package/node/colDef/gridSingleSelectOperators.js +0 -17
- package/node/colDef/gridStringColDef.js +0 -4
- package/node/colDef/gridStringOperators.js +0 -13
- package/node/colDef/index.js +0 -26
- package/node/components/DataGridColumnHeaders.js +3 -16
- package/node/components/DataGridVirtualScroller.js +4 -18
- package/node/components/ErrorBoundary.js +4 -15
- package/node/components/GridApiContext.js +0 -5
- package/node/components/GridAutoSizer.js +18 -45
- package/node/components/{ErrorOverlay.js → GridErrorOverlay.js} +8 -22
- package/node/components/GridFooter.js +3 -22
- package/node/components/GridHeader.js +1 -11
- package/node/components/GridLoadingOverlay.js +0 -10
- package/node/components/GridNoResultsOverlay.js +0 -9
- package/node/components/GridNoRowsOverlay.js +0 -10
- package/node/components/GridPagination.js +3 -25
- package/node/components/GridRow.js +67 -131
- package/node/components/GridRowCount.js +7 -26
- package/node/components/GridScrollArea.js +5 -28
- package/node/components/GridSelectedRowCount.js +6 -23
- package/node/components/base/GridBody.js +10 -27
- package/node/components/base/GridErrorHandler.js +7 -26
- package/node/components/base/GridFooterPlaceholder.js +1 -14
- package/node/components/base/GridHeaderPlaceholder.js +1 -12
- package/node/components/base/GridOverlays.js +10 -54
- package/node/components/base/index.js +0 -10
- package/node/components/cell/GridActionsCell.js +18 -81
- package/node/components/cell/GridActionsCellItem.js +6 -22
- package/node/components/cell/GridBooleanCell.js +9 -52
- package/node/components/cell/GridCell.js +39 -83
- package/node/components/cell/GridEditBooleanCell.js +13 -61
- package/node/components/cell/GridEditDateCell.js +15 -72
- package/node/components/cell/GridEditInputCell.js +17 -72
- package/node/components/cell/GridEditSingleSelectCell.js +26 -117
- package/node/components/cell/GridSkeletonCell.js +8 -26
- package/node/components/cell/index.js +0 -18
- package/node/components/columnHeaders/ColumnHeaderMenuIcon.js +2 -15
- package/node/components/columnHeaders/GridColumnGroupHeader.js +39 -32
- package/node/components/columnHeaders/GridColumnHeaderFilterIconButton.js +3 -28
- package/node/components/columnHeaders/GridColumnHeaderItem.js +10 -36
- package/node/components/columnHeaders/GridColumnHeaderSeparator.js +7 -26
- package/node/components/columnHeaders/GridColumnHeaderSortIcon.js +2 -24
- package/node/components/columnHeaders/GridColumnHeaderTitle.js +6 -28
- package/node/components/columnHeaders/GridColumnHeaders.js +7 -21
- package/node/components/columnHeaders/GridColumnHeadersInner.js +7 -25
- package/node/components/columnHeaders/GridColumnUnsortedIcon.js +3 -13
- package/node/components/columnHeaders/GridGenericColumnHeaderItem.js +27 -45
- package/node/components/columnHeaders/GridIconButtonContainer.js +5 -20
- package/node/components/columnHeaders/index.js +0 -10
- package/node/components/columnSelection/GridCellCheckboxRenderer.js +23 -72
- package/node/components/columnSelection/GridHeaderCheckbox.js +14 -47
- package/node/components/columnSelection/index.js +0 -4
- package/node/components/containers/GridFooterContainer.js +7 -22
- package/node/components/containers/GridMainContainer.js +2 -13
- package/node/components/containers/GridOverlay.js +7 -23
- package/node/components/containers/GridRoot.js +16 -40
- package/node/components/containers/GridRootStyles.js +23 -26
- package/node/components/containers/GridToolbarContainer.js +8 -25
- package/node/components/containers/index.js +0 -8
- package/node/components/icons/index.js +0 -6
- package/node/components/index.js +0 -40
- package/node/components/menu/GridMenu.js +18 -50
- package/node/components/menu/columnMenu/GridColumnHeaderMenu.js +0 -14
- package/node/components/menu/columnMenu/GridColumnMenu.js +0 -14
- package/node/components/menu/columnMenu/GridColumnMenuContainer.js +8 -23
- package/node/components/menu/columnMenu/GridColumnsMenuItem.js +3 -18
- package/node/components/menu/columnMenu/GridFilterMenuItem.js +6 -20
- package/node/components/menu/columnMenu/HideGridColMenuItem.js +9 -26
- package/node/components/menu/columnMenu/SortGridMenuItems.js +4 -20
- package/node/components/menu/columnMenu/index.js +0 -18
- package/node/components/menu/index.js +0 -4
- package/node/components/panel/GridColumnsPanel.js +53 -73
- package/node/components/panel/GridPanel.js +11 -32
- package/node/components/panel/GridPanelContent.js +5 -23
- package/node/components/panel/GridPanelFooter.js +5 -23
- package/node/components/panel/GridPanelHeader.js +5 -23
- package/node/components/panel/GridPanelWrapper.js +5 -23
- package/node/components/panel/GridPreferencesPanel.js +2 -17
- package/node/components/panel/filterPanel/GridFilterForm.js +85 -125
- package/node/components/panel/filterPanel/GridFilterInputBoolean.js +10 -23
- package/node/components/panel/filterPanel/GridFilterInputDate.js +16 -37
- package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +32 -62
- package/node/components/panel/filterPanel/GridFilterInputMultipleValue.js +26 -49
- package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +21 -46
- package/node/components/panel/filterPanel/GridFilterInputValue.js +23 -52
- package/node/components/panel/filterPanel/GridFilterPanel.js +59 -60
- package/node/components/panel/filterPanel/filterPanelUtils.js +0 -4
- package/node/components/panel/filterPanel/index.js +0 -16
- package/node/components/panel/index.js +0 -16
- package/node/components/toolbar/GridToolbar.js +9 -30
- package/node/components/toolbar/GridToolbarColumnsButton.js +7 -26
- package/node/components/toolbar/GridToolbarDensitySelector.js +12 -45
- package/node/components/toolbar/GridToolbarExport.js +24 -42
- package/node/components/toolbar/GridToolbarExportContainer.js +11 -39
- package/node/components/toolbar/GridToolbarFilterButton.js +15 -55
- package/node/components/toolbar/GridToolbarQuickFilter.js +13 -40
- package/node/components/toolbar/index.js +0 -13
- package/node/components/virtualization/GridVirtualScroller.js +5 -20
- package/node/components/virtualization/GridVirtualScrollerContent.js +7 -22
- package/node/components/virtualization/GridVirtualScrollerRenderZone.js +5 -20
- package/node/constants/defaultGridSlotsComponents.js +3 -18
- package/node/constants/envConstants.js +1 -0
- package/node/constants/gridClasses.js +3 -6
- package/node/constants/index.js +0 -8
- package/node/context/GridContextProvider.js +13 -17
- package/node/context/GridRootPropsContext.js +0 -5
- package/node/context/index.js +0 -2
- package/node/hooks/core/pipeProcessing/index.js +0 -8
- package/node/hooks/core/pipeProcessing/useGridPipeProcessing.js +11 -25
- package/node/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +1 -8
- package/node/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +1 -8
- package/node/hooks/core/strategyProcessing/index.js +0 -6
- package/node/hooks/core/strategyProcessing/useGridRegisterStrategyProcessor.js +1 -7
- package/node/hooks/core/strategyProcessing/useGridStrategyProcessing.js +11 -33
- package/node/hooks/core/useGridApiInitialization.js +58 -33
- package/node/hooks/core/useGridErrorHandler.js +7 -8
- package/node/hooks/core/useGridInitialization.js +8 -17
- package/node/hooks/core/useGridLocaleText.js +1 -8
- package/node/hooks/core/useGridLoggerFactory.js +5 -16
- package/node/hooks/core/useGridStateInitialization.js +15 -34
- package/node/hooks/features/clipboard/useGridClipboard.js +7 -20
- package/node/hooks/features/columnGrouping/gridColumnGroupsSelector.js +18 -6
- package/node/hooks/features/columnGrouping/gridColumnGroupsUtils.js +79 -0
- package/node/hooks/features/columnGrouping/index.js +0 -2
- package/node/hooks/features/columnGrouping/useGridColumnGrouping.js +57 -108
- package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +70 -174
- package/node/hooks/features/columnMenu/columnMenuSelector.js +0 -2
- package/node/hooks/features/columnMenu/index.js +0 -4
- package/node/hooks/features/columnMenu/useGridColumnMenu.js +10 -28
- package/node/hooks/features/columns/gridColumnsSelector.js +17 -89
- package/node/hooks/features/columns/gridColumnsUtils.js +43 -105
- package/node/hooks/features/columns/index.js +56 -20
- package/node/hooks/features/columns/useGridColumnSpanning.js +14 -26
- package/node/hooks/features/columns/useGridColumns.js +28 -78
- package/node/hooks/features/density/densitySelector.js +2 -9
- package/node/hooks/features/density/index.js +0 -4
- package/node/hooks/features/density/useGridDensity.js +12 -70
- package/node/hooks/features/dimensions/index.js +0 -13
- package/node/hooks/features/dimensions/useGridDimensions.js +22 -50
- package/node/hooks/features/{editRows/gridEditRowsSelector.js → editing/gridEditingSelectors.js} +0 -2
- package/node/hooks/features/{editRows → editing}/index.js +4 -6
- package/node/hooks/features/{editRows/useGridCellEditing.new.js → editing/useGridCellEditing.js} +69 -121
- package/node/hooks/features/{editRows/useGridEditing.new.js → editing/useGridEditing.js} +15 -37
- package/node/hooks/features/{editRows/useGridRowEditing.new.js → editing/useGridRowEditing.js} +69 -143
- package/node/hooks/features/events/useGridEvents.js +0 -2
- package/node/hooks/features/export/serializers/csvSerializer.js +2 -13
- package/node/hooks/features/export/useGridCsvExport.js +7 -25
- package/node/hooks/features/export/useGridPrintExport.js +40 -89
- package/node/hooks/features/export/utils.js +2 -15
- package/node/hooks/features/filter/gridFilterSelector.js +32 -66
- package/node/hooks/features/filter/gridFilterState.js +0 -3
- package/node/hooks/features/filter/gridFilterUtils.js +38 -100
- package/node/hooks/features/filter/index.js +0 -3
- package/node/hooks/features/filter/useGridFilter.js +39 -92
- package/node/hooks/features/focus/gridFocusStateSelector.js +10 -7
- package/node/hooks/features/focus/index.js +0 -4
- package/node/hooks/features/focus/useGridFocus.js +85 -64
- package/node/hooks/features/index.js +8 -36
- package/node/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +204 -165
- package/node/hooks/features/pagination/gridPaginationSelector.js +10 -21
- package/node/hooks/features/pagination/index.js +0 -2
- package/node/hooks/features/pagination/useGridPage.js +17 -41
- package/node/hooks/features/pagination/useGridPageSize.js +18 -42
- package/node/hooks/features/pagination/useGridPagination.js +5 -17
- package/node/hooks/features/preferencesPanel/gridPreferencePanelSelector.js +0 -2
- package/node/hooks/features/preferencesPanel/gridPreferencePanelsValue.js +0 -1
- package/node/hooks/features/preferencesPanel/index.js +0 -6
- package/node/hooks/features/preferencesPanel/useGridPreferencesPanel.js +22 -44
- package/node/hooks/features/{selection/gridSelectionSelector.js → rowSelection/gridRowSelectionSelector.js} +6 -10
- package/node/hooks/features/rowSelection/index.js +16 -0
- package/node/hooks/features/{selection/useGridSelection.js → rowSelection/useGridRowSelection.js} +102 -151
- package/node/hooks/features/{selection/useGridSelectionPreProcessors.js → rowSelection/useGridRowSelectionPreProcessors.js} +7 -21
- package/node/hooks/features/rows/gridRowsMetaSelector.js +0 -2
- package/node/hooks/features/rows/gridRowsSelector.js +17 -34
- package/node/hooks/features/rows/gridRowsUtils.js +48 -79
- package/node/hooks/features/rows/index.js +0 -13
- package/node/hooks/features/rows/useGridParamsApi.js +5 -50
- package/node/hooks/features/rows/useGridRows.js +54 -96
- package/node/hooks/features/rows/useGridRowsMeta.js +33 -70
- package/node/hooks/features/rows/useGridRowsPreProcessors.js +2 -17
- package/node/hooks/features/scroll/useGridScroll.js +22 -58
- package/node/hooks/features/sorting/gridSortingSelector.js +9 -18
- package/node/hooks/features/sorting/gridSortingUtils.js +2 -47
- package/node/hooks/features/sorting/index.js +0 -3
- package/node/hooks/features/sorting/useGridSorting.js +22 -70
- package/node/hooks/features/statePersistence/useGridStatePersistence.js +1 -7
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +36 -105
- package/node/hooks/index.js +0 -6
- package/node/hooks/utils/index.js +0 -40
- package/node/hooks/utils/useFirstRender.js +0 -6
- package/node/hooks/utils/useGridApiContext.js +0 -7
- package/node/hooks/utils/useGridApiEventHandler.js +13 -40
- package/node/hooks/utils/useGridApiMethod.js +9 -13
- package/node/hooks/utils/useGridApiRef.js +0 -5
- package/node/hooks/utils/useGridInitializeState.js +2 -8
- package/node/hooks/utils/useGridLogger.js +2 -8
- package/node/hooks/utils/useGridNativeEventListener.js +0 -11
- package/node/hooks/utils/useGridPrivateApiContext.js +22 -0
- package/node/hooks/utils/useGridRootProps.js +0 -8
- package/node/hooks/utils/useGridScrollFn.js +3 -11
- package/node/hooks/utils/useGridSelector.js +0 -7
- package/node/hooks/utils/useGridVisibleRows.js +1 -13
- package/node/index.js +1 -22
- package/node/internals/index.js +31 -93
- package/node/lib/createDetectElementResize/index.js +14 -38
- package/node/locales/arSD.js +8 -6
- package/node/locales/bgBG.js +8 -6
- package/node/locales/csCZ.js +10 -11
- package/node/locales/daDK.js +7 -5
- package/node/locales/deDE.js +0 -3
- package/node/locales/elGR.js +15 -4
- package/node/locales/enUS.js +0 -4
- package/node/locales/esES.js +15 -5
- package/node/locales/faIR.js +0 -3
- package/node/locales/fiFI.js +2 -5
- package/node/locales/frFR.js +4 -5
- package/node/locales/heIL.js +4 -5
- package/node/locales/huHU.js +7 -5
- package/node/locales/index.js +0 -58
- package/node/locales/itIT.js +4 -5
- package/node/locales/jaJP.js +6 -5
- package/node/locales/koKR.js +0 -3
- package/node/locales/nbNO.js +4 -5
- package/node/locales/nlNL.js +4 -5
- package/node/locales/plPL.js +4 -5
- package/node/locales/ptBR.js +4 -5
- package/node/locales/roRO.js +4 -5
- package/node/locales/ruRU.js +6 -11
- package/node/locales/skSK.js +4 -11
- package/node/locales/svSE.js +4 -5
- package/node/locales/trTR.js +17 -20
- package/node/locales/ukUA.js +21 -26
- package/node/locales/viVN.js +11 -5
- package/node/locales/zhCN.js +0 -3
- package/node/locales/zhTW.js +4 -5
- package/node/models/api/{gridSelectionApi.js → gridRowSelectionApi.js} +0 -0
- package/node/models/api/index.js +4 -103
- package/node/models/colDef/index.js +0 -6
- package/node/models/events/index.js +0 -6
- package/node/models/gridColumnGrouping.js +1 -1
- package/node/models/gridDensity.js +0 -3
- package/node/models/gridEditRowModel.js +0 -5
- package/node/models/gridFilterItem.js +0 -2
- package/node/models/{gridSelectionModel.js → gridRowSelectionModel.js} +0 -0
- package/node/models/index.js +4 -56
- package/node/models/params/{gridSortModelParams.js → gridColumnGroupHeaderParams.js} +0 -0
- package/node/models/params/gridEditCellParams.js +0 -9
- package/node/models/params/gridRowParams.js +0 -8
- package/node/models/params/index.js +11 -39
- package/node/themeAugmentation/index.js +0 -4
- package/node/utils/EventManager.js +0 -18
- package/node/utils/cleanupTracking/FinalizationRegistryBasedCleanupTracking.js +2 -7
- package/node/utils/cleanupTracking/TimerBasedCleanupTracking.js +0 -9
- package/node/utils/createSelector.js +14 -22
- package/node/utils/domUtils.js +2 -14
- package/node/utils/exportAs.js +11 -8
- package/node/utils/getGridLocalization.js +9 -17
- package/node/utils/keyboardUtils.js +2 -36
- package/node/utils/utils.js +7 -45
- package/node/utils/warning.js +0 -6
- package/package.json +5 -5
- package/themeAugmentation/index.js +2 -1
- package/themeAugmentation/props.d.ts +3 -5
- package/utils/EventManager.js +0 -16
- package/utils/cleanupTracking/FinalizationRegistryBasedCleanupTracking.js +2 -5
- package/utils/cleanupTracking/TimerBasedCleanupTracking.js +0 -7
- package/utils/createSelector.d.ts +2 -1
- package/utils/createSelector.js +13 -14
- package/utils/domUtils.js +2 -6
- package/utils/exportAs.js +11 -7
- package/utils/getGridLocalization.js +0 -1
- package/utils/keyboardUtils.js +3 -4
- package/utils/utils.js +7 -34
- package/utils/warning.js +0 -2
- package/components/ErrorOverlay.d.ts +0 -8
- package/hooks/features/columnGrouping/useGridColumnGroupingPreProcessors.d.ts +0 -4
- package/hooks/features/columnGrouping/useGridColumnGroupingPreProcessors.js +0 -35
- package/hooks/features/editRows/index.d.ts +0 -1
- package/hooks/features/editRows/index.js +0 -1
- package/hooks/features/editRows/useGridCellEditing.new.d.ts +0 -4
- package/hooks/features/editRows/useGridCellEditing.old.d.ts +0 -4
- package/hooks/features/editRows/useGridCellEditing.old.js +0 -359
- package/hooks/features/editRows/useGridEditing.old.d.ts +0 -11
- package/hooks/features/editRows/useGridEditing.old.js +0 -167
- package/hooks/features/editRows/useGridRowEditing.new.d.ts +0 -4
- package/hooks/features/editRows/useGridRowEditing.old.d.ts +0 -4
- package/hooks/features/editRows/useGridRowEditing.old.js +0 -334
- package/hooks/features/selection/gridSelectionSelector.js +0 -9
- package/hooks/features/selection/index.d.ts +0 -1
- package/hooks/features/selection/index.js +0 -1
- package/hooks/features/selection/useGridSelection.d.ts +0 -12
- package/hooks/features/selection/useGridSelectionPreProcessors.d.ts +0 -4
- package/hooks/utils/useGridApi.d.ts +0 -6
- package/hooks/utils/useGridApi.js +0 -13
- package/hooks/utils/useGridState.d.ts +0 -7
- package/hooks/utils/useGridState.js +0 -13
- package/legacy/hooks/features/columnGrouping/useGridColumnGroupingPreProcessors.js +0 -35
- package/legacy/hooks/features/editRows/index.js +0 -1
- package/legacy/hooks/features/editRows/useGridCellEditing.old.js +0 -411
- package/legacy/hooks/features/editRows/useGridEditing.old.js +0 -184
- package/legacy/hooks/features/editRows/useGridRowEditing.old.js +0 -505
- package/legacy/hooks/features/selection/gridSelectionSelector.js +0 -19
- package/legacy/hooks/features/selection/index.js +0 -1
- package/legacy/hooks/utils/useGridApi.js +0 -13
- package/legacy/hooks/utils/useGridState.js +0 -13
- package/models/gridSelectionModel.d.ts +0 -3
- package/models/params/gridSortModelParams.d.ts +0 -20
- package/modern/hooks/features/columnGrouping/useGridColumnGroupingPreProcessors.js +0 -29
- package/modern/hooks/features/editRows/index.js +0 -1
- package/modern/hooks/features/editRows/useGridCellEditing.old.js +0 -355
- package/modern/hooks/features/editRows/useGridEditing.old.js +0 -163
- package/modern/hooks/features/editRows/useGridRowEditing.old.js +0 -326
- package/modern/hooks/features/selection/gridSelectionSelector.js +0 -9
- package/modern/hooks/features/selection/index.js +0 -1
- package/modern/hooks/utils/useGridApi.js +0 -13
- package/modern/hooks/utils/useGridState.js +0 -13
- package/node/hooks/features/columnGrouping/useGridColumnGroupingPreProcessors.js +0 -55
- package/node/hooks/features/editRows/useGridCellEditing.old.js +0 -380
- package/node/hooks/features/editRows/useGridEditing.old.js +0 -193
- package/node/hooks/features/editRows/useGridRowEditing.old.js +0 -358
- package/node/hooks/features/selection/index.js +0 -18
- package/node/hooks/utils/useGridApi.js +0 -23
- package/node/hooks/utils/useGridState.js +0 -23
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,873 @@
|
|
|
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
|
+
## 6.0.0-alpha.10
|
|
7
|
+
|
|
8
|
+
_Dec 1, 2022_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🌍 Improve Ukrainian (uk-UA) and add Urdu (ur-PK) locales
|
|
13
|
+
- 📚 Documentation improvements
|
|
14
|
+
- 🐞 Bugfixes
|
|
15
|
+
|
|
16
|
+
### `@mui/x-data-grid@v6.0.0-alpha.10` / `@mui/x-data-grid-pro@v6.0.0-alpha.10` / `@mui/x-data-grid-premium@v6.0.0-alpha.10`
|
|
17
|
+
|
|
18
|
+
### Breaking changes
|
|
19
|
+
|
|
20
|
+
- [DataGrid] Removes `GridCell` fallback to `valueToRender` on `null` children (#7023) @MBilalShafi
|
|
21
|
+
|
|
22
|
+
Returning `null` in `column.renderCell` or `column.renderEditCell` now renders an empty cell instead of the default formatted value.
|
|
23
|
+
|
|
24
|
+
- [DataGrid] Refactor `GridFilterItem` props (#6985) @MBilalShafi
|
|
25
|
+
|
|
26
|
+
Properties `columnField` and `operatorValue` of `GridFilterItem` are renamed `field` and `operator`. And `operator` property is now required.
|
|
27
|
+
|
|
28
|
+
```diff
|
|
29
|
+
filterModel: {
|
|
30
|
+
items: [{
|
|
31
|
+
- columnField: 'rating',
|
|
32
|
+
+ field: 'rating',
|
|
33
|
+
- operatorValue: '>',
|
|
34
|
+
+ operator: '>', // required
|
|
35
|
+
value: '2.5'
|
|
36
|
+
}],
|
|
37
|
+
},
|
|
38
|
+
```
|
|
39
|
+
|
|
40
|
+
#### Changes
|
|
41
|
+
|
|
42
|
+
- [DataGrid] Fix row selection when clicking blank cell (#6974) @yami03
|
|
43
|
+
- [DataGrid] Refactor `GridFilterItem` props (#6985) @MBilalShafi
|
|
44
|
+
- [DataGrid] Removes `<GridCell />` fallback to `valueToRender` on `null` children (#7023) @MBilalShafi
|
|
45
|
+
- [DataGridPremium] Fix empty column group in Excel export (#7029) @alexfauquette
|
|
46
|
+
- [DataGridPremium] Update cache before hydrating columns (#7040) @m4theushw
|
|
47
|
+
- [DataGridPremium] Use custom cell component for grouping cell by default (#6692) @cherniavskii
|
|
48
|
+
- [l10n] Improve Ukrainian (uk-UA) locale (#7009) @rettoua
|
|
49
|
+
|
|
50
|
+
### `@mui/x-date-pickers@v6.0.0-alpha.10` / `@mui/x-date-pickers-pro@v6.0.0-alpha.10`
|
|
51
|
+
|
|
52
|
+
#### Breaking changes
|
|
53
|
+
|
|
54
|
+
- Rename `dateRangeIcon` to `dateIcon` (#7024) @LukasTy
|
|
55
|
+
|
|
56
|
+
The `dateRangeIcon` prop has been renamed to `dateIcon`:
|
|
57
|
+
|
|
58
|
+
```diff
|
|
59
|
+
// Same on all other Date Time Picker variations
|
|
60
|
+
<DateTimePicker
|
|
61
|
+
componentsProps={{
|
|
62
|
+
tabs: {
|
|
63
|
+
- dateRangeIcon: <LightModeIcon />,
|
|
64
|
+
+ dateIcon: <LightModeIcon />,
|
|
65
|
+
}
|
|
66
|
+
}}
|
|
67
|
+
/>
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
#### Changes
|
|
71
|
+
|
|
72
|
+
- [DateTimePicker] Rename `dateRangeIcon` to `dateIcon` (#7024) @LukasTy
|
|
73
|
+
- [pickers] Allow non-controlled usage of `TimeClock` (#6962) @flaviendelangle
|
|
74
|
+
- [pickers] Throw error when using adapter from `@date-io` (#6972) @flaviendelangle
|
|
75
|
+
- [l10n] Add Urdu (ur-PK) locale (#7007) @MBilalShafi
|
|
76
|
+
- [l10n] Improve Ukrainian (uk-UA) locale (#7009) @rettoua
|
|
77
|
+
|
|
78
|
+
### Docs
|
|
79
|
+
|
|
80
|
+
- [docs] Add Demos section on the pickers API pages (#6909) @flaviendelangle
|
|
81
|
+
- [docs] Add missing pickers migration docs (#7000) @LukasTy
|
|
82
|
+
- [docs] Fix broken link (#7048) @flaviendelangle
|
|
83
|
+
- [docs] Improve demo about customizing pagination (#6724) @m4theushw
|
|
84
|
+
- [docs] Keep track of localization completion (#7002) @alexfauquette
|
|
85
|
+
- [docs] Remove `LocalizationProvider` from previews (#6869) @flaviendelangle
|
|
86
|
+
- [docs] Remove the statement of support to RTL (#6521) @joserodolfofreitas
|
|
87
|
+
- [docs] Rework localization doc pages (#6625) @flaviendelangle
|
|
88
|
+
- [docs] Setup GitHub issue template for feedbacks about docs (#7026) @alexfauquette
|
|
89
|
+
- [docs] Test links with API page ignoring url hash (#7004) @alexfauquette
|
|
90
|
+
- [docs] Update API links from clock-picker to time-clock (#6993) @alexfauquette
|
|
91
|
+
- [docs] Use new pickers on the validation page (#7047) @flaviendelangle
|
|
92
|
+
|
|
93
|
+
### Core
|
|
94
|
+
|
|
95
|
+
- [core] Remove useless type casting in field hooks (#7045) @flaviendelangle
|
|
96
|
+
- [test] Sync `test:unit` with monorepo (#6907) @oliviertassinari
|
|
97
|
+
|
|
98
|
+
## 6.0.0-alpha.9
|
|
99
|
+
|
|
100
|
+
_Nov 24, 2022_
|
|
101
|
+
|
|
102
|
+
We'd like to offer a big thanks to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
103
|
+
|
|
104
|
+
- 🎁 Introduce the v6 pickers, built on top of the field components [DatePicker](https://next.mui.com/x/react-date-pickers/date-picker/), [TimePicker](https://next.mui.com/x/react-date-pickers/time-picker/), [DateTimePicker](https://next.mui.com/x/react-date-pickers/date-time-picker/), [DateRangePicker](https://next.mui.com/x/react-date-pickers/date-range-picker/).
|
|
105
|
+
|
|
106
|
+
The old (legacy) components will be removed at the end of the v6 beta.
|
|
107
|
+
|
|
108
|
+
- 💅 Add support for `theme.vars` in the pickers and the DataGrid (#6784, #6778) @alexfauquette
|
|
109
|
+
- ✨ Improve DataGrid theme augmentation (#5818) @iigrik
|
|
110
|
+
- 📚 Documentation improvements
|
|
111
|
+
- 🐞 Bugfixes
|
|
112
|
+
|
|
113
|
+
### `@mui/x-data-grid@v6.0.0-alpha.9` / `@mui/x-data-grid-pro@v6.0.0-alpha.9` / `@mui/x-data-grid-premium@v6.0.0-alpha.9`
|
|
114
|
+
|
|
115
|
+
### Breaking changes
|
|
116
|
+
|
|
117
|
+
- <kbd>Ctrl</kbd> + <kbd>Enter</kbd> will no longer toggle the master detail panel (#6945) @MBilalShafi
|
|
118
|
+
You can restore the old behavior by listening to `cellKeyDown` and calling `apiRef.current.toggleDetailPanel()`.
|
|
119
|
+
|
|
120
|
+
- Remove unnecessary keyboard navigation events (#6863) @m4theushw
|
|
121
|
+
The `cellNavigationKeyDown` event was removed. Use `cellKeyDown` and check the key provided in the event argument.
|
|
122
|
+
The `columnHeaderNavigationKeyDown` event was removed. Use `columnHeaderKeyDown` and check the key provided in the event argument.
|
|
123
|
+
|
|
124
|
+
- Rename `rowsScroll` event to `scrollPositionChange` (#6957) @DanailH
|
|
125
|
+
|
|
126
|
+
#### Changes
|
|
127
|
+
|
|
128
|
+
- [DataGrid] Add spacing in `GridToolbar` for better visibility (#6904) @MBilalShafi
|
|
129
|
+
- [DataGrid] Improve typing for the theme in `styleOverrides` (#5818) @iigrik
|
|
130
|
+
- [DataGrid] Prevents master detail panel toggle with <kbd>Ctrl</kbd> + <kbd>Enter</kbd> (#6945) @MBilalShafi
|
|
131
|
+
- [DataGrid] Remove unnecessary keyboard navigation events (#6863) @m4theushw
|
|
132
|
+
- [DataGrid] Rename `ErrorOverlay` to `GridErrorOverlay` (#6946) @MBilalShafi
|
|
133
|
+
- [DataGrid] Stop exporting root base state selectors (#6912) @DanailH
|
|
134
|
+
- [DataGrid] Support `theme.vars` (#6784) @alexfauquette
|
|
135
|
+
- [DataGrid] Rename `rowsScroll` event to `scrollPositionChange` (#6957) @DanailH
|
|
136
|
+
- [DataGridPro] Fix lazy-loaded rows not working with `updateRows` API method (#6976) @cherniavskii
|
|
137
|
+
- [DataGridPremium] Improve typing for theme in `styleOverrides` (#6920) @m4theushw
|
|
138
|
+
- [l10n] Fix translation of `filterOperatorBefore` in Arabic (ar-SD) locale (#6884) @HassanGhazy
|
|
139
|
+
|
|
140
|
+
### `@mui/x-date-pickers@v6.0.0-alpha.9` / `@mui/x-date-pickers-pro@v6.0.0-alpha.9`
|
|
141
|
+
|
|
142
|
+
#### Changes
|
|
143
|
+
|
|
144
|
+
- [DatePicker] Display week number (#6144) @alexfauquette
|
|
145
|
+
- [pickers] Clean `PickersCalendarHeader` slots (#6943) @flaviendelangle
|
|
146
|
+
- [pickers] Do not loose the translations when using nested `LocalizationProvider` with each a `localeText` prop (#6895) @flaviendelangle
|
|
147
|
+
- [pickers] Fix calendar header switch view button hover circle (#6938) @rajendraarora16
|
|
148
|
+
- [pickers] Fix focus management (#6914) @alexfauquette
|
|
149
|
+
- [pickers] Fix usage with Shadow DOM (#6952) @flaviendelangle
|
|
150
|
+
- [pickers] New `MobileDateRangePicker`, `DesktopDateRangePicker`, `DateRangePicker` and `StaticDateRangePicker` based on `MultiInputDateRangeField` (#6888) @flaviendelangle
|
|
151
|
+
- [pickers] Support `theme.vars` (#6778) @alexfauquette
|
|
152
|
+
|
|
153
|
+
### Docs
|
|
154
|
+
|
|
155
|
+
- [docs] Add new "Expired package version" error type (#6937) @oliviertassinari
|
|
156
|
+
- [docs] Add support for API pages of unstable components (#6981) @flaviendelangle
|
|
157
|
+
- [docs] Create docs for the new date pickers (#6902) @flaviendelangle
|
|
158
|
+
- [docs] Create docs for the new time, date time and date range pickers (#6958) @flaviendelangle
|
|
159
|
+
- [docs] Fix demos live edit (#6975) @oliviertassinari
|
|
160
|
+
- [docs] Fix toggle button bug in demos in Custom Components page (#6913) @01zulfi
|
|
161
|
+
- [docs] Remove partial Portuguese and Chinese translations of the pickers pages (#6893) @flaviendelangle
|
|
162
|
+
|
|
163
|
+
### Core
|
|
164
|
+
|
|
165
|
+
- [core] Cleanup `describeValidation` (#6942) @flaviendelangle
|
|
166
|
+
- [core] Group renovate GitHub Action dependency updates @oliviertassinari
|
|
167
|
+
- [core] Introduce `x-codemod` package (#6876) @LukasTy
|
|
168
|
+
- [core] Update minimum supported version of Node.js to 14.0.0 (#6966) @cherniavskii
|
|
169
|
+
- [core] Upgrade monorepo (#6905) @cherniavskii
|
|
170
|
+
- [core] Upgrade node to v14.21 (#6916) @piwysocki
|
|
171
|
+
- [core] Upgrade ESLint (#6738) @Janpot
|
|
172
|
+
- [test] Test validation on date range view (#6941) @alexfauquette
|
|
173
|
+
|
|
174
|
+
## 6.0.0-alpha.8
|
|
175
|
+
|
|
176
|
+
_Nov 17, 2022_
|
|
177
|
+
|
|
178
|
+
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
|
|
179
|
+
|
|
180
|
+
- 🎁 Support aggregating data from multiple row fields (#6656) @cherniavskii
|
|
181
|
+
- 📚 Documentation improvements
|
|
182
|
+
- 🐞 Bugfixes
|
|
183
|
+
|
|
184
|
+
### `@mui/x-data-grid@v6.0.0-alpha.8` / `@mui/x-data-grid-pro@v6.0.0-alpha.8` / `@mui/x-data-grid-premium@v6.0.0-alpha.8`
|
|
185
|
+
|
|
186
|
+
#### Changes
|
|
187
|
+
|
|
188
|
+
- [DataGrid] Fix `ErrorOverlay` not receiving defined input props (#6819) @banoth-ravinder
|
|
189
|
+
- [DataGrid] Fix conflict with the latest version of `@types/react` (#6797) @vizv
|
|
190
|
+
- [DataGrid] Make more `apiRef` methods private (#6700) @cherniavskii
|
|
191
|
+
- [DataGrid] Provide a clear error message when upgrading (#6685) @oliviertassinari
|
|
192
|
+
- [DataGridPremium] Allow to customize the indent of group expansion toggle (#6837) @MBilalShafi
|
|
193
|
+
- [DataGridPremium] Support aggregating data from multiple row fields (#6656) @cherniavskii
|
|
194
|
+
- [DataGridPro] Fix detail panel not working with `getRowSpacing` prop (#6707) @cherniavskii
|
|
195
|
+
- [DataGridPro] Opt-out for column jump back on re-order (#6733) @gavbrennan
|
|
196
|
+
- [l10n] Improve Finnish (fi-FI) locale (#6859) @RainoPikkarainen
|
|
197
|
+
|
|
198
|
+
### `@mui/x-date-pickers@v6.0.0-alpha.8` / `@mui/x-date-pickers-pro@v6.0.0-alpha.8`
|
|
199
|
+
|
|
200
|
+
#### Breaking changes
|
|
201
|
+
|
|
202
|
+
- The `ClockPicker` view component has been renamed to `TimeClock` to better fit its usage:
|
|
203
|
+
|
|
204
|
+
```diff
|
|
205
|
+
-<ClockPicker {...props} />
|
|
206
|
+
+<TimeClock {...props} />
|
|
207
|
+
```
|
|
208
|
+
|
|
209
|
+
Component name in the theme has changed as well:
|
|
210
|
+
|
|
211
|
+
```diff
|
|
212
|
+
-MuiClockPicker: {
|
|
213
|
+
+MuiTimeClock: {
|
|
214
|
+
```
|
|
215
|
+
|
|
216
|
+
#### Changes
|
|
217
|
+
|
|
218
|
+
- [pickers] Fix typing and prop drilling on `DateRangeCalendar` and multi input range fields (#6852) @flaviendelangle
|
|
219
|
+
- [pickers] Pass the `ampm` prop from the new pickers to their field (#6868) @flaviendelangle
|
|
220
|
+
- [pickers] Rename `CalendarPickerView`, `ClockPickerView` and `CalendarOrClockPickerView` (#6855) @flaviendelangle
|
|
221
|
+
- [pickers] Rename `ClockPicker` into `TimeClock` (#6851) @flaviendelangle
|
|
222
|
+
|
|
223
|
+
### Docs
|
|
224
|
+
|
|
225
|
+
- [docs] Add `dayjs` to the dependencies (#6862) @m4theushw
|
|
226
|
+
- [docs] Clarify how the Row Pinning works with other features of the DataGrid (#6853) @cherniavskii
|
|
227
|
+
- [docs] Fix typo in Export page (#6848) @m4theushw
|
|
228
|
+
- [docs] Group picker pages (#6369) @flaviendelangle
|
|
229
|
+
- [docs] Remove default prop and improve format (#6781) @oliviertassinari
|
|
230
|
+
- [docs] Sync prism-okaidia.css with source (#6820) @oliviertassinari
|
|
231
|
+
|
|
232
|
+
### Core
|
|
233
|
+
|
|
234
|
+
- [core] Convert scripts to ESM (#6789) @LukasTy
|
|
235
|
+
- [core] Feedback on branch protection @oliviertassinari
|
|
236
|
+
- [core] Fix `test-types` out of memory error (#6850) @LukasTy
|
|
237
|
+
- [core] Import from `@mui/utils` instead of `@mui/material/utils` (#6816) @cherniavskii
|
|
238
|
+
- [core] Show the whole version to make blame easier @oliviertassinari
|
|
239
|
+
- [core] Small changes on new pickers internals (#6840) @flaviendelangle
|
|
240
|
+
- [core] Remove prettier scripts (#6815) @Janpot
|
|
241
|
+
- [license] Polish error messages (#6881) @oliviertassinari
|
|
242
|
+
- [test] Verify `onError` call on the pickers (#6771) @alexfauquette
|
|
243
|
+
|
|
244
|
+
## 6.0.0-alpha.7
|
|
245
|
+
|
|
246
|
+
_Nov 10, 2022_
|
|
247
|
+
|
|
248
|
+
We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
|
|
249
|
+
|
|
250
|
+
- ⚙️ Removed everything marked as `@deprecated`
|
|
251
|
+
- 📚 Documentation improvements
|
|
252
|
+
- 🐞 Bugfixes
|
|
253
|
+
|
|
254
|
+
### `@mui/x-data-grid@v6.0.0-alpha.7` / `@mui/x-data-grid-pro@v6.0.0-alpha.7` / `@mui/x-data-grid-premium@v6.0.0-alpha.7`
|
|
255
|
+
|
|
256
|
+
#### Changes
|
|
257
|
+
|
|
258
|
+
- [DataGrid] Fix cell focus causing scroll jump when virtualization enabled (#6785) @yaredtsy
|
|
259
|
+
- [DataGrid] Remove items marked as `@deprecated` (#6505) @DanailH
|
|
260
|
+
|
|
261
|
+
### `@mui/x-date-pickers@v6.0.0-alpha.7` / `@mui/x-date-pickers-pro@v6.0.0-alpha.7`
|
|
262
|
+
|
|
263
|
+
#### Changes
|
|
264
|
+
|
|
265
|
+
- [fields] Rename section names to match the picker view nomenclature (#6779) @flaviendelangle
|
|
266
|
+
- [pickers] Fix pickers toolbar styling (#6793) @LukasTy
|
|
267
|
+
- [pickers] Improve validation JSDoc descriptions (#6777) @flaviendelangle
|
|
268
|
+
- [pickers] New `MobileDateTimePicker`, `DesktopDateTimePicker`, `DateTimePicker` and `StaticDateTimePicker` based on `DateTimeField` (#6767) @flaviendelangle
|
|
269
|
+
- [pickers] New `MobileTimePicker`, `DesktopTimePicker`, `TimePicker` and `StaticTimePicker` based on `TimeField` (#6728) @flaviendelangle
|
|
270
|
+
- [pickers] Support the `onError` prop and add context on the `onChange` prop (#6731) @flaviendelangle
|
|
271
|
+
|
|
272
|
+
### Docs
|
|
273
|
+
|
|
274
|
+
- [docs] Add missing Pro header suffix (#6775) @oliviertassinari
|
|
275
|
+
- [docs] Upgrade to Next.js 13 (#6790) @cherniavskii
|
|
276
|
+
|
|
277
|
+
### Core
|
|
278
|
+
|
|
279
|
+
- [core] Add OSSF Scorecard action (#6760) @oliviertassinari
|
|
280
|
+
- [core] Fix Pinned-Dependencies @oliviertassinari
|
|
281
|
+
- [core] Fix Scorecard fail Action @oliviertassinari
|
|
282
|
+
- [core] Pin GitHub Action dependencies (#6739) @renovate[bot]
|
|
283
|
+
- [core] Remove default access to GitHub action scopes @oliviertassinari
|
|
284
|
+
- [test] Fix test case name: Pro-> Premium @oliviertassinari
|
|
285
|
+
|
|
286
|
+
## 6.0.0-alpha.6
|
|
287
|
+
|
|
288
|
+
_Nov 4, 2022_
|
|
289
|
+
|
|
290
|
+
We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
|
|
291
|
+
|
|
292
|
+
- 🎁 Allow non-controlled usage of the calendar components (#6643) @flaviendelangle
|
|
293
|
+
|
|
294
|
+
```tsx
|
|
295
|
+
<DateCalendar defaultValue={dayjs()} />
|
|
296
|
+
<MonthCalendar defaultValue={dayjs()} />
|
|
297
|
+
<YearCalendar defaultValue={dayjs()} />
|
|
298
|
+
```
|
|
299
|
+
|
|
300
|
+
- 🌍 Add Ukrainian (uk-UA) locale to pickers (#6661) @Dufran
|
|
301
|
+
- 📚 Documentation improvements
|
|
302
|
+
- 🐞 Bugfixes
|
|
303
|
+
|
|
304
|
+
### `@mui/x-data-grid@v6.0.0-alpha.6` / `@mui/x-data-grid-pro@v6.0.0-alpha.6` / `@mui/x-data-grid-premium@v6.0.0-alpha.6`
|
|
305
|
+
|
|
306
|
+
#### Breaking changes
|
|
307
|
+
|
|
308
|
+
- The `disableIgnoreModificationsIfProcessingProps` prop has been removed and its behavior when `true` was incorporated as the default behavior.
|
|
309
|
+
The old behavior can be restored by using `apiRef.current.stopRowEditMode({ ignoreModifications: true })` or `apiRef.current.stopCellEditMode({ ignoreModifications: true })`.
|
|
310
|
+
|
|
311
|
+
#### Changes
|
|
312
|
+
|
|
313
|
+
- [DataGrid] Add `rowSelection` prop (#6499) @m4theushw
|
|
314
|
+
- [DataGrid] Avoid future regression with React 19 (#6638) @oliviertassinari
|
|
315
|
+
- [DataGrid] Refactor `@mui/material` imports to `@mui/utils` (#6569) @LukasTy
|
|
316
|
+
- [DataGrid] Remove `disableIgnoreModificationsIfProcessingProps` prop (#6640) @m4theushw
|
|
317
|
+
- [DataGrid] Separate private and public `apiRef` properties (#6388) @cherniavskii
|
|
318
|
+
|
|
319
|
+
### `@mui/x-date-pickers@v6.0.0-alpha.6` / `@mui/x-date-pickers-pro@v6.0.0-alpha.6`
|
|
320
|
+
|
|
321
|
+
#### Changes
|
|
322
|
+
|
|
323
|
+
- [DateRangePicker] Fix input focused style and mobile behaviour (#6645) @LukasTy
|
|
324
|
+
- [fields] Update sections when the locale changes (#6649) @flaviendelangle
|
|
325
|
+
- [pickers] Add Ukrainian (uk-UA) locale (#6661) @Dufran
|
|
326
|
+
- [pickers] Allow non-controlled usage of the calendar components (#6643) @flaviendelangle
|
|
327
|
+
- [pickers] Export other adapters derived from moment or date-fns (#6571) @alexfauquette
|
|
328
|
+
- [pickers] New `MobileDatePicker` and `DatePicker` based on `DateField` (#6690) @flaviendelangle
|
|
329
|
+
- [pickers] New `StaticDatePicker` component (#6708) @flaviendelangle
|
|
330
|
+
- [pickers] Rename `inputFormat` prop to `format` on the new pickers (#6722) @flaviendelangle
|
|
331
|
+
|
|
332
|
+
### Core
|
|
333
|
+
|
|
334
|
+
- [core] Fix `typescript:ci` failures (#6705) @LukasTy
|
|
335
|
+
- [core] Fixes for upcoming eslint upgrade (#6667) @Janpot
|
|
336
|
+
- [core] Pin GitHub Action to digests (#6683) @oliviertassinari
|
|
337
|
+
|
|
338
|
+
## 6.0.0-alpha.5
|
|
339
|
+
|
|
340
|
+
_Oct 31, 2022_
|
|
341
|
+
|
|
342
|
+
We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
343
|
+
|
|
344
|
+
- ⚡ Fix memory leak during unmount of the DataGrid (#6620) @cherniavskii
|
|
345
|
+
- 📝 New guide for migrating pickers from v5 to v6 (#6472) @flaviendelangle
|
|
346
|
+
- 🎁 Allow to disable the autofocus of the search field when opening the column visibility panel (#6444) @e-cloud
|
|
347
|
+
- 🐞 Bugfixes
|
|
348
|
+
|
|
349
|
+
### `@mui/x-data-grid@v6.0.0-alpha.5` / `@mui/x-data-grid-pro@v6.0.0-alpha.5` / `@mui/x-data-grid-premium@v6.0.0-alpha.5`
|
|
350
|
+
|
|
351
|
+
#### Breaking changes
|
|
352
|
+
|
|
353
|
+
- Stop exporting `gridColumnsSelector` (#6693) @m4theushw
|
|
354
|
+
|
|
355
|
+
The `gridColumnsSelector` was deprecated during v5 and is now removed from the export list.
|
|
356
|
+
|
|
357
|
+
Please consider using one of the following selectors as a replacement:
|
|
358
|
+
|
|
359
|
+
- `gridColumnFieldsSelector`, to obtain the column fields in the order they appear on the screen;
|
|
360
|
+
- `gridColumnLookupSelector`, to access column definitions by field;
|
|
361
|
+
- `gridColumnVisibilityModelSelector`, for the visibility state of each column.
|
|
362
|
+
|
|
363
|
+
#### Changes
|
|
364
|
+
|
|
365
|
+
- [DataGrid] Allow to disable autofocusing the search field in the columns panel (#6444) @e-cloud
|
|
366
|
+
- [DataGrid] Fix `setRows` method not persisting new rows data after `loading` prop change (#6493) @cherniavskii
|
|
367
|
+
- [DataGrid] Fix memory leak on grid unmount (#6620) @cherniavskii
|
|
368
|
+
- [DataGrid] Rename `GridColumnsState['all']` to `GridColumnsState['orderedFields']` (#6562) @DanailH
|
|
369
|
+
- [DataGrid] Remove `React.memo` from `GridCellCheckboxRenderer` (#6655) @mattcorner
|
|
370
|
+
- [DataGrid] Stop exporting `gridColumnsSelector` (#6693)
|
|
371
|
+
- [l10n] Improve Bulgarian (bg-BG) locale (#6578) @AtanasVA
|
|
372
|
+
|
|
373
|
+
### `@mui/x-date-pickers@v6.0.0-alpha.5` / `@mui/x-date-pickers-pro@v6.0.0-alpha.5`
|
|
374
|
+
|
|
375
|
+
#### Breaking changes
|
|
376
|
+
|
|
377
|
+
- [pickers] Rename remaining `private` components (#6550) @LukasTy
|
|
378
|
+
Previously we had 4 component names with `Private` prefix in order to avoid breaking changes in v5.
|
|
379
|
+
These components were renamed:
|
|
380
|
+
|
|
381
|
+
- `PrivatePickersMonth` -> `MuiPickersMonth`
|
|
382
|
+
- `PrivatePickersSlideTransition` -> `MuiPickersSlideTransition`
|
|
383
|
+
- `PrivatePickersToolbarText` -> `MuiPickersToolbarText`
|
|
384
|
+
- `PrivatePickersYear` -> `MuiPickersYear`
|
|
385
|
+
|
|
386
|
+
Manual style overriding will need to use updated classes:
|
|
387
|
+
|
|
388
|
+
```diff
|
|
389
|
+
-.PrivatePickersMonth-root {
|
|
390
|
+
+.MuiPickersMonth-root {
|
|
391
|
+
|
|
392
|
+
-.PrivatePickersSlideTransition-root {
|
|
393
|
+
+.MuiPickersSlideTransition-root {
|
|
394
|
+
|
|
395
|
+
-.PrivatePickersToolbarText-root {
|
|
396
|
+
+.MuiPickersToolbarText-root {
|
|
397
|
+
|
|
398
|
+
-.PrivatePickersYear-root {
|
|
399
|
+
+.MuiPickersYear-root {
|
|
400
|
+
```
|
|
401
|
+
|
|
402
|
+
Component name changes are also reflected in `themeAugmentation`:
|
|
403
|
+
|
|
404
|
+
```diff
|
|
405
|
+
const theme = createTheme({
|
|
406
|
+
components: {
|
|
407
|
+
- PrivatePickersMonth: {
|
|
408
|
+
+ MuiPickersMonth: {
|
|
409
|
+
// overrides
|
|
410
|
+
},
|
|
411
|
+
- PrivatePickersSlideTransition: {
|
|
412
|
+
+ MuiPickersSlideTransition: {
|
|
413
|
+
// overrides
|
|
414
|
+
},
|
|
415
|
+
- PrivatePickersToolbarText: {
|
|
416
|
+
+ MuiPickersToolbarText: {
|
|
417
|
+
// overrides
|
|
418
|
+
},
|
|
419
|
+
- PrivatePickersYear: {
|
|
420
|
+
+ MuiPickersYear: {
|
|
421
|
+
// overrides
|
|
422
|
+
},
|
|
423
|
+
},
|
|
424
|
+
});
|
|
425
|
+
```
|
|
426
|
+
|
|
427
|
+
#### Changes
|
|
428
|
+
|
|
429
|
+
- [DateTimePicker] Fix toolbar time order when `theme.rtl=true` (#6636) @alexfauquette
|
|
430
|
+
- [pickers] Import fixes for mask editing (#6623) @alexfauquette
|
|
431
|
+
- [pickers] Rename remaining `private` components (#6550) @LukasTy
|
|
432
|
+
- [pickers] New `DesktopDatePicker` based on `DateField` (#6548) @flaviendelangle
|
|
433
|
+
|
|
434
|
+
### Docs
|
|
435
|
+
|
|
436
|
+
- [docs] Add feedback in next doc (#6591) @alexfauquette
|
|
437
|
+
- [docs] Check link validity in PR (#6497) @alexfauquette
|
|
438
|
+
- [docs] Disable translations (#6560) @cherniavskii
|
|
439
|
+
- [docs] Fix typo in DataGrid demo page (#6632) @banoth-ravinder
|
|
440
|
+
- [docs] New page to migrate pickers from v5 to v6 (#6472) @flaviendelangle
|
|
441
|
+
- [docs] Remove broken welcome page (#6585) @alexfauquette
|
|
442
|
+
- [docs] Mark data grid column group as available (#6660) @alexfauquette
|
|
443
|
+
- [docs] Fix double space @oliviertassinari
|
|
444
|
+
|
|
445
|
+
### Core
|
|
446
|
+
|
|
447
|
+
- [core] Fix duplicate CodeQL build @oliviertassinari
|
|
448
|
+
- [core] Fix spreading on validation page (#6624) @flaviendelangle
|
|
449
|
+
- [core] Small TypeScript improvements (#6575) @flaviendelangle
|
|
450
|
+
- [core] Upgrade monorepo (#6594) @oliviertassinari
|
|
451
|
+
- [core] Change reproduction position (#6621) @oliviertassinari
|
|
452
|
+
- [core] Fix permissions in `no-response` workflow (#6658) @cherniavskii
|
|
453
|
+
- [core] Remove legacy migration function (#6669) @oliviertassinari
|
|
454
|
+
- [license] Improve the license content (#6459) @oliviertassinari
|
|
455
|
+
- [test] Test Arrow up/down on every token (#6563) @alexfauquette
|
|
456
|
+
|
|
457
|
+
## 6.0.0-alpha.4
|
|
458
|
+
|
|
459
|
+
_Oct 20, 2022_
|
|
460
|
+
|
|
461
|
+
We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
462
|
+
|
|
463
|
+
- 📝 Manage pickers' toolbar customization with slots
|
|
464
|
+
- 🐞 Bugfixes
|
|
465
|
+
- 🌍 Improve Turkish (tr-TR) locale on the data grid and pickers (#6542) @ramazansancar
|
|
466
|
+
|
|
467
|
+
### `@mui/x-data-grid@v6.0.0-alpha.4` / `@mui/x-data-grid-pro@v6.0.0-alpha.4` / `@mui/x-data-grid-premium@v6.0.0-alpha.4`
|
|
468
|
+
|
|
469
|
+
#### Breaking changes
|
|
470
|
+
|
|
471
|
+
- To avoid confusion with the props that will be added for the cell selection feature, some props related to row selection were renamed to have "row" in their name.
|
|
472
|
+
The renamed props are the following:
|
|
473
|
+
|
|
474
|
+
| Old name | New name |
|
|
475
|
+
| -------------------------- | ----------------------------- |
|
|
476
|
+
| `selectionModel` | `rowSelectionModel` |
|
|
477
|
+
| `onSelectionModelChange` | `onRowSelectionModelChange` |
|
|
478
|
+
| `disableSelectionOnClick` | `disableRowSelectionOnClick` |
|
|
479
|
+
| `disableMultipleSelection` | `disableMultipleRowSelection` |
|
|
480
|
+
|
|
481
|
+
- The `gridSelectionStateSelector` selector was renamed to `gridRowSelectionStateSelector`.
|
|
482
|
+
|
|
483
|
+
- The `selectionChange` event was renamed to `rowSelectionChange`.
|
|
484
|
+
|
|
485
|
+
#### Changes
|
|
486
|
+
|
|
487
|
+
- [DataGrid] Add `searchPredicate` prop to `GridColumnsPanel` component (#6557) @cherniavskii
|
|
488
|
+
- [DataGrid] Support keyboard navigation in column group header (#5947) @alexfauquette
|
|
489
|
+
- [DataGrid] Fix grid not updating state on `rowCount` prop change (#5982) @cherniavskii
|
|
490
|
+
- [DataGrid] Rename selection props (#6556) @m4theushw
|
|
491
|
+
- [l10n] Improve Turkish (tr-TR) locale on the data grid and pickers (#6542) @ramazansancar
|
|
492
|
+
|
|
493
|
+
### `@mui/x-date-pickers@v6.0.0-alpha.4` / `@mui/x-date-pickers-pro@v6.0.0-alpha.4`
|
|
494
|
+
|
|
495
|
+
#### Breaking changes
|
|
496
|
+
|
|
497
|
+
- The `ToolbarComponent` has been replaced by a `Toolbar` component slot.
|
|
498
|
+
You can find more information about this pattern in the [MUI Base documentation](https://mui.com/base/getting-started/usage/#shared-props):
|
|
499
|
+
|
|
500
|
+
```diff
|
|
501
|
+
// Same on all other pickers
|
|
502
|
+
<DatePicker
|
|
503
|
+
- ToolbarComponent: MyToolbar,
|
|
504
|
+
+ components={{ Toolbar: MyToolbar }}
|
|
505
|
+
/>
|
|
506
|
+
```
|
|
507
|
+
|
|
508
|
+
- The `toolbarPlaceholder` and `toolbarFormat` props have been moved to the `toolbar` components props slot:
|
|
509
|
+
|
|
510
|
+
```diff
|
|
511
|
+
// Same on all other pickers
|
|
512
|
+
<DatePicker
|
|
513
|
+
- toolbarPlaceholder="__"
|
|
514
|
+
- toolbarFormat="DD / MM / YYYY"
|
|
515
|
+
+ componentsProps={{
|
|
516
|
+
+ toolbar: {
|
|
517
|
+
+ toolbarPlaceholder: '__',
|
|
518
|
+
+ toolbarFormat: 'DD / MM / YYYY',
|
|
519
|
+
+ }
|
|
520
|
+
+ }}
|
|
521
|
+
/>
|
|
522
|
+
```
|
|
523
|
+
|
|
524
|
+
- The `toolbarTitle` prop has been moved to the localization object:
|
|
525
|
+
|
|
526
|
+
```diff
|
|
527
|
+
// Same on all other pickers
|
|
528
|
+
<DatePicker
|
|
529
|
+
- toolbarTitle="Title"
|
|
530
|
+
+ localeText={{ toolbarTitle: 'Title' }}
|
|
531
|
+
/>
|
|
532
|
+
```
|
|
533
|
+
|
|
534
|
+
- The toolbar related translation keys have been renamed to better fit their usage:
|
|
535
|
+
|
|
536
|
+
```diff
|
|
537
|
+
// Same on all other pickers
|
|
538
|
+
<DatePicker
|
|
539
|
+
localeText={{
|
|
540
|
+
- datePickerDefaultToolbarTitle: 'Date Picker',
|
|
541
|
+
+ datePickerToolbarTitle: 'Date Picker',
|
|
542
|
+
|
|
543
|
+
- timePickerDefaultToolbarTitle: 'Time Picker',
|
|
544
|
+
+ timePickerToolbarTitle: 'Time Picker',
|
|
545
|
+
|
|
546
|
+
- dateTimePickerDefaultToolbarTitle: 'Date Time Picker',
|
|
547
|
+
+ dateTimePickerToolbarTitle: 'Date Time Picker',
|
|
548
|
+
|
|
549
|
+
- dateRangePickerDefaultToolbarTitle: 'Date Range Picker',
|
|
550
|
+
+ dateRangePickerToolbarTitle: 'Date Range Picker',
|
|
551
|
+
}}
|
|
552
|
+
/>
|
|
553
|
+
```
|
|
554
|
+
|
|
555
|
+
- The `onChange` / `openView` props on the toolbar have been renamed `onViewChange` / `view`
|
|
556
|
+
|
|
557
|
+
#### Changes
|
|
558
|
+
|
|
559
|
+
- [fields] Add a `validationError` property to the `onChange` callback (#6539) @flaviendelangle
|
|
560
|
+
- [fields] Distinguish start and end input error on multi input fields (#6503) @flaviendelangle
|
|
561
|
+
- [pickers] Clean the `Tabs` component slot (#6543) @flaviendelangle
|
|
562
|
+
- [pickers] Fix localization of the placeholder (#6547) @alexfauquette
|
|
563
|
+
- [pickers] Fix TypeScript issues (#6322) @flaviendelangle
|
|
564
|
+
- [pickers] Improve error consistency between single and multiple range pickers (#6561) @alexfauquette
|
|
565
|
+
- [pickers] Refactor `@mui/material` imports to `@mui/utils` (#6443) @LukasTy
|
|
566
|
+
- [pickers] Replace toolbar's props by a component slot (#6445) @flaviendelangle
|
|
567
|
+
|
|
568
|
+
### Docs
|
|
569
|
+
|
|
570
|
+
- [docs] Enable inlined preview for disabled date picker (#6477) @oliviertassinari
|
|
571
|
+
- [docs] Fix 404 errors (#6541) @alexfauquette
|
|
572
|
+
- [docs] Fix broken links on field pages (#6501) @flaviendelangle
|
|
573
|
+
- [docs] Improve markdownlint (#6518) @oliviertassinari
|
|
574
|
+
|
|
575
|
+
### Core
|
|
576
|
+
|
|
577
|
+
- [core] Run CodeQL only on schedule @oliviertassinari
|
|
578
|
+
- [core] Fix trailing spaces and git diff format (#6523) @oliviertassinari
|
|
579
|
+
- [core] Harden GitHub Actions permissions (#6396) @step-security-bot
|
|
580
|
+
- [core] Improve the playground DX (#6514) @oliviertassinari
|
|
581
|
+
- [core] Link Netlify in the danger comment (#6513) @oliviertassinari
|
|
582
|
+
- [core] Organize tests for pickers slots (#6546) @flaviendelangle
|
|
583
|
+
- [core] Remove outdated `docsearch.js` dependency (#6242) @oliviertassinari
|
|
584
|
+
- [core] Upgrade monorepo (#6549) @cherniavskii
|
|
585
|
+
- [test] Add validation test on range pickers (#6504) @alexfauquette
|
|
586
|
+
- [test] Remove BrowserStack (#6263) @DanailH
|
|
587
|
+
|
|
588
|
+
## 6.0.0-alpha.3
|
|
589
|
+
|
|
590
|
+
_Oct 13, 2022_
|
|
591
|
+
|
|
592
|
+
We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
|
|
593
|
+
|
|
594
|
+
- ⌚️ New components to edit date and time with <kbd>keyboard</kbd>—without using any modal or dropdown UI.
|
|
595
|
+
Please check out our [documentation](https://next.mui.com/x/react-date-pickers/fields/) to discover those new components.
|
|
596
|
+
|
|
597
|
+
- [`DateField`](https://next.mui.com/x/react-date-pickers/date-field/) to edit date
|
|
598
|
+
- [`TimeField`](https://next.mui.com/x/react-date-pickers/time-field/) to edit time
|
|
599
|
+
- [`DateTimeField`](https://next.mui.com/x/react-date-pickers/date-time-field/) to edit date and time
|
|
600
|
+
- [`MultiInputDateRangeField` / `SingleInputDateRangeField`](https://next.mui.com/x/react-date-pickers/date-range-field/) to edit date range
|
|
601
|
+
- [`MultiInputTimeRangeField`](https://next.mui.com/x/react-date-pickers/time-range-field/) to edit time range with two inputs
|
|
602
|
+
- [`MultiInputDateTimeRangeField`](https://next.mui.com/x/react-date-pickers/date-time-range-field/) to edit date and time range with two inputs
|
|
603
|
+
|
|
604
|
+
⚠️ These components are unstable.
|
|
605
|
+
They might receive breaking changes on their props to have the best components possible by the time of the stable release.
|
|
606
|
+
|
|
607
|
+
- 📝 Allow to limit to one filter per column for `DataGridPro` and `DataGridPremium` (#6333) @MBilalShafi
|
|
608
|
+
- 📚 New [page describing the validation props on each picker](https://next.mui.com/x/react-date-pickers/validation/) (#6064) @flaviendelangle
|
|
609
|
+
- 📚 Documentation improvements
|
|
610
|
+
- 🐞 Bugfixes
|
|
611
|
+
|
|
612
|
+
### `@mui/x-data-grid@v6.0.0-alpha.3` / `@mui/x-data-grid-pro@v6.0.0-alpha.3` / `@mui/x-data-grid-premium@v6.0.0-alpha.3`
|
|
613
|
+
|
|
614
|
+
#### Breaking changes
|
|
615
|
+
|
|
616
|
+
- [DataGrid] Remove legacy editing API
|
|
617
|
+
|
|
618
|
+
The editing API that is enabled by default was replaced with a new API that contains better support for server-side persistence, validation and customization. This new editing feature was already available in v5 under the `newEditingApi` experimental flag. In v6, this flag can be removed.
|
|
619
|
+
|
|
620
|
+
```diff
|
|
621
|
+
<DataGrid
|
|
622
|
+
- experimentalFeatures={{ newEditingApi: true }}
|
|
623
|
+
/>
|
|
624
|
+
```
|
|
625
|
+
|
|
626
|
+
For users that didn't migrate to the new editing API in v5, additional work may be needed because the new API is not equivalent to the legacy API. Although, some migration steps are available to help in this task.
|
|
627
|
+
|
|
628
|
+
- The `editCellPropsChange` event was removed. If you still need it please file a new issue so we can propose an alternative.
|
|
629
|
+
- The `cellEditCommit` event was removed and the `processRowUpdate` prop can be used in place. More information, check the [docs](https://next.mui.com/x/react-data-grid/editing/#persistence) section about the topic.
|
|
630
|
+
- The `editRowsModel` and `onEditRowsModelChange` props were removed. The [`cellModesModel`](https://next.mui.com/x/react-data-grid/editing/#controlled-mode) or [`rowModesModel`](https://next.mui.com/x/react-data-grid/editing/#controlled-mode) props can be used to achieve the same goal.
|
|
631
|
+
- The following API methods were removed:
|
|
632
|
+
- Use `apiRef.current.stopCellEditMode` to replace `apiRef.current.commitCellChange`
|
|
633
|
+
- Use `apiRef.current.startCellEditMode` to replace `apiRef.current.setCellMode(id, field, 'edit')`
|
|
634
|
+
- Use `apiRef.current.stopRowEditMode` to replace `apiRef.current.commitRowChange`
|
|
635
|
+
- Use `apiRef.current.startRowMode` to replace `apiRef.current.setRowMode(id, 'edit')`
|
|
636
|
+
- Use the [`cellModesModel`](https://next.mui.com/x/react-data-grid/editing/#controlled-mode) or [`rowModesModel`](https://next.mui.com/x/react-data-grid/editing/#controlled-mode) props to replace `apiRef.current.setEditRowsModel`
|
|
637
|
+
|
|
638
|
+
#### Changes
|
|
639
|
+
|
|
640
|
+
- [DataGrid] Fix start edit mode with printable character in React 18 (#6257) @m4theushw
|
|
641
|
+
- [DataGrid] Remove legacy editing API (#6016) @m4theushw
|
|
642
|
+
- [DataGrid] Simplify `useGridApiContext` and `useGridApiRef` type overrides (#6423) @cherniavskii
|
|
643
|
+
- [DataGrid] Use generics instead of verbose state overrides (#6409) @cherniavskii
|
|
644
|
+
- [DataGridPro] Allow to limit to one filter per column (#6333) @MBilalShafi
|
|
645
|
+
|
|
646
|
+
### `@mui/x-date-pickers@v6.0.0-alpha.3` / `@mui/x-date-pickers-pro@v6.0.0-alpha.3`
|
|
647
|
+
|
|
648
|
+
#### Breaking changes
|
|
649
|
+
|
|
650
|
+
- All the props used by the mobile and desktop wrappers to override components or components' props have been replaced by component slots. You can find more information about this pattern in the [MUI Base documentation](https://mui.com/base/getting-started/usage/#shared-props).
|
|
651
|
+
|
|
652
|
+
Some of the names have also been prefixed by `desktop` when it was unclear that the behavior was only applied on the desktop version of the pickers (or the responsive version when used on a desktop).
|
|
653
|
+
|
|
654
|
+
The `DialogProps` prop has been replaced by a `dialog` component props slot on responsive and mobile pickers:
|
|
655
|
+
|
|
656
|
+
```diff
|
|
657
|
+
// Same on MobileDatePicker, DateTimePicker, MobileDateTimePicker,
|
|
658
|
+
// TimePicker, MobileTimePicker, DateRangePicker and MobileDateRangePicker.
|
|
659
|
+
<DatePicker
|
|
660
|
+
- DialogProps={{ backgroundColor: 'red' }}
|
|
661
|
+
+ componentsProps={{ dialog: { backgroundColor: 'red }}}
|
|
662
|
+
/>
|
|
663
|
+
```
|
|
664
|
+
|
|
665
|
+
The `PaperProps` prop has been replaced by a `desktopPaper` component props slot on all responsive and desktop pickers:
|
|
666
|
+
|
|
667
|
+
```diff
|
|
668
|
+
// Same on DesktopDatePicker, DateTimePicker, DesktopDateTimePicker,
|
|
669
|
+
// TimePicker, DesktopTimePicker, DateRangePicker and DesktopDateRangePicker.
|
|
670
|
+
<DatePicker
|
|
671
|
+
- PaperProps={{ backgroundColor: 'red' }}
|
|
672
|
+
+ componentsProps={{ desktopPaper: { backgroundColor: 'red }}}
|
|
673
|
+
/>
|
|
674
|
+
```
|
|
675
|
+
|
|
676
|
+
The `PopperProps` prop has been replaced by a `popper` component props slot on all responsive and desktop pickers:
|
|
677
|
+
|
|
678
|
+
```diff
|
|
679
|
+
// Same on DesktopDatePicker, DateTimePicker, DesktopDateTimePicker,
|
|
680
|
+
// TimePicker, DesktopTimePicker, DateRangePicker and DesktopDateRangePicker.
|
|
681
|
+
<DatePicker
|
|
682
|
+
- PopperProps={{ onClick: handleClick }}
|
|
683
|
+
+ componentsProps={{ popper: { onClick: handleClick }}}
|
|
684
|
+
/>
|
|
685
|
+
```
|
|
686
|
+
|
|
687
|
+
The `TransitionComponent` prop has been replaced by a `DesktopTransition` component slot on all responsive and desktop pickers:
|
|
688
|
+
|
|
689
|
+
```diff
|
|
690
|
+
// Same on DesktopDatePicker, DateTimePicker, DesktopDateTimePicker,
|
|
691
|
+
// TimePicker, DesktopTimePicker, DateRangePicker and DesktopDateRangePicker.
|
|
692
|
+
<DatePicker
|
|
693
|
+
- TransitionComponent={Fade}
|
|
694
|
+
+ components={{ DesktopTransition: Fade }}
|
|
695
|
+
/>
|
|
696
|
+
```
|
|
697
|
+
|
|
698
|
+
The `TrapFocusProps` prop has been replaced by a `desktopTrapFocus` component props slot on all responsive and desktop pickers:
|
|
699
|
+
|
|
700
|
+
```diff
|
|
701
|
+
// Same on DesktopDatePicker, DateTimePicker, DesktopDateTimePicker,
|
|
702
|
+
// TimePicker, DesktopTimePicker, DateRangePicker and DesktopDateRangePicker.
|
|
703
|
+
<DatePicker
|
|
704
|
+
- TrapFocusProps={{ isEnabled: () => false }}
|
|
705
|
+
+ componentsProps={{ desktopTrapFocus: { isEnabled: () => false }}}
|
|
706
|
+
/>
|
|
707
|
+
```
|
|
708
|
+
|
|
709
|
+
- The view components allowing to pick a date or parts of a date without an input have been renamed to better fit their usage:
|
|
710
|
+
|
|
711
|
+
```diff
|
|
712
|
+
-<CalendarPicker {...props} />
|
|
713
|
+
+<DateCalendar {...props} />
|
|
714
|
+
```
|
|
715
|
+
|
|
716
|
+
```diff
|
|
717
|
+
-<DayPicker {...props} />
|
|
718
|
+
+<DayCalendar {...props} />
|
|
719
|
+
```
|
|
720
|
+
|
|
721
|
+
```diff
|
|
722
|
+
-<CalendarPickerSkeleton {...props} />
|
|
723
|
+
+<DayCalendarSkeleton {...props} />
|
|
724
|
+
```
|
|
725
|
+
|
|
726
|
+
```diff
|
|
727
|
+
-<MonthPicker {...props} />
|
|
728
|
+
+<MonthCalendar {...props} />
|
|
729
|
+
```
|
|
730
|
+
|
|
731
|
+
```diff
|
|
732
|
+
-<YearPicker {...props} />
|
|
733
|
+
+<YearCalendar {...props} />
|
|
734
|
+
```
|
|
735
|
+
|
|
736
|
+
- Component names in the theme have changed as well:
|
|
737
|
+
|
|
738
|
+
```diff
|
|
739
|
+
-MuiCalendarPicker: {
|
|
740
|
+
+MuiDateCalendar: {
|
|
741
|
+
```
|
|
742
|
+
|
|
743
|
+
```diff
|
|
744
|
+
-MuiDayPicker: {
|
|
745
|
+
+MuiDayCalendar: {
|
|
746
|
+
```
|
|
747
|
+
|
|
748
|
+
```diff
|
|
749
|
+
-MuiCalendarPickerSkeleton: {
|
|
750
|
+
+MuiDayCalendarSkeleton: {
|
|
751
|
+
```
|
|
752
|
+
|
|
753
|
+
```diff
|
|
754
|
+
-MuiMonthPicker: {
|
|
755
|
+
+MuiMonthCalendar: {
|
|
756
|
+
```
|
|
757
|
+
|
|
758
|
+
```diff
|
|
759
|
+
-MuiYearPicker: {
|
|
760
|
+
+MuiYearCalendar: {
|
|
761
|
+
```
|
|
762
|
+
|
|
763
|
+
#### Changes
|
|
764
|
+
|
|
765
|
+
- [DatePicker] Allows to fix the number of week displayed (#6299) @alexfauquette
|
|
766
|
+
- [DateRangePicker] Fix calendar day outside of month layout shifting on hover (#6448) @alexfauquette
|
|
767
|
+
- [fields] New components: `MultiInputDateTimeRangePicker` and `MultiInputTimeRangePicker` (#6392) @alexfauquette
|
|
768
|
+
- [fields] Prepare the field exports for the public release (#6467) @flaviendelangle
|
|
769
|
+
- [fields] Support paste in single section (#6422) @alexfauquette
|
|
770
|
+
- [pickers] Add field placeholders to the locale (#6337) @flaviendelangle
|
|
771
|
+
- [pickers] Do not use `Partial` for `components` and `componentsProps` props (#6463) @flaviendelangle
|
|
772
|
+
- [pickers] New component: `DateRangeCalendar` (#6416) @flaviendelangle
|
|
773
|
+
- [pickers] Replace the `Picker` prefix in the view component by `Calendar` (eg: `MonthPicker` => `MonthCalendar`) (#6389) @flaviendelangle
|
|
774
|
+
- [pickers] Support pasting on fields (#6364) @flaviendelangle
|
|
775
|
+
- [pickers] Use slots in the mobile and desktop wrappers instead of `XXXComponent` and `XXXProps` (#6381) @flaviendelangle
|
|
776
|
+
|
|
777
|
+
### Docs
|
|
778
|
+
|
|
779
|
+
- [docs] Add migration to DataGrid v6 page (#6235) @m4theushw
|
|
780
|
+
- [docs] Create first publishable version of the field doc (#6323) @flaviendelangle
|
|
781
|
+
- [docs] Fix trailing spaces in the readme @oliviertassinari
|
|
782
|
+
- [docs] New page for the pickers: Validation (#6064) @flaviendelangle
|
|
783
|
+
- [docs] Organize migration pages (#6480) @flaviendelangle
|
|
784
|
+
|
|
785
|
+
### Core
|
|
786
|
+
|
|
787
|
+
- [core] Add CodeQL workflow (#6387) @DanailH
|
|
788
|
+
- [core] Add missing breaking change to the changelog (#6471) @flaviendelangle
|
|
789
|
+
- [core] Fix playground structure (#6466) @LukasTy
|
|
790
|
+
- [core] Fix tests for pasting on fields (#6465) @flaviendelangle
|
|
791
|
+
- [core] Remove absolute link (#6420) @flaviendelangle
|
|
792
|
+
- [core] Remove unused `react-text-mask` package (#6408) @LukasTy
|
|
793
|
+
- [core] Send explicit warning when dayjs locale is not found (#6424) @alexfauquette
|
|
794
|
+
- [core] Test validation on textfield and date views (#6265) @alexfauquette
|
|
795
|
+
- [test] Sync comment with monorepo @oliviertassinari
|
|
796
|
+
|
|
797
|
+
## 6.0.0-alpha.2
|
|
798
|
+
|
|
799
|
+
_Oct 7, 2022_
|
|
800
|
+
|
|
801
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
802
|
+
|
|
803
|
+
- 🚀 Further progress on stabilizing new date field components
|
|
804
|
+
- 🎁 Improve support for theme augmentation in the DataGrid (#6269) @cherniavskii
|
|
805
|
+
- 🌍 Add Japanese (ja-JP) locale to pickers (#6365) @sho918
|
|
806
|
+
- 📚 Documentation improvements
|
|
807
|
+
- 🐞 Bugfixes
|
|
808
|
+
|
|
809
|
+
### `@mui/x-data-grid@v6.0.0-alpha.2` / `@mui/x-data-grid-pro@v6.0.0-alpha.2` / `@mui/x-data-grid-premium@v6.0.0-alpha.2`
|
|
810
|
+
|
|
811
|
+
#### Breaking changes
|
|
812
|
+
|
|
813
|
+
- 🎁 The aggregation is no longer experimental.
|
|
814
|
+
|
|
815
|
+
You can now use the aggregation without the `experimentalFeatures.aggregation` flag enabled.
|
|
816
|
+
|
|
817
|
+
```diff
|
|
818
|
+
<DataGridPremium
|
|
819
|
+
- experimentalFeatures={{ aggregation: true }}
|
|
820
|
+
/>
|
|
821
|
+
```
|
|
822
|
+
|
|
823
|
+
The aggregation of the columns through the column menu is now enabled by default on `DataGridPremium`. You can set `disableAggregation={true}` to disable it.
|
|
824
|
+
|
|
825
|
+
#### Changes
|
|
826
|
+
|
|
827
|
+
- [DataGrid] Add filter item ID to `.MuiDataGrid-filterForm` (#6313) @m4theushw
|
|
828
|
+
- [DataGrid] Add missing `valueOptions` (#6401) @DanailH
|
|
829
|
+
- [DataGrid] Don't start edit mode when pressing Shift + Space (#6228) @m4theushw
|
|
830
|
+
- [DataGrid] Fix error when using column grouping with all columns hidden (#6405) @alexfauquette
|
|
831
|
+
- [DataGrid] Pass generics to the components in the theme augmentation (#6269) @cherniavskii
|
|
832
|
+
- [DataGridPremium] Remove the aggregation from the experimental features (#6372) @flaviendelangle
|
|
833
|
+
|
|
834
|
+
### `@mui/x-date-pickers@v6.0.0-alpha.2` / `@mui/x-date-pickers-pro@v6.0.0-alpha.2`
|
|
835
|
+
|
|
836
|
+
#### Breaking changes
|
|
837
|
+
|
|
838
|
+
- The `renderDay` prop has been replaced by a `Day` component slot.
|
|
839
|
+
You can find more information about this pattern in the [MUI Base documentation](https://mui.com/base/getting-started/usage/#shared-props).
|
|
840
|
+
|
|
841
|
+
```diff
|
|
842
|
+
// Same for any other date, date time or date range picker.
|
|
843
|
+
<DatePicker
|
|
844
|
+
- renderDay={(_, dayProps) => <CustomDay {...dayProps} />}
|
|
845
|
+
+ components={{ Day: CustomDay }}
|
|
846
|
+
/>
|
|
847
|
+
```
|
|
848
|
+
|
|
849
|
+
#### Changes
|
|
850
|
+
|
|
851
|
+
- [DateRangePicker] Fix the shape of the first selected day when the start date has an hour set (#6403) @flaviendelangle
|
|
852
|
+
- [l10n] Add Japanese (ja-JP) locale to pickers (#6365) @sho918
|
|
853
|
+
- [DateRangePicker] Force focus to stay on inputs (#6324) @alexfauquette
|
|
854
|
+
- [pickers] Improve edition on field components (#6339) @flaviendelangle
|
|
855
|
+
- [pickers] Improve field selection behaviors (#6317) @flaviendelangle
|
|
856
|
+
- [pickers] Replace the `renderDay` prop with a `Day` component slot (#6293) @flaviendelangle
|
|
857
|
+
|
|
858
|
+
### Docs
|
|
859
|
+
|
|
860
|
+
- [docs] Apply style guide to Data Grid Aggregation page (#5781) @samuelsycamore
|
|
861
|
+
- [docs] Fix code examples of editing cells (#6004) @TiagoPortfolio
|
|
862
|
+
- [docs] Fix customized day rendering demo style (#6342) (#6399) @Ambrish-git
|
|
863
|
+
- [docs] Implement Style Guide on "Advanced" Data Grid doc pages (#6331) @samuelsycamore
|
|
864
|
+
- [docs] Use components instead of demos for `SelectorsDocs` (#6103) @flaviendelangle
|
|
865
|
+
- [license] Add new license status 'Out of scope' (#5260) @flaviendelangle
|
|
866
|
+
|
|
867
|
+
### Core
|
|
868
|
+
|
|
869
|
+
- [core] Speedup of yarn install in the CI (#6395) @oliviertassinari
|
|
870
|
+
- [test] Remove redundant test clean-ups (#6377) @oliviertassinari
|
|
871
|
+
- [test] Replace `React.render` with `React.createRoot` in e2e tests (#6393) @m4theushw
|
|
872
|
+
|
|
6
873
|
## 6.0.0-alpha.1
|
|
7
874
|
|
|
8
875
|
_Sep 29, 2022_
|
|
@@ -38,7 +905,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
|
|
|
38
905
|
Here is an example of the old and new approach showing how to apply a custom value formatter in groups for the grouping column:
|
|
39
906
|
|
|
40
907
|
```diff
|
|
41
|
-
<DataGridPremium
|
|
908
|
+
<DataGridPremium
|
|
42
909
|
groupingColDef={() => ({
|
|
43
910
|
valueFormatter: (params) => {
|
|
44
911
|
if (params.id == null) {
|
|
@@ -79,9 +946,8 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
|
|
|
79
946
|
|
|
80
947
|
#### Breaking changes
|
|
81
948
|
|
|
82
|
-
-
|
|
949
|
+
- The `value` prop of the pickers now expects a parsed value.
|
|
83
950
|
|
|
84
|
-
The `value` prop of the pickers now expects a parsed value.
|
|
85
951
|
Until now, it was possible to provide any format that your date management library was able to parse.
|
|
86
952
|
For instance, you could pass `value={new Date()}` when using `AdapterDayjs`.
|
|
87
953
|
|
|
@@ -91,19 +957,19 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
|
|
|
91
957
|
|
|
92
958
|
```tsx
|
|
93
959
|
// Date-fns
|
|
94
|
-
<DatePicker value={new Date()}
|
|
960
|
+
<DatePicker value={new Date()} />;
|
|
95
961
|
|
|
96
962
|
// Dayjs
|
|
97
|
-
import dayjs from 'dayjs'
|
|
98
|
-
<DatePicker value={dayjs()}
|
|
963
|
+
import dayjs from 'dayjs';
|
|
964
|
+
<DatePicker value={dayjs()} />;
|
|
99
965
|
|
|
100
966
|
// Moment
|
|
101
|
-
import moment from 'moment'
|
|
102
|
-
<DatePicker value={moment()}
|
|
967
|
+
import moment from 'moment';
|
|
968
|
+
<DatePicker value={moment()} />;
|
|
103
969
|
|
|
104
970
|
// Luxon
|
|
105
|
-
import { DateTime } from 'luxon'
|
|
106
|
-
<DatePicker value={DateTime.now()}
|
|
971
|
+
import { DateTime } from 'luxon';
|
|
972
|
+
<DatePicker value={DateTime.now()} />;
|
|
107
973
|
```
|
|
108
974
|
|
|
109
975
|
#### Changes
|
|
@@ -116,7 +982,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
|
|
|
116
982
|
- [pickers] Allow to control the selected sections (#6209, #6307) @flaviendelangle
|
|
117
983
|
- [pickers] Do not loose the value of date sections not present in the format in the new field components (#6141) @flaviendelangle
|
|
118
984
|
- [pickers] Do not support unparsed date formats anymore (#6170) @flaviendelangle
|
|
119
|
-
- [pickers] Support slots on the `DateField` component
|
|
985
|
+
- [pickers] Support slots on the `DateField` component (#6048) @flaviendelangle
|
|
120
986
|
- [pickers] Support Luxon v3 in `AdapterLuxon` (#6069) @alexfauquette
|
|
121
987
|
- [pickers] New components `TimeField` and `DateTimeField` (#6312) @flaviendelangle
|
|
122
988
|
- [pickers] Support basic mobile edition on new field components (#5958) @flaviendelangle
|
|
@@ -155,17 +1021,17 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
|
|
|
155
1021
|
- The deprecated `hide` column property has been removed in favor of the `columnVisibilityModel` prop and initial state.
|
|
156
1022
|
|
|
157
1023
|
```diff
|
|
158
|
-
|
|
159
|
-
|
|
160
|
-
|
|
161
|
-
-
|
|
162
|
-
|
|
1024
|
+
<DataGrid
|
|
1025
|
+
columns={[
|
|
1026
|
+
field: 'id,
|
|
1027
|
+
- hide: true,
|
|
1028
|
+
]}
|
|
163
1029
|
+ initialState={{
|
|
164
1030
|
+ columns: {
|
|
165
1031
|
+ columnVisibilityModel: { id: false },
|
|
166
|
-
+ }
|
|
1032
|
+
+ },
|
|
167
1033
|
+ }}
|
|
168
|
-
|
|
1034
|
+
/>
|
|
169
1035
|
```
|
|
170
1036
|
|
|
171
1037
|
You can find more information about this new API on our [documentation](https://next.mui.com/x/react-data-grid/column-visibility/).
|
|
@@ -173,8 +1039,8 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
|
|
|
173
1039
|
- The `GridEvents` enum is now a TypeScript type.
|
|
174
1040
|
|
|
175
1041
|
```diff
|
|
176
|
-
-
|
|
177
|
-
+
|
|
1042
|
+
-apiRef.current.subscribeEvent(GridEvents.rowClick', handleRowClick);
|
|
1043
|
+
+apiRef.current.subscribeEvent('rowClick', handleRowClick);
|
|
178
1044
|
```
|
|
179
1045
|
|
|
180
1046
|
#### Changes
|
|
@@ -194,7 +1060,7 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
|
|
|
194
1060
|
You can now use the `localText` prop available on all picker components:
|
|
195
1061
|
|
|
196
1062
|
| Removed prop | Property in the new `localText` prop |
|
|
197
|
-
|
|
1063
|
+
| ---------------------------- | --------------------------------------------------------------------------------- |
|
|
198
1064
|
| `endText` | `end` |
|
|
199
1065
|
| `getClockLabelText` | `clockLabelText` |
|
|
200
1066
|
| `getHoursClockNumberText` | `hoursClockNumberText` |
|
|
@@ -208,54 +1074,65 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
|
|
|
208
1074
|
For instance if you want to replace the `startText` / `endText`
|
|
209
1075
|
|
|
210
1076
|
```diff
|
|
211
|
-
|
|
1077
|
+
<DateRangePicker
|
|
212
1078
|
- startText="From"
|
|
213
1079
|
- endText="To"
|
|
214
1080
|
+ localeText={{
|
|
215
1081
|
+ start: 'From',
|
|
216
1082
|
+ end: 'To',
|
|
217
1083
|
+ }}
|
|
218
|
-
|
|
1084
|
+
/>
|
|
219
1085
|
```
|
|
220
1086
|
|
|
221
1087
|
You can find more information about the new api, including how to set those translations on all your components at once in the [documentation](https://next.mui.com/x/react-date-pickers/localization/)
|
|
222
1088
|
|
|
223
|
-
- The
|
|
1089
|
+
- The deprecated `locale` prop of the `LocalizationProvider` component have been renamed `adapterLocale`:
|
|
224
1090
|
|
|
225
1091
|
```diff
|
|
226
|
-
|
|
227
|
-
|
|
228
|
-
-
|
|
229
|
-
+
|
|
1092
|
+
<LocalizationProvider
|
|
1093
|
+
dateAdapter={AdapterDayjs}
|
|
1094
|
+
- locale="fr"
|
|
1095
|
+
+ adapterLocale="fr"
|
|
1096
|
+
>
|
|
1097
|
+
{children}
|
|
1098
|
+
</LocalizationProvider>
|
|
1099
|
+
```
|
|
230
1100
|
|
|
231
|
-
|
|
232
|
-
+ NextIconButton: CustomButton,
|
|
233
|
-
}}
|
|
1101
|
+
- The component slots `LeftArrowButton` and `RightArrowButton` have been renamed `PreviousIconButton` and `NextIconButton` to better describe there usage:
|
|
234
1102
|
|
|
235
|
-
|
|
236
|
-
|
|
237
|
-
|
|
1103
|
+
```diff
|
|
1104
|
+
<DatePicker
|
|
1105
|
+
components={{
|
|
1106
|
+
- LeftArrowButton: CustomButton,
|
|
1107
|
+
+ PreviousIconButton: CustomButton,
|
|
238
1108
|
|
|
239
|
-
-
|
|
240
|
-
+
|
|
241
|
-
|
|
242
|
-
|
|
1109
|
+
- RightArrowButton: CustomButton,
|
|
1110
|
+
+ NextIconButton: CustomButton,
|
|
1111
|
+
}}
|
|
1112
|
+
componentsProps={{
|
|
1113
|
+
- leftArrowButton: {},
|
|
1114
|
+
+ previousIconButton: {},
|
|
1115
|
+
|
|
1116
|
+
- rightArrowButton: {},
|
|
1117
|
+
+ nextIconButton: {},
|
|
1118
|
+
}}
|
|
1119
|
+
/>
|
|
243
1120
|
```
|
|
244
1121
|
|
|
245
|
-
- The `date` prop has been renamed `value` on
|
|
1122
|
+
- The `date` prop has been renamed `value` on `MonthPicker` / `YearPicker`, `ClockPicker` and `CalendarPicker`.
|
|
246
1123
|
|
|
247
1124
|
```diff
|
|
248
|
-
|
|
249
|
-
|
|
1125
|
+
-<MonthPicker date={dayjs()} onChange={handleMonthChange} />
|
|
1126
|
+
+<MonthPicker value={dayjs()} onChange={handleMonthChange} />
|
|
250
1127
|
|
|
251
|
-
|
|
252
|
-
|
|
1128
|
+
-<YearPicker date={dayjs()} onChange={handleYearChange} />
|
|
1129
|
+
+<YearPicker value={dayjs()} onChange={handleYearChange} />
|
|
253
1130
|
|
|
254
|
-
|
|
255
|
-
|
|
1131
|
+
-<ClockPicker date={dayjs()} onChange={handleTimeChange} />
|
|
1132
|
+
+<ClockPicker value={dayjs()} onChange={handleTimeChange} />
|
|
256
1133
|
|
|
257
|
-
|
|
258
|
-
|
|
1134
|
+
-<CalendarPicker date={dayjs()} onChange={handleDateChange} />
|
|
1135
|
+
+<CalendarPicker value={dayjs()} onChange={handleDateChange} />
|
|
259
1136
|
```
|
|
260
1137
|
|
|
261
1138
|
#### Changes
|
|
@@ -274,7 +1151,7 @@ You can find more information about the new api, including how to set those tran
|
|
|
274
1151
|
- [pickers] Remove `valueStr` from the field state (#6142) @flaviendelangle
|
|
275
1152
|
- [pickers] Remove remaining deprecated locale props (#6233) @flaviendelangle
|
|
276
1153
|
- [pickers] Rename the `date` prop `value` on `MonthPicker` / `YearPicker`, `ClockPicker` and `CalendarPicker` (#6128) @flaviendelangle
|
|
277
|
-
- [pickers] Rename the `onClose` prop of
|
|
1154
|
+
- [pickers] Rename the `onClose` prop of `PickersPopper` `onDismiss` to simplify typing (#6155) @flaviendelangle
|
|
278
1155
|
- [pickers] Support the `sx` prop on all public component with a root HTML elements (#5944) @flaviendelangle
|
|
279
1156
|
- [pickers] Unify `PickersMonth` and `PickersYear` behaviors (#6034) @flaviendelangle
|
|
280
1157
|
- [pickers] Use `shouldDisableMonth` and `shouldDisableYear` for date validation (#6066) @flaviendelangle
|
|
@@ -311,7 +1188,284 @@ You can find more information about the new api, including how to set those tran
|
|
|
311
1188
|
- [test] Skip tests for column pinning and dynamic row height (#5997) @m4theushw
|
|
312
1189
|
- [website] Improve security header @oliviertassinari
|
|
313
1190
|
|
|
314
|
-
##
|
|
1191
|
+
## 5.17.14
|
|
1192
|
+
|
|
1193
|
+
_Dec 1, 2022_
|
|
1194
|
+
|
|
1195
|
+
We'd like to offer a big thanks to the 3 contributors who made this release possible. Here are some highlights ✨:
|
|
1196
|
+
|
|
1197
|
+
- 🌍 Improve Ukrainian (uk-UA) locale (#7035) @rettoua
|
|
1198
|
+
- 🐞 Bugfixes
|
|
1199
|
+
|
|
1200
|
+
### `@mui/x-data-grid@v5.17.14` / `@mui/x-data-grid-pro@v5.17.14` / `@mui/x-data-grid-premium@v5.17.14`
|
|
1201
|
+
|
|
1202
|
+
#### Changes
|
|
1203
|
+
|
|
1204
|
+
- [DataGrid] Fix row selection when clicking blank cell (#7056) @yami03
|
|
1205
|
+
- [DataGridPremium] Update cache before hydrating columns (#7043) @m4theushw
|
|
1206
|
+
- [l10n] Improve Ukrainian (uk-UA) locale (#7035) @rettoua
|
|
1207
|
+
|
|
1208
|
+
## 5.17.13
|
|
1209
|
+
|
|
1210
|
+
_Nov 24, 2022_
|
|
1211
|
+
|
|
1212
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
1213
|
+
|
|
1214
|
+
- 🚀 Fix support of the pickers to Shadow DOM (#6971) @flaviendelangle
|
|
1215
|
+
- 💅 Improve DataGrid theme augmentation (#6980) @iigrik
|
|
1216
|
+
- 🐞 Bugfixes
|
|
1217
|
+
|
|
1218
|
+
### `@mui/x-data-grid@v5.17.13` / `@mui/x-data-grid-pro@v5.17.13` / `@mui/x-data-grid-premium@v5.17.13`
|
|
1219
|
+
|
|
1220
|
+
#### Changes
|
|
1221
|
+
|
|
1222
|
+
- [DataGrid] Fix `ErrorOverlay` not receiving defined input props (#6885) @banoth-ravinder
|
|
1223
|
+
- [DataGrid] Improve typing for `styleOverrides` (#6980) @iigrik
|
|
1224
|
+
- [DataGridPro] Fix lazy-loaded rows not working with `updateRows` API method (#6875) @cherniavskii
|
|
1225
|
+
- [l10n] Fix translation of `filterOperatorBefore` in Arabic (ar-SD) locale (#6917) @HassanGhazy
|
|
1226
|
+
|
|
1227
|
+
### `@mui/x-date-pickers@v5.0.9` / `@mui/x-date-pickers-pro@v5.0.9`
|
|
1228
|
+
|
|
1229
|
+
#### Changes
|
|
1230
|
+
|
|
1231
|
+
- [pickers] Fix usage with Shadow DOM (#6971) @flaviendelangle
|
|
1232
|
+
|
|
1233
|
+
### Docs
|
|
1234
|
+
|
|
1235
|
+
- [docs] Add new "Expired package version" error type (#6937) @oliviertassinari
|
|
1236
|
+
- [docs] Enforce values for installation options in Date / Time pickers Getting Started page (#6896) @01zulfi
|
|
1237
|
+
- [docs] Fix live edit @oliviertassinari
|
|
1238
|
+
- [docs] Upgrade to Next 13 (#6911) @cherniavskii
|
|
1239
|
+
|
|
1240
|
+
### Core
|
|
1241
|
+
|
|
1242
|
+
- [core] Upgrade monorepo (#6906) @cherniavskii
|
|
1243
|
+
- [core] Upgrade node to v14.21 (#6939) @piwysocki
|
|
1244
|
+
|
|
1245
|
+
## 5.17.12
|
|
1246
|
+
|
|
1247
|
+
_Nov 17, 2022_
|
|
1248
|
+
|
|
1249
|
+
We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
|
|
1250
|
+
|
|
1251
|
+
- 🌍 Improve Finnish (fi-FI) locale (#6859) @RainoPikkarainen
|
|
1252
|
+
- 🐞 Bugfixes
|
|
1253
|
+
|
|
1254
|
+
### `@mui/x-data-grid@v5.17.12` / `@mui/x-data-grid-pro@v5.17.12` / `@mui/x-data-grid-premium@v5.17.12`
|
|
1255
|
+
|
|
1256
|
+
#### Changes
|
|
1257
|
+
|
|
1258
|
+
- [DataGrid] Fix conflict with the latest version of `@types/react` (#6883) @vizv
|
|
1259
|
+
- [DataGridPremium] Support aggregating data from multiple row fields (#6844) @cherniavskii
|
|
1260
|
+
- [DataGridPro] Fix detail panel not working with `getRowSpacing` prop (#6858) @cherniavskii
|
|
1261
|
+
- [l10n] Improve Finnish (fi-FI) locale (#6859) @RainoPikkarainen
|
|
1262
|
+
|
|
1263
|
+
### Docs
|
|
1264
|
+
|
|
1265
|
+
- [docs] Clarify DataGrid Row Pinning docs (#6891) @cherniavskii
|
|
1266
|
+
|
|
1267
|
+
### Core
|
|
1268
|
+
|
|
1269
|
+
- [core] Upgrade monorepo (#6864) @m4theushw
|
|
1270
|
+
- [license] Polish error messages (#6881) @oliviertassinari
|
|
1271
|
+
|
|
1272
|
+
## 5.17.11
|
|
1273
|
+
|
|
1274
|
+
_Nov 10, 2022_
|
|
1275
|
+
|
|
1276
|
+
We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
|
|
1277
|
+
|
|
1278
|
+
- 🐞 Bugfixes
|
|
1279
|
+
|
|
1280
|
+
### `@mui/x-data-grid@v5.17.11` / `@mui/x-data-grid-pro@v5.17.11` / `@mui/x-data-grid-premium@v5.17.11`
|
|
1281
|
+
|
|
1282
|
+
#### Changes
|
|
1283
|
+
|
|
1284
|
+
- [DataGrid] Fix for cell focus preventing scroll when virtualization enabled (#6622) @yaredtsy
|
|
1285
|
+
- [DataGridPro] Opt-out for column jump back on re-order (#6697) @gavbrennan
|
|
1286
|
+
|
|
1287
|
+
### `@mui/x-date-pickers@v5.0.8` / `@mui/x-date-pickers-pro@v5.0.8`
|
|
1288
|
+
|
|
1289
|
+
#### Changes
|
|
1290
|
+
|
|
1291
|
+
- [pickers] Fix pickers toolbar styling (#6793) @LukasTy
|
|
1292
|
+
|
|
1293
|
+
### Docs
|
|
1294
|
+
|
|
1295
|
+
- [docs] Fix link to localization page (#6766) @alexfauquette
|
|
1296
|
+
|
|
1297
|
+
### Core
|
|
1298
|
+
|
|
1299
|
+
- [license] Add new license status 'Out of scope' (#6774) @oliviertassinari
|
|
1300
|
+
|
|
1301
|
+
## 5.17.10
|
|
1302
|
+
|
|
1303
|
+
_Nov 4, 2022_
|
|
1304
|
+
|
|
1305
|
+
We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
|
|
1306
|
+
|
|
1307
|
+
- 🌍 Add Ukrainian (uk-UA) locale to pickers (#6661) @Dufran
|
|
1308
|
+
|
|
1309
|
+
### `@mui/x-data-grid@v5.17.10` / `@mui/x-data-grid-pro@v5.17.10` / `@mui/x-data-grid-premium@v5.17.10`
|
|
1310
|
+
|
|
1311
|
+
#### Changes
|
|
1312
|
+
|
|
1313
|
+
- [DataGrid] Remove `React.memo` from `GridCellCheckboxRenderer` (#6688) @mattcorner
|
|
1314
|
+
|
|
1315
|
+
### `@mui/x-date-pickers@v5.0.7` / `@mui/x-date-pickers-pro@v5.0.7`
|
|
1316
|
+
|
|
1317
|
+
#### Changes
|
|
1318
|
+
|
|
1319
|
+
- [DateRangePicker] Fix input focused style and mobile behaviour (#6645) (#6714) @LukasTy
|
|
1320
|
+
- [pickers] Add Ukrainian (uk-UA) locale on the date picker (#6661) @Dufran
|
|
1321
|
+
|
|
1322
|
+
### Docs
|
|
1323
|
+
|
|
1324
|
+
- [docs] Mark data grid column group available (#6659) @alexfauquette
|
|
1325
|
+
|
|
1326
|
+
## 5.17.9
|
|
1327
|
+
|
|
1328
|
+
_Oct 28, 2022_
|
|
1329
|
+
|
|
1330
|
+
We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
|
|
1331
|
+
|
|
1332
|
+
- ⚡ Fix memory leak during unmount of the DataGrid (#6579) @cherniavskii
|
|
1333
|
+
- 🎁 Allow to disable the autofocus of the search field when opening the column visibility panel (#6630) @e-cloud
|
|
1334
|
+
- 🐞 Bugfixes
|
|
1335
|
+
|
|
1336
|
+
### `@mui/x-data-grid@v5.17.9` / `@mui/x-data-grid-pro@v5.17.9` / `@mui/x-data-grid-premium@v5.17.9`
|
|
1337
|
+
|
|
1338
|
+
#### Changes
|
|
1339
|
+
|
|
1340
|
+
- [DataGrid] Allow to disable autofocusing the search field in the columns panel (#6630) @e-cloud
|
|
1341
|
+
- [DataGrid] Fix `setRows` method not persisting new rows data after `loading` prop change (#6637) @cherniavskii
|
|
1342
|
+
- [DataGrid] Fix memory leak on grid unmount (#6579) @cherniavskii
|
|
1343
|
+
- [l10n] Improve Bulgarian (bg-BG) locale (#6635) @AtanasVA
|
|
1344
|
+
|
|
1345
|
+
### `@mui/x-date-pickers@v5.0.6` / `@mui/x-date-pickers-pro@v5.0.6`
|
|
1346
|
+
|
|
1347
|
+
#### Changes
|
|
1348
|
+
|
|
1349
|
+
- [pickers] Ignore milliseconds in mask logic (#6618) @alexfauquette
|
|
1350
|
+
- [pickers] Update input when `inputFormat` is modified (#6617) @alexfauquette
|
|
1351
|
+
|
|
1352
|
+
### Docs
|
|
1353
|
+
|
|
1354
|
+
- [docs] Add token to redirect feedbacks on slack (#6592) @alexfauquette
|
|
1355
|
+
- [docs] Disable translations (#6639) @cherniavskii
|
|
1356
|
+
- [docs] Fix code edit for when v6 will be stable (#6600) @oliviertassinari
|
|
1357
|
+
- [docs] Fix typo in DataGrid demo page (#6632) (#6634) @LukasTy
|
|
1358
|
+
|
|
1359
|
+
### Core
|
|
1360
|
+
|
|
1361
|
+
- [core] Upgrade monorepo (#6570) @cherniavskii
|
|
1362
|
+
|
|
1363
|
+
## 5.17.8
|
|
1364
|
+
|
|
1365
|
+
_Oct 20, 2022_
|
|
1366
|
+
|
|
1367
|
+
We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
|
|
1368
|
+
|
|
1369
|
+
- 🐞 Bugfixes
|
|
1370
|
+
- 🌍 Improve Turkish (tr-TR) locale on the data grid and pickers (#6573) @ramazansancar
|
|
1371
|
+
|
|
1372
|
+
### `@mui/x-data-grid@v5.17.8` / `@mui/x-data-grid-pro@v5.17.8` / `@mui/x-data-grid-premium@v5.17.8`
|
|
1373
|
+
|
|
1374
|
+
#### Changes
|
|
1375
|
+
|
|
1376
|
+
- [DataGrid] Add `searchPredicate` prop to `GridColumnsPanel` component (#6572) @cherniavskii
|
|
1377
|
+
- [DataGrid] Fix grid not updating state on `rowCount` prop change (#6474) @cherniavskii
|
|
1378
|
+
- [DataGridPro] Fix row order being reset after updating the row (#6544) @cherniavskii
|
|
1379
|
+
- [l10n] Improve Turkish (tr-TR) locale on the data grid and pickers (#6542) (#6573) @ramazansancar
|
|
1380
|
+
|
|
1381
|
+
### `@mui/x-date-pickers@v5.0.5` / `@mui/x-date-pickers-pro@v5.0.5`
|
|
1382
|
+
|
|
1383
|
+
#### Changes
|
|
1384
|
+
|
|
1385
|
+
- [CalendarPicker] Don't move to closest enabled date when `props.date` contains a disabled date (#6537) @flaviendelangle
|
|
1386
|
+
- [DateRangePicker] Fix calendar day outside of month layout shifting on hover (pick #6448) (#6538) @alexfauquette
|
|
1387
|
+
- [pickers] Fix typescript issues (#6510) @flaviendelangle
|
|
1388
|
+
|
|
1389
|
+
### Docs
|
|
1390
|
+
|
|
1391
|
+
- [docs] Fix 301 link to the sx prop page @oliviertassinari
|
|
1392
|
+
|
|
1393
|
+
## 5.17.7
|
|
1394
|
+
|
|
1395
|
+
_Oct 13, 2022_
|
|
1396
|
+
|
|
1397
|
+
We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
|
|
1398
|
+
|
|
1399
|
+
- 🐞 Bugfixes
|
|
1400
|
+
|
|
1401
|
+
### `@mui/x-data-grid@v5.17.7` / `@mui/x-data-grid-pro@v5.17.7` / `@mui/x-data-grid-premium@v5.17.7`
|
|
1402
|
+
|
|
1403
|
+
#### Changes
|
|
1404
|
+
|
|
1405
|
+
- [DataGrid] Fix error when using column grouping with all columns hidden (#6425) @alexfauquette
|
|
1406
|
+
- [DataGrid] Fix start edit mode with printable character in React 18 (#6478) @m4theushw
|
|
1407
|
+
|
|
1408
|
+
## 5.17.6
|
|
1409
|
+
|
|
1410
|
+
_Oct 6, 2022_
|
|
1411
|
+
|
|
1412
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
1413
|
+
|
|
1414
|
+
- 🌍 Add Japanese (ja-JP) locale to pickers (#6365) @sho918
|
|
1415
|
+
- 🎁 Improve support for theme augmentation in the DataGrid (#6406) @cherniavskii
|
|
1416
|
+
- 🐞 Bugfixes
|
|
1417
|
+
|
|
1418
|
+
### `@mui/x-data-grid@v5.17.6` / `@mui/x-data-grid-pro@v5.17.6` / `@mui/x-data-grid-premium@v5.17.6`
|
|
1419
|
+
|
|
1420
|
+
#### Changes
|
|
1421
|
+
|
|
1422
|
+
- [DataGrid] Add missing `valueOptions` (#6400) @DanailH
|
|
1423
|
+
- [DataGrid] Don't start edit mode when pressing <kbd>Shift</kbd> + <kbd>Space</kbd> (#6380) @m4theushw
|
|
1424
|
+
- [DataGrid] Pass generics to the components in the theme augmentation (#6406) @cherniavskii
|
|
1425
|
+
|
|
1426
|
+
### `@mui/x-date-pickers@v5.0.4` / `@mui/x-date-pickers-pro@v5.0.4`
|
|
1427
|
+
|
|
1428
|
+
#### Changes
|
|
1429
|
+
|
|
1430
|
+
- [l10n] Add Japanese (ja-JP) locale to pickers (#6365) (#6382) @sho918
|
|
1431
|
+
- [pickers] Prevent `CalendarPicker` getting focus when `autoFocus=false` (#6304) (#6362) @alexfauquette
|
|
1432
|
+
- [pickers] Fix git repository location @oliviertassinari
|
|
1433
|
+
|
|
1434
|
+
### Docs
|
|
1435
|
+
|
|
1436
|
+
- [docs] Fix customized day rendering demo style (#6342) @Ambrish-git
|
|
1437
|
+
|
|
1438
|
+
## 5.17.5
|
|
1439
|
+
|
|
1440
|
+
_Sep 29, 2022_
|
|
1441
|
+
|
|
1442
|
+
We'd like to offer a big thanks to the 2 contributors who made this release possible. Here are some highlights ✨:
|
|
1443
|
+
|
|
1444
|
+
- 🎁 Add theme augmentation module to DataGridPremium (#6316) @cherniavskii
|
|
1445
|
+
- 👀 Fix blank space when changing page with dynamic row height (#6320) @m4theushw
|
|
1446
|
+
- 📚 Improve controlled editing demo to make easier to reuse it (#6306) @cherniavskii
|
|
1447
|
+
- 🐞 Bugfixes
|
|
1448
|
+
|
|
1449
|
+
### `@mui/x-data-grid@v5.17.5` / `@mui/x-data-grid-pro@v5.17.5` / `@mui/x-data-grid-premium@v5.17.5`
|
|
1450
|
+
|
|
1451
|
+
#### Changes
|
|
1452
|
+
|
|
1453
|
+
- [DataGrid] Fix `GridPagination` props typing (#6295) @cherniavskii
|
|
1454
|
+
- [DataGrid] Fix `GridRow` not forwarding `ref` to the root element (#6303) @cherniavskii
|
|
1455
|
+
- [DataGrid] Fix `undefined` value being showed in filter button tooltip text (#6271) @cherniavskii
|
|
1456
|
+
- [DataGrid] Fix blank space when changing page with dynamic row height (#6320) @m4theushw
|
|
1457
|
+
- [DataGrid] Revert cell/row mode if `processRowUpdate` fails (#6319) @m4theushw
|
|
1458
|
+
- [DataGridPremium] Add missing `themeAugmentation` module (#6316) @cherniavskii
|
|
1459
|
+
|
|
1460
|
+
### Docs
|
|
1461
|
+
|
|
1462
|
+
- [docs] Pass model change callbacks in controlled grid editing demos (#6306) @cherniavskii
|
|
1463
|
+
|
|
1464
|
+
### Core
|
|
1465
|
+
|
|
1466
|
+
- [core] Reduce the amount of updated screenshots reported by Argos (#6310) @cherniavskii
|
|
1467
|
+
|
|
1468
|
+
## 5.17.4
|
|
315
1469
|
|
|
316
1470
|
_Sep 22, 2022_
|
|
317
1471
|
|
|
@@ -443,7 +1597,7 @@ We'd like to offer a big thanks to the 3 contributors who made this release poss
|
|
|
443
1597
|
|
|
444
1598
|
_Sep 2, 2022_
|
|
445
1599
|
|
|
446
|
-
🎉 We are excited to finally introduce a stable release (v5.0.0) for the `@mui/x-date-pickers` and
|
|
1600
|
+
🎉 We are excited to finally introduce a stable release (v5.0.0) for the `@mui/x-date-pickers` and `@mui/x-date-pickers-pro` packages!
|
|
447
1601
|
|
|
448
1602
|
If you are still using picker components from the `lab`, take a look at the [migration guide](https://mui.com/x/react-date-pickers/migration-lab/).
|
|
449
1603
|
|
|
@@ -1699,10 +2853,10 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
|
|
|
1699
2853
|
| `filterableGridColumnsSelector` | `gridFilterableColumnDefinitionsSelector` |
|
|
1700
2854
|
|
|
1701
2855
|
```diff
|
|
1702
|
-
-const { all, lookup, columnVisibilityModel } = gridColumnsSelector(apiRef)
|
|
1703
|
-
+const all = gridColumnFieldsSelector(apiRef)
|
|
1704
|
-
+const lookup = gridColumnLookupSelector(apiRef)
|
|
1705
|
-
+const columnVisibilityModel = gridColumnVisibilityModelSelector(apiRef)
|
|
2856
|
+
-const { all, lookup, columnVisibilityModel } = gridColumnsSelector(apiRef);
|
|
2857
|
+
+const all = gridColumnFieldsSelector(apiRef);
|
|
2858
|
+
+const lookup = gridColumnLookupSelector(apiRef);
|
|
2859
|
+
+const columnVisibilityModel = gridColumnVisibilityModelSelector(apiRef);
|
|
1706
2860
|
|
|
1707
2861
|
-const filterableFields = filterableGridColumnsIdsSelector(apiRef);
|
|
1708
2862
|
+const lookup = gridFilterableColumnLookupSelector(apiRef);
|
|
@@ -2420,8 +3574,8 @@ _Nov 23, 2021_
|
|
|
2420
3574
|
|
|
2421
3575
|
🎉 We are excited to introduce [MUI X v5.0.0](https://mui.com/blog/mui-x-v5/) 🎉!
|
|
2422
3576
|
|
|
2423
|
-
If you want to migrate the DataGrid or DataGridPro from v4 to v5, take a look at the [migration guide](https://mui.com/x/
|
|
2424
|
-
This version is fully compatible with `@mui/material@5.X` and can be used with `@material-ui/core@4.x` with some [additional steps](https://mui.com/x/
|
|
3577
|
+
If you want to migrate the DataGrid or DataGridPro from v4 to v5, take a look at the [migration guide](https://mui.com/x/migration/migration-data-grid-v4/).
|
|
3578
|
+
This version is fully compatible with `@mui/material@5.X` and can be used with `@material-ui/core@4.x` with some [additional steps](https://mui.com/x/migration/migration-data-grid-v4/#using-mui-x-v5-with-mui-core-v4).
|
|
2425
3579
|
|
|
2426
3580
|
A big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
2427
3581
|
|
|
@@ -2639,7 +3793,7 @@ A big thanks to the 7 contributors who made this release possible. Here are some
|
|
|
2639
3793
|
|
|
2640
3794
|
```diff
|
|
2641
3795
|
-visibleSortedGridRowsAsArraySelector: (state: GridState) => [GridRowId, GridRowData][];
|
|
2642
|
-
+gridVisibleSortedRowEntriesSelector: (state: GridState) => GridRowEntry[]
|
|
3796
|
+
+gridVisibleSortedRowEntriesSelector: (state: GridState) => GridRowEntry[];
|
|
2643
3797
|
```
|
|
2644
3798
|
|
|
2645
3799
|
- [DataGridPro] The `filterGridItemsCounterSelector` selector was removed. (#2942) @flaviendelangle
|
|
@@ -2739,15 +3893,15 @@ A big thanks to the 5 contributors who made this release possible. Here are some
|
|
|
2739
3893
|
To fully control the state, use the feature's model prop and change callback (e.g. `filterModel` and `onFilterModelChange`).
|
|
2740
3894
|
|
|
2741
3895
|
```diff
|
|
2742
|
-
|
|
3896
|
+
<DataGrid
|
|
2743
3897
|
- state={{
|
|
2744
3898
|
+ initialState={{
|
|
2745
|
-
|
|
2746
|
-
|
|
2747
|
-
|
|
2748
|
-
|
|
2749
|
-
|
|
2750
|
-
|
|
3899
|
+
preferencePanel: {
|
|
3900
|
+
open: true,
|
|
3901
|
+
openedPanelValue: GridPreferencePanelsValue.filters,
|
|
3902
|
+
},
|
|
3903
|
+
}}
|
|
3904
|
+
/>
|
|
2751
3905
|
```
|
|
2752
3906
|
|
|
2753
3907
|
- [DataGridPro] Remove the `onViewportRowsChange` prop and the `viewportRowsChange` event (#2673) @m4theushw
|
|
@@ -2850,12 +4004,12 @@ A big thanks to the 7 contributors who made this release possible. Here are some
|
|
|
2850
4004
|
For more information, check [this page](https://mui.com/x/react-data-grid/components/#row). Example:
|
|
2851
4005
|
|
|
2852
4006
|
```diff
|
|
2853
|
-
|
|
2854
|
-
|
|
4007
|
+
<DataGrid
|
|
4008
|
+
- onRowOver={handleRowOver}
|
|
2855
4009
|
+ componentsProps={{
|
|
2856
4010
|
+ row: { onMouseOver: handleRowOver },
|
|
2857
4011
|
+ }}
|
|
2858
|
-
|
|
4012
|
+
/>;
|
|
2859
4013
|
```
|
|
2860
4014
|
|
|
2861
4015
|
The `data-rowindex` and `data-rowselected` attributes were removed from the cell element. Equivalent attributes can be found in the row element.
|
|
@@ -2887,33 +4041,33 @@ A big thanks to the 7 contributors who made this release possible. Here are some
|
|
|
2887
4041
|
- [DataGrid] The CSS classes constants are not exported anymore. Use `gridClasses` instead. (#2788) @flaviendelangle
|
|
2888
4042
|
|
|
2889
4043
|
```diff
|
|
2890
|
-
-const columnHeaderClass = GRID_COLUMN_HEADER_CSS_CLASS
|
|
2891
|
-
+const columnHeaderClass = gridClasses.columnHeader
|
|
4044
|
+
-const columnHeaderClass = GRID_COLUMN_HEADER_CSS_CLASS;
|
|
4045
|
+
+const columnHeaderClass = gridClasses.columnHeader;
|
|
2892
4046
|
|
|
2893
|
-
-const rowClass = GRID_ROW_CSS_CLASS
|
|
2894
|
-
+const rowClass = gridClasses.row
|
|
4047
|
+
-const rowClass = GRID_ROW_CSS_CLASS;
|
|
4048
|
+
+const rowClass = gridClasses.row;
|
|
2895
4049
|
|
|
2896
|
-
-const cellClass = GRID_CELL_CSS_CLASS
|
|
2897
|
-
+const cellClass = gridClasses.cell
|
|
4050
|
+
-const cellClass = GRID_CELL_CSS_CLASS;
|
|
4051
|
+
+const cellClass = gridClasses.cell;
|
|
2898
4052
|
|
|
2899
|
-
-const columnSeparatorClass = GRID_COLUMN_HEADER_SEPARATOR_RESIZABLE_CSS_CLASS
|
|
2900
|
-
+const columnSeparatorClass = gridClasses['columnSeparator--resizable']
|
|
4053
|
+
-const columnSeparatorClass = GRID_COLUMN_HEADER_SEPARATOR_RESIZABLE_CSS_CLASS;
|
|
4054
|
+
+const columnSeparatorClass = gridClasses['columnSeparator--resizable'];
|
|
2901
4055
|
|
|
2902
|
-
-const columnHeaderTitleClass = GRID_COLUMN_HEADER_TITLE_CSS_CLASS
|
|
2903
|
-
+const columnHeaderTitleClass = gridClasses.columnHeaderTitle
|
|
4056
|
+
-const columnHeaderTitleClass = GRID_COLUMN_HEADER_TITLE_CSS_CLASS;
|
|
4057
|
+
+const columnHeaderTitleClass = gridClasses.columnHeaderTitle;
|
|
2904
4058
|
|
|
2905
|
-
-const columnHeaderDropZoneClass = GRID_COLUMN_HEADER_DROP_ZONE_CSS_CLASS
|
|
2906
|
-
+const columnHeaderDropZoneClass = gridClasses.columnHeaderDropZone
|
|
4059
|
+
-const columnHeaderDropZoneClass = GRID_COLUMN_HEADER_DROP_ZONE_CSS_CLASS;
|
|
4060
|
+
+const columnHeaderDropZoneClass = gridClasses.columnHeaderDropZone;
|
|
2907
4061
|
|
|
2908
|
-
-const columnHeaderDraggingClass = GRID_COLUMN_HEADER_DRAGGING_CSS_CLASS
|
|
2909
|
-
+const columnHeaderDraggingClass = gridClasses[
|
|
4062
|
+
-const columnHeaderDraggingClass = GRID_COLUMN_HEADER_DRAGGING_CSS_CLASS;
|
|
4063
|
+
+const columnHeaderDraggingClass = gridClasses['columnHeader--dragging'];
|
|
2910
4064
|
```
|
|
2911
4065
|
|
|
2912
4066
|
- [DataGrid] Rename `gridCheckboxSelectionColDef` to `GRID_CHECKBOX_SELECTION_COL_DEF` (#2793) @flaviendelangle
|
|
2913
4067
|
|
|
2914
4068
|
```diff
|
|
2915
|
-
-
|
|
2916
|
-
+
|
|
4069
|
+
-gridCheckboxSelectionColDef
|
|
4070
|
+
+GRID_CHECKBOX_SELECTION_COL_DEF
|
|
2917
4071
|
```
|
|
2918
4072
|
|
|
2919
4073
|
- [DataGrid] The constants referring to the column types were removed (#2791) @flaviendelangle
|
|
@@ -3081,7 +4235,7 @@ A big thanks to the 5 contributors who made this release possible. Here are some
|
|
|
3081
4235
|
-export type GridValueFormatterParams = Omit<GridRenderCellParams, 'formattedValue' | 'isEditable'>;
|
|
3082
4236
|
+export interface GridValueFormatterParams {
|
|
3083
4237
|
+ /**
|
|
3084
|
-
+ * The column field of the cell that triggered the event
|
|
4238
|
+
+ * The column field of the cell that triggered the event.
|
|
3085
4239
|
+ */
|
|
3086
4240
|
+ field: string;
|
|
3087
4241
|
+ /**
|
|
@@ -3167,7 +4321,7 @@ A big thanks to the 9 contributors who made this release possible. Here are some
|
|
|
3167
4321
|
|
|
3168
4322
|
```diff
|
|
3169
4323
|
-const state = apiRef.current.getState();
|
|
3170
|
-
+const state = apiRef.current.state
|
|
4324
|
+
+const state = apiRef.current.state;
|
|
3171
4325
|
```
|
|
3172
4326
|
|
|
3173
4327
|
- [DataGridPro] The third argument in `apiRef.current.selectRow` is now inverted to keep consistency with other selection APIs. (#2523) @flaviendelangle
|
|
@@ -3461,16 +4615,15 @@ Big thanks to the 6 contributors who made this release possible. Here are some h
|
|
|
3461
4615
|
- The `width` property of the columns is no longer updated with the actual width of of the column. Use the new `computedWidth` property in the callbacks instead.
|
|
3462
4616
|
|
|
3463
4617
|
```diff
|
|
3464
|
-
|
|
3465
|
-
|
|
3466
|
-
|
|
3467
|
-
|
|
3468
|
-
|
|
3469
|
-
|
|
3470
|
-
|
|
3471
|
-
|
|
3472
|
-
|
|
3473
|
-
]
|
|
4618
|
+
const columns: GridColDef = [{
|
|
4619
|
+
field: 'name',
|
|
4620
|
+
width: 100,
|
|
4621
|
+
renderCell: ({ value, colDef }) => {
|
|
4622
|
+
- console.log(colDef.width!);
|
|
4623
|
+
+ console.log(colDef.computedWidth);
|
|
4624
|
+
return value;
|
|
4625
|
+
},
|
|
4626
|
+
}];
|
|
3474
4627
|
```
|
|
3475
4628
|
|
|
3476
4629
|
#### Changes
|
|
@@ -3533,21 +4686,21 @@ Big thanks to the 8 contributors who made this release possible. Here are some h
|
|
|
3533
4686
|
- Change the controllable API signature:
|
|
3534
4687
|
|
|
3535
4688
|
```diff
|
|
3536
|
-
|
|
4689
|
+
// Signature
|
|
3537
4690
|
-onPageChange?: (params: GridPageChangeParams) => void;
|
|
3538
4691
|
+onPageChange?: (page: number) => void;
|
|
3539
4692
|
|
|
3540
|
-
|
|
4693
|
+
// Usage
|
|
3541
4694
|
-<DataGrid onPageChange={(params: GridPageChangeParams) => setPage(params.page)} />
|
|
3542
4695
|
+<DataGrid onPageChange={(page: number) => setPage(page)} />
|
|
3543
4696
|
```
|
|
3544
4697
|
|
|
3545
4698
|
```diff
|
|
3546
|
-
|
|
4699
|
+
// Signature
|
|
3547
4700
|
-onPageSizeChange?: (params: GridPageChangeParams) => void;
|
|
3548
4701
|
+onPageSizeChange?: (pageSize: number) => void;
|
|
3549
4702
|
|
|
3550
|
-
|
|
4703
|
+
// Usage
|
|
3551
4704
|
-<DataGrid onPageSizeChange={(params: GridPageChangeParams) => setPageSize(params.pageSize)} />
|
|
3552
4705
|
+<DataGrid onPageSizeChange={(pageSize: number) => setPageSize(pageSize)} />
|
|
3553
4706
|
```
|
|
@@ -3605,7 +4758,7 @@ Big thanks to the 11 contributors who made this release possible. Here are some
|
|
|
3605
4758
|
Remove public `apiRef.current.isColumnVisibleInWindow()` as it servers private use cases.
|
|
3606
4759
|
|
|
3607
4760
|
```diff
|
|
3608
|
-
-apiRef.current.isColumnVisibleInWindow()
|
|
4761
|
+
-apiRef.current.isColumnVisibleInWindow();
|
|
3609
4762
|
```
|
|
3610
4763
|
|
|
3611
4764
|
- [DataGrid] Remove stateId argument from GridApi getState method (#2141) @flaviendelangle
|
|
@@ -3652,7 +4805,7 @@ Big thanks to the 11 contributors who made this release possible. Here are some
|
|
|
3652
4805
|
|
|
3653
4806
|
```diff
|
|
3654
4807
|
+apiRef.current.setCellMode(1, 'name', 'edit');
|
|
3655
|
-
|
|
4808
|
+
apiRef.current.commitCellChange({ id: 1, field: 'name' });
|
|
3656
4809
|
```
|
|
3657
4810
|
|
|
3658
4811
|
- The `setCellValue` was removed from the API. Use `commitCellChange` or `updateRows` in place.
|
|
@@ -4443,31 +5596,33 @@ Big thanks to the 5 contributors who made this release possible. Here are some h
|
|
|
4443
5596
|
|
|
4444
5597
|
- Changes on `apiRef.current`.
|
|
4445
5598
|
|
|
4446
|
-
```diff
|
|
4447
|
-
-
|
|
4448
|
-
+
|
|
4449
|
-
|
|
4450
|
-
|
|
4451
|
-
|
|
4452
|
-
|
|
4453
|
-
|
|
4454
|
-
|
|
4455
|
-
|
|
4456
|
-
|
|
4457
|
-
|
|
4458
|
-
|
|
4459
|
-
|
|
4460
|
-
|
|
4461
|
-
|
|
4462
|
-
|
|
4463
|
-
|
|
4464
|
-
|
|
4465
|
-
|
|
4466
|
-
|
|
4467
|
-
|
|
4468
|
-
|
|
4469
|
-
|
|
4470
|
-
|
|
5599
|
+
```diff
|
|
5600
|
+
-getRowModels: () => GridRowModel[];
|
|
5601
|
+
+getRowModels: () => Map<GridRowId, GridRowModel>;
|
|
5602
|
+
|
|
5603
|
+
-getVisibleRowModels: () => GridRowModel[];
|
|
5604
|
+
+getVisibleRowModels: () => Map<GridRowId, GridRowModel>;
|
|
5605
|
+
|
|
5606
|
+
-getSelectedRows: () => GridRowModel[];
|
|
5607
|
+
+getSelectedRows: () => Map<GridRowId, GridRowModel>;
|
|
5608
|
+
```
|
|
5609
|
+
|
|
5610
|
+
- Changes on `GridFilterModelParams`.
|
|
5611
|
+
|
|
5612
|
+
```diff
|
|
5613
|
+
export interface GridFilterModelParams {
|
|
5614
|
+
/**
|
|
5615
|
+
* The full set of rows.
|
|
5616
|
+
*/
|
|
5617
|
+
- rows: GridRowModel[];
|
|
5618
|
+
+ rows: Map<GridRowId, GridRowModel>;
|
|
5619
|
+
/**
|
|
5620
|
+
* The set of currently visible rows.
|
|
5621
|
+
*/
|
|
5622
|
+
- visibleRows: GridRowModel[];
|
|
5623
|
+
+ visibleRows: Map<GridRowId, GridRowModel>;
|
|
5624
|
+
}
|
|
5625
|
+
```
|
|
4471
5626
|
|
|
4472
5627
|
- [DataGrid] Upgrade mininum supported version of React to 17.0.0 (#1410) @m4theushw
|
|
4473
5628
|
|
|
@@ -4685,11 +5840,12 @@ Big thanks to the 4 contributors who made this release possible. Here are some h
|
|
|
4685
5840
|
```diff
|
|
4686
5841
|
-columns[1] = { ...columns[1], sortDirection: 'asc' };
|
|
4687
5842
|
|
|
4688
|
-
|
|
4689
|
-
|
|
5843
|
+
return (
|
|
5844
|
+
<div>
|
|
4690
5845
|
- <DataGrid rows={rows} columns={columns} />
|
|
4691
5846
|
+ <DataGrid rows={rows} columns={columns} sortModel={[{ field: columns[1].field, sort: 'asc' }]} />
|
|
4692
|
-
|
|
5847
|
+
</div>
|
|
5848
|
+
);
|
|
4693
5849
|
```
|
|
4694
5850
|
|
|
4695
5851
|
- [DataGrid] Rename the `onSelectionChange` prop to `onSelectionModelChange` for consistency. (#986) @dtassone
|
|
@@ -4716,10 +5872,11 @@ Big thanks to the 4 contributors who made this release possible. Here are some h
|
|
|
4716
5872
|
-const [page, setPage] = React.useState(1);
|
|
4717
5873
|
+const [page, setPage] = React.useState(0);
|
|
4718
5874
|
|
|
4719
|
-
|
|
4720
|
-
|
|
4721
|
-
|
|
4722
|
-
|
|
5875
|
+
return (
|
|
5876
|
+
<div className="grid-container">
|
|
5877
|
+
<DataGrid rows={rows} columns={columns} page={page} />
|
|
5878
|
+
</div>
|
|
5879
|
+
);
|
|
4723
5880
|
```
|
|
4724
5881
|
|
|
4725
5882
|
#### Changes
|
|
@@ -4820,25 +5977,25 @@ Big thanks to the 5 contributors who made this release possible. Here are some h
|
|
|
4820
5977
|
- Capitalize the keys of the `components` prop. This change aims to bring consistency with the customization pattern of Material UI v5:
|
|
4821
5978
|
|
|
4822
5979
|
```diff
|
|
4823
|
-
|
|
4824
|
-
|
|
4825
|
-
-
|
|
4826
|
-
+
|
|
4827
|
-
|
|
4828
|
-
|
|
5980
|
+
<DataGrid
|
|
5981
|
+
components={{
|
|
5982
|
+
- noRowsOverlay: CustomNoRowsOverlay,
|
|
5983
|
+
+ NoRowOverlay: CustomNoRowsOverlay,
|
|
5984
|
+
}}
|
|
5985
|
+
/>
|
|
4829
5986
|
```
|
|
4830
5987
|
|
|
4831
5988
|
- Move all the icon components overrides in the `components` prop. And added the suffix 'Icon' on each icon component. This change aims to bring consistency with the customization pattern of Material UI v5:
|
|
4832
5989
|
|
|
4833
5990
|
```diff
|
|
4834
|
-
|
|
4835
|
-
-
|
|
4836
|
-
-
|
|
4837
|
-
-
|
|
4838
|
-
+
|
|
4839
|
-
+
|
|
4840
|
-
+
|
|
4841
|
-
|
|
5991
|
+
<DataGrid
|
|
5992
|
+
- icons: {{
|
|
5993
|
+
- ColumnSortedAscending: SortedAscending,
|
|
5994
|
+
- }},
|
|
5995
|
+
+ components={{
|
|
5996
|
+
+ ColumnSortedAscendingIcon: SortedAscending,
|
|
5997
|
+
+ }}
|
|
5998
|
+
/>
|
|
4842
5999
|
```
|
|
4843
6000
|
|
|
4844
6001
|
- Change the props provided to the component of the `components` prop. Expose the whole state instead of an arbitrary set of props:
|
|
@@ -4856,9 +6013,9 @@ Big thanks to the 5 contributors who made this release possible. Here are some h
|
|
|
4856
6013
|
+ page={state.pagination.page}
|
|
4857
6014
|
+ count={state.pagination.pageCount}
|
|
4858
6015
|
|
|
4859
|
-
|
|
6016
|
+
// ...
|
|
4860
6017
|
|
|
4861
|
-
|
|
6018
|
+
<DataGrid components={{ Pagination: CustomPagination }} />
|
|
4862
6019
|
```
|
|
4863
6020
|
|
|
4864
6021
|
#### Changes
|