@progress/kendo-angular-dateinputs 6.0.3 → 7.0.0-dev.202204191043

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 (553) hide show
  1. package/bundles/kendo-angular-dateinputs.umd.js +5 -0
  2. package/calendar/calendar-common.module.d.ts +24 -0
  3. package/{dist/es2015/calendar → calendar}/calendar.component.d.ts +46 -21
  4. package/{dist/es2015/calendar → calendar}/calendar.module.d.ts +16 -0
  5. package/{dist/es2015/calendar → calendar}/calendars.module.d.ts +6 -0
  6. package/{dist/es2015/calendar → calendar}/for.directive.d.ts +8 -5
  7. package/{dist/es2015/calendar → calendar}/header.component.d.ts +3 -0
  8. package/{dist/es2015/calendar → calendar}/horizontal-view-list.component.d.ts +9 -5
  9. package/{dist/es2015/calendar → calendar}/localization/calendar-custom-messages.component.d.ts +4 -1
  10. package/{dist/es2015/calendar → calendar}/localization/calendar-localized-messages.directive.d.ts +3 -0
  11. package/{dist/es2015/calendar → calendar}/localization/calendar-messages.d.ts +3 -0
  12. package/{dist/es2015/calendar → calendar}/localization/multiview-calendar-custom-messages.component.d.ts +4 -1
  13. package/{dist/es2015/calendar → calendar}/localization/multiview-calendar-localized-messages.directive.d.ts +3 -0
  14. package/{dist/es2015/calendar → calendar}/localization/multiview-calendar-messages.d.ts +3 -0
  15. package/{dist/es2015/calendar → calendar}/models/cell-context.interface.d.ts +0 -0
  16. package/{dist/es2015/calendar → calendar}/models/keydown.interface.d.ts +0 -0
  17. package/{dist/es2015/calendar → calendar}/models/navigation-action.enum.d.ts +0 -0
  18. package/{dist/es2015/calendar → calendar}/models/row-length-options.interface.d.ts +0 -0
  19. package/{dist/es2015/calendar → calendar}/models/scrollable.interface.d.ts +0 -0
  20. package/{dist/es2015/calendar → calendar}/models/selection-range-end.type.d.ts +0 -0
  21. package/{dist/es2015/calendar → calendar}/models/selection-range.interface.d.ts +0 -0
  22. package/{dist/es2015/calendar → calendar}/models/selection.d.ts +0 -0
  23. package/{dist/es2015/calendar → calendar}/models/type.d.ts +0 -0
  24. package/{dist/es2015/calendar → calendar}/models/view-service.interface.d.ts +0 -0
  25. package/{dist/es2015/calendar → calendar}/models/view.enum.d.ts +0 -0
  26. package/{dist/es2015/calendar → calendar}/models/view.type.d.ts +0 -0
  27. package/{dist/es2015/calendar → calendar}/multiview-calendar.component.d.ts +38 -24
  28. package/{dist/es2015/calendar → calendar}/multiview-calendar.module.d.ts +14 -0
  29. package/{dist/es2015/calendar → calendar}/navigation.component.d.ts +4 -1
  30. package/{dist/es2015/calendar → calendar}/services/bus-view.service.d.ts +3 -0
  31. package/{dist/es2015/calendar → calendar}/services/century-view.service.d.ts +3 -0
  32. package/{dist/es2015/calendar → calendar}/services/decade-view.service.d.ts +3 -0
  33. package/{dist/es2015/calendar → calendar}/services/disabled-dates.service.d.ts +3 -0
  34. package/{dist/es2015/calendar → calendar}/services/dom.service.d.ts +3 -0
  35. package/{dist/es2015/calendar → calendar}/services/month-view.service.d.ts +3 -0
  36. package/{dist/es2015/calendar → calendar}/services/navigation.service.d.ts +3 -0
  37. package/{dist/es2015/calendar → calendar}/services/scroll-sync.service.d.ts +3 -0
  38. package/{dist/es2015/calendar → calendar}/services/selection.service.d.ts +3 -0
  39. package/{dist/es2015/calendar → calendar}/services/weeknames.service.d.ts +3 -0
  40. package/{dist/es2015/calendar → calendar}/services/year-view.service.d.ts +3 -0
  41. package/{dist/es2015/calendar → calendar}/templates/cell-template.directive.d.ts +3 -0
  42. package/{dist/es2015/calendar → calendar}/templates/century-cell-template.directive.d.ts +3 -0
  43. package/{dist/es2015/calendar → calendar}/templates/decade-cell-template.directive.d.ts +3 -0
  44. package/{dist/es2015/calendar → calendar}/templates/header-title-template.directive.d.ts +3 -0
  45. package/{dist/es2015/calendar → calendar}/templates/month-cell-template.directive.d.ts +3 -0
  46. package/{dist/es2015/calendar → calendar}/templates/navigation-item-template.directive.d.ts +3 -0
  47. package/{dist/es2015/calendar → calendar}/templates/weeknumber-cell-template.directive.d.ts +3 -0
  48. package/{dist/es2015/calendar → calendar}/templates/year-cell-template.directive.d.ts +3 -0
  49. package/calendar/templates.module.d.ts +33 -0
  50. package/{dist/es2015/calendar → calendar}/view-list.component.d.ts +9 -5
  51. package/{dist/es2015/calendar → calendar}/view.component.d.ts +5 -1
  52. package/{dist/es2015/common → common}/dom-queries.d.ts +0 -0
  53. package/{dist/es2015/common → common}/models/fillmode.d.ts +5 -5
  54. package/{dist/es2015/common → common}/models/rounded.d.ts +6 -6
  55. package/{dist/es2015/common → common}/models/size.d.ts +5 -5
  56. package/{dist/es2015/common → common}/picker.service.d.ts +0 -0
  57. package/{dist/es2015/common → common}/utils.d.ts +0 -0
  58. package/{dist/es2015/dateinput → dateinput}/arrow.enum.d.ts +0 -0
  59. package/{dist/es2015/dateinput → dateinput}/dateinput.component.d.ts +34 -25
  60. package/dateinput/dateinput.module.d.ts +20 -0
  61. package/{dist/es2015/dateinput → dateinput}/localization/dateinput-custom-messages.component.d.ts +4 -1
  62. package/{dist/es2015/dateinput → dateinput}/localization/dateinput-localized-messages.directive.d.ts +3 -0
  63. package/{dist/es2015/dateinput → dateinput}/localization/messages.d.ts +3 -0
  64. package/{dist/es2015/dateinput → dateinput}/models/format-placeholder.model.d.ts +0 -0
  65. package/{dist/es2015/dateinput → dateinput}/models/format-settings.model.d.ts +0 -0
  66. package/{dist/es2015/dateinput → dateinput}/models/incremental-steps.model.d.ts +0 -0
  67. package/{dist/es2015/dateinputs.module.d.ts → dateinputs.module.d.ts} +10 -0
  68. package/{dist/es2015/datepicker → datepicker}/datepicker.component.d.ts +49 -37
  69. package/datepicker/datepicker.module.d.ts +24 -0
  70. package/{dist/es2015/datepicker → datepicker}/localization/datepicker-custom-messages.component.d.ts +4 -1
  71. package/{dist/es2015/datepicker → datepicker}/localization/datepicker-localized-messages.directive.d.ts +3 -0
  72. package/{dist/es2015/datepicker → datepicker}/localization/messages.d.ts +3 -0
  73. package/{dist/es2015/daterange → daterange}/auto-correct-on.type.d.ts +0 -0
  74. package/{dist/es2015/daterange → daterange}/date-range-end-input.directive.d.ts +3 -0
  75. package/{dist/es2015/daterange → daterange}/date-range-input.d.ts +2 -2
  76. package/{dist/es2015/daterange → daterange}/date-range-popup-template.directive.d.ts +3 -0
  77. package/{dist/es2015/daterange → daterange}/date-range-popup.component.d.ts +9 -4
  78. package/{dist/es2015/daterange → daterange}/date-range-selection.directive.d.ts +8 -3
  79. package/{dist/es2015/daterange → daterange}/date-range-start-input.directive.d.ts +3 -0
  80. package/{dist/es2015/daterange → daterange}/date-range.component.d.ts +5 -1
  81. package/{dist/es2015/daterange → daterange}/date-range.module.d.ts +15 -1
  82. package/{dist/es2015/daterange → daterange}/date-range.service.d.ts +11 -6
  83. package/{dist/es2015/datetimepicker → datetimepicker}/datetimepicker.component.d.ts +51 -36
  84. package/datetimepicker/datetimepicker.module.d.ts +25 -0
  85. package/{dist/es2015/datetimepicker → datetimepicker}/localization/datetimepicker-custom-messages.component.d.ts +4 -1
  86. package/{dist/es2015/datetimepicker → datetimepicker}/localization/localized-messages.directive.d.ts +3 -0
  87. package/{dist/es2015/datetimepicker → datetimepicker}/localization/messages.d.ts +3 -0
  88. package/{dist/es2015/datetimepicker → datetimepicker}/models/active-tab.type.d.ts +0 -0
  89. package/{dist/es2015/defaults.d.ts → defaults.d.ts} +0 -0
  90. package/esm2015/calendar/calendar-common.module.js +45 -0
  91. package/{dist/es2015 → esm2015}/calendar/calendar.component.js +283 -246
  92. package/{dist/es2015 → esm2015}/calendar/calendar.module.js +71 -34
  93. package/{dist/es2015 → esm2015}/calendar/calendars.module.js +23 -14
  94. package/{dist/es2015 → esm2015}/calendar/for.directive.js +17 -25
  95. package/{dist/es2015 → esm2015}/calendar/header.component.js +97 -73
  96. package/{dist/es2015 → esm2015}/calendar/horizontal-view-list.component.js +155 -130
  97. package/esm2015/calendar/localization/calendar-custom-messages.component.js +40 -0
  98. package/esm2015/calendar/localization/calendar-localized-messages.directive.js +36 -0
  99. package/esm2015/calendar/localization/calendar-messages.js +27 -0
  100. package/esm2015/calendar/localization/multiview-calendar-custom-messages.component.js +40 -0
  101. package/esm2015/calendar/localization/multiview-calendar-localized-messages.directive.js +36 -0
  102. package/esm2015/calendar/localization/multiview-calendar-messages.js +27 -0
  103. package/{dist/es → esm2015}/calendar/models/cell-context.interface.js +1 -0
  104. package/{dist/es2015 → esm2015}/calendar/models/keydown.interface.js +1 -0
  105. package/{dist/es → esm2015}/calendar/models/navigation-action.enum.js +0 -0
  106. package/{dist/es2015 → esm2015}/calendar/models/row-length-options.interface.js +1 -0
  107. package/{dist/es/virtualization → esm2015/calendar}/models/scrollable.interface.js +1 -0
  108. package/{dist/es → esm2015}/calendar/models/selection-range-end.type.js +1 -0
  109. package/{dist/es2015 → esm2015}/calendar/models/selection-range.interface.js +0 -0
  110. package/{dist/es → esm2015}/calendar/models/selection.js +1 -0
  111. package/{dist/es → esm2015}/calendar/models/type.js +1 -0
  112. package/{dist/es → esm2015}/calendar/models/view-service.interface.js +1 -0
  113. package/{dist/es → esm2015}/calendar/models/view.enum.js +0 -0
  114. package/{dist/es → esm2015}/calendar/models/view.type.js +1 -0
  115. package/{dist/es2015 → esm2015}/calendar/multiview-calendar.component.js +246 -298
  116. package/{dist/es2015 → esm2015}/calendar/multiview-calendar.module.js +63 -32
  117. package/{dist/es2015 → esm2015}/calendar/navigation.component.js +71 -62
  118. package/{dist/es2015 → esm2015}/calendar/services/bus-view.service.js +9 -11
  119. package/{dist/es2015 → esm2015}/calendar/services/century-view.service.js +8 -11
  120. package/{dist/es2015 → esm2015}/calendar/services/decade-view.service.js +8 -11
  121. package/{dist/es2015 → esm2015}/calendar/services/disabled-dates.service.js +8 -12
  122. package/{dist/es2015 → esm2015}/calendar/services/dom.service.js +10 -26
  123. package/{dist/es2015 → esm2015}/calendar/services/month-view.service.js +9 -10
  124. package/{dist/es2015 → esm2015}/calendar/services/navigation.service.js +9 -9
  125. package/{dist/es2015 → esm2015}/calendar/services/scroll-sync.service.js +10 -13
  126. package/{dist/es2015 → esm2015}/calendar/services/selection.service.js +9 -9
  127. package/{dist/es2015 → esm2015}/calendar/services/weeknames.service.js +9 -9
  128. package/{dist/es2015 → esm2015}/calendar/services/year-view.service.js +9 -13
  129. package/{dist/es2015 → esm2015}/calendar/templates/cell-template.directive.js +12 -11
  130. package/{dist/es2015 → esm2015}/calendar/templates/century-cell-template.directive.js +12 -11
  131. package/{dist/es2015 → esm2015}/calendar/templates/decade-cell-template.directive.js +12 -11
  132. package/{dist/es2015 → esm2015}/calendar/templates/header-title-template.directive.js +12 -11
  133. package/{dist/es2015 → esm2015}/calendar/templates/month-cell-template.directive.js +12 -11
  134. package/{dist/es2015 → esm2015}/calendar/templates/navigation-item-template.directive.js +12 -11
  135. package/{dist/es2015 → esm2015}/calendar/templates/weeknumber-cell-template.directive.js +12 -11
  136. package/{dist/es2015 → esm2015}/calendar/templates/year-cell-template.directive.js +12 -11
  137. package/esm2015/calendar/templates.module.js +73 -0
  138. package/{dist/es2015 → esm2015}/calendar/view-list.component.js +135 -120
  139. package/{dist/es2015 → esm2015}/calendar/view.component.js +105 -98
  140. package/{dist/es2015 → esm2015}/common/dom-queries.js +0 -0
  141. package/{dist/es → esm2015}/common/models/fillmode.js +1 -0
  142. package/{dist/es → esm2015}/common/models/rounded.js +1 -0
  143. package/{dist/es → esm2015}/common/models/size.js +1 -0
  144. package/{dist/es2015 → esm2015}/common/picker.service.js +0 -0
  145. package/{dist/es2015 → esm2015}/common/utils.js +0 -0
  146. package/{dist/es → esm2015}/dateinput/arrow.enum.js +0 -0
  147. package/{dist/es2015 → esm2015}/dateinput/dateinput.component.js +215 -216
  148. package/esm2015/dateinput/dateinput.module.js +41 -0
  149. package/esm2015/dateinput/localization/dateinput-custom-messages.component.js +40 -0
  150. package/esm2015/dateinput/localization/dateinput-localized-messages.directive.js +36 -0
  151. package/esm2015/dateinput/localization/messages.js +25 -0
  152. package/{dist/es → esm2015}/dateinput/models/format-placeholder.model.js +1 -0
  153. package/{dist/es → esm2015}/dateinput/models/format-settings.model.js +1 -0
  154. package/{dist/es → esm2015}/dateinput/models/incremental-steps.model.js +1 -0
  155. package/{dist/es2015 → esm2015}/dateinputs.module.js +28 -10
  156. package/{dist/es2015 → esm2015}/datepicker/datepicker.component.js +320 -317
  157. package/esm2015/datepicker/datepicker.module.js +72 -0
  158. package/esm2015/datepicker/localization/datepicker-custom-messages.component.js +40 -0
  159. package/esm2015/datepicker/localization/datepicker-localized-messages.directive.js +36 -0
  160. package/esm2015/datepicker/localization/messages.js +29 -0
  161. package/{dist/es → esm2015}/daterange/auto-correct-on.type.js +1 -0
  162. package/{dist/es2015 → esm2015}/daterange/date-range-end-input.directive.js +18 -25
  163. package/{dist/es2015 → esm2015}/daterange/date-range-input.js +0 -0
  164. package/esm2015/daterange/date-range-popup-template.directive.js +23 -0
  165. package/{dist/es2015 → esm2015}/daterange/date-range-popup.component.js +71 -89
  166. package/{dist/es2015 → esm2015}/daterange/date-range-selection.directive.js +26 -39
  167. package/{dist/es2015 → esm2015}/daterange/date-range-start-input.directive.js +18 -25
  168. package/esm2015/daterange/date-range.component.js +77 -0
  169. package/{dist/es2015 → esm2015}/daterange/date-range.module.js +27 -12
  170. package/{dist/es2015 → esm2015}/daterange/date-range.service.js +9 -14
  171. package/{dist/es2015 → esm2015}/datetimepicker/datetimepicker.component.js +436 -257
  172. package/esm2015/datetimepicker/datetimepicker.module.js +80 -0
  173. package/esm2015/datetimepicker/localization/datetimepicker-custom-messages.component.js +40 -0
  174. package/esm2015/datetimepicker/localization/localized-messages.directive.js +36 -0
  175. package/esm2015/datetimepicker/localization/messages.js +49 -0
  176. package/{dist/es → esm2015}/datetimepicker/models/active-tab.type.js +1 -0
  177. package/{dist/es2015 → esm2015}/defaults.js +0 -0
  178. package/esm2015/kendo-angular-dateinputs.js +8 -0
  179. package/{dist/es → esm2015}/main.js +24 -0
  180. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  181. package/{dist/es → esm2015}/popup-settings.model.js +1 -0
  182. package/{dist/es2015 → esm2015}/preventable-event.js +1 -0
  183. package/esm2015/timepicker/localization/messages.js +35 -0
  184. package/esm2015/timepicker/localization/timepicker-custom-messages.component.js +40 -0
  185. package/esm2015/timepicker/localization/timepicker-localized-messages.directive.js +36 -0
  186. package/esm2015/timepicker/localization/timeselector-custom-messages.component.js +42 -0
  187. package/esm2015/timepicker/localization/timeselector-localized-messages.directive.js +36 -0
  188. package/{dist/es → esm2015}/timepicker/models/incremental-steps.model.js +1 -0
  189. package/{dist/es → esm2015}/timepicker/models/list-item.interface.js +1 -0
  190. package/{dist/es → esm2015}/timepicker/models/list-service-settings.js +1 -0
  191. package/{dist/es → esm2015}/timepicker/models/list-service.interface.js +1 -0
  192. package/{dist/es2015 → esm2015}/timepicker/models/time-part.default.js +0 -0
  193. package/{dist/es2015 → esm2015}/timepicker/services/dayperiod.service.js +9 -15
  194. package/{dist/es2015 → esm2015}/timepicker/services/dom.service.js +8 -13
  195. package/{dist/es2015 → esm2015}/timepicker/services/hours.service.js +9 -14
  196. package/{dist/es2015 → esm2015}/timepicker/services/milliseconds.service.js +9 -14
  197. package/{dist/es2015 → esm2015}/timepicker/services/minutes.service.js +9 -14
  198. package/{dist/es2015 → esm2015}/timepicker/services/seconds.service.js +9 -14
  199. package/{dist/es2015 → esm2015}/timepicker/timelist.component.js +66 -61
  200. package/{dist/es2015 → esm2015}/timepicker/timepicker.component.js +251 -208
  201. package/{dist/es2015 → esm2015}/timepicker/timepicker.module.js +32 -15
  202. package/{dist/es2015 → esm2015}/timepicker/timeselector.component.js +181 -104
  203. package/{dist/es2015 → esm2015}/timepicker/util.js +8 -20
  204. package/{dist/es2015 → esm2015}/touch-enabled.js +0 -0
  205. package/{dist/es2015 → esm2015}/util.js +13 -6
  206. package/{dist/es2015 → esm2015}/validators/disabled-date.validator.js +0 -0
  207. package/{dist/es2015 → esm2015}/validators/disabled-dates-range.validator.js +0 -2
  208. package/{dist/es2015 → esm2015}/validators/incomplete-date.validator.js +0 -0
  209. package/{dist/es2015 → esm2015}/validators/max.validator.js +0 -0
  210. package/{dist/es2015 → esm2015}/validators/min.validator.js +0 -0
  211. package/{dist/es2015 → esm2015}/validators/time-range.validator.js +0 -0
  212. package/{dist/es2015/calendar → esm2015/virtualization}/models/scrollable.interface.js +1 -0
  213. package/{dist/es2015 → esm2015}/virtualization/services/row-height.service.js +1 -3
  214. package/{dist/es2015 → esm2015}/virtualization/services/scroller.service.js +0 -2
  215. package/{dist/es2015 → esm2015}/virtualization/virtualization.component.js +75 -90
  216. package/esm2015/virtualization/virtualization.module.js +30 -0
  217. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-dateinputs.js} +9763 -9156
  218. package/{dist/es/calendar/models/selection-range.interface.js → kendo-angular-dateinputs.d.ts} +3 -2
  219. package/{dist/es2015/main.d.ts → main.d.ts} +24 -0
  220. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  221. package/package.json +42 -115
  222. package/{dist/es2015/popup-settings.model.d.ts → popup-settings.model.d.ts} +0 -0
  223. package/{dist/es2015/preventable-event.d.ts → preventable-event.d.ts} +2 -0
  224. package/schematics/ngAdd/index.js +5 -2
  225. package/schematics/ngAdd/index.js.map +1 -1
  226. package/{dist/es2015/timepicker → timepicker}/localization/messages.d.ts +3 -0
  227. package/{dist/es2015/timepicker → timepicker}/localization/timepicker-custom-messages.component.d.ts +4 -1
  228. package/{dist/es2015/timepicker → timepicker}/localization/timepicker-localized-messages.directive.d.ts +3 -0
  229. package/{dist/es2015/timepicker → timepicker}/localization/timeselector-custom-messages.component.d.ts +4 -1
  230. package/{dist/es2015/timepicker → timepicker}/localization/timeselector-localized-messages.directive.d.ts +3 -0
  231. package/{dist/es2015/timepicker → timepicker}/models/incremental-steps.model.d.ts +0 -0
  232. package/{dist/es2015/timepicker → timepicker}/models/list-item.interface.d.ts +0 -0
  233. package/{dist/es2015/timepicker → timepicker}/models/list-service-settings.d.ts +0 -0
  234. package/{dist/es2015/timepicker → timepicker}/models/list-service.interface.d.ts +0 -0
  235. package/{dist/es2015/timepicker → timepicker}/models/time-part.default.d.ts +0 -0
  236. package/{dist/es2015/timepicker → timepicker}/services/dayperiod.service.d.ts +3 -0
  237. package/{dist/es2015/timepicker → timepicker}/services/dom.service.d.ts +3 -0
  238. package/{dist/es2015/timepicker → timepicker}/services/hours.service.d.ts +3 -0
  239. package/{dist/es2015/timepicker → timepicker}/services/milliseconds.service.d.ts +3 -0
  240. package/{dist/es2015/timepicker → timepicker}/services/minutes.service.d.ts +3 -0
  241. package/{dist/es2015/timepicker → timepicker}/services/seconds.service.d.ts +3 -0
  242. package/{dist/es2015/timepicker → timepicker}/timelist.component.d.ts +4 -1
  243. package/{dist/es2015/timepicker → timepicker}/timepicker.component.d.ts +45 -31
  244. package/timepicker/timepicker.module.d.ts +27 -0
  245. package/{dist/es2015/timepicker → timepicker}/timeselector.component.d.ts +10 -4
  246. package/{dist/es2015/timepicker → timepicker}/util.d.ts +0 -0
  247. package/{dist/es2015/touch-enabled.d.ts → touch-enabled.d.ts} +0 -0
  248. package/{dist/es2015/util.d.ts → util.d.ts} +12 -0
  249. package/{dist/es2015/validators → validators}/disabled-date.validator.d.ts +0 -0
  250. package/{dist/es2015/validators → validators}/disabled-dates-range.validator.d.ts +0 -0
  251. package/{dist/es2015/validators → validators}/incomplete-date.validator.d.ts +0 -0
  252. package/{dist/es2015/validators → validators}/max.validator.d.ts +0 -0
  253. package/{dist/es2015/validators → validators}/min.validator.d.ts +0 -0
  254. package/{dist/es2015/validators → validators}/time-range.validator.d.ts +0 -0
  255. package/{dist/es2015/virtualization → virtualization}/models/scrollable.interface.d.ts +0 -0
  256. package/{dist/es2015/virtualization → virtualization}/services/row-height.service.d.ts +0 -0
  257. package/{dist/es2015/virtualization → virtualization}/services/scroller.service.d.ts +0 -0
  258. package/{dist/es2015/virtualization → virtualization}/virtualization.component.d.ts +8 -5
  259. package/{dist/es2015/virtualization → virtualization}/virtualization.module.d.ts +6 -0
  260. package/dist/cdn/js/kendo-angular-dateinputs.js +0 -20
  261. package/dist/cdn/main.js +0 -5
  262. package/dist/es/calendar/calendar-common.module.js +0 -41
  263. package/dist/es/calendar/calendar.component.js +0 -1189
  264. package/dist/es/calendar/calendar.module.js +0 -108
  265. package/dist/es/calendar/calendars.module.js +0 -60
  266. package/dist/es/calendar/for.directive.js +0 -135
  267. package/dist/es/calendar/header.component.js +0 -170
  268. package/dist/es/calendar/horizontal-view-list.component.js +0 -363
  269. package/dist/es/calendar/localization/calendar-custom-messages.component.js +0 -43
  270. package/dist/es/calendar/localization/calendar-localized-messages.directive.js +0 -35
  271. package/dist/es/calendar/localization/calendar-messages.js +0 -30
  272. package/dist/es/calendar/localization/multiview-calendar-custom-messages.component.js +0 -43
  273. package/dist/es/calendar/localization/multiview-calendar-localized-messages.directive.js +0 -35
  274. package/dist/es/calendar/localization/multiview-calendar-messages.js +0 -30
  275. package/dist/es/calendar/models/keydown.interface.js +0 -4
  276. package/dist/es/calendar/models/row-length-options.interface.js +0 -4
  277. package/dist/es/calendar/models/scrollable.interface.js +0 -4
  278. package/dist/es/calendar/multiview-calendar.component.js +0 -1122
  279. package/dist/es/calendar/multiview-calendar.module.js +0 -97
  280. package/dist/es/calendar/navigation.component.js +0 -173
  281. package/dist/es/calendar/services/bus-view.service.js +0 -83
  282. package/dist/es/calendar/services/century-view.service.js +0 -180
  283. package/dist/es/calendar/services/decade-view.service.js +0 -179
  284. package/dist/es/calendar/services/disabled-dates.service.js +0 -70
  285. package/dist/es/calendar/services/dom.service.js +0 -195
  286. package/dist/es/calendar/services/month-view.service.js +0 -203
  287. package/dist/es/calendar/services/navigation.service.js +0 -53
  288. package/dist/es/calendar/services/scroll-sync.service.js +0 -85
  289. package/dist/es/calendar/services/selection.service.js +0 -55
  290. package/dist/es/calendar/services/weeknames.service.js +0 -27
  291. package/dist/es/calendar/services/year-view.service.js +0 -204
  292. package/dist/es/calendar/templates/cell-template.directive.js +0 -46
  293. package/dist/es/calendar/templates/century-cell-template.directive.js +0 -45
  294. package/dist/es/calendar/templates/decade-cell-template.directive.js +0 -45
  295. package/dist/es/calendar/templates/header-title-template.directive.js +0 -44
  296. package/dist/es/calendar/templates/month-cell-template.directive.js +0 -43
  297. package/dist/es/calendar/templates/navigation-item-template.directive.js +0 -44
  298. package/dist/es/calendar/templates/weeknumber-cell-template.directive.js +0 -43
  299. package/dist/es/calendar/templates/year-cell-template.directive.js +0 -46
  300. package/dist/es/calendar/templates.module.js +0 -59
  301. package/dist/es/calendar/view-list.component.js +0 -301
  302. package/dist/es/calendar/view.component.js +0 -318
  303. package/dist/es/common/dom-queries.js +0 -24
  304. package/dist/es/common/picker.service.js +0 -18
  305. package/dist/es/common/utils.js +0 -35
  306. package/dist/es/dateinput/dateinput.component.js +0 -1617
  307. package/dist/es/dateinput/dateinput.module.js +0 -37
  308. package/dist/es/dateinput/localization/dateinput-custom-messages.component.js +0 -43
  309. package/dist/es/dateinput/localization/dateinput-localized-messages.directive.js +0 -35
  310. package/dist/es/dateinput/localization/messages.js +0 -26
  311. package/dist/es/dateinputs.module.js +0 -63
  312. package/dist/es/datepicker/datepicker.component.js +0 -1256
  313. package/dist/es/datepicker/datepicker.module.js +0 -55
  314. package/dist/es/datepicker/localization/datepicker-custom-messages.component.js +0 -43
  315. package/dist/es/datepicker/localization/datepicker-localized-messages.directive.js +0 -35
  316. package/dist/es/datepicker/localization/messages.js +0 -34
  317. package/dist/es/daterange/date-range-end-input.directive.js +0 -97
  318. package/dist/es/daterange/date-range-input.js +0 -131
  319. package/dist/es/daterange/date-range-popup-template.directive.js +0 -23
  320. package/dist/es/daterange/date-range-popup.component.js +0 -403
  321. package/dist/es/daterange/date-range-selection.directive.js +0 -230
  322. package/dist/es/daterange/date-range-start-input.directive.js +0 -97
  323. package/dist/es/daterange/date-range.component.js +0 -71
  324. package/dist/es/daterange/date-range.module.js +0 -83
  325. package/dist/es/daterange/date-range.service.js +0 -208
  326. package/dist/es/datetimepicker/datetimepicker.component.js +0 -1309
  327. package/dist/es/datetimepicker/datetimepicker.module.js +0 -57
  328. package/dist/es/datetimepicker/localization/datetimepicker-custom-messages.component.js +0 -43
  329. package/dist/es/datetimepicker/localization/localized-messages.directive.js +0 -35
  330. package/dist/es/datetimepicker/localization/messages.js +0 -74
  331. package/dist/es/defaults.js +0 -24
  332. package/dist/es/index.js +0 -63
  333. package/dist/es/package-metadata.js +0 -15
  334. package/dist/es/preventable-event.js +0 -29
  335. package/dist/es/timepicker/localization/messages.js +0 -46
  336. package/dist/es/timepicker/localization/timepicker-custom-messages.component.js +0 -43
  337. package/dist/es/timepicker/localization/timepicker-localized-messages.directive.js +0 -35
  338. package/dist/es/timepicker/localization/timeselector-custom-messages.component.js +0 -45
  339. package/dist/es/timepicker/localization/timeselector-localized-messages.directive.js +0 -35
  340. package/dist/es/timepicker/models/time-part.default.js +0 -14
  341. package/dist/es/timepicker/services/dayperiod.service.js +0 -130
  342. package/dist/es/timepicker/services/dom.service.js +0 -64
  343. package/dist/es/timepicker/services/hours.service.js +0 -129
  344. package/dist/es/timepicker/services/milliseconds.service.js +0 -130
  345. package/dist/es/timepicker/services/minutes.service.js +0 -127
  346. package/dist/es/timepicker/services/seconds.service.js +0 -127
  347. package/dist/es/timepicker/timelist.component.js +0 -297
  348. package/dist/es/timepicker/timepicker.component.js +0 -1044
  349. package/dist/es/timepicker/timepicker.module.js +0 -75
  350. package/dist/es/timepicker/timeselector.component.js +0 -486
  351. package/dist/es/timepicker/util.js +0 -82
  352. package/dist/es/touch-enabled.js +0 -9
  353. package/dist/es/util.js +0 -395
  354. package/dist/es/validators/disabled-date.validator.js +0 -18
  355. package/dist/es/validators/disabled-dates-range.validator.js +0 -28
  356. package/dist/es/validators/incomplete-date.validator.js +0 -18
  357. package/dist/es/validators/max.validator.js +0 -21
  358. package/dist/es/validators/min.validator.js +0 -21
  359. package/dist/es/validators/time-range.validator.js +0 -23
  360. package/dist/es/virtualization/services/row-height.service.js +0 -72
  361. package/dist/es/virtualization/services/scroller.service.js +0 -111
  362. package/dist/es/virtualization/virtualization.component.js +0 -343
  363. package/dist/es/virtualization/virtualization.module.js +0 -30
  364. package/dist/es2015/calendar/calendar-common.module.d.ts +0 -15
  365. package/dist/es2015/calendar/calendar-common.module.js +0 -38
  366. package/dist/es2015/calendar/localization/calendar-custom-messages.component.js +0 -35
  367. package/dist/es2015/calendar/localization/calendar-localized-messages.directive.js +0 -31
  368. package/dist/es2015/calendar/localization/calendar-messages.js +0 -24
  369. package/dist/es2015/calendar/localization/multiview-calendar-custom-messages.component.js +0 -35
  370. package/dist/es2015/calendar/localization/multiview-calendar-localized-messages.directive.js +0 -31
  371. package/dist/es2015/calendar/localization/multiview-calendar-messages.js +0 -24
  372. package/dist/es2015/calendar/models/cell-context.interface.js +0 -4
  373. package/dist/es2015/calendar/models/navigation-action.enum.js +0 -20
  374. package/dist/es2015/calendar/models/selection-range-end.type.js +0 -4
  375. package/dist/es2015/calendar/models/selection.js +0 -4
  376. package/dist/es2015/calendar/models/type.js +0 -4
  377. package/dist/es2015/calendar/models/view-service.interface.js +0 -4
  378. package/dist/es2015/calendar/models/view.enum.js +0 -16
  379. package/dist/es2015/calendar/models/view.type.js +0 -4
  380. package/dist/es2015/calendar/templates.module.d.ts +0 -21
  381. package/dist/es2015/calendar/templates.module.js +0 -56
  382. package/dist/es2015/common/models/fillmode.js +0 -4
  383. package/dist/es2015/common/models/rounded.js +0 -4
  384. package/dist/es2015/common/models/size.js +0 -4
  385. package/dist/es2015/dateinput/arrow.enum.js +0 -13
  386. package/dist/es2015/dateinput/dateinput.module.d.ts +0 -10
  387. package/dist/es2015/dateinput/dateinput.module.js +0 -34
  388. package/dist/es2015/dateinput/localization/dateinput-custom-messages.component.js +0 -35
  389. package/dist/es2015/dateinput/localization/dateinput-localized-messages.directive.js +0 -31
  390. package/dist/es2015/dateinput/localization/messages.js +0 -20
  391. package/dist/es2015/dateinput/models/format-placeholder.model.js +0 -4
  392. package/dist/es2015/dateinput/models/format-settings.model.js +0 -4
  393. package/dist/es2015/dateinput/models/incremental-steps.model.js +0 -4
  394. package/dist/es2015/datepicker/datepicker.module.d.ts +0 -10
  395. package/dist/es2015/datepicker/datepicker.module.js +0 -52
  396. package/dist/es2015/datepicker/localization/datepicker-custom-messages.component.js +0 -35
  397. package/dist/es2015/datepicker/localization/datepicker-localized-messages.directive.js +0 -31
  398. package/dist/es2015/datepicker/localization/messages.js +0 -28
  399. package/dist/es2015/daterange/auto-correct-on.type.js +0 -4
  400. package/dist/es2015/daterange/date-range-popup-template.directive.js +0 -22
  401. package/dist/es2015/daterange/date-range.component.js +0 -68
  402. package/dist/es2015/datetimepicker/datetimepicker.module.d.ts +0 -10
  403. package/dist/es2015/datetimepicker/datetimepicker.module.js +0 -57
  404. package/dist/es2015/datetimepicker/localization/datetimepicker-custom-messages.component.js +0 -35
  405. package/dist/es2015/datetimepicker/localization/localized-messages.directive.js +0 -31
  406. package/dist/es2015/datetimepicker/localization/messages.js +0 -68
  407. package/dist/es2015/datetimepicker/models/active-tab.type.js +0 -4
  408. package/dist/es2015/index.d.ts +0 -63
  409. package/dist/es2015/index.js +0 -63
  410. package/dist/es2015/index.metadata.json +0 -1
  411. package/dist/es2015/main.js +0 -35
  412. package/dist/es2015/popup-settings.model.js +0 -4
  413. package/dist/es2015/timepicker/localization/messages.js +0 -40
  414. package/dist/es2015/timepicker/localization/timepicker-custom-messages.component.js +0 -35
  415. package/dist/es2015/timepicker/localization/timepicker-localized-messages.directive.js +0 -31
  416. package/dist/es2015/timepicker/localization/timeselector-custom-messages.component.js +0 -37
  417. package/dist/es2015/timepicker/localization/timeselector-localized-messages.directive.js +0 -31
  418. package/dist/es2015/timepicker/models/incremental-steps.model.js +0 -4
  419. package/dist/es2015/timepicker/models/list-item.interface.js +0 -4
  420. package/dist/es2015/timepicker/models/list-service-settings.js +0 -4
  421. package/dist/es2015/timepicker/models/list-service.interface.js +0 -4
  422. package/dist/es2015/timepicker/timepicker.module.d.ts +0 -10
  423. package/dist/es2015/virtualization/models/scrollable.interface.js +0 -4
  424. package/dist/es2015/virtualization/virtualization.module.js +0 -27
  425. package/dist/fesm5/index.js +0 -15216
  426. package/dist/npm/calendar/calendar-common.module.js +0 -43
  427. package/dist/npm/calendar/calendar.component.js +0 -1191
  428. package/dist/npm/calendar/calendar.module.js +0 -110
  429. package/dist/npm/calendar/calendars.module.js +0 -62
  430. package/dist/npm/calendar/for.directive.js +0 -138
  431. package/dist/npm/calendar/header.component.js +0 -172
  432. package/dist/npm/calendar/horizontal-view-list.component.js +0 -365
  433. package/dist/npm/calendar/localization/calendar-custom-messages.component.js +0 -45
  434. package/dist/npm/calendar/localization/calendar-localized-messages.directive.js +0 -37
  435. package/dist/npm/calendar/localization/calendar-messages.js +0 -32
  436. package/dist/npm/calendar/localization/multiview-calendar-custom-messages.component.js +0 -45
  437. package/dist/npm/calendar/localization/multiview-calendar-localized-messages.directive.js +0 -37
  438. package/dist/npm/calendar/localization/multiview-calendar-messages.js +0 -32
  439. package/dist/npm/calendar/models/cell-context.interface.js +0 -6
  440. package/dist/npm/calendar/models/keydown.interface.js +0 -6
  441. package/dist/npm/calendar/models/navigation-action.enum.js +0 -22
  442. package/dist/npm/calendar/models/row-length-options.interface.js +0 -6
  443. package/dist/npm/calendar/models/scrollable.interface.js +0 -6
  444. package/dist/npm/calendar/models/selection-range-end.type.js +0 -6
  445. package/dist/npm/calendar/models/selection-range.interface.js +0 -10
  446. package/dist/npm/calendar/models/selection.js +0 -6
  447. package/dist/npm/calendar/models/type.js +0 -6
  448. package/dist/npm/calendar/models/view-service.interface.js +0 -6
  449. package/dist/npm/calendar/models/view.enum.js +0 -18
  450. package/dist/npm/calendar/models/view.type.js +0 -6
  451. package/dist/npm/calendar/multiview-calendar.component.js +0 -1124
  452. package/dist/npm/calendar/multiview-calendar.module.js +0 -99
  453. package/dist/npm/calendar/navigation.component.js +0 -175
  454. package/dist/npm/calendar/services/bus-view.service.js +0 -85
  455. package/dist/npm/calendar/services/century-view.service.js +0 -182
  456. package/dist/npm/calendar/services/decade-view.service.js +0 -181
  457. package/dist/npm/calendar/services/disabled-dates.service.js +0 -72
  458. package/dist/npm/calendar/services/dom.service.js +0 -212
  459. package/dist/npm/calendar/services/month-view.service.js +0 -205
  460. package/dist/npm/calendar/services/navigation.service.js +0 -55
  461. package/dist/npm/calendar/services/scroll-sync.service.js +0 -88
  462. package/dist/npm/calendar/services/selection.service.js +0 -57
  463. package/dist/npm/calendar/services/weeknames.service.js +0 -29
  464. package/dist/npm/calendar/services/year-view.service.js +0 -207
  465. package/dist/npm/calendar/templates/cell-template.directive.js +0 -48
  466. package/dist/npm/calendar/templates/century-cell-template.directive.js +0 -47
  467. package/dist/npm/calendar/templates/decade-cell-template.directive.js +0 -47
  468. package/dist/npm/calendar/templates/header-title-template.directive.js +0 -46
  469. package/dist/npm/calendar/templates/month-cell-template.directive.js +0 -45
  470. package/dist/npm/calendar/templates/navigation-item-template.directive.js +0 -46
  471. package/dist/npm/calendar/templates/weeknumber-cell-template.directive.js +0 -45
  472. package/dist/npm/calendar/templates/year-cell-template.directive.js +0 -48
  473. package/dist/npm/calendar/templates.module.js +0 -61
  474. package/dist/npm/calendar/view-list.component.js +0 -303
  475. package/dist/npm/calendar/view.component.js +0 -320
  476. package/dist/npm/common/dom-queries.js +0 -26
  477. package/dist/npm/common/models/fillmode.js +0 -6
  478. package/dist/npm/common/models/rounded.js +0 -6
  479. package/dist/npm/common/models/size.js +0 -6
  480. package/dist/npm/common/picker.service.js +0 -20
  481. package/dist/npm/common/utils.js +0 -37
  482. package/dist/npm/dateinput/arrow.enum.js +0 -15
  483. package/dist/npm/dateinput/dateinput.component.js +0 -1620
  484. package/dist/npm/dateinput/dateinput.module.js +0 -39
  485. package/dist/npm/dateinput/localization/dateinput-custom-messages.component.js +0 -45
  486. package/dist/npm/dateinput/localization/dateinput-localized-messages.directive.js +0 -37
  487. package/dist/npm/dateinput/localization/messages.js +0 -28
  488. package/dist/npm/dateinput/models/format-placeholder.model.js +0 -6
  489. package/dist/npm/dateinput/models/format-settings.model.js +0 -6
  490. package/dist/npm/dateinput/models/incremental-steps.model.js +0 -6
  491. package/dist/npm/dateinputs.module.js +0 -65
  492. package/dist/npm/datepicker/datepicker.component.js +0 -1258
  493. package/dist/npm/datepicker/datepicker.module.js +0 -57
  494. package/dist/npm/datepicker/localization/datepicker-custom-messages.component.js +0 -45
  495. package/dist/npm/datepicker/localization/datepicker-localized-messages.directive.js +0 -37
  496. package/dist/npm/datepicker/localization/messages.js +0 -36
  497. package/dist/npm/daterange/auto-correct-on.type.js +0 -6
  498. package/dist/npm/daterange/date-range-end-input.directive.js +0 -99
  499. package/dist/npm/daterange/date-range-input.js +0 -133
  500. package/dist/npm/daterange/date-range-popup-template.directive.js +0 -25
  501. package/dist/npm/daterange/date-range-popup.component.js +0 -405
  502. package/dist/npm/daterange/date-range-selection.directive.js +0 -232
  503. package/dist/npm/daterange/date-range-start-input.directive.js +0 -99
  504. package/dist/npm/daterange/date-range.component.js +0 -73
  505. package/dist/npm/daterange/date-range.module.js +0 -85
  506. package/dist/npm/daterange/date-range.service.js +0 -211
  507. package/dist/npm/datetimepicker/datetimepicker.component.js +0 -1311
  508. package/dist/npm/datetimepicker/datetimepicker.module.js +0 -59
  509. package/dist/npm/datetimepicker/localization/datetimepicker-custom-messages.component.js +0 -45
  510. package/dist/npm/datetimepicker/localization/localized-messages.directive.js +0 -37
  511. package/dist/npm/datetimepicker/localization/messages.js +0 -76
  512. package/dist/npm/datetimepicker/models/active-tab.type.js +0 -6
  513. package/dist/npm/defaults.js +0 -26
  514. package/dist/npm/index.js +0 -127
  515. package/dist/npm/main.js +0 -68
  516. package/dist/npm/package-metadata.js +0 -17
  517. package/dist/npm/popup-settings.model.js +0 -6
  518. package/dist/npm/preventable-event.js +0 -31
  519. package/dist/npm/timepicker/localization/messages.js +0 -48
  520. package/dist/npm/timepicker/localization/timepicker-custom-messages.component.js +0 -45
  521. package/dist/npm/timepicker/localization/timepicker-localized-messages.directive.js +0 -37
  522. package/dist/npm/timepicker/localization/timeselector-custom-messages.component.js +0 -47
  523. package/dist/npm/timepicker/localization/timeselector-localized-messages.directive.js +0 -37
  524. package/dist/npm/timepicker/models/incremental-steps.model.js +0 -6
  525. package/dist/npm/timepicker/models/list-item.interface.js +0 -6
  526. package/dist/npm/timepicker/models/list-service-settings.js +0 -6
  527. package/dist/npm/timepicker/models/list-service.interface.js +0 -6
  528. package/dist/npm/timepicker/models/time-part.default.js +0 -16
  529. package/dist/npm/timepicker/services/dayperiod.service.js +0 -136
  530. package/dist/npm/timepicker/services/dom.service.js +0 -70
  531. package/dist/npm/timepicker/services/hours.service.js +0 -134
  532. package/dist/npm/timepicker/services/milliseconds.service.js +0 -135
  533. package/dist/npm/timepicker/services/minutes.service.js +0 -132
  534. package/dist/npm/timepicker/services/seconds.service.js +0 -132
  535. package/dist/npm/timepicker/timelist.component.js +0 -299
  536. package/dist/npm/timepicker/timepicker.component.js +0 -1046
  537. package/dist/npm/timepicker/timepicker.module.js +0 -77
  538. package/dist/npm/timepicker/timeselector.component.js +0 -488
  539. package/dist/npm/timepicker/util.js +0 -101
  540. package/dist/npm/touch-enabled.js +0 -11
  541. package/dist/npm/util.js +0 -399
  542. package/dist/npm/validators/disabled-date.validator.js +0 -20
  543. package/dist/npm/validators/disabled-dates-range.validator.js +0 -30
  544. package/dist/npm/validators/incomplete-date.validator.js +0 -20
  545. package/dist/npm/validators/max.validator.js +0 -23
  546. package/dist/npm/validators/min.validator.js +0 -23
  547. package/dist/npm/validators/time-range.validator.js +0 -25
  548. package/dist/npm/virtualization/models/scrollable.interface.js +0 -6
  549. package/dist/npm/virtualization/services/row-height.service.js +0 -74
  550. package/dist/npm/virtualization/services/scroller.service.js +0 -113
  551. package/dist/npm/virtualization/virtualization.component.js +0 -346
  552. package/dist/npm/virtualization/virtualization.module.js +0 -32
  553. package/dist/systemjs/kendo-angular-dateinputs.js +0 -5
