@anguless/angulux 22.0.0-rc.0

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 (633) hide show
  1. package/LICENSE +22 -0
  2. package/NOTICE +40 -0
  3. package/fesm2022/anguless-angulux-api.mjs +843 -0
  4. package/fesm2022/anguless-angulux-api.mjs.map +1 -0
  5. package/fesm2022/anguless-angulux-autofocus.mjs +83 -0
  6. package/fesm2022/anguless-angulux-autofocus.mjs.map +1 -0
  7. package/fesm2022/anguless-angulux-avatar.mjs +212 -0
  8. package/fesm2022/anguless-angulux-avatar.mjs.map +1 -0
  9. package/fesm2022/anguless-angulux-avatargroup.mjs +104 -0
  10. package/fesm2022/anguless-angulux-avatargroup.mjs.map +1 -0
  11. package/fesm2022/anguless-angulux-badge.mjs +423 -0
  12. package/fesm2022/anguless-angulux-badge.mjs.map +1 -0
  13. package/fesm2022/anguless-angulux-base.mjs +124 -0
  14. package/fesm2022/anguless-angulux-base.mjs.map +1 -0
  15. package/fesm2022/anguless-angulux-basecomponent.mjs +443 -0
  16. package/fesm2022/anguless-angulux-basecomponent.mjs.map +1 -0
  17. package/fesm2022/anguless-angulux-baseeditableholder.mjs +70 -0
  18. package/fesm2022/anguless-angulux-baseeditableholder.mjs.map +1 -0
  19. package/fesm2022/anguless-angulux-baseinput.mjs +95 -0
  20. package/fesm2022/anguless-angulux-baseinput.mjs.map +1 -0
  21. package/fesm2022/anguless-angulux-basemodelholder.mjs +27 -0
  22. package/fesm2022/anguless-angulux-basemodelholder.mjs.map +1 -0
  23. package/fesm2022/anguless-angulux-bind.mjs +99 -0
  24. package/fesm2022/anguless-angulux-bind.mjs.map +1 -0
  25. package/fesm2022/anguless-angulux-button.mjs +1039 -0
  26. package/fesm2022/anguless-angulux-button.mjs.map +1 -0
  27. package/fesm2022/anguless-angulux-card.mjs +311 -0
  28. package/fesm2022/anguless-angulux-card.mjs.map +1 -0
  29. package/fesm2022/anguless-angulux-chart.mjs +268 -0
  30. package/fesm2022/anguless-angulux-chart.mjs.map +1 -0
  31. package/fesm2022/anguless-angulux-checkbox.mjs +469 -0
  32. package/fesm2022/anguless-angulux-checkbox.mjs.map +1 -0
  33. package/fesm2022/anguless-angulux-chip.mjs +376 -0
  34. package/fesm2022/anguless-angulux-chip.mjs.map +1 -0
  35. package/fesm2022/anguless-angulux-colorpicker.mjs +807 -0
  36. package/fesm2022/anguless-angulux-colorpicker.mjs.map +1 -0
  37. package/fesm2022/anguless-angulux-config.mjs +309 -0
  38. package/fesm2022/anguless-angulux-config.mjs.map +1 -0
  39. package/fesm2022/anguless-angulux-confirmdialog.mjs +858 -0
  40. package/fesm2022/anguless-angulux-confirmdialog.mjs.map +1 -0
  41. package/fesm2022/anguless-angulux-datepicker.mjs +4441 -0
  42. package/fesm2022/anguless-angulux-datepicker.mjs.map +1 -0
  43. package/fesm2022/anguless-angulux-dialog.mjs +1420 -0
  44. package/fesm2022/anguless-angulux-dialog.mjs.map +1 -0
  45. package/fesm2022/anguless-angulux-divider.mjs +160 -0
  46. package/fesm2022/anguless-angulux-divider.mjs.map +1 -0
  47. package/fesm2022/anguless-angulux-dom.mjs +778 -0
  48. package/fesm2022/anguless-angulux-dom.mjs.map +1 -0
  49. package/fesm2022/anguless-angulux-drawer.mjs +782 -0
  50. package/fesm2022/anguless-angulux-drawer.mjs.map +1 -0
  51. package/fesm2022/anguless-angulux-fileupload.mjs +1580 -0
  52. package/fesm2022/anguless-angulux-fileupload.mjs.map +1 -0
  53. package/fesm2022/anguless-angulux-fluid.mjs +87 -0
  54. package/fesm2022/anguless-angulux-fluid.mjs.map +1 -0
  55. package/fesm2022/anguless-angulux-focustrap.mjs +108 -0
  56. package/fesm2022/anguless-angulux-focustrap.mjs.map +1 -0
  57. package/fesm2022/anguless-angulux-iconfield.mjs +112 -0
  58. package/fesm2022/anguless-angulux-iconfield.mjs.map +1 -0
  59. package/fesm2022/anguless-angulux-icons-angledoubledown.mjs +38 -0
  60. package/fesm2022/anguless-angulux-icons-angledoubledown.mjs.map +1 -0
  61. package/fesm2022/anguless-angulux-icons-angledoubleleft.mjs +38 -0
  62. package/fesm2022/anguless-angulux-icons-angledoubleleft.mjs.map +1 -0
  63. package/fesm2022/anguless-angulux-icons-angledoubleright.mjs +38 -0
  64. package/fesm2022/anguless-angulux-icons-angledoubleright.mjs.map +1 -0
  65. package/fesm2022/anguless-angulux-icons-angledoubleup.mjs +38 -0
  66. package/fesm2022/anguless-angulux-icons-angledoubleup.mjs.map +1 -0
  67. package/fesm2022/anguless-angulux-icons-angledown.mjs +34 -0
  68. package/fesm2022/anguless-angulux-icons-angledown.mjs.map +1 -0
  69. package/fesm2022/anguless-angulux-icons-angleleft.mjs +34 -0
  70. package/fesm2022/anguless-angulux-icons-angleleft.mjs.map +1 -0
  71. package/fesm2022/anguless-angulux-icons-angleright.mjs +34 -0
  72. package/fesm2022/anguless-angulux-icons-angleright.mjs.map +1 -0
  73. package/fesm2022/anguless-angulux-icons-angleup.mjs +34 -0
  74. package/fesm2022/anguless-angulux-icons-angleup.mjs.map +1 -0
  75. package/fesm2022/anguless-angulux-icons-arrowdown.mjs +57 -0
  76. package/fesm2022/anguless-angulux-icons-arrowdown.mjs.map +1 -0
  77. package/fesm2022/anguless-angulux-icons-arrowdownleft.mjs +34 -0
  78. package/fesm2022/anguless-angulux-icons-arrowdownleft.mjs.map +1 -0
  79. package/fesm2022/anguless-angulux-icons-arrowdownright.mjs +34 -0
  80. package/fesm2022/anguless-angulux-icons-arrowdownright.mjs.map +1 -0
  81. package/fesm2022/anguless-angulux-icons-arrowleft.mjs +57 -0
  82. package/fesm2022/anguless-angulux-icons-arrowleft.mjs.map +1 -0
  83. package/fesm2022/anguless-angulux-icons-arrowright.mjs +38 -0
  84. package/fesm2022/anguless-angulux-icons-arrowright.mjs.map +1 -0
  85. package/fesm2022/anguless-angulux-icons-arrowup.mjs +57 -0
  86. package/fesm2022/anguless-angulux-icons-arrowup.mjs.map +1 -0
  87. package/fesm2022/anguless-angulux-icons-ban.mjs +53 -0
  88. package/fesm2022/anguless-angulux-icons-ban.mjs.map +1 -0
  89. package/fesm2022/anguless-angulux-icons-bars.mjs +38 -0
  90. package/fesm2022/anguless-angulux-icons-bars.mjs.map +1 -0
  91. package/fesm2022/anguless-angulux-icons-baseicon.mjs +101 -0
  92. package/fesm2022/anguless-angulux-icons-baseicon.mjs.map +1 -0
  93. package/fesm2022/anguless-angulux-icons-blank.mjs +24 -0
  94. package/fesm2022/anguless-angulux-icons-blank.mjs.map +1 -0
  95. package/fesm2022/anguless-angulux-icons-calendar.mjs +34 -0
  96. package/fesm2022/anguless-angulux-icons-calendar.mjs.map +1 -0
  97. package/fesm2022/anguless-angulux-icons-caretleft.mjs +34 -0
  98. package/fesm2022/anguless-angulux-icons-caretleft.mjs.map +1 -0
  99. package/fesm2022/anguless-angulux-icons-caretright.mjs +34 -0
  100. package/fesm2022/anguless-angulux-icons-caretright.mjs.map +1 -0
  101. package/fesm2022/anguless-angulux-icons-check.mjs +34 -0
  102. package/fesm2022/anguless-angulux-icons-check.mjs.map +1 -0
  103. package/fesm2022/anguless-angulux-icons-chevrondown.mjs +34 -0
  104. package/fesm2022/anguless-angulux-icons-chevrondown.mjs.map +1 -0
  105. package/fesm2022/anguless-angulux-icons-chevronleft.mjs +34 -0
  106. package/fesm2022/anguless-angulux-icons-chevronleft.mjs.map +1 -0
  107. package/fesm2022/anguless-angulux-icons-chevronright.mjs +34 -0
  108. package/fesm2022/anguless-angulux-icons-chevronright.mjs.map +1 -0
  109. package/fesm2022/anguless-angulux-icons-chevronup.mjs +34 -0
  110. package/fesm2022/anguless-angulux-icons-chevronup.mjs.map +1 -0
  111. package/fesm2022/anguless-angulux-icons-exclamationtriangle.mjs +69 -0
  112. package/fesm2022/anguless-angulux-icons-exclamationtriangle.mjs.map +1 -0
  113. package/fesm2022/anguless-angulux-icons-eye.mjs +38 -0
  114. package/fesm2022/anguless-angulux-icons-eye.mjs.map +1 -0
  115. package/fesm2022/anguless-angulux-icons-eyeslash.mjs +57 -0
  116. package/fesm2022/anguless-angulux-icons-eyeslash.mjs.map +1 -0
  117. package/fesm2022/anguless-angulux-icons-filter.mjs +53 -0
  118. package/fesm2022/anguless-angulux-icons-filter.mjs.map +1 -0
  119. package/fesm2022/anguless-angulux-icons-filterfill.mjs +34 -0
  120. package/fesm2022/anguless-angulux-icons-filterfill.mjs.map +1 -0
  121. package/fesm2022/anguless-angulux-icons-filterslash.mjs +57 -0
  122. package/fesm2022/anguless-angulux-icons-filterslash.mjs.map +1 -0
  123. package/fesm2022/anguless-angulux-icons-home.mjs +57 -0
  124. package/fesm2022/anguless-angulux-icons-home.mjs.map +1 -0
  125. package/fesm2022/anguless-angulux-icons-infocircle.mjs +57 -0
  126. package/fesm2022/anguless-angulux-icons-infocircle.mjs.map +1 -0
  127. package/fesm2022/anguless-angulux-icons-minus.mjs +34 -0
  128. package/fesm2022/anguless-angulux-icons-minus.mjs.map +1 -0
  129. package/fesm2022/anguless-angulux-icons-pencil.mjs +53 -0
  130. package/fesm2022/anguless-angulux-icons-pencil.mjs.map +1 -0
  131. package/fesm2022/anguless-angulux-icons-plus.mjs +53 -0
  132. package/fesm2022/anguless-angulux-icons-plus.mjs.map +1 -0
  133. package/fesm2022/anguless-angulux-icons-refresh.mjs +57 -0
  134. package/fesm2022/anguless-angulux-icons-refresh.mjs.map +1 -0
  135. package/fesm2022/anguless-angulux-icons-search.mjs +57 -0
  136. package/fesm2022/anguless-angulux-icons-search.mjs.map +1 -0
  137. package/fesm2022/anguless-angulux-icons-searchminus.mjs +57 -0
  138. package/fesm2022/anguless-angulux-icons-searchminus.mjs.map +1 -0
  139. package/fesm2022/anguless-angulux-icons-searchplus.mjs +57 -0
  140. package/fesm2022/anguless-angulux-icons-searchplus.mjs.map +1 -0
  141. package/fesm2022/anguless-angulux-icons-sortalt.mjs +65 -0
  142. package/fesm2022/anguless-angulux-icons-sortalt.mjs.map +1 -0
  143. package/fesm2022/anguless-angulux-icons-sortamountdown.mjs +53 -0
  144. package/fesm2022/anguless-angulux-icons-sortamountdown.mjs.map +1 -0
  145. package/fesm2022/anguless-angulux-icons-sortamountupalt.mjs +53 -0
  146. package/fesm2022/anguless-angulux-icons-sortamountupalt.mjs.map +1 -0
  147. package/fesm2022/anguless-angulux-icons-spinner.mjs +53 -0
  148. package/fesm2022/anguless-angulux-icons-spinner.mjs.map +1 -0
  149. package/fesm2022/anguless-angulux-icons-star.mjs +53 -0
  150. package/fesm2022/anguless-angulux-icons-star.mjs.map +1 -0
  151. package/fesm2022/anguless-angulux-icons-starfill.mjs +53 -0
  152. package/fesm2022/anguless-angulux-icons-starfill.mjs.map +1 -0
  153. package/fesm2022/anguless-angulux-icons-thlarge.mjs +57 -0
  154. package/fesm2022/anguless-angulux-icons-thlarge.mjs.map +1 -0
  155. package/fesm2022/anguless-angulux-icons-times.mjs +34 -0
  156. package/fesm2022/anguless-angulux-icons-times.mjs.map +1 -0
  157. package/fesm2022/anguless-angulux-icons-timescircle.mjs +57 -0
  158. package/fesm2022/anguless-angulux-icons-timescircle.mjs.map +1 -0
  159. package/fesm2022/anguless-angulux-icons-trash.mjs +57 -0
  160. package/fesm2022/anguless-angulux-icons-trash.mjs.map +1 -0
  161. package/fesm2022/anguless-angulux-icons-undo.mjs +57 -0
  162. package/fesm2022/anguless-angulux-icons-undo.mjs.map +1 -0
  163. package/fesm2022/anguless-angulux-icons-upload.mjs +57 -0
  164. package/fesm2022/anguless-angulux-icons-upload.mjs.map +1 -0
  165. package/fesm2022/anguless-angulux-icons-windowmaximize.mjs +57 -0
  166. package/fesm2022/anguless-angulux-icons-windowmaximize.mjs.map +1 -0
  167. package/fesm2022/anguless-angulux-icons-windowminimize.mjs +57 -0
  168. package/fesm2022/anguless-angulux-icons-windowminimize.mjs.map +1 -0
  169. package/fesm2022/anguless-angulux-icons.mjs +63 -0
  170. package/fesm2022/anguless-angulux-icons.mjs.map +1 -0
  171. package/fesm2022/anguless-angulux-inputicon.mjs +84 -0
  172. package/fesm2022/anguless-angulux-inputicon.mjs.map +1 -0
  173. package/fesm2022/anguless-angulux-inputnumber.mjs +1673 -0
  174. package/fesm2022/anguless-angulux-inputnumber.mjs.map +1 -0
  175. package/fesm2022/anguless-angulux-inputtext.mjs +199 -0
  176. package/fesm2022/anguless-angulux-inputtext.mjs.map +1 -0
  177. package/fesm2022/anguless-angulux-menu.mjs +1160 -0
  178. package/fesm2022/anguless-angulux-menu.mjs.map +1 -0
  179. package/fesm2022/anguless-angulux-message.mjs +409 -0
  180. package/fesm2022/anguless-angulux-message.mjs.map +1 -0
  181. package/fesm2022/anguless-angulux-motion.mjs +721 -0
  182. package/fesm2022/anguless-angulux-motion.mjs.map +1 -0
  183. package/fesm2022/anguless-angulux-multiselect.mjs +2712 -0
  184. package/fesm2022/anguless-angulux-multiselect.mjs.map +1 -0
  185. package/fesm2022/anguless-angulux-overlay.mjs +886 -0
  186. package/fesm2022/anguless-angulux-overlay.mjs.map +1 -0
  187. package/fesm2022/anguless-angulux-paginator.mjs +823 -0
  188. package/fesm2022/anguless-angulux-paginator.mjs.map +1 -0
  189. package/fesm2022/anguless-angulux-password.mjs +1181 -0
  190. package/fesm2022/anguless-angulux-password.mjs.map +1 -0
  191. package/fesm2022/anguless-angulux-popover.mjs +532 -0
  192. package/fesm2022/anguless-angulux-popover.mjs.map +1 -0
  193. package/fesm2022/anguless-angulux-progressbar.mjs +214 -0
  194. package/fesm2022/anguless-angulux-progressbar.mjs.map +1 -0
  195. package/fesm2022/anguless-angulux-progressspinner.mjs +146 -0
  196. package/fesm2022/anguless-angulux-progressspinner.mjs.map +1 -0
  197. package/fesm2022/anguless-angulux-radiobutton.mjs +381 -0
  198. package/fesm2022/anguless-angulux-radiobutton.mjs.map +1 -0
  199. package/fesm2022/anguless-angulux-ripple.mjs +194 -0
  200. package/fesm2022/anguless-angulux-ripple.mjs.map +1 -0
  201. package/fesm2022/anguless-angulux-scroller.mjs +1325 -0
  202. package/fesm2022/anguless-angulux-scroller.mjs.map +1 -0
  203. package/fesm2022/anguless-angulux-select.mjs +2408 -0
  204. package/fesm2022/anguless-angulux-select.mjs.map +1 -0
  205. package/fesm2022/anguless-angulux-selectbutton.mjs +434 -0
  206. package/fesm2022/anguless-angulux-selectbutton.mjs.map +1 -0
  207. package/fesm2022/anguless-angulux-skeleton.mjs +168 -0
  208. package/fesm2022/anguless-angulux-skeleton.mjs.map +1 -0
  209. package/fesm2022/anguless-angulux-splitbutton.mjs +643 -0
  210. package/fesm2022/anguless-angulux-splitbutton.mjs.map +1 -0
  211. package/fesm2022/anguless-angulux-table.mjs +7815 -0
  212. package/fesm2022/anguless-angulux-table.mjs.map +1 -0
  213. package/fesm2022/anguless-angulux-tabs.mjs +921 -0
  214. package/fesm2022/anguless-angulux-tabs.mjs.map +1 -0
  215. package/fesm2022/anguless-angulux-tag.mjs +196 -0
  216. package/fesm2022/anguless-angulux-tag.mjs.map +1 -0
  217. package/fesm2022/anguless-angulux-textarea.mjs +227 -0
  218. package/fesm2022/anguless-angulux-textarea.mjs.map +1 -0
  219. package/fesm2022/anguless-angulux-tieredmenu.mjs +1635 -0
  220. package/fesm2022/anguless-angulux-tieredmenu.mjs.map +1 -0
  221. package/fesm2022/anguless-angulux-timeline.mjs +248 -0
  222. package/fesm2022/anguless-angulux-timeline.mjs.map +1 -0
  223. package/fesm2022/anguless-angulux-toast.mjs +788 -0
  224. package/fesm2022/anguless-angulux-toast.mjs.map +1 -0
  225. package/fesm2022/anguless-angulux-togglebutton.mjs +391 -0
  226. package/fesm2022/anguless-angulux-togglebutton.mjs.map +1 -0
  227. package/fesm2022/anguless-angulux-toggleswitch.mjs +345 -0
  228. package/fesm2022/anguless-angulux-toggleswitch.mjs.map +1 -0
  229. package/fesm2022/anguless-angulux-tooltip.mjs +845 -0
  230. package/fesm2022/anguless-angulux-tooltip.mjs.map +1 -0
  231. package/fesm2022/anguless-angulux-treetable.mjs +5167 -0
  232. package/fesm2022/anguless-angulux-treetable.mjs.map +1 -0
  233. package/fesm2022/anguless-angulux-ts-helpers.mjs +4 -0
  234. package/fesm2022/anguless-angulux-ts-helpers.mjs.map +1 -0
  235. package/fesm2022/anguless-angulux-types-accordion.mjs +4 -0
  236. package/fesm2022/anguless-angulux-types-accordion.mjs.map +1 -0
  237. package/fesm2022/anguless-angulux-types-autocomplete.mjs +4 -0
  238. package/fesm2022/anguless-angulux-types-autocomplete.mjs.map +1 -0
  239. package/fesm2022/anguless-angulux-types-avatar.mjs +4 -0
  240. package/fesm2022/anguless-angulux-types-avatar.mjs.map +1 -0
  241. package/fesm2022/anguless-angulux-types-avatargroup.mjs +4 -0
  242. package/fesm2022/anguless-angulux-types-avatargroup.mjs.map +1 -0
  243. package/fesm2022/anguless-angulux-types-badge.mjs +4 -0
  244. package/fesm2022/anguless-angulux-types-badge.mjs.map +1 -0
  245. package/fesm2022/anguless-angulux-types-blockui.mjs +4 -0
  246. package/fesm2022/anguless-angulux-types-blockui.mjs.map +1 -0
  247. package/fesm2022/anguless-angulux-types-breadcrumb.mjs +4 -0
  248. package/fesm2022/anguless-angulux-types-breadcrumb.mjs.map +1 -0
  249. package/fesm2022/anguless-angulux-types-button.mjs +4 -0
  250. package/fesm2022/anguless-angulux-types-button.mjs.map +1 -0
  251. package/fesm2022/anguless-angulux-types-card.mjs +4 -0
  252. package/fesm2022/anguless-angulux-types-card.mjs.map +1 -0
  253. package/fesm2022/anguless-angulux-types-carousel.mjs +4 -0
  254. package/fesm2022/anguless-angulux-types-carousel.mjs.map +1 -0
  255. package/fesm2022/anguless-angulux-types-cascadeselect.mjs +4 -0
  256. package/fesm2022/anguless-angulux-types-cascadeselect.mjs.map +1 -0
  257. package/fesm2022/anguless-angulux-types-chart.mjs +4 -0
  258. package/fesm2022/anguless-angulux-types-chart.mjs.map +1 -0
  259. package/fesm2022/anguless-angulux-types-checkbox.mjs +4 -0
  260. package/fesm2022/anguless-angulux-types-checkbox.mjs.map +1 -0
  261. package/fesm2022/anguless-angulux-types-chip.mjs +4 -0
  262. package/fesm2022/anguless-angulux-types-chip.mjs.map +1 -0
  263. package/fesm2022/anguless-angulux-types-colorpicker.mjs +4 -0
  264. package/fesm2022/anguless-angulux-types-colorpicker.mjs.map +1 -0
  265. package/fesm2022/anguless-angulux-types-confirmdialog.mjs +4 -0
  266. package/fesm2022/anguless-angulux-types-confirmdialog.mjs.map +1 -0
  267. package/fesm2022/anguless-angulux-types-confirmpopup.mjs +4 -0
  268. package/fesm2022/anguless-angulux-types-confirmpopup.mjs.map +1 -0
  269. package/fesm2022/anguless-angulux-types-contextmenu.mjs +4 -0
  270. package/fesm2022/anguless-angulux-types-contextmenu.mjs.map +1 -0
  271. package/fesm2022/anguless-angulux-types-dataview.mjs +4 -0
  272. package/fesm2022/anguless-angulux-types-dataview.mjs.map +1 -0
  273. package/fesm2022/anguless-angulux-types-datepicker.mjs +4 -0
  274. package/fesm2022/anguless-angulux-types-datepicker.mjs.map +1 -0
  275. package/fesm2022/anguless-angulux-types-dialog.mjs +4 -0
  276. package/fesm2022/anguless-angulux-types-dialog.mjs.map +1 -0
  277. package/fesm2022/anguless-angulux-types-divider.mjs +4 -0
  278. package/fesm2022/anguless-angulux-types-divider.mjs.map +1 -0
  279. package/fesm2022/anguless-angulux-types-dock.mjs +4 -0
  280. package/fesm2022/anguless-angulux-types-dock.mjs.map +1 -0
  281. package/fesm2022/anguless-angulux-types-drawer.mjs +4 -0
  282. package/fesm2022/anguless-angulux-types-drawer.mjs.map +1 -0
  283. package/fesm2022/anguless-angulux-types-editor.mjs +4 -0
  284. package/fesm2022/anguless-angulux-types-editor.mjs.map +1 -0
  285. package/fesm2022/anguless-angulux-types-fieldset.mjs +4 -0
  286. package/fesm2022/anguless-angulux-types-fieldset.mjs.map +1 -0
  287. package/fesm2022/anguless-angulux-types-fileupload.mjs +4 -0
  288. package/fesm2022/anguless-angulux-types-fileupload.mjs.map +1 -0
  289. package/fesm2022/anguless-angulux-types-floatlabel.mjs +4 -0
  290. package/fesm2022/anguless-angulux-types-floatlabel.mjs.map +1 -0
  291. package/fesm2022/anguless-angulux-types-fluid.mjs +4 -0
  292. package/fesm2022/anguless-angulux-types-fluid.mjs.map +1 -0
  293. package/fesm2022/anguless-angulux-types-galleria.mjs +4 -0
  294. package/fesm2022/anguless-angulux-types-galleria.mjs.map +1 -0
  295. package/fesm2022/anguless-angulux-types-iconfield.mjs +4 -0
  296. package/fesm2022/anguless-angulux-types-iconfield.mjs.map +1 -0
  297. package/fesm2022/anguless-angulux-types-iftalabel.mjs +4 -0
  298. package/fesm2022/anguless-angulux-types-iftalabel.mjs.map +1 -0
  299. package/fesm2022/anguless-angulux-types-image.mjs +4 -0
  300. package/fesm2022/anguless-angulux-types-image.mjs.map +1 -0
  301. package/fesm2022/anguless-angulux-types-imagecompare.mjs +4 -0
  302. package/fesm2022/anguless-angulux-types-imagecompare.mjs.map +1 -0
  303. package/fesm2022/anguless-angulux-types-inplace.mjs +4 -0
  304. package/fesm2022/anguless-angulux-types-inplace.mjs.map +1 -0
  305. package/fesm2022/anguless-angulux-types-inputgroup.mjs +4 -0
  306. package/fesm2022/anguless-angulux-types-inputgroup.mjs.map +1 -0
  307. package/fesm2022/anguless-angulux-types-inputgroupaddon.mjs +4 -0
  308. package/fesm2022/anguless-angulux-types-inputgroupaddon.mjs.map +1 -0
  309. package/fesm2022/anguless-angulux-types-inputicon.mjs +4 -0
  310. package/fesm2022/anguless-angulux-types-inputicon.mjs.map +1 -0
  311. package/fesm2022/anguless-angulux-types-inputmask.mjs +4 -0
  312. package/fesm2022/anguless-angulux-types-inputmask.mjs.map +1 -0
  313. package/fesm2022/anguless-angulux-types-inputnumber.mjs +4 -0
  314. package/fesm2022/anguless-angulux-types-inputnumber.mjs.map +1 -0
  315. package/fesm2022/anguless-angulux-types-inputotp.mjs +4 -0
  316. package/fesm2022/anguless-angulux-types-inputotp.mjs.map +1 -0
  317. package/fesm2022/anguless-angulux-types-inputtext.mjs +4 -0
  318. package/fesm2022/anguless-angulux-types-inputtext.mjs.map +1 -0
  319. package/fesm2022/anguless-angulux-types-knob.mjs +4 -0
  320. package/fesm2022/anguless-angulux-types-knob.mjs.map +1 -0
  321. package/fesm2022/anguless-angulux-types-listbox.mjs +4 -0
  322. package/fesm2022/anguless-angulux-types-listbox.mjs.map +1 -0
  323. package/fesm2022/anguless-angulux-types-megamenu.mjs +4 -0
  324. package/fesm2022/anguless-angulux-types-megamenu.mjs.map +1 -0
  325. package/fesm2022/anguless-angulux-types-menu.mjs +4 -0
  326. package/fesm2022/anguless-angulux-types-menu.mjs.map +1 -0
  327. package/fesm2022/anguless-angulux-types-menubar.mjs +4 -0
  328. package/fesm2022/anguless-angulux-types-menubar.mjs.map +1 -0
  329. package/fesm2022/anguless-angulux-types-message.mjs +4 -0
  330. package/fesm2022/anguless-angulux-types-message.mjs.map +1 -0
  331. package/fesm2022/anguless-angulux-types-metergroup.mjs +4 -0
  332. package/fesm2022/anguless-angulux-types-metergroup.mjs.map +1 -0
  333. package/fesm2022/anguless-angulux-types-motion.mjs +4 -0
  334. package/fesm2022/anguless-angulux-types-motion.mjs.map +1 -0
  335. package/fesm2022/anguless-angulux-types-multiselect.mjs +4 -0
  336. package/fesm2022/anguless-angulux-types-multiselect.mjs.map +1 -0
  337. package/fesm2022/anguless-angulux-types-orderlist.mjs +4 -0
  338. package/fesm2022/anguless-angulux-types-orderlist.mjs.map +1 -0
  339. package/fesm2022/anguless-angulux-types-organizationchart.mjs +4 -0
  340. package/fesm2022/anguless-angulux-types-organizationchart.mjs.map +1 -0
  341. package/fesm2022/anguless-angulux-types-overlay.mjs +4 -0
  342. package/fesm2022/anguless-angulux-types-overlay.mjs.map +1 -0
  343. package/fesm2022/anguless-angulux-types-overlaybadge.mjs +4 -0
  344. package/fesm2022/anguless-angulux-types-overlaybadge.mjs.map +1 -0
  345. package/fesm2022/anguless-angulux-types-paginator.mjs +4 -0
  346. package/fesm2022/anguless-angulux-types-paginator.mjs.map +1 -0
  347. package/fesm2022/anguless-angulux-types-panel.mjs +4 -0
  348. package/fesm2022/anguless-angulux-types-panel.mjs.map +1 -0
  349. package/fesm2022/anguless-angulux-types-panelmenu.mjs +4 -0
  350. package/fesm2022/anguless-angulux-types-panelmenu.mjs.map +1 -0
  351. package/fesm2022/anguless-angulux-types-password.mjs +4 -0
  352. package/fesm2022/anguless-angulux-types-password.mjs.map +1 -0
  353. package/fesm2022/anguless-angulux-types-picklist.mjs +4 -0
  354. package/fesm2022/anguless-angulux-types-picklist.mjs.map +1 -0
  355. package/fesm2022/anguless-angulux-types-popover.mjs +4 -0
  356. package/fesm2022/anguless-angulux-types-popover.mjs.map +1 -0
  357. package/fesm2022/anguless-angulux-types-progressbar.mjs +4 -0
  358. package/fesm2022/anguless-angulux-types-progressbar.mjs.map +1 -0
  359. package/fesm2022/anguless-angulux-types-progressspinner.mjs +4 -0
  360. package/fesm2022/anguless-angulux-types-progressspinner.mjs.map +1 -0
  361. package/fesm2022/anguless-angulux-types-radiobutton.mjs +4 -0
  362. package/fesm2022/anguless-angulux-types-radiobutton.mjs.map +1 -0
  363. package/fesm2022/anguless-angulux-types-rating.mjs +4 -0
  364. package/fesm2022/anguless-angulux-types-rating.mjs.map +1 -0
  365. package/fesm2022/anguless-angulux-types-scroller.mjs +4 -0
  366. package/fesm2022/anguless-angulux-types-scroller.mjs.map +1 -0
  367. package/fesm2022/anguless-angulux-types-scrollpanel.mjs +4 -0
  368. package/fesm2022/anguless-angulux-types-scrollpanel.mjs.map +1 -0
  369. package/fesm2022/anguless-angulux-types-scrolltop.mjs +4 -0
  370. package/fesm2022/anguless-angulux-types-scrolltop.mjs.map +1 -0
  371. package/fesm2022/anguless-angulux-types-select.mjs +4 -0
  372. package/fesm2022/anguless-angulux-types-select.mjs.map +1 -0
  373. package/fesm2022/anguless-angulux-types-selectbutton.mjs +4 -0
  374. package/fesm2022/anguless-angulux-types-selectbutton.mjs.map +1 -0
  375. package/fesm2022/anguless-angulux-types-skeleton.mjs +4 -0
  376. package/fesm2022/anguless-angulux-types-skeleton.mjs.map +1 -0
  377. package/fesm2022/anguless-angulux-types-slider.mjs +4 -0
  378. package/fesm2022/anguless-angulux-types-slider.mjs.map +1 -0
  379. package/fesm2022/anguless-angulux-types-speeddial.mjs +4 -0
  380. package/fesm2022/anguless-angulux-types-speeddial.mjs.map +1 -0
  381. package/fesm2022/anguless-angulux-types-splitbutton.mjs +4 -0
  382. package/fesm2022/anguless-angulux-types-splitbutton.mjs.map +1 -0
  383. package/fesm2022/anguless-angulux-types-splitter.mjs +4 -0
  384. package/fesm2022/anguless-angulux-types-splitter.mjs.map +1 -0
  385. package/fesm2022/anguless-angulux-types-stepper.mjs +4 -0
  386. package/fesm2022/anguless-angulux-types-stepper.mjs.map +1 -0
  387. package/fesm2022/anguless-angulux-types-table.mjs +4 -0
  388. package/fesm2022/anguless-angulux-types-table.mjs.map +1 -0
  389. package/fesm2022/anguless-angulux-types-tabs.mjs +4 -0
  390. package/fesm2022/anguless-angulux-types-tabs.mjs.map +1 -0
  391. package/fesm2022/anguless-angulux-types-tag.mjs +4 -0
  392. package/fesm2022/anguless-angulux-types-tag.mjs.map +1 -0
  393. package/fesm2022/anguless-angulux-types-terminal.mjs +4 -0
  394. package/fesm2022/anguless-angulux-types-terminal.mjs.map +1 -0
  395. package/fesm2022/anguless-angulux-types-textarea.mjs +4 -0
  396. package/fesm2022/anguless-angulux-types-textarea.mjs.map +1 -0
  397. package/fesm2022/anguless-angulux-types-tieredmenu.mjs +4 -0
  398. package/fesm2022/anguless-angulux-types-tieredmenu.mjs.map +1 -0
  399. package/fesm2022/anguless-angulux-types-timeline.mjs +4 -0
  400. package/fesm2022/anguless-angulux-types-timeline.mjs.map +1 -0
  401. package/fesm2022/anguless-angulux-types-toast.mjs +4 -0
  402. package/fesm2022/anguless-angulux-types-toast.mjs.map +1 -0
  403. package/fesm2022/anguless-angulux-types-togglebutton.mjs +4 -0
  404. package/fesm2022/anguless-angulux-types-togglebutton.mjs.map +1 -0
  405. package/fesm2022/anguless-angulux-types-toggleswitch.mjs +4 -0
  406. package/fesm2022/anguless-angulux-types-toggleswitch.mjs.map +1 -0
  407. package/fesm2022/anguless-angulux-types-toolbar.mjs +4 -0
  408. package/fesm2022/anguless-angulux-types-toolbar.mjs.map +1 -0
  409. package/fesm2022/anguless-angulux-types-tooltip.mjs +4 -0
  410. package/fesm2022/anguless-angulux-types-tooltip.mjs.map +1 -0
  411. package/fesm2022/anguless-angulux-types-tree.mjs +4 -0
  412. package/fesm2022/anguless-angulux-types-tree.mjs.map +1 -0
  413. package/fesm2022/anguless-angulux-types-treeselect.mjs +4 -0
  414. package/fesm2022/anguless-angulux-types-treeselect.mjs.map +1 -0
  415. package/fesm2022/anguless-angulux-types-treetable.mjs +4 -0
  416. package/fesm2022/anguless-angulux-types-treetable.mjs.map +1 -0
  417. package/fesm2022/anguless-angulux-usestyle.mjs +54 -0
  418. package/fesm2022/anguless-angulux-usestyle.mjs.map +1 -0
  419. package/fesm2022/anguless-angulux-utils.mjs +332 -0
  420. package/fesm2022/anguless-angulux-utils.mjs.map +1 -0
  421. package/fesm2022/anguless-angulux.mjs +6 -0
  422. package/fesm2022/anguless-angulux.mjs.map +1 -0
  423. package/package.json +904 -0
  424. package/types/anguless-angulux-api.d.ts +1976 -0
  425. package/types/anguless-angulux-autofocus.d.ts +31 -0
  426. package/types/anguless-angulux-avatar.d.ts +138 -0
  427. package/types/anguless-angulux-avatargroup.d.ts +64 -0
  428. package/types/anguless-angulux-badge.d.ts +182 -0
  429. package/types/anguless-angulux-base.d.ts +58 -0
  430. package/types/anguless-angulux-basecomponent.d.ts +175 -0
  431. package/types/anguless-angulux-baseeditableholder.d.ts +45 -0
  432. package/types/anguless-angulux-baseinput.d.ts +73 -0
  433. package/types/anguless-angulux-basemodelholder.d.ts +12 -0
  434. package/types/anguless-angulux-bind.d.ts +38 -0
  435. package/types/anguless-angulux-button.d.ts +489 -0
  436. package/types/anguless-angulux-card.d.ts +155 -0
  437. package/types/anguless-angulux-chart.d.ts +133 -0
  438. package/types/anguless-angulux-checkbox.d.ts +229 -0
  439. package/types/anguless-angulux-chip.d.ts +165 -0
  440. package/types/anguless-angulux-colorpicker.d.ts +315 -0
  441. package/types/anguless-angulux-config.d.ts +268 -0
  442. package/types/anguless-angulux-confirmdialog.d.ts +358 -0
  443. package/types/anguless-angulux-datepicker.d.ts +1015 -0
  444. package/types/anguless-angulux-dialog.d.ts +553 -0
  445. package/types/anguless-angulux-divider.d.ts +120 -0
  446. package/types/anguless-angulux-dom.d.ts +109 -0
  447. package/types/anguless-angulux-drawer.d.ts +301 -0
  448. package/types/anguless-angulux-fileupload.d.ts +560 -0
  449. package/types/anguless-angulux-fluid.d.ts +52 -0
  450. package/types/anguless-angulux-focustrap.d.ts +36 -0
  451. package/types/anguless-angulux-iconfield.d.ts +71 -0
  452. package/types/anguless-angulux-icons-angledoubledown.d.ts +9 -0
  453. package/types/anguless-angulux-icons-angledoubleleft.d.ts +9 -0
  454. package/types/anguless-angulux-icons-angledoubleright.d.ts +9 -0
  455. package/types/anguless-angulux-icons-angledoubleup.d.ts +9 -0
  456. package/types/anguless-angulux-icons-angledown.d.ts +9 -0
  457. package/types/anguless-angulux-icons-angleleft.d.ts +9 -0
  458. package/types/anguless-angulux-icons-angleright.d.ts +9 -0
  459. package/types/anguless-angulux-icons-angleup.d.ts +9 -0
  460. package/types/anguless-angulux-icons-arrowdown.d.ts +11 -0
  461. package/types/anguless-angulux-icons-arrowdownleft.d.ts +9 -0
  462. package/types/anguless-angulux-icons-arrowdownright.d.ts +9 -0
  463. package/types/anguless-angulux-icons-arrowleft.d.ts +11 -0
  464. package/types/anguless-angulux-icons-arrowright.d.ts +9 -0
  465. package/types/anguless-angulux-icons-arrowup.d.ts +11 -0
  466. package/types/anguless-angulux-icons-ban.d.ts +11 -0
  467. package/types/anguless-angulux-icons-bars.d.ts +9 -0
  468. package/types/anguless-angulux-icons-baseicon.d.ts +31 -0
  469. package/types/anguless-angulux-icons-blank.d.ts +9 -0
  470. package/types/anguless-angulux-icons-calendar.d.ts +9 -0
  471. package/types/anguless-angulux-icons-caretleft.d.ts +9 -0
  472. package/types/anguless-angulux-icons-caretright.d.ts +9 -0
  473. package/types/anguless-angulux-icons-check.d.ts +9 -0
  474. package/types/anguless-angulux-icons-chevrondown.d.ts +9 -0
  475. package/types/anguless-angulux-icons-chevronleft.d.ts +9 -0
  476. package/types/anguless-angulux-icons-chevronright.d.ts +9 -0
  477. package/types/anguless-angulux-icons-chevronup.d.ts +9 -0
  478. package/types/anguless-angulux-icons-exclamationtriangle.d.ts +11 -0
  479. package/types/anguless-angulux-icons-eye.d.ts +9 -0
  480. package/types/anguless-angulux-icons-eyeslash.d.ts +11 -0
  481. package/types/anguless-angulux-icons-filter.d.ts +11 -0
  482. package/types/anguless-angulux-icons-filterfill.d.ts +9 -0
  483. package/types/anguless-angulux-icons-filterslash.d.ts +11 -0
  484. package/types/anguless-angulux-icons-home.d.ts +11 -0
  485. package/types/anguless-angulux-icons-infocircle.d.ts +11 -0
  486. package/types/anguless-angulux-icons-minus.d.ts +9 -0
  487. package/types/anguless-angulux-icons-pencil.d.ts +11 -0
  488. package/types/anguless-angulux-icons-plus.d.ts +11 -0
  489. package/types/anguless-angulux-icons-refresh.d.ts +11 -0
  490. package/types/anguless-angulux-icons-search.d.ts +11 -0
  491. package/types/anguless-angulux-icons-searchminus.d.ts +11 -0
  492. package/types/anguless-angulux-icons-searchplus.d.ts +11 -0
  493. package/types/anguless-angulux-icons-sortalt.d.ts +11 -0
  494. package/types/anguless-angulux-icons-sortamountdown.d.ts +11 -0
  495. package/types/anguless-angulux-icons-sortamountupalt.d.ts +11 -0
  496. package/types/anguless-angulux-icons-spinner.d.ts +11 -0
  497. package/types/anguless-angulux-icons-star.d.ts +11 -0
  498. package/types/anguless-angulux-icons-starfill.d.ts +11 -0
  499. package/types/anguless-angulux-icons-thlarge.d.ts +11 -0
  500. package/types/anguless-angulux-icons-times.d.ts +9 -0
  501. package/types/anguless-angulux-icons-timescircle.d.ts +11 -0
  502. package/types/anguless-angulux-icons-trash.d.ts +11 -0
  503. package/types/anguless-angulux-icons-undo.d.ts +11 -0
  504. package/types/anguless-angulux-icons-upload.d.ts +11 -0
  505. package/types/anguless-angulux-icons-windowmaximize.d.ts +11 -0
  506. package/types/anguless-angulux-icons-windowminimize.d.ts +11 -0
  507. package/types/anguless-angulux-icons.d.ts +53 -0
  508. package/types/anguless-angulux-inputicon.d.ts +44 -0
  509. package/types/anguless-angulux-inputnumber.d.ts +434 -0
  510. package/types/anguless-angulux-inputtext.d.ts +115 -0
  511. package/types/anguless-angulux-menu.d.ts +362 -0
  512. package/types/anguless-angulux-message.d.ts +211 -0
  513. package/types/anguless-angulux-motion.d.ts +398 -0
  514. package/types/anguless-angulux-multiselect.d.ts +902 -0
  515. package/types/anguless-angulux-overlay.d.ts +355 -0
  516. package/types/anguless-angulux-paginator.d.ts +361 -0
  517. package/types/anguless-angulux-password.d.ts +492 -0
  518. package/types/anguless-angulux-popover.d.ts +202 -0
  519. package/types/anguless-angulux-progressbar.d.ts +122 -0
  520. package/types/anguless-angulux-progressspinner.d.ts +90 -0
  521. package/types/anguless-angulux-radiobutton.d.ts +191 -0
  522. package/types/anguless-angulux-ripple.d.ts +61 -0
  523. package/types/anguless-angulux-scroller.d.ts +450 -0
  524. package/types/anguless-angulux-select.d.ts +790 -0
  525. package/types/anguless-angulux-selectbutton.d.ts +184 -0
  526. package/types/anguless-angulux-skeleton.d.ts +102 -0
  527. package/types/anguless-angulux-splitbutton.d.ts +292 -0
  528. package/types/anguless-angulux-table.d.ts +2087 -0
  529. package/types/anguless-angulux-tabs.d.ts +358 -0
  530. package/types/anguless-angulux-tag.d.ts +113 -0
  531. package/types/anguless-angulux-textarea.d.ts +125 -0
  532. package/types/anguless-angulux-tieredmenu.d.ts +430 -0
  533. package/types/anguless-angulux-timeline.d.ts +139 -0
  534. package/types/anguless-angulux-toast.d.ts +301 -0
  535. package/types/anguless-angulux-togglebutton.d.ts +203 -0
  536. package/types/anguless-angulux-toggleswitch.d.ts +166 -0
  537. package/types/anguless-angulux-tooltip.d.ts +284 -0
  538. package/types/anguless-angulux-treetable.d.ts +1276 -0
  539. package/types/anguless-angulux-ts-helpers.d.ts +6 -0
  540. package/types/anguless-angulux-types-accordion.d.ts +97 -0
  541. package/types/anguless-angulux-types-autocomplete.d.ts +312 -0
  542. package/types/anguless-angulux-types-avatar.d.ts +40 -0
  543. package/types/anguless-angulux-types-avatargroup.d.ts +28 -0
  544. package/types/anguless-angulux-types-badge.d.ts +26 -0
  545. package/types/anguless-angulux-types-blockui.d.ts +39 -0
  546. package/types/anguless-angulux-types-breadcrumb.d.ts +96 -0
  547. package/types/anguless-angulux-types-button.d.ts +124 -0
  548. package/types/anguless-angulux-types-card.d.ts +75 -0
  549. package/types/anguless-angulux-types-carousel.d.ts +143 -0
  550. package/types/anguless-angulux-types-cascadeselect.d.ts +215 -0
  551. package/types/anguless-angulux-types-chart.d.ts +32 -0
  552. package/types/anguless-angulux-types-checkbox.d.ts +81 -0
  553. package/types/anguless-angulux-types-chip.d.ts +71 -0
  554. package/types/anguless-angulux-types-colorpicker.d.ts +78 -0
  555. package/types/anguless-angulux-types-confirmdialog.d.ts +147 -0
  556. package/types/anguless-angulux-types-confirmpopup.d.ts +105 -0
  557. package/types/anguless-angulux-types-contextmenu.d.ts +102 -0
  558. package/types/anguless-angulux-types-dataview.d.ts +253 -0
  559. package/types/anguless-angulux-types-datepicker.d.ts +521 -0
  560. package/types/anguless-angulux-types-dialog.d.ts +107 -0
  561. package/types/anguless-angulux-types-divider.d.ts +28 -0
  562. package/types/anguless-angulux-types-dock.d.ts +70 -0
  563. package/types/anguless-angulux-types-drawer.d.ts +82 -0
  564. package/types/anguless-angulux-types-editor.d.ts +210 -0
  565. package/types/anguless-angulux-types-fieldset.d.ts +101 -0
  566. package/types/anguless-angulux-types-fileupload.d.ts +360 -0
  567. package/types/anguless-angulux-types-floatlabel.d.ts +26 -0
  568. package/types/anguless-angulux-types-fluid.d.ts +28 -0
  569. package/types/anguless-angulux-types-galleria.d.ts +250 -0
  570. package/types/anguless-angulux-types-iconfield.d.ts +26 -0
  571. package/types/anguless-angulux-types-iftalabel.d.ts +26 -0
  572. package/types/anguless-angulux-types-image.d.ts +144 -0
  573. package/types/anguless-angulux-types-imagecompare.d.ts +43 -0
  574. package/types/anguless-angulux-types-inplace.d.ts +72 -0
  575. package/types/anguless-angulux-types-inputgroup.d.ts +28 -0
  576. package/types/anguless-angulux-types-inputgroupaddon.d.ts +28 -0
  577. package/types/anguless-angulux-types-inputicon.d.ts +26 -0
  578. package/types/anguless-angulux-types-inputmask.d.ts +56 -0
  579. package/types/anguless-angulux-types-inputnumber.d.ts +95 -0
  580. package/types/anguless-angulux-types-inputotp.d.ts +101 -0
  581. package/types/anguless-angulux-types-inputtext.d.ts +24 -0
  582. package/types/anguless-angulux-types-knob.d.ts +40 -0
  583. package/types/anguless-angulux-types-listbox.d.ts +359 -0
  584. package/types/anguless-angulux-types-megamenu.d.ts +138 -0
  585. package/types/anguless-angulux-types-menu.d.ts +114 -0
  586. package/types/anguless-angulux-types-menubar.d.ts +124 -0
  587. package/types/anguless-angulux-types-message.d.ts +87 -0
  588. package/types/anguless-angulux-types-metergroup.d.ts +176 -0
  589. package/types/anguless-angulux-types-motion.d.ts +26 -0
  590. package/types/anguless-angulux-types-multiselect.d.ts +414 -0
  591. package/types/anguless-angulux-types-orderlist.d.ts +173 -0
  592. package/types/anguless-angulux-types-organizationchart.d.ts +138 -0
  593. package/types/anguless-angulux-types-overlay.d.ts +60 -0
  594. package/types/anguless-angulux-types-overlaybadge.d.ts +34 -0
  595. package/types/anguless-angulux-types-paginator.d.ts +167 -0
  596. package/types/anguless-angulux-types-panel.d.ts +129 -0
  597. package/types/anguless-angulux-types-panelmenu.d.ts +131 -0
  598. package/types/anguless-angulux-types-password.d.ts +120 -0
  599. package/types/anguless-angulux-types-picklist.d.ts +348 -0
  600. package/types/anguless-angulux-types-popover.d.ts +59 -0
  601. package/types/anguless-angulux-types-progressbar.d.ts +58 -0
  602. package/types/anguless-angulux-types-progressspinner.d.ts +36 -0
  603. package/types/anguless-angulux-types-radiobutton.d.ts +51 -0
  604. package/types/anguless-angulux-types-rating.d.ts +94 -0
  605. package/types/anguless-angulux-types-scroller.d.ts +231 -0
  606. package/types/anguless-angulux-types-scrollpanel.d.ts +51 -0
  607. package/types/anguless-angulux-types-scrolltop.d.ts +61 -0
  608. package/types/anguless-angulux-types-select.d.ts +319 -0
  609. package/types/anguless-angulux-types-selectbutton.d.ts +92 -0
  610. package/types/anguless-angulux-types-skeleton.d.ts +28 -0
  611. package/types/anguless-angulux-types-slider.d.ts +78 -0
  612. package/types/anguless-angulux-types-speeddial.d.ts +100 -0
  613. package/types/anguless-angulux-types-splitbutton.d.ts +70 -0
  614. package/types/anguless-angulux-types-splitter.d.ts +70 -0
  615. package/types/anguless-angulux-types-stepper.d.ts +162 -0
  616. package/types/anguless-angulux-types-table.d.ts +893 -0
  617. package/types/anguless-angulux-types-tabs.d.ts +119 -0
  618. package/types/anguless-angulux-types-tag.d.ts +47 -0
  619. package/types/anguless-angulux-types-terminal.d.ts +60 -0
  620. package/types/anguless-angulux-types-textarea.d.ts +28 -0
  621. package/types/anguless-angulux-types-tieredmenu.d.ts +95 -0
  622. package/types/anguless-angulux-types-timeline.d.ts +85 -0
  623. package/types/anguless-angulux-types-toast.d.ts +131 -0
  624. package/types/anguless-angulux-types-togglebutton.d.ts +86 -0
  625. package/types/anguless-angulux-types-toggleswitch.d.ts +73 -0
  626. package/types/anguless-angulux-types-toolbar.d.ts +55 -0
  627. package/types/anguless-angulux-types-tooltip.d.ts +32 -0
  628. package/types/anguless-angulux-types-tree.d.ts +342 -0
  629. package/types/anguless-angulux-types-treeselect.d.ts +251 -0
  630. package/types/anguless-angulux-types-treetable.d.ts +629 -0
  631. package/types/anguless-angulux-usestyle.d.ts +15 -0
  632. package/types/anguless-angulux-utils.d.ts +43 -0
  633. package/types/anguless-angulux.d.ts +2 -0
