@progress/kendo-react-dateinputs 6.1.1 → 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,261 +0,0 @@
1
- "use strict";
2
- var __extends = (this && this.__extends) || (function () {
3
- var extendStatics = function (d, b) {
4
- extendStatics = Object.setPrototypeOf ||
5
- ({ __proto__: [] } instanceof Array && function (d, b) { d.__proto__ = b; }) ||
6
- function (d, b) { for (var p in b) if (Object.prototype.hasOwnProperty.call(b, p)) d[p] = b[p]; };
7
- return extendStatics(d, b);
8
- };
9
- return function (d, b) {
10
- if (typeof b !== "function" && b !== null)
11
- throw new TypeError("Class extends value " + String(b) + " is not a constructor or null");
12
- extendStatics(d, b);
13
- function __() { this.constructor = d; }
14
- d.prototype = b === null ? Object.create(b) : (__.prototype = b.prototype, new __());
15
- };
16
- })();
17
- Object.defineProperty(exports, "__esModule", { value: true });
18
- exports.ViewList = void 0;
19
- var React = require("react");
20
- var PropTypes = require("prop-types");
21
- var kendo_react_common_1 = require("@progress/kendo-react-common");
22
- var kendo_date_math_1 = require("@progress/kendo-date-math");
23
- var kendo_react_intl_1 = require("@progress/kendo-react-intl");
24
- var Virtualization_1 = require("../../virtualization/Virtualization");
25
- var View_1 = require("./View");
26
- var Header_1 = require("./Header");
27
- var utils_1 = require("../../utils");
28
- var models_1 = require("../models");
29
- var TodayCommand_1 = require("./TodayCommand");
30
- var VIEWS_COUNT = 5;
31
- /**
32
- * @hidden
33
- */
34
- var ViewList = /** @class */ (function (_super) {
35
- __extends(ViewList, _super);
36
- function ViewList(props) {
37
- var _this = _super.call(this, props) || this;
38
- _this.virtualization = null;
39
- _this.calendarView = null;
40
- _this.table = null;
41
- _this.intl = null;
42
- _this.bottomOffset = 0;
43
- _this.viewOffset = 0;
44
- _this.viewHeight = 0;
45
- _this._element = null;
46
- _this.isActive = false;
47
- _this.animateToIndex = true;
48
- _this.shouldScroll = false;
49
- _this.focusActiveDate = function () {
50
- if (!_this._element) {
51
- return;
52
- }
53
- var focusedCell = _this._element.querySelector('td.k-focus');
54
- var nextActiveCell = _this._element.querySelector('.k-state-pending-focus');
55
- if (focusedCell && focusedCell[0]) {
56
- focusedCell[0].classList.remove('k-focus');
57
- }
58
- if (nextActiveCell) {
59
- nextActiveCell.classList.add('k-focus');
60
- }
61
- _this.isActive = true;
62
- };
63
- _this.blurActiveDate = function () {
64
- if (!_this._element) {
65
- return;
66
- }
67
- var focusedCell = _this._element.querySelector('td.k-focus');
68
- if (focusedCell) {
69
- focusedCell.classList.remove('k-focus');
70
- }
71
- _this.isActive = false;
72
- };
73
- _this.handleVirtualizationMount = function (virtualization) {
74
- _this.virtualization = virtualization;
75
- if (_this.virtualization && _this.table) {
76
- _this.table.style.transform = "translateY(".concat(_this.viewOffset, "px)");
77
- var viewDate = (0, utils_1.dateInRange)(_this.props.focusedDate, _this.props.min, _this.props.max);
78
- var indexToScroll = _this.props.service.skip(viewDate, _this.props.min);
79
- _this.virtualization.scrollToIndex(indexToScroll);
80
- }
81
- };
82
- _this.buildMonthView = function (cols, weekNames) {
83
- return (React.createElement("table", { key: "calendar-view-list-weekdays", className: "k-calendar-table k-calendar-weekdays", role: "grid", tabIndex: _this.props.tabIndex },
84
- React.createElement("colgroup", null, cols.map(function (_, idx) { return (React.createElement("col", { key: idx })); })),
85
- React.createElement("thead", { className: "k-calendar-thead" },
86
- React.createElement("tr", { className: "k-calendar-tr" }, weekNames.map(function (name, idx) { return (React.createElement("th", { key: idx, className: "k-calendar-th" }, name)); })))));
87
- };
88
- _this.buildDates = function (cols, dates) {
89
- var cellUID = _this.props.cellUID;
90
- return (React.createElement("table", { className: "k-calendar-table", ref: function (table) { return _this.table = table; }, role: "grid", tabIndex: _this.props.tabIndex, "aria-activedescendant": cellUID + _this.props.focusedDate.getTime() },
91
- React.createElement("colgroup", null, cols.map(function (_, idx) { return (React.createElement("col", { key: idx })); })),
92
- dates.map(function (date) { return (React.createElement(View_1.View, { ref: function (el) { if (!_this.calendarView) {
93
- _this.calendarView = el;
94
- } }, key: date.getTime(), activeView: _this.props.activeView, viewDate: date, min: _this.props.min, max: _this.props.max, cellUID: cellUID, focusedDate: _this.props.focusedDate, cell: _this.props.cell, selectedDate: _this.props.value, showWeekNumbers: _this.weekNumber, onChange: _this.handleDateChange, bus: _this.props.bus, service: _this.props.service, weekCell: _this.props.weekCell })); })));
95
- };
96
- _this.calculateHeights = function () {
97
- if (!_this.props.dom) {
98
- return;
99
- }
100
- var scrollableHeight = _this.props.activeView === models_1.CalendarViewEnum.month ?
101
- _this.props.dom.scrollableContentHeight :
102
- _this.props.dom.scrollableYearContentHeight;
103
- _this.bottomOffset = scrollableHeight - _this.props.dom.viewHeight(_this.props.activeView);
104
- _this.viewOffset = -1 * _this.props.dom.headerHeight;
105
- _this.viewHeight = _this.props.dom.viewHeight(_this.props.activeView) || 1;
106
- };
107
- _this.getTake = function (skip, total) {
108
- return Math.min(total - skip, _this.take);
109
- };
110
- _this.handleScrollAction = function (_a) {
111
- var index = _a.index, scrollAction = _a.scrollAction, pageAction = _a.pageAction;
112
- var skip = pageAction ? pageAction.skip : _this.state.skip;
113
- if (_this.state.index !== index || _this.state.skip !== skip) {
114
- _this.setState({ index: index, skip: skip });
115
- }
116
- if (_this.table && scrollAction) {
117
- var translate = "translateY(".concat(scrollAction.offset, "px)");
118
- _this.table.style.transform = translate;
119
- }
120
- };
121
- _this.handleTodayClick = function (event) {
122
- _this.shouldScroll = true;
123
- _this.handleDateChange.call(undefined, event, true);
124
- };
125
- _this.handleDateChange = function (event, isTodayClick) {
126
- if (isTodayClick === void 0) { isTodayClick = false; }
127
- var onChange = _this.props.onChange;
128
- if (onChange) {
129
- var args = {
130
- syntheticEvent: event.syntheticEvent,
131
- nativeEvent: event.nativeEvent,
132
- value: (0, kendo_date_math_1.cloneDate)(event.value),
133
- target: _this,
134
- isTodayClick: isTodayClick
135
- };
136
- onChange.call(undefined, args);
137
- }
138
- };
139
- _this.lastView = _this.props.activeView;
140
- _this.lastFocus = _this.props.focusedDate;
141
- _this.state = {
142
- skip: _this.props.service.skip(_this.props.focusedDate, _this.props.min),
143
- index: _this.props.service.skip(_this.props.focusedDate, _this.props.min)
144
- };
145
- return _this;
146
- }
147
- Object.defineProperty(ViewList.prototype, "element", {
148
- get: function () {
149
- return this._element;
150
- },
151
- enumerable: false,
152
- configurable: true
153
- });
154
- Object.defineProperty(ViewList.prototype, "weekNames", {
155
- get: function () {
156
- this.intl = (0, kendo_react_intl_1.provideIntlService)(this);
157
- var weekNames = (0, utils_1.shiftWeekNames)(this.intl.dateFormatNames({ nameType: 'short', type: 'days' }), this.intl.firstDay());
158
- return this.weekNumber ? [''].concat(weekNames) : weekNames;
159
- },
160
- enumerable: false,
161
- configurable: true
162
- });
163
- Object.defineProperty(ViewList.prototype, "weekNumber", {
164
- get: function () {
165
- return Boolean(this.props.showWeekNumbers && this.props.activeView === models_1.CalendarViewEnum.month);
166
- },
167
- enumerable: false,
168
- configurable: true
169
- });
170
- Object.defineProperty(ViewList.prototype, "take", {
171
- get: function () {
172
- return this.props.take !== undefined ? this.props.take : ViewList.defaultProps.take;
173
- },
174
- enumerable: false,
175
- configurable: true
176
- });
177
- Object.defineProperty(ViewList.prototype, "animate", {
178
- get: function () {
179
- return Boolean(this.props.smoothScroll && this.animateToIndex);
180
- },
181
- enumerable: false,
182
- configurable: true
183
- });
184
- Object.defineProperty(ViewList.prototype, "todayIsInRange", {
185
- get: function () {
186
- return (0, utils_1.isInRange)((0, utils_1.getToday)(), (0, kendo_date_math_1.getDate)(this.props.min), (0, kendo_date_math_1.getDate)(this.props.max));
187
- },
188
- enumerable: false,
189
- configurable: true
190
- });
191
- ViewList.prototype.componentDidUpdate = function (_prevProps, _prevState) {
192
- this.shouldScroll = false;
193
- if (this.indexToScroll !== undefined && this.virtualization) {
194
- this.virtualization[this.animate ? 'animateToIndex' : 'scrollToIndex'](this.indexToScroll);
195
- }
196
- if (this.isActive) {
197
- this.focusActiveDate();
198
- }
199
- this.lastView = this.props.activeView;
200
- // this.lastFocus = this.props.focusedDate;
201
- this.indexToScroll = undefined;
202
- };
203
- ViewList.prototype.render = function () {
204
- var _this = this;
205
- this.calculateHeights();
206
- var didViewChange = this.lastView !== this.props.activeView;
207
- var focusedDate = (0, utils_1.dateInRange)(this.props.focusedDate, this.props.min, this.props.max);
208
- var skip = !didViewChange ? this.state.skip : this.props.service.skip(focusedDate, this.props.min);
209
- var total = this.props.service.total(this.props.min, this.props.max);
210
- var take = this.getTake(skip, total);
211
- var viewDate = this.props.service.addToDate(this.props.min, skip);
212
- var activeDate = this.props.service.addToDate(this.props.min, this.state.index);
213
- var cols = new Array(this.props.service.rowLength(this.weekNumber)).fill('');
214
- var didViewChanged = this.props.activeView !== this.lastView;
215
- this.animateToIndex = !didViewChanged;
216
- if (didViewChanged
217
- || !(0, kendo_date_math_1.isEqualDate)(this.lastFocus, focusedDate)
218
- || this.shouldScroll
219
- || (!this.props.shouldScroll || this.props.shouldScroll())) {
220
- this.indexToScroll = this.props.service.skip(focusedDate, this.props.min);
221
- }
222
- this.lastFocus = focusedDate;
223
- var rootClassNames = (0, kendo_react_common_1.classNames)('k-calendar-view k-vstack', {
224
- 'k-calendar-monthview': this.props.activeView === models_1.CalendarViewEnum.month,
225
- 'k-calendar-yearview': this.props.activeView === models_1.CalendarViewEnum.year,
226
- 'k-calendar-decadeview': this.props.activeView === models_1.CalendarViewEnum.decade,
227
- 'k-calendar-centuryview': this.props.activeView === models_1.CalendarViewEnum.century
228
- });
229
- var dates = this.buildDates(cols, this.props.service.datesList(viewDate, take));
230
- var viewListBody = (React.createElement(React.Fragment, null,
231
- React.createElement(Header_1.Header, { key: "calendar-view-list-header", currentDate: activeDate, min: this.props.min, max: this.props.max, activeView: this.props.activeView, bus: this.props.bus, service: this.props.service, headerTitle: this.props.headerTitle, commands: (React.createElement(React.Fragment, null,
232
- React.createElement(TodayCommand_1.TodayCommand, { min: this.props.min, max: this.props.max, onClick: this.handleTodayClick, disabled: !this.todayIsInRange, tabIndex: this.props.tabIndex }))) }),
233
- this.props.activeView === models_1.CalendarViewEnum.month && this.buildMonthView(cols, this.weekNames),
234
- React.createElement(Virtualization_1.Virtualization, { key: "calendar-view-list-content", skip: skip, take: this.take, total: total, itemHeight: this.viewHeight, topOffset: this.viewOffset, bottomOffset: this.bottomOffset, scrollOffsetSize: this.viewOffset, maxScrollDifference: this.viewHeight, onScroll: this.props.onScroll, onScrollAction: this.handleScrollAction, onMount: this.handleVirtualizationMount, children: dates, tabIndex: this.props.tabIndex })));
235
- return (React.createElement("div", { ref: function (el) { _this._element = el; }, className: rootClassNames }, this.props.dom.didCalculate ? viewListBody : null));
236
- };
237
- ViewList.propTypes = {
238
- activeView: PropTypes.number.isRequired,
239
- bottomOffset: PropTypes.number,
240
- cellUID: PropTypes.string.isRequired,
241
- focusedDate: PropTypes.instanceOf(Date).isRequired,
242
- max: PropTypes.instanceOf(Date).isRequired,
243
- min: PropTypes.instanceOf(Date).isRequired,
244
- onChange: PropTypes.func,
245
- showWeekNumbers: PropTypes.bool,
246
- smoothScroll: PropTypes.bool,
247
- take: PropTypes.number,
248
- value: PropTypes.instanceOf(Date),
249
- viewHeight: PropTypes.number,
250
- viewOffset: PropTypes.number,
251
- tabIndex: PropTypes.number
252
- };
253
- ViewList.defaultProps = {
254
- take: VIEWS_COUNT,
255
- showWeekNumbers: false,
256
- smoothScroll: true
257
- };
258
- return ViewList;
259
- }(React.Component));
260
- exports.ViewList = ViewList;
261
- (0, kendo_react_intl_1.registerForIntl)(ViewList);
@@ -1,4 +0,0 @@
1
- /**
2
- * The literal type that defines all possible Calendar views.
3
- */
4
- export declare type ActiveView = 'month' | 'year' | 'decade' | 'century';
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- /**
2
- * The Enum which defines all possible Calendar view types.
3
- */
4
- export declare enum CalendarViewEnum {
5
- month = 0,
6
- year = 1,
7
- decade = 2,
8
- century = 3
9
- }
@@ -1,13 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.CalendarViewEnum = void 0;
4
- /**
5
- * The Enum which defines all possible Calendar view types.
6
- */
7
- var CalendarViewEnum;
8
- (function (CalendarViewEnum) {
9
- CalendarViewEnum[CalendarViewEnum["month"] = 0] = "month";
10
- CalendarViewEnum[CalendarViewEnum["year"] = 1] = "year";
11
- CalendarViewEnum[CalendarViewEnum["decade"] = 2] = "decade";
12
- CalendarViewEnum[CalendarViewEnum["century"] = 3] = "century";
13
- })(CalendarViewEnum = exports.CalendarViewEnum || (exports.CalendarViewEnum = {}));
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,9 +0,0 @@
1
- /**
2
- * Represents the selection modes of the MultiViewCalendar.
3
- *
4
- * The supported modes are:
5
- * * (Default) `single`—Renders a single-date selection.
6
- * * `multiple`—Renders a multiple-date selection.
7
- * * `range`—Renders a date-range selection.
8
- */
9
- export declare type MultiViewCalendarMode = 'single' | 'multiple' | 'range';
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,112 +0,0 @@
1
- /// <reference types="react" />
2
- import { ActiveView } from './ActiveView';
3
- import { SelectionRangeEnd } from './SelectionRangeEnd';
4
- import { MultiViewCalendarMode } from './MultiViewCalendarMode';
5
- import { CalendarCellProps } from '../components/CalendarCell';
6
- import { CalendarWeekCellProps } from '../components/CalendarWeekCell';
7
- import { CalendarHeaderTitleProps } from '../components/CalendarHeaderTitle';
8
- /**
9
- * @hidden
10
- */
11
- export interface MultiViewCalendarSettings {
12
- /**
13
- * Specifies which end of the defined selection range will be marked as active.
14
- *
15
- * > If the selection range is undefined, the value is ignored.
16
- */
17
- activeRangeEnd?: SelectionRangeEnd;
18
- /**
19
- * If set to `true`, the component skips the validation of whether the `from` value is after the `to` value.
20
- */
21
- allowReverse?: boolean;
22
- /**
23
- * Defines the bottommost view to which the user can navigate.
24
- */
25
- bottomView?: ActiveView;
26
- /**
27
- * Sets the `className` of the MultiViewCalendar.
28
- */
29
- className?: string;
30
- /**
31
- * Sets the default active view of the MultiViewCalendar.
32
- * If not set, the MultiViewCalendar displays the month view.
33
- */
34
- defaultActiveView?: ActiveView;
35
- /**
36
- * Sets the `views` property of the MultiViewCalendar and defines the number of rendered views.
37
- */
38
- views?: number;
39
- /**
40
- * Determines if the week number column will be displayed.
41
- */
42
- weekNumber?: boolean;
43
- /**
44
- * Fires each time the MultiViewCalendar is focused.
45
- */
46
- onFocus?: (event: React.FocusEvent<any>) => void;
47
- /**
48
- * Sets the `tabIndex` property of the MultiViewCalendar.
49
- */
50
- tabIndex?: number;
51
- /**
52
- * Defines the topmost view to which the user can navigate.
53
- */
54
- topView?: ActiveView;
55
- /**
56
- * Determines whether the MultiViewCalendar is disabled.
57
- */
58
- disabled?: boolean;
59
- /**
60
- * Sets the initial focused date of the MultiViewCalendar.
61
- */
62
- focusedDate?: Date;
63
- /**
64
- * Sets the `id` of the MultiViewCalendar.
65
- */
66
- id?: string;
67
- /**
68
- * Identifies the element(s) which will describe the component, similar to [HTML aria-describedby attribute](https://developer.mozilla.org/en-US/docs/Web/Accessibility/ARIA/ARIA_Techniques/Using_the_aria-describedby_attribute).
69
- * For example these elements could contain error or hint message.
70
- */
71
- ariaDescribedBy?: string;
72
- /**
73
- * Identifies the element(s) which will label the component.
74
- */
75
- ariaLabelledBy?: string;
76
- /**
77
- * Sets the maximum allowed date of the MultiViewCalendar. Defaults to `2099-12-31`.
78
- */
79
- max?: Date;
80
- /**
81
- * Sets the minimum allowed date of the MultiViewCalendar. Defaults to `1900-1-1`.
82
- */
83
- min?: Date;
84
- /**
85
- * Sets the selection mode of the MultiViewCalendar.
86
- *
87
- * The available modes are:
88
- * * (Default) `single`&mdash;Renders a single-date selection.
89
- * * `multiple`&mdash;Renders a multiple-date selection.
90
- * * `range`&mdash;Renders a date-range selection.
91
- */
92
- mode?: MultiViewCalendarMode;
93
- /**
94
- * Fires each time the MultiViewCalendar is blurred.
95
- */
96
- onBlur?: (event: React.FocusEvent<any>) => void;
97
- /**
98
- * Enables the customization or the override of the default MultiViewCalendar cell
99
- * ([see example]({% slug custom_rendering_multiviewcalendar %}#toc-cells-inside-the-view)).
100
- */
101
- cell?: React.ComponentType<CalendarCellProps>;
102
- /**
103
- * Enables the customization or the override of the default week cell in the MultiViewCalendar
104
- * ([see example]({% slug custom_rendering_multiviewcalendar %}#toc-cells-inside-the-week-column)).
105
- */
106
- weekCell?: React.ComponentType<CalendarWeekCellProps>;
107
- /**
108
- * Enables the customization or the override of the default header title in the MultiViewCalendar
109
- * ([see example]({% slug custom_rendering_multiviewcalendar %}#toc-titles-of-current-views)).
110
- */
111
- headerTitle?: React.ComponentType<CalendarHeaderTitleProps>;
112
- }
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,15 +0,0 @@
1
- /**
2
- * @hidden
3
- */
4
- export declare enum Action {
5
- Left = 0,
6
- Right = 1,
7
- Up = 2,
8
- Down = 3,
9
- PrevView = 4,
10
- NextView = 5,
11
- FirstInView = 6,
12
- LastInView = 7,
13
- LowerView = 8,
14
- UpperView = 9
15
- }
@@ -1,19 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.Action = void 0;
4
- /**
5
- * @hidden
6
- */
7
- var Action;
8
- (function (Action) {
9
- Action[Action["Left"] = 0] = "Left";
10
- Action[Action["Right"] = 1] = "Right";
11
- Action[Action["Up"] = 2] = "Up";
12
- Action[Action["Down"] = 3] = "Down";
13
- Action[Action["PrevView"] = 4] = "PrevView";
14
- Action[Action["NextView"] = 5] = "NextView";
15
- Action[Action["FirstInView"] = 6] = "FirstInView";
16
- Action[Action["LastInView"] = 7] = "LastInView";
17
- Action[Action["LowerView"] = 8] = "LowerView";
18
- Action[Action["UpperView"] = 9] = "UpperView";
19
- })(Action = exports.Action || (exports.Action = {}));
@@ -1,17 +0,0 @@
1
- /**
2
- * The type that defines the selection range of the Calendar.
3
- */
4
- export interface SelectionRange {
5
- /**
6
- * The beginning of the selection range.
7
- */
8
- start: Date | null;
9
- /**
10
- * The end of the selection range.
11
- */
12
- end: Date | null;
13
- }
14
- /**
15
- * @hidden
16
- */
17
- export declare const EMPTY_SELECTIONRANGE: SelectionRange;
@@ -1,7 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EMPTY_SELECTIONRANGE = void 0;
4
- /**
5
- * @hidden
6
- */
7
- exports.EMPTY_SELECTIONRANGE = { start: null, end: null };
@@ -1,4 +0,0 @@
1
- /**
2
- * The literal type that defines which end of the selection range is active.
3
- */
4
- export declare type SelectionRangeEnd = 'start' | 'end' | null;
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
@@ -1,11 +0,0 @@
1
- import { Action } from './NavigationAction';
2
- import { ActiveView } from './ActiveView';
3
- import { CalendarSettings } from './CalendarSettings';
4
- import { CalendarViewEnum } from './CalendarViewEnum';
5
- import { CellContext } from './CellContext';
6
- import { MultiViewCalendarMode } from './MultiViewCalendarMode';
7
- import { MultiViewCalendarSettings } from './MultiViewCalendarSettings';
8
- import { SelectionRange, EMPTY_SELECTIONRANGE } from './SelectionRange';
9
- import { SelectionRangeEnd } from './SelectionRangeEnd';
10
- import { ViewService } from './ViewService';
11
- export { Action, ActiveView, CalendarSettings, CalendarViewEnum, CellContext, EMPTY_SELECTIONRANGE, MultiViewCalendarMode, MultiViewCalendarSettings, SelectionRange, SelectionRangeEnd, ViewService };
@@ -1,9 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.EMPTY_SELECTIONRANGE = exports.CalendarViewEnum = exports.Action = void 0;
4
- var NavigationAction_1 = require("./NavigationAction");
5
- Object.defineProperty(exports, "Action", { enumerable: true, get: function () { return NavigationAction_1.Action; } });
6
- var CalendarViewEnum_1 = require("./CalendarViewEnum");
7
- Object.defineProperty(exports, "CalendarViewEnum", { enumerable: true, get: function () { return CalendarViewEnum_1.CalendarViewEnum; } });
8
- var SelectionRange_1 = require("./SelectionRange");
9
- Object.defineProperty(exports, "EMPTY_SELECTIONRANGE", { enumerable: true, get: function () { return SelectionRange_1.EMPTY_SELECTIONRANGE; } });
@@ -1,22 +0,0 @@
1
- /// <reference types="react" />
2
- import { ViewService } from '../models/ViewService';
3
- import { IntlService } from '@progress/kendo-react-intl';
4
- import { CalendarViewEnum } from '../models/CalendarViewEnum';
5
- /**
6
- * @hidden
7
- */
8
- export declare class BusViewService {
9
- private onViewChanged;
10
- private bottom;
11
- private top;
12
- constructor(onViewChanged: any);
13
- configure(bottom: CalendarViewEnum, top: CalendarViewEnum): void;
14
- service(view: CalendarViewEnum, intl: IntlService): ViewService;
15
- moveDown(view: CalendarViewEnum, event?: React.SyntheticEvent<any>): void;
16
- moveUp(view: CalendarViewEnum, event?: React.SyntheticEvent<any>): void;
17
- moveToBottom(activeView: CalendarViewEnum): void;
18
- canMoveDown(view: CalendarViewEnum): boolean;
19
- canMoveUp(view: CalendarViewEnum): boolean;
20
- private clamp;
21
- private move;
22
- }
@@ -1,72 +0,0 @@
1
- "use strict";
2
- var _a;
3
- Object.defineProperty(exports, "__esModule", { value: true });
4
- exports.BusViewService = void 0;
5
- var CenturyViewService_1 = require("./CenturyViewService");
6
- var DecadeViewService_1 = require("./DecadeViewService");
7
- var MonthViewService_1 = require("./MonthViewService");
8
- var YearViewService_1 = require("./YearViewService");
9
- var CalendarViewEnum_1 = require("../models/CalendarViewEnum");
10
- var services = (_a = {},
11
- _a[CalendarViewEnum_1.CalendarViewEnum.month] = MonthViewService_1.MonthViewService,
12
- _a[CalendarViewEnum_1.CalendarViewEnum.year] = YearViewService_1.YearViewService,
13
- _a[CalendarViewEnum_1.CalendarViewEnum.decade] = DecadeViewService_1.DecadeViewService,
14
- _a[CalendarViewEnum_1.CalendarViewEnum.century] = CenturyViewService_1.CenturyViewService,
15
- _a);
16
- var viewOffset = function (view, offset) {
17
- var candidate = CalendarViewEnum_1.CalendarViewEnum[CalendarViewEnum_1.CalendarViewEnum[view + offset]];
18
- return candidate !== undefined ? candidate : view;
19
- };
20
- /**
21
- * @hidden
22
- */
23
- var BusViewService = /** @class */ (function () {
24
- function BusViewService(onViewChanged) {
25
- this.bottom = CalendarViewEnum_1.CalendarViewEnum.month;
26
- this.top = CalendarViewEnum_1.CalendarViewEnum.century;
27
- this.onViewChanged = onViewChanged;
28
- }
29
- BusViewService.prototype.configure = function (bottom, top) {
30
- this.bottom = bottom;
31
- this.top = top;
32
- };
33
- BusViewService.prototype.service = function (view, intl) {
34
- return new services["".concat(view)](intl);
35
- };
36
- BusViewService.prototype.moveDown = function (view, event) {
37
- this.move(view, -1, event);
38
- };
39
- BusViewService.prototype.moveUp = function (view, event) {
40
- this.move(view, 1, event);
41
- };
42
- BusViewService.prototype.moveToBottom = function (activeView) {
43
- if (activeView === this.bottom) {
44
- return;
45
- }
46
- this.onViewChanged({ view: this.bottom });
47
- };
48
- BusViewService.prototype.canMoveDown = function (view) {
49
- return this.bottom < view;
50
- };
51
- BusViewService.prototype.canMoveUp = function (view) {
52
- return view < this.top;
53
- };
54
- BusViewService.prototype.clamp = function (view) {
55
- if (view < this.bottom) {
56
- return this.bottom;
57
- }
58
- if (view > this.top) {
59
- return this.top;
60
- }
61
- return view;
62
- };
63
- BusViewService.prototype.move = function (view, offset, event) {
64
- var candidate = this.clamp(viewOffset(view, offset));
65
- if (candidate === view) {
66
- return;
67
- }
68
- this.onViewChanged({ view: candidate }, event);
69
- };
70
- return BusViewService;
71
- }());
72
- exports.BusViewService = BusViewService;
@@ -1,25 +0,0 @@
1
- import { Action, CellContext, ViewService } from '../models';
2
- /**
3
- * @hidden
4
- */
5
- export declare class CenturyViewService implements ViewService {
6
- addToDate(min: Date, skip: number): Date;
7
- datesList(start: Date, count: number): Date[];
8
- data(options: any): CellContext[][];
9
- isSelectedFromArray(candidate: Date, dates: Date[], min: Date, max: Date): boolean;
10
- isEqual(candidate: Date | null, expected: Date | null): boolean;
11
- isInArray(date: Date, dates: Date[]): boolean;
12
- isInRange(candidate: Date, min: Date, max: Date): boolean;
13
- isInSameView(candidate: Date, value: Date): boolean;
14
- isRangeStart(value: Date): boolean;
15
- move(value: Date, action: Action): Date;
16
- cellTitle(value: Date): string;
17
- navigationTitle(value?: Date): string;
18
- title(value?: Date): string;
19
- rowLength(_?: boolean): number;
20
- skip(value: Date, min: Date): number;
21
- total(min: Date, max: Date): number;
22
- value(current: Date): string;
23
- viewDate(date: Date, max: Date, border?: number): Date;
24
- private normalize;
25
- }