@pisell/date-picker 1.0.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 (554) hide show
  1. package/README.md +3 -0
  2. package/es/ActionBar/index.d.ts +10 -0
  3. package/es/ActionBar/index.d.ts.map +1 -0
  4. package/es/ActionBar/index.js +57 -0
  5. package/es/ActionBar/index.less +18 -0
  6. package/es/AdapterDateFns/index.d.ts +2 -0
  7. package/es/AdapterDateFns/index.d.ts.map +1 -0
  8. package/es/AdapterDateFns/index.js +1 -0
  9. package/es/AdapterDateFnsJalali/index.d.ts +2 -0
  10. package/es/AdapterDateFnsJalali/index.d.ts.map +1 -0
  11. package/es/AdapterDateFnsJalali/index.js +1 -0
  12. package/es/AdapterDayjs/index.d.ts +2 -0
  13. package/es/AdapterDayjs/index.d.ts.map +1 -0
  14. package/es/AdapterDayjs/index.js +1 -0
  15. package/es/AdapterLuxon/index.d.ts +2 -0
  16. package/es/AdapterLuxon/index.d.ts.map +1 -0
  17. package/es/AdapterLuxon/index.js +1 -0
  18. package/es/AdapterMoment/index.d.ts +2 -0
  19. package/es/AdapterMoment/index.d.ts.map +1 -0
  20. package/es/AdapterMoment/index.js +1 -0
  21. package/es/AdapterMomentHijri/index.d.ts +2 -0
  22. package/es/AdapterMomentHijri/index.d.ts.map +1 -0
  23. package/es/AdapterMomentHijri/index.js +1 -0
  24. package/es/AdapterMomentJalaali/index.d.ts +2 -0
  25. package/es/AdapterMomentJalaali/index.d.ts.map +1 -0
  26. package/es/AdapterMomentJalaali/index.js +1 -0
  27. package/es/DateRangeCalendar/DateRangeCalendar.d.ts +8 -0
  28. package/es/DateRangeCalendar/DateRangeCalendar.d.ts.map +1 -0
  29. package/es/DateRangeCalendar/DateRangeCalendar.js +694 -0
  30. package/es/DateRangeCalendar/DateRangeCalendar.types.d.ts +124 -0
  31. package/es/DateRangeCalendar/DateRangeCalendar.types.d.ts.map +1 -0
  32. package/es/DateRangeCalendar/DateRangeCalendar.types.js +1 -0
  33. package/es/DateRangeCalendar/dateRangeCalendarClasses.d.ts +12 -0
  34. package/es/DateRangeCalendar/dateRangeCalendarClasses.d.ts.map +1 -0
  35. package/es/DateRangeCalendar/dateRangeCalendarClasses.js +5 -0
  36. package/es/DateRangeCalendar/index.d.ts +5 -0
  37. package/es/DateRangeCalendar/index.d.ts.map +1 -0
  38. package/es/DateRangeCalendar/index.js +2 -0
  39. package/es/DateRangeCalendar/useDragRange.d.ts +34 -0
  40. package/es/DateRangeCalendar/useDragRange.d.ts.map +1 -0
  41. package/es/DateRangeCalendar/useDragRange.js +260 -0
  42. package/es/DateRangePicker/DateRangePicker.d.ts +8 -0
  43. package/es/DateRangePicker/DateRangePicker.d.ts.map +1 -0
  44. package/es/DateRangePicker/DateRangePicker.js +331 -0
  45. package/es/DateRangePicker/DateRangePicker.types.d.ts +38 -0
  46. package/es/DateRangePicker/DateRangePicker.types.d.ts.map +1 -0
  47. package/es/DateRangePicker/DateRangePicker.types.js +1 -0
  48. package/es/DateRangePicker/DateRangePickerToolbar.d.ts +12 -0
  49. package/es/DateRangePicker/DateRangePickerToolbar.d.ts.map +1 -0
  50. package/es/DateRangePicker/DateRangePickerToolbar.js +119 -0
  51. package/es/DateRangePicker/dateRangePickerToolbarClasses.d.ts +10 -0
  52. package/es/DateRangePicker/dateRangePickerToolbarClasses.d.ts.map +1 -0
  53. package/es/DateRangePicker/dateRangePickerToolbarClasses.js +5 -0
  54. package/es/DateRangePicker/index.d.ts +7 -0
  55. package/es/DateRangePicker/index.d.ts.map +1 -0
  56. package/es/DateRangePicker/index.js +3 -0
  57. package/es/DateRangePicker/shared.d.ts +52 -0
  58. package/es/DateRangePicker/shared.d.ts.map +1 -0
  59. package/es/DateRangePicker/shared.js +45 -0
  60. package/es/DateRangePickerDay/DateRangePickerDay.d.ts +51 -0
  61. package/es/DateRangePickerDay/DateRangePickerDay.d.ts.map +1 -0
  62. package/es/DateRangePickerDay/DateRangePickerDay.js +371 -0
  63. package/es/DateRangePickerDay/dateRangePickerDayClasses.d.ts +42 -0
  64. package/es/DateRangePickerDay/dateRangePickerDayClasses.d.ts.map +1 -0
  65. package/es/DateRangePickerDay/dateRangePickerDayClasses.js +5 -0
  66. package/es/DateRangePickerDay/index.d.ts +5 -0
  67. package/es/DateRangePickerDay/index.d.ts.map +1 -0
  68. package/es/DateRangePickerDay/index.js +2 -0
  69. package/es/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +8 -0
  70. package/es/DesktopDateRangePicker/DesktopDateRangePicker.d.ts.map +1 -0
  71. package/es/DesktopDateRangePicker/DesktopDateRangePicker.js +345 -0
  72. package/es/DesktopDateRangePicker/DesktopDateRangePicker.types.d.ts +37 -0
  73. package/es/DesktopDateRangePicker/DesktopDateRangePicker.types.d.ts.map +1 -0
  74. package/es/DesktopDateRangePicker/DesktopDateRangePicker.types.js +1 -0
  75. package/es/DesktopDateRangePicker/index.d.ts +3 -0
  76. package/es/DesktopDateRangePicker/index.d.ts.map +1 -0
  77. package/es/DesktopDateRangePicker/index.js +1 -0
  78. package/es/MobileDateRangePicker/MobileDateRangePicker.d.ts +8 -0
  79. package/es/MobileDateRangePicker/MobileDateRangePicker.d.ts.map +1 -0
  80. package/es/MobileDateRangePicker/MobileDateRangePicker.js +351 -0
  81. package/es/MobileDateRangePicker/MobileDateRangePicker.types.d.ts +37 -0
  82. package/es/MobileDateRangePicker/MobileDateRangePicker.types.d.ts.map +1 -0
  83. package/es/MobileDateRangePicker/MobileDateRangePicker.types.js +1 -0
  84. package/es/MobileDateRangePicker/index.d.ts +3 -0
  85. package/es/MobileDateRangePicker/index.d.ts.map +1 -0
  86. package/es/MobileDateRangePicker/index.js +1 -0
  87. package/es/MultiInputDateRangeField/MultiInputDateRangeField.d.ts +8 -0
  88. package/es/MultiInputDateRangeField/MultiInputDateRangeField.d.ts.map +1 -0
  89. package/es/MultiInputDateRangeField/MultiInputDateRangeField.js +330 -0
  90. package/es/MultiInputDateRangeField/MultiInputDateRangeField.types.d.ts +70 -0
  91. package/es/MultiInputDateRangeField/MultiInputDateRangeField.types.d.ts.map +1 -0
  92. package/es/MultiInputDateRangeField/MultiInputDateRangeField.types.js +1 -0
  93. package/es/MultiInputDateRangeField/index.d.ts +4 -0
  94. package/es/MultiInputDateRangeField/index.d.ts.map +1 -0
  95. package/es/MultiInputDateRangeField/index.js +2 -0
  96. package/es/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.d.ts +8 -0
  97. package/es/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.d.ts.map +1 -0
  98. package/es/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +379 -0
  99. package/es/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.types.d.ts +71 -0
  100. package/es/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.types.d.ts.map +1 -0
  101. package/es/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.types.js +1 -0
  102. package/es/MultiInputDateTimeRangeField/index.d.ts +4 -0
  103. package/es/MultiInputDateTimeRangeField/index.d.ts.map +1 -0
  104. package/es/MultiInputDateTimeRangeField/index.js +2 -0
  105. package/es/MultiInputTimeRangeField/MultiInputTimeRangeField.d.ts +8 -0
  106. package/es/MultiInputTimeRangeField/MultiInputTimeRangeField.d.ts.map +1 -0
  107. package/es/MultiInputTimeRangeField/MultiInputTimeRangeField.js +355 -0
  108. package/es/MultiInputTimeRangeField/MultiInputTimeRangeField.types.d.ts +71 -0
  109. package/es/MultiInputTimeRangeField/MultiInputTimeRangeField.types.d.ts.map +1 -0
  110. package/es/MultiInputTimeRangeField/MultiInputTimeRangeField.types.js +1 -0
  111. package/es/MultiInputTimeRangeField/index.d.ts +4 -0
  112. package/es/MultiInputTimeRangeField/index.d.ts.map +1 -0
  113. package/es/MultiInputTimeRangeField/index.js +2 -0
  114. package/es/PisellDateRangePicker/index.d.ts +15 -0
  115. package/es/PisellDateRangePicker/index.d.ts.map +1 -0
  116. package/es/PisellDateRangePicker/index.js +104 -0
  117. package/es/PisellDateRangePicker/index.less +16 -0
  118. package/es/Shortcuts/index.d.ts +14 -0
  119. package/es/Shortcuts/index.d.ts.map +1 -0
  120. package/es/Shortcuts/index.js +39 -0
  121. package/es/Shortcuts/index.less +18 -0
  122. package/es/SingleInputDateRangeField/SingleInputDateRangeField.d.ts +9 -0
  123. package/es/SingleInputDateRangeField/SingleInputDateRangeField.d.ts.map +1 -0
  124. package/es/SingleInputDateRangeField/SingleInputDateRangeField.js +324 -0
  125. package/es/SingleInputDateRangeField/SingleInputDateRangeField.types.d.ts +50 -0
  126. package/es/SingleInputDateRangeField/SingleInputDateRangeField.types.d.ts.map +1 -0
  127. package/es/SingleInputDateRangeField/SingleInputDateRangeField.types.js +1 -0
  128. package/es/SingleInputDateRangeField/index.d.ts +4 -0
  129. package/es/SingleInputDateRangeField/index.d.ts.map +1 -0
  130. package/es/SingleInputDateRangeField/index.js +2 -0
  131. package/es/SingleInputDateRangeField/useSingleInputDateRangeField.d.ts +4 -0
  132. package/es/SingleInputDateRangeField/useSingleInputDateRangeField.d.ts.map +1 -0
  133. package/es/SingleInputDateRangeField/useSingleInputDateRangeField.js +38 -0
  134. package/es/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.d.ts +9 -0
  135. package/es/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.d.ts.map +1 -0
  136. package/es/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +373 -0
  137. package/es/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.d.ts +51 -0
  138. package/es/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.d.ts.map +1 -0
  139. package/es/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.js +1 -0
  140. package/es/SingleInputDateTimeRangeField/index.d.ts +4 -0
  141. package/es/SingleInputDateTimeRangeField/index.d.ts.map +1 -0
  142. package/es/SingleInputDateTimeRangeField/index.js +2 -0
  143. package/es/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.d.ts +4 -0
  144. package/es/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.d.ts.map +1 -0
  145. package/es/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.js +43 -0
  146. package/es/SingleInputTimeRangeField/SingleInputTimeRangeField.d.ts +9 -0
  147. package/es/SingleInputTimeRangeField/SingleInputTimeRangeField.d.ts.map +1 -0
  148. package/es/SingleInputTimeRangeField/SingleInputTimeRangeField.js +349 -0
  149. package/es/SingleInputTimeRangeField/SingleInputTimeRangeField.types.d.ts +51 -0
  150. package/es/SingleInputTimeRangeField/SingleInputTimeRangeField.types.d.ts.map +1 -0
  151. package/es/SingleInputTimeRangeField/SingleInputTimeRangeField.types.js +1 -0
  152. package/es/SingleInputTimeRangeField/index.d.ts +4 -0
  153. package/es/SingleInputTimeRangeField/index.d.ts.map +1 -0
  154. package/es/SingleInputTimeRangeField/index.js +2 -0
  155. package/es/SingleInputTimeRangeField/useSingleInputTimeRangeField.d.ts +4 -0
  156. package/es/SingleInputTimeRangeField/useSingleInputTimeRangeField.d.ts.map +1 -0
  157. package/es/SingleInputTimeRangeField/useSingleInputTimeRangeField.js +37 -0
  158. package/es/StaticDateRangePicker/StaticDateRangePicker.d.ts +8 -0
  159. package/es/StaticDateRangePicker/StaticDateRangePicker.d.ts.map +1 -0
  160. package/es/StaticDateRangePicker/StaticDateRangePicker.js +282 -0
  161. package/es/StaticDateRangePicker/StaticDateRangePicker.types.d.ts +32 -0
  162. package/es/StaticDateRangePicker/StaticDateRangePicker.types.d.ts.map +1 -0
  163. package/es/StaticDateRangePicker/StaticDateRangePicker.types.js +1 -0
  164. package/es/StaticDateRangePicker/index.d.ts +3 -0
  165. package/es/StaticDateRangePicker/index.d.ts.map +1 -0
  166. package/es/StaticDateRangePicker/index.js +1 -0
  167. package/es/dateRangeViewRenderers/dateRangeViewRenderers.d.ts +13 -0
  168. package/es/dateRangeViewRenderers/dateRangeViewRenderers.d.ts.map +1 -0
  169. package/es/dateRangeViewRenderers/dateRangeViewRenderers.js +82 -0
  170. package/es/dateRangeViewRenderers/index.d.ts +3 -0
  171. package/es/dateRangeViewRenderers/index.d.ts.map +1 -0
  172. package/es/dateRangeViewRenderers/index.js +1 -0
  173. package/es/index.d.ts +21 -0
  174. package/es/index.d.ts.map +1 -0
  175. package/es/index.js +25 -0
  176. package/es/internals/hooks/useDesktopRangePicker/index.d.ts +3 -0
  177. package/es/internals/hooks/useDesktopRangePicker/index.d.ts.map +1 -0
  178. package/es/internals/hooks/useDesktopRangePicker/index.js +1 -0
  179. package/es/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts +6 -0
  180. package/es/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts.map +1 -0
  181. package/es/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +133 -0
  182. package/es/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.types.d.ts +35 -0
  183. package/es/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.types.d.ts.map +1 -0
  184. package/es/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.types.js +1 -0
  185. package/es/internals/hooks/useEnrichedRangePickerFieldProps.d.ts +55 -0
  186. package/es/internals/hooks/useEnrichedRangePickerFieldProps.d.ts.map +1 -0
  187. package/es/internals/hooks/useEnrichedRangePickerFieldProps.js +205 -0
  188. package/es/internals/hooks/useMobileRangePicker/index.d.ts +3 -0
  189. package/es/internals/hooks/useMobileRangePicker/index.d.ts.map +1 -0
  190. package/es/internals/hooks/useMobileRangePicker/index.js +1 -0
  191. package/es/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.ts +6 -0
  192. package/es/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.ts.map +1 -0
  193. package/es/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +138 -0
  194. package/es/internals/hooks/useMobileRangePicker/useMobileRangePicker.types.d.ts +31 -0
  195. package/es/internals/hooks/useMobileRangePicker/useMobileRangePicker.types.d.ts.map +1 -0
  196. package/es/internals/hooks/useMobileRangePicker/useMobileRangePicker.types.js +1 -0
  197. package/es/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.d.ts +4 -0
  198. package/es/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.d.ts.map +1 -0
  199. package/es/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +112 -0
  200. package/es/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.d.ts +5 -0
  201. package/es/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.d.ts.map +1 -0
  202. package/es/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +119 -0
  203. package/es/internals/hooks/useMultiInputRangeField/useMultiInputRangeField.types.d.ts +18 -0
  204. package/es/internals/hooks/useMultiInputRangeField/useMultiInputRangeField.types.d.ts.map +1 -0
  205. package/es/internals/hooks/useMultiInputRangeField/useMultiInputRangeField.types.js +1 -0
  206. package/es/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.d.ts +5 -0
  207. package/es/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.d.ts.map +1 -0
  208. package/es/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.js +113 -0
  209. package/es/internals/hooks/useRangePosition.d.ts +29 -0
  210. package/es/internals/hooks/useRangePosition.d.ts.map +1 -0
  211. package/es/internals/hooks/useRangePosition.js +44 -0
  212. package/es/internals/hooks/useStaticRangePicker/index.d.ts +3 -0
  213. package/es/internals/hooks/useStaticRangePicker/index.d.ts.map +1 -0
  214. package/es/internals/hooks/useStaticRangePicker/index.js +1 -0
  215. package/es/internals/hooks/useStaticRangePicker/useStaticRangePicker.d.ts +10 -0
  216. package/es/internals/hooks/useStaticRangePicker/useStaticRangePicker.d.ts.map +1 -0
  217. package/es/internals/hooks/useStaticRangePicker/useStaticRangePicker.js +85 -0
  218. package/es/internals/hooks/useStaticRangePicker/useStaticRangePicker.types.d.ts +34 -0
  219. package/es/internals/hooks/useStaticRangePicker/useStaticRangePicker.types.d.ts.map +1 -0
  220. package/es/internals/hooks/useStaticRangePicker/useStaticRangePicker.types.js +1 -0
  221. package/es/internals/models/dateRange.d.ts +31 -0
  222. package/es/internals/models/dateRange.d.ts.map +1 -0
  223. package/es/internals/models/dateRange.js +1 -0
  224. package/es/internals/models/dateTimeRange.d.ts +14 -0
  225. package/es/internals/models/dateTimeRange.d.ts.map +1 -0
  226. package/es/internals/models/dateTimeRange.js +1 -0
  227. package/es/internals/models/fields.d.ts +44 -0
  228. package/es/internals/models/fields.d.ts.map +1 -0
  229. package/es/internals/models/fields.js +1 -0
  230. package/es/internals/models/index.d.ts +7 -0
  231. package/es/internals/models/index.d.ts.map +1 -0
  232. package/es/internals/models/index.js +6 -0
  233. package/es/internals/models/range.d.ts +4 -0
  234. package/es/internals/models/range.d.ts.map +1 -0
  235. package/es/internals/models/range.js +1 -0
  236. package/es/internals/models/rangePickerProps.d.ts +18 -0
  237. package/es/internals/models/rangePickerProps.d.ts.map +1 -0
  238. package/es/internals/models/rangePickerProps.js +1 -0
  239. package/es/internals/models/timeRange.d.ts +14 -0
  240. package/es/internals/models/timeRange.d.ts.map +1 -0
  241. package/es/internals/models/timeRange.js +1 -0
  242. package/es/internals/utils/date-fields-utils.d.ts +26 -0
  243. package/es/internals/utils/date-fields-utils.d.ts.map +1 -0
  244. package/es/internals/utils/date-fields-utils.js +31 -0
  245. package/es/internals/utils/date-range-manager.d.ts +22 -0
  246. package/es/internals/utils/date-range-manager.d.ts.map +1 -0
  247. package/es/internals/utils/date-range-manager.js +58 -0
  248. package/es/internals/utils/date-utils.d.ts +7 -0
  249. package/es/internals/utils/date-utils.d.ts.map +1 -0
  250. package/es/internals/utils/date-utils.js +12 -0
  251. package/es/internals/utils/releaseInfo.d.ts +2 -0
  252. package/es/internals/utils/releaseInfo.d.ts.map +1 -0
  253. package/es/internals/utils/releaseInfo.js +13 -0
  254. package/es/internals/utils/validation/validateDateRange.d.ts +8 -0
  255. package/es/internals/utils/validation/validateDateRange.d.ts.map +1 -0
  256. package/es/internals/utils/validation/validateDateRange.js +56 -0
  257. package/es/internals/utils/validation/validateDateTimeRange.d.ts +9 -0
  258. package/es/internals/utils/validation/validateDateTimeRange.d.ts.map +1 -0
  259. package/es/internals/utils/validation/validateDateTimeRange.js +56 -0
  260. package/es/internals/utils/validation/validateTimeRange.d.ts +8 -0
  261. package/es/internals/utils/validation/validateTimeRange.d.ts.map +1 -0
  262. package/es/internals/utils/validation/validateTimeRange.js +37 -0
  263. package/es/internals/utils/valueManagers.d.ts +8 -0
  264. package/es/internals/utils/valueManagers.d.ts.map +1 -0
  265. package/es/internals/utils/valueManagers.js +149 -0
  266. package/es/models/index.d.ts +2 -0
  267. package/es/models/index.d.ts.map +1 -0
  268. package/es/models/index.js +1 -0
  269. package/es/models/validation.d.ts +10 -0
  270. package/es/models/validation.d.ts.map +1 -0
  271. package/es/models/validation.js +1 -0
  272. package/es/themeAugmentation/components.d.ts +66 -0
  273. package/es/themeAugmentation/index.d.ts +5 -0
  274. package/es/themeAugmentation/index.d.ts.map +1 -0
  275. package/es/themeAugmentation/index.js +4 -0
  276. package/es/themeAugmentation/overrides.d.ts +33 -0
  277. package/es/themeAugmentation/props.d.ts +42 -0
  278. package/lib/ActionBar/index.d.ts +10 -0
  279. package/lib/ActionBar/index.d.ts.map +1 -0
  280. package/lib/ActionBar/index.js +72 -0
  281. package/lib/ActionBar/index.less +18 -0
  282. package/lib/AdapterDateFns/index.d.ts +2 -0
  283. package/lib/AdapterDateFns/index.d.ts.map +1 -0
  284. package/lib/AdapterDateFns/index.js +29 -0
  285. package/lib/AdapterDateFnsJalali/index.d.ts +2 -0
  286. package/lib/AdapterDateFnsJalali/index.d.ts.map +1 -0
  287. package/lib/AdapterDateFnsJalali/index.js +29 -0
  288. package/lib/AdapterDayjs/index.d.ts +2 -0
  289. package/lib/AdapterDayjs/index.d.ts.map +1 -0
  290. package/lib/AdapterDayjs/index.js +29 -0
  291. package/lib/AdapterLuxon/index.d.ts +2 -0
  292. package/lib/AdapterLuxon/index.d.ts.map +1 -0
  293. package/lib/AdapterLuxon/index.js +29 -0
  294. package/lib/AdapterMoment/index.d.ts +2 -0
  295. package/lib/AdapterMoment/index.d.ts.map +1 -0
  296. package/lib/AdapterMoment/index.js +29 -0
  297. package/lib/AdapterMomentHijri/index.d.ts +2 -0
  298. package/lib/AdapterMomentHijri/index.d.ts.map +1 -0
  299. package/lib/AdapterMomentHijri/index.js +29 -0
  300. package/lib/AdapterMomentJalaali/index.d.ts +2 -0
  301. package/lib/AdapterMomentJalaali/index.d.ts.map +1 -0
  302. package/lib/AdapterMomentJalaali/index.js +29 -0
  303. package/lib/DateRangeCalendar/DateRangeCalendar.d.ts +8 -0
  304. package/lib/DateRangeCalendar/DateRangeCalendar.d.ts.map +1 -0
  305. package/lib/DateRangeCalendar/DateRangeCalendar.js +683 -0
  306. package/lib/DateRangeCalendar/DateRangeCalendar.types.d.ts +124 -0
  307. package/lib/DateRangeCalendar/DateRangeCalendar.types.d.ts.map +1 -0
  308. package/lib/DateRangeCalendar/DateRangeCalendar.types.js +17 -0
  309. package/lib/DateRangeCalendar/dateRangeCalendarClasses.d.ts +12 -0
  310. package/lib/DateRangeCalendar/dateRangeCalendarClasses.d.ts.map +1 -0
  311. package/lib/DateRangeCalendar/dateRangeCalendarClasses.js +36 -0
  312. package/lib/DateRangeCalendar/index.d.ts +5 -0
  313. package/lib/DateRangeCalendar/index.d.ts.map +1 -0
  314. package/lib/DateRangeCalendar/index.js +34 -0
  315. package/lib/DateRangeCalendar/useDragRange.d.ts +34 -0
  316. package/lib/DateRangeCalendar/useDragRange.d.ts.map +1 -0
  317. package/lib/DateRangeCalendar/useDragRange.js +278 -0
  318. package/lib/DateRangePicker/DateRangePicker.d.ts +8 -0
  319. package/lib/DateRangePicker/DateRangePicker.d.ts.map +1 -0
  320. package/lib/DateRangePicker/DateRangePicker.js +372 -0
  321. package/lib/DateRangePicker/DateRangePicker.types.d.ts +38 -0
  322. package/lib/DateRangePicker/DateRangePicker.types.d.ts.map +1 -0
  323. package/lib/DateRangePicker/DateRangePicker.types.js +17 -0
  324. package/lib/DateRangePicker/DateRangePickerToolbar.d.ts +12 -0
  325. package/lib/DateRangePicker/DateRangePickerToolbar.d.ts.map +1 -0
  326. package/lib/DateRangePicker/DateRangePickerToolbar.js +142 -0
  327. package/lib/DateRangePicker/dateRangePickerToolbarClasses.d.ts +10 -0
  328. package/lib/DateRangePicker/dateRangePickerToolbarClasses.d.ts.map +1 -0
  329. package/lib/DateRangePicker/dateRangePickerToolbarClasses.js +38 -0
  330. package/lib/DateRangePicker/index.d.ts +7 -0
  331. package/lib/DateRangePicker/index.d.ts.map +1 -0
  332. package/lib/DateRangePicker/index.js +37 -0
  333. package/lib/DateRangePicker/shared.d.ts +52 -0
  334. package/lib/DateRangePicker/shared.d.ts.map +1 -0
  335. package/lib/DateRangePicker/shared.js +73 -0
  336. package/lib/DateRangePickerDay/DateRangePickerDay.d.ts +51 -0
  337. package/lib/DateRangePickerDay/DateRangePickerDay.d.ts.map +1 -0
  338. package/lib/DateRangePickerDay/DateRangePickerDay.js +476 -0
  339. package/lib/DateRangePickerDay/dateRangePickerDayClasses.d.ts +42 -0
  340. package/lib/DateRangePickerDay/dateRangePickerDayClasses.d.ts.map +1 -0
  341. package/lib/DateRangePickerDay/dateRangePickerDayClasses.js +57 -0
  342. package/lib/DateRangePickerDay/index.d.ts +5 -0
  343. package/lib/DateRangePickerDay/index.d.ts.map +1 -0
  344. package/lib/DateRangePickerDay/index.js +34 -0
  345. package/lib/DesktopDateRangePicker/DesktopDateRangePicker.d.ts +8 -0
  346. package/lib/DesktopDateRangePicker/DesktopDateRangePicker.d.ts.map +1 -0
  347. package/lib/DesktopDateRangePicker/DesktopDateRangePicker.js +402 -0
  348. package/lib/DesktopDateRangePicker/DesktopDateRangePicker.types.d.ts +37 -0
  349. package/lib/DesktopDateRangePicker/DesktopDateRangePicker.types.d.ts.map +1 -0
  350. package/lib/DesktopDateRangePicker/DesktopDateRangePicker.types.js +17 -0
  351. package/lib/DesktopDateRangePicker/index.d.ts +3 -0
  352. package/lib/DesktopDateRangePicker/index.d.ts.map +1 -0
  353. package/lib/DesktopDateRangePicker/index.js +29 -0
  354. package/lib/MobileDateRangePicker/MobileDateRangePicker.d.ts +8 -0
  355. package/lib/MobileDateRangePicker/MobileDateRangePicker.d.ts.map +1 -0
  356. package/lib/MobileDateRangePicker/MobileDateRangePicker.js +402 -0
  357. package/lib/MobileDateRangePicker/MobileDateRangePicker.types.d.ts +37 -0
  358. package/lib/MobileDateRangePicker/MobileDateRangePicker.types.d.ts.map +1 -0
  359. package/lib/MobileDateRangePicker/MobileDateRangePicker.types.js +17 -0
  360. package/lib/MobileDateRangePicker/index.d.ts +3 -0
  361. package/lib/MobileDateRangePicker/index.d.ts.map +1 -0
  362. package/lib/MobileDateRangePicker/index.js +29 -0
  363. package/lib/MultiInputDateRangeField/MultiInputDateRangeField.d.ts +8 -0
  364. package/lib/MultiInputDateRangeField/MultiInputDateRangeField.d.ts.map +1 -0
  365. package/lib/MultiInputDateRangeField/MultiInputDateRangeField.js +378 -0
  366. package/lib/MultiInputDateRangeField/MultiInputDateRangeField.types.d.ts +70 -0
  367. package/lib/MultiInputDateRangeField/MultiInputDateRangeField.types.d.ts.map +1 -0
  368. package/lib/MultiInputDateRangeField/MultiInputDateRangeField.types.js +17 -0
  369. package/lib/MultiInputDateRangeField/index.d.ts +4 -0
  370. package/lib/MultiInputDateRangeField/index.d.ts.map +1 -0
  371. package/lib/MultiInputDateRangeField/index.js +32 -0
  372. package/lib/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.d.ts +8 -0
  373. package/lib/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.d.ts.map +1 -0
  374. package/lib/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.js +427 -0
  375. package/lib/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.types.d.ts +71 -0
  376. package/lib/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.types.d.ts.map +1 -0
  377. package/lib/MultiInputDateTimeRangeField/MultiInputDateTimeRangeField.types.js +17 -0
  378. package/lib/MultiInputDateTimeRangeField/index.d.ts +4 -0
  379. package/lib/MultiInputDateTimeRangeField/index.d.ts.map +1 -0
  380. package/lib/MultiInputDateTimeRangeField/index.js +32 -0
  381. package/lib/MultiInputTimeRangeField/MultiInputTimeRangeField.d.ts +8 -0
  382. package/lib/MultiInputTimeRangeField/MultiInputTimeRangeField.d.ts.map +1 -0
  383. package/lib/MultiInputTimeRangeField/MultiInputTimeRangeField.js +403 -0
  384. package/lib/MultiInputTimeRangeField/MultiInputTimeRangeField.types.d.ts +71 -0
  385. package/lib/MultiInputTimeRangeField/MultiInputTimeRangeField.types.d.ts.map +1 -0
  386. package/lib/MultiInputTimeRangeField/MultiInputTimeRangeField.types.js +17 -0
  387. package/lib/MultiInputTimeRangeField/index.d.ts +4 -0
  388. package/lib/MultiInputTimeRangeField/index.d.ts.map +1 -0
  389. package/lib/MultiInputTimeRangeField/index.js +32 -0
  390. package/lib/PisellDateRangePicker/index.d.ts +15 -0
  391. package/lib/PisellDateRangePicker/index.d.ts.map +1 -0
  392. package/lib/PisellDateRangePicker/index.js +125 -0
  393. package/lib/PisellDateRangePicker/index.less +16 -0
  394. package/lib/Shortcuts/index.d.ts +14 -0
  395. package/lib/Shortcuts/index.d.ts.map +1 -0
  396. package/lib/Shortcuts/index.js +61 -0
  397. package/lib/Shortcuts/index.less +18 -0
  398. package/lib/SingleInputDateRangeField/SingleInputDateRangeField.d.ts +9 -0
  399. package/lib/SingleInputDateRangeField/SingleInputDateRangeField.d.ts.map +1 -0
  400. package/lib/SingleInputDateRangeField/SingleInputDateRangeField.js +356 -0
  401. package/lib/SingleInputDateRangeField/SingleInputDateRangeField.types.d.ts +50 -0
  402. package/lib/SingleInputDateRangeField/SingleInputDateRangeField.types.d.ts.map +1 -0
  403. package/lib/SingleInputDateRangeField/SingleInputDateRangeField.types.js +17 -0
  404. package/lib/SingleInputDateRangeField/index.d.ts +4 -0
  405. package/lib/SingleInputDateRangeField/index.d.ts.map +1 -0
  406. package/lib/SingleInputDateRangeField/index.js +32 -0
  407. package/lib/SingleInputDateRangeField/useSingleInputDateRangeField.d.ts +4 -0
  408. package/lib/SingleInputDateRangeField/useSingleInputDateRangeField.d.ts.map +1 -0
  409. package/lib/SingleInputDateRangeField/useSingleInputDateRangeField.js +61 -0
  410. package/lib/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.d.ts +9 -0
  411. package/lib/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.d.ts.map +1 -0
  412. package/lib/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.js +408 -0
  413. package/lib/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.d.ts +51 -0
  414. package/lib/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.d.ts.map +1 -0
  415. package/lib/SingleInputDateTimeRangeField/SingleInputDateTimeRangeField.types.js +17 -0
  416. package/lib/SingleInputDateTimeRangeField/index.d.ts +4 -0
  417. package/lib/SingleInputDateTimeRangeField/index.d.ts.map +1 -0
  418. package/lib/SingleInputDateTimeRangeField/index.js +32 -0
  419. package/lib/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.d.ts +4 -0
  420. package/lib/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.d.ts.map +1 -0
  421. package/lib/SingleInputDateTimeRangeField/useSingleInputDateTimeRangeField.js +66 -0
  422. package/lib/SingleInputTimeRangeField/SingleInputTimeRangeField.d.ts +9 -0
  423. package/lib/SingleInputTimeRangeField/SingleInputTimeRangeField.d.ts.map +1 -0
  424. package/lib/SingleInputTimeRangeField/SingleInputTimeRangeField.js +381 -0
  425. package/lib/SingleInputTimeRangeField/SingleInputTimeRangeField.types.d.ts +51 -0
  426. package/lib/SingleInputTimeRangeField/SingleInputTimeRangeField.types.d.ts.map +1 -0
  427. package/lib/SingleInputTimeRangeField/SingleInputTimeRangeField.types.js +17 -0
  428. package/lib/SingleInputTimeRangeField/index.d.ts +4 -0
  429. package/lib/SingleInputTimeRangeField/index.d.ts.map +1 -0
  430. package/lib/SingleInputTimeRangeField/index.js +32 -0
  431. package/lib/SingleInputTimeRangeField/useSingleInputTimeRangeField.d.ts +4 -0
  432. package/lib/SingleInputTimeRangeField/useSingleInputTimeRangeField.d.ts.map +1 -0
  433. package/lib/SingleInputTimeRangeField/useSingleInputTimeRangeField.js +60 -0
  434. package/lib/StaticDateRangePicker/StaticDateRangePicker.d.ts +8 -0
  435. package/lib/StaticDateRangePicker/StaticDateRangePicker.d.ts.map +1 -0
  436. package/lib/StaticDateRangePicker/StaticDateRangePicker.js +318 -0
  437. package/lib/StaticDateRangePicker/StaticDateRangePicker.types.d.ts +32 -0
  438. package/lib/StaticDateRangePicker/StaticDateRangePicker.types.d.ts.map +1 -0
  439. package/lib/StaticDateRangePicker/StaticDateRangePicker.types.js +17 -0
  440. package/lib/StaticDateRangePicker/index.d.ts +3 -0
  441. package/lib/StaticDateRangePicker/index.d.ts.map +1 -0
  442. package/lib/StaticDateRangePicker/index.js +29 -0
  443. package/lib/dateRangeViewRenderers/dateRangeViewRenderers.d.ts +13 -0
  444. package/lib/dateRangeViewRenderers/dateRangeViewRenderers.d.ts.map +1 -0
  445. package/lib/dateRangeViewRenderers/dateRangeViewRenderers.js +118 -0
  446. package/lib/dateRangeViewRenderers/index.d.ts +3 -0
  447. package/lib/dateRangeViewRenderers/index.d.ts.map +1 -0
  448. package/lib/dateRangeViewRenderers/index.js +29 -0
  449. package/lib/index.d.ts +21 -0
  450. package/lib/index.d.ts.map +1 -0
  451. package/lib/index.js +70 -0
  452. package/lib/internals/hooks/useDesktopRangePicker/index.d.ts +3 -0
  453. package/lib/internals/hooks/useDesktopRangePicker/index.d.ts.map +1 -0
  454. package/lib/internals/hooks/useDesktopRangePicker/index.js +29 -0
  455. package/lib/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts +6 -0
  456. package/lib/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.d.ts.map +1 -0
  457. package/lib/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.js +170 -0
  458. package/lib/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.types.d.ts +35 -0
  459. package/lib/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.types.d.ts.map +1 -0
  460. package/lib/internals/hooks/useDesktopRangePicker/useDesktopRangePicker.types.js +17 -0
  461. package/lib/internals/hooks/useEnrichedRangePickerFieldProps.d.ts +55 -0
  462. package/lib/internals/hooks/useEnrichedRangePickerFieldProps.d.ts.map +1 -0
  463. package/lib/internals/hooks/useEnrichedRangePickerFieldProps.js +244 -0
  464. package/lib/internals/hooks/useMobileRangePicker/index.d.ts +3 -0
  465. package/lib/internals/hooks/useMobileRangePicker/index.d.ts.map +1 -0
  466. package/lib/internals/hooks/useMobileRangePicker/index.js +29 -0
  467. package/lib/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.ts +6 -0
  468. package/lib/internals/hooks/useMobileRangePicker/useMobileRangePicker.d.ts.map +1 -0
  469. package/lib/internals/hooks/useMobileRangePicker/useMobileRangePicker.js +173 -0
  470. package/lib/internals/hooks/useMobileRangePicker/useMobileRangePicker.types.d.ts +31 -0
  471. package/lib/internals/hooks/useMobileRangePicker/useMobileRangePicker.types.d.ts.map +1 -0
  472. package/lib/internals/hooks/useMobileRangePicker/useMobileRangePicker.types.js +17 -0
  473. package/lib/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.d.ts +4 -0
  474. package/lib/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.d.ts.map +1 -0
  475. package/lib/internals/hooks/useMultiInputRangeField/useMultiInputDateRangeField.js +142 -0
  476. package/lib/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.d.ts +5 -0
  477. package/lib/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.d.ts.map +1 -0
  478. package/lib/internals/hooks/useMultiInputRangeField/useMultiInputDateTimeRangeField.js +151 -0
  479. package/lib/internals/hooks/useMultiInputRangeField/useMultiInputRangeField.types.d.ts +18 -0
  480. package/lib/internals/hooks/useMultiInputRangeField/useMultiInputRangeField.types.d.ts.map +1 -0
  481. package/lib/internals/hooks/useMultiInputRangeField/useMultiInputRangeField.types.js +17 -0
  482. package/lib/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.d.ts +5 -0
  483. package/lib/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.d.ts.map +1 -0
  484. package/lib/internals/hooks/useMultiInputRangeField/useMultiInputTimeRangeField.js +145 -0
  485. package/lib/internals/hooks/useRangePosition.d.ts +29 -0
  486. package/lib/internals/hooks/useRangePosition.d.ts.map +1 -0
  487. package/lib/internals/hooks/useRangePosition.js +65 -0
  488. package/lib/internals/hooks/useStaticRangePicker/index.d.ts +3 -0
  489. package/lib/internals/hooks/useStaticRangePicker/index.d.ts.map +1 -0
  490. package/lib/internals/hooks/useStaticRangePicker/index.js +29 -0
  491. package/lib/internals/hooks/useStaticRangePicker/useStaticRangePicker.d.ts +10 -0
  492. package/lib/internals/hooks/useStaticRangePicker/useStaticRangePicker.d.ts.map +1 -0
  493. package/lib/internals/hooks/useStaticRangePicker/useStaticRangePicker.js +97 -0
  494. package/lib/internals/hooks/useStaticRangePicker/useStaticRangePicker.types.d.ts +34 -0
  495. package/lib/internals/hooks/useStaticRangePicker/useStaticRangePicker.types.d.ts.map +1 -0
  496. package/lib/internals/hooks/useStaticRangePicker/useStaticRangePicker.types.js +17 -0
  497. package/lib/internals/models/dateRange.d.ts +31 -0
  498. package/lib/internals/models/dateRange.d.ts.map +1 -0
  499. package/lib/internals/models/dateRange.js +17 -0
  500. package/lib/internals/models/dateTimeRange.d.ts +14 -0
  501. package/lib/internals/models/dateTimeRange.d.ts.map +1 -0
  502. package/lib/internals/models/dateTimeRange.js +17 -0
  503. package/lib/internals/models/fields.d.ts +44 -0
  504. package/lib/internals/models/fields.d.ts.map +1 -0
  505. package/lib/internals/models/fields.js +17 -0
  506. package/lib/internals/models/index.d.ts +7 -0
  507. package/lib/internals/models/index.d.ts.map +1 -0
  508. package/lib/internals/models/index.js +33 -0
  509. package/lib/internals/models/range.d.ts +4 -0
  510. package/lib/internals/models/range.d.ts.map +1 -0
  511. package/lib/internals/models/range.js +17 -0
  512. package/lib/internals/models/rangePickerProps.d.ts +18 -0
  513. package/lib/internals/models/rangePickerProps.d.ts.map +1 -0
  514. package/lib/internals/models/rangePickerProps.js +17 -0
  515. package/lib/internals/models/timeRange.d.ts +14 -0
  516. package/lib/internals/models/timeRange.d.ts.map +1 -0
  517. package/lib/internals/models/timeRange.js +17 -0
  518. package/lib/internals/utils/date-fields-utils.d.ts +26 -0
  519. package/lib/internals/utils/date-fields-utils.d.ts.map +1 -0
  520. package/lib/internals/utils/date-fields-utils.js +48 -0
  521. package/lib/internals/utils/date-range-manager.d.ts +22 -0
  522. package/lib/internals/utils/date-range-manager.d.ts.map +1 -0
  523. package/lib/internals/utils/date-range-manager.js +57 -0
  524. package/lib/internals/utils/date-utils.d.ts +7 -0
  525. package/lib/internals/utils/date-utils.d.ts.map +1 -0
  526. package/lib/internals/utils/date-utils.js +46 -0
  527. package/lib/internals/utils/releaseInfo.d.ts +2 -0
  528. package/lib/internals/utils/releaseInfo.d.ts.map +1 -0
  529. package/lib/internals/utils/releaseInfo.js +38 -0
  530. package/lib/internals/utils/validation/validateDateRange.d.ts +8 -0
  531. package/lib/internals/utils/validation/validateDateRange.d.ts.map +1 -0
  532. package/lib/internals/utils/validation/validateDateRange.js +62 -0
  533. package/lib/internals/utils/validation/validateDateTimeRange.d.ts +9 -0
  534. package/lib/internals/utils/validation/validateDateTimeRange.d.ts.map +1 -0
  535. package/lib/internals/utils/validation/validateDateTimeRange.js +62 -0
  536. package/lib/internals/utils/validation/validateTimeRange.d.ts +8 -0
  537. package/lib/internals/utils/validation/validateTimeRange.d.ts.map +1 -0
  538. package/lib/internals/utils/validation/validateTimeRange.js +55 -0
  539. package/lib/internals/utils/valueManagers.d.ts +8 -0
  540. package/lib/internals/utils/valueManagers.d.ts.map +1 -0
  541. package/lib/internals/utils/valueManagers.js +149 -0
  542. package/lib/models/index.d.ts +2 -0
  543. package/lib/models/index.d.ts.map +1 -0
  544. package/lib/models/index.js +23 -0
  545. package/lib/models/validation.d.ts +10 -0
  546. package/lib/models/validation.d.ts.map +1 -0
  547. package/lib/models/validation.js +17 -0
  548. package/lib/themeAugmentation/components.d.ts +66 -0
  549. package/lib/themeAugmentation/index.d.ts +5 -0
  550. package/lib/themeAugmentation/index.d.ts.map +1 -0
  551. package/lib/themeAugmentation/index.js +29 -0
  552. package/lib/themeAugmentation/overrides.d.ts +33 -0
  553. package/lib/themeAugmentation/props.d.ts +42 -0
  554. package/package.json +43 -0
