@mui/x-date-pickers 6.6.0 → 6.8.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 (194) hide show
  1. package/AdapterDateFns/AdapterDateFns.js +20 -19
  2. package/AdapterDateFnsJalali/AdapterDateFnsJalali.js +17 -16
  3. package/AdapterDayjs/AdapterDayjs.js +12 -11
  4. package/AdapterLuxon/AdapterLuxon.js +20 -19
  5. package/AdapterMoment/AdapterMoment.js +12 -11
  6. package/AdapterMomentHijri/AdapterMomentHijri.js +20 -19
  7. package/AdapterMomentJalaali/AdapterMomentJalaali.js +20 -19
  8. package/CHANGELOG.md +147 -13
  9. package/DateCalendar/DateCalendar.js +16 -6
  10. package/DateCalendar/DateCalendar.types.d.ts +6 -1
  11. package/DateCalendar/useCalendarState.d.ts +3 -2
  12. package/DateCalendar/useCalendarState.js +36 -15
  13. package/DateField/DateField.js +1 -1
  14. package/DatePicker/DatePicker.js +1 -1
  15. package/DatePicker/DatePickerToolbar.js +6 -15
  16. package/DatePicker/shared.d.ts +1 -5
  17. package/DatePicker/shared.js +1 -16
  18. package/DateTimeField/DateTimeField.js +1 -1
  19. package/DateTimePicker/DateTimePicker.js +1 -1
  20. package/DesktopDatePicker/DesktopDatePicker.js +4 -3
  21. package/DesktopDateTimePicker/DesktopDateTimePicker.js +6 -2
  22. package/DesktopTimePicker/DesktopTimePicker.js +5 -1
  23. package/LocalizationProvider/LocalizationProvider.js +1 -0
  24. package/MobileDatePicker/MobileDatePicker.js +4 -3
  25. package/MobileDateTimePicker/MobileDateTimePicker.js +6 -2
  26. package/MobileTimePicker/MobileTimePicker.js +5 -1
  27. package/MonthCalendar/MonthCalendar.js +28 -11
  28. package/MonthCalendar/MonthCalendar.types.d.ts +5 -0
  29. package/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +1 -1
  30. package/PickersLayout/PickersLayout.js +1 -0
  31. package/PickersLayout/usePickerLayout.js +4 -3
  32. package/PickersShortcuts/PickersShortcuts.d.ts +12 -2
  33. package/PickersShortcuts/PickersShortcuts.js +10 -2
  34. package/PickersShortcuts/index.d.ts +1 -1
  35. package/StaticDatePicker/StaticDatePicker.js +1 -1
  36. package/StaticDateTimePicker/StaticDateTimePicker.js +1 -1
  37. package/TimeField/TimeField.js +1 -1
  38. package/TimePicker/shared.d.ts +1 -1
  39. package/YearCalendar/YearCalendar.js +26 -9
  40. package/YearCalendar/YearCalendar.types.d.ts +5 -0
  41. package/index.js +1 -1
  42. package/internals/hooks/useField/useField.types.d.ts +1 -1
  43. package/internals/hooks/useField/useFieldState.js +0 -1
  44. package/internals/hooks/usePicker/usePickerValue.js +22 -2
  45. package/internals/hooks/usePicker/usePickerValue.types.d.ts +6 -2
  46. package/internals/utils/date-time-utils.d.ts +6 -0
  47. package/internals/utils/date-time-utils.js +41 -0
  48. package/internals/utils/date-utils.d.ts +5 -2
  49. package/internals/utils/date-utils.js +33 -10
  50. package/internals/utils/getDefaultReferenceDate.d.ts +11 -3
  51. package/internals/utils/getDefaultReferenceDate.js +2 -3
  52. package/internals/utils/time-utils.d.ts +6 -1
  53. package/internals/utils/time-utils.js +27 -0
  54. package/internals/utils/validation/extractValidationProps.d.ts +1 -1
  55. package/internals/utils/views.d.ts +2 -3
  56. package/internals/utils/views.js +6 -2
  57. package/legacy/AdapterDateFns/AdapterDateFns.js +20 -19
  58. package/legacy/AdapterDateFnsJalali/AdapterDateFnsJalali.js +17 -16
  59. package/legacy/AdapterDayjs/AdapterDayjs.js +12 -11
  60. package/legacy/AdapterLuxon/AdapterLuxon.js +20 -19
  61. package/legacy/AdapterMoment/AdapterMoment.js +12 -11
  62. package/legacy/AdapterMomentHijri/AdapterMomentHijri.js +20 -19
  63. package/legacy/AdapterMomentJalaali/AdapterMomentJalaali.js +20 -19
  64. package/legacy/DateCalendar/DateCalendar.js +16 -6
  65. package/legacy/DateCalendar/useCalendarState.js +35 -15
  66. package/legacy/DateField/DateField.js +1 -1
  67. package/legacy/DatePicker/DatePicker.js +1 -1
  68. package/legacy/DatePicker/DatePickerToolbar.js +6 -15
  69. package/legacy/DatePicker/shared.js +1 -15
  70. package/legacy/DateTimeField/DateTimeField.js +1 -1
  71. package/legacy/DateTimePicker/DateTimePicker.js +1 -1
  72. package/legacy/DesktopDatePicker/DesktopDatePicker.js +4 -3
  73. package/legacy/DesktopDateTimePicker/DesktopDateTimePicker.js +6 -2
  74. package/legacy/DesktopTimePicker/DesktopTimePicker.js +5 -1
  75. package/legacy/LocalizationProvider/LocalizationProvider.js +1 -0
  76. package/legacy/MobileDatePicker/MobileDatePicker.js +4 -3
  77. package/legacy/MobileDateTimePicker/MobileDateTimePicker.js +6 -2
  78. package/legacy/MobileTimePicker/MobileTimePicker.js +5 -1
  79. package/legacy/MonthCalendar/MonthCalendar.js +30 -13
  80. package/legacy/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +1 -1
  81. package/legacy/PickersLayout/PickersLayout.js +1 -0
  82. package/legacy/PickersLayout/usePickerLayout.js +3 -2
  83. package/legacy/PickersShortcuts/PickersShortcuts.js +10 -2
  84. package/legacy/StaticDatePicker/StaticDatePicker.js +1 -1
  85. package/legacy/StaticDateTimePicker/StaticDateTimePicker.js +1 -1
  86. package/legacy/TimeField/TimeField.js +1 -1
  87. package/legacy/YearCalendar/YearCalendar.js +28 -11
  88. package/legacy/index.js +1 -1
  89. package/legacy/internals/hooks/useField/useFieldState.js +0 -1
  90. package/legacy/internals/hooks/usePicker/usePickerValue.js +24 -2
  91. package/legacy/internals/utils/date-time-utils.js +39 -0
  92. package/legacy/internals/utils/date-utils.js +31 -9
  93. package/legacy/internals/utils/getDefaultReferenceDate.js +2 -3
  94. package/legacy/internals/utils/time-utils.js +26 -0
  95. package/legacy/internals/utils/views.js +7 -5
  96. package/legacy/locales/deDE.js +2 -2
  97. package/legacy/locales/elGR.js +93 -0
  98. package/legacy/locales/index.js +17 -15
  99. package/legacy/locales/roRO.js +81 -0
  100. package/locales/deDE.js +2 -2
  101. package/locales/elGR.d.ts +53 -0
  102. package/locales/elGR.js +57 -0
  103. package/locales/index.d.ts +17 -15
  104. package/locales/index.js +17 -15
  105. package/locales/roRO.d.ts +53 -0
  106. package/locales/roRO.js +63 -0
  107. package/models/adapters.d.ts +137 -37
  108. package/modern/AdapterDateFns/AdapterDateFns.js +20 -19
  109. package/modern/AdapterDateFnsJalali/AdapterDateFnsJalali.js +17 -16
  110. package/modern/AdapterDayjs/AdapterDayjs.js +12 -11
  111. package/modern/AdapterLuxon/AdapterLuxon.js +20 -19
  112. package/modern/AdapterMoment/AdapterMoment.js +12 -11
  113. package/modern/AdapterMomentHijri/AdapterMomentHijri.js +20 -19
  114. package/modern/AdapterMomentJalaali/AdapterMomentJalaali.js +20 -19
  115. package/modern/DateCalendar/DateCalendar.js +16 -6
  116. package/modern/DateCalendar/useCalendarState.js +36 -14
  117. package/modern/DateField/DateField.js +1 -1
  118. package/modern/DatePicker/DatePicker.js +1 -1
  119. package/modern/DatePicker/DatePickerToolbar.js +6 -15
  120. package/modern/DatePicker/shared.js +1 -16
  121. package/modern/DateTimeField/DateTimeField.js +1 -1
  122. package/modern/DateTimePicker/DateTimePicker.js +1 -1
  123. package/modern/DesktopDatePicker/DesktopDatePicker.js +4 -3
  124. package/modern/DesktopDateTimePicker/DesktopDateTimePicker.js +6 -2
  125. package/modern/DesktopTimePicker/DesktopTimePicker.js +5 -1
  126. package/modern/LocalizationProvider/LocalizationProvider.js +1 -0
  127. package/modern/MobileDatePicker/MobileDatePicker.js +4 -3
  128. package/modern/MobileDateTimePicker/MobileDateTimePicker.js +6 -2
  129. package/modern/MobileTimePicker/MobileTimePicker.js +5 -1
  130. package/modern/MonthCalendar/MonthCalendar.js +28 -11
  131. package/modern/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +1 -1
  132. package/modern/PickersLayout/PickersLayout.js +1 -0
  133. package/modern/PickersLayout/usePickerLayout.js +4 -3
  134. package/modern/PickersShortcuts/PickersShortcuts.js +10 -2
  135. package/modern/StaticDatePicker/StaticDatePicker.js +1 -1
  136. package/modern/StaticDateTimePicker/StaticDateTimePicker.js +1 -1
  137. package/modern/TimeField/TimeField.js +1 -1
  138. package/modern/YearCalendar/YearCalendar.js +26 -9
  139. package/modern/index.js +1 -1
  140. package/modern/internals/hooks/useField/useFieldState.js +0 -1
  141. package/modern/internals/hooks/usePicker/usePickerValue.js +22 -2
  142. package/modern/internals/utils/date-time-utils.js +41 -0
  143. package/modern/internals/utils/date-utils.js +33 -10
  144. package/modern/internals/utils/getDefaultReferenceDate.js +2 -3
  145. package/modern/internals/utils/time-utils.js +27 -0
  146. package/modern/internals/utils/views.js +6 -2
  147. package/modern/locales/deDE.js +2 -2
  148. package/modern/locales/elGR.js +57 -0
  149. package/modern/locales/index.js +17 -15
  150. package/modern/locales/roRO.js +60 -0
  151. package/node/AdapterDateFns/AdapterDateFns.js +20 -19
  152. package/node/AdapterDateFnsJalali/AdapterDateFnsJalali.js +17 -16
  153. package/node/AdapterDayjs/AdapterDayjs.js +12 -11
  154. package/node/AdapterLuxon/AdapterLuxon.js +20 -19
  155. package/node/AdapterMoment/AdapterMoment.js +12 -11
  156. package/node/AdapterMomentHijri/AdapterMomentHijri.js +20 -19
  157. package/node/AdapterMomentJalaali/AdapterMomentJalaali.js +20 -19
  158. package/node/DateCalendar/DateCalendar.js +16 -6
  159. package/node/DateCalendar/useCalendarState.js +36 -14
  160. package/node/DateField/DateField.js +1 -1
  161. package/node/DatePicker/DatePicker.js +1 -1
  162. package/node/DatePicker/DatePickerToolbar.js +6 -15
  163. package/node/DatePicker/shared.js +0 -17
  164. package/node/DateTimeField/DateTimeField.js +1 -1
  165. package/node/DateTimePicker/DateTimePicker.js +1 -1
  166. package/node/DesktopDatePicker/DesktopDatePicker.js +3 -2
  167. package/node/DesktopDateTimePicker/DesktopDateTimePicker.js +8 -4
  168. package/node/DesktopTimePicker/DesktopTimePicker.js +7 -3
  169. package/node/LocalizationProvider/LocalizationProvider.js +1 -0
  170. package/node/MobileDatePicker/MobileDatePicker.js +3 -2
  171. package/node/MobileDateTimePicker/MobileDateTimePicker.js +8 -4
  172. package/node/MobileTimePicker/MobileTimePicker.js +7 -3
  173. package/node/MonthCalendar/MonthCalendar.js +28 -11
  174. package/node/MultiSectionDigitalClock/MultiSectionDigitalClockSection.js +1 -1
  175. package/node/PickersLayout/PickersLayout.js +1 -0
  176. package/node/PickersLayout/usePickerLayout.js +4 -3
  177. package/node/PickersShortcuts/PickersShortcuts.js +10 -2
  178. package/node/StaticDatePicker/StaticDatePicker.js +1 -1
  179. package/node/StaticDateTimePicker/StaticDateTimePicker.js +1 -1
  180. package/node/TimeField/TimeField.js +1 -1
  181. package/node/YearCalendar/YearCalendar.js +26 -9
  182. package/node/index.js +1 -1
  183. package/node/internals/hooks/useField/useFieldState.js +0 -1
  184. package/node/internals/hooks/usePicker/usePickerValue.js +22 -2
  185. package/node/internals/utils/date-time-utils.js +49 -0
  186. package/node/internals/utils/date-utils.js +35 -12
  187. package/node/internals/utils/getDefaultReferenceDate.js +3 -3
  188. package/node/internals/utils/time-utils.js +30 -2
  189. package/node/internals/utils/views.js +8 -5
  190. package/node/locales/deDE.js +2 -2
  191. package/node/locales/elGR.js +64 -0
  192. package/node/locales/index.js +112 -90
  193. package/node/locales/roRO.js +67 -0
  194. package/package.json +1 -1
