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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (553) hide show
  1. package/bundles/kendo-angular-dateinputs.umd.js +5 -0
  2. package/calendar/calendar-common.module.d.ts +24 -0
  3. package/{dist/es2015/calendar → calendar}/calendar.component.d.ts +46 -21
  4. package/{dist/es2015/calendar → calendar}/calendar.module.d.ts +16 -0
  5. package/{dist/es2015/calendar → calendar}/calendars.module.d.ts +6 -0
  6. package/{dist/es2015/calendar → calendar}/for.directive.d.ts +8 -5
  7. package/{dist/es2015/calendar → calendar}/header.component.d.ts +3 -0
  8. package/{dist/es2015/calendar → calendar}/horizontal-view-list.component.d.ts +9 -5
  9. package/{dist/es2015/calendar → calendar}/localization/calendar-custom-messages.component.d.ts +4 -1
  10. package/{dist/es2015/calendar → calendar}/localization/calendar-localized-messages.directive.d.ts +3 -0
  11. package/{dist/es2015/calendar → calendar}/localization/calendar-messages.d.ts +3 -0
  12. package/{dist/es2015/calendar → calendar}/localization/multiview-calendar-custom-messages.component.d.ts +4 -1
  13. package/{dist/es2015/calendar → calendar}/localization/multiview-calendar-localized-messages.directive.d.ts +3 -0
  14. package/{dist/es2015/calendar → calendar}/localization/multiview-calendar-messages.d.ts +3 -0
  15. package/{dist/es2015/calendar → calendar}/models/cell-context.interface.d.ts +0 -0
  16. package/{dist/es2015/calendar → calendar}/models/keydown.interface.d.ts +0 -0
  17. package/{dist/es2015/calendar → calendar}/models/navigation-action.enum.d.ts +0 -0
  18. package/{dist/es2015/calendar → calendar}/models/row-length-options.interface.d.ts +0 -0
  19. package/{dist/es2015/calendar → calendar}/models/scrollable.interface.d.ts +0 -0
  20. package/{dist/es2015/calendar → calendar}/models/selection-range-end.type.d.ts +0 -0
  21. package/{dist/es2015/calendar → calendar}/models/selection-range.interface.d.ts +0 -0
  22. package/{dist/es2015/calendar → calendar}/models/selection.d.ts +0 -0
  23. package/{dist/es2015/calendar → calendar}/models/type.d.ts +0 -0
  24. package/{dist/es2015/calendar → calendar}/models/view-service.interface.d.ts +0 -0
  25. package/{dist/es2015/calendar → calendar}/models/view.enum.d.ts +0 -0
  26. package/{dist/es2015/calendar → calendar}/models/view.type.d.ts +0 -0
  27. package/{dist/es2015/calendar → calendar}/multiview-calendar.component.d.ts +38 -24
  28. package/{dist/es2015/calendar → calendar}/multiview-calendar.module.d.ts +14 -0
  29. package/{dist/es2015/calendar → calendar}/navigation.component.d.ts +4 -1
  30. package/{dist/es2015/calendar → calendar}/services/bus-view.service.d.ts +3 -0
  31. package/{dist/es2015/calendar → calendar}/services/century-view.service.d.ts +3 -0
  32. package/{dist/es2015/calendar → calendar}/services/decade-view.service.d.ts +3 -0
  33. package/{dist/es2015/calendar → calendar}/services/disabled-dates.service.d.ts +3 -0
  34. package/{dist/es2015/calendar → calendar}/services/dom.service.d.ts +3 -0
  35. package/{dist/es2015/calendar → calendar}/services/month-view.service.d.ts +3 -0
  36. package/{dist/es2015/calendar → calendar}/services/navigation.service.d.ts +3 -0
  37. package/{dist/es2015/calendar → calendar}/services/scroll-sync.service.d.ts +3 -0
  38. package/{dist/es2015/calendar → calendar}/services/selection.service.d.ts +3 -0
  39. package/{dist/es2015/calendar → calendar}/services/weeknames.service.d.ts +3 -0
  40. package/{dist/es2015/calendar → calendar}/services/year-view.service.d.ts +3 -0
  41. package/{dist/es2015/calendar → calendar}/templates/cell-template.directive.d.ts +3 -0
  42. package/{dist/es2015/calendar → calendar}/templates/century-cell-template.directive.d.ts +3 -0
  43. package/{dist/es2015/calendar → calendar}/templates/decade-cell-template.directive.d.ts +3 -0
  44. package/{dist/es2015/calendar → calendar}/templates/header-title-template.directive.d.ts +3 -0
  45. package/{dist/es2015/calendar → calendar}/templates/month-cell-template.directive.d.ts +3 -0
  46. package/{dist/es2015/calendar → calendar}/templates/navigation-item-template.directive.d.ts +3 -0
  47. package/{dist/es2015/calendar → calendar}/templates/weeknumber-cell-template.directive.d.ts +3 -0
  48. package/{dist/es2015/calendar → calendar}/templates/year-cell-template.directive.d.ts +3 -0
  49. package/calendar/templates.module.d.ts +33 -0
  50. package/{dist/es2015/calendar → calendar}/view-list.component.d.ts +9 -5
  51. package/{dist/es2015/calendar → calendar}/view.component.d.ts +5 -1
  52. package/{dist/es2015/common → common}/dom-queries.d.ts +0 -0
  53. package/{dist/es2015/common → common}/models/fillmode.d.ts +5 -5
  54. package/{dist/es2015/common → common}/models/rounded.d.ts +6 -6
  55. package/{dist/es2015/common → common}/models/size.d.ts +5 -5
  56. package/{dist/es2015/common → common}/picker.service.d.ts +0 -0
  57. package/{dist/es2015/common → common}/utils.d.ts +0 -0
  58. package/{dist/es2015/dateinput → dateinput}/arrow.enum.d.ts +0 -0
  59. package/{dist/es2015/dateinput → dateinput}/dateinput.component.d.ts +34 -25
  60. package/dateinput/dateinput.module.d.ts +20 -0
  61. package/{dist/es2015/dateinput → dateinput}/localization/dateinput-custom-messages.component.d.ts +4 -1
  62. package/{dist/es2015/dateinput → dateinput}/localization/dateinput-localized-messages.directive.d.ts +3 -0
  63. package/{dist/es2015/dateinput → dateinput}/localization/messages.d.ts +3 -0
  64. package/{dist/es2015/dateinput → dateinput}/models/format-placeholder.model.d.ts +0 -0
  65. package/{dist/es2015/dateinput → dateinput}/models/format-settings.model.d.ts +0 -0
  66. package/{dist/es2015/dateinput → dateinput}/models/incremental-steps.model.d.ts +0 -0
  67. package/{dist/es2015/dateinputs.module.d.ts → dateinputs.module.d.ts} +10 -0
  68. package/{dist/es2015/datepicker → datepicker}/datepicker.component.d.ts +49 -37
  69. package/datepicker/datepicker.module.d.ts +24 -0
  70. package/{dist/es2015/datepicker → datepicker}/localization/datepicker-custom-messages.component.d.ts +4 -1
  71. package/{dist/es2015/datepicker → datepicker}/localization/datepicker-localized-messages.directive.d.ts +3 -0
  72. package/{dist/es2015/datepicker → datepicker}/localization/messages.d.ts +3 -0
  73. package/{dist/es2015/daterange → daterange}/auto-correct-on.type.d.ts +0 -0
  74. package/{dist/es2015/daterange → daterange}/date-range-end-input.directive.d.ts +3 -0
  75. package/{dist/es2015/daterange → daterange}/date-range-input.d.ts +2 -2
  76. package/{dist/es2015/daterange → daterange}/date-range-popup-template.directive.d.ts +3 -0
  77. package/{dist/es2015/daterange → daterange}/date-range-popup.component.d.ts +9 -4
  78. package/{dist/es2015/daterange → daterange}/date-range-selection.directive.d.ts +8 -3
  79. package/{dist/es2015/daterange → daterange}/date-range-start-input.directive.d.ts +3 -0
  80. package/{dist/es2015/daterange → daterange}/date-range.component.d.ts +5 -1
  81. package/{dist/es2015/daterange → daterange}/date-range.module.d.ts +15 -1
  82. package/{dist/es2015/daterange → daterange}/date-range.service.d.ts +11 -6
  83. package/{dist/es2015/datetimepicker → datetimepicker}/datetimepicker.component.d.ts +51 -36
  84. package/datetimepicker/datetimepicker.module.d.ts +25 -0
  85. package/{dist/es2015/datetimepicker → datetimepicker}/localization/datetimepicker-custom-messages.component.d.ts +4 -1
  86. package/{dist/es2015/datetimepicker → datetimepicker}/localization/localized-messages.directive.d.ts +3 -0
  87. package/{dist/es2015/datetimepicker → datetimepicker}/localization/messages.d.ts +3 -0
  88. package/{dist/es2015/datetimepicker → datetimepicker}/models/active-tab.type.d.ts +0 -0
  89. package/{dist/es2015/defaults.d.ts → defaults.d.ts} +0 -0
  90. package/esm2015/calendar/calendar-common.module.js +45 -0
  91. package/{dist/es2015 → esm2015}/calendar/calendar.component.js +283 -246
  92. package/{dist/es2015 → esm2015}/calendar/calendar.module.js +71 -34
  93. package/{dist/es2015 → esm2015}/calendar/calendars.module.js +23 -14
  94. package/{dist/es2015 → esm2015}/calendar/for.directive.js +17 -25
  95. package/{dist/es2015 → esm2015}/calendar/header.component.js +97 -73
  96. package/{dist/es2015 → esm2015}/calendar/horizontal-view-list.component.js +155 -130
  97. package/esm2015/calendar/localization/calendar-custom-messages.component.js +40 -0
  98. package/esm2015/calendar/localization/calendar-localized-messages.directive.js +36 -0
  99. package/esm2015/calendar/localization/calendar-messages.js +27 -0
  100. package/esm2015/calendar/localization/multiview-calendar-custom-messages.component.js +40 -0
  101. package/esm2015/calendar/localization/multiview-calendar-localized-messages.directive.js +36 -0
  102. package/esm2015/calendar/localization/multiview-calendar-messages.js +27 -0
  103. package/{dist/es → esm2015}/calendar/models/cell-context.interface.js +1 -0
  104. package/{dist/es2015 → esm2015}/calendar/models/keydown.interface.js +1 -0
  105. package/{dist/es → esm2015}/calendar/models/navigation-action.enum.js +0 -0
  106. package/{dist/es2015 → esm2015}/calendar/models/row-length-options.interface.js +1 -0
  107. package/{dist/es/virtualization → esm2015/calendar}/models/scrollable.interface.js +1 -0
  108. package/{dist/es → esm2015}/calendar/models/selection-range-end.type.js +1 -0
  109. package/{dist/es2015 → esm2015}/calendar/models/selection-range.interface.js +0 -0
  110. package/{dist/es → esm2015}/calendar/models/selection.js +1 -0
  111. package/{dist/es → esm2015}/calendar/models/type.js +1 -0
  112. package/{dist/es → esm2015}/calendar/models/view-service.interface.js +1 -0
  113. package/{dist/es → esm2015}/calendar/models/view.enum.js +0 -0
  114. package/{dist/es → esm2015}/calendar/models/view.type.js +1 -0
  115. package/{dist/es2015 → esm2015}/calendar/multiview-calendar.component.js +246 -298
  116. package/{dist/es2015 → esm2015}/calendar/multiview-calendar.module.js +63 -32
  117. package/{dist/es2015 → esm2015}/calendar/navigation.component.js +71 -62
  118. package/{dist/es2015 → esm2015}/calendar/services/bus-view.service.js +9 -11
  119. package/{dist/es2015 → esm2015}/calendar/services/century-view.service.js +8 -11
  120. package/{dist/es2015 → esm2015}/calendar/services/decade-view.service.js +8 -11
  121. package/{dist/es2015 → esm2015}/calendar/services/disabled-dates.service.js +8 -12
  122. package/{dist/es2015 → esm2015}/calendar/services/dom.service.js +10 -26
  123. package/{dist/es2015 → esm2015}/calendar/services/month-view.service.js +9 -10
  124. package/{dist/es2015 → esm2015}/calendar/services/navigation.service.js +9 -9
  125. package/{dist/es2015 → esm2015}/calendar/services/scroll-sync.service.js +10 -13
  126. package/{dist/es2015 → esm2015}/calendar/services/selection.service.js +9 -9
  127. package/{dist/es2015 → esm2015}/calendar/services/weeknames.service.js +9 -9
  128. package/{dist/es2015 → esm2015}/calendar/services/year-view.service.js +9 -13
  129. package/{dist/es2015 → esm2015}/calendar/templates/cell-template.directive.js +12 -11
  130. package/{dist/es2015 → esm2015}/calendar/templates/century-cell-template.directive.js +12 -11
  131. package/{dist/es2015 → esm2015}/calendar/templates/decade-cell-template.directive.js +12 -11
  132. package/{dist/es2015 → esm2015}/calendar/templates/header-title-template.directive.js +12 -11
  133. package/{dist/es2015 → esm2015}/calendar/templates/month-cell-template.directive.js +12 -11
  134. package/{dist/es2015 → esm2015}/calendar/templates/navigation-item-template.directive.js +12 -11
  135. package/{dist/es2015 → esm2015}/calendar/templates/weeknumber-cell-template.directive.js +12 -11
  136. package/{dist/es2015 → esm2015}/calendar/templates/year-cell-template.directive.js +12 -11
  137. package/esm2015/calendar/templates.module.js +73 -0
  138. package/{dist/es2015 → esm2015}/calendar/view-list.component.js +135 -120
  139. package/{dist/es2015 → esm2015}/calendar/view.component.js +105 -98
  140. package/{dist/es2015 → esm2015}/common/dom-queries.js +0 -0
  141. package/{dist/es → esm2015}/common/models/fillmode.js +1 -0
  142. package/{dist/es → esm2015}/common/models/rounded.js +1 -0
  143. package/{dist/es → esm2015}/common/models/size.js +1 -0
  144. package/{dist/es2015 → esm2015}/common/picker.service.js +0 -0
  145. package/{dist/es2015 → esm2015}/common/utils.js +0 -0
  146. package/{dist/es → esm2015}/dateinput/arrow.enum.js +0 -0
  147. package/{dist/es2015 → esm2015}/dateinput/dateinput.component.js +215 -216
  148. package/esm2015/dateinput/dateinput.module.js +41 -0
  149. package/esm2015/dateinput/localization/dateinput-custom-messages.component.js +40 -0
  150. package/esm2015/dateinput/localization/dateinput-localized-messages.directive.js +36 -0
  151. package/esm2015/dateinput/localization/messages.js +25 -0
  152. package/{dist/es → esm2015}/dateinput/models/format-placeholder.model.js +1 -0
  153. package/{dist/es → esm2015}/dateinput/models/format-settings.model.js +1 -0
  154. package/{dist/es → esm2015}/dateinput/models/incremental-steps.model.js +1 -0
  155. package/{dist/es2015 → esm2015}/dateinputs.module.js +28 -10
  156. package/{dist/es2015 → esm2015}/datepicker/datepicker.component.js +320 -317
  157. package/esm2015/datepicker/datepicker.module.js +72 -0
  158. package/esm2015/datepicker/localization/datepicker-custom-messages.component.js +40 -0
  159. package/esm2015/datepicker/localization/datepicker-localized-messages.directive.js +36 -0
  160. package/esm2015/datepicker/localization/messages.js +29 -0
  161. package/{dist/es → esm2015}/daterange/auto-correct-on.type.js +1 -0
  162. package/{dist/es2015 → esm2015}/daterange/date-range-end-input.directive.js +18 -25
  163. package/{dist/es2015 → esm2015}/daterange/date-range-input.js +0 -0
  164. package/esm2015/daterange/date-range-popup-template.directive.js +23 -0
  165. package/{dist/es2015 → esm2015}/daterange/date-range-popup.component.js +71 -89
  166. package/{dist/es2015 → esm2015}/daterange/date-range-selection.directive.js +26 -39
  167. package/{dist/es2015 → esm2015}/daterange/date-range-start-input.directive.js +18 -25
  168. package/esm2015/daterange/date-range.component.js +77 -0
  169. package/{dist/es2015 → esm2015}/daterange/date-range.module.js +27 -12
  170. package/{dist/es2015 → esm2015}/daterange/date-range.service.js +9 -14
  171. package/{dist/es2015 → esm2015}/datetimepicker/datetimepicker.component.js +436 -257
  172. package/esm2015/datetimepicker/datetimepicker.module.js +80 -0
  173. package/esm2015/datetimepicker/localization/datetimepicker-custom-messages.component.js +40 -0
  174. package/esm2015/datetimepicker/localization/localized-messages.directive.js +36 -0
  175. package/esm2015/datetimepicker/localization/messages.js +49 -0
  176. package/{dist/es → esm2015}/datetimepicker/models/active-tab.type.js +1 -0
  177. package/{dist/es2015 → esm2015}/defaults.js +0 -0
  178. package/esm2015/kendo-angular-dateinputs.js +8 -0
  179. package/{dist/es → esm2015}/main.js +24 -0
  180. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  181. package/{dist/es → esm2015}/popup-settings.model.js +1 -0
  182. package/{dist/es2015 → esm2015}/preventable-event.js +1 -0
  183. package/esm2015/timepicker/localization/messages.js +35 -0
  184. package/esm2015/timepicker/localization/timepicker-custom-messages.component.js +40 -0
  185. package/esm2015/timepicker/localization/timepicker-localized-messages.directive.js +36 -0
  186. package/esm2015/timepicker/localization/timeselector-custom-messages.component.js +42 -0
  187. package/esm2015/timepicker/localization/timeselector-localized-messages.directive.js +36 -0
  188. package/{dist/es → esm2015}/timepicker/models/incremental-steps.model.js +1 -0
  189. package/{dist/es → esm2015}/timepicker/models/list-item.interface.js +1 -0
  190. package/{dist/es → esm2015}/timepicker/models/list-service-settings.js +1 -0
  191. package/{dist/es → esm2015}/timepicker/models/list-service.interface.js +1 -0
  192. package/{dist/es2015 → esm2015}/timepicker/models/time-part.default.js +0 -0
  193. package/{dist/es2015 → esm2015}/timepicker/services/dayperiod.service.js +9 -15
  194. package/{dist/es2015 → esm2015}/timepicker/services/dom.service.js +8 -13
  195. package/{dist/es2015 → esm2015}/timepicker/services/hours.service.js +9 -14
  196. package/{dist/es2015 → esm2015}/timepicker/services/milliseconds.service.js +9 -14
  197. package/{dist/es2015 → esm2015}/timepicker/services/minutes.service.js +9 -14
  198. package/{dist/es2015 → esm2015}/timepicker/services/seconds.service.js +9 -14
  199. package/{dist/es2015 → esm2015}/timepicker/timelist.component.js +66 -61
  200. package/{dist/es2015 → esm2015}/timepicker/timepicker.component.js +251 -208
  201. package/{dist/es2015 → esm2015}/timepicker/timepicker.module.js +32 -15
  202. package/{dist/es2015 → esm2015}/timepicker/timeselector.component.js +181 -104
  203. package/{dist/es2015 → esm2015}/timepicker/util.js +8 -20
  204. package/{dist/es2015 → esm2015}/touch-enabled.js +0 -0
  205. package/{dist/es2015 → esm2015}/util.js +13 -6
  206. package/{dist/es2015 → esm2015}/validators/disabled-date.validator.js +0 -0
  207. package/{dist/es2015 → esm2015}/validators/disabled-dates-range.validator.js +0 -2
  208. package/{dist/es2015 → esm2015}/validators/incomplete-date.validator.js +0 -0
  209. package/{dist/es2015 → esm2015}/validators/max.validator.js +0 -0
  210. package/{dist/es2015 → esm2015}/validators/min.validator.js +0 -0
  211. package/{dist/es2015 → esm2015}/validators/time-range.validator.js +0 -0
  212. package/{dist/es2015/calendar → esm2015/virtualization}/models/scrollable.interface.js +1 -0
  213. package/{dist/es2015 → esm2015}/virtualization/services/row-height.service.js +1 -3
  214. package/{dist/es2015 → esm2015}/virtualization/services/scroller.service.js +0 -2
  215. package/{dist/es2015 → esm2015}/virtualization/virtualization.component.js +75 -90
  216. package/esm2015/virtualization/virtualization.module.js +30 -0
  217. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-dateinputs.js} +9763 -9156
  218. package/{dist/es/calendar/models/selection-range.interface.js → kendo-angular-dateinputs.d.ts} +3 -2
  219. package/{dist/es2015/main.d.ts → main.d.ts} +24 -0
  220. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  221. package/package.json +46 -119
  222. package/{dist/es2015/popup-settings.model.d.ts → popup-settings.model.d.ts} +0 -0
  223. package/{dist/es2015/preventable-event.d.ts → preventable-event.d.ts} +2 -0
  224. package/schematics/ngAdd/index.js +5 -2
  225. package/schematics/ngAdd/index.js.map +1 -1
  226. package/{dist/es2015/timepicker → timepicker}/localization/messages.d.ts +3 -0
  227. package/{dist/es2015/timepicker → timepicker}/localization/timepicker-custom-messages.component.d.ts +4 -1
  228. package/{dist/es2015/timepicker → timepicker}/localization/timepicker-localized-messages.directive.d.ts +3 -0
  229. package/{dist/es2015/timepicker → timepicker}/localization/timeselector-custom-messages.component.d.ts +4 -1
  230. package/{dist/es2015/timepicker → timepicker}/localization/timeselector-localized-messages.directive.d.ts +3 -0
  231. package/{dist/es2015/timepicker → timepicker}/models/incremental-steps.model.d.ts +0 -0
  232. package/{dist/es2015/timepicker → timepicker}/models/list-item.interface.d.ts +0 -0
  233. package/{dist/es2015/timepicker → timepicker}/models/list-service-settings.d.ts +0 -0
  234. package/{dist/es2015/timepicker → timepicker}/models/list-service.interface.d.ts +0 -0
  235. package/{dist/es2015/timepicker → timepicker}/models/time-part.default.d.ts +0 -0
  236. package/{dist/es2015/timepicker → timepicker}/services/dayperiod.service.d.ts +3 -0
  237. package/{dist/es2015/timepicker → timepicker}/services/dom.service.d.ts +3 -0
  238. package/{dist/es2015/timepicker → timepicker}/services/hours.service.d.ts +3 -0
  239. package/{dist/es2015/timepicker → timepicker}/services/milliseconds.service.d.ts +3 -0
  240. package/{dist/es2015/timepicker → timepicker}/services/minutes.service.d.ts +3 -0
  241. package/{dist/es2015/timepicker → timepicker}/services/seconds.service.d.ts +3 -0
  242. package/{dist/es2015/timepicker → timepicker}/timelist.component.d.ts +4 -1
  243. package/{dist/es2015/timepicker → timepicker}/timepicker.component.d.ts +45 -31
  244. package/timepicker/timepicker.module.d.ts +27 -0
  245. package/{dist/es2015/timepicker → timepicker}/timeselector.component.d.ts +10 -4
  246. package/{dist/es2015/timepicker → timepicker}/util.d.ts +0 -0
  247. package/{dist/es2015/touch-enabled.d.ts → touch-enabled.d.ts} +0 -0
  248. package/{dist/es2015/util.d.ts → util.d.ts} +12 -0
  249. package/{dist/es2015/validators → validators}/disabled-date.validator.d.ts +0 -0
  250. package/{dist/es2015/validators → validators}/disabled-dates-range.validator.d.ts +0 -0
  251. package/{dist/es2015/validators → validators}/incomplete-date.validator.d.ts +0 -0
  252. package/{dist/es2015/validators → validators}/max.validator.d.ts +0 -0
  253. package/{dist/es2015/validators → validators}/min.validator.d.ts +0 -0
  254. package/{dist/es2015/validators → validators}/time-range.validator.d.ts +0 -0
  255. package/{dist/es2015/virtualization → virtualization}/models/scrollable.interface.d.ts +0 -0
  256. package/{dist/es2015/virtualization → virtualization}/services/row-height.service.d.ts +0 -0
  257. package/{dist/es2015/virtualization → virtualization}/services/scroller.service.d.ts +0 -0
  258. package/{dist/es2015/virtualization → virtualization}/virtualization.component.d.ts +8 -5
  259. package/{dist/es2015/virtualization → virtualization}/virtualization.module.d.ts +6 -0
  260. package/dist/cdn/js/kendo-angular-dateinputs.js +0 -20
  261. package/dist/cdn/main.js +0 -5
  262. package/dist/es/calendar/calendar-common.module.js +0 -41
  263. package/dist/es/calendar/calendar.component.js +0 -1189
  264. package/dist/es/calendar/calendar.module.js +0 -108
  265. package/dist/es/calendar/calendars.module.js +0 -60
  266. package/dist/es/calendar/for.directive.js +0 -135
  267. package/dist/es/calendar/header.component.js +0 -170
  268. package/dist/es/calendar/horizontal-view-list.component.js +0 -363
  269. package/dist/es/calendar/localization/calendar-custom-messages.component.js +0 -43
  270. package/dist/es/calendar/localization/calendar-localized-messages.directive.js +0 -35
  271. package/dist/es/calendar/localization/calendar-messages.js +0 -30
  272. package/dist/es/calendar/localization/multiview-calendar-custom-messages.component.js +0 -43
  273. package/dist/es/calendar/localization/multiview-calendar-localized-messages.directive.js +0 -35
  274. package/dist/es/calendar/localization/multiview-calendar-messages.js +0 -30
  275. package/dist/es/calendar/models/keydown.interface.js +0 -4
  276. package/dist/es/calendar/models/row-length-options.interface.js +0 -4
  277. package/dist/es/calendar/models/scrollable.interface.js +0 -4
  278. package/dist/es/calendar/multiview-calendar.component.js +0 -1122
  279. package/dist/es/calendar/multiview-calendar.module.js +0 -97
  280. package/dist/es/calendar/navigation.component.js +0 -173
  281. package/dist/es/calendar/services/bus-view.service.js +0 -83
  282. package/dist/es/calendar/services/century-view.service.js +0 -180
  283. package/dist/es/calendar/services/decade-view.service.js +0 -179
  284. package/dist/es/calendar/services/disabled-dates.service.js +0 -70
  285. package/dist/es/calendar/services/dom.service.js +0 -195
  286. package/dist/es/calendar/services/month-view.service.js +0 -203
  287. package/dist/es/calendar/services/navigation.service.js +0 -53
  288. package/dist/es/calendar/services/scroll-sync.service.js +0 -85
  289. package/dist/es/calendar/services/selection.service.js +0 -55
  290. package/dist/es/calendar/services/weeknames.service.js +0 -27
  291. package/dist/es/calendar/services/year-view.service.js +0 -204
  292. package/dist/es/calendar/templates/cell-template.directive.js +0 -46
  293. package/dist/es/calendar/templates/century-cell-template.directive.js +0 -45
  294. package/dist/es/calendar/templates/decade-cell-template.directive.js +0 -45
  295. package/dist/es/calendar/templates/header-title-template.directive.js +0 -44
  296. package/dist/es/calendar/templates/month-cell-template.directive.js +0 -43
  297. package/dist/es/calendar/templates/navigation-item-template.directive.js +0 -44
  298. package/dist/es/calendar/templates/weeknumber-cell-template.directive.js +0 -43
  299. package/dist/es/calendar/templates/year-cell-template.directive.js +0 -46
  300. package/dist/es/calendar/templates.module.js +0 -59
  301. package/dist/es/calendar/view-list.component.js +0 -301
  302. package/dist/es/calendar/view.component.js +0 -318
  303. package/dist/es/common/dom-queries.js +0 -24
  304. package/dist/es/common/picker.service.js +0 -18
  305. package/dist/es/common/utils.js +0 -35
  306. package/dist/es/dateinput/dateinput.component.js +0 -1617
  307. package/dist/es/dateinput/dateinput.module.js +0 -37
  308. package/dist/es/dateinput/localization/dateinput-custom-messages.component.js +0 -43
  309. package/dist/es/dateinput/localization/dateinput-localized-messages.directive.js +0 -35
  310. package/dist/es/dateinput/localization/messages.js +0 -26
  311. package/dist/es/dateinputs.module.js +0 -63
  312. package/dist/es/datepicker/datepicker.component.js +0 -1256
  313. package/dist/es/datepicker/datepicker.module.js +0 -55
  314. package/dist/es/datepicker/localization/datepicker-custom-messages.component.js +0 -43
  315. package/dist/es/datepicker/localization/datepicker-localized-messages.directive.js +0 -35
  316. package/dist/es/datepicker/localization/messages.js +0 -34
  317. package/dist/es/daterange/date-range-end-input.directive.js +0 -97
  318. package/dist/es/daterange/date-range-input.js +0 -131
  319. package/dist/es/daterange/date-range-popup-template.directive.js +0 -23
  320. package/dist/es/daterange/date-range-popup.component.js +0 -403
  321. package/dist/es/daterange/date-range-selection.directive.js +0 -230
  322. package/dist/es/daterange/date-range-start-input.directive.js +0 -97
  323. package/dist/es/daterange/date-range.component.js +0 -71
  324. package/dist/es/daterange/date-range.module.js +0 -83
  325. package/dist/es/daterange/date-range.service.js +0 -208
  326. package/dist/es/datetimepicker/datetimepicker.component.js +0 -1309
  327. package/dist/es/datetimepicker/datetimepicker.module.js +0 -57
  328. package/dist/es/datetimepicker/localization/datetimepicker-custom-messages.component.js +0 -43
  329. package/dist/es/datetimepicker/localization/localized-messages.directive.js +0 -35
  330. package/dist/es/datetimepicker/localization/messages.js +0 -74
  331. package/dist/es/defaults.js +0 -24
  332. package/dist/es/index.js +0 -63
  333. package/dist/es/package-metadata.js +0 -15
  334. package/dist/es/preventable-event.js +0 -29
  335. package/dist/es/timepicker/localization/messages.js +0 -46
  336. package/dist/es/timepicker/localization/timepicker-custom-messages.component.js +0 -43
  337. package/dist/es/timepicker/localization/timepicker-localized-messages.directive.js +0 -35
  338. package/dist/es/timepicker/localization/timeselector-custom-messages.component.js +0 -45
  339. package/dist/es/timepicker/localization/timeselector-localized-messages.directive.js +0 -35
  340. package/dist/es/timepicker/models/time-part.default.js +0 -14
  341. package/dist/es/timepicker/services/dayperiod.service.js +0 -130
  342. package/dist/es/timepicker/services/dom.service.js +0 -64
  343. package/dist/es/timepicker/services/hours.service.js +0 -129
  344. package/dist/es/timepicker/services/milliseconds.service.js +0 -130
  345. package/dist/es/timepicker/services/minutes.service.js +0 -127
  346. package/dist/es/timepicker/services/seconds.service.js +0 -127
  347. package/dist/es/timepicker/timelist.component.js +0 -297
  348. package/dist/es/timepicker/timepicker.component.js +0 -1044
  349. package/dist/es/timepicker/timepicker.module.js +0 -75
  350. package/dist/es/timepicker/timeselector.component.js +0 -486
  351. package/dist/es/timepicker/util.js +0 -82
  352. package/dist/es/touch-enabled.js +0 -9
  353. package/dist/es/util.js +0 -395
  354. package/dist/es/validators/disabled-date.validator.js +0 -18
  355. package/dist/es/validators/disabled-dates-range.validator.js +0 -28
  356. package/dist/es/validators/incomplete-date.validator.js +0 -18
  357. package/dist/es/validators/max.validator.js +0 -21
  358. package/dist/es/validators/min.validator.js +0 -21
  359. package/dist/es/validators/time-range.validator.js +0 -23
  360. package/dist/es/virtualization/services/row-height.service.js +0 -72
  361. package/dist/es/virtualization/services/scroller.service.js +0 -111
  362. package/dist/es/virtualization/virtualization.component.js +0 -343
  363. package/dist/es/virtualization/virtualization.module.js +0 -30
  364. package/dist/es2015/calendar/calendar-common.module.d.ts +0 -15
  365. package/dist/es2015/calendar/calendar-common.module.js +0 -38
  366. package/dist/es2015/calendar/localization/calendar-custom-messages.component.js +0 -35
  367. package/dist/es2015/calendar/localization/calendar-localized-messages.directive.js +0 -31
  368. package/dist/es2015/calendar/localization/calendar-messages.js +0 -24
  369. package/dist/es2015/calendar/localization/multiview-calendar-custom-messages.component.js +0 -35
  370. package/dist/es2015/calendar/localization/multiview-calendar-localized-messages.directive.js +0 -31
  371. package/dist/es2015/calendar/localization/multiview-calendar-messages.js +0 -24
  372. package/dist/es2015/calendar/models/cell-context.interface.js +0 -4
  373. package/dist/es2015/calendar/models/navigation-action.enum.js +0 -20
  374. package/dist/es2015/calendar/models/selection-range-end.type.js +0 -4
  375. package/dist/es2015/calendar/models/selection.js +0 -4
  376. package/dist/es2015/calendar/models/type.js +0 -4
  377. package/dist/es2015/calendar/models/view-service.interface.js +0 -4
  378. package/dist/es2015/calendar/models/view.enum.js +0 -16
  379. package/dist/es2015/calendar/models/view.type.js +0 -4
  380. package/dist/es2015/calendar/templates.module.d.ts +0 -21
  381. package/dist/es2015/calendar/templates.module.js +0 -56
  382. package/dist/es2015/common/models/fillmode.js +0 -4
  383. package/dist/es2015/common/models/rounded.js +0 -4
  384. package/dist/es2015/common/models/size.js +0 -4
  385. package/dist/es2015/dateinput/arrow.enum.js +0 -13
  386. package/dist/es2015/dateinput/dateinput.module.d.ts +0 -10
  387. package/dist/es2015/dateinput/dateinput.module.js +0 -34
  388. package/dist/es2015/dateinput/localization/dateinput-custom-messages.component.js +0 -35
  389. package/dist/es2015/dateinput/localization/dateinput-localized-messages.directive.js +0 -31
  390. package/dist/es2015/dateinput/localization/messages.js +0 -20
  391. package/dist/es2015/dateinput/models/format-placeholder.model.js +0 -4
  392. package/dist/es2015/dateinput/models/format-settings.model.js +0 -4
  393. package/dist/es2015/dateinput/models/incremental-steps.model.js +0 -4
  394. package/dist/es2015/datepicker/datepicker.module.d.ts +0 -10
  395. package/dist/es2015/datepicker/datepicker.module.js +0 -52
  396. package/dist/es2015/datepicker/localization/datepicker-custom-messages.component.js +0 -35
  397. package/dist/es2015/datepicker/localization/datepicker-localized-messages.directive.js +0 -31
  398. package/dist/es2015/datepicker/localization/messages.js +0 -28
  399. package/dist/es2015/daterange/auto-correct-on.type.js +0 -4
  400. package/dist/es2015/daterange/date-range-popup-template.directive.js +0 -22
  401. package/dist/es2015/daterange/date-range.component.js +0 -68
  402. package/dist/es2015/datetimepicker/datetimepicker.module.d.ts +0 -10
  403. package/dist/es2015/datetimepicker/datetimepicker.module.js +0 -57
  404. package/dist/es2015/datetimepicker/localization/datetimepicker-custom-messages.component.js +0 -35
  405. package/dist/es2015/datetimepicker/localization/localized-messages.directive.js +0 -31
  406. package/dist/es2015/datetimepicker/localization/messages.js +0 -68
  407. package/dist/es2015/datetimepicker/models/active-tab.type.js +0 -4
  408. package/dist/es2015/index.d.ts +0 -63
  409. package/dist/es2015/index.js +0 -63
  410. package/dist/es2015/index.metadata.json +0 -1
  411. package/dist/es2015/main.js +0 -35
  412. package/dist/es2015/popup-settings.model.js +0 -4
  413. package/dist/es2015/timepicker/localization/messages.js +0 -40
  414. package/dist/es2015/timepicker/localization/timepicker-custom-messages.component.js +0 -35
  415. package/dist/es2015/timepicker/localization/timepicker-localized-messages.directive.js +0 -31
  416. package/dist/es2015/timepicker/localization/timeselector-custom-messages.component.js +0 -37
  417. package/dist/es2015/timepicker/localization/timeselector-localized-messages.directive.js +0 -31
  418. package/dist/es2015/timepicker/models/incremental-steps.model.js +0 -4
  419. package/dist/es2015/timepicker/models/list-item.interface.js +0 -4
  420. package/dist/es2015/timepicker/models/list-service-settings.js +0 -4
  421. package/dist/es2015/timepicker/models/list-service.interface.js +0 -4
  422. package/dist/es2015/timepicker/timepicker.module.d.ts +0 -10
  423. package/dist/es2015/virtualization/models/scrollable.interface.js +0 -4
  424. package/dist/es2015/virtualization/virtualization.module.js +0 -27
  425. package/dist/fesm5/index.js +0 -15216
  426. package/dist/npm/calendar/calendar-common.module.js +0 -43
  427. package/dist/npm/calendar/calendar.component.js +0 -1191
  428. package/dist/npm/calendar/calendar.module.js +0 -110
  429. package/dist/npm/calendar/calendars.module.js +0 -62
  430. package/dist/npm/calendar/for.directive.js +0 -138
  431. package/dist/npm/calendar/header.component.js +0 -172
  432. package/dist/npm/calendar/horizontal-view-list.component.js +0 -365
  433. package/dist/npm/calendar/localization/calendar-custom-messages.component.js +0 -45
  434. package/dist/npm/calendar/localization/calendar-localized-messages.directive.js +0 -37
  435. package/dist/npm/calendar/localization/calendar-messages.js +0 -32
  436. package/dist/npm/calendar/localization/multiview-calendar-custom-messages.component.js +0 -45
  437. package/dist/npm/calendar/localization/multiview-calendar-localized-messages.directive.js +0 -37
  438. package/dist/npm/calendar/localization/multiview-calendar-messages.js +0 -32
  439. package/dist/npm/calendar/models/cell-context.interface.js +0 -6
  440. package/dist/npm/calendar/models/keydown.interface.js +0 -6
  441. package/dist/npm/calendar/models/navigation-action.enum.js +0 -22
  442. package/dist/npm/calendar/models/row-length-options.interface.js +0 -6
  443. package/dist/npm/calendar/models/scrollable.interface.js +0 -6
  444. package/dist/npm/calendar/models/selection-range-end.type.js +0 -6
  445. package/dist/npm/calendar/models/selection-range.interface.js +0 -10
  446. package/dist/npm/calendar/models/selection.js +0 -6
  447. package/dist/npm/calendar/models/type.js +0 -6
  448. package/dist/npm/calendar/models/view-service.interface.js +0 -6
  449. package/dist/npm/calendar/models/view.enum.js +0 -18
  450. package/dist/npm/calendar/models/view.type.js +0 -6
  451. package/dist/npm/calendar/multiview-calendar.component.js +0 -1124
  452. package/dist/npm/calendar/multiview-calendar.module.js +0 -99
  453. package/dist/npm/calendar/navigation.component.js +0 -175
  454. package/dist/npm/calendar/services/bus-view.service.js +0 -85
  455. package/dist/npm/calendar/services/century-view.service.js +0 -182
  456. package/dist/npm/calendar/services/decade-view.service.js +0 -181
  457. package/dist/npm/calendar/services/disabled-dates.service.js +0 -72
  458. package/dist/npm/calendar/services/dom.service.js +0 -212
  459. package/dist/npm/calendar/services/month-view.service.js +0 -205
  460. package/dist/npm/calendar/services/navigation.service.js +0 -55
  461. package/dist/npm/calendar/services/scroll-sync.service.js +0 -88
  462. package/dist/npm/calendar/services/selection.service.js +0 -57
  463. package/dist/npm/calendar/services/weeknames.service.js +0 -29
  464. package/dist/npm/calendar/services/year-view.service.js +0 -207
  465. package/dist/npm/calendar/templates/cell-template.directive.js +0 -48
  466. package/dist/npm/calendar/templates/century-cell-template.directive.js +0 -47
  467. package/dist/npm/calendar/templates/decade-cell-template.directive.js +0 -47
  468. package/dist/npm/calendar/templates/header-title-template.directive.js +0 -46
  469. package/dist/npm/calendar/templates/month-cell-template.directive.js +0 -45
  470. package/dist/npm/calendar/templates/navigation-item-template.directive.js +0 -46
  471. package/dist/npm/calendar/templates/weeknumber-cell-template.directive.js +0 -45
  472. package/dist/npm/calendar/templates/year-cell-template.directive.js +0 -48
  473. package/dist/npm/calendar/templates.module.js +0 -61
  474. package/dist/npm/calendar/view-list.component.js +0 -303
  475. package/dist/npm/calendar/view.component.js +0 -320
  476. package/dist/npm/common/dom-queries.js +0 -26
  477. package/dist/npm/common/models/fillmode.js +0 -6
  478. package/dist/npm/common/models/rounded.js +0 -6
  479. package/dist/npm/common/models/size.js +0 -6
  480. package/dist/npm/common/picker.service.js +0 -20
  481. package/dist/npm/common/utils.js +0 -37
  482. package/dist/npm/dateinput/arrow.enum.js +0 -15
  483. package/dist/npm/dateinput/dateinput.component.js +0 -1620
  484. package/dist/npm/dateinput/dateinput.module.js +0 -39
  485. package/dist/npm/dateinput/localization/dateinput-custom-messages.component.js +0 -45
  486. package/dist/npm/dateinput/localization/dateinput-localized-messages.directive.js +0 -37
  487. package/dist/npm/dateinput/localization/messages.js +0 -28
  488. package/dist/npm/dateinput/models/format-placeholder.model.js +0 -6
  489. package/dist/npm/dateinput/models/format-settings.model.js +0 -6
  490. package/dist/npm/dateinput/models/incremental-steps.model.js +0 -6
  491. package/dist/npm/dateinputs.module.js +0 -65
  492. package/dist/npm/datepicker/datepicker.component.js +0 -1258
  493. package/dist/npm/datepicker/datepicker.module.js +0 -57
  494. package/dist/npm/datepicker/localization/datepicker-custom-messages.component.js +0 -45
  495. package/dist/npm/datepicker/localization/datepicker-localized-messages.directive.js +0 -37
  496. package/dist/npm/datepicker/localization/messages.js +0 -36
  497. package/dist/npm/daterange/auto-correct-on.type.js +0 -6
  498. package/dist/npm/daterange/date-range-end-input.directive.js +0 -99
  499. package/dist/npm/daterange/date-range-input.js +0 -133
  500. package/dist/npm/daterange/date-range-popup-template.directive.js +0 -25
  501. package/dist/npm/daterange/date-range-popup.component.js +0 -405
  502. package/dist/npm/daterange/date-range-selection.directive.js +0 -232
  503. package/dist/npm/daterange/date-range-start-input.directive.js +0 -99
  504. package/dist/npm/daterange/date-range.component.js +0 -73
  505. package/dist/npm/daterange/date-range.module.js +0 -85
  506. package/dist/npm/daterange/date-range.service.js +0 -211
  507. package/dist/npm/datetimepicker/datetimepicker.component.js +0 -1311
  508. package/dist/npm/datetimepicker/datetimepicker.module.js +0 -59
  509. package/dist/npm/datetimepicker/localization/datetimepicker-custom-messages.component.js +0 -45
  510. package/dist/npm/datetimepicker/localization/localized-messages.directive.js +0 -37
  511. package/dist/npm/datetimepicker/localization/messages.js +0 -76
  512. package/dist/npm/datetimepicker/models/active-tab.type.js +0 -6
  513. package/dist/npm/defaults.js +0 -26
  514. package/dist/npm/index.js +0 -127
  515. package/dist/npm/main.js +0 -68
  516. package/dist/npm/package-metadata.js +0 -17
  517. package/dist/npm/popup-settings.model.js +0 -6
  518. package/dist/npm/preventable-event.js +0 -31
  519. package/dist/npm/timepicker/localization/messages.js +0 -48
  520. package/dist/npm/timepicker/localization/timepicker-custom-messages.component.js +0 -45
  521. package/dist/npm/timepicker/localization/timepicker-localized-messages.directive.js +0 -37
  522. package/dist/npm/timepicker/localization/timeselector-custom-messages.component.js +0 -47
  523. package/dist/npm/timepicker/localization/timeselector-localized-messages.directive.js +0 -37
  524. package/dist/npm/timepicker/models/incremental-steps.model.js +0 -6
  525. package/dist/npm/timepicker/models/list-item.interface.js +0 -6
  526. package/dist/npm/timepicker/models/list-service-settings.js +0 -6
  527. package/dist/npm/timepicker/models/list-service.interface.js +0 -6
  528. package/dist/npm/timepicker/models/time-part.default.js +0 -16
  529. package/dist/npm/timepicker/services/dayperiod.service.js +0 -136
  530. package/dist/npm/timepicker/services/dom.service.js +0 -70
  531. package/dist/npm/timepicker/services/hours.service.js +0 -134
  532. package/dist/npm/timepicker/services/milliseconds.service.js +0 -135
  533. package/dist/npm/timepicker/services/minutes.service.js +0 -132
  534. package/dist/npm/timepicker/services/seconds.service.js +0 -132
  535. package/dist/npm/timepicker/timelist.component.js +0 -299
  536. package/dist/npm/timepicker/timepicker.component.js +0 -1046
  537. package/dist/npm/timepicker/timepicker.module.js +0 -77
  538. package/dist/npm/timepicker/timeselector.component.js +0 -488
  539. package/dist/npm/timepicker/util.js +0 -101
  540. package/dist/npm/touch-enabled.js +0 -11
  541. package/dist/npm/util.js +0 -399
  542. package/dist/npm/validators/disabled-date.validator.js +0 -20
  543. package/dist/npm/validators/disabled-dates-range.validator.js +0 -30
  544. package/dist/npm/validators/incomplete-date.validator.js +0 -20
  545. package/dist/npm/validators/max.validator.js +0 -23
  546. package/dist/npm/validators/min.validator.js +0 -23
  547. package/dist/npm/validators/time-range.validator.js +0 -25
  548. package/dist/npm/virtualization/models/scrollable.interface.js +0 -6
  549. package/dist/npm/virtualization/services/row-height.service.js +0 -74
  550. package/dist/npm/virtualization/services/scroller.service.js +0 -113
  551. package/dist/npm/virtualization/virtualization.component.js +0 -346
  552. package/dist/npm/virtualization/virtualization.module.js +0 -32
  553. package/dist/systemjs/kendo-angular-dateinputs.js +0 -5