@@ -0,0 +1,9 @@
1
+ import { TimezoneProps } from '@mui/x-date-pickers/models';
2
+ import { Validator, BaseDateValidationProps, TimeValidationProps, DefaultizedProps } from '@mui/x-date-pickers/internals';
3
+ import { DayRangeValidationProps } from '../../models/dateRange';
4
+ import { DateRange } from '../../models/range';
5
+ import { DateTimeRangeValidationError } from '../../../models';
6
+ export interface DateTimeRangeComponentValidationProps<TDate> extends DayRangeValidationProps<TDate>, TimeValidationProps<TDate>, Required<BaseDateValidationProps<TDate>>, DefaultizedProps<TimezoneProps, 'timezone'> {
7
+ }
8
+ export declare const validateDateTimeRange: Validator<DateRange<any>, any, DateTimeRangeValidationError, DateTimeRangeComponentValidationProps<any>>;
9
+ //# sourceMappingURL=validateDateTimeRange.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validateDateTimeRange.d.ts","sourceRoot":"","sources":["validateDateTimeRange.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EACL,SAAS,EAET,uBAAuB,EACvB,mBAAmB,EACnB,gBAAgB,EACjB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,uBAAuB,EAAE,MAAM,wBAAwB,CAAC;AACjE,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,4BAA4B,EAAE,MAAM,iBAAiB,CAAC;AAE/D,MAAM,WAAW,qCAAqC,CAAC,KAAK,CAC1D,SAAQ,uBAAuB,CAAC,KAAK,CAAC,EACpC,mBAAmB,CAAC,KAAK,CAAC,EAC1B,QAAQ,CAAC,uBAAuB,CAAC,KAAK,CAAC,CAAC,EACxC,gBAAgB,CAAC,aAAa,EAAE,UAAU,CAAC;CAAG;AAElD,eAAO,MAAM,qBAAqB,EAAE,SAAS,CAC3C,SAAS,CAAC,GAAG,CAAC,EACd,GAAG,EACH,4BAA4B,EAC5B,qCAAqC,CAAC,GAAG,CAAC,CAuC3C,CAAC"}
@@ -0,0 +1,56 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ var _excluded = ["shouldDisableDate"];
3
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
4
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
5
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
6
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
7
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
8
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
9
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
10
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
11
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
12
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
13
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
14
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
15
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
16
+ import { validateDateTime } from '@mui/x-date-pickers/internals';
17
+ import { isRangeValid } from "../date-utils";
18
+ export var validateDateTimeRange = function validateDateTimeRange(_ref) {
19
+ var props = _ref.props,
20
+ value = _ref.value,
21
+ adapter = _ref.adapter;
22
+ var _value = _slicedToArray(value, 2),
23
+ start = _value[0],
24
+ end = _value[1];
25
+ var _shouldDisableDate = props.shouldDisableDate,
26
+ otherProps = _objectWithoutProperties(props, _excluded);
27
+ var dateTimeValidations = [validateDateTime({
28
+ adapter: adapter,
29
+ value: start,
30
+ props: _objectSpread(_objectSpread({}, otherProps), {}, {
31
+ shouldDisableDate: function shouldDisableDate(day) {
32
+ return !!(_shouldDisableDate !== null && _shouldDisableDate !== void 0 && _shouldDisableDate(day, 'start'));
33
+ }
34
+ })
35
+ }), validateDateTime({
36
+ adapter: adapter,
37
+ value: end,
38
+ props: _objectSpread(_objectSpread({}, otherProps), {}, {
39
+ shouldDisableDate: function shouldDisableDate(day) {
40
+ return !!(_shouldDisableDate !== null && _shouldDisableDate !== void 0 && _shouldDisableDate(day, 'end'));
41
+ }
42
+ })
43
+ })];
44
+ if (dateTimeValidations[0] || dateTimeValidations[1]) {
45
+ return dateTimeValidations;
46
+ }
47
+
48
+ // for partial input
49
+ if (start === null || end === null) {
50
+ return [null, null];
51
+ }
52
+ if (!isRangeValid(adapter.utils, value)) {
53
+ return ['invalidRange', 'invalidRange'];
54
+ }
55
+ return [null, null];
56
+ };
@@ -0,0 +1,8 @@
1
+ import { TimezoneProps } from '@mui/x-date-pickers/models';
2
+ import { Validator, BaseTimeValidationProps, DefaultizedProps } from '@mui/x-date-pickers/internals';
3
+ import { DateRange } from '../../models/range';
4
+ import { TimeRangeValidationError } from '../../../models';
5
+ export interface TimeRangeComponentValidationProps extends Required<BaseTimeValidationProps>, DefaultizedProps<TimezoneProps, 'timezone'> {
6
+ }
7
+ export declare const validateTimeRange: Validator<DateRange<any>, any, TimeRangeValidationError, TimeRangeComponentValidationProps>;
8
+ //# sourceMappingURL=validateTimeRange.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validateTimeRange.d.ts","sourceRoot":"","sources":["validateTimeRange.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,aAAa,EAAE,MAAM,4BAA4B,CAAC;AAC3D,OAAO,EACL,SAAS,EAET,uBAAuB,EACvB,gBAAgB,EACjB,MAAM,+BAA+B,CAAC;AAEvC,OAAO,EAAE,SAAS,EAAE,MAAM,oBAAoB,CAAC;AAC/C,OAAO,EAAE,wBAAwB,EAAE,MAAM,iBAAiB,CAAC;AAE3D,MAAM,WAAW,iCACf,SAAQ,QAAQ,CAAC,uBAAuB,CAAC,EACvC,gBAAgB,CAAC,aAAa,EAAE,UAAU,CAAC;CAAG;AAElD,eAAO,MAAM,iBAAiB,EAAE,SAAS,CACvC,SAAS,CAAC,GAAG,CAAC,EACd,GAAG,EACH,wBAAwB,EACxB,iCAAiC,CA+BlC,CAAC"}
@@ -0,0 +1,37 @@
1
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
2
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
3
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
4
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
5
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
6
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
7
+ import { validateTime } from '@mui/x-date-pickers/internals';
8
+ import { isRangeValid } from "../date-utils";
9
+ export var validateTimeRange = function validateTimeRange(_ref) {
10
+ var props = _ref.props,
11
+ value = _ref.value,
12
+ adapter = _ref.adapter;
13
+ var _value = _slicedToArray(value, 2),
14
+ start = _value[0],
15
+ end = _value[1];
16
+ var dateTimeValidations = [validateTime({
17
+ adapter: adapter,
18
+ value: start,
19
+ props: props
20
+ }), validateTime({
21
+ adapter: adapter,
22
+ value: end,
23
+ props: props
24
+ })];
25
+ if (dateTimeValidations[0] || dateTimeValidations[1]) {
26
+ return dateTimeValidations;
27
+ }
28
+
29
+ // for partial input
30
+ if (start === null || end === null) {
31
+ return [null, null];
32
+ }
33
+ if (!isRangeValid(adapter.utils, value)) {
34
+ return ['invalidRange', 'invalidRange'];
35
+ }
36
+ return [null, null];
37
+ };
@@ -0,0 +1,8 @@
1
+ import { PickerValueManager, FieldValueManager } from '@mui/x-date-pickers/internals';
2
+ import { DateRange } from '../models/range';
3
+ import type { DateRangeValidationError, DateTimeRangeValidationError, TimeRangeValidationError } from '../../models';
4
+ import { RangeFieldSection } from '../models/fields';
5
+ export declare type RangePickerValueManager<TValue = [any, any], TDate = any, TError extends DateRangeValidationError | TimeRangeValidationError | DateTimeRangeValidationError = any> = PickerValueManager<TValue, TDate, TError>;
6
+ export declare const rangeValueManager: RangePickerValueManager;
7
+ export declare const rangeFieldValueManager: FieldValueManager<DateRange<any>, any, RangeFieldSection>;
8
+ //# sourceMappingURL=valueManagers.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"valueManagers.d.ts","sourceRoot":"","sources":["valueManagers.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,kBAAkB,EAElB,iBAAiB,EAMlB,MAAM,+BAA+B,CAAC;AACvC,OAAO,EAAE,SAAS,EAAiB,MAAM,iBAAiB,CAAC;AAE3D,OAAO,KAAK,EACV,wBAAwB,EACxB,4BAA4B,EAC5B,wBAAwB,EACzB,MAAM,cAAc,CAAC;AACtB,OAAO,EAAE,iBAAiB,EAAE,MAAM,kBAAkB,CAAC;AAErD,oBAAY,uBAAuB,CACjC,MAAM,GAAG,CAAC,GAAG,EAAE,GAAG,CAAC,EACnB,KAAK,GAAG,GAAG,EACX,MAAM,SACF,wBAAwB,GACxB,wBAAwB,GACxB,4BAA4B,GAAG,GAAG,IACpC,kBAAkB,CAAC,MAAM,EAAE,KAAK,EAAE,MAAM,CAAC,CAAC;AAE9C,eAAO,MAAM,iBAAiB,EAAE,uBA0C/B,CAAC;AAEF,eAAO,MAAM,sBAAsB,EAAE,iBAAiB,CAAC,SAAS,CAAC,GAAG,CAAC,EAAE,GAAG,EAAE,iBAAiB,CA0G5F,CAAC"}
@@ -0,0 +1,149 @@
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+ var _excluded = ["value", "referenceDate"];
3
+ function _toConsumableArray(arr) { return _arrayWithoutHoles(arr) || _iterableToArray(arr) || _unsupportedIterableToArray(arr) || _nonIterableSpread(); }
4
+ function _nonIterableSpread() { throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
5
+ function _iterableToArray(iter) { if (typeof Symbol !== "undefined" && iter[Symbol.iterator] != null || iter["@@iterator"] != null) return Array.from(iter); }
6
+ function _arrayWithoutHoles(arr) { if (Array.isArray(arr)) return _arrayLikeToArray(arr); }
7
+ function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
8
+ function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
9
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
10
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
11
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
12
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
13
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
14
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
15
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
16
+ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefined" != typeof Symbol && arr[Symbol.iterator] || arr["@@iterator"]; if (null != _i) { var _s, _e, _x, _r, _arr = [], _n = !0, _d = !1; try { if (_x = (_i = _i.call(arr)).next, 0 === i) { if (Object(_i) !== _i) return; _n = !1; } else for (; !(_n = (_s = _x.call(_i)).done) && (_arr.push(_s.value), _arr.length !== i); _n = !0); } catch (err) { _d = !0, _e = err; } finally { try { if (!_n && null != _i.return && (_r = _i.return(), Object(_r) !== _r)) return; } finally { if (_d) throw _e; } } return _arr; } }
17
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
18
+ function _objectWithoutProperties(source, excluded) { if (source == null) return {}; var target = _objectWithoutPropertiesLoose(source, excluded); var key, i; if (Object.getOwnPropertySymbols) { var sourceSymbolKeys = Object.getOwnPropertySymbols(source); for (i = 0; i < sourceSymbolKeys.length; i++) { key = sourceSymbolKeys[i]; if (excluded.indexOf(key) >= 0) continue; if (!Object.prototype.propertyIsEnumerable.call(source, key)) continue; target[key] = source[key]; } } return target; }
19
+ function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
20
+ import { replaceInvalidDateByNull, addPositionPropertiesToSections, createDateStrForInputFromSections, areDatesEqual, getTodayDate, getDefaultReferenceDate } from '@mui/x-date-pickers/internals';
21
+ import { splitDateRangeSections, removeLastSeparator } from "./date-fields-utils";
22
+ export var rangeValueManager = {
23
+ emptyValue: [null, null],
24
+ getTodayValue: function getTodayValue(utils, timezone, valueType) {
25
+ return [getTodayDate(utils, timezone, valueType), getTodayDate(utils, timezone, valueType)];
26
+ },
27
+ getInitialReferenceValue: function getInitialReferenceValue(_ref) {
28
+ var value = _ref.value,
29
+ referenceDateProp = _ref.referenceDate,
30
+ params = _objectWithoutProperties(_ref, _excluded);
31
+ var shouldKeepStartDate = value[0] != null && params.utils.isValid(value[0]);
32
+ var shouldKeepEndDate = value[1] != null && params.utils.isValid(value[1]);
33
+ if (shouldKeepStartDate && shouldKeepEndDate) {
34
+ return value;
35
+ }
36
+ var referenceDate = referenceDateProp !== null && referenceDateProp !== void 0 ? referenceDateProp : getDefaultReferenceDate(params);
37
+ return [shouldKeepStartDate ? value[0] : referenceDate, shouldKeepEndDate ? value[1] : referenceDate];
38
+ },
39
+ cleanValue: function cleanValue(utils, value) {
40
+ return value.map(function (date) {
41
+ return replaceInvalidDateByNull(utils, date);
42
+ });
43
+ },
44
+ areValuesEqual: function areValuesEqual(utils, a, b) {
45
+ return areDatesEqual(utils, a[0], b[0]) && areDatesEqual(utils, a[1], b[1]);
46
+ },
47
+ isSameError: function isSameError(a, b) {
48
+ return b !== null && a[1] === b[1] && a[0] === b[0];
49
+ },
50
+ hasError: function hasError(error) {
51
+ return error[0] != null || error[1] != null;
52
+ },
53
+ defaultErrorState: [null, null],
54
+ getTimezone: function getTimezone(utils, value) {
55
+ var timezoneStart = value[0] == null ? null : utils.getTimezone(value[0]);
56
+ var timezoneEnd = value[1] == null ? null : utils.getTimezone(value[1]);
57
+ if (timezoneStart != null && timezoneEnd != null && timezoneStart !== timezoneEnd) {
58
+ throw new Error('MUI: The timezone of the start and the end date should be the same');
59
+ }
60
+ return timezoneStart !== null && timezoneStart !== void 0 ? timezoneStart : timezoneEnd;
61
+ },
62
+ setTimezone: function setTimezone(utils, timezone, value) {
63
+ return [value[0] == null ? null : utils.setTimezone(value[0], timezone), value[1] == null ? null : utils.setTimezone(value[1], timezone)];
64
+ }
65
+ };
66
+ export var rangeFieldValueManager = {
67
+ updateReferenceValue: function updateReferenceValue(utils, value, prevReferenceValue) {
68
+ var shouldKeepStartDate = value[0] != null && utils.isValid(value[0]);
69
+ var shouldKeepEndDate = value[1] != null && utils.isValid(value[1]);
70
+ if (!shouldKeepStartDate && !shouldKeepEndDate) {
71
+ return prevReferenceValue;
72
+ }
73
+ if (shouldKeepStartDate && shouldKeepEndDate) {
74
+ return value;
75
+ }
76
+ if (shouldKeepStartDate) {
77
+ return [value[0], prevReferenceValue[0]];
78
+ }
79
+ return [prevReferenceValue[1], value[1]];
80
+ },
81
+ getSectionsFromValue: function getSectionsFromValue(utils, _ref2, fallbackSections, isRTL, getSectionsFromDate) {
82
+ var _ref3 = _slicedToArray(_ref2, 2),
83
+ start = _ref3[0],
84
+ end = _ref3[1];
85
+ var separatedFallbackSections = fallbackSections == null ? {
86
+ startDate: null,
87
+ endDate: null
88
+ } : splitDateRangeSections(fallbackSections);
89
+ var getSections = function getSections(newDate, fallbackDateSections, position) {
90
+ var shouldReUsePrevDateSections = !utils.isValid(newDate) && !!fallbackDateSections;
91
+ if (shouldReUsePrevDateSections) {
92
+ return fallbackDateSections;
93
+ }
94
+ var sections = getSectionsFromDate(newDate);
95
+ return sections.map(function (section, sectionIndex) {
96
+ if (sectionIndex === sections.length - 1 && position === 'start') {
97
+ return _objectSpread(_objectSpread({}, section), {}, {
98
+ dateName: position,
99
+ endSeparator: "".concat(section.endSeparator).concat(isRTL ? "\u2069 \u2013 \u2066" : ' – ')
100
+ });
101
+ }
102
+ return _objectSpread(_objectSpread({}, section), {}, {
103
+ dateName: position
104
+ });
105
+ });
106
+ };
107
+ return addPositionPropertiesToSections([].concat(_toConsumableArray(getSections(start, separatedFallbackSections.startDate, 'start')), _toConsumableArray(getSections(end, separatedFallbackSections.endDate, 'end'))), isRTL);
108
+ },
109
+ getValueStrFromSections: function getValueStrFromSections(sections, isRTL) {
110
+ var dateRangeSections = splitDateRangeSections(sections);
111
+ return createDateStrForInputFromSections([].concat(_toConsumableArray(dateRangeSections.startDate), _toConsumableArray(dateRangeSections.endDate)), isRTL);
112
+ },
113
+ parseValueStr: function parseValueStr(valueStr, referenceValue, parseDate) {
114
+ // TODO: Improve because it would not work if the date format has `–` as a separator.
115
+ var _valueStr$split = valueStr.split('–'),
116
+ _valueStr$split2 = _slicedToArray(_valueStr$split, 2),
117
+ startStr = _valueStr$split2[0],
118
+ endStr = _valueStr$split2[1];
119
+ return [startStr, endStr].map(function (dateStr, index) {
120
+ if (dateStr == null) {
121
+ return null;
122
+ }
123
+ return parseDate(dateStr.trim(), referenceValue[index]);
124
+ });
125
+ },
126
+ getActiveDateManager: function getActiveDateManager(utils, state, activeSection) {
127
+ var index = activeSection.dateName === 'start' ? 0 : 1;
128
+ var updateDateInRange = function updateDateInRange(newDate, prevDateRange) {
129
+ return index === 0 ? [newDate, prevDateRange[1]] : [prevDateRange[0], newDate];
130
+ };
131
+ return {
132
+ date: state.value[index],
133
+ referenceDate: state.referenceValue[index],
134
+ getSections: function getSections(sections) {
135
+ var dateRangeSections = splitDateRangeSections(sections);
136
+ if (index === 0) {
137
+ return removeLastSeparator(dateRangeSections.startDate);
138
+ }
139
+ return dateRangeSections.endDate;
140
+ },
141
+ getNewValuesFromNewActiveDate: function getNewValuesFromNewActiveDate(newActiveDate) {
142
+ return {
143
+ value: updateDateInRange(newActiveDate, state.value),
144
+ referenceValue: newActiveDate == null || !utils.isValid(newActiveDate) ? state.referenceValue : updateDateInRange(newActiveDate, state.referenceValue)
145
+ };
146
+ }
147
+ };
148
+ }
149
+ };
@@ -0,0 +1,2 @@
1
+ export * from './validation';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC"}
@@ -0,0 +1 @@
1
+ export * from "./validation";
@@ -0,0 +1,10 @@
1
+ import { DateTimeValidationError, DateValidationError, TimeValidationError } from '@mui/x-date-pickers/models';
2
+ declare type RangeValidation<ItemError extends string | null> = [
3
+ ItemError | 'invalidRange',
4
+ ItemError | 'invalidRange'
5
+ ];
6
+ export declare type DateRangeValidationError = RangeValidation<DateValidationError>;
7
+ export declare type TimeRangeValidationError = RangeValidation<TimeValidationError>;
8
+ export declare type DateTimeRangeValidationError = RangeValidation<DateTimeValidationError>;
9
+ export {};
10
+ //# sourceMappingURL=validation.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"validation.d.ts","sourceRoot":"","sources":["validation.ts"],"names":[],"mappings":"AAAA,OAAO,EACL,uBAAuB,EACvB,mBAAmB,EACnB,mBAAmB,EACpB,MAAM,4BAA4B,CAAC;AAEpC,aAAK,eAAe,CAAC,SAAS,SAAS,MAAM,GAAG,IAAI,IAAI;IACtD,SAAS,GAAG,cAAc;IAC1B,SAAS,GAAG,cAAc;CAC3B,CAAC;AAEF,oBAAY,wBAAwB,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AAE5E,oBAAY,wBAAwB,GAAG,eAAe,CAAC,mBAAmB,CAAC,CAAC;AAE5E,oBAAY,4BAA4B,GAAG,eAAe,CAAC,uBAAuB,CAAC,CAAC"}
@@ -0,0 +1 @@
1
+ export {};
@@ -0,0 +1,66 @@
1
+ import { ComponentsProps, ComponentsOverrides } from '@mui/material/styles';
2
+
3
+ export interface PickersProComponents<Theme = unknown> {
4
+ MuiDateRangeCalendar?: {
5
+ defaultProps?: ComponentsProps['MuiDateRangeCalendar'];
6
+ styleOverrides?: ComponentsOverrides<Theme>['MuiDateRangeCalendar'];
7
+ };
8
+ MuiDateRangePickerDay?: {
9
+ defaultProps?: ComponentsProps['MuiDateRangePickerDay'];
10
+ styleOverrides?: ComponentsOverrides<Theme>['MuiDateRangePickerDay'];
11
+ };
12
+ MuiDateRangePickerToolbar?: {
13
+ defaultProps?: ComponentsProps['MuiDateRangePickerToolbar'];
14
+ styleOverrides?: ComponentsOverrides<Theme>['MuiDateRangePickerToolbar'];
15
+ };
16
+
17
+ // Multi input range fields
18
+ MuiMultiInputDateRangeField?: {
19
+ defaultProps?: ComponentsProps['MuiMultiInputDateRangeField'];
20
+ styleOverrides?: ComponentsOverrides['MuiMultiInputDateRangeField'];
21
+ };
22
+ MuiMultiInputDateTimeRangeField?: {
23
+ defaultProps?: ComponentsProps['MuiMultiInputDateTimeRangeField'];
24
+ styleOverrides?: ComponentsOverrides['MuiMultiInputDateTimeRangeField'];
25
+ };
26
+ MuiMultiInputTimeRangeField?: {
27
+ defaultProps?: ComponentsProps['MuiMultiInputTimeRangeField'];
28
+ styleOverrides?: ComponentsOverrides['MuiMultiInputTimeRangeField'];
29
+ };
30
+
31
+ // Single input range fields
32
+ MuiSingleInputDateRangeField?: {
33
+ defaultProps?: ComponentsProps['MuiSingleInputDateRangeField'];
34
+ styleOverrides?: ComponentsOverrides['MuiSingleInputDateRangeField'];
35
+ };
36
+ MuiSingleInputDateTimeRangeField?: {
37
+ defaultProps?: ComponentsProps['MuiSingleInputDateTimeRangeField'];
38
+ styleOverrides?: ComponentsOverrides['MuiSingleInputDateTimeRangeField'];
39
+ };
40
+ MuiSingleInputTimeRangeField?: {
41
+ defaultProps?: ComponentsProps['MuiSingleInputTimeRangeField'];
42
+ styleOverrides?: ComponentsOverrides['MuiSingleInputTimeRangeField'];
43
+ };
44
+
45
+ // Date Range Pickers
46
+ MuiDateRangePicker?: {
47
+ defaultProps?: ComponentsProps['MuiDateRangePicker'];
48
+ styleOverrides?: ComponentsOverrides<Theme>['MuiDateRangePicker'];
49
+ };
50
+ MuiDesktopDateRangePicker?: {
51
+ defaultProps?: ComponentsProps['MuiDesktopDateRangePicker'];
52
+ styleOverrides?: ComponentsOverrides<Theme>['MuiDesktopDateRangePicker'];
53
+ };
54
+ MuiMobileDateRangePicker?: {
55
+ defaultProps?: ComponentsProps['MuiMobileDateRangePicker'];
56
+ styleOverrides?: ComponentsOverrides<Theme>['MuiMobileDateRangePicker'];
57
+ };
58
+ MuiStaticDateRangePicker?: {
59
+ defaultProps?: ComponentsProps['MuiStaticDateRangePicker'];
60
+ styleOverrides?: ComponentsOverrides<Theme>['MuiStaticDateRangePicker'];
61
+ };
62
+ }
63
+
64
+ declare module '@mui/material/styles' {
65
+ interface Components<Theme = unknown> extends PickersProComponents<Theme> {}
66
+ }
@@ -0,0 +1,5 @@
1
+ export * from '@mui/x-date-pickers/themeAugmentation';
2
+ export * from './overrides';
3
+ export * from './props';
4
+ export * from './components';
5
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,cAAc,uCAAuC,CAAC;AACtD,cAAc,aAAa,CAAC;AAC5B,cAAc,SAAS,CAAC;AACxB,cAAc,cAAc,CAAC"}
@@ -0,0 +1,4 @@
1
+ export * from '@mui/x-date-pickers/themeAugmentation';
2
+ export * from "./overrides";
3
+ export * from "./props";
4
+ export * from "./components";
@@ -0,0 +1,33 @@
1
+ import { DateRangePickerDayClassKey } from '../DateRangePickerDay';
2
+ import { DateRangeCalendarClassKey } from '../DateRangeCalendar';
3
+ import { DateRangePickerToolbarClassKey } from '../DateRangePicker';
4
+
5
+ // prettier-ignore
6
+ export interface PickersProComponentNameToClassKey {
7
+ MuiDateRangeCalendar: DateRangeCalendarClassKey;
8
+ MuiDateRangePickerDay: DateRangePickerDayClassKey;
9
+ MuiDateRangePickerToolbar: DateRangePickerToolbarClassKey;
10
+
11
+ // Multi input range fields
12
+ MuiMultiInputDateRangeField: never;
13
+ MuiMultiInputDateTimeRangeField: never;
14
+ MuiMultiInputTimeRangeField: never;
15
+
16
+ // Single input range fields
17
+ MuiSingleInputDateRangeField: never;
18
+ MuiSingleInputDateTimeRangeField: never;
19
+ MuiSingleInputTimeRangeField: never;
20
+
21
+ // Date Range Pickers
22
+ MuiDateRangePicker: never;
23
+ MuiDesktopDateRangePicker: never;
24
+ MuiMobileDateRangePicker: never;
25
+ MuiStaticDateRangePicker: never;
26
+ }
27
+
28
+ declare module '@mui/material/styles' {
29
+ interface ComponentNameToClassKey extends PickersProComponentNameToClassKey {}
30
+ }
31
+
32
+ // disable automatic export
33
+ export {};
@@ -0,0 +1,42 @@
1
+ import { DateRangePickerDayProps } from '../DateRangePickerDay';
2
+ import { MultiInputDateRangeFieldProps } from '../MultiInputDateRangeField/MultiInputDateRangeField.types';
3
+ import { SingleInputDateRangeFieldProps } from '../SingleInputDateRangeField/SingleInputDateRangeField.types';
4
+ import { DateRangeCalendarProps } from '../DateRangeCalendar';
5
+
6
+ import { DateRangePickerProps, DateRangePickerToolbarProps } from '../DateRangePicker';
7
+ import { DesktopDateRangePickerProps } from '../DesktopDateRangePicker';
8
+ import { MobileDateRangePickerProps } from '../MobileDateRangePicker';
9
+ import { StaticDateRangePickerProps } from '../StaticDateRangePicker';
10
+ import { MultiInputDateTimeRangeFieldProps } from '../MultiInputDateTimeRangeField';
11
+ import { MultiInputTimeRangeFieldProps } from '../MultiInputTimeRangeField';
12
+ import { SingleInputDateTimeRangeFieldProps } from '../SingleInputDateTimeRangeField';
13
+ import { SingleInputTimeRangeFieldProps } from '../SingleInputTimeRangeField';
14
+
15
+ export interface PickersProComponentsPropsList {
16
+ MuiDateRangeCalendar: DateRangeCalendarProps<unknown>;
17
+ MuiDateRangePickerDay: DateRangePickerDayProps<unknown>;
18
+ MuiDateRangePickerToolbar: DateRangePickerToolbarProps<unknown>;
19
+
20
+ // Multi input range fields
21
+ MuiMultiInputDateRangeField: MultiInputDateRangeFieldProps<unknown>;
22
+ MuiMultiInputDateTimeRangeField: MultiInputDateTimeRangeFieldProps<unknown>;
23
+ MuiMultiInputTimeRangeField: MultiInputTimeRangeFieldProps<unknown>;
24
+
25
+ // Single input range fields
26
+ MuiSingleInputDateRangeField: SingleInputDateRangeFieldProps<unknown>;
27
+ MuiSingleInputDateTimeRangeField: SingleInputDateTimeRangeFieldProps<unknown>;
28
+ MuiSingleInputTimeRangeField: SingleInputTimeRangeFieldProps<unknown>;
29
+
30
+ // Date Range Pickers
31
+ MuiDateRangePicker: DateRangePickerProps<unknown>;
32
+ MuiDesktopDateRangePicker: DesktopDateRangePickerProps<unknown>;
33
+ MuiMobileDateRangePicker: MobileDateRangePickerProps<unknown>;
34
+ MuiStaticDateRangePicker: StaticDateRangePickerProps<unknown>;
35
+ }
36
+
37
+ declare module '@mui/material/styles' {
38
+ interface ComponentsPropsList extends PickersProComponentsPropsList {}
39
+ }
40
+
41
+ // disable automatic export
42
+ export {};
@@ -0,0 +1,10 @@
1
+ import "./index.less";
2
+ interface ActionBarProps {
3
+ ownerState: any;
4
+ onCancel: () => void;
5
+ onOk: () => void;
6
+ showTime?: boolean;
7
+ }
8
+ declare const ActionBar: (props: ActionBarProps) => JSX.Element;
9
+ export default ActionBar;
10
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.tsx"],"names":[],"mappings":"AAKA,OAAO,cAAc,CAAC;AAEtB,UAAU,cAAc;IACtB,UAAU,EAAE,GAAG,CAAC;IAChB,QAAQ,EAAE,MAAM,IAAI,CAAC;IACrB,IAAI,EAAE,MAAM,IAAI,CAAC;IACjB,QAAQ,CAAC,EAAE,OAAO,CAAC;CACpB;AAED,QAAA,MAAM,SAAS,UAAW,cAAc,gBAyDvC,CAAC;AAEF,eAAe,SAAS,CAAC"}
@@ -0,0 +1,72 @@
1
+ var __create = Object.create;
2
+ var __defProp = Object.defineProperty;
3
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
4
+ var __getOwnPropNames = Object.getOwnPropertyNames;
5
+ var __getProtoOf = Object.getPrototypeOf;
6
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
7
+ var __export = (target, all) => {
8
+ for (var name in all)
9
+ __defProp(target, name, { get: all[name], enumerable: true });
10
+ };
11
+ var __copyProps = (to, from, except, desc) => {
12
+ if (from && typeof from === "object" || typeof from === "function") {
13
+ for (let key of __getOwnPropNames(from))
14
+ if (!__hasOwnProp.call(to, key) && key !== except)
15
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
16
+ }
17
+ return to;
18
+ };
19
+ var __toESM = (mod, isNodeMode, target) => (target = mod != null ? __create(__getProtoOf(mod)) : {}, __copyProps(
20
+ // If the importer is in node compatibility mode or this is not an ESM
21
+ // file that has been converted to a CommonJS file using a Babel-
22
+ // compatible transform (i.e. "__esModule" has not been set), then set
23
+ // "default" to the CommonJS "module.exports" for node compatibility.
24
+ isNodeMode || !mod || !mod.__esModule ? __defProp(target, "default", { value: mod, enumerable: true }) : target,
25
+ mod
26
+ ));
27
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
28
+
29
+ // src/ActionBar/index.tsx
30
+ var ActionBar_exports = {};
31
+ __export(ActionBar_exports, {
32
+ default: () => ActionBar_default
33
+ });
34
+ module.exports = __toCommonJS(ActionBar_exports);
35
+ var import_react = __toESM(require("react"));
36
+ var import_classnames = __toESM(require("classnames"));
37
+ var import_antd = require("antd");
38
+ var import_index = require("./index.less");
39
+ var ActionBar = (props) => {
40
+ const { ownerState, onCancel, onOk, showTime } = props;
41
+ const { onChange, value, slotProps } = ownerState;
42
+ const { items } = (slotProps == null ? void 0 : slotProps.shortcuts) || {};
43
+ const hasShortcuts = !!items.length;
44
+ const handleStartChange = (val) => {
45
+ const newValue = [...value];
46
+ newValue[0] = newValue[0].set("hour", val.get("hour")).set("minute", val.get("minute")).set("second", val.get("second"));
47
+ onChange(newValue);
48
+ };
49
+ const handleEndChange = (val) => {
50
+ const newValue = [...value];
51
+ newValue[1] = newValue[1].set("hour", val.get("hour")).set("minute", val.get("minute")).set("second", val.get("second"));
52
+ onChange(newValue);
53
+ };
54
+ return /* @__PURE__ */ import_react.default.createElement("div", { className: (0, import_classnames.default)(props.className, "date-picker-action-bar") }, hasShortcuts && /* @__PURE__ */ import_react.default.createElement("div", { className: "date-picker-action-bar-left" }), /* @__PURE__ */ import_react.default.createElement("div", { className: "date-picker-action-bar-right" }, /* @__PURE__ */ import_react.default.createElement(import_antd.Space, { split: "-" }, showTime ? /* @__PURE__ */ import_react.default.createElement(import_react.default.Fragment, null, /* @__PURE__ */ import_react.default.createElement(
55
+ import_antd.TimePicker,
56
+ {
57
+ placeholder: "start time",
58
+ value: value[0],
59
+ popupClassName: "date-picker-action-bar-time-picker-popup",
60
+ onChange: handleStartChange
61
+ }
62
+ ), /* @__PURE__ */ import_react.default.createElement(
63
+ import_antd.TimePicker,
64
+ {
65
+ placeholder: "end time",
66
+ value: value[1],
67
+ popupClassName: "date-picker-action-bar-time-picker-popup",
68
+ onChange: handleEndChange
69
+ }
70
+ )) : /* @__PURE__ */ import_react.default.createElement("div", null)), /* @__PURE__ */ import_react.default.createElement(import_antd.Space, null, /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { onClick: onCancel }, "Cancel"), /* @__PURE__ */ import_react.default.createElement(import_antd.Button, { type: "primary", onClick: onOk }, "Apply"))));
71
+ };
72
+ var ActionBar_default = ActionBar;
@@ -0,0 +1,18 @@
1
+ .date-picker-action-bar {
2
+ display: flex;
3
+ .date-picker-action-bar-left {
4
+ width: 192px;
5
+ border-right: 1px solid rgba(0, 0, 0, 0.12);
6
+ }
7
+ .date-picker-action-bar-right {
8
+ flex: 1;
9
+ display: flex;
10
+ justify-content: space-between;
11
+ padding: 16px;
12
+ border-top: 1px solid rgba(0, 0, 0, 0.12);
13
+ }
14
+ }
15
+
16
+ .date-picker-action-bar-time-picker-popup {
17
+ z-index: 1400;
18
+ }
@@ -0,0 +1,2 @@
1
+ export { AdapterDateFns } from '@mui/x-date-pickers/AdapterDateFns';
2
+ //# sourceMappingURL=index.d.ts.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.d.ts","sourceRoot":"","sources":["index.ts"],"names":[],"mappings":"AAAA,OAAO,EAAE,cAAc,EAAE,MAAM,oCAAoC,CAAC"}
@@ -0,0 +1,29 @@
1
+ var __defProp = Object.defineProperty;
2
+ var __getOwnPropDesc = Object.getOwnPropertyDescriptor;
3
+ var __getOwnPropNames = Object.getOwnPropertyNames;
4
+ var __hasOwnProp = Object.prototype.hasOwnProperty;
5
+ var __export = (target, all) => {
6
+ for (var name in all)
7
+ __defProp(target, name, { get: all[name], enumerable: true });
8
+ };
9
+ var __copyProps = (to, from, except, desc) => {
10
+ if (from && typeof from === "object" || typeof from === "function") {
11
+ for (let key of __getOwnPropNames(from))
12
+ if (!__hasOwnProp.call(to, key) && key !== except)
13
+ __defProp(to, key, { get: () => from[key], enumerable: !(desc = __getOwnPropDesc(from, key)) || desc.enumerable });
14
+ }
15
+ return to;
16
+ };
17
+ var __toCommonJS = (mod) => __copyProps(__defProp({}, "__esModule", { value: true }), mod);
18
+
19
+ // src/AdapterDateFns/index.ts
20
+ var AdapterDateFns_exports = {};
21
+ __export(AdapterDateFns_exports, {
22
+ AdapterDateFns: () => import_AdapterDateFns.AdapterDateFns
23
+ });
24
+ module.exports = __toCommonJS(AdapterDateFns_exports);
25
+ var import_AdapterDateFns = require("@mui/x-date-pickers/AdapterDateFns");
26
+ // Annotate the CommonJS export names for ESM import in node:
27
+ 0 && (module.exports = {
28
+ AdapterDateFns
29
+ });
@@ -0,0 +1,2 @@
1
+ export { AdapterDateFnsJalali } from '@mui/x-date-pickers/AdapterDateFnsJalali';
2
+ //# sourceMappingURL=index.d.ts.map