github mui/mui-x v6.0.0-alpha.15

latest releases: v7.18.0, v6.20.5, v7.17.0...
pre-release20 months ago

Jan 13, 2023

We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:

  • 🚀 Support components and slots for new pickers (#7390) @alexfauquette
  • ✨ Update onColumnOrderChange behavior to match onRowsOrderChange (#7385) @DanailH
  • 🌍 Improve Spanish (es-ES) and Belarusian (be-BY) locales
  • 📚 Documentation improvements
  • 🐞 Bugfixes

@mui/x-data-grid@v6.0.0-alpha.15 / @mui/x-data-grid-pro@6.0.0-alpha.15 / @mui/x-data-grid-premium@6.0.0-alpha.15

Breaking changes

  • Remove the onCellFocusOut prop (#6302) @cherniavskii

    The onCellFocusOut prop was removed. Use componentsProps.cell.onBlur instead:

    <DataGrid
      componentsProps={{
        cell: {
          onBlur: (event) => {
            const cellElement = event.currentTarget;
            const field = cellElement.getAttribute('data-field');
            const rowId = cell.parentElement.getAttribute('data-id');
          },
        },
      }}
    />
  • [DataGrid] Stop exporting editing selector (#7456) @m4theushw

    The gridEditRowsStateSelector selector was removed.

  • [DataGrid] Rework column headers and virtual scroller positioning (#7001) @cherniavskii

    The headerHeight prop was renamed to columnHeaderHeight.

  • [DataGrid] Remove the columnTypes prop (#7309) @cherniavskii

    The columnTypes prop was removed. For custom column types see Custom column types docs.

  • [DataGrid] Rename linkOperators to logicOperators (#7310) @cherniavskii

    The apiRef.current.setFilterLinkOperator method was renamed to apiRef.current.setFilterLogicOperator.
    The GridLinkOperator enum was renamed to GridLogicOperator.
    The GridFilterModel['linkOperator'] was renamed to GridFilterModel['logicOperator'].
    The linkOperators prop of GridFilterForm and GridFilterPanel components was renamed to logicOperators.
    The linkOperatorInputProps prop of GridFilterForm component was renamed to logicOperatorInputProps.
    The filterFormProps.linkOperatorInputProps prop in GridFilterForm component was renamed to filterFormProps.logicOperatorInputProps.
    The GridLocaleText['filterPanelLinkOperator'] property was renamed to GridLocaleText['filterPanelLogicOperator'].
    The .MuiDataGrid-filterFormLinkOperatorInputCSS class was renamed to .MuiDataGrid-filterFormLogicOperatorInput.

  • [DataGrid] Remove Alt+C keyboard shortcut (#7466) @MBilalShafi

    Alt (or ⌥ Option) + C keyboard shortcut is no longer supported.

Changes

@mui/x-date-pickers@6.0.0-alpha.15 / @mui/x-date-pickers-pro@6.0.0-alpha.15

Breaking changes

  • [pickers] Stop using the WrapperVariantContext in MonthCalendar and YearCalendar (#7382) @flaviendelangle

    The modeMobile and modeDesktop classes have been removed from the PickersMonth and PickersYear internal components.

    If you were using those classes on responsive components,
    you can import DEFAULT_DESKTOP_MODE_MEDIA_QUERY from @mui/x-date-pickers or @mui/x-date-pickers-pro (or use your custom media query if any):

     <GlobalStyles
       styles={{
    -     [`.${pickersYearClasses.modeDesktop}`]: {
    -       backgroundColor: 'red'
    -     }
    +     [DEFAULT_DESKTOP_MODE_MEDIA_QUERY]: {
    +       [`.${pickersYearClasses.root}`]: {
    +         backgroundColor: 'red'
    +       }
    +     }
    -     [`.${pickersYearClasses.modeMobile}`]: {
    -       backgroundColor: 'red'
    -     }
    +     [DEFAULT_DESKTOP_MODE_MEDIA_QUERY.replace('@media', '@media not')]: {
    +       [`.${pickersYearClasses.root}`]: {
    +         backgroundColor: 'red'
    +       }
    +     }
       }}
     />

    Works exactly the same way for PickersMonth.

  • [pickers] Refactor shouldDisableTime (#7299) @LukasTy

    The shouldDisableTime prop signature has been changed. Either rename the prop usage to shouldDisableClock or refactor usage.

     <DateTimePicker
    -   shouldDisableTime={(timeValue, view) => view === 'hours' && timeValue < 12}
    +   shouldDisableClock={(timeValue, view) => view === 'hours' && timeValue < 12}
     />
     <DateTimePicker
    -   shouldDisableTime={(timeValue, view) => view === 'hours' && timeValue < 12}
    +   shouldDisableTime={(time, view) => view === 'hours' && value.hour() < 12}
     />

Changes

Docs

Core

Don't miss a new mui-x release

NewReleases is sending notifications on new releases.