Releases: mui/mui-x
v5.6.1
We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
-
[DataGrid] Allow to add margins or borders between rows (#3848) @m4theushw
<DataGrid getRowSpacing={() => ({ top: 10, bottom: 10 })} />
Check the documentation for more information.
@mui/[email protected]
/ @mui/[email protected]
Changes
- [DataGrid] Display column's filter icon if a filter is applied (#4120) @DanailH
- [DataGrid] Do not loop through rows to compute top level rows count when the tree is flat (#4081) @flaviendelangle
- [DataGrid] Rename API method (#4148) @m4theushw
- [DataGrid] Support extending built-in column types (#4114) @cherniavskii
- [DataGridPro] Re-export the components removed by mistake during bundle split (#4134) @flaviendelangle
Docs
- [docs] Fix links to prevent duplicate search result (#4130) @siriwatknp
- [docs] Fix outdated links to
localeTextConstants.ts
(#4080) @patilvishal755 - [docs] Neglect e2e tests related to search (#4118) @siriwatknp
- [docs] Use regex instead of specific url in e2e-website-tests (#4121) @siriwatknp
Core
- [core] Enforce
noImplicitAny
(#4084) @cherniavskii - [core] Improve the Pro support issue template (#4082) @oliviertassinari
- [core] Initialize remaining states before feature hooks (#4036) @m4theushw
- [core] Merge
page
andpageSize
state initializer into a singlepagination
state initializer (#4087) @flaviendelangle - [core] Prepare
yarn docs:api:build
scripts for multi packages support (#4111) @flaviendelangle - [core] Upgrade
@mui/monorepo
(#4149) @cherniavskii - [core] Use
buildWarning
andwrapWithWarningOnCall
for deprecated methods and wrong usages (#4056) @flaviendelangle - [test] Make focus state out-of-sync warning opt-in (#4129) @m4theushw
- [test] Only test custom input keyboard event in edit mode (#4075) @alexfauquette
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/[email protected]
/ @mui/[email protected]
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
v5.5.1
A big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
-
🎛 Add props to customize the behavior of the filter panel (#3497) @alexfauquette
<DataGrid componentsProps={{ filterPanel: { columnsSort: 'asc' }, }} />
Check the documentation to see all available props.
-
📚 Documentation improvements
-
🐞 Bugfixes
@mui/[email protected]
/ @mui/[email protected]
- [DataGrid] Add
debounceMs
option tosetEditCellValue
method (#3825) @m4theushw - [DataGrid] Allow to translate
checkboxSelection
labels (#3846) @m4theushw - [DataGrid] Customize the filter panel with props (#3497) @alexfauquette
- [DataGrid] Fix filtering of string columns for
value = 0
(#3843) @flaviendelangle - [DataGrid] Fix focus when
blur
event rerenders the grid (#3718) @alexfauquette - [DataGridPro] Add clear error when the tree data has duplicated paths (#3840) @flaviendelangle
- [DataGridPro] Avoid imports from
@mui/base
(#3903) @cherniavskii - [DataGridPro] Register column pinning after selection (#3887) @m4theushw
- [l10n] Improve Turkish (tr-TR) locale (#3842) @atillaaliyev
Docs
- [docs] Update v5 migration docs (#3847) @oliviertassinari
- [docs] Fix sorting feature link (#3877) @alexfauquette
- [docs] Migrate content to the new location (#3730) @siriwatknp
- [docs] Unify multi-filtering introduction with the multi-sorting introduction (#3766) @flaviendelangle
- [docs] Move row grouping to Premium plan (#3827) @alexfauquette
- [docs] Reorganize export docs to prepare Excel export doc (#3822) @alexfauquette
Core
- [core] Add hook
useGridPagination
to callonGridPage
andonGridPageSize
(#3880) @flaviendelangle - [core] Fix docs deploy script (#3874) @oliviertassinari
- [core] Move the git repository to a new location (#3872) @oliviertassinari
- [test] Add
codecov
(#3873) @oliviertassinari
v5.5.0
A big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
-
🎁 Add support for master detail (#3387) @m4theushw
-
🌍 Add Danish (daDK) locale (#3800) @kasperfilstrup
-
📚 Documentation improvements
-
🐞 Bugfixes
@mui/[email protected]
/ @mui/[email protected]
Changes
- [DataGrid] Add methods to import and export the state (#3593) @flaviendelangle
- [DataGrid] Fix PageUp jumping directly to the column header skipping the first row (#3761) @cherniavskii
- [DataGrid] Throw an error if incorrect column type is used (#3757) @DanailH
- [DataGridPro] Add support for master/detail (#3387) @m4theushw
- [l10n] Add Danish (daDK) locale (#3800) @kasperfilstrup
- [l10n] Improve Dutch (nlNL) locale (#3724) @MatthijsKok
- [l10n] Improve Hebrew (heIL) locale (#3775) @ColdAtNight
- [l10n] Improve Russian (ruRU) locale (#3818) @Leniorko
Docs
- [docs] Add default value for
Row
slot (#3807) @cherniavskii - [docs] Extend full width (#3815) @m4theushw
- [docs] Fix country column sorting not working (#3740) @cherniavskii
- [docs] Fix custom render cell when row is auto generated (#3810) @alexfauquette
- [docs] Fix flag layout shift (#3773) @oliviertassinari
- [docs] Mention row
id
requirement and documentgetRowId
prop (#3765) @cherniavskii - [docs] Refresh the license key documentation (#3529) @oliviertassinari
Core
- [core] Clean
filtering.DataGrid.test.tsx
(#3768) @flaviendelangle - [core] Improve GitHub label workflows (#3680) @DanailH
- [core] Isolate selectors called without
useGridSelector
(#3774) @m4theushw - [core] Prepare infra for pickers migration (#3714) @flaviendelangle
- [core] Remove none code related instructions from git (#3794) @oliviertassinari
- [core] Remove remaining usages of
@mui/styles
(#3769) @m4theushw - [core] Remove Stylelint (#3811) @m4theushw
- [core] Split cell / row editing into different hooks (#3219) @m4theushw
- [core] Stop using an enum for
GridPreProcessingGroup
(#3798) @flaviendelangle - [core] Fix failing tests (#3817) @cherniavskii
- [code] Fix
docs:api
silent crash (#3808) @cherniavskii - [test] Increase timeout for Firefox (#3813) @m4theushw
v5.4.0
A big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
-
🚣 Introduce variable row height (#438) @DanailH
Allows for setting a row-specific height.
By default, all rows have the same height, but now you can set the height on a per-row basis.<DataGrid getRowHeight={ ({ id }: GridRowHeightParams) => (id % 2 === 0 ? 100 : null) } />
-
🎁 Add new CSV export option:
getRowsToExport
(#3687) @flaviendelangle -
📚 Documentation improvements
-
🐞 Bugfixes
@mui/[email protected]
/ @mui/[email protected]
Changes
- [DataGrid] Add l10n support for
is any of
(#3746) @alexfauquette - [DataGrid] Add new CSV
getRowsToExport
option (#3687) @flaviendelangle - [DataGrid] Clean params of
onCellEditCommit
(#3693) @valenfv - [DataGrid] Create a new lookup with all the filtered rows, collapsed or not (#3736) @flaviendelangle
- [DataGrid] Fix Alt+c being ignored on some systems (#3660) @cherniavskii
- [DataGrid] Fix
isRowSelectable
whenpaginationMode='server'
(#3647) @flaviendelangle - [DataGrid] Fix browser keyboard shortcuts not working when header cell is focused (#3692) @valenfv
- [DataGrid] Fix focus on checkbox cells (#3501) @alexfauquette
- [DataGrid] Only update the visibility status of the updated columns when calling
apiRef.current.updateRows
(#3735) @flaviendelangle - [DataGrid] Prevent commit if
preProcessEditCellProps
resolves with an error (#3612) @m4theushw - [DataGrid] Update selected rows when turning off
checkboxSelection
(#3684) @m4theushw - [DataGrid] Variable row height (#3218) @DanailH
- [DataGridPro] Call
useGridColumnPinning
beforeuseGridColumns
(#3676) @flaviendelangle - [DataGridPro] Fix grid cell losing focus when scrolling with keyboard (#3667) @cherniavskii
- [DataGridPro] Fix missing
styleOverrides
on pinned columns (#3733) @alexfauquette - [DataGridPro] Remove function overloading for
useGridApiRef
(#3666) @flaviendelangle - [l10n] Improve French (frFR) locale (#3739) @flaviendelangle
- [l10n] Improve Italian (itIT) locale (#3744) @destegabry
Docs
- [docs] Fix broken code example on the localization page (#3742) @flaviendelangle
- [docs] Fix typo in column visibility example (#3734) @flaviendelangle
- [docs] Fix typo on
columnVisibilityModel
(#3723) @alexfauquette - [docs] Improve sorting documentation page (#3564) @flaviendelangle
- [docs] Improve
v5.3.0
release notes (#3722) @cherniavskii - [docs] Prepare scripts and E2E tests for migration (#3515) @siriwatknp
- [docs] Clarify what is the professional support (#3530) @oliviertassinari
Core
- [core] Add ESLint rule to force default export equals to filename in documentation (#3674) @alexfauquette
- [core] Fix
l10n
script not updatingcsCZ
locale (#3748) @cherniavskii - [core] Generate CHANGELOG from GitHub API (#3313) @alexfauquette
- [core] Isolate selectors from different grid instances (#3663) @m4theushw
- [test] Improve test detection (#3728) @m4theushw
- [test] Include module augmentation for Chai custom matchers (#3754) @m4theushw
- [test] Remove a useless
async
(#3675) @alexfauquette - [test] Remove remaining
@ts-expect-error
(#3762) @m4theushw - [test] Skip test on Firefox (#3752) @m4theushw
- [test] Wait for flags to load before creating snapshots (#3726) @m4theushw
- [test] Warn when focusing cells without syncing the state (#3486) @m4theushw
v5.3.0
A big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
-
🎁 Allow to group rows based on column value (#3277) @flaviendelangle
⚠️ This feature is temporarily available on the Pro plan until the release of the Premium plan.To avoid future regression for users of the Pro plan, the feature needs to be explicitly activated using the rowGrouping experimental feature flag.
// To fully control <DataGridPro rowGroupingModel={rowGroupingModel} onRowGroupingModel={newModel => setRowGroupingModel(newModel)} experimentalFeatures={{ rowGrouping: true }} /> // To initialize without controlling <DataGridPro initialState={{ rowGrouping: { model: rowGroupingModel, }, }} experimentalFeatures={{ rowGrouping: true }} />
For more details see the introduction blog post and documentation.
-
⚡ Add
is any of
filter operator (#2874) @alexfauquetteThe new filter operator
is any of
allows the user to provide multiple values. It opens access to complex filtering pattern mixingAND
andOR
logic connectors, such asstatus is any of filled or rejected, and currency is any of EUR or USD
. -
✨ Introduce a
maxWidth
property inGridColDef
(#3550) @flaviendelangleYou can now limit the width of the flex columns and the resizable columns with the new
maxWidth
property onGridColDef
.const columns: GridColDef[] = [ { field: 'director', flex: 1, maxWidth: 200 }, // will take the free space up to 200px and will not be resizable above 200px { field: 'year', maxWidth: 150 }, // will not be resizable above 150px ]
-
🚀 Add component slots for a subset of used
@mui/material
components (#3490) @DanailHTo make the grid more flexible we added component slots for base
@mui/material
components that we use. Those component slots are prefixed withBase
to differentiate them from the other grid specific componentsFor more information check the documentation documentation.
-
🔥 Allow to pass
csvOptions
andprintOptions
totoolbar
component prop (#3623) @flaviendelangleconst CustomDataGrid = (props: DataGridProps) => { return ( <DataGrid {...props} componentsProps={{ toolbar: { csvOptions: { delimiter: ';' } } }} /> ) }
-
🙈 Add controlled behavior for the visible columns (#3554) @flaviendelangle
// To fully control <DataGrid columnVisibilityModel={columnVisibilityModel} onColumnVisilibilityModelChange={newModel => setColumnVisibilityModel(newModel)} /> // To initialize without controlling <DataGrid initialState={{ columns: { columnVisibilityModel } }} />
See the documentation for more details.
The
hide
property fromGridColDef
still works but has been deprecated. -
📚 Documentation improvements
-
🐞 Bugfixes
@mui/[email protected]
/ @mui/[email protected]
Changes
- [DataGrid] Add component slots for a subset of used
@mui/material
components (#3490) @DanailH - [DataGrid] Add controlled behavior for the visible columns (#3554) @flaviendelangle
- [DataGrid] Add debounce to text input (#3617) @m4theushw
- [DataGrid] Add
is any of
filter operator (#2874) @alexfauquette - [DataGrid] Allow to pass
csvOptions
andprintOptions
toGridToolbar
(#3623) @flaviendelangle - [DataGrid] Disable
Hide
button if there's only one visible column (#3607) @cherniavskii - [DataGrid] Fix line break characters breaking CSV rows (#3590) @cherniavskii
- [DataGrid] Fix potential memory leak warning (#3558) @m4theushw
- [DataGrid] Introduce a
maxWidth
property inGridColDef
(#3550) @flaviendelangle - [DataGrid] Make row editing work with
preProcessEditCellProps
(#3562) @flaviendelangle - [DataGridPro] Export the column pinning selector (#3594) @flaviendelangle
- [DataGridPro] Keep row children expansion when updating the rows (#3604) @flaviendelangle
- [DataGridPro] Keep tree data grouping column width when regenerating the columns (#3603) @flaviendelangle
- [DataGridPremium] Allow to group rows based on column value (#3277) @flaviendelangle
- [l10n] Improve Finnish (fiFI) locale (#3621) @MijMa
- [l10n] Improve Ukrainian (ukUA) locale (#3586) @Neonin
- [l10n] Improve Czech (csCZ) and Slovak (skSK) locale (#3678) @Haaxor1689
Docs
- [docs] Add doc example for tree data children lazy loading (#3657) @flaviendelangle
- [docs] Fix typo exchanging
false
andtrue
on columns hiding section (#3561) @alexfauquette - [docs] Improve filtering documentation page (#3437) @flaviendelangle
- [docs] Include header badges as in the other components (#3606) @oliviertassinari
- [docs] Lint markdown in the CI (#3504) @oliviertassinari
- [docs] Make inputs to extend full height of the cell (#3567) @m4theushw
- [docs] Add documentation page about the grid state (#3431) @flaviendelangle
- [docs] Replace
@mui/styles
inx-data-grid-generator
(#3560) @m4theushw - [docs] Update usage of prop/property naming (#3649) @cherniavskii
Core
- [core] Log the output of the script (#3527) @oliviertassinari
- [core] Add ESLint rule to prevent direct state access (#3521) @m4theushw
- [core] Add language to markdown code block (#3651) @m4theushw
- [core] Add typing to the pre-processors methods (#3595) @flaviendelangle
- [core] Don't bump peer dependency ranges on dependency updates (#3646) @oliviertassinari
- [core] Rename more instances of Material-UI to MUI (#3525) @oliviertassinari
- [core] Renovate should not try to update node (#3645) @oliviertassinari
- [core] Report performance test results on each PR (#3551) @m4theushw
- [core] Update monorepo (#3653) @m4theushw
- [core] Update
l10n
issue with a single command line (#3588) @alexfauquette - [test] Wait for promise to resolve before expect (#3597) @m4theushw
- [test] Split cell/row editing tests (#3618) @m4theushw
- [test] Skip tests on Safari (#3679) @m4theushw
v5.2.2
A big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
- 🎁 Add
hideable
option toGridColDef
(#3433) @m4theushw - ⚡ Add support for column-based
sortingOrder
with the newsortingOrder
option inGridColDef
(#3449) @Quppa - ✨ Allow to initialize the
page
andpageSize
without controlling them with theinitialState
prop (#3495) @flaviendelangle - 🙈 Allow to precisely control which children rows to expand with the new
isGroupExpandedByDefault
prop (#3444) @flaviendelangle - 🌍 Add Finnish (fiFI) locale (#3485) @kurkle
- 📚 Documentation improvements
- 🐞 Bugfixes
@mui/[email protected]
/ @mui/[email protected]
Changes
- [DataGrid] Add
hideable
option to GridColDef (#3433) @alexfauquette - [DataGrid] Add
sortingOrder
to GridColDef (#3449) @Quppa - [DataGrid] Add the page and pageSize to the initialState prop (#3495) @flaviendelangle
- [DataGrid] Avoid re-render when pressing key inside already focused cell (#3484) @m4theushw
- [DataGrid] Close other actions menus when opening a new one (#3492) @m4theushw
- [DataGrid] Deprecate
getValue
param from the cell and row params (#3369) @flaviendelangle - [DataGrid] Fix value parsing in date input (#3307) @alexfauquette
- [DataGrid] Fix can't enter 0 on numeric column (#3491) @m4theushw
- [DataGrid] Fix scrolling bug when an action is focused (#3483) @alexfauquette
- [DataGrid] Remove
line-height
fromGridCell
(#3446) @DanailH - [DataGridPro] Block edition for auto-generated rows (#3547) @flaviendelangle
- [DataGridPro] Expose the field of the tree data grouping column as a constant (#3549) @flaviendelangle
- [DataGridPro] Fix resizing of right pinned columns (#3502) @m4theushw
- [DataGridPro] Add new prop
isGroupExpandedByDefault
(#3444) @flaviendelangle - [l10n] Add Finnish (fiFI) locale (#3485) @kurkle
- [l10n] Improve French (frFR) locale (#3494) @Zenoo
- [l10n] Improve Italian (itIT) locale (#3452) @destegabry
- [l10n] Improve Vietnamese (viVN) locale (#3493) @hckhanh
Docs
- [docs] Generate imports dynamically from the packages export list (#3488) @flaviendelangle
- [docs] Make demos compatible with
preProcessEditCellProps
(#3453) @m4theushw
Core
- [test] Add test for row checkbox toggling using the Space key (#3262) @alexfauquette
- [core] Increase CI efficiency (#3441) @oliviertassinari
- [core] Refactor sorting comparator (#3390) @flaviendelangle
- [core] Update dependency on the core (#3526) @oliviertassinari
- [core] Update tweet example in release readme (#3481) @DanailH
v5.2.1
A big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
- 🖨️ Improve the print export to break the pages correctly (#3302) @flaviendelangle
- 🎁 Add
pinnable
option toGridColDef
(#3425) @m4theushw - 📚 Documentation improvements
- 🐞 Bugfixes
@mui/[email protected]
/ @mui/[email protected]
Changes
- [DataGridPro] Add
pinnable
option (#3425) @m4theushw - [DataGridPro] Avoid filtering columns if no column is pinned (#3438) @m4theushw
- [DataGrid] Avoid page break inside a row in the Print Export (#3302) @flaviendelangle
- [DataGrid] Fix
GridEditDateCell
to handleeditRowsModel
correctly (#3267) @alexfauquette - [DataGrid] Refactor keyboard/click event management (#3275) @alexfauquette
- [DataGrid] Fire change event when the state changes, instead of when the prop changes (#3388) @flaviendelangle
- [DataGrid] Unsubscribe event listeners registered in uncommitted renders (#3310) @m4theushw
- [l10n] Improve German (deDE) locale (#3430) @sebastianfrey
- [l10n] Improve Hebrew (heIL) locale (#3445) @ColdAtNight
- [l10n] Improve Dutch (nlNL) locale (#3429) @jaapjr
Core
- [core] Rework state update methods and deprecate
useGridApi
anduseGridState
(#3325) @flaviendelangle - [core] Add sections to some of the feature hooks (#3391) @flaviendelangle
- [core] Generate exports snapshot for both
x-data-grid
andx-data-grid-pro
packages (#3427) @flaviendelangle - [core] Remove 'x-data-grid' folder from DataGridPro bundle (#3394) @m4theushw
- [core] Add link to OpenCollective (#3392) @oliviertassinari
Docs
- [docs] Improve pagination documentation page (#3424) @flaviendelangle
- [docs] Include @mui/x-data-grid as dependency in the CodeSandbox (#3396) @m4theushw
- [docs] Stop using TypeDoc to generate the API documentation (#3320) @flaviendelangle
- [docs] Remove column pinning from "Upcoming features" (#3443) @alexfauquette
v5.2.0
A big thanks to the 5 contributors who made this release possible. Here are some highlights ✨:
@mui/[email protected]
/ @mui/[email protected]
-
🚀 Introduce the column pinning feature (#2946) @m4theushw
-
🔥 Add ability to disable export options (#3270) @alexfauquette
You can disable either export options by setting
disableToolbarButton
totrue
.<GridToolbarExport csvOptions={{ disableToolbarButton: true }} />
<GridToolbarExport printOptions={{ disableToolbarButton: true }} />
-
🙈 Add a new option to hide the amount of descendant on the grouping cells of the Tree Data (#3368) @flaviendelangle
<DataGridPro treeData rows={rows} columns={columns} groupingColDef={{ hideDescendantCount }} />
-
⚠️ Deprecate thegetValue
param for thevalueGetter
callback (#3314) @flaviendelangleInstead, you can access directly the row in the params
-valueGetter: (params) => `${params.getValue(params.id, 'firstName') || ''} ${params.getValue(params.id, 'lastName') || ''}` +valueGetter: (params) => `${params.row.firstName || ''} ${params.row.lastName || ''}`
-
📚 Documentation improvements
-
🐞 Bugfixes
Changes
- [DataGridPro] Add column pinning (#2946) @m4theushw
- [DataGridPro] Add
hideDescendantCount
option to Tree Data (#3368) @flaviendelangle - [DataGridPro] Do not expand row children with Shift + Space (#3380) @flaviendelangle
- [DataGridPro] Pass a list of
fields
to the callback version ofgroupingColDef
(#3316) @flaviendelangle - [DataGrid] Deprecate the
getValue
param for thevalueGetter
callback (#3314) @flaviendelangle - [DataGrid] Add ability to disable export options (#3270) @alexfauquette
- [DataGrid] Filter value are conserved when possible (#3198) @alexfauquette
- [DataGrid] Fix
DatePicker
bug by limiting years to 4 digits (#3222) @alexfauquette - [DataGrid] Fix column menu position when closing (#3289) @m4theushw
- [DataGrid] Fix to not crash when a sort item uses a non-existing column (#3224) @flaviendelangle
Core
- [core] Add funding field (#3331) @oliviertassinari
- [core] Fix missing LICENSE file (#3330) @oliviertassinari
- [core] Fix release month in CHANGELOG (#3367) @m4theushw
- [core] Fix
yarn prettier
script (#3292) @oliviertassinari - [core] Improve tests for Tree Data (#3366) @flaviendelangle
- [core] Never import directly from the
__modules__
folder in thex-data-grid-generator
package (#3379) @flaviendelangle - [core] Transition to a new StackOverflow tag (#3308) @oliviertassinari
- [core] Type the
api
param in callback interfaces (#3315) @flaviendelangle - [core] Update monorepo (#3370) @flaviendelangle
- [core] Use pre-processors for sorting and filtering (#3318) @flaviendelangle
- [test] Replace
useFakeTimers
(#3323) @m4theushw
Docs
- [docs] Always use auto-generated
apiRef
documentation (#3266) @flaviendelangle - [docs] Avoid 301 links (#3329) @oliviertassinari
- [docs] Disable the ad when not MIT (#3334) @oliviertassinari
- [docs] Fix 404 link to Zendesk @oliviertassinari
- [docs] Fix dead link on the overview page (#3326) @flaviendelangle
- [docs] Fix double MUI in the title (#3332) @oliviertassinari
- [docs] Fix duplicate "the" (#3365) @noam-honig
- [docs] Update branch to deploy docs (#3321) @m4theushw
v5.1.0
A big thanks to the 11 contributors who made this release possible. Here are some highlights ✨:
@mui/[email protected]
/ @mui/[email protected]
-
🚀 Introduce the tree data feature (#2725) @flaviendelangle
-
💅 Add support for
sx
prop in the DataGrid and DataGridPro (#3281) @m4theushw -
🔦 Improve focus management in the filter panel (#3004) @alexfauquette
-
🎁 Add strict typing to the event publisher and listener (#3022) (@flaviendelangle)
The
apiRef.current.subscribeEvent
,apiRef.current.publishEvent
anduseGridApiEventHandler
are now fully typed and gives you the correct arguments based on the event you are listening to or emitting.const handleRowClick: GridEventListener<'rowClick'> = ( params, // has type `GridRowParams` event, // has type `MuiEvent<React.MouseEvent<HTMLElement>> details, // has type `GridCallbackDetails ) => { /* ... */ }; // with string event name apiRef.current.subscribeEvent('rowClick', handleRowClick); useGridApiEventHandler(apiRef, 'rowClick', handleRowClick); // or with enum event name apiRef.current.subscribeEvent(GridEvents.rowClick, handleRowClick); useGridApiEventHandler(apiRef, GridEvents.rowClick, handleRowClick);
-
🌎 Translation updates for many locales
If you are using DataGrid or DataGridPro in another language, check this issue to discover which translations are missing.
-
📚 Documentation improvements
-
🐞 Bugfixes
Changes
- [DataGridPro] Add tree data (#2725) @flaviendelangle
- [DataGridPro] Remove the callback version of the
groupigColDef
prop (#3317) @flaviendelangle - [DataGridPro] Improve license file (#3278) @oliviertassinari
- [DataGridPro] Add types for event publishers and listeners (#3022) @flaviendelangle
- [DataGrid] Add support for
sx
prop (#3281) @m4theushw - [DataGrid] Do not debounce the initial resizing of the grid (#3213) @flaviendelangle
- [DataGrid] Fix usage of dynamic columns (#3204) @flaviendelangle
- [DataGrid] Move focus when selecting option with Enter in the
singleSelect
(#3220) @m4theushw - [DataGrid] Focus on the last value input when a filter is added or removed (#3004) @alexfauquette
- [DataGrid] Prepare the tree structure for grouping sorting / filtering (#3301) @flaviendelangle
- [DataGrid] Rework keyboard navigation (#3193) @flaviendelangle
- [DataGrid] Set minimum dimensions to
GridOverlay
when no row is provided (#3261) @flaviendelangle - [DataGrid] Improve German (deDE) locale (#3271, #3230, #3293) @sebastianfrey
- [DataGrid] Improve Hebrew (heIL) locale (#3294) @ColdAtNight
- [DataGrid] Improve Russian (ruRU) locale (#3290, #3288) @Alim-El
- [DataGrid] Improve Korean (koKR) locale (#3232, #3273) @zzossig
- [DataGrid] Improve Greek (elGR) locale (#3169) @clytras
Core
- [core] Add script to sync translation files (#3201) @m4theushw
- [core] Create dedicated
InputComponent
forsingleSelect
anddate
columns #3227 @alexfauquette - [core] Fix
EventManager
to not run listeners removed after registration #3206 @flaviendelangle - [core] Group Renovate updates (#3263) @flaviendelangle
- [core] Reflect the change of default branch (#3235) @oliviertassinari
- [core] Replace @mui/core with @mui/base (#3217) @m4theushw
- [core] Split docs generation script (#3189) @flaviendelangle
- [core] Update monorepo (#3303) @m4theushw
- [test] Improve testing of the keyboard navigation (#3187) @flaviendelangle
- [test] Force effect to run on location change (#3283) @m4theushw
- [core] Rework columns state management (#3264) @flaviendelangle
Docs
- [docs] Improve demo to allow to experiment with
autoHeight
(#3216) @alexfauquette - [docs] Fix broken images (#3300) @oliviertassinari
- [docs] Fix the wrong release date (#3269) @DanailH
- [docs] Fix typo in CHANGELOG.md (#3214) @gjoseph
- [docs] Improve plan icon placement (#3298) @oliviertassinari
- [docs] Improve rows documentation (#3209) @flaviendelangle
- [docs] Include row pinning (#3191) @oliviertassinari
- [docs] Fix presentation of key combinations (#3297) @oliviertassinari
- [docs] Replace @mui/styles on demos (#3274) @m4theushw
- [docs] Add demos using cell/row editing with server-side persistence (#3124) @flaviendelangle
- [docs] Use relative links (#3299) @oliviertassinari