@mui/x-date-pickers 8.10.2 → 8.11.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.
Files changed (34) hide show
  1. package/AdapterDateFns/AdapterDateFns.js +0 -2
  2. package/AdapterDateFnsBase/AdapterDateFnsBase.js +0 -2
  3. package/AdapterDateFnsJalali/AdapterDateFnsJalali.js +0 -2
  4. package/AdapterDateFnsJalaliV2/AdapterDateFnsJalaliV2.js +1 -1
  5. package/AdapterDateFnsV2/AdapterDateFnsV2.js +1 -1
  6. package/AdapterDayjs/AdapterDayjs.js +0 -1
  7. package/AdapterLuxon/AdapterLuxon.js +1 -3
  8. package/AdapterMoment/AdapterMoment.js +0 -2
  9. package/AdapterMomentHijri/AdapterMomentHijri.js +0 -1
  10. package/AdapterMomentJalaali/AdapterMomentJalaali.js +0 -1
  11. package/CHANGELOG.md +140 -13
  12. package/PickersTextField/PickersInputBase/PickersInputBase.js +14 -1
  13. package/PickersTextField/PickersTextField.js +3 -2
  14. package/esm/AdapterDateFns/AdapterDateFns.js +0 -1
  15. package/esm/AdapterDateFnsBase/AdapterDateFnsBase.js +0 -2
  16. package/esm/AdapterDateFnsJalali/AdapterDateFnsJalali.js +0 -1
  17. package/esm/AdapterDateFnsJalaliV2/AdapterDateFnsJalaliV2.js +1 -1
  18. package/esm/AdapterDateFnsV2/AdapterDateFnsV2.js +1 -1
  19. package/esm/AdapterDayjs/AdapterDayjs.js +0 -1
  20. package/esm/AdapterLuxon/AdapterLuxon.js +1 -2
  21. package/esm/AdapterMoment/AdapterMoment.js +0 -1
  22. package/esm/AdapterMomentHijri/AdapterMomentHijri.js +0 -1
  23. package/esm/AdapterMomentJalaali/AdapterMomentJalaali.js +0 -1
  24. package/esm/PickersTextField/PickersInputBase/PickersInputBase.js +14 -1
  25. package/esm/PickersTextField/PickersTextField.js +3 -2
  26. package/esm/index.js +1 -1
  27. package/esm/internals/hooks/useField/syncSelectionToDOM.js +3 -1
  28. package/esm/internals/models/helpers.d.ts +1 -1
  29. package/esm/models/fields.d.ts +4 -0
  30. package/index.js +1 -1
  31. package/internals/hooks/useField/syncSelectionToDOM.js +3 -1
  32. package/internals/models/helpers.d.ts +1 -1
  33. package/models/fields.d.ts +4 -0
  34. package/package.json +10 -10
@@ -48,8 +48,6 @@ var _startOfYear = require("date-fns/startOfYear");
48
48
  var _isWithinInterval = require("date-fns/isWithinInterval");
49
49
  var _enUS = require("date-fns/locale/en-US");
50
50
  var _AdapterDateFnsBase = require("../AdapterDateFnsBase");
