@mui/x-date-pickers-pro 6.0.0-alpha.12 → 6.0.0-alpha.14

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 (208) hide show
  1. package/CHANGELOG.md +266 -0
  2. package/DateRangeCalendar/DateRangeCalendar.js +10 -4
  3. package/DateRangeCalendar/DateRangeCalendar.types.d.ts +37 -37
  4. package/DateRangePicker/DateRangePicker.js +5 -10
  5. package/DateRangePicker/DateRangePickerToolbar.d.ts +2 -1
  6. package/DateRangePicker/DateRangePickerToolbar.js +35 -4
  7. package/DateRangePicker/DateRangePickerView.d.ts +3 -3
  8. package/DateRangePicker/DateRangePickerView.js +6 -3
  9. package/DateRangePicker/DateRangePickerViewMobile.js +1 -1
  10. package/DateRangePicker/index.d.ts +4 -2
  11. package/DateRangePicker/index.js +2 -1
  12. package/DateRangePickerDay/DateRangePickerDay.js +72 -1
  13. package/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +5 -0
  14. package/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -10
  15. package/DesktopNextDateRangePicker/DesktopNextDateRangePicker.js +28 -14
  16. package/DesktopNextDateRangePicker/DesktopNextDateRangePicker.types.d.ts +1 -1
  17. package/MobileDateRangePicker/MobileDateRangePicker.d.ts +5 -0
  18. package/MobileDateRangePicker/MobileDateRangePicker.js +5 -10
  19. package/MobileNextDateRangePicker/MobileNextDateRangePicker.js +28 -14
  20. package/MobileNextDateRangePicker/MobileNextDateRangePicker.types.d.ts +1 -1
  21. package/MultiInputDateRangeField/MultiInputDateRangeField.js +63 -30
  22. package/MultiInputDateRangeField/MultiInputDateRangeField.types.d.ts +10 -8
  23. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +62 -27
  24. package/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.types.d.ts +11 -9
  25. package/MultiInputTimeRangeField/MultiInputTimeRangeField.js +62 -27
  26. package/MultiInputTimeRangeField/MultiInputTimeRangeField.types.d.ts +10 -8
  27. package/NextDateRangePicker/NextDateRangePicker.js +22 -8
  28. package/NextDateRangePicker/shared.d.ts +9 -2
  29. package/SingleInputDateRangeField/SingleInputDateRangeField.js +121 -16
  30. package/SingleInputDateRangeField/SingleInputDateRangeField.types.d.ts +8 -6
  31. package/SingleInputDateRangeField/useSingleInputDateRangeField.js +1 -1
  32. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.d.ts +7 -0
  33. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +289 -0
  34. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.d.ts +36 -0
  35. package/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.js +1 -0
  36. package/SingleInputDateTimeRangeField/index.d.ts +3 -0
  37. package/SingleInputDateTimeRangeField/index.js +2 -0
  38. package/SingleInputDateTimeRangeField/package.json +6 -0
  39. package/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.d.ts +3 -0
  40. package/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.js +78 -0
  41. package/SingleInputTimeRangeField/SingleInputTimeRangeField.d.ts +7 -0
  42. package/SingleInputTimeRangeField/SingleInputTimeRangeField.js +265 -0
  43. package/SingleInputTimeRangeField/SingleInputTimeRangeField.types.d.ts +36 -0
  44. package/SingleInputTimeRangeField/SingleInputTimeRangeField.types.js +1 -0
  45. package/SingleInputTimeRangeField/index.d.ts +3 -0
  46. package/SingleInputTimeRangeField/index.js +2 -0
  47. package/SingleInputTimeRangeField/package.json +6 -0
  48. package/SingleInputTimeRangeField/useSingleInputTimeRangeField.d.ts +3 -0
  49. package/SingleInputTimeRangeField/useSingleInputTimeRangeField.js +64 -0
  50. package/StaticDateRangePicker/StaticDateRangePicker.js +5 -10
  51. package/StaticNextDateRangePicker/StaticNextDateRangePicker.js +23 -9
  52. package/StaticNextDateRangePicker/StaticNextDateRangePicker.types.d.ts +1 -1
  53. package/dateRangeViewRenderers/dateRangeViewRenderers.d.ts +13 -0
  54. package/{internal/utils/viewRenderers.js → dateRangeViewRenderers/dateRangeViewRenderers.js} +3 -4
  55. package/dateRangeViewRenderers/index.d.ts +2 -0
  56. package/dateRangeViewRenderers/index.js +1 -0
  57. package/dateRangeViewRenderers/package.json +6 -0
  58. package/index.d.ts +3 -0
  59. package/index.js +8 -3
  60. package/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts +1 -1
  61. package/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.js +11 -10
  62. package/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.types.d.ts +16 -10
  63. package/internal/hooks/useMobileRangePicker/useMobileRangePicker.d.ts +1 -1
  64. package/internal/hooks/useMobileRangePicker/useMobileRangePicker.js +11 -10
  65. package/internal/hooks/useMobileRangePicker/useMobileRangePicker.types.d.ts +15 -10
  66. package/internal/hooks/useMultiInputRangeField/useMultiInputDateRangeField.d.ts +1 -1
  67. package/internal/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +11 -5
  68. package/internal/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.d.ts +1 -1
  69. package/internal/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +11 -5
  70. package/internal/hooks/useMultiInputRangeField/useMultiInputRangeField.types.d.ts +2 -0
  71. package/internal/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.d.ts +1 -1
  72. package/internal/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.js +12 -8
  73. package/internal/hooks/useRangePickerInputProps.d.ts +4 -6
  74. package/internal/hooks/useRangePickerInputProps.js +5 -6
  75. package/internal/hooks/useStaticRangePicker/useStaticRangePicker.d.ts +1 -1
  76. package/internal/hooks/useStaticRangePicker/useStaticRangePicker.js +7 -6
  77. package/internal/hooks/useStaticRangePicker/useStaticRangePicker.types.d.ts +7 -6
  78. package/internal/models/dateRange.d.ts +11 -1
  79. package/internal/models/dateTimeRange.d.ts +2 -2
  80. package/internal/models/fields.d.ts +2 -2
  81. package/internal/models/timeRange.d.ts +2 -1
  82. package/internal/utils/date-fields-utils.d.ts +17 -1
  83. package/internal/utils/releaseInfo.js +1 -1
  84. package/internal/utils/valueManagers.js +15 -21
  85. package/legacy/DateRangeCalendar/DateRangeCalendar.js +10 -4
  86. package/legacy/DateRangePicker/DateRangePicker.js +5 -10
  87. package/legacy/DateRangePicker/DateRangePickerToolbar.js +35 -4
  88. package/legacy/DateRangePicker/DateRangePickerView.js +7 -2
  89. package/legacy/DateRangePicker/DateRangePickerViewMobile.js +1 -1
  90. package/legacy/DateRangePicker/index.js +2 -1
  91. package/legacy/DateRangePickerDay/DateRangePickerDay.js +72 -1
  92. package/legacy/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -10
  93. package/legacy/DesktopNextDateRangePicker/DesktopNextDateRangePicker.js +28 -14
  94. package/legacy/MobileDateRangePicker/MobileDateRangePicker.js +5 -10
  95. package/legacy/MobileNextDateRangePicker/MobileNextDateRangePicker.js +28 -14
  96. package/legacy/MultiInputDateRangeField/MultiInputDateRangeField.js +61 -28
  97. package/legacy/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +60 -25
  98. package/legacy/MultiInputTimeRangeField/MultiInputTimeRangeField.js +60 -25
  99. package/legacy/NextDateRangePicker/NextDateRangePicker.js +22 -8
  100. package/legacy/SingleInputDateRangeField/SingleInputDateRangeField.js +120 -15
  101. package/legacy/SingleInputDateRangeField/useSingleInputDateRangeField.js +1 -1
  102. package/legacy/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +285 -0
  103. package/legacy/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.js +1 -0
  104. package/legacy/SingleInputDateTimeRangeField/index.js +2 -0
  105. package/legacy/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.js +77 -0
  106. package/legacy/SingleInputTimeRangeField/SingleInputTimeRangeField.js +261 -0
  107. package/legacy/SingleInputTimeRangeField/SingleInputTimeRangeField.types.js +1 -0
  108. package/legacy/SingleInputTimeRangeField/index.js +2 -0
  109. package/legacy/SingleInputTimeRangeField/useSingleInputTimeRangeField.js +61 -0
  110. package/legacy/StaticDateRangePicker/StaticDateRangePicker.js +5 -10
  111. package/legacy/StaticNextDateRangePicker/StaticNextDateRangePicker.js +23 -9
  112. package/legacy/{internal/utils/viewRenderers.js → dateRangeViewRenderers/dateRangeViewRenderers.js} +3 -4
  113. package/legacy/dateRangeViewRenderers/index.js +1 -0
  114. package/legacy/index.js +8 -3
  115. package/legacy/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.js +11 -10
  116. package/legacy/internal/hooks/useMobileRangePicker/useMobileRangePicker.js +11 -10
  117. package/legacy/internal/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +11 -5
  118. package/legacy/internal/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +11 -5
  119. package/legacy/internal/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.js +12 -8
  120. package/legacy/internal/hooks/useRangePickerInputProps.js +5 -6
  121. package/legacy/internal/hooks/useStaticRangePicker/useStaticRangePicker.js +7 -6
  122. package/legacy/internal/utils/releaseInfo.js +1 -1
  123. package/legacy/internal/utils/valueManagers.js +15 -23
  124. package/legacy/tests/describeRangeValidation/testTextFieldRangeValidation.js +1 -1
  125. package/modern/DateRangeCalendar/DateRangeCalendar.js +10 -4
  126. package/modern/DateRangePicker/DateRangePicker.js +5 -10
  127. package/modern/DateRangePicker/DateRangePickerToolbar.js +35 -4
  128. package/modern/DateRangePicker/DateRangePickerView.js +6 -3
  129. package/modern/DateRangePicker/DateRangePickerViewMobile.js +1 -1
  130. package/modern/DateRangePicker/index.js +2 -1
  131. package/modern/DateRangePickerDay/DateRangePickerDay.js +72 -1
  132. package/modern/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -10
  133. package/modern/DesktopNextDateRangePicker/DesktopNextDateRangePicker.js +28 -14
  134. package/modern/MobileDateRangePicker/MobileDateRangePicker.js +5 -10
  135. package/modern/MobileNextDateRangePicker/MobileNextDateRangePicker.js +28 -14
  136. package/modern/MultiInputDateRangeField/MultiInputDateRangeField.js +62 -29
  137. package/modern/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +61 -26
  138. package/modern/MultiInputTimeRangeField/MultiInputTimeRangeField.js +61 -26
  139. package/modern/NextDateRangePicker/NextDateRangePicker.js +22 -8
  140. package/modern/SingleInputDateRangeField/SingleInputDateRangeField.js +120 -15
  141. package/modern/SingleInputDateRangeField/useSingleInputDateRangeField.js +1 -1
  142. package/modern/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +288 -0
  143. package/modern/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.js +1 -0
  144. package/modern/SingleInputDateTimeRangeField/index.js +2 -0
  145. package/modern/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.js +77 -0
  146. package/modern/SingleInputTimeRangeField/SingleInputTimeRangeField.js +264 -0
  147. package/modern/SingleInputTimeRangeField/SingleInputTimeRangeField.types.js +1 -0
  148. package/modern/SingleInputTimeRangeField/index.js +2 -0
  149. package/modern/SingleInputTimeRangeField/useSingleInputTimeRangeField.js +63 -0
  150. package/modern/StaticDateRangePicker/StaticDateRangePicker.js +5 -10
  151. package/modern/StaticNextDateRangePicker/StaticNextDateRangePicker.js +23 -9
  152. package/modern/{internal/utils/viewRenderers.js → dateRangeViewRenderers/dateRangeViewRenderers.js} +3 -4
  153. package/modern/dateRangeViewRenderers/index.js +1 -0
  154. package/modern/index.js +8 -3
  155. package/modern/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.js +10 -10
  156. package/modern/internal/hooks/useMobileRangePicker/useMobileRangePicker.js +10 -10
  157. package/modern/internal/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +11 -5
  158. package/modern/internal/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +11 -5
  159. package/modern/internal/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.js +12 -8
  160. package/modern/internal/hooks/useRangePickerInputProps.js +5 -6
  161. package/modern/internal/hooks/useStaticRangePicker/useStaticRangePicker.js +6 -6
  162. package/modern/internal/utils/releaseInfo.js +1 -1
  163. package/modern/internal/utils/valueManagers.js +15 -21
  164. package/modern/tests/describeRangeValidation/testTextFieldRangeValidation.js +1 -1
  165. package/node/DateRangeCalendar/DateRangeCalendar.js +10 -4
  166. package/node/DateRangePicker/DateRangePicker.js +5 -10
  167. package/node/DateRangePicker/DateRangePickerToolbar.js +33 -3
  168. package/node/DateRangePicker/DateRangePickerView.js +6 -3
  169. package/node/DateRangePicker/DateRangePickerViewMobile.js +1 -1
  170. package/node/DateRangePicker/index.js +8 -1
  171. package/node/DateRangePickerDay/DateRangePickerDay.js +72 -1
  172. package/node/DesktopDateRangePicker/DesktopDateRangePicker.js +5 -10
  173. package/node/DesktopNextDateRangePicker/DesktopNextDateRangePicker.js +28 -14
  174. package/node/MobileDateRangePicker/MobileDateRangePicker.js +5 -10
  175. package/node/MobileNextDateRangePicker/MobileNextDateRangePicker.js +28 -14
  176. package/node/MultiInputDateRangeField/MultiInputDateRangeField.js +61 -28
  177. package/node/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +60 -25
  178. package/node/MultiInputTimeRangeField/MultiInputTimeRangeField.js +60 -25
  179. package/node/NextDateRangePicker/NextDateRangePicker.js +22 -8
  180. package/node/SingleInputDateRangeField/SingleInputDateRangeField.js +119 -14
  181. package/node/SingleInputDateRangeField/useSingleInputDateRangeField.js +1 -1
  182. package/node/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +297 -0
  183. package/node/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.js +5 -0
  184. package/node/SingleInputDateTimeRangeField/index.js +19 -0
  185. package/node/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.js +86 -0
  186. package/node/SingleInputTimeRangeField/SingleInputTimeRangeField.js +273 -0
  187. package/node/SingleInputTimeRangeField/SingleInputTimeRangeField.types.js +5 -0
  188. package/node/SingleInputTimeRangeField/index.js +19 -0
  189. package/node/SingleInputTimeRangeField/useSingleInputTimeRangeField.js +72 -0
  190. package/node/StaticDateRangePicker/StaticDateRangePicker.js +5 -10
  191. package/node/StaticNextDateRangePicker/StaticNextDateRangePicker.js +23 -9
  192. package/node/{internal/utils/viewRenderers.js → dateRangeViewRenderers/dateRangeViewRenderers.js} +4 -4
  193. package/node/dateRangeViewRenderers/index.js +12 -0
  194. package/node/index.js +38 -2
  195. package/node/internal/hooks/useDesktopRangePicker/useDesktopRangePicker.js +9 -9
  196. package/node/internal/hooks/useMobileRangePicker/useMobileRangePicker.js +9 -9
  197. package/node/internal/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +11 -5
  198. package/node/internal/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +11 -5
  199. package/node/internal/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.js +12 -8
  200. package/node/internal/hooks/useRangePickerInputProps.js +5 -6
  201. package/node/internal/hooks/useStaticRangePicker/useStaticRangePicker.js +5 -5
  202. package/node/internal/utils/releaseInfo.js +1 -1
  203. package/node/internal/utils/valueManagers.js +14 -20
  204. package/node/tests/describeRangeValidation/testTextFieldRangeValidation.js +1 -1
  205. package/package.json +6 -6
  206. package/tests/describeRangeValidation/testTextFieldRangeValidation.js +1 -1
  207. package/themeAugmentation/components.d.ts +1 -16
  208. package/internal/utils/viewRenderers.d.ts +0 -7
