Releases: mui/mui-x
v5.12.1
We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
- 🎁 Add
reason
toonFilterModelChange
(#4938) @m4theushw - 🔎 Control quick filter input value via model prop (#5013) @alexfauquette
- 📚 Documentation improvements
- 🐞 Bugfixes
@mui/x-data-grid@v5.12.1
/ @mui/x-data-grid-pro@v5.12.1
/ @mui/x-data-grid-premium@v5.12.1
Changes
- [DataGrid] Add
reason
toonFilterModelChange
(#4938) @m4theushw - [DataGrid] Restore focus after dismissing the column menu (#5027) @m4theushw
- [DataGrid] Update quick filter input when model is modified (#5013) @alexfauquette
- [DataGrid] Fix implicit dependency on react-dom (#5121) @oliviertassinari
- [DataGrid] Support
getRowId
in row reordering (#5093) @flaviendelangle - [DataGridPro] Fix column resizing in RTL mode (#4989) @cherniavskii
- [DataGridPro] Fix column resizing on touchscreen (#5056) @cherniavskii
- [l10n] Update Japanese (ja-JP) locale (#5122) @hikotq
- [l10n] Update Russian (ru-RU) locale (#5069) @Artboomy
@mui/x-date-pickers@5.0.0-alpha.6
/ @mui/x-date-pickers-pro@5.0.0-alpha.6
Changes
- [pickers] Fix usage of
maxDate
/minDate
/disableFuture
anddisablePast
(#5081) @flaviendelangle - [pickers] Infer mask from
inputFormat
(#5060) @alexfauquette - [pickers] Manage input value without using the focus (#4486) @alexfauquette
- [pickers] Use new localization for doc examples (#5097) @flaviendelangle
- [pickers] Fix
shouldDisableDate
in range pickers (#5123) @flaviendelangle - [l10n] Add Brazilian Portuguese (pt-BR) locale (#5100) @jardelnovaes
- [l10n] Use
localText
for remaining texts (#4986) @alexfauquette
Docs
- [docs] Implement the focus management on data grid demo links (#5070) @alexfauquette
- [docs] Fix
301
link to render cell (#5106) @oliviertassinari - [docs] Fix broken anchor link @oliviertassinari
- [docs] Improve movie dataset (#5142) @flaviendelangle
- [docs] Move all localization documentation in a unique page (#5072) @alexfauquette
- [docs] Section for overwriting core components i18n keys (#4998) @DanailH
- [docs] Small grammar and format fixes for Dynamic Row Height section (#5098) @samuelsycamore
Core
- [core] Allows to run tests with different date adapters (#5055) @alexfauquette
- [core] Prettify the l10n issue (#4928) @alexfauquette
- [core] Set correct
apiRef
type in row reorder pre processors #5125 @DanailH - [core] Stop using
GridEvents
in technical doc (#5157) @flaviendelangle - [core] Upgrade monorepo (#5101) @oliviertassinari
- [test] Fix dynamic row height test failing on Chrome (#5147) @m4theushw
- [test] Remove delay on server demo for regression tests (#5131) @alexfauquette
v5.12.0
We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
-
🎁 Introduce support for dynamic row height (#4859) @m4theushw
-
⚠️ Remove deprecated row grouping feature from@mui/x-data-grid-pro
Row grouping is available through the
@mui/x-data-grid-premium
package - see Premium plan release blogpost. -
🐞 Bug fixes and improvements
@mui/x-data-grid@v5.12.0
/ @mui/x-data-grid-pro@v5.12.0
/ @mui/x-data-grid-premium@v5.12.0
- [DataGrid] Support dynamic row height (#4859) @m4theushw
- [DataGrid] Add
onMenuOpen
andonMenuClose
props (#4825) @DanailH - [DataGrid] Add generics to
GridActionsColDef
to matchGridColDef
(#4982) @subvertallchris - [DataGrid] Disable drag event handlers when row or column reorder are disabled (#4857) @DanailH
- [DataGrid] Allow other attempts to stop edit mode if the first failed (#5016) @m4theushw
- [DataGrid] Better reflect the dependency on Material UI (#4795) @oliviertassinari
- [DataGrid] Add an id to the filter item created when opening the filter panel (#5014) @flaviendelangle
- [DataGrid] Use column visibility model on Hide All / Show All when enabled (#5050) @flaviendelangle
- [DataGridPro] Unpin columns back to original position (#4512) @m4theushw
- [DataGridPro] Remove experimental row grouping from Pro plan (#4949) @flaviendelangle
- [DataGridPro] Allow to scroll detail panel content if it overflows the panel (#4979) @cherniavskii
- [DataGridPro] Do not call
setRowIndex
when dragging a column over a row (#4987) @flaviendelangle - [l10n] Add Norwegian (Bokmål) (nb-NO) locale (#5001) @spiftire
- [l10n] Add Turkish (tr-TR) locale (#5026) @Rassilion
@mui/x-date-pickers@5.0.0-alpha.5
/ @mui/x-date-pickers-pro@5.0.0-alpha.5
Breaking changes
-
[pickers] Restructure props in
MonthPicker
/YearPicker
andDayPicker
(#4814) @flaviendelangleThe props of
MonthPicker
/YearPicker
andDayPicker
have been reworked to make them more consistent for a standalone usage (#4814) @flaviendelangleMonthPicker: The prop
onMonthChange
has been removed, you can useonChange
instead since every change is a month changeYearPicker: The prop
onYearPicker
has been removed, you can useonChange
instead since every change is a year changeDayPicker: The prop
isDateDisabled
has been removed, you can now use the same validation props as for the other components (maxDate
,minDate
,shouldDisableDate
,disableFuture
anddisablePast
)
Changes
- [pickers] Add German (de-DE) translations (#4974) @felixh10r
- [pickers] Support action bar on static pickers and improve typing (#5015) @flaviendelangle
Docs
- [docs] Add docs sections / pages for upcoming features on pickers (#4603) @flaviendelangle
- [docs] Add docs for filter panel components (#4919) @m4theushw
- [docs] Explain how to manage focus with
renderCell
(#4254) @alexfauquette - [docs] Fix broken links to GitHub source (#5003) @Edwardveb
- [docs] Fix navigation links (#4956) @oliviertassinari
- [docs] Fix typo on rows docs (#4952) @jamesRadicl
- [docs] New WAI-ARIA guidelines location (#4957) @oliviertassinari
- [docs] Add "Slots" section to the right nav in the API pages (#4993) @DanailH
- [docs] Fix docs feedback widget not working (#4905) @cherniavskii
- [docs] Replace custom notes and warning with callouts (#5008) @flaviendelangle
Core
- [core] Avoid Order ID to refer to GitHub issues/PRs (#5005) @oliviertassinari
- [core] Improve the workflow for incomplete issues (#5012) @mnajdova
- [core] Remove dead code on row grouping tree creation (#4945) @flaviendelangle
- [core] Use new cache api for the row grouping last model tracking (#4980) @flaviendelangle
- [core] Ensure that PRs have atleast 1 label (#5011) @DanailH
- [core] Fix trailing-space @oliviertassinari
- [core] Stop Renovate PR updates when PR is on hold (#5020) @cherniavskii
- [license] Remove support for UTF-8 (#4893) @oliviertassinari
- [license] Tweak error messages (#4907) @mbrookes
- [test] Skip Safari and Firefox on broken tests (#4994) @alexfauquette
- [test] Make argos screenshots stable (#5061) @m4theushw
v5.11.1
We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
-
🌍 Support localization on the date and time picker components (#4517) @alexfauquette
Texts can be translated in the pickers components, similar to what can be done in the data grid component. Check the documentation for more information.
-
📃 Add support for column spanning when exporting to Excel (#4830) @cherniavskii
-
🐞 Bugs fixes
@mui/x-data-grid@v5.11.1
/ @mui/x-data-grid-pro@v5.11.1
/ @mui/x-data-grid-premium@v5.11.1
Changes
- [DataGrid] Add a CSS class corresponding to current density (#4858) @m4theushw
- [DataGrid] Execute the pipe-processors in their initialization order (#4913) @flaviendelangle
- [DataGrid] Fix rendering of the no rows overlay when the
loading
prop is changed (#4910) @m4theushw - [DataGridPremium] Add
exceljs
to the dependencies (#4939) @alexfauquette - [DataGridPremium] Support column spanning in the Excel export (#4830) @cherniavskii
- [l10n] Improve Russian (ru-RU) locale (#4864) @arvkonstantin
@mui/x-date-pickers@5.0.0-alpha.4
/ @mui/x-date-pickers-pro@5.0.0-alpha.4
Breaking changes
-
The props related to the action bar buttons have been removed (
clearable
,showTodayButton
,cancelText
,okText
)To decide which button must be displayed and in which order, you can now use the
actions
prop of theactionBar
component slot props.<DatePicker componentsProps={{ actionBar: { // The actions will be the same between desktop and mobile actions: ['clear'], // The actions will be different between desktop and mobile actions: (variant) => variant === 'desktop' ? [] : ['clear'], } }} />
The build-in
ActionBar
component supports 4 different actions:'clear'
,'cancel'
,'accept'
, and'today'
.
By default, the pickers will render the cancel and accept button on mobile and no action on desktop.If you need other actions, you can provide your own component to the
ActionBar
component slot<DatePicker components={{ ActionBar: CustomActionBar }} />
Changes
- [DatePicker] Fix keyboard accessibility for first and last year (#4807) @alexfauquette
- [pickers] Add component slot for action bar (#4778) @alexfauquette
- [pickers] Add l10n support (#4517) @alexfauquette
- [pickers] Close Popper when pressing Esc inside a modal (#4499) @alexfauquette
- [pickers] Support class slots on toolbar components (#4855) @flaviendelangle
- [TimePicker] Fix time validation when current date is
null
(#4867) @flaviendelangle
Docs
- [docs] Add 301 redirect for columns page (#4940) @alexfauquette
- [docs] Avoid confusion with license key installation (#4891) @oliviertassinari
- [docs] Complete the instructions for pickers installation in readme (#4852) @alexfauquette
- [docs] Disable ads on paid-only pages (#4842) @flaviendelangle
- [docs] Don't redirect to localized doc on deploy preview (#4818) @m4theushw
- [docs] Limit
LICENSE
file to 80 char per line (#4873) @oliviertassinari - [docs] Typo on OrderId @oliviertassinari
- [docs] Update feature comparison table (#4918) @cherniavskii
Core
- [core] Add new script to generate tree data rows from file tree (#4902) @flaviendelangle
- [core] Fix code style (#4874) @oliviertassinari
- [core] Fix React 18 peer dependency (#4908) @oliviertassinari
- [core] Fix link to the LICENSE file (#4875) @oliviertassinari
- [core] Fix transitive babel dependency (#4793) @oliviertassinari
- [core] New pipe processing
rowHydration
(#4896) @flaviendelangle - [core] Remove dead code for the docs (#4791) @oliviertassinari
- [core] Run
yarn prettier
@oliviertassinari - [core] Polishes on
CHANGELOG.md
(#4876) @oliviertassinari - [core] Simplify rows cache management (#4933) @flaviendelangle
- [core] Use internal icons for quick filter (#4912) @alexfauquette
v5.11.0
We'd like to offer a big thanks to the 15 contributors who made this release possible. Here are some highlights ✨:
-
🚀 Premium plan release. We're happy to announce that the Premium plan is finally out! With it, MUI X officially steps up to the next level, supporting the most advanced use cases for UI components.
This plan is available through the new
@mui/x-data-grid-premium
package, which contains the row grouping and the Excel export features.If you were already using the row grouping feature, you can upgrade by installing
@mui/x-data-grid-premium
and replaceDataGridPro
withDataGridPremium
, as follows. Note that the experimental flag is not required anymore to use the row grouping.-import { DataGridPro } from '@mui/x-data-grid-pro'; +import { DataGridPremium } from '@mui/x-data-grid-premium'; -<DataGridPro experimentalFeatures={{ rowGrouping: true }} /> +<DataGridPremium />
For more information about the revised pricing model please have a look at the blog post.
-
👔 Excel export. You can find this new Premium feature at: https://mui.com/x/react-data-grid/export/#excel-export.
-
🔎 Quick filtering. You can now add a quick filtering search bar to your grid. To do so, either pass
showQuickFilter
prop to the<GridToolbar />
or use the<GridToolbarQuickFilter />
component in your custom toolbar. More information about how to customize the filtering logic is in the documentation. -
🐞 Bugs fixes
@mui/x-data-grid@v5.11.0
/ @mui/x-data-grid-pro@v5.11.0
/ @mui/x-data-grid-premium@v5.11.0
Breaking changes
-
Move row grouping to the premium package (#4223) @flaviendelangle
The use of
rowGrouping
in the@mui/x-data-grid-pro
package is deprecated. The experimental flag will be removed in an upcoming release.
Changes
- [DataGrid] Add TypeScript support to the
sx
prop in inner components (#4743) @lindapaiste - [DataGrid] Add props to control cell mode (#4210) @m4theushw
- [DataGrid] Add quick filtering engine (#4317) @alexfauquette
- [DataGrid] Check focus validity whenever the rows in state changes (#4683) @flaviendelangle
- [DataGrid] Fix infinite scroll when dragging column header cell over row cell (#4735) @DjoSmer
- [DataGrid] Fix scroll jump when using keyboard navigation (#4515) @cherniavskii
- [DataGrid] Improve sorting accessibility (#4379) @cherniavskii
- [DataGrid] New
getRowGroupChildren
API method (#4304) @flaviendelangle - [DataGrid] Publish
preferencePanelClose
event only once when clicking on another panel button (#4810) @flaviendelangle - [DataGrid] Update focused action if the currently focused one is removed (#4694) @m4theushw
- [DataGrid] Add
onChange
callback to edit components (#4621) @m4theushw - [DataGrid] Add
keepNonExistentRowsSelected
prop (#4786) @willsoto - [DataGrid] Prevent crash if row is removed with click (#4831) @m4theushw
- [DataGridPro] Fix detail panel not taking full width (#4610) @cherniavskii
- [DataGridPremium] Add Excel export (#3981) @alexfauquette
- [DataGridPremium] Bootstrap
@mui/x-data-grid-premium
(#4223) @flaviendelangle - [DataGridPremium] Fix Excel date serialization when row grouping is enabled (#4774) @cherniavskii
- [l10n] Improve German (de-DE) locale (#4748) @sebastianfrey
- [l10n] Improve German (de-DE) locale (#4668) @izu-co
@mui/x-date-pickers@5.0.0-alpha.3
/ @mui/x-date-pickers-pro@5.0.0-alpha.3
Breaking changes
-
Rework the auto-closing behavior of the pickers (#4408) @flaviendelangle
The
disableCloseOnSelect
prop has been replaced by a newcloseOnSelect
prop which has the opposite behavior.
The default behavior remains the same (close after the last step on desktop but not on mobile).// If you don't want to close after the last step -<DatePicker disableCloseOnSelect={false} /> +<DatePicker closeOnSelect /> // If you want to close after the last step -<DatePicker disableCloseOnSelect /> +<DatePicker closeOnSelect={false} />
Changes
- [DatePicker] Ignore Escape when the picker is already closed (#4770) @mikewolfd
- [DatePicker] Make month year order changeable in header (#4695) @gky360
- [DateRangePicker] Open view on click, Enter or Space instead of focus (#4747) @alexfauquette
- [DateRangePicker] Refactor tests (#4745) @flaviendelangle
- [DateRangePicker] Remove
orientation
prop (#4665) @m4theushw - [DateTimePicker]
Toolbar
should be visible by default on mobile (#4833) @flaviendelangle - [MonthPicker] New prop
shouldDisableMonth
(#4708) @someone635 - [TimePicker] Disable and invalidate date with minutes not matching
minutesStep
(#4726) @flaviendelangle - [TimePicker] Don't merge with previous value when new value is not valid (#4847) @flaviendelangle
- [TimePicker] Refactor
isTimeDisabled
method (#4688) @flaviendelangle - [pickers] Add details in invalid mask error (#4501) @alexfauquette
- [pickers] Add explicit interfaces for components slots and components slots props (#4589) @flaviendelangle
- [pickers] Add missing
peerDependencies
foryarn pnp
users (#4763) @nate-summercook - [pickers] Add overrides to
PickersArrowSwitcher
(#4672) @m4theushw - [pickers] Clean component interfaces and remove non-implemented props (#4758) @flaviendelangle
- [pickers] Do not apply the current time when no date provided in
DayPicker
(#4649) @flaviendelangle - [pickers] Document and refacto the value manager (#4701) @flaviendelangle
- [pickers] Drop
allowSameDateSelection
prop (#4808) @flaviendelangle - [pickers] Enable mask by default when using
ampm=true
(#4731) @alexfauquette - [pickers] Fix
disabled
andreadOnly
behavior on calendar and clock (#4645) @alexfauquette - [pickers] Invalid character does not delete last digit (#4839) @alexfauquette
- [pickers] Rename prop
date
intoparsedValue
when it can contain a range (#4736) @flaviendelangle - [pickers] Rework
TDate
,TInputDate
,TValue
andTInputValue
generics (#4617) @flaviendelangle - [pickers] Rework the date lifecycle in
usePickerState
(#4408) @flaviendelangle
Docs
- [docs] Add
scopePathNames
property to column page (#4811) @flaviendelangle - [docs] Add label to each demo (#4667) @m4theushw
- [docs] Correctly capitalize Ctrl (#4707) @oliviertassinari
- [docs] Fix documentation on
ampm
prop (#4846) @alexfauquette - [docs] Generate the event documentation from
GridEventLookup
(#4725) @flaviendelangle - [docs] Keep columns section expanded when switching between pages (#4816) @cherniavskii
- [docs] Move
useKeepGroupingColumnsHidden
on@mui/x-data-grid-premium
(#4319) @flaviendelangle - [docs] Remove legacy pages for old URLs (#4575) @m4theushw
- [docs] Remove remaining pages in
docs/pages/api-docs
folder (#4709) @m4theushw - [docs] SEO fixes (#4711) @oliviertassinari
- [docs] Set type number to movie column year (#4753) @flaviendelangle
- [docs] Simplify server examples (#4186) @alexfauquette
- [docs] Small typo (#4670) @flaviendelangle
- [docs] Split the 'Columns' page (#4600) @flaviendelangle
- [docs] Stop using
GridEvents
enum in documentation (#4699) @flaviendelangle - [docs] Update mono repo to get copy code block (#4691) @siriwatknp
- [docs] Update the feature table in the Getting Started page of the data grid (#4619) @flaviendelangle
- [docs] Add demo for Premium (#4750) @m4theushw
Core
- [core] Check if
process
is available (#4193) @m4theushw - [core] Fix naming collision (#4853) @alexfauquette
- [core] Prevent out-of-memory when type-checking in CI (#4697) @flaviendelangle
- [core] Remove
rowsCache
from state (#4480) @m4theushw - [core] Rework
DayPicker
api (#4783) @flaviendelangle - [core] Update
x-license-pro
license to handle premium package (#4315) @DanailH - [core] Update monorepo & version (#4789) @oliviertassinari
- [core] Update monorepo (#4772) @flaviendelangle
- [core] Stop using
GridEvents
enum (#4698, #4696, #4685) @flaviendelangle - [core] Update monorepo (#4854) @cherniavskii
- [license] Allow to limit some packages to a specific license plan (#4651) @flaviendelangle
- [test] Fix path to detect
DataGrid
tests (#4752) @m4theushw - [test] Reset cleanup tracking on Karma tests (#4679) @m4theushw
- [test] Restore
sinon
sandbox after eachkarma
test (#4689) @m4theushw
v5.10.0
We'd like to offer a big thanks to the 6 contributors who made this release possible. Here are some highlights ✨:
-
🎁 Introduce Row reorder (#4034) @DanailH
-
🐞 Bug fixes
@mui/x-data-grid@v5.10.0
/ @mui/x-data-grid-pro@v5.10.0
- [DataGrid] Don't close column menu when updating rows (#4498) @m4theushw
- [DataGridPro] Introduce row reorder (#4034) @DanailH
@mui/x-date-pickers@5.0.0-alpha.2
/ @mui/x-date-pickers-pro@5.0.0-alpha.2
- [pickers] Pass
PaperProps
toDesktopWrapper
component (#4584) @alexfauquette - [TimePicker] Fix bug when time picker clear value (#4582) @alexfauquette
- [DateRangePicker] Fix missing
clearable
andclearText
props (#4511) @zigang93
Docs
- [docs] Add plan in the nav bar for pro-only and premium-only pages (#4591) @flaviendelangle
- [docs] Clarify where to install the license (#4452) @oliviertassinari
- [docs] Fix CodeSandbox links for demo with pickers (#4570) @alexfauquette
- [docs] Include date-fns dependency when opening demos in CodeSandbox (#4508) @m4theushw
- [docs] Split the 'Group & Pivot' page (#4441) @flaviendelangle
Core
- [core] Fix the README of the X packages (#4590) @flaviendelangle
- [test] Fix test to not depend on screen resolution (#4587) @m4theushw
v5.9.0
We'd like to offer a big thanks to the 9 contributors who made this release possible. Here are some highlights ✨:
-
⚡ Update peer dependencies to support React 18 (#4332) @m4theushw
Now the data grid and pickers components support the concurrent mode.
-
🎁 Add support for Column spanning (#4020) @cherniavskii
-
📚 New standalone documentation for MUI X (#4313) @siriwatknp
Each MUI product now has its own documentation.
More information on our blog post. -
🐞 Bug fixes
@mui/x-data-grid@v5.9.0
/ @mui/x-data-grid-pro@v5.9.0
- [DataGrid] Add indexes relative to the filtered rows and the current page to the
getRowClassName
andgetRowSpacing
props (#3882) @flaviendelangle - [DataGrid] Add React 18 to peer dependencies (#4332) @m4theushw
- [DataGrid] Add support for column spanning (#4020) @cherniavskii
- [DataGrid] Apply filtering before sorting (#4359) @flaviendelangle
- [DataGrid] Enable using non-native Select in filter panel (#4361) @kyeongsoosoo
- [DataGrid] Fix
api
prop leaking to DOM (#4384) @m4theushw - [DataGrid] Fix column dimensions import/export with flex and resizing (#4311) @flaviendelangle
- [DataGrid] Fix focus after stopping row edit mode with pagination enabled (#4326) @m4theushw
- [DataGrid] Fix inconsistent overlay when changing the
loading
prop (#4334) @m4theushw - [DataGrid] Fix scrollbar grabbing issue in Safari (#4405) @cherniavskii
- [DataGrid]
GridCellParams.formattedValue
should be nullable (#4376) @flaviendelangle - [DataGrid] Improve accessibility of the
actions
column (#4325) @m4theushw - [DataGrid] Pass updated row to edit components (#4392) @m4theushw
- [DataGrid] Prevent column header scroll (#4280) @m4theushw
- [DataGridPro] Fix toggling detail panel using keyboard (#4409) @cherniavskii
- [l10n] Add Hungarian (hu-HU) locale (#4458) @x22tri
@mui/x-date-pickers@5.0.0-alpha.1
/ @mui/x-date-pickers-pro@5.0.0-alpha.1
- [ClockPicker] Should call
shouldDisableTime
with the hours with meridiem (#4404) @flaviendelangle - [MonthPicker] Clicking on a
PickersMonth
button should not trigger the form submit (#4402) @flaviendelangle - [TimePicker] Do not update date when updating input in
TimePicker
(#4398) @flaviendelangle - [pickers] Add react-dom to pickers peer deps to satisfy react-transition-group (#4411) @CarsonF
- [pickers] Add
TDate
generic toCalendarOrClockPicker
component (#4465) @flaviendelangle - [pickers] Fix default props behavior on all pickers (#4451) @flaviendelangle
- [pickers] Export
MuiPickersAdapterContext
(#4367) @flaviendelangle
Docs
- [docs] Avoid redirections (#4365) @oliviertassinari
- [docs] Fix docs about date adapter (#4386) @alexfauquette
- [docs] Fix small external links issue (#4436) @oliviertassinari
- [docs] Fix some links to date picker docs (#4362) @oliviertassinari
- [docs] Fix wrong URL (#4415) @siriwatknp
- [docs] Go live with the new URLs (#4313) @siriwatknp
- [docs] Update the product names to be in sync @oliviertassinari
Core
- [core] Add technical doc for pipe processing and family processing (#4322) @flaviendelangle
- [core] Don't upgrade CircleCI node (#4457) @m4theushw
- [core] Fix flaky e2e-website tests in CI (#4136) @cherniavskii
- [core] Fix license file copying during build (#4462) @flaviendelangle
- [core] Fix links on v5.8.0 (#4464) @oliviertassinari
- [core] Fix npm page description mistake (#4364) @oliviertassinari
- [core] Fix typos and JSDoc (#4406) @flaviendelangle
- [core] Move away for the event system to trigger pipe processings (#4378) @flaviendelangle
- [core] Small fixes TS on pickers (#4461) @flaviendelangle
- [core] Unify tests (#4368) @flaviendelangle
- [core] Enforce
noImplicitAny
indocs
folder (#4412) @cherniavskii
v5.8.0
We'd like to offer a big thanks to the 7 contributors who made this release possible. Here are some highlights ✨:
-
🚀 Expose new methods to save and restore the grid state (#4028) @flaviendelangle
The different methods to save and restore the data-grid state are now documented.
-
⌚️ Move date and time picker components from the lab (#3451) @flaviendelangle
Date and time picker components have been moved to the MUI X repository.
They are now accessible in their own packages:@mui/x-date-pickers
and@mui/x-date-pickers-pro
.
For more information, you can read the blog article and the migration guide. -
📝 Add
onProcessRowUpdateError
prop to simplify error management in edit mode (#4267) @m4theushw -
✨ Add generic typing to
GridColDef
and derived interfaces (#4064) @flaviendelangleYou can now strongly type all the objects related to the row and the cell values.
Here is an example, you can find out more in the description of #4064.const rows: Movie[] = []; return ( <DataGrid rows={rows} columns={[{ // typeof params.row => Movie (R) valueGetter: params => params.row.year, }]} /> );
@mui/x-data-grid@v5.8.0
/ @mui/x-data-grid-pro@v5.8.0
Changes
- [DataGrid] Add
onProcessRowUpdateError
prop (#4267) @m4theushw - [DataGrid] Add generic typing to
GridColDef
and derived interfaces (#4064) @flaviendelangle - [DataGrid] Add missing classes on
gridClasses
andgridPanelClasses
(#4273) @flaviendelangle - [DataGrid] Add
onPreferencePanelClose
/onPreferencePanelOpen
props (#4265) @kyeongsoosoo - [DataGrid] Add slot for filter icon button (#4276) @m4theushw
- [DataGrid] Add the documentation of the portable state (#4028) @flaviendelangle
- [DataGrid] Allow to use keyboard navigation even with no rows (#4302) @alexfauquette
- [DataGrid] Fix inconsistency in the border of the last column (#4224) @alexfauquette
- [DataGrid] Fix overlay blocking scrollbar when rows is empty (#4281) @m4theushw
- [DataGrid] Improve selection with keyboard (#4157) @flaviendelangle
- [DataGrid] Scroll to the top of the page when changing page (#4272) @flaviendelangle
- [l10n] Improve Danish (da-DK) locale (#4271) @simplenotezy
@mui/x-date-pickers@v5.0.0-alpha.0
/ @mui/x-date-pickers-pro@v5.0.0-alpha.0
Changes
- [DatePicker] Import date-picker components from the lab (#3451) @flaviendelangle
Docs
- [docs] Create an home page for "Advanced Components" (#4298) @flaviendelangle
- [docs] Update installation docs (#4259) @cherniavskii
- [docs] New page for the migration of date and time pickers from the lab (#4327) @flaviendelangle
Core
- [core] Fix typo in issue template @oliviertassinari
- [core] Move last variables outside of the models folder (#4303) @flaviendelangle
- [core] Remove dead code (#4283) @oliviertassinari
- [core] Rename the "pre-processing" concept "pipe-processing" (#4261) @flaviendelangle
- [core] Reuse previous state when updating the columns prop (#4229) @m4theushw
- [core] Fix Argos flakyness for pickers tests (#4312) @flaviendelangle
v5.7.0
We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
-
✏ Add a new editing API with better support for server-side persistence and validation (#3963, #4060) @m4theushw
The new API is stable, but to avoid any breaking changes or conflicts with the old API, you must add the following flag to access it:
<DataGrid experimentalFeatures={{ newEditingApi: true }} />
⚠ Users relying on the old API (legacy) don't need to worry as it will continue to work until v6.
The new API also features brand new documentation with more useful demos and guides explaining how to create custom edit components.
Visit the new documentation for more information. -
📚 Documentation improvements
-
🐞 Bug and typo fixes
@mui/x-data-grid@v5.7.0
/ @mui/x-data-grid-pro@v5.7.0
Changes
- [DataGrid] Add column order and dimensions to the portable state (#3816) @flaviendelangle
- [DataGrid] Add new editing API (#3963) @m4theushw
- [DataGrid] Allow to customize
ColumnsPanel
withcomponentsProps
prop (#4207) @alexfauquette - [DataGrid] Do not unselect row when Shift + click on the last selected row of a range (#4196) @flaviendelangle
- [DataGrid] Fix
showCellRightBorder
not working in the last row (#4140) @cherniavskii - [DataGrid] Fix error overlay not visible when
autoHeight
is enabled (#4110) @cherniavskii - [DataGrid] Fix white blank when scrolling (#4158) @alexfauquette
- [DataGrid] Adjust type of the
description
prop inGridColumnHeaderTitle
(#4247) @baahrens - [DataGrid] Fix focus after stopping row edit mode (#4252) @m4theushw
- [DataGridPro] Fix pinned columns edge overflow with custom
borderRadius
(#4188) @socramm9 - [DataGridPro] Fix tab switching order with pinned columns and
editMode="row"
(#4198) @cherniavskii - [l10n] Improve Persian (fa-IR) locale (#4227) @SaeedZhiany
- [l10n] Improve Polish (pl-PL) locale (#4153) @pbmchc
- [l10n] Improve Arabic (ar-SD) locale (#4212) @shadigaafar
- [l10n] Improve Korean (ko-KR) locale (#4245) @kyeongsoosoo
Docs
- [docs] Clean demo (#4073) @alexfauquette
- [docs] Delete restore state demos (#4220) @flaviendelangle
- [docs] Document Print export
X-Frame-Options
limitation (#4222) @DanailH - [docs] Add docs for the new editing API (#4060) @m4theushw
- [docs] Explain how to use
printOptions.pageStyle
(#4138) @alexfauquette - [docs] Fix 301 links (#4165) @oliviertassinari
- [docs] Fix 404 API links (#4164) @oliviertassinari
- [docs] Fix broken anchor links (#4162) @alexfauquette
- [docs] Remove useless
apiRef
from demos (#4221) @flaviendelangle - [docs] Sync the headers with core (#4195) @oliviertassinari
Core
- [core] Add CLI to decode license key (#4126) @flaviendelangle
- [core] Fix Lerna package change detection (#4202) @oliviertassinari
- [core] Implement strategy pattern for pre-processors (#4030) @flaviendelangle
- [core] Keep same reference to the column visibility model if no column has changed (#4154) @m4theushw
- [core] Prepare
@mui/x-license-pro
for date pickers (#4123) @flaviendelangle - [core] Remove datagen from
@mui/x-data-grid-generator
bundle (#4163) @m4theushw - [core] Remove lodash
isDeepEqual
(#4159) @flaviendelangle - [core] Use a pipe processor for
GridPreferencePanel
children (#4216) @flaviendelangle - [core] Add markdown documentation for contributors (#3447) @alexfauquette
- [test] Add regression test for
showCellRightBorder
(#4191) @cherniavskii - [test] Mock
getComputedStyle
to speed up unit tests (#4142) @m4theushw - [test] Upgrade CircleCI convenience image (#4143) @m4theushw
v5.6.1
We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
-
[DataGrid] Allow to add margins or borders between rows (#3848) @m4theushw
<DataGrid getRowSpacing={() => ({ top: 10, bottom: 10 })} />
Check the documentation for more information.
@mui/x-data-grid@v5.6.1
/ @mui/x-data-grid-pro@v5.6.1
Changes
- [DataGrid] Display column's filter icon if a filter is applied (#4120) @DanailH
- [DataGrid] Do not loop through rows to compute top level rows count when the tree is flat (#4081) @flaviendelangle
- [DataGrid] Rename API method (#4148) @m4theushw
- [DataGrid] Support extending built-in column types (#4114) @cherniavskii
- [DataGridPro] Re-export the components removed by mistake during bundle split (#4134) @flaviendelangle
Docs
- [docs] Fix links to prevent duplicate search result (#4130) @siriwatknp
- [docs] Fix outdated links to
localeTextConstants.ts
(#4080) @patilvishal755 - [docs] Neglect e2e tests related to search (#4118) @siriwatknp
- [docs] Use regex instead of specific url in e2e-website-tests (#4121) @siriwatknp
Core
- [core] Enforce
noImplicitAny
(#4084) @cherniavskii - [core] Improve the Pro support issue template (#4082) @oliviertassinari
- [core] Initialize remaining states before feature hooks (#4036) @m4theushw
- [core] Merge
page
andpageSize
state initializer into a singlepagination
state initializer (#4087) @flaviendelangle - [core] Prepare
yarn docs:api:build
scripts for multi packages support (#4111) @flaviendelangle - [core] Upgrade
@mui/monorepo
(#4149) @cherniavskii - [core] Use
buildWarning
andwrapWithWarningOnCall
for deprecated methods and wrong usages (#4056) @flaviendelangle - [test] Make focus state out-of-sync warning opt-in (#4129) @m4theushw
- [test] Only test custom input keyboard event in edit mode (#4075) @alexfauquette
v5.6.0
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
andGridApiRef
(#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
andfilterModel
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
'sborderBottom
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 newrowNode
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 toapiRef
(#3751) @cherniavskii - [DataGridPro] Always export the
pageSize
andpage
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
- [docs] Add example of custom operator based on built-in ones (#3911) @flaviendelangle
- [docs] Add missing words in the filtering page (#4079) @flaviendelangle
- [docs] Avoid crash in demos using row grouping and custom formatted cells (#4065) @m4theushw
- [docs] Fix
Commodity
andEmployee
CSV export of thecountry
column (#3912) @DanailH - [docs] Fix links to the GitHub repository (#4005) @oliviertassinari
- [docs] Fix typo (#3923) @oliviertassinari
- [docs] Fix typo (#4016) @MathisBurger
- [docs] Fix typo in client-side validation example (#4066) @krallj
- [docs] Remove useless hide id column (#4021) @alexfauquette
Core
- [core] Allows to add custom export item (#3891) @alexfauquette
- [core] Remove the
_modules_
folder (#3953) @flaviendelangle - [core] Fix typo in
useGridScroll.ts
(#3973) @hexm7 - [core] Fix typos, improve wordings and other various fixes (#4062) @flaviendelangle
- [core] Initialize states before feature hooks (#3896) @m4theushw
- [code] Make
@mui/x-data-grid-pro
import shared code from@mui/x-data-grid
(#3688) @flaviendelangle - [core] Migrate
@mui/x-license-pro
to the new bundling strategy (#3738) @flaviendelangle - [core] Reduce usage of
useGridSelector
inside feature hooks (#3978) @flaviendelangle - [core] Retry l10n CI if 502 returned (#3977) @alexfauquette
- [core] Update release instructions (#3920) @cherniavskii
- [core] Use international locale format (#3921) @oliviertassinari
- [core] Fix license generating script (#4055) @Janpot
- [test] Add screenshot of the filter panel (#4072) @alexfauquette
- [test] Reduce memory usage to run unit tests (#4031) @m4theushw
- [test] Skip test on Firefox (#3926) @m4theushw