Skip to content

v7.8.0

Compare
Choose a tag to compare
@KenanYusuf KenanYusuf released this 28 Jun 16:05
· 862 commits to master since this release
e8e8d30

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.

    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,
        };
      },
    }
    <DataGridPro
      unstable_dataSource={dataSource}
      {...otherProps}
    />

    See server-side data documentation 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/[email protected]

@mui/[email protected] pro

Same changes as in @mui/[email protected], plus:

@mui/[email protected] premium

Same changes as in @mui/[email protected].

Date and Time Pickers

@mui/[email protected]

@mui/[email protected] pro

Same changes as in @mui/[email protected].

Charts

@mui/[email protected]

Tree View

@mui/[email protected]

Docs

Core

  • [core] Add eslint rule to restrict import from ../internals root (#13633) @JCQuintas
  • [docs-infra] Sync \_app folder with monorepo (#13582) @Janpot
  • [license] Allow usage of charts and tree view pro package for old premium licenses (#13619) @flaviendelangle