@progress/kendo-react-dateinputs 6.1.1-dev.202311151536 → 7.0.0-develop.1

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 (394) hide show
  1. package/LICENSE.md +1 -1
  2. package/{dist/es/PopupSettings.d.ts → PopupSettings.d.ts} +4 -0
  3. package/{dist/npm/calendar → calendar}/components/Calendar.d.ts +6 -2
  4. package/{dist/es/calendar → calendar}/components/CalendarCell.d.ts +5 -1
  5. package/{dist/npm/calendar → calendar}/components/CalendarHeaderTitle.d.ts +5 -1
  6. package/{dist/npm/calendar → calendar}/components/CalendarNavigationItem.d.ts +5 -1
  7. package/{dist/npm/calendar → calendar}/components/CalendarWeekCell.d.ts +5 -1
  8. package/{dist/npm/calendar → calendar}/components/Header.d.ts +5 -1
  9. package/{dist/npm/calendar → calendar}/components/HorizontalViewList.d.ts +5 -1
  10. package/{dist/npm/calendar → calendar}/components/MultiViewCalendar.d.ts +8 -4
  11. package/{dist/npm/calendar → calendar}/components/Navigation.d.ts +5 -1
  12. package/{dist/npm/calendar → calendar}/components/TodayCommand.d.ts +5 -1
  13. package/{dist/es/calendar → calendar}/components/View.d.ts +6 -2
  14. package/{dist/npm/calendar → calendar}/components/ViewList.d.ts +7 -3
  15. package/calendar/models/ActiveView.d.ts +8 -0
  16. package/{dist/npm/calendar → calendar}/models/CalendarSettings.d.ts +4 -1
  17. package/calendar/models/CalendarViewEnum.d.ts +13 -0
  18. package/{dist/npm/calendar → calendar}/models/CellContext.d.ts +4 -0
  19. package/calendar/models/MultiViewCalendarMode.d.ts +13 -0
  20. package/{dist/es/calendar → calendar}/models/MultiViewCalendarSettings.d.ts +4 -1
  21. package/calendar/models/NavigationAction.d.ts +19 -0
  22. package/calendar/models/SelectionRange.d.ts +21 -0
  23. package/calendar/models/SelectionRangeEnd.d.ts +8 -0
  24. package/{dist/npm/calendar → calendar}/models/ViewService.d.ts +4 -0
  25. package/calendar/models/index.d.ts +15 -0
  26. package/{dist/es/calendar → calendar}/services/BusViewService.d.ts +4 -1
  27. package/{dist/es/calendar → calendar}/services/CenturyViewService.d.ts +4 -0
  28. package/{dist/npm/calendar → calendar}/services/DOMService.d.ts +4 -0
  29. package/{dist/npm/calendar → calendar}/services/DecadeViewService.d.ts +4 -0
  30. package/{dist/npm/calendar → calendar}/services/MonthViewService.d.ts +4 -0
  31. package/{dist/npm/calendar → calendar}/services/NavigationService.d.ts +4 -0
  32. package/{dist/npm/calendar → calendar}/services/ScrollSyncService.d.ts +4 -0
  33. package/calendar/services/WeekNamesService.d.ts +13 -0
  34. package/{dist/es/calendar → calendar}/services/YearViewService.d.ts +4 -0
  35. package/{dist/npm/calendar → calendar}/services/index.d.ts +4 -0
  36. package/{dist/es/common → common}/AdaptiveMode.d.ts +5 -1
  37. package/{dist/es/common → common}/PickerWrap.d.ts +4 -0
  38. package/common/constants.d.ts +8 -0
  39. package/{dist/es/dateinput → dateinput}/DateInput.d.ts +11 -7
  40. package/{dist/es/dateinput → dateinput}/models/DateInputSettings.d.ts +4 -0
  41. package/{dist/es/dateinput → dateinput}/models/format-placeholder.d.ts +5 -1
  42. package/dateinput/models/incremental-steps.d.ts +15 -0
  43. package/dateinput/models/index.d.ts +11 -0
  44. package/{dist/es/dateinput → dateinput}/models/kendo-date.d.ts +4 -0
  45. package/dateinput/models/mask.d.ts +11 -0
  46. package/dateinput/models/selection.d.ts +11 -0
  47. package/{dist/npm/dateinput → dateinput}/utils.d.ts +4 -0
  48. package/{dist/npm/datepicker → datepicker}/DatePicker.d.ts +12 -8
  49. package/{dist/npm/datepicker → datepicker}/ToggleButton.d.ts +4 -0
  50. package/{dist/npm/datepicker → datepicker}/models/DatePickerSettings.d.ts +5 -2
  51. package/datepicker/models/index.d.ts +6 -0
  52. package/{dist/es/daterangepicker → daterangepicker}/DateRangePicker.d.ts +9 -5
  53. package/daterangepicker/models/DateRangePickerCalendarSettings.d.ts +10 -0
  54. package/daterangepicker/models/DateRangePickerDateInputSettings.d.ts +10 -0
  55. package/daterangepicker/models/DateRangePickerPopupSettings.d.ts +10 -0
  56. package/{dist/npm/daterangepicker → daterangepicker}/models/DateRangePickerSettings.d.ts +4 -1
  57. package/{dist/es/daterangepicker → daterangepicker}/models/index.d.ts +4 -0
  58. package/{dist/npm/datetimepicker → datetimepicker}/DateTimePicker.d.ts +12 -8
  59. package/{dist/npm/datetimepicker → datetimepicker}/DateTimeSelector.d.ts +5 -1
  60. package/{dist/es/datetimepicker → datetimepicker}/models/DateTimePickerSettings.d.ts +5 -2
  61. package/datetimepicker/models/index.d.ts +6 -0
  62. package/dist/cdn/js/kendo-react-dateinputs.js +21 -1
  63. package/hooks/usePickerFloatingLabel.d.ts +24 -0
  64. package/index.d.ts +39 -0
  65. package/index.js +21 -0
  66. package/index.mjs +6460 -0
  67. package/{dist/es/messages → messages}/index.d.ts +4 -0
  68. package/package-metadata.d.ts +9 -0
  69. package/package.json +33 -51
  70. package/{dist/npm/timepicker → timepicker}/TimeList.d.ts +5 -1
  71. package/{dist/es/timepicker → timepicker}/TimePart.d.ts +5 -1
  72. package/{dist/es/timepicker → timepicker}/TimePicker.d.ts +12 -8
  73. package/{dist/es/timepicker → timepicker}/TimeSelector.d.ts +5 -1
  74. package/timepicker/models/IncrementalSteps.d.ts +12 -0
  75. package/timepicker/models/ListItem.d.ts +11 -0
  76. package/{dist/es/timepicker → timepicker}/models/ListService.d.ts +4 -0
  77. package/timepicker/models/ListServiceSettings.d.ts +16 -0
  78. package/timepicker/models/TimePart.d.ts +14 -0
  79. package/{dist/es/timepicker → timepicker}/models/TimePickerSettings.d.ts +5 -2
  80. package/timepicker/models/index.d.ts +11 -0
  81. package/timepicker/services/DOMService.d.ts +14 -0
  82. package/{dist/npm/timepicker → timepicker}/services/DayPeriodService.d.ts +4 -0
  83. package/{dist/es/timepicker → timepicker}/services/HoursService.d.ts +4 -0
  84. package/{dist/npm/timepicker → timepicker}/services/MinutesService.d.ts +4 -0
  85. package/{dist/es/timepicker → timepicker}/services/SecondsService.d.ts +4 -0
  86. package/timepicker/services/index.d.ts +10 -0
  87. package/{dist/es/timepicker → timepicker}/utils.d.ts +4 -0
  88. package/{dist/es/utils.d.ts → utils.d.ts} +4 -0
  89. package/{dist/es/virtualization → virtualization}/Virtualization.d.ts +6 -2
  90. package/{dist/es/virtualization → virtualization}/services/RowHeightService.d.ts +4 -0
  91. package/{dist/es/virtualization → virtualization}/services/ScrollerService.d.ts +6 -2
  92. package/virtualization/services/index.d.ts +7 -0
  93. package/about.md +0 -3
  94. package/dist/es/PopupSettings.js +0 -1
  95. package/dist/es/calendar/components/Calendar.d.ts +0 -187
  96. package/dist/es/calendar/components/Calendar.js +0 -388
  97. package/dist/es/calendar/components/CalendarCell.js +0 -128
  98. package/dist/es/calendar/components/CalendarHeaderTitle.d.ts +0 -28
  99. package/dist/es/calendar/components/CalendarHeaderTitle.js +0 -61
  100. package/dist/es/calendar/components/CalendarNavigationItem.d.ts +0 -27
  101. package/dist/es/calendar/components/CalendarNavigationItem.js +0 -66
  102. package/dist/es/calendar/components/CalendarWeekCell.d.ts +0 -25
  103. package/dist/es/calendar/components/CalendarWeekCell.js +0 -61
  104. package/dist/es/calendar/components/Header.d.ts +0 -54
  105. package/dist/es/calendar/components/Header.js +0 -129
  106. package/dist/es/calendar/components/HorizontalViewList.d.ts +0 -67
  107. package/dist/es/calendar/components/HorizontalViewList.js +0 -145
  108. package/dist/es/calendar/components/MultiViewCalendar.d.ts +0 -208
  109. package/dist/es/calendar/components/MultiViewCalendar.js +0 -589
  110. package/dist/es/calendar/components/Navigation.d.ts +0 -76
  111. package/dist/es/calendar/components/Navigation.js +0 -167
  112. package/dist/es/calendar/components/TodayCommand.d.ts +0 -31
  113. package/dist/es/calendar/components/TodayCommand.js +0 -93
  114. package/dist/es/calendar/components/View.js +0 -220
  115. package/dist/es/calendar/components/ViewList.d.ts +0 -111
  116. package/dist/es/calendar/components/ViewList.js +0 -258
  117. package/dist/es/calendar/models/ActiveView.d.ts +0 -4
  118. package/dist/es/calendar/models/ActiveView.js +0 -1
  119. package/dist/es/calendar/models/CalendarSettings.d.ts +0 -103
  120. package/dist/es/calendar/models/CalendarSettings.js +0 -1
  121. package/dist/es/calendar/models/CalendarViewEnum.d.ts +0 -9
  122. package/dist/es/calendar/models/CalendarViewEnum.js +0 -10
  123. package/dist/es/calendar/models/CellContext.d.ts +0 -19
  124. package/dist/es/calendar/models/CellContext.js +0 -1
  125. package/dist/es/calendar/models/MultiViewCalendarMode.d.ts +0 -9
  126. package/dist/es/calendar/models/MultiViewCalendarMode.js +0 -1
  127. package/dist/es/calendar/models/MultiViewCalendarSettings.js +0 -1
  128. package/dist/es/calendar/models/NavigationAction.d.ts +0 -15
  129. package/dist/es/calendar/models/NavigationAction.js +0 -16
  130. package/dist/es/calendar/models/SelectionRange.d.ts +0 -17
  131. package/dist/es/calendar/models/SelectionRange.js +0 -4
  132. package/dist/es/calendar/models/SelectionRangeEnd.d.ts +0 -4
  133. package/dist/es/calendar/models/SelectionRangeEnd.js +0 -1
  134. package/dist/es/calendar/models/ViewService.d.ts +0 -25
  135. package/dist/es/calendar/models/ViewService.js +0 -1
  136. package/dist/es/calendar/models/index.d.ts +0 -11
  137. package/dist/es/calendar/models/index.js +0 -4
  138. package/dist/es/calendar/services/BusViewService.js +0 -69
  139. package/dist/es/calendar/services/CenturyViewService.js +0 -154
  140. package/dist/es/calendar/services/DOMService.d.ts +0 -29
  141. package/dist/es/calendar/services/DOMService.js +0 -184
  142. package/dist/es/calendar/services/DecadeViewService.d.ts +0 -27
  143. package/dist/es/calendar/services/DecadeViewService.js +0 -153
  144. package/dist/es/calendar/services/MonthViewService.d.ts +0 -33
  145. package/dist/es/calendar/services/MonthViewService.js +0 -169
  146. package/dist/es/calendar/services/NavigationService.d.ts +0 -14
  147. package/dist/es/calendar/services/NavigationService.js +0 -41
  148. package/dist/es/calendar/services/ScrollSyncService.d.ts +0 -21
  149. package/dist/es/calendar/services/ScrollSyncService.js +0 -58
  150. package/dist/es/calendar/services/WeekNamesService.d.ts +0 -9
  151. package/dist/es/calendar/services/WeekNamesService.js +0 -16
  152. package/dist/es/calendar/services/YearViewService.js +0 -180
  153. package/dist/es/calendar/services/index.d.ts +0 -10
  154. package/dist/es/calendar/services/index.js +0 -10
  155. package/dist/es/calendar/utils/ScrollSync.d.ts +0 -13
  156. package/dist/es/calendar/utils/ScrollSync.js +0 -30
  157. package/dist/es/common/AdaptiveMode.js +0 -45
  158. package/dist/es/common/PickerWrap.js +0 -14
  159. package/dist/es/common/constants.d.ts +0 -4
  160. package/dist/es/common/constants.js +0 -4
  161. package/dist/es/dateinput/DateInput.js +0 -704
  162. package/dist/es/dateinput/models/DateInputSettings.js +0 -2
  163. package/dist/es/dateinput/models/format-placeholder.js +0 -2
  164. package/dist/es/dateinput/models/incremental-steps.d.ts +0 -11
  165. package/dist/es/dateinput/models/incremental-steps.js +0 -1
  166. package/dist/es/dateinput/models/index.d.ts +0 -7
  167. package/dist/es/dateinput/models/index.js +0 -3
  168. package/dist/es/dateinput/models/kendo-date.js +0 -338
  169. package/dist/es/dateinput/models/mask.d.ts +0 -7
  170. package/dist/es/dateinput/models/mask.js +0 -11
  171. package/dist/es/dateinput/models/selection.d.ts +0 -7
  172. package/dist/es/dateinput/models/selection.js +0 -1
  173. package/dist/es/dateinput/utils.d.ts +0 -30
  174. package/dist/es/dateinput/utils.js +0 -83
  175. package/dist/es/datepicker/DatePicker.d.ts +0 -354
  176. package/dist/es/datepicker/DatePicker.js +0 -636
  177. package/dist/es/datepicker/ToggleButton.d.ts +0 -10
  178. package/dist/es/datepicker/ToggleButton.js +0 -5
  179. package/dist/es/datepicker/models/DatePickerSettings.d.ts +0 -138
  180. package/dist/es/datepicker/models/DatePickerSettings.js +0 -2
  181. package/dist/es/datepicker/models/index.d.ts +0 -2
  182. package/dist/es/datepicker/models/index.js +0 -1
  183. package/dist/es/daterangepicker/DateRangePicker.js +0 -584
  184. package/dist/es/daterangepicker/models/DateRangePickerCalendarSettings.d.ts +0 -6
  185. package/dist/es/daterangepicker/models/DateRangePickerCalendarSettings.js +0 -1
  186. package/dist/es/daterangepicker/models/DateRangePickerDateInputSettings.d.ts +0 -6
  187. package/dist/es/daterangepicker/models/DateRangePickerDateInputSettings.js +0 -1
  188. package/dist/es/daterangepicker/models/DateRangePickerPopupSettings.d.ts +0 -6
  189. package/dist/es/daterangepicker/models/DateRangePickerPopupSettings.js +0 -1
  190. package/dist/es/daterangepicker/models/DateRangePickerSettings.d.ts +0 -123
  191. package/dist/es/daterangepicker/models/DateRangePickerSettings.js +0 -2
  192. package/dist/es/daterangepicker/models/index.js +0 -1
  193. package/dist/es/datetimepicker/DateTimePicker.d.ts +0 -338
  194. package/dist/es/datetimepicker/DateTimePicker.js +0 -566
  195. package/dist/es/datetimepicker/DateTimeSelector.d.ts +0 -97
  196. package/dist/es/datetimepicker/DateTimeSelector.js +0 -279
  197. package/dist/es/datetimepicker/models/DateTimePickerSettings.js +0 -1
  198. package/dist/es/datetimepicker/models/index.d.ts +0 -2
  199. package/dist/es/datetimepicker/models/index.js +0 -1
  200. package/dist/es/hooks/usePickerFloatingLabel.d.ts +0 -20
  201. package/dist/es/hooks/usePickerFloatingLabel.js +0 -35
  202. package/dist/es/main.d.ts +0 -35
  203. package/dist/es/main.js +0 -29
  204. package/dist/es/messages/index.js +0 -121
  205. package/dist/es/package-metadata.d.ts +0 -5
  206. package/dist/es/package-metadata.js +0 -11
  207. package/dist/es/timepicker/TimeList.d.ts +0 -87
  208. package/dist/es/timepicker/TimeList.js +0 -302
  209. package/dist/es/timepicker/TimePart.js +0 -307
  210. package/dist/es/timepicker/TimePicker.js +0 -618
  211. package/dist/es/timepicker/TimeSelector.js +0 -261
  212. package/dist/es/timepicker/models/IncrementalSteps.d.ts +0 -8
  213. package/dist/es/timepicker/models/IncrementalSteps.js +0 -1
  214. package/dist/es/timepicker/models/ListItem.d.ts +0 -7
  215. package/dist/es/timepicker/models/ListItem.js +0 -1
  216. package/dist/es/timepicker/models/ListService.js +0 -1
  217. package/dist/es/timepicker/models/ListServiceSettings.d.ts +0 -12
  218. package/dist/es/timepicker/models/ListServiceSettings.js +0 -1
  219. package/dist/es/timepicker/models/TimePart.d.ts +0 -10
  220. package/dist/es/timepicker/models/TimePart.js +0 -10
  221. package/dist/es/timepicker/models/TimePickerSettings.js +0 -2
  222. package/dist/es/timepicker/models/index.d.ts +0 -7
  223. package/dist/es/timepicker/models/index.js +0 -2
  224. package/dist/es/timepicker/services/DOMService.d.ts +0 -10
  225. package/dist/es/timepicker/services/DOMService.js +0 -46
  226. package/dist/es/timepicker/services/DayPeriodService.d.ts +0 -47
  227. package/dist/es/timepicker/services/DayPeriodService.js +0 -119
  228. package/dist/es/timepicker/services/HoursService.js +0 -124
  229. package/dist/es/timepicker/services/MinutesService.d.ts +0 -32
  230. package/dist/es/timepicker/services/MinutesService.js +0 -119
  231. package/dist/es/timepicker/services/SecondsService.js +0 -120
  232. package/dist/es/timepicker/services/index.d.ts +0 -6
  233. package/dist/es/timepicker/services/index.js +0 -6
  234. package/dist/es/timepicker/utils.js +0 -149
  235. package/dist/es/utils.js +0 -306
  236. package/dist/es/virtualization/Virtualization.js +0 -317
  237. package/dist/es/virtualization/services/RowHeightService.js +0 -68
  238. package/dist/es/virtualization/services/ScrollerService.js +0 -90
  239. package/dist/es/virtualization/services/index.d.ts +0 -3
  240. package/dist/es/virtualization/services/index.js +0 -3
  241. package/dist/npm/PopupSettings.d.ts +0 -14
  242. package/dist/npm/PopupSettings.js +0 -2
  243. package/dist/npm/calendar/components/Calendar.js +0 -391
  244. package/dist/npm/calendar/components/CalendarCell.d.ts +0 -35
  245. package/dist/npm/calendar/components/CalendarCell.js +0 -131
  246. package/dist/npm/calendar/components/CalendarHeaderTitle.js +0 -64
  247. package/dist/npm/calendar/components/CalendarNavigationItem.js +0 -69
  248. package/dist/npm/calendar/components/CalendarWeekCell.js +0 -64
  249. package/dist/npm/calendar/components/Header.js +0 -132
  250. package/dist/npm/calendar/components/HorizontalViewList.js +0 -148
  251. package/dist/npm/calendar/components/MultiViewCalendar.js +0 -592
  252. package/dist/npm/calendar/components/Navigation.js +0 -170
  253. package/dist/npm/calendar/components/TodayCommand.js +0 -96
  254. package/dist/npm/calendar/components/View.d.ts +0 -85
  255. package/dist/npm/calendar/components/View.js +0 -223
  256. package/dist/npm/calendar/components/ViewList.js +0 -261
  257. package/dist/npm/calendar/models/ActiveView.d.ts +0 -4
  258. package/dist/npm/calendar/models/ActiveView.js +0 -2
  259. package/dist/npm/calendar/models/CalendarSettings.js +0 -2
  260. package/dist/npm/calendar/models/CalendarViewEnum.d.ts +0 -9
  261. package/dist/npm/calendar/models/CalendarViewEnum.js +0 -13
  262. package/dist/npm/calendar/models/CellContext.js +0 -2
  263. package/dist/npm/calendar/models/MultiViewCalendarMode.d.ts +0 -9
  264. package/dist/npm/calendar/models/MultiViewCalendarMode.js +0 -2
  265. package/dist/npm/calendar/models/MultiViewCalendarSettings.d.ts +0 -112
  266. package/dist/npm/calendar/models/MultiViewCalendarSettings.js +0 -2
  267. package/dist/npm/calendar/models/NavigationAction.d.ts +0 -15
  268. package/dist/npm/calendar/models/NavigationAction.js +0 -19
  269. package/dist/npm/calendar/models/SelectionRange.d.ts +0 -17
  270. package/dist/npm/calendar/models/SelectionRange.js +0 -7
  271. package/dist/npm/calendar/models/SelectionRangeEnd.d.ts +0 -4
  272. package/dist/npm/calendar/models/SelectionRangeEnd.js +0 -2
  273. package/dist/npm/calendar/models/ViewService.js +0 -2
  274. package/dist/npm/calendar/models/index.d.ts +0 -11
  275. package/dist/npm/calendar/models/index.js +0 -9
  276. package/dist/npm/calendar/services/BusViewService.d.ts +0 -22
  277. package/dist/npm/calendar/services/BusViewService.js +0 -72
  278. package/dist/npm/calendar/services/CenturyViewService.d.ts +0 -25
  279. package/dist/npm/calendar/services/CenturyViewService.js +0 -157
  280. package/dist/npm/calendar/services/DOMService.js +0 -187
  281. package/dist/npm/calendar/services/DecadeViewService.js +0 -156
  282. package/dist/npm/calendar/services/MonthViewService.js +0 -172
  283. package/dist/npm/calendar/services/NavigationService.js +0 -44
  284. package/dist/npm/calendar/services/ScrollSyncService.js +0 -61
  285. package/dist/npm/calendar/services/WeekNamesService.d.ts +0 -9
  286. package/dist/npm/calendar/services/WeekNamesService.js +0 -19
  287. package/dist/npm/calendar/services/YearViewService.d.ts +0 -31
  288. package/dist/npm/calendar/services/YearViewService.js +0 -183
  289. package/dist/npm/calendar/services/index.js +0 -21
  290. package/dist/npm/calendar/utils/ScrollSync.d.ts +0 -13
  291. package/dist/npm/calendar/utils/ScrollSync.js +0 -32
  292. package/dist/npm/common/AdaptiveMode.d.ts +0 -21
  293. package/dist/npm/common/AdaptiveMode.js +0 -49
  294. package/dist/npm/common/PickerWrap.d.ts +0 -18
  295. package/dist/npm/common/PickerWrap.js +0 -17
  296. package/dist/npm/common/constants.d.ts +0 -4
  297. package/dist/npm/common/constants.js +0 -7
  298. package/dist/npm/dateinput/DateInput.d.ts +0 -351
  299. package/dist/npm/dateinput/DateInput.js +0 -707
  300. package/dist/npm/dateinput/models/DateInputSettings.d.ts +0 -99
  301. package/dist/npm/dateinput/models/DateInputSettings.js +0 -3
  302. package/dist/npm/dateinput/models/format-placeholder.d.ts +0 -39
  303. package/dist/npm/dateinput/models/format-placeholder.js +0 -3
  304. package/dist/npm/dateinput/models/incremental-steps.d.ts +0 -11
  305. package/dist/npm/dateinput/models/incremental-steps.js +0 -2
  306. package/dist/npm/dateinput/models/index.d.ts +0 -7
  307. package/dist/npm/dateinput/models/index.js +0 -7
  308. package/dist/npm/dateinput/models/kendo-date.d.ts +0 -53
  309. package/dist/npm/dateinput/models/kendo-date.js +0 -341
  310. package/dist/npm/dateinput/models/mask.d.ts +0 -7
  311. package/dist/npm/dateinput/models/mask.js +0 -14
  312. package/dist/npm/dateinput/models/selection.d.ts +0 -7
  313. package/dist/npm/dateinput/models/selection.js +0 -2
  314. package/dist/npm/dateinput/utils.js +0 -90
  315. package/dist/npm/datepicker/DatePicker.js +0 -639
  316. package/dist/npm/datepicker/ToggleButton.js +0 -8
  317. package/dist/npm/datepicker/models/DatePickerSettings.js +0 -3
  318. package/dist/npm/datepicker/models/index.d.ts +0 -2
  319. package/dist/npm/datepicker/models/index.js +0 -2
  320. package/dist/npm/daterangepicker/DateRangePicker.d.ts +0 -349
  321. package/dist/npm/daterangepicker/DateRangePicker.js +0 -587
  322. package/dist/npm/daterangepicker/models/DateRangePickerCalendarSettings.d.ts +0 -6
  323. package/dist/npm/daterangepicker/models/DateRangePickerCalendarSettings.js +0 -2
  324. package/dist/npm/daterangepicker/models/DateRangePickerDateInputSettings.d.ts +0 -6
  325. package/dist/npm/daterangepicker/models/DateRangePickerDateInputSettings.js +0 -2
  326. package/dist/npm/daterangepicker/models/DateRangePickerPopupSettings.d.ts +0 -6
  327. package/dist/npm/daterangepicker/models/DateRangePickerPopupSettings.js +0 -2
  328. package/dist/npm/daterangepicker/models/DateRangePickerSettings.js +0 -3
  329. package/dist/npm/daterangepicker/models/index.d.ts +0 -5
  330. package/dist/npm/daterangepicker/models/index.js +0 -2
  331. package/dist/npm/datetimepicker/DateTimePicker.js +0 -569
  332. package/dist/npm/datetimepicker/DateTimeSelector.js +0 -282
  333. package/dist/npm/datetimepicker/models/DateTimePickerSettings.d.ts +0 -141
  334. package/dist/npm/datetimepicker/models/DateTimePickerSettings.js +0 -2
  335. package/dist/npm/datetimepicker/models/index.d.ts +0 -2
  336. package/dist/npm/datetimepicker/models/index.js +0 -2
  337. package/dist/npm/hooks/usePickerFloatingLabel.d.ts +0 -20
  338. package/dist/npm/hooks/usePickerFloatingLabel.js +0 -40
  339. package/dist/npm/main.d.ts +0 -35
  340. package/dist/npm/main.js +0 -102
  341. package/dist/npm/messages/index.d.ts +0 -120
  342. package/dist/npm/messages/index.js +0 -124
  343. package/dist/npm/package-metadata.d.ts +0 -5
  344. package/dist/npm/package-metadata.js +0 -14
  345. package/dist/npm/timepicker/TimeList.js +0 -305
  346. package/dist/npm/timepicker/TimePart.d.ts +0 -136
  347. package/dist/npm/timepicker/TimePart.js +0 -310
  348. package/dist/npm/timepicker/TimePicker.d.ts +0 -351
  349. package/dist/npm/timepicker/TimePicker.js +0 -621
  350. package/dist/npm/timepicker/TimeSelector.d.ts +0 -138
  351. package/dist/npm/timepicker/TimeSelector.js +0 -264
  352. package/dist/npm/timepicker/models/IncrementalSteps.d.ts +0 -8
  353. package/dist/npm/timepicker/models/IncrementalSteps.js +0 -2
  354. package/dist/npm/timepicker/models/ListItem.d.ts +0 -7
  355. package/dist/npm/timepicker/models/ListItem.js +0 -2
  356. package/dist/npm/timepicker/models/ListService.d.ts +0 -15
  357. package/dist/npm/timepicker/models/ListService.js +0 -2
  358. package/dist/npm/timepicker/models/ListServiceSettings.d.ts +0 -12
  359. package/dist/npm/timepicker/models/ListServiceSettings.js +0 -2
  360. package/dist/npm/timepicker/models/TimePart.d.ts +0 -10
  361. package/dist/npm/timepicker/models/TimePart.js +0 -13
  362. package/dist/npm/timepicker/models/TimePickerSettings.d.ts +0 -130
  363. package/dist/npm/timepicker/models/TimePickerSettings.js +0 -3
  364. package/dist/npm/timepicker/models/index.d.ts +0 -7
  365. package/dist/npm/timepicker/models/index.js +0 -5
  366. package/dist/npm/timepicker/services/DOMService.d.ts +0 -10
  367. package/dist/npm/timepicker/services/DOMService.js +0 -49
  368. package/dist/npm/timepicker/services/DayPeriodService.js +0 -122
  369. package/dist/npm/timepicker/services/HoursService.d.ts +0 -33
  370. package/dist/npm/timepicker/services/HoursService.js +0 -127
  371. package/dist/npm/timepicker/services/MinutesService.js +0 -122
  372. package/dist/npm/timepicker/services/SecondsService.d.ts +0 -32
  373. package/dist/npm/timepicker/services/SecondsService.js +0 -123
  374. package/dist/npm/timepicker/services/index.d.ts +0 -6
  375. package/dist/npm/timepicker/services/index.js +0 -13
  376. package/dist/npm/timepicker/utils.d.ts +0 -56
  377. package/dist/npm/timepicker/utils.js +0 -161
  378. package/dist/npm/utils.d.ts +0 -96
  379. package/dist/npm/utils.js +0 -325
  380. package/dist/npm/virtualization/Virtualization.d.ts +0 -116
  381. package/dist/npm/virtualization/Virtualization.js +0 -320
  382. package/dist/npm/virtualization/services/RowHeightService.d.ts +0 -18
  383. package/dist/npm/virtualization/services/RowHeightService.js +0 -71
  384. package/dist/npm/virtualization/services/ScrollerService.d.ts +0 -49
  385. package/dist/npm/virtualization/services/ScrollerService.js +0 -93
  386. package/dist/npm/virtualization/services/index.d.ts +0 -3
  387. package/dist/npm/virtualization/services/index.js +0 -9
  388. package/dist/systemjs/kendo-react-dateinputs.js +0 -1
  389. package/e2e-next/calendar.basic.tests.ts +0 -24
  390. package/e2e-next/dateinput.basic.tests.ts +0 -24
  391. package/e2e-next/datepicker.basic.tests.ts +0 -24
  392. package/e2e-next/daterangepicker.basic.tests.ts +0 -24
  393. package/e2e-next/datetimepicker.basic.tests.ts +0 -24
  394. package/e2e-next/timepicker.basic.tests.ts +0 -24
