@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,639 +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
- var __assign = (this && this.__assign) || function () {
18
- __assign = Object.assign || function(t) {
19
- for (var s, i = 1, n = arguments.length; i < n; i++) {
20
- s = arguments[i];
21
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p))
22
- t[p] = s[p];
23
- }
24
- return t;
25
- };
26
- return __assign.apply(this, arguments);
27
- };
28
- var __rest = (this && this.__rest) || function (s, e) {
29
- var t = {};
30
- for (var p in s) if (Object.prototype.hasOwnProperty.call(s, p) && e.indexOf(p) < 0)
31
- t[p] = s[p];
32
- if (s != null && typeof Object.getOwnPropertySymbols === "function")
33
- for (var i = 0, p = Object.getOwnPropertySymbols(s); i < p.length; i++) {
34
- if (e.indexOf(p[i]) < 0 && Object.prototype.propertyIsEnumerable.call(s, p[i]))
35
- t[p[i]] = s[p[i]];
36
- }
37
- return t;
38
- };
39
- Object.defineProperty(exports, "__esModule", { value: true });
40
- exports.DatePicker = exports.DatePickerPropsContext = exports.DatePickerWithoutContext = void 0;
41
- var React = require("react");
42
- var PropTypes = require("prop-types");
43
- var kendo_react_popup_1 = require("@progress/kendo-react-popup");
44
- var kendo_date_math_1 = require("@progress/kendo-date-math");
45
- var kendo_react_common_1 = require("@progress/kendo-react-common");
46
- var kendo_svg_icons_1 = require("@progress/kendo-svg-icons");
47
- var package_metadata_1 = require("../package-metadata");
48
- var DateInput_1 = require("../dateinput/DateInput");
49
- var Calendar_1 = require("../calendar/components/Calendar");
50
- var utils_1 = require("../utils");
51
- var utils_2 = require("../utils");
52
- var messages_1 = require("../messages");
53
- var kendo_react_intl_1 = require("@progress/kendo-react-intl");
54
- var ToggleButton_1 = require("./ToggleButton");
55
- var PickerWrap_1 = require("../common/PickerWrap");
56
- var usePickerFloatingLabel_1 = require("../hooks/usePickerFloatingLabel");
57
- var kendo_react_layout_1 = require("@progress/kendo-react-layout");
58
- var AdaptiveMode_1 = require("../common/AdaptiveMode");
59
- var constants_1 = require("../common/constants");
60
- /** @hidden */
61
- var DatePickerWithoutContext = /** @class */ (function (_super) {
62
- __extends(DatePickerWithoutContext, _super);
63
- function DatePickerWithoutContext(props) {
64
- var _this = _super.call(this, props) || this;
65
- _this._popupId = (0, kendo_react_common_1.guid)();
66
- _this._element = null;
67
- _this._dateInput = React.createRef();
68
- _this._calendar = null;
69
- _this.shouldFocusDateInput = false;
70
- _this.prevShow = false;
71
- /**
72
- * @hidden
73
- */
74
- _this.focus = function () {
75
- if (_this.dateInput) {
76
- _this.dateInput.focus();
77
- }
78
- };
79
- _this.setCalendarRef = function (calendar) {
80
- _this._calendar = calendar;
81
- };
82
- _this.nextValue = function (nextProps, nextState) {
83
- return nextProps.value !== undefined
84
- ? nextProps.value
85
- : nextState.value;
86
- };
87
- _this.nextShow = function (nextProps, nextState) {
88
- return nextProps.show !== undefined
89
- ? nextProps.show
90
- : nextState.show;
91
- };
92
- _this.renderPopup = function () {
93
- var _a = _this.props, disabled = _a.disabled, min = _a.min, max = _a.max, weekNumber = _a.weekNumber, focusedDate = _a.focusedDate;
94
- var _b = _this.props.popupSettings, popupClass = _b.popupClass, otherPopupSettings = __rest(_b, ["popupClass"]);
95
- var show = _this.show;
96
- var value = _this.value;
97
- var sanitizedValue = value && (0, kendo_date_math_1.getDate)(value);
98
- var popupClassNames = (0, kendo_react_common_1.classNames)('k-calendar-container k-group k-reset', popupClass);
99
- var popupProps = __assign({ popupClass: 'k-datepicker-popup', show: show, anchor: _this._element, className: popupClassNames, id: _this._popupId, anchorAlign: {
100
- horizontal: 'left',
101
- vertical: 'bottom'
102
- }, popupAlign: {
103
- horizontal: 'left',
104
- vertical: 'top'
105
- } }, otherPopupSettings);
106
- var calendarProps = {
107
- disabled: disabled,
108
- value: sanitizedValue,
109
- min: min,
110
- max: max,
111
- weekNumber: weekNumber,
112
- focusedDate: focusedDate,
113
- className: _this.mobileMode ? 'k-calendar-lg' : '',
114
- navigation: _this.mobileMode ? false : true,
115
- onChange: _this.handleCalendarValueChange
116
- };
117
- if (_this.mobileMode) {
118
- return React.createElement(_this.calendarComp, __assign({ _ref: _this.setCalendarRef }, calendarProps));
119
- }
120
- return (React.createElement(_this.popupComp, __assign({}, popupProps),
121
- React.createElement(_this.calendarComp, __assign({ _ref: _this.setCalendarRef }, calendarProps))));
122
- };
123
- _this.renderAdaptivePopup = function () {
124
- var _a = _this.state.windowWidth, windowWidth = _a === void 0 ? 0 : _a;
125
- var actionSheetProps = {
126
- expand: _this.show,
127
- onClose: _this.handleBlur,
128
- adaptiveTitle: _this.props.adaptiveTitle,
129
- windowWidth: windowWidth
130
- };
131
- return (React.createElement(AdaptiveMode_1.AdaptiveMode, __assign({}, actionSheetProps),
132
- React.createElement(kendo_react_layout_1.ActionSheetContent, { className: '!k-overflow-hidden' }, _this.renderPopup())));
133
- };
134
- _this.handleInputValueChange = function (event) {
135
- _this.handleValueChange(event.value, event);
136
- };
137
- _this.handleCalendarValueChange = function (event) {
138
- var value = _this.mergeTime(event.value);
139
- _this.handleValueChange(value, event);
140
- };
141
- _this.handleValueChange = function (value, event) {
142
- _this.setState({
143
- value: (0, kendo_date_math_1.cloneDate)(value || undefined)
144
- });
145
- _this.valueDuringOnChange = value;
146
- _this.showDuringOnChange = false;
147
- if (!_this.mobileMode) {
148
- _this.shouldFocusDateInput = true;
149
- }
150
- var onChange = _this.props.onChange;
151
- if (onChange) {
152
- onChange.call(undefined, {
153
- syntheticEvent: event.syntheticEvent,
154
- nativeEvent: event.nativeEvent,
155
- value: _this.value,
156
- show: _this.show,
157
- target: _this
158
- });
159
- }
160
- _this.valueDuringOnChange = undefined;
161
- _this.showDuringOnChange = undefined;
162
- _this.setShow(false);
163
- };
164
- _this.handleFocus = function () {
165
- _this.setState({ focused: true });
166
- };
167
- _this.handleBlur = function () {
168
- _this.setState({ focused: false });
169
- _this.setShow(false);
170
- };
171
- _this.handleIconClick = function () {
172
- if (_this.props.disabled) {
173
- return;
174
- }
175
- _this.shouldFocusDateInput = true;
176
- _this.setShow(!_this.show);
177
- };
178
- _this.handleIconMouseDown = function (event) {
179
- event.preventDefault();
180
- };
181
- _this.handleKeyDown = function (event) {
182
- var altKey = event.altKey, keyCode = event.keyCode;
183
- if (keyCode === kendo_react_common_1.Keys.esc) {
184
- _this.shouldFocusDateInput = true;
185
- _this.setShow(false);
186
- return;
187
- }
188
- if (altKey && (keyCode === kendo_react_common_1.Keys.up || keyCode === kendo_react_common_1.Keys.down)) {
189
- event.preventDefault();
190
- event.stopPropagation();
191
- _this.shouldFocusDateInput = keyCode === kendo_react_common_1.Keys.up;
192
- _this.setShow(keyCode === kendo_react_common_1.Keys.down);
193
- }
194
- };
195
- (0, kendo_react_common_1.validatePackage)(package_metadata_1.packageMetadata);
196
- _this.state = {
197
- value: _this.props.defaultValue || DatePickerWithoutContext.defaultProps.defaultValue,
198
- show: _this.props.defaultShow || DatePickerWithoutContext.defaultProps.defaultShow,
199
- focused: false
200
- };
201
- return _this;
202
- }
203
- Object.defineProperty(DatePickerWithoutContext.prototype, "document", {
204
- get: function () {
205
- if (!kendo_react_common_1.canUseDOM) {
206
- return;
207
- }
208
- // useful only for user actions
209
- return (this.element && this.element.ownerDocument) || document;
210
- },
211
- enumerable: false,
212
- configurable: true
213
- });
214
- Object.defineProperty(DatePickerWithoutContext.prototype, "element", {
215
- /**
216
- * Gets the wrapping element of the DatePickerWithoutContext.
217
- */
218
- get: function () {
219
- return this._element;
220
- },
221
- enumerable: false,
222
- configurable: true
223
- });
224
- Object.defineProperty(DatePickerWithoutContext.prototype, "mobileMode", {
225
- /**
226
- * The mobile mode of the DatePicker.
227
- */
228
- get: function () {
229
- var isAdaptive = this.state.windowWidth && this.state.windowWidth <= constants_1.MOBILE_MEDIUM_DEVISE && this.props.adaptive;
230
- return !!isAdaptive;
231
- },
232
- enumerable: false,
233
- configurable: true
234
- });
235
- Object.defineProperty(DatePickerWithoutContext.prototype, "dateInput", {
236
- /**
237
- * Gets the DateInput component inside the DatePicker component.
238
- */
239
- get: function () {
240
- return this._dateInput.current;
241
- },
242
- enumerable: false,
243
- configurable: true
244
- });
245
- Object.defineProperty(DatePickerWithoutContext.prototype, "calendar", {
246
- /**
247
- * Gets the Calendar component inside the DatePicker component.
248
- */
249
- get: function () {
250
- return this._calendar;
251
- },
252
- enumerable: false,
253
- configurable: true
254
- });
255
- Object.defineProperty(DatePickerWithoutContext.prototype, "value", {
256
- /**
257
- * Gets the value of the DatePickerWithoutContext.
258
- */
259
- get: function () {
260
- var value = this.valueDuringOnChange !== undefined
261
- ? this.valueDuringOnChange
262
- : this.props.value !== undefined
263
- ? this.props.value
264
- : this.state.value;
265
- return (value !== null) ? (0, kendo_date_math_1.cloneDate)(value) : null;
266
- },
267
- enumerable: false,
268
- configurable: true
269
- });
270
- Object.defineProperty(DatePickerWithoutContext.prototype, "show", {
271
- /**
272
- * Gets the popup state of the DatePickerWithoutContext.
273
- */
274
- get: function () {
275
- return this.showDuringOnChange !== undefined
276
- ? this.showDuringOnChange
277
- : this.props.show !== undefined
278
- ? this.props.show
279
- : this.state.show;
280
- },
281
- enumerable: false,
282
- configurable: true
283
- });
284
- Object.defineProperty(DatePickerWithoutContext.prototype, "name", {
285
- /**
286
- * Gets the `name` property of the DatePickerWithoutContext.
287
- */
288
- get: function () {
289
- return this.props.name;
290
- },
291
- enumerable: false,
292
- configurable: true
293
- });
294
- Object.defineProperty(DatePickerWithoutContext.prototype, "min", {
295
- get: function () {
296
- return this.props.min !== undefined
297
- ? this.props.min
298
- : DatePickerWithoutContext.defaultProps.min;
299
- },
300
- enumerable: false,
301
- configurable: true
302
- });
303
- Object.defineProperty(DatePickerWithoutContext.prototype, "max", {
304
- get: function () {
305
- return this.props.max !== undefined
306
- ? this.props.max
307
- : DatePickerWithoutContext.defaultProps.max;
308
- },
309
- enumerable: false,
310
- configurable: true
311
- });
312
- Object.defineProperty(DatePickerWithoutContext.prototype, "dateInputComp", {
313
- get: function () {
314
- return this.props.dateInput || DatePickerWithoutContext.defaultProps.dateInput;
315
- },
316
- enumerable: false,
317
- configurable: true
318
- });
319
- Object.defineProperty(DatePickerWithoutContext.prototype, "toggleButtonComp", {
320
- get: function () {
321
- return this.props.toggleButton || DatePickerWithoutContext.defaultProps.toggleButton;
322
- },
323
- enumerable: false,
324
- configurable: true
325
- });
326
- Object.defineProperty(DatePickerWithoutContext.prototype, "calendarComp", {
327
- get: function () {
328
- return this.props.calendar || DatePickerWithoutContext.defaultProps.calendar;
329
- },
330
- enumerable: false,
331
- configurable: true
332
- });
333
- Object.defineProperty(DatePickerWithoutContext.prototype, "popupComp", {
334
- get: function () {
335
- return this.props.popup || DatePickerWithoutContext.defaultProps.popup;
336
- },
337
- enumerable: false,
338
- configurable: true
339
- });
340
- Object.defineProperty(DatePickerWithoutContext.prototype, "pickerWrapComp", {
341
- get: function () {
342
- return this.props.pickerWrap || DatePickerWithoutContext.defaultProps.pickerWrap;
343
- },
344
- enumerable: false,
345
- configurable: true
346
- });
347
- Object.defineProperty(DatePickerWithoutContext.prototype, "validity", {
348
- /**
349
- * Represents the validity state into which the DatePicker is set.
350
- */
351
- get: function () {
352
- var inRange = (0, utils_2.isInDateRange)(this.value, this.min, this.max);
353
- var customError = this.props.validationMessage !== undefined;
354
- var isValid = (!this.required || this.value !== null) && inRange;
355
- var valid = this.props.valid !== undefined ? this.props.valid : isValid;
356
- return {
357
- customError: customError,
358
- rangeOverflow: (this.value && this.max.getTime() < this.value.getTime()) || false,
359
- rangeUnderflow: (this.value && this.value.getTime() < this.min.getTime()) || false,
360
- valid: valid,
361
- valueMissing: this.value === null
362
- };
363
- },
364
- enumerable: false,
365
- configurable: true
366
- });
367
- Object.defineProperty(DatePickerWithoutContext.prototype, "validityStyles", {
368
- /**
369
- * @hidden
370
- */
371
- get: function () {
372
- return this.props.validityStyles !== undefined
373
- ? this.props.validityStyles
374
- : DatePickerWithoutContext.defaultProps.validityStyles;
375
- },
376
- enumerable: false,
377
- configurable: true
378
- });
379
- Object.defineProperty(DatePickerWithoutContext.prototype, "required", {
380
- /**
381
- * @hidden
382
- */
383
- get: function () {
384
- return this.props.required !== undefined
385
- ? this.props.required
386
- : DatePickerWithoutContext.defaultProps.required;
387
- },
388
- enumerable: false,
389
- configurable: true
390
- });
391
- /**
392
- * @hidden
393
- */
394
- DatePickerWithoutContext.prototype.componentDidMount = function () {
395
- var _a;
396
- this.observerResize = kendo_react_common_1.canUseDOM && window.ResizeObserver && new window.ResizeObserver(this.calculateMedia.bind(this));
397
- if (this.show) {
398
- // If defaultShow is true during the initial render, the popup is not aligned.
399
- this.forceUpdate();
400
- }
401
- if (((_a = this.document) === null || _a === void 0 ? void 0 : _a.body) && this.observerResize) {
402
- this.observerResize.observe(this.document.body);
403
- }
404
- };
405
- /**
406
- * @hidden
407
- */
408
- DatePickerWithoutContext.prototype.componentDidUpdate = function () {
409
- if (this._calendar && this._calendar.element && this.show && !this.prevShow) {
410
- this._calendar.element.focus({ preventScroll: true });
411
- }
412
- if (this.dateInput
413
- && this.dateInput.element
414
- && !this.show
415
- && this.shouldFocusDateInput) {
416
- this.dateInput.element.focus({ preventScroll: true });
417
- }
418
- this.prevShow = this.show;
419
- this.shouldFocusDateInput = false;
420
- };
421
- /**
422
- * @hidden
423
- */
424
- DatePickerWithoutContext.prototype.componentWillUnmount = function () {
425
- var _a;
426
- clearTimeout(this.nextTickId);
427
- if (((_a = this.document) === null || _a === void 0 ? void 0 : _a.body) && this.observerResize) {
428
- this.observerResize.disconnect();
429
- }
430
- };
431
- /**
432
- * @hidden
433
- */
434
- DatePickerWithoutContext.prototype.render = function () {
435
- var _this = this;
436
- var _a = this.props, _b = _a.size, size = _b === void 0 ? DatePickerWithoutContext.defaultProps.size : _b, _c = _a.rounded, rounded = _c === void 0 ? DatePickerWithoutContext.defaultProps.rounded : _c, _d = _a.fillMode, fillMode = _d === void 0 ? DatePickerWithoutContext.defaultProps.fillMode : _d, disabled = _a.disabled, tabIndex = _a.tabIndex, title = _a.title, id = _a.id, format = _a.format, formatPlaceholder = _a.formatPlaceholder, min = _a.min, max = _a.max, className = _a.className, width = _a.width, name = _a.name, validationMessage = _a.validationMessage, required = _a.required, validityStyles = _a.validityStyles, ariaLabelledBy = _a.ariaLabelledBy, ariaDescribedBy = _a.ariaDescribedBy, ariaLabel = _a.ariaLabel;
437
- var show = this.show;
438
- var value = this.value;
439
- var isValid = !this.validityStyles || this.validity.valid;
440
- var dateInputProps = {
441
- disabled: disabled,
442
- format: format,
443
- formatPlaceholder: formatPlaceholder,
444
- id: id,
445
- ariaLabelledBy: ariaLabelledBy,
446
- ariaDescribedBy: ariaDescribedBy,
447
- ariaLabel: ariaLabel,
448
- max: max,
449
- min: min,
450
- name: name,
451
- onChange: this.handleInputValueChange,
452
- required: required,
453
- tabIndex: !show ? tabIndex : -1,
454
- title: title,
455
- valid: this.validity.valid,
456
- validationMessage: validationMessage,
457
- validityStyles: validityStyles,
458
- value: value,
459
- label: undefined,
460
- placeholder: !this.state.focused ? this.props.placeholder : null,
461
- ariaExpanded: this.show,
462
- size: null,
463
- fillMode: null,
464
- rounded: null
465
- };
466
- var toggleButtonTitle = (0, kendo_react_intl_1.provideLocalizationService)(this)
467
- .toLanguageString(messages_1.toggleCalendar, messages_1.messages[messages_1.toggleCalendar]);
468
- var datepicker = (React.createElement(kendo_react_common_1.AsyncFocusBlur, { onFocus: this.handleFocus, onBlur: this.mobileMode ? undefined : this.handleBlur, onSyncBlur: this.props.onBlur, onSyncFocus: this.props.onFocus }, function (_a) {
469
- var _b;
470
- var onFocus = _a.onFocus, onBlur = _a.onBlur;
471
- return (React.createElement(React.Fragment, null,
472
- React.createElement("span", { ref: function (span) { _this._element = span; }, className: (0, kendo_react_common_1.classNames)('k-input', 'k-datepicker', (_b = {},
473
- _b["k-input-".concat(kendo_react_common_1.kendoThemeMaps.sizeMap[size] || size)] = size,
474
- _b["k-rounded-".concat(kendo_react_common_1.kendoThemeMaps.roundedMap[rounded] || rounded)] = rounded,
475
- _b["k-input-".concat(fillMode)] = fillMode,
476
- _b['k-invalid'] = !isValid,
477
- _b['k-required'] = _this.required,
478
- _b['k-disabled'] = _this.props.disabled,
479
- _b), className), onKeyDown: _this.handleKeyDown, style: { width: width }, onFocus: onFocus, onBlur: onBlur, onClick: _this.mobileMode ? _this.handleIconClick : undefined },
480
- React.createElement(_this.dateInputComp, __assign({ _ref: _this._dateInput, ariaRole: 'combobox', readonly: _this.mobileMode, ariaExpanded: _this.show, ariaControls: _this._popupId }, dateInputProps)),
481
- React.createElement(_this.toggleButtonComp, { type: "button", icon: "calendar", svgIcon: kendo_svg_icons_1.calendarIcon, title: toggleButtonTitle, className: "k-input-button", rounded: null, onClick: _this.mobileMode ? undefined : _this.handleIconClick, "aria-label": toggleButtonTitle, onMouseDown: _this.handleIconMouseDown }),
482
- !_this.mobileMode && _this.renderPopup()),
483
- _this.mobileMode && _this.renderAdaptivePopup()));
484
- }));
485
- return this.props.label
486
- ? (React.createElement(usePickerFloatingLabel_1.PickerFloatingLabel, { dateInput: this._dateInput, label: this.props.label, editorId: id, editorValid: isValid, editorDisabled: this.props.disabled, children: datepicker, style: { width: this.props.width } }))
487
- : datepicker;
488
- };
489
- DatePickerWithoutContext.prototype.setShow = function (show) {
490
- var _a = this.props, onOpen = _a.onOpen, onClose = _a.onClose;
491
- if (this.show === show) {
492
- return;
493
- }
494
- this.setState({ show: show });
495
- if (show && onOpen) {
496
- onOpen.call(undefined, {
497
- target: this
498
- });
499
- }
500
- if (!show && onClose) {
501
- onClose.call(undefined, {
502
- target: this
503
- });
504
- }
505
- };
506
- DatePickerWithoutContext.prototype.mergeTime = function (value) {
507
- return this.value && value ? (0, utils_1.setTime)(value, this.value) : value;
508
- };
509
- DatePickerWithoutContext.prototype.nextTick = function (f) {
510
- // XXX: use window.setTimeout due to async focus/blur events in IE, and missing relatedTarget prop.
511
- // XXX: https://github.com/facebook/react/issues/3751
512
- // Handles multiple focus events happening at the same time.
513
- clearTimeout(this.nextTickId);
514
- this.nextTickId = window.setTimeout(function () { return f(); });
515
- };
516
- DatePickerWithoutContext.prototype.calculateMedia = function (entries) {
517
- for (var _i = 0, entries_1 = entries; _i < entries_1.length; _i++) {
518
- var entry = entries_1[_i];
519
- this.setState({ windowWidth: entry.target.clientWidth });
520
- }
521
- ;
522
- };
523
- ;
524
- /**
525
- * @hidden
526
- */
527
- DatePickerWithoutContext.displayName = 'DatePicker';
528
- /**
529
- * @hidden
530
- */
531
- DatePickerWithoutContext.propTypes = {
532
- className: PropTypes.string,
533
- defaultShow: PropTypes.bool,
534
- defaultValue: PropTypes.instanceOf(Date),
535
- disabled: PropTypes.bool,
536
- focusedDate: PropTypes.instanceOf(Date),
537
- format: PropTypes.oneOfType([
538
- PropTypes.string,
539
- PropTypes.shape({
540
- skeleton: PropTypes.string,
541
- pattern: PropTypes.string,
542
- date: PropTypes.oneOf(['short', 'medium', 'long', 'full']),
543
- time: PropTypes.oneOf(['short', 'medium', 'long', 'full']),
544
- datetime: PropTypes.oneOf(['short', 'medium', 'long', 'full']),
545
- era: PropTypes.oneOf(['narrow', 'short', 'long']),
546
- year: PropTypes.oneOf(['numeric', '2-digit']),
547
- month: PropTypes.oneOf(['numeric', '2-digit', 'narrow', 'short', 'long']),
548
- day: PropTypes.oneOf(['numeric', '2-digit']),
549
- weekday: PropTypes.oneOf(['narrow', 'short', 'long']),
550
- hour: PropTypes.oneOf(['numeric', '2-digit']),
551
- hour12: PropTypes.bool,
552
- minute: PropTypes.oneOf(['numeric', '2-digit']),
553
- second: PropTypes.oneOf(['numeric', '2-digit']),
554
- timeZoneName: PropTypes.oneOf(['short', 'long'])
555
- })
556
- ]),
557
- formatPlaceholder: PropTypes.oneOfType([
558
- PropTypes.oneOf(['wide', 'narrow', 'short', 'formatPattern']),
559
- PropTypes.shape({
560
- year: PropTypes.string,
561
- month: PropTypes.string,
562
- day: PropTypes.string,
563
- hour: PropTypes.string,
564
- minute: PropTypes.string,
565
- second: PropTypes.string
566
- })
567
- ]),
568
- id: PropTypes.string,
569
- ariaLabelledBy: PropTypes.string,
570
- ariaDescribedBy: PropTypes.string,
571
- ariaLabel: PropTypes.string,
572
- min: PropTypes.instanceOf(Date),
573
- max: PropTypes.instanceOf(Date),
574
- name: PropTypes.string,
575
- popupSettings: PropTypes.shape({
576
- animate: PropTypes.bool,
577
- appendTo: PropTypes.any,
578
- popupClass: PropTypes.string
579
- }),
580
- show: PropTypes.bool,
581
- tabIndex: PropTypes.number,
582
- title: PropTypes.string,
583
- value: PropTypes.instanceOf(Date),
584
- weekNumber: PropTypes.bool,
585
- width: PropTypes.oneOfType([PropTypes.number, PropTypes.string]),
586
- validationMessage: PropTypes.string,
587
- required: PropTypes.bool,
588
- validate: PropTypes.bool,
589
- valid: PropTypes.bool,
590
- size: PropTypes.oneOf([null, 'small', 'medium', 'large']),
591
- rounded: PropTypes.oneOf([null, 'small', 'medium', 'large', 'full']),
592
- fillMode: PropTypes.oneOf([null, 'solid', 'flat', 'outline']),
593
- adaptive: PropTypes.bool,
594
- adaptiveTitle: PropTypes.string
595
- };
596
- /**
597
- * @hidden
598
- */
599
- DatePickerWithoutContext.defaultProps = {
600
- defaultShow: false,
601
- defaultValue: null,
602
- dateInput: DateInput_1.DateInput,
603
- calendar: Calendar_1.Calendar,
604
- toggleButton: ToggleButton_1.ToggleButton,
605
- popup: kendo_react_popup_1.Popup,
606
- pickerWrap: PickerWrap_1.PickerWrap,
607
- disabled: false,
608
- format: 'd',
609
- max: utils_1.MAX_DATE,
610
- min: utils_1.MIN_DATE,
611
- popupSettings: {},
612
- tabIndex: 0,
613
- weekNumber: false,
614
- required: false,
615
- validityStyles: true,
616
- size: 'medium',
617
- rounded: 'medium',
618
- fillMode: 'solid'
619
- };
620
- return DatePickerWithoutContext;
621
- }(React.Component));
622
- exports.DatePickerWithoutContext = DatePickerWithoutContext;
623
- /**
624
- * Represents the PropsContext of the `DatePicker` component.
625
- * Used for global configuration of all `DatePicker` instances.
626
- *
627
- * For more information, refer to the [DateInputs Props Context]({% slug props-context_dateinputs %}) article.
628
- */
629
- exports.DatePickerPropsContext = (0, kendo_react_common_1.createPropsContext)();
630
- /* eslint-disable @typescript-eslint/no-redeclare */
631
- /**
632
- * Represents the KendoReact DatePicker Component.
633
- *
634
- * Accepts properties of type [DatePickerProps]({% slug api_dateinputs_datepickerprops %}).
635
- * Obtaining the `ref` returns an object of type [DatePickerHandle]({% slug api_dateinputs_datepickerhandle %}).
636
- */
637
- exports.DatePicker = (0, kendo_react_common_1.withPropsContext)(exports.DatePickerPropsContext, DatePickerWithoutContext);
638
- exports.DatePicker.displayName = 'KendoReactDatePicker';
639
- (0, kendo_react_intl_1.registerForLocalization)(DatePickerWithoutContext);
@@ -1,8 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.ToggleButton = void 0;
4
- var kendo_react_buttons_1 = require("@progress/kendo-react-buttons");
5
- /**
6
- * Represents the default `toggleButton` component rendered by the [KendoReact Scheduler DatePicker]({% slug overview_datepicker %}).
7
- */
8
- exports.ToggleButton = kendo_react_buttons_1.Button;
@@ -1,3 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- // tslint:enable:max-line-length
@@ -1,2 +0,0 @@
1
- import { DatePickerSettings } from './DatePickerSettings';
2
- export { DatePickerSettings };
@@ -1,2 +0,0 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });