@anglr/datetime 5.0.0 → 6.0.0-beta.20221223060503

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (584) hide show
  1. package/changelog.md +155 -1
  2. package/date-fns/src/services/dateFnsDateApi.service.d.ts +26 -14
  3. package/date-fns/src/services/dateFnsDateApi.service.d.ts.map +1 -1
  4. package/es2015/date-fns/src/services/dateFnsDateApi.service.js +37 -6
  5. package/es2015/date-fns/src/services/dateFnsDateApi.service.js.map +1 -1
  6. package/es2015/moment/src/services/momentDateApi.service.js +35 -3
  7. package/es2015/moment/src/services/momentDateApi.service.js.map +1 -1
  8. package/es2015/src/directives/index.js +1 -0
  9. package/es2015/src/directives/index.js.map +1 -1
  10. package/es2015/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js +32 -0
  11. package/es2015/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js.map +1 -0
  12. package/es2015/src/directives/withTime/withTime.directive.js +5 -5
  13. package/es2015/src/directives/withTime/withTime.directive.js.map +1 -1
  14. package/es2015/src/directives/withToday/withToday.directive.js +5 -5
  15. package/es2015/src/directives/withToday/withToday.directive.js.map +1 -1
  16. package/es2015/src/index.js +0 -8
  17. package/es2015/src/index.js.map +1 -1
  18. package/es2015/src/interfaces/dateTime/datetime.interface.js.map +1 -1
  19. package/es2015/src/legacy/picker/components/picker/picker.component.animations.js +93 -70
  20. package/es2015/src/legacy/picker/components/picker/picker.component.animations.js.map +1 -1
  21. package/es2015/src/legacy/selector/components/inputDateTime/inputDateTime.component.js +487 -436
  22. package/es2015/src/legacy/selector/components/inputDateTime/inputDateTime.component.js.map +1 -1
  23. package/es2015/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js +366 -324
  24. package/es2015/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js.map +1 -1
  25. package/es2015/src/misc/validators.js +0 -57
  26. package/es2015/src/misc/validators.js.map +1 -1
  27. package/es2015/src/modules/calendar/components/index.js +2 -0
  28. package/es2015/src/modules/calendar/components/index.js.map +1 -0
  29. package/es2015/src/modules/calendar/components/monthCalendar/monthCalendar.component.js +198 -0
  30. package/es2015/src/modules/calendar/components/monthCalendar/monthCalendar.component.js.map +1 -0
  31. package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js +2 -0
  32. package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js.map +1 -0
  33. package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js +27 -0
  34. package/es2015/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js.map +1 -0
  35. package/es2015/src/modules/calendar/directives/index.js +3 -0
  36. package/es2015/src/modules/calendar/directives/index.js.map +1 -0
  37. package/es2015/src/modules/calendar/index.js +7 -0
  38. package/es2015/src/modules/calendar/index.js.map +1 -0
  39. package/es2015/src/modules/calendar/interfaces/calendarDayData.interface.js +2 -0
  40. package/es2015/src/modules/calendar/interfaces/calendarDayData.interface.js.map +1 -0
  41. package/es2015/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js +2 -0
  42. package/es2015/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js.map +1 -0
  43. package/es2015/src/modules/calendar/interfaces/eventData.interface.js +2 -0
  44. package/es2015/src/modules/calendar/interfaces/eventData.interface.js.map +1 -0
  45. package/es2015/src/modules/calendar/interfaces/index.js +4 -0
  46. package/es2015/src/modules/calendar/interfaces/index.js.map +1 -0
  47. package/es2015/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js +27 -0
  48. package/es2015/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js.map +1 -0
  49. package/es2015/src/modules/calendar/misc/enums/index.js +3 -0
  50. package/es2015/src/modules/calendar/misc/enums/index.js.map +1 -0
  51. package/es2015/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js +19 -0
  52. package/es2015/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js.map +1 -0
  53. package/es2015/src/modules/calendar/misc/index.js +2 -0
  54. package/es2015/src/modules/calendar/misc/index.js.map +1 -0
  55. package/es2015/src/modules/calendar/modules/index.js +2 -0
  56. package/es2015/src/modules/calendar/modules/index.js.map +1 -0
  57. package/es2015/src/modules/calendar/modules/monthCalendar.module.js +32 -0
  58. package/es2015/src/modules/calendar/modules/monthCalendar.module.js.map +1 -0
  59. package/es2015/src/modules/calendar/services/eventParser/eventParser.service.js +75 -0
  60. package/es2015/src/modules/calendar/services/eventParser/eventParser.service.js.map +1 -0
  61. package/es2015/src/modules/calendar/services/index.js +2 -0
  62. package/es2015/src/modules/calendar/services/index.js.map +1 -0
  63. package/es2015/src/modules/datePipes.module.js +4 -4
  64. package/es2015/src/modules/dateTime/directives/dateTime/dateTime.directive.js +8 -7
  65. package/es2015/src/modules/dateTime/directives/dateTime/dateTime.directive.js.map +1 -1
  66. package/es2015/src/modules/dateTime/directives/dateTimeBase.js +5 -5
  67. package/es2015/src/modules/dateTime/directives/dateTimeBase.js.map +1 -1
  68. package/es2015/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js +7 -6
  69. package/es2015/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js.map +1 -1
  70. package/es2015/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js +10 -9
  71. package/es2015/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js.map +1 -1
  72. package/es2015/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js +7 -6
  73. package/es2015/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js.map +1 -1
  74. package/es2015/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js +7 -6
  75. package/es2015/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js.map +1 -1
  76. package/es2015/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js +7 -6
  77. package/es2015/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js.map +1 -1
  78. package/es2015/src/modules/dateTime/modules/dateTime.module.js +28 -28
  79. package/es2015/src/modules/dateTime/modules/dateTime.module.js.map +1 -1
  80. package/es2015/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.js.map +1 -1
  81. package/es2015/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js +5 -5
  82. package/es2015/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js.map +1 -1
  83. package/es2015/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js +3 -3
  84. package/es2015/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js.map +1 -1
  85. package/es2015/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js +3 -3
  86. package/es2015/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js.map +1 -1
  87. package/es2015/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js +6 -7
  88. package/es2015/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js.map +1 -1
  89. package/es2015/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.js.map +1 -1
  90. package/es2015/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js +3 -3
  91. package/es2015/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js.map +1 -1
  92. package/es2015/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js +8 -7
  93. package/es2015/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js.map +1 -1
  94. package/es2015/src/modules/dateTimePicker/directives/index.js +3 -0
  95. package/es2015/src/modules/dateTimePicker/directives/index.js.map +1 -1
  96. package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.js +222 -0
  97. package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.js.map +1 -0
  98. package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js +2 -0
  99. package/es2015/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js.map +1 -0
  100. package/es2015/src/{legacy/picker → modules/dateTimePicker}/directives/loopScrollData/loopScrollData.directive.js +6 -5
  101. package/es2015/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.js.map +1 -0
  102. package/es2015/src/modules/dateTimePicker/interfaces/index.js +1 -0
  103. package/es2015/src/modules/dateTimePicker/interfaces/index.js.map +1 -1
  104. package/es2015/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js +2 -0
  105. package/es2015/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js.map +1 -0
  106. package/es2015/src/modules/dateTimePicker/modules/dateTimePicker.module.js +10 -9
  107. package/es2015/src/modules/dateTimePicker/modules/dateTimePicker.module.js.map +1 -1
  108. package/es2015/src/modules/index.js +1 -0
  109. package/es2015/src/modules/index.js.map +1 -1
  110. package/es2015/src/pipes/dateConvert.pipe.js +3 -3
  111. package/es2015/src/pipes/dateConvert.pipe.js.map +1 -1
  112. package/es2015/src/pipes/dateFormat.pipe.js +3 -3
  113. package/es2015/src/pipes/dateFormat.pipe.js.map +1 -1
  114. package/es2015/src/services/dateApi/dateApi.interface.js.map +1 -1
  115. package/es2015/src/services/datePositionParser/datePositionParser.service.js +5 -3
  116. package/es2015/src/services/datePositionParser/datePositionParser.service.js.map +1 -1
  117. package/es2015/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js +3 -3
  118. package/es2015/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js.map +1 -1
  119. package/es2015/src/services/dateValueProvider/dateValueProvider.service.js +3 -3
  120. package/es2015/src/services/dateValueProvider/dateValueProvider.service.js.map +1 -1
  121. package/es2020/date-fns/src/services/dateFnsDateApi.service.js +37 -6
  122. package/es2020/date-fns/src/services/dateFnsDateApi.service.js.map +1 -1
  123. package/es2020/moment/src/services/momentDateApi.service.js +35 -3
  124. package/es2020/moment/src/services/momentDateApi.service.js.map +1 -1
  125. package/es2020/src/directives/index.js +1 -0
  126. package/es2020/src/directives/index.js.map +1 -1
  127. package/es2020/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js +32 -0
  128. package/es2020/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.js.map +1 -0
  129. package/es2020/src/directives/withTime/withTime.directive.js +5 -5
  130. package/es2020/src/directives/withTime/withTime.directive.js.map +1 -1
  131. package/es2020/src/directives/withToday/withToday.directive.js +5 -5
  132. package/es2020/src/directives/withToday/withToday.directive.js.map +1 -1
  133. package/es2020/src/index.js +0 -8
  134. package/es2020/src/index.js.map +1 -1
  135. package/es2020/src/interfaces/dateTime/datetime.interface.js.map +1 -1
  136. package/es2020/src/legacy/picker/components/picker/picker.component.animations.js +93 -70
  137. package/es2020/src/legacy/picker/components/picker/picker.component.animations.js.map +1 -1
  138. package/es2020/src/legacy/selector/components/inputDateTime/inputDateTime.component.js +487 -432
  139. package/es2020/src/legacy/selector/components/inputDateTime/inputDateTime.component.js.map +1 -1
  140. package/es2020/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js +366 -321
  141. package/es2020/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.js.map +1 -1
  142. package/es2020/src/misc/validators.js +0 -57
  143. package/es2020/src/misc/validators.js.map +1 -1
  144. package/es2020/src/modules/calendar/components/index.js +2 -0
  145. package/es2020/src/modules/calendar/components/index.js.map +1 -0
  146. package/es2020/src/modules/calendar/components/monthCalendar/monthCalendar.component.js +195 -0
  147. package/es2020/src/modules/calendar/components/monthCalendar/monthCalendar.component.js.map +1 -0
  148. package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js +2 -0
  149. package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.js.map +1 -0
  150. package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js +27 -0
  151. package/es2020/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.js.map +1 -0
  152. package/es2020/src/modules/calendar/directives/index.js +3 -0
  153. package/es2020/src/modules/calendar/directives/index.js.map +1 -0
  154. package/es2020/src/modules/calendar/index.js +7 -0
  155. package/es2020/src/modules/calendar/index.js.map +1 -0
  156. package/es2020/src/modules/calendar/interfaces/calendarDayData.interface.js +2 -0
  157. package/es2020/src/modules/calendar/interfaces/calendarDayData.interface.js.map +1 -0
  158. package/es2020/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js +2 -0
  159. package/es2020/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.js.map +1 -0
  160. package/es2020/src/modules/calendar/interfaces/eventData.interface.js +2 -0
  161. package/es2020/src/modules/calendar/interfaces/eventData.interface.js.map +1 -0
  162. package/es2020/src/modules/calendar/interfaces/index.js +4 -0
  163. package/es2020/src/modules/calendar/interfaces/index.js.map +1 -0
  164. package/es2020/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js +27 -0
  165. package/es2020/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.js.map +1 -0
  166. package/es2020/src/modules/calendar/misc/enums/index.js +3 -0
  167. package/es2020/src/modules/calendar/misc/enums/index.js.map +1 -0
  168. package/es2020/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js +19 -0
  169. package/es2020/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.js.map +1 -0
  170. package/es2020/src/modules/calendar/misc/index.js +2 -0
  171. package/es2020/src/modules/calendar/misc/index.js.map +1 -0
  172. package/es2020/src/modules/calendar/modules/index.js +2 -0
  173. package/es2020/src/modules/calendar/modules/index.js.map +1 -0
  174. package/es2020/src/modules/calendar/modules/monthCalendar.module.js +32 -0
  175. package/es2020/src/modules/calendar/modules/monthCalendar.module.js.map +1 -0
  176. package/es2020/src/modules/calendar/services/eventParser/eventParser.service.js +74 -0
  177. package/es2020/src/modules/calendar/services/eventParser/eventParser.service.js.map +1 -0
  178. package/es2020/src/modules/calendar/services/index.js +2 -0
  179. package/es2020/src/modules/calendar/services/index.js.map +1 -0
  180. package/es2020/src/modules/datePipes.module.js +4 -4
  181. package/es2020/src/modules/dateTime/directives/dateTime/dateTime.directive.js +8 -7
  182. package/es2020/src/modules/dateTime/directives/dateTime/dateTime.directive.js.map +1 -1
  183. package/es2020/src/modules/dateTime/directives/dateTimeBase.js +5 -5
  184. package/es2020/src/modules/dateTime/directives/dateTimeBase.js.map +1 -1
  185. package/es2020/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js +7 -6
  186. package/es2020/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.js.map +1 -1
  187. package/es2020/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js +10 -9
  188. package/es2020/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.js.map +1 -1
  189. package/es2020/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js +7 -6
  190. package/es2020/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.js.map +1 -1
  191. package/es2020/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js +7 -6
  192. package/es2020/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.js.map +1 -1
  193. package/es2020/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js +7 -6
  194. package/es2020/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.js.map +1 -1
  195. package/es2020/src/modules/dateTime/modules/dateTime.module.js +28 -28
  196. package/es2020/src/modules/dateTime/modules/dateTime.module.js.map +1 -1
  197. package/es2020/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.js.map +1 -1
  198. package/es2020/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js +5 -5
  199. package/es2020/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.js.map +1 -1
  200. package/es2020/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js +3 -3
  201. package/es2020/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.js.map +1 -1
  202. package/es2020/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js +3 -3
  203. package/es2020/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.js.map +1 -1
  204. package/es2020/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js +6 -7
  205. package/es2020/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.js.map +1 -1
  206. package/es2020/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.js.map +1 -1
  207. package/es2020/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js +3 -3
  208. package/es2020/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.js.map +1 -1
  209. package/es2020/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js +9 -8
  210. package/es2020/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.js.map +1 -1
  211. package/es2020/src/modules/dateTimePicker/directives/index.js +3 -0
  212. package/es2020/src/modules/dateTimePicker/directives/index.js.map +1 -1
  213. package/es2020/src/{legacy/picker → modules/dateTimePicker}/directives/loopScroll/loopScroll.directive.js +65 -56
  214. package/es2020/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.js.map +1 -0
  215. package/es2020/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js +2 -0
  216. package/es2020/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.js.map +1 -0
  217. package/es2020/src/{legacy/picker → modules/dateTimePicker}/directives/loopScrollData/loopScrollData.directive.js +6 -5
  218. package/es2020/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.js.map +1 -0
  219. package/es2020/src/modules/dateTimePicker/interfaces/index.js +1 -0
  220. package/es2020/src/modules/dateTimePicker/interfaces/index.js.map +1 -1
  221. package/es2020/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js +2 -0
  222. package/es2020/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.js.map +1 -0
  223. package/es2020/src/modules/dateTimePicker/modules/dateTimePicker.module.js +10 -9
  224. package/es2020/src/modules/dateTimePicker/modules/dateTimePicker.module.js.map +1 -1
  225. package/es2020/src/modules/index.js +1 -0
  226. package/es2020/src/modules/index.js.map +1 -1
  227. package/es2020/src/pipes/dateConvert.pipe.js +3 -3
  228. package/es2020/src/pipes/dateConvert.pipe.js.map +1 -1
  229. package/es2020/src/pipes/dateFormat.pipe.js +3 -3
  230. package/es2020/src/pipes/dateFormat.pipe.js.map +1 -1
  231. package/es2020/src/services/dateApi/dateApi.interface.js.map +1 -1
  232. package/es2020/src/services/datePositionParser/datePositionParser.service.js +5 -3
  233. package/es2020/src/services/datePositionParser/datePositionParser.service.js.map +1 -1
  234. package/es2020/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js +3 -3
  235. package/es2020/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.js.map +1 -1
  236. package/es2020/src/services/dateValueProvider/dateValueProvider.service.js +3 -3
  237. package/es2020/src/services/dateValueProvider/dateValueProvider.service.js.map +1 -1
  238. package/moment/src/services/momentDateApi.service.d.ts +25 -12
  239. package/moment/src/services/momentDateApi.service.d.ts.map +1 -1
  240. package/package.json +27 -36
  241. package/src/directives/index.d.ts +1 -0
  242. package/src/directives/index.d.ts.map +1 -1
  243. package/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.d.ts +11 -0
  244. package/src/directives/simpleDatePickerInput/simpleDatePickerInput.directive.d.ts.map +1 -0
  245. package/src/directives/withTime/withTime.directive.d.ts +3 -3
  246. package/src/directives/withTime/withTime.directive.d.ts.map +1 -1
  247. package/src/directives/withToday/withToday.directive.d.ts +3 -3
  248. package/src/directives/withToday/withToday.directive.d.ts.map +1 -1
  249. package/src/index.d.ts +0 -8
  250. package/src/index.d.ts.map +1 -1
  251. package/src/interfaces/dateTime/datetime.interface.d.ts +1 -22
  252. package/src/interfaces/dateTime/datetime.interface.d.ts.map +1 -1
  253. package/src/legacy/picker/components/picker/picker.component.animations.d.ts +0 -4
  254. package/src/legacy/picker/components/picker/picker.component.animations.d.ts.map +1 -1
  255. package/src/legacy/selector/components/inputDateTime/inputDateTime.component.d.ts +0 -185
  256. package/src/legacy/selector/components/inputDateTime/inputDateTime.component.d.ts.map +1 -1
  257. package/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.d.ts +0 -169
  258. package/src/legacy/selector/components/simpleInputDateTime/simpleInputDateTime.component.d.ts.map +1 -1
  259. package/src/misc/validators.d.ts +0 -23
  260. package/src/misc/validators.d.ts.map +1 -1
  261. package/src/modules/calendar/components/index.d.ts +2 -0
  262. package/src/modules/calendar/components/index.d.ts.map +1 -0
  263. package/src/modules/calendar/components/monthCalendar/monthCalendar.component.d.ts +94 -0
  264. package/src/modules/calendar/components/monthCalendar/monthCalendar.component.d.ts.map +1 -0
  265. package/src/modules/calendar/components/monthCalendar/monthCalendar.component.html +15 -0
  266. package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.d.ts +11 -0
  267. package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.context.d.ts.map +1 -0
  268. package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.d.ts +17 -0
  269. package/src/modules/calendar/directives/calendarDayTemplate/calendarDayTemplate.directive.d.ts.map +1 -0
  270. package/src/modules/calendar/directives/index.d.ts +3 -0
  271. package/src/modules/calendar/directives/index.d.ts.map +1 -0
  272. package/src/modules/calendar/index.d.ts +7 -0
  273. package/src/modules/calendar/index.d.ts.map +1 -0
  274. package/src/modules/calendar/interfaces/calendarDayData.interface.d.ts +31 -0
  275. package/src/modules/calendar/interfaces/calendarDayData.interface.d.ts.map +1 -0
  276. package/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.d.ts +19 -0
  277. package/src/modules/calendar/interfaces/calendarEventDayMetadata.interface.d.ts.map +1 -0
  278. package/src/modules/calendar/interfaces/eventData.interface.d.ts +37 -0
  279. package/src/modules/calendar/interfaces/eventData.interface.d.ts.map +1 -0
  280. package/src/modules/calendar/interfaces/index.d.ts +4 -0
  281. package/src/modules/calendar/interfaces/index.d.ts.map +1 -0
  282. package/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.d.ts +26 -0
  283. package/src/modules/calendar/misc/enums/calendarDayAspectRatio.enum.d.ts.map +1 -0
  284. package/src/modules/calendar/misc/enums/index.d.ts +3 -0
  285. package/src/modules/calendar/misc/enums/index.d.ts.map +1 -0
  286. package/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.d.ts +18 -0
  287. package/src/modules/calendar/misc/enums/monthCalendarDayFormat.enum.d.ts.map +1 -0
  288. package/src/modules/calendar/misc/index.d.ts +2 -0
  289. package/src/modules/calendar/misc/index.d.ts.map +1 -0
  290. package/src/modules/calendar/modules/index.d.ts +2 -0
  291. package/src/modules/calendar/modules/index.d.ts.map +1 -0
  292. package/src/modules/calendar/modules/monthCalendar.module.d.ts +13 -0
  293. package/src/modules/calendar/modules/monthCalendar.module.d.ts.map +1 -0
  294. package/src/modules/calendar/services/eventParser/eventParser.service.d.ts +18 -0
  295. package/src/modules/calendar/services/eventParser/eventParser.service.d.ts.map +1 -0
  296. package/src/modules/calendar/services/index.d.ts +2 -0
  297. package/src/modules/calendar/services/index.d.ts.map +1 -0
  298. package/src/modules/dateTime/directives/dateTime/dateTime.directive.d.ts +3 -3
  299. package/src/modules/dateTime/directives/dateTime/dateTime.directive.d.ts.map +1 -1
  300. package/src/modules/dateTime/directives/dateTimeBase.d.ts +3 -3
  301. package/src/modules/dateTime/directives/dateTimeBase.d.ts.map +1 -1
  302. package/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.d.ts +3 -3
  303. package/src/modules/dateTime/directives/dateTimeControlValueAccessor/dateTimeControlValueAccessor.directive.d.ts.map +1 -1
  304. package/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.d.ts +3 -3
  305. package/src/modules/dateTime/directives/dateTimeInput/dateTimeInput.directive.d.ts.map +1 -1
  306. package/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.d.ts +3 -3
  307. package/src/modules/dateTime/directives/dateTimeMaxValidator/dateTimeMaxValidator.directive.d.ts.map +1 -1
  308. package/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.d.ts +3 -3
  309. package/src/modules/dateTime/directives/dateTimeMinValidator/dateTimeMinValidator.directive.d.ts.map +1 -1
  310. package/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.d.ts +3 -3
  311. package/src/modules/dateTime/directives/dateTimeValidator/dateTimeValidator.directive.d.ts.map +1 -1
  312. package/src/modules/dateTime/modules/dateTime.module.d.ts +1 -1
  313. package/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.d.ts +1 -2
  314. package/src/modules/dateTimePicker/components/dateTimePeriodPickerBase.d.ts.map +1 -1
  315. package/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.d.ts +3 -3
  316. package/src/modules/dateTimePicker/components/dateTimePicker/dateTimePicker.component.d.ts.map +1 -1
  317. package/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.d.ts +2 -3
  318. package/src/modules/dateTimePicker/components/dayPicker/dayPicker.component.d.ts.map +1 -1
  319. package/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.d.ts +2 -3
  320. package/src/modules/dateTimePicker/components/monthPicker/monthPicker.component.d.ts.map +1 -1
  321. package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.d.ts +6 -7
  322. package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.component.d.ts.map +1 -1
  323. package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.d.ts +1 -1
  324. package/src/modules/dateTimePicker/components/rollerTimePicker/rollerTimePicker.data.d.ts.map +1 -1
  325. package/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.d.ts +2 -3
  326. package/src/modules/dateTimePicker/components/yearPicker/yearPicker.component.d.ts.map +1 -1
  327. package/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.d.ts +3 -3
  328. package/src/modules/dateTimePicker/directives/dateTimePicker/dateTimePicker.directive.d.ts.map +1 -1
  329. package/src/modules/dateTimePicker/directives/index.d.ts +3 -0
  330. package/src/modules/dateTimePicker/directives/index.d.ts.map +1 -1
  331. package/src/{legacy/picker → modules/dateTimePicker}/directives/loopScroll/loopScroll.directive.d.ts +18 -18
  332. package/src/modules/dateTimePicker/directives/loopScroll/loopScroll.directive.d.ts.map +1 -0
  333. package/src/{legacy/picker → modules/dateTimePicker}/directives/loopScroll/loopScroll.interface.d.ts +1 -1
  334. package/src/modules/dateTimePicker/directives/loopScroll/loopScroll.interface.d.ts.map +1 -0
  335. package/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.d.ts +20 -0
  336. package/src/modules/dateTimePicker/directives/loopScrollData/loopScrollData.directive.d.ts.map +1 -0
  337. package/src/modules/dateTimePicker/interfaces/index.d.ts +1 -0
  338. package/src/modules/dateTimePicker/interfaces/index.d.ts.map +1 -1
  339. package/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.d.ts +62 -0
  340. package/src/modules/dateTimePicker/interfaces/periodData/periodData.interface.d.ts.map +1 -0
  341. package/src/modules/dateTimePicker/modules/dateTimePicker.module.d.ts +1 -1
  342. package/src/modules/dateTimePicker/modules/dateTimePicker.module.d.ts.map +1 -1
  343. package/src/modules/index.d.ts +1 -0
  344. package/src/modules/index.d.ts.map +1 -1
  345. package/src/pipes/dateConvert.pipe.d.ts +1 -1
  346. package/src/pipes/dateConvert.pipe.d.ts.map +1 -1
  347. package/src/pipes/dateFormat.pipe.d.ts +1 -1
  348. package/src/pipes/dateFormat.pipe.d.ts.map +1 -1
  349. package/src/services/dateApi/dateApi.interface.d.ts +25 -12
  350. package/src/services/dateApi/dateApi.interface.d.ts.map +1 -1
  351. package/src/services/datePositionParser/datePositionParser.service.d.ts.map +1 -1
  352. package/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.d.ts +2 -2
  353. package/src/services/dateTimeRelativeParser/dateTimeRelativeParser.service.d.ts.map +1 -1
  354. package/src/services/dateValueProvider/dateValueProvider.service.d.ts +1 -1
  355. package/src/services/dateValueProvider/dateValueProvider.service.d.ts.map +1 -1
  356. package/styles/components/_month-calendar.scss +68 -0
  357. package/styles/core/_mixins.scss +2 -0
  358. package/styles/core/_theme.scss +11 -0
  359. package/version.bak +1 -1
  360. package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js +0 -14
  361. package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js.map +0 -1
  362. package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js +0 -2
  363. package/es2015/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js.map +0 -1
  364. package/es2015/src/legacy/picker/components/dayPicker/dayPicker.component.js +0 -214
  365. package/es2015/src/legacy/picker/components/dayPicker/dayPicker.component.js.map +0 -1
  366. package/es2015/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js +0 -2
  367. package/es2015/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js.map +0 -1
  368. package/es2015/src/legacy/picker/components/monthPicker/monthPicker.component.js +0 -116
  369. package/es2015/src/legacy/picker/components/monthPicker/monthPicker.component.js.map +0 -1
  370. package/es2015/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js +0 -2
  371. package/es2015/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js.map +0 -1
  372. package/es2015/src/legacy/picker/components/picker/picker.component.js +0 -242
  373. package/es2015/src/legacy/picker/components/picker/picker.component.js.map +0 -1
  374. package/es2015/src/legacy/picker/components/pickerBase.component.js +0 -138
  375. package/es2015/src/legacy/picker/components/pickerBase.component.js.map +0 -1
  376. package/es2015/src/legacy/picker/components/pickerImplBase.component.js +0 -145
  377. package/es2015/src/legacy/picker/components/pickerImplBase.component.js.map +0 -1
  378. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js +0 -148
  379. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js.map +0 -1
  380. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js +0 -341
  381. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js.map +0 -1
  382. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js +0 -2
  383. package/es2015/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js.map +0 -1
  384. package/es2015/src/legacy/picker/components/yearPicker/yearPicker.component.js +0 -128
  385. package/es2015/src/legacy/picker/components/yearPicker/yearPicker.component.js.map +0 -1
  386. package/es2015/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js +0 -2
  387. package/es2015/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js.map +0 -1
  388. package/es2015/src/legacy/picker/directives/index.js +0 -4
  389. package/es2015/src/legacy/picker/directives/index.js.map +0 -1
  390. package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.directive.js +0 -213
  391. package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.directive.js.map +0 -1
  392. package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.interface.js +0 -3
  393. package/es2015/src/legacy/picker/directives/loopScroll/loopScroll.interface.js.map +0 -1
  394. package/es2015/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.js.map +0 -1
  395. package/es2015/src/legacy/picker/interfaces.js +0 -6
  396. package/es2015/src/legacy/picker/interfaces.js.map +0 -1
  397. package/es2015/src/legacy/picker/misc/datetimePicker.interface.js +0 -2
  398. package/es2015/src/legacy/picker/misc/datetimePicker.interface.js.map +0 -1
  399. package/es2015/src/legacy/picker/misc/tokens.js +0 -6
  400. package/es2015/src/legacy/picker/misc/tokens.js.map +0 -1
  401. package/es2015/src/legacy/picker/modules/picker.module.js +0 -65
  402. package/es2015/src/legacy/picker/modules/picker.module.js.map +0 -1
  403. package/es2015/src/legacy/picker/types.js +0 -10
  404. package/es2015/src/legacy/picker/types.js.map +0 -1
  405. package/es2015/src/legacy/selector/components/selector/selector.component.animations.js +0 -15
  406. package/es2015/src/legacy/selector/components/selector/selector.component.animations.js.map +0 -1
  407. package/es2015/src/legacy/selector/components/selector/selector.component.js +0 -357
  408. package/es2015/src/legacy/selector/components/selector/selector.component.js.map +0 -1
  409. package/es2015/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js +0 -134
  410. package/es2015/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js.map +0 -1
  411. package/es2015/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js +0 -51
  412. package/es2015/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js.map +0 -1
  413. package/es2015/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js +0 -51
  414. package/es2015/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js.map +0 -1
  415. package/es2015/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js +0 -47
  416. package/es2015/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js.map +0 -1
  417. package/es2015/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js +0 -119
  418. package/es2015/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js.map +0 -1
  419. package/es2015/src/legacy/selector/interfaces.js +0 -2
  420. package/es2015/src/legacy/selector/interfaces.js.map +0 -1
  421. package/es2015/src/legacy/selector/misc/datetimeSelector.interface.js +0 -2
  422. package/es2015/src/legacy/selector/misc/datetimeSelector.interface.js.map +0 -1
  423. package/es2015/src/legacy/selector/misc/tokens.js +0 -6
  424. package/es2015/src/legacy/selector/misc/tokens.js.map +0 -1
  425. package/es2015/src/legacy/selector/modules/basicSelector.module.js +0 -20
  426. package/es2015/src/legacy/selector/modules/basicSelector.module.js.map +0 -1
  427. package/es2015/src/legacy/selector/modules/selector.module.js +0 -63
  428. package/es2015/src/legacy/selector/modules/selector.module.js.map +0 -1
  429. package/es2015/src/legacy/selector/types.js +0 -11
  430. package/es2015/src/legacy/selector/types.js.map +0 -1
  431. package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js +0 -14
  432. package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.js.map +0 -1
  433. package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js +0 -2
  434. package/es2020/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.js.map +0 -1
  435. package/es2020/src/legacy/picker/components/dayPicker/dayPicker.component.js +0 -214
  436. package/es2020/src/legacy/picker/components/dayPicker/dayPicker.component.js.map +0 -1
  437. package/es2020/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js +0 -2
  438. package/es2020/src/legacy/picker/components/dayPicker/dayPicker.interfaces.js.map +0 -1
  439. package/es2020/src/legacy/picker/components/monthPicker/monthPicker.component.js +0 -116
  440. package/es2020/src/legacy/picker/components/monthPicker/monthPicker.component.js.map +0 -1
  441. package/es2020/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js +0 -2
  442. package/es2020/src/legacy/picker/components/monthPicker/monthPicker.interfaces.js.map +0 -1
  443. package/es2020/src/legacy/picker/components/picker/picker.component.js +0 -237
  444. package/es2020/src/legacy/picker/components/picker/picker.component.js.map +0 -1
  445. package/es2020/src/legacy/picker/components/pickerBase.component.js +0 -138
  446. package/es2020/src/legacy/picker/components/pickerBase.component.js.map +0 -1
  447. package/es2020/src/legacy/picker/components/pickerImplBase.component.js +0 -145
  448. package/es2020/src/legacy/picker/components/pickerImplBase.component.js.map +0 -1
  449. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js +0 -142
  450. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.js.map +0 -1
  451. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js +0 -341
  452. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.js.map +0 -1
  453. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js +0 -2
  454. package/es2020/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.js.map +0 -1
  455. package/es2020/src/legacy/picker/components/yearPicker/yearPicker.component.js +0 -128
  456. package/es2020/src/legacy/picker/components/yearPicker/yearPicker.component.js.map +0 -1
  457. package/es2020/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js +0 -2
  458. package/es2020/src/legacy/picker/components/yearPicker/yearPicker.interfaces.js.map +0 -1
  459. package/es2020/src/legacy/picker/directives/index.js +0 -4
  460. package/es2020/src/legacy/picker/directives/index.js.map +0 -1
  461. package/es2020/src/legacy/picker/directives/loopScroll/loopScroll.directive.js.map +0 -1
  462. package/es2020/src/legacy/picker/directives/loopScroll/loopScroll.interface.js +0 -3
  463. package/es2020/src/legacy/picker/directives/loopScroll/loopScroll.interface.js.map +0 -1
  464. package/es2020/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.js.map +0 -1
  465. package/es2020/src/legacy/picker/interfaces.js +0 -6
  466. package/es2020/src/legacy/picker/interfaces.js.map +0 -1
  467. package/es2020/src/legacy/picker/misc/datetimePicker.interface.js +0 -2
  468. package/es2020/src/legacy/picker/misc/datetimePicker.interface.js.map +0 -1
  469. package/es2020/src/legacy/picker/misc/tokens.js +0 -6
  470. package/es2020/src/legacy/picker/misc/tokens.js.map +0 -1
  471. package/es2020/src/legacy/picker/modules/picker.module.js +0 -65
  472. package/es2020/src/legacy/picker/modules/picker.module.js.map +0 -1
  473. package/es2020/src/legacy/picker/types.js +0 -10
  474. package/es2020/src/legacy/picker/types.js.map +0 -1
  475. package/es2020/src/legacy/selector/components/selector/selector.component.animations.js +0 -15
  476. package/es2020/src/legacy/selector/components/selector/selector.component.animations.js.map +0 -1
  477. package/es2020/src/legacy/selector/components/selector/selector.component.js +0 -345
  478. package/es2020/src/legacy/selector/components/selector/selector.component.js.map +0 -1
  479. package/es2020/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js +0 -133
  480. package/es2020/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.js.map +0 -1
  481. package/es2020/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js +0 -51
  482. package/es2020/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.js.map +0 -1
  483. package/es2020/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js +0 -51
  484. package/es2020/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.js.map +0 -1
  485. package/es2020/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js +0 -47
  486. package/es2020/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.js.map +0 -1
  487. package/es2020/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js +0 -118
  488. package/es2020/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.js.map +0 -1
  489. package/es2020/src/legacy/selector/interfaces.js +0 -2
  490. package/es2020/src/legacy/selector/interfaces.js.map +0 -1
  491. package/es2020/src/legacy/selector/misc/datetimeSelector.interface.js +0 -2
  492. package/es2020/src/legacy/selector/misc/datetimeSelector.interface.js.map +0 -1
  493. package/es2020/src/legacy/selector/misc/tokens.js +0 -6
  494. package/es2020/src/legacy/selector/misc/tokens.js.map +0 -1
  495. package/es2020/src/legacy/selector/modules/basicSelector.module.js +0 -20
  496. package/es2020/src/legacy/selector/modules/basicSelector.module.js.map +0 -1
  497. package/es2020/src/legacy/selector/modules/selector.module.js +0 -63
  498. package/es2020/src/legacy/selector/modules/selector.module.js.map +0 -1
  499. package/es2020/src/legacy/selector/types.js +0 -11
  500. package/es2020/src/legacy/selector/types.js.map +0 -1
  501. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.css +0 -0
  502. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.d.ts +0 -9
  503. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.d.ts.map +0 -1
  504. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.component.html +0 -0
  505. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.d.ts +0 -6
  506. package/src/legacy/picker/components/clockTimePicker/clockTimePicker.interface.d.ts.map +0 -1
  507. package/src/legacy/picker/components/dayPicker/dayPicker.component.css +0 -22
  508. package/src/legacy/picker/components/dayPicker/dayPicker.component.d.ts +0 -80
  509. package/src/legacy/picker/components/dayPicker/dayPicker.component.d.ts.map +0 -1
  510. package/src/legacy/picker/components/dayPicker/dayPicker.component.html +0 -21
  511. package/src/legacy/picker/components/dayPicker/dayPicker.interfaces.d.ts +0 -11
  512. package/src/legacy/picker/components/dayPicker/dayPicker.interfaces.d.ts.map +0 -1
  513. package/src/legacy/picker/components/monthPicker/monthPicker.component.css +0 -4
  514. package/src/legacy/picker/components/monthPicker/monthPicker.component.d.ts +0 -53
  515. package/src/legacy/picker/components/monthPicker/monthPicker.component.d.ts.map +0 -1
  516. package/src/legacy/picker/components/monthPicker/monthPicker.component.html +0 -13
  517. package/src/legacy/picker/components/monthPicker/monthPicker.interfaces.d.ts +0 -7
  518. package/src/legacy/picker/components/monthPicker/monthPicker.interfaces.d.ts.map +0 -1
  519. package/src/legacy/picker/components/picker/picker.component.css +0 -4
  520. package/src/legacy/picker/components/picker/picker.component.d.ts +0 -105
  521. package/src/legacy/picker/components/picker/picker.component.d.ts.map +0 -1
  522. package/src/legacy/picker/components/picker/picker.component.html +0 -3
  523. package/src/legacy/picker/components/pickerBase.component.d.ts +0 -80
  524. package/src/legacy/picker/components/pickerBase.component.d.ts.map +0 -1
  525. package/src/legacy/picker/components/pickerImplBase.component.d.ts +0 -128
  526. package/src/legacy/picker/components/pickerImplBase.component.d.ts.map +0 -1
  527. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.css +0 -64
  528. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.d.ts +0 -71
  529. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.d.ts.map +0 -1
  530. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.component.html +0 -67
  531. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.d.ts +0 -4
  532. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.data.d.ts.map +0 -1
  533. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.d.ts +0 -6
  534. package/src/legacy/picker/components/rollerTimePicker/rollerTimePicker.interface.d.ts.map +0 -1
  535. package/src/legacy/picker/components/yearPicker/yearPicker.component.css +0 -4
  536. package/src/legacy/picker/components/yearPicker/yearPicker.component.d.ts +0 -58
  537. package/src/legacy/picker/components/yearPicker/yearPicker.component.d.ts.map +0 -1
  538. package/src/legacy/picker/components/yearPicker/yearPicker.component.html +0 -13
  539. package/src/legacy/picker/components/yearPicker/yearPicker.interfaces.d.ts +0 -7
  540. package/src/legacy/picker/components/yearPicker/yearPicker.interfaces.d.ts.map +0 -1
  541. package/src/legacy/picker/directives/index.d.ts +0 -4
  542. package/src/legacy/picker/directives/index.d.ts.map +0 -1
  543. package/src/legacy/picker/directives/loopScroll/loopScroll.directive.d.ts.map +0 -1
  544. package/src/legacy/picker/directives/loopScroll/loopScroll.interface.d.ts.map +0 -1
  545. package/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.d.ts +0 -20
  546. package/src/legacy/picker/directives/loopScrollData/loopScrollData.directive.d.ts.map +0 -1
  547. package/src/legacy/picker/interfaces.d.ts +0 -6
  548. package/src/legacy/picker/interfaces.d.ts.map +0 -1
  549. package/src/legacy/picker/misc/datetimePicker.interface.d.ts +0 -193
  550. package/src/legacy/picker/misc/datetimePicker.interface.d.ts.map +0 -1
  551. package/src/legacy/picker/misc/tokens.d.ts +0 -7
  552. package/src/legacy/picker/misc/tokens.d.ts.map +0 -1
  553. package/src/legacy/picker/modules/picker.module.d.ts +0 -20
  554. package/src/legacy/picker/modules/picker.module.d.ts.map +0 -1
  555. package/src/legacy/picker/types.d.ts +0 -10
  556. package/src/legacy/picker/types.d.ts.map +0 -1
  557. package/src/legacy/selector/components/selector/selector.component.animations.d.ts +0 -5
  558. package/src/legacy/selector/components/selector/selector.component.animations.d.ts.map +0 -1
  559. package/src/legacy/selector/components/selector/selector.component.css +0 -11
  560. package/src/legacy/selector/components/selector/selector.component.d.ts +0 -157
  561. package/src/legacy/selector/components/selector/selector.component.d.ts.map +0 -1
  562. package/src/legacy/selector/components/selector/selector.component.html +0 -10
  563. package/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.d.ts +0 -80
  564. package/src/legacy/selector/directives/dateTimePickerRenderer/dateTimePickerRenderer.directive.d.ts.map +0 -1
  565. package/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.d.ts +0 -23
  566. package/src/legacy/selector/directives/datetimeMaxValidator/datetimeMaxValidator.directive.d.ts.map +0 -1
  567. package/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.d.ts +0 -23
  568. package/src/legacy/selector/directives/datetimeMinValidator/datetimeMinValidator.directive.d.ts.map +0 -1
  569. package/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.d.ts +0 -22
  570. package/src/legacy/selector/directives/datetimeValidator/datetimeValidator.directive.d.ts.map +0 -1
  571. package/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.d.ts +0 -54
  572. package/src/legacy/selector/directives/selectorControlValueAccessor/selectorControlValueAccessor.directive.d.ts.map +0 -1
  573. package/src/legacy/selector/interfaces.d.ts +0 -2
  574. package/src/legacy/selector/interfaces.d.ts.map +0 -1
  575. package/src/legacy/selector/misc/datetimeSelector.interface.d.ts +0 -96
  576. package/src/legacy/selector/misc/datetimeSelector.interface.d.ts.map +0 -1
  577. package/src/legacy/selector/misc/tokens.d.ts +0 -7
  578. package/src/legacy/selector/misc/tokens.d.ts.map +0 -1
  579. package/src/legacy/selector/modules/basicSelector.module.d.ts +0 -11
  580. package/src/legacy/selector/modules/basicSelector.module.d.ts.map +0 -1
  581. package/src/legacy/selector/modules/selector.module.d.ts +0 -20
  582. package/src/legacy/selector/modules/selector.module.d.ts.map +0 -1
  583. package/src/legacy/selector/types.d.ts +0 -11
  584. package/src/legacy/selector/types.d.ts.map +0 -1
