We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
- 🚀 Add dragging support for the new Date Range Picker (
NextDateRangePicker
) (#6763) @LukasTy - ⚡️ Improve performance of the
day
view (#7066) @flaviendelangle - ✨ Fix lazy-loading feature not working in
DataGridPremium
(#7124) @m4theushw - 🐞 Bugfixes
@mui/x-data-grid@v6.0.0-alpha.11
/ @mui/x-data-grid-pro@v6.0.0-alpha.11
/ @mui/x-data-grid-premium@v6.0.0-alpha.11
Breaking changes
- The
filterPanelOperators
translation key was renamed tofilterPanelOperator
(#7062) @MBilalShafi - The
components.Header
slot was removed. Usecomponents.Toolbar
slot instead (#6999) @cherniavskii
Changes
- [DataGrid] Fix rows not rendering properly after height change (#6892) @MBilalShafi
- [DataGrid] Remove
Header
slot (#6999) @cherniavskii - [DataGrid] Rename
filterPanelOperators
->filterPanelOperator
(#7062) @MBilalShafi - [DataGridPremium] Add support for lazy-loading (#7124) @m4theushw
- [DataGridPremium] Pass
groupId
to aggregation function (#7003) @m4theushw
@mui/x-date-pickers@v6.0.0-alpha.11
/ @mui/x-date-pickers-pro@v6.0.0-alpha.11
Breaking changes
-
Remove the callback version of the
action
prop on theactionBar
slot (#7038) @flaviendelangleThe
action
prop of theactionBar
slot is no longer supporting a callback.
Instead, you can pass a callback at the slot level:<DatePicker componentsProps={{ - actionBar: { - actions: (variant) => (variant === 'desktop' ? [] : ['clear']), - }, + actionBar: ({ wrapperVariant }) => ({ + actions: wrapperVariant === 'desktop' ? [] : ['clear'], + }), }} />
-
The
selectedDays
prop has been removed from theDay
component (#7066) @flaviendelangle
If you need to access it, you can control the value and pass it to the slot usingcomponentsProps
:function CustomDay({ selectedDay, ...other }) { // do something with 'selectedDay' return <PickersDay {...other} />; } function App() { const [value, setValue] = React.useState(null); return ( <DatePicker value={value} onChange={(newValue) => setValue(newValue)} components={{ Day: CustomDay }} componentsProps={{ day: { selectedDay: value }, }} /> ); }
-
The
currentlySelectingRangeEnd
/setCurrentlySelectingRangeEnd
props on the Date Range Picker toolbar have been renamed torangePosition
/onRangePositionChange
(#6989) @flaviendelangleconst CustomToolbarComponent = props => ( <div> - <button onChange={() => props.setCurrentlySelectingRangeEnd('end')}>Edit end date</button> + <button onClick={() => props.onRangePositionChange('end')}>Edit end date</button> - <div>Is editing end date: {props.currentlySelectingRangeEnd === 'end'}</div> + <div>Is editing end date: {props.rangePosition === 'end'}</div> </div> ) <DateRangePicker components={{ Toolbar: CustomToolbarComponent }} />
Changes
- [DateRangePicker] Add dragging support to edit range (#6763) @LukasTy
- [pickers] Fix lost props on Date Range Pickers (#7092) @flaviendelangle
- [pickers] Fix toolbar on the new range pickers (#6989) @flaviendelangle
- [pickers] Improve performance of
DayCalendar
(#7066) @flaviendelangle - [pickers] Initialize date without time when selecting year or month (#7120) @LukasTy
- [pickers] Remove the callback version of the
action
prop in theactionBar
component slot (#7038) @flaviendelangle
Docs
- [docs] Add
GridCell
change in migration guide (#7087) @MBilalShafi - [docs] Fix API page ad space regression (#7051) @oliviertassinari
- [docs] Update localization doc to use existing locale (#7102) @LukasTy
Core
- [core] Add codemod to move l10n translation (#7027) @alexfauquette
- [core] Add notes to remove the legacy pickers internals (#7133) @flaviendelangle
- [core] Remove
internals-fields
imports (#7119) @flaviendelangle - [core] Remove unused code (#7094) @flaviendelangle
- [core] Sync
ApiPage.js
with monorepo (#7073) @oliviertassinari - [test] Fix karma-mocha assertion error messages (#7054) @cherniavskii