@@ -1,187 +0,0 @@
1
- import * as React from 'react';
2
- import * as PropTypes from 'prop-types';
3
- import { CalendarViewEnum, ActiveView, CalendarSettings } from '../models';
4
- import { DOMService, ScrollSyncService } from '../services';
5
- /**
6
- * The arguments for the `change` event of the Calendar. The generic argument sets the target type of the event. Defaults to `Calendar`.
7
- */
8
- export interface CalendarChangeEvent<T = Calendar> {
9
- /**
10
- * A native DOM event.
11
- */
12
- nativeEvent?: any;
13
- /**
14
- * A React Synthetic Event.
15
- */
16
- syntheticEvent: React.SyntheticEvent<any>;
17
- /**
18
- * The new value.
19
- */
20
- value: Date;
21
- /**
22
- * The Calendar element.
23
- */
24
- target: T;
25
- }
26
- /**
27
- * Represents the props of the [KendoReact Calendar component]({% slug overview_calendar %}). The generic argument is passed to the `onChange` property and is used as a target in the [`CalendarChangeEvent`]({% slug api_dateinputs_calendarchangeevent %}) interface.
28
- */
29
- export interface CalendarProps<T = any> extends CalendarSettings {
30
- /** @hidden */
31
- _ref?: (instance: {
32
- element: HTMLDivElement | null;
33
- }) => void;
34
- /**
35
- * Sets the default value of the Calendar.
36
- */
37
- defaultValue?: Date | null;
38
- /**
39
- * An event that is called after the value of the Calendar has changed.
40
- */
41
- onChange?: (event: CalendarChangeEvent<T>) => void;
42
- /**
43
- * Sets the value of the Calendar.
44
- */
45
- value?: Date | null;
46
- /**
47
- * @hidden
48
- */
49
- mobileMode?: boolean;
50
- }
51
- /**
52
- * @hidden
53
- */
54
- export interface CalendarState {
55
- value: Date | null;
56
- activeView: CalendarViewEnum;
57
- focusedDate: Date;
58
- }
59
- /** @hidden */
60
- export declare class CalendarWithoutContext extends React.Component<CalendarProps, CalendarState> {
61
- /**
62
- * @hidden
63
- */
64
- static displayName: string;
65
- /**
66
- * @hidden
67
- */
68
- static propTypes: {
69
- className: PropTypes.Requireable<string>;
70
- defaultActiveView: PropTypes.Requireable<ActiveView>;
71
- defaultValue: PropTypes.Requireable<Date>;
72
- disabled: PropTypes.Requireable<boolean>;
73
- focusedDate: PropTypes.Requireable<Date>;
74
- id: PropTypes.Requireable<string>;
75
- ariaLabelledBy: PropTypes.Requireable<string>;
76
- ariaDescribedBy: PropTypes.Requireable<string>;
77
- max: PropTypes.Requireable<Date>;
78
- min: PropTypes.Requireable<Date>;
79
- navigation: PropTypes.Requireable<boolean>;
80
- smoothScroll: PropTypes.Requireable<boolean>;
81
- onBlur: PropTypes.Requireable<(...args: any[]) => any>;
82
- onChange: PropTypes.Requireable<(...args: any[]) => any>;
83
- onFocus: PropTypes.Requireable<(...args: any[]) => any>;
84
- tabIndex: PropTypes.Requireable<number>;
85
- value: PropTypes.Requireable<Date>;
86
- weekNumber: PropTypes.Requireable<boolean>;
87
- topView: (props: CalendarProps, propName: keyof CalendarProps<any>, componentName: string) => Error | null;
88
- bottomView: (props: CalendarProps, propName: keyof CalendarProps<any>, componentName: string) => Error | null;
89
- };
90
- /**
91
- * @hidden
92
- */
93
- static defaultProps: {
94
- disabled: boolean;
95
- min: Date;
96
- max: Date;
97
- navigation: boolean;
98
- defaultActiveView: ActiveView;
99
- defaultValue: null;
100
- topView: ActiveView;
101
- bottomView: ActiveView;
102
- };
103
- protected dom: DOMService;
104
- protected scrollSyncService: ScrollSyncService | null;
105
- private valueDuringOnChange?;
106
- private focusedDate;
107
- private cellUID;
108
- private id;
109
- private Navigation;
110
- private calendarViewList;
111
- private _element;
112
- private intl;
113
- private bus;
114
- private service;
115
- private navigation;
116
- private isActive;
117
- private oldValue;
118
- private didNavigationChange;
119
- /**
120
- * Gets the wrapping element of the Calendar.
121
- */
122
- get element(): HTMLDivElement | null;
123
- /**
124
- * Gets the value of the Calendar.
125
- */
126
- get value(): Date | null;
127
- protected get min(): Date;
128
- protected get max(): Date;
129
- protected get bottomView(): CalendarViewEnum;
130
- protected get topView(): CalendarViewEnum;
131
- constructor(props: CalendarProps);
132
- /**
133
- * @hidden
134
- */
135
- componentDidMount(): void;
136
- /**
137
- * @hidden
138
- */
139
- componentDidUpdate(_: CalendarProps, prevState: CalendarState): void;
140
- /**
141
- * @hidden
142
- */
143
- focus: () => void;
144
- /**
145
- * @hidden
146
- */
147
- render(): JSX.Element;
148
- private shouldScroll;
149
- private handleScroll;
150
- private handleNavigationChange;
151
- private handleViewChange;
152
- private handleDateChange;
153
- private handleFocus;
154
- private handleBlur;
155
- private handleKeyDown;
156
- private handleMouseDown;
157
- private handleClick;
158
- }
159
- /**
160
- * Represents the PropsContext of the `Calendar` component.
161
- * Used for global configuration of all `Calendar` instances.
162
- *
163
- * For more information, refer to the [DateInputs Props Context]({% slug props-context_dateinputs %}) article.
164
- */
165
- export declare const CalendarPropsContext: React.Context<(p: CalendarProps<any>) => CalendarProps<any>>;
166
- /**
167
- * Represent the `ref` of the Calendar component.
168
- */
169
- export interface CalendarHandle extends Pick<CalendarWithoutContext, keyof CalendarWithoutContext> {
170
- /**
171
- * Returns the HTML element of the Calendar component.
172
- */
173
- element: HTMLDivElement | null;
174
- /**
175
- * Returns the `value` of the Calendar component.
176
- */
177
- value: Date | null;
178
- }
179
- /** @hidden */
180
- export declare type Calendar = CalendarHandle;
181
- /**
182
- * Represents the KendoReact Calendar Component.
183
- *
184
- * Accepts properties of type [CalendarProps]({% slug api_dateinputs_calendarprops %}).
185
- * Obtaining the `ref` returns an object of type [CalendarHandle]({% slug api_dateinputs_calendarhandle %}).
186
- */
187
- export declare const Calendar: React.ForwardRefExoticComponent<CalendarProps<any> & React.RefAttributes<any>>;
@@ -1,388 +0,0 @@
1
- var __extends = (this && this.__extends) || (function () {
2
- var extendStatics = function (d, b) {
3
- extendStatics = Object.setPrototypeOf ||
4
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
5
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
6
- return extendStatics(d, b);
7
- };
8
- return function (d, b) {
9
- if (typeof b !== "function" && b !== null)
10
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
11
- extendStatics(d, b);
12
- function __() { this.constructor = d; }
13
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
14
- };
15
- })();
16
- import * as React from 'react';
17
- import * as PropTypes from 'prop-types';
18
- import { classNames, guid, Keys, validatePackage, withPropsContext, createPropsContext, setScrollbarWidth } from '@progress/kendo-react-common';
19
- import { cloneDate, getDate, isEqualDate } from '@progress/kendo-date-math';
20
- import { provideIntlService, registerForIntl } from '@progress/kendo-react-intl';
21
- import { packageMetadata } from '../../package-metadata';
22
- import { ViewList } from './ViewList';
23
- import { Navigation } from './Navigation';
24
- import { CalendarViewEnum } from '../models';
25
- import { getToday, dateInRange, isInRange, viewInRange, MIN_DATE, MAX_DATE } from '../../utils';
26
- import { BusViewService, DOMService, ScrollSyncService, NavigationService } from '../services';
27
- var virtualizationProp = function (x) { return x ? x.virtualization : null; };
28
- var calculateValue = function (min, max, stateValue, propValue) {
29
- if (min === void 0) { min = CalendarWithoutContext.defaultProps.min; }
30
- if (max === void 0) { max = CalendarWithoutContext.defaultProps.max; }
31
- return propValue !== undefined
32
- ? propValue !== null && isInRange(getDate(propValue), min, max)
33
- ? propValue
34
- : null
35
- : stateValue !== null && isInRange(getDate(stateValue), min, max)
36
- ? stateValue
37
- : null;
38
- };
39
- /** @hidden */
40
- var CalendarWithoutContext = /** @class */ (function (_super) {
41
- __extends(CalendarWithoutContext, _super);
42
- function CalendarWithoutContext(props) {
43
- var _this = _super.call(this, props) || this;
44
- _this.scrollSyncService = null;
45
- _this.focusedDate = null;
46
- _this.cellUID = guid();
47
- _this.id = guid();
48
- _this.Navigation = null;
49
- _this.calendarViewList = null;
50
- _this._element = null;
51
- _this.intl = null;
52
- _this.service = null;
53
- _this.isActive = false;
54
- _this.didNavigationChange = false;
55
- /**
56
- * @hidden
57
- */
58
- _this.focus = function () {
59
- if (_this._element) {
60
- _this._element.focus();
61
- }
62
- };
63
- _this.shouldScroll = function () { return _this.didNavigationChange; };
64
- _this.handleScroll = function (event) {
65
- if (!_this.scrollSyncService) {
66
- return;
67
- }
68
- _this.scrollSyncService.sync(virtualizationProp(_this.Navigation), virtualizationProp(_this.calendarViewList), event);
69
- };
70
- _this.handleNavigationChange = function (event) {
71
- if (_this.props.disabled) {
72
- return;
73
- }
74
- _this.didNavigationChange = true;
75
- var focusedDate = cloneDate(event.value);
76
- _this.setState({ focusedDate: focusedDate });
77
- };
78
- _this.handleViewChange = function (_a) {
79
- var view = _a.view;
80
- if (_this.scrollSyncService) {
81
- _this.scrollSyncService.configure(view);
82
- }
83
- _this.setState({ activeView: view });
84
- };
85
- _this.handleDateChange = function (event) {
86
- var value = cloneDate(event.value);
87
- var focusedDate = cloneDate(event.value);
88
- var canNavigateDown = _this.bus.canMoveDown(_this.state.activeView);
89
- if (_this.props.disabled) {
90
- return;
91
- }
92
- if (canNavigateDown) {
93
- if (event.isTodayClick) {
94
- _this.bus.moveToBottom(_this.state.activeView);
95
- }
96
- else {
97
- _this.bus.moveDown(_this.state.activeView, event.syntheticEvent);
98
- _this.setState({ focusedDate: focusedDate });
99
- return;
100
- }
101
- }
102
- _this.setState({ value: value, focusedDate: focusedDate });
103
- _this.valueDuringOnChange = value;
104
- var onChange = _this.props.onChange;
105
- if (onChange) {
106
- var args = {
107
- syntheticEvent: event.syntheticEvent,
108
- nativeEvent: event.nativeEvent,
109
- value: value,
110
- target: _this
111
- };
112
- onChange.call(undefined, args);
113
- }
114
- _this.valueDuringOnChange = undefined;
115
- };
116
- _this.handleFocus = function (event) {
117
- _this.isActive = true;
118
- if (!_this.calendarViewList) {
119
- return;
120
- }
121
- _this.calendarViewList.focusActiveDate();
122
- var onFocus = _this.props.onFocus;
123
- if (onFocus) {
124
- onFocus.call(undefined, event);
125
- }
126
- };
127
- _this.handleBlur = function (event) {
128
- _this.isActive = false;
129
- if (!_this.calendarViewList) {
130
- return;
131
- }
132
- _this.calendarViewList.blurActiveDate();
133
- var onBlur = _this.props.onBlur;
134
- if (onBlur) {
135
- onBlur.call(undefined, event);
136
- }
137
- };
138
- _this.handleKeyDown = function (event) {
139
- var keyCode = event.keyCode;
140
- if (!_this.focusedDate || !_this.service) {
141
- return;
142
- }
143
- if (keyCode === Keys.enter) {
144
- if (_this.value !== null
145
- && isEqualDate(_this.focusedDate, _this.value)) {
146
- var viewDate = dateInRange(_this.focusedDate, _this.min, _this.max);
147
- virtualizationProp(_this.calendarViewList).scrollToIndex(_this.service.skip(viewDate, _this.min));
148
- }
149
- var args = {
150
- syntheticEvent: event,
151
- nativeEvent: event.nativeEvent,
152
- value: _this.focusedDate,
153
- target: _this
154
- };
155
- _this.handleDateChange(args);
156
- }
157
- else {
158
- var candidate = dateInRange(_this.navigation.move(_this.focusedDate, _this.navigation.action(event), _this.state.activeView, _this.service, event), _this.min, _this.max);
159
- if (isEqualDate(_this.focusedDate, candidate)) {
160
- return;
161
- }
162
- _this.setState({ focusedDate: candidate });
163
- }
164
- event.preventDefault();
165
- };
166
- _this.handleMouseDown = function (event) {
167
- event.preventDefault();
168
- };
169
- _this.handleClick = function (_) {
170
- if (_this._element) {
171
- _this._element.focus({ preventScroll: true });
172
- }
173
- };
174
- validatePackage(packageMetadata);
175
- var value = calculateValue(_this.min, _this.max, _this.props.defaultValue || CalendarWithoutContext.defaultProps.defaultValue, _this.props.value);
176
- _this.state = {
177
- value: value,
178
- activeView: viewInRange(CalendarViewEnum[props.defaultActiveView], _this.bottomView, _this.topView),
179
- focusedDate: dateInRange(props.focusedDate
180
- || value
181
- || getToday(), _this.min, _this.max)
182
- };
183
- _this.dom = new DOMService();
184
- _this.bus = new BusViewService(_this.handleViewChange);
185
- _this.navigation = new NavigationService(_this.bus);
186
- _this.oldValue = value;
187
- return _this;
188
- }
189
- Object.defineProperty(CalendarWithoutContext.prototype, "element", {
190
- /**
191
- * Gets the wrapping element of the Calendar.
192
- */
193
- get: function () {
194
- return this._element;
195
- },
196
- enumerable: false,
197
- configurable: true
198
- });
199
- Object.defineProperty(CalendarWithoutContext.prototype, "value", {
200
- /**
201
- * Gets the value of the Calendar.
202
- */
203
- get: function () {
204
- return this.valueDuringOnChange !== undefined
205
- ? this.valueDuringOnChange
206
- : this.props.value !== undefined
207
- ? this.props.value
208
- : this.state.value;
209
- },
210
- enumerable: false,
211
- configurable: true
212
- });
213
- Object.defineProperty(CalendarWithoutContext.prototype, "min", {
214
- get: function () {
215
- return getDate(this.props.min !== undefined
216
- ? this.props.min
217
- : CalendarWithoutContext.defaultProps.min);
218
- },
219
- enumerable: false,
220
- configurable: true
221
- });
222
- Object.defineProperty(CalendarWithoutContext.prototype, "max", {
223
- get: function () {
224
- return getDate(this.props.max !== undefined
225
- ? this.props.max
226
- : CalendarWithoutContext.defaultProps.max);
227
- },
228
- enumerable: false,
229
- configurable: true
230
- });
231
- Object.defineProperty(CalendarWithoutContext.prototype, "bottomView", {
232
- get: function () {
233
- return CalendarViewEnum[this.props.bottomView !== undefined
234
- ? this.props.bottomView
235
- : CalendarWithoutContext.defaultProps.bottomView];
236
- },
237
- enumerable: false,
238
- configurable: true
239
- });
240
- Object.defineProperty(CalendarWithoutContext.prototype, "topView", {
241
- get: function () {
242
- return CalendarViewEnum[this.props.topView !== undefined
243
- ? this.props.topView
244
- : CalendarWithoutContext.defaultProps.topView];
245
- },
246
- enumerable: false,
247
- configurable: true
248
- });
249
- /**
250
- * @hidden
251
- */
252
- CalendarWithoutContext.prototype.componentDidMount = function () {
253
- var _this = this;
254
- // Async calculation of height to avoid animation cancellation
255
- Promise.resolve().then(function () {
256
- setScrollbarWidth();
257
- if (!_this._element) {
258
- return;
259
- }
260
- _this.dom.calculateHeights(_this._element);
261
- _this.scrollSyncService = new ScrollSyncService(_this.dom);
262
- _this.scrollSyncService.configure(_this.state.activeView);
263
- _this.forceUpdate();
264
- });
265
- };
266
- /**
267
- * @hidden
268
- */
269
- CalendarWithoutContext.prototype.componentDidUpdate = function (_, prevState) {
270
- setScrollbarWidth();
271
- if (prevState.activeView !== this.state.activeView && this.scrollSyncService) {
272
- this.scrollSyncService.configure(this.state.activeView);
273
- }
274
- if (this.calendarViewList) {
275
- (this.isActive ? this.calendarViewList.focusActiveDate : this.calendarViewList.blurActiveDate)();
276
- }
277
- this.didNavigationChange = false;
278
- this.oldValue = this.value;
279
- };
280
- /**
281
- * @hidden
282
- */
283
- CalendarWithoutContext.prototype.render = function () {
284
- var _this = this;
285
- if (this.props._ref) {
286
- this.props._ref(this);
287
- }
288
- var didValueChange = this.value !== null && this.oldValue !== null
289
- ? !isEqualDate(this.value, this.oldValue)
290
- : this.value !== this.oldValue;
291
- var activeView = viewInRange(this.state.activeView, CalendarViewEnum[this.props.bottomView !== undefined
292
- ? this.props.bottomView
293
- : CalendarWithoutContext.defaultProps.bottomView], CalendarViewEnum[this.props.topView !== undefined
294
- ? this.props.topView
295
- : CalendarWithoutContext.defaultProps.topView]);
296
- var value = calculateValue(this.min, this.max, this.value, this.value);
297
- var sanitizedValue = value ? getDate(value) : null;
298
- this.focusedDate = getDate(dateInRange(didValueChange && value !== null
299
- ? value
300
- : this.state.focusedDate, this.min, this.max));
301
- this.intl = provideIntlService(this);
302
- this.bus.configure(this.bottomView, this.topView);
303
- this.service = this.bus.service(activeView, this.intl);
304
- var _a = this.props.smoothScroll, smoothScroll = _a === void 0 ? Number.parseFloat(React.version) < 18 : _a;
305
- var rootClassNames = classNames('k-widget k-calendar k-calendar-infinite', {
306
- 'k-disabled': this.props.disabled,
307
- 'k-week-number': this.props.weekNumber,
308
- 'k-calendar-lg': this.props.mobileMode
309
- }, this.props.className);
310
- var calendarBody = [this.props.navigation && (React.createElement(Navigation, { key: 0, ref: function (el) { _this.Navigation = el; }, activeView: this.state.activeView, focusedDate: this.focusedDate, min: this.min, max: this.max, onScroll: this.handleScroll, onChange: this.handleNavigationChange, service: this.service, dom: this.dom, navigationItem: this.props.navigationItem, tabIndex: this.props.tabIndex })), (React.createElement(ViewList, { key: 1, ref: function (el) { _this.calendarViewList = el; }, activeView: this.state.activeView, focusedDate: this.focusedDate, min: this.min, max: this.max, bus: this.bus, shouldScroll: this.shouldScroll, onScroll: this.handleScroll, service: this.service, cell: this.props.cell, weekCell: this.props.weekCell, dom: this.dom, smoothScroll: smoothScroll, showWeekNumbers: this.props.weekNumber, onChange: this.handleDateChange, value: sanitizedValue, cellUID: this.cellUID, headerTitle: this.props.headerTitle, tabIndex: this.props.tabIndex }))];
311
- return (React.createElement("div", { ref: function (el) { _this._element = el; }, className: rootClassNames, id: this.props.id || this.id, "aria-labelledby": this.props.ariaLabelledBy, "aria-describedby": this.props.ariaDescribedBy, "aria-disabled": this.props.disabled, tabIndex: !this.props.disabled ? this.props.tabIndex || 0 : undefined, onFocus: this.handleFocus, onBlur: this.handleBlur, onKeyDown: this.handleKeyDown, onMouseDown: this.handleMouseDown, onClick: this.handleClick }, calendarBody));
312
- };
313
- /**
314
- * @hidden
315
- */
316
- CalendarWithoutContext.displayName = 'Calendar';
317
- /**
318
- * @hidden
319
- */
320
- CalendarWithoutContext.propTypes = {
321
- className: PropTypes.string,
322
- defaultActiveView: PropTypes.oneOf(['month', 'year', 'decade', 'century']),
323
- defaultValue: PropTypes.instanceOf(Date),
324
- disabled: PropTypes.bool,
325
- focusedDate: PropTypes.instanceOf(Date),
326
- id: PropTypes.string,
327
- ariaLabelledBy: PropTypes.string,
328
- ariaDescribedBy: PropTypes.string,
329
- max: PropTypes.instanceOf(Date),
330
- min: PropTypes.instanceOf(Date),
331
- navigation: PropTypes.bool,
332
- smoothScroll: PropTypes.bool,
333
- onBlur: PropTypes.func,
334
- onChange: PropTypes.func,
335
- onFocus: PropTypes.func,
336
- tabIndex: PropTypes.number,
337
- value: PropTypes.instanceOf(Date),
338
- weekNumber: PropTypes.bool,
339
- topView: function (props, propName, componentName) {
340
- var prop = props[propName];
341
- var bottomView = props.bottomView;
342
- if (prop && bottomView && CalendarViewEnum[prop] < CalendarViewEnum[bottomView]) {
343
- return new Error("Invalid prop + ".concat(propName, " suplied to ").concat(componentName, ".\n ").concat(propName, " can not be smaller than bottomView.\n "));
344
- }
345
- return null;
346
- },
347
- bottomView: function (props, propName, componentName) {
348
- var prop = props[propName];
349
- var topView = props.topView;
350
- if (prop && topView && CalendarViewEnum[prop] > CalendarViewEnum[topView]) {
351
- return new Error("Invalid prop + ".concat(propName, " suplied to ").concat(componentName, ".\n ").concat(propName, " can not be bigger than topView.\n "));
352
- }
353
- return null;
354
- }
355
- };
356
- /**
357
- * @hidden
358
- */
359
- CalendarWithoutContext.defaultProps = {
360
- disabled: false,
361
- min: MIN_DATE,
362
- max: MAX_DATE,
363
- navigation: true,
364
- defaultActiveView: 'month',
365
- defaultValue: null,
366
- topView: 'century',
367
- bottomView: 'month'
368
- };
369
- return CalendarWithoutContext;
370
- }(React.Component));
371
- export { CalendarWithoutContext };
372
- /**
373
- * Represents the PropsContext of the `Calendar` component.
374
- * Used for global configuration of all `Calendar` instances.
375
- *
376
- * For more information, refer to the [DateInputs Props Context]({% slug props-context_dateinputs %}) article.
377
- */
378
- export var CalendarPropsContext = createPropsContext();
379
- /* eslint-disable @typescript-eslint/no-redeclare -- intentionally naming the component the same as the type */
380
- /**
381
- * Represents the KendoReact Calendar Component.
382
- *
383
- * Accepts properties of type [CalendarProps]({% slug api_dateinputs_calendarprops %}).
384
- * Obtaining the `ref` returns an object of type [CalendarHandle]({% slug api_dateinputs_calendarhandle %}).
385
- */
386
- export var Calendar = withPropsContext(CalendarPropsContext, CalendarWithoutContext);
387
- Calendar.displayName = 'KendoReactCalendar';
388
- registerForIntl(CalendarWithoutContext);