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

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (584) hide show
  1. package/changelog.md +155 -1
  2. package/date-fns/src/services/dateFnsDateApi.service.d.ts +26 -14
  3. package/date-fns/src/services/dateFnsDateApi.service.d.ts.map +1 -1
  4. package/es2015/date-fns/src/services/dateFnsDateApi.service.js +37 -6
  5. package/es2015/date-fns/src/services/dateFnsDateApi.service.js.map +1 -1
  6. package/es2015/moment/src/services/momentDateApi.service.js +35 -3
  7. package/es2015/moment/src/services/momentDateApi.service.js.map +1 -1
  8. package/es2015/src/directives/index.js +1 -0
  9. package/es2015/src/directives/index.js.map +1 -1
  10. package/es2015/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js +32 -0
  11. package/es2015/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js.map +1 -0
  12. package/es2015/src/directives/withTime/withTime.directive.js +5 -5
  13. package/es2015/src/directives/withTime/withTime.directive.js.map +1 -1
  14. package/es2015/src/directives/withToday/withToday.directive.js +5 -5
  15. package/es2015/src/directives/withToday/withToday.directive.js.map +1 -1
  16. package/es2015/src/index.js +0 -8
  17. package/es2015/src/index.js.map +1 -1
  18. package/es2015/src/interfaces/dateTime/datetime.interface.js.map +1 -1
  19. package/es2015/src/legacy/picker/components/picker/picker.component.animations.js +93 -70
  20. package/es2015/src/legacy/picker/components/picker/picker.component.animations.js.map +1 -1
  21. package/es2015/src/legacy/selector/components/inputDateTime/inputDateTime.component.js +487 -436
  22. package/es2015/src/legacy/selector/components/inputDateTime/inputDateTime.component.js.map +1 -1
  23. package/es2015/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js +366 -324
  24. package/es2015/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js.map +1 -1
  25. package/es2015/src/misc/validators.js +0 -57
  26. package/es2015/src/misc/validators.js.map +1 -1
  27. package/es2015/src/modules/calendar/components/index.js +2 -0
  28. package/es2015/src/modules/calendar/components/index.js.map +1 -0
  29. package/es2015/src/modules/calendar/components/monthCalendar/monthCalendar.component.js +198 -0
  30. package/es2015/src/modules/calendar/components/monthCalendar/monthCalendar.component.js.map +1 -0
  31. package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js +2 -0
  32. package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js.map +1 -0
  33. package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js +27 -0
  34. package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js.map +1 -0
  35. package/es2015/src/modules/calendar/directives/index.js +3 -0
  36. package/es2015/src/modules/calendar/directives/index.js.map +1 -0
  37. package/es2015/src/modules/calendar/index.js +7 -0
  38. package/es2015/src/modules/calendar/index.js.map +1 -0
  39. package/es2015/src/modules/calendar/interfaces/calendarDayData.interface.js +2 -0
  40. package/es2015/src/modules/calendar/interfaces/calendarDayData.interface.js.map +1 -0
  41. package/es2015/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js +2 -0
  42. package/es2015/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js.map +1 -0
  43. package/es2015/src/modules/calendar/interfaces/eventData.interface.js +2 -0
  44. package/es2015/src/modules/calendar/interfaces/eventData.interface.js.map +1 -0
  45. package/es2015/src/modules/calendar/interfaces/index.js +4 -0
  46. package/es2015/src/modules/calendar/interfaces/index.js.map +1 -0
  47. package/es2015/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js +27 -0
  48. package/es2015/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js.map +1 -0
  49. package/es2015/src/modules/calendar/misc/enums/index.js +3 -0
  50. package/es2015/src/modules/calendar/misc/enums/index.js.map +1 -0
  51. package/es2015/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js +19 -0
  52. package/es2015/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js.map +1 -0
  53. package/es2015/src/modules/calendar/misc/index.js +2 -0
  54. package/es2015/src/modules/calendar/misc/index.js.map +1 -0
  55. package/es2015/src/modules/calendar/modules/index.js +2 -0
  56. package/es2015/src/modules/calendar/modules/index.js.map +1 -0
  57. package/es2015/src/modules/calendar/modules/monthCalendar.module.js +32 -0
  58. package/es2015/src/modules/calendar/modules/monthCalendar.module.js.map +1 -0
  59. package/es2015/src/modules/calendar/services/eventParser/eventParser.service.js +75 -0
  60. package/es2015/src/modules/calendar/services/eventParser/eventParser.service.js.map +1 -0
  61. package/es2015/src/modules/calendar/services/index.js +2 -0
  62. package/es2015/src/modules/calendar/services/index.js.map +1 -0
  63. package/es2015/src/modules/datePipes.module.js +4 -4
  64. package/es2015/src/modules/dateTime/directives/dateTime/dateTime.directive.js +8 -7
  65. package/es2015/src/modules/dateTime/directives/dateTime/dateTime.directive.js.map +1 -1
  66. package/es2015/src/modules/dateTime/directives/dateTimeBase.js +5 -5
  67. package/es2015/src/modules/dateTime/directives/dateTimeBase.js.map +1 -1
  68. package/es2015/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js +7 -6
  69. package/es2015/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js.map +1 -1
  70. package/es2015/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js +10 -9
  71. package/es2015/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js.map +1 -1
  72. package/es2015/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js +7 -6
  73. package/es2015/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js.map +1 -1
  74. package/es2015/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js +7 -6
  75. package/es2015/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js.map +1 -1
  76. package/es2015/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js +7 -6
  77. package/es2015/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js.map +1 -1
  78. package/es2015/src/modules/dateTime/modules/dateTime.module.js +28 -28
  79. package/es2015/src/modules/dateTime/modules/dateTime.module.js.map +1 -1
  80. package/es2015/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.js.map +1 -1
  81. package/es2015/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js +5 -5
  82. package/es2015/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js.map +1 -1
  83. package/es2015/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js +3 -3
  84. package/es2015/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js.map +1 -1
  85. package/es2015/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js +3 -3
  86. package/es2015/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js.map +1 -1
  87. package/es2015/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js +6 -7
  88. package/es2015/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js.map +1 -1
  89. package/es2015/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.js.map +1 -1
  90. package/es2015/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js +3 -3
  91. package/es2015/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js.map +1 -1
  92. package/es2015/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js +8 -7
  93. package/es2015/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js.map +1 -1
  94. package/es2015/src/modules/dateTimePicker/directives/index.js +3 -0
  95. package/es2015/src/modules/dateTimePicker/directives/index.js.map +1 -1
  96. package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.js +222 -0
  97. package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.js.map +1 -0
  98. package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js +2 -0
  99. package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js.map +1 -0
  100. package/es2015/src/{legacy/picker → modules/dateTimePicker}/directives/loopScrollData/loopScrollData.directive.js +6 -5
  101. package/es2015/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.js.map +1 -0
  102. package/es2015/src/modules/dateTimePicker/interfaces/index.js +1 -0
  103. package/es2015/src/modules/dateTimePicker/interfaces/index.js.map +1 -1
  104. package/es2015/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js +2 -0
  105. package/es2015/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js.map +1 -0
  106. package/es2015/src/modules/dateTimePicker/modules/dateTimePicker.module.js +10 -9
  107. package/es2015/src/modules/dateTimePicker/modules/dateTimePicker.module.js.map +1 -1
  108. package/es2015/src/modules/index.js +1 -0
  109. package/es2015/src/modules/index.js.map +1 -1
  110. package/es2015/src/pipes/dateConvert.pipe.js +3 -3
  111. package/es2015/src/pipes/dateConvert.pipe.js.map +1 -1
  112. package/es2015/src/pipes/dateFormat.pipe.js +3 -3
  113. package/es2015/src/pipes/dateFormat.pipe.js.map +1 -1
  114. package/es2015/src/services/dateApi/dateApi.interface.js.map +1 -1
  115. package/es2015/src/services/datePositionParser/datePositionParser.service.js +5 -3
  116. package/es2015/src/services/datePositionParser/datePositionParser.service.js.map +1 -1
  117. package/es2015/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js +3 -3
  118. package/es2015/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js.map +1 -1
  119. package/es2015/src/services/dateValueProvider/dateValueProvider.service.js +3 -3
  120. package/es2015/src/services/dateValueProvider/dateValueProvider.service.js.map +1 -1
  121. package/es2020/date-fns/src/services/dateFnsDateApi.service.js +37 -6
  122. package/es2020/date-fns/src/services/dateFnsDateApi.service.js.map +1 -1
  123. package/es2020/moment/src/services/momentDateApi.service.js +35 -3
  124. package/es2020/moment/src/services/momentDateApi.service.js.map +1 -1
  125. package/es2020/src/directives/index.js +1 -0
  126. package/es2020/src/directives/index.js.map +1 -1
  127. package/es2020/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js +32 -0
  128. package/es2020/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js.map +1 -0
  129. package/es2020/src/directives/withTime/withTime.directive.js +5 -5
  130. package/es2020/src/directives/withTime/withTime.directive.js.map +1 -1
  131. package/es2020/src/directives/withToday/withToday.directive.js +5 -5
  132. package/es2020/src/directives/withToday/withToday.directive.js.map +1 -1
  133. package/es2020/src/index.js +0 -8
  134. package/es2020/src/index.js.map +1 -1
  135. package/es2020/src/interfaces/dateTime/datetime.interface.js.map +1 -1
  136. package/es2020/src/legacy/picker/components/picker/picker.component.animations.js +93 -70
  137. package/es2020/src/legacy/picker/components/picker/picker.component.animations.js.map +1 -1
  138. package/es2020/src/legacy/selector/components/inputDateTime/inputDateTime.component.js +487 -432
  139. package/es2020/src/legacy/selector/components/inputDateTime/inputDateTime.component.js.map +1 -1
  140. package/es2020/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js +366 -321
  141. package/es2020/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js.map +1 -1
  142. package/es2020/src/misc/validators.js +0 -57
  143. package/es2020/src/misc/validators.js.map +1 -1
  144. package/es2020/src/modules/calendar/components/index.js +2 -0
  145. package/es2020/src/modules/calendar/components/index.js.map +1 -0
  146. package/es2020/src/modules/calendar/components/monthCalendar/monthCalendar.component.js +195 -0
  147. package/es2020/src/modules/calendar/components/monthCalendar/monthCalendar.component.js.map +1 -0
  148. package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js +2 -0
  149. package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js.map +1 -0
  150. package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js +27 -0
  151. package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js.map +1 -0
  152. package/es2020/src/modules/calendar/directives/index.js +3 -0
  153. package/es2020/src/modules/calendar/directives/index.js.map +1 -0
  154. package/es2020/src/modules/calendar/index.js +7 -0
  155. package/es2020/src/modules/calendar/index.js.map +1 -0
  156. package/es2020/src/modules/calendar/interfaces/calendarDayData.interface.js +2 -0
  157. package/es2020/src/modules/calendar/interfaces/calendarDayData.interface.js.map +1 -0
  158. package/es2020/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js +2 -0
  159. package/es2020/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js.map +1 -0
  160. package/es2020/src/modules/calendar/interfaces/eventData.interface.js +2 -0
  161. package/es2020/src/modules/calendar/interfaces/eventData.interface.js.map +1 -0
  162. package/es2020/src/modules/calendar/interfaces/index.js +4 -0
  163. package/es2020/src/modules/calendar/interfaces/index.js.map +1 -0
  164. package/es2020/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js +27 -0
  165. package/es2020/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js.map +1 -0
  166. package/es2020/src/modules/calendar/misc/enums/index.js +3 -0
  167. package/es2020/src/modules/calendar/misc/enums/index.js.map +1 -0
  168. package/es2020/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js +19 -0
  169. package/es2020/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js.map +1 -0
  170. package/es2020/src/modules/calendar/misc/index.js +2 -0
  171. package/es2020/src/modules/calendar/misc/index.js.map +1 -0
  172. package/es2020/src/modules/calendar/modules/index.js +2 -0
  173. package/es2020/src/modules/calendar/modules/index.js.map +1 -0
  174. package/es2020/src/modules/calendar/modules/monthCalendar.module.js +32 -0
  175. package/es2020/src/modules/calendar/modules/monthCalendar.module.js.map +1 -0
  176. package/es2020/src/modules/calendar/services/eventParser/eventParser.service.js +74 -0
  177. package/es2020/src/modules/calendar/services/eventParser/eventParser.service.js.map +1 -0
  178. package/es2020/src/modules/calendar/services/index.js +2 -0
  179. package/es2020/src/modules/calendar/services/index.js.map +1 -0
  180. package/es2020/src/modules/datePipes.module.js +4 -4
  181. package/es2020/src/modules/dateTime/directives/dateTime/dateTime.directive.js +8 -7
  182. package/es2020/src/modules/dateTime/directives/dateTime/dateTime.directive.js.map +1 -1
  183. package/es2020/src/modules/dateTime/directives/dateTimeBase.js +5 -5
  184. package/es2020/src/modules/dateTime/directives/dateTimeBase.js.map +1 -1
  185. package/es2020/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js +7 -6
  186. package/es2020/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js.map +1 -1
  187. package/es2020/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js +10 -9
  188. package/es2020/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js.map +1 -1
  189. package/es2020/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js +7 -6
  190. package/es2020/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js.map +1 -1
  191. package/es2020/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js +7 -6
  192. package/es2020/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js.map +1 -1
  193. package/es2020/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js +7 -6
  194. package/es2020/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js.map +1 -1
  195. package/es2020/src/modules/dateTime/modules/dateTime.module.js +28 -28
  196. package/es2020/src/modules/dateTime/modules/dateTime.module.js.map +1 -1
  197. package/es2020/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.js.map +1 -1
  198. package/es2020/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js +5 -5
  199. package/es2020/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js.map +1 -1
  200. package/es2020/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js +3 -3
  201. package/es2020/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js.map +1 -1
  202. package/es2020/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js +3 -3
  203. package/es2020/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js.map +1 -1
  204. package/es2020/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js +6 -7
  205. package/es2020/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js.map +1 -1
  206. package/es2020/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.js.map +1 -1
  207. package/es2020/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js +3 -3
  208. package/es2020/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js.map +1 -1
  209. package/es2020/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js +9 -8
  210. package/es2020/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js.map +1 -1
  211. package/es2020/src/modules/dateTimePicker/directives/index.js +3 -0
  212. package/es2020/src/modules/dateTimePicker/directives/index.js.map +1 -1
  213. package/es2020/src/{legacy/picker → modules/dateTimePicker}/directives/loopScroll/loopScroll.directive.js +65 -56
  214. package/es2020/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.js.map +1 -0
  215. package/es2020/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js +2 -0
  216. package/es2020/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js.map +1 -0
  217. package/es2020/src/{legacy/picker → modules/dateTimePicker}/directives/loopScrollData/loopScrollData.directive.js +6 -5
  218. package/es2020/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.js.map +1 -0
  219. package/es2020/src/modules/dateTimePicker/interfaces/index.js +1 -0
  220. package/es2020/src/modules/dateTimePicker/interfaces/index.js.map +1 -1
  221. package/es2020/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js +2 -0
  222. package/es2020/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js.map +1 -0
  223. package/es2020/src/modules/dateTimePicker/modules/dateTimePicker.module.js +10 -9
  224. package/es2020/src/modules/dateTimePicker/modules/dateTimePicker.module.js.map +1 -1
  225. package/es2020/src/modules/index.js +1 -0
  226. package/es2020/src/modules/index.js.map +1 -1
  227. package/es2020/src/pipes/dateConvert.pipe.js +3 -3
  228. package/es2020/src/pipes/dateConvert.pipe.js.map +1 -1
  229. package/es2020/src/pipes/dateFormat.pipe.js +3 -3
  230. package/es2020/src/pipes/dateFormat.pipe.js.map +1 -1
  231. package/es2020/src/services/dateApi/dateApi.interface.js.map +1 -1
  232. package/es2020/src/services/datePositionParser/datePositionParser.service.js +5 -3
  233. package/es2020/src/services/datePositionParser/datePositionParser.service.js.map +1 -1
  234. package/es2020/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js +3 -3
  235. package/es2020/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js.map +1 -1
  236. package/es2020/src/services/dateValueProvider/dateValueProvider.service.js +3 -3
  237. package/es2020/src/services/dateValueProvider/dateValueProvider.service.js.map +1 -1
  238. package/moment/src/services/momentDateApi.service.d.ts +25 -12
  239. package/moment/src/services/momentDateApi.service.d.ts.map +1 -1
  240. package/package.json +27 -36
  241. package/src/directives/index.d.ts +1 -0
  242. package/src/directives/index.d.ts.map +1 -1
  243. package/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.d.ts +11 -0
  244. package/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.d.ts.map +1 -0
  245. package/src/directives/withTime/withTime.directive.d.ts +3 -3
  246. package/src/directives/withTime/withTime.directive.d.ts.map +1 -1
  247. package/src/directives/withToday/withToday.directive.d.ts +3 -3
  248. package/src/directives/withToday/withToday.directive.d.ts.map +1 -1
  249. package/src/index.d.ts +0 -8
  250. package/src/index.d.ts.map +1 -1
  251. package/src/interfaces/dateTime/datetime.interface.d.ts +1 -22
  252. package/src/interfaces/dateTime/datetime.interface.d.ts.map +1 -1
  253. package/src/legacy/picker/components/picker/picker.component.animations.d.ts +0 -4
  254. package/src/legacy/picker/components/picker/picker.component.animations.d.ts.map +1 -1
  255. package/src/legacy/selector/components/inputDateTime/inputDateTime.component.d.ts +0 -185
  256. package/src/legacy/selector/components/inputDateTime/inputDateTime.component.d.ts.map +1 -1
  257. package/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.d.ts +0 -169
  258. package/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.d.ts.map +1 -1
  259. package/src/misc/validators.d.ts +0 -23
  260. package/src/misc/validators.d.ts.map +1 -1
  261. package/src/modules/calendar/components/index.d.ts +2 -0
  262. package/src/modules/calendar/components/index.d.ts.map +1 -0
  263. package/src/modules/calendar/components/monthCalendar/monthCalendar.component.d.ts +94 -0
  264. package/src/modules/calendar/components/monthCalendar/monthCalendar.component.d.ts.map +1 -0
  265. package/src/modules/calendar/components/monthCalendar/monthCalendar.component.html +15 -0
  266. package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.d.ts +11 -0
  267. package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.d.ts.map +1 -0
  268. package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.d.ts +17 -0
  269. package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.d.ts.map +1 -0
  270. package/src/modules/calendar/directives/index.d.ts +3 -0
  271. package/src/modules/calendar/directives/index.d.ts.map +1 -0
  272. package/src/modules/calendar/index.d.ts +7 -0
  273. package/src/modules/calendar/index.d.ts.map +1 -0
  274. package/src/modules/calendar/interfaces/calendarDayData.interface.d.ts +31 -0
  275. package/src/modules/calendar/interfaces/calendarDayData.interface.d.ts.map +1 -0
  276. package/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.d.ts +19 -0
  277. package/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.d.ts.map +1 -0
  278. package/src/modules/calendar/interfaces/eventData.interface.d.ts +37 -0
  279. package/src/modules/calendar/interfaces/eventData.interface.d.ts.map +1 -0
  280. package/src/modules/calendar/interfaces/index.d.ts +4 -0
  281. package/src/modules/calendar/interfaces/index.d.ts.map +1 -0
  282. package/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.d.ts +26 -0
  283. package/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.d.ts.map +1 -0
  284. package/src/modules/calendar/misc/enums/index.d.ts +3 -0
  285. package/src/modules/calendar/misc/enums/index.d.ts.map +1 -0
  286. package/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.d.ts +18 -0
  287. package/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.d.ts.map +1 -0
  288. package/src/modules/calendar/misc/index.d.ts +2 -0
  289. package/src/modules/calendar/misc/index.d.ts.map +1 -0
  290. package/src/modules/calendar/modules/index.d.ts +2 -0
  291. package/src/modules/calendar/modules/index.d.ts.map +1 -0
  292. package/src/modules/calendar/modules/monthCalendar.module.d.ts +13 -0
  293. package/src/modules/calendar/modules/monthCalendar.module.d.ts.map +1 -0
  294. package/src/modules/calendar/services/eventParser/eventParser.service.d.ts +18 -0
  295. package/src/modules/calendar/services/eventParser/eventParser.service.d.ts.map +1 -0
  296. package/src/modules/calendar/services/index.d.ts +2 -0
  297. package/src/modules/calendar/services/index.d.ts.map +1 -0
  298. package/src/modules/dateTime/directives/dateTime/dateTime.directive.d.ts +3 -3
  299. package/src/modules/dateTime/directives/dateTime/dateTime.directive.d.ts.map +1 -1
  300. package/src/modules/dateTime/directives/dateTimeBase.d.ts +3 -3
  301. package/src/modules/dateTime/directives/dateTimeBase.d.ts.map +1 -1
  302. package/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.d.ts +3 -3
  303. package/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.d.ts.map +1 -1
  304. package/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.d.ts +3 -3
  305. package/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.d.ts.map +1 -1
  306. package/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.d.ts +3 -3
  307. package/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.d.ts.map +1 -1
  308. package/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.d.ts +3 -3
  309. package/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.d.ts.map +1 -1
  310. package/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.d.ts +3 -3
  311. package/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.d.ts.map +1 -1
  312. package/src/modules/dateTime/modules/dateTime.module.d.ts +1 -1
  313. package/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.d.ts +1 -2
  314. package/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.d.ts.map +1 -1
  315. package/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.d.ts +3 -3
  316. package/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.d.ts.map +1 -1
  317. package/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.d.ts +2 -3
  318. package/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.d.ts.map +1 -1
  319. package/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.d.ts +2 -3
  320. package/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.d.ts.map +1 -1
  321. package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.d.ts +6 -7
  322. package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.d.ts.map +1 -1
  323. package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.d.ts +1 -1
  324. package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.d.ts.map +1 -1
  325. package/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.d.ts +2 -3
  326. package/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.d.ts.map +1 -1
  327. package/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.d.ts +3 -3
  328. package/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.d.ts.map +1 -1
  329. package/src/modules/dateTimePicker/directives/index.d.ts +3 -0
  330. package/src/modules/dateTimePicker/directives/index.d.ts.map +1 -1
  331. package/src/{legacy/picker → modules/dateTimePicker}/directives/loopScroll/loopScroll.directive.d.ts +18 -18
  332. package/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.d.ts.map +1 -0
  333. package/src/{legacy/picker → modules/dateTimePicker}/directives/loopScroll/loopScroll.interface.d.ts +1 -1
  334. package/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.d.ts.map +1 -0
  335. package/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.d.ts +20 -0
  336. package/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.d.ts.map +1 -0
  337. package/src/modules/dateTimePicker/interfaces/index.d.ts +1 -0
  338. package/src/modules/dateTimePicker/interfaces/index.d.ts.map +1 -1
  339. package/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.d.ts +62 -0
  340. package/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.d.ts.map +1 -0
  341. package/src/modules/dateTimePicker/modules/dateTimePicker.module.d.ts +1 -1
  342. package/src/modules/dateTimePicker/modules/dateTimePicker.module.d.ts.map +1 -1
  343. package/src/modules/index.d.ts +1 -0
  344. package/src/modules/index.d.ts.map +1 -1
  345. package/src/pipes/dateConvert.pipe.d.ts +1 -1
  346. package/src/pipes/dateConvert.pipe.d.ts.map +1 -1
  347. package/src/pipes/dateFormat.pipe.d.ts +1 -1
  348. package/src/pipes/dateFormat.pipe.d.ts.map +1 -1
  349. package/src/services/dateApi/dateApi.interface.d.ts +25 -12
  350. package/src/services/dateApi/dateApi.interface.d.ts.map +1 -1
  351. package/src/services/datePositionParser/datePositionParser.service.d.ts.map +1 -1
  352. package/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.d.ts +2 -2
  353. package/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.d.ts.map +1 -1
  354. package/src/services/dateValueProvider/dateValueProvider.service.d.ts +1 -1
  355. package/src/services/dateValueProvider/dateValueProvider.service.d.ts.map +1 -1
  356. package/styles/components/_month-calendar.scss +68 -0
  357. package/styles/core/_mixins.scss +2 -0
  358. package/styles/core/_theme.scss +11 -0
  359. package/version.bak +1 -1
  360. package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js +0 -14
  361. package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js.map +0 -1
  362. package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js +0 -2
  363. package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js.map +0 -1
  364. package/es2015/src/legacy/picker/components/dayPicker/dayPicker.component.js +0 -214
  365. package/es2015/src/legacy/picker/components/dayPicker/dayPicker.component.js.map +0 -1
  366. package/es2015/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js +0 -2
  367. package/es2015/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js.map +0 -1
  368. package/es2015/src/legacy/picker/components/monthPicker/monthPicker.component.js +0 -116
  369. package/es2015/src/legacy/picker/components/monthPicker/monthPicker.component.js.map +0 -1
  370. package/es2015/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js +0 -2
  371. package/es2015/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js.map +0 -1
  372. package/es2015/src/legacy/picker/components/picker/picker.component.js +0 -242
  373. package/es2015/src/legacy/picker/components/picker/picker.component.js.map +0 -1
  374. package/es2015/src/legacy/picker/components/pickerBase.component.js +0 -138
  375. package/es2015/src/legacy/picker/components/pickerBase.component.js.map +0 -1
  376. package/es2015/src/legacy/picker/components/pickerImplBase.component.js +0 -145
  377. package/es2015/src/legacy/picker/components/pickerImplBase.component.js.map +0 -1
  378. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js +0 -148
  379. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js.map +0 -1
  380. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js +0 -341
  381. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js.map +0 -1
  382. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js +0 -2
  383. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js.map +0 -1
  384. package/es2015/src/legacy/picker/components/yearPicker/yearPicker.component.js +0 -128
  385. package/es2015/src/legacy/picker/components/yearPicker/yearPicker.component.js.map +0 -1
  386. package/es2015/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js +0 -2
  387. package/es2015/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js.map +0 -1
  388. package/es2015/src/legacy/picker/directives/index.js +0 -4
  389. package/es2015/src/legacy/picker/directives/index.js.map +0 -1
  390. package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.directive.js +0 -213
  391. package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.directive.js.map +0 -1
  392. package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.interface.js +0 -3
  393. package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.interface.js.map +0 -1
  394. package/es2015/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.js.map +0 -1
  395. package/es2015/src/legacy/picker/interfaces.js +0 -6
  396. package/es2015/src/legacy/picker/interfaces.js.map +0 -1
  397. package/es2015/src/legacy/picker/misc/datetimePicker.interface.js +0 -2
  398. package/es2015/src/legacy/picker/misc/datetimePicker.interface.js.map +0 -1
  399. package/es2015/src/legacy/picker/misc/tokens.js +0 -6
  400. package/es2015/src/legacy/picker/misc/tokens.js.map +0 -1
  401. package/es2015/src/legacy/picker/modules/picker.module.js +0 -65
  402. package/es2015/src/legacy/picker/modules/picker.module.js.map +0 -1
  403. package/es2015/src/legacy/picker/types.js +0 -10
  404. package/es2015/src/legacy/picker/types.js.map +0 -1
  405. package/es2015/src/legacy/selector/components/selector/selector.component.animations.js +0 -15
  406. package/es2015/src/legacy/selector/components/selector/selector.component.animations.js.map +0 -1
  407. package/es2015/src/legacy/selector/components/selector/selector.component.js +0 -357
  408. package/es2015/src/legacy/selector/components/selector/selector.component.js.map +0 -1
  409. package/es2015/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js +0 -134
  410. package/es2015/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js.map +0 -1
  411. package/es2015/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js +0 -51
  412. package/es2015/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js.map +0 -1
  413. package/es2015/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js +0 -51
  414. package/es2015/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js.map +0 -1
  415. package/es2015/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js +0 -47
  416. package/es2015/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js.map +0 -1
  417. package/es2015/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js +0 -119
  418. package/es2015/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js.map +0 -1
  419. package/es2015/src/legacy/selector/interfaces.js +0 -2
  420. package/es2015/src/legacy/selector/interfaces.js.map +0 -1
  421. package/es2015/src/legacy/selector/misc/datetimeSelector.interface.js +0 -2
  422. package/es2015/src/legacy/selector/misc/datetimeSelector.interface.js.map +0 -1
  423. package/es2015/src/legacy/selector/misc/tokens.js +0 -6
  424. package/es2015/src/legacy/selector/misc/tokens.js.map +0 -1
  425. package/es2015/src/legacy/selector/modules/basicSelector.module.js +0 -20
  426. package/es2015/src/legacy/selector/modules/basicSelector.module.js.map +0 -1
  427. package/es2015/src/legacy/selector/modules/selector.module.js +0 -63
  428. package/es2015/src/legacy/selector/modules/selector.module.js.map +0 -1
  429. package/es2015/src/legacy/selector/types.js +0 -11
  430. package/es2015/src/legacy/selector/types.js.map +0 -1
  431. package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js +0 -14
  432. package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js.map +0 -1
  433. package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js +0 -2
  434. package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js.map +0 -1
  435. package/es2020/src/legacy/picker/components/dayPicker/dayPicker.component.js +0 -214
  436. package/es2020/src/legacy/picker/components/dayPicker/dayPicker.component.js.map +0 -1
  437. package/es2020/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js +0 -2
  438. package/es2020/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js.map +0 -1
  439. package/es2020/src/legacy/picker/components/monthPicker/monthPicker.component.js +0 -116
  440. package/es2020/src/legacy/picker/components/monthPicker/monthPicker.component.js.map +0 -1
  441. package/es2020/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js +0 -2
  442. package/es2020/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js.map +0 -1
  443. package/es2020/src/legacy/picker/components/picker/picker.component.js +0 -237
  444. package/es2020/src/legacy/picker/components/picker/picker.component.js.map +0 -1
  445. package/es2020/src/legacy/picker/components/pickerBase.component.js +0 -138
  446. package/es2020/src/legacy/picker/components/pickerBase.component.js.map +0 -1
  447. package/es2020/src/legacy/picker/components/pickerImplBase.component.js +0 -145
  448. package/es2020/src/legacy/picker/components/pickerImplBase.component.js.map +0 -1
  449. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js +0 -142
  450. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js.map +0 -1
  451. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js +0 -341
  452. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js.map +0 -1
  453. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js +0 -2
  454. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js.map +0 -1
  455. package/es2020/src/legacy/picker/components/yearPicker/yearPicker.component.js +0 -128
  456. package/es2020/src/legacy/picker/components/yearPicker/yearPicker.component.js.map +0 -1
  457. package/es2020/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js +0 -2
  458. package/es2020/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js.map +0 -1
  459. package/es2020/src/legacy/picker/directives/index.js +0 -4
  460. package/es2020/src/legacy/picker/directives/index.js.map +0 -1
  461. package/es2020/src/legacy/picker/directives/loopScroll/loopScroll.directive.js.map +0 -1
  462. package/es2020/src/legacy/picker/directives/loopScroll/loopScroll.interface.js +0 -3
  463. package/es2020/src/legacy/picker/directives/loopScroll/loopScroll.interface.js.map +0 -1
  464. package/es2020/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.js.map +0 -1
  465. package/es2020/src/legacy/picker/interfaces.js +0 -6
  466. package/es2020/src/legacy/picker/interfaces.js.map +0 -1
  467. package/es2020/src/legacy/picker/misc/datetimePicker.interface.js +0 -2
  468. package/es2020/src/legacy/picker/misc/datetimePicker.interface.js.map +0 -1
  469. package/es2020/src/legacy/picker/misc/tokens.js +0 -6
  470. package/es2020/src/legacy/picker/misc/tokens.js.map +0 -1
  471. package/es2020/src/legacy/picker/modules/picker.module.js +0 -65
  472. package/es2020/src/legacy/picker/modules/picker.module.js.map +0 -1
  473. package/es2020/src/legacy/picker/types.js +0 -10
  474. package/es2020/src/legacy/picker/types.js.map +0 -1
  475. package/es2020/src/legacy/selector/components/selector/selector.component.animations.js +0 -15
  476. package/es2020/src/legacy/selector/components/selector/selector.component.animations.js.map +0 -1
  477. package/es2020/src/legacy/selector/components/selector/selector.component.js +0 -345
  478. package/es2020/src/legacy/selector/components/selector/selector.component.js.map +0 -1
  479. package/es2020/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js +0 -133
  480. package/es2020/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js.map +0 -1
  481. package/es2020/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js +0 -51
  482. package/es2020/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js.map +0 -1
  483. package/es2020/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js +0 -51
  484. package/es2020/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js.map +0 -1
  485. package/es2020/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js +0 -47
  486. package/es2020/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js.map +0 -1
  487. package/es2020/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js +0 -118
  488. package/es2020/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js.map +0 -1
  489. package/es2020/src/legacy/selector/interfaces.js +0 -2
  490. package/es2020/src/legacy/selector/interfaces.js.map +0 -1
  491. package/es2020/src/legacy/selector/misc/datetimeSelector.interface.js +0 -2
  492. package/es2020/src/legacy/selector/misc/datetimeSelector.interface.js.map +0 -1
  493. package/es2020/src/legacy/selector/misc/tokens.js +0 -6
  494. package/es2020/src/legacy/selector/misc/tokens.js.map +0 -1
  495. package/es2020/src/legacy/selector/modules/basicSelector.module.js +0 -20
  496. package/es2020/src/legacy/selector/modules/basicSelector.module.js.map +0 -1
  497. package/es2020/src/legacy/selector/modules/selector.module.js +0 -63
  498. package/es2020/src/legacy/selector/modules/selector.module.js.map +0 -1
  499. package/es2020/src/legacy/selector/types.js +0 -11
  500. package/es2020/src/legacy/selector/types.js.map +0 -1
  501. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.css +0 -0
  502. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.d.ts +0 -9
  503. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.d.ts.map +0 -1
  504. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.html +0 -0
  505. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.d.ts +0 -6
  506. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.d.ts.map +0 -1
  507. package/src/legacy/picker/components/dayPicker/dayPicker.component.css +0 -22
  508. package/src/legacy/picker/components/dayPicker/dayPicker.component.d.ts +0 -80
  509. package/src/legacy/picker/components/dayPicker/dayPicker.component.d.ts.map +0 -1
  510. package/src/legacy/picker/components/dayPicker/dayPicker.component.html +0 -21
  511. package/src/legacy/picker/components/dayPicker/dayPicker.interfaces.d.ts +0 -11
  512. package/src/legacy/picker/components/dayPicker/dayPicker.interfaces.d.ts.map +0 -1
  513. package/src/legacy/picker/components/monthPicker/monthPicker.component.css +0 -4
  514. package/src/legacy/picker/components/monthPicker/monthPicker.component.d.ts +0 -53
  515. package/src/legacy/picker/components/monthPicker/monthPicker.component.d.ts.map +0 -1
  516. package/src/legacy/picker/components/monthPicker/monthPicker.component.html +0 -13
  517. package/src/legacy/picker/components/monthPicker/monthPicker.interfaces.d.ts +0 -7
  518. package/src/legacy/picker/components/monthPicker/monthPicker.interfaces.d.ts.map +0 -1
  519. package/src/legacy/picker/components/picker/picker.component.css +0 -4
  520. package/src/legacy/picker/components/picker/picker.component.d.ts +0 -105
  521. package/src/legacy/picker/components/picker/picker.component.d.ts.map +0 -1
  522. package/src/legacy/picker/components/picker/picker.component.html +0 -3
  523. package/src/legacy/picker/components/pickerBase.component.d.ts +0 -80
  524. package/src/legacy/picker/components/pickerBase.component.d.ts.map +0 -1
  525. package/src/legacy/picker/components/pickerImplBase.component.d.ts +0 -128
  526. package/src/legacy/picker/components/pickerImplBase.component.d.ts.map +0 -1
  527. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.css +0 -64
  528. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.d.ts +0 -71
  529. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.d.ts.map +0 -1
  530. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.html +0 -67
  531. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.d.ts +0 -4
  532. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.d.ts.map +0 -1
  533. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.d.ts +0 -6
  534. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.d.ts.map +0 -1
  535. package/src/legacy/picker/components/yearPicker/yearPicker.component.css +0 -4
  536. package/src/legacy/picker/components/yearPicker/yearPicker.component.d.ts +0 -58
  537. package/src/legacy/picker/components/yearPicker/yearPicker.component.d.ts.map +0 -1
  538. package/src/legacy/picker/components/yearPicker/yearPicker.component.html +0 -13
  539. package/src/legacy/picker/components/yearPicker/yearPicker.interfaces.d.ts +0 -7
  540. package/src/legacy/picker/components/yearPicker/yearPicker.interfaces.d.ts.map +0 -1
  541. package/src/legacy/picker/directives/index.d.ts +0 -4
  542. package/src/legacy/picker/directives/index.d.ts.map +0 -1
  543. package/src/legacy/picker/directives/loopScroll/loopScroll.directive.d.ts.map +0 -1
  544. package/src/legacy/picker/directives/loopScroll/loopScroll.interface.d.ts.map +0 -1
  545. package/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.d.ts +0 -20
  546. package/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.d.ts.map +0 -1
  547. package/src/legacy/picker/interfaces.d.ts +0 -6
  548. package/src/legacy/picker/interfaces.d.ts.map +0 -1
  549. package/src/legacy/picker/misc/datetimePicker.interface.d.ts +0 -193
  550. package/src/legacy/picker/misc/datetimePicker.interface.d.ts.map +0 -1
  551. package/src/legacy/picker/misc/tokens.d.ts +0 -7
  552. package/src/legacy/picker/misc/tokens.d.ts.map +0 -1
  553. package/src/legacy/picker/modules/picker.module.d.ts +0 -20
  554. package/src/legacy/picker/modules/picker.module.d.ts.map +0 -1
  555. package/src/legacy/picker/types.d.ts +0 -10
  556. package/src/legacy/picker/types.d.ts.map +0 -1
  557. package/src/legacy/selector/components/selector/selector.component.animations.d.ts +0 -5
  558. package/src/legacy/selector/components/selector/selector.component.animations.d.ts.map +0 -1
  559. package/src/legacy/selector/components/selector/selector.component.css +0 -11
  560. package/src/legacy/selector/components/selector/selector.component.d.ts +0 -157
  561. package/src/legacy/selector/components/selector/selector.component.d.ts.map +0 -1
  562. package/src/legacy/selector/components/selector/selector.component.html +0 -10
  563. package/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.d.ts +0 -80
  564. package/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.d.ts.map +0 -1
  565. package/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.d.ts +0 -23
  566. package/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.d.ts.map +0 -1
  567. package/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.d.ts +0 -23
  568. package/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.d.ts.map +0 -1
  569. package/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.d.ts +0 -22
  570. package/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.d.ts.map +0 -1
  571. package/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.d.ts +0 -54
  572. package/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.d.ts.map +0 -1
  573. package/src/legacy/selector/interfaces.d.ts +0 -2
  574. package/src/legacy/selector/interfaces.d.ts.map +0 -1
  575. package/src/legacy/selector/misc/datetimeSelector.interface.d.ts +0 -96
  576. package/src/legacy/selector/misc/datetimeSelector.interface.d.ts.map +0 -1
  577. package/src/legacy/selector/misc/tokens.d.ts +0 -7
  578. package/src/legacy/selector/misc/tokens.d.ts.map +0 -1
  579. package/src/legacy/selector/modules/basicSelector.module.d.ts +0 -11
  580. package/src/legacy/selector/modules/basicSelector.module.d.ts.map +0 -1
  581. package/src/legacy/selector/modules/selector.module.d.ts +0 -20
  582. package/src/legacy/selector/modules/selector.module.d.ts.map +0 -1
  583. package/src/legacy/selector/types.d.ts +0 -11
  584. package/src/legacy/selector/types.d.ts.map +0 -1
