@progress/kendo-angular-dateinputs 6.0.3-dev.202203150818 → 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 -117
  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,1256 +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
- /* tslint:disable:max-line-length */
6
- import * as tslib_1 from "tslib";
7
- import { Component, ChangeDetectionStrategy, ChangeDetectorRef, ElementRef, TemplateRef, EventEmitter, HostBinding, Renderer2, Input, Output, ContentChild, ViewChild, ViewContainerRef, NgZone, Inject, Optional, forwardRef, isDevMode, Injector } from '@angular/core';
8
- import { NG_VALUE_ACCESSOR, NG_VALIDATORS, NgControl } from '@angular/forms';
9
- import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
10
- import { PopupService } from '@progress/kendo-angular-popup';
11
- import { cloneDate } from '@progress/kendo-date-math';
12
- import { hasObservers, KendoInput, guid, Keys } from '@progress/kendo-angular-common';
13
- import { validatePackage } from '@progress/kendo-licensing';
14
- import { packageMetadata } from '../package-metadata';
15
- import { MIN_DATE, MAX_DATE } from '../defaults';
16
- import { minValidator } from '../validators/min.validator';
17
- import { maxValidator } from '../validators/max.validator';
18
- import { PreventableEvent } from '../preventable-event';
19
- import { CalendarViewEnum } from '../calendar/models/view.enum';
20
- import { CellTemplateDirective } from '../calendar/templates/cell-template.directive';
21
- import { MonthCellTemplateDirective } from '../calendar/templates/month-cell-template.directive';
22
- import { YearCellTemplateDirective } from '../calendar/templates/year-cell-template.directive';
23
- import { DecadeCellTemplateDirective } from '../calendar/templates/decade-cell-template.directive';
24
- import { CenturyCellTemplateDirective } from '../calendar/templates/century-cell-template.directive';
25
- import { WeekNumberCellTemplateDirective } from '../calendar/templates/weeknumber-cell-template.directive';
26
- import { HeaderTitleTemplateDirective } from '../calendar/templates/header-title-template.directive';
27
- import { NavigationItemTemplateDirective } from '../calendar/templates/navigation-item-template.directive';
28
- import { PickerService } from '../common/picker.service';
29
- import { DisabledDatesService } from '../calendar/services/disabled-dates.service';
30
- import { noop, isValidRange, setTime, isWindowAvailable, isTabExitingCalendar, getSizeClass, getRoundedClass, getFillModeClass } from '../util';
31
- import { TOUCH_ENABLED } from '../touch-enabled';
32
- import { requiresZoneOnBlur, currentFocusTarget } from '../common/utils';
33
- import { fromEvent } from 'rxjs';
34
- import { incompleteDateValidator } from '../validators/incomplete-date.validator';
35
- import { disabledDatesValidator } from '../validators/disabled-date.validator';
36
- var MIN_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-min';
37
- var MAX_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/DatePickerComponent/#toc-max';
38
- var VALUE_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/datepicker/#toc-using-with-json';
39
- var DEFAULT_FORMAT = 'd';
40
- var TWO_DIGIT_YEAR_MAX = 68;
41
- /**
42
- * Represents the [Kendo UI DatePicker component for Angular]({% slug overview_datepicker %}#toc-basic-usage).
43
- */
44
- var DatePickerComponent = /** @class */ (function () {
45
- function DatePickerComponent(zone, localization, cdr, popupService, wrapper, renderer, injector, pickerService, disabledDatesService, touchEnabled) {
46
- this.zone = zone;
47
- this.localization = localization;
48
- this.cdr = cdr;
49
- this.popupService = popupService;
50
- this.wrapper = wrapper;
51
- this.renderer = renderer;
52
- this.injector = injector;
53
- this.pickerService = pickerService;
54
- this.disabledDatesService = disabledDatesService;
55
- this.touchEnabled = touchEnabled;
56
- /**
57
- * @hidden
58
- */
59
- this.focusableId = "k-" + guid();
60
- /**
61
- * Defines the active view that the Calendar initially renders
62
- * ([see example]({% slug calendar_type_datepicker %}#toc-active-view)).
63
- * By default, the active view is `month`.
64
- *
65
- * > You have to set `activeView` within the `topView`-`bottomView` range.
66
- */
67
- this.activeView = CalendarViewEnum[CalendarViewEnum.month];
68
- /**
69
- * Defines the bottommost Calendar view to which the user can navigate
70
- * ([see example]({% slug calendar_type_datepicker %}#toc-focused-dates)).
71
- */
72
- this.bottomView = CalendarViewEnum[CalendarViewEnum.month];
73
- /**
74
- * Defines the topmost Calendar view to which the user can navigate
75
- * ([see example]({% slug calendar_type_datepicker %}#toc-focused-dates)).
76
- */
77
- this.topView = CalendarViewEnum[CalendarViewEnum.century];
78
- /**
79
- * Specifies the Calendar type.
80
- *
81
- * The possible values are:
82
- * - `infinite` (default)
83
- * - `classic`
84
- *
85
- */
86
- this.calendarType = 'infinite';
87
- /**
88
- * Determines whether to enable animation when navigating to previous/next Calendar view.
89
- * Applies to the [`classic`]({% slug api_dateinputs_datepickercomponent %}#toc-calendartype) Calendar only.
90
- *
91
- * > 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.
92
- *
93
- * @default false
94
- */
95
- this.animateCalendarNavigation = false;
96
- /**
97
- * Sets or gets the `disabled` property of the DatePicker and determines whether the component is active
98
- * ([see example]({% slug disabled_datepicker %})).
99
- */
100
- this.disabled = false;
101
- /**
102
- * Sets the read-only state of the DatePicker
103
- * ([see example]({% slug readonly_datepicker %}#toc-read-only-datepicker)).
104
- */
105
- this.readonly = false;
106
- /**
107
- * Sets the read-only state of the DatePicker input field
108
- * ([see example]({% slug readonly_datepicker %}#toc-read-only-input)).
109
- *
110
- * > Note that if you set the [`readonly`]({% slug api_dateinputs_datepickercomponent %}#toc-readonly) property value to `true`,
111
- * the input will be rendered in a read-only state regardless of the `readOnlyInput` value.
112
- */
113
- this.readOnlyInput = false;
114
- /**
115
- * Sets or gets the `navigation` property of the Calendar
116
- * and determines whether the navigation side-bar is displayed.
117
- * ([see example]({% slug sidebar_datepicker %})).
118
- */
119
- this.navigation = true;
120
- /**
121
- * Specifies the smallest valid date
122
- * ([see example]({% slug dateranges_datepicker %})).
123
- * By default, the `min` value is `1900-1-1`.
124
- */
125
- this.min = cloneDate(MIN_DATE);
126
- /**
127
- * Specifies the biggest valid date
128
- * ([see example]({% slug dateranges_datepicker %})).
129
- * By default, the `max` value is `2099-12-31`.
130
- */
131
- this.max = cloneDate(MAX_DATE);
132
- /**
133
- * Determines whether the built-in validation for incomplete dates is to be enforced when a form is being validated.
134
- */
135
- this.incompleteDateValidation = false;
136
- /**
137
- * Specifies the focused date of the Calendar component
138
- * ([see example]({% slug calendar_type_datepicker %}#toc-focused-dates)).
139
- */
140
- this.focusedDate = null;
141
- /**
142
- * Specifies the date format that is used to display the input value
143
- * ([see example]({% slug formats_datepicker %})).
144
- *
145
- * Format value options:
146
- * - `string` - Provide a `string` if a single format is going to be used regardless whether the input is focused or blurred.
147
- * - [`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.
148
- */
149
- this.format = DEFAULT_FORMAT;
150
- /**
151
- * The maximum year to assume to be from the current century when typing two-digit year value
152
- * ([see example]({% slug formats_datepicker %}#toc-two-digit-year-format)).
153
- *
154
- * The default value is 68, indicating that typing any value less than 69
155
- * will be assumed to be 20xx, while 69 and larger will be assumed to be 19xx.
156
- */
157
- this.twoDigitYearMax = TWO_DIGIT_YEAR_MAX;
158
- /**
159
- * Specifies the hint the DatePicker displays when its value is `null`.
160
- * ([more information and exaples]({% slug placeholders_datepicker %})).
161
- *
162
- * @example
163
- * ```ts
164
- * _@Component({
165
- * selector: 'my-app',
166
- * template: `
167
- * <kendo-datepicker placeholder="Enter birth date..."></kendo-datepicker>
168
- * `
169
- * })
170
- * export class AppComponent { }
171
- * ```
172
- */
173
- this.placeholder = null;
174
- /**
175
- * Sets or gets the `tabindex` property of the DatePicker.
176
- */
177
- this.tabindex = 0;
178
- /**
179
- * Sets the title of the input element of the DatePicker.
180
- */
181
- this.title = "";
182
- /**
183
- * Determines whether the built-in min or max validators are enforced when validating a form.
184
- */
185
- this.rangeValidation = true;
186
- /**
187
- * Determines whether the built-in validator for disabled
188
- * date ranges is enforced when validating a form
189
- * ([see example]({% slug disabled_dates_datepicker %}#toc-validation)).
190
- */
191
- this.disabledDatesValidation = true;
192
- /**
193
- * Determines whether to display a week number column in the `month` view of the Calendar
194
- * ([see example]({% slug calendar_type_datepicker %}#toc-week-number-column)).
195
- */
196
- this.weekNumber = false;
197
- /**
198
- * Fires each time the user selects a new value
199
- * ([more information and example]({% slug overview_datepicker %}#toc-events)).
200
- */
201
- this.valueChange = new EventEmitter();
202
- /**
203
- * Fires each time the user focuses the input element
204
- * ([more information and example]({% slug overview_datepicker %}#toc-events)).
205
- *
206
- * > To wire the event programmatically, use the `onFocus` property.
207
- *
208
- * @example
209
- * ```ts
210
- * _@Component({
211
- * selector: 'my-app',
212
- * template: `
213
- * <kendo-datepicker (focus)="handleFocus()"></kendo-datepicker>
214
- * `
215
- * })
216
- * export class AppComponent {
217
- * public handleFocus(): void {
218
- * console.log("Component is focused");
219
- * }
220
- * }
221
- * ```
222
- */
223
- this.onFocus = new EventEmitter(); //tslint:disable-line:no-output-rename
224
- /**
225
- * Fires each time the input element gets blurred
226
- * ([more information and example]({% slug overview_datepicker %}#toc-events)).
227
- *
228
- * > To wire the event programmatically, use the `onBlur` property.
229
- *
230
- * @example
231
- * ```ts
232
- * _@Component({
233
- * selector: 'my-app',
234
- * template: `
235
- * <kendo-datepicker (blur)="handleBlur()"></kendo-datepicker>
236
- * `
237
- * })
238
- * export class AppComponent {
239
- * public handleBlur(): void {
240
- * console.log("Component is blurred");
241
- * }
242
- * }
243
- * ```
244
- */
245
- this.onBlur = new EventEmitter(); //tslint:disable-line:no-output-rename
246
- /**
247
- * Fires each time the popup is about to open.
248
- * This event is preventable. If you cancel the event, the popup will remain closed
249
- * ([more information and example]({% slug overview_datepicker %}#toc-events)).
250
- */
251
- this.open = new EventEmitter();
252
- /**
253
- * Fires each time the popup is about to close.
254
- * This event is preventable. If you cancel the event, the popup will remain open
255
- * ([more information and example]({% slug overview_datepicker %}#toc-events)).
256
- */
257
- this.close = new EventEmitter();
258
- /**
259
- * @hidden
260
- */
261
- this.wrapperClasses = true;
262
- this.popupUID = guid();
263
- this._popupSettings = { animate: true };
264
- this._show = false;
265
- this._value = null;
266
- this._active = false;
267
- this.onControlChange = noop;
268
- this.onControlTouched = noop;
269
- this.onValidatorChange = noop;
270
- this.minValidateFn = noop;
271
- this.maxValidateFn = noop;
272
- this.disabledDatesValidateFn = noop;
273
- this.incompleteValidator = noop;
274
- this.resolvedPromise = Promise.resolve(null);
275
- this.domEvents = [];
276
- this._size = 'medium';
277
- this._rounded = 'medium';
278
- this._fillMode = 'solid';
279
- validatePackage(packageMetadata);
280
- this.pickerSubscriptions = this.pickerService.onFocus.subscribe(this.handleFocus.bind(this));
281
- this.pickerSubscriptions.add(this.pickerService.onBlur.subscribe(this.handleBlur.bind(this)));
282
- this.pickerSubscriptions.add(this.pickerService.sameDateSelected.subscribe(this.handleSameSelection.bind(this)));
283
- this.pickerSubscriptions.add(this.pickerService.dateCompletenessChange.subscribe(this.handleDateCompletenessChange.bind(this)));
284
- }
285
- DatePickerComponent_1 = DatePickerComponent;
286
- Object.defineProperty(DatePickerComponent.prototype, "cellTemplateRef", {
287
- /**
288
- * @hidden
289
- */
290
- set: function (template) {
291
- this.cellTemplate = template;
292
- },
293
- enumerable: true,
294
- configurable: true
295
- });
296
- Object.defineProperty(DatePickerComponent.prototype, "monthCellTemplateRef", {
297
- /**
298
- * @hidden
299
- */
300
- set: function (template) {
301
- this.monthCellTemplate = template;
302
- },
303
- enumerable: true,
304
- configurable: true
305
- });
306
- Object.defineProperty(DatePickerComponent.prototype, "yearCellTemplateRef", {
307
- /**
308
- * @hidden
309
- */
310
- set: function (template) {
311
- this.yearCellTemplate = template;
312
- },
313
- enumerable: true,
314
- configurable: true
315
- });
316
- Object.defineProperty(DatePickerComponent.prototype, "decadeCellTemplateRef", {
317
- /**
318
- * @hidden
319
- */
320
- set: function (template) {
321
- this.decadeCellTemplate = template;
322
- },
323
- enumerable: true,
324
- configurable: true
325
- });
326
- Object.defineProperty(DatePickerComponent.prototype, "centuryCellTemplateRef", {
327
- /**
328
- * @hidden
329
- */
330
- set: function (template) {
331
- this.centuryCellTemplate = template;
332
- },
333
- enumerable: true,
334
- configurable: true
335
- });
336
- Object.defineProperty(DatePickerComponent.prototype, "weekNumberTemplateRef", {
337
- /**
338
- * @hidden
339
- */
340
- set: function (template) {
341
- this.weekNumberTemplate = template;
342
- },
343
- enumerable: true,
344
- configurable: true
345
- });
346
- Object.defineProperty(DatePickerComponent.prototype, "headerTitleTemplateRef", {
347
- /**
348
- * @hidden
349
- */
350
- set: function (template) {
351
- this.headerTitleTemplate = template;
352
- },
353
- enumerable: true,
354
- configurable: true
355
- });
356
- Object.defineProperty(DatePickerComponent.prototype, "navigationItemTemplateRef", {
357
- /**
358
- * @hidden
359
- */
360
- set: function (template) {
361
- this.navigationItemTemplate = template;
362
- },
363
- enumerable: true,
364
- configurable: true
365
- });
366
- Object.defineProperty(DatePickerComponent.prototype, "popupSettings", {
367
- get: function () {
368
- return this._popupSettings;
369
- },
370
- /**
371
- * Configures the popup options of the DatePicker.
372
- *
373
- * The available options are:
374
- * - `animate: Boolean`&mdash;Controls the popup animation. By default, the open and close animations are enabled.
375
- * - `appendTo: 'root' | 'component' | ViewContainerRef`&mdash;Controls the popup container. By default, the popup will be appended to the root component.
376
- * - `popupClass: String`&mdash;Specifies a list of CSS classes that are used to style the popup.
377
- */
378
- set: function (settings) {
379
- this._popupSettings = Object.assign({}, { animate: true }, settings);
380
- },
381
- enumerable: true,
382
- configurable: true
383
- });
384
- Object.defineProperty(DatePickerComponent.prototype, "value", {
385
- get: function () {
386
- return this._value;
387
- },
388
- /**
389
- * Specifies the value of the DatePicker component.
390
- *
391
- * > The `value` has to be a valid
392
- * [JavaScript `Date`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date) instance.
393
- */
394
- set: function (value) {
395
- this.verifyValue(value);
396
- this._value = cloneDate(value);
397
- },
398
- enumerable: true,
399
- configurable: true
400
- });
401
- Object.defineProperty(DatePickerComponent.prototype, "tabIndex", {
402
- get: function () {
403
- return this.tabindex;
404
- },
405
- /**
406
- * @hidden
407
- */
408
- set: function (tabIndex) {
409
- this.tabindex = tabIndex;
410
- },
411
- enumerable: true,
412
- configurable: true
413
- });
414
- Object.defineProperty(DatePickerComponent.prototype, "disabledDates", {
415
- get: function () {
416
- return this._disabledDates;
417
- },
418
- /**
419
- * Sets the dates of the DatePicker that will be disabled
420
- * ([see example]({% slug disabled_dates_datepicker %})).
421
- */
422
- set: function (value) {
423
- this._disabledDates = value;
424
- this.disabledDatesService.initialize(value);
425
- },
426
- enumerable: true,
427
- configurable: true
428
- });
429
- Object.defineProperty(DatePickerComponent.prototype, "size", {
430
- get: function () {
431
- return this._size;
432
- },
433
- /**
434
- * Sets the size of the component.
435
- *
436
- * The possible values are:
437
- * * `'small'`
438
- * * `'medium'` (Default)
439
- * * `'large'`
440
- * * `null`
441
- *
442
- */
443
- set: function (size) {
444
- this.renderer.removeClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
445
- this.renderer.removeClass(this.toggleButton.nativeElement, getSizeClass('input', this.size));
446
- if (size) {
447
- this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', size));
448
- this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('input', size));
449
- }
450
- this._size = size;
451
- },
452
- enumerable: true,
453
- configurable: true
454
- });
455
- Object.defineProperty(DatePickerComponent.prototype, "rounded", {
456
- get: function () {
457
- return this._rounded;
458
- },
459
- /**
460
- * Sets the border radius of the component.
461
- *
462
- * The possible values are:
463
- * * `'small'`
464
- * * `'medium'` (Default)
465
- * * `'large'`
466
- * * `'full'`
467
- * * `null`
468
- *
469
- */
470
- set: function (rounded) {
471
- this.renderer.removeClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
472
- if (rounded) {
473
- this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(rounded));
474
- }
475
- this._rounded = rounded;
476
- },
477
- enumerable: true,
478
- configurable: true
479
- });
480
- Object.defineProperty(DatePickerComponent.prototype, "fillMode", {
481
- get: function () {
482
- return this._fillMode;
483
- },
484
- /**
485
- * Sets the fillMode of the component.
486
- *
487
- * The possible values are:
488
- * * `'solid'` (Default)
489
- * * `'flat'`
490
- * * `'outline'`
491
- * * `null`
492
- *
493
- */
494
- set: function (fillMode) {
495
- this.renderer.removeClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
496
- this.renderer.removeClass(this.toggleButton.nativeElement, getFillModeClass('button', this.fillMode));
497
- this.renderer.removeClass(this.toggleButton.nativeElement, "k-button-" + this.fillMode + "-base");
498
- if (fillMode) {
499
- this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', fillMode));
500
- this.renderer.addClass(this.toggleButton.nativeElement, "k-button-" + fillMode + "-base");
501
- this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', fillMode));
502
- }
503
- this._fillMode = fillMode;
504
- },
505
- enumerable: true,
506
- configurable: true
507
- });
508
- Object.defineProperty(DatePickerComponent.prototype, "disabledClass", {
509
- /**
510
- * @hidden
511
- */
512
- get: function () {
513
- return this.disabled;
514
- },
515
- enumerable: true,
516
- configurable: true
517
- });
518
- Object.defineProperty(DatePickerComponent.prototype, "inputRole", {
519
- /**
520
- * @hidden
521
- */
522
- get: function () {
523
- return this.readOnlyInput ? 'listbox' : 'spinbutton';
524
- },
525
- enumerable: true,
526
- configurable: true
527
- });
528
- Object.defineProperty(DatePickerComponent.prototype, "isActive", {
529
- get: function () {
530
- return this._active;
531
- },
532
- set: function (value) {
533
- this._active = value;
534
- if (!this.wrapper) {
535
- return;
536
- }
537
- var element = this.wrapper.nativeElement;
538
- if (value) {
539
- this.renderer.addClass(element, 'k-focus');
540
- }
541
- else {
542
- this.renderer.removeClass(element, 'k-focus');
543
- }
544
- },
545
- enumerable: true,
546
- configurable: true
547
- });
548
- Object.defineProperty(DatePickerComponent.prototype, "show", {
549
- get: function () {
550
- return this._show;
551
- },
552
- set: function (show) {
553
- var _this = this;
554
- if (show && (this.disabled || this.readonly)) {
555
- return;
556
- }
557
- var skipZone = !show && (!this._show || !hasObservers(this.close));
558
- if (!skipZone) {
559
- this.zone.run(function () {
560
- _this.togglePopup(show);
561
- });
562
- }
563
- else {
564
- this.togglePopup(show);
565
- }
566
- },
567
- enumerable: true,
568
- configurable: true
569
- });
570
- /**
571
- * @hidden
572
- * Used by the TextBoxContainer to determine if the component is empty.
573
- */
574
- DatePickerComponent.prototype.isEmpty = function () {
575
- return !this.value && this.input.isEmpty();
576
- };
577
- /**
578
- * @hidden
579
- */
580
- DatePickerComponent.prototype.ngOnInit = function () {
581
- var _this = this;
582
- this.localizationChangeSubscription = this.localization
583
- .changes
584
- .subscribe(function () { return _this.cdr.markForCheck(); });
585
- this.control = this.injector.get(NgControl, null);
586
- if (this.wrapper) {
587
- this.renderer.removeAttribute(this.wrapper.nativeElement, 'tabindex');
588
- this.zone.runOutsideAngular(function () {
589
- _this.bindEvents();
590
- });
591
- }
592
- };
593
- DatePickerComponent.prototype.ngAfterViewInit = function () {
594
- this.setComponentClasses();
595
- };
596
- /**
597
- * @hidden
598
- */
599
- DatePickerComponent.prototype.ngOnChanges = function (changes) {
600
- this.verifySettings();
601
- if (changes.min || changes.max || changes.rangeValidation || changes.disabledDatesValidation || changes.disabledDates || changes.incompleteDateValidation) {
602
- this.minValidateFn = this.rangeValidation ? minValidator(this.min) : noop;
603
- this.maxValidateFn = this.rangeValidation ? maxValidator(this.max) : noop;
604
- this.disabledDatesValidateFn = this.disabledDatesValidation ? disabledDatesValidator(this.disabledDatesService.isDateDisabled) : noop;
605
- this.incompleteValidator = this.incompleteDateValidation ? incompleteDateValidator() : noop;
606
- this.onValidatorChange();
607
- }
608
- };
609
- /**
610
- * @hidden
611
- */
612
- DatePickerComponent.prototype.ngOnDestroy = function () {
613
- this.isActive = false;
614
- this.show = false;
615
- if (this.localizationChangeSubscription) {
616
- this.localizationChangeSubscription.unsubscribe();
617
- }
618
- if (this.windowBlurSubscription) {
619
- this.windowBlurSubscription.unsubscribe();
620
- }
621
- this.domEvents.forEach(function (unbindCallback) { return unbindCallback(); });
622
- this.pickerSubscriptions.unsubscribe();
623
- };
624
- Object.defineProperty(DatePickerComponent.prototype, "isOpen", {
625
- /**
626
- * Returns the current open state of the popup.
627
- */
628
- get: function () {
629
- return this.show;
630
- },
631
- enumerable: true,
632
- configurable: true
633
- });
634
- /**
635
- * @hidden
636
- */
637
- DatePickerComponent.prototype.writeValue = function (value) {
638
- this.verifyValue(value);
639
- this.value = cloneDate(value);
640
- this.cdr.markForCheck();
641
- if (!value && this.input) {
642
- this.input.placeholder = this.placeholder;
643
- this.input.writeValue(value);
644
- }
645
- };
646
- /**
647
- * @hidden
648
- */
649
- DatePickerComponent.prototype.registerOnChange = function (fn) {
650
- this.onControlChange = fn;
651
- };
652
- /**
653
- * @hidden
654
- */
655
- DatePickerComponent.prototype.registerOnTouched = function (fn) {
656
- this.onControlTouched = fn;
657
- };
658
- /**
659
- * @hidden
660
- */
661
- DatePickerComponent.prototype.setDisabledState = function (isDisabled) {
662
- this.disabled = isDisabled;
663
- this.cdr.markForCheck();
664
- };
665
- /**
666
- * @hidden
667
- */
668
- DatePickerComponent.prototype.validate = function (control) {
669
- return this.minValidateFn(control) || this.maxValidateFn(control) || this.disabledDatesValidateFn(control) || this.incompleteValidator(control, this.input && this.input.isDateIncomplete);
670
- };
671
- /**
672
- * @hidden
673
- */
674
- DatePickerComponent.prototype.registerOnValidatorChange = function (fn) {
675
- this.onValidatorChange = fn;
676
- };
677
- /**
678
- * Focuses the DatePicker component.
679
- *
680
- * @example
681
- * ```ts
682
- * _@Component({
683
- * selector: 'my-app',
684
- * template: `
685
- * <button (click)="datepicker.focus()">Focus date picker</button>
686
- * <kendo-datepicker #datepicker></kendo-datepicker>
687
- * `
688
- * })
689
- * export class AppComponent { }
690
- * ```
691
- */
692
- DatePickerComponent.prototype.focus = function () {
693
- this.input.focus();
694
- };
695
- /**
696
- * Blurs the DatePicker component.
697
- */
698
- DatePickerComponent.prototype.blur = function () {
699
- (this.calendar || this.input)['blur'](); //tslint:disable-line:no-string-literal
700
- };
701
- /**
702
- * Toggles the visibility of the popup. If you use the `toggle` method to show or hide the popup,
703
- * the `open` and `close` events do not fire.
704
- *
705
- * @param show - The state of the popup.
706
- */
707
- DatePickerComponent.prototype.toggle = function (show) {
708
- var _this = this;
709
- if (this.disabled || this.readonly) {
710
- return;
711
- }
712
- this.resolvedPromise.then(function () {
713
- _this._toggle((show === undefined) ? !_this.show : show);
714
- });
715
- };
716
- /**
717
- * @hidden
718
- */
719
- DatePickerComponent.prototype.handleIconClick = function (event) {
720
- if (this.disabled || this.readonly) {
721
- return;
722
- }
723
- event.preventDefault();
724
- this.focusInput();
725
- //XXX: explicitly call the handleFocus handler here
726
- //due to async IE focus event
727
- this.handleFocus();
728
- this.show = !this.show;
729
- this.cdr.markForCheck();
730
- };
731
- /**
732
- * @hidden
733
- */
734
- DatePickerComponent.prototype.handleMousedown = function (args) {
735
- args.preventDefault();
736
- };
737
- /**
738
- * @hidden
739
- */
740
- DatePickerComponent.prototype.handleChange = function (value) {
741
- this.cdr.markForCheck();
742
- this.focusInput();
743
- this.value = value;
744
- this.show = false;
745
- this.onControlChange(cloneDate(value));
746
- this.valueChange.emit(cloneDate(value));
747
- };
748
- /**
749
- * @hidden
750
- */
751
- DatePickerComponent.prototype.handleInputChange = function (value) {
752
- this.handleChange(this.input.formatSections.time ? value : this.mergeTime(value));
753
- };
754
- Object.defineProperty(DatePickerComponent.prototype, "popupClasses", {
755
- /**
756
- * @hidden
757
- */
758
- get: function () {
759
- return [
760
- 'k-calendar-container',
761
- 'k-group',
762
- 'k-reset'
763
- ].concat(this.popupSettings.popupClass || []);
764
- },
765
- enumerable: true,
766
- configurable: true
767
- });
768
- Object.defineProperty(DatePickerComponent.prototype, "appendTo", {
769
- /**
770
- * @hidden
771
- */
772
- get: function () {
773
- var appendTo = this.popupSettings.appendTo;
774
- if (!appendTo || appendTo === 'root') {
775
- return undefined;
776
- }
777
- return appendTo === 'component' ? this.container : appendTo;
778
- },
779
- enumerable: true,
780
- configurable: true
781
- });
782
- Object.defineProperty(DatePickerComponent.prototype, "input", {
783
- get: function () {
784
- return this.pickerService.input;
785
- },
786
- enumerable: true,
787
- configurable: true
788
- });
789
- Object.defineProperty(DatePickerComponent.prototype, "calendar", {
790
- get: function () {
791
- return this.pickerService.calendar;
792
- },
793
- enumerable: true,
794
- configurable: true
795
- });
796
- /**
797
- * @hidden
798
- */
799
- DatePickerComponent.prototype.mergeTime = function (value) {
800
- return this.value && value ? setTime(value, this.value) : value;
801
- };
802
- /**
803
- * @hidden
804
- */
805
- DatePickerComponent.prototype.handleKeydown = function (e) {
806
- var altKey = e.altKey, shiftKey = e.shiftKey, keyCode = e.keyCode, target = e.target;
807
- if (keyCode === Keys.Escape) {
808
- this.show = false;
809
- }
810
- if (altKey) {
811
- if (keyCode === Keys.ArrowDown && !this.show) {
812
- this.show = true;
813
- }
814
- if (keyCode === Keys.ArrowUp) {
815
- this.show = false;
816
- }
817
- }
818
- if (keyCode === Keys.Enter && target.classList.contains('k-calendar')) {
819
- e.preventDefault(); // Don't submit form on date selection in popup
820
- }
821
- if (keyCode === Keys.Tab && this.show && this.calendar.isActive && isTabExitingCalendar(this.calendarType, target, shiftKey)) {
822
- this.input.focus();
823
- this.show = false;
824
- }
825
- };
826
- DatePickerComponent.prototype.togglePopup = function (show) {
827
- var event = new PreventableEvent();
828
- if (!this._show && show) {
829
- this.open.emit(event);
830
- }
831
- else if (this._show && !show) {
832
- this.close.emit(event);
833
- }
834
- if (event.isDefaultPrevented()) {
835
- return;
836
- }
837
- this._toggle(show);
838
- this.toggleFocus();
839
- };
840
- DatePickerComponent.prototype._toggle = function (show) {
841
- var _this = this;
842
- if (show === this._show) {
843
- return;
844
- }
845
- this._show = show;
846
- if (show) {
847
- var direction = this.localization.rtl ? 'right' : 'left';
848
- this.popupRef = this.popupService.open({
849
- anchor: this.wrapper,
850
- anchorAlign: { vertical: 'bottom', horizontal: direction },
851
- animate: this.popupSettings.animate,
852
- appendTo: this.appendTo,
853
- content: this.popupTemplate,
854
- popupAlign: { vertical: 'top', horizontal: direction },
855
- popupClass: this.popupClasses,
856
- positionMode: 'absolute'
857
- });
858
- this.popupRef.popupElement.setAttribute('id', this.popupUID);
859
- this.subscription = this.popupRef.popupAnchorViewportLeave.subscribe(function () { return _this.show = false; });
860
- }
861
- else {
862
- this.popupRef.close();
863
- this.popupRef = null;
864
- this.subscription.unsubscribe();
865
- }
866
- };
867
- DatePickerComponent.prototype.focusInput = function () {
868
- if (this.touchEnabled) {
869
- return;
870
- }
871
- this.input.focus();
872
- };
873
- DatePickerComponent.prototype.toggleFocus = function () {
874
- if (!this.isActive) {
875
- return;
876
- }
877
- if (this.show) {
878
- if (!this.calendar) {
879
- this.cdr.detectChanges();
880
- }
881
- if (this.calendar) {
882
- this.calendar.focus();
883
- }
884
- }
885
- else if (!this.touchEnabled) {
886
- this.input.focus();
887
- }
888
- else if (!this.input.isActive) {
889
- this.handleBlur();
890
- }
891
- };
892
- DatePickerComponent.prototype.verifySettings = function () {
893
- if (!isDevMode()) {
894
- return;
895
- }
896
- if (!isValidRange(this.min, this.max)) {
897
- throw new Error("The max value should be bigger than the min. See " + MIN_DOC_LINK + " and " + MAX_DOC_LINK + ".");
898
- }
899
- };
900
- DatePickerComponent.prototype.verifyValue = function (value) {
901
- if (!isDevMode()) {
902
- return;
903
- }
904
- if (value && !(value instanceof Date)) {
905
- throw new Error("The 'value' should be a valid JavaScript Date instance. Check " + VALUE_DOC_LINK + " for possible resolution.");
906
- }
907
- };
908
- DatePickerComponent.prototype.bindEvents = function () {
909
- var element = this.wrapper.nativeElement;
910
- this.domEvents.push(this.renderer.listen(element, 'keydown', this.handleKeydown.bind(this)));
911
- if (isWindowAvailable()) {
912
- this.windowBlurSubscription = fromEvent(window, 'blur').subscribe(this.handleWindowBlur.bind(this));
913
- }
914
- };
915
- DatePickerComponent.prototype.handleFocus = function () {
916
- var _this = this;
917
- if (this.isActive) {
918
- return;
919
- }
920
- this.isActive = true;
921
- if (hasObservers(this.onFocus)) {
922
- this.zone.run(function () {
923
- _this.onFocus.emit();
924
- });
925
- }
926
- };
927
- DatePickerComponent.prototype.handleWindowBlur = function () {
928
- if (!this.isOpen) {
929
- return;
930
- }
931
- this.show = false;
932
- };
933
- DatePickerComponent.prototype.handleBlur = function (args) {
934
- var _this = this;
935
- var currentTarget = args && currentFocusTarget(args);
936
- if (currentTarget && (this.input.containsElement(currentTarget) ||
937
- (this.calendar && this.calendar.containsElement(currentTarget)))) {
938
- return;
939
- }
940
- if (hasObservers(this.onBlur) || (this.show && hasObservers(this.close)) || requiresZoneOnBlur(this.control)) {
941
- this.zone.run(function () {
942
- _this.blurComponent();
943
- _this.cdr.markForCheck();
944
- });
945
- }
946
- else {
947
- this.blurComponent();
948
- }
949
- };
950
- DatePickerComponent.prototype.blurComponent = function () {
951
- this.isActive = false; // order is important ¯\_(ツ)_/¯
952
- this.show = false;
953
- this.cdr.detectChanges();
954
- this.onControlTouched();
955
- this.onBlur.emit();
956
- };
957
- DatePickerComponent.prototype.handleSameSelection = function () {
958
- if (this.show) {
959
- this.focusInput();
960
- this.show = false;
961
- }
962
- };
963
- DatePickerComponent.prototype.handleDateCompletenessChange = function () {
964
- var _this = this;
965
- this.cdr.markForCheck();
966
- this.zone.run(function () { return _this.onValidatorChange(); });
967
- };
968
- DatePickerComponent.prototype.setComponentClasses = function () {
969
- if (this.size) {
970
- this.renderer.addClass(this.wrapper.nativeElement, getSizeClass('input', this.size));
971
- this.renderer.addClass(this.toggleButton.nativeElement, getSizeClass('button', this.size));
972
- }
973
- if (this.rounded) {
974
- this.renderer.addClass(this.wrapper.nativeElement, getRoundedClass(this.rounded));
975
- }
976
- if (this.fillMode) {
977
- this.renderer.addClass(this.wrapper.nativeElement, getFillModeClass('input', this.fillMode));
978
- this.renderer.addClass(this.toggleButton.nativeElement, getFillModeClass('button', this.fillMode));
979
- this.renderer.addClass(this.toggleButton.nativeElement, "k-button-" + this.fillMode + "-base");
980
- }
981
- };
982
- var DatePickerComponent_1;
983
- tslib_1.__decorate([
984
- ViewChild('container', { read: ViewContainerRef, static: true }),
985
- tslib_1.__metadata("design:type", ViewContainerRef)
986
- ], DatePickerComponent.prototype, "container", void 0);
987
- tslib_1.__decorate([
988
- ViewChild('popupTemplate', { static: true }),
989
- tslib_1.__metadata("design:type", TemplateRef)
990
- ], DatePickerComponent.prototype, "popupTemplate", void 0);
991
- tslib_1.__decorate([
992
- ViewChild('toggleButton', { static: true }),
993
- tslib_1.__metadata("design:type", ElementRef)
994
- ], DatePickerComponent.prototype, "toggleButton", void 0);
995
- tslib_1.__decorate([
996
- ContentChild(CellTemplateDirective, { static: false }),
997
- tslib_1.__metadata("design:type", CellTemplateDirective)
998
- ], DatePickerComponent.prototype, "cellTemplate", void 0);
999
- tslib_1.__decorate([
1000
- Input('cellTemplate'),
1001
- tslib_1.__metadata("design:type", CellTemplateDirective),
1002
- tslib_1.__metadata("design:paramtypes", [CellTemplateDirective])
1003
- ], DatePickerComponent.prototype, "cellTemplateRef", null);
1004
- tslib_1.__decorate([
1005
- ContentChild(MonthCellTemplateDirective, { static: false }),
1006
- tslib_1.__metadata("design:type", MonthCellTemplateDirective)
1007
- ], DatePickerComponent.prototype, "monthCellTemplate", void 0);
1008
- tslib_1.__decorate([
1009
- Input('monthCellTemplate'),
1010
- tslib_1.__metadata("design:type", MonthCellTemplateDirective),
1011
- tslib_1.__metadata("design:paramtypes", [MonthCellTemplateDirective])
1012
- ], DatePickerComponent.prototype, "monthCellTemplateRef", null);
1013
- tslib_1.__decorate([
1014
- ContentChild(YearCellTemplateDirective, { static: false }),
1015
- tslib_1.__metadata("design:type", YearCellTemplateDirective)
1016
- ], DatePickerComponent.prototype, "yearCellTemplate", void 0);
1017
- tslib_1.__decorate([
1018
- Input('yearCellTemplate'),
1019
- tslib_1.__metadata("design:type", YearCellTemplateDirective),
1020
- tslib_1.__metadata("design:paramtypes", [YearCellTemplateDirective])
1021
- ], DatePickerComponent.prototype, "yearCellTemplateRef", null);
1022
- tslib_1.__decorate([
1023
- ContentChild(DecadeCellTemplateDirective, { static: false }),
1024
- tslib_1.__metadata("design:type", DecadeCellTemplateDirective)
1025
- ], DatePickerComponent.prototype, "decadeCellTemplate", void 0);
1026
- tslib_1.__decorate([
1027
- Input('decadeCellTemplate'),
1028
- tslib_1.__metadata("design:type", DecadeCellTemplateDirective),
1029
- tslib_1.__metadata("design:paramtypes", [DecadeCellTemplateDirective])
1030
- ], DatePickerComponent.prototype, "decadeCellTemplateRef", null);
1031
- tslib_1.__decorate([
1032
- ContentChild(CenturyCellTemplateDirective, { static: false }),
1033
- tslib_1.__metadata("design:type", CenturyCellTemplateDirective)
1034
- ], DatePickerComponent.prototype, "centuryCellTemplate", void 0);
1035
- tslib_1.__decorate([
1036
- Input('centuryCellTemplate'),
1037
- tslib_1.__metadata("design:type", CenturyCellTemplateDirective),
1038
- tslib_1.__metadata("design:paramtypes", [CenturyCellTemplateDirective])
1039
- ], DatePickerComponent.prototype, "centuryCellTemplateRef", null);
1040
- tslib_1.__decorate([
1041
- ContentChild(WeekNumberCellTemplateDirective, { static: false }),
1042
- tslib_1.__metadata("design:type", WeekNumberCellTemplateDirective)
1043
- ], DatePickerComponent.prototype, "weekNumberTemplate", void 0);
1044
- tslib_1.__decorate([
1045
- Input('weekNumberTemplate'),
1046
- tslib_1.__metadata("design:type", WeekNumberCellTemplateDirective),
1047
- tslib_1.__metadata("design:paramtypes", [WeekNumberCellTemplateDirective])
1048
- ], DatePickerComponent.prototype, "weekNumberTemplateRef", null);
1049
- tslib_1.__decorate([
1050
- ContentChild(HeaderTitleTemplateDirective, { static: false }),
1051
- tslib_1.__metadata("design:type", HeaderTitleTemplateDirective)
1052
- ], DatePickerComponent.prototype, "headerTitleTemplate", void 0);
1053
- tslib_1.__decorate([
1054
- Input('headerTitleTemplate'),
1055
- tslib_1.__metadata("design:type", HeaderTitleTemplateDirective),
1056
- tslib_1.__metadata("design:paramtypes", [HeaderTitleTemplateDirective])
1057
- ], DatePickerComponent.prototype, "headerTitleTemplateRef", null);
1058
- tslib_1.__decorate([
1059
- ContentChild(NavigationItemTemplateDirective, { static: false }),
1060
- tslib_1.__metadata("design:type", NavigationItemTemplateDirective)
1061
- ], DatePickerComponent.prototype, "navigationItemTemplate", void 0);
1062
- tslib_1.__decorate([
1063
- Input('navigationItemTemplate'),
1064
- tslib_1.__metadata("design:type", NavigationItemTemplateDirective),
1065
- tslib_1.__metadata("design:paramtypes", [NavigationItemTemplateDirective])
1066
- ], DatePickerComponent.prototype, "navigationItemTemplateRef", null);
1067
- tslib_1.__decorate([
1068
- Input(),
1069
- tslib_1.__metadata("design:type", String)
1070
- ], DatePickerComponent.prototype, "focusableId", void 0);
1071
- tslib_1.__decorate([
1072
- Input(),
1073
- tslib_1.__metadata("design:type", String)
1074
- ], DatePickerComponent.prototype, "activeView", void 0);
1075
- tslib_1.__decorate([
1076
- Input(),
1077
- tslib_1.__metadata("design:type", String)
1078
- ], DatePickerComponent.prototype, "bottomView", void 0);
1079
- tslib_1.__decorate([
1080
- Input(),
1081
- tslib_1.__metadata("design:type", String)
1082
- ], DatePickerComponent.prototype, "topView", void 0);
1083
- tslib_1.__decorate([
1084
- Input(),
1085
- tslib_1.__metadata("design:type", String)
1086
- ], DatePickerComponent.prototype, "calendarType", void 0);
1087
- tslib_1.__decorate([
1088
- Input(),
1089
- tslib_1.__metadata("design:type", Boolean)
1090
- ], DatePickerComponent.prototype, "animateCalendarNavigation", void 0);
1091
- tslib_1.__decorate([
1092
- Input(),
1093
- tslib_1.__metadata("design:type", Boolean)
1094
- ], DatePickerComponent.prototype, "disabled", void 0);
1095
- tslib_1.__decorate([
1096
- Input(),
1097
- tslib_1.__metadata("design:type", Boolean)
1098
- ], DatePickerComponent.prototype, "readonly", void 0);
1099
- tslib_1.__decorate([
1100
- Input(),
1101
- tslib_1.__metadata("design:type", Boolean)
1102
- ], DatePickerComponent.prototype, "readOnlyInput", void 0);
1103
- tslib_1.__decorate([
1104
- Input(),
1105
- tslib_1.__metadata("design:type", Object),
1106
- tslib_1.__metadata("design:paramtypes", [Object])
1107
- ], DatePickerComponent.prototype, "popupSettings", null);
1108
- tslib_1.__decorate([
1109
- Input(),
1110
- tslib_1.__metadata("design:type", Boolean)
1111
- ], DatePickerComponent.prototype, "navigation", void 0);
1112
- tslib_1.__decorate([
1113
- Input(),
1114
- tslib_1.__metadata("design:type", Date)
1115
- ], DatePickerComponent.prototype, "min", void 0);
1116
- tslib_1.__decorate([
1117
- Input(),
1118
- tslib_1.__metadata("design:type", Date)
1119
- ], DatePickerComponent.prototype, "max", void 0);
1120
- tslib_1.__decorate([
1121
- Input(),
1122
- tslib_1.__metadata("design:type", Boolean)
1123
- ], DatePickerComponent.prototype, "incompleteDateValidation", void 0);
1124
- tslib_1.__decorate([
1125
- Input(),
1126
- tslib_1.__metadata("design:type", Date)
1127
- ], DatePickerComponent.prototype, "focusedDate", void 0);
1128
- tslib_1.__decorate([
1129
- Input(),
1130
- tslib_1.__metadata("design:type", Date),
1131
- tslib_1.__metadata("design:paramtypes", [Date])
1132
- ], DatePickerComponent.prototype, "value", null);
1133
- tslib_1.__decorate([
1134
- Input(),
1135
- tslib_1.__metadata("design:type", Object)
1136
- ], DatePickerComponent.prototype, "format", void 0);
1137
- tslib_1.__decorate([
1138
- Input(),
1139
- tslib_1.__metadata("design:type", Number)
1140
- ], DatePickerComponent.prototype, "twoDigitYearMax", void 0);
1141
- tslib_1.__decorate([
1142
- Input(),
1143
- tslib_1.__metadata("design:type", Object)
1144
- ], DatePickerComponent.prototype, "formatPlaceholder", void 0);
1145
- tslib_1.__decorate([
1146
- Input(),
1147
- tslib_1.__metadata("design:type", String)
1148
- ], DatePickerComponent.prototype, "placeholder", void 0);
1149
- tslib_1.__decorate([
1150
- Input(),
1151
- tslib_1.__metadata("design:type", Number)
1152
- ], DatePickerComponent.prototype, "tabindex", void 0);
1153
- tslib_1.__decorate([
1154
- Input(),
1155
- tslib_1.__metadata("design:type", Number),
1156
- tslib_1.__metadata("design:paramtypes", [Number])
1157
- ], DatePickerComponent.prototype, "tabIndex", null);
1158
- tslib_1.__decorate([
1159
- Input(),
1160
- tslib_1.__metadata("design:type", Object),
1161
- tslib_1.__metadata("design:paramtypes", [Object])
1162
- ], DatePickerComponent.prototype, "disabledDates", null);
1163
- tslib_1.__decorate([
1164
- Input(),
1165
- tslib_1.__metadata("design:type", String)
1166
- ], DatePickerComponent.prototype, "title", void 0);
1167
- tslib_1.__decorate([
1168
- Input(),
1169
- tslib_1.__metadata("design:type", Boolean)
1170
- ], DatePickerComponent.prototype, "rangeValidation", void 0);
1171
- tslib_1.__decorate([
1172
- Input(),
1173
- tslib_1.__metadata("design:type", Boolean)
1174
- ], DatePickerComponent.prototype, "disabledDatesValidation", void 0);
1175
- tslib_1.__decorate([
1176
- Input(),
1177
- tslib_1.__metadata("design:type", Boolean)
1178
- ], DatePickerComponent.prototype, "weekNumber", void 0);
1179
- tslib_1.__decorate([
1180
- Input(),
1181
- tslib_1.__metadata("design:type", String),
1182
- tslib_1.__metadata("design:paramtypes", [String])
1183
- ], DatePickerComponent.prototype, "size", null);
1184
- tslib_1.__decorate([
1185
- Input(),
1186
- tslib_1.__metadata("design:type", String),
1187
- tslib_1.__metadata("design:paramtypes", [String])
1188
- ], DatePickerComponent.prototype, "rounded", null);
1189
- tslib_1.__decorate([
1190
- Input(),
1191
- tslib_1.__metadata("design:type", String),
1192
- tslib_1.__metadata("design:paramtypes", [String])
1193
- ], DatePickerComponent.prototype, "fillMode", null);
1194
- tslib_1.__decorate([
1195
- Output(),
1196
- tslib_1.__metadata("design:type", EventEmitter)
1197
- ], DatePickerComponent.prototype, "valueChange", void 0);
1198
- tslib_1.__decorate([
1199
- Output('focus'),
1200
- tslib_1.__metadata("design:type", EventEmitter)
1201
- ], DatePickerComponent.prototype, "onFocus", void 0);
1202
- tslib_1.__decorate([
1203
- Output('blur'),
1204
- tslib_1.__metadata("design:type", EventEmitter)
1205
- ], DatePickerComponent.prototype, "onBlur", void 0);
1206
- tslib_1.__decorate([
1207
- Output(),
1208
- tslib_1.__metadata("design:type", EventEmitter)
1209
- ], DatePickerComponent.prototype, "open", void 0);
1210
- tslib_1.__decorate([
1211
- Output(),
1212
- tslib_1.__metadata("design:type", EventEmitter)
1213
- ], DatePickerComponent.prototype, "close", void 0);
1214
- tslib_1.__decorate([
1215
- HostBinding('class.k-datepicker'),
1216
- HostBinding('class.k-input'),
1217
- tslib_1.__metadata("design:type", Boolean)
1218
- ], DatePickerComponent.prototype, "wrapperClasses", void 0);
1219
- tslib_1.__decorate([
1220
- HostBinding('class.k-disabled'),
1221
- tslib_1.__metadata("design:type", Boolean),
1222
- tslib_1.__metadata("design:paramtypes", [])
1223
- ], DatePickerComponent.prototype, "disabledClass", null);
1224
- DatePickerComponent = DatePickerComponent_1 = tslib_1.__decorate([
1225
- Component({
1226
- changeDetection: ChangeDetectionStrategy.OnPush,
1227
- exportAs: 'kendo-datepicker',
1228
- providers: [
1229
- { provide: NG_VALUE_ACCESSOR, useExisting: forwardRef(function () { return DatePickerComponent_1; }), multi: true },
1230
- { provide: NG_VALIDATORS, useExisting: forwardRef(function () { return DatePickerComponent_1; }), multi: true },
1231
- { provide: KendoInput, useExisting: forwardRef(function () { return DatePickerComponent_1; }) },
1232
- LocalizationService,
1233
- PickerService,
1234
- DisabledDatesService,
1235
- {
1236
- provide: L10N_PREFIX,
1237
- useValue: 'kendo.datepicker'
1238
- }
1239
- ],
1240
- selector: 'kendo-datepicker',
1241
- template: "\n <ng-container kendoDatePickerLocalizedMessages\n i18n-today=\"kendo.datepicker.today|The label for the today button in the calendar header\"\n today=\"Today\"\n\n i18n-toggle=\"kendo.datepicker.toggle|The title of the toggle button in the datepicker component\"\n toggle=\"Toggle calendar\"\n\n i18n-prevButtonTitle=\"kendo.datepicker.prevButtonTitle|The title of the previous button in the Classic calendar\"\n prevButtonTitle=\"Navigate to previous view\"\n\n i18n-nextButtonTitle=\"kendo.datepicker.nextButtonTitle|The title of the next button in the Classic calendar\"\n nextButtonTitle=\"Navigate to next view\"\n >\n </ng-container>\n <kendo-dateinput\n #input\n [role]=\"inputRole\"\n [focusableId]=\"focusableId\"\n [hasPopup]=\"true\"\n [isPopupOpen]=\"show\"\n [disabled]=\"disabled\"\n [readonly]=\"readonly || readOnlyInput\"\n [ariaReadOnly]=\"readonly\"\n [tabindex]=\"tabindex\"\n [title]=\"title\"\n [format]=\"format\"\n [twoDigitYearMax]=\"twoDigitYearMax\"\n [formatPlaceholder]=\"formatPlaceholder\"\n [placeholder]=\"placeholder\"\n [min]=\"min\"\n [max]=\"max\"\n [incompleteDateValidation]=\"incompleteDateValidation\"\n [fillMode]=\"null\"\n [rounded]=\"null\"\n [size]=\"null\"\n [value]=\"value\"\n (valueChange)=\"handleInputChange($event)\"\n ></kendo-dateinput>\n <button\n #toggleButton\n type=\"button\"\n class=\"k-input-button k-button k-icon-button\"\n [tabindex]=\"-1\"\n [attr.title]=\"localization.get('toggle')\"\n [attr.aria-label]=\"localization.get('toggle')\"\n [kendoEventsOutsideAngular]=\"{\n click: handleIconClick,\n mousedown: handleMousedown\n }\"\n [scope]=\"this\"\n >\n <span class=\"k-button-icon k-icon k-i-calendar\"></span>\n </button>\n <ng-container #container></ng-container>\n <ng-template #popupTemplate>\n <kendo-calendar\n #calendar\n [type]=\"calendarType\"\n [min]=\"min\"\n [max]=\"max\"\n [navigation]=\"navigation\"\n [animateNavigation]=\"animateCalendarNavigation\"\n [activeView]=\"activeView\"\n [bottomView]=\"bottomView\"\n [topView]=\"topView\"\n [weekNumber]=\"weekNumber\"\n [cellTemplate]=\"cellTemplate\"\n [monthCellTemplate]=\"monthCellTemplate\"\n [yearCellTemplate]=\"yearCellTemplate\"\n [decadeCellTemplate]=\"decadeCellTemplate\"\n [centuryCellTemplate]=\"centuryCellTemplate\"\n [weekNumberTemplate]=\"weekNumberTemplate\"\n [headerTitleTemplate]=\"headerTitleTemplate\"\n [navigationItemTemplate]=\"navigationItemTemplate\"\n [focusedDate]=\"focusedDate\"\n [value]=\"value\"\n (valueChange)=\"handleChange(mergeTime($event))\"\n [kendoEventsOutsideAngular]=\"{\n keydown: handleKeydown\n }\"\n [scope]=\"this\"\n [disabledDates]=\"disabledDates\"\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 <ng-template>\n "
1242
- }),
1243
- tslib_1.__param(9, Optional()), tslib_1.__param(9, Inject(TOUCH_ENABLED)),
1244
- tslib_1.__metadata("design:paramtypes", [NgZone,
1245
- LocalizationService,
1246
- ChangeDetectorRef,
1247
- PopupService,
1248
- ElementRef,
1249
- Renderer2,
1250
- Injector,
1251
- PickerService,
1252
- DisabledDatesService, Boolean])
1253
- ], DatePickerComponent);
1254
- return DatePickerComponent;
1255
- }());
1256
- export { DatePickerComponent };