mui/mui-x (@mui/x-data-grid)
### [`v7.8.0`](https://togithub.com/mui/mui-x/blob/HEAD/CHANGELOG.md#780)
[Compare Source](https://togithub.com/mui/mui-x/compare/v7.7.1...v7.8.0)
*Jun 28, 2024*
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights β¨:
- π° Introduce server-side data source for improved server integration in the Data Grid.
Supports server-side pagination, sorting and filtering on plain and tree data, and automatic caching.
To enable, provide a `getRows` function to the `unstable_dataSource` prop on the Data Grid component.
```tsx
const dataSource = {
getRows: async (params: GridServerGetRowsParams) => {
const data = await fetch(
`https://api.example.com/data?${new URLSearchParams({
page: params.page,
pageSize: params.pageSize,
sortModel: JSON.stringify(params.sortModel),
filterModel: JSON.stringify(params.filterModel),
}).toString()}`,
);
return {
rows: data.rows,
totalRows: data.totalRows,
};
},
}
```
See [server-side data documentation](https://mui.com/x/react-data-grid/server-side-data/) for more details.
- π Support Date data on the BarChart component
- βοΈ Support custom column sort icons on the Data Grid
- π±οΈ Support modifying the expansion trigger on the Tree View components
##### Data Grid
##### `@mui/x-data-grid@7.8.0`
- \[DataGrid] Add `columnHeaderSortIcon` slot ([#13563](https://togithub.com/mui/mui-x/issues/13563)) [@arminmeh](https://togithub.com/arminmeh)
- \[DataGrid] Fix dimensions lag issue after autosize ([#13587](https://togithub.com/mui/mui-x/issues/13587)) [@MBilalShafi](https://togithub.com/MBilalShafi)
- \[DataGrid] Fix print export failure when `hideFooter` option is set ([#13034](https://togithub.com/mui/mui-x/issues/13034)) [@tarunrajput](https://togithub.com/tarunrajput)
##### `@mui/x-data-grid-pro@7.8.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
Same changes as in `@mui/x-data-grid@7.8.0`, plus:
- \[DataGridPro] Fix multi-sorting indicator being cut off ([#13625](https://togithub.com/mui/mui-x/issues/13625)) [@KenanYusuf](https://togithub.com/KenanYusuf)
- \[DataGridPro] Server-side tree data support ([#12317](https://togithub.com/mui/mui-x/issues/12317)) [@MBilalShafi](https://togithub.com/MBilalShafi)
##### `@mui/x-data-grid-premium@7.8.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link "Premium plan")
Same changes as in `@mui/x-data-grid-pro@7.8.0`.
##### Date and Time Pickers
##### `@mui/x-date-pickers@7.8.0`
- \[fields] Fix section clearing behavior on Android ([#13652](https://togithub.com/mui/mui-x/issues/13652)) [@LukasTy](https://togithub.com/LukasTy)
##### `@mui/x-date-pickers-pro@7.8.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
Same changes as in `@mui/x-date-pickers@7.8.0`.
##### Charts
##### `@mui/x-charts@7.8.0`
- \[charts] Fix line chart props not passing correct event handlers ([#13609](https://togithub.com/mui/mui-x/issues/13609)) [@JCQuintas](https://togithub.com/JCQuintas)
- \[charts] Support BarChart with `Date` data ([#13471](https://togithub.com/mui/mui-x/issues/13471)) [@alexfauquette](https://togithub.com/alexfauquette)
- \[charts] Support RTL for y-axis ([#13614](https://togithub.com/mui/mui-x/issues/13614)) [@alexfauquette](https://togithub.com/alexfauquette)
- \[charts] Use default values instead of non-null assertion to prevent error being thrown ([#13637](https://togithub.com/mui/mui-x/issues/13637)) [@JCQuintas](https://togithub.com/JCQuintas)
##### Tree View
##### `@mui/x-tree-view@7.8.0`
- \[TreeView] Add `expansionTrigger` prop ([#13533](https://togithub.com/mui/mui-x/issues/13533)) [@noraleonte](https://togithub.com/noraleonte)
- \[TreeView] Support experimental features from plugin's dependencies ([#13632](https://togithub.com/mui/mui-x/issues/13632)) [@flaviendelangle](https://togithub.com/flaviendelangle)
##### Docs
- \[docs] Add callout for `Luxon` `throwOnInvalid` support ([#13621](https://togithub.com/mui/mui-x/issues/13621)) [@LukasTy](https://togithub.com/LukasTy)
- \[docs] Add "Overlays" section to the Data Grid documentation ([#13624](https://togithub.com/mui/mui-x/issues/13624)) [@KenanYusuf](https://togithub.com/KenanYusuf)
##### Core
- \[core] Add eslint rule to restrict import from `../internals` root ([#13633](https://togithub.com/mui/mui-x/issues/13633)) [@JCQuintas](https://togithub.com/JCQuintas)
- \[docs-infra] Sync `\_app` folder with monorepo ([#13582](https://togithub.com/mui/mui-x/issues/13582)) [@Janpot](https://togithub.com/Janpot)
- \[license] Allow usage of charts and tree view pro package for old premium licenses ([#13619](https://togithub.com/mui/mui-x/issues/13619)) [@flaviendelangle](https://togithub.com/flaviendelangle)
Configuration
π Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
π¦ Automerge: Enabled.
β» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π Ignore: Close this PR and you won't be reminded about this update again.
[ ] If you want to rebase/retry this PR, check this box
This PR has been generated by Mend Renovate. View repository job log here.
This PR contains the following updates:
7.7.1
->7.8.0
Release Notes
mui/mui-x (@mui/x-data-grid)
### [`v7.8.0`](https://togithub.com/mui/mui-x/blob/HEAD/CHANGELOG.md#780) [Compare Source](https://togithub.com/mui/mui-x/compare/v7.7.1...v7.8.0) *Jun 28, 2024* We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights β¨: - π° Introduce server-side data source for improved server integration in the Data Grid. Supports server-side pagination, sorting and filtering on plain and tree data, and automatic caching. To enable, provide a `getRows` function to the `unstable_dataSource` prop on the Data Grid component. ```tsx const dataSource = { getRows: async (params: GridServerGetRowsParams) => { const data = await fetch( `https://api.example.com/data?${new URLSearchParams({ page: params.page, pageSize: params.pageSize, sortModel: JSON.stringify(params.sortModel), filterModel: JSON.stringify(params.filterModel), }).toString()}`, ); return { rows: data.rows, totalRows: data.totalRows, }; }, }Configuration
π Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
π¦ Automerge: Enabled.
β» Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
π Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.