@anglr/datetime 5.0.0 → 6.0.0-beta.20221223060503

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (584) hide show
  1. package/changelog.md +155 -1
  2. package/date-fns/src/services/dateFnsDateApi.service.d.ts +26 -14
  3. package/date-fns/src/services/dateFnsDateApi.service.d.ts.map +1 -1
  4. package/es2015/date-fns/src/services/dateFnsDateApi.service.js +37 -6
  5. package/es2015/date-fns/src/services/dateFnsDateApi.service.js.map +1 -1
  6. package/es2015/moment/src/services/momentDateApi.service.js +35 -3
  7. package/es2015/moment/src/services/momentDateApi.service.js.map +1 -1
  8. package/es2015/src/directives/index.js +1 -0
  9. package/es2015/src/directives/index.js.map +1 -1
  10. package/es2015/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js +32 -0
  11. package/es2015/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js.map +1 -0
  12. package/es2015/src/directives/withTime/withTime.directive.js +5 -5
  13. package/es2015/src/directives/withTime/withTime.directive.js.map +1 -1
  14. package/es2015/src/directives/withToday/withToday.directive.js +5 -5
  15. package/es2015/src/directives/withToday/withToday.directive.js.map +1 -1
  16. package/es2015/src/index.js +0 -8
  17. package/es2015/src/index.js.map +1 -1
  18. package/es2015/src/interfaces/dateTime/datetime.interface.js.map +1 -1
  19. package/es2015/src/legacy/picker/components/picker/picker.component.animations.js +93 -70
  20. package/es2015/src/legacy/picker/components/picker/picker.component.animations.js.map +1 -1
  21. package/es2015/src/legacy/selector/components/inputDateTime/inputDateTime.component.js +487 -436
  22. package/es2015/src/legacy/selector/components/inputDateTime/inputDateTime.component.js.map +1 -1
  23. package/es2015/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js +366 -324
  24. package/es2015/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js.map +1 -1
  25. package/es2015/src/misc/validators.js +0 -57
  26. package/es2015/src/misc/validators.js.map +1 -1
  27. package/es2015/src/modules/calendar/components/index.js +2 -0
  28. package/es2015/src/modules/calendar/components/index.js.map +1 -0
  29. package/es2015/src/modules/calendar/components/monthCalendar/monthCalendar.component.js +198 -0
  30. package/es2015/src/modules/calendar/components/monthCalendar/monthCalendar.component.js.map +1 -0
  31. package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js +2 -0
  32. package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js.map +1 -0
  33. package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js +27 -0
  34. package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js.map +1 -0
  35. package/es2015/src/modules/calendar/directives/index.js +3 -0
  36. package/es2015/src/modules/calendar/directives/index.js.map +1 -0
  37. package/es2015/src/modules/calendar/index.js +7 -0
  38. package/es2015/src/modules/calendar/index.js.map +1 -0
  39. package/es2015/src/modules/calendar/interfaces/calendarDayData.interface.js +2 -0
  40. package/es2015/src/modules/calendar/interfaces/calendarDayData.interface.js.map +1 -0
  41. package/es2015/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js +2 -0
  42. package/es2015/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js.map +1 -0
  43. package/es2015/src/modules/calendar/interfaces/eventData.interface.js +2 -0
  44. package/es2015/src/modules/calendar/interfaces/eventData.interface.js.map +1 -0
  45. package/es2015/src/modules/calendar/interfaces/index.js +4 -0
  46. package/es2015/src/modules/calendar/interfaces/index.js.map +1 -0
  47. package/es2015/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js +27 -0
  48. package/es2015/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js.map +1 -0
  49. package/es2015/src/modules/calendar/misc/enums/index.js +3 -0
  50. package/es2015/src/modules/calendar/misc/enums/index.js.map +1 -0
  51. package/es2015/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js +19 -0
  52. package/es2015/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js.map +1 -0
  53. package/es2015/src/modules/calendar/misc/index.js +2 -0
  54. package/es2015/src/modules/calendar/misc/index.js.map +1 -0
  55. package/es2015/src/modules/calendar/modules/index.js +2 -0
  56. package/es2015/src/modules/calendar/modules/index.js.map +1 -0
  57. package/es2015/src/modules/calendar/modules/monthCalendar.module.js +32 -0
  58. package/es2015/src/modules/calendar/modules/monthCalendar.module.js.map +1 -0
  59. package/es2015/src/modules/calendar/services/eventParser/eventParser.service.js +75 -0
  60. package/es2015/src/modules/calendar/services/eventParser/eventParser.service.js.map +1 -0
  61. package/es2015/src/modules/calendar/services/index.js +2 -0
  62. package/es2015/src/modules/calendar/services/index.js.map +1 -0
  63. package/es2015/src/modules/datePipes.module.js +4 -4
  64. package/es2015/src/modules/dateTime/directives/dateTime/dateTime.directive.js +8 -7
  65. package/es2015/src/modules/dateTime/directives/dateTime/dateTime.directive.js.map +1 -1
  66. package/es2015/src/modules/dateTime/directives/dateTimeBase.js +5 -5
  67. package/es2015/src/modules/dateTime/directives/dateTimeBase.js.map +1 -1
  68. package/es2015/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js +7 -6
  69. package/es2015/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js.map +1 -1
  70. package/es2015/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js +10 -9
  71. package/es2015/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js.map +1 -1
  72. package/es2015/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js +7 -6
  73. package/es2015/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js.map +1 -1
  74. package/es2015/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js +7 -6
  75. package/es2015/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js.map +1 -1
  76. package/es2015/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js +7 -6
  77. package/es2015/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js.map +1 -1
  78. package/es2015/src/modules/dateTime/modules/dateTime.module.js +28 -28
  79. package/es2015/src/modules/dateTime/modules/dateTime.module.js.map +1 -1
  80. package/es2015/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.js.map +1 -1
  81. package/es2015/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js +5 -5
  82. package/es2015/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js.map +1 -1
  83. package/es2015/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js +3 -3
  84. package/es2015/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js.map +1 -1
  85. package/es2015/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js +3 -3
  86. package/es2015/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js.map +1 -1
  87. package/es2015/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js +6 -7
  88. package/es2015/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js.map +1 -1
  89. package/es2015/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.js.map +1 -1
  90. package/es2015/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js +3 -3
  91. package/es2015/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js.map +1 -1
  92. package/es2015/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js +8 -7
  93. package/es2015/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js.map +1 -1
  94. package/es2015/src/modules/dateTimePicker/directives/index.js +3 -0
  95. package/es2015/src/modules/dateTimePicker/directives/index.js.map +1 -1
  96. package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.js +222 -0
  97. package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.js.map +1 -0
  98. package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js +2 -0
  99. package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js.map +1 -0
  100. package/es2015/src/{legacy/picker → modules/dateTimePicker}/directives/loopScrollData/loopScrollData.directive.js +6 -5
  101. package/es2015/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.js.map +1 -0
  102. package/es2015/src/modules/dateTimePicker/interfaces/index.js +1 -0
  103. package/es2015/src/modules/dateTimePicker/interfaces/index.js.map +1 -1
  104. package/es2015/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js +2 -0
  105. package/es2015/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js.map +1 -0
  106. package/es2015/src/modules/dateTimePicker/modules/dateTimePicker.module.js +10 -9
  107. package/es2015/src/modules/dateTimePicker/modules/dateTimePicker.module.js.map +1 -1
  108. package/es2015/src/modules/index.js +1 -0
  109. package/es2015/src/modules/index.js.map +1 -1
  110. package/es2015/src/pipes/dateConvert.pipe.js +3 -3
  111. package/es2015/src/pipes/dateConvert.pipe.js.map +1 -1
  112. package/es2015/src/pipes/dateFormat.pipe.js +3 -3
  113. package/es2015/src/pipes/dateFormat.pipe.js.map +1 -1
  114. package/es2015/src/services/dateApi/dateApi.interface.js.map +1 -1
  115. package/es2015/src/services/datePositionParser/datePositionParser.service.js +5 -3
  116. package/es2015/src/services/datePositionParser/datePositionParser.service.js.map +1 -1
  117. package/es2015/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js +3 -3
  118. package/es2015/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js.map +1 -1
  119. package/es2015/src/services/dateValueProvider/dateValueProvider.service.js +3 -3
  120. package/es2015/src/services/dateValueProvider/dateValueProvider.service.js.map +1 -1
  121. package/es2020/date-fns/src/services/dateFnsDateApi.service.js +37 -6
  122. package/es2020/date-fns/src/services/dateFnsDateApi.service.js.map +1 -1
  123. package/es2020/moment/src/services/momentDateApi.service.js +35 -3
  124. package/es2020/moment/src/services/momentDateApi.service.js.map +1 -1
  125. package/es2020/src/directives/index.js +1 -0
  126. package/es2020/src/directives/index.js.map +1 -1
  127. package/es2020/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js +32 -0
  128. package/es2020/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js.map +1 -0
  129. package/es2020/src/directives/withTime/withTime.directive.js +5 -5
  130. package/es2020/src/directives/withTime/withTime.directive.js.map +1 -1
  131. package/es2020/src/directives/withToday/withToday.directive.js +5 -5
  132. package/es2020/src/directives/withToday/withToday.directive.js.map +1 -1
  133. package/es2020/src/index.js +0 -8
  134. package/es2020/src/index.js.map +1 -1
  135. package/es2020/src/interfaces/dateTime/datetime.interface.js.map +1 -1
  136. package/es2020/src/legacy/picker/components/picker/picker.component.animations.js +93 -70
  137. package/es2020/src/legacy/picker/components/picker/picker.component.animations.js.map +1 -1
  138. package/es2020/src/legacy/selector/components/inputDateTime/inputDateTime.component.js +487 -432
  139. package/es2020/src/legacy/selector/components/inputDateTime/inputDateTime.component.js.map +1 -1
  140. package/es2020/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js +366 -321
  141. package/es2020/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js.map +1 -1
  142. package/es2020/src/misc/validators.js +0 -57
  143. package/es2020/src/misc/validators.js.map +1 -1
  144. package/es2020/src/modules/calendar/components/index.js +2 -0
  145. package/es2020/src/modules/calendar/components/index.js.map +1 -0
  146. package/es2020/src/modules/calendar/components/monthCalendar/monthCalendar.component.js +195 -0
  147. package/es2020/src/modules/calendar/components/monthCalendar/monthCalendar.component.js.map +1 -0
  148. package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js +2 -0
  149. package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js.map +1 -0
  150. package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js +27 -0
  151. package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js.map +1 -0
  152. package/es2020/src/modules/calendar/directives/index.js +3 -0
  153. package/es2020/src/modules/calendar/directives/index.js.map +1 -0
  154. package/es2020/src/modules/calendar/index.js +7 -0
  155. package/es2020/src/modules/calendar/index.js.map +1 -0
  156. package/es2020/src/modules/calendar/interfaces/calendarDayData.interface.js +2 -0
  157. package/es2020/src/modules/calendar/interfaces/calendarDayData.interface.js.map +1 -0
  158. package/es2020/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js +2 -0
  159. package/es2020/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js.map +1 -0
  160. package/es2020/src/modules/calendar/interfaces/eventData.interface.js +2 -0
  161. package/es2020/src/modules/calendar/interfaces/eventData.interface.js.map +1 -0
  162. package/es2020/src/modules/calendar/interfaces/index.js +4 -0
  163. package/es2020/src/modules/calendar/interfaces/index.js.map +1 -0
  164. package/es2020/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js +27 -0
  165. package/es2020/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js.map +1 -0
  166. package/es2020/src/modules/calendar/misc/enums/index.js +3 -0
  167. package/es2020/src/modules/calendar/misc/enums/index.js.map +1 -0
  168. package/es2020/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js +19 -0
  169. package/es2020/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js.map +1 -0
  170. package/es2020/src/modules/calendar/misc/index.js +2 -0
  171. package/es2020/src/modules/calendar/misc/index.js.map +1 -0
  172. package/es2020/src/modules/calendar/modules/index.js +2 -0
  173. package/es2020/src/modules/calendar/modules/index.js.map +1 -0
  174. package/es2020/src/modules/calendar/modules/monthCalendar.module.js +32 -0
  175. package/es2020/src/modules/calendar/modules/monthCalendar.module.js.map +1 -0
  176. package/es2020/src/modules/calendar/services/eventParser/eventParser.service.js +74 -0
  177. package/es2020/src/modules/calendar/services/eventParser/eventParser.service.js.map +1 -0
  178. package/es2020/src/modules/calendar/services/index.js +2 -0
  179. package/es2020/src/modules/calendar/services/index.js.map +1 -0
  180. package/es2020/src/modules/datePipes.module.js +4 -4
  181. package/es2020/src/modules/dateTime/directives/dateTime/dateTime.directive.js +8 -7
  182. package/es2020/src/modules/dateTime/directives/dateTime/dateTime.directive.js.map +1 -1
  183. package/es2020/src/modules/dateTime/directives/dateTimeBase.js +5 -5
  184. package/es2020/src/modules/dateTime/directives/dateTimeBase.js.map +1 -1
  185. package/es2020/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js +7 -6
  186. package/es2020/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js.map +1 -1
  187. package/es2020/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js +10 -9
  188. package/es2020/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js.map +1 -1
  189. package/es2020/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js +7 -6
  190. package/es2020/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js.map +1 -1
  191. package/es2020/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js +7 -6
  192. package/es2020/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js.map +1 -1
  193. package/es2020/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js +7 -6
  194. package/es2020/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js.map +1 -1
  195. package/es2020/src/modules/dateTime/modules/dateTime.module.js +28 -28
  196. package/es2020/src/modules/dateTime/modules/dateTime.module.js.map +1 -1
  197. package/es2020/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.js.map +1 -1
  198. package/es2020/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js +5 -5
  199. package/es2020/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js.map +1 -1
  200. package/es2020/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js +3 -3
  201. package/es2020/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js.map +1 -1
  202. package/es2020/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js +3 -3
  203. package/es2020/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js.map +1 -1
  204. package/es2020/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js +6 -7
  205. package/es2020/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js.map +1 -1
  206. package/es2020/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.js.map +1 -1
  207. package/es2020/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js +3 -3
  208. package/es2020/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js.map +1 -1
  209. package/es2020/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js +9 -8
  210. package/es2020/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js.map +1 -1
  211. package/es2020/src/modules/dateTimePicker/directives/index.js +3 -0
  212. package/es2020/src/modules/dateTimePicker/directives/index.js.map +1 -1
  213. package/es2020/src/{legacy/picker → modules/dateTimePicker}/directives/loopScroll/loopScroll.directive.js +65 -56
  214. package/es2020/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.js.map +1 -0
  215. package/es2020/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js +2 -0
  216. package/es2020/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js.map +1 -0
  217. package/es2020/src/{legacy/picker → modules/dateTimePicker}/directives/loopScrollData/loopScrollData.directive.js +6 -5
  218. package/es2020/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.js.map +1 -0
  219. package/es2020/src/modules/dateTimePicker/interfaces/index.js +1 -0
  220. package/es2020/src/modules/dateTimePicker/interfaces/index.js.map +1 -1
  221. package/es2020/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js +2 -0
  222. package/es2020/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js.map +1 -0
  223. package/es2020/src/modules/dateTimePicker/modules/dateTimePicker.module.js +10 -9
  224. package/es2020/src/modules/dateTimePicker/modules/dateTimePicker.module.js.map +1 -1
  225. package/es2020/src/modules/index.js +1 -0
  226. package/es2020/src/modules/index.js.map +1 -1
  227. package/es2020/src/pipes/dateConvert.pipe.js +3 -3
  228. package/es2020/src/pipes/dateConvert.pipe.js.map +1 -1
  229. package/es2020/src/pipes/dateFormat.pipe.js +3 -3
  230. package/es2020/src/pipes/dateFormat.pipe.js.map +1 -1
  231. package/es2020/src/services/dateApi/dateApi.interface.js.map +1 -1
  232. package/es2020/src/services/datePositionParser/datePositionParser.service.js +5 -3
  233. package/es2020/src/services/datePositionParser/datePositionParser.service.js.map +1 -1
  234. package/es2020/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js +3 -3
  235. package/es2020/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js.map +1 -1
  236. package/es2020/src/services/dateValueProvider/dateValueProvider.service.js +3 -3
  237. package/es2020/src/services/dateValueProvider/dateValueProvider.service.js.map +1 -1
  238. package/moment/src/services/momentDateApi.service.d.ts +25 -12
  239. package/moment/src/services/momentDateApi.service.d.ts.map +1 -1
  240. package/package.json +27 -36
  241. package/src/directives/index.d.ts +1 -0
  242. package/src/directives/index.d.ts.map +1 -1
  243. package/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.d.ts +11 -0
  244. package/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.d.ts.map +1 -0
  245. package/src/directives/withTime/withTime.directive.d.ts +3 -3
  246. package/src/directives/withTime/withTime.directive.d.ts.map +1 -1
  247. package/src/directives/withToday/withToday.directive.d.ts +3 -3
  248. package/src/directives/withToday/withToday.directive.d.ts.map +1 -1
  249. package/src/index.d.ts +0 -8
  250. package/src/index.d.ts.map +1 -1
  251. package/src/interfaces/dateTime/datetime.interface.d.ts +1 -22
  252. package/src/interfaces/dateTime/datetime.interface.d.ts.map +1 -1
  253. package/src/legacy/picker/components/picker/picker.component.animations.d.ts +0 -4
  254. package/src/legacy/picker/components/picker/picker.component.animations.d.ts.map +1 -1
  255. package/src/legacy/selector/components/inputDateTime/inputDateTime.component.d.ts +0 -185
  256. package/src/legacy/selector/components/inputDateTime/inputDateTime.component.d.ts.map +1 -1
  257. package/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.d.ts +0 -169
  258. package/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.d.ts.map +1 -1
  259. package/src/misc/validators.d.ts +0 -23
  260. package/src/misc/validators.d.ts.map +1 -1
  261. package/src/modules/calendar/components/index.d.ts +2 -0
  262. package/src/modules/calendar/components/index.d.ts.map +1 -0
  263. package/src/modules/calendar/components/monthCalendar/monthCalendar.component.d.ts +94 -0
  264. package/src/modules/calendar/components/monthCalendar/monthCalendar.component.d.ts.map +1 -0
  265. package/src/modules/calendar/components/monthCalendar/monthCalendar.component.html +15 -0
  266. package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.d.ts +11 -0
  267. package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.d.ts.map +1 -0
  268. package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.d.ts +17 -0
  269. package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.d.ts.map +1 -0
  270. package/src/modules/calendar/directives/index.d.ts +3 -0
  271. package/src/modules/calendar/directives/index.d.ts.map +1 -0
  272. package/src/modules/calendar/index.d.ts +7 -0
  273. package/src/modules/calendar/index.d.ts.map +1 -0
  274. package/src/modules/calendar/interfaces/calendarDayData.interface.d.ts +31 -0
  275. package/src/modules/calendar/interfaces/calendarDayData.interface.d.ts.map +1 -0
  276. package/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.d.ts +19 -0
  277. package/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.d.ts.map +1 -0
  278. package/src/modules/calendar/interfaces/eventData.interface.d.ts +37 -0
  279. package/src/modules/calendar/interfaces/eventData.interface.d.ts.map +1 -0
  280. package/src/modules/calendar/interfaces/index.d.ts +4 -0
  281. package/src/modules/calendar/interfaces/index.d.ts.map +1 -0
  282. package/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.d.ts +26 -0
  283. package/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.d.ts.map +1 -0
  284. package/src/modules/calendar/misc/enums/index.d.ts +3 -0
  285. package/src/modules/calendar/misc/enums/index.d.ts.map +1 -0
  286. package/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.d.ts +18 -0
  287. package/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.d.ts.map +1 -0
  288. package/src/modules/calendar/misc/index.d.ts +2 -0
  289. package/src/modules/calendar/misc/index.d.ts.map +1 -0
  290. package/src/modules/calendar/modules/index.d.ts +2 -0
  291. package/src/modules/calendar/modules/index.d.ts.map +1 -0
  292. package/src/modules/calendar/modules/monthCalendar.module.d.ts +13 -0
  293. package/src/modules/calendar/modules/monthCalendar.module.d.ts.map +1 -0
  294. package/src/modules/calendar/services/eventParser/eventParser.service.d.ts +18 -0
  295. package/src/modules/calendar/services/eventParser/eventParser.service.d.ts.map +1 -0
  296. package/src/modules/calendar/services/index.d.ts +2 -0
  297. package/src/modules/calendar/services/index.d.ts.map +1 -0
  298. package/src/modules/dateTime/directives/dateTime/dateTime.directive.d.ts +3 -3
  299. package/src/modules/dateTime/directives/dateTime/dateTime.directive.d.ts.map +1 -1
  300. package/src/modules/dateTime/directives/dateTimeBase.d.ts +3 -3
  301. package/src/modules/dateTime/directives/dateTimeBase.d.ts.map +1 -1
  302. package/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.d.ts +3 -3
  303. package/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.d.ts.map +1 -1
  304. package/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.d.ts +3 -3
  305. package/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.d.ts.map +1 -1
  306. package/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.d.ts +3 -3
  307. package/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.d.ts.map +1 -1
  308. package/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.d.ts +3 -3
  309. package/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.d.ts.map +1 -1
  310. package/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.d.ts +3 -3
  311. package/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.d.ts.map +1 -1
  312. package/src/modules/dateTime/modules/dateTime.module.d.ts +1 -1
  313. package/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.d.ts +1 -2
  314. package/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.d.ts.map +1 -1
  315. package/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.d.ts +3 -3
  316. package/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.d.ts.map +1 -1
  317. package/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.d.ts +2 -3
  318. package/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.d.ts.map +1 -1
  319. package/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.d.ts +2 -3
  320. package/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.d.ts.map +1 -1
  321. package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.d.ts +6 -7
  322. package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.d.ts.map +1 -1
  323. package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.d.ts +1 -1
  324. package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.d.ts.map +1 -1
  325. package/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.d.ts +2 -3
  326. package/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.d.ts.map +1 -1
  327. package/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.d.ts +3 -3
  328. package/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.d.ts.map +1 -1
  329. package/src/modules/dateTimePicker/directives/index.d.ts +3 -0
  330. package/src/modules/dateTimePicker/directives/index.d.ts.map +1 -1
  331. package/src/{legacy/picker → modules/dateTimePicker}/directives/loopScroll/loopScroll.directive.d.ts +18 -18
  332. package/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.d.ts.map +1 -0
  333. package/src/{legacy/picker → modules/dateTimePicker}/directives/loopScroll/loopScroll.interface.d.ts +1 -1
  334. package/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.d.ts.map +1 -0
  335. package/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.d.ts +20 -0
  336. package/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.d.ts.map +1 -0
  337. package/src/modules/dateTimePicker/interfaces/index.d.ts +1 -0
  338. package/src/modules/dateTimePicker/interfaces/index.d.ts.map +1 -1
  339. package/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.d.ts +62 -0
  340. package/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.d.ts.map +1 -0
  341. package/src/modules/dateTimePicker/modules/dateTimePicker.module.d.ts +1 -1
  342. package/src/modules/dateTimePicker/modules/dateTimePicker.module.d.ts.map +1 -1
  343. package/src/modules/index.d.ts +1 -0
  344. package/src/modules/index.d.ts.map +1 -1
  345. package/src/pipes/dateConvert.pipe.d.ts +1 -1
  346. package/src/pipes/dateConvert.pipe.d.ts.map +1 -1
  347. package/src/pipes/dateFormat.pipe.d.ts +1 -1
  348. package/src/pipes/dateFormat.pipe.d.ts.map +1 -1
  349. package/src/services/dateApi/dateApi.interface.d.ts +25 -12
  350. package/src/services/dateApi/dateApi.interface.d.ts.map +1 -1
  351. package/src/services/datePositionParser/datePositionParser.service.d.ts.map +1 -1
  352. package/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.d.ts +2 -2
  353. package/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.d.ts.map +1 -1
  354. package/src/services/dateValueProvider/dateValueProvider.service.d.ts +1 -1
  355. package/src/services/dateValueProvider/dateValueProvider.service.d.ts.map +1 -1
  356. package/styles/components/_month-calendar.scss +68 -0
  357. package/styles/core/_mixins.scss +2 -0
  358. package/styles/core/_theme.scss +11 -0
  359. package/version.bak +1 -1
  360. package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js +0 -14
  361. package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js.map +0 -1
  362. package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js +0 -2
  363. package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js.map +0 -1
  364. package/es2015/src/legacy/picker/components/dayPicker/dayPicker.component.js +0 -214
  365. package/es2015/src/legacy/picker/components/dayPicker/dayPicker.component.js.map +0 -1
  366. package/es2015/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js +0 -2
  367. package/es2015/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js.map +0 -1
  368. package/es2015/src/legacy/picker/components/monthPicker/monthPicker.component.js +0 -116
  369. package/es2015/src/legacy/picker/components/monthPicker/monthPicker.component.js.map +0 -1
  370. package/es2015/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js +0 -2
  371. package/es2015/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js.map +0 -1
  372. package/es2015/src/legacy/picker/components/picker/picker.component.js +0 -242
  373. package/es2015/src/legacy/picker/components/picker/picker.component.js.map +0 -1
  374. package/es2015/src/legacy/picker/components/pickerBase.component.js +0 -138
  375. package/es2015/src/legacy/picker/components/pickerBase.component.js.map +0 -1
  376. package/es2015/src/legacy/picker/components/pickerImplBase.component.js +0 -145
  377. package/es2015/src/legacy/picker/components/pickerImplBase.component.js.map +0 -1
  378. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js +0 -148
  379. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js.map +0 -1
  380. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js +0 -341
  381. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js.map +0 -1
  382. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js +0 -2
  383. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js.map +0 -1
  384. package/es2015/src/legacy/picker/components/yearPicker/yearPicker.component.js +0 -128
  385. package/es2015/src/legacy/picker/components/yearPicker/yearPicker.component.js.map +0 -1
  386. package/es2015/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js +0 -2
  387. package/es2015/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js.map +0 -1
  388. package/es2015/src/legacy/picker/directives/index.js +0 -4
  389. package/es2015/src/legacy/picker/directives/index.js.map +0 -1
  390. package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.directive.js +0 -213
  391. package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.directive.js.map +0 -1
  392. package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.interface.js +0 -3
  393. package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.interface.js.map +0 -1
  394. package/es2015/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.js.map +0 -1
  395. package/es2015/src/legacy/picker/interfaces.js +0 -6
  396. package/es2015/src/legacy/picker/interfaces.js.map +0 -1
  397. package/es2015/src/legacy/picker/misc/datetimePicker.interface.js +0 -2
  398. package/es2015/src/legacy/picker/misc/datetimePicker.interface.js.map +0 -1
  399. package/es2015/src/legacy/picker/misc/tokens.js +0 -6
  400. package/es2015/src/legacy/picker/misc/tokens.js.map +0 -1
  401. package/es2015/src/legacy/picker/modules/picker.module.js +0 -65
  402. package/es2015/src/legacy/picker/modules/picker.module.js.map +0 -1
  403. package/es2015/src/legacy/picker/types.js +0 -10
  404. package/es2015/src/legacy/picker/types.js.map +0 -1
  405. package/es2015/src/legacy/selector/components/selector/selector.component.animations.js +0 -15
  406. package/es2015/src/legacy/selector/components/selector/selector.component.animations.js.map +0 -1
  407. package/es2015/src/legacy/selector/components/selector/selector.component.js +0 -357
  408. package/es2015/src/legacy/selector/components/selector/selector.component.js.map +0 -1
  409. package/es2015/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js +0 -134
  410. package/es2015/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js.map +0 -1
  411. package/es2015/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js +0 -51
  412. package/es2015/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js.map +0 -1
  413. package/es2015/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js +0 -51
  414. package/es2015/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js.map +0 -1
  415. package/es2015/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js +0 -47
  416. package/es2015/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js.map +0 -1
  417. package/es2015/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js +0 -119
  418. package/es2015/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js.map +0 -1
  419. package/es2015/src/legacy/selector/interfaces.js +0 -2
  420. package/es2015/src/legacy/selector/interfaces.js.map +0 -1
  421. package/es2015/src/legacy/selector/misc/datetimeSelector.interface.js +0 -2
  422. package/es2015/src/legacy/selector/misc/datetimeSelector.interface.js.map +0 -1
  423. package/es2015/src/legacy/selector/misc/tokens.js +0 -6
  424. package/es2015/src/legacy/selector/misc/tokens.js.map +0 -1
  425. package/es2015/src/legacy/selector/modules/basicSelector.module.js +0 -20
  426. package/es2015/src/legacy/selector/modules/basicSelector.module.js.map +0 -1
  427. package/es2015/src/legacy/selector/modules/selector.module.js +0 -63
  428. package/es2015/src/legacy/selector/modules/selector.module.js.map +0 -1
  429. package/es2015/src/legacy/selector/types.js +0 -11
  430. package/es2015/src/legacy/selector/types.js.map +0 -1
  431. package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js +0 -14
  432. package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js.map +0 -1
  433. package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js +0 -2
  434. package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js.map +0 -1
  435. package/es2020/src/legacy/picker/components/dayPicker/dayPicker.component.js +0 -214
  436. package/es2020/src/legacy/picker/components/dayPicker/dayPicker.component.js.map +0 -1
  437. package/es2020/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js +0 -2
  438. package/es2020/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js.map +0 -1
  439. package/es2020/src/legacy/picker/components/monthPicker/monthPicker.component.js +0 -116
  440. package/es2020/src/legacy/picker/components/monthPicker/monthPicker.component.js.map +0 -1
  441. package/es2020/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js +0 -2
  442. package/es2020/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js.map +0 -1
  443. package/es2020/src/legacy/picker/components/picker/picker.component.js +0 -237
  444. package/es2020/src/legacy/picker/components/picker/picker.component.js.map +0 -1
  445. package/es2020/src/legacy/picker/components/pickerBase.component.js +0 -138
  446. package/es2020/src/legacy/picker/components/pickerBase.component.js.map +0 -1
  447. package/es2020/src/legacy/picker/components/pickerImplBase.component.js +0 -145
  448. package/es2020/src/legacy/picker/components/pickerImplBase.component.js.map +0 -1
  449. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js +0 -142
  450. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js.map +0 -1
  451. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js +0 -341
  452. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js.map +0 -1
  453. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js +0 -2
  454. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js.map +0 -1
  455. package/es2020/src/legacy/picker/components/yearPicker/yearPicker.component.js +0 -128
  456. package/es2020/src/legacy/picker/components/yearPicker/yearPicker.component.js.map +0 -1
  457. package/es2020/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js +0 -2
  458. package/es2020/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js.map +0 -1
  459. package/es2020/src/legacy/picker/directives/index.js +0 -4
  460. package/es2020/src/legacy/picker/directives/index.js.map +0 -1
  461. package/es2020/src/legacy/picker/directives/loopScroll/loopScroll.directive.js.map +0 -1
  462. package/es2020/src/legacy/picker/directives/loopScroll/loopScroll.interface.js +0 -3
  463. package/es2020/src/legacy/picker/directives/loopScroll/loopScroll.interface.js.map +0 -1
  464. package/es2020/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.js.map +0 -1
  465. package/es2020/src/legacy/picker/interfaces.js +0 -6
  466. package/es2020/src/legacy/picker/interfaces.js.map +0 -1
  467. package/es2020/src/legacy/picker/misc/datetimePicker.interface.js +0 -2
  468. package/es2020/src/legacy/picker/misc/datetimePicker.interface.js.map +0 -1
  469. package/es2020/src/legacy/picker/misc/tokens.js +0 -6
  470. package/es2020/src/legacy/picker/misc/tokens.js.map +0 -1
  471. package/es2020/src/legacy/picker/modules/picker.module.js +0 -65
  472. package/es2020/src/legacy/picker/modules/picker.module.js.map +0 -1
  473. package/es2020/src/legacy/picker/types.js +0 -10
  474. package/es2020/src/legacy/picker/types.js.map +0 -1
  475. package/es2020/src/legacy/selector/components/selector/selector.component.animations.js +0 -15
  476. package/es2020/src/legacy/selector/components/selector/selector.component.animations.js.map +0 -1
  477. package/es2020/src/legacy/selector/components/selector/selector.component.js +0 -345
  478. package/es2020/src/legacy/selector/components/selector/selector.component.js.map +0 -1
  479. package/es2020/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js +0 -133
  480. package/es2020/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js.map +0 -1
  481. package/es2020/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js +0 -51
  482. package/es2020/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js.map +0 -1
  483. package/es2020/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js +0 -51
  484. package/es2020/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js.map +0 -1
  485. package/es2020/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js +0 -47
  486. package/es2020/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js.map +0 -1
  487. package/es2020/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js +0 -118
  488. package/es2020/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js.map +0 -1
  489. package/es2020/src/legacy/selector/interfaces.js +0 -2
  490. package/es2020/src/legacy/selector/interfaces.js.map +0 -1
  491. package/es2020/src/legacy/selector/misc/datetimeSelector.interface.js +0 -2
  492. package/es2020/src/legacy/selector/misc/datetimeSelector.interface.js.map +0 -1
  493. package/es2020/src/legacy/selector/misc/tokens.js +0 -6
  494. package/es2020/src/legacy/selector/misc/tokens.js.map +0 -1
  495. package/es2020/src/legacy/selector/modules/basicSelector.module.js +0 -20
  496. package/es2020/src/legacy/selector/modules/basicSelector.module.js.map +0 -1
  497. package/es2020/src/legacy/selector/modules/selector.module.js +0 -63
  498. package/es2020/src/legacy/selector/modules/selector.module.js.map +0 -1
  499. package/es2020/src/legacy/selector/types.js +0 -11
  500. package/es2020/src/legacy/selector/types.js.map +0 -1
  501. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.css +0 -0
  502. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.d.ts +0 -9
  503. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.d.ts.map +0 -1
  504. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.html +0 -0
  505. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.d.ts +0 -6
  506. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.d.ts.map +0 -1
  507. package/src/legacy/picker/components/dayPicker/dayPicker.component.css +0 -22
  508. package/src/legacy/picker/components/dayPicker/dayPicker.component.d.ts +0 -80
  509. package/src/legacy/picker/components/dayPicker/dayPicker.component.d.ts.map +0 -1
  510. package/src/legacy/picker/components/dayPicker/dayPicker.component.html +0 -21
  511. package/src/legacy/picker/components/dayPicker/dayPicker.interfaces.d.ts +0 -11
  512. package/src/legacy/picker/components/dayPicker/dayPicker.interfaces.d.ts.map +0 -1
  513. package/src/legacy/picker/components/monthPicker/monthPicker.component.css +0 -4
  514. package/src/legacy/picker/components/monthPicker/monthPicker.component.d.ts +0 -53
  515. package/src/legacy/picker/components/monthPicker/monthPicker.component.d.ts.map +0 -1
  516. package/src/legacy/picker/components/monthPicker/monthPicker.component.html +0 -13
  517. package/src/legacy/picker/components/monthPicker/monthPicker.interfaces.d.ts +0 -7
  518. package/src/legacy/picker/components/monthPicker/monthPicker.interfaces.d.ts.map +0 -1
  519. package/src/legacy/picker/components/picker/picker.component.css +0 -4
  520. package/src/legacy/picker/components/picker/picker.component.d.ts +0 -105
  521. package/src/legacy/picker/components/picker/picker.component.d.ts.map +0 -1
  522. package/src/legacy/picker/components/picker/picker.component.html +0 -3
  523. package/src/legacy/picker/components/pickerBase.component.d.ts +0 -80
  524. package/src/legacy/picker/components/pickerBase.component.d.ts.map +0 -1
  525. package/src/legacy/picker/components/pickerImplBase.component.d.ts +0 -128
  526. package/src/legacy/picker/components/pickerImplBase.component.d.ts.map +0 -1
  527. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.css +0 -64
  528. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.d.ts +0 -71
  529. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.d.ts.map +0 -1
  530. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.html +0 -67
  531. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.d.ts +0 -4
  532. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.d.ts.map +0 -1
  533. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.d.ts +0 -6
  534. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.d.ts.map +0 -1
  535. package/src/legacy/picker/components/yearPicker/yearPicker.component.css +0 -4
  536. package/src/legacy/picker/components/yearPicker/yearPicker.component.d.ts +0 -58
  537. package/src/legacy/picker/components/yearPicker/yearPicker.component.d.ts.map +0 -1
  538. package/src/legacy/picker/components/yearPicker/yearPicker.component.html +0 -13
  539. package/src/legacy/picker/components/yearPicker/yearPicker.interfaces.d.ts +0 -7
  540. package/src/legacy/picker/components/yearPicker/yearPicker.interfaces.d.ts.map +0 -1
  541. package/src/legacy/picker/directives/index.d.ts +0 -4
  542. package/src/legacy/picker/directives/index.d.ts.map +0 -1
  543. package/src/legacy/picker/directives/loopScroll/loopScroll.directive.d.ts.map +0 -1
  544. package/src/legacy/picker/directives/loopScroll/loopScroll.interface.d.ts.map +0 -1
  545. package/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.d.ts +0 -20
  546. package/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.d.ts.map +0 -1
  547. package/src/legacy/picker/interfaces.d.ts +0 -6
  548. package/src/legacy/picker/interfaces.d.ts.map +0 -1
  549. package/src/legacy/picker/misc/datetimePicker.interface.d.ts +0 -193
  550. package/src/legacy/picker/misc/datetimePicker.interface.d.ts.map +0 -1
  551. package/src/legacy/picker/misc/tokens.d.ts +0 -7
  552. package/src/legacy/picker/misc/tokens.d.ts.map +0 -1
  553. package/src/legacy/picker/modules/picker.module.d.ts +0 -20
  554. package/src/legacy/picker/modules/picker.module.d.ts.map +0 -1
  555. package/src/legacy/picker/types.d.ts +0 -10
  556. package/src/legacy/picker/types.d.ts.map +0 -1
  557. package/src/legacy/selector/components/selector/selector.component.animations.d.ts +0 -5
  558. package/src/legacy/selector/components/selector/selector.component.animations.d.ts.map +0 -1
  559. package/src/legacy/selector/components/selector/selector.component.css +0 -11
  560. package/src/legacy/selector/components/selector/selector.component.d.ts +0 -157
  561. package/src/legacy/selector/components/selector/selector.component.d.ts.map +0 -1
  562. package/src/legacy/selector/components/selector/selector.component.html +0 -10
  563. package/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.d.ts +0 -80
  564. package/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.d.ts.map +0 -1
  565. package/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.d.ts +0 -23
  566. package/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.d.ts.map +0 -1
  567. package/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.d.ts +0 -23
  568. package/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.d.ts.map +0 -1
  569. package/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.d.ts +0 -22
  570. package/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.d.ts.map +0 -1
  571. package/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.d.ts +0 -54
  572. package/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.d.ts.map +0 -1
  573. package/src/legacy/selector/interfaces.d.ts +0 -2
  574. package/src/legacy/selector/interfaces.d.ts.map +0 -1
  575. package/src/legacy/selector/misc/datetimeSelector.interface.d.ts +0 -96
  576. package/src/legacy/selector/misc/datetimeSelector.interface.d.ts.map +0 -1
  577. package/src/legacy/selector/misc/tokens.d.ts +0 -7
  578. package/src/legacy/selector/misc/tokens.d.ts.map +0 -1
  579. package/src/legacy/selector/modules/basicSelector.module.d.ts +0 -11
  580. package/src/legacy/selector/modules/basicSelector.module.d.ts.map +0 -1
  581. package/src/legacy/selector/modules/selector.module.d.ts +0 -20
  582. package/src/legacy/selector/modules/selector.module.d.ts.map +0 -1
  583. package/src/legacy/selector/types.d.ts +0 -11
  584. package/src/legacy/selector/types.d.ts.map +0 -1
