@progress/kendo-angular-dateinputs 6.0.3 → 7.0.0-next.202203231050

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 +44 -115
  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,75 +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 { NgModule } from '@angular/core';
7
- import { CommonModule } from '@angular/common';
8
- import { IntlModule } from '@progress/kendo-angular-intl';
9
- import { PopupModule } from '@progress/kendo-angular-popup';
10
- import { TimeListComponent } from './timelist.component';
11
- import { TimePickerComponent } from './timepicker.component';
12
- import { TimeSelectorComponent } from './timeselector.component';
13
- import { VirtualizationModule } from '../virtualization/virtualization.module';
14
- import { TimePickerDOMService } from './services/dom.service';
15
- import { HoursService } from './services/hours.service';
16
- import { MinutesService } from './services/minutes.service';
17
- import { SecondsService } from './services/seconds.service';
18
- import { MillisecondsService } from './services/milliseconds.service';
19
- import { DayPeriodService } from './services/dayperiod.service';
20
- import { DateInputModule } from '../dateinput/dateinput.module';
21
- import { TimePickerLocalizedMessagesDirective } from './localization/timepicker-localized-messages.directive';
22
- import { TimePickerCustomMessagesComponent } from './localization/timepicker-custom-messages.component';
23
- import { TimeSelectorLocalizedMessagesDirective } from './localization/timeselector-localized-messages.directive';
24
- import { TimeSelectorCustomMessagesComponent } from './localization/timeselector-custom-messages.component';
25
- import { touchEnabled } from '@progress/kendo-common';
26
- import { TOUCH_ENABLED } from '../touch-enabled';
27
- import { EventsModule } from '@progress/kendo-angular-common';
28
- var COMPONENT_DIRECTIVES = [
29
- TimePickerLocalizedMessagesDirective,
30
- TimeListComponent,
31
- TimePickerCustomMessagesComponent,
32
- TimePickerComponent,
33
- TimeSelectorLocalizedMessagesDirective,
34
- TimeSelectorCustomMessagesComponent,
35
- TimeSelectorComponent
36
- ];
37
- var COMPONENT_MODULES = [
38
- DateInputModule,
39
- IntlModule,
40
- PopupModule,
41
- VirtualizationModule,
42
- EventsModule
43
- ];
44
- var ɵ0 = touchEnabled;
45
- var providers = [
46
- TimePickerDOMService,
47
- HoursService,
48
- MinutesService,
49
- SecondsService,
50
- MillisecondsService,
51
- DayPeriodService,
52
- {
53
- provide: TOUCH_ENABLED,
54
- useValue: ɵ0
55
- }
56
- ];
57
- /**
58
- * Represents the [NgModule]({{ site.data.urls.angular['ngmoduleapi'] }})
59
- * definition for the TimePicker component.
60
- */
61
- var TimePickerModule = /** @class */ (function () {
62
- function TimePickerModule() {
63
- }
64
- TimePickerModule = tslib_1.__decorate([
65
- NgModule({
66
- declarations: [COMPONENT_DIRECTIVES],
67
- exports: [COMPONENT_DIRECTIVES],
68
- imports: [CommonModule].concat(COMPONENT_MODULES),
69
- providers: providers
70
- })
71
- ], TimePickerModule);
72
- return TimePickerModule;
73
- }());
74
- export { TimePickerModule };
75
- export { ɵ0 };
@@ -1,486 +0,0 @@
1
- /**-----------------------------------------------------------------------------------------
2
- * Copyright © 2021 Progress Software Corporation. All rights reserved.
3
- * Licensed under commercial license. See LICENSE.md in the project root for more information
4
- *-------------------------------------------------------------------------------------------*/
5
- import * as tslib_1 from "tslib";
6
- import { Component, ChangeDetectorRef, ChangeDetectionStrategy, ElementRef, EventEmitter, HostBinding, Input, Output, NgZone, ViewChild, ViewChildren, QueryList, Optional, Renderer2 } from '@angular/core';
7
- import { L10N_PREFIX, LocalizationService } from '@progress/kendo-angular-l10n';
8
- import { IntlService } from '@progress/kendo-angular-intl';
9
- import { cloneDate, getDate } from '@progress/kendo-date-math';
10
- import { Keys } from '@progress/kendo-angular-common';
11
- import { MIDNIGHT_DATE, MIN_TIME, MAX_TIME } from '../defaults';
12
- import { TimeListComponent } from './timelist.component';
13
- import { TimePickerDOMService } from './services/dom.service';
14
- import { getNow, hasChange, isInTimeRange, timeInRange } from '../util';
15
- import { generateGetters, generateSnappers, snapTime, valueMerger } from './util';
16
- import { PickerService } from '../common/picker.service';
17
- import { closest } from '../common/dom-queries';
18
- import { currentFocusTarget, isPresent } from '../common/utils';
19
- var listReducer = function (state, list, idx, all) {
20
- if (state.length || !list.isActive) {
21
- return state;
22
- }
23
- return [{
24
- next: all[idx + 1] || list,
25
- prev: all[idx - 1] || list
26
- }];
27
- };
28
- var ɵ0 = listReducer;
29
- var Direction;
30
- (function (Direction) {
31
- Direction[Direction["Left"] = 0] = "Left";
32
- Direction[Direction["Right"] = 1] = "Right";
33
- })(Direction || (Direction = {}));
34
- /**
35
- * @hidden
36
- *
37
- * Represents the Kendo UI TimeSelector component for Angular.
38
- */
39
- var TimeSelectorComponent = /** @class */ (function () {
40
- function TimeSelectorComponent(localization, cdr, element, intl, dom, zone, renderer, pickerService) {
41
- this.localization = localization;
42
- this.cdr = cdr;
43
- this.element = element;
44
- this.intl = intl;
45
- this.dom = dom;
46
- this.zone = zone;
47
- this.renderer = renderer;
48
- this.pickerService = pickerService;
49
- /**
50
- * Specifies the time format used to display the time list columns.
51
- */
52
- this.format = 't';
53
- /**
54
- * Specifies the smallest valid time value.
55
- */
56
- this.min = cloneDate(MIN_TIME);
57
- /**
58
- * Specifies the biggest valid time value.
59
- */
60
- this.max = cloneDate(MAX_TIME);
61
- /**
62
- * Determines whether to display the **Cancel** button in the popup.
63
- */
64
- this.cancelButton = true;
65
- /**
66
- * Determines whether to display the **Set** button in the popup.
67
- */
68
- this.setButton = true;
69
- /**
70
- * Determines whether to display the **Now** button in the popup.
71
- *
72
- * > If the current time is out of range or the incremental step is greater than `1`, the **Now** button will be hidden.
73
- */
74
- this.nowButton = true;
75
- /**
76
- * Sets or gets the `disabled` property of the TimeSelector and determines whether the component is active.
77
- */
78
- this.disabled = false;
79
- /**
80
- * Specifies the value of the TimeSelector component.
81
- */
82
- this.value = null;
83
- /**
84
- * Fires each time the user selects a new value.
85
- */
86
- this.valueChange = new EventEmitter();
87
- /**
88
- * Fires each time the user cancels the selected value.
89
- */
90
- this.valueReject = new EventEmitter();
91
- this.isActive = false;
92
- this.showNowButton = true;
93
- this._activeListIndex = -1;
94
- this._steps = {};
95
- this.domEvents = [];
96
- if (this.pickerService) {
97
- this.pickerService.timeSelector = this;
98
- }
99
- }
100
- Object.defineProperty(TimeSelectorComponent.prototype, "disabledClass", {
101
- /**
102
- * @hidden
103
- */
104
- get: function () {
105
- return this.disabled;
106
- },
107
- enumerable: true,
108
- configurable: true
109
- });
110
- Object.defineProperty(TimeSelectorComponent.prototype, "steps", {
111
- get: function () {
112
- return this._steps;
113
- },
114
- /**
115
- * Configures the incremental steps of the TimeSelector.
116
- *
117
- * The available options are:
118
- * - `hour: Number`—Controls the incremental step of the hour value.
119
- * - `minute: Number`—Controls the incremental step of the minute value.
120
- * - `second: Number`—Controls the incremental step of the second value.
121
- *
122
- * @example
123
- * ```ts
124
- * _@Component({
125
- * selector: 'my-app',
126
- * template: `
127
- * <kendo-timeselector format="HH:mm:ss" [steps]="steps"></kendo-timeselector>
128
- * `
129
- * })
130
- * export class AppComponent {
131
- * public steps = { hour: 2, minute: 15, second: 15 };
132
- * }
133
- * ```
134
- *
135
- * > If the incremental step is greater than `1`, the **Now** button will be hidden.
136
- */
137
- set: function (steps) {
138
- this._steps = steps || {};
139
- },
140
- enumerable: true,
141
- configurable: true
142
- });
143
- Object.defineProperty(TimeSelectorComponent.prototype, "current", {
144
- get: function () {
145
- return this._current;
146
- },
147
- set: function (value) {
148
- this._current = timeInRange(this.snapTime(cloneDate(value || MIDNIGHT_DATE), this.min), this.min, this.max);
149
- if (!NgZone.isInAngularZone()) {
150
- this.cdr.detectChanges();
151
- }
152
- },
153
- enumerable: true,
154
- configurable: true
155
- });
156
- Object.defineProperty(TimeSelectorComponent.prototype, "activeListIndex", {
157
- get: function () {
158
- return this._activeListIndex;
159
- },
160
- set: function (value) {
161
- var _this = this;
162
- this._activeListIndex = value;
163
- if (!this.timeListWrappers || !this.timeListWrappers.length) {
164
- return;
165
- }
166
- this.timeListWrappers.forEach(function (listWrapper) {
167
- _this.renderer.removeClass(listWrapper.nativeElement, 'k-state-focused');
168
- });
169
- if (value >= 0) {
170
- var listIndex = this.listIndex(value);
171
- var focusedWrapper = this.timeListWrappers.toArray()[listIndex];
172
- if (focusedWrapper) {
173
- this.renderer.addClass(focusedWrapper.nativeElement, 'k-state-focused');
174
- }
175
- }
176
- },
177
- enumerable: true,
178
- configurable: true
179
- });
180
- /**
181
- * @hidden
182
- */
183
- TimeSelectorComponent.prototype.ngOnInit = function () {
184
- var _this = this;
185
- this.subscriptions = this.intl.changes.subscribe(this.intlChange.bind(this));
186
- if (this.localization) {
187
- this.subscriptions.add(this.localization
188
- .changes
189
- .subscribe(function () { return _this.cdr.markForCheck(); }));
190
- }
191
- this.renderer.addClass(this.element.nativeElement, 'k-timeselector');
192
- this.dom.calculateHeights(this.element.nativeElement);
193
- this.init();
194
- this.bindEvents();
195
- };
196
- /**
197
- * @hidden
198
- */
199
- TimeSelectorComponent.prototype.ngOnChanges = function (_) {
200
- this.init();
201
- };
202
- TimeSelectorComponent.prototype.ngOnDestroy = function () {
203
- if (this.subscriptions) {
204
- this.subscriptions.unsubscribe();
205
- }
206
- if (this.pickerService) {
207
- this.pickerService.timeSelector = null;
208
- }
209
- this.domEvents.forEach(function (unbindCallback) { return unbindCallback(); });
210
- };
211
- /**
212
- * Focuses the TimeSelector component.
213
- *
214
- * @example
215
- * ```ts
216
- * _@Component({
217
- * selector: 'my-app',
218
- * template: `
219
- * <button (click)="timeselector.focus()">Focus time picker</button>
220
- * <kendo-timeselector #timeselector></kendo-timeselector>
221
- * `
222
- * })
223
- * export class AppComponent { }
224
- * ```
225
- */
226
- TimeSelectorComponent.prototype.focus = function () {
227
- var list = this.timeLists.first;
228
- if (!list) {
229
- return;
230
- }
231
- list.focus();
232
- };
233
- /**
234
- * Blurs the TimeSelector component.
235
- */
236
- TimeSelectorComponent.prototype.blur = function () {
237
- var list = this.timeLists.first;
238
- if (!list) {
239
- return;
240
- }
241
- list.blur();
242
- };
243
- /**
244
- * @hidden
245
- */
246
- TimeSelectorComponent.prototype.handleAccept = function () {
247
- this.handleChange(this.mergeValue(cloneDate(this.value || getDate(getNow())), this.current));
248
- };
249
- /**
250
- * @hidden
251
- */
252
- TimeSelectorComponent.prototype.handleNow = function () {
253
- this.current = getNow();
254
- this.handleChange(this.current);
255
- this.cdr.markForCheck();
256
- };
257
- /**
258
- * @hidden
259
- */
260
- TimeSelectorComponent.prototype.handleReject = function () {
261
- this.current = this.value;
262
- this.valueReject.emit();
263
- };
264
- /**
265
- * @hidden
266
- */
267
- TimeSelectorComponent.prototype.handleFocus = function (args) {
268
- if (this.isActive) {
269
- return;
270
- }
271
- this.isActive = true;
272
- this.emitFocus(args);
273
- };
274
- /**
275
- * @hidden
276
- */
277
- TimeSelectorComponent.prototype.handleListFocus = function (args) {
278
- var index = parseInt(args.target.getAttribute('data-timelist-index'), 10);
279
- this.activeListIndex = index;
280
- this.handleFocus(args);
281
- };
282
- /**
283
- * @hidden
284
- */
285
- TimeSelectorComponent.prototype.handleBlur = function (args) {
286
- var currentTarget = currentFocusTarget(args);
287
- if (currentTarget && this.containsElement(currentTarget)) {
288
- return;
289
- }
290
- this.activeListIndex = -1;
291
- this.isActive = false;
292
- this.emitBlur(args);
293
- };
294
- /**
295
- * @hidden
296
- */
297
- TimeSelectorComponent.prototype.containsElement = function (element) {
298
- var _this = this;
299
- return Boolean(closest(element, function (node) { return node === _this.element.nativeElement; }));
300
- };
301
- TimeSelectorComponent.prototype.partStep = function (part) {
302
- return this.steps[part.type] || 1;
303
- };
304
- TimeSelectorComponent.prototype.init = function (changes) {
305
- if (!changes || hasChange(changes, 'format')) {
306
- this.dateFormatParts = this.intl.splitDateFormat(this.format);
307
- this.mergeValue = valueMerger(generateGetters(this.dateFormatParts));
308
- }
309
- if (!changes || hasChange(changes, 'steps')) {
310
- this.snapTime = snapTime(generateSnappers(this.steps));
311
- }
312
- if (!changes || hasChange(changes, 'value')) {
313
- this.current = this.value;
314
- }
315
- this.showNowButton = !this.hasSteps() && this.nowButton && isInTimeRange(getNow(), this.min, this.max);
316
- };
317
- TimeSelectorComponent.prototype.focusList = function (dir) {
318
- if (!this.timeLists.length) {
319
- return;
320
- }
321
- this.timeLists.reduce(listReducer, [])
322
- .map(function (state) { return dir === Direction.Right ? state.next : state.prev; })
323
- .map(function (list) { return list && list.focus(); });
324
- };
325
- TimeSelectorComponent.prototype.handleChange = function (value) {
326
- this.value = value;
327
- this.valueChange.emit(cloneDate(value));
328
- };
329
- TimeSelectorComponent.prototype.hasActiveButton = function () {
330
- var _this = this;
331
- if (!this.accept) {
332
- return false;
333
- }
334
- return [this.accept, this.cancel, this.now].reduce(function (isActive, el) { return isActive || _this.dom.isActive(el); }, false);
335
- };
336
- TimeSelectorComponent.prototype.hasSteps = function () {
337
- var _this = this;
338
- var keys = Object.keys(this.steps);
339
- return keys.length !== keys.reduce(function (acc, k) { return acc + _this.steps[k]; }, 0);
340
- };
341
- TimeSelectorComponent.prototype.intlChange = function () {
342
- this.dateFormatParts = this.intl.splitDateFormat(this.format);
343
- this.mergeValue = valueMerger(generateGetters(this.dateFormatParts));
344
- this.cdr.markForCheck();
345
- };
346
- TimeSelectorComponent.prototype.bindEvents = function () {
347
- var _this = this;
348
- if (this.element) {
349
- this.zone.runOutsideAngular(function () {
350
- _this.domEvents.push(_this.renderer.listen(_this.element.nativeElement, 'keydown', _this.handleKeydown.bind(_this)));
351
- });
352
- }
353
- };
354
- TimeSelectorComponent.prototype.handleKeydown = function (args) {
355
- var keyCode = args.keyCode, altKey = args.altKey;
356
- // reserve the alt + arrow key commands for the picker
357
- var arrowKeyPressed = [Keys.ArrowLeft, Keys.ArrowRight].indexOf(keyCode) !== -1;
358
- if (isPresent(this.pickerService) && arrowKeyPressed && altKey) {
359
- return;
360
- }
361
- if (keyCode === Keys.Enter && !this.hasActiveButton()) {
362
- this.handleAccept();
363
- }
364
- else if (keyCode === Keys.ArrowLeft || keyCode === Keys.ArrowRight) {
365
- this.focusList(keyCode === Keys.ArrowLeft ? Direction.Left : Direction.Right);
366
- }
367
- };
368
- TimeSelectorComponent.prototype.emitBlur = function (args) {
369
- if (this.pickerService) {
370
- this.pickerService.onBlur.emit(args);
371
- }
372
- };
373
- TimeSelectorComponent.prototype.emitFocus = function (args) {
374
- if (this.pickerService) {
375
- this.pickerService.onFocus.emit(args);
376
- }
377
- };
378
- TimeSelectorComponent.prototype.listIndex = function (partIndex) {
379
- var listIdx = 0;
380
- var partIdx = 0;
381
- while (partIdx < partIndex) {
382
- if (this.dateFormatParts[partIdx].type !== 'literal') {
383
- listIdx++;
384
- }
385
- partIdx++;
386
- }
387
- return listIdx;
388
- };
389
- tslib_1.__decorate([
390
- ViewChild('accept', { static: false }),
391
- tslib_1.__metadata("design:type", ElementRef)
392
- ], TimeSelectorComponent.prototype, "accept", void 0);
393
- tslib_1.__decorate([
394
- ViewChild('cancel', { static: false }),
395
- tslib_1.__metadata("design:type", ElementRef)
396
- ], TimeSelectorComponent.prototype, "cancel", void 0);
397
- tslib_1.__decorate([
398
- ViewChild('now', { static: false }),
399
- tslib_1.__metadata("design:type", ElementRef)
400
- ], TimeSelectorComponent.prototype, "now", void 0);
401
- tslib_1.__decorate([
402
- ViewChildren(TimeListComponent),
403
- tslib_1.__metadata("design:type", QueryList)
404
- ], TimeSelectorComponent.prototype, "timeLists", void 0);
405
- tslib_1.__decorate([
406
- ViewChildren('listWrapper'),
407
- tslib_1.__metadata("design:type", QueryList)
408
- ], TimeSelectorComponent.prototype, "timeListWrappers", void 0);
409
- tslib_1.__decorate([
410
- HostBinding('class.k-disabled'),
411
- tslib_1.__metadata("design:type", Boolean),
412
- tslib_1.__metadata("design:paramtypes", [])
413
- ], TimeSelectorComponent.prototype, "disabledClass", null);
414
- tslib_1.__decorate([
415
- Input(),
416
- tslib_1.__metadata("design:type", String)
417
- ], TimeSelectorComponent.prototype, "format", void 0);
418
- tslib_1.__decorate([
419
- Input(),
420
- tslib_1.__metadata("design:type", Date)
421
- ], TimeSelectorComponent.prototype, "min", void 0);
422
- tslib_1.__decorate([
423
- Input(),
424
- tslib_1.__metadata("design:type", Date)
425
- ], TimeSelectorComponent.prototype, "max", void 0);
426
- tslib_1.__decorate([
427
- Input(),
428
- tslib_1.__metadata("design:type", Boolean)
429
- ], TimeSelectorComponent.prototype, "cancelButton", void 0);
430
- tslib_1.__decorate([
431
- Input(),
432
- tslib_1.__metadata("design:type", Boolean)
433
- ], TimeSelectorComponent.prototype, "setButton", void 0);
434
- tslib_1.__decorate([
435
- Input(),
436
- tslib_1.__metadata("design:type", Boolean)
437
- ], TimeSelectorComponent.prototype, "nowButton", void 0);
438
- tslib_1.__decorate([
439
- Input(),
440
- tslib_1.__metadata("design:type", Boolean)
441
- ], TimeSelectorComponent.prototype, "disabled", void 0);
442
- tslib_1.__decorate([
443
- Input(),
444
- tslib_1.__metadata("design:type", Object),
445
- tslib_1.__metadata("design:paramtypes", [Object])
446
- ], TimeSelectorComponent.prototype, "steps", null);
447
- tslib_1.__decorate([
448
- Input(),
449
- tslib_1.__metadata("design:type", Date)
450
- ], TimeSelectorComponent.prototype, "value", void 0);
451
- tslib_1.__decorate([
452
- Output(),
453
- tslib_1.__metadata("design:type", EventEmitter)
454
- ], TimeSelectorComponent.prototype, "valueChange", void 0);
455
- tslib_1.__decorate([
456
- Output(),
457
- tslib_1.__metadata("design:type", EventEmitter)
458
- ], TimeSelectorComponent.prototype, "valueReject", void 0);
459
- TimeSelectorComponent = tslib_1.__decorate([
460
- Component({
461
- changeDetection: ChangeDetectionStrategy.OnPush,
462
- exportAs: 'kendo-timeselector',
463
- providers: [
464
- LocalizationService,
465
- {
466
- provide: L10N_PREFIX,
467
- useValue: 'kendo.timeselector'
468
- }
469
- ],
470
- selector: 'kendo-timeselector',
471
- template: "\n <ng-container kendoTimeSelectorLocalizedMessages\n i18n-accept=\"kendo.timeselector.accept|The Accept button text in the timeselector component\"\n accept=\"Set\"\n\n i18n-acceptLabel=\"kendo.timeselector.acceptLabel|The label for the Accept button in the timeselector component\"\n acceptLabel=\"Set time\"\n\n i18n-cancel=\"kendo.timeselector.cancel|The Cancel button text in the timeselector component\"\n cancel=\"Cancel\"\n\n i18n-cancelLabel=\"kendo.timeselector.cancelLabel|The label for the Cancel button in the timeselector component\"\n cancelLabel=\"Cancel changes\"\n\n i18n-now=\"kendo.timeselector.now|The Now button text in the timeselector component\"\n now=\"Now\"\n\n i18n-nowLabel=\"kendo.timeselector.nowLabel|The label for the Now button in the timeselector component\"\n nowLabel=\"Select now\"\n >\n </ng-container>\n <div class=\"k-time-header\">\n <span class=\"k-title k-timeselector-title\">\n {{ intl.formatDate(current, format) }}\n </span>\n <button\n #now\n *ngIf=\"showNowButton\"\n type=\"button\"\n class=\"k-button k-button-md k-rounded-md k-button-flat k-button-flat-base k-time-now\"\n [attr.title]=\"localization.get('nowLabel')\"\n [attr.aria-label]=\"localization.get('nowLabel')\"\n [kendoEventsOutsideAngular]=\"{\n click: handleNow,\n focus: handleFocus,\n blur: handleBlur\n }\"\n [scope]=\"this\"\n [disabled]=\"disabled\"\n >{{localization.get('now')}}</button>\n </div>\n <div class=\"k-time-list-container\">\n <span class=\"k-time-highlight\"></span>\n <ng-template ngFor [ngForOf]=\"dateFormatParts\" let-part let-idx=\"index\">\n <div\n #listWrapper\n class=\"k-time-list-wrapper\"\n role=\"presentation\" tabindex=\"-1\"\n *ngIf=\"part.type !== 'literal'\"\n >\n <span class=\"k-title k-timeselector-title\">{{intl.dateFieldName(part)}}</span>\n <kendo-timelist\n [min]=\"min\"\n [max]=\"max\"\n [part]=\"part\"\n [step]=\"partStep(part)\"\n [disabled]=\"disabled\"\n [(value)]=\"current\"\n [kendoEventsOutsideAngular]=\"{\n focus: handleListFocus,\n blur: handleBlur\n }\"\n [scope]=\"this\"\n [attr.data-timelist-index]=\"idx\"\n ></kendo-timelist>\n </div>\n <div class=\"k-time-separator\" *ngIf=\"part.type === 'literal'\">\n {{part.pattern}}\n </div>\n </ng-template>\n </div>\n <div class=\"k-time-footer k-action-buttons k-actions k-hstack k-justify-content-stretch\" *ngIf=\"setButton || cancelButton\">\n <button\n #cancel\n *ngIf=\"cancelButton\"\n class=\"k-button k-time-cancel k-button-md k-rounded-md k-button-solid k-button-solid-base\"\n type=\"button\"\n [attr.title]=\"localization.get('cancelLabel')\"\n [attr.aria-label]=\"localization.get('cancelLabel')\"\n [kendoEventsOutsideAngular]=\"{\n click: handleReject,\n focus: handleFocus,\n blur: handleBlur\n }\"\n [scope]=\"this\"\n [disabled]=\"disabled\"\n >{{localization.get('cancel')}}</button>\n <button\n #accept\n *ngIf=\"setButton\"\n type=\"button\"\n class=\"k-button k-time-accept k-button-md k-rounded-md k-button-solid k-button-solid-primary\"\n [attr.title]=\"localization.get('acceptLabel')\"\n [attr.aria-label]=\"localization.get('acceptLabel')\"\n [kendoEventsOutsideAngular]=\"{\n click: handleAccept,\n focus: handleFocus,\n blur: handleBlur\n }\"\n [scope]=\"this\"\n [disabled]=\"disabled\"\n >{{localization.get('accept')}}</button>\n </div>\n "
472
- }),
473
- tslib_1.__param(7, Optional()),
474
- tslib_1.__metadata("design:paramtypes", [LocalizationService,
475
- ChangeDetectorRef,
476
- ElementRef,
477
- IntlService,
478
- TimePickerDOMService,
479
- NgZone,
480
- Renderer2,
481
- PickerService])
482
- ], TimeSelectorComponent);
483
- return TimeSelectorComponent;
484
- }());
485
- export { TimeSelectorComponent };
486
- export { ɵ0 };
@@ -1,82 +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 { cloneDate } from '@progress/kendo-date-math';
6
- import { TIME_PART } from './models/time-part.default';
7
- var isEqualTillMinute = function (value, min) { return value.getHours() === min.getHours() && value.getMinutes() === min.getMinutes(); };
8
- var ɵ0 = isEqualTillMinute;
9
- var isEqualTillSecond = function (value, min) { return isEqualTillMinute(value, min) && value.getSeconds() === min.getSeconds(); };
10
- var ɵ1 = isEqualTillSecond;
11
- var isEqualTillMillisecond = function (value, min) { return isEqualTillSecond(value, min) && value.getMilliseconds() === min.getMilliseconds(); };
12
- var ɵ2 = isEqualTillMillisecond;
13
- var ɵ3 = function (value) { return value.getHours(); }, ɵ4 = function (_, min) { return min.getHours(); }, ɵ5 = function (value) { return value.getMinutes(); }, ɵ6 = function (value, min) { return isEqualTillMinute(value, min) ? min.getMinutes() : 0; }, ɵ7 = function (value) { return value.getSeconds(); }, ɵ8 = function (value, min) { return isEqualTillSecond(value, min) ? min.getSeconds() : 0; }, ɵ9 = function (value) { return value.getMilliseconds(); }, ɵ10 = function (value, min) { return isEqualTillMillisecond(value, min) ? min.getMilliseconds() : 0; };
14
- var defaultGetters = [
15
- {
16
- type: TIME_PART.hour,
17
- getter: ɵ3,
18
- minGetter: ɵ4
19
- }, {
20
- type: TIME_PART.minute,
21
- getter: ɵ5,
22
- minGetter: ɵ6
23
- }, {
24
- type: TIME_PART.second,
25
- getter: ɵ7,
26
- minGetter: ɵ8
27
- }, {
28
- type: TIME_PART.millisecond,
29
- getter: ɵ9,
30
- minGetter: ɵ10
31
- }
32
- ];
33
- var left = function (getter) { return function (origin, _) { return getter(origin); }; };
34
- var ɵ11 = left;
35
- var right = function (getter) { return function (_, candidate) { return getter(candidate); }; };
36
- var ɵ12 = right;
37
- var convertToObject = function (parts) { return parts.reduce(function (obj, p) { obj[p.type] = p.type; return obj; }, {}); };
38
- var ɵ13 = convertToObject;
39
- var getterByPart = function (parts) { return function (g) { return parts[g.type] ? right(g.getter) : left(g.getter); }; };
40
- var ɵ14 = getterByPart;
41
- var gettersFactory = function (getters) { return function (parts) { return (getters.map(getterByPart(convertToObject(parts)))); }; };
42
- var ɵ15 = gettersFactory;
43
- var snapValue = function (getter, minGetter, step) { return function (date, min) {
44
- var value = getter(date);
45
- var minValue = minGetter(date, min);
46
- var rest = value - minValue;
47
- if (rest < 0) {
48
- return minValue;
49
- }
50
- var mod = rest % step;
51
- return value - mod + (mod > step / 2 ? step : 0);
52
- }; };
53
- var ɵ16 = snapValue;
54
- var snappersFactory = function (getters) { return function (steps) { return (getters.map(function (g) {
55
- var step = steps[g.type];
56
- return step ? snapValue(g.getter, g.minGetter, step) : g.getter;
57
- })); }; };
58
- var ɵ17 = snappersFactory;
59
- /**
60
- * @hidden
61
- */
62
- export var generateGetters = gettersFactory(defaultGetters);
63
- /**
64
- * @hidden
65
- */
66
- export var generateSnappers = snappersFactory(defaultGetters);
67
- /**
68
- * @hidden
69
- */
70
- export var valueMerger = function (getters) { return function (origin, candidate) {
71
- origin.setHours.apply(origin, getters.map(function (g) { return g(origin, candidate); }));
72
- return origin;
73
- }; };
74
- /**
75
- * @hidden
76
- */
77
- export var snapTime = function (snappers) { return function (candidate, min) {
78
- var date = cloneDate(candidate);
79
- date.setHours.apply(date, snappers.map(function (s) { return s(date, min); }));
80
- return date;
81
- }; };
82
- export { ɵ0, ɵ1, ɵ2, ɵ3, ɵ4, ɵ5, ɵ6, ɵ7, ɵ8, ɵ9, ɵ10, ɵ11, ɵ12, ɵ13, ɵ14, ɵ15, ɵ16, ɵ17 };
@@ -1,9 +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 { InjectionToken } from '@angular/core';
6
- /**
7
- * @hidden
8
- */
9
- export var TOUCH_ENABLED = new InjectionToken('dateinputs-touch-enabled');