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

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 +42 -115
  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,53 +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 { Injectable } from '@angular/core';
7
- import { Action } from '../models/navigation-action.enum';
8
- import { BusViewService } from '../services/bus-view.service';
9
- var KEY_TO_ACTION = {
10
- '33': Action.PrevView,
11
- '34': Action.NextView,
12
- '35': Action.LastInView,
13
- '36': Action.FirstInView,
14
- '37': Action.Left,
15
- '38': Action.Up,
16
- '39': Action.Right,
17
- '40': Action.Down,
18
- 'meta+38': Action.UpperView,
19
- 'meta+40': Action.LowerView
20
- };
21
- /**
22
- * @hidden
23
- */
24
- var NavigationService = /** @class */ (function () {
25
- function NavigationService(bus) {
26
- this.bus = bus;
27
- }
28
- NavigationService.prototype.action = function (event) {
29
- var action = "" + (event.ctrlKey || event.metaKey ? 'meta+' : '') + event.keyCode;
30
- return KEY_TO_ACTION[action];
31
- };
32
- NavigationService.prototype.move = function (value, action, activeView) {
33
- var service = this.bus.service(activeView);
34
- if (!service) {
35
- return value;
36
- }
37
- if (action === Action.UpperView && this.bus.canMoveUp(activeView)) {
38
- this.bus.moveUp(activeView);
39
- return value;
40
- }
41
- if (action === Action.LowerView && this.bus.canMoveDown(activeView)) {
42
- this.bus.moveDown(activeView);
43
- return value;
44
- }
45
- return service.move(value, action);
46
- };
47
- NavigationService = tslib_1.__decorate([
48
- Injectable(),
49
- tslib_1.__metadata("design:paramtypes", [BusViewService])
50
- ], NavigationService);
51
- return NavigationService;
52
- }());
53
- export { NavigationService };
@@ -1,85 +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 { Injectable, NgZone } from '@angular/core';
7
- import { CalendarDOMService } from './dom.service';
8
- var divideByMagnitude = function (magnitude) { return function (x) { return Math.floor(x / magnitude); }; };
9
- var ɵ0 = divideByMagnitude;
10
- var powerByMagnitude = function (magnitude) { return function (x) { return x * magnitude; }; };
11
- var ɵ1 = powerByMagnitude;
12
- /**
13
- * @hidden
14
- */
15
- var ScrollSyncService = /** @class */ (function () {
16
- function ScrollSyncService(dom, zone) {
17
- this.dom = dom;
18
- this.zone = zone;
19
- }
20
- ScrollSyncService.prototype.configure = function (activeView) {
21
- var magnitude = Math.max(this.dom.viewHeight(activeView) / this.dom.navigationItemHeight, 1);
22
- this.divideByMagnitude = divideByMagnitude(magnitude);
23
- this.powerByMagnitude = powerByMagnitude(magnitude);
24
- };
25
- ScrollSyncService.prototype.sync = function (navigator, view) {
26
- var _this = this;
27
- this.unsubscribe();
28
- if (!navigator || !view) {
29
- return;
30
- }
31
- this.navigator = navigator;
32
- this.view = view;
33
- this.zone.runOutsideAngular(function () {
34
- var navScrolled, monthScrolled;
35
- _this.navSubscription = navigator.scroll$()
36
- .subscribe(function (e) {
37
- if (monthScrolled) {
38
- monthScrolled = false;
39
- return;
40
- }
41
- navScrolled = true;
42
- _this.scrollSiblingOf(e.target);
43
- });
44
- _this.viewSubscription = view.scroll$()
45
- .subscribe(function (e) {
46
- if (navScrolled) {
47
- navScrolled = false;
48
- return;
49
- }
50
- monthScrolled = true;
51
- _this.scrollSiblingOf(e.target);
52
- });
53
- });
54
- };
55
- ScrollSyncService.prototype.scrollSiblingOf = function (scrolledElement) {
56
- var component = this.siblingComponent(scrolledElement);
57
- var scrollTop = this.calculateScroll(component, scrolledElement.scrollTop);
58
- component.scrollTo(scrollTop);
59
- };
60
- ScrollSyncService.prototype.siblingComponent = function (scrollableElement) {
61
- return this.navigator.container.nativeElement === scrollableElement ? this.view : this.navigator;
62
- };
63
- ScrollSyncService.prototype.calculateScroll = function (component, scrollTop) {
64
- var modifier = component === this.navigator ? this.divideByMagnitude : this.powerByMagnitude;
65
- return modifier(scrollTop);
66
- };
67
- ScrollSyncService.prototype.destroy = function () {
68
- this.unsubscribe();
69
- };
70
- ScrollSyncService.prototype.unsubscribe = function () {
71
- if (this.navSubscription) {
72
- this.navSubscription.unsubscribe();
73
- }
74
- if (this.viewSubscription) {
75
- this.viewSubscription.unsubscribe();
76
- }
77
- };
78
- ScrollSyncService = tslib_1.__decorate([
79
- Injectable(),
80
- tslib_1.__metadata("design:paramtypes", [CalendarDOMService, NgZone])
81
- ], ScrollSyncService);
82
- return ScrollSyncService;
83
- }());
84
- export { ScrollSyncService };
85
- export { ɵ0, ɵ1 };
@@ -1,55 +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 { Injectable } from '@angular/core';
7
- import { isEqual } from '@progress/kendo-date-math';
8
- import { last, sortDates } from '../../util';
9
- import { BusViewService } from './bus-view.service';
10
- /**
11
- * @hidden
12
- */
13
- var SelectionService = /** @class */ (function () {
14
- function SelectionService(bus) {
15
- this.bus = bus;
16
- }
17
- SelectionService.prototype.performSelection = function (args) {
18
- var date = args.date, modifiers = args.modifiers, selectionMode = args.selectionMode, activeViewEnum = args.activeViewEnum, rangePivot = args.rangePivot;
19
- var selectedDates = args.selectedDates.slice();
20
- if (selectionMode === 'multiple') {
21
- if (modifiers.ctrlKey || modifiers.metaKey) {
22
- if (this.isDateSelected(selectedDates, date)) {
23
- selectedDates = selectedDates.filter(function (item) { return !isEqual(item, date); });
24
- }
25
- else {
26
- selectedDates.push(date);
27
- }
28
- rangePivot = date;
29
- }
30
- else if (modifiers.shiftKey) {
31
- var _a = sortDates([rangePivot || date, date]), start = _a[0], end = _a[1];
32
- selectedDates = this.bus.service(activeViewEnum).dateRange(start, end);
33
- rangePivot = date > selectedDates[0] ? selectedDates[0] : last(selectedDates);
34
- }
35
- else {
36
- selectedDates = [date];
37
- rangePivot = date;
38
- }
39
- }
40
- else {
41
- selectedDates = [date];
42
- rangePivot = date;
43
- }
44
- return { selectedDates: selectedDates, rangePivot: rangePivot };
45
- };
46
- SelectionService.prototype.isDateSelected = function (selectedDates, date) {
47
- return selectedDates.some(function (item) { return isEqual(item, date); });
48
- };
49
- SelectionService = tslib_1.__decorate([
50
- Injectable(),
51
- tslib_1.__metadata("design:paramtypes", [BusViewService])
52
- ], SelectionService);
53
- return SelectionService;
54
- }());
55
- export { SelectionService };
@@ -1,27 +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 { Injectable } from '@angular/core';
7
- import { IntlService } from '@progress/kendo-angular-intl';
8
- import { shiftWeekNames } from '../../util';
9
- /**
10
- * @hidden
11
- */
12
- var WeekNamesService = /** @class */ (function () {
13
- function WeekNamesService(intl) {
14
- this.intl = intl;
15
- }
16
- WeekNamesService.prototype.getWeekNames = function (includeWeekNumber) {
17
- if (includeWeekNumber === void 0) { includeWeekNumber = false; }
18
- var weekNames = shiftWeekNames(this.intl.dateFormatNames({ nameType: 'short', type: 'days' }), this.intl.firstDay());
19
- return includeWeekNumber ? [''].concat(weekNames) : weekNames;
20
- };
21
- WeekNamesService = tslib_1.__decorate([
22
- Injectable(),
23
- tslib_1.__metadata("design:paramtypes", [IntlService])
24
- ], WeekNamesService);
25
- return WeekNamesService;
26
- }());
27
- export { WeekNamesService };
@@ -1,204 +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
- var _a;
7
- /* tslint:disable:object-literal-sort-keys */
8
- import { Injectable } from '@angular/core';
9
- import { IntlService } from '@progress/kendo-angular-intl';
10
- import { addMonths, addYears, cloneDate, createDate, durationInYears, firstMonthOfYear, lastDayOfMonth, lastMonthOfYear } from '@progress/kendo-date-math';
11
- import { Action } from '../models/navigation-action.enum';
12
- import { EMPTY_SELECTIONRANGE } from '../models/selection-range.interface';
13
- import { getToday, isInSelectionRange, range } from '../../util';
14
- import { isPresent } from '../../common/utils';
15
- var EMPTY_DATA = [[]];
16
- var CELLS_LENGTH = 4;
17
- var ROWS_LENGTH = 3;
18
- var upStep = function (month) {
19
- if (month > 4) {
20
- return -5;
21
- }
22
- if (month < 2) {
23
- return -2;
24
- }
25
- return -7;
26
- };
27
- var ɵ0 = upStep;
28
- var downStep = function (month) {
29
- if (month < 7) {
30
- return 5;
31
- }
32
- if (month < 10) {
33
- return 7;
34
- }
35
- return 2;
36
- };
37
- var ɵ1 = downStep;
38
- var ACTIONS = (_a = {},
39
- _a[Action.Left] = function (date) { return addMonths(date, -1); },
40
- _a[Action.Up] = function (date) { return addMonths(date, upStep(date.getMonth())); },
41
- _a[Action.Right] = function (date) { return addMonths(date, 1); },
42
- _a[Action.Down] = function (date) { return addMonths(date, downStep(date.getMonth())); },
43
- _a[Action.PrevView] = function (date) { return addYears(date, -1); },
44
- _a[Action.NextView] = function (date) { return addYears(date, 1); },
45
- _a[Action.FirstInView] = function (date) { return firstMonthOfYear(date); },
46
- _a[Action.LastInView] = function (date) { return lastMonthOfYear(date); },
47
- _a);
48
- /**
49
- * @hidden
50
- */
51
- var YearViewService = /** @class */ (function () {
52
- function YearViewService(_intlService) {
53
- this._intlService = _intlService;
54
- this.dateRange = function (start, end) {
55
- if (!isPresent(start) || !isPresent(end)) {
56
- return [];
57
- }
58
- var result = [];
59
- var current = start;
60
- while (current <= end) {
61
- result.push(current);
62
- current = addMonths(current, 1);
63
- }
64
- return result;
65
- };
66
- }
67
- YearViewService.prototype.addToDate = function (min, skip) {
68
- return addYears(min, skip);
69
- };
70
- YearViewService.prototype.datesList = function (start, count) {
71
- return range(0, count).map(function (i) { return addYears(start, i); });
72
- };
73
- YearViewService.prototype.data = function (options) {
74
- var _this = this;
75
- var cellUID = options.cellUID, focusedDate = options.focusedDate, isActiveView = options.isActiveView, max = options.max, min = options.min, selectedDates = options.selectedDates, _a = options.selectionRange, selectionRange = _a === void 0 ? EMPTY_SELECTIONRANGE : _a, viewDate = options.viewDate;
76
- if (!viewDate) {
77
- return EMPTY_DATA;
78
- }
79
- var months = this.abbrMonthNames();
80
- var firstDate = firstMonthOfYear(viewDate);
81
- var lastDate = lastMonthOfYear(viewDate);
82
- var currentYear = firstDate.getFullYear();
83
- var cells = range(0, CELLS_LENGTH);
84
- var today = getToday();
85
- return range(0, ROWS_LENGTH).map(function (rowOffset) {
86
- var baseDate = addMonths(firstDate, rowOffset * CELLS_LENGTH);
87
- return cells.map(function (cellOffset) {
88
- var cellDate = _this.normalize(addMonths(baseDate, cellOffset), min, max);
89
- var changedYear = currentYear < cellDate.getFullYear();
90
- if (!_this.isInRange(cellDate, min, max) || changedYear) {
91
- return null;
92
- }
93
- var isRangeStart = _this.isEqual(cellDate, selectionRange.start);
94
- var isRangeEnd = _this.isEqual(cellDate, selectionRange.end);
95
- var isInMiddle = !isRangeStart && !isRangeEnd;
96
- var isRangeMid = isInMiddle && isInSelectionRange(cellDate, selectionRange);
97
- return {
98
- formattedValue: months[cellDate.getMonth()],
99
- id: "" + cellUID + cellDate.getTime(),
100
- isFocused: _this.isEqual(cellDate, focusedDate),
101
- isSelected: isActiveView && selectedDates.some(function (date) { return _this.isEqual(cellDate, date); }),
102
- isWeekend: false,
103
- isRangeStart: isRangeStart,
104
- isRangeMid: isRangeMid,
105
- isRangeEnd: isRangeEnd,
106
- isRangeSplitEnd: isRangeMid && _this.isEqual(cellDate, lastDate),
107
- isRangeSplitStart: isRangeMid && _this.isEqual(cellDate, firstDate),
108
- isToday: _this.isEqual(cellDate, today),
109
- title: _this.cellTitle(cellDate),
110
- value: cellDate
111
- };
112
- });
113
- });
114
- };
115
- YearViewService.prototype.isEqual = function (candidate, expected) {
116
- if (!candidate || !expected) {
117
- return false;
118
- }
119
- return candidate.getFullYear() === expected.getFullYear() &&
120
- candidate.getMonth() === expected.getMonth();
121
- };
122
- YearViewService.prototype.isInArray = function (date, dates) {
123
- if (!dates.length) {
124
- return false;
125
- }
126
- var year = date.getFullYear();
127
- return dates[0].getFullYear() <= year && year <= dates[dates.length - 1].getFullYear();
128
- };
129
- YearViewService.prototype.isInRange = function (candidate, min, max) {
130
- var candidateValue = createDate(candidate.getFullYear(), candidate.getMonth(), 1);
131
- var aboveMin = !min || createDate(min.getFullYear(), min.getMonth(), 1) <= candidateValue;
132
- var belowMax = !max || candidateValue <= createDate(max.getFullYear(), max.getMonth(), 1);
133
- return aboveMin && belowMax;
134
- };
135
- YearViewService.prototype.beginningOfPeriod = function (date) {
136
- if (!date) {
137
- return date;
138
- }
139
- return createDate(date.getFullYear(), 0, 1);
140
- };
141
- YearViewService.prototype.lastDayOfPeriod = function (date) {
142
- var month = lastMonthOfYear(date);
143
- return lastDayOfMonth(month);
144
- };
145
- YearViewService.prototype.isRangeStart = function (value) {
146
- return value.getFullYear() % 10 === 0;
147
- };
148
- YearViewService.prototype.move = function (value, action) {
149
- var modifier = ACTIONS[action];
150
- if (!modifier) {
151
- return value;
152
- }
153
- return modifier(value);
154
- };
155
- YearViewService.prototype.cellTitle = function (value) {
156
- return value.getFullYear() + " " + this.value(value);
157
- };
158
- YearViewService.prototype.navigationTitle = function (value) {
159
- return this.title(value);
160
- };
161
- YearViewService.prototype.title = function (current) {
162
- return current ? current.getFullYear().toString() : '';
163
- };
164
- YearViewService.prototype.rowLength = function () {
165
- return CELLS_LENGTH;
166
- };
167
- YearViewService.prototype.skip = function (value, min) {
168
- return durationInYears(min, value);
169
- };
170
- YearViewService.prototype.total = function (min, max) {
171
- return durationInYears(min, max) + 1;
172
- };
173
- YearViewService.prototype.value = function (current) {
174
- return current ? this.abbrMonthNames()[current.getMonth()] : '';
175
- };
176
- YearViewService.prototype.viewDate = function (date, max, viewsCount) {
177
- if (viewsCount === void 0) { viewsCount = 1; }
178
- var viewsInRange = this.total(date, max);
179
- if (viewsInRange < viewsCount) {
180
- var yearsToSubtract = viewsCount - viewsInRange;
181
- return addYears(date, -1 * yearsToSubtract);
182
- }
183
- return date;
184
- };
185
- YearViewService.prototype.abbrMonthNames = function () {
186
- return this._intlService.dateFormatNames({ nameType: 'abbreviated', type: 'months' });
187
- };
188
- YearViewService.prototype.normalize = function (cellDate, min, max) {
189
- if (cellDate < min && this.isEqual(cellDate, min)) {
190
- return cloneDate(min);
191
- }
192
- if (cellDate > max && this.isEqual(cellDate, max)) {
193
- return cloneDate(max);
194
- }
195
- return cellDate;
196
- };
197
- YearViewService = tslib_1.__decorate([
198
- Injectable(),
199
- tslib_1.__metadata("design:paramtypes", [IntlService])
200
- ], YearViewService);
201
- return YearViewService;
202
- }());
203
- export { YearViewService };
204
- export { ɵ0, ɵ1 };
@@ -1,46 +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 { Directive, TemplateRef } from '@angular/core';
7
- /**
8
- * Used for rendering the cell content of the Calendar. To define the cell template, nest an `<ng-template>` tag
9
- * with the `kendoCalendarCellTemplate` directive inside the component tag. The template context is set to the
10
- * current component. To get a reference to the current date, use the `let-date` directive. To provide more details
11
- * about the current cell, get a reference to the current `cellContext` by using the `let-cellContext` directive.
12
- *
13
- * For more examples, refer to the article on [templates]({% slug templates_calendar %}).
14
- *
15
- * > `kendoCalendarCellTemplate` is equivalent to
16
- * > [`kendoCalendarMonthCellTemplate`]({% slug api_dateinputs_monthcelltemplatedirective %}).
17
- *
18
- * @example
19
- * ```ts
20
- * _@Component({
21
- * selector: 'my-app',
22
- * styles: ['.custom { color: red; }'],
23
- * template: `
24
- * <kendo-calendar>
25
- * <ng-template kendoCalendarCellTemplate let-date>
26
- * <span class="custom">{{date.getDate()}}</span>
27
- * </ng-template>
28
- * </kendo-calendar>
29
- * `
30
- * })
31
- * export class AppComponent { }
32
- * ```
33
- */
34
- var CellTemplateDirective = /** @class */ (function () {
35
- function CellTemplateDirective(templateRef) {
36
- this.templateRef = templateRef;
37
- }
38
- CellTemplateDirective = tslib_1.__decorate([
39
- Directive({
40
- selector: '[kendoCalendarCellTemplate]'
41
- }),
42
- tslib_1.__metadata("design:paramtypes", [TemplateRef])
43
- ], CellTemplateDirective);
44
- return CellTemplateDirective;
45
- }());
46
- export { CellTemplateDirective };
@@ -1,45 +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 { Directive, TemplateRef } from '@angular/core';
7
- /**
8
- * Used for rendering the century cell content of the Calendar. To define the century cell template, nest an `<ng-template>`
9
- * tag with the `kendoCalendarCenturyCellTemplate` directive inside the component tag. The template context is set to the
10
- * current component. To get a reference to the current date, use the `let-date` directive. To provide more details about
11
- * the current century cell, get a reference to the current `cellContext` by using the `let-cellContext` directive.
12
- *
13
- * For more examples, refer to the article on [templates]({% slug templates_calendar %}).
14
- *
15
- * @example
16
- * ```ts
17
- * _@Component({
18
- * selector: 'my-app',
19
- * styles: ['.custom { color: red; }'],
20
- * template: `
21
- * <kendo-calendar [activeView]="activeView">
22
- * <ng-template kendoCalendarCenturyCellTemplate let-context="cellContext">
23
- * <span class="custom">{{context.formattedValue}}</span>
24
- * </ng-template>
25
- * </kendo-calendar>
26
- * `
27
- * })
28
- * export class AppComponent {
29
- * public activeView: CalendarView = 'century';
30
- * }
31
- * ```
32
- */
33
- var CenturyCellTemplateDirective = /** @class */ (function () {
34
- function CenturyCellTemplateDirective(templateRef) {
35
- this.templateRef = templateRef;
36
- }
37
- CenturyCellTemplateDirective = tslib_1.__decorate([
38
- Directive({
39
- selector: '[kendoCalendarCenturyCellTemplate]'
40
- }),
41
- tslib_1.__metadata("design:paramtypes", [TemplateRef])
42
- ], CenturyCellTemplateDirective);
43
- return CenturyCellTemplateDirective;
44
- }());
45
- export { CenturyCellTemplateDirective };
@@ -1,45 +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 { Directive, TemplateRef } from '@angular/core';
7
- /**
8
- * Used for rendering the decade cell content of the Calendar. To define the decade cell template, nest an `<ng-template>`
9
- * tag with the `kendoCalendarDecadeCellTemplate` directive inside the component tag. The template context is set to the
10
- * current component. To get a reference to the current date, use the `let-date` directive. To provide more details about
11
- * the current decade cell, get a reference to the current `cellContext` by using the `let-cellContext` directive.
12
- *
13
- * For more examples, refer to the article on [templates]({% slug templates_calendar %}).
14
- *
15
- * @example
16
- * ```ts
17
- * _@Component({
18
- * selector: 'my-app',
19
- * styles: ['.custom { color: red; }'],
20
- * template: `
21
- * <kendo-calendar [activeView]="activeView">
22
- * <ng-template kendoCalendarDecadeCellTemplate let-context="cellContext">
23
- * <span class="custom">{{context.formattedValue}}</span>
24
- * </ng-template>
25
- * </kendo-calendar>
26
- * `
27
- * })
28
- * export class AppComponent {
29
- * public activeView: CalendarView = 'decade';
30
- * }
31
- * ```
32
- */
33
- var DecadeCellTemplateDirective = /** @class */ (function () {
34
- function DecadeCellTemplateDirective(templateRef) {
35
- this.templateRef = templateRef;
36
- }
37
- DecadeCellTemplateDirective = tslib_1.__decorate([
38
- Directive({
39
- selector: '[kendoCalendarDecadeCellTemplate]'
40
- }),
41
- tslib_1.__metadata("design:paramtypes", [TemplateRef])
42
- ], DecadeCellTemplateDirective);
43
- return DecadeCellTemplateDirective;
44
- }());
45
- export { DecadeCellTemplateDirective };
@@ -1,44 +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 { Directive, TemplateRef } from '@angular/core';
7
- /**
8
- * Used for rendering the header title of the Calendar. To define the header title template, nest an `<ng-template>` tag
9
- * with the `kendoCalendarHeaderTitleTemplate` directive inside the component tag. The template context is set to the
10
- * current component. To get a reference to the current title, use the `let-title` directive. To provide more details about
11
- * the current title, get a reference to the current `date` by using the `let-date` directive or get a reference to the
12
- * current active view by using the `let-activeView` directive.
13
- *
14
- * For more examples, refer to the article on [templates]({% slug templates_calendar %}).
15
- *
16
- * @example
17
- * ```ts
18
- * _@Component({
19
- * selector: 'my-app',
20
- * styles: ['.custom { color: red; }'],
21
- * template: `
22
- * <kendo-calendar>
23
- * <ng-template kendoCalendarHeaderTitleTemplate let-title>
24
- * <span class="custom">{{title}}</span>
25
- * </ng-template>
26
- * </kendo-calendar>
27
- * `
28
- * })
29
- * export class AppComponent { }
30
- * ```
31
- */
32
- var HeaderTitleTemplateDirective = /** @class */ (function () {
33
- function HeaderTitleTemplateDirective(templateRef) {
34
- this.templateRef = templateRef;
35
- }
36
- HeaderTitleTemplateDirective = tslib_1.__decorate([
37
- Directive({
38
- selector: '[kendoCalendarHeaderTitleTemplate]'
39
- }),
40
- tslib_1.__metadata("design:paramtypes", [TemplateRef])
41
- ], HeaderTitleTemplateDirective);
42
- return HeaderTitleTemplateDirective;
43
- }());
44
- export { HeaderTitleTemplateDirective };
@@ -1,43 +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 { Directive, TemplateRef } from '@angular/core';
7
- /**
8
- * Used for rendering the month cell content of the Calendar. To define the month cell template, nest an `<ng-template>` tag
9
- * with the `kendoCalendarMonthCellTemplate` directive inside the component tag. The template context is set to the current
10
- * component. To get a reference to the current date, use the `let-date` directive. To provide more details about the current
11
- * month cell, get a reference to the current `cellContext` by using the `let-cellContext` directive.
12
- *
13
- * For more examples, refer to the article on [templates]({% slug templates_calendar %}).
14
- *
15
- * @example
16
- * ```ts
17
- * _@Component({
18
- * selector: 'my-app',
19
- * styles: ['.custom { color: red; }'],
20
- * template: `
21
- * <kendo-calendar>
22
- * <ng-template kendoCalendarMonthCellTemplate let-context="cellContext">
23
- * <span class="custom">{{context.formattedValue}}</span>
24
- * </ng-template>
25
- * </kendo-calendar>
26
- * `
27
- * })
28
- * export class AppComponent { }
29
- * ```
30
- */
31
- var MonthCellTemplateDirective = /** @class */ (function () {
32
- function MonthCellTemplateDirective(templateRef) {
33
- this.templateRef = templateRef;
34
- }
35
- MonthCellTemplateDirective = tslib_1.__decorate([
36
- Directive({
37
- selector: '[kendoCalendarMonthCellTemplate]'
38
- }),
39
- tslib_1.__metadata("design:paramtypes", [TemplateRef])
40
- ], MonthCellTemplateDirective);
41
- return MonthCellTemplateDirective;
42
- }());
43
- export { MonthCellTemplateDirective };