v5.6.0
We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
-
📦 Use the same bundling scripts as those in the material-ui repository (#3965) @flaviendelangle
The code structure and the bundling strategy have been modified to provide better isolation between components.
The bundle size is slightly reduced, but with tree shaking, the doors are open for significant gains in the future. 🏋
We predict that such modifications could potentially impact edge cases.
If you encounter problems with your build, please open an issue.
These issues will have high priority as part of our risk mitigation strategy. -
🧼 Clean and document the column selectors (#4010) @flaviendelangle
Column selectors have been renamed to improve clarity.
The old names have been deprecated and will be removed in v6.
Here are the new names and the modifications needed to get the same information with the new selectors.Old name New name allGridColumnsFieldsSelector
gridColumnFieldsSelector
allGridColumnsSelector
gridColumnDefinitionsSelector
visibleGridColumnsSelector
gridVisibleColumnDefinitionsSelector
filterableGridColumnsSelector
gridFilterableColumnDefinitionsSelector
-const { all, lookup, columnVisibilityModel } = gridColumnsSelector(apiRef) +const all = gridColumnFieldsSelector(apiRef) +const lookup = gridColumnLookupSelector(apiRef) +const columnVisibilityModel = gridColumnVisibilityModelSelector(apiRef) -const filterableFields = filterableGridColumnsIdsSelector(apiRef); +const lookup = gridFilterableColumnLookupSelector(apiRef); +const filterableFields = gridColumnFieldsSelector(apiRef).filter(field => lookup[field]); -const visibleColumnsNumber = visibleGridColumnsLengthSelector(apiRef); +const visibleColumnsNumber = gridVisibleColumnDefinitionsSelector(apiRef).length; -const { totalWidth, positions } = gridColumnsMetaSelector(apiRef); +const totalWidth = gridColumnsTotalWidthSelector(apiRef); +const positions = gridColumnPositionsSelector(apiRef);
-
📚 Documentation improvements
-
🐞 Bug and typo fixes
@mui/x-data-grid@v5.6.0
/ @mui/x-data-grid-pro@v5.6.0
Changes
- [DataGrid] Add slot for filter panel delete icon (#4069) @Hameezr
- [DataGrid] Add specific label for
linkOperator
(#3915) @alexfauquette - [DataGrid] Allow for truncated and multiline content in grid cells (#3955) @DanailH
- [DataGrid] Allow to navigate between cells with keyboard once inside an
actions
column (#3375) @m4theushw - [DataGrid] Fix desynchronization between rows and header when sorting (#4058) @alexfauquette
- [DataGrid] Clean and document the columns selector (#4010) @flaviendelangle
- [DataGrid] Deprecate and stop typing the api params of
GridCellParams
/GridValueGetterParams
and affiliated (#4089) @ flaviendelangle - [DataGrid] Differentiate the Pro and Community versions of
GridState
,GridApi
andGridApiRef
(#3648) @flaviendelangle - [DataGrid] Fix column selection for print export (#3917) @alexfauquette
- [DataGrid] Fix horizontal scroll not working on empty grid (#3821) @cherniavskii
- [DataGrid] Fix input element in custom header (#3624) @alexfauquette
- [DataGrid] Improve
singleSelect
filter performance (#3956) @cherniavskii - [DataGrid] Improve custom overlay slots positioning (#3832) @cherniavskii
- [DataGrid] Improve
flex
implementation match the W3C standard (#4006) @cherniavskii - [DataGrid] Improve the invalid
sortModel
andfilterModel
warnings (#3671) @flaviendelangle - [DataGrid] Memoize
Popper
modifiers passed to panel (#3975) @m4theushw - [DataGrid] Prevent focus while
Popper
is not fully positioned (#4067) @m4theushw - [DataGrid] Remove
GridCell
'sborderBottom
when it is the last row (#3519) @DanailH - [DataGrid] Remove padding from the header title (#3691) @valenfv
- [DataGrid] Reuse previous
rowNode
when building tree and the newrowNode
is equal to the previous one (#3961) @flaviendelangle - [DataGrid] Remove last filter item when no value to clean and close the filter panel (#3910) @alexfauquette
- [DataGrid] Send warning when the
rowCount
is not provided while using server pagination (#3902) @alexfauquette - [DataGrid] Stop checkbox ripple on blur (#3835) @m4theushw
- [DataGrid] Stop calling
onRowClick
when clicking in cells with interactive elements (#3929) @m4theushw - [DataGrid] Use only
headerName
when available to search column (#3959) @pkratz - [DataGrid] Use the bundling scripts as the packages published by the /~https://github.com/mui/material-ui repository (#3965) @flaviendelangle
- [DataGridPro] Add
unstable_setRowHeight
method toapiRef
(#3751) @cherniavskii - [DataGridPro] Always export the
pageSize
andpage
when it has been initialized or is being controlled (#3908) @flaviendelangle - [DataGridPro] Disable export for detail panel column (#4057) @gustavhagland
- [DataGridPremium] Support
valueFormatter
on the grouping column (#4022) @flaviendelangle - [l10n] Improve Bulgarian (bg-BG) locale (#3949) @DanailH
- [l10n] Improve German (de-DE) locale (#4077) @sebastianfrey
- [l10n] Improve Hebrew (he-IL) locale (#3930) @ColdAtNight
Docs
- [docs] Add example of custom operator based on built-in ones (#3911) @flaviendelangle
- [docs] Add missing words in the filtering page (#4079) @flaviendelangle
- [docs] Avoid crash in demos using row grouping and custom formatted cells (#4065) @m4theushw
- [docs] Fix
Commodity
andEmployee
CSV export of thecountry
column (#3912) @DanailH - [docs] Fix links to the GitHub repository (#4005) @oliviertassinari
- [docs] Fix typo (#3923) @oliviertassinari
- [docs] Fix typo (#4016) @MathisBurger
- [docs] Fix typo in client-side validation example (#4066) @krallj
- [docs] Remove useless hide id column (#4021) @alexfauquette
Core
- [core] Allows to add custom export item (#3891) @alexfauquette
- [core] Remove the
_modules_
folder (#3953) @flaviendelangle - [core] Fix typo in
useGridScroll.ts
(#3973) @hexm7 - [core] Fix typos, improve wordings and other various fixes (#4062) @flaviendelangle
- [core] Initialize states before feature hooks (#3896) @m4theushw
- [code] Make
@mui/x-data-grid-pro
import shared code from@mui/x-data-grid
(#3688) @flaviendelangle - [core] Migrate
@mui/x-license-pro
to the new bundling strategy (#3738) @flaviendelangle - [core] Reduce usage of
useGridSelector
inside feature hooks (#3978) @flaviendelangle - [core] Retry l10n CI if 502 returned (#3977) @alexfauquette
- [core] Update release instructions (#3920) @cherniavskii
- [core] Use international locale format (#3921) @oliviertassinari
- [core] Fix license generating script (#4055) @Janpot
- [test] Add screenshot of the filter panel (#4072) @alexfauquette
- [test] Reduce memory usage to run unit tests (#4031) @m4theushw
- [test] Skip test on Firefox (#3926) @m4theushw