primeng 18.0.0-rc.2 → 18.0.1

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 (351) hide show
  1. package/LICENSE.md +1 -1
  2. package/accordion/accordion.d.ts +7 -7
  3. package/autocomplete/autocomplete.d.ts +26 -13
  4. package/badge/badge.d.ts +1 -3
  5. package/basecomponent/basecomponent.d.ts +2 -5
  6. package/blockui/blockui.d.ts +10 -5
  7. package/breadcrumb/breadcrumb.d.ts +9 -6
  8. package/button/button.d.ts +10 -4
  9. package/calendar/calendar.d.ts +29 -15
  10. package/card/card.d.ts +12 -5
  11. package/carousel/carousel.d.ts +10 -4
  12. package/cascadeselect/cascadeselect.d.ts +18 -8
  13. package/checkbox/checkbox.d.ts +8 -4
  14. package/chip/chip.d.ts +9 -7
  15. package/config/primeng.d.ts +12 -6
  16. package/config/provideprimeng.d.ts +1 -12
  17. package/config/themeprovider.d.ts +10 -4
  18. package/confirmdialog/confirmdialog.d.ts +15 -5
  19. package/confirmpopup/confirmpopup.d.ts +11 -5
  20. package/contextmenu/contextmenu.d.ts +10 -6
  21. package/datepicker/datepicker.d.ts +25 -11
  22. package/dialog/dialog.d.ts +15 -4
  23. package/divider/divider.d.ts +1 -1
  24. package/dock/dock.d.ts +7 -4
  25. package/drawer/drawer.d.ts +18 -10
  26. package/dropdown/dropdown.d.ts +4 -3
  27. package/dynamicdialog/dynamicdialog.d.ts +1 -0
  28. package/editor/editor.d.ts +7 -3
  29. package/esm2022/accordion/accordion.mjs +58 -43
  30. package/esm2022/autocomplete/autocomplete.mjs +227 -168
  31. package/esm2022/autocomplete/style/autocompletestyle.mjs +5 -4
  32. package/esm2022/badge/badge.mjs +39 -32
  33. package/esm2022/basecomponent/basecomponent.mjs +3 -26
  34. package/esm2022/blockui/blockui.mjs +38 -18
  35. package/esm2022/breadcrumb/breadcrumb.mjs +50 -32
  36. package/esm2022/button/button.mjs +55 -28
  37. package/esm2022/calendar/calendar.mjs +200 -137
  38. package/esm2022/card/card.mjs +96 -46
  39. package/esm2022/carousel/carousel.mjs +74 -42
  40. package/esm2022/cascadeselect/cascadeselect.mjs +100 -62
  41. package/esm2022/checkbox/checkbox.mjs +32 -14
  42. package/esm2022/chip/chip.mjs +117 -96
  43. package/esm2022/colorpicker/colorpicker.mjs +2 -2
  44. package/esm2022/config/primeng.mjs +14 -18
  45. package/esm2022/config/provideprimeng.mjs +11 -3
  46. package/esm2022/config/themeprovider.mjs +10 -16
  47. package/esm2022/confirmdialog/confirmdialog.mjs +105 -61
  48. package/esm2022/confirmpopup/confirmpopup.mjs +57 -29
  49. package/esm2022/contextmenu/contextmenu.mjs +52 -21
  50. package/esm2022/datepicker/datepicker.mjs +200 -159
  51. package/esm2022/dialog/dialog.mjs +113 -67
  52. package/esm2022/divider/divider.mjs +2 -4
  53. package/esm2022/dock/dock.mjs +31 -13
  54. package/esm2022/drawer/drawer.mjs +115 -73
  55. package/esm2022/dropdown/dropdown.mjs +13 -5
  56. package/esm2022/dynamicdialog/dialogservice.mjs +2 -2
  57. package/esm2022/dynamicdialog/dynamicdialog-config.mjs +13 -13
  58. package/esm2022/dynamicdialog/dynamicdialog.mjs +9 -5
  59. package/esm2022/editor/editor.mjs +27 -11
  60. package/esm2022/fieldset/fieldset.mjs +61 -33
  61. package/esm2022/fileupload/fileupload.mjs +139 -89
  62. package/esm2022/galleria/galleria.mjs +18 -9
  63. package/esm2022/image/image.mjs +114 -67
  64. package/esm2022/imagecompare/imagecompare.mjs +31 -11
  65. package/esm2022/inplace/inplace.mjs +49 -24
  66. package/esm2022/inputmask/inputmask.mjs +33 -17
  67. package/esm2022/inputmask/style/inputmaskstyle.mjs +2 -2
  68. package/esm2022/inputnumber/inputnumber.mjs +58 -50
  69. package/esm2022/inputotp/inputotp.mjs +33 -14
  70. package/esm2022/inputtext/inputtext.mjs +11 -10
  71. package/esm2022/listbox/listbox.mjs +137 -78
  72. package/esm2022/megamenu/megamenu.mjs +105 -59
  73. package/esm2022/menu/menu.mjs +27 -27
  74. package/esm2022/menubar/menubar.mjs +70 -35
  75. package/esm2022/message/message.mjs +50 -26
  76. package/esm2022/messages/messages.mjs +13 -4
  77. package/esm2022/metergroup/metergroup.mjs +63 -31
  78. package/esm2022/multiselect/multiselect.mjs +247 -156
  79. package/esm2022/multiselect/style/multiselectstyle.mjs +1 -4
  80. package/esm2022/orderlist/orderlist.mjs +125 -70
  81. package/esm2022/organizationchart/organizationchart.mjs +30 -14
  82. package/esm2022/overlay/overlay.mjs +27 -7
  83. package/esm2022/overlay/style/overlaystyle.mjs +2 -2
  84. package/esm2022/overlaypanel/overlaypanel.mjs +34 -11
  85. package/esm2022/paginator/paginator.mjs +92 -60
  86. package/esm2022/panel/panel.mjs +160 -100
  87. package/esm2022/panelmenu/panelmenu.mjs +55 -32
  88. package/esm2022/password/password.mjs +114 -52
  89. package/esm2022/picklist/picklist.mjs +397 -269
  90. package/esm2022/popover/popover.mjs +30 -13
  91. package/esm2022/progressbar/progressbar.mjs +27 -9
  92. package/esm2022/rating/rating.mjs +46 -22
  93. package/esm2022/ripple/ripple.mjs +5 -2
  94. package/esm2022/scroller/scroller.mjs +47 -37
  95. package/esm2022/scrollpanel/scrollpanel.mjs +28 -9
  96. package/esm2022/scrolltop/scrolltop.mjs +17 -10
  97. package/esm2022/select/select.mjs +202 -122
  98. package/esm2022/select/style/selectstyle.mjs +2 -5
  99. package/esm2022/selectbutton/selectbutton.mjs +26 -11
  100. package/esm2022/sidebar/sidebar.mjs +83 -61
  101. package/esm2022/speeddial/speeddial.mjs +54 -29
  102. package/esm2022/splitbutton/splitbutton.mjs +41 -18
  103. package/esm2022/splitter/splitter.mjs +29 -19
  104. package/esm2022/splitter/style/splitterstyle.mjs +5 -4
  105. package/esm2022/stepper/stepper.mjs +27 -13
  106. package/esm2022/table/table.mjs +6368 -6510
  107. package/esm2022/tabmenu/tabmenu.mjs +54 -27
  108. package/esm2022/tabs/tablist.mjs +28 -20
  109. package/esm2022/tabview/tabview.mjs +106 -54
  110. package/esm2022/tag/tag.mjs +68 -44
  111. package/esm2022/textarea/textarea.mjs +9 -9
  112. package/esm2022/tieredmenu/tieredmenu.mjs +45 -22
  113. package/esm2022/timeline/timeline.mjs +41 -17
  114. package/esm2022/toast/toast.mjs +31 -9
  115. package/esm2022/togglebutton/togglebutton.mjs +45 -30
  116. package/esm2022/toggleswitch/toggleswitch.mjs +28 -9
  117. package/esm2022/toolbar/toolbar.mjs +47 -21
  118. package/esm2022/tooltip/tooltip.mjs +36 -71
  119. package/esm2022/tree/style/treestyle.mjs +13 -3
  120. package/esm2022/tree/tree.mjs +193 -137
  121. package/esm2022/treeselect/style/treeselectstyle.mjs +1 -4
  122. package/esm2022/treeselect/treeselect.mjs +157 -90
  123. package/esm2022/treetable/treetable.mjs +31 -12
  124. package/esm2022/usestyle/usestyle.mjs +2 -2
  125. package/fesm2022/primeng-accordion.mjs +57 -42
  126. package/fesm2022/primeng-accordion.mjs.map +1 -1
  127. package/fesm2022/primeng-autocomplete.mjs +230 -170
  128. package/fesm2022/primeng-autocomplete.mjs.map +1 -1
  129. package/fesm2022/primeng-badge.mjs +38 -31
  130. package/fesm2022/primeng-badge.mjs.map +1 -1
  131. package/fesm2022/primeng-basecomponent.mjs +2 -25
  132. package/fesm2022/primeng-basecomponent.mjs.map +1 -1
  133. package/fesm2022/primeng-blockui.mjs +37 -17
  134. package/fesm2022/primeng-blockui.mjs.map +1 -1
  135. package/fesm2022/primeng-breadcrumb.mjs +49 -31
  136. package/fesm2022/primeng-breadcrumb.mjs.map +1 -1
  137. package/fesm2022/primeng-button.mjs +54 -27
  138. package/fesm2022/primeng-button.mjs.map +1 -1
  139. package/fesm2022/primeng-calendar.mjs +199 -136
  140. package/fesm2022/primeng-calendar.mjs.map +1 -1
  141. package/fesm2022/primeng-card.mjs +95 -45
  142. package/fesm2022/primeng-card.mjs.map +1 -1
  143. package/fesm2022/primeng-carousel.mjs +73 -41
  144. package/fesm2022/primeng-carousel.mjs.map +1 -1
  145. package/fesm2022/primeng-cascadeselect.mjs +99 -61
  146. package/fesm2022/primeng-cascadeselect.mjs.map +1 -1
  147. package/fesm2022/primeng-checkbox.mjs +31 -13
  148. package/fesm2022/primeng-checkbox.mjs.map +1 -1
  149. package/fesm2022/primeng-chip.mjs +116 -95
  150. package/fesm2022/primeng-chip.mjs.map +1 -1
  151. package/fesm2022/primeng-colorpicker.mjs +1 -1
  152. package/fesm2022/primeng-colorpicker.mjs.map +1 -1
  153. package/fesm2022/primeng-config.mjs +38 -39
  154. package/fesm2022/primeng-config.mjs.map +1 -1
  155. package/fesm2022/primeng-confirmdialog.mjs +104 -60
  156. package/fesm2022/primeng-confirmdialog.mjs.map +1 -1
  157. package/fesm2022/primeng-confirmpopup.mjs +56 -28
  158. package/fesm2022/primeng-confirmpopup.mjs.map +1 -1
  159. package/fesm2022/primeng-contextmenu.mjs +51 -20
  160. package/fesm2022/primeng-contextmenu.mjs.map +1 -1
  161. package/fesm2022/primeng-datepicker.mjs +199 -158
  162. package/fesm2022/primeng-datepicker.mjs.map +1 -1
  163. package/fesm2022/primeng-dialog.mjs +112 -66
  164. package/fesm2022/primeng-dialog.mjs.map +1 -1
  165. package/fesm2022/primeng-divider.mjs +1 -3
  166. package/fesm2022/primeng-divider.mjs.map +1 -1
  167. package/fesm2022/primeng-dock.mjs +30 -12
  168. package/fesm2022/primeng-dock.mjs.map +1 -1
  169. package/fesm2022/primeng-drawer.mjs +114 -72
  170. package/fesm2022/primeng-drawer.mjs.map +1 -1
  171. package/fesm2022/primeng-dropdown.mjs +12 -4
  172. package/fesm2022/primeng-dropdown.mjs.map +1 -1
  173. package/fesm2022/primeng-dynamicdialog.mjs +21 -17
  174. package/fesm2022/primeng-dynamicdialog.mjs.map +1 -1
  175. package/fesm2022/primeng-editor.mjs +26 -10
  176. package/fesm2022/primeng-editor.mjs.map +1 -1
  177. package/fesm2022/primeng-fieldset.mjs +60 -32
  178. package/fesm2022/primeng-fieldset.mjs.map +1 -1
  179. package/fesm2022/primeng-fileupload.mjs +138 -88
  180. package/fesm2022/primeng-fileupload.mjs.map +1 -1
  181. package/fesm2022/primeng-galleria.mjs +17 -8
  182. package/fesm2022/primeng-galleria.mjs.map +1 -1
  183. package/fesm2022/primeng-image.mjs +113 -66
  184. package/fesm2022/primeng-image.mjs.map +1 -1
  185. package/fesm2022/primeng-imagecompare.mjs +30 -10
  186. package/fesm2022/primeng-imagecompare.mjs.map +1 -1
  187. package/fesm2022/primeng-inplace.mjs +48 -23
  188. package/fesm2022/primeng-inplace.mjs.map +1 -1
  189. package/fesm2022/primeng-inputmask.mjs +33 -17
  190. package/fesm2022/primeng-inputmask.mjs.map +1 -1
  191. package/fesm2022/primeng-inputnumber.mjs +57 -49
  192. package/fesm2022/primeng-inputnumber.mjs.map +1 -1
  193. package/fesm2022/primeng-inputotp.mjs +32 -13
  194. package/fesm2022/primeng-inputotp.mjs.map +1 -1
  195. package/fesm2022/primeng-inputtext.mjs +10 -9
  196. package/fesm2022/primeng-inputtext.mjs.map +1 -1
  197. package/fesm2022/primeng-listbox.mjs +136 -77
  198. package/fesm2022/primeng-listbox.mjs.map +1 -1
  199. package/fesm2022/primeng-megamenu.mjs +104 -58
  200. package/fesm2022/primeng-megamenu.mjs.map +1 -1
  201. package/fesm2022/primeng-menu.mjs +26 -26
  202. package/fesm2022/primeng-menu.mjs.map +1 -1
  203. package/fesm2022/primeng-menubar.mjs +69 -34
  204. package/fesm2022/primeng-menubar.mjs.map +1 -1
  205. package/fesm2022/primeng-message.mjs +49 -25
  206. package/fesm2022/primeng-message.mjs.map +1 -1
  207. package/fesm2022/primeng-messages.mjs +12 -3
  208. package/fesm2022/primeng-messages.mjs.map +1 -1
  209. package/fesm2022/primeng-metergroup.mjs +62 -30
  210. package/fesm2022/primeng-metergroup.mjs.map +1 -1
  211. package/fesm2022/primeng-multiselect.mjs +246 -158
  212. package/fesm2022/primeng-multiselect.mjs.map +1 -1
  213. package/fesm2022/primeng-orderlist.mjs +124 -69
  214. package/fesm2022/primeng-orderlist.mjs.map +1 -1
  215. package/fesm2022/primeng-organizationchart.mjs +29 -13
  216. package/fesm2022/primeng-organizationchart.mjs.map +1 -1
  217. package/fesm2022/primeng-overlay.mjs +27 -7
  218. package/fesm2022/primeng-overlay.mjs.map +1 -1
  219. package/fesm2022/primeng-overlaypanel.mjs +33 -10
  220. package/fesm2022/primeng-overlaypanel.mjs.map +1 -1
  221. package/fesm2022/primeng-paginator.mjs +91 -59
  222. package/fesm2022/primeng-paginator.mjs.map +1 -1
  223. package/fesm2022/primeng-panel.mjs +159 -99
  224. package/fesm2022/primeng-panel.mjs.map +1 -1
  225. package/fesm2022/primeng-panelmenu.mjs +54 -31
  226. package/fesm2022/primeng-panelmenu.mjs.map +1 -1
  227. package/fesm2022/primeng-password.mjs +113 -51
  228. package/fesm2022/primeng-password.mjs.map +1 -1
  229. package/fesm2022/primeng-picklist.mjs +396 -268
  230. package/fesm2022/primeng-picklist.mjs.map +1 -1
  231. package/fesm2022/primeng-popover.mjs +29 -12
  232. package/fesm2022/primeng-popover.mjs.map +1 -1
  233. package/fesm2022/primeng-progressbar.mjs +26 -8
  234. package/fesm2022/primeng-progressbar.mjs.map +1 -1
  235. package/fesm2022/primeng-rating.mjs +45 -21
  236. package/fesm2022/primeng-rating.mjs.map +1 -1
  237. package/fesm2022/primeng-ripple.mjs +4 -1
  238. package/fesm2022/primeng-ripple.mjs.map +1 -1
  239. package/fesm2022/primeng-scroller.mjs +46 -36
  240. package/fesm2022/primeng-scroller.mjs.map +1 -1
  241. package/fesm2022/primeng-scrollpanel.mjs +27 -8
  242. package/fesm2022/primeng-scrollpanel.mjs.map +1 -1
  243. package/fesm2022/primeng-scrolltop.mjs +16 -9
  244. package/fesm2022/primeng-scrolltop.mjs.map +1 -1
  245. package/fesm2022/primeng-select.mjs +202 -125
  246. package/fesm2022/primeng-select.mjs.map +1 -1
  247. package/fesm2022/primeng-selectbutton.mjs +25 -10
  248. package/fesm2022/primeng-selectbutton.mjs.map +1 -1
  249. package/fesm2022/primeng-sidebar.mjs +82 -60
  250. package/fesm2022/primeng-sidebar.mjs.map +1 -1
  251. package/fesm2022/primeng-speeddial.mjs +53 -28
  252. package/fesm2022/primeng-speeddial.mjs.map +1 -1
  253. package/fesm2022/primeng-splitbutton.mjs +40 -17
  254. package/fesm2022/primeng-splitbutton.mjs.map +1 -1
  255. package/fesm2022/primeng-splitter.mjs +32 -21
  256. package/fesm2022/primeng-splitter.mjs.map +1 -1
  257. package/fesm2022/primeng-stepper.mjs +26 -12
  258. package/fesm2022/primeng-stepper.mjs.map +1 -1
  259. package/fesm2022/primeng-table.mjs +6370 -6512
  260. package/fesm2022/primeng-table.mjs.map +1 -1
  261. package/fesm2022/primeng-tabmenu.mjs +53 -26
  262. package/fesm2022/primeng-tabmenu.mjs.map +1 -1
  263. package/fesm2022/primeng-tabs.mjs +27 -19
  264. package/fesm2022/primeng-tabs.mjs.map +1 -1
  265. package/fesm2022/primeng-tabview.mjs +106 -54
  266. package/fesm2022/primeng-tabview.mjs.map +1 -1
  267. package/fesm2022/primeng-tag.mjs +67 -43
  268. package/fesm2022/primeng-tag.mjs.map +1 -1
  269. package/fesm2022/primeng-textarea.mjs +8 -8
  270. package/fesm2022/primeng-textarea.mjs.map +1 -1
  271. package/fesm2022/primeng-tieredmenu.mjs +44 -21
  272. package/fesm2022/primeng-tieredmenu.mjs.map +1 -1
  273. package/fesm2022/primeng-timeline.mjs +40 -16
  274. package/fesm2022/primeng-timeline.mjs.map +1 -1
  275. package/fesm2022/primeng-toast.mjs +30 -8
  276. package/fesm2022/primeng-toast.mjs.map +1 -1
  277. package/fesm2022/primeng-togglebutton.mjs +44 -29
  278. package/fesm2022/primeng-togglebutton.mjs.map +1 -1
  279. package/fesm2022/primeng-toggleswitch.mjs +27 -8
  280. package/fesm2022/primeng-toggleswitch.mjs.map +1 -1
  281. package/fesm2022/primeng-toolbar.mjs +46 -20
  282. package/fesm2022/primeng-toolbar.mjs.map +1 -1
  283. package/fesm2022/primeng-tooltip.mjs +36 -71
  284. package/fesm2022/primeng-tooltip.mjs.map +1 -1
  285. package/fesm2022/primeng-tree.mjs +204 -138
  286. package/fesm2022/primeng-tree.mjs.map +1 -1
  287. package/fesm2022/primeng-treeselect.mjs +156 -92
  288. package/fesm2022/primeng-treeselect.mjs.map +1 -1
  289. package/fesm2022/primeng-treetable.mjs +30 -11
  290. package/fesm2022/primeng-treetable.mjs.map +1 -1
  291. package/fesm2022/primeng-usestyle.mjs +1 -1
  292. package/fesm2022/primeng-usestyle.mjs.map +1 -1
  293. package/fieldset/fieldset.d.ts +12 -6
  294. package/fileupload/fileupload.d.ts +19 -8
  295. package/galleria/galleria.d.ts +3 -2
  296. package/image/image.d.ts +18 -7
  297. package/imagecompare/imagecompare.d.ts +7 -2
  298. package/inplace/inplace.d.ts +12 -6
  299. package/inputmask/inputmask.d.ts +8 -4
  300. package/inputnumber/inputnumber.d.ts +11 -6
  301. package/inputotp/inputotp.d.ts +7 -2
  302. package/inputtext/inputtext.d.ts +2 -2
  303. package/listbox/listbox.d.ts +17 -4
  304. package/megamenu/megamenu.d.ts +16 -7
  305. package/menu/menu.d.ts +6 -6
  306. package/menubar/menubar.d.ts +13 -6
  307. package/message/message.d.ts +10 -4
  308. package/messages/messages.d.ts +4 -3
  309. package/metergroup/metergroup.d.ts +11 -3
  310. package/multiselect/multiselect.d.ts +36 -17
  311. package/orderlist/orderlist.d.ts +23 -11
  312. package/organizationchart/organizationchart.d.ts +6 -4
  313. package/overlay/overlay.d.ts +6 -3
  314. package/overlaypanel/overlaypanel.d.ts +6 -3
  315. package/package.json +233 -233
  316. package/paginator/paginator.d.ts +15 -8
  317. package/panel/panel.d.ts +14 -5
  318. package/panelmenu/panelmenu.d.ts +8 -4
  319. package/password/password.d.ts +20 -8
  320. package/picklist/picklist.d.ts +23 -3
  321. package/popover/popover.d.ts +8 -5
  322. package/progressbar/progressbar.d.ts +7 -3
  323. package/rating/rating.d.ts +11 -5
  324. package/scroller/scroller.d.ts +9 -4
  325. package/scrollpanel/scrollpanel.d.ts +7 -3
  326. package/scrolltop/scrolltop.d.ts +7 -4
  327. package/select/select.d.ts +31 -13
  328. package/selectbutton/selectbutton.d.ts +7 -3
  329. package/sidebar/sidebar.d.ts +9 -2
  330. package/speeddial/speeddial.d.ts +9 -4
  331. package/splitbutton/splitbutton.d.ts +9 -5
  332. package/splitter/splitter.d.ts +6 -7
  333. package/splitter/style/splitterstyle.d.ts +0 -13
  334. package/stepper/stepper.d.ts +8 -3
  335. package/table/table.d.ts +928 -1030
  336. package/tabmenu/tabmenu.d.ts +12 -7
  337. package/tabs/tablist.d.ts +6 -2
  338. package/tabview/tabview.d.ts +16 -7
  339. package/tag/tag.d.ts +8 -9
  340. package/textarea/textarea.d.ts +2 -2
  341. package/tieredmenu/tieredmenu.d.ts +10 -6
  342. package/timeline/timeline.d.ts +7 -2
  343. package/toast/toast.d.ts +7 -3
  344. package/togglebutton/togglebutton.d.ts +8 -3
  345. package/toggleswitch/toggleswitch.d.ts +6 -2
  346. package/toolbar/toolbar.d.ts +9 -4
  347. package/tooltip/tooltip.d.ts +2 -1
  348. package/tree/style/treestyle.d.ts +1 -1
  349. package/tree/tree.d.ts +25 -10
  350. package/treeselect/treeselect.d.ts +26 -12
  351. package/treetable/treetable.d.ts +7 -5