@@ -223,33 +223,34 @@ const formatTokenMap = {
223
223
  ss: 'seconds'
224
224
  };
225
225
  const defaultFormats = {
226
+ year: 'yyyy',
227
+ month: 'LLLL',
228
+ monthShort: 'MMM',
226
229
  dayOfMonth: 'd',
230
+ weekday: 'EEEE',
231
+ weekdayShort: 'EEE',
232
+ hours24h: 'HH',
233
+ hours12h: 'hh',
234
+ meridiem: 'aa',
235
+ minutes: 'mm',
236
+ seconds: 'ss',
227
237
  fullDate: 'PP',
228
238
  fullDateWithWeekday: 'PPPP',
229
- fullDateTime: 'PP p',
230
- fullDateTime12h: 'PP hh:mm aa',
231
- fullDateTime24h: 'PP HH:mm',
239
+ keyboardDate: 'P',
240
+ shortDate: 'MMM d',
241
+ normalDate: 'd MMMM',
242
+ normalDateWithWeekday: 'EEE, MMM d',
243
+ monthAndYear: 'LLLL yyyy',
244
+ monthAndDate: 'MMMM d',
232
245
  fullTime: 'p',
233
246
  fullTime12h: 'hh:mm aa',
234
247
  fullTime24h: 'HH:mm',
235
- hours12h: 'hh',
236
- hours24h: 'HH',
237
- keyboardDate: 'P',
248
+ fullDateTime: 'PP p',
249
+ fullDateTime12h: 'PP hh:mm aa',
250
+ fullDateTime24h: 'PP HH:mm',
238
251
  keyboardDateTime: 'P p',
239
252
  keyboardDateTime12h: 'P hh:mm aa',
240
- keyboardDateTime24h: 'P HH:mm',
241
- minutes: 'mm',
242
- month: 'LLLL',
243
- monthAndDate: 'MMMM d',
244
- monthAndYear: 'LLLL yyyy',
245
- monthShort: 'MMM',
246
- weekday: 'EEEE',
247
- weekdayShort: 'EEE',
248
- normalDate: 'd MMMM',
249
- normalDateWithWeekday: 'EEE, MMM d',
250
- seconds: 'ss',
251
- shortDate: 'MMM d',
252
- year: 'yyyy'
253
+ keyboardDateTime24h: 'P HH:mm'
253
254
  };
