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

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 (555) 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 +40 -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 +0 -0
  54. package/{dist/es2015/common → common}/models/rounded.d.ts +0 -0
  55. package/{dist/es2015/common → common}/models/size.d.ts +0 -0
  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 +21 -12
  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 +36 -24
  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 +5 -1
  75. package/{dist/es2015/daterange → daterange}/date-range-input.d.ts +5 -3
  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 +12 -5
  78. package/daterange/date-range-popup.service.d.ts +52 -0
  79. package/{dist/es2015/daterange → daterange}/date-range-selection.directive.d.ts +8 -3
  80. package/{dist/es2015/daterange → daterange}/date-range-start-input.directive.d.ts +5 -1
  81. package/{dist/es2015/daterange → daterange}/date-range.component.d.ts +4 -1
  82. package/{dist/es2015/daterange → daterange}/date-range.module.d.ts +15 -1
  83. package/{dist/es2015/daterange → daterange}/date-range.service.d.ts +8 -38
  84. package/{dist/es2015/datetimepicker → datetimepicker}/datetimepicker.component.d.ts +38 -23
  85. package/datetimepicker/datetimepicker.module.d.ts +25 -0
  86. package/{dist/es2015/datetimepicker → datetimepicker}/localization/datetimepicker-custom-messages.component.d.ts +4 -1
  87. package/{dist/es2015/datetimepicker → datetimepicker}/localization/localized-messages.directive.d.ts +3 -0
  88. package/{dist/es2015/datetimepicker → datetimepicker}/localization/messages.d.ts +3 -0
  89. package/{dist/es2015/datetimepicker → datetimepicker}/models/active-tab.type.d.ts +0 -0
  90. package/{dist/es2015/defaults.d.ts → defaults.d.ts} +0 -0
  91. package/esm2015/calendar/calendar-common.module.js +45 -0
  92. package/{dist/es2015 → esm2015}/calendar/calendar.component.js +277 -246
  93. package/{dist/es2015 → esm2015}/calendar/calendar.module.js +71 -34
  94. package/{dist/es2015 → esm2015}/calendar/calendars.module.js +23 -14
  95. package/{dist/es2015 → esm2015}/calendar/for.directive.js +16 -25
  96. package/{dist/es2015 → esm2015}/calendar/header.component.js +97 -73
  97. package/{dist/es2015 → esm2015}/calendar/horizontal-view-list.component.js +155 -130
  98. package/esm2015/calendar/localization/calendar-custom-messages.component.js +40 -0
  99. package/esm2015/calendar/localization/calendar-localized-messages.directive.js +36 -0
  100. package/esm2015/calendar/localization/calendar-messages.js +26 -0
  101. package/esm2015/calendar/localization/multiview-calendar-custom-messages.component.js +40 -0
  102. package/esm2015/calendar/localization/multiview-calendar-localized-messages.directive.js +36 -0
  103. package/esm2015/calendar/localization/multiview-calendar-messages.js +26 -0
  104. package/{dist/es → esm2015}/calendar/models/cell-context.interface.js +1 -0
  105. package/{dist/es2015 → esm2015}/calendar/models/keydown.interface.js +1 -0
  106. package/{dist/es → esm2015}/calendar/models/navigation-action.enum.js +0 -0
  107. package/{dist/es2015 → esm2015}/calendar/models/row-length-options.interface.js +1 -0
  108. package/{dist/es/virtualization → esm2015/calendar}/models/scrollable.interface.js +1 -0
  109. package/{dist/es → esm2015}/calendar/models/selection-range-end.type.js +1 -0
  110. package/{dist/es2015 → esm2015}/calendar/models/selection-range.interface.js +0 -0
  111. package/{dist/es → esm2015}/calendar/models/selection.js +1 -0
  112. package/{dist/es → esm2015}/calendar/models/type.js +1 -0
  113. package/{dist/es → esm2015}/calendar/models/view-service.interface.js +1 -0
  114. package/{dist/es → esm2015}/calendar/models/view.enum.js +0 -0
  115. package/{dist/es → esm2015}/calendar/models/view.type.js +1 -0
  116. package/{dist/es2015 → esm2015}/calendar/multiview-calendar.component.js +246 -298
  117. package/{dist/es2015 → esm2015}/calendar/multiview-calendar.module.js +63 -32
  118. package/{dist/es2015 → esm2015}/calendar/navigation.component.js +71 -62
  119. package/{dist/es2015 → esm2015}/calendar/services/bus-view.service.js +9 -11
  120. package/{dist/es2015 → esm2015}/calendar/services/century-view.service.js +8 -11
  121. package/{dist/es2015 → esm2015}/calendar/services/decade-view.service.js +8 -11
  122. package/{dist/es2015 → esm2015}/calendar/services/disabled-dates.service.js +8 -12
  123. package/{dist/es2015 → esm2015}/calendar/services/dom.service.js +10 -26
  124. package/{dist/es2015 → esm2015}/calendar/services/month-view.service.js +9 -10
  125. package/{dist/es2015 → esm2015}/calendar/services/navigation.service.js +9 -9
  126. package/{dist/es2015 → esm2015}/calendar/services/scroll-sync.service.js +10 -13
  127. package/{dist/es2015 → esm2015}/calendar/services/selection.service.js +9 -9
  128. package/{dist/es2015 → esm2015}/calendar/services/weeknames.service.js +9 -9
  129. package/{dist/es2015 → esm2015}/calendar/services/year-view.service.js +9 -13
  130. package/{dist/es2015 → esm2015}/calendar/templates/cell-template.directive.js +12 -11
  131. package/{dist/es2015 → esm2015}/calendar/templates/century-cell-template.directive.js +12 -11
  132. package/{dist/es2015 → esm2015}/calendar/templates/decade-cell-template.directive.js +12 -11
  133. package/{dist/es2015 → esm2015}/calendar/templates/header-title-template.directive.js +12 -11
  134. package/{dist/es2015 → esm2015}/calendar/templates/month-cell-template.directive.js +12 -11
  135. package/{dist/es2015 → esm2015}/calendar/templates/navigation-item-template.directive.js +12 -11
  136. package/{dist/es2015 → esm2015}/calendar/templates/weeknumber-cell-template.directive.js +12 -11
  137. package/{dist/es2015 → esm2015}/calendar/templates/year-cell-template.directive.js +12 -11
  138. package/esm2015/calendar/templates.module.js +73 -0
  139. package/{dist/es2015 → esm2015}/calendar/view-list.component.js +135 -120
  140. package/{dist/es2015 → esm2015}/calendar/view.component.js +104 -98
  141. package/{dist/es2015 → esm2015}/common/dom-queries.js +0 -0
  142. package/{dist/es → esm2015}/common/models/fillmode.js +1 -0
  143. package/{dist/es → esm2015}/common/models/rounded.js +1 -0
  144. package/{dist/es → esm2015}/common/models/size.js +1 -0
  145. package/{dist/es2015 → esm2015}/common/picker.service.js +0 -0
  146. package/{dist/es2015 → esm2015}/common/utils.js +0 -0
  147. package/{dist/es → esm2015}/dateinput/arrow.enum.js +0 -0
  148. package/{dist/es2015 → esm2015}/dateinput/dateinput.component.js +179 -183
  149. package/esm2015/dateinput/dateinput.module.js +41 -0
  150. package/esm2015/dateinput/localization/dateinput-custom-messages.component.js +40 -0
  151. package/esm2015/dateinput/localization/dateinput-localized-messages.directive.js +36 -0
  152. package/esm2015/dateinput/localization/messages.js +24 -0
  153. package/{dist/es → esm2015}/dateinput/models/format-placeholder.model.js +1 -0
  154. package/{dist/es → esm2015}/dateinput/models/format-settings.model.js +1 -0
  155. package/{dist/es → esm2015}/dateinput/models/incremental-steps.model.js +1 -0
  156. package/{dist/es2015 → esm2015}/dateinputs.module.js +28 -10
  157. package/{dist/es2015 → esm2015}/datepicker/datepicker.component.js +285 -285
  158. package/esm2015/datepicker/datepicker.module.js +72 -0
  159. package/esm2015/datepicker/localization/datepicker-custom-messages.component.js +40 -0
  160. package/esm2015/datepicker/localization/datepicker-localized-messages.directive.js +36 -0
  161. package/esm2015/datepicker/localization/messages.js +28 -0
  162. package/{dist/es → esm2015}/daterange/auto-correct-on.type.js +1 -0
  163. package/{dist/es2015 → esm2015}/daterange/date-range-end-input.directive.js +21 -27
  164. package/{dist/es2015 → esm2015}/daterange/date-range-input.js +11 -8
  165. package/esm2015/daterange/date-range-popup-template.directive.js +23 -0
  166. package/{dist/es2015 → esm2015}/daterange/date-range-popup.component.js +75 -91
  167. package/esm2015/daterange/date-range-popup.service.js +87 -0
  168. package/{dist/es2015 → esm2015}/daterange/date-range-selection.directive.js +26 -39
  169. package/{dist/es2015 → esm2015}/daterange/date-range-start-input.directive.js +21 -27
  170. package/esm2015/daterange/date-range.component.js +74 -0
  171. package/{dist/es2015 → esm2015}/daterange/date-range.module.js +27 -12
  172. package/{dist/es2015 → esm2015}/daterange/date-range.service.js +8 -75
  173. package/{dist/es2015 → esm2015}/datetimepicker/datetimepicker.component.js +398 -227
  174. package/esm2015/datetimepicker/datetimepicker.module.js +80 -0
  175. package/esm2015/datetimepicker/localization/datetimepicker-custom-messages.component.js +40 -0
  176. package/esm2015/datetimepicker/localization/localized-messages.directive.js +36 -0
  177. package/esm2015/datetimepicker/localization/messages.js +48 -0
  178. package/{dist/es → esm2015}/datetimepicker/models/active-tab.type.js +1 -0
  179. package/{dist/es2015 → esm2015}/defaults.js +0 -0
  180. package/esm2015/kendo-angular-dateinputs.js +8 -0
  181. package/{dist/es → esm2015}/main.js +25 -0
  182. package/{dist/es2015 → esm2015}/package-metadata.js +1 -1
  183. package/{dist/es → esm2015}/popup-settings.model.js +1 -0
  184. package/{dist/es2015 → esm2015}/preventable-event.js +0 -0
  185. package/esm2015/timepicker/localization/messages.js +34 -0
  186. package/esm2015/timepicker/localization/timepicker-custom-messages.component.js +40 -0
  187. package/esm2015/timepicker/localization/timepicker-localized-messages.directive.js +36 -0
  188. package/esm2015/timepicker/localization/timeselector-custom-messages.component.js +42 -0
  189. package/esm2015/timepicker/localization/timeselector-localized-messages.directive.js +36 -0
  190. package/{dist/es → esm2015}/timepicker/models/incremental-steps.model.js +1 -0
  191. package/{dist/es → esm2015}/timepicker/models/list-item.interface.js +1 -0
  192. package/{dist/es → esm2015}/timepicker/models/list-service-settings.js +1 -0
  193. package/{dist/es → esm2015}/timepicker/models/list-service.interface.js +1 -0
  194. package/{dist/es2015 → esm2015}/timepicker/models/time-part.default.js +0 -0
  195. package/{dist/es2015 → esm2015}/timepicker/services/dayperiod.service.js +9 -15
  196. package/{dist/es2015 → esm2015}/timepicker/services/dom.service.js +8 -13
  197. package/{dist/es2015 → esm2015}/timepicker/services/hours.service.js +9 -14
  198. package/{dist/es2015 → esm2015}/timepicker/services/milliseconds.service.js +9 -14
  199. package/{dist/es2015 → esm2015}/timepicker/services/minutes.service.js +9 -14
  200. package/{dist/es2015 → esm2015}/timepicker/services/seconds.service.js +9 -14
  201. package/{dist/es2015 → esm2015}/timepicker/timelist.component.js +66 -61
  202. package/{dist/es2015 → esm2015}/timepicker/timepicker.component.js +219 -179
  203. package/{dist/es2015 → esm2015}/timepicker/timepicker.module.js +32 -15
  204. package/{dist/es2015 → esm2015}/timepicker/timeselector.component.js +181 -104
  205. package/{dist/es2015 → esm2015}/timepicker/util.js +8 -20
  206. package/{dist/es2015 → esm2015}/touch-enabled.js +0 -0
  207. package/{dist/es2015 → esm2015}/util.js +1 -6
  208. package/{dist/es2015 → esm2015}/validators/disabled-date.validator.js +0 -0
  209. package/{dist/es2015 → esm2015}/validators/disabled-dates-range.validator.js +0 -2
  210. package/{dist/es2015 → esm2015}/validators/incomplete-date.validator.js +0 -0
  211. package/{dist/es2015 → esm2015}/validators/max.validator.js +0 -0
  212. package/{dist/es2015 → esm2015}/validators/min.validator.js +0 -0
  213. package/{dist/es2015 → esm2015}/validators/time-range.validator.js +0 -0
  214. package/{dist/es2015/calendar → esm2015/virtualization}/models/scrollable.interface.js +1 -0
  215. package/{dist/es2015 → esm2015}/virtualization/services/row-height.service.js +1 -3
  216. package/{dist/es2015 → esm2015}/virtualization/services/scroller.service.js +0 -2
  217. package/{dist/es2015 → esm2015}/virtualization/virtualization.component.js +75 -90
  218. package/esm2015/virtualization/virtualization.module.js +30 -0
  219. package/{dist/fesm2015/index.js → fesm2015/kendo-angular-dateinputs.js} +9630 -9048
  220. package/{dist/es/calendar/models/selection-range.interface.js → kendo-angular-dateinputs.d.ts} +3 -2
  221. package/{dist/es2015/main.d.ts → main.d.ts} +25 -0
  222. package/{dist/es2015/package-metadata.d.ts → package-metadata.d.ts} +0 -0
  223. package/package.json +45 -118
  224. package/{dist/es2015/popup-settings.model.d.ts → popup-settings.model.d.ts} +0 -0
  225. package/{dist/es2015/preventable-event.d.ts → preventable-event.d.ts} +0 -0
  226. package/schematics/ngAdd/index.js +5 -2
  227. package/schematics/ngAdd/index.js.map +1 -1
  228. package/{dist/es2015/timepicker → timepicker}/localization/messages.d.ts +3 -0
  229. package/{dist/es2015/timepicker → timepicker}/localization/timepicker-custom-messages.component.d.ts +4 -1
  230. package/{dist/es2015/timepicker → timepicker}/localization/timepicker-localized-messages.directive.d.ts +3 -0
  231. package/{dist/es2015/timepicker → timepicker}/localization/timeselector-custom-messages.component.d.ts +4 -1
  232. package/{dist/es2015/timepicker → timepicker}/localization/timeselector-localized-messages.directive.d.ts +3 -0
  233. package/{dist/es2015/timepicker → timepicker}/models/incremental-steps.model.d.ts +0 -0
  234. package/{dist/es2015/timepicker → timepicker}/models/list-item.interface.d.ts +0 -0
  235. package/{dist/es2015/timepicker → timepicker}/models/list-service-settings.d.ts +0 -0
  236. package/{dist/es2015/timepicker → timepicker}/models/list-service.interface.d.ts +0 -0
  237. package/{dist/es2015/timepicker → timepicker}/models/time-part.default.d.ts +0 -0
  238. package/{dist/es2015/timepicker → timepicker}/services/dayperiod.service.d.ts +3 -0
  239. package/{dist/es2015/timepicker → timepicker}/services/dom.service.d.ts +3 -0
  240. package/{dist/es2015/timepicker → timepicker}/services/hours.service.d.ts +3 -0
  241. package/{dist/es2015/timepicker → timepicker}/services/milliseconds.service.d.ts +3 -0
  242. package/{dist/es2015/timepicker → timepicker}/services/minutes.service.d.ts +3 -0
  243. package/{dist/es2015/timepicker → timepicker}/services/seconds.service.d.ts +3 -0
  244. package/{dist/es2015/timepicker → timepicker}/timelist.component.d.ts +4 -1
  245. package/{dist/es2015/timepicker → timepicker}/timepicker.component.d.ts +32 -18
  246. package/timepicker/timepicker.module.d.ts +27 -0
  247. package/{dist/es2015/timepicker → timepicker}/timeselector.component.d.ts +10 -4
  248. package/{dist/es2015/timepicker → timepicker}/util.d.ts +0 -0
  249. package/{dist/es2015/touch-enabled.d.ts → touch-enabled.d.ts} +0 -0
  250. package/{dist/es2015/util.d.ts → util.d.ts} +0 -0
  251. package/{dist/es2015/validators → validators}/disabled-date.validator.d.ts +0 -0
  252. package/{dist/es2015/validators → validators}/disabled-dates-range.validator.d.ts +0 -0
  253. package/{dist/es2015/validators → validators}/incomplete-date.validator.d.ts +0 -0
  254. package/{dist/es2015/validators → validators}/max.validator.d.ts +0 -0
  255. package/{dist/es2015/validators → validators}/min.validator.d.ts +0 -0
  256. package/{dist/es2015/validators → validators}/time-range.validator.d.ts +0 -0
  257. package/{dist/es2015/virtualization → virtualization}/models/scrollable.interface.d.ts +0 -0
  258. package/{dist/es2015/virtualization → virtualization}/services/row-height.service.d.ts +0 -0
  259. package/{dist/es2015/virtualization → virtualization}/services/scroller.service.d.ts +0 -0
  260. package/{dist/es2015/virtualization → virtualization}/virtualization.component.d.ts +8 -5
  261. package/{dist/es2015/virtualization → virtualization}/virtualization.module.d.ts +6 -0
  262. package/dist/cdn/js/kendo-angular-dateinputs.js +0 -20
  263. package/dist/cdn/main.js +0 -5
  264. package/dist/es/calendar/calendar-common.module.js +0 -41
  265. package/dist/es/calendar/calendar.component.js +0 -1189
  266. package/dist/es/calendar/calendar.module.js +0 -108
  267. package/dist/es/calendar/calendars.module.js +0 -60
  268. package/dist/es/calendar/for.directive.js +0 -135
  269. package/dist/es/calendar/header.component.js +0 -170
  270. package/dist/es/calendar/horizontal-view-list.component.js +0 -363
  271. package/dist/es/calendar/localization/calendar-custom-messages.component.js +0 -43
  272. package/dist/es/calendar/localization/calendar-localized-messages.directive.js +0 -35
  273. package/dist/es/calendar/localization/calendar-messages.js +0 -30
  274. package/dist/es/calendar/localization/multiview-calendar-custom-messages.component.js +0 -43
  275. package/dist/es/calendar/localization/multiview-calendar-localized-messages.directive.js +0 -35
  276. package/dist/es/calendar/localization/multiview-calendar-messages.js +0 -30
  277. package/dist/es/calendar/models/keydown.interface.js +0 -4
  278. package/dist/es/calendar/models/row-length-options.interface.js +0 -4
  279. package/dist/es/calendar/models/scrollable.interface.js +0 -4
  280. package/dist/es/calendar/multiview-calendar.component.js +0 -1122
  281. package/dist/es/calendar/multiview-calendar.module.js +0 -97
  282. package/dist/es/calendar/navigation.component.js +0 -173
  283. package/dist/es/calendar/services/bus-view.service.js +0 -83
  284. package/dist/es/calendar/services/century-view.service.js +0 -180
  285. package/dist/es/calendar/services/decade-view.service.js +0 -179
  286. package/dist/es/calendar/services/disabled-dates.service.js +0 -70
  287. package/dist/es/calendar/services/dom.service.js +0 -195
  288. package/dist/es/calendar/services/month-view.service.js +0 -203
  289. package/dist/es/calendar/services/navigation.service.js +0 -53
  290. package/dist/es/calendar/services/scroll-sync.service.js +0 -85
  291. package/dist/es/calendar/services/selection.service.js +0 -55
  292. package/dist/es/calendar/services/weeknames.service.js +0 -27
  293. package/dist/es/calendar/services/year-view.service.js +0 -204
  294. package/dist/es/calendar/templates/cell-template.directive.js +0 -46
  295. package/dist/es/calendar/templates/century-cell-template.directive.js +0 -45
  296. package/dist/es/calendar/templates/decade-cell-template.directive.js +0 -45
  297. package/dist/es/calendar/templates/header-title-template.directive.js +0 -44
  298. package/dist/es/calendar/templates/month-cell-template.directive.js +0 -43
  299. package/dist/es/calendar/templates/navigation-item-template.directive.js +0 -44
  300. package/dist/es/calendar/templates/weeknumber-cell-template.directive.js +0 -43
  301. package/dist/es/calendar/templates/year-cell-template.directive.js +0 -46
  302. package/dist/es/calendar/templates.module.js +0 -59
  303. package/dist/es/calendar/view-list.component.js +0 -301
  304. package/dist/es/calendar/view.component.js +0 -318
  305. package/dist/es/common/dom-queries.js +0 -24
  306. package/dist/es/common/picker.service.js +0 -18
  307. package/dist/es/common/utils.js +0 -35
  308. package/dist/es/dateinput/dateinput.component.js +0 -1617
  309. package/dist/es/dateinput/dateinput.module.js +0 -37
  310. package/dist/es/dateinput/localization/dateinput-custom-messages.component.js +0 -43
  311. package/dist/es/dateinput/localization/dateinput-localized-messages.directive.js +0 -35
  312. package/dist/es/dateinput/localization/messages.js +0 -26
  313. package/dist/es/dateinputs.module.js +0 -63
  314. package/dist/es/datepicker/datepicker.component.js +0 -1256
  315. package/dist/es/datepicker/datepicker.module.js +0 -55
  316. package/dist/es/datepicker/localization/datepicker-custom-messages.component.js +0 -43
  317. package/dist/es/datepicker/localization/datepicker-localized-messages.directive.js +0 -35
  318. package/dist/es/datepicker/localization/messages.js +0 -34
  319. package/dist/es/daterange/date-range-end-input.directive.js +0 -97
  320. package/dist/es/daterange/date-range-input.js +0 -131
  321. package/dist/es/daterange/date-range-popup-template.directive.js +0 -23
  322. package/dist/es/daterange/date-range-popup.component.js +0 -403
  323. package/dist/es/daterange/date-range-selection.directive.js +0 -230
  324. package/dist/es/daterange/date-range-start-input.directive.js +0 -97
  325. package/dist/es/daterange/date-range.component.js +0 -71
  326. package/dist/es/daterange/date-range.module.js +0 -83
  327. package/dist/es/daterange/date-range.service.js +0 -208
  328. package/dist/es/datetimepicker/datetimepicker.component.js +0 -1309
  329. package/dist/es/datetimepicker/datetimepicker.module.js +0 -57
  330. package/dist/es/datetimepicker/localization/datetimepicker-custom-messages.component.js +0 -43
  331. package/dist/es/datetimepicker/localization/localized-messages.directive.js +0 -35
  332. package/dist/es/datetimepicker/localization/messages.js +0 -74
  333. package/dist/es/defaults.js +0 -24
  334. package/dist/es/index.js +0 -63
  335. package/dist/es/package-metadata.js +0 -15
  336. package/dist/es/preventable-event.js +0 -29
  337. package/dist/es/timepicker/localization/messages.js +0 -46
  338. package/dist/es/timepicker/localization/timepicker-custom-messages.component.js +0 -43
  339. package/dist/es/timepicker/localization/timepicker-localized-messages.directive.js +0 -35
  340. package/dist/es/timepicker/localization/timeselector-custom-messages.component.js +0 -45
  341. package/dist/es/timepicker/localization/timeselector-localized-messages.directive.js +0 -35
  342. package/dist/es/timepicker/models/time-part.default.js +0 -14
  343. package/dist/es/timepicker/services/dayperiod.service.js +0 -130
  344. package/dist/es/timepicker/services/dom.service.js +0 -64
  345. package/dist/es/timepicker/services/hours.service.js +0 -129
  346. package/dist/es/timepicker/services/milliseconds.service.js +0 -130
  347. package/dist/es/timepicker/services/minutes.service.js +0 -127
  348. package/dist/es/timepicker/services/seconds.service.js +0 -127
  349. package/dist/es/timepicker/timelist.component.js +0 -297
  350. package/dist/es/timepicker/timepicker.component.js +0 -1044
  351. package/dist/es/timepicker/timepicker.module.js +0 -75
  352. package/dist/es/timepicker/timeselector.component.js +0 -486
  353. package/dist/es/timepicker/util.js +0 -82
  354. package/dist/es/touch-enabled.js +0 -9
  355. package/dist/es/util.js +0 -395
  356. package/dist/es/validators/disabled-date.validator.js +0 -18
  357. package/dist/es/validators/disabled-dates-range.validator.js +0 -28
  358. package/dist/es/validators/incomplete-date.validator.js +0 -18
  359. package/dist/es/validators/max.validator.js +0 -21
  360. package/dist/es/validators/min.validator.js +0 -21
  361. package/dist/es/validators/time-range.validator.js +0 -23
  362. package/dist/es/virtualization/services/row-height.service.js +0 -72
  363. package/dist/es/virtualization/services/scroller.service.js +0 -111
  364. package/dist/es/virtualization/virtualization.component.js +0 -343
  365. package/dist/es/virtualization/virtualization.module.js +0 -30
  366. package/dist/es2015/calendar/calendar-common.module.d.ts +0 -15
  367. package/dist/es2015/calendar/calendar-common.module.js +0 -38
  368. package/dist/es2015/calendar/localization/calendar-custom-messages.component.js +0 -35
  369. package/dist/es2015/calendar/localization/calendar-localized-messages.directive.js +0 -31
  370. package/dist/es2015/calendar/localization/calendar-messages.js +0 -24
  371. package/dist/es2015/calendar/localization/multiview-calendar-custom-messages.component.js +0 -35
  372. package/dist/es2015/calendar/localization/multiview-calendar-localized-messages.directive.js +0 -31
  373. package/dist/es2015/calendar/localization/multiview-calendar-messages.js +0 -24
  374. package/dist/es2015/calendar/models/cell-context.interface.js +0 -4
  375. package/dist/es2015/calendar/models/navigation-action.enum.js +0 -20
  376. package/dist/es2015/calendar/models/selection-range-end.type.js +0 -4
  377. package/dist/es2015/calendar/models/selection.js +0 -4
  378. package/dist/es2015/calendar/models/type.js +0 -4
  379. package/dist/es2015/calendar/models/view-service.interface.js +0 -4
  380. package/dist/es2015/calendar/models/view.enum.js +0 -16
  381. package/dist/es2015/calendar/models/view.type.js +0 -4
  382. package/dist/es2015/calendar/templates.module.d.ts +0 -21
  383. package/dist/es2015/calendar/templates.module.js +0 -56
  384. package/dist/es2015/common/models/fillmode.js +0 -4
  385. package/dist/es2015/common/models/rounded.js +0 -4
  386. package/dist/es2015/common/models/size.js +0 -4
  387. package/dist/es2015/dateinput/arrow.enum.js +0 -13
  388. package/dist/es2015/dateinput/dateinput.module.d.ts +0 -10
  389. package/dist/es2015/dateinput/dateinput.module.js +0 -34
  390. package/dist/es2015/dateinput/localization/dateinput-custom-messages.component.js +0 -35
  391. package/dist/es2015/dateinput/localization/dateinput-localized-messages.directive.js +0 -31
  392. package/dist/es2015/dateinput/localization/messages.js +0 -20
  393. package/dist/es2015/dateinput/models/format-placeholder.model.js +0 -4
  394. package/dist/es2015/dateinput/models/format-settings.model.js +0 -4
  395. package/dist/es2015/dateinput/models/incremental-steps.model.js +0 -4
  396. package/dist/es2015/datepicker/datepicker.module.d.ts +0 -10
  397. package/dist/es2015/datepicker/datepicker.module.js +0 -52
  398. package/dist/es2015/datepicker/localization/datepicker-custom-messages.component.js +0 -35
  399. package/dist/es2015/datepicker/localization/datepicker-localized-messages.directive.js +0 -31
  400. package/dist/es2015/datepicker/localization/messages.js +0 -28
  401. package/dist/es2015/daterange/auto-correct-on.type.js +0 -4
  402. package/dist/es2015/daterange/date-range-popup-template.directive.js +0 -22
  403. package/dist/es2015/daterange/date-range.component.js +0 -68
  404. package/dist/es2015/datetimepicker/datetimepicker.module.d.ts +0 -10
  405. package/dist/es2015/datetimepicker/datetimepicker.module.js +0 -57
  406. package/dist/es2015/datetimepicker/localization/datetimepicker-custom-messages.component.js +0 -35
  407. package/dist/es2015/datetimepicker/localization/localized-messages.directive.js +0 -31
  408. package/dist/es2015/datetimepicker/localization/messages.js +0 -68
  409. package/dist/es2015/datetimepicker/models/active-tab.type.js +0 -4
  410. package/dist/es2015/index.d.ts +0 -63
  411. package/dist/es2015/index.js +0 -63
  412. package/dist/es2015/index.metadata.json +0 -1
  413. package/dist/es2015/main.js +0 -35
  414. package/dist/es2015/popup-settings.model.js +0 -4
  415. package/dist/es2015/timepicker/localization/messages.js +0 -40
  416. package/dist/es2015/timepicker/localization/timepicker-custom-messages.component.js +0 -35
  417. package/dist/es2015/timepicker/localization/timepicker-localized-messages.directive.js +0 -31
  418. package/dist/es2015/timepicker/localization/timeselector-custom-messages.component.js +0 -37
  419. package/dist/es2015/timepicker/localization/timeselector-localized-messages.directive.js +0 -31
  420. package/dist/es2015/timepicker/models/incremental-steps.model.js +0 -4
  421. package/dist/es2015/timepicker/models/list-item.interface.js +0 -4
  422. package/dist/es2015/timepicker/models/list-service-settings.js +0 -4
  423. package/dist/es2015/timepicker/models/list-service.interface.js +0 -4
  424. package/dist/es2015/timepicker/timepicker.module.d.ts +0 -10
  425. package/dist/es2015/virtualization/models/scrollable.interface.js +0 -4
  426. package/dist/es2015/virtualization/virtualization.module.js +0 -27
  427. package/dist/fesm5/index.js +0 -15216
  428. package/dist/npm/calendar/calendar-common.module.js +0 -43
  429. package/dist/npm/calendar/calendar.component.js +0 -1191
  430. package/dist/npm/calendar/calendar.module.js +0 -110
  431. package/dist/npm/calendar/calendars.module.js +0 -62
  432. package/dist/npm/calendar/for.directive.js +0 -138
  433. package/dist/npm/calendar/header.component.js +0 -172
  434. package/dist/npm/calendar/horizontal-view-list.component.js +0 -365
  435. package/dist/npm/calendar/localization/calendar-custom-messages.component.js +0 -45
  436. package/dist/npm/calendar/localization/calendar-localized-messages.directive.js +0 -37
  437. package/dist/npm/calendar/localization/calendar-messages.js +0 -32
  438. package/dist/npm/calendar/localization/multiview-calendar-custom-messages.component.js +0 -45
  439. package/dist/npm/calendar/localization/multiview-calendar-localized-messages.directive.js +0 -37
  440. package/dist/npm/calendar/localization/multiview-calendar-messages.js +0 -32
  441. package/dist/npm/calendar/models/cell-context.interface.js +0 -6
  442. package/dist/npm/calendar/models/keydown.interface.js +0 -6
  443. package/dist/npm/calendar/models/navigation-action.enum.js +0 -22
  444. package/dist/npm/calendar/models/row-length-options.interface.js +0 -6
  445. package/dist/npm/calendar/models/scrollable.interface.js +0 -6
  446. package/dist/npm/calendar/models/selection-range-end.type.js +0 -6
  447. package/dist/npm/calendar/models/selection-range.interface.js +0 -10
  448. package/dist/npm/calendar/models/selection.js +0 -6
  449. package/dist/npm/calendar/models/type.js +0 -6
  450. package/dist/npm/calendar/models/view-service.interface.js +0 -6
  451. package/dist/npm/calendar/models/view.enum.js +0 -18
  452. package/dist/npm/calendar/models/view.type.js +0 -6
  453. package/dist/npm/calendar/multiview-calendar.component.js +0 -1124
  454. package/dist/npm/calendar/multiview-calendar.module.js +0 -99
  455. package/dist/npm/calendar/navigation.component.js +0 -175
  456. package/dist/npm/calendar/services/bus-view.service.js +0 -85
  457. package/dist/npm/calendar/services/century-view.service.js +0 -182
  458. package/dist/npm/calendar/services/decade-view.service.js +0 -181
  459. package/dist/npm/calendar/services/disabled-dates.service.js +0 -72
  460. package/dist/npm/calendar/services/dom.service.js +0 -212
  461. package/dist/npm/calendar/services/month-view.service.js +0 -205
  462. package/dist/npm/calendar/services/navigation.service.js +0 -55
  463. package/dist/npm/calendar/services/scroll-sync.service.js +0 -88
  464. package/dist/npm/calendar/services/selection.service.js +0 -57
  465. package/dist/npm/calendar/services/weeknames.service.js +0 -29
  466. package/dist/npm/calendar/services/year-view.service.js +0 -207
  467. package/dist/npm/calendar/templates/cell-template.directive.js +0 -48
  468. package/dist/npm/calendar/templates/century-cell-template.directive.js +0 -47
  469. package/dist/npm/calendar/templates/decade-cell-template.directive.js +0 -47
  470. package/dist/npm/calendar/templates/header-title-template.directive.js +0 -46
  471. package/dist/npm/calendar/templates/month-cell-template.directive.js +0 -45
  472. package/dist/npm/calendar/templates/navigation-item-template.directive.js +0 -46
  473. package/dist/npm/calendar/templates/weeknumber-cell-template.directive.js +0 -45
  474. package/dist/npm/calendar/templates/year-cell-template.directive.js +0 -48
  475. package/dist/npm/calendar/templates.module.js +0 -61
  476. package/dist/npm/calendar/view-list.component.js +0 -303
  477. package/dist/npm/calendar/view.component.js +0 -320
  478. package/dist/npm/common/dom-queries.js +0 -26
  479. package/dist/npm/common/models/fillmode.js +0 -6
  480. package/dist/npm/common/models/rounded.js +0 -6
  481. package/dist/npm/common/models/size.js +0 -6
  482. package/dist/npm/common/picker.service.js +0 -20
  483. package/dist/npm/common/utils.js +0 -37
  484. package/dist/npm/dateinput/arrow.enum.js +0 -15
  485. package/dist/npm/dateinput/dateinput.component.js +0 -1620
  486. package/dist/npm/dateinput/dateinput.module.js +0 -39
  487. package/dist/npm/dateinput/localization/dateinput-custom-messages.component.js +0 -45
  488. package/dist/npm/dateinput/localization/dateinput-localized-messages.directive.js +0 -37
  489. package/dist/npm/dateinput/localization/messages.js +0 -28
  490. package/dist/npm/dateinput/models/format-placeholder.model.js +0 -6
  491. package/dist/npm/dateinput/models/format-settings.model.js +0 -6
  492. package/dist/npm/dateinput/models/incremental-steps.model.js +0 -6
  493. package/dist/npm/dateinputs.module.js +0 -65
  494. package/dist/npm/datepicker/datepicker.component.js +0 -1258
  495. package/dist/npm/datepicker/datepicker.module.js +0 -57
  496. package/dist/npm/datepicker/localization/datepicker-custom-messages.component.js +0 -45
  497. package/dist/npm/datepicker/localization/datepicker-localized-messages.directive.js +0 -37
  498. package/dist/npm/datepicker/localization/messages.js +0 -36
  499. package/dist/npm/daterange/auto-correct-on.type.js +0 -6
  500. package/dist/npm/daterange/date-range-end-input.directive.js +0 -99
  501. package/dist/npm/daterange/date-range-input.js +0 -133
  502. package/dist/npm/daterange/date-range-popup-template.directive.js +0 -25
  503. package/dist/npm/daterange/date-range-popup.component.js +0 -405
  504. package/dist/npm/daterange/date-range-selection.directive.js +0 -232
  505. package/dist/npm/daterange/date-range-start-input.directive.js +0 -99
  506. package/dist/npm/daterange/date-range.component.js +0 -73
  507. package/dist/npm/daterange/date-range.module.js +0 -85
  508. package/dist/npm/daterange/date-range.service.js +0 -211
  509. package/dist/npm/datetimepicker/datetimepicker.component.js +0 -1311
  510. package/dist/npm/datetimepicker/datetimepicker.module.js +0 -59
  511. package/dist/npm/datetimepicker/localization/datetimepicker-custom-messages.component.js +0 -45
  512. package/dist/npm/datetimepicker/localization/localized-messages.directive.js +0 -37
  513. package/dist/npm/datetimepicker/localization/messages.js +0 -76
  514. package/dist/npm/datetimepicker/models/active-tab.type.js +0 -6
  515. package/dist/npm/defaults.js +0 -26
  516. package/dist/npm/index.js +0 -127
  517. package/dist/npm/main.js +0 -68
  518. package/dist/npm/package-metadata.js +0 -17
  519. package/dist/npm/popup-settings.model.js +0 -6
  520. package/dist/npm/preventable-event.js +0 -31
  521. package/dist/npm/timepicker/localization/messages.js +0 -48
  522. package/dist/npm/timepicker/localization/timepicker-custom-messages.component.js +0 -45
  523. package/dist/npm/timepicker/localization/timepicker-localized-messages.directive.js +0 -37
  524. package/dist/npm/timepicker/localization/timeselector-custom-messages.component.js +0 -47
  525. package/dist/npm/timepicker/localization/timeselector-localized-messages.directive.js +0 -37
  526. package/dist/npm/timepicker/models/incremental-steps.model.js +0 -6
  527. package/dist/npm/timepicker/models/list-item.interface.js +0 -6
  528. package/dist/npm/timepicker/models/list-service-settings.js +0 -6
  529. package/dist/npm/timepicker/models/list-service.interface.js +0 -6
  530. package/dist/npm/timepicker/models/time-part.default.js +0 -16
  531. package/dist/npm/timepicker/services/dayperiod.service.js +0 -136
  532. package/dist/npm/timepicker/services/dom.service.js +0 -70
  533. package/dist/npm/timepicker/services/hours.service.js +0 -134
  534. package/dist/npm/timepicker/services/milliseconds.service.js +0 -135
  535. package/dist/npm/timepicker/services/minutes.service.js +0 -132
  536. package/dist/npm/timepicker/services/seconds.service.js +0 -132
  537. package/dist/npm/timepicker/timelist.component.js +0 -299
  538. package/dist/npm/timepicker/timepicker.component.js +0 -1046
  539. package/dist/npm/timepicker/timepicker.module.js +0 -77
  540. package/dist/npm/timepicker/timeselector.component.js +0 -488
  541. package/dist/npm/timepicker/util.js +0 -101
  542. package/dist/npm/touch-enabled.js +0 -11
  543. package/dist/npm/util.js +0 -399
  544. package/dist/npm/validators/disabled-date.validator.js +0 -20
  545. package/dist/npm/validators/disabled-dates-range.validator.js +0 -30
  546. package/dist/npm/validators/incomplete-date.validator.js +0 -20
  547. package/dist/npm/validators/max.validator.js +0 -23
  548. package/dist/npm/validators/min.validator.js +0 -23
  549. package/dist/npm/validators/time-range.validator.js +0 -25
  550. package/dist/npm/virtualization/models/scrollable.interface.js +0 -6
  551. package/dist/npm/virtualization/services/row-height.service.js +0 -74
  552. package/dist/npm/virtualization/services/scroller.service.js +0 -113
  553. package/dist/npm/virtualization/virtualization.component.js +0 -346
  554. package/dist/npm/virtualization/virtualization.module.js +0 -32
  555. package/dist/systemjs/kendo-angular-dateinputs.js +0 -5