@@ -1,11 +1,11 @@
1
1
  import * as i2 from '@angular/common';
2
2
  import { CommonModule } from '@angular/common';
3
3
  import * as i0 from '@angular/core';
4
- import { Injectable, forwardRef, EventEmitter, inject, signal, computed, effect, numberAttribute, booleanAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, ViewChild, ContentChild, NgModule } from '@angular/core';
4
+ import { Injectable, forwardRef, EventEmitter, inject, signal, computed, effect, numberAttribute, booleanAttribute, Component, ChangeDetectionStrategy, ViewEncapsulation, Input, Output, ViewChild, ContentChild, ContentChildren, NgModule } from '@angular/core';
5
5
  import { NG_VALUE_ACCESSOR } from '@angular/forms';
6
6
  import { resolveFieldData, isNotEmpty, uuid, findLastIndex, equals, focus, isEmpty, findSingle } from '@primeuix/utils';
7
7
  import * as i1 from 'primeng/api';
8
- import { TranslationKeys, SharedModule } from 'primeng/api';
8
+ import { TranslationKeys, PrimeTemplate, SharedModule } from 'primeng/api';
9
9
  import { AutoFocus } from 'primeng/autofocus';
10
10
  import { BaseComponent } from 'primeng/basecomponent';
11
11
  import { Chip } from 'primeng/chip';
@@ -86,9 +86,6 @@ const theme = ({ dt }) => `
86
86
  }
87
87
 
88
88
  .p-autocomplete-overlay {
89
- position: absolute;
90
- top: 0;
91
- left: 0;
92
89
  background: ${dt('autocomplete.overlay.background')};
93
90
  color: ${dt('autocomplete.overlay.color')};
94
91
  border: 1px solid ${dt('autocomplete.overlay.border.color')};
@@ -283,6 +280,10 @@ const theme = ({ dt }) => `
283
280
  color: ${dt('autocomplete.dropdown.color')};
284
281
  }
285
282
 
283
+ .p-autocomplete:has(.p-autocomplete-dropdown) .p-autocomplete-clear-icon {
284
+ right: calc(${dt('autocomplete.padding.x')} + ${dt('autocomplete.dropdown.width')});
285
+ }
286
+
286
287
  p-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input,
287
288
  p-autocomplete.ng-invalid.ng-dirty .p-autocomplete-input-multiple {
288
289
  border-color: ${dt('autocomplete.invalid.border.color')};
@@ -451,19 +452,19 @@ const _c25 = () => ({});
451
452
  const _c26 = (a0, a1) => ({ $implicit: a0, index: a1 });
452
453
  function AutoComplete_input_2_Template(rf, ctx) { if (rf & 1) {
453
454
  const _r2 = i0.ɵɵgetCurrentView();
454
- i0.ɵɵelementStart(0, "input", 18, 3);
455
+ i0.ɵɵelementStart(0, "input", 19, 3);
455
456
  i0.ɵɵlistener("input", function AutoComplete_input_2_Template_input_input_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onInput($event)); })("keydown", function AutoComplete_input_2_Template_input_keydown_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onKeyDown($event)); })("change", function AutoComplete_input_2_Template_input_change_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onInputChange($event)); })("focus", function AutoComplete_input_2_Template_input_focus_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onInputFocus($event)); })("blur", function AutoComplete_input_2_Template_input_blur_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onInputBlur($event)); })("paste", function AutoComplete_input_2_Template_input_paste_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onInputPaste($event)); })("keyup", function AutoComplete_input_2_Template_input_keyup_0_listener($event) { i0.ɵɵrestoreView(_r2); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onInputKeyUp($event)); });
456
457
  i0.ɵɵelementEnd();
