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