@mui/x-data-grid 6.0.0-alpha.9 → 6.0.0-beta.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 +1034 -0
- package/DataGrid/DataGrid.js +41 -94
- package/DataGrid/index.d.ts +1 -1
- package/DataGrid/index.js +1 -1
- package/DataGrid/useDataGridComponent.d.ts +2 -2
- package/DataGrid/useDataGridComponent.js +2 -2
- package/DataGrid/useDataGridProps.d.ts +0 -1
- package/DataGrid/useDataGridProps.js +8 -13
- package/colDef/gridDateColDef.d.ts +4 -4
- package/colDef/gridDateColDef.js +34 -8
- package/colDef/gridDateOperators.d.ts +1 -1
- package/colDef/gridDateOperators.js +3 -4
- package/colDef/gridSingleSelectColDef.js +36 -3
- package/colDef/gridSingleSelectOperators.d.ts +0 -3
- package/colDef/gridSingleSelectOperators.js +2 -47
- package/colDef/gridStringOperators.d.ts +1 -1
- package/colDef/gridStringOperators.js +1 -1
- package/components/GridAutoSizer.d.ts +1 -1
- package/components/GridAutoSizer.js +6 -19
- package/components/GridFooter.js +2 -2
- package/components/GridPagination.js +21 -17
- package/components/GridRow.d.ts +5 -5
- package/components/GridRow.js +14 -17
- package/components/GridScrollArea.js +4 -3
- package/components/base/GridBody.js +9 -20
- package/components/base/GridFooterPlaceholder.js +1 -8
- package/components/base/GridOverlays.js +3 -3
- package/components/base/index.d.ts +0 -2
- package/components/base/index.js +0 -2
- package/components/cell/GridActionsCellItem.d.ts +1 -1
- package/components/cell/GridCell.d.ts +1 -0
- package/components/cell/GridCell.js +13 -10
- package/components/cell/GridEditSingleSelectCell.d.ts +7 -0
- package/components/cell/GridEditSingleSelectCell.js +24 -37
- package/components/cell/GridSkeletonCell.js +1 -1
- package/components/columnHeaders/ColumnHeaderMenuIcon.d.ts +1 -1
- package/components/columnHeaders/ColumnHeaderMenuIcon.js +3 -3
- package/components/columnHeaders/GridColumnGroupHeader.d.ts +0 -1
- package/components/columnHeaders/GridColumnGroupHeader.js +6 -19
- package/components/columnHeaders/GridColumnHeaderItem.d.ts +1 -3
- package/components/columnHeaders/GridColumnHeaderItem.js +30 -43
- package/components/columnHeaders/GridColumnHeaderSeparator.js +1 -1
- package/components/columnHeaders/GridColumnHeaders.js +5 -9
- package/components/columnHeaders/GridGenericColumnHeaderItem.d.ts +0 -1
- package/components/columnHeaders/GridGenericColumnHeaderItem.js +5 -6
- package/components/columnHeaders/GridIconButtonContainer.d.ts +1 -1
- package/components/columnSelection/GridHeaderCheckbox.d.ts +1 -1
- package/components/columnSelection/GridHeaderCheckbox.js +2 -2
- package/components/containers/GridFooterContainer.d.ts +1 -1
- package/components/containers/GridFooterContainer.js +4 -8
- package/components/containers/GridOverlay.d.ts +1 -1
- package/components/containers/GridRoot.js +4 -2
- package/components/containers/GridRootStyles.d.ts +2 -1
- package/components/containers/GridRootStyles.js +58 -10
- package/components/containers/GridToolbarContainer.d.ts +1 -1
- package/components/icons/index.d.ts +9 -0
- package/components/icons/index.js +12 -1
- package/components/menu/GridMenu.d.ts +1 -1
- package/components/menu/GridMenu.js +1 -9
- package/components/menu/columnMenu/GridColumnHeaderMenu.js +3 -3
- package/components/menu/columnMenu/GridColumnMenu.d.ts +22 -2
- package/components/menu/columnMenu/GridColumnMenu.js +57 -35
- package/components/menu/columnMenu/GridColumnMenuContainer.d.ts +2 -2
- package/components/menu/columnMenu/GridColumnMenuContainer.js +9 -5
- package/components/menu/columnMenu/{GridFilterItemProps.d.ts → GridColumnMenuItemProps.d.ts} +3 -2
- package/components/menu/columnMenu/{GridFilterItemProps.js → GridColumnMenuItemProps.js} +0 -0
- package/components/menu/columnMenu/GridColumnMenuProps.d.ts +7 -2
- package/components/menu/columnMenu/index.d.ts +4 -7
- package/components/menu/columnMenu/index.js +7 -7
- package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.d.ts +7 -0
- package/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js +21 -0
- package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.d.ts +7 -0
- package/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +43 -0
- package/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.d.ts +7 -0
- package/{modern/components/menu/columnMenu/HideGridColMenuItem.js → components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js} +22 -20
- package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.d.ts +7 -0
- package/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +43 -0
- package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.d.ts +7 -0
- package/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +74 -0
- package/components/menu/columnMenu/menuItems/index.d.ts +5 -0
- package/components/menu/columnMenu/menuItems/index.js +5 -0
- package/components/panel/GridColumnsPanel.d.ts +4 -2
- package/components/panel/GridColumnsPanel.js +12 -6
- package/components/panel/GridPanel.d.ts +2 -2
- package/components/panel/GridPanel.js +9 -2
- package/components/panel/filterPanel/GridFilterForm.d.ts +7 -7
- package/components/panel/filterPanel/GridFilterForm.js +52 -52
- package/components/panel/filterPanel/GridFilterInputDate.d.ts +1 -1
- package/components/panel/filterPanel/GridFilterInputDate.js +2 -2
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.d.ts +7 -1
- package/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +15 -22
- package/components/panel/filterPanel/GridFilterInputMultipleValue.d.ts +1 -1
- package/components/panel/filterPanel/GridFilterInputMultipleValue.js +2 -3
- package/components/panel/filterPanel/GridFilterInputSingleSelect.d.ts +8 -1
- package/components/panel/filterPanel/GridFilterInputSingleSelect.js +18 -18
- package/components/panel/filterPanel/GridFilterInputValue.d.ts +1 -1
- package/components/panel/filterPanel/GridFilterInputValue.js +8 -58
- package/components/panel/filterPanel/GridFilterInputValueProps.d.ts +1 -1
- package/components/panel/filterPanel/GridFilterPanel.d.ts +2 -2
- package/components/panel/filterPanel/GridFilterPanel.js +18 -18
- package/components/panel/filterPanel/filterPanelUtils.d.ts +2 -0
- package/components/panel/filterPanel/filterPanelUtils.js +5 -1
- package/components/reexportable.d.ts +1 -0
- package/components/reexportable.js +1 -0
- package/components/toolbar/GridToolbarDensitySelector.js +5 -6
- package/components/toolbar/GridToolbarExport.d.ts +2 -2
- package/components/toolbar/GridToolbarFilterButton.d.ts +1 -1
- package/components/toolbar/GridToolbarFilterButton.js +3 -3
- package/components/toolbar/GridToolbarQuickFilter.d.ts +1 -1
- package/components/virtualization/GridVirtualScroller.js +1 -0
- package/constants/defaultGridSlotsComponents.d.ts +0 -3
- package/constants/defaultGridSlotsComponents.js +9 -9
- package/constants/gridClasses.d.ts +34 -5
- package/constants/gridClasses.js +1 -1
- package/constants/index.d.ts +0 -1
- package/constants/index.js +0 -1
- package/constants/localeTextConstants.js +4 -5
- package/context/GridContextProvider.d.ts +1 -1
- package/hooks/core/pipeProcessing/gridPipeProcessingApi.d.ts +21 -6
- package/hooks/core/strategyProcessing/gridStrategyProcessingApi.d.ts +3 -3
- package/hooks/core/useGridApiInitialization.js +4 -12
- package/hooks/core/useGridInitialization.d.ts +1 -1
- package/hooks/core/useGridInitialization.js +0 -2
- package/hooks/features/clipboard/useGridClipboard.js +20 -7
- package/hooks/features/columnGrouping/gridColumnGroupsInterfaces.d.ts +2 -2
- package/hooks/features/columnGrouping/gridColumnGroupsSelector.d.ts +0 -1
- package/hooks/features/columnGrouping/gridColumnGroupsSelector.js +0 -11
- package/hooks/features/columnGrouping/gridColumnGroupsUtils.d.ts +1 -1
- package/hooks/features/columnGrouping/useGridColumnGrouping.js +2 -2
- package/hooks/features/columnHeaders/useGridColumnHeaders.js +18 -20
- package/hooks/features/columnMenu/columnMenuInterfaces.d.ts +47 -0
- package/hooks/features/columnMenu/{columnMenuState.js → columnMenuInterfaces.js} +0 -0
- package/hooks/features/columnMenu/columnMenuSelector.d.ts +1 -1
- package/hooks/features/columnMenu/index.d.ts +1 -1
- package/hooks/features/columnMenu/index.js +1 -1
- package/hooks/features/columnMenu/useGridColumnMenu.js +27 -25
- package/hooks/features/columnMenu/useGridColumnMenuComponents.d.ts +16 -0
- package/hooks/features/columnMenu/useGridColumnMenuComponents.js +63 -0
- package/hooks/features/columns/gridColumnsInterfaces.d.ts +6 -6
- package/hooks/features/columns/gridColumnsSelector.d.ts +5 -5
- package/hooks/features/columns/gridColumnsSelector.js +2 -2
- package/hooks/features/columns/gridColumnsUtils.d.ts +2 -2
- package/hooks/features/columns/gridColumnsUtils.js +8 -13
- package/hooks/features/columns/useGridColumns.d.ts +2 -2
- package/hooks/features/columns/useGridColumns.js +28 -14
- package/hooks/features/density/densitySelector.d.ts +0 -2
- package/hooks/features/density/densitySelector.js +0 -2
- package/hooks/features/density/densityState.d.ts +0 -2
- package/hooks/features/density/useGridDensity.d.ts +2 -2
- package/hooks/features/density/useGridDensity.js +16 -33
- package/hooks/features/dimensions/useGridDimensions.d.ts +1 -1
- package/hooks/features/dimensions/useGridDimensions.js +9 -8
- package/hooks/features/editing/gridEditingSelectors.d.ts +1 -1
- package/hooks/features/editing/useGridRowEditing.js +8 -3
- package/hooks/features/events/useGridEvents.d.ts +1 -1
- package/hooks/features/events/useGridEvents.js +0 -3
- package/hooks/features/export/useGridPrintExport.d.ts +1 -1
- package/hooks/features/export/useGridPrintExport.js +12 -14
- package/hooks/features/filter/gridFilterSelector.d.ts +7 -7
- package/hooks/features/filter/gridFilterSelector.js +11 -11
- package/hooks/features/filter/gridFilterState.d.ts +4 -4
- package/hooks/features/filter/gridFilterState.js +3 -3
- package/hooks/features/filter/gridFilterUtils.d.ts +2 -2
- package/hooks/features/filter/gridFilterUtils.js +30 -30
- package/hooks/features/filter/useGridFilter.d.ts +1 -1
- package/hooks/features/filter/useGridFilter.js +22 -17
- package/hooks/features/focus/gridFocusState.d.ts +5 -9
- package/hooks/features/focus/gridFocusStateSelector.d.ts +2 -2
- package/hooks/features/focus/useGridFocus.js +8 -1
- package/hooks/features/index.d.ts +0 -1
- package/hooks/features/index.js +0 -1
- package/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +9 -2
- package/hooks/features/pagination/gridPaginationInterfaces.d.ts +13 -21
- package/hooks/features/pagination/gridPaginationSelector.d.ts +5 -0
- package/hooks/features/pagination/gridPaginationSelector.js +16 -9
- package/hooks/features/pagination/gridPaginationUtils.d.ts +10 -0
- package/hooks/features/pagination/gridPaginationUtils.js +26 -0
- package/hooks/features/pagination/useGridPagination.d.ts +2 -2
- package/hooks/features/pagination/useGridPagination.js +161 -17
- package/hooks/features/preferencesPanel/gridPreferencePanelState.d.ts +1 -1
- package/hooks/features/preferencesPanel/useGridPreferencesPanel.js +1 -1
- package/hooks/features/rowSelection/useGridRowSelection.js +19 -12
- package/hooks/features/rows/gridRowsInterfaces.d.ts +9 -9
- package/hooks/features/rows/gridRowsUtils.d.ts +1 -1
- package/hooks/features/rows/gridRowsUtils.js +4 -4
- package/hooks/features/rows/useGridRows.js +6 -4
- package/hooks/features/rows/useGridRowsMeta.d.ts +1 -1
- package/hooks/features/rows/useGridRowsMeta.js +12 -12
- package/hooks/features/scroll/useGridScroll.js +2 -2
- package/hooks/features/sorting/gridSortingSelector.d.ts +1 -1
- package/hooks/features/sorting/gridSortingState.d.ts +2 -2
- package/hooks/features/sorting/useGridSorting.js +12 -1
- package/hooks/features/virtualization/useGridVirtualScroller.js +29 -22
- package/hooks/utils/index.d.ts +0 -1
- package/hooks/utils/index.js +0 -1
- package/hooks/utils/useGridApiMethod.d.ts +1 -1
- package/hooks/utils/useGridApiMethod.js +8 -6
- package/hooks/utils/useGridInitializeState.d.ts +2 -2
- package/hooks/utils/useGridVisibleRows.js +2 -2
- package/index.d.ts +7 -3
- package/index.js +12 -2
- package/internals/index.d.ts +4 -1
- package/internals/index.js +3 -1
- package/legacy/DataGrid/DataGrid.js +41 -94
- package/legacy/DataGrid/index.js +1 -1
- package/legacy/DataGrid/useDataGridComponent.js +2 -2
- package/legacy/DataGrid/useDataGridProps.js +8 -13
- package/legacy/colDef/gridDateColDef.js +35 -10
- package/legacy/colDef/gridDateOperators.js +3 -4
- package/legacy/colDef/gridSingleSelectColDef.js +37 -3
- package/legacy/colDef/gridSingleSelectOperators.js +8 -51
- package/legacy/colDef/gridStringOperators.js +1 -1
- package/legacy/components/GridAutoSizer.js +6 -19
- package/legacy/components/GridFooter.js +2 -2
- package/legacy/components/GridPagination.js +22 -18
- package/legacy/components/GridRow.js +18 -19
- package/legacy/components/GridScrollArea.js +4 -3
- package/legacy/components/base/GridBody.js +9 -20
- package/legacy/components/base/GridFooterPlaceholder.js +1 -8
- package/legacy/components/base/GridOverlays.js +3 -3
- package/legacy/components/base/index.js +0 -2
- package/legacy/components/cell/GridCell.js +13 -10
- package/legacy/components/cell/GridEditSingleSelectCell.js +24 -37
- package/legacy/components/cell/GridSkeletonCell.js +1 -1
- package/legacy/components/columnHeaders/ColumnHeaderMenuIcon.js +3 -3
- package/legacy/components/columnHeaders/GridColumnGroupHeader.js +6 -18
- package/legacy/components/columnHeaders/GridColumnHeaderItem.js +31 -43
- package/legacy/components/columnHeaders/GridColumnHeaderSeparator.js +1 -1
- package/legacy/components/columnHeaders/GridColumnHeaders.js +5 -9
- package/legacy/components/columnHeaders/GridGenericColumnHeaderItem.js +4 -5
- package/legacy/components/columnSelection/GridHeaderCheckbox.js +2 -2
- package/legacy/components/containers/GridFooterContainer.js +4 -7
- package/legacy/components/containers/GridRoot.js +4 -2
- package/legacy/components/containers/GridRootStyles.js +47 -13
- package/legacy/components/icons/index.js +12 -1
- package/legacy/components/menu/GridMenu.js +1 -9
- package/legacy/components/menu/columnMenu/GridColumnHeaderMenu.js +3 -3
- package/legacy/components/menu/columnMenu/GridColumnMenu.js +61 -35
- package/legacy/components/menu/columnMenu/GridColumnMenuContainer.js +11 -5
- package/legacy/components/menu/columnMenu/{GridFilterItemProps.js → GridColumnMenuItemProps.js} +0 -0
- package/legacy/components/menu/columnMenu/index.js +7 -7
- package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js +21 -0
- package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +41 -0
- package/legacy/components/menu/columnMenu/{HideGridColMenuItem.js → menuItems/GridColumnMenuHideItem.js} +22 -22
- package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +41 -0
- package/legacy/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +76 -0
- package/legacy/components/menu/columnMenu/menuItems/index.js +5 -0
- package/legacy/components/panel/GridColumnsPanel.js +13 -5
- package/legacy/components/panel/GridPanel.js +12 -2
- package/legacy/components/panel/filterPanel/GridFilterForm.js +55 -55
- package/legacy/components/panel/filterPanel/GridFilterInputDate.js +2 -2
- package/legacy/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +15 -21
- package/legacy/components/panel/filterPanel/GridFilterInputMultipleValue.js +2 -3
- package/legacy/components/panel/filterPanel/GridFilterInputSingleSelect.js +18 -17
- package/legacy/components/panel/filterPanel/GridFilterInputValue.js +5 -58
- package/legacy/components/panel/filterPanel/GridFilterPanel.js +19 -19
- package/legacy/components/panel/filterPanel/filterPanelUtils.js +5 -1
- package/legacy/components/reexportable.js +1 -0
- package/legacy/components/toolbar/GridToolbarDensitySelector.js +5 -6
- package/legacy/components/toolbar/GridToolbarFilterButton.js +5 -5
- package/legacy/components/virtualization/GridVirtualScroller.js +1 -0
- package/legacy/constants/defaultGridSlotsComponents.js +9 -9
- package/legacy/constants/gridClasses.js +1 -1
- package/legacy/constants/index.js +0 -1
- package/legacy/constants/localeTextConstants.js +4 -5
- package/legacy/hooks/core/useGridApiInitialization.js +4 -12
- package/legacy/hooks/core/useGridInitialization.js +0 -2
- package/legacy/hooks/features/clipboard/useGridClipboard.js +19 -7
- package/legacy/hooks/features/columnGrouping/gridColumnGroupsSelector.js +0 -12
- package/legacy/hooks/features/columnGrouping/useGridColumnGrouping.js +2 -2
- package/legacy/hooks/features/columnHeaders/useGridColumnHeaders.js +18 -20
- package/legacy/hooks/features/columnMenu/{columnMenuState.js → columnMenuInterfaces.js} +0 -0
- package/legacy/hooks/features/columnMenu/index.js +1 -1
- package/legacy/hooks/features/columnMenu/useGridColumnMenu.js +27 -25
- package/legacy/hooks/features/columnMenu/useGridColumnMenuComponents.js +76 -0
- package/legacy/hooks/features/columns/gridColumnsSelector.js +2 -2
- package/legacy/hooks/features/columns/gridColumnsUtils.js +42 -51
- package/legacy/hooks/features/columns/useGridColumns.js +29 -17
- package/legacy/hooks/features/density/densitySelector.js +0 -6
- package/legacy/hooks/features/density/useGridDensity.js +15 -34
- package/legacy/hooks/features/dimensions/useGridDimensions.js +9 -8
- package/legacy/hooks/features/editing/useGridRowEditing.js +10 -3
- package/legacy/hooks/features/events/useGridEvents.js +0 -3
- package/legacy/hooks/features/export/useGridPrintExport.js +12 -14
- package/legacy/hooks/features/filter/gridFilterSelector.js +11 -11
- package/legacy/hooks/features/filter/gridFilterState.js +3 -3
- package/legacy/hooks/features/filter/gridFilterUtils.js +31 -31
- package/legacy/hooks/features/filter/useGridFilter.js +22 -19
- package/legacy/hooks/features/focus/useGridFocus.js +8 -1
- package/legacy/hooks/features/index.js +0 -1
- package/legacy/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +9 -2
- package/legacy/hooks/features/pagination/gridPaginationSelector.js +21 -12
- package/legacy/hooks/features/pagination/gridPaginationUtils.js +31 -0
- package/legacy/hooks/features/pagination/useGridPagination.js +163 -17
- package/legacy/hooks/features/preferencesPanel/useGridPreferencesPanel.js +1 -1
- package/legacy/hooks/features/rowSelection/useGridRowSelection.js +19 -12
- package/legacy/hooks/features/rows/gridRowsUtils.js +4 -4
- package/legacy/hooks/features/rows/useGridRows.js +6 -4
- package/legacy/hooks/features/rows/useGridRowsMeta.js +12 -12
- package/legacy/hooks/features/scroll/useGridScroll.js +2 -2
- package/legacy/hooks/features/sorting/useGridSorting.js +14 -1
- package/legacy/hooks/features/virtualization/useGridVirtualScroller.js +31 -24
- package/legacy/hooks/utils/index.js +0 -1
- package/legacy/hooks/utils/useGridApiMethod.js +6 -4
- package/legacy/hooks/utils/useGridVisibleRows.js +2 -2
- package/legacy/index.js +12 -2
- package/legacy/internals/index.js +3 -1
- package/legacy/locales/arSD.js +3 -4
- package/legacy/locales/bgBG.js +3 -4
- package/legacy/locales/csCZ.js +3 -4
- package/legacy/locales/daDK.js +3 -4
- package/legacy/locales/deDE.js +3 -4
- package/legacy/locales/elGR.js +3 -4
- package/legacy/locales/esES.js +28 -38
- package/legacy/locales/faIR.js +3 -4
- package/legacy/locales/fiFI.js +3 -4
- package/legacy/locales/frFR.js +3 -4
- package/legacy/locales/heIL.js +5 -5
- package/legacy/locales/huHU.js +3 -4
- package/legacy/locales/itIT.js +3 -4
- package/legacy/locales/jaJP.js +3 -4
- package/legacy/locales/koKR.js +3 -4
- package/legacy/locales/nbNO.js +3 -4
- package/legacy/locales/nlNL.js +3 -4
- package/legacy/locales/plPL.js +3 -4
- package/legacy/locales/ptBR.js +3 -4
- package/legacy/locales/roRO.js +3 -4
- package/legacy/locales/ruRU.js +16 -21
- package/legacy/locales/skSK.js +3 -4
- package/legacy/locales/svSE.js +12 -15
- package/legacy/locales/trTR.js +3 -4
- package/legacy/locales/ukUA.js +25 -30
- package/legacy/locales/viVN.js +3 -4
- package/legacy/locales/zhCN.js +3 -4
- package/legacy/locales/zhTW.js +3 -4
- package/legacy/models/colDef/index.js +2 -2
- package/legacy/models/gridDensity.js +1 -13
- package/legacy/models/gridEditRowModel.js +0 -1
- package/legacy/models/gridFilterItem.js +6 -6
- package/legacy/models/index.js +1 -0
- package/legacy/utils/utils.js +1 -1
- package/locales/arSD.js +3 -4
- package/locales/bgBG.js +3 -4
- package/locales/csCZ.js +3 -4
- package/locales/daDK.js +3 -4
- package/locales/deDE.js +3 -4
- package/locales/elGR.js +3 -4
- package/locales/esES.js +28 -38
- package/locales/faIR.js +3 -4
- package/locales/fiFI.js +3 -4
- package/locales/frFR.js +3 -4
- package/locales/heIL.js +5 -5
- package/locales/huHU.js +3 -4
- package/locales/itIT.js +3 -4
- package/locales/jaJP.js +3 -4
- package/locales/koKR.js +3 -4
- package/locales/nbNO.js +3 -4
- package/locales/nlNL.js +3 -4
- package/locales/plPL.js +3 -4
- package/locales/ptBR.js +3 -4
- package/locales/roRO.js +3 -4
- package/locales/ruRU.js +16 -21
- package/locales/skSK.js +3 -4
- package/locales/svSE.js +12 -15
- package/locales/trTR.js +3 -4
- package/locales/ukUA.js +21 -30
- package/locales/viVN.js +3 -4
- package/locales/zhCN.js +3 -4
- package/locales/zhTW.js +3 -4
- package/models/api/gridApiCommunity.d.ts +3 -1
- package/models/api/gridClipboardApi.d.ts +1 -2
- package/models/api/gridColumnApi.d.ts +14 -6
- package/models/api/gridColumnSpanning.d.ts +1 -1
- package/models/api/gridCoreApi.d.ts +8 -25
- package/models/api/gridDensityApi.d.ts +3 -6
- package/models/api/gridEditingApi.d.ts +4 -4
- package/models/api/gridFilterApi.d.ts +4 -10
- package/models/api/gridLocaleTextApi.d.ts +4 -4
- package/models/api/gridParamsApi.d.ts +1 -1
- package/models/api/gridRowApi.d.ts +18 -16
- package/models/api/index.d.ts +1 -1
- package/models/colDef/gridColDef.d.ts +26 -24
- package/models/colDef/gridColType.d.ts +2 -2
- package/models/colDef/gridColumnTypesRecord.d.ts +1 -1
- package/models/colDef/index.d.ts +1 -1
- package/models/colDef/index.js +2 -2
- package/models/events/gridEventListener.d.ts +1 -1
- package/models/events/gridEventLookup.d.ts +39 -33
- package/models/events/gridEventPublisher.d.ts +8 -8
- package/models/gridCell.d.ts +11 -2
- package/models/gridCellClass.d.ts +3 -2
- package/models/gridColumnGrouping.d.ts +4 -4
- package/models/gridColumnHeaderClass.d.ts +2 -2
- package/models/gridColumnSpanning.d.ts +2 -2
- package/models/gridDensity.d.ts +1 -10
- package/models/gridDensity.js +1 -13
- package/models/gridEditRowModel.d.ts +3 -4
- package/models/gridEditRowModel.js +0 -1
- package/models/gridExport.d.ts +2 -2
- package/models/gridFeatureMode.d.ts +1 -1
- package/models/gridFilterItem.d.ts +4 -5
- package/models/gridFilterItem.js +6 -6
- package/models/gridFilterModel.d.ts +9 -9
- package/models/gridFilterOperator.d.ts +5 -8
- package/models/gridIconSlotsComponent.d.ts +30 -0
- package/models/gridPaginationProps.d.ts +11 -6
- package/models/gridRenderContextProps.d.ts +1 -1
- package/models/gridRootContainerRef.d.ts +1 -1
- package/models/gridRowSelectionModel.d.ts +2 -2
- package/models/gridRows.d.ts +12 -12
- package/models/gridSlotsComponent.d.ts +0 -11
- package/models/gridSlotsComponentsProps.d.ts +0 -2
- package/models/gridSortModel.d.ts +3 -3
- package/models/gridStateCommunity.d.ts +2 -3
- package/models/index.d.ts +1 -0
- package/models/index.js +1 -0
- package/models/muiEvent.d.ts +2 -2
- package/models/params/gridCellParams.d.ts +5 -5
- package/models/params/gridColumnHeaderParams.d.ts +1 -1
- package/models/params/gridColumnOrderChangeParams.d.ts +2 -10
- package/models/params/gridEditCellParams.d.ts +2 -2
- package/models/params/gridRowParams.d.ts +3 -3
- package/models/params/gridScrollParams.d.ts +1 -1
- package/models/props/DataGridProps.d.ts +20 -72
- package/modern/DataGrid/DataGrid.js +41 -94
- package/modern/DataGrid/index.js +1 -1
- package/modern/DataGrid/useDataGridComponent.js +2 -2
- package/modern/DataGrid/useDataGridProps.js +8 -13
- package/modern/colDef/gridDateColDef.js +34 -8
- package/modern/colDef/gridDateOperators.js +3 -4
- package/modern/colDef/gridSingleSelectColDef.js +36 -3
- package/modern/colDef/gridSingleSelectOperators.js +2 -47
- package/modern/colDef/gridStringOperators.js +1 -1
- package/modern/components/GridAutoSizer.js +6 -19
- package/modern/components/GridFooter.js +2 -2
- package/modern/components/GridPagination.js +17 -14
- package/modern/components/GridRow.js +14 -16
- package/modern/components/GridScrollArea.js +4 -3
- package/modern/components/base/GridBody.js +9 -20
- package/modern/components/base/GridFooterPlaceholder.js +1 -8
- package/modern/components/base/GridOverlays.js +3 -3
- package/modern/components/base/index.js +0 -2
- package/modern/components/cell/GridCell.js +13 -10
- package/modern/components/cell/GridEditSingleSelectCell.js +24 -37
- package/modern/components/cell/GridSkeletonCell.js +1 -1
- package/modern/components/columnHeaders/ColumnHeaderMenuIcon.js +3 -3
- package/modern/components/columnHeaders/GridColumnGroupHeader.js +5 -18
- package/modern/components/columnHeaders/GridColumnHeaderItem.js +29 -42
- package/modern/components/columnHeaders/GridColumnHeaderSeparator.js +1 -1
- package/modern/components/columnHeaders/GridColumnHeaders.js +5 -9
- package/modern/components/columnHeaders/GridGenericColumnHeaderItem.js +5 -6
- package/modern/components/columnSelection/GridHeaderCheckbox.js +2 -2
- package/modern/components/containers/GridFooterContainer.js +4 -8
- package/modern/components/containers/GridRoot.js +4 -2
- package/modern/components/containers/GridRootStyles.js +58 -10
- package/modern/components/icons/index.js +12 -1
- package/modern/components/menu/GridMenu.js +1 -9
- package/modern/components/menu/columnMenu/GridColumnHeaderMenu.js +3 -3
- package/modern/components/menu/columnMenu/GridColumnMenu.js +57 -35
- package/modern/components/menu/columnMenu/GridColumnMenuContainer.js +9 -5
- package/modern/components/menu/columnMenu/{GridFilterItemProps.js → GridColumnMenuItemProps.js} +0 -0
- package/modern/components/menu/columnMenu/index.js +7 -7
- package/modern/components/menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js +21 -0
- package/modern/components/menu/columnMenu/menuItems/GridColumnMenuFilterItem.js +43 -0
- package/{components/menu/columnMenu/HideGridColMenuItem.js → modern/components/menu/columnMenu/menuItems/GridColumnMenuHideItem.js} +22 -20
- package/modern/components/menu/columnMenu/menuItems/GridColumnMenuManageItem.js +43 -0
- package/modern/components/menu/columnMenu/menuItems/GridColumnMenuSortItem.js +73 -0
- package/modern/components/menu/columnMenu/menuItems/index.js +5 -0
- package/modern/components/panel/GridColumnsPanel.js +12 -6
- package/modern/components/panel/GridPanel.js +8 -1
- package/modern/components/panel/filterPanel/GridFilterForm.js +52 -52
- package/modern/components/panel/filterPanel/GridFilterInputDate.js +2 -2
- package/modern/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +15 -22
- package/modern/components/panel/filterPanel/GridFilterInputMultipleValue.js +2 -3
- package/modern/components/panel/filterPanel/GridFilterInputSingleSelect.js +18 -18
- package/modern/components/panel/filterPanel/GridFilterInputValue.js +7 -57
- package/modern/components/panel/filterPanel/GridFilterPanel.js +18 -18
- package/modern/components/panel/filterPanel/filterPanelUtils.js +5 -1
- package/modern/components/reexportable.js +1 -0
- package/modern/components/toolbar/GridToolbarDensitySelector.js +5 -6
- package/modern/components/toolbar/GridToolbarFilterButton.js +3 -3
- package/modern/components/virtualization/GridVirtualScroller.js +1 -0
- package/modern/constants/defaultGridSlotsComponents.js +9 -9
- package/modern/constants/gridClasses.js +1 -1
- package/modern/constants/index.js +0 -1
- package/modern/constants/localeTextConstants.js +4 -5
- package/modern/hooks/core/useGridApiInitialization.js +4 -12
- package/modern/hooks/core/useGridInitialization.js +0 -2
- package/modern/hooks/features/clipboard/useGridClipboard.js +19 -6
- package/modern/hooks/features/columnGrouping/gridColumnGroupsSelector.js +1 -9
- package/modern/hooks/features/columnGrouping/useGridColumnGrouping.js +2 -2
- package/modern/hooks/features/columnHeaders/useGridColumnHeaders.js +18 -20
- package/modern/hooks/features/columnMenu/{columnMenuState.js → columnMenuInterfaces.js} +0 -0
- package/modern/hooks/features/columnMenu/index.js +1 -1
- package/modern/hooks/features/columnMenu/useGridColumnMenu.js +27 -25
- package/modern/hooks/features/columnMenu/useGridColumnMenuComponents.js +63 -0
- package/modern/hooks/features/columns/gridColumnsSelector.js +2 -2
- package/modern/hooks/features/columns/gridColumnsUtils.js +8 -13
- package/modern/hooks/features/columns/useGridColumns.js +28 -14
- package/modern/hooks/features/density/densitySelector.js +0 -2
- package/modern/hooks/features/density/useGridDensity.js +16 -33
- package/modern/hooks/features/dimensions/useGridDimensions.js +9 -8
- package/modern/hooks/features/editing/useGridRowEditing.js +8 -3
- package/modern/hooks/features/events/useGridEvents.js +0 -3
- package/modern/hooks/features/export/useGridPrintExport.js +12 -14
- package/modern/hooks/features/filter/gridFilterSelector.js +11 -11
- package/modern/hooks/features/filter/gridFilterState.js +3 -3
- package/modern/hooks/features/filter/gridFilterUtils.js +28 -28
- package/modern/hooks/features/filter/useGridFilter.js +22 -17
- package/modern/hooks/features/focus/useGridFocus.js +8 -1
- package/modern/hooks/features/index.js +0 -1
- package/modern/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +9 -2
- package/modern/hooks/features/pagination/gridPaginationSelector.js +16 -9
- package/modern/hooks/features/pagination/gridPaginationUtils.js +26 -0
- package/modern/hooks/features/pagination/useGridPagination.js +153 -16
- package/modern/hooks/features/preferencesPanel/useGridPreferencesPanel.js +1 -1
- package/modern/hooks/features/rowSelection/useGridRowSelection.js +18 -12
- package/modern/hooks/features/rows/gridRowsUtils.js +4 -4
- package/modern/hooks/features/rows/useGridRows.js +6 -4
- package/modern/hooks/features/rows/useGridRowsMeta.js +12 -12
- package/modern/hooks/features/scroll/useGridScroll.js +2 -2
- package/modern/hooks/features/sorting/useGridSorting.js +12 -1
- package/modern/hooks/features/virtualization/useGridVirtualScroller.js +29 -22
- package/modern/hooks/utils/index.js +0 -1
- package/modern/hooks/utils/useGridApiMethod.js +8 -6
- package/modern/hooks/utils/useGridVisibleRows.js +2 -2
- package/modern/index.js +12 -2
- package/modern/internals/index.js +3 -1
- package/modern/locales/arSD.js +3 -4
- package/modern/locales/bgBG.js +3 -4
- package/modern/locales/csCZ.js +3 -4
- package/modern/locales/daDK.js +3 -4
- package/modern/locales/deDE.js +3 -4
- package/modern/locales/elGR.js +3 -4
- package/modern/locales/esES.js +28 -38
- package/modern/locales/faIR.js +3 -4
- package/modern/locales/fiFI.js +3 -4
- package/modern/locales/frFR.js +3 -4
- package/modern/locales/heIL.js +5 -5
- package/modern/locales/huHU.js +3 -4
- package/modern/locales/itIT.js +3 -4
- package/modern/locales/jaJP.js +3 -4
- package/modern/locales/koKR.js +3 -4
- package/modern/locales/nbNO.js +3 -4
- package/modern/locales/nlNL.js +3 -4
- package/modern/locales/plPL.js +3 -4
- package/modern/locales/ptBR.js +3 -4
- package/modern/locales/roRO.js +3 -4
- package/modern/locales/ruRU.js +16 -21
- package/modern/locales/skSK.js +3 -4
- package/modern/locales/svSE.js +12 -15
- package/modern/locales/trTR.js +3 -4
- package/modern/locales/ukUA.js +21 -30
- package/modern/locales/viVN.js +3 -4
- package/modern/locales/zhCN.js +3 -4
- package/modern/locales/zhTW.js +3 -4
- package/modern/models/colDef/index.js +2 -2
- package/modern/models/gridDensity.js +1 -13
- package/modern/models/gridEditRowModel.js +0 -1
- package/modern/models/gridFilterItem.js +6 -6
- package/modern/models/index.js +1 -0
- package/modern/utils/utils.js +1 -1
- package/node/DataGrid/DataGrid.js +39 -92
- package/node/DataGrid/index.js +0 -7
- package/node/DataGrid/useDataGridComponent.js +2 -2
- package/node/DataGrid/useDataGridProps.js +9 -15
- package/node/colDef/gridDateColDef.js +34 -8
- package/node/colDef/gridDateOperators.js +3 -4
- package/node/colDef/gridSingleSelectColDef.js +35 -2
- package/node/colDef/gridSingleSelectOperators.js +3 -49
- package/node/colDef/gridStringOperators.js +1 -1
- package/node/components/GridAutoSizer.js +6 -19
- package/node/components/GridFooter.js +1 -1
- package/node/components/GridPagination.js +16 -13
- package/node/components/GridRow.js +14 -16
- package/node/components/GridScrollArea.js +3 -2
- package/node/components/base/GridBody.js +9 -20
- package/node/components/base/GridFooterPlaceholder.js +1 -8
- package/node/components/base/GridOverlays.js +2 -2
- package/node/components/base/index.js +0 -22
- package/node/components/cell/GridCell.js +13 -10
- package/node/components/cell/GridEditSingleSelectCell.js +23 -36
- package/node/components/cell/GridSkeletonCell.js +1 -1
- package/node/components/columnHeaders/ColumnHeaderMenuIcon.js +3 -3
- package/node/components/columnHeaders/GridColumnGroupHeader.js +5 -18
- package/node/components/columnHeaders/GridColumnHeaderItem.js +29 -42
- package/node/components/columnHeaders/GridColumnHeaderSeparator.js +1 -1
- package/node/components/columnHeaders/GridColumnHeaders.js +4 -8
- package/node/components/columnHeaders/GridGenericColumnHeaderItem.js +5 -6
- package/node/components/columnSelection/GridHeaderCheckbox.js +1 -1
- package/node/components/containers/GridFooterContainer.js +3 -7
- package/node/components/containers/GridRoot.js +4 -2
- package/node/components/containers/GridRootStyles.js +57 -9
- package/node/components/icons/index.js +16 -2
- package/node/components/menu/GridMenu.js +1 -9
- package/node/components/menu/columnMenu/GridColumnHeaderMenu.js +3 -3
- package/node/components/menu/columnMenu/GridColumnMenu.js +60 -35
- package/node/components/menu/columnMenu/GridColumnMenuContainer.js +9 -5
- package/node/components/menu/columnMenu/{GridFilterItemProps.js → GridColumnMenuItemProps.js} +0 -0
- package/node/components/menu/columnMenu/index.js +26 -55
- package/node/components/{base/GridErrorHandler.js → menu/columnMenu/menuItems/GridColumnMenuColumnsItem.js} +9 -24
- package/node/components/menu/columnMenu/{GridFilterMenuItem.js → menuItems/GridColumnMenuFilterItem.js} +20 -12
- package/node/components/menu/columnMenu/{HideGridColMenuItem.js → menuItems/GridColumnMenuHideItem.js} +21 -20
- package/node/components/menu/columnMenu/{GridColumnsMenuItem.js → menuItems/GridColumnMenuManageItem.js} +18 -10
- package/node/components/menu/columnMenu/{SortGridMenuItems.js → menuItems/GridColumnMenuSortItem.js} +41 -25
- package/node/components/menu/columnMenu/menuItems/index.js +60 -0
- package/node/components/panel/GridColumnsPanel.js +12 -6
- package/node/components/panel/GridPanel.js +8 -1
- package/node/components/panel/filterPanel/GridFilterForm.js +51 -51
- package/node/components/panel/filterPanel/GridFilterInputDate.js +2 -2
- package/node/components/panel/filterPanel/GridFilterInputMultipleSingleSelect.js +14 -21
- package/node/components/panel/filterPanel/GridFilterInputMultipleValue.js +2 -3
- package/node/components/panel/filterPanel/GridFilterInputSingleSelect.js +17 -17
- package/node/components/panel/filterPanel/GridFilterInputValue.js +7 -57
- package/node/components/panel/filterPanel/GridFilterPanel.js +17 -17
- package/node/components/panel/filterPanel/filterPanelUtils.js +7 -1
- package/node/components/reexportable.js +24 -0
- package/node/components/toolbar/GridToolbarDensitySelector.js +5 -6
- package/node/components/toolbar/GridToolbarFilterButton.js +3 -3
- package/node/components/virtualization/GridVirtualScroller.js +1 -0
- package/node/constants/defaultGridSlotsComponents.js +9 -9
- package/node/constants/gridClasses.js +1 -1
- package/node/constants/index.js +0 -11
- package/node/constants/localeTextConstants.js +4 -5
- package/node/hooks/core/useGridApiInitialization.js +4 -12
- package/node/hooks/core/useGridInitialization.js +0 -2
- package/node/hooks/features/clipboard/useGridClipboard.js +19 -6
- package/node/hooks/features/columnGrouping/gridColumnGroupsSelector.js +2 -11
- package/node/hooks/features/columnGrouping/useGridColumnGrouping.js +2 -2
- package/node/hooks/features/columnHeaders/useGridColumnHeaders.js +15 -17
- package/node/hooks/features/columnMenu/{columnMenuState.js → columnMenuInterfaces.js} +0 -0
- package/node/hooks/features/columnMenu/index.js +4 -4
- package/node/hooks/features/columnMenu/useGridColumnMenu.js +27 -25
- package/node/hooks/features/columnMenu/useGridColumnMenuComponents.js +72 -0
- package/node/hooks/features/columns/gridColumnsSelector.js +2 -2
- package/node/hooks/features/columns/gridColumnsUtils.js +9 -14
- package/node/hooks/features/columns/useGridColumns.js +26 -12
- package/node/hooks/features/density/densitySelector.js +1 -5
- package/node/hooks/features/density/useGridDensity.js +16 -33
- package/node/hooks/features/dimensions/useGridDimensions.js +8 -7
- package/node/hooks/features/editing/useGridRowEditing.js +8 -3
- package/node/hooks/features/events/useGridEvents.js +0 -3
- package/node/hooks/features/export/useGridPrintExport.js +11 -13
- package/node/hooks/features/filter/gridFilterSelector.js +17 -17
- package/node/hooks/features/filter/gridFilterState.js +2 -2
- package/node/hooks/features/filter/gridFilterUtils.js +27 -27
- package/node/hooks/features/filter/useGridFilter.js +21 -16
- package/node/hooks/features/focus/useGridFocus.js +8 -1
- package/node/hooks/features/index.js +0 -11
- package/node/hooks/features/keyboardNavigation/useGridKeyboardNavigation.js +8 -1
- package/node/hooks/features/pagination/gridPaginationSelector.js +18 -10
- package/node/hooks/features/pagination/gridPaginationUtils.js +38 -0
- package/node/hooks/features/pagination/useGridPagination.js +156 -17
- package/node/hooks/features/preferencesPanel/useGridPreferencesPanel.js +1 -1
- package/node/hooks/features/rowSelection/useGridRowSelection.js +17 -11
- package/node/hooks/features/rows/gridRowsUtils.js +3 -3
- package/node/hooks/features/rows/useGridRows.js +6 -4
- package/node/hooks/features/rows/useGridRowsMeta.js +11 -11
- package/node/hooks/features/scroll/useGridScroll.js +1 -1
- package/node/hooks/features/sorting/useGridSorting.js +12 -1
- package/node/hooks/features/virtualization/useGridVirtualScroller.js +28 -21
- package/node/hooks/utils/index.js +0 -11
- package/node/hooks/utils/useGridApiMethod.js +8 -6
- package/node/hooks/utils/useGridVisibleRows.js +1 -1
- package/node/index.js +27 -3
- package/node/internals/index.js +20 -0
- package/node/locales/arSD.js +3 -4
- package/node/locales/bgBG.js +3 -4
- package/node/locales/csCZ.js +3 -4
- package/node/locales/daDK.js +3 -4
- package/node/locales/deDE.js +3 -4
- package/node/locales/elGR.js +3 -4
- package/node/locales/esES.js +28 -38
- package/node/locales/faIR.js +3 -4
- package/node/locales/fiFI.js +3 -4
- package/node/locales/frFR.js +3 -4
- package/node/locales/heIL.js +5 -5
- package/node/locales/huHU.js +3 -4
- package/node/locales/itIT.js +3 -4
- package/node/locales/jaJP.js +3 -4
- package/node/locales/koKR.js +3 -4
- package/node/locales/nbNO.js +3 -4
- package/node/locales/nlNL.js +3 -4
- package/node/locales/plPL.js +3 -4
- package/node/locales/ptBR.js +3 -4
- package/node/locales/roRO.js +3 -4
- package/node/locales/ruRU.js +16 -21
- package/node/locales/skSK.js +3 -4
- package/node/locales/svSE.js +12 -15
- package/node/locales/trTR.js +3 -4
- package/node/locales/ukUA.js +21 -30
- package/node/locales/viVN.js +3 -4
- package/node/locales/zhCN.js +3 -4
- package/node/locales/zhTW.js +3 -4
- package/node/models/colDef/index.js +0 -11
- package/node/models/gridDensity.js +1 -15
- package/node/models/gridEditRowModel.js +0 -1
- package/node/models/gridFilterItem.js +7 -7
- package/node/models/index.js +11 -0
- package/node/utils/utils.js +1 -1
- package/package.json +3 -3
- package/utils/EventManager.d.ts +1 -1
- package/utils/cleanupTracking/CleanupTracking.d.ts +2 -2
- package/utils/createSelector.d.ts +5 -5
- package/utils/utils.d.ts +1 -1
- package/utils/utils.js +1 -1
- package/components/ErrorBoundary.d.ts +0 -20
- package/components/ErrorBoundary.js +0 -32
- package/components/GridErrorOverlay.d.ts +0 -8
- package/components/GridErrorOverlay.js +0 -27
- package/components/base/GridErrorHandler.d.ts +0 -8
- package/components/base/GridErrorHandler.js +0 -38
- package/components/base/GridHeaderPlaceholder.d.ts +0 -2
- package/components/base/GridHeaderPlaceholder.js +0 -16
- package/components/menu/columnMenu/GridColumnsMenuItem.d.ts +0 -7
- package/components/menu/columnMenu/GridColumnsMenuItem.js +0 -34
- package/components/menu/columnMenu/GridFilterMenuItem.d.ts +0 -7
- package/components/menu/columnMenu/GridFilterMenuItem.js +0 -34
- package/components/menu/columnMenu/HideGridColMenuItem.d.ts +0 -7
- package/components/menu/columnMenu/SortGridMenuItems.d.ts +0 -7
- package/components/menu/columnMenu/SortGridMenuItems.js +0 -57
- package/hooks/core/useGridErrorHandler.d.ts +0 -4
- package/hooks/core/useGridErrorHandler.js +0 -21
- package/hooks/features/columnMenu/columnMenuState.d.ts +0 -4
- package/hooks/features/editing/index.d.ts +0 -1
- package/hooks/features/editing/index.js +0 -1
- package/hooks/features/pagination/useGridPage.d.ts +0 -8
- package/hooks/features/pagination/useGridPage.js +0 -137
- package/hooks/features/pagination/useGridPageSize.d.ts +0 -8
- package/hooks/features/pagination/useGridPageSize.js +0 -110
- package/hooks/utils/useGridScrollFn.d.ts +0 -4
- package/hooks/utils/useGridScrollFn.js +0 -20
- package/legacy/components/ErrorBoundary.js +0 -55
- package/legacy/components/GridErrorOverlay.js +0 -27
- package/legacy/components/base/GridErrorHandler.js +0 -36
- package/legacy/components/base/GridHeaderPlaceholder.js +0 -16
- package/legacy/components/menu/columnMenu/GridColumnsMenuItem.js +0 -32
- package/legacy/components/menu/columnMenu/GridFilterMenuItem.js +0 -32
- package/legacy/components/menu/columnMenu/SortGridMenuItems.js +0 -57
- package/legacy/hooks/core/useGridErrorHandler.js +0 -23
- package/legacy/hooks/features/editing/index.js +0 -1
- package/legacy/hooks/features/pagination/useGridPage.js +0 -143
- package/legacy/hooks/features/pagination/useGridPageSize.js +0 -116
- package/legacy/hooks/utils/useGridScrollFn.js +0 -20
- package/modern/components/ErrorBoundary.js +0 -31
- package/modern/components/GridErrorOverlay.js +0 -27
- package/modern/components/base/GridErrorHandler.js +0 -35
- package/modern/components/base/GridHeaderPlaceholder.js +0 -15
- package/modern/components/menu/columnMenu/GridColumnsMenuItem.js +0 -34
- package/modern/components/menu/columnMenu/GridFilterMenuItem.js +0 -34
- package/modern/components/menu/columnMenu/SortGridMenuItems.js +0 -57
- package/modern/hooks/core/useGridErrorHandler.js +0 -21
- package/modern/hooks/features/editing/index.js +0 -1
- package/modern/hooks/features/pagination/useGridPage.js +0 -134
- package/modern/hooks/features/pagination/useGridPageSize.js +0 -107
- package/modern/hooks/utils/useGridScrollFn.js +0 -19
- package/node/components/ErrorBoundary.js +0 -40
- package/node/components/GridErrorOverlay.js +0 -37
- package/node/components/base/GridHeaderPlaceholder.js +0 -24
- package/node/hooks/core/useGridErrorHandler.js +0 -30
- package/node/hooks/features/editing/index.js +0 -16
- package/node/hooks/features/pagination/useGridPage.js +0 -145
- package/node/hooks/features/pagination/useGridPageSize.js +0 -118
- package/node/hooks/utils/useGridScrollFn.js +0 -27
package/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,866 @@
|
|
|
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-beta.0
|
|
7
|
+
|
|
8
|
+
_Jan 19, 2023_
|
|
9
|
+
|
|
10
|
+
After a long period in alpha, we're glad to announce the first MUI X v6 beta!
|
|
11
|
+
We encourage you to try out this version, packed with improvements, bug fixes, and a few highlighted features ✨:
|
|
12
|
+
|
|
13
|
+
**Data Grid**
|
|
14
|
+
|
|
15
|
+
- [Access to the API Object in the community version](https://next.mui.com/x/react-data-grid/api-object/)
|
|
16
|
+
- [Improved column menu](https://next.mui.com/x/react-data-grid/column-menu/)
|
|
17
|
+
- [Cell selection range](https://next.mui.com/x/react-data-grid/cell-selection/) (Premium)
|
|
18
|
+
|
|
19
|
+
**Date and Time pickers**
|
|
20
|
+
|
|
21
|
+
- [Fields: the new default input for pickers](https://next.mui.com/x/react-date-pickers/fields/).
|
|
22
|
+
- [Improved layout customization](https://next.mui.com/x/react-date-pickers/custom-layout/)
|
|
23
|
+
- [Edit date ranges with drag and drop](https://next.mui.com/x/react-date-pickers/date-range-calendar/) (Pro)
|
|
24
|
+
|
|
25
|
+
You can check the migration guides for the [Data Grid](https://next.mui.com/x/migration/migration-data-grid-v5/) and [Date Pickers](https://next.mui.com/x/migration/migration-pickers-v5/) in the documentation.
|
|
26
|
+
|
|
27
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible.
|
|
28
|
+
|
|
29
|
+
- ✨ Merge `page` and `pageSize` props into `paginationModel`
|
|
30
|
+
- 🚀 Replace old masked picker components with field based ones
|
|
31
|
+
- 🌍 Improve Swedish (sv-SE) and Italian (it-IT) locales
|
|
32
|
+
- 📚 Documentation improvements
|
|
33
|
+
- 🐞 Bug fixes
|
|
34
|
+
|
|
35
|
+
### `@mui/x-data-grid@v6.0.0-beta.0` / `@mui/x-data-grid-pro@v6.0.0-beta.0` / `@mui/x-data-grid-premium@v6.0.0-beta.0`
|
|
36
|
+
|
|
37
|
+
#### Breaking changes
|
|
38
|
+
|
|
39
|
+
- The `disableExtendRowFullWidth` prop was removed.
|
|
40
|
+
Use `showCellVerticalBorder` or `showColumnVerticalBorder` props to show or hide right border for cells and header cells respectively.
|
|
41
|
+
|
|
42
|
+
- The `GridCellIdentifier` type was removed. Use `GridCellCoordinates` instead.
|
|
43
|
+
|
|
44
|
+
- The `singleSelect` column type now has a default value formatter that returns the `label` corresponding to the selected value when `valueOptions` is an array of objects.
|
|
45
|
+
As consequence, any existing value formatter will not be applied to the individual options anymore, but only to the text of the cell.
|
|
46
|
+
It is recommended to migrate `valueOptions` to an array of objects to be able to add a custom label for each value.
|
|
47
|
+
To override the label used for each option when the cell is in edit mode or in the filter panel, the following components now support a `getOptionLabel` prop.
|
|
48
|
+
This prop accepts a callback that is called with the item from `valueOptions` and must return the new label.
|
|
49
|
+
|
|
50
|
+
- `GridEditSingleSelectCell`
|
|
51
|
+
- `GridFilterInputSingleSelect`
|
|
52
|
+
- `GridFilterInputMultipleSingleSelect`
|
|
53
|
+
|
|
54
|
+
- The `getGridSingleSelectQuickFilterFn` function was removed.
|
|
55
|
+
You can copy the old function and pass it to the `getApplyQuickFilterFn` property of the `singleSelect` column definition.
|
|
56
|
+
|
|
57
|
+
- The `page` and `pageSize` props and their respective event handlers `onPageChange` and `onPageSizeChange` were removed.
|
|
58
|
+
Use `paginationModel` and `onPaginationModelChange` instead.
|
|
59
|
+
|
|
60
|
+
```diff
|
|
61
|
+
<DataGrid
|
|
62
|
+
rows={rows}
|
|
63
|
+
columns={columns}
|
|
64
|
+
- page={page}
|
|
65
|
+
- pageSize={pageSize}
|
|
66
|
+
- onPageChange={handlePageChange}
|
|
67
|
+
- onPageSizeChange={handlePageSizeChange}
|
|
68
|
+
+ paginationModel={{ page, pageSize }}
|
|
69
|
+
+ onPaginationModelChange={handlePaginationModelChange}
|
|
70
|
+
/>
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
- The properties `initialState.pagination.page` and `initialState.pagination.pageSize` were also removed.
|
|
74
|
+
Use `initialState.pagination.paginationModel` instead.
|
|
75
|
+
|
|
76
|
+
```diff
|
|
77
|
+
-initialState={{ pagination: { page: 1, pageSize: 10 } }}
|
|
78
|
+
+initialState={{ pagination: { paginationModel: { page: 1, pageSize: 10 } } }}
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
- The `rowsPerPageOptions` prop was renamed to `pageSizeOptions`.
|
|
82
|
+
|
|
83
|
+
```diff
|
|
84
|
+
-<DataGrid rowsPerPageOptions={[10, 20, 50]} />
|
|
85
|
+
+<DataGrid pageSizeOptions={[10, 20, 50]} />
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
- The `error` and `onError` props were removed - the grid no longer catches errors during rendering.
|
|
89
|
+
To catch errors that happen during rendering use the [error boundary](https://reactjs.org/docs/error-boundaries.html).
|
|
90
|
+
|
|
91
|
+
- The `components.ErrorOverlay` slot was removed.
|
|
92
|
+
|
|
93
|
+
- The `GridErrorOverlay` component was removed.
|
|
94
|
+
|
|
95
|
+
- The `componentError` event was removed.
|
|
96
|
+
Use the [error boundary](https://reactjs.org/docs/error-boundaries.html) to catch errors thrown during rendering.
|
|
97
|
+
|
|
98
|
+
- The `apiRef.current.showError` method was removed.
|
|
99
|
+
The UI for errors is no longer handled by the grid.
|
|
100
|
+
|
|
101
|
+
- The `date` and `dateTime` columns now only support `Date` objects as values.
|
|
102
|
+
To parse a string value, use the [`valueGetter`](https://mui.com/x/react-data-grid/column-definition/#value-getter):
|
|
103
|
+
|
|
104
|
+
```tsx
|
|
105
|
+
<DataGrid
|
|
106
|
+
columns={[
|
|
107
|
+
{
|
|
108
|
+
field: 'date',
|
|
109
|
+
type: 'date',
|
|
110
|
+
valueGetter: (params) => new Date(params.value),
|
|
111
|
+
},
|
|
112
|
+
]}
|
|
113
|
+
/>
|
|
114
|
+
```
|
|
115
|
+
|
|
116
|
+
- The following selectors have been renamed:
|
|
117
|
+
|
|
118
|
+
- `gridVisibleSortedRowIdsSelector` renamed to `gridExpandedSortedRowIdsSelector`
|
|
119
|
+
- `gridVisibleSortedRowEntriesSelector` renamed to `gridExpandedSortedRowEntriesSelector`
|
|
120
|
+
- `gridVisibleRowCountSelector` renamed to `gridExpandedRowCountSelector`
|
|
121
|
+
- `gridVisibleSortedTopLevelRowEntriesSelector` renamed to `gridFilteredSortedTopLevelRowEntriesSelector`
|
|
122
|
+
- `gridVisibleTopLevelRowCountSelector` renamed to `gridFilteredTopLevelRowCountSelector`
|
|
123
|
+
|
|
124
|
+
- The `apiRef.current.getVisibleRowModels` method was removed. Use the `gridVisibleSortedRowEntriesSelector` selector instead.
|
|
125
|
+
|
|
126
|
+
- The `GridRowScrollEndParams["virtualRowsCount"]` parameter was renamed to `GridRowScrollEndParams["visibleRowsCount"]`.
|
|
127
|
+
|
|
128
|
+
#### Changes
|
|
129
|
+
|
|
130
|
+
- [DataGrid] Add default value formatter to `singleSelect` (#7290) @m4theushw
|
|
131
|
+
- [DataGrid] Fix flickering on grid scroll (#7549) @cherniavskii
|
|
132
|
+
- [DataGrid] Merge `page` and `pageSize` props into `paginationModel` (#7147) @MBilalShafi
|
|
133
|
+
- [DataGrid] Only support `Date` as value in `date` and `dateTime` column types (#7594) @cherniavskii
|
|
134
|
+
- [DataGrid] Remove error boundary (#7579) @cherniavskii
|
|
135
|
+
- [DataGrid] Remove `GridCellIdentifier` redundant type (#7578) @MBilalShafi
|
|
136
|
+
- [DataGrid] Remove `disableExtendRowFullWidth` prop (#7373) @MBilalShafi
|
|
137
|
+
- [DataGrid] Remove tag limit from `isAnyOf` operator input (#7592) @m4theushw
|
|
138
|
+
- [DataGrid] Use v6 terminology (#7473) @DanailH
|
|
139
|
+
- [DataGridPremium] Keep focus on first selected cell (#7482) @m4theushw
|
|
140
|
+
- [l10n] Update Swedish (sv-SE) locale (#7585) @MaanTyringe
|
|
141
|
+
|
|
142
|
+
### `@mui/x-date-pickers@v6.0.0-beta.0` / `@mui/x-date-pickers-pro@v6.0.0-beta.0`
|
|
143
|
+
|
|
144
|
+
#### Breaking changes
|
|
145
|
+
|
|
146
|
+
- The `showToolbar` prop has been moved to the `toolbar` component slot props:
|
|
147
|
+
|
|
148
|
+
```diff
|
|
149
|
+
<DatePicker
|
|
150
|
+
- showToolbar
|
|
151
|
+
+ slotProps={{
|
|
152
|
+
+ toolbar: {
|
|
153
|
+
+ hidden: false,
|
|
154
|
+
+ }
|
|
155
|
+
+ }}
|
|
156
|
+
/>
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
- The new pickers have replaced the legacy one.
|
|
160
|
+
|
|
161
|
+
If you were using the new pickers with their temporary name, you just have to change your imports.
|
|
162
|
+
|
|
163
|
+
```diff
|
|
164
|
+
-import { Unstable_NextDatePicker as NextDatePicker } from '@mui/x-date-pickers/NextDatePicker';
|
|
165
|
+
+import { DatePicker } from '@mui/x-date-pickers/DatePicker';
|
|
166
|
+
-import { Unstable_DesktopNextDatePicker as DesktopNextDatePicker } from '@mui/x-date-pickers/DesktopNextDatePicker';
|
|
167
|
+
+import { DesktopDatePicker } from '@mui/x-date-pickers/DesktopDatePicker';
|
|
168
|
+
|
|
169
|
+
// Same for all the other pickers with an `Unstable_` prefix
|
|
170
|
+
```
|
|
171
|
+
|
|
172
|
+
If you were still using the legacy picker (`DatePicker`, `DesktopDatePicker`, ...), please take a look at our [migration guide](https://next.mui.com/x/migration/migration-pickers-v5/#picker-components) for detailed explanations on how to start using the new ones.
|
|
173
|
+
|
|
174
|
+
- The fields components are no longer unstable
|
|
175
|
+
|
|
176
|
+
```diff
|
|
177
|
+
-import { Unstable_DateField as DateField } from '@mui/x-date-pickers/DateField';
|
|
178
|
+
+import { DateField } from '@mui/x-date-pickers/DateField';
|
|
179
|
+
```
|
|
180
|
+
|
|
181
|
+
#### Changes
|
|
182
|
+
|
|
183
|
+
- [DateRangeCalendar] Ignore `calendars` prop on mobile (#7526) @flaviendelangle
|
|
184
|
+
- [DateRangeCalendar] Ignore `showDaysOutsideCurrentMonth` when `calendars > 1` (#7529) @flaviendelangle
|
|
185
|
+
- [DateRangePicker] Propagate `rangePosition` to view (#7602) @LukasTy
|
|
186
|
+
- [fields] Fix upper boundary on 12-hours sections (#7618) @flaviendelangle
|
|
187
|
+
- [fields] Publish value when cleaning the last section of a date (#7519) @flaviendelangle
|
|
188
|
+
- [fields] Remove the `Unstable_` prefix for field components (#7185) @flaviendelangle
|
|
189
|
+
- [pickers] Add missing `slots` and `slotProps` on the date range view renderer (#7586) @flaviendelangle
|
|
190
|
+
- [pickers] Drop legacy pickers (#7545) @flaviendelangle
|
|
191
|
+
- [pickers] Fix day calendar row and column index (#7589) @LukasTy
|
|
192
|
+
- [pickers] Go to the default view when opening a picker (#7484) @flaviendelangle
|
|
193
|
+
- [pickers] Make sure the `className` and `sx` props are applied to the field / static root of the picker and never to the view (#7600) @flaviendelangle
|
|
194
|
+
- [pickers] Rename new pickers (#7575) @flaviendelangle
|
|
195
|
+
- [pickers] Rename remaining `components` and `componentSlots` references (#7576) @LukasTy
|
|
196
|
+
- [pickers] Replace `showToolbar` with toolbar slot `hidden` prop (#7498) @LukasTy
|
|
197
|
+
- [pickers] Spread props to the DOM in `DateCalendar` and `TimeClock` (#7587) @flaviendelangle
|
|
198
|
+
- [pickers] Stop using the `WrapperVariantContext` in `DateRangeCalendar` (#7488) @flaviendelangle
|
|
199
|
+
- [l10n] Improve Italian (it-IT) locale (#7582) @marikadeveloper
|
|
200
|
+
|
|
201
|
+
### `@mui/x-codemod@v6.0.0-beta.0`
|
|
202
|
+
|
|
203
|
+
#### Changes
|
|
204
|
+
|
|
205
|
+
- [codemod] Remove `disableExtendRowFullWidth` prop (#7508) @MBilalShafi
|
|
206
|
+
|
|
207
|
+
### Docs
|
|
208
|
+
|
|
209
|
+
- [docs] Clean-up the `field components` page (#7605) @flaviendelangle
|
|
210
|
+
- [docs] List all pickers toolbar pages in api docs side menu (#7577) @LukasTy
|
|
211
|
+
- [docs] Remove "Flex layout" docs section and demo (#7477) @cherniavskii
|
|
212
|
+
- [docs] Rework the pickers "Getting Started" page (#7140) @flaviendelangle
|
|
213
|
+
|
|
214
|
+
### Core
|
|
215
|
+
|
|
216
|
+
- [core] Add missing `status: needs triage` label on RFC @oliviertassinari
|
|
217
|
+
- [core] Add release documentation step detailing `x-codemod` package tag change (#7617) @LukasTy
|
|
218
|
+
- [core] Fix typo in `CHANGELOG` (#7611) @flaviendelangle
|
|
219
|
+
- [test] Fix date range picker tests to work with western time zones (#7581) @m4theushw
|
|
220
|
+
|
|
221
|
+
## 6.0.0-alpha.15
|
|
222
|
+
|
|
223
|
+
_Jan 13, 2023_
|
|
224
|
+
|
|
225
|
+
We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
|
|
226
|
+
|
|
227
|
+
- 🚀 Support components and slots for new pickers (#7390) @alexfauquette
|
|
228
|
+
- ✨ Update `onColumnOrderChange` behavior to match `onRowsOrderChange` (#7385) @DanailH
|
|
229
|
+
- 🌍 Improve Spanish (es-ES) and Belarusian (be-BY) locales
|
|
230
|
+
- 📚 Documentation improvements
|
|
231
|
+
- 🐞 Bugfixes
|
|
232
|
+
|
|
233
|
+
### `@mui/x-data-grid@v6.0.0-alpha.15` / `@mui/x-data-grid-pro@6.0.0-alpha.15` / `@mui/x-data-grid-premium@6.0.0-alpha.15`
|
|
234
|
+
|
|
235
|
+
#### Breaking changes
|
|
236
|
+
|
|
237
|
+
- Remove the `onCellFocusOut` prop (#6302) @cherniavskii
|
|
238
|
+
|
|
239
|
+
The `onCellFocusOut` prop was removed. Use `componentsProps.cell.onBlur` instead:
|
|
240
|
+
|
|
241
|
+
```tsx
|
|
242
|
+
<DataGrid
|
|
243
|
+
componentsProps={{
|
|
244
|
+
cell: {
|
|
245
|
+
onBlur: (event) => {
|
|
246
|
+
const cellElement = event.currentTarget;
|
|
247
|
+
const field = cellElement.getAttribute('data-field');
|
|
248
|
+
const rowId = cell.parentElement.getAttribute('data-id');
|
|
249
|
+
},
|
|
250
|
+
},
|
|
251
|
+
}}
|
|
252
|
+
/>
|
|
253
|
+
```
|
|
254
|
+
|
|
255
|
+
- [DataGrid] Stop exporting editing selector (#7456) @m4theushw
|
|
256
|
+
|
|
257
|
+
The `gridEditRowsStateSelector` selector was removed.
|
|
258
|
+
|
|
259
|
+
- [DataGrid] Rework column headers and virtual scroller positioning (#7001) @cherniavskii
|
|
260
|
+
|
|
261
|
+
The `headerHeight` prop was renamed to `columnHeaderHeight`.
|
|
262
|
+
|
|
263
|
+
- [DataGrid] Remove the `columnTypes` prop (#7309) @cherniavskii
|
|
264
|
+
|
|
265
|
+
The `columnTypes` prop was removed. For custom column types see [Custom column types](https://mui.com/x/react-data-grid/column-definition/#custom-column-types) docs.
|
|
266
|
+
|
|
267
|
+
- [DataGrid] Rename `linkOperators` to `logicOperators` (#7310) @cherniavskii
|
|
268
|
+
|
|
269
|
+
The `apiRef.current.setFilterLinkOperator` method was renamed to `apiRef.current.setFilterLogicOperator`.
|
|
270
|
+
The `GridLinkOperator` enum was renamed to `GridLogicOperator`.
|
|
271
|
+
The `GridFilterModel['linkOperator']` was renamed to `GridFilterModel['logicOperator']`.
|
|
272
|
+
The `linkOperators` prop of `GridFilterForm` and `GridFilterPanel` components was renamed to `logicOperators`.
|
|
273
|
+
The `linkOperatorInputProps` prop of `GridFilterForm` component was renamed to `logicOperatorInputProps`.
|
|
274
|
+
The `filterFormProps.linkOperatorInputProps` prop in `GridFilterForm` component was renamed to `filterFormProps.logicOperatorInputProps`.
|
|
275
|
+
The `GridLocaleText['filterPanelLinkOperator']` property was renamed to `GridLocaleText['filterPanelLogicOperator']`.
|
|
276
|
+
The `.MuiDataGrid-filterFormLinkOperatorInput`CSS class was renamed to `.MuiDataGrid-filterFormLogicOperatorInput`.
|
|
277
|
+
|
|
278
|
+
- [DataGrid] Remove `Alt+C` keyboard shortcut (#7466) @MBilalShafi
|
|
279
|
+
|
|
280
|
+
<kbd>Alt</kbd> (or <kbd>⌥ Option</kbd>) + <kbd>C</kbd> keyboard shortcut is no longer supported.
|
|
281
|
+
|
|
282
|
+
#### Changes
|
|
283
|
+
|
|
284
|
+
- [DataGrid] Fix <kbd>Tab</kbd> between portaled and non-portaled edit components (#7098) @m4theushw
|
|
285
|
+
- [DataGrid] Remove the `columnTypes` prop (#7309) @cherniavskii
|
|
286
|
+
- [DataGrid] Remove the `onCellFocusOut` prop (#6302) @cherniavskii
|
|
287
|
+
- [DataGrid] Rename `linkOperators` to `logicOperators` (#7310) @cherniavskii
|
|
288
|
+
- [DataGrid] Rework column headers and virtual scroller positioning (#7001) @cherniavskii
|
|
289
|
+
- [DataGrid] Stop exporting editing selector (#7456) @m4theushw
|
|
290
|
+
- [DataGrid] Update `onColumnOrderChange` behavior to match `onRowsOrderChange` (#7385) @DanailH
|
|
291
|
+
- [DataGrid] Improve Spanish (es-ES) locale (#7447) @Anderssxn
|
|
292
|
+
- [DataGrid] Remove Alt+C keyboard shortcut (#7466) @MBilalShafi
|
|
293
|
+
- [DataGridPremium] Fix Excel export not working with date strings (#7396) @cherniavskii
|
|
294
|
+
|
|
295
|
+
### `@mui/x-date-pickers@6.0.0-alpha.15` / `@mui/x-date-pickers-pro@6.0.0-alpha.15`
|
|
296
|
+
|
|
297
|
+
#### Breaking changes
|
|
298
|
+
|
|
299
|
+
- [pickers] Stop using the `WrapperVariantContext` in `MonthCalendar` and `YearCalendar` (#7382) @flaviendelangle
|
|
300
|
+
|
|
301
|
+
The `modeMobile` and `modeDesktop` classes have been removed from the `PickersMonth` and `PickersYear` internal components.
|
|
302
|
+
|
|
303
|
+
If you were using those classes on responsive components,
|
|
304
|
+
you can import `DEFAULT_DESKTOP_MODE_MEDIA_QUERY` from `@mui/x-date-pickers` or `@mui/x-date-pickers-pro` (or use your custom media query if any):
|
|
305
|
+
|
|
306
|
+
```diff
|
|
307
|
+
<GlobalStyles
|
|
308
|
+
styles={{
|
|
309
|
+
- [`.${pickersYearClasses.modeDesktop}`]: {
|
|
310
|
+
- backgroundColor: 'red'
|
|
311
|
+
- }
|
|
312
|
+
+ [DEFAULT_DESKTOP_MODE_MEDIA_QUERY]: {
|
|
313
|
+
+ [`.${pickersYearClasses.root}`]: {
|
|
314
|
+
+ backgroundColor: 'red'
|
|
315
|
+
+ }
|
|
316
|
+
+ }
|
|
317
|
+
- [`.${pickersYearClasses.modeMobile}`]: {
|
|
318
|
+
- backgroundColor: 'red'
|
|
319
|
+
- }
|
|
320
|
+
+ [DEFAULT_DESKTOP_MODE_MEDIA_QUERY.replace('@media', '@media not')]: {
|
|
321
|
+
+ [`.${pickersYearClasses.root}`]: {
|
|
322
|
+
+ backgroundColor: 'red'
|
|
323
|
+
+ }
|
|
324
|
+
+ }
|
|
325
|
+
}}
|
|
326
|
+
/>
|
|
327
|
+
```
|
|
328
|
+
|
|
329
|
+
Works exactly the same way for `PickersMonth`.
|
|
330
|
+
|
|
331
|
+
- [pickers] Refactor `shouldDisableTime` (#7299) @LukasTy
|
|
332
|
+
|
|
333
|
+
The `shouldDisableTime` prop signature has been changed. Either rename the prop usage to `shouldDisableClock` or refactor usage.
|
|
334
|
+
|
|
335
|
+
```diff
|
|
336
|
+
<DateTimePicker
|
|
337
|
+
- shouldDisableTime={(timeValue, view) => view === 'hours' && timeValue < 12}
|
|
338
|
+
+ shouldDisableClock={(timeValue, view) => view === 'hours' && timeValue < 12}
|
|
339
|
+
/>
|
|
340
|
+
```
|
|
341
|
+
|
|
342
|
+
```diff
|
|
343
|
+
<DateTimePicker
|
|
344
|
+
- shouldDisableTime={(timeValue, view) => view === 'hours' && timeValue < 12}
|
|
345
|
+
+ shouldDisableTime={(time, view) => view === 'hours' && value.hour() < 12}
|
|
346
|
+
/>
|
|
347
|
+
```
|
|
348
|
+
|
|
349
|
+
#### Changes
|
|
350
|
+
|
|
351
|
+
- [fields] Fix Android editing (#7444) @flaviendelangle
|
|
352
|
+
- [pickers] Add Belarusian (be-BY) locale (#7395) @volhalink
|
|
353
|
+
- [pickers] Hide am/pm controls when there is no hour view (#7380) @flaviendelangle
|
|
354
|
+
- [pickers] Hide the tabs by default on `DesktopNextDateTimePicker` (#7503) @flaviendelangle
|
|
355
|
+
- [pickers] Refactor `shouldDisableTime` (#7299) @LukasTy
|
|
356
|
+
- [pickers] Remove `WrapperVariantContext` from `DateTimePickerTabs` (#7374) @LukasTy
|
|
357
|
+
- [pickers] Stop using the `WrapperVariantContext` in `MonthCalendar` and `YearCalendar` (#7382) @flaviendelangle
|
|
358
|
+
- [pickers] Support `components` and `slots` for new pickers (#7390) @alexfauquette
|
|
359
|
+
- [pickers] Replace `slotsProps` by `slotProps` (#7528) @alexfauquette
|
|
360
|
+
|
|
361
|
+
### Docs
|
|
362
|
+
|
|
363
|
+
- [docs] Fix codesandboxes using `DemoContainer` (#7388) @LukasTy
|
|
364
|
+
- [docs] Fix wrong reference to currentView (#7441) @oliviertassinari
|
|
365
|
+
- [docs] New page for `DateRangeCalendar` (#7378) @flaviendelangle
|
|
366
|
+
- [docs] Update the migration guide with the breaking changes between the legacy and the new pickers (#7345) @flaviendelangle
|
|
367
|
+
- [docs] Use new pickers on "Custom components" demos (#7194) @flaviendelangle
|
|
368
|
+
|
|
369
|
+
### Core
|
|
370
|
+
|
|
371
|
+
- [core] Handle selection edge case (#7350) @oliviertassinari
|
|
372
|
+
- [core] Improve license message @oliviertassinari
|
|
373
|
+
- [core] Move default `closeOnSelect` to prop definition in `usePickerValue` (#7459) @flaviendelangle
|
|
374
|
+
- [core] Move interfaces of UI views to dedicated files (#7458) @flaviendelangle
|
|
375
|
+
- [core] Update package used to import LicenseInfo (#7442) @oliviertassinari
|
|
376
|
+
- [test] Add a few inheritComponent (#7352) @oliviertassinari
|
|
377
|
+
|
|
378
|
+
## 6.0.0-alpha.14
|
|
379
|
+
|
|
380
|
+
_Jan 5, 2023_
|
|
381
|
+
|
|
382
|
+
We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
|
|
383
|
+
|
|
384
|
+
- 📆 Add `SingleInputTimeRangeField` and `SingleInputDateTimeRangeField` components (#7186) @alexfauquette
|
|
385
|
+
- 🚀 Use grid for modifying pickers layout (#6900) @alexfauquette
|
|
386
|
+
- ✨ Improve field components editing experience (#7272) @flaviendelangle
|
|
387
|
+
- 💻 Multiple codemods
|
|
388
|
+
- 📚 Many documentation improvements
|
|
389
|
+
- 🐞 Bugfixes
|
|
390
|
+
|
|
391
|
+
### `@mui/x-data-grid@v6.0.0-alpha.14` / `@mui/x-data-grid-pro@v6.0.0-alpha.14` / `@mui/x-data-grid-premium@v6.0.0-alpha.14`
|
|
392
|
+
|
|
393
|
+
#### Breaking changes
|
|
394
|
+
|
|
395
|
+
- [DataGrid] Set default `GridCellParams['value']` type to `unknown` (#6959) @cherniavskii
|
|
396
|
+
|
|
397
|
+
The default type of `GridCellParams['value']` was changed from `any` to `unknown`.
|
|
398
|
+
|
|
399
|
+
#### Changes
|
|
400
|
+
|
|
401
|
+
- [DataGrid] Fix flickering on mount (#7205) @cherniavskii
|
|
402
|
+
- [DataGrid] Fix selected text in cell input not being copied in Firefox (#6593) @cherniavskii
|
|
403
|
+
- [DataGrid] Invert generic parameters order (#6874) @DanailH
|
|
404
|
+
- [DataGrid] Remove legacy logic for `singleSelect` inside `GridFilterInputValue` (#7386) @m4theushw
|
|
405
|
+
- [DataGrid] Remove remaining props from legacy editing API (#7381) @m4theushw
|
|
406
|
+
- [DataGrid] Set default `GridCellParams['value']` type to `unknown` (#6959) @cherniavskii
|
|
407
|
+
|
|
408
|
+
### `@mui/x-date-pickers@v6.0.0-alpha.14` / `@mui/x-date-pickers-pro@v6.0.0-alpha.14`
|
|
409
|
+
|
|
410
|
+
#### Breaking changes
|
|
411
|
+
|
|
412
|
+
- [fields] Rename the `input` slot of the fields to `textField` to avoid confusion (#7369) @flaviendelangle
|
|
413
|
+
|
|
414
|
+
#### Changes
|
|
415
|
+
|
|
416
|
+
- [fields] Add `SingleInputTimeRangeField` and `SingleInputDateTimeRangeField` components (#7186) @alexfauquette
|
|
417
|
+
- [fields] Improve editing (automatic section switch, allow letter editing in digit section, allow numeric editing in letter section) (#7272) @flaviendelangle
|
|
418
|
+
- [fields] Rename the `input` slot of the fields to `textField` to avoid confusion (#7369) @flaviendelangle
|
|
419
|
+
- [fields] Prevent date change on `TimeField` arrow edition (#7383) @flaviendelangle
|
|
420
|
+
- [pickers] Clean some JSDoc descriptions (#7384) @flaviendelangle
|
|
421
|
+
- [pickers] Remove redundant `variants` in theme augmentation (#7356) @LukasTy
|
|
422
|
+
- [pickers] Remove the `PaperContent` slot from the new pickers (#7342) @flaviendelangle
|
|
423
|
+
- [pickers] Use grid for modifying the layout (#6900) @alexfauquette
|
|
424
|
+
|
|
425
|
+
### `@mui/x-codemod@v6.0.0-alpha.14`
|
|
426
|
+
|
|
427
|
+
#### Changes
|
|
428
|
+
|
|
429
|
+
- [codemod] Add new codemod for adapter import (#7348) @flaviendelangle
|
|
430
|
+
- [codemod] Add new codemod for the value prop renaming on the view components (#7338) @flaviendelangle
|
|
431
|
+
- [codemod] Reorganize codemods and add rename column menu components codemod (#7368) @MBilalShafi
|
|
432
|
+
|
|
433
|
+
### Docs
|
|
434
|
+
|
|
435
|
+
- [docs] Add example to add back the mobile keyboard view (#7347) @flaviendelangle
|
|
436
|
+
- [docs] Cleanup the doc pages of the community pickers (#7339) @flaviendelangle
|
|
437
|
+
- [docs] Drop security fixes support for v4 (#7322) @oliviertassinari
|
|
438
|
+
- [docs] Fix `disablePast` and `disableFuture` definition swap (#7324) @alexfauquette
|
|
439
|
+
- [docs] Hide ad for paid docs pages (#7321) @oliviertassinari
|
|
440
|
+
- [docs] New page for `TimeClock` (#7280) @flaviendelangle
|
|
441
|
+
- [docs] Note the pickers breaking changes supported by the codemod (#7337) @flaviendelangle
|
|
442
|
+
- [docs] Redirect translated pages (#7341) @cherniavskii
|
|
443
|
+
- [docs] Reorganize v6 pickers migration guide (#7257) @flaviendelangle
|
|
444
|
+
|
|
445
|
+
### Core
|
|
446
|
+
|
|
447
|
+
- [core] Apply eslint rule for React component @oliviertassinari
|
|
448
|
+
- [core] Apply title capitalization convention @oliviertassinari
|
|
449
|
+
- [core] Fix the product license reference name (#7367) @oliviertassinari
|
|
450
|
+
- [core] Order the slots alphabetically in the JSON files (#7349) @flaviendelangle
|
|
451
|
+
- [core] Remove blanklines in `_redirects` @oliviertassinari
|
|
452
|
+
- [core] Remove dead prettier config @oliviertassinari
|
|
453
|
+
- [core] Sync back with the mono repo (#7351) @oliviertassinari
|
|
454
|
+
- [core] Sync monorepo, fix layout scrollbar @oliviertassinari
|
|
455
|
+
- [core] Upgrade monorepo (#7307) @LukasTy
|
|
456
|
+
|
|
457
|
+
## 6.0.0-alpha.13
|
|
458
|
+
|
|
459
|
+
_Dec 24, 2022_
|
|
460
|
+
|
|
461
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
462
|
+
|
|
463
|
+
- 🚀 New column menu design and API
|
|
464
|
+
- 🌍 Improve Russian (ru-RU) and Korean (ko-KR) locales
|
|
465
|
+
- 📚 Documentation improvements
|
|
466
|
+
- 🐞 Bugfixes
|
|
467
|
+
|
|
468
|
+
### `@mui/x-data-grid@6.0.0-alpha.13` / `@mui/x-data-grid-pro@6.0.0-alpha.13` / `@mui/x-data-grid-premium@6.0.0-alpha.13`
|
|
469
|
+
|
|
470
|
+
#### Breaking changes
|
|
471
|
+
|
|
472
|
+
- New column menu design and API (#6619) MBilalShafi
|
|
473
|
+
|
|
474
|
+
The `currentColumn` prop passed to `components.ColumnMenu` was renamed to `colDef`.
|
|
475
|
+
The `column` prop passed to the items of the column menu was renamed to `colDef`.
|
|
476
|
+
The `DATA_GRID_DEFAULT_SLOTS_COMPONENTS` export has been removed.
|
|
477
|
+
The following components and interfaces were been renamed for consistency:
|
|
478
|
+
|
|
479
|
+
**Community Package:**
|
|
480
|
+
|
|
481
|
+
```diff
|
|
482
|
+
-<GridFilterMenuItem />
|
|
483
|
+
+<GridColumnMenuFilterItem />
|
|
484
|
+
```
|
|
485
|
+
|
|
486
|
+
```diff
|
|
487
|
+
-<HideGridColMenuItem />
|
|
488
|
+
+<GridColumnMenuHideItem />
|
|
489
|
+
```
|
|
490
|
+
|
|
491
|
+
```diff
|
|
492
|
+
-<GridColumnsMenuItem />
|
|
493
|
+
+<GridColumnMenuColumnsItem />
|
|
494
|
+
```
|
|
495
|
+
|
|
496
|
+
```diff
|
|
497
|
+
-<SortGridMenuItems />
|
|
498
|
+
+<GridColumnMenuSortItem />
|
|
499
|
+
```
|
|
500
|
+
|
|
501
|
+
```diff
|
|
502
|
+
-interface GridFilterItemProps
|
|
503
|
+
+interface GridColumnMenuItemProps
|
|
504
|
+
```
|
|
505
|
+
|
|
506
|
+
**Pro package:**
|
|
507
|
+
|
|
508
|
+
```diff
|
|
509
|
+
-<GridColumnPinningMenuItems />
|
|
510
|
+
+<GridColumnMenuPinningItem />
|
|
511
|
+
```
|
|
512
|
+
|
|
513
|
+
**Premium package:**
|
|
514
|
+
|
|
515
|
+
```diff
|
|
516
|
+
-<GridAggregationColumnMenuItem />
|
|
517
|
+
+<GridColumnMenuAggregationItem />
|
|
518
|
+
```
|
|
519
|
+
|
|
520
|
+
```diff
|
|
521
|
+
-<GridRowGroupingColumnMenuItems />
|
|
522
|
+
-<GridRowGroupableColumnMenuItems />
|
|
523
|
+
+<GridColumnMenuGroupingItem />
|
|
524
|
+
```
|
|
525
|
+
|
|
526
|
+
- Improve column definition typing (#7224) @cherniavskii
|
|
527
|
+
|
|
528
|
+
The `GridColumns` type was removed. Use `GridColDef[]` instead.
|
|
529
|
+
The `GridActionsColDef` interface was removed. Use `GridColDef` instead.
|
|
530
|
+
The `GridEnrichedColDef` type was removed. Use `GridColDef` instead.
|
|
531
|
+
The `GridStateColDef` type was removed.
|
|
532
|
+
|
|
533
|
+
If you use it to type `searchPredicate`, use `GridColumnsPanelProps['searchPredicate']` instead.
|
|
534
|
+
If you use it to type `getApplyFilterFn`, `GridFilterOperator['getApplyFilterFn']` can be used as replacement.
|
|
535
|
+
|
|
536
|
+
- Remove GridDensityType enum (#7304) @cherniavskii
|
|
537
|
+
|
|
538
|
+
The `GridDensityTypes` enum was removed. Use `GridDensity` type instead.
|
|
539
|
+
|
|
540
|
+
#### Changes
|
|
541
|
+
|
|
542
|
+
- [DataGrid] Allow disabling of buttons in column panel (#6947) @MBilalShafi
|
|
543
|
+
- [DataGrid] Improve column definition typing (#7224) @cherniavskii
|
|
544
|
+
- [DataGrid] Improve column menu design and API (#6619) @MBilalShafi
|
|
545
|
+
- [DataGrid] Remove `GridDensityType` enum (#7304) @cherniavskii
|
|
546
|
+
- [DataGrid] Remove `rowHeight` and `headerHeight` from state (#7199) @DanailH
|
|
547
|
+
- [DataGrid] Remove column separator to match table styles (#7067) @MBilalShafi
|
|
548
|
+
- [DataGrid] Update Russian (ru-RU) locale (#7220) @VeceluXa
|
|
549
|
+
- [DataGridPro] Use row ID as `key` of the detail panels (#7302) @m4theushw
|
|
550
|
+
- [DataGridPremium] Fix `exceljs` import with parcel (#7284) @alexfauquette
|
|
551
|
+
|
|
552
|
+
### `@mui/x-date-pickers@6.0.0-alpha.13` / `@mui/x-date-pickers-pro@6.0.0-alpha.13`
|
|
553
|
+
|
|
554
|
+
#### Breaking changes
|
|
555
|
+
|
|
556
|
+
- Require Luxon 3.0.2 or higher (#7249) @flaviendelangle
|
|
557
|
+
|
|
558
|
+
`AdapterLuxon` now requires `luxon` in version `3.0.2` or higher in order to work.
|
|
559
|
+
|
|
560
|
+
Take a look at the [Upgrading Luxon](https://moment.github.io/luxon/#/upgrading) guide if you are using an older version.
|
|
561
|
+
|
|
562
|
+
#### Changes
|
|
563
|
+
|
|
564
|
+
- [DateRangePicker] Fix to propagate `disabled` and `readOnly` on multi input picker (#7135) @LukasTy
|
|
565
|
+
- [fields] Fix multi input fields root element props order and types (#7225) @LukasTy
|
|
566
|
+
- [fields] Support escaped characters (#7184) @flaviendelangle
|
|
567
|
+
- [pickers] Allow to define custom view renderers on the pickers (#7176) @flaviendelangle
|
|
568
|
+
- [pickers] Avoid running validation methods several times in `DateCalendar` (#7247) @flaviendelangle
|
|
569
|
+
- [pickers] Improve Korean (ko-KR) locale (#7266) @hanbin9775
|
|
570
|
+
- [pickers] Require Luxon 3.0.2 or higher (#7249) @flaviendelangle
|
|
571
|
+
- [pickers] Rework view internals (#7097) @flaviendelangle
|
|
572
|
+
|
|
573
|
+
### `@mui/x-codemod@6.0.0-alpha.13`
|
|
574
|
+
|
|
575
|
+
#### Changes
|
|
576
|
+
|
|
577
|
+
- [codemod] New codemod for view component renaming (#7264) @flaviendelangle
|
|
578
|
+
|
|
579
|
+
### Docs
|
|
580
|
+
|
|
581
|
+
- [docs] Fix some selectors not being documented (#7218) @cherniavskii
|
|
582
|
+
- [docs] New page for `DateCalendar` (#7053) @flaviendelangle
|
|
583
|
+
- [docs] Split selection docs (#7213) @m4theushw
|
|
584
|
+
|
|
585
|
+
### Core
|
|
586
|
+
|
|
587
|
+
- [core] Fix API demos callout spacing @oliviertassinari
|
|
588
|
+
|
|
589
|
+
## 6.0.0-alpha.12
|
|
590
|
+
|
|
591
|
+
_Dec 16, 2022_
|
|
592
|
+
|
|
593
|
+
We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
|
|
594
|
+
|
|
595
|
+
- 🚀 The `apiRef` prop is now available in the `@mui/x-data-grid` package:
|
|
596
|
+
|
|
597
|
+
```tsx
|
|
598
|
+
const apiRef = useGridApiRef();
|
|
599
|
+
|
|
600
|
+
return <DataGrid apiRef={apiRef} {...other} />;
|
|
601
|
+
```
|
|
602
|
+
|
|
603
|
+
See [the documentation](https://next.mui.com/x/react-data-grid/api-object/) for more information.
|
|
604
|
+
|
|
605
|
+
- 🎁 The `DataGridPremium` now supports cell selection:
|
|
606
|
+
|
|
607
|
+
```tsx
|
|
608
|
+
<DataGridPremium unstable_cellSelection />
|
|
609
|
+
```
|
|
610
|
+
|
|
611
|
+
See [the documentation](https://next.mui.com/x/react-data-grid/selection/#cell-selection) for more information
|
|
612
|
+
|
|
613
|
+
- 🌍 Support the Right To Left orientation on the fields components
|
|
614
|
+
- 📚 Documentation improvements
|
|
615
|
+
- 🐞 Bugfixes
|
|
616
|
+
|
|
617
|
+
### `@mui/x-data-grid@v6.0.0-alpha.12` / `@mui/x-data-grid-pro@v6.0.0-alpha.12` / `@mui/x-data-grid-premium@v6.0.0-alpha.12`
|
|
618
|
+
|
|
619
|
+
#### Breaking changes
|
|
620
|
+
|
|
621
|
+
- The `showCellRightBorder` was renamed to `showCellVerticalBorder`
|
|
622
|
+
- The `showColumnRightBorder` was renamed to `showColumnVerticalBorder`
|
|
623
|
+
- The `.MuiDataGrid-withBorder` CSS class was renamed to `.MuiDataGrid-withBorderColor` and it only sets `border-color` CSS property now.
|
|
624
|
+
- The following undocumented properties from `apiRef` were removed: `footerRef`, `headerRef`, `columnHeadersElementRef`, `columnHeadersContainerElementRef`
|
|
625
|
+
- The `GridHeaderPlaceholder` component was removed.
|
|
626
|
+
- The `MAX_PAGE_SIZE` constant was removed.
|
|
627
|
+
- The `useGridScrollFn` hook was removed.
|
|
628
|
+
|
|
629
|
+
#### Changes
|
|
630
|
+
|
|
631
|
+
- [DataGrid] Display sort column menu items as per `sortingOrder` prop (#7180) @MBilalShafi
|
|
632
|
+
- [DataGrid] Support `apiRef` in Community package (#6773) @cherniavskii
|
|
633
|
+
- [DataGridPremium] Add support for cell selection (#6567) @m4theushw
|
|
634
|
+
- [DataGridPremium] Use separate cache for aggregation columns pre-processor (#7142) @m4theushw
|
|
635
|
+
- [DataGridPro] Fix missing border in right-pinned columns (#4197) @cherniavskii
|
|
636
|
+
- [DataGridPro] Fix wrong border color on skeleton cells (#7202) @cherniavskii
|
|
637
|
+
|
|
638
|
+
### `@mui/x-date-pickers@v6.0.0-alpha.12` / `@mui/x-date-pickers-pro@v6.0.0-alpha.12`
|
|
639
|
+
|
|
640
|
+
#### Changes
|
|
641
|
+
|
|
642
|
+
- [fields] Fix bug introduced by RTL in single input range fields (#7189) @alexfauquette
|
|
643
|
+
- [fields] Support RTL out of the box (#6715) @alexfauquette
|
|
644
|
+
- [pickers] Clean `autoFocus` behavior on fields and new pickers (#7153) @flaviendelangle
|
|
645
|
+
- [pickers] Fix label on the new range pickers (#7210) @flaviendelangle
|
|
646
|
+
- [pickers] Fix wrong component name on `StaticNextDateTime` (#7187) @flaviendelangle
|
|
647
|
+
|
|
648
|
+
### Docs
|
|
649
|
+
|
|
650
|
+
- [docs] Add docs section about field placeholders' localization (#7139) @flaviendelangle
|
|
651
|
+
- [docs] Create a `DemoGrid` component to unify demos with several components (#7057) @flaviendelangle
|
|
652
|
+
- [docs] Document aggregation selectors (#7148) @cherniavskii
|
|
653
|
+
- [docs] Fix 301 links to demo pages in API pages (#7197) @oliviertassinari
|
|
654
|
+
- [docs] Fix errors and warning in demos (#7209) @LukasTy
|
|
655
|
+
- [docs] Use `DemoContainer` and `DemoItem` on every picker demo (#7149) @flaviendelangle
|
|
656
|
+
|
|
657
|
+
### Core
|
|
658
|
+
|
|
659
|
+
- [core] Fix broken test (#7179) @flaviendelangle
|
|
660
|
+
|
|
661
|
+
## 6.0.0-alpha.11
|
|
662
|
+
|
|
663
|
+
_Dec 8, 2022_
|
|
664
|
+
|
|
665
|
+
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
|
|
666
|
+
|
|
667
|
+
- 🚀 Add dragging support for the new Date Range Picker (`NextDateRangePicker`) (#6763) @LukasTy
|
|
668
|
+
- ⚡️ Improve performance of the `day` view (#7066) @flaviendelangle
|
|
669
|
+
- ✨ Fix lazy-loading feature not working in `DataGridPremium` (#7124) @m4theushw
|
|
670
|
+
- 🐞 Bugfixes
|
|
671
|
+
|
|
672
|
+
### `@mui/x-data-grid@v6.0.0-alpha.11` / `@mui/x-data-grid-pro@v6.0.0-alpha.11` / `@mui/x-data-grid-premium@v6.0.0-alpha.11`
|
|
673
|
+
|
|
674
|
+
#### Breaking changes
|
|
675
|
+
|
|
676
|
+
- The `filterPanelOperators` translation key was renamed to `filterPanelOperator` (#7062) @MBilalShafi
|
|
677
|
+
- The `components.Header` slot was removed. Use `components.Toolbar` slot instead (#6999) @cherniavskii
|
|
678
|
+
|
|
679
|
+
#### Changes
|
|
680
|
+
|
|
681
|
+
- [DataGrid] Fix rows not rendering properly after height change (#6892) @MBilalShafi
|
|
682
|
+
- [DataGrid] Remove `Header` slot (#6999) @cherniavskii
|
|
683
|
+
- [DataGrid] Rename `filterPanelOperators` -> `filterPanelOperator` (#7062) @MBilalShafi
|
|
684
|
+
- [DataGridPremium] Add support for lazy-loading (#7124) @m4theushw
|
|
685
|
+
- [DataGridPremium] Pass `groupId` to aggregation function (#7003) @m4theushw
|
|
686
|
+
|
|
687
|
+
### `@mui/x-date-pickers@v6.0.0-alpha.11` / `@mui/x-date-pickers-pro@v6.0.0-alpha.11`
|
|
688
|
+
|
|
689
|
+
#### Breaking changes
|
|
690
|
+
|
|
691
|
+
- Remove the callback version of the `action` prop on the `actionBar` slot (#7038) @flaviendelangle
|
|
692
|
+
|
|
693
|
+
The `action` prop of the `actionBar` slot is no longer supporting a callback.
|
|
694
|
+
Instead, you can pass a callback at the slot level:
|
|
695
|
+
|
|
696
|
+
```diff
|
|
697
|
+
<DatePicker
|
|
698
|
+
componentsProps={{
|
|
699
|
+
- actionBar: {
|
|
700
|
+
- actions: (variant) => (variant === 'desktop' ? [] : ['clear']),
|
|
701
|
+
- },
|
|
702
|
+
+ actionBar: ({ wrapperVariant }) => ({
|
|
703
|
+
+ actions: wrapperVariant === 'desktop' ? [] : ['clear'],
|
|
704
|
+
+ }),
|
|
705
|
+
}}
|
|
706
|
+
/>
|
|
707
|
+
```
|
|
708
|
+
|
|
709
|
+
- The `selectedDays` prop has been removed from the `Day` component (#7066) @flaviendelangle
|
|
710
|
+
If you need to access it, you can control the value and pass it to the slot using `componentsProps`:
|
|
711
|
+
|
|
712
|
+
```tsx
|
|
713
|
+
function CustomDay({ selectedDay, ...other }) {
|
|
714
|
+
// do something with 'selectedDay'
|
|
715
|
+
return <PickersDay {...other} />;
|
|
716
|
+
}
|
|
717
|
+
function App() {
|
|
718
|
+
const [value, setValue] = React.useState(null);
|
|
719
|
+
return (
|
|
720
|
+
<DatePicker
|
|
721
|
+
value={value}
|
|
722
|
+
onChange={(newValue) => setValue(newValue)}
|
|
723
|
+
components={{ Day: CustomDay }}
|
|
724
|
+
componentsProps={{
|
|
725
|
+
day: { selectedDay: value },
|
|
726
|
+
}}
|
|
727
|
+
/>
|
|
728
|
+
);
|
|
729
|
+
}
|
|
730
|
+
```
|
|
731
|
+
|
|
732
|
+
- The `currentlySelectingRangeEnd` / `setCurrentlySelectingRangeEnd` props on the Date Range Picker toolbar have been renamed to `rangePosition` / `onRangePositionChange` (#6989) @flaviendelangle
|
|
733
|
+
|
|
734
|
+
```diff
|
|
735
|
+
const CustomToolbarComponent = props => (
|
|
736
|
+
<div>
|
|
737
|
+
- <button onChange={() => props.setCurrentlySelectingRangeEnd('end')}>Edit end date</button>
|
|
738
|
+
+ <button onClick={() => props.onRangePositionChange('end')}>Edit end date</button>
|
|
739
|
+
- <div>Is editing end date: {props.currentlySelectingRangeEnd === 'end'}</div>
|
|
740
|
+
+ <div>Is editing end date: {props.rangePosition === 'end'}</div>
|
|
741
|
+
</div>
|
|
742
|
+
)
|
|
743
|
+
<DateRangePicker
|
|
744
|
+
components={{
|
|
745
|
+
Toolbar: CustomToolbarComponent
|
|
746
|
+
}}
|
|
747
|
+
/>
|
|
748
|
+
```
|
|
749
|
+
|
|
750
|
+
#### Changes
|
|
751
|
+
|
|
752
|
+
- [DateRangePicker] Add dragging support to edit range (#6763) @LukasTy
|
|
753
|
+
- [pickers] Fix lost props on Date Range Pickers (#7092) @flaviendelangle
|
|
754
|
+
- [pickers] Fix toolbar on the new range pickers (#6989) @flaviendelangle
|
|
755
|
+
- [pickers] Improve performance of `DayCalendar` (#7066) @flaviendelangle
|
|
756
|
+
- [pickers] Initialize date without time when selecting year or month (#7120) @LukasTy
|
|
757
|
+
- [pickers] Remove the callback version of the `action` prop in the `actionBar` component slot (#7038) @flaviendelangle
|
|
758
|
+
|
|
759
|
+
### Docs
|
|
760
|
+
|
|
761
|
+
- [docs] Add `GridCell` change in migration guide (#7087) @MBilalShafi
|
|
762
|
+
- [docs] Fix API page ad space regression (#7051) @oliviertassinari
|
|
763
|
+
- [docs] Update localization doc to use existing locale (#7102) @LukasTy
|
|
764
|
+
|
|
765
|
+
### Core
|
|
766
|
+
|
|
767
|
+
- [core] Add codemod to move l10n translation (#7027) @alexfauquette
|
|
768
|
+
- [core] Add notes to remove the legacy pickers internals (#7133) @flaviendelangle
|
|
769
|
+
- [core] Remove `internals-fields` imports (#7119) @flaviendelangle
|
|
770
|
+
- [core] Remove unused code (#7094) @flaviendelangle
|
|
771
|
+
- [core] Sync `ApiPage.js` with monorepo (#7073) @oliviertassinari
|
|
772
|
+
- [test] Fix karma-mocha assertion error messages (#7054) @cherniavskii
|
|
773
|
+
|
|
774
|
+
## 6.0.0-alpha.10
|
|
775
|
+
|
|
776
|
+
_Dec 1, 2022_
|
|
777
|
+
|
|
778
|
+
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
|
|
779
|
+
|
|
780
|
+
- 🌍 Improve Ukrainian (uk-UA) and add Urdu (ur-PK) locales
|
|
781
|
+
- 📚 Documentation improvements
|
|
782
|
+
- 🐞 Bugfixes
|
|
783
|
+
|
|
784
|
+
### `@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`
|
|
785
|
+
|
|
786
|
+
### Breaking changes
|
|
787
|
+
|
|
788
|
+
- [DataGrid] Removes `GridCell` fallback to `valueToRender` on `null` children (#7023) @MBilalShafi
|
|
789
|
+
|
|
790
|
+
Returning `null` in `column.renderCell` or `column.renderEditCell` now renders an empty cell instead of the default formatted value.
|
|
791
|
+
|
|
792
|
+
- [DataGrid] Refactor `GridFilterItem` props (#6985) @MBilalShafi
|
|
793
|
+
|
|
794
|
+
Properties `columnField` and `operatorValue` of `GridFilterItem` are renamed `field` and `operator`. And `operator` property is now required.
|
|
795
|
+
|
|
796
|
+
```diff
|
|
797
|
+
filterModel: {
|
|
798
|
+
items: [{
|
|
799
|
+
- columnField: 'rating',
|
|
800
|
+
+ field: 'rating',
|
|
801
|
+
- operatorValue: '>',
|
|
802
|
+
+ operator: '>', // required
|
|
803
|
+
value: '2.5'
|
|
804
|
+
}],
|
|
805
|
+
},
|
|
806
|
+
```
|
|
807
|
+
|
|
808
|
+
#### Changes
|
|
809
|
+
|
|
810
|
+
- [DataGrid] Fix row selection when clicking blank cell (#6974) @yami03
|
|
811
|
+
- [DataGrid] Refactor `GridFilterItem` props (#6985) @MBilalShafi
|
|
812
|
+
- [DataGrid] Removes `<GridCell />` fallback to `valueToRender` on `null` children (#7023) @MBilalShafi
|
|
813
|
+
- [DataGridPremium] Fix empty column group in Excel export (#7029) @alexfauquette
|
|
814
|
+
- [DataGridPremium] Update cache before hydrating columns (#7040) @m4theushw
|
|
815
|
+
- [DataGridPremium] Use custom cell component for grouping cell by default (#6692) @cherniavskii
|
|
816
|
+
- [l10n] Improve Ukrainian (uk-UA) locale (#7009) @rettoua
|
|
817
|
+
|
|
818
|
+
### `@mui/x-date-pickers@v6.0.0-alpha.10` / `@mui/x-date-pickers-pro@v6.0.0-alpha.10`
|
|
819
|
+
|
|
820
|
+
#### Breaking changes
|
|
821
|
+
|
|
822
|
+
- Rename `dateRangeIcon` to `dateIcon` (#7024) @LukasTy
|
|
823
|
+
|
|
824
|
+
The `dateRangeIcon` prop has been renamed to `dateIcon`:
|
|
825
|
+
|
|
826
|
+
```diff
|
|
827
|
+
// Same on all other Date Time Picker variations
|
|
828
|
+
<DateTimePicker
|
|
829
|
+
componentsProps={{
|
|
830
|
+
tabs: {
|
|
831
|
+
- dateRangeIcon: <LightModeIcon />,
|
|
832
|
+
+ dateIcon: <LightModeIcon />,
|
|
833
|
+
}
|
|
834
|
+
}}
|
|
835
|
+
/>
|
|
836
|
+
```
|
|
837
|
+
|
|
838
|
+
#### Changes
|
|
839
|
+
|
|
840
|
+
- [DateTimePicker] Rename `dateRangeIcon` to `dateIcon` (#7024) @LukasTy
|
|
841
|
+
- [pickers] Allow non-controlled usage of `TimeClock` (#6962) @flaviendelangle
|
|
842
|
+
- [pickers] Throw error when using adapter from `@date-io` (#6972) @flaviendelangle
|
|
843
|
+
- [l10n] Add Urdu (ur-PK) locale (#7007) @MBilalShafi
|
|
844
|
+
- [l10n] Improve Ukrainian (uk-UA) locale (#7009) @rettoua
|
|
845
|
+
|
|
846
|
+
### Docs
|
|
847
|
+
|
|
848
|
+
- [docs] Add Demos section on the pickers API pages (#6909) @flaviendelangle
|
|
849
|
+
- [docs] Add missing pickers migration docs (#7000) @LukasTy
|
|
850
|
+
- [docs] Fix broken link (#7048) @flaviendelangle
|
|
851
|
+
- [docs] Improve demo about customizing pagination (#6724) @m4theushw
|
|
852
|
+
- [docs] Keep track of localization completion (#7002) @alexfauquette
|
|
853
|
+
- [docs] Remove `LocalizationProvider` from previews (#6869) @flaviendelangle
|
|
854
|
+
- [docs] Remove the statement of support to RTL (#6521) @joserodolfofreitas
|
|
855
|
+
- [docs] Rework localization doc pages (#6625) @flaviendelangle
|
|
856
|
+
- [docs] Setup GitHub issue template for feedbacks about docs (#7026) @alexfauquette
|
|
857
|
+
- [docs] Test links with API page ignoring url hash (#7004) @alexfauquette
|
|
858
|
+
- [docs] Update API links from clock-picker to time-clock (#6993) @alexfauquette
|
|
859
|
+
- [docs] Use new pickers on the validation page (#7047) @flaviendelangle
|
|
860
|
+
|
|
861
|
+
### Core
|
|
862
|
+
|
|
863
|
+
- [core] Remove useless type casting in field hooks (#7045) @flaviendelangle
|
|
864
|
+
- [test] Sync `test:unit` with monorepo (#6907) @oliviertassinari
|
|
865
|
+
|
|
6
866
|
## 6.0.0-alpha.9
|
|
7
867
|
|
|
8
868
|
_Nov 24, 2022_
|
|
@@ -1096,6 +1956,180 @@ You can find more information about the new api, including how to set those tran
|
|
|
1096
1956
|
- [test] Skip tests for column pinning and dynamic row height (#5997) @m4theushw
|
|
1097
1957
|
- [website] Improve security header @oliviertassinari
|
|
1098
1958
|
|
|
1959
|
+
## 5.17.20
|
|
1960
|
+
|
|
1961
|
+
_Jan 19, 2023_
|
|
1962
|
+
|
|
1963
|
+
We'd like to offer a big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
|
|
1964
|
+
|
|
1965
|
+
- 🌍 Improve Italian (it-IT) and Swedish (sv-SE) locales
|
|
1966
|
+
- 🐞 Bugfixes
|
|
1967
|
+
|
|
1968
|
+
### `@mui/x-data-grid@v5.17.20` / `@mui/x-data-grid-pro@v5.17.20` / `@mui/x-data-grid-premium@v5.17.20`
|
|
1969
|
+
|
|
1970
|
+
#### Changes
|
|
1971
|
+
|
|
1972
|
+
- [DataGrid] Fix flickering on grid scroll (#7609) @cherniavskii
|
|
1973
|
+
- [DataGrid] Remove tag limit from `isAnyOf` operator input (#7616) @m4theushw
|
|
1974
|
+
- [l10n] Improve Swedish (sv-SE) locale (#7463) @MaanTyringe
|
|
1975
|
+
|
|
1976
|
+
### `@mui/x-date-pickers@v5.0.15` / `@mui/x-date-pickers-pro@v5.0.15`
|
|
1977
|
+
|
|
1978
|
+
#### Changes
|
|
1979
|
+
|
|
1980
|
+
- [pickers] Ensure `key` is passed without object spreading (#7584) @alexfauquette
|
|
1981
|
+
- [l10n] Improve Italian (it-IT) locale (#7547) @marikadeveloper
|
|
1982
|
+
|
|
1983
|
+
## 5.17.19
|
|
1984
|
+
|
|
1985
|
+
_Jan 16, 2023_
|
|
1986
|
+
We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
|
|
1987
|
+
|
|
1988
|
+
- 🌍 Improve Spanish (es-ES) and add Belarusian (be-BY) and Urdu (ur-PK) locales
|
|
1989
|
+
- 🐞 Bugfixes
|
|
1990
|
+
|
|
1991
|
+
### `@mui/x-data-grid@v5.17.19` / `@mui/x-data-grid-pro@v5.17.19` / `@mui/x-data-grid-premium@v5.17.19`
|
|
1992
|
+
|
|
1993
|
+
#### Changes
|
|
1994
|
+
|
|
1995
|
+
- [DataGrid] Improve print support (#7407) @cherniavskii
|
|
1996
|
+
- [DataGrid] Improve Spanish (es-ES) locale (#7438) @Anderssxn
|
|
1997
|
+
- [DataGridPremium] Fix Excel export not working with date strings (#7478) @cherniavskii
|
|
1998
|
+
- [DataGridPro] Fix missing column headers border with top-pinned rows (#7399) @cherniavskii
|
|
1999
|
+
|
|
2000
|
+
### `@mui/x-date-pickers@v5.0.14` / `@mui/x-date-pickers-pro@v5.0.14`
|
|
2001
|
+
|
|
2002
|
+
#### Changes
|
|
2003
|
+
|
|
2004
|
+
- [pickers] Add Belarusian (be-BY) locale (#7450) @volhalink
|
|
2005
|
+
- [pickers] Add Urdu (ur-PK) locale (#7449) @MBilalShafi
|
|
2006
|
+
|
|
2007
|
+
## 5.17.18
|
|
2008
|
+
|
|
2009
|
+
_Jan 5, 2023_
|
|
2010
|
+
|
|
2011
|
+
We'd like to offer a big thanks to the 3 contributors who made this release possible. Here are some highlights ✨:
|
|
2012
|
+
|
|
2013
|
+
- 🐞 Bugfixes
|
|
2014
|
+
|
|
2015
|
+
### `@mui/x-data-grid@v5.17.18` / `@mui/x-data-grid-pro@v5.17.18` / `@mui/x-data-grid-premium@v5.17.18`
|
|
2016
|
+
|
|
2017
|
+
#### Changes
|
|
2018
|
+
|
|
2019
|
+
- [DataGrid] Fix rows not rendering properly after height change (#7376) @cherniavskii
|
|
2020
|
+
- [DataGrid] Fix selected text in cell input not being copied in Firefox (#7330) @cherniavskii
|
|
2021
|
+
- [DataGridPremium] Export row grouping column menu components (#7308) @cherniavskii
|
|
2022
|
+
|
|
2023
|
+
### `@mui/x-date-pickers@v5.0.13` / `@mui/x-date-pickers-pro@v5.0.13`
|
|
2024
|
+
|
|
2025
|
+
#### Changes
|
|
2026
|
+
|
|
2027
|
+
- [pickers] Fix the product license reference name (#7367)
|
|
2028
|
+
|
|
2029
|
+
### Docs
|
|
2030
|
+
|
|
2031
|
+
- [docs] Redirect translated pages (#7370) @cherniavskii
|
|
2032
|
+
|
|
2033
|
+
### Core
|
|
2034
|
+
|
|
2035
|
+
- [core] Fix release date (#7314) @DanailH
|
|
2036
|
+
- [core] Fix the product license reference name (#7367) @oliviertassinari
|
|
2037
|
+
- [core] Upgrade monorepo (#7344) @cherniavskii
|
|
2038
|
+
|
|
2039
|
+
## 5.17.17
|
|
2040
|
+
|
|
2041
|
+
_Dec 24, 2022_
|
|
2042
|
+
|
|
2043
|
+
We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
|
|
2044
|
+
|
|
2045
|
+
- 🌍 Improve Russian (ru-RU) and Korean (ko-KR) locales
|
|
2046
|
+
- 🐞 Bugfixes
|
|
2047
|
+
|
|
2048
|
+
### `@mui/x-data-grid@v5.17.17` / `@mui/x-data-grid-pro@v5.17.17` / `@mui/x-data-grid-premium@v5.17.17`
|
|
2049
|
+
|
|
2050
|
+
#### Changes
|
|
2051
|
+
|
|
2052
|
+
- [DataGrid] Update Russian (ru-RU) locale (#7291) @VeceluXa
|
|
2053
|
+
- [DataGridPro] Use row ID as `key` of the detail panels (#7311) @m4theushw
|
|
2054
|
+
- [DataGridPremium] Fix `exceljs` import with parcel (#7285) @alexfauquette
|
|
2055
|
+
|
|
2056
|
+
### `@mui/x-date-pickers@v5.0.12` / `@mui/x-date-pickers-pro@v5.0.12`
|
|
2057
|
+
|
|
2058
|
+
#### Changes
|
|
2059
|
+
|
|
2060
|
+
- [pickers] Improve Korean (ko-KR) locale (#7283) @hanbin9775
|
|
2061
|
+
|
|
2062
|
+
## 5.17.16
|
|
2063
|
+
|
|
2064
|
+
_Dec 16, 2022_
|
|
2065
|
+
|
|
2066
|
+
We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
|
|
2067
|
+
|
|
2068
|
+
- 🐞 Bugfixes
|
|
2069
|
+
|
|
2070
|
+
### `@mui/x-data-grid@v5.17.16` / `@mui/x-data-grid-pro@v5.17.16` / `@mui/x-data-grid-premium@v5.17.16`
|
|
2071
|
+
|
|
2072
|
+
#### Changes
|
|
2073
|
+
|
|
2074
|
+
- [DataGrid] Display sort column menu items as per `sortingOrder` prop (#7125) @hanbin9775
|
|
2075
|
+
- [DataGrid] Fix flickering on mount (#7155) @cherniavskii
|
|
2076
|
+
- [DataGridPremium] Use separate cache for aggregation columns pre-processor (#7174) @m4theushw
|
|
2077
|
+
|
|
2078
|
+
### `@mui/x-date-pickers@v5.0.11` / `@mui/x-date-pickers-pro@v5.0.11`
|
|
2079
|
+
|
|
2080
|
+
#### Changes
|
|
2081
|
+
|
|
2082
|
+
- [DateTimePicker] Update export pattern (#7172) @kealjones-wk
|
|
2083
|
+
|
|
2084
|
+
### Docs
|
|
2085
|
+
|
|
2086
|
+
- [docs] Document aggregation selectors (#7151) @cherniavskii
|
|
2087
|
+
|
|
2088
|
+
## 5.17.15
|
|
2089
|
+
|
|
2090
|
+
_Dec 8, 2022_
|
|
2091
|
+
|
|
2092
|
+
We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
|
|
2093
|
+
|
|
2094
|
+
- ✨ Fix lazy-loading not working in `DataGridPremium` (#7130) @m4theushw
|
|
2095
|
+
- 🐞 Bugfixes
|
|
2096
|
+
|
|
2097
|
+
### `@mui/x-data-grid@v5.17.15` / `@mui/x-data-grid-pro@v5.17.15` / `@mui/x-data-grid-premium@v5.17.15`
|
|
2098
|
+
|
|
2099
|
+
#### Changes
|
|
2100
|
+
|
|
2101
|
+
- [DataGridPremium] Add support for lazy-loading (#7130) @m4theushw
|
|
2102
|
+
- [DataGridPremium] Pass `groupId` to the aggregation function (#7143) @m4theushw
|
|
2103
|
+
|
|
2104
|
+
### `@mui/x-date-pickers@v5.0.10` / `@mui/x-date-pickers-pro@v5.0.10`
|
|
2105
|
+
|
|
2106
|
+
#### Changes
|
|
2107
|
+
|
|
2108
|
+
- [pickers] Initialize date without time when selecting year or month (#7136) @LukasTy
|
|
2109
|
+
|
|
2110
|
+
### Docs
|
|
2111
|
+
|
|
2112
|
+
- [docs] Fix the nested import on the api pages (#7134) @flaviendelangle
|
|
2113
|
+
- [docs] Keep track of the localization completion (#7099) @alexfauquette
|
|
2114
|
+
- [docs] Update localization doc to use existing locale (#7104) @LukasTy
|
|
2115
|
+
|
|
2116
|
+
## 5.17.14
|
|
2117
|
+
|
|
2118
|
+
_Dec 1, 2022_
|
|
2119
|
+
|
|
2120
|
+
We'd like to offer a big thanks to the 3 contributors who made this release possible. Here are some highlights ✨:
|
|
2121
|
+
|
|
2122
|
+
- 🌍 Improve Ukrainian (uk-UA) locale (#7035) @rettoua
|
|
2123
|
+
- 🐞 Bugfixes
|
|
2124
|
+
|
|
2125
|
+
### `@mui/x-data-grid@v5.17.14` / `@mui/x-data-grid-pro@v5.17.14` / `@mui/x-data-grid-premium@v5.17.14`
|
|
2126
|
+
|
|
2127
|
+
#### Changes
|
|
2128
|
+
|
|
2129
|
+
- [DataGrid] Fix row selection when clicking blank cell (#7056) @yami03
|
|
2130
|
+
- [DataGridPremium] Update cache before hydrating columns (#7043) @m4theushw
|
|
2131
|
+
- [l10n] Improve Ukrainian (uk-UA) locale (#7035) @rettoua
|
|
2132
|
+
|
|
1099
2133
|
## 5.17.13
|
|
1100
2134
|
|
|
1101
2135
|
_Nov 24, 2022_
|