@anglr/datetime 7.0.0-beta.20230815120707 → 7.0.0-beta.20230817115956

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 (425) hide show
  1. package/changelog.md +40 -9
  2. package/date-fns/package.json +3 -4
  3. package/{es2020 → es2022}/date-fns/src/services/dateFnsDateApi.service.js +31 -17
  4. package/es2022/date-fns/src/services/dateFnsDateApi.service.js.map +1 -0
  5. package/{es2020 → es2022}/moment/src/services/momentDateApi.service.js +20 -8
  6. package/es2022/moment/src/services/momentDateApi.service.js.map +1 -0
  7. package/{es2015/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js → es2022/src/directives/buttonDateTimeInput/buttonDateTimeInput.directive.js} +56 -73
  8. package/es2022/src/directives/buttonDateTimeInput/buttonDateTimeInput.directive.js.map +1 -0
  9. package/{es2015 → es2022}/src/directives/datePickerInput/datePickerInput.directive.js +5 -4
  10. package/es2022/src/directives/datePickerInput/datePickerInput.directive.js.map +1 -0
  11. package/{es2020 → es2022}/src/directives/dateTimeInputHandler/dateTimeInputHandler.directive.js +29 -18
  12. package/{es2015 → es2022}/src/directives/dateTimeInputHandler/dateTimeInputHandler.directive.js.map +1 -1
  13. package/{es2020 → es2022}/src/directives/dateTimePickerInput/dateTimePickerInput.directive.js +5 -4
  14. package/es2022/src/directives/dateTimePickerInput/dateTimePickerInput.directive.js.map +1 -0
  15. package/{es2020 → es2022}/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js +5 -4
  16. package/es2022/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js.map +1 -0
  17. package/{es2020 → es2022}/src/directives/simpleDateTimeInputHandler/simpleDateTimeInputHandler.directive.js +9 -4
  18. package/es2022/src/directives/simpleDateTimeInputHandler/simpleDateTimeInputHandler.directive.js.map +1 -0
  19. package/{es2020 → es2022}/src/directives/simpleDateTimePickerInput/simpleDateTimePickerInput.directive.js +5 -4
  20. package/es2022/src/directives/simpleDateTimePickerInput/simpleDateTimePickerInput.directive.js.map +1 -0
  21. package/{es2020 → es2022}/src/directives/withNow/withNow.directive.js +10 -9
  22. package/es2022/src/directives/withNow/withNow.directive.js.map +1 -0
  23. package/{es2015 → es2022}/src/directives/withTime/withTime.directive.js +5 -4
  24. package/es2022/src/directives/withTime/withTime.directive.js.map +1 -0
  25. package/{es2020 → es2022}/src/directives/withToday/withToday.directive.js +10 -9
  26. package/es2022/src/directives/withToday/withToday.directive.js.map +1 -0
  27. package/{es2020 → es2022}/src/misc/validators.js +2 -2
  28. package/es2022/src/misc/validators.js.map +1 -0
  29. package/{es2020 → es2022}/src/modules/calendar/components/monthCalendar/monthCalendar.component.js +65 -39
  30. package/es2022/src/modules/calendar/components/monthCalendar/monthCalendar.component.js.map +1 -0
  31. package/{es2020 → es2022}/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js +6 -4
  32. package/es2022/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js.map +1 -0
  33. package/{es2015 → es2022}/src/modules/calendar/modules/monthCalendar.module.js +8 -7
  34. package/es2022/src/modules/calendar/modules/monthCalendar.module.js.map +1 -0
  35. package/{es2020 → es2022}/src/modules/calendar/services/eventParser/eventParser.service.js +6 -4
  36. package/es2022/src/modules/calendar/services/eventParser/eventParser.service.js.map +1 -0
  37. package/es2022/src/modules/datePipes.module.js +29 -0
  38. package/es2022/src/modules/datePipes.module.js.map +1 -0
  39. package/{es2020 → es2022}/src/modules/dateTime/directives/dateTime/dateTime.directive.js +69 -41
  40. package/es2022/src/modules/dateTime/directives/dateTime/dateTime.directive.js.map +1 -0
  41. package/{es2015 → es2022}/src/modules/dateTime/directives/dateTimeBase.js +27 -22
  42. package/es2022/src/modules/dateTime/directives/dateTimeBase.js.map +1 -0
  43. package/{es2020 → es2022}/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js +17 -15
  44. package/es2022/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js.map +1 -0
  45. package/{es2020 → es2022}/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js +36 -27
  46. package/es2022/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js.map +1 -0
  47. package/{es2015 → es2022}/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js +17 -15
  48. package/es2022/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js.map +1 -0
  49. package/{es2020 → es2022}/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js +17 -15
  50. package/es2022/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js.map +1 -0
  51. package/{es2020 → es2022}/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js +17 -15
  52. package/es2022/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js.map +1 -0
  53. package/{es2015 → es2022}/src/modules/dateTime/modules/dateTime.module.js +16 -15
  54. package/es2022/src/modules/dateTime/modules/dateTime.module.js.map +1 -0
  55. package/{es2020 → es2022}/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.js +58 -39
  56. package/es2022/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.js.map +1 -0
  57. package/{es2020 → es2022}/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js +61 -24
  58. package/es2022/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js.map +1 -0
  59. package/{es2020 → es2022}/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js +15 -14
  60. package/es2022/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js.map +1 -0
  61. package/{es2020 → es2022}/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js +6 -4
  62. package/es2022/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js.map +1 -0
  63. package/{es2020 → es2022}/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js +24 -27
  64. package/es2022/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js.map +1 -0
  65. package/{es2020 → es2022}/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js +10 -12
  66. package/es2022/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js.map +1 -0
  67. package/{es2020 → es2022}/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js +52 -21
  68. package/es2022/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js.map +1 -0
  69. package/{es2020 → es2022}/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.interface.js.map +1 -1
  70. package/{es2020 → es2022}/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.js +57 -41
  71. package/es2022/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.js.map +1 -0
  72. package/es2022/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.js +37 -0
  73. package/es2022/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.js.map +1 -0
  74. package/{es2015 → es2022}/src/modules/dateTimePicker/modules/dateTimePicker.module.js +7 -6
  75. package/es2022/src/modules/dateTimePicker/modules/dateTimePicker.module.js.map +1 -0
  76. package/{es2015 → es2022}/src/pipes/dateConvert.pipe.js +6 -4
  77. package/es2022/src/pipes/dateConvert.pipe.js.map +1 -0
  78. package/{es2015 → es2022}/src/pipes/dateFormat.pipe.js +7 -4
  79. package/es2022/src/pipes/dateFormat.pipe.js.map +1 -0
  80. package/{es2020 → es2022}/src/services/datePositionParser/datePositionParser.service.js +19 -17
  81. package/es2022/src/services/datePositionParser/datePositionParser.service.js.map +1 -0
  82. package/{es2020 → es2022}/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js +11 -4
  83. package/es2022/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js.map +1 -0
  84. package/{es2020 → es2022}/src/services/dateValueProvider/dateValueProvider.service.js +6 -4
  85. package/es2022/src/services/dateValueProvider/dateValueProvider.service.js.map +1 -0
  86. package/moment/package.json +3 -4
  87. package/package.json +50 -58
  88. package/src/directives/buttonDateTimeInput/buttonDateTimeInput.directive.d.ts +67 -0
  89. package/src/directives/buttonDateTimeInput/buttonDateTimeInput.directive.d.ts.map +1 -0
  90. package/src/misc/types.d.ts +2 -2
  91. package/src/misc/types.d.ts.map +1 -1
  92. package/src/modules/calendar/components/monthCalendar/monthCalendar.component.d.ts +1 -1
  93. package/src/modules/dateTime/directives/dateTime/dateTime.directive.d.ts +1 -1
  94. package/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.d.ts +1 -1
  95. package/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.d.ts +1 -1
  96. package/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.d.ts.map +1 -1
  97. package/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.interface.d.ts +6 -0
  98. package/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.interface.d.ts.map +1 -1
  99. package/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.d.ts +1 -1
  100. package/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.d.ts +1 -1
  101. package/src/services/dateApi/dateApi.interface.d.ts +2 -2
  102. package/src/services/dateApi/dateApi.interface.d.ts.map +1 -1
  103. package/version.bak +1 -1
  104. package/es2015/date-fns/src/services/dateFnsDateApi.service.js +0 -590
  105. package/es2015/date-fns/src/services/dateFnsDateApi.service.js.map +0 -1
  106. package/es2015/moment/src/services/momentDateApi.service.js +0 -547
  107. package/es2015/moment/src/services/momentDateApi.service.js.map +0 -1
  108. package/es2015/src/directives/datePickerInput/datePickerInput.directive.js.map +0 -1
  109. package/es2015/src/directives/dateTimeInputHandler/dateTimeInputHandler.directive.js +0 -325
  110. package/es2015/src/directives/dateTimePickerInput/dateTimePickerInput.directive.js +0 -29
  111. package/es2015/src/directives/dateTimePickerInput/dateTimePickerInput.directive.js.map +0 -1
  112. package/es2015/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js +0 -37
  113. package/es2015/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js.map +0 -1
  114. package/es2015/src/directives/simpleDateTimeInputHandler/simpleDateTimeInputHandler.directive.js +0 -137
  115. package/es2015/src/directives/simpleDateTimeInputHandler/simpleDateTimeInputHandler.directive.js.map +0 -1
  116. package/es2015/src/directives/simpleDateTimePickerInput/simpleDateTimePickerInput.directive.js +0 -29
  117. package/es2015/src/directives/simpleDateTimePickerInput/simpleDateTimePickerInput.directive.js.map +0 -1
  118. package/es2015/src/directives/withNow/withNow.directive.js +0 -44
  119. package/es2015/src/directives/withNow/withNow.directive.js.map +0 -1
  120. package/es2015/src/directives/withTime/withTime.directive.js.map +0 -1
  121. package/es2015/src/directives/withToday/withToday.directive.js +0 -44
  122. package/es2015/src/directives/withToday/withToday.directive.js.map +0 -1
  123. package/es2015/src/misc/utils.js +0 -164
  124. package/es2015/src/misc/utils.js.map +0 -1
  125. package/es2015/src/misc/validators.js +0 -142
  126. package/es2015/src/misc/validators.js.map +0 -1
  127. package/es2015/src/modules/calendar/components/monthCalendar/monthCalendar.component.js +0 -198
  128. package/es2015/src/modules/calendar/components/monthCalendar/monthCalendar.component.js.map +0 -1
  129. package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js +0 -27
  130. package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js.map +0 -1
  131. package/es2015/src/modules/calendar/modules/monthCalendar.module.js.map +0 -1
  132. package/es2015/src/modules/calendar/services/eventParser/eventParser.service.js +0 -75
  133. package/es2015/src/modules/calendar/services/eventParser/eventParser.service.js.map +0 -1
  134. package/es2015/src/modules/datePipes.module.js +0 -28
  135. package/es2015/src/modules/datePipes.module.js.map +0 -1
  136. package/es2015/src/modules/dateTime/directives/dateTime/dateTime.directive.js +0 -254
  137. package/es2015/src/modules/dateTime/directives/dateTime/dateTime.directive.js.map +0 -1
  138. package/es2015/src/modules/dateTime/directives/dateTimeBase.js.map +0 -1
  139. package/es2015/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js +0 -77
  140. package/es2015/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js.map +0 -1
  141. package/es2015/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js.map +0 -1
  142. package/es2015/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js.map +0 -1
  143. package/es2015/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js +0 -70
  144. package/es2015/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js.map +0 -1
  145. package/es2015/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js +0 -63
  146. package/es2015/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js.map +0 -1
  147. package/es2015/src/modules/dateTime/modules/dateTime.module.js.map +0 -1
  148. package/es2015/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.js +0 -186
  149. package/es2015/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.js.map +0 -1
  150. package/es2015/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js +0 -299
  151. package/es2015/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js.map +0 -1
  152. package/es2015/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js +0 -151
  153. package/es2015/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js.map +0 -1
  154. package/es2015/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js +0 -123
  155. package/es2015/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js.map +0 -1
  156. package/es2015/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js +0 -137
  157. package/es2015/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js.map +0 -1
  158. package/es2015/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js +0 -126
  159. package/es2015/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js.map +0 -1
  160. package/es2015/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js +0 -261
  161. package/es2015/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js.map +0 -1
  162. package/es2015/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.interface.js.map +0 -1
  163. package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.js +0 -222
  164. package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.js.map +0 -1
  165. package/es2015/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.js +0 -30
  166. package/es2015/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.js.map +0 -1
  167. package/es2015/src/modules/dateTimePicker/modules/dateTimePicker.module.js.map +0 -1
  168. package/es2015/src/pipes/dateConvert.pipe.js.map +0 -1
  169. package/es2015/src/pipes/dateFormat.pipe.js.map +0 -1
  170. package/es2015/src/services/datePositionParser/datePositionParser.service.js +0 -243
  171. package/es2015/src/services/datePositionParser/datePositionParser.service.js.map +0 -1
  172. package/es2015/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js +0 -81
  173. package/es2015/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js.map +0 -1
  174. package/es2015/src/services/dateValueProvider/dateValueProvider.service.js +0 -69
  175. package/es2015/src/services/dateValueProvider/dateValueProvider.service.js.map +0 -1
  176. package/es2020/date-fns/src/index.js +0 -4
  177. package/es2020/date-fns/src/index.js.map +0 -1
  178. package/es2020/date-fns/src/misc/tokens.js +0 -31
  179. package/es2020/date-fns/src/misc/tokens.js.map +0 -1
  180. package/es2020/date-fns/src/services/dateFnsDateApi.service.js.map +0 -1
  181. package/es2020/date-fns/src/services/dateFnsLocale.service.js +0 -2
  182. package/es2020/date-fns/src/services/dateFnsLocale.service.js.map +0 -1
  183. package/es2020/moment/src/index.js +0 -3
  184. package/es2020/moment/src/index.js.map +0 -1
  185. package/es2020/moment/src/misc/tokens.js +0 -26
  186. package/es2020/moment/src/misc/tokens.js.map +0 -1
  187. package/es2020/moment/src/services/momentDateApi.service.js.map +0 -1
  188. package/es2020/src/directives/datePickerInput/datePickerInput.directive.js +0 -37
  189. package/es2020/src/directives/datePickerInput/datePickerInput.directive.js.map +0 -1
  190. package/es2020/src/directives/dateTimeInputHandler/dateTimeInputHandler.directive.js.map +0 -1
  191. package/es2020/src/directives/dateTimePickerInput/dateTimePickerInput.directive.js.map +0 -1
  192. package/es2020/src/directives/index.js +0 -10
  193. package/es2020/src/directives/index.js.map +0 -1
  194. package/es2020/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js.map +0 -1
  195. package/es2020/src/directives/simpleDateTimeInputHandler/simpleDateTimeInputHandler.directive.js.map +0 -1
  196. package/es2020/src/directives/simpleDateTimePickerInput/simpleDateTimePickerInput.directive.js.map +0 -1
  197. package/es2020/src/directives/withNow/withNow.directive.js.map +0 -1
  198. package/es2020/src/directives/withTime/withTime.directive.js +0 -32
  199. package/es2020/src/directives/withTime/withTime.directive.js.map +0 -1
  200. package/es2020/src/directives/withToday/withToday.directive.js.map +0 -1
  201. package/es2020/src/index.js +0 -13
  202. package/es2020/src/index.js.map +0 -1
  203. package/es2020/src/interfaces/dateTime/datetime.interface.js +0 -2
  204. package/es2020/src/interfaces/dateTime/datetime.interface.js.map +0 -1
  205. package/es2020/src/interfaces/dateTimeInput/dateTimeInput.interface.js +0 -2
  206. package/es2020/src/interfaces/dateTimeInput/dateTimeInput.interface.js.map +0 -1
  207. package/es2020/src/interfaces/formatProvider/formatProvider.interface.js +0 -2
  208. package/es2020/src/interfaces/formatProvider/formatProvider.interface.js.map +0 -1
  209. package/es2020/src/interfaces/index.js +0 -4
  210. package/es2020/src/interfaces/index.js.map +0 -1
  211. package/es2020/src/legacy/picker/components/picker/picker.component.animations.js +0 -94
  212. package/es2020/src/legacy/picker/components/picker/picker.component.animations.js.map +0 -1
  213. package/es2020/src/misc/constants.js +0 -33
  214. package/es2020/src/misc/constants.js.map +0 -1
  215. package/es2020/src/misc/enums.js +0 -23
  216. package/es2020/src/misc/enums.js.map +0 -1
  217. package/es2020/src/misc/tokens.js +0 -38
  218. package/es2020/src/misc/tokens.js.map +0 -1
  219. package/es2020/src/misc/types.js +0 -2
  220. package/es2020/src/misc/types.js.map +0 -1
  221. package/es2020/src/misc/validators.js.map +0 -1
  222. package/es2020/src/modules/calendar/components/index.js +0 -2
  223. package/es2020/src/modules/calendar/components/index.js.map +0 -1
  224. package/es2020/src/modules/calendar/components/monthCalendar/monthCalendar.component.js.map +0 -1
  225. package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js +0 -2
  226. package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js.map +0 -1
  227. package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js.map +0 -1
  228. package/es2020/src/modules/calendar/directives/index.js +0 -3
  229. package/es2020/src/modules/calendar/directives/index.js.map +0 -1
  230. package/es2020/src/modules/calendar/index.js +0 -7
  231. package/es2020/src/modules/calendar/index.js.map +0 -1
  232. package/es2020/src/modules/calendar/interfaces/calendarDayData.interface.js +0 -2
  233. package/es2020/src/modules/calendar/interfaces/calendarDayData.interface.js.map +0 -1
  234. package/es2020/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js +0 -2
  235. package/es2020/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js.map +0 -1
  236. package/es2020/src/modules/calendar/interfaces/eventData.interface.js +0 -2
  237. package/es2020/src/modules/calendar/interfaces/eventData.interface.js.map +0 -1
  238. package/es2020/src/modules/calendar/interfaces/index.js +0 -4
  239. package/es2020/src/modules/calendar/interfaces/index.js.map +0 -1
  240. package/es2020/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js +0 -27
  241. package/es2020/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js.map +0 -1
  242. package/es2020/src/modules/calendar/misc/enums/index.js +0 -3
  243. package/es2020/src/modules/calendar/misc/enums/index.js.map +0 -1
  244. package/es2020/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js +0 -19
  245. package/es2020/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js.map +0 -1
  246. package/es2020/src/modules/calendar/misc/index.js +0 -2
  247. package/es2020/src/modules/calendar/misc/index.js.map +0 -1
  248. package/es2020/src/modules/calendar/modules/index.js +0 -2
  249. package/es2020/src/modules/calendar/modules/index.js.map +0 -1
  250. package/es2020/src/modules/calendar/modules/monthCalendar.module.js +0 -32
  251. package/es2020/src/modules/calendar/modules/monthCalendar.module.js.map +0 -1
  252. package/es2020/src/modules/calendar/services/eventParser/eventParser.service.js.map +0 -1
  253. package/es2020/src/modules/calendar/services/index.js +0 -2
  254. package/es2020/src/modules/calendar/services/index.js.map +0 -1
  255. package/es2020/src/modules/datePipes.module.js +0 -28
  256. package/es2020/src/modules/datePipes.module.js.map +0 -1
  257. package/es2020/src/modules/dateTime/directives/dateTime/dateTime.directive.js.map +0 -1
  258. package/es2020/src/modules/dateTime/directives/dateTimeBase.js +0 -61
  259. package/es2020/src/modules/dateTime/directives/dateTimeBase.js.map +0 -1
  260. package/es2020/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js.map +0 -1
  261. package/es2020/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js.map +0 -1
  262. package/es2020/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js +0 -70
  263. package/es2020/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js.map +0 -1
  264. package/es2020/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js.map +0 -1
  265. package/es2020/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js.map +0 -1
  266. package/es2020/src/modules/dateTime/directives/index.js +0 -8
  267. package/es2020/src/modules/dateTime/directives/index.js.map +0 -1
  268. package/es2020/src/modules/dateTime/index.js +0 -3
  269. package/es2020/src/modules/dateTime/index.js.map +0 -1
  270. package/es2020/src/modules/dateTime/modules/dateTime.module.js +0 -43
  271. package/es2020/src/modules/dateTime/modules/dateTime.module.js.map +0 -1
  272. package/es2020/src/modules/dateTime/modules/index.js +0 -2
  273. package/es2020/src/modules/dateTime/modules/index.js.map +0 -1
  274. package/es2020/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.js.map +0 -1
  275. package/es2020/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js.map +0 -1
  276. package/es2020/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.interface.js +0 -2
  277. package/es2020/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.interface.js.map +0 -1
  278. package/es2020/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js.map +0 -1
  279. package/es2020/src/modules/dateTimePicker/components/index.js +0 -9
  280. package/es2020/src/modules/dateTimePicker/components/index.js.map +0 -1
  281. package/es2020/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js.map +0 -1
  282. package/es2020/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js.map +0 -1
  283. package/es2020/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.js +0 -347
  284. package/es2020/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.js.map +0 -1
  285. package/es2020/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js.map +0 -1
  286. package/es2020/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js.map +0 -1
  287. package/es2020/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.interface.js +0 -2
  288. package/es2020/src/modules/dateTimePicker/directives/index.js +0 -6
  289. package/es2020/src/modules/dateTimePicker/directives/index.js.map +0 -1
  290. package/es2020/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.js.map +0 -1
  291. package/es2020/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js +0 -2
  292. package/es2020/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js.map +0 -1
  293. package/es2020/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.js +0 -30
  294. package/es2020/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.js.map +0 -1
  295. package/es2020/src/modules/dateTimePicker/index.js +0 -6
  296. package/es2020/src/modules/dateTimePicker/index.js.map +0 -1
  297. package/es2020/src/modules/dateTimePicker/interfaces/dateTimePicker/dateTimePicker.interface.js +0 -2
  298. package/es2020/src/modules/dateTimePicker/interfaces/dateTimePicker/dateTimePicker.interface.js.map +0 -1
  299. package/es2020/src/modules/dateTimePicker/interfaces/index.js +0 -3
  300. package/es2020/src/modules/dateTimePicker/interfaces/index.js.map +0 -1
  301. package/es2020/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js +0 -2
  302. package/es2020/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js.map +0 -1
  303. package/es2020/src/modules/dateTimePicker/misc/tokens.js +0 -10
  304. package/es2020/src/modules/dateTimePicker/misc/tokens.js.map +0 -1
  305. package/es2020/src/modules/dateTimePicker/modules/dateTimePicker.module.js +0 -29
  306. package/es2020/src/modules/dateTimePicker/modules/dateTimePicker.module.js.map +0 -1
  307. package/es2020/src/modules/dateTimePicker/modules/index.js +0 -2
  308. package/es2020/src/modules/dateTimePicker/modules/index.js.map +0 -1
  309. package/es2020/src/modules/index.js +0 -5
  310. package/es2020/src/modules/index.js.map +0 -1
  311. package/es2020/src/pipes/dateConvert.pipe.js +0 -35
  312. package/es2020/src/pipes/dateConvert.pipe.js.map +0 -1
  313. package/es2020/src/pipes/dateFormat.pipe.js +0 -39
  314. package/es2020/src/pipes/dateFormat.pipe.js.map +0 -1
  315. package/es2020/src/services/dateApi/dateApi.interface.js +0 -2
  316. package/es2020/src/services/dateApi/dateApi.interface.js.map +0 -1
  317. package/es2020/src/services/datePositionParser/datePositionParser.interface.js +0 -2
  318. package/es2020/src/services/datePositionParser/datePositionParser.interface.js.map +0 -1
  319. package/es2020/src/services/datePositionParser/datePositionParser.service.js.map +0 -1
  320. package/es2020/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js.map +0 -1
  321. package/es2020/src/services/dateValueProvider/dateValueProvider.service.js.map +0 -1
  322. package/es2020/src/services/index.js +0 -6
  323. package/es2020/src/services/index.js.map +0 -1
  324. package/src/dark.scss +0 -38
  325. package/src/default.scss +0 -33
  326. package/src/theme.scss +0 -80
  327. /package/{es2015 → es2022}/date-fns/src/index.js +0 -0
  328. /package/{es2015 → es2022}/date-fns/src/index.js.map +0 -0
  329. /package/{es2015 → es2022}/date-fns/src/misc/tokens.js +0 -0
  330. /package/{es2015 → es2022}/date-fns/src/misc/tokens.js.map +0 -0
  331. /package/{es2015 → es2022}/date-fns/src/services/dateFnsLocale.service.js +0 -0
  332. /package/{es2015 → es2022}/date-fns/src/services/dateFnsLocale.service.js.map +0 -0
  333. /package/{es2015 → es2022}/moment/src/index.js +0 -0
  334. /package/{es2015 → es2022}/moment/src/index.js.map +0 -0
  335. /package/{es2015 → es2022}/moment/src/misc/tokens.js +0 -0
  336. /package/{es2015 → es2022}/moment/src/misc/tokens.js.map +0 -0
  337. /package/{es2015 → es2022}/src/directives/index.js +0 -0
  338. /package/{es2015 → es2022}/src/directives/index.js.map +0 -0
  339. /package/{es2015 → es2022}/src/index.js +0 -0
  340. /package/{es2015 → es2022}/src/index.js.map +0 -0
  341. /package/{es2015 → es2022}/src/interfaces/dateTime/datetime.interface.js +0 -0
  342. /package/{es2015 → es2022}/src/interfaces/dateTime/datetime.interface.js.map +0 -0
  343. /package/{es2015 → es2022}/src/interfaces/dateTimeInput/dateTimeInput.interface.js +0 -0
  344. /package/{es2015 → es2022}/src/interfaces/dateTimeInput/dateTimeInput.interface.js.map +0 -0
  345. /package/{es2015 → es2022}/src/interfaces/formatProvider/formatProvider.interface.js +0 -0
  346. /package/{es2015 → es2022}/src/interfaces/formatProvider/formatProvider.interface.js.map +0 -0
  347. /package/{es2015 → es2022}/src/interfaces/index.js +0 -0
  348. /package/{es2015 → es2022}/src/interfaces/index.js.map +0 -0
  349. /package/{es2015 → es2022}/src/legacy/picker/components/picker/picker.component.animations.js +0 -0
  350. /package/{es2015 → es2022}/src/legacy/picker/components/picker/picker.component.animations.js.map +0 -0
  351. /package/{es2015 → es2022}/src/misc/constants.js +0 -0
  352. /package/{es2015 → es2022}/src/misc/constants.js.map +0 -0
  353. /package/{es2015 → es2022}/src/misc/enums.js +0 -0
  354. /package/{es2015 → es2022}/src/misc/enums.js.map +0 -0
  355. /package/{es2015 → es2022}/src/misc/tokens.js +0 -0
  356. /package/{es2015 → es2022}/src/misc/tokens.js.map +0 -0
  357. /package/{es2015 → es2022}/src/misc/types.js +0 -0
  358. /package/{es2015 → es2022}/src/misc/types.js.map +0 -0
  359. /package/{es2020 → es2022}/src/misc/utils.js +0 -0
  360. /package/{es2020 → es2022}/src/misc/utils.js.map +0 -0
  361. /package/{es2015 → es2022}/src/modules/calendar/components/index.js +0 -0
  362. /package/{es2015 → es2022}/src/modules/calendar/components/index.js.map +0 -0
  363. /package/{es2015 → es2022}/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js +0 -0
  364. /package/{es2015 → es2022}/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js.map +0 -0
  365. /package/{es2015 → es2022}/src/modules/calendar/directives/index.js +0 -0
  366. /package/{es2015 → es2022}/src/modules/calendar/directives/index.js.map +0 -0
  367. /package/{es2015 → es2022}/src/modules/calendar/index.js +0 -0
  368. /package/{es2015 → es2022}/src/modules/calendar/index.js.map +0 -0
  369. /package/{es2015 → es2022}/src/modules/calendar/interfaces/calendarDayData.interface.js +0 -0
  370. /package/{es2015 → es2022}/src/modules/calendar/interfaces/calendarDayData.interface.js.map +0 -0
  371. /package/{es2015 → es2022}/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js +0 -0
  372. /package/{es2015 → es2022}/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js.map +0 -0
  373. /package/{es2015 → es2022}/src/modules/calendar/interfaces/eventData.interface.js +0 -0
  374. /package/{es2015 → es2022}/src/modules/calendar/interfaces/eventData.interface.js.map +0 -0
  375. /package/{es2015 → es2022}/src/modules/calendar/interfaces/index.js +0 -0
  376. /package/{es2015 → es2022}/src/modules/calendar/interfaces/index.js.map +0 -0
  377. /package/{es2015 → es2022}/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js +0 -0
  378. /package/{es2015 → es2022}/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js.map +0 -0
  379. /package/{es2015 → es2022}/src/modules/calendar/misc/enums/index.js +0 -0
  380. /package/{es2015 → es2022}/src/modules/calendar/misc/enums/index.js.map +0 -0
  381. /package/{es2015 → es2022}/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js +0 -0
  382. /package/{es2015 → es2022}/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js.map +0 -0
  383. /package/{es2015 → es2022}/src/modules/calendar/misc/index.js +0 -0
  384. /package/{es2015 → es2022}/src/modules/calendar/misc/index.js.map +0 -0
  385. /package/{es2015 → es2022}/src/modules/calendar/modules/index.js +0 -0
  386. /package/{es2015 → es2022}/src/modules/calendar/modules/index.js.map +0 -0
  387. /package/{es2015 → es2022}/src/modules/calendar/services/index.js +0 -0
  388. /package/{es2015 → es2022}/src/modules/calendar/services/index.js.map +0 -0
  389. /package/{es2015 → es2022}/src/modules/dateTime/directives/index.js +0 -0
  390. /package/{es2015 → es2022}/src/modules/dateTime/directives/index.js.map +0 -0
  391. /package/{es2015 → es2022}/src/modules/dateTime/index.js +0 -0
  392. /package/{es2015 → es2022}/src/modules/dateTime/index.js.map +0 -0
  393. /package/{es2015 → es2022}/src/modules/dateTime/modules/index.js +0 -0
  394. /package/{es2015 → es2022}/src/modules/dateTime/modules/index.js.map +0 -0
  395. /package/{es2015 → es2022}/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.interface.js +0 -0
  396. /package/{es2015 → es2022}/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.interface.js.map +0 -0
  397. /package/{es2015 → es2022}/src/modules/dateTimePicker/components/index.js +0 -0
  398. /package/{es2015 → es2022}/src/modules/dateTimePicker/components/index.js.map +0 -0
  399. /package/{es2015 → es2022}/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.js +0 -0
  400. /package/{es2015 → es2022}/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.js.map +0 -0
  401. /package/{es2015 → es2022}/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.interface.js +0 -0
  402. /package/{es2015 → es2022}/src/modules/dateTimePicker/directives/index.js +0 -0
  403. /package/{es2015 → es2022}/src/modules/dateTimePicker/directives/index.js.map +0 -0
  404. /package/{es2015 → es2022}/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js +0 -0
  405. /package/{es2015 → es2022}/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js.map +0 -0
  406. /package/{es2015 → es2022}/src/modules/dateTimePicker/index.js +0 -0
  407. /package/{es2015 → es2022}/src/modules/dateTimePicker/index.js.map +0 -0
  408. /package/{es2015 → es2022}/src/modules/dateTimePicker/interfaces/dateTimePicker/dateTimePicker.interface.js +0 -0
  409. /package/{es2015 → es2022}/src/modules/dateTimePicker/interfaces/dateTimePicker/dateTimePicker.interface.js.map +0 -0
  410. /package/{es2015 → es2022}/src/modules/dateTimePicker/interfaces/index.js +0 -0
  411. /package/{es2015 → es2022}/src/modules/dateTimePicker/interfaces/index.js.map +0 -0
  412. /package/{es2015 → es2022}/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js +0 -0
  413. /package/{es2015 → es2022}/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js.map +0 -0
  414. /package/{es2015 → es2022}/src/modules/dateTimePicker/misc/tokens.js +0 -0
  415. /package/{es2015 → es2022}/src/modules/dateTimePicker/misc/tokens.js.map +0 -0
  416. /package/{es2015 → es2022}/src/modules/dateTimePicker/modules/index.js +0 -0
  417. /package/{es2015 → es2022}/src/modules/dateTimePicker/modules/index.js.map +0 -0
  418. /package/{es2015 → es2022}/src/modules/index.js +0 -0
  419. /package/{es2015 → es2022}/src/modules/index.js.map +0 -0
  420. /package/{es2015 → es2022}/src/services/dateApi/dateApi.interface.js +0 -0
  421. /package/{es2015 → es2022}/src/services/dateApi/dateApi.interface.js.map +0 -0
  422. /package/{es2015 → es2022}/src/services/datePositionParser/datePositionParser.interface.js +0 -0
  423. /package/{es2015 → es2022}/src/services/datePositionParser/datePositionParser.interface.js.map +0 -0
  424. /package/{es2015 → es2022}/src/services/index.js +0 -0
  425. /package/{es2015 → es2022}/src/services/index.js.map +0 -0