package/changelog.md CHANGED
@@ -1,5 +1,159 @@
1
1
  # Changelog
2
2
 
3
+ ## Version 6.0.0 (2022-12-23)
4
+
5
+ ### Features
6
+
7
+ - new `DateObject` type, that represents date object, either as date api or plain
8
+ - new `EventParser` service, that is used for parsing events into events to requested period
9
+ - **methods**
10
+ - `getEventsPerDay` gets events parsed per day
11
+ - new `MonthCalendarComponent` component, that is used for displaying month calendar
12
+ - **implements**
13
+ - `OnInit`
14
+ - `OnChanges`
15
+ - **inputs**
16
+ - `showWeekNumber` indication that week number should be displayed
17
+ - `display` date that should be displayed in month calendar
18
+ - `weekDayName` format for displaying week day names
19
+ - `dayAspectRatio` aspect ratio for displayed calendar day cell
20
+ - `events` array of events that should be displayed
21
+ - **content children**
22
+ - **child** `CalendarDayTemplateDirective`
23
+ - new `CalendarDayTemplateContext` interface, that is context passed to template of calendar day
24
+ - **properties**
25
+ - `$implicit` data that are used for displaying calendar day
26
+ - new `CalendarDayTemplateDirective` directive, that is used for obtaining custom calendar day template
27
+ - **properties**
28
+ - `template` template obtained by this structural directive
29
+ - new `MonthCalendarModule` module, that is used for calendar displaying month
30
+ - **exports**
31
+ - `MonthCalendarComponent`
32
+ - `CalendarDayTemplateDirective`
33
+ - new `DatePickerInputSADirective` directive, that combines date picker with simple date input
34
+ - new `CalendarDayAspectRatio` enum, that represents available aspect ratios for displaying calendar days
35
+ - `OneToOne` aspect ratio of width to height is 1:1 (square)
36
+ - `ThreeToTwo` aspect ratio of width to height is 3:2
37
+ - `FourToThree` aspect ratio of width to height is 4:3
38
+ - `SixteenToTen` aspect ratio of width to height is 16:10
39
+ - `SixteenToNine` aspect ratio of width to height is 16:9
40
+ - new `MonthCalendarDayFormat` enum, that represents available day formats for calendar day
41
+ - `None` no week day name displayed
42
+ - `Short` short version of week day name
43
+ - `Full` full version of week day name
44
+ - new `CalendarDayData` interface, that represents data for day for calendar
45
+ - **properties**
46
+ - `events` thin array of events array for day
47
+ - `date` date of day
48
+ - `day` number of day of month
49
+ - `isWeekend` indication whether is this day weekend day
50
+ - `isCurrentMonth` indication whether is this day for currently displayed month
51
+ - `week` week number of year for day
52
+ - new `CalendarEventDayMetadata` interface, that represents event metadata for day
53
+ - **extends**
54
+ - `EventData`
55
+ - `WithDateApiFromTo`
56
+ - **properties**
57
+ - `allDay` indication whether is event all day event
58
+ - `onGoingFrom` indication that event is ongoing from previous date
59
+ - `onGoingTo` indication that event is ongoing to next date
60
+ - new `EventData` interface, that represents data for event that are passed to calendar
61
+ - **properties**
62
+ - `data` data for event
63
+ - `dateFrom` date when event starts
64
+ - `dateTo` date when event ends
65
+ - new `WithDateApiFromTo` interface, that represents object that holds date api object for dateFrom and dateTo
66
+ - **properties**
67
+ - `dateApiFrom` date api for date when event starts
68
+ - `dateApiTo` date api for date when event ends
69
+ - updated `DateApiObject` interface
70
+ - new `isSame` method which, compares whether is date same as provided date
71
+ - new `formatISO` method which, formats date value as ISO string representation
72
+ - all following methods now accepts `DateObject<TDate>` instead of just `TDate` as argument
73
+ - `isBefore`
74
+ - `isAfter`
75
+ - `diffDays`
76
+ - `isSameWeek`
77
+ - `isSameDecade`
78
+ - `isSameYear`
79
+ - `isSameMonth`
80
+ - `isSameDay`
81
+ - updated `DateTimeSADirective` directive
82
+ - now is standalone directive
83
+ - updated `DateTimeControlValueAccessorSADirective` directive
84
+ - now is standalone directive
85
+ - updated `DateTimeInputSADirective` directive
86
+ - now is standalone directive
87
+ - updated `DateTimeMaxValidatorSADirective` directive
88
+ - now is standalone directive
89
+ - updated `DateTimeMinValidatorSADirective` directive
90
+ - now is standalone directive
91
+ - updated `DateTimeValidatorSADirective` directive
92
+ - now is standalone directive
93
+ - updated `DateTimePickerSADirective` directive
94
+ - now is standalone directive
95
+ - *subpackage* `@anglr/datetime/moment`
96
+ - updated `MomentDateApi`
97
+ - now implements also new `isSame` and `formatISO` methods, and supports new `DateObject<TDate>` argument
98
+ - *subpackage* `@anglr/datetime/date-fns`
99
+ - updated `DateFnsDateApi`
100
+ - now implements also new `isSame` and `formatISO` methods, and supports new `DateObject<TDate>` argument
101
+
102
+ ### BREAKING CHANGES
103
+
104
+ - updated minimal version requirements for `Node.js` (`14.20.0` or `16.13.0` or `18.10.0`)
105
+ - minimal supported version of `@angular` is now `15.0.4`
106
+ - minimal supported version of `@jscrpt/common` is now `3.3.0`
107
+ - minimal supported version of `@anglr/common` is now `15.0.1`
108
+ - minimal supported version of `tslib` is now `2.4.1`
109
+ - removed old stylings and themes
110
+ - most of generic default `any` replaced by `unknown`
111
+ - updated `DateApiObjectCtor` interface
112
+ - switched order of generic arguments
113
+ - renamed `DateTimeDirective` to `DateTimeSADirective` directive
114
+ - renamed `DateTimeControlValueAccessorDirective` to `DateTimeControlValueAccessorSADirective` directive
115
+ - renamed `DateTimeInputDirective` to `DateTimeInputSADirective` directive
116
+ - renamed `DateTimeMaxValidatorDirective` to `DateTimeMaxValidatorSADirective` directive
117
+ - renamed `DateTimeMinValidatorDirective` to `DateTimeMinValidatorSADirective` directive
118
+ - renamed `DateTimeValidatorDirective` to `DateTimeValidatorSADirective` directive
119
+ - renamed `DateTimePickerDirective` to `DateTimePickerSADirective` directive
120
+ - renamed `LoopScrollDataDirective` to `LoopScrollDataSADirective` directive
121
+ - renamed `LoopScrollDirective` to `LoopScrollSADirective` directive
122
+ - removed `PickerBaseComponent` legacy component
123
+ - removed `PickerImplBaseComponent` legacy component
124
+ - removed `DateTimeDayPickerComponent` legacy component
125
+ - removed `DayPickerCssClasses` legacy interface
126
+ - removed `DateTimeMonthPickerComponent` legacy component
127
+ - removed `MonthPickerCssClasses` legacy interface
128
+ - removed `scaleUpDownTrigger` legacy animation
129
+ - removed `DateTimePickerLegacyComponent` legacy component
130
+ - removed `DateTimeRollerTimePickerComponent` legacy component
131
+ - removed `RollerTimePickerCssClasses` legacy interface
132
+ - removed `YearPickerCssClasses` legacy component
133
+ - removed `CommonPickerCssClasses` legacy interface
134
+ - removed `DateTimePickerCssClasses` legacy interface
135
+ - removed `DateTimePickerLegacyOptions` legacy interface
136
+ - removed `DateTimeLegacyPicker` legacy interface
137
+ - removed `DATE_TIME_PICKER_CONFIGURATION` legacy token
138
+ - removed `DateTimeLegacyPickerModule` legacy module
139
+ - removed `enterLeaveAnimateChildTrigger` legacy animation
140
+ - removed `DateTimeSelectorComponent` legacy component
141
+ - removed `DatetimeMaxValidatorDirective` legacy directive
142
+ - removed `DatetimeMinValidatorDirective` legacy directive
143
+ - removed `DateTimePickerRendererDirective` legacy directive
144
+ - removed `DatetimeValidatorDirective` legacy directive
145
+ - removed `DateTimeSelectorControlValueAccessor` legacy directive
146
+ - removed `DateTimeSelectorOptions` legacy interface
147
+ - removed `DateTimeSelector` legacy interface
148
+ - removed `DATE_TIME_SELECTOR_CONFIGURATION` legacy token
149
+ - removed `DateTimeBasicSelectorModule` legacy module
150
+ - removed `DateTimeSelectorModule` legacy module
151
+ - removed `maxDatetime` legacy validator function
152
+ - removed `minDatetime` legacy validator function
153
+ - removed `datetime` legacy validator function
154
+ - removed `Validators` legacy validators class
155
+ - removed `DateTimeValueObject` legacy interface
156
+
3
157
  ## Version 5.0.0 (2022-10-21)