457
458
  } if (rf & 2) {
458
459
  let tmp_26_0;
459
460
  const ctx_r2 = i0.ɵɵnextContext();
460
461
  i0.ɵɵclassMap(ctx_r2.inputStyleClass);
461
- i0.ɵɵproperty("pAutoFocus", ctx_r2.autofocus)("ngClass", "p-autocomplete-input")("ngStyle", ctx_r2.inputStyle)("type", ctx_r2.type)("variant", ctx_r2.variant)("autocomplete", ctx_r2.autocomplete)("required", ctx_r2.required)("name", ctx_r2.name)("size", ctx_r2.size)("tabindex", !ctx_r2.disabled ? ctx_r2.tabindex : -1)("readonly", ctx_r2.readonly)("disabled", ctx_r2.disabled)("fluid", ctx_r2.hasFluid());
462
+ i0.ɵɵproperty("pAutoFocus", ctx_r2.autofocus)("ngClass", "p-autocomplete-input")("ngStyle", ctx_r2.inputStyle)("type", ctx_r2.type)("variant", ctx_r2.variant)("autocomplete", ctx_r2.autocomplete)("required", ctx_r2.required)("name", ctx_r2.name)("pSize", ctx_r2.size)("tabindex", !ctx_r2.disabled ? ctx_r2.tabindex : -1)("readonly", ctx_r2.readonly)("disabled", ctx_r2.disabled)("fluid", ctx_r2.hasFluid());
462
463
  i0.ɵɵattribute("value", ctx_r2.inputValue())("id", ctx_r2.inputId)("placeholder", ctx_r2.placeholder)("maxlength", ctx_r2.maxlength)("aria-label", ctx_r2.ariaLabel)("aria-labelledby", ctx_r2.ariaLabelledBy)("aria-required", ctx_r2.required)("aria-expanded", (tmp_26_0 = ctx_r2.overlayVisible) !== null && tmp_26_0 !== undefined ? tmp_26_0 : false)("aria-controls", ctx_r2.overlayVisible ? ctx_r2.id + "_list" : null)("aria-activedescendant", ctx_r2.focused ? ctx_r2.focusedOptionId : undefined);
463
464
  } }
464
465
  function AutoComplete_ng_container_3_TimesIcon_1_Template(rf, ctx) { if (rf & 1) {
465
466
  const _r4 = i0.ɵɵgetCurrentView();
466
- i0.ɵɵelementStart(0, "TimesIcon", 21);
467
+ i0.ɵɵelementStart(0, "TimesIcon", 22);
467
468
  i0.ɵɵlistener("click", function AutoComplete_ng_container_3_TimesIcon_1_Template_TimesIcon_click_0_listener() { i0.ɵɵrestoreView(_r4); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.clear()); });
468
469
  i0.ɵɵelementEnd();
469
470
  } if (rf & 2) {
@@ -476,35 +477,35 @@ function AutoComplete_ng_container_3_span_2_1_Template(rf, ctx) { if (rf & 1) {
476
477
  } }
477
478
  function AutoComplete_ng_container_3_span_2_Template(rf, ctx) { if (rf & 1) {
478
479
  const _r5 = i0.ɵɵgetCurrentView();
479
- i0.ɵɵelementStart(0, "span", 22);
480
+ i0.ɵɵelementStart(0, "span", 23);
480
481
  i0.ɵɵlistener("click", function AutoComplete_ng_container_3_span_2_Template_span_click_0_listener() { i0.ɵɵrestoreView(_r5); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.clear()); });
481
- i0.ɵɵtemplate(1, AutoComplete_ng_container_3_span_2_1_Template, 1, 0, null, 23);
482
+ i0.ɵɵtemplate(1, AutoComplete_ng_container_3_span_2_1_Template, 1, 0, null, 24);
482
483
  i0.ɵɵelementEnd();
483
484
  } if (rf & 2) {
484
485
  const ctx_r2 = i0.ɵɵnextContext(2);
485
486
  i0.ɵɵattribute("aria-hidden", true);
486
487
  i0.ɵɵadvance();
487
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.clearicon);
488
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.clearIconTemplate || ctx_r2._clearIconTemplate);
488
489
  } }
489
490
  function AutoComplete_ng_container_3_Template(rf, ctx) { if (rf & 1) {
490
491
  i0.ɵɵelementContainerStart(0);
491
- i0.ɵɵtemplate(1, AutoComplete_ng_container_3_TimesIcon_1_Template, 1, 2, "TimesIcon", 19)(2, AutoComplete_ng_container_3_span_2_Template, 2, 2, "span", 20);
492
+ i0.ɵɵtemplate(1, AutoComplete_ng_container_3_TimesIcon_1_Template, 1, 2, "TimesIcon", 20)(2, AutoComplete_ng_container_3_span_2_Template, 2, 2, "span", 21);
492
493
  i0.ɵɵelementContainerEnd();
493
494
  } if (rf & 2) {
494
495
  const ctx_r2 = i0.ɵɵnextContext();
495
496
  i0.ɵɵadvance();
496
- i0.ɵɵproperty("ngIf", !ctx_r2.clearicon);
497
+ i0.ɵɵproperty("ngIf", !ctx_r2.clearIconTemplate && !ctx_r2._clearIconTemplate);
497
498
  i0.ɵɵadvance();
498
- i0.ɵɵproperty("ngIf", ctx_r2.clearicon);
499
+ i0.ɵɵproperty("ngIf", ctx_r2.clearIconTemplate || ctx_r2._clearIconTemplate);
499
500
  } }
500
501
  function AutoComplete_ul_4_li_2_ng_container_2_Template(rf, ctx) { if (rf & 1) {
501
502
  i0.ɵɵelementContainer(0);
502
503
  } }
503
504
  function AutoComplete_ul_4_li_2_p_chip_3_ng_container_1_ng_template_1_Template(rf, ctx) { if (rf & 1) {
504
505
  const _r7 = i0.ɵɵgetCurrentView();
505
- i0.ɵɵelementStart(0, "span", 32);
506
+ i0.ɵɵelementStart(0, "span", 33);
506
507
  i0.ɵɵlistener("click", function AutoComplete_ul_4_li_2_p_chip_3_ng_container_1_ng_template_1_Template_span_click_0_listener($event) { i0.ɵɵrestoreView(_r7); const i_r8 = i0.ɵɵnextContext(3).index; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(!ctx_r2.readonly ? ctx_r2.removeOption($event, i_r8) : ""); });
507
- i0.ɵɵelement(1, "TimesCircleIcon", 33);
508
+ i0.ɵɵelement(1, "TimesCircleIcon", 34);
508
509
  i0.ɵɵelementEnd();
509
510
  } if (rf & 2) {
510
511
  i0.ɵɵadvance();
@@ -517,15 +518,15 @@ function AutoComplete_ul_4_li_2_p_chip_3_ng_container_1_Template(rf, ctx) { if (
517
518
  i0.ɵɵelementContainerEnd();
518
519
  } }
519
520
  function AutoComplete_ul_4_li_2_p_chip_3_Template(rf, ctx) { if (rf & 1) {
520
- i0.ɵɵelementStart(0, "p-chip", 31);
521
- i0.ɵɵtemplate(1, AutoComplete_ul_4_li_2_p_chip_3_ng_container_1_Template, 3, 0, "ng-container", 14);
521
+ i0.ɵɵelementStart(0, "p-chip", 32);
522
+ i0.ɵɵtemplate(1, AutoComplete_ul_4_li_2_p_chip_3_ng_container_1_Template, 3, 0, "ng-container", 15);
522
523
  i0.ɵɵelementEnd();
523
524
  } if (rf & 2) {
524
525
  const option_r9 = i0.ɵɵnextContext().$implicit;
525
526
  const ctx_r2 = i0.ɵɵnextContext(2);
526
527
  i0.ɵɵproperty("label", ctx_r2.getOptionLabel(option_r9))("removable", true);
527
528
  i0.ɵɵadvance();
528
- i0.ɵɵproperty("ngIf", !ctx_r2.removeicon);
529
+ i0.ɵɵproperty("ngIf", !ctx_r2.removeIconTemplate && !ctx_r2._removeIconTemplate);
529
530
  } }
530
531
  function AutoComplete_ul_4_li_2_span_4_1_ng_template_0_Template(rf, ctx) { }
531
532
  function AutoComplete_ul_4_li_2_span_4_1_Template(rf, ctx) { if (rf & 1) {
@@ -533,17 +534,17 @@ function AutoComplete_ul_4_li_2_span_4_1_Template(rf, ctx) { if (rf & 1) {
533
534
  } }
534
535
  function AutoComplete_ul_4_li_2_span_4_Template(rf, ctx) { if (rf & 1) {
535
536
  i0.ɵɵelementStart(0, "span");
536
- i0.ɵɵtemplate(1, AutoComplete_ul_4_li_2_span_4_1_Template, 1, 0, null, 29);
537
+ i0.ɵɵtemplate(1, AutoComplete_ul_4_li_2_span_4_1_Template, 1, 0, null, 30);
537
538
  i0.ɵɵelementEnd();
538
539
  } if (rf & 2) {
539
540
  const ctx_r2 = i0.ɵɵnextContext(3);
540
541
  i0.ɵɵattribute("aria-hidden", true);
541
542
  i0.ɵɵadvance();
542
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.removeicon)("ngTemplateOutletContext", i0.ɵɵpureFunction0(3, _c21));
543
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.removeIconTemplate || ctx_r2._removeIconTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction0(3, _c21));
543
544
  } }
544
545
  function AutoComplete_ul_4_li_2_Template(rf, ctx) { if (rf & 1) {
545
- i0.ɵɵelementStart(0, "li", 28, 5);
546
- i0.ɵɵtemplate(2, AutoComplete_ul_4_li_2_ng_container_2_Template, 1, 0, "ng-container", 29)(3, AutoComplete_ul_4_li_2_p_chip_3_Template, 2, 3, "p-chip", 30)(4, AutoComplete_ul_4_li_2_span_4_Template, 2, 4, "span", 14);
546
+ i0.ɵɵelementStart(0, "li", 29, 5);
547
+ i0.ɵɵtemplate(2, AutoComplete_ul_4_li_2_ng_container_2_Template, 1, 0, "ng-container", 30)(3, AutoComplete_ul_4_li_2_p_chip_3_Template, 2, 3, "p-chip", 31)(4, AutoComplete_ul_4_li_2_span_4_Template, 2, 4, "span", 15);
547
548
  i0.ɵɵelementEnd();
548
549
  } if (rf & 2) {
549
550
  const option_r9 = ctx.$implicit;
@@ -552,18 +553,18 @@ function AutoComplete_ul_4_li_2_Template(rf, ctx) { if (rf & 1) {
552
553
  i0.ɵɵproperty("ngClass", i0.ɵɵpureFunction1(10, _c19, ctx_r2.focusedMultipleOptionIndex() === i_r8));
553
554
  i0.ɵɵattribute("id", ctx_r2.id + "_multiple_option_" + i_r8)("aria-label", ctx_r2.getOptionLabel(option_r9))("aria-setsize", ctx_r2.modelValue().length)("aria-posinset", i_r8 + 1)("aria-selected", true);
554
555
  i0.ɵɵadvance(2);
555
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.selecteditem)("ngTemplateOutletContext", i0.ɵɵpureFunction1(12, _c20, option_r9));
556
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.selectedItemTemplate || ctx_r2._selectedItemTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(12, _c20, option_r9));
556
557
  i0.ɵɵadvance();
557
- i0.ɵɵproperty("ngIf", !ctx_r2.selecteditem);
558
+ i0.ɵɵproperty("ngIf", !ctx_r2.selectedItemTemplate && !ctx_r2._selectedItemTemplate);
558
559
  i0.ɵɵadvance();
559
- i0.ɵɵproperty("ngIf", ctx_r2.removeicon);
560
+ i0.ɵɵproperty("ngIf", ctx_r2.removeIconTemplate || ctx_r2._removeIconTemplate);
560
561
  } }
561
562
  function AutoComplete_ul_4_Template(rf, ctx) { if (rf & 1) {
562
563
  const _r6 = i0.ɵɵgetCurrentView();
563
- i0.ɵɵelementStart(0, "ul", 24, 4);
564
+ i0.ɵɵelementStart(0, "ul", 25, 4);
564
565
  i0.ɵɵlistener("focus", function AutoComplete_ul_4_Template_ul_focus_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onMultipleContainerFocus($event)); })("blur", function AutoComplete_ul_4_Template_ul_blur_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onMultipleContainerBlur($event)); })("keydown", function AutoComplete_ul_4_Template_ul_keydown_0_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onMultipleContainerKeyDown($event)); });
565
- i0.ɵɵtemplate(2, AutoComplete_ul_4_li_2_Template, 5, 14, "li", 25);
566
- i0.ɵɵelementStart(3, "li", 26)(4, "input", 27, 3);
566
+ i0.ɵɵtemplate(2, AutoComplete_ul_4_li_2_Template, 5, 14, "li", 26);
567
+ i0.ɵɵelementStart(3, "li", 27)(4, "input", 28, 3);
567
568
  i0.ɵɵlistener("input", function AutoComplete_ul_4_Template_input_input_4_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onInput($event)); })("keydown", function AutoComplete_ul_4_Template_input_keydown_4_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onKeyDown($event)); })("change", function AutoComplete_ul_4_Template_input_change_4_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onInputChange($event)); })("focus", function AutoComplete_ul_4_Template_input_focus_4_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onInputFocus($event)); })("blur", function AutoComplete_ul_4_Template_input_blur_4_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onInputBlur($event)); })("paste", function AutoComplete_ul_4_Template_input_paste_4_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onInputPaste($event)); })("keyup", function AutoComplete_ul_4_Template_input_keyup_4_listener($event) { i0.ɵɵrestoreView(_r6); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.onInputKeyUp($event)); });
568
569
  i0.ɵɵelementEnd()()();
