@progress/kendo-angular-dateinputs 6.0.4-dev.202203211102 → 7.0.0-dev.202204150726

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 +46 -119
  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,1311 +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 rxjs_1 = require("rxjs");
11
- var operators_1 = require("rxjs/operators");
12
- var kendo_date_math_1 = require("@progress/kendo-date-math");
13
- var kendo_angular_popup_1 = require("@progress/kendo-angular-popup");
14
- var kendo_angular_intl_1 = require("@progress/kendo-angular-intl");
15
- var kendo_angular_common_1 = require("@progress/kendo-angular-common");
16
- var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
17
- var kendo_licensing_1 = require("@progress/kendo-licensing");
18
- var package_metadata_1 = require("../package-metadata");
19
- var picker_service_1 = require("../common/picker.service");
20
- var disabled_dates_service_1 = require("../calendar/services/disabled-dates.service");
21
- var utils_1 = require("../common/utils");
22
- var util_1 = require("../util");
23
- var preventable_event_1 = require("../preventable-event");
24
- var min_validator_1 = require("../validators/min.validator");
25
- var max_validator_1 = require("../validators/max.validator");
26
- var disabled_date_validator_1 = require("../validators/disabled-date.validator");
27
- var time_part_default_1 = require("../timepicker/models/time-part.default");
28
- var defaults_1 = require("../defaults");
29
- var touch_enabled_1 = require("../touch-enabled");
30
- var cell_template_directive_1 = require("../calendar/templates/cell-template.directive");
31
- var month_cell_template_directive_1 = require("../calendar/templates/month-cell-template.directive");
32
- var year_cell_template_directive_1 = require("../calendar/templates/year-cell-template.directive");
33
- var decade_cell_template_directive_1 = require("../calendar/templates/decade-cell-template.directive");
34
- var century_cell_template_directive_1 = require("../calendar/templates/century-cell-template.directive");
35
- var weeknumber_cell_template_directive_1 = require("../calendar/templates/weeknumber-cell-template.directive");
36
- var header_title_template_directive_1 = require("../calendar/templates/header-title-template.directive");
37
- var incomplete_date_validator_1 = require("../validators/incomplete-date.validator");
38
- var timeFormatRegExp = 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.dayperiod + "|literal");
39
- var VALUE_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/integration-with-json/';
40
- var MIN_MAX_DOC_LINK = 'https://www.telerik.com/kendo-angular-ui/components/dateinputs/datetimepicker/date-time-limits/';
41
- var DEFAULT_ACTIVE_TAB = 'date';
42
- var DEFAULT_DATEINPUT_FORMAT = 'g';
43
- var DEFAULT_TIMESELECTOR_FORMAT = 't';
44
- var TWO_DIGIT_YEAR_MAX = 68;
45
- /**
46
- * Represents the [Kendo UI DateTimePicker component for Angular]({% slug overview_datetimepicker %}).
47
- */
48
- var DateTimePickerComponent = /** @class */ (function () {
49
- function DateTimePickerComponent(popupService, intl, cdr, pickerService, ngZone, wrapper, touchEnabled, localization, disabledDatesService, renderer) {
50
- this.popupService = popupService;
51
- this.intl = intl;
52
- this.cdr = cdr;
53
- this.pickerService = pickerService;
54
- this.ngZone = ngZone;
55
- this.wrapper = wrapper;
56
- this.touchEnabled = touchEnabled;
57
- this.localization = localization;
58
- this.disabledDatesService = disabledDatesService;
59
- this.renderer = renderer;
60
- /**
61
- * @hidden
62
- */
63
- this.hostClasses = true;
64
- /**
65
- * The maximum year to assume to be from the current century when typing two-digit year value
66
- * ([see example]({% slug formats_datetimepicker %}#toc-two-digit-year-format)).
67
- *
68
- * The default value is 68, indicating that typing any value less than 69
69
- * will be assumed to be 20xx, while 69 and larger will be assumed to be 19xx.
70
- */
71
- this.twoDigitYearMax = TWO_DIGIT_YEAR_MAX;
72
- /**
73
- * @hidden
74
- */
75
- this.focusableId = "k-" + kendo_angular_common_1.guid();
76
- /**
77
- * Sets the title of the input element of the DateTimePicker.
78
- */
79
- this.title = '';
80
- /**
81
- * Sets or gets the `disabled` property of the DateTimePicker and determines whether the component is active
82
- * ([see example]({% slug disabled_datetimepicker %})).
83
- */
84
- this.disabled = false;
85
- /**
86
- * Sets the read-only state of the DateTimePicker
87
- * ([see example]({% slug readonly_datetimepicker %}#toc-read-only-datetimepicker)).
88
- */
89
- this.readonly = false;
90
- /**
91
- * Sets the read-only state of the DateTimePicker input field
92
- * ([see example]({% slug readonly_datetimepicker %}#toc-read-only-input)).
93
- *
94
- * > Note that if you set the [`readonly`]({% slug api_dateinputs_datetimepickercomponent %}#toc-readonly) property value to `true`,
95
- * the input will be rendered in a read-only state regardless of the `readOnlyInput` value.
96
- */
97
- this.readOnlyInput = false;
98
- /**
99
- * Determines whether to display the **Cancel** button in the popup
100
- * ([see example]({% slug datetimepicker_popup_options %}#toc-toggling-the-cancel-button)).
101
- */
102
- this.cancelButton = true;
103
- /**
104
- * Configures the incremental steps of the DateInput and the popup component of the TimePicker
105
- * ([see example]({% slug incrementalsteps_datetimepicker %})).
106
- */
107
- this.steps = {};
108
- /**
109
- * Specifies the Calendar type.
110
- *
111
- * The possible values are:
112
- * - `infinite` (default)
113
- * - `classic`
114
- *
115
- */
116
- this.calendarType = 'infinite';
117
- /**
118
- * Determines whether to enable animation when navigating to previous/next Calendar view.
119
- * Applies to the [`classic`]({% slug api_dateinputs_datetimepickercomponent %}#toc-calendartype) Calendar only.
120
- *
121
- * > This feature uses the [Web Animations API](https://developer.mozilla.org/en-US/docs/Web/API/Web_Animations_API). In order to run the animation in browsers that do not support it, you need the `web-animations-js` polyfill.
122
- *
123
- * @default false
124
- */
125
- this.animateCalendarNavigation = false;
126
- /**
127
- * Determines whether to display a week number column in the `month` view of the popup Calendar
128
- * ([see example]({% slug datetimepicker_calendar_options %}#toc-week-number-column)).
129
- */
130
- this.weekNumber = false;
131
- /**
132
- * Determines whether the built-in min or max validators are enforced when validating a form
133
- * ([see example]({% slug dateranges_datetimepicker %}#toc-prevent-invalid-input)).
134
- */
135
- this.rangeValidation = true;
136
- /**
137
- * Determines whether the built-in validator for disabled
138
- * date ranges is enforced when validating a form
139
- * ([see example]({% slug disabled_dates_datetimepicker %}#toc-validation)).
140
- */
141
- this.disabledDatesValidation = true;
142
- /**
143
- * Determines whether the built-in validation for incomplete dates is to be enforced when a form is being validated.
144
- */
145
- this.incompleteDateValidation = false;
146
- /**
147
- * Fires each time the user selects a new value.
148
- * ([more information and example]({% slug overview_datetimepicker %}#toc-methods-and-events)).
149
- */
150
- this.valueChange = new core_1.EventEmitter();
151
- /**
152
- * Fires each time the popup is about to open.
153
- * This event is preventable. If you cancel the event by setting `event.preventDefault()`, the popup will remain closed.
154
- * ([more information and example]({% slug overview_datetimepicker %}#toc-methods-and-events)).
155
- */
156
- this.open = new core_1.EventEmitter();
157
- /**
158
- * Fires each time the popup is about to close.
159
- * This event is preventable. If you cancel the event by setting `event.preventDefault()`, the popup will remain open.
160
- * ([more information and example]({% slug overview_datetimepicker %}#toc-methods-and-events)).
161
- */
162
- this.close = new core_1.EventEmitter();
163
- /**
164
- * Fires each time the user focuses the component.
165
- * ([more information and example]({% slug overview_datetimepicker %}#toc-methods-and-events)).
166
- */
167
- this.onFocus = new core_1.EventEmitter();
168
- /**
169
- * Fires each time the user blurs the component.
170
- * ([more information and example]({% slug overview_datetimepicker %}#toc-methods-and-events)).
171
- */
172
- this.onBlur = new core_1.EventEmitter();
173
- /**
174
- * @hidden
175
- *
176
- * Controls whether the Calendar or the TimeSelector will be displayed.
177
- */
178
- this.activeTab = DEFAULT_ACTIVE_TAB;
179
- /**
180
- * @hidden
181
- *
182
- * Specifies the stripped time-related format that is used in the TimeSelector.
183
- * Updates each time the `format` property value changes.
184
- */
185
- this.timeSelectorFormat = DEFAULT_TIMESELECTOR_FORMAT;
186
- /**
187
- * @hidden
188
- */
189
- this.timeSelectorMin = kendo_date_math_1.cloneDate(defaults_1.MIN_TIME);
190
- /**
191
- * @hidden
192
- */
193
- this.timeSelectorMax = kendo_date_math_1.cloneDate(defaults_1.MAX_TIME);
194
- /**
195
- * @hidden
196
- */
197
- this.calendarValue = null;
198
- /**
199
- * @hidden
200
- */
201
- this.calendarMin = kendo_date_math_1.cloneDate(defaults_1.MIN_DATE);
202
- /**
203
- * @hidden
204
- */
205
- this.calendarMax = util_1.lastMillisecondOfDate(defaults_1.MAX_DATE);
206
- this._popupSettings = { animate: true };
207
- this._value = null;
208
- this._format = DEFAULT_DATEINPUT_FORMAT;
209
- this._tabindex = 0;
210
- this._defaultTab = DEFAULT_ACTIVE_TAB;
211
- this._min = util_1.mergeDateAndTime(defaults_1.MIN_DATE, defaults_1.MIN_TIME);
212
- this._max = util_1.mergeDateAndTime(defaults_1.MAX_DATE, defaults_1.MAX_TIME);
213
- this._isActive = false;
214
- this.onControlTouched = util_1.noop;
215
- this.onControlChange = util_1.noop;
216
- this.onValidatorChange = util_1.noop;
217
- this.minValidateFn = util_1.noop;
218
- this.maxValidateFn = util_1.noop;
219
- this.disabledDatesValidateFn = util_1.noop;
220
- this.incompleteValidator = util_1.noop;
221
- this.subscriptions = new rxjs_1.Subscription();
222
- this._size = 'medium';
223
- this._rounded = 'medium';
224
- this._fillMode = 'solid';
225
- kendo_licensing_1.validatePackage(package_metadata_1.packageMetadata);
226
- }
227
- DateTimePickerComponent_1 = DateTimePickerComponent;
228
- Object.defineProperty(DateTimePickerComponent.prototype, "disabledClass", {
229
- /**
230
- * @hidden
231
- */
232
- get: function () {
233
- return this.disabled;
234
- },
235
- enumerable: true,
236
- configurable: true
237
- });
238
- Object.defineProperty(DateTimePickerComponent.prototype, "input", {
239
- /**
240
- * @hidden
241
- */
242
- get: function () {
243
- return this.pickerService.input;
244
- },
245
- enumerable: true,
246
- configurable: true
247
- });
248
- Object.defineProperty(DateTimePickerComponent.prototype, "calendar", {
249
- /**
250
- * @hidden
251
- */
252
- get: function () {
253
- return this.pickerService.calendar;
254
- },
255
- enumerable: true,
256
- configurable: true
257
- });
258
- Object.defineProperty(DateTimePickerComponent.prototype, "timeSelector", {
259
- /**
260
- * @hidden
261
- */
262
- get: function () {
263
- return this.pickerService.timeSelector;
264
- },
265
- enumerable: true,
266
- configurable: true
267
- });
268
- Object.defineProperty(DateTimePickerComponent.prototype, "value", {
269
- get: function () {
270
- return this._value;
271
- },
272
- /**
273
- * Specifies the value of the DateTimePicker component.
274
- *
275
- * > The `value` has to be a valid [JavaScript `Date`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date) instance.
276
- */
277
- set: function (value) {
278
- this.verifyValue(value);
279
- this._value = kendo_date_math_1.cloneDate(value);
280
- this.setCalendarValue(value);
281
- this.cdr.markForCheck();
282
- },
283
- enumerable: true,
284
- configurable: true
285
- });
286
- Object.defineProperty(DateTimePickerComponent.prototype, "format", {
287
- get: function () {
288
- return this._format;
289
- },
290
- /**
291
- * Specifies the date format for displaying the input value
292
- * ([see example]({% slug formats_datetimepicker %}))
293
- *
294
- * Format value options:
295
- * - `string` - Provide a `string` if a single format is going to be used regardless whether the input is focused or blurred.
296
- * - [`FormatSettings`]({% slug api_dateinputs_formatsettings %}) - To display different formats when the component is focused or blurred, provide a settings object with specified `inputFormat` and `displayFormat` values.
297
- *
298
- * > If a [`FormatSettings`]({% slug api_dateinputs_formatsettings %}) object is provided, the `displayFormat` value will be used for the popup TimePicker.
299
- */
300
- set: function (format) {
301
- this._format = format;
302
- var displayFormat = this.getDisplayFormat(format);
303
- this.timeSelectorFormat = this.getTimeSelectorFormat(displayFormat);
304
- },
305
- enumerable: true,
306
- configurable: true
307
- });
308
- Object.defineProperty(DateTimePickerComponent.prototype, "tabindex", {
309
- get: function () {
310
- return this.disabled ? -1 : this._tabindex;
311
- },
312
- /**
313
- * Specifies the [`tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) of the DateTimePicker.
314
- */
315
- set: function (value) {
316
- var tabindex = Number(value);
317
- var defaultValue = 0;
318
- this._tabindex = !isNaN(tabindex) ? tabindex : defaultValue;
319
- },
320
- enumerable: true,
321
- configurable: true
322
- });
323
- Object.defineProperty(DateTimePickerComponent.prototype, "disabledDates", {
324
- get: function () {
325
- return this._disabledDates;
326
- },
327
- /**
328
- * Sets the dates of the DateTimePicker that will be disabled
329
- * ([see example]({% slug disabled_dates_datetimepicker %})).
330
- */
331
- set: function (value) {
332
- this._disabledDates = value;
333
- this.disabledDatesService.initialize(value);
334
- },
335
- enumerable: true,
336
- configurable: true
337
- });
338
- Object.defineProperty(DateTimePickerComponent.prototype, "popupSettings", {
339
- get: function () {
340
- return this._popupSettings;
341
- },
342
- /**
343
- * Configures the popup settings of the DateTimePicker
344
- * ([see example]({% slug datetimepicker_popup_options %}#toc-customizing-the-popup)).
345
- *
346
- * The available options are:
347
- * - `animate: Boolean`—Controls the popup animation. By default, the open and close animations are enabled.
348
- * - `appendTo: 'root' | 'component' | ViewContainerRef`—Controls the popup container. By default, the popup will be appended to the root component.
349
- * - `popupClass: String`—Specifies a list of CSS classes that are used to style the popup.
350
- */
351
- set: function (settings) {
352
- this._popupSettings = Object.assign({}, { animate: true }, settings);
353
- },
354
- enumerable: true,
355
- configurable: true
356
- });
357
- Object.defineProperty(DateTimePickerComponent.prototype, "min", {
358
- get: function () {
359
- return this._min;
360
- },
361
- /**
362
- * Specifies the smallest valid date.
363
- * The Calendar will not display dates before this value.
364
- * If the `min` value of the Calendar is selected, the TimePicker will not display
365
- * time entries before the specified time portion of this value
366
- * ([see example]({% slug dateranges_datetimepicker %})).
367
- */
368
- set: function (value) {
369
- if (!utils_1.isPresent(value)) {
370
- return;
371
- }
372
- this._min = kendo_date_math_1.cloneDate(value);
373
- this.calendarMin = kendo_date_math_1.getDate(value);
374
- },
375
- enumerable: true,
376
- configurable: true
377
- });
378
- Object.defineProperty(DateTimePickerComponent.prototype, "max", {
379
- get: function () {
380
- return this._max;
381
- },
382
- /**
383
- * Specifies the biggest valid date.
384
- * The Calendar will not display dates after this value.
385
- * If the `max` value of the Calendar is selected, the TimePicker will not display
386
- * time entries after the specified time portion of this value
387
- * ([see example]({% slug dateranges_datetimepicker %})).
388
- */
389
- set: function (value) {
390
- if (!utils_1.isPresent(value)) {
391
- return;
392
- }
393
- this._max = kendo_date_math_1.cloneDate(value);
394
- this.calendarMax = util_1.lastMillisecondOfDate(value);
395
- },
396
- enumerable: true,
397
- configurable: true
398
- });
399
- Object.defineProperty(DateTimePickerComponent.prototype, "isOpen", {
400
- /**
401
- * Indicates whether the component is currently open.
402
- */
403
- get: function () {
404
- return utils_1.isPresent(this.popupRef);
405
- },
406
- enumerable: true,
407
- configurable: true
408
- });
409
- Object.defineProperty(DateTimePickerComponent.prototype, "isActive", {
410
- /**
411
- * Indicates whether the component or its popup content is focused.
412
- */
413
- get: function () {
414
- return this._isActive;
415
- },
416
- set: function (value) {
417
- if (value) {
418
- this.renderer.addClass(this.wrapper.nativeElement, 'k-focus');
419
- }
420
- else {
421
- this.renderer.removeClass(this.wrapper.nativeElement, 'k-focus');
422
- }
423
- this._isActive = value;
424
- },
425
- enumerable: true,
426
- configurable: true
427
- });
428
- Object.defineProperty(DateTimePickerComponent.prototype, "defaultTab", {
429
- get: function () {
430
- return this._defaultTab;
431
- },
432
- /**
433
- * Sets the active tab on opening the popup
434
- * ([see example]({% slug datetimepicker_popup_options %}#toc-setting-the-default-tab)).
435
- */
436
- set: function (tab) {
437
- this._defaultTab = tab || DEFAULT_ACTIVE_TAB;
438
- this.activeTab = this.defaultTab;
439
- },
440
- enumerable: true,
441
- configurable: true
442
- });
443
- Object.defineProperty(DateTimePickerComponent.prototype, "size", {
444
- get: function () {
445
- return this._size;
446
- },
447
- /**
448
- * Sets the size of the component.
449
- *
450
- * The possible values are:
451
- * * `'small'`
452
- * * `'medium'` (Default)
453
- * * `'large'`
454
- * * `null`
455
- *
456
- */
457
- set: function (size) {
458
- this.renderer.removeClass(this.wrapper.nativeElement, util_1.getSizeClass('input', this.size));
459
- this.renderer.removeClass(this.toggleButton.nativeElement, util_1.getSizeClass('input', this.size));
460
- if (size) {
461
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getSizeClass('input', size));
462
- this.renderer.addClass(this.toggleButton.nativeElement, util_1.getSizeClass('input', size));
463
- }
464
- this._size = size;
465
- },
466
- enumerable: true,
467
- configurable: true
468
- });
469
- Object.defineProperty(DateTimePickerComponent.prototype, "rounded", {
470
- get: function () {
471
- return this._rounded;
472
- },
473
- /**
474
- * Sets the border radius of the component.
475
- *
476
- * The possible values are:
477
- * * `'small'`
478
- * * `'medium'` (Default)
479
- * * `'large'`
480
- * * `'full'`
481
- * * `null`
482
- *
483
- */
484
- set: function (rounded) {
485
- this.renderer.removeClass(this.wrapper.nativeElement, util_1.getRoundedClass(this.rounded));
486
- if (rounded) {
487
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getRoundedClass(rounded));
488
- }
489
- this._rounded = rounded;
490
- },
491
- enumerable: true,
492
- configurable: true
493
- });
494
- Object.defineProperty(DateTimePickerComponent.prototype, "fillMode", {
495
- get: function () {
496
- return this._fillMode;
497
- },
498
- /**
499
- * Sets the fillMode of the component.
500
- *
501
- * The possible values are:
502
- * * `'solid'` (Default)
503
- * * `'flat'`
504
- * * `'outline'`
505
- * * `null`
506
- *
507
- */
508
- set: function (fillMode) {
509
- this.renderer.removeClass(this.wrapper.nativeElement, util_1.getFillModeClass('input', this.fillMode));
510
- this.renderer.removeClass(this.toggleButton.nativeElement, util_1.getFillModeClass('button', this.fillMode));
511
- this.renderer.removeClass(this.toggleButton.nativeElement, "k-button-" + this.fillMode + "-base");
512
- if (fillMode) {
513
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getFillModeClass('input', fillMode));
514
- this.renderer.addClass(this.toggleButton.nativeElement, util_1.getFillModeClass('button', fillMode));
515
- this.renderer.addClass(this.toggleButton.nativeElement, "k-button-" + fillMode + "-base");
516
- }
517
- this._fillMode = fillMode;
518
- },
519
- enumerable: true,
520
- configurable: true
521
- });
522
- Object.defineProperty(DateTimePickerComponent.prototype, "tabSwitchTransition", {
523
- /**
524
- * @hidden
525
- */
526
- get: function () {
527
- /*
528
- When the popup is opening, disables the set transition in the themes. When `defaultTab` is set to `time`,
529
- the popup opens with an active **Time** tab and the animation of the initial transition is undesired.
530
- Setting the inline transition style to `none` overrides the set animation in the themes.
531
- Setting the inline transition style to `null` does not apply any inline styles or override the themes CSS.
532
- */
533
- return this.isOpen ? null : 'none';
534
- },
535
- enumerable: true,
536
- configurable: true
537
- });
538
- Object.defineProperty(DateTimePickerComponent.prototype, "disableCalendar", {
539
- /**
540
- * @hidden
541
- *
542
- * Indicates whether the Calendar will be disabled.
543
- * The inactive tab component gets disabled and becomes inaccessible on tab click.
544
- */
545
- get: function () {
546
- return this.activeTab !== 'date' && !this.calendar.isActive;
547
- },
548
- enumerable: true,
549
- configurable: true
550
- });
551
- Object.defineProperty(DateTimePickerComponent.prototype, "inputRole", {
552
- /**
553
- * @hidden
554
- */
555
- get: function () {
556
- return this.readOnlyInput ? 'listbox' : 'spinbutton';
557
- },
558
- enumerable: true,
559
- configurable: true
560
- });
561
- Object.defineProperty(DateTimePickerComponent.prototype, "disableTimeSelector", {
562
- /**
563
- * @hidden
564
- *
565
- * Indicates whether the TimeSelector will be disabled.
566
- * The inactive tab component gets disabled and becomes inaccessible on tab click.
567
- */
568
- get: function () {
569
- return this.activeTab !== 'time' && !this.timeSelector.isActive;
570
- },
571
- enumerable: true,
572
- configurable: true
573
- });
574
- Object.defineProperty(DateTimePickerComponent.prototype, "activeTabComponent", {
575
- get: function () {
576
- if (!this.isOpen) {
577
- return;
578
- }
579
- if (!(utils_1.isPresent(this.calendar) || utils_1.isPresent(this.timeSelector))) {
580
- this.cdr.detectChanges();
581
- }
582
- return this.activeTab === 'date' ? this.calendar : this.timeSelector;
583
- },
584
- enumerable: true,
585
- configurable: true
586
- });
587
- Object.defineProperty(DateTimePickerComponent.prototype, "appendTo", {
588
- get: function () {
589
- var appendTo = this.popupSettings.appendTo;
590
- if (!utils_1.isPresent(appendTo) || appendTo === 'root') {
591
- return undefined;
592
- }
593
- return appendTo === 'component' ? this.container : appendTo;
594
- },
595
- enumerable: true,
596
- configurable: true
597
- });
598
- DateTimePickerComponent.prototype.ngOnInit = function () {
599
- var _this = this;
600
- this.subscriptions.add(this.pickerService.onFocus
601
- // detect popup changes to disable the inactive view mark-up when the popup is open
602
- .pipe(operators_1.tap(this.detectPopupChanges.bind(this)))
603
- .subscribe(this.handleFocus.bind(this)));
604
- this.subscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this)));
605
- this.subscriptions.add(this.pickerService.sameDateSelected.subscribe(this.handleCalendarValueChange.bind(this)));
606
- this.subscriptions.add(this.localization.changes.subscribe(function () { return _this.cdr.markForCheck(); }));
607
- this.subscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this)));
608
- if (util_1.isWindowAvailable()) {
609
- this.subscriptions.add(this.ngZone.runOutsideAngular(function () { return rxjs_1.fromEvent(window, 'blur').subscribe(_this.handleCancel.bind(_this)); }));
610
- }
611
- };
612
- DateTimePickerComponent.prototype.ngAfterViewInit = function () {
613
- this.setComponentClasses();
614
- };
615
- DateTimePickerComponent.prototype.ngOnChanges = function (changes) {
616
- if (utils_1.isPresent(changes.min) || utils_1.isPresent(changes.max)) {
617
- this.verifyMinMaxRange();
618
- }
619
- if (changes.min || changes.max || changes.rangeValidation || changes.disabledDatesValidation || changes.disabledDates || changes.incompleteDateValidation) {
620
- this.minValidateFn = this.rangeValidation ? min_validator_1.minValidator(this.min) : util_1.noop;
621
- this.maxValidateFn = this.rangeValidation ? max_validator_1.maxValidator(this.max) : util_1.noop;
622
- this.disabledDatesValidateFn = this.disabledDatesValidation ? disabled_date_validator_1.disabledDatesValidator(this.disabledDatesService.isDateDisabled) : util_1.noop;
623
- this.incompleteValidator = this.incompleteDateValidation ? incomplete_date_validator_1.incompleteDateValidator() : util_1.noop;
624
- this.onValidatorChange();
625
- }
626
- };
627
- DateTimePickerComponent.prototype.ngOnDestroy = function () {
628
- if (this.isOpen) {
629
- this.closePopup();
630
- }
631
- this.subscriptions.unsubscribe();
632
- };
633
- /**
634
- * * If the popup is closed, focuses the DateTimePicker input.
635
- * * If the popup is open, the focus is moved to its content.
636
- */
637
- DateTimePickerComponent.prototype.focus = function () {
638
- if (this.disabled) {
639
- return;
640
- }
641
- if (this.isOpen) {
642
- this.activeTabComponent.focus();
643
- }
644
- else {
645
- this.input.focus();
646
- }
647
- };
648
- /**
649
- * Blurs the DateTimePicker.
650
- */
651
- DateTimePickerComponent.prototype.blur = function () {
652
- if (this.isOpen && this.activeTabComponent.isActive) {
653
- this.activeTabComponent.blur();
654
- }
655
- else {
656
- this.input.blur();
657
- }
658
- };
659
- /**
660
- * Toggles the visibility of the popup. If you use the `toggle` method to show or hide the popup,
661
- * the `open` and `close` events do not fire.
662
- * ([more information and example]({% slug overview_datetimepicker %}#toc-methods-and-events)).
663
- *
664
- * @param show - The state of the popup.
665
- */
666
- DateTimePickerComponent.prototype.toggle = function (show) {
667
- if (this.disabled || this.readonly || show === this.isOpen) {
668
- return;
669
- }
670
- var shouldOpen = utils_1.isPresent(show) ? show : !this.isOpen;
671
- if (shouldOpen) {
672
- this.openPopup();
673
- }
674
- else {
675
- this.closePopup();
676
- // Changes the tab and the calendar or clock icon to the designated default.
677
- if (this.activeTab !== this.defaultTab) {
678
- this.activeTab = this.defaultTab;
679
- this.cdr.detectChanges();
680
- }
681
- }
682
- };
683
- /**
684
- * @hidden
685
- */
686
- DateTimePickerComponent.prototype.writeValue = function (value) {
687
- this.value = value;
688
- };
689
- /**
690
- * @hidden
691
- */
692
- DateTimePickerComponent.prototype.registerOnChange = function (fn) {
693
- this.onControlChange = fn;
694
- };
695
- /**
696
- * @hidden
697
- */
698
- DateTimePickerComponent.prototype.registerOnTouched = function (fn) {
699
- this.onControlTouched = fn;
700
- };
701
- /**
702
- * @hidden
703
- */
704
- DateTimePickerComponent.prototype.setDisabledState = function (disabled) {
705
- this.disabled = disabled;
706
- this.cdr.markForCheck();
707
- };
708
- /**
709
- * @hidden
710
- */
711
- DateTimePickerComponent.prototype.validate = function (control) {
712
- return this.minValidateFn(control) || this.maxValidateFn(control) || this.disabledDatesValidateFn(control) || this.incompleteValidator(control, this.input && this.input.isDateIncomplete);
713
- };
714
- /**
715
- * @hidden
716
- */
717
- DateTimePickerComponent.prototype.registerOnValidatorChange = function (fn) {
718
- this.onValidatorChange = fn;
719
- };
720
- /**
721
- * @hidden
722
- *
723
- * Used by the TextBoxContainer to determine if the floating label will render in the input.
724
- */
725
- DateTimePickerComponent.prototype.isEmpty = function () {
726
- return !utils_1.isPresent(this.value) && this.input.isEmpty();
727
- };
728
- /**
729
- * @hidden
730
- */
731
- DateTimePickerComponent.prototype.handleIconClick = function (event) {
732
- var _this = this;
733
- if (this.disabled || this.readonly) {
734
- return;
735
- }
736
- // prevents the event default to evade focusing the DateInput input when placed inside a label (FF/IE/Edge)
737
- event.preventDefault();
738
- var runInZone = !this.isOpen || kendo_angular_common_1.hasObservers(this.close);
739
- this.run(runInZone, function () {
740
- var shouldOpen = !_this.isOpen;
741
- // handle focus first to maintain correct event order `focus` => `open`
742
- _this.handleFocus();
743
- _this.togglePopup(shouldOpen);
744
- _this.switchFocus();
745
- });
746
- };
747
- /**
748
- * @hidden
749
- */
750
- DateTimePickerComponent.prototype.handleFocus = function () {
751
- var _this = this;
752
- if (this.isActive) {
753
- return;
754
- }
755
- this.isActive = true;
756
- if (kendo_angular_common_1.hasObservers(this.onFocus)) {
757
- this.ngZone.run(function () { return _this.onFocus.emit(); });
758
- }
759
- };
760
- /**
761
- * @hidden
762
- */
763
- DateTimePickerComponent.prototype.handleBlur = function (event) {
764
- var _this = this;
765
- if (!this.isActive || this.focusTargetInComponent(event)) {
766
- return;
767
- }
768
- this.isActive = false;
769
- var isNgControlUntouched = this.wrapper.nativeElement.classList.contains('ng-untouched');
770
- var runInZone = isNgControlUntouched || kendo_angular_common_1.hasObservers(this.onBlur) || (this.isOpen && kendo_angular_common_1.hasObservers(this.close));
771
- this.run(runInZone, function () {
772
- _this.onBlur.emit();
773
- _this.onControlTouched();
774
- _this.togglePopup(false);
775
- _this.cdr.markForCheck();
776
- });
777
- };
778
- /**
779
- * @hidden
780
- */
781
- DateTimePickerComponent.prototype.changeActiveTab = function (tab) {
782
- if (!this.isOpen || this.activeTab === tab) {
783
- return;
784
- }
785
- // persists the Tcurrent value of the TimeSelector when switching between tabs
786
- if (!kendo_date_math_1.isEqual(this.timeSelector.value, this.timeSelector.current)) {
787
- this.timeSelector.handleAccept();
788
- }
789
- this.activeTab = tab;
790
- this.cdr.detectChanges();
791
- this.detectPopupChanges();
792
- };
793
- /**
794
- * @hidden
795
- */
796
- DateTimePickerComponent.prototype.handleTabChangeTransitionEnd = function (dateTimeSelector, event) {
797
- // handle only the .k-datetime-selector element transition, ignore any child element transitions
798
- if (event.target !== dateTimeSelector) {
799
- return;
800
- }
801
- this.activeTabComponent.focus();
802
- };
803
- /**
804
- * @hidden
805
- */
806
- DateTimePickerComponent.prototype.handleAccept = function () {
807
- var _this = this;
808
- if (!this.isOpen) {
809
- return;
810
- }
811
- var candidate = util_1.mergeDateAndTime(this.calendar.value, this.timeSelector.current);
812
- var valueChangePresent = !kendo_date_math_1.isEqual(this.value, candidate);
813
- var runInZone = valueChangePresent || kendo_angular_common_1.hasObservers(this.close);
814
- this.run(runInZone, function () {
815
- _this.handleValueChange(candidate);
816
- _this.togglePopup(false);
817
- });
818
- };
819
- /**
820
- * @hidden
821
- */
822
- DateTimePickerComponent.prototype.handleCancel = function () {
823
- var _this = this;
824
- if (!this.isOpen) {
825
- return;
826
- }
827
- var runInZone = kendo_angular_common_1.hasObservers(this.close);
828
- this.run(runInZone, function () { return _this.togglePopup(false); });
829
- };
830
- /**
831
- * @hidden
832
- */
833
- DateTimePickerComponent.prototype.handleInputValueChange = function (value) {
834
- this.handleValueChange(value);
835
- if (this.isOpen) {
836
- this.togglePopup(false);
837
- }
838
- };
839
- /**
840
- * @hidden
841
- */
842
- DateTimePickerComponent.prototype.handleCalendarValueChange = function () {
843
- this.setTimeSelectorMinMax(this.calendar.value);
844
- this.changeActiveTab('time');
845
- };
846
- /**
847
- * @hidden
848
- */
849
- DateTimePickerComponent.prototype.handleKeyDown = function (event) {
850
- var _this = this;
851
- if (this.disabled || this.readonly) {
852
- return;
853
- }
854
- var _a = event, keyCode = _a.keyCode, altKey = _a.altKey;
855
- switch (keyCode) {
856
- case altKey && kendo_angular_common_1.Keys.ArrowUp:
857
- case kendo_angular_common_1.Keys.Escape:
858
- this.handleCancel();
859
- break;
860
- case !this.isOpen && altKey && kendo_angular_common_1.Keys.ArrowDown:
861
- this.ngZone.run(function () { return _this.togglePopup(true); });
862
- break;
863
- case altKey && kendo_angular_common_1.Keys.ArrowRight:
864
- this.changeActiveTab('time');
865
- break;
866
- case altKey && kendo_angular_common_1.Keys.ArrowLeft:
867
- this.changeActiveTab('date');
868
- break;
869
- case this.isOpen && this.timeSelector.isActive && utils_1.isPresent(this.calendarValue) && kendo_angular_common_1.Keys.Enter:
870
- this.handleAccept();
871
- break;
872
- default: return;
873
- }
874
- event.preventDefault();
875
- };
876
- /**
877
- * @hidden
878
- */
879
- DateTimePickerComponent.prototype.handleTabOut = function (event) {
880
- var _a = event, keyCode = _a.keyCode, shiftKey = _a.shiftKey, target = _a.target;
881
- // if no focusable next sibling elements exist in the controls sections, the user is tabbing out of the popup
882
- var focusableSiblingAvailable = utils_1.isPresent(target.nextElementSibling) && !target.nextElementSibling.disabled;
883
- if (keyCode === kendo_angular_common_1.Keys.Tab && !shiftKey && !focusableSiblingAvailable) {
884
- this.input.focus();
885
- this.handleCancel();
886
- }
887
- };
888
- /**
889
- * @hidden
890
- */
891
- DateTimePickerComponent.prototype.handleBackTabOut = function (event) {
892
- var _a = event, keyCode = _a.keyCode, shiftKey = _a.shiftKey;
893
- if (keyCode === kendo_angular_common_1.Keys.Tab && shiftKey) {
894
- this.input.focus();
895
- }
896
- };
897
- /**
898
- * @hidden
899
- */
900
- DateTimePickerComponent.prototype.popupButtonsClasses = function (type) {
901
- var buttonType = type ? type : 'base';
902
- return (this.size ? util_1.getSizeClass('button', this.size) : '') + " " + (this.rounded ? util_1.getRoundedClass(this.rounded) : '') + " " + (this.fillMode ? 'k-button-' + this.fillMode + ' ' + 'k-button-' + this.fillMode + '-' + buttonType : '');
903
- };
904
- /**
905
- * @hidden
906
- *
907
- * Prevents the diversion of the focus from the currently active element in the component.
908
- */
909
- DateTimePickerComponent.prototype.preventMouseDown = function (event) {
910
- event.preventDefault();
911
- };
912
- DateTimePickerComponent.prototype.verifyValue = function (value) {
913
- if (!core_1.isDevMode()) {
914
- return;
915
- }
916
- if (utils_1.isPresent(value) && !(value instanceof Date)) {
917
- throw new Error("The 'value' should be a valid JavaScript Date instance. Check " + VALUE_DOC_LINK + " for possible resolution.");
918
- }
919
- };
920
- DateTimePickerComponent.prototype.verifyMinMaxRange = function () {
921
- if (!core_1.isDevMode()) {
922
- return;
923
- }
924
- if (!util_1.isValidRange(this.min, this.max)) {
925
- throw new Error("The max value should be bigger than the min. See " + MIN_MAX_DOC_LINK + ".");
926
- }
927
- };
928
- /**
929
- * Extracts the time slots and the literals that are not preceded by date parts
930
- * and concatenates the resulting parts into a string.
931
- * If the provided format value does not contain any time parts,
932
- * returns the designated format of the default popup component of the TimePicker.
933
- */
934
- DateTimePickerComponent.prototype.getTimeSelectorFormat = function (format) {
935
- var timeSelectorFormat = this.intl
936
- .splitDateFormat(format)
937
- .filter(this.timeFormatPartFilter)
938
- .reduce(function (format, part) { return format += part.pattern; }, '');
939
- return timeSelectorFormat || DEFAULT_TIMESELECTOR_FORMAT;
940
- };
941
- /**
942
- * Extracts the `displayFormat` from the provided `string | FormatSettings` value.
943
- * Fallbacks to the default input value, if a falsy value param is passed.
944
- */
945
- DateTimePickerComponent.prototype.getDisplayFormat = function (format) {
946
- if (!format) {
947
- return DEFAULT_DATEINPUT_FORMAT;
948
- }
949
- if (typeof format === 'string') {
950
- return format;
951
- }
952
- else {
953
- return format.displayFormat;
954
- }
955
- };
956
- /**
957
- * The filter expression that filters out all format parts
958
- * except for `hour`, `minute`, `second`, `dayperiod`, and specific literals.
959
- * Literals will be left only if they are not preceded by date parts.
960
- */
961
- DateTimePickerComponent.prototype.timeFormatPartFilter = function (part, index, parts) {
962
- var previousPart = index >= 1 && parts[index - 1];
963
- if (previousPart && part.type === 'literal') {
964
- return timeFormatRegExp.test(previousPart.type);
965
- }
966
- return timeFormatRegExp.test(part.type);
967
- };
968
- DateTimePickerComponent.prototype.togglePopup = function (open) {
969
- if (open === this.isOpen) {
970
- return;
971
- }
972
- var event = new preventable_event_1.PreventableEvent();
973
- open ? this.open.emit(event) : this.close.emit(event);
974
- if (event.isDefaultPrevented()) {
975
- return;
976
- }
977
- this.toggle(open);
978
- this.switchFocus();
979
- };
980
- DateTimePickerComponent.prototype.switchFocus = function () {
981
- if (!this.isActive) {
982
- return;
983
- }
984
- if (this.isOpen) {
985
- this.activeTabComponent.focus();
986
- }
987
- else if (!this.touchEnabled) {
988
- this.input.focus();
989
- }
990
- else if (!this.input.isActive) {
991
- this.handleBlur();
992
- }
993
- };
994
- DateTimePickerComponent.prototype.openPopup = function () {
995
- var _this = this;
996
- this.setCalendarValue(this.value);
997
- this.setTimeSelectorMinMax(this.value);
998
- var direction = this.localization.rtl ? 'right' : 'left';
999
- this.popupRef = this.popupService.open({
1000
- anchor: this.wrapper,
1001
- content: this.popupTemplate,
1002
- positionMode: 'absolute',
1003
- animate: this.popupSettings.animate,
1004
- appendTo: this.appendTo,
1005
- popupClass: "k-datetime-container " + (this.popupSettings.popupClass || ''),
1006
- anchorAlign: { vertical: 'bottom', horizontal: direction },
1007
- popupAlign: { vertical: 'top', horizontal: direction }
1008
- });
1009
- this.popupRef.popupAnchorViewportLeave.subscribe(function () { return _this.handleCancel(); });
1010
- };
1011
- DateTimePickerComponent.prototype.closePopup = function () {
1012
- if (!this.isOpen) {
1013
- return;
1014
- }
1015
- this.popupRef.close();
1016
- this.popupRef = null;
1017
- };
1018
- DateTimePickerComponent.prototype.handleValueChange = function (value) {
1019
- if (kendo_date_math_1.isEqual(this.value, value)) {
1020
- return;
1021
- }
1022
- this.value = kendo_date_math_1.cloneDate(value);
1023
- this.onControlChange(kendo_date_math_1.cloneDate(value));
1024
- this.valueChange.emit(kendo_date_math_1.cloneDate(value));
1025
- };
1026
- /**
1027
- * Indicates whether the focus target is part of this component,
1028
- * that is, whether the focus target is inside the component or in the popup.
1029
- */
1030
- DateTimePickerComponent.prototype.focusTargetInComponent = function (event) {
1031
- if (!utils_1.isPresent(event)) {
1032
- return false;
1033
- }
1034
- var relatedTarget = event.relatedTarget || document.activeElement;
1035
- var focusInPopup = utils_1.isPresent(this.popupRef) && this.popupRef.popupElement.contains(relatedTarget);
1036
- var focusInWrapper = this.wrapper.nativeElement.contains(relatedTarget);
1037
- return focusInPopup || focusInWrapper;
1038
- };
1039
- DateTimePickerComponent.prototype.setTimeSelectorMinMax = function (selectedDate) {
1040
- var minDateSelected = utils_1.isPresent(selectedDate) && kendo_date_math_1.isEqual(kendo_date_math_1.getDate(selectedDate), kendo_date_math_1.getDate(this.min));
1041
- this.timeSelectorMin = kendo_date_math_1.cloneDate(minDateSelected ? this.min : defaults_1.MIN_TIME);
1042
- var maxDateSelected = utils_1.isPresent(selectedDate) && kendo_date_math_1.isEqual(kendo_date_math_1.getDate(selectedDate), kendo_date_math_1.getDate(this.max));
1043
- this.timeSelectorMax = kendo_date_math_1.cloneDate(maxDateSelected ? this.max : defaults_1.MAX_TIME);
1044
- };
1045
- DateTimePickerComponent.prototype.setCalendarValue = function (value) {
1046
- var isInCalendarRange = utils_1.isPresent(value) && util_1.isInRange(value, this.calendarMin, this.calendarMax);
1047
- this.calendarValue = isInCalendarRange ? kendo_date_math_1.getDate(value) : null;
1048
- };
1049
- /**
1050
- * If the popup is available, runs a popup change detection.
1051
- */
1052
- DateTimePickerComponent.prototype.detectPopupChanges = function () {
1053
- if (!this.isOpen) {
1054
- return;
1055
- }
1056
- this.popupRef.popup.changeDetectorRef.detectChanges();
1057
- };
1058
- /**
1059
- * Depending on the predicate `runInZone` value that is passed,
1060
- * runs the provided function either in the Angular or in the current zone.
1061
- */
1062
- DateTimePickerComponent.prototype.run = function (runInZone, fn) {
1063
- if (runInZone) {
1064
- this.ngZone.run(function () { return fn(); });
1065
- }
1066
- else {
1067
- fn();
1068
- }
1069
- };
1070
- DateTimePickerComponent.prototype.handleDateCompletenessChange = function () {
1071
- var _this = this;
1072
- this.cdr.markForCheck();
1073
- this.ngZone.run(function () { return _this.onValidatorChange(); });
1074
- };
1075
- DateTimePickerComponent.prototype.setComponentClasses = function () {
1076
- if (this.size) {
1077
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getSizeClass('input', this.size));
1078
- this.renderer.addClass(this.toggleButton.nativeElement, util_1.getSizeClass('button', this.size));
1079
- }
1080
- if (this.rounded) {
1081
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getRoundedClass(this.rounded));
1082
- }
1083
- if (this.fillMode) {
1084
- this.renderer.addClass(this.wrapper.nativeElement, util_1.getFillModeClass('input', this.fillMode));
1085
- this.renderer.addClass(this.toggleButton.nativeElement, util_1.getFillModeClass('button', this.fillMode));
1086
- this.renderer.addClass(this.toggleButton.nativeElement, "k-button-" + this.fillMode + "-base");
1087
- }
1088
- };
1089
- var DateTimePickerComponent_1;
1090
- tslib_1.__decorate([
1091
- core_1.HostBinding('class.k-datetimepicker'),
1092
- core_1.HostBinding('class.k-input'),
1093
- tslib_1.__metadata("design:type", Boolean)
1094
- ], DateTimePickerComponent.prototype, "hostClasses", void 0);
1095
- tslib_1.__decorate([
1096
- core_1.HostBinding('class.k-disabled'),
1097
- tslib_1.__metadata("design:type", Boolean),
1098
- tslib_1.__metadata("design:paramtypes", [])
1099
- ], DateTimePickerComponent.prototype, "disabledClass", null);
1100
- tslib_1.__decorate([
1101
- core_1.ViewChild('toggleButton', { static: true }),
1102
- tslib_1.__metadata("design:type", core_1.ElementRef)
1103
- ], DateTimePickerComponent.prototype, "toggleButton", void 0);
1104
- tslib_1.__decorate([
1105
- core_1.Input(),
1106
- tslib_1.__metadata("design:type", Date),
1107
- tslib_1.__metadata("design:paramtypes", [Date])
1108
- ], DateTimePickerComponent.prototype, "value", null);
1109
- tslib_1.__decorate([
1110
- core_1.Input(),
1111
- tslib_1.__metadata("design:type", Object),
1112
- tslib_1.__metadata("design:paramtypes", [Object])
1113
- ], DateTimePickerComponent.prototype, "format", null);
1114
- tslib_1.__decorate([
1115
- core_1.Input(),
1116
- tslib_1.__metadata("design:type", Number)
1117
- ], DateTimePickerComponent.prototype, "twoDigitYearMax", void 0);
1118
- tslib_1.__decorate([
1119
- core_1.Input(),
1120
- tslib_1.__metadata("design:type", Number),
1121
- tslib_1.__metadata("design:paramtypes", [Number])
1122
- ], DateTimePickerComponent.prototype, "tabindex", null);
1123
- tslib_1.__decorate([
1124
- core_1.Input(),
1125
- tslib_1.__metadata("design:type", Object),
1126
- tslib_1.__metadata("design:paramtypes", [Object])
1127
- ], DateTimePickerComponent.prototype, "disabledDates", null);
1128
- tslib_1.__decorate([
1129
- core_1.Input(),
1130
- tslib_1.__metadata("design:type", Object),
1131
- tslib_1.__metadata("design:paramtypes", [Object])
1132
- ], DateTimePickerComponent.prototype, "popupSettings", null);
1133
- tslib_1.__decorate([
1134
- core_1.Input(),
1135
- tslib_1.__metadata("design:type", String)
1136
- ], DateTimePickerComponent.prototype, "focusableId", void 0);
1137
- tslib_1.__decorate([
1138
- core_1.Input(),
1139
- tslib_1.__metadata("design:type", String)
1140
- ], DateTimePickerComponent.prototype, "title", void 0);
1141
- tslib_1.__decorate([
1142
- core_1.Input(),
1143
- tslib_1.__metadata("design:type", Boolean)
1144
- ], DateTimePickerComponent.prototype, "disabled", void 0);
1145
- tslib_1.__decorate([
1146
- core_1.Input(),
1147
- tslib_1.__metadata("design:type", Boolean)
1148
- ], DateTimePickerComponent.prototype, "readonly", void 0);
1149
- tslib_1.__decorate([
1150
- core_1.Input(),
1151
- tslib_1.__metadata("design:type", Boolean)
1152
- ], DateTimePickerComponent.prototype, "readOnlyInput", void 0);
1153
- tslib_1.__decorate([
1154
- core_1.Input(),
1155
- tslib_1.__metadata("design:type", Boolean)
1156
- ], DateTimePickerComponent.prototype, "cancelButton", void 0);
1157
- tslib_1.__decorate([
1158
- core_1.Input(),
1159
- tslib_1.__metadata("design:type", Object)
1160
- ], DateTimePickerComponent.prototype, "formatPlaceholder", void 0);
1161
- tslib_1.__decorate([
1162
- core_1.Input(),
1163
- tslib_1.__metadata("design:type", String)
1164
- ], DateTimePickerComponent.prototype, "placeholder", void 0);
1165
- tslib_1.__decorate([
1166
- core_1.Input(),
1167
- tslib_1.__metadata("design:type", Object)
1168
- ], DateTimePickerComponent.prototype, "steps", void 0);
1169
- tslib_1.__decorate([
1170
- core_1.Input(),
1171
- tslib_1.__metadata("design:type", Date)
1172
- ], DateTimePickerComponent.prototype, "focusedDate", void 0);
1173
- tslib_1.__decorate([
1174
- core_1.Input(),
1175
- tslib_1.__metadata("design:type", String)
1176
- ], DateTimePickerComponent.prototype, "calendarType", void 0);
1177
- tslib_1.__decorate([
1178
- core_1.Input(),
1179
- tslib_1.__metadata("design:type", Boolean)
1180
- ], DateTimePickerComponent.prototype, "animateCalendarNavigation", void 0);
1181
- tslib_1.__decorate([
1182
- core_1.Input(),
1183
- tslib_1.__metadata("design:type", Boolean)
1184
- ], DateTimePickerComponent.prototype, "weekNumber", void 0);
1185
- tslib_1.__decorate([
1186
- core_1.Input(),
1187
- tslib_1.__metadata("design:type", Date),
1188
- tslib_1.__metadata("design:paramtypes", [Date])
1189
- ], DateTimePickerComponent.prototype, "min", null);
1190
- tslib_1.__decorate([
1191
- core_1.Input(),
1192
- tslib_1.__metadata("design:type", Date),
1193
- tslib_1.__metadata("design:paramtypes", [Date])
1194
- ], DateTimePickerComponent.prototype, "max", null);
1195
- tslib_1.__decorate([
1196
- core_1.Input(),
1197
- tslib_1.__metadata("design:type", Boolean)
1198
- ], DateTimePickerComponent.prototype, "rangeValidation", void 0);
1199
- tslib_1.__decorate([
1200
- core_1.Input(),
1201
- tslib_1.__metadata("design:type", Boolean)
1202
- ], DateTimePickerComponent.prototype, "disabledDatesValidation", void 0);
1203
- tslib_1.__decorate([
1204
- core_1.Input(),
1205
- tslib_1.__metadata("design:type", Boolean)
1206
- ], DateTimePickerComponent.prototype, "incompleteDateValidation", void 0);
1207
- tslib_1.__decorate([
1208
- core_1.Output(),
1209
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1210
- ], DateTimePickerComponent.prototype, "valueChange", void 0);
1211
- tslib_1.__decorate([
1212
- core_1.Output(),
1213
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1214
- ], DateTimePickerComponent.prototype, "open", void 0);
1215
- tslib_1.__decorate([
1216
- core_1.Output(),
1217
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1218
- ], DateTimePickerComponent.prototype, "close", void 0);
1219
- tslib_1.__decorate([
1220
- core_1.Output('focus'),
1221
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1222
- ], DateTimePickerComponent.prototype, "onFocus", void 0);
1223
- tslib_1.__decorate([
1224
- core_1.Output('blur'),
1225
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1226
- ], DateTimePickerComponent.prototype, "onBlur", void 0);
1227
- tslib_1.__decorate([
1228
- core_1.Input(),
1229
- tslib_1.__metadata("design:type", String),
1230
- tslib_1.__metadata("design:paramtypes", [String])
1231
- ], DateTimePickerComponent.prototype, "defaultTab", null);
1232
- tslib_1.__decorate([
1233
- core_1.Input(),
1234
- tslib_1.__metadata("design:type", String),
1235
- tslib_1.__metadata("design:paramtypes", [String])
1236
- ], DateTimePickerComponent.prototype, "size", null);
1237
- tslib_1.__decorate([
1238
- core_1.Input(),
1239
- tslib_1.__metadata("design:type", String),
1240
- tslib_1.__metadata("design:paramtypes", [String])
1241
- ], DateTimePickerComponent.prototype, "rounded", null);
1242
- tslib_1.__decorate([
1243
- core_1.Input(),
1244
- tslib_1.__metadata("design:type", String),
1245
- tslib_1.__metadata("design:paramtypes", [String])
1246
- ], DateTimePickerComponent.prototype, "fillMode", null);
1247
- tslib_1.__decorate([
1248
- core_1.ContentChild(cell_template_directive_1.CellTemplateDirective, { static: false }),
1249
- tslib_1.__metadata("design:type", cell_template_directive_1.CellTemplateDirective)
1250
- ], DateTimePickerComponent.prototype, "cellTemplate", void 0);
1251
- tslib_1.__decorate([
1252
- core_1.ContentChild(month_cell_template_directive_1.MonthCellTemplateDirective, { static: false }),
1253
- tslib_1.__metadata("design:type", month_cell_template_directive_1.MonthCellTemplateDirective)
1254
- ], DateTimePickerComponent.prototype, "monthCellTemplate", void 0);
1255
- tslib_1.__decorate([
1256
- core_1.ContentChild(year_cell_template_directive_1.YearCellTemplateDirective, { static: false }),
1257
- tslib_1.__metadata("design:type", year_cell_template_directive_1.YearCellTemplateDirective)
1258
- ], DateTimePickerComponent.prototype, "yearCellTemplate", void 0);
1259
- tslib_1.__decorate([
1260
- core_1.ContentChild(decade_cell_template_directive_1.DecadeCellTemplateDirective, { static: false }),
1261
- tslib_1.__metadata("design:type", decade_cell_template_directive_1.DecadeCellTemplateDirective)
1262
- ], DateTimePickerComponent.prototype, "decadeCellTemplate", void 0);
1263
- tslib_1.__decorate([
1264
- core_1.ContentChild(century_cell_template_directive_1.CenturyCellTemplateDirective, { static: false }),
1265
- tslib_1.__metadata("design:type", century_cell_template_directive_1.CenturyCellTemplateDirective)
1266
- ], DateTimePickerComponent.prototype, "centuryCellTemplate", void 0);
1267
- tslib_1.__decorate([
1268
- core_1.ContentChild(weeknumber_cell_template_directive_1.WeekNumberCellTemplateDirective, { static: false }),
1269
- tslib_1.__metadata("design:type", weeknumber_cell_template_directive_1.WeekNumberCellTemplateDirective)
1270
- ], DateTimePickerComponent.prototype, "weekNumberTemplate", void 0);
1271
- tslib_1.__decorate([
1272
- core_1.ContentChild(header_title_template_directive_1.HeaderTitleTemplateDirective, { static: false }),
1273
- tslib_1.__metadata("design:type", header_title_template_directive_1.HeaderTitleTemplateDirective)
1274
- ], DateTimePickerComponent.prototype, "headerTitleTemplate", void 0);
1275
- tslib_1.__decorate([
1276
- core_1.ViewChild('container', { read: core_1.ViewContainerRef, static: true }),
1277
- tslib_1.__metadata("design:type", core_1.ViewContainerRef)
1278
- ], DateTimePickerComponent.prototype, "container", void 0);
1279
- tslib_1.__decorate([
1280
- core_1.ViewChild('popupTemplate', { read: core_1.TemplateRef, static: true }),
1281
- tslib_1.__metadata("design:type", core_1.TemplateRef)
1282
- ], DateTimePickerComponent.prototype, "popupTemplate", void 0);
1283
- DateTimePickerComponent = DateTimePickerComponent_1 = tslib_1.__decorate([
1284
- core_1.Component({
1285
- selector: 'kendo-datetimepicker',
1286
- exportAs: 'kendo-datetimepicker',
1287
- changeDetection: core_1.ChangeDetectionStrategy.OnPush,
1288
- providers: [
1289
- picker_service_1.PickerService,
1290
- kendo_angular_l10n_1.LocalizationService,
1291
- disabled_dates_service_1.DisabledDatesService,
1292
- { provide: kendo_angular_l10n_1.L10N_PREFIX, useValue: 'kendo.datetimepicker' },
1293
- { provide: forms_1.NG_VALUE_ACCESSOR, useExisting: core_1.forwardRef(function () { return DateTimePickerComponent_1; }), multi: true },
1294
- { provide: forms_1.NG_VALIDATORS, useExisting: core_1.forwardRef(function () { return DateTimePickerComponent_1; }), multi: true },
1295
- { provide: kendo_angular_common_1.KendoInput, useExisting: core_1.forwardRef(function () { return DateTimePickerComponent_1; }) }
1296
- ],
1297
- template: "\n <ng-container\n kendoDateTimePickerLocalizedMessages\n\n i18n-dateTab=\"kendo.datetimepicker.dateTab|The Date tab text in the datetimepicker popup header\"\n dateTab=\"Date\"\n\n i18n-dateTabLabel=\"kendo.datetimepicker.dateTabLabel|The label for the Date tab in the datetimepicker popup header\"\n dateTabLabel=\"Date tab\"\n\n i18n-timeTab=\"kendo.datetimepicker.timeTab|The Time tab text in the datetimepicker popup header\"\n timeTab=\"Time\"\n\n i18n-timeTabLabel=\"kendo.datetimepicker.timeTabLabel|The label for the Time tab in the datetimepicker popup header\"\n timeTabLabel=\"Time tab\"\n\n i18n-toggle=\"kendo.datetimepicker.toggle|The title of the toggle button in the datetimepicker component\"\n toggle=\"Toggle popup\"\n\n i18n-accept=\"kendo.datetimepicker.accept|The Accept button text in the datetimepicker component\"\n accept=\"Set\"\n\n i18n-acceptLabel=\"kendo.datetimepicker.acceptLabel|The label for the Accept button in the datetimepicker component\"\n acceptLabel=\"Set\"\n\n i18n-cancel=\"kendo.datetimepicker.cancel|The Cancel button text in the datetimepicker component\"\n cancel=\"Cancel\"\n\n i18n-cancelLabel=\"kendo.datetimepicker.cancelLabel|The label for the Cancel button in the datetimepicker component\"\n cancelLabel=\"Cancel\"\n\n i18n-now=\"kendo.datetimepicker.now|The Now button text in the timepicker component\"\n now=\"NOW\"\n\n i18n-nowLabel=\"kendo.datetimepicker.nowLabel|The label for the Now button in the timepicker component\"\n nowLabel=\"Select now\"\n\n i18n-today=\"kendo.datetimepicker.today|The label for the today button in the calendar header\"\n today=\"Today\"\n\n i18n-prevButtonTitle=\"kendo.datetimepicker.prevButtonTitle|The title of the previous button in the Classic calendar\"\n prevButtonTitle=\"Navigate to previous view\"\n\n i18n-nextButtonTitle=\"kendo.datetimepicker.nextButtonTitle|The title of the next button in the Classic calendar\"\n nextButtonTitle=\"Navigate to next view\"\n >\n </ng-container>\n\n <kendo-dateinput\n [value]=\"value\"\n [format]=\"format\"\n [twoDigitYearMax]=\"twoDigitYearMax\"\n [min]=\"min\"\n [max]=\"max\"\n [incompleteDateValidation]=\"incompleteDateValidation\"\n [formatPlaceholder]=\"formatPlaceholder\"\n [placeholder]=\"placeholder\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly || readOnlyInput\"\n [role]=\"inputRole\"\n [ariaReadOnly]=\"readonly\"\n [steps]=\"steps\"\n [tabindex]=\"tabindex\"\n [title]=\"title\"\n [focusableId]=\"focusableId\"\n [hasPopup]=\"true\"\n [isPopupOpen]=\"isOpen\"\n (valueChange)=\"handleInputValueChange($event)\"\n [kendoEventsOutsideAngular]=\"{\n keydown: handleKeyDown\n }\"\n [scope]=\"this\"\n [fillMode]=\"fillMode\"\n [rounded]=\"rounded\"\n [size]=\"size\"\n >\n </kendo-dateinput>\n <button\n #toggleButton\n type=\"button\"\n class=\"k-input-button k-button k-icon-button\"\n [tabindex]=\"-1\"\n [attr.title]=\"localization.get('toggle')\"\n [attr.aria-label]=\"localization.get('toggle')\"\n [kendoEventsOutsideAngular]=\"{\n mousedown: preventMouseDown,\n click: handleIconClick\n }\"\n [scope]=\"this\"\n >\n <span class=\"k-button-icon k-icon\"\n [ngClass]=\"{\n 'k-i-calendar': activeTab === 'date',\n 'k-i-clock': activeTab === 'time'\n }\"\n ></span>\n </button>\n\n <ng-container #container></ng-container>\n\n <ng-template #popupTemplate>\n <div\n class=\"k-datetime-wrap k-{{activeTab}}-tab\"\n [kendoEventsOutsideAngular]=\"{\n mousedown: preventMouseDown,\n keydown: handleKeyDown\n }\"\n [scope]=\"this\"\n >\n <div class=\"k-datetime-buttongroup\"\n [kendoEventsOutsideAngular]=\"{\n focusin: handleFocus,\n focusout: handleBlur\n }\"\n [scope]=\"this\"\n >\n <div class=\"k-button-group k-button-group-stretched\">\n <button\n type=\"button\"\n class=\"k-button k-group-start k-date-tab\"\n [ngClass]=\"popupButtonsClasses()\"\n [class.k-active]=\"activeTab === 'date'\"\n [attr.title]=\"localization.get('dateTabLabel')\"\n [attr.aria-label]=\"localization.get('dateTabLabel')\"\n [kendoEventsOutsideAngular]=\"{\n click: changeActiveTab.bind(this, 'date'),\n keydown: handleBackTabOut\n }\"\n [scope]=\"this\"\n >\n {{localization.get('dateTab')}}\n </button>\n <button\n type=\"button\"\n class=\"k-button k-group-end k-time-tab\"\n [ngClass]=\"popupButtonsClasses()\"\n [class.k-active]=\"activeTab === 'time'\"\n [attr.title]=\"localization.get('timeTabLabel')\"\n [attr.aria-label]=\"localization.get('timeTabLabel')\"\n [kendoEventsOutsideAngular]=\"{\n click: changeActiveTab.bind(this, 'time')\n }\"\n >\n {{localization.get('timeTab')}}\n </button>\n </div>\n </div>\n <div\n #dateTimeSelector\n class=\"k-datetime-selector\"\n [style.transition]=\"tabSwitchTransition\"\n [kendoEventsOutsideAngular]=\"{\n transitionend: handleTabChangeTransitionEnd.bind(this, dateTimeSelector)\n }\"\n >\n <div class=\"k-datetime-calendar-wrap\">\n <kendo-calendar\n [focusedDate]=\"focusedDate\"\n [(value)]=\"calendarValue\"\n [type]=\"calendarType\"\n [min]=\"calendarMin\"\n [max]=\"calendarMax\"\n [weekNumber]=\"weekNumber\"\n [navigation]=\"false\"\n [animateNavigation]=\"animateCalendarNavigation\"\n [cellTemplate]=\"cellTemplate\"\n [monthCellTemplate]=\"monthCellTemplate\"\n [yearCellTemplate]=\"yearCellTemplate\"\n [decadeCellTemplate]=\"decadeCellTemplate\"\n [centuryCellTemplate]=\"centuryCellTemplate\"\n [weekNumberTemplate]=\"weekNumberTemplate\"\n [headerTitleTemplate]=\"headerTitleTemplate\"\n [disabled]=\"disableCalendar\"\n [disabledDates]=\"disabledDates\"\n (valueChange)=\"handleCalendarValueChange()\"\n >\n <kendo-calendar-messages\n [today]=\"localization.get('today')\"\n [prevButtonTitle]=\"localization.get('prevButtonTitle')\"\n [nextButtonTitle]=\"localization.get('nextButtonTitle')\"\n >\n </kendo-calendar-messages>\n </kendo-calendar>\n </div>\n <div class=\"k-datetime-time-wrap\">\n <kendo-timeselector\n [value]=\"value\"\n [format]=\"timeSelectorFormat\"\n [min]=\"timeSelectorMin\"\n [max]=\"timeSelectorMax\"\n [setButton]=\"false\"\n [cancelButton]=\"false\"\n [steps]=\"steps\"\n [disabled]=\"disableTimeSelector\"\n >\n <kendo-timeselector-messages\n [now]=\"localization.get('now')\"\n [nowLabel]=\"localization.get('nowLabel')\"\n >\n </kendo-timeselector-messages>\n </kendo-timeselector>\n </div>\n </div>\n <div\n class=\"k-datetime-footer k-action-buttons k-actions k-hstack k-justify-content-stretch\"\n [kendoEventsOutsideAngular]=\"{\n keydown: handleTabOut,\n focusin: handleFocus,\n focusout: handleBlur\n }\"\n [scope]=\"this\"\n >\n <button\n *ngIf=\"cancelButton\"\n type=\"button\"\n class=\"k-button k-time-cancel\"\n [ngClass]=\"popupButtonsClasses()\"\n [attr.title]=\"localization.get('cancelLabel')\"\n [attr.aria-label]=\"localization.get('cancelLabel')\"\n [kendoEventsOutsideAngular]=\"{\n click: handleCancel\n }\"\n [scope]=\"this\"\n >\n {{localization.get('cancel')}}\n </button>\n <button\n type=\"button\"\n class=\"k-button k-time-accept\"\n [ngClass]=\"popupButtonsClasses('primary')\"\n [attr.title]=\"localization.get('acceptLabel')\"\n [attr.aria-label]=\"localization.get('acceptLabel')\"\n [disabled]=\"!calendarValue\"\n [kendoEventsOutsideAngular]=\"{\n click: handleAccept\n }\"\n [scope]=\"this\"\n >\n {{localization.get('accept')}}\n </button>\n </div>\n </div>\n </ng-template>\n "
1298
- }),
1299
- tslib_1.__param(6, core_1.Inject(touch_enabled_1.TOUCH_ENABLED)),
1300
- tslib_1.__metadata("design:paramtypes", [kendo_angular_popup_1.PopupService,
1301
- kendo_angular_intl_1.IntlService,
1302
- core_1.ChangeDetectorRef,
1303
- picker_service_1.PickerService,
1304
- core_1.NgZone,
1305
- core_1.ElementRef, Boolean, kendo_angular_l10n_1.LocalizationService,
1306
- disabled_dates_service_1.DisabledDatesService,
1307
- core_1.Renderer2])
1308
- ], DateTimePickerComponent);
1309
- return DateTimePickerComponent;
1310
- }());
1311
- exports.DateTimePickerComponent = DateTimePickerComponent;