4
158
 
5
159
  ### Features
@@ -218,7 +372,7 @@
218
372
 
219
373
  ### Features
220
374
 
221
- - new `DateApiObjectCtor` interface that, is definition of type, that is used for creating instance of DateApiObject
375
+ - new `DateApiObjectCtor` interface, that is definition of type, that is used for creating instance of DateApiObject
222
376
  - new `DATE_API_OBJECT_TYPE` injection token used for injecting type that creates instance of DateApiObject
223
377
  - updated `DateApi` interface
224
378
  - new generic parameter `TDateApiObject` which allows to get specific `DateApiObject` implementation
@@ -1,5 +1,5 @@
1
1
  import { ValueProvider } from '@angular/core';
2
- import { DateApi, DateValue, DateApiObject, DateTimeRelativeParser, DateApiObjectCtor } from '@anglr/datetime';
2
+ import { DateApi, DateValue, DateApiObject, DateTimeRelativeParser, DateApiObjectCtor, DateObject } from '@anglr/datetime';
3
3
  import { DateFnsLocale } from './dateFnsLocale.service';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
@@ -37,6 +37,10 @@ export declare class DateFnsDateApiObject implements DateApiObject<Date> {
37
37
  * @param formatString - Format token used for creating formatted string
38
38
  */
39
39
  format(formatString: string): string;
40
+ /**
41
+ * @inheritdoc
42
+ */
43
+ formatISO(): string;
40
44
  /**
41
45
  * @inheritdoc
42
46
  */
@@ -245,42 +249,45 @@ export declare class DateFnsDateApiObject implements DateApiObject<Date> {
245
249
  * Gets indication whether current value is before 'date'
246
250
  * @param date - Date which is this date compared to
247
251
  */
248
- isBefore(date: Date): boolean;
252
+ isBefore(date: DateObject<Date>): boolean;
249
253
  /**
250
254
  * Gets indication whether current value is after 'date'
251
255
  * @param date - Date which is this date compared to
252
256
  */
253
- isAfter(date: Date): boolean;
257
+ isAfter(date: DateObject<Date>): boolean;
254
258
  /**
255
259
  * Gets number of days between this and provided date
256
260
  * @param date - Date which is used for computation of diff against
257
261
  */
258
- diffDays(date: Date): number;
262
+ diffDays(date: DateObject<Date>): number;
259
263
  /**
260
264
  * Compares whether this date is same week as provided date
261
265
  * @param date - Date which is used for comparison of same week
262
266
  */
263
- isSameWeek(date: Date): boolean;
267
+ isSameWeek(date: DateObject<Date>): boolean;
264
268
  /**
265
269
  * Compares whether this date is same decade as provided date
266
270
  * @param date - Date which is used for comparison of same decade
267
271
  */
268
- isSameDecade(date: Date): boolean;
272
+ isSameDecade(date: DateObject<Date>): boolean;
269
273
  /**
270
274
  * Compares whether this date is same year as provided date
271
275
  * @param date - Date which is used for comparison of same year
272
276
  */
273
- isSameYear(date: Date): boolean;
277
+ isSameYear(date: DateObject<Date>): boolean;
274
278
  /**
275
279
  * Compares whether this date is same month as provided date
276
280
  * @param date - Date which is used for comparison of same month
277
281
  */
278
- isSameMonth(date: Date): boolean;
282
+ isSameMonth(date: DateObject<Date>): boolean;
279
283
  /**
280
- * Compares whether this date is same day as provided date
281
- * @param date - Date which is used for comparison of same day
284
+ * @inheritdoc
282
285
  */
283
- isSameDay(date: Date): boolean;
286
+ isSameDay(date: DateObject<Date>): boolean;
287
+ /**
288
+ * @inheritdoc
289
+ */
290
+ isSame(date: DateObject<Date>): boolean;
284
291
  /**
285
292
  * Creates clone of this instance, value and originalValue have same value and are cloned from value
286
293
  */
@@ -300,6 +307,11 @@ export declare class DateFnsDateApiObject implements DateApiObject<Date> {
300
307
  * @returns Itself for fluent API
301
308
  */
302
309
  resetOriginal(): DateApiObject<Date>;
310
+ /**
311
+ * Converts date object to date
312
+ * @param value - Value to be converted to date
313
+ */
314
+ protected getDate(value: DateObject<Date>): Date;
303
315
  }
304
316
  /**
305
317
  * Date api using DateFnsJS, used for obtaining DateApi wrapper object
@@ -307,8 +319,8 @@ export declare class DateFnsDateApiObject implements DateApiObject<Date> {
307
319
  export declare class DateFnsDateApi implements DateApi<Date> {
308
320
  protected _localeSvc: DateFnsLocale;
309
321
  protected _relativeParser: DateTimeRelativeParser<Date>;
310
- protected _dateApiObjecType: DateApiObjectCtor<DateFnsDateApiObject, Date>;
311
- constructor(_localeSvc: DateFnsLocale, _relativeParser: DateTimeRelativeParser<Date>, _dateApiObjecType: DateApiObjectCtor<DateFnsDateApiObject, Date>);
322
+ protected _dateApiObjecType: DateApiObjectCtor<Date, DateFnsDateApiObject>;
323
+ constructor(_localeSvc: DateFnsLocale, _relativeParser: DateTimeRelativeParser<Date>, _dateApiObjecType: DateApiObjectCtor<Date, DateFnsDateApiObject>);
312
324
  /**
313
325
  * Gets wrapping object used for manipulation
314
326
  * @param value - Value to be converted (parsed) and used for manipulation
@@ -342,7 +354,7 @@ export declare class DateFnsDateApi implements DateApi<Date> {
342
354
  /**
343
355
  * Type that represents creation of DateApiObject for date-fns
344
356
  */
345
- export declare const dateFnsDateApiObjectType: DateApiObjectCtor<DateFnsDateApiObject, Date>;
357
+ export declare const dateFnsDateApiObjectType: DateApiObjectCtor<Date, DateFnsDateApiObject>;
346
358
  /**
347
359
  * Injection token used for injecting type that creates instance of DateApiObject for date-fns
348
360
  */
@@ -1 +1 @@
1
- {"version":3,"file":"dateFnsDateApi.service.d.ts","sourceRoot":"","sources":["dateFnsDateApi.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAqB,aAAa,EAAC,MAAM,eAAe,CAAC;AAChE,OAAO,EAAC,OAAO,EAAE,SAAS,EAAE,aAAa,EAAE,sBAAsB,EAAE,iBAAiB,EAAuB,MAAM,iBAAiB,CAAC;AAKnI,OAAO,EAAC,aAAa,EAAC,MAAM,yBAAyB,CAAC;;AAEtD;;GAEG;AACH,qBAAa,oBAAqB,YAAW,aAAa,CAAC,IAAI,CAAC;IAmChD,SAAS,CAAC,UAAU,EAAE,aAAa;IA/B/C;;OAEG;IACH,SAAS,CAAC,cAAc,EAAE,IAAI,CAAC;IAE/B;;OAEG;IACH,SAAS,CAAC,MAAM,EAAE,IAAI,CAAC;IAIvB;;OAEG;IACH,IAAW,aAAa,IAAI,IAAI,CAG/B;IAED;;OAEG;IACH,IAAW,KAAK,IAAI,IAAI,CAGvB;gBAGW,KAAK,EAAE,SAAS,GAAC,IAAI,EACrB,MAAM,EAAE,MAAM,GAAC,IAAI,GAAC,SAAS,EACnB,UAAU,EAAE,aAAa;IA2B/C;;OAEG;IACI,OAAO,IAAI,OAAO;IAKzB;;OAEG;IACI,SAAS,IAAI,OAAO;IAK3B;;;OAGG;IACI,MAAM,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;IAK3C;;OAEG;IACI,aAAa,IAAI,MAAM;IAK9B;;;OAGG;IACI,aAAa,IAAI,aAAa,CAAC,IAAI,CAAC;IAO3C;;;OAGG;IACI,WAAW,IAAI,aAAa,CAAC,IAAI,CAAC;IAOzC;;;OAGG;IACI,WAAW,IAAI,aAAa,CAAC,IAAI,CAAC;IAOzC;;;OAGG;IACI,SAAS,IAAI,aAAa,CAA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OAGG;IACH,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,UAAU,CAAC,IAAI,CAAC,GAAG,IAAI;CASnD;AAED;;GAEG;AACH,qBACa,cAAe,YAAW,OAAO,CAAC,IAAI,CAAC;IAGX,SAAS,CAAC,UAAU,EAAE,aAAa;IAC5D,SAAS,CAAC,eAAe,EAAE,sBAAsB,CAAC,IAAI,CAAC;IACzB,SAAS,CAAC,iBAAiB,EAAE,iBAAiB,CAAC,IAAI,EAAE,oBAAoB,CAAC;gBAFrE,UAAU,EAAE,aAAa,EAClD,eAAe,EAAE,sBAAsB,CAAC,IAAI,CAAC,EACf,iBAAiB,EAAE,iBAAiB,CAAC,IAAI,EAAE,oBAAoB,CAAC;IAMpH;;;;OAIG;IACI,QAAQ,CAAC,KAAK,EAAE,SAAS,GAAC,IAAI,EAAE,MAAM,CAAC,EAAE,MAAM,GAAG,aAAa,CAAC,IAAI,CAAC;IAK5E;;OAEG;IACI,GAAG,IAAI,aAAa,CAAC,IAAI,CAAC;IAKjC;;;OAGG;IACI,SAAS,CAAC,YAAY,EAAE,MAAM,GAAG,MAAM;IAuC9C;;OAEG;IACI,kBAAkB,IAAI,OAAO;IAKpC;;OAEG;IACI,aAAa,IAAI,MAAM,EAAE;IAahC;;OAEG;IACI,MAAM,CAAC,KAAK,EAAE,OAAO,GAAG,KAAK,IAAI,IAAI;yCAnGnC,cAAc;6CAAd,cAAc;CAuG1B;AAED;;GAEG;AACH,eAAO,MAAM,wBAAwB,EAAE,iBAAiB,CAAC,IAAI,EAAE,oBAAoB,CAAwB,CAAC;AAE5G;;GAEG;AACH,eAAO,MAAM,6BAA6B,EAAE,aAI3C,CAAC"}
@@ -1,7 +1,7 @@
1
1
  import { Inject, Injectable } from '@angular/core';
2
2
  import { DateTimeRelativeParser, DATE_API_OBJECT_TYPE } from '@anglr/datetime';
3
3
  import { isBlank, isPresent, isString } from '@jscrpt/common';
4
- import { toDate, getDate, setDate, isAfter, isBefore, differenceInCalendarDays, format, startOfMonth, endOfMonth, startOfWeek, endOfWeek, startOfDay, endOfDay, addMonths, addWeeks, addDays, subMonths, subWeeks, subDays, getDaysInMonth, isSameDay, isSameWeek, isSameMonth, isValid, parse, parseISO, addYears, subYears, startOfYear, endOfYear, isWeekend, setYear, getYear, isSameYear, startOfDecade, endOfDecade, setMonth, getMonth, setISODay, getISODay, subHours, addHours, endOfHour, startOfHour, startOfMinute, endOfMinute, addMinutes, subMinutes, getHours, setHours, getMinutes, setMinutes, isDate, getUnixTime } from 'date-fns';
4
+ import { toDate, getDate, setDate, isAfter, isBefore, isEqual, differenceInCalendarDays, format, formatISO, startOfMonth, endOfMonth, startOfWeek, endOfWeek, startOfDay, endOfDay, addMonths, addWeeks, addDays, subMonths, subWeeks, subDays, getDaysInMonth, isSameDay, isSameWeek, isSameMonth, isValid, parse, parseISO, addYears, subYears, startOfYear, endOfYear, isWeekend, setYear, getYear, isSameYear, startOfDecade, endOfDecade, setMonth, getMonth, setISODay, getISODay, subHours, addHours, endOfHour, startOfHour, startOfMinute, endOfMinute, addMinutes, subMinutes, getHours, setHours, getMinutes, setMinutes, isDate, getUnixTime } from 'date-fns';
5
5
  import { DATE_FNS_LOCALE } from '../misc/tokens';
6
6
  import * as i0 from "@angular/core";
7
7
  import * as i1 from "@anglr/datetime";
@@ -61,6 +61,12 @@ export class DateFnsDateApiObject {
61
61
  format(formatString) {
62
62
  return format(this._value, formatString, { locale: this._localeSvc.locale });
63
63
  }
64
+ /**
65
+ * @inheritdoc
66
+ */
67
+ formatISO() {
68
+ return formatISO(this._value);
69
+ }
64
70
  /**
65
71
  * @inheritdoc
66
72
  */
@@ -364,6 +370,7 @@ export class DateFnsDateApiObject {
364
370
  * @param date - Date which is this date compared to
365
371
  */
366
372
  isBefore(date) {
373
+ date = this.getDate(date);
367
374
  return isBefore(this._value, date);
368
375
  }
369
376
  /**
@@ -371,6 +378,7 @@ export class DateFnsDateApiObject {
371
378
  * @param date - Date which is this date compared to
372
379
  */
373
380
  isAfter(date) {
381
+ date = this.getDate(date);
374
382
  return isAfter(this._value, date);
375
383
  }
376
384
  /**
@@ -378,6 +386,7 @@ export class DateFnsDateApiObject {
378
386
  * @param date - Date which is used for computation of diff against
379
387
  */
380
388
  diffDays(date) {
389
+ date = this.getDate(date);
381
390
  return differenceInCalendarDays(this._value, date);
382
391
  }
383
392
  /**
@@ -385,6 +394,7 @@ export class DateFnsDateApiObject {
385
394
  * @param date - Date which is used for comparison of same week
386
395
  */
387
396
  isSameWeek(date) {
397
+ date = this.getDate(date);
388
398
  return isSameWeek(this._value, date, { locale: this._localeSvc.locale });
389
399
  }
390
400
  /**
@@ -392,6 +402,7 @@ export class DateFnsDateApiObject {
392
402
  * @param date - Date which is used for comparison of same decade
393
403
  */
394
404
  isSameDecade(date) {
405
+ date = this.getDate(date);
395
406
  const year = getYear(this._value);
396
407
  const start = year - (year % 10);
397
408
  const end = start + 10;
@@ -402,6 +413,7 @@ export class DateFnsDateApiObject {
402
413
  * @param date - Date which is used for comparison of same year
403
414
  */
404
415
  isSameYear(date) {
416
+ date = this.getDate(date);
405
417
  return isSameYear(this._value, date);
406
418
  }
407
419
  /**
@@ -409,15 +421,23 @@ export class DateFnsDateApiObject {
409
421
  * @param date - Date which is used for comparison of same month
410
422
  */
411
423
  isSameMonth(date) {
424
+ date = this.getDate(date);
412
425
  return isSameMonth(this._value, date);
413
426
  }
414
427
  /**
415
- * Compares whether this date is same day as provided date
416
- * @param date - Date which is used for comparison of same day
428
+ * @inheritdoc
417
429
  */
418
430
  isSameDay(date) {
431
+ date = this.getDate(date);
419
432
  return isSameDay(this._value, date);
420
433
  }
434
+ /**
435
+ * @inheritdoc
436
+ */
437
+ isSame(date) {
438
+ date = this.getDate(date);
439
+ return isEqual(this._value, date);
440
+ }
421
441
  /**
422
442
  * Creates clone of this instance, value and originalValue have same value and are cloned from value
423
443
  */
@@ -452,6 +472,17 @@ export class DateFnsDateApiObject {
452
472
  this._value = this._originalValue;
453
473
  return this;
454
474
  }
475
+ //######################### protected methods #########################
476
+ /**
477
+ * Converts date object to date
478
+ * @param value - Value to be converted to date
479
+ */
480
+ getDate(value) {
481
+ if (value instanceof Date) {
482
+ return value;
483
+ }
484
+ return value.value;
485
+ }
455
486
  }
456
487
  /**
457
488
  * Date api using DateFnsJS, used for obtaining DateApi wrapper object
@@ -534,9 +565,9 @@ export class DateFnsDateApi {
534
565
  return isDate(value);
535
566
  }
536
567
  }
537
- DateFnsDateApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateFnsDateApi, deps: [{ token: DATE_FNS_LOCALE }, { token: i1.DateTimeRelativeParser }, { token: DATE_API_OBJECT_TYPE }], target: i0.ɵɵFactoryTarget.Injectable });
538
- DateFnsDateApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateFnsDateApi });
539
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateFnsDateApi, decorators: [{
568
+ DateFnsDateApi.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DateFnsDateApi, deps: [{ token: DATE_FNS_LOCALE }, { token: i1.DateTimeRelativeParser }, { token: DATE_API_OBJECT_TYPE }], target: i0.ɵɵFactoryTarget.Injectable });
569
+ DateFnsDateApi.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DateFnsDateApi });
570
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DateFnsDateApi, decorators: [{
540
571
  type: Injectable
541
572
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
542
573
  type: Inject,
@@ -1 +1 @@
1
- {"version":3,"file":"dateFnsDateApi.service.js","sourceRoot":"","sources":["../../../../date-fns/src/services/dateFnsDateApi.service.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAA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AC9D,CAAC;IAED;;OAEG;IACI,aAAa;QAEhB,IAAI,UAAU,GAAG,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,OAAQ,CAAC,YAAa,CAAC;QAC/D,MAAM,QAAQ,GAAa,EAAE,CAAC;QAE9B,KAAI,IAAI,CAAC,GAAG,CAAC,EAAE,CAAC,GAAG,CAAC,EAAE,CAAC,EAAE,EACzB;YACI,QAAQ,CAAC,IAAI,CAAC,IAAI,CAAC,UAAU,CAAC,MAAM,CAAC,QAAS,CAAC,GAAG,CAAC,UAAU,EAAE,GAAG,CAAC,EAAE,EAAC,KAAK,EAAE,OAAO,EAAC,CAAC,CAAC,CAAC;SAC3F;QAED,OAAO,QAAQ,CAAC;IACpB,CAAC;IAED;;OAEG;IACI,MAAM,CAAC,KAAc;QAExB,OAAO,MAAM,CAAC,KAAK,CAAC,CAAC;IACzB,CAAC;;2GAtGQ,cAAc,kBAGH,eAAe,mDAEf,oBAAoB;+GAL/B,cAAc;2FAAd,cAAc;kBAD1B,UAAU;;0BAIM,MAAM;2BAAC,eAAe;;0BAEtB,MAAM;2BAAC,oBAAoB;;AAoG5C;;GAEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAkD,oBAAoB,CAAC;AAE5G;;GAEG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAC1C;IACI,OAAO,EAAE,oBAAoB;IAC7B,QAAQ,EAAE,wBAAwB;CACrC,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, isString} from '@jscrpt/common';\nimport {toDate, getDate, setDate, isAfter, isBefore, differenceInCalendarDays, format, startOfMonth, endOfMonth, startOfWeek, endOfWeek, startOfDay, endOfDay, addMonths, addWeeks, addDays, subMonths, subWeeks, subDays, getDaysInMonth, isSameDay, isSameWeek, isSameMonth, isValid, parse, parseISO, addYears, subYears, startOfYear, endOfYear, isWeekend, setYear, getYear, isSameYear, startOfDecade, endOfDecade, setMonth, getMonth, setISODay, getISODay, subHours, addHours, endOfHour, startOfHour, startOfMinute, endOfMinute, addMinutes, subMinutes, getHours, setHours, getMinutes, setMinutes, isDate, getUnixTime} from 'date-fns';\n\nimport {DATE_FNS_LOCALE} from '../misc/tokens';\nimport {DateFnsLocale} from './dateFnsLocale.service';\n\n/**\n * Instance of object wrapping TDate, allowing manipulation with it\n */\nexport class DateFnsDateApiObject implements DateApiObject<Date>\n{\n //######################### protected fields #########################\n\n /**\n * Original value that is not changed unless 'updateOriginal' is called\n */\n protected _originalValue: Date;\n\n /**\n * Instance of date\n */\n protected _value: Date;\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(): Date\n {\n return this._originalValue;\n }\n\n /**\n * Instance of date\n */\n public get value(): Date\n {\n return this._value;\n }\n\n //######################### constructor #########################\n constructor(value: DateValue|Date,\n format: string|null|undefined,\n protected _localeSvc: DateFnsLocale)\n {\n if(isString(value))\n {\n //ISO string\n if(/^\\d+-\\d+-\\d+(T\\d+:\\d+:\\d+)?/.test(value))\n {\n this._value = this._originalValue = parseISO(value);\n }\n else\n {\n if(isBlank(format))\n {\n throw new Error('date-fns requires format parameter to be set for parsing non ISO string date!');\n }\n\n this._value = this._originalValue = parse(value, format, new Date(1970, 0));\n }\n }\n else\n {\n this._value = this._originalValue = toDate(value);\n }\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 isValid(this._value);\n }\n\n /**\n * Gets indication whether provided instance of date is weekend day\n */\n public isWeekend(): boolean\n {\n return isWeekend(this._value);\n }\n\n /**\n * Formats date value\n * @param formatString - Format token used for creating formatted string\n */\n public format(formatString: string): string\n {\n return format(this._value, formatString, {locale: this._localeSvc.locale});\n }\n\n /**\n * @inheritdoc\n */\n public unixTimestamp(): number\n {\n return getUnixTime(this._value);\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<Date>\n {\n this._value = startOfDecade(this._value);\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<Date>\n {\n this._value = endOfDecade(this._value);\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<Date>\n {\n this._value = startOfYear(this._value);\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<Date>\n {\n this._value = endOfYear(this._value);\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<Date>\n {\n this._value = addYears(this._value, count ?? 1);\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<Date>\n {\n this._value = subYears(this._value, count ?? 1);\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<Date>\n {\n this._value = startOfMonth(this._value);\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<Date>\n {\n this._value = endOfMonth(this._value);\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<Date>\n {\n this._value = addMonths(this._value, count ?? 1);\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<Date>\n {\n this._value = subMonths(this._value, count ?? 1);\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<Date>\n {\n this._value = startOfWeek(this._value, {locale: this._localeSvc.locale});\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<Date>\n {\n this._value = endOfWeek(this._value, {locale: this._localeSvc.locale});\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<Date>\n {\n this._value = addWeeks(this._value, count ?? 1);\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<Date>\n {\n this._value = subWeeks(this._value, count ?? 1);\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<Date>\n {\n this._value = startOfDay(this._value);\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<Date>\n {\n this._value = endOfDay(this._value);\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<Date>\n {\n this._value = addDays(this._value, count ?? 1);\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<Date>\n {\n this._value = subDays(this._value, count ?? 1);\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<Date>\n {\n this._value = startOfHour(this._value);\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<Date>\n {\n this._value = endOfHour(this._value);\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<Date>\n {\n this._value = addHours(this._value, count ?? 1);\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<Date>\n {\n this._value = subHours(this._value, count ?? 1);\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<Date>\n {\n this._value = startOfMinute(this._value);\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<Date>\n {\n this._value = endOfMinute(this._value);\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<Date>\n {\n this._value = addMinutes(this._value, count ?? 1);\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<Date>\n {\n this._value = subMinutes(this._value, count ?? 1);\n\n return this;\n }\n\n /**\n * Gets number of days in month\n */\n public daysInMonth(): number\n {\n return getDaysInMonth(this._value);\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<Date>;\n /**\n * Gets or sets year\n * @param year - If specified, sets year\n */\n public year(year?: number): DateApiObject<Date>|number\n {\n if(isPresent(year))\n {\n this._value = setYear(this._value, year);\n\n return this;\n }\n\n return getYear(this._value);\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<Date>\n /**\n * Gets or sets month\n * @param month - If specified, sets month\n */\n public month(month?: number): DateApiObject<Date>|number\n {\n if(isPresent(month))\n {\n this._value = setMonth(this._value, month);\n\n return this;\n }\n\n return getMonth(this._value);\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<Date>;\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<Date>|number\n {\n if(isPresent(day))\n {\n this._value = setDate(this._value, day);\n\n return this;\n }\n\n return getDate(this._value);\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<Date>;\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<Date>\n {\n if(isPresent(day))\n {\n this._value = setISODay(this._value, day + 1!);\n\n return this;\n }\n\n return getISODay(this._value) - 1;\n }\n\n /**\n * Gets hours zero based\n */\n public hour(): number;\n /**\n * Sets hours zero based\n * @param hour - hour to be set\n */\n public hour(hour: number): DateApiObject<Date>;\n /**\n * Gets or sets hours zero based\n * @param hour - If specified, sets hour\n */\n public hour(hour?: number): DateApiObject<Date>|number\n {\n if(isPresent(hour))\n {\n this._value = setHours(this._value, hour);\n\n return this;\n }\n\n return getHours(this._value);\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<Date>;\n /**\n * Gets or sets minutes zero based\n * @param minute - If specified, sets minutes\n */\n public minute(minute?: number): DateApiObject<Date>|number\n {\n if(isPresent(minute))\n {\n this._value = setMinutes(this._value, minute);\n\n return this;\n }\n\n return getMinutes(this._value);\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: Date): boolean\n {\n return isBefore(this._value, 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: Date): boolean\n {\n return isAfter(this._value, 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: Date): number\n {\n return differenceInCalendarDays(this._value, date);\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: Date): boolean\n {\n return isSameWeek(this._value, date, {locale: this._localeSvc.locale});\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: Date): boolean\n {\n const year = getYear(this._value);\n const start = year - (year % 10);\n const end = start + 10;\n\n return getYear(date) >= start && getYear(date) < 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: Date): boolean\n {\n return isSameYear(this._value, date);\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: Date): boolean\n {\n return isSameMonth(this._value, date);\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: Date): boolean\n {\n return isSameDay(this._value, 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<Date>\n {\n return new DateFnsDateApiObject(new Date(this._value), null, this._localeSvc);\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<Date>\n {\n return new DateFnsDateApiObject(new Date(this._originalValue), null, this._localeSvc);\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?: Date): DateApiObject<Date>\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<Date>\n {\n this._value = this._originalValue;\n\n return this;\n }\n}\n\n/**\n * Date api using DateFnsJS, used for obtaining DateApi wrapper object\n */\n@Injectable()\nexport class DateFnsDateApi implements DateApi<Date>\n{\n //######################### constructor #########################\n constructor(@Inject(DATE_FNS_LOCALE) protected _localeSvc: DateFnsLocale,\n protected _relativeParser: DateTimeRelativeParser<Date>,\n @Inject(DATE_API_OBJECT_TYPE) protected _dateApiObjecType: DateApiObjectCtor<DateFnsDateApiObject, Date>)\n {\n }\n\n //######################### public methods - implementation of DateApi #########################\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|Date, format?: string): DateApiObject<Date>\n {\n return new this._dateApiObjecType(this._relativeParser.parse(value), format, this._localeSvc);\n }\n\n /**\n * Gets wrapping object used for manipulation instantiated to current date and time\n */\n public now(): DateApiObject<Date>\n {\n return new this._dateApiObjecType(new Date(), null ?? undefined, this._localeSvc);\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(/^p+$/i.test(pseudoFormat))\n {\n if(!this._localeSvc.locale.formatLong)\n {\n throw new Error('Missing long formats for locale in DateApi');\n }\n\n const widths: {[index: number]: string} =\n {\n 1: 'short',\n 2: 'medium',\n 3: 'long',\n 4: 'full'\n };\n\n //date time format\n if(pseudoFormat.indexOf('Pp') >= 0 && pseudoFormat.length <= 8)\n {\n const partLength = pseudoFormat.length / 2;\n\n return `${this._localeSvc.locale.formatLong.date({width: widths[partLength]})} ${this._localeSvc.locale.formatLong.time({width: widths[partLength]})}`;\n }\n //date format\n else if(pseudoFormat.indexOf('P') >= 0 && pseudoFormat.length <= 4)\n {\n return this._localeSvc.locale.formatLong.date({width: widths[pseudoFormat.length]});\n }\n //time format\n else if(pseudoFormat.indexOf('p') >= 0 && pseudoFormat.length <= 4)\n {\n return this._localeSvc.locale.formatLong.time({width: widths[pseudoFormat.length]});\n }\n }\n\n return pseudoFormat;\n }\n\n /**\n * Gets information \n */\n public weekStartsOnMonday(): boolean\n {\n return this._localeSvc.locale.options?.weekStartsOn === 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 let startIndex = this._localeSvc.locale.options!.weekStartsOn!;\n const weekdays: string[] = [];\n\n for(let x = 0; x < 7; x++)\n {\n weekdays.push(this._localeSvc.locale.localize!.day(startIndex++ % 7, {width: 'short'}));\n }\n\n return weekdays;\n }\n\n /**\n * @inheritdoc\n */\n public isDate(value: unknown): value is Date\n {\n return isDate(value);\n }\n}\n\n/**\n * Type that represents creation of DateApiObject for date-fns\n */\nexport const dateFnsDateApiObjectType: DateApiObjectCtor<DateFnsDateApiObject, Date> = DateFnsDateApiObject;\n\n/**\n * Injection token used for injecting type that creates instance of DateApiObject for date-fns\n */\nexport const DATE_FNS_DATE_API_OBJECT_TYPE: ValueProvider =\n{\n provide: DATE_API_OBJECT_TYPE,\n useValue: dateFnsDateApiObjectType\n};"]}
1
+ {"version":3,"file":"dateFnsDateApi.service.js","sourceRoot":"","sources":["../../../../date-fns/src/services/dateFnsDateApi.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,EAAE,QAAQ,EAAC,MAAM,gBAAgB,CAAC;AAC5D,OAAO,EAAC,MAAM,EAAE,OAAO,EAAE,OAAO,EAAE,OAAO,EAAE,QAAQ,EAAE,OAAO,EAAE,wBAAwB,EAAE,MAAM,EAAE,SAAS,EAAE,YAAY,EAAE,UAAU,EAAE,WAAW,EAAE,SAAS,EAAE,UAAU,EAAE,QAAQ,EAAE,SAAS,EAAE,QAAQ,EAAE,OAAO,EAAE,SA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AEG;AACH,MAAM,CAAC,MAAM,wBAAwB,GAAkD,oBAAoB,CAAC;AAE5G;;GAEG;AACH,MAAM,CAAC,MAAM,6BAA6B,GAC1C;IACI,OAAO,EAAE,oBAAoB;IAC7B,QAAQ,EAAE,wBAAwB;CACrC,CAAC","sourcesContent":["import {Inject, Injectable, ValueProvider} from '@angular/core';\nimport {DateApi, DateValue, DateApiObject, DateTimeRelativeParser, DateApiObjectCtor, DATE_API_OBJECT_TYPE, DateObject} from '@anglr/datetime';\nimport {isBlank, isPresent, isString} from '@jscrpt/common';\nimport {toDate, getDate, setDate, isAfter, isBefore, isEqual, differenceInCalendarDays, format, formatISO, startOfMonth, endOfMonth, startOfWeek, endOfWeek, startOfDay, endOfDay, addMonths, addWeeks, addDays, subMonths, subWeeks, subDays, getDaysInMonth, isSameDay, isSameWeek, isSameMonth, isValid, parse, parseISO, addYears, subYears, startOfYear, endOfYear, isWeekend, setYear, getYear, isSameYear, startOfDecade, endOfDecade, setMonth, getMonth, setISODay, getISODay, subHours, addHours, endOfHour, startOfHour, startOfMinute, endOfMinute, addMinutes, subMinutes, getHours, setHours, getMinutes, setMinutes, isDate, getUnixTime} from 'date-fns';\n\nimport {DATE_FNS_LOCALE} from '../misc/tokens';\nimport {DateFnsLocale} from './dateFnsLocale.service';\n\n/**\n * Instance of object wrapping TDate, allowing manipulation with it\n */\nexport class DateFnsDateApiObject implements DateApiObject<Date>\n{\n //######################### protected fields #########################\n\n /**\n * Original value that is not changed unless 'updateOriginal' is called\n */\n protected _originalValue: Date;\n\n /**\n * Instance of date\n */\n protected _value: Date;\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(): Date\n {\n return this._originalValue;\n }\n\n /**\n * Instance of date\n */\n public get value(): Date\n {\n return this._value;\n }\n\n //######################### constructor #########################\n constructor(value: DateValue|Date,\n format: string|null|undefined,\n protected _localeSvc: DateFnsLocale)\n {\n if(isString(value))\n {\n //ISO string\n if(/^\\d+-\\d+-\\d+(T\\d+:\\d+:\\d+)?/.test(value))\n {\n this._value = this._originalValue = parseISO(value);\n }\n else\n {\n if(isBlank(format))\n {\n throw new Error('date-fns requires format parameter to be set for parsing non ISO string date!');\n }\n\n this._value = this._originalValue = parse(value, format, new Date(1970, 0));\n }\n }\n else\n {\n this._value = this._originalValue = toDate(value);\n }\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 isValid(this._value);\n }\n\n /**\n * Gets indication whether provided instance of date is weekend day\n */\n public isWeekend(): boolean\n {\n return isWeekend(this._value);\n }\n\n /**\n * Formats date value\n * @param formatString - Format token used for creating formatted string\n */\n public format(formatString: string): string\n {\n return format(this._value, formatString, {locale: this._localeSvc.locale});\n }\n\n /**\n * @inheritdoc\n */\n public formatISO(): string\n {\n return formatISO(this._value);\n }\n\n /**\n * @inheritdoc\n */\n public unixTimestamp(): number\n {\n return getUnixTime(this._value);\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<Date>\n {\n this._value = startOfDecade(this._value);\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<Date>\n {\n this._value = endOfDecade(this._value);\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<Date>\n {\n this._value = startOfYear(this._value);\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<Date>\n {\n this._value = endOfYear(this._value);\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<Date>\n {\n this._value = addYears(this._value, count ?? 1);\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<Date>\n {\n this._value = subYears(this._value, count ?? 1);\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<Date>\n {\n this._value = startOfMonth(this._value);\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<Date>\n {\n this._value = endOfMonth(this._value);\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<Date>\n {\n this._value = addMonths(this._value, count ?? 1);\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<Date>\n {\n this._value = subMonths(this._value, count ?? 1);\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<Date>\n {\n this._value = startOfWeek(this._value, {locale: this._localeSvc.locale});\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<Date>\n {\n this._value = endOfWeek(this._value, {locale: this._localeSvc.locale});\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<Date>\n {\n this._value = addWeeks(this._value, count ?? 1);\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<Date>\n {\n this._value = subWeeks(this._value, count ?? 1);\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<Date>\n {\n this._value = startOfDay(this._value);\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<Date>\n {\n this._value = endOfDay(this._value);\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<Date>\n {\n this._value = addDays(this._value, count ?? 1);\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<Date>\n {\n this._value = subDays(this._value, count ?? 1);\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<Date>\n {\n this._value = startOfHour(this._value);\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<Date>\n {\n this._value = endOfHour(this._value);\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<Date>\n {\n this._value = addHours(this._value, count ?? 1);\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<Date>\n {\n this._value = subHours(this._value, count ?? 1);\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<Date>\n {\n this._value = startOfMinute(this._value);\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<Date>\n {\n this._value = endOfMinute(this._value);\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<Date>\n {\n this._value = addMinutes(this._value, count ?? 1);\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<Date>\n {\n this._value = subMinutes(this._value, count ?? 1);\n\n return this;\n }\n\n /**\n * Gets number of days in month\n */\n public daysInMonth(): number\n {\n return getDaysInMonth(this._value);\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<Date>;\n /**\n * Gets or sets year\n * @param year - If specified, sets year\n */\n public year(year?: number): DateApiObject<Date>|number\n {\n if(isPresent(year))\n {\n this._value = setYear(this._value, year);\n\n return this;\n }\n\n return getYear(this._value);\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<Date>\n /**\n * Gets or sets month\n * @param month - If specified, sets month\n */\n public month(month?: number): DateApiObject<Date>|number\n {\n if(isPresent(month))\n {\n this._value = setMonth(this._value, month);\n\n return this;\n }\n\n return getMonth(this._value);\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<Date>;\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<Date>|number\n {\n if(isPresent(day))\n {\n this._value = setDate(this._value, day);\n\n return this;\n }\n\n return getDate(this._value);\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<Date>;\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<Date>\n {\n if(isPresent(day))\n {\n this._value = setISODay(this._value, day + 1);\n\n return this;\n }\n\n return getISODay(this._value) - 1;\n }\n\n /**\n * Gets hours zero based\n */\n public hour(): number;\n /**\n * Sets hours zero based\n * @param hour - hour to be set\n */\n public hour(hour: number): DateApiObject<Date>;\n /**\n * Gets or sets hours zero based\n * @param hour - If specified, sets hour\n */\n public hour(hour?: number): DateApiObject<Date>|number\n {\n if(isPresent(hour))\n {\n this._value = setHours(this._value, hour);\n\n return this;\n }\n\n return getHours(this._value);\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<Date>;\n /**\n * Gets or sets minutes zero based\n * @param minute - If specified, sets minutes\n */\n public minute(minute?: number): DateApiObject<Date>|number\n {\n if(isPresent(minute))\n {\n this._value = setMinutes(this._value, minute);\n\n return this;\n }\n\n return getMinutes(this._value);\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<Date>): boolean\n {\n date = this.getDate(date);\n\n return isBefore(this._value, 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<Date>): boolean\n {\n date = this.getDate(date);\n\n return isAfter(this._value, 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<Date>): number\n {\n date = this.getDate(date);\n\n return differenceInCalendarDays(this._value, date);\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<Date>): boolean\n {\n date = this.getDate(date);\n\n return isSameWeek(this._value, date, {locale: this._localeSvc.locale});\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<Date>): boolean\n {\n date = this.getDate(date);\n\n const year = getYear(this._value);\n const start = year - (year % 10);\n const end = start + 10;\n\n return getYear(date) >= start && getYear(date) < 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<Date>): boolean\n {\n date = this.getDate(date);\n\n return isSameYear(this._value, date);\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<Date>): boolean\n {\n date = this.getDate(date);\n\n return isSameMonth(this._value, date);\n }\n\n /**\n * @inheritdoc\n */\n public isSameDay(date: DateObject<Date>): boolean\n {\n date = this.getDate(date);\n\n return isSameDay(this._value, date);\n }\n\n /**\n * @inheritdoc\n */\n public isSame(date: DateObject<Date>): boolean\n {\n date = this.getDate(date);\n\n return isEqual(this._value, 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<Date>\n {\n return new DateFnsDateApiObject(new Date(this._value), null, this._localeSvc);\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<Date>\n {\n return new DateFnsDateApiObject(new Date(this._originalValue), null, this._localeSvc);\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?: Date): DateApiObject<Date>\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<Date>\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<Date>): Date\n {\n if(value instanceof Date)\n {\n return value;\n }\n\n return value.value;\n }\n}\n\n/**\n * Date api using DateFnsJS, used for obtaining DateApi wrapper object\n */\n@Injectable()\nexport class DateFnsDateApi implements DateApi<Date>\n{\n //######################### constructor #########################\n constructor(@Inject(DATE_FNS_LOCALE) protected _localeSvc: DateFnsLocale,\n protected _relativeParser: DateTimeRelativeParser<Date>,\n @Inject(DATE_API_OBJECT_TYPE) protected _dateApiObjecType: DateApiObjectCtor<Date, DateFnsDateApiObject>)\n {\n }\n\n //######################### public methods - implementation of DateApi #########################\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|Date, format?: string): DateApiObject<Date>\n {\n return new this._dateApiObjecType(this._relativeParser.parse(value), format, this._localeSvc);\n }\n\n /**\n * Gets wrapping object used for manipulation instantiated to current date and time\n */\n public now(): DateApiObject<Date>\n {\n return new this._dateApiObjecType(new Date(), null ?? undefined, this._localeSvc);\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(/^p+$/i.test(pseudoFormat))\n {\n if(!this._localeSvc.locale.formatLong)\n {\n throw new Error('Missing long formats for locale in DateApi');\n }\n\n const widths: {[index: number]: string} =\n {\n 1: 'short',\n 2: 'medium',\n 3: 'long',\n 4: 'full'\n };\n\n //date time format\n if(pseudoFormat.indexOf('Pp') >= 0 && pseudoFormat.length <= 8)\n {\n const partLength = pseudoFormat.length / 2;\n\n return `${this._localeSvc.locale.formatLong.date({width: widths[partLength]})} ${this._localeSvc.locale.formatLong.time({width: widths[partLength]})}`;\n }\n //date format\n else if(pseudoFormat.indexOf('P') >= 0 && pseudoFormat.length <= 4)\n {\n return this._localeSvc.locale.formatLong.date({width: widths[pseudoFormat.length]});\n }\n //time format\n else if(pseudoFormat.indexOf('p') >= 0 && pseudoFormat.length <= 4)\n {\n return this._localeSvc.locale.formatLong.time({width: widths[pseudoFormat.length]});\n }\n }\n\n return pseudoFormat;\n }\n\n /**\n * Gets information\n */\n public weekStartsOnMonday(): boolean\n {\n return this._localeSvc.locale.options?.weekStartsOn === 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 let startIndex = this._localeSvc.locale.options!.weekStartsOn!;\n const weekdays: string[] = [];\n\n for(let x = 0; x < 7; x++)\n {\n weekdays.push(this._localeSvc.locale.localize!.day(startIndex++ % 7, {width: 'short'}));\n }\n\n return weekdays;\n }\n\n /**\n * @inheritdoc\n */\n public isDate(value: unknown): value is Date\n {\n return isDate(value);\n }\n}\n\n/**\n * Type that represents creation of DateApiObject for date-fns\n */\nexport const dateFnsDateApiObjectType: DateApiObjectCtor<Date, DateFnsDateApiObject> = DateFnsDateApiObject;\n\n/**\n * Injection token used for injecting type that creates instance of DateApiObject for date-fns\n */\nexport const DATE_FNS_DATE_API_OBJECT_TYPE: ValueProvider =\n{\n provide: DATE_API_OBJECT_TYPE,\n useValue: dateFnsDateApiObjectType\n};"]}