4.0.0-alpha.29
May 19, 2021
Big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
-
🚀 Performance increased when filtering, sorting, and rendering (#1513) @dtassone
-
💅 Add
columnHeader
,row
andcell
to theclasses
prop (#1660) @DanailH -
✅ Add the
isRowSelectable
prop to disable selection on certain rows (#1659) @m4theushwSee the documentation for more details.
-
⚡️ Add new icon slot to be displayed when the column is unsorted (#1415) @m4theushw
-
⚙ Improve consistency of the API to prepare for the first beta release
-
🐞 Bugfixes
@material-ui/[email protected] / @material-ui/[email protected]
Breaking changes
-
[DataGrid] Remove the properties
element
,rowIndex
, andcolIndex
from allparams
arguments (#1513) @dtassoneYou can use the following
apiRef
methods to replace some of them:-params.rowIndex -params.colIndex +apiRef.current.getRowIndex(params.id) +apiRef.current.getColumnIndex(params.field)
-
[DataGrid] Calling
params.getValue
now requires the id to be passed (#1513) @dtassone-params.getValue(field) +params.getValue(params.id, field)
-
[DataGrid] Rename CSS classes (#1660) @DanailH
MuiDataGrid-colCellWrapper
toMuiDataGrid-columnHeaderWrapper
MuiDataGrid-colCell
toMuiDataGrid-columnHeader
MuiDataGrid-colCellCheckbox
toMuiDataGrid-columnHeaderCheckbox
MuiDataGrid-colCellSortable
toMuiDataGrid-columnHeaderSortable
MuiDataGrid-colCellCenter
toMuiDataGrid-columnHeaderCenter
MuiDataGrid-colCellLeft
toMuiDataGrid-columnHeaderLeft
MuiDataGrid-colCellRight
toMuiDataGrid-columnHeaderRight
-
[XGrid] Calling
setCellFocus
now requires the id and field to be passed (#1513) @dtassone-apiRef.current.setCellFocus: (indexes: GridCellIndexCoordinates) => void; +apiRef.current.setCellFocus: (id: GridRowId, field: string) => void;
-
[XGrid] Rename
apiRef
methods (#1513) @dtassoneChanges on
apiRef.current
:-apiRef.current.getRowIndexFromId: (id: GridRowId) => number; +apiRef.current.getRowIndex: (id: GridRowId) => number;
-
[XGrid] Rename
apiRef
methods (#1667) @m4theushwChanges on
apiRef.current
:-apiRef.current.getColumnFromField: (field: string) => GridColDef; -apiRef.current.getRowFromId: (id: GridRowId) => GridRowModel; +apiRef.current.getColumn: (field: string) => GridColDef; +apiRef.current.getRow: (id: GridRowId) => GridRowModel;
Changes
- [DataGrid] Add Slovak (skSK) locale (#1634) @martinvysnovsky
- [DataGrid] Add
columnHeader
,row
andcell
in addition toroot
in classes prop (#1660) @DanailH - [DataGrid] Add
isRowSelectable
prop (#1659) @m4theushw - [DataGrid] Add sort icon for when column is unsorted (#1415) @m4theushw
- [DataGrid] Fix
id
andaria-labelledby
attributes on the column menu (#1460) @m4theushw - [DataGrid] Fix broken checkbox in Material-UI v5 (#1587) @ZeeshanTamboli
- [DataGrid] Fix CSS classes prefix (#1693) @m4theushw
- [DataGrid] Fix German (deDe) locale (#1624) @klinge27
- [DataGrid] Fix filter with object as value and value getter (#1665) @dtassone
- [DataGrid] Fix incorrect date selection (#1652) @aTmb405
- [DataGrid] Fix overflow of maximum page (#1583) @oliviertassinari
- [DataGrid] Fix typo in Italian (itIT) locale (#1635) @profcav
- [DataGrid] Improve performance of width resizing (#1686) @dtassone
- [DataGrid] Make rows immutable for better developer experience (#1661) @ZeeshanTamboli
- [DataGrid] Pass state values as props (#1628) @m4theushw
- [DataGrid] Improve performance with filtering, sorting, and rendering (#1513) @dtassone
- [XGrid] Fix checkbox column resizing (#1682) @elyesbenabdelkader
Docs
- [docs] Add description for all events (#1572) @m4theushw
- [docs] Add missing CSS rules (#1694) @ZeeshanTamboli
- [docs] Add missing descriptions in
GridFilterApi
(#1620) @m4theushw - [docs] Clean demos components (#1681) @oliviertassinari
- [docs] Fix docs demo (#1691) @dtassone
- [docs] Improve Filtering page (#1671) @m4theushw
- [docs] Improve the data grid components page (#1382) @dtassone
- [docs] Refine the descriptions to be clearer (#1589) @oliviertassinari
- [docs] Reshuffle columns and rows styling sections (#1622) @DanailH
Core
- [core] Fix dependabot config (#1619) @oliviertassinari
- [core] Remove
makeStyles
dependency on@material-ui/core/styles
(#1627) @mnajdova - [core] Remove
withStyles
dependency on@material-ui/core/styles
(#1690) @mnajdova - [core] Replace
classnames
utility withclsx
dependency (#1586) @ZeeshanTamboli - [core] Reuse
colIndex
already computed (#1666) @oliviertassinari - [test] Add constraints on cell render (#1662) @oliviertassinari
- [test] Catch broken demos (#1692) @oliviertassinari