@@ -1,437 +1,488 @@
1
- import { Component, ChangeDetectionStrategy, Inject, ChangeDetectorRef, ElementRef, ViewChild } from '@angular/core';
2
- import { isPresent } from '@jscrpt/common';
3
- import { Subject } from 'rxjs';
4
- import { DATE_API } from '../../../../misc/tokens';
5
- import { DatePositionParserService, DateValueProvider } from '../../../../services';
6
- import * as i0 from "@angular/core";
7
- import * as i1 from "../../../../services";
8
- /**
9
- * Component used as datetime selector with input
10
- */
11
- export class InputDateTimeSelectorComponent {
12
- //######################### constructor #########################
13
- constructor(_dateApi, _parserSvc, _valueProvider, _changeDetector) {
14
- this._dateApi = _dateApi;
15
- this._parserSvc = _parserSvc;
16
- this._valueProvider = _valueProvider;
17
- this._changeDetector = _changeDetector;
18
- //######################### protected fields #########################
19
- /**
20
- * Occurs when value changes
21
- */
22
- this._valueChange = new Subject();
23
- /**
24
- * Occurs when selector is touched by user
25
- */
26
- this._touched = new Subject();
27
- /**
28
- * Occurs when selector requires picker to be displayed or hidden
29
- */
30
- this._pickerRequest = new Subject();
31
- /**
32
- * Instance of parser created for specific format
33
- */
34
- this._parser = null;
35
- /**
36
- * Currently used format for displaying data
37
- */
38
- this._format = '';
39
- /**
40
- * Current value representation as date api wrapper
41
- */
42
- this._dateApiValue = null;
43
- /**
44
- * Indication whether is current value valid value
45
- */
46
- this._isValid = true;
47
- /**
48
- * Minimal possible value that can be picked
49
- */
50
- this._minValue = null;
51
- /**
52
- * Maximal possible value that can be picked
53
- */
54
- this._maxValue = null;
55
- /**
56
- * Gets or sets placeholder that is displayed when there is no value selected
57
- */
58
- this.placeholder = null;
59
- //######################### public properties - template bindings #########################
60
- /**
61
- * Indication whether is input disabled
62
- * @internal
63
- */
64
- this.disabled = false;
65
- }
66
- //######################### public properties - implementation of DateTimeSelector #########################
67
- /**
68
- * Gets or sets currently used format for displaying data
69
- */
70
- get format() {
71
- return this._format;
72
- }
73
- set format(value) {
74
- if (isPresent(value)) {
75
- value = this._dateApi.getFormat(value);
76
- }
77
- //only if format changes
78
- if (this._format != value) {
79
- this._parser = this._parserSvc.createParser(this._dateApi.getFormat(value));
80
- }
81
- this._format = value;
82
- }
83
- /**
84
- * Gets current value of datetime
85
- */
86
- get value() {
87
- if (!this._dateApiValue || !this._isValid) {
88
- return null;
89
- }
90
- return this._valueProvider.getValue(this._dateApiValue.value, this._format);
91
- }
92
- /**
93
- * Gets formatted value
94
- */
95
- get formattedValue() {
96
- if (!this._isValid) {
97
- return null;
98
- }
99
- return this.currentValue;
100
- }
101
- /**
102
- * Gets indication whether is current value valid
103
- */
104
- get valid() {
105
- return this._isValid;
106
- }
107
- /**
108
- * Occurs when value changes
109
- */
110
- get valueChange() {
111
- return this._valueChange.asObservable();
112
- }
113
- /**
114
- * Occurs when selector is touched by user
115
- */
116
- get touched() {
117
- return this._touched.asObservable();
118
- }
119
- /**
120
- * Occurs when selector requires picker to be displayed
121
- */
122
- get pickerRequest() {
123
- return this._pickerRequest.asObservable();
124
- }
125
- //######################### protected properties #########################
126
- /**
127
- * Gets or sets string representation current of value
128
- */
129
- get currentValue() {
130
- return this.input.value || null;
131
- }
132
- set currentValue(value) {
133
- if (this.input) {
134
- this.input.value = value !== null && value !== void 0 ? value : '';
135
- }
136
- }
137
- /**
138
- * Gets input element used for handling date time value
139
- */
140
- get input() {
141
- return this.inputElement.nativeElement;
142
- }
143
- //######################### public methods - implementation of DateTimeSelector #########################
144
- /**
145
- * Sets minimal possible value for picker, that can be picked
146
- * @param value - Minimal possible value that can be picked
147
- */
148
- setMinValue(value) {
149
- this._minValue = value;
150
- }
151
- /**
152
- * Sets maximal possible value for picker, that can be picked
153
- * @param value - Maximal possible value that can be picked
154
- */
155
- setMaxValue(value) {
156
- this._maxValue = value;
157
- }
158
- /**
159
- * Sets value of datetime selector
160
- * @param value - Value to be set to this selector
161
- */
162
- setValue(value) {
163
- if (value === null || value === void 0 ? void 0 : value.from) {
164
- this._dateApiValue = this._dateApi.getValue(value === null || value === void 0 ? void 0 : value.from, this._format);
165
- this._isValid = this._dateApiValue.isValid();
166
- this._show();
167
- }
168
- else {
169
- this._clearValue();
170
- }
171
- }
172
- /**
173
- * Sets as 'control' disabled
174
- * @param disabled - Indication whether sets value as disabled, if omitted it is same as disabled set to true
175
- */
176
- setDisabled(disabled = true) {
177
- this.disabled = disabled;
178
- }
179
- /**
180
- * Explicitly runs invalidation of content (change detection)
181
- */
182
- invalidateVisuals() {
183
- this._changeDetector.detectChanges();
184
- }
185
- //######################### public methods - template bindings #########################
186
- /**
187
- * Handles gaining of focus
188
- * @internal
189
- */
190
- handleFocus() {
191
- this._pickerRequest.next(true);
192
- //no value
193
- if (!this._dateApiValue) {
194
- this._dateApiValue = this._dateApi.now();
195
- this._isValid = this._dateApiValue.isValid();
196
- if (this._minMaxConstraintTest()) {
197
- this._clearValue();
198
- }
199
- else {
200
- this._valueChange.next();
201
- }
202
- }
203
- if (!this._isValid) {
204
- return;
205
- }
206
- this._show();
207
- const result = this._parser.parse(this.currentValue, this.input.selectionStart);
208
- this.input.selectionStart = result.positionFrom;
209
- this.input.selectionEnd = result.positionTo;
210
- }
211
- /**
212
- * Handles blur on input
213
- * @internal
214
- */
215
- handleBlur() {
216
- this._pickerRequest.next(false);
217
- }
218
- /**
219
- * Handles user input
220
- * @internal
221
- */
222
- handleInput() {
223
- //empty value
224
- if (!this.currentValue) {
225
- this._clearValue();
226
- this._valueChange.next();
227
- return;
228
- }
229
- this._dateApiValue = this._dateApi.getValue(this.currentValue, this._format);
230
- this._isValid = this._dateApiValue.isValid();
231
- this._valueChange.next();
232
- }
233
- /**
234
- * Handles selection of text inside of input
235
- * @internal
236
- */
237
- handleSelect() {
238
- //handles when all text is selected
239
- if (this.currentValue && this.input.selectionStart == 0 && this.input.selectionEnd == this.input.value.length) {
240
- const result = this._parser.parse(this.input.value, this.input.selectionStart);
241
- this.input.selectionStart = result.positionFrom;
242
- this.input.selectionEnd = result.positionTo;
243
- }
244
- }
245
- /**
246
- * Handles click event inside of input
247
- * @internal
248
- */
249
- handleClick() {
250
- this._pickerRequest.next(true);
251
- if (!this._dateApiValue) {
252
- return;
253
- }
254
- const result = this._parser.parse(this.input.value, this.input.selectionStart);
255
- this.input.selectionStart = result.positionFrom;
256
- this.input.selectionEnd = result.positionTo;
257
- }
258
- /**
259
- * Handles keyboard events
260
- * @param event - Keyboard event that occured
261
- * @param input - Html input element that holds current value and selection
262
- * @internal
263
- */
264
- handleKeyboard(event) {
265
- var _a;
266
- if (!((_a = this._dateApiValue) === null || _a === void 0 ? void 0 : _a.isValid())) {
267
- return;
268
- }
269
- switch (event.key) {
270
- case 'ArrowRight':
271
- case 'ArrowLeft':
272
- {
273
- event.preventDefault();
274
- event.stopPropagation();
275
- const result = event.key == 'ArrowLeft' ? this._parser.previous(this.input.value, this.input.selectionStart) : this._parser.next(this.input.value, this.input.selectionStart);
276
- if (result) {
277
- this.input.selectionStart = result.positionFrom;
278
- this.input.selectionEnd = result.positionTo;
279
- }
280
- break;
281
- }
282
- case 'ArrowUp':
283
- case 'ArrowDown':
284
- {
285
- event.preventDefault();
286
- event.stopPropagation();
287
- let result = this._parser.parse(this.input.value, this.input.selectionStart);
288
- const selectionStart = result.positionFrom;
289
- this._stepChangeValue(result.part, event.key == 'ArrowUp');
290
- this._show();
291
- result = this._parser.parse(this.input.value, selectionStart);
292
- this.input.selectionStart = result.positionFrom;
293
- this.input.selectionEnd = result.positionTo;
294
- break;
295
- }
296
- case 'Tab':
297
- {
298
- const result = event.shiftKey ? this._parser.previous(this.input.value, this.input.selectionStart) : this._parser.next(this.input.value, this.input.selectionStart);
299
- if (result) {
300
- event.preventDefault();
301
- event.stopPropagation();
302
- this.input.selectionStart = result.positionFrom;
303
- this.input.selectionEnd = result.positionTo;
304
- }
305
- break;
306
- }
307
- case 'a':
308
- {
309
- if (event.ctrlKey) {
310
- event.preventDefault();
311
- event.stopPropagation();
312
- }
313
- break;
314
- }
315
- case 'Backspace':
316
- {
317
- this._clearValue();
318
- this._valueChange.next();
319
- break;
320
- }
321
- case 'Escape':
322
- {
323
- this._pickerRequest.next(false);
324
- break;
325
- }
326
- case ' ':
327
- {
328
- if (event.ctrlKey) {
329
- this._pickerRequest.next(true);
330
- }
331
- break;
332
- }
333
- }
334
- }
335
- //######################### protected methods #########################
336
- /**
337
- * Shows current value in input
338
- */
339
- _show() {
340
- var _a, _b;
341
- if (this._isValid) {
342
- this.currentValue = (_b = (_a = this._dateApiValue) === null || _a === void 0 ? void 0 : _a.format(this._format)) !== null && _b !== void 0 ? _b : null;
343
- }
344
- }
345
- /**
346
- * Tests whether are min or max constraint broken, returns true if constraint is broken
347
- */
348
- _minMaxConstraintTest() {
349
- return (!!this._minValue && this._dateApiValue.isBefore(this._minValue)) ||
350
- (!!this._maxValue && this._dateApiValue.isAfter(this._maxValue));
351
- }
352
- /**
353
- * Runs code with check whether min max constrains was broken
354
- * @param code - Code that should be executed which can change current value
355
- */
356
- _withMinMaxConstraint(code) {
357
- var _a;
358
- this._dateApiValue.updateOriginal();
359
- code();
360
- //min value constraint failure
361
- if (this._minMaxConstraintTest()) {
362
- (_a = this._dateApiValue) === null || _a === void 0 ? void 0 : _a.resetOriginal();
363
- return;
364
- }
365
- this._valueChange.next();
366
- }
367
- /**
368
- * Clears current value
369
- */
370
- _clearValue() {
371
- this._dateApiValue = null;
372
- this._isValid = true;
373
- this.currentValue = null;
374
- }
375
- /**
376
- * Changes current value of date for for specified part by single step
377
- * @param part - Part of date that should be changed
378
- * @param increment - Indication whether value should be incremented or decremented
379
- */
380
- _stepChangeValue(part, increment) {
381
- var _a;
382
- if (!((_a = this._dateApiValue) === null || _a === void 0 ? void 0 : _a.isValid())) {
383
- return;
384
- }
385
- switch (part) {
386
- case 'y':
387
- case 'Y':
388
- {
389
- this._withMinMaxConstraint(() => increment ? this._dateApiValue.addYears(1) : this._dateApiValue.subtractYears(1));
390
- break;
391
- }
392
- case 'Q':
393
- {
394
- break;
395
- }
396
- case 'M':
397
- {
398
- this._withMinMaxConstraint(() => increment ? this._dateApiValue.addMonths(1) : this._dateApiValue.subtractMonths(1));
399
- break;
400
- }
401
- case 'w':
402
- {
403
- this._withMinMaxConstraint(() => increment ? this._dateApiValue.addWeeks(1) : this._dateApiValue.subtractWeeks(1));
404
- break;
405
- }
406
- case 'd':
407
- case 'D':
408
- {
409
- this._withMinMaxConstraint(() => increment ? this._dateApiValue.addDays(1) : this._dateApiValue.subtractDays(1));
410
- break;
411
- }
412
- case 'H':
413
- {
414
- this._withMinMaxConstraint(() => increment ? this._dateApiValue.addHours(1) : this._dateApiValue.subtractHours(1));
415
- break;
416
- }
417
- case 'm':
418
- {
419
- this._withMinMaxConstraint(() => increment ? this._dateApiValue.addMinutes(1) : this._dateApiValue.subtractMinutes(1));
420
- break;
421
- }
422
- }
423
- }
424
- }
425
- InputDateTimeSelectorComponent.ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: InputDateTimeSelectorComponent, deps: [{ token: DATE_API }, { token: i1.DatePositionParserService }, { token: i1.DateValueProvider }, { token: i0.ChangeDetectorRef }], target: i0.ɵɵFactoryTarget.Component });
426
- InputDateTimeSelectorComponent.ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "14.0.0", version: "14.2.6", type: InputDateTimeSelectorComponent, selector: "input-date-time-selector", viewQueries: [{ propertyName: "inputElement", first: true, predicate: ["input"], descendants: true, static: true }], ngImport: i0, template: "<input type=\"text\"\r\n #input\r\n (focus)=\"handleFocus()\"\r\n (blur)=\"handleBlur()\"\r\n (input)=\"handleInput()\"\r\n (click)=\"handleClick()\"\r\n (select)=\"handleSelect()\"\r\n (keydown)=\"handleKeyboard($any($event))\"\r\n [disabled]=\"disabled\"\r\n [placeholder]=\"placeholder ?? ''\">", styles: [":host\r\n{\r\n display: block;\r\n}\r\n\r\ninput\r\n{\r\n width: 100%;\r\n}"], changeDetection: i0.ChangeDetectionStrategy.OnPush });
427
- i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "14.2.6", ngImport: i0, type: InputDateTimeSelectorComponent, decorators: [{
428
- type: Component,
429
- args: [{ selector: 'input-date-time-selector', changeDetection: ChangeDetectionStrategy.OnPush, template: "<input type=\"text\"\r\n #input\r\n (focus)=\"handleFocus()\"\r\n (blur)=\"handleBlur()\"\r\n (input)=\"handleInput()\"\r\n (click)=\"handleClick()\"\r\n (select)=\"handleSelect()\"\r\n (keydown)=\"handleKeyboard($any($event))\"\r\n [disabled]=\"disabled\"\r\n [placeholder]=\"placeholder ?? ''\">", styles: [":host\r\n{\r\n display: block;\r\n}\r\n\r\ninput\r\n{\r\n width: 100%;\r\n}"] }]
430
- }], ctorParameters: function () { return [{ type: undefined, decorators: [{
431
- type: Inject,
432
- args: [DATE_API]
433
- }] }, { type: i1.DatePositionParserService }, { type: i1.DateValueProvider }, { type: i0.ChangeDetectorRef }]; }, propDecorators: { inputElement: [{
434
- type: ViewChild,
435
- args: ['input', { static: true }]
436
- }] } });
1
+ "use strict";
2
+ // import {Component, ChangeDetectionStrategy, Inject, ChangeDetectorRef, ElementRef, ViewChild} from '@angular/core';
3
+ // import {isPresent} from '@jscrpt/common';
4
+ // import {Observable, Subject} from 'rxjs';
5
+ // import {DateTimeValue} from '../../../../interfaces/dateTime/datetime.interface';
6
+ // import {DATE_API} from '../../../../misc/tokens';
7
+ // import {DateApi, DateApiObject, DatePositionParser, DatePositionParserService, DateValueProvider} from '../../../../services';
8
+ // import {DateTimeSelector} from '../../misc/datetimeSelector.interface';
9
+ // /**
10
+ // * Component used as datetime selector with input
11
+ // */
12
+ // @Component(
13
+ // {
14
+ // selector: 'input-date-time-selector',
15
+ // templateUrl: 'inputDateTime.component.html',
16
+ // styleUrls: ['inputDateTime.component.css'],
17
+ // changeDetection: ChangeDetectionStrategy.OnPush
18
+ // })
19
+ // export class InputDateTimeSelectorComponent<TDate = any> implements DateTimeSelector<TDate>
20
+ // {
21
+ // //######################### protected fields #########################
22
+ // /**
23
+ // * Occurs when value changes
24
+ // */
25
+ // protected _valueChange: Subject<void> = new Subject<void>();
26
+ // /**
27
+ // * Occurs when selector is touched by user
28
+ // */
29
+ // protected _touched: Subject<void> = new Subject<void>();
30
+ // /**
31
+ // * Occurs when selector requires picker to be displayed or hidden
32
+ // */
33
+ // protected _pickerRequest: Subject<boolean> = new Subject<boolean>();
34
+ // /**
35
+ // * Instance of parser created for specific format
36
+ // */
37
+ // protected _parser: DatePositionParser|null = null;
38
+ // /**
39
+ // * Currently used format for displaying data
40
+ // */
41
+ // protected _format: string = '';
42
+ // /**
43
+ // * Current value representation as date api wrapper
44
+ // */
45
+ // protected _dateApiValue: null|DateApiObject<TDate> = null;
46
+ // /**
47
+ // * Indication whether is current value valid value
48
+ // */
49
+ // protected _isValid: boolean = true;
50
+ // /**
51
+ // * Minimal possible value that can be picked
52
+ // */
53
+ // protected _minValue: TDate|null = null;
54
+ // /**
55
+ // * Maximal possible value that can be picked
56
+ // */
57
+ // protected _maxValue: TDate|null = null;
58
+ // //######################### public properties - implementation of DateTimeSelector #########################
59
+ // /**
60
+ // * Gets or sets currently used format for displaying data
61
+ // */
62
+ // public get format(): string
63
+ // {
64
+ // return this._format;
65
+ // }
66
+ // public set format(value: string)
67
+ // {
68
+ // if(isPresent(value))
69
+ // {
70
+ // value = this._dateApi.getFormat(value);
71
+ // }
72
+ // //only if format changes
73
+ // if(this._format != value)
74
+ // {
75
+ // this._parser = this._parserSvc.createParser(this._dateApi.getFormat(value));
76
+ // }
77
+ // this._format = value;
78
+ // }
79
+ // /**
80
+ // * Gets or sets placeholder that is displayed when there is no value selected
81
+ // */
82
+ // public placeholder: string|null = null;
83
+ // /**
84
+ // * Gets current value of datetime
85
+ // */
86
+ // public get value(): DateTimeValue<TDate>|null
87
+ // {
88
+ // if(!this._dateApiValue || !this._isValid)
89
+ // {
90
+ // return null;
91
+ // }
92
+ // return this._valueProvider.getValue(this._dateApiValue.value, this._format);
93
+ // }
94
+ // /**
95
+ // * Gets formatted value
96
+ // */
97
+ // public get formattedValue(): string|null
98
+ // {
99
+ // if(!this._isValid)
100
+ // {
101
+ // return null;
102
+ // }
103
+ // return this.currentValue;
104
+ // }
105
+ // /**
106
+ // * Gets indication whether is current value valid
107
+ // */
108
+ // public get valid(): boolean
109
+ // {
110
+ // return this._isValid;
111
+ // }
112
+ // /**
113
+ // * Occurs when value changes
114
+ // */
115
+ // public get valueChange(): Observable<void>
116
+ // {
117
+ // return this._valueChange.asObservable();
118
+ // }
119
+ // /**
120
+ // * Occurs when selector is touched by user
121
+ // */
122
+ // public get touched(): Observable<void>
123
+ // {
124
+ // return this._touched.asObservable();
125
+ // }
126
+ // /**
127
+ // * Occurs when selector requires picker to be displayed
128
+ // */
129
+ // public get pickerRequest(): Observable<boolean>
130
+ // {
131
+ // return this._pickerRequest.asObservable();
132
+ // }
133
+ // //######################### public properties - template bindings #########################
134
+ // /**
135
+ // * Indication whether is input disabled
136
+ // * @internal
137
+ // */
138
+ // public disabled: boolean = false;
139
+ // //######################### public properties - children #########################
140
+ // /**
141
+ // * Instance of html input element
142
+ // * @internal
143
+ // */
144
+ // @ViewChild('input', {static: true})
145
+ // public inputElement!: ElementRef<HTMLInputElement>;
146
+ // //######################### protected properties #########################
147
+ // /**
148
+ // * Gets or sets string representation current of value
149
+ // */
150
+ // protected get currentValue(): string|null
151
+ // {
152
+ // return this.input.value || null;
153
+ // }
154
+ // protected set currentValue(value: string|null)
155
+ // {
156
+ // if(this.input)
157
+ // {
158
+ // this.input.value = value ?? '';
159
+ // }
160
+ // }
161
+ // /**
162
+ // * Gets input element used for handling date time value
163
+ // */
164
+ // protected get input(): HTMLInputElement
165
+ // {
166
+ // return this.inputElement.nativeElement;
167
+ // }
168
+ // //######################### constructor #########################
169
+ // constructor(@Inject(DATE_API) protected _dateApi: DateApi<TDate>,
170
+ // protected _parserSvc: DatePositionParserService,
171
+ // protected _valueProvider: DateValueProvider<TDate>,
172
+ // protected _changeDetector: ChangeDetectorRef)
173
+ // {
174
+ // }
175
+ // //######################### public methods - implementation of DateTimeSelector #########################
176
+ // /**
177
+ // * Sets minimal possible value for picker, that can be picked
178
+ // * @param value - Minimal possible value that can be picked
179
+ // */
180
+ // public setMinValue(value: TDate|null): void
181
+ // {
182
+ // this._minValue = value;
183
+ // }
184
+ // /**
185
+ // * Sets maximal possible value for picker, that can be picked
186
+ // * @param value - Maximal possible value that can be picked
187
+ // */
188
+ // public setMaxValue(value: TDate|null): void
189
+ // {
190
+ // this._maxValue = value;
191
+ // }
192
+ // /**
193
+ // * Sets value of datetime selector
194
+ // * @param value - Value to be set to this selector
195
+ // */
196
+ // public setValue(value: DateTimeValue<TDate>|null): void
197
+ // {
198
+ // if(value?.from)
199
+ // {
200
+ // this._dateApiValue = this._dateApi.getValue(value?.from, this._format);
201
+ // this._isValid = this._dateApiValue.isValid();
202
+ // this._show();
203
+ // }
204
+ // else
205
+ // {
206
+ // this._clearValue();
207
+ // }
208
+ // }
209
+ // /**
210
+ // * Sets as 'control' disabled
211
+ // * @param disabled - Indication whether sets value as disabled, if omitted it is same as disabled set to true
212
+ // */
213
+ // public setDisabled(disabled: boolean = true): void
214
+ // {
215
+ // this.disabled = disabled;
216
+ // }
217
+ // /**
218
+ // * Explicitly runs invalidation of content (change detection)
219
+ // */
220
+ // public invalidateVisuals(): void
221
+ // {
222
+ // this._changeDetector.detectChanges();
223
+ // }
224
+ // //######################### public methods - template bindings #########################
225
+ // /**
226
+ // * Handles gaining of focus
227
+ // * @internal
228
+ // */
229
+ // public handleFocus(): void
230
+ // {
231
+ // this._pickerRequest.next(true);
232
+ // //no value
233
+ // if(!this._dateApiValue)
234
+ // {
235
+ // this._dateApiValue = this._dateApi.now();
236
+ // this._isValid = this._dateApiValue.isValid();
237
+ // if(this._minMaxConstraintTest())
238
+ // {
239
+ // this._clearValue();
240
+ // }
241
+ // else
242
+ // {
243
+ // this._valueChange.next();
244
+ // }
245
+ // }
246
+ // if(!this._isValid)
247
+ // {
248
+ // return;
249
+ // }
250
+ // this._show();
251
+ // const result = this._parser!.parse(this.currentValue!, this.input.selectionStart!);
252
+ // this.input.selectionStart = result.positionFrom;
253
+ // this.input.selectionEnd = result.positionTo;
254
+ // }
255
+ // /**
256
+ // * Handles blur on input
257
+ // * @internal
258
+ // */
259
+ // public handleBlur(): void
260
+ // {
261
+ // this._pickerRequest.next(false);
262
+ // }
263
+ // /**
264
+ // * Handles user input
265
+ // * @internal
266
+ // */
267
+ // public handleInput(): void
268
+ // {
269
+ // //empty value
270
+ // if(!this.currentValue)
271
+ // {
272
+ // this._clearValue();
273
+ // this._valueChange.next();
274
+ // return;
275
+ // }
276
+ // this._dateApiValue = this._dateApi.getValue(this.currentValue, this._format);
277
+ // this._isValid = this._dateApiValue.isValid();
278
+ // this._valueChange.next();
279
+ // }
280
+ // /**
281
+ // * Handles selection of text inside of input
282
+ // * @internal
283
+ // */
284
+ // public handleSelect(): void
285
+ // {
286
+ // //handles when all text is selected
287
+ // if(this.currentValue && this.input.selectionStart == 0 && this.input.selectionEnd == this.input.value.length)
288
+ // {
289
+ // const result = this._parser!.parse(this.input.value, this.input.selectionStart!);
290
+ // this.input.selectionStart = result.positionFrom;
291
+ // this.input.selectionEnd = result.positionTo;
292
+ // }
293
+ // }
294
+ // /**
295
+ // * Handles click event inside of input
296
+ // * @internal
297
+ // */
298
+ // public handleClick(): void
299
+ // {
300
+ // this._pickerRequest.next(true);
301
+ // if(!this._dateApiValue)
302
+ // {
303
+ // return;
304
+ // }
305
+ // const result = this._parser!.parse(this.input.value, this.input.selectionStart!);
306
+ // this.input.selectionStart = result.positionFrom;
307
+ // this.input.selectionEnd = result.positionTo;
308
+ // }
309
+ // /**
310
+ // * Handles keyboard events
311
+ // * @param event - Keyboard event that occured
312
+ // * @param input - Html input element that holds current value and selection
313
+ // * @internal
314
+ // */
315
+ // public handleKeyboard(event: KeyboardEvent): void
316
+ // {
317
+ // if(!this._dateApiValue?.isValid())
318
+ // {
319
+ // return;
320
+ // }
321
+ // switch(event.key)
322
+ // {
323
+ // case 'ArrowRight':
324
+ // case 'ArrowLeft':
325
+ // {
326
+ // event.preventDefault();
327
+ // event.stopPropagation();
328
+ // const result = event.key == 'ArrowLeft' ? this._parser!.previous(this.input.value, this.input.selectionStart!) : this._parser!.next(this.input.value, this.input.selectionStart!);
329
+ // if(result)
330
+ // {
331
+ // this.input.selectionStart = result.positionFrom;
332
+ // this.input.selectionEnd = result.positionTo;
333
+ // }
334
+ // break;
335
+ // }
336
+ // case 'ArrowUp':
337
+ // case 'ArrowDown':
338
+ // {
339
+ // event.preventDefault();
340
+ // event.stopPropagation();
341
+ // let result = this._parser!.parse(this.input.value, this.input.selectionStart!);
342
+ // const selectionStart = result.positionFrom;
343
+ // this._stepChangeValue(result.part, event.key == 'ArrowUp');
344
+ // this._show();
345
+ // result = this._parser!.parse(this.input.value, selectionStart);
346
+ // this.input.selectionStart = result.positionFrom;
347
+ // this.input.selectionEnd = result.positionTo;
348
+ // break;
349
+ // }
350
+ // case 'Tab':
351
+ // {
352
+ // const result = event.shiftKey ? this._parser!.previous(this.input.value, this.input.selectionStart!) : this._parser!.next(this.input.value, this.input.selectionStart!);
353
+ // if(result)
354
+ // {
355
+ // event.preventDefault();
356
+ // event.stopPropagation();
357
+ // this.input.selectionStart = result.positionFrom;
358
+ // this.input.selectionEnd = result.positionTo;
359
+ // }
360
+ // break;
361
+ // }
362
+ // case 'a':
363
+ // {
364
+ // if(event.ctrlKey)
365
+ // {
366
+ // event.preventDefault();
367
+ // event.stopPropagation();
368
+ // }
369
+ // break;
370
+ // }
371
+ // case 'Backspace':
372
+ // {
373
+ // this._clearValue();
374
+ // this._valueChange.next();
375
+ // break;
376
+ // }
377
+ // case 'Escape':
378
+ // {
379
+ // this._pickerRequest.next(false);
380
+ // break;
381
+ // }
382
+ // case ' ':
383
+ // {
384
+ // if(event.ctrlKey)
385
+ // {
386
+ // this._pickerRequest.next(true);
387
+ // }
388
+ // break;
389
+ // }
390
+ // }
391
+ // }
392
+ // //######################### protected methods #########################
393
+ // /**
394
+ // * Shows current value in input
395
+ // */
396
+ // protected _show(): void
397
+ // {
398
+ // if(this._isValid)
399
+ // {
400
+ // this.currentValue = this._dateApiValue?.format(this._format) ?? null;
401
+ // }
402
+ // }
403
+ // /**
404
+ // * Tests whether are min or max constraint broken, returns true if constraint is broken
405
+ // */
406
+ // protected _minMaxConstraintTest(): boolean
407
+ // {
408
+ // return (!!this._minValue && this._dateApiValue!.isBefore(this._minValue)) ||
409
+ // (!!this._maxValue && this._dateApiValue!.isAfter(this._maxValue));
410
+ // }
411
+ // /**
412
+ // * Runs code with check whether min max constrains was broken
413
+ // * @param code - Code that should be executed which can change current value
414
+ // */
415
+ // protected _withMinMaxConstraint(code: () => void): void
416
+ // {
417
+ // this._dateApiValue!.updateOriginal();
418
+ // code();
419
+ // //min value constraint failure
420
+ // if(this._minMaxConstraintTest())
421
+ // {
422
+ // this._dateApiValue?.resetOriginal();
423
+ // return;
424
+ // }
425
+ // this._valueChange.next();
426
+ // }
427
+ // /**
428
+ // * Clears current value
429
+ // */
430
+ // protected _clearValue(): void
431
+ // {
432
+ // this._dateApiValue = null;
433
+ // this._isValid = true;
434
+ // this.currentValue = null;
435
+ // }
436
+ // /**
437
+ // * Changes current value of date for for specified part by single step
438
+ // * @param part - Part of date that should be changed
439
+ // * @param increment - Indication whether value should be incremented or decremented
440
+ // */
441
+ // protected _stepChangeValue(part: string, increment: boolean): void
442
+ // {
443
+ // if(!this._dateApiValue?.isValid())
444
+ // {
445
+ // return;
446
+ // }
447
+ // switch(part)
448
+ // {
449
+ // case 'y':
450
+ // case 'Y':
451
+ // {
452
+ // this._withMinMaxConstraint(() => increment ? this._dateApiValue!.addYears(1) : this._dateApiValue!.subtractYears(1));
453
+ // break;
454
+ // }
455
+ // case 'Q':
456
+ // {
457
+ // break;
458
+ // }
459
+ // case 'M':
460
+ // {
461
+ // this._withMinMaxConstraint(() => increment ? this._dateApiValue!.addMonths(1) : this._dateApiValue!.subtractMonths(1));
462
+ // break;
463
+ // }
464
+ // case 'w':
465
+ // {
466
+ // this._withMinMaxConstraint(() => increment ? this._dateApiValue!.addWeeks(1) : this._dateApiValue!.subtractWeeks(1));
467
+ // break;
468
+ // }
469
+ // case 'd':
470
+ // case 'D':
471
+ // {
472
+ // this._withMinMaxConstraint(() => increment ? this._dateApiValue!.addDays(1) : this._dateApiValue!.subtractDays(1));
473
+ // break;
474
+ // }
475
+ // case 'H':
476
+ // {
477
+ // this._withMinMaxConstraint(() => increment ? this._dateApiValue!.addHours(1) : this._dateApiValue!.subtractHours(1));
478
+ // break;
479
+ // }
480
+ // case 'm':
481
+ // {
482
+ // this._withMinMaxConstraint(() => increment ? this._dateApiValue!.addMinutes(1) : this._dateApiValue!.subtractMinutes(1));
483
+ // break;
484
+ // }
485
+ // }
486
+ // }
487
+ // }
437
488
  //# sourceMappingURL=inputDateTime.component.js.map