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

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 (596) hide show
  1. package/changelog.md +157 -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 +3 -0
  9. package/es2015/src/directives/index.js.map +1 -1
  10. package/es2015/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js +37 -0
  11. package/es2015/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js.map +1 -0
  12. package/es2015/src/directives/simpleDateTimeInputHandler/simpleDateTimeInputHandler.directive.js +137 -0
  13. package/es2015/src/directives/simpleDateTimeInputHandler/simpleDateTimeInputHandler.directive.js.map +1 -0
  14. package/es2015/src/directives/simpleDateTimePickerInput/simpleDateTimePickerInput.directive.js +29 -0
  15. package/es2015/src/directives/simpleDateTimePickerInput/simpleDateTimePickerInput.directive.js.map +1 -0
  16. package/es2015/src/directives/withTime/withTime.directive.js +5 -5
  17. package/es2015/src/directives/withTime/withTime.directive.js.map +1 -1
  18. package/es2015/src/directives/withToday/withToday.directive.js +5 -5
  19. package/es2015/src/directives/withToday/withToday.directive.js.map +1 -1
  20. package/es2015/src/index.js +0 -8
  21. package/es2015/src/index.js.map +1 -1
  22. package/es2015/src/interfaces/dateTime/datetime.interface.js.map +1 -1
  23. package/es2015/src/legacy/picker/components/picker/picker.component.animations.js +93 -70
  24. package/es2015/src/legacy/picker/components/picker/picker.component.animations.js.map +1 -1
  25. package/es2015/src/legacy/selector/components/inputDateTime/inputDateTime.component.js +487 -436
  26. package/es2015/src/legacy/selector/components/inputDateTime/inputDateTime.component.js.map +1 -1
  27. package/es2015/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js +366 -324
  28. package/es2015/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js.map +1 -1
  29. package/es2015/src/misc/validators.js +0 -57
  30. package/es2015/src/misc/validators.js.map +1 -1
  31. package/es2015/src/modules/calendar/components/index.js +2 -0
  32. package/es2015/src/modules/calendar/components/index.js.map +1 -0
  33. package/es2015/src/modules/calendar/components/monthCalendar/monthCalendar.component.js +198 -0
  34. package/es2015/src/modules/calendar/components/monthCalendar/monthCalendar.component.js.map +1 -0
  35. package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js +2 -0
  36. package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js.map +1 -0
  37. package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js +27 -0
  38. package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js.map +1 -0
  39. package/es2015/src/modules/calendar/directives/index.js +3 -0
  40. package/es2015/src/modules/calendar/directives/index.js.map +1 -0
  41. package/es2015/src/modules/calendar/index.js +7 -0
  42. package/es2015/src/modules/calendar/index.js.map +1 -0
  43. package/es2015/src/modules/calendar/interfaces/calendarDayData.interface.js +2 -0
  44. package/es2015/src/modules/calendar/interfaces/calendarDayData.interface.js.map +1 -0
  45. package/es2015/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js +2 -0
  46. package/es2015/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js.map +1 -0
  47. package/es2015/src/modules/calendar/interfaces/eventData.interface.js +2 -0
  48. package/es2015/src/modules/calendar/interfaces/eventData.interface.js.map +1 -0
  49. package/es2015/src/modules/calendar/interfaces/index.js +4 -0
  50. package/es2015/src/modules/calendar/interfaces/index.js.map +1 -0
  51. package/es2015/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js +27 -0
  52. package/es2015/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js.map +1 -0
  53. package/es2015/src/modules/calendar/misc/enums/index.js +3 -0
  54. package/es2015/src/modules/calendar/misc/enums/index.js.map +1 -0
  55. package/es2015/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js +19 -0
  56. package/es2015/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js.map +1 -0
  57. package/es2015/src/modules/calendar/misc/index.js +2 -0
  58. package/es2015/src/modules/calendar/misc/index.js.map +1 -0
  59. package/es2015/src/modules/calendar/modules/index.js +2 -0
  60. package/es2015/src/modules/calendar/modules/index.js.map +1 -0
  61. package/es2015/src/modules/calendar/modules/monthCalendar.module.js +32 -0
  62. package/es2015/src/modules/calendar/modules/monthCalendar.module.js.map +1 -0
  63. package/es2015/src/modules/calendar/services/eventParser/eventParser.service.js +75 -0
  64. package/es2015/src/modules/calendar/services/eventParser/eventParser.service.js.map +1 -0
  65. package/es2015/src/modules/calendar/services/index.js +2 -0
  66. package/es2015/src/modules/calendar/services/index.js.map +1 -0
  67. package/es2015/src/modules/datePipes.module.js +4 -4
  68. package/es2015/src/modules/dateTime/directives/dateTime/dateTime.directive.js +8 -7
  69. package/es2015/src/modules/dateTime/directives/dateTime/dateTime.directive.js.map +1 -1
  70. package/es2015/src/modules/dateTime/directives/dateTimeBase.js +5 -5
  71. package/es2015/src/modules/dateTime/directives/dateTimeBase.js.map +1 -1
  72. package/es2015/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js +7 -6
  73. package/es2015/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js.map +1 -1
  74. package/es2015/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js +11 -9
  75. package/es2015/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js.map +1 -1
  76. package/es2015/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js +7 -6
  77. package/es2015/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js.map +1 -1
  78. package/es2015/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js +7 -6
  79. package/es2015/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js.map +1 -1
  80. package/es2015/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js +7 -6
  81. package/es2015/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js.map +1 -1
  82. package/es2015/src/modules/dateTime/modules/dateTime.module.js +28 -28
  83. package/es2015/src/modules/dateTime/modules/dateTime.module.js.map +1 -1
  84. package/es2015/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.js.map +1 -1
  85. package/es2015/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js +5 -5
  86. package/es2015/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js.map +1 -1
  87. package/es2015/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js +3 -3
  88. package/es2015/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js.map +1 -1
  89. package/es2015/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js +3 -3
  90. package/es2015/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js.map +1 -1
  91. package/es2015/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js +6 -7
  92. package/es2015/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js.map +1 -1
  93. package/es2015/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.js.map +1 -1
  94. package/es2015/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js +3 -3
  95. package/es2015/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js.map +1 -1
  96. package/es2015/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js +8 -7
  97. package/es2015/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js.map +1 -1
  98. package/es2015/src/modules/dateTimePicker/directives/index.js +3 -0
  99. package/es2015/src/modules/dateTimePicker/directives/index.js.map +1 -1
  100. package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.js +222 -0
  101. package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.js.map +1 -0
  102. package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js +2 -0
  103. package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js.map +1 -0
  104. package/es2015/src/{legacy/picker → modules/dateTimePicker}/directives/loopScrollData/loopScrollData.directive.js +6 -5
  105. package/es2015/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.js.map +1 -0
  106. package/es2015/src/modules/dateTimePicker/interfaces/index.js +1 -0
  107. package/es2015/src/modules/dateTimePicker/interfaces/index.js.map +1 -1
  108. package/es2015/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js +2 -0
  109. package/es2015/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js.map +1 -0
  110. package/es2015/src/modules/dateTimePicker/modules/dateTimePicker.module.js +10 -9
  111. package/es2015/src/modules/dateTimePicker/modules/dateTimePicker.module.js.map +1 -1
  112. package/es2015/src/modules/index.js +1 -0
  113. package/es2015/src/modules/index.js.map +1 -1
  114. package/es2015/src/pipes/dateConvert.pipe.js +3 -3
  115. package/es2015/src/pipes/dateConvert.pipe.js.map +1 -1
  116. package/es2015/src/pipes/dateFormat.pipe.js +3 -3
  117. package/es2015/src/pipes/dateFormat.pipe.js.map +1 -1
  118. package/es2015/src/services/dateApi/dateApi.interface.js.map +1 -1
  119. package/es2015/src/services/datePositionParser/datePositionParser.service.js +5 -3
  120. package/es2015/src/services/datePositionParser/datePositionParser.service.js.map +1 -1
  121. package/es2015/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js +3 -3
  122. package/es2015/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js.map +1 -1
  123. package/es2015/src/services/dateValueProvider/dateValueProvider.service.js +3 -3
  124. package/es2015/src/services/dateValueProvider/dateValueProvider.service.js.map +1 -1
  125. package/es2020/date-fns/src/services/dateFnsDateApi.service.js +37 -6
  126. package/es2020/date-fns/src/services/dateFnsDateApi.service.js.map +1 -1
  127. package/es2020/moment/src/services/momentDateApi.service.js +35 -3
  128. package/es2020/moment/src/services/momentDateApi.service.js.map +1 -1
  129. package/es2020/src/directives/index.js +3 -0
  130. package/es2020/src/directives/index.js.map +1 -1
  131. package/es2020/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js +37 -0
  132. package/es2020/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js.map +1 -0
  133. package/es2020/src/directives/simpleDateTimeInputHandler/simpleDateTimeInputHandler.directive.js +136 -0
  134. package/es2020/src/directives/simpleDateTimeInputHandler/simpleDateTimeInputHandler.directive.js.map +1 -0
  135. package/es2020/src/directives/simpleDateTimePickerInput/simpleDateTimePickerInput.directive.js +29 -0
  136. package/es2020/src/directives/simpleDateTimePickerInput/simpleDateTimePickerInput.directive.js.map +1 -0
  137. package/es2020/src/directives/withTime/withTime.directive.js +5 -5
  138. package/es2020/src/directives/withTime/withTime.directive.js.map +1 -1
  139. package/es2020/src/directives/withToday/withToday.directive.js +5 -5
  140. package/es2020/src/directives/withToday/withToday.directive.js.map +1 -1
  141. package/es2020/src/index.js +0 -8
  142. package/es2020/src/index.js.map +1 -1
  143. package/es2020/src/interfaces/dateTime/datetime.interface.js.map +1 -1
  144. package/es2020/src/legacy/picker/components/picker/picker.component.animations.js +93 -70
  145. package/es2020/src/legacy/picker/components/picker/picker.component.animations.js.map +1 -1
  146. package/es2020/src/legacy/selector/components/inputDateTime/inputDateTime.component.js +487 -432
  147. package/es2020/src/legacy/selector/components/inputDateTime/inputDateTime.component.js.map +1 -1
  148. package/es2020/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js +366 -321
  149. package/es2020/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js.map +1 -1
  150. package/es2020/src/misc/validators.js +0 -57
  151. package/es2020/src/misc/validators.js.map +1 -1
  152. package/es2020/src/modules/calendar/components/index.js +2 -0
  153. package/es2020/src/modules/calendar/components/index.js.map +1 -0
  154. package/es2020/src/modules/calendar/components/monthCalendar/monthCalendar.component.js +195 -0
  155. package/es2020/src/modules/calendar/components/monthCalendar/monthCalendar.component.js.map +1 -0
  156. package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js +2 -0
  157. package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js.map +1 -0
  158. package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js +27 -0
  159. package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js.map +1 -0
  160. package/es2020/src/modules/calendar/directives/index.js +3 -0
  161. package/es2020/src/modules/calendar/directives/index.js.map +1 -0
  162. package/es2020/src/modules/calendar/index.js +7 -0
  163. package/es2020/src/modules/calendar/index.js.map +1 -0
  164. package/es2020/src/modules/calendar/interfaces/calendarDayData.interface.js +2 -0
  165. package/es2020/src/modules/calendar/interfaces/calendarDayData.interface.js.map +1 -0
  166. package/es2020/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js +2 -0
  167. package/es2020/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js.map +1 -0
  168. package/es2020/src/modules/calendar/interfaces/eventData.interface.js +2 -0
  169. package/es2020/src/modules/calendar/interfaces/eventData.interface.js.map +1 -0
  170. package/es2020/src/modules/calendar/interfaces/index.js +4 -0
  171. package/es2020/src/modules/calendar/interfaces/index.js.map +1 -0
  172. package/es2020/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js +27 -0
  173. package/es2020/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js.map +1 -0
  174. package/es2020/src/modules/calendar/misc/enums/index.js +3 -0
  175. package/es2020/src/modules/calendar/misc/enums/index.js.map +1 -0
  176. package/es2020/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js +19 -0
  177. package/es2020/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js.map +1 -0
  178. package/es2020/src/modules/calendar/misc/index.js +2 -0
  179. package/es2020/src/modules/calendar/misc/index.js.map +1 -0
  180. package/es2020/src/modules/calendar/modules/index.js +2 -0
  181. package/es2020/src/modules/calendar/modules/index.js.map +1 -0
  182. package/es2020/src/modules/calendar/modules/monthCalendar.module.js +32 -0
  183. package/es2020/src/modules/calendar/modules/monthCalendar.module.js.map +1 -0
  184. package/es2020/src/modules/calendar/services/eventParser/eventParser.service.js +74 -0
  185. package/es2020/src/modules/calendar/services/eventParser/eventParser.service.js.map +1 -0
  186. package/es2020/src/modules/calendar/services/index.js +2 -0
  187. package/es2020/src/modules/calendar/services/index.js.map +1 -0
  188. package/es2020/src/modules/datePipes.module.js +4 -4
  189. package/es2020/src/modules/dateTime/directives/dateTime/dateTime.directive.js +8 -7
  190. package/es2020/src/modules/dateTime/directives/dateTime/dateTime.directive.js.map +1 -1
  191. package/es2020/src/modules/dateTime/directives/dateTimeBase.js +5 -5
  192. package/es2020/src/modules/dateTime/directives/dateTimeBase.js.map +1 -1
  193. package/es2020/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js +7 -6
  194. package/es2020/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js.map +1 -1
  195. package/es2020/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js +11 -9
  196. package/es2020/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js.map +1 -1
  197. package/es2020/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js +7 -6
  198. package/es2020/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js.map +1 -1
  199. package/es2020/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js +7 -6
  200. package/es2020/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js.map +1 -1
  201. package/es2020/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js +7 -6
  202. package/es2020/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js.map +1 -1
  203. package/es2020/src/modules/dateTime/modules/dateTime.module.js +28 -28
  204. package/es2020/src/modules/dateTime/modules/dateTime.module.js.map +1 -1
  205. package/es2020/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.js.map +1 -1
  206. package/es2020/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js +5 -5
  207. package/es2020/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js.map +1 -1
  208. package/es2020/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js +3 -3
  209. package/es2020/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js.map +1 -1
  210. package/es2020/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js +3 -3
  211. package/es2020/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js.map +1 -1
  212. package/es2020/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js +6 -7
  213. package/es2020/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js.map +1 -1
  214. package/es2020/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.js.map +1 -1
  215. package/es2020/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js +3 -3
  216. package/es2020/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js.map +1 -1
  217. package/es2020/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js +9 -8
  218. package/es2020/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js.map +1 -1
  219. package/es2020/src/modules/dateTimePicker/directives/index.js +3 -0
  220. package/es2020/src/modules/dateTimePicker/directives/index.js.map +1 -1
  221. package/es2020/src/{legacy/picker → modules/dateTimePicker}/directives/loopScroll/loopScroll.directive.js +65 -56
  222. package/es2020/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.js.map +1 -0
  223. package/es2020/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js +2 -0
  224. package/es2020/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js.map +1 -0
  225. package/es2020/src/{legacy/picker → modules/dateTimePicker}/directives/loopScrollData/loopScrollData.directive.js +6 -5
  226. package/es2020/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.js.map +1 -0
  227. package/es2020/src/modules/dateTimePicker/interfaces/index.js +1 -0
  228. package/es2020/src/modules/dateTimePicker/interfaces/index.js.map +1 -1
  229. package/es2020/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js +2 -0
  230. package/es2020/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js.map +1 -0
  231. package/es2020/src/modules/dateTimePicker/modules/dateTimePicker.module.js +10 -9
  232. package/es2020/src/modules/dateTimePicker/modules/dateTimePicker.module.js.map +1 -1
  233. package/es2020/src/modules/index.js +1 -0
  234. package/es2020/src/modules/index.js.map +1 -1
  235. package/es2020/src/pipes/dateConvert.pipe.js +3 -3
  236. package/es2020/src/pipes/dateConvert.pipe.js.map +1 -1
  237. package/es2020/src/pipes/dateFormat.pipe.js +3 -3
  238. package/es2020/src/pipes/dateFormat.pipe.js.map +1 -1
  239. package/es2020/src/services/dateApi/dateApi.interface.js.map +1 -1
  240. package/es2020/src/services/datePositionParser/datePositionParser.service.js +5 -3
  241. package/es2020/src/services/datePositionParser/datePositionParser.service.js.map +1 -1
  242. package/es2020/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js +3 -3
  243. package/es2020/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js.map +1 -1
  244. package/es2020/src/services/dateValueProvider/dateValueProvider.service.js +3 -3
  245. package/es2020/src/services/dateValueProvider/dateValueProvider.service.js.map +1 -1
  246. package/moment/src/services/momentDateApi.service.d.ts +25 -12
  247. package/moment/src/services/momentDateApi.service.d.ts.map +1 -1
  248. package/package.json +27 -36
  249. package/src/directives/index.d.ts +3 -0
  250. package/src/directives/index.d.ts.map +1 -1
  251. package/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.d.ts +12 -0
  252. package/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.d.ts.map +1 -0
  253. package/src/directives/simpleDateTimeInputHandler/simpleDateTimeInputHandler.directive.d.ts +42 -0
  254. package/src/directives/simpleDateTimeInputHandler/simpleDateTimeInputHandler.directive.d.ts.map +1 -0
  255. package/src/directives/simpleDateTimePickerInput/simpleDateTimePickerInput.directive.d.ts +11 -0
  256. package/src/directives/simpleDateTimePickerInput/simpleDateTimePickerInput.directive.d.ts.map +1 -0
  257. package/src/directives/withTime/withTime.directive.d.ts +3 -3
  258. package/src/directives/withTime/withTime.directive.d.ts.map +1 -1
  259. package/src/directives/withToday/withToday.directive.d.ts +3 -3
  260. package/src/directives/withToday/withToday.directive.d.ts.map +1 -1
  261. package/src/index.d.ts +0 -8
  262. package/src/index.d.ts.map +1 -1
  263. package/src/interfaces/dateTime/datetime.interface.d.ts +1 -22
  264. package/src/interfaces/dateTime/datetime.interface.d.ts.map +1 -1
  265. package/src/legacy/picker/components/picker/picker.component.animations.d.ts +0 -4
  266. package/src/legacy/picker/components/picker/picker.component.animations.d.ts.map +1 -1
  267. package/src/legacy/selector/components/inputDateTime/inputDateTime.component.d.ts +0 -185
  268. package/src/legacy/selector/components/inputDateTime/inputDateTime.component.d.ts.map +1 -1
  269. package/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.d.ts +0 -169
  270. package/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.d.ts.map +1 -1
  271. package/src/misc/validators.d.ts +0 -23
  272. package/src/misc/validators.d.ts.map +1 -1
  273. package/src/modules/calendar/components/index.d.ts +2 -0
  274. package/src/modules/calendar/components/index.d.ts.map +1 -0
  275. package/src/modules/calendar/components/monthCalendar/monthCalendar.component.d.ts +94 -0
  276. package/src/modules/calendar/components/monthCalendar/monthCalendar.component.d.ts.map +1 -0
  277. package/src/modules/calendar/components/monthCalendar/monthCalendar.component.html +15 -0
  278. package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.d.ts +11 -0
  279. package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.d.ts.map +1 -0
  280. package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.d.ts +17 -0
  281. package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.d.ts.map +1 -0
  282. package/src/modules/calendar/directives/index.d.ts +3 -0
  283. package/src/modules/calendar/directives/index.d.ts.map +1 -0
  284. package/src/modules/calendar/index.d.ts +7 -0
  285. package/src/modules/calendar/index.d.ts.map +1 -0
  286. package/src/modules/calendar/interfaces/calendarDayData.interface.d.ts +31 -0
  287. package/src/modules/calendar/interfaces/calendarDayData.interface.d.ts.map +1 -0
  288. package/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.d.ts +19 -0
  289. package/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.d.ts.map +1 -0
  290. package/src/modules/calendar/interfaces/eventData.interface.d.ts +37 -0
  291. package/src/modules/calendar/interfaces/eventData.interface.d.ts.map +1 -0
  292. package/src/modules/calendar/interfaces/index.d.ts +4 -0
  293. package/src/modules/calendar/interfaces/index.d.ts.map +1 -0
  294. package/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.d.ts +26 -0
  295. package/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.d.ts.map +1 -0
  296. package/src/modules/calendar/misc/enums/index.d.ts +3 -0
  297. package/src/modules/calendar/misc/enums/index.d.ts.map +1 -0
  298. package/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.d.ts +18 -0
  299. package/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.d.ts.map +1 -0
  300. package/src/modules/calendar/misc/index.d.ts +2 -0
  301. package/src/modules/calendar/misc/index.d.ts.map +1 -0
  302. package/src/modules/calendar/modules/index.d.ts +2 -0
  303. package/src/modules/calendar/modules/index.d.ts.map +1 -0
  304. package/src/modules/calendar/modules/monthCalendar.module.d.ts +13 -0
  305. package/src/modules/calendar/modules/monthCalendar.module.d.ts.map +1 -0
  306. package/src/modules/calendar/services/eventParser/eventParser.service.d.ts +18 -0
  307. package/src/modules/calendar/services/eventParser/eventParser.service.d.ts.map +1 -0
  308. package/src/modules/calendar/services/index.d.ts +2 -0
  309. package/src/modules/calendar/services/index.d.ts.map +1 -0
  310. package/src/modules/dateTime/directives/dateTime/dateTime.directive.d.ts +3 -3
  311. package/src/modules/dateTime/directives/dateTime/dateTime.directive.d.ts.map +1 -1
  312. package/src/modules/dateTime/directives/dateTimeBase.d.ts +3 -3
  313. package/src/modules/dateTime/directives/dateTimeBase.d.ts.map +1 -1
  314. package/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.d.ts +3 -3
  315. package/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.d.ts.map +1 -1
  316. package/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.d.ts +3 -3
  317. package/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.d.ts.map +1 -1
  318. package/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.d.ts +3 -3
  319. package/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.d.ts.map +1 -1
  320. package/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.d.ts +3 -3
  321. package/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.d.ts.map +1 -1
  322. package/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.d.ts +3 -3
  323. package/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.d.ts.map +1 -1
  324. package/src/modules/dateTime/modules/dateTime.module.d.ts +1 -1
  325. package/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.d.ts +1 -2
  326. package/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.d.ts.map +1 -1
  327. package/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.d.ts +3 -3
  328. package/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.d.ts.map +1 -1
  329. package/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.d.ts +2 -3
  330. package/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.d.ts.map +1 -1
  331. package/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.d.ts +2 -3
  332. package/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.d.ts.map +1 -1
  333. package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.d.ts +6 -7
  334. package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.d.ts.map +1 -1
  335. package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.d.ts +1 -1
  336. package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.d.ts.map +1 -1
  337. package/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.d.ts +2 -3
  338. package/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.d.ts.map +1 -1
  339. package/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.d.ts +3 -3
  340. package/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.d.ts.map +1 -1
  341. package/src/modules/dateTimePicker/directives/index.d.ts +3 -0
  342. package/src/modules/dateTimePicker/directives/index.d.ts.map +1 -1
  343. package/src/{legacy/picker → modules/dateTimePicker}/directives/loopScroll/loopScroll.directive.d.ts +18 -18
  344. package/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.d.ts.map +1 -0
  345. package/src/{legacy/picker → modules/dateTimePicker}/directives/loopScroll/loopScroll.interface.d.ts +1 -1
  346. package/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.d.ts.map +1 -0
  347. package/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.d.ts +20 -0
  348. package/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.d.ts.map +1 -0
  349. package/src/modules/dateTimePicker/interfaces/index.d.ts +1 -0
  350. package/src/modules/dateTimePicker/interfaces/index.d.ts.map +1 -1
  351. package/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.d.ts +62 -0
  352. package/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.d.ts.map +1 -0
  353. package/src/modules/dateTimePicker/modules/dateTimePicker.module.d.ts +1 -1
  354. package/src/modules/dateTimePicker/modules/dateTimePicker.module.d.ts.map +1 -1
  355. package/src/modules/index.d.ts +1 -0
  356. package/src/modules/index.d.ts.map +1 -1
  357. package/src/pipes/dateConvert.pipe.d.ts +1 -1
  358. package/src/pipes/dateConvert.pipe.d.ts.map +1 -1
  359. package/src/pipes/dateFormat.pipe.d.ts +1 -1
  360. package/src/pipes/dateFormat.pipe.d.ts.map +1 -1
  361. package/src/services/dateApi/dateApi.interface.d.ts +25 -12
  362. package/src/services/dateApi/dateApi.interface.d.ts.map +1 -1
  363. package/src/services/datePositionParser/datePositionParser.service.d.ts.map +1 -1
  364. package/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.d.ts +2 -2
  365. package/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.d.ts.map +1 -1
  366. package/src/services/dateValueProvider/dateValueProvider.service.d.ts +1 -1
  367. package/src/services/dateValueProvider/dateValueProvider.service.d.ts.map +1 -1
  368. package/styles/components/_month-calendar.scss +68 -0
  369. package/styles/core/_mixins.scss +4 -0
  370. package/styles/core/_theme.scss +11 -0
  371. package/version.bak +1 -1
  372. package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js +0 -14
  373. package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js.map +0 -1
  374. package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js +0 -2
  375. package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js.map +0 -1
  376. package/es2015/src/legacy/picker/components/dayPicker/dayPicker.component.js +0 -214
  377. package/es2015/src/legacy/picker/components/dayPicker/dayPicker.component.js.map +0 -1
  378. package/es2015/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js +0 -2
  379. package/es2015/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js.map +0 -1
  380. package/es2015/src/legacy/picker/components/monthPicker/monthPicker.component.js +0 -116
  381. package/es2015/src/legacy/picker/components/monthPicker/monthPicker.component.js.map +0 -1
  382. package/es2015/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js +0 -2
  383. package/es2015/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js.map +0 -1
  384. package/es2015/src/legacy/picker/components/picker/picker.component.js +0 -242
  385. package/es2015/src/legacy/picker/components/picker/picker.component.js.map +0 -1
  386. package/es2015/src/legacy/picker/components/pickerBase.component.js +0 -138
  387. package/es2015/src/legacy/picker/components/pickerBase.component.js.map +0 -1
  388. package/es2015/src/legacy/picker/components/pickerImplBase.component.js +0 -145
  389. package/es2015/src/legacy/picker/components/pickerImplBase.component.js.map +0 -1
  390. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js +0 -148
  391. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js.map +0 -1
  392. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js +0 -341
  393. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js.map +0 -1
  394. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js +0 -2
  395. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js.map +0 -1
  396. package/es2015/src/legacy/picker/components/yearPicker/yearPicker.component.js +0 -128
  397. package/es2015/src/legacy/picker/components/yearPicker/yearPicker.component.js.map +0 -1
  398. package/es2015/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js +0 -2
  399. package/es2015/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js.map +0 -1
  400. package/es2015/src/legacy/picker/directives/index.js +0 -4
  401. package/es2015/src/legacy/picker/directives/index.js.map +0 -1
  402. package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.directive.js +0 -213
  403. package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.directive.js.map +0 -1
  404. package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.interface.js +0 -3
  405. package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.interface.js.map +0 -1
  406. package/es2015/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.js.map +0 -1
  407. package/es2015/src/legacy/picker/interfaces.js +0 -6
  408. package/es2015/src/legacy/picker/interfaces.js.map +0 -1
  409. package/es2015/src/legacy/picker/misc/datetimePicker.interface.js +0 -2
  410. package/es2015/src/legacy/picker/misc/datetimePicker.interface.js.map +0 -1
  411. package/es2015/src/legacy/picker/misc/tokens.js +0 -6
  412. package/es2015/src/legacy/picker/misc/tokens.js.map +0 -1
  413. package/es2015/src/legacy/picker/modules/picker.module.js +0 -65
  414. package/es2015/src/legacy/picker/modules/picker.module.js.map +0 -1
  415. package/es2015/src/legacy/picker/types.js +0 -10
  416. package/es2015/src/legacy/picker/types.js.map +0 -1
  417. package/es2015/src/legacy/selector/components/selector/selector.component.animations.js +0 -15
  418. package/es2015/src/legacy/selector/components/selector/selector.component.animations.js.map +0 -1
  419. package/es2015/src/legacy/selector/components/selector/selector.component.js +0 -357
  420. package/es2015/src/legacy/selector/components/selector/selector.component.js.map +0 -1
  421. package/es2015/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js +0 -134
  422. package/es2015/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js.map +0 -1
  423. package/es2015/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js +0 -51
  424. package/es2015/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js.map +0 -1
  425. package/es2015/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js +0 -51
  426. package/es2015/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js.map +0 -1
  427. package/es2015/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js +0 -47
  428. package/es2015/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js.map +0 -1
  429. package/es2015/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js +0 -119
  430. package/es2015/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js.map +0 -1
  431. package/es2015/src/legacy/selector/interfaces.js +0 -2
  432. package/es2015/src/legacy/selector/interfaces.js.map +0 -1
  433. package/es2015/src/legacy/selector/misc/datetimeSelector.interface.js +0 -2
  434. package/es2015/src/legacy/selector/misc/datetimeSelector.interface.js.map +0 -1
  435. package/es2015/src/legacy/selector/misc/tokens.js +0 -6
  436. package/es2015/src/legacy/selector/misc/tokens.js.map +0 -1
  437. package/es2015/src/legacy/selector/modules/basicSelector.module.js +0 -20
  438. package/es2015/src/legacy/selector/modules/basicSelector.module.js.map +0 -1
  439. package/es2015/src/legacy/selector/modules/selector.module.js +0 -63
  440. package/es2015/src/legacy/selector/modules/selector.module.js.map +0 -1
  441. package/es2015/src/legacy/selector/types.js +0 -11
  442. package/es2015/src/legacy/selector/types.js.map +0 -1
  443. package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js +0 -14
  444. package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js.map +0 -1
  445. package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js +0 -2
  446. package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js.map +0 -1
  447. package/es2020/src/legacy/picker/components/dayPicker/dayPicker.component.js +0 -214
  448. package/es2020/src/legacy/picker/components/dayPicker/dayPicker.component.js.map +0 -1
  449. package/es2020/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js +0 -2
  450. package/es2020/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js.map +0 -1
  451. package/es2020/src/legacy/picker/components/monthPicker/monthPicker.component.js +0 -116
  452. package/es2020/src/legacy/picker/components/monthPicker/monthPicker.component.js.map +0 -1
  453. package/es2020/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js +0 -2
  454. package/es2020/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js.map +0 -1
  455. package/es2020/src/legacy/picker/components/picker/picker.component.js +0 -237
  456. package/es2020/src/legacy/picker/components/picker/picker.component.js.map +0 -1
  457. package/es2020/src/legacy/picker/components/pickerBase.component.js +0 -138
  458. package/es2020/src/legacy/picker/components/pickerBase.component.js.map +0 -1
  459. package/es2020/src/legacy/picker/components/pickerImplBase.component.js +0 -145
  460. package/es2020/src/legacy/picker/components/pickerImplBase.component.js.map +0 -1
  461. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js +0 -142
  462. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js.map +0 -1
  463. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js +0 -341
  464. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js.map +0 -1
  465. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js +0 -2
  466. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js.map +0 -1
  467. package/es2020/src/legacy/picker/components/yearPicker/yearPicker.component.js +0 -128
  468. package/es2020/src/legacy/picker/components/yearPicker/yearPicker.component.js.map +0 -1
  469. package/es2020/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js +0 -2
  470. package/es2020/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js.map +0 -1
  471. package/es2020/src/legacy/picker/directives/index.js +0 -4
  472. package/es2020/src/legacy/picker/directives/index.js.map +0 -1
  473. package/es2020/src/legacy/picker/directives/loopScroll/loopScroll.directive.js.map +0 -1
  474. package/es2020/src/legacy/picker/directives/loopScroll/loopScroll.interface.js +0 -3
  475. package/es2020/src/legacy/picker/directives/loopScroll/loopScroll.interface.js.map +0 -1
  476. package/es2020/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.js.map +0 -1
  477. package/es2020/src/legacy/picker/interfaces.js +0 -6
  478. package/es2020/src/legacy/picker/interfaces.js.map +0 -1
  479. package/es2020/src/legacy/picker/misc/datetimePicker.interface.js +0 -2
  480. package/es2020/src/legacy/picker/misc/datetimePicker.interface.js.map +0 -1
  481. package/es2020/src/legacy/picker/misc/tokens.js +0 -6
  482. package/es2020/src/legacy/picker/misc/tokens.js.map +0 -1
  483. package/es2020/src/legacy/picker/modules/picker.module.js +0 -65
  484. package/es2020/src/legacy/picker/modules/picker.module.js.map +0 -1
  485. package/es2020/src/legacy/picker/types.js +0 -10
  486. package/es2020/src/legacy/picker/types.js.map +0 -1
  487. package/es2020/src/legacy/selector/components/selector/selector.component.animations.js +0 -15
  488. package/es2020/src/legacy/selector/components/selector/selector.component.animations.js.map +0 -1
  489. package/es2020/src/legacy/selector/components/selector/selector.component.js +0 -345
  490. package/es2020/src/legacy/selector/components/selector/selector.component.js.map +0 -1
  491. package/es2020/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js +0 -133
  492. package/es2020/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js.map +0 -1
  493. package/es2020/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js +0 -51
  494. package/es2020/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js.map +0 -1
  495. package/es2020/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js +0 -51
  496. package/es2020/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js.map +0 -1
  497. package/es2020/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js +0 -47
  498. package/es2020/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js.map +0 -1
  499. package/es2020/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js +0 -118
  500. package/es2020/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js.map +0 -1
  501. package/es2020/src/legacy/selector/interfaces.js +0 -2
  502. package/es2020/src/legacy/selector/interfaces.js.map +0 -1
  503. package/es2020/src/legacy/selector/misc/datetimeSelector.interface.js +0 -2
  504. package/es2020/src/legacy/selector/misc/datetimeSelector.interface.js.map +0 -1
  505. package/es2020/src/legacy/selector/misc/tokens.js +0 -6
  506. package/es2020/src/legacy/selector/misc/tokens.js.map +0 -1
  507. package/es2020/src/legacy/selector/modules/basicSelector.module.js +0 -20
  508. package/es2020/src/legacy/selector/modules/basicSelector.module.js.map +0 -1
  509. package/es2020/src/legacy/selector/modules/selector.module.js +0 -63
  510. package/es2020/src/legacy/selector/modules/selector.module.js.map +0 -1
  511. package/es2020/src/legacy/selector/types.js +0 -11
  512. package/es2020/src/legacy/selector/types.js.map +0 -1
  513. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.css +0 -0
  514. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.d.ts +0 -9
  515. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.d.ts.map +0 -1
  516. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.html +0 -0
  517. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.d.ts +0 -6
  518. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.d.ts.map +0 -1
  519. package/src/legacy/picker/components/dayPicker/dayPicker.component.css +0 -22
  520. package/src/legacy/picker/components/dayPicker/dayPicker.component.d.ts +0 -80
  521. package/src/legacy/picker/components/dayPicker/dayPicker.component.d.ts.map +0 -1
  522. package/src/legacy/picker/components/dayPicker/dayPicker.component.html +0 -21
  523. package/src/legacy/picker/components/dayPicker/dayPicker.interfaces.d.ts +0 -11
  524. package/src/legacy/picker/components/dayPicker/dayPicker.interfaces.d.ts.map +0 -1
  525. package/src/legacy/picker/components/monthPicker/monthPicker.component.css +0 -4
  526. package/src/legacy/picker/components/monthPicker/monthPicker.component.d.ts +0 -53
  527. package/src/legacy/picker/components/monthPicker/monthPicker.component.d.ts.map +0 -1
  528. package/src/legacy/picker/components/monthPicker/monthPicker.component.html +0 -13
  529. package/src/legacy/picker/components/monthPicker/monthPicker.interfaces.d.ts +0 -7
  530. package/src/legacy/picker/components/monthPicker/monthPicker.interfaces.d.ts.map +0 -1
  531. package/src/legacy/picker/components/picker/picker.component.css +0 -4
  532. package/src/legacy/picker/components/picker/picker.component.d.ts +0 -105
  533. package/src/legacy/picker/components/picker/picker.component.d.ts.map +0 -1
  534. package/src/legacy/picker/components/picker/picker.component.html +0 -3
  535. package/src/legacy/picker/components/pickerBase.component.d.ts +0 -80
  536. package/src/legacy/picker/components/pickerBase.component.d.ts.map +0 -1
  537. package/src/legacy/picker/components/pickerImplBase.component.d.ts +0 -128
  538. package/src/legacy/picker/components/pickerImplBase.component.d.ts.map +0 -1
  539. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.css +0 -64
  540. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.d.ts +0 -71
  541. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.d.ts.map +0 -1
  542. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.html +0 -67
  543. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.d.ts +0 -4
  544. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.d.ts.map +0 -1
  545. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.d.ts +0 -6
  546. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.d.ts.map +0 -1
  547. package/src/legacy/picker/components/yearPicker/yearPicker.component.css +0 -4
  548. package/src/legacy/picker/components/yearPicker/yearPicker.component.d.ts +0 -58
  549. package/src/legacy/picker/components/yearPicker/yearPicker.component.d.ts.map +0 -1
  550. package/src/legacy/picker/components/yearPicker/yearPicker.component.html +0 -13
  551. package/src/legacy/picker/components/yearPicker/yearPicker.interfaces.d.ts +0 -7
  552. package/src/legacy/picker/components/yearPicker/yearPicker.interfaces.d.ts.map +0 -1
  553. package/src/legacy/picker/directives/index.d.ts +0 -4
  554. package/src/legacy/picker/directives/index.d.ts.map +0 -1
  555. package/src/legacy/picker/directives/loopScroll/loopScroll.directive.d.ts.map +0 -1
  556. package/src/legacy/picker/directives/loopScroll/loopScroll.interface.d.ts.map +0 -1
  557. package/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.d.ts +0 -20
  558. package/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.d.ts.map +0 -1
  559. package/src/legacy/picker/interfaces.d.ts +0 -6
  560. package/src/legacy/picker/interfaces.d.ts.map +0 -1
  561. package/src/legacy/picker/misc/datetimePicker.interface.d.ts +0 -193
  562. package/src/legacy/picker/misc/datetimePicker.interface.d.ts.map +0 -1
  563. package/src/legacy/picker/misc/tokens.d.ts +0 -7
  564. package/src/legacy/picker/misc/tokens.d.ts.map +0 -1
  565. package/src/legacy/picker/modules/picker.module.d.ts +0 -20
  566. package/src/legacy/picker/modules/picker.module.d.ts.map +0 -1
  567. package/src/legacy/picker/types.d.ts +0 -10
  568. package/src/legacy/picker/types.d.ts.map +0 -1
  569. package/src/legacy/selector/components/selector/selector.component.animations.d.ts +0 -5
  570. package/src/legacy/selector/components/selector/selector.component.animations.d.ts.map +0 -1
  571. package/src/legacy/selector/components/selector/selector.component.css +0 -11
  572. package/src/legacy/selector/components/selector/selector.component.d.ts +0 -157
  573. package/src/legacy/selector/components/selector/selector.component.d.ts.map +0 -1
  574. package/src/legacy/selector/components/selector/selector.component.html +0 -10
  575. package/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.d.ts +0 -80
  576. package/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.d.ts.map +0 -1
  577. package/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.d.ts +0 -23
  578. package/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.d.ts.map +0 -1
  579. package/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.d.ts +0 -23
  580. package/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.d.ts.map +0 -1
  581. package/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.d.ts +0 -22
  582. package/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.d.ts.map +0 -1
  583. package/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.d.ts +0 -54
  584. package/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.d.ts.map +0 -1
  585. package/src/legacy/selector/interfaces.d.ts +0 -2
  586. package/src/legacy/selector/interfaces.d.ts.map +0 -1
  587. package/src/legacy/selector/misc/datetimeSelector.interface.d.ts +0 -96
  588. package/src/legacy/selector/misc/datetimeSelector.interface.d.ts.map +0 -1
  589. package/src/legacy/selector/misc/tokens.d.ts +0 -7
  590. package/src/legacy/selector/misc/tokens.d.ts.map +0 -1
  591. package/src/legacy/selector/modules/basicSelector.module.d.ts +0 -11
  592. package/src/legacy/selector/modules/basicSelector.module.d.ts.map +0 -1
  593. package/src/legacy/selector/modules/selector.module.d.ts +0 -20
  594. package/src/legacy/selector/modules/selector.module.d.ts.map +0 -1
  595. package/src/legacy/selector/types.d.ts +0 -11
  596. package/src/legacy/selector/types.d.ts.map +0 -1