569
570
  } if (rf & 2) {
@@ -579,7 +580,7 @@ function AutoComplete_ul_4_Template(rf, ctx) { if (rf & 1) {
579
580
  i0.ɵɵattribute("type", ctx_r2.type)("id", ctx_r2.inputId)("name", ctx_r2.name)("placeholder", !ctx_r2.filled ? ctx_r2.placeholder : null)("maxlength", ctx_r2.maxlength)("aria-label", ctx_r2.ariaLabel)("aria-labelledby", ctx_r2.ariaLabelledBy)("aria-required", ctx_r2.required)("aria-expanded", (tmp_28_0 = ctx_r2.overlayVisible) !== null && tmp_28_0 !== undefined ? tmp_28_0 : false)("aria-controls", ctx_r2.overlayVisible ? ctx_r2.id + "_list" : null)("aria-activedescendant", ctx_r2.focused ? ctx_r2.focusedOptionId : undefined);
580
581
  } }
581
582
  function AutoComplete_ng_container_5_SpinnerIcon_1_Template(rf, ctx) { if (rf & 1) {
582
- i0.ɵɵelement(0, "SpinnerIcon", 36);
583
+ i0.ɵɵelement(0, "SpinnerIcon", 37);
583
584
  } if (rf & 2) {
584
585
  i0.ɵɵproperty("styleClass", "p-autocomplete-loader")("spin", true);
585
586
  i0.ɵɵattribute("aria-hidden", true);
@@ -589,28 +590,28 @@ function AutoComplete_ng_container_5_span_2_1_Template(rf, ctx) { if (rf & 1) {
589
590
  i0.ɵɵtemplate(0, AutoComplete_ng_container_5_span_2_1_ng_template_0_Template, 0, 0, "ng-template");
590
591
  } }
591
592
  function AutoComplete_ng_container_5_span_2_Template(rf, ctx) { if (rf & 1) {
592
- i0.ɵɵelementStart(0, "span", 37);
593
- i0.ɵɵtemplate(1, AutoComplete_ng_container_5_span_2_1_Template, 1, 0, null, 23);
593
+ i0.ɵɵelementStart(0, "span", 38);
594
+ i0.ɵɵtemplate(1, AutoComplete_ng_container_5_span_2_1_Template, 1, 0, null, 24);
594
595
  i0.ɵɵelementEnd();
595
596
  } if (rf & 2) {
596
597
  const ctx_r2 = i0.ɵɵnextContext(2);
597
598
  i0.ɵɵattribute("aria-hidden", true);
598
599
  i0.ɵɵadvance();
599
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.loadingicon);
600
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.loadingIconTemplate || ctx_r2._loadingIconTemplate);
600
601
  } }
601
602
  function AutoComplete_ng_container_5_Template(rf, ctx) { if (rf & 1) {
602
603
  i0.ɵɵelementContainerStart(0);
603
- i0.ɵɵtemplate(1, AutoComplete_ng_container_5_SpinnerIcon_1_Template, 1, 3, "SpinnerIcon", 34)(2, AutoComplete_ng_container_5_span_2_Template, 2, 2, "span", 35);
604
+ i0.ɵɵtemplate(1, AutoComplete_ng_container_5_SpinnerIcon_1_Template, 1, 3, "SpinnerIcon", 35)(2, AutoComplete_ng_container_5_span_2_Template, 2, 2, "span", 36);
604
605
  i0.ɵɵelementContainerEnd();
605
606
  } if (rf & 2) {
606
607
  const ctx_r2 = i0.ɵɵnextContext();
607
608
  i0.ɵɵadvance();
608
- i0.ɵɵproperty("ngIf", !ctx_r2.loadingicon);
609
+ i0.ɵɵproperty("ngIf", !ctx_r2.loadingIconTemplate && !ctx_r2._loadingIconTemplate);
609
610
  i0.ɵɵadvance();
610
- i0.ɵɵproperty("ngIf", ctx_r2.loadingicon);
611
+ i0.ɵɵproperty("ngIf", ctx_r2.loadingIconTemplate || ctx_r2._loadingIconTemplate);
611
612
  } }
612
613
  function AutoComplete_button_6_span_2_Template(rf, ctx) { if (rf & 1) {
613
- i0.ɵɵelement(0, "span", 40);
614
+ i0.ɵɵelement(0, "span", 41);
614
615
  } if (rf & 2) {
615
616
  const ctx_r2 = i0.ɵɵnextContext(2);
616
617
  i0.ɵɵproperty("ngClass", ctx_r2.dropdownIcon);
@@ -625,20 +626,20 @@ function AutoComplete_button_6_ng_container_3_2_Template(rf, ctx) { if (rf & 1)
625
626
  } }
626
627
  function AutoComplete_button_6_ng_container_3_Template(rf, ctx) { if (rf & 1) {
627
628
  i0.ɵɵelementContainerStart(0);
628
- i0.ɵɵtemplate(1, AutoComplete_button_6_ng_container_3_ChevronDownIcon_1_Template, 1, 0, "ChevronDownIcon", 14)(2, AutoComplete_button_6_ng_container_3_2_Template, 1, 0, null, 23);
629
+ i0.ɵɵtemplate(1, AutoComplete_button_6_ng_container_3_ChevronDownIcon_1_Template, 1, 0, "ChevronDownIcon", 15)(2, AutoComplete_button_6_ng_container_3_2_Template, 1, 0, null, 24);
629
630
  i0.ɵɵelementContainerEnd();
630
631
  } if (rf & 2) {
631
632
  const ctx_r2 = i0.ɵɵnextContext(2);
632
633
  i0.ɵɵadvance();
633
- i0.ɵɵproperty("ngIf", !ctx_r2.dropdownicon);
634
+ i0.ɵɵproperty("ngIf", !ctx_r2.dropdownIconTemplate && !ctx_r2._dropdownIconTemplate);
634
635
  i0.ɵɵadvance();
635
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.dropdownicon);
636
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.dropdownIconTemplate || ctx_r2._dropdownIconTemplate);
636
637
  } }
637
638
  function AutoComplete_button_6_Template(rf, ctx) { if (rf & 1) {
638
639
  const _r10 = i0.ɵɵgetCurrentView();
639
- i0.ɵɵelementStart(0, "button", 38, 7);
640
+ i0.ɵɵelementStart(0, "button", 39, 7);
640
641
  i0.ɵɵlistener("click", function AutoComplete_button_6_Template_button_click_0_listener($event) { i0.ɵɵrestoreView(_r10); const ctx_r2 = i0.ɵɵnextContext(); return i0.ɵɵresetView(ctx_r2.handleDropdownClick($event)); });
641
- i0.ɵɵtemplate(2, AutoComplete_button_6_span_2_Template, 1, 2, "span", 39)(3, AutoComplete_button_6_ng_container_3_Template, 3, 2, "ng-container", 14);
642
+ i0.ɵɵtemplate(2, AutoComplete_button_6_span_2_Template, 1, 2, "span", 40)(3, AutoComplete_button_6_ng_container_3_Template, 3, 2, "ng-container", 15);
642
643
  i0.ɵɵelementEnd();
643
644
  } if (rf & 2) {
644
645
  const ctx_r2 = i0.ɵɵnextContext();
@@ -656,7 +657,7 @@ function AutoComplete_ng_template_9_p_scroller_3_ng_template_2_ng_container_0_Te
656
657
  i0.ɵɵelementContainer(0);
657
658
  } }
658
659
  function AutoComplete_ng_template_9_p_scroller_3_ng_template_2_Template(rf, ctx) { if (rf & 1) {
659
- i0.ɵɵtemplate(0, AutoComplete_ng_template_9_p_scroller_3_ng_template_2_ng_container_0_Template, 1, 0, "ng-container", 29);
660
+ i0.ɵɵtemplate(0, AutoComplete_ng_template_9_p_scroller_3_ng_template_2_ng_container_0_Template, 1, 0, "ng-container", 30);
660
661
  } if (rf & 2) {
661
662
  const items_r12 = ctx.$implicit;
662
663
  const scrollerOptions_r13 = ctx.options;
@@ -668,12 +669,11 @@ function AutoComplete_ng_template_9_p_scroller_3_ng_container_4_ng_template_1_ng
668
669
  i0.ɵɵelementContainer(0);
669
670
  } }
670
671
  function AutoComplete_ng_template_9_p_scroller_3_ng_container_4_ng_template_1_Template(rf, ctx) { if (rf & 1) {
671
- i0.ɵɵtemplate(0, AutoComplete_ng_template_9_p_scroller_3_ng_container_4_ng_template_1_ng_container_0_Template, 1, 0, "ng-container", 29);
672
+ i0.ɵɵtemplate(0, AutoComplete_ng_template_9_p_scroller_3_ng_container_4_ng_template_1_ng_container_0_Template, 1, 0, "ng-container", 30);
672
673
  } if (rf & 2) {
673
674
  const scrollerOptions_r15 = ctx.options;
674
- i0.ɵɵnextContext();
675
- const loader_r16 = i0.ɵɵreference(2);
676
- i0.ɵɵproperty("ngTemplateOutlet", loader_r16)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c24, scrollerOptions_r15));
675
+ const ctx_r2 = i0.ɵɵnextContext(4);
676
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.loaderTemplate || ctx_r2._loaderTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(2, _c24, scrollerOptions_r15));
677
677
  } }
678
678
  function AutoComplete_ng_template_9_p_scroller_3_ng_container_4_Template(rf, ctx) { if (rf & 1) {
679
679
  i0.ɵɵelementContainerStart(0);
@@ -682,23 +682,23 @@ function AutoComplete_ng_template_9_p_scroller_3_ng_container_4_Template(rf, ctx
682
682
  } }
683
683
  function AutoComplete_ng_template_9_p_scroller_3_Template(rf, ctx) { if (rf & 1) {
684
684
  const _r11 = i0.ɵɵgetCurrentView();
685
- i0.ɵɵelementStart(0, "p-scroller", 45, 9);
685
+ i0.ɵɵelementStart(0, "p-scroller", 46, 9);
686
686
  i0.ɵɵlistener("onLazyLoad", function AutoComplete_ng_template_9_p_scroller_3_Template_p_scroller_onLazyLoad_0_listener($event) { i0.ɵɵrestoreView(_r11); const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onLazyLoad.emit($event)); });
687
- i0.ɵɵtemplate(2, AutoComplete_ng_template_9_p_scroller_3_ng_template_2_Template, 1, 5, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor)(4, AutoComplete_ng_template_9_p_scroller_3_ng_container_4_Template, 3, 0, "ng-container", 14);
687
+ i0.ɵɵtemplate(2, AutoComplete_ng_template_9_p_scroller_3_ng_template_2_Template, 1, 5, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor)(4, AutoComplete_ng_template_9_p_scroller_3_ng_container_4_Template, 3, 0, "ng-container", 15);
688
688
  i0.ɵɵelementEnd();
689
689
  } if (rf & 2) {
690
690
  const ctx_r2 = i0.ɵɵnextContext(2);
691
691
  i0.ɵɵstyleMap(i0.ɵɵpureFunction1(8, _c22, ctx_r2.scrollHeight));
692
692
  i0.ɵɵproperty("items", ctx_r2.visibleOptions())("itemSize", ctx_r2.virtualScrollItemSize || ctx_r2._itemSize)("autoSize", true)("lazy", ctx_r2.lazy)("options", ctx_r2.virtualScrollOptions);
693
693
  i0.ɵɵadvance(4);
694
- i0.ɵɵproperty("ngIf", ctx_r2.loader);
694
+ i0.ɵɵproperty("ngIf", ctx_r2.loaderTemplate || ctx_r2._loaderTemplate);
695
695
  } }
696
696
  function AutoComplete_ng_template_9_ng_container_4_ng_container_1_Template(rf, ctx) { if (rf & 1) {
697
697
  i0.ɵɵelementContainer(0);
698
698
  } }
699
699
  function AutoComplete_ng_template_9_ng_container_4_Template(rf, ctx) { if (rf & 1) {
700
700
  i0.ɵɵelementContainerStart(0);
701
- i0.ɵɵtemplate(1, AutoComplete_ng_template_9_ng_container_4_ng_container_1_Template, 1, 0, "ng-container", 29);
701
+ i0.ɵɵtemplate(1, AutoComplete_ng_template_9_ng_container_4_ng_container_1_Template, 1, 0, "ng-container", 30);
702
702
  i0.ɵɵelementContainerEnd();
703
703
  } if (rf & 2) {
704
704
  i0.ɵɵnextContext();
@@ -712,132 +712,131 @@ function AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_0_s
712
712
  i0.ɵɵtext(1);
713
713
  i0.ɵɵelementEnd();
714
714
  } if (rf & 2) {
715
- const option_r17 = i0.ɵɵnextContext(2).$implicit;
715
+ const option_r16 = i0.ɵɵnextContext(2).$implicit;
716
716
  const ctx_r2 = i0.ɵɵnextContext(3);
717
717
  i0.ɵɵadvance();
718
- i0.ɵɵtextInterpolate(ctx_r2.getOptionGroupLabel(option_r17.optionGroup));
718
+ i0.ɵɵtextInterpolate(ctx_r2.getOptionGroupLabel(option_r16.optionGroup));
719
719
  } }
720
720
  function AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_0_ng_container_3_Template(rf, ctx) { if (rf & 1) {
721
721
  i0.ɵɵelementContainer(0);
722
722
  } }