51
- /* eslint-disable class-methods-use-this */
52
-
53
51
  /**
54
52
  * Based on `@date-io/date-fns`
55
53
  *
@@ -6,8 +6,6 @@ Object.defineProperty(exports, "__esModule", {
6
6
  });
7
7
  exports.AdapterDateFnsBase = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
- /* eslint-disable class-methods-use-this */
10
-
11
9
  const formatTokenMap = {
12
10
  // Year
13
11
  y: {
@@ -50,8 +50,6 @@ var _startOfYear = require("date-fns-jalali/startOfYear");
50
50
  var _isWithinInterval = require("date-fns-jalali/isWithinInterval");
51
51
  var _faIR = require("date-fns-jalali/locale/fa-IR");
52
52
  var _AdapterDateFnsBase = require("../AdapterDateFnsBase");
53
- /* eslint-disable class-methods-use-this */
54
-
55
53
  const defaultFormats = {
56
54
  year: 'yyyy',
57
55
  month: 'LLLL',
@@ -53,7 +53,7 @@ var _index42 = _interopRequireDefault(require("date-fns-jalali/_lib/format/longF
53
53
  var _AdapterDateFnsBase = require("../AdapterDateFnsBase");
54
54
  // date-fns-jalali@<3 has no exports field defined
55
55
  // See https://github.com/date-fns/date-fns/issues/1781
56
- /* eslint-disable import/extensions, class-methods-use-this */
56
+ /* eslint-disable import/extensions */
57
57
  /* v8 ignore start */
58
58
  // @ts-nocheck
59
59
 
@@ -52,7 +52,7 @@ var _index42 = _interopRequireDefault(require("date-fns/_lib/format/longFormatte
52
52
  var _AdapterDateFnsBase = require("../AdapterDateFnsBase");
53
53
  // date-fns@<3 has no exports field defined
54
54
  // See https://github.com/date-fns/date-fns/issues/1781
55
- /* eslint-disable import/extensions, class-methods-use-this */
55
+ /* eslint-disable import/extensions */
56
56
  /* v8 ignore start */
57
57
  // @ts-nocheck
58
58
 
@@ -13,7 +13,6 @@ var _localizedFormat = _interopRequireDefault(require("dayjs/plugin/localizedFor
13
13
  var _isBetween = _interopRequireDefault(require("dayjs/plugin/isBetween.js"));
14
14
  var _advancedFormat = _interopRequireDefault(require("dayjs/plugin/advancedFormat.js"));
15
15
  var _warning = require("@mui/x-internals/warning");
16
- /* eslint-disable class-methods-use-this */
17
16
  /* v8 ignore start */
18
17
 
19
18
  // dayjs has no exports field defined
@@ -7,8 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.AdapterLuxon = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _luxon = require("luxon");
10
- /* eslint-disable class-methods-use-this */
11
-
12
10
  const formatTokenMap = {
13
11
  // Year
14
12
  y: {
@@ -493,7 +491,7 @@ class AdapterLuxon {
493
491
  return value.localWeekNumber ?? value.weekNumber;
494
492
  };
495
493
  getDayOfWeek = value => {
496
- return value.weekday;
494
+ return value.localWeekday ?? value.weekday;
497
495
  };
498
496
  getYearRange = ([start, end]) => {
499
497
  const startDate = this.startOfYear(start);
@@ -7,8 +7,6 @@ Object.defineProperty(exports, "__esModule", {
7
7
  exports.AdapterMoment = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _moment = _interopRequireDefault(require("moment"));
10
- /* eslint-disable class-methods-use-this */
11
-
12
10
  // From https://momentjs.com/docs/#/displaying/format/
13
11
  const formatTokenMap = {
14
12
  // Year
@@ -8,7 +8,6 @@ exports.AdapterMomentHijri = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _momentHijri = _interopRequireDefault(require("moment-hijri"));
10
10
  var _AdapterMoment = require("../AdapterMoment");
11
- /* eslint-disable class-methods-use-this */
12
11
  /* v8 ignore next */
13
12
 
14
13
  // From https://momentjs.com/docs/#/displaying/format/
@@ -8,7 +8,6 @@ exports.AdapterMomentJalaali = void 0;
8
8
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
9
9
  var _momentJalaali = _interopRequireDefault(require("moment-jalaali"));
10
10
  var _AdapterMoment = require("../AdapterMoment");
11
- /* eslint-disable class-methods-use-this */
12
11
  /* v8 ignore next */
13
12
 
14
13
  // From https://momentjs.com/docs/#/displaying/format/
package/CHANGELOG.md CHANGED
@@ -5,6 +5,127 @@
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.11.0
9
+
10
+ _Aug 29, 2025_
11
+
12
+ We'd like to extend a big thank you to the 19 contributors who made this release possible. Here are some highlights ✨:
13
+
14
+ - 📊 Add new `SankeyChart`
15
+
16
+ <img height="300" alt="Screenshot 2025-07-24 at 12 54 33" src="https://github.com/user-attachments/assets/d77bcec1-044b-48c6-b37d-d7b74793b91c" />
17
+
18
+ - 🚀 Data Grid row grouping now supports row reordering
19
+
20
+ See the [Drag-and-drop group reordering](https://mui.com/x/react-data-grid/row-grouping/#drag-and-drop-group-reordering) section for more details.
21
+
22
+ - 📚 Documentation improvements
23
+
24
+ Special thanks go out to the community members for their valuable contributions:
25
+ @dwrth, @lauri865, @Webini
26
+
27
+ The following are all team members who have contributed to this release:
28
+ @alexfauquette, @arminmeh, @brijeshb42, @cherniavskii, @flaviendelangle, @Janpot, @JCQuintas, @mapache-salvaje, @MBilalShafi, @michelengelen, @noraleonte, @oliviertassinari, @rita-codes, @romgrk, @sai6855, @siriwatknp
29
+
30
+ ### Data Grid
31
+
32
+ #### `@mui/x-data-grid@8.11.0`
33
+
34
+ - [DataGrid] Fix focused column header scroll jump (#19323) @lauri865
35
+ - [DataGrid] Bring `columnUnsortedIcon` slot back (#19268) @arminmeh
36
+ - [DataGrid] Do not add `menu` role to the empty actions menu (#19338) @arminmeh
37
+ - [DataGrid] Fix `columnsManagementRow` style override slot not working (#19097) @dwrth
38
+ - [DataGrid] Fix pagination state synchronization issue (#19290) @MBilalShafi
39
+ - [DataGrid] Fix scroll issue in R17 (#19265) @romgrk
40
+ - [DataGrid] Hide column separator of non-resizable pinned column (#19277) @arminmeh
41
+
42
+ #### `@mui/x-data-grid-pro@8.11.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
43
+
44
+ Same changes as in `@mui/x-data-grid@8.11.0`, plus:
45
+
46
+ - [DataGridPro] Fix column menu sort when `multipleColumnsSortingMode="always"` (#19099) @MBilalShafi
47
+ - [DataGridPro] Keep the drop effect if `keepColumnPositionIfDraggedOutside` is enabled (#19372) @arminmeh
48
+
49
+ #### `@mui/x-data-grid-premium@8.11.0` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
50
+
51
+ Same changes as in `@mui/x-data-grid-pro@8.11.0`, plus:
52
+
53
+ - [DataGridPremium] Fix `valueFormatter` issues when `rowGroupingColumnMode="single"` (#18967) @cherniavskii
54
+ - [DataGridPremium] Reordering support for row grouping (#18251) @MBilalShafi
55
+
56
+ ### Date and Time Pickers
57
+
58
+ #### `@mui/x-date-pickers@8.11.0`
59
+
60
+ - [pickers] Fix Firefox bug causing crash when `startContainer` is a restricted object (#18772) @Webini
61
+ - [pickers] RTL not applied correctly for Calendar Systems examples (works in v7.x but broken in latest version) (#19287) @rita-codes
62
+ - [pickers] Use the locale week day on the Luxon adapter (#19230) @flaviendelangle
63
+ - [pickers] Fix display of placeholder when label is shrunk (#19318) @sai6855
64
+
65
+ #### `@mui/x-date-pickers-pro@8.11.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
66
+
67
+ Same changes as in `@mui/x-date-pickers@8.11.0`.
68
+
69
+ ### Charts
70
+
71
+ #### `@mui/x-charts@8.11.0`
72
+
73
+ - [charts] Add `RadarAxis` component to render labels (#19240) @alexfauquette
74
+ - [charts] Handle item identifier with data (#19295) @JCQuintas
75
+ - [charts] Refactor optional chaining for props in PieChart, PieChartPro, and ScatterChartPro components (#19292) @sai6855
76
+ - [charts] Remove unused `fill` and `stroke` properties (#19316) @sai6855
77
+ - [charts] Correct `hideLegend` prop description in docs (#19371) @sai6855
78
+
79
+ #### `@mui/x-charts-pro@8.11.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
80
+
81
+ Same changes as in `@mui/x-charts@8.11.0`, plus:
82
+
83
+ - [charts-pro] Add new `SankeyChart` (#18895) @JCQuintas
84
+
85
+ ### Tree View
86
+
87
+ #### `@mui/x-tree-view@8.11.0`
88
+
89
+ - [tree view] Improve the typing of the item's checkbox `slotProps` (#19247) @flaviendelangle
90
+
91
+ #### `@mui/x-tree-view-pro@8.11.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
92
+
93
+ Same changes as in `@mui/x-tree-view@8.11.0`.
94
+
95
+ ### Codemod
96
+
97
+ #### `@mui/x-codemod@8.11.0`
98
+
99
+ Internal changes.
100
+
101
+ ### Docs
102
+
103
+ - [docs][TreeView] Fix grammar and spelling mistakes (#19299) @mapache-salvaje
104
+ - [docs][DataGrid] Add pagination number formatting doc with a demo (#19221) @siriwatknp
105
+ - [docs][Charts] Correct some small grammar mistakes (#19297) @mapache-salvaje
106
+ - [docs][DataGrid] Correct grammar mistakes (#19298) @mapache-salvaje
107
+ - [docs][DataGrid] Make it clear that the API key for AI Assistant must be private (#19244) @oliviertassinari
108
+
109
+ ### Core
110
+
111
+ - [code-infra] Remove unnecessary triggers from publish workflow (#19348) @Janpot
112
+ - [code-infra] Set up publishing from GitHub actions (#19264) @Janpot
113
+ - [code-infra] Update renovate, exclude infra packages from MUI group (#19288) @Janpot
114
+ - [internal] Add comment for Codspeed triggers (#19302) @oliviertassinari
115
+ - [internal] Fix changelog generation for infra tags (#19266) @oliviertassinari
116
+ - [internal] Remove dead repository field (#19301) @oliviertassinari
117
+ - [internal] Sentence case @oliviertassinari
118
+ - [internal] Update 8.10.1 changelog with missing changes (#19345) @cherniavskii
119
+ - [support-infra] Improve GitHub Action that check PRs labels (#19303) @oliviertassinari
120
+
121
+ ### Miscellaneous
122
+
123
+ - [infra] Add `synchronize` to workflow triggers (#19342) @michelengelen
124
+ - [infra] Add charts docs folder in codowner (#19317) @alexfauquette
125
+ - [infra] Fix publish workflow complaint (#19346) @JCQuintas
126
+ - [infra] Migrate to use eslint without airbnb config (#19269) @brijeshb42
127
+ - [infra] Simplify release preparation script (#19351) @michelengelen
128
+
8
129
  ## 8.10.2
9
130
 
10
131
  _Aug 20, 2025_
@@ -27,13 +148,13 @@ The following are all team members who have contributed to this release:
27
148
  - [DataGrid] Fix column header sortable classname when using `disableColumnSorting` (#19222) @wilcoschoneveld
28
149
  - [l10n] Improve finnish (fi-FI) locale (#19163) @lauri-heinonen-2025-04
29
150
 
30
- #### `@mui/x-data-grid-pro@8.10.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
151
+ #### `@mui/x-data-grid-pro@8.10.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
31
152
 
32
153
  Same changes as in `@mui/x-data-grid@8.10.2`, plus:
33
154
 
34
155
  - [DataGridPro] Fix quick filter not working in List View mode (#19254) @cherniavskii
35
156
 
36
- #### `@mui/x-data-grid-premium@8.10.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link "Premium plan")
157
+ #### `@mui/x-data-grid-premium@8.10.2` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
37
158
 
38
159
  Same changes as in `@mui/x-data-grid-pro@8.10.2`.
39
160
 
@@ -43,7 +164,7 @@ Same changes as in `@mui/x-data-grid-pro@8.10.2`.
43
164
 
44
165
  Internal changes.
45
166
 
46
- #### `@mui/x-date-pickers-pro@8.10.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
167
+ #### `@mui/x-date-pickers-pro@8.10.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
47
168
 
48
169
  Same changes as in `@mui/x-date-pickers@8.10.2`.
49
170
 
@@ -53,7 +174,7 @@ Same changes as in `@mui/x-date-pickers@8.10.2`.
53
174
 
54
175
  Internal changes.
55
176
 
56
- #### `@mui/x-charts-pro@8.10.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
177
+ #### `@mui/x-charts-pro@8.10.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
57
178
 
58
179
  Same changes as in `@mui/x-charts@8.10.2`.
59
180
 
@@ -63,7 +184,7 @@ Same changes as in `@mui/x-charts@8.10.2`.
63
184
 
64
185
  - [tree view] Add `aria-hidden` to the Tree Item Checkbox (#19246) @flaviendelangle
65
186
 
66
- #### `@mui/x-tree-view-pro@8.10.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
187
+ #### `@mui/x-tree-view-pro@8.10.2` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
67
188
 
68
189
  Same changes as in `@mui/x-tree-view@8.10.2`.
69
190
 
@@ -95,13 +216,13 @@ Internal changes.
95
216
 
96
217
  _Aug 15, 2025_
97
218
 
98
- We'd like to extend a big thank you to the 8 contributors who made this release possible. Here are some highlights ✨:
219
+ We'd like to extend a big thank you to the 11 contributors who made this release possible. Here are some highlights ✨:
99
220
 
100
221
  - 📊 Y-axes can now be grouped by category when using `band` and `point` scales.
101
222
  - 📚 Documentation improvements
102
223
 
103
224
  The following are all team members who have contributed to this release:
104
- @alexfauquette, @bernardobelchior, @Janpot, @JCQuintas, @mnajdova, @oliviertassinari, @prakhargupta1, @romgrk
225
+ @alexfauquette, @bernardobelchior, @Janpot, @JCQuintas, @mnajdova, @oliviertassinari, @prakhargupta1, @romgrk, @brijeshb42, @noraleonte, @rita-codes
105
226
 
106
227
  ### Data Grid
107
228
 
@@ -110,12 +231,14 @@ The following are all team members who have contributed to this release:
110
231
  - [DataGrid] Fix scroll jumping (#19156) @romgrk
111
232
  - [DataGrid] Fix scroll restoration (#19182) @romgrk
112
233
  - [DataGrid] Fix "no row with id" error (#19193) @romgrk
234
+ - [DataGrid] Fix missing rows in the print export window (#19159) @cherniavskii
235
+ - [DataGrid] Fix broken scroll (#19178) @romgrk
113
236
 
114
- #### `@mui/x-data-grid-pro@8.10.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
237
+ #### `@mui/x-data-grid-pro@8.10.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
115
238
 
116
239
  Same changes as in `@mui/x-data-grid@8.10.1`.
117
240
 
118
- #### `@mui/x-data-grid-premium@8.10.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link "Premium plan")
241
+ #### `@mui/x-data-grid-premium@8.10.1` [![premium](https://mui.com/r/x-premium-svg)](https://mui.com/r/x-premium-svg-link 'Premium plan')
119
242
 
120
243
  Same changes as in `@mui/x-data-grid-pro@8.10.1`.
121
244
 
@@ -125,7 +248,7 @@ Same changes as in `@mui/x-data-grid-pro@8.10.1`.
125
248
 
126
249
  Internal changes.
127
250
 
128
- #### `@mui/x-date-pickers-pro@8.10.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
251
+ #### `@mui/x-date-pickers-pro@8.10.0` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
129
252
 
130
253
  Same changes as in `@mui/x-date-pickers@8.10.0`.
131
254
 
@@ -141,8 +264,10 @@ Same changes as in `@mui/x-date-pickers@8.10.0`.
141
264
  - [charts] Fix default axis highlight for axes without data attribute (#18985) @alexfauquette
142
265
  - [charts] Fix tooltip mark unexpected wrapping in mobile (#19122) @bernardobelchior
143
266
  - [charts] Prevent overflow on charts tooltip (#19123) @bernardobelchior
267
+ - [charts] Add demo for log-scale ticks without labels (#19152) @bernardobelchior
268
+ - [charts] Update animation customization docs (#19185) @bernardobelchior
144
269
 
145
- #### `@mui/x-charts-pro@8.10.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
270
+ #### `@mui/x-charts-pro@8.10.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
146
271
 
147
272
  Same changes as in `@mui/x-charts@8.10.1`.
148
273
 
@@ -150,9 +275,10 @@ Same changes as in `@mui/x-charts@8.10.1`.
150
275
 
151
276
  #### `@mui/x-tree-view@8.10.1`
152
277
 
153
- Internal changes.
278
+ - [tree view] Fix root not loading from cache on remount (#19088) @noraleonte
279
+ - [tree view] Don't overwrite childrenIds when collapsed to preserve indeterminate state of the parent (#19196) @rita-codes
154
280
 
155
- #### `@mui/x-tree-view-pro@8.10.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link "Pro plan")
281
+ #### `@mui/x-tree-view-pro@8.10.1` [![pro](https://mui.com/r/x-pro-svg)](https://mui.com/r/x-pro-svg-link 'Pro plan')
156
282
 
157
283
  Same changes as in `@mui/x-tree-view@8.10.1`.
158
284
 
@@ -182,6 +308,7 @@ Internal changes.
182
308
  - [code-infra] Fix `fs-extra` removal from `formattedTSDemos` script (#19132) @bernardobelchior
183
309
  - [code-infra] Remove unused code and dependency (#19139) @bernardobelchior
184
310
  - [code-infra] Replace `fs-extra` with `node:fs` where possible (#19127) @bernardobelchior
311
+ - [code-infra] Migrate build command to code-infra (#19006) @brijeshb42
185
312
  - [internal] Edit, keep `lockFileMaintenance` simple @oliviertassinari
186
313
  - [internal] Fix writing style action name @oliviertassinari
187
314
  - [internal] Make it clear that `lockFileMaintenance` is enabled @oliviertassinari
@@ -74,7 +74,7 @@ const PickersInputBaseSectionsContainer = exports.PickersInputBaseSectionsContai
74
74
  fieldDirection: 'rtl'
75
75
  },
76
76
  style: {
77
- textAlign: 'right /*! @noflip */'
77
+ justifyContent: 'end'
78
78
  }
79
79
  }, {
80
80
  props: {
@@ -105,6 +105,19 @@ const PickersInputBaseSectionsContainer = exports.PickersInputBaseSectionsContai
105
105
  } : {
106
106
  opacity: theme.palette.mode === 'light' ? 0.42 : 0.5
107
107
  }
108
+ }, {
109
+ props: {
110
+ hasStartAdornment: false,
111
+ isFieldFocused: false,
112
+ isFieldValueEmpty: true,
113
+ inputHasLabel: true,
114
+ isLabelShrunk: true
115
+ },
116
+ style: theme.vars ? {
117
+ opacity: theme.vars.opacity.inputPlaceholder
118
+ } : {
119
+ opacity: theme.palette.mode === 'light' ? 0.42 : 0.5
120
+ }
108
121
  }]
109
122
  }));
110
123
  const PickersInputBaseSection = (0, _styles.styled)(_PickersSectionList.Unstable_PickersSectionListSection, {
@@ -118,8 +118,9 @@ const PickersTextField = exports.PickersTextField = /*#__PURE__*/React.forwardRe
118
118
  isInputInFullWidth: fullWidth ?? false,
119
119
  hasStartAdornment: Boolean(startAdornment ?? InputProps?.startAdornment),
120
120
  hasEndAdornment: Boolean(endAdornment ?? InputProps?.endAdornment),
121
- inputHasLabel: !!label
122
- }), [fieldOwnerState, areAllSectionsEmpty, focused, error, props.size, color, fullWidth, startAdornment, endAdornment, InputProps?.startAdornment, InputProps?.endAdornment, label]);
121
+ inputHasLabel: !!label,
122
+ isLabelShrunk: Boolean(InputLabelProps?.shrink)
123
+ }), [fieldOwnerState, areAllSectionsEmpty, focused, error, props.size, color, fullWidth, startAdornment, endAdornment, InputProps?.startAdornment, InputProps?.endAdornment, label, InputLabelProps?.shrink]);
123
124
  const classes = useUtilityClasses(classesProp, ownerState);
124
125
  const PickersInputComponent = VARIANT_COMPONENT[variant];
125
126
  const inputAdditionalProps = {};
@@ -1,4 +1,3 @@
1
- /* eslint-disable class-methods-use-this */
2
1
  import { addDays } from 'date-fns/addDays';
3
2
  import { addSeconds } from 'date-fns/addSeconds';
4
3
  import { addMinutes } from 'date-fns/addMinutes';
@@ -1,6 +1,4 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
- /* eslint-disable class-methods-use-this */
3
-
4
2
  const formatTokenMap = {
5
3
  // Year
6
4
  y: {
@@ -1,5 +1,4 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
- /* eslint-disable class-methods-use-this */
3
2
  import { addSeconds } from 'date-fns-jalali/addSeconds';
4
3
  import { addMinutes } from 'date-fns-jalali/addMinutes';
5
4
  import { addHours } from 'date-fns-jalali/addHours';
@@ -1,7 +1,7 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  // date-fns-jalali@<3 has no exports field defined
3
3
  // See https://github.com/date-fns/date-fns/issues/1781
4
- /* eslint-disable import/extensions, class-methods-use-this */
4
+ /* eslint-disable import/extensions */
5
5
  /* v8 ignore start */
6
6
  // @ts-nocheck
7
7
  import addSeconds from 'date-fns-jalali/addSeconds/index.js';
@@ -1,6 +1,6 @@
1
1
  // date-fns@<3 has no exports field defined
2
2
  // See https://github.com/date-fns/date-fns/issues/1781
3
- /* eslint-disable import/extensions, class-methods-use-this */
3
+ /* eslint-disable import/extensions */
4
4
  /* v8 ignore start */
5
5
  // @ts-nocheck
6
6
  import addDays from 'date-fns/addDays/index.js';
@@ -1,5 +1,4 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
- /* eslint-disable class-methods-use-this */
3
2
  /* v8 ignore start */
4
3
  import dayjs from 'dayjs';
5
4
  // dayjs has no exports field defined
@@ -1,5 +1,4 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
- /* eslint-disable class-methods-use-this */
3
2
  import { DateTime, Info } from 'luxon';
4
3
  const formatTokenMap = {
5
4
  // Year
@@ -485,7 +484,7 @@ export class AdapterLuxon {
485
484
  return value.localWeekNumber ?? value.weekNumber;
486
485
  };
487
486
  getDayOfWeek = value => {
488
- return value.weekday;
487
+ return value.localWeekday ?? value.weekday;
489
488
  };
490
489
  getYearRange = ([start, end]) => {
491
490
  const startDate = this.startOfYear(start);
@@ -1,5 +1,4 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
- /* eslint-disable class-methods-use-this */
3
2
  import defaultMoment from 'moment';
4
3
  // From https://momentjs.com/docs/#/displaying/format/
5
4
  const formatTokenMap = {
@@ -1,5 +1,4 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
- /* eslint-disable class-methods-use-this */
3
2
  /* v8 ignore next */
4
3
  import defaultHMoment from 'moment-hijri';
5
4
  import { AdapterMoment } from "../AdapterMoment/index.js";
@@ -1,5 +1,4 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
- /* eslint-disable class-methods-use-this */
3
2
  /* v8 ignore next */
4
3
  import defaultJMoment from 'moment-jalaali';
5
4
  import { AdapterMoment } from "../AdapterMoment/index.js";
@@ -67,7 +67,7 @@ export const PickersInputBaseSectionsContainer = styled(PickersSectionListRoot,
67
67
  fieldDirection: 'rtl'
68
68
  },
69
69
  style: {
70
- textAlign: 'right /*! @noflip */'
70
+ justifyContent: 'end'
71
71
  }
72
72
  }, {
73
73
  props: {
@@ -98,6 +98,19 @@ export const PickersInputBaseSectionsContainer = styled(PickersSectionListRoot,
98
98
  } : {
99
99
  opacity: theme.palette.mode === 'light' ? 0.42 : 0.5
100
100
  }
101
+ }, {
102
+ props: {
103
+ hasStartAdornment: false,
104
+ isFieldFocused: false,
105
+ isFieldValueEmpty: true,
106
+ inputHasLabel: true,
107
+ isLabelShrunk: true
108
+ },
109
+ style: theme.vars ? {
110
+ opacity: theme.vars.opacity.inputPlaceholder
111
+ } : {
112
+ opacity: theme.palette.mode === 'light' ? 0.42 : 0.5
113
+ }
101
114
  }]
102
115
  }));
103
116
  const PickersInputBaseSection = styled(PickersSectionListSection, {
@@ -111,8 +111,9 @@ const PickersTextField = /*#__PURE__*/React.forwardRef(function PickersTextField
111
111
  isInputInFullWidth: fullWidth ?? false,
112
112
  hasStartAdornment: Boolean(startAdornment ?? InputProps?.startAdornment),
113
113
  hasEndAdornment: Boolean(endAdornment ?? InputProps?.endAdornment),
114
- inputHasLabel: !!label
115
- }), [fieldOwnerState, areAllSectionsEmpty, focused, error, props.size, color, fullWidth, startAdornment, endAdornment, InputProps?.startAdornment, InputProps?.endAdornment, label]);
114
+ inputHasLabel: !!label,
115
+ isLabelShrunk: Boolean(InputLabelProps?.shrink)
116
+ }), [fieldOwnerState, areAllSectionsEmpty, focused, error, props.size, color, fullWidth, startAdornment, endAdornment, InputProps?.startAdornment, InputProps?.endAdornment, label, InputLabelProps?.shrink]);
116
117
  const classes = useUtilityClasses(classesProp, ownerState);
117
118
  const PickersInputComponent = VARIANT_COMPONENT[variant];
118
119
  const inputAdditionalProps = {};
package/esm/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v8.10.2
2
+ * @mui/x-date-pickers v8.11.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -19,7 +19,9 @@ export function syncSelectionToDOM(parameters) {
19
19
  }
20
20
  if (parsedSelectedSections == null) {
21
21
  // If the selection contains an element inside the field, we reset it.
22
- if (selection.rangeCount > 0 && domGetters.getRoot().contains(selection.getRangeAt(0).startContainer)) {
22
+ if (selection.rangeCount > 0 &&
23
+ // Firefox can return a Restricted object here
24
+ selection.getRangeAt(0).startContainer instanceof Node && domGetters.getRoot().contains(selection.getRangeAt(0).startContainer)) {
23
25
  selection.removeAllRanges();
24
26
  }
25
27
  if (focused) {
@@ -7,7 +7,7 @@ import { CSSObject, CSSInterpolation, Interpolation } from '@mui/system';
7
7
  */
8
8
  export type ExtendMui<C, Removals extends keyof C = never> = Omit<C, 'classes' | 'theme' | Removals>;
9
9
  type OverridesStyleRules<ClassKey extends string = string, ComponentName = keyof ComponentsPropsList, Theme = unknown, OwnerState = unknown> = Record<ClassKey, Interpolation<(ComponentName extends keyof ComponentsPropsList ? ComponentsPropsList[ComponentName] & Record<string, unknown> & {
10
- ownerState: OwnerState extends Object ? OwnerState : ComponentsPropsList[ComponentName] & Record<string, unknown>;
10
+ ownerState: OwnerState extends object ? OwnerState : ComponentsPropsList[ComponentName] & Record<string, unknown>;
11
11
  } : {}) & {
12
12
  theme: Theme;
13
13
  } & Record<string, unknown>>>;
@@ -178,5 +178,9 @@ export interface PickerTextFieldOwnerState extends FieldOwnerState {
178
178
  * `true` if the input has a label, `false` otherwise.
179
179
  */
180
180
  inputHasLabel: boolean;
181
+ /**
182
+ * `true` if the input label is shrunk, `false` otherwise.
183
+ */
184
+ isLabelShrunk: boolean;
181
185
  }
182
186
  export {};
package/index.js CHANGED
@@ -1,5 +1,5 @@
1
1
  /**
2
- * @mui/x-date-pickers v8.10.2
2
+ * @mui/x-date-pickers v8.11.0
3
3
  *
4
4
  * @license MIT
5
5
  * This source code is licensed under the MIT license found in the
@@ -26,7 +26,9 @@ function syncSelectionToDOM(parameters) {
26
26
  }
27
27
  if (parsedSelectedSections == null) {
28
28
  // If the selection contains an element inside the field, we reset it.
29
- if (selection.rangeCount > 0 && domGetters.getRoot().contains(selection.getRangeAt(0).startContainer)) {
29
+ if (selection.rangeCount > 0 &&
30
+ // Firefox can return a Restricted object here
31
+ selection.getRangeAt(0).startContainer instanceof Node && domGetters.getRoot().contains(selection.getRangeAt(0).startContainer)) {
30
32
  selection.removeAllRanges();
31
33
  }
32
34
  if (focused) {
@@ -7,7 +7,7 @@ import { CSSObject, CSSInterpolation, Interpolation } from '@mui/system';
7
7
  */
8
8
  export type ExtendMui<C, Removals extends keyof C = never> = Omit<C, 'classes' | 'theme' | Removals>;
9
9
  type OverridesStyleRules<ClassKey extends string = string, ComponentName = keyof ComponentsPropsList, Theme = unknown, OwnerState = unknown> = Record<ClassKey, Interpolation<(ComponentName extends keyof ComponentsPropsList ? ComponentsPropsList[ComponentName] & Record<string, unknown> & {
10
- ownerState: OwnerState extends Object ? OwnerState : ComponentsPropsList[ComponentName] & Record<string, unknown>;
10
+ ownerState: OwnerState extends object ? OwnerState : ComponentsPropsList[ComponentName] & Record<string, unknown>;
11
11
  } : {}) & {
12
12
  theme: Theme;
13
13
  } & Record<string, unknown>>>;
@@ -178,5 +178,9 @@ export interface PickerTextFieldOwnerState extends FieldOwnerState {
178
178
  * `true` if the input has a label, `false` otherwise.
179
179
  */
180
180
  inputHasLabel: boolean;
181
+ /**
182
+ * `true` if the input label is shrunk, `false` otherwise.
183
+ */
184
+ isLabelShrunk: boolean;
181
185
  }
182
186
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@mui/x-date-pickers",
3
- "version": "8.10.2",
3
+ "version": "8.11.0",
4
4
  "author": "MUI Team",
5
5
  "description": "The community edition of the MUI X Date and Time Picker components.",
6
6
  "main": "./index.js",
@@ -40,7 +40,7 @@
40
40
  "clsx": "^2.1.1",
41
41
  "prop-types": "^15.8.1",
42
42
  "react-transition-group": "^4.4.5",
43
- "@mui/x-internals": "8.10.2"
43
+ "@mui/x-internals": "8.11.0"
44
44
  },
45
45
  "peerDependencies": {
46
46
  "@emotion/react": "^11.9.0",
@@ -94,23 +94,23 @@
94
94
  "exports": {
95
95
  "./package.json": "./package.json",
96
96
  ".": {
97
- "require": {
98
- "types": "./index.d.ts",
99
- "default": "./index.js"
100
- },
101
97
  "import": {
102
98
  "types": "./esm/index.d.ts",
103
99
  "default": "./esm/index.js"
100
+ },
101
+ "require": {
102
+ "types": "./index.d.ts",
103
+ "default": "./index.js"
104
104
  }
105
105
  },
106
106
  "./*": {
107
- "require": {
108
- "types": "./*/index.d.ts",
109
- "default": "./*/index.js"
110
- },
111
107
  "import": {
112
108
  "types": "./esm/*/index.d.ts",
113
109
  "default": "./esm/*/index.js"
110
+ },
111
+ "require": {
112
+ "types": "./*/index.d.ts",
113
+ "default": "./*/index.js"
114
114
  }
115
115
  },
116
116
  "./esm": null