@@ -1,1191 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- /* tslint:disable:no-forward-ref */
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_date_math_1 = require("@progress/kendo-date-math");
13
- var kendo_angular_common_1 = require("@progress/kendo-angular-common");
14
- var kendo_licensing_1 = require("@progress/kendo-licensing");
15
- var package_metadata_1 = require("../package-metadata");
16
- var multiview_calendar_component_1 = require("./multiview-calendar.component");
17
- var navigation_component_1 = require("./navigation.component");
18
- var view_list_component_1 = require("./view-list.component");
19
- var dom_service_1 = require("./services/dom.service");
20
- var bus_view_service_1 = require("./services/bus-view.service");
21
- var navigation_service_1 = require("./services/navigation.service");
22
- var disabled_dates_service_1 = require("./services/disabled-dates.service");
23
- var selection_service_1 = require("./services/selection.service");
24
- var scroll_sync_service_1 = require("./services/scroll-sync.service");
25
- var cell_template_directive_1 = require("./templates/cell-template.directive");
26
- var month_cell_template_directive_1 = require("./templates/month-cell-template.directive");
27
- var year_cell_template_directive_1 = require("./templates/year-cell-template.directive");
28
- var decade_cell_template_directive_1 = require("./templates/decade-cell-template.directive");
29
- var century_cell_template_directive_1 = require("./templates/century-cell-template.directive");
30
- var weeknumber_cell_template_directive_1 = require("./templates/weeknumber-cell-template.directive");
31
- var header_title_template_directive_1 = require("./templates/header-title-template.directive");
32
- var navigation_item_template_directive_1 = require("./templates/navigation-item-template.directive");
33
- var picker_service_1 = require("../common/picker.service");
34
- var view_enum_1 = require("./models/view.enum");
35
- var min_validator_1 = require("../validators/min.validator");
36
- var max_validator_1 = require("../validators/max.validator");
37
- var defaults_1 = require("../defaults");
38
- var util_1 = require("../util");
39
- var dom_queries_1 = require("../common/dom-queries");
40
- var utils_1 = require("../common/utils");
41
- var rxjs_1 = require("rxjs");
42
- var BOTTOM_VIEW_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-bottomview';
43
- var TOP_VIEW_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-topview';
44
- var MIN_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-min';
45
- var MAX_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/api/CalendarComponent/#toc-max';
46
- var VALUE_DOC_LINK = 'http://www.telerik.com/kendo-angular-ui/components/dateinputs/calendar/#toc-using-with-json';
47
- var virtualizationProp = function (x) { return x ? x.virtualization : null; };
48
- var ɵ0 = virtualizationProp;
49
- exports.ɵ0 = ɵ0;
50
- /**
51
- * @hidden
52
- */
53
- exports.CALENDAR_VALUE_ACCESSOR = {
54
- multi: true,
55
- provide: forms_1.NG_VALUE_ACCESSOR,
56
- useExisting: core_1.forwardRef(function () { return CalendarComponent; }) //tslint:disable-line:no-use-before-declare
57
- };
58
- /**
59
- * @hidden
60
- */
61
- exports.CALENDAR_RANGE_VALIDATORS = {
62
- multi: true,
63
- provide: forms_1.NG_VALIDATORS,
64
- useExisting: core_1.forwardRef(function () { return CalendarComponent; }) //tslint:disable-line:no-use-before-declare
65
- };
66
- /**
67
- * @hidden
68
- */
69
- exports.KENDO_INPUT_PROVIDER = {
70
- provide: kendo_angular_common_1.KendoInput,
71
- useExisting: core_1.forwardRef(function () { return CalendarComponent; }) //tslint:disable-line:no-use-before-declare
72
- };
73
- /**
74
- * Represents the [Kendo UI Calendar component for Angular]({% slug overview_calendar %}#toc-basic-usage).
75
- *
76
- * @example
77
- * ```ts
78
- * _@Component({
79
- * selector: 'my-app',
80
- * template: `
81
- * <kendo-calendar></kendo-calendar>
82
- * `
83
- * })
84
- * export class AppComponent { }
85
- * ```
86
- */
87
- var CalendarComponent = /** @class */ (function () {
88
- function CalendarComponent(bus, dom, element, navigator, renderer, cdr, ngZone, injector, scrollSyncService, disabledDatesService, localization, selectionService, pickerService) {
89
- this.bus = bus;
90
- this.dom = dom;
91
- this.element = element;
92
- this.navigator = navigator;
93
- this.renderer = renderer;
94
- this.cdr = cdr;
95
- this.ngZone = ngZone;
96
- this.injector = injector;
97
- this.scrollSyncService = scrollSyncService;
98
- this.disabledDatesService = disabledDatesService;
99
- this.localization = localization;
100
- this.selectionService = selectionService;
101
- this.pickerService = pickerService;
102
- /**
103
- * @hidden
104
- */
105
- this.id = kendo_angular_common_1.guid();
106
- /**
107
- * Determines whether the built-in min or max validators are enforced when validating a form.
108
- */
109
- this.rangeValidation = false;
110
- /**
111
- * Sets the Calendar selection mode
112
- * ([see example]({% slug multiple_selection_calendar %})).
113
- *
114
- * The available values are:
115
- * * `single` (default)
116
- * * `multiple`
117
- */
118
- this.selection = 'single';
119
- /**
120
- * Sets or gets the `disabled` property of the Calendar and
121
- * determines whether the component is active
122
- * ([see example]({% slug disabled_calendar %})).
123
- */
124
- this.disabled = false;
125
- /**
126
- * Sets or gets the `tabindex` property of the Calendar. Based on the
127
- * [HTML `tabindex`](https://developer.mozilla.org/en-US/docs/Web/HTML/Global_attributes/tabindex) behavior,
128
- * it determines whether the component is focusable.
129
- */
130
- this.tabindex = 0;
131
- /**
132
- * Sets or gets the `navigation` property of the Calendar
133
- * and determines whether the navigation side-bar will be displayed
134
- * ([see example]({% slug sidebar_calendar %})).
135
- * Applies to the [`infinite`]({% slug api_dateinputs_calendarcomponent %}#toc-type) Calendar only.
136
- */
137
- this.navigation = true;
138
- /**
139
- * Defines the active view that the Calendar initially renders
140
- * ([see example]({% slug activeview_calendar %})).
141
- * By default, the active view is `month`.
142
- *
143
- * > You have to set `activeView` within the `topView`-`bottomView` range.
144
- */
145
- this.activeView = view_enum_1.CalendarViewEnum[view_enum_1.CalendarViewEnum.month];
146
- /**
147
- * Defines the bottommost view to which the user can navigate
148
- * ([see example]({% slug dates_calendar %}#toc-partial-dates)).
149
- */
150
- this.bottomView = view_enum_1.CalendarViewEnum[view_enum_1.CalendarViewEnum.month];
151
- /**
152
- * Defines the topmost view to which the user can navigate
153
- * ([see example]({% slug sidebar_calendar %}#toc-partial-dates)).
154
- */
155
- this.topView = view_enum_1.CalendarViewEnum[view_enum_1.CalendarViewEnum.century];
156
- /**
157
- * Determines whether to enable animation when navigating to previous/next view.
158
- * Applies to the [`classic`]({% slug api_dateinputs_calendarcomponent %}#toc-type) Calendar only.
159
- *
160
- * > 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.
161
- *
162
- * @default false
163
- */
164
- this.animateNavigation = false;
165
- /**
166
- * Determines whether to display a week number column in the `month` view
167
- * ([see example]({% slug weeknumcolumn_calendar %})).
168
- */
169
- this.weekNumber = false;
170
- /**
171
- * Fires when the active view is changed
172
- * ([more information and example]({% slug overview_calendar %}#toc-events)).
173
- */
174
- this.activeViewChange = new core_1.EventEmitter();
175
- /**
176
- * Fires when navigating in the currently active view
177
- * ([more information and example]({% slug events_calendar %})).
178
- */
179
- this.navigate = new core_1.EventEmitter();
180
- /**
181
- * Fires when the active view date is changed
182
- * ([more information and example]({% slug overview_calendar %}#toc-events)).
183
- * Applies to the [`infinite`]({% slug api_dateinputs_calendarcomponent %}#toc-type) Calendar only.
184
- */
185
- this.activeViewDateChange = new core_1.EventEmitter();
186
- /**
187
- * Fires when the value is changed
188
- * ([more information and example]({% slug overview_calendar %}#toc-events)).
189
- */
190
- this.valueChange = new core_1.EventEmitter();
191
- this.isActive = false;
192
- this.cellUID = kendo_angular_common_1.guid();
193
- this.selectedDates = [];
194
- this._min = new Date(defaults_1.MIN_DATE);
195
- this._max = new Date(defaults_1.MAX_DATE);
196
- this._focusedDate = util_1.getToday();
197
- this.onControlChange = util_1.noop;
198
- this.onControlTouched = util_1.noop;
199
- this.onValidatorChange = util_1.noop;
200
- this.minValidateFn = util_1.noop;
201
- this.maxValidateFn = util_1.noop;
202
- this.syncNavigation = true;
203
- this._type = 'infinite';
204
- this.domEvents = [];
205
- this.resolvedPromise = Promise.resolve(null);
206
- this.destroyed = false;
207
- kendo_licensing_1.validatePackage(package_metadata_1.packageMetadata);
208
- this.setClasses(element.nativeElement);
209
- if (this.pickerService) {
210
- this.pickerService.calendar = this;
211
- }
212
- }
213
- Object.defineProperty(CalendarComponent.prototype, "focusedDate", {
214
- get: function () {
215
- return this._focusedDate;
216
- },
217
- /**
218
- * Sets or gets the `focusedDate` property of the Calendar and
219
- * defines the focused date of the component
220
- * ([see example]({% slug dates_calendar %}#toc-focused-dates)).
221
- *
222
- * > If the Calendar is out of the min or max range, it normalizes the defined `focusedDate`.
223
- */
224
- set: function (focusedDate) {
225
- if (this.activeViewDate && !kendo_date_math_1.isEqual(this._focusedDate, focusedDate)) {
226
- var service = this.bus.service(this.activeViewEnum);
227
- var lastDayInPeriod = service.lastDayOfPeriod(this.activeViewDate);
228
- var isFocusedDateInRange = service.isInRange(focusedDate, this.activeViewDate, lastDayInPeriod);
229
- if (!isFocusedDateInRange) {
230
- this.emitNavigate(focusedDate);
231
- }
232
- }
233
- this._focusedDate = focusedDate || util_1.getToday();
234
- this.setAriaActivedescendant();
235
- },
236
- enumerable: true,
237
- configurable: true
238
- });
239
- Object.defineProperty(CalendarComponent.prototype, "min", {
240
- get: function () {
241
- return this._min;
242
- },
243
- /**
244
- * Sets or gets the `min` property of the Calendar and
245
- * defines the minimum allowed date value
246
- * ([see example]({% slug dateranges_calendar %})).
247
- * By default, the `min` value is `1900-1-1`.
248
- */
249
- set: function (min) {
250
- this._min = min || new Date(defaults_1.MIN_DATE);
251
- },
252
- enumerable: true,
253
- configurable: true
254
- });
255
- Object.defineProperty(CalendarComponent.prototype, "max", {
256
- get: function () {
257
- return this._max;
258
- },
259
- /**
260
- * Sets or gets the `max` property of the Calendar and
261
- * defines the maximum allowed date value
262
- * ([see example]({% slug dateranges_calendar %})).
263
- * By default, the `max` value is `2099-12-31`.
264
- */
265
- set: function (max) {
266
- this._max = max || new Date(defaults_1.MAX_DATE);
267
- },
268
- enumerable: true,
269
- configurable: true
270
- });
271
- Object.defineProperty(CalendarComponent.prototype, "value", {
272
- /**
273
- * Sets or gets the `value` property of the Calendar and defines the selected value of the component.
274
- *
275
- * > The `value` has to be a valid
276
- * [JavaScript `Date`](https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/Date)
277
- * instance when in `single` selection mode or an array of valid JavaScript Date instances when in `multiple` selection mode.
278
- */
279
- get: function () {
280
- return this._value;
281
- },
282
- set: function (candidate) {
283
- this.verifyValue(candidate);
284
- this._value = Array.isArray(candidate) ?
285
- candidate.filter(function (date) { return utils_1.isPresent(date); }).map(function (element) { return kendo_date_math_1.cloneDate(element); }) :
286
- kendo_date_math_1.cloneDate(candidate);
287
- var selection = [].concat(candidate).filter(function (date) { return utils_1.isPresent(date); }).map(function (date) { return kendo_date_math_1.cloneDate(date); });
288
- if (!util_1.areDatesEqual(selection, this.selectedDates)) {
289
- var lastSelected = util_1.last(selection);
290
- this.rangePivot = kendo_date_math_1.cloneDate(lastSelected);
291
- this.focusedDate = kendo_date_math_1.cloneDate(lastSelected) || this.focusedDate;
292
- this.selectedDates = selection;
293
- }
294
- },
295
- enumerable: true,
296
- configurable: true
297
- });
298
- Object.defineProperty(CalendarComponent.prototype, "tabIndex", {
299
- get: function () {
300
- return this.tabindex;
301
- },
302
- /**
303
- * @hidden
304
- */
305
- set: function (tabIndex) {
306
- this.tabindex = tabIndex;
307
- },
308
- enumerable: true,
309
- configurable: true
310
- });
311
- Object.defineProperty(CalendarComponent.prototype, "disabledDates", {
312
- get: function () {
313
- return this._disabledDates;
314
- },
315
- /**
316
- * Sets the dates of the Calendar that will be disabled
317
- * ([see example]({% slug disabled_dates_calendar %})).
318
- */
319
- set: function (value) {
320
- this.disabledDatesService.initialize(value);
321
- this._disabledDates = value;
322
- },
323
- enumerable: true,
324
- configurable: true
325
- });
326
- Object.defineProperty(CalendarComponent.prototype, "type", {
327
- get: function () {
328
- return this._type;
329
- },
330
- /**
331
- * Specifies the Calendar type.
332
- *
333
- * The possible values are:
334
- * - `infinite` (default)
335
- * - `classic`
336
- *
337
- */
338
- set: function (type) {
339
- this.renderer.removeClass(this.element.nativeElement, "k-calendar-" + this.type);
340
- this.renderer.addClass(this.element.nativeElement, "k-calendar-" + type);
341
- this._type = type;
342
- },
343
- enumerable: true,
344
- configurable: true
345
- });
346
- Object.defineProperty(CalendarComponent.prototype, "cellTemplateRef", {
347
- get: function () {
348
- return this._cellTemplateRef || this.cellTemplate;
349
- },
350
- /**
351
- * @hidden
352
- *
353
- * Defines the template for each cell.
354
- * Takes precedence over nested templates in the KendoCalendar tag.
355
- */
356
- set: function (template) {
357
- this._cellTemplateRef = template;
358
- },
359
- enumerable: true,
360
- configurable: true
361
- });
362
- Object.defineProperty(CalendarComponent.prototype, "monthCellTemplateRef", {
363
- get: function () {
364
- return this._monthCellTemplateRef || this.monthCellTemplate;
365
- },
366
- /**
367
- * @hidden
368
- *
369
- * Defines the template for each month cell.
370
- * Takes precedence over nested templates in the KendoCalendar tag.
371
- */
372
- set: function (template) {
373
- this._monthCellTemplateRef = template;
374
- },
375
- enumerable: true,
376
- configurable: true
377
- });
378
- Object.defineProperty(CalendarComponent.prototype, "yearCellTemplateRef", {
379
- get: function () {
380
- return this._yearCellTemplateRef || this.yearCellTemplate;
381
- },
382
- /**
383
- * @hidden
384
- *
385
- * Defines the template for each year cell.
386
- * Takes precedence over nested templates in the KendoCalendar tag.
387
- */
388
- set: function (template) {
389
- this._yearCellTemplateRef = template;
390
- },
391
- enumerable: true,
392
- configurable: true
393
- });
394
- Object.defineProperty(CalendarComponent.prototype, "decadeCellTemplateRef", {
395
- get: function () {
396
- return this._decadeCellTemplateRef || this.decadeCellTemplate;
397
- },
398
- /**
399
- * @hidden
400
- *
401
- * Defines the template for each decade cell.
402
- * Takes precedence over nested templates in the KendoCalendar tag.
403
- */
404
- set: function (template) {
405
- this._decadeCellTemplateRef = template;
406
- },
407
- enumerable: true,
408
- configurable: true
409
- });
410
- Object.defineProperty(CalendarComponent.prototype, "centuryCellTemplateRef", {
411
- get: function () {
412
- return this._centuryCellTemplateRef || this.centuryCellTemplate;
413
- },
414
- /**
415
- * @hidden
416
- *
417
- * Defines the template for each century cell.
418
- * Takes precedence over nested templates in the KendoCalendar tag.
419
- */
420
- set: function (template) {
421
- this._centuryCellTemplateRef = template;
422
- },
423
- enumerable: true,
424
- configurable: true
425
- });
426
- Object.defineProperty(CalendarComponent.prototype, "weekNumberTemplateRef", {
427
- get: function () {
428
- return this._weekNumberTemplateRef || this.weekNumberTemplate;
429
- },
430
- /**
431
- * @hidden
432
- *
433
- * Defines the template for the week cell.
434
- * Takes precedence over nested templates in the KendoCalendar tag.
435
- */
436
- set: function (template) {
437
- this._weekNumberTemplateRef = template;
438
- },
439
- enumerable: true,
440
- configurable: true
441
- });
442
- Object.defineProperty(CalendarComponent.prototype, "headerTitleTemplateRef", {
443
- get: function () {
444
- return this._headerTitleTemplateRef || this.headerTitleTemplate;
445
- },
446
- /**
447
- * @hidden
448
- *
449
- * Defines the template for the header title.
450
- * Takes precedence over nested templates in the KendoCalendar tag.
451
- */
452
- set: function (template) {
453
- this._headerTitleTemplateRef = template;
454
- },
455
- enumerable: true,
456
- configurable: true
457
- });
458
- Object.defineProperty(CalendarComponent.prototype, "navigationItemTemplateRef", {
459
- get: function () {
460
- return this._navigationItemTemplateRef || this.navigationItemTemplate;
461
- },
462
- /**
463
- * @hidden
464
- *
465
- * Defines the template for the navigation item.
466
- * Takes precedence over nested templates in the KendoCalendar tag.
467
- */
468
- set: function (template) {
469
- this._navigationItemTemplateRef = template;
470
- },
471
- enumerable: true,
472
- configurable: true
473
- });
474
- Object.defineProperty(CalendarComponent.prototype, "activeViewEnum", {
475
- get: function () {
476
- var activeView = view_enum_1.CalendarViewEnum[this.activeView];
477
- return activeView < this.bottomViewEnum ? this.bottomViewEnum : activeView;
478
- },
479
- enumerable: true,
480
- configurable: true
481
- });
482
- Object.defineProperty(CalendarComponent.prototype, "bottomViewEnum", {
483
- get: function () {
484
- return view_enum_1.CalendarViewEnum[this.bottomView];
485
- },
486
- enumerable: true,
487
- configurable: true
488
- });
489
- Object.defineProperty(CalendarComponent.prototype, "topViewEnum", {
490
- get: function () {
491
- return view_enum_1.CalendarViewEnum[this.topView];
492
- },
493
- enumerable: true,
494
- configurable: true
495
- });
496
- Object.defineProperty(CalendarComponent.prototype, "widgetId", {
497
- get: function () {
498
- return this.id;
499
- },
500
- enumerable: true,
501
- configurable: true
502
- });
503
- Object.defineProperty(CalendarComponent.prototype, "calendarTabIndex", {
504
- get: function () {
505
- // in Classic mode, the inner MultiViewCalendar is the focusable element
506
- return this.disabled || this.type === 'classic' ? undefined : this.tabIndex;
507
- },
508
- enumerable: true,
509
- configurable: true
510
- });
511
- Object.defineProperty(CalendarComponent.prototype, "ariaDisabled", {
512
- get: function () {
513
- // in Classic mode, the inner MultiViewCalendar should handle the disabled class and aria attr
514
- return this.type === 'classic' ? undefined : this.disabled;
515
- },
516
- enumerable: true,
517
- configurable: true
518
- });
519
- CalendarComponent.prototype.ngOnInit = function () {
520
- var _this = this;
521
- this.dom.calculateHeights(this.element.nativeElement);
522
- this.scrollSyncService.configure(this.activeViewEnum);
523
- this.localizationChangeSubscription = this.localization.changes.subscribe(function () { return _this.cdr.markForCheck(); });
524
- this.viewChangeSubscription = this.bus.viewChanged.subscribe(function (_a) {
525
- var view = _a.view;
526
- return _this.handleActiveViewChange(view_enum_1.CalendarViewEnum[view]);
527
- });
528
- this.control = this.injector.get(forms_1.NgControl, null);
529
- if (this.element) {
530
- this.ngZone.runOutsideAngular(function () {
531
- _this.bindEvents();
532
- });
533
- }
534
- };
535
- CalendarComponent.prototype.ngOnChanges = function (changes) {
536
- this.verifyChanges();
537
- this.bus.configure(this.bottomViewEnum, this.topViewEnum);
538
- this.scrollSyncService.configure(this.activeViewEnum);
539
- if (util_1.hasExistingValue(changes, 'focusedDate')) {
540
- var focusedDate = changes.focusedDate.currentValue;
541
- this.focusedDate = util_1.dateInRange(focusedDate, this.min, this.max);
542
- }
543
- if (changes.navigation) {
544
- this.syncNavigation = true;
545
- }
546
- if (changes.min || changes.max || changes.rangeValidation) {
547
- this.minValidateFn = this.rangeValidation ? min_validator_1.minValidator(this.min) : util_1.noop;
548
- this.maxValidateFn = this.rangeValidation ? max_validator_1.maxValidator(this.max) : util_1.noop;
549
- this.onValidatorChange();
550
- }
551
- };
552
- CalendarComponent.prototype.ngAfterViewInit = function () {
553
- this.setAriaActivedescendant();
554
- };
555
- CalendarComponent.prototype.ngAfterViewChecked = function () {
556
- if (!this.syncNavigation) {
557
- return;
558
- }
559
- this.syncNavigation = false;
560
- this.scrollSyncService.sync(virtualizationProp(this.navigationView), virtualizationProp(this.monthView));
561
- };
562
- CalendarComponent.prototype.ngOnDestroy = function () {
563
- this.scrollSyncService.destroy();
564
- this.domEvents.forEach(function (unbindCallback) { return unbindCallback(); });
565
- if (this.pickerService) {
566
- this.pickerService.calendar = null;
567
- }
568
- if (this.viewChangeSubscription) {
569
- this.viewChangeSubscription.unsubscribe();
570
- }
571
- if (this.pageChangeSubscription) {
572
- this.pageChangeSubscription.unsubscribe();
573
- }
574
- if (this.localizationChangeSubscription) {
575
- this.localizationChangeSubscription.unsubscribe();
576
- }
577
- this.destroyed = true;
578
- };
579
- /**
580
- * @hidden
581
- */
582
- CalendarComponent.prototype.onResize = function () {
583
- this.focusedDate = new Date(this.focusedDate);
584
- this.cdr.detectChanges();
585
- };
586
- /**
587
- * Focuses the host element of the Calendar.
588
- *
589
- * @example
590
- * ```ts
591
- * _@Component({
592
- * selector: 'my-app',
593
- * template: `
594
- * <button (click)="calendar.focus()">Focus calendar</button>
595
- * <kendo-calendar #calendar></kendo-calendar>
596
- * `
597
- * })
598
- * export class AppComponent { }
599
- * ```
600
- */
601
- CalendarComponent.prototype.focus = function () {
602
- var focusTarget = this.type === 'infinite' ?
603
- this.element && this.element.nativeElement :
604
- this.multiViewCalendar;
605
- if (utils_1.isPresent(focusTarget)) {
606
- focusTarget.focus();
607
- }
608
- };
609
- /**
610
- * Blurs the Calendar component.
611
- */
612
- CalendarComponent.prototype.blur = function () {
613
- var blurTarget = this.type === 'infinite' ?
614
- this.element && this.element.nativeElement :
615
- this.multiViewCalendar;
616
- if (utils_1.isPresent(blurTarget)) {
617
- blurTarget.blur();
618
- }
619
- };
620
- /**
621
- * @hidden
622
- */
623
- CalendarComponent.prototype.containsElement = function (element) {
624
- var _this = this;
625
- return Boolean(dom_queries_1.closest(element, function (node) { return node === _this.element.nativeElement; }));
626
- };
627
- /**
628
- * @hidden
629
- */
630
- CalendarComponent.prototype.handleNavigation = function (candidate) {
631
- if (this.disabled) {
632
- return;
633
- }
634
- var focusTarget = candidate ? new Date(kendo_date_math_1.cloneDate(candidate).setDate(1)) : this.focusedDate;
635
- this.focusedDate = util_1.dateInRange(focusTarget, this.min, this.max);
636
- this.detectChanges();
637
- };
638
- /**
639
- * @hidden
640
- */
641
- CalendarComponent.prototype.onPageChange = function () {
642
- var _this = this;
643
- if (!core_1.NgZone.isInAngularZone()) {
644
- if (this.pageChangeSubscription) {
645
- this.pageChangeSubscription.unsubscribe();
646
- }
647
- this.pageChangeSubscription = rxjs_1.from(this.resolvedPromise)
648
- .subscribe(function () {
649
- _this.detectChanges(); // requires zone if templates
650
- });
651
- }
652
- };
653
- /**
654
- * @hidden
655
- */
656
- CalendarComponent.prototype.handleMultiViewCalendarValueChange = function (date, focusedDate) {
657
- var selectedDates = Array.isArray(date) ? date : [date];
658
- this.handleDateChange({ selectedDates: selectedDates, focusedDate: focusedDate });
659
- };
660
- /**
661
- * @hidden
662
- */
663
- CalendarComponent.prototype.handleDateChange = function (args) {
664
- var _this = this;
665
- var selectedDates = Array.isArray(args.selectedDates) ? args.selectedDates : [args.selectedDates];
666
- var canNavigateDown = this.bus.canMoveDown(this.activeViewEnum);
667
- var availableDates = selectedDates.filter(function (date) { return !_this.disabledDatesService.isDateDisabled(date); });
668
- this.focusedDate = args.focusedDate || this.focusedDate;
669
- if (this.disabled) {
670
- return;
671
- }
672
- if (!canNavigateDown && util_1.areDatesEqual(availableDates, this.selectedDates)) {
673
- this.emitSameDate();
674
- return;
675
- }
676
- if (canNavigateDown) {
677
- this.bus.moveDown(this.activeViewEnum);
678
- return;
679
- }
680
- if (this.disabledDatesService.isDateDisabled(this.focusedDate)) {
681
- return;
682
- }
683
- this.ngZone.run(function () {
684
- _this.selectedDates = availableDates.map(function (date) { return kendo_date_math_1.cloneDate(date); });
685
- _this.value = _this.parseSelectionToValue(availableDates);
686
- _this.onControlChange(_this.parseSelectionToValue(availableDates));
687
- _this.valueChange.emit(_this.parseSelectionToValue(availableDates));
688
- _this.cdr.markForCheck();
689
- });
690
- };
691
- /**
692
- * @hidden
693
- */
694
- CalendarComponent.prototype.writeValue = function (candidate) {
695
- this.verifyValue(candidate);
696
- this.value = candidate;
697
- this.cdr.markForCheck();
698
- };
699
- /**
700
- * @hidden
701
- */
702
- CalendarComponent.prototype.registerOnChange = function (fn) {
703
- this.onControlChange = fn;
704
- };
705
- /**
706
- * @hidden
707
- */
708
- CalendarComponent.prototype.registerOnTouched = function (fn) {
709
- this.onControlTouched = fn;
710
- };
711
- /**
712
- * @hidden
713
- */
714
- CalendarComponent.prototype.setDisabledState = function (isDisabled) {
715
- this.disabled = isDisabled;
716
- this.cdr.markForCheck();
717
- };
718
- /**
719
- * @hidden
720
- */
721
- CalendarComponent.prototype.validate = function (control) {
722
- return this.minValidateFn(control) || this.maxValidateFn(control);
723
- };
724
- /**
725
- * @hidden
726
- */
727
- CalendarComponent.prototype.registerOnValidatorChange = function (fn) {
728
- this.onValidatorChange = fn;
729
- };
730
- /**
731
- * @hidden
732
- */
733
- CalendarComponent.prototype.activeCellTemplate = function () {
734
- switch (this.activeViewEnum) {
735
- case view_enum_1.CalendarViewEnum.month:
736
- return this.monthCellTemplateRef || this.cellTemplateRef;
737
- case view_enum_1.CalendarViewEnum.year:
738
- return this.yearCellTemplateRef;
739
- case view_enum_1.CalendarViewEnum.decade:
740
- return this.decadeCellTemplateRef;
741
- case view_enum_1.CalendarViewEnum.century:
742
- return this.centuryCellTemplateRef;
743
- default:
744
- return null;
745
- }
746
- };
747
- /**
748
- * @hidden
749
- */
750
- CalendarComponent.prototype.handleNavigate = function (event) {
751
- this.focusedDate = event.focusedDate;
752
- this.activeView = event.activeView;
753
- this.emitNavigate(this.focusedDate);
754
- };
755
- /**
756
- * @hidden
757
- */
758
- CalendarComponent.prototype.emitNavigate = function (focusedDate) {
759
- var activeView = view_enum_1.CalendarViewEnum[this.activeViewEnum];
760
- this.navigate.emit({ activeView: activeView, focusedDate: focusedDate });
761
- };
762
- /**
763
- * @hidden
764
- */
765
- CalendarComponent.prototype.emitEvent = function (emitter, args) {
766
- if (kendo_angular_common_1.hasObservers(emitter)) {
767
- this.ngZone.run(function () {
768
- emitter.emit(args);
769
- });
770
- }
771
- };
772
- /**
773
- * @hidden
774
- */
775
- CalendarComponent.prototype.handleActiveDateChange = function (date) {
776
- this.activeViewDate = date;
777
- this.emitEvent(this.activeViewDateChange, date);
778
- };
779
- /**
780
- * @hidden
781
- */
782
- CalendarComponent.prototype.handleActiveViewChange = function (view) {
783
- this.activeView = view;
784
- this.emitEvent(this.activeViewChange, view);
785
- if (this.type === 'infinite') {
786
- this.scrollSyncService.configure(this.activeViewEnum);
787
- }
788
- this.detectChanges(); // requires zone if templates
789
- };
790
- CalendarComponent.prototype.handleCellClick = function (_a) {
791
- var date = _a.date, modifiers = _a.modifiers;
792
- this.performSelection(date, modifiers);
793
- };
794
- /**
795
- * @hidden
796
- */
797
- CalendarComponent.prototype.handleWeekNumberClick = function (dates) {
798
- var _this = this;
799
- if (this.selection === 'single') {
800
- return;
801
- }
802
- this.ngZone.run(function () {
803
- _this.handleDateChange({
804
- selectedDates: dates,
805
- focusedDate: util_1.last(dates)
806
- });
807
- });
808
- };
809
- /**
810
- * @hidden
811
- */
812
- CalendarComponent.prototype.handleBlur = function (args) {
813
- var _this = this;
814
- if (this.element.nativeElement.contains(args.relatedTarget)) {
815
- return;
816
- }
817
- this.isActive = false;
818
- // the injector can get the NgControl instance of the parent component (for example, the DateTimePicker)
819
- // and enters the zone for no reason because the parent component is still untouched
820
- if (!this.pickerService && utils_1.requiresZoneOnBlur(this.control)) {
821
- this.ngZone.run(function () {
822
- _this.onControlTouched();
823
- _this.emitBlur(args);
824
- _this.cdr.markForCheck();
825
- });
826
- }
827
- else {
828
- this.emitBlur(args);
829
- this.detectChanges();
830
- }
831
- };
832
- /**
833
- * @hidden
834
- */
835
- CalendarComponent.prototype.handleFocus = function () {
836
- this.isActive = true;
837
- if (!core_1.NgZone.isInAngularZone()) {
838
- this.detectChanges();
839
- }
840
- this.emitFocus();
841
- };
842
- CalendarComponent.prototype.setClasses = function (element) {
843
- this.renderer.addClass(element, 'k-widget');
844
- this.renderer.addClass(element, 'k-calendar');
845
- this.renderer.addClass(element, "k-calendar-" + this.type);
846
- };
847
- CalendarComponent.prototype.verifyChanges = function () {
848
- if (!core_1.isDevMode()) {
849
- return;
850
- }
851
- if (this.min > this.max) {
852
- throw new Error("The max value should be bigger than the min. See " + MIN_DOC_LINK + " and " + MAX_DOC_LINK + ".");
853
- }
854
- if (this.bottomViewEnum > this.topViewEnum) {
855
- throw new Error("The topView should be greater than bottomView. See " + BOTTOM_VIEW_DOC_LINK + " and " + TOP_VIEW_DOC_LINK + ".");
856
- }
857
- };
858
- CalendarComponent.prototype.verifyValue = function (candidate) {
859
- if (!core_1.isDevMode()) {
860
- return;
861
- }
862
- if (this.selection === 'single' && candidate && !(candidate instanceof Date)) {
863
- throw new Error("The 'value' should be a valid JavaScript Date instance. Check " + VALUE_DOC_LINK + " for possible resolution.");
864
- }
865
- else if (this.selection === 'multiple' && candidate && Array.isArray(candidate)) {
866
- var onlyDates = candidate.every(function (value) { return value instanceof Date; });
867
- if (!onlyDates) {
868
- throw new Error("The 'value' should be an array of valid JavaScript Date instances. Check " + VALUE_DOC_LINK + " for possible resolution.");
869
- }
870
- }
871
- };
872
- CalendarComponent.prototype.bindEvents = function () {
873
- var element = this.element.nativeElement;
874
- this.domEvents.push(this.renderer.listen(element, 'blur', this.handleBlur.bind(this)), this.renderer.listen(element, 'focus', this.handleFocus.bind(this)), this.renderer.listen(element, 'mousedown', utils_1.preventDefault), this.renderer.listen(element, 'click', this.handleComponentClick.bind(this)), this.renderer.listen(element, 'keydown', this.handleKeydown.bind(this)));
875
- };
876
- CalendarComponent.prototype.emitBlur = function (args) {
877
- if (this.pickerService) {
878
- this.pickerService.onBlur.emit(args);
879
- }
880
- };
881
- CalendarComponent.prototype.emitFocus = function () {
882
- if (this.pickerService) {
883
- this.pickerService.onFocus.emit();
884
- }
885
- };
886
- CalendarComponent.prototype.handleComponentClick = function () {
887
- if (!this.isActive) {
888
- if (this.type === 'infinite' && this.monthView.isScrolled()) {
889
- this.focusedDate = kendo_date_math_1.cloneDate(this.focusedDate); //XXX: forces change detect
890
- this.detectChanges();
891
- }
892
- this.focus();
893
- }
894
- };
895
- CalendarComponent.prototype.handleKeydown = function (args) {
896
- var headerActive = this.type === 'classic' && this.multiViewCalendar.isHeaderActive;
897
- if (headerActive) {
898
- return;
899
- }
900
- // reserve the alt + arrow key commands for the picker
901
- var arrowKeyPressed = [kendo_angular_common_1.Keys.ArrowUp, kendo_angular_common_1.Keys.ArrowRight, kendo_angular_common_1.Keys.ArrowDown, kendo_angular_common_1.Keys.ArrowLeft].indexOf(args.keyCode) !== -1;
902
- if (utils_1.isPresent(this.pickerService) && arrowKeyPressed && args.altKey) {
903
- return;
904
- }
905
- var candidate = util_1.dateInRange(this.navigator.move(this.focusedDate, this.navigator.action(args), this.activeViewEnum), this.min, this.max);
906
- if (!kendo_date_math_1.isEqual(this.focusedDate, candidate)) {
907
- this.focusedDate = candidate;
908
- this.detectChanges();
909
- args.preventDefault();
910
- }
911
- if (args.keyCode === kendo_angular_common_1.Keys.Enter) {
912
- this.performSelection(this.focusedDate, args);
913
- }
914
- };
915
- CalendarComponent.prototype.detectChanges = function () {
916
- if (!this.destroyed) {
917
- this.cdr.detectChanges();
918
- }
919
- };
920
- CalendarComponent.prototype.emitSameDate = function () {
921
- if (this.pickerService) {
922
- this.pickerService.sameDateSelected.emit();
923
- }
924
- };
925
- CalendarComponent.prototype.setAriaActivedescendant = function () {
926
- // in Classic mode, the inner MultiViewCalendar handles the activedescendant
927
- if (!utils_1.isPresent(this.element) || (this.type === 'classic' && !this.element.nativeElement.hasAttribute('aria-activedescendant'))) {
928
- return;
929
- }
930
- if (this.type === 'classic') {
931
- this.renderer.removeAttribute(this.element.nativeElement, 'aria-activedescendant');
932
- return;
933
- }
934
- var focusedCellId = this.cellUID + this.focusedDate.getTime();
935
- this.renderer.setAttribute(this.element.nativeElement, 'aria-activedescendant', focusedCellId);
936
- };
937
- CalendarComponent.prototype.parseSelectionToValue = function (selection) {
938
- selection = selection || [];
939
- return this.selection === 'single' ? kendo_date_math_1.cloneDate(util_1.last(selection)) : selection.map(function (date) { return kendo_date_math_1.cloneDate(date); });
940
- };
941
- CalendarComponent.prototype.performSelection = function (date, selectionModifiers) {
942
- var selection = this.selectionService.performSelection({
943
- date: date,
944
- modifiers: selectionModifiers,
945
- selectionMode: this.selection,
946
- activeViewEnum: this.activeViewEnum,
947
- rangePivot: this.rangePivot,
948
- selectedDates: this.selectedDates
949
- });
950
- this.rangePivot = selection.rangePivot;
951
- this.handleDateChange({
952
- selectedDates: selection.selectedDates,
953
- focusedDate: date
954
- });
955
- };
956
- tslib_1.__decorate([
957
- core_1.Input(),
958
- tslib_1.__metadata("design:type", String)
959
- ], CalendarComponent.prototype, "id", void 0);
960
- tslib_1.__decorate([
961
- core_1.Input(),
962
- tslib_1.__metadata("design:type", Date),
963
- tslib_1.__metadata("design:paramtypes", [Date])
964
- ], CalendarComponent.prototype, "focusedDate", null);
965
- tslib_1.__decorate([
966
- core_1.Input(),
967
- tslib_1.__metadata("design:type", Date),
968
- tslib_1.__metadata("design:paramtypes", [Date])
969
- ], CalendarComponent.prototype, "min", null);
970
- tslib_1.__decorate([
971
- core_1.Input(),
972
- tslib_1.__metadata("design:type", Date),
973
- tslib_1.__metadata("design:paramtypes", [Date])
974
- ], CalendarComponent.prototype, "max", null);
975
- tslib_1.__decorate([
976
- core_1.Input(),
977
- tslib_1.__metadata("design:type", Boolean)
978
- ], CalendarComponent.prototype, "rangeValidation", void 0);
979
- tslib_1.__decorate([
980
- core_1.Input(),
981
- tslib_1.__metadata("design:type", String)
982
- ], CalendarComponent.prototype, "selection", void 0);
983
- tslib_1.__decorate([
984
- core_1.Input(),
985
- tslib_1.__metadata("design:type", Object),
986
- tslib_1.__metadata("design:paramtypes", [Object])
987
- ], CalendarComponent.prototype, "value", null);
988
- tslib_1.__decorate([
989
- core_1.Input(),
990
- tslib_1.__metadata("design:type", Boolean)
991
- ], CalendarComponent.prototype, "disabled", void 0);
992
- tslib_1.__decorate([
993
- core_1.Input(),
994
- tslib_1.__metadata("design:type", Number)
995
- ], CalendarComponent.prototype, "tabindex", void 0);
996
- tslib_1.__decorate([
997
- core_1.Input(),
998
- tslib_1.__metadata("design:type", Number),
999
- tslib_1.__metadata("design:paramtypes", [Number])
1000
- ], CalendarComponent.prototype, "tabIndex", null);
1001
- tslib_1.__decorate([
1002
- core_1.Input(),
1003
- tslib_1.__metadata("design:type", Object),
1004
- tslib_1.__metadata("design:paramtypes", [Object])
1005
- ], CalendarComponent.prototype, "disabledDates", null);
1006
- tslib_1.__decorate([
1007
- core_1.Input(),
1008
- tslib_1.__metadata("design:type", Boolean)
1009
- ], CalendarComponent.prototype, "navigation", void 0);
1010
- tslib_1.__decorate([
1011
- core_1.Input(),
1012
- tslib_1.__metadata("design:type", String)
1013
- ], CalendarComponent.prototype, "activeView", void 0);
1014
- tslib_1.__decorate([
1015
- core_1.Input(),
1016
- tslib_1.__metadata("design:type", String)
1017
- ], CalendarComponent.prototype, "bottomView", void 0);
1018
- tslib_1.__decorate([
1019
- core_1.Input(),
1020
- tslib_1.__metadata("design:type", String)
1021
- ], CalendarComponent.prototype, "topView", void 0);
1022
- tslib_1.__decorate([
1023
- core_1.Input(),
1024
- tslib_1.__metadata("design:type", String),
1025
- tslib_1.__metadata("design:paramtypes", [String])
1026
- ], CalendarComponent.prototype, "type", null);
1027
- tslib_1.__decorate([
1028
- core_1.Input(),
1029
- tslib_1.__metadata("design:type", Boolean)
1030
- ], CalendarComponent.prototype, "animateNavigation", void 0);
1031
- tslib_1.__decorate([
1032
- core_1.Input(),
1033
- core_1.HostBinding('class.k-week-number'),
1034
- tslib_1.__metadata("design:type", Boolean)
1035
- ], CalendarComponent.prototype, "weekNumber", void 0);
1036
- tslib_1.__decorate([
1037
- core_1.Output(),
1038
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1039
- ], CalendarComponent.prototype, "activeViewChange", void 0);
1040
- tslib_1.__decorate([
1041
- core_1.Output(),
1042
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1043
- ], CalendarComponent.prototype, "navigate", void 0);
1044
- tslib_1.__decorate([
1045
- core_1.Output(),
1046
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1047
- ], CalendarComponent.prototype, "activeViewDateChange", void 0);
1048
- tslib_1.__decorate([
1049
- core_1.Output(),
1050
- tslib_1.__metadata("design:type", core_1.EventEmitter)
1051
- ], CalendarComponent.prototype, "valueChange", void 0);
1052
- tslib_1.__decorate([
1053
- core_1.ContentChild(cell_template_directive_1.CellTemplateDirective, { static: false }),
1054
- tslib_1.__metadata("design:type", cell_template_directive_1.CellTemplateDirective)
1055
- ], CalendarComponent.prototype, "cellTemplate", void 0);
1056
- tslib_1.__decorate([
1057
- core_1.Input('cellTemplate'),
1058
- tslib_1.__metadata("design:type", cell_template_directive_1.CellTemplateDirective),
1059
- tslib_1.__metadata("design:paramtypes", [cell_template_directive_1.CellTemplateDirective])
1060
- ], CalendarComponent.prototype, "cellTemplateRef", null);
1061
- tslib_1.__decorate([
1062
- core_1.ContentChild(month_cell_template_directive_1.MonthCellTemplateDirective, { static: false }),
1063
- tslib_1.__metadata("design:type", month_cell_template_directive_1.MonthCellTemplateDirective)
1064
- ], CalendarComponent.prototype, "monthCellTemplate", void 0);
1065
- tslib_1.__decorate([
1066
- core_1.Input('monthCellTemplate'),
1067
- tslib_1.__metadata("design:type", month_cell_template_directive_1.MonthCellTemplateDirective),
1068
- tslib_1.__metadata("design:paramtypes", [month_cell_template_directive_1.MonthCellTemplateDirective])
1069
- ], CalendarComponent.prototype, "monthCellTemplateRef", null);
1070
- tslib_1.__decorate([
1071
- core_1.ContentChild(year_cell_template_directive_1.YearCellTemplateDirective, { static: false }),
1072
- tslib_1.__metadata("design:type", year_cell_template_directive_1.YearCellTemplateDirective)
1073
- ], CalendarComponent.prototype, "yearCellTemplate", void 0);
1074
- tslib_1.__decorate([
1075
- core_1.Input('yearCellTemplate'),
1076
- tslib_1.__metadata("design:type", year_cell_template_directive_1.YearCellTemplateDirective),
1077
- tslib_1.__metadata("design:paramtypes", [year_cell_template_directive_1.YearCellTemplateDirective])
1078
- ], CalendarComponent.prototype, "yearCellTemplateRef", null);
1079
- tslib_1.__decorate([
1080
- core_1.ContentChild(decade_cell_template_directive_1.DecadeCellTemplateDirective, { static: false }),
1081
- tslib_1.__metadata("design:type", decade_cell_template_directive_1.DecadeCellTemplateDirective)
1082
- ], CalendarComponent.prototype, "decadeCellTemplate", void 0);
1083
- tslib_1.__decorate([
1084
- core_1.Input('decadeCellTemplate'),
1085
- tslib_1.__metadata("design:type", decade_cell_template_directive_1.DecadeCellTemplateDirective),
1086
- tslib_1.__metadata("design:paramtypes", [decade_cell_template_directive_1.DecadeCellTemplateDirective])
1087
- ], CalendarComponent.prototype, "decadeCellTemplateRef", null);
1088
- tslib_1.__decorate([
1089
- core_1.ContentChild(century_cell_template_directive_1.CenturyCellTemplateDirective, { static: false }),
1090
- tslib_1.__metadata("design:type", century_cell_template_directive_1.CenturyCellTemplateDirective)
1091
- ], CalendarComponent.prototype, "centuryCellTemplate", void 0);
1092
- tslib_1.__decorate([
1093
- core_1.Input('centuryCellTemplate'),
1094
- tslib_1.__metadata("design:type", century_cell_template_directive_1.CenturyCellTemplateDirective),
1095
- tslib_1.__metadata("design:paramtypes", [century_cell_template_directive_1.CenturyCellTemplateDirective])
1096
- ], CalendarComponent.prototype, "centuryCellTemplateRef", null);
1097
- tslib_1.__decorate([
1098
- core_1.ContentChild(weeknumber_cell_template_directive_1.WeekNumberCellTemplateDirective, { static: false }),
1099
- tslib_1.__metadata("design:type", weeknumber_cell_template_directive_1.WeekNumberCellTemplateDirective)
1100
- ], CalendarComponent.prototype, "weekNumberTemplate", void 0);
1101
- tslib_1.__decorate([
1102
- core_1.Input('weekNumberTemplate'),
1103
- tslib_1.__metadata("design:type", weeknumber_cell_template_directive_1.WeekNumberCellTemplateDirective),
1104
- tslib_1.__metadata("design:paramtypes", [weeknumber_cell_template_directive_1.WeekNumberCellTemplateDirective])
1105
- ], CalendarComponent.prototype, "weekNumberTemplateRef", null);
1106
- tslib_1.__decorate([
1107
- core_1.ContentChild(header_title_template_directive_1.HeaderTitleTemplateDirective, { static: false }),
1108
- tslib_1.__metadata("design:type", header_title_template_directive_1.HeaderTitleTemplateDirective)
1109
- ], CalendarComponent.prototype, "headerTitleTemplate", void 0);
1110
- tslib_1.__decorate([
1111
- core_1.Input('headerTitleTemplate'),
1112
- tslib_1.__metadata("design:type", header_title_template_directive_1.HeaderTitleTemplateDirective),
1113
- tslib_1.__metadata("design:paramtypes", [header_title_template_directive_1.HeaderTitleTemplateDirective])
1114
- ], CalendarComponent.prototype, "headerTitleTemplateRef", null);
1115
- tslib_1.__decorate([
1116
- core_1.ContentChild(navigation_item_template_directive_1.NavigationItemTemplateDirective, { static: false }),
1117
- tslib_1.__metadata("design:type", navigation_item_template_directive_1.NavigationItemTemplateDirective)
1118
- ], CalendarComponent.prototype, "navigationItemTemplate", void 0);
1119
- tslib_1.__decorate([
1120
- core_1.Input('navigationItemTemplate'),
1121
- tslib_1.__metadata("design:type", navigation_item_template_directive_1.NavigationItemTemplateDirective),
1122
- tslib_1.__metadata("design:paramtypes", [navigation_item_template_directive_1.NavigationItemTemplateDirective])
1123
- ], CalendarComponent.prototype, "navigationItemTemplateRef", null);
1124
- tslib_1.__decorate([
1125
- core_1.ViewChild(navigation_component_1.NavigationComponent, { static: false }),
1126
- tslib_1.__metadata("design:type", navigation_component_1.NavigationComponent)
1127
- ], CalendarComponent.prototype, "navigationView", void 0);
1128
- tslib_1.__decorate([
1129
- core_1.ViewChild(view_list_component_1.ViewListComponent, { static: false }),
1130
- tslib_1.__metadata("design:type", view_list_component_1.ViewListComponent)
1131
- ], CalendarComponent.prototype, "monthView", void 0);
1132
- tslib_1.__decorate([
1133
- core_1.ViewChild(multiview_calendar_component_1.MultiViewCalendarComponent, { static: false }),
1134
- tslib_1.__metadata("design:type", multiview_calendar_component_1.MultiViewCalendarComponent)
1135
- ], CalendarComponent.prototype, "multiViewCalendar", void 0);
1136
- tslib_1.__decorate([
1137
- core_1.HostBinding('attr.id'),
1138
- tslib_1.__metadata("design:type", String),
1139
- tslib_1.__metadata("design:paramtypes", [])
1140
- ], CalendarComponent.prototype, "widgetId", null);
1141
- tslib_1.__decorate([
1142
- core_1.HostBinding('attr.tabindex'),
1143
- tslib_1.__metadata("design:type", Number),
1144
- tslib_1.__metadata("design:paramtypes", [])
1145
- ], CalendarComponent.prototype, "calendarTabIndex", null);
1146
- tslib_1.__decorate([
1147
- core_1.HostBinding('attr.aria-disabled'),
1148
- core_1.HostBinding('class.k-disabled'),
1149
- tslib_1.__metadata("design:type", Boolean),
1150
- tslib_1.__metadata("design:paramtypes", [])
1151
- ], CalendarComponent.prototype, "ariaDisabled", null);
1152
- CalendarComponent = tslib_1.__decorate([
1153
- core_1.Component({
1154
- changeDetection: core_1.ChangeDetectionStrategy.OnPush,
1155
- exportAs: 'kendo-calendar',
1156
- providers: [
1157
- bus_view_service_1.BusViewService,
1158
- exports.CALENDAR_VALUE_ACCESSOR,
1159
- exports.CALENDAR_RANGE_VALIDATORS,
1160
- exports.KENDO_INPUT_PROVIDER,
1161
- kendo_angular_l10n_1.LocalizationService,
1162
- disabled_dates_service_1.DisabledDatesService,
1163
- {
1164
- provide: kendo_angular_l10n_1.L10N_PREFIX,
1165
- useValue: 'kendo.calendar'
1166
- },
1167
- navigation_service_1.NavigationService,
1168
- scroll_sync_service_1.ScrollSyncService,
1169
- selection_service_1.SelectionService
1170
- ],
1171
- selector: 'kendo-calendar',
1172
- template: "\n <ng-container kendoCalendarLocalizedMessages\n i18n-today=\"kendo.calendar.today|The label for the today button in the calendar header\"\n today=\"Today\"\n\n i18n-prevButtonTitle=\"kendo.calendar.prevButtonTitle|The title of the previous button in the Classic calendar\"\n prevButtonTitle=\"Navigate to previous view\"\n\n i18n-nextButtonTitle=\"kendo.calendar.nextButtonTitle|The title of the next button in the Classic calendar\"\n nextButtonTitle=\"Navigate to next view\"\n >\n </ng-container>\n <ng-container *ngIf=\"type === 'infinite'\">\n <kendo-calendar-navigation\n *ngIf=\"navigation\"\n [activeView]=\"activeViewEnum\"\n [focusedDate]=\"focusedDate\"\n [min]=\"min\"\n [max]=\"max\"\n [templateRef]=\"navigationItemTemplateRef?.templateRef\"\n (valueChange)=\"handleNavigation($event)\"\n (pageChange)=\"onPageChange()\"\n >\n </kendo-calendar-navigation>\n <kendo-calendar-viewlist\n [activeView]=\"activeViewEnum\"\n [isActive]=\"isActive\"\n [cellTemplateRef]=\"activeCellTemplate()?.templateRef\"\n [headerTitleTemplateRef]=\"headerTitleTemplateRef?.templateRef\"\n [weekNumberTemplateRef]=\"weekNumberTemplateRef?.templateRef\"\n [cellUID]=\"cellUID\"\n [min]=\"min\"\n [max]=\"max\"\n [focusedDate]=\"focusedDate\"\n [weekNumber]=\"weekNumber\"\n [selectedDates]=\"selectedDates\"\n (todayButtonClick)=\"handleDateChange({\n selectedDates: [$event],\n focusedDate: $event\n })\"\n (cellClick)=\"handleCellClick($event)\"\n (weekNumberCellClick)=\"handleWeekNumberClick($event)\"\n (activeDateChange)=\"handleActiveDateChange($event)\"\n (pageChange)=\"onPageChange()\"\n >\n </kendo-calendar-viewlist>\n <kendo-resize-sensor (resize)=\"onResize()\"></kendo-resize-sensor>\n </ng-container>\n <ng-container *ngIf=\"type === 'classic'\">\n <kendo-multiviewcalendar\n #multiviewcalendar\n [views]=\"1\"\n [min]=\"min\"\n [max]=\"max\"\n [isActive]=\"isActive\"\n [activeView]=\"activeView\"\n [bottomView]=\"bottomView\"\n [topView]=\"topView\"\n [weekNumber]=\"weekNumber\"\n [animateNavigation]=\"animateNavigation\"\n [cellTemplate]=\"activeCellTemplate()\"\n [monthCellTemplate]=\"monthCellTemplateRef\"\n [yearCellTemplate]=\"yearCellTemplateRef\"\n [decadeCellTemplate]=\"decadeCellTemplateRef\"\n [centuryCellTemplate]=\"centuryCellTemplateRef\"\n [headerTitleTemplate]=\"headerTitleTemplateRef\"\n [weekNumberTemplate]=\"weekNumberTemplateRef\"\n [focusedDate]=\"focusedDate\"\n [selection]=\"selection\"\n [value]=\"value\"\n [disabledDates]=\"disabledDates\"\n (activeViewChange)=\"handleActiveViewChange($event)\"\n (navigate)=\"handleNavigate($event)\"\n (valueChange)=\"handleMultiViewCalendarValueChange($event, multiviewcalendar.focusedDate)\"\n (focus)=\"handleFocus()\"\n (blur)=\"handleBlur($event)\"\n >\n <kendo-multiviewcalendar-messages\n [today]=\"localization.get('today')\"\n [prevButtonTitle]=\"localization.get('prevButtonTitle')\"\n [nextButtonTitle]=\"localization.get('nextButtonTitle')\"\n >\n </kendo-multiviewcalendar-messages>\n </kendo-multiviewcalendar>\n </ng-container>\n "
1173
- }),
1174
- tslib_1.__param(12, core_1.Optional()),
1175
- tslib_1.__metadata("design:paramtypes", [bus_view_service_1.BusViewService,
1176
- dom_service_1.CalendarDOMService,
1177
- core_1.ElementRef,
1178
- navigation_service_1.NavigationService,
1179
- core_1.Renderer2,
1180
- core_1.ChangeDetectorRef,
1181
- core_1.NgZone,
1182
- core_1.Injector,
1183
- scroll_sync_service_1.ScrollSyncService,
1184
- disabled_dates_service_1.DisabledDatesService,
1185
- kendo_angular_l10n_1.LocalizationService,
1186
- selection_service_1.SelectionService,
1187
- picker_service_1.PickerService])
1188
- ], CalendarComponent);
1189
- return CalendarComponent;
1190
- }());
1191
- exports.CalendarComponent = CalendarComponent;