723
723
  function AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_0_Template(rf, ctx) { if (rf & 1) {
724
724
  i0.ɵɵelementContainerStart(0);
725
- i0.ɵɵelementStart(1, "li", 49);
726
- i0.ɵɵtemplate(2, AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_0_span_2_Template, 2, 1, "span", 14)(3, AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_0_ng_container_3_Template, 1, 0, "ng-container", 29);
725
+ i0.ɵɵelementStart(1, "li", 50);
726
+ i0.ɵɵtemplate(2, AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_0_span_2_Template, 2, 1, "span", 15)(3, AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_0_ng_container_3_Template, 1, 0, "ng-container", 30);
727
727
  i0.ɵɵelementEnd();
728
728
  i0.ɵɵelementContainerEnd();
729
729
  } if (rf & 2) {
730
- const ctx_r17 = i0.ɵɵnextContext();
731
- const option_r17 = ctx_r17.$implicit;
732
- const i_r19 = ctx_r17.index;
733
- const scrollerOptions_r20 = i0.ɵɵnextContext().options;
730
+ const ctx_r16 = i0.ɵɵnextContext();
731
+ const option_r16 = ctx_r16.$implicit;
732
+ const i_r18 = ctx_r16.index;
733
+ const scrollerOptions_r19 = i0.ɵɵnextContext().options;
734
734
  const ctx_r2 = i0.ɵɵnextContext(2);
735
735
  i0.ɵɵadvance();
736
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(5, _c22, scrollerOptions_r20.itemSize + "px"));
737
- i0.ɵɵattribute("id", ctx_r2.id + "_" + ctx_r2.getOptionIndex(i_r19, scrollerOptions_r20));
736
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(5, _c22, scrollerOptions_r19.itemSize + "px"));
737
+ i0.ɵɵattribute("id", ctx_r2.id + "_" + ctx_r2.getOptionIndex(i_r18, scrollerOptions_r19));
738
738
  i0.ɵɵadvance();
739
739
  i0.ɵɵproperty("ngIf", !ctx_r2.groupTemplate);
740
740
  i0.ɵɵadvance();
741
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.groupTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(7, _c20, option_r17.optionGroup));
741
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.groupTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction1(7, _c20, option_r16.optionGroup));
742
742
  } }
743
743
  function AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_1_span_2_Template(rf, ctx) { if (rf & 1) {
744
744
  i0.ɵɵelementStart(0, "span");
745
745
  i0.ɵɵtext(1);
746
746
  i0.ɵɵelementEnd();
747
747
  } if (rf & 2) {
748
- const option_r17 = i0.ɵɵnextContext(2).$implicit;
748
+ const option_r16 = i0.ɵɵnextContext(2).$implicit;
749
749
  const ctx_r2 = i0.ɵɵnextContext(3);
750
750
  i0.ɵɵadvance();
751
- i0.ɵɵtextInterpolate(ctx_r2.getOptionLabel(option_r17));
751
+ i0.ɵɵtextInterpolate(ctx_r2.getOptionLabel(option_r16));
752
752
  } }
753
753
  function AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_1_ng_container_3_Template(rf, ctx) { if (rf & 1) {
754
754
  i0.ɵɵelementContainer(0);
755
755
  } }
756
756
  function AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_1_Template(rf, ctx) { if (rf & 1) {
757
- const _r21 = i0.ɵɵgetCurrentView();
757
+ const _r20 = i0.ɵɵgetCurrentView();
758
758
  i0.ɵɵelementContainerStart(0);
759
- i0.ɵɵelementStart(1, "li", 50);
760
- i0.ɵɵlistener("click", function AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_1_Template_li_click_1_listener($event) { i0.ɵɵrestoreView(_r21); const option_r17 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.onOptionSelect($event, option_r17)); })("mouseenter", function AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_1_Template_li_mouseenter_1_listener($event) { i0.ɵɵrestoreView(_r21); const i_r19 = i0.ɵɵnextContext().index; const scrollerOptions_r20 = i0.ɵɵnextContext().options; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onOptionMouseEnter($event, ctx_r2.getOptionIndex(i_r19, scrollerOptions_r20))); });
761
- i0.ɵɵtemplate(2, AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_1_span_2_Template, 2, 1, "span", 14)(3, AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_1_ng_container_3_Template, 1, 0, "ng-container", 29);
759
+ i0.ɵɵelementStart(1, "li", 51);
760
+ i0.ɵɵlistener("click", function AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_1_Template_li_click_1_listener($event) { i0.ɵɵrestoreView(_r20); const option_r16 = i0.ɵɵnextContext().$implicit; const ctx_r2 = i0.ɵɵnextContext(3); return i0.ɵɵresetView(ctx_r2.onOptionSelect($event, option_r16)); })("mouseenter", function AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_1_Template_li_mouseenter_1_listener($event) { i0.ɵɵrestoreView(_r20); const i_r18 = i0.ɵɵnextContext().index; const scrollerOptions_r19 = i0.ɵɵnextContext().options; const ctx_r2 = i0.ɵɵnextContext(2); return i0.ɵɵresetView(ctx_r2.onOptionMouseEnter($event, ctx_r2.getOptionIndex(i_r18, scrollerOptions_r19))); });
761
+ i0.ɵɵtemplate(2, AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_1_span_2_Template, 2, 1, "span", 15)(3, AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_1_ng_container_3_Template, 1, 0, "ng-container", 30);
762
762
  i0.ɵɵelementEnd();
763
763
  i0.ɵɵelementContainerEnd();
764
764
  } if (rf & 2) {
765
- const ctx_r17 = i0.ɵɵnextContext();
766
- const option_r17 = ctx_r17.$implicit;
767
- const i_r19 = ctx_r17.index;
768
- const scrollerOptions_r20 = i0.ɵɵnextContext().options;
765
+ const ctx_r16 = i0.ɵɵnextContext();
766
+ const option_r16 = ctx_r16.$implicit;
767
+ const i_r18 = ctx_r16.index;
768
+ const scrollerOptions_r19 = i0.ɵɵnextContext().options;
769
769
  const ctx_r2 = i0.ɵɵnextContext(2);
770
770
  i0.ɵɵadvance();
771
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(12, _c22, scrollerOptions_r20.itemSize + "px"))("ngClass", ctx_r2.optionClass(option_r17, i_r19, scrollerOptions_r20));
772
- i0.ɵɵattribute("id", ctx_r2.id + "_" + ctx_r2.getOptionIndex(i_r19, scrollerOptions_r20))("aria-label", ctx_r2.getOptionLabel(option_r17))("aria-selected", ctx_r2.isSelected(option_r17))("aria-disabled", ctx_r2.isOptionDisabled(option_r17))("data-p-focused", ctx_r2.focusedOptionIndex() === ctx_r2.getOptionIndex(i_r19, scrollerOptions_r20))("aria-setsize", ctx_r2.ariaSetSize)("aria-posinset", ctx_r2.getAriaPosInset(ctx_r2.getOptionIndex(i_r19, scrollerOptions_r20)));
771
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(12, _c22, scrollerOptions_r19.itemSize + "px"))("ngClass", ctx_r2.optionClass(option_r16, i_r18, scrollerOptions_r19));
772
+ i0.ɵɵattribute("id", ctx_r2.id + "_" + ctx_r2.getOptionIndex(i_r18, scrollerOptions_r19))("aria-label", ctx_r2.getOptionLabel(option_r16))("aria-selected", ctx_r2.isSelected(option_r16))("aria-disabled", ctx_r2.isOptionDisabled(option_r16))("data-p-focused", ctx_r2.focusedOptionIndex() === ctx_r2.getOptionIndex(i_r18, scrollerOptions_r19))("aria-setsize", ctx_r2.ariaSetSize)("aria-posinset", ctx_r2.getAriaPosInset(ctx_r2.getOptionIndex(i_r18, scrollerOptions_r19)));
773
773
  i0.ɵɵadvance();
774
- i0.ɵɵproperty("ngIf", !ctx_r2.item);
774
+ i0.ɵɵproperty("ngIf", !ctx_r2.itemTemplate && !ctx_r2._itemTemplate);
775
775
  i0.ɵɵadvance();
776
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.item)("ngTemplateOutletContext", i0.ɵɵpureFunction2(14, _c26, option_r17, scrollerOptions_r20.getOptions ? scrollerOptions_r20.getOptions(i_r19) : i_r19));
776
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.itemTemplate || ctx_r2._itemTemplate)("ngTemplateOutletContext", i0.ɵɵpureFunction2(14, _c26, option_r16, scrollerOptions_r19.getOptions ? scrollerOptions_r19.getOptions(i_r18) : i_r18));
777
777
  } }
778
778
  function AutoComplete_ng_template_9_ng_template_5_ng_template_2_Template(rf, ctx) { if (rf & 1) {
779
- i0.ɵɵtemplate(0, AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_0_Template, 4, 9, "ng-container", 14)(1, AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_1_Template, 4, 17, "ng-container", 14);
779
+ i0.ɵɵtemplate(0, AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_0_Template, 4, 9, "ng-container", 15)(1, AutoComplete_ng_template_9_ng_template_5_ng_template_2_ng_container_1_Template, 4, 17, "ng-container", 15);
780
780
  } if (rf & 2) {
781
- const option_r17 = ctx.$implicit;
781
+ const option_r16 = ctx.$implicit;
782
782
  const ctx_r2 = i0.ɵɵnextContext(3);
783
- i0.ɵɵproperty("ngIf", ctx_r2.isOptionGroup(option_r17));
783
+ i0.ɵɵproperty("ngIf", ctx_r2.isOptionGroup(option_r16));
784
784
  i0.ɵɵadvance();
785
- i0.ɵɵproperty("ngIf", !ctx_r2.isOptionGroup(option_r17));
785
+ i0.ɵɵproperty("ngIf", !ctx_r2.isOptionGroup(option_r16));
786
786
  } }
