@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
@@ -0,0 +1,19 @@
1
+ /**
2
+ * Available day formats for calendar day
3
+ */
4
+ export var MonthCalendarDayFormat;
5
+ (function (MonthCalendarDayFormat) {
6
+ /**
7
+ * No week day name displayed
8
+ */
9
+ MonthCalendarDayFormat["None"] = "None";
10
+ /**
11
+ * Short version of week day name
12
+ */
13
+ MonthCalendarDayFormat["Short"] = "Short";
14
+ /**
15
+ * Full version of week day name
16
+ */
17
+ MonthCalendarDayFormat["Full"] = "Full";
18
+ })(MonthCalendarDayFormat || (MonthCalendarDayFormat = {}));
19
+ //# sourceMappingURL=monthCalendarDayFormat.enum.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monthCalendarDayFormat.enum.js","sourceRoot":"","sources":["../../../../../../src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.ts"],"names":[],"mappings":"AAAA;;GAEG;AACH,MAAM,CAAN,IAAY,sBAgBX;AAhBD,WAAY,sBAAsB;IAE9B;;OAEG;IACH,uCAAa,CAAA;IAEb;;OAEG;IACH,yCAAe,CAAA;IAEf;;OAEG;IACH,uCAAa,CAAA;AACjB,CAAC,EAhBW,sBAAsB,KAAtB,sBAAsB,QAgBjC","sourcesContent":["/**\n * Available day formats for calendar day\n */\nexport enum MonthCalendarDayFormat\n{\n /**\n * No week day name displayed\n */\n None = 'None',\n\n /**\n * Short version of week day name\n */\n Short = 'Short',\n\n /**\n * Full version of week day name\n */\n Full = 'Full',\n}"]}
@@ -0,0 +1,2 @@
1
+ export * from './enums';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/calendar/misc/index.ts"],"names":[],"mappings":"AAAA,cAAc,SAAS,CAAC","sourcesContent":["export * from './enums';\n"]}
@@ -0,0 +1,2 @@
1
+ export * from './monthCalendar.module';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/calendar/modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,wBAAwB,CAAC","sourcesContent":["export * from './monthCalendar.module';\n"]}
@@ -0,0 +1,32 @@
1
+ import { NgModule } from '@angular/core';
2
+ import { CommonModule } from '@angular/common';
3
+ import { MonthCalendarComponent } from '../components';
4
+ import { CalendarDayTemplateDirective } from '../directives';
5
+ import * as i0 from "@angular/core";
6
+ /**
7
+ * Module used for calendar displaying month
8
+ */
9
+ export class MonthCalendarModule {
10
+ }
11
+ MonthCalendarModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: MonthCalendarModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
12
+ MonthCalendarModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: MonthCalendarModule, declarations: [MonthCalendarComponent,
13
+ CalendarDayTemplateDirective], imports: [CommonModule], exports: [MonthCalendarComponent,
14
+ CalendarDayTemplateDirective] });
15
+ MonthCalendarModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: MonthCalendarModule, imports: [CommonModule] });
16
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: MonthCalendarModule, decorators: [{
17
+ type: NgModule,
18
+ args: [{
19
+ imports: [
20
+ CommonModule,
21
+ ],
22
+ declarations: [
23
+ MonthCalendarComponent,
24
+ CalendarDayTemplateDirective,
25
+ ],
26
+ exports: [
27
+ MonthCalendarComponent,
28
+ CalendarDayTemplateDirective,
29
+ ],
30
+ }]
31
+ }] });
32
+ //# sourceMappingURL=monthCalendar.module.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"monthCalendar.module.js","sourceRoot":"","sources":["../../../../../src/modules/calendar/modules/monthCalendar.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AACvC,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAE7C,OAAO,EAAC,sBAAsB,EAAC,MAAM,eAAe,CAAC;AACrD,OAAO,EAAC,4BAA4B,EAAC,MAAM,eAAe,CAAC;;AAE3D;;GAEG;AAkBH,MAAM,OAAO,mBAAmB;;gHAAnB,mBAAmB;iHAAnB,mBAAmB,iBATxB,sBAAsB;QACtB,4BAA4B,aAL5B,YAAY,aASZ,sBAAsB;QACtB,4BAA4B;iHAGvB,mBAAmB,YAbxB,YAAY;2FAaP,mBAAmB;kBAjB/B,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,YAAY;qBACf;oBACD,YAAY,EACZ;wBACI,sBAAsB;wBACtB,4BAA4B;qBAC/B;oBACD,OAAO,EACP;wBACI,sBAAsB;wBACtB,4BAA4B;qBAC/B;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {MonthCalendarComponent} from '../components';\nimport {CalendarDayTemplateDirective} from '../directives';\n\n/**\n * Module used for calendar displaying month\n */\n@NgModule(\n{\n imports:\n [\n CommonModule,\n ],\n declarations:\n [\n MonthCalendarComponent,\n CalendarDayTemplateDirective,\n ],\n exports:\n [\n MonthCalendarComponent,\n CalendarDayTemplateDirective,\n ],\n})\nexport class MonthCalendarModule\n{\n}"]}
@@ -0,0 +1,75 @@
1
+ import { Inject, Injectable } from '@angular/core';
2
+ import { DATE_API } from '../../../../misc/tokens';
3
+ import * as i0 from "@angular/core";
4
+ /**
5
+ * Service used for parsing events into events to requested period
6
+ */
7
+ export class EventParser {
8
+ //######################### constructor #########################
9
+ constructor(dateApi) {
10
+ this.dateApi = dateApi;
11
+ }
12
+ //######################### public methods #########################
13
+ /**
14
+ * Gets events parsed per day
15
+ * @param events - Array of events to be parsed
16
+ */
17
+ getEventsPerDay(events) {
18
+ var _a, _b;
19
+ const eventsLocal = events.map(itm => {
20
+ return {
21
+ data: itm.data,
22
+ dateFrom: itm.dateFrom,
23
+ dateTo: itm.dateTo,
24
+ dateApiFrom: this.dateApi.getValue(itm.dateFrom),
25
+ dateApiTo: itm.dateTo ? this.dateApi.getValue(itm.dateTo) : null,
26
+ };
27
+ });
28
+ eventsLocal.sort((a, b) => {
29
+ if (a.dateApiFrom.isAfter(b.dateApiFrom.value)) {
30
+ return 1;
31
+ }
32
+ if (a.dateApiFrom.isBefore(b.dateApiFrom.value)) {
33
+ return -1;
34
+ }
35
+ return 0;
36
+ });
37
+ const result = [];
38
+ for (const event of eventsLocal) {
39
+ const workDate = event.dateApiFrom.clone().startOfDay();
40
+ const data = (_b = (_a = result.find(itm => workDate.isSameDay(itm[0]))) === null || _a === void 0 ? void 0 : _a[1]) !== null && _b !== void 0 ? _b : [];
41
+ const index = data.length;
42
+ do {
43
+ let data = result.find(itm => workDate.isSameDay(itm[0]));
44
+ if (!data) {
45
+ data = [workDate.value, []];
46
+ result.push(data);
47
+ }
48
+ const evnts = data[1];
49
+ evnts[index] =
50
+ {
51
+ data: event.data,
52
+ dateApiFrom: event.dateApiFrom,
53
+ dateApiTo: event.dateApiTo,
54
+ dateFrom: event.dateFrom,
55
+ dateTo: event.dateTo,
56
+ onGoingFrom: workDate.startOfDay().isAfter(event.dateApiFrom),
57
+ allDay: (workDate.isSame(event.dateApiFrom) || workDate.isAfter(event.dateApiFrom)) &&
58
+ !!event.dateApiTo && (workDate.endOfDay().isSame(event.dateApiTo) || workDate.isBefore(event.dateApiTo)),
59
+ onGoingTo: !!event.dateApiTo && workDate.isBefore(event.dateApiTo),
60
+ };
61
+ workDate.addDays(1).startOfDay();
62
+ } while (!!event.dateApiTo && (workDate.isBefore(event.dateApiTo) || workDate.isSameDay(event.dateApiTo)));
63
+ }
64
+ return result;
65
+ }
66
+ }
67
+ EventParser.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: EventParser, deps: [{ token: DATE_API }], target: i0.ɵɵFactoryTarget.Injectable });
68
+ EventParser.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: EventParser });
69
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: EventParser, decorators: [{
70
+ type: Injectable
71
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
72
+ type: Inject,
73
+ args: [DATE_API]
74
+ }] }]; } });
75
+ //# sourceMappingURL=eventParser.service.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"eventParser.service.js","sourceRoot":"","sources":["../../../../../../src/modules/cal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AAC,IAAI,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC;wBAChH,SAAS,EAAE,CAAC,CAAC,KAAK,CAAC,SAAS,IAAI,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC;qBACrE,CAAC;gBAEF,QAAQ,CAAC,OAAO,CAAC,CAAC,CAAC,CAAC,UAAU,EAAE,CAAC;aACpC,QACK,CAAC,CAAC,KAAK,CAAC,SAAS,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,SAAS,CAAC,IAAI,QAAQ,CAAC,SAAS,CAAC,KAAK,CAAC,SAAS,CAAC,CAAC,EAAE;SAC3G;QAED,OAAO,MAAM,CAAC;IAClB,CAAC;;wGAhFQ,WAAW,kBAGA,QAAQ;4GAHnB,WAAW;2FAAX,WAAW;kBADvB,UAAU;;0BAIM,MAAM;2BAAC,QAAQ","sourcesContent":["import {Inject, Injectable} from '@angular/core';\n\nimport {DATE_API} from '../../../../misc/tokens';\nimport {DateApi} from '../../../../services';\nimport {CalendarEventDayMetadata, EventData, ɵEventData} from '../../interfaces';\n\n/**\n * Service used for parsing events into events to requested period\n */\n@Injectable()\nexport class EventParser<TDate = unknown, TEvent = unknown>\n{\n //######################### constructor #########################\n constructor(@Inject(DATE_API) protected dateApi: DateApi<TDate>,)\n {\n }\n\n //######################### public methods #########################\n\n /**\n * Gets events parsed per day\n * @param events - Array of events to be parsed\n */\n public getEventsPerDay(events: EventData<TDate, TEvent>[]): [TDate, CalendarEventDayMetadata<TDate, TEvent>[]][]\n {\n const eventsLocal = events.map(itm =>\n {\n return <ɵEventData<TDate, TEvent>>\n {\n data: itm.data,\n dateFrom: itm.dateFrom,\n dateTo: itm.dateTo,\n dateApiFrom: this.dateApi.getValue(itm.dateFrom),\n dateApiTo: itm.dateTo ? this.dateApi.getValue(itm.dateTo) : null,\n };\n });\n\n eventsLocal.sort((a, b) =>\n {\n if(a.dateApiFrom.isAfter(b.dateApiFrom.value))\n {\n return 1;\n }\n\n if(a.dateApiFrom.isBefore(b.dateApiFrom.value))\n {\n return -1;\n }\n\n return 0;\n });\n\n const result: [TDate, CalendarEventDayMetadata<TDate, TEvent>[]][] = [];\n\n for(const event of eventsLocal)\n {\n const workDate = event.dateApiFrom.clone().startOfDay();\n const data: CalendarEventDayMetadata<TDate, TEvent>[] = result.find(itm => workDate.isSameDay(itm[0]))?.[1] ?? [];\n const index = data.length;\n\n do\n {\n let data: [TDate, CalendarEventDayMetadata<TDate, TEvent>[]]|undefined = result.find(itm => workDate.isSameDay(itm[0]));\n\n if(!data)\n {\n data = [workDate.value, []];\n result.push(data);\n }\n\n const evnts: CalendarEventDayMetadata<TDate, TEvent>[] = data[1];\n evnts[index] =\n {\n data: event.data,\n dateApiFrom: event.dateApiFrom,\n dateApiTo: event.dateApiTo,\n dateFrom: event.dateFrom,\n dateTo: event.dateTo,\n onGoingFrom: workDate.startOfDay().isAfter(event.dateApiFrom),\n allDay: (workDate.isSame(event.dateApiFrom) || workDate.isAfter(event.dateApiFrom)) &&\n !!event.dateApiTo && (workDate.endOfDay().isSame(event.dateApiTo) || workDate.isBefore(event.dateApiTo)),\n onGoingTo: !!event.dateApiTo && workDate.isBefore(event.dateApiTo),\n };\n \n workDate.addDays(1).startOfDay();\n }\n while(!!event.dateApiTo && (workDate.isBefore(event.dateApiTo) || workDate.isSameDay(event.dateApiTo)));\n }\n\n return result;\n }\n}"]}
@@ -0,0 +1,2 @@
1
+ export * from './eventParser/eventParser.service';
2
+ //# sourceMappingURL=index.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/calendar/services/index.ts"],"names":[],"mappings":"AAAA,cAAc,mCAAmC,CAAC","sourcesContent":["export * from './eventParser/eventParser.service';\n"]}
@@ -7,12 +7,12 @@ import * as i0 from "@angular/core";
7
7
  */
8
8
  export class DatePipesModule {
9
9
  }
10
- DatePipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DatePipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
11
- DatePipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.6", ngImport: i0, type: DatePipesModule, declarations: [DateFormatPipe,
10
+ DatePipesModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DatePipesModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
11
+ DatePipesModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: DatePipesModule, declarations: [DateFormatPipe,
12
12
  DateConvertPipe], exports: [DateFormatPipe,
13
13
  DateConvertPipe] });
14
- DatePipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DatePipesModule });
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DatePipesModule, decorators: [{
14
+ DatePipesModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DatePipesModule });
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DatePipesModule, decorators: [{
16
16
  type: NgModule,
17
17
  args: [{
18
18
  declarations: [
@@ -10,7 +10,7 @@ import * as i0 from "@angular/core";
10
10
  /**
11
11
  * Directive that holds shared data for date time, like formats, restrictions
12
12
  */
13
- export class DateTimeDirective {
13
+ export class DateTimeSADirective {
14
14
  constructor() {
15
15
  //######################### protected properties #########################
16
16
  /**
@@ -200,24 +200,25 @@ export class DateTimeDirective {
200
200
  onMinDateTimeChange() {
201
201
  }
202
202
  }
203
- DateTimeDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimeDirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
204
- DateTimeDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.6", type: DateTimeDirective, selector: "[dateTime]", inputs: { valueFormat: "valueFormat", format: "format", customFormat: "customFormat", maxDateTime: "maxDateTime", minDateTime: "minDateTime" }, ngImport: i0 });
203
+ DateTimeSADirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DateTimeSADirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
204
+ DateTimeSADirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: DateTimeSADirective, isStandalone: true, selector: "[dateTime]", inputs: { valueFormat: "valueFormat", format: "format", customFormat: "customFormat", maxDateTime: "maxDateTime", minDateTime: "minDateTime" }, ngImport: i0 });
205
205
  __decorate([
206
206
  BindThis,
207
207
  __metadata("design:type", Function),
208
208
  __metadata("design:paramtypes", [Object]),
209
209
  __metadata("design:returntype", void 0)
210
- ], DateTimeDirective.prototype, "minDateSet", null);
210
+ ], DateTimeSADirective.prototype, "minDateSet", null);
211
211
  __decorate([
212
212
  BindThis,
213
213
  __metadata("design:type", Function),
214
214
  __metadata("design:paramtypes", [Object]),
215
215
  __metadata("design:returntype", void 0)
216
- ], DateTimeDirective.prototype, "maxDateSet", null);
217
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimeDirective, decorators: [{
216
+ ], DateTimeSADirective.prototype, "maxDateSet", null);
217
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DateTimeSADirective, decorators: [{
218
218
  type: Directive,
219
219
  args: [{
220
- selector: '[dateTime]'
220
+ selector: '[dateTime]',
221
+ standalone: true,
221
222
  }]
222
223
  }], propDecorators: { valueFormat: [{
223
224
  type: Input
@@ -1 +1 @@
1
- {"version":3,"file":"dateTime.directive.js","sourceRoot":"","sources":["../../../../../../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AAC;IAED;;OAEG;IACO,mBAAmB;IAE7B,CAAC;;8GAnSQ,iBAAiB;kGAAjB,iBAAiB;;IAgPzB,QAAQ;;;;mDAMR;;IAMA,QAAQ;;;;mDAMR;2FAlQQ,iBAAiB;kBAJ7B,SAAS;mBACV;oBACI,QAAQ,EAAE,YAAY;iBACzB;8BA+Ec,WAAW;sBADrB,KAAK;gBAqBK,MAAM;sBADhB,KAAK;gBAeC,YAAY;sBADlB,KAAK;gBAOK,WAAW;sBADrB,KAAK;gBAsDK,WAAW;sBADrB,KAAK;gBAuEI,UAAU,MAYV,UAAU","sourcesContent":["import {Directive, inject, Input, OnDestroy} from '@angular/core';\nimport {Action1, BindThis, isBlank, isString} from '@jscrpt/common';\nimport {Observable, Subject, Subscription} from 'rxjs';\n\nimport {FormatProvider} from '../../../../interfaces';\nimport {DateTimeValueFormat} from '../../../../misc/enums';\nimport {DATE_API, FORMAT_PROVIDER} from '../../../../misc/tokens';\nimport {DateTimeInputOutputValue} from '../../../../misc/types';\nimport {getSingleDateTimeValue} from '../../../../misc/utils';\nimport {DateApi, DateValue} from '../../../../services';\nimport {DateTimeBase} from '../dateTimeBase';\n\n/**\n * Directive that holds shared data for date time, like formats, restrictions\n */\n@Directive(\n{\n selector: '[dateTime]'\n})\nexport class DateTimeDirective<TDate = unknown> implements OnDestroy\n{\n //######################### protected properties #########################\n\n /**\n * Subject used for emitting changes in max date time value\n */\n protected maxDateTimeChangesSubject: Subject<void> = new Subject<void>();\n\n /**\n * Subject used for emitting changes in min date time value\n */\n protected minDateTimeChangesSubject: Subject<void> = new Subject<void>();\n\n /**\n * Subscription for max date instance value changes\n */\n protected maxDateInstanceChange: Subscription|undefined|null;\n\n /**\n * Subscription for min date instance value changes\n */\n protected minDateInstanceChange: Subscription|undefined|null;\n\n /**\n * Max allowed value of date time\n */\n protected ɵMaxDateTime: TDate|undefined|null;\n\n /**\n * Min allowed value of date time\n */\n protected ɵMinDateTime: TDate|undefined|null;\n\n /**\n * Date time value format which is being worked with in this date time\n */\n protected ɵValueFormat: DateTimeValueFormat = DateTimeValueFormat.DateInstance;\n\n /**\n * Format of string representation of date\n */\n protected ɵFormat: keyof FormatProvider = 'date';\n\n /**\n * Date api instance, used for date time manipulation\n */\n protected dateApi: DateApi<TDate> = inject(DATE_API);\n\n /**\n * Provider for available formats\n */\n protected formatProvider: FormatProvider = inject(FORMAT_PROVIDER);\n\n //######################### public properties #########################\n\n /**\n * Occurs when there are changes in max date time value\n */\n public get maxDateTimeChanges(): Observable<void>\n {\n return this.maxDateTimeChangesSubject.asObservable();\n }\n\n /**\n * Occurs when there are changes in min date time value\n */\n public get minDateTimeChanges(): Observable<void>\n {\n return this.minDateTimeChangesSubject.asObservable();\n }\n\n //######################### public properties - inputs #########################\n\n /**\n * Gets or sets date time value format which is being worked with in this date time\n */\n @Input()\n public get valueFormat(): DateTimeValueFormat\n {\n return this.ɵValueFormat;\n }\n public set valueFormat(value: DateTimeValueFormat)\n {\n if(isString(value))\n {\n this.ɵValueFormat = DateTimeValueFormat[value] as unknown as DateTimeValueFormat;\n\n return;\n }\n\n this.ɵValueFormat = value;\n }\n\n /**\n * Gets or sets format of string representation of date\n */\n @Input()\n public get format(): keyof FormatProvider\n {\n return this.ɵFormat;\n }\n public set format(value: keyof FormatProvider)\n {\n this.ɵFormat = value;\n this.customFormat = this.dateApi.getFormat(this.formatProvider[value]);\n }\n\n /**\n * Custom format string representation of date\n */\n @Input()\n public customFormat: string = this.dateApi.getFormat(this.formatProvider[this.ɵFormat]);\n\n /**\n * Gets or sets max allowed date for date time\n */\n @Input()\n public get maxDateTime(): TDate|undefined|null\n {\n return this.ɵMaxDateTime;\n }\n public set maxDateTime(value: TDate|undefined|null)\n {\n this.maxDateInstanceChange?.unsubscribe();\n this.maxDateInstanceChange = null;\n\n if(isBlank(value))\n {\n this.maxDateSet(value);\n\n return;\n }\n\n let val: DateTimeInputOutputValue<TDate> = value;\n\n if(value instanceof DateTimeBase<TDate>)\n {\n this.maxDateInstanceChange = value.valueChange.subscribe(() =>\n {\n const val = getSingleDateTimeValue<TDate>(value.value);\n\n if(isBlank(val))\n {\n this.maxDateSet(null);\n\n return;\n }\n\n this.setMinMaxValue(val, this.maxDateSet);\n });\n\n const v = getSingleDateTimeValue<TDate>(value.value);\n\n if(isBlank(v))\n {\n this.maxDateSet(null);\n\n return;\n }\n\n val = v;\n }\n \n this.setMinMaxValue(val, this.maxDateSet);\n }\n\n /**\n * Gets or sets min allowed date for date time\n */\n @Input()\n public get minDateTime(): TDate|undefined|null\n {\n return this.ɵMinDateTime;\n }\n public set minDateTime(value: TDate|undefined|null)\n {\n this.minDateInstanceChange?.unsubscribe();\n this.minDateInstanceChange = null;\n\n if(isBlank(value))\n {\n this.minDateSet(value);\n\n return;\n }\n\n let val: DateTimeInputOutputValue<TDate> = value;\n\n if(value instanceof DateTimeBase<TDate>)\n {\n this.minDateInstanceChange = value.valueChange.subscribe(() =>\n {\n const val = getSingleDateTimeValue<TDate>(value.value);\n\n if(isBlank(val))\n {\n this.minDateSet(null);\n\n return;\n }\n\n this.setMinMaxValue(val, this.minDateSet);\n });\n\n const v = getSingleDateTimeValue<TDate>(value.value);\n\n if(isBlank(v))\n {\n this.minDateSet(null);\n\n return;\n }\n\n val = v;\n }\n\n this.setMinMaxValue(val, this.minDateSet);\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n \n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n this.maxDateInstanceChange?.unsubscribe();\n this.maxDateInstanceChange = null;\n\n this.minDateInstanceChange?.unsubscribe();\n this.minDateInstanceChange = null;\n }\n\n //######################### protected methods #########################\n\n /**\n * Sets min date time and notifies about changes\n * @param value - Value to be set\n */\n @BindThis\n protected minDateSet(value: TDate|undefined|null): void\n {\n this.ɵMinDateTime = value;\n this.minDateTimeChangesSubject.next();\n this.onMinDateTimeChange();\n }\n\n /**\n * Sets max date time and notifies about changes\n * @param value - Value to be set\n */\n @BindThis\n protected maxDateSet(value: TDate|undefined|null): void\n {\n this.ɵMaxDateTime = value;\n this.maxDateTimeChangesSubject.next();\n this.onMaxDateTimeChange();\n }\n\n /**\n * Sets min or max date time value\n * @param value - Value to be set\n * @param setter - Action used for setting value\n */\n protected setMinMaxValue(value: DateValue|TDate, setter: Action1<TDate|undefined|null>): void\n {\n const val = this.dateApi.getValue(value, this.customFormat);\n\n if(val.isValid())\n {\n setter(val.value);\n }\n else\n {\n setter(null);\n }\n }\n\n /**\n * Called whenever max date time restriction changes\n */\n protected onMaxDateTimeChange(): void\n {\n }\n\n /**\n * Called whenever min date time restriction changes\n */\n protected onMinDateTimeChange(): void\n {\n }\n\n //######################### ng language server #########################\n \n /**\n * Custom input type for `valueFormat` input\n */\n public static ngAcceptInputType_valueFormat: keyof typeof DateTimeValueFormat|DateTimeValueFormat;\n\n /**\n * Custom input type for `maxDateTime` input\n */\n public static ngAcceptInputType_maxDateTime: DateValue|DateTimeBase;\n\n /**\n * Custom input type for `minDateTime` input\n */\n public static ngAcceptInputType_minDateTime: DateValue|DateTimeBase;\n}"]}
1
+ {"version":3,"file":"dateTime.directive.js","sourceRoot":"","sources":["../../../../../../src/modules/dateTime/directives/dateTime/dateTime.directive.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,SAAS,EAAE,MAAM,EAAE,KAAK,EAAY,MAAM,eAAe,CAAC;AAClE,OAAO,EAAU,QAAQ,EAAE,OAAO,EAAE,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AACpE,OAAO,EAAa,OAAO,EAAe,MAAM,MAAM,CAAC;AAGvD,OAAO,EAAC,mBAAmB,EAAC,MAAM,wBAAwB,CAAC;AAC3D,OAAO,EAAC,QAAQ,EAAE,eAAe,EAAC,MAAM,yBAAyB,CAAC;AAElE,OAAO,EAAC,sBAAsB,EAAC,MAAM,wBAAwB,CAAC;AAE9D,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;;AAE7C;;GAEG;AAMH,MAAM,OAAO,mBAAmB;IALhC;QAOI,0EAA0E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;IAEO,UAAU,CAAC,KAA2B;QAE5C,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC1B,IAAI,CAAC,yBAAyB,CAAC,IAAI,EAAE,CAAC;QACtC,IAAI,CAAC,mBAAmB,EAAE,CAAC;IAC/B,CAAC;IAED;;;OAGG;IAEO,UAAU,CAAC,KAA2B;QAE5C,IAAI,CAAC,YAAY,GAAG,KAAK,CAAC;QAC1B,IAAI,CAAC,yBAAyB,CAAC,IAAI,EAAE,CAAC;QACtC,IAAI,CAAC,mBAAmB,EAAE,CAAC;IAC/B,CAAC;IAED;;;;OAIG;IACO,cAAc,CAAC,KAAsB,EAAE,MAAqC;QAElF,MAAM,GAAG,GAAG,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,KAAK,EAAE,IAAI,CAAC,YAAY,CAAC,CAAC;QAE5D,IAAG,GAAG,CAAC,OAAO,EAAE,EAChB;YACI,MAAM,CAAC,GAAG,CAAC,KAAK,CAAC,CAAC;SACrB;aAED;YACI,MAAM,CAAC,IAAI,CAAC,CAAC;SAChB;IACL,CAAC;IAED;;OAEG;IACO,mBAAmB;IAE7B,CAAC;IAED;;OAEG;IACO,mBAAmB;IAE7B,CAAC;;gHAnSQ,mBAAmB;oGAAnB,mBAAmB;AAgP5B;IAAC,QAAQ;;;;qDAMR;AAMD;IAAC,QAAQ;;;;qDAMR;2FAlQQ,mBAAmB;kBAL/B,SAAS;mBACV;oBACI,QAAQ,EAAE,YAAY;oBACtB,UAAU,EAAE,IAAI;iBACnB;8BA+Ec,WAAW;sBADrB,KAAK;gBAqBK,MAAM;sBADhB,KAAK;gBAeC,YAAY;sBADlB,KAAK;gBAOK,WAAW;sBADrB,KAAK;gBAsDK,WAAW;sBADrB,KAAK;gBAuEI,UAAU,MAYV,UAAU","sourcesContent":["import {Directive, inject, Input, OnDestroy} from '@angular/core';\nimport {Action1, BindThis, isBlank, isString} from '@jscrpt/common';\nimport {Observable, Subject, Subscription} from 'rxjs';\n\nimport {FormatProvider} from '../../../../interfaces';\nimport {DateTimeValueFormat} from '../../../../misc/enums';\nimport {DATE_API, FORMAT_PROVIDER} from '../../../../misc/tokens';\nimport {DateTimeInputOutputValue} from '../../../../misc/types';\nimport {getSingleDateTimeValue} from '../../../../misc/utils';\nimport {DateApi, DateValue} from '../../../../services';\nimport {DateTimeBase} from '../dateTimeBase';\n\n/**\n * Directive that holds shared data for date time, like formats, restrictions\n */\n@Directive(\n{\n selector: '[dateTime]',\n standalone: true,\n})\nexport class DateTimeSADirective<TDate = unknown> implements OnDestroy\n{\n //######################### protected properties #########################\n\n /**\n * Subject used for emitting changes in max date time value\n */\n protected maxDateTimeChangesSubject: Subject<void> = new Subject<void>();\n\n /**\n * Subject used for emitting changes in min date time value\n */\n protected minDateTimeChangesSubject: Subject<void> = new Subject<void>();\n\n /**\n * Subscription for max date instance value changes\n */\n protected maxDateInstanceChange: Subscription|undefined|null;\n\n /**\n * Subscription for min date instance value changes\n */\n protected minDateInstanceChange: Subscription|undefined|null;\n\n /**\n * Max allowed value of date time\n */\n protected ɵMaxDateTime: TDate|undefined|null;\n\n /**\n * Min allowed value of date time\n */\n protected ɵMinDateTime: TDate|undefined|null;\n\n /**\n * Date time value format which is being worked with in this date time\n */\n protected ɵValueFormat: DateTimeValueFormat = DateTimeValueFormat.DateInstance;\n\n /**\n * Format of string representation of date\n */\n protected ɵFormat: keyof FormatProvider = 'date';\n\n /**\n * Date api instance, used for date time manipulation\n */\n protected dateApi: DateApi<TDate> = inject(DATE_API) as DateApi<TDate>;\n\n /**\n * Provider for available formats\n */\n protected formatProvider: FormatProvider = inject(FORMAT_PROVIDER);\n\n //######################### public properties #########################\n\n /**\n * Occurs when there are changes in max date time value\n */\n public get maxDateTimeChanges(): Observable<void>\n {\n return this.maxDateTimeChangesSubject.asObservable();\n }\n\n /**\n * Occurs when there are changes in min date time value\n */\n public get minDateTimeChanges(): Observable<void>\n {\n return this.minDateTimeChangesSubject.asObservable();\n }\n\n //######################### public properties - inputs #########################\n\n /**\n * Gets or sets date time value format which is being worked with in this date time\n */\n @Input()\n public get valueFormat(): DateTimeValueFormat\n {\n return this.ɵValueFormat;\n }\n public set valueFormat(value: DateTimeValueFormat)\n {\n if(isString(value))\n {\n this.ɵValueFormat = DateTimeValueFormat[value] as unknown as DateTimeValueFormat;\n\n return;\n }\n\n this.ɵValueFormat = value;\n }\n\n /**\n * Gets or sets format of string representation of date\n */\n @Input()\n public get format(): keyof FormatProvider\n {\n return this.ɵFormat;\n }\n public set format(value: keyof FormatProvider)\n {\n this.ɵFormat = value;\n this.customFormat = this.dateApi.getFormat(this.formatProvider[value]);\n }\n\n /**\n * Custom format string representation of date\n */\n @Input()\n public customFormat: string = this.dateApi.getFormat(this.formatProvider[this.ɵFormat]);\n\n /**\n * Gets or sets max allowed date for date time\n */\n @Input()\n public get maxDateTime(): TDate|undefined|null\n {\n return this.ɵMaxDateTime;\n }\n public set maxDateTime(value: TDate|undefined|null)\n {\n this.maxDateInstanceChange?.unsubscribe();\n this.maxDateInstanceChange = null;\n\n if(isBlank(value))\n {\n this.maxDateSet(value);\n\n return;\n }\n\n let val: DateTimeInputOutputValue<TDate> = value;\n\n if(value instanceof DateTimeBase<TDate>)\n {\n this.maxDateInstanceChange = value.valueChange.subscribe(() =>\n {\n const val = getSingleDateTimeValue<TDate>(value.value);\n\n if(isBlank(val))\n {\n this.maxDateSet(null);\n\n return;\n }\n\n this.setMinMaxValue(val, this.maxDateSet);\n });\n\n const v = getSingleDateTimeValue<TDate>(value.value);\n\n if(isBlank(v))\n {\n this.maxDateSet(null);\n\n return;\n }\n\n val = v;\n }\n \n this.setMinMaxValue(val, this.maxDateSet);\n }\n\n /**\n * Gets or sets min allowed date for date time\n */\n @Input()\n public get minDateTime(): TDate|undefined|null\n {\n return this.ɵMinDateTime;\n }\n public set minDateTime(value: TDate|undefined|null)\n {\n this.minDateInstanceChange?.unsubscribe();\n this.minDateInstanceChange = null;\n\n if(isBlank(value))\n {\n this.minDateSet(value);\n\n return;\n }\n\n let val: DateTimeInputOutputValue<TDate> = value;\n\n if(value instanceof DateTimeBase<TDate>)\n {\n this.minDateInstanceChange = value.valueChange.subscribe(() =>\n {\n const val = getSingleDateTimeValue<TDate>(value.value);\n\n if(isBlank(val))\n {\n this.minDateSet(null);\n\n return;\n }\n\n this.setMinMaxValue(val, this.minDateSet);\n });\n\n const v = getSingleDateTimeValue<TDate>(value.value);\n\n if(isBlank(v))\n {\n this.minDateSet(null);\n\n return;\n }\n\n val = v;\n }\n\n this.setMinMaxValue(val, this.minDateSet);\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n \n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n this.maxDateInstanceChange?.unsubscribe();\n this.maxDateInstanceChange = null;\n\n this.minDateInstanceChange?.unsubscribe();\n this.minDateInstanceChange = null;\n }\n\n //######################### protected methods #########################\n\n /**\n * Sets min date time and notifies about changes\n * @param value - Value to be set\n */\n @BindThis\n protected minDateSet(value: TDate|undefined|null): void\n {\n this.ɵMinDateTime = value;\n this.minDateTimeChangesSubject.next();\n this.onMinDateTimeChange();\n }\n\n /**\n * Sets max date time and notifies about changes\n * @param value - Value to be set\n */\n @BindThis\n protected maxDateSet(value: TDate|undefined|null): void\n {\n this.ɵMaxDateTime = value;\n this.maxDateTimeChangesSubject.next();\n this.onMaxDateTimeChange();\n }\n\n /**\n * Sets min or max date time value\n * @param value - Value to be set\n * @param setter - Action used for setting value\n */\n protected setMinMaxValue(value: DateValue|TDate, setter: Action1<TDate|undefined|null>): void\n {\n const val = this.dateApi.getValue(value, this.customFormat);\n\n if(val.isValid())\n {\n setter(val.value);\n }\n else\n {\n setter(null);\n }\n }\n\n /**\n * Called whenever max date time restriction changes\n */\n protected onMaxDateTimeChange(): void\n {\n }\n\n /**\n * Called whenever min date time restriction changes\n */\n protected onMinDateTimeChange(): void\n {\n }\n\n //######################### ng language server #########################\n \n /**\n * Custom input type for `valueFormat` input\n */\n public static ngAcceptInputType_valueFormat: keyof typeof DateTimeValueFormat|DateTimeValueFormat;\n\n /**\n * Custom input type for `maxDateTime` input\n */\n public static ngAcceptInputType_maxDateTime: DateValue|DateTimeBase;\n\n /**\n * Custom input type for `minDateTime` input\n */\n public static ngAcceptInputType_minDateTime: DateValue|DateTimeBase;\n}"]}
@@ -1,6 +1,6 @@
1
1
  import { Directive, EventEmitter, inject } from '@angular/core';
2
2
  import { Subscription } from 'rxjs';
3
- import { DateTimeDirective } from './dateTime/dateTime.directive';
3
+ import { DateTimeSADirective } from './dateTime/dateTime.directive';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
6
  * Base class for date time directives, contains basic shared data
@@ -16,7 +16,7 @@ export class DateTimeBase {
16
16
  /**
17
17
  * Instance of date time shared data, like formats and restrictions
18
18
  */
19
- this.dateTimeData = inject((DateTimeDirective));
19
+ this.dateTimeData = inject((DateTimeSADirective));
20
20
  /**
21
21
  * @inheritdoc
22
22
  */
@@ -53,9 +53,9 @@ export class DateTimeBase {
53
53
  onMinDateTimeChange() {
54
54
  }
55
55
  }
56
- DateTimeBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimeBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
57
- DateTimeBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.6", type: DateTimeBase, ngImport: i0 });
58
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimeBase, decorators: [{
56
+ DateTimeBase.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DateTimeBase, deps: [], target: i0.ɵɵFactoryTarget.Directive });
57
+ DateTimeBase.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: DateTimeBase, ngImport: i0 });
58
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DateTimeBase, decorators: [{
59
59
  type: Directive
60
60
  }], ctorParameters: function () { return []; } });
61
61
  //# sourceMappingURL=dateTimeBase.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"dateTimeBase.js","sourceRoot":"","sources":["../../../../../src/modules/dateTime/directives/dateTimeBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,YAAY,EAAE,MAAM,EAAY,MAAM,eAAe,CAAC;AACzE,OAAO,EAAC,YAAY,EAAC,MAAM,MAAM,CAAC;AAIlC,OAAO,EAAC,iBAAiB,EAAC,MAAM,+BAA+B,CAAC;;AAEhE;;GAEG;AAEH,MAAM,OAAO,YAAY;IAsCrB,iEAAiE;IACjE;QArCA,0EAA0E;QAE1E;;WAEG;QACO,sBAAiB,GAAiB,IAAI,YAAY,EAAE,CAAC;QAO/D;;WAEG;QACO,iBAAY,GAA6B,MAAM,CAAC,CAAA,iBAAwB,CAAA,CAAC,CAAC;QAgBpF;;WAEG;QACI,gBAAW,GAAuB,IAAI,YAAY,EAAQ,CAAC;QAK9D,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC,CAAC,CAAC;QAC7G,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC,CAAC,CAAC;IACjH,CAAC;IAxBD,8GAA8G;IAE9G;;OAEG;IACH,IAAW,KAAK;QAEZ,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IACD,IAAW,KAAK,CAAC,KAAqD;QAElE,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACxB,CAAC;IAcD,kGAAkG;IAElG;;OAEG;IACI,WAAW;QAEd,IAAI,CAAC,iBAAiB,CAAC,WAAW,EAAE,CAAC;IACzC,CAAC;IAED,uEAAuE;IAEvE;;OAEG;IACO,mBAAmB;IAE7B,CAAC;IAED;;OAEG;IACO,mBAAmB;IAE7B,CAAC;;yGArEQ,YAAY;6FAAZ,YAAY;2FAAZ,YAAY;kBADxB,SAAS","sourcesContent":["import {Directive, EventEmitter, inject, OnDestroy} from '@angular/core';\nimport {Subscription} from 'rxjs';\n\nimport {DateTimeInputValue} from '../../../interfaces';\nimport {DateTimeInputOutputValue} from '../../../misc/types';\nimport {DateTimeDirective} from './dateTime/dateTime.directive';\n\n/**\n * Base class for date time directives, contains basic shared data\n */\n@Directive()\nexport class DateTimeBase<TDate = unknown> implements DateTimeInputValue<TDate>, OnDestroy\n{\n //######################### protected properties #########################\n\n /**\n * Subscriptions created during initialization\n */\n protected initSubscriptions: Subscription = new Subscription();\n\n /**\n * Current value of date time, could be string, unix timestamp, Date, TDate object, or ranged DateTimeValue\n */\n protected ɵValue: DateTimeInputOutputValue<TDate>|undefined|null;\n\n /**\n * Instance of date time shared data, like formats and restrictions\n */\n protected dateTimeData: DateTimeDirective<TDate> = inject(DateTimeDirective<TDate>);\n\n //######################### public properties - implementation of DateTimeInputValue #########################\n\n /**\n * @inheritdoc\n */\n public get value(): DateTimeInputOutputValue<TDate>|undefined|null\n {\n return this.ɵValue;\n }\n public set value(value: DateTimeInputOutputValue<TDate>|undefined|null)\n {\n this.ɵValue = value;\n }\n\n /**\n * @inheritdoc\n */\n public valueChange: EventEmitter<void> = new EventEmitter<void>();\n\n //######################### constructor #########################\n constructor()\n {\n this.initSubscriptions.add(this.dateTimeData.maxDateTimeChanges.subscribe(() => this.onMaxDateTimeChange()));\n this.initSubscriptions.add(this.dateTimeData.minDateTimeChanges.subscribe(() => this.onMinDateTimeChange()));\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n \n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n this.initSubscriptions.unsubscribe();\n }\n\n //######################### protected methods #########################\n\n /**\n * Called whenever max date time restriction changes\n */\n protected onMaxDateTimeChange(): void\n {\n }\n\n /**\n * Called whenever min date time restriction changes\n */\n protected onMinDateTimeChange(): void\n {\n }\n}\n"]}
1
+ {"version":3,"file":"dateTimeBase.js","sourceRoot":"","sources":["../../../../../src/modules/dateTime/directives/dateTimeBase.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,YAAY,EAAE,MAAM,EAAY,MAAM,eAAe,CAAC;AACzE,OAAO,EAAC,YAAY,EAAC,MAAM,MAAM,CAAC;AAIlC,OAAO,EAAC,mBAAmB,EAAC,MAAM,+BAA+B,CAAC;;AAElE;;GAEG;AAEH,MAAM,OAAO,YAAY;IAsCrB,iEAAiE;IACjE;QArCA,0EAA0E;QAE1E;;WAEG;QACO,sBAAiB,GAAiB,IAAI,YAAY,EAAE,CAAC;QAO/D;;WAEG;QACO,iBAAY,GAA+B,MAAM,CAAC,CAAA,mBAA0B,CAAA,CAAC,CAAC;QAgBxF;;WAEG;QACI,gBAAW,GAAuB,IAAI,YAAY,EAAQ,CAAC;QAK9D,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC,CAAC,CAAC;QAC7G,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,YAAY,CAAC,kBAAkB,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,mBAAmB,EAAE,CAAC,CAAC,CAAC;IACjH,CAAC;IAxBD,8GAA8G;IAE9G;;OAEG;IACH,IAAW,KAAK;QAEZ,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IACD,IAAW,KAAK,CAAC,KAAqD;QAElE,IAAI,CAAC,MAAM,GAAG,KAAK,CAAC;IACxB,CAAC;IAcD,kGAAkG;IAElG;;OAEG;IACI,WAAW;QAEd,IAAI,CAAC,iBAAiB,CAAC,WAAW,EAAE,CAAC;IACzC,CAAC;IAED,uEAAuE;IAEvE;;OAEG;IACO,mBAAmB;IAE7B,CAAC;IAED;;OAEG;IACO,mBAAmB;IAE7B,CAAC;;yGArEQ,YAAY;6FAAZ,YAAY;2FAAZ,YAAY;kBADxB,SAAS","sourcesContent":["import {Directive, EventEmitter, inject, OnDestroy} from '@angular/core';\nimport {Subscription} from 'rxjs';\n\nimport {DateTimeInputValue} from '../../../interfaces';\nimport {DateTimeInputOutputValue} from '../../../misc/types';\nimport {DateTimeSADirective} from './dateTime/dateTime.directive';\n\n/**\n * Base class for date time directives, contains basic shared data\n */\n@Directive()\nexport class DateTimeBase<TDate = unknown> implements DateTimeInputValue<TDate>, OnDestroy\n{\n //######################### protected properties #########################\n\n /**\n * Subscriptions created during initialization\n */\n protected initSubscriptions: Subscription = new Subscription();\n\n /**\n * Current value of date time, could be string, unix timestamp, Date, TDate object, or ranged DateTimeValue\n */\n protected ɵValue: DateTimeInputOutputValue<TDate>|undefined|null;\n\n /**\n * Instance of date time shared data, like formats and restrictions\n */\n protected dateTimeData: DateTimeSADirective<TDate> = inject(DateTimeSADirective<TDate>);\n\n //######################### public properties - implementation of DateTimeInputValue #########################\n\n /**\n * @inheritdoc\n */\n public get value(): DateTimeInputOutputValue<TDate>|undefined|null\n {\n return this.ɵValue;\n }\n public set value(value: DateTimeInputOutputValue<TDate>|undefined|null)\n {\n this.ɵValue = value;\n }\n\n /**\n * @inheritdoc\n */\n public valueChange: EventEmitter<void> = new EventEmitter<void>();\n\n //######################### constructor #########################\n constructor()\n {\n this.initSubscriptions.add(this.dateTimeData.maxDateTimeChanges.subscribe(() => this.onMaxDateTimeChange()));\n this.initSubscriptions.add(this.dateTimeData.minDateTimeChanges.subscribe(() => this.onMinDateTimeChange()));\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n \n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n this.initSubscriptions.unsubscribe();\n }\n\n //######################### protected methods #########################\n\n /**\n * Called whenever max date time restriction changes\n */\n protected onMaxDateTimeChange(): void\n {\n }\n\n /**\n * Called whenever min date time restriction changes\n */\n protected onMinDateTimeChange(): void\n {\n }\n}\n"]}
@@ -6,7 +6,7 @@ import * as i0 from "@angular/core";
6
6
  /**
7
7
  * Control value accessor that is used for getting and setting value for date time
8
8
  */
9
- export class DateTimeControlValueAccessorDirective {
9
+ export class DateTimeControlValueAccessorSADirective {
10
10
  //######################### constructor #########################
11
11
  constructor(input) {
12
12
  this.input = input;
@@ -49,25 +49,26 @@ export class DateTimeControlValueAccessorDirective {
49
49
  this.input.disabled = isDisabled;
50
50
  }
51
51
  }
52
- DateTimeControlValueAccessorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimeControlValueAccessorDirective, deps: [{ token: DATE_TIME_INPUT }], target: i0.ɵɵFactoryTarget.Directive });
53
- DateTimeControlValueAccessorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.6", type: DateTimeControlValueAccessorDirective, selector: "[dateTime][formControlName],[dateTime][formControl],[dateTime][ngModel]", providers: [
52
+ DateTimeControlValueAccessorSADirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DateTimeControlValueAccessorSADirective, deps: [{ token: DATE_TIME_INPUT }], target: i0.ɵɵFactoryTarget.Directive });
53
+ DateTimeControlValueAccessorSADirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: DateTimeControlValueAccessorSADirective, isStandalone: true, selector: "[dateTime][formControlName],[dateTime][formControl],[dateTime][ngModel]", providers: [
54
54
  {
55
55
  provide: NG_VALUE_ACCESSOR,
56
- useExisting: forwardRef(() => DateTimeControlValueAccessorDirective),
56
+ useExisting: forwardRef(() => DateTimeControlValueAccessorSADirective),
57
57
  multi: true,
58
58
  },
59
59
  ], ngImport: i0 });
60
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimeControlValueAccessorDirective, decorators: [{
60
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DateTimeControlValueAccessorSADirective, decorators: [{
61
61
  type: Directive,
62
62
  args: [{
63
63
  selector: '[dateTime][formControlName],[dateTime][formControl],[dateTime][ngModel]',
64
64
  providers: [
65
65
  {
66
66
  provide: NG_VALUE_ACCESSOR,
67
- useExisting: forwardRef(() => DateTimeControlValueAccessorDirective),
67
+ useExisting: forwardRef(() => DateTimeControlValueAccessorSADirective),
68
68
  multi: true,
69
69
  },
70
70
  ],
71
+ standalone: true,
71
72
  }]
72
73
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
73
74
  type: Inject,
@@ -1 +1 @@
1
- {"version":3,"file":"dateTimeControlValueAccessor.directive.js","sourceRoot":"","sources":["../../../../../../src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAoB,UAAU,EAAE,MAAM,EAAY,MAAM,eAAe,CAAC;AACzF,OAAO,EAAuB,iBAAiB,EAAC,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAAC,YAAY,EAAC,MAAM,MAAM,CAAC;AAGlC,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;;AAGxD;;GAEG;AAcH,MAAM,OAAO,qCAAqC;IAS9C,iEAAiE;IACjE,YAA+C,KAA2B;QAA3B,UAAK,GAAL,KAAK,CAAsB;QAR1E,0EAA0E;QAE1E;;WAEG;QACO,sBAAiB,GAAiB,IAAI,YAAY,EAAE,CAAC;IAK/D,CAAC;IAED,kGAAkG;IAElG;;OAEG;IACI,WAAW;QAEd,IAAI,CAAC,iBAAiB,CAAC,WAAW,EAAE,CAAC;IACzC,CAAC;IAED,6GAA6G;IAE7G;;OAEG;IACI,UAAU,CAAC,KAAqD;QAEnE,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC;IAC7B,CAAC;IAED;;OAEG;IACI,gBAAgB,CAAC,EAAkE;QAEtF,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,EAAE,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,CAAC,CAAC,CAAC;IAC7F,CAAC;IAED;;OAEG;IACI,iBAAiB,CAAC,EAAc;QAEnC,IAAI,CAAC,iBAAiB,CAAC,GAAG,CAAC,IAAI,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE,CAAC,EAAE,EAAE,CAAC,CAAC,CAAC;IACvE,CAAC;IAED;;OAEG;IACI,gBAAgB,CAAC,UAAmB;QAEvC,IAAI,CAAC,KAAK,CAAC,QAAQ,GAAG,UAAU,CAAC;IACrC,CAAC;;kIAxDQ,qCAAqC,kBAU1B,eAAe;sHAV1B,qCAAqC,kGAT9C;QAEI;YACI,OAAO,EAAE,iBAAiB;YAC1B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,qCAAqC,CAAC;YACpE,KAAK,EAAE,IAAI;SACd;KACJ;2FAEQ,qCAAqC;kBAbjD,SAAS;mBACV;oBACI,QAAQ,EAAE,yEAAyE;oBACnF,SAAS,EACT;wBAEI;4BACI,OAAO,EAAE,iBAAiB;4BAC1B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,sCAAsC,CAAC;4BACpE,KAAK,EAAE,IAAI;yBACd;qBACJ;iBACJ;;0BAWgB,MAAM;2BAAC,eAAe","sourcesContent":["import {Directive, ExistingProvider, forwardRef, Inject, OnDestroy} from '@angular/core';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\nimport {Subscription} from 'rxjs';\n\nimport {DateTimeInput} from '../../../../interfaces';\nimport {DATE_TIME_INPUT} from '../../../../misc/tokens';\nimport {DateTimeInputOutputValue} from '../../../../misc/types';\n\n/**\n * Control value accessor that is used for getting and setting value for date time\n */\n@Directive(\n{\n selector: '[dateTime][formControlName],[dateTime][formControl],[dateTime][ngModel]',\n providers:\n [\n <ExistingProvider>\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => DateTimeControlValueAccessorDirective),\n multi: true,\n },\n ],\n})\nexport class DateTimeControlValueAccessorDirective<TDate = unknown> implements ControlValueAccessor, OnDestroy\n{\n //######################### protected properties #########################\n\n /**\n * Subscriptions created during initialization\n */\n protected initSubscriptions: Subscription = new Subscription();\n\n //######################### constructor #########################\n constructor(@Inject(DATE_TIME_INPUT) protected input: DateTimeInput<TDate>)\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.initSubscriptions.unsubscribe();\n }\n\n //######################### public methods - implementation of ControlValueAccessor #########################\n\n /**\n * @inheritdoc\n */\n public writeValue(value: DateTimeInputOutputValue<TDate>|undefined|null): void\n {\n this.input.value = value;\n }\n\n /**\n * @inheritdoc\n */\n public registerOnChange(fn: (data: DateTimeInputOutputValue<TDate>|undefined|null) => void): void\n {\n this.initSubscriptions.add(this.input.valueChange.subscribe(() => fn(this.input.value)));\n }\n\n /**\n * @inheritdoc\n */\n public registerOnTouched(fn: () => void): void\n {\n this.initSubscriptions.add(this.input.focus.subscribe(() => fn()));\n }\n\n /**\n * @inheritdoc\n */\n public setDisabledState(isDisabled: boolean): void\n {\n this.input.disabled = isDisabled;\n }\n}"]}
1
+ {"version":3,"file":"dateTimeControlValueAccessor.directive.js","sourceRoot":"","sources":["../../../../../../src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAoB,UAAU,EAAE,MAAM,EAAY,MAAM,eAAe,CAAC;AACzF,OAAO,EAAuB,iBAAiB,EAAC,MAAM,gBAAgB,CAAC;AACvE,OAAO,EAA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uC;kBAdnD,SAAS;mBACV;oBACI,QAAQ,EAAE,yEAAyE;oBACnF,SAAS,EACT;wBAEI;4BACI,OAAO,EAAE,iBAAiB;4BAC1B,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,wCAAwC,CAAC;4BACtE,KAAK,EAAE,IAAI;yBACd;qBACJ;oBACD,UAAU,EAAE,IAAI;iBACnB;;0BAWgB,MAAM;2BAAC,eAAe","sourcesContent":["import {Directive, ExistingProvider, forwardRef, Inject, OnDestroy} from '@angular/core';\nimport {ControlValueAccessor, NG_VALUE_ACCESSOR} from '@angular/forms';\nimport {Subscription} from 'rxjs';\n\nimport {DateTimeInput} from '../../../../interfaces';\nimport {DATE_TIME_INPUT} from '../../../../misc/tokens';\nimport {DateTimeInputOutputValue} from '../../../../misc/types';\n\n/**\n * Control value accessor that is used for getting and setting value for date time\n */\n@Directive(\n{\n selector: '[dateTime][formControlName],[dateTime][formControl],[dateTime][ngModel]',\n providers:\n [\n <ExistingProvider>\n {\n provide: NG_VALUE_ACCESSOR,\n useExisting: forwardRef(() => DateTimeControlValueAccessorSADirective),\n multi: true,\n },\n ],\n standalone: true,\n})\nexport class DateTimeControlValueAccessorSADirective<TDate = unknown> implements ControlValueAccessor, OnDestroy\n{\n //######################### protected properties #########################\n\n /**\n * Subscriptions created during initialization\n */\n protected initSubscriptions: Subscription = new Subscription();\n\n //######################### constructor #########################\n constructor(@Inject(DATE_TIME_INPUT) protected input: DateTimeInput<TDate>)\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.initSubscriptions.unsubscribe();\n }\n\n //######################### public methods - implementation of ControlValueAccessor #########################\n\n /**\n * @inheritdoc\n */\n public writeValue(value: DateTimeInputOutputValue<TDate>|undefined|null): void\n {\n this.input.value = value;\n }\n\n /**\n * @inheritdoc\n */\n public registerOnChange(fn: (data: DateTimeInputOutputValue<TDate>|undefined|null) => void): void\n {\n this.initSubscriptions.add(this.input.valueChange.subscribe(() => fn(this.input.value)));\n }\n\n /**\n * @inheritdoc\n */\n public registerOnTouched(fn: () => void): void\n {\n this.initSubscriptions.add(this.input.focus.subscribe(() => fn()));\n }\n\n /**\n * @inheritdoc\n */\n public setDisabledState(isDisabled: boolean): void\n {\n this.input.disabled = isDisabled;\n }\n}"]}
@@ -11,7 +11,7 @@ import * as i1 from "../../../../services";
11
11
  /**
12
12
  * Directive that is used for setting up date time input
13
13
  */
14
- export class DateTimeInputDirective extends DateTimeBase {
14
+ export class DateTimeInputSADirective extends DateTimeBase {
15
15
  //######################### constructors #########################
16
16
  constructor(elementRef, dateApi, valueProvider) {
17
17
  super();
@@ -94,6 +94,7 @@ export class DateTimeInputDirective extends DateTimeBase {
94
94
  if (isBlank(this.internalValue)) {
95
95
  return;
96
96
  }
97
+ //update for specified format, round
97
98
  //ranged value
98
99
  if (Array.isArray(this.internalValue)) {
99
100
  const [from, to] = this.internalValue;
@@ -146,11 +147,11 @@ export class DateTimeInputDirective extends DateTimeBase {
146
147
  this.blur.emit(event);
147
148
  }
148
149
  }
149
- DateTimeInputDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimeInputDirective, deps: [{ token: i0.ElementRef }, { token: DATE_API }, { token: i1.DateValueProvider }], target: i0.ɵɵFactoryTarget.Directive });
150
- DateTimeInputDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.6", type: DateTimeInputDirective, selector: "input[dateTime][dateTimeInput]", providers: [
150
+ DateTimeInputSADirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DateTimeInputSADirective, deps: [{ token: i0.ElementRef }, { token: DATE_API }, { token: i1.DateValueProvider }], target: i0.ɵɵFactoryTarget.Directive });
151
+ DateTimeInputSADirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: DateTimeInputSADirective, isStandalone: true, selector: "input[dateTime][dateTimeInput]", providers: [
151
152
  {
152
153
  provide: DATE_TIME_INPUT,
153
- useExisting: forwardRef(() => DateTimeInputDirective),
154
+ useExisting: forwardRef(() => DateTimeInputSADirective),
154
155
  },
155
156
  ], exportAs: ["dateTime"], usesInheritance: true, ngImport: i0 });
156
157
  __decorate([
@@ -158,29 +159,30 @@ __decorate([
158
159
  __metadata("design:type", Function),
159
160
  __metadata("design:paramtypes", []),
160
161
  __metadata("design:returntype", void 0)
161
- ], DateTimeInputDirective.prototype, "handleInput", null);
162
+ ], DateTimeInputSADirective.prototype, "handleInput", null);
162
163
  __decorate([
163
164
  BindThis,
164
165
  __metadata("design:type", Function),
165
166
  __metadata("design:paramtypes", [FocusEvent]),
166
167
  __metadata("design:returntype", void 0)
167
- ], DateTimeInputDirective.prototype, "handleFocus", null);
168
+ ], DateTimeInputSADirective.prototype, "handleFocus", null);
168
169
  __decorate([
169
170
  BindThis,
170
171
  __metadata("design:type", Function),
171
172
  __metadata("design:paramtypes", [FocusEvent]),
172
173
  __metadata("design:returntype", void 0)
173
- ], DateTimeInputDirective.prototype, "handleBlur", null);
174
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimeInputDirective, decorators: [{
174
+ ], DateTimeInputSADirective.prototype, "handleBlur", null);
175
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DateTimeInputSADirective, decorators: [{
175
176
  type: Directive,
176
177
  args: [{
177
178
  selector: 'input[dateTime][dateTimeInput]',
178
179
  providers: [
179
180
  {
180
181
  provide: DATE_TIME_INPUT,
181
- useExisting: forwardRef(() => DateTimeInputDirective),
182
+ useExisting: forwardRef(() => DateTimeInputSADirective),
182
183
  },
183
184
  ],
185
+ standalone: true,
184
186
  exportAs: 'dateTime',
185
187
  }]
186
188
  }], ctorParameters: function () { return [{ type: i0.ElementRef }, { type: undefined, decorators: [{
@@ -1 +1 @@
1
- {"version":3,"file":"dateTimeInput.directive.js","sourceRoot":"","sources":["../../../../../../src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAE,YAAY,EAAoB,UAAU,EAAE,MAAM,EAAY,MAAM,eAAe,CAAC;AACnH,OAAO,EAAC,QAAQ,EAAE,OAAO,EAAC,MAAM,gBAAgB,CAAC;AAGjD,OAAO,EAAC,QAAQ,EAAE,eAAe,EAAC,MAAM,yBAAyB,CAAC;AAElE,OAAO,EAAC,cAAc,EAAE,aAAa,EAAC,MAAM,wBAAwB,CAAC;AACrE,OAAO,EAAU,iBAAiB,EAAC,MAAM,sBAAsB,CAAC;AAChE,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;;;AAE7C,8BAA8B;AAE9B;;GAEG;AAcH,MAAM,OAAO,sBAAwC,SAAQ,YAAmB;IA6E5E,kEAAkE;IAClE,YAAsB,UAAwC,EACtB,OAAuB,EACzC,aAAuC;QAEzD,KAAK,EAAE,CAAC;QAJU,eAAU,GAAV,UAAU,CAA8B;QACtB,YAAO,GAAP,OAAO,CAAgB;QACzC,kBAAa,GAAb,aAAa,CAA0B;QAb7D;;WAEG;QACI,UAAK,GAA6B,IAAI,YAAY,EAAc,CAAC;QAExE;;WAEG;QACI,SAAI,GAA6B,IAAI,YAAY,EAAc,CAAC;QASnE,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QAC1E,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,gBAAgB,CAAC,OAAO,EAAE,IAAI,CAAC,WAAW,CAAC,CAAC;QAC1E,IAAI,CAAC,UAAU,CAAC,aAAa,CAAC,gBAAgB,CAAC,MAAM,EAAE,IAAI,CAAC,UAAU,CAAC,CAAC;IAC5E,CAAC;IA9ED,yGAAyG;IAEzG;;OAEG;IACH,IAAW,QAA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AAE,eAAe;YACxB,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,CAAC,sBAAsB,CAAC;SACxD;KACJ;;IAgKA,QAAQ;;;;yDAiBR;;IAMA,QAAQ;;qCACoB,UAAU;;yDAGtC;;IAMA,QAAQ;;qCACmB,UAAU;;wDAGrC;2FAlMQ,sBAAsB;kBAblC,SAAS;mBACV;oBACI,QAAQ,EAAE,gCAAgC;oBAC1C,SAAS,EACT;wBAEI;4BACI,OAAO,EAAE,eAAe;4BACxB,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,uBAAuB,CAAC;yBACxD;qBACJ;oBACD,QAAQ,EAAE,UAAU;iBACvB;;0BAgFgB,MAAM;2BAAC,QAAQ;4EA+ElB,WAAW,MAuBX,WAAW,MAUX,UAAU","sourcesContent":["import {Directive, ElementRef, EventEmitter, ExistingProvider, forwardRef, Inject, OnDestroy} from '@angular/core';\nimport {BindThis, isBlank} from '@jscrpt/common';\n\nimport {DateTimeInput} from '../../../../interfaces';\nimport {DATE_API, DATE_TIME_INPUT} from '../../../../misc/tokens';\nimport {DateTimeInputOutputValue, DateTimeObjectValue} from '../../../../misc/types';\nimport {formatDateTime, parseDateTime} from '../../../../misc/utils';\nimport {DateApi, DateValueProvider} from '../../../../services';\nimport {DateTimeBase} from '../dateTimeBase';\n\n//TODO: range is unimplemented\n\n/**\n * Directive that is used for setting up date time input\n */\n@Directive(\n{\n selector: 'input[dateTime][dateTimeInput]',\n providers:\n [\n <ExistingProvider>\n {\n provide: DATE_TIME_INPUT,\n useExisting: forwardRef(() => DateTimeInputDirective),\n },\n ],\n exportAs: 'dateTime',\n})\nexport class DateTimeInputDirective<TDate = unknown> extends DateTimeBase<TDate> implements DateTimeInput, OnDestroy\n{\n //######################### protected properties #########################\n\n /**\n * Internal representation of current date time value\n */\n protected internalValue: DateTimeObjectValue<TDate>|undefined|null;\n\n //######################### public properties - implementation of DateTimeInput #########################\n\n /**\n * @inheritdoc\n */\n public get rawValue(): string|undefined|null\n {\n return this.elementRef.nativeElement.value;\n }\n public set rawValue(value: string|undefined|null)\n {\n this.elementRef.nativeElement.value = value ?? '';\n }\n\n /**\n * @inheritdoc\n */\n public override get value(): DateTimeInputOutputValue<TDate>|undefined|null\n {\n return this.ɵValue;\n }\n public override set value(value: DateTimeInputOutputValue<TDate>|undefined|null)\n {\n //accepts all available formats\n this.setInternalValue(value);\n this.ɵValue = formatDateTime(this.internalValue, this.dateTimeData.valueFormat, this.dateTimeData.customFormat);\n \n //not range value\n if(!Array.isArray(this.internalValue))\n {\n this.rawValue = this.internalValue?.format(this.dateTimeData.customFormat);\n }\n else\n {\n //TODO: add support for ranges\n }\n }\n\n /**\n * @inheritdoc\n */\n public get disabled(): boolean\n {\n return this.elementRef.nativeElement.disabled;\n }\n public set disabled(value: boolean)\n {\n this.elementRef.nativeElement.disabled = value;\n }\n\n /**\n * Html element that represents input itself\n */\n public get element(): HTMLElement\n {\n return this.elementRef.nativeElement;\n }\n\n /**\n * @inheritdoc\n */\n public focus: EventEmitter<FocusEvent> = new EventEmitter<FocusEvent>();\n\n /**\n * @inheritdoc\n */\n public blur: EventEmitter<FocusEvent> = new EventEmitter<FocusEvent>();\n\n //######################### constructors #########################\n constructor(protected elementRef: ElementRef<HTMLInputElement>,\n @Inject(DATE_API) protected dateApi: DateApi<TDate>,\n protected valueProvider: DateValueProvider<TDate>,)\n {\n super();\n\n this.elementRef.nativeElement.addEventListener('input', this.handleInput);\n this.elementRef.nativeElement.addEventListener('focus', this.handleFocus);\n this.elementRef.nativeElement.addEventListener('blur', this.handleBlur);\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n \n /**\n * Called when component is destroyed\n */\n public override ngOnDestroy(): void\n {\n super.ngOnDestroy();\n\n this.elementRef.nativeElement.removeEventListener('input', this.handleInput);\n this.elementRef.nativeElement.removeEventListener('focus', this.handleFocus);\n this.elementRef.nativeElement.removeEventListener('blur', this.handleBlur);\n }\n\n //######################### protected methods #########################\n\n /**\n * Sets internal value and fix lowest time difference\n * @param value - Value to be set\n */\n protected setInternalValue(value: DateTimeInputOutputValue<TDate>|undefined|null): void\n {\n this.internalValue = parseDateTime(value, this.dateApi, null, this.dateTimeData.customFormat);\n\n if(isBlank(this.internalValue))\n {\n return;\n }\n\n //ranged value\n if(Array.isArray(this.internalValue))\n {\n const [from, to] = this.internalValue;\n\n if(from)\n {\n const val = this.valueProvider.getValue(from.value, this.dateTimeData.customFormat).from;\n\n if(val)\n {\n this.internalValue[0] = this.dateApi.getValue(val, this.dateTimeData.customFormat);\n }\n }\n\n if(to)\n {\n const val = this.valueProvider.getValue(to.value, this.dateTimeData.customFormat).to;\n\n if(val)\n {\n this.internalValue[1] = this.dateApi.getValue(val, this.dateTimeData.customFormat);\n }\n }\n }\n else\n {\n const val = this.valueProvider.getValue(this.internalValue.value, this.dateTimeData.customFormat).from;\n\n if(val)\n {\n this.internalValue = this.dateApi.getValue(val, this.dateTimeData.customFormat);\n }\n }\n }\n\n /**\n * Handles input event on input\n */\n @BindThis\n protected handleInput(): void\n {\n if(!this.rawValue)\n {\n this.internalValue = null;\n this.ɵValue = null;\n\n this.valueChange.next();\n\n return;\n }\n\n this.setInternalValue(this.rawValue);\n this.ɵValue = formatDateTime(this.internalValue, this.dateTimeData.valueFormat, this.dateTimeData.customFormat);\n\n this.valueChange.next();\n }\n\n /**\n * Handles focus event on input\n * @param event - Event that occured\n */\n @BindThis\n protected handleFocus(event: FocusEvent): void\n {\n this.focus.emit(event);\n }\n\n /**\n * Handles blur event on input\n * @param event - Event that occured\n */\n @BindThis\n protected handleBlur(event: FocusEvent): void\n {\n this.blur.emit(event);\n }\n}"]}
1
+ {"version":3,"file":"dateTimeInput.directive.js","sourceRoot":"","sources":["../../../../../../src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAE,YAAY,EAAoB,UAAU,EAAE,MAAM,EAAY,MAAM,eAAe,CAAC;AACnH,OAAO,EAA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,wBAAwB;kBAdpC,SAAS;mBACV;oBACI,QAAQ,EAAE,gCAAgC;oBAC1C,SAAS,EACT;wBAEI;4BACI,OAAO,EAAE,eAAe;4BACxB,WAAW,EAAE,UAAU,CAAC,GAAG,EAAE,yBAAyB,CAAC;yBAC1D;qBACJ;oBACD,UAAU,EAAE,IAAI;oBAChB,QAAQ,EAAE,UAAU;iBACvB;;0BAgFgB,MAAM;2BAAC,QAAQ;4EAiFlB,WAAW,MAuBX,WAAW,MAUX,UAAU","sourcesContent":["import {Directive, ElementRef, EventEmitter, ExistingProvider, forwardRef, Inject, OnDestroy} from '@angular/core';\nimport {BindThis, isBlank} from '@jscrpt/common';\n\nimport {DateTimeInput} from '../../../../interfaces';\nimport {DATE_API, DATE_TIME_INPUT} from '../../../../misc/tokens';\nimport {DateTimeInputOutputValue, DateTimeObjectValue} from '../../../../misc/types';\nimport {formatDateTime, parseDateTime} from '../../../../misc/utils';\nimport {DateApi, DateValueProvider} from '../../../../services';\nimport {DateTimeBase} from '../dateTimeBase';\n\n//TODO: range is unimplemented\n\n/**\n * Directive that is used for setting up date time input\n */\n@Directive(\n{\n selector: 'input[dateTime][dateTimeInput]',\n providers:\n [\n <ExistingProvider>\n {\n provide: DATE_TIME_INPUT,\n useExisting: forwardRef(() => DateTimeInputSADirective),\n },\n ],\n standalone: true,\n exportAs: 'dateTime',\n})\nexport class DateTimeInputSADirective<TDate = unknown> extends DateTimeBase<TDate> implements DateTimeInput, OnDestroy\n{\n //######################### protected properties #########################\n\n /**\n * Internal representation of current date time value\n */\n protected internalValue: DateTimeObjectValue<TDate>|undefined|null;\n\n //######################### public properties - implementation of DateTimeInput #########################\n\n /**\n * @inheritdoc\n */\n public get rawValue(): string|undefined|null\n {\n return this.elementRef.nativeElement.value;\n }\n public set rawValue(value: string|undefined|null)\n {\n this.elementRef.nativeElement.value = value ?? '';\n }\n\n /**\n * @inheritdoc\n */\n public override get value(): DateTimeInputOutputValue<TDate>|undefined|null\n {\n return this.ɵValue;\n }\n public override set value(value: DateTimeInputOutputValue<TDate>|undefined|null)\n {\n //accepts all available formats\n this.setInternalValue(value);\n this.ɵValue = formatDateTime(this.internalValue, this.dateTimeData.valueFormat, this.dateTimeData.customFormat);\n \n //not range value\n if(!Array.isArray(this.internalValue))\n {\n this.rawValue = this.internalValue?.format(this.dateTimeData.customFormat);\n }\n else\n {\n //TODO: add support for ranges\n }\n }\n\n /**\n * @inheritdoc\n */\n public get disabled(): boolean\n {\n return this.elementRef.nativeElement.disabled;\n }\n public set disabled(value: boolean)\n {\n this.elementRef.nativeElement.disabled = value;\n }\n\n /**\n * Html element that represents input itself\n */\n public get element(): HTMLElement\n {\n return this.elementRef.nativeElement;\n }\n\n /**\n * @inheritdoc\n */\n public focus: EventEmitter<FocusEvent> = new EventEmitter<FocusEvent>();\n\n /**\n * @inheritdoc\n */\n public blur: EventEmitter<FocusEvent> = new EventEmitter<FocusEvent>();\n\n //######################### constructors #########################\n constructor(protected elementRef: ElementRef<HTMLInputElement>,\n @Inject(DATE_API) protected dateApi: DateApi<TDate>,\n protected valueProvider: DateValueProvider<TDate>,)\n {\n super();\n\n this.elementRef.nativeElement.addEventListener('input', this.handleInput);\n this.elementRef.nativeElement.addEventListener('focus', this.handleFocus);\n this.elementRef.nativeElement.addEventListener('blur', this.handleBlur);\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n \n /**\n * Called when component is destroyed\n */\n public override ngOnDestroy(): void\n {\n super.ngOnDestroy();\n\n this.elementRef.nativeElement.removeEventListener('input', this.handleInput);\n this.elementRef.nativeElement.removeEventListener('focus', this.handleFocus);\n this.elementRef.nativeElement.removeEventListener('blur', this.handleBlur);\n }\n\n //######################### protected methods #########################\n\n /**\n * Sets internal value and fix lowest time difference\n * @param value - Value to be set\n */\n protected setInternalValue(value: DateTimeInputOutputValue<TDate>|undefined|null): void\n {\n this.internalValue = parseDateTime(value, this.dateApi, null, this.dateTimeData.customFormat);\n\n if(isBlank(this.internalValue))\n {\n return;\n }\n\n //update for specified format, round\n\n //ranged value\n if(Array.isArray(this.internalValue))\n {\n const [from, to] = this.internalValue;\n\n if(from)\n {\n const val = this.valueProvider.getValue(from.value, this.dateTimeData.customFormat).from;\n\n if(val)\n {\n this.internalValue[0] = this.dateApi.getValue(val, this.dateTimeData.customFormat);\n }\n }\n\n if(to)\n {\n const val = this.valueProvider.getValue(to.value, this.dateTimeData.customFormat).to;\n\n if(val)\n {\n this.internalValue[1] = this.dateApi.getValue(val, this.dateTimeData.customFormat);\n }\n }\n }\n else\n {\n const val = this.valueProvider.getValue(this.internalValue.value, this.dateTimeData.customFormat).from;\n\n if(val)\n {\n this.internalValue = this.dateApi.getValue(val, this.dateTimeData.customFormat);\n }\n }\n }\n\n /**\n * Handles input event on input\n */\n @BindThis\n protected handleInput(): void\n {\n if(!this.rawValue)\n {\n this.internalValue = null;\n this.ɵValue = null;\n\n this.valueChange.next();\n\n return;\n }\n\n this.setInternalValue(this.rawValue);\n this.ɵValue = formatDateTime(this.internalValue, this.dateTimeData.valueFormat, this.dateTimeData.customFormat);\n\n this.valueChange.next();\n }\n\n /**\n * Handles focus event on input\n * @param event - Event that occured\n */\n @BindThis\n protected handleFocus(event: FocusEvent): void\n {\n this.focus.emit(event);\n }\n\n /**\n * Handles blur event on input\n * @param event - Event that occured\n */\n @BindThis\n protected handleBlur(event: FocusEvent): void\n {\n this.blur.emit(event);\n }\n}"]}
@@ -7,7 +7,7 @@ import * as i0 from "@angular/core";
7
7
  /**
8
8
  * Applies validator for date time max value
9
9
  */
10
- export class DateTimeMaxValidatorDirective extends DateTimeBase {
10
+ export class DateTimeMaxValidatorSADirective extends DateTimeBase {
11
11
  //######################### constructor #########################
12
12
  constructor(dateApi) {
13
13
  super();
@@ -42,25 +42,26 @@ export class DateTimeMaxValidatorDirective extends DateTimeBase {
42
42
  this._validator = datetimeMaxValidator(this.dateApi, this.dateTimeData.maxDateTime, this.dateTimeData.valueFormat, this.dateTimeData.customFormat);
43
43
  }
44
44
  }
45
- DateTimeMaxValidatorDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimeMaxValidatorDirective, deps: [{ token: DATE_API }], target: i0.ɵɵFactoryTarget.Directive });
46
- DateTimeMaxValidatorDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.6", type: DateTimeMaxValidatorDirective, selector: "[dateTime][maxDateTime][validate]", providers: [
45
+ DateTimeMaxValidatorSADirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DateTimeMaxValidatorSADirective, deps: [{ token: DATE_API }], target: i0.ɵɵFactoryTarget.Directive });
46
+ DateTimeMaxValidatorSADirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: DateTimeMaxValidatorSADirective, isStandalone: true, selector: "[dateTime][maxDateTime][validate]", providers: [
47
47
  {
48
48
  provide: NG_VALIDATORS,
49
- useExisting: forwardRef(() => DateTimeMaxValidatorDirective),
49
+ useExisting: forwardRef(() => DateTimeMaxValidatorSADirective),
50
50
  multi: true
51
51
  },
52
52
  ], usesInheritance: true, ngImport: i0 });
53
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimeMaxValidatorDirective, decorators: [{
53
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DateTimeMaxValidatorSADirective, decorators: [{
54
54
  type: Directive,
55
55
  args: [{
56
56
  selector: '[dateTime][maxDateTime][validate]',
57
57
  providers: [
58
58
  {
59
59
  provide: NG_VALIDATORS,
60
- useExisting: forwardRef(() => DateTimeMaxValidatorDirective),
60
+ useExisting: forwardRef(() => DateTimeMaxValidatorSADirective),
61
61
  multi: true
62
62
  },
63
63
  ],
64
+ standalone: true,
64
65
  }]
65
66
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
66
67
  type: Inject,