@anglr/datetime 6.0.0-beta.20221222085135 → 6.0.0-beta.20221223060503

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 (584) hide show
  1. package/changelog.md +155 -1
  2. package/date-fns/src/services/dateFnsDateApi.service.d.ts +26 -14
  3. package/date-fns/src/services/dateFnsDateApi.service.d.ts.map +1 -1
  4. package/es2015/date-fns/src/services/dateFnsDateApi.service.js +37 -6
  5. package/es2015/date-fns/src/services/dateFnsDateApi.service.js.map +1 -1
  6. package/es2015/moment/src/services/momentDateApi.service.js +35 -3
  7. package/es2015/moment/src/services/momentDateApi.service.js.map +1 -1
  8. package/es2015/src/directives/index.js +1 -0
  9. package/es2015/src/directives/index.js.map +1 -1
  10. package/es2015/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js +32 -0
  11. package/es2015/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js.map +1 -0
  12. package/es2015/src/directives/withTime/withTime.directive.js +5 -5
  13. package/es2015/src/directives/withTime/withTime.directive.js.map +1 -1
  14. package/es2015/src/directives/withToday/withToday.directive.js +5 -5
  15. package/es2015/src/directives/withToday/withToday.directive.js.map +1 -1
  16. package/es2015/src/index.js +0 -8
  17. package/es2015/src/index.js.map +1 -1
  18. package/es2015/src/interfaces/dateTime/datetime.interface.js.map +1 -1
  19. package/es2015/src/legacy/picker/components/picker/picker.component.animations.js +93 -70
  20. package/es2015/src/legacy/picker/components/picker/picker.component.animations.js.map +1 -1
  21. package/es2015/src/legacy/selector/components/inputDateTime/inputDateTime.component.js +487 -436
  22. package/es2015/src/legacy/selector/components/inputDateTime/inputDateTime.component.js.map +1 -1
  23. package/es2015/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js +366 -324
  24. package/es2015/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js.map +1 -1
  25. package/es2015/src/misc/validators.js +0 -57
  26. package/es2015/src/misc/validators.js.map +1 -1
  27. package/es2015/src/modules/calendar/components/index.js +2 -0
  28. package/es2015/src/modules/calendar/components/index.js.map +1 -0
  29. package/es2015/src/modules/calendar/components/monthCalendar/monthCalendar.component.js +198 -0
  30. package/es2015/src/modules/calendar/components/monthCalendar/monthCalendar.component.js.map +1 -0
  31. package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js +2 -0
  32. package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js.map +1 -0
  33. package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js +27 -0
  34. package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js.map +1 -0
  35. package/es2015/src/modules/calendar/directives/index.js +3 -0
  36. package/es2015/src/modules/calendar/directives/index.js.map +1 -0
  37. package/es2015/src/modules/calendar/index.js +7 -0
  38. package/es2015/src/modules/calendar/index.js.map +1 -0
  39. package/es2015/src/modules/calendar/interfaces/calendarDayData.interface.js +2 -0
  40. package/es2015/src/modules/calendar/interfaces/calendarDayData.interface.js.map +1 -0
  41. package/es2015/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js +2 -0
  42. package/es2015/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js.map +1 -0
  43. package/es2015/src/modules/calendar/interfaces/eventData.interface.js +2 -0
  44. package/es2015/src/modules/calendar/interfaces/eventData.interface.js.map +1 -0
  45. package/es2015/src/modules/calendar/interfaces/index.js +4 -0
  46. package/es2015/src/modules/calendar/interfaces/index.js.map +1 -0
  47. package/es2015/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js +27 -0
  48. package/es2015/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js.map +1 -0
  49. package/es2015/src/modules/calendar/misc/enums/index.js +3 -0
  50. package/es2015/src/modules/calendar/misc/enums/index.js.map +1 -0
  51. package/es2015/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js +19 -0
  52. package/es2015/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js.map +1 -0
  53. package/es2015/src/modules/calendar/misc/index.js +2 -0
  54. package/es2015/src/modules/calendar/misc/index.js.map +1 -0
  55. package/es2015/src/modules/calendar/modules/index.js +2 -0
  56. package/es2015/src/modules/calendar/modules/index.js.map +1 -0
  57. package/es2015/src/modules/calendar/modules/monthCalendar.module.js +32 -0
  58. package/es2015/src/modules/calendar/modules/monthCalendar.module.js.map +1 -0
  59. package/es2015/src/modules/calendar/services/eventParser/eventParser.service.js +75 -0
  60. package/es2015/src/modules/calendar/services/eventParser/eventParser.service.js.map +1 -0
  61. package/es2015/src/modules/calendar/services/index.js +2 -0
  62. package/es2015/src/modules/calendar/services/index.js.map +1 -0
  63. package/es2015/src/modules/datePipes.module.js +4 -4
  64. package/es2015/src/modules/dateTime/directives/dateTime/dateTime.directive.js +8 -7
  65. package/es2015/src/modules/dateTime/directives/dateTime/dateTime.directive.js.map +1 -1
  66. package/es2015/src/modules/dateTime/directives/dateTimeBase.js +5 -5
  67. package/es2015/src/modules/dateTime/directives/dateTimeBase.js.map +1 -1
  68. package/es2015/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js +7 -6
  69. package/es2015/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js.map +1 -1
  70. package/es2015/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js +10 -9
  71. package/es2015/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js.map +1 -1
  72. package/es2015/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js +7 -6
  73. package/es2015/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js.map +1 -1
  74. package/es2015/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js +7 -6
  75. package/es2015/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js.map +1 -1
  76. package/es2015/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js +7 -6
  77. package/es2015/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js.map +1 -1
  78. package/es2015/src/modules/dateTime/modules/dateTime.module.js +28 -28
  79. package/es2015/src/modules/dateTime/modules/dateTime.module.js.map +1 -1
  80. package/es2015/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.js.map +1 -1
  81. package/es2015/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js +5 -5
  82. package/es2015/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js.map +1 -1
  83. package/es2015/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js +3 -3
  84. package/es2015/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js.map +1 -1
  85. package/es2015/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js +3 -3
  86. package/es2015/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js.map +1 -1
  87. package/es2015/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js +6 -7
  88. package/es2015/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js.map +1 -1
  89. package/es2015/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.js.map +1 -1
  90. package/es2015/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js +3 -3
  91. package/es2015/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js.map +1 -1
  92. package/es2015/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js +8 -7
  93. package/es2015/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js.map +1 -1
  94. package/es2015/src/modules/dateTimePicker/directives/index.js +3 -0
  95. package/es2015/src/modules/dateTimePicker/directives/index.js.map +1 -1
  96. package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.js +222 -0
  97. package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.js.map +1 -0
  98. package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js +2 -0
  99. package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js.map +1 -0
  100. package/es2015/src/{legacy/picker → modules/dateTimePicker}/directives/loopScrollData/loopScrollData.directive.js +6 -5
  101. package/es2015/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.js.map +1 -0
  102. package/es2015/src/modules/dateTimePicker/interfaces/index.js +1 -0
  103. package/es2015/src/modules/dateTimePicker/interfaces/index.js.map +1 -1
  104. package/es2015/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js +2 -0
  105. package/es2015/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js.map +1 -0
  106. package/es2015/src/modules/dateTimePicker/modules/dateTimePicker.module.js +10 -9
  107. package/es2015/src/modules/dateTimePicker/modules/dateTimePicker.module.js.map +1 -1
  108. package/es2015/src/modules/index.js +1 -0
  109. package/es2015/src/modules/index.js.map +1 -1
  110. package/es2015/src/pipes/dateConvert.pipe.js +3 -3
  111. package/es2015/src/pipes/dateConvert.pipe.js.map +1 -1
  112. package/es2015/src/pipes/dateFormat.pipe.js +3 -3
  113. package/es2015/src/pipes/dateFormat.pipe.js.map +1 -1
  114. package/es2015/src/services/dateApi/dateApi.interface.js.map +1 -1
  115. package/es2015/src/services/datePositionParser/datePositionParser.service.js +5 -3
  116. package/es2015/src/services/datePositionParser/datePositionParser.service.js.map +1 -1
  117. package/es2015/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js +3 -3
  118. package/es2015/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js.map +1 -1
  119. package/es2015/src/services/dateValueProvider/dateValueProvider.service.js +3 -3
  120. package/es2015/src/services/dateValueProvider/dateValueProvider.service.js.map +1 -1
  121. package/es2020/date-fns/src/services/dateFnsDateApi.service.js +37 -6
  122. package/es2020/date-fns/src/services/dateFnsDateApi.service.js.map +1 -1
  123. package/es2020/moment/src/services/momentDateApi.service.js +35 -3
  124. package/es2020/moment/src/services/momentDateApi.service.js.map +1 -1
  125. package/es2020/src/directives/index.js +1 -0
  126. package/es2020/src/directives/index.js.map +1 -1
  127. package/es2020/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js +32 -0
  128. package/es2020/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js.map +1 -0
  129. package/es2020/src/directives/withTime/withTime.directive.js +5 -5
  130. package/es2020/src/directives/withTime/withTime.directive.js.map +1 -1
  131. package/es2020/src/directives/withToday/withToday.directive.js +5 -5
  132. package/es2020/src/directives/withToday/withToday.directive.js.map +1 -1
  133. package/es2020/src/index.js +0 -8
  134. package/es2020/src/index.js.map +1 -1
  135. package/es2020/src/interfaces/dateTime/datetime.interface.js.map +1 -1
  136. package/es2020/src/legacy/picker/components/picker/picker.component.animations.js +93 -70
  137. package/es2020/src/legacy/picker/components/picker/picker.component.animations.js.map +1 -1
  138. package/es2020/src/legacy/selector/components/inputDateTime/inputDateTime.component.js +487 -432
  139. package/es2020/src/legacy/selector/components/inputDateTime/inputDateTime.component.js.map +1 -1
  140. package/es2020/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js +366 -321
  141. package/es2020/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js.map +1 -1
  142. package/es2020/src/misc/validators.js +0 -57
  143. package/es2020/src/misc/validators.js.map +1 -1
  144. package/es2020/src/modules/calendar/components/index.js +2 -0
  145. package/es2020/src/modules/calendar/components/index.js.map +1 -0
  146. package/es2020/src/modules/calendar/components/monthCalendar/monthCalendar.component.js +195 -0
  147. package/es2020/src/modules/calendar/components/monthCalendar/monthCalendar.component.js.map +1 -0
  148. package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js +2 -0
  149. package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js.map +1 -0
  150. package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js +27 -0
  151. package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js.map +1 -0
  152. package/es2020/src/modules/calendar/directives/index.js +3 -0
  153. package/es2020/src/modules/calendar/directives/index.js.map +1 -0
  154. package/es2020/src/modules/calendar/index.js +7 -0
  155. package/es2020/src/modules/calendar/index.js.map +1 -0
  156. package/es2020/src/modules/calendar/interfaces/calendarDayData.interface.js +2 -0
  157. package/es2020/src/modules/calendar/interfaces/calendarDayData.interface.js.map +1 -0
  158. package/es2020/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js +2 -0
  159. package/es2020/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js.map +1 -0
  160. package/es2020/src/modules/calendar/interfaces/eventData.interface.js +2 -0
  161. package/es2020/src/modules/calendar/interfaces/eventData.interface.js.map +1 -0
  162. package/es2020/src/modules/calendar/interfaces/index.js +4 -0
  163. package/es2020/src/modules/calendar/interfaces/index.js.map +1 -0
  164. package/es2020/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js +27 -0
  165. package/es2020/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js.map +1 -0
  166. package/es2020/src/modules/calendar/misc/enums/index.js +3 -0
  167. package/es2020/src/modules/calendar/misc/enums/index.js.map +1 -0
  168. package/es2020/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js +19 -0
  169. package/es2020/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js.map +1 -0
  170. package/es2020/src/modules/calendar/misc/index.js +2 -0
  171. package/es2020/src/modules/calendar/misc/index.js.map +1 -0
  172. package/es2020/src/modules/calendar/modules/index.js +2 -0
  173. package/es2020/src/modules/calendar/modules/index.js.map +1 -0
  174. package/es2020/src/modules/calendar/modules/monthCalendar.module.js +32 -0
  175. package/es2020/src/modules/calendar/modules/monthCalendar.module.js.map +1 -0
  176. package/es2020/src/modules/calendar/services/eventParser/eventParser.service.js +74 -0
  177. package/es2020/src/modules/calendar/services/eventParser/eventParser.service.js.map +1 -0
  178. package/es2020/src/modules/calendar/services/index.js +2 -0
  179. package/es2020/src/modules/calendar/services/index.js.map +1 -0
  180. package/es2020/src/modules/datePipes.module.js +4 -4
  181. package/es2020/src/modules/dateTime/directives/dateTime/dateTime.directive.js +8 -7
  182. package/es2020/src/modules/dateTime/directives/dateTime/dateTime.directive.js.map +1 -1
  183. package/es2020/src/modules/dateTime/directives/dateTimeBase.js +5 -5
  184. package/es2020/src/modules/dateTime/directives/dateTimeBase.js.map +1 -1
  185. package/es2020/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js +7 -6
  186. package/es2020/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js.map +1 -1
  187. package/es2020/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js +10 -9
  188. package/es2020/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js.map +1 -1
  189. package/es2020/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js +7 -6
  190. package/es2020/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js.map +1 -1
  191. package/es2020/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js +7 -6
  192. package/es2020/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js.map +1 -1
  193. package/es2020/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js +7 -6
  194. package/es2020/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js.map +1 -1
  195. package/es2020/src/modules/dateTime/modules/dateTime.module.js +28 -28
  196. package/es2020/src/modules/dateTime/modules/dateTime.module.js.map +1 -1
  197. package/es2020/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.js.map +1 -1
  198. package/es2020/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js +5 -5
  199. package/es2020/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js.map +1 -1
  200. package/es2020/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js +3 -3
  201. package/es2020/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js.map +1 -1
  202. package/es2020/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js +3 -3
  203. package/es2020/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js.map +1 -1
  204. package/es2020/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js +6 -7
  205. package/es2020/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js.map +1 -1
  206. package/es2020/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.js.map +1 -1
  207. package/es2020/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js +3 -3
  208. package/es2020/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js.map +1 -1
  209. package/es2020/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js +9 -8
  210. package/es2020/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js.map +1 -1
  211. package/es2020/src/modules/dateTimePicker/directives/index.js +3 -0
  212. package/es2020/src/modules/dateTimePicker/directives/index.js.map +1 -1
  213. package/es2020/src/{legacy/picker → modules/dateTimePicker}/directives/loopScroll/loopScroll.directive.js +65 -56
  214. package/es2020/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.js.map +1 -0
  215. package/es2020/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js +2 -0
  216. package/es2020/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js.map +1 -0
  217. package/es2020/src/{legacy/picker → modules/dateTimePicker}/directives/loopScrollData/loopScrollData.directive.js +6 -5
  218. package/es2020/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.js.map +1 -0
  219. package/es2020/src/modules/dateTimePicker/interfaces/index.js +1 -0
  220. package/es2020/src/modules/dateTimePicker/interfaces/index.js.map +1 -1
  221. package/es2020/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js +2 -0
  222. package/es2020/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js.map +1 -0
  223. package/es2020/src/modules/dateTimePicker/modules/dateTimePicker.module.js +10 -9
  224. package/es2020/src/modules/dateTimePicker/modules/dateTimePicker.module.js.map +1 -1
  225. package/es2020/src/modules/index.js +1 -0
  226. package/es2020/src/modules/index.js.map +1 -1
  227. package/es2020/src/pipes/dateConvert.pipe.js +3 -3
  228. package/es2020/src/pipes/dateConvert.pipe.js.map +1 -1
  229. package/es2020/src/pipes/dateFormat.pipe.js +3 -3
  230. package/es2020/src/pipes/dateFormat.pipe.js.map +1 -1
  231. package/es2020/src/services/dateApi/dateApi.interface.js.map +1 -1
  232. package/es2020/src/services/datePositionParser/datePositionParser.service.js +5 -3
  233. package/es2020/src/services/datePositionParser/datePositionParser.service.js.map +1 -1
  234. package/es2020/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js +3 -3
  235. package/es2020/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js.map +1 -1
  236. package/es2020/src/services/dateValueProvider/dateValueProvider.service.js +3 -3
  237. package/es2020/src/services/dateValueProvider/dateValueProvider.service.js.map +1 -1
  238. package/moment/src/services/momentDateApi.service.d.ts +25 -12
  239. package/moment/src/services/momentDateApi.service.d.ts.map +1 -1
  240. package/package.json +27 -36
  241. package/src/directives/index.d.ts +1 -0
  242. package/src/directives/index.d.ts.map +1 -1
  243. package/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.d.ts +11 -0
  244. package/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.d.ts.map +1 -0
  245. package/src/directives/withTime/withTime.directive.d.ts +3 -3
  246. package/src/directives/withTime/withTime.directive.d.ts.map +1 -1
  247. package/src/directives/withToday/withToday.directive.d.ts +3 -3
  248. package/src/directives/withToday/withToday.directive.d.ts.map +1 -1
  249. package/src/index.d.ts +0 -8
  250. package/src/index.d.ts.map +1 -1
  251. package/src/interfaces/dateTime/datetime.interface.d.ts +1 -22
  252. package/src/interfaces/dateTime/datetime.interface.d.ts.map +1 -1
  253. package/src/legacy/picker/components/picker/picker.component.animations.d.ts +0 -4
  254. package/src/legacy/picker/components/picker/picker.component.animations.d.ts.map +1 -1
  255. package/src/legacy/selector/components/inputDateTime/inputDateTime.component.d.ts +0 -185
  256. package/src/legacy/selector/components/inputDateTime/inputDateTime.component.d.ts.map +1 -1
  257. package/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.d.ts +0 -169
  258. package/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.d.ts.map +1 -1
  259. package/src/misc/validators.d.ts +0 -23
  260. package/src/misc/validators.d.ts.map +1 -1
  261. package/src/modules/calendar/components/index.d.ts +2 -0
  262. package/src/modules/calendar/components/index.d.ts.map +1 -0
  263. package/src/modules/calendar/components/monthCalendar/monthCalendar.component.d.ts +94 -0
  264. package/src/modules/calendar/components/monthCalendar/monthCalendar.component.d.ts.map +1 -0
  265. package/src/modules/calendar/components/monthCalendar/monthCalendar.component.html +15 -0
  266. package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.d.ts +11 -0
  267. package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.d.ts.map +1 -0
  268. package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.d.ts +17 -0
  269. package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.d.ts.map +1 -0
  270. package/src/modules/calendar/directives/index.d.ts +3 -0
  271. package/src/modules/calendar/directives/index.d.ts.map +1 -0
  272. package/src/modules/calendar/index.d.ts +7 -0
  273. package/src/modules/calendar/index.d.ts.map +1 -0
  274. package/src/modules/calendar/interfaces/calendarDayData.interface.d.ts +31 -0
  275. package/src/modules/calendar/interfaces/calendarDayData.interface.d.ts.map +1 -0
  276. package/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.d.ts +19 -0
  277. package/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.d.ts.map +1 -0
  278. package/src/modules/calendar/interfaces/eventData.interface.d.ts +37 -0
  279. package/src/modules/calendar/interfaces/eventData.interface.d.ts.map +1 -0
  280. package/src/modules/calendar/interfaces/index.d.ts +4 -0
  281. package/src/modules/calendar/interfaces/index.d.ts.map +1 -0
  282. package/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.d.ts +26 -0
  283. package/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.d.ts.map +1 -0
  284. package/src/modules/calendar/misc/enums/index.d.ts +3 -0
  285. package/src/modules/calendar/misc/enums/index.d.ts.map +1 -0
  286. package/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.d.ts +18 -0
  287. package/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.d.ts.map +1 -0
  288. package/src/modules/calendar/misc/index.d.ts +2 -0
  289. package/src/modules/calendar/misc/index.d.ts.map +1 -0
  290. package/src/modules/calendar/modules/index.d.ts +2 -0
  291. package/src/modules/calendar/modules/index.d.ts.map +1 -0
  292. package/src/modules/calendar/modules/monthCalendar.module.d.ts +13 -0
  293. package/src/modules/calendar/modules/monthCalendar.module.d.ts.map +1 -0
  294. package/src/modules/calendar/services/eventParser/eventParser.service.d.ts +18 -0
  295. package/src/modules/calendar/services/eventParser/eventParser.service.d.ts.map +1 -0
  296. package/src/modules/calendar/services/index.d.ts +2 -0
  297. package/src/modules/calendar/services/index.d.ts.map +1 -0
  298. package/src/modules/dateTime/directives/dateTime/dateTime.directive.d.ts +3 -3
  299. package/src/modules/dateTime/directives/dateTime/dateTime.directive.d.ts.map +1 -1
  300. package/src/modules/dateTime/directives/dateTimeBase.d.ts +3 -3
  301. package/src/modules/dateTime/directives/dateTimeBase.d.ts.map +1 -1
  302. package/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.d.ts +3 -3
  303. package/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.d.ts.map +1 -1
  304. package/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.d.ts +3 -3
  305. package/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.d.ts.map +1 -1
  306. package/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.d.ts +3 -3
  307. package/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.d.ts.map +1 -1
  308. package/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.d.ts +3 -3
  309. package/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.d.ts.map +1 -1
  310. package/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.d.ts +3 -3
  311. package/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.d.ts.map +1 -1
  312. package/src/modules/dateTime/modules/dateTime.module.d.ts +1 -1
  313. package/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.d.ts +1 -2
  314. package/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.d.ts.map +1 -1
  315. package/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.d.ts +3 -3
  316. package/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.d.ts.map +1 -1
  317. package/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.d.ts +2 -3
  318. package/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.d.ts.map +1 -1
  319. package/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.d.ts +2 -3
  320. package/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.d.ts.map +1 -1
  321. package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.d.ts +6 -7
  322. package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.d.ts.map +1 -1
  323. package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.d.ts +1 -1
  324. package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.d.ts.map +1 -1
  325. package/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.d.ts +2 -3
  326. package/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.d.ts.map +1 -1
  327. package/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.d.ts +3 -3
  328. package/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.d.ts.map +1 -1
  329. package/src/modules/dateTimePicker/directives/index.d.ts +3 -0
  330. package/src/modules/dateTimePicker/directives/index.d.ts.map +1 -1
  331. package/src/{legacy/picker → modules/dateTimePicker}/directives/loopScroll/loopScroll.directive.d.ts +18 -18
  332. package/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.d.ts.map +1 -0
  333. package/src/{legacy/picker → modules/dateTimePicker}/directives/loopScroll/loopScroll.interface.d.ts +1 -1
  334. package/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.d.ts.map +1 -0
  335. package/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.d.ts +20 -0
  336. package/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.d.ts.map +1 -0
  337. package/src/modules/dateTimePicker/interfaces/index.d.ts +1 -0
  338. package/src/modules/dateTimePicker/interfaces/index.d.ts.map +1 -1
  339. package/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.d.ts +62 -0
  340. package/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.d.ts.map +1 -0
  341. package/src/modules/dateTimePicker/modules/dateTimePicker.module.d.ts +1 -1
  342. package/src/modules/dateTimePicker/modules/dateTimePicker.module.d.ts.map +1 -1
  343. package/src/modules/index.d.ts +1 -0
  344. package/src/modules/index.d.ts.map +1 -1
  345. package/src/pipes/dateConvert.pipe.d.ts +1 -1
  346. package/src/pipes/dateConvert.pipe.d.ts.map +1 -1
  347. package/src/pipes/dateFormat.pipe.d.ts +1 -1
  348. package/src/pipes/dateFormat.pipe.d.ts.map +1 -1
  349. package/src/services/dateApi/dateApi.interface.d.ts +25 -12
  350. package/src/services/dateApi/dateApi.interface.d.ts.map +1 -1
  351. package/src/services/datePositionParser/datePositionParser.service.d.ts.map +1 -1
  352. package/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.d.ts +2 -2
  353. package/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.d.ts.map +1 -1
  354. package/src/services/dateValueProvider/dateValueProvider.service.d.ts +1 -1
  355. package/src/services/dateValueProvider/dateValueProvider.service.d.ts.map +1 -1
  356. package/styles/components/_month-calendar.scss +68 -0
  357. package/styles/core/_mixins.scss +2 -0
  358. package/styles/core/_theme.scss +11 -0
  359. package/version.bak +1 -1
  360. package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js +0 -14
  361. package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js.map +0 -1
  362. package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js +0 -2
  363. package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js.map +0 -1
  364. package/es2015/src/legacy/picker/components/dayPicker/dayPicker.component.js +0 -214
  365. package/es2015/src/legacy/picker/components/dayPicker/dayPicker.component.js.map +0 -1
  366. package/es2015/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js +0 -2
  367. package/es2015/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js.map +0 -1
  368. package/es2015/src/legacy/picker/components/monthPicker/monthPicker.component.js +0 -116
  369. package/es2015/src/legacy/picker/components/monthPicker/monthPicker.component.js.map +0 -1
  370. package/es2015/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js +0 -2
  371. package/es2015/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js.map +0 -1
  372. package/es2015/src/legacy/picker/components/picker/picker.component.js +0 -242
  373. package/es2015/src/legacy/picker/components/picker/picker.component.js.map +0 -1
  374. package/es2015/src/legacy/picker/components/pickerBase.component.js +0 -138
  375. package/es2015/src/legacy/picker/components/pickerBase.component.js.map +0 -1
  376. package/es2015/src/legacy/picker/components/pickerImplBase.component.js +0 -145
  377. package/es2015/src/legacy/picker/components/pickerImplBase.component.js.map +0 -1
  378. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js +0 -148
  379. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js.map +0 -1
  380. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js +0 -341
  381. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js.map +0 -1
  382. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js +0 -2
  383. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js.map +0 -1
  384. package/es2015/src/legacy/picker/components/yearPicker/yearPicker.component.js +0 -128
  385. package/es2015/src/legacy/picker/components/yearPicker/yearPicker.component.js.map +0 -1
  386. package/es2015/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js +0 -2
  387. package/es2015/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js.map +0 -1
  388. package/es2015/src/legacy/picker/directives/index.js +0 -4
  389. package/es2015/src/legacy/picker/directives/index.js.map +0 -1
  390. package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.directive.js +0 -213
  391. package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.directive.js.map +0 -1
  392. package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.interface.js +0 -3
  393. package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.interface.js.map +0 -1
  394. package/es2015/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.js.map +0 -1
  395. package/es2015/src/legacy/picker/interfaces.js +0 -6
  396. package/es2015/src/legacy/picker/interfaces.js.map +0 -1
  397. package/es2015/src/legacy/picker/misc/datetimePicker.interface.js +0 -2
  398. package/es2015/src/legacy/picker/misc/datetimePicker.interface.js.map +0 -1
  399. package/es2015/src/legacy/picker/misc/tokens.js +0 -6
  400. package/es2015/src/legacy/picker/misc/tokens.js.map +0 -1
  401. package/es2015/src/legacy/picker/modules/picker.module.js +0 -65
  402. package/es2015/src/legacy/picker/modules/picker.module.js.map +0 -1
  403. package/es2015/src/legacy/picker/types.js +0 -10
  404. package/es2015/src/legacy/picker/types.js.map +0 -1
  405. package/es2015/src/legacy/selector/components/selector/selector.component.animations.js +0 -15
  406. package/es2015/src/legacy/selector/components/selector/selector.component.animations.js.map +0 -1
  407. package/es2015/src/legacy/selector/components/selector/selector.component.js +0 -357
  408. package/es2015/src/legacy/selector/components/selector/selector.component.js.map +0 -1
  409. package/es2015/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js +0 -134
  410. package/es2015/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js.map +0 -1
  411. package/es2015/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js +0 -51
  412. package/es2015/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js.map +0 -1
  413. package/es2015/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js +0 -51
  414. package/es2015/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js.map +0 -1
  415. package/es2015/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js +0 -47
  416. package/es2015/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js.map +0 -1
  417. package/es2015/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js +0 -119
  418. package/es2015/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js.map +0 -1
  419. package/es2015/src/legacy/selector/interfaces.js +0 -2
  420. package/es2015/src/legacy/selector/interfaces.js.map +0 -1
  421. package/es2015/src/legacy/selector/misc/datetimeSelector.interface.js +0 -2
  422. package/es2015/src/legacy/selector/misc/datetimeSelector.interface.js.map +0 -1
  423. package/es2015/src/legacy/selector/misc/tokens.js +0 -6
  424. package/es2015/src/legacy/selector/misc/tokens.js.map +0 -1
  425. package/es2015/src/legacy/selector/modules/basicSelector.module.js +0 -20
  426. package/es2015/src/legacy/selector/modules/basicSelector.module.js.map +0 -1
  427. package/es2015/src/legacy/selector/modules/selector.module.js +0 -63
  428. package/es2015/src/legacy/selector/modules/selector.module.js.map +0 -1
  429. package/es2015/src/legacy/selector/types.js +0 -11
  430. package/es2015/src/legacy/selector/types.js.map +0 -1
  431. package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js +0 -14
  432. package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js.map +0 -1
  433. package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js +0 -2
  434. package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js.map +0 -1
  435. package/es2020/src/legacy/picker/components/dayPicker/dayPicker.component.js +0 -214
  436. package/es2020/src/legacy/picker/components/dayPicker/dayPicker.component.js.map +0 -1
  437. package/es2020/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js +0 -2
  438. package/es2020/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js.map +0 -1
  439. package/es2020/src/legacy/picker/components/monthPicker/monthPicker.component.js +0 -116
  440. package/es2020/src/legacy/picker/components/monthPicker/monthPicker.component.js.map +0 -1
  441. package/es2020/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js +0 -2
  442. package/es2020/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js.map +0 -1
  443. package/es2020/src/legacy/picker/components/picker/picker.component.js +0 -237
  444. package/es2020/src/legacy/picker/components/picker/picker.component.js.map +0 -1
  445. package/es2020/src/legacy/picker/components/pickerBase.component.js +0 -138
  446. package/es2020/src/legacy/picker/components/pickerBase.component.js.map +0 -1
  447. package/es2020/src/legacy/picker/components/pickerImplBase.component.js +0 -145
  448. package/es2020/src/legacy/picker/components/pickerImplBase.component.js.map +0 -1
  449. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js +0 -142
  450. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js.map +0 -1
  451. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js +0 -341
  452. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js.map +0 -1
  453. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js +0 -2
  454. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js.map +0 -1
  455. package/es2020/src/legacy/picker/components/yearPicker/yearPicker.component.js +0 -128
  456. package/es2020/src/legacy/picker/components/yearPicker/yearPicker.component.js.map +0 -1
  457. package/es2020/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js +0 -2
  458. package/es2020/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js.map +0 -1
  459. package/es2020/src/legacy/picker/directives/index.js +0 -4
  460. package/es2020/src/legacy/picker/directives/index.js.map +0 -1
  461. package/es2020/src/legacy/picker/directives/loopScroll/loopScroll.directive.js.map +0 -1
  462. package/es2020/src/legacy/picker/directives/loopScroll/loopScroll.interface.js +0 -3
  463. package/es2020/src/legacy/picker/directives/loopScroll/loopScroll.interface.js.map +0 -1
  464. package/es2020/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.js.map +0 -1
  465. package/es2020/src/legacy/picker/interfaces.js +0 -6
  466. package/es2020/src/legacy/picker/interfaces.js.map +0 -1
  467. package/es2020/src/legacy/picker/misc/datetimePicker.interface.js +0 -2
  468. package/es2020/src/legacy/picker/misc/datetimePicker.interface.js.map +0 -1
  469. package/es2020/src/legacy/picker/misc/tokens.js +0 -6
  470. package/es2020/src/legacy/picker/misc/tokens.js.map +0 -1
  471. package/es2020/src/legacy/picker/modules/picker.module.js +0 -65
  472. package/es2020/src/legacy/picker/modules/picker.module.js.map +0 -1
  473. package/es2020/src/legacy/picker/types.js +0 -10
  474. package/es2020/src/legacy/picker/types.js.map +0 -1
  475. package/es2020/src/legacy/selector/components/selector/selector.component.animations.js +0 -15
  476. package/es2020/src/legacy/selector/components/selector/selector.component.animations.js.map +0 -1
  477. package/es2020/src/legacy/selector/components/selector/selector.component.js +0 -345
  478. package/es2020/src/legacy/selector/components/selector/selector.component.js.map +0 -1
  479. package/es2020/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js +0 -133
  480. package/es2020/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js.map +0 -1
  481. package/es2020/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js +0 -51
  482. package/es2020/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js.map +0 -1
  483. package/es2020/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js +0 -51
  484. package/es2020/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js.map +0 -1
  485. package/es2020/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js +0 -47
  486. package/es2020/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js.map +0 -1
  487. package/es2020/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js +0 -118
  488. package/es2020/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js.map +0 -1
  489. package/es2020/src/legacy/selector/interfaces.js +0 -2
  490. package/es2020/src/legacy/selector/interfaces.js.map +0 -1
  491. package/es2020/src/legacy/selector/misc/datetimeSelector.interface.js +0 -2
  492. package/es2020/src/legacy/selector/misc/datetimeSelector.interface.js.map +0 -1
  493. package/es2020/src/legacy/selector/misc/tokens.js +0 -6
  494. package/es2020/src/legacy/selector/misc/tokens.js.map +0 -1
  495. package/es2020/src/legacy/selector/modules/basicSelector.module.js +0 -20
  496. package/es2020/src/legacy/selector/modules/basicSelector.module.js.map +0 -1
  497. package/es2020/src/legacy/selector/modules/selector.module.js +0 -63
  498. package/es2020/src/legacy/selector/modules/selector.module.js.map +0 -1
  499. package/es2020/src/legacy/selector/types.js +0 -11
  500. package/es2020/src/legacy/selector/types.js.map +0 -1
  501. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.css +0 -0
  502. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.d.ts +0 -9
  503. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.d.ts.map +0 -1
  504. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.html +0 -0
  505. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.d.ts +0 -6
  506. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.d.ts.map +0 -1
  507. package/src/legacy/picker/components/dayPicker/dayPicker.component.css +0 -22
  508. package/src/legacy/picker/components/dayPicker/dayPicker.component.d.ts +0 -80
  509. package/src/legacy/picker/components/dayPicker/dayPicker.component.d.ts.map +0 -1
  510. package/src/legacy/picker/components/dayPicker/dayPicker.component.html +0 -21
  511. package/src/legacy/picker/components/dayPicker/dayPicker.interfaces.d.ts +0 -11
  512. package/src/legacy/picker/components/dayPicker/dayPicker.interfaces.d.ts.map +0 -1
  513. package/src/legacy/picker/components/monthPicker/monthPicker.component.css +0 -4
  514. package/src/legacy/picker/components/monthPicker/monthPicker.component.d.ts +0 -53
  515. package/src/legacy/picker/components/monthPicker/monthPicker.component.d.ts.map +0 -1
  516. package/src/legacy/picker/components/monthPicker/monthPicker.component.html +0 -13
  517. package/src/legacy/picker/components/monthPicker/monthPicker.interfaces.d.ts +0 -7
  518. package/src/legacy/picker/components/monthPicker/monthPicker.interfaces.d.ts.map +0 -1
  519. package/src/legacy/picker/components/picker/picker.component.css +0 -4
  520. package/src/legacy/picker/components/picker/picker.component.d.ts +0 -105
  521. package/src/legacy/picker/components/picker/picker.component.d.ts.map +0 -1
  522. package/src/legacy/picker/components/picker/picker.component.html +0 -3
  523. package/src/legacy/picker/components/pickerBase.component.d.ts +0 -80
  524. package/src/legacy/picker/components/pickerBase.component.d.ts.map +0 -1
  525. package/src/legacy/picker/components/pickerImplBase.component.d.ts +0 -128
  526. package/src/legacy/picker/components/pickerImplBase.component.d.ts.map +0 -1
  527. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.css +0 -64
  528. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.d.ts +0 -71
  529. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.d.ts.map +0 -1
  530. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.html +0 -67
  531. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.d.ts +0 -4
  532. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.d.ts.map +0 -1
  533. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.d.ts +0 -6
  534. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.d.ts.map +0 -1
  535. package/src/legacy/picker/components/yearPicker/yearPicker.component.css +0 -4
  536. package/src/legacy/picker/components/yearPicker/yearPicker.component.d.ts +0 -58
  537. package/src/legacy/picker/components/yearPicker/yearPicker.component.d.ts.map +0 -1
  538. package/src/legacy/picker/components/yearPicker/yearPicker.component.html +0 -13
  539. package/src/legacy/picker/components/yearPicker/yearPicker.interfaces.d.ts +0 -7
  540. package/src/legacy/picker/components/yearPicker/yearPicker.interfaces.d.ts.map +0 -1
  541. package/src/legacy/picker/directives/index.d.ts +0 -4
  542. package/src/legacy/picker/directives/index.d.ts.map +0 -1
  543. package/src/legacy/picker/directives/loopScroll/loopScroll.directive.d.ts.map +0 -1
  544. package/src/legacy/picker/directives/loopScroll/loopScroll.interface.d.ts.map +0 -1
  545. package/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.d.ts +0 -20
  546. package/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.d.ts.map +0 -1
  547. package/src/legacy/picker/interfaces.d.ts +0 -6
  548. package/src/legacy/picker/interfaces.d.ts.map +0 -1
  549. package/src/legacy/picker/misc/datetimePicker.interface.d.ts +0 -193
  550. package/src/legacy/picker/misc/datetimePicker.interface.d.ts.map +0 -1
  551. package/src/legacy/picker/misc/tokens.d.ts +0 -7
  552. package/src/legacy/picker/misc/tokens.d.ts.map +0 -1
  553. package/src/legacy/picker/modules/picker.module.d.ts +0 -20
  554. package/src/legacy/picker/modules/picker.module.d.ts.map +0 -1
  555. package/src/legacy/picker/types.d.ts +0 -10
  556. package/src/legacy/picker/types.d.ts.map +0 -1
  557. package/src/legacy/selector/components/selector/selector.component.animations.d.ts +0 -5
  558. package/src/legacy/selector/components/selector/selector.component.animations.d.ts.map +0 -1
  559. package/src/legacy/selector/components/selector/selector.component.css +0 -11
  560. package/src/legacy/selector/components/selector/selector.component.d.ts +0 -157
  561. package/src/legacy/selector/components/selector/selector.component.d.ts.map +0 -1
  562. package/src/legacy/selector/components/selector/selector.component.html +0 -10
  563. package/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.d.ts +0 -80
  564. package/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.d.ts.map +0 -1
  565. package/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.d.ts +0 -23
  566. package/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.d.ts.map +0 -1
  567. package/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.d.ts +0 -23
  568. package/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.d.ts.map +0 -1
  569. package/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.d.ts +0 -22
  570. package/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.d.ts.map +0 -1
  571. package/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.d.ts +0 -54
  572. package/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.d.ts.map +0 -1
  573. package/src/legacy/selector/interfaces.d.ts +0 -2
  574. package/src/legacy/selector/interfaces.d.ts.map +0 -1
  575. package/src/legacy/selector/misc/datetimeSelector.interface.d.ts +0 -96
  576. package/src/legacy/selector/misc/datetimeSelector.interface.d.ts.map +0 -1
  577. package/src/legacy/selector/misc/tokens.d.ts +0 -7
  578. package/src/legacy/selector/misc/tokens.d.ts.map +0 -1
  579. package/src/legacy/selector/modules/basicSelector.module.d.ts +0 -11
  580. package/src/legacy/selector/modules/basicSelector.module.d.ts.map +0 -1
  581. package/src/legacy/selector/modules/selector.module.d.ts +0 -20
  582. package/src/legacy/selector/modules/selector.module.d.ts.map +0 -1
  583. package/src/legacy/selector/types.d.ts +0 -11
  584. package/src/legacy/selector/types.d.ts.map +0 -1