@@ -1,357 +0,0 @@
1
- import { Component, ChangeDetectionStrategy, Input, Inject, Optional, ChangeDetectorRef, ElementRef } from '@angular/core';
2
- import { PositionPlacement } from '@anglr/common';
3
- import { extend, isBlank, isString, nameof } from '@jscrpt/common';
4
- import { Subject, Subscription } from 'rxjs';
5
- import { DATE_API, FORMAT_PROVIDER } from '../../../../misc/tokens';
6
- import { DateTimeDayPickerComponent } from '../../../picker/components/dayPicker/dayPicker.component';
7
- import { DateTimeMonthPickerComponent } from '../../../picker/components/monthPicker/monthPicker.component';
8
- import { DateTimeYearPickerComponent } from '../../../picker/components/yearPicker/yearPicker.component';
9
- import { DateValueProvider } from '../../../../services';
10
- import { DATE_TIME_SELECTOR_CONFIGURATION } from '../../misc/tokens';
11
- import { InputDateTimeSelectorComponent } from '../inputDateTime/inputDateTime.component';
12
- import { enterLeaveAnimateChildTrigger } from './selector.component.animations';
13
- import * as i0 from "@angular/core";
14
- import * as i1 from "../../../../services";
15
- import * as i2 from "@angular/common";
16
- import * as i3 from "@anglr/common";
17
- import * as i4 from "../../directives/dateTimePickerRenderer/dateTimePickerRenderer.directive";
18
- //TODO - add support for body absolute picker
19
- /**
20
- * Default configuration for selector
21
- */
22
- const defaultConfiguration = {
23
- selectorComponent: InputDateTimeSelectorComponent,
24
- pickerCloseOnValueSelect: false,
25
- pickerDisabled: false,
26
- pickerAbsolute: true,
27
- pickerAbsoluteContainer: 'body',
28
- positionOptions: {
29
- flip: true,
30
- placement: PositionPlacement.BottomStart,
31
- autoUpdate: true
32
- },
33
- defaultPeriod: 'day',
34
- pickerPeriodsOrder: null,
35
- pickerPeriodsDefinition: {
36
- 'day': DateTimeDayPickerComponent,
37
- 'month': DateTimeMonthPickerComponent,
38
- 'year': DateTimeYearPickerComponent
39
- },
40
- cssClasses: {}
41
- };
42
- /**
43
- * Component used for displaying and selecting date time
44
- */
45
- export class DateTimeSelectorComponent {
46
- //######################### constructor #########################
47
- constructor(configuration, _valueProvider, _changeDetector, element, _dateApi, formatProvider) {
48
- this._valueProvider = _valueProvider;
49
- this._changeDetector = _changeDetector;
50
- this.element = element;
51
- this._dateApi = _dateApi;
52
- //######################### protected fields #########################
53
- /**
54
- * Current value of datetime
55
- */
56
- this._value = null;
57
- /**
58
- * Occurs when selector is touched by user
59
- */
60
- this._touched = new Subject();
61
- /**
62
- * Occurs when value changes
63
- */
64
- this._valueChange = new Subject();
65
- /**
66
- * Indication whether is control disabled
67
- */
68
- this._disabled = false;
69
- /**
70
- * All subscriptions for active selector
71
- */
72
- this._activeSelectorSubscriptions = new Subscription();
73
- /**
74
- * Subscription for changes of min value selector
75
- */
76
- this._minValueChangeSubscription = null;
77
- /**
78
- * Subscription for changes of max value selector
79
- */
80
- this._maxValueChangeSubscription = null;
81
- /**
82
- * Indication whether is picker visible or not
83
- * @internal
84
- */
85
- this.pickerVisible = false;
86
- /**
87
- * Gets or sets minimal possible value for picker, that can be picked
88
- */
89
- this.min = null;
90
- /**
91
- * Gets or sets maximal possible value for picker, that can be picked
92
- */
93
- this.max = null;
94
- this.format = formatProvider.date;
95
- this._options = extend(true, {}, defaultConfiguration, configuration);
96
- // without deep-copy for this attribute
97
- if (configuration === null || configuration === void 0 ? void 0 : configuration.pickerPeriodsDefinition) {
98
- this._options.pickerPeriodsDefinition = configuration.pickerPeriodsDefinition;
99
- }
100
- }
101
- //######################### public properties #########################
102
- /**
103
- * Gets or sets current value of datetime
104
- */
105
- get value() {
106
- return this._value;
107
- }
108
- set value(value) {
109
- var _a;
110
- this._value = value;
111
- (_a = this._activeSelector) === null || _a === void 0 ? void 0 : _a.setValue(this._value);
112
- }
113
- /**
114
- * Gets indication whether is current value valid
115
- */
116
- get valid() {
117
- var _a, _b;
118
- return (_b = (_a = this._activeSelector) === null || _a === void 0 ? void 0 : _a.valid) !== null && _b !== void 0 ? _b : true;
119
- }
120
- /**
121
- * Gets or sets formatted value
122
- */
123
- get formattedValue() {
124
- var _a, _b;
125
- return (_b = (_a = this._activeSelector) === null || _a === void 0 ? void 0 : _a.formattedValue) !== null && _b !== void 0 ? _b : null;
126
- }
127
- set formattedValue(value) {
128
- if (value) {
129
- const val = this._dateApi.getValue(value, this.format);
130
- this.value = this._valueProvider.getValue(val.value, this.format);
131
- }
132
- else {
133
- this.value = null;
134
- }
135
- }
136
- /**
137
- * Occurs when selector is touched by user
138
- */
139
- get touched() {
140
- return this._touched.asObservable();
141
- }
142
- /**
143
- * Occurs when value changes
144
- */
145
- get valueChange() {
146
- return this._valueChange.asObservable();
147
- }
148
- /**
149
- * Gets or sets placeholder that is displayed when there is no value selected
150
- */
151
- get placeholder() {
152
- return this._placeholder;
153
- }
154
- set placeholder(value) {
155
- var _a;
156
- this._placeholder = value;
157
- if (this._activeSelector) {
158
- this._activeSelector.placeholder = (_a = this._placeholder) !== null && _a !== void 0 ? _a : null;
159
- this._activeSelector.invalidateVisuals();
160
- }
161
- }
162
- /**
163
- * Current options used by selector
164
- */
165
- get options() {
166
- return this._options;
167
- }
168
- set options(value) {
169
- this._options = extend(true, this._options, value);
170
- // without deep-copy for this attribute
171
- if (value === null || value === void 0 ? void 0 : value.pickerPeriodsDefinition) {
172
- this._options.pickerPeriodsDefinition = value.pickerPeriodsDefinition;
173
- }
174
- }
175
- /**
176
- * Gets or sets minimal possible value for picker, that can be picked
177
- */
178
- get minValue() {
179
- return this.min;
180
- }
181
- set minValue(value) {
182
- var _a, _b;
183
- (_a = this._minValueChangeSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
184
- this._minValueChangeSubscription = null;
185
- if (isBlank(value)) {
186
- this.min = null;
187
- }
188
- else if (isString(value)) {
189
- const date = this._dateApi.getValue(value);
190
- if (date.isValid()) {
191
- this.min = date.value;
192
- }
193
- }
194
- else if (value instanceof DateTimeSelectorComponent) {
195
- this.min = value.valueOf();
196
- this._minValueChangeSubscription = value.valueChange.subscribe(() => {
197
- var _a;
198
- this.min = value.valueOf();
199
- (_a = this._activeSelector) === null || _a === void 0 ? void 0 : _a.setMinValue(this.min);
200
- this._changeDetector.detectChanges();
201
- });
202
- }
203
- else {
204
- this.min = value;
205
- }
206
- (_b = this._activeSelector) === null || _b === void 0 ? void 0 : _b.setMinValue(this.min);
207
- }
208
- /**
209
- * Gets or sets maximal possible value for picker, that can be picked
210
- */
211
- get maxValue() {
212
- return this.max;
213
- }
214
- set maxValue(value) {
215
- var _a, _b;
216
- (_a = this._maxValueChangeSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
217
- this._maxValueChangeSubscription = null;
218
- if (isBlank(value)) {
219
- this.max = null;
220
- }
221
- else if (isString(value)) {
222
- const date = this._dateApi.getValue(value);
223
- if (date.isValid()) {
224
- this.max = date.value;
225
- }
226
- }
227
- else if (value instanceof DateTimeSelectorComponent) {
228
- this.max = value.valueOf();
229
- this._maxValueChangeSubscription = value.valueChange.subscribe(() => {
230
- var _a;
231
- this.max = value.valueOf();
232
- (_a = this._activeSelector) === null || _a === void 0 ? void 0 : _a.setMaxValue(this.max);
233
- this._changeDetector.detectChanges();
234
- });
235
- }
236
- else {
237
- this.max = value;
238
- }
239
- (_b = this._activeSelector) === null || _b === void 0 ? void 0 : _b.setMaxValue(this.max);
240
- }
241
- //######################### public methods - implementation of OnInit #########################
242
- /**
243
- * Initialize component
244
- */
245
- ngOnInit() {
246
- this.activeSelectorComponent = this._options.selectorComponent;
247
- }
248
- //######################### public methods - implementation of OnChanges #########################
249
- /**
250
- * Called when input value changes
251
- */
252
- ngOnChanges(changes) {
253
- if (nameof('format') in changes && this._activeSelector) {
254
- this._activeSelector.format = this.format;
255
- this._activeSelector.invalidateVisuals();
256
- }
257
- }
258
- //######################### public methods - implementation of OnDestroy #########################
259
- /**
260
- * Called when component is destroyed
261
- */
262
- ngOnDestroy() {
263
- var _a, _b;
264
- this._activeSelectorSubscriptions.unsubscribe();
265
- (_a = this._minValueChangeSubscription) === null || _a === void 0 ? void 0 : _a.unsubscribe();
266
- this._minValueChangeSubscription = null;
267
- (_b = this._maxValueChangeSubscription) === null || _b === void 0 ? void 0 : _b.unsubscribe();
268
- this._maxValueChangeSubscription = null;
269
- }
270
- //######################### public methods - template bindings #########################
271
- /**
272
- * Handles created or destroyed date time selector instance
273
- * @param selector - Instance of selector or null
274
- * @internal
275
- */
276
- selectorCreated(selector) {
277
- var _a;
278
- this._activeSelector = selector;
279
- this._activeSelectorSubscriptions.unsubscribe();
280
- this._activeSelectorSubscriptions = new Subscription();
281
- this._activeSelectorSubscriptions.add(selector.touched.subscribe(() => this._touched.next()));
282
- this._activeSelectorSubscriptions.add(selector.pickerRequest.subscribe(visible => this.pickerVisible = visible));
283
- this._activeSelectorSubscriptions.add(selector.valueChange.subscribe(() => {
284
- this._value = selector.value;
285
- this._valueChange.next();
286
- }));
287
- selector.format = this.format;
288
- selector.setMaxValue(this.max);
289
- selector.setMinValue(this.min);
290
- selector.setValue(this._value);
291
- selector.setDisabled(this._disabled);
292
- selector.placeholder = (_a = this._placeholder) !== null && _a !== void 0 ? _a : null;
293
- selector.invalidateVisuals();
294
- }
295
- /**
296
- * Handles changed value by picker
297
- * @param value - Value that was changed
298
- * @internal
299
- */
300
- pickerChangedValue(value) {
301
- var _a;
302
- (_a = this._activeSelector) === null || _a === void 0 ? void 0 : _a.setValue(value);
303
- this._value = value;
304
- this._valueChange.next();
305
- if (this._options.pickerCloseOnValueSelect) {
306
- this.pickerVisible = false;
307
- }
308
- }
309
- //######################### public methods #########################
310
- /**
311
- * Sets as 'control' disabled
312
- * @param disabled - Indication whether sets value as disabled, if omitted it is same as disabled set to true
313
- */
314
- setDisabled(disabled = true) {
315
- var _a, _b;
316
- this._disabled = disabled;
317
- (_a = this._activeSelector) === null || _a === void 0 ? void 0 : _a.setDisabled(disabled);
318
- (_b = this._activeSelector) === null || _b === void 0 ? void 0 : _b.invalidateVisuals();
319
- }
320
- /**
321
- * Gets simple value of selector
322
- */
323
- valueOf() {
324
- if (!this._value) {
325
- return null;
326
- }
327
- return this._value.from;
328
- }
329
- }
330
- DateTimeSelectorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimeSelectorComponent, deps: [{ token: DATE_TIME_SELECTOR_CONFIGURATION, optional: true }, { token: i1.DateValueProvider }, { token: i0.ChangeDetectorRef }, { token: i0.ElementRef }, { token: DATE_API }, { token: FORMAT_PROVIDER }], target: i0.ɵɵFactoryTarget.Component });
331
- DateTimeSelectorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.6", type: DateTimeSelectorComponent, selector: "date-time-selector", inputs: { format: "format", placeholder: "placeholder", options: "options", minValue: "minValue", maxValue: "maxValue" }, usesOnChanges: true, ngImport: i0, template: "<ng-template [ngComponentOutletEx]=\"activeSelectorComponent!\" (ngComponentOutletExCreated)=\"selectorCreated($event!)\"></ng-template>\r\n\r\n<ng-template [ngIf]=\"!options.pickerDisabled && pickerVisible\">\r\n <ng-template [dateTimePicker]=\"value\"\r\n [minValue]=\"min\"\r\n [maxValue]=\"max\"\r\n [options]=\"options\"\r\n [selectorElement]=\"element\"\r\n (valueChange)=\"pickerChangedValue($event)\"></ng-template>\r\n</ng-template>", styles: [":host\r\n{\r\n display: block;\r\n position: relative;\r\n}\r\n\r\ndate-time-picker\r\n{\r\n position: absolute;\r\n top: 100%;\r\n}"], dependencies: [{ kind: "directive", type: i2.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgComponentOutletEx, selector: "[ngComponentOutletEx]", inputs: ["ngComponentOutletEx", "ngComponentOutletExInjector", "ngComponentOutletExContent"], outputs: ["ngComponentOutletExCreated"], exportAs: ["ngComponentOutletEx"] }, { kind: "directive", type: i4.DateTimePickerRendererDirective, selector: "[dateTimePicker]", inputs: ["options", "dateTimePicker", "minValue", "maxValue", "selectorElement"], outputs: ["valueChange"] }], animations: [enterLeaveAnimateChildTrigger], changeDetection: i0.ChangeDetectionStrategy.OnPush });
332
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimeSelectorComponent, decorators: [{
333
- type: Component,
334
- args: [{ selector: 'date-time-selector', animations: [enterLeaveAnimateChildTrigger], changeDetection: ChangeDetectionStrategy.OnPush, template: "<ng-template [ngComponentOutletEx]=\"activeSelectorComponent!\" (ngComponentOutletExCreated)=\"selectorCreated($event!)\"></ng-template>\r\n\r\n<ng-template [ngIf]=\"!options.pickerDisabled && pickerVisible\">\r\n <ng-template [dateTimePicker]=\"value\"\r\n [minValue]=\"min\"\r\n [maxValue]=\"max\"\r\n [options]=\"options\"\r\n [selectorElement]=\"element\"\r\n (valueChange)=\"pickerChangedValue($event)\"></ng-template>\r\n</ng-template>", styles: [":host\r\n{\r\n display: block;\r\n position: relative;\r\n}\r\n\r\ndate-time-picker\r\n{\r\n position: absolute;\r\n top: 100%;\r\n}"] }]
335
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
336
- type: Optional
337
- }, {
338
- type: Inject,
339
- args: [DATE_TIME_SELECTOR_CONFIGURATION]
340
- }] }, { type: i1.DateValueProvider }, { type: i0.ChangeDetectorRef }, { type: i0.ElementRef }, { type: undefined, decorators: [{
341
- type: Inject,
342
- args: [DATE_API]
343
- }] }, { type: undefined, decorators: [{
344
- type: Inject,
345
- args: [FORMAT_PROVIDER]
346
- }] }]; }, propDecorators: { format: [{
347
- type: Input
348
- }], placeholder: [{
349
- type: Input
350
- }], options: [{
351
- type: Input
352
- }], minValue: [{
353
- type: Input
354
- }], maxValue: [{
355
- type: Input
356
- }] } });
357
- //# sourceMappingURL=selector.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"selector.component.js","sourceRoot":"","sources":["../../../../../../src/legacy/selector/components/selector/selector.component.ts","../../../../../../src/legacy/selector/components/selector/selector.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,KAAK,EAAE,MAAM,EAAE,QAAQ,EAAqD,iBAAiB,EAAE,UAAU,EAAC,MAAM,eAAe,CAAC;AAC5K,OAAO,EAAC,iBAAiB,EAAC,MAAM,eAAe,CAAC;AAChD,OAAO,EAAC,MAAM,EAAE,OAAO,EAAE,QAAQ,EAAE,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACjE,OAAO,EAAa,OAAO,EAAE,YAAY,EAAC,MAAM,MAAM,CAAC;AAGvD,OAAO,EAAC,QAAQ,EAAE,eAAe,EAAC,MAAM,yBAAyB,CAAC;AAClE,OAAO,EAAC,0BAA0B,EAAC,MAAM,0DAA0D,CAAC;AACpG,OA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B,uBAAuB,CAAC,MAAM;;0BAuRlC,QAAQ;;0BAAI,MAAM;2BAAC,gCAAgC;;0BAInD,MAAM;2BAAC,QAAQ;;0BACf,MAAM;2BAAC,eAAe;4CA1I5B,MAAM;sBADZ,KAAK;gBAOK,WAAW;sBADrB,KAAK;gBAqBK,OAAO;sBADjB,KAAK;gBAmBK,QAAQ;sBADlB,KAAK;gBA+CK,QAAQ;sBADlB,KAAK","sourcesContent":["import {Component, ChangeDetectionStrategy, Input, Inject, Optional, Type, OnInit, OnDestroy, OnChanges, SimpleChanges, ChangeDetectorRef, ElementRef} from '@angular/core';\nimport {PositionPlacement} from '@anglr/common';\nimport {extend, isBlank, isString, nameof} from '@jscrpt/common';\nimport {Observable, Subject, Subscription} from 'rxjs';\n\nimport {DateTimeValue} from '../../../../interfaces/dateTime/datetime.interface';\nimport {DATE_API, FORMAT_PROVIDER} from '../../../../misc/tokens';\nimport {DateTimeDayPickerComponent} from '../../../picker/components/dayPicker/dayPicker.component';\nimport {DateTimeMonthPickerComponent} from '../../../picker/components/monthPicker/monthPicker.component';\nimport {DateTimeYearPickerComponent} from '../../../picker/components/yearPicker/yearPicker.component';\nimport {DateApi, DateValueProvider} from '../../../../services';\nimport {DateTimeSelector, DateTimeSelectorOptions} from '../../misc/datetimeSelector.interface';\nimport {DATE_TIME_SELECTOR_CONFIGURATION} from '../../misc/tokens';\nimport {InputDateTimeSelectorComponent} from '../inputDateTime/inputDateTime.component';\nimport {enterLeaveAnimateChildTrigger} from './selector.component.animations';\nimport {FormatProvider} from '../../../../interfaces';\n\n//TODO - add support for body absolute picker\n\n/**\n * Default configuration for selector\n */\nconst defaultConfiguration: DateTimeSelectorOptions<DateTimeSelector> =\n{\n selectorComponent: InputDateTimeSelectorComponent,\n pickerCloseOnValueSelect: false,\n pickerDisabled: false,\n pickerAbsolute: true,\n pickerAbsoluteContainer: 'body',\n positionOptions:\n {\n flip: true,\n placement: PositionPlacement.BottomStart,\n autoUpdate: true\n },\n defaultPeriod: 'day',\n pickerPeriodsOrder: null,\n pickerPeriodsDefinition:\n {\n 'day': DateTimeDayPickerComponent,\n 'month': DateTimeMonthPickerComponent,\n 'year': DateTimeYearPickerComponent\n },\n cssClasses:\n {\n }\n};\n\n/**\n * Component used for displaying and selecting date time\n */\n@Component(\n{\n selector: 'date-time-selector',\n templateUrl: 'selector.component.html',\n styleUrls: ['selector.component.css'],\n animations: [enterLeaveAnimateChildTrigger],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DateTimeSelectorComponent<TDate = any> implements OnInit, OnChanges ,OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Current value of datetime\n */\n protected _value: DateTimeValue<TDate>|null = null;\n\n /**\n * Occurs when selector is touched by user\n */\n protected _touched: Subject<void> = new Subject<void>();\n\n /**\n * Occurs when value changes\n */\n protected _valueChange: Subject<void> = new Subject<void>();\n\n /**\n * Indication whether is control disabled\n */\n protected _disabled: boolean = false;\n\n /**\n * Instance of active date time selector\n */\n protected _activeSelector?: DateTimeSelector<TDate>;\n\n /**\n * All subscriptions for active selector\n */\n protected _activeSelectorSubscriptions: Subscription = new Subscription();\n\n /**\n * Subscription for changes of min value selector\n */\n protected _minValueChangeSubscription: Subscription|null = null;\n\n /**\n * Subscription for changes of max value selector\n */\n protected _maxValueChangeSubscription: Subscription|null = null;\n\n /**\n * Current options used by selector\n */\n protected _options: DateTimeSelectorOptions<DateTimeSelector<TDate>>;\n\n /**\n * Placeholder that is displayed when there is no value selected\n */\n protected _placeholder?: string;\n\n //######################### public properties #########################\n\n /**\n * Gets or sets current value of datetime\n */\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._activeSelector?.setValue(this._value);\n }\n\n /**\n * Gets indication whether is current value valid\n */\n public get valid(): boolean\n {\n return this._activeSelector?.valid ?? true;\n }\n\n /**\n * Gets or sets formatted value\n */\n public get formattedValue(): string|null\n {\n return this._activeSelector?.formattedValue ?? null;\n }\n public set formattedValue(value: string|null)\n {\n if(value)\n {\n const val = this._dateApi.getValue(value, this.format);\n this.value = this._valueProvider.getValue(val.value, this.format);\n }\n else\n {\n this.value = null;\n }\n }\n\n /**\n * Occurs when selector is touched by user\n */\n public get touched(): Observable<void>\n {\n return this._touched.asObservable();\n }\n\n /**\n * Occurs when value changes\n */\n public get valueChange(): Observable<void>\n {\n return this._valueChange.asObservable();\n }\n\n //######################### public properties - template bindings #########################\n\n /**\n * Currently active date time selector component type\n * @internal\n */\n public activeSelectorComponent!: Type<DateTimeSelector<TDate>>;\n\n /**\n * Indication whether is picker visible or not\n * @internal\n */\n public pickerVisible: boolean = false;\n\n /**\n * Gets or sets minimal possible value for picker, that can be picked\n */\n public min: TDate|null = null;\n\n /**\n * Gets or sets maximal possible value for picker, that can be picked\n */\n public max: TDate|null = null;\n\n //######################### public properties - inputs #########################\n\n /**\n * Format of displayed\n */\n @Input()\n public format: string;\n\n /**\n * Gets or sets placeholder that is displayed when there is no value selected\n */\n @Input()\n public get placeholder(): string|undefined\n {\n return this._placeholder;\n }\n public set placeholder(value: string|undefined)\n {\n this._placeholder = value;\n\n if(this._activeSelector)\n {\n this._activeSelector.placeholder = this._placeholder ?? null;\n\n this._activeSelector.invalidateVisuals();\n }\n }\n\n /**\n * Current options used by selector\n */\n @Input()\n public get options(): Partial<DateTimeSelectorOptions<DateTimeSelector<TDate>>>\n {\n return this._options;\n }\n public set options(value: Partial<DateTimeSelectorOptions<DateTimeSelector<TDate>>>)\n {\n this._options = extend(true, this._options, value);\n // without deep-copy for this attribute\n if (value?.pickerPeriodsDefinition)\n {\n this._options.pickerPeriodsDefinition = value.pickerPeriodsDefinition;\n }\n }\n\n /**\n * Gets or sets minimal possible value for picker, that can be picked\n */\n @Input()\n public get minValue(): TDate|string|null|DateTimeSelectorComponent<TDate>\n {\n return this.min;\n }\n public set minValue(value: TDate|string|null|DateTimeSelectorComponent<TDate>)\n {\n this._minValueChangeSubscription?.unsubscribe();\n this._minValueChangeSubscription = null;\n\n if(isBlank(value))\n {\n this.min = null;\n }\n else if(isString(value))\n {\n const date = this._dateApi.getValue(value);\n\n if(date.isValid())\n {\n this.min = date.value;\n }\n }\n else if(value instanceof DateTimeSelectorComponent)\n {\n this.min = value.valueOf();\n\n this._minValueChangeSubscription = value.valueChange.subscribe(() =>\n {\n this.min = value.valueOf();\n this._activeSelector?.setMinValue(this.min);\n\n this._changeDetector.detectChanges();\n });\n }\n else\n {\n this.min = value;\n }\n\n this._activeSelector?.setMinValue(this.min);\n }\n\n /**\n * Gets or sets maximal possible value for picker, that can be picked\n */\n @Input()\n public get maxValue(): TDate|string|null|DateTimeSelectorComponent<TDate>\n {\n return this.max;\n }\n public set maxValue(value: TDate|string|null|DateTimeSelectorComponent<TDate>)\n {\n this._maxValueChangeSubscription?.unsubscribe();\n this._maxValueChangeSubscription = null;\n\n if(isBlank(value))\n {\n this.max = null;\n }\n else if(isString(value))\n {\n const date = this._dateApi.getValue(value);\n\n if(date.isValid())\n {\n this.max = date.value;\n }\n }\n else if(value instanceof DateTimeSelectorComponent)\n {\n this.max = value.valueOf();\n\n this._maxValueChangeSubscription = value.valueChange.subscribe(() =>\n {\n this.max = value.valueOf();\n this._activeSelector?.setMaxValue(this.max);\n\n this._changeDetector.detectChanges();\n });\n }\n else\n {\n this.max = value;\n }\n\n this._activeSelector?.setMaxValue(this.max);\n }\n\n //######################### constructor #########################\n constructor(@Optional() @Inject(DATE_TIME_SELECTOR_CONFIGURATION) configuration: Partial<DateTimeSelectorOptions<DateTimeSelector<TDate>>>,\n protected _valueProvider: DateValueProvider<TDate>,\n protected _changeDetector: ChangeDetectorRef,\n public element: ElementRef<HTMLElement>,\n @Inject(DATE_API) protected _dateApi: DateApi<TDate>,\n @Inject(FORMAT_PROVIDER) formatProvider: FormatProvider)\n {\n this.format = formatProvider.date;\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 this.activeSelectorComponent = this._options.selectorComponent;\n }\n\n //######################### public methods - implementation of OnChanges #########################\n\n /**\n * Called when input value changes\n */\n public ngOnChanges(changes: SimpleChanges): void\n {\n if(nameof<DateTimeSelectorComponent>('format') in changes && this._activeSelector)\n {\n this._activeSelector.format = this.format;\n this._activeSelector.invalidateVisuals();\n }\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n\n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n this._activeSelectorSubscriptions.unsubscribe();\n\n this._minValueChangeSubscription?.unsubscribe();\n this._minValueChangeSubscription = null;\n\n this._maxValueChangeSubscription?.unsubscribe();\n this._maxValueChangeSubscription = null;\n }\n\n //######################### public methods - template bindings #########################\n\n /**\n * Handles created or destroyed date time selector instance\n * @param selector - Instance of selector or null\n * @internal\n */\n public selectorCreated(selector: DateTimeSelector<TDate>): void\n {\n this._activeSelector = selector;\n\n this._activeSelectorSubscriptions.unsubscribe();\n this._activeSelectorSubscriptions = new Subscription();\n\n this._activeSelectorSubscriptions.add(selector.touched.subscribe(() => this._touched.next()));\n this._activeSelectorSubscriptions.add(selector.pickerRequest.subscribe(visible => this.pickerVisible = visible));\n\n this._activeSelectorSubscriptions.add(selector.valueChange.subscribe(() =>\n {\n this._value = selector.value;\n this._valueChange.next();\n }));\n\n selector.format = this.format;\n selector.setMaxValue(this.max);\n selector.setMinValue(this.min);\n selector.setValue(this._value);\n selector.setDisabled(this._disabled);\n selector.placeholder = this._placeholder ?? null;\n\n selector.invalidateVisuals();\n }\n\n /**\n * Handles changed value by picker\n * @param value - Value that was changed\n * @internal\n */\n public pickerChangedValue(value: DateTimeValue<TDate>): void\n {\n this._activeSelector?.setValue(value);\n this._value = value;\n this._valueChange.next();\n\n if(this._options.pickerCloseOnValueSelect)\n {\n this.pickerVisible = false;\n }\n }\n\n //######################### public methods #########################\n\n /**\n * Sets as 'control' disabled\n * @param disabled - Indication whether sets value as disabled, if omitted it is same as disabled set to true\n */\n public setDisabled(disabled: boolean = true): void\n {\n this._disabled = disabled;\n this._activeSelector?.setDisabled(disabled);\n this._activeSelector?.invalidateVisuals();\n }\n\n /**\n * Gets simple value of selector\n */\n public valueOf(): TDate|null\n {\n if(!this._value)\n {\n return null;\n }\n\n return this._value.from!;\n }\n}\n","<ng-template [ngComponentOutletEx]=\"activeSelectorComponent!\" (ngComponentOutletExCreated)=\"selectorCreated($event!)\"></ng-template>\r\n\r\n<ng-template [ngIf]=\"!options.pickerDisabled && pickerVisible\">\r\n <ng-template [dateTimePicker]=\"value\"\r\n [minValue]=\"min\"\r\n [maxValue]=\"max\"\r\n [options]=\"options\"\r\n [selectorElement]=\"element\"\r\n (valueChange)=\"pickerChangedValue($event)\"></ng-template>\r\n</ng-template>"]}
@@ -1,134 +0,0 @@
1
- import { Directive, ElementRef, EventEmitter, Inject, Injector, Input, Optional, Output, ViewContainerRef } from '@angular/core';
2
- import { DOCUMENT } from '@angular/common';
3
- import { POSITION, applyPositionResult } from '@anglr/common';
4
- import { Subscription } from 'rxjs';
5
- import { DateTimePickerLegacyComponent } from '../../../picker/types';
6
- import * as i0 from "@angular/core";
7
- /**
8
- * Directive for rendering datetime picker in selector
9
- */
10
- export class DateTimePickerRendererDirective {
11
- //######################### constructor #########################
12
- constructor(_viewContainer, _injector, _position, _document) {
13
- this._viewContainer = _viewContainer;
14
- this._injector = _injector;
15
- this._position = _position;
16
- this._document = _document;
17
- /**
18
- * Subscriptions created during initialization
19
- */
20
- this._initSubscriptions = new Subscription();
21
- //######################### public properties - outputs #########################
22
- /**
23
- * Occurs when value changes
24
- */
25
- this.valueChange = new EventEmitter();
26
- }
27
- //######################### protected properties #########################
28
- /**
29
- * Current options used by selector
30
- */
31
- get _options() {
32
- return this.options;
33
- }
34
- //######################### public methods - implementation of OnInit #########################
35
- /**
36
- * Initialize component
37
- */
38
- ngOnInit() {
39
- this._createPicker();
40
- }
41
- //######################### public methods - implementation of OnChanges #########################
42
- /**
43
- * Called when input value changes
44
- */
45
- ngOnChanges() {
46
- this._createPicker();
47
- if (this._pickerComponent) {
48
- const picker = this._pickerComponent.instance;
49
- picker.value = this.value;
50
- picker.minValue = this.minValue;
51
- picker.maxValue = this.maxValue;
52
- picker.options = this.options;
53
- }
54
- }
55
- //######################### public methods - implementation of OnDestroy #########################
56
- /**
57
- * Called when component is destroyed
58
- */
59
- ngOnDestroy() {
60
- this._destroyPicker();
61
- this._initSubscriptions.unsubscribe();
62
- }
63
- //######################### protected methods #########################
64
- /**
65
- * Destroys picker component
66
- */
67
- _destroyPicker() {
68
- if (this._pickerComponent) {
69
- this._pickerComponent.destroy();
70
- this._pickerComponent = undefined;
71
- this._pickerElement = undefined;
72
- }
73
- }
74
- /**
75
- * Creates picker component
76
- */
77
- _createPicker() {
78
- var _a;
79
- if (this._pickerComponent) {
80
- return;
81
- }
82
- // 1. Create a component reference from the component
83
- this._pickerComponent = this._viewContainer
84
- .createComponent(DateTimePickerLegacyComponent, {
85
- injector: this._injector
86
- });
87
- if (this._pickerComponent) {
88
- this._initSubscriptions.add(this._pickerComponent.instance.valueChange.subscribe(itm => this.valueChange.next(itm)));
89
- //absolutely position
90
- if (this._options.pickerAbsolute && this._position) {
91
- // 3. Get DOM element from component
92
- this._pickerElement = this._pickerComponent.hostView
93
- .rootNodes[0];
94
- // 4. Append DOM element to the body
95
- (_a = this._document.querySelector(this._options.pickerAbsoluteContainer)) === null || _a === void 0 ? void 0 : _a.appendChild(this._pickerElement);
96
- this._pickerElement.style.position = 'absolute';
97
- this._initSubscriptions.add(this._position.placeElement(this._pickerElement, this.selectorElement.nativeElement, this._options.positionOptions).subscribe(applyPositionResult));
98
- }
99
- else {
100
- return;
101
- }
102
- }
103
- }
104
- }
105
- DateTimePickerRendererDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimePickerRendererDirective, deps: [{ token: i0.ViewContainerRef }, { token: i0.Injector }, { token: POSITION, optional: true }, { token: DOCUMENT }], target: i0.ɵɵFactoryTarget.Directive });
106
- DateTimePickerRendererDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.6", type: DateTimePickerRendererDirective, selector: "[dateTimePicker]", inputs: { options: "options", value: ["dateTimePicker", "value"], minValue: "minValue", maxValue: "maxValue", selectorElement: "selectorElement" }, outputs: { valueChange: "valueChange" }, usesOnChanges: true, ngImport: i0 });
107
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimePickerRendererDirective, decorators: [{
108
- type: Directive,
109
- args: [{
110
- selector: '[dateTimePicker]'
111
- }]
112
- }], ctorParameters: function () { return [{ type: i0.ViewContainerRef }, { type: i0.Injector }, { type: undefined, decorators: [{
113
- type: Inject,
114
- args: [POSITION]
115
- }, {
116
- type: Optional
117
- }] }, { type: Document, decorators: [{
118
- type: Inject,
119
- args: [DOCUMENT]
120
- }] }]; }, propDecorators: { options: [{
121
- type: Input
122
- }], value: [{
123
- type: Input,
124
- args: ['dateTimePicker']
125
- }], minValue: [{
126
- type: Input
127
- }], maxValue: [{
128
- type: Input
129
- }], selectorElement: [{
130
- type: Input
131
- }], valueChange: [{
132
- type: Output
133
- }] } });
134
- //# sourceMappingURL=dateTimePickerRenderer.directive.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dateTimePickerRenderer.directive.js","sourceRoot":"","sources":["../../../../../../src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAe,SAAS,EAAE,UAAU,EAAmB,YAAY,EAAE,MAAM,EAAE,QAAQ,EAAE,KAAK,EAAgC,QAAQ,EAAE,MAAM,EAAE,gBAAgB,EAAC,MAAM,eAAe,CAAC;AAC5L,OAAO,EAAC,QAAQ,EAAC,MAAM,iBAA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,CAAC,GAAG,CAAC,IAAI,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,CAAC,cAAc,EAAE,IAAI,CAAC,eAAe,CAAC,aAAa,EAAE,IAAI,CAAC,QAAQ,CAAC,eAAe,CAAC,CAAC,SAAS,CAAC,mBAAmB,CAAC,CAAC,CAAC;aACnL;iBAED;gBACI,OAAO;aACV;SACJ;IACL,CAAC;;4HA3KQ,+BAA+B,0EAwEpB,QAAQ,6BACR,QAAQ;gHAzEnB,+BAA+B;2FAA/B,+BAA+B;kBAJ3C,SAAS;mBACV;oBACI,QAAQ,EAAE,kBAAkB;iBAC/B;;0BAyEgB,MAAM;2BAAC,QAAQ;;0BAAG,QAAQ;;0BAC1B,MAAM;2BAAC,QAAQ;4CAtCrB,OAAO;sBADb,KAAK;gBAOC,KAAK;sBADX,KAAK;uBAAC,gBAAgB;gBAOhB,QAAQ;sBADd,KAAK;gBAOC,QAAQ;sBADd,KAAK;gBAOC,eAAe;sBADrB,KAAK;gBASC,WAAW;sBADjB,MAAM","sourcesContent":["import {ComponentRef, Directive, ElementRef, EmbeddedViewRef, EventEmitter, Inject, Injector, Input, OnChanges, OnDestroy, OnInit, Optional, Output, ViewContainerRef} from '@angular/core';\nimport {DOCUMENT} from '@angular/common';\nimport {POSITION, Position, applyPositionResult} from '@anglr/common';\nimport {Subscription} from 'rxjs';\n\nimport {DateTimeValue} from '../../../../interfaces/dateTime/datetime.interface';\nimport {DateTimeSelector, DateTimeSelectorOptions} from '../../interfaces';\nimport {DateTimePickerLegacyComponent} from '../../../picker/types';\n\n/**\n * Directive for rendering datetime picker in selector\n */\n@Directive(\n{\n selector: '[dateTimePicker]'\n})\nexport class DateTimePickerRendererDirective<TDate = any> implements OnInit, OnChanges, OnDestroy\n{\n //######################### protected fields #########################\n\n /**\n * Instance of component used for rendering picker\n */\n protected _pickerComponent?: ComponentRef<DateTimePickerLegacyComponent>;\n\n /**\n * Instance of HTML element for picker\n */\n protected _pickerElement?: HTMLElement;\n\n /**\n * Subscriptions created during initialization\n */\n protected _initSubscriptions: Subscription = new Subscription();\n\n //######################### protected properties #########################\n\n /**\n * Current options used by selector\n */\n protected get _options(): DateTimeSelectorOptions<DateTimeSelector<TDate>>\n {\n return this.options as DateTimeSelectorOptions<DateTimeSelector<TDate>>;\n }\n\n //######################### public properties - inputs #########################\n\n /**\n * Current options used by selector\n */\n @Input()\n public options!: Partial<DateTimeSelectorOptions<DateTimeSelector<TDate>>>;\n\n /**\n * Current selected value\n */\n @Input('dateTimePicker')\n public value!: DateTimeValue<TDate>|null;\n\n /**\n * Gets or sets minimal possible value for picker, that can be picked\n */\n @Input()\n public minValue!: TDate|null;\n\n /**\n * Gets or sets maximal possible value for picker, that can be picked\n */\n @Input()\n public maxValue!: TDate|null;\n\n /**\n * Selector element which is used during absolute positioning of picker\n */\n @Input()\n public selectorElement!: ElementRef<HTMLElement>;\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(protected _viewContainer: ViewContainerRef,\n protected _injector: Injector,\n @Inject(POSITION) @Optional() protected _position: Position,\n @Inject(DOCUMENT) protected _document: Document)\n {\n }\n\n //######################### public methods - implementation of OnInit #########################\n \n /**\n * Initialize component\n */\n public ngOnInit(): void\n {\n this._createPicker();\n }\n\n //######################### public methods - implementation of OnChanges #########################\n \n /**\n * Called when input value changes\n */\n public ngOnChanges(): void\n {\n this._createPicker();\n\n if(this._pickerComponent)\n {\n const picker = this._pickerComponent.instance;\n\n picker.value = this.value;\n picker.minValue = this.minValue;\n picker.maxValue = this.maxValue;\n picker.options = this.options;\n }\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n \n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n this._destroyPicker();\n this._initSubscriptions.unsubscribe();\n }\n\n //######################### protected methods #########################\n\n /**\n * Destroys picker component\n */\n protected _destroyPicker(): void\n {\n if(this._pickerComponent)\n {\n this._pickerComponent.destroy();\n this._pickerComponent = undefined;\n this._pickerElement = undefined;\n }\n }\n\n /**\n * Creates picker component\n */\n protected _createPicker(): void\n {\n if(this._pickerComponent)\n {\n return;\n }\n\n // 1. Create a component reference from the component\n this._pickerComponent = this._viewContainer\n .createComponent(DateTimePickerLegacyComponent,\n {\n injector: this._injector\n });\n\n if(this._pickerComponent)\n {\n this._initSubscriptions.add(this._pickerComponent.instance.valueChange.subscribe(itm => this.valueChange.next(itm)));\n\n //absolutely position\n if(this._options.pickerAbsolute && this._position)\n {\n // 3. Get DOM element from component\n this._pickerElement = (this._pickerComponent.hostView as EmbeddedViewRef<any>)\n .rootNodes[0] as HTMLElement;\n\n // 4. Append DOM element to the body\n this._document.querySelector(this._options.pickerAbsoluteContainer)?.appendChild(this._pickerElement);\n this._pickerElement.style.position = 'absolute';\n this._initSubscriptions.add(this._position.placeElement(this._pickerElement, this.selectorElement.nativeElement, this._options.positionOptions).subscribe(applyPositionResult));\n }\n else\n {\n return;\n }\n }\n }\n}"]}
@@ -1,51 +0,0 @@
1
- import { forwardRef, Directive, Inject } from '@angular/core';
2
- import { NG_VALIDATORS } from '@angular/forms';
3
- import { Validators } from '../../../../misc/validators';
4
- import { DateTimeSelectorComponent } from '../../components/selector/selector.component';
5
- import { DATE_API } from '../../../../misc/tokens';
6
- import * as i0 from "@angular/core";
7
- import * as i1 from "../../components/selector/selector.component";
8
- /**
9
- * Validator that is injected with directive DatetimeMaxValidatorDirective
10
- */
11
- const DATETIME_MIN_VALIDATOR = {
12
- provide: NG_VALIDATORS,
13
- useExisting: forwardRef(() => DatetimeMaxValidatorDirective),
14
- multi: true
15
- };
16
- /**
17
- * Directive injecting datetime max validator, validating max datetime value
18
- */
19
- export class DatetimeMaxValidatorDirective {
20
- //######################### constructor #########################
21
- constructor(datetimeSelector, dateApi) {
22
- //######################### private fields #########################
23
- /**
24
- * Function used for validations
25
- */
26
- this._validator = () => null;
27
- this._validator = Validators.maxDatetime(datetimeSelector, dateApi);
28
- }
29
- //######################### public methods - implementation of Validator #########################
30
- /**
31
- * Validates input and returns validation result
32
- * @param control - Control that is being validated
33
- * @returns validation results
34
- */
35
- validate(control) {
36
- return this._validator(control);
37
- }
38
- }
39
- DatetimeMaxValidatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DatetimeMaxValidatorDirective, deps: [{ token: i1.DateTimeSelectorComponent }, { token: DATE_API }], target: i0.ɵɵFactoryTarget.Directive });
40
- DatetimeMaxValidatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.6", type: DatetimeMaxValidatorDirective, selector: "date-time-selector[validate][maxValue][formControlName]:not([range]),date-time-selector[validate][maxValue][formControl]:not([range]),date-time-selector[validate][maxValue][ngModel]:not([range])", providers: [DATETIME_MIN_VALIDATOR], ngImport: i0 });
41
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DatetimeMaxValidatorDirective, decorators: [{
42
- type: Directive,
43
- args: [{
44
- selector: 'date-time-selector[validate][maxValue][formControlName]:not([range]),date-time-selector[validate][maxValue][formControl]:not([range]),date-time-selector[validate][maxValue][ngModel]:not([range])',
45
- providers: [DATETIME_MIN_VALIDATOR]
46
- }]
47
- }], ctorParameters: function () { return [{ type: i1.DateTimeSelectorComponent }, { type: undefined, decorators: [{
48
- type: Inject,
49
- args: [DATE_API]
50
- }] }]; } });
51
- //# sourceMappingURL=datetimeMaxValidator.directive.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"datetimeMaxValidator.directive.js","sourceRoot":"","sources":["../../../../../../src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAmB,UAAU,EAAE,SAAS,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;AAC9E,OAAO,EAAC,aAAa,EAA4D,MAAM,gBAAgB,CAAC;AAExG,OAAO,EAAC,UAAU,EAAC,MAAM,6BAA6B,CAAC;AACvD,OAAO,EAAC,yBAAyB,EAAC,MAAM,8CAA8C,CAAC;AAEvF,OAAO,EAAC,QAAQ,EAAC,MAAM,yBAAyB,CAAC;;;AAEjD;;GAEG;AACH,MAAM,sBAAsB,GAC5B;IACI,OAAO,EAAE,aAAa;IACtB,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,6BAA6B,CAAC;IAC5D,KAAK,EAAE,IAAI;CACd,CAAC;AAEF;;GAEG;AAMH,MAAM,OAAO,6BAA6B;IAStC,iEAAiE;IACjE,YAAY,gBAAkD,EAChC,OAAuB;QATrD,oEAAoE;QAEpE;;WAEG;QACK,eAAU,GAAgB,GAAG,EAAE,CAAC,IAAI,CAAC;QAMzC,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC,WAAW,CAAC,gBAAgB,EAAE,OAAO,CAAC,CAAC;IACxE,CAAC;IAED,kGAAkG;IAElG;;;;OAIG;IACI,QAAQ,CAAC,OAAwB;QAEpC,OAAO,IAAI,CAAC,UAAU,CAAC,OAAO,CAAC,CAAC;IACpC,CAAC;;0HA1BQ,6BAA6B,2DAWlB,QAAQ;8GAXnB,6BAA6B,6NAF3B,CAAC,sBAAsB,CAAC;2FAE1B,6BAA6B;kBALzC,SAAS;mBACV;oBACI,QAAQ,EAAE,oMAAoM;oBAC9M,SAAS,EAAE,CAAC,sBAAsB,CAAC;iBACtC;;0BAYgB,MAAM;2BAAC,QAAQ","sourcesContent":["import {ExistingProvider, forwardRef, Directive, Inject} from '@angular/core';\nimport {NG_VALIDATORS, AbstractControl, Validator, ValidatorFn, ValidationErrors} from '@angular/forms';\n\nimport {Validators} from '../../../../misc/validators';\nimport {DateTimeSelectorComponent} from '../../components/selector/selector.component';\nimport {DateApi} from '../../../../services/dateApi/dateApi.interface';\nimport {DATE_API} from '../../../../misc/tokens';\n\n/**\n * Validator that is injected with directive DatetimeMaxValidatorDirective\n */\nconst DATETIME_MIN_VALIDATOR = <ExistingProvider>\n{\n provide: NG_VALIDATORS,\n useExisting: forwardRef(() => DatetimeMaxValidatorDirective),\n multi: true\n};\n\n/**\n * Directive injecting datetime max validator, validating max datetime value \n */\n@Directive(\n{\n selector: 'date-time-selector[validate][maxValue][formControlName]:not([range]),date-time-selector[validate][maxValue][formControl]:not([range]),date-time-selector[validate][maxValue][ngModel]:not([range])',\n providers: [DATETIME_MIN_VALIDATOR]\n})\nexport class DatetimeMaxValidatorDirective<TDate = any> implements Validator\n{\n //######################### private fields #########################\n\n /**\n * Function used for validations\n */\n private _validator: ValidatorFn = () => null;\n\n //######################### constructor #########################\n constructor(datetimeSelector: DateTimeSelectorComponent<TDate>,\n @Inject(DATE_API) dateApi: DateApi<TDate>)\n {\n this._validator = Validators.maxDatetime(datetimeSelector, dateApi);\n }\n\n //######################### public methods - implementation of Validator #########################\n\n /**\n * Validates input and returns validation result\n * @param control - Control that is being validated\n * @returns validation results\n */\n public validate(control: AbstractControl): ValidationErrors|null\n {\n return this._validator(control);\n }\n}"]}