@@ -1,1046 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var forms_1 = require("@angular/forms");
10
- var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
11
- var kendo_angular_popup_1 = require("@progress/kendo-angular-popup");
12
- var kendo_date_math_1 = require("@progress/kendo-date-math");
13
- var kendo_angular_common_1 = require("@progress/kendo-angular-common");
14
- var kendo_licensing_1 = require("@progress/kendo-licensing");
15
- var package_metadata_1 = require("../package-metadata");
16
- var defaults_1 = require("../defaults");
17
- var kendo_angular_intl_1 = require("@progress/kendo-angular-intl");
18
- var picker_service_1 = require("../common/picker.service");
19
- var utils_1 = require("../common/utils");
20
- var time_part_default_1 = require("./models/time-part.default");
21
- var preventable_event_1 = require("../preventable-event");
22
- var util_1 = require("../util");
23
- var time_range_validator_1 = require("../validators/time-range.validator");
24
- var touch_enabled_1 = require("../touch-enabled");
25
- var rxjs_1 = require("rxjs");
26
- var incomplete_date_validator_1 = require("../validators/incomplete-date.validator");
27
- var VALUE_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/timepicker/#toc-integration-with-json';
28
- var INTL_DATE_FORMAT = 'https://github.com/telerik/kendo-intl/blob/master/docs/date-formatting/index.md';
29
- var formatRegExp = new RegExp(time_part_default_1.TIME_PART.hour + "|" + time_part_default_1.TIME_PART.minute + "|" + time_part_default_1.TIME_PART.second + "|" + time_part_default_1.TIME_PART.millisecond + "|" + time_part_default_1.TIME_PART.dayperiod + "|literal");
30
- /**
31
- * Represents the [Kendo UI TimePicker component for Angular]({% slug overview_timepicker %}#toc-basic-usage).
32
- */
33
- var TimePickerComponent = /** @class */ (function () {
34
- function TimePickerComponent(zone, localization, cdr, popupService, wrapper, renderer, injector, pickerService, intl, touchEnabled) {
35
- this.zone = zone;
36
- this.localization = localization;
37
- this.cdr = cdr;
38
- this.popupService = popupService;
39
- this.wrapper = wrapper;
40
- this.renderer = renderer;
41
- this.injector = injector;
42
- this.pickerService = pickerService;
43
- this.intl = intl;
44
- this.touchEnabled = touchEnabled;
45
- /**
46
- * @hidden
47
- */
48
- this.focusableId = "k-" + kendo_angular_common_1.guid();
49
- /**
50
- * Sets or gets the `disabled` property of the TimePicker and
51
- * determines whether the component is active
52
- * ([see example]({% slug disabled_timepicker %})).
53
- */
54
- this.disabled = false;
55
- /**
56
- * Sets the read-only state of the TimePicker
57
- * ([see example]({% slug readonly_timepicker %}#toc-read-only-timepicker)).
58
- */
59
- this.readonly = false;
60
- /**
61
- * Sets the read-only state of the TimePicker input field
62
- * ([see example]({% slug readonly_timepicker %}#toc-read-only-input)).
63
- *
64
- * > Note that if you set the [`readonly`]({% slug api_dateinputs_timepickercomponent %}#toc-readonly) property value to `true`,
65
- * the input will be rendered in a read-only state regardless of the `readOnlyInput` value.
66
- */
67
- this.readOnlyInput = false;
68
- /**
69
- * Specifies the time format that is used to display the input value
70
- * ([see example]({% slug formats_timepicker %})).
71
- */
72
- this.format = 't';
73
- /**
74
- * Specifies the hint the TimePicker displays when its value is `null`.
75
- * For more information, refer to the article on
76
- * [placeholders]({% slug placeholders_timepicker %}).
77
- *
78
- * @example
79
- * ```ts
80
- * _@Component({
81
- * selector: 'my-app',
82
- * template: `
83
- * <kendo-timepicker placeholder="Enter start..."></kendo-timepicker>
84
- * `
85
- * })
86
- * export class AppComponent { }
87
- * ```
88
- */
89
- this.placeholder = null;
90
- /**
91
- * Determines whether the built-in validation for incomplete dates is to be enforced when a form is being validated.
92
- */
93
- this.incompleteDateValidation = false;
94
- /**
95
- * Determines whether to display the **Cancel** button in the popup.
96
- */
97
- this.cancelButton = true;
98
- /**
99
- * Determines whether to display the **Now** button in the popup.
100
- *
101
- * > If the current time is out of range or the incremental step is greater than `1`, the **Now** button will be hidden.
102
- */
103
- this.nowButton = true;
104
- /**
105
- * Sets or gets the `tabindex` property of the TimePicker.
106
- */
107
- this.tabindex = 0;
108
- /**
109
- * Sets the title of the input element of the TimePicker.
110
- */
111
- this.title = "";
112
- /**
113
- * Determines whether the built-in min or max validators are enforced when a form is being validated.
114
- */
115
- this.rangeValidation = true;
116
- /**
117
- * Fires each time the user selects a new value.
118
- * For more information, refer to the section on
119
- * [events]({% slug overview_timepicker %}#toc-events).
120
- */
121
- this.valueChange = new core_1.EventEmitter();
122
- /**
123
- * Fires each time the user focuses the input element.
124
- * For more information, refer to the section on
125
- * [events]({% slug overview_timepicker %}#toc-events).
126
- *
127
- * > To wire the event programmatically, use the `onFocus` property.
128
- *
129
- * @example
130
- * ```ts
131
- * _@Component({
132
- * selector: 'my-app',
133
- * template: `
134
- * <kendo-timepicker (focus)="handleFocus()"></kendo-timepicker>
135
- * `
136
- * })
137
- * export class AppComponent {
138
- * public handleFocus(): void {
139
- * console.log("Component is focused");
140
- * }
141
- * }
142
- * ```
143
- */
144
- this.onFocus = new core_1.EventEmitter(); //tslint:disable-line:no-output-rename
145
- /**
146
- * Fires each time the input element gets blurred.
147
- * For more information, refer to the section on
148
- * [events]({% slug overview_timepicker %}#toc-events).
149
- *
150
- * > To wire the event programmatically, use the `onBlur` property.
151
- *
152
- * @example
153
- * ```ts
154
- * _@Component({
155
- * selector: 'my-app',
156
- * template: `
157
- * <kendo-timepicker (blur)="handleBlur()"></kendo-timepicker>
158
- * `
159
- * })
160
- * export class AppComponent {
161
- * public handleBlur(): void {
162
- * console.log("Component is blurred");
163
- * }
164
- * }
165
- * ```
166
- */
167
- this.onBlur = new core_1.EventEmitter(); //tslint:disable-line:no-output-rename
168
- /**
169
- * Fires each time the popup is about to open.
170
- * This event is preventable. If you cancel the event, the popup will remain closed.
171
- * For more information, refer to the section on
172
- * [events]({% slug overview_timepicker %}#toc-events).
173
- */
174
- this.open = new core_1.EventEmitter();
175
- /**
176
- * Fires each time the popup is about to close.
177
- * This event is preventable. If you cancel the event, the popup will remain open.
178
- * For more information, refer to the section on
179
- * [events]({% slug overview_timepicker %}#toc-events).
180
- */
181
- this.close = new core_1.EventEmitter();
182
- /**
183
- * @hidden
184
- */
185
- this.wrapperClasses = true;
186
- this.popupUID = kendo_angular_common_1.guid();
187
- this.onControlChange = util_1.noop;
188
- this.onControlTouched = util_1.noop;
189
- this.onValidatorChange = util_1.noop;
190
- this.resolvedPromise = Promise.resolve(null);
191
- this.timeRangeValidateFn = util_1.noop;
192
- this.incompleteValidator = util_1.noop;
193
- this._min = kendo_date_math_1.cloneDate(defaults_1.MIN_TIME);
194
- this._max = kendo_date_math_1.cloneDate(defaults_1.MAX_TIME);
195
- this._popupSettings = { animate: true };
196
- this._show = false;
197
- this._steps = {};
198
- this._value = null;
199
- this._active = false;
200
- this.domEvents = [];
201
- this._size = 'medium';
202
- this._rounded = 'medium';
203
- this._fillMode = 'solid';
204
- kendo_licensing_1.validatePackage(package_metadata_1.packageMetadata);
205
- this.pickerSubscriptions = this.pickerService.onFocus.subscribe(this.handleFocus.bind(this));
206
- this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this)));
207
- this.pickerSubscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this)));
208
- }
209
- TimePickerComponent_1 = TimePickerComponent;
210
- Object.defineProperty(TimePickerComponent.prototype, "min", {
211
- get: function () {
212
- return this._min;
213
- },
214
- /**
215
- * Specifies the smallest valid time value
216
- * ([see example]({% slug timeranges_timepicker %})).
217
- */
218
- set: function (min) {
219
- this._min = kendo_date_math_1.cloneDate(min || defaults_1.MIN_TIME);
220
- },
221
- enumerable: true,
222
- configurable: true
223
- });
224
- Object.defineProperty(TimePickerComponent.prototype, "max", {
225
- get: function () {
226
- return this._max;
227
- },
228
- /**
229
- * Specifies the biggest valid time value
230
- * ([see example]({% slug timeranges_timepicker %})).
231
- */
232
- set: function (max) {
233
- this._max = kendo_date_math_1.cloneDate(max || defaults_1.MAX_TIME);
234
- },
235
- enumerable: true,
236
- configurable: true
237
- });
238
- Object.defineProperty(TimePickerComponent.prototype, "steps", {
239
- get: function () {
240
- return this._steps;
241
- },
242
- /**
243
- * Configures the incremental steps of the TimePicker.
244
- * For more information, refer to the article on
245
- * [incremental steps]({% slug incrementalsteps_timepicker %}).
246
- *
247
- * > If the incremental step is greater than `1`, the **Now** button will be hidden.
248
- *
249
- * @example
250
- * ```ts
251
- * _@Component({
252
- * selector: 'my-app',
253
- * template: `
254
- * <kendo-timepicker format="HH:mm:ss" [steps]="steps"></kendo-timepicker>
255
- * `
256
- * })
257
- * class AppComponent {
258
- * public steps = { hour: 2, minute: 15, second: 15, millisecond: 10 };
259
- * }
260
- * ```
261
- *
262
- */
263
- set: function (steps) {
264
- this._steps = steps || {};
265
- },
266
- enumerable: true,
267
- configurable: true
268
- });
269
- Object.defineProperty(TimePickerComponent.prototype, "popupSettings", {
270
- get: function () {
271
- return this._popupSettings;
272
- },
273
- /**
274
- * Configures the popup of the TimePicker.
275
- *
276
- * The available options are:
277
- * - `animate: Boolean`&mdash;Controls the popup animation. By default, the open and close animations are enabled.
278
- * - `appendTo: 'root' | 'component' | ViewContainerRef`&mdash;Controls the popup container. By default, the popup will be appended to the root component.
279
- * - `popupClass: String`&mdash;Specifies a list of CSS classes that are used to style the popup.
280
- */
281
- set: function (settings) {
282
- this._popupSettings = Object.assign({}, { animate: true }, settings);
283
- },
284
- enumerable: true,
285
- configurable: true
286
- });
287
- Object.defineProperty(TimePickerComponent.prototype, "tabIndex", {
288
- get: function () {
289
- return this.tabindex;
290
- },
291
- /**
292
- * @hidden
293
- */
294
- set: function (tabIndex) {
295
- this.tabindex = tabIndex;
296
- },
297
- enumerable: true,
298
- configurable: true
299
- });
300
- Object.defineProperty(TimePickerComponent.prototype, "value", {
301
- get: function () {
302
- return this._value;
303
- },
304
- /**
305
- * Specifies the value of the TimePicker component.
306
- */
307
- set: function (value) {
308
- this.verifyValue(value);
309
- this._value = kendo_date_math_1.cloneDate(value);
310
- },
311
- enumerable: true,
312
- configurable: true
313
- });
314
- Object.defineProperty(TimePickerComponent.prototype, "size", {
315
- get: function () {
316
- return this._size;
317
- },
318
- /**
319
- * Sets the size of the component.
320
- *
321
- * The possible values are:
322
- * * `'small'`
323
- * * `'medium'` (Default)
324
- * * `'large'`
325
- * * `null`
326
- *
327
- */
328
- set: function (size) {
329
- this.renderer.removeClass(this.wrapper.nativeElement, util_1.getSizeClass('input', this.size));
330
- this.renderer.removeClass(this.toggleButton.nativeElement, util_1.getSizeClass('input', this.size));
331
- if (size) {
332
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getSizeClass('input', size));
333
- this.renderer.addClass(this.toggleButton.nativeElement, util_1.getSizeClass('input', size));
334
- }
335
- this._size = size;
336
- },
337
- enumerable: true,
338
- configurable: true
339
- });
340
- Object.defineProperty(TimePickerComponent.prototype, "rounded", {
341
- get: function () {
342
- return this._rounded;
343
- },
344
- /**
345
- * Sets the border radius of the component.
346
- *
347
- * The possible values are:
348
- * * `'small'`
349
- * * `'medium'` (Default)
350
- * * `'large'`
351
- * * `'full'`
352
- * * `null`
353
- *
354
- */
355
- set: function (rounded) {
356
- this.renderer.removeClass(this.wrapper.nativeElement, util_1.getRoundedClass(this.rounded));
357
- if (rounded) {
358
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getRoundedClass(rounded));
359
- }
360
- this._rounded = rounded;
361
- },
362
- enumerable: true,
363
- configurable: true
364
- });
365
- Object.defineProperty(TimePickerComponent.prototype, "fillMode", {
366
- get: function () {
367
- return this._fillMode;
368
- },
369
- /**
370
- * Sets the fillMode of the component.
371
- *
372
- * The possible values are:
373
- * * `'solid'` (Default)
374
- * * `'flat'`
375
- * * `'outline'`
376
- * * `null`
377
- *
378
- */
379
- set: function (fillMode) {
380
- this.renderer.removeClass(this.wrapper.nativeElement, util_1.getFillModeClass('input', this.fillMode));
381
- this.renderer.removeClass(this.toggleButton.nativeElement, util_1.getFillModeClass('button', this.fillMode));
382
- this.renderer.removeClass(this.toggleButton.nativeElement, "k-button-" + this.fillMode + "-base");
383
- if (fillMode) {
384
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getFillModeClass('input', fillMode));
385
- this.renderer.addClass(this.toggleButton.nativeElement, util_1.getFillModeClass('button', fillMode));
386
- this.renderer.addClass(this.toggleButton.nativeElement, "k-button-" + fillMode + "-base");
387
- }
388
- this._fillMode = fillMode;
389
- },
390
- enumerable: true,
391
- configurable: true
392
- });
393
- Object.defineProperty(TimePickerComponent.prototype, "disabledClass", {
394
- /**
395
- * @hidden
396
- */
397
- get: function () {
398
- return this.disabled;
399
- },
400
- enumerable: true,
401
- configurable: true
402
- });
403
- Object.defineProperty(TimePickerComponent.prototype, "inputRole", {
404
- /**
405
- * @hidden
406
- */
407
- get: function () {
408
- return this.readOnlyInput ? 'listbox' : 'spinbutton';
409
- },
410
- enumerable: true,
411
- configurable: true
412
- });
413
- Object.defineProperty(TimePickerComponent.prototype, "isActive", {
414
- get: function () {
415
- return this._active;
416
- },
417
- set: function (value) {
418
- this._active = value;
419
- if (!this.wrapper) {
420
- return;
421
- }
422
- var element = this.wrapper.nativeElement;
423
- if (value) {
424
- this.renderer.addClass(element, 'k-focus');
425
- }
426
- else {
427
- this.renderer.removeClass(element, 'k-focus');
428
- }
429
- },
430
- enumerable: true,
431
- configurable: true
432
- });
433
- Object.defineProperty(TimePickerComponent.prototype, "show", {
434
- get: function () {
435
- return this._show;
436
- },
437
- set: function (show) {
438
- var _this = this;
439
- if (show && (this.disabled || this.readonly)) {
440
- return;
441
- }
442
- var skipZone = !show && (!this._show || !kendo_angular_common_1.hasObservers(this.close));
443
- if (!skipZone) {
444
- this.zone.run(function () {
445
- _this.togglePopup(show);
446
- });
447
- }
448
- else {
449
- this.togglePopup(show);
450
- }
451
- },
452
- enumerable: true,
453
- configurable: true
454
- });
455
- Object.defineProperty(TimePickerComponent.prototype, "input", {
456
- get: function () {
457
- return this.pickerService.input;
458
- },
459
- enumerable: true,
460
- configurable: true
461
- });
462
- Object.defineProperty(TimePickerComponent.prototype, "timeSelector", {
463
- get: function () {
464
- return this.pickerService.timeSelector;
465
- },
466
- enumerable: true,
467
- configurable: true
468
- });
469
- /**
470
- * @hidden
471
- * Used by the TextBoxContainer to determine if the component is empty
472
- */
473
- TimePickerComponent.prototype.isEmpty = function () {
474
- return !this.value && this.input.isEmpty();
475
- };
476
- /**
477
- * @hidden
478
- */
479
- TimePickerComponent.prototype.ngOnInit = function () {
480
- var _this = this;
481
- this.localizationChangeSubscription = this.localization
482
- .changes.subscribe(function () { return _this.cdr.markForCheck(); });
483
- this.control = this.injector.get(forms_1.NgControl, null);
484
- if (this.wrapper) {
485
- this.renderer.removeAttribute(this.wrapper.nativeElement, 'tabindex');
486
- this.zone.runOutsideAngular(function () {
487
- _this.bindEvents();
488
- });
489
- }
490
- };
491
- /**
492
- * @hidden
493
- */
494
- TimePickerComponent.prototype.ngAfterViewInit = function () {
495
- this.setComponentClasses();
496
- };
497
- /**
498
- * @hidden
499
- */
500
- TimePickerComponent.prototype.ngOnChanges = function (changes) {
501
- if (changes.min || changes.max || changes.rangeValidation || changes.incompleteDateValidation) {
502
- this.timeRangeValidateFn = this.rangeValidation ? time_range_validator_1.timeRangeValidator(this.min, this.max) : util_1.noop;
503
- this.incompleteValidator = this.incompleteDateValidation ? incomplete_date_validator_1.incompleteDateValidator() : util_1.noop;
504
- this.onValidatorChange();
505
- }
506
- if (changes.format) {
507
- this.verifyFormat();
508
- }
509
- };
510
- /**
511
- * @hidden
512
- */
513
- TimePickerComponent.prototype.ngOnDestroy = function () {
514
- this.isActive = false;
515
- this.show = false;
516
- if (this.localizationChangeSubscription) {
517
- this.localizationChangeSubscription.unsubscribe();
518
- }
519
- if (this.windowBlurSubscription) {
520
- this.windowBlurSubscription.unsubscribe();
521
- }
522
- this.domEvents.forEach(function (unbindCallback) { return unbindCallback(); });
523
- this.pickerSubscriptions.unsubscribe();
524
- };
525
- /**
526
- * @hidden
527
- */
528
- TimePickerComponent.prototype.handleKeydown = function (event) {
529
- var altKey = event.altKey, keyCode = event.keyCode;
530
- if (keyCode === kendo_angular_common_1.Keys.Escape) {
531
- this.show = false;
532
- return;
533
- }
534
- if (altKey) {
535
- if (keyCode === kendo_angular_common_1.Keys.ArrowUp) {
536
- this.show = false;
537
- }
538
- if (keyCode === kendo_angular_common_1.Keys.ArrowDown && !this.show) {
539
- this.show = true;
540
- }
541
- }
542
- };
543
- /**
544
- * @hidden
545
- */
546
- TimePickerComponent.prototype.writeValue = function (value) {
547
- this.verifyValue(value);
548
- this.value = kendo_date_math_1.cloneDate(value);
549
- this.cdr.markForCheck();
550
- if (!value && this.input) {
551
- this.input.placeholder = this.placeholder;
552
- this.input.writeValue(value);
553
- }
554
- };
555
- /**
556
- * @hidden
557
- */
558
- TimePickerComponent.prototype.registerOnChange = function (fn) {
559
- this.onControlChange = fn;
560
- };
561
- /**
562
- * @hidden
563
- */
564
- TimePickerComponent.prototype.registerOnTouched = function (fn) {
565
- this.onControlTouched = fn;
566
- };
567
- /**
568
- * @hidden
569
- */
570
- TimePickerComponent.prototype.setDisabledState = function (isDisabled) {
571
- this.disabled = isDisabled;
572
- this.cdr.markForCheck();
573
- };
574
- /**
575
- * @hidden
576
- */
577
- TimePickerComponent.prototype.validate = function (control) {
578
- return this.timeRangeValidateFn(control) || this.incompleteValidator(control, this.input && this.input.isDateIncomplete);
579
- };
580
- /**
581
- * @hidden
582
- */
583
- TimePickerComponent.prototype.registerOnValidatorChange = function (fn) {
584
- this.onValidatorChange = fn;
585
- };
586
- /**
587
- * Focuses the TimePicker component.
588
- *
589
- * @example
590
- * ```ts
591
- * _@Component({
592
- * selector: 'my-app',
593
- * template: `
594
- * <button (click)="timepicker.focus()">Focus time picker</button>
595
- * <kendo-timepicker #timepicker></kendo-timepicker>
596
- * `
597
- * })
598
- * export class AppComponent { }
599
- * ```
600
- */
601
- TimePickerComponent.prototype.focus = function () {
602
- this.input.focus();
603
- };
604
- /**
605
- * Blurs the TimePicker component.
606
- */
607
- TimePickerComponent.prototype.blur = function () {
608
- (this.timeSelector || this.input)['blur'](); //tslint:disable-line:no-string-literal
609
- };
610
- /**
611
- * Toggles the visibility of the popup. If you use the `toggle` method to show or hide the popup,
612
- * the `open` and `close` events do not fire.
613
- *
614
- * @param show - The state of the popup.
615
- */
616
- TimePickerComponent.prototype.toggle = function (show) {
617
- var _this = this;
618
- if (this.disabled || this.readonly) {
619
- return;
620
- }
621
- this.resolvedPromise.then(function () {
622
- _this._toggle((show === undefined) ? !_this.show : show);
623
- });
624
- };
625
- Object.defineProperty(TimePickerComponent.prototype, "isOpen", {
626
- /**
627
- * Returns the current open state of the popup.
628
- */
629
- get: function () {
630
- return this.show;
631
- },
632
- enumerable: true,
633
- configurable: true
634
- });
635
- Object.defineProperty(TimePickerComponent.prototype, "appendTo", {
636
- /**
637
- * @hidden
638
- */
639
- get: function () {
640
- var appendTo = this.popupSettings.appendTo;
641
- if (!appendTo || appendTo === 'root') {
642
- return undefined;
643
- }
644
- return appendTo === 'component' ? this.container : appendTo;
645
- },
646
- enumerable: true,
647
- configurable: true
648
- });
649
- /**
650
- * @hidden
651
- */
652
- TimePickerComponent.prototype.handleChange = function (value) {
653
- var _this = this;
654
- if (kendo_date_math_1.isEqual(this.value, value)) {
655
- this.focusInput();
656
- this.show = false;
657
- return;
658
- }
659
- this.value = kendo_date_math_1.cloneDate(value);
660
- this.zone.run(function () {
661
- _this.focusInput();
662
- _this.show = false;
663
- _this.onControlChange(kendo_date_math_1.cloneDate(value));
664
- _this.valueChange.emit(kendo_date_math_1.cloneDate(value));
665
- });
666
- };
667
- /**
668
- * @hidden
669
- */
670
- TimePickerComponent.prototype.handleReject = function () {
671
- this.show = false;
672
- };
673
- /**
674
- * @hidden
675
- */
676
- TimePickerComponent.prototype.handleInputChange = function (value) {
677
- var val = this.input.formatSections.date ? value : this.mergeTime(value);
678
- this.handleChange(val);
679
- };
680
- /**
681
- * @hidden
682
- */
683
- TimePickerComponent.prototype.handleMousedown = function (args) {
684
- args.preventDefault();
685
- };
686
- /**
687
- * @hidden
688
- */
689
- TimePickerComponent.prototype.handleIconClick = function (event) {
690
- if (this.disabled || this.readonly) {
691
- return;
692
- }
693
- event.preventDefault();
694
- this.focusInput();
695
- //XXX: explicit call handleFocus handler here
696
- //due to async IE focus event
697
- this.handleFocus();
698
- this.show = !this.show;
699
- };
700
- Object.defineProperty(TimePickerComponent.prototype, "popupClasses", {
701
- /**
702
- * @hidden
703
- */
704
- get: function () {
705
- return [
706
- 'k-group',
707
- 'k-reset'
708
- ].concat(this.popupSettings.popupClass || []);
709
- },
710
- enumerable: true,
711
- configurable: true
712
- });
713
- /**
714
- * @hidden
715
- */
716
- TimePickerComponent.prototype.normalizeTime = function (date) {
717
- return util_1.setTime(defaults_1.MIDNIGHT_DATE, date);
718
- };
719
- /**
720
- * @hidden
721
- */
722
- TimePickerComponent.prototype.mergeTime = function (value) {
723
- return this.value && value ? util_1.setTime(this.value, value) : value;
724
- };
725
- TimePickerComponent.prototype.togglePopup = function (show) {
726
- var event = new preventable_event_1.PreventableEvent();
727
- if (!this._show && show) {
728
- this.open.emit(event);
729
- }
730
- else if (this._show && !show) {
731
- this.close.emit(event);
732
- }
733
- if (event.isDefaultPrevented()) {
734
- return;
735
- }
736
- this._toggle(show);
737
- this.toggleFocus();
738
- };
739
- TimePickerComponent.prototype._toggle = function (show) {
740
- var _this = this;
741
- if (show === this.isOpen) {
742
- return;
743
- }
744
- this._show = show;
745
- this.cdr.markForCheck();
746
- if (show) {
747
- var direction = this.localization.rtl ? 'right' : 'left';
748
- this.popupRef = this.popupService.open({
749
- anchor: this.wrapper,
750
- anchorAlign: { vertical: 'bottom', horizontal: direction },
751
- animate: this.popupSettings.animate,
752
- appendTo: this.appendTo,
753
- content: this.popupTemplate,
754
- popupAlign: { vertical: 'top', horizontal: direction },
755
- popupClass: this.popupClasses,
756
- positionMode: 'absolute'
757
- });
758
- this.popupRef.popupElement.setAttribute('id', this.popupUID);
759
- this.popupRef.popupAnchorViewportLeave.subscribe(function () { return _this.show = false; });
760
- }
761
- else {
762
- this.popupRef.close();
763
- this.popupRef = null;
764
- }
765
- };
766
- TimePickerComponent.prototype.focusInput = function () {
767
- if (this.touchEnabled) {
768
- return;
769
- }
770
- this.input.focus();
771
- };
772
- TimePickerComponent.prototype.toggleFocus = function () {
773
- if (!this.isActive) {
774
- return;
775
- }
776
- if (this.show) {
777
- if (!this.timeSelector) {
778
- this.cdr.detectChanges();
779
- }
780
- if (this.isActive) {
781
- this.timeSelector.focus();
782
- }
783
- }
784
- else if (!this.touchEnabled) {
785
- this.input.focus();
786
- }
787
- else if (!this.input.isActive) {
788
- this.handleBlur();
789
- }
790
- };
791
- TimePickerComponent.prototype.verifyValue = function (value) {
792
- if (!core_1.isDevMode()) {
793
- return;
794
- }
795
- if (value && !(value instanceof Date)) {
796
- throw new Error("The 'value' should be a valid JavaScript Date instance. Check " + VALUE_DOC_LINK + " for possible resolution.");
797
- }
798
- };
799
- TimePickerComponent.prototype.verifyFormat = function () {
800
- if (!core_1.isDevMode()) {
801
- return;
802
- }
803
- var formatContainsDateParts = this.intl.splitDateFormat(this.format).some(function (part) { return !formatRegExp.test(part.type); });
804
- if (formatContainsDateParts) {
805
- throw new Error("Provided format is not supported. Supported specifiers are T|t|H|h|m|s|S|a. See " + INTL_DATE_FORMAT);
806
- }
807
- };
808
- TimePickerComponent.prototype.bindEvents = function () {
809
- var element = this.wrapper.nativeElement;
810
- this.domEvents.push(this.renderer.listen(element, 'keydown', this.handleKeydown.bind(this)));
811
- if (util_1.isWindowAvailable()) {
812
- this.windowBlurSubscription = rxjs_1.fromEvent(window, 'blur').subscribe(this.handleWindowBlur.bind(this));
813
- }
814
- };
815
- TimePickerComponent.prototype.handleWindowBlur = function () {
816
- if (!this.isOpen) {
817
- return;
818
- }
819
- this.show = false;
820
- };
821
- TimePickerComponent.prototype.handleFocus = function () {
822
- var _this = this;
823
- if (this.isActive) {
824
- return;
825
- }
826
- this.isActive = true;
827
- if (kendo_angular_common_1.hasObservers(this.onFocus)) {
828
- this.zone.run(function () {
829
- _this.onFocus.emit();
830
- });
831
- }
832
- };
833
- TimePickerComponent.prototype.handleBlur = function (args) {
834
- var _this = this;
835
- var currentTarget = args && utils_1.currentFocusTarget(args);
836
- if (currentTarget && (this.input.containsElement(currentTarget) ||
837
- (this.timeSelector && this.timeSelector.containsElement(currentTarget)))) {
838
- return;
839
- }
840
- if (kendo_angular_common_1.hasObservers(this.onBlur) || (this.show && kendo_angular_common_1.hasObservers(this.close)) || utils_1.requiresZoneOnBlur(this.control)) {
841
- this.zone.run(function () {
842
- _this.blurComponent();
843
- _this.cdr.markForCheck();
844
- });
845
- }
846
- else {
847
- this.blurComponent();
848
- }
849
- };
850
- TimePickerComponent.prototype.blurComponent = function () {
851
- this.isActive = false; // order is important ¯\_(ツ)_/¯
852
- this.show = false;
853
- this.onControlTouched();
854
- this.onBlur.emit();
855
- };
856
- TimePickerComponent.prototype.handleDateCompletenessChange = function () {
857
- var _this = this;
858
- this.cdr.markForCheck();
859
- this.zone.run(function () { return _this.onValidatorChange(); });
860
- };
861
- TimePickerComponent.prototype.setComponentClasses = function () {
862
- if (this.size) {
863
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getSizeClass('input', this.size));
864
- this.renderer.addClass(this.toggleButton.nativeElement, util_1.getSizeClass('button', this.size));
865
- }
866
- if (this.rounded) {
867
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getRoundedClass(this.rounded));
868
- }
869
- if (this.fillMode) {
870
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getFillModeClass('input', this.fillMode));
871
- this.renderer.addClass(this.toggleButton.nativeElement, util_1.getFillModeClass('button', this.fillMode));
872
- this.renderer.addClass(this.toggleButton.nativeElement, "k-button-" + this.fillMode + "-base");
873
- }
874
- };
875
- var TimePickerComponent_1;
876
- tslib_1.__decorate([
877
- core_1.ViewChild('container', { read: core_1.ViewContainerRef, static: false }),
878
- tslib_1.__metadata("design:type", core_1.ViewContainerRef)
879
- ], TimePickerComponent.prototype, "container", void 0);
880
- tslib_1.__decorate([
881
- core_1.ViewChild('popupTemplate', { static: false }),
882
- tslib_1.__metadata("design:type", core_1.TemplateRef)
883
- ], TimePickerComponent.prototype, "popupTemplate", void 0);
884
- tslib_1.__decorate([
885
- core_1.ViewChild('toggleButton', { static: true }),
886
- tslib_1.__metadata("design:type", core_1.ElementRef)
887
- ], TimePickerComponent.prototype, "toggleButton", void 0);
888
- tslib_1.__decorate([
889
- core_1.Input(),
890
- tslib_1.__metadata("design:type", String)
891
- ], TimePickerComponent.prototype, "focusableId", void 0);
892
- tslib_1.__decorate([
893
- core_1.Input(),
894
- tslib_1.__metadata("design:type", Boolean)
895
- ], TimePickerComponent.prototype, "disabled", void 0);
896
- tslib_1.__decorate([
897
- core_1.Input(),
898
- tslib_1.__metadata("design:type", Boolean)
899
- ], TimePickerComponent.prototype, "readonly", void 0);
900
- tslib_1.__decorate([
901
- core_1.Input(),
902
- tslib_1.__metadata("design:type", Boolean)
903
- ], TimePickerComponent.prototype, "readOnlyInput", void 0);
904
- tslib_1.__decorate([
905
- core_1.Input(),
906
- tslib_1.__metadata("design:type", String)
907
- ], TimePickerComponent.prototype, "format", void 0);
908
- tslib_1.__decorate([
909
- core_1.Input(),
910
- tslib_1.__metadata("design:type", Object)
911
- ], TimePickerComponent.prototype, "formatPlaceholder", void 0);
912
- tslib_1.__decorate([
913
- core_1.Input(),
914
- tslib_1.__metadata("design:type", String)
915
- ], TimePickerComponent.prototype, "placeholder", void 0);
916
- tslib_1.__decorate([
917
- core_1.Input(),
918
- tslib_1.__metadata("design:type", Date),
919
- tslib_1.__metadata("design:paramtypes", [Date])
920
- ], TimePickerComponent.prototype, "min", null);
921
- tslib_1.__decorate([
922
- core_1.Input(),
923
- tslib_1.__metadata("design:type", Date),
924
- tslib_1.__metadata("design:paramtypes", [Date])
925
- ], TimePickerComponent.prototype, "max", null);
926
- tslib_1.__decorate([
927
- core_1.Input(),
928
- tslib_1.__metadata("design:type", Boolean)
929
- ], TimePickerComponent.prototype, "incompleteDateValidation", void 0);
930
- tslib_1.__decorate([
931
- core_1.Input(),
932
- tslib_1.__metadata("design:type", Boolean)
933
- ], TimePickerComponent.prototype, "cancelButton", void 0);
934
- tslib_1.__decorate([
935
- core_1.Input(),
936
- tslib_1.__metadata("design:type", Boolean)
937
- ], TimePickerComponent.prototype, "nowButton", void 0);
938
- tslib_1.__decorate([
939
- core_1.Input(),
940
- tslib_1.__metadata("design:type", Object),
941
- tslib_1.__metadata("design:paramtypes", [Object])
942
- ], TimePickerComponent.prototype, "steps", null);
943
- tslib_1.__decorate([
944
- core_1.Input(),
945
- tslib_1.__metadata("design:type", Object),
946
- tslib_1.__metadata("design:paramtypes", [Object])
947
- ], TimePickerComponent.prototype, "popupSettings", null);
948
- tslib_1.__decorate([
949
- core_1.Input(),
950
- tslib_1.__metadata("design:type", Number)
951
- ], TimePickerComponent.prototype, "tabindex", void 0);
952
- tslib_1.__decorate([
953
- core_1.Input(),
954
- tslib_1.__metadata("design:type", Number),
955
- tslib_1.__metadata("design:paramtypes", [Number])
956
- ], TimePickerComponent.prototype, "tabIndex", null);
957
- tslib_1.__decorate([
958
- core_1.Input(),
959
- tslib_1.__metadata("design:type", String)
960
- ], TimePickerComponent.prototype, "title", void 0);
961
- tslib_1.__decorate([
962
- core_1.Input(),
963
- tslib_1.__metadata("design:type", Boolean)
964
- ], TimePickerComponent.prototype, "rangeValidation", void 0);
965
- tslib_1.__decorate([
966
- core_1.Input(),
967
- tslib_1.__metadata("design:type", Date),
968
- tslib_1.__metadata("design:paramtypes", [Date])
969
- ], TimePickerComponent.prototype, "value", null);
970
- tslib_1.__decorate([
971
- core_1.Input(),
972
- tslib_1.__metadata("design:type", String),
973
- tslib_1.__metadata("design:paramtypes", [String])
974
- ], TimePickerComponent.prototype, "size", null);
975
- tslib_1.__decorate([
976
- core_1.Input(),
977
- tslib_1.__metadata("design:type", String),
978
- tslib_1.__metadata("design:paramtypes", [String])
979
- ], TimePickerComponent.prototype, "rounded", null);
980
- tslib_1.__decorate([
981
- core_1.Input(),
982
- tslib_1.__metadata("design:type", String),
983
- tslib_1.__metadata("design:paramtypes", [String])
984
- ], TimePickerComponent.prototype, "fillMode", null);
985
- tslib_1.__decorate([
986
- core_1.Output(),
987
- tslib_1.__metadata("design:type", core_1.EventEmitter)
988
- ], TimePickerComponent.prototype, "valueChange", void 0);
989
- tslib_1.__decorate([
990
- core_1.Output('focus'),
991
- tslib_1.__metadata("design:type", core_1.EventEmitter)
992
- ], TimePickerComponent.prototype, "onFocus", void 0);
993
- tslib_1.__decorate([
994
- core_1.Output('blur'),
995
- tslib_1.__metadata("design:type", core_1.EventEmitter)
996
- ], TimePickerComponent.prototype, "onBlur", void 0);
997
- tslib_1.__decorate([
998
- core_1.Output(),
999
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1000
- ], TimePickerComponent.prototype, "open", void 0);
1001
- tslib_1.__decorate([
1002
- core_1.Output(),
1003
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1004
- ], TimePickerComponent.prototype, "close", void 0);
1005
- tslib_1.__decorate([
1006
- core_1.HostBinding('class.k-timepicker'),
1007
- core_1.HostBinding('class.k-input'),
1008
- tslib_1.__metadata("design:type", Boolean)
1009
- ], TimePickerComponent.prototype, "wrapperClasses", void 0);
1010
- tslib_1.__decorate([
1011
- core_1.HostBinding('class.k-disabled'),
1012
- tslib_1.__metadata("design:type", Boolean),
1013
- tslib_1.__metadata("design:paramtypes", [])
1014
- ], TimePickerComponent.prototype, "disabledClass", null);
1015
- TimePickerComponent = TimePickerComponent_1 = tslib_1.__decorate([
1016
- core_1.Component({
1017
- changeDetection: core_1.ChangeDetectionStrategy.OnPush,
1018
- exportAs: 'kendo-timepicker',
1019
- providers: [
1020
- { provide: forms_1.NG_VALUE_ACCESSOR, useExisting: core_1.forwardRef(function () { return TimePickerComponent_1; }), multi: true },
1021
- { provide: forms_1.NG_VALIDATORS, useExisting: core_1.forwardRef(function () { return TimePickerComponent_1; }), multi: true },
1022
- { provide: kendo_angular_common_1.KendoInput, useExisting: core_1.forwardRef(function () { return TimePickerComponent_1; }) },
1023
- kendo_angular_l10n_1.LocalizationService,
1024
- {
1025
- provide: kendo_angular_l10n_1.L10N_PREFIX,
1026
- useValue: 'kendo.timepicker'
1027
- },
1028
- picker_service_1.PickerService
1029
- ],
1030
- selector: 'kendo-timepicker',
1031
- template: "\n <ng-container kendoTimePickerLocalizedMessages\n i18n-accept=\"kendo.timepicker.accept|The Accept button text in the timepicker component\"\n accept=\"Set\"\n\n i18n-acceptLabel=\"kendo.timepicker.acceptLabel|The label for the Accept button in the timepicker component\"\n acceptLabel=\"Set time\"\n\n i18n-cancel=\"kendo.timepicker.cancel|The Cancel button text in the timepicker component\"\n cancel=\"Cancel\"\n\n i18n-cancelLabel=\"kendo.timepicker.cancelLabel|The label for the Cancel button in the timepicker component\"\n cancelLabel=\"Cancel changes\"\n\n i18n-now=\"kendo.timepicker.now|The Now button text in the timepicker component\"\n now=\"Now\"\n\n i18n-nowLabel=\"kendo.timepicker.nowLabel|The label for the Now button in the timepicker component\"\n nowLabel=\"Select now\"\n\n i18n-toggle=\"kendo.timepicker.toggle|The label for the toggle button in the timepicker component\"\n toggle=\"Toggle time list\"\n >\n </ng-container>\n <kendo-dateinput\n #input\n [focusableId]=\"focusableId\"\n [hasPopup]=\"true\"\n [isPopupOpen]=\"show\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly || readOnlyInput\"\n [role]=\"inputRole\"\n [ariaReadOnly]=\"readonly\"\n [format]=\"format\"\n [formatPlaceholder]=\"formatPlaceholder\"\n [placeholder]=\"placeholder\"\n [min]=\"normalizeTime(min)\"\n [max]=\"normalizeTime(max)\"\n [incompleteDateValidation]=\"incompleteDateValidation\"\n [fillMode]=\"fillMode\"\n [rounded]=\"rounded\"\n [size]=\"size\"\n [steps]=\"steps\"\n [tabindex]=\"!show ? tabindex : -1\"\n [title]=\"title\"\n [value]=\"value\"\n (valueChange)=\"handleInputChange($event)\"\n ></kendo-dateinput>\n <button\n #toggleButton\n type=\"button\"\n class=\"k-input-button k-button k-icon-button\"\n [attr.title]=\"localization.get('toggle')\"\n [attr.aria-label]=\"localization.get('toggle')\"\n [kendoEventsOutsideAngular]=\"{\n click: handleIconClick,\n mousedown: handleMousedown\n }\"\n [scope]=\"this\"\n >\n <span class=\"k-button-icon k-icon k-i-clock\"></span>\n </button>\n <ng-template #popupTemplate>\n <kendo-timeselector\n #timeSelector\n [cancelButton]=\"cancelButton\"\n [nowButton]=\"nowButton\"\n [format]=\"format\"\n [min]=\"min\"\n [max]=\"max\"\n [steps]=\"steps\"\n [value]=\"value\"\n [kendoEventsOutsideAngular]=\"{\n keydown: handleKeydown,\n mousedown: handleMousedown\n }\"\n [scope]=\"this\"\n (valueChange)=\"handleChange($event)\"\n (valueReject)=\"handleReject()\"\n >\n <kendo-timeselector-messages\n [acceptLabel]=\"localization.get('acceptLabel')\"\n [accept]=\"localization.get('accept')\"\n [cancelLabel]=\"localization.get('cancelLabel')\"\n [cancel]=\"localization.get('cancel')\"\n [nowLabel]=\"localization.get('nowLabel')\"\n [now]=\"localization.get('now')\"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </ng-template>\n <ng-container #container></ng-container>\n "
1032
- }),
1033
- tslib_1.__param(9, core_1.Optional()), tslib_1.__param(9, core_1.Inject(touch_enabled_1.TOUCH_ENABLED)),
1034
- tslib_1.__metadata("design:paramtypes", [core_1.NgZone,
1035
- kendo_angular_l10n_1.LocalizationService,
1036
- core_1.ChangeDetectorRef,
1037
- kendo_angular_popup_1.PopupService,
1038
- core_1.ElementRef,
1039
- core_1.Renderer2,
1040
- core_1.Injector,
1041
- picker_service_1.PickerService,
1042
- kendo_angular_intl_1.IntlService, Boolean])
1043
- ], TimePickerComponent);
1044
- return TimePickerComponent;
1045
- }());
1046
- exports.TimePickerComponent = TimePickerComponent;