@@ -1,31 +1,39 @@
1
1
  import { __decorate, __metadata } from "tslib";
2
- import { ContentChildren, Directive, ElementRef, EventEmitter, HostListener, Input, Output, QueryList } from '@angular/core';
2
+ import { ContentChildren, Directive, ElementRef, EventEmitter, HostListener, Input, Output } from '@angular/core';
3
3
  import { DebounceCall, isBlank, nameof } from '@jscrpt/common';
4
- import { LoopScrollDataDirective } from '../loopScrollData/loopScrollData.directive';
4
+ import { LoopScrollDataSADirective } from '../loopScrollData/loopScrollData.directive';
5
5
  import * as i0 from "@angular/core";
6
6
  /**
7
7
  * Renders loop scroll for array of elements
8
8
  */
9
- export class LoopScrollDirective {
9
+ export class LoopScrollSADirective {
10
10
  //######################### constructor #########################
11
- constructor(_scrollElement) {
12
- this._scrollElement = _scrollElement;
11
+ constructor(scrollElement) {
12
+ this.scrollElement = scrollElement;
13
+ /**
14
+ * Array of elements for scrolled stuff
15
+ */
16
+ this.ɵitems = [];
17
+ /**
18
+ * Array of elements and data for scrolled stuff
19
+ */
20
+ this.dataItems = [];
13
21
  /**
14
22
  * Indication whether is loop scroll initialized
15
23
  */
16
- this._initialized = false;
24
+ this.initialized = false;
17
25
  /**
18
26
  * Count of cloned elements before or after
19
27
  */
20
- this._clonedCount = 0;
28
+ this.clonedCount = 0;
21
29
  /**
22
30
  * Indication whether ignore scroll handle
23
31
  */
24
- this._ignoreScrollHandle = false;
32
+ this.ignoreScrollHandle = false;
25
33
  /**
26
34
  * Indication whether skip value change
27
35
  */
28
- this._skipValueChange = false;
36
+ this.skipValueChange = false;
29
37
  /**
30
38
  * Indication whether is currently selection scroll open
31
39
  */
@@ -41,58 +49,58 @@ export class LoopScrollDirective {
41
49
  * Gets or sets value that is being set in loop scroll
42
50
  */
43
51
  get value() {
44
- return this._value;
52
+ return this.ɵvalue;
45
53
  }
46
54
  set value(value) {
47
- this._skipValueChange = this._value == value;
48
- this._value = value;
55
+ this.skipValueChange = this.ɵvalue == value;
56
+ this.ɵvalue = value;
49
57
  }
50
58
  //######################### public methods - implementation of OnChanges #########################
51
59
  /**
52
60
  * Called when input value changes
53
61
  */
54
62
  ngOnChanges(changes) {
55
- if (!this._initialized) {
63
+ if (!this.initialized) {
56
64
  return;
57
65
  }
58
- const itemHeight = this._itemHeight ?? 1;
66
+ const itemHeight = this.itemHeight ?? 1;
59
67
  if (nameof('open') in changes) {
60
68
  if (this.open) {
61
- this._scrollElement.nativeElement.scrollTo({ top: this._scrollElement.nativeElement.scrollTop - (2 * itemHeight), behavior: 'auto' });
69
+ this.scrollElement.nativeElement.scrollTo({ top: this.scrollElement.nativeElement.scrollTop - (2 * itemHeight), behavior: 'auto' });
62
70
  return;
63
71
  }
64
72
  if (nameof('value') in changes) {
65
- const selectedItem = this._dataItems?.find(itm => itm.data == this.value);
73
+ const selectedItem = this.dataItems?.find(itm => itm.data == this.value);
66
74
  if (!selectedItem) {
67
75
  throw new Error('No item selected in loop scroll');
68
76
  }
69
- const selectedIndex = this._dataItems.indexOf(selectedItem);
70
- this._scrollElement.nativeElement.scrollTo({ top: (selectedIndex + this._clonedCount) * itemHeight, behavior: 'auto' });
77
+ const selectedIndex = this.dataItems.indexOf(selectedItem);
78
+ this.scrollElement.nativeElement.scrollTo({ top: (selectedIndex + this.clonedCount) * itemHeight, behavior: 'auto' });
71
79
  }
72
80
  else {
73
- this._scrollElement.nativeElement.scrollTo({ top: this._scrollElement.nativeElement.scrollTop + (2 * itemHeight), behavior: 'auto' });
81
+ this.scrollElement.nativeElement.scrollTo({ top: this.scrollElement.nativeElement.scrollTop + (2 * itemHeight), behavior: 'auto' });
74
82
  }
75
83
  }
76
84
  else if (nameof('value') in changes) {
77
- if (!this._skipValueChange) {
78
- this._ignoreScrollHandle = true;
79
- this._scrollElement.nativeElement.scrollTo({ top: this._itemHeight * (this._clonedCount + this._dataItems.findIndex(itm => itm.data == this.value) + (this.open ? -2 : 0)), behavior: 'auto' });
80
- this._ignoreScrollHandle = false;
85
+ if (!this.skipValueChange) {
86
+ this.ignoreScrollHandle = true;
87
+ this.scrollElement.nativeElement.scrollTo({ top: (this.itemHeight ?? 0) * (this.clonedCount + this.dataItems.findIndex(itm => itm.data == this.value) + (this.open ? -2 : 0)), behavior: 'auto' });
88
+ this.ignoreScrollHandle = false;
81
89
  }
82
90
  }
83
- this._skipValueChange = false;
91
+ this.skipValueChange = false;
84
92
  }
85
93
  //######################### public methods - implementation of AfterContentInit #########################
86
94
  /**
87
95
  * Called when content was initialized
88
96
  */
89
97
  ngAfterContentInit() {
90
- this._items = this.items?.toArray();
91
- this._dataItems = this._items?.filter(itm => !itm.clone);
92
- if (!this._dataItems?.length) {
98
+ this.ɵitems = this.items?.toArray() ?? [];
99
+ this.dataItems = this.ɵitems?.filter(itm => !itm.clone);
100
+ if (!this.dataItems?.length) {
93
101
  this.items?.changes.subscribe(() => {
94
- this._items = this.items?.toArray();
95
- this._dataItems = this._items?.filter(itm => !itm.clone);
102
+ this.ɵitems = this.items?.toArray() ?? [];
103
+ this.dataItems = this.ɵitems?.filter(itm => !itm.clone);
96
104
  this._initialize();
97
105
  });
98
106
  return;
@@ -104,47 +112,47 @@ export class LoopScrollDirective {
104
112
  * Intialize default value
105
113
  */
106
114
  _initialize() {
107
- const cloned = this._items?.filter(itm => itm.clone) ?? [];
108
- this._clonedCount = cloned.length / 2;
109
- if (!this._dataItems?.length) {
115
+ const cloned = this.ɵitems?.filter(itm => itm.clone) ?? [];
116
+ this.clonedCount = cloned.length / 2;
117
+ if (!this.dataItems?.length) {
110
118
  return;
111
119
  }
112
- this._dataItems.forEach(itm => {
113
- if (isBlank(this._itemHeight)) {
114
- this._itemHeight = itm.element.nativeElement.offsetHeight;
120
+ this.dataItems.forEach(itm => {
121
+ if (isBlank(this.itemHeight)) {
122
+ this.itemHeight = itm.element.nativeElement.offsetHeight;
115
123
  return;
116
124
  }
117
- if (this._itemHeight != itm.element.nativeElement.offsetHeight) {
125
+ if (this.itemHeight != itm.element.nativeElement.offsetHeight) {
118
126
  throw new Error('All items inside of loop scroll should have same height');
119
127
  }
120
128
  });
121
- this._scrollElement.nativeElement.scrollTo({ top: this._itemHeight * (this._clonedCount + this._dataItems.findIndex(itm => itm.data == this.value)), behavior: 'auto' });
122
- this._initialized = true;
129
+ this.scrollElement.nativeElement.scrollTo({ top: (this.itemHeight ?? 0) * (this.clonedCount + this.dataItems.findIndex(itm => itm.data == this.value)), behavior: 'auto' });
130
+ this.initialized = true;
123
131
  }
124
132
  /**
125
133
  * Handles scroll event
126
134
  */
127
135
  _handleScroll() {
128
- if (this._ignoreScrollHandle) {
136
+ if (this.ignoreScrollHandle) {
129
137
  return;
130
138
  }
131
139
  requestAnimationFrame(() => {
132
- if (!this._dataItems) {
140
+ if (!this.dataItems) {
133
141
  return;
134
142
  }
135
- const index = this._scrollElement.nativeElement.scrollTop / (this._itemHeight ?? 1);
136
- const dataIndex = index + (this.open ? 2 : 0) - this._clonedCount;
137
- const dataLength = (this._itemHeight ?? 1) * this._dataItems.length;
143
+ const index = this.scrollElement.nativeElement.scrollTop / (this.itemHeight ?? 1);
144
+ const dataIndex = index + (this.open ? 2 : 0) - this.clonedCount;
145
+ const dataLength = (this.itemHeight ?? 1) * this.dataItems.length;
138
146
  if (index % 1 <= .2 || index % 1 >= .8) {
139
- this._scrollElement.nativeElement.querySelector('.selected')?.classList?.remove('selected');
147
+ this.scrollElement.nativeElement.querySelector('.selected')?.classList?.remove('selected');
140
148
  const roundIndex = Math.round(index);
141
- this._items[roundIndex + (this.open ? 2 : 0)].element.nativeElement.classList.add('selected');
149
+ this.ɵitems[roundIndex + (this.open ? 2 : 0)].element.nativeElement.classList.add('selected');
142
150
  this._emitValue(dataIndex);
143
151
  }
144
152
  if (dataIndex <= -1) {
145
153
  this._updateScroll(dataLength, true, index, dataIndex);
146
154
  }
147
- else if (dataIndex >= (this._dataItems.length ?? 0)) {
155
+ else if (dataIndex >= (this.dataItems.length ?? 0)) {
148
156
  this._updateScroll(dataLength, false, index, dataIndex);
149
157
  }
150
158
  });
@@ -157,7 +165,7 @@ export class LoopScrollDirective {
157
165
  * @param dataIndex - Current index of data
158
166
  */
159
167
  _updateScroll(dataLength, add, index, dataIndex) {
160
- this._scrollElement.nativeElement.scrollTo({ top: (Math.round(index) * (this._itemHeight ?? 1)) + (add ? dataLength : (dataLength * -1)), behavior: 'auto' });
168
+ this.scrollElement.nativeElement.scrollTo({ top: (Math.round(index) * (this.itemHeight ?? 1)) + (add ? dataLength : (dataLength * -1)), behavior: 'auto' });
161
169
  this._emitValue(dataIndex);
162
170
  }
163
171
  /**
@@ -165,29 +173,30 @@ export class LoopScrollDirective {
165
173
  * @param index - Index of currently selected data item
166
174
  */
167
175
  _emitValue(index) {
168
- index = Math.round(index) % this._dataItems.length;
176
+ index = Math.round(index) % this.dataItems.length;
169
177
  if (index < 0) {
170
- index = this._dataItems.length + index;
178
+ index = this.dataItems.length + index;
171
179
  }
172
- const item = this._dataItems[index];
180
+ const item = this.dataItems[index];
173
181
  if (this.value != item.data) {
174
182
  this.value = item.data;
175
183
  this.valueChange.next(this.value);
176
184
  }
177
185
  }
178
186
  }
179
- LoopScrollDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: LoopScrollDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
180
- LoopScrollDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.6", type: LoopScrollDirective, selector: "[loopScroll]", inputs: { value: ["loopScroll", "value"], open: "open" }, outputs: { valueChange: "loopScrollChange" }, host: { listeners: { "scroll": "_handleScroll()" } }, queries: [{ propertyName: "items", predicate: LoopScrollDataDirective }], usesOnChanges: true, ngImport: i0 });
187
+ LoopScrollSADirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LoopScrollSADirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
188
+ LoopScrollSADirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: LoopScrollSADirective, isStandalone: true, selector: "[loopScroll]", inputs: { value: ["loopScroll", "value"], open: "open" }, outputs: { valueChange: "loopScrollChange" }, host: { listeners: { "scroll": "_handleScroll()" } }, queries: [{ propertyName: "items", predicate: LoopScrollDataSADirective }], usesOnChanges: true, ngImport: i0 });
181
189
  __decorate([
182
190
  DebounceCall(18),
183
191
  __metadata("design:type", Function),
184
192
  __metadata("design:paramtypes", [Number, Boolean, Number, Number]),
185
193
  __metadata("design:returntype", void 0)
186
- ], LoopScrollDirective.prototype, "_updateScroll", null);
187
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: LoopScrollDirective, decorators: [{
194
+ ], LoopScrollSADirective.prototype, "_updateScroll", null);
195
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LoopScrollSADirective, decorators: [{
188
196
  type: Directive,
189
197
  args: [{
190
- selector: '[loopScroll]'
198
+ selector: '[loopScroll]',
199
+ standalone: true,
191
200
  }]
192
201
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { value: [{
193
202
  type: Input,
@@ -199,7 +208,7 @@ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImpor
199
208
  args: ['loopScrollChange']
200
209
  }], items: [{
201
210
  type: ContentChildren,
202
- args: [LoopScrollDataDirective]
211
+ args: [LoopScrollDataSADirective]
203
212
  }], _handleScroll: [{
204
213
  type: HostListener,
205
214
  args: ['scroll']
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loopScroll.directive.js","sourceRoot":"","sources":["../../../../../../src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.ts"],"names":[],"mappings":"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","sourcesContent":["import {AfterContentInit, ContentChildren, Directive, ElementRef, EventEmitter, HostListener, Input, OnChanges, Output, QueryList, SimpleChanges} from '@angular/core';\nimport {DebounceCall, isBlank, nameof} from '@jscrpt/common';\n\nimport {LoopScrollDataSADirective} from '../loopScrollData/loopScrollData.directive';\n\n/**\n * Renders loop scroll for array of elements\n */\n@Directive(\n{\n selector: '[loopScroll]',\n standalone: true,\n})\nexport class LoopScrollSADirective<TData = unknown> implements OnChanges, AfterContentInit\n{\n //######################### protected fields #########################\n\n /**\n * Item height that obtained\n */\n protected itemHeight: number|undefined|null;\n\n /**\n * Array of elements for scrolled stuff\n */\n protected ɵitems: LoopScrollDataSADirective<TData>[] = [];\n\n /**\n * Array of elements and data for scrolled stuff\n */ \n protected dataItems: LoopScrollDataSADirective<TData>[] = [];\n\n /**\n * Indication whether is loop scroll initialized\n */\n protected initialized: boolean = false;\n\n /**\n * Count of cloned elements before or after\n */\n protected clonedCount: number = 0;\n\n /**\n * Indication whether ignore scroll handle\n */\n protected ignoreScrollHandle: boolean = false;\n\n /**\n * Indication whether skip value change\n */\n protected skipValueChange: boolean = false;\n\n /**\n * Value that is being set in loop scroll\n */\n protected ɵvalue: TData|undefined|null;\n\n //######################### public properties - inputs #########################\n\n /**\n * Gets or sets value that is being set in loop scroll\n */\n @Input('loopScroll')\n public get value(): TData|undefined|null\n {\n return this.ɵvalue;\n }\n public set value(value: TData|undefined|null)\n {\n this.skipValueChange = this.ɵvalue == value;\n this.ɵvalue = value;\n }\n\n /**\n * Indication whether is currently selection scroll open\n */\n @Input()\n public open: boolean = false;\n\n //######################### public properties - outputs #########################\n\n /**\n * Occurs when current value of loop scroll changes\n */\n @Output('loopScrollChange')\n public valueChange: EventEmitter<TData|undefined|null> = new EventEmitter<TData|undefined|null>();\n\n //######################### protected properties - children #########################\n\n /**\n * Array of items that are loop scrolled\n */\n @ContentChildren(LoopScrollDataSADirective)\n protected items: QueryList<LoopScrollDataSADirective<TData>>|undefined|null;\n\n //######################### constructor #########################\n constructor(protected scrollElement: ElementRef<HTMLElement>)\n {\n }\n\n //######################### public methods - implementation of OnChanges #########################\n \n /**\n * Called when input value changes\n */\n public ngOnChanges(changes: SimpleChanges): void\n {\n if(!this.initialized)\n {\n return;\n }\n\n const itemHeight = this.itemHeight ?? 1;\n\n if(nameof<LoopScrollSADirective>('open') in changes)\n {\n if(this.open)\n {\n this.scrollElement.nativeElement.scrollTo({top: this.scrollElement.nativeElement.scrollTop - (2 * itemHeight), behavior: 'auto'});\n\n return;\n }\n\n if(nameof<LoopScrollSADirective>('value') in changes)\n {\n const selectedItem = this.dataItems?.find(itm => itm.data == this.value);\n\n if(!selectedItem)\n {\n throw new Error('No item selected in loop scroll');\n }\n\n const selectedIndex = this.dataItems.indexOf(selectedItem);\n\n this.scrollElement.nativeElement.scrollTo({top: (selectedIndex + this.clonedCount) * itemHeight, behavior: 'auto'});\n }\n else\n {\n this.scrollElement.nativeElement.scrollTo({top: this.scrollElement.nativeElement.scrollTop + (2 * itemHeight), behavior: 'auto'});\n }\n }\n else if(nameof<LoopScrollSADirective>('value') in changes)\n {\n if(!this.skipValueChange)\n {\n this.ignoreScrollHandle = true;\n this.scrollElement.nativeElement.scrollTo({top: (this.itemHeight ?? 0) * (this.clonedCount + this.dataItems.findIndex(itm => itm.data == this.value) + (this.open ? -2 : 0)), behavior: 'auto'});\n this.ignoreScrollHandle = false;\n }\n }\n\n this.skipValueChange = false;\n }\n\n //######################### public methods - implementation of AfterContentInit #########################\n \n /**\n * Called when content was initialized\n */\n public ngAfterContentInit(): void\n {\n this.ɵitems = this.items?.toArray() ?? [];\n this.dataItems = this.ɵitems?.filter(itm => !itm.clone);\n\n if(!this.dataItems?.length)\n {\n this.items?.changes.subscribe(() =>\n {\n this.ɵitems = this.items?.toArray() ?? [];\n this.dataItems = this.ɵitems?.filter(itm => !itm.clone);\n\n this._initialize();\n });\n\n return;\n }\n\n this._initialize();\n }\n\n //######################### protected methods #########################\n\n /**\n * Intialize default value\n */\n protected _initialize(): void\n {\n const cloned = this.ɵitems?.filter(itm => itm.clone) ?? [];\n this.clonedCount = cloned.length / 2;\n\n if(!this.dataItems?.length)\n {\n return;\n }\n\n this.dataItems.forEach(itm =>\n {\n if(isBlank(this.itemHeight))\n {\n this.itemHeight = itm.element.nativeElement.offsetHeight;\n\n return;\n }\n\n if(this.itemHeight != itm.element.nativeElement.offsetHeight)\n {\n throw new Error('All items inside of loop scroll should have same height');\n }\n });\n\n this.scrollElement.nativeElement.scrollTo({top: (this.itemHeight ?? 0) * (this.clonedCount + this.dataItems.findIndex(itm => itm.data == this.value)), behavior: 'auto'});\n this.initialized = true;\n }\n\n /**\n * Handles scroll event\n */\n @HostListener('scroll')\n protected _handleScroll(): void\n {\n if(this.ignoreScrollHandle)\n {\n return;\n }\n\n requestAnimationFrame(() =>\n {\n if(!this.dataItems)\n {\n return;\n }\n\n const index = this.scrollElement.nativeElement.scrollTop / (this.itemHeight ?? 1);\n const dataIndex = index + (this.open ? 2 : 0) - this.clonedCount;\n const dataLength = (this.itemHeight ?? 1) * this.dataItems.length;\n\n if(index % 1 <= .2 || index % 1 >= .8)\n {\n this.scrollElement.nativeElement.querySelector('.selected')?.classList?.remove('selected');\n\n const roundIndex = Math.round(index);\n this.ɵitems[roundIndex + (this.open ? 2 : 0)].element.nativeElement.classList.add('selected');\n this._emitValue(dataIndex);\n }\n\n if(dataIndex <= -1)\n {\n this._updateScroll(dataLength, true, index, dataIndex);\n }\n else if(dataIndex >= (this.dataItems.length ?? 0))\n {\n this._updateScroll(dataLength, false, index, dataIndex);\n }\n });\n }\n\n /**\n * Updates scroll to be at full value of item\n * @param dataLength - Length of all data\n * @param add - Indication whether add or subtract length\n * @param index - Current index\n * @param dataIndex - Current index of data \n */\n @DebounceCall(18)\n protected _updateScroll(dataLength: number, add: boolean, index: number, dataIndex: number): void\n {\n this.scrollElement.nativeElement.scrollTo({top: (Math.round(index) * (this.itemHeight ?? 1)) + (add ? dataLength : (dataLength * -1)), behavior: 'auto'});\n\n this._emitValue(dataIndex);\n }\n\n /**\n * Emits value after scroll\n * @param index - Index of currently selected data item\n */\n protected _emitValue(index: number): void\n {\n index = Math.round(index) % this.dataItems.length;\n \n if(index < 0)\n {\n index = this.dataItems.length + index;\n }\n\n const item = this.dataItems[index];\n\n if(this.value != item.data)\n {\n this.value = item.data;\n this.valueChange.next(this.value);\n }\n }\n}"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=loopScroll.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loopScroll.interface.js","sourceRoot":"","sources":["../../../../../../src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Represents data for LoopScrollDirective\n */\nexport interface LoopScrollData<TData = unknown>\n{\n /**\n * Text to be displayed for item\n */\n displayText?: string;\n\n /**\n * Data that are stored per value\n */\n data?: TData;\n}"]}
@@ -3,7 +3,7 @@ import * as i0 from "@angular/core";
3
3
  /**
4
4
  * Loop scroll data that are used inside LoopScrollDirective
5
5
  */
6
- export class LoopScrollDataDirective {
6
+ export class LoopScrollDataSADirective {
7
7
  //######################### constructor #########################
8
8
  constructor(element) {
9
9
  this.element = element;
@@ -13,12 +13,13 @@ export class LoopScrollDataDirective {
13
13
  this.clone = false;
14
14
  }
15
15
  }
16
- LoopScrollDataDirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: LoopScrollDataDirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
17
- LoopScrollDataDirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "14.2.6", type: LoopScrollDataDirective, selector: "[loopScrollData]", inputs: { data: ["loopScrollData", "data"], clone: "clone" }, ngImport: i0 });
18
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: LoopScrollDataDirective, decorators: [{
16
+ LoopScrollDataSADirective.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LoopScrollDataSADirective, deps: [{ token: i0.ElementRef }], target: i0.ɵɵFactoryTarget.Directive });
17
+ LoopScrollDataSADirective.ɵdir = i0.ɵɵngDeclareDirective({ minVersion: "14.0.0", version: "15.0.4", type: LoopScrollDataSADirective, isStandalone: true, selector: "[loopScrollData]", inputs: { data: ["loopScrollData", "data"], clone: "clone" }, ngImport: i0 });
18
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: LoopScrollDataSADirective, decorators: [{
19
19
  type: Directive,
20
20
  args: [{
21
- selector: '[loopScrollData]'
21
+ selector: '[loopScrollData]',
22
+ standalone: true,
22
23
  }]
23
24
  }], ctorParameters: function () { return [{ type: i0.ElementRef }]; }, propDecorators: { data: [{
24
25
  type: Input,
@@ -0,0 +1 @@
1
+ {"version":3,"file":"loopScrollData.directive.js","sourceRoot":"","sources":["../../../../../../src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,UAAU,EAAE,KAAK,EAAC,MAAM,eAAe,CAAC;;AAE3D;;GAEG;AAMH,MAAM,OAAO,yBAAyB;IAgBlC,iEAAiE;IACjE,YAAmB,OAAgC;QAAhC,YAAO,GAAP,OAAO,CAAyB;QAPnD;;WAEG;QAEI,UAAK,GAAY,KAAK,CAAC;IAK9B,CAAC;;sHAnBQ,yBAAyB;0GAAzB,yBAAyB;2FAAzB,yBAAyB;kBALrC,SAAS;mBACV;oBACI,QAAQ,EAAE,kBAAkB;oBAC5B,UAAU,EAAE,IAAI;iBACnB;iGASU,IAAI;sBADV,KAAK;uBAAC,gBAAgB;gBAOhB,KAAK;sBADX,KAAK","sourcesContent":["import {Directive, ElementRef, Input} from '@angular/core';\n\n/**\n * Loop scroll data that are used inside LoopScrollDirective\n */\n@Directive(\n{\n selector: '[loopScrollData]',\n standalone: true,\n})\nexport class LoopScrollDataSADirective<TData = unknown>\n{\n //######################### public properties - inputs #########################\n\n /**\n * Data for loop\n */\n @Input('loopScrollData')\n public data: TData|undefined|null;\n\n /**\n * Indication that this node is clone\n */\n @Input()\n public clone: boolean = false;\n\n //######################### constructor #########################\n constructor(public element: ElementRef<HTMLElement>)\n {\n }\n}"]}
@@ -1,2 +1,3 @@
1
1
  export * from './dateTimePicker/dateTimePicker.interface';
2
+ export * from './periodData/periodData.interface';
2
3
  //# sourceMappingURL=index.js.map
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/dateTimePicker/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAC","sourcesContent":["export * from './dateTimePicker/dateTimePicker.interface';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../../../src/modules/dateTimePicker/interfaces/index.ts"],"names":[],"mappings":"AAAA,cAAc,2CAA2C,CAAC;AAC1D,cAAc,mCAAmC,CAAC","sourcesContent":["export * from './dateTimePicker/dateTimePicker.interface';\nexport * from './periodData/periodData.interface';\n"]}
@@ -0,0 +1,2 @@
1
+ export {};
2
+ //# sourceMappingURL=periodData.interface.js.map
@@ -0,0 +1 @@
1
+ {"version":3,"file":"periodData.interface.js","sourceRoot":"","sources":["../../../../../../src/modules/dateTimePicker/interfaces/periodData/periodData.interface.ts"],"names":[],"mappings":"","sourcesContent":["import {DateApiObject} from '../../../../services';\n\n/**\n * Data that represents data for any picker type\n */\nexport interface PeriodData<TDate = unknown>\n{\n /**\n * Indication that this period item is active and selected\n */\n active: boolean;\n\n /**\n * Indication that this period item is disabled\n */\n disabled: boolean;\n\n //TODO: remove\n\n /**\n * Date for this period item\n */\n date: TDate;\n\n /**\n * Date for this period item as date api object\n */\n dateObj: DateApiObject<TDate>;\n}\n\n/**\n * Data that represents day in date picker\n */\nexport interface DayData<TDate = unknown> extends PeriodData<TDate>\n{\n\n /**\n * Indication that this day is out of currently selected month\n */\n otherMonth: boolean;\n\n /**\n * Indication that this day is today\n */\n today: boolean;\n\n /**\n * Indication that this day is weekend day\n */\n weekend: boolean;\n\n /**\n * Day number of month\n */\n day: number;\n}\n\n/**\n * Data that represents month in date picker\n */\nexport interface MonthData<TDate = unknown> extends PeriodData<TDate>\n{\n /**\n * Name of month\n */\n name: string;\n}\n\n/**\n * Data that represents year in date picker\n */\nexport interface YearData<TDate = unknown> extends PeriodData<TDate>\n{\n /**\n * Value of year\n */\n value: number;\n}"]}
@@ -1,27 +1,28 @@
1
1
  import { NgModule } from '@angular/core';
2
2
  import { DateTimePickerComponent } from '../components';
3
- import { DateTimePickerDirective } from '../directives';
3
+ import { DateTimePickerSADirective } from '../directives';
4
4
  import * as i0 from "@angular/core";
5
5
  /**
6
6
  * Module for components that are used as date time picker
7
7
  */
8
8
  export class DateTimePickerModule {
9
9
  }
10
- DateTimePickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
11
- DateTimePickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "14.2.6", ngImport: i0, type: DateTimePickerModule, declarations: [DateTimePickerComponent,
12
- DateTimePickerDirective], exports: [DateTimePickerComponent,
13
- DateTimePickerDirective] });
14
- DateTimePickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimePickerModule });
15
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateTimePickerModule, decorators: [{
10
+ DateTimePickerModule.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DateTimePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
11
+ DateTimePickerModule.ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: DateTimePickerModule, declarations: [DateTimePickerComponent], imports: [DateTimePickerSADirective], exports: [DateTimePickerComponent,
12
+ DateTimePickerSADirective] });
13
+ DateTimePickerModule.ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DateTimePickerModule });
14
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DateTimePickerModule, decorators: [{
16
15
  type: NgModule,
17
16
  args: [{
17
+ imports: [
18
+ DateTimePickerSADirective,
19
+ ],
18
20
  declarations: [
19
21
  DateTimePickerComponent,
20
- DateTimePickerDirective,
21
22
  ],
22
23
  exports: [
23
24
  DateTimePickerComponent,
24
- DateTimePickerDirective,
25
+ DateTimePickerSADirective,
25
26
  ],
26
27
  }]
27
28
  }] });
@@ -1 +1 @@
1
- {"version":3,"file":"dateTimePicker.module.js","sourceRoot":"","sources":["../../../../../src/modules/dateTimePicker/modules/dateTimePicker.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAC,uBAAuB,EAAC,MAAM,eAAe,CAAC;AACtD,OAAO,EAAC,uBAAuB,EAAC,MAAM,eAAe,CAAC;;AAEtD;;GAEG;AAcH,MAAM,OAAO,oBAAoB;;iHAApB,oBAAoB;kHAApB,oBAAoB,iBATzB,uBAAuB;QACvB,uBAAuB,aAIvB,uBAAuB;QACvB,uBAAuB;kHAGlB,oBAAoB;2FAApB,oBAAoB;kBAbhC,QAAQ;mBACT;oBACI,YAAY,EACZ;wBACI,uBAAuB;wBACvB,uBAAuB;qBAC1B;oBACD,OAAO,EACP;wBACI,uBAAuB;wBACvB,uBAAuB;qBAC1B;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\n\nimport {DateTimePickerComponent} from '../components';\nimport {DateTimePickerDirective} from '../directives';\n\n/**\n * Module for components that are used as date time picker\n */\n@NgModule(\n{\n declarations:\n [\n DateTimePickerComponent,\n DateTimePickerDirective,\n ],\n exports:\n [\n DateTimePickerComponent,\n DateTimePickerDirective,\n ],\n})\nexport class DateTimePickerModule\n{\n}"]}
1
+ {"version":3,"file":"dateTimePicker.module.js","sourceRoot":"","sources":["../../../../../src/modules/dateTimePicker/modules/dateTimePicker.module.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,QAAQ,EAAC,MAAM,eAAe,CAAC;AAEvC,OAAO,EAAC,uBAAuB,EAAC,MAAM,eAAe,CAAC;AACtD,OAAO,EAAC,yBAAyB,EAAC,MAAM,eAAe,CAAC;;AAExD;;GAEG;AAiBH,MAAM,OAAO,oBAAoB;;iHAApB,oBAAoB;kHAApB,oBAAoB,iBARzB,uBAAuB,aAJvB,yBAAyB,aAQzB,uBAAuB;QACvB,yBAAyB;kHAGpB,oBAAoB;2FAApB,oBAAoB;kBAhBhC,QAAQ;mBACT;oBACI,OAAO,EACP;wBACI,yBAAyB;qBAC5B;oBACD,YAAY,EACZ;wBACI,uBAAuB;qBAC1B;oBACD,OAAO,EACP;wBACI,uBAAuB;wBACvB,yBAAyB;qBAC5B;iBACJ","sourcesContent":["import {NgModule} from '@angular/core';\n\nimport {DateTimePickerComponent} from '../components';\nimport {DateTimePickerSADirective} from '../directives';\n\n/**\n * Module for components that are used as date time picker\n */\n@NgModule(\n{\n imports:\n [\n DateTimePickerSADirective,\n ],\n declarations:\n [\n DateTimePickerComponent,\n ],\n exports:\n [\n DateTimePickerComponent,\n DateTimePickerSADirective,\n ],\n})\nexport class DateTimePickerModule\n{\n}"]}
@@ -1,3 +1,4 @@
1
+ export * from './calendar';
1
2
  export * from './datePipes.module';
2
3
  export * from './dateTime';
3
4
  export * from './dateTimePicker';
@@ -1 +1 @@
1
- {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC","sourcesContent":["export * from './datePipes.module';\nexport * from './dateTime';\nexport * from './dateTimePicker';\n"]}
1
+ {"version":3,"file":"index.js","sourceRoot":"","sources":["../../../src/modules/index.ts"],"names":[],"mappings":"AAAA,cAAc,YAAY,CAAC;AAC3B,cAAc,oBAAoB,CAAC;AACnC,cAAc,YAAY,CAAC;AAC3B,cAAc,kBAAkB,CAAC","sourcesContent":["export * from './calendar';\nexport * from './datePipes.module';\nexport * from './dateTime';\nexport * from './dateTimePicker';\n"]}
@@ -23,9 +23,9 @@ export class DateConvertPipe {
23
23
  return null;
24
24
  }
25
25
  }
26
- DateConvertPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateConvertPipe, deps: [{ token: DATE_API }], target: i0.ɵɵFactoryTarget.Pipe });
27
- DateConvertPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.6", ngImport: i0, type: DateConvertPipe, name: "dateConvert" });
28
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateConvertPipe, decorators: [{
26
+ DateConvertPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DateConvertPipe, deps: [{ token: DATE_API }], target: i0.ɵɵFactoryTarget.Pipe });
27
+ DateConvertPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: DateConvertPipe, name: "dateConvert" });
28
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DateConvertPipe, decorators: [{
29
29
  type: Pipe,
30
30
  args: [{ name: 'dateConvert' }]
31
31
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
@@ -1 +1 @@
1
- {"version":3,"file":"dateConvert.pipe.js","sourceRoot":"","sources":["../../../src/pipes/dateConvert.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,IAAI,EAAgB,MAAM,eAAe,CAAC;AAE1D,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;;AAGxC;;GAEG;AAEH,MAAM,OAAO,eAAe;IAExB,kEAAkE;IAClE,YAAsC,QAAwB;QAAxB,aAAQ,GAAR,QAAQ,CAAgB;IAE9D,CAAC;IAED,sGAAsG;IAEtG;;;;OAIG;IACI,SAAS,CAAC,KAAsB,EAAE,WAAoB;QAEzD,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;QAE3D,IAAG,OAAO,CAAC,OAAO,EAAE,EACpB;YACI,OAAO,OAAO,CAAC;SAClB;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;;4GAxBQ,eAAe,kBAGJ,QAAQ;0GAHnB,eAAe;2FAAf,eAAe;kBAD3B,IAAI;mBAAC,EAAC,IAAI,EAAE,aAAa,EAAC;;0BAIV,MAAM;2BAAC,QAAQ","sourcesContent":["import {Inject, Pipe, PipeTransform} from '@angular/core';\n\nimport {DATE_API} from '../misc/tokens';\nimport {DateApi, DateApiObject, DateValue} from '../services';\n\n/**\n * Pipe that is used for converting date\n */\n@Pipe({name: 'dateConvert'})\nexport class DateConvertPipe<TDate = any> implements PipeTransform\n{\n //######################### constructors #########################\n constructor(@Inject(DATE_API) private _dateApi: DateApi<TDate>)\n {\n }\n\n //######################### public methods - implementation of PipeTransform #########################\n\n /**\n * Transforms value into date object\n * @param value - value to be transformed\n * @param parseFormat - format used for parsing string date\n */\n public transform(value: TDate|DateValue, parseFormat?: string): DateApiObject<TDate>|null\n {\n const dateObj = this._dateApi.getValue(value, parseFormat);\n\n if(dateObj.isValid())\n {\n return dateObj;\n }\n\n return null;\n }\n}"]}
1
+ {"version":3,"file":"dateConvert.pipe.js","sourceRoot":"","sources":["../../../src/pipes/dateConvert.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,IAAI,EAAgB,MAAM,eAAe,CAAC;AAE1D,OAAO,EAAC,QAAQ,EAAC,MAAM,gBAAgB,CAAC;;AAGxC;;GAEG;AAEH,MAAM,OAAO,eAAe;IAExB,kEAAkE;IAClE,YAAsC,QAAwB;QAAxB,aAAQ,GAAR,QAAQ,CAAgB;IAE9D,CAAC;IAED,sGAAsG;IAEtG;;;;OAIG;IACI,SAAS,CAAC,KAAsB,EAAE,WAAoB;QAEzD,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;QAE3D,IAAG,OAAO,CAAC,OAAO,EAAE,EACpB;YACI,OAAO,OAAO,CAAC;SAClB;QAED,OAAO,IAAI,CAAC;IAChB,CAAC;;4GAxBQ,eAAe,kBAGJ,QAAQ;0GAHnB,eAAe;2FAAf,eAAe;kBAD3B,IAAI;mBAAC,EAAC,IAAI,EAAE,aAAa,EAAC;;0BAIV,MAAM;2BAAC,QAAQ","sourcesContent":["import {Inject, Pipe, PipeTransform} from '@angular/core';\n\nimport {DATE_API} from '../misc/tokens';\nimport {DateApi, DateApiObject, DateValue} from '../services';\n\n/**\n * Pipe that is used for converting date\n */\n@Pipe({name: 'dateConvert'})\nexport class DateConvertPipe<TDate = unknown> implements PipeTransform\n{\n //######################### constructors #########################\n constructor(@Inject(DATE_API) private _dateApi: DateApi<TDate>)\n {\n }\n\n //######################### public methods - implementation of PipeTransform #########################\n\n /**\n * Transforms value into date object\n * @param value - value to be transformed\n * @param parseFormat - format used for parsing string date\n */\n public transform(value: TDate|DateValue, parseFormat?: string): DateApiObject<TDate>|null\n {\n const dateObj = this._dateApi.getValue(value, parseFormat);\n\n if(dateObj.isValid())\n {\n return dateObj;\n }\n\n return null;\n }\n}"]}
@@ -24,9 +24,9 @@ export class DateFormatPipe {
24
24
  return '';
25
25
  }
26
26
  }
27
- DateFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateFormatPipe, deps: [{ token: FORMAT_PROVIDER }, { token: DATE_API }], target: i0.ɵɵFactoryTarget.Pipe });
28
- DateFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "14.2.6", ngImport: i0, type: DateFormatPipe, name: "dateFormat" });
29
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DateFormatPipe, decorators: [{
27
+ DateFormatPipe.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DateFormatPipe, deps: [{ token: FORMAT_PROVIDER }, { token: DATE_API }], target: i0.ɵɵFactoryTarget.Pipe });
28
+ DateFormatPipe.ɵpipe = i0.ɵɵngDeclarePipe({ minVersion: "14.0.0", version: "15.0.4", ngImport: i0, type: DateFormatPipe, name: "dateFormat" });
29
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DateFormatPipe, decorators: [{
30
30
  type: Pipe,
31
31
  args: [{ name: 'dateFormat' }]
32
32
  }], ctorParameters: function () { return [{ type: undefined, decorators: [{
@@ -1 +1 @@
1
- {"version":3,"file":"dateFormat.pipe.js","sourceRoot":"","sources":["../../../src/pipes/dateFormat.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,IAAI,EAAgB,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAC,QAAQ,EAAE,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAC,QAAQ,EAAE,eAAe,EAAC,MAAM,gBAAgB,CAAC;;AAGzD;;GAEG;AAEH,MAAM,OAAO,cAAc;IAEvB,kEAAkE;IAClE,YAA6C,eAA+B,EACtC,QAAwB;QADjB,oBAAe,GAAf,eAAe,CAAgB;QACtC,aAAQ,GAAR,QAAQ,CAAgB;IAE9D,CAAC;IAqCM,SAAS,CAAC,KAAsB,EAAE,SAAsC,MAAM,CAAiB,MAAM,CAAC,EAAE,yBAA0C,EAAE,aAAuB;QAE9K,MAAM,WAAW,GAAqB,QAAQ,CAAC,yBAAyB,CAAC,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,SAAS,CAAC;QAElH,uBAAuB;QACvB,IAAG,MAAM,IAAI,IAAI,CAAC,eAAe,EACjC;YACI,MAAM,GAAS,IAAI,CAAC,eAAgB,CAAC,MAAM,CAAC,CAAC;SAChD;QAED,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;QAE3D,IAAG,OAAO,CAAC,OAAO,EAAE,EACpB;YACI,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;SAC1D;QAED,OAAO,EAAE,CAAC;IACd,CAAC;;2GA7DQ,cAAc,kBAGH,eAAe,aACf,QAAQ;yGAJnB,cAAc;2FAAd,cAAc;kBAD1B,IAAI;mBAAC,EAAC,IAAI,EAAE,YAAY,EAAC;;0BAIT,MAAM;2BAAC,eAAe;;0BACtB,MAAM;2BAAC,QAAQ","sourcesContent":["import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {isString, nameof} from '@jscrpt/common';\n\nimport {FormatProvider} from '../interfaces';\nimport {DATE_API, FORMAT_PROVIDER} from '../misc/tokens';\nimport {DateApi, DateValue} from '../services';\n\n/**\n * Pipe that is used for formatting date\n */\n@Pipe({name: 'dateFormat'})\nexport class DateFormatPipe<TDate = any> implements PipeTransform\n{\n //######################### constructors #########################\n constructor(@Inject(FORMAT_PROVIDER) private _formatProvider: FormatProvider,\n @Inject(DATE_API) private _dateApi: DateApi<TDate>)\n {\n }\n\n //######################### public methods - implementation of PipeTransform #########################\n\n /**\n * Formats provided date into formatted string, with default format 'date'\n * @param value - value to be transformed\n */\n public transform(value: TDate|DateValue): string\n /**\n * Formats provided date into formatted string\n * @param value - value to be transformed\n * @param format - predefined format that is used for formatting, one of 'FormatProvider' keys\n */\n public transform(value: TDate|DateValue, format: keyof FormatProvider): string\n /**\n * Formats provided date into formatted string\n * @param value - value to be transformed\n * @param format - predefined format that is used for formatting, one of 'FormatProvider' keys\n * @param parseFormat - format used for parsing string date\n */\n public transform(value: TDate|DateValue, format: keyof FormatProvider, parseFormat: string): string\n /**\n * Formats provided date into formatted string\n * @param value - value to be transformed\n * @param format - format that is used for formatting\n * @param customFormat - indication that custom format is used\n */\n public transform(value: TDate|DateValue, format: string, customFormat: true): string\n /**\n * Formats provided date into formatted string\n * @param value - value to be transformed\n * @param format - format that is used for formatting\n * @param parseFormat - format used for parsing string date\n * @param customFormat - indication that custom format is used\n */\n public transform(value: TDate|DateValue, format: string, parseFormat: string, customFormat: true): string\n public transform(value: TDate|DateValue, format: string|keyof FormatProvider = nameof<FormatProvider>('date'), parseFormatOrCustomFormat?: string|boolean, _customFormat?: boolean): string\n {\n const parseFormat: string|undefined = isString(parseFormatOrCustomFormat) ? parseFormatOrCustomFormat : undefined;\n \n //format provider value\n if(format in this._formatProvider)\n {\n format = (<any>this._formatProvider)[format];\n }\n\n const dateObj = this._dateApi.getValue(value, parseFormat);\n\n if(dateObj.isValid())\n {\n return dateObj.format(this._dateApi.getFormat(format));\n }\n\n return '';\n }\n}"]}
1
+ {"version":3,"file":"dateFormat.pipe.js","sourceRoot":"","sources":["../../../src/pipes/dateFormat.pipe.ts"],"names":[],"mappings":"AAAA,OAAO,EAAC,MAAM,EAAE,IAAI,EAAgB,MAAM,eAAe,CAAC;AAC1D,OAAO,EAAC,QAAQ,EAAE,MAAM,EAAC,MAAM,gBAAgB,CAAC;AAGhD,OAAO,EAAC,QAAQ,EAAE,eAAe,EAAC,MAAM,gBAAgB,CAAC;;AAGzD;;GAEG;AAEH,MAAM,OAAO,cAAc;IAEvB,kEAAkE;IAClE,YAA6C,eAA+B,EACtC,QAAwB;QADjB,oBAAe,GAAf,eAAe,CAAgB;QACtC,aAAQ,GAAR,QAAQ,CAAgB;IAE9D,CAAC;IAqCM,SAAS,CAAC,KAAsB,EAAE,SAAsC,MAAM,CAAiB,MAAM,CAAC,EAAE,yBAA0C,EAAE,aAAuB;QAE9K,MAAM,WAAW,GAAqB,QAAQ,CAAC,yBAAyB,CAAC,CAAC,CAAC,CAAC,yBAAyB,CAAC,CAAC,CAAC,SAAS,CAAC;QAElH,uBAAuB;QACvB,IAAG,MAAM,IAAI,IAAI,CAAC,eAAe,EACjC;YACI,MAAM,GAAS,IAAI,CAAC,eAAgB,CAAC,MAAM,CAAC,CAAC;SAChD;QAED,MAAM,OAAO,GAAG,IAAI,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,EAAE,WAAW,CAAC,CAAC;QAE3D,IAAG,OAAO,CAAC,OAAO,EAAE,EACpB;YACI,OAAO,OAAO,CAAC,MAAM,CAAC,IAAI,CAAC,QAAQ,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC,CAAC;SAC1D;QAED,OAAO,EAAE,CAAC;IACd,CAAC;;2GA7DQ,cAAc,kBAGH,eAAe,aACf,QAAQ;yGAJnB,cAAc;2FAAd,cAAc;kBAD1B,IAAI;mBAAC,EAAC,IAAI,EAAE,YAAY,EAAC;;0BAIT,MAAM;2BAAC,eAAe;;0BACtB,MAAM;2BAAC,QAAQ","sourcesContent":["import {Inject, Pipe, PipeTransform} from '@angular/core';\nimport {isString, nameof} from '@jscrpt/common';\n\nimport {FormatProvider} from '../interfaces';\nimport {DATE_API, FORMAT_PROVIDER} from '../misc/tokens';\nimport {DateApi, DateValue} from '../services';\n\n/**\n * Pipe that is used for formatting date\n */\n@Pipe({name: 'dateFormat'})\nexport class DateFormatPipe<TDate = unknown> implements PipeTransform\n{\n //######################### constructors #########################\n constructor(@Inject(FORMAT_PROVIDER) private _formatProvider: FormatProvider,\n @Inject(DATE_API) private _dateApi: DateApi<TDate>)\n {\n }\n\n //######################### public methods - implementation of PipeTransform #########################\n\n /**\n * Formats provided date into formatted string, with default format 'date'\n * @param value - value to be transformed\n */\n public transform(value: TDate|DateValue): string\n /**\n * Formats provided date into formatted string\n * @param value - value to be transformed\n * @param format - predefined format that is used for formatting, one of 'FormatProvider' keys\n */\n public transform(value: TDate|DateValue, format: keyof FormatProvider): string\n /**\n * Formats provided date into formatted string\n * @param value - value to be transformed\n * @param format - predefined format that is used for formatting, one of 'FormatProvider' keys\n * @param parseFormat - format used for parsing string date\n */\n public transform(value: TDate|DateValue, format: keyof FormatProvider, parseFormat: string): string\n /**\n * Formats provided date into formatted string\n * @param value - value to be transformed\n * @param format - format that is used for formatting\n * @param customFormat - indication that custom format is used\n */\n public transform(value: TDate|DateValue, format: string, customFormat: true): string\n /**\n * Formats provided date into formatted string\n * @param value - value to be transformed\n * @param format - format that is used for formatting\n * @param parseFormat - format used for parsing string date\n * @param customFormat - indication that custom format is used\n */\n public transform(value: TDate|DateValue, format: string, parseFormat: string, customFormat: true): string\n public transform(value: TDate|DateValue, format: string|keyof FormatProvider = nameof<FormatProvider>('date'), parseFormatOrCustomFormat?: string|boolean, _customFormat?: boolean): string\n {\n const parseFormat: string|undefined = isString(parseFormatOrCustomFormat) ? parseFormatOrCustomFormat : undefined;\n \n //format provider value\n if(format in this._formatProvider)\n {\n format = (<any>this._formatProvider)[format];\n }\n\n const dateObj = this._dateApi.getValue(value, parseFormat);\n\n if(dateObj.isValid())\n {\n return dateObj.format(this._dateApi.getFormat(format));\n }\n\n return '';\n }\n}"]}
@@ -1 +1 @@
1
- {"version":3,"file":"dateApi.interface.js","sourceRoot":"","sources":["../../../../src/services/dateApi/dateApi.interface.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Date can be represented as formatted string, timestamp or javascript Date object\n */\nexport type DateValue = Date|string|number;\n\n/**\n * Definition of type, that is used for creating instance of DateApiObject\n */\nexport interface DateApiObjectCtor<TObject extends DateApiObject<TDate> = any, TDate = any>\n{\n new (value: TDate|DateValue, format?: string, ...additionalParams: any[]): TObject;\n}\n\n/**\n * Instance of object wrapping TDate, allowing manipulation with it\n */\nexport interface DateApiObject<TDate = any>\n{\n /**\n * Original value that is not changed unless 'updateOriginal' is called\n */\n readonly originalValue: TDate;\n\n /**\n * Instance of date\n */\n readonly value: TDate;\n\n /**\n * Gets indication whether provided instance of date is valid\n */\n isValid(): boolean;\n\n /**\n * Gets indication whether provided instance of date is weekend day\n */\n isWeekend(): boolean;\n\n /**\n * Formats date value\n * @param format - Format token used for creating formatted string\n */\n format(format: string): string;\n\n /**\n * Gets value of date time as unix timestamp\n */\n unixTimestamp(): number;\n\n /**\n * Updates value to start date and time of current decade\n * @returns Itself for fluent API\n */\n startOfDecade(): DateApiObject<TDate>;\n\n /**\n * Updates value to end date and time of current decade\n * @returns Itself for fluent API\n */\n endOfDecade(): DateApiObject<TDate>;\n\n /**\n * Updates value to start date and time of current year\n * @returns Itself for fluent API\n */\n startOfYear(): DateApiObject<TDate>;\n\n /**\n * Updates value to end date and time of current year\n * @returns Itself for fluent API\n */\n endOfYear(): DateApiObject<TDate>;\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 addYears(count?: number): DateApiObject<TDate>;\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 subtractYears(count?: number): DateApiObject<TDate>;\n\n /**\n * Updates value to start date and time of current month\n * @returns Itself for fluent API\n */\n startOfMonth(): DateApiObject<TDate>;\n\n /**\n * Updates value to end date and time of current month\n * @returns Itself for fluent API\n */\n endOfMonth(): DateApiObject<TDate>;\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 addMonths(count?: number): DateApiObject<TDate>;\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 subtractMonths(count?: number): DateApiObject<TDate>;\n\n /**\n * Updates value to start date and time of current week\n * @returns Itself for fluent API\n */\n startOfWeek(): DateApiObject<TDate>;\n\n /**\n * Updates value to end date and time of current week\n * @returns Itself for fluent API\n */\n endOfWeek(): DateApiObject<TDate>;\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 addWeeks(count?: number): DateApiObject<TDate>;\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 subtractWeeks(count?: number): DateApiObject<TDate>;\n\n /**\n * Updates value to start date and time of current day\n * @returns Itself for fluent API\n */\n startOfDay(): DateApiObject<TDate>;\n\n /**\n * Updates value to end date and time of current day\n * @returns Itself for fluent API\n */\n endOfDay(): DateApiObject<TDate>;\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 addDays(count?: number): DateApiObject<TDate>;\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 subtractDays(count?: number): DateApiObject<TDate>;\n\n /**\n * Updates value to start date and time of current hour\n * @returns Itself for fluent API\n */\n startOfHour(): DateApiObject<TDate>;\n\n /**\n * Updates value to end date and time of current hour\n * @returns Itself for fluent API\n */\n endOfHour(): DateApiObject<TDate>;\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 addHours(count?: number): DateApiObject<TDate>;\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 subtractHours(count?: number): DateApiObject<TDate>;\n\n /**\n * Updates value to start date and time of current minute\n * @returns Itself for fluent API\n */\n startOfMinute(): DateApiObject<TDate>;\n\n /**\n * Updates value to end date and time of current minute\n * @returns Itself for fluent API\n */\n endOfMinute(): DateApiObject<TDate>;\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 addMinutes(count?: number): DateApiObject<TDate>;\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 subtractMinutes(count?: number): DateApiObject<TDate>;\n\n /**\n * Gets number of days in month\n */\n daysInMonth(): number;\n\n /**\n * Gets year\n */\n year(): number;\n /**\n * Sets year\n * @param year - Year to be set\n */\n year(year: number): DateApiObject<TDate>;\n /**\n * Gets or sets year\n * @param year - If specified, sets year\n */\n year(year?: number): DateApiObject<TDate>|number;\n\n /**\n * Gets month\n */\n month(): number;\n /**\n * Sets month\n * @param month - Month to be set\n */\n month(month: number): DateApiObject<TDate>;\n /**\n * Gets or sets month\n * @param month - If specified, sets month\n */\n month(month?: number): DateApiObject<TDate>|number;\n\n /**\n * Gets day of month one based\n */\n dayOfMonth(): number;\n /**\n * Sets day of month one based\n * @param day - Day of month to be set\n */\n dayOfMonth(day: number): DateApiObject<TDate>;\n /**\n * Gets or sets day of month one based\n * @param day - If specified, sets day of month\n */\n dayOfMonth(day?: number): DateApiObject<TDate>|number;\n\n /**\n * Gets day of week zero based, first is monday\n */\n dayOfWeek(): number;\n /**\n * Sets day of week zero based, first is monday\n * @param day - Day of week to be set\n */\n dayOfWeek(day: number): DateApiObject<TDate>;\n /**\n * Gets or sets day of week zero based, first is monday\n * @param day - If specified, sets day of week\n */\n dayOfWeek(day?: number): number|DateApiObject<TDate>;\n\n /**\n * Gets hours zero based\n */\n hour(): number;\n /**\n * Sets hours zero\n * @param hour - hour to be set\n */\n hour(hour: number): DateApiObject<TDate>;\n /**\n * Gets or sets hours zero\n * @param hour - If specified, sets hour\n */\n hour(hour?: number): DateApiObject<TDate>|number;\n\n /**\n * Gets minutes zero based\n */\n minute(): number;\n /**\n * Sets minutes zero based\n * @param minute - minutes to be set\n */\n minute(minute: number): DateApiObject<TDate>;\n /**\n * Gets or sets minutes zero based\n * @param minute - If specified, sets minutes\n */\n minute(minute?: number): DateApiObject<TDate>|number;\n\n /**\n * Gets indication whether current value is before 'date'\n * @param date - Date which is this date compared to\n */\n isBefore(date: TDate): boolean;\n\n /**\n * Gets indication whether current value is after 'date'\n * @param date - Date which is this date compared to\n */\n isAfter(date: TDate): boolean;\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 diffDays(date: TDate): number;\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 isSameWeek(date: TDate): boolean;\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 isSameDecade(date: TDate): boolean;\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 isSameYear(date: TDate): boolean;\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 isSameMonth(date: TDate): boolean;\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 isSameDay(date: TDate): boolean;\n\n /**\n * Creates clone of this instance, value and originalValue have same value and are cloned from value\n */\n clone(): DateApiObject<TDate>;\n\n /**\n * Creates clone of this instance, value and originalValue have same value and are cloned from originalValue\n */\n cloneOriginal(): DateApiObject<TDate>;\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 updateOriginal(value?: TDate): DateApiObject<TDate>;\n\n /**\n * Changes value to same value as originalValue\n * @returns Itself for fluent API\n */\n resetOriginal(): DateApiObject<TDate>;\n}\n\n/**\n * Date api abstraction, used for obtaining DateApi wrapper object\n */\nexport interface DateApi<TDate = any, TDateApiObject extends DateApiObject<TDate> = DateApiObject<TDate>>\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 getValue(value: DateValue|TDate, format?: string): TDateApiObject;\n\n /**\n * Gets wrapping object used for manipulation instantiated to current date and time\n */\n now(): TDateApiObject;\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 getFormat(pseudoFormat: string): string;\n\n /**\n * Gets information\n */\n weekStartsOnMonday(): boolean;\n\n /**\n * Gets array of weekday names in short format, order of days is dependent on locale\n */\n weekdaysShort(): string[];\n\n /**\n * Tests whether is value TDate\n * @param value - Value to be tested whether is TDate\n */\n isDate(value: unknown): value is TDate;\n}"]}
1
+ {"version":3,"file":"dateApi.interface.js","sourceRoot":"","sources":["../../../../src/services/dateApi/dateApi.interface.ts"],"names":[],"mappings":"","sourcesContent":["/**\n * Date can be represented as formatted string, timestamp or javascript Date object\n */\nexport type DateValue = Date|string|number;\n\n/**\n * Type that represents date object, either as date api or plain\n */\nexport type DateObject<TDate> = TDate|DateApiObject<TDate>;\n\n/**\n * Definition of type, that is used for creating instance of DateApiObject\n */\nexport interface DateApiObjectCtor<TDate = unknown, TObject extends DateApiObject<TDate> = DateApiObject<TDate>>\n{\n new (value: TDate|DateValue, format?: string, ...additionalParams: any[]): TObject;\n}\n\n/**\n * Instance of object wrapping TDate, allowing manipulation with it\n */\nexport interface DateApiObject<TDate = unknown>\n{\n /**\n * Original value that is not changed unless 'updateOriginal' is called\n */\n readonly originalValue: TDate;\n\n /**\n * Instance of date\n */\n readonly value: TDate;\n\n /**\n * Gets indication whether provided instance of date is valid\n */\n isValid(): boolean;\n\n /**\n * Gets indication whether provided instance of date is weekend day\n */\n isWeekend(): boolean;\n\n /**\n * Formats date value\n * @param format - Format token used for creating formatted string\n */\n format(format: string): string;\n\n /**\n * Formats date value as ISO string representation\n */\n formatISO(): string;\n\n /**\n * Gets value of date time as unix timestamp\n */\n unixTimestamp(): number;\n\n /**\n * Updates value to start date and time of current decade\n * @returns Itself for fluent API\n */\n startOfDecade(): DateApiObject<TDate>;\n\n /**\n * Updates value to end date and time of current decade\n * @returns Itself for fluent API\n */\n endOfDecade(): DateApiObject<TDate>;\n\n /**\n * Updates value to start date and time of current year\n * @returns Itself for fluent API\n */\n startOfYear(): DateApiObject<TDate>;\n\n /**\n * Updates value to end date and time of current year\n * @returns Itself for fluent API\n */\n endOfYear(): DateApiObject<TDate>;\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 addYears(count?: number): DateApiObject<TDate>;\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 subtractYears(count?: number): DateApiObject<TDate>;\n\n /**\n * Updates value to start date and time of current month\n * @returns Itself for fluent API\n */\n startOfMonth(): DateApiObject<TDate>;\n\n /**\n * Updates value to end date and time of current month\n * @returns Itself for fluent API\n */\n endOfMonth(): DateApiObject<TDate>;\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 addMonths(count?: number): DateApiObject<TDate>;\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 subtractMonths(count?: number): DateApiObject<TDate>;\n\n /**\n * Updates value to start date and time of current week\n * @returns Itself for fluent API\n */\n startOfWeek(): DateApiObject<TDate>;\n\n /**\n * Updates value to end date and time of current week\n * @returns Itself for fluent API\n */\n endOfWeek(): DateApiObject<TDate>;\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 addWeeks(count?: number): DateApiObject<TDate>;\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 subtractWeeks(count?: number): DateApiObject<TDate>;\n\n /**\n * Updates value to start date and time of current day\n * @returns Itself for fluent API\n */\n startOfDay(): DateApiObject<TDate>;\n\n /**\n * Updates value to end date and time of current day\n * @returns Itself for fluent API\n */\n endOfDay(): DateApiObject<TDate>;\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 addDays(count?: number): DateApiObject<TDate>;\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 subtractDays(count?: number): DateApiObject<TDate>;\n\n /**\n * Updates value to start date and time of current hour\n * @returns Itself for fluent API\n */\n startOfHour(): DateApiObject<TDate>;\n\n /**\n * Updates value to end date and time of current hour\n * @returns Itself for fluent API\n */\n endOfHour(): DateApiObject<TDate>;\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 addHours(count?: number): DateApiObject<TDate>;\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 subtractHours(count?: number): DateApiObject<TDate>;\n\n /**\n * Updates value to start date and time of current minute\n * @returns Itself for fluent API\n */\n startOfMinute(): DateApiObject<TDate>;\n\n /**\n * Updates value to end date and time of current minute\n * @returns Itself for fluent API\n */\n endOfMinute(): DateApiObject<TDate>;\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 addMinutes(count?: number): DateApiObject<TDate>;\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 subtractMinutes(count?: number): DateApiObject<TDate>;\n\n /**\n * Gets number of days in month\n */\n daysInMonth(): number;\n\n /**\n * Gets year\n */\n year(): number;\n /**\n * Sets year\n * @param year - Year to be set\n */\n year(year: number): DateApiObject<TDate>;\n /**\n * Gets or sets year\n * @param year - If specified, sets year\n */\n year(year?: number): DateApiObject<TDate>|number;\n\n /**\n * Gets month\n */\n month(): number;\n /**\n * Sets month\n * @param month - Month to be set\n */\n month(month: number): DateApiObject<TDate>;\n /**\n * Gets or sets month\n * @param month - If specified, sets month\n */\n month(month?: number): DateApiObject<TDate>|number;\n\n /**\n * Gets day of month one based\n */\n dayOfMonth(): number;\n /**\n * Sets day of month one based\n * @param day - Day of month to be set\n */\n dayOfMonth(day: number): DateApiObject<TDate>;\n /**\n * Gets or sets day of month one based\n * @param day - If specified, sets day of month\n */\n dayOfMonth(day?: number): DateApiObject<TDate>|number;\n\n /**\n * Gets day of week zero based, first is monday\n */\n dayOfWeek(): number;\n /**\n * Sets day of week zero based, first is monday\n * @param day - Day of week to be set\n */\n dayOfWeek(day: number): DateApiObject<TDate>;\n /**\n * Gets or sets day of week zero based, first is monday\n * @param day - If specified, sets day of week\n */\n dayOfWeek(day?: number): number|DateApiObject<TDate>;\n\n /**\n * Gets hours zero based\n */\n hour(): number;\n /**\n * Sets hours zero\n * @param hour - hour to be set\n */\n hour(hour: number): DateApiObject<TDate>;\n /**\n * Gets or sets hours zero\n * @param hour - If specified, sets hour\n */\n hour(hour?: number): DateApiObject<TDate>|number;\n\n /**\n * Gets minutes zero based\n */\n minute(): number;\n /**\n * Sets minutes zero based\n * @param minute - minutes to be set\n */\n minute(minute: number): DateApiObject<TDate>;\n /**\n * Gets or sets minutes zero based\n * @param minute - If specified, sets minutes\n */\n minute(minute?: number): DateApiObject<TDate>|number;\n\n /**\n * Gets indication whether current value is before 'date'\n * @param date - Date which is this date compared to\n */\n isBefore(date: DateObject<TDate>): boolean;\n\n /**\n * Gets indication whether current value is after 'date'\n * @param date - Date which is this date compared to\n */\n isAfter(date: DateObject<TDate>): boolean;\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 diffDays(date: DateObject<TDate>): number;\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 isSameWeek(date: DateObject<TDate>): boolean;\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 isSameDecade(date: DateObject<TDate>): boolean;\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 isSameYear(date: DateObject<TDate>): boolean;\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 isSameMonth(date: DateObject<TDate>): boolean;\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 isSameDay(date: DateObject<TDate>): boolean;\n\n /**\n * Compares whether is date same as provided date\n * @param date - Date which is used for comparison whether is same date time\n */\n isSame(date: DateObject<TDate>): boolean;\n\n /**\n * Creates clone of this instance, value and originalValue have same value and are cloned from value\n */\n clone(): DateApiObject<TDate>;\n\n /**\n * Creates clone of this instance, value and originalValue have same value and are cloned from originalValue\n */\n cloneOriginal(): DateApiObject<TDate>;\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 updateOriginal(value?: DateObject<TDate>): DateApiObject<TDate>;\n\n /**\n * Changes value to same value as originalValue\n * @returns Itself for fluent API\n */\n resetOriginal(): DateApiObject<TDate>;\n}\n\n/**\n * Date api abstraction, used for obtaining DateApi wrapper object\n */\nexport interface DateApi<TDate = unknown, TDateApiObject extends DateApiObject<TDate> = DateApiObject<TDate>>\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 getValue(value: DateValue|TDate, format?: string): TDateApiObject;\n\n /**\n * Gets wrapping object used for manipulation instantiated to current date and time\n */\n now(): TDateApiObject;\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 getFormat(pseudoFormat: string): string;\n\n /**\n * Gets information\n */\n weekStartsOnMonday(): boolean;\n\n /**\n * Gets array of weekday names in short format, order of days is dependent on locale\n */\n weekdaysShort(): string[];\n\n /**\n * Tests whether is value TDate\n * @param value - Value to be tested whether is TDate\n */\n isDate(value: unknown): value is TDate;\n}"]}
@@ -14,9 +14,9 @@ export class DatePositionParserService {
14
14
  return new DefaultDatePositionParser(format);
15
15
  }
16
16
  }
17
- DatePositionParserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DatePositionParserService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18
- DatePositionParserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DatePositionParserService, providedIn: 'root' });
19
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: DatePositionParserService, decorators: [{
17
+ DatePositionParserService.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DatePositionParserService, deps: [], target: i0.ɵɵFactoryTarget.Injectable });
18
+ DatePositionParserService.ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DatePositionParserService, providedIn: 'root' });
19
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DatePositionParserService, decorators: [{
20
20
  type: Injectable,
21
21
  args: [{ providedIn: 'root' }]
22
22
  }] });
@@ -55,6 +55,7 @@ export class DefaultDatePositionParser {
55
55
  //non strict format
56
56
  if (this._hasSeparator) {
57
57
  let useNext = false;
58
+ // eslint-disable-next-line no-constant-condition
58
59
  while (true) {
59
60
  if (cursorPosition == date.length) {
60
61
  return null;
@@ -95,6 +96,7 @@ export class DefaultDatePositionParser {
95
96
  //non strict format
96
97
  if (this._hasSeparator) {
97
98
  let useNext = false;
99
+ // eslint-disable-next-line no-constant-condition
98
100
  while (true) {
99
101
  if (cursorPosition < 0) {
100
102
  return null;