npm @mui/x-data-grid-pro 5.6.0
v5.6.0

latest releases: 7.18.0, 7.17.0, 7.16.0...
2 years ago

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 and GridApiRef (#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 and filterModel 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's borderBottom 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 new rowNode 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 to apiRef (#3751) @cherniavskii
  • [DataGridPro] Always export the pageSize and page 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

Core

Don't miss a new x-data-grid-pro release

NewReleases is sending notifications on new releases.