Update dependency @mui/x-tree-view to v6.0.0-beta.0 #40
Reference in New Issue
Block a user
Delete Branch "renovate/mui-x-tree-view-6.x-lockfile"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
This PR contains the following updates:
6.0.0-alpha.2->6.0.0-beta.0Release Notes
mui/mui-x (@mui/x-tree-view)
v6.0.0-beta.0Compare Source
Jan 19, 2023
After a long period in alpha, we're glad to announce the first MUI X v6 beta!
We encourage you to try out this version, packed with improvements, bug fixes, and a few highlighted features ✨:
Data Grid
Date and Time pickers
You can check the migration guides for the Data Grid and Date Pickers in the documentation.
We'd like to offer a big thanks to the 10 contributors who made this release possible.
pageandpageSizeprops intopaginationModel@mui/x-data-grid@6.0.0-beta.0/@mui/x-data-grid-pro@6.0.0-beta.0/@mui/x-data-grid-premium@6.0.0-beta.0Breaking changes
The
disableExtendRowFullWidthprop was removed.Use
showCellVerticalBorderorshowColumnVerticalBorderprops to show or hide right border for cells and header cells respectively.The
GridCellIdentifiertype was removed. UseGridCellCoordinatesinstead.The
singleSelectcolumn type now has a default value formatter that returns thelabelcorresponding to the selected value whenvalueOptionsis an array of objects.As consequence, any existing value formatter will not be applied to the individual options anymore, but only to the text of the cell.
It is recommended to migrate
valueOptionsto an array of objects to be able to add a custom label for each value.To override the label used for each option when the cell is in edit mode or in the filter panel, the following components now support a
getOptionLabelprop.This prop accepts a callback that is called with the item from
valueOptionsand must return the new label.GridEditSingleSelectCellGridFilterInputSingleSelectGridFilterInputMultipleSingleSelectThe
getGridSingleSelectQuickFilterFnfunction was removed.You can copy the old function and pass it to the
getApplyQuickFilterFnproperty of thesingleSelectcolumn definition.The
pageandpageSizeprops and their respective event handlersonPageChangeandonPageSizeChangewere removed.Use
paginationModelandonPaginationModelChangeinstead.The properties
initialState.pagination.pageandinitialState.pagination.pageSizewere also removed.Use
initialState.pagination.paginationModelinstead.The
rowsPerPageOptionsprop was renamed topageSizeOptions.The
errorandonErrorprops were removed - the grid no longer catches errors during rendering.To catch errors that happen during rendering use the error boundary.
The
components.ErrorOverlayslot was removed.The
GridErrorOverlaycomponent was removed.The
componentErrorevent was removed.Use the error boundary to catch errors thrown during rendering.
The
apiRef.current.showErrormethod was removed.The UI for errors is no longer handled by the grid.
The
dateanddateTimecolumns now only supportDateobjects as values.To parse a string value, use the
valueGetter:The following selectors have been renamed:
gridVisibleSortedRowIdsSelectorrenamed togridExpandedSortedRowIdsSelectorgridVisibleSortedRowEntriesSelectorrenamed togridExpandedSortedRowEntriesSelectorgridVisibleRowCountSelectorrenamed togridExpandedRowCountSelectorgridVisibleSortedTopLevelRowEntriesSelectorrenamed togridFilteredSortedTopLevelRowEntriesSelectorgridVisibleTopLevelRowCountSelectorrenamed togridFilteredTopLevelRowCountSelectorThe
apiRef.current.getVisibleRowModelsmethod was removed. Use thegridVisibleSortedRowEntriesSelectorselector instead.The
GridRowScrollEndParams["virtualRowsCount"]parameter was renamed toGridRowScrollEndParams["visibleRowsCount"].Changes
singleSelect(#7290) @m4theushwpageandpageSizeprops intopaginationModel(#7147) @MBilalShafiDateas value indateanddateTimecolumn types (#7594) @cherniavskiiGridCellIdentifierredundant type (#7578) @MBilalShafidisableExtendRowFullWidthprop (#7373) @MBilalShafiisAnyOfoperator input (#7592) @m4theushw@mui/x-date-pickers@6.0.0-beta.0/@mui/x-date-pickers-pro@6.0.0-beta.0Breaking changes
The
showToolbarprop has been moved to thetoolbarcomponent slot props:The new pickers have replaced the legacy one.
If you were using the new pickers with their temporary name, you just have to change your imports.
If you were still using the legacy picker (
DatePicker,DesktopDatePicker, ...), please take a look at our migration guide for detailed explanations on how to start using the new ones.The fields components are no longer unstable
Changes
calendarsprop on mobile (#7526) @flaviendelangleshowDaysOutsideCurrentMonthwhencalendars > 1(#7529) @flaviendelanglerangePositionto view (#7602) @LukasTyUnstable_prefix for field components (#7185) @flaviendelangleslotsandslotPropson the date range view renderer (#7586) @flaviendelangleclassNameandsxprops are applied to the field / static root of the picker and never to the view (#7600) @flaviendelanglecomponentsandcomponentSlotsreferences (#7576) @LukasTyshowToolbarwith toolbar slothiddenprop (#7498) @LukasTyDateCalendarandTimeClock(#7587) @flaviendelangleWrapperVariantContextinDateRangeCalendar(#7488) @flaviendelangle@mui/x-codemod@6.0.0-beta.0Changes
disableExtendRowFullWidthprop (#7508) @MBilalShafiDocs
field componentspage (#7605) @flaviendelangleCore
status: needs triagelabel on RFC @oliviertassinarix-codemodpackage tag change (#7617) @LukasTyCHANGELOG(#7611) @flaviendelanglev6.0.0-alpha.4Compare Source
Oct 20, 2022
We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
@mui/x-data-grid@6.0.0-alpha.4/@mui/x-data-grid-pro@6.0.0-alpha.4/@mui/x-data-grid-premium@6.0.0-alpha.4Breaking changes
To avoid confusion with the props that will be added for the cell selection feature, some props related to row selection were renamed to have "row" in their name.
The renamed props are the following:
selectionModelrowSelectionModelonSelectionModelChangeonRowSelectionModelChangedisableSelectionOnClickdisableRowSelectionOnClickdisableMultipleSelectiondisableMultipleRowSelectionThe
gridSelectionStateSelectorselector was renamed togridRowSelectionStateSelector.The
selectionChangeevent was renamed torowSelectionChange.Changes
searchPredicateprop toGridColumnsPanelcomponent (#6557) @cherniavskiirowCountprop change (#5982) @cherniavskii@mui/x-date-pickers@6.0.0-alpha.4/@mui/x-date-pickers-pro@6.0.0-alpha.4Breaking changes
The
ToolbarComponenthas been replaced by aToolbarcomponent slot.You can find more information about this pattern in the Base UI documentation:
The
toolbarPlaceholderandtoolbarFormatprops have been moved to thetoolbarcomponents props slot:The
toolbarTitleprop has been moved to the localization object:The toolbar related translation keys have been renamed to better fit their usage:
The
onChange/openViewprops on the toolbar have been renamedonViewChange/viewChanges
validationErrorproperty to theonChangecallback (#6539) @flaviendelangleTabscomponent slot (#6543) @flaviendelangle@mui/materialimports to@mui/utils(#6443) @LukasTyDocs
Core
docsearch.jsdependency (#6242) @oliviertassinariv6.0.0-alpha.3Compare Source
Oct 13, 2022
We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
⌚️ New components to edit date and time with keyboard—without using any modal or dropdown UI.
Please check out our documentation to discover those new components.
DateFieldto edit dateTimeFieldto edit timeDateTimeFieldto edit date and timeMultiInputDateRangeField/SingleInputDateRangeFieldto edit date rangeMultiInputTimeRangeFieldto edit time range with two inputsMultiInputDateTimeRangeFieldto edit date and time range with two inputs⚠️ These components are unstable.
They might receive breaking changes on their props to have the best components possible by the time of the stable release.
📝 Allow to limit to one filter per column for
DataGridProandDataGridPremium(#6333) @MBilalShafi📚 New page describing the validation props on each picker (#6064) @flaviendelangle
📚 Documentation improvements
🐞 Bugfixes
@mui/x-data-grid@6.0.0-alpha.3/@mui/x-data-grid-pro@6.0.0-alpha.3/@mui/x-data-grid-premium@6.0.0-alpha.3Breaking changes
[DataGrid] Remove legacy editing API
The editing API that is enabled by default was replaced with a new API that contains better support for server-side persistence, validation and customization. This new editing feature was already available in v5 under the
newEditingApiexperimental flag. In v6, this flag can be removed.For users that didn't migrate to the new editing API in v5, additional work may be needed because the new API is not equivalent to the legacy API. Although, some migration steps are available to help in this task.
editCellPropsChangeevent was removed. If you still need it please file a new issue so we can propose an alternative.cellEditCommitevent was removed and theprocessRowUpdateprop can be used in place. More information, check the docs section about the topic.editRowsModelandonEditRowsModelChangeprops were removed. ThecellModesModelorrowModesModelprops can be used to achieve the same goal.apiRef.current.stopCellEditModeto replaceapiRef.current.commitCellChangeapiRef.current.startCellEditModeto replaceapiRef.current.setCellMode(id, field, 'edit')apiRef.current.stopRowEditModeto replaceapiRef.current.commitRowChangeapiRef.current.startRowModeto replaceapiRef.current.setRowMode(id, 'edit')cellModesModelorrowModesModelprops to replaceapiRef.current.setEditRowsModelChanges
useGridApiContextanduseGridApiReftype overrides (#6423) @cherniavskii@mui/x-date-pickers@6.0.0-alpha.3/@mui/x-date-pickers-pro@6.0.0-alpha.3Breaking changes
All the props used by the mobile and desktop wrappers to override components or components' props have been replaced by component slots. You can find more information about this pattern in the Base UI documentation.
Some of the names have also been prefixed by
desktopwhen it was unclear that the behavior was only applied on the desktop version of the pickers (or the responsive version when used on a desktop).The
DialogPropsprop has been replaced by adialogcomponent props slot on responsive and mobile pickers:The
PaperPropsprop has been replaced by adesktopPapercomponent props slot on all responsive and desktop pickers:The
PopperPropsprop has been replaced by apoppercomponent props slot on all responsive and desktop pickers:The
TransitionComponentprop has been replaced by aDesktopTransitioncomponent slot on all responsive and desktop pickers:The
TrapFocusPropsprop has been replaced by adesktopTrapFocuscomponent props slot on all responsive and desktop pickers:The view components allowing to pick a date or parts of a date without an input have been renamed to better fit their usage:
Component names in the theme have changed as well:
Changes
MultiInputDateTimeRangePickerandMultiInputTimeRangePicker(#6392) @alexfauquettePartialforcomponentsandcomponentsPropsprops (#6463) @flaviendelangleDateRangeCalendar(#6416) @flaviendelanglePickerprefix in the view component byCalendar(eg:MonthPicker=>MonthCalendar) (#6389) @flaviendelangleXXXComponentandXXXProps(#6381) @flaviendelangleDocs
Core
react-text-maskpackage (#6408) @LukasTyConfiguration
📅 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 Renovate Bot.