@mui/x-date-pickers 8.11.3 → 8.14.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +466 -6
- package/DateTimePicker/shared.d.ts +1 -0
- package/DateTimePicker/shared.js +4 -0
- package/DesktopDateTimePicker/DesktopDateTimePicker.js +3 -1
- package/MobileDateTimePicker/MobileDateTimePicker.js +3 -1
- package/esm/DateTimePicker/shared.d.ts +1 -0
- package/esm/DateTimePicker/shared.js +4 -0
- package/esm/DesktopDateTimePicker/DesktopDateTimePicker.js +3 -1
- package/esm/MobileDateTimePicker/MobileDateTimePicker.js +3 -1
- package/esm/index.js +1 -1
- package/esm/internals/components/PickerFieldUI.js +3 -0
- package/esm/internals/hooks/useField/useFieldRootProps.js +1 -1
- package/esm/internals/hooks/useField/useFieldSectionContentProps.js +4 -2
- package/esm/internals/hooks/useField/useFieldState.js +3 -2
- package/esm/locales/ptBR.js +5 -8
- package/index.js +1 -1
- package/internals/components/PickerFieldUI.js +3 -0
- package/internals/hooks/useField/useFieldRootProps.js +1 -1
- package/internals/hooks/useField/useFieldSectionContentProps.js +4 -2
- package/internals/hooks/useField/useFieldState.js +3 -2
- package/locales/ptBR.js +5 -8
- package/package.json +4 -4
package/CHANGELOG.md
CHANGED
|
@@ -5,6 +5,466 @@
|
|
|
5
5
|
All notable changes to this project will be documented in this file.
|
|
6
6
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
7
7
|
|
|
8
|
+
## 8.14.0
|
|
9
|
+
|
|
10
|
+
_Oct 9, 2025_
|
|
11
|
+
|
|
12
|
+
We'd like to extend a big thank you to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
13
|
+
|
|
14
|
+
- 📊 The [Chart zoom now supports the `pressAndDrag` gesture](https://mui.com/x/react-charts/zoom-and-pan/#zoom-interactions-configuration). Pan by pressing and dragging.
|
|
15
|
+
- 🔄 [Server-side pivoting](https://mui.com/x/react-data-grid/server-side-data/pivoting/) support for the Data Grid
|
|
16
|
+
- 🐞 Bugfixes
|
|
17
|
+
- 📚 Documentation improvements
|
|
18
|
+
|
|
19
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
20
|
+
@djpremier, @Utkarsh-0304
|
|
21
|
+
|
|
22
|
+
The following are all team members who have contributed to this release:
|
|
23
|
+
@alexfauquette, @bernardobelchior, @flaviendelangle, @hasdfa, @Janpot, @JCQuintas, @prakhargupta1, @rita-codes, @noraleonte, @brijeshb42, @arminmeh, @michelengelen
|
|
24
|
+
|
|
25
|
+
### Data Grid
|
|
26
|
+
|
|
27
|
+
#### `@mui/x-data-grid@8.14.0`
|
|
28
|
+
|
|
29
|
+
- [l10n] Improve Brazilian Portuguese (pt-BR) locale (#19658) @djpremier
|
|
30
|
+
|
|
31
|
+
#### `@mui/x-data-grid-pro@8.14.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
32
|
+
|
|
33
|
+
Same changes as in `@mui/x-data-grid@8.14.0`.
|
|
34
|
+
|
|
35
|
+
#### `@mui/x-data-grid-premium@8.14.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
36
|
+
|
|
37
|
+
Same changes as in `@mui/x-data-grid-pro@8.14.0`, plus:
|
|
38
|
+
|
|
39
|
+
- [DataGridPremium] Server-side pivoting (#19575) @arminmeh
|
|
40
|
+
|
|
41
|
+
### Date and Time Pickers
|
|
42
|
+
|
|
43
|
+
#### `@mui/x-date-pickers@8.14.0`
|
|
44
|
+
|
|
45
|
+
- [pickers] Fixed the extra element for the disabled date picker (#19387) @Utkarsh-0304
|
|
46
|
+
- [pickers] Fix input `autoCapitalize` value for Firefox compatibility (#19285) @michelengelen
|
|
47
|
+
- [l10n] Improve Brazilian Portuguese (pt-BR) locale (#19658) @djpremier
|
|
48
|
+
|
|
49
|
+
#### `@mui/x-date-pickers-pro@8.14.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
50
|
+
|
|
51
|
+
Same changes as in `@mui/x-date-pickers@8.14.0`.
|
|
52
|
+
|
|
53
|
+
### Charts
|
|
54
|
+
|
|
55
|
+
#### `@mui/x-charts@8.14.0`
|
|
56
|
+
|
|
57
|
+
- [charts] Add `pressAndDrag` pan gesture (#19779) @JCQuintas
|
|
58
|
+
- [charts] Allow `minPointers` and `maxPointers` to be configured by pointer type (#19794) @JCQuintas
|
|
59
|
+
- [charts] Correct scale domain types (#19844) @bernardobelchior
|
|
60
|
+
- [charts] Fix tooltip position when scrolling (#19857) @alexfauquette
|
|
61
|
+
- [charts] Link item highlight with keyboard navigation (#19768) @alexfauquette
|
|
62
|
+
- [charts] Refactor domain/scale selectors (#19832) @bernardobelchior
|
|
63
|
+
- [charts] Remove min/max from ordinal configuration (#19789) @alexfauquette
|
|
64
|
+
- [charts] Simplify axes filters selectors (#19833) @bernardobelchior
|
|
65
|
+
- [l10n] Improve Brazilian Portuguese (pt-BR) locale (#19658) @djpremier
|
|
66
|
+
|
|
67
|
+
#### `@mui/x-charts-pro@8.14.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
68
|
+
|
|
69
|
+
Same changes as in `@mui/x-charts@8.14.0`.
|
|
70
|
+
|
|
71
|
+
#### `@mui/x-charts-premium@8.14.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
72
|
+
|
|
73
|
+
Same changes as in `@mui/x-charts-pro@8.14.0`.
|
|
74
|
+
|
|
75
|
+
### Tree View
|
|
76
|
+
|
|
77
|
+
#### `@mui/x-tree-view@8.14.0`
|
|
78
|
+
|
|
79
|
+
- [tree view] Fix Tree View tooltip anchoring on overview page (#19806) @noraleonte
|
|
80
|
+
|
|
81
|
+
#### `@mui/x-tree-view-pro@8.14.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
82
|
+
|
|
83
|
+
Same changes as in `@mui/x-tree-view@8.14.0`.
|
|
84
|
+
|
|
85
|
+
### Codemod
|
|
86
|
+
|
|
87
|
+
#### `@mui/x-codemod@8.14.0`
|
|
88
|
+
|
|
89
|
+
Internal changes.
|
|
90
|
+
|
|
91
|
+
### Docs
|
|
92
|
+
|
|
93
|
+
- [docs] Add overview section for pie chart (#19672) @prakhargupta1
|
|
94
|
+
- [docs] Fix demo title knob keys (#19843) @JCQuintas
|
|
95
|
+
- [docs] Hide UI elements of unsupported features in the data source demos (#19849) @arminmeh
|
|
96
|
+
|
|
97
|
+
### Core
|
|
98
|
+
|
|
99
|
+
- [code-infra] Cleanup unused dependencies (#19788) @brijeshb42
|
|
100
|
+
- [code-infra] Fix pnpm-lock issue (#19861) @JCQuintas
|
|
101
|
+
- [code-infra] Improve publishing docs (#19404) @Janpot
|
|
102
|
+
- [code-infra] Remove tsconfig `baseUrl` (#19837) @Janpot
|
|
103
|
+
- [code-infra] Support custom npm dist tags during release (#19803) @Janpot
|
|
104
|
+
- [code-infra] Wait longer for print dialog (#19795) @JCQuintas
|
|
105
|
+
- [code-infra] Replace `lodash` with `es-toolkit` (#19853) @bernardobelchior
|
|
106
|
+
- [code-infra] Update release script PR checklist (#19785) @bernardobelchior
|
|
107
|
+
- [code-infra] Remove remaining usages of `lodash` (#19864) @bernardobelchior
|
|
108
|
+
- [docs-infra] Add `title` knob (#19792) @JCQuintas
|
|
109
|
+
- [docs-infra] Fix missing key in title knob (#19804) @JCQuintas
|
|
110
|
+
|
|
111
|
+
### Miscellaneous
|
|
112
|
+
|
|
113
|
+
- [x-telemetry] Fix transpile issues (#19761) @hasdfa
|
|
114
|
+
- [x-telemetry] Fix ref to deleted file (#19842) @JCQuintas
|
|
115
|
+
|
|
116
|
+
## 8.13.1
|
|
117
|
+
|
|
118
|
+
_Oct 1, 2025_
|
|
119
|
+
|
|
120
|
+
- 🐛 Fix `@mui/x-charts-pro` failure on import due to missing `@mui/x-internals` release
|
|
121
|
+
|
|
122
|
+
### Data Grid
|
|
123
|
+
|
|
124
|
+
#### `@mui/x-data-grid@8.13.1`
|
|
125
|
+
|
|
126
|
+
Internal changes.
|
|
127
|
+
|
|
128
|
+
#### `@mui/x-data-grid-pro@8.13.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
129
|
+
|
|
130
|
+
Same changes as in `@mui/x-data-grid@8.13.1`.
|
|
131
|
+
|
|
132
|
+
#### `@mui/x-data-grid-premium@8.13.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
133
|
+
|
|
134
|
+
Same changes as in `@mui/x-data-grid-pro@8.13.1`.
|
|
135
|
+
|
|
136
|
+
### Date and Time Pickers
|
|
137
|
+
|
|
138
|
+
#### `@mui/x-date-pickers@8.12.0`
|
|
139
|
+
|
|
140
|
+
Internal changes.
|
|
141
|
+
|
|
142
|
+
#### `@mui/x-date-pickers-pro@8.12.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
143
|
+
|
|
144
|
+
Same changes as in `@mui/x-date-pickers@8.12.0`.
|
|
145
|
+
|
|
146
|
+
### Charts
|
|
147
|
+
|
|
148
|
+
#### `@mui/x-charts@8.13.1`
|
|
149
|
+
|
|
150
|
+
Internal changes.
|
|
151
|
+
|
|
152
|
+
#### `@mui/x-charts-pro@8.13.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
153
|
+
|
|
154
|
+
Same changes as in `@mui/x-charts@8.13.1`, plus:
|
|
155
|
+
|
|
156
|
+
- [charts-pro] Fix `@mui/x-charts-pro` failure on import due to missing `@mui/x-internals` release @bernardobelchior
|
|
157
|
+
|
|
158
|
+
#### `@mui/x-charts-premium@8.13.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
159
|
+
|
|
160
|
+
Same changes as in `@mui/x-charts-pro@8.13.1`.
|
|
161
|
+
|
|
162
|
+
### Tree View
|
|
163
|
+
|
|
164
|
+
#### `@mui/x-tree-view@8.13.1`
|
|
165
|
+
|
|
166
|
+
Internal changes.
|
|
167
|
+
|
|
168
|
+
#### `@mui/x-tree-view-pro@8.13.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
169
|
+
|
|
170
|
+
Same changes as in `@mui/x-tree-view@8.13.1`.
|
|
171
|
+
|
|
172
|
+
### Codemod
|
|
173
|
+
|
|
174
|
+
#### `@mui/x-codemod@8.12.0`
|
|
175
|
+
|
|
176
|
+
Internal changes.
|
|
177
|
+
|
|
178
|
+
## 8.13.0
|
|
179
|
+
|
|
180
|
+
_Oct 1, 2025_
|
|
181
|
+
|
|
182
|
+
We'd like to extend a big thank you to the 14 contributors who made this release possible. Here are some highlights ✨:
|
|
183
|
+
|
|
184
|
+
- 📊 The chart zoom now supports the `tapAndDrag` gesture. Zoom in/out by tapping twice and dragging vertically.
|
|
185
|
+
- 🔎 Charts now allow [fine-grained control for zoom interactions](https://mui.com/x/react-charts/zoom-and-pan/#zoom-interactions-configuration).
|
|
186
|
+
```jsx
|
|
187
|
+
<BarChartPro
|
|
188
|
+
zoomInteractionConfig={{
|
|
189
|
+
// Only zoom when Control key is pressed
|
|
190
|
+
zoom: [{ type: 'wheel', keys: ['Control'] }],
|
|
191
|
+
// Only pan when Shift key is pressed
|
|
192
|
+
pan: [{ type: 'drag', keys: ['Shift'] }],
|
|
193
|
+
}}
|
|
194
|
+
/>
|
|
195
|
+
```
|
|
196
|
+
- ➡️ Data Grid grouping rows now persist their expansion state when the rows are updated.
|
|
197
|
+
- 📜 Updated Data Grid vertical scrollbar to include pinned rows and aggregation sections.
|
|
198
|
+
- 📌 Improved the appearance of [pinned columns](https://mui.com/x/react-data-grid/column-pinning/#pinned-columns-appearance) and [pinned rows](https://mui.com/x/react-data-grid/row-pinning/#pinned-rows-appearance) sections in the Data Grid.
|
|
199
|
+
- 🚀 Tree View now fetches the children of expanded items on mount when using lazy loading.
|
|
200
|
+
- 🐞 Bugfixes
|
|
201
|
+
- 📚 Documentation improvements
|
|
202
|
+
|
|
203
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
204
|
+
@sai6855
|
|
205
|
+
|
|
206
|
+
The following are all team members who have contributed to this release:
|
|
207
|
+
@alexfauquette, @arminmeh, @bernardobelchior, @flaviendelangle, @hasdfa, @Janpot, @JCQuintas, @KenanYusuf, @mapache-salvaje, @MBilalShafi, @mnajdova, @rita-codes, @siriwatknp
|
|
208
|
+
|
|
209
|
+
### Data Grid
|
|
210
|
+
|
|
211
|
+
#### `@mui/x-data-grid@8.13.0`
|
|
212
|
+
|
|
213
|
+
- [DataGrid] Add scroll shadows and fix scrollbar overlap (#16476) @KenanYusuf
|
|
214
|
+
- [DataGrid] Fix row spanning stale state issue (#19733) @MBilalShafi
|
|
215
|
+
- [DataGrid] Fix toolbar `slotProps` not being applied (#19769) @sai6855
|
|
216
|
+
- [DataGrid] Skip calling `fetchRows()` when strategy is not initialized (#19728) @MBilalShafi
|
|
217
|
+
|
|
218
|
+
#### `@mui/x-data-grid-pro@8.13.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
219
|
+
|
|
220
|
+
Same changes as in `@mui/x-data-grid@8.13.0`, plus:
|
|
221
|
+
|
|
222
|
+
- [DataGridPro] Retain expansion state on rows update (#19697) @MBilalShafi
|
|
223
|
+
|
|
224
|
+
#### `@mui/x-data-grid-premium@8.13.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
225
|
+
|
|
226
|
+
Same changes as in `@mui/x-data-grid-pro@8.13.0`, plus:
|
|
227
|
+
|
|
228
|
+
- [DataGridPremium] Add `metadata.referenceId` to AI assistant prompt resolver (#19695) @hasdfa
|
|
229
|
+
- [DataGridPremium] Fix aggregation value retrieval (#19724) @arminmeh
|
|
230
|
+
- [DataGridPremium] Get correct active chart id while rebuilding data (#19720) @arminmeh
|
|
231
|
+
|
|
232
|
+
### Date and Time Pickers
|
|
233
|
+
|
|
234
|
+
#### `@mui/x-date-pickers@8.12.0`
|
|
235
|
+
|
|
236
|
+
Internal changes.
|
|
237
|
+
|
|
238
|
+
#### `@mui/x-date-pickers-pro@8.12.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
239
|
+
|
|
240
|
+
Same changes as in `@mui/x-date-pickers@8.12.0`.
|
|
241
|
+
|
|
242
|
+
### Charts
|
|
243
|
+
|
|
244
|
+
#### `@mui/x-charts@8.13.0`
|
|
245
|
+
|
|
246
|
+
- [charts] Add `tapAndDrag` zoom gesture (#19727) @JCQuintas
|
|
247
|
+
- [charts] Add arc focus indicator that follows the arc form (#19696) @mnajdova
|
|
248
|
+
- [charts] Fix outline color (#19752) @alexfauquette
|
|
249
|
+
- [charts] Improve tooltip doc (#19731) @JCQuintas
|
|
250
|
+
- [charts] Make axis highlight reflect the keyboard interaction (#19631) @alexfauquette
|
|
251
|
+
- [charts] Prevent horizontal scroll on keyboard navigation (#19704) @alexfauquette
|
|
252
|
+
- [charts] Simplify gestures by removing bindings (#19767) @JCQuintas
|
|
253
|
+
|
|
254
|
+
#### `@mui/x-charts-pro@8.13.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
255
|
+
|
|
256
|
+
Same changes as in `@mui/x-charts@8.13.0`, plus:
|
|
257
|
+
|
|
258
|
+
- [charts-pro] Allow zoom interactions to be configured (#18646) @JCQuintas
|
|
259
|
+
- [charts-pro] Fix zoom preview having wrong domain in some cases (#19723) @bernardobelchior
|
|
260
|
+
|
|
261
|
+
#### `@mui/x-charts-premium@8.13.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
262
|
+
|
|
263
|
+
Same changes as in `@mui/x-charts-pro@8.13.0`.
|
|
264
|
+
|
|
265
|
+
### Tree View
|
|
266
|
+
|
|
267
|
+
#### `@mui/x-tree-view@8.13.0`
|
|
268
|
+
|
|
269
|
+
- [tree view] Export the `apiRef` type of each Tree View component (#19543) @flaviendelangle
|
|
270
|
+
- [tree view] Fix indeterminate checkbox state (#19544) @flaviendelangle
|
|
271
|
+
- [tree view] Improve the lazy loading initial expansion (#19284) @flaviendelangle
|
|
272
|
+
- [tree view] Use Base UI utils whenever possible (#19502) @flaviendelangle
|
|
273
|
+
|
|
274
|
+
#### `@mui/x-tree-view-pro@8.13.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
275
|
+
|
|
276
|
+
Same changes as in `@mui/x-tree-view@8.13.0`.
|
|
277
|
+
|
|
278
|
+
### Codemod
|
|
279
|
+
|
|
280
|
+
#### `@mui/x-codemod@8.12.0`
|
|
281
|
+
|
|
282
|
+
Internal changes.
|
|
283
|
+
|
|
284
|
+
### Docs
|
|
285
|
+
|
|
286
|
+
- [docs] Add a recipe to customize editing component with Autocomplete (#19651) @siriwatknp
|
|
287
|
+
- [docs] Refine the electricity scatter tooltip (#19689) @alexfauquette
|
|
288
|
+
- [docs] Revise the Axis doc (#19052) @mapache-salvaje
|
|
289
|
+
- [docs] Remove reference to nonexistent `FocusedMark` API page (#19773) @bernardobelchior
|
|
290
|
+
|
|
291
|
+
### Core
|
|
292
|
+
|
|
293
|
+
- [code-infra] Change charts codspeed integration to use walltime (#19729) @JCQuintas
|
|
294
|
+
- [code-infra] Port stylelint from core repo (#19633) @Janpot
|
|
295
|
+
- [code-infra] Stabilize fake timers in regression tests (#19719) @Janpot
|
|
296
|
+
- [code-infra] Stabilize size for bundles with `releaseInfo` (#19674) @Janpot
|
|
297
|
+
- [code-infra] Fix `pnpm-lock.yaml` broken lockfile (#19755) @bernardobelchior
|
|
298
|
+
|
|
299
|
+
## 8.12.1
|
|
300
|
+
|
|
301
|
+
_Sep 25, 2025_
|
|
302
|
+
|
|
303
|
+
Release highlight ✨:
|
|
304
|
+
|
|
305
|
+
- 🐞 Hotfix for Grid-Charts integration issue with aggregated values
|
|
306
|
+
|
|
307
|
+
### Data Grid
|
|
308
|
+
|
|
309
|
+
#### `@mui/x-data-grid@8.12.1`
|
|
310
|
+
|
|
311
|
+
Internal changes.
|
|
312
|
+
|
|
313
|
+
#### `@mui/x-data-grid-pro@8.12.1` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
314
|
+
|
|
315
|
+
Same changes as in `@mui/x-data-grid@8.12.1`.
|
|
316
|
+
|
|
317
|
+
#### `@mui/x-data-grid-premium@8.12.1` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
318
|
+
|
|
319
|
+
Same changes as in `@mui/x-data-grid-pro@8.12.1`, plus:
|
|
320
|
+
|
|
321
|
+
- [DataGridPremium] Collect aggregated values properly for the charts integration context (#19714) @arminmeh
|
|
322
|
+
|
|
323
|
+
## 8.12.0
|
|
324
|
+
|
|
325
|
+
_Sep 25, 2025_
|
|
326
|
+
|
|
327
|
+
We'd like to extend a big thank you to the 15 contributors who made this release possible. Here are some highlights ✨:
|
|
328
|
+
|
|
329
|
+
- 🤝 Grid-Charts integration
|
|
330
|
+
|
|
331
|
+

|
|
332
|
+
|
|
333
|
+
👉 [🎥 Watch the full video](https://github.com/user-attachments/assets/28f1848e-dc85-4077-8756-a3e88afd4e54)
|
|
334
|
+
|
|
335
|
+
- ⌨️ Charts keyboard navigation
|
|
336
|
+
- ⚡️ Charts: Add new `renderer="svg-batch"` prop to Scatter charts that provides improved performance for large datasets
|
|
337
|
+
- 🐞 Bugfixes
|
|
338
|
+
- 📚 Documentation improvements
|
|
339
|
+
- 🧰 Codemod requires Node >=20.19
|
|
340
|
+
|
|
341
|
+
`@mui/x-codemod` minimum supported Node version is `20.19`.
|
|
342
|
+
This was only the case due to using the v18 `yargs` package; this now explicitly aligns with it. (#18979)
|
|
343
|
+
|
|
344
|
+
Special thanks go out to the community members for their valuable contributions:
|
|
345
|
+
@deade1e, @sai6855, @thomas-mcdonald
|
|
346
|
+
|
|
347
|
+
The following are all team members who have contributed to this release:
|
|
348
|
+
@alexfauquette, @bernardobelchior, @flaviendelangle, @Janpot, @JCQuintas, @LukasTy, @michelengelen, @prakhargupta1, @rita-codes, @siriwatknp, @arminmeh, @romgrk
|
|
349
|
+
|
|
350
|
+
### Data Grid
|
|
351
|
+
|
|
352
|
+
#### `@mui/x-data-grid@8.12.0`
|
|
353
|
+
|
|
354
|
+
- [DataGrid] Fix flex column width diff calculation while resizing (#19667) @arminmeh
|
|
355
|
+
|
|
356
|
+
#### `@mui/x-data-grid-pro@8.12.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
357
|
+
|
|
358
|
+
Same changes as in `@mui/x-data-grid@8.12.0`.
|
|
359
|
+
|
|
360
|
+
#### `@mui/x-data-grid-premium@8.12.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
361
|
+
|
|
362
|
+
Same changes as in `@mui/x-data-grid-pro@8.12.0`, plus:
|
|
363
|
+
|
|
364
|
+
- [DataGridPremium] Grid-Charts integration (#18021) @arminmeh
|
|
365
|
+
- [DataGridPremium] Fix sorting and filtering of the tree group columns with aggregation (#19607) @arminmeh
|
|
366
|
+
- [DataGridPremium] Disable aggregation on the grouping column by default (#19692) @arminmeh
|
|
367
|
+
- [DataGridPremium] Do not rely on the group separation constant to retrieve the column name for the charts panel (#19677) @arminmeh
|
|
368
|
+
- [DataGridPremium] Fix stale aggregation state (#19690) @arminmeh
|
|
369
|
+
- [DataGridPremium] Fix pivot column being hidden on autosizing (#19699) @cherniavskii
|
|
370
|
+
|
|
371
|
+
### Date and Time Pickers
|
|
372
|
+
|
|
373
|
+
#### `@mui/x-date-pickers@8.12.0`
|
|
374
|
+
|
|
375
|
+
- [pickers] Ensure reference value is not updated for invalid values (#19635) @michelengelen
|
|
376
|
+
- [pickers] Fix `slotProps.textField.slotProps.htmlInput` resolution (#19713) @LukasTy
|
|
377
|
+
- [pickers] Preserve time format when using single column layout on Time Range Picker (#19626) @sai6855
|
|
378
|
+
- [pickers] Preserve time format when using single column layout on Date Time Picker and Date Time Range Picker (#19608) @sai6855
|
|
379
|
+
|
|
380
|
+
#### `@mui/x-date-pickers-pro@8.12.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
381
|
+
|
|
382
|
+
Same changes as in `@mui/x-date-pickers@8.12.0`.
|
|
383
|
+
|
|
384
|
+
### Charts
|
|
385
|
+
|
|
386
|
+
#### `@mui/x-charts@8.12.0`
|
|
387
|
+
|
|
388
|
+
- [charts] Add batch renderer for scatter chart (#19075) @bernardobelchior
|
|
389
|
+
- [charts] Add renderer suffix to performance benchmarks (#19620) @bernardobelchior
|
|
390
|
+
- [charts] Document how plugins can be used (#19343) @alexfauquette
|
|
391
|
+
- [charts] Export chart plugins per series type (#19337) @alexfauquette
|
|
392
|
+
- [charts] Export plugins (#19335) @alexfauquette
|
|
393
|
+
- [charts] Fix horizontal layout and toolbar (#19655) @alexfauquette
|
|
394
|
+
- [charts] Fix performance issue with JS animations (#19606) @bernardobelchior
|
|
395
|
+
- [charts] Fix piecewise scale causing wrong colors in axis with min/max (#19610) @bernardobelchior
|
|
396
|
+
- [charts] Fix zoom discard inconsistency (#19535) @bernardobelchior
|
|
397
|
+
- [charts] Introduce keyboard navigation (#19155) @alexfauquette
|
|
398
|
+
- [charts] Refactor `getAxisExtremum` (#19627) @bernardobelchior
|
|
399
|
+
- [charts] Remove unused code path from `getAxisScale` (#19673) @bernardobelchior
|
|
400
|
+
- [charts] Make new hideLegend prop on ChartWrapper optional (#19694) @thomas-mcdonald
|
|
401
|
+
- [charts] Fix chart crash in test environment (#19711) @JCQuintas
|
|
402
|
+
|
|
403
|
+
#### `@mui/x-charts-pro@8.12.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
404
|
+
|
|
405
|
+
Same changes as in `@mui/x-charts@8.12.0`, plus:
|
|
406
|
+
|
|
407
|
+
- [charts-pro] Add `valueFormatter` to sankey (#19636) @JCQuintas
|
|
408
|
+
- [charts-pro] Allow `source/target` keywords in sankey link color (#19634) @JCQuintas
|
|
409
|
+
- [charts-pro] Allow exporting `SankeyChart` (#19659) @JCQuintas
|
|
410
|
+
- [charts-pro] Fix axis inversion when using axis `max` and `filterMode: 'discard'` (#19200) @bernardobelchior
|
|
411
|
+
|
|
412
|
+
#### `@mui/x-charts-premium@8.12.0` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
413
|
+
|
|
414
|
+
Same changes as in `@mui/x-charts-pro@8.12.0`, plus:
|
|
415
|
+
|
|
416
|
+
- [charts-premium] Grid-Charts integration (#18021) @arminmeh
|
|
417
|
+
|
|
418
|
+
### Tree View
|
|
419
|
+
|
|
420
|
+
#### `@mui/x-tree-view@8.12.0`
|
|
421
|
+
|
|
422
|
+
- [tree view] Allow to pass `null` to the icon slots (#19569) @flaviendelangle
|
|
423
|
+
- [tree view] Fix `apiRef.current.isItemExpanded()` method (#19619) @flaviendelangle
|
|
424
|
+
|
|
425
|
+
#### `@mui/x-tree-view-pro@8.12.0` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
426
|
+
|
|
427
|
+
Same changes as in `@mui/x-tree-view@8.12.0`.
|
|
428
|
+
|
|
429
|
+
### Codemod
|
|
430
|
+
|
|
431
|
+
#### `@mui/x-codemod@8.12.0`
|
|
432
|
+
|
|
433
|
+
- [codemod] Bump `engines.node` to `>=20.19` to align with `yargs` package (#18979) @LukasTy
|
|
434
|
+
|
|
435
|
+
### Docs
|
|
436
|
+
|
|
437
|
+
- [docs] Add missing label to Charts example (#19616) @prakhargupta1
|
|
438
|
+
- [docs] Replace axis type and axis data with a table (#19618) @prakhargupta1
|
|
439
|
+
- [docs] Add Charts example collection page (#18353) @prakhargupta1
|
|
440
|
+
- [docs] Add a Charts demo showcasing bar and scatter composition (#19605) @prakhargupta1
|
|
441
|
+
- [docs] Add composition Charts demo for legends and tooltip (#19602) @prakhargupta1
|
|
442
|
+
- [docs] Add recipe about server-side data export (#19617) @siriwatknp
|
|
443
|
+
- [docs] Clarify DataGrid layout requirements (#19413) @romgrk
|
|
444
|
+
- [docs] Fix `ExportServerSideData` demo layout shift (#19669) @siriwatknp
|
|
445
|
+
- [docs] Improve server-side `updateRow()` description (#19554) @deade1e
|
|
446
|
+
- [docs] Show how to customize drawing area background (#19682) @alexfauquette
|
|
447
|
+
- [docs] Add hook documentation pages (#19334) @Copilot
|
|
448
|
+
|
|
449
|
+
### Core
|
|
450
|
+
|
|
451
|
+
- [code-infra] Add copilot instructions specific to x repo (#19623) @JCQuintas
|
|
452
|
+
- [code-infra] Load `tsx` files in visual regression (#19595) @JCQuintas
|
|
453
|
+
- [code-infra] Remove renovate automerge (#19501) @Janpot
|
|
454
|
+
- [code-infra] Update `DEFAULT_TIMESTAMP` format to ISO 8601 (#19624) @Janpot
|
|
455
|
+
- [code-infra] Update `findLatestTaggedVersion` to filter tags based on major version (#19693) @michelengelen
|
|
456
|
+
- [code-infra] Fix changelog generation for charts premium (#19701) @JCQuintas
|
|
457
|
+
- [code-infra] Run prettier on `createReleasePR.mjs` (#19702) @bernardobelchior
|
|
458
|
+
- [code-infra] Make `x-charts-premium` releasable (#18959) @JCQuintas
|
|
459
|
+
- [docs-infra] Ensure `create-playground` script only runs if target file is absent (#19603) @michelengelen
|
|
460
|
+
- [docs-infra] Add @prakhargupta1 as a codeowner of the docs (#19679) @alexfauquette
|
|
461
|
+
|
|
462
|
+
### Miscellaneous
|
|
463
|
+
|
|
464
|
+
- [test] Reduce time for wheel zoom test (#19571) @alexfauquette
|
|
465
|
+
- Change `matchPackageNames` to `matchDepNames` for date-fns-v2 @Janpot
|
|
466
|
+
- Remove groupName for date-fns-v2 in renovate.json @Janpot
|
|
467
|
+
|
|
8
468
|
## 8.11.3
|
|
9
469
|
|
|
10
470
|
_Sep 16, 2025_
|
|
@@ -27,11 +487,11 @@ The following are all team members who have contributed to this release:
|
|
|
27
487
|
- [DataGrid] Fix numeric font size not being applied (#19552) @cherniavskii
|
|
28
488
|
- [DataGrid] Improve `operator` types to display literal values (#19529) @siriwatknp
|
|
29
489
|
|
|
30
|
-
#### `@mui/x-data-grid-pro@8.11.3` [](https://mui.com/r/x-pro-svg-link
|
|
490
|
+
#### `@mui/x-data-grid-pro@8.11.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
31
491
|
|
|
32
492
|
Same changes as in `@mui/x-data-grid@8.11.3`.
|
|
33
493
|
|
|
34
|
-
#### `@mui/x-data-grid-premium@8.11.3` [](https://mui.com/r/x-premium-svg-link
|
|
494
|
+
#### `@mui/x-data-grid-premium@8.11.3` [](https://mui.com/r/x-premium-svg-link 'Premium plan')
|
|
35
495
|
|
|
36
496
|
Same changes as in `@mui/x-data-grid-pro@8.11.3`.
|
|
37
497
|
|
|
@@ -41,7 +501,7 @@ Same changes as in `@mui/x-data-grid-pro@8.11.3`.
|
|
|
41
501
|
|
|
42
502
|
- [pickers] Refactor `slots` and `slotProps` propagation strategy (#18867) @LukasTy
|
|
43
503
|
|
|
44
|
-
#### `@mui/x-date-pickers-pro@8.11.3` [](https://mui.com/r/x-pro-svg-link
|
|
504
|
+
#### `@mui/x-date-pickers-pro@8.11.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
45
505
|
|
|
46
506
|
Same changes as in `@mui/x-date-pickers@8.11.3`.
|
|
47
507
|
|
|
@@ -55,7 +515,7 @@ Same changes as in `@mui/x-date-pickers@8.11.3`.
|
|
|
55
515
|
- [charts] Rename `isBandScale` to `isDiscreteScale` (#19514) @bernardobelchior
|
|
56
516
|
- [charts] Fix legend position affecting toolbar's position (#19257) @sai6855
|
|
57
517
|
|
|
58
|
-
#### `@mui/x-charts-pro@8.11.3` [](https://mui.com/r/x-pro-svg-link
|
|
518
|
+
#### `@mui/x-charts-pro@8.11.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
59
519
|
|
|
60
520
|
Same changes as in `@mui/x-charts@8.11.3`, plus:
|
|
61
521
|
|
|
@@ -69,7 +529,7 @@ Same changes as in `@mui/x-charts@8.11.3`, plus:
|
|
|
69
529
|
- [tree view] Support flat DOM structure (#19350) @flaviendelangle
|
|
70
530
|
- [tree view] Update cursor styles for disabled TreeItem (#19548) @sai6855
|
|
71
531
|
|
|
72
|
-
#### `@mui/x-tree-view-pro@8.11.3` [](https://mui.com/r/x-pro-svg-link
|
|
532
|
+
#### `@mui/x-tree-view-pro@8.11.3` [](https://mui.com/r/x-pro-svg-link 'Pro plan')
|
|
73
533
|
|
|
74
534
|
Same changes as in `@mui/x-tree-view@8.11.3`.
|
|
75
535
|
|
|
@@ -83,7 +543,7 @@ Internal changes.
|
|
|
83
543
|
|
|
84
544
|
- [docs] Add styling row group recipe (#19349) @siriwatknp
|
|
85
545
|
- [docs] Group demos data into the dataset folder (#19549) @alexfauquette
|
|
86
|
-
- [docs] Add `shiny` bar chart example at the top
|
|
546
|
+
- [docs] Add `shiny` bar chart example at the top (#19416) @JCQuintas
|
|
87
547
|
|
|
88
548
|
### Core
|
|
89
549
|
|
|
@@ -67,6 +67,7 @@ export interface BaseDateTimePickerProps extends Omit<BasePickerInputProps<Picke
|
|
|
67
67
|
type UseDateTimePickerDefaultizedProps<Props extends BaseDateTimePickerProps> = LocalizedComponent<Omit<DefaultizedProps<Props, 'openTo' | 'orientation' | 'ampm' | ValidateDateTimePropsToDefault>, 'views'>> & {
|
|
68
68
|
shouldRenderTimeInASingleColumn: boolean;
|
|
69
69
|
views: readonly DateOrTimeViewWithMeridiem[];
|
|
70
|
+
viewsForFormatting: readonly DateOrTimeViewWithMeridiem[];
|
|
70
71
|
};
|
|
71
72
|
export declare function useDateTimePickerDefaultizedProps<Props extends BaseDateTimePickerProps>(props: Props, name: string): UseDateTimePickerDefaultizedProps<Props>;
|
|
72
73
|
export {};
|
package/DateTimePicker/shared.js
CHANGED
|
@@ -51,12 +51,16 @@ function useDateTimePickerDefaultizedProps(props, name) {
|
|
|
51
51
|
timeSteps: themeProps.timeSteps,
|
|
52
52
|
views: defaultViews
|
|
53
53
|
});
|
|
54
|
+
|
|
55
|
+
// Keep the original views for format calculation (before filtering)
|
|
56
|
+
const viewsForFormatting = ampm ? [...defaultViews, 'meridiem'] : defaultViews;
|
|
54
57
|
return (0, _extends2.default)({}, themeProps, validationProps, {
|
|
55
58
|
timeSteps,
|
|
56
59
|
openTo,
|
|
57
60
|
shouldRenderTimeInASingleColumn,
|
|
58
61
|
thresholdToRenderTimeInASingleColumn,
|
|
59
62
|
views,
|
|
63
|
+
viewsForFormatting,
|
|
60
64
|
ampm,
|
|
61
65
|
localeText,
|
|
62
66
|
orientation: themeProps.orientation ?? 'portrait',
|
|
@@ -119,7 +119,9 @@ const DesktopDateTimePicker = exports.DesktopDateTimePicker = /*#__PURE__*/React
|
|
|
119
119
|
// Props with the default values specific to the desktop variant
|
|
120
120
|
const props = (0, _extends2.default)({}, defaultizedProps, {
|
|
121
121
|
viewRenderers,
|
|
122
|
-
format: (0, _dateTimeUtils.resolveDateTimeFormat)(adapter,
|
|
122
|
+
format: (0, _dateTimeUtils.resolveDateTimeFormat)(adapter, (0, _extends2.default)({}, defaultizedProps, {
|
|
123
|
+
views: defaultizedProps.viewsForFormatting
|
|
124
|
+
})),
|
|
123
125
|
views,
|
|
124
126
|
yearsPerRow: defaultizedProps.yearsPerRow ?? 4,
|
|
125
127
|
ampmInClock,
|
|
@@ -65,7 +65,9 @@ const MobileDateTimePicker = exports.MobileDateTimePicker = /*#__PURE__*/React.f
|
|
|
65
65
|
// Props with the default values specific to the mobile variant
|
|
66
66
|
const props = (0, _extends2.default)({}, defaultizedProps, {
|
|
67
67
|
viewRenderers,
|
|
68
|
-
format: (0, _dateTimeUtils.resolveDateTimeFormat)(adapter,
|
|
68
|
+
format: (0, _dateTimeUtils.resolveDateTimeFormat)(adapter, (0, _extends2.default)({}, defaultizedProps, {
|
|
69
|
+
views: defaultizedProps.viewsForFormatting
|
|
70
|
+
})),
|
|
69
71
|
views,
|
|
70
72
|
ampmInClock,
|
|
71
73
|
slots: (0, _extends2.default)({
|
|
@@ -67,6 +67,7 @@ export interface BaseDateTimePickerProps extends Omit<BasePickerInputProps<Picke
|
|
|
67
67
|
type UseDateTimePickerDefaultizedProps<Props extends BaseDateTimePickerProps> = LocalizedComponent<Omit<DefaultizedProps<Props, 'openTo' | 'orientation' | 'ampm' | ValidateDateTimePropsToDefault>, 'views'>> & {
|
|
68
68
|
shouldRenderTimeInASingleColumn: boolean;
|
|
69
69
|
views: readonly DateOrTimeViewWithMeridiem[];
|
|
70
|
+
viewsForFormatting: readonly DateOrTimeViewWithMeridiem[];
|
|
70
71
|
};
|
|
71
72
|
export declare function useDateTimePickerDefaultizedProps<Props extends BaseDateTimePickerProps>(props: Props, name: string): UseDateTimePickerDefaultizedProps<Props>;
|
|
72
73
|
export {};
|
|
@@ -43,12 +43,16 @@ export function useDateTimePickerDefaultizedProps(props, name) {
|
|
|
43
43
|
timeSteps: themeProps.timeSteps,
|
|
44
44
|
views: defaultViews
|
|
45
45
|
});
|
|
46
|
+
|
|
47
|
+
// Keep the original views for format calculation (before filtering)
|
|
48
|
+
const viewsForFormatting = ampm ? [...defaultViews, 'meridiem'] : defaultViews;
|
|
46
49
|
return _extends({}, themeProps, validationProps, {
|
|
47
50
|
timeSteps,
|
|
48
51
|
openTo,
|
|
49
52
|
shouldRenderTimeInASingleColumn,
|
|
50
53
|
thresholdToRenderTimeInASingleColumn,
|
|
51
54
|
views,
|
|
55
|
+
viewsForFormatting,
|
|
52
56
|
ampm,
|
|
53
57
|
localeText,
|
|
54
58
|
orientation: themeProps.orientation ?? 'portrait',
|
|
@@ -112,7 +112,9 @@ const DesktopDateTimePicker = /*#__PURE__*/React.forwardRef(function DesktopDate
|
|
|
112
112
|
// Props with the default values specific to the desktop variant
|
|
113
113
|
const props = _extends({}, defaultizedProps, {
|
|
114
114
|
viewRenderers,
|
|
115
|
-
format: resolveDateTimeFormat(adapter, defaultizedProps
|
|
115
|
+
format: resolveDateTimeFormat(adapter, _extends({}, defaultizedProps, {
|
|
116
|
+
views: defaultizedProps.viewsForFormatting
|
|
117
|
+
})),
|
|
116
118
|
views,
|
|
117
119
|
yearsPerRow: defaultizedProps.yearsPerRow ?? 4,
|
|
118
120
|
ampmInClock,
|
|
@@ -58,7 +58,9 @@ const MobileDateTimePicker = /*#__PURE__*/React.forwardRef(function MobileDateTi
|
|
|
58
58
|
// Props with the default values specific to the mobile variant
|
|
59
59
|
const props = _extends({}, defaultizedProps, {
|
|
60
60
|
viewRenderers,
|
|
61
|
-
format: resolveDateTimeFormat(adapter, defaultizedProps
|
|
61
|
+
format: resolveDateTimeFormat(adapter, _extends({}, defaultizedProps, {
|
|
62
|
+
views: defaultizedProps.viewsForFormatting
|
|
63
|
+
})),
|
|
62
64
|
views,
|
|
63
65
|
ampmInClock,
|
|
64
66
|
slots: _extends({
|
package/esm/index.js
CHANGED
|
@@ -265,6 +265,9 @@ export function PickerFieldUI(props) {
|
|
|
265
265
|
}
|
|
266
266
|
const resolvedTextFieldInputProps = materialMajor >= 6 && textFieldProps?.slotProps?.input ? resolveComponentProps(mergeSlotProps(textFieldInputProps, additionalTextFieldInputProps), ownerState) : _extends({}, textFieldInputProps, additionalTextFieldInputProps);
|
|
267
267
|
|
|
268
|
+
// We need to resolve the `inputProps` since we are messing with those props in this component.
|
|
269
|
+
textFieldProps.inputProps = materialMajor >= 6 && textFieldProps?.slotProps?.htmlInput ? resolveComponentProps(textFieldProps.slotProps.htmlInput, ownerState) : textFieldProps.inputProps;
|
|
270
|
+
|
|
268
271
|
// Remove the `input` slotProps to avoid them overriding the manually resolved `InputProps`.
|
|
269
272
|
// Relevant on `materialMajor >= 6` since `slotProps` would take precedence.
|
|
270
273
|
delete textFieldProps?.slotProps?.input;
|
|
@@ -146,6 +146,6 @@ export function useFieldRootProps(parameters) {
|
|
|
146
146
|
onInput: handleInput,
|
|
147
147
|
// Other
|
|
148
148
|
contentEditable: parsedSelectedSections === 'all',
|
|
149
|
-
tabIndex: parsedSelectedSections === 0 ? -1 : 0 // TODO: Try to set to undefined when there is a section selected.
|
|
149
|
+
tabIndex: internalPropsWithDefaults.disabled || parsedSelectedSections === 0 ? -1 : 0 // TODO: Try to set to undefined when there is a section selected.
|
|
150
150
|
};
|
|
151
151
|
}
|
|
@@ -153,12 +153,14 @@ export function useFieldSectionContentProps(parameters) {
|
|
|
153
153
|
'aria-label': translations[section.type],
|
|
154
154
|
'aria-disabled': disabled,
|
|
155
155
|
// Other
|
|
156
|
-
tabIndex: isContainerEditable || sectionIndex > 0 ? -1 : 0,
|
|
156
|
+
tabIndex: !isEditable || isContainerEditable || sectionIndex > 0 ? -1 : 0,
|
|
157
157
|
contentEditable: !isContainerEditable && !disabled && !readOnly,
|
|
158
158
|
role: 'spinbutton',
|
|
159
159
|
'data-range-position': section.dateName || undefined,
|
|
160
160
|
spellCheck: isEditable ? false : undefined,
|
|
161
|
-
|
|
161
|
+
// Firefox hydrates this as `'none`' instead of `'off'`. No problems in chromium with both values.
|
|
162
|
+
// For reference https://github.com/mui/mui-x/issues/19012
|
|
163
|
+
autoCapitalize: isEditable ? 'none' : undefined,
|
|
162
164
|
autoCorrect: isEditable ? 'off' : undefined,
|
|
163
165
|
children: section.value || section.placeholder,
|
|
164
166
|
inputMode: section.contentType === 'letter' ? 'text' : 'numeric'
|
|
@@ -305,8 +305,9 @@ export const useFieldState = parameters => {
|
|
|
305
305
|
|
|
306
306
|
// If `prop.value` changes, we update the state to reflect the new value
|
|
307
307
|
if (value !== state.lastExternalValue) {
|
|
308
|
+
const isActiveDateInvalid = sectionToUpdateOnNextInvalidDateRef.current != null && !adapter.isValid(fieldValueManager.getDateFromSection(value, state.sections[sectionToUpdateOnNextInvalidDateRef.current.sectionIndex]));
|
|
308
309
|
let sections;
|
|
309
|
-
if (
|
|
310
|
+
if (isActiveDateInvalid) {
|
|
310
311
|
sections = setSectionValue(sectionToUpdateOnNextInvalidDateRef.current.sectionIndex, sectionToUpdateOnNextInvalidDateRef.current.value);
|
|
311
312
|
} else {
|
|
312
313
|
sections = getSectionsFromValue(value);
|
|
@@ -319,7 +320,7 @@ export const useFieldState = parameters => {
|
|
|
319
320
|
isRtl,
|
|
320
321
|
locale: adapter.locale
|
|
321
322
|
},
|
|
322
|
-
referenceValue: fieldValueManager.updateReferenceValue(adapter, value, prevState.referenceValue),
|
|
323
|
+
referenceValue: isActiveDateInvalid ? prevState.referenceValue : fieldValueManager.updateReferenceValue(adapter, value, prevState.referenceValue),
|
|
323
324
|
tempValueStrAndroid: null
|
|
324
325
|
}));
|
|
325
326
|
}
|
package/esm/locales/ptBR.js
CHANGED
|
@@ -18,8 +18,8 @@ const ptBRPickers = {
|
|
|
18
18
|
end: 'Fim',
|
|
19
19
|
startDate: 'Data de início',
|
|
20
20
|
startTime: 'Hora de início',
|
|
21
|
-
endDate: 'Data de
|
|
22
|
-
endTime: 'Hora de
|
|
21
|
+
endDate: 'Data de término',
|
|
22
|
+
endTime: 'Hora de término',
|
|
23
23
|
// Action bar
|
|
24
24
|
cancelButtonLabel: 'Cancelar',
|
|
25
25
|
clearButtonLabel: 'Limpar',
|
|
@@ -31,8 +31,7 @@ const ptBRPickers = {
|
|
|
31
31
|
dateTimePickerToolbarTitle: 'Selecione data e hora',
|
|
32
32
|
timePickerToolbarTitle: 'Selecione a hora',
|
|
33
33
|
dateRangePickerToolbarTitle: 'Selecione o intervalo entre datas',
|
|
34
|
-
|
|
35
|
-
|
|
34
|
+
timeRangePickerToolbarTitle: 'Selecione o intervalo entre horas',
|
|
36
35
|
// Clock labels
|
|
37
36
|
clockLabelText: (view, formattedTime) => `Selecione ${timeViews[view]}. ${!formattedTime ? 'Hora não selecionada' : `Selecionado a hora ${formattedTime}`}`,
|
|
38
37
|
hoursClockNumberText: hours => `${hours} horas`,
|
|
@@ -46,11 +45,9 @@ const ptBRPickers = {
|
|
|
46
45
|
calendarWeekNumberAriaLabelText: weekNumber => `Semana ${weekNumber}`,
|
|
47
46
|
calendarWeekNumberText: weekNumber => `${weekNumber}`,
|
|
48
47
|
// Open Picker labels
|
|
49
|
-
openDatePickerDialogue: formattedDate => {
|
|
50
|
-
return formattedDate ? `Escolha uma data, data selecionada ${formattedDate}` : 'Escolha uma data';
|
|
51
|
-
},
|
|
48
|
+
openDatePickerDialogue: formattedDate => formattedDate ? `Escolha uma data, data selecionada ${formattedDate}` : 'Escolha uma data',
|
|
52
49
|
openTimePickerDialogue: formattedTime => formattedTime ? `Escolha uma hora, hora selecionada ${formattedTime}` : 'Escolha uma hora',
|
|
53
|
-
|
|
50
|
+
openRangePickerDialogue: formattedRange => formattedRange ? `Escolha um intervalo, intervalo selecionado é ${formattedRange}` : 'Escolha um intervalo',
|
|
54
51
|
fieldClearLabel: 'Limpar valor',
|
|
55
52
|
// Table labels
|
|
56
53
|
timeTableLabel: 'escolha uma hora',
|
package/index.js
CHANGED
|
@@ -278,6 +278,9 @@ function PickerFieldUI(props) {
|
|
|
278
278
|
}
|
|
279
279
|
const resolvedTextFieldInputProps = _version.major >= 6 && textFieldProps?.slotProps?.input ? (0, _resolveComponentProps.default)(mergeSlotProps(textFieldInputProps, additionalTextFieldInputProps), ownerState) : (0, _extends2.default)({}, textFieldInputProps, additionalTextFieldInputProps);
|
|
280
280
|
|
|
281
|
+
// We need to resolve the `inputProps` since we are messing with those props in this component.
|
|
282
|
+
textFieldProps.inputProps = _version.major >= 6 && textFieldProps?.slotProps?.htmlInput ? (0, _resolveComponentProps.default)(textFieldProps.slotProps.htmlInput, ownerState) : textFieldProps.inputProps;
|
|
283
|
+
|
|
281
284
|
// Remove the `input` slotProps to avoid them overriding the manually resolved `InputProps`.
|
|
282
285
|
// Relevant on `materialMajor >= 6` since `slotProps` would take precedence.
|
|
283
286
|
delete textFieldProps?.slotProps?.input;
|
|
@@ -152,6 +152,6 @@ function useFieldRootProps(parameters) {
|
|
|
152
152
|
onInput: handleInput,
|
|
153
153
|
// Other
|
|
154
154
|
contentEditable: parsedSelectedSections === 'all',
|
|
155
|
-
tabIndex: parsedSelectedSections === 0 ? -1 : 0 // TODO: Try to set to undefined when there is a section selected.
|
|
155
|
+
tabIndex: internalPropsWithDefaults.disabled || parsedSelectedSections === 0 ? -1 : 0 // TODO: Try to set to undefined when there is a section selected.
|
|
156
156
|
};
|
|
157
157
|
}
|
|
@@ -161,12 +161,14 @@ function useFieldSectionContentProps(parameters) {
|
|
|
161
161
|
'aria-label': translations[section.type],
|
|
162
162
|
'aria-disabled': disabled,
|
|
163
163
|
// Other
|
|
164
|
-
tabIndex: isContainerEditable || sectionIndex > 0 ? -1 : 0,
|
|
164
|
+
tabIndex: !isEditable || isContainerEditable || sectionIndex > 0 ? -1 : 0,
|
|
165
165
|
contentEditable: !isContainerEditable && !disabled && !readOnly,
|
|
166
166
|
role: 'spinbutton',
|
|
167
167
|
'data-range-position': section.dateName || undefined,
|
|
168
168
|
spellCheck: isEditable ? false : undefined,
|
|
169
|
-
|
|
169
|
+
// Firefox hydrates this as `'none`' instead of `'off'`. No problems in chromium with both values.
|
|
170
|
+
// For reference https://github.com/mui/mui-x/issues/19012
|
|
171
|
+
autoCapitalize: isEditable ? 'none' : undefined,
|
|
170
172
|
autoCorrect: isEditable ? 'off' : undefined,
|
|
171
173
|
children: section.value || section.placeholder,
|
|
172
174
|
inputMode: section.contentType === 'letter' ? 'text' : 'numeric'
|
|
@@ -312,8 +312,9 @@ const useFieldState = parameters => {
|
|
|
312
312
|
|
|
313
313
|
// If `prop.value` changes, we update the state to reflect the new value
|
|
314
314
|
if (value !== state.lastExternalValue) {
|
|
315
|
+
const isActiveDateInvalid = sectionToUpdateOnNextInvalidDateRef.current != null && !adapter.isValid(fieldValueManager.getDateFromSection(value, state.sections[sectionToUpdateOnNextInvalidDateRef.current.sectionIndex]));
|
|
315
316
|
let sections;
|
|
316
|
-
if (
|
|
317
|
+
if (isActiveDateInvalid) {
|
|
317
318
|
sections = setSectionValue(sectionToUpdateOnNextInvalidDateRef.current.sectionIndex, sectionToUpdateOnNextInvalidDateRef.current.value);
|
|
318
319
|
} else {
|
|
319
320
|
sections = getSectionsFromValue(value);
|
|
@@ -326,7 +327,7 @@ const useFieldState = parameters => {
|
|
|
326
327
|
isRtl,
|
|
327
328
|
locale: adapter.locale
|
|
328
329
|
},
|
|
329
|
-
referenceValue: fieldValueManager.updateReferenceValue(adapter, value, prevState.referenceValue),
|
|
330
|
+
referenceValue: isActiveDateInvalid ? prevState.referenceValue : fieldValueManager.updateReferenceValue(adapter, value, prevState.referenceValue),
|
|
330
331
|
tempValueStrAndroid: null
|
|
331
332
|
}));
|
|
332
333
|
}
|
package/locales/ptBR.js
CHANGED
|
@@ -24,8 +24,8 @@ const ptBRPickers = {
|
|
|
24
24
|
end: 'Fim',
|
|
25
25
|
startDate: 'Data de início',
|
|
26
26
|
startTime: 'Hora de início',
|
|
27
|
-
endDate: 'Data de
|
|
28
|
-
endTime: 'Hora de
|
|
27
|
+
endDate: 'Data de término',
|
|
28
|
+
endTime: 'Hora de término',
|
|
29
29
|
// Action bar
|
|
30
30
|
cancelButtonLabel: 'Cancelar',
|
|
31
31
|
clearButtonLabel: 'Limpar',
|
|
@@ -37,8 +37,7 @@ const ptBRPickers = {
|
|
|
37
37
|
dateTimePickerToolbarTitle: 'Selecione data e hora',
|
|
38
38
|
timePickerToolbarTitle: 'Selecione a hora',
|
|
39
39
|
dateRangePickerToolbarTitle: 'Selecione o intervalo entre datas',
|
|
40
|
-
|
|
41
|
-
|
|
40
|
+
timeRangePickerToolbarTitle: 'Selecione o intervalo entre horas',
|
|
42
41
|
// Clock labels
|
|
43
42
|
clockLabelText: (view, formattedTime) => `Selecione ${timeViews[view]}. ${!formattedTime ? 'Hora não selecionada' : `Selecionado a hora ${formattedTime}`}`,
|
|
44
43
|
hoursClockNumberText: hours => `${hours} horas`,
|
|
@@ -52,11 +51,9 @@ const ptBRPickers = {
|
|
|
52
51
|
calendarWeekNumberAriaLabelText: weekNumber => `Semana ${weekNumber}`,
|
|
53
52
|
calendarWeekNumberText: weekNumber => `${weekNumber}`,
|
|
54
53
|
// Open Picker labels
|
|
55
|
-
openDatePickerDialogue: formattedDate => {
|
|
56
|
-
return formattedDate ? `Escolha uma data, data selecionada ${formattedDate}` : 'Escolha uma data';
|
|
57
|
-
},
|
|
54
|
+
openDatePickerDialogue: formattedDate => formattedDate ? `Escolha uma data, data selecionada ${formattedDate}` : 'Escolha uma data',
|
|
58
55
|
openTimePickerDialogue: formattedTime => formattedTime ? `Escolha uma hora, hora selecionada ${formattedTime}` : 'Escolha uma hora',
|
|
59
|
-
|
|
56
|
+
openRangePickerDialogue: formattedRange => formattedRange ? `Escolha um intervalo, intervalo selecionado é ${formattedRange}` : 'Escolha um intervalo',
|
|
60
57
|
fieldClearLabel: 'Limpar valor',
|
|
61
58
|
// Table labels
|
|
62
59
|
timeTableLabel: 'escolha uma hora',
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@mui/x-date-pickers",
|
|
3
|
-
"version": "8.
|
|
3
|
+
"version": "8.14.0",
|
|
4
4
|
"author": "MUI Team",
|
|
5
5
|
"description": "The community edition of the MUI X Date and Time Picker components.",
|
|
6
6
|
"license": "MIT",
|
|
@@ -33,13 +33,13 @@
|
|
|
33
33
|
"directory": "packages/x-date-pickers"
|
|
34
34
|
},
|
|
35
35
|
"dependencies": {
|
|
36
|
-
"@babel/runtime": "^7.28.
|
|
37
|
-
"@mui/utils": "^7.3.
|
|
36
|
+
"@babel/runtime": "^7.28.4",
|
|
37
|
+
"@mui/utils": "^7.3.3",
|
|
38
38
|
"@types/react-transition-group": "^4.4.12",
|
|
39
39
|
"clsx": "^2.1.1",
|
|
40
40
|
"prop-types": "^15.8.1",
|
|
41
41
|
"react-transition-group": "^4.4.5",
|
|
42
|
-
"@mui/x-internals": "8.
|
|
42
|
+
"@mui/x-internals": "8.14.0"
|
|
43
43
|
},
|
|
44
44
|
"peerDependencies": {
|
|
45
45
|
"@emotion/react": "^11.9.0",
|