@@ -1 +0,0 @@
1
- {"version":3,"file":"dateTimePicker.component.js","sourceRoot":"","sources":["../../../../../../src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.ts","../../../../../../src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,SAAS,EAAE,gBAAgB,EAAQ,YAAY,EAAE,MAAM,EAAE,KAAK,EAA4B,MAAM,EAAE,QAAQ,EAAkC,MAAM,eAAe,CAAC;AAC9M,OAAO,EAAW,QAAQ,EAAC,MAAM,eAAe,CAAC;AACjD,OAAO,EAAC,MAAM,EAAE,OAAO,EAAE,MAAM,EAAC,MAAM,gBAAgB,CAAC;AACvD,OAAO,EAAC,YAAY,EAAC,MAAM,MAAM,CAAC;AAIlC,OAAO,EAAC,wBAAwB,EAAC,MAAM,mBAAmB,CAAC;AAC3D,OAAO,EAAC,oBAAoB,EAAC,MAAM,kCAAkC,CAAC;AACtE,OAAO,EAAC,sBAAsB,EAAC,MAAM,sCAAsC,CAAC;AAE5E,OAAO,EAAC,qBAAqB,EAAC,MAAM,oCAAoC,CAAC;AAEzE,OAAO,EAAC,cAAc,EAAE,aAAa,EAAC,MAAM,wBAAwB,CAAC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;gBASnD,KAAK;sBADf,KAAK;gBAgBK,OAAO;sBADjB,KAAK;gBAkBC,WAAW;sBADjB,MAAM","sourcesContent":["import {Component, ChangeDetectionStrategy, ViewChild, ViewContainerRef, Type, EventEmitter, Output, Input, OnChanges, SimpleChanges, Inject, Optional, OnDestroy, ComponentRef, OnInit} from '@angular/core';\nimport {Position, POSITION} from '@anglr/common';\nimport {extend, isBlank, nameof} from '@jscrpt/common';\nimport {Subscription} from 'rxjs';\n\nimport {DateTimeInputValue} from '../../../../interfaces';\nimport {DateTimeInputOutputValue, DateTimeObjectValue} from '../../../../misc/types';\nimport {DATE_TIME_PICKER_OPTIONS} from '../../misc/tokens';\nimport {DayPickerSAComponent} from '../dayPicker/dayPicker.component';\nimport {MonthPickerSAComponent} from '../monthPicker/monthPicker.component';\nimport {DateTimePickerOptions} from './dateTimePicker.interface';\nimport {YearPickerSAComponent} from '../yearPicker/yearPicker.component';\nimport {DateTimePicker} from '../../interfaces';\nimport {formatDateTime, parseDateTime} from '../../../../misc/utils';\nimport {DateTimeSADirective} from '../../../dateTime/directives';\nimport {DateValueProvider} from '../../../../services';\nimport {DateTimeValueFormat} from '../../../../misc/enums';\n\n//TODO: use mixin for set internal\n\n/**\n * Text to be displayed when configuration, options are corrupted\n */\nconst CORRUPTED_CONFIG_TEXT = 'DateTime: Corrupted configuration for DateTimePicker!';\n\n/**\n * Default options for date time picker\n */\nconst defaultOptions: DateTimePickerOptions = \n{\n defaultPeriod: 'day',\n periodsDefinition:\n {\n 'day': DayPickerSAComponent,\n 'month': MonthPickerSAComponent,\n 'year': YearPickerSAComponent,\n },\n};\n\n/**\n * Component used for displaying date time picker\n */\n@Component(\n{\n selector: 'date-time-picker',\n templateUrl: 'dateTimePicker.component.html',\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DateTimePickerComponent<TDate = unknown> extends DateTimeSADirective<TDate> implements DateTimeInputValue<TDate>, OnInit, OnChanges, OnDestroy\n{\n //######################### protected properties #########################\n\n /**\n * Current value of date time, could be string, unix timestamp, Date, TDate object, or ranged DateTimeValue\n */\n protected ɵValue: DateTimeInputOutputValue<TDate>|undefined|null;\n\n /**\n * Internal representation of current date time value\n */\n protected internalValue: DateTimeObjectValue<TDate>|undefined|null;\n \n /**\n * Subscription for changes in date time period picker\n */\n protected periodChangesSubscription: Subscription|undefined|null;\n\n /**\n * Options for date time picker\n */\n protected ɵOptions: DateTimePickerOptions<TDate>;\n\n /**\n * Currently displayed period type\n */\n protected displayedPeriodType!: Type<DateTimePicker<TDate>>;\n\n /**\n * Name of period which is currently displayed\n */\n protected displayedPeriodName!: string;\n\n /**\n * Instance of created date time period picker\n */\n protected component: ComponentRef<DateTimePicker<TDate>>|undefined|null;\n \n //######################### protected properties - children #########################\n\n /**\n * Container used for displaying pickers for specific date time part\n */\n @ViewChild('container', {read: ViewContainerRef, static: true})\n protected pickerContainer: ViewContainerRef|undefined|null;\n\n //######################### public properties - inputs #########################\n\n /**\n * @inheritdoc\n */\n @Input()\n public get value(): DateTimeInputOutputValue<TDate>|undefined|null\n {\n return this.ɵValue;\n }\n public set value(value: DateTimeInputOutputValue<TDate>|undefined|null)\n {\n //accepts all available formats\n this.setInternalValue(value);\n this.ɵValue = formatDateTime(this.internalValue, this.valueFormat, this.customFormat);\n }\n\n /**\n * Options for date time picker\n */\n @Input()\n public get options(): Partial<DateTimePickerOptions<TDate>>\n {\n return this.ɵOptions;\n }\n public set options(value: Partial<DateTimePickerOptions<TDate>>)\n {\n this.ɵOptions = extend(true, {}, defaultOptions, value);\n\n this.setOptions(value);\n }\n\n //######################### public properties - outputs #########################\n\n /**\n * @inheritdoc\n */\n @Output()\n public valueChange: EventEmitter<void> = new EventEmitter<void>();\n\n //######################### constructor #########################\n constructor(@Inject(POSITION) protected position: Position,\n protected valueProvider: DateValueProvider<TDate>,\n @Inject(DATE_TIME_PICKER_OPTIONS) @Optional() options?: Partial<DateTimePickerOptions<TDate>>,)\n {\n super();\n\n this.ɵOptions = extend(true, {}, defaultOptions, options);\n \n this.setOptions(options);\n\n if(!this.displayedPeriodType)\n {\n throw new Error(CORRUPTED_CONFIG_TEXT);\n }\n }\n\n //######################### public methods - implementation of OnInit #########################\n \n /**\n * Initialize component\n */\n public ngOnInit(): void\n {\n //empty value show now\n if(isBlank(this.value))\n {\n const now = this.dateApi.now();\n\n this.showPicker(this.displayedPeriodType, now.value);\n }\n else\n {\n const val = (Array.isArray(this.internalValue) ? this.internalValue[0] : this.internalValue) ?? this.dateApi.now();\n\n this.showPicker(this.displayedPeriodType, val.isValid() ? val.value : this.dateApi.now().value);\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.component)\n {\n return;\n }\n\n const component = this.component.instance;\n let invalidate: boolean = false;\n\n if(nameof<DateTimePickerComponent>('maxDateTime') in changes)\n {\n component.maxDate = this.maxDateTime;\n invalidate = true;\n }\n\n if(nameof<DateTimePickerComponent>('minDateTime') in changes)\n {\n component.minDate = this.minDateTime;\n invalidate = true;\n }\n\n if(nameof<DateTimePickerComponent>('value') in changes)\n {\n const val = (Array.isArray(this.internalValue) ? this.internalValue[0] : this.internalValue) ?? this.dateApi.now();\n\n component.display = val.isValid() ? val.value : this.dateApi.now().value;\n component.value = this.internalValue;\n invalidate = true;\n }\n\n if(this.component && invalidate)\n {\n this.component.instance.invalidateVisuals();\n }\n }\n\n //######################### public methods - implementation of OnDestroy #########################\n \n /**\n * Called when component is destroyed\n */\n public override ngOnDestroy(): void\n {\n super.ngOnDestroy();\n\n this.component?.destroy();\n this.component = null;\n\n this.periodChangesSubscription?.unsubscribe();\n this.periodChangesSubscription = null;\n }\n\n //######################### protected methods #########################\n\n /**\n * Sets internal value and fix lowest time difference\n * @param value - Value to be set\n */\n protected setInternalValue(value: DateTimeInputOutputValue<TDate>|undefined|null): void\n {\n this.internalValue = parseDateTime(value, this.dateApi, null, this.customFormat);\n\n if(isBlank(this.internalValue))\n {\n return;\n }\n\n //ranged value\n if(Array.isArray(this.internalValue))\n {\n const [from, to] = this.internalValue;\n\n if(from)\n {\n const val = this.valueProvider.getValue(from.value, this.customFormat).from;\n\n if(val)\n {\n this.internalValue[0] = this.dateApi.getValue(val, this.customFormat);\n }\n }\n\n if(to)\n {\n const val = this.valueProvider.getValue(to.value, this.customFormat).to;\n\n if(val)\n {\n this.internalValue[1] = this.dateApi.getValue(val, this.customFormat);\n }\n }\n }\n else\n {\n const val = this.valueProvider.getValue(this.internalValue.value, this.customFormat).from;\n\n if(val)\n {\n this.internalValue = this.dateApi.getValue(val, this.customFormat);\n }\n }\n }\n\n /**\n * Shows picker\n * @param type - Type of period that should be displayed\n * @param displayDate - Display date to be shown\n */\n protected showPicker(type: Type<DateTimePicker<TDate>>, displayDate: TDate): void\n {\n if(!this.pickerContainer)\n {\n return;\n }\n\n //create new component and destroy previous one\n if(!this.component || (this.component && type != this.displayedPeriodType))\n {\n this.displayedPeriodType = type;\n this.periodChangesSubscription?.unsubscribe();\n this.periodChangesSubscription = new Subscription();\n this.component?.destroy();\n this.component = this.pickerContainer.createComponent(type);\n\n this.periodChangesSubscription.add(this.component.instance.valueChange.subscribe(() =>\n {\n const component = this.component?.instance;\n\n if(!component)\n {\n return;\n }\n\n if(!Array.isArray(component.value))\n {\n this.setInternalValue(component.value?.value);\n }\n else\n {\n //TODO: handle ranges\n }\n\n this.value = formatDateTime(this.internalValue, this.valueFormat, this.customFormat);\n this.valueChange.emit();\n }));\n\n this.periodChangesSubscription.add(this.component.instance.scaleUp.subscribe(date => this.showPicker(this.getUpperType(), date)));\n this.periodChangesSubscription.add(this.component.instance.scaleDown.subscribe(date => this.showPicker(this.getLowerType(), date)));\n }\n\n const component = this.component.instance;\n\n component.ranged = this.valueFormat === DateTimeValueFormat.RangeOfDateInstances;\n component.canScaleDown = this.canScaleDown(),\n component.canScaleUp = this.canScaleUp();\n component.display = displayDate;\n component.maxDate = this.maxDateTime;\n component.minDate = this.minDateTime;\n component.value = this.internalValue;\n component.invalidateVisuals();\n }\n\n /**\n * Gets indication whether current period can be scaled down\n * @param periods - Array of defined period names\n * @param index - Index of displayed period\n */\n protected canScaleDown(periods?: string[], index?: number): boolean\n {\n periods ??= Object.keys(this.ɵOptions.periodsDefinition);\n index ??= periods.indexOf(this.displayedPeriodName);\n\n if(index < 0)\n {\n throw new Error(CORRUPTED_CONFIG_TEXT);\n }\n\n if(index <= 0)\n {\n return false;\n }\n\n return true;\n }\n\n /**\n * Gets indication whether current period can be scaled up\n * @param periods - Array of defined period names\n * @param index - Index of displayed period\n */\n protected canScaleUp(periods?: string[], index?: number): boolean\n {\n periods ??= Object.keys(this.ɵOptions.periodsDefinition);\n index ??= periods.indexOf(this.displayedPeriodName);\n\n if(index < 0)\n {\n throw new Error(CORRUPTED_CONFIG_TEXT);\n }\n\n if(index + 1 >= periods.length)\n {\n return false;\n }\n\n return true;\n }\n\n /**\n * Gets type that is above current period picker\n */\n protected getUpperType(): Type<DateTimePicker<TDate>>\n {\n const periods = Object.keys(this.ɵOptions.periodsDefinition);\n const index = periods.indexOf(this.displayedPeriodName);\n\n if(!this.canScaleUp(periods, index))\n {\n return this.displayedPeriodType;\n }\n\n this.displayedPeriodName = periods[index + 1];\n\n return this.ɵOptions.periodsDefinition[this.displayedPeriodName];\n }\n\n /**\n * Gets type that is below current period picker\n */\n protected getLowerType(): Type<DateTimePicker<TDate>>\n {\n const periods = Object.keys(this.ɵOptions.periodsDefinition);\n const index = periods.indexOf(this.displayedPeriodName);\n\n if(!this.canScaleDown(periods, index))\n {\n return this.displayedPeriodType;\n }\n\n this.displayedPeriodName = periods[index - 1];\n\n return this.ɵOptions.periodsDefinition[this.displayedPeriodName];\n }\n\n /**\n * Sets options and use them to set parameters of component\n * @param options - Options to be set\n */\n protected setOptions(options: Partial<DateTimePickerOptions<TDate>> | undefined): void\n {\n if(options?.periodsDefinition)\n {\n this.ɵOptions.periodsDefinition = options.periodsDefinition;\n }\n\n this.displayedPeriodName = this.ɵOptions.defaultPeriod;\n this.displayedPeriodType = this.ɵOptions.periodsDefinition[this.displayedPeriodName];\n }\n}","<ng-container #container></ng-container>"]}
@@ -1,151 +0,0 @@
1
- import { Component, ChangeDetectionStrategy } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { DateTimePeriodPickerBase } from '../dateTimePeriodPickerBase';
4
- import { DatePipesModule } from '../../../datePipes.module';
5
- import * as i0 from "@angular/core";
6
- import * as i1 from "@angular/common";
7
- import * as i2 from "../../../../pipes/dateFormat.pipe";
8
- /**
9
- * Component used for displaying day picker
10
- */
11
- export class DayPickerSAComponent extends DateTimePeriodPickerBase {
12
- //######################### constructor #########################
13
- constructor() {
14
- super();
15
- //######################### protected properties #########################
16
- /**
17
- * Stored this picker month data
18
- */
19
- this.thisMonthData = [];
20
- //######################### protected properties - template bindings #########################
21
- /**
22
- * Names of days
23
- */
24
- this.weekdays = [];
25
- this.weekdays = this.dateApi.weekdaysShort();
26
- }
27
- //######################### protected methods - template bindings #########################
28
- /**
29
- * Selects day as value of date time picker
30
- * @param dayData - Day data that were selected
31
- */
32
- selectDay(dayData) {
33
- var _a, _b, _c, _d;
34
- if (dayData.disabled) {
35
- return;
36
- }
37
- //single value
38
- if (!this.ranged) {
39
- //no value selected yet
40
- if (!((_a = this.singleValue) === null || _a === void 0 ? void 0 : _a.isValid())) {
41
- this.singleValue = (_c = (_b = this.displayDate) === null || _b === void 0 ? void 0 : _b.clone()) !== null && _c !== void 0 ? _c : this.dateApi.getValue(new Date());
42
- }
43
- this.singleValue.year(dayData.dateObj.year());
44
- this.singleValue.month(dayData.dateObj.month());
45
- this.singleValue.dayOfMonth(dayData.day);
46
- //other month was selected
47
- if (dayData.otherMonth) {
48
- (_d = this.displayDate) === null || _d === void 0 ? void 0 : _d.month(dayData.dateObj.month());
49
- }
50
- this.singleValue.updateOriginal();
51
- }
52
- else {
53
- //TODO: range
54
- }
55
- this.valueChangeSubject.next();
56
- this.render();
57
- this.changeDetector.detectChanges();
58
- }
59
- /**
60
- * Changes displayed month to next month
61
- */
62
- nextMonth() {
63
- var _a;
64
- (_a = this.displayDate) === null || _a === void 0 ? void 0 : _a.addMonths(1).updateOriginal();
65
- this.render();
66
- }
67
- /**
68
- * Changes displayed month to previous month
69
- */
70
- previousMonth() {
71
- var _a;
72
- (_a = this.displayDate) === null || _a === void 0 ? void 0 : _a.subtractMonths(1).updateOriginal();
73
- this.render();
74
- }
75
- //######################### protected methods #########################
76
- /**
77
- * Renders current day picker data
78
- */
79
- render() {
80
- var _a, _b;
81
- //same month only data change
82
- if (this.displayedDate && ((_a = this.displayDate) === null || _a === void 0 ? void 0 : _a.isSameMonth(this.displayedDate))) {
83
- this.setActive();
84
- this.updateMinMax();
85
- return;
86
- }
87
- this.displayedDate = (_b = this.displayDate) === null || _b === void 0 ? void 0 : _b.value;
88
- this.periodData = [];
89
- this.thisMonthData = [];
90
- if (!this.displayDate) {
91
- return;
92
- }
93
- const currentMonthDate = this.displayDate.value;
94
- const today = this.dateApi.now().value;
95
- this.displayDate
96
- .startOfMonth()
97
- .updateOriginal()
98
- .startOfWeek();
99
- do {
100
- for (let x = 0; x < 7; x++) {
101
- const day = this.displayDate.dayOfMonth();
102
- const otherMonth = !this.displayDate.isSameMonth(currentMonthDate);
103
- const data = {
104
- active: false,
105
- disabled: false,
106
- date: this.displayDate.value,
107
- otherMonth: otherMonth,
108
- today: this.displayDate.isSameDay(today),
109
- weekend: this.displayDate.isWeekend(),
110
- day: day,
111
- dateObj: this.displayDate.clone(),
112
- };
113
- this.periodData.push(data);
114
- if (!otherMonth) {
115
- this.thisMonthData.push(data);
116
- }
117
- this.displayDate.addDays(1);
118
- }
119
- } while (this.displayDate.isSameMonth(currentMonthDate));
120
- this.displayDate.resetOriginal();
121
- this.setActive();
122
- this.updateMinMax();
123
- }
124
- //######################### protected methods - overrides #########################
125
- /**
126
- * @inheritdoc
127
- */
128
- onRender() {
129
- this.render();
130
- }
131
- /**
132
- * Tests whether provided value is in same period target value
133
- * @param val - Tested value
134
- * @param target - Target value to be tested against
135
- */
136
- isSamePeriod(val, target) {
137
- return val.isSameDay(target);
138
- }
139
- }
140
- DayPickerSAComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DayPickerSAComponent, deps: [], target: i0.ɵɵFactoryTarget.Component });
141
- DayPickerSAComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: DayPickerSAComponent, isStandalone: true, selector: "day-picker", host: { properties: { "class.date-time-period": "true" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"period\">\r\n <div class=\"fas fa-angle-left clickable\" (mousedown)=\"previousMonth()\"></div>\r\n <div class=\"period-value\" [class.clickable]=\"canScaleUp\" (mousedown)=\"displayDate && canScaleUp ? scaleUpSubject.next(displayDate.value) : undefined\">{{displayDate?.value | dateFormat: 'monthName'}} {{displayDate?.value | dateFormat: 'year'}}</div>\r\n <div class=\"fas fa-angle-right clickable\" (mousedown)=\"nextMonth()\"></div>\r\n</div>\r\n\r\n<div class=\"period-data\">\r\n <div class=\"weekday\" *ngFor=\"let weekday of weekdays\">{{weekday}}</div>\r\n <div *ngFor=\"let day of periodData\"\r\n class=\"period-datum clickable\"\r\n [class.other-month]=\"day.otherMonth\"\r\n [class.today]=\"day.today\"\r\n [class.weekend]=\"day.weekend\"\r\n [class.active]=\"day.active\"\r\n [class.disabled]=\"day.disabled\"\r\n (mousedown)=\"selectDay(day)\">{{day.day}}</div>\r\n</div>\r\n\r\n<div class=\"go-down-button\" *ngIf=\"canScaleDown\">\r\n <div [class.clickable]=\"canScaleDown\" (mousedown)=\"displayDate ? scaleDownSubject.next(displayDate.value) : undefined\">{{singleValue?.isValid() ? (singleValue?.value | dateFormat: 'time') : '0:00'}}</div>\r\n</div>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i1.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "ngmodule", type: DatePipesModule }, { kind: "pipe", type: i2.DateFormatPipe, name: "dateFormat" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
142
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: DayPickerSAComponent, decorators: [{
143
- type: Component,
144
- args: [{ selector: 'day-picker', host: {
145
- '[class.date-time-period]': 'true',
146
- }, standalone: true, imports: [
147
- CommonModule,
148
- DatePipesModule,
149
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"period\">\r\n <div class=\"fas fa-angle-left clickable\" (mousedown)=\"previousMonth()\"></div>\r\n <div class=\"period-value\" [class.clickable]=\"canScaleUp\" (mousedown)=\"displayDate && canScaleUp ? scaleUpSubject.next(displayDate.value) : undefined\">{{displayDate?.value | dateFormat: 'monthName'}} {{displayDate?.value | dateFormat: 'year'}}</div>\r\n <div class=\"fas fa-angle-right clickable\" (mousedown)=\"nextMonth()\"></div>\r\n</div>\r\n\r\n<div class=\"period-data\">\r\n <div class=\"weekday\" *ngFor=\"let weekday of weekdays\">{{weekday}}</div>\r\n <div *ngFor=\"let day of periodData\"\r\n class=\"period-datum clickable\"\r\n [class.other-month]=\"day.otherMonth\"\r\n [class.today]=\"day.today\"\r\n [class.weekend]=\"day.weekend\"\r\n [class.active]=\"day.active\"\r\n [class.disabled]=\"day.disabled\"\r\n (mousedown)=\"selectDay(day)\">{{day.day}}</div>\r\n</div>\r\n\r\n<div class=\"go-down-button\" *ngIf=\"canScaleDown\">\r\n <div [class.clickable]=\"canScaleDown\" (mousedown)=\"displayDate ? scaleDownSubject.next(displayDate.value) : undefined\">{{singleValue?.isValid() ? (singleValue?.value | dateFormat: 'time') : '0:00'}}</div>\r\n</div>" }]
150
- }], ctorParameters: function () { return []; } });
151
- //# sourceMappingURL=dayPicker.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"dayPicker.component.js","sourceRoot":"","sources":["../../../../../../src/modules/dateTimePicker/components/dayPicker/dayPicker.component.ts","../../../../../../src/modules/dateTimePicker/components/dayPicker/dayPicker.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAC,MAAM,eAAe,CAAC;AACjE,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAG7C,OAAO,EAAC,wBAAwB,EAAC,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;;;;AAG1D;;GAEG;AAiBH,MAAM,OAAO,oBAAsC,SAAQ,wBAA+C;IAgBtG,iEAAiE;IACjE;QAEI,KAAK,EAAE,CAAC;QAjBZ,0EAA0E;QAE1E;;WAEG;QACO,kBAAa,GAAqB,EAAE,CAAC;QAE/C,8FAA8F;QAE9F;;WAEG;QACO,aAAQ,GAAa,EAAE,CAAC;QAO9B,IAAI,CAAC,QAAQ,GAAG,IAAI,CAAC,OAAO,CAAC,aAAa,EAAE,CAAC;IACjD,CAAC;IAED,2FAA2F;IAE3F;;;OAGG;IACO,SAAS,CAAC,OAAuB;;QAEvC,IAAG,OAAO,CAAC,QAAQ,EACnB;YACI,OAAO;SACV;QAED,cAAc;QACd,IAAG,CAAC,IAAI,CAAC,MAAM,EACf;YACI,uBAAuB;YACvB,IAAG,CAAC,CAAA,MAAA,IAAI,CAAC,WAAW,0CAAE,OAAO,EAAE,CAAA,EAC/B;gBACI,IAAI,CAAC,WAAW,GAAG,MAAA,MAAA,IAAI,CAAC,WAAW,0CAAE,KAAK,EAAE,mCAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;aACrF;YAED,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;YAC9C,IAAI,CAAC,WAAW,CAAC,KAAK,CAA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QAEjC,IAAI,CAAC,SAAS,EAAE,CAAC;QACjB,IAAI,CAAC,YAAY,EAAE,CAAC;IACxB,CAAC;IAED,mFAAmF;IAEnF;;OAEG;IACO,QAAQ;QAEd,IAAI,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;IAED;;;;OAIG;IACO,YAAY,CAAC,GAAyB,EAAE,MAAa;QAE3D,OAAO,GAAG,CAAC,SAAS,CAAC,MAAM,CAAC,CAAC;IACjC,CAAC;;iHAhLQ,oBAAoB;qGAApB,oBAAoB,yJC3BjC,4uCAoBM,2CDEE,YAAY,+PACZ,eAAe;2FAIV,oBAAoB;kBAhBhC,SAAS;+BAEI,YAAY,QAGtB;wBACI,0BAA0B,EAAE,MAAM;qBACrC,cACW,IAAI,WAEhB;wBACI,YAAY;wBACZ,eAAe;qBAClB,mBACgB,uBAAuB,CAAC,MAAM","sourcesContent":["import {Component, ChangeDetectionStrategy} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {DateTimePicker, DayData} from '../../interfaces';\nimport {DateTimePeriodPickerBase} from '../dateTimePeriodPickerBase';\nimport {DatePipesModule} from '../../../datePipes.module';\nimport {DateApiObject} from '../../../../services';\n\n/**\n * Component used for displaying day picker\n */\n@Component(\n{\n selector: 'day-picker',\n templateUrl: 'dayPicker.component.html',\n host:\n {\n '[class.date-time-period]': 'true',\n },\n standalone: true,\n imports:\n [\n CommonModule,\n DatePipesModule,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class DayPickerSAComponent<TDate = unknown> extends DateTimePeriodPickerBase<DayData<TDate>, TDate> implements DateTimePicker<TDate>\n{\n //######################### protected properties #########################\n\n /**\n * Stored this picker month data\n */\n protected thisMonthData: DayData<TDate>[] = [];\n\n //######################### protected properties - template bindings #########################\n\n /**\n * Names of days\n */\n protected weekdays: string[] = [];\n\n //######################### constructor #########################\n constructor()\n {\n super();\n\n this.weekdays = this.dateApi.weekdaysShort();\n }\n\n //######################### protected methods - template bindings #########################\n\n /**\n * Selects day as value of date time picker\n * @param dayData - Day data that were selected\n */\n protected selectDay(dayData: DayData<TDate>): void\n {\n if(dayData.disabled)\n {\n return;\n }\n\n //single value\n if(!this.ranged)\n {\n //no value selected yet\n if(!this.singleValue?.isValid())\n {\n this.singleValue = this.displayDate?.clone() ?? this.dateApi.getValue(new Date());\n }\n\n this.singleValue.year(dayData.dateObj.year());\n this.singleValue.month(dayData.dateObj.month());\n this.singleValue.dayOfMonth(dayData.day);\n\n //other month was selected\n if(dayData.otherMonth)\n {\n this.displayDate?.month(dayData.dateObj.month());\n }\n\n this.singleValue.updateOriginal();\n }\n else\n {\n //TODO: range\n }\n\n this.valueChangeSubject.next();\n this.render();\n this.changeDetector.detectChanges();\n }\n\n /**\n * Changes displayed month to next month\n */\n protected nextMonth(): void\n {\n this.displayDate?.addMonths(1).updateOriginal();\n\n this.render();\n }\n\n /**\n * Changes displayed month to previous month\n */\n protected previousMonth(): void\n {\n this.displayDate?.subtractMonths(1).updateOriginal();\n\n this.render();\n }\n\n //######################### protected methods #########################\n\n /**\n * Renders current day picker data\n */\n protected render(): void\n {\n //same month only data change\n if(this.displayedDate && this.displayDate?.isSameMonth(this.displayedDate))\n {\n this.setActive();\n this.updateMinMax();\n\n return;\n }\n\n this.displayedDate = this.displayDate?.value;\n this.periodData = [];\n this.thisMonthData = [];\n\n if(!this.displayDate)\n {\n return;\n }\n\n const currentMonthDate = this.displayDate.value;\n const today = this.dateApi.now().value;\n\n this.displayDate\n .startOfMonth()\n .updateOriginal()\n .startOfWeek();\n\n do\n {\n for(let x = 0; x < 7; x++)\n {\n const day = this.displayDate.dayOfMonth();\n const otherMonth = !this.displayDate.isSameMonth(currentMonthDate);\n\n const data: DayData<TDate> =\n {\n active: false,\n disabled: false,\n date: this.displayDate.value,\n otherMonth: otherMonth,\n today: this.displayDate.isSameDay(today),\n weekend: this.displayDate.isWeekend(),\n day: day,\n dateObj: this.displayDate.clone(),\n };\n\n this.periodData.push(data);\n\n if(!otherMonth)\n {\n this.thisMonthData.push(data);\n }\n\n this.displayDate.addDays(1);\n }\n }\n while(this.displayDate.isSameMonth(currentMonthDate));\n\n this.displayDate.resetOriginal();\n\n this.setActive();\n this.updateMinMax();\n }\n\n //######################### protected methods - overrides #########################\n\n /**\n * @inheritdoc\n */\n protected onRender(): void\n {\n this.render();\n }\n\n /**\n * Tests whether provided value is in same period target value\n * @param val - Tested value\n * @param target - Target value to be tested against\n */\n protected isSamePeriod(val: DateApiObject<TDate>, target: TDate): boolean\n {\n return val.isSameDay(target);\n }\n}","<div class=\"period\">\r\n <div class=\"fas fa-angle-left clickable\" (mousedown)=\"previousMonth()\"></div>\r\n <div class=\"period-value\" [class.clickable]=\"canScaleUp\" (mousedown)=\"displayDate && canScaleUp ? scaleUpSubject.next(displayDate.value) : undefined\">{{displayDate?.value | dateFormat: 'monthName'}} {{displayDate?.value | dateFormat: 'year'}}</div>\r\n <div class=\"fas fa-angle-right clickable\" (mousedown)=\"nextMonth()\"></div>\r\n</div>\r\n\r\n<div class=\"period-data\">\r\n <div class=\"weekday\" *ngFor=\"let weekday of weekdays\">{{weekday}}</div>\r\n <div *ngFor=\"let day of periodData\"\r\n class=\"period-datum clickable\"\r\n [class.other-month]=\"day.otherMonth\"\r\n [class.today]=\"day.today\"\r\n [class.weekend]=\"day.weekend\"\r\n [class.active]=\"day.active\"\r\n [class.disabled]=\"day.disabled\"\r\n (mousedown)=\"selectDay(day)\">{{day.day}}</div>\r\n</div>\r\n\r\n<div class=\"go-down-button\" *ngIf=\"canScaleDown\">\r\n <div [class.clickable]=\"canScaleDown\" (mousedown)=\"displayDate ? scaleDownSubject.next(displayDate.value) : undefined\">{{singleValue?.isValid() ? (singleValue?.value | dateFormat: 'time') : '0:00'}}</div>\r\n</div>"]}
@@ -1,123 +0,0 @@
1
- import { Component, ChangeDetectionStrategy, Inject } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { DateTimePeriodPickerBase } from '../dateTimePeriodPickerBase';
4
- import { DatePipesModule } from '../../../datePipes.module';
5
- import { FORMAT_PROVIDER } from '../../../../misc/tokens';
6
- import * as i0 from "@angular/core";
7
- import * as i1 from "@angular/common";
8
- import * as i2 from "../../../../pipes/dateFormat.pipe";
9
- /**
10
- * Component used for displaying month picker
11
- */
12
- export class MonthPickerSAComponent extends DateTimePeriodPickerBase {
13
- //######################### constructor #########################
14
- constructor(formatProvider) {
15
- super();
16
- this.formatProvider = formatProvider;
17
- }
18
- //######################### protected methods - template bindings #########################
19
- /**
20
- * Selects month as value of day time picker
21
- * @param monthData - Month data that were selected
22
- */
23
- selectMonth(monthData) {
24
- var _a, _b, _c;
25
- if (monthData.disabled) {
26
- return;
27
- }
28
- //single value
29
- if (!this.ranged) {
30
- //no value selected yet
31
- if (!((_a = this.singleValue) === null || _a === void 0 ? void 0 : _a.isValid())) {
32
- this.singleValue = (_c = (_b = this.displayDate) === null || _b === void 0 ? void 0 : _b.clone()) !== null && _c !== void 0 ? _c : this.dateApi.getValue(new Date());
33
- }
34
- this.singleValue.year(monthData.dateObj.year());
35
- this.singleValue.month(monthData.dateObj.month());
36
- this.singleValue.updateOriginal();
37
- }
38
- else {
39
- //TODO: range
40
- }
41
- this.valueChangeSubject.next();
42
- this.render();
43
- this.changeDetector.detectChanges();
44
- }
45
- /**
46
- * Changes displayed year to next year
47
- */
48
- nextYear() {
49
- var _a;
50
- (_a = this.displayDate) === null || _a === void 0 ? void 0 : _a.addYears(1).updateOriginal();
51
- this.render();
52
- }
53
- /**
54
- * Changes displayed year to previous year
55
- */
56
- previousYear() {
57
- var _a;
58
- (_a = this.displayDate) === null || _a === void 0 ? void 0 : _a.subtractYears(1).updateOriginal();
59
- this.render();
60
- }
61
- //######################### protected methods #########################
62
- /**
63
- * Renders current day picker data
64
- */
65
- render() {
66
- var _a, _b;
67
- //same year only data change
68
- if (this.displayedDate && ((_a = this.displayDate) === null || _a === void 0 ? void 0 : _a.isSameYear(this.displayedDate))) {
69
- this.setActive();
70
- this.updateMinMax();
71
- return;
72
- }
73
- this.displayedDate = (_b = this.displayDate) === null || _b === void 0 ? void 0 : _b.value;
74
- this.periodData = [];
75
- if (!this.displayDate) {
76
- return;
77
- }
78
- const monthOfYear = this.displayDate.startOfYear().updateOriginal();
79
- for (let x = 0; x < 12; x++) {
80
- this.periodData.push({
81
- active: false,
82
- disabled: false,
83
- date: monthOfYear.value,
84
- name: monthOfYear.format(this.dateApi.getFormat(this.formatProvider.monthNameShort)),
85
- dateObj: monthOfYear.clone(),
86
- });
87
- monthOfYear.addMonths(1);
88
- }
89
- this.displayDate.resetOriginal();
90
- this.setActive();
91
- this.updateMinMax();
92
- }
93
- //######################### protected methods - overrides #########################
94
- /**
95
- * @inheritdoc
96
- */
97
- onRender() {
98
- this.render();
99
- }
100
- /**
101
- * Tests whether provided value is in same period target value
102
- * @param val - Tested value
103
- * @param target - Target value to be tested against
104
- */
105
- isSamePeriod(val, target) {
106
- return val.isSameMonth(target);
107
- }
108
- }
109
- MonthPickerSAComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: MonthPickerSAComponent, deps: [{ token: FORMAT_PROVIDER }], target: i0.ɵɵFactoryTarget.Component });
110
- MonthPickerSAComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: MonthPickerSAComponent, isStandalone: true, selector: "month-picker", host: { properties: { "class.date-time-period": "true" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"period\">\r\n <div class=\"fas fa-angle-left clickable\" (mousedown)=\"previousYear()\"></div>\r\n <div class=\"period-value\" [class.clickable]=\"canScaleUp\" (mousedown)=\"displayDate && canScaleUp ? scaleUpSubject.next(displayDate.value) : undefined\">{{displayDate?.value | dateFormat: 'year'}}</div>\r\n <div class=\"fas fa-angle-right clickable\" (mousedown)=\"nextYear()\"></div>\r\n</div>\r\n\r\n<div class=\"period-data\">\r\n <div *ngFor=\"let month of periodData\"\r\n class=\"period-datum clickable\"\r\n [class.active]=\"month.active\"\r\n [class.disabled]=\"month.disabled\"\r\n (mousedown)=\"canScaleDown && displayDate ? scaleDownSubject.next(month.dateObj.value) : selectMonth(month)\">{{month.name}}</div>\r\n</div>", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "ngmodule", type: DatePipesModule }, { kind: "pipe", type: i2.DateFormatPipe, name: "dateFormat" }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
111
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: MonthPickerSAComponent, decorators: [{
112
- type: Component,
113
- args: [{ selector: 'month-picker', host: {
114
- '[class.date-time-period]': 'true',
115
- }, standalone: true, imports: [
116
- CommonModule,
117
- DatePipesModule,
118
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"period\">\r\n <div class=\"fas fa-angle-left clickable\" (mousedown)=\"previousYear()\"></div>\r\n <div class=\"period-value\" [class.clickable]=\"canScaleUp\" (mousedown)=\"displayDate && canScaleUp ? scaleUpSubject.next(displayDate.value) : undefined\">{{displayDate?.value | dateFormat: 'year'}}</div>\r\n <div class=\"fas fa-angle-right clickable\" (mousedown)=\"nextYear()\"></div>\r\n</div>\r\n\r\n<div class=\"period-data\">\r\n <div *ngFor=\"let month of periodData\"\r\n class=\"period-datum clickable\"\r\n [class.active]=\"month.active\"\r\n [class.disabled]=\"month.disabled\"\r\n (mousedown)=\"canScaleDown && displayDate ? scaleDownSubject.next(month.dateObj.value) : selectMonth(month)\">{{month.name}}</div>\r\n</div>" }]
119
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
120
- type: Inject,
121
- args: [FORMAT_PROVIDER]
122
- }] }]; } });
123
- //# sourceMappingURL=monthPicker.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"monthPicker.component.js","sourceRoot":"","sources":["../../../../../../src/modules/dateTimePicker/components/monthPicker/monthPicker.component.ts","../../../../../../src/modules/dateTimePicker/components/monthPicker/monthPicker.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAE,MAAM,EAAC,MAAM,eAAe,CAAC;AACzE,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAG7C,OAAO,EAAC,wBAAwB,EAAC,MAAM,6BAA6B,CAAC;AACrE,OAAO,EAAC,eAAe,EAAC,MAAM,2BAA2B,CAAC;AAE1D,OAAO,EAAC,eAAe,EAAC,MAAM,yBAAyB,CAAC;;;;AAGxD;;GAEG;AAiBH,MAAM,OAAO,sBAAwC,SAAQ,wBAAiD;IAE1G,iEAAiE;IACjE,YAA+C,cAA8B;QAEzE,KAAK,EAAE,CAAC;QAFmC,mBAAc,GAAd,cAAc,CAAgB;IAG7E,CAAC;IAED,2FAA2F;IAE3F;;;OAGG;IACO,WAAW,CAAC,SAA2B;;QAE7C,IAAG,SAAS,CAAC,QAAQ,EACrB;YACI,OAAO;SACV;QAED,cAAc;QACd,IAAG,CAAC,IAAI,CAAC,MAAM,EACf;YACI,uBAAuB;YACvB,IAAG,CAAC,CAAA,MAAA,IAAI,CAAC,WAAW,0CAAE,OAAO,EAAE,CAAA,EAC/B;gBACI,IAAI,CAAC,WAAW,GAAG,MAAA,MAAA,IAAI,CAAC,WAAW,0CAAE,KAAK,EAAE,mCAAI,IAAI,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,IAAI,EAAE,CAAC,CAAC;aACrF;YAED,IAAI,CAAC,WAAW,CAAC,IAAI,CAAC,SAAS,CAAC,OAAO,CAAC,IAAI,EAAE,CAAC,CAAC;YAChD,IAAI,CAAC,WAAW,CAAC,KAAK,CAAC,SAAS,CAAC,OAAO,CAAC,KAAK,EAAE,CAAC,CAAC;YAClD,IAAI,CAAC,WAAW,CAAC,cAAc,EAAE,CAAC;SACrC;aAED;YACI,aAAa;SAChB;QAED,IAAI,CAAC,kBAAkB,CAA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C,IAAI,CAAC,cAAc,CAAC,cAAc,CAAC,CAAC;gBACpF,OAAO,EAAE,WAAW,CAAC,KAAK,EAAE;aAC/B,CAAC,CAAC;YAEH,WAAW,CAAC,SAAS,CAAC,CAAC,CAAC,CAAC;SAC5B;QAED,IAAI,CAAC,WAAW,CAAC,aAAa,EAAE,CAAC;QAEjC,IAAI,CAAC,SAAS,EAAE,CAAC;QACjB,IAAI,CAAC,YAAY,EAAE,CAAC;IACxB,CAAC;IAED,mFAAmF;IAEnF;;OAEG;IACO,QAAQ;QAEd,IAAI,CAAC,MAAM,EAAE,CAAC;IAClB,CAAC;IAED;;;;OAIG;IACO,YAAY,CAAC,GAAyB,EAAE,MAAa;QAE3D,OAAO,GAAG,CAAC,WAAW,CAAC,MAAM,CAAC,CAAC;IACnC,CAAC;;mHAhIQ,sBAAsB,kBAGX,eAAe;uGAH1B,sBAAsB,2JC7BnC,wxBAYM,2CDYE,YAAY,2JACZ,eAAe;2FAIV,sBAAsB;kBAhBlC,SAAS;+BAEI,cAAc,QAGxB;wBACI,0BAA0B,EAAE,MAAM;qBACrC,cACW,IAAI,WAEhB;wBACI,YAAY;wBACZ,eAAe;qBAClB,mBACgB,uBAAuB,CAAC,MAAM;;0BAKlC,MAAM;2BAAC,eAAe","sourcesContent":["import {Component, ChangeDetectionStrategy, Inject} from '@angular/core';\nimport {CommonModule} from '@angular/common';\n\nimport {DateTimePicker, MonthData} from '../../interfaces';\nimport {DateTimePeriodPickerBase} from '../dateTimePeriodPickerBase';\nimport {DatePipesModule} from '../../../datePipes.module';\nimport {DateApiObject} from '../../../../services';\nimport {FORMAT_PROVIDER} from '../../../../misc/tokens';\nimport {FormatProvider} from '../../../../interfaces';\n\n/**\n * Component used for displaying month picker\n */\n@Component(\n{\n selector: 'month-picker',\n templateUrl: 'monthPicker.component.html',\n host:\n {\n '[class.date-time-period]': 'true',\n },\n standalone: true,\n imports:\n [\n CommonModule,\n DatePipesModule,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class MonthPickerSAComponent<TDate = unknown> extends DateTimePeriodPickerBase<MonthData<TDate>, TDate> implements DateTimePicker<TDate>\n{\n //######################### constructor #########################\n constructor(@Inject(FORMAT_PROVIDER) protected formatProvider: FormatProvider,)\n {\n super();\n }\n\n //######################### protected methods - template bindings #########################\n\n /**\n * Selects month as value of day time picker\n * @param monthData - Month data that were selected\n */\n protected selectMonth(monthData: MonthData<TDate>): void\n {\n if(monthData.disabled)\n {\n return;\n }\n\n //single value\n if(!this.ranged)\n {\n //no value selected yet\n if(!this.singleValue?.isValid())\n {\n this.singleValue = this.displayDate?.clone() ?? this.dateApi.getValue(new Date());\n }\n\n this.singleValue.year(monthData.dateObj.year());\n this.singleValue.month(monthData.dateObj.month());\n this.singleValue.updateOriginal();\n }\n else\n {\n //TODO: range\n }\n\n this.valueChangeSubject.next();\n this.render();\n this.changeDetector.detectChanges();\n }\n\n /**\n * Changes displayed year to next year\n */\n protected nextYear(): void\n {\n this.displayDate?.addYears(1).updateOriginal();\n\n this.render();\n }\n\n /**\n * Changes displayed year to previous year\n */\n protected previousYear(): void\n {\n this.displayDate?.subtractYears(1).updateOriginal();\n\n this.render();\n }\n\n //######################### protected methods #########################\n\n /**\n * Renders current day picker data\n */\n protected render(): void\n {\n //same year only data change\n if(this.displayedDate && this.displayDate?.isSameYear(this.displayedDate))\n {\n this.setActive();\n this.updateMinMax();\n\n return;\n }\n\n this.displayedDate = this.displayDate?.value;\n this.periodData = [];\n\n if(!this.displayDate)\n {\n return;\n }\n\n const monthOfYear = this.displayDate.startOfYear().updateOriginal();\n\n for(let x = 0; x < 12; x++)\n {\n this.periodData.push(\n {\n active: false,\n disabled: false,\n date: monthOfYear.value,\n name: monthOfYear.format(this.dateApi.getFormat(this.formatProvider.monthNameShort)),\n dateObj: monthOfYear.clone(),\n });\n\n monthOfYear.addMonths(1);\n }\n\n this.displayDate.resetOriginal();\n\n this.setActive();\n this.updateMinMax();\n }\n\n //######################### protected methods - overrides #########################\n\n /**\n * @inheritdoc\n */\n protected onRender(): void\n {\n this.render();\n }\n\n /**\n * Tests whether provided value is in same period target value\n * @param val - Tested value\n * @param target - Target value to be tested against\n */\n protected isSamePeriod(val: DateApiObject<TDate>, target: TDate): boolean\n {\n return val.isSameMonth(target);\n }\n}","<div class=\"period\">\r\n <div class=\"fas fa-angle-left clickable\" (mousedown)=\"previousYear()\"></div>\r\n <div class=\"period-value\" [class.clickable]=\"canScaleUp\" (mousedown)=\"displayDate && canScaleUp ? scaleUpSubject.next(displayDate.value) : undefined\">{{displayDate?.value | dateFormat: 'year'}}</div>\r\n <div class=\"fas fa-angle-right clickable\" (mousedown)=\"nextYear()\"></div>\r\n</div>\r\n\r\n<div class=\"period-data\">\r\n <div *ngFor=\"let month of periodData\"\r\n class=\"period-datum clickable\"\r\n [class.active]=\"month.active\"\r\n [class.disabled]=\"month.disabled\"\r\n (mousedown)=\"canScaleDown && displayDate ? scaleDownSubject.next(month.dateObj.value) : selectMonth(month)\">{{month.name}}</div>\r\n</div>"]}
@@ -1,137 +0,0 @@
1
- import { Component, ChangeDetectionStrategy } from '@angular/core';
2
- import { CommonModule } from '@angular/common';
3
- import { ClickOutsideModule } from '@anglr/common';
4
- import { DatePipesModule } from '../../../datePipes.module';
5
- import { hours, minutes } from './rollerTimePicker.data';
6
- import { DateTimePeriodPickerBase } from '../dateTimePeriodPickerBase';
7
- import { LoopScrollDataSADirective, LoopScrollSADirective } from '../../directives';
8
- import * as i0 from "@angular/core";
9
- import * as i1 from "@angular/common";
10
- import * as i2 from "../../../../pipes/dateFormat.pipe";
11
- import * as i3 from "@anglr/common";
12
- /**
13
- * Component used for rendering roller time picker
14
- */
15
- export class RollerTimePickerSAComponent extends DateTimePeriodPickerBase {
16
- constructor() {
17
- super(...arguments);
18
- //######################### protected properties - template bindings #########################
19
- /**
20
- * Array of available hours
21
- */
22
- this.hours = hours;
23
- /**
24
- * Array of available minutes
25
- */
26
- this.minutes = minutes;
27
- /**
28
- * Indication whether are minutes open
29
- */
30
- this.minutesOpen = false;
31
- /**
32
- * Indication whether are hours open
33
- */
34
- this.hoursOpen = false;
35
- }
36
- /**
37
- * Current value of hour
38
- */
39
- get hour() {
40
- var _a, _b;
41
- return (_b = (_a = this.singleValue) === null || _a === void 0 ? void 0 : _a.hour()) !== null && _b !== void 0 ? _b : 0;
42
- }
43
- set hour(value) {
44
- var _a, _b, _c, _d;
45
- //no value selected yet
46
- if (!((_a = this.singleValue) === null || _a === void 0 ? void 0 : _a.isValid())) {
47
- this.singleValue = (_c = (_b = this.displayDate) === null || _b === void 0 ? void 0 : _b.clone()) !== null && _c !== void 0 ? _c : this.dateApi.getValue(new Date());
48
- }
49
- (_d = this.singleValue) === null || _d === void 0 ? void 0 : _d.hour(value);
50
- }
51
- /**
52
- * Current value of minute
53
- */
54
- get minute() {
55
- var _a, _b;
56
- return (_b = (_a = this.singleValue) === null || _a === void 0 ? void 0 : _a.minute()) !== null && _b !== void 0 ? _b : 0;
57
- }
58
- set minute(value) {
59
- var _a, _b, _c, _d;
60
- //no value selected yet
61
- if (!((_a = this.singleValue) === null || _a === void 0 ? void 0 : _a.isValid())) {
62
- this.singleValue = (_c = (_b = this.displayDate) === null || _b === void 0 ? void 0 : _b.clone()) !== null && _c !== void 0 ? _c : this.dateApi.getValue(new Date());
63
- }
64
- (_d = this.singleValue) === null || _d === void 0 ? void 0 : _d.minute(value);
65
- }
66
- //######################### protected methods - template bindings #########################
67
- /**
68
- * Sets hour
69
- * @param event - Mouse event that was triggered
70
- * @param value - Value to be set as hour
71
- * @returns
72
- */
73
- setHour(event, value) {
74
- var _a;
75
- if (!this.hoursOpen && event) {
76
- return;
77
- }
78
- if (this.hour == value) {
79
- this.hoursOpen = false;
80
- return;
81
- }
82
- this.hour = value;
83
- if (event) {
84
- this.hoursOpen = false;
85
- }
86
- (_a = this.singleValue) === null || _a === void 0 ? void 0 : _a.updateOriginal();
87
- this.valueChangeSubject.next();
88
- }
89
- /**
90
- * Sets minute
91
- * @param event - Mouse event that was triggered
92
- * @param value - Value to be set as minute
93
- * @returns
94
- */
95
- setMinute(event, value) {
96
- var _a;
97
- if (!this.minutesOpen && event) {
98
- return;
99
- }
100
- if (this.minute == value) {
101
- return;
102
- }
103
- this.minute = value;
104
- if (event) {
105
- this.minutesOpen = false;
106
- }
107
- (_a = this.singleValue) === null || _a === void 0 ? void 0 : _a.updateOriginal();
108
- this.valueChangeSubject.next();
109
- }
110
- //######################### protected methods - overrides #########################
111
- /**
112
- * @inheritdoc
113
- */
114
- onRender() {
115
- }
116
- /**
117
- * Tests whether provided value is in same period target value
118
- */
119
- isSamePeriod() {
120
- return false;
121
- }
122
- }
123
- RollerTimePickerSAComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: RollerTimePickerSAComponent, deps: null, target: i0.ɵɵFactoryTarget.Component });
124
- RollerTimePickerSAComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "15.0.4", type: RollerTimePickerSAComponent, isStandalone: true, selector: "roller-time-picker", host: { properties: { "class.date-time-period": "true" } }, usesInheritance: true, ngImport: i0, template: "<div class=\"flex-row\" style=\"justify-content: center;\">\n <div [class.clickable]=\"canScaleUp\" (mousedown)=\"displayDate && canScaleUp ? scaleUpSubject.next(displayDate.value) : undefined\">{{displayDate?.value | dateFormat: 'date'}}</div>\n</div>\n\n<div class=\"time-area\">\n <div class=\"value-container\"\n [clickOutside]=\"true\"\n (clickOutsideChange)=\"hoursOpen = false\"\n [clickOutsideElement]=\"hoursScroll\">\n <div #hoursScroll\n class=\"roller-scroll\"\n [class.open]=\"hoursOpen\"\n [loopScroll]=\"hour\"\n [open]=\"hoursOpen\"\n (loopScrollChange)=\"setHour(null, $event)\"\n (mousedown)=\"hoursOpen = !hoursOpen\">\n <div *ngFor=\"let hour of hours | slice: -14\"\n [loopScrollData]=\"hour?.data\"\n [clone]=\"true\"\n class=\"roller-item\"\n (mousedown)=\"setHour($event, hour?.data)\">{{hour?.displayText}}</div>\n\n <div *ngFor=\"let hour of hours\"\n [loopScrollData]=\"hour?.data\"\n class=\"roller-item\"\n (mousedown)=\"setHour($event, hour?.data)\">{{hour?.displayText}}</div>\n\n <div *ngFor=\"let hour of hours | slice: 0: 14\"\n [loopScrollData]=\"hour?.data\"\n [clone]=\"true\"\n class=\"roller-item\"\n (mousedown)=\"setHour($event, hour?.data)\">{{hour?.displayText}}</div>\n </div>\n </div>\n\n <div class=\"minute-second-separator\">:</div>\n\n <div class=\"value-container\"\n [clickOutside]=\"true\"\n (clickOutsideChange)=\"minutesOpen = false\"\n [clickOutsideElement]=\"minutesScroll\">\n <div #minutesScroll\n class=\"roller-scroll\"\n [class.open]=\"minutesOpen\"\n [loopScroll]=\"minute\"\n [open]=\"minutesOpen\"\n (loopScrollChange)=\"setMinute(null, $event)\"\n (mousedown)=\"minutesOpen = !minutesOpen\">\n <div *ngFor=\"let minute of minutes | slice: -14\"\n [loopScrollData]=\"minute?.data\"\n [clone]=\"true\"\n class=\"roller-item\"\n (mousedown)=\"setMinute($event, minute?.data)\">{{minute?.displayText}}</div>\n\n <div *ngFor=\"let minute of minutes\"\n [loopScrollData]=\"minute?.data\"\n class=\"roller-item\"\n (mousedown)=\"setMinute($event, minute?.data)\">{{minute?.displayText}}</div>\n\n <div *ngFor=\"let minute of minutes | slice: 0: 14\"\n [loopScrollData]=\"minute?.data\"\n [clone]=\"true\"\n class=\"roller-item\"\n (mousedown)=\"setMinute($event, minute?.data)\">{{minute?.displayText}}</div>\n </div>\n </div>\n</div>\n", dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i1.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "pipe", type: i1.SlicePipe, name: "slice" }, { kind: "ngmodule", type: DatePipesModule }, { kind: "pipe", type: i2.DateFormatPipe, name: "dateFormat" }, { kind: "ngmodule", type: ClickOutsideModule }, { kind: "directive", type: i3.ClickOutsideDirective, selector: "[clickOutside]", inputs: ["clickOutside", "clickOutsideElement"], outputs: ["clickOutsideChange"] }, { kind: "directive", type: LoopScrollDataSADirective, selector: "[loopScrollData]", inputs: ["loopScrollData", "clone"] }, { kind: "directive", type: LoopScrollSADirective, selector: "[loopScroll]", inputs: ["loopScroll", "open"], outputs: ["loopScrollChange"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush });
125
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "15.0.4", ngImport: i0, type: RollerTimePickerSAComponent, decorators: [{
126
- type: Component,
127
- args: [{ selector: 'roller-time-picker', host: {
128
- '[class.date-time-period]': 'true',
129
- }, standalone: true, imports: [
130
- CommonModule,
131
- DatePipesModule,
132
- ClickOutsideModule,
133
- LoopScrollDataSADirective,
134
- LoopScrollSADirective,
135
- ], changeDetection: ChangeDetectionStrategy.OnPush, template: "<div class=\"flex-row\" style=\"justify-content: center;\">\n <div [class.clickable]=\"canScaleUp\" (mousedown)=\"displayDate && canScaleUp ? scaleUpSubject.next(displayDate.value) : undefined\">{{displayDate?.value | dateFormat: 'date'}}</div>\n</div>\n\n<div class=\"time-area\">\n <div class=\"value-container\"\n [clickOutside]=\"true\"\n (clickOutsideChange)=\"hoursOpen = false\"\n [clickOutsideElement]=\"hoursScroll\">\n <div #hoursScroll\n class=\"roller-scroll\"\n [class.open]=\"hoursOpen\"\n [loopScroll]=\"hour\"\n [open]=\"hoursOpen\"\n (loopScrollChange)=\"setHour(null, $event)\"\n (mousedown)=\"hoursOpen = !hoursOpen\">\n <div *ngFor=\"let hour of hours | slice: -14\"\n [loopScrollData]=\"hour?.data\"\n [clone]=\"true\"\n class=\"roller-item\"\n (mousedown)=\"setHour($event, hour?.data)\">{{hour?.displayText}}</div>\n\n <div *ngFor=\"let hour of hours\"\n [loopScrollData]=\"hour?.data\"\n class=\"roller-item\"\n (mousedown)=\"setHour($event, hour?.data)\">{{hour?.displayText}}</div>\n\n <div *ngFor=\"let hour of hours | slice: 0: 14\"\n [loopScrollData]=\"hour?.data\"\n [clone]=\"true\"\n class=\"roller-item\"\n (mousedown)=\"setHour($event, hour?.data)\">{{hour?.displayText}}</div>\n </div>\n </div>\n\n <div class=\"minute-second-separator\">:</div>\n\n <div class=\"value-container\"\n [clickOutside]=\"true\"\n (clickOutsideChange)=\"minutesOpen = false\"\n [clickOutsideElement]=\"minutesScroll\">\n <div #minutesScroll\n class=\"roller-scroll\"\n [class.open]=\"minutesOpen\"\n [loopScroll]=\"minute\"\n [open]=\"minutesOpen\"\n (loopScrollChange)=\"setMinute(null, $event)\"\n (mousedown)=\"minutesOpen = !minutesOpen\">\n <div *ngFor=\"let minute of minutes | slice: -14\"\n [loopScrollData]=\"minute?.data\"\n [clone]=\"true\"\n class=\"roller-item\"\n (mousedown)=\"setMinute($event, minute?.data)\">{{minute?.displayText}}</div>\n\n <div *ngFor=\"let minute of minutes\"\n [loopScrollData]=\"minute?.data\"\n class=\"roller-item\"\n (mousedown)=\"setMinute($event, minute?.data)\">{{minute?.displayText}}</div>\n\n <div *ngFor=\"let minute of minutes | slice: 0: 14\"\n [loopScrollData]=\"minute?.data\"\n [clone]=\"true\"\n class=\"roller-item\"\n (mousedown)=\"setMinute($event, minute?.data)\">{{minute?.displayText}}</div>\n </div>\n </div>\n</div>\n" }]
136
- }] });
137
- //# sourceMappingURL=rollerTimePicker.component.js.map
@@ -1 +0,0 @@
1
- {"version":3,"file":"rollerTimePicker.component.js","sourceRoot":"","sources":["../../../../../../src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.ts","../../../../../../src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.html"],"names":[],"mappings":"AAAA,OAAO,EAAC,SAAS,EAAE,uBAAuB,EAAC,MAAM,eAAe,CAAC;AACjE,OAAO,EAAC,YAAY,EAAC,MAAM,iBAAiB,CAAC;AAC7C,OAAO,EAAC,kBAAkB,EAAC,MAAM,eAAe,CAAC;AAEjD,OAAO,EAAC,eAAe,EAAC,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AAC;;wHAzIQ,2BAA2B;4GAA3B,2BAA2B,iKChCxC,y4FAmEA,2CD3CQ,YAAY,gNACZ,eAAe,6FACf,kBAAkB,oMAClB,yBAAyB,kGACzB,qBAAqB;2FAIhB,2BAA2B;kBAnBvC,SAAS;+BAEI,oBAAoB,QAG9B;wBACI,0BAA0B,EAAE,MAAM;qBACrC,cACW,IAAI,WAEhB;wBACI,YAAY;wBACZ,eAAe;wBACf,kBAAkB;wBAClB,yBAAyB;wBACzB,qBAAqB;qBACxB,mBACgB,uBAAuB,CAAC,MAAM","sourcesContent":["import {Component, ChangeDetectionStrategy} from '@angular/core';\nimport {CommonModule} from '@angular/common';\nimport {ClickOutsideModule} from '@anglr/common';\n\nimport {DatePipesModule} from '../../../datePipes.module';\nimport {hours, minutes} from './rollerTimePicker.data';\nimport {DateTimePicker, PeriodData} from '../../interfaces';\nimport {DateTimePeriodPickerBase} from '../dateTimePeriodPickerBase';\nimport {LoopScrollData, LoopScrollDataSADirective, LoopScrollSADirective} from '../../directives';\n\n/**\n * Component used for rendering roller time picker\n */\n@Component(\n{\n selector: 'roller-time-picker',\n templateUrl: 'rollerTimePicker.component.html',\n host:\n {\n '[class.date-time-period]': 'true',\n },\n standalone: true,\n imports:\n [\n CommonModule,\n DatePipesModule,\n ClickOutsideModule,\n LoopScrollDataSADirective,\n LoopScrollSADirective,\n ],\n changeDetection: ChangeDetectionStrategy.OnPush\n})\nexport class RollerTimePickerSAComponent<TDate = unknown> extends DateTimePeriodPickerBase<PeriodData<TDate>, TDate> implements DateTimePicker<TDate>\n{\n //######################### protected properties - template bindings #########################\n\n /**\n * Array of available hours\n */\n protected hours: LoopScrollData[] = hours;\n\n /**\n * Array of available minutes\n */\n protected minutes: LoopScrollData[] = minutes;\n\n /**\n * Indication whether are minutes open\n */\n protected minutesOpen: boolean = false;\n\n /**\n * Indication whether are hours open\n */\n protected hoursOpen: boolean = false;\n\n /**\n * Current value of hour\n */\n protected get hour(): number\n {\n return this.singleValue?.hour() ?? 0;\n }\n protected set hour(value: number)\n {\n //no value selected yet\n if(!this.singleValue?.isValid())\n {\n this.singleValue = this.displayDate?.clone() ?? this.dateApi.getValue(new Date());\n }\n\n this.singleValue?.hour(value);\n }\n\n /**\n * Current value of minute\n */\n protected get minute(): number\n {\n return this.singleValue?.minute() ?? 0;\n }\n protected set minute(value: number)\n {\n //no value selected yet\n if(!this.singleValue?.isValid())\n {\n this.singleValue = this.displayDate?.clone() ?? this.dateApi.getValue(new Date());\n }\n\n this.singleValue?.minute(value);\n }\n\n //######################### protected methods - template bindings #########################\n\n /**\n * Sets hour\n * @param event - Mouse event that was triggered\n * @param value - Value to be set as hour\n * @returns \n */\n protected setHour<TData = unknown>(event: MouseEvent|null, value: TData): void\n {\n if(!this.hoursOpen && event)\n {\n return;\n }\n\n if(this.hour == value as unknown as number)\n {\n this.hoursOpen = false;\n\n return;\n }\n\n this.hour = value as unknown as number;\n \n if(event)\n {\n this.hoursOpen = false;\n }\n\n this.singleValue?.updateOriginal();\n this.valueChangeSubject.next();\n }\n\n /**\n * Sets minute\n * @param event - Mouse event that was triggered\n * @param value - Value to be set as minute\n * @returns \n */\n protected setMinute<TData = unknown>(event: MouseEvent|null, value: TData): void\n {\n if(!this.minutesOpen && event)\n {\n return;\n }\n\n if(this.minute == value as unknown as number)\n {\n return;\n }\n\n this.minute = value as unknown as number;\n \n if(event)\n {\n this.minutesOpen = false;\n }\n\n this.singleValue?.updateOriginal();\n this.valueChangeSubject.next();\n }\n\n //######################### protected methods - overrides #########################\n\n /**\n * @inheritdoc\n */\n protected onRender(): void\n {\n }\n\n /**\n * Tests whether provided value is in same period target value\n */\n protected isSamePeriod(): boolean\n {\n return false;\n }\n}","<div class=\"flex-row\" style=\"justify-content: center;\">\n <div [class.clickable]=\"canScaleUp\" (mousedown)=\"displayDate && canScaleUp ? scaleUpSubject.next(displayDate.value) : undefined\">{{displayDate?.value | dateFormat: 'date'}}</div>\n</div>\n\n<div class=\"time-area\">\n <div class=\"value-container\"\n [clickOutside]=\"true\"\n (clickOutsideChange)=\"hoursOpen = false\"\n [clickOutsideElement]=\"hoursScroll\">\n <div #hoursScroll\n class=\"roller-scroll\"\n [class.open]=\"hoursOpen\"\n [loopScroll]=\"hour\"\n [open]=\"hoursOpen\"\n (loopScrollChange)=\"setHour(null, $event)\"\n (mousedown)=\"hoursOpen = !hoursOpen\">\n <div *ngFor=\"let hour of hours | slice: -14\"\n [loopScrollData]=\"hour?.data\"\n [clone]=\"true\"\n class=\"roller-item\"\n (mousedown)=\"setHour($event, hour?.data)\">{{hour?.displayText}}</div>\n\n <div *ngFor=\"let hour of hours\"\n [loopScrollData]=\"hour?.data\"\n class=\"roller-item\"\n (mousedown)=\"setHour($event, hour?.data)\">{{hour?.displayText}}</div>\n\n <div *ngFor=\"let hour of hours | slice: 0: 14\"\n [loopScrollData]=\"hour?.data\"\n [clone]=\"true\"\n class=\"roller-item\"\n (mousedown)=\"setHour($event, hour?.data)\">{{hour?.displayText}}</div>\n </div>\n </div>\n\n <div class=\"minute-second-separator\">:</div>\n\n <div class=\"value-container\"\n [clickOutside]=\"true\"\n (clickOutsideChange)=\"minutesOpen = false\"\n [clickOutsideElement]=\"minutesScroll\">\n <div #minutesScroll\n class=\"roller-scroll\"\n [class.open]=\"minutesOpen\"\n [loopScroll]=\"minute\"\n [open]=\"minutesOpen\"\n (loopScrollChange)=\"setMinute(null, $event)\"\n (mousedown)=\"minutesOpen = !minutesOpen\">\n <div *ngFor=\"let minute of minutes | slice: -14\"\n [loopScrollData]=\"minute?.data\"\n [clone]=\"true\"\n class=\"roller-item\"\n (mousedown)=\"setMinute($event, minute?.data)\">{{minute?.displayText}}</div>\n\n <div *ngFor=\"let minute of minutes\"\n [loopScrollData]=\"minute?.data\"\n class=\"roller-item\"\n (mousedown)=\"setMinute($event, minute?.data)\">{{minute?.displayText}}</div>\n\n <div *ngFor=\"let minute of minutes | slice: 0: 14\"\n [loopScrollData]=\"minute?.data\"\n [clone]=\"true\"\n class=\"roller-item\"\n (mousedown)=\"setMinute($event, minute?.data)\">{{minute?.displayText}}</div>\n </div>\n </div>\n</div>\n"]}