@mui/x-data-grid 5.7.0 → 5.10.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +241 -53
- package/DataGrid/DataGrid.d.ts +8 -3
- package/DataGrid/DataGrid.js +28 -5
- package/DataGrid/useDataGridComponent.js +5 -5
- package/DataGrid/useDataGridProps.d.ts +2 -1
- package/LICENSE +21 -0
- package/README.md +6 -4
- package/colDef/gridBooleanColDef.d.ts +1 -1
- package/colDef/gridBooleanOperators.d.ts +1 -1
- package/colDef/gridDateColDef.d.ts +5 -9
- package/colDef/gridDateColDef.js +2 -2
- package/colDef/gridDateOperators.d.ts +1 -1
- package/{models/colDef → colDef}/gridDefaultColumnTypes.d.ts +1 -1
- package/{models/colDef → colDef}/gridDefaultColumnTypes.js +6 -6
- package/colDef/gridNumericColDef.d.ts +1 -1
- package/colDef/gridNumericOperators.d.ts +2 -2
- package/colDef/gridStringColDef.d.ts +1 -1
- package/colDef/gridStringOperators.d.ts +1 -1
- package/colDef/index.d.ts +1 -0
- package/colDef/index.js +2 -1
- package/components/GridRow.d.ts +4 -0
- package/components/GridRow.js +55 -24
- package/components/base/GridOverlays.js +4 -3
- package/components/cell/GridActionsCell.d.ts +5 -1
- package/components/cell/GridActionsCell.js +170 -21
- package/components/cell/GridActionsCellItem.d.ts +66 -4
- package/components/cell/GridActionsCellItem.js +7 -5
- package/components/cell/GridCell.d.ts +5 -4
- package/components/cell/GridCell.js +30 -9
- package/components/cell/GridEditInputCell.js +3 -3
- package/components/cell/GridEditSingleSelectCell.js +24 -15
- package/components/columnHeaders/GridColumnHeaderFilterIconButton.d.ts +12 -0
- package/components/columnHeaders/{ColumnHeaderFilterIcon.js → GridColumnHeaderFilterIconButton.js} +22 -4
- package/components/columnHeaders/GridColumnHeaderItem.js +9 -12
- package/components/columnHeaders/GridColumnHeaders.d.ts +0 -1
- package/components/columnHeaders/GridColumnHeaders.js +1 -1
- package/components/columnHeaders/index.d.ts +1 -0
- package/components/columnHeaders/index.js +1 -0
- package/components/columnSelection/GridCellCheckboxRenderer.d.ts +3 -3
- package/components/columnSelection/GridCellCheckboxRenderer.js +22 -5
- package/components/columnSelection/GridHeaderCheckbox.d.ts +1 -1
- package/components/containers/GridRoot.js +29 -17
- package/components/containers/GridRootStyles.js +36 -1
- package/components/menu/GridMenu.js +1 -0
- package/components/menu/columnMenu/GridColumnMenu.js +1 -1
- package/components/panel/GridPanel.d.ts +2 -2
- package/components/panel/GridPanel.js +1 -0
- package/components/panel/GridPreferencesPanel.js +1 -1
- package/components/panel/filterPanel/GridFilterForm.js +14 -10
- package/components/panel/filterPanel/GridFilterInputBoolean.js +13 -8
- package/components/panel/filterPanel/GridFilterInputSingleSelect.js +22 -15
- package/components/panel/filterPanel/GridFilterInputValue.js +22 -15
- package/components/toolbar/GridToolbarDensitySelector.js +1 -1
- package/components/toolbar/GridToolbarFilterButton.d.ts +1 -1
- package/components/virtualization/GridVirtualScroller.js +2 -0
- package/components/virtualization/GridVirtualScrollerContent.js +1 -3
- package/constants/defaultGridSlotsComponents.js +4 -2
- package/constants/gridClasses.d.ts +35 -3
- package/constants/gridClasses.js +1 -1
- package/constants/gridDetailPanelToggleField.d.ts +1 -0
- package/constants/gridDetailPanelToggleField.js +2 -0
- package/constants/localeTextConstants.js +3 -1
- package/hooks/core/index.d.ts +1 -1
- package/hooks/core/pipeProcessing/gridPipeProcessingApi.d.ts +85 -0
- package/hooks/core/{preProcessing/gridPreProcessingApi.js → pipeProcessing/gridPipeProcessingApi.js} +0 -0
- package/hooks/core/pipeProcessing/index.d.ts +4 -0
- package/hooks/core/pipeProcessing/index.js +4 -0
- package/hooks/core/pipeProcessing/useGridPipeProcessing.d.ts +32 -0
- package/hooks/core/pipeProcessing/useGridPipeProcessing.js +108 -0
- package/hooks/core/pipeProcessing/useGridRegisterPipeApplier.d.ts +3 -0
- package/{modern/hooks/core/preProcessing/useGridRegisterPreProcessor.js → hooks/core/pipeProcessing/useGridRegisterPipeApplier.js} +2 -6
- package/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.d.ts +4 -0
- package/hooks/core/{preProcessing/useGridRegisterPreProcessor.js → pipeProcessing/useGridRegisterPipeProcessor.js} +2 -6
- package/hooks/core/strategyProcessing/useGridStrategyProcessing.d.ts +27 -16
- package/hooks/core/strategyProcessing/useGridStrategyProcessing.js +26 -15
- package/hooks/core/useGridInitialization.js +2 -2
- package/hooks/features/columnHeaders/useGridColumnHeaders.d.ts +0 -1
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +77 -11
- package/hooks/features/columnMenu/useGridColumnMenu.js +2 -1
- package/hooks/features/columns/gridColumnsInterfaces.d.ts +3 -1
- package/hooks/features/columns/gridColumnsSelector.d.ts +6 -6
- package/hooks/features/columns/gridColumnsUtils.d.ts +22 -4
- package/hooks/features/columns/gridColumnsUtils.js +105 -20
- package/hooks/features/columns/useGridColumnSpanning.d.ts +7 -0
- package/hooks/features/columns/useGridColumnSpanning.js +109 -0
- package/hooks/features/columns/useGridColumns.d.ts +1 -1
- package/hooks/features/columns/useGridColumns.js +55 -40
- package/hooks/features/dimensions/gridDimensionsApi.d.ts +5 -0
- package/hooks/features/dimensions/useGridDimensions.js +5 -4
- package/hooks/features/editRows/useGridCellEditing.new.d.ts +1 -1
- package/hooks/features/editRows/useGridCellEditing.new.js +40 -17
- package/hooks/features/editRows/useGridEditing.new.js +7 -3
- package/hooks/features/editRows/useGridRowEditing.new.d.ts +1 -1
- package/hooks/features/editRows/useGridRowEditing.new.js +44 -21
- package/hooks/features/events/useGridEvents.d.ts +1 -1
- package/hooks/features/events/useGridEvents.js +2 -0
- package/hooks/features/filter/gridFilterSelector.d.ts +3 -9
- package/hooks/features/filter/useGridFilter.js +18 -13
- package/hooks/features/focus/useGridFocus.js +19 -9
- package/hooks/features/{keyboard → keyboardNavigation}/useGridKeyboardNavigation.d.ts +3 -5
- package/hooks/features/{keyboard → keyboardNavigation}/useGridKeyboardNavigation.js +66 -13
- package/hooks/features/pagination/gridPaginationSelector.d.ts +1 -3
- package/hooks/features/pagination/useGridPage.js +9 -4
- package/hooks/features/pagination/useGridPageSize.js +3 -3
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.js +18 -5
- package/hooks/features/rows/gridRowsSelector.d.ts +2 -1
- package/hooks/features/rows/gridRowsSelector.js +1 -0
- package/hooks/features/rows/gridRowsState.d.ts +4 -0
- package/hooks/features/rows/gridRowsUtils.d.ts +8 -0
- package/hooks/features/rows/gridRowsUtils.js +11 -0
- package/hooks/features/rows/index.d.ts +1 -0
- package/hooks/features/rows/index.js +1 -1
- package/hooks/features/rows/useGridRows.d.ts +2 -2
- package/hooks/features/rows/useGridRows.js +27 -7
- package/hooks/features/rows/useGridRowsMeta.js +7 -14
- package/hooks/features/scroll/useGridScroll.d.ts +2 -0
- package/hooks/features/scroll/useGridScroll.js +27 -14
- package/hooks/features/selection/gridSelectionSelector.d.ts +1 -3
- package/hooks/features/selection/useGridSelection.d.ts +4 -2
- package/hooks/features/selection/useGridSelection.js +75 -27
- package/hooks/features/selection/useGridSelectionPreProcessors.js +2 -2
- package/hooks/features/sorting/gridSortingSelector.d.ts +1 -3
- package/hooks/features/sorting/gridSortingUtils.d.ts +1 -2
- package/hooks/features/sorting/useGridSorting.js +13 -13
- package/hooks/features/statePersistence/useGridStatePersistence.js +2 -2
- package/hooks/features/virtualization/useGridVirtualScroller.d.ts +9 -0
- package/hooks/features/virtualization/useGridVirtualScroller.js +64 -27
- package/hooks/utils/useGridRootProps.d.ts +1 -1
- package/hooks/utils/useGridVisibleRows.d.ts +2 -2
- package/index.js +1 -1
- package/internals/index.d.ts +4 -6
- package/internals/index.js +3 -3
- package/legacy/DataGrid/DataGrid.js +28 -5
- package/legacy/DataGrid/useDataGridComponent.js +5 -5
- package/legacy/colDef/gridDateColDef.js +2 -2
- package/legacy/{models/colDef → colDef}/gridDefaultColumnTypes.js +6 -6
- package/legacy/colDef/index.js +2 -1
- package/legacy/components/GridRow.js +53 -24
- package/legacy/components/base/GridOverlays.js +4 -3
- package/legacy/components/cell/GridActionsCell.js +188 -27
- package/legacy/components/cell/GridActionsCellItem.js +7 -5
- package/legacy/components/cell/GridCell.js +31 -9
- package/legacy/components/cell/GridEditInputCell.js +3 -3
- package/legacy/components/cell/GridEditSingleSelectCell.js +35 -26
- package/legacy/components/columnHeaders/{ColumnHeaderFilterIcon.js → GridColumnHeaderFilterIconButton.js} +22 -4
- package/legacy/components/columnHeaders/GridColumnHeaderItem.js +9 -12
- package/legacy/components/columnHeaders/GridColumnHeaders.js +2 -3
- package/legacy/components/columnHeaders/index.js +1 -0
- package/legacy/components/columnSelection/GridCellCheckboxRenderer.js +23 -5
- package/legacy/components/containers/GridRoot.js +34 -17
- package/legacy/components/containers/GridRootStyles.js +26 -5
- package/legacy/components/menu/GridMenu.js +1 -0
- package/legacy/components/menu/columnMenu/GridColumnMenu.js +1 -1
- package/legacy/components/panel/GridPanel.js +1 -0
- package/legacy/components/panel/GridPreferencesPanel.js +1 -1
- package/legacy/components/panel/filterPanel/GridFilterForm.js +14 -10
- package/legacy/components/panel/filterPanel/GridFilterInputBoolean.js +13 -8
- package/legacy/components/panel/filterPanel/GridFilterInputSingleSelect.js +22 -17
- package/legacy/components/panel/filterPanel/GridFilterInputValue.js +22 -17
- package/legacy/components/toolbar/GridToolbarDensitySelector.js +1 -1
- package/legacy/components/virtualization/GridVirtualScroller.js +2 -0
- package/legacy/components/virtualization/GridVirtualScrollerContent.js +1 -3
- package/legacy/constants/defaultGridSlotsComponents.js +4 -2
- package/legacy/constants/gridClasses.js +1 -1
- package/legacy/constants/gridDetailPanelToggleField.js +2 -0
- package/legacy/constants/localeTextConstants.js +3 -1
- package/legacy/hooks/core/{preProcessing/gridPreProcessingApi.js → pipeProcessing/gridPipeProcessingApi.js} +0 -0
- package/legacy/hooks/core/pipeProcessing/index.js +4 -0
- package/legacy/hooks/core/pipeProcessing/useGridPipeProcessing.js +119 -0
- package/legacy/hooks/core/{preProcessing/useGridRegisterPreProcessor.js → pipeProcessing/useGridRegisterPipeApplier.js} +2 -6
- package/legacy/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +27 -0
- package/legacy/hooks/core/strategyProcessing/useGridStrategyProcessing.js +26 -15
- package/legacy/hooks/core/useGridInitialization.js +2 -2
- package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +90 -11
- package/legacy/hooks/features/columnMenu/useGridColumnMenu.js +2 -1
- package/legacy/hooks/features/columns/gridColumnsUtils.js +120 -32
- package/legacy/hooks/features/columns/useGridColumnSpanning.js +107 -0
- package/legacy/hooks/features/columns/useGridColumns.js +55 -40
- package/legacy/hooks/features/dimensions/useGridDimensions.js +5 -4
- package/legacy/hooks/features/editRows/useGridCellEditing.new.js +36 -15
- package/legacy/hooks/features/editRows/useGridEditing.new.js +7 -3
- package/legacy/hooks/features/editRows/useGridRowEditing.new.js +53 -30
- package/legacy/hooks/features/events/useGridEvents.js +2 -0
- package/legacy/hooks/features/filter/useGridFilter.js +18 -13
- package/legacy/hooks/features/focus/useGridFocus.js +19 -9
- package/legacy/hooks/features/{keyboard → keyboardNavigation}/useGridKeyboardNavigation.js +66 -12
- package/legacy/hooks/features/pagination/useGridPage.js +11 -4
- package/legacy/hooks/features/pagination/useGridPageSize.js +3 -3
- package/legacy/hooks/features/preferencesPanel/useGridPreferencesPanel.js +18 -5
- package/legacy/hooks/features/rows/gridRowsSelector.js +3 -0
- package/legacy/hooks/features/rows/gridRowsUtils.js +13 -0
- package/legacy/hooks/features/rows/index.js +1 -1
- package/legacy/hooks/features/rows/useGridRows.js +35 -9
- package/legacy/hooks/features/rows/useGridRowsMeta.js +7 -14
- package/legacy/hooks/features/scroll/useGridScroll.js +27 -14
- package/legacy/hooks/features/selection/useGridSelection.js +77 -27
- package/legacy/hooks/features/selection/useGridSelectionPreProcessors.js +2 -2
- package/legacy/hooks/features/sorting/useGridSorting.js +8 -10
- package/legacy/hooks/features/statePersistence/useGridStatePersistence.js +2 -2
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +75 -37
- package/legacy/index.js +1 -1
- package/legacy/internals/index.js +3 -3
- package/legacy/locales/arSD.js +3 -1
- package/legacy/locales/bgBG.js +3 -1
- package/legacy/locales/csCZ.js +2 -0
- package/legacy/locales/daDK.js +37 -31
- package/legacy/locales/deDE.js +3 -1
- package/legacy/locales/elGR.js +2 -0
- package/legacy/locales/esES.js +2 -0
- package/legacy/locales/faIR.js +3 -1
- package/legacy/locales/fiFI.js +2 -0
- package/legacy/locales/frFR.js +2 -0
- package/legacy/locales/heIL.js +3 -1
- package/legacy/locales/huHU.js +122 -0
- package/legacy/locales/index.js +1 -0
- package/legacy/locales/itIT.js +2 -0
- package/legacy/locales/jaJP.js +2 -0
- package/legacy/locales/koKR.js +2 -0
- package/legacy/locales/nlNL.js +2 -0
- package/legacy/locales/plPL.js +3 -1
- package/legacy/locales/ptBR.js +3 -1
- package/legacy/locales/ruRU.js +2 -0
- package/legacy/locales/skSK.js +2 -0
- package/legacy/locales/trTR.js +3 -1
- package/legacy/locales/ukUA.js +2 -0
- package/legacy/locales/viVN.js +2 -0
- package/legacy/locales/zhCN.js +2 -0
- package/{modern/hooks/core/preProcessing/gridPreProcessingApi.js → legacy/models/api/gridColumnSpanning.js} +0 -0
- package/legacy/models/colDef/index.js +1 -2
- package/legacy/models/events/gridEvents.js +10 -3
- package/legacy/models/gridColumnSpanning.js +1 -0
- package/legacy/models/gridRows.js +1 -33
- package/legacy/models/index.js +2 -2
- package/legacy/models/params/gridPreferencePanelParams.js +1 -0
- package/legacy/models/params/index.js +2 -1
- package/locales/arSD.js +3 -1
- package/locales/bgBG.js +3 -1
- package/locales/csCZ.js +2 -0
- package/locales/daDK.js +33 -31
- package/locales/deDE.js +3 -1
- package/locales/elGR.js +2 -0
- package/locales/esES.js +2 -0
- package/locales/faIR.js +3 -1
- package/locales/fiFI.js +2 -0
- package/locales/frFR.js +2 -0
- package/locales/heIL.js +3 -1
- package/locales/huHU.d.ts +2 -0
- package/locales/huHU.js +110 -0
- package/locales/index.d.ts +1 -0
- package/locales/index.js +1 -0
- package/locales/itIT.js +2 -0
- package/locales/jaJP.js +2 -0
- package/locales/koKR.js +2 -0
- package/locales/nlNL.js +2 -0
- package/locales/plPL.js +3 -1
- package/locales/ptBR.js +3 -1
- package/locales/ruRU.js +2 -0
- package/locales/skSK.js +2 -0
- package/locales/trTR.js +3 -1
- package/locales/ukUA.js +2 -0
- package/locales/viVN.js +2 -0
- package/locales/zhCN.js +2 -0
- package/models/api/gridApiCommon.d.ts +3 -2
- package/models/api/gridColumnSpanning.d.ts +28 -0
- package/models/api/gridColumnSpanning.js +1 -0
- package/models/api/gridEditingApi.d.ts +51 -5
- package/models/api/gridLocaleTextApi.d.ts +1 -0
- package/models/api/gridParamsApi.d.ts +5 -5
- package/models/api/gridRowApi.d.ts +8 -2
- package/models/colDef/gridColDef.d.ts +38 -28
- package/models/colDef/index.d.ts +0 -1
- package/models/colDef/index.js +1 -2
- package/models/events/gridEventLookup.d.ts +30 -9
- package/models/events/gridEvents.d.ts +50 -17
- package/models/events/gridEvents.js +10 -3
- package/models/gridCell.d.ts +1 -0
- package/models/gridColumnSpanning.d.ts +12 -0
- package/models/gridColumnSpanning.js +1 -0
- package/models/gridEditRowModel.d.ts +1 -1
- package/models/gridFilterOperator.d.ts +3 -2
- package/models/gridIconSlotsComponent.d.ts +5 -0
- package/models/gridRows.d.ts +10 -18
- package/models/gridRows.js +1 -31
- package/models/gridSlotsComponent.d.ts +5 -0
- package/models/gridSlotsComponentsProps.d.ts +1 -0
- package/models/gridSortModel.d.ts +3 -4
- package/models/index.d.ts +1 -1
- package/models/index.js +2 -2
- package/models/params/gridCellParams.d.ts +25 -15
- package/models/params/gridColumnHeaderParams.d.ts +3 -2
- package/models/params/gridEditCellParams.d.ts +2 -3
- package/models/params/gridPreferencePanelParams.d.ts +3 -0
- package/models/params/gridPreferencePanelParams.js +1 -0
- package/models/params/gridRowParams.d.ts +12 -8
- package/models/params/gridValueOptionsParams.d.ts +3 -3
- package/models/params/index.d.ts +1 -0
- package/models/params/index.js +2 -1
- package/models/props/DataGridProps.d.ts +37 -17
- package/modern/DataGrid/DataGrid.js +28 -5
- package/modern/DataGrid/useDataGridComponent.js +5 -5
- package/modern/colDef/gridDateColDef.js +2 -2
- package/modern/{models/colDef → colDef}/gridDefaultColumnTypes.js +6 -6
- package/modern/colDef/index.js +2 -1
- package/modern/components/GridRow.js +53 -22
- package/modern/components/base/GridOverlays.js +4 -3
- package/modern/components/cell/GridActionsCell.js +168 -21
- package/modern/components/cell/GridActionsCellItem.js +7 -5
- package/modern/components/cell/GridCell.js +30 -9
- package/modern/components/cell/GridEditInputCell.js +3 -3
- package/modern/components/cell/GridEditSingleSelectCell.js +22 -13
- package/modern/components/columnHeaders/{ColumnHeaderFilterIcon.js → GridColumnHeaderFilterIconButton.js} +22 -4
- package/modern/components/columnHeaders/GridColumnHeaderItem.js +7 -10
- package/modern/components/columnHeaders/GridColumnHeaders.js +1 -1
- package/modern/components/columnHeaders/index.js +1 -0
- package/modern/components/columnSelection/GridCellCheckboxRenderer.js +22 -5
- package/modern/components/containers/GridRoot.js +29 -17
- package/modern/components/containers/GridRootStyles.js +36 -1
- package/modern/components/menu/GridMenu.js +1 -0
- package/modern/components/menu/columnMenu/GridColumnMenu.js +1 -1
- package/modern/components/panel/GridPanel.js +1 -0
- package/modern/components/panel/GridPreferencesPanel.js +1 -1
- package/modern/components/panel/filterPanel/GridFilterForm.js +10 -6
- package/modern/components/panel/filterPanel/GridFilterInputBoolean.js +11 -6
- package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +20 -13
- package/modern/components/panel/filterPanel/GridFilterInputValue.js +20 -13
- package/modern/components/toolbar/GridToolbarDensitySelector.js +1 -1
- package/modern/components/virtualization/GridVirtualScroller.js +2 -0
- package/modern/components/virtualization/GridVirtualScrollerContent.js +1 -3
- package/modern/constants/defaultGridSlotsComponents.js +4 -2
- package/modern/constants/gridClasses.js +1 -1
- package/modern/constants/gridDetailPanelToggleField.js +2 -0
- package/modern/constants/localeTextConstants.js +3 -1
- package/modern/hooks/core/pipeProcessing/gridPipeProcessingApi.js +1 -0
- package/modern/hooks/core/pipeProcessing/index.js +4 -0
- package/modern/hooks/core/pipeProcessing/useGridPipeProcessing.js +108 -0
- package/modern/hooks/core/pipeProcessing/useGridRegisterPipeApplier.js +27 -0
- package/modern/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +27 -0
- package/modern/hooks/core/strategyProcessing/useGridStrategyProcessing.js +26 -15
- package/modern/hooks/core/useGridInitialization.js +2 -2
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +77 -11
- package/modern/hooks/features/columnMenu/useGridColumnMenu.js +2 -1
- package/modern/hooks/features/columns/gridColumnsUtils.js +105 -20
- package/modern/hooks/features/columns/useGridColumnSpanning.js +107 -0
- package/modern/hooks/features/columns/useGridColumns.js +55 -40
- package/modern/hooks/features/dimensions/useGridDimensions.js +5 -4
- package/modern/hooks/features/editRows/useGridCellEditing.new.js +40 -17
- package/modern/hooks/features/editRows/useGridEditing.new.js +7 -3
- package/modern/hooks/features/editRows/useGridRowEditing.new.js +44 -21
- package/modern/hooks/features/events/useGridEvents.js +2 -0
- package/modern/hooks/features/filter/useGridFilter.js +18 -13
- package/modern/hooks/features/focus/useGridFocus.js +19 -9
- package/modern/hooks/features/{keyboard → keyboardNavigation}/useGridKeyboardNavigation.js +64 -13
- package/modern/hooks/features/pagination/useGridPage.js +9 -4
- package/modern/hooks/features/pagination/useGridPageSize.js +3 -3
- package/modern/hooks/features/preferencesPanel/useGridPreferencesPanel.js +18 -5
- package/modern/hooks/features/rows/gridRowsSelector.js +1 -0
- package/modern/hooks/features/rows/gridRowsUtils.js +11 -0
- package/modern/hooks/features/rows/index.js +1 -1
- package/modern/hooks/features/rows/useGridRows.js +25 -5
- package/modern/hooks/features/rows/useGridRowsMeta.js +7 -14
- package/modern/hooks/features/scroll/useGridScroll.js +25 -10
- package/modern/hooks/features/selection/useGridSelection.js +75 -27
- package/modern/hooks/features/selection/useGridSelectionPreProcessors.js +2 -2
- package/modern/hooks/features/sorting/useGridSorting.js +13 -13
- package/modern/hooks/features/statePersistence/useGridStatePersistence.js +2 -2
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +64 -23
- package/modern/index.js +1 -1
- package/modern/internals/index.js +3 -3
- package/modern/locales/arSD.js +3 -1
- package/modern/locales/bgBG.js +3 -1
- package/modern/locales/csCZ.js +2 -0
- package/modern/locales/daDK.js +33 -31
- package/modern/locales/deDE.js +3 -1
- package/modern/locales/elGR.js +2 -0
- package/modern/locales/esES.js +2 -0
- package/modern/locales/faIR.js +3 -1
- package/modern/locales/fiFI.js +2 -0
- package/modern/locales/frFR.js +2 -0
- package/modern/locales/heIL.js +3 -1
- package/modern/locales/huHU.js +110 -0
- package/modern/locales/index.js +1 -0
- package/modern/locales/itIT.js +2 -0
- package/modern/locales/jaJP.js +2 -0
- package/modern/locales/koKR.js +2 -0
- package/modern/locales/nlNL.js +2 -0
- package/modern/locales/plPL.js +3 -1
- package/modern/locales/ptBR.js +3 -1
- package/modern/locales/ruRU.js +2 -0
- package/modern/locales/skSK.js +2 -0
- package/modern/locales/trTR.js +3 -1
- package/modern/locales/ukUA.js +2 -0
- package/modern/locales/viVN.js +2 -0
- package/modern/locales/zhCN.js +2 -0
- package/modern/models/api/gridColumnSpanning.js +1 -0
- package/modern/models/colDef/index.js +1 -2
- package/modern/models/events/gridEvents.js +10 -3
- package/modern/models/gridColumnSpanning.js +1 -0
- package/modern/models/gridRows.js +1 -31
- package/modern/models/index.js +2 -2
- package/modern/models/params/gridPreferencePanelParams.js +1 -0
- package/modern/models/params/index.js +2 -1
- package/node/DataGrid/DataGrid.js +28 -5
- package/node/DataGrid/useDataGridComponent.js +6 -6
- package/node/colDef/gridDateColDef.js +2 -2
- package/node/{models/colDef → colDef}/gridDefaultColumnTypes.js +6 -6
- package/node/colDef/index.js +13 -0
- package/node/components/GridRow.js +56 -24
- package/node/components/base/GridOverlays.js +3 -2
- package/node/components/cell/GridActionsCell.js +172 -21
- package/node/components/cell/GridActionsCellItem.js +7 -4
- package/node/components/cell/GridCell.js +30 -9
- package/node/components/cell/GridEditInputCell.js +3 -3
- package/node/components/cell/GridEditSingleSelectCell.js +25 -15
- package/node/components/columnHeaders/{ColumnHeaderFilterIcon.js → GridColumnHeaderFilterIconButton.js} +23 -5
- package/node/components/columnHeaders/GridColumnHeaderItem.js +9 -13
- package/node/components/columnHeaders/GridColumnHeaders.js +1 -1
- package/node/components/columnHeaders/index.js +13 -0
- package/node/components/columnSelection/GridCellCheckboxRenderer.js +22 -5
- package/node/components/containers/GridRoot.js +28 -17
- package/node/components/containers/GridRootStyles.js +36 -1
- package/node/components/menu/GridMenu.js +1 -0
- package/node/components/menu/columnMenu/GridColumnMenu.js +1 -1
- package/node/components/panel/GridPanel.js +1 -0
- package/node/components/panel/GridPreferencesPanel.js +1 -1
- package/node/components/panel/filterPanel/GridFilterForm.js +15 -10
- package/node/components/panel/filterPanel/GridFilterInputBoolean.js +14 -8
- package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +23 -15
- package/node/components/panel/filterPanel/GridFilterInputValue.js +23 -15
- package/node/components/toolbar/GridToolbarDensitySelector.js +1 -1
- package/node/components/virtualization/GridVirtualScroller.js +2 -0
- package/node/components/virtualization/GridVirtualScrollerContent.js +1 -3
- package/node/constants/defaultGridSlotsComponents.js +3 -1
- package/node/constants/gridClasses.js +1 -1
- package/node/constants/gridDetailPanelToggleField.js +9 -0
- package/node/constants/localeTextConstants.js +3 -1
- package/node/hooks/core/{preProcessing/gridPreProcessingApi.js → pipeProcessing/gridPipeProcessingApi.js} +0 -0
- package/node/hooks/core/pipeProcessing/index.js +57 -0
- package/node/hooks/core/pipeProcessing/useGridPipeProcessing.js +124 -0
- package/node/hooks/core/{preProcessing/useGridRegisterPreProcessor.js → pipeProcessing/useGridRegisterPipeApplier.js} +4 -7
- package/node/hooks/core/pipeProcessing/useGridRegisterPipeProcessor.js +42 -0
- package/node/hooks/core/strategyProcessing/useGridStrategyProcessing.js +26 -15
- package/node/hooks/core/useGridInitialization.js +2 -2
- package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +81 -11
- package/node/hooks/features/columnMenu/useGridColumnMenu.js +2 -1
- package/node/hooks/features/columns/gridColumnsUtils.js +114 -25
- package/node/hooks/features/columns/useGridColumnSpanning.js +130 -0
- package/node/hooks/features/columns/useGridColumns.js +55 -40
- package/node/hooks/features/dimensions/useGridDimensions.js +5 -4
- package/node/hooks/features/editRows/useGridCellEditing.new.js +42 -17
- package/node/hooks/features/editRows/useGridEditing.new.js +6 -2
- package/node/hooks/features/editRows/useGridRowEditing.new.js +45 -21
- package/node/hooks/features/events/useGridEvents.js +2 -0
- package/node/hooks/features/filter/useGridFilter.js +18 -13
- package/node/hooks/features/focus/useGridFocus.js +19 -9
- package/node/hooks/features/{keyboard → keyboardNavigation}/useGridKeyboardNavigation.js +69 -13
- package/node/hooks/features/pagination/useGridPage.js +8 -3
- package/node/hooks/features/pagination/useGridPageSize.js +3 -3
- package/node/hooks/features/preferencesPanel/useGridPreferencesPanel.js +20 -5
- package/node/hooks/features/rows/gridRowsSelector.js +3 -1
- package/node/hooks/features/rows/gridRowsUtils.js +18 -0
- package/node/hooks/features/rows/index.js +15 -1
- package/node/hooks/features/rows/useGridRows.js +29 -9
- package/node/hooks/features/rows/useGridRowsMeta.js +7 -15
- package/node/hooks/features/scroll/useGridScroll.js +28 -14
- package/node/hooks/features/selection/useGridSelection.js +75 -26
- package/node/hooks/features/selection/useGridSelectionPreProcessors.js +2 -2
- package/node/hooks/features/sorting/useGridSorting.js +13 -13
- package/node/hooks/features/statePersistence/useGridStatePersistence.js +2 -2
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +69 -27
- package/node/index.js +1 -1
- package/node/internals/index.js +12 -12
- package/node/locales/arSD.js +3 -1
- package/node/locales/bgBG.js +3 -1
- package/node/locales/csCZ.js +2 -0
- package/node/locales/daDK.js +33 -31
- package/node/locales/deDE.js +3 -1
- package/node/locales/elGR.js +2 -0
- package/node/locales/esES.js +2 -0
- package/node/locales/faIR.js +3 -1
- package/node/locales/fiFI.js +2 -0
- package/node/locales/frFR.js +2 -0
- package/node/locales/heIL.js +3 -1
- package/node/locales/huHU.js +120 -0
- package/node/locales/index.js +13 -0
- package/node/locales/itIT.js +2 -0
- package/node/locales/jaJP.js +2 -0
- package/node/locales/koKR.js +2 -0
- package/node/locales/nlNL.js +2 -0
- package/node/locales/plPL.js +3 -1
- package/node/locales/ptBR.js +3 -1
- package/node/locales/ruRU.js +2 -0
- package/node/locales/skSK.js +2 -0
- package/node/locales/trTR.js +3 -1
- package/node/locales/ukUA.js +2 -0
- package/node/locales/viVN.js +2 -0
- package/node/locales/zhCN.js +2 -0
- package/node/models/api/gridColumnSpanning.js +5 -0
- package/node/models/colDef/index.js +0 -13
- package/node/models/events/gridEvents.js +10 -3
- package/node/models/gridColumnSpanning.js +5 -0
- package/node/models/gridRows.js +1 -34
- package/node/models/index.js +13 -13
- package/node/models/params/gridPreferencePanelParams.js +5 -0
- package/node/models/params/index.js +13 -0
- package/package.json +4 -4
- package/utils/domUtils.d.ts +2 -2
- package/components/columnHeaders/ColumnHeaderFilterIcon.d.ts +0 -5
- package/hooks/core/preProcessing/gridPreProcessingApi.d.ts +0 -67
- package/hooks/core/preProcessing/index.d.ts +0 -3
- package/hooks/core/preProcessing/index.js +0 -3
- package/hooks/core/preProcessing/useGridPreProcessing.d.ts +0 -6
- package/hooks/core/preProcessing/useGridPreProcessing.js +0 -53
- package/hooks/core/preProcessing/useGridRegisterPreProcessor.d.ts +0 -7
- package/hooks/features/keyboard/useGridKeyboard.d.ts +0 -10
- package/hooks/features/keyboard/useGridKeyboard.js +0 -70
- package/legacy/hooks/core/preProcessing/index.js +0 -3
- package/legacy/hooks/core/preProcessing/useGridPreProcessing.js +0 -62
- package/legacy/hooks/features/keyboard/useGridKeyboard.js +0 -70
- package/modern/hooks/core/preProcessing/index.js +0 -3
- package/modern/hooks/core/preProcessing/useGridPreProcessing.js +0 -53
- package/modern/hooks/features/keyboard/useGridKeyboard.js +0 -70
- package/node/hooks/core/preProcessing/index.js +0 -44
- package/node/hooks/core/preProcessing/useGridPreProcessing.js +0 -72
- package/node/hooks/features/keyboard/useGridKeyboard.js +0 -91
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,194 @@
|
|
|
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
|
+
## v5.10.0
|
|
7
|
+
|
|
8
|
+
_Apr 25, 2022_
|
|
9
|
+
|
|
10
|
+
We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
|
|
11
|
+
|
|
12
|
+
- 🎁 Introduce [Row reorder](https://mui.com/x/react-data-grid/rows/#row-reorder) (#4034) @DanailH
|
|
13
|
+
|
|
14
|
+
<img src="https://user-images.githubusercontent.com/5858539/165091263-23472fbb-a989-44b8-849a-d2185adfe13b.gif" width="800">
|
|
15
|
+
|
|
16
|
+
- 🐞 Bug fixes
|
|
17
|
+
|
|
18
|
+
### `@mui/x-data-grid@v5.10.0` / `@mui/x-data-grid-pro@v5.10.0`
|
|
19
|
+
|
|
20
|
+
- [DataGrid] Don't close column menu when updating rows (#4498) @m4theushw
|
|
21
|
+
- [DataGridPro] Introduce row reorder (#4034) @DanailH
|
|
22
|
+
|
|
23
|
+
### `@mui/x-date-pickers@5.0.0-alpha.2` / `@mui/x-date-pickers-pro@5.0.0-alpha.2`
|
|
24
|
+
|
|
25
|
+
- [pickers] Pass `PaperProps` to `DesktopWrapper` component (#4584) @alexfauquette
|
|
26
|
+
- [TimePicker] Fix bug when time picker clear value (#4582) @alexfauquette
|
|
27
|
+
- [DateRangePicker] Fix missing `clearable` and `clearText` props (#4511) @zigang93
|
|
28
|
+
|
|
29
|
+
### Docs
|
|
30
|
+
|
|
31
|
+
- [docs] Add plan in the nav bar for pro-only and premium-only pages (#4591) @flaviendelangle
|
|
32
|
+
- [docs] Clarify where to install the license (#4452) @oliviertassinari
|
|
33
|
+
- [docs] Fix CodeSandbox links for demo with pickers (#4570) @alexfauquette
|
|
34
|
+
- [docs] Include date-fns dependency when opening demos in CodeSandbox (#4508) @m4theushw
|
|
35
|
+
- [docs] Split the 'Group & Pivot' page (#4441) @flaviendelangle
|
|
36
|
+
|
|
37
|
+
### Core
|
|
38
|
+
|
|
39
|
+
- [core] Fix the README of the X packages (#4590) @flaviendelangle
|
|
40
|
+
- [test] Fix test to not depend on screen resolution (#4587) @m4theushw
|
|
41
|
+
|
|
42
|
+
## v5.9.0
|
|
43
|
+
|
|
44
|
+
_Apr 14, 2022_
|
|
45
|
+
|
|
46
|
+
We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
47
|
+
|
|
48
|
+
- ⚡ Update peer dependencies to support React 18 (#4332) @m4theushw
|
|
49
|
+
|
|
50
|
+
Now the data grid and pickers components support the concurrent mode.
|
|
51
|
+
|
|
52
|
+
- 🎁 Add support for [Column spanning](https://mui.com/x/react-data-grid/columns/#column-spanning) (#4020) @cherniavskii
|
|
53
|
+
|
|
54
|
+
<img src="https://user-images.githubusercontent.com/13808724/162926746-93bcb180-3c9d-4eb9-afc7-c3908a5c6406.png" width="788">
|
|
55
|
+
|
|
56
|
+
- 📚 New standalone documentation for MUI X (#4313) @siriwatknp
|
|
57
|
+
|
|
58
|
+
Each MUI product now has its own documentation.
|
|
59
|
+
More information on our [blog post](https://mui.com/blog/docs-restructure-2022/).
|
|
60
|
+
|
|
61
|
+
- 🌍 Add Hungarian (hu-HU) locale (#4458) @x22tri
|
|
62
|
+
|
|
63
|
+
- 🐞 Bug fixes
|
|
64
|
+
|
|
65
|
+
### `@mui/x-data-grid@v5.9.0` / `@mui/x-data-grid-pro@v5.9.0`
|
|
66
|
+
|
|
67
|
+
- [DataGrid] Add indexes relative to the filtered rows and the current page to the `getRowClassName` and `getRowSpacing` props (#3882) @flaviendelangle
|
|
68
|
+
- [DataGrid] Add React 18 to peer dependencies (#4332) @m4theushw
|
|
69
|
+
- [DataGrid] Add support for column spanning (#4020) @cherniavskii
|
|
70
|
+
- [DataGrid] Apply filtering before sorting (#4359) @flaviendelangle
|
|
71
|
+
- [DataGrid] Enable using non-native Select in filter panel (#4361) @kyeongsoosoo
|
|
72
|
+
- [DataGrid] Fix `api` prop leaking to DOM (#4384) @m4theushw
|
|
73
|
+
- [DataGrid] Fix column dimensions import/export with flex and resizing (#4311) @flaviendelangle
|
|
74
|
+
- [DataGrid] Fix focus after stopping row edit mode with pagination enabled (#4326) @m4theushw
|
|
75
|
+
- [DataGrid] Fix inconsistent overlay when changing the `loading` prop (#4334) @m4theushw
|
|
76
|
+
- [DataGrid] Fix scrollbar grabbing issue in Safari (#4405) @cherniavskii
|
|
77
|
+
- [DataGrid] `GridCellParams.formattedValue` should be nullable (#4376) @flaviendelangle
|
|
78
|
+
- [DataGrid] Improve accessibility of the `actions` column (#4325) @m4theushw
|
|
79
|
+
- [DataGrid] Pass updated row to edit components (#4392) @m4theushw
|
|
80
|
+
- [DataGrid] Prevent column header scroll (#4280) @m4theushw
|
|
81
|
+
- [DataGridPro] Fix toggling detail panel using keyboard (#4409) @cherniavskii
|
|
82
|
+
- [l10n] Add Hungarian (hu-HU) locale (#4458) @x22tri
|
|
83
|
+
|
|
84
|
+
### `@mui/x-date-pickers@5.0.0-alpha.1` / `@mui/x-date-pickers-pro@5.0.0-alpha.1`
|
|
85
|
+
|
|
86
|
+
- [ClockPicker] Should call `shouldDisableTime` with the hours with meridiem (#4404) @flaviendelangle
|
|
87
|
+
- [MonthPicker] Clicking on a `PickersMonth` button should not trigger the form submit (#4402) @flaviendelangle
|
|
88
|
+
- [TimePicker] Do not update date when updating input in `TimePicker` (#4398) @flaviendelangle
|
|
89
|
+
- [pickers] Add react-dom to pickers peer deps to satisfy react-transition-group (#4411) @CarsonF
|
|
90
|
+
- [pickers] Add `TDate` generic to `CalendarOrClockPicker` component (#4465) @flaviendelangle
|
|
91
|
+
- [pickers] Fix default props behavior on all pickers (#4451) @flaviendelangle
|
|
92
|
+
- [pickers] Export `MuiPickersAdapterContext` (#4367) @flaviendelangle
|
|
93
|
+
|
|
94
|
+
### Docs
|
|
95
|
+
|
|
96
|
+
- [docs] Avoid redirections (#4365) @oliviertassinari
|
|
97
|
+
- [docs] Fix docs about date adapter (#4386) @alexfauquette
|
|
98
|
+
- [docs] Fix small external links issue (#4436) @oliviertassinari
|
|
99
|
+
- [docs] Fix some links to date picker docs (#4362) @oliviertassinari
|
|
100
|
+
- [docs] Fix wrong URL (#4415) @siriwatknp
|
|
101
|
+
- [docs] Go live with the new URLs (#4313) @siriwatknp
|
|
102
|
+
- [docs] Update the product names to be in sync @oliviertassinari
|
|
103
|
+
|
|
104
|
+
### Core
|
|
105
|
+
|
|
106
|
+
- [core] Add technical doc for pipe processing and family processing (#4322) @flaviendelangle
|
|
107
|
+
- [core] Don't upgrade CircleCI node (#4457) @m4theushw
|
|
108
|
+
- [core] Fix flaky e2e-website tests in CI (#4136) @cherniavskii
|
|
109
|
+
- [core] Fix license file copying during build (#4462) @flaviendelangle
|
|
110
|
+
- [core] Fix links on v5.8.0 (#4464) @oliviertassinari
|
|
111
|
+
- [core] Fix npm page description mistake (#4364) @oliviertassinari
|
|
112
|
+
- [core] Fix typos and JSDoc (#4406) @flaviendelangle
|
|
113
|
+
- [core] Move away for the event system to trigger pipe processings (#4378) @flaviendelangle
|
|
114
|
+
- [core] Small fixes TS on pickers (#4461) @flaviendelangle
|
|
115
|
+
- [core] Unify tests (#4368) @flaviendelangle
|
|
116
|
+
- [core] Enforce `noImplicitAny` in `docs` folder (#4412) @cherniavskii
|
|
117
|
+
|
|
118
|
+
## 5.8.0
|
|
119
|
+
|
|
120
|
+
_Apr 4, 2022_
|
|
121
|
+
|
|
122
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
123
|
+
|
|
124
|
+
- 🚀 Expose new methods to save and restore the grid state (#4028) @flaviendelangle
|
|
125
|
+
|
|
126
|
+
The different methods to save and restore the data-grid state are now [documented](https://mui.com/x/react-data-grid/state/#save-and-restore-the-state).
|
|
127
|
+
|
|
128
|
+
- ⌚️ Move date and time picker components from the lab (#3451) @flaviendelangle
|
|
129
|
+
|
|
130
|
+
Date and time picker components have been moved to the MUI X repository.
|
|
131
|
+
They are now accessible in their own packages: `@mui/x-date-pickers` and `@mui/x-date-pickers-pro`.
|
|
132
|
+
For more information, you can read the [blog article](https://mui.com/blog/lab-date-pickers-to-mui-x/) and the [migration guide](https://mui.com/x/react-date-pickers/migration-lab/).
|
|
133
|
+
|
|
134
|
+
- 📝 Add `onProcessRowUpdateError` prop to simplify error management in edit mode (#4267) @m4theushw
|
|
135
|
+
- ✨ Add generic typing to `GridColDef` and derived interfaces (#4064) @flaviendelangle
|
|
136
|
+
|
|
137
|
+
You can now strongly type all the objects related to the row and the cell values.
|
|
138
|
+
Here is an example, you can find out more in the description of #4064.
|
|
139
|
+
|
|
140
|
+
```tsx
|
|
141
|
+
const rows: Movie[] = [];
|
|
142
|
+
|
|
143
|
+
return (
|
|
144
|
+
<DataGrid
|
|
145
|
+
rows={rows}
|
|
146
|
+
columns={[
|
|
147
|
+
{
|
|
148
|
+
// typeof params.row => Movie (R)
|
|
149
|
+
valueGetter: (params) => params.row.year,
|
|
150
|
+
},
|
|
151
|
+
]}
|
|
152
|
+
/>
|
|
153
|
+
);
|
|
154
|
+
```
|
|
155
|
+
|
|
156
|
+
### `@mui/x-data-grid@v5.8.0` / `@mui/x-data-grid-pro@v5.8.0`
|
|
157
|
+
|
|
158
|
+
#### Changes
|
|
159
|
+
|
|
160
|
+
- [DataGrid] Add `onProcessRowUpdateError` prop (#4267) @m4theushw
|
|
161
|
+
- [DataGrid] Add generic typing to `GridColDef` and derived interfaces (#4064) @flaviendelangle
|
|
162
|
+
- [DataGrid] Add missing classes on `gridClasses` and `gridPanelClasses` (#4273) @flaviendelangle
|
|
163
|
+
- [DataGrid] Add `onPreferencePanelClose`/`onPreferencePanelOpen` props (#4265) @kyeongsoosoo
|
|
164
|
+
- [DataGrid] Add slot for filter icon button (#4276) @m4theushw
|
|
165
|
+
- [DataGrid] Add the documentation of the portable state (#4028) @flaviendelangle
|
|
166
|
+
- [DataGrid] Allow to use keyboard navigation even with no rows (#4302) @alexfauquette
|
|
167
|
+
- [DataGrid] Fix inconsistency in the border of the last column (#4224) @alexfauquette
|
|
168
|
+
- [DataGrid] Fix overlay blocking scrollbar when rows is empty (#4281) @m4theushw
|
|
169
|
+
- [DataGrid] Improve selection with keyboard (#4157) @flaviendelangle
|
|
170
|
+
- [DataGrid] Scroll to the top of the page when changing page (#4272) @flaviendelangle
|
|
171
|
+
- [l10n] Improve Danish (da-DK) locale (#4271) @simplenotezy
|
|
172
|
+
|
|
173
|
+
### `@mui/x-date-pickers@v5.0.0-alpha.0` / `@mui/x-date-pickers-pro@v5.0.0-alpha.0`
|
|
174
|
+
|
|
175
|
+
#### Changes
|
|
176
|
+
|
|
177
|
+
- [DatePicker] Import date-picker components from the lab (#3451) @flaviendelangle
|
|
178
|
+
|
|
179
|
+
### Docs
|
|
180
|
+
|
|
181
|
+
- [docs] Create an home page for "Advanced Components" (#4298) @flaviendelangle
|
|
182
|
+
- [docs] Update installation docs (#4259) @cherniavskii
|
|
183
|
+
- [docs] New page for the migration of date and time pickers from the lab (#4327) @flaviendelangle
|
|
184
|
+
|
|
185
|
+
### Core
|
|
186
|
+
|
|
187
|
+
- [core] Fix typo in issue template @oliviertassinari
|
|
188
|
+
- [core] Move last variables outside of the models folder (#4303) @flaviendelangle
|
|
189
|
+
- [core] Remove dead code (#4283) @oliviertassinari
|
|
190
|
+
- [core] Rename the "pre-processing" concept "pipe-processing" (#4261) @flaviendelangle
|
|
191
|
+
- [core] Reuse previous state when updating the columns prop (#4229) @m4theushw
|
|
192
|
+
- [core] Fix Argos flakyness for pickers tests (#4312) @flaviendelangle
|
|
193
|
+
|
|
6
194
|
## 5.7.0
|
|
7
195
|
|
|
8
196
|
_Mar 24, 2022_
|
|
@@ -20,7 +208,7 @@ We'd like to offer a big thanks to the 12 contributors who made this release pos
|
|
|
20
208
|
⚠ Users relying on the old API (legacy) don't need to worry as it will continue to work until v6.
|
|
21
209
|
|
|
22
210
|
The new API also features brand new documentation with more useful demos and guides explaining how to create custom edit components.
|
|
23
|
-
Visit the new [documentation](https://mui.com/
|
|
211
|
+
Visit the new [documentation](https://mui.com/x/react-data-grid/editing/) for more information.
|
|
24
212
|
|
|
25
213
|
- 📚 Documentation improvements
|
|
26
214
|
- 🐞 Bug and typo fixes
|
|
@@ -85,7 +273,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
|
|
|
85
273
|
<DataGrid getRowSpacing={() => ({ top: 10, bottom: 10 })} />
|
|
86
274
|
```
|
|
87
275
|
|
|
88
|
-
Check the [documentation](https://mui.com/
|
|
276
|
+
Check the [documentation](https://mui.com/x/react-data-grid/rows/#row-spacing) for more information.
|
|
89
277
|
|
|
90
278
|
### `@mui/x-data-grid@v5.6.1` / `@mui/x-data-grid-pro@v5.6.1`
|
|
91
279
|
|
|
@@ -152,7 +340,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
|
|
|
152
340
|
-const filterableFields = filterableGridColumnsIdsSelector(apiRef);
|
|
153
341
|
+const lookup = gridFilterableColumnLookupSelector(apiRef);
|
|
154
342
|
+const filterableFields = gridColumnFieldsSelector(apiRef).filter(field => lookup[field]);
|
|
155
|
-
|
|
343
|
+
|
|
156
344
|
-const visibleColumnsNumber = visibleGridColumnsLengthSelector(apiRef);
|
|
157
345
|
+const visibleColumnsNumber = gridVisibleColumnDefinitionsSelector(apiRef).length;
|
|
158
346
|
|
|
@@ -248,7 +436,7 @@ A big thanks to the 6 contributors who made this release possible. Here are some
|
|
|
248
436
|
/>
|
|
249
437
|
```
|
|
250
438
|
|
|
251
|
-
Check the [documentation](https://mui.com/
|
|
439
|
+
Check the [documentation](https://mui.com/x/react-data-grid/filtering/#customize-the-filter-panel-content) to see all available props.
|
|
252
440
|
|
|
253
441
|
- 📚 Documentation improvements
|
|
254
442
|
- 🐞 Bugfixes
|
|
@@ -287,7 +475,7 @@ _Feb 3, 2022_
|
|
|
287
475
|
|
|
288
476
|
A big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
289
477
|
|
|
290
|
-
- 🎁 Add support for [master/detail](https://mui.com/
|
|
478
|
+
- 🎁 Add support for [master/detail](https://mui.com/x/react-data-grid/group-pivot/#master-detail) (#3387) @m4theushw
|
|
291
479
|
|
|
292
480
|
<img src="https://user-images.githubusercontent.com/42154031/152379354-47120aac-2b37-4a90-b311-64b4522283b9.gif" width="814">
|
|
293
481
|
|
|
@@ -339,7 +527,7 @@ _Jan 28, 2022_
|
|
|
339
527
|
|
|
340
528
|
A big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
341
529
|
|
|
342
|
-
- 🚣 Introduce [variable row height](https://mui.com/
|
|
530
|
+
- 🚣 Introduce [variable row height](https://mui.com/x/react-data-grid/rows/#variable-row-height) (#438) @DanailH
|
|
343
531
|
|
|
344
532
|
Allows for setting a row-specific height.
|
|
345
533
|
By default, all rows have the same height, but now you can set the height on a per-row basis.
|
|
@@ -348,7 +536,7 @@ A big thanks to the 9 contributors who made this release possible. Here are some
|
|
|
348
536
|
<DataGrid getRowHeight={({ id }: GridRowHeightParams) => (id % 2 === 0 ? 100 : null)} />
|
|
349
537
|
```
|
|
350
538
|
|
|
351
|
-
- 🎁 Add new CSV export option: [`getRowsToExport`](https://mui.com/
|
|
539
|
+
- 🎁 Add new CSV export option: [`getRowsToExport`](https://mui.com/x/react-data-grid/export/#custom-exported-content) (#3687) @flaviendelangle
|
|
352
540
|
- 📚 Documentation improvements
|
|
353
541
|
- 🐞 Bugfixes
|
|
354
542
|
|
|
@@ -430,7 +618,7 @@ A big thanks to the 9 contributors who made this release possible. Here are some
|
|
|
430
618
|
/>
|
|
431
619
|
```
|
|
432
620
|
|
|
433
|
-
For more details see the [introduction blog post](https://mui.com/blog/introducing-the-row-grouping-feature/) and [documentation](https://mui.com/
|
|
621
|
+
For more details see the [introduction blog post](https://mui.com/blog/introducing-the-row-grouping-feature/) and [documentation](https://mui.com/x/react-data-grid/group-pivot/#row-grouping).
|
|
434
622
|
|
|
435
623
|
- ⚡ Add `is any of` filter operator (#2874) @alexfauquette
|
|
436
624
|
|
|
@@ -453,7 +641,7 @@ A big thanks to the 9 contributors who made this release possible. Here are some
|
|
|
453
641
|
|
|
454
642
|
To make the grid more flexible we added component slots for base `@mui/material` components that we use. Those component slots are prefixed with `Base` to differentiate them from the other grid specific components
|
|
455
643
|
|
|
456
|
-
For more information check the documentation [documentation](https://mui.com/api/data-grid/data-grid/#slots).
|
|
644
|
+
For more information check the documentation [documentation](https://mui.com/x/api/data-grid/data-grid/#slots).
|
|
457
645
|
|
|
458
646
|
- 🔥 Allow to pass `csvOptions` and `printOptions` to `toolbar` component prop (#3623) @flaviendelangle
|
|
459
647
|
|
|
@@ -484,7 +672,7 @@ A big thanks to the 9 contributors who made this release possible. Here are some
|
|
|
484
672
|
/>
|
|
485
673
|
```
|
|
486
674
|
|
|
487
|
-
See the [documentation](https://mui.com/
|
|
675
|
+
See the [documentation](https://mui.com/x/react-data-grid/columns/#column-visibility) for more details.
|
|
488
676
|
|
|
489
677
|
The `hide` property from `GridColDef` still works but has been deprecated.
|
|
490
678
|
|
|
@@ -532,7 +720,7 @@ A big thanks to the 9 contributors who made this release possible. Here are some
|
|
|
532
720
|
- [core] Add language to markdown code block (#3651) @m4theushw
|
|
533
721
|
- [core] Add typing to the pre-processors methods (#3595) @flaviendelangle
|
|
534
722
|
- [core] Don't bump peer dependency ranges on dependency updates (#3646) @oliviertassinari
|
|
535
|
-
- [core] Rename more instances of Material
|
|
723
|
+
- [core] Rename more instances of Material UI to MUI (#3525) @oliviertassinari
|
|
536
724
|
- [core] Renovate should not try to update node (#3645) @oliviertassinari
|
|
537
725
|
- [core] Report performance test results on each PR (#3551) @m4theushw
|
|
538
726
|
- [core] Update monorepo (#3653) @m4theushw
|
|
@@ -640,7 +828,7 @@ A big thanks to the 5 contributors who made this release possible. Here are some
|
|
|
640
828
|
|
|
641
829
|
### `@mui/x-data-grid@v5.2.0` / `@mui/x-data-grid-pro@v5.2.0`
|
|
642
830
|
|
|
643
|
-
- 🚀 Introduce the [column pinning](https://mui.com/
|
|
831
|
+
- 🚀 Introduce the [column pinning](https://mui.com/x/react-data-grid/columns/#column-pinning) feature (#2946) @m4theushw
|
|
644
832
|
|
|
645
833
|
<img src="https://user-images.githubusercontent.com/42154031/145425635-b6314fbe-2f1e-4b73-908f-33ee1fda20c7.gif" width="964" height="657">
|
|
646
834
|
|
|
@@ -720,7 +908,7 @@ A big thanks to the 11 contributors who made this release possible. Here are som
|
|
|
720
908
|
|
|
721
909
|
### `@mui/x-data-grid@v5.1.0` / `@mui/x-data-grid-pro@v5.1.0`
|
|
722
910
|
|
|
723
|
-
- 🚀 Introduce the [tree data](https://mui.com/
|
|
911
|
+
- 🚀 Introduce the [tree data](https://mui.com/x/react-data-grid/group-pivot/#tree-data) feature (#2725) @flaviendelangle
|
|
724
912
|
|
|
725
913
|
<img src="https://user-images.githubusercontent.com/42154031/144259216-fc4f90ac-4d8b-4253-bc95-009204349a4c.gif" width="854" height="453" />
|
|
726
914
|
|
|
@@ -865,8 +1053,8 @@ _Nov 23, 2021_
|
|
|
865
1053
|
|
|
866
1054
|
🎉 We are excited to introduce [MUI X v5.0.0](https://mui.com/blog/mui-x-v5/) 🎉!
|
|
867
1055
|
|
|
868
|
-
If you want to migrate the DataGrid or DataGridPro from v4 to v5, take a look at the [migration guide](https://mui.com/
|
|
869
|
-
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/
|
|
1056
|
+
If you want to migrate the DataGrid or DataGridPro from v4 to v5, take a look at the [migration guide](https://mui.com/x/react-data-grid/migration-v4/).
|
|
1057
|
+
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/react-data-grid/migration-v4/#using-mui-x-v5-with-mui-core-v4).
|
|
870
1058
|
|
|
871
1059
|
A big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
872
1060
|
|
|
@@ -1267,7 +1455,7 @@ A big thanks to the 7 contributors who made this release possible. Here are some
|
|
|
1267
1455
|
|
|
1268
1456
|
- 🎁 Add the ability to print the grid (#2519) @DanailH
|
|
1269
1457
|
|
|
1270
|
-
This new feature adds a button to the toolbar to generate a printer-friendly layout. Check the [documentation](https://mui.com/
|
|
1458
|
+
This new feature adds a button to the toolbar to generate a printer-friendly layout. Check the [documentation](https://mui.com/x/react-data-grid/export/#print) about it.
|
|
1271
1459
|
|
|
1272
1460
|
- 💡 Enhance internal code structure
|
|
1273
1461
|
- ✨ New slots for `row` and `cell` (#2753) @m4theushw
|
|
@@ -1292,7 +1480,7 @@ A big thanks to the 7 contributors who made this release possible. Here are some
|
|
|
1292
1480
|
- `onRowEnter`
|
|
1293
1481
|
- `onRowLeave`
|
|
1294
1482
|
|
|
1295
|
-
For more information, check [this page](https://mui.com/
|
|
1483
|
+
For more information, check [this page](https://mui.com/x/react-data-grid/components/#row). Example:
|
|
1296
1484
|
|
|
1297
1485
|
```diff
|
|
1298
1486
|
-<DataGrid onRowOver={handleRowOver} />;
|
|
@@ -1594,7 +1782,7 @@ A big thanks to the 9 contributors who made this release possible. Here are some
|
|
|
1594
1782
|
- 📚 Migrate to the new documentation infrastructure and design (#2441) (@DanailH, @m4theushw)
|
|
1595
1783
|
- 🎁 Add `actions` column type (#2385) @m4theushw
|
|
1596
1784
|
|
|
1597
|
-
See the documentation for [more details](https://mui.com/
|
|
1785
|
+
See the documentation for [more details](https://mui.com/x/react-data-grid/columns/#column-types).
|
|
1598
1786
|
|
|
1599
1787
|
- 👁 Allow to disable virtualization with the `disableVirtualization` prop (#2326) @m4theushw
|
|
1600
1788
|
- 🚀 Introduce the new `isRowSelected` api method (#2523) @flaviendelangle
|
|
@@ -1712,14 +1900,14 @@ _Aug 27, 2021_
|
|
|
1712
1900
|
|
|
1713
1901
|
🎉 This is the first stable release of the data grid component 🎉!
|
|
1714
1902
|
|
|
1715
|
-
We have been iterating on the component for [18 months](https://github.com/mui/mui-x/commit/705cb0f387b5f3aa056bf40c4183a2342b317447). With the introduction of the [row edit](https://mui.com/
|
|
1903
|
+
We have been iterating on the component for [18 months](https://github.com/mui/mui-x/commit/705cb0f387b5f3aa056bf40c4183a2342b317447). With the introduction of the [row edit](https://mui.com/x/react-data-grid/editing/#row-editing) feature, many bug fixes, and polishing of the documentation, we believe the component is ready for a stable release.
|
|
1716
1904
|
|
|
1717
1905
|
The MUI X v4.0.0 release supports [MUI Core](https://github.com/mui/material-ui) v4 and has partial support for v5-beta. With the soon-to-be-released v5 version of the core components, we are moving ongoing work to the v5 release line (Core and X).
|
|
1718
1906
|
The support for existing projects on MUI v4 won't be a priority going forward. We encourage you to migrate to MUI Core v5-beta and soon MUI X v5-beta. We don't patch, fix, or alter older versions. Using MUI Core v4 with MUI X v5 might lead to extra bundle size and configuration.
|
|
1719
1907
|
|
|
1720
1908
|
A big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
|
|
1721
1909
|
|
|
1722
|
-
- 🚀 Introduce the [row editing](https://mui.com/
|
|
1910
|
+
- 🚀 Introduce the [row editing](https://mui.com/x/react-data-grid/editing/#row-editing) feature (#2098) @m4theushw
|
|
1723
1911
|
|
|
1724
1912
|
<img src="https://user-images.githubusercontent.com/3165635/130665023-3c0730ab-502e-4da1-8bc1-d572427ad2d6.gif" width="851" height="382" />
|
|
1725
1913
|
|
|
@@ -1730,7 +1918,7 @@ A big thanks to the 6 contributors who made this release possible. Here are some
|
|
|
1730
1918
|
|
|
1731
1919
|
- ✨ Rename the `@material-ui` npm scope to `@mui` (#2341) @oliviertassinari
|
|
1732
1920
|
|
|
1733
|
-
This is part of the ongoing rebranding of the project and company. Material
|
|
1921
|
+
This is part of the ongoing rebranding of the project and company. Material UI is our current official name, however, we are going to change it. It's too long to write, read, and pronounce; and it is too closely associated with Material Design. In the near future, the whole project/company is moving to MUI and https://mui.com/.
|
|
1734
1922
|
|
|
1735
1923
|
- 💡 The `api` property was removed from the callback params. To access the API, use the `DataGridPro` (#2312) @DanailH
|
|
1736
1924
|
|
|
@@ -1888,7 +2076,7 @@ Big thanks to the 6 contributors who made this release possible. Here are some h
|
|
|
1888
2076
|
```
|
|
1889
2077
|
|
|
1890
2078
|
- [XGrid] The `setEditCellProps` API call is not available anymore.
|
|
1891
|
-
Use the [controlled editing](https://mui.com/
|
|
2079
|
+
Use the [controlled editing](https://mui.com/x/react-data-grid/editing/#controlled-editing) or `setEditRowsModel`.
|
|
1892
2080
|
|
|
1893
2081
|
```diff
|
|
1894
2082
|
-apiRef.current.setEditCellProps({ id, field, props: { ...props, error: true } });
|
|
@@ -1974,7 +2162,7 @@ Big thanks to the 8 contributors who made this release possible. Here are some h
|
|
|
1974
2162
|
|
|
1975
2163
|
- [DataGrid] Improve controllable pagination (#2099) @flaviendelangle
|
|
1976
2164
|
|
|
1977
|
-
- The `pageSize` is now a controlled prop. If you set a value, you also need to handle updates with onPageSizeChange. See [the documentation](https://mui.com/
|
|
2165
|
+
- The `pageSize` is now a controlled prop. If you set a value, you also need to handle updates with onPageSizeChange. See [the documentation](https://mui.com/x/react-data-grid/pagination/#page-size).
|
|
1978
2166
|
- Change the controllable API signature:
|
|
1979
2167
|
|
|
1980
2168
|
```diff
|
|
@@ -2220,7 +2408,7 @@ Big thanks to the 6 contributors who made this release possible. Here are some h
|
|
|
2220
2408
|
- 🐛 We have fixed the `Select all` checkbox. When triggered, it should only select the filtered rows (#1879) @ZeeshanTamboli
|
|
2221
2409
|
- ⚡️ We have added a new `singleSelect` column type (#1956) @DanailH
|
|
2222
2410
|
|
|
2223
|
-
Using the column `type: 'singleSelect'` defaults to `Select` component when the cell is in `edit` mode. You can find the documentation [following this link](https://mui.com/
|
|
2411
|
+
Using the column `type: 'singleSelect'` defaults to `Select` component when the cell is in `edit` mode. You can find the documentation [following this link](https://mui.com/x/react-data-grid/columns/#column-types).
|
|
2224
2412
|
|
|
2225
2413
|
```jsx
|
|
2226
2414
|
<DataGrid
|
|
@@ -2306,7 +2494,7 @@ Big thanks to the 10 contributors who made this release possible. Here are some
|
|
|
2306
2494
|
- ⚡️ Components that use portals, like `Select` and `Autocomplete`, can now be used in the cell editing (#1772) @m4theushw
|
|
2307
2495
|
- 📃 Apply the `valueFormatter` to the CSV exporting (#1922) @DanailH
|
|
2308
2496
|
- 💅 Rename CSS classes to match the convention of the core components (#1872) @DanailH
|
|
2309
|
-
- 🌎 Isolate translations from
|
|
2497
|
+
- 🌎 Isolate translations from MUI Core and MUI X (#1913) @DanailH
|
|
2310
2498
|
- 🚀 Improve performance when finding column indexes and updating rows (#1903, #1923) @Janpot @N2D4
|
|
2311
2499
|
- 🐞 Bugfixes
|
|
2312
2500
|
|
|
@@ -2315,7 +2503,7 @@ Big thanks to the 10 contributors who made this release possible. Here are some
|
|
|
2315
2503
|
#### Breaking changes
|
|
2316
2504
|
|
|
2317
2505
|
- [DataGrid] The `onEditCellChangeCommitted` prop won't be called with an event when committing changes by clicking outside the cell (#1910) @m4theushw
|
|
2318
|
-
- [DataGrid] Translation for
|
|
2506
|
+
- [DataGrid] Translation for MUI Core components are no longer included in the MUI X translation (#1913) @DanailH
|
|
2319
2507
|
|
|
2320
2508
|
```diff
|
|
2321
2509
|
import { createMuiTheme, ThemeProvider } from '@material-ui/core/styles';
|
|
@@ -2390,7 +2578,7 @@ Big thanks to the 10 contributors who made this release possible. Here are some
|
|
|
2390
2578
|
- [DataGrid] Improve Brazilian Portuguese (pt-BR) locale (#1861) @aline-matos
|
|
2391
2579
|
- [DataGrid] Improve type of the blur event (#1918) @oliviertassinari
|
|
2392
2580
|
- [DataGrid] Improve updateRows performance (#1923) @N2D4
|
|
2393
|
-
- [DataGrid] Include
|
|
2581
|
+
- [DataGrid] Include MUI Core component localizations in `localeText` (#1913) @DanailH
|
|
2394
2582
|
- [DataGrid] Make the CSV export respect the `valueFormatter` (#1922) @DanailH
|
|
2395
2583
|
- [DataGrid] Remove `disableClickEventBubbling` (#1910) @m4theushw
|
|
2396
2584
|
- [DataGrid] Rename CSS classes according to new convention (#1872) @DanailH
|
|
@@ -2418,7 +2606,7 @@ Big thanks to the 6 contributors who made this release possible. Here are some h
|
|
|
2418
2606
|
- 💅 Allow to customize GridToolbarExport's CSV export (#1695) @michallukowski
|
|
2419
2607
|
- 🐛 Allow to deselect rows with <kbd>CTRL</kbd> + click (#1813) @ZeeshanTamboli
|
|
2420
2608
|
- ⚡️ Refactor scroll size detector (#1703) @dtassone
|
|
2421
|
-
- 📖 Add [documentation](https://mui.com/api/data-grid/) for interfaces and events (#1529) @m4theushw
|
|
2609
|
+
- 📖 Add [documentation](https://mui.com/x/api/data-grid/) for interfaces and events (#1529) @m4theushw
|
|
2422
2610
|
- 🐞 Bugfixes
|
|
2423
2611
|
|
|
2424
2612
|
### @material-ui/x-grid@v4.0.0-alpha.31 / @material-ui/data-grid@v4.0.0-alpha.31
|
|
@@ -2576,7 +2764,7 @@ Big thanks to the 8 contributors who made this release possible. Here are some h
|
|
|
2576
2764
|
|
|
2577
2765
|
- [core] Batch updates of storybook (#1751) @oliviertassinari
|
|
2578
2766
|
- [core] Help support different documents (#1754) @oliviertassinari
|
|
2579
|
-
- [core] Upgrade
|
|
2767
|
+
- [core] Upgrade MUI Core v5 to latest version (#1763) @ZeeshanTamboli
|
|
2580
2768
|
- [test] Reduce flakiness (#1753) @oliviertassinari
|
|
2581
2769
|
- [test] Remove skip on Edge (#1708) @m4theushw
|
|
2582
2770
|
|
|
@@ -2590,7 +2778,7 @@ Big thanks to the 11 contributors who made this release possible. Here are some
|
|
|
2590
2778
|
- 💅 Add `columnHeader`, `row` and `cell` to the `classes` prop (#1660) @DanailH
|
|
2591
2779
|
- ✅ Add the `isRowSelectable` prop to disable selection on certain rows (#1659) @m4theushw
|
|
2592
2780
|
|
|
2593
|
-
See the documentation for [more details](https://mui.com/
|
|
2781
|
+
See the documentation for [more details](https://mui.com/x/react-data-grid/selection/#disable-selection-on-certain-rows).
|
|
2594
2782
|
|
|
2595
2783
|
- ⚡️ Add new icon slot to be displayed when the column is unsorted (#1415) @m4theushw
|
|
2596
2784
|
- ⚙ Improve consistency of the API to prepare for the first beta release
|
|
@@ -2662,7 +2850,7 @@ Big thanks to the 11 contributors who made this release possible. Here are some
|
|
|
2662
2850
|
- [DataGrid] Add `isRowSelectable` prop (#1659) @m4theushw
|
|
2663
2851
|
- [DataGrid] Add sort icon for when column is unsorted (#1415) @m4theushw
|
|
2664
2852
|
- [DataGrid] Fix `id` and `aria-labelledby` attributes on the column menu (#1460) @m4theushw
|
|
2665
|
-
- [DataGrid] Fix broken checkbox in Material
|
|
2853
|
+
- [DataGrid] Fix broken checkbox in Material UI v5 (#1587) @ZeeshanTamboli
|
|
2666
2854
|
- [DataGrid] Fix CSS classes prefix (#1693) @m4theushw
|
|
2667
2855
|
- [DataGrid] Fix German (de-DE) locale (#1624) @klinge27
|
|
2668
2856
|
- [DataGrid] Fix filter with object as value and value getter (#1665) @dtassone
|
|
@@ -2838,7 +3026,7 @@ Big thanks to the 7 contributors who made this release possible. Here are some h
|
|
|
2838
3026
|
|
|
2839
3027
|
- 💄 Release the cell editing feature (#1287) @dtassone
|
|
2840
3028
|
|
|
2841
|
-
This is the first release of the Cell editing feature. You can find the documentation [following this link](https://mui.com/
|
|
3029
|
+
This is the first release of the Cell editing feature. You can find the documentation [following this link](https://mui.com/x/react-data-grid/editing/#cell-editing). We have spent the last three months working on it.
|
|
2842
3030
|
|
|
2843
3031
|

|
|
2844
3032
|
|
|
@@ -2965,7 +3153,7 @@ Big thanks to the 8 contributors who made this release possible. Here are some h
|
|
|
2965
3153
|
- [DataGrid] Rename `useGridBaseComponentProps` hook to `useGridSlotComponentProps` (#1252) @DanailH
|
|
2966
3154
|
- [DataGrid] Rename modules (#1292) @DanailH
|
|
2967
3155
|
- [DataGrid] Rename all events related to column reordering, e.g. `GRID_COL_REORDER_START` -> `GRID_COLUMN_REORDER_START` (#1299) @m4theushw
|
|
2968
|
-
- [DataGrid] Methods `onColItemDragStart`, `onColHeaderDragOver`, `onColItemDragOver`, `onColItemDragEnter` removed from the grid API. Prefer listening to [column reordering events](https://mui.com/
|
|
3156
|
+
- [DataGrid] Methods `onColItemDragStart`, `onColHeaderDragOver`, `onColItemDragOver`, `onColItemDragEnter` removed from the grid API. Prefer listening to [column reordering events](https://mui.com/x/react-data-grid/columns/#column-reorder) (#1299) @m4theushw
|
|
2969
3157
|
- [DataGrid] Calling `apiRef.current.getColumnHeaderParams` returns a `GridColumnHeaderParams` instead of `GridColParams` (#1299) @m4theushw
|
|
2970
3158
|
- [DataGrid] Events that follow the pattern `GRID_COLUMN_HEADER_xxx` will be called with a `GridColumnHeaderParams` instead of `GridColParams` (#1299) @m4theushw
|
|
2971
3159
|
- [DataGrid] The `renderHeader` will be called with a `GridColumnHeaderParams` instead of `GridColParams` (#1299) @m4theushw
|
|
@@ -2991,7 +3179,7 @@ Big thanks to the 7 contributors who made this release possible. Here are some h
|
|
|
2991
3179
|
- 🎁 Add `onRowsScrollEnd` to support infinite loading (#1199) @DanailH
|
|
2992
3180
|
This is an XGrid feature. Provides the ability to tap into the `onRowsScrollEnd` which is called when the scroll reaches the bottom of the grid viewport allowing developers to load additional data. It can be used with a combination of `scrollBottomThreshold` to control the area in which the `onRowsScrollEnd` is called.
|
|
2993
3181
|
|
|
2994
|
-
See the documentation for [more details](https://mui.com/
|
|
3182
|
+
See the documentation for [more details](https://mui.com/x/react-data-grid/rows/#infinite-loading).
|
|
2995
3183
|
|
|
2996
3184
|
- 🕹 Provide the ability to sort by multiple columns using Shift+click (#1203) @dtassone
|
|
2997
3185
|
- 🇵🇱 Added pl-PL locale (#1117) @LarsKumbier
|
|
@@ -3063,7 +3251,7 @@ Big thanks to the 7 contributors who made this release possible. Here are some h
|
|
|
3063
3251
|
- 🎁 Add support for CSV export (#1030) @DanailH.
|
|
3064
3252
|
This is the first iteration of the feature. You can either render the `GridToolbarExport` component in the toolbar or use the apiRef `exportDataAsCsv`/`getDataAsCsv` methods.
|
|
3065
3253
|
|
|
3066
|
-
See the documentation for [more details](https://mui.com/
|
|
3254
|
+
See the documentation for [more details](https://mui.com/x/react-data-grid/export/#csv-export).
|
|
3067
3255
|
|
|
3068
3256
|
- 🌏 Improve the support for custom locales (#1096, #1079, #1109, #1077)
|
|
3069
3257
|
- ♿️ Fix a couple of accessibility issues with the popups (#1105, #1102)
|
|
@@ -3072,8 +3260,8 @@ Big thanks to the 7 contributors who made this release possible. Here are some h
|
|
|
3072
3260
|
|
|
3073
3261
|
#### Breaking changes
|
|
3074
3262
|
|
|
3075
|
-
- [DataGrid] Prefix all public API to fit into the global Material
|
|
3076
|
-
This change gets the data grid one step closer to a stable release. It allows the data grid to fit into the global namespace of Material
|
|
3263
|
+
- [DataGrid] Prefix all public API to fit into the global Material UI namespace (#1069) @DanailH
|
|
3264
|
+
This change gets the data grid one step closer to a stable release. It allows the data grid to fit into the global namespace of Material UI. All the exported modules should have a unique name. It allows the search features, in Google, in the docs, and in the codebase to work effectively and efficiently.
|
|
3077
3265
|
|
|
3078
3266
|
For the mirgration, prefixing a broken import with "grid" is often enough. In the case it's not working, head to the pull request's description. It [details all the changes](https://github.com/mui/mui-x/pull/1069).
|
|
3079
3267
|
|
|
@@ -3114,9 +3302,9 @@ _Feb 17, 2021_
|
|
|
3114
3302
|
Big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
|
|
3115
3303
|
|
|
3116
3304
|
- 📍 Add support for default locales (#983) @DanailH
|
|
3117
|
-
We have built the infrastructure to support around 100 [default locales](https://mui.com/
|
|
3305
|
+
We have built the infrastructure to support around 100 [default locales](https://mui.com/x/react-data-grid/localization/#supported-locales). If you have localized the data grid in your application. Please do consider contributing new translations back to Material UI by opening a pull request.
|
|
3118
3306
|
- 🎁 Add new `selectionModel` prop (#986) @dtassone
|
|
3119
|
-
The prop can be used to control the selected rows in the data grid. [See the docs](https://mui.com/
|
|
3307
|
+
The prop can be used to control the selected rows in the data grid. [See the docs](https://mui.com/x/react-data-grid/selection/#controlled-selection).
|
|
3120
3308
|
- 💅 Add support for default props from theme (#1019) @DanailH
|
|
3121
3309
|
- 🙌 Fix scrollbar size on windows (#1061) @dtassone
|
|
3122
3310
|
- 🐛 Polish existing features, fix 9 issues.
|
|
@@ -3155,7 +3343,7 @@ Big thanks to the 4 contributors who made this release possible. Here are some h
|
|
|
3155
3343
|
```
|
|
3156
3344
|
|
|
3157
3345
|
- [DataGrid] Change page index base, from 1 to 0. (#1021) @dtassone
|
|
3158
|
-
This change is done for consistency with `TablePagination` and JavaScript arrays that are 0-based. Material
|
|
3346
|
+
This change is done for consistency with `TablePagination` and JavaScript arrays that are 0-based. Material UI still uses a 1-base page for the `Pagination` component that matches the URL's query.
|
|
3159
3347
|
|
|
3160
3348
|
```diff
|
|
3161
3349
|
-const [page, setPage] = React.useState(1);
|
|
@@ -3245,9 +3433,9 @@ _Jan 26, 2021_
|
|
|
3245
3433
|
|
|
3246
3434
|
Big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
|
|
3247
3435
|
|
|
3248
|
-
- 🎁 Add support for Material
|
|
3249
|
-
The data grid supports Material
|
|
3250
|
-
- 💅 Update the customization API to be closer to Material
|
|
3436
|
+
- 🎁 Add support for Material UI v5-alpha (#855) @DanailH.
|
|
3437
|
+
The data grid supports Material UI v4 and v5. We aim to retain the support for v4 as long as v5 hasn't reached the beta phase.
|
|
3438
|
+
- 💅 Update the customization API to be closer to Material UI v5.
|
|
3251
3439
|
The data grid accepts two props: `components` and `componentsProps`.
|
|
3252
3440
|
The first prop allows to swapping specific components used in slots the grid, like the checkboxes.
|
|
3253
3441
|
The second one allows providing extra props to each slot. It avoids the need for using the React context to access information from outside the data grid.
|
|
@@ -3260,9 +3448,9 @@ Big thanks to the 5 contributors who made this release possible. Here are some h
|
|
|
3260
3448
|
|
|
3261
3449
|
#### Breaking changes
|
|
3262
3450
|
|
|
3263
|
-
- [DataGrid] Implement customization pattern of Material
|
|
3451
|
+
- [DataGrid] Implement customization pattern of Material UI v5 (#851, #879) @dtassone
|
|
3264
3452
|
|
|
3265
|
-
- Capitalize the keys of the `components` prop. This change aims to bring consistency with the customization pattern of Material
|
|
3453
|
+
- Capitalize the keys of the `components` prop. This change aims to bring consistency with the customization pattern of Material UI v5:
|
|
3266
3454
|
|
|
3267
3455
|
```diff
|
|
3268
3456
|
<DataGrid
|
|
@@ -3273,7 +3461,7 @@ Big thanks to the 5 contributors who made this release possible. Here are some h
|
|
|
3273
3461
|
/>
|
|
3274
3462
|
```
|
|
3275
3463
|
|
|
3276
|
-
- 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
|
|
3464
|
+
- 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:
|
|
3277
3465
|
|
|
3278
3466
|
```diff
|
|
3279
3467
|
<DataGrid
|
|
@@ -3309,7 +3497,7 @@ Big thanks to the 5 contributors who made this release possible. Here are some h
|
|
|
3309
3497
|
#### Changes
|
|
3310
3498
|
|
|
3311
3499
|
- [DataGrid] Add customisation on panels (#890) @dtassone
|
|
3312
|
-
- [DataGrid] Add support for Material
|
|
3500
|
+
- [DataGrid] Add support for Material UI v5-alpha (#855) @DanailH
|
|
3313
3501
|
- [DataGrid] Fix footer count not shown on small screen (#899) @mnajdova
|
|
3314
3502
|
- [DataGrid] Fix column selector crash when hiding columns (#875) @DanailH
|
|
3315
3503
|
- [DataGrid] Fix <kbd>Shift</kbd> + <kbd>Space</kbd> keyboard regression to select row (#897) @dtassone
|
|
@@ -3333,7 +3521,7 @@ _Jan 14, 2021_
|
|
|
3333
3521
|
Big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
|
|
3334
3522
|
|
|
3335
3523
|
- 🎛 Add support for Column selector (#837) @DanailH @dtassone.
|
|
3336
|
-
The feature can be triggered from the toolbar or the column menu. Check [the documentation](https://mui.com/
|
|
3524
|
+
The feature can be triggered from the toolbar or the column menu. Check [the documentation](https://mui.com/x/react-data-grid/columns/#column-selector).
|
|
3337
3525
|
|
|
3338
3526
|

|
|
3339
3527
|
|
|
@@ -3388,11 +3576,11 @@ Big thanks to the 5 contributors who made this release possible. Here are some h
|
|
|
3388
3576
|
- 🌎 Add support for internationalization (#718) @DanailH
|
|
3389
3577
|
|
|
3390
3578
|
You can use the `localeText` prop to provide custom wordings in the data grid.
|
|
3391
|
-
Check the documentation for [a demo](https://mui.com/
|
|
3579
|
+
Check the documentation for [a demo](https://mui.com/x/react-data-grid/localization/#translation-keys).
|
|
3392
3580
|
|
|
3393
3581
|
- 📚 Start documenting the filtering feature 🧪 (#754) @dtassone
|
|
3394
3582
|
|
|
3395
|
-
The work in progress filtering feature and documentation can be found following [this link](https://mui.com/
|
|
3583
|
+
The work in progress filtering feature and documentation can be found following [this link](https://mui.com/x/react-data-grid/filtering/). Early feedback are welcome.
|
|
3396
3584
|
|
|
3397
3585
|
### @material-ui/x-grid@v4.0.0-alpha.14 / @material-ui/data-grid@v4.0.0-alpha.14
|
|
3398
3586
|
|
|
@@ -3448,7 +3636,7 @@ _Dec 9, 2020_
|
|
|
3448
3636
|
|
|
3449
3637
|
Big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
|
|
3450
3638
|
|
|
3451
|
-
- 🔍 Add a new data grid [density selector](https://mui.com/
|
|
3639
|
+
- 🔍 Add a new data grid [density selector](https://mui.com/x/react-data-grid/rendering/#density) feature (#606) @DanailH.
|
|
3452
3640
|
- 💄 A first iteration on the data grid's toolbar.
|
|
3453
3641
|
- 🧪 Continue the iteration on the data grid filtering feature, soon to be released @dtassone.
|
|
3454
3642
|
|
|
@@ -3535,7 +3723,7 @@ Big thanks to the 8 contributors who made this release possible. Here are some h
|
|
|
3535
3723
|
- [core] Remove gitHead (#669) @oliviertassinari
|
|
3536
3724
|
- [core] Remove react-select (#658) @dependabot-preview
|
|
3537
3725
|
- [core] Replace Storybook knobs for args (#601) @tooppaaa
|
|
3538
|
-
- [core] Update to Material
|
|
3726
|
+
- [core] Update to Material UI v4.11.1 (#636) @oliviertassinari
|
|
3539
3727
|
|
|
3540
3728
|
## [4.0.0-alpha.10](https://github.com/mui/mui-x/compare/v4.0.0-alpha.9...v4.0.0-alpha.10)
|
|
3541
3729
|
|
|
@@ -3672,7 +3860,7 @@ _Sep 17, 2020_
|
|
|
3672
3860
|
|
|
3673
3861
|
This is the first public alpha release of the component after 6 months of development since the initial commit (March 15th 2020).
|
|
3674
3862
|
`@material-ui/data-grid` is licensed under MIT while `@material-ui/x-grid` is licensed under a commercial license.
|
|
3675
|
-
You can find the documentation at this address: https://mui.com/
|
|
3863
|
+
You can find the documentation at this address: https://mui.com/x/react-data-grid/.
|
|
3676
3864
|
|
|
3677
3865
|
### @material-ui/x-grid@v4.0.0-alpha.1 / @material-ui/data-grid@v4.0.0-alpha.1
|
|
3678
3866
|
|
package/DataGrid/DataGrid.d.ts
CHANGED
|
@@ -1,4 +1,9 @@
|
|
|
1
1
|
import * as React from 'react';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
import { DataGridProps } from '../models/props/DataGridProps';
|
|
3
|
+
import { GridValidRowModel } from '../models/gridRows';
|
|
4
|
+
interface DataGridComponent {
|
|
5
|
+
<R extends GridValidRowModel = any>(props: DataGridProps<R> & React.RefAttributes<HTMLDivElement>): JSX.Element;
|
|
6
|
+
propTypes?: any;
|
|
7
|
+
}
|
|
8
|
+
export declare const DataGrid: DataGridComponent;
|
|
9
|
+
export {};
|