package/CHANGELOG.md CHANGED
@@ -3,6 +3,217 @@
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.0.0-alpha.14
7
+
8
+ _Jan 5, 2023_
9
+
10
+ We'd like to offer a big thanks to the 8 contributors who made this release possible. Here are some highlights ✨:
11
+
12
+ - 📆 Add `SingleInputTimeRangeField` and `SingleInputDateTimeRangeField` components (#7186) @alexfauquette
13
+ - 🚀 Use grid for modifying pickers layout (#6900) @alexfauquette
14
+ - ✨ Improve field components editing experience (#7272) @flaviendelangle
15
+ - 💻 Multiple codemods
16
+ - 📚 Many documentation improvements
17
+ - 🐞 Bugfixes
18
+
19
+ ### `@mui/x-data-grid@v6.0.0-alpha.14` / `@mui/x-data-grid-pro@v6.0.0-alpha.14` / `@mui/x-data-grid-premium@v6.0.0-alpha.14`
20
+
21
+ #### Breaking changes
22
+
23
+ - [DataGrid] Set default `GridCellParams['value']` type to `unknown` (#6959) @cherniavskii
24
+
25
+ The default type of `GridCellParams['value']` was changed from `any` to `unknown`.
26
+
27
+ #### Changes
28
+
29
+ - [DataGrid] Fix flickering on mount (#7205) @cherniavskii
30
+ - [DataGrid] Fix selected text in cell input not being copied in Firefox (#6593) @cherniavskii
31
+ - [DataGrid] Invert generic parameters order (#6874) @DanailH
32
+ - [DataGrid] Remove legacy logic for `singleSelect` inside `GridFilterInputValue` (#7386) @m4theushw
33
+ - [DataGrid] Remove remaining props from legacy editing API (#7381) @m4theushw
34
+ - [DataGrid] Set default `GridCellParams['value']` type to `unknown` (#6959) @cherniavskii
35
+
36
+ ### `@mui/x-date-pickers@v6.0.0-alpha.14` / `@mui/x-date-pickers-pro@v6.0.0-alpha.14`
37
+
38
+ #### Breaking changes
39
+
40
+ - [fields] Rename the `input` slot of the fields to `textField` to avoid confusion (#7369) @flaviendelangle
41
+
42
+ #### Changes
43
+
44
+ - [fields] Add `SingleInputTimeRangeField` and `SingleInputDateTimeRangeField` components (#7186) @alexfauquette
45
+ - [fields] Improve editing (automatic section switch, allow letter editing in digit section, allow numeric editing in letter section) (#7272) @flaviendelangle
46
+ - [fields] Rename the `input` slot of the fields to `textField` to avoid confusion (#7369) @flaviendelangle
47
+ - [fields] Prevent date change on `TimeField` arrow edition (#7383) @flaviendelangle
48
+ - [pickers] Clean some JSDoc descriptions (#7384) @flaviendelangle
49
+ - [pickers] Remove redundant `variants` in theme augmentation (#7356) @LukasTy
50
+ - [pickers] Remove the `PaperContent` slot from the new pickers (#7342) @flaviendelangle
51
+ - [pickers] Use grid for modifying the layout (#6900) @alexfauquette
52
+
53
+ ### `@mui/x-codemod@v6.0.0-alpha.14`
54
+
55
+ #### Changes
56
+
57
+ - [codemod] Add new codemod for adapter import (#7348) @flaviendelangle
58
+ - [codemod] Add new codemod for the value prop renaming on the view components (#7338) @flaviendelangle
59
+ - [codemod] Reorganize codemods and add rename column menu components codemod (#7368) @MBilalShafi
60
+
61
+ ### Docs
62
+
63
+ - [docs] Add example to add back the mobile keyboard view (#7347) @flaviendelangle
64
+ - [docs] Cleanup the doc pages of the community pickers (#7339) @flaviendelangle
65
+ - [docs] Drop security fixes support for v4 (#7322) @oliviertassinari
66
+ - [docs] Fix `disablePast` and `disableFuture` definition swap (#7324) @alexfauquette
67
+ - [docs] Hide ad for paid docs pages (#7321) @oliviertassinari
68
+ - [docs] New page for `TimeClock` (#7280) @flaviendelangle
69
+ - [docs] Note the pickers breaking changes supported by the codemod (#7337) @flaviendelangle
70
+ - [docs] Redirect translated pages (#7341) @cherniavskii
71
+ - [docs] Reorganize v6 pickers migration guide (#7257) @flaviendelangle
72
+
73
+ ### Core
74
+
75
+ - [core] Apply eslint rule for React component @oliviertassinari
76
+ - [core] Apply title capitalization convention @oliviertassinari
77
+ - [core] Fix the product license reference name (#7367) @oliviertassinari
78
+ - [core] Order the slots alphabetically in the JSON files (#7349) @flaviendelangle
79
+ - [core] Remove blanklines in `_redirects` @oliviertassinari
80
+ - [core] Remove dead prettier config @oliviertassinari
81
+ - [core] Sync back with the mono repo (#7351) @oliviertassinari
82
+ - [core] Sync monorepo, fix layout scrollbar @oliviertassinari
83
+ - [core] Upgrade monorepo (#7307) @LukasTy
84
+
85
+ ## 6.0.0-alpha.13
86
+
87
+ _Dec 24, 2022_
88
+
89
+ We'd like to offer a big thanks to the 10 contributors who made this release possible. Here are some highlights ✨:
90
+
91
+ - 🚀 New column menu design and API
92
+ - 🌍 Improve Russian (ru-RU) and Korean (ko-KR) locales
93
+ - 📚 Documentation improvements
94
+ - 🐞 Bugfixes
95
+
96
+ ### `@mui/x-data-grid@6.0.0-alpha.13` / `@mui/x-data-grid-pro@6.0.0-alpha.13` / `@mui/x-data-grid-premium@6.0.0-alpha.13`
97
+
98
+ #### Breaking changes
99
+
100
+ - New column menu design and API (#6619) MBilalShafi
101
+
102
+ The `currentColumn` prop passed to `components.ColumnMenu` was renamed to `colDef`.
103
+ The `column` prop passed to the items of the column menu was renamed to `colDef`.
104
+ The `DATA_GRID_DEFAULT_SLOTS_COMPONENTS` export has been removed.
105
+ The following components and interfaces were been renamed for consistency:
106
+
107
+ **Community Package:**
108
+
109
+ ```diff
110
+ -<GridFilterMenuItem />
111
+ +<GridColumnMenuFilterItem />
112
+ ```
113
+
114
+ ```diff
115
+ -<HideGridColMenuItem />
116
+ +<GridColumnMenuHideItem />
117
+ ```
118
+
119
+ ```diff
120
+ -<GridColumnsMenuItem />
121
+ +<GridColumnMenuColumnsItem />
122
+ ```
123
+
124
+ ```diff
125
+ -<SortGridMenuItems />
126
+ +<GridColumnMenuSortItem />
127
+ ```
128
+
129
+ ```diff
130
+ -interface GridFilterItemProps
131
+ +interface GridColumnMenuItemProps
132
+ ```
133
+
134
+ **Pro package:**
135
+
136
+ ```diff
137
+ -<GridColumnPinningMenuItems />
138
+ +<GridColumnMenuPinningItem />
139
+ ```
140
+
141
+ **Premium package:**
142
+
143
+ ```diff
144
+ -<GridAggregationColumnMenuItem />
145
+ +<GridColumnMenuAggregationItem />
146
+ ```
147
+
148
+ ```diff
149
+ -<GridRowGroupingColumnMenuItems />
150
+ -<GridRowGroupableColumnMenuItems />
151
+ +<GridColumnMenuGroupingItem />
152
+ ```
153
+
154
+ - Improve column definition typing (#7224) @cherniavskii
155
+
156
+ The `GridColumns` type was removed. Use `GridColDef[]` instead.
157
+ The `GridActionsColDef` interface was removed. Use `GridColDef` instead.
158
+ The `GridEnrichedColDef` type was removed. Use `GridColDef` instead.
159
+ The `GridStateColDef` type was removed.
160
+
161
+ If you use it to type `searchPredicate`, use `GridColumnsPanelProps['searchPredicate']` instead.
162
+ If you use it to type `getApplyFilterFn`, `GridFilterOperator['getApplyFilterFn']` can be used as replacement.
163
+
164
+ - Remove GridDensityType enum (#7304) @cherniavskii
165
+
166
+ The `GridDensityTypes` enum was removed. Use `GridDensity` type instead.
167
+
168
+ #### Changes
169
+
170
+ - [DataGrid] Allow disabling of buttons in column panel (#6947) @MBilalShafi
171
+ - [DataGrid] Improve column definition typing (#7224) @cherniavskii
172
+ - [DataGrid] Improve column menu design and API (#6619) @MBilalShafi
173
+ - [DataGrid] Remove `GridDensityType` enum (#7304) @cherniavskii
174
+ - [DataGrid] Remove `rowHeight` and `headerHeight` from state (#7199) @DanailH
175
+ - [DataGrid] Remove column separator to match table styles (#7067) @MBilalShafi
176
+ - [DataGrid] Update Russian (ru-RU) locale (#7220) @VeceluXa
177
+ - [DataGridPro] Use row ID as `key` of the detail panels (#7302) @m4theushw
178
+ - [DataGridPremium] Fix `exceljs` import with parcel (#7284) @alexfauquette
179
+
180
+ ### `@mui/x-date-pickers@6.0.0-alpha.13` / `@mui/x-date-pickers-pro@6.0.0-alpha.13`
181
+
182
+ #### Breaking changes
183
+
184
+ - Require Luxon 3.0.2 or higher (#7249) @flaviendelangle
185
+
186
+ `AdapterLuxon` now requires `luxon` in version `3.0.2` or higher in order to work.
187
+
188
+ Take a look at the [Upgrading Luxon](https://moment.github.io/luxon/#/upgrading) guide if you are using an older version.
189
+
190
+ #### Changes
191
+
192
+ - [DateRangePicker] Fix to propagate `disabled` and `readOnly` on multi input picker (#7135) @LukasTy
193
+ - [fields] Fix multi input fields root element props order and types (#7225) @LukasTy
194
+ - [fields] Support escaped characters (#7184) @flaviendelangle
195
+ - [pickers] Allow to define custom view renderers on the pickers (#7176) @flaviendelangle
196
+ - [pickers] Avoid running validation methods several times in `DateCalendar` (#7247) @flaviendelangle
197
+ - [pickers] Improve Korean (ko-KR) locale (#7266) @hanbin9775
198
+ - [pickers] Require Luxon 3.0.2 or higher (#7249) @flaviendelangle
199
+ - [pickers] Rework view internals (#7097) @flaviendelangle
200
+
201
+ ### `@mui/x-codemod@6.0.0-alpha.13`
202
+
203
+ #### Changes
204
+
205
+ - [codemod] New codemod for view component renaming (#7264) @flaviendelangle
206
+
207
+ ### Docs
208
+
209
+ - [docs] Fix some selectors not being documented (#7218) @cherniavskii
210
+ - [docs] New page for `DateCalendar` (#7053) @flaviendelangle
211
+ - [docs] Split selection docs (#7213) @m4theushw
212
+
213
+ ### Core
214
+
215
+ - [core] Fix API demos callout spacing @oliviertassinari
216
+
6
217
  ## 6.0.0-alpha.12
7
218
 
8
219
  _Dec 16, 2022_
@@ -1375,6 +1586,61 @@ You can find more information about the new api, including how to set those tran
1375
1586
  - [test] Skip tests for column pinning and dynamic row height (#5997) @m4theushw
1376
1587
  - [website] Improve security header @oliviertassinari
1377
1588
 
1589
+ ## 5.17.18
1590
+
1591
+ _Jan 5, 2023_
1592
+
1593
+ We'd like to offer a big thanks to the 3 contributors who made this release possible. Here are some highlights ✨:
1594
+
1595
+ - 🐞 Bugfixes
1596
+
1597
+ ### `@mui/x-data-grid@v5.17.18` / `@mui/x-data-grid-pro@v5.17.18` / `@mui/x-data-grid-premium@v5.17.18`
1598
+
1599
+ #### Changes
1600
+
1601
+ - [DataGrid] Fix rows not rendering properly after height change (#7376) @cherniavskii
1602
+ - [DataGrid] Fix selected text in cell input not being copied in Firefox (#7330) @cherniavskii
1603
+ - [DataGridPremium] Export row grouping column menu components (#7308) @cherniavskii
1604
+
1605
+ ### `@mui/x-date-pickers@v5.0.13` / `@mui/x-date-pickers-pro@v5.0.13`
1606
+
1607
+ #### Changes
1608
+
1609
+ - [pickers] Fix the product license reference name (#7367)
1610
+
1611
+ ### Docs
1612
+
1613
+ - [docs] Redirect translated pages (#7370) @cherniavskii
1614
+
1615
+ ### Core
1616
+
1617
+ - [core] Fix release date (#7314) @DanailH
1618
+ - [core] Fix the product license reference name (#7367) @oliviertassinari
1619
+ - [core] Upgrade monorepo (#7344) @cherniavskii
1620
+
1621
+ ## 5.17.17
1622
+
1623
+ _Dec 24, 2022_
1624
+
1625
+ We'd like to offer a big thanks to the 4 contributors who made this release possible. Here are some highlights ✨:
1626
+
1627
+ - 🌍 Improve Russian (ru-RU) and Korean (ko-KR) locales
1628
+ - 🐞 Bugfixes
1629
+
1630
+ ### `@mui/x-data-grid@v5.17.17` / `@mui/x-data-grid-pro@v5.17.17` / `@mui/x-data-grid-premium@v5.17.17`
1631
+
1632
+ #### Changes
1633
+
1634
+ - [DataGrid] Update Russian (ru-RU) locale (#7291) @VeceluXa
1635
+ - [DataGridPro] Use row ID as `key` of the detail panels (#7311) @m4theushw
1636
+ - [DataGridPremium] Fix `exceljs` import with parcel (#7285) @alexfauquette
1637
+
1638
+ ### `@mui/x-date-pickers@v5.0.12` / `@mui/x-date-pickers-pro@v5.0.12`
1639
+
1640
+ #### Changes
1641
+
1642
+ - [pickers] Improve Korean (ko-KR) locale (#7283) @hanbin9775
1643
+
1378
1644
  ## 5.17.16
1379
1645
 
1380
1646
  _Dec 16, 2022_
@@ -383,7 +383,7 @@ const DateRangeCalendar = /*#__PURE__*/React.forwardRef(function DateRangeCalend
383
383
  className: classes.monthContainer,
384
384
  children: [calendars === 1 ? /*#__PURE__*/_jsx(PickersCalendarHeader, {
385
385
  views: ['day'],
386
- openView: 'day',
386
+ view: 'day',
387
387
  currentMonth: calendarState.currentMonth,
388
388
  onMonthChange: (newMonth, direction) => handleChangeMonth({
389
389
  newMonth,
@@ -438,6 +438,12 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
438
438
  // | These PropTypes are generated from the TypeScript type definitions |
439
439
  // | To update them edit the TypeScript types and run "yarn proptypes" |
440
440
  // ----------------------------------------------------------------------
441
+ /**
442
+ * If `true`, the main element is focused during the first mount.
443
+ * This main element is:
444
+ * - the element chosen by the visible view if any (i.e: the selected day on the `day` view).
445
+ * - the `input` element if there is a field rendered.
446
+ */
441
447
  autoFocus: PropTypes.bool,
442
448
  /**
443
449
  * The number of calendars to render.
@@ -488,7 +494,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
488
494
  */
489
495
  disableDragEditing: PropTypes.bool,
490
496
  /**
491
- * If `true` disable values before the current date for date components, time for time components and both for date time components.
497
+ * If `true`, disable values after the current date for date components, time for time components and both for date time components.
492
498
  * @default false
493
499
  */
494
500
  disableFuture: PropTypes.bool,
@@ -498,7 +504,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
498
504
  */
499
505
  disableHighlightToday: PropTypes.bool,
500
506
  /**
501
- * If `true` disable values after the current date for date components, time for time components and both for date time components.
507
+ * If `true`, disable values before the current date for date components, time for time components and both for date time components.
502
508
  * @default false
503
509
  */
504
510
  disablePast: PropTypes.bool,
@@ -513,7 +519,7 @@ process.env.NODE_ENV !== "production" ? DateRangeCalendar.propTypes = {
513
519
  */
514
520
  fixedWeekNumber: PropTypes.number,
515
521
  /**
516
- * If `true` renders `LoadingComponent` in calendar instead of calendar view.
522
+ * If `true`, calls `renderLoading` instead of rendering the day calendar.
517
523
  * Can be used to preload information and show it in calendar.
518
524
  * @default false
519
525
  */
@@ -2,7 +2,7 @@ import * as React from 'react';
2
2
  import { SxProps } from '@mui/system';
3
3
  import { SlotComponentProps } from '@mui/base';
4
4
  import { Theme } from '@mui/material/styles';
5
- import { BaseDateValidationProps, DefaultizedProps, ExportedDayCalendarProps, DayCalendarSlotsComponent, DayCalendarSlotsComponentsProps, PickersArrowSwitcherSlotsComponent, PickersArrowSwitcherSlotsComponentsProps, PickerSelectionState, PickersCalendarHeaderSlotsComponent, PickersCalendarHeaderSlotsComponentsProps, DayCalendarProps } from '@mui/x-date-pickers/internals';
5
+ import { BaseDateValidationProps, DefaultizedProps, ExportedDayCalendarProps, DayCalendarSlotsComponent, DayCalendarSlotsComponentsProps, PickersArrowSwitcherSlotsComponent, PickersArrowSwitcherSlotsComponentsProps, PickerSelectionState, PickersCalendarHeaderSlotsComponent, PickersCalendarHeaderSlotsComponentsProps, DayCalendarProps, ExportedUseViewsOptions } from '@mui/x-date-pickers/internals';
6
6
  import { DateRange, RangePositionProps, DayRangeValidationProps } from '../internal/models';
7
7
  import { DateRangeCalendarClasses } from './dateRangeCalendarClasses';
8
8
  import { DateRangePickerDay, DateRangePickerDayProps } from '../DateRangePickerDay';
@@ -21,41 +21,7 @@ export interface DateRangeCalendarSlotsComponentsProps<TDate> extends PickersArr
21
21
  selected: boolean;
22
22
  }>;
23
23
  }
24
- export interface DateRangeCalendarProps<TDate> extends ExportedDayCalendarProps<TDate>, BaseDateValidationProps<TDate>, DayRangeValidationProps<TDate>, Partial<RangePositionProps> {
25
- /**
26
- * The selected value.
27
- * Used when the component is controlled.
28
- */
29
- value?: DateRange<TDate>;
30
- /**
31
- * The default selected value.
32
- * Used when the component is not controlled.
33
- */
34
- defaultValue?: DateRange<TDate>;
35
- /**
36
- * Callback fired when the value changes.
37
- * @template TDate
38
- * @param {DateRange<TDate>} value The new value.
39
- * @param {PickerSelectionState | undefined} selectionState Indicates if the date range selection is complete.
40
- */
41
- onChange?: (value: DateRange<TDate>, selectionState?: PickerSelectionState) => void;
42
- autoFocus?: boolean;
43
- className?: string;
44
- classes?: Partial<DateRangeCalendarClasses>;
45
- /**
46
- * The system prop that allows defining system overrides as well as additional CSS styles.
47
- */
48
- sx?: SxProps<Theme>;
49
- /**
50
- * Overrideable components.
51
- * @default {}
52
- */
53
- components?: DateRangeCalendarSlotsComponent<TDate>;
54
- /**
55
- * The props used for each component slot.
56
- * @default {}
57
- */
58
- componentsProps?: DateRangeCalendarSlotsComponentsProps<TDate>;
24
+ export interface ExportedDateRangeCalendarProps<TDate> extends ExportedDayCalendarProps<TDate>, BaseDateValidationProps<TDate>, DayRangeValidationProps<TDate>, Pick<ExportedUseViewsOptions<'day'>, 'autoFocus'> {
59
25
  /**
60
26
  * If `true`, after selecting `start` date calendar will not automatically switch to the month of `end` date.
61
27
  * @default false
@@ -98,8 +64,42 @@ export interface DateRangeCalendarProps<TDate> extends ExportedDayCalendarProps<
98
64
  */
99
65
  disableDragEditing?: boolean;
100
66
  }
67
+ export interface DateRangeCalendarProps<TDate> extends ExportedDateRangeCalendarProps<TDate>, Partial<RangePositionProps> {
68
+ /**
69
+ * The selected value.
70
+ * Used when the component is controlled.
71
+ */
72
+ value?: DateRange<TDate>;
73
+ /**
74
+ * The default selected value.
75
+ * Used when the component is not controlled.
76
+ */
77
+ defaultValue?: DateRange<TDate>;
78
+ /**
79
+ * Callback fired when the value changes.
80
+ * @template TDate
81
+ * @param {DateRange<TDate>} value The new value.
82
+ * @param {PickerSelectionState | undefined} selectionState Indicates if the date range selection is complete.
83
+ */
84
+ onChange?: (value: DateRange<TDate>, selectionState?: PickerSelectionState) => void;
85
+ className?: string;
86
+ classes?: Partial<DateRangeCalendarClasses>;
87
+ /**
88
+ * The system prop that allows defining system overrides as well as additional CSS styles.
89
+ */
90
+ sx?: SxProps<Theme>;
91
+ /**
92
+ * Overrideable components.
93
+ * @default {}
94
+ */
95
+ components?: DateRangeCalendarSlotsComponent<TDate>;
96
+ /**
97
+ * The props used for each component slot.
98
+ * @default {}
99
+ */
100
+ componentsProps?: DateRangeCalendarSlotsComponentsProps<TDate>;
101
+ }
101
102
  export interface DateRangeCalendarOwnerState<TDate> extends DateRangeCalendarProps<TDate> {
102
103
  isDragging: boolean;
103
104
  }
104
105
  export type DateRangeCalendarDefaultizedProps<TDate> = DefaultizedProps<DateRangeCalendarProps<TDate>, 'reduceAnimations' | 'calendars' | 'disableDragEditing' | keyof BaseDateValidationProps<TDate>>;
105
- export type ExportedDateRangeCalendarProps<TDate> = Omit<DateRangeCalendarProps<TDate>, 'defaultValue' | 'value' | 'onChange' | 'changeView' | 'slideDirection' | 'currentMonth' | 'className' | 'classes' | 'components' | 'componentsProps' | 'rangePosition' | 'onRangePositionChange'>;
@@ -108,7 +108,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
108
108
  */
109
109
  disabled: PropTypes.bool,
110
110
  /**
111
- * If `true` disable values before the current date for date components, time for time components and both for date time components.
111
+ * If `true`, disable values after the current date for date components, time for time components and both for date time components.
112
112
  * @default false
113
113
  */
114
114
  disableFuture: PropTypes.bool,
@@ -128,7 +128,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
128
128
  */
129
129
  disableOpenPicker: PropTypes.bool,
130
130
  /**
131
- * If `true` disable values after the current date for date components, time for time components and both for date time components.
131
+ * If `true`, disable values before the current date for date components, time for time components and both for date time components.
132
132
  * @default false
133
133
  */
134
134
  disablePast: PropTypes.bool,
@@ -169,7 +169,7 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
169
169
  })]),
170
170
  label: PropTypes.node,
171
171
  /**
172
- * If `true` renders `LoadingComponent` in calendar instead of calendar view.
172
+ * If `true`, calls `renderLoading` instead of rendering the day calendar.
173
173
  * Can be used to preload information and show it in calendar.
174
174
  * @default false
175
175
  */
@@ -234,11 +234,6 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
234
234
  * Use in controlled mode (see open).
235
235
  */
236
236
  onOpen: PropTypes.func,
237
- /**
238
- * Callback fired on view change.
239
- * @param {DateView} view The new view.
240
- */
241
- onViewChange: PropTypes.func,
242
237
  /**
243
238
  * Control the popup or dialog open state.
244
239
  */
@@ -303,14 +298,14 @@ process.env.NODE_ENV !== "production" ? DateRangePicker.propTypes = {
303
298
  * Disable specific month.
304
299
  * @template TDate
305
300
  * @param {TDate} month The month to test.
306
- * @returns {boolean} If `true` the month will be disabled.
301
+ * @returns {boolean} If `true`, the month will be disabled.
307
302
  */
308
303
  shouldDisableMonth: PropTypes.func,
309
304
  /**
310
305
  * Disable specific year.
311
306
  * @template TDate
312
307
  * @param {TDate} year The year to test.
313
- * @returns {boolean} If `true` the year will be disabled.
308
+ * @returns {boolean} If `true`, the year will be disabled.
314
309
  */
315
310
  shouldDisableYear: PropTypes.func,
316
311
  /**
@@ -10,4 +10,5 @@ export interface ExportedDateRangePickerToolbarProps extends ExportedBaseToolbar
10
10
  /**
11
11
  * @ignore - internal component.
12
12
  */
13
- export declare const DateRangePickerToolbar: React.ForwardRefExoticComponent<DateRangePickerToolbarProps<unknown> & React.RefAttributes<HTMLDivElement>>;
13
+ declare const DateRangePickerToolbar: React.ForwardRefExoticComponent<DateRangePickerToolbarProps<unknown> & React.RefAttributes<HTMLDivElement>>;
14
+ export { DateRangePickerToolbar };
@@ -1,4 +1,6 @@
1
1
  import * as React from 'react';
2
+ import PropTypes from 'prop-types';
3
+ import clsx from 'clsx';
2
4
  import Typography from '@mui/material/Typography';
3
5
  import { styled, useThemeProps } from '@mui/material/styles';
4
6
  import { unstable_composeClasses as composeClasses } from '@mui/utils';
@@ -37,7 +39,7 @@ const DateRangePickerToolbarContainer = styled('div', {
37
39
  /**
38
40
  * @ignore - internal component.
39
41
  */
40
- export const DateRangePickerToolbar = /*#__PURE__*/React.forwardRef(function DateRangePickerToolbar(inProps, ref) {
42
+ const DateRangePickerToolbar = /*#__PURE__*/React.forwardRef(function DateRangePickerToolbar(inProps, ref) {
41
43
  const utils = useUtils();
42
44
  const props = useThemeProps({
43
45
  props: inProps,
@@ -49,7 +51,8 @@ export const DateRangePickerToolbar = /*#__PURE__*/React.forwardRef(function Dat
49
51
  toggleMobileKeyboardView,
50
52
  rangePosition,
51
53
  onRangePositionChange,
52
- toolbarFormat
54
+ toolbarFormat,
55
+ className
53
56
  } = props;
54
57
  const localeText = useLocaleText();
55
58
  const startDateValue = start ? utils.formatByString(start, toolbarFormat || utils.formats.shortDate) : localeText.start;
@@ -61,7 +64,7 @@ export const DateRangePickerToolbar = /*#__PURE__*/React.forwardRef(function Dat
61
64
  isMobileKeyboardViewOpen: isMobileKeyboardViewOpen,
62
65
  toggleMobileKeyboardView: toggleMobileKeyboardView,
63
66
  isLandscape: false,
64
- className: classes.root,
67
+ className: clsx(className, classes.root),
65
68
  ownerState: ownerState,
66
69
  ref: ref,
67
70
  children: /*#__PURE__*/_jsxs(DateRangePickerToolbarContainer, {
@@ -82,4 +85,32 @@ export const DateRangePickerToolbar = /*#__PURE__*/React.forwardRef(function Dat
82
85
  })]
83
86
  })
84
87
  });
85
- });
88
+ });
89
+ process.env.NODE_ENV !== "production" ? DateRangePickerToolbar.propTypes = {
90
+ // ----------------------------- Warning --------------------------------
91
+ // | These PropTypes are generated from the TypeScript type definitions |
92
+ // | To update them edit the TypeScript types and run "yarn proptypes" |
93
+ // ----------------------------------------------------------------------
94
+ classes: PropTypes.object,
95
+ /**
96
+ * className applied to the root component.
97
+ */
98
+ className: PropTypes.string,
99
+ disabled: PropTypes.bool,
100
+ isMobileKeyboardViewOpen: PropTypes.bool,
101
+ onRangePositionChange: PropTypes.func.isRequired,
102
+ rangePosition: PropTypes.oneOf(['end', 'start']).isRequired,
103
+ readOnly: PropTypes.bool,
104
+ toggleMobileKeyboardView: PropTypes.func,
105
+ /**
106
+ * Toolbar date format.
107
+ */
108
+ toolbarFormat: PropTypes.string,
109
+ /**
110
+ * Toolbar value placeholder—it is displayed when the value is empty.
111
+ * @default "––"
112
+ */
113
+ toolbarPlaceholder: PropTypes.node,
114
+ value: PropTypes.arrayOf(PropTypes.any).isRequired
115
+ } : void 0;
116
+ export { DateRangePickerToolbar };
@@ -1,5 +1,5 @@
1
1
  import * as React from 'react';
2
- import { ExportedDateCalendarProps, PickerStatePickerProps, BaseDateValidationProps, DayValidationProps, ExportedBaseToolbarProps } from '@mui/x-date-pickers/internals';
2
+ import { ExportedDateCalendarProps, PickerStatePickerProps, BaseDateValidationProps, DayValidationProps, ExportedBaseToolbarProps, ExportedUseViewsOptions } from '@mui/x-date-pickers/internals';
3
3
  import { DateRange, RangePositionProps } from '../internal/models/range';
4
4
  import { DayRangeValidationProps } from '../internal/models/dateRange';
5
5
  import { DateRangePickerViewMobileSlotsComponent, DateRangePickerViewMobileSlotsComponentsProps } from './DateRangePickerViewMobile';
@@ -16,7 +16,7 @@ export interface DateRangePickerViewSlotsComponent<TDate> extends DateRangePicke
16
16
  export interface DateRangePickerViewSlotsComponentsProps<TDate> extends DateRangePickerViewMobileSlotsComponentsProps<TDate> {
17
17
  toolbar?: ExportedBaseToolbarProps;
18
18
  }
19
- export interface ExportedDateRangePickerViewProps<TDate> extends ExportedDateRangePickerViewDesktopProps, DayRangeValidationProps<TDate>, Omit<ExportedDateCalendarProps<TDate>, 'onYearChange' | keyof BaseDateValidationProps<TDate> | keyof DayValidationProps<TDate>> {
19
+ export interface ExportedDateRangePickerViewProps<TDate> extends ExportedDateRangePickerViewDesktopProps, DayRangeValidationProps<TDate>, Omit<ExportedDateCalendarProps<TDate>, 'value' | 'defaultValue' | 'onChange' | 'onYearChange' | keyof BaseDateValidationProps<TDate> | keyof DayValidationProps<TDate>> {
20
20
  /**
21
21
  * Overrideable components.
22
22
  * @default {}
@@ -41,7 +41,7 @@ export interface ExportedDateRangePickerViewProps<TDate> extends ExportedDateRan
41
41
  */
42
42
  className?: string;
43
43
  }
44
- interface DateRangePickerViewProps<TDate> extends RangePositionProps, ExportedDateRangePickerViewProps<TDate>, PickerStatePickerProps<DateRange<TDate>>, Required<BaseDateValidationProps<TDate>> {
44
+ interface DateRangePickerViewProps<TDate> extends RangePositionProps, ExportedDateRangePickerViewProps<TDate>, PickerStatePickerProps<DateRange<TDate>>, Required<BaseDateValidationProps<TDate>>, Pick<ExportedUseViewsOptions<'day'>, 'onFocusedViewChange'> {
45
45
  calendars: 1 | 2 | 3;
46
46
  open: boolean;
47
47
  DateInputProps: DateRangePickerInputProps<TDate>;
@@ -1,6 +1,6 @@
1
1
  import _extends from "@babel/runtime/helpers/esm/extends";
2
2
  import _objectWithoutPropertiesLoose from "@babel/runtime/helpers/esm/objectWithoutPropertiesLoose";
3
- const _excluded = ["calendars", "className", "value", "DateInputProps", "defaultCalendarMonth", "disableAutoMonthSwitching", "disableFuture", "disableHighlightToday", "disablePast", "isMobileKeyboardViewOpen", "maxDate", "minDate", "onDateChange", "onMonthChange", "open", "reduceAnimations", "rangePosition", "onRangePositionChange", "shouldDisableDate", "showToolbar", "toggleMobileKeyboardView", "components", "componentsProps"];
3
+ const _excluded = ["calendars", "className", "value", "DateInputProps", "defaultCalendarMonth", "disableAutoMonthSwitching", "disableFuture", "disableHighlightToday", "disablePast", "isMobileKeyboardViewOpen", "maxDate", "minDate", "onDateChange", "onMonthChange", "open", "reduceAnimations", "rangePosition", "onRangePositionChange", "shouldDisableDate", "showToolbar", "toggleMobileKeyboardView", "components", "componentsProps", "onFocusedViewChange"];
4
4
  import * as React from 'react';
5
5
  import PropTypes from 'prop-types';
6
6
  import { Watermark } from '@mui/x-license-pro';
@@ -40,7 +40,8 @@ function DateRangePickerViewRaw(props) {
40
40
  showToolbar,
41
41
  toggleMobileKeyboardView,
42
42
  components,
43
- componentsProps
43
+ componentsProps,
44
+ onFocusedViewChange
44
45
  } = props,
45
46
  other = _objectWithoutPropertiesLoose(props, _excluded);
46
47
  const utils = useUtils();
@@ -123,7 +124,9 @@ function DateRangePickerViewRaw(props) {
123
124
  components,
124
125
  componentsProps,
125
126
  shouldDisableDate: wrappedShouldDisableDate
126
- }, calendarState, other);
127
+ }, calendarState, {
128
+ onFocusedViewChange: onFocusedViewChange ? newHasFocus => onFocusedViewChange('day', newHasFocus) : undefined
129
+ }, other);
127
130
  switch (wrapperVariant) {
128
131
  case 'desktop':
129
132
  {
@@ -66,7 +66,7 @@ export function DateRangePickerViewMobile(props) {
66
66
  maxDate: maxDateWithDisabled,
67
67
  minDate: minDateWithDisabled,
68
68
  onMonthChange: changeMonth,
69
- openView: "day",
69
+ view: "day",
70
70
  views: onlyDayView,
71
71
  disabled: disabled
72
72
  }, other)), /*#__PURE__*/_jsx(DayCalendar, _extends({}, other, {
@@ -1,9 +1,11 @@
1
1
  export { DateRangePicker } from './DateRangePicker';
2
2
  export type { DateRangePickerProps } from './DateRangePicker';
3
- export { getDateRangePickerInputUtilityClass, dateRangePickerInputClasses, } from './dateRangePickerInputClasses';
4
- export type { DateRangePickerInputClasses, DateRangePickerInputClassKey, } from './dateRangePickerInputClasses';
3
+ export { DateRangePickerToolbar } from './DateRangePickerToolbar';
4
+ export type { DateRangePickerToolbarProps } from './DateRangePickerToolbar';
5
5
  export { getDateRangePickerToolbarUtilityClass, dateRangePickerToolbarClasses, } from './dateRangePickerToolbarClasses';
6
6
  export type { DateRangePickerToolbarClasses, DateRangePickerToolbarClassKey, } from './dateRangePickerToolbarClasses';
7
+ export { getDateRangePickerInputUtilityClass, dateRangePickerInputClasses, } from './dateRangePickerInputClasses';
8
+ export type { DateRangePickerInputClasses, DateRangePickerInputClassKey, } from './dateRangePickerInputClasses';
7
9
  export { getDateRangePickerViewDesktopUtilityClass, dateRangePickerViewDesktopClasses, } from './dateRangePickerViewDesktopClasses';
8
10
  export type { DateRangePickerViewDesktopClasses, DateRangePickerViewDesktopClassKey, } from './dateRangePickerViewDesktopClasses';
9
11
  export type { DateRange } from '../internal/models';
@@ -1,4 +1,5 @@
1
1
  export { DateRangePicker } from './DateRangePicker';
2
- export { getDateRangePickerInputUtilityClass, dateRangePickerInputClasses } from './dateRangePickerInputClasses';
2
+ export { DateRangePickerToolbar } from './DateRangePickerToolbar';
3
3
  export { getDateRangePickerToolbarUtilityClass, dateRangePickerToolbarClasses } from './dateRangePickerToolbarClasses';
4
+ export { getDateRangePickerInputUtilityClass, dateRangePickerInputClasses } from './dateRangePickerInputClasses';
4
5
  export { getDateRangePickerViewDesktopUtilityClass, dateRangePickerViewDesktopClasses } from './dateRangePickerViewDesktopClasses';