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