787
- function AutoComplete_ng_template_9_ng_template_5_li_3_Conditional_1_Template(rf, ctx) { if (rf & 1) {
788
- i0.ɵɵtext(0);
787
+ function AutoComplete_ng_template_9_ng_template_5_li_3_ng_container_1_Template(rf, ctx) { if (rf & 1) {
788
+ i0.ɵɵelementContainerStart(0);
789
+ i0.ɵɵtext(1);
790
+ i0.ɵɵelementContainerEnd();
789
791
  } if (rf & 2) {
790
792
  const ctx_r2 = i0.ɵɵnextContext(4);
793
+ i0.ɵɵadvance();
791
794
  i0.ɵɵtextInterpolate1(" ", ctx_r2.searchResultMessageText, " ");
792
795
  } }
793
- function AutoComplete_ng_template_9_ng_template_5_li_3_Conditional_2_ng_container_0_Template(rf, ctx) { if (rf & 1) {
794
- i0.ɵɵelementContainer(0);
795
- } }
796
- function AutoComplete_ng_template_9_ng_template_5_li_3_Conditional_2_Template(rf, ctx) { if (rf & 1) {
797
- i0.ɵɵtemplate(0, AutoComplete_ng_template_9_ng_template_5_li_3_Conditional_2_ng_container_0_Template, 1, 0, "ng-container", 23);
798
- } if (rf & 2) {
799
- const ctx_r2 = i0.ɵɵnextContext(4);
800
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.empty);
796
+ function AutoComplete_ng_template_9_ng_template_5_li_3_ng_container_2_Template(rf, ctx) { if (rf & 1) {
797
+ i0.ɵɵelementContainer(0, null, 12);
801
798
  } }
802
799
  function AutoComplete_ng_template_9_ng_template_5_li_3_Template(rf, ctx) { if (rf & 1) {
803
- i0.ɵɵelementStart(0, "li", 51);
804
- i0.ɵɵtemplate(1, AutoComplete_ng_template_9_ng_template_5_li_3_Conditional_1_Template, 1, 1)(2, AutoComplete_ng_template_9_ng_template_5_li_3_Conditional_2_Template, 1, 1, "ng-container");
800
+ i0.ɵɵelementStart(0, "li", 52);
801
+ i0.ɵɵtemplate(1, AutoComplete_ng_template_9_ng_template_5_li_3_ng_container_1_Template, 2, 1, "ng-container", 53)(2, AutoComplete_ng_template_9_ng_template_5_li_3_ng_container_2_Template, 2, 0, "ng-container", 24);
805
802
  i0.ɵɵelementEnd();
806
803
  } if (rf & 2) {
807
- const scrollerOptions_r20 = i0.ɵɵnextContext().options;
804
+ const scrollerOptions_r19 = i0.ɵɵnextContext().options;
808
805
  const ctx_r2 = i0.ɵɵnextContext(2);
809
- i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(2, _c22, scrollerOptions_r20.itemSize + "px"));
806
+ i0.ɵɵproperty("ngStyle", i0.ɵɵpureFunction1(4, _c22, scrollerOptions_r19.itemSize + "px"));
810
807
  i0.ɵɵadvance();
811
- i0.ɵɵconditional(!ctx_r2.empty ? 1 : 2);
808
+ i0.ɵɵproperty("ngIf", !ctx_r2.emptyTemplate && !ctx_r2._emptyTemplate)("ngIfElse", ctx_r2.empty);
809
+ i0.ɵɵadvance();
810
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.emptyTemplate || ctx_r2._emptyTemplate);
812
811
  } }
813
812
  function AutoComplete_ng_template_9_ng_template_5_Template(rf, ctx) { if (rf & 1) {
814
- i0.ɵɵelementStart(0, "ul", 46, 11);
815
- i0.ɵɵtemplate(2, AutoComplete_ng_template_9_ng_template_5_ng_template_2_Template, 2, 2, "ng-template", 47)(3, AutoComplete_ng_template_9_ng_template_5_li_3_Template, 3, 4, "li", 48);
813
+ i0.ɵɵelementStart(0, "ul", 47, 11);
814
+ i0.ɵɵtemplate(2, AutoComplete_ng_template_9_ng_template_5_ng_template_2_Template, 2, 2, "ng-template", 48)(3, AutoComplete_ng_template_9_ng_template_5_li_3_Template, 3, 6, "li", 49);
816
815
  i0.ɵɵelementEnd();
817
816
  } if (rf & 2) {
818
- const items_r22 = ctx.$implicit;
819
- const scrollerOptions_r20 = ctx.options;
817
+ const items_r21 = ctx.$implicit;
818
+ const scrollerOptions_r19 = ctx.options;
820
819
  const ctx_r2 = i0.ɵɵnextContext(2);
821
- i0.ɵɵstyleMap(scrollerOptions_r20.contentStyle);
822
- i0.ɵɵproperty("ngClass", scrollerOptions_r20.contentStyleClass);
820
+ i0.ɵɵstyleMap(scrollerOptions_r19.contentStyle);
821
+ i0.ɵɵproperty("ngClass", scrollerOptions_r19.contentStyleClass);
823
822
  i0.ɵɵattribute("id", ctx_r2.id + "_list")("aria-label", ctx_r2.listLabel);
824
823
  i0.ɵɵadvance(2);
825
- i0.ɵɵproperty("ngForOf", items_r22);
824
+ i0.ɵɵproperty("ngForOf", items_r21);
826
825
  i0.ɵɵadvance();
827
- i0.ɵɵproperty("ngIf", !items_r22 || items_r22 && items_r22.length === 0 && ctx_r2.showEmptyMessage);
826
+ i0.ɵɵproperty("ngIf", !items_r21 || items_r21 && items_r21.length === 0 && ctx_r2.showEmptyMessage);
828
827
  } }
829
828
  function AutoComplete_ng_template_9_ng_container_7_Template(rf, ctx) { if (rf & 1) {
830
829
  i0.ɵɵelementContainer(0);
831
830
  } }
832
831
  function AutoComplete_ng_template_9_Template(rf, ctx) { if (rf & 1) {
833
- i0.ɵɵelementStart(0, "div", 41);
834
- i0.ɵɵtemplate(1, AutoComplete_ng_template_9_ng_container_1_Template, 1, 0, "ng-container", 23);
835
- i0.ɵɵelementStart(2, "div", 42);
836
- i0.ɵɵtemplate(3, AutoComplete_ng_template_9_p_scroller_3_Template, 5, 10, "p-scroller", 43)(4, AutoComplete_ng_template_9_ng_container_4_Template, 2, 6, "ng-container", 14);
832
+ i0.ɵɵelementStart(0, "div", 42);
833
+ i0.ɵɵtemplate(1, AutoComplete_ng_template_9_ng_container_1_Template, 1, 0, "ng-container", 24);
834
+ i0.ɵɵelementStart(2, "div", 43);
835
+ i0.ɵɵtemplate(3, AutoComplete_ng_template_9_p_scroller_3_Template, 5, 10, "p-scroller", 44)(4, AutoComplete_ng_template_9_ng_container_4_Template, 2, 6, "ng-container", 15);
837
836
  i0.ɵɵelementEnd();
838
- i0.ɵɵtemplate(5, AutoComplete_ng_template_9_ng_template_5_Template, 4, 7, "ng-template", null, 8, i0.ɵɵtemplateRefExtractor)(7, AutoComplete_ng_template_9_ng_container_7_Template, 1, 0, "ng-container", 23);
837
+ i0.ɵɵtemplate(5, AutoComplete_ng_template_9_ng_template_5_Template, 4, 7, "ng-template", null, 8, i0.ɵɵtemplateRefExtractor)(7, AutoComplete_ng_template_9_ng_container_7_Template, 1, 0, "ng-container", 24);
839
838
  i0.ɵɵelementEnd();
840
- i0.ɵɵelementStart(8, "span", 44);
839
+ i0.ɵɵelementStart(8, "span", 45);
841
840
  i0.ɵɵtext(9);
842
841
  i0.ɵɵelementEnd();
843
842
  } if (rf & 2) {
@@ -845,7 +844,7 @@ function AutoComplete_ng_template_9_Template(rf, ctx) { if (rf & 1) {
845
844
  i0.ɵɵclassMap(ctx_r2.panelStyleClass);
846
845
  i0.ɵɵproperty("ngClass", ctx_r2.panelClass)("ngStyle", ctx_r2.panelStyle);
847
846
  i0.ɵɵadvance();
848
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.header);
847
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.headerTemplate || ctx_r2._headerTemplate);
849
848
  i0.ɵɵadvance();
850
849
  i0.ɵɵstyleProp("max-height", ctx_r2.virtualScroll ? "auto" : ctx_r2.scrollHeight);
851
850
  i0.ɵɵadvance();
@@ -853,7 +852,7 @@ function AutoComplete_ng_template_9_Template(rf, ctx) { if (rf & 1) {
853
852
  i0.ɵɵadvance();
854
853
  i0.ɵɵproperty("ngIf", !ctx_r2.virtualScroll);
855
854
  i0.ɵɵadvance(3);
856
- i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.footer);
855
+ i0.ɵɵproperty("ngTemplateOutlet", ctx_r2.footerTemplate || ctx_r2._footerTemplate);
857
856
  i0.ɵɵadvance(2);
858
857
  i0.ɵɵtextInterpolate1(" ", ctx_r2.selectedMessageText, " ");
859
858
  } }
@@ -1297,27 +1296,27 @@ class AutoComplete extends BaseComponent {
1297
1296
  * Custom item template.
1298
1297
  * @group Templates
1299
1298
  */
1300
- item;
1299
+ itemTemplate;
1301
1300
  /**
1302
1301
  * Custom empty message template.
1303
1302
  * @group Templates
1304
1303
  */
1305
- empty;
1304
+ emptyTemplate;
1306
1305
  /**
1307
1306
  * Custom header template.
1308
1307
  * @group Templates
1309
1308
  */
1310
- header;
1309
+ headerTemplate;
1311
1310
  /**
1312
1311
  * Custom footer template.
1313
1312
  * @group Templates
1314
1313
  */
1315
- footer;
1314
+ footerTemplate;
1316
1315
  /**
1317
1316
  * Custom selected item template.
1318
1317
  * @group Templates
1319
1318
  */
1320
- selecteditem;
1319
+ selectedItemTemplate;
1321
1320
  /**
1322
1321
  * Custom group item template.
1323
1322
  * @group Templates
@@ -1327,27 +1326,27 @@ class AutoComplete extends BaseComponent {
1327
1326
  * Custom loader template.
1328
1327
  * @group Templates
1329
1328
  */
1330
- loader;
1329
+ loaderTemplate;
1331
1330
  /**
1332
1331
  * Custom remove icon template.
1333
1332
  * @group Templates
1334
1333
  */
1335
- removeicon;
1334
+ removeIconTemplate;
1336
1335
  /**
1337
1336
  * Custom loading icon template.
1338
1337
  * @group Templates
1339
1338
  */
1340
- loadingicon;
1339
+ loadingIconTemplate;
1341
1340
  /**
1342
1341
  * Custom clear icon template.
1343
1342
  * @group Templates
1344
1343
  */
1345
- clearicon;
1344
+ clearIconTemplate;
1346
1345
  /**
1347
1346
  * Custom dropdown icon template.
1348
1347
  * @group Templates
1349
1348
  */
1350
- dropdownicon;
1349
+ dropdownIconTemplate;
1351
1350
  primeng = inject(PrimeNG);
1352
1351
  value;
1353
1352
  _suggestions = signal(null);
@@ -1371,6 +1370,17 @@ class AutoComplete extends BaseComponent {
1371
1370
  listId;
1372
1371
  searchTimeout;
1373
1372
  dirty = false;
1373
+ _itemTemplate;
1374
+ _groupTemplate;
1375
+ _selectedItemTemplate;
1376
+ _headerTemplate;
1377
+ _emptyTemplate;
1378
+ _footerTemplate;
1379
+ _loaderTemplate;
1380
+ _removeIconTemplate;
1381
+ _loadingIconTemplate;
1382
+ _clearIconTemplate;
1383
+ _dropdownIconTemplate;
1374
1384
  modelValue = signal(null);
1375
1385
  focusedMultipleOptionIndex = signal(-1);
1376
1386
  focusedOptionIndex = signal(-1);
@@ -1473,6 +1483,52 @@ class AutoComplete extends BaseComponent {
1473
1483
  this.id = this.id || uuid('pn_id_');
1474
1484
  this.cd.detectChanges();
1475
1485
  }
1486
+ templates;
1487
+ ngAfterContentInit() {
1488
+ this.templates.forEach((item) => {
1489
+ switch (item.getType()) {
1490
+ case 'item':
1491
+ this._itemTemplate = item.template;
1492
+ break;
1493
+ case 'group':
1494
+ this._groupTemplate = item.template;
1495
+ break;
1496
+ case 'selecteditem':
1497
+ this._selectedItemTemplate = item.template;
1498
+ break;
1499
+ case 'selectedItem':
1500
+ this._selectedItemTemplate = item.template;
1501
+ break;
1502
+ case 'header':
1503
+ this._headerTemplate = item.template;
1504
+ break;
1505
+ case 'empty':
1506
+ this._emptyTemplate = item.template;
1507
+ break;
1508
+ case 'footer':
1509
+ this._footerTemplate = item.template;
1510
+ break;
1511
+ case 'loader':
1512
+ this._loaderTemplate = item.template;
1513
+ break;
1514
+ case 'removetokenicon':
1515
+ this._removeIconTemplate = item.template;
1516
+ break;
1517
+ case 'loadingicon':
1518
+ this._loadingIconTemplate = item.template;
1519
+ break;
1520
+ case 'clearicon':
1521
+ this._clearIconTemplate = item.template;
1522
+ break;
1523
+ case 'dropdownicon':
1524
+ this._dropdownIconTemplate = item.template;
1525
+ break;
1526
+ default:
1527
+ this._itemTemplate = item.template;
1528
+ break;
1529
+ }
1530
+ });
1531
+ }
1476
1532
  ngAfterViewChecked() {
1477
1533
  //Use timeouts as since Angular 4.2, AfterViewChecked is broken and not called after panel is updated
1478
1534
  if (this.suggestionsUpdated && this.overlayViewChild) {
@@ -1488,7 +1544,7 @@ class AutoComplete extends BaseComponent {
1488
1544
  }
1489
1545
  handleSuggestionsChange() {
1490
1546
  if (this.loading) {
1491
- this._suggestions()?.length > 0 ? this.show() : !!this.empty ? this.show() : this.hide();
1547
+ this._suggestions()?.length > 0 ? this.show() : !!this.emptyTemplate ? this.show() : this.hide();
1492
1548
  const focusedOptionIndex = this.overlayVisible && this.autoOptionFocus ? this.findFirstFocusedOptionIndex() : -1;
1493
1549
  this.focusedOptionIndex.set(focusedOptionIndex);
1494
1550
  this.suggestionsUpdated = true;
@@ -2076,19 +2132,21 @@ class AutoComplete extends BaseComponent {
2076
2132
  i0.ɵɵcontentQuery(dirIndex, _c8, 5);
2077
2133
  i0.ɵɵcontentQuery(dirIndex, _c9, 5);
2078
2134
  i0.ɵɵcontentQuery(dirIndex, _c10, 5);
2135
+ i0.ɵɵcontentQuery(dirIndex, PrimeTemplate, 4);
2079
2136
  } if (rf & 2) {
2080
2137
  let _t;
2081
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.item = _t.first);
2082
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.empty = _t.first);
2083
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.header = _t.first);
2084
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.footer = _t.first);
2085
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.selecteditem = _t.first);
2138
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.itemTemplate = _t.first);
2139
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.emptyTemplate = _t.first);
2140
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.headerTemplate = _t.first);
2141
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.footerTemplate = _t.first);
2142
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.selectedItemTemplate = _t.first);
2086
2143
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.groupTemplate = _t.first);
2087
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.loader = _t.first);
2088
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.removeicon = _t.first);
2089
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.loadingicon = _t.first);
2090
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.clearicon = _t.first);
2091
- i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dropdownicon = _t.first);
2144
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.loaderTemplate = _t.first);
2145
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.removeIconTemplate = _t.first);
2146
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.loadingIconTemplate = _t.first);
2147
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.clearIconTemplate = _t.first);
2148
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.dropdownIconTemplate = _t.first);
2149
+ i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.templates = _t);
2092
2150
  } }, viewQuery: function AutoComplete_Query(rf, ctx) { if (rf & 1) {
2093
2151
  i0.ɵɵviewQuery(_c11, 5);
2094
2152
  i0.ɵɵviewQuery(_c12, 5);
@@ -2108,12 +2166,12 @@ class AutoComplete extends BaseComponent {
2108
2166
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.itemsViewChild = _t.first);
2109
2167
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.scroller = _t.first);
2110
2168
  i0.ɵɵqueryRefresh(_t = i0.ɵɵloadQuery()) && (ctx.overlayViewChild = _t.first);
2111
- } }, inputs: { minLength: [2, "minLength", "minLength", numberAttribute], delay: [2, "delay", "delay", numberAttribute], style: "style", panelStyle: "panelStyle", styleClass: "styleClass", panelStyleClass: "panelStyleClass", inputStyle: "inputStyle", inputId: "inputId", inputStyleClass: "inputStyleClass", placeholder: "placeholder", readonly: [2, "readonly", "readonly", booleanAttribute], disabled: [2, "disabled", "disabled", booleanAttribute], scrollHeight: "scrollHeight", lazy: [2, "lazy", "lazy", booleanAttribute], virtualScroll: [2, "virtualScroll", "virtualScroll", booleanAttribute], virtualScrollItemSize: [2, "virtualScrollItemSize", "virtualScrollItemSize", numberAttribute], virtualScrollOptions: "virtualScrollOptions", maxlength: [2, "maxlength", "maxlength", (value) => numberAttribute(value, null)], name: "name", required: [2, "required", "required", booleanAttribute], size: "size", appendTo: "appendTo", autoHighlight: [2, "autoHighlight", "autoHighlight", booleanAttribute], forceSelection: [2, "forceSelection", "forceSelection", booleanAttribute], type: "type", autoZIndex: [2, "autoZIndex", "autoZIndex", booleanAttribute], baseZIndex: [2, "baseZIndex", "baseZIndex", numberAttribute], ariaLabel: "ariaLabel", dropdownAriaLabel: "dropdownAriaLabel", ariaLabelledBy: "ariaLabelledBy", dropdownIcon: "dropdownIcon", unique: [2, "unique", "unique", booleanAttribute], group: [2, "group", "group", booleanAttribute], completeOnFocus: [2, "completeOnFocus", "completeOnFocus", booleanAttribute], showClear: [2, "showClear", "showClear", booleanAttribute], field: "field", dropdown: [2, "dropdown", "dropdown", booleanAttribute], showEmptyMessage: [2, "showEmptyMessage", "showEmptyMessage", booleanAttribute], dropdownMode: "dropdownMode", multiple: [2, "multiple", "multiple", booleanAttribute], tabindex: [2, "tabindex", "tabindex", numberAttribute], dataKey: "dataKey", emptyMessage: "emptyMessage", showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions", autofocus: [2, "autofocus", "autofocus", booleanAttribute], autocomplete: "autocomplete", optionGroupChildren: "optionGroupChildren", optionGroupLabel: "optionGroupLabel", overlayOptions: "overlayOptions", suggestions: "suggestions", itemSize: "itemSize", optionLabel: "optionLabel", optionValue: "optionValue", id: "id", searchMessage: "searchMessage", emptySelectionMessage: "emptySelectionMessage", selectionMessage: "selectionMessage", autoOptionFocus: [2, "autoOptionFocus", "autoOptionFocus", booleanAttribute], selectOnFocus: [2, "selectOnFocus", "selectOnFocus", booleanAttribute], searchLocale: [2, "searchLocale", "searchLocale", booleanAttribute], optionDisabled: "optionDisabled", focusOnHover: [2, "focusOnHover", "focusOnHover", booleanAttribute], typeahead: [2, "typeahead", "typeahead", booleanAttribute], variant: "variant", fluid: [2, "fluid", "fluid", booleanAttribute] }, outputs: { completeMethod: "completeMethod", onSelect: "onSelect", onUnselect: "onUnselect", onFocus: "onFocus", onBlur: "onBlur", onDropdownClick: "onDropdownClick", onClear: "onClear", onKeyUp: "onKeyUp", onShow: "onShow", onHide: "onHide", onLazyLoad: "onLazyLoad" }, standalone: true, features: [i0.ɵɵProvidersFeature([AUTOCOMPLETE_VALUE_ACCESSOR, AutoCompleteStyle]), i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 11, vars: 15, consts: [["container", ""], ["overlay", ""], ["content", ""], ["focusInput", ""], ["multiContainer", ""], ["token", ""], ["removeicon", ""], ["ddBtn", ""], ["buildInItems", ""], ["scroller", ""], ["loader", ""], ["items", ""], [2, "position", "relative", 3, "click", "ngClass", "ngStyle"], ["pInputText", "", "aria-autocomplete", "list", "role", "combobox", 3, "pAutoFocus", "ngClass", "ngStyle", "class", "type", "variant", "autocomplete", "required", "name", "size", "tabindex", "readonly", "disabled", "fluid", "input", "keydown", "change", "focus", "blur", "paste", "keyup", 4, "ngIf"], [4, "ngIf"], ["role", "listbox", 3, "ngClass", "tabindex", "focus", "blur", "keydown", 4, "ngIf"], ["type", "button", "class", "p-autocomplete-dropdown", "pRipple", "", 3, "disabled", "click", 4, "ngIf"], [3, "visibleChange", "onAnimationStart", "onHide", "visible", "options", "target", "appendTo", "showTransitionOptions", "hideTransitionOptions"], ["pInputText", "", "aria-autocomplete", "list", "role", "combobox", 3, "input", "keydown", "change", "focus", "blur", "paste", "keyup", "pAutoFocus", "ngClass", "ngStyle", "type", "variant", "autocomplete", "required", "name", "size", "tabindex", "readonly", "disabled", "fluid"], [3, "styleClass", "click", 4, "ngIf"], ["class", "p-autocomplete-clear-icon", 3, "click", 4, "ngIf"], [3, "click", "styleClass"], [1, "p-autocomplete-clear-icon", 3, "click"], [4, "ngTemplateOutlet"], ["role", "listbox", 3, "focus", "blur", "keydown", "ngClass", "tabindex"], ["role", "option", 3, "ngClass", 4, "ngFor", "ngForOf"], ["role", "option", 1, "p-autocomplete-input-chip"], ["role", "combobox", "aria-autocomplete", "list", 3, "input", "keydown", "change", "focus", "blur", "paste", "keyup", "pAutoFocus", "ngClass", "ngStyle", "autocomplete", "required", "tabindex", "readonly", "disabled"], ["role", "option", 3, "ngClass"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], ["styleClass", "p-autocomplete-chip", 3, "label", "removable", 4, "ngIf"], ["styleClass", "p-autocomplete-chip", 3, "label", "removable"], [1, "p-autocomplete-chip-icon", 3, "click"], [3, "styleClass"], [3, "styleClass", "spin", 4, "ngIf"], ["class", "p-autocomplete-loader pi-spin ", 4, "ngIf"], [3, "styleClass", "spin"], [1, "p-autocomplete-loader", "pi-spin"], ["type", "button", "pRipple", "", 1, "p-autocomplete-dropdown", 3, "click", "disabled"], [3, "ngClass", 4, "ngIf"], [3, "ngClass"], [3, "ngClass", "ngStyle"], [1, "p-autocomplete-list-container"], [3, "items", "style", "itemSize", "autoSize", "lazy", "options", "onLazyLoad", 4, "ngIf"], ["role", "status", "aria-live", "polite", 1, "p-hidden-accessible"], [3, "onLazyLoad", "items", "itemSize", "autoSize", "lazy", "options"], ["role", "listbox", 1, "p-autocomplete-list", 3, "ngClass"], ["ngFor", "", 3, "ngForOf"], ["class", "p-autocomplete-empty-message", "role", "option", 3, "ngStyle", 4, "ngIf"], ["role", "option", 1, "p-autocomplete-option-group", 3, "ngStyle"], ["pRipple", "", "role", "option", 3, "click", "mouseenter", "ngStyle", "ngClass"], ["role", "option", 1, "p-autocomplete-empty-message", 3, "ngStyle"]], template: function AutoComplete_Template(rf, ctx) { if (rf & 1) {
2169
+ } }, inputs: { minLength: [2, "minLength", "minLength", numberAttribute], delay: [2, "delay", "delay", numberAttribute], style: "style", panelStyle: "panelStyle", styleClass: "styleClass", panelStyleClass: "panelStyleClass", inputStyle: "inputStyle", inputId: "inputId", inputStyleClass: "inputStyleClass", placeholder: "placeholder", readonly: [2, "readonly", "readonly", booleanAttribute], disabled: [2, "disabled", "disabled", booleanAttribute], scrollHeight: "scrollHeight", lazy: [2, "lazy", "lazy", booleanAttribute], virtualScroll: [2, "virtualScroll", "virtualScroll", booleanAttribute], virtualScrollItemSize: [2, "virtualScrollItemSize", "virtualScrollItemSize", numberAttribute], virtualScrollOptions: "virtualScrollOptions", maxlength: [2, "maxlength", "maxlength", (value) => numberAttribute(value, null)], name: "name", required: [2, "required", "required", booleanAttribute], size: "size", appendTo: "appendTo", autoHighlight: [2, "autoHighlight", "autoHighlight", booleanAttribute], forceSelection: [2, "forceSelection", "forceSelection", booleanAttribute], type: "type", autoZIndex: [2, "autoZIndex", "autoZIndex", booleanAttribute], baseZIndex: [2, "baseZIndex", "baseZIndex", numberAttribute], ariaLabel: "ariaLabel", dropdownAriaLabel: "dropdownAriaLabel", ariaLabelledBy: "ariaLabelledBy", dropdownIcon: "dropdownIcon", unique: [2, "unique", "unique", booleanAttribute], group: [2, "group", "group", booleanAttribute], completeOnFocus: [2, "completeOnFocus", "completeOnFocus", booleanAttribute], showClear: [2, "showClear", "showClear", booleanAttribute], field: "field", dropdown: [2, "dropdown", "dropdown", booleanAttribute], showEmptyMessage: [2, "showEmptyMessage", "showEmptyMessage", booleanAttribute], dropdownMode: "dropdownMode", multiple: [2, "multiple", "multiple", booleanAttribute], tabindex: [2, "tabindex", "tabindex", numberAttribute], dataKey: "dataKey", emptyMessage: "emptyMessage", showTransitionOptions: "showTransitionOptions", hideTransitionOptions: "hideTransitionOptions", autofocus: [2, "autofocus", "autofocus", booleanAttribute], autocomplete: "autocomplete", optionGroupChildren: "optionGroupChildren", optionGroupLabel: "optionGroupLabel", overlayOptions: "overlayOptions", suggestions: "suggestions", itemSize: "itemSize", optionLabel: "optionLabel", optionValue: "optionValue", id: "id", searchMessage: "searchMessage", emptySelectionMessage: "emptySelectionMessage", selectionMessage: "selectionMessage", autoOptionFocus: [2, "autoOptionFocus", "autoOptionFocus", booleanAttribute], selectOnFocus: [2, "selectOnFocus", "selectOnFocus", booleanAttribute], searchLocale: [2, "searchLocale", "searchLocale", booleanAttribute], optionDisabled: "optionDisabled", focusOnHover: [2, "focusOnHover", "focusOnHover", booleanAttribute], typeahead: [2, "typeahead", "typeahead", booleanAttribute], variant: "variant", fluid: [2, "fluid", "fluid", booleanAttribute] }, outputs: { completeMethod: "completeMethod", onSelect: "onSelect", onUnselect: "onUnselect", onFocus: "onFocus", onBlur: "onBlur", onDropdownClick: "onDropdownClick", onClear: "onClear", onKeyUp: "onKeyUp", onShow: "onShow", onHide: "onHide", onLazyLoad: "onLazyLoad" }, standalone: true, features: [i0.ɵɵProvidersFeature([AUTOCOMPLETE_VALUE_ACCESSOR, AutoCompleteStyle]), i0.ɵɵInputTransformsFeature, i0.ɵɵInheritDefinitionFeature, i0.ɵɵStandaloneFeature], decls: 11, vars: 15, consts: [["container", ""], ["overlay", ""], ["content", ""], ["focusInput", ""], ["multiContainer", ""], ["token", ""], ["removeicon", ""], ["ddBtn", ""], ["buildInItems", ""], ["scroller", ""], ["loader", ""], ["items", ""], ["empty", ""], [2, "position", "relative", 3, "click", "ngClass", "ngStyle"], ["pInputText", "", "aria-autocomplete", "list", "role", "combobox", 3, "pAutoFocus", "ngClass", "ngStyle", "class", "type", "variant", "autocomplete", "required", "name", "pSize", "tabindex", "readonly", "disabled", "fluid", "input", "keydown", "change", "focus", "blur", "paste", "keyup", 4, "ngIf"], [4, "ngIf"], ["role", "listbox", 3, "ngClass", "tabindex", "focus", "blur", "keydown", 4, "ngIf"], ["type", "button", "class", "p-autocomplete-dropdown", "pRipple", "", 3, "disabled", "click", 4, "ngIf"], [3, "visibleChange", "onAnimationStart", "onHide", "visible", "options", "target", "appendTo", "showTransitionOptions", "hideTransitionOptions"], ["pInputText", "", "aria-autocomplete", "list", "role", "combobox", 3, "input", "keydown", "change", "focus", "blur", "paste", "keyup", "pAutoFocus", "ngClass", "ngStyle", "type", "variant", "autocomplete", "required", "name", "pSize", "tabindex", "readonly", "disabled", "fluid"], [3, "styleClass", "click", 4, "ngIf"], ["class", "p-autocomplete-clear-icon", 3, "click", 4, "ngIf"], [3, "click", "styleClass"], [1, "p-autocomplete-clear-icon", 3, "click"], [4, "ngTemplateOutlet"], ["role", "listbox", 3, "focus", "blur", "keydown", "ngClass", "tabindex"], ["role", "option", 3, "ngClass", 4, "ngFor", "ngForOf"], ["role", "option", 1, "p-autocomplete-input-chip"], ["role", "combobox", "aria-autocomplete", "list", 3, "input", "keydown", "change", "focus", "blur", "paste", "keyup", "pAutoFocus", "ngClass", "ngStyle", "autocomplete", "required", "tabindex", "readonly", "disabled"], ["role", "option", 3, "ngClass"], [4, "ngTemplateOutlet", "ngTemplateOutletContext"], ["styleClass", "p-autocomplete-chip", 3, "label", "removable", 4, "ngIf"], ["styleClass", "p-autocomplete-chip", 3, "label", "removable"], [1, "p-autocomplete-chip-icon", 3, "click"], [3, "styleClass"], [3, "styleClass", "spin", 4, "ngIf"], ["class", "p-autocomplete-loader pi-spin ", 4, "ngIf"], [3, "styleClass", "spin"], [1, "p-autocomplete-loader", "pi-spin"], ["type", "button", "pRipple", "", 1, "p-autocomplete-dropdown", 3, "click", "disabled"], [3, "ngClass", 4, "ngIf"], [3, "ngClass"], [3, "ngClass", "ngStyle"], [1, "p-autocomplete-list-container"], [3, "items", "style", "itemSize", "autoSize", "lazy", "options", "onLazyLoad", 4, "ngIf"], ["role", "status", "aria-live", "polite", 1, "p-hidden-accessible"], [3, "onLazyLoad", "items", "itemSize", "autoSize", "lazy", "options"], ["role", "listbox", 1, "p-autocomplete-list", 3, "ngClass"], ["ngFor", "", 3, "ngForOf"], ["class", "p-autocomplete-empty-message", "role", "option", 3, "ngStyle", 4, "ngIf"], ["role", "option", 1, "p-autocomplete-option-group", 3, "ngStyle"], ["pRipple", "", "role", "option", 3, "click", "mouseenter", "ngStyle", "ngClass"], ["role", "option", 1, "p-autocomplete-empty-message", 3, "ngStyle"], [4, "ngIf", "ngIfElse"]], template: function AutoComplete_Template(rf, ctx) { if (rf & 1) {
2112
2170
  const _r1 = i0.ɵɵgetCurrentView();
2113
- i0.ɵɵelementStart(0, "div", 12, 0);
2171
+ i0.ɵɵelementStart(0, "div", 13, 0);
2114
2172
  i0.ɵɵlistener("click", function AutoComplete_Template_div_click_0_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onContainerClick($event)); });