@@ -1,405 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var kendo_angular_l10n_1 = require("@progress/kendo-angular-l10n");
10
- var kendo_angular_popup_1 = require("@progress/kendo-angular-popup");
11
- var date_range_popup_template_directive_1 = require("./date-range-popup-template.directive");
12
- var date_range_service_1 = require("./date-range.service");
13
- var multiview_calendar_component_1 = require("../calendar/multiview-calendar.component");
14
- var preventable_event_1 = require("../preventable-event");
15
- var kendo_angular_common_1 = require("@progress/kendo-angular-common");
16
- var rxjs_1 = require("rxjs");
17
- var operators_1 = require("rxjs/operators");
18
- var util_1 = require("../util");
19
- var utils_1 = require("../common/utils");
20
- /**
21
- * Represents the Kendo UI DateRangePopup component for Angular.
22
- *
23
- * @example
24
- * ```ts
25
- * import { DateInputsModule, DateRangeService } from '@progress/kendo-angular-dateinputs';
26
- *
27
- * _@Component({
28
- * providers: [DateRangeService],
29
- * selector: 'my-app',
30
- * template: `
31
- * <button #anchor (click)="popup.toggle()">Toggle</button>
32
- * <kendo-daterange-popup [anchor]="anchor" #popup></kendo-daterange-popup>
33
- * `
34
- * })
35
- * export class AppComponent {
36
- * }
37
- * ```
38
- */
39
- var DateRangePopupComponent = /** @class */ (function () {
40
- function DateRangePopupComponent(popupService, dateRangeService, ref, zone, rtl) {
41
- this.popupService = popupService;
42
- this.dateRangeService = dateRangeService;
43
- this.ref = ref;
44
- this.zone = zone;
45
- this.rtl = rtl;
46
- /**
47
- * Controls the popup animation.
48
- * By default, the opening and closing animations are enabled.
49
- * For more information about controlling the popup animations,
50
- * refer to the article on [animations]({% slug animations_popup %}).
51
- */
52
- this.animate = true;
53
- /**
54
- * Configures the collision behavior of the popup.
55
- * For more information, refer to the article on
56
- * [viewport boundary detection]({% slug viewportboundarydetection_popup %}).
57
- */
58
- this.collision = { horizontal: 'fit', vertical: 'flip' };
59
- /**
60
- * Fires each time the popup is about to open.
61
- * This event is preventable. If you cancel the event, the popup will remain closed.
62
- * For more information, refer to the section on
63
- * [events]({% slug overview_datepicker %}#toc-events).
64
- */
65
- this.open = new core_1.EventEmitter();
66
- /**
67
- * Fires each time the popup is about to close.
68
- * This event is preventable. If you cancel the event, the popup will remain open.
69
- * For more information, refer to the section on
70
- * [events]({% slug overview_datepicker %}#toc-events).
71
- */
72
- this.close = new core_1.EventEmitter();
73
- /**
74
- * Fires each time the calendar element is blurred.
75
- */
76
- this.onBlur = new core_1.EventEmitter(); //tslint:disable-line:no-output-rename
77
- /**
78
- * Fires each time the calendar element is focused.
79
- */
80
- this.onFocus = new core_1.EventEmitter(); //tslint:disable-line:no-output-rename
81
- /**
82
- * Fires each time the popup is closed either on `ESC` keypress or on leaving the viewport.
83
- */
84
- this.cancel = new core_1.EventEmitter();
85
- /**
86
- * @hidden
87
- */
88
- this.popupUID = kendo_angular_common_1.guid();
89
- this.calendarSubscriptions = new rxjs_1.Subscription();
90
- this.popupSubscriptions = new rxjs_1.Subscription();
91
- this.resolvedPromise = Promise.resolve();
92
- }
93
- Object.defineProperty(DateRangePopupComponent.prototype, "calendar", {
94
- /**
95
- * The active calendar that is visible in the popup.
96
- *
97
- * > When the popup is closed, the property returns `null`.
98
- */
99
- get: function () {
100
- return this._calendar;
101
- },
102
- set: function (calendar) {
103
- this._calendar = calendar;
104
- this.subscribeFocusBlur(calendar);
105
- },
106
- enumerable: true,
107
- configurable: true
108
- });
109
- Object.defineProperty(DateRangePopupComponent.prototype, "isActive", {
110
- /**
111
- * Gets the active state of the component.
112
- * When the opened calendar is active, returns `true`.
113
- */
114
- get: function () {
115
- return this.calendar && this.calendar.isActive;
116
- },
117
- enumerable: true,
118
- configurable: true
119
- });
120
- Object.defineProperty(DateRangePopupComponent.prototype, "show", {
121
- get: function () {
122
- return this._show;
123
- },
124
- /**
125
- * Gets or sets the visibility state of the component.
126
- */
127
- set: function (show) {
128
- if (this._show === show) {
129
- return;
130
- }
131
- var event = new preventable_event_1.PreventableEvent();
132
- if (show) {
133
- this.open.emit(event);
134
- }
135
- else {
136
- this.close.emit(event);
137
- }
138
- if (event.isDefaultPrevented()) {
139
- return;
140
- }
141
- this._toggle(show);
142
- },
143
- enumerable: true,
144
- configurable: true
145
- });
146
- DateRangePopupComponent.prototype.ngOnInit = function () {
147
- this.dateRangeService.registerPopup(this);
148
- };
149
- DateRangePopupComponent.prototype.ngAfterViewInit = function () {
150
- var _this = this;
151
- this.calendarSubscriptions.add(this.contentCalendar.changes.subscribe(function (changes) { return _this.calendar = changes.first; }));
152
- this.calendarSubscriptions.add(this.viewCalendar.changes.subscribe(function (changes) { return _this.calendar = changes.first; }));
153
- if (util_1.isWindowAvailable()) {
154
- this.zone.runOutsideAngular(function () {
155
- return _this.windowBlurSubscription = rxjs_1.fromEvent(window, 'blur').subscribe(_this.handleWindowBlur.bind(_this));
156
- });
157
- }
158
- };
159
- DateRangePopupComponent.prototype.ngOnDestroy = function () {
160
- this.destroyPopup();
161
- this.calendarSubscriptions.unsubscribe();
162
- if (this.activateSubscription) {
163
- this.activateSubscription.unsubscribe();
164
- }
165
- if (this.blurSubscription) {
166
- this.blurSubscription.unsubscribe();
167
- this.focusSubscription.unsubscribe();
168
- }
169
- if (this.windowBlurSubscription) {
170
- this.windowBlurSubscription.unsubscribe();
171
- }
172
- };
173
- /**
174
- * Opens the popup component and focuses the calendar.
175
- */
176
- DateRangePopupComponent.prototype.activate = function () {
177
- var _this = this;
178
- if (this.show === true) {
179
- return;
180
- }
181
- if (this.activateSubscription) {
182
- this.activateSubscription.unsubscribe();
183
- }
184
- this.show = true;
185
- this.ref.markForCheck();
186
- this.zone.runOutsideAngular(function () {
187
- _this.activateSubscription = rxjs_1.merge(_this.contentCalendar.changes, _this.viewCalendar.changes)
188
- .pipe(operators_1.filter(function (changes) { return changes && changes.first; }), operators_1.map(function (changes) { return changes.first; }))
189
- .subscribe(function (calendar) { return setTimeout(function () { return calendar.focus(); }); });
190
- });
191
- };
192
- /**
193
- * Focuses the calendar (if available).
194
- */
195
- DateRangePopupComponent.prototype.focus = function () {
196
- if (this.calendar) {
197
- this.calendar.focus();
198
- }
199
- };
200
- /**
201
- * Checks if a focused element ids placed inside the popup.
202
- *
203
- * @return boolean;
204
- */
205
- DateRangePopupComponent.prototype.hasActiveContent = function () {
206
- if (!kendo_angular_common_1.isDocumentAvailable() || !this.popupRef) {
207
- return false;
208
- }
209
- return this.popupRef.popupElement.contains(document.activeElement);
210
- };
211
- /**
212
- * Toggles the visibility of the popup.
213
- * If you use the `toggle` method to show or hide the popup,
214
- * the `open` and `close` events do not fire.
215
- *
216
- * @param show The state of the popup.
217
- */
218
- DateRangePopupComponent.prototype.toggle = function (show) {
219
- var _this = this;
220
- this.resolvedPromise.then(function () {
221
- _this._toggle((show === undefined) ? !_this.show : show);
222
- });
223
- };
224
- /**
225
- * @hidden
226
- *
227
- * Closes the popup and triggers the `cancel` event.
228
- */
229
- DateRangePopupComponent.prototype.cancelPopup = function () {
230
- this.show = false;
231
- this.cancel.emit();
232
- };
233
- DateRangePopupComponent.prototype.handleWindowBlur = function () {
234
- var _this = this;
235
- if (!this.show) {
236
- return;
237
- }
238
- if (kendo_angular_common_1.hasObservers(this.close)) {
239
- this.zone.run(function () { return _this.show = false; });
240
- }
241
- else {
242
- this.show = false;
243
- }
244
- };
245
- DateRangePopupComponent.prototype.handleMouseLeave = function () {
246
- this.dateRangeService.setRange(this.dateRangeService.selectionRange);
247
- };
248
- DateRangePopupComponent.prototype.handleKeydown = function (event) {
249
- var _this = this;
250
- var altKey = event.altKey, keyCode = event.keyCode;
251
- if (keyCode === kendo_angular_common_1.Keys.Escape || (altKey && keyCode === kendo_angular_common_1.Keys.ArrowUp)) {
252
- this.zone.run(function () { return _this.cancelPopup(); });
253
- }
254
- };
255
- DateRangePopupComponent.prototype.subscribeFocusBlur = function (calendar) {
256
- var _this = this;
257
- if (this.blurSubscription) {
258
- this.blurSubscription.unsubscribe();
259
- this.focusSubscription.unsubscribe();
260
- }
261
- if (!calendar) {
262
- return;
263
- }
264
- var nativeElement = calendar.element.nativeElement;
265
- this.blurSubscription = rxjs_1.fromEvent(nativeElement, 'blur').subscribe(function () { return _this.onBlur.emit(); });
266
- this.focusSubscription = rxjs_1.fromEvent(nativeElement, 'focus').subscribe(function () { return _this.onFocus.emit(); });
267
- };
268
- DateRangePopupComponent.prototype.addPopupSubscriptions = function () {
269
- var _this = this;
270
- var subscriptions = [];
271
- for (var _i = 0; _i < arguments.length; _i++) {
272
- subscriptions[_i] = arguments[_i];
273
- }
274
- if (!utils_1.isPresent(this.popupSubscriptions)) {
275
- this.popupSubscriptions = new rxjs_1.Subscription();
276
- }
277
- subscriptions.map(function (s) { return _this.popupSubscriptions.add(s); });
278
- };
279
- Object.defineProperty(DateRangePopupComponent.prototype, "_appendTo", {
280
- get: function () {
281
- var appendTo = this.appendTo;
282
- if (!appendTo || appendTo === 'root') {
283
- return undefined;
284
- }
285
- return appendTo === 'component' ? this.container : appendTo;
286
- },
287
- enumerable: true,
288
- configurable: true
289
- });
290
- DateRangePopupComponent.prototype._toggle = function (show) {
291
- var _this = this;
292
- this._show = show;
293
- if (this.popupRef) {
294
- this.destroyPopup();
295
- }
296
- if (this._show) {
297
- var direction = this.rtl ? 'right' : 'left';
298
- this.popupRef = this.popupService.open({
299
- anchor: this.anchor,
300
- anchorAlign: this.anchorAlign || { vertical: 'bottom', horizontal: direction },
301
- animate: this.animate,
302
- appendTo: this._appendTo,
303
- collision: this.collision,
304
- content: (this.contentTemplate || {}).templateRef || this.defaultTemplate,
305
- margin: this.margin,
306
- popupAlign: this.popupAlign || { vertical: 'top', horizontal: direction },
307
- positionMode: 'absolute'
308
- });
309
- var _a = this.popupRef, popupElement_1 = _a.popupElement, popupAnchorViewportLeave = _a.popupAnchorViewportLeave;
310
- popupElement_1.setAttribute('id', this.popupUID);
311
- this.addPopupSubscriptions(this.zone.runOutsideAngular(function () { return rxjs_1.fromEvent(popupElement_1, 'keydown').subscribe(_this.handleKeydown.bind(_this)); }), rxjs_1.fromEvent(popupElement_1, 'mouseleave').subscribe(this.handleMouseLeave.bind(this)), popupAnchorViewportLeave.subscribe(function () { return _this.cancelPopup(); }));
312
- }
313
- };
314
- DateRangePopupComponent.prototype.destroyPopup = function () {
315
- if (utils_1.isPresent(this.popupRef)) {
316
- this.popupRef.close();
317
- this.popupRef = null;
318
- }
319
- if (utils_1.isPresent(this.popupSubscriptions)) {
320
- this.popupSubscriptions.unsubscribe();
321
- }
322
- };
323
- tslib_1.__decorate([
324
- core_1.ViewChild('container', { read: core_1.ViewContainerRef, static: false }),
325
- tslib_1.__metadata("design:type", core_1.ViewContainerRef)
326
- ], DateRangePopupComponent.prototype, "container", void 0);
327
- tslib_1.__decorate([
328
- core_1.ViewChild('defaultTemplate', { static: false }),
329
- tslib_1.__metadata("design:type", core_1.TemplateRef)
330
- ], DateRangePopupComponent.prototype, "defaultTemplate", void 0);
331
- tslib_1.__decorate([
332
- core_1.ContentChild(date_range_popup_template_directive_1.DateRangePopupTemplateDirective, { static: false }),
333
- tslib_1.__metadata("design:type", date_range_popup_template_directive_1.DateRangePopupTemplateDirective)
334
- ], DateRangePopupComponent.prototype, "contentTemplate", void 0);
335
- tslib_1.__decorate([
336
- core_1.ViewChildren(multiview_calendar_component_1.MultiViewCalendarComponent),
337
- tslib_1.__metadata("design:type", core_1.QueryList)
338
- ], DateRangePopupComponent.prototype, "viewCalendar", void 0);
339
- tslib_1.__decorate([
340
- core_1.ContentChildren(multiview_calendar_component_1.MultiViewCalendarComponent),
341
- tslib_1.__metadata("design:type", core_1.QueryList)
342
- ], DateRangePopupComponent.prototype, "contentCalendar", void 0);
343
- tslib_1.__decorate([
344
- core_1.Input(),
345
- tslib_1.__metadata("design:type", Object)
346
- ], DateRangePopupComponent.prototype, "animate", void 0);
347
- tslib_1.__decorate([
348
- core_1.Input(),
349
- tslib_1.__metadata("design:type", core_1.ElementRef)
350
- ], DateRangePopupComponent.prototype, "anchor", void 0);
351
- tslib_1.__decorate([
352
- core_1.Input(),
353
- tslib_1.__metadata("design:type", Object)
354
- ], DateRangePopupComponent.prototype, "anchorAlign", void 0);
355
- tslib_1.__decorate([
356
- core_1.Input(),
357
- tslib_1.__metadata("design:type", Object)
358
- ], DateRangePopupComponent.prototype, "appendTo", void 0);
359
- tslib_1.__decorate([
360
- core_1.Input(),
361
- tslib_1.__metadata("design:type", Object)
362
- ], DateRangePopupComponent.prototype, "collision", void 0);
363
- tslib_1.__decorate([
364
- core_1.Input(),
365
- tslib_1.__metadata("design:type", Object)
366
- ], DateRangePopupComponent.prototype, "popupAlign", void 0);
367
- tslib_1.__decorate([
368
- core_1.Input(),
369
- tslib_1.__metadata("design:type", Object)
370
- ], DateRangePopupComponent.prototype, "margin", void 0);
371
- tslib_1.__decorate([
372
- core_1.Output(),
373
- tslib_1.__metadata("design:type", core_1.EventEmitter)
374
- ], DateRangePopupComponent.prototype, "open", void 0);
375
- tslib_1.__decorate([
376
- core_1.Output(),
377
- tslib_1.__metadata("design:type", core_1.EventEmitter)
378
- ], DateRangePopupComponent.prototype, "close", void 0);
379
- tslib_1.__decorate([
380
- core_1.Output('blur'),
381
- tslib_1.__metadata("design:type", core_1.EventEmitter)
382
- ], DateRangePopupComponent.prototype, "onBlur", void 0);
383
- tslib_1.__decorate([
384
- core_1.Output('focus'),
385
- tslib_1.__metadata("design:type", core_1.EventEmitter)
386
- ], DateRangePopupComponent.prototype, "onFocus", void 0);
387
- tslib_1.__decorate([
388
- core_1.Output(),
389
- tslib_1.__metadata("design:type", core_1.EventEmitter)
390
- ], DateRangePopupComponent.prototype, "cancel", void 0);
391
- DateRangePopupComponent = tslib_1.__decorate([
392
- core_1.Component({
393
- exportAs: 'kendo-daterange-popup',
394
- selector: 'kendo-daterange-popup',
395
- template: "\n <ng-container #container></ng-container>\n <ng-template #defaultTemplate>\n <kendo-multiviewcalendar kendoDateRangeSelection></kendo-multiviewcalendar>\n </ng-template>\n "
396
- }),
397
- tslib_1.__param(4, core_1.Optional()), tslib_1.__param(4, core_1.Inject(kendo_angular_l10n_1.RTL)),
398
- tslib_1.__metadata("design:paramtypes", [kendo_angular_popup_1.PopupService,
399
- date_range_service_1.DateRangeService,
400
- core_1.ChangeDetectorRef,
401
- core_1.NgZone, Boolean])
402
- ], DateRangePopupComponent);
403
- return DateRangePopupComponent;
404
- }());
405
- exports.DateRangePopupComponent = DateRangePopupComponent;
@@ -1,232 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- "use strict";
6
- Object.defineProperty(exports, "__esModule", { value: true });
7
- var tslib_1 = require("tslib");
8
- var core_1 = require("@angular/core");
9
- var rxjs_1 = require("rxjs");
10
- var date_range_service_1 = require("./date-range.service");
11
- var multiview_calendar_component_1 = require("../calendar/multiview-calendar.component");
12
- var selection_range_interface_1 = require("../calendar/models/selection-range.interface");
13
- var kendo_date_math_1 = require("@progress/kendo-date-math");
14
- var util_1 = require("../util");
15
- /**
16
- * A directive which manages the MultiViewCalendar range selection.
17
- */
18
- var DateRangeSelectionDirective = /** @class */ (function () {
19
- function DateRangeSelectionDirective(calendar, cdr, element, renderer, dateRangeService) {
20
- this.calendar = calendar;
21
- this.cdr = cdr;
22
- this.element = element;
23
- this.dateRangeService = dateRangeService;
24
- /**
25
- * Specifies the auto-correction behavior. If the start date is greater than the end date,
26
- * the directive fixes the date range to a single date either on input change or on blur
27
- * ([see example]({% slug autocorrect_daterange %}#toc-configuring-the-calendar-selection-directive)).
28
- *
29
- * By default, the auto-correction is triggered on change.
30
- * To disable this behavior, set the `autoCorrectOn` property to `none`.
31
- */
32
- this.autoCorrectOn = 'change';
33
- /**
34
- * Fires when the active range end is changed. For more information, refer to
35
- * the section on [events]({% slug overview_multiviewcalendar %}#toc-events).
36
- */
37
- this.activeRangeEndChange = new core_1.EventEmitter();
38
- /**
39
- * Fires when the selection range is changed. For more information, refer to
40
- * the section on [events]({% slug overview_multiviewcalendar %}#toc-events).
41
- */
42
- this.selectionRangeChange = new core_1.EventEmitter();
43
- this.calendarSubscriptions = new rxjs_1.Subscription();
44
- this.dateRangeService = this.dateRangeService || new date_range_service_1.DateRangeService();
45
- renderer.setAttribute(element.nativeElement, 'aria-multiselectable', 'true');
46
- }
47
- Object.defineProperty(DateRangeSelectionDirective.prototype, "selectionRange", {
48
- /**
49
- * Gets or sets the selection range of the calendar. When a new range is set,
50
- * the connected DateRangeService notifies all related parties.
51
- */
52
- get: function () {
53
- return this.calendar ? this.calendar.selectionRange : null;
54
- },
55
- set: function (range) {
56
- if (!this.isEqualCalendarRange(range)) {
57
- this.setSelectionRange(range);
58
- }
59
- if (!util_1.isEqualRange(this.dateRangeService.selectionRange, range)) {
60
- this.dateRangeService.setRange(range);
61
- }
62
- this.updateFocusedDate(range);
63
- },
64
- enumerable: true,
65
- configurable: true
66
- });
67
- Object.defineProperty(DateRangeSelectionDirective.prototype, "activeRangeEnd", {
68
- /**
69
- * Gets or sets the active end of the selection range. This option determines which range end will be updated on
70
- * user interaction. When a new active end is set, the connected DateRangeService notifies all related parties.
71
- */
72
- /**
73
- * Specifies which end of the selection range will be marked as active. The active end gets modified upon user
74
- * interaction. When a new active end is set, the wired DateRangeService notifies all related components. For
75
- * example, the start and end DateInput components.
76
- *
77
- * > If the selection range is undefined, the value is ignored.
78
- */
79
- get: function () {
80
- return this.calendar.activeRangeEnd;
81
- },
82
- set: function (activeRange) {
83
- if (this.dateRangeService.activeRangeEnd === activeRange) {
84
- return;
85
- }
86
- this.calendar.activeRangeEnd = activeRange;
87
- this.dateRangeService.setActiveRangeEnd(activeRange);
88
- },
89
- enumerable: true,
90
- configurable: true
91
- });
92
- Object.defineProperty(DateRangeSelectionDirective.prototype, "calendarRange", {
93
- get: function () {
94
- return this.selectionRange || selection_range_interface_1.EMPTY_SELECTIONRANGE;
95
- },
96
- enumerable: true,
97
- configurable: true
98
- });
99
- DateRangeSelectionDirective.prototype.ngOnInit = function () {
100
- var _this = this;
101
- var calendar = this.calendar;
102
- var dateRangeService = this.dateRangeService;
103
- calendar.min = util_1.either(dateRangeService.min, calendar.min);
104
- calendar.max = util_1.either(dateRangeService.max, calendar.max);
105
- this.addSubscriptions(calendar.cellEnter.subscribe(function (value) { return _this.handleHover(value); }), calendar.valueChange.subscribe(function (value) { return _this.handleChange(value); }), dateRangeService.focusedDate$.subscribe(function (focusedDate) {
106
- if (!kendo_date_math_1.isEqual(calendar.focusedDate, focusedDate)) {
107
- calendar.focusedDate = focusedDate;
108
- }
109
- }), dateRangeService.activeRangeEnd$.subscribe(function (rangeEnd) {
110
- if (calendar.activeRangeEnd === rangeEnd) {
111
- return;
112
- }
113
- calendar.activeRangeEnd = rangeEnd;
114
- _this.activeRangeEndChange.emit(rangeEnd);
115
- _this.cdr.markForCheck();
116
- }), dateRangeService.range$.subscribe(function (range) {
117
- if (!_this.isEqualCalendarRange(range)) {
118
- _this.acceptAndEmit(range);
119
- }
120
- _this.updateFocusedDate(range);
121
- }), rxjs_1.fromEvent(this.element.nativeElement, 'blur').subscribe(function () { return _this.handleBlur(); }));
122
- };
123
- DateRangeSelectionDirective.prototype.ngOnDestroy = function () {
124
- this.calendarSubscriptions.unsubscribe();
125
- };
126
- DateRangeSelectionDirective.prototype.addSubscriptions = function () {
127
- var _this = this;
128
- var subscriptions = [];
129
- for (var _i = 0; _i < arguments.length; _i++) {
130
- subscriptions[_i] = arguments[_i];
131
- }
132
- subscriptions.map(function (s) { return _this.calendarSubscriptions.add(s); });
133
- };
134
- DateRangeSelectionDirective.prototype.isEqualCalendarRange = function (range) {
135
- return util_1.isEqualRange(this.calendar.selectionRange, range);
136
- };
137
- DateRangeSelectionDirective.prototype.handleBlur = function () {
138
- var _a = this.calendarRange, start = _a.start, end = _a.end;
139
- var autoCorrect = this.autoCorrectOn === 'blur' && start !== null && end !== null && end < start;
140
- if (autoCorrect) {
141
- this.dateRangeService.setRange(util_1.clampRange(start));
142
- }
143
- };
144
- DateRangeSelectionDirective.prototype.handleChange = function (value) {
145
- var service = this.dateRangeService;
146
- var autoCorrect = this.autoCorrectOn === 'change' && this.shouldAutoCorrect(value);
147
- var activeEnd = this.calendar.activeRangeEnd !== 'end' ? 'end' : (autoCorrect ? 'end' : 'start');
148
- var range = autoCorrect ? util_1.clampRange(value) : this.updateRange(value);
149
- if (!util_1.isEqualRange(service.selectionRange, range)) {
150
- this.acceptAndEmit(range);
151
- service.setActiveRangeEnd(activeEnd);
152
- service.setRange(range);
153
- }
154
- };
155
- DateRangeSelectionDirective.prototype.handleHover = function (value) {
156
- if (this.hasCompleteRange()) {
157
- return;
158
- }
159
- var _a = this.calendarRange, start = _a.start, end = _a.end;
160
- var activeRangeEnd = this.calendar.activeRangeEnd;
161
- var updateRange = (start && activeRangeEnd === 'end') || (end && activeRangeEnd === 'start');
162
- if (updateRange) {
163
- this.setSelectionRange(this.updateRange(value));
164
- }
165
- };
166
- DateRangeSelectionDirective.prototype.hasCompleteRange = function () {
167
- var _a = this.dateRangeService.selectionRange || selection_range_interface_1.EMPTY_SELECTIONRANGE, start = _a.start, end = _a.end;
168
- return Boolean(start) && Boolean(end);
169
- };
170
- DateRangeSelectionDirective.prototype.shouldAutoCorrect = function (value) {
171
- var _a = this.calendarRange, end = _a.end, start = _a.start;
172
- if (this.calendar.activeRangeEnd !== 'end') {
173
- return end !== null && value > end;
174
- }
175
- else {
176
- return start !== null && value < start;
177
- }
178
- };
179
- DateRangeSelectionDirective.prototype.updateFocusedDate = function (range) {
180
- if (!range || this.dateRangeService.focusedDate) {
181
- return;
182
- }
183
- this.dateRangeService.setFocusedDate(range.start || range.end);
184
- };
185
- DateRangeSelectionDirective.prototype.updateRange = function (value) {
186
- var _a = this.calendarRange, end = _a.end, start = _a.start;
187
- return this.calendar.activeRangeEnd !== 'end' ? ({ start: value, end: end }) : ({ start: start, end: value });
188
- };
189
- DateRangeSelectionDirective.prototype.setSelectionRange = function (range) {
190
- this.calendar.selectionRange = range;
191
- this.calendar.writeValue(null);
192
- };
193
- DateRangeSelectionDirective.prototype.acceptAndEmit = function (range) {
194
- this.setSelectionRange(range);
195
- this.selectionRangeChange.emit(range);
196
- };
197
- tslib_1.__decorate([
198
- core_1.Input(),
199
- tslib_1.__metadata("design:type", String)
200
- ], DateRangeSelectionDirective.prototype, "autoCorrectOn", void 0);
201
- tslib_1.__decorate([
202
- core_1.Input(),
203
- tslib_1.__metadata("design:type", Object),
204
- tslib_1.__metadata("design:paramtypes", [Object])
205
- ], DateRangeSelectionDirective.prototype, "selectionRange", null);
206
- tslib_1.__decorate([
207
- core_1.Input(),
208
- tslib_1.__metadata("design:type", String),
209
- tslib_1.__metadata("design:paramtypes", [String])
210
- ], DateRangeSelectionDirective.prototype, "activeRangeEnd", null);
211
- tslib_1.__decorate([
212
- core_1.Output(),
213
- tslib_1.__metadata("design:type", core_1.EventEmitter)
214
- ], DateRangeSelectionDirective.prototype, "activeRangeEndChange", void 0);
215
- tslib_1.__decorate([
216
- core_1.Output(),
217
- tslib_1.__metadata("design:type", core_1.EventEmitter)
218
- ], DateRangeSelectionDirective.prototype, "selectionRangeChange", void 0);
219
- DateRangeSelectionDirective = tslib_1.__decorate([
220
- core_1.Directive({
221
- selector: '[kendoDateRangeSelection]'
222
- }),
223
- tslib_1.__param(4, core_1.Optional()),
224
- tslib_1.__metadata("design:paramtypes", [multiview_calendar_component_1.MultiViewCalendarComponent,
225
- core_1.ChangeDetectorRef,
226
- core_1.ElementRef,
227
- core_1.Renderer2,
228
- date_range_service_1.DateRangeService])
229
- ], DateRangeSelectionDirective);
230
- return DateRangeSelectionDirective;
231
- }());
232
- exports.DateRangeSelectionDirective = DateRangeSelectionDirective;