@@ -1,242 +0,0 @@
1
- import { Component, ChangeDetectionStrategy, Optional, Inject, Input, EventEmitter, Output, ChangeDetectorRef } from '@angular/core';
2
- import { extend } from '@jscrpt/common';
3
- import { Subscription } from 'rxjs';
4
- import { DATE_API } from '../../../../misc/tokens';
5
- import { DATE_TIME_PICKER_CONFIGURATION } from '../../misc/tokens';
6
- import { DateTimeDayPickerComponent } from '../dayPicker/dayPicker.component';
7
- import { DateTimeMonthPickerComponent } from '../monthPicker/monthPicker.component';
8
- import { DateTimeYearPickerComponent } from '../yearPicker/yearPicker.component';
9
- import { scaleUpDownTrigger } from './picker.component.animations';
10
- import * as i0 from "@angular/core";
11
- import * as i1 from "@anglr/common";
12
- //TODO - merge options
13
- /**
14
- * Default configuration for picker
15
- */
16
- const defaultConfiguration = {
17
- defaultPeriod: 'day',
18
- pickerPeriodsDefinition: {
19
- 'day': DateTimeDayPickerComponent,
20
- 'month': DateTimeMonthPickerComponent,
21
- 'year': DateTimeYearPickerComponent
22
- },
23
- pickerPeriodsOrder: null,
24
- cssClasses: {}
25
- };
26
- /**
27
- * Component used for displaying date time picker
28
- */
29
- export class DateTimePickerLegacyComponent {
30
- //######################### constructor #########################
31
- constructor(configuration, _dateApi, _changeDetector) {
32
- this._dateApi = _dateApi;
33
- this._changeDetector = _changeDetector;
34
- /**
35
- * Array of available picker names
36
- */
37
- this._pickerNames = [];
38
- /**
39
- * Current selected value
40
- */
41
- this._value = null;
42
- /**
43
- * All subscriptions for active picker
44
- */
45
- this._activePickerSubscriptions = new Subscription();
46
- /**
47
- * Minimal possible value that can be picked
48
- */
49
- this._minValue = null;
50
- /**
51
- * Maximal possible value that can be picked
52
- */
53
- this._maxValue = null;
54
- /**
55
- * Active picker index
56
- * @internal
57
- */
58
- this.activePickerIndex = 0;
59
- //######################### public properties - outputs #########################
60
- /**
61
- * Occurs when value changes
62
- */
63
- this.valueChange = new EventEmitter();
64
- this._options = extend(true, {}, defaultConfiguration, configuration);
65
- // without deep-copy for this attribute
66
- if (configuration === null || configuration === void 0 ? void 0 : configuration.pickerPeriodsDefinition) {
67
- this._options.pickerPeriodsDefinition = configuration.pickerPeriodsDefinition;
68
- }
69
- }
70
- //######################### public properties - inputs #########################
71
- /**
72
- * Current options used by picker
73
- */
74
- get options() {
75
- return this._options;
76
- }
77
- set options(value) {
78
- this._options = extend(true, this._options, value);
79
- // without deep-copy for this attribute
80
- if (value === null || value === void 0 ? void 0 : value.pickerPeriodsDefinition) {
81
- this._options.pickerPeriodsDefinition = value.pickerPeriodsDefinition;
82
- }
83
- }
84
- /**
85
- * Current selected value
86
- */
87
- get value() {
88
- return this._value;
89
- }
90
- set value(value) {
91
- var _a, _b;
92
- this._value = value;
93
- (_a = this._activePicker) === null || _a === void 0 ? void 0 : _a.setValue(value);
94
- (_b = this._activePicker) === null || _b === void 0 ? void 0 : _b.invalidateVisuals();
95
- }
96
- /**
97
- * Gets or sets minimal possible value for picker, that can be picked
98
- */
99
- get minValue() {
100
- return this._minValue;
101
- }
102
- set minValue(value) {
103
- var _a;
104
- this._minValue = value;
105
- (_a = this._activePicker) === null || _a === void 0 ? void 0 : _a.setMinValue(this._minValue);
106
- }
107
- /**
108
- * Gets or sets maximal possible value for picker, that can be picked
109
- */
110
- get maxValue() {
111
- return this._maxValue;
112
- }
113
- set maxValue(value) {
114
- var _a;
115
- this._maxValue = value;
116
- (_a = this._activePicker) === null || _a === void 0 ? void 0 : _a.setMaxValue(this._maxValue);
117
- }
118
- //######################### public methods - implementation of OnInit #########################
119
- /**
120
- * Initialize component
121
- */
122
- ngOnInit() {
123
- if (this._options.pickerPeriodsOrder) {
124
- if (Array.isArray(this._options.pickerPeriodsOrder)) {
125
- this._pickerNames = this._options.pickerPeriodsOrder;
126
- }
127
- else {
128
- this._pickerNames = this._options.pickerPeriodsOrder.split(',')
129
- .map(x => x.trim())
130
- .filter(x => x);
131
- }
132
- }
133
- if (this._pickerNames && this._pickerNames.length > 0) {
134
- this._pickerNames.forEach(x => {
135
- if (!this._options.pickerPeriodsDefinition[x]) {
136
- throw new Error(`There is no period '${x}' in picker options`);
137
- }
138
- });
139
- }
140
- else {
141
- this._pickerNames = Object.keys(this._options.pickerPeriodsDefinition);
142
- }
143
- if (this._pickerNames.findIndex(x => x == this._options.defaultPeriod) < 0) {
144
- throw new Error(`There is no period '${this._options.defaultPeriod}' in picker options`);
145
- }
146
- this.activePickerComponent = this._options.pickerPeriodsDefinition[this._options.defaultPeriod];
147
- this._activePickerName = this._options.defaultPeriod;
148
- this.activePickerIndex = this._pickerNames.indexOf(this._activePickerName);
149
- }
150
- //######################### public methods - implementation of OnDestroy #########################
151
- /**
152
- * Called when component is destroyed
153
- */
154
- ngOnDestroy() {
155
- this._display = undefined;
156
- this._activePickerSubscriptions.unsubscribe();
157
- }
158
- //######################### public methods - template bindings #########################
159
- /**
160
- * Handles created or destroyed date time picker instance
161
- * @param picker - Instance of picker or null
162
- * @internal
163
- */
164
- pickerCreated(picker) {
165
- var _a, _b;
166
- if (picker == this._activePicker) {
167
- return;
168
- }
169
- this._activePicker = picker;
170
- this._activePickerSubscriptions.unsubscribe();
171
- this._activePickerSubscriptions = new Subscription();
172
- if (!this._activePicker) {
173
- return;
174
- }
175
- this._activePickerSubscriptions.add(picker.valueChange.subscribe(() => {
176
- this._value = picker.value;
177
- this.valueChange.emit(this._value);
178
- }));
179
- this._activePickerSubscriptions.add(picker.scaleUp.subscribe(display => {
180
- this._display = display;
181
- const index = this._pickerNames.indexOf(this._activePickerName) + 1;
182
- this._activePickerName = this._pickerNames[index];
183
- this.activePickerIndex = this._pickerNames.indexOf(this._activePickerName);
184
- this.activePickerComponent = this._options.pickerPeriodsDefinition[this._activePickerName];
185
- }));
186
- this._activePickerSubscriptions.add(picker.scaleDown.subscribe(display => {
187
- this._display = display;
188
- const index = this._pickerNames.indexOf(this._activePickerName) - 1;
189
- this._activePickerName = this._pickerNames[index];
190
- this.activePickerIndex = this._pickerNames.indexOf(this._activePickerName);
191
- this.activePickerComponent = this._options.pickerPeriodsDefinition[this._activePickerName];
192
- }));
193
- picker.setCanGoDown(this._pickerNames.indexOf(this._activePickerName) > 0);
194
- picker.setCanGoUp(this._pickerNames.indexOf(this._activePickerName) < this._pickerNames.length - 1);
195
- this._setPickerCssClasses();
196
- picker.setValue(this._value);
197
- picker.setMinValue(this._minValue);
198
- picker.setMaxValue(this._maxValue);
199
- picker.display(this._display ? this._dateApi.getValue(this._display) : this._dateApi.getValue((_b = (_a = this._value) === null || _a === void 0 ? void 0 : _a.from) !== null && _b !== void 0 ? _b : this._dateApi.now().value));
200
- picker.invalidateVisuals();
201
- }
202
- //######################### protected methods #########################
203
- /**
204
- * Sets picker css classes
205
- */
206
- _setPickerCssClasses() {
207
- var _a, _b, _c, _d, _e, _f, _g, _h, _j;
208
- if (!this._activePicker) {
209
- return;
210
- }
211
- //sets shared css
212
- this._activePicker.setCssClasses((_c = (_b = (_a = this._options) === null || _a === void 0 ? void 0 : _a.cssClasses) === null || _b === void 0 ? void 0 : _b.pickerShared) !== null && _c !== void 0 ? _c : {});
213
- if (((_e = (_d = this._options) === null || _d === void 0 ? void 0 : _d.cssClasses) === null || _e === void 0 ? void 0 : _e.pickerCustom) && ((_g = (_f = this._options) === null || _f === void 0 ? void 0 : _f.cssClasses) === null || _g === void 0 ? void 0 : _g.pickerCustom[this._activePickerName])) {
214
- this._activePicker.setCssClasses((_j = (_h = this._options) === null || _h === void 0 ? void 0 : _h.cssClasses) === null || _j === void 0 ? void 0 : _j.pickerCustom[this._activePickerName]);
215
- }
216
- }
217
- }
218
- DateTimePickerLegacyComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimePickerLegacyComponent, deps: [{ token: DATE_TIME_PICKER_CONFIGURATION, optional: true }, { token: DATE_API }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
219
- DateTimePickerLegacyComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.6", type: DateTimePickerLegacyComponent, selector: "date-time-picker", inputs: { options: "options", value: "value", minValue: "minValue", maxValue: "maxValue" }, outputs: { valueChange: "valueChange" }, ngImport: i0, template: "<div [@scaleUpDown]=\"activePickerIndex\">\r\n <ng-template [ngComponentOutletEx]=\"activePickerComponent!\" (ngComponentOutletExCreated)=\"pickerCreated($event!)\"></ng-template>\r\n</div>", styles: [":host\r\n{\r\n display: inline-block;\r\n}"], dependencies: [{ kind: "directive", type: i1.NgComponentOutletEx, selector: "[ngComponentOutletEx]", inputs: ["ngComponentOutletEx", "ngComponentOutletExInjector", "ngComponentOutletExContent"], outputs: ["ngComponentOutletExCreated"], exportAs: ["ngComponentOutletEx"] }], animations: [scaleUpDownTrigger], changeDetection: i0.ChangeDetectionStrategy.OnPush });
220
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimePickerLegacyComponent, decorators: [{
221
- type: Component,
222
- args: [{ selector: 'date-time-picker', animations: [scaleUpDownTrigger], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div [@scaleUpDown]=\"activePickerIndex\">\r\n <ng-template [ngComponentOutletEx]=\"activePickerComponent!\" (ngComponentOutletExCreated)=\"pickerCreated($event!)\"></ng-template>\r\n</div>", styles: [":host\r\n{\r\n display: inline-block;\r\n}"] }]
223
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
224
- type: Optional
225
- }, {
226
- type: Inject,
227
- args: [DATE_TIME_PICKER_CONFIGURATION]
228
- }] }, { type: undefined, decorators: [{
229
- type: Inject,
230
- args: [DATE_API]
231
- }] }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { options: [{
232
- type: Input
233
- }], value: [{
234
- type: Input
235
- }], minValue: [{
236
- type: Input
237
- }], maxValue: [{
238
- type: Input
239
- }], valueChange: [{
240
- type: Output
241
- }] } });
242
- //# sourceMappingURL=picker.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"picker.component.js","sourceRoot":"","sources":["../../../../../../src/legacy/picker/components/picker/picker.component.ts","../../../../../../src/legacy/picker/components/picker/picker.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAgB,YAAY,EAAE,MAAM,EAAE,iBAAiB,EAAY,MAAM,eAAe,CAAC;AAC5J,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAC,YAAY,EAAC,MAAM,MAAM,CAAC;AAGlC,OAAO,EAAC,QAAQ,EAAC,MAAM,yBAAyB,CAAC;AAGjD,OAAO,EAAC,8BAA8B,EAAC,MAAM,mBAAmB,CAAC;AACjE,OAAO,EAAC,0BAA0B,EAAC,MAAM,kCAAkC,CAAC;AAC5E,OAAO,EAAC,4BAA4B,EAAC,MAAM,sCAAsC,CAAC;AAClF,OAAO,EAAC,2BAA2B,EAAC,MAAM,oCAAoC,CAAC;AAC/E,OAAO,EAAC,kBAAkB,EAAC,MAAM,+BAA+B,CAAC;;;AAEjE,sBAAsB;AAEtB;;GAEG;AACH,MAAM,oBAAoB,GAC1B;IACI,aAAa,EAAE,KAAK;IACpB,uBAAuB,EACvB;QACI,KAAK,EAAE,0BAA0B;QACjC,OAAO,EAAE,4BAA4B;QACrC,MAAM,EAAE,2BAA2B;KACtC;IACD,kBAAkB,EAAE,IAAI;IACxB,UAAU,EACV,EACC;CACJ,CAAC;AAEF;;GAEG;AASH,MAAM,OAAO,6BAA6B;IAwItC,iEAAiE;IACjE,YAAgE,aAAgF,EACxG,QAAwB,EAC1C,eAAkC;QADhB,aAAQ,GAAR,QAAQ,CAAgB;QAC1C,oBAAe,GAAf,eAAe,CAAmB;QA7HxD;;WAEG;QACO,iBAA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,EAAE,CAAC,CAAC;QAEhF,IAAG,CAAA,MAAA,MAAA,IAAI,CAAC,QAAQ,0CAAE,UAAU,0CAAE,YAAY,MAAI,MAAA,MAAA,IAAI,CAAC,QAAQ,0CAAE,UAAU,0CAAE,YAAY,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAA,EAC7G;YACI,IAAI,CAAC,aAAa,CAAC,aAAa,CAAC,MAAA,MAAA,IAAI,CAAC,QAAQ,0CAAE,UAAU,0CAAE,YAAY,CAAC,IAAI,CAAC,iBAAiB,CAAC,CAAC,CAAC;SACrG;IACL,CAAC;;0HA5RQ,6BAA6B,kBAyIN,8BAA8B,6BAC1C,QAAQ;8GA1InB,6BAA6B,6LC7C1C,kMAEM,2VDwCU,CAAC,kBAAkB,CAAC;2FAGvB,6BAA6B;kBARzC,SAAS;+BAEI,kBAAkB,cAGhB,CAAC,kBAAkB,CAAC,mBACf,uBAAuB,CAAC,MAAM;;0BA2IlC,QAAQ;;0BAAI,MAAM;2BAAC,8BAA8B;;0BACjD,MAAM;2BAAC,QAAQ;4EArEjB,OAAO;sBADjB,KAAK;gBAoBK,KAAK;sBADf,KAAK;gBAiBK,QAAQ;sBADlB,KAAK;gBAeK,QAAQ;sBADlB,KAAK;gBAiBC,WAAW;sBADjB,MAAM","sourcesContent":["import {Component, ChangeDetectionStrategy, Optional, Inject, Input, Type, OnInit, EventEmitter, Output, ChangeDetectorRef, OnDestroy} from '@angular/core';\nimport {extend} from '@jscrpt/common';\nimport {Subscription} from 'rxjs';\n\nimport {DateTimeValue} from '../../../../interfaces/dateTime/datetime.interface';\nimport {DATE_API} from '../../../../misc/tokens';\nimport {DateApi} from '../../../../services';\nimport {DateTimeLegacyPicker, DateTimePickerLegacyOptions} from '../../misc/datetimePicker.interface';\nimport {DATE_TIME_PICKER_CONFIGURATION} from '../../misc/tokens';\nimport {DateTimeDayPickerComponent} from '../dayPicker/dayPicker.component';\nimport {DateTimeMonthPickerComponent} from '../monthPicker/monthPicker.component';\nimport {DateTimeYearPickerComponent} from '../yearPicker/yearPicker.component';\nimport {scaleUpDownTrigger} from './picker.component.animations';\n\n//TODO - merge options\n\n/**\n * Default configuration for picker\n */\nconst defaultConfiguration: DateTimePickerLegacyOptions<DateTimeLegacyPicker> =\n{\n defaultPeriod: 'day',\n pickerPeriodsDefinition:\n {\n 'day': DateTimeDayPickerComponent,\n 'month': DateTimeMonthPickerComponent,\n 'year': DateTimeYearPickerComponent\n },\n pickerPeriodsOrder: null,\n cssClasses:\n {\n }\n};\n\n/**\n * Component used for displaying date time picker\n */\n@Component(\n{\n selector: 'date-time-picker',\n templateUrl: 'picker.component.html',\n styleUrls: ['picker.component.css'],\n animations: [scaleUpDownTrigger],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DateTimePickerLegacyComponent<TDate = any> implements OnInit, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Instance of active date time picker\n */\n protected _activePicker?: DateTimeLegacyPicker<TDate>;\n\n /**\n * Name, id of displayed picker\n */\n protected _activePickerName!: string;\n\n /**\n * Array of available picker names\n */\n protected _pickerNames: string[] = [];\n\n /**\n * Current selected value\n */\n protected _value: DateTimeValue<TDate>|null = null;\n\n /**\n * All subscriptions for active picker\n */\n protected _activePickerSubscriptions: Subscription = new Subscription();\n\n /**\n * Date that should be displayed in picker, used when moving up or down in periods\n */\n protected _display?: TDate;\n\n /**\n * Minimal possible value that can be picked\n */\n protected _minValue: TDate|null = null;\n\n /**\n * Maximal possible value that can be picked\n */\n protected _maxValue: TDate|null = null;\n\n /**\n * Current options used by picker\n */\n protected _options: DateTimePickerLegacyOptions<DateTimeLegacyPicker<TDate>>;\n\n //######################### public properties - template bindings #########################\n\n /**\n * Currently active date time picker component type\n * @internal\n */\n public activePickerComponent?: Type<DateTimeLegacyPicker<TDate>>;\n\n /**\n * Active picker index\n * @internal\n */\n public activePickerIndex: number = 0;\n\n //######################### public properties - inputs #########################\n\n /**\n * Current options used by picker\n */\n @Input()\n public get options(): Partial<DateTimePickerLegacyOptions<DateTimeLegacyPicker<TDate>>>\n {\n return this._options;\n }\n public set options(value: Partial<DateTimePickerLegacyOptions<DateTimeLegacyPicker<TDate>>>)\n {\n this._options = extend(true, this._options, value);\n\n // without deep-copy for this attribute\n if (value?.pickerPeriodsDefinition)\n {\n this._options.pickerPeriodsDefinition = value.pickerPeriodsDefinition;\n }\n }\n\n /**\n * Current selected value\n */\n @Input()\n public get value(): DateTimeValue<TDate>|null\n {\n return this._value;\n }\n public set value(value: DateTimeValue<TDate>|null)\n {\n this._value = value;\n\n this._activePicker?.setValue(value);\n this._activePicker?.invalidateVisuals();\n }\n\n /**\n * Gets or sets minimal possible value for picker, that can be picked\n */\n @Input()\n public get minValue(): TDate|null\n {\n return this._minValue;\n }\n public set minValue(value: TDate|null)\n {\n this._minValue = value;\n this._activePicker?.setMinValue(this._minValue);\n }\n\n /**\n * Gets or sets maximal possible value for picker, that can be picked\n */\n @Input()\n public get maxValue(): TDate|null\n {\n return this._maxValue;\n }\n public set maxValue(value: TDate|null)\n {\n this._maxValue = value;\n this._activePicker?.setMaxValue(this._maxValue);\n }\n\n //######################### public properties - outputs #########################\n\n /**\n * Occurs when value changes\n */\n @Output()\n public valueChange: EventEmitter<DateTimeValue<TDate>> = new EventEmitter<DateTimeValue<TDate>>();\n\n //######################### constructor #########################\n constructor(@Optional() @Inject(DATE_TIME_PICKER_CONFIGURATION) configuration: Partial<DateTimePickerLegacyOptions<DateTimeLegacyPicker<TDate>>>,\n @Inject(DATE_API) protected _dateApi: DateApi<TDate>,\n protected _changeDetector: ChangeDetectorRef)\n {\n this._options = extend(true, {}, defaultConfiguration, configuration);\n // without deep-copy for this attribute\n if (configuration?.pickerPeriodsDefinition)\n {\n this._options.pickerPeriodsDefinition = configuration.pickerPeriodsDefinition;\n }\n }\n\n //######################### public methods - implementation of OnInit #########################\n\n /**\n * Initialize component\n */\n public ngOnInit(): void\n {\n if (this._options.pickerPeriodsOrder)\n {\n if (Array.isArray(this._options.pickerPeriodsOrder))\n {\n this._pickerNames = this._options.pickerPeriodsOrder;\n }\n else\n {\n this._pickerNames = this._options.pickerPeriodsOrder.split(',')\n .map(x => x.trim())\n .filter(x => x);\n }\n }\n if (this._pickerNames && this._pickerNames.length > 0)\n {\n this._pickerNames.forEach(x => \n {\n if(!this._options.pickerPeriodsDefinition![x!])\n {\n throw new Error(`There is no period '${x}' in picker options`);\n }\n });\n }\n else\n {\n this._pickerNames = Object.keys(this._options.pickerPeriodsDefinition!);\n }\n\n if(this._pickerNames.findIndex(x => x == this._options.defaultPeriod) < 0)\n {\n throw new Error(`There is no period '${this._options.defaultPeriod}' in picker options`);\n }\n\n this.activePickerComponent = this._options.pickerPeriodsDefinition![this._options.defaultPeriod!];\n this._activePickerName = this._options.defaultPeriod!;\n this.activePickerIndex = this._pickerNames.indexOf(this._activePickerName);\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n this._display = undefined;\n this._activePickerSubscriptions.unsubscribe();\n }\n\n //######################### public methods - template bindings #########################\n\n /**\n * Handles created or destroyed date time picker instance\n * @param picker - Instance of picker or null\n * @internal\n */\n public pickerCreated(picker: DateTimeLegacyPicker<TDate>): void\n {\n if(picker == this._activePicker)\n {\n return;\n }\n\n this._activePicker = picker;\n\n this._activePickerSubscriptions.unsubscribe();\n this._activePickerSubscriptions = new Subscription();\n\n if(!this._activePicker)\n {\n return;\n }\n\n this._activePickerSubscriptions.add(picker.valueChange.subscribe(() =>\n {\n this._value = picker.value;\n this.valueChange.emit(this._value!);\n }));\n\n this._activePickerSubscriptions.add(picker.scaleUp.subscribe(display =>\n {\n this._display = display;\n const index = this._pickerNames.indexOf(this._activePickerName) + 1;\n this._activePickerName = this._pickerNames[index];\n this.activePickerIndex = this._pickerNames.indexOf(this._activePickerName);\n this.activePickerComponent = this._options.pickerPeriodsDefinition![this._activePickerName];\n }));\n\n this._activePickerSubscriptions.add(picker.scaleDown.subscribe(display =>\n {\n this._display = display;\n const index = this._pickerNames.indexOf(this._activePickerName) - 1;\n this._activePickerName = this._pickerNames[index];\n this.activePickerIndex = this._pickerNames.indexOf(this._activePickerName);\n this.activePickerComponent = this._options.pickerPeriodsDefinition![this._activePickerName];\n }));\n\n picker.setCanGoDown(this._pickerNames.indexOf(this._activePickerName) > 0);\n picker.setCanGoUp(this._pickerNames.indexOf(this._activePickerName) < this._pickerNames.length - 1);\n\n this._setPickerCssClasses();\n picker.setValue(this._value);\n picker.setMinValue(this._minValue);\n picker.setMaxValue(this._maxValue);\n picker.display(this._display ? this._dateApi.getValue(this._display) : this._dateApi.getValue(this._value?.from ?? this._dateApi.now().value));\n\n picker.invalidateVisuals();\n }\n\n //######################### protected methods #########################\n\n /**\n * Sets picker css classes\n */\n protected _setPickerCssClasses(): void\n {\n if(!this._activePicker)\n {\n return;\n }\n\n //sets shared css\n this._activePicker.setCssClasses(this._options?.cssClasses?.pickerShared ?? {});\n\n if(this._options?.cssClasses?.pickerCustom && this._options?.cssClasses?.pickerCustom[this._activePickerName])\n {\n this._activePicker.setCssClasses(this._options?.cssClasses?.pickerCustom[this._activePickerName]);\n }\n }\n}\n","<div [@scaleUpDown]=\"activePickerIndex\">\r\n <ng-template [ngComponentOutletEx]=\"activePickerComponent!\" (ngComponentOutletExCreated)=\"pickerCreated($event!)\"></ng-template>\r\n</div>"]}
@@ -1,138 +0,0 @@
1
- import { ChangeDetectorRef, Directive, Inject } from '@angular/core';
2
- import { DATE_API } from '../../../misc/tokens';
3
- import { PickerImplBaseComponent } from './pickerImplBase.component';
4
- import * as i0 from "@angular/core";
5
- /**
6
- * Base class used as base for picker
7
- */
8
- export class PickerBaseComponent extends PickerImplBaseComponent {
9
- //######################### constructor #########################
10
- constructor(dateApi, changeDetector) {
11
- super(dateApi, changeDetector);
12
- //######################### protected fields #########################
13
- /**
14
- * Value of originaly set hour
15
- */
16
- this._originalHour = 0;
17
- /**
18
- * Value of originaly set minute
19
- */
20
- this._originalMinute = 0;
21
- //######################### public properties - template bindings #########################
22
- /**
23
- * Array of period data to be displayed
24
- * @internal
25
- */
26
- this.periodData = [];
27
- }
28
- //######################### public methods - template bindings #########################
29
- /**
30
- * Selects period
31
- * @param event - Event that occured
32
- * @param period - Selected period
33
- * @internal
34
- */
35
- select(event, period) {
36
- event.preventDefault();
37
- if (period.disabled) {
38
- return;
39
- }
40
- //handle selection of value
41
- if (!this.canGoDown) {
42
- this._setPeriod(period);
43
- this._value =
44
- {
45
- from: period.date,
46
- to: this._endOfPeriod(period)
47
- };
48
- this._valueChange.next();
49
- return;
50
- }
51
- this._scaleDown.next(period.date);
52
- }
53
- //######################### public methods - implementation of DateTimePicker #########################
54
- /**
55
- * Sets minimal possible value for picker, that can be picked
56
- * @param value - Minimal possible value that can be picked
57
- */
58
- setMinValue(value) {
59
- this._minValue = value;
60
- this._updateMinMax();
61
- }
62
- /**
63
- * Sets maximal possible value for picker, that can be picked
64
- * @param value - Maximal possible value that can be picked
65
- */
66
- setMaxValue(value) {
67
- this._maxValue = value;
68
- this._updateMinMax();
69
- }
70
- /**
71
- * Sets value of datetime picker
72
- * @param value - Value to be set to this picker
73
- */
74
- setValue(value) {
75
- this._value = value;
76
- if (this._value) {
77
- this._originalHour = this._dateApi.getValue(this._value.from).hour();
78
- this._originalMinute = this._dateApi.getValue(this._value.from).minute();
79
- }
80
- //value is present
81
- if (this._value && this.displayDate) {
82
- const val = this._dateApi.getValue(this._value.from);
83
- //change picker to value
84
- if (!this._isSamePeriodAsDisplayed(val)) {
85
- this.display(val);
86
- return;
87
- }
88
- const period = this._getPeriodData(val);
89
- //was initialized
90
- if (period) {
91
- this._setPeriod(period);
92
- }
93
- }
94
- }
95
- //######################### protected methods #########################
96
- /**
97
- * Sets period as active
98
- * @param period - Period to be set as active
99
- */
100
- _setPeriod(period) {
101
- this.periodData.forEach(itm => itm.active = false);
102
- period.active = true;
103
- }
104
- /**
105
- * Updates minimal and maximal value for picker
106
- */
107
- _updateMinMax() {
108
- if (!this.periodData.length) {
109
- return;
110
- }
111
- //no min, no max
112
- if (!this._minValue && !this._maxValue) {
113
- this.periodData.forEach(itm => itm.disabled = false);
114
- return;
115
- }
116
- const minDateApi = this._minValue ? this._dateApi.getValue(this._minValue) : null;
117
- const maxDateApi = this._maxValue ? this._dateApi.getValue(this._maxValue) : null;
118
- let restAfter = false;
119
- this.periodData.forEach(period => {
120
- if (!!minDateApi && minDateApi.isAfter(period.date) && !this._isSamePeriod(minDateApi, period.date)) {
121
- period.disabled = true;
122
- }
123
- if (restAfter || (!!maxDateApi && maxDateApi.isBefore(period.date) && !this._isSamePeriod(maxDateApi, period.date))) {
124
- restAfter = true;
125
- period.disabled = true;
126
- }
127
- });
128
- }
129
- }
130
- PickerBaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: PickerBaseComponent, deps: [{ token: DATE_API }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
131
- PickerBaseComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.6", type: PickerBaseComponent, usesInheritance: true, ngImport: i0 });
132
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: PickerBaseComponent, decorators: [{
133
- type: Directive
134
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
135
- type: Inject,
136
- args: [DATE_API]
137
- }] }, { type: i0.ChangeDetectorRef }]; } });
138
- //# sourceMappingURL=pickerBase.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pickerBase.component.js","sourceRoot":"","sources":["../../../../../src/legacy/picker/components/pickerBase.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAE,SAAS,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;AAGnE,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;AAG9C,OAAO,EAAC,uBAAuB,EAAC,MAAM,4BAA4B,CAAC;;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O,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,QAAQ,GAAG,KAAK,CAAC,CAAC;YAErD,OAAO;SACV;QAED,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAClF,MAAM,UAAU,GAAG,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,IAAI,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC,IAAI,CAAC;QAClF,IAAI,SAAS,GAAG,KAAK,CAAC;QAEtB,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,EAAE;YAE7B,IAAG,CAAC,CAAC,UAAU,IAAI,UAAU,CAAC,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,EAClG;gBACI,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC;aAC1B;YAED,IAAG,SAAS,IAAI,CAAC,CAAC,CAAC,UAAU,IAAI,UAAU,CAAC,QAAQ,CAAC,MAAM,CAAC,IAAI,CAAC,IAAI,CAAC,IAAI,CAAC,aAAa,CAAC,UAAU,EAAE,MAAM,CAAC,IAAI,CAAC,CAAC,EAClH;gBACI,SAAS,GAAG,IAAI,CAAC;gBACjB,MAAM,CAAC,QAAQ,GAAG,IAAI,CAAC;aAC1B;QACL,CAAC,CAAC,CAAC;IACP,CAAC;;gHA5KiB,mBAAmB,kBAuBjB,QAAQ;oGAvBV,mBAAmB;2FAAnB,mBAAmB;kBADxC,SAAS;;0BAwBO,MAAM;2BAAC,QAAQ","sourcesContent":["import {ChangeDetectorRef, Directive, Inject} from '@angular/core';\n\nimport {DateTimeValue} from '../../../interfaces/dateTime/datetime.interface';\nimport {DATE_API} from '../../../misc/tokens';\nimport {DateApi, DateApiObject} from '../../../services/dateApi/dateApi.interface';\nimport {DateTimeLegacyPicker, PeriodData} from '../misc/datetimePicker.interface';\nimport {PickerImplBaseComponent} from './pickerImplBase.component';\n\n/**\n * Base class used as base for picker\n */\n@Directive()\nexport abstract class PickerBaseComponent<TDate = any, TDateData extends PeriodData<TDate> = any, TCssClasses = object> extends PickerImplBaseComponent<TDate, TCssClasses> implements DateTimeLegacyPicker<TDate, TCssClasses>\n{\n //######################### protected fields #########################\n\n /**\n * Value of originaly set hour\n */\n protected _originalHour: number = 0;\n\n /**\n * Value of originaly set minute\n */\n protected _originalMinute: number = 0;\n\n //######################### public properties - template bindings #########################\n\n /**\n * Array of period data to be displayed\n * @internal\n */\n public periodData: TDateData[] = [];\n\n //######################### constructor #########################\n constructor(@Inject(DATE_API) dateApi: DateApi<TDate>,\n changeDetector: ChangeDetectorRef)\n {\n super(dateApi, changeDetector);\n }\n\n //######################### public methods - template bindings #########################\n\n /**\n * Selects period\n * @param event - Event that occured\n * @param period - Selected period\n * @internal\n */\n public select(event: Event, period: PeriodData<TDate>): void\n {\n event.preventDefault();\n\n if(period.disabled)\n {\n return;\n }\n\n //handle selection of value\n if(!this.canGoDown)\n {\n this._setPeriod(period);\n\n this._value =\n {\n from: period.date,\n to: this._endOfPeriod(period)\n };\n\n this._valueChange.next();\n\n return;\n }\n\n this._scaleDown.next(period.date);\n }\n\n //######################### public methods - implementation of DateTimePicker #########################\n\n /**\n * Sets minimal possible value for picker, that can be picked\n * @param value - Minimal possible value that can be picked\n */\n public setMinValue(value: TDate|null): void\n {\n this._minValue = value;\n this._updateMinMax();\n }\n\n /**\n * Sets maximal possible value for picker, that can be picked\n * @param value - Maximal possible value that can be picked\n */\n public setMaxValue(value: TDate|null): void\n {\n this._maxValue = value;\n this._updateMinMax();\n }\n\n /**\n * Sets value of datetime picker\n * @param value - Value to be set to this picker\n */\n public setValue(value: DateTimeValue<TDate>|null): void\n {\n this._value = value;\n\n if(this._value)\n {\n this._originalHour = this._dateApi.getValue(this._value.from!).hour();\n this._originalMinute = this._dateApi.getValue(this._value.from!).minute();\n }\n\n //value is present\n if(this._value && this.displayDate)\n {\n const val = this._dateApi.getValue(this._value.from!);\n\n //change picker to value\n if(!this._isSamePeriodAsDisplayed(val))\n {\n this.display(val);\n\n return;\n }\n\n const period = this._getPeriodData(val);\n\n //was initialized\n if(period)\n {\n this._setPeriod(period);\n }\n }\n }\n\n //######################### protected methods #########################\n\n /**\n * Sets period as active\n * @param period - Period to be set as active\n */\n protected _setPeriod(period: PeriodData<TDate>): void\n {\n this.periodData.forEach(itm => itm.active = false);\n\n period.active = true;\n }\n\n /**\n * Updates minimal and maximal value for picker\n */\n protected _updateMinMax(): void\n {\n if(!this.periodData.length)\n {\n return;\n }\n\n //no min, no max\n if(!this._minValue && !this._maxValue)\n {\n this.periodData.forEach(itm => itm.disabled = false);\n\n return;\n }\n\n const minDateApi = this._minValue ? this._dateApi.getValue(this._minValue) : null;\n const maxDateApi = this._maxValue ? this._dateApi.getValue(this._maxValue) : null;\n let restAfter = false;\n\n this.periodData.forEach(period =>\n {\n if(!!minDateApi && minDateApi.isAfter(period.date) && !this._isSamePeriod(minDateApi, period.date))\n {\n period.disabled = true;\n }\n\n if(restAfter || (!!maxDateApi && maxDateApi.isBefore(period.date) && !this._isSamePeriod(maxDateApi, period.date)))\n {\n restAfter = true;\n period.disabled = true;\n }\n });\n }\n\n /**\n * Obtains end of period\n * @param period - Period for which should be end obtained\n */\n protected abstract _endOfPeriod(period: PeriodData<TDate>): TDate;\n\n /**\n * Tests whether provided value is in same period as displayed picker\n * @param val - Tested value for same period as displayed picker\n */\n protected abstract _isSamePeriodAsDisplayed(val: DateApiObject<TDate>): boolean;\n\n /**\n * Tests whether provided value is in same period target value\n * @param val - Tested value\n * @param target - Target value to be tested against\n */\n protected abstract _isSamePeriod(val: DateApiObject<TDate>, target: TDate): boolean;\n\n /**\n * Gets period data for specified value\n * @param val - Value for which is period data obtained\n */\n protected abstract _getPeriodData(val: DateApiObject<TDate>): PeriodData<TDate>;\n}"]}
@@ -1,145 +0,0 @@
1
- import { ChangeDetectorRef, Directive, HostListener, Inject } from '@angular/core';
2
- import { extend } from '@jscrpt/common';
3
- import { Subject } from 'rxjs';
4
- import { DATE_API } from '../../../misc/tokens';
5
- import * as i0 from "@angular/core";
6
- /**
7
- * Base class used as base for picker as base implementation of DateTimePicker interface
8
- */
9
- export class PickerImplBaseComponent {
10
- //######################### constructor #########################
11
- constructor(_dateApi, _changeDetector) {
12
- this._dateApi = _dateApi;
13
- this._changeDetector = _changeDetector;
14
- //######################### protected fields #########################
15
- /**
16
- * Current value of datetime
17
- */
18
- this._value = null;
19
- /**
20
- * Occurs when value changes
21
- */
22
- this._valueChange = new Subject();
23
- /**
24
- * Occurs when user scales up
25
- */
26
- this._scaleUp = new Subject();
27
- /**
28
- * Occurs when user scales down
29
- */
30
- this._scaleDown = new Subject();
31
- /**
32
- * Minimal possible value that can be picked
33
- */
34
- this._minValue = null;
35
- /**
36
- * Maximal possible value that can be picked
37
- */
38
- this._maxValue = null;
39
- //######################### public properties - template bindings #########################
40
- /**
41
- * Date api instance for displayed date
42
- * @internal
43
- */
44
- this.displayDate = null;
45
- /**
46
- * Indication whether can go up in period
47
- * @internal
48
- */
49
- this.canGoUp = false;
50
- /**
51
- * Indication whether can go down in period
52
- * @internal
53
- */
54
- this.canGoDown = false;
55
- }
56
- //######################### public properties - implementation of DateTimePicker #########################
57
- /**
58
- * Gets current value of datetime
59
- */
60
- get value() {
61
- return this._value;
62
- }
63
- /**
64
- * Occurs when value changes
65
- */
66
- get valueChange() {
67
- return this._valueChange.asObservable();
68
- }
69
- /**
70
- * Occurs when user scales up
71
- */
72
- get scaleUp() {
73
- return this._scaleUp.asObservable();
74
- }
75
- /**
76
- * Occurs when user scales down
77
- */
78
- get scaleDown() {
79
- return this._scaleDown.asObservable();
80
- }
81
- //######################### public methods - template bindings #########################
82
- /**
83
- * Changes displayed period to "higher" period
84
- * @param event - Event that occured
85
- * @internal
86
- */
87
- goUp(event) {
88
- event.preventDefault();
89
- if (!this.canGoUp) {
90
- return;
91
- }
92
- if (this.displayDate) {
93
- this._scaleUp.next(this.displayDate.value);
94
- }
95
- }
96
- //######################### public methods - implementation of DateTimePicker #########################
97
- /**
98
- * Sets css classes for picker, allowing to override defaults
99
- * @param cssClasses - Css classes to be set for picker
100
- */
101
- setCssClasses(cssClasses) {
102
- this.cssClasses = extend(true, {}, this.cssClasses, cssClasses);
103
- }
104
- /**
105
- * Sets indication whether can go down
106
- * @param value - Indication whether can go down in period
107
- */
108
- setCanGoDown(value) {
109
- this.canGoDown = value;
110
- }
111
- /**
112
- * Sets indication whether can go up
113
- * @param value - Indication whether can go up in period
114
- */
115
- setCanGoUp(value) {
116
- this.canGoUp = value;
117
- }
118
- /**
119
- * Explicitly runs invalidation of content (change detection)
120
- */
121
- invalidateVisuals() {
122
- this._changeDetector.detectChanges();
123
- }
124
- //######################### public methods - host #########################
125
- /**
126
- * Handles click anyway in picker, that blocks blur
127
- * @param event - Event that occured
128
- * @internal
129
- */
130
- handleClick(event) {
131
- event.preventDefault();
132
- }
133
- }
134
- PickerImplBaseComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: PickerImplBaseComponent, deps: [{ token: DATE_API }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Directive });
135
- PickerImplBaseComponent.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.6", type: PickerImplBaseComponent, host: { listeners: { "mousedown": "handleClick($event)" } }, ngImport: i0 });
136
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: PickerImplBaseComponent, decorators: [{
137
- type: Directive
138
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
139
- type: Inject,
140
- args: [DATE_API]
141
- }] }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { handleClick: [{
142
- type: HostListener,
143
- args: ['mousedown', ['$event']]
144
- }] } });
145
- //# sourceMappingURL=pickerImplBase.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"pickerImplBase.component.js","sourceRoot":"","sources":["../../../../../src/legacy/picker/components/pickerImplBase.component.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,iBAAiB,EAAE,SAAS,EAAE,YAAY,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;AACjF,OAAO,EAAC,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACtC,OAAO,EAAa,OAAO,EAAC,MAAM,MAAM,CAAC;AAGzC,OAAO,EAAC,QAAQ,EAAC,MAAM,sBAAsB,CAAC;;AAI9C;;GAEG;AAEH,MAAM,OAAgB,uBAAuB;IA8FzC,iEAAiE;IACjE,YAAwC,QAAwB,EAC1C,eAAkC;QADhB,aAAQ,GAAR,QAAQ,CAAgB;QAC1C,oBAAe,GAAf,eAAe,CAAmB;QA9FxD,sEAAsE;QAEtE;;WAEG;QACO,WAAM,GAA8B,IAAI,CAAC;QAEnD;;WAEG;QACO,iBAAY,GAAkB,IAAI,OAAO,EAAQ,CAAC;QAE5D;;WAEG;QACO,aAAQ,GAAmB,IAAI,OAAO,EAAS,CAAC;QAE1D;;WAEG;QACO,eAAU,GAAmB,IAAI,OAAO,EAAS,CAAC;QAE5D;;WAEG;QACO,cAAS,GAAe,IAAI,CAAC;QAEvC;;WAEG;QACO,cAAS,GAAe,IAAI,CAAC;QAoCvC,2FAA2F;QAE3F;;;WAGG;QACI,gBAAW,GAA8B,IAAI,CAAC;QAErD;;;WAGG;QACI,YAAO,GAAY,KAAK,CAAC;QAEhC;;;WAGG;QACI,cAAS,GAAY,KAAK,CAAC;IAYlC,CAAC;IAhED,0GAA0G;IAE1G;;OAEG;IACH,IAAW,KAAK;QAEZ,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAED;;OAEG;IACH,IAAW,WAAW;QAElB,OAAO,IAAI,CAAC,YAA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E,CAAC,QAAQ,CAAC","sourcesContent":["import {ChangeDetectorRef, Directive, HostListener, Inject} from '@angular/core';\nimport {extend} from '@jscrpt/common';\nimport {Observable, Subject} from 'rxjs';\n\nimport {DateTimeValue} from '../../../interfaces/dateTime/datetime.interface';\nimport {DATE_API} from '../../../misc/tokens';\nimport {DateApi, DateApiObject} from '../../../services/dateApi/dateApi.interface';\nimport {DateTimeLegacyPicker} from '../misc/datetimePicker.interface';\n\n/**\n * Base class used as base for picker as base implementation of DateTimePicker interface\n */\n@Directive()\nexport abstract class PickerImplBaseComponent<TDate = any, TCssClasses = any> implements DateTimeLegacyPicker<TDate, TCssClasses>\n{\n //######################### protected fields #########################\n\n /**\n * Current value of datetime\n */\n protected _value: DateTimeValue<TDate>|null = null;\n\n /**\n * Occurs when value changes\n */\n protected _valueChange: Subject<void> = new Subject<void>();\n \n /**\n * Occurs when user scales up\n */\n protected _scaleUp: Subject<TDate> = new Subject<TDate>();\n\n /**\n * Occurs when user scales down\n */\n protected _scaleDown: Subject<TDate> = new Subject<TDate>();\n\n /**\n * Minimal possible value that can be picked\n */\n protected _minValue: TDate|null = null;\n\n /**\n * Maximal possible value that can be picked\n */\n protected _maxValue: TDate|null = null;\n\n //######################### public properties - implementation of DateTimePicker #########################\n\n /**\n * Gets current value of datetime\n */\n public get value(): DateTimeValue<TDate>|null\n {\n return this._value;\n }\n\n /**\n * Occurs when value changes\n */\n public get valueChange(): Observable<void>\n {\n return this._valueChange.asObservable();\n }\n\n /**\n * Occurs when user scales up\n */\n public get scaleUp(): Observable<TDate>\n {\n return this._scaleUp.asObservable();\n }\n\n /**\n * Occurs when user scales down\n */\n public get scaleDown(): Observable<TDate>\n {\n return this._scaleDown.asObservable();\n }\n\n //######################### public properties - template bindings #########################\n\n /**\n * Date api instance for displayed date\n * @internal\n */\n public displayDate: DateApiObject<TDate>|null = null;\n\n /**\n * Indication whether can go up in period\n * @internal\n */\n public canGoUp: boolean = false;\n\n /**\n * Indication whether can go down in period\n * @internal\n */\n public canGoDown: boolean = false;\n\n /**\n * Css classes that are used within picker\n * @internal\n */\n public cssClasses!: TCssClasses;\n\n //######################### constructor #########################\n constructor(@Inject(DATE_API) protected _dateApi: DateApi<TDate>,\n protected _changeDetector: ChangeDetectorRef)\n {\n }\n\n //######################### public methods - template bindings #########################\n\n /**\n * Changes displayed period to \"higher\" period\n * @param event - Event that occured\n * @internal\n */\n public goUp(event: Event): void\n {\n event.preventDefault();\n\n if(!this.canGoUp)\n {\n return;\n }\n\n if(this.displayDate)\n {\n this._scaleUp.next(this.displayDate.value);\n }\n }\n\n //######################### public methods - implementation of DateTimePicker #########################\n\n /**\n * Sets css classes for picker, allowing to override defaults\n * @param cssClasses - Css classes to be set for picker\n */\n public setCssClasses(cssClasses: TCssClasses): void\n {\n this.cssClasses = extend(true, {}, this.cssClasses, cssClasses);\n }\n\n /**\n * Sets minimal possible value for picker, that can be picked\n * @param value - Minimal possible value that can be picked\n */\n public abstract setMinValue(value: TDate|null): void;\n\n /**\n * Sets maximal possible value for picker, that can be picked\n * @param value - Maximal possible value that can be picked\n */\n public abstract setMaxValue(value: TDate|null): void;\n\n /**\n * Sets value of datetime picker\n * @param value - Value to be set to this picker\n */\n public abstract setValue(value: DateTimeValue<TDate>|null): void;\n\n /**\n * Sets display date to be displayed\n * @param value - Value that identifies period that is going to be displayed\n */\n public abstract display(value: DateApiObject<TDate>): void;\n\n /**\n * Sets indication whether can go down\n * @param value - Indication whether can go down in period\n */\n public setCanGoDown(value: boolean): void\n {\n this.canGoDown = value;\n }\n\n /**\n * Sets indication whether can go up\n * @param value - Indication whether can go up in period\n */\n public setCanGoUp(value: boolean): void\n {\n this.canGoUp = value;\n }\n\n /**\n * Explicitly runs invalidation of content (change detection)\n */\n public invalidateVisuals(): void\n {\n this._changeDetector.detectChanges();\n }\n\n //######################### public methods - host #########################\n\n /**\n * Handles click anyway in picker, that blocks blur\n * @param event - Event that occured\n * @internal\n */\n @HostListener('mousedown', ['$event'])\n public handleClick(event: Event): void\n {\n event.preventDefault();\n }\n}"]}