2115
- i0.ɵɵtemplate(2, AutoComplete_input_2_Template, 2, 25, "input", 13)(3, AutoComplete_ng_container_3_Template, 3, 2, "ng-container", 14)(4, AutoComplete_ul_4_Template, 6, 26, "ul", 15)(5, AutoComplete_ng_container_5_Template, 3, 2, "ng-container", 14)(6, AutoComplete_button_6_Template, 4, 5, "button", 16);
2116
- i0.ɵɵelementStart(7, "p-overlay", 17, 1);
2173
+ i0.ɵɵtemplate(2, AutoComplete_input_2_Template, 2, 25, "input", 14)(3, AutoComplete_ng_container_3_Template, 3, 2, "ng-container", 15)(4, AutoComplete_ul_4_Template, 6, 26, "ul", 16)(5, AutoComplete_ng_container_5_Template, 3, 2, "ng-container", 15)(6, AutoComplete_button_6_Template, 4, 5, "button", 17);
2174
+ i0.ɵɵelementStart(7, "p-overlay", 18, 1);
2117
2175
  i0.ɵɵtwoWayListener("visibleChange", function AutoComplete_Template_p_overlay_visibleChange_7_listener($event) { i0.ɵɵrestoreView(_r1); i0.ɵɵtwoWayBindingSet(ctx.overlayVisible, $event) || (ctx.overlayVisible = $event); return i0.ɵɵresetView($event); });
