-
-
Notifications
You must be signed in to change notification settings - Fork 1.4k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[pickers] Use context to pass props from the picker to the field #16042
[pickers] Use context to pass props from the picker to the field #16042
Conversation
…avior from the picker
Deploy preview: https://deploy-preview-16042--material-ui-x.netlify.app/ Updated pages: |
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
* @param {string} params.format Format of the date to use. | ||
* @param {'dense' | 'spacious'} params.formatDensity Density of the format (setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character). | ||
* @param {boolean} params.shouldRespectLeadingZeros If `true`, the format will respect the leading zeroes, if `false`, the format will always add leading zeroes. | ||
* @param {string} params.format Format to parse. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
-
shouldRespectLeadingZeros
: I removed it because it was doing nothing since it's a placeholder and a placeholder never has leading zeros 🤦 . -
formatDensity
: I removed it, but for this one it's more subjective and I would like your opinion. I can take it from the context and allow an override like for the format. My reasoning behind the removal is that the density is a concept internal to the our field. If someone uses it in a custom field (let say a masked field), then he/she will have an inconsistency between the placeholder (which will have the spaces) and the value (which wont). So I think it's better to just let the user use a good oldformat.replace(/\//g, ' / ')
. -
format
: I made it optional, by default it's using the one of the picker (or a default date format when using a standalone field but it's probably not a realistic use case)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the formatDensity
I do agree ... its probably best to give the user the freedom to use whatever density he prefers and apply it to both. 👍🏼
packages/x-date-pickers/src/internals/components/PickerProvider.tsx
Outdated
Show resolved
Hide resolved
@@ -41,16 +40,18 @@ function ButtonDateTimeField(props: DateTimePickerFieldProps) { | |||
} = forwardedProps; | |||
|
|||
const pickerContext = usePickerContext(); | |||
|
|||
const parsedFormat = useParsedFormat(internalProps); | |||
const parsedFormat = useParsedFormat(); | |||
const { hasValidationError } = useValidation({ |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We would now be able to make value
and timezone
optional and read it from the context by default. Same with the validation props in the future.
But I would like to take the time to think this API correctly before doing anything.
docs/data/date-pickers/custom-field/behavior-autocomplete/MaterialDatePicker.js
Show resolved
Hide resolved
docs/data/date-pickers/custom-field/behavior-button/MaterialDateRangePicker.tsx
Outdated
Show resolved
Hide resolved
docs/data/migration/migration-pickers-v7/migration-pickers-v7.md
Outdated
Show resolved
Hide resolved
docs/data/migration/migration-pickers-v7/migration-pickers-v7.md
Outdated
Show resolved
Hide resolved
docs/data/migration/migration-pickers-v7/migration-pickers-v7.md
Outdated
Show resolved
Hide resolved
docs/data/migration/migration-pickers-v7/migration-pickers-v7.md
Outdated
Show resolved
Hide resolved
* @param {string} params.format Format of the date to use. | ||
* @param {'dense' | 'spacious'} params.formatDensity Density of the format (setting `formatDensity` to `"spacious"` will add a space before and after each `/`, `-` and `.` character). | ||
* @param {boolean} params.shouldRespectLeadingZeros If `true`, the format will respect the leading zeroes, if `false`, the format will always add leading zeroes. | ||
* @param {string} params.format Format to parse. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
On the formatDensity
I do agree ... its probably best to give the user the freedom to use whatever density he prefers and apply it to both. 👍🏼
packages/x-date-pickers/src/internals/hooks/usePicker/usePickerValue.types.ts
Outdated
Show resolved
Hide resolved
This pull request has conflicts, please resolve those before we can evaluate the pull request. |
docs/data/date-pickers/custom-field/behavior-read-only-text-field/MaterialDatePicker.js
Show resolved
Hide resolved
docs/data/migration/migration-pickers-v7/migration-pickers-v7.md
Outdated
Show resolved
Hide resolved
docs/data/migration/migration-pickers-v7/migration-pickers-v7.md
Outdated
Show resolved
Hide resolved
packages/x-date-pickers-pro/src/MultiInputDateRangeField/MultiInputDateRangeField.tsx
Show resolved
Hide resolved
packages/x-date-pickers/src/internals/hooks/usePicker/usePickerValue.types.ts
Outdated
Show resolved
Hide resolved
Co-authored-by: Lukas Tyla <[email protected]> Signed-off-by: Flavien DELANGLE <[email protected]>
Co-authored-by: Lukas Tyla <[email protected]> Signed-off-by: Flavien DELANGLE <[email protected]>
…d-private-context
commit 55b01ba Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Tue Jan 14 20:51:13 2025 +0200 Bump MUI Internal (mui#16177) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit bdd82ae Author: Alexandre Fauquette <[email protected]> Date: Tue Jan 14 14:35:41 2025 +0100 [charts] Plot data at first render if `skipAnimation` is set to `true` (mui#16166) Signed-off-by: Alexandre Fauquette <[email protected]> Signed-off-by: Jose C Quintas Jr <[email protected]> Co-authored-by: Jose C Quintas Jr <[email protected]> commit ca63047 Author: Alexandre Fauquette <[email protected]> Date: Tue Jan 14 13:18:02 2025 +0100 [docs] Add example for custom legend (mui#16169) commit fdcc57e Author: Alexandre Fauquette <[email protected]> Date: Tue Jan 14 12:01:56 2025 +0100 [docs] Remove broken links (mui#16167) commit 7c505ea Author: Flavien DELANGLE <[email protected]> Date: Tue Jan 14 07:35:12 2025 +0100 [pickers] Let the field components handle their opening UI, and allow field editing on mobile pickers (mui#15671) Signed-off-by: Flavien DELANGLE <[email protected]> Co-authored-by: Lukas Tyla <[email protected]> commit c7f8cd6 Author: Flavien DELANGLE <[email protected]> Date: Mon Jan 13 16:37:49 2025 +0100 [docs] Add full custom field creation example (mui#15194) Signed-off-by: Flavien DELANGLE <[email protected]> Signed-off-by: Lukas Tyla <[email protected]> Co-authored-by: Lukas Tyla <[email protected]> commit aa515ec Author: Alexandre Fauquette <[email protected]> Date: Mon Jan 13 15:53:59 2025 +0100 [charts] Move z-axis to plugin (mui#16130) commit 2c9ddc9 Author: Jose C Quintas Jr <[email protected]> Date: Mon Jan 13 13:58:06 2025 +0100 [charts] Make `useChartGradientId` public (mui#16106) commit 6e76ec9 Author: Lukas Tyla <[email protected]> Date: Mon Jan 13 13:18:23 2025 +0200 [code-infra] Stop renovate from updating `date-fns-v2` (mui#16158) commit 770ab40 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Jan 13 10:03:03 2025 +0200 Bump next to ^15.1.4 (mui#16150) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 2ee4a8f Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Jan 13 09:50:58 2025 +0200 Bump pnpm to 9.15.3 (mui#16151) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 89b0740 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Jan 13 09:47:53 2025 +0200 Bump markdown-to-jsx to ^7.7.3 (mui#16149) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 3ac1a43 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Jan 13 09:47:40 2025 +0200 Bump @octokit/plugin-retry to ^7.1.3 (mui#16140) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit d42a129 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Jan 13 09:34:21 2025 +0200 Bump typescript to ^5.7.3 (mui#16152) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 8eaf601 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Jan 13 09:31:00 2025 +0200 Bump jscodeshift to 17.1.2 (mui#16148) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit b216ad8 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Jan 13 09:21:50 2025 +0200 Bump React (mui#16143) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 1a6dfc2 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Jan 13 09:20:37 2025 +0200 Bump @tanstack/query-core to ^5.64.0 (mui#16154) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit eea3ad8 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Jan 13 09:20:08 2025 +0200 Bump babel to ^7.26.5 (mui#16146) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 4cfb04c Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Jan 13 09:19:20 2025 +0200 Bump @types/d3-shape to ^3.1.7 (mui#16141) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 8351f94 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Jan 13 08:51:56 2025 +0200 Bump Material UI to ^5.16.14 (mui#16145) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 6b3dece Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sun Jan 12 13:43:15 2025 +0000 Bump @octokit/rest to ^21.1.0 (mui#16153) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 41e5994 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sun Jan 12 13:40:44 2025 +0000 Bump fast-glob to ^3.3.3 (mui#16147) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 71cdcbf Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sun Jan 12 09:30:42 2025 +0000 Bump GitHub Actions (mui#16144) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit f07901e Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sun Jan 12 09:28:32 2025 +0000 Bump @types/node to ^20.17.12 (mui#16142) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 49bee80 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sun Jan 12 05:32:28 2025 +0000 Bump @next/eslint-plugin-next to 15.1.4 (mui#16139) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 3174216 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sun Jan 12 05:31:35 2025 +0000 Bump @mui/monorepo digest to c51af8e (mui#16138) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 769855d Author: Jose C Quintas Jr <[email protected]> Date: Sat Jan 11 10:54:03 2025 +0100 [charts] Handle case where gradient stop `offset` could be `Infinite` (mui#16131) commit e93f4d2 Author: Rom Grk <[email protected]> Date: Fri Jan 10 17:25:27 2025 -0500 [DataGrid] Refactor: remove missed theme (mui#16122) commit 9c2224f Author: Jose C Quintas Jr <[email protected]> Date: Fri Jan 10 16:24:43 2025 +0100 [charts] Replace tooltip mark with style (mui#16117) commit 7d5dd73 Author: Jose C Quintas Jr <[email protected]> Date: Fri Jan 10 15:41:02 2025 +0100 [charts] Support `rtl` for gradient legend (mui#16115) commit d25c213 Author: Armin Mehinovic <[email protected]> Date: Fri Jan 10 14:30:29 2025 +0100 [docs] Fix demo rendering issue on Codesandbox (mui#16118) commit 1fdcf85 Author: Alexandre Fauquette <[email protected]> Date: Fri Jan 10 13:23:05 2025 +0100 [charts] Use plugin system for series and axes (mui#15865) Co-authored-by: Jose C Quintas Jr <[email protected]> commit 5999d29 Author: Jose C Quintas Jr <[email protected]> Date: Fri Jan 10 12:00:00 2025 +0100 [charts][docs] Fix wrong props warnings (mui#16119) commit 7541f95 Author: Armin Mehinovic <[email protected]> Date: Fri Jan 10 11:55:23 2025 +0100 [core] Type all references as `RefObject` (mui#16124) commit 85961a5 Author: Rom Grk <[email protected]> Date: Fri Jan 10 03:26:26 2025 -0500 [DataGrid] refactor: theme to CSS variables (mui#15704) Signed-off-by: Rom Grk <[email protected]> Co-authored-by: Kenan Yusuf <[email protected]> commit 9e07e0f Author: Flavien DELANGLE <[email protected]> Date: Fri Jan 10 09:18:12 2025 +0100 [pickers] Use context to pass props from the picker to the field (mui#16042) Signed-off-by: Flavien DELANGLE <[email protected]> Co-authored-by: Lukas Tyla <[email protected]> commit 6412b8c Author: Armin Mehinovic <[email protected]> Date: Thu Jan 9 15:49:00 2025 +0100 v8.0.0-alpha.7 (mui#16110) Signed-off-by: Armin Mehinovic <[email protected]> Co-authored-by: Bilal Shafi <[email protected]> Co-authored-by: Lukas Tyla <[email protected]> Co-authored-by: Alexandre Fauquette <[email protected]> commit 296a499 Author: Bilal Shafi <[email protected]> Date: Thu Jan 9 17:13:03 2025 +0500 [DataGridPremium] Server-side aggregation with data source (mui#15741) Co-authored-by: Armin Mehinovic <[email protected]> commit 3b0bba2 Author: Rom Grk <[email protected]> Date: Thu Jan 9 04:18:25 2025 -0500 [core] Update argos screenshots (mui#16111) commit 068ab78 Author: Andrew Cherniavskii <[email protected]> Date: Wed Jan 8 21:52:57 2025 +0100 [DataGridPremium] Improve aggregation performance for multiple columns (mui#16097) commit 3fe74a9 Author: Jose C Quintas Jr <[email protected]> Date: Wed Jan 8 16:18:31 2025 +0100 [charts] New HTML legend & styles (mui#15733) Signed-off-by: Jose C Quintas Jr <[email protected]> Co-authored-by: Alexandre Fauquette <[email protected]> commit 86d6e2a Author: Rom Grk <[email protected]> Date: Tue Jan 7 17:39:23 2025 -0500 [DataGrid] Refactor: create tooltip props (mui#16086) commit f1332f1 Author: Lukas Tyla <[email protected]> Date: Tue Jan 7 16:45:26 2025 +0200 [pickers] Rename `AdapterDateFns` into `AdapterDateFnsV2` and `AdapterDateFnsV3` into `AdapterDateFns` (mui#16082) Signed-off-by: Lukas Tyla <[email protected]> Co-authored-by: Michel Engelen <[email protected]> commit 0a7ba21 Author: Flavien DELANGLE <[email protected]> Date: Tue Jan 7 14:56:09 2025 +0100 [pickers] Always use `setValue` internally to update the picker value (mui#16056) commit cad579c Author: Flavien DELANGLE <[email protected]> Date: Tue Jan 7 12:35:24 2025 +0100 [pickers] Rename `ctx.onViewChange` to `ctx.setView` and add it to the actions context (mui#16044) commit 011ccd0 Author: Lukas Tyla <[email protected]> Date: Tue Jan 7 13:32:27 2025 +0200 [pickers] Memoize `<PickersActionBar />` (mui#16071) commit fb23fd1 Author: Lukas Tyla <[email protected]> Date: Tue Jan 7 12:53:00 2025 +0200 [l10n] Improve Norwegian (nb-NO) locale (mui#16083) (@josteinjhauge) (mui#16089) Signed-off-by: Jostein Hauge <[email protected]> Co-authored-by: Jostein Hauge <[email protected]> commit 0a8dff6 Author: tomashauser <[email protected]> Date: Tue Jan 7 09:23:10 2025 +0100 [docs] Fix non-existing "adapter" property of LocalizationProvider (mui#16084) commit 0f66a53 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Jan 6 12:25:52 2025 +0200 Lock file maintenance (mui#16051) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 8e785f9 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Jan 6 16:43:26 2025 +0700 Bump @mui/monorepo digest to 5d892ca (mui#16073) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 82cf0ed Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Jan 6 11:20:02 2025 +0200 Bump markdownlint-cli2 to ^0.17.1 (mui#16079) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 5189633 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Jan 6 11:15:50 2025 +0200 Bump concurrently to ^9.1.2 (mui#16078) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit b80d266 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Jan 6 11:09:21 2025 +0200 Bump @tanstack/query-core to ^5.62.15 (mui#16074) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 7c41d42 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Jan 6 11:04:23 2025 +0200 Bump styled-components to ^6.1.14 (mui#16080) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 0219cb4 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Jan 6 11:00:43 2025 +0200 Bump MUI Internal (mui#16077) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 5a267e7 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sun Jan 5 04:43:34 2025 +0000 Bump @types/node to ^20.17.11 (mui#16076) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 959dc9d Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sun Jan 5 04:42:38 2025 +0000 Bump @types/lodash to ^4.17.14 (mui#16075) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 3ebf4fb Author: Rom Grk <[email protected]> Date: Fri Jan 3 18:23:01 2025 -0500 [DataGrid] Refactor: create base button props (mui#15930) commit 513b8f6 Author: Lukas Tyla <[email protected]> Date: Fri Jan 3 15:37:59 2025 +0200 [pickers] Update `closeOnSelect` and `actionBar.actions` default values (mui#15944) Signed-off-by: Lukas Tyla <[email protected]> Co-authored-by: Arthur Balduini <[email protected]> Co-authored-by: arthurbalduini <[email protected]> commit 5f0cd45 Author: Armin Mehinovic <[email protected]> Date: Fri Jan 3 14:12:01 2025 +0100 [DataGrid] Fix number filter field formatting values while typing (mui#16062) commit d85fff1 Author: Jose C Quintas Jr <[email protected]> Date: Thu Jan 2 12:42:58 2025 +0100 [code-infra] Add `testSkipIf` and `describeSkipIf` (mui#16049) Signed-off-by: Jose C Quintas Jr <[email protected]> Co-authored-by: Lukas Tyla <[email protected]> commit 3fffa77 Author: Steve Xu <[email protected]> Date: Thu Jan 2 17:25:40 2025 +0800 [l10n] Add Chinese (Taiwan) (zh-TW) locale (mui#16033) Signed-off-by: Steve Xu <[email protected]> Co-authored-by: Lukas Tyla <[email protected]> commit 3b47f1d Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Wed Jan 1 21:23:49 2025 +0700 Bump @mui/monorepo digest to 84d6ecf (mui#16021) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Lukas <[email protected]> commit 88438a1 Author: Lukas Tyla <[email protected]> Date: Wed Jan 1 14:25:27 2025 +0200 [test] Stabilize flaky Data Grid tests (mui#16053) commit a5f4a73 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Tue Dec 31 14:55:55 2024 +0200 Bump MUI Internal (mui#16028) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 390211c Author: Rajat <[email protected]> Date: Tue Dec 31 17:53:50 2024 +0530 [docs] Fix `EditingWithDatePickers` demo (mui#15967) commit d570c6d Author: Andrew Cherniavskii <[email protected]> Date: Tue Dec 31 13:22:53 2024 +0100 [DataGrid] Fix TS error (mui#16046) commit 797c5a0 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Tue Dec 31 13:57:37 2024 +0200 Bump next to ^15.1.3 (mui#16026) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 552f08b Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Tue Dec 31 13:57:00 2024 +0200 Bump @tanstack/query-core to ^5.62.9 (mui#16023) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 2f4af7e Author: Flavien DELANGLE <[email protected]> Date: Tue Dec 31 12:55:57 2024 +0100 [docs] Fix inconsistent multi input range field separators (mui#16043) commit f689693 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Tue Dec 31 13:55:29 2024 +0200 Bump pnpm to 9.15.2 (mui#16027) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit ea384f1 Author: Rajat <[email protected]> Date: Tue Dec 31 16:08:36 2024 +0530 [DataGridPremium] Make Aggregation keyboard accessible in the column menu (mui#15934) Co-authored-by: Bilal Shafi <[email protected]> commit 20e037b Author: Flavien DELANGLE <[email protected]> Date: Tue Dec 31 10:56:57 2024 +0100 [pickers] Introduce a new concept of `manager` (mui#15339) Signed-off-by: Flavien DELANGLE <[email protected]> Co-authored-by: Lukas Tyla <[email protected]> commit e5471d4 Author: Derek Alvarado <[email protected]> Date: Mon Dec 30 15:59:16 2024 -0700 [DataGrid] Add `name` attribute to selection checkboxes (mui#15178) Co-authored-by: Andrew Cherniavskii <[email protected]> commit 43411bf Author: Flavien DELANGLE <[email protected]> Date: Mon Dec 30 17:31:41 2024 +0100 [pickers] Create a new context to pass the range position props to the layout components and to the views (mui#15846) commit 9bce04c Author: Lukas Tyla <[email protected]> Date: Mon Dec 30 18:21:16 2024 +0200 [fields] Handle focusing container with `inputRef.current.focus` on `accessibleFieldDOMStructure` (mui#15985) commit 3ead503 Author: Andrew Cherniavskii <[email protected]> Date: Mon Dec 30 17:10:14 2024 +0100 [core] Update the `release:version` docs (mui#16038) commit 0c6aa25 Author: Flavien DELANGLE <[email protected]> Date: Mon Dec 30 16:27:38 2024 +0100 [pickers] Remove `NonEmptyDateRange` type (mui#16035) commit 2cc9bc8 Author: Flavien DELANGLE <[email protected]> Date: Mon Dec 30 16:26:21 2024 +0100 [docs] Unify the wording of the pickers slots breaking changes (mui#16036) commit e283172 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Dec 30 17:04:59 2024 +0200 [core] Improve React 19 support (mui#15769) Signed-off-by: Armin Mehinovic <[email protected]> Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jose Quintas <[email protected]> Co-authored-by: Lukas <[email protected]> Co-authored-by: flavien <[email protected]> Co-authored-by: Armin Mehinovic <[email protected]> Co-authored-by: Armin Mehinovic <[email protected]> Co-authored-by: Bilal Shafi <[email protected]> commit 89215a1 Author: Bilal Shafi <[email protected]> Date: Mon Dec 30 19:58:59 2024 +0500 [DataGrid] Fix select all checkbox state reset with server side data (mui#16034) commit 61346b3 Author: Flavien DELANGLE <[email protected]> Date: Mon Dec 30 10:14:59 2024 +0100 [pickers] Use `usePickerContext()` and `usePickerActionsContext()` instead of passing props to the `shortcuts` and `toolbar` slots (mui#15948) commit dac7c3d Author: Olivier Tassinari <[email protected]> Date: Sun Dec 29 13:22:12 2024 +0100 [core] Small fixes on docs commit 2fa4d4f Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sun Dec 29 06:16:16 2024 +0000 Bump markdownlint-cli2 to ^0.17.0 (mui#16029) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 2c0a4a4 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sun Dec 29 06:15:15 2024 +0000 Bump eslint-plugin-react to ^7.37.3 (mui#16025) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 7e7d63b Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sun Dec 29 04:56:05 2024 +0000 Bump concurrently to ^9.1.1 (mui#16024) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 25ae6e4 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sun Dec 29 04:55:10 2024 +0000 Bump @next/eslint-plugin-next to 15.1.3 (mui#16022) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 7bc37b2 Author: Bilal Shafi <[email protected]> Date: Sat Dec 28 12:20:24 2024 +0500 [core] Clarify the release strategy (mui#16014) Co-authored-by: Andrew Cherniavskii <[email protected]> commit 2799763 Author: Lukas Tyla <[email protected]> Date: Fri Dec 27 18:06:40 2024 +0200 [pickers] Support `date-fns-jalali` v4 (mui#16011) commit dcdc59e Author: Lukas Tyla <[email protected]> Date: Fri Dec 27 15:07:37 2024 +0200 [docs] Refactor Data Grid with Date Pickers example (mui#15992) commit d8dbace Author: Olivier Tassinari <[email protected]> Date: Fri Dec 27 02:10:59 2024 +0100 [core] Sync with other repos commit 9c0c462 Author: Olivier Tassinari <[email protected]> Date: Fri Dec 27 01:28:01 2024 +0100 [docs] Fix 301 redirections Reported in https://app.ahrefs.com/site-audit/6021552/issues?current=25-12-2024T023235 commit 61d8511 Author: Danail Hadjiatanasov <[email protected]> Date: Thu Dec 26 22:13:45 2024 +0200 v8.0.0-alpha.6 (mui#16002) commit b061f55 Author: Lauri <[email protected]> Date: Thu Dec 26 10:13:55 2024 +0100 [data grid] Avoid subscribing to `renderContext` state in grid root for better scroll performance (mui#15986) commit 758d8b8 Author: Lukas Tyla <[email protected]> Date: Tue Dec 24 10:06:37 2024 +0200 [l10n] Improve Dutch (nl-NL) locale (mui#15920) @JoepVerkoelen (mui#15994) Signed-off-by: JoepVerkoelen <[email protected]> Co-authored-by: JoepVerkoelen <[email protected]> Co-authored-by: Joep Verkoelen <[email protected]> commit 4a649f2 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Dec 23 17:47:28 2024 +0100 Bump @codspeed/vitest-plugin to ^4.0.0 (mui#15898) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Co-authored-by: Jose Quintas <[email protected]> commit a886d98 Author: Bilal Shafi <[email protected]> Date: Mon Dec 23 18:07:16 2024 +0500 [DataGrid] Improve test coverage of server side data source (mui#15942) commit f572940 Author: Rajat <[email protected]> Date: Mon Dec 23 18:27:07 2024 +0530 [DataGrid] Fix header filters showing clear button while empty (mui#15829) Co-authored-by: Armin Mehinovic <[email protected]> commit 26b1463 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Dec 23 11:21:25 2024 +0200 Bump webpack-cli to ^6.0.1 (mui#15980) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit a7e6782 Author: Lauri <[email protected]> Date: Mon Dec 23 09:53:35 2024 +0100 [DataGrid] Replace `forwardRef` with a shim for forward compatibility (mui#15955) commit a58d118 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Dec 23 10:07:10 2024 +0200 Bump pnpm to 9.15.1 (mui#15977) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 0a8efa4 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Dec 23 10:06:57 2024 +0200 Bump React router to ^6.28.1 (mui#15974) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit ee83cad Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Dec 23 09:45:24 2024 +0200 Bump react-hook-form to ^7.54.2 (mui#15978) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit ca29c58 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Dec 23 09:41:48 2024 +0200 Bump markdown-to-jsx to ^7.7.2 (mui#15975) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 4b73330 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Dec 23 09:40:59 2024 +0200 Bump @tanstack/query-core to ^5.62.8 (mui#15972) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 1d72f1a Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Dec 23 09:40:27 2024 +0200 Bump @docsearch/react to ^3.8.2 (mui#15970) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit ae9c40b Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Mon Dec 23 09:27:14 2024 +0200 Bump next to ^15.1.2 (mui#15976) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 032c788 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sun Dec 22 08:24:39 2024 +0000 Bump github/codeql-action action to v3.28.0 (mui#15979) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 9ab258d Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sun Dec 22 08:20:03 2024 +0000 Bump @types/react to ^18.3.18 (mui#15973) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 0458ca5 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sun Dec 22 04:28:13 2024 +0000 Bump @next/eslint-plugin-next to 15.1.2 (mui#15971) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 5e7eaa5 Author: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> Date: Sun Dec 22 04:27:18 2024 +0000 Bump @mui/monorepo digest to 0ea1ef5 (mui#15969) Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com> commit 1bac67d Author: Rom Grk <[email protected]> Date: Fri Dec 20 18:03:58 2024 -0500 [DataGrid] Refactor: move skeleton to leaf import (mui#15931) commit f985ea0 Author: Lauri <[email protected]> Date: Fri Dec 20 23:48:32 2024 +0100 [docs] remove production profiler from docs build (mui#15959) commit 562675c Author: Rom Grk <[email protected]> Date: Fri Dec 20 17:43:15 2024 -0500 [DataGrid] Refactor: move progress components to leaf import (mui#15914) Signed-off-by: Rom Grk <[email protected]> Co-authored-by: Olivier Tassinari <[email protected]> Co-authored-by: Kenan Yusuf <[email protected]>
Part of #16059
This PR only cover the props that are common to all the fields, otherwise it would be too big and hard to review.
For now the validation props and some other prop are still passed to the field using props (see "Follow up" for more details).
disabled
,value
andsetValue
from the existing public context in the field componentsfieldFormat
andtimezone
to the existing public context and use them in the field componentsformatDensity
andshouldRespectLeadingZeros
fromuseParsedFormat
, and makeformat
optional (use the one passed by the picker by default).Follow up
readOnly
andautoFocus
(requires [pickers] Let the field components handle their opening UI, and allow field editing on mobile pickers #15671)inputRef
,unstableFieldRef
,name
andlabel
(need to make single input range fields the default before)ref
(currently handed by each picker individually)