@@ -0,0 +1,4441 @@
1
+ export * from '@anguless/angulux/types/datepicker';
2
+ import * as i3 from '@angular/common';
3
+ import { CommonModule } from '@angular/common';
4
+ import * as i0 from '@angular/core';
5
+ import { Injectable, forwardRef, InjectionToken, inject, input, computed, EventEmitter, numberAttribute, booleanAttribute, ContentChildren, ContentChild, ViewChild, Output, Input, ViewEncapsulation, ChangeDetectionStrategy, Component, NgModule } from '@angular/core';
6
+ import { NG_VALUE_ACCESSOR } from '@angular/forms';
7
+ import { uuid, getOuterWidth, isDate, findSingle, getFocusableElements, hasClass, getIndex, find, isNotEmpty, addStyle, appendChild, absolutePosition, relativePosition, addClass, setAttribute, isTouchDevice } from '@anguless/angulux-utils';
8
+ import * as i1 from '@anguless/angulux/api';
9
+ import { TranslationKeys, SharedModule, AglTemplate } from '@anguless/angulux/api';
10
+ import { AutoFocus } from '@anguless/angulux/autofocus';
11
+ import { PARENT_INSTANCE } from '@anguless/angulux/basecomponent';
12
+ import { BaseInput } from '@anguless/angulux/baseinput';
13
+ import * as i2 from '@anguless/angulux/bind';
14
+ import { Bind, BindModule } from '@anguless/angulux/bind';
15
+ import { Button } from '@anguless/angulux/button';
16
+ import { blockBodyScroll, unblockBodyScroll, ConnectedOverlayScrollHandler } from '@anguless/angulux/dom';
17
+ import { ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronDownIcon, TimesIcon, CalendarIcon } from '@anguless/angulux/icons';
18
+ import { InputText } from '@anguless/angulux/inputtext';
19
+ import * as i4 from '@anguless/angulux/motion';
20
+ import { MotionModule } from '@anguless/angulux/motion';
21
+ import { Ripple } from '@anguless/angulux/ripple';
22
+ import { ZIndexUtils } from '@anguless/angulux/utils';
23
+ import { style as style$1 } from '@anguless/angulux-styles/datepicker';
24
+ import { BaseStyle } from '@anguless/angulux/base';
25
+
26
+ const style = /*css*/ `
27
+ ${style$1}
28
+
29
+ /* For AnguluxConfig */
30
+ .p-datepicker.ng-invalid.ng-dirty .p-inputtext {
31
+ border-color: dt('inputtext.invalid.border.color');
32
+ }
33
+ `;
34
+ const inlineStyles = {
35
+ root: () => ({ position: 'relative' })
36
+ };
37
+ const classes = {
38
+ root: ({ instance }) => [
39
+ 'p-datepicker p-component p-inputwrapper',
40
+ {
41
+ 'p-invalid': instance.invalid(),
42
+ 'p-datepicker-fluid': instance.hasFluid,
43
+ 'p-inputwrapper-filled': instance.$filled(),
44
+ 'p-variant-filled': instance.$variant() === 'filled',
45
+ 'p-inputwrapper-focus': instance.focus || instance.overlayVisible,
46
+ 'p-focus': instance.focus || instance.overlayVisible
47
+ }
48
+ ],
49
+ pcInputText: 'p-datepicker-input',
50
+ dropdown: 'p-datepicker-dropdown',
51
+ inputIconContainer: 'p-datepicker-input-icon-container',
52
+ inputIcon: 'p-datepicker-input-icon',
53
+ panel: ({ instance }) => [
54
+ 'p-datepicker-panel p-component',
55
+ {
56
+ 'p-datepicker-panel p-component': true,
57
+ 'p-datepicker-panel-inline': instance.inline,
58
+ 'p-disabled': instance.$disabled(),
59
+ 'p-datepicker-timeonly': instance.timeOnly
60
+ }
61
+ ],
62
+ calendarContainer: 'p-datepicker-calendar-container',
63
+ calendar: 'p-datepicker-calendar',
64
+ header: 'p-datepicker-header',
65
+ pcPrevButton: 'p-datepicker-prev-button',
66
+ title: 'p-datepicker-title',
67
+ selectMonth: 'p-datepicker-select-month',
68
+ selectYear: 'p-datepicker-select-year',
69
+ decade: 'p-datepicker-decade',
70
+ pcNextButton: 'p-datepicker-next-button',
71
+ dayView: 'p-datepicker-day-view',
72
+ weekHeader: 'p-datepicker-weekheader p-disabled',
73
+ weekNumber: 'p-datepicker-weeknumber',
74
+ weekLabelContainer: 'p-datepicker-weeklabel-container p-disabled',
75
+ weekDayCell: 'p-datepicker-weekday-cell',
76
+ weekDay: 'p-datepicker-weekday',
77
+ dayCell: ({ date }) => [
78
+ 'p-datepicker-day-cell',
79
+ {
80
+ 'p-datepicker-other-month': date.otherMonth,
81
+ 'p-datepicker-today': date.today
82
+ }
83
+ ],
84
+ day: ({ instance, date }) => {
85
+ let selectedDayClass = '';
86
+ if (instance.isRangeSelection() && instance.isSelected(date) && date.selectable) {
87
+ const startDate = instance.value[0];
88
+ const endDate = instance.value[1];
89
+ const isStart = startDate && date.year === startDate.getFullYear() && date.month === startDate.getMonth() && date.day === startDate.getDate();
90
+ const isEnd = endDate && date.year === endDate.getFullYear() && date.month === endDate.getMonth() && date.day === endDate.getDate();
91
+ selectedDayClass = isStart || isEnd ? 'p-datepicker-day-selected' : 'p-datepicker-day-selected-range';
92
+ }
93
+ return {
94
+ 'p-datepicker-day': true,
95
+ 'p-datepicker-day-selected': !instance.isRangeSelection() && instance.isSelected(date) && date.selectable,
96
+ 'p-disabled': instance.$disabled() || !date.selectable,
97
+ [selectedDayClass]: true
98
+ };
99
+ },
100
+ monthView: 'p-datepicker-month-view',
101
+ month: ({ instance, index }) => [
102
+ 'p-datepicker-month',
103
+ {
104
+ 'p-datepicker-month-selected': instance.isMonthSelected(index),
105
+ 'p-disabled': instance.isMonthDisabled(index)
106
+ }
107
+ ],
108
+ yearView: 'p-datepicker-year-view',
109
+ year: ({ instance, year }) => [
110
+ 'p-datepicker-year',
111
+ {
112
+ 'p-datepicker-year-selected': instance.isYearSelected(year),
113
+ 'p-disabled': instance.isYearDisabled(year)
114
+ }
115
+ ],
116
+ timePicker: 'p-datepicker-time-picker',
117
+ hourPicker: 'p-datepicker-hour-picker',
118
+ pcIncrementButton: 'p-datepicker-increment-button',
119
+ pcDecrementButton: 'p-datepicker-decrement-button',
120
+ separator: 'p-datepicker-separator',
121
+ minutePicker: 'p-datepicker-minute-picker',
122
+ secondPicker: 'p-datepicker-second-picker',
123
+ ampmPicker: 'p-datepicker-ampm-picker',
124
+ buttonbar: 'p-datepicker-buttonbar',
125
+ pcTodayButton: 'p-datepicker-today-button',
126
+ pcClearButton: 'p-datepicker-clear-button',
127
+ clearIcon: 'p-datepicker-clear-icon'
128
+ };
129
+ class DatePickerStyle extends BaseStyle {
130
+ name = 'datepicker';
131
+ style = style;
132
+ classes = classes;
133
+ inlineStyles = inlineStyles;
134
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: DatePickerStyle, deps: null, target: i0.ɵɵFactoryTarget.Injectable });
135
+ static ɵprov = i0.ɵɵngDeclareInjectable({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: DatePickerStyle });
136
+ }
137
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: DatePickerStyle, decorators: [{
138
+ type: Injectable
139
+ }] });
140
+ /**
141
+ *
142
+ * DatePicker is a form component to work with dates.
143
+ *
144
+ * @module datepickerstyle
145
+ *
146
+ */
147
+ var DatePickerClasses;
148
+ (function (DatePickerClasses) {
149
+ /**
150
+ * Class name of the root element
151
+ */
152
+ DatePickerClasses["root"] = "p-datepicker";
153
+ /**
154
+ * Class name of the input element
155
+ */
156
+ DatePickerClasses["pcInputText"] = "p-datepicker-input";
157
+ /**
158
+ * Class name of the dropdown element
159
+ */
160
+ DatePickerClasses["dropdown"] = "p-datepicker-dropdown";
161
+ /**
162
+ * Class name of the input icon container element
163
+ */
164
+ DatePickerClasses["inputIconContainer"] = "p-datepicker-input-icon-container";
165
+ /**
166
+ * Class name of the input icon element
167
+ */
168
+ DatePickerClasses["inputIcon"] = "p-datepicker-input-icon";
169
+ /**
170
+ * Class name of the panel element
171
+ */
172
+ DatePickerClasses["panel"] = "p-datepicker-panel";
173
+ /**
174
+ * Class name of the calendar container element
175
+ */
176
+ DatePickerClasses["calendarContainer"] = "p-datepicker-calendar-container";
177
+ /**
178
+ * Class name of the calendar element
179
+ */
180
+ DatePickerClasses["calendar"] = "p-datepicker-calendar";
181
+ /**
182
+ * Class name of the header element
183
+ */
184
+ DatePickerClasses["header"] = "p-datepicker-header";
185
+ /**
186
+ * Class name of the previous button element
187
+ */
188
+ DatePickerClasses["pcPrevButton"] = "p-datepicker-prev-button";
189
+ /**
190
+ * Class name of the title element
191
+ */
192
+ DatePickerClasses["title"] = "p-datepicker-title";
193
+ /**
194
+ * Class name of the select month element
195
+ */
196
+ DatePickerClasses["selectMonth"] = "p-datepicker-select-month";
197
+ /**
198
+ * Class name of the select year element
199
+ */
200
+ DatePickerClasses["selectYear"] = "p-datepicker-select-year";
201
+ /**
202
+ * Class name of the decade element
203
+ */
204
+ DatePickerClasses["decade"] = "p-datepicker-decade";
205
+ /**
206
+ * Class name of the next button element
207
+ */
208
+ DatePickerClasses["pcNextButton"] = "p-datepicker-next-button";
209
+ /**
210
+ * Class name of the day view element
211
+ */
212
+ DatePickerClasses["dayView"] = "p-datepicker-day-view";
213
+ /**
214
+ * Class name of the week header element
215
+ */
216
+ DatePickerClasses["weekHeader"] = "p-datepicker-weekheader";
217
+ /**
218
+ * Class name of the week number element
219
+ */
220
+ DatePickerClasses["weekNumber"] = "p-datepicker-weeknumber";
221
+ /**
222
+ * Class name of the week label container element
223
+ */
224
+ DatePickerClasses["weekLabelContainer"] = "p-datepicker-weeklabel-container";
225
+ /**
226
+ * Class name of the week day cell element
227
+ */
228
+ DatePickerClasses["weekDayCell"] = "p-datepicker-weekday-cell";
229
+ /**
230
+ * Class name of the week day element
231
+ */
232
+ DatePickerClasses["weekDay"] = "p-datepicker-weekday";
233
+ /**
234
+ * Class name of the day cell element
235
+ */
236
+ DatePickerClasses["dayCell"] = "p-datepicker-day-cell";
237
+ /**
238
+ * Class name of the day element
239
+ */
240
+ DatePickerClasses["day"] = "p-datepicker-day";
241
+ /**
242
+ * Class name of the month view element
243
+ */
244
+ DatePickerClasses["monthView"] = "p-datepicker-month-view";
245
+ /**
246
+ * Class name of the month element
247
+ */
248
+ DatePickerClasses["month"] = "p-datepicker-month";
249
+ /**
250
+ * Class name of the year view element
251
+ */
252
+ DatePickerClasses["yearView"] = "p-datepicker-year-view";
253
+ /**
254
+ * Class name of the year element
255
+ */
256
+ DatePickerClasses["year"] = "p-datepicker-year";
257
+ /**
258
+ * Class name of the time picker element
259
+ */
260
+ DatePickerClasses["timePicker"] = "p-datepicker-time-picker";
261
+ /**
262
+ * Class name of the hour picker element
263
+ */
264
+ DatePickerClasses["hourPicker"] = "p-datepicker-hour-picker";
265
+ /**
266
+ * Class name of the increment button element
267
+ */
268
+ DatePickerClasses["pcIncrementButton"] = "p-datepicker-increment-button";
269
+ /**
270
+ * Class name of the decrement button element
271
+ */
272
+ DatePickerClasses["pcDecrementButton"] = "p-datepicker-decrement-button";
273
+ /**
274
+ * Class name of the separator element
275
+ */
276
+ DatePickerClasses["separator"] = "p-datepicker-separator";
277
+ /**
278
+ * Class name of the minute picker element
279
+ */
280
+ DatePickerClasses["minutePicker"] = "p-datepicker-minute-picker";
281
+ /**
282
+ * Class name of the second picker element
283
+ */
284
+ DatePickerClasses["secondPicker"] = "p-datepicker-second-picker";
285
+ /**
286
+ * Class name of the ampm picker element
287
+ */
288
+ DatePickerClasses["ampmPicker"] = "p-datepicker-ampm-picker";
289
+ /**
290
+ * Class name of the buttonbar element
291
+ */
292
+ DatePickerClasses["buttonbar"] = "p-datepicker-buttonbar";
293
+ /**
294
+ * Class name of the today button element
295
+ */
296
+ DatePickerClasses["pcTodayButton"] = "p-datepicker-today-button";
297
+ /**
298
+ * Class name of the clear button element
299
+ */
300
+ DatePickerClasses["pcClearButton"] = "p-datepicker-clear-button";
301
+ /**
302
+ * Class name of the clear icon
303
+ */
304
+ DatePickerClasses["clearIcon"] = "p-datepicker-clear-icon";
305
+ })(DatePickerClasses || (DatePickerClasses = {}));
306
+
307
+ const DATEPICKER_VALUE_ACCESSOR = {
308
+ provide: NG_VALUE_ACCESSOR,
309
+ useExisting: forwardRef(() => DatePicker),
310
+ multi: true
311
+ };
312
+ const DATEPICKER_INSTANCE = new InjectionToken('DATEPICKER_INSTANCE');
313
+ /**
314
+ * DatePicker is a form component to work with dates.
315
+ * @group Components
316
+ */
317
+ class DatePicker extends BaseInput {
318
+ zone;
319
+ overlayService;
320
+ componentName = 'DatePicker';
321
+ bindDirectiveInstance = inject(Bind, { self: true });
322
+ $pcDatePicker = inject(DATEPICKER_INSTANCE, { optional: true, skipSelf: true }) ?? undefined;
323
+ iconDisplay = 'button';
324
+ /**
325
+ * Style class of the component.
326
+ * @deprecated since v20.0.0, use `class` instead.
327
+ * @group Props
328
+ */
329
+ styleClass;
330
+ /**
331
+ * Inline style of the input field.
332
+ * @group Props
333
+ */
334
+ inputStyle;
335
+ /**
336
+ * Identifier of the focus input to match a label defined for the component.
337
+ * @group Props
338
+ */
339
+ inputId;
340
+ /**
341
+ * Style class of the input field.
342
+ * @group Props
343
+ */
344
+ inputStyleClass;
345
+ /**
346
+ * Placeholder text for the input.
347
+ * @group Props
348
+ */
349
+ placeholder;
350
+ /**
351
+ * Establishes relationships between the component and label(s) where its value should be one or more element IDs.
352
+ * @group Props
353
+ */
354
+ ariaLabelledBy;
355
+ /**
356
+ * Defines a string that labels the input for accessibility.
357
+ * @group Props
358
+ */
359
+ ariaLabel;
360
+ /**
361
+ * Defines a string that labels the icon button for accessibility.
362
+ * @group Props
363
+ */
364
+ iconAriaLabel;
365
+ /**
366
+ * Format of the date which can also be defined at locale settings.
367
+ * @group Props
368
+ */
369
+ get dateFormat() {
370
+ return this._dateFormat;
371
+ }
372
+ set dateFormat(value) {
373
+ this._dateFormat = value;
374
+ if (this.initialized) {
375
+ this.updateInputfield();
376
+ }
377
+ }
378
+ /**
379
+ * Separator for multiple selection mode.
380
+ * @group Props
381
+ */
382
+ multipleSeparator = ',';
383
+ /**
384
+ * Separator for joining start and end dates on range selection mode.
385
+ * @group Props
386
+ */
387
+ rangeSeparator = '-';
388
+ /**
389
+ * When enabled, displays the datepicker as inline. Default is false for popup mode.
390
+ * @group Props
391
+ */
392
+ inline = false;
393
+ /**
394
+ * Whether to display dates in other months (non-selectable) at the start or end of the current month. To make these days selectable use the selectOtherMonths option.
395
+ * @group Props
396
+ */
397
+ showOtherMonths = true;
398
+ /**
399
+ * Whether days in other months shown before or after the current month are selectable. This only applies if the showOtherMonths option is set to true.
400
+ * @group Props
401
+ */
402
+ selectOtherMonths;
403
+ /**
404
+ * When enabled, displays a button with icon next to input.
405
+ * @group Props
406
+ */
407
+ showIcon;
408
+ /**
409
+ * Icon of the datepicker button.
410
+ * @group Props
411
+ */
412
+ icon;
413
+ /**
414
+ * When specified, prevents entering the date manually with keyboard.
415
+ * @group Props
416
+ */
417
+ readonlyInput;
418
+ /**
419
+ * The cutoff year for determining the century for a date.
420
+ * @group Props
421
+ */
422
+ shortYearCutoff = '+10';
423
+ /**
424
+ * Specifies 12 or 24 hour format.
425
+ * @group Props
426
+ */
427
+ get hourFormat() {
428
+ return this._hourFormat;
429
+ }
430
+ set hourFormat(value) {
431
+ this._hourFormat = value;
432
+ if (this.initialized) {
433
+ this.updateInputfield();
434
+ }
435
+ }
436
+ /**
437
+ * Whether to display timepicker only.
438
+ * @group Props
439
+ */
440
+ timeOnly;
441
+ /**
442
+ * Hours to change per step.
443
+ * @group Props
444
+ */
445
+ stepHour = 1;
446
+ /**
447
+ * Minutes to change per step.
448
+ * @group Props
449
+ */
450
+ stepMinute = 1;
451
+ /**
452
+ * Seconds to change per step.
453
+ * @group Props
454
+ */
455
+ stepSecond = 1;
456
+ /**
457
+ * Whether to show the seconds in time picker.
458
+ * @group Props
459
+ */
460
+ showSeconds = false;
461
+ /**
462
+ * When disabled, datepicker will not be visible with input focus.
463
+ * @group Props
464
+ */
465
+ showOnFocus = true;
466
+ /**
467
+ * When enabled, datepicker will show week numbers.
468
+ * @group Props
469
+ */
470
+ showWeek = false;
471
+ /**
472
+ * When enabled, datepicker will start week numbers from first day of the year.
473
+ * @group Props
474
+ */
475
+ startWeekFromFirstDayOfYear = false;
476
+ /**
477
+ * When enabled, a clear icon is displayed to clear the value.
478
+ * @group Props
479
+ */
480
+ showClear = false;
481
+ /**
482
+ * Type of the value to write back to ngModel, default is date and alternative is string.
483
+ * @group Props
484
+ */
485
+ dataType = 'date';
486
+ /**
487
+ * Defines the quantity of the selection, valid values are "single", "multiple" and "range".
488
+ * @group Props
489
+ */
490
+ selectionMode = 'single';
491
+ /**
492
+ * Maximum number of selectable dates in multiple mode.
493
+ * @group Props
494
+ */
495
+ maxDateCount;
496
+ /**
497
+ * Whether to display today and clear buttons at the footer
498
+ * @group Props
499
+ */
500
+ showButtonBar;
501
+ /**
502
+ * Style class of the today button.
503
+ * @group Props
504
+ */
505
+ todayButtonStyleClass;
506
+ /**
507
+ * Style class of the clear button.
508
+ * @group Props
509
+ */
510
+ clearButtonStyleClass;
511
+ /**
512
+ * When present, it specifies that the component should automatically get focus on load.
513
+ * @group Props
514
+ */
515
+ autofocus;
516
+ /**
517
+ * Whether to automatically manage layering.
518
+ * @group Props
519
+ */
520
+ autoZIndex = true;
521
+ /**
522
+ * Base zIndex value to use in layering.
523
+ * @group Props
524
+ */
525
+ baseZIndex = 0;
526
+ /**
527
+ * Style class of the datetimepicker container element.
528
+ * @group Props
529
+ */
530
+ panelStyleClass;
531
+ /**
532
+ * Inline style of the datetimepicker container element.
533
+ * @group Props
534
+ */
535
+ panelStyle;
536
+ /**
537
+ * Keep invalid value when input blur.
538
+ * @group Props
539
+ */
540
+ keepInvalid = false;
541
+ /**
542
+ * Whether to hide the overlay on date selection.
543
+ * @group Props
544
+ */
545
+ hideOnDateTimeSelect = true;
546
+ /**
547
+ * When enabled, datepicker overlay is displayed as optimized for touch devices.
548
+ * @group Props
549
+ */
550
+ touchUI;
551
+ /**
552
+ * Separator of time selector.
553
+ * @group Props
554
+ */
555
+ timeSeparator = ':';
556
+ /**
557
+ * When enabled, can only focus on elements inside the datepicker.
558
+ * @group Props
559
+ */
560
+ focusTrap = true;
561
+ /**
562
+ * Transition options of the show animation.
563
+ * @group Props
564
+ * @deprecated since v21.0.0, use `motionOptions` instead.
565
+ */
566
+ showTransitionOptions = '.12s cubic-bezier(0, 0, 0.2, 1)';
567
+ /**
568
+ * Transition options of the hide animation.
569
+ * @group Props
570
+ * @deprecated since v21.0.0, use `motionOptions` instead.
571
+ */
572
+ hideTransitionOptions = '.1s linear';
573
+ /**
574
+ * Index of the element in tabbing order.
575
+ * @group Props
576
+ */
577
+ tabindex;
578
+ /**
579
+ * The minimum selectable date.
580
+ * @group Props
581
+ */
582
+ get minDate() {
583
+ return this._minDate;
584
+ }
585
+ set minDate(date) {
586
+ this._minDate = date;
587
+ if (this.currentMonth != undefined && this.currentMonth != null && this.currentYear) {
588
+ this.createMonths(this.currentMonth, this.currentYear);
589
+ }
590
+ }
591
+ /**
592
+ * The maximum selectable date.
593
+ * @group Props
594
+ */
595
+ get maxDate() {
596
+ return this._maxDate;
597
+ }
598
+ set maxDate(date) {
599
+ this._maxDate = date;
600
+ if (this.currentMonth != undefined && this.currentMonth != null && this.currentYear) {
601
+ this.createMonths(this.currentMonth, this.currentYear);
602
+ }
603
+ }
604
+ /**
605
+ * Array with dates that should be disabled (not selectable).
606
+ * @group Props
607
+ */
608
+ get disabledDates() {
609
+ return this._disabledDates;
610
+ }
611
+ set disabledDates(disabledDates) {
612
+ this._disabledDates = disabledDates;
613
+ if (this.currentMonth != undefined && this.currentMonth != null && this.currentYear) {
614
+ this.createMonths(this.currentMonth, this.currentYear);
615
+ }
616
+ }
617
+ /**
618
+ * Array with weekday numbers that should be disabled (not selectable).
619
+ * @group Props
620
+ */
621
+ get disabledDays() {
622
+ return this._disabledDays;
623
+ }
624
+ set disabledDays(disabledDays) {
625
+ this._disabledDays = disabledDays;
626
+ if (this.currentMonth != undefined && this.currentMonth != null && this.currentYear) {
627
+ this.createMonths(this.currentMonth, this.currentYear);
628
+ }
629
+ }
630
+ /**
631
+ * Whether to display timepicker.
632
+ * @group Props
633
+ */
634
+ get showTime() {
635
+ return this._showTime;
636
+ }
637
+ set showTime(showTime) {
638
+ this._showTime = showTime;
639
+ if (this.currentHour === undefined) {
640
+ this.initTime(this.value || new Date());
641
+ }
642
+ this.updateInputfield();
643
+ }
644
+ /**
645
+ * An array of options for responsive design.
646
+ * @group Props
647
+ */
648
+ get responsiveOptions() {
649
+ return this._responsiveOptions;
650
+ }
651
+ set responsiveOptions(responsiveOptions) {
652
+ this._responsiveOptions = responsiveOptions;
653
+ this.destroyResponsiveStyleElement();
654
+ this.createResponsiveStyle();
655
+ }
656
+ /**
657
+ * Number of months to display.
658
+ * @group Props
659
+ */
660
+ get numberOfMonths() {
661
+ return this._numberOfMonths;
662
+ }
663
+ set numberOfMonths(numberOfMonths) {
664
+ this._numberOfMonths = numberOfMonths;
665
+ this.destroyResponsiveStyleElement();
666
+ this.createResponsiveStyle();
667
+ }
668
+ /**
669
+ * Defines the first of the week for various date calculations.
670
+ * @group Props
671
+ */
672
+ get firstDayOfWeek() {
673
+ return this._firstDayOfWeek;
674
+ }
675
+ set firstDayOfWeek(firstDayOfWeek) {
676
+ this._firstDayOfWeek = firstDayOfWeek;
677
+ this.createWeekDays();
678
+ }
679
+ /**
680
+ * Type of view to display, valid values are "date" for datepicker and "month" for month picker.
681
+ * @group Props
682
+ */
683
+ get view() {
684
+ return this._view;
685
+ }
686
+ set view(view) {
687
+ this._view = view;
688
+ this.currentView = this._view;
689
+ }
690
+ /**
691
+ * Set the date to highlight on first opening if the field is blank.
692
+ * @group Props
693
+ */
694
+ get defaultDate() {
695
+ return this._defaultDate;
696
+ }
697
+ set defaultDate(defaultDate) {
698
+ this._defaultDate = defaultDate;
699
+ if (this.initialized) {
700
+ const date = defaultDate || new Date();
701
+ this.currentMonth = date.getMonth();
702
+ this.currentYear = date.getFullYear();
703
+ this.initTime(date);
704
+ this.createMonths(this.currentMonth, this.currentYear);
705
+ }
706
+ }
707
+ /**
708
+ * Target element to attach the overlay, valid values are "body" or a local ng-template variable of another element (note: use binding with brackets for template variables, e.g. [appendTo]="mydiv" for a div element having #mydiv as variable name).
709
+ * @defaultValue 'self'
710
+ * @group Props
711
+ */
712
+ appendTo = input(undefined, /* @ts-ignore */
713
+ ...(ngDevMode ? [{ debugName: "appendTo" }] : /* istanbul ignore next */ []));
714
+ /**
715
+ * The motion options.
716
+ * @group Props
717
+ */
718
+ motionOptions = input(undefined, /* @ts-ignore */
719
+ ...(ngDevMode ? [{ debugName: "motionOptions" }] : /* istanbul ignore next */ []));
720
+ computedMotionOptions = computed(() => {
721
+ return {
722
+ ...this.ptm('motion'),
723
+ ...this.motionOptions()
724
+ };
725
+ }, /* @ts-ignore */
726
+ ...(ngDevMode ? [{ debugName: "computedMotionOptions" }] : /* istanbul ignore next */ []));
727
+ /**
728
+ * Callback to invoke on focus of input field.
729
+ * @param {Event} event - browser event.
730
+ * @group Emits
731
+ */
732
+ onFocus = new EventEmitter();
733
+ /**
734
+ * Callback to invoke on blur of input field.
735
+ * @param {Event} event - browser event.
736
+ * @group Emits
737
+ */
738
+ onBlur = new EventEmitter();
739
+ /**
740
+ * Callback to invoke when date panel closed.
741
+ * @param {HTMLDivElement} element - The element being transitioned/animated.
742
+ * @group Emits
743
+ */
744
+ onClose = new EventEmitter();
745
+ /**
746
+ * Callback to invoke on date select.
747
+ * @param {Date} date - date value.
748
+ * @group Emits
749
+ */
750
+ onSelect = new EventEmitter();
751
+ /**
752
+ * Callback to invoke when input field cleared.
753
+ * @group Emits
754
+ */
755
+ onClear = new EventEmitter();
756
+ /**
757
+ * Callback to invoke when input field is being typed.
758
+ * @param {Event} event - browser event
759
+ * @group Emits
760
+ */
761
+ onInput = new EventEmitter();
762
+ /**
763
+ * Callback to invoke when today button is clicked.
764
+ * @param {Date} date - today as a date instance.
765
+ * @group Emits
766
+ */
767
+ onTodayClick = new EventEmitter();
768
+ /**
769
+ * Callback to invoke when clear button is clicked.
770
+ * @param {Event} event - browser event.
771
+ * @group Emits
772
+ */
773
+ onClearClick = new EventEmitter();
774
+ /**
775
+ * Callback to invoke when a month is changed using the navigators.
776
+ * @param {DatePickerMonthChangeEvent} event - custom month change event.
777
+ * @group Emits
778
+ */
779
+ onMonthChange = new EventEmitter();
780
+ /**
781
+ * Callback to invoke when a year is changed using the navigators.
782
+ * @param {DatePickerYearChangeEvent} event - custom year change event.
783
+ * @group Emits
784
+ */
785
+ onYearChange = new EventEmitter();
786
+ /**
787
+ * Callback to invoke when clicked outside of the date panel.
788
+ * @group Emits
789
+ */
790
+ onClickOutside = new EventEmitter();
791
+ /**
792
+ * Callback to invoke when datepicker panel is shown.
793
+ * @param {HTMLDivElement} element - The element being transitioned/animated.
794
+ * @group Emits
795
+ */
796
+ onShow = new EventEmitter();
797
+ inputfieldViewChild;
798
+ set content(content) {
799
+ this.contentViewChild = content;
800
+ if (this.contentViewChild && this.overlay) {
801
+ if (this.isMonthNavigate) {
802
+ Promise.resolve(null).then(() => this.updateFocus());
803
+ this.isMonthNavigate = false;
804
+ }
805
+ else {
806
+ if (!this.focus && !this.inline) {
807
+ this.initFocusableCell();
808
+ }
809
+ }
810
+ }
811
+ }
812
+ _componentStyle = inject(DatePickerStyle);
813
+ contentViewChild;
814
+ value;
815
+ dates;
816
+ months;
817
+ weekDays;
818
+ currentMonth;
819
+ currentYear;
820
+ currentHour;
821
+ currentMinute;
822
+ currentSecond;
823
+ p;
824
+ pm;
825
+ mask;
826
+ maskClickListener;
827
+ overlay;
828
+ responsiveStyleElement;
829
+ overlayVisible;
830
+ overlayMinWidth;
831
+ $appendTo = computed(() => this.appendTo() || this.config.overlayAppendTo(), /* @ts-ignore */
832
+ ...(ngDevMode ? [{ debugName: "$appendTo" }] : /* istanbul ignore next */ []));
833
+ calendarElement;
834
+ timePickerTimer;
835
+ documentClickListener;
836
+ animationEndListener;
837
+ ticksTo1970;
838
+ yearOptions;
839
+ focus;
840
+ isKeydown;
841
+ _minDate;
842
+ _maxDate;
843
+ _dateFormat;
844
+ _hourFormat = '24';
845
+ _showTime;
846
+ _yearRange;
847
+ preventDocumentListener;
848
+ dayClass(date) {
849
+ return this._componentStyle.classes.day({ instance: this, date: date });
850
+ }
851
+ /**
852
+ * Custom template for date cells.
853
+ * @param {DatePickerDateTemplateContext} context - date template context.
854
+ * @group Templates
855
+ */
856
+ dateTemplate;
857
+ /**
858
+ * Custom template for header section.
859
+ * @group Templates
860
+ */
861
+ headerTemplate;
862
+ /**
863
+ * Custom template for footer section.
864
+ * @group Templates
865
+ */
866
+ footerTemplate;
867
+ /**
868
+ * Custom template for disabled date cells.
869
+ * @param {DatePickerDisabledDateTemplateContext} context - disabled date template context.
870
+ * @group Templates
871
+ */
872
+ disabledDateTemplate;
873
+ /**
874
+ * Custom template for decade view.
875
+ * @param {DatePickerDecadeTemplateContext} context - decade template context.
876
+ * @group Templates
877
+ */
878
+ decadeTemplate;
879
+ /**
880
+ * Custom template for previous month icon.
881
+ * @group Templates
882
+ */
883
+ previousIconTemplate;
884
+ /**
885
+ * Custom template for next month icon.
886
+ * @group Templates
887
+ */
888
+ nextIconTemplate;
889
+ /**
890
+ * Custom template for trigger icon.
891
+ * @group Templates
892
+ */
893
+ triggerIconTemplate;
894
+ /**
895
+ * Custom template for clear icon.
896
+ * @group Templates
897
+ */
898
+ clearIconTemplate;
899
+ /**
900
+ * Custom template for decrement icon.
901
+ * @group Templates
902
+ */
903
+ decrementIconTemplate;
904
+ /**
905
+ * Custom template for increment icon.
906
+ * @group Templates
907
+ */
908
+ incrementIconTemplate;
909
+ /**
910
+ * Custom template for input icon.
911
+ * @param {DatePickerInputIconTemplateContext} context - input icon template context.
912
+ * @group Templates
913
+ */
914
+ inputIconTemplate;
915
+ /**
916
+ * Custom template for button bar.
917
+ * @param {DatePickerButtonBarTemplateContext} context - button bar template context.
918
+ * @group Templates
919
+ */
920
+ buttonBarTemplate;
921
+ _dateTemplate;
922
+ _headerTemplate;
923
+ _footerTemplate;
924
+ _disabledDateTemplate;
925
+ _decadeTemplate;
926
+ _previousIconTemplate;
927
+ _nextIconTemplate;
928
+ _triggerIconTemplate;
929
+ _clearIconTemplate;
930
+ _decrementIconTemplate;
931
+ _incrementIconTemplate;
932
+ _inputIconTemplate;
933
+ _buttonBarTemplate;
934
+ _disabledDates;
935
+ _disabledDays;
936
+ selectElement;
937
+ todayElement;
938
+ focusElement;
939
+ scrollHandler;
940
+ documentResizeListener;
941
+ navigationState = null;
942
+ isMonthNavigate;
943
+ initialized;
944
+ translationSubscription;
945
+ _locale;
946
+ _responsiveOptions;
947
+ currentView;
948
+ attributeSelector;
949
+ panelId;
950
+ _numberOfMonths = 1;
951
+ _firstDayOfWeek;
952
+ _view = 'date';
953
+ preventFocus;
954
+ _defaultDate;
955
+ _focusKey = null;
956
+ window;
957
+ get locale() {
958
+ return this._locale;
959
+ }
960
+ get iconButtonAriaLabel() {
961
+ return this.iconAriaLabel ? this.iconAriaLabel : this.getTranslation('chooseDate');
962
+ }
963
+ get prevIconAriaLabel() {
964
+ return this.currentView === 'year' ? this.getTranslation('prevDecade') : this.currentView === 'month' ? this.getTranslation('prevYear') : this.getTranslation('prevMonth');
965
+ }
966
+ get nextIconAriaLabel() {
967
+ return this.currentView === 'year' ? this.getTranslation('nextDecade') : this.currentView === 'month' ? this.getTranslation('nextYear') : this.getTranslation('nextMonth');
968
+ }
969
+ constructor(zone, overlayService) {
970
+ super();
971
+ this.zone = zone;
972
+ this.overlayService = overlayService;
973
+ this.window = this.document.defaultView;
974
+ }
975
+ onInit() {
976
+ this.attributeSelector = uuid('pn_id_');
977
+ this.panelId = this.attributeSelector + '_panel';
978
+ const date = this.defaultDate || new Date();
979
+ this.createResponsiveStyle();
980
+ this.currentMonth = date.getMonth();
981
+ this.currentYear = date.getFullYear();
982
+ this.yearOptions = [];
983
+ this.currentView = this.view;
984
+ if (this.view === 'date') {
985
+ this.createWeekDays();
986
+ this.initTime(date);
987
+ this.createMonths(this.currentMonth, this.currentYear);
988
+ this.ticksTo1970 = ((1970 - 1) * 365 + Math.floor(1970 / 4) - Math.floor(1970 / 100) + Math.floor(1970 / 400)) * 24 * 60 * 60 * 10000000;
989
+ }
990
+ this.translationSubscription = this.config.translationObserver.subscribe(() => {
991
+ this.createWeekDays();
992
+ this.cd.markForCheck();
993
+ });
994
+ this.initialized = true;
995
+ }
996
+ onAfterViewInit() {
997
+ if (this.inline) {
998
+ this.contentViewChild && this.contentViewChild.nativeElement.setAttribute(this.attributeSelector, '');
999
+ }
1000
+ else {
1001
+ if (!this.$disabled() && this.overlay) {
1002
+ this.initFocusableCell();
1003
+ if (this.numberOfMonths === 1) {
1004
+ if (this.contentViewChild && this.contentViewChild.nativeElement) {
1005
+ this.contentViewChild.nativeElement.style.width = getOuterWidth(this.el?.nativeElement) + 'px';
1006
+ }
1007
+ }
1008
+ }
1009
+ }
1010
+ }
1011
+ onAfterViewChecked() {
1012
+ this.bindDirectiveInstance.setAttrs(this.ptms(['host', 'root']));
1013
+ }
1014
+ templates;
1015
+ onAfterContentInit() {
1016
+ this.templates.forEach((item) => {
1017
+ switch (item.getType()) {
1018
+ case 'date':
1019
+ this._dateTemplate = item.template;
1020
+ break;
1021
+ case 'decade':
1022
+ this._decadeTemplate = item.template;
1023
+ break;
1024
+ case 'disabledDate':
1025
+ this._disabledDateTemplate = item.template;
1026
+ break;
1027
+ case 'header':
1028
+ this._headerTemplate = item.template;
1029
+ break;
1030
+ case 'inputicon':
1031
+ this._inputIconTemplate = item.template;
1032
+ break;
1033
+ case 'buttonbar':
1034
+ this._buttonBarTemplate = item.template;
1035
+ break;
1036
+ case 'previousicon':
1037
+ this._previousIconTemplate = item.template;
1038
+ break;
1039
+ case 'nexticon':
1040
+ this._nextIconTemplate = item.template;
1041
+ break;
1042
+ case 'triggericon':
1043
+ this._triggerIconTemplate = item.template;
1044
+ break;
1045
+ case 'clearicon':
1046
+ this._clearIconTemplate = item.template;
1047
+ break;
1048
+ case 'decrementicon':
1049
+ this._decrementIconTemplate = item.template;
1050
+ break;
1051
+ case 'incrementicon':
1052
+ this._incrementIconTemplate = item.template;
1053
+ break;
1054
+ case 'footer':
1055
+ this._footerTemplate = item.template;
1056
+ break;
1057
+ default:
1058
+ this._dateTemplate = item.template;
1059
+ break;
1060
+ }
1061
+ });
1062
+ }
1063
+ getTranslation(option) {
1064
+ return this.config.getTranslation(option);
1065
+ }
1066
+ populateYearOptions(start, end) {
1067
+ this.yearOptions = [];
1068
+ for (let i = start; i <= end; i++) {
1069
+ this.yearOptions.push(i);
1070
+ }
1071
+ }
1072
+ createWeekDays() {
1073
+ this.weekDays = [];
1074
+ let dayIndex = this.getFirstDateOfWeek();
1075
+ let dayLabels = this.getTranslation(TranslationKeys.DAY_NAMES_MIN);
1076
+ for (let i = 0; i < 7; i++) {
1077
+ this.weekDays.push(dayLabels[dayIndex]);
1078
+ dayIndex = dayIndex == 6 ? 0 : ++dayIndex;
1079
+ }
1080
+ }
1081
+ monthPickerValues() {
1082
+ let monthPickerValues = [];
1083
+ for (let i = 0; i <= 11; i++) {
1084
+ monthPickerValues.push(this.config.getTranslation('monthNamesShort')[i]);
1085
+ }
1086
+ return monthPickerValues;
1087
+ }
1088
+ yearPickerValues() {
1089
+ let yearPickerValues = [];
1090
+ let base = this.currentYear - (this.currentYear % 10);
1091
+ for (let i = 0; i < 10; i++) {
1092
+ yearPickerValues.push(base + i);
1093
+ }
1094
+ return yearPickerValues;
1095
+ }
1096
+ createMonths(month, year) {
1097
+ this.months = this.months = [];
1098
+ for (let i = 0; i < this.numberOfMonths; i++) {
1099
+ let m = month + i;
1100
+ let y = year;
1101
+ if (m > 11) {
1102
+ m = m % 12;
1103
+ y = year + Math.floor((month + i) / 12);
1104
+ }
1105
+ this.months.push(this.createMonth(m, y));
1106
+ }
1107
+ }
1108
+ getWeekNumber(date) {
1109
+ let checkDate = new Date(date.getTime());
1110
+ if (this.startWeekFromFirstDayOfYear) {
1111
+ let firstDayOfWeek = +this.getFirstDateOfWeek();
1112
+ checkDate.setDate(checkDate.getDate() + 6 + firstDayOfWeek - checkDate.getDay());
1113
+ }
1114
+ else {
1115
+ checkDate.setDate(checkDate.getDate() + 4 - (checkDate.getDay() || 7));
1116
+ }
1117
+ let time = checkDate.getTime();
1118
+ checkDate.setMonth(0);
1119
+ checkDate.setDate(1);
1120
+ return Math.floor(Math.round((time - checkDate.getTime()) / 86400000) / 7) + 1;
1121
+ }
1122
+ createMonth(month, year) {
1123
+ let dates = [];
1124
+ let firstDay = this.getFirstDayOfMonthIndex(month, year);
1125
+ let daysLength = this.getDaysCountInMonth(month, year);
1126
+ let prevMonthDaysLength = this.getDaysCountInPrevMonth(month, year);
1127
+ let dayNo = 1;
1128
+ let today = new Date();
1129
+ let weekNumbers = [];
1130
+ let monthRows = Math.ceil((daysLength + firstDay) / 7);
1131
+ for (let i = 0; i < monthRows; i++) {
1132
+ let week = [];
1133
+ if (i == 0) {
1134
+ for (let j = prevMonthDaysLength - firstDay + 1; j <= prevMonthDaysLength; j++) {
1135
+ let prev = this.getPreviousMonthAndYear(month, year);
1136
+ week.push({
1137
+ day: j,
1138
+ month: prev.month,
1139
+ year: prev.year,
1140
+ otherMonth: true,
1141
+ today: this.isToday(today, j, prev.month, prev.year),
1142
+ selectable: this.isSelectable(j, prev.month, prev.year, true)
1143
+ });
1144
+ }
1145
+ let remainingDaysLength = 7 - week.length;
1146
+ for (let j = 0; j < remainingDaysLength; j++) {
1147
+ week.push({
1148
+ day: dayNo,
1149
+ month: month,
1150
+ year: year,
1151
+ today: this.isToday(today, dayNo, month, year),
1152
+ selectable: this.isSelectable(dayNo, month, year, false)
1153
+ });
1154
+ dayNo++;
1155
+ }
1156
+ }
1157
+ else {
1158
+ for (let j = 0; j < 7; j++) {
1159
+ if (dayNo > daysLength) {
1160
+ let next = this.getNextMonthAndYear(month, year);
1161
+ week.push({
1162
+ day: dayNo - daysLength,
1163
+ month: next.month,
1164
+ year: next.year,
1165
+ otherMonth: true,
1166
+ today: this.isToday(today, dayNo - daysLength, next.month, next.year),
1167
+ selectable: this.isSelectable(dayNo - daysLength, next.month, next.year, true)
1168
+ });
1169
+ }
1170
+ else {
1171
+ week.push({
1172
+ day: dayNo,
1173
+ month: month,
1174
+ year: year,
1175
+ today: this.isToday(today, dayNo, month, year),
1176
+ selectable: this.isSelectable(dayNo, month, year, false)
1177
+ });
1178
+ }
1179
+ dayNo++;
1180
+ }
1181
+ }
1182
+ if (this.showWeek) {
1183
+ weekNumbers.push(this.getWeekNumber(new Date(week[0].year, week[0].month, week[0].day)));
1184
+ }
1185
+ dates.push(week);
1186
+ }
1187
+ return {
1188
+ month: month,
1189
+ year: year,
1190
+ dates: dates,
1191
+ weekNumbers: weekNumbers
1192
+ };
1193
+ }
1194
+ initTime(date) {
1195
+ this.pm = date.getHours() > 11;
1196
+ if (this.showTime) {
1197
+ this.currentMinute = date.getMinutes();
1198
+ this.currentSecond = this.showSeconds ? date.getSeconds() : 0;
1199
+ this.setCurrentHourPM(date.getHours());
1200
+ }
1201
+ else if (this.timeOnly) {
1202
+ this.currentMinute = 0;
1203
+ this.currentHour = 0;
1204
+ this.currentSecond = 0;
1205
+ }
1206
+ }
1207
+ navBackward(event) {
1208
+ if (this.$disabled()) {
1209
+ event.preventDefault();
1210
+ return;
1211
+ }
1212
+ this.isMonthNavigate = true;
1213
+ if (this.currentView === 'month') {
1214
+ this.decrementYear();
1215
+ setTimeout(() => {
1216
+ this.updateFocus();
1217
+ }, 1);
1218
+ }
1219
+ else if (this.currentView === 'year') {
1220
+ this.decrementDecade();
1221
+ setTimeout(() => {
1222
+ this.updateFocus();
1223
+ }, 1);
1224
+ }
1225
+ else {
1226
+ if (this.currentMonth === 0) {
1227
+ this.currentMonth = 11;
1228
+ this.decrementYear();
1229
+ }
1230
+ else {
1231
+ this.currentMonth--;
1232
+ }
1233
+ this.onMonthChange.emit({ month: this.currentMonth + 1, year: this.currentYear });
1234
+ this.createMonths(this.currentMonth, this.currentYear);
1235
+ }
1236
+ }
1237
+ navForward(event) {
1238
+ if (this.$disabled()) {
1239
+ event.preventDefault();
1240
+ return;
1241
+ }
1242
+ this.isMonthNavigate = true;
1243
+ if (this.currentView === 'month') {
1244
+ this.incrementYear();
1245
+ setTimeout(() => {
1246
+ this.updateFocus();
1247
+ }, 1);
1248
+ }
1249
+ else if (this.currentView === 'year') {
1250
+ this.incrementDecade();
1251
+ setTimeout(() => {
1252
+ this.updateFocus();
1253
+ }, 1);
1254
+ }
1255
+ else {
1256
+ if (this.currentMonth === 11) {
1257
+ this.currentMonth = 0;
1258
+ this.incrementYear();
1259
+ }
1260
+ else {
1261
+ this.currentMonth++;
1262
+ }
1263
+ this.onMonthChange.emit({ month: this.currentMonth + 1, year: this.currentYear });
1264
+ this.createMonths(this.currentMonth, this.currentYear);
1265
+ }
1266
+ }
1267
+ decrementYear() {
1268
+ this.currentYear--;
1269
+ let _yearOptions = this.yearOptions;
1270
+ if (this.currentYear < _yearOptions[0]) {
1271
+ let difference = _yearOptions[_yearOptions.length - 1] - _yearOptions[0];
1272
+ this.populateYearOptions(_yearOptions[0] - difference, _yearOptions[_yearOptions.length - 1] - difference);
1273
+ }
1274
+ }
1275
+ decrementDecade() {
1276
+ this.currentYear = this.currentYear - 10;
1277
+ }
1278
+ incrementDecade() {
1279
+ this.currentYear = this.currentYear + 10;
1280
+ }
1281
+ incrementYear() {
1282
+ this.currentYear++;
1283
+ let _yearOptions = this.yearOptions;
1284
+ if (this.currentYear > _yearOptions[_yearOptions.length - 1]) {
1285
+ let difference = _yearOptions[_yearOptions.length - 1] - _yearOptions[0];
1286
+ this.populateYearOptions(_yearOptions[0] + difference, _yearOptions[_yearOptions.length - 1] + difference);
1287
+ }
1288
+ }
1289
+ switchToMonthView(event) {
1290
+ this.setCurrentView('month');
1291
+ event.preventDefault();
1292
+ }
1293
+ switchToYearView(event) {
1294
+ this.setCurrentView('year');
1295
+ event.preventDefault();
1296
+ }
1297
+ onDateSelect(event, dateMeta) {
1298
+ if (this.$disabled() || !dateMeta.selectable) {
1299
+ event.preventDefault();
1300
+ return;
1301
+ }
1302
+ if (this.isMultipleSelection() && this.isSelected(dateMeta)) {
1303
+ this.value = this.value.filter((date, i) => {
1304
+ return !this.isDateEquals(date, dateMeta);
1305
+ });
1306
+ if (this.value.length === 0) {
1307
+ this.value = null;
1308
+ }
1309
+ this.updateModel(this.value);
1310
+ }
1311
+ else {
1312
+ if (this.shouldSelectDate(dateMeta)) {
1313
+ this.selectDate(dateMeta);
1314
+ }
1315
+ }
1316
+ if (this.hideOnDateTimeSelect && (this.isSingleSelection() || (this.isRangeSelection() && this.value[1]))) {
1317
+ setTimeout(() => {
1318
+ event.preventDefault();
1319
+ this.hideOverlay();
1320
+ if (this.mask) {
1321
+ this.disableModality();
1322
+ }
1323
+ this.cd.markForCheck();
1324
+ }, 150);
1325
+ }
1326
+ this.updateInputfield();
1327
+ event.preventDefault();
1328
+ }
1329
+ shouldSelectDate(dateMeta) {
1330
+ if (this.isMultipleSelection())
1331
+ return this.maxDateCount != null ? this.maxDateCount > (this.value ? this.value.length : 0) : true;
1332
+ else
1333
+ return true;
1334
+ }
1335
+ onMonthSelect(event, index) {
1336
+ if (this.view === 'month') {
1337
+ this.onDateSelect(event, { year: this.currentYear, month: index, day: 1, selectable: true });
1338
+ }
1339
+ else {
1340
+ this.currentMonth = index;
1341
+ this.createMonths(this.currentMonth, this.currentYear);
1342
+ this.setCurrentView('date');
1343
+ this.onMonthChange.emit({ month: this.currentMonth + 1, year: this.currentYear });
1344
+ }
1345
+ }
1346
+ onYearSelect(event, year) {
1347
+ if (this.view === 'year') {
1348
+ this.onDateSelect(event, { year: year, month: 0, day: 1, selectable: true });
1349
+ }
1350
+ else {
1351
+ this.currentYear = year;
1352
+ this.setCurrentView('month');
1353
+ this.onYearChange.emit({ month: this.currentMonth + 1, year: this.currentYear });
1354
+ }
1355
+ }
1356
+ updateInputfield() {
1357
+ let formattedValue = '';
1358
+ if (this.value) {
1359
+ if (this.isSingleSelection()) {
1360
+ formattedValue = this.formatDateTime(this.value);
1361
+ }
1362
+ else if (this.isMultipleSelection()) {
1363
+ for (let i = 0; i < this.value.length; i++) {
1364
+ let dateAsString = this.formatDateTime(this.value[i]);
1365
+ formattedValue += dateAsString;
1366
+ if (i !== this.value.length - 1) {
1367
+ formattedValue += this.multipleSeparator + ' ';
1368
+ }
1369
+ }
1370
+ }
1371
+ else if (this.isRangeSelection()) {
1372
+ if (this.value && this.value.length) {
1373
+ let startDate = this.value[0];
1374
+ let endDate = this.value[1];
1375
+ formattedValue = this.formatDateTime(startDate);
1376
+ if (endDate) {
1377
+ formattedValue += ' ' + this.rangeSeparator + ' ' + this.formatDateTime(endDate);
1378
+ }
1379
+ }
1380
+ }
1381
+ }
1382
+ this.writeModelValue(formattedValue);
1383
+ this.inputFieldValue = formattedValue;
1384
+ if (this.inputfieldViewChild && this.inputfieldViewChild.nativeElement) {
1385
+ this.inputfieldViewChild.nativeElement.value = this.inputFieldValue;
1386
+ }
1387
+ }
1388
+ inputFieldValue = null;
1389
+ formatDateTime(date) {
1390
+ let formattedValue = this.keepInvalid ? date : null;
1391
+ const isDateValid = this.isValidDateForTimeConstraints(date);
1392
+ if (this.isValidDate(date)) {
1393
+ if (this.timeOnly) {
1394
+ formattedValue = this.formatTime(date);
1395
+ }
1396
+ else {
1397
+ formattedValue = this.formatDate(date, this.getDateFormat());
1398
+ if (this.showTime) {
1399
+ formattedValue += ' ' + this.formatTime(date);
1400
+ }
1401
+ }
1402
+ }
1403
+ else if (this.dataType === 'string') {
1404
+ formattedValue = date;
1405
+ }
1406
+ formattedValue = isDateValid ? formattedValue : '';
1407
+ return formattedValue;
1408
+ }
1409
+ formatDateMetaToDate(dateMeta) {
1410
+ return new Date(dateMeta.year, dateMeta.month, dateMeta.day);
1411
+ }
1412
+ formatDateKey(date) {
1413
+ return `${date.getFullYear()}-${date.getMonth()}-${date.getDate()}`;
1414
+ }
1415
+ setCurrentHourPM(hours) {
1416
+ if (this.hourFormat == '12') {
1417
+ this.pm = hours > 11;
1418
+ if (hours >= 12) {
1419
+ this.currentHour = hours == 12 ? 12 : hours - 12;
1420
+ }
1421
+ else {
1422
+ this.currentHour = hours == 0 ? 12 : hours;
1423
+ }
1424
+ }
1425
+ else {
1426
+ this.currentHour = hours;
1427
+ }
1428
+ }
1429
+ setCurrentView(currentView) {
1430
+ this.currentView = currentView;
1431
+ this.cd.detectChanges();
1432
+ this.alignOverlay();
1433
+ }
1434
+ selectDate(dateMeta) {
1435
+ let date = this.formatDateMetaToDate(dateMeta);
1436
+ if (this.showTime) {
1437
+ if (this.hourFormat == '12') {
1438
+ if (this.currentHour === 12)
1439
+ date.setHours(this.pm ? 12 : 0);
1440
+ else
1441
+ date.setHours(this.pm ? this.currentHour + 12 : this.currentHour);
1442
+ }
1443
+ else {
1444
+ date.setHours(this.currentHour);
1445
+ }
1446
+ date.setMinutes(this.currentMinute);
1447
+ date.setSeconds(this.currentSecond);
1448
+ }
1449
+ if (this.minDate && this.minDate > date) {
1450
+ date = this.minDate;
1451
+ this.setCurrentHourPM(date.getHours());
1452
+ this.currentMinute = date.getMinutes();
1453
+ this.currentSecond = date.getSeconds();
1454
+ }
1455
+ if (this.maxDate && this.maxDate < date) {
1456
+ date = this.maxDate;
1457
+ this.setCurrentHourPM(date.getHours());
1458
+ this.currentMinute = date.getMinutes();
1459
+ this.currentSecond = date.getSeconds();
1460
+ }
1461
+ if (this.isSingleSelection()) {
1462
+ this.updateModel(date);
1463
+ }
1464
+ else if (this.isMultipleSelection()) {
1465
+ this.updateModel(this.value ? [...this.value, date] : [date]);
1466
+ }
1467
+ else if (this.isRangeSelection()) {
1468
+ if (this.value && this.value.length) {
1469
+ let startDate = this.value[0];
1470
+ let endDate = this.value[1];
1471
+ if (!endDate && date.getTime() >= startDate.getTime()) {
1472
+ endDate = date;
1473
+ }
1474
+ else {
1475
+ startDate = date;
1476
+ endDate = null;
1477
+ }
1478
+ this.updateModel([startDate, endDate]);
1479
+ }
1480
+ else {
1481
+ this.updateModel([date, null]);
1482
+ }
1483
+ }
1484
+ this.onSelect.emit(date);
1485
+ }
1486
+ updateModel(value) {
1487
+ this.value = value;
1488
+ if (this.dataType == 'date') {
1489
+ this.writeModelValue(this.value);
1490
+ this.onModelChange(this.value);
1491
+ }
1492
+ else if (this.dataType == 'string') {
1493
+ if (this.isSingleSelection()) {
1494
+ this.onModelChange(this.formatDateTime(this.value));
1495
+ }
1496
+ else {
1497
+ let stringArrValue = null;
1498
+ if (Array.isArray(this.value)) {
1499
+ stringArrValue = this.value.map((date) => this.formatDateTime(date));
1500
+ }
1501
+ this.writeModelValue(stringArrValue);
1502
+ this.onModelChange(stringArrValue);
1503
+ }
1504
+ }
1505
+ }
1506
+ getFirstDayOfMonthIndex(month, year) {
1507
+ let day = new Date();
1508
+ day.setDate(1);
1509
+ day.setMonth(month);
1510
+ day.setFullYear(year);
1511
+ let dayIndex = day.getDay() + this.getSundayIndex();
1512
+ return dayIndex >= 7 ? dayIndex - 7 : dayIndex;
1513
+ }
1514
+ getDaysCountInMonth(month, year) {
1515
+ return 32 - this.daylightSavingAdjust(new Date(year, month, 32)).getDate();
1516
+ }
1517
+ getDaysCountInPrevMonth(month, year) {
1518
+ let prev = this.getPreviousMonthAndYear(month, year);
1519
+ return this.getDaysCountInMonth(prev.month, prev.year);
1520
+ }
1521
+ getPreviousMonthAndYear(month, year) {
1522
+ let m, y;
1523
+ if (month === 0) {
1524
+ m = 11;
1525
+ y = year - 1;
1526
+ }
1527
+ else {
1528
+ m = month - 1;
1529
+ y = year;
1530
+ }
1531
+ return { month: m, year: y };
1532
+ }
1533
+ getNextMonthAndYear(month, year) {
1534
+ let m, y;
1535
+ if (month === 11) {
1536
+ m = 0;
1537
+ y = year + 1;
1538
+ }
1539
+ else {
1540
+ m = month + 1;
1541
+ y = year;
1542
+ }
1543
+ return { month: m, year: y };
1544
+ }
1545
+ getSundayIndex() {
1546
+ let firstDayOfWeek = this.getFirstDateOfWeek();
1547
+ return firstDayOfWeek > 0 ? 7 - firstDayOfWeek : 0;
1548
+ }
1549
+ isSelected(dateMeta) {
1550
+ if (this.value) {
1551
+ if (this.isSingleSelection()) {
1552
+ return this.isDateEquals(this.value, dateMeta);
1553
+ }
1554
+ else if (this.isMultipleSelection()) {
1555
+ let selected = false;
1556
+ for (let date of this.value) {
1557
+ selected = this.isDateEquals(date, dateMeta);
1558
+ if (selected) {
1559
+ break;
1560
+ }
1561
+ }
1562
+ return selected;
1563
+ }
1564
+ else if (this.isRangeSelection()) {
1565
+ if (this.value[1])
1566
+ return this.isDateEquals(this.value[0], dateMeta) || this.isDateEquals(this.value[1], dateMeta) || this.isDateBetween(this.value[0], this.value[1], dateMeta);
1567
+ else
1568
+ return this.isDateEquals(this.value[0], dateMeta);
1569
+ }
1570
+ }
1571
+ else {
1572
+ return false;
1573
+ }
1574
+ }
1575
+ isComparable() {
1576
+ return this.value != null && typeof this.value !== 'string';
1577
+ }
1578
+ isMonthSelected(month) {
1579
+ if (!this.isComparable())
1580
+ return false;
1581
+ if (this.isMultipleSelection()) {
1582
+ return this.value.some((currentValue) => currentValue.getMonth() === month && currentValue.getFullYear() === this.currentYear);
1583
+ }
1584
+ else if (this.isRangeSelection()) {
1585
+ if (!this.value[1]) {
1586
+ return this.value[0]?.getFullYear() === this.currentYear && this.value[0]?.getMonth() === month;
1587
+ }
1588
+ else {
1589
+ const currentDate = new Date(this.currentYear, month, 1);
1590
+ const startDate = new Date(this.value[0].getFullYear(), this.value[0].getMonth(), 1);
1591
+ const endDate = new Date(this.value[1].getFullYear(), this.value[1].getMonth(), 1);
1592
+ return currentDate >= startDate && currentDate <= endDate;
1593
+ }
1594
+ }
1595
+ else {
1596
+ return this.value.getMonth() === month && this.value.getFullYear() === this.currentYear;
1597
+ }
1598
+ }
1599
+ isMonthDisabled(month, year) {
1600
+ const yearToCheck = year ?? this.currentYear;
1601
+ for (let day = 1; day < this.getDaysCountInMonth(month, yearToCheck) + 1; day++) {
1602
+ if (this.isSelectable(day, month, yearToCheck, false)) {
1603
+ return false;
1604
+ }
1605
+ }
1606
+ return true;
1607
+ }
1608
+ isYearDisabled(year) {
1609
+ return Array(12)
1610
+ .fill(0)
1611
+ .every((v, month) => this.isMonthDisabled(month, year));
1612
+ }
1613
+ isYearSelected(year) {
1614
+ if (this.isComparable()) {
1615
+ let value = this.isRangeSelection() ? this.value[0] : this.value;
1616
+ return !this.isMultipleSelection() ? value.getFullYear() === year : false;
1617
+ }
1618
+ return false;
1619
+ }
1620
+ isDateEquals(value, dateMeta) {
1621
+ if (value && isDate(value))
1622
+ return value.getDate() === dateMeta.day && value.getMonth() === dateMeta.month && value.getFullYear() === dateMeta.year;
1623
+ else
1624
+ return false;
1625
+ }
1626
+ isDateBetween(start, end, dateMeta) {
1627
+ let between = false;
1628
+ if (isDate(start) && isDate(end)) {
1629
+ let date = this.formatDateMetaToDate(dateMeta);
1630
+ return start.getTime() <= date.getTime() && end.getTime() >= date.getTime();
1631
+ }
1632
+ return between;
1633
+ }
1634
+ isSingleSelection() {
1635
+ return this.selectionMode === 'single';
1636
+ }
1637
+ isRangeSelection() {
1638
+ return this.selectionMode === 'range';
1639
+ }
1640
+ isMultipleSelection() {
1641
+ return this.selectionMode === 'multiple';
1642
+ }
1643
+ isToday(today, day, month, year) {
1644
+ return today.getDate() === day && today.getMonth() === month && today.getFullYear() === year;
1645
+ }
1646
+ isSelectable(day, month, year, otherMonth) {
1647
+ let validMin = true;
1648
+ let validMax = true;
1649
+ let validDate = true;
1650
+ let validDay = true;
1651
+ if (otherMonth && !this.selectOtherMonths) {
1652
+ return false;
1653
+ }
1654
+ if (this.minDate) {
1655
+ if (this.minDate.getFullYear() > year) {
1656
+ validMin = false;
1657
+ }
1658
+ else if (this.minDate.getFullYear() === year && this.currentView != 'year') {
1659
+ if (this.minDate.getMonth() > month) {
1660
+ validMin = false;
1661
+ }
1662
+ else if (this.minDate.getMonth() === month) {
1663
+ if (this.minDate.getDate() > day) {
1664
+ validMin = false;
1665
+ }
1666
+ }
1667
+ }
1668
+ }
1669
+ if (this.maxDate) {
1670
+ if (this.maxDate.getFullYear() < year) {
1671
+ validMax = false;
1672
+ }
1673
+ else if (this.maxDate.getFullYear() === year) {
1674
+ if (this.maxDate.getMonth() < month) {
1675
+ validMax = false;
1676
+ }
1677
+ else if (this.maxDate.getMonth() === month) {
1678
+ if (this.maxDate.getDate() < day) {
1679
+ validMax = false;
1680
+ }
1681
+ }
1682
+ }
1683
+ }
1684
+ if (this.disabledDates) {
1685
+ validDate = !this.isDateDisabled(day, month, year);
1686
+ }
1687
+ if (this.disabledDays) {
1688
+ validDay = !this.isDayDisabled(day, month, year);
1689
+ }
1690
+ return validMin && validMax && validDate && validDay;
1691
+ }
1692
+ isDateDisabled(day, month, year) {
1693
+ if (this.disabledDates) {
1694
+ for (let disabledDate of this.disabledDates) {
1695
+ if (disabledDate.getFullYear() === year && disabledDate.getMonth() === month && disabledDate.getDate() === day) {
1696
+ return true;
1697
+ }
1698
+ }
1699
+ }
1700
+ return false;
1701
+ }
1702
+ isDayDisabled(day, month, year) {
1703
+ if (this.disabledDays) {
1704
+ let weekday = new Date(year, month, day);
1705
+ let weekdayNumber = weekday.getDay();
1706
+ return this.disabledDays.indexOf(weekdayNumber) !== -1;
1707
+ }
1708
+ return false;
1709
+ }
1710
+ onInputFocus(event) {
1711
+ this.focus = true;
1712
+ if (this.showOnFocus) {
1713
+ this.showOverlay();
1714
+ }
1715
+ this.onFocus.emit(event);
1716
+ }
1717
+ onInputClick() {
1718
+ if (this.showOnFocus && !this.overlayVisible) {
1719
+ this.showOverlay();
1720
+ }
1721
+ }
1722
+ onInputBlur(event) {
1723
+ this.focus = false;
1724
+ this.onBlur.emit(event);
1725
+ if (!this.keepInvalid) {
1726
+ this.updateInputfield();
1727
+ }
1728
+ this.onModelTouched();
1729
+ }
1730
+ onButtonClick(event, inputfield = this.inputfieldViewChild?.nativeElement) {
1731
+ if (this.$disabled()) {
1732
+ return;
1733
+ }
1734
+ if (!this.overlayVisible) {
1735
+ inputfield.focus();
1736
+ this.showOverlay();
1737
+ }
1738
+ else {
1739
+ this.hideOverlay();
1740
+ }
1741
+ }
1742
+ clear() {
1743
+ this.value = null;
1744
+ this.inputFieldValue = null;
1745
+ this.writeModelValue(this.value);
1746
+ this.onModelChange(this.value);
1747
+ this.updateInputfield();
1748
+ this.onClear.emit();
1749
+ }
1750
+ onOverlayClick(event) {
1751
+ this.overlayService.add({
1752
+ originalEvent: event,
1753
+ target: this.el.nativeElement
1754
+ });
1755
+ }
1756
+ getMonthName(index) {
1757
+ return this.config.getTranslation('monthNames')[index];
1758
+ }
1759
+ getYear(month) {
1760
+ return this.currentView === 'month' ? this.currentYear : month.year;
1761
+ }
1762
+ switchViewButtonDisabled() {
1763
+ return this.numberOfMonths > 1 || this.$disabled();
1764
+ }
1765
+ onPrevButtonClick(event) {
1766
+ this.navigationState = { backward: true, button: true };
1767
+ this.navBackward(event);
1768
+ }
1769
+ onNextButtonClick(event) {
1770
+ this.navigationState = { backward: false, button: true };
1771
+ this.navForward(event);
1772
+ }
1773
+ onContainerButtonKeydown(event) {
1774
+ switch (event.which) {
1775
+ //tab
1776
+ case 9:
1777
+ if (!this.inline) {
1778
+ this.trapFocus(event);
1779
+ }
1780
+ if (this.inline) {
1781
+ const headerElements = findSingle(this.el?.nativeElement, '.p-datepicker-header');
1782
+ const element = event.target;
1783
+ if (this.timeOnly) {
1784
+ return;
1785
+ }
1786
+ else {
1787
+ if (element == headerElements?.children[headerElements?.children?.length - 1]) {
1788
+ this.initFocusableCell();
1789
+ }
1790
+ }
1791
+ }
1792
+ break;
1793
+ //escape
1794
+ case 27:
1795
+ this.inputfieldViewChild?.nativeElement.focus();
1796
+ this.overlayVisible = false;
1797
+ event.preventDefault();
1798
+ break;
1799
+ default:
1800
+ //Noop
1801
+ break;
1802
+ }
1803
+ }
1804
+ onInputKeydown(event) {
1805
+ this.isKeydown = true;
1806
+ if (event.keyCode === 40 && this.contentViewChild) {
1807
+ this.trapFocus(event);
1808
+ }
1809
+ else if (event.keyCode === 27) {
1810
+ if (this.overlayVisible) {
1811
+ this.inputfieldViewChild?.nativeElement.focus();
1812
+ this.overlayVisible = false;
1813
+ event.preventDefault();
1814
+ }
1815
+ }
1816
+ else if (event.keyCode === 13) {
1817
+ if (this.overlayVisible) {
1818
+ this.overlayVisible = false;
1819
+ event.preventDefault();
1820
+ }
1821
+ }
1822
+ else if (event.keyCode === 9 && this.contentViewChild) {
1823
+ getFocusableElements(this.contentViewChild.nativeElement).forEach((el) => (el.tabIndex = '-1'));
1824
+ if (this.overlayVisible) {
1825
+ this.overlayVisible = false;
1826
+ }
1827
+ }
1828
+ }
1829
+ onDateCellKeydown(event, dateMeta, groupIndex) {
1830
+ const cellContent = event.currentTarget;
1831
+ const cell = cellContent.parentElement;
1832
+ const currentDate = this.formatDateMetaToDate(dateMeta);
1833
+ switch (event.which) {
1834
+ //down arrow
1835
+ case 40: {
1836
+ cellContent.tabIndex = '-1';
1837
+ let cellIndex = getIndex(cell);
1838
+ let nextRow = cell.parentElement.nextElementSibling;
1839
+ if (nextRow) {
1840
+ let focusCell = nextRow.children[cellIndex].children[0];
1841
+ if (hasClass(focusCell, 'p-disabled')) {
1842
+ this.navigationState = { backward: false };
1843
+ this.navForward(event);
1844
+ }
1845
+ else {
1846
+ nextRow.children[cellIndex].children[0].tabIndex = '0';
1847
+ nextRow.children[cellIndex].children[0].focus();
1848
+ }
1849
+ }
1850
+ else {
1851
+ this.navigationState = { backward: false };
1852
+ this.navForward(event);
1853
+ }
1854
+ event.preventDefault();
1855
+ break;
1856
+ }
1857
+ //up arrow
1858
+ case 38: {
1859
+ cellContent.tabIndex = '-1';
1860
+ let cellIndex = getIndex(cell);
1861
+ let prevRow = cell.parentElement.previousElementSibling;
1862
+ if (prevRow) {
1863
+ let focusCell = prevRow.children[cellIndex].children[0];
1864
+ if (hasClass(focusCell, 'p-disabled')) {
1865
+ this.navigationState = { backward: true };
1866
+ this.navBackward(event);
1867
+ }
1868
+ else {
1869
+ focusCell.tabIndex = '0';
1870
+ focusCell.focus();
1871
+ }
1872
+ }
1873
+ else {
1874
+ this.navigationState = { backward: true };
1875
+ this.navBackward(event);
1876
+ }
1877
+ event.preventDefault();
1878
+ break;
1879
+ }
1880
+ //left arrow
1881
+ case 37: {
1882
+ cellContent.tabIndex = '-1';
1883
+ let prevCell = cell.previousElementSibling;
1884
+ if (prevCell) {
1885
+ let focusCell = prevCell.children[0];
1886
+ if (hasClass(focusCell, 'p-disabled') || hasClass(focusCell.parentElement, 'p-datepicker-weeknumber')) {
1887
+ this.navigateToMonth(true, groupIndex);
1888
+ }
1889
+ else {
1890
+ focusCell.tabIndex = '0';
1891
+ focusCell.focus();
1892
+ }
1893
+ }
1894
+ else {
1895
+ this.navigateToMonth(true, groupIndex);
1896
+ }
1897
+ event.preventDefault();
1898
+ break;
1899
+ }
1900
+ //right arrow
1901
+ case 39: {
1902
+ cellContent.tabIndex = '-1';
1903
+ let nextCell = cell.nextElementSibling;
1904
+ if (nextCell) {
1905
+ let focusCell = nextCell.children[0];
1906
+ if (hasClass(focusCell, 'p-disabled')) {
1907
+ this.navigateToMonth(false, groupIndex);
1908
+ }
1909
+ else {
1910
+ focusCell.tabIndex = '0';
1911
+ focusCell.focus();
1912
+ }
1913
+ }
1914
+ else {
1915
+ this.navigateToMonth(false, groupIndex);
1916
+ }
1917
+ event.preventDefault();
1918
+ break;
1919
+ }
1920
+ //enter
1921
+ //space
1922
+ case 13:
1923
+ case 32: {
1924
+ this.onDateSelect(event, dateMeta);
1925
+ event.preventDefault();
1926
+ break;
1927
+ }
1928
+ //escape
1929
+ case 27: {
1930
+ this.inputfieldViewChild?.nativeElement.focus();
1931
+ this.overlayVisible = false;
1932
+ event.preventDefault();
1933
+ break;
1934
+ }
1935
+ //tab
1936
+ case 9: {
1937
+ if (!this.inline) {
1938
+ this.trapFocus(event);
1939
+ }
1940
+ break;
1941
+ }
1942
+ // page up
1943
+ case 33: {
1944
+ cellContent.tabIndex = '-1';
1945
+ const dateToFocus = new Date(currentDate.getFullYear(), currentDate.getMonth() - 1, currentDate.getDate());
1946
+ const focusKey = this.formatDateKey(dateToFocus);
1947
+ this.navigateToMonth(true, groupIndex, `span[data-date='${focusKey}']:not(.p-disabled):not(.p-ink)`);
1948
+ event.preventDefault();
1949
+ break;
1950
+ }
1951
+ // page down
1952
+ case 34: {
1953
+ cellContent.tabIndex = '-1';
1954
+ const dateToFocus = new Date(currentDate.getFullYear(), currentDate.getMonth() + 1, currentDate.getDate());
1955
+ const focusKey = this.formatDateKey(dateToFocus);
1956
+ this.navigateToMonth(false, groupIndex, `span[data-date='${focusKey}']:not(.p-disabled):not(.p-ink)`);
1957
+ event.preventDefault();
1958
+ break;
1959
+ }
1960
+ //home
1961
+ case 36:
1962
+ cellContent.tabIndex = '-1';
1963
+ const firstDayDate = new Date(currentDate.getFullYear(), currentDate.getMonth(), 1);
1964
+ const firstDayDateKey = this.formatDateKey(firstDayDate);
1965
+ const firstDayCell = findSingle(cellContent.offsetParent, `span[data-date='${firstDayDateKey}']:not(.p-disabled):not(.p-ink)`);
1966
+ if (firstDayCell) {
1967
+ firstDayCell.tabIndex = '0';
1968
+ firstDayCell.focus();
1969
+ }
1970
+ event.preventDefault();
1971
+ break;
1972
+ //end
1973
+ case 35:
1974
+ cellContent.tabIndex = '-1';
1975
+ const lastDayDate = new Date(currentDate.getFullYear(), currentDate.getMonth() + 1, 0);
1976
+ const lastDayDateKey = this.formatDateKey(lastDayDate);
1977
+ const lastDayCell = findSingle(cellContent.offsetParent, `span[data-date='${lastDayDateKey}']:not(.p-disabled):not(.p-ink)`);
1978
+ if (lastDayDate) {
1979
+ lastDayCell.tabIndex = '0';
1980
+ lastDayCell.focus();
1981
+ }
1982
+ event.preventDefault();
1983
+ break;
1984
+ default:
1985
+ //no op
1986
+ break;
1987
+ }
1988
+ }
1989
+ onMonthCellKeydown(event, index) {
1990
+ const cell = event.currentTarget;
1991
+ switch (event.which) {
1992
+ //arrows
1993
+ case 38:
1994
+ case 40: {
1995
+ cell.tabIndex = '-1';
1996
+ var cells = cell.parentElement.children;
1997
+ var cellIndex = getIndex(cell);
1998
+ let nextCell = cells[event.which === 40 ? cellIndex + 3 : cellIndex - 3];
1999
+ if (nextCell) {
2000
+ nextCell.tabIndex = '0';
2001
+ nextCell.focus();
2002
+ }
2003
+ event.preventDefault();
2004
+ break;
2005
+ }
2006
+ //left arrow
2007
+ case 37: {
2008
+ cell.tabIndex = '-1';
2009
+ let prevCell = cell.previousElementSibling;
2010
+ if (prevCell) {
2011
+ prevCell.tabIndex = '0';
2012
+ prevCell.focus();
2013
+ }
2014
+ else {
2015
+ this.navigationState = { backward: true };
2016
+ this.navBackward(event);
2017
+ }
2018
+ event.preventDefault();
2019
+ break;
2020
+ }
2021
+ //right arrow
2022
+ case 39: {
2023
+ cell.tabIndex = '-1';
2024
+ let nextCell = cell.nextElementSibling;
2025
+ if (nextCell) {
2026
+ nextCell.tabIndex = '0';
2027
+ nextCell.focus();
2028
+ }
2029
+ else {
2030
+ this.navigationState = { backward: false };
2031
+ this.navForward(event);
2032
+ }
2033
+ event.preventDefault();
2034
+ break;
2035
+ }
2036
+ //enter
2037
+ //space
2038
+ case 13:
2039
+ case 32: {
2040
+ this.onMonthSelect(event, index);
2041
+ event.preventDefault();
2042
+ break;
2043
+ }
2044
+ //escape
2045
+ case 27: {
2046
+ this.inputfieldViewChild?.nativeElement.focus();
2047
+ this.overlayVisible = false;
2048
+ event.preventDefault();
2049
+ break;
2050
+ }
2051
+ //tab
2052
+ case 9: {
2053
+ if (!this.inline) {
2054
+ this.trapFocus(event);
2055
+ }
2056
+ break;
2057
+ }
2058
+ default:
2059
+ //no op
2060
+ break;
2061
+ }
2062
+ }
2063
+ onYearCellKeydown(event, index) {
2064
+ const cell = event.currentTarget;
2065
+ switch (event.which) {
2066
+ //arrows
2067
+ case 38:
2068
+ case 40: {
2069
+ cell.tabIndex = '-1';
2070
+ var cells = cell.parentElement.children;
2071
+ var cellIndex = getIndex(cell);
2072
+ let nextCell = cells[event.which === 40 ? cellIndex + 2 : cellIndex - 2];
2073
+ if (nextCell) {
2074
+ nextCell.tabIndex = '0';
2075
+ nextCell.focus();
2076
+ }
2077
+ event.preventDefault();
2078
+ break;
2079
+ }
2080
+ //left arrow
2081
+ case 37: {
2082
+ cell.tabIndex = '-1';
2083
+ let prevCell = cell.previousElementSibling;
2084
+ if (prevCell) {
2085
+ prevCell.tabIndex = '0';
2086
+ prevCell.focus();
2087
+ }
2088
+ else {
2089
+ this.navigationState = { backward: true };
2090
+ this.navBackward(event);
2091
+ }
2092
+ event.preventDefault();
2093
+ break;
2094
+ }
2095
+ //right arrow
2096
+ case 39: {
2097
+ cell.tabIndex = '-1';
2098
+ let nextCell = cell.nextElementSibling;
2099
+ if (nextCell) {
2100
+ nextCell.tabIndex = '0';
2101
+ nextCell.focus();
2102
+ }
2103
+ else {
2104
+ this.navigationState = { backward: false };
2105
+ this.navForward(event);
2106
+ }
2107
+ event.preventDefault();
2108
+ break;
2109
+ }
2110
+ //enter
2111
+ //space
2112
+ case 13:
2113
+ case 32: {
2114
+ this.onYearSelect(event, index);
2115
+ event.preventDefault();
2116
+ break;
2117
+ }
2118
+ //escape
2119
+ case 27: {
2120
+ this.inputfieldViewChild?.nativeElement.focus();
2121
+ this.overlayVisible = false;
2122
+ event.preventDefault();
2123
+ break;
2124
+ }
2125
+ //tab
2126
+ case 9: {
2127
+ this.trapFocus(event);
2128
+ break;
2129
+ }
2130
+ default:
2131
+ //no op
2132
+ break;
2133
+ }
2134
+ }
2135
+ navigateToMonth(prev, groupIndex, focusKey) {
2136
+ if (prev) {
2137
+ if (this.numberOfMonths === 1 || groupIndex === 0) {
2138
+ this.navigationState = { backward: true };
2139
+ this._focusKey = focusKey;
2140
+ this.navBackward(event);
2141
+ }
2142
+ else {
2143
+ let prevMonthContainer = this.contentViewChild.nativeElement.children[groupIndex - 1];
2144
+ if (focusKey) {
2145
+ const firstDayCell = findSingle(prevMonthContainer, focusKey);
2146
+ firstDayCell.tabIndex = '0';
2147
+ firstDayCell.focus();
2148
+ }
2149
+ else {
2150
+ let cells = find(prevMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
2151
+ let focusCell = cells[cells.length - 1];
2152
+ focusCell.tabIndex = '0';
2153
+ focusCell.focus();
2154
+ }
2155
+ }
2156
+ }
2157
+ else {
2158
+ if (this.numberOfMonths === 1 || groupIndex === this.numberOfMonths - 1) {
2159
+ this.navigationState = { backward: false };
2160
+ this._focusKey = focusKey;
2161
+ this.navForward(event);
2162
+ }
2163
+ else {
2164
+ let nextMonthContainer = this.contentViewChild.nativeElement.children[groupIndex + 1];
2165
+ if (focusKey) {
2166
+ const firstDayCell = findSingle(nextMonthContainer, focusKey);
2167
+ firstDayCell.tabIndex = '0';
2168
+ firstDayCell.focus();
2169
+ }
2170
+ else {
2171
+ let focusCell = findSingle(nextMonthContainer, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
2172
+ focusCell.tabIndex = '0';
2173
+ focusCell.focus();
2174
+ }
2175
+ }
2176
+ }
2177
+ }
2178
+ updateFocus() {
2179
+ let cell;
2180
+ if (this.navigationState) {
2181
+ if (this.navigationState.button) {
2182
+ this.initFocusableCell();
2183
+ if (this.navigationState.backward)
2184
+ findSingle(this.contentViewChild.nativeElement, '.p-datepicker-prev-button').focus();
2185
+ else
2186
+ findSingle(this.contentViewChild.nativeElement, '.p-datepicker-next-button').focus();
2187
+ }
2188
+ else {
2189
+ if (this.navigationState.backward) {
2190
+ let cells;
2191
+ if (this.currentView === 'month') {
2192
+ cells = find(this.contentViewChild.nativeElement, '.p-datepicker-month-view .p-datepicker-month:not(.p-disabled)');
2193
+ }
2194
+ else if (this.currentView === 'year') {
2195
+ cells = find(this.contentViewChild.nativeElement, '.p-datepicker-year-view .p-datepicker-year:not(.p-disabled)');
2196
+ }
2197
+ else {
2198
+ cells = find(this.contentViewChild.nativeElement, this._focusKey || '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
2199
+ }
2200
+ if (cells && cells.length > 0) {
2201
+ cell = cells[cells.length - 1];
2202
+ }
2203
+ }
2204
+ else {
2205
+ if (this.currentView === 'month') {
2206
+ cell = findSingle(this.contentViewChild.nativeElement, '.p-datepicker-month-view .p-datepicker-month:not(.p-disabled)');
2207
+ }
2208
+ else if (this.currentView === 'year') {
2209
+ cell = findSingle(this.contentViewChild.nativeElement, '.p-datepicker-year-view .p-datepicker-year:not(.p-disabled)');
2210
+ }
2211
+ else {
2212
+ cell = findSingle(this.contentViewChild.nativeElement, this._focusKey || '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
2213
+ }
2214
+ }
2215
+ if (cell) {
2216
+ cell.tabIndex = '0';
2217
+ cell.focus();
2218
+ }
2219
+ }
2220
+ this.navigationState = null;
2221
+ this._focusKey = null;
2222
+ }
2223
+ else {
2224
+ this.initFocusableCell();
2225
+ }
2226
+ }
2227
+ initFocusableCell() {
2228
+ const contentEl = this.contentViewChild?.nativeElement;
2229
+ let cell;
2230
+ if (this.currentView === 'month') {
2231
+ let cells = find(contentEl, '.p-datepicker-month-view .p-datepicker-month:not(.p-disabled)');
2232
+ let selectedCell = findSingle(contentEl, '.p-datepicker-month-view .p-datepicker-month.p-highlight');
2233
+ cells.forEach((cell) => (cell.tabIndex = -1));
2234
+ cell = selectedCell || cells[0];
2235
+ if (cells.length === 0) {
2236
+ let disabledCells = find(contentEl, '.p-datepicker-month-view .p-datepicker-month.p-disabled[tabindex = "0"]');
2237
+ disabledCells.forEach((cell) => (cell.tabIndex = -1));
2238
+ }
2239
+ }
2240
+ else if (this.currentView === 'year') {
2241
+ let cells = find(contentEl, '.p-datepicker-year-view .p-datepicker-year:not(.p-disabled)');
2242
+ let selectedCell = findSingle(contentEl, '.p-datepicker-year-view .p-datepicker-year.p-highlight');
2243
+ cells.forEach((cell) => (cell.tabIndex = -1));
2244
+ cell = selectedCell || cells[0];
2245
+ if (cells.length === 0) {
2246
+ let disabledCells = find(contentEl, '.p-datepicker-year-view .p-datepicker-year.p-disabled[tabindex = "0"]');
2247
+ disabledCells.forEach((cell) => (cell.tabIndex = -1));
2248
+ }
2249
+ }
2250
+ else {
2251
+ cell = findSingle(contentEl, 'span.p-highlight');
2252
+ if (!cell) {
2253
+ let todayCell = findSingle(contentEl, 'td.p-datepicker-today span:not(.p-disabled):not(.p-ink)');
2254
+ if (todayCell)
2255
+ cell = todayCell;
2256
+ else
2257
+ cell = findSingle(contentEl, '.p-datepicker-calendar td span:not(.p-disabled):not(.p-ink)');
2258
+ }
2259
+ }
2260
+ if (cell) {
2261
+ cell.tabIndex = '0';
2262
+ if (!this.preventFocus && (!this.navigationState || !this.navigationState.button)) {
2263
+ setTimeout(() => {
2264
+ if (!this.$disabled()) {
2265
+ cell.focus();
2266
+ }
2267
+ }, 1);
2268
+ }
2269
+ this.preventFocus = false;
2270
+ }
2271
+ }
2272
+ trapFocus(event) {
2273
+ let focusableElements = getFocusableElements(this.contentViewChild.nativeElement);
2274
+ if (focusableElements && focusableElements.length > 0) {
2275
+ if (!focusableElements[0].ownerDocument.activeElement) {
2276
+ focusableElements[0].focus();
2277
+ }
2278
+ else {
2279
+ let focusedIndex = focusableElements.indexOf(focusableElements[0].ownerDocument.activeElement);
2280
+ if (event.shiftKey) {
2281
+ if (focusedIndex == -1 || focusedIndex === 0) {
2282
+ if (this.focusTrap) {
2283
+ focusableElements[focusableElements.length - 1].focus();
2284
+ }
2285
+ else {
2286
+ if (focusedIndex === -1)
2287
+ return this.hideOverlay();
2288
+ else if (focusedIndex === 0)
2289
+ return;
2290
+ }
2291
+ }
2292
+ else {
2293
+ focusableElements[focusedIndex - 1].focus();
2294
+ }
2295
+ }
2296
+ else {
2297
+ if (focusedIndex == -1) {
2298
+ if (this.timeOnly) {
2299
+ focusableElements[0].focus();
2300
+ }
2301
+ else {
2302
+ let spanIndex = 0;
2303
+ for (let i = 0; i < focusableElements.length; i++) {
2304
+ if (focusableElements[i].tagName === 'SPAN')
2305
+ spanIndex = i;
2306
+ }
2307
+ focusableElements[spanIndex].focus();
2308
+ }
2309
+ }
2310
+ else if (focusedIndex === focusableElements.length - 1) {
2311
+ if (!this.focusTrap && focusedIndex != -1)
2312
+ return this.hideOverlay();
2313
+ focusableElements[0].focus();
2314
+ }
2315
+ else {
2316
+ focusableElements[focusedIndex + 1].focus();
2317
+ }
2318
+ }
2319
+ }
2320
+ }
2321
+ event.preventDefault();
2322
+ }
2323
+ onMonthDropdownChange(m) {
2324
+ this.currentMonth = parseInt(m);
2325
+ this.onMonthChange.emit({ month: this.currentMonth + 1, year: this.currentYear });
2326
+ this.createMonths(this.currentMonth, this.currentYear);
2327
+ }
2328
+ onYearDropdownChange(y) {
2329
+ this.currentYear = parseInt(y);
2330
+ this.onYearChange.emit({ month: this.currentMonth + 1, year: this.currentYear });
2331
+ this.createMonths(this.currentMonth, this.currentYear);
2332
+ }
2333
+ convertTo24Hour(hours, pm) {
2334
+ //@ts-ignore
2335
+ if (this.hourFormat == '12') {
2336
+ if (hours === 12) {
2337
+ return pm ? 12 : 0;
2338
+ }
2339
+ else {
2340
+ return pm ? hours + 12 : hours;
2341
+ }
2342
+ }
2343
+ return hours;
2344
+ }
2345
+ constrainTime(hour, minute, second, pm) {
2346
+ let returnTimeTriple = [hour, minute, second];
2347
+ let minHoursExceeds12 = false;
2348
+ let value = this.value;
2349
+ const convertedHour = this.convertTo24Hour(hour, pm);
2350
+ const isRange = this.isRangeSelection(), isMultiple = this.isMultipleSelection(), isMultiValue = isRange || isMultiple;
2351
+ if (isMultiValue) {
2352
+ if (!this.value) {
2353
+ this.value = [new Date(), new Date()];
2354
+ }
2355
+ if (isRange) {
2356
+ value = this.value[1] || this.value[0];
2357
+ }
2358
+ if (isMultiple) {
2359
+ value = this.value[this.value.length - 1];
2360
+ }
2361
+ }
2362
+ const valueDateString = value && isDate(value) ? value.toDateString() : null;
2363
+ let isMinDate = this.minDate && valueDateString && this.minDate.toDateString() === valueDateString;
2364
+ let isMaxDate = this.maxDate && valueDateString && this.maxDate.toDateString() === valueDateString;
2365
+ if (isMinDate) {
2366
+ minHoursExceeds12 = this.minDate.getHours() >= 12;
2367
+ }
2368
+ switch (true // intentional fall through
2369
+ ) {
2370
+ case isMinDate && minHoursExceeds12 && this.minDate.getHours() === 12 && this.minDate.getHours() > convertedHour:
2371
+ returnTimeTriple[0] = 11;
2372
+ case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() > minute:
2373
+ returnTimeTriple[1] = this.minDate.getMinutes();
2374
+ case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() === minute && this.minDate.getSeconds() > second:
2375
+ returnTimeTriple[2] = this.minDate.getSeconds();
2376
+ break;
2377
+ case isMinDate && !minHoursExceeds12 && this.minDate.getHours() - 1 === convertedHour && this.minDate.getHours() > convertedHour:
2378
+ returnTimeTriple[0] = 11;
2379
+ this.pm = true;
2380
+ case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() > minute:
2381
+ returnTimeTriple[1] = this.minDate.getMinutes();
2382
+ case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() === minute && this.minDate.getSeconds() > second:
2383
+ returnTimeTriple[2] = this.minDate.getSeconds();
2384
+ break;
2385
+ case isMinDate && minHoursExceeds12 && this.minDate.getHours() > convertedHour && convertedHour !== 12:
2386
+ this.setCurrentHourPM(this.minDate.getHours());
2387
+ returnTimeTriple[0] = this.currentHour || 0;
2388
+ case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() > minute:
2389
+ returnTimeTriple[1] = this.minDate.getMinutes();
2390
+ case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() === minute && this.minDate.getSeconds() > second:
2391
+ returnTimeTriple[2] = this.minDate.getSeconds();
2392
+ break;
2393
+ case isMinDate && this.minDate.getHours() > convertedHour:
2394
+ returnTimeTriple[0] = this.minDate.getHours();
2395
+ case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() > minute:
2396
+ returnTimeTriple[1] = this.minDate.getMinutes();
2397
+ case isMinDate && this.minDate.getHours() === convertedHour && this.minDate.getMinutes() === minute && this.minDate.getSeconds() > second:
2398
+ returnTimeTriple[2] = this.minDate.getSeconds();
2399
+ break;
2400
+ case isMaxDate && this.maxDate.getHours() < convertedHour:
2401
+ returnTimeTriple[0] = this.maxDate.getHours();
2402
+ case isMaxDate && this.maxDate.getHours() === convertedHour && this.maxDate.getMinutes() < minute:
2403
+ returnTimeTriple[1] = this.maxDate.getMinutes();
2404
+ case isMaxDate && this.maxDate.getHours() === convertedHour && this.maxDate.getMinutes() === minute && this.maxDate.getSeconds() < second:
2405
+ returnTimeTriple[2] = this.maxDate.getSeconds();
2406
+ break;
2407
+ }
2408
+ return returnTimeTriple;
2409
+ }
2410
+ incrementHour(event) {
2411
+ const prevHour = this.currentHour ?? 0;
2412
+ let newHour = (this.currentHour ?? 0) + this.stepHour;
2413
+ let newPM = this.pm;
2414
+ if (this.hourFormat == '24')
2415
+ newHour = newHour >= 24 ? newHour - 24 : newHour;
2416
+ else if (this.hourFormat == '12') {
2417
+ // Before the AM/PM break, now after
2418
+ if (prevHour < 12 && newHour > 11) {
2419
+ newPM = !this.pm;
2420
+ }
2421
+ newHour = newHour >= 13 ? newHour - 12 : newHour;
2422
+ }
2423
+ this.toggleAMPMIfNotMinDate(newPM);
2424
+ [this.currentHour, this.currentMinute, this.currentSecond] = this.constrainTime(newHour, this.currentMinute, this.currentSecond, newPM);
2425
+ event.preventDefault();
2426
+ }
2427
+ toggleAMPMIfNotMinDate(newPM) {
2428
+ let value = this.value;
2429
+ const valueDateString = value && isDate(value) ? value.toDateString() : null;
2430
+ let isMinDate = this.minDate && valueDateString && this.minDate.toDateString() === valueDateString;
2431
+ if (isMinDate && this.minDate.getHours() >= 12) {
2432
+ this.pm = true;
2433
+ }
2434
+ else {
2435
+ this.pm = newPM;
2436
+ }
2437
+ }
2438
+ onTimePickerElementMouseDown(event, type, direction) {
2439
+ if (!this.$disabled()) {
2440
+ this.repeat(event, null, type, direction);
2441
+ event.preventDefault();
2442
+ }
2443
+ }
2444
+ onTimePickerElementMouseUp(event) {
2445
+ if (!this.$disabled()) {
2446
+ this.clearTimePickerTimer();
2447
+ this.updateTime();
2448
+ }
2449
+ }
2450
+ onTimePickerElementMouseLeave() {
2451
+ if (!this.$disabled() && this.timePickerTimer) {
2452
+ this.clearTimePickerTimer();
2453
+ this.updateTime();
2454
+ }
2455
+ }
2456
+ repeat(event, interval, type, direction) {
2457
+ let i = interval || 500;
2458
+ this.clearTimePickerTimer();
2459
+ this.timePickerTimer = setTimeout(() => {
2460
+ this.repeat(event, 100, type, direction);
2461
+ this.cd.markForCheck();
2462
+ }, i);
2463
+ switch (type) {
2464
+ case 0:
2465
+ if (direction === 1)
2466
+ this.incrementHour(event);
2467
+ else
2468
+ this.decrementHour(event);
2469
+ break;
2470
+ case 1:
2471
+ if (direction === 1)
2472
+ this.incrementMinute(event);
2473
+ else
2474
+ this.decrementMinute(event);
2475
+ break;
2476
+ case 2:
2477
+ if (direction === 1)
2478
+ this.incrementSecond(event);
2479
+ else
2480
+ this.decrementSecond(event);
2481
+ break;
2482
+ }
2483
+ this.updateInputfield();
2484
+ }
2485
+ clearTimePickerTimer() {
2486
+ if (this.timePickerTimer) {
2487
+ clearTimeout(this.timePickerTimer);
2488
+ this.timePickerTimer = null;
2489
+ }
2490
+ }
2491
+ decrementHour(event) {
2492
+ let newHour = (this.currentHour ?? 0) - this.stepHour;
2493
+ let newPM = this.pm;
2494
+ if (this.hourFormat == '24')
2495
+ newHour = newHour < 0 ? 24 + newHour : newHour;
2496
+ else if (this.hourFormat == '12') {
2497
+ // If we were at noon/midnight, then switch
2498
+ if (this.currentHour === 12) {
2499
+ newPM = !this.pm;
2500
+ }
2501
+ newHour = newHour <= 0 ? 12 + newHour : newHour;
2502
+ }
2503
+ this.toggleAMPMIfNotMinDate(newPM);
2504
+ [this.currentHour, this.currentMinute, this.currentSecond] = this.constrainTime(newHour, this.currentMinute, this.currentSecond, newPM);
2505
+ event.preventDefault();
2506
+ }
2507
+ incrementMinute(event) {
2508
+ let newMinute = (this.currentMinute ?? 0) + this.stepMinute;
2509
+ newMinute = newMinute > 59 ? newMinute - 60 : newMinute;
2510
+ [this.currentHour, this.currentMinute, this.currentSecond] = this.constrainTime(this.currentHour || 0, newMinute, this.currentSecond, this.pm);
2511
+ event.preventDefault();
2512
+ }
2513
+ decrementMinute(event) {
2514
+ let newMinute = (this.currentMinute ?? 0) - this.stepMinute;
2515
+ newMinute = newMinute < 0 ? 60 + newMinute : newMinute;
2516
+ [this.currentHour, this.currentMinute, this.currentSecond] = this.constrainTime(this.currentHour || 0, newMinute, this.currentSecond || 0, this.pm);
2517
+ event.preventDefault();
2518
+ }
2519
+ incrementSecond(event) {
2520
+ let newSecond = this.currentSecond + this.stepSecond;
2521
+ newSecond = newSecond > 59 ? newSecond - 60 : newSecond;
2522
+ [this.currentHour, this.currentMinute, this.currentSecond] = this.constrainTime(this.currentHour || 0, this.currentMinute || 0, newSecond, this.pm);
2523
+ event.preventDefault();
2524
+ }
2525
+ decrementSecond(event) {
2526
+ let newSecond = this.currentSecond - this.stepSecond;
2527
+ newSecond = newSecond < 0 ? 60 + newSecond : newSecond;
2528
+ [this.currentHour, this.currentMinute, this.currentSecond] = this.constrainTime(this.currentHour || 0, this.currentMinute || 0, newSecond, this.pm);
2529
+ event.preventDefault();
2530
+ }
2531
+ updateTime() {
2532
+ let value = this.value;
2533
+ if (this.isRangeSelection()) {
2534
+ value = this.value[1] || this.value[0];
2535
+ }
2536
+ if (this.isMultipleSelection()) {
2537
+ value = this.value[this.value.length - 1];
2538
+ }
2539
+ value = value && isDate(value) ? new Date(value.getTime()) : new Date();
2540
+ if (this.hourFormat == '12') {
2541
+ if (this.currentHour === 12)
2542
+ value.setHours(this.pm ? 12 : 0);
2543
+ else
2544
+ value.setHours(this.pm ? this.currentHour + 12 : this.currentHour);
2545
+ }
2546
+ else {
2547
+ value.setHours(this.currentHour);
2548
+ }
2549
+ value.setMinutes(this.currentMinute);
2550
+ value.setSeconds(this.currentSecond);
2551
+ if (this.isRangeSelection()) {
2552
+ if (this.value[1])
2553
+ value = [this.value[0], value];
2554
+ else
2555
+ value = [value, null];
2556
+ }
2557
+ if (this.isMultipleSelection()) {
2558
+ value = [...this.value.slice(0, -1), value];
2559
+ }
2560
+ this.updateModel(value);
2561
+ this.onSelect.emit(value);
2562
+ this.updateInputfield();
2563
+ }
2564
+ toggleAMPM(event) {
2565
+ const newPM = !this.pm;
2566
+ this.pm = newPM;
2567
+ [this.currentHour, this.currentMinute, this.currentSecond] = this.constrainTime(this.currentHour || 0, this.currentMinute || 0, this.currentSecond || 0, newPM);
2568
+ this.updateTime();
2569
+ event.preventDefault();
2570
+ }
2571
+ onUserInput(event) {
2572
+ // IE 11 Workaround for input placeholder : https://github.com/primefaces/primeng/issues/2026
2573
+ if (!this.isKeydown) {
2574
+ return;
2575
+ }
2576
+ this.isKeydown = false;
2577
+ let val = event.target.value;
2578
+ try {
2579
+ let value = this.parseValueFromString(val);
2580
+ if (this.isValidSelection(value)) {
2581
+ this.updateModel(value);
2582
+ this.updateUI();
2583
+ }
2584
+ else if (this.keepInvalid) {
2585
+ this.updateModel(value);
2586
+ }
2587
+ }
2588
+ catch (err) {
2589
+ //invalid date
2590
+ let value = this.keepInvalid ? val : null;
2591
+ this.updateModel(value);
2592
+ }
2593
+ this.onInput.emit(event);
2594
+ }
2595
+ isValidSelection(value) {
2596
+ if (this.isSingleSelection()) {
2597
+ return this.isSelectable(value.getDate(), value.getMonth(), value.getFullYear(), false);
2598
+ }
2599
+ let isValid = value.every((v) => this.isSelectable(v.getDate(), v.getMonth(), v.getFullYear(), false));
2600
+ if (isValid && this.isRangeSelection()) {
2601
+ isValid = value.length === 1 || (value.length > 1 && value[1] >= value[0]);
2602
+ }
2603
+ return isValid;
2604
+ }
2605
+ parseValueFromString(text) {
2606
+ if (!text || text.trim().length === 0) {
2607
+ return null;
2608
+ }
2609
+ let value;
2610
+ if (this.isSingleSelection()) {
2611
+ value = this.parseDateTime(text);
2612
+ }
2613
+ else if (this.isMultipleSelection()) {
2614
+ let tokens = text.split(this.multipleSeparator);
2615
+ value = [];
2616
+ for (let token of tokens) {
2617
+ value.push(this.parseDateTime(token.trim()));
2618
+ }
2619
+ }
2620
+ else if (this.isRangeSelection()) {
2621
+ let tokens = text.split(' ' + this.rangeSeparator + ' ');
2622
+ value = [];
2623
+ for (let i = 0; i < tokens.length; i++) {
2624
+ value[i] = this.parseDateTime(tokens[i].trim());
2625
+ }
2626
+ }
2627
+ return value;
2628
+ }
2629
+ parseDateTime(text) {
2630
+ let date;
2631
+ let parts = text.split(' ');
2632
+ if (this.timeOnly) {
2633
+ date = new Date();
2634
+ this.populateTime(date, parts[0], parts[1]);
2635
+ }
2636
+ else {
2637
+ const dateFormat = this.getDateFormat();
2638
+ if (this.showTime) {
2639
+ let ampm = this.hourFormat == '12' ? parts.pop() : null;
2640
+ let timeString = parts.pop();
2641
+ date = this.parseDate(parts.join(' '), dateFormat);
2642
+ this.populateTime(date, timeString, ampm);
2643
+ }
2644
+ else {
2645
+ date = this.parseDate(text, dateFormat);
2646
+ }
2647
+ }
2648
+ return date;
2649
+ }
2650
+ populateTime(value, timeString, ampm) {
2651
+ if (this.hourFormat == '12' && !ampm) {
2652
+ throw 'Invalid Time';
2653
+ }
2654
+ this.pm = ampm === 'PM' || ampm === 'pm';
2655
+ let time = this.parseTime(timeString);
2656
+ value.setHours(time.hour);
2657
+ value.setMinutes(time.minute);
2658
+ value.setSeconds(time.second);
2659
+ }
2660
+ isValidDate(date) {
2661
+ return isDate(date) && isNotEmpty(date);
2662
+ }
2663
+ updateUI() {
2664
+ let propValue = this.value;
2665
+ if (Array.isArray(propValue)) {
2666
+ propValue = propValue.length === 2 ? propValue[1] : propValue[0];
2667
+ }
2668
+ let val = this.defaultDate && this.isValidDate(this.defaultDate) && !this.value ? this.defaultDate : propValue && this.isValidDate(propValue) ? propValue : new Date();
2669
+ this.currentMonth = val.getMonth();
2670
+ this.currentYear = val.getFullYear();
2671
+ this.createMonths(this.currentMonth, this.currentYear);
2672
+ if (this.showTime || this.timeOnly) {
2673
+ this.setCurrentHourPM(val.getHours());
2674
+ this.currentMinute = val.getMinutes();
2675
+ this.currentSecond = this.showSeconds ? val.getSeconds() : 0;
2676
+ }
2677
+ }
2678
+ showOverlay() {
2679
+ if (!this.overlayVisible) {
2680
+ this.updateUI();
2681
+ if (!this.touchUI) {
2682
+ this.preventFocus = true;
2683
+ }
2684
+ this.overlayMinWidth = this.el.nativeElement.offsetWidth;
2685
+ this.overlayVisible = true;
2686
+ }
2687
+ }
2688
+ hideOverlay() {
2689
+ this.inputfieldViewChild?.nativeElement.focus();
2690
+ this.overlayVisible = false;
2691
+ this.clearTimePickerTimer();
2692
+ if (this.touchUI) {
2693
+ this.disableModality();
2694
+ }
2695
+ this.cd.markForCheck();
2696
+ }
2697
+ toggle() {
2698
+ if (!this.inline) {
2699
+ if (!this.overlayVisible) {
2700
+ this.showOverlay();
2701
+ this.inputfieldViewChild?.nativeElement.focus();
2702
+ }
2703
+ else {
2704
+ this.hideOverlay();
2705
+ }
2706
+ }
2707
+ }
2708
+ onOverlayBeforeEnter(event) {
2709
+ this.overlay = event.element;
2710
+ this.$attrSelector && this.overlay.setAttribute(this.$attrSelector, '');
2711
+ const styles = !this.inline ? { position: 'absolute', top: '0', minWidth: `${this.overlayMinWidth}px` } : undefined;
2712
+ addStyle(this.overlay, styles || {});
2713
+ this.appendOverlay();
2714
+ this.alignOverlay();
2715
+ this.setZIndex();
2716
+ this.updateFocus();
2717
+ this.bindListeners();
2718
+ this.onShow.emit(event.element);
2719
+ }
2720
+ onOverlayAfterLeave(event) {
2721
+ if (this.autoZIndex) {
2722
+ ZIndexUtils.clear(event.element);
2723
+ }
2724
+ this.restoreOverlayAppend();
2725
+ this.onOverlayHide();
2726
+ this.onClose.emit(event.element);
2727
+ }
2728
+ appendOverlay() {
2729
+ if (this.$appendTo() && this.$appendTo() !== 'self') {
2730
+ if (this.$appendTo() === 'body')
2731
+ this.document.body.appendChild(this.overlay);
2732
+ else
2733
+ appendChild(this.$appendTo(), this.overlay);
2734
+ }
2735
+ }
2736
+ restoreOverlayAppend() {
2737
+ if (this.overlay && this.$appendTo() !== 'self') {
2738
+ this.el.nativeElement.appendChild(this.overlay);
2739
+ }
2740
+ }
2741
+ alignOverlay() {
2742
+ if (this.touchUI) {
2743
+ this.enableModality(this.overlay);
2744
+ }
2745
+ else if (this.overlay) {
2746
+ if (this.$appendTo() && this.$appendTo() !== 'self') {
2747
+ absolutePosition(this.overlay, this.inputfieldViewChild?.nativeElement);
2748
+ }
2749
+ else {
2750
+ relativePosition(this.overlay, this.inputfieldViewChild?.nativeElement);
2751
+ }
2752
+ }
2753
+ }
2754
+ bindListeners() {
2755
+ this.bindDocumentClickListener();
2756
+ this.bindDocumentResizeListener();
2757
+ this.bindScrollListener();
2758
+ }
2759
+ setZIndex() {
2760
+ if (this.autoZIndex) {
2761
+ if (this.touchUI)
2762
+ ZIndexUtils.set('modal', this.overlay, this.baseZIndex || this.config.zIndex.modal);
2763
+ else
2764
+ ZIndexUtils.set('overlay', this.overlay, this.baseZIndex || this.config.zIndex.overlay);
2765
+ }
2766
+ }
2767
+ enableModality(element) {
2768
+ if (!this.mask && this.touchUI) {
2769
+ this.mask = this.renderer.createElement('div');
2770
+ this.renderer.setStyle(this.mask, 'zIndex', String(parseInt(element.style.zIndex) - 1));
2771
+ let maskStyleClass = 'p-overlay-mask p-datepicker-mask p-datepicker-mask-scrollblocker p-overlay-mask p-overlay-mask-enter-active';
2772
+ addClass(this.mask, maskStyleClass);
2773
+ this.maskClickListener = this.renderer.listen(this.mask, 'click', (event) => {
2774
+ this.disableModality();
2775
+ this.overlayVisible = false;
2776
+ });
2777
+ this.renderer.appendChild(this.document.body, this.mask);
2778
+ blockBodyScroll();
2779
+ }
2780
+ }
2781
+ disableModality() {
2782
+ if (this.mask) {
2783
+ addClass(this.mask, 'p-overlay-mask-leave');
2784
+ if (!this.animationEndListener) {
2785
+ this.animationEndListener = this.renderer.listen(this.mask, 'animationend', this.destroyMask.bind(this));
2786
+ }
2787
+ }
2788
+ }
2789
+ destroyMask() {
2790
+ if (!this.mask) {
2791
+ return;
2792
+ }
2793
+ this.renderer.removeChild(this.document.body, this.mask);
2794
+ let bodyChildren = this.document.body.children;
2795
+ let hasBlockerMasks;
2796
+ for (let i = 0; i < bodyChildren.length; i++) {
2797
+ let bodyChild = bodyChildren[i];
2798
+ if (hasClass(bodyChild, 'p-datepicker-mask-scrollblocker')) {
2799
+ hasBlockerMasks = true;
2800
+ break;
2801
+ }
2802
+ }
2803
+ if (!hasBlockerMasks) {
2804
+ unblockBodyScroll();
2805
+ }
2806
+ this.unbindAnimationEndListener();
2807
+ this.unbindMaskClickListener();
2808
+ this.mask = null;
2809
+ }
2810
+ unbindMaskClickListener() {
2811
+ if (this.maskClickListener) {
2812
+ this.maskClickListener();
2813
+ this.maskClickListener = null;
2814
+ }
2815
+ }
2816
+ unbindAnimationEndListener() {
2817
+ if (this.animationEndListener && this.mask) {
2818
+ this.animationEndListener();
2819
+ this.animationEndListener = null;
2820
+ }
2821
+ }
2822
+ getDateFormat() {
2823
+ return this.dateFormat || this.getTranslation('dateFormat');
2824
+ }
2825
+ getFirstDateOfWeek() {
2826
+ return this._firstDayOfWeek || this.getTranslation(TranslationKeys.FIRST_DAY_OF_WEEK);
2827
+ }
2828
+ // Ported from jquery-ui datepicker formatDate
2829
+ formatDate(date, format) {
2830
+ if (!date) {
2831
+ return '';
2832
+ }
2833
+ let iFormat;
2834
+ const lookAhead = (match) => {
2835
+ const matches = iFormat + 1 < format.length && format.charAt(iFormat + 1) === match;
2836
+ if (matches) {
2837
+ iFormat++;
2838
+ }
2839
+ return matches;
2840
+ }, formatNumber = (match, value, len) => {
2841
+ let num = '' + value;
2842
+ if (lookAhead(match)) {
2843
+ while (num.length < len) {
2844
+ num = '0' + num;
2845
+ }
2846
+ }
2847
+ return num;
2848
+ }, formatName = (match, value, shortNames, longNames) => {
2849
+ return lookAhead(match) ? longNames[value] : shortNames[value];
2850
+ };
2851
+ let output = '';
2852
+ let literal = false;
2853
+ if (date) {
2854
+ for (iFormat = 0; iFormat < format.length; iFormat++) {
2855
+ if (literal) {
2856
+ if (format.charAt(iFormat) === "'" && !lookAhead("'")) {
2857
+ literal = false;
2858
+ }
2859
+ else {
2860
+ output += format.charAt(iFormat);
2861
+ }
2862
+ }
2863
+ else {
2864
+ switch (format.charAt(iFormat)) {
2865
+ case 'd':
2866
+ output += formatNumber('d', date.getDate(), 2);
2867
+ break;
2868
+ case 'D':
2869
+ output += formatName('D', date.getDay(), this.getTranslation(TranslationKeys.DAY_NAMES_SHORT), this.getTranslation(TranslationKeys.DAY_NAMES));
2870
+ break;
2871
+ case 'o':
2872
+ output += formatNumber('o', Math.round((new Date(date.getFullYear(), date.getMonth(), date.getDate()).getTime() - new Date(date.getFullYear(), 0, 0).getTime()) / 86400000), 3);
2873
+ break;
2874
+ case 'm':
2875
+ output += formatNumber('m', date.getMonth() + 1, 2);
2876
+ break;
2877
+ case 'M':
2878
+ output += formatName('M', date.getMonth(), this.getTranslation(TranslationKeys.MONTH_NAMES_SHORT), this.getTranslation(TranslationKeys.MONTH_NAMES));
2879
+ break;
2880
+ case 'y':
2881
+ output += lookAhead('y') ? date.getFullYear() : (date.getFullYear() % 100 < 10 ? '0' : '') + (date.getFullYear() % 100);
2882
+ break;
2883
+ case '@':
2884
+ output += date.getTime();
2885
+ break;
2886
+ case '!':
2887
+ output += date.getTime() * 10000 + this.ticksTo1970;
2888
+ break;
2889
+ case "'":
2890
+ if (lookAhead("'")) {
2891
+ output += "'";
2892
+ }
2893
+ else {
2894
+ literal = true;
2895
+ }
2896
+ break;
2897
+ default:
2898
+ output += format.charAt(iFormat);
2899
+ }
2900
+ }
2901
+ }
2902
+ }
2903
+ return output;
2904
+ }
2905
+ formatTime(date) {
2906
+ if (!date) {
2907
+ return '';
2908
+ }
2909
+ let output = '';
2910
+ let hours = date.getHours();
2911
+ let minutes = date.getMinutes();
2912
+ let seconds = date.getSeconds();
2913
+ if (this.hourFormat == '12' && hours > 11 && hours != 12) {
2914
+ hours -= 12;
2915
+ }
2916
+ if (this.hourFormat == '12') {
2917
+ output += hours === 0 ? 12 : hours < 10 ? '0' + hours : hours;
2918
+ }
2919
+ else {
2920
+ output += hours < 10 ? '0' + hours : hours;
2921
+ }
2922
+ output += ':';
2923
+ output += minutes < 10 ? '0' + minutes : minutes;
2924
+ if (this.showSeconds) {
2925
+ output += ':';
2926
+ output += seconds < 10 ? '0' + seconds : seconds;
2927
+ }
2928
+ if (this.hourFormat == '12') {
2929
+ output += date.getHours() > 11 ? ' PM' : ' AM';
2930
+ }
2931
+ return output;
2932
+ }
2933
+ parseTime(value) {
2934
+ let tokens = value.split(':');
2935
+ let validTokenLength = this.showSeconds ? 3 : 2;
2936
+ if (tokens.length !== validTokenLength) {
2937
+ throw 'Invalid time';
2938
+ }
2939
+ let h = parseInt(tokens[0]);
2940
+ let m = parseInt(tokens[1]);
2941
+ let s = this.showSeconds ? parseInt(tokens[2]) : null;
2942
+ if (isNaN(h) || isNaN(m) || h > 23 || m > 59 || (this.hourFormat == '12' && h > 12) || (this.showSeconds && (isNaN(s) || s > 59))) {
2943
+ throw 'Invalid time';
2944
+ }
2945
+ else {
2946
+ if (this.hourFormat == '12') {
2947
+ if (h !== 12 && this.pm) {
2948
+ h += 12;
2949
+ }
2950
+ else if (!this.pm && h === 12) {
2951
+ h -= 12;
2952
+ }
2953
+ }
2954
+ return { hour: h, minute: m, second: s };
2955
+ }
2956
+ }
2957
+ // Ported from jquery-ui datepicker parseDate
2958
+ parseDate(value, format) {
2959
+ if (format == null || value == null) {
2960
+ throw 'Invalid arguments';
2961
+ }
2962
+ value = typeof value === 'object' ? value.toString() : value + '';
2963
+ if (value === '') {
2964
+ return null;
2965
+ }
2966
+ let iFormat, dim, extra, iValue = 0, shortYearCutoff = typeof this.shortYearCutoff !== 'string' ? this.shortYearCutoff : (new Date().getFullYear() % 100) + parseInt(this.shortYearCutoff, 10), year = -1, month = -1, day = -1, doy = -1, literal = false, date, lookAhead = (match) => {
2967
+ let matches = iFormat + 1 < format.length && format.charAt(iFormat + 1) === match;
2968
+ if (matches) {
2969
+ iFormat++;
2970
+ }
2971
+ return matches;
2972
+ }, getNumber = (match) => {
2973
+ let isDoubled = lookAhead(match), size = match === '@' ? 14 : match === '!' ? 20 : match === 'y' && isDoubled ? 4 : match === 'o' ? 3 : 2, minSize = match === 'y' ? size : 1, digits = new RegExp('^\\d{' + minSize + ',' + size + '}'), num = value.substring(iValue).match(digits);
2974
+ if (!num) {
2975
+ throw 'Missing number at position ' + iValue;
2976
+ }
2977
+ iValue += num[0].length;
2978
+ return parseInt(num[0], 10);
2979
+ }, getName = (match, shortNames, longNames) => {
2980
+ let index = -1;
2981
+ let arr = lookAhead(match) ? longNames : shortNames;
2982
+ let names = [];
2983
+ for (let i = 0; i < arr.length; i++) {
2984
+ names.push([i, arr[i]]);
2985
+ }
2986
+ names.sort((a, b) => {
2987
+ return -(a[1].length - b[1].length);
2988
+ });
2989
+ for (let i = 0; i < names.length; i++) {
2990
+ let name = names[i][1];
2991
+ if (value.substr(iValue, name.length).toLowerCase() === name.toLowerCase()) {
2992
+ index = names[i][0];
2993
+ iValue += name.length;
2994
+ break;
2995
+ }
2996
+ }
2997
+ if (index !== -1) {
2998
+ return index + 1;
2999
+ }
3000
+ else {
3001
+ throw 'Unknown name at position ' + iValue;
3002
+ }
3003
+ }, checkLiteral = () => {
3004
+ if (value.charAt(iValue) !== format.charAt(iFormat)) {
3005
+ throw 'Unexpected literal at position ' + iValue;
3006
+ }
3007
+ iValue++;
3008
+ };
3009
+ if (this.view === 'month') {
3010
+ day = 1;
3011
+ }
3012
+ for (iFormat = 0; iFormat < format.length; iFormat++) {
3013
+ if (literal) {
3014
+ if (format.charAt(iFormat) === "'" && !lookAhead("'")) {
3015
+ literal = false;
3016
+ }
3017
+ else {
3018
+ checkLiteral();
3019
+ }
3020
+ }
3021
+ else {
3022
+ switch (format.charAt(iFormat)) {
3023
+ case 'd':
3024
+ day = getNumber('d');
3025
+ break;
3026
+ case 'D':
3027
+ getName('D', this.getTranslation(TranslationKeys.DAY_NAMES_SHORT), this.getTranslation(TranslationKeys.DAY_NAMES));
3028
+ break;
3029
+ case 'o':
3030
+ doy = getNumber('o');
3031
+ break;
3032
+ case 'm':
3033
+ month = getNumber('m');
3034
+ break;
3035
+ case 'M':
3036
+ month = getName('M', this.getTranslation(TranslationKeys.MONTH_NAMES_SHORT), this.getTranslation(TranslationKeys.MONTH_NAMES));
3037
+ break;
3038
+ case 'y':
3039
+ year = getNumber('y');
3040
+ break;
3041
+ case '@':
3042
+ date = new Date(getNumber('@'));
3043
+ year = date.getFullYear();
3044
+ month = date.getMonth() + 1;
3045
+ day = date.getDate();
3046
+ break;
3047
+ case '!':
3048
+ date = new Date((getNumber('!') - this.ticksTo1970) / 10000);
3049
+ year = date.getFullYear();
3050
+ month = date.getMonth() + 1;
3051
+ day = date.getDate();
3052
+ break;
3053
+ case "'":
3054
+ if (lookAhead("'")) {
3055
+ checkLiteral();
3056
+ }
3057
+ else {
3058
+ literal = true;
3059
+ }
3060
+ break;
3061
+ default:
3062
+ checkLiteral();
3063
+ }
3064
+ }
3065
+ }
3066
+ if (iValue < value.length) {
3067
+ extra = value.substr(iValue);
3068
+ if (!/^\s+/.test(extra)) {
3069
+ throw 'Extra/unparsed characters found in date: ' + extra;
3070
+ }
3071
+ }
3072
+ if (year === -1) {
3073
+ year = new Date().getFullYear();
3074
+ }
3075
+ else if (year < 100) {
3076
+ year += new Date().getFullYear() - (new Date().getFullYear() % 100) + (year <= shortYearCutoff ? 0 : -100);
3077
+ }
3078
+ if (doy > -1) {
3079
+ month = 1;
3080
+ day = doy;
3081
+ do {
3082
+ dim = this.getDaysCountInMonth(year, month - 1);
3083
+ if (day <= dim) {
3084
+ break;
3085
+ }
3086
+ month++;
3087
+ day -= dim;
3088
+ } while (true);
3089
+ }
3090
+ if (this.view === 'year') {
3091
+ month = month === -1 ? 1 : month;
3092
+ day = day === -1 ? 1 : day;
3093
+ }
3094
+ date = this.daylightSavingAdjust(new Date(year, month - 1, day));
3095
+ if (date.getFullYear() !== year || date.getMonth() + 1 !== month || date.getDate() !== day) {
3096
+ throw 'Invalid date'; // E.g. 31/02/00
3097
+ }
3098
+ return date;
3099
+ }
3100
+ daylightSavingAdjust(date) {
3101
+ if (!date) {
3102
+ return null;
3103
+ }
3104
+ date.setHours(date.getHours() > 12 ? date.getHours() + 2 : 0);
3105
+ return date;
3106
+ }
3107
+ isValidDateForTimeConstraints(selectedDate) {
3108
+ if (this.keepInvalid) {
3109
+ return true; // If we are keeping invalid dates, we don't need to check for time constraints
3110
+ }
3111
+ return (!this.minDate || selectedDate >= this.minDate) && (!this.maxDate || selectedDate <= this.maxDate);
3112
+ }
3113
+ onTodayButtonClick(event) {
3114
+ const date = new Date();
3115
+ const dateMeta = {
3116
+ day: date.getDate(),
3117
+ month: date.getMonth(),
3118
+ year: date.getFullYear(),
3119
+ otherMonth: date.getMonth() !== this.currentMonth || date.getFullYear() !== this.currentYear,
3120
+ today: true,
3121
+ selectable: true
3122
+ };
3123
+ this.createMonths(date.getMonth(), date.getFullYear());
3124
+ this.onDateSelect(event, dateMeta);
3125
+ this.onTodayClick.emit(date);
3126
+ }
3127
+ onClearButtonClick(event) {
3128
+ this.updateModel(null);
3129
+ this.updateInputfield();
3130
+ this.hideOverlay();
3131
+ this.onClearClick.emit(event);
3132
+ }
3133
+ createResponsiveStyle() {
3134
+ if (this.numberOfMonths > 1 && this.responsiveOptions) {
3135
+ if (!this.responsiveStyleElement) {
3136
+ this.responsiveStyleElement = this.renderer.createElement('style');
3137
+ this.responsiveStyleElement.type = 'text/css';
3138
+ setAttribute(this.responsiveStyleElement, 'nonce', this.config?.csp()?.nonce);
3139
+ this.renderer.appendChild(this.document.body, this.responsiveStyleElement);
3140
+ }
3141
+ let innerHTML = '';
3142
+ if (this.responsiveOptions) {
3143
+ let responsiveOptions = [...this.responsiveOptions].filter((o) => !!(o.breakpoint && o.numMonths)).sort((o1, o2) => -1 * o1.breakpoint.localeCompare(o2.breakpoint, undefined, { numeric: true }));
3144
+ for (let i = 0; i < responsiveOptions.length; i++) {
3145
+ let { breakpoint, numMonths } = responsiveOptions[i];
3146
+ let styles = `
3147
+ .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${numMonths}) .p-datepicker-next {
3148
+ display: inline-flex !important;
3149
+ }
3150
+ `;
3151
+ for (let j = numMonths; j < this.numberOfMonths; j++) {
3152
+ styles += `
3153
+ .p-datepicker[${this.attributeSelector}] .p-datepicker-group:nth-child(${j + 1}) {
3154
+ display: none !important;
3155
+ }
3156
+ `;
3157
+ }
3158
+ innerHTML += `
3159
+ @media screen and (max-width: ${breakpoint}) {
3160
+ ${styles}
3161
+ }
3162
+ `;
3163
+ }
3164
+ }
3165
+ this.responsiveStyleElement.innerHTML = innerHTML;
3166
+ setAttribute(this.responsiveStyleElement, 'nonce', this.config?.csp()?.nonce);
3167
+ }
3168
+ }
3169
+ destroyResponsiveStyleElement() {
3170
+ if (this.responsiveStyleElement) {
3171
+ this.responsiveStyleElement.remove();
3172
+ this.responsiveStyleElement = null;
3173
+ }
3174
+ }
3175
+ bindDocumentClickListener() {
3176
+ if (!this.documentClickListener) {
3177
+ this.zone.runOutsideAngular(() => {
3178
+ const documentTarget = this.el ? this.el.nativeElement.ownerDocument : this.document;
3179
+ this.documentClickListener = this.renderer.listen(documentTarget, 'mousedown', (event) => {
3180
+ if (this.isOutsideClicked(event) && this.overlayVisible) {
3181
+ this.zone.run(() => {
3182
+ this.hideOverlay();
3183
+ this.onClickOutside.emit(event);
3184
+ this.cd.markForCheck();
3185
+ });
3186
+ }
3187
+ });
3188
+ });
3189
+ }
3190
+ }
3191
+ unbindDocumentClickListener() {
3192
+ if (this.documentClickListener) {
3193
+ this.documentClickListener();
3194
+ this.documentClickListener = null;
3195
+ }
3196
+ }
3197
+ bindDocumentResizeListener() {
3198
+ if (!this.documentResizeListener && !this.touchUI) {
3199
+ this.documentResizeListener = this.renderer.listen(this.window, 'resize', this.onWindowResize.bind(this));
3200
+ }
3201
+ }
3202
+ unbindDocumentResizeListener() {
3203
+ if (this.documentResizeListener) {
3204
+ this.documentResizeListener();
3205
+ this.documentResizeListener = null;
3206
+ }
3207
+ }
3208
+ bindScrollListener() {
3209
+ if (!this.scrollHandler) {
3210
+ this.scrollHandler = new ConnectedOverlayScrollHandler(this.el?.nativeElement, () => {
3211
+ if (this.overlayVisible) {
3212
+ this.hideOverlay();
3213
+ }
3214
+ });
3215
+ }
3216
+ this.scrollHandler.bindScrollListener();
3217
+ }
3218
+ unbindScrollListener() {
3219
+ if (this.scrollHandler) {
3220
+ this.scrollHandler.unbindScrollListener();
3221
+ }
3222
+ }
3223
+ isOutsideClicked(event) {
3224
+ return !(this.el.nativeElement.isSameNode(event.target) || this.isNavIconClicked(event) || this.el.nativeElement.contains(event.target) || (this.overlay && this.overlay.contains(event.target)));
3225
+ }
3226
+ isNavIconClicked(event) {
3227
+ return hasClass(event.target, 'p-datepicker-prev-button') || hasClass(event.target, 'p-datepicker-prev-icon') || hasClass(event.target, 'p-datepicker-next-button') || hasClass(event.target, 'p-datepicker-next-icon');
3228
+ }
3229
+ onWindowResize() {
3230
+ if (this.overlayVisible && !isTouchDevice()) {
3231
+ this.hideOverlay();
3232
+ }
3233
+ }
3234
+ onOverlayHide() {
3235
+ this.currentView = this.view;
3236
+ if (this.mask) {
3237
+ this.destroyMask();
3238
+ }
3239
+ this.unbindDocumentClickListener();
3240
+ this.unbindDocumentResizeListener();
3241
+ this.unbindScrollListener();
3242
+ this.overlay = null;
3243
+ }
3244
+ /**
3245
+ * @override
3246
+ *
3247
+ * @see {@link BaseEditableHolder.writeControlValue}
3248
+ * Writes the value to the control.
3249
+ */
3250
+ writeControlValue(value) {
3251
+ this.value = value;
3252
+ if (this.value && typeof this.value === 'string') {
3253
+ try {
3254
+ this.value = this.parseValueFromString(this.value);
3255
+ }
3256
+ catch {
3257
+ if (this.keepInvalid) {
3258
+ this.value = value;
3259
+ }
3260
+ }
3261
+ }
3262
+ this.updateInputfield();
3263
+ this.updateUI();
3264
+ this.cd.markForCheck();
3265
+ }
3266
+ onDestroy() {
3267
+ if (this.scrollHandler) {
3268
+ this.scrollHandler.destroy();
3269
+ this.scrollHandler = null;
3270
+ }
3271
+ if (this.translationSubscription) {
3272
+ this.translationSubscription.unsubscribe();
3273
+ }
3274
+ if (this.overlay && this.autoZIndex) {
3275
+ ZIndexUtils.clear(this.overlay);
3276
+ }
3277
+ this.destroyResponsiveStyleElement();
3278
+ this.clearTimePickerTimer();
3279
+ this.restoreOverlayAppend();
3280
+ this.onOverlayHide();
3281
+ }
3282
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: DatePicker, deps: [{ token: i0.NgZone }, { token: i1.OverlayService }], target: i0.ɵɵFactoryTarget.Component });
3283
+ static ɵcmp = i0.ɵɵngDeclareComponent({ minVersion: "17.0.0", version: "22.0.8", type: DatePicker, isStandalone: true, selector: "agl-datePicker, agl-datepicker, agl-date-picker", inputs: { iconDisplay: { classPropertyName: "iconDisplay", publicName: "iconDisplay", isSignal: false, isRequired: false, transformFunction: null }, styleClass: { classPropertyName: "styleClass", publicName: "styleClass", isSignal: false, isRequired: false, transformFunction: null }, inputStyle: { classPropertyName: "inputStyle", publicName: "inputStyle", isSignal: false, isRequired: false, transformFunction: null }, inputId: { classPropertyName: "inputId", publicName: "inputId", isSignal: false, isRequired: false, transformFunction: null }, inputStyleClass: { classPropertyName: "inputStyleClass", publicName: "inputStyleClass", isSignal: false, isRequired: false, transformFunction: null }, placeholder: { classPropertyName: "placeholder", publicName: "placeholder", isSignal: false, isRequired: false, transformFunction: null }, ariaLabelledBy: { classPropertyName: "ariaLabelledBy", publicName: "ariaLabelledBy", isSignal: false, isRequired: false, transformFunction: null }, ariaLabel: { classPropertyName: "ariaLabel", publicName: "ariaLabel", isSignal: false, isRequired: false, transformFunction: null }, iconAriaLabel: { classPropertyName: "iconAriaLabel", publicName: "iconAriaLabel", isSignal: false, isRequired: false, transformFunction: null }, dateFormat: { classPropertyName: "dateFormat", publicName: "dateFormat", isSignal: false, isRequired: false, transformFunction: null }, multipleSeparator: { classPropertyName: "multipleSeparator", publicName: "multipleSeparator", isSignal: false, isRequired: false, transformFunction: null }, rangeSeparator: { classPropertyName: "rangeSeparator", publicName: "rangeSeparator", isSignal: false, isRequired: false, transformFunction: null }, inline: { classPropertyName: "inline", publicName: "inline", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, showOtherMonths: { classPropertyName: "showOtherMonths", publicName: "showOtherMonths", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, selectOtherMonths: { classPropertyName: "selectOtherMonths", publicName: "selectOtherMonths", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, showIcon: { classPropertyName: "showIcon", publicName: "showIcon", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, icon: { classPropertyName: "icon", publicName: "icon", isSignal: false, isRequired: false, transformFunction: null }, readonlyInput: { classPropertyName: "readonlyInput", publicName: "readonlyInput", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, shortYearCutoff: { classPropertyName: "shortYearCutoff", publicName: "shortYearCutoff", isSignal: false, isRequired: false, transformFunction: null }, hourFormat: { classPropertyName: "hourFormat", publicName: "hourFormat", isSignal: false, isRequired: false, transformFunction: null }, timeOnly: { classPropertyName: "timeOnly", publicName: "timeOnly", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, stepHour: { classPropertyName: "stepHour", publicName: "stepHour", isSignal: false, isRequired: false, transformFunction: numberAttribute }, stepMinute: { classPropertyName: "stepMinute", publicName: "stepMinute", isSignal: false, isRequired: false, transformFunction: numberAttribute }, stepSecond: { classPropertyName: "stepSecond", publicName: "stepSecond", isSignal: false, isRequired: false, transformFunction: numberAttribute }, showSeconds: { classPropertyName: "showSeconds", publicName: "showSeconds", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, showOnFocus: { classPropertyName: "showOnFocus", publicName: "showOnFocus", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, showWeek: { classPropertyName: "showWeek", publicName: "showWeek", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, startWeekFromFirstDayOfYear: { classPropertyName: "startWeekFromFirstDayOfYear", publicName: "startWeekFromFirstDayOfYear", isSignal: false, isRequired: false, transformFunction: null }, showClear: { classPropertyName: "showClear", publicName: "showClear", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, dataType: { classPropertyName: "dataType", publicName: "dataType", isSignal: false, isRequired: false, transformFunction: null }, selectionMode: { classPropertyName: "selectionMode", publicName: "selectionMode", isSignal: false, isRequired: false, transformFunction: null }, maxDateCount: { classPropertyName: "maxDateCount", publicName: "maxDateCount", isSignal: false, isRequired: false, transformFunction: numberAttribute }, showButtonBar: { classPropertyName: "showButtonBar", publicName: "showButtonBar", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, todayButtonStyleClass: { classPropertyName: "todayButtonStyleClass", publicName: "todayButtonStyleClass", isSignal: false, isRequired: false, transformFunction: null }, clearButtonStyleClass: { classPropertyName: "clearButtonStyleClass", publicName: "clearButtonStyleClass", isSignal: false, isRequired: false, transformFunction: null }, autofocus: { classPropertyName: "autofocus", publicName: "autofocus", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, autoZIndex: { classPropertyName: "autoZIndex", publicName: "autoZIndex", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, baseZIndex: { classPropertyName: "baseZIndex", publicName: "baseZIndex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, panelStyleClass: { classPropertyName: "panelStyleClass", publicName: "panelStyleClass", isSignal: false, isRequired: false, transformFunction: null }, panelStyle: { classPropertyName: "panelStyle", publicName: "panelStyle", isSignal: false, isRequired: false, transformFunction: null }, keepInvalid: { classPropertyName: "keepInvalid", publicName: "keepInvalid", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, hideOnDateTimeSelect: { classPropertyName: "hideOnDateTimeSelect", publicName: "hideOnDateTimeSelect", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, touchUI: { classPropertyName: "touchUI", publicName: "touchUI", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, timeSeparator: { classPropertyName: "timeSeparator", publicName: "timeSeparator", isSignal: false, isRequired: false, transformFunction: null }, focusTrap: { classPropertyName: "focusTrap", publicName: "focusTrap", isSignal: false, isRequired: false, transformFunction: booleanAttribute }, showTransitionOptions: { classPropertyName: "showTransitionOptions", publicName: "showTransitionOptions", isSignal: false, isRequired: false, transformFunction: null }, hideTransitionOptions: { classPropertyName: "hideTransitionOptions", publicName: "hideTransitionOptions", isSignal: false, isRequired: false, transformFunction: null }, tabindex: { classPropertyName: "tabindex", publicName: "tabindex", isSignal: false, isRequired: false, transformFunction: numberAttribute }, minDate: { classPropertyName: "minDate", publicName: "minDate", isSignal: false, isRequired: false, transformFunction: null }, maxDate: { classPropertyName: "maxDate", publicName: "maxDate", isSignal: false, isRequired: false, transformFunction: null }, disabledDates: { classPropertyName: "disabledDates", publicName: "disabledDates", isSignal: false, isRequired: false, transformFunction: null }, disabledDays: { classPropertyName: "disabledDays", publicName: "disabledDays", isSignal: false, isRequired: false, transformFunction: null }, showTime: { classPropertyName: "showTime", publicName: "showTime", isSignal: false, isRequired: false, transformFunction: null }, responsiveOptions: { classPropertyName: "responsiveOptions", publicName: "responsiveOptions", isSignal: false, isRequired: false, transformFunction: null }, numberOfMonths: { classPropertyName: "numberOfMonths", publicName: "numberOfMonths", isSignal: false, isRequired: false, transformFunction: null }, firstDayOfWeek: { classPropertyName: "firstDayOfWeek", publicName: "firstDayOfWeek", isSignal: false, isRequired: false, transformFunction: null }, view: { classPropertyName: "view", publicName: "view", isSignal: false, isRequired: false, transformFunction: null }, defaultDate: { classPropertyName: "defaultDate", publicName: "defaultDate", isSignal: false, isRequired: false, transformFunction: null }, appendTo: { classPropertyName: "appendTo", publicName: "appendTo", isSignal: true, isRequired: false, transformFunction: null }, motionOptions: { classPropertyName: "motionOptions", publicName: "motionOptions", isSignal: true, isRequired: false, transformFunction: null } }, outputs: { onFocus: "onFocus", onBlur: "onBlur", onClose: "onClose", onSelect: "onSelect", onClear: "onClear", onInput: "onInput", onTodayClick: "onTodayClick", onClearClick: "onClearClick", onMonthChange: "onMonthChange", onYearChange: "onYearChange", onClickOutside: "onClickOutside", onShow: "onShow" }, host: { properties: { "class": "cn(cx('root'), styleClass)", "style": "sx('root')" } }, providers: [DATEPICKER_VALUE_ACCESSOR, DatePickerStyle, { provide: DATEPICKER_INSTANCE, useExisting: DatePicker }, { provide: PARENT_INSTANCE, useExisting: DatePicker }], queries: [{ propertyName: "dateTemplate", first: true, predicate: ["date"] }, { propertyName: "headerTemplate", first: true, predicate: ["header"] }, { propertyName: "footerTemplate", first: true, predicate: ["footer"] }, { propertyName: "disabledDateTemplate", first: true, predicate: ["disabledDate"] }, { propertyName: "decadeTemplate", first: true, predicate: ["decade"] }, { propertyName: "previousIconTemplate", first: true, predicate: ["previousicon"] }, { propertyName: "nextIconTemplate", first: true, predicate: ["nexticon"] }, { propertyName: "triggerIconTemplate", first: true, predicate: ["triggericon"] }, { propertyName: "clearIconTemplate", first: true, predicate: ["clearicon"] }, { propertyName: "decrementIconTemplate", first: true, predicate: ["decrementicon"] }, { propertyName: "incrementIconTemplate", first: true, predicate: ["incrementicon"] }, { propertyName: "inputIconTemplate", first: true, predicate: ["inputicon"] }, { propertyName: "buttonBarTemplate", first: true, predicate: ["buttonbar"] }, { propertyName: "templates", predicate: AglTemplate }], viewQueries: [{ propertyName: "inputfieldViewChild", first: true, predicate: ["inputfield"], descendants: true }, { propertyName: "content", first: true, predicate: ["contentWrapper"], descendants: true }], usesInheritance: true, hostDirectives: [{ directive: i2.Bind }], ngImport: i0, template: `
3284
+ <ng-template [ngIf]="!inline">
3285
+ <input
3286
+ #inputfield
3287
+ aglInputText
3288
+ data-p-maskable
3289
+ [aglSize]="size()"
3290
+ [attr.size]="inputSize()"
3291
+ type="text"
3292
+ role="combobox"
3293
+ [attr.id]="inputId"
3294
+ [attr.name]="name()"
3295
+ [attr.aria-required]="required()"
3296
+ aria-autocomplete="none"
3297
+ aria-haspopup="dialog"
3298
+ [attr.aria-expanded]="overlayVisible ?? false"
3299
+ [attr.aria-controls]="overlayVisible ? panelId : null"
3300
+ [attr.aria-labelledby]="ariaLabelledBy"
3301
+ [attr.aria-label]="ariaLabel"
3302
+ [value]="inputFieldValue"
3303
+ (focus)="onInputFocus($event)"
3304
+ (keydown)="onInputKeydown($event)"
3305
+ (click)="onInputClick()"
3306
+ (blur)="onInputBlur($event)"
3307
+ [attr.required]="required() ? '' : undefined"
3308
+ [attr.readonly]="readonlyInput ? '' : undefined"
3309
+ [attr.disabled]="$disabled() ? '' : undefined"
3310
+ (input)="onUserInput($event)"
3311
+ [ngStyle]="inputStyle"
3312
+ [class]="cn(cx('pcInputText'), inputStyleClass)"
3313
+ [attr.placeholder]="placeholder"
3314
+ [attr.tabindex]="tabindex"
3315
+ [attr.inputmode]="touchUI ? 'off' : null"
3316
+ autocomplete="off"
3317
+ [aglAutoFocus]="autofocus"
3318
+ [variant]="$variant()"
3319
+ [fluid]="hasFluid"
3320
+ [invalid]="invalid()"
3321
+ [pt]="ptm('pcInputText')"
3322
+ [unstyled]="unstyled()"
3323
+ />
3324
+ <ng-container *ngIf="showClear && !$disabled() && inputfieldViewChild?.nativeElement?.value">
3325
+ <svg data-p-icon="times" *ngIf="!clearIconTemplate && !_clearIconTemplate" [class]="cx('clearIcon')" [aglBind]="ptm('inputIcon')" (click)="clear()" />
3326
+ <span *ngIf="clearIconTemplate || _clearIconTemplate" [class]="cx('clearIcon')" [aglBind]="ptm('inputIcon')" (click)="clear()">
3327
+ <ng-template *ngTemplateOutlet="clearIconTemplate || _clearIconTemplate"></ng-template>
3328
+ </span>
3329
+ </ng-container>
3330
+ <button
3331
+ type="button"
3332
+ [attr.aria-label]="iconButtonAriaLabel"
3333
+ aria-haspopup="dialog"
3334
+ [attr.aria-expanded]="overlayVisible ?? false"
3335
+ [attr.aria-controls]="overlayVisible ? panelId : null"
3336
+ *ngIf="showIcon && iconDisplay === 'button'"
3337
+ (click)="onButtonClick($event, inputfield)"
3338
+ [class]="cx('dropdown')"
3339
+ [disabled]="$disabled()"
3340
+ tabindex="0"
3341
+ [aglBind]="ptm('dropdown')"
3342
+ >
3343
+ <span *ngIf="icon" [ngClass]="icon" [aglBind]="ptm('dropdownIcon')"></span>
3344
+ <ng-container *ngIf="!icon">
3345
+ <svg data-p-icon="calendar" *ngIf="!triggerIconTemplate && !_triggerIconTemplate" [aglBind]="ptm('dropdownIcon')" />
3346
+ <ng-template *ngTemplateOutlet="triggerIconTemplate || _triggerIconTemplate"></ng-template>
3347
+ </ng-container>
3348
+ </button>
3349
+ <ng-container *ngIf="iconDisplay === 'input' && showIcon">
3350
+ <span [class]="cx('inputIconContainer')" [aglBind]="ptm('inputIconContainer')" [attr.data-p]="inputIconDataP">
3351
+ <svg data-p-icon="calendar" (click)="onButtonClick($event)" *ngIf="!inputIconTemplate && !_inputIconTemplate" [class]="cx('inputIcon')" [aglBind]="ptm('inputIcon')" />
3352
+
3353
+ <ng-container *ngTemplateOutlet="inputIconTemplate || _inputIconTemplate; context: { clickCallBack: onButtonClick.bind(this) }"></ng-container>
3354
+ </span>
3355
+ </ng-container>
3356
+ </ng-template>
3357
+ <agl-motion [visible]="inline || overlayVisible" name="p-anchored-overlay" [appear]="!inline" [options]="computedMotionOptions()" (onBeforeEnter)="onOverlayBeforeEnter($event)" (onAfterLeave)="onOverlayAfterLeave($event)">
3358
+ <div
3359
+ #contentWrapper
3360
+ [attr.id]="panelId"
3361
+ [ngStyle]="panelStyle"
3362
+ [class]="cn(cx('panel'), panelStyleClass)"
3363
+ [attr.aria-label]="getTranslation('chooseDate')"
3364
+ [attr.role]="inline ? null : 'dialog'"
3365
+ [attr.aria-modal]="inline ? null : 'true'"
3366
+ (click)="onOverlayClick($event)"
3367
+ [aglBind]="ptm('panel')"
3368
+ >
3369
+ <ng-content select="agl-header"></ng-content>
3370
+ <ng-container *ngTemplateOutlet="headerTemplate || _headerTemplate"></ng-container>
3371
+ <ng-container *ngIf="!timeOnly">
3372
+ <div [class]="cx('calendarContainer')" [aglBind]="ptm('calendarContainer')">
3373
+ <div [class]="cx('calendar')" *ngFor="let month of months; let i = index" [aglBind]="ptm('calendar')">
3374
+ <div [class]="cx('header')" [aglBind]="ptm('header')">
3375
+ <agl-button
3376
+ rounded
3377
+ variant="text"
3378
+ severity="secondary"
3379
+ (keydown)="onContainerButtonKeydown($event)"
3380
+ [styleClass]="cx('pcPrevButton')"
3381
+ (onClick)="onPrevButtonClick($event)"
3382
+ [ngStyle]="{ visibility: i === 0 ? 'visible' : 'hidden' }"
3383
+ type="button"
3384
+ [ariaLabel]="prevIconAriaLabel"
3385
+ [pt]="ptm('pcPrevButton')"
3386
+ [attr.data-pc-group-section]="'navigator'"
3387
+ >
3388
+ <ng-template #icon>
3389
+ <svg data-p-icon="chevron-left" *ngIf="!previousIconTemplate && !_previousIconTemplate" />
3390
+ <span *ngIf="previousIconTemplate || _previousIconTemplate">
3391
+ <ng-template *ngTemplateOutlet="previousIconTemplate || _previousIconTemplate"></ng-template>
3392
+ </span>
3393
+ </ng-template>
3394
+ </agl-button>
3395
+ <div [class]="cx('title')" [aglBind]="ptm('title')">
3396
+ <button
3397
+ *ngIf="currentView === 'date'"
3398
+ type="button"
3399
+ (click)="switchToMonthView($event)"
3400
+ (keydown)="onContainerButtonKeydown($event)"
3401
+ [class]="cx('selectMonth')"
3402
+ [attr.disabled]="switchViewButtonDisabled() ? '' : undefined"
3403
+ [attr.aria-label]="this.getTranslation('chooseMonth')"
3404
+ aglRipple
3405
+ [aglBind]="ptm('selectMonth')"
3406
+ [attr.data-pc-group-section]="'navigator'"
3407
+ >
3408
+ {{ getMonthName(month.month) }}
3409
+ </button>
3410
+ <button
3411
+ *ngIf="currentView !== 'year'"
3412
+ type="button"
3413
+ (click)="switchToYearView($event)"
3414
+ (keydown)="onContainerButtonKeydown($event)"
3415
+ [class]="cx('selectYear')"
3416
+ [attr.disabled]="switchViewButtonDisabled() ? '' : undefined"
3417
+ [attr.aria-label]="getTranslation('chooseYear')"
3418
+ aglRipple
3419
+ [aglBind]="ptm('selectYear')"
3420
+ [attr.data-pc-group-section]="'navigator'"
3421
+ >
3422
+ {{ getYear(month) }}
3423
+ </button>
3424
+ <span [class]="cx('decade')" *ngIf="currentView === 'year'" [aglBind]="ptm('decade')">
3425
+ <ng-container *ngIf="!decadeTemplate && !_decadeTemplate">{{ yearPickerValues()[0] }} - {{ yearPickerValues()[yearPickerValues().length - 1] }}</ng-container>
3426
+ <ng-container *ngTemplateOutlet="decadeTemplate || _decadeTemplate; context: { $implicit: yearPickerValues }"></ng-container>
3427
+ </span>
3428
+ </div>
3429
+ <agl-button
3430
+ rounded
3431
+ variant="text"
3432
+ severity="secondary"
3433
+ (keydown)="onContainerButtonKeydown($event)"
3434
+ [styleClass]="cx('pcNextButton')"
3435
+ (onClick)="onNextButtonClick($event)"
3436
+ [ngStyle]="{ visibility: i === months.length - 1 ? 'visible' : 'hidden' }"
3437
+ [ariaLabel]="nextIconAriaLabel"
3438
+ [pt]="ptm('pcNextButton')"
3439
+ [attr.data-pc-group-section]="'navigator'"
3440
+ >
3441
+ <ng-template #icon>
3442
+ <svg data-p-icon="chevron-right" *ngIf="!nextIconTemplate && !_nextIconTemplate" />
3443
+ <ng-container *ngIf="nextIconTemplate || _nextIconTemplate">
3444
+ <ng-template *ngTemplateOutlet="nextIconTemplate || _nextIconTemplate"></ng-template>
3445
+ </ng-container>
3446
+ </ng-template>
3447
+ </agl-button>
3448
+ </div>
3449
+ <table [class]="cx('dayView')" role="grid" *ngIf="currentView === 'date'" [aglBind]="ptm('table')">
3450
+ <thead [aglBind]="ptm('tableHeader')">
3451
+ <tr [aglBind]="ptm('tableHeaderRow')">
3452
+ <th *ngIf="showWeek" [class]="cx('weekHeader')" [aglBind]="ptm('weekHeader')">
3453
+ <span [aglBind]="ptm('weekHeaderLabel')">{{ getTranslation('weekHeader') }}</span>
3454
+ </th>
3455
+ <th [class]="cx('weekDayCell')" scope="col" *ngFor="let weekDay of weekDays; let begin = first; let end = last" [aglBind]="ptm('weekDayCell')">
3456
+ <span [class]="cx('weekDay')" [aglBind]="ptm('weekDay')">{{ weekDay }}</span>
3457
+ </th>
3458
+ </tr>
3459
+ </thead>
3460
+ <tbody [aglBind]="ptm('tableBody')">
3461
+ <tr *ngFor="let week of month.dates; let j = index" [aglBind]="ptm('tableBodyRow')">
3462
+ <td *ngIf="showWeek" [class]="cx('weekNumber')" [aglBind]="ptm('weekNumber')">
3463
+ <span [class]="cx('weekLabelContainer')" [aglBind]="ptm('weekLabelContainer')">
3464
+ {{ month.weekNumbers[j] }}
3465
+ </span>
3466
+ </td>
3467
+ <td *ngFor="let date of week" [attr.aria-label]="date.day" [class]="cx('dayCell', { date })" [aglBind]="ptm('dayCell')">
3468
+ <ng-container *ngIf="date.otherMonth ? showOtherMonths : true">
3469
+ <span
3470
+ [ngClass]="dayClass(date)"
3471
+ (click)="onDateSelect($event, date)"
3472
+ draggable="false"
3473
+ [attr.data-date]="formatDateKey(formatDateMetaToDate(date))"
3474
+ (keydown)="onDateCellKeydown($event, date, i)"
3475
+ aglRipple
3476
+ [aglBind]="ptm('day')"
3477
+ >
3478
+ <ng-container *ngIf="!dateTemplate && !_dateTemplate && (date.selectable || (!disabledDateTemplate && !_disabledDateTemplate))">{{ date.day }}</ng-container>
3479
+ <ng-container *ngIf="date.selectable || (!disabledDateTemplate && !_disabledDateTemplate)">
3480
+ <ng-container *ngTemplateOutlet="dateTemplate || _dateTemplate; context: { $implicit: date }"></ng-container>
3481
+ </ng-container>
3482
+ <ng-container *ngIf="!date.selectable">
3483
+ <ng-container *ngTemplateOutlet="disabledDateTemplate || _disabledDateTemplate; context: { $implicit: date }"></ng-container>
3484
+ </ng-container>
3485
+ </span>
3486
+ <div *ngIf="isSelected(date)" class="p-hidden-accessible" aria-live="polite">
3487
+ {{ date.day }}
3488
+ </div>
3489
+ </ng-container>
3490
+ </td>
3491
+ </tr>
3492
+ </tbody>
3493
+ </table>
3494
+ </div>
3495
+ </div>
3496
+ <div [class]="cx('monthView')" *ngIf="currentView === 'month'" [aglBind]="ptm('monthView')">
3497
+ <span *ngFor="let m of monthPickerValues(); let i = index" (click)="onMonthSelect($event, i)" (keydown)="onMonthCellKeydown($event, i)" [class]="cx('month', { month: m, index: i })" aglRipple [aglBind]="ptm('month')">
3498
+ {{ m }}
3499
+ <div *ngIf="isMonthSelected(i)" class="p-hidden-accessible" aria-live="polite">
3500
+ {{ m }}
3501
+ </div>
3502
+ </span>
3503
+ </div>
3504
+ <div [class]="cx('yearView')" *ngIf="currentView === 'year'" [aglBind]="ptm('yearView')">
3505
+ <span *ngFor="let y of yearPickerValues()" (click)="onYearSelect($event, y)" (keydown)="onYearCellKeydown($event, y)" [class]="cx('year', { year: y })" aglRipple [aglBind]="ptm('year')">
3506
+ {{ y }}
3507
+ <div *ngIf="isYearSelected(y)" class="p-hidden-accessible" aria-live="polite">
3508
+ {{ y }}
3509
+ </div>
3510
+ </span>
3511
+ </div>
3512
+ </ng-container>
3513
+ <div [class]="cx('timePicker')" *ngIf="(showTime || timeOnly) && currentView === 'date'" [aglBind]="ptm('timePicker')">
3514
+ <div [class]="cx('hourPicker')" [aglBind]="ptm('hourPicker')">
3515
+ <agl-button
3516
+ rounded
3517
+ variant="text"
3518
+ severity="secondary"
3519
+ [styleClass]="cx('pcIncrementButton')"
3520
+ (keydown)="onContainerButtonKeydown($event)"
3521
+ (keydown.enter)="incrementHour($event)"
3522
+ (keydown.space)="incrementHour($event)"
3523
+ (mousedown)="onTimePickerElementMouseDown($event, 0, 1)"
3524
+ (mouseup)="onTimePickerElementMouseUp($event)"
3525
+ (keyup.enter)="onTimePickerElementMouseUp($event)"
3526
+ (keyup.space)="onTimePickerElementMouseUp($event)"
3527
+ (mouseleave)="onTimePickerElementMouseLeave()"
3528
+ [attr.aria-label]="getTranslation('nextHour')"
3529
+ [pt]="ptm('pcIncrementButton')"
3530
+ [attr.data-pc-group-section]="'timepickerbutton'"
3531
+ >
3532
+ <ng-template #icon>
3533
+ <svg data-p-icon="chevron-up" *ngIf="!incrementIconTemplate && !_incrementIconTemplate" [aglBind]="ptm('pcIncrementButton')['icon']" />
3534
+ <ng-template *ngTemplateOutlet="incrementIconTemplate || _incrementIconTemplate"></ng-template>
3535
+ </ng-template>
3536
+ </agl-button>
3537
+ <span [aglBind]="ptm('hour')"><ng-container *ngIf="currentHour < 10">0</ng-container>{{ currentHour }}</span>
3538
+ <agl-button
3539
+ rounded
3540
+ variant="text"
3541
+ severity="secondary"
3542
+ [styleClass]="cx('pcDecrementButton')"
3543
+ (keydown)="onContainerButtonKeydown($event)"
3544
+ (keydown.enter)="decrementHour($event)"
3545
+ (keydown.space)="decrementHour($event)"
3546
+ (mousedown)="onTimePickerElementMouseDown($event, 0, -1)"
3547
+ (mouseup)="onTimePickerElementMouseUp($event)"
3548
+ (keyup.enter)="onTimePickerElementMouseUp($event)"
3549
+ (keyup.space)="onTimePickerElementMouseUp($event)"
3550
+ (mouseleave)="onTimePickerElementMouseLeave()"
3551
+ [attr.aria-label]="getTranslation('prevHour')"
3552
+ [pt]="ptm('pcDecrementButton')"
3553
+ [attr.data-pc-group-section]="'timepickerbutton'"
3554
+ >
3555
+ <ng-template #icon>
3556
+ <svg data-p-icon="chevron-down" *ngIf="!decrementIconTemplate && !_decrementIconTemplate" [aglBind]="ptm('pcDecrementButton')['icon']" />
3557
+ <ng-template *ngTemplateOutlet="decrementIconTemplate || _decrementIconTemplate"></ng-template>
3558
+ </ng-template>
3559
+ </agl-button>
3560
+ </div>
3561
+ <div class="p-datepicker-separator" [aglBind]="ptm('separatorContainer')">
3562
+ <span [aglBind]="ptm('separator')">{{ timeSeparator }}</span>
3563
+ </div>
3564
+ <div [class]="cx('minutePicker')" [aglBind]="ptm('minutePicker')">
3565
+ <agl-button
3566
+ rounded
3567
+ variant="text"
3568
+ severity="secondary"
3569
+ [styleClass]="cx('pcIncrementButton')"
3570
+ (keydown)="onContainerButtonKeydown($event)"
3571
+ (keydown.enter)="incrementMinute($event)"
3572
+ (keydown.space)="incrementMinute($event)"
3573
+ (mousedown)="onTimePickerElementMouseDown($event, 1, 1)"
3574
+ (mouseup)="onTimePickerElementMouseUp($event)"
3575
+ (keyup.enter)="onTimePickerElementMouseUp($event)"
3576
+ (keyup.space)="onTimePickerElementMouseUp($event)"
3577
+ (mouseleave)="onTimePickerElementMouseLeave()"
3578
+ [attr.aria-label]="getTranslation('nextMinute')"
3579
+ [pt]="ptm('pcIncrementButton')"
3580
+ [attr.data-pc-group-section]="'timepickerbutton'"
3581
+ >
3582
+ <ng-template #icon>
3583
+ <svg data-p-icon="chevron-up" *ngIf="!incrementIconTemplate && !_incrementIconTemplate" [aglBind]="ptm('pcIncrementButton')['icon']" />
3584
+ <ng-template *ngTemplateOutlet="incrementIconTemplate || _incrementIconTemplate"></ng-template>
3585
+ </ng-template>
3586
+ </agl-button>
3587
+ <span [aglBind]="ptm('minute')"><ng-container *ngIf="currentMinute < 10">0</ng-container>{{ currentMinute }}</span>
3588
+ <agl-button
3589
+ rounded
3590
+ variant="text"
3591
+ severity="secondary"
3592
+ [styleClass]="cx('pcDecrementButton')"
3593
+ (keydown)="onContainerButtonKeydown($event)"
3594
+ (keydown.enter)="decrementMinute($event)"
3595
+ (keydown.space)="decrementMinute($event)"
3596
+ (mousedown)="onTimePickerElementMouseDown($event, 1, -1)"
3597
+ (mouseup)="onTimePickerElementMouseUp($event)"
3598
+ (keyup.enter)="onTimePickerElementMouseUp($event)"
3599
+ (keyup.space)="onTimePickerElementMouseUp($event)"
3600
+ (mouseleave)="onTimePickerElementMouseLeave()"
3601
+ [attr.aria-label]="getTranslation('prevMinute')"
3602
+ [pt]="ptm('pcDecrementButton')"
3603
+ [attr.data-pc-group-section]="'timepickerbutton'"
3604
+ >
3605
+ <ng-template #icon>
3606
+ <svg data-p-icon="chevron-down" *ngIf="!decrementIconTemplate && !_decrementIconTemplate" [aglBind]="ptm('pcDecrementButton')['icon']" />
3607
+ <ng-template *ngTemplateOutlet="decrementIconTemplate || _decrementIconTemplate"></ng-template>
3608
+ </ng-template>
3609
+ </agl-button>
3610
+ </div>
3611
+ <div [class]="cx('separator')" *ngIf="showSeconds" [aglBind]="ptm('separatorContainer')">
3612
+ <span [aglBind]="ptm('separator')">{{ timeSeparator }}</span>
3613
+ </div>
3614
+ <div [class]="cx('secondPicker')" *ngIf="showSeconds" [aglBind]="ptm('secondPicker')">
3615
+ <agl-button
3616
+ rounded
3617
+ variant="text"
3618
+ severity="secondary"
3619
+ [styleClass]="cx('pcIncrementButton')"
3620
+ (keydown)="onContainerButtonKeydown($event)"
3621
+ (keydown.enter)="incrementSecond($event)"
3622
+ (keydown.space)="incrementSecond($event)"
3623
+ (mousedown)="onTimePickerElementMouseDown($event, 2, 1)"
3624
+ (mouseup)="onTimePickerElementMouseUp($event)"
3625
+ (keyup.enter)="onTimePickerElementMouseUp($event)"
3626
+ (keyup.space)="onTimePickerElementMouseUp($event)"
3627
+ (mouseleave)="onTimePickerElementMouseLeave()"
3628
+ [attr.aria-label]="getTranslation('nextSecond')"
3629
+ [pt]="ptm('pcIncrementButton')"
3630
+ [attr.data-pc-group-section]="'timepickerbutton'"
3631
+ >
3632
+ <ng-template #icon>
3633
+ <svg data-p-icon="chevron-up" *ngIf="!incrementIconTemplate && !_incrementIconTemplate" [aglBind]="ptm('pcIncrementButton')['icon']" />
3634
+ <ng-template *ngTemplateOutlet="incrementIconTemplate || _incrementIconTemplate"></ng-template>
3635
+ </ng-template>
3636
+ </agl-button>
3637
+ <span [aglBind]="ptm('second')"><ng-container *ngIf="currentSecond < 10">0</ng-container>{{ currentSecond }}</span>
3638
+ <agl-button
3639
+ rounded
3640
+ variant="text"
3641
+ severity="secondary"
3642
+ [styleClass]="cx('pcDecrementButton')"
3643
+ (keydown)="onContainerButtonKeydown($event)"
3644
+ (keydown.enter)="decrementSecond($event)"
3645
+ (keydown.space)="decrementSecond($event)"
3646
+ (mousedown)="onTimePickerElementMouseDown($event, 2, -1)"
3647
+ (mouseup)="onTimePickerElementMouseUp($event)"
3648
+ (keyup.enter)="onTimePickerElementMouseUp($event)"
3649
+ (keyup.space)="onTimePickerElementMouseUp($event)"
3650
+ (mouseleave)="onTimePickerElementMouseLeave()"
3651
+ [attr.aria-label]="getTranslation('prevSecond')"
3652
+ [pt]="ptm('pcDecrementButton')"
3653
+ [attr.data-pc-group-section]="'timepickerbutton'"
3654
+ >
3655
+ <ng-template #icon>
3656
+ <svg data-p-icon="chevron-down" *ngIf="!decrementIconTemplate && !_decrementIconTemplate" [aglBind]="ptm('pcDecrementButton')['icon']" />
3657
+ <ng-template *ngTemplateOutlet="decrementIconTemplate || _decrementIconTemplate"></ng-template>
3658
+ </ng-template>
3659
+ </agl-button>
3660
+ </div>
3661
+ <div [class]="cx('separator')" *ngIf="hourFormat == '12'" [aglBind]="ptm('separatorContainer')">
3662
+ <span [aglBind]="ptm('separator')">{{ timeSeparator }}</span>
3663
+ </div>
3664
+ <div [class]="cx('ampmPicker')" *ngIf="hourFormat == '12'" [aglBind]="ptm('ampmPicker')">
3665
+ <agl-button
3666
+ text
3667
+ rounded
3668
+ severity="secondary"
3669
+ [styleClass]="cx('pcIncrementButton')"
3670
+ (keydown)="onContainerButtonKeydown($event)"
3671
+ (onClick)="toggleAMPM($event)"
3672
+ (keydown.enter)="toggleAMPM($event)"
3673
+ [attr.aria-label]="getTranslation('am')"
3674
+ [pt]="ptm('pcIncrementButton')"
3675
+ [attr.data-pc-group-section]="'timepickerbutton'"
3676
+ >
3677
+ <ng-template #icon>
3678
+ <svg data-p-icon="chevron-up" *ngIf="!incrementIconTemplate && !_incrementIconTemplate" [aglBind]="ptm('pcIncrementButton')['icon']" />
3679
+ <ng-template *ngTemplateOutlet="incrementIconTemplate || _incrementIconTemplate"></ng-template>
3680
+ </ng-template>
3681
+ </agl-button>
3682
+ <span [aglBind]="ptm('ampm')">{{ pm ? 'PM' : 'AM' }}</span>
3683
+ <agl-button
3684
+ text
3685
+ rounded
3686
+ severity="secondary"
3687
+ [styleClass]="cx('pcDecrementButton')"
3688
+ (keydown)="onContainerButtonKeydown($event)"
3689
+ (click)="toggleAMPM($event)"
3690
+ (keydown.enter)="toggleAMPM($event)"
3691
+ [attr.aria-label]="getTranslation('pm')"
3692
+ [pt]="ptm('pcDecrementButton')"
3693
+ [attr.data-pc-group-section]="'timepickerbutton'"
3694
+ >
3695
+ <ng-template #icon>
3696
+ <svg data-p-icon="chevron-down" *ngIf="!decrementIconTemplate && !_decrementIconTemplate" [aglBind]="ptm('pcDecrementButton')['icon']" />
3697
+ <ng-template *ngTemplateOutlet="decrementIconTemplate || _decrementIconTemplate"></ng-template>
3698
+ </ng-template>
3699
+ </agl-button>
3700
+ </div>
3701
+ </div>
3702
+ <div [class]="cx('buttonbar')" *ngIf="showButtonBar" [aglBind]="ptm('buttonbar')">
3703
+ @if (buttonBarTemplate || _buttonBarTemplate) {
3704
+ <ng-container *ngTemplateOutlet="buttonBarTemplate || _buttonBarTemplate; context: { todayCallback: onTodayButtonClick.bind(this), clearCallback: onClearButtonClick.bind(this) }"></ng-container>
3705
+ } @else {
3706
+ <agl-button
3707
+ size="small"
3708
+ [styleClass]="cx('pcTodayButton')"
3709
+ [label]="getTranslation('today')"
3710
+ (keydown)="onContainerButtonKeydown($event)"
3711
+ (onClick)="onTodayButtonClick($event)"
3712
+ [ngClass]="todayButtonStyleClass"
3713
+ severity="secondary"
3714
+ variant="text"
3715
+ size="small"
3716
+ [pt]="ptm('pcTodayButton')"
3717
+ [attr.data-pc-group-section]="'button'"
3718
+ />
3719
+ <agl-button
3720
+ size="small"
3721
+ [styleClass]="cx('pcClearButton')"
3722
+ [label]="getTranslation('clear')"
3723
+ (keydown)="onContainerButtonKeydown($event)"
3724
+ (onClick)="onClearButtonClick($event)"
3725
+ [ngClass]="clearButtonStyleClass"
3726
+ severity="secondary"
3727
+ variant="text"
3728
+ size="small"
3729
+ [pt]="ptm('pcClearButton')"
3730
+ [attr.data-pc-group-section]="'button'"
3731
+ />
3732
+ }
3733
+ </div>
3734
+ <ng-content select="agl-footer"></ng-content>
3735
+ <ng-container *ngTemplateOutlet="footerTemplate || _footerTemplate"></ng-container>
3736
+ </div>
3737
+ </agl-motion>
3738
+ `, isInline: true, dependencies: [{ kind: "ngmodule", type: CommonModule }, { kind: "directive", type: i3.NgClass, selector: "[ngClass]", inputs: ["class", "ngClass"] }, { kind: "directive", type: i3.NgForOf, selector: "[ngFor][ngForOf]", inputs: ["ngForOf", "ngForTrackBy", "ngForTemplate"] }, { kind: "directive", type: i3.NgIf, selector: "[ngIf]", inputs: ["ngIf", "ngIfThen", "ngIfElse"] }, { kind: "directive", type: i3.NgTemplateOutlet, selector: "[ngTemplateOutlet]", inputs: ["ngTemplateOutletContext", "ngTemplateOutlet", "ngTemplateOutletInjector"] }, { kind: "directive", type: i3.NgStyle, selector: "[ngStyle]", inputs: ["ngStyle"] }, { kind: "component", type: Button, selector: "agl-button", inputs: ["hostName", "type", "badge", "disabled", "raised", "rounded", "text", "plain", "outlined", "link", "tabindex", "size", "variant", "style", "styleClass", "badgeClass", "badgeSeverity", "ariaLabel", "autofocus", "iconPos", "icon", "label", "loading", "loadingIcon", "severity", "buttonProps", "fluid"], outputs: ["onClick", "onFocus", "onBlur"] }, { kind: "directive", type: Ripple, selector: "[aglRipple]" }, { kind: "component", type: ChevronLeftIcon, selector: "[data-p-icon=\"chevron-left\"]" }, { kind: "component", type: ChevronRightIcon, selector: "[data-p-icon=\"chevron-right\"]" }, { kind: "component", type: ChevronUpIcon, selector: "[data-p-icon=\"chevron-up\"]" }, { kind: "component", type: ChevronDownIcon, selector: "[data-p-icon=\"chevron-down\"]" }, { kind: "component", type: TimesIcon, selector: "[data-p-icon=\"times\"]" }, { kind: "component", type: CalendarIcon, selector: "[data-p-icon=\"calendar\"]" }, { kind: "directive", type: AutoFocus, selector: "[aglAutoFocus]", inputs: ["aglAutoFocus"] }, { kind: "directive", type: InputText, selector: "[aglInputText]", inputs: ["hostName", "ptInputText", "pInputTextPT", "pInputTextUnstyled", "aglSize", "variant", "fluid", "invalid"] }, { kind: "ngmodule", type: SharedModule }, { kind: "ngmodule", type: BindModule }, { kind: "directive", type: i2.Bind, selector: "[aglBind]", inputs: ["aglBind"] }, { kind: "ngmodule", type: MotionModule }, { kind: "component", type: i4.Motion, selector: "agl-motion", inputs: ["visible", "mountOnEnter", "unmountOnLeave", "name", "type", "safe", "disabled", "appear", "enter", "leave", "duration", "hideStrategy", "enterFromClass", "enterToClass", "enterActiveClass", "leaveFromClass", "leaveToClass", "leaveActiveClass", "options"], outputs: ["onBeforeEnter", "onEnter", "onAfterEnter", "onEnterCancelled", "onBeforeLeave", "onLeave", "onAfterLeave", "onLeaveCancelled"] }], changeDetection: i0.ChangeDetectionStrategy.OnPush, encapsulation: i0.ViewEncapsulation.None });
3739
+ }
3740
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: DatePicker, decorators: [{
3741
+ type: Component,
3742
+ args: [{
3743
+ selector: 'agl-datePicker, agl-datepicker, agl-date-picker',
3744
+ standalone: true,
3745
+ imports: [CommonModule, Button, Ripple, ChevronLeftIcon, ChevronRightIcon, ChevronUpIcon, ChevronDownIcon, TimesIcon, CalendarIcon, AutoFocus, InputText, SharedModule, BindModule, MotionModule],
3746
+ hostDirectives: [Bind],
3747
+ template: `
3748
+ <ng-template [ngIf]="!inline">
3749
+ <input
3750
+ #inputfield
3751
+ aglInputText
3752
+ data-p-maskable
3753
+ [aglSize]="size()"
3754
+ [attr.size]="inputSize()"
3755
+ type="text"
3756
+ role="combobox"
3757
+ [attr.id]="inputId"
3758
+ [attr.name]="name()"
3759
+ [attr.aria-required]="required()"
3760
+ aria-autocomplete="none"
3761
+ aria-haspopup="dialog"
3762
+ [attr.aria-expanded]="overlayVisible ?? false"
3763
+ [attr.aria-controls]="overlayVisible ? panelId : null"
3764
+ [attr.aria-labelledby]="ariaLabelledBy"
3765
+ [attr.aria-label]="ariaLabel"
3766
+ [value]="inputFieldValue"
3767
+ (focus)="onInputFocus($event)"
3768
+ (keydown)="onInputKeydown($event)"
3769
+ (click)="onInputClick()"
3770
+ (blur)="onInputBlur($event)"
3771
+ [attr.required]="required() ? '' : undefined"
3772
+ [attr.readonly]="readonlyInput ? '' : undefined"
3773
+ [attr.disabled]="$disabled() ? '' : undefined"
3774
+ (input)="onUserInput($event)"
3775
+ [ngStyle]="inputStyle"
3776
+ [class]="cn(cx('pcInputText'), inputStyleClass)"
3777
+ [attr.placeholder]="placeholder"
3778
+ [attr.tabindex]="tabindex"
3779
+ [attr.inputmode]="touchUI ? 'off' : null"
3780
+ autocomplete="off"
3781
+ [aglAutoFocus]="autofocus"
3782
+ [variant]="$variant()"
3783
+ [fluid]="hasFluid"
3784
+ [invalid]="invalid()"
3785
+ [pt]="ptm('pcInputText')"
3786
+ [unstyled]="unstyled()"
3787
+ />
3788
+ <ng-container *ngIf="showClear && !$disabled() && inputfieldViewChild?.nativeElement?.value">
3789
+ <svg data-p-icon="times" *ngIf="!clearIconTemplate && !_clearIconTemplate" [class]="cx('clearIcon')" [aglBind]="ptm('inputIcon')" (click)="clear()" />
3790
+ <span *ngIf="clearIconTemplate || _clearIconTemplate" [class]="cx('clearIcon')" [aglBind]="ptm('inputIcon')" (click)="clear()">
3791
+ <ng-template *ngTemplateOutlet="clearIconTemplate || _clearIconTemplate"></ng-template>
3792
+ </span>
3793
+ </ng-container>
3794
+ <button
3795
+ type="button"
3796
+ [attr.aria-label]="iconButtonAriaLabel"
3797
+ aria-haspopup="dialog"
3798
+ [attr.aria-expanded]="overlayVisible ?? false"
3799
+ [attr.aria-controls]="overlayVisible ? panelId : null"
3800
+ *ngIf="showIcon && iconDisplay === 'button'"
3801
+ (click)="onButtonClick($event, inputfield)"
3802
+ [class]="cx('dropdown')"
3803
+ [disabled]="$disabled()"
3804
+ tabindex="0"
3805
+ [aglBind]="ptm('dropdown')"
3806
+ >
3807
+ <span *ngIf="icon" [ngClass]="icon" [aglBind]="ptm('dropdownIcon')"></span>
3808
+ <ng-container *ngIf="!icon">
3809
+ <svg data-p-icon="calendar" *ngIf="!triggerIconTemplate && !_triggerIconTemplate" [aglBind]="ptm('dropdownIcon')" />
3810
+ <ng-template *ngTemplateOutlet="triggerIconTemplate || _triggerIconTemplate"></ng-template>
3811
+ </ng-container>
3812
+ </button>
3813
+ <ng-container *ngIf="iconDisplay === 'input' && showIcon">
3814
+ <span [class]="cx('inputIconContainer')" [aglBind]="ptm('inputIconContainer')" [attr.data-p]="inputIconDataP">
3815
+ <svg data-p-icon="calendar" (click)="onButtonClick($event)" *ngIf="!inputIconTemplate && !_inputIconTemplate" [class]="cx('inputIcon')" [aglBind]="ptm('inputIcon')" />
3816
+
3817
+ <ng-container *ngTemplateOutlet="inputIconTemplate || _inputIconTemplate; context: { clickCallBack: onButtonClick.bind(this) }"></ng-container>
3818
+ </span>
3819
+ </ng-container>
3820
+ </ng-template>
3821
+ <agl-motion [visible]="inline || overlayVisible" name="p-anchored-overlay" [appear]="!inline" [options]="computedMotionOptions()" (onBeforeEnter)="onOverlayBeforeEnter($event)" (onAfterLeave)="onOverlayAfterLeave($event)">
3822
+ <div
3823
+ #contentWrapper
3824
+ [attr.id]="panelId"
3825
+ [ngStyle]="panelStyle"
3826
+ [class]="cn(cx('panel'), panelStyleClass)"
3827
+ [attr.aria-label]="getTranslation('chooseDate')"
3828
+ [attr.role]="inline ? null : 'dialog'"
3829
+ [attr.aria-modal]="inline ? null : 'true'"
3830
+ (click)="onOverlayClick($event)"
3831
+ [aglBind]="ptm('panel')"
3832
+ >
3833
+ <ng-content select="agl-header"></ng-content>
3834
+ <ng-container *ngTemplateOutlet="headerTemplate || _headerTemplate"></ng-container>
3835
+ <ng-container *ngIf="!timeOnly">
3836
+ <div [class]="cx('calendarContainer')" [aglBind]="ptm('calendarContainer')">
3837
+ <div [class]="cx('calendar')" *ngFor="let month of months; let i = index" [aglBind]="ptm('calendar')">
3838
+ <div [class]="cx('header')" [aglBind]="ptm('header')">
3839
+ <agl-button
3840
+ rounded
3841
+ variant="text"
3842
+ severity="secondary"
3843
+ (keydown)="onContainerButtonKeydown($event)"
3844
+ [styleClass]="cx('pcPrevButton')"
3845
+ (onClick)="onPrevButtonClick($event)"
3846
+ [ngStyle]="{ visibility: i === 0 ? 'visible' : 'hidden' }"
3847
+ type="button"
3848
+ [ariaLabel]="prevIconAriaLabel"
3849
+ [pt]="ptm('pcPrevButton')"
3850
+ [attr.data-pc-group-section]="'navigator'"
3851
+ >
3852
+ <ng-template #icon>
3853
+ <svg data-p-icon="chevron-left" *ngIf="!previousIconTemplate && !_previousIconTemplate" />
3854
+ <span *ngIf="previousIconTemplate || _previousIconTemplate">
3855
+ <ng-template *ngTemplateOutlet="previousIconTemplate || _previousIconTemplate"></ng-template>
3856
+ </span>
3857
+ </ng-template>
3858
+ </agl-button>
3859
+ <div [class]="cx('title')" [aglBind]="ptm('title')">
3860
+ <button
3861
+ *ngIf="currentView === 'date'"
3862
+ type="button"
3863
+ (click)="switchToMonthView($event)"
3864
+ (keydown)="onContainerButtonKeydown($event)"
3865
+ [class]="cx('selectMonth')"
3866
+ [attr.disabled]="switchViewButtonDisabled() ? '' : undefined"
3867
+ [attr.aria-label]="this.getTranslation('chooseMonth')"
3868
+ aglRipple
3869
+ [aglBind]="ptm('selectMonth')"
3870
+ [attr.data-pc-group-section]="'navigator'"
3871
+ >
3872
+ {{ getMonthName(month.month) }}
3873
+ </button>
3874
+ <button
3875
+ *ngIf="currentView !== 'year'"
3876
+ type="button"
3877
+ (click)="switchToYearView($event)"
3878
+ (keydown)="onContainerButtonKeydown($event)"
3879
+ [class]="cx('selectYear')"
3880
+ [attr.disabled]="switchViewButtonDisabled() ? '' : undefined"
3881
+ [attr.aria-label]="getTranslation('chooseYear')"
3882
+ aglRipple
3883
+ [aglBind]="ptm('selectYear')"
3884
+ [attr.data-pc-group-section]="'navigator'"
3885
+ >
3886
+ {{ getYear(month) }}
3887
+ </button>
3888
+ <span [class]="cx('decade')" *ngIf="currentView === 'year'" [aglBind]="ptm('decade')">
3889
+ <ng-container *ngIf="!decadeTemplate && !_decadeTemplate">{{ yearPickerValues()[0] }} - {{ yearPickerValues()[yearPickerValues().length - 1] }}</ng-container>
3890
+ <ng-container *ngTemplateOutlet="decadeTemplate || _decadeTemplate; context: { $implicit: yearPickerValues }"></ng-container>
3891
+ </span>
3892
+ </div>
3893
+ <agl-button
3894
+ rounded
3895
+ variant="text"
3896
+ severity="secondary"
3897
+ (keydown)="onContainerButtonKeydown($event)"
3898
+ [styleClass]="cx('pcNextButton')"
3899
+ (onClick)="onNextButtonClick($event)"
3900
+ [ngStyle]="{ visibility: i === months.length - 1 ? 'visible' : 'hidden' }"
3901
+ [ariaLabel]="nextIconAriaLabel"
3902
+ [pt]="ptm('pcNextButton')"
3903
+ [attr.data-pc-group-section]="'navigator'"
3904
+ >
3905
+ <ng-template #icon>
3906
+ <svg data-p-icon="chevron-right" *ngIf="!nextIconTemplate && !_nextIconTemplate" />
3907
+ <ng-container *ngIf="nextIconTemplate || _nextIconTemplate">
3908
+ <ng-template *ngTemplateOutlet="nextIconTemplate || _nextIconTemplate"></ng-template>
3909
+ </ng-container>
3910
+ </ng-template>
3911
+ </agl-button>
3912
+ </div>
3913
+ <table [class]="cx('dayView')" role="grid" *ngIf="currentView === 'date'" [aglBind]="ptm('table')">
3914
+ <thead [aglBind]="ptm('tableHeader')">
3915
+ <tr [aglBind]="ptm('tableHeaderRow')">
3916
+ <th *ngIf="showWeek" [class]="cx('weekHeader')" [aglBind]="ptm('weekHeader')">
3917
+ <span [aglBind]="ptm('weekHeaderLabel')">{{ getTranslation('weekHeader') }}</span>
3918
+ </th>
3919
+ <th [class]="cx('weekDayCell')" scope="col" *ngFor="let weekDay of weekDays; let begin = first; let end = last" [aglBind]="ptm('weekDayCell')">
3920
+ <span [class]="cx('weekDay')" [aglBind]="ptm('weekDay')">{{ weekDay }}</span>
3921
+ </th>
3922
+ </tr>
3923
+ </thead>
3924
+ <tbody [aglBind]="ptm('tableBody')">
3925
+ <tr *ngFor="let week of month.dates; let j = index" [aglBind]="ptm('tableBodyRow')">
3926
+ <td *ngIf="showWeek" [class]="cx('weekNumber')" [aglBind]="ptm('weekNumber')">
3927
+ <span [class]="cx('weekLabelContainer')" [aglBind]="ptm('weekLabelContainer')">
3928
+ {{ month.weekNumbers[j] }}
3929
+ </span>
3930
+ </td>
3931
+ <td *ngFor="let date of week" [attr.aria-label]="date.day" [class]="cx('dayCell', { date })" [aglBind]="ptm('dayCell')">
3932
+ <ng-container *ngIf="date.otherMonth ? showOtherMonths : true">
3933
+ <span
3934
+ [ngClass]="dayClass(date)"
3935
+ (click)="onDateSelect($event, date)"
3936
+ draggable="false"
3937
+ [attr.data-date]="formatDateKey(formatDateMetaToDate(date))"
3938
+ (keydown)="onDateCellKeydown($event, date, i)"
3939
+ aglRipple
3940
+ [aglBind]="ptm('day')"
3941
+ >
3942
+ <ng-container *ngIf="!dateTemplate && !_dateTemplate && (date.selectable || (!disabledDateTemplate && !_disabledDateTemplate))">{{ date.day }}</ng-container>
3943
+ <ng-container *ngIf="date.selectable || (!disabledDateTemplate && !_disabledDateTemplate)">
3944
+ <ng-container *ngTemplateOutlet="dateTemplate || _dateTemplate; context: { $implicit: date }"></ng-container>
3945
+ </ng-container>
3946
+ <ng-container *ngIf="!date.selectable">
3947
+ <ng-container *ngTemplateOutlet="disabledDateTemplate || _disabledDateTemplate; context: { $implicit: date }"></ng-container>
3948
+ </ng-container>
3949
+ </span>
3950
+ <div *ngIf="isSelected(date)" class="p-hidden-accessible" aria-live="polite">
3951
+ {{ date.day }}
3952
+ </div>
3953
+ </ng-container>
3954
+ </td>
3955
+ </tr>
3956
+ </tbody>
3957
+ </table>
3958
+ </div>
3959
+ </div>
3960
+ <div [class]="cx('monthView')" *ngIf="currentView === 'month'" [aglBind]="ptm('monthView')">
3961
+ <span *ngFor="let m of monthPickerValues(); let i = index" (click)="onMonthSelect($event, i)" (keydown)="onMonthCellKeydown($event, i)" [class]="cx('month', { month: m, index: i })" aglRipple [aglBind]="ptm('month')">
3962
+ {{ m }}
3963
+ <div *ngIf="isMonthSelected(i)" class="p-hidden-accessible" aria-live="polite">
3964
+ {{ m }}
3965
+ </div>
3966
+ </span>
3967
+ </div>
3968
+ <div [class]="cx('yearView')" *ngIf="currentView === 'year'" [aglBind]="ptm('yearView')">
3969
+ <span *ngFor="let y of yearPickerValues()" (click)="onYearSelect($event, y)" (keydown)="onYearCellKeydown($event, y)" [class]="cx('year', { year: y })" aglRipple [aglBind]="ptm('year')">
3970
+ {{ y }}
3971
+ <div *ngIf="isYearSelected(y)" class="p-hidden-accessible" aria-live="polite">
3972
+ {{ y }}
3973
+ </div>
3974
+ </span>
3975
+ </div>
3976
+ </ng-container>
3977
+ <div [class]="cx('timePicker')" *ngIf="(showTime || timeOnly) && currentView === 'date'" [aglBind]="ptm('timePicker')">
3978
+ <div [class]="cx('hourPicker')" [aglBind]="ptm('hourPicker')">
3979
+ <agl-button
3980
+ rounded
3981
+ variant="text"
3982
+ severity="secondary"
3983
+ [styleClass]="cx('pcIncrementButton')"
3984
+ (keydown)="onContainerButtonKeydown($event)"
3985
+ (keydown.enter)="incrementHour($event)"
3986
+ (keydown.space)="incrementHour($event)"
3987
+ (mousedown)="onTimePickerElementMouseDown($event, 0, 1)"
3988
+ (mouseup)="onTimePickerElementMouseUp($event)"
3989
+ (keyup.enter)="onTimePickerElementMouseUp($event)"
3990
+ (keyup.space)="onTimePickerElementMouseUp($event)"
3991
+ (mouseleave)="onTimePickerElementMouseLeave()"
3992
+ [attr.aria-label]="getTranslation('nextHour')"
3993
+ [pt]="ptm('pcIncrementButton')"
3994
+ [attr.data-pc-group-section]="'timepickerbutton'"
3995
+ >
3996
+ <ng-template #icon>
3997
+ <svg data-p-icon="chevron-up" *ngIf="!incrementIconTemplate && !_incrementIconTemplate" [aglBind]="ptm('pcIncrementButton')['icon']" />
3998
+ <ng-template *ngTemplateOutlet="incrementIconTemplate || _incrementIconTemplate"></ng-template>
3999
+ </ng-template>
4000
+ </agl-button>
4001
+ <span [aglBind]="ptm('hour')"><ng-container *ngIf="currentHour < 10">0</ng-container>{{ currentHour }}</span>
4002
+ <agl-button
4003
+ rounded
4004
+ variant="text"
4005
+ severity="secondary"
4006
+ [styleClass]="cx('pcDecrementButton')"
4007
+ (keydown)="onContainerButtonKeydown($event)"
4008
+ (keydown.enter)="decrementHour($event)"
4009
+ (keydown.space)="decrementHour($event)"
4010
+ (mousedown)="onTimePickerElementMouseDown($event, 0, -1)"
4011
+ (mouseup)="onTimePickerElementMouseUp($event)"
4012
+ (keyup.enter)="onTimePickerElementMouseUp($event)"
4013
+ (keyup.space)="onTimePickerElementMouseUp($event)"
4014
+ (mouseleave)="onTimePickerElementMouseLeave()"
4015
+ [attr.aria-label]="getTranslation('prevHour')"
4016
+ [pt]="ptm('pcDecrementButton')"
4017
+ [attr.data-pc-group-section]="'timepickerbutton'"
4018
+ >
4019
+ <ng-template #icon>
4020
+ <svg data-p-icon="chevron-down" *ngIf="!decrementIconTemplate && !_decrementIconTemplate" [aglBind]="ptm('pcDecrementButton')['icon']" />
4021
+ <ng-template *ngTemplateOutlet="decrementIconTemplate || _decrementIconTemplate"></ng-template>
4022
+ </ng-template>
4023
+ </agl-button>
4024
+ </div>
4025
+ <div class="p-datepicker-separator" [aglBind]="ptm('separatorContainer')">
4026
+ <span [aglBind]="ptm('separator')">{{ timeSeparator }}</span>
4027
+ </div>
4028
+ <div [class]="cx('minutePicker')" [aglBind]="ptm('minutePicker')">
4029
+ <agl-button
4030
+ rounded
4031
+ variant="text"
4032
+ severity="secondary"
4033
+ [styleClass]="cx('pcIncrementButton')"
4034
+ (keydown)="onContainerButtonKeydown($event)"
4035
+ (keydown.enter)="incrementMinute($event)"
4036
+ (keydown.space)="incrementMinute($event)"
4037
+ (mousedown)="onTimePickerElementMouseDown($event, 1, 1)"
4038
+ (mouseup)="onTimePickerElementMouseUp($event)"
4039
+ (keyup.enter)="onTimePickerElementMouseUp($event)"
4040
+ (keyup.space)="onTimePickerElementMouseUp($event)"
4041
+ (mouseleave)="onTimePickerElementMouseLeave()"
4042
+ [attr.aria-label]="getTranslation('nextMinute')"
4043
+ [pt]="ptm('pcIncrementButton')"
4044
+ [attr.data-pc-group-section]="'timepickerbutton'"
4045
+ >
4046
+ <ng-template #icon>
4047
+ <svg data-p-icon="chevron-up" *ngIf="!incrementIconTemplate && !_incrementIconTemplate" [aglBind]="ptm('pcIncrementButton')['icon']" />
4048
+ <ng-template *ngTemplateOutlet="incrementIconTemplate || _incrementIconTemplate"></ng-template>
4049
+ </ng-template>
4050
+ </agl-button>
4051
+ <span [aglBind]="ptm('minute')"><ng-container *ngIf="currentMinute < 10">0</ng-container>{{ currentMinute }}</span>
4052
+ <agl-button
4053
+ rounded
4054
+ variant="text"
4055
+ severity="secondary"
4056
+ [styleClass]="cx('pcDecrementButton')"
4057
+ (keydown)="onContainerButtonKeydown($event)"
4058
+ (keydown.enter)="decrementMinute($event)"
4059
+ (keydown.space)="decrementMinute($event)"
4060
+ (mousedown)="onTimePickerElementMouseDown($event, 1, -1)"
4061
+ (mouseup)="onTimePickerElementMouseUp($event)"
4062
+ (keyup.enter)="onTimePickerElementMouseUp($event)"
4063
+ (keyup.space)="onTimePickerElementMouseUp($event)"
4064
+ (mouseleave)="onTimePickerElementMouseLeave()"
4065
+ [attr.aria-label]="getTranslation('prevMinute')"
4066
+ [pt]="ptm('pcDecrementButton')"
4067
+ [attr.data-pc-group-section]="'timepickerbutton'"
4068
+ >
4069
+ <ng-template #icon>
4070
+ <svg data-p-icon="chevron-down" *ngIf="!decrementIconTemplate && !_decrementIconTemplate" [aglBind]="ptm('pcDecrementButton')['icon']" />
4071
+ <ng-template *ngTemplateOutlet="decrementIconTemplate || _decrementIconTemplate"></ng-template>
4072
+ </ng-template>
4073
+ </agl-button>
4074
+ </div>
4075
+ <div [class]="cx('separator')" *ngIf="showSeconds" [aglBind]="ptm('separatorContainer')">
4076
+ <span [aglBind]="ptm('separator')">{{ timeSeparator }}</span>
4077
+ </div>
4078
+ <div [class]="cx('secondPicker')" *ngIf="showSeconds" [aglBind]="ptm('secondPicker')">
4079
+ <agl-button
4080
+ rounded
4081
+ variant="text"
4082
+ severity="secondary"
4083
+ [styleClass]="cx('pcIncrementButton')"
4084
+ (keydown)="onContainerButtonKeydown($event)"
4085
+ (keydown.enter)="incrementSecond($event)"
4086
+ (keydown.space)="incrementSecond($event)"
4087
+ (mousedown)="onTimePickerElementMouseDown($event, 2, 1)"
4088
+ (mouseup)="onTimePickerElementMouseUp($event)"
4089
+ (keyup.enter)="onTimePickerElementMouseUp($event)"
4090
+ (keyup.space)="onTimePickerElementMouseUp($event)"
4091
+ (mouseleave)="onTimePickerElementMouseLeave()"
4092
+ [attr.aria-label]="getTranslation('nextSecond')"
4093
+ [pt]="ptm('pcIncrementButton')"
4094
+ [attr.data-pc-group-section]="'timepickerbutton'"
4095
+ >
4096
+ <ng-template #icon>
4097
+ <svg data-p-icon="chevron-up" *ngIf="!incrementIconTemplate && !_incrementIconTemplate" [aglBind]="ptm('pcIncrementButton')['icon']" />
4098
+ <ng-template *ngTemplateOutlet="incrementIconTemplate || _incrementIconTemplate"></ng-template>
4099
+ </ng-template>
4100
+ </agl-button>
4101
+ <span [aglBind]="ptm('second')"><ng-container *ngIf="currentSecond < 10">0</ng-container>{{ currentSecond }}</span>
4102
+ <agl-button
4103
+ rounded
4104
+ variant="text"
4105
+ severity="secondary"
4106
+ [styleClass]="cx('pcDecrementButton')"
4107
+ (keydown)="onContainerButtonKeydown($event)"
4108
+ (keydown.enter)="decrementSecond($event)"
4109
+ (keydown.space)="decrementSecond($event)"
4110
+ (mousedown)="onTimePickerElementMouseDown($event, 2, -1)"
4111
+ (mouseup)="onTimePickerElementMouseUp($event)"
4112
+ (keyup.enter)="onTimePickerElementMouseUp($event)"
4113
+ (keyup.space)="onTimePickerElementMouseUp($event)"
4114
+ (mouseleave)="onTimePickerElementMouseLeave()"
4115
+ [attr.aria-label]="getTranslation('prevSecond')"
4116
+ [pt]="ptm('pcDecrementButton')"
4117
+ [attr.data-pc-group-section]="'timepickerbutton'"
4118
+ >
4119
+ <ng-template #icon>
4120
+ <svg data-p-icon="chevron-down" *ngIf="!decrementIconTemplate && !_decrementIconTemplate" [aglBind]="ptm('pcDecrementButton')['icon']" />
4121
+ <ng-template *ngTemplateOutlet="decrementIconTemplate || _decrementIconTemplate"></ng-template>
4122
+ </ng-template>
4123
+ </agl-button>
4124
+ </div>
4125
+ <div [class]="cx('separator')" *ngIf="hourFormat == '12'" [aglBind]="ptm('separatorContainer')">
4126
+ <span [aglBind]="ptm('separator')">{{ timeSeparator }}</span>
4127
+ </div>
4128
+ <div [class]="cx('ampmPicker')" *ngIf="hourFormat == '12'" [aglBind]="ptm('ampmPicker')">
4129
+ <agl-button
4130
+ text
4131
+ rounded
4132
+ severity="secondary"
4133
+ [styleClass]="cx('pcIncrementButton')"
4134
+ (keydown)="onContainerButtonKeydown($event)"
4135
+ (onClick)="toggleAMPM($event)"
4136
+ (keydown.enter)="toggleAMPM($event)"
4137
+ [attr.aria-label]="getTranslation('am')"
4138
+ [pt]="ptm('pcIncrementButton')"
4139
+ [attr.data-pc-group-section]="'timepickerbutton'"
4140
+ >
4141
+ <ng-template #icon>
4142
+ <svg data-p-icon="chevron-up" *ngIf="!incrementIconTemplate && !_incrementIconTemplate" [aglBind]="ptm('pcIncrementButton')['icon']" />
4143
+ <ng-template *ngTemplateOutlet="incrementIconTemplate || _incrementIconTemplate"></ng-template>
4144
+ </ng-template>
4145
+ </agl-button>
4146
+ <span [aglBind]="ptm('ampm')">{{ pm ? 'PM' : 'AM' }}</span>
4147
+ <agl-button
4148
+ text
4149
+ rounded
4150
+ severity="secondary"
4151
+ [styleClass]="cx('pcDecrementButton')"
4152
+ (keydown)="onContainerButtonKeydown($event)"
4153
+ (click)="toggleAMPM($event)"
4154
+ (keydown.enter)="toggleAMPM($event)"
4155
+ [attr.aria-label]="getTranslation('pm')"
4156
+ [pt]="ptm('pcDecrementButton')"
4157
+ [attr.data-pc-group-section]="'timepickerbutton'"
4158
+ >
4159
+ <ng-template #icon>
4160
+ <svg data-p-icon="chevron-down" *ngIf="!decrementIconTemplate && !_decrementIconTemplate" [aglBind]="ptm('pcDecrementButton')['icon']" />
4161
+ <ng-template *ngTemplateOutlet="decrementIconTemplate || _decrementIconTemplate"></ng-template>
4162
+ </ng-template>
4163
+ </agl-button>
4164
+ </div>
4165
+ </div>
4166
+ <div [class]="cx('buttonbar')" *ngIf="showButtonBar" [aglBind]="ptm('buttonbar')">
4167
+ @if (buttonBarTemplate || _buttonBarTemplate) {
4168
+ <ng-container *ngTemplateOutlet="buttonBarTemplate || _buttonBarTemplate; context: { todayCallback: onTodayButtonClick.bind(this), clearCallback: onClearButtonClick.bind(this) }"></ng-container>
4169
+ } @else {
4170
+ <agl-button
4171
+ size="small"
4172
+ [styleClass]="cx('pcTodayButton')"
4173
+ [label]="getTranslation('today')"
4174
+ (keydown)="onContainerButtonKeydown($event)"
4175
+ (onClick)="onTodayButtonClick($event)"
4176
+ [ngClass]="todayButtonStyleClass"
4177
+ severity="secondary"
4178
+ variant="text"
4179
+ size="small"
4180
+ [pt]="ptm('pcTodayButton')"
4181
+ [attr.data-pc-group-section]="'button'"
4182
+ />
4183
+ <agl-button
4184
+ size="small"
4185
+ [styleClass]="cx('pcClearButton')"
4186
+ [label]="getTranslation('clear')"
4187
+ (keydown)="onContainerButtonKeydown($event)"
4188
+ (onClick)="onClearButtonClick($event)"
4189
+ [ngClass]="clearButtonStyleClass"
4190
+ severity="secondary"
4191
+ variant="text"
4192
+ size="small"
4193
+ [pt]="ptm('pcClearButton')"
4194
+ [attr.data-pc-group-section]="'button'"
4195
+ />
4196
+ }
4197
+ </div>
4198
+ <ng-content select="agl-footer"></ng-content>
4199
+ <ng-container *ngTemplateOutlet="footerTemplate || _footerTemplate"></ng-container>
4200
+ </div>
4201
+ </agl-motion>
4202
+ `,
4203
+ providers: [DATEPICKER_VALUE_ACCESSOR, DatePickerStyle, { provide: DATEPICKER_INSTANCE, useExisting: DatePicker }, { provide: PARENT_INSTANCE, useExisting: DatePicker }],
4204
+ changeDetection: ChangeDetectionStrategy.OnPush,
4205
+ encapsulation: ViewEncapsulation.None,
4206
+ host: {
4207
+ '[class]': "cn(cx('root'), styleClass)",
4208
+ '[style]': "sx('root')"
4209
+ }
4210
+ }]
4211
+ }], ctorParameters: () => [{ type: i0.NgZone }, { type: i1.OverlayService }], propDecorators: { iconDisplay: [{
4212
+ type: Input
4213
+ }], styleClass: [{
4214
+ type: Input
4215
+ }], inputStyle: [{
4216
+ type: Input
4217
+ }], inputId: [{
4218
+ type: Input
4219
+ }], inputStyleClass: [{
4220
+ type: Input
4221
+ }], placeholder: [{
4222
+ type: Input
4223
+ }], ariaLabelledBy: [{
4224
+ type: Input
4225
+ }], ariaLabel: [{
4226
+ type: Input
4227
+ }], iconAriaLabel: [{
4228
+ type: Input
4229
+ }], dateFormat: [{
4230
+ type: Input
4231
+ }], multipleSeparator: [{
4232
+ type: Input
4233
+ }], rangeSeparator: [{
4234
+ type: Input
4235
+ }], inline: [{
4236
+ type: Input,
4237
+ args: [{ transform: booleanAttribute }]
4238
+ }], showOtherMonths: [{
4239
+ type: Input,
4240
+ args: [{ transform: booleanAttribute }]
4241
+ }], selectOtherMonths: [{
4242
+ type: Input,
4243
+ args: [{ transform: booleanAttribute }]
4244
+ }], showIcon: [{
4245
+ type: Input,
4246
+ args: [{ transform: booleanAttribute }]
4247
+ }], icon: [{
4248
+ type: Input
4249
+ }], readonlyInput: [{
4250
+ type: Input,
4251
+ args: [{ transform: booleanAttribute }]
4252
+ }], shortYearCutoff: [{
4253
+ type: Input
4254
+ }], hourFormat: [{
4255
+ type: Input
4256
+ }], timeOnly: [{
4257
+ type: Input,
4258
+ args: [{ transform: booleanAttribute }]
4259
+ }], stepHour: [{
4260
+ type: Input,
4261
+ args: [{ transform: numberAttribute }]
4262
+ }], stepMinute: [{
4263
+ type: Input,
4264
+ args: [{ transform: numberAttribute }]
4265
+ }], stepSecond: [{
4266
+ type: Input,
4267
+ args: [{ transform: numberAttribute }]
4268
+ }], showSeconds: [{
4269
+ type: Input,
4270
+ args: [{ transform: booleanAttribute }]
4271
+ }], showOnFocus: [{
4272
+ type: Input,
4273
+ args: [{ transform: booleanAttribute }]
4274
+ }], showWeek: [{
4275
+ type: Input,
4276
+ args: [{ transform: booleanAttribute }]
4277
+ }], startWeekFromFirstDayOfYear: [{
4278
+ type: Input
4279
+ }], showClear: [{
4280
+ type: Input,
4281
+ args: [{ transform: booleanAttribute }]
4282
+ }], dataType: [{
4283
+ type: Input
4284
+ }], selectionMode: [{
4285
+ type: Input
4286
+ }], maxDateCount: [{
4287
+ type: Input,
4288
+ args: [{ transform: numberAttribute }]
4289
+ }], showButtonBar: [{
4290
+ type: Input,
4291
+ args: [{ transform: booleanAttribute }]
4292
+ }], todayButtonStyleClass: [{
4293
+ type: Input
4294
+ }], clearButtonStyleClass: [{
4295
+ type: Input
4296
+ }], autofocus: [{
4297
+ type: Input,
4298
+ args: [{ transform: booleanAttribute }]
4299
+ }], autoZIndex: [{
4300
+ type: Input,
4301
+ args: [{ transform: booleanAttribute }]
4302
+ }], baseZIndex: [{
4303
+ type: Input,
4304
+ args: [{ transform: numberAttribute }]
4305
+ }], panelStyleClass: [{
4306
+ type: Input
4307
+ }], panelStyle: [{
4308
+ type: Input
4309
+ }], keepInvalid: [{
4310
+ type: Input,
4311
+ args: [{ transform: booleanAttribute }]
4312
+ }], hideOnDateTimeSelect: [{
4313
+ type: Input,
4314
+ args: [{ transform: booleanAttribute }]
4315
+ }], touchUI: [{
4316
+ type: Input,
4317
+ args: [{ transform: booleanAttribute }]
4318
+ }], timeSeparator: [{
4319
+ type: Input
4320
+ }], focusTrap: [{
4321
+ type: Input,
4322
+ args: [{ transform: booleanAttribute }]
4323
+ }], showTransitionOptions: [{
4324
+ type: Input
4325
+ }], hideTransitionOptions: [{
4326
+ type: Input
4327
+ }], tabindex: [{
4328
+ type: Input,
4329
+ args: [{ transform: numberAttribute }]
4330
+ }], minDate: [{
4331
+ type: Input
4332
+ }], maxDate: [{
4333
+ type: Input
4334
+ }], disabledDates: [{
4335
+ type: Input
4336
+ }], disabledDays: [{
4337
+ type: Input
4338
+ }], showTime: [{
4339
+ type: Input
4340
+ }], responsiveOptions: [{
4341
+ type: Input
4342
+ }], numberOfMonths: [{
4343
+ type: Input
4344
+ }], firstDayOfWeek: [{
4345
+ type: Input
4346
+ }], view: [{
4347
+ type: Input
4348
+ }], defaultDate: [{
4349
+ type: Input
4350
+ }], appendTo: [{ type: i0.Input, args: [{ isSignal: true, alias: "appendTo", required: false }] }], motionOptions: [{ type: i0.Input, args: [{ isSignal: true, alias: "motionOptions", required: false }] }], onFocus: [{
4351
+ type: Output
4352
+ }], onBlur: [{
4353
+ type: Output
4354
+ }], onClose: [{
4355
+ type: Output
4356
+ }], onSelect: [{
4357
+ type: Output
4358
+ }], onClear: [{
4359
+ type: Output
4360
+ }], onInput: [{
4361
+ type: Output
4362
+ }], onTodayClick: [{
4363
+ type: Output
4364
+ }], onClearClick: [{
4365
+ type: Output
4366
+ }], onMonthChange: [{
4367
+ type: Output
4368
+ }], onYearChange: [{
4369
+ type: Output
4370
+ }], onClickOutside: [{
4371
+ type: Output
4372
+ }], onShow: [{
4373
+ type: Output
4374
+ }], inputfieldViewChild: [{
4375
+ type: ViewChild,
4376
+ args: ['inputfield', { static: false }]
4377
+ }], content: [{
4378
+ type: ViewChild,
4379
+ args: ['contentWrapper', { static: false }]
4380
+ }], dateTemplate: [{
4381
+ type: ContentChild,
4382
+ args: ['date', { descendants: false }]
4383
+ }], headerTemplate: [{
4384
+ type: ContentChild,
4385
+ args: ['header', { descendants: false }]
4386
+ }], footerTemplate: [{
4387
+ type: ContentChild,
4388
+ args: ['footer', { descendants: false }]
4389
+ }], disabledDateTemplate: [{
4390
+ type: ContentChild,
4391
+ args: ['disabledDate', { descendants: false }]
4392
+ }], decadeTemplate: [{
4393
+ type: ContentChild,
4394
+ args: ['decade', { descendants: false }]
4395
+ }], previousIconTemplate: [{
4396
+ type: ContentChild,
4397
+ args: ['previousicon', { descendants: false }]
4398
+ }], nextIconTemplate: [{
4399
+ type: ContentChild,
4400
+ args: ['nexticon', { descendants: false }]
4401
+ }], triggerIconTemplate: [{
4402
+ type: ContentChild,
4403
+ args: ['triggericon', { descendants: false }]
4404
+ }], clearIconTemplate: [{
4405
+ type: ContentChild,
4406
+ args: ['clearicon', { descendants: false }]
4407
+ }], decrementIconTemplate: [{
4408
+ type: ContentChild,
4409
+ args: ['decrementicon', { descendants: false }]
4410
+ }], incrementIconTemplate: [{
4411
+ type: ContentChild,
4412
+ args: ['incrementicon', { descendants: false }]
4413
+ }], inputIconTemplate: [{
4414
+ type: ContentChild,
4415
+ args: ['inputicon', { descendants: false }]
4416
+ }], buttonBarTemplate: [{
4417
+ type: ContentChild,
4418
+ args: ['buttonbar', { descendants: false }]
4419
+ }], templates: [{
4420
+ type: ContentChildren,
4421
+ args: [AglTemplate]
4422
+ }] } });
4423
+ class DatePickerModule {
4424
+ static ɵfac = i0.ɵɵngDeclareFactory({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: DatePickerModule, deps: [], target: i0.ɵɵFactoryTarget.NgModule });
4425
+ static ɵmod = i0.ɵɵngDeclareNgModule({ minVersion: "14.0.0", version: "22.0.8", ngImport: i0, type: DatePickerModule, imports: [DatePicker, SharedModule], exports: [DatePicker, SharedModule] });
4426
+ static ɵinj = i0.ɵɵngDeclareInjector({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: DatePickerModule, imports: [DatePicker, SharedModule, SharedModule] });
4427
+ }
4428
+ i0.ɵɵngDeclareClassMetadata({ minVersion: "12.0.0", version: "22.0.8", ngImport: i0, type: DatePickerModule, decorators: [{
4429
+ type: NgModule,
4430
+ args: [{
4431
+ imports: [DatePicker, SharedModule],
4432
+ exports: [DatePicker, SharedModule]
4433
+ }]
4434
+ }] });
4435
+
4436
+ /**
4437
+ * Generated bundle index. Do not edit.
4438
+ */
4439
+
4440
+ export { DATEPICKER_VALUE_ACCESSOR, DatePicker, DatePickerClasses, DatePickerModule, DatePickerStyle };
4441
+ //# sourceMappingURL=anguless-angulux-datepicker.mjs.map