2118
2176
  i0.ɵɵlistener("onAnimationStart", function AutoComplete_Template_p_overlay_onAnimationStart_7_listener($event) { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.onOverlayAnimationStart($event)); })("onHide", function AutoComplete_Template_p_overlay_onHide_7_listener() { i0.ɵɵrestoreView(_r1); return i0.ɵɵresetView(ctx.hide()); });
2119
2177
  i0.ɵɵtemplate(9, AutoComplete_ng_template_9_Template, 10, 11, "ng-template", null, 2, i0.ɵɵtemplateRefExtractor);
@@ -2162,7 +2220,7 @@ class AutoComplete extends BaseComponent {
2162
2220
  aria-autocomplete="list"
2163
2221
  role="combobox"
2164
2222
  [attr.placeholder]="placeholder"
2165
- [size]="size"
2223
+ [pSize]="size"
2166
2224
  [attr.maxlength]="maxlength"
2167
2225
  [tabindex]="!disabled ? tabindex : -1"
2168
2226
  [readonly]="readonly"
@@ -2183,9 +2241,9 @@ class AutoComplete extends BaseComponent {
2183
2241
  [fluid]="hasFluid()"
2184
2242
  />
2185
2243
  <ng-container *ngIf="filled && !disabled && showClear && !loading">
2186
- <TimesIcon *ngIf="!clearicon" [styleClass]="'p-autocomplete-clear-icon'" (click)="clear()" [attr.aria-hidden]="true" />
2187
- <span *ngIf="clearicon" class="p-autocomplete-clear-icon" (click)="clear()" [attr.aria-hidden]="true">
2188
- <ng-template *ngTemplateOutlet="clearicon"></ng-template>
2244
+ <TimesIcon *ngIf="!clearIconTemplate && !_clearIconTemplate" [styleClass]="'p-autocomplete-clear-icon'" (click)="clear()" [attr.aria-hidden]="true" />
2245
+ <span *ngIf="clearIconTemplate || _clearIconTemplate" class="p-autocomplete-clear-icon" (click)="clear()" [attr.aria-hidden]="true">
2246
+ <ng-template *ngTemplateOutlet="clearIconTemplate || _clearIconTemplate"></ng-template>
2189
2247
  </span>
2190
2248
  </ng-container>
2191
2249
 
@@ -2212,9 +2270,9 @@ class AutoComplete extends BaseComponent {
2212
2270
  [attr.aria-posinset]="i + 1"
2213
2271
  [attr.aria-selected]="true"
2214
2272
  >
2215
- <ng-container *ngTemplateOutlet="selecteditem; context: { $implicit: option }"></ng-container>
2216
- <p-chip styleClass="p-autocomplete-chip" *ngIf="!selecteditem" [label]="getOptionLabel(option)" [removable]="true">
2217
- <ng-container *ngIf="!removeicon">
2273
+ <ng-container *ngTemplateOutlet="selectedItemTemplate || _selectedItemTemplate; context: { $implicit: option }"></ng-container>
2274
+ <p-chip styleClass="p-autocomplete-chip" *ngIf="!selectedItemTemplate && !_selectedItemTemplate" [label]="getOptionLabel(option)" [removable]="true">
2275
+ <ng-container *ngIf="!removeIconTemplate && !_removeIconTemplate">
2218
2276
  <ng-template #removeicon>
2219
2277
  <span class="p-autocomplete-chip-icon" (click)="!readonly ? removeOption($event, i) : ''">
2220
2278
  <TimesCircleIcon [styleClass]="'p-autocomplete-chip-icon'" [attr.aria-hidden]="true" />
@@ -2222,8 +2280,8 @@ class AutoComplete extends BaseComponent {
2222
2280
  </ng-template>
2223
2281
  </ng-container>
2224
2282
  </p-chip>
2225
- <span *ngIf="removeicon" [attr.aria-hidden]="true">
2226
- <ng-template *ngTemplateOutlet="removeicon; context: { class: 'p-autocomplete-chip-icon' }"></ng-template>
2283
+ <span *ngIf="removeIconTemplate || _removeIconTemplate" [attr.aria-hidden]="true">
2284
+ <ng-template *ngTemplateOutlet="removeIconTemplate || _removeIconTemplate; context: { class: 'p-autocomplete-chip-icon' }"></ng-template>
2227
2285
  </span>
2228
2286
  </li>
2229
2287
  <li class="p-autocomplete-input-chip" role="option">
@@ -2262,16 +2320,16 @@ class AutoComplete extends BaseComponent {
2262
2320
  </li>
2263
2321
  </ul>
2264
2322
  <ng-container *ngIf="loading">
2265
- <SpinnerIcon *ngIf="!loadingicon" [styleClass]="'p-autocomplete-loader'" [spin]="true" [attr.aria-hidden]="true" />
2266
- <span *ngIf="loadingicon" class="p-autocomplete-loader pi-spin " [attr.aria-hidden]="true">
2267
- <ng-template *ngTemplateOutlet="loadingicon"></ng-template>
2323
+ <SpinnerIcon *ngIf="!loadingIconTemplate && !_loadingIconTemplate" [styleClass]="'p-autocomplete-loader'" [spin]="true" [attr.aria-hidden]="true" />
2324
+ <span *ngIf="loadingIconTemplate || _loadingIconTemplate" class="p-autocomplete-loader pi-spin " [attr.aria-hidden]="true">
2325
+ <ng-template *ngTemplateOutlet="loadingIconTemplate || _loadingIconTemplate"></ng-template>
2268
2326
  </span>
2269
2327
  </ng-container>
2270
2328
  <button #ddBtn type="button" [attr.aria-label]="dropdownAriaLabel" class="p-autocomplete-dropdown" [disabled]="disabled" pRipple (click)="handleDropdownClick($event)" *ngIf="dropdown" [attr.tabindex]="tabindex">
2271
2329
  <span *ngIf="dropdownIcon" [ngClass]="dropdownIcon" [attr.aria-hidden]="true"></span>
2272
2330
  <ng-container *ngIf="!dropdownIcon">
2273
- <ChevronDownIcon *ngIf="!dropdownicon" />
2274
- <ng-template *ngTemplateOutlet="dropdownicon"></ng-template>
2331
+ <ChevronDownIcon *ngIf="!dropdownIconTemplate && !_dropdownIconTemplate" />
2332
+ <ng-template *ngTemplateOutlet="dropdownIconTemplate || _dropdownIconTemplate"></ng-template>
2275
2333
  </ng-container>
2276
2334
  </button>
2277
2335
  <p-overlay
@@ -2287,7 +2345,7 @@ class AutoComplete extends BaseComponent {
2287
2345
  >
2288
2346
  <ng-template #content>
2289
2347
  <div [ngClass]="panelClass" [ngStyle]="panelStyle" [class]="panelStyleClass">
2290
- <ng-container *ngTemplateOutlet="header"></ng-container>
2348
+ <ng-container *ngTemplateOutlet="headerTemplate || _headerTemplate"></ng-container>
2291
2349
  <div class="p-autocomplete-list-container" [style.max-height]="virtualScroll ? 'auto' : scrollHeight">
2292
2350
  <p-scroller
2293
2351
  *ngIf="virtualScroll"
@@ -2303,9 +2361,9 @@ class AutoComplete extends BaseComponent {
2303
2361
  <ng-template #content let-items let-scrollerOptions="options">
2304
2362
  <ng-container *ngTemplateOutlet="buildInItems; context: { $implicit: items, options: scrollerOptions }"></ng-container>
2305
2363
  </ng-template>
2306
- <ng-container *ngIf="loader">
2364
+ <ng-container *ngIf="loaderTemplate || _loaderTemplate">
2307
2365
  <ng-template #loader let-scrollerOptions="options">
2308
- <ng-container *ngTemplateOutlet="loader; context: { options: scrollerOptions }"></ng-container>
2366
+ <ng-container *ngTemplateOutlet="loaderTemplate || _loaderTemplate; context: { options: scrollerOptions }"></ng-container>
2309
2367
  </ng-template>
2310
2368
  </ng-container>
2311
2369
  </p-scroller>
@@ -2339,10 +2397,10 @@ class AutoComplete extends BaseComponent {
2339
2397
  (click)="onOptionSelect($event, option)"
2340
2398
  (mouseenter)="onOptionMouseEnter($event, getOptionIndex(i, scrollerOptions))"
2341
2399
  >
2342
- <span *ngIf="!item">{{ getOptionLabel(option) }}</span>
2400
+ <span *ngIf="!itemTemplate && !_itemTemplate">{{ getOptionLabel(option) }}</span>
2343
2401
  <ng-container
2344
2402
  *ngTemplateOutlet="
2345
- item;
2403
+ itemTemplate || _itemTemplate;
2346
2404
  context: {
2347
2405
  $implicit: option,
2348
2406
  index: scrollerOptions.getOptions ? scrollerOptions.getOptions(i) : i
@@ -2353,15 +2411,14 @@ class AutoComplete extends BaseComponent {
2353
2411
  </ng-container>
2354
2412
  </ng-template>
2355
2413
  <li *ngIf="!items || (items && items.length === 0 && showEmptyMessage)" class="p-autocomplete-empty-message" [ngStyle]="{ height: scrollerOptions.itemSize + 'px' }" role="option">
2356
- @if (!empty) {
2414
+ <ng-container *ngIf="!emptyTemplate && !_emptyTemplate; else empty">
2357
2415
  {{ searchResultMessageText }}
2358
- } @else {
2359
- <ng-container *ngTemplateOutlet="empty"></ng-container>
2360
- }
2416
+ </ng-container>
2417
+ <ng-container #empty *ngTemplateOutlet="emptyTemplate || _emptyTemplate"></ng-container>
2361
2418
  </li>
2362
2419
  </ul>
2363
2420
  </ng-template>
2364
- <ng-container *ngTemplateOutlet="footer"></ng-container>
2421
+ <ng-container *ngTemplateOutlet="footerTemplate || _footerTemplate"></ng-container>
2365
2422
  </div>
2366
2423
  <span role="status" aria-live="polite" class="p-hidden-accessible">
2367
2424
  {{ selectedMessageText }}
@@ -2580,39 +2637,42 @@ class AutoComplete extends BaseComponent {
2580
2637
  }], overlayViewChild: [{
2581
2638
  type: ViewChild,
2582
2639
  args: ['overlay']
2583
- }], item: [{
2640
+ }], itemTemplate: [{
2584
2641
  type: ContentChild,
2585
2642
  args: ['item']
2586
- }], empty: [{
2643
+ }], emptyTemplate: [{
2587
2644
  type: ContentChild,
2588
2645
  args: ['empty']
2589
- }], header: [{
2646
+ }], headerTemplate: [{
2590
2647
  type: ContentChild,
2591
2648
  args: ['header']
2592
- }], footer: [{
2649
+ }], footerTemplate: [{
2593
2650
  type: ContentChild,
2594
2651
  args: ['footer']
2595
- }], selecteditem: [{
2652
+ }], selectedItemTemplate: [{
2596
2653
  type: ContentChild,
2597
2654
  args: ['selecteditem']
2598
2655
  }], groupTemplate: [{
2599
2656
  type: ContentChild,
2600
2657
  args: ['group']
2601
- }], loader: [{
2658
+ }], loaderTemplate: [{
2602
2659
  type: ContentChild,
2603
2660
  args: ['loader']
2604
- }], removeicon: [{
2661
+ }], removeIconTemplate: [{
2605
2662
  type: ContentChild,
2606
2663
  args: ['removeicon']
2607
- }], loadingicon: [{
2664
+ }], loadingIconTemplate: [{
2608
2665
  type: ContentChild,
2609
2666
  args: ['loadingicon']
2610
- }], clearicon: [{
2667
+ }], clearIconTemplate: [{
2611
2668
  type: ContentChild,
2612
2669
  args: ['clearicon']
2613
- }], dropdownicon: [{
2670
+ }], dropdownIconTemplate: [{
2614
2671
  type: ContentChild,
2615
2672
  args: ['dropdownicon']
2673
+ }], templates: [{
2674
+ type: ContentChildren,
2675
+ args: [PrimeTemplate]
2616
2676
  }] }); })();
2617
2677
  (() => { (typeof ngDevMode === "undefined" || ngDevMode) && i0.ɵsetClassDebugInfo(AutoComplete, { className: "AutoComplete" }); })();
2618
2678
  class AutoCompleteModule {