254
255
 
255
256
  /**
@@ -223,33 +223,34 @@ const formatTokenMap = {
223
223
  ss: 'seconds'
224
224
  };
225
225
  const defaultFormats = {
226
+ year: 'yyyy',
227
+ month: 'LLLL',
228
+ monthShort: 'MMM',
226
229
  dayOfMonth: 'd',
230
+ weekday: 'EEEE',
231
+ weekdayShort: 'EEE',
232
+ hours24h: 'HH',
233
+ hours12h: 'hh',
234
+ meridiem: 'aa',
235
+ minutes: 'mm',
236
+ seconds: 'ss',
227
237
  fullDate: 'PPP',
228
238
  fullDateWithWeekday: 'PPPP',
239
+ keyboardDate: 'P',
240
+ shortDate: 'd MMM',
241
+ normalDate: 'd MMMM',
242
+ normalDateWithWeekday: 'EEE, d MMMM',
243
+ monthAndYear: 'LLLL yyyy',
244
+ monthAndDate: 'd MMMM',
229
245
  fullDateTime: 'PPP p',
230
246
  fullDateTime12h: 'PPP hh:mm aa',
231
247
  fullDateTime24h: 'PPP HH:mm',
232
248
  fullTime: 'p',
233
249
  fullTime12h: 'hh:mm aaa',
234
250
  fullTime24h: 'HH:mm',
235
- hours12h: 'hh',
236
- hours24h: 'HH',
237
- keyboardDate: 'P',
238
251
  keyboardDateTime: 'P p',
239
252
  keyboardDateTime12h: 'P hh:mm aa',
240
- keyboardDateTime24h: 'P HH:mm',
241
- minutes: 'mm',
242
- month: 'LLLL',
243
- monthAndDate: 'd MMMM',
244
- monthAndYear: 'LLLL yyyy',
245
- monthShort: 'MMM',
246
- weekday: 'EEEE',
247
- weekdayShort: 'EEE',
248
- normalDate: 'd MMMM',
249
- normalDateWithWeekday: 'EEE, d MMMM',
250
- seconds: 'ss',
251
- shortDate: 'd MMM',
252
- year: 'yyyy'
253
+ keyboardDateTime24h: 'P HH:mm'
253
254
  };
254
255
  const NUMBER_SYMBOL_MAP = {
255
256
  '1': '۱',
@@ -94,30 +94,31 @@ const formatTokenMap = {
94
94
  ss: 'seconds'
95
95
  };
96
96
  const defaultFormats = {
97
- normalDateWithWeekday: 'ddd, MMM D',
98
- normalDate: 'D MMMM',
99
- shortDate: 'MMM D',
100
- monthAndDate: 'MMMM D',
101
- dayOfMonth: 'D',
102
97
  year: 'YYYY',
103
98
  month: 'MMMM',
104
99
  monthShort: 'MMM',
105
- monthAndYear: 'MMMM YYYY',
100
+ dayOfMonth: 'D',
106
101
  weekday: 'dddd',
107
102
  weekdayShort: 'ddd',
108
- minutes: 'mm',
109
- hours12h: 'hh',
110
103
  hours24h: 'HH',
104
+ hours12h: 'hh',
105
+ meridiem: 'A',
106
+ minutes: 'mm',
111
107
  seconds: 'ss',
108
+ fullDate: 'll',
109
+ fullDateWithWeekday: 'dddd, LL',
110
+ keyboardDate: 'L',
111
+ shortDate: 'MMM D',
112
+ normalDate: 'D MMMM',
113
+ normalDateWithWeekday: 'ddd, MMM D',
114
+ monthAndYear: 'MMMM YYYY',
115
+ monthAndDate: 'MMMM D',
112
116
  fullTime: 'LT',
113
117
  fullTime12h: 'hh:mm A',
114
118
  fullTime24h: 'HH:mm',
115
- fullDate: 'll',
116
- fullDateWithWeekday: 'dddd, LL',
117
119
  fullDateTime: 'lll',
118
120
  fullDateTime12h: 'll hh:mm A',
119
121
  fullDateTime24h: 'll HH:mm',
120
- keyboardDate: 'L',
121
122
  keyboardDateTime: 'L LT',
122
123
  keyboardDateTime12h: 'L hh:mm A',
123
124
  keyboardDateTime24h: 'L HH:mm'
@@ -108,33 +108,34 @@ const formatTokenMap = {
108
108
  ss: 'seconds'
109
109
  };
110
110
  const defaultFormats = {
111
+ year: 'yyyy',
112
+ month: 'LLLL',
113
+ monthShort: 'MMM',
111
114
  dayOfMonth: 'd',
115
+ weekday: 'cccc',
116
+ weekdayShort: 'ccc',
117
+ hours24h: 'HH',
118
+ hours12h: 'hh',
119
+ meridiem: 'a',
120
+ minutes: 'mm',
121
+ seconds: 'ss',
112
122
  fullDate: 'DD',
113
123
  fullDateWithWeekday: 'DDDD',
114
- fullDateTime: 'ff',
115
- fullDateTime12h: 'DD, hh:mm a',
116
- fullDateTime24h: 'DD, T',
124
+ keyboardDate: 'D',
125
+ shortDate: 'MMM d',
126
+ normalDate: 'd MMMM',
127
+ normalDateWithWeekday: 'EEE, MMM d',
128
+ monthAndYear: 'LLLL yyyy',
129
+ monthAndDate: 'MMMM d',
117
130
  fullTime: 't',
118
131
  fullTime12h: 'hh:mm a',
119
132
  fullTime24h: 'HH:mm',
120
- hours12h: 'hh',
121
- hours24h: 'HH',
122
- keyboardDate: 'D',
133
+ fullDateTime: 'ff',
134
+ fullDateTime12h: 'DD, hh:mm a',
135
+ fullDateTime24h: 'DD, T',
123
136
  keyboardDateTime: 'D t',
124
137
  keyboardDateTime12h: 'D hh:mm a',
125
- keyboardDateTime24h: 'D T',
126
- minutes: 'mm',
127
- seconds: 'ss',
128
- month: 'LLLL',
129
- monthAndDate: 'MMMM d',
130
- monthAndYear: 'LLLL yyyy',
131
- monthShort: 'MMM',
132
- weekday: 'cccc',
133
- weekdayShort: 'ccc',
134
- normalDate: 'd MMMM',
135
- normalDateWithWeekday: 'EEE, MMM d',
136
- shortDate: 'MMM d',
137
- year: 'yyyy'
138
+ keyboardDateTime24h: 'D T'
138
139
  };
139
140
 
140
141
  /**
@@ -93,30 +93,31 @@ const formatTokenMap = {
93
93
  ss: 'seconds'
94
94
  };
95
95
  const defaultFormats = {
96
- normalDateWithWeekday: 'ddd, MMM D',
97
- normalDate: 'D MMMM',
98
- shortDate: 'MMM D',
99
- monthAndDate: 'MMMM D',
100
- dayOfMonth: 'D',
101
96
  year: 'YYYY',
102
97
  month: 'MMMM',
103
98
  monthShort: 'MMM',
104
- monthAndYear: 'MMMM YYYY',
99
+ dayOfMonth: 'D',
105
100
  weekday: 'dddd',
106
101
  weekdayShort: 'ddd',
107
- minutes: 'mm',
108
- hours12h: 'hh',
109
102
  hours24h: 'HH',
103
+ hours12h: 'hh',
104
+ meridiem: 'A',
105
+ minutes: 'mm',
110
106
  seconds: 'ss',
107
+ fullDate: 'll',
108
+ fullDateWithWeekday: 'dddd, LL',
109
+ keyboardDate: 'L',
110
+ shortDate: 'MMM D',
111
+ normalDate: 'D MMMM',
112
+ normalDateWithWeekday: 'ddd, MMM D',
113
+ monthAndYear: 'MMMM YYYY',
114
+ monthAndDate: 'MMMM D',
111
115
  fullTime: 'LT',
112
116
  fullTime12h: 'hh:mm A',
113
117
  fullTime24h: 'HH:mm',
114
- fullDate: 'll',
115
- fullDateWithWeekday: 'dddd, LL',
116
118
  fullDateTime: 'lll',
117
119
  fullDateTime12h: 'll hh:mm A',
118
120
  fullDateTime24h: 'll HH:mm',
119
- keyboardDate: 'L',
120
121
  keyboardDateTime: 'L LT',
121
122
  keyboardDateTime12h: 'L hh:mm A',
122
123
  keyboardDateTime24h: 'L HH:mm'
@@ -67,33 +67,34 @@ const formatTokenMap = {
67
67
  ss: 'seconds'
68
68
  };
69
69
  const defaultFormats = {
70
+ year: 'iYYYY',
71
+ month: 'iMMMM',
72
+ monthShort: 'iMMM',
70
73
  dayOfMonth: 'iD',
74
+ weekday: 'dddd',
75
+ weekdayShort: 'ddd',
76
+ hours24h: 'HH',
77
+ hours12h: 'hh',
78
+ meridiem: 'A',
79
+ minutes: 'mm',
80
+ seconds: 'ss',
71
81
  fullDate: 'iYYYY, iMMMM Do',
72
82
  fullDateWithWeekday: 'iYYYY, iMMMM Do, dddd',
73
- fullDateTime: 'iYYYY, iMMMM Do, hh:mm A',
74
- fullDateTime12h: 'iD iMMMM hh:mm A',
75
- fullDateTime24h: 'iD iMMMM HH:mm',
83
+ keyboardDateTime: 'iYYYY/iMM/iDD LT',
84
+ shortDate: 'iD iMMM',
85
+ normalDate: 'dddd, iD iMMM',
86
+ normalDateWithWeekday: 'DD iMMMM',
87
+ monthAndYear: 'iMMMM iYYYY',
88
+ monthAndDate: 'iD iMMMM',
76
89
  fullTime: 'LT',
77
90
  fullTime12h: 'hh:mm A',
78
91
  fullTime24h: 'HH:mm',
79
- hours12h: 'hh',
80
- hours24h: 'HH',
92
+ fullDateTime: 'iYYYY, iMMMM Do, hh:mm A',
93
+ fullDateTime12h: 'iD iMMMM hh:mm A',
94
+ fullDateTime24h: 'iD iMMMM HH:mm',
81
95
  keyboardDate: 'iYYYY/iMM/iDD',
82
- keyboardDateTime: 'iYYYY/iMM/iDD LT',
83
96
  keyboardDateTime12h: 'iYYYY/iMM/iDD hh:mm A',
84
- keyboardDateTime24h: 'iYYYY/iMM/iDD HH:mm',
85
- minutes: 'mm',
86
- month: 'iMMMM',
87
- monthAndDate: 'iD iMMMM',
88
- monthAndYear: 'iMMMM iYYYY',
89
- monthShort: 'iMMM',
90
- weekday: 'dddd',
91
- weekdayShort: 'ddd',
92
- normalDate: 'dddd, iD iMMM',
93
- normalDateWithWeekday: 'DD iMMMM',
94
- seconds: 'ss',
95
- shortDate: 'iD iMMM',
96
- year: 'iYYYY'
97
+ keyboardDateTime24h: 'iYYYY/iMM/iDD HH:mm'
97
98
  };
98
99
  const NUMBER_SYMBOL_MAP = {
99
100
  '1': '١',
@@ -65,33 +65,34 @@ const formatTokenMap = {
65
65
  ss: 'seconds'
66
66
  };
67
67
  const defaultFormats = {
68
+ year: 'jYYYY',
69
+ month: 'jMMMM',
70
+ monthShort: 'jMMM',
68
71
  dayOfMonth: 'jD',
72
+ weekday: 'dddd',
73
+ weekdayShort: 'ddd',
74
+ hours24h: 'HH',
75
+ hours12h: 'hh',
76
+ meridiem: 'A',
77
+ minutes: 'mm',
78
+ seconds: 'ss',
69
79
  fullDate: 'jYYYY, jMMMM Do',
70
80
  fullDateWithWeekday: 'dddd Do jMMMM jYYYY',
71
- fullDateTime: 'jYYYY, jMMMM Do, hh:mm A',
72
- fullDateTime12h: 'jD jMMMM hh:mm A',
73
- fullDateTime24h: 'jD jMMMM HH:mm',
81
+ keyboardDate: 'jYYYY/jMM/jDD',
82
+ shortDate: 'jD jMMM',
83
+ normalDate: 'dddd, jD jMMM',
84
+ normalDateWithWeekday: 'DD MMMM',
85
+ monthAndYear: 'jMMMM jYYYY',
86
+ monthAndDate: 'jD jMMMM',
74
87
  fullTime: 'LT',
75
88
  fullTime12h: 'hh:mm A',
76
89
  fullTime24h: 'HH:mm',
77
- hours12h: 'hh',
78
- hours24h: 'HH',
79
- keyboardDate: 'jYYYY/jMM/jDD',
90
+ fullDateTime: 'jYYYY, jMMMM Do, hh:mm A',
91
+ fullDateTime12h: 'jD jMMMM hh:mm A',
92
+ fullDateTime24h: 'jD jMMMM HH:mm',
80
93
  keyboardDateTime: 'jYYYY/jMM/jDD LT',
81
94
  keyboardDateTime12h: 'jYYYY/jMM/jDD hh:mm A',
82
- keyboardDateTime24h: 'jYYYY/jMM/jDD HH:mm',
83
- minutes: 'mm',
84
- month: 'jMMMM',
85
- monthAndDate: 'jD jMMMM',
86
- monthAndYear: 'jMMMM jYYYY',
87
- monthShort: 'jMMM',
88
- weekday: 'dddd',
89
- weekdayShort: 'ddd',
90
- normalDate: 'dddd, jD jMMM',
91
- normalDateWithWeekday: 'DD MMMM',
92
- seconds: 'ss',
93
- shortDate: 'jD jMMM',
94
- year: 'jYYYY'
95
+ keyboardDateTime24h: 'jYYYY/jMM/jDD HH:mm'
95
96
  };
96
97
  const NUMBER_SYMBOL_MAP = {
97
98
  '1': '۱',
package/CHANGELOG.md CHANGED
@@ -3,6 +3,140 @@
3
3
  All notable changes to this project will be documented in this file.
4
4
  See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
5
5
 
6
+ ## 6.8.0
7
+
8
+ _Jun 16, 2023_
9
+
10
+ We'd like to offer a big thanks to the 13 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 🌍 Add Greek (el-GR) locale on Pickers and improve on Data Grid
13
+ - 🚅 Performance improvements
14
+ - 🐞 Bugfixes
15
+ - 📚 Documentation improvements
16
+
17
+ ### `@mui/x-data-grid@6.8.0` / `@mui/x-data-grid-pro@6.8.0` / `@mui/x-data-grid-premium@6.8.0`
18
+
19
+ #### Changes
20
+
21
+ - [DataGrid] Add missing styles to `overridesResolver` (#9248) @mrmuhammadali
22
+ - [DataGrid] Keep column header menu icon always visible on touch devices (#9076) @cherniavskii
23
+ - [DataGrid] Correct the type for single digit edited number value (#9282) @MBilalShafi
24
+ - [DataGrid] Correct the type for single digit edited number for row edit (#9348) @MBilalShafi
25
+ - [DataGrid] Filtering performance: cache values (#9284) @romgrk
26
+ - [DataGrid] Fix tabbing between `actions` cells in edit mode (#9321) @md250721
27
+ - [DataGrid] Make autocompletion work for `GridColDef['type']` (#9320) @cherniavskii
28
+ - [DataGrid] Polish shortcut logic (#9220) @oliviertassinari
29
+ - [DataGrid] Row reordering fix for different row heights (#7006) @yaredtsy
30
+ - [DataGrid] Scroll performance improvements (#9037) @romgrk
31
+ - [l10n] Improve Greek (el-GR) locale (#9292) @clytras
32
+
33
+ ### `@mui/x-date-pickers@6.8.0` / `@mui/x-date-pickers-pro@6.8.0`
34
+
35
+ #### Changes
36
+
37
+ - [l10n] Add Greek (el-GR) locale (#9293) @clytras
38
+ - [pickers] Add a `referenceDate` prop on `DateCalendar`, `MonthCalendar` and `YearCalendar` (#9260) @flaviendelangle
39
+ - [pickers] Close the calendar when a shortcut is selected (#9080) @flaviendelangle
40
+ - [pickers] Fix disabling for digital clock (#9300) @alexfauquette
41
+
42
+ ### Docs
43
+
44
+ - [docs] Add header filters to the popular features demo (#9069) @MBilalShafi
45
+ - [docs] Fix `Date Calendar` dynamic data demo (#9290) @benzler
46
+ - [docs] Fix Data Grid header filter link (#9225) @oliviertassinari
47
+ - [docs] Fix missing docs version warning (#9221) @oliviertassinari
48
+ - [docs] Improve Chart overview (#9333) @oliviertassinari
49
+ - [docs] Improve Next.js license installation guide (#8975) @oliviertassinari
50
+ - [docs] Link pagination documentation to the migration guide (#9296) @MBilalShafi
51
+ - [docs] One step toward components -> slots (#9251) @oliviertassinari
52
+ - [docs] Improve and reorganize sections on editing page (#8431) @joserodolfofreitas
53
+ - [docs] Add clipboard paste to popular features demo (#9029) @cherniavskii
54
+
55
+ ### Core
56
+
57
+ - [core] Polish event name (#9336) @oliviertassinari
58
+ - [core] Re-enable `Argos` CI step (#9301) @LukasTy
59
+ - [core] Upgrade Node.js to v18 on CircleCI, CodeSandbox and Netlify (#9319) @ZeeshanTamboli
60
+ - [core] Upgrade Node.js v18 for l10n GitHub CI (#9355) @ZeeshanTamboli
61
+ - [charts] Add demonstration pages based on Recharts demo (#9175) @alexfauquette
62
+ - [charts] Add legend (#9024) @alexfauquette
63
+ - [charts] Complete the docs to introduce charts (#9153) @alexfauquette
64
+ - [charts] Manage elements highlights (#9242) @alexfauquette
65
+ - [charts] Prefix subcomponents with `Charts` (#9314) @alexfauquette
66
+ - [license] Improve annual license expiration message (#9135) @oliviertassinari
67
+
68
+ ## 6.7.0
69
+
70
+ _Jun 9, 2023_
71
+
72
+ We'd like to offer a big thanks to the 12 contributors who made this release possible. Here are some highlights ✨:
73
+
74
+ - 🎁 Improve the default `format` prop value on the pickers.
75
+
76
+ Here are a few examples:
77
+
78
+ ```tsx
79
+ <TimePicker views={['hours', 'minutes', 'seconds']} ampm />
80
+ // Format before v6.7.0: `hh:mm aa`
81
+ // Format after v6.7.0: `hh:mm:ss aa`
82
+
83
+ <DatePicker views={['year']} />
84
+ // Format before v6.7.0: `MM/DD/YYYY`
85
+ // Format after v6.7.0: `YYYY`
86
+
87
+ <DateTimePicker views={['day', 'hours', 'minutes']} ampm />
88
+ // Format before v6.7.0: `MM/DD/YYYY hh:mm aa`
89
+ // Format after v6.7.0: `DD hh:mm aa`
90
+ ```
91
+
92
+ - 🌍 Add Romanian (ro-RO) locale on the pickers
93
+ - 🌍 Improve German (de-DE) locale on the pickers
94
+ - 🌍 Improve Czech (cs-CZ), German (de-DE) and Turkish (tr-TR) locales on the data grid
95
+ - 🚀 Performance improvements
96
+ - 🐞 Bugfixes
97
+ - 📚 Documentation improvements
98
+
99
+ ### `@mui/x-data-grid@v6.7.0` / `@mui/x-data-grid-pro@v6.7.0` / `@mui/x-data-grid-premium@v6.7.0`
100
+
101
+ #### Changes
102
+
103
+ - [DataGrid] Allow overflowing grid root element (#9179) @cherniavskii
104
+ - [DataGrid] Fix module augmentation error when using `@mui/lab` (#9235) @cherniavskii
105
+ - [DataGrid] Fix row with ids matching `Object` prototype (#9265) @romgrk
106
+ - [DataGrid] Fix `sortModel` and `filterModel` resetting when columns change (#9239) @alexgonch
107
+ - [DataGrid] Improve grouping performance for large datasets (#9200) @romgrk
108
+ - [DataGrid] Increase threshold to trigger memory leak warning (#9263) @m4theushw
109
+ - [DataGrid] Update data grid migration guide to include updated type (#9272) @MBilalShafi
110
+ - [DataGridPro] Improve header filter menu visuals (#9181) @MBilalShafi
111
+ - [DataGridPremium] Remove last line break on clipboard paste (#9163) @cherniavskii
112
+ - [l10n] Improve Czech (cs-CZ) locale (#9266) @MartinSkarpa
113
+ - [l10n] Improve German (de-DE) locale (#9259) @ximex
114
+ - [l10n] Improve Turkish (tr-TR) locale (#9237) @MCErtan
115
+
116
+ ### `@mui/x-date-pickers@v6.7.0` / `@mui/x-date-pickers-pro@v6.7.0`
117
+
118
+ #### Changes
119
+
120
+ - [l10n] Add Romanian (ro-RO) locale (#9257) @ximex
121
+ - [l10n] Improve German (de-DE) locale (#9258) @ximex
122
+ - [pickers] Apply dynamic default format depending on views for all desktop and mobile pickers (#9126) @flaviendelangle
123
+ - [pickers] Update `DateRangePickerDay` props JSDoc (#9191) @stevus
124
+
125
+ ### Docs
126
+
127
+ - [docs] Fix missing props on the `GridFilterPanel` API page (#9180) @cherniavskii
128
+ - [docs] Fix overview page typo (#9230) @LukasTy
129
+ - [docs] Fix version redirect (#9273) @alexfauquette
130
+
131
+ ### Core
132
+
133
+ - [core] Temporarily remove the Argos upload on the regression testing (#9267) @flaviendelangle
134
+ - [charts] Add clip-path to avoid charts overflow (#9012) @alexfauquette
135
+ - [charts] Add style customization on bar (#8935) @alexfauquette
136
+ - [charts] Enforce axis `min`/`max` over the `nice()` method (#9189) @alexfauquette
137
+ - [charts] Improve axis label and ticks label alignements (#9190) @alexfauquette
138
+ - [charts] Simplify the switch between responsive and fix dimensions (#9151) @alexfauquette
139
+
6
140
  ## 6.6.0
7
141
 
8
142
  _Jun 1, 2023_
@@ -11,7 +145,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
11
145
 
12
146
  - 🚀 New date time picking UI on [`DesktopDateTimePicker`](https://mui.com/x/react-date-pickers/date-time-picker/)
13
147
 
14
- <img src="https://user-images.githubusercontent.com/4941090/242533399-2b106390-8158-4aba-9ca4-b621c6310977.gif" width="628" />
148
+ <img src="https://github.com/mui/mui-x/assets/3165635/4e1fe9f9-03eb-4f23-99dd-80212b21fb23" width="840" height="506" />
15
149
 
16
150
  - 🚀 Performance improvements
17
151
  - 🐞 Bugfixes
@@ -79,7 +213,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
79
213
  - [charts] Manage series stacking (#8888) @alexfauquette
80
214
  - [license] List side effects in the license package (#9092) @cherniavskii
81
215
 
82
- ## v6.5.0
216
+ ## 6.5.0
83
217
 
84
218
  _May 19, 2023_
85
219
 
@@ -87,9 +221,9 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
87
221
 
88
222
  - 💫 Introduce filtering on column headers for `DataGridPro` and `DataGridPremium`:
89
223
 
90
- https://github.com/mui/mui-x/assets/12609561/c4c2bfec-59cf-4cab-932d-dc1983081de9
224
+ <img src="https://github.com/mui/mui-x/releases/download/v6.5.0/recording.gif" width="840" height="506" />
91
225
 
92
- See [the documentation](https://mui.com/x/react-data-grid/filtering/#header-filters) for more information
226
+ See [the documentation](https://mui.com/x/react-data-grid/filtering/header-filters/) for more information
93
227
 
94
228
  - 🌍 Improve Hebrew (he-IL) and Czech (cs-CZ) locales
95
229
  - 📝 Support for editing on pinned rows
@@ -135,7 +269,7 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
135
269
  - [DataGrid] Memoize root props for better performance (#8942) @romgrk
136
270
  - [test] Skip flaky unit tests in JSDOM (#8994) @cherniavskii
137
271
 
138
- ## v6.4.0
272
+ ## 6.4.0
139
273
 
140
274
  _May 12, 2023_
141
275
 
@@ -4168,7 +4302,7 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
4168
4302
  - [docs] Revise and split up "Overview" page into "Introduction" (#4692) @samuelsycamore
4169
4303
  - [docs] Use `useKeepGroupedColumnsHiddren` from the grid package on remaining demo (#5382) @flaviendelangle
4170
4304
 
4171
- ## v5.12.3
4305
+ ## 5.12.3
4172
4306
 
4173
4307
  _Jun 23, 2022_
4174
4308
 
@@ -4219,7 +4353,7 @@ We'd like to offer a big thanks to the 8 contributors who made this release poss
4219
4353
  - [test] Throw if date adapter is not found (#5289) @cherniavskii
4220
4354
  - [test] Use mock for `ResizeObserver` (#5215) @m4theushw
4221
4355
 
4222
- ## v5.12.2
4356
+ ## 5.12.2
4223
4357
 
4224
4358
  _Jun 16, 2022_
4225
4359
 
@@ -4262,7 +4396,7 @@ We'd like to offer a big thanks to the 7 contributors who made this release poss
4262
4396
  - [core] Fix `GridColTypeDef` usage in demo (#5197) @cherniavskii
4263
4397
  - [test] Add `waitFor` before asserting height (#5203) @m4theushw
4264
4398
 
4265
- ## v5.12.1
4399
+ ## 5.12.1
4266
4400
 
4267
4401
  _Jun 9, 2022_
4268
4402
 
@@ -4319,7 +4453,7 @@ We'd like to offer a big thanks to the 10 contributors who made this release pos
4319
4453
  - [test] Fix dynamic row height test failing on Chrome (#5147) @m4theushw
4320
4454
  - [test] Remove delay on server demo for regression tests (#5131) @alexfauquette
4321
4455
 
4322
- ## v5.12.0
4456
+ ## 5.12.0
4323
4457
 
4324
4458
  _May 31, 2022_
4325
4459
 
@@ -4400,7 +4534,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
4400
4534
  - [test] Skip Safari and Firefox on broken tests (#4994) @alexfauquette
4401
4535
  - [test] Make argos screenshots stable (#5061) @m4theushw
4402
4536
 
4403
- ## v5.11.1
4537
+ ## 5.11.1
4404
4538
 
4405
4539
  _May 20, 2022_
4406
4540
 
@@ -4492,7 +4626,7 @@ We'd like to offer a big thanks to the 6 contributors who made this release poss
4492
4626
  - [core] Simplify rows cache management (#4933) @flaviendelangle
4493
4627
  - [core] Use internal icons for quick filter (#4912) @alexfauquette
4494
4628
 
4495
- ## v5.11.0
4629
+ ## 5.11.0
4496
4630
 
4497
4631
  _May 13, 2022_
4498
4632
 
@@ -4636,7 +4770,7 @@ We'd like to offer a big thanks to the 15 contributors who made this release pos
4636
4770
  - [test] Reset cleanup tracking on Karma tests (#4679) @m4theushw
4637
4771
  - [test] Restore `sinon` sandbox after each `karma` test (#4689) @m4theushw
4638
4772
 
4639
- ## v5.10.0
4773
+ ## 5.10.0
4640
4774
 
4641
4775
  _Apr 25, 2022_
4642
4776
 
@@ -4672,7 +4806,7 @@ We'd like to offer a big thanks to the 6 contributors who made this release poss
4672
4806
  - [core] Fix the README of the X packages (#4590) @flaviendelangle
4673
4807
  - [test] Fix test to not depend on screen resolution (#4587) @m4theushw
4674
4808
 
4675
- ## v5.9.0
4809
+ ## 5.9.0
4676
4810
 
4677
4811
  _Apr 14, 2022_
4678
4812