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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (596) hide show
  1. package/changelog.md +157 -1
  2. package/date-fns/src/services/dateFnsDateApi.service.d.ts +26 -14
  3. package/date-fns/src/services/dateFnsDateApi.service.d.ts.map +1 -1
  4. package/es2015/date-fns/src/services/dateFnsDateApi.service.js +37 -6
  5. package/es2015/date-fns/src/services/dateFnsDateApi.service.js.map +1 -1
  6. package/es2015/moment/src/services/momentDateApi.service.js +35 -3
  7. package/es2015/moment/src/services/momentDateApi.service.js.map +1 -1
  8. package/es2015/src/directives/index.js +3 -0
  9. package/es2015/src/directives/index.js.map +1 -1
  10. package/es2015/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js +37 -0
  11. package/es2015/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js.map +1 -0
  12. package/es2015/src/directives/simpleDateTimeInputHandler/simpleDateTimeInputHandler.directive.js +137 -0
  13. package/es2015/src/directives/simpleDateTimeInputHandler/simpleDateTimeInputHandler.directive.js.map +1 -0
  14. package/es2015/src/directives/simpleDateTimePickerInput/simpleDateTimePickerInput.directive.js +29 -0
  15. package/es2015/src/directives/simpleDateTimePickerInput/simpleDateTimePickerInput.directive.js.map +1 -0
  16. package/es2015/src/directives/withTime/withTime.directive.js +5 -5
  17. package/es2015/src/directives/withTime/withTime.directive.js.map +1 -1
  18. package/es2015/src/directives/withToday/withToday.directive.js +5 -5
  19. package/es2015/src/directives/withToday/withToday.directive.js.map +1 -1
  20. package/es2015/src/index.js +0 -8
  21. package/es2015/src/index.js.map +1 -1
  22. package/es2015/src/interfaces/dateTime/datetime.interface.js.map +1 -1
  23. package/es2015/src/legacy/picker/components/picker/picker.component.animations.js +93 -70
  24. package/es2015/src/legacy/picker/components/picker/picker.component.animations.js.map +1 -1
  25. package/es2015/src/legacy/selector/components/inputDateTime/inputDateTime.component.js +487 -436
  26. package/es2015/src/legacy/selector/components/inputDateTime/inputDateTime.component.js.map +1 -1
  27. package/es2015/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js +366 -324
  28. package/es2015/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js.map +1 -1
  29. package/es2015/src/misc/validators.js +0 -57
  30. package/es2015/src/misc/validators.js.map +1 -1
  31. package/es2015/src/modules/calendar/components/index.js +2 -0
  32. package/es2015/src/modules/calendar/components/index.js.map +1 -0
  33. package/es2015/src/modules/calendar/components/monthCalendar/monthCalendar.component.js +198 -0
  34. package/es2015/src/modules/calendar/components/monthCalendar/monthCalendar.component.js.map +1 -0
  35. package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js +2 -0
  36. package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js.map +1 -0
  37. package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js +27 -0
  38. package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js.map +1 -0
  39. package/es2015/src/modules/calendar/directives/index.js +3 -0
  40. package/es2015/src/modules/calendar/directives/index.js.map +1 -0
  41. package/es2015/src/modules/calendar/index.js +7 -0
  42. package/es2015/src/modules/calendar/index.js.map +1 -0
  43. package/es2015/src/modules/calendar/interfaces/calendarDayData.interface.js +2 -0
  44. package/es2015/src/modules/calendar/interfaces/calendarDayData.interface.js.map +1 -0
  45. package/es2015/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js +2 -0
  46. package/es2015/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js.map +1 -0
  47. package/es2015/src/modules/calendar/interfaces/eventData.interface.js +2 -0
  48. package/es2015/src/modules/calendar/interfaces/eventData.interface.js.map +1 -0
  49. package/es2015/src/modules/calendar/interfaces/index.js +4 -0
  50. package/es2015/src/modules/calendar/interfaces/index.js.map +1 -0
  51. package/es2015/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js +27 -0
  52. package/es2015/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js.map +1 -0
  53. package/es2015/src/modules/calendar/misc/enums/index.js +3 -0
  54. package/es2015/src/modules/calendar/misc/enums/index.js.map +1 -0
  55. package/es2015/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js +19 -0
  56. package/es2015/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js.map +1 -0
  57. package/es2015/src/modules/calendar/misc/index.js +2 -0
  58. package/es2015/src/modules/calendar/misc/index.js.map +1 -0
  59. package/es2015/src/modules/calendar/modules/index.js +2 -0
  60. package/es2015/src/modules/calendar/modules/index.js.map +1 -0
  61. package/es2015/src/modules/calendar/modules/monthCalendar.module.js +32 -0
  62. package/es2015/src/modules/calendar/modules/monthCalendar.module.js.map +1 -0
  63. package/es2015/src/modules/calendar/services/eventParser/eventParser.service.js +75 -0
  64. package/es2015/src/modules/calendar/services/eventParser/eventParser.service.js.map +1 -0
  65. package/es2015/src/modules/calendar/services/index.js +2 -0
  66. package/es2015/src/modules/calendar/services/index.js.map +1 -0
  67. package/es2015/src/modules/datePipes.module.js +4 -4
  68. package/es2015/src/modules/dateTime/directives/dateTime/dateTime.directive.js +8 -7
  69. package/es2015/src/modules/dateTime/directives/dateTime/dateTime.directive.js.map +1 -1
  70. package/es2015/src/modules/dateTime/directives/dateTimeBase.js +5 -5
  71. package/es2015/src/modules/dateTime/directives/dateTimeBase.js.map +1 -1
  72. package/es2015/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js +7 -6
  73. package/es2015/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js.map +1 -1
  74. package/es2015/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js +11 -9
  75. package/es2015/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js.map +1 -1
  76. package/es2015/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js +7 -6
  77. package/es2015/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js.map +1 -1
  78. package/es2015/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js +7 -6
  79. package/es2015/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js.map +1 -1
  80. package/es2015/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js +7 -6
  81. package/es2015/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js.map +1 -1
  82. package/es2015/src/modules/dateTime/modules/dateTime.module.js +28 -28
  83. package/es2015/src/modules/dateTime/modules/dateTime.module.js.map +1 -1
  84. package/es2015/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.js.map +1 -1
  85. package/es2015/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js +5 -5
  86. package/es2015/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js.map +1 -1
  87. package/es2015/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js +3 -3
  88. package/es2015/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js.map +1 -1
  89. package/es2015/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js +3 -3
  90. package/es2015/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js.map +1 -1
  91. package/es2015/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js +6 -7
  92. package/es2015/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js.map +1 -1
  93. package/es2015/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.js.map +1 -1
  94. package/es2015/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js +3 -3
  95. package/es2015/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js.map +1 -1
  96. package/es2015/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js +8 -7
  97. package/es2015/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js.map +1 -1
  98. package/es2015/src/modules/dateTimePicker/directives/index.js +3 -0
  99. package/es2015/src/modules/dateTimePicker/directives/index.js.map +1 -1
  100. package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.js +222 -0
  101. package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.js.map +1 -0
  102. package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js +2 -0
  103. package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js.map +1 -0
  104. package/es2015/src/{legacy/picker → modules/dateTimePicker}/directives/loopScrollData/loopScrollData.directive.js +6 -5
  105. package/es2015/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.js.map +1 -0
  106. package/es2015/src/modules/dateTimePicker/interfaces/index.js +1 -0
  107. package/es2015/src/modules/dateTimePicker/interfaces/index.js.map +1 -1
  108. package/es2015/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js +2 -0
  109. package/es2015/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js.map +1 -0
  110. package/es2015/src/modules/dateTimePicker/modules/dateTimePicker.module.js +10 -9
  111. package/es2015/src/modules/dateTimePicker/modules/dateTimePicker.module.js.map +1 -1
  112. package/es2015/src/modules/index.js +1 -0
  113. package/es2015/src/modules/index.js.map +1 -1
  114. package/es2015/src/pipes/dateConvert.pipe.js +3 -3
  115. package/es2015/src/pipes/dateConvert.pipe.js.map +1 -1
  116. package/es2015/src/pipes/dateFormat.pipe.js +3 -3
  117. package/es2015/src/pipes/dateFormat.pipe.js.map +1 -1
  118. package/es2015/src/services/dateApi/dateApi.interface.js.map +1 -1
  119. package/es2015/src/services/datePositionParser/datePositionParser.service.js +5 -3
  120. package/es2015/src/services/datePositionParser/datePositionParser.service.js.map +1 -1
  121. package/es2015/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js +3 -3
  122. package/es2015/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js.map +1 -1
  123. package/es2015/src/services/dateValueProvider/dateValueProvider.service.js +3 -3
  124. package/es2015/src/services/dateValueProvider/dateValueProvider.service.js.map +1 -1
  125. package/es2020/date-fns/src/services/dateFnsDateApi.service.js +37 -6
  126. package/es2020/date-fns/src/services/dateFnsDateApi.service.js.map +1 -1
  127. package/es2020/moment/src/services/momentDateApi.service.js +35 -3
  128. package/es2020/moment/src/services/momentDateApi.service.js.map +1 -1
  129. package/es2020/src/directives/index.js +3 -0
  130. package/es2020/src/directives/index.js.map +1 -1
  131. package/es2020/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js +37 -0
  132. package/es2020/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js.map +1 -0
  133. package/es2020/src/directives/simpleDateTimeInputHandler/simpleDateTimeInputHandler.directive.js +136 -0
  134. package/es2020/src/directives/simpleDateTimeInputHandler/simpleDateTimeInputHandler.directive.js.map +1 -0
  135. package/es2020/src/directives/simpleDateTimePickerInput/simpleDateTimePickerInput.directive.js +29 -0
  136. package/es2020/src/directives/simpleDateTimePickerInput/simpleDateTimePickerInput.directive.js.map +1 -0
  137. package/es2020/src/directives/withTime/withTime.directive.js +5 -5
  138. package/es2020/src/directives/withTime/withTime.directive.js.map +1 -1
  139. package/es2020/src/directives/withToday/withToday.directive.js +5 -5
  140. package/es2020/src/directives/withToday/withToday.directive.js.map +1 -1
  141. package/es2020/src/index.js +0 -8
  142. package/es2020/src/index.js.map +1 -1
  143. package/es2020/src/interfaces/dateTime/datetime.interface.js.map +1 -1
  144. package/es2020/src/legacy/picker/components/picker/picker.component.animations.js +93 -70
  145. package/es2020/src/legacy/picker/components/picker/picker.component.animations.js.map +1 -1
  146. package/es2020/src/legacy/selector/components/inputDateTime/inputDateTime.component.js +487 -432
  147. package/es2020/src/legacy/selector/components/inputDateTime/inputDateTime.component.js.map +1 -1
  148. package/es2020/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js +366 -321
  149. package/es2020/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js.map +1 -1
  150. package/es2020/src/misc/validators.js +0 -57
  151. package/es2020/src/misc/validators.js.map +1 -1
  152. package/es2020/src/modules/calendar/components/index.js +2 -0
  153. package/es2020/src/modules/calendar/components/index.js.map +1 -0
  154. package/es2020/src/modules/calendar/components/monthCalendar/monthCalendar.component.js +195 -0
  155. package/es2020/src/modules/calendar/components/monthCalendar/monthCalendar.component.js.map +1 -0
  156. package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js +2 -0
  157. package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js.map +1 -0
  158. package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js +27 -0
  159. package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js.map +1 -0
  160. package/es2020/src/modules/calendar/directives/index.js +3 -0
  161. package/es2020/src/modules/calendar/directives/index.js.map +1 -0
  162. package/es2020/src/modules/calendar/index.js +7 -0
  163. package/es2020/src/modules/calendar/index.js.map +1 -0
  164. package/es2020/src/modules/calendar/interfaces/calendarDayData.interface.js +2 -0
  165. package/es2020/src/modules/calendar/interfaces/calendarDayData.interface.js.map +1 -0
  166. package/es2020/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js +2 -0
  167. package/es2020/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js.map +1 -0
  168. package/es2020/src/modules/calendar/interfaces/eventData.interface.js +2 -0
  169. package/es2020/src/modules/calendar/interfaces/eventData.interface.js.map +1 -0
  170. package/es2020/src/modules/calendar/interfaces/index.js +4 -0
  171. package/es2020/src/modules/calendar/interfaces/index.js.map +1 -0
  172. package/es2020/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js +27 -0
  173. package/es2020/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js.map +1 -0
  174. package/es2020/src/modules/calendar/misc/enums/index.js +3 -0
  175. package/es2020/src/modules/calendar/misc/enums/index.js.map +1 -0
  176. package/es2020/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js +19 -0
  177. package/es2020/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js.map +1 -0
  178. package/es2020/src/modules/calendar/misc/index.js +2 -0
  179. package/es2020/src/modules/calendar/misc/index.js.map +1 -0
  180. package/es2020/src/modules/calendar/modules/index.js +2 -0
  181. package/es2020/src/modules/calendar/modules/index.js.map +1 -0
  182. package/es2020/src/modules/calendar/modules/monthCalendar.module.js +32 -0
  183. package/es2020/src/modules/calendar/modules/monthCalendar.module.js.map +1 -0
  184. package/es2020/src/modules/calendar/services/eventParser/eventParser.service.js +74 -0
  185. package/es2020/src/modules/calendar/services/eventParser/eventParser.service.js.map +1 -0
  186. package/es2020/src/modules/calendar/services/index.js +2 -0
  187. package/es2020/src/modules/calendar/services/index.js.map +1 -0
  188. package/es2020/src/modules/datePipes.module.js +4 -4
  189. package/es2020/src/modules/dateTime/directives/dateTime/dateTime.directive.js +8 -7
  190. package/es2020/src/modules/dateTime/directives/dateTime/dateTime.directive.js.map +1 -1
  191. package/es2020/src/modules/dateTime/directives/dateTimeBase.js +5 -5
  192. package/es2020/src/modules/dateTime/directives/dateTimeBase.js.map +1 -1
  193. package/es2020/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js +7 -6
  194. package/es2020/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js.map +1 -1
  195. package/es2020/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js +11 -9
  196. package/es2020/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js.map +1 -1
  197. package/es2020/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js +7 -6
  198. package/es2020/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js.map +1 -1
  199. package/es2020/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js +7 -6
  200. package/es2020/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js.map +1 -1
  201. package/es2020/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js +7 -6
  202. package/es2020/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js.map +1 -1
  203. package/es2020/src/modules/dateTime/modules/dateTime.module.js +28 -28
  204. package/es2020/src/modules/dateTime/modules/dateTime.module.js.map +1 -1
  205. package/es2020/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.js.map +1 -1
  206. package/es2020/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js +5 -5
  207. package/es2020/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js.map +1 -1
  208. package/es2020/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js +3 -3
  209. package/es2020/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js.map +1 -1
  210. package/es2020/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js +3 -3
  211. package/es2020/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js.map +1 -1
  212. package/es2020/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js +6 -7
  213. package/es2020/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js.map +1 -1
  214. package/es2020/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.js.map +1 -1
  215. package/es2020/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js +3 -3
  216. package/es2020/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js.map +1 -1
  217. package/es2020/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js +9 -8
  218. package/es2020/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js.map +1 -1
  219. package/es2020/src/modules/dateTimePicker/directives/index.js +3 -0
  220. package/es2020/src/modules/dateTimePicker/directives/index.js.map +1 -1
  221. package/es2020/src/{legacy/picker → modules/dateTimePicker}/directives/loopScroll/loopScroll.directive.js +65 -56
  222. package/es2020/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.js.map +1 -0
  223. package/es2020/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js +2 -0
  224. package/es2020/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js.map +1 -0
  225. package/es2020/src/{legacy/picker → modules/dateTimePicker}/directives/loopScrollData/loopScrollData.directive.js +6 -5
  226. package/es2020/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.js.map +1 -0
  227. package/es2020/src/modules/dateTimePicker/interfaces/index.js +1 -0
  228. package/es2020/src/modules/dateTimePicker/interfaces/index.js.map +1 -1
  229. package/es2020/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js +2 -0
  230. package/es2020/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js.map +1 -0
  231. package/es2020/src/modules/dateTimePicker/modules/dateTimePicker.module.js +10 -9
  232. package/es2020/src/modules/dateTimePicker/modules/dateTimePicker.module.js.map +1 -1
  233. package/es2020/src/modules/index.js +1 -0
  234. package/es2020/src/modules/index.js.map +1 -1
  235. package/es2020/src/pipes/dateConvert.pipe.js +3 -3
  236. package/es2020/src/pipes/dateConvert.pipe.js.map +1 -1
  237. package/es2020/src/pipes/dateFormat.pipe.js +3 -3
  238. package/es2020/src/pipes/dateFormat.pipe.js.map +1 -1
  239. package/es2020/src/services/dateApi/dateApi.interface.js.map +1 -1
  240. package/es2020/src/services/datePositionParser/datePositionParser.service.js +5 -3
  241. package/es2020/src/services/datePositionParser/datePositionParser.service.js.map +1 -1
  242. package/es2020/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js +3 -3
  243. package/es2020/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js.map +1 -1
  244. package/es2020/src/services/dateValueProvider/dateValueProvider.service.js +3 -3
  245. package/es2020/src/services/dateValueProvider/dateValueProvider.service.js.map +1 -1
  246. package/moment/src/services/momentDateApi.service.d.ts +25 -12
  247. package/moment/src/services/momentDateApi.service.d.ts.map +1 -1
  248. package/package.json +27 -36
  249. package/src/directives/index.d.ts +3 -0
  250. package/src/directives/index.d.ts.map +1 -1
  251. package/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.d.ts +12 -0
  252. package/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.d.ts.map +1 -0
  253. package/src/directives/simpleDateTimeInputHandler/simpleDateTimeInputHandler.directive.d.ts +42 -0
  254. package/src/directives/simpleDateTimeInputHandler/simpleDateTimeInputHandler.directive.d.ts.map +1 -0
  255. package/src/directives/simpleDateTimePickerInput/simpleDateTimePickerInput.directive.d.ts +11 -0
  256. package/src/directives/simpleDateTimePickerInput/simpleDateTimePickerInput.directive.d.ts.map +1 -0
  257. package/src/directives/withTime/withTime.directive.d.ts +3 -3
  258. package/src/directives/withTime/withTime.directive.d.ts.map +1 -1
  259. package/src/directives/withToday/withToday.directive.d.ts +3 -3
  260. package/src/directives/withToday/withToday.directive.d.ts.map +1 -1
  261. package/src/index.d.ts +0 -8
  262. package/src/index.d.ts.map +1 -1
  263. package/src/interfaces/dateTime/datetime.interface.d.ts +1 -22
  264. package/src/interfaces/dateTime/datetime.interface.d.ts.map +1 -1
  265. package/src/legacy/picker/components/picker/picker.component.animations.d.ts +0 -4
  266. package/src/legacy/picker/components/picker/picker.component.animations.d.ts.map +1 -1
  267. package/src/legacy/selector/components/inputDateTime/inputDateTime.component.d.ts +0 -185
  268. package/src/legacy/selector/components/inputDateTime/inputDateTime.component.d.ts.map +1 -1
  269. package/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.d.ts +0 -169
  270. package/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.d.ts.map +1 -1
  271. package/src/misc/validators.d.ts +0 -23
  272. package/src/misc/validators.d.ts.map +1 -1
  273. package/src/modules/calendar/components/index.d.ts +2 -0
  274. package/src/modules/calendar/components/index.d.ts.map +1 -0
  275. package/src/modules/calendar/components/monthCalendar/monthCalendar.component.d.ts +94 -0
  276. package/src/modules/calendar/components/monthCalendar/monthCalendar.component.d.ts.map +1 -0
  277. package/src/modules/calendar/components/monthCalendar/monthCalendar.component.html +15 -0
  278. package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.d.ts +11 -0
  279. package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.d.ts.map +1 -0
  280. package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.d.ts +17 -0
  281. package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.d.ts.map +1 -0
  282. package/src/modules/calendar/directives/index.d.ts +3 -0
  283. package/src/modules/calendar/directives/index.d.ts.map +1 -0
  284. package/src/modules/calendar/index.d.ts +7 -0
  285. package/src/modules/calendar/index.d.ts.map +1 -0
  286. package/src/modules/calendar/interfaces/calendarDayData.interface.d.ts +31 -0
  287. package/src/modules/calendar/interfaces/calendarDayData.interface.d.ts.map +1 -0
  288. package/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.d.ts +19 -0
  289. package/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.d.ts.map +1 -0
  290. package/src/modules/calendar/interfaces/eventData.interface.d.ts +37 -0
  291. package/src/modules/calendar/interfaces/eventData.interface.d.ts.map +1 -0
  292. package/src/modules/calendar/interfaces/index.d.ts +4 -0
  293. package/src/modules/calendar/interfaces/index.d.ts.map +1 -0
  294. package/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.d.ts +26 -0
  295. package/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.d.ts.map +1 -0
  296. package/src/modules/calendar/misc/enums/index.d.ts +3 -0
  297. package/src/modules/calendar/misc/enums/index.d.ts.map +1 -0
  298. package/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.d.ts +18 -0
  299. package/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.d.ts.map +1 -0
  300. package/src/modules/calendar/misc/index.d.ts +2 -0
  301. package/src/modules/calendar/misc/index.d.ts.map +1 -0
  302. package/src/modules/calendar/modules/index.d.ts +2 -0
  303. package/src/modules/calendar/modules/index.d.ts.map +1 -0
  304. package/src/modules/calendar/modules/monthCalendar.module.d.ts +13 -0
  305. package/src/modules/calendar/modules/monthCalendar.module.d.ts.map +1 -0
  306. package/src/modules/calendar/services/eventParser/eventParser.service.d.ts +18 -0
  307. package/src/modules/calendar/services/eventParser/eventParser.service.d.ts.map +1 -0
  308. package/src/modules/calendar/services/index.d.ts +2 -0
  309. package/src/modules/calendar/services/index.d.ts.map +1 -0
  310. package/src/modules/dateTime/directives/dateTime/dateTime.directive.d.ts +3 -3
  311. package/src/modules/dateTime/directives/dateTime/dateTime.directive.d.ts.map +1 -1
  312. package/src/modules/dateTime/directives/dateTimeBase.d.ts +3 -3
  313. package/src/modules/dateTime/directives/dateTimeBase.d.ts.map +1 -1
  314. package/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.d.ts +3 -3
  315. package/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.d.ts.map +1 -1
  316. package/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.d.ts +3 -3
  317. package/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.d.ts.map +1 -1
  318. package/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.d.ts +3 -3
  319. package/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.d.ts.map +1 -1
  320. package/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.d.ts +3 -3
  321. package/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.d.ts.map +1 -1
  322. package/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.d.ts +3 -3
  323. package/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.d.ts.map +1 -1
  324. package/src/modules/dateTime/modules/dateTime.module.d.ts +1 -1
  325. package/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.d.ts +1 -2
  326. package/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.d.ts.map +1 -1
  327. package/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.d.ts +3 -3
  328. package/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.d.ts.map +1 -1
  329. package/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.d.ts +2 -3
  330. package/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.d.ts.map +1 -1
  331. package/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.d.ts +2 -3
  332. package/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.d.ts.map +1 -1
  333. package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.d.ts +6 -7
  334. package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.d.ts.map +1 -1
  335. package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.d.ts +1 -1
  336. package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.d.ts.map +1 -1
  337. package/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.d.ts +2 -3
  338. package/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.d.ts.map +1 -1
  339. package/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.d.ts +3 -3
  340. package/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.d.ts.map +1 -1
  341. package/src/modules/dateTimePicker/directives/index.d.ts +3 -0
  342. package/src/modules/dateTimePicker/directives/index.d.ts.map +1 -1
  343. package/src/{legacy/picker → modules/dateTimePicker}/directives/loopScroll/loopScroll.directive.d.ts +18 -18
  344. package/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.d.ts.map +1 -0
  345. package/src/{legacy/picker → modules/dateTimePicker}/directives/loopScroll/loopScroll.interface.d.ts +1 -1
  346. package/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.d.ts.map +1 -0
  347. package/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.d.ts +20 -0
  348. package/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.d.ts.map +1 -0
  349. package/src/modules/dateTimePicker/interfaces/index.d.ts +1 -0
  350. package/src/modules/dateTimePicker/interfaces/index.d.ts.map +1 -1
  351. package/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.d.ts +62 -0
  352. package/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.d.ts.map +1 -0
  353. package/src/modules/dateTimePicker/modules/dateTimePicker.module.d.ts +1 -1
  354. package/src/modules/dateTimePicker/modules/dateTimePicker.module.d.ts.map +1 -1
  355. package/src/modules/index.d.ts +1 -0
  356. package/src/modules/index.d.ts.map +1 -1
  357. package/src/pipes/dateConvert.pipe.d.ts +1 -1
  358. package/src/pipes/dateConvert.pipe.d.ts.map +1 -1
  359. package/src/pipes/dateFormat.pipe.d.ts +1 -1
  360. package/src/pipes/dateFormat.pipe.d.ts.map +1 -1
  361. package/src/services/dateApi/dateApi.interface.d.ts +25 -12
  362. package/src/services/dateApi/dateApi.interface.d.ts.map +1 -1
  363. package/src/services/datePositionParser/datePositionParser.service.d.ts.map +1 -1
  364. package/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.d.ts +2 -2
  365. package/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.d.ts.map +1 -1
  366. package/src/services/dateValueProvider/dateValueProvider.service.d.ts +1 -1
  367. package/src/services/dateValueProvider/dateValueProvider.service.d.ts.map +1 -1
  368. package/styles/components/_month-calendar.scss +68 -0
  369. package/styles/core/_mixins.scss +4 -0
  370. package/styles/core/_theme.scss +11 -0
  371. package/version.bak +1 -1
  372. package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js +0 -14
  373. package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js.map +0 -1
  374. package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js +0 -2
  375. package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js.map +0 -1
  376. package/es2015/src/legacy/picker/components/dayPicker/dayPicker.component.js +0 -214
  377. package/es2015/src/legacy/picker/components/dayPicker/dayPicker.component.js.map +0 -1
  378. package/es2015/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js +0 -2
  379. package/es2015/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js.map +0 -1
  380. package/es2015/src/legacy/picker/components/monthPicker/monthPicker.component.js +0 -116
  381. package/es2015/src/legacy/picker/components/monthPicker/monthPicker.component.js.map +0 -1
  382. package/es2015/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js +0 -2
  383. package/es2015/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js.map +0 -1
  384. package/es2015/src/legacy/picker/components/picker/picker.component.js +0 -242
  385. package/es2015/src/legacy/picker/components/picker/picker.component.js.map +0 -1
  386. package/es2015/src/legacy/picker/components/pickerBase.component.js +0 -138
  387. package/es2015/src/legacy/picker/components/pickerBase.component.js.map +0 -1
  388. package/es2015/src/legacy/picker/components/pickerImplBase.component.js +0 -145
  389. package/es2015/src/legacy/picker/components/pickerImplBase.component.js.map +0 -1
  390. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js +0 -148
  391. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js.map +0 -1
  392. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js +0 -341
  393. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js.map +0 -1
  394. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js +0 -2
  395. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js.map +0 -1
  396. package/es2015/src/legacy/picker/components/yearPicker/yearPicker.component.js +0 -128
  397. package/es2015/src/legacy/picker/components/yearPicker/yearPicker.component.js.map +0 -1
  398. package/es2015/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js +0 -2
  399. package/es2015/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js.map +0 -1
  400. package/es2015/src/legacy/picker/directives/index.js +0 -4
  401. package/es2015/src/legacy/picker/directives/index.js.map +0 -1
  402. package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.directive.js +0 -213
  403. package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.directive.js.map +0 -1
  404. package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.interface.js +0 -3
  405. package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.interface.js.map +0 -1
  406. package/es2015/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.js.map +0 -1
  407. package/es2015/src/legacy/picker/interfaces.js +0 -6
  408. package/es2015/src/legacy/picker/interfaces.js.map +0 -1
  409. package/es2015/src/legacy/picker/misc/datetimePicker.interface.js +0 -2
  410. package/es2015/src/legacy/picker/misc/datetimePicker.interface.js.map +0 -1
  411. package/es2015/src/legacy/picker/misc/tokens.js +0 -6
  412. package/es2015/src/legacy/picker/misc/tokens.js.map +0 -1
  413. package/es2015/src/legacy/picker/modules/picker.module.js +0 -65
  414. package/es2015/src/legacy/picker/modules/picker.module.js.map +0 -1
  415. package/es2015/src/legacy/picker/types.js +0 -10
  416. package/es2015/src/legacy/picker/types.js.map +0 -1
  417. package/es2015/src/legacy/selector/components/selector/selector.component.animations.js +0 -15
  418. package/es2015/src/legacy/selector/components/selector/selector.component.animations.js.map +0 -1
  419. package/es2015/src/legacy/selector/components/selector/selector.component.js +0 -357
  420. package/es2015/src/legacy/selector/components/selector/selector.component.js.map +0 -1
  421. package/es2015/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js +0 -134
  422. package/es2015/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js.map +0 -1
  423. package/es2015/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js +0 -51
  424. package/es2015/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js.map +0 -1
  425. package/es2015/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js +0 -51
  426. package/es2015/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js.map +0 -1
  427. package/es2015/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js +0 -47
  428. package/es2015/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js.map +0 -1
  429. package/es2015/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js +0 -119
  430. package/es2015/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js.map +0 -1
  431. package/es2015/src/legacy/selector/interfaces.js +0 -2
  432. package/es2015/src/legacy/selector/interfaces.js.map +0 -1
  433. package/es2015/src/legacy/selector/misc/datetimeSelector.interface.js +0 -2
  434. package/es2015/src/legacy/selector/misc/datetimeSelector.interface.js.map +0 -1
  435. package/es2015/src/legacy/selector/misc/tokens.js +0 -6
  436. package/es2015/src/legacy/selector/misc/tokens.js.map +0 -1
  437. package/es2015/src/legacy/selector/modules/basicSelector.module.js +0 -20
  438. package/es2015/src/legacy/selector/modules/basicSelector.module.js.map +0 -1
  439. package/es2015/src/legacy/selector/modules/selector.module.js +0 -63
  440. package/es2015/src/legacy/selector/modules/selector.module.js.map +0 -1
  441. package/es2015/src/legacy/selector/types.js +0 -11
  442. package/es2015/src/legacy/selector/types.js.map +0 -1
  443. package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js +0 -14
  444. package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js.map +0 -1
  445. package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js +0 -2
  446. package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js.map +0 -1
  447. package/es2020/src/legacy/picker/components/dayPicker/dayPicker.component.js +0 -214
  448. package/es2020/src/legacy/picker/components/dayPicker/dayPicker.component.js.map +0 -1
  449. package/es2020/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js +0 -2
  450. package/es2020/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js.map +0 -1
  451. package/es2020/src/legacy/picker/components/monthPicker/monthPicker.component.js +0 -116
  452. package/es2020/src/legacy/picker/components/monthPicker/monthPicker.component.js.map +0 -1
  453. package/es2020/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js +0 -2
  454. package/es2020/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js.map +0 -1
  455. package/es2020/src/legacy/picker/components/picker/picker.component.js +0 -237
  456. package/es2020/src/legacy/picker/components/picker/picker.component.js.map +0 -1
  457. package/es2020/src/legacy/picker/components/pickerBase.component.js +0 -138
  458. package/es2020/src/legacy/picker/components/pickerBase.component.js.map +0 -1
  459. package/es2020/src/legacy/picker/components/pickerImplBase.component.js +0 -145
  460. package/es2020/src/legacy/picker/components/pickerImplBase.component.js.map +0 -1
  461. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js +0 -142
  462. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js.map +0 -1
  463. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js +0 -341
  464. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js.map +0 -1
  465. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js +0 -2
  466. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js.map +0 -1
  467. package/es2020/src/legacy/picker/components/yearPicker/yearPicker.component.js +0 -128
  468. package/es2020/src/legacy/picker/components/yearPicker/yearPicker.component.js.map +0 -1
  469. package/es2020/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js +0 -2
  470. package/es2020/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js.map +0 -1
  471. package/es2020/src/legacy/picker/directives/index.js +0 -4
  472. package/es2020/src/legacy/picker/directives/index.js.map +0 -1
  473. package/es2020/src/legacy/picker/directives/loopScroll/loopScroll.directive.js.map +0 -1
  474. package/es2020/src/legacy/picker/directives/loopScroll/loopScroll.interface.js +0 -3
  475. package/es2020/src/legacy/picker/directives/loopScroll/loopScroll.interface.js.map +0 -1
  476. package/es2020/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.js.map +0 -1
  477. package/es2020/src/legacy/picker/interfaces.js +0 -6
  478. package/es2020/src/legacy/picker/interfaces.js.map +0 -1
  479. package/es2020/src/legacy/picker/misc/datetimePicker.interface.js +0 -2
  480. package/es2020/src/legacy/picker/misc/datetimePicker.interface.js.map +0 -1
  481. package/es2020/src/legacy/picker/misc/tokens.js +0 -6
  482. package/es2020/src/legacy/picker/misc/tokens.js.map +0 -1
  483. package/es2020/src/legacy/picker/modules/picker.module.js +0 -65
  484. package/es2020/src/legacy/picker/modules/picker.module.js.map +0 -1
  485. package/es2020/src/legacy/picker/types.js +0 -10
  486. package/es2020/src/legacy/picker/types.js.map +0 -1
  487. package/es2020/src/legacy/selector/components/selector/selector.component.animations.js +0 -15
  488. package/es2020/src/legacy/selector/components/selector/selector.component.animations.js.map +0 -1
  489. package/es2020/src/legacy/selector/components/selector/selector.component.js +0 -345
  490. package/es2020/src/legacy/selector/components/selector/selector.component.js.map +0 -1
  491. package/es2020/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js +0 -133
  492. package/es2020/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js.map +0 -1
  493. package/es2020/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js +0 -51
  494. package/es2020/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js.map +0 -1
  495. package/es2020/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js +0 -51
  496. package/es2020/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js.map +0 -1
  497. package/es2020/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js +0 -47
  498. package/es2020/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js.map +0 -1
  499. package/es2020/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js +0 -118
  500. package/es2020/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js.map +0 -1
  501. package/es2020/src/legacy/selector/interfaces.js +0 -2
  502. package/es2020/src/legacy/selector/interfaces.js.map +0 -1
  503. package/es2020/src/legacy/selector/misc/datetimeSelector.interface.js +0 -2
  504. package/es2020/src/legacy/selector/misc/datetimeSelector.interface.js.map +0 -1
  505. package/es2020/src/legacy/selector/misc/tokens.js +0 -6
  506. package/es2020/src/legacy/selector/misc/tokens.js.map +0 -1
  507. package/es2020/src/legacy/selector/modules/basicSelector.module.js +0 -20
  508. package/es2020/src/legacy/selector/modules/basicSelector.module.js.map +0 -1
  509. package/es2020/src/legacy/selector/modules/selector.module.js +0 -63
  510. package/es2020/src/legacy/selector/modules/selector.module.js.map +0 -1
  511. package/es2020/src/legacy/selector/types.js +0 -11
  512. package/es2020/src/legacy/selector/types.js.map +0 -1
  513. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.css +0 -0
  514. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.d.ts +0 -9
  515. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.d.ts.map +0 -1
  516. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.html +0 -0
  517. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.d.ts +0 -6
  518. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.d.ts.map +0 -1
  519. package/src/legacy/picker/components/dayPicker/dayPicker.component.css +0 -22
  520. package/src/legacy/picker/components/dayPicker/dayPicker.component.d.ts +0 -80
  521. package/src/legacy/picker/components/dayPicker/dayPicker.component.d.ts.map +0 -1
  522. package/src/legacy/picker/components/dayPicker/dayPicker.component.html +0 -21
  523. package/src/legacy/picker/components/dayPicker/dayPicker.interfaces.d.ts +0 -11
  524. package/src/legacy/picker/components/dayPicker/dayPicker.interfaces.d.ts.map +0 -1
  525. package/src/legacy/picker/components/monthPicker/monthPicker.component.css +0 -4
  526. package/src/legacy/picker/components/monthPicker/monthPicker.component.d.ts +0 -53
  527. package/src/legacy/picker/components/monthPicker/monthPicker.component.d.ts.map +0 -1
  528. package/src/legacy/picker/components/monthPicker/monthPicker.component.html +0 -13
  529. package/src/legacy/picker/components/monthPicker/monthPicker.interfaces.d.ts +0 -7
  530. package/src/legacy/picker/components/monthPicker/monthPicker.interfaces.d.ts.map +0 -1
  531. package/src/legacy/picker/components/picker/picker.component.css +0 -4
  532. package/src/legacy/picker/components/picker/picker.component.d.ts +0 -105
  533. package/src/legacy/picker/components/picker/picker.component.d.ts.map +0 -1
  534. package/src/legacy/picker/components/picker/picker.component.html +0 -3
  535. package/src/legacy/picker/components/pickerBase.component.d.ts +0 -80
  536. package/src/legacy/picker/components/pickerBase.component.d.ts.map +0 -1
  537. package/src/legacy/picker/components/pickerImplBase.component.d.ts +0 -128
  538. package/src/legacy/picker/components/pickerImplBase.component.d.ts.map +0 -1
  539. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.css +0 -64
  540. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.d.ts +0 -71
  541. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.d.ts.map +0 -1
  542. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.html +0 -67
  543. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.d.ts +0 -4
  544. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.d.ts.map +0 -1
  545. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.d.ts +0 -6
  546. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.d.ts.map +0 -1
  547. package/src/legacy/picker/components/yearPicker/yearPicker.component.css +0 -4
  548. package/src/legacy/picker/components/yearPicker/yearPicker.component.d.ts +0 -58
  549. package/src/legacy/picker/components/yearPicker/yearPicker.component.d.ts.map +0 -1
  550. package/src/legacy/picker/components/yearPicker/yearPicker.component.html +0 -13
  551. package/src/legacy/picker/components/yearPicker/yearPicker.interfaces.d.ts +0 -7
  552. package/src/legacy/picker/components/yearPicker/yearPicker.interfaces.d.ts.map +0 -1
  553. package/src/legacy/picker/directives/index.d.ts +0 -4
  554. package/src/legacy/picker/directives/index.d.ts.map +0 -1
  555. package/src/legacy/picker/directives/loopScroll/loopScroll.directive.d.ts.map +0 -1
  556. package/src/legacy/picker/directives/loopScroll/loopScroll.interface.d.ts.map +0 -1
  557. package/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.d.ts +0 -20
  558. package/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.d.ts.map +0 -1
  559. package/src/legacy/picker/interfaces.d.ts +0 -6
  560. package/src/legacy/picker/interfaces.d.ts.map +0 -1
  561. package/src/legacy/picker/misc/datetimePicker.interface.d.ts +0 -193
  562. package/src/legacy/picker/misc/datetimePicker.interface.d.ts.map +0 -1
  563. package/src/legacy/picker/misc/tokens.d.ts +0 -7
  564. package/src/legacy/picker/misc/tokens.d.ts.map +0 -1
  565. package/src/legacy/picker/modules/picker.module.d.ts +0 -20
  566. package/src/legacy/picker/modules/picker.module.d.ts.map +0 -1
  567. package/src/legacy/picker/types.d.ts +0 -10
  568. package/src/legacy/picker/types.d.ts.map +0 -1
  569. package/src/legacy/selector/components/selector/selector.component.animations.d.ts +0 -5
  570. package/src/legacy/selector/components/selector/selector.component.animations.d.ts.map +0 -1
  571. package/src/legacy/selector/components/selector/selector.component.css +0 -11
  572. package/src/legacy/selector/components/selector/selector.component.d.ts +0 -157
  573. package/src/legacy/selector/components/selector/selector.component.d.ts.map +0 -1
  574. package/src/legacy/selector/components/selector/selector.component.html +0 -10
  575. package/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.d.ts +0 -80
  576. package/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.d.ts.map +0 -1
  577. package/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.d.ts +0 -23
  578. package/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.d.ts.map +0 -1
  579. package/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.d.ts +0 -23
  580. package/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.d.ts.map +0 -1
  581. package/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.d.ts +0 -22
  582. package/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.d.ts.map +0 -1
  583. package/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.d.ts +0 -54
  584. package/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.d.ts.map +0 -1
  585. package/src/legacy/selector/interfaces.d.ts +0 -2
  586. package/src/legacy/selector/interfaces.d.ts.map +0 -1
  587. package/src/legacy/selector/misc/datetimeSelector.interface.d.ts +0 -96
  588. package/src/legacy/selector/misc/datetimeSelector.interface.d.ts.map +0 -1
  589. package/src/legacy/selector/misc/tokens.d.ts +0 -7
  590. package/src/legacy/selector/misc/tokens.d.ts.map +0 -1
  591. package/src/legacy/selector/modules/basicSelector.module.d.ts +0 -11
  592. package/src/legacy/selector/modules/basicSelector.module.d.ts.map +0 -1
  593. package/src/legacy/selector/modules/selector.module.d.ts +0 -20
  594. package/src/legacy/selector/modules/selector.module.d.ts.map +0 -1
  595. package/src/legacy/selector/types.d.ts +0 -11
  596. package/src/legacy/selector/types.d.ts.map +0 -1
@@ -1 +1 @@
1
- {"version":3,"file":"momentDateApi.service.js","sourceRoot":"","sources":["../../../../moment/src/services/momentDateApi.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,UAAU,EAAgB,MAAM,eAAe,CAAC;AAChE,OAAO,EAAoC,sBAAsB,EAAqB,oBAAoB,EAAC,MAAM,iBAAiB,CAAC;AACnI,OAAO,EAAC,OAAO,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAClD,OAAO,MAA2B,MAAM,QAAQ,CAAC;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e;QAE3D,OAAO,IAAI,IAAI,CAAC,iBAAiB,CAAC,IAAI,CAAC,eAAe,CAAC,KAAK,CAAC,KAAK,CAAC,EAAE,MAAM,CAAC,CAAC;IACjF,CAAC;IAED;;OAEG;IACI,GAAG;QAEN,OAAO,IAAI,IAAI,CAAC,iBAAiB,CAAC,MAAM,EAAE,CAAC,CAAC;IAChD,CAAC;IAED;;;OAGG;IACI,SAAS,CAAC,YAAoB;QAEjC,IAAG,yBAAyB,CAAC,IAAI,CAAC,YAAY,CAAC,EAC/C;YACI,OAAO,YAAY,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,EAAE,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC,cAAc,CAAC,GAAwB,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;SACrH;QAED,OAAO,YAAY,CAAC;IACxB,CAAC;IAED;;OAEG;IACI,kBAAkB;QAErB,OAAO,MAAM,CAAC,UAAU,EAAE,CAAC,cAAc,EAAE,KAAK,CAAC,CAAC;IACtD,CAAC;IAED;;OAEG;IACI,aAAa;QAEhB,OAAO,MAAM,CAAC,aAAa,CAAC,IAAI,CAAC,CAAC;IACtC,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,KAAc;QAExB,OAAO,KAAK,YAAY,MAAM,CAAC;IACnC,CAAC;;0GAhEQ,aAAa,wDAIF,oBAAoB;8GAJ/B,aAAa;2FAAb,aAAa;kBADzB,UAAU;;0BAKM,MAAM;2BAAC,oBAAoB;;AA+D5C;;GAEG;AACH,MAAM,CAAC,MAAM,uBAAuB,GAA0D,mBAAmB,CAAC;AAElH;;GAEG;AACH,MAAM,CAAC,MAAM,2BAA2B,GACxC;IACI,OAAO,EAAE,oBAAoB;IAC7B,QAAQ,EAAE,uBAAuB;CACpC,CAAC","sourcesContent":["import {Inject, Injectable, ValueProvider} from '@angular/core';\nimport {DateApi, DateValue, DateApiObject, DateTimeRelativeParser, DateApiObjectCtor, DATE_API_OBJECT_TYPE} from '@anglr/datetime';\nimport {isBlank, isPresent} from '@jscrpt/common';\nimport moment, {LongDateFormatKey} from 'moment';\n\n/**\n * Instance of object wrapping TDate, allowing manipulation with it\n */\nexport class MomentDateApiObject implements DateApiObject<moment.Moment>\n{\n //######################### protected fields #########################\n\n /**\n * Original value that is not changed unless 'updateOriginal' is called\n */\n protected _originalValue: moment.Moment;\n\n /**\n * Instance of date\n */\n protected _value: moment.Moment;\n\n //######################### public properties - implementation of DateApiObject #########################\n\n /**\n * Original value that is not changed unless 'updateOriginal' is called\n */\n public get originalValue(): moment.Moment\n {\n return this._originalValue;\n }\n\n /**\n * Instance of date\n */\n public get value(): moment.Moment\n {\n return this._value;\n }\n\n //######################### constructor #########################\n constructor(value: DateValue|moment.Moment, format?: string)\n {\n this._value = this._originalValue = moment(value, format);\n }\n\n //######################### public methods - implementation of DateApiObject #########################\n\n /**\n * Gets indication whether provided instance of date is valid\n */\n public isValid(): boolean\n {\n return this._value.isValid();\n }\n\n /**\n * Gets indication whether provided instance of date is weekend day\n */\n public isWeekend(): boolean\n {\n const weekday = this._value.isoWeekday();\n\n return weekday == 6 || weekday == 7;\n }\n\n /**\n * Formats date value\n * @param format - Format token used for creating formatted string\n */\n public format(format: string): string\n {\n return this._value.format(format.replace(/y/g, 'Y').replace(/d/g, 'D'));\n }\n\n /**\n * @inheritdoc\n */\n public unixTimestamp(): number\n {\n return this._value.unix();\n }\n\n /**\n * Updates value to start date and time of current decade\n * @returns Itself for fluent API\n */\n public startOfDecade(): DateApiObject<moment.Moment>\n {\n const diff = (this._value.year() % 10);\n\n this._value = moment(this._value).subtract(diff, 'years').startOf('year');\n \n return this;\n }\n\n /**\n * Updates value to end date and time of current decade\n * @returns Itself for fluent API\n */\n public endOfDecade(): DateApiObject<moment.Moment>\n {\n const diff = 9 - (this._value.year() % 10);\n\n this._value = moment(this._value).add(diff, 'years').endOf('year');\n \n return this;\n }\n\n /**\n * Updates value to start date and time of current year\n * @returns Itself for fluent API\n */\n public startOfYear(): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).startOf('year');\n\n return this;\n }\n\n /**\n * Updates value to end date and time of current year\n * @returns Itself for fluent API\n */\n public endOfYear(): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).endOf('year');\n\n return this;\n }\n\n /**\n * Add years, if count not specified adds 1 year\n * @param count - Number of years count\n * @returns Itself for fluent API\n */\n public addYears(count?: number): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).add(count ?? 1, 'years');\n\n return this;\n }\n\n /**\n * Subtract years, if count not specified subtract 1 year\n * @param count - Number of years count\n * @returns Itself for fluent API\n */\n public subtractYears(count?: number): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).subtract(count ?? 1, 'years');\n\n return this;\n }\n\n /**\n * Updates value to start date and time of current month\n * @returns Itself for fluent API\n */\n public startOfMonth(): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).startOf('month');\n\n return this;\n }\n\n /**\n * Updates value to end date and time of current month\n * @returns Itself for fluent API\n */\n public endOfMonth(): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).endOf('month');\n\n return this;\n }\n\n /**\n * Add months, if count not specified adds 1 month\n * @param count - Number of months count\n * @returns Itself for fluent API\n */\n public addMonths(count?: number): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).add(count ?? 1, 'months');\n\n return this;\n }\n\n /**\n * Subtract months, if count not specified subtract 1 month\n * @param count - Number of months count\n * @returns Itself for fluent API\n */\n public subtractMonths(count?: number): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).subtract(count ?? 1, 'months');\n\n return this;\n }\n\n /**\n * Updates value to start date and time of current week\n * @returns Itself for fluent API\n */\n public startOfWeek(): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).startOf('week');\n\n return this;\n }\n\n /**\n * Updates value to end date and time of current week\n * @returns Itself for fluent API\n */\n public endOfWeek(): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).endOf('week');\n\n return this;\n }\n\n /**\n * Add weeks, if count not specified adds 1 week\n * @param count - Number of weeks count\n * @returns Itself for fluent API\n */\n public addWeeks(count?: number): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).add(count ?? 1, 'weeks');\n\n return this;\n }\n\n /**\n * Subtract weeks, if count not specified subtract 1 week\n * @param count - Number of weeks count\n * @returns Itself for fluent API\n */\n public subtractWeeks(count?: number): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).subtract(count ?? 1, 'weeks');\n\n return this;\n }\n\n /**\n * Updates value to start date and time of current day\n * @returns Itself for fluent API\n */\n public startOfDay(): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).startOf('day');\n\n return this;\n }\n\n /**\n * Updates value to end date and time of current day\n * @returns Itself for fluent API\n */\n public endOfDay(): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).endOf('day');\n\n return this;\n }\n\n /**\n * Add days, if count not specified adds 1 day\n * @param count - Number of days count\n * @returns Itself for fluent API\n */\n public addDays(count?: number): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).add(count ?? 1, 'days');\n\n return this;\n }\n\n /**\n * Subtract days, if count not specified subtract 1 day\n * @param count - Number of days count\n * @returns Itself for fluent API\n */\n public subtractDays(count?: number): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).subtract(count ?? 1, 'days');\n\n return this;\n }\n\n /**\n * Updates value to start date and time of current hour\n * @returns Itself for fluent API\n */\n public startOfHour(): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).startOf('hour');\n\n return this;\n }\n\n /**\n * Updates value to end date and time of current hour\n * @returns Itself for fluent API\n */\n public endOfHour(): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).endOf('hour');\n\n return this;\n }\n\n /**\n * Add hours, if count not specified adds 1 hour\n * @param count - Number of hours count\n * @returns Itself for fluent API\n */\n public addHours(count?: number): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).add(count ?? 1, 'hours');\n\n return this;\n }\n\n /**\n * Subtract hours, if count not specified subtract 1 hour\n * @param count - Number of hours count\n * @returns Itself for fluent API\n */\n public subtractHours(count?: number): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).subtract(count ?? 1, 'hours');\n\n return this;\n }\n\n /**\n * Updates value to start date and time of current minute\n * @returns Itself for fluent API\n */\n public startOfMinute(): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).startOf('minute');\n\n return this;\n }\n\n /**\n * Updates value to end date and time of current minute\n * @returns Itself for fluent API\n */\n public endOfMinute(): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).endOf('minute');\n\n return this;\n }\n\n /**\n * Add minutes, if count not specified adds 1 minute\n * @param count - Number of minutes count\n * @returns Itself for fluent API\n */\n public addMinutes(count?: number): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).add(count ?? 1, 'minutes');\n\n return this;\n }\n\n /**\n * Subtract minutes, if count not specified subtract 1 minute\n * @param count - Number of minutes count\n * @returns Itself for fluent API\n */\n public subtractMinutes(count?: number): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).subtract(count ?? 1, 'minutes');\n\n return this;\n }\n\n /**\n * Gets number of days in month\n */\n public daysInMonth(): number\n {\n return this._value.daysInMonth();\n }\n\n /**\n * Gets year\n */\n public year(): number;\n /**\n * Sets year\n * @param year - Year to be set\n */\n public year(year: number): DateApiObject<moment.Moment>;\n /**\n * Gets or sets year\n * @param year - If specified, sets year\n */\n public year(year?: number): DateApiObject<moment.Moment>|number\n {\n if(isPresent(year))\n {\n this._value = moment(this._value).year(year);\n\n return this;\n }\n\n return this._value.year();\n }\n\n /**\n * Gets month\n */\n public month(): number\n /**\n * Sets month\n * @param month - Month to be set\n */\n public month(month: number): DateApiObject<moment.Moment>\n /**\n * Gets or sets month\n * @param month - If specified, sets month\n */\n public month(month?: number): DateApiObject<moment.Moment>|number\n {\n if(isPresent(month))\n {\n this._value = moment(this._value).month(month);\n\n return this;\n }\n\n return this._value.month();\n }\n\n /**\n * Gets day of month one based\n */\n public dayOfMonth(): number;\n /**\n * Sets day of month one based\n * @param day - Day of month to be set\n */\n public dayOfMonth(day: number): DateApiObject<moment.Moment>;\n /**\n * Gets or sets day of month one based\n * @param day - If specified, sets day of month\n */\n public dayOfMonth(day?: number): DateApiObject<moment.Moment>|number\n {\n if(isPresent(day))\n {\n this._value = moment(this._value).date(day);\n\n return this;\n }\n\n return this._value.date();\n }\n\n /**\n * Gets day of week zero based, first is monday\n */\n public dayOfWeek(): number;\n /**\n * Sets day of week zero based, first is monday\n * @param day - Day of week to be set\n */\n public dayOfWeek(day: number): DateApiObject<moment.Moment>;\n /**\n * Gets or sets day of week zero based, first is monday\n * @param day - If specified, sets day of week\n */\n public dayOfWeek(day?: number): number|DateApiObject<moment.Moment>\n {\n if(isPresent(day))\n {\n this._value = moment(this._value).weekday(day);\n\n return this;\n }\n\n return this._value.weekday();\n }\n\n /**\n * Gets hours zero based\n */\n public hour(): number;\n /**\n * Sets hours zero\n * @param hour - hour to be set\n */\n public hour(hour: number): DateApiObject<moment.Moment>;\n /**\n * Gets or sets hours zero\n * @param hour - If specified, sets hour\n */\n public hour(hour?: number): DateApiObject<moment.Moment>|number\n {\n if(isPresent(hour))\n {\n this._value = moment(this._value).hours(hour);\n\n return this;\n }\n\n return this._value.hours();\n }\n\n /**\n * Gets minutes zero based\n */\n public minute(): number;\n /**\n * Sets minutes zero based\n * @param minute - minutes to be set\n */\n public minute(minute: number): DateApiObject<moment.Moment>;\n /**\n * Gets or sets minutes zero based\n * @param minute - If specified, sets minutes\n */\n public minute(minute?: number): DateApiObject<moment.Moment>|number\n {\n if(isPresent(minute))\n {\n this._value = moment(this._value).minutes(minute);\n\n return this;\n }\n\n return this._value.minutes();\n }\n\n /**\n * Gets indication whether current value is before 'date'\n * @param date - Date which is this date compared to\n */\n public isBefore(date: moment.Moment): boolean\n {\n return this._value.isBefore(date);\n }\n\n /**\n * Gets indication whether current value is after 'date'\n * @param date - Date which is this date compared to\n */\n public isAfter(date: moment.Moment): boolean\n {\n return this._value.isAfter(date);\n }\n\n /**\n * Gets number of days between this and provided date\n * @param date - Date which is used for computation of diff against\n */\n public diffDays(date: moment.Moment): number\n {\n return moment(this._value).startOf('day').diff(moment(date).startOf('day'), 'days');\n }\n\n /**\n * Compares whether this date is same week as provided date\n * @param date - Date which is used for comparison of same week\n */\n public isSameWeek(date: moment.Moment): boolean\n {\n return this._value.isSame(date, 'week');\n }\n\n /**\n * Compares whether this date is same decade as provided date\n * @param date - Date which is used for comparison of same decade\n */\n public isSameDecade(date: moment.Moment): boolean\n {\n const year = this._value.year();\n const start = year - (year % 10);\n const end = start + 10;\n\n return date.year() >= start && date.year() < end;\n }\n\n /**\n * Compares whether this date is same year as provided date\n * @param date - Date which is used for comparison of same year\n */\n public isSameYear(date: moment.Moment): boolean\n {\n return this._value.isSame(date, 'year');\n }\n\n /**\n * Compares whether this date is same month as provided date\n * @param date - Date which is used for comparison of same month\n */\n public isSameMonth(date: moment.Moment): boolean\n {\n return this._value.isSame(date, 'month');\n }\n\n /**\n * Compares whether this date is same day as provided date\n * @param date - Date which is used for comparison of same day\n */\n public isSameDay(date: moment.Moment): boolean\n {\n return this._value.isSame(date, 'day');\n }\n\n /**\n * Creates clone of this instance, value and originalValue have same value and are cloned from value\n */\n public clone(): DateApiObject<moment.Moment>\n {\n return new MomentDateApiObject(moment(this._value));\n }\n\n /**\n * Creates clone of this instance, value and originalValue have same value and are cloned from originalValue\n */\n public cloneOriginal(): DateApiObject<moment.Moment>\n {\n return new MomentDateApiObject(moment(this._originalValue));\n }\n\n /**\n * Updates originalValue, if value is not provided originalValue is set to value\n * @param value - Value to be set as original, or null (value will be used as value)\n * @returns Itself for fluent API\n */\n public updateOriginal(value?: moment.Moment): DateApiObject<moment.Moment>\n {\n if(isBlank(value))\n {\n this._originalValue = this._value;\n }\n else\n {\n this._value = this._originalValue = value!;\n }\n\n return this;\n }\n\n /**\n * Changes value to same value as originalValue\n * @returns Itself for fluent API\n */\n public resetOriginal(): DateApiObject<moment.Moment>\n {\n this._value = this._originalValue;\n\n return this;\n }\n}\n\n/**\n * Date api using MomentJS, used for obtaining DateApi wrapper object\n */\n@Injectable()\nexport class MomentDateApi implements DateApi<moment.Moment>\n{\n //######################### constructor #########################\n constructor(protected _relativeParser: DateTimeRelativeParser<moment.Moment>,\n @Inject(DATE_API_OBJECT_TYPE) protected _dateApiObjecType: DateApiObjectCtor<MomentDateApiObject, moment.Moment>)\n {\n }\n\n //######################### public methods #########################\n\n /**\n * Gets wrapping object used for manipulation\n * @param value - Value to be converted (parsed) and used for manipulation\n * @param format - Format string used for parsing string value\n */\n public getValue(value: DateValue|moment.Moment, format?: string): DateApiObject<moment.Moment>\n {\n return new this._dateApiObjecType(this._relativeParser.parse(value), format);\n }\n\n /**\n * Gets wrapping object used for manipulation instantiated to current date and time\n */\n public now(): DateApiObject<moment.Moment>\n {\n return new this._dateApiObjecType(moment());\n }\n\n /**\n * Gets format string using pseudo format\n * @param pseudoFormat - Pseudo format token, used for obtaining 'date' or 'time' format string\n */\n public getFormat(pseudoFormat: string): string\n {\n if(/^((LT|LTS|L+|l+)\\s*)*$/g.test(pseudoFormat))\n {\n return pseudoFormat.split(' ').map(itm => moment.localeData().longDateFormat(itm as LongDateFormatKey)).join(' ');\n }\n\n return pseudoFormat;\n }\n\n /**\n * Gets information \n */\n public weekStartsOnMonday(): boolean\n {\n return moment.localeData().firstDayOfWeek() === 1;\n }\n\n /**\n * Gets array of weekday names in short format, order of days is dependent on locale\n */\n public weekdaysShort(): string[]\n {\n return moment.weekdaysShort(true);\n }\n\n /**\n * @inheritdoc\n */\n public isDate(value: unknown): value is moment.Moment\n {\n return value instanceof moment;\n }\n}\n\n/**\n * Type that represents creation of DateApiObject for moment\n */\nexport const momentDateApiObjectType: DateApiObjectCtor<MomentDateApiObject, moment.Moment> = MomentDateApiObject;\n\n/**\n * Injection token used for injecting type that creates instance of DateApiObject for moment\n */\nexport const MOMENT_DATE_API_OBJECT_TYPE: ValueProvider =\n{\n provide: DATE_API_OBJECT_TYPE,\n useValue: momentDateApiObjectType\n};\n"]}
1
+ {"version":3,"file":"momentDateApi.service.js","sourceRoot":"","sources":["../../../../moment/src/services/momentDateApi.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,UAAU,EAAgB,MAAM,eAAe,CAAC;AAChE,OAAO,EAAoC,sBAAsB,EAAqB,oBAAoB,EAAa,MAAM,iBAAiB,CAAC;AAC/I,OAAO,EAAC,OAAO,EAAE,SAAS,EAAC,MAAM,gBAAgB,CAAC;AAClD,OAAO,MAA2B,MAAM,QAAQ,CAAC;;;AAEjD;;GAEG;AACH,MAAM,OAAO,mBAAmB;IAgC5B,iEAAiE;IACjE,YAAY,KAA8B,EAAE,MAAe;QAEvD,IAAI,CAAC,MAAM,GAAG,IAAI,CAAC,cAAc,GAAG,MAAM,CAAC,KAAK,EAAE,MAAM,CAAC,CAAC;IAC9D,CAAC;IAtBD,yGAAyG;IAEzG;;OAEG;IACH,IAAW,aAAa;QAEpB,OAAO,IAAI,CAAC,cAAc,CAAC;IAC/B,CAAC;IAED;;OAEG;IACH,IAAW,KAAK;QAEZ,OAAO,IAAI,CAAC,MAAM,CAAC;IACvB,CAAC;IAQD,sGAAsG;IAEtG;;OAEG;IACI,OAAO;QAEV,OAAO,IAAI,CAAC,MAAM,CAAC,OAAO,EAAE,CAAC;IACjC,CAAC;IAED;;OAEG;IACI,SAAS;QAEZ,MAAM,OAAO,GAAG,IAAI,CAAC,MAAM,CAAC,UAAU,EAAE,CAAC;QAEzC,OAAO,OAAO,IAAI,CAAC,IAAI,OAAO,IAAI,CAAC,CAAC;IACxC,CAAC;IAED;;;OAGG;IACI,MAAM,CAAC,MAAc;QAExB,OAAO,IAAI,CAAC,MAAM,CAAC,MAAM,CAAC,MAAM,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,OAAO,CAAC,IAAI,EAAE,GAAG,CAAC,CAAC,CAAC;IAC5E,CAAC;IAED;;OAEG;IACI,SAAS;QAEZ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import {DateApi, DateValue, DateApiObject, DateTimeRelativeParser, DateApiObjectCtor, DATE_API_OBJECT_TYPE, DateObject} from '@anglr/datetime';\nimport {isBlank, isPresent} from '@jscrpt/common';\nimport moment, {LongDateFormatKey} from 'moment';\n\n/**\n * Instance of object wrapping TDate, allowing manipulation with it\n */\nexport class MomentDateApiObject implements DateApiObject<moment.Moment>\n{\n //######################### protected fields #########################\n\n /**\n * Original value that is not changed unless 'updateOriginal' is called\n */\n protected _originalValue: moment.Moment;\n\n /**\n * Instance of date\n */\n protected _value: moment.Moment;\n\n //######################### public properties - implementation of DateApiObject #########################\n\n /**\n * Original value that is not changed unless 'updateOriginal' is called\n */\n public get originalValue(): moment.Moment\n {\n return this._originalValue;\n }\n\n /**\n * Instance of date\n */\n public get value(): moment.Moment\n {\n return this._value;\n }\n\n //######################### constructor #########################\n constructor(value: DateValue|moment.Moment, format?: string)\n {\n this._value = this._originalValue = moment(value, format);\n }\n\n //######################### public methods - implementation of DateApiObject #########################\n\n /**\n * Gets indication whether provided instance of date is valid\n */\n public isValid(): boolean\n {\n return this._value.isValid();\n }\n\n /**\n * Gets indication whether provided instance of date is weekend day\n */\n public isWeekend(): boolean\n {\n const weekday = this._value.isoWeekday();\n\n return weekday == 6 || weekday == 7;\n }\n\n /**\n * Formats date value\n * @param format - Format token used for creating formatted string\n */\n public format(format: string): string\n {\n return this._value.format(format.replace(/y/g, 'Y').replace(/d/g, 'D'));\n }\n\n /**\n * @inheritdoc\n */\n public formatISO(): string\n {\n return this._value.format();\n }\n\n /**\n * @inheritdoc\n */\n public unixTimestamp(): number\n {\n return this._value.unix();\n }\n\n /**\n * Updates value to start date and time of current decade\n * @returns Itself for fluent API\n */\n public startOfDecade(): DateApiObject<moment.Moment>\n {\n const diff = (this._value.year() % 10);\n\n this._value = moment(this._value).subtract(diff, 'years').startOf('year');\n \n return this;\n }\n\n /**\n * Updates value to end date and time of current decade\n * @returns Itself for fluent API\n */\n public endOfDecade(): DateApiObject<moment.Moment>\n {\n const diff = 9 - (this._value.year() % 10);\n\n this._value = moment(this._value).add(diff, 'years').endOf('year');\n \n return this;\n }\n\n /**\n * Updates value to start date and time of current year\n * @returns Itself for fluent API\n */\n public startOfYear(): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).startOf('year');\n\n return this;\n }\n\n /**\n * Updates value to end date and time of current year\n * @returns Itself for fluent API\n */\n public endOfYear(): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).endOf('year');\n\n return this;\n }\n\n /**\n * Add years, if count not specified adds 1 year\n * @param count - Number of years count\n * @returns Itself for fluent API\n */\n public addYears(count?: number): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).add(count ?? 1, 'years');\n\n return this;\n }\n\n /**\n * Subtract years, if count not specified subtract 1 year\n * @param count - Number of years count\n * @returns Itself for fluent API\n */\n public subtractYears(count?: number): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).subtract(count ?? 1, 'years');\n\n return this;\n }\n\n /**\n * Updates value to start date and time of current month\n * @returns Itself for fluent API\n */\n public startOfMonth(): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).startOf('month');\n\n return this;\n }\n\n /**\n * Updates value to end date and time of current month\n * @returns Itself for fluent API\n */\n public endOfMonth(): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).endOf('month');\n\n return this;\n }\n\n /**\n * Add months, if count not specified adds 1 month\n * @param count - Number of months count\n * @returns Itself for fluent API\n */\n public addMonths(count?: number): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).add(count ?? 1, 'months');\n\n return this;\n }\n\n /**\n * Subtract months, if count not specified subtract 1 month\n * @param count - Number of months count\n * @returns Itself for fluent API\n */\n public subtractMonths(count?: number): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).subtract(count ?? 1, 'months');\n\n return this;\n }\n\n /**\n * Updates value to start date and time of current week\n * @returns Itself for fluent API\n */\n public startOfWeek(): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).startOf('week');\n\n return this;\n }\n\n /**\n * Updates value to end date and time of current week\n * @returns Itself for fluent API\n */\n public endOfWeek(): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).endOf('week');\n\n return this;\n }\n\n /**\n * Add weeks, if count not specified adds 1 week\n * @param count - Number of weeks count\n * @returns Itself for fluent API\n */\n public addWeeks(count?: number): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).add(count ?? 1, 'weeks');\n\n return this;\n }\n\n /**\n * Subtract weeks, if count not specified subtract 1 week\n * @param count - Number of weeks count\n * @returns Itself for fluent API\n */\n public subtractWeeks(count?: number): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).subtract(count ?? 1, 'weeks');\n\n return this;\n }\n\n /**\n * Updates value to start date and time of current day\n * @returns Itself for fluent API\n */\n public startOfDay(): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).startOf('day');\n\n return this;\n }\n\n /**\n * Updates value to end date and time of current day\n * @returns Itself for fluent API\n */\n public endOfDay(): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).endOf('day');\n\n return this;\n }\n\n /**\n * Add days, if count not specified adds 1 day\n * @param count - Number of days count\n * @returns Itself for fluent API\n */\n public addDays(count?: number): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).add(count ?? 1, 'days');\n\n return this;\n }\n\n /**\n * Subtract days, if count not specified subtract 1 day\n * @param count - Number of days count\n * @returns Itself for fluent API\n */\n public subtractDays(count?: number): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).subtract(count ?? 1, 'days');\n\n return this;\n }\n\n /**\n * Updates value to start date and time of current hour\n * @returns Itself for fluent API\n */\n public startOfHour(): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).startOf('hour');\n\n return this;\n }\n\n /**\n * Updates value to end date and time of current hour\n * @returns Itself for fluent API\n */\n public endOfHour(): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).endOf('hour');\n\n return this;\n }\n\n /**\n * Add hours, if count not specified adds 1 hour\n * @param count - Number of hours count\n * @returns Itself for fluent API\n */\n public addHours(count?: number): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).add(count ?? 1, 'hours');\n\n return this;\n }\n\n /**\n * Subtract hours, if count not specified subtract 1 hour\n * @param count - Number of hours count\n * @returns Itself for fluent API\n */\n public subtractHours(count?: number): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).subtract(count ?? 1, 'hours');\n\n return this;\n }\n\n /**\n * Updates value to start date and time of current minute\n * @returns Itself for fluent API\n */\n public startOfMinute(): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).startOf('minute');\n\n return this;\n }\n\n /**\n * Updates value to end date and time of current minute\n * @returns Itself for fluent API\n */\n public endOfMinute(): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).endOf('minute');\n\n return this;\n }\n\n /**\n * Add minutes, if count not specified adds 1 minute\n * @param count - Number of minutes count\n * @returns Itself for fluent API\n */\n public addMinutes(count?: number): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).add(count ?? 1, 'minutes');\n\n return this;\n }\n\n /**\n * Subtract minutes, if count not specified subtract 1 minute\n * @param count - Number of minutes count\n * @returns Itself for fluent API\n */\n public subtractMinutes(count?: number): DateApiObject<moment.Moment>\n {\n this._value = moment(this._value).subtract(count ?? 1, 'minutes');\n\n return this;\n }\n\n /**\n * Gets number of days in month\n */\n public daysInMonth(): number\n {\n return this._value.daysInMonth();\n }\n\n /**\n * Gets year\n */\n public year(): number;\n /**\n * Sets year\n * @param year - Year to be set\n */\n public year(year: number): DateApiObject<moment.Moment>;\n /**\n * Gets or sets year\n * @param year - If specified, sets year\n */\n public year(year?: number): DateApiObject<moment.Moment>|number\n {\n if(isPresent(year))\n {\n this._value = moment(this._value).year(year);\n\n return this;\n }\n\n return this._value.year();\n }\n\n /**\n * Gets month\n */\n public month(): number\n /**\n * Sets month\n * @param month - Month to be set\n */\n public month(month: number): DateApiObject<moment.Moment>\n /**\n * Gets or sets month\n * @param month - If specified, sets month\n */\n public month(month?: number): DateApiObject<moment.Moment>|number\n {\n if(isPresent(month))\n {\n this._value = moment(this._value).month(month);\n\n return this;\n }\n\n return this._value.month();\n }\n\n /**\n * Gets day of month one based\n */\n public dayOfMonth(): number;\n /**\n * Sets day of month one based\n * @param day - Day of month to be set\n */\n public dayOfMonth(day: number): DateApiObject<moment.Moment>;\n /**\n * Gets or sets day of month one based\n * @param day - If specified, sets day of month\n */\n public dayOfMonth(day?: number): DateApiObject<moment.Moment>|number\n {\n if(isPresent(day))\n {\n this._value = moment(this._value).date(day);\n\n return this;\n }\n\n return this._value.date();\n }\n\n /**\n * Gets day of week zero based, first is monday\n */\n public dayOfWeek(): number;\n /**\n * Sets day of week zero based, first is monday\n * @param day - Day of week to be set\n */\n public dayOfWeek(day: number): DateApiObject<moment.Moment>;\n /**\n * Gets or sets day of week zero based, first is monday\n * @param day - If specified, sets day of week\n */\n public dayOfWeek(day?: number): number|DateApiObject<moment.Moment>\n {\n if(isPresent(day))\n {\n this._value = moment(this._value).weekday(day);\n\n return this;\n }\n\n return this._value.weekday();\n }\n\n /**\n * Gets hours zero based\n */\n public hour(): number;\n /**\n * Sets hours zero\n * @param hour - hour to be set\n */\n public hour(hour: number): DateApiObject<moment.Moment>;\n /**\n * Gets or sets hours zero\n * @param hour - If specified, sets hour\n */\n public hour(hour?: number): DateApiObject<moment.Moment>|number\n {\n if(isPresent(hour))\n {\n this._value = moment(this._value).hours(hour);\n\n return this;\n }\n\n return this._value.hours();\n }\n\n /**\n * Gets minutes zero based\n */\n public minute(): number;\n /**\n * Sets minutes zero based\n * @param minute - minutes to be set\n */\n public minute(minute: number): DateApiObject<moment.Moment>;\n /**\n * Gets or sets minutes zero based\n * @param minute - If specified, sets minutes\n */\n public minute(minute?: number): DateApiObject<moment.Moment>|number\n {\n if(isPresent(minute))\n {\n this._value = moment(this._value).minutes(minute);\n\n return this;\n }\n\n return this._value.minutes();\n }\n\n /**\n * Gets indication whether current value is before 'date'\n * @param date - Date which is this date compared to\n */\n public isBefore(date: DateObject<moment.Moment>): boolean\n {\n date = this.getDate(date);\n\n return this._value.isBefore(date);\n }\n\n /**\n * Gets indication whether current value is after 'date'\n * @param date - Date which is this date compared to\n */\n public isAfter(date: DateObject<moment.Moment>): boolean\n {\n date = this.getDate(date);\n\n return this._value.isAfter(date);\n }\n\n /**\n * Gets number of days between this and provided date\n * @param date - Date which is used for computation of diff against\n */\n public diffDays(date: DateObject<moment.Moment>): number\n {\n date = this.getDate(date);\n\n return moment(this._value).startOf('day').diff(moment(date).startOf('day'), 'days');\n }\n\n /**\n * Compares whether this date is same week as provided date\n * @param date - Date which is used for comparison of same week\n */\n public isSameWeek(date: DateObject<moment.Moment>): boolean\n {\n date = this.getDate(date);\n\n return this._value.isSame(date, 'week');\n }\n\n /**\n * Compares whether this date is same decade as provided date\n * @param date - Date which is used for comparison of same decade\n */\n public isSameDecade(date: DateObject<moment.Moment>): boolean\n {\n date = this.getDate(date);\n\n const year = this._value.year();\n const start = year - (year % 10);\n const end = start + 10;\n\n return date.year() >= start && date.year() < end;\n }\n\n /**\n * Compares whether this date is same year as provided date\n * @param date - Date which is used for comparison of same year\n */\n public isSameYear(date: DateObject<moment.Moment>): boolean\n {\n date = this.getDate(date);\n\n return this._value.isSame(date, 'year');\n }\n\n /**\n * Compares whether this date is same month as provided date\n * @param date - Date which is used for comparison of same month\n */\n public isSameMonth(date: DateObject<moment.Moment>): boolean\n {\n date = this.getDate(date);\n\n return this._value.isSame(date, 'month');\n }\n\n /**\n * Compares whether this date is same day as provided date\n * @param date - Date which is used for comparison of same day\n */\n public isSameDay(date: DateObject<moment.Moment>): boolean\n {\n date = this.getDate(date);\n\n return this._value.isSame(date, 'day');\n }\n\n /**\n * @inheritdoc\n */\n public isSame(date: DateObject<moment.Moment>): boolean\n {\n date = this.getDate(date);\n\n return this._value.isSame(date);\n }\n\n /**\n * Creates clone of this instance, value and originalValue have same value and are cloned from value\n */\n public clone(): DateApiObject<moment.Moment>\n {\n return new MomentDateApiObject(moment(this._value));\n }\n\n /**\n * Creates clone of this instance, value and originalValue have same value and are cloned from originalValue\n */\n public cloneOriginal(): DateApiObject<moment.Moment>\n {\n return new MomentDateApiObject(moment(this._originalValue));\n }\n\n /**\n * Updates originalValue, if value is not provided originalValue is set to value\n * @param value - Value to be set as original, or null (value will be used as value)\n * @returns Itself for fluent API\n */\n public updateOriginal(value?: moment.Moment): DateApiObject<moment.Moment>\n {\n if(isBlank(value))\n {\n this._originalValue = this._value;\n }\n else\n {\n this._value = this._originalValue = value!;\n }\n\n return this;\n }\n\n /**\n * Changes value to same value as originalValue\n * @returns Itself for fluent API\n */\n public resetOriginal(): DateApiObject<moment.Moment>\n {\n this._value = this._originalValue;\n\n return this;\n }\n\n //######################### protected methods #########################\n\n /**\n * Converts date object to date\n * @param value - Value to be converted to date\n */\n protected getDate(value: DateObject<moment.Moment>): moment.Moment\n {\n if(value instanceof moment)\n {\n return value as moment.Moment;\n }\n\n return (value as DateApiObject<moment.Moment>).value;\n }\n}\n\n/**\n * Date api using MomentJS, used for obtaining DateApi wrapper object\n */\n@Injectable()\nexport class MomentDateApi implements DateApi<moment.Moment>\n{\n //######################### constructor #########################\n constructor(protected _relativeParser: DateTimeRelativeParser<moment.Moment>,\n @Inject(DATE_API_OBJECT_TYPE) protected _dateApiObjecType: DateApiObjectCtor<moment.Moment, MomentDateApiObject>)\n {\n }\n\n //######################### public methods #########################\n\n /**\n * Gets wrapping object used for manipulation\n * @param value - Value to be converted (parsed) and used for manipulation\n * @param format - Format string used for parsing string value\n */\n public getValue(value: DateValue|moment.Moment, format?: string): DateApiObject<moment.Moment>\n {\n return new this._dateApiObjecType(this._relativeParser.parse(value), format);\n }\n\n /**\n * Gets wrapping object used for manipulation instantiated to current date and time\n */\n public now(): DateApiObject<moment.Moment>\n {\n return new this._dateApiObjecType(moment());\n }\n\n /**\n * Gets format string using pseudo format\n * @param pseudoFormat - Pseudo format token, used for obtaining 'date' or 'time' format string\n */\n public getFormat(pseudoFormat: string): string\n {\n if(/^((LT|LTS|L+|l+)\\s*)*$/g.test(pseudoFormat))\n {\n return pseudoFormat.split(' ').map(itm => moment.localeData().longDateFormat(itm as LongDateFormatKey)).join(' ');\n }\n\n return pseudoFormat;\n }\n\n /**\n * Gets information \n */\n public weekStartsOnMonday(): boolean\n {\n return moment.localeData().firstDayOfWeek() === 1;\n }\n\n /**\n * Gets array of weekday names in short format, order of days is dependent on locale\n */\n public weekdaysShort(): string[]\n {\n return moment.weekdaysShort(true);\n }\n\n /**\n * @inheritdoc\n */\n public isDate(value: unknown): value is moment.Moment\n {\n return value instanceof moment;\n }\n}\n\n/**\n * Type that represents creation of DateApiObject for moment\n */\nexport const momentDateApiObjectType: DateApiObjectCtor<moment.Moment, MomentDateApiObject> = MomentDateApiObject;\n\n/**\n * Injection token used for injecting type that creates instance of DateApiObject for moment\n */\nexport const MOMENT_DATE_API_OBJECT_TYPE: ValueProvider =\n{\n provide: DATE_API_OBJECT_TYPE,\n useValue: momentDateApiObjectType\n};\n"]}
@@ -1,3 +1,6 @@
1
+ export * from './simpleDatePickerInput/simpleDatePickerInput.directive';
2
+ export * from './simpleDateTimeInputHandler/simpleDateTimeInputHandler.directive';
3
+ export * from './simpleDateTimePickerInput/simpleDateTimePickerInput.directive';
1
4
  export * from './withTime/withTime.directive';
2
5
  export * from './withToday/withToday.directive';
3
6
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/directives/index.ts"],"names":[],"mappings":"AAAA,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC","sourcesContent":["export * from './withTime/withTime.directive';\nexport * from './withToday/withToday.directive';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/directives/index.ts"],"names":[],"mappings":"AAAA,cAAc,yDAAyD,CAAC;AACxE,cAAc,mEAAmE,CAAC;AAClF,cAAc,iEAAiE,CAAC;AAChF,cAAc,+BAA+B,CAAC;AAC9C,cAAc,iCAAiC,CAAC","sourcesContent":["export * from './simpleDatePickerInput/simpleDatePickerInput.directive';\nexport * from './simpleDateTimeInputHandler/simpleDateTimeInputHandler.directive';\nexport * from './simpleDateTimePickerInput/simpleDateTimePickerInput.directive';\nexport * from './withTime/withTime.directive';\nexport * from './withToday/withToday.directive';\n"]}
@@ -0,0 +1,37 @@
1
+ import { Directive } from '@angular/core';
2
+ import { DateTimeInputSADirective, DateTimePickerSADirective } from '../../modules';
3
+ import { SimpleDateTimeInputHandlerSADirective } from '../simpleDateTimeInputHandler/simpleDateTimeInputHandler.directive';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "../../modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive";
6
+ import * as i2 from "../../modules/dateTime/directives/dateTimeInput/dateTimeInput.directive";
7
+ import * as i3 from "../simpleDateTimeInputHandler/simpleDateTimeInputHandler.directive";
8
+ /**
9
+ * Directive that combines date picker with simple date input
10
+ */
11
+ export class SimpleDatePickerInputSADirective {
12
+ }
13
+ SimpleDatePickerInputSADirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SimpleDatePickerInputSADirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
14
+ SimpleDatePickerInputSADirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: SimpleDatePickerInputSADirective, isStandalone: true, selector: "input[dateTime][simpleDatePickerInput]", hostDirectives: [{ directive: i1.DateTimePickerSADirective, inputs: ["withPickerOptions", "withPickerOptions", "pickerOptions", "pickerOptions"] }, { directive: i2.DateTimeInputSADirective }, { directive: i3.SimpleDateTimeInputHandlerSADirective }], ngImport: i0 });
15
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SimpleDatePickerInputSADirective, decorators: [{
16
+ type: Directive,
17
+ args: [{
18
+ selector: 'input[dateTime][simpleDatePickerInput]',
19
+ standalone: true,
20
+ hostDirectives: [
21
+ {
22
+ directive: DateTimePickerSADirective,
23
+ inputs: [
24
+ 'withPickerOptions',
25
+ 'pickerOptions',
26
+ ]
27
+ },
28
+ {
29
+ directive: DateTimeInputSADirective,
30
+ },
31
+ {
32
+ directive: SimpleDateTimeInputHandlerSADirective,
33
+ },
34
+ ],
35
+ }]
36
+ }] });
37
+ //# sourceMappingURL=simpleDatePickerInput.directive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simpleDatePickerInput.directive.js","sourceRoot":"","sources":["../../../../src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AAExC,OAAO,EAAC,wBAAwB,EAAE,yBAAyB,EAAC,MAAM,eAAe,CAAC;AAClF,OAAO,EAAC,qCAAqC,EAAC,MAAM,oEAAoE,CAAC;;;;;AAEzH;;GAEG;AAuBH,MAAM,OAAO,gCAAgC;;6HAAhC,gCAAgC;iHAAhC,gCAAgC;2FAAhC,gCAAgC;kBAtB5C,SAAS;mBACV;oBACI,QAAQ,EAAE,wCAAwC;oBAClD,UAAU,EAAE,IAAI;oBAChB,cAAc,EACd;wBACI;4BACI,SAAS,EAAE,yBAAyB;4BACpC,MAAM,EACN;gCACI,mBAAmB;gCACnB,eAAe;6BAClB;yBACJ;wBACD;4BACI,SAAS,EAAE,wBAAwB;yBACtC;wBACD;4BACI,SAAS,EAAE,qCAAqC;yBACnD;qBACJ;iBACJ","sourcesContent":["import {Directive} from '@angular/core';\n\nimport {DateTimeInputSADirective, DateTimePickerSADirective} from '../../modules';\nimport {SimpleDateTimeInputHandlerSADirective} from '../simpleDateTimeInputHandler/simpleDateTimeInputHandler.directive';\n\n/**\n * Directive that combines date picker with simple date input\n */\n@Directive(\n{\n selector: 'input[dateTime][simpleDatePickerInput]',\n standalone: true,\n hostDirectives:\n [\n {\n directive: DateTimePickerSADirective,\n inputs:\n [\n 'withPickerOptions',\n 'pickerOptions',\n ]\n },\n {\n directive: DateTimeInputSADirective,\n },\n {\n directive: SimpleDateTimeInputHandlerSADirective,\n },\n ],\n})\nexport class SimpleDatePickerInputSADirective\n{\n}"]}
@@ -0,0 +1,136 @@
1
+ import { __decorate, __metadata } from "tslib";
2
+ import { Directive, Inject, Optional } from '@angular/core';
3
+ import { BindThis } from '@jscrpt/common';
4
+ import { DATE_TIME_INPUT, DATE_API } from '../../misc/tokens';
5
+ import { parseDateTime } from '../../misc/utils';
6
+ import { DateTimePickerSADirective, DateTimeSADirective } from '../../modules';
7
+ import * as i0 from "@angular/core";
8
+ import * as i1 from "../../modules";
9
+ /**
10
+ * Directive that adds simple handler for date time input, which allows simple navigation using keyboard
11
+ */
12
+ export class SimpleDateTimeInputHandlerSADirective {
13
+ //######################### constructor #########################
14
+ constructor(input, dateApi, dateTimeData, picker) {
15
+ this.input = input;
16
+ this.dateApi = dateApi;
17
+ this.dateTimeData = dateTimeData;
18
+ this.picker = picker;
19
+ }
20
+ //######################### public methods - implementation of OnInit #########################
21
+ /**
22
+ * Initialize component
23
+ */
24
+ ngOnInit() {
25
+ this.input.element.addEventListener('keydown', this.handleKeyboard);
26
+ }
27
+ //######################### public methods - implementation of OnDestroy #########################
28
+ /**
29
+ * Called when component is destroyed
30
+ */
31
+ ngOnDestroy() {
32
+ this.input.element.removeEventListener('keydown', this.handleKeyboard);
33
+ }
34
+ //######################### protected methods #########################
35
+ /**
36
+ * Handles keyboard events
37
+ * @param event - Keyboard event that occured
38
+ */
39
+ handleKeyboard(event) {
40
+ const parsedValue = parseDateTime(this.input.value, this.dateApi, null, this.dateTimeData.customFormat);
41
+ //no value do nothing
42
+ if (!parsedValue) {
43
+ return;
44
+ }
45
+ //range value
46
+ if (Array.isArray(parsedValue)) {
47
+ //TODO: finish range support
48
+ }
49
+ else {
50
+ //do nothing for invalid date time
51
+ if (!parsedValue.isValid()) {
52
+ return;
53
+ }
54
+ switch (event.key) {
55
+ case 'ArrowRight':
56
+ case 'ArrowLeft':
57
+ {
58
+ event.preventDefault();
59
+ event.stopPropagation();
60
+ this.withMinMaxConstraint(parsedValue, () => event.key == 'ArrowLeft' ? parsedValue.subtractDays(1) : parsedValue.addDays(1));
61
+ break;
62
+ }
63
+ case 'ArrowUp':
64
+ case 'ArrowDown':
65
+ {
66
+ event.preventDefault();
67
+ event.stopPropagation();
68
+ this.withMinMaxConstraint(parsedValue, () => event.key == 'ArrowUp' ? parsedValue.subtractWeeks(1) : parsedValue.addWeeks(1));
69
+ break;
70
+ }
71
+ case 'Escape':
72
+ {
73
+ this.picker?.hidePicker();
74
+ break;
75
+ }
76
+ case ' ':
77
+ {
78
+ if (event.ctrlKey) {
79
+ this.picker?.showPicker();
80
+ }
81
+ break;
82
+ }
83
+ }
84
+ }
85
+ }
86
+ /**
87
+ * Tests whether are min or max constraint broken, returns true if constraint is broken
88
+ * @param value - Value to be tested
89
+ */
90
+ minMaxConstraintTest(value) {
91
+ return (!!this.dateTimeData.minDateTime && value.isBefore(this.dateTimeData.minDateTime)) ||
92
+ (!!this.dateTimeData.maxDateTime && value.isAfter(this.dateTimeData.maxDateTime));
93
+ }
94
+ /**
95
+ * Runs code with check whether min max constrains was broken
96
+ * @param value - Value to be used checked for constrains
97
+ * @param code - Code that should be executed which can change current value
98
+ */
99
+ withMinMaxConstraint(value, code) {
100
+ value.updateOriginal();
101
+ code();
102
+ //min value constraint failure
103
+ if (this.minMaxConstraintTest(value)) {
104
+ value.resetOriginal();
105
+ }
106
+ //value has changed, change input value
107
+ if (!value.isSame(value.originalValue)) {
108
+ this.input.value = value.value;
109
+ this.input.valueChange.next();
110
+ }
111
+ }
112
+ }
113
+ SimpleDateTimeInputHandlerSADirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SimpleDateTimeInputHandlerSADirective, deps: [{ token: DATE_TIME_INPUT }, { token: DATE_API }, { token: i1.DateTimeSADirective }, { token: i1.DateTimePickerSADirective, optional: true }], target: i0.ɵɵFactoryTarget.Directive });
114
+ SimpleDateTimeInputHandlerSADirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: SimpleDateTimeInputHandlerSADirective, isStandalone: true, selector: "[dateTime][withSimpleHandler]", ngImport: i0 });
115
+ __decorate([
116
+ BindThis,
117
+ __metadata("design:type", Function),
118
+ __metadata("design:paramtypes", [KeyboardEvent]),
119
+ __metadata("design:returntype", void 0)
120
+ ], SimpleDateTimeInputHandlerSADirective.prototype, "handleKeyboard", null);
121
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SimpleDateTimeInputHandlerSADirective, decorators: [{
122
+ type: Directive,
123
+ args: [{
124
+ selector: '[dateTime][withSimpleHandler]',
125
+ standalone: true,
126
+ }]
127
+ }], ctorParameters: function () { return [{ type: undefined, decorators: [{
128
+ type: Inject,
129
+ args: [DATE_TIME_INPUT]
130
+ }] }, { type: undefined, decorators: [{
131
+ type: Inject,
132
+ args: [DATE_API]
133
+ }] }, { type: i1.DateTimeSADirective }, { type: i1.DateTimePickerSADirective, decorators: [{
134
+ type: Optional
135
+ }] }]; }, propDecorators: { handleKeyboard: [] } });
136
+ //# sourceMappingURL=simpleDateTimeInputHandler.directive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simpleDateTimeInputHandler.directive.js","sourceRoot":"","sources":["../../../../src/directives/simpleDateTimeInputHandler/simpleDateTimeInputHandler.directive.ts"],"names":[],"mappings":";AAAA,OAAO,EAAC,SAAS,EAAE,MAAM,EAAqB,QAAQ,EAAC,MAAM,eAAe,CAAC;AAC7E,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAGxC,OAAO,EAAC,eAAe,EAAE,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAC5D,OAAO,EAAC,aAAa,EAAC,MAAM,kBAAkB,CAAC;AAC/C,OAAO,EAAC,yBAAyB,EAAE,mBAAmB,EAAC,MAAM,eAAe,CAAC;;;AAG7E;;GAEG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oB,CAAC,KAAK,CAAC,EACnC;YACI,KAAK,CAAC,aAAa,EAAE,CAAC;SACzB;QAED,uCAAuC;QACvC,IAAG,CAAC,KAAK,CAAC,MAAM,CAAC,KAAK,CAAC,aAAa,CAAC,EACrC;YACI,IAAI,CAAC,KAAK,CAAC,KAAK,GAAG,KAAK,CAAC,KAAK,CAAC;YAC/B,IAAI,CAAC,KAAK,CAAC,WAAW,CAAC,IAAI,EAAE,CAAC;SACjC;IACL,CAAC;;kIAtIQ,qCAAqC,kBAG1B,eAAe,aACf,QAAQ;sHAJnB,qCAAqC;AAoC9C;IAAC,QAAQ;;qCACoB,aAAa;;2EA8DzC;2FAnGQ,qCAAqC;kBALjD,SAAS;mBACV;oBACI,QAAQ,EAAE,+BAA+B;oBACzC,UAAU,EAAE,IAAI;iBACnB;;0BAIgB,MAAM;2BAAC,eAAe;;0BACtB,MAAM;2BAAC,QAAQ;;0BAEf,QAAQ;4CA+Bd,cAAc","sourcesContent":["import {Directive, Inject, OnDestroy, OnInit, Optional} from '@angular/core';\nimport {BindThis} from '@jscrpt/common';\n\nimport {DateTimeInput} from '../../interfaces';\nimport {DATE_TIME_INPUT, DATE_API} from '../../misc/tokens';\nimport {parseDateTime} from '../../misc/utils';\nimport {DateTimePickerSADirective, DateTimeSADirective} from '../../modules';\nimport {DateApi, DateApiObject} from '../../services';\n\n/**\n * Directive that adds simple handler for date time input, which allows simple navigation using keyboard\n */\n@Directive(\n{\n selector: '[dateTime][withSimpleHandler]',\n standalone: true,\n})\nexport class SimpleDateTimeInputHandlerSADirective<TDate = unknown> implements OnInit, OnDestroy\n{\n //######################### constructor #########################\n constructor(@Inject(DATE_TIME_INPUT) protected input: DateTimeInput<TDate>,\n @Inject(DATE_API) protected dateApi: DateApi<TDate>,\n protected dateTimeData: DateTimeSADirective<TDate>,\n @Optional() protected picker?: DateTimePickerSADirective<TDate>,)\n {\n }\n\n //######################### public methods - implementation of OnInit #########################\n \n /**\n * Initialize component\n */\n public ngOnInit(): void\n {\n this.input.element.addEventListener('keydown', this.handleKeyboard);\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n \n /**\n * Called when component is destroyed\n */\n public ngOnDestroy(): void\n {\n this.input.element.removeEventListener('keydown', this.handleKeyboard);\n }\n\n //######################### protected methods #########################\n\n /**\n * Handles keyboard events\n * @param event - Keyboard event that occured\n */\n @BindThis\n public handleKeyboard(event: KeyboardEvent): void\n {\n const parsedValue = parseDateTime(this.input.value, this.dateApi, null, this.dateTimeData.customFormat);\n \n //no value do nothing\n if(!parsedValue)\n {\n return;\n }\n\n //range value\n if(Array.isArray(parsedValue))\n {\n //TODO: finish range support\n }\n else\n {\n //do nothing for invalid date time\n if(!parsedValue.isValid())\n {\n return;\n }\n\n switch(event.key)\n {\n case 'ArrowRight':\n case 'ArrowLeft':\n {\n event.preventDefault();\n event.stopPropagation();\n\n this.withMinMaxConstraint(parsedValue, () => event.key == 'ArrowLeft' ? parsedValue.subtractDays(1) : parsedValue.addDays(1));\n\n break;\n }\n case 'ArrowUp':\n case 'ArrowDown':\n {\n event.preventDefault();\n event.stopPropagation();\n\n this.withMinMaxConstraint(parsedValue, () => event.key == 'ArrowUp' ? parsedValue.subtractWeeks(1) : parsedValue.addWeeks(1));\n\n break;\n }\n case 'Escape':\n {\n this.picker?.hidePicker();\n\n break;\n }\n case ' ':\n {\n if(event.ctrlKey)\n {\n this.picker?.showPicker();\n }\n\n break;\n }\n }\n }\n }\n\n /**\n * Tests whether are min or max constraint broken, returns true if constraint is broken\n * @param value - Value to be tested\n */\n protected minMaxConstraintTest(value: DateApiObject<TDate>): boolean\n {\n return (!!this.dateTimeData.minDateTime && value.isBefore(this.dateTimeData.minDateTime)) ||\n (!!this.dateTimeData.maxDateTime && value.isAfter(this.dateTimeData.maxDateTime));\n }\n\n /**\n * Runs code with check whether min max constrains was broken\n * @param value - Value to be used checked for constrains\n * @param code - Code that should be executed which can change current value\n */\n protected withMinMaxConstraint(value: DateApiObject<TDate>, code: () => void): void\n {\n value.updateOriginal();\n\n code();\n\n //min value constraint failure\n if(this.minMaxConstraintTest(value))\n {\n value.resetOriginal();\n }\n\n //value has changed, change input value\n if(!value.isSame(value.originalValue))\n {\n this.input.value = value.value;\n this.input.valueChange.next();\n }\n }\n}\n"]}
@@ -0,0 +1,29 @@
1
+ import { Directive } from '@angular/core';
2
+ import { SimpleDatePickerInputSADirective } from '../simpleDatePickerInput/simpleDatePickerInput.directive';
3
+ import { WithTimeSADirective } from '../withTime/withTime.directive';
4
+ import * as i0 from "@angular/core";
5
+ import * as i1 from "../simpleDatePickerInput/simpleDatePickerInput.directive";
6
+ import * as i2 from "../withTime/withTime.directive";
7
+ /**
8
+ * Directive that combines date time picker with simple date time input
9
+ */
10
+ export class SimpleDateTimePickerInputSADirective {
11
+ }
12
+ SimpleDateTimePickerInputSADirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SimpleDateTimePickerInputSADirective, deps: [], target: i0.ɵɵFactoryTarget.Directive });
13
+ SimpleDateTimePickerInputSADirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: SimpleDateTimePickerInputSADirective, isStandalone: true, selector: "input[dateTime][simpleDateTimePickerInput]", hostDirectives: [{ directive: i1.SimpleDatePickerInputSADirective }, { directive: i2.WithTimeSADirective }], ngImport: i0 });
14
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: SimpleDateTimePickerInputSADirective, decorators: [{
15
+ type: Directive,
16
+ args: [{
17
+ selector: 'input[dateTime][simpleDateTimePickerInput]',
18
+ standalone: true,
19
+ hostDirectives: [
20
+ {
21
+ directive: SimpleDatePickerInputSADirective,
22
+ },
23
+ {
24
+ directive: WithTimeSADirective,
25
+ },
26
+ ],
27
+ }]
28
+ }] });
29
+ //# sourceMappingURL=simpleDateTimePickerInput.directive.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"simpleDateTimePickerInput.directive.js","sourceRoot":"","sources":["../../../../src/directives/simpleDateTimePickerInput/simpleDateTimePickerInput.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AAExC,OAAO,EAAC,gCAAgC,EAAC,MAAM,0DAA0D,CAAC;AAC1G,OAAO,EAAC,mBAAmB,EAAC,MAAM,gCAAgC,CAAC;;;;AAEnE;;GAEG;AAeH,MAAM,OAAO,oCAAoC;;iIAApC,oCAAoC;qHAApC,oCAAoC;2FAApC,oCAAoC;kBAdhD,SAAS;mBACV;oBACI,QAAQ,EAAE,4CAA4C;oBACtD,UAAU,EAAE,IAAI;oBAChB,cAAc,EACd;wBACI;4BACI,SAAS,EAAE,gCAAgC;yBAC9C;wBACD;4BACI,SAAS,EAAE,mBAAmB;yBACjC;qBACJ;iBACJ","sourcesContent":["import {Directive} from '@angular/core';\n\nimport {SimpleDatePickerInputSADirective} from '../simpleDatePickerInput/simpleDatePickerInput.directive';\nimport {WithTimeSADirective} from '../withTime/withTime.directive';\n\n/**\n * Directive that combines date time picker with simple date time input\n */\n@Directive(\n{\n selector: 'input[dateTime][simpleDateTimePickerInput]',\n standalone: true,\n hostDirectives:\n [\n {\n directive: SimpleDatePickerInputSADirective,\n },\n {\n directive: WithTimeSADirective,\n },\n ],\n})\nexport class SimpleDateTimePickerInputSADirective\n{\n}"]}
@@ -1,5 +1,5 @@
1
1
  import { Directive } from '@angular/core';
2
- import { RollerTimePickerSAComponent, DateTimePickerDirective, DayPickerSAComponent, MonthPickerSAComponent, YearPickerSAComponent, DateTimeDirective } from '../../modules';
2
+ import { RollerTimePickerSAComponent, DateTimePickerSADirective, DayPickerSAComponent, MonthPickerSAComponent, YearPickerSAComponent, DateTimeSADirective } from '../../modules';
3
3
  import * as i0 from "@angular/core";
4
4
  import * as i1 from "../../modules";
5
5
  /**
@@ -20,13 +20,13 @@ export class WithTimeSADirective {
20
20
  dateTime.format = 'dateTime';
21
21
  }
22
22
  }
23
- WithTimeSADirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: WithTimeSADirective, deps: [{ token: i1.DateTimePickerDirective }, { token: i1.DateTimeDirective }], target: i0.ɵɵFactoryTarget.Directive });
24
- WithTimeSADirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.6", type: WithTimeSADirective, isStandalone: true, selector: "[dateTime][withPicker][withTime]", ngImport: i0 });
25
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: WithTimeSADirective, decorators: [{
23
+ WithTimeSADirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WithTimeSADirective, deps: [{ token: i1.DateTimePickerSADirective }, { token: i1.DateTimeSADirective }], target: i0.ɵɵFactoryTarget.Directive });
24
+ WithTimeSADirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: WithTimeSADirective, isStandalone: true, selector: "[dateTime][withPicker][withTime]", ngImport: i0 });
25
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WithTimeSADirective, decorators: [{
26
26
  type: Directive,
27
27
  args: [{
28
28
  selector: '[dateTime][withPicker][withTime]',
29
29
  standalone: true,
30
30
  }]
31
- }], ctorParameters: function () { return [{ type: i1.DateTimePickerDirective }, { type: i1.DateTimeDirective }]; } });
31
+ }], ctorParameters: function () { return [{ type: i1.DateTimePickerSADirective }, { type: i1.DateTimeSADirective }]; } });
32
32
  //# sourceMappingURL=withTime.directive.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"withTime.directive.js","sourceRoot":"","sources":["../../../../src/directives/withTime/withTime.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AAExC,OAAO,EAAC,2BAA2B,EAAE,uBAAuB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,iBAAiB,EAAC,MAAM,eAAe,CAAC;;;AAE3K;;GAEG;AAMH,MAAM,OAAO,mBAAmB;IAE5B,iEAAiE;IACjE,YAAY,MAAsC,EACtC,QAAkC;QAE1C,MAAM,CAAC,aAAa;YACpB;gBACI,iBAAiB,EACjB;oBACI,MAAM,EAAE,2BAA2B;oBACnC,KAAK,EAAE,oBAAoB;oBAC3B,OAAO,EAAE,sBAAsB;oBAC/B,MAAM,EAAE,qBAAqB;iBAChC;aACJ,CAAC;QAEF,QAAQ,CAAC,MAAM,GAAG,UAAU,CAAC;IACjC,CAAC;;gHAlBQ,mBAAmB;oGAAnB,mBAAmB;2FAAnB,mBAAmB;kBAL/B,SAAS;mBACV;oBACI,QAAQ,EAAE,kCAAkC;oBAC5C,UAAU,EAAE,IAAI;iBACnB","sourcesContent":["import {Directive} from '@angular/core';\n\nimport {RollerTimePickerSAComponent, DateTimePickerDirective, DayPickerSAComponent, MonthPickerSAComponent, YearPickerSAComponent, DateTimeDirective} from '../../modules';\n\n/**\n * Directive that sets up usage of date time picker to use time format and time picker\n */\n@Directive(\n{\n selector: '[dateTime][withPicker][withTime]',\n standalone: true,\n})\nexport class WithTimeSADirective<TDate = unknown>\n{\n //######################### constructor #########################\n constructor(picker: DateTimePickerDirective<TDate>,\n dateTime: DateTimeDirective<TDate>,)\n {\n picker.pickerOptions = \n {\n periodsDefinition:\n {\n 'time': RollerTimePickerSAComponent,\n 'day': DayPickerSAComponent,\n 'month': MonthPickerSAComponent,\n 'year': YearPickerSAComponent,\n },\n };\n\n dateTime.format = 'dateTime';\n }\n}"]}
1
+ {"version":3,"file":"withTime.directive.js","sourceRoot":"","sources":["../../../../src/directives/withTime/withTime.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAC,MAAM,eAAe,CAAC;AAExC,OAAO,EAAC,2BAA2B,EAAE,yBAAyB,EAAE,oBAAoB,EAAE,sBAAsB,EAAE,qBAAqB,EAAE,mBAAmB,EAAC,MAAM,eAAe,CAAC;;;AAE/K;;GAEG;AAMH,MAAM,OAAO,mBAAmB;IAE5B,iEAAiE;IACjE,YAAY,MAAwC,EACxC,QAAoC;QAE5C,MAAM,CAAC,aAAa;YACpB;gBACI,iBAAiB,EACjB;oBACI,MAAM,EAAE,2BAA2B;oBACnC,KAAK,EAAE,oBAAoB;oBAC3B,OAAO,EAAE,sBAAsB;oBAC/B,MAAM,EAAE,qBAAqB;iBAChC;aACJ,CAAC;QAEF,QAAQ,CAAC,MAAM,GAAG,UAAU,CAAC;IACjC,CAAC;;gHAlBQ,mBAAmB;oGAAnB,mBAAmB;2FAAnB,mBAAmB;kBAL/B,SAAS;mBACV;oBACI,QAAQ,EAAE,kCAAkC;oBAC5C,UAAU,EAAE,IAAI;iBACnB","sourcesContent":["import {Directive} from '@angular/core';\n\nimport {RollerTimePickerSAComponent, DateTimePickerSADirective, DayPickerSAComponent, MonthPickerSAComponent, YearPickerSAComponent, DateTimeSADirective} from '../../modules';\n\n/**\n * Directive that sets up usage of date time picker to use time format and time picker\n */\n@Directive(\n{\n selector: '[dateTime][withPicker][withTime]',\n standalone: true,\n})\nexport class WithTimeSADirective<TDate = unknown>\n{\n //######################### constructor #########################\n constructor(picker: DateTimePickerSADirective<TDate>,\n dateTime: DateTimeSADirective<TDate>,)\n {\n picker.pickerOptions = \n {\n periodsDefinition:\n {\n 'time': RollerTimePickerSAComponent,\n 'day': DayPickerSAComponent,\n 'month': MonthPickerSAComponent,\n 'year': YearPickerSAComponent,\n },\n };\n\n dateTime.format = 'dateTime';\n }\n}"]}
@@ -1,7 +1,7 @@
1
1
  import { Directive, Inject } from '@angular/core';
2
2
  import { Subscription } from 'rxjs';
3
3
  import { DATE_API } from '../../misc/tokens';
4
- import { DateTimeInputDirective } from '../../modules';
4
+ import { DateTimeInputSADirective } from '../../modules';
5
5
  import * as i0 from "@angular/core";
6
6
  import * as i1 from "../../modules";
7
7
  /**
@@ -29,15 +29,15 @@ export class WithTodaySADirective {
29
29
  this._initSubscriptions.unsubscribe();
30
30
  }
31
31
  }
32
- WithTodaySADirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: WithTodaySADirective, deps: [{ token: i1.DateTimeInputDirective }, { token: DATE_API }], target: i0.ɵɵFactoryTarget.Directive });
33
- WithTodaySADirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.6", type: WithTodaySADirective, isStandalone: true, selector: "[dateTime][withToday]", ngImport: i0 });
34
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: WithTodaySADirective, decorators: [{
32
+ WithTodaySADirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WithTodaySADirective, deps: [{ token: i1.DateTimeInputSADirective }, { token: DATE_API }], target: i0.ɵɵFactoryTarget.Directive });
33
+ WithTodaySADirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: WithTodaySADirective, isStandalone: true, selector: "[dateTime][withToday]", ngImport: i0 });
34
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: WithTodaySADirective, decorators: [{
35
35
  type: Directive,
36
36
  args: [{
37
37
  selector: '[dateTime][withToday]',
38
38
  standalone: true,
39
39
  }]
40
- }], ctorParameters: function () { return [{ type: i1.DateTimeInputDirective }, { type: undefined, decorators: [{
40
+ }], ctorParameters: function () { return [{ type: i1.DateTimeInputSADirective }, { type: undefined, decorators: [{
41
41
  type: Inject,
42
42
  args: [DATE_API]
43
43
  }] }]; } });
@@ -1 +1 @@
1
- {"version":3,"file":"withToday.directive.js","sourceRoot":"","sources":["../../../../src/directives/withToday/withToday.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,MAAM,EAAY,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAC,YAAY,EAAC,MAAM,MAAM,CAAC;AAElC,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAC,sBAAsB,EAAC,MAAM,eAAe,CAAC;;;AAGrD;;GAEG;AAMH,MAAM,OAAO,oBAAoB;IAS7B,iEAAiE;IACjE,YAAY,KAAoC,EAClB,OAAuB;QATrD,oEAAoE;QAEpE;;WAEG;QACK,uBAAkB,GAAiB,IAAI,YAAY,EAAE,CAAC;QAM1D,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;YAEnD,IAAG,CAAC,KAAK,CAAC,KAAK,EACf;gBACI,KAAK,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC;aACrC;QACL,CAAC,CAAC,CAAC,CAAC;IACR,CAAC;IAED,kGAAkG;IAElG;;OAEG;IACI,WAAW;QAEd,IAAI,CAAC,kBAAkB,CAAC,WAAW,EAAE,CAAC;IAC1C,CAAC;;iHA9BQ,oBAAoB,wDAWT,QAAQ;qGAXnB,oBAAoB;2FAApB,oBAAoB;kBALhC,SAAS;mBACV;oBACI,QAAQ,EAAE,uBAAuB;oBACjC,UAAU,EAAE,IAAI;iBACnB;;0BAYgB,MAAM;2BAAC,QAAQ","sourcesContent":["import {Directive, Inject, OnDestroy} from '@angular/core';\nimport {Subscription} from 'rxjs';\n\nimport {DATE_API} from '../../misc/tokens';\nimport {DateTimeInputDirective} from '../../modules';\nimport {DateApi} from '../../services';\n\n/**\n * Directive that sets today as day for empty date time on focus\n */\n@Directive(\n{\n selector: '[dateTime][withToday]',\n standalone: true,\n})\nexport class WithTodaySADirective<TDate = unknown> implements OnDestroy\n{\n //######################### private fields #########################\n\n /**\n * Subscriptions created during initialization\n */\n private _initSubscriptions: Subscription = new Subscription();\n\n //######################### constructor #########################\n constructor(input: DateTimeInputDirective<TDate>,\n @Inject(DATE_API) dateApi: DateApi<TDate>,)\n {\n this._initSubscriptions.add(input.focus.subscribe(() =>\n {\n if(!input.value)\n {\n input.value = dateApi.now().value;\n }\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}"]}
1
+ {"version":3,"file":"withToday.directive.js","sourceRoot":"","sources":["../../../../src/directives/withToday/withToday.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,MAAM,EAAY,MAAM,eAAe,CAAC;AAC3D,OAAO,EAAC,YAAY,EAAC,MAAM,MAAM,CAAC;AAElC,OAAO,EAAC,QAAQ,EAAC,MAAM,mBAAmB,CAAC;AAC3C,OAAO,EAAC,wBAAwB,EAAC,MAAM,eAAe,CAAC;;;AAGvD;;GAEG;AAMH,MAAM,OAAO,oBAAoB;IAS7B,iEAAiE;IACjE,YAAY,KAAsC,EACpB,OAAuB;QATrD,oEAAoE;QAEpE;;WAEG;QACK,uBAAkB,GAAiB,IAAI,YAAY,EAAE,CAAC;QAM1D,IAAI,CAAC,kBAAkB,CAAC,GAAG,CAAC,KAAK,CAAC,KAAK,CAAC,SAAS,CAAC,GAAG,EAAE;YAEnD,IAAG,CAAC,KAAK,CAAC,KAAK,EACf;gBACI,KAAK,CAAC,KAAK,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC,KAAK,CAAC;aACrC;QACL,CAAC,CAAC,CAAC,CAAC;IACR,CAAC;IAED,kGAAkG;IAElG;;OAEG;IACI,WAAW;QAEd,IAAI,CAAC,kBAAkB,CAAC,WAAW,EAAE,CAAC;IAC1C,CAAC;;iHA9BQ,oBAAoB,0DAWT,QAAQ;qGAXnB,oBAAoB;2FAApB,oBAAoB;kBALhC,SAAS;mBACV;oBACI,QAAQ,EAAE,uBAAuB;oBACjC,UAAU,EAAE,IAAI;iBACnB;;0BAYgB,MAAM;2BAAC,QAAQ","sourcesContent":["import {Directive, Inject, OnDestroy} from '@angular/core';\nimport {Subscription} from 'rxjs';\n\nimport {DATE_API} from '../../misc/tokens';\nimport {DateTimeInputSADirective} from '../../modules';\nimport {DateApi} from '../../services';\n\n/**\n * Directive that sets today as day for empty date time on focus\n */\n@Directive(\n{\n selector: '[dateTime][withToday]',\n standalone: true,\n})\nexport class WithTodaySADirective<TDate = unknown> implements OnDestroy\n{\n //######################### private fields #########################\n\n /**\n * Subscriptions created during initialization\n */\n private _initSubscriptions: Subscription = new Subscription();\n\n //######################### constructor #########################\n constructor(input: DateTimeInputSADirective<TDate>,\n @Inject(DATE_API) dateApi: DateApi<TDate>,)\n {\n this._initSubscriptions.add(input.focus.subscribe(() =>\n {\n if(!input.value)\n {\n input.value = dateApi.now().value;\n }\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}"]}
@@ -1,13 +1,5 @@
1
1
  export * from './directives';
2
2
  export * from './interfaces';
3
- export * from './legacy/picker/directives';
4
- export * from './legacy/picker/interfaces';
5
- export * from './legacy/picker/modules/picker.module';
6
- export * from './legacy/picker/types';
7
- export * from './legacy/selector/interfaces';
8
- export * from './legacy/selector/modules/basicSelector.module';
9
- export * from './legacy/selector/modules/selector.module';
10
- export * from './legacy/selector/types';
11
3
  export * from './misc/constants';
12
4
  export * from './misc/enums';
13
5
  export * from './misc/tokens';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,4BAA4B,CAAC;AAC3C,cAAc,4BAA4B,CAAC;AAC3C,cAAc,uCAAuC,CAAC;AACtD,cAAc,uBAAuB,CAAC;AACtC,cAAc,8BAA8B,CAAC;AAC7C,cAAc,gDAAgD,CAAC;AAC/D,cAAc,2CAA2C,CAAC;AAC1D,cAAc,yBAAyB,CAAC;AACxC,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC","sourcesContent":["export * from './directives';\nexport * from './interfaces';\nexport * from './legacy/picker/directives';\nexport * from './legacy/picker/interfaces';\nexport * from './legacy/picker/modules/picker.module';\nexport * from './legacy/picker/types';\nexport * from './legacy/selector/interfaces';\nexport * from './legacy/selector/modules/basicSelector.module';\nexport * from './legacy/selector/modules/selector.module';\nexport * from './legacy/selector/types';\nexport * from './misc/constants';\nexport * from './misc/enums';\nexport * from './misc/tokens';\nexport * from './misc/types';\nexport * from './misc/utils';\nexport * from './misc/validators';\nexport * from './modules';\nexport * from './services';\nexport * from './pipes/dateConvert.pipe';\nexport * from './pipes/dateFormat.pipe';"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/index.ts"],"names":[],"mappings":"AAAA,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,kBAAkB,CAAC;AACjC,cAAc,cAAc,CAAC;AAC7B,cAAc,eAAe,CAAC;AAC9B,cAAc,cAAc,CAAC;AAC7B,cAAc,cAAc,CAAC;AAC7B,cAAc,mBAAmB,CAAC;AAClC,cAAc,WAAW,CAAC;AAC1B,cAAc,YAAY,CAAC;AAC3B,cAAc,0BAA0B,CAAC;AACzC,cAAc,yBAAyB,CAAC","sourcesContent":["export * from './directives';\nexport * from './interfaces';\nexport * from './misc/constants';\nexport * from './misc/enums';\nexport * from './misc/tokens';\nexport * from './misc/types';\nexport * from './misc/utils';\nexport * from './misc/validators';\nexport * from './modules';\nexport * from './services';\nexport * from './pipes/dateConvert.pipe';\nexport * from './pipes/dateFormat.pipe';"]}
@@ -1 +1 @@
1
- {"version":3,"file":"datetime.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/dateTime/datetime.interface.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Represents datetime value as period\n */\nexport interface DateTimeValue<TDate = any>\n{\n /**\n * Starting date and time of period\n */\n from: TDate|undefined|null;\n\n /**\n * Ending date and time of period\n */\n to: TDate|undefined|null;\n}\n\n//TODO: remove when not necessary\n\n/**\n * Represents object that holds data for identification of validity of date time\n */\nexport interface DateTimeValueObject<TDate = any>\n{\n /**\n * Current value of datetime\n */\n readonly value: DateTimeValue<TDate>|null;\n\n /**\n * Indicaiton whether is current value valid, empty value is valid\n */\n readonly valid: boolean;\n\n /**\n * Minimal possible value, that can be\n */\n readonly minValue: TDate|null;\n\n /**\n * Maximal possible value, that can be\n */\n readonly maxValue: TDate|null;\n}"]}
1
+ {"version":3,"file":"datetime.interface.js","sourceRoot":"","sources":["../../../../src/interfaces/dateTime/datetime.interface.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Represents datetime value as period\n */\nexport interface DateTimeValue<TDate = unknown>\n{\n /**\n * Starting date and time of period\n */\n from: TDate|undefined|null;\n\n /**\n * Ending date and time of period\n */\n to: TDate|undefined|null;\n}\n"]}