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

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