primevue 3.36.0 → 3.38.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 (1051) hide show
  1. package/accordion/accordion.cjs.js +2 -2
  2. package/accordion/accordion.cjs.min.js +1 -1
  3. package/accordion/accordion.esm.js +2 -2
  4. package/accordion/accordion.esm.min.js +1 -1
  5. package/accordion/accordion.js +2 -2
  6. package/accordion/accordion.min.js +1 -1
  7. package/animateonscroll/animateonscroll.cjs.js +132 -0
  8. package/animateonscroll/animateonscroll.cjs.min.js +1 -0
  9. package/animateonscroll/animateonscroll.esm.js +126 -0
  10. package/animateonscroll/animateonscroll.esm.min.js +1 -0
  11. package/animateonscroll/animateonscroll.js +133 -0
  12. package/animateonscroll/animateonscroll.min.js +1 -0
  13. package/animateonscroll/style/animateonscrollstyle.cjs.js +5 -0
  14. package/animateonscroll/style/animateonscrollstyle.cjs.min.js +1 -0
  15. package/animateonscroll/style/animateonscrollstyle.esm.js +3 -0
  16. package/animateonscroll/style/animateonscrollstyle.esm.min.js +1 -0
  17. package/animateonscroll/style/animateonscrollstyle.js +10 -0
  18. package/animateonscroll/style/animateonscrollstyle.min.js +1 -0
  19. package/autocomplete/autocomplete.cjs.js +1 -1
  20. package/autocomplete/autocomplete.cjs.min.js +1 -1
  21. package/autocomplete/autocomplete.esm.js +1 -1
  22. package/autocomplete/autocomplete.esm.min.js +1 -1
  23. package/autocomplete/autocomplete.js +1 -1
  24. package/autocomplete/autocomplete.min.js +1 -1
  25. package/basedirective/basedirective.cjs.js +3 -1
  26. package/basedirective/basedirective.cjs.min.js +1 -1
  27. package/basedirective/basedirective.esm.js +3 -1
  28. package/basedirective/basedirective.esm.min.js +1 -1
  29. package/basedirective/basedirective.js +3 -1
  30. package/basedirective/basedirective.min.js +1 -1
  31. package/calendar/calendar.cjs.js +43 -42
  32. package/calendar/calendar.cjs.min.js +1 -1
  33. package/calendar/calendar.esm.js +43 -42
  34. package/calendar/calendar.esm.min.js +1 -1
  35. package/calendar/calendar.js +43 -42
  36. package/calendar/calendar.min.js +1 -1
  37. package/carousel/carousel.cjs.js +5 -0
  38. package/carousel/carousel.cjs.min.js +1 -1
  39. package/carousel/carousel.esm.js +5 -0
  40. package/carousel/carousel.esm.min.js +1 -1
  41. package/carousel/carousel.js +5 -0
  42. package/carousel/carousel.min.js +1 -1
  43. package/cascadeselect/cascadeselect.cjs.js +1 -1
  44. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  45. package/cascadeselect/cascadeselect.esm.js +1 -1
  46. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  47. package/cascadeselect/cascadeselect.js +1 -1
  48. package/cascadeselect/cascadeselect.min.js +1 -1
  49. package/config/config.cjs.js +15 -13
  50. package/config/config.cjs.min.js +1 -1
  51. package/config/config.esm.js +15 -13
  52. package/config/config.esm.min.js +1 -1
  53. package/config/config.js +15 -13
  54. package/config/config.min.js +1 -1
  55. package/confirmpopup/style/confirmpopupstyle.cjs.js +2 -2
  56. package/confirmpopup/style/confirmpopupstyle.cjs.min.js +1 -1
  57. package/confirmpopup/style/confirmpopupstyle.esm.js +2 -2
  58. package/confirmpopup/style/confirmpopupstyle.esm.min.js +1 -1
  59. package/confirmpopup/style/confirmpopupstyle.js +2 -2
  60. package/confirmpopup/style/confirmpopupstyle.min.js +1 -1
  61. package/contextmenu/contextmenu.cjs.js +1 -0
  62. package/contextmenu/contextmenu.cjs.min.js +1 -1
  63. package/contextmenu/contextmenu.esm.js +1 -0
  64. package/contextmenu/contextmenu.esm.min.js +1 -1
  65. package/contextmenu/contextmenu.js +1 -0
  66. package/contextmenu/contextmenu.min.js +1 -1
  67. package/core/core.js +479 -402
  68. package/core/core.min.js +15 -13
  69. package/dropdown/dropdown.cjs.js +1 -1
  70. package/dropdown/dropdown.cjs.min.js +1 -1
  71. package/dropdown/dropdown.esm.js +1 -1
  72. package/dropdown/dropdown.esm.min.js +1 -1
  73. package/dropdown/dropdown.js +1 -1
  74. package/dropdown/dropdown.min.js +1 -1
  75. package/fileupload/fileupload.cjs.js +1 -2
  76. package/fileupload/fileupload.cjs.min.js +1 -1
  77. package/fileupload/fileupload.esm.js +1 -2
  78. package/fileupload/fileupload.esm.min.js +1 -1
  79. package/fileupload/fileupload.js +1 -2
  80. package/fileupload/fileupload.min.js +1 -1
  81. package/listbox/listbox.cjs.js +1 -1
  82. package/listbox/listbox.cjs.min.js +1 -1
  83. package/listbox/listbox.esm.js +1 -1
  84. package/listbox/listbox.esm.min.js +1 -1
  85. package/listbox/listbox.js +1 -1
  86. package/listbox/listbox.min.js +1 -1
  87. package/megamenu/megamenu.cjs.js +4 -3
  88. package/megamenu/megamenu.cjs.min.js +1 -1
  89. package/megamenu/megamenu.esm.js +4 -3
  90. package/megamenu/megamenu.esm.min.js +1 -1
  91. package/megamenu/megamenu.js +4 -3
  92. package/megamenu/megamenu.min.js +1 -1
  93. package/megamenu/style/megamenustyle.cjs.js +1 -0
  94. package/megamenu/style/megamenustyle.cjs.min.js +1 -1
  95. package/megamenu/style/megamenustyle.esm.js +1 -0
  96. package/megamenu/style/megamenustyle.esm.min.js +1 -1
  97. package/megamenu/style/megamenustyle.js +1 -0
  98. package/megamenu/style/megamenustyle.min.js +1 -1
  99. package/menu/menu.cjs.js +3 -2
  100. package/menu/menu.cjs.min.js +1 -1
  101. package/menu/menu.esm.js +3 -2
  102. package/menu/menu.esm.min.js +1 -1
  103. package/menu/menu.js +3 -2
  104. package/menu/menu.min.js +1 -1
  105. package/menubar/menubar.cjs.js +1 -0
  106. package/menubar/menubar.cjs.min.js +1 -1
  107. package/menubar/menubar.esm.js +1 -0
  108. package/menubar/menubar.esm.min.js +1 -1
  109. package/menubar/menubar.js +1 -0
  110. package/menubar/menubar.min.js +1 -1
  111. package/message/message.cjs.js +7 -0
  112. package/message/message.cjs.min.js +1 -1
  113. package/message/message.esm.js +7 -0
  114. package/message/message.esm.min.js +1 -1
  115. package/message/message.js +7 -0
  116. package/message/message.min.js +1 -1
  117. package/multiselect/multiselect.cjs.js +5 -4
  118. package/multiselect/multiselect.cjs.min.js +1 -1
  119. package/multiselect/multiselect.esm.js +5 -4
  120. package/multiselect/multiselect.esm.min.js +1 -1
  121. package/multiselect/multiselect.js +5 -4
  122. package/multiselect/multiselect.min.js +1 -1
  123. package/overlaypanel/overlaypanel.cjs.js +25 -0
  124. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  125. package/overlaypanel/overlaypanel.esm.js +25 -0
  126. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  127. package/overlaypanel/overlaypanel.js +25 -0
  128. package/overlaypanel/overlaypanel.min.js +1 -1
  129. package/package.json +20 -3
  130. package/panelmenu/panelmenu.cjs.js +20 -5
  131. package/panelmenu/panelmenu.cjs.min.js +1 -1
  132. package/panelmenu/panelmenu.esm.js +20 -5
  133. package/panelmenu/panelmenu.esm.min.js +1 -1
  134. package/panelmenu/panelmenu.js +21 -6
  135. package/panelmenu/panelmenu.min.js +1 -1
  136. package/passthrough/tailwind/index.cjs.js +397 -371
  137. package/passthrough/tailwind/index.cjs.min.js +1 -1
  138. package/passthrough/tailwind/index.esm.js +397 -371
  139. package/passthrough/tailwind/index.esm.min.js +1 -1
  140. package/passthrough/tailwind/index.js +397 -371
  141. package/passthrough/tailwind/index.min.js +1 -1
  142. package/picklist/picklist.cjs.js +2 -2
  143. package/picklist/picklist.cjs.min.js +1 -1
  144. package/picklist/picklist.esm.js +2 -2
  145. package/picklist/picklist.esm.min.js +1 -1
  146. package/picklist/picklist.js +2 -2
  147. package/picklist/picklist.min.js +1 -1
  148. package/resources/themes/arya-blue/theme.css +3 -2
  149. package/resources/themes/arya-green/theme.css +3 -2
  150. package/resources/themes/arya-orange/theme.css +3 -2
  151. package/resources/themes/arya-purple/theme.css +3 -2
  152. package/resources/themes/bootstrap4-dark-blue/theme.css +3 -2
  153. package/resources/themes/bootstrap4-dark-purple/theme.css +3 -2
  154. package/resources/themes/bootstrap4-light-blue/theme.css +3 -2
  155. package/resources/themes/bootstrap4-light-purple/theme.css +3 -2
  156. package/resources/themes/fluent-light/theme.css +3 -2
  157. package/resources/themes/lara-dark-blue/theme.css +678 -651
  158. package/resources/themes/lara-dark-indigo/theme.css +678 -651
  159. package/resources/themes/lara-dark-purple/theme.css +678 -651
  160. package/resources/themes/lara-dark-teal/theme.css +678 -651
  161. package/resources/themes/lara-light-blue/theme.css +645 -626
  162. package/resources/themes/lara-light-indigo/theme.css +645 -626
  163. package/resources/themes/lara-light-purple/theme.css +645 -626
  164. package/resources/themes/lara-light-teal/theme.css +895 -876
  165. package/resources/themes/luna-amber/theme.css +3 -2
  166. package/resources/themes/luna-blue/theme.css +3 -2
  167. package/resources/themes/luna-green/theme.css +3 -2
  168. package/resources/themes/luna-pink/theme.css +3 -2
  169. package/resources/themes/md-dark-deeppurple/theme.css +3 -2
  170. package/resources/themes/md-dark-indigo/theme.css +3 -2
  171. package/resources/themes/md-light-deeppurple/theme.css +3 -2
  172. package/resources/themes/md-light-indigo/theme.css +3 -2
  173. package/resources/themes/mdc-dark-deeppurple/theme.css +3 -2
  174. package/resources/themes/mdc-dark-indigo/theme.css +3 -2
  175. package/resources/themes/mdc-light-deeppurple/theme.css +3 -2
  176. package/resources/themes/mdc-light-indigo/theme.css +3 -2
  177. package/resources/themes/mira/theme.css +8 -2
  178. package/resources/themes/nano/theme.css +9 -2
  179. package/resources/themes/nova/theme.css +3 -2
  180. package/resources/themes/nova-accent/theme.css +3 -2
  181. package/resources/themes/nova-alt/theme.css +3 -2
  182. package/resources/themes/nova-vue/theme.css +3 -2
  183. package/resources/themes/rhea/theme.css +3 -2
  184. package/resources/themes/saga-blue/theme.css +3 -2
  185. package/resources/themes/saga-green/theme.css +3 -2
  186. package/resources/themes/saga-orange/theme.css +3 -2
  187. package/resources/themes/saga-purple/theme.css +3 -2
  188. package/resources/themes/soho-dark/theme.css +12 -2
  189. package/resources/themes/soho-light/theme.css +8 -2
  190. package/resources/themes/tailwind-light/theme.css +3 -2
  191. package/resources/themes/vela-blue/theme.css +3 -2
  192. package/resources/themes/vela-green/theme.css +3 -2
  193. package/resources/themes/vela-orange/theme.css +3 -2
  194. package/resources/themes/vela-purple/theme.css +3 -2
  195. package/resources/themes/viva-dark/theme.css +3 -2
  196. package/resources/themes/viva-light/theme.css +3 -2
  197. package/scrollpanel/scrollpanel.cjs.js +30 -28
  198. package/scrollpanel/scrollpanel.cjs.min.js +1 -1
  199. package/scrollpanel/scrollpanel.esm.js +30 -28
  200. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  201. package/scrollpanel/scrollpanel.js +30 -28
  202. package/scrollpanel/scrollpanel.min.js +1 -1
  203. package/selectbutton/selectbutton.cjs.js +2 -2
  204. package/selectbutton/selectbutton.cjs.min.js +1 -1
  205. package/selectbutton/selectbutton.esm.js +2 -2
  206. package/selectbutton/selectbutton.esm.min.js +1 -1
  207. package/selectbutton/selectbutton.js +2 -2
  208. package/selectbutton/selectbutton.min.js +1 -1
  209. package/slider/slider.cjs.js +1 -1
  210. package/slider/slider.cjs.min.js +1 -1
  211. package/slider/slider.esm.js +1 -1
  212. package/slider/slider.esm.min.js +1 -1
  213. package/slider/slider.js +1 -1
  214. package/slider/slider.min.js +1 -1
  215. package/splitbutton/splitbutton.cjs.js +3 -1
  216. package/splitbutton/splitbutton.cjs.min.js +1 -1
  217. package/splitbutton/splitbutton.esm.js +3 -1
  218. package/splitbutton/splitbutton.esm.min.js +1 -1
  219. package/splitbutton/splitbutton.js +3 -1
  220. package/splitbutton/splitbutton.min.js +1 -1
  221. package/splitter/splitter.cjs.js +6 -4
  222. package/splitter/splitter.cjs.min.js +1 -1
  223. package/splitter/splitter.esm.js +6 -4
  224. package/splitter/splitter.esm.min.js +1 -1
  225. package/splitter/splitter.js +6 -4
  226. package/splitter/splitter.min.js +1 -1
  227. package/tieredmenu/tieredmenu.cjs.js +2 -1
  228. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  229. package/tieredmenu/tieredmenu.esm.js +2 -1
  230. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  231. package/tieredmenu/tieredmenu.js +2 -1
  232. package/tieredmenu/tieredmenu.min.js +1 -1
  233. package/tooltip/style/tooltipstyle.cjs.js +1 -1
  234. package/tooltip/style/tooltipstyle.cjs.min.js +1 -1
  235. package/tooltip/style/tooltipstyle.esm.js +1 -1
  236. package/tooltip/style/tooltipstyle.esm.min.js +1 -1
  237. package/tooltip/style/tooltipstyle.js +1 -1
  238. package/tooltip/style/tooltipstyle.min.js +1 -1
  239. package/tooltip/tooltip.cjs.js +15 -1
  240. package/tooltip/tooltip.cjs.min.js +1 -1
  241. package/tooltip/tooltip.esm.js +15 -1
  242. package/tooltip/tooltip.esm.min.js +1 -1
  243. package/tooltip/tooltip.js +15 -1
  244. package/tooltip/tooltip.min.js +1 -1
  245. package/tree/tree.cjs.js +1 -1
  246. package/tree/tree.cjs.min.js +1 -1
  247. package/tree/tree.esm.js +1 -1
  248. package/tree/tree.esm.min.js +1 -1
  249. package/tree/tree.js +1 -1
  250. package/tree/tree.min.js +1 -1
  251. package/utils/utils.cjs.js +20 -8
  252. package/utils/utils.cjs.min.js +1 -1
  253. package/utils/utils.esm.js +20 -8
  254. package/utils/utils.esm.min.js +1 -1
  255. package/utils/utils.js +20 -8
  256. package/utils/utils.min.js +1 -1
  257. package/vetur-attributes.json +4 -0
  258. package/vetur-tags.json +1 -0
  259. package/web-types.json +28 -1
  260. package/LICENSE.md +0 -21
  261. package/README.md +0 -143
  262. package/accordion/Accordion.d.ts +0 -225
  263. package/accordion/Accordion.vue +0 -253
  264. package/accordion/BaseAccordion.vue +0 -45
  265. package/accordion/package.json +0 -9
  266. package/accordion/style/AccordionStyle.d.ts +0 -3
  267. package/accordion/style/package.json +0 -6
  268. package/accordiontab/AccordionTab.d.ts +0 -226
  269. package/accordiontab/AccordionTab.vue +0 -12
  270. package/accordiontab/BaseAccordionTab.vue +0 -26
  271. package/accordiontab/package.json +0 -9
  272. package/accordiontab/style/AccordionTabStyle.d.ts +0 -3
  273. package/accordiontab/style/package.json +0 -6
  274. package/api/Api.d.ts +0 -325
  275. package/api/package.json +0 -6
  276. package/autocomplete/AutoComplete.d.ts +0 -734
  277. package/autocomplete/AutoComplete.vue +0 -948
  278. package/autocomplete/BaseAutoComplete.vue +0 -176
  279. package/autocomplete/package.json +0 -9
  280. package/autocomplete/style/AutoCompleteStyle.d.ts +0 -3
  281. package/autocomplete/style/package.json +0 -6
  282. package/avatar/Avatar.d.ts +0 -169
  283. package/avatar/Avatar.vue +0 -32
  284. package/avatar/BaseAvatar.vue +0 -45
  285. package/avatar/package.json +0 -9
  286. package/avatar/style/AvatarStyle.d.ts +0 -3
  287. package/avatar/style/package.json +0 -6
  288. package/avatargroup/AvatarGroup.d.ts +0 -89
  289. package/avatargroup/AvatarGroup.vue +0 -14
  290. package/avatargroup/BaseAvatarGroup.vue +0 -15
  291. package/avatargroup/package.json +0 -9
  292. package/avatargroup/style/AvatarGroupStyle.d.ts +0 -3
  293. package/avatargroup/style/package.json +0 -6
  294. package/badge/Badge.d.ts +0 -125
  295. package/badge/Badge.vue +0 -14
  296. package/badge/BaseBadge.vue +0 -29
  297. package/badge/package.json +0 -9
  298. package/badge/style/BadgeStyle.d.ts +0 -3
  299. package/badge/style/package.json +0 -6
  300. package/badgedirective/BadgeDirective.d.ts +0 -158
  301. package/badgedirective/package.json +0 -6
  302. package/badgedirective/style/BadgeDirectiveStyle.d.ts +0 -3
  303. package/badgedirective/style/package.json +0 -6
  304. package/base/package.json +0 -5
  305. package/base/style/BaseStyle.d.ts +0 -10
  306. package/base/style/package.json +0 -6
  307. package/basecomponent/BaseComponent.d.ts +0 -23
  308. package/basecomponent/BaseComponent.vue +0 -218
  309. package/basecomponent/package.json +0 -9
  310. package/basecomponent/style/BaseComponentStyle.d.ts +0 -3
  311. package/basecomponent/style/package.json +0 -6
  312. package/basedirective/BaseDirective.d.ts +0 -38
  313. package/basedirective/package.json +0 -6
  314. package/baseicon/BaseIcon.vue +0 -43
  315. package/baseicon/package.json +0 -8
  316. package/baseicon/style/BaseIconStyle.d.ts +0 -3
  317. package/baseicon/style/package.json +0 -6
  318. package/blockui/BaseBlockUI.vue +0 -33
  319. package/blockui/BlockUI.d.ts +0 -161
  320. package/blockui/BlockUI.vue +0 -104
  321. package/blockui/package.json +0 -9
  322. package/blockui/style/BlockUIStyle.d.ts +0 -3
  323. package/blockui/style/package.json +0 -6
  324. package/breadcrumb/BaseBreadcrumb.vue +0 -29
  325. package/breadcrumb/Breadcrumb.d.ts +0 -232
  326. package/breadcrumb/Breadcrumb.vue +0 -35
  327. package/breadcrumb/BreadcrumbItem.vue +0 -99
  328. package/breadcrumb/package.json +0 -9
  329. package/breadcrumb/style/BreadcrumbStyle.d.ts +0 -3
  330. package/breadcrumb/style/package.json +0 -6
  331. package/button/BaseButton.vue +0 -81
  332. package/button/Button.d.ts +0 -248
  333. package/button/Button.vue +0 -58
  334. package/button/package.json +0 -9
  335. package/button/style/ButtonStyle.d.ts +0 -3
  336. package/button/style/package.json +0 -6
  337. package/calendar/BaseCalendar.vue +0 -231
  338. package/calendar/Calendar.d.ts +0 -888
  339. package/calendar/Calendar.vue +0 -2955
  340. package/calendar/package.json +0 -9
  341. package/calendar/style/CalendarStyle.d.ts +0 -3
  342. package/calendar/style/package.json +0 -6
  343. package/card/BaseCard.vue +0 -10
  344. package/card/Card.d.ts +0 -135
  345. package/card/Card.vue +0 -30
  346. package/card/package.json +0 -9
  347. package/card/style/CardStyle.d.ts +0 -3
  348. package/card/style/package.json +0 -6
  349. package/carousel/BaseCarousel.vue +0 -66
  350. package/carousel/Carousel.d.ts +0 -374
  351. package/carousel/Carousel.vue +0 -630
  352. package/carousel/package.json +0 -9
  353. package/carousel/style/CarouselStyle.d.ts +0 -3
  354. package/carousel/style/package.json +0 -6
  355. package/cascadeselect/BaseCascadeSelect.vue +0 -119
  356. package/cascadeselect/CascadeSelect.d.ts +0 -473
  357. package/cascadeselect/CascadeSelect.vue +0 -741
  358. package/cascadeselect/CascadeSelectSub.vue +0 -143
  359. package/cascadeselect/package.json +0 -9
  360. package/cascadeselect/style/CascadeSelectStyle.d.ts +0 -3
  361. package/cascadeselect/style/package.json +0 -6
  362. package/chart/BaseChart.vue +0 -33
  363. package/chart/Chart.d.ts +0 -195
  364. package/chart/Chart.vue +0 -96
  365. package/chart/package.json +0 -9
  366. package/chart/style/ChartStyle.d.ts +0 -3
  367. package/chart/style/package.json +0 -6
  368. package/checkbox/BaseCheckbox.vue +0 -72
  369. package/checkbox/Checkbox.d.ts +0 -271
  370. package/checkbox/Checkbox.vue +0 -90
  371. package/checkbox/package.json +0 -9
  372. package/checkbox/style/CheckboxStyle.d.ts +0 -3
  373. package/checkbox/style/package.json +0 -6
  374. package/chip/BaseChip.vue +0 -37
  375. package/chip/Chip.d.ts +0 -193
  376. package/chip/Chip.vue +0 -43
  377. package/chip/package.json +0 -9
  378. package/chip/style/ChipStyle.d.ts +0 -3
  379. package/chip/style/package.json +0 -6
  380. package/chips/BaseChips.vue +0 -73
  381. package/chips/Chips.d.ts +0 -286
  382. package/chips/Chips.vue +0 -256
  383. package/chips/package.json +0 -9
  384. package/chips/style/ChipsStyle.d.ts +0 -3
  385. package/chips/style/package.json +0 -6
  386. package/colorpicker/BaseColorPicker.vue +0 -54
  387. package/colorpicker/ColorPicker.d.ts +0 -240
  388. package/colorpicker/ColorPicker.vue +0 -649
  389. package/colorpicker/package.json +0 -9
  390. package/colorpicker/style/ColorPickerStyle.d.ts +0 -3
  391. package/colorpicker/style/package.json +0 -6
  392. package/column/BaseColumn.vue +0 -193
  393. package/column/Column.d.ts +0 -999
  394. package/column/Column.vue +0 -11
  395. package/column/package.json +0 -9
  396. package/column/style/ColumnStyle.d.ts +0 -3
  397. package/column/style/package.json +0 -6
  398. package/columngroup/BaseColumnGroup.vue +0 -21
  399. package/columngroup/ColumnGroup.d.ts +0 -133
  400. package/columngroup/ColumnGroup.vue +0 -11
  401. package/columngroup/package.json +0 -9
  402. package/columngroup/style/ColumnGroupStyle.d.ts +0 -3
  403. package/columngroup/style/package.json +0 -6
  404. package/config/PrimeVue.d.ts +0 -374
  405. package/config/package.json +0 -6
  406. package/confirmationeventbus/package.json +0 -5
  407. package/confirmationoptions/ConfirmationOptions.d.ts +0 -84
  408. package/confirmationoptions/package.json +0 -3
  409. package/confirmationservice/ConfirmationService.d.ts +0 -40
  410. package/confirmationservice/package.json +0 -6
  411. package/confirmdialog/BaseConfirmDialog.vue +0 -26
  412. package/confirmdialog/ConfirmDialog.d.ts +0 -262
  413. package/confirmdialog/ConfirmDialog.vue +0 -162
  414. package/confirmdialog/package.json +0 -9
  415. package/confirmdialog/style/ConfirmDialogStyle.d.ts +0 -3
  416. package/confirmdialog/style/package.json +0 -6
  417. package/confirmpopup/BaseConfirmPopup.vue +0 -18
  418. package/confirmpopup/ConfirmPopup.d.ts +0 -212
  419. package/confirmpopup/ConfirmPopup.vue +0 -321
  420. package/confirmpopup/package.json +0 -9
  421. package/confirmpopup/style/ConfirmPopupStyle.d.ts +0 -3
  422. package/confirmpopup/style/package.json +0 -6
  423. package/contextmenu/BaseContextMenu.vue +0 -53
  424. package/contextmenu/ContextMenu.d.ts +0 -393
  425. package/contextmenu/ContextMenu.vue +0 -594
  426. package/contextmenu/ContextMenuSub.vue +0 -241
  427. package/contextmenu/package.json +0 -9
  428. package/contextmenu/style/ContextMenuStyle.d.ts +0 -3
  429. package/contextmenu/style/package.json +0 -6
  430. package/datatable/BaseDataTable.vue +0 -281
  431. package/datatable/BodyCell.vue +0 -538
  432. package/datatable/ColumnFilter.vue +0 -720
  433. package/datatable/DataTable.d.ts +0 -1499
  434. package/datatable/DataTable.vue +0 -2105
  435. package/datatable/FooterCell.vue +0 -103
  436. package/datatable/HeaderCell.vue +0 -365
  437. package/datatable/HeaderCheckbox.vue +0 -94
  438. package/datatable/RowCheckbox.vue +0 -114
  439. package/datatable/RowRadioButton.vue +0 -79
  440. package/datatable/TableBody.vue +0 -639
  441. package/datatable/TableFooter.vue +0 -136
  442. package/datatable/TableHeader.vue +0 -336
  443. package/datatable/package.json +0 -9
  444. package/datatable/style/DataTableStyle.d.ts +0 -3
  445. package/datatable/style/package.json +0 -6
  446. package/dataview/BaseDataView.vue +0 -81
  447. package/dataview/DataView.d.ts +0 -337
  448. package/dataview/DataView.vue +0 -170
  449. package/dataview/package.json +0 -9
  450. package/dataview/style/DataViewStyle.d.ts +0 -3
  451. package/dataview/style/package.json +0 -6
  452. package/dataviewlayoutoptions/BaseDataViewLayoutOptions.vue +0 -18
  453. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +0 -169
  454. package/dataviewlayoutoptions/DataViewLayoutOptions.vue +0 -57
  455. package/dataviewlayoutoptions/package.json +0 -9
  456. package/dataviewlayoutoptions/style/DataViewLayoutOptionsStyle.d.ts +0 -3
  457. package/dataviewlayoutoptions/style/package.json +0 -6
  458. package/deferredcontent/DeferredContent.d.ts +0 -133
  459. package/deferredcontent/DeferredContent.vue +0 -64
  460. package/deferredcontent/package.json +0 -9
  461. package/deferredcontent/style/DeferredContentStyle.d.ts +0 -3
  462. package/deferredcontent/style/package.json +0 -6
  463. package/dialog/BaseDialog.vue +0 -126
  464. package/dialog/Dialog.d.ts +0 -409
  465. package/dialog/Dialog.vue +0 -406
  466. package/dialog/package.json +0 -9
  467. package/dialog/style/DialogStyle.d.ts +0 -3
  468. package/dialog/style/package.json +0 -6
  469. package/dialogservice/DialogService.d.ts +0 -38
  470. package/dialogservice/package.json +0 -6
  471. package/divider/BaseDivider.vue +0 -29
  472. package/divider/Divider.d.ts +0 -129
  473. package/divider/Divider.vue +0 -16
  474. package/divider/package.json +0 -9
  475. package/divider/style/DividerStyle.d.ts +0 -3
  476. package/divider/style/package.json +0 -6
  477. package/dock/BaseDock.vue +0 -45
  478. package/dock/Dock.d.ts +0 -306
  479. package/dock/Dock.vue +0 -40
  480. package/dock/DockSub.vue +0 -309
  481. package/dock/package.json +0 -9
  482. package/dock/style/DockStyle.d.ts +0 -3
  483. package/dock/style/package.json +0 -6
  484. package/dropdown/BaseDropdown.vue +0 -165
  485. package/dropdown/Dropdown.d.ts +0 -711
  486. package/dropdown/Dropdown.vue +0 -929
  487. package/dropdown/package.json +0 -9
  488. package/dropdown/style/DropdownStyle.d.ts +0 -3
  489. package/dropdown/style/package.json +0 -6
  490. package/dynamicdialog/BaseDynamicDialog.vue +0 -16
  491. package/dynamicdialog/DynamicDialog.d.ts +0 -52
  492. package/dynamicdialog/DynamicDialog.vue +0 -77
  493. package/dynamicdialog/package.json +0 -9
  494. package/dynamicdialog/style/AccordionStyle.d.ts +0 -3
  495. package/dynamicdialog/style/package.json +0 -6
  496. package/dynamicdialogeventbus/package.json +0 -5
  497. package/dynamicdialogoptions/DynamicDialogOptions.d.ts +0 -93
  498. package/dynamicdialogoptions/package.json +0 -3
  499. package/editor/BaseEditor.vue +0 -26
  500. package/editor/Editor.d.ts +0 -306
  501. package/editor/Editor.vue +0 -171
  502. package/editor/package.json +0 -9
  503. package/editor/style/EditorStyle.d.ts +0 -3
  504. package/editor/style/package.json +0 -6
  505. package/fieldset/BaseFieldset.vue +0 -24
  506. package/fieldset/Fieldset.d.ts +0 -212
  507. package/fieldset/Fieldset.vue +0 -91
  508. package/fieldset/package.json +0 -9
  509. package/fieldset/style/FieldsetStyle.d.ts +0 -3
  510. package/fieldset/style/package.json +0 -6
  511. package/fileupload/BaseFileUpload.vue +0 -111
  512. package/fileupload/FileContent.vue +0 -75
  513. package/fileupload/FileUpload.d.ts +0 -609
  514. package/fileupload/FileUpload.vue +0 -415
  515. package/fileupload/package.json +0 -9
  516. package/fileupload/style/FileUploadStyle.d.ts +0 -3
  517. package/fileupload/style/package.json +0 -6
  518. package/focustrap/FocusTrap.d.ts +0 -95
  519. package/focustrap/package.json +0 -6
  520. package/focustrap/style/FocusTrapStyle.d.ts +0 -3
  521. package/focustrap/style/package.json +0 -6
  522. package/galleria/BaseGalleria.vue +0 -125
  523. package/galleria/Galleria.d.ts +0 -519
  524. package/galleria/Galleria.vue +0 -95
  525. package/galleria/GalleriaContent.vue +0 -153
  526. package/galleria/GalleriaItem.vue +0 -201
  527. package/galleria/GalleriaThumbnails.vue +0 -537
  528. package/galleria/package.json +0 -9
  529. package/galleria/style/GalleriaStyle.d.ts +0 -3
  530. package/galleria/style/package.json +0 -6
  531. package/icons/angledoubledown/index.d.ts +0 -12
  532. package/icons/angledoubledown/index.vue +0 -18
  533. package/icons/angledoubledown/package.json +0 -9
  534. package/icons/angledoubleleft/index.d.ts +0 -12
  535. package/icons/angledoubleleft/index.vue +0 -18
  536. package/icons/angledoubleleft/package.json +0 -9
  537. package/icons/angledoubleright/index.d.ts +0 -12
  538. package/icons/angledoubleright/index.vue +0 -18
  539. package/icons/angledoubleright/package.json +0 -9
  540. package/icons/angledoubleup/index.d.ts +0 -12
  541. package/icons/angledoubleup/index.vue +0 -18
  542. package/icons/angledoubleup/package.json +0 -9
  543. package/icons/angledown/index.d.ts +0 -12
  544. package/icons/angledown/index.vue +0 -16
  545. package/icons/angledown/package.json +0 -9
  546. package/icons/angleleft/index.d.ts +0 -12
  547. package/icons/angleleft/index.vue +0 -16
  548. package/icons/angleleft/package.json +0 -9
  549. package/icons/angleright/index.d.ts +0 -12
  550. package/icons/angleright/index.vue +0 -16
  551. package/icons/angleright/package.json +0 -9
  552. package/icons/angleup/index.d.ts +0 -12
  553. package/icons/angleup/index.vue +0 -16
  554. package/icons/angleup/package.json +0 -9
  555. package/icons/arrowdown/index.d.ts +0 -12
  556. package/icons/arrowdown/index.vue +0 -32
  557. package/icons/arrowdown/package.json +0 -9
  558. package/icons/arrowup/index.d.ts +0 -12
  559. package/icons/arrowup/index.vue +0 -32
  560. package/icons/arrowup/package.json +0 -9
  561. package/icons/ban/index.d.ts +0 -12
  562. package/icons/ban/index.vue +0 -30
  563. package/icons/ban/package.json +0 -9
  564. package/icons/bars/index.d.ts +0 -12
  565. package/icons/bars/index.vue +0 -18
  566. package/icons/bars/package.json +0 -9
  567. package/icons/calendar/index.d.ts +0 -12
  568. package/icons/calendar/index.vue +0 -16
  569. package/icons/calendar/package.json +0 -9
  570. package/icons/check/index.d.ts +0 -12
  571. package/icons/check/index.vue +0 -16
  572. package/icons/check/package.json +0 -9
  573. package/icons/chevrondown/index.d.ts +0 -12
  574. package/icons/chevrondown/index.vue +0 -16
  575. package/icons/chevrondown/package.json +0 -9
  576. package/icons/chevronleft/index.d.ts +0 -12
  577. package/icons/chevronleft/index.vue +0 -16
  578. package/icons/chevronleft/package.json +0 -9
  579. package/icons/chevronright/index.d.ts +0 -12
  580. package/icons/chevronright/index.vue +0 -16
  581. package/icons/chevronright/package.json +0 -9
  582. package/icons/chevronup/index.d.ts +0 -12
  583. package/icons/chevronup/index.vue +0 -16
  584. package/icons/chevronup/package.json +0 -9
  585. package/icons/exclamationtriangle/index.d.ts +0 -12
  586. package/icons/exclamationtriangle/index.vue +0 -38
  587. package/icons/exclamationtriangle/package.json +0 -9
  588. package/icons/eye/index.d.ts +0 -12
  589. package/icons/eye/index.vue +0 -18
  590. package/icons/eye/package.json +0 -9
  591. package/icons/eyeslash/index.d.ts +0 -12
  592. package/icons/eyeslash/index.vue +0 -32
  593. package/icons/eyeslash/package.json +0 -9
  594. package/icons/filter/index.d.ts +0 -12
  595. package/icons/filter/index.vue +0 -30
  596. package/icons/filter/package.json +0 -9
  597. package/icons/filterslash/index.d.ts +0 -12
  598. package/icons/filterslash/index.vue +0 -32
  599. package/icons/filterslash/package.json +0 -9
  600. package/icons/index.d.ts +0 -12
  601. package/icons/infocircle/index.d.ts +0 -12
  602. package/icons/infocircle/index.vue +0 -32
  603. package/icons/infocircle/package.json +0 -9
  604. package/icons/minus/index.d.ts +0 -12
  605. package/icons/minus/index.vue +0 -16
  606. package/icons/minus/package.json +0 -9
  607. package/icons/pencil/index.d.ts +0 -12
  608. package/icons/pencil/index.vue +0 -30
  609. package/icons/pencil/package.json +0 -9
  610. package/icons/plus/index.d.ts +0 -12
  611. package/icons/plus/index.vue +0 -30
  612. package/icons/plus/package.json +0 -9
  613. package/icons/refresh/index.d.ts +0 -12
  614. package/icons/refresh/index.vue +0 -32
  615. package/icons/refresh/package.json +0 -9
  616. package/icons/search/index.d.ts +0 -12
  617. package/icons/search/index.vue +0 -32
  618. package/icons/search/package.json +0 -9
  619. package/icons/searchminus/index.d.ts +0 -12
  620. package/icons/searchminus/index.vue +0 -32
  621. package/icons/searchminus/package.json +0 -9
  622. package/icons/searchplus/index.d.ts +0 -12
  623. package/icons/searchplus/index.vue +0 -32
  624. package/icons/searchplus/package.json +0 -9
  625. package/icons/sortalt/index.d.ts +0 -12
  626. package/icons/sortalt/index.vue +0 -36
  627. package/icons/sortalt/package.json +0 -9
  628. package/icons/sortamountdown/index.d.ts +0 -12
  629. package/icons/sortamountdown/index.vue +0 -50
  630. package/icons/sortamountdown/package.json +0 -9
  631. package/icons/sortamountupalt/index.d.ts +0 -12
  632. package/icons/sortamountupalt/index.vue +0 -50
  633. package/icons/sortamountupalt/package.json +0 -9
  634. package/icons/spinner/index.d.ts +0 -12
  635. package/icons/spinner/index.vue +0 -30
  636. package/icons/spinner/package.json +0 -9
  637. package/icons/star/index.d.ts +0 -12
  638. package/icons/star/index.vue +0 -30
  639. package/icons/star/package.json +0 -9
  640. package/icons/starfill/index.d.ts +0 -12
  641. package/icons/starfill/index.vue +0 -30
  642. package/icons/starfill/package.json +0 -9
  643. package/icons/thlarge/index.d.ts +0 -12
  644. package/icons/thlarge/index.vue +0 -32
  645. package/icons/thlarge/package.json +0 -9
  646. package/icons/times/index.d.ts +0 -12
  647. package/icons/times/index.vue +0 -16
  648. package/icons/times/package.json +0 -9
  649. package/icons/timescircle/index.d.ts +0 -12
  650. package/icons/timescircle/index.vue +0 -32
  651. package/icons/timescircle/package.json +0 -9
  652. package/icons/trash/index.d.ts +0 -12
  653. package/icons/trash/index.vue +0 -32
  654. package/icons/trash/package.json +0 -9
  655. package/icons/undo/index.d.ts +0 -12
  656. package/icons/undo/index.vue +0 -32
  657. package/icons/undo/package.json +0 -9
  658. package/icons/upload/index.d.ts +0 -12
  659. package/icons/upload/index.vue +0 -32
  660. package/icons/upload/package.json +0 -9
  661. package/icons/windowmaximize/index.d.ts +0 -12
  662. package/icons/windowmaximize/index.vue +0 -32
  663. package/icons/windowmaximize/package.json +0 -9
  664. package/icons/windowminimize/index.d.ts +0 -12
  665. package/icons/windowminimize/index.vue +0 -32
  666. package/icons/windowminimize/package.json +0 -9
  667. package/image/BaseImage.vue +0 -53
  668. package/image/Image.d.ts +0 -318
  669. package/image/Image.vue +0 -232
  670. package/image/package.json +0 -9
  671. package/image/style/ImageStyle.d.ts +0 -3
  672. package/image/style/package.json +0 -6
  673. package/inlinemessage/BaseInlineMessage.vue +0 -25
  674. package/inlinemessage/InlineMessage.d.ts +0 -147
  675. package/inlinemessage/InlineMessage.vue +0 -46
  676. package/inlinemessage/package.json +0 -9
  677. package/inlinemessage/style/InlineMessageStyle.d.ts +0 -3
  678. package/inlinemessage/style/package.json +0 -6
  679. package/inplace/BaseInplace.vue +0 -41
  680. package/inplace/Inplace.d.ts +0 -195
  681. package/inplace/Inplace.vue +0 -71
  682. package/inplace/package.json +0 -9
  683. package/inplace/style/InplaceStyle.d.ts +0 -3
  684. package/inplace/style/package.json +0 -6
  685. package/inputmask/BaseInputMask.vue +0 -33
  686. package/inputmask/InputMask.d.ts +0 -186
  687. package/inputmask/InputMask.vue +0 -512
  688. package/inputmask/package.json +0 -9
  689. package/inputmask/style/InputMaskStyle.d.ts +0 -3
  690. package/inputmask/style/package.json +0 -6
  691. package/inputnumber/BaseInputNumber.vue +0 -153
  692. package/inputnumber/InputNumber.d.ts +0 -369
  693. package/inputnumber/InputNumber.vue +0 -1004
  694. package/inputnumber/package.json +0 -9
  695. package/inputnumber/style/InputNumberStyle.d.ts +0 -3
  696. package/inputnumber/style/package.json +0 -6
  697. package/inputswitch/BaseInputSwitch.vue +0 -57
  698. package/inputswitch/InputSwitch.d.ts +0 -198
  699. package/inputswitch/InputSwitch.vue +0 -64
  700. package/inputswitch/package.json +0 -9
  701. package/inputswitch/style/InputSwitchStyle.d.ts +0 -3
  702. package/inputswitch/style/package.json +0 -6
  703. package/inputtext/BaseInputText.vue +0 -22
  704. package/inputtext/InputText.d.ts +0 -142
  705. package/inputtext/InputText.vue +0 -31
  706. package/inputtext/package.json +0 -9
  707. package/inputtext/style/InputTextStyle.d.ts +0 -3
  708. package/inputtext/style/package.json +0 -6
  709. package/knob/BaseKnob.vue +0 -81
  710. package/knob/Knob.d.ts +0 -243
  711. package/knob/Knob.vue +0 -219
  712. package/knob/package.json +0 -9
  713. package/knob/style/KnobStyle.d.ts +0 -3
  714. package/knob/style/package.json +0 -6
  715. package/listbox/BaseListbox.vue +0 -89
  716. package/listbox/Listbox.d.ts +0 -521
  717. package/listbox/Listbox.vue +0 -717
  718. package/listbox/package.json +0 -9
  719. package/listbox/style/ListboxStyle.d.ts +0 -3
  720. package/listbox/style/package.json +0 -6
  721. package/megamenu/BaseMegaMenu.vue +0 -45
  722. package/megamenu/MegaMenu.d.ts +0 -364
  723. package/megamenu/MegaMenu.vue +0 -590
  724. package/megamenu/MegaMenuSub.vue +0 -235
  725. package/megamenu/package.json +0 -9
  726. package/megamenu/style/MegaMenuStyle.d.ts +0 -3
  727. package/megamenu/style/package.json +0 -6
  728. package/menu/BaseMenu.vue +0 -53
  729. package/menu/Menu.d.ts +0 -354
  730. package/menu/Menu.vue +0 -373
  731. package/menu/Menuitem.vue +0 -117
  732. package/menu/package.json +0 -9
  733. package/menu/style/MenuStyle.d.ts +0 -3
  734. package/menu/style/package.json +0 -6
  735. package/menubar/BaseMenubar.vue +0 -37
  736. package/menubar/Menubar.d.ts +0 -356
  737. package/menubar/Menubar.vue +0 -599
  738. package/menubar/MenubarSub.vue +0 -223
  739. package/menubar/package.json +0 -9
  740. package/menubar/style/MenubarStyle.d.ts +0 -3
  741. package/menubar/style/package.json +0 -6
  742. package/menuitem/MenuItem.d.ts +0 -95
  743. package/menuitem/package.json +0 -3
  744. package/message/BaseMessage.vue +0 -45
  745. package/message/Message.d.ts +0 -234
  746. package/message/Message.vue +0 -82
  747. package/message/package.json +0 -9
  748. package/message/style/MessageStyle.d.ts +0 -3
  749. package/message/style/package.json +0 -6
  750. package/multiselect/BaseMultiSelect.vue +0 -174
  751. package/multiselect/MultiSelect.d.ts +0 -852
  752. package/multiselect/MultiSelect.vue +0 -1071
  753. package/multiselect/package.json +0 -9
  754. package/multiselect/style/MultiSelectStyle.d.ts +0 -3
  755. package/multiselect/style/package.json +0 -6
  756. package/orderlist/BaseOrderList.vue +0 -81
  757. package/orderlist/OrderList.d.ts +0 -366
  758. package/orderlist/OrderList.vue +0 -561
  759. package/orderlist/package.json +0 -9
  760. package/orderlist/style/OrderListStyle.d.ts +0 -3
  761. package/orderlist/style/package.json +0 -6
  762. package/organizationchart/BaseOrganizationChart.vue +0 -37
  763. package/organizationchart/OrganizationChart.d.ts +0 -342
  764. package/organizationchart/OrganizationChart.vue +0 -77
  765. package/organizationchart/OrganizationChartNode.vue +0 -164
  766. package/organizationchart/package.json +0 -9
  767. package/organizationchart/style/OrganizationChartStyle.d.ts +0 -3
  768. package/organizationchart/style/package.json +0 -6
  769. package/overlayeventbus/package.json +0 -5
  770. package/overlaypanel/BaseOverlayPanel.vue +0 -45
  771. package/overlaypanel/OverlayPanel.d.ts +0 -253
  772. package/overlaypanel/OverlayPanel.vue +0 -300
  773. package/overlaypanel/package.json +0 -9
  774. package/overlaypanel/style/OverlayPanelStyle.d.ts +0 -3
  775. package/overlaypanel/style/package.json +0 -6
  776. package/paginator/BasePaginator.vue +0 -49
  777. package/paginator/CurrentPageReport.vue +0 -56
  778. package/paginator/FirstPageLink.vue +0 -38
  779. package/paginator/JumpToPageDropdown.vue +0 -56
  780. package/paginator/JumpToPageInput.vue +0 -57
  781. package/paginator/LastPageLink.vue +0 -38
  782. package/paginator/NextPageLink.vue +0 -38
  783. package/paginator/PageLinks.vue +0 -56
  784. package/paginator/Paginator.d.ts +0 -367
  785. package/paginator/Paginator.vue +0 -303
  786. package/paginator/PrevPageLink.vue +0 -38
  787. package/paginator/RowsPerPageDropdown.vue +0 -58
  788. package/paginator/package.json +0 -9
  789. package/paginator/style/PaginatorStyle.d.ts +0 -3
  790. package/paginator/style/package.json +0 -6
  791. package/panel/BasePanel.vue +0 -24
  792. package/panel/Panel.d.ts +0 -244
  793. package/panel/Panel.vue +0 -95
  794. package/panel/package.json +0 -9
  795. package/panel/style/PanelStyle.d.ts +0 -3
  796. package/panel/style/package.json +0 -6
  797. package/panelmenu/BasePanelMenu.vue +0 -33
  798. package/panelmenu/PanelMenu.d.ts +0 -379
  799. package/panelmenu/PanelMenu.vue +0 -259
  800. package/panelmenu/PanelMenuList.vue +0 -397
  801. package/panelmenu/PanelMenuSub.vue +0 -212
  802. package/panelmenu/package.json +0 -9
  803. package/panelmenu/style/PanelMenuStyle.d.ts +0 -3
  804. package/panelmenu/style/package.json +0 -6
  805. package/passthrough/index.d.ts +0 -6
  806. package/passthrough/package.json +0 -6
  807. package/passthrough/tailwind/index.d.ts +0 -4
  808. package/passthrough/tailwind/package.json +0 -6
  809. package/password/BasePassword.vue +0 -114
  810. package/password/Password.d.ts +0 -346
  811. package/password/Password.vue +0 -301
  812. package/password/package.json +0 -9
  813. package/password/style/PasswordStyle.d.ts +0 -3
  814. package/password/style/package.json +0 -6
  815. package/picklist/BasePickList.vue +0 -101
  816. package/picklist/PickList.d.ts +0 -583
  817. package/picklist/PickList.vue +0 -892
  818. package/picklist/package.json +0 -9
  819. package/picklist/style/PickListStyle.d.ts +0 -3
  820. package/picklist/style/package.json +0 -6
  821. package/portal/Portal.d.ts +0 -37
  822. package/portal/Portal.vue +0 -41
  823. package/portal/package.json +0 -9
  824. package/portal/style/PortalStyle.d.ts +0 -3
  825. package/portal/style/package.json +0 -6
  826. package/progressbar/BaseProgressBar.vue +0 -29
  827. package/progressbar/ProgressBar.d.ts +0 -135
  828. package/progressbar/ProgressBar.vue +0 -35
  829. package/progressbar/package.json +0 -9
  830. package/progressbar/style/ProgressBarStyle.d.ts +0 -3
  831. package/progressbar/style/package.json +0 -6
  832. package/progressspinner/BaseProgressSpinner.vue +0 -29
  833. package/progressspinner/ProgressSpinner.d.ts +0 -129
  834. package/progressspinner/ProgressSpinner.vue +0 -23
  835. package/progressspinner/package.json +0 -9
  836. package/progressspinner/style/ProgressSpinnerStyle.d.ts +0 -3
  837. package/progressspinner/style/package.json +0 -6
  838. package/radiobutton/BaseRadioButton.vue +0 -51
  839. package/radiobutton/RadioButton.d.ts +0 -194
  840. package/radiobutton/RadioButton.vue +0 -52
  841. package/radiobutton/package.json +0 -9
  842. package/radiobutton/style/RadioButtonStyle.d.ts +0 -3
  843. package/radiobutton/style/package.json +0 -6
  844. package/rating/BaseRating.vue +0 -49
  845. package/rating/Rating.d.ts +0 -300
  846. package/rating/Rating.vue +0 -128
  847. package/rating/package.json +0 -9
  848. package/rating/style/RatingStyle.d.ts +0 -3
  849. package/rating/style/package.json +0 -6
  850. package/ripple/Ripple.d.ts +0 -82
  851. package/ripple/package.json +0 -6
  852. package/ripple/style/RippleStyle.d.ts +0 -3
  853. package/ripple/style/package.json +0 -6
  854. package/row/Row.d.ts +0 -113
  855. package/row/Row.vue +0 -11
  856. package/row/package.json +0 -9
  857. package/row/style/RowStyle.d.ts +0 -3
  858. package/row/style/package.json +0 -6
  859. package/scrollpanel/BaseScrollPanel.vue +0 -21
  860. package/scrollpanel/ScrollPanel.d.ts +0 -161
  861. package/scrollpanel/ScrollPanel.vue +0 -360
  862. package/scrollpanel/package.json +0 -9
  863. package/scrollpanel/style/ScrollPanelStyle.d.ts +0 -3
  864. package/scrollpanel/style/package.json +0 -6
  865. package/scrolltop/BaseScrollTop.vue +0 -33
  866. package/scrolltop/ScrollTop.d.ts +0 -158
  867. package/scrolltop/ScrollTop.vue +0 -97
  868. package/scrolltop/package.json +0 -9
  869. package/scrolltop/style/ScrollTopStyle.d.ts +0 -3
  870. package/scrolltop/style/package.json +0 -6
  871. package/selectbutton/BaseSelectButton.vue +0 -37
  872. package/selectbutton/SelectButton.d.ts +0 -253
  873. package/selectbutton/SelectButton.vue +0 -188
  874. package/selectbutton/package.json +0 -9
  875. package/selectbutton/style/SelectButtonStyle.d.ts +0 -3
  876. package/selectbutton/style/package.json +0 -6
  877. package/sidebar/BaseSidebar.vue +0 -53
  878. package/sidebar/Sidebar.d.ts +0 -241
  879. package/sidebar/Sidebar.vue +0 -195
  880. package/sidebar/package.json +0 -9
  881. package/sidebar/style/SidebarStyle.d.ts +0 -3
  882. package/sidebar/style/package.json +0 -6
  883. package/skeleton/BaseSkeleton.vue +0 -41
  884. package/skeleton/Skeleton.d.ts +0 -135
  885. package/skeleton/Skeleton.vue +0 -18
  886. package/skeleton/package.json +0 -9
  887. package/skeleton/style/SkeletonStyle.d.ts +0 -3
  888. package/skeleton/style/package.json +0 -6
  889. package/slider/BaseSlider.vue +0 -54
  890. package/slider/Slider.d.ts +0 -201
  891. package/slider/Slider.vue +0 -325
  892. package/slider/package.json +0 -9
  893. package/slider/style/SliderStyle.d.ts +0 -3
  894. package/slider/style/package.json +0 -6
  895. package/speeddial/BaseSpeedDial.vue +0 -76
  896. package/speeddial/SpeedDial.d.ts +0 -364
  897. package/speeddial/SpeedDial.vue +0 -466
  898. package/speeddial/package.json +0 -9
  899. package/speeddial/style/SpeedDialStyle.d.ts +0 -3
  900. package/speeddial/style/package.json +0 -6
  901. package/splitbutton/BaseSplitButton.vue +0 -93
  902. package/splitbutton/SplitButton.d.ts +0 -274
  903. package/splitbutton/SplitButton.vue +0 -115
  904. package/splitbutton/package.json +0 -9
  905. package/splitbutton/style/SplitButtonStyle.d.ts +0 -3
  906. package/splitbutton/style/package.json +0 -6
  907. package/splitter/BaseSplitter.vue +0 -37
  908. package/splitter/Splitter.d.ts +0 -235
  909. package/splitter/Splitter.vue +0 -378
  910. package/splitter/package.json +0 -9
  911. package/splitter/style/SplitterStyle.d.ts +0 -3
  912. package/splitter/style/package.json +0 -6
  913. package/splitterpanel/BaseSplitterPanel.vue +0 -25
  914. package/splitterpanel/SplitterPanel.d.ts +0 -133
  915. package/splitterpanel/SplitterPanel.vue +0 -28
  916. package/splitterpanel/package.json +0 -9
  917. package/splitterpanel/style/SplitterPanelStyle.d.ts +0 -3
  918. package/splitterpanel/style/package.json +0 -6
  919. package/steps/BaseSteps.vue +0 -32
  920. package/steps/Steps.d.ts +0 -217
  921. package/steps/Steps.vue +0 -208
  922. package/steps/package.json +0 -9
  923. package/steps/style/StepsStyle.d.ts +0 -3
  924. package/steps/style/package.json +0 -6
  925. package/styleclass/StyleClass.d.ts +0 -100
  926. package/styleclass/package.json +0 -6
  927. package/styleclass/style/StyleClassStyle.d.ts +0 -3
  928. package/styleclass/style/package.json +0 -6
  929. package/tabmenu/BaseTabMenu.vue +0 -37
  930. package/tabmenu/TabMenu.d.ts +0 -261
  931. package/tabmenu/TabMenu.vue +0 -303
  932. package/tabmenu/package.json +0 -9
  933. package/tabmenu/style/TabMenuStyle.d.ts +0 -3
  934. package/tabmenu/style/package.json +0 -6
  935. package/tabpanel/BaseTabPanel.vue +0 -21
  936. package/tabpanel/TabPanel.d.ts +0 -198
  937. package/tabpanel/TabPanel.vue +0 -12
  938. package/tabpanel/package.json +0 -9
  939. package/tabpanel/style/TabPanelStyle.d.ts +0 -3
  940. package/tabpanel/style/package.json +0 -6
  941. package/tabview/BaseTabView.vue +0 -53
  942. package/tabview/TabView.d.ts +0 -257
  943. package/tabview/TabView.vue +0 -372
  944. package/tabview/package.json +0 -9
  945. package/tabview/style/TabViewStyle.d.ts +0 -3
  946. package/tabview/style/package.json +0 -6
  947. package/tag/BaseTag.vue +0 -21
  948. package/tag/Tag.d.ts +0 -143
  949. package/tag/Tag.vue +0 -18
  950. package/tag/package.json +0 -9
  951. package/tag/style/TagStyle.d.ts +0 -3
  952. package/tag/style/package.json +0 -6
  953. package/terminal/BaseTerminal.vue +0 -25
  954. package/terminal/Terminal.d.ts +0 -165
  955. package/terminal/Terminal.vue +0 -57
  956. package/terminal/package.json +0 -9
  957. package/terminal/style/TerminalStyle.d.ts +0 -3
  958. package/terminal/style/package.json +0 -6
  959. package/terminalservice/TerminalService.d.ts +0 -30
  960. package/terminalservice/package.json +0 -6
  961. package/textarea/BaseTextarea.vue +0 -19
  962. package/textarea/Textarea.d.ts +0 -145
  963. package/textarea/Textarea.vue +0 -55
  964. package/textarea/package.json +0 -9
  965. package/textarea/style/TextareaStyle.d.ts +0 -3
  966. package/textarea/style/package.json +0 -6
  967. package/tieredmenu/BaseTieredMenu.vue +0 -57
  968. package/tieredmenu/TieredMenu.d.ts +0 -395
  969. package/tieredmenu/TieredMenu.vue +0 -608
  970. package/tieredmenu/TieredMenuSub.vue +0 -211
  971. package/tieredmenu/package.json +0 -9
  972. package/tieredmenu/style/TieredMenuStyle.d.ts +0 -3
  973. package/tieredmenu/style/package.json +0 -6
  974. package/timeline/BaseTimeline.vue +0 -27
  975. package/timeline/Timeline.d.ts +0 -219
  976. package/timeline/Timeline.vue +0 -43
  977. package/timeline/package.json +0 -9
  978. package/timeline/style/TimelineStyle.d.ts +0 -3
  979. package/timeline/style/package.json +0 -6
  980. package/toast/BaseToast.vue +0 -61
  981. package/toast/Toast.d.ts +0 -349
  982. package/toast/Toast.vue +0 -162
  983. package/toast/ToastMessage.vue +0 -120
  984. package/toast/package.json +0 -9
  985. package/toast/style/ToastStyle.d.ts +0 -3
  986. package/toast/style/package.json +0 -6
  987. package/toasteventbus/package.json +0 -5
  988. package/toastservice/ToastService.d.ts +0 -52
  989. package/toastservice/package.json +0 -6
  990. package/togglebutton/BaseToggleButton.vue +0 -64
  991. package/togglebutton/ToggleButton.d.ts +0 -263
  992. package/togglebutton/ToggleButton.vue +0 -105
  993. package/togglebutton/package.json +0 -9
  994. package/togglebutton/style/ToggleButtonStyle.d.ts +0 -3
  995. package/togglebutton/style/package.json +0 -6
  996. package/toolbar/BaseToolbar.vue +0 -21
  997. package/toolbar/Toolbar.d.ts +0 -139
  998. package/toolbar/Toolbar.vue +0 -22
  999. package/toolbar/package.json +0 -9
  1000. package/toolbar/style/ToolbarStyle.d.ts +0 -3
  1001. package/toolbar/style/package.json +0 -6
  1002. package/tooltip/Tooltip.d.ts +0 -197
  1003. package/tooltip/package.json +0 -6
  1004. package/tooltip/style/TooltipStyle.d.ts +0 -3
  1005. package/tooltip/style/package.json +0 -6
  1006. package/tree/BaseTree.vue +0 -81
  1007. package/tree/Tree.d.ts +0 -464
  1008. package/tree/Tree.vue +0 -244
  1009. package/tree/TreeNode.vue +0 -444
  1010. package/tree/package.json +0 -9
  1011. package/tree/style/TreeStyle.d.ts +0 -3
  1012. package/tree/style/package.json +0 -6
  1013. package/treeselect/BaseTreeSelect.vue +0 -87
  1014. package/treeselect/TreeSelect.d.ts +0 -417
  1015. package/treeselect/TreeSelect.vue +0 -441
  1016. package/treeselect/package.json +0 -9
  1017. package/treeselect/style/TreeSelectStyle.d.ts +0 -3
  1018. package/treeselect/style/package.json +0 -6
  1019. package/treetable/BaseTreeTable.vue +0 -173
  1020. package/treetable/BodyCell.vue +0 -217
  1021. package/treetable/FooterCell.vue +0 -103
  1022. package/treetable/HeaderCell.vue +0 -238
  1023. package/treetable/TreeTable.d.ts +0 -804
  1024. package/treetable/TreeTable.vue +0 -853
  1025. package/treetable/TreeTableRow.vue +0 -431
  1026. package/treetable/package.json +0 -9
  1027. package/treetable/style/TreeTableStyle.d.ts +0 -3
  1028. package/treetable/style/package.json +0 -6
  1029. package/tristatecheckbox/BaseTriStateCheckbox.vue +0 -42
  1030. package/tristatecheckbox/TriStateCheckbox.d.ts +0 -244
  1031. package/tristatecheckbox/TriStateCheckbox.vue +0 -111
  1032. package/tristatecheckbox/package.json +0 -9
  1033. package/tristatecheckbox/style/TriStateCheckboxStyle.d.ts +0 -3
  1034. package/tristatecheckbox/style/package.json +0 -6
  1035. package/ts-helpers.d.ts +0 -38
  1036. package/useconfirm/UseConfirm.d.ts +0 -6
  1037. package/useconfirm/package.json +0 -6
  1038. package/usedialog/UseDialog.d.ts +0 -5
  1039. package/usedialog/package.json +0 -6
  1040. package/usestyle/UseStyle.d.ts +0 -21
  1041. package/usestyle/package.json +0 -6
  1042. package/usetoast/UseToast.d.ts +0 -3
  1043. package/usetoast/package.json +0 -6
  1044. package/utils/Utils.d.ts +0 -113
  1045. package/utils/package.json +0 -6
  1046. package/virtualscroller/BaseVirtualScroller.vue +0 -100
  1047. package/virtualscroller/VirtualScroller.d.ts +0 -520
  1048. package/virtualscroller/VirtualScroller.vue +0 -673
  1049. package/virtualscroller/package.json +0 -9
  1050. package/virtualscroller/style/VirtualScrollerStyle.d.ts +0 -3
  1051. package/virtualscroller/style/package.json +0 -6
@@ -0,0 +1,133 @@
1
+ this.primevue = this.primevue || {};
2
+ this.primevue.animateonscroll = (function (utils, BaseDirective) {
3
+ 'use strict';
4
+
5
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
6
+
7
+ var BaseDirective__default = /*#__PURE__*/_interopDefaultLegacy(BaseDirective);
8
+
9
+ var BaseAnimateOnScroll = BaseDirective__default["default"].extend({});
10
+
11
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
12
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
13
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
14
+ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
15
+ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
16
+ function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
17
+ function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
18
+ function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
19
+ function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
20
+ function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) arr2[i] = arr[i]; return arr2; }
21
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t["return"] && (u = t["return"](), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
22
+ function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
23
+ var AnimateOnScroll = BaseAnimateOnScroll.extend('animateonscroll', {
24
+ created: function created() {
25
+ this.$value = this.$value || {};
26
+ this.$el.style.opacity = this.$value.enterClass ? '0' : '';
27
+ },
28
+ mounted: function mounted() {
29
+ this.$el.setAttribute('data-pd-animateonscroll', true);
30
+ this.bindIntersectionObserver();
31
+ },
32
+ unmounted: function unmounted() {
33
+ this.unbindAnimationEvents();
34
+ this.unbindIntersectionObserver();
35
+ },
36
+ observer: undefined,
37
+ resetObserver: undefined,
38
+ isObserverActive: false,
39
+ animationState: undefined,
40
+ animationEndListener: undefined,
41
+ methods: {
42
+ bindAnimationEvents: function bindAnimationEvents() {
43
+ var _this = this;
44
+ if (!this.animationEndListener) {
45
+ this.animationEndListener = function () {
46
+ utils.DomHandler.removeMultipleClasses(_this.$el, [_this.$value.enterClass, _this.$value.leaveClass]);
47
+ !_this.$modifiers.once && _this.resetObserver.observe(_this.$el);
48
+ _this.unbindAnimationEvents();
49
+ };
50
+ this.$el.addEventListener('animationend', this.animationEndListener);
51
+ }
52
+ },
53
+ bindIntersectionObserver: function bindIntersectionObserver() {
54
+ var _this2 = this;
55
+ var _this$$value = this.$value,
56
+ root = _this$$value.root,
57
+ rootMargin = _this$$value.rootMargin,
58
+ _this$$value$threshol = _this$$value.threshold,
59
+ threshold = _this$$value$threshol === void 0 ? 0.5 : _this$$value$threshol;
60
+ var options = {
61
+ root: root,
62
+ rootMargin: rootMargin,
63
+ threshold: threshold
64
+ };
65
+
66
+ // States
67
+ this.observer = new IntersectionObserver(function (_ref) {
68
+ var _ref2 = _slicedToArray(_ref, 1),
69
+ entry = _ref2[0];
70
+ if (_this2.isObserverActive) {
71
+ if (entry.boundingClientRect.top > 0) {
72
+ entry.isIntersecting ? _this2.enter() : _this2.leave();
73
+ }
74
+ } else if (entry.isIntersecting) {
75
+ _this2.enter();
76
+ }
77
+ _this2.isObserverActive = true;
78
+ }, options);
79
+ setTimeout(function () {
80
+ return _this2.observer.observe(_this2.$el);
81
+ }, 0);
82
+
83
+ // Reset
84
+ this.resetObserver = new IntersectionObserver(function (_ref3) {
85
+ var _ref4 = _slicedToArray(_ref3, 1),
86
+ entry = _ref4[0];
87
+ if (entry.boundingClientRect.top > 0 && !entry.isIntersecting) {
88
+ _this2.$el.style.opacity = _this2.$value.enterClass ? '0' : '';
89
+ utils.DomHandler.removeMultipleClasses(_this2.$el, [_this2.$value.enterClass, _this2.$value.leaveClass]);
90
+ _this2.resetObserver.unobserve(_this2.$el);
91
+ }
92
+ _this2.animationState = undefined;
93
+ }, _objectSpread(_objectSpread({}, options), {}, {
94
+ threshold: 0
95
+ }));
96
+ },
97
+ enter: function enter() {
98
+ if (this.animationState !== 'enter' && this.$value.enterClass) {
99
+ this.$el.style.opacity = '';
100
+ utils.DomHandler.removeMultipleClasses(this.$el, this.$value.leaveClass);
101
+ utils.DomHandler.addMultipleClasses(this.$el, this.$value.enterClass);
102
+ this.$modifiers.once && this.unbindIntersectionObserver(this.$el);
103
+ this.bindAnimationEvents();
104
+ this.animationState = 'enter';
105
+ }
106
+ },
107
+ leave: function leave() {
108
+ if (this.animationState !== 'leave' && this.$value.leaveClass) {
109
+ this.$el.style.opacity = this.$value.enterClass ? '0' : '';
110
+ utils.DomHandler.removeMultipleClasses(this.$el, this.$value.enterClass);
111
+ utils.DomHandler.addMultipleClasses(this.$el, this.$value.leaveClass);
112
+ this.bindAnimationEvents();
113
+ this.animationState = 'leave';
114
+ }
115
+ },
116
+ unbindAnimationEvents: function unbindAnimationEvents() {
117
+ if (this.animationEndListener) {
118
+ this.$el.removeEventListener('animationend', this.animationEndListener);
119
+ this.animationEndListener = undefined;
120
+ }
121
+ },
122
+ unbindIntersectionObserver: function unbindIntersectionObserver() {
123
+ var _this$observer, _this$resetObserver;
124
+ (_this$observer = this.observer) === null || _this$observer === void 0 || _this$observer.unobserve(this.$el);
125
+ (_this$resetObserver = this.resetObserver) === null || _this$resetObserver === void 0 || _this$resetObserver.unobserve(this.$el);
126
+ this.isObserverActive = false;
127
+ }
128
+ }
129
+ });
130
+
131
+ return AnimateOnScroll;
132
+
133
+ })(primevue.utils, primevue.basedirective);
@@ -0,0 +1 @@
1
+ this.primevue=this.primevue||{},this.primevue.animateonscroll=function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){o(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function o(e,t,n){return(t=a(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function a(e){var t=l(e,"string");return"symbol"===r(t)?t:String(t)}function l(e,t){if("object"!==r(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==r(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function u(e,t){return f(e)||d(e,t)||c(e,t)||v()}function v(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function c(e,t){if(e){if("string"==typeof e)return b(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?b(e,t):void 0}}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function d(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,i,s,o,a=[],l=!0,u=!1;try{if(s=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;l=!1}else for(;!(l=(r=s.call(n)).done)&&(a.push(r.value),a.length!==t);l=!0);}catch(e){u=!0,i=e}finally{try{if(!l&&null!=n.return&&(o=n.return(),Object(o)!==o))return}finally{if(u)throw i}}return a}}function f(e){if(Array.isArray(e))return e}return n(primevue.basedirective).default.extend({}).extend("animateonscroll",{created:function(){this.$value=this.$value||{},this.$el.style.opacity=this.$value.enterClass?"0":""},mounted:function(){this.$el.setAttribute("data-pd-animateonscroll",!0),this.bindIntersectionObserver()},unmounted:function(){this.unbindAnimationEvents(),this.unbindIntersectionObserver()},observer:void 0,resetObserver:void 0,isObserverActive:!1,animationState:void 0,animationEndListener:void 0,methods:{bindAnimationEvents:function(){var t=this;this.animationEndListener||(this.animationEndListener=function(){e.DomHandler.removeMultipleClasses(t.$el,[t.$value.enterClass,t.$value.leaveClass]),!t.$modifiers.once&&t.resetObserver.observe(t.$el),t.unbindAnimationEvents()},this.$el.addEventListener("animationend",this.animationEndListener))},bindIntersectionObserver:function(){var t=this,n=this.$value,r=n.threshold,i={root:n.root,rootMargin:n.rootMargin,threshold:void 0===r?.5:r};this.observer=new IntersectionObserver((function(e){var n=u(e,1)[0];t.isObserverActive?n.boundingClientRect.top>0&&(n.isIntersecting?t.enter():t.leave()):n.isIntersecting&&t.enter(),t.isObserverActive=!0}),i),setTimeout((function(){return t.observer.observe(t.$el)}),0),this.resetObserver=new IntersectionObserver((function(n){var r=u(n,1)[0];r.boundingClientRect.top>0&&!r.isIntersecting&&(t.$el.style.opacity=t.$value.enterClass?"0":"",e.DomHandler.removeMultipleClasses(t.$el,[t.$value.enterClass,t.$value.leaveClass]),t.resetObserver.unobserve(t.$el)),t.animationState=void 0}),s(s({},i),{},{threshold:0}))},enter:function(){"enter"!==this.animationState&&this.$value.enterClass&&(this.$el.style.opacity="",e.DomHandler.removeMultipleClasses(this.$el,this.$value.leaveClass),e.DomHandler.addMultipleClasses(this.$el,this.$value.enterClass),this.$modifiers.once&&this.unbindIntersectionObserver(this.$el),this.bindAnimationEvents(),this.animationState="enter")},leave:function(){"leave"!==this.animationState&&this.$value.leaveClass&&(this.$el.style.opacity=this.$value.enterClass?"0":"",e.DomHandler.removeMultipleClasses(this.$el,this.$value.enterClass),e.DomHandler.addMultipleClasses(this.$el,this.$value.leaveClass),this.bindAnimationEvents(),this.animationState="leave")},unbindAnimationEvents:function(){this.animationEndListener&&(this.$el.removeEventListener("animationend",this.animationEndListener),this.animationEndListener=void 0)},unbindIntersectionObserver:function(){var e,t;null===(e=this.observer)||void 0===e||e.unobserve(this.$el),null===(t=this.resetObserver)||void 0===t||t.unobserve(this.$el),this.isObserverActive=!1}}})}(primevue.utils);
@@ -0,0 +1,5 @@
1
+ 'use strict';
2
+
3
+ var AnimateOnScrollStyle = {};
4
+
5
+ module.exports = AnimateOnScrollStyle;
@@ -0,0 +1 @@
1
+ "use strict";module.exports={};
@@ -0,0 +1,3 @@
1
+ var AnimateOnScrollStyle = {};
2
+
3
+ export { AnimateOnScrollStyle as default };
@@ -0,0 +1 @@
1
+ var a={};export{a as default};
@@ -0,0 +1,10 @@
1
+ this.primevue = this.primevue || {};
2
+ this.primevue.animateonscroll = this.primevue.animateonscroll || {};
3
+ this.primevue.animateonscroll.style = (function () {
4
+ 'use strict';
5
+
6
+ var AnimateOnScrollStyle = {};
7
+
8
+ return AnimateOnScrollStyle;
9
+
10
+ })();
@@ -0,0 +1 @@
1
+ this.primevue=this.primevue||{},this.primevue.animateonscroll=this.primevue.animateonscroll||{},this.primevue.animateonscroll.style=function(){"use strict";return{}}();
@@ -723,7 +723,7 @@ var script = {
723
723
  return this.isValidOption(option) && this.getOptionLabel(option).toLocaleLowerCase(this.searchLocale) === value.toLocaleLowerCase(this.searchLocale);
724
724
  },
725
725
  isValidOption: function isValidOption(option) {
726
- return option && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
726
+ return utils.ObjectUtils.isNotEmpty(option) && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
727
727
  },
728
728
  isValidSelectedOption: function isValidSelectedOption(option) {
729
729
  return this.isValidOption(option) && this.isSelected(option);
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/button"),t=require("primevue/icons/chevrondown"),i=require("primevue/icons/spinner"),n=require("primevue/icons/timescircle"),o=require("primevue/overlayeventbus"),s=require("primevue/portal"),l=require("primevue/ripple"),r=require("primevue/utils"),a=require("primevue/virtualscroller"),u=require("primevue/autocomplete/style"),c=require("primevue/basecomponent"),d=require("vue");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var h=p(e),f=p(t),m=p(i),y=p(n),v=p(o),b=p(s),g=p(l),O=p(a),x=p(u);function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(e,t){if(e){if("string"==typeof e)return L(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?L(e,t):void 0}}function w(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function C(e){if(Array.isArray(e))return L(e)}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var V={name:"AutoComplete",extends:{name:"BaseAutoComplete",extends:p(c).default,props:{modelValue:null,suggestions:{type:Array,default:null},field:{type:[String,Function],default:null},optionLabel:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:"200px"},dropdown:{type:Boolean,default:!1},dropdownMode:{type:String,default:"blank"},autoHighlight:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:null},dataKey:{type:String,default:null},minLength:{type:Number,default:1},delay:{type:Number,default:300},appendTo:{type:String,default:"body"},forceSelection:{type:Boolean,default:!1},completeOnFocus:{type:Boolean,default:!1},inputId:{type:String,default:null},inputStyle:{type:Object,default:null},inputClass:{type:[String,Object],default:null},inputProps:{type:null,default:null},panelStyle:{type:Object,default:null},panelClass:{type:[String,Object],default:null},panelProps:{type:null,default:null},dropdownIcon:{type:String,default:void 0},dropdownClass:{type:[String,Object],default:null},loadingIcon:{type:String,default:void 0},removeTokenIcon:{type:String,default:void 0},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!0},selectOnFocus:{type:Boolean,default:!1},searchLocale:{type:String,default:void 0},searchMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptySearchMessage:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},style:x.default,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","change","focus","blur","item-select","item-unselect","dropdown-click","clear","complete","before-show","before-hide","show","hide"],outsideClickListener:null,resizeListener:null,scrollHandler:null,overlay:null,virtualScroller:null,searchTimeout:null,focusOnHover:!1,dirty:!1,data:function(){return{id:this.$attrs.id,focused:!1,focusedOptionIndex:-1,focusedMultipleOptionIndex:-1,overlayVisible:!1,searching:!1}},watch:{"$attrs.id":function(e){this.id=e||r.UniqueComponentId()},suggestions:function(){this.searching&&(this.show(),this.focusedOptionIndex=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.searching=!1),this.autoUpdateModel()}},mounted:function(){this.id=this.id||r.UniqueComponentId(),this.autoUpdateModel()},updated:function(){this.overlayVisible&&this.alignOverlay()},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(r.ZIndexUtils.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel:function(e){return this.field||this.optionLabel?r.ObjectUtils.resolveFieldData(e,this.field||this.optionLabel):e},getOptionValue:function(e){return e},getOptionRenderKey:function(e,t){return(this.dataKey?r.ObjectUtils.resolveFieldData(e,this.dataKey):this.getOptionLabel(e))+"_"+t},getPTOptions:function(e,t,i,n){return this.ptm(n,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(i,t),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return!!this.optionDisabled&&r.ObjectUtils.resolveFieldData(e,this.optionDisabled)},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return r.ObjectUtils.resolveFieldData(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return r.ObjectUtils.resolveFieldData(e,this.optionGroupChildren)},getAriaPosInset:function(e){var t=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter((function(e){return t.isOptionGroup(e)})).length:e)+1},show:function(e){this.$emit("before-show"),this.dirty=!0,this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,e&&r.DomHandler.focus(this.$refs.focusInput)},hide:function(e){var t=this;setTimeout((function(){t.$emit("before-hide"),t.dirty=e,t.overlayVisible=!1,t.focusedOptionIndex=-1,e&&r.DomHandler.focus(t.$refs.focusInput)}),0)},onFocus:function(e){this.disabled||(!this.dirty&&this.completeOnFocus&&this.search(e,e.target.value,"focus"),this.dirty=!0,this.focused=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.overlayVisible&&this.scrollInView(this.focusedOptionIndex),this.$emit("focus",e))},onBlur:function(e){this.dirty=!1,this.focused=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onKeyDown:function(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e)}},onInput:function(e){var t=this;this.searchTimeout&&clearTimeout(this.searchTimeout);var i=e.target.value;this.multiple||this.updateModel(e,i),0===i.length?(this.hide(),this.$emit("clear")):i.length>=this.minLength?(this.focusedOptionIndex=-1,this.searchTimeout=setTimeout((function(){t.search(e,i,"input")}),this.delay)):this.hide()},onChange:function(e){var t=this;if(this.forceSelection){var i=!1;if(this.visibleOptions){var n=this.visibleOptions.find((function(e){return t.isOptionMatched(e,t.$refs.focusInput.value||"")}));void 0!==n&&(i=!0,!this.isSelected(n)&&this.onOptionSelect(e,n))}i||(this.$refs.focusInput.value="",this.$emit("clear"),!this.multiple&&this.updateModel(e,null))}},onMultipleContainerFocus:function(){this.disabled||(this.focused=!0)},onMultipleContainerBlur:function(){this.focusedMultipleOptionIndex=-1,this.focused=!1},onMultipleContainerKeyDown:function(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOnMultiple(e);break;case"ArrowRight":this.onArrowRightKeyOnMultiple(e);break;case"Backspace":this.onBackspaceKeyOnMultiple(e)}},onContainerClick:function(e){this.disabled||this.searching||this.loading||this.isInputClicked(e)||this.isDropdownClicked(e)||this.overlay&&this.overlay.contains(e.target)||r.DomHandler.focus(this.$refs.focusInput)},onDropdownClick:function(e){var t=void 0;this.overlayVisible?this.hide(!0):(r.DomHandler.focus(this.$refs.focusInput),t=this.$refs.focusInput.value,"blank"===this.dropdownMode?this.search(e,"","dropdown"):"current"===this.dropdownMode&&this.search(e,t,"dropdown")),this.$emit("dropdown-click",{originalEvent:e,query:t})},onOptionSelect:function(e,t){var i,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=this.getOptionValue(t);this.multiple?(this.$refs.focusInput.value="",this.isSelected(t)||this.updateModel(e,[].concat(C(i=this.modelValue||[])||w(i)||k(i)||S(),[o]))):this.updateModel(e,o),this.$emit("item-select",{originalEvent:e,value:t}),n&&this.hide(!0)},onOptionMouseMove:function(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onOverlayClick:function(e){v.default.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){if("Escape"===e.code)this.onEscapeKey(e)},onArrowDownKey:function(e){if(this.overlayVisible){var t=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),e.preventDefault()}},onArrowUpKey:function(e){if(this.overlayVisible)if(e.altKey)-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var t=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),e.preventDefault()}},onArrowLeftKey:function(e){var t=e.currentTarget;this.focusedOptionIndex=-1,this.multiple&&(r.ObjectUtils.isEmpty(t.value)&&this.hasSelectedOption?(r.DomHandler.focus(this.$refs.multiContainer),this.focusedMultipleOptionIndex=this.modelValue.length):e.stopPropagation())},onArrowRightKey:function(e){this.focusedOptionIndex=-1,this.multiple&&e.stopPropagation()},onHomeKey:function(e){var t=e.currentTarget;t.setSelectionRange(0,e.shiftKey?t.value.length:0),this.focusedOptionIndex=-1,e.preventDefault()},onEndKey:function(e){var t=e.currentTarget,i=t.value.length;t.setSelectionRange(e.shiftKey?0:i,i),this.focusedOptionIndex=-1,e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.overlayVisible?(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.hide()):this.onArrowDownKey(e),e.preventDefault()},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey:function(e){-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide()},onBackspaceKey:function(e){if(this.multiple){if(r.ObjectUtils.isNotEmpty(this.modelValue)&&!this.$refs.focusInput.value){var t=this.modelValue[this.modelValue.length-1],i=this.modelValue.slice(0,-1);this.$emit("update:modelValue",i),this.$emit("item-unselect",{originalEvent:e,value:t})}e.stopPropagation()}},onArrowLeftKeyOnMultiple:function(){this.focusedMultipleOptionIndex=this.focusedMultipleOptionIndex<1?0:this.focusedMultipleOptionIndex-1},onArrowRightKeyOnMultiple:function(){this.focusedMultipleOptionIndex++,this.focusedMultipleOptionIndex>this.modelValue.length-1&&(this.focusedMultipleOptionIndex=-1,r.DomHandler.focus(this.$refs.focusInput))},onBackspaceKeyOnMultiple:function(e){-1!==this.focusedMultipleOptionIndex&&this.removeOption(e,this.focusedMultipleOptionIndex)},onOverlayEnter:function(e){r.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay),r.DomHandler.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay()},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave:function(e){r.ZIndexUtils.clear(e)},alignOverlay:function(){var e=this.multiple?this.$refs.multiContainer:this.$refs.focusInput;"self"===this.appendTo?r.DomHandler.relativePosition(this.overlay,e):(this.overlay.style.minWidth=r.DomHandler.getOuterWidth(e)+"px",r.DomHandler.absolutePosition(this.overlay,e))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.overlayVisible&&e.overlay&&e.isOutsideClicked(t)&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new r.ConnectedOverlayScrollHandler(this.$refs.container,(function(){e.overlayVisible&&e.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!r.DomHandler.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isOutsideClicked:function(e){return!this.overlay.contains(e.target)&&!this.isInputClicked(e)&&!this.isDropdownClicked(e)},isInputClicked:function(e){return this.multiple?e.target===this.$refs.multiContainer||this.$refs.multiContainer.contains(e.target):e.target===this.$refs.focusInput},isDropdownClicked:function(e){return!!this.$refs.dropdownButton&&(e.target===this.$refs.dropdownButton||this.$refs.dropdownButton.$el.contains(e.target))},isOptionMatched:function(e,t){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.searchLocale)===t.toLocaleLowerCase(this.searchLocale)},isValidOption:function(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected:function(e){return r.ObjectUtils.equals(this.modelValue,this.getOptionValue(e),this.equalityKey)},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex((function(t){return e.isValidOption(t)}))},findLastOptionIndex:function(){var e=this;return r.ObjectUtils.findLastIndex(this.visibleOptions,(function(t){return e.isValidOption(t)}))},findNextOptionIndex:function(e){var t=this,i=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((function(e){return t.isValidOption(e)})):-1;return i>-1?i+e+1:e},findPrevOptionIndex:function(e){var t=this,i=e>0?r.ObjectUtils.findLastIndex(this.visibleOptions.slice(0,e),(function(e){return t.isValidOption(e)})):-1;return i>-1?i:e},findSelectedOptionIndex:function(){var e=this;return this.hasSelectedOption?this.visibleOptions.findIndex((function(t){return e.isValidSelectedOption(t)})):-1},findFirstFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},search:function(e,t,i){null!=t&&("input"===i&&0===t.trim().length||(this.searching=!0,this.$emit("complete",{originalEvent:e,query:t})))},removeOption:function(e,t){var i=this,n=this.modelValue[t],o=this.modelValue.filter((function(e,i){return i!==t})).map((function(e){return i.getOptionValue(e)}));this.updateModel(e,o),this.$emit("item-unselect",{originalEvent:e,value:n}),this.dirty=!0,r.DomHandler.focus(this.$refs.focusInput)},changeFocusedOptionIndex:function(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),(this.selectOnFocus||this.autoHighlight)&&this.onOptionSelect(e,this.visibleOptions[t],!1))},scrollInView:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=-1!==t?"".concat(this.id,"_").concat(t):this.focusedOptionId,n=r.DomHandler.findSingle(this.list,'li[id="'.concat(i,'"]'));n?n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"start"}):this.virtualScrollerDisabled||setTimeout((function(){e.virtualScroller&&e.virtualScroller.scrollToIndex(-1!==t?t:e.focusedOptionIndex)}),0)},autoUpdateModel:function(){(this.selectOnFocus||this.autoHighlight)&&this.autoOptionFocus&&!this.hasSelectedOption&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(e,t){this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})},flatOptions:function(e){var t=this;return(e||[]).reduce((function(e,i,n){e.push({optionGroup:i,group:!0,index:n});var o=t.getOptionGroupChildren(i);return o&&o.forEach((function(t){return e.push(t)})),e}),[])},overlayRef:function(e){this.overlay=e},listRef:function(e,t){this.list=e,t&&t(e)},virtualScrollerRef:function(e){this.virtualScroller=e}},computed:{visibleOptions:function(){return this.optionGroupLabel?this.flatOptions(this.suggestions):this.suggestions||[]},inputValue:function(){if(this.modelValue){if("object"===I(this.modelValue)){var e=this.getOptionLabel(this.modelValue);return null!=e?e:this.modelValue}return this.modelValue}return""},hasSelectedOption:function(){return r.ObjectUtils.isNotEmpty(this.modelValue)},equalityKey:function(){return this.dataKey},searchResultMessageText:function(){return r.ObjectUtils.isNotEmpty(this.visibleOptions)&&this.overlayVisible?this.searchMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptySearchMessageText},searchMessageText:function(){return this.searchMessage||this.$primevue.config.locale.searchMessage||""},emptySearchMessageText:function(){return this.emptySearchMessage||this.$primevue.config.locale.emptySearchMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue.length:"1"):this.emptySelectionMessageText},focusedOptionId:function(){return-1!==this.focusedOptionIndex?"".concat(this.id,"_").concat(this.focusedOptionIndex):null},focusedMultipleOptionId:function(){return-1!==this.focusedMultipleOptionIndex?"".concat(this.id,"_multiple_option_").concat(this.focusedMultipleOptionIndex):null},ariaSetSize:function(){var e=this;return this.visibleOptions.filter((function(t){return!e.isOptionGroup(t)})).length},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},components:{Button:h.default,VirtualScroller:O.default,Portal:b.default,ChevronDownIcon:f.default,SpinnerIcon:m.default,TimesCircleIcon:y.default},directives:{ripple:g.default}};function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function M(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function B(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?M(Object(i),!0).forEach((function(t){$(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):M(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function $(e,t,i){return(t=E(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function E(e){var t=K(e,"string");return"symbol"===D(t)?t:String(t)}function K(e,t){if("object"!==D(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==D(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var P=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],T=["aria-activedescendant"],F=["id","aria-label","aria-setsize","aria-posinset"],A=["id","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],j=["id"],H=["id"],N=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove","data-p-highlight","data-p-focus","data-p-disabled"];V.render=function(e,t,i,n,o,s){var l=d.resolveComponent("SpinnerIcon"),r=d.resolveComponent("Button"),a=d.resolveComponent("VirtualScroller"),u=d.resolveComponent("Portal"),c=d.resolveDirective("ripple");return d.openBlock(),d.createElementBlock("div",d.mergeProps({ref:"container",class:e.cx("root"),style:e.sx("root"),onClick:t[15]||(t[15]=function(){return s.onContainerClick&&s.onContainerClick.apply(s,arguments)})},e.ptm("root"),{"data-pc-name":"autocomplete"}),[e.multiple?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("input",d.mergeProps({key:0,ref:"focusInput",id:e.inputId,type:"text",class:[e.cx("input"),e.inputClass],style:e.inputStyle,value:s.inputValue,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?s.focusedOptionId:void 0,onFocus:t[0]||(t[0]=function(){return s.onFocus&&s.onFocus.apply(s,arguments)}),onBlur:t[1]||(t[1]=function(){return s.onBlur&&s.onBlur.apply(s,arguments)}),onKeydown:t[2]||(t[2]=function(){return s.onKeyDown&&s.onKeyDown.apply(s,arguments)}),onInput:t[3]||(t[3]=function(){return s.onInput&&s.onInput.apply(s,arguments)}),onChange:t[4]||(t[4]=function(){return s.onChange&&s.onChange.apply(s,arguments)})},B(B({},e.inputProps),e.ptm("input"))),null,16,P)),e.multiple?(d.openBlock(),d.createElementBlock("ul",d.mergeProps({key:1,ref:"multiContainer",class:e.cx("container"),tabindex:"-1",role:"listbox","aria-orientation":"horizontal","aria-activedescendant":o.focused?s.focusedMultipleOptionId:void 0,onFocus:t[10]||(t[10]=function(){return s.onMultipleContainerFocus&&s.onMultipleContainerFocus.apply(s,arguments)}),onBlur:t[11]||(t[11]=function(){return s.onMultipleContainerBlur&&s.onMultipleContainerBlur.apply(s,arguments)}),onKeydown:t[12]||(t[12]=function(){return s.onMultipleContainerKeyDown&&s.onMultipleContainerKeyDown.apply(s,arguments)})},e.ptm("container")),[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(e.modelValue,(function(t,i){return d.openBlock(),d.createElementBlock("li",d.mergeProps({key:i,id:o.id+"_multiple_option_"+i,class:e.cx("token",{i:i}),role:"option","aria-label":s.getOptionLabel(t),"aria-selected":!0,"aria-setsize":e.modelValue.length,"aria-posinset":i+1},e.ptm("token")),[d.renderSlot(e.$slots,"chip",{value:t},(function(){return[d.createElementVNode("span",d.mergeProps({class:e.cx("tokenLabel")},e.ptm("tokenLabel")),d.toDisplayString(s.getOptionLabel(t)),17)]})),d.renderSlot(e.$slots,"removetokenicon",{class:d.normalizeClass(e.cx("removeTokenIcon")),index:i,onClick:function(e){return s.removeOption(e,i)}},(function(){return[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(e.removeTokenIcon?"span":"TimesCircleIcon"),d.mergeProps({class:[e.cx("removeTokenIcon"),e.removeTokenIcon],onClick:function(e){return s.removeOption(e,i)},"aria-hidden":"true"},e.ptm("removeTokenIcon")),null,16,["class","onClick"]))]}))],16,F)})),128)),d.createElementVNode("li",d.mergeProps({class:e.cx("inputToken"),role:"option"},e.ptm("inputToken")),[d.createElementVNode("input",d.mergeProps({ref:"focusInput",id:e.inputId,type:"text",style:e.inputStyle,class:e.inputClass,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?s.focusedOptionId:void 0,onFocus:t[5]||(t[5]=function(){return s.onFocus&&s.onFocus.apply(s,arguments)}),onBlur:t[6]||(t[6]=function(){return s.onBlur&&s.onBlur.apply(s,arguments)}),onKeydown:t[7]||(t[7]=function(){return s.onKeyDown&&s.onKeyDown.apply(s,arguments)}),onInput:t[8]||(t[8]=function(){return s.onInput&&s.onInput.apply(s,arguments)}),onChange:t[9]||(t[9]=function(){return s.onChange&&s.onChange.apply(s,arguments)})},B(B({},e.inputProps),e.ptm("input"))),null,16,A)],16)],16,T)):d.createCommentVNode("",!0),o.searching||e.loading?d.renderSlot(e.$slots,"loadingicon",{key:2,class:d.normalizeClass(e.cx("loadingIcon"))},(function(){return[e.loadingIcon?(d.openBlock(),d.createElementBlock("i",d.mergeProps({key:0,class:["pi-spin",e.cx("loadingIcon"),e.loadingIcon],"aria-hidden":"true"},e.ptm("loadingIcon")),null,16)):(d.openBlock(),d.createBlock(l,d.mergeProps({key:1,class:[e.cx("loadingIcon"),e.loadingIcon],spin:"","aria-hidden":"true"},e.ptm("loadingIcon")),null,16,["class"]))]})):d.createCommentVNode("",!0),e.dropdown?(d.openBlock(),d.createBlock(r,{key:3,ref:"dropdownButton",type:"button",tabindex:"-1",class:d.normalizeClass([e.cx("dropdownButton"),e.dropdownClass]),disabled:e.disabled,"aria-hidden":"true",onClick:s.onDropdownClick,unstyled:e.unstyled,pt:e.ptm("dropdownButton"),"data-pc-section":"dropdownbutton"},{icon:d.withCtx((function(){return[d.renderSlot(e.$slots,"dropdownicon",{class:d.normalizeClass(e.dropdownIcon)},(function(){return[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(e.dropdownIcon?"span":"ChevronDownIcon"),d.mergeProps({class:e.dropdownIcon},e.ptm("dropdownButton").icon,{"data-pc-section":"dropdownicon"}),null,16,["class"]))]}))]})),_:3},8,["class","disabled","onClick","unstyled","pt"])):d.createCommentVNode("",!0),d.createElementVNode("span",d.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSearchResult"),{"data-p-hidden-accessible":!0}),d.toDisplayString(s.searchResultMessageText),17),d.createVNode(u,{appendTo:e.appendTo},{default:d.withCtx((function(){return[d.createVNode(d.Transition,d.mergeProps({name:"p-connected-overlay",onEnter:s.onOverlayEnter,onAfterEnter:s.onOverlayAfterEnter,onLeave:s.onOverlayLeave,onAfterLeave:s.onOverlayAfterLeave},e.ptm("transition")),{default:d.withCtx((function(){return[o.overlayVisible?(d.openBlock(),d.createElementBlock("div",d.mergeProps({key:0,ref:s.overlayRef,class:[e.cx("panel"),e.panelClass],style:B(B({},e.panelStyle),{},{"max-height":s.virtualScrollerDisabled?e.scrollHeight:""}),onClick:t[13]||(t[13]=function(){return s.onOverlayClick&&s.onOverlayClick.apply(s,arguments)}),onKeydown:t[14]||(t[14]=function(){return s.onOverlayKeyDown&&s.onOverlayKeyDown.apply(s,arguments)})},B(B({},e.panelProps),e.ptm("panel"))),[d.renderSlot(e.$slots,"header",{value:e.modelValue,suggestions:s.visibleOptions}),d.createVNode(a,d.mergeProps({ref:s.virtualScrollerRef},e.virtualScrollerOptions,{style:{height:e.scrollHeight},items:s.visibleOptions,tabindex:-1,disabled:s.virtualScrollerDisabled,pt:e.ptm("virtualScroller")}),d.createSlots({content:d.withCtx((function(t){var i=t.styleClass,n=t.contentRef,l=t.items,r=t.getItemOptions,a=t.contentStyle,u=t.itemSize;return[d.createElementVNode("ul",d.mergeProps({ref:function(e){return s.listRef(e,n)},id:o.id+"_list",class:[e.cx("list"),i],style:a,role:"listbox"},e.ptm("list")),[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l,(function(t,i){return d.openBlock(),d.createElementBlock(d.Fragment,{key:s.getOptionRenderKey(t,s.getOptionIndex(i,r))},[s.isOptionGroup(t)?(d.openBlock(),d.createElementBlock("li",d.mergeProps({key:0,id:o.id+"_"+s.getOptionIndex(i,r),style:{height:u?u+"px":void 0},class:e.cx("itemGroup"),role:"option"},e.ptm("itemGroup")),[d.renderSlot(e.$slots,"optiongroup",{option:t.optionGroup,item:t.optionGroup,index:s.getOptionIndex(i,r)},(function(){return[d.createTextVNode(d.toDisplayString(s.getOptionGroupLabel(t.optionGroup)),1)]}))],16,H)):d.withDirectives((d.openBlock(),d.createElementBlock("li",d.mergeProps({key:1,id:o.id+"_"+s.getOptionIndex(i,r),style:{height:u?u+"px":void 0},class:e.cx("item",{option:t,i:i,getItemOptions:r}),role:"option","aria-label":s.getOptionLabel(t),"aria-selected":s.isSelected(t),"aria-disabled":s.isOptionDisabled(t),"aria-setsize":s.ariaSetSize,"aria-posinset":s.getAriaPosInset(s.getOptionIndex(i,r)),onClick:function(e){return s.onOptionSelect(e,t)},onMousemove:function(e){return s.onOptionMouseMove(e,s.getOptionIndex(i,r))},"data-p-highlight":s.isSelected(t),"data-p-focus":o.focusedOptionIndex===s.getOptionIndex(i,r),"data-p-disabled":s.isOptionDisabled(t)},s.getPTOptions(t,r,i,"item")),[e.$slots.option?d.renderSlot(e.$slots,"option",{key:0,option:t,index:s.getOptionIndex(i,r)},(function(){return[d.createTextVNode(d.toDisplayString(s.getOptionLabel(t)),1)]})):d.renderSlot(e.$slots,"item",{key:1,item:t,index:s.getOptionIndex(i,r)},(function(){return[d.createTextVNode(d.toDisplayString(s.getOptionLabel(t)),1)]}))],16,N)),[[c]])],64)})),128)),!l||l&&0===l.length?(d.openBlock(),d.createElementBlock("li",d.mergeProps({key:0,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage")),[d.renderSlot(e.$slots,"empty",{},(function(){return[d.createTextVNode(d.toDisplayString(s.searchResultMessageText),1)]}))],16)):d.createCommentVNode("",!0)],16,j)]})),_:2},[e.$slots.loader?{name:"loader",fn:d.withCtx((function(t){return[d.renderSlot(e.$slots,"loader",{options:t.options})]})),key:"0"}:void 0]),1040,["style","items","disabled","pt"]),d.renderSlot(e.$slots,"footer",{value:e.modelValue,suggestions:s.visibleOptions}),d.createElementVNode("span",d.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),d.toDisplayString(s.selectedMessageText),17)],16)):d.createCommentVNode("",!0)]})),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:3},8,["appendTo"])],16)},module.exports=V;
1
+ "use strict";var e=require("primevue/button"),t=require("primevue/icons/chevrondown"),i=require("primevue/icons/spinner"),n=require("primevue/icons/timescircle"),o=require("primevue/overlayeventbus"),s=require("primevue/portal"),l=require("primevue/ripple"),r=require("primevue/utils"),a=require("primevue/virtualscroller"),u=require("primevue/autocomplete/style"),c=require("primevue/basecomponent"),d=require("vue");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var h=p(e),f=p(t),m=p(i),y=p(n),v=p(o),b=p(s),g=p(l),O=p(a),x=p(u);function I(e){return I="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},I(e)}function S(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function k(e,t){if(e){if("string"==typeof e)return L(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?L(e,t):void 0}}function w(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function C(e){if(Array.isArray(e))return L(e)}function L(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var V={name:"AutoComplete",extends:{name:"BaseAutoComplete",extends:p(c).default,props:{modelValue:null,suggestions:{type:Array,default:null},field:{type:[String,Function],default:null},optionLabel:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:"200px"},dropdown:{type:Boolean,default:!1},dropdownMode:{type:String,default:"blank"},autoHighlight:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:null},dataKey:{type:String,default:null},minLength:{type:Number,default:1},delay:{type:Number,default:300},appendTo:{type:String,default:"body"},forceSelection:{type:Boolean,default:!1},completeOnFocus:{type:Boolean,default:!1},inputId:{type:String,default:null},inputStyle:{type:Object,default:null},inputClass:{type:[String,Object],default:null},inputProps:{type:null,default:null},panelStyle:{type:Object,default:null},panelClass:{type:[String,Object],default:null},panelProps:{type:null,default:null},dropdownIcon:{type:String,default:void 0},dropdownClass:{type:[String,Object],default:null},loadingIcon:{type:String,default:void 0},removeTokenIcon:{type:String,default:void 0},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!0},selectOnFocus:{type:Boolean,default:!1},searchLocale:{type:String,default:void 0},searchMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptySearchMessage:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},style:x.default,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","change","focus","blur","item-select","item-unselect","dropdown-click","clear","complete","before-show","before-hide","show","hide"],outsideClickListener:null,resizeListener:null,scrollHandler:null,overlay:null,virtualScroller:null,searchTimeout:null,focusOnHover:!1,dirty:!1,data:function(){return{id:this.$attrs.id,focused:!1,focusedOptionIndex:-1,focusedMultipleOptionIndex:-1,overlayVisible:!1,searching:!1}},watch:{"$attrs.id":function(e){this.id=e||r.UniqueComponentId()},suggestions:function(){this.searching&&(this.show(),this.focusedOptionIndex=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.searching=!1),this.autoUpdateModel()}},mounted:function(){this.id=this.id||r.UniqueComponentId(),this.autoUpdateModel()},updated:function(){this.overlayVisible&&this.alignOverlay()},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(r.ZIndexUtils.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel:function(e){return this.field||this.optionLabel?r.ObjectUtils.resolveFieldData(e,this.field||this.optionLabel):e},getOptionValue:function(e){return e},getOptionRenderKey:function(e,t){return(this.dataKey?r.ObjectUtils.resolveFieldData(e,this.dataKey):this.getOptionLabel(e))+"_"+t},getPTOptions:function(e,t,i,n){return this.ptm(n,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(i,t),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return!!this.optionDisabled&&r.ObjectUtils.resolveFieldData(e,this.optionDisabled)},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return r.ObjectUtils.resolveFieldData(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return r.ObjectUtils.resolveFieldData(e,this.optionGroupChildren)},getAriaPosInset:function(e){var t=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter((function(e){return t.isOptionGroup(e)})).length:e)+1},show:function(e){this.$emit("before-show"),this.dirty=!0,this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,e&&r.DomHandler.focus(this.$refs.focusInput)},hide:function(e){var t=this;setTimeout((function(){t.$emit("before-hide"),t.dirty=e,t.overlayVisible=!1,t.focusedOptionIndex=-1,e&&r.DomHandler.focus(t.$refs.focusInput)}),0)},onFocus:function(e){this.disabled||(!this.dirty&&this.completeOnFocus&&this.search(e,e.target.value,"focus"),this.dirty=!0,this.focused=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.overlayVisible&&this.scrollInView(this.focusedOptionIndex),this.$emit("focus",e))},onBlur:function(e){this.dirty=!1,this.focused=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onKeyDown:function(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e)}},onInput:function(e){var t=this;this.searchTimeout&&clearTimeout(this.searchTimeout);var i=e.target.value;this.multiple||this.updateModel(e,i),0===i.length?(this.hide(),this.$emit("clear")):i.length>=this.minLength?(this.focusedOptionIndex=-1,this.searchTimeout=setTimeout((function(){t.search(e,i,"input")}),this.delay)):this.hide()},onChange:function(e){var t=this;if(this.forceSelection){var i=!1;if(this.visibleOptions){var n=this.visibleOptions.find((function(e){return t.isOptionMatched(e,t.$refs.focusInput.value||"")}));void 0!==n&&(i=!0,!this.isSelected(n)&&this.onOptionSelect(e,n))}i||(this.$refs.focusInput.value="",this.$emit("clear"),!this.multiple&&this.updateModel(e,null))}},onMultipleContainerFocus:function(){this.disabled||(this.focused=!0)},onMultipleContainerBlur:function(){this.focusedMultipleOptionIndex=-1,this.focused=!1},onMultipleContainerKeyDown:function(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOnMultiple(e);break;case"ArrowRight":this.onArrowRightKeyOnMultiple(e);break;case"Backspace":this.onBackspaceKeyOnMultiple(e)}},onContainerClick:function(e){this.disabled||this.searching||this.loading||this.isInputClicked(e)||this.isDropdownClicked(e)||this.overlay&&this.overlay.contains(e.target)||r.DomHandler.focus(this.$refs.focusInput)},onDropdownClick:function(e){var t=void 0;this.overlayVisible?this.hide(!0):(r.DomHandler.focus(this.$refs.focusInput),t=this.$refs.focusInput.value,"blank"===this.dropdownMode?this.search(e,"","dropdown"):"current"===this.dropdownMode&&this.search(e,t,"dropdown")),this.$emit("dropdown-click",{originalEvent:e,query:t})},onOptionSelect:function(e,t){var i,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=this.getOptionValue(t);this.multiple?(this.$refs.focusInput.value="",this.isSelected(t)||this.updateModel(e,[].concat(C(i=this.modelValue||[])||w(i)||k(i)||S(),[o]))):this.updateModel(e,o),this.$emit("item-select",{originalEvent:e,value:t}),n&&this.hide(!0)},onOptionMouseMove:function(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onOverlayClick:function(e){v.default.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){if("Escape"===e.code)this.onEscapeKey(e)},onArrowDownKey:function(e){if(this.overlayVisible){var t=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),e.preventDefault()}},onArrowUpKey:function(e){if(this.overlayVisible)if(e.altKey)-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var t=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),e.preventDefault()}},onArrowLeftKey:function(e){var t=e.currentTarget;this.focusedOptionIndex=-1,this.multiple&&(r.ObjectUtils.isEmpty(t.value)&&this.hasSelectedOption?(r.DomHandler.focus(this.$refs.multiContainer),this.focusedMultipleOptionIndex=this.modelValue.length):e.stopPropagation())},onArrowRightKey:function(e){this.focusedOptionIndex=-1,this.multiple&&e.stopPropagation()},onHomeKey:function(e){var t=e.currentTarget;t.setSelectionRange(0,e.shiftKey?t.value.length:0),this.focusedOptionIndex=-1,e.preventDefault()},onEndKey:function(e){var t=e.currentTarget,i=t.value.length;t.setSelectionRange(e.shiftKey?0:i,i),this.focusedOptionIndex=-1,e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.overlayVisible?(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.hide()):this.onArrowDownKey(e),e.preventDefault()},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey:function(e){-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide()},onBackspaceKey:function(e){if(this.multiple){if(r.ObjectUtils.isNotEmpty(this.modelValue)&&!this.$refs.focusInput.value){var t=this.modelValue[this.modelValue.length-1],i=this.modelValue.slice(0,-1);this.$emit("update:modelValue",i),this.$emit("item-unselect",{originalEvent:e,value:t})}e.stopPropagation()}},onArrowLeftKeyOnMultiple:function(){this.focusedMultipleOptionIndex=this.focusedMultipleOptionIndex<1?0:this.focusedMultipleOptionIndex-1},onArrowRightKeyOnMultiple:function(){this.focusedMultipleOptionIndex++,this.focusedMultipleOptionIndex>this.modelValue.length-1&&(this.focusedMultipleOptionIndex=-1,r.DomHandler.focus(this.$refs.focusInput))},onBackspaceKeyOnMultiple:function(e){-1!==this.focusedMultipleOptionIndex&&this.removeOption(e,this.focusedMultipleOptionIndex)},onOverlayEnter:function(e){r.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay),r.DomHandler.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay()},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave:function(e){r.ZIndexUtils.clear(e)},alignOverlay:function(){var e=this.multiple?this.$refs.multiContainer:this.$refs.focusInput;"self"===this.appendTo?r.DomHandler.relativePosition(this.overlay,e):(this.overlay.style.minWidth=r.DomHandler.getOuterWidth(e)+"px",r.DomHandler.absolutePosition(this.overlay,e))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.overlayVisible&&e.overlay&&e.isOutsideClicked(t)&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new r.ConnectedOverlayScrollHandler(this.$refs.container,(function(){e.overlayVisible&&e.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!r.DomHandler.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isOutsideClicked:function(e){return!this.overlay.contains(e.target)&&!this.isInputClicked(e)&&!this.isDropdownClicked(e)},isInputClicked:function(e){return this.multiple?e.target===this.$refs.multiContainer||this.$refs.multiContainer.contains(e.target):e.target===this.$refs.focusInput},isDropdownClicked:function(e){return!!this.$refs.dropdownButton&&(e.target===this.$refs.dropdownButton||this.$refs.dropdownButton.$el.contains(e.target))},isOptionMatched:function(e,t){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.searchLocale)===t.toLocaleLowerCase(this.searchLocale)},isValidOption:function(e){return r.ObjectUtils.isNotEmpty(e)&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected:function(e){return r.ObjectUtils.equals(this.modelValue,this.getOptionValue(e),this.equalityKey)},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex((function(t){return e.isValidOption(t)}))},findLastOptionIndex:function(){var e=this;return r.ObjectUtils.findLastIndex(this.visibleOptions,(function(t){return e.isValidOption(t)}))},findNextOptionIndex:function(e){var t=this,i=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((function(e){return t.isValidOption(e)})):-1;return i>-1?i+e+1:e},findPrevOptionIndex:function(e){var t=this,i=e>0?r.ObjectUtils.findLastIndex(this.visibleOptions.slice(0,e),(function(e){return t.isValidOption(e)})):-1;return i>-1?i:e},findSelectedOptionIndex:function(){var e=this;return this.hasSelectedOption?this.visibleOptions.findIndex((function(t){return e.isValidSelectedOption(t)})):-1},findFirstFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},search:function(e,t,i){null!=t&&("input"===i&&0===t.trim().length||(this.searching=!0,this.$emit("complete",{originalEvent:e,query:t})))},removeOption:function(e,t){var i=this,n=this.modelValue[t],o=this.modelValue.filter((function(e,i){return i!==t})).map((function(e){return i.getOptionValue(e)}));this.updateModel(e,o),this.$emit("item-unselect",{originalEvent:e,value:n}),this.dirty=!0,r.DomHandler.focus(this.$refs.focusInput)},changeFocusedOptionIndex:function(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),(this.selectOnFocus||this.autoHighlight)&&this.onOptionSelect(e,this.visibleOptions[t],!1))},scrollInView:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=-1!==t?"".concat(this.id,"_").concat(t):this.focusedOptionId,n=r.DomHandler.findSingle(this.list,'li[id="'.concat(i,'"]'));n?n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"start"}):this.virtualScrollerDisabled||setTimeout((function(){e.virtualScroller&&e.virtualScroller.scrollToIndex(-1!==t?t:e.focusedOptionIndex)}),0)},autoUpdateModel:function(){(this.selectOnFocus||this.autoHighlight)&&this.autoOptionFocus&&!this.hasSelectedOption&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(e,t){this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})},flatOptions:function(e){var t=this;return(e||[]).reduce((function(e,i,n){e.push({optionGroup:i,group:!0,index:n});var o=t.getOptionGroupChildren(i);return o&&o.forEach((function(t){return e.push(t)})),e}),[])},overlayRef:function(e){this.overlay=e},listRef:function(e,t){this.list=e,t&&t(e)},virtualScrollerRef:function(e){this.virtualScroller=e}},computed:{visibleOptions:function(){return this.optionGroupLabel?this.flatOptions(this.suggestions):this.suggestions||[]},inputValue:function(){if(this.modelValue){if("object"===I(this.modelValue)){var e=this.getOptionLabel(this.modelValue);return null!=e?e:this.modelValue}return this.modelValue}return""},hasSelectedOption:function(){return r.ObjectUtils.isNotEmpty(this.modelValue)},equalityKey:function(){return this.dataKey},searchResultMessageText:function(){return r.ObjectUtils.isNotEmpty(this.visibleOptions)&&this.overlayVisible?this.searchMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptySearchMessageText},searchMessageText:function(){return this.searchMessage||this.$primevue.config.locale.searchMessage||""},emptySearchMessageText:function(){return this.emptySearchMessage||this.$primevue.config.locale.emptySearchMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue.length:"1"):this.emptySelectionMessageText},focusedOptionId:function(){return-1!==this.focusedOptionIndex?"".concat(this.id,"_").concat(this.focusedOptionIndex):null},focusedMultipleOptionId:function(){return-1!==this.focusedMultipleOptionIndex?"".concat(this.id,"_multiple_option_").concat(this.focusedMultipleOptionIndex):null},ariaSetSize:function(){var e=this;return this.visibleOptions.filter((function(t){return!e.isOptionGroup(t)})).length},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},components:{Button:h.default,VirtualScroller:O.default,Portal:b.default,ChevronDownIcon:f.default,SpinnerIcon:m.default,TimesCircleIcon:y.default},directives:{ripple:g.default}};function D(e){return D="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},D(e)}function M(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function B(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?M(Object(i),!0).forEach((function(t){$(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):M(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function $(e,t,i){return(t=E(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function E(e){var t=K(e,"string");return"symbol"===D(t)?t:String(t)}function K(e,t){if("object"!==D(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==D(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var P=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],T=["aria-activedescendant"],F=["id","aria-label","aria-setsize","aria-posinset"],A=["id","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],j=["id"],H=["id"],N=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove","data-p-highlight","data-p-focus","data-p-disabled"];V.render=function(e,t,i,n,o,s){var l=d.resolveComponent("SpinnerIcon"),r=d.resolveComponent("Button"),a=d.resolveComponent("VirtualScroller"),u=d.resolveComponent("Portal"),c=d.resolveDirective("ripple");return d.openBlock(),d.createElementBlock("div",d.mergeProps({ref:"container",class:e.cx("root"),style:e.sx("root"),onClick:t[15]||(t[15]=function(){return s.onContainerClick&&s.onContainerClick.apply(s,arguments)})},e.ptm("root"),{"data-pc-name":"autocomplete"}),[e.multiple?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("input",d.mergeProps({key:0,ref:"focusInput",id:e.inputId,type:"text",class:[e.cx("input"),e.inputClass],style:e.inputStyle,value:s.inputValue,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?s.focusedOptionId:void 0,onFocus:t[0]||(t[0]=function(){return s.onFocus&&s.onFocus.apply(s,arguments)}),onBlur:t[1]||(t[1]=function(){return s.onBlur&&s.onBlur.apply(s,arguments)}),onKeydown:t[2]||(t[2]=function(){return s.onKeyDown&&s.onKeyDown.apply(s,arguments)}),onInput:t[3]||(t[3]=function(){return s.onInput&&s.onInput.apply(s,arguments)}),onChange:t[4]||(t[4]=function(){return s.onChange&&s.onChange.apply(s,arguments)})},B(B({},e.inputProps),e.ptm("input"))),null,16,P)),e.multiple?(d.openBlock(),d.createElementBlock("ul",d.mergeProps({key:1,ref:"multiContainer",class:e.cx("container"),tabindex:"-1",role:"listbox","aria-orientation":"horizontal","aria-activedescendant":o.focused?s.focusedMultipleOptionId:void 0,onFocus:t[10]||(t[10]=function(){return s.onMultipleContainerFocus&&s.onMultipleContainerFocus.apply(s,arguments)}),onBlur:t[11]||(t[11]=function(){return s.onMultipleContainerBlur&&s.onMultipleContainerBlur.apply(s,arguments)}),onKeydown:t[12]||(t[12]=function(){return s.onMultipleContainerKeyDown&&s.onMultipleContainerKeyDown.apply(s,arguments)})},e.ptm("container")),[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(e.modelValue,(function(t,i){return d.openBlock(),d.createElementBlock("li",d.mergeProps({key:i,id:o.id+"_multiple_option_"+i,class:e.cx("token",{i:i}),role:"option","aria-label":s.getOptionLabel(t),"aria-selected":!0,"aria-setsize":e.modelValue.length,"aria-posinset":i+1},e.ptm("token")),[d.renderSlot(e.$slots,"chip",{value:t},(function(){return[d.createElementVNode("span",d.mergeProps({class:e.cx("tokenLabel")},e.ptm("tokenLabel")),d.toDisplayString(s.getOptionLabel(t)),17)]})),d.renderSlot(e.$slots,"removetokenicon",{class:d.normalizeClass(e.cx("removeTokenIcon")),index:i,onClick:function(e){return s.removeOption(e,i)}},(function(){return[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(e.removeTokenIcon?"span":"TimesCircleIcon"),d.mergeProps({class:[e.cx("removeTokenIcon"),e.removeTokenIcon],onClick:function(e){return s.removeOption(e,i)},"aria-hidden":"true"},e.ptm("removeTokenIcon")),null,16,["class","onClick"]))]}))],16,F)})),128)),d.createElementVNode("li",d.mergeProps({class:e.cx("inputToken"),role:"option"},e.ptm("inputToken")),[d.createElementVNode("input",d.mergeProps({ref:"focusInput",id:e.inputId,type:"text",style:e.inputStyle,class:e.inputClass,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?s.focusedOptionId:void 0,onFocus:t[5]||(t[5]=function(){return s.onFocus&&s.onFocus.apply(s,arguments)}),onBlur:t[6]||(t[6]=function(){return s.onBlur&&s.onBlur.apply(s,arguments)}),onKeydown:t[7]||(t[7]=function(){return s.onKeyDown&&s.onKeyDown.apply(s,arguments)}),onInput:t[8]||(t[8]=function(){return s.onInput&&s.onInput.apply(s,arguments)}),onChange:t[9]||(t[9]=function(){return s.onChange&&s.onChange.apply(s,arguments)})},B(B({},e.inputProps),e.ptm("input"))),null,16,A)],16)],16,T)):d.createCommentVNode("",!0),o.searching||e.loading?d.renderSlot(e.$slots,"loadingicon",{key:2,class:d.normalizeClass(e.cx("loadingIcon"))},(function(){return[e.loadingIcon?(d.openBlock(),d.createElementBlock("i",d.mergeProps({key:0,class:["pi-spin",e.cx("loadingIcon"),e.loadingIcon],"aria-hidden":"true"},e.ptm("loadingIcon")),null,16)):(d.openBlock(),d.createBlock(l,d.mergeProps({key:1,class:[e.cx("loadingIcon"),e.loadingIcon],spin:"","aria-hidden":"true"},e.ptm("loadingIcon")),null,16,["class"]))]})):d.createCommentVNode("",!0),e.dropdown?(d.openBlock(),d.createBlock(r,{key:3,ref:"dropdownButton",type:"button",tabindex:"-1",class:d.normalizeClass([e.cx("dropdownButton"),e.dropdownClass]),disabled:e.disabled,"aria-hidden":"true",onClick:s.onDropdownClick,unstyled:e.unstyled,pt:e.ptm("dropdownButton"),"data-pc-section":"dropdownbutton"},{icon:d.withCtx((function(){return[d.renderSlot(e.$slots,"dropdownicon",{class:d.normalizeClass(e.dropdownIcon)},(function(){return[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(e.dropdownIcon?"span":"ChevronDownIcon"),d.mergeProps({class:e.dropdownIcon},e.ptm("dropdownButton").icon,{"data-pc-section":"dropdownicon"}),null,16,["class"]))]}))]})),_:3},8,["class","disabled","onClick","unstyled","pt"])):d.createCommentVNode("",!0),d.createElementVNode("span",d.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSearchResult"),{"data-p-hidden-accessible":!0}),d.toDisplayString(s.searchResultMessageText),17),d.createVNode(u,{appendTo:e.appendTo},{default:d.withCtx((function(){return[d.createVNode(d.Transition,d.mergeProps({name:"p-connected-overlay",onEnter:s.onOverlayEnter,onAfterEnter:s.onOverlayAfterEnter,onLeave:s.onOverlayLeave,onAfterLeave:s.onOverlayAfterLeave},e.ptm("transition")),{default:d.withCtx((function(){return[o.overlayVisible?(d.openBlock(),d.createElementBlock("div",d.mergeProps({key:0,ref:s.overlayRef,class:[e.cx("panel"),e.panelClass],style:B(B({},e.panelStyle),{},{"max-height":s.virtualScrollerDisabled?e.scrollHeight:""}),onClick:t[13]||(t[13]=function(){return s.onOverlayClick&&s.onOverlayClick.apply(s,arguments)}),onKeydown:t[14]||(t[14]=function(){return s.onOverlayKeyDown&&s.onOverlayKeyDown.apply(s,arguments)})},B(B({},e.panelProps),e.ptm("panel"))),[d.renderSlot(e.$slots,"header",{value:e.modelValue,suggestions:s.visibleOptions}),d.createVNode(a,d.mergeProps({ref:s.virtualScrollerRef},e.virtualScrollerOptions,{style:{height:e.scrollHeight},items:s.visibleOptions,tabindex:-1,disabled:s.virtualScrollerDisabled,pt:e.ptm("virtualScroller")}),d.createSlots({content:d.withCtx((function(t){var i=t.styleClass,n=t.contentRef,l=t.items,r=t.getItemOptions,a=t.contentStyle,u=t.itemSize;return[d.createElementVNode("ul",d.mergeProps({ref:function(e){return s.listRef(e,n)},id:o.id+"_list",class:[e.cx("list"),i],style:a,role:"listbox"},e.ptm("list")),[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(l,(function(t,i){return d.openBlock(),d.createElementBlock(d.Fragment,{key:s.getOptionRenderKey(t,s.getOptionIndex(i,r))},[s.isOptionGroup(t)?(d.openBlock(),d.createElementBlock("li",d.mergeProps({key:0,id:o.id+"_"+s.getOptionIndex(i,r),style:{height:u?u+"px":void 0},class:e.cx("itemGroup"),role:"option"},e.ptm("itemGroup")),[d.renderSlot(e.$slots,"optiongroup",{option:t.optionGroup,item:t.optionGroup,index:s.getOptionIndex(i,r)},(function(){return[d.createTextVNode(d.toDisplayString(s.getOptionGroupLabel(t.optionGroup)),1)]}))],16,H)):d.withDirectives((d.openBlock(),d.createElementBlock("li",d.mergeProps({key:1,id:o.id+"_"+s.getOptionIndex(i,r),style:{height:u?u+"px":void 0},class:e.cx("item",{option:t,i:i,getItemOptions:r}),role:"option","aria-label":s.getOptionLabel(t),"aria-selected":s.isSelected(t),"aria-disabled":s.isOptionDisabled(t),"aria-setsize":s.ariaSetSize,"aria-posinset":s.getAriaPosInset(s.getOptionIndex(i,r)),onClick:function(e){return s.onOptionSelect(e,t)},onMousemove:function(e){return s.onOptionMouseMove(e,s.getOptionIndex(i,r))},"data-p-highlight":s.isSelected(t),"data-p-focus":o.focusedOptionIndex===s.getOptionIndex(i,r),"data-p-disabled":s.isOptionDisabled(t)},s.getPTOptions(t,r,i,"item")),[e.$slots.option?d.renderSlot(e.$slots,"option",{key:0,option:t,index:s.getOptionIndex(i,r)},(function(){return[d.createTextVNode(d.toDisplayString(s.getOptionLabel(t)),1)]})):d.renderSlot(e.$slots,"item",{key:1,item:t,index:s.getOptionIndex(i,r)},(function(){return[d.createTextVNode(d.toDisplayString(s.getOptionLabel(t)),1)]}))],16,N)),[[c]])],64)})),128)),!l||l&&0===l.length?(d.openBlock(),d.createElementBlock("li",d.mergeProps({key:0,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage")),[d.renderSlot(e.$slots,"empty",{},(function(){return[d.createTextVNode(d.toDisplayString(s.searchResultMessageText),1)]}))],16)):d.createCommentVNode("",!0)],16,j)]})),_:2},[e.$slots.loader?{name:"loader",fn:d.withCtx((function(t){return[d.renderSlot(e.$slots,"loader",{options:t.options})]})),key:"0"}:void 0]),1040,["style","items","disabled","pt"]),d.renderSlot(e.$slots,"footer",{value:e.modelValue,suggestions:s.visibleOptions}),d.createElementVNode("span",d.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),d.toDisplayString(s.selectedMessageText),17)],16)):d.createCommentVNode("",!0)]})),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:3},8,["appendTo"])],16)},module.exports=V;
@@ -708,7 +708,7 @@ var script = {
708
708
  return this.isValidOption(option) && this.getOptionLabel(option).toLocaleLowerCase(this.searchLocale) === value.toLocaleLowerCase(this.searchLocale);
709
709
  },
710
710
  isValidOption: function isValidOption(option) {
711
- return option && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
711
+ return ObjectUtils.isNotEmpty(option) && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
712
712
  },
713
713
  isValidSelectedOption: function isValidSelectedOption(option) {
714
714
  return this.isValidOption(option) && this.isSelected(option);
@@ -1 +1 @@
1
- import e from"primevue/button";import t from"primevue/icons/chevrondown";import i from"primevue/icons/spinner";import n from"primevue/icons/timescircle";import o from"primevue/overlayeventbus";import s from"primevue/portal";import l from"primevue/ripple";import{UniqueComponentId as r,ZIndexUtils as a,ObjectUtils as u,DomHandler as c,ConnectedOverlayScrollHandler as d}from"primevue/utils";import p from"primevue/virtualscroller";import h from"primevue/autocomplete/style";import f from"primevue/basecomponent";import{resolveComponent as y,resolveDirective as v,openBlock as m,createElementBlock as b,mergeProps as O,createCommentVNode as g,Fragment as I,renderList as x,renderSlot as S,createElementVNode as w,toDisplayString as k,normalizeClass as L,createBlock as C,resolveDynamicComponent as M,withCtx as V,createVNode as $,Transition as D,createSlots as K,createTextVNode as T,withDirectives as F}from"vue";function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function E(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function B(e,t){if(e){if("string"==typeof e)return j(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?j(e,t):void 0}}function P(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function R(e){if(Array.isArray(e))return j(e)}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var z={name:"AutoComplete",extends:{name:"BaseAutoComplete",extends:f,props:{modelValue:null,suggestions:{type:Array,default:null},field:{type:[String,Function],default:null},optionLabel:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:"200px"},dropdown:{type:Boolean,default:!1},dropdownMode:{type:String,default:"blank"},autoHighlight:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:null},dataKey:{type:String,default:null},minLength:{type:Number,default:1},delay:{type:Number,default:300},appendTo:{type:String,default:"body"},forceSelection:{type:Boolean,default:!1},completeOnFocus:{type:Boolean,default:!1},inputId:{type:String,default:null},inputStyle:{type:Object,default:null},inputClass:{type:[String,Object],default:null},inputProps:{type:null,default:null},panelStyle:{type:Object,default:null},panelClass:{type:[String,Object],default:null},panelProps:{type:null,default:null},dropdownIcon:{type:String,default:void 0},dropdownClass:{type:[String,Object],default:null},loadingIcon:{type:String,default:void 0},removeTokenIcon:{type:String,default:void 0},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!0},selectOnFocus:{type:Boolean,default:!1},searchLocale:{type:String,default:void 0},searchMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptySearchMessage:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},style:h,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","change","focus","blur","item-select","item-unselect","dropdown-click","clear","complete","before-show","before-hide","show","hide"],outsideClickListener:null,resizeListener:null,scrollHandler:null,overlay:null,virtualScroller:null,searchTimeout:null,focusOnHover:!1,dirty:!1,data:function(){return{id:this.$attrs.id,focused:!1,focusedOptionIndex:-1,focusedMultipleOptionIndex:-1,overlayVisible:!1,searching:!1}},watch:{"$attrs.id":function(e){this.id=e||r()},suggestions:function(){this.searching&&(this.show(),this.focusedOptionIndex=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.searching=!1),this.autoUpdateModel()}},mounted:function(){this.id=this.id||r(),this.autoUpdateModel()},updated:function(){this.overlayVisible&&this.alignOverlay()},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(a.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel:function(e){return this.field||this.optionLabel?u.resolveFieldData(e,this.field||this.optionLabel):e},getOptionValue:function(e){return e},getOptionRenderKey:function(e,t){return(this.dataKey?u.resolveFieldData(e,this.dataKey):this.getOptionLabel(e))+"_"+t},getPTOptions:function(e,t,i,n){return this.ptm(n,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(i,t),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return!!this.optionDisabled&&u.resolveFieldData(e,this.optionDisabled)},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return u.resolveFieldData(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return u.resolveFieldData(e,this.optionGroupChildren)},getAriaPosInset:function(e){var t=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter((function(e){return t.isOptionGroup(e)})).length:e)+1},show:function(e){this.$emit("before-show"),this.dirty=!0,this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,e&&c.focus(this.$refs.focusInput)},hide:function(e){var t=this;setTimeout((function(){t.$emit("before-hide"),t.dirty=e,t.overlayVisible=!1,t.focusedOptionIndex=-1,e&&c.focus(t.$refs.focusInput)}),0)},onFocus:function(e){this.disabled||(!this.dirty&&this.completeOnFocus&&this.search(e,e.target.value,"focus"),this.dirty=!0,this.focused=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.overlayVisible&&this.scrollInView(this.focusedOptionIndex),this.$emit("focus",e))},onBlur:function(e){this.dirty=!1,this.focused=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onKeyDown:function(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e)}},onInput:function(e){var t=this;this.searchTimeout&&clearTimeout(this.searchTimeout);var i=e.target.value;this.multiple||this.updateModel(e,i),0===i.length?(this.hide(),this.$emit("clear")):i.length>=this.minLength?(this.focusedOptionIndex=-1,this.searchTimeout=setTimeout((function(){t.search(e,i,"input")}),this.delay)):this.hide()},onChange:function(e){var t=this;if(this.forceSelection){var i=!1;if(this.visibleOptions){var n=this.visibleOptions.find((function(e){return t.isOptionMatched(e,t.$refs.focusInput.value||"")}));void 0!==n&&(i=!0,!this.isSelected(n)&&this.onOptionSelect(e,n))}i||(this.$refs.focusInput.value="",this.$emit("clear"),!this.multiple&&this.updateModel(e,null))}},onMultipleContainerFocus:function(){this.disabled||(this.focused=!0)},onMultipleContainerBlur:function(){this.focusedMultipleOptionIndex=-1,this.focused=!1},onMultipleContainerKeyDown:function(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOnMultiple(e);break;case"ArrowRight":this.onArrowRightKeyOnMultiple(e);break;case"Backspace":this.onBackspaceKeyOnMultiple(e)}},onContainerClick:function(e){this.disabled||this.searching||this.loading||this.isInputClicked(e)||this.isDropdownClicked(e)||this.overlay&&this.overlay.contains(e.target)||c.focus(this.$refs.focusInput)},onDropdownClick:function(e){var t=void 0;this.overlayVisible?this.hide(!0):(c.focus(this.$refs.focusInput),t=this.$refs.focusInput.value,"blank"===this.dropdownMode?this.search(e,"","dropdown"):"current"===this.dropdownMode&&this.search(e,t,"dropdown")),this.$emit("dropdown-click",{originalEvent:e,query:t})},onOptionSelect:function(e,t){var i,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=this.getOptionValue(t);this.multiple?(this.$refs.focusInput.value="",this.isSelected(t)||this.updateModel(e,[].concat(R(i=this.modelValue||[])||P(i)||B(i)||E(),[o]))):this.updateModel(e,o),this.$emit("item-select",{originalEvent:e,value:t}),n&&this.hide(!0)},onOptionMouseMove:function(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onOverlayClick:function(e){o.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){if("Escape"===e.code)this.onEscapeKey(e)},onArrowDownKey:function(e){if(this.overlayVisible){var t=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),e.preventDefault()}},onArrowUpKey:function(e){if(this.overlayVisible)if(e.altKey)-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var t=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),e.preventDefault()}},onArrowLeftKey:function(e){var t=e.currentTarget;this.focusedOptionIndex=-1,this.multiple&&(u.isEmpty(t.value)&&this.hasSelectedOption?(c.focus(this.$refs.multiContainer),this.focusedMultipleOptionIndex=this.modelValue.length):e.stopPropagation())},onArrowRightKey:function(e){this.focusedOptionIndex=-1,this.multiple&&e.stopPropagation()},onHomeKey:function(e){var t=e.currentTarget;t.setSelectionRange(0,e.shiftKey?t.value.length:0),this.focusedOptionIndex=-1,e.preventDefault()},onEndKey:function(e){var t=e.currentTarget,i=t.value.length;t.setSelectionRange(e.shiftKey?0:i,i),this.focusedOptionIndex=-1,e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.overlayVisible?(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.hide()):this.onArrowDownKey(e),e.preventDefault()},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey:function(e){-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide()},onBackspaceKey:function(e){if(this.multiple){if(u.isNotEmpty(this.modelValue)&&!this.$refs.focusInput.value){var t=this.modelValue[this.modelValue.length-1],i=this.modelValue.slice(0,-1);this.$emit("update:modelValue",i),this.$emit("item-unselect",{originalEvent:e,value:t})}e.stopPropagation()}},onArrowLeftKeyOnMultiple:function(){this.focusedMultipleOptionIndex=this.focusedMultipleOptionIndex<1?0:this.focusedMultipleOptionIndex-1},onArrowRightKeyOnMultiple:function(){this.focusedMultipleOptionIndex++,this.focusedMultipleOptionIndex>this.modelValue.length-1&&(this.focusedMultipleOptionIndex=-1,c.focus(this.$refs.focusInput))},onBackspaceKeyOnMultiple:function(e){-1!==this.focusedMultipleOptionIndex&&this.removeOption(e,this.focusedMultipleOptionIndex)},onOverlayEnter:function(e){a.set("overlay",e,this.$primevue.config.zIndex.overlay),c.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay()},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave:function(e){a.clear(e)},alignOverlay:function(){var e=this.multiple?this.$refs.multiContainer:this.$refs.focusInput;"self"===this.appendTo?c.relativePosition(this.overlay,e):(this.overlay.style.minWidth=c.getOuterWidth(e)+"px",c.absolutePosition(this.overlay,e))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.overlayVisible&&e.overlay&&e.isOutsideClicked(t)&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new d(this.$refs.container,(function(){e.overlayVisible&&e.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!c.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isOutsideClicked:function(e){return!this.overlay.contains(e.target)&&!this.isInputClicked(e)&&!this.isDropdownClicked(e)},isInputClicked:function(e){return this.multiple?e.target===this.$refs.multiContainer||this.$refs.multiContainer.contains(e.target):e.target===this.$refs.focusInput},isDropdownClicked:function(e){return!!this.$refs.dropdownButton&&(e.target===this.$refs.dropdownButton||this.$refs.dropdownButton.$el.contains(e.target))},isOptionMatched:function(e,t){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.searchLocale)===t.toLocaleLowerCase(this.searchLocale)},isValidOption:function(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected:function(e){return u.equals(this.modelValue,this.getOptionValue(e),this.equalityKey)},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex((function(t){return e.isValidOption(t)}))},findLastOptionIndex:function(){var e=this;return u.findLastIndex(this.visibleOptions,(function(t){return e.isValidOption(t)}))},findNextOptionIndex:function(e){var t=this,i=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((function(e){return t.isValidOption(e)})):-1;return i>-1?i+e+1:e},findPrevOptionIndex:function(e){var t=this,i=e>0?u.findLastIndex(this.visibleOptions.slice(0,e),(function(e){return t.isValidOption(e)})):-1;return i>-1?i:e},findSelectedOptionIndex:function(){var e=this;return this.hasSelectedOption?this.visibleOptions.findIndex((function(t){return e.isValidSelectedOption(t)})):-1},findFirstFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},search:function(e,t,i){null!=t&&("input"===i&&0===t.trim().length||(this.searching=!0,this.$emit("complete",{originalEvent:e,query:t})))},removeOption:function(e,t){var i=this,n=this.modelValue[t],o=this.modelValue.filter((function(e,i){return i!==t})).map((function(e){return i.getOptionValue(e)}));this.updateModel(e,o),this.$emit("item-unselect",{originalEvent:e,value:n}),this.dirty=!0,c.focus(this.$refs.focusInput)},changeFocusedOptionIndex:function(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),(this.selectOnFocus||this.autoHighlight)&&this.onOptionSelect(e,this.visibleOptions[t],!1))},scrollInView:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=-1!==t?"".concat(this.id,"_").concat(t):this.focusedOptionId,n=c.findSingle(this.list,'li[id="'.concat(i,'"]'));n?n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"start"}):this.virtualScrollerDisabled||setTimeout((function(){e.virtualScroller&&e.virtualScroller.scrollToIndex(-1!==t?t:e.focusedOptionIndex)}),0)},autoUpdateModel:function(){(this.selectOnFocus||this.autoHighlight)&&this.autoOptionFocus&&!this.hasSelectedOption&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(e,t){this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})},flatOptions:function(e){var t=this;return(e||[]).reduce((function(e,i,n){e.push({optionGroup:i,group:!0,index:n});var o=t.getOptionGroupChildren(i);return o&&o.forEach((function(t){return e.push(t)})),e}),[])},overlayRef:function(e){this.overlay=e},listRef:function(e,t){this.list=e,t&&t(e)},virtualScrollerRef:function(e){this.virtualScroller=e}},computed:{visibleOptions:function(){return this.optionGroupLabel?this.flatOptions(this.suggestions):this.suggestions||[]},inputValue:function(){if(this.modelValue){if("object"===A(this.modelValue)){var e=this.getOptionLabel(this.modelValue);return null!=e?e:this.modelValue}return this.modelValue}return""},hasSelectedOption:function(){return u.isNotEmpty(this.modelValue)},equalityKey:function(){return this.dataKey},searchResultMessageText:function(){return u.isNotEmpty(this.visibleOptions)&&this.overlayVisible?this.searchMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptySearchMessageText},searchMessageText:function(){return this.searchMessage||this.$primevue.config.locale.searchMessage||""},emptySearchMessageText:function(){return this.emptySearchMessage||this.$primevue.config.locale.emptySearchMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue.length:"1"):this.emptySelectionMessageText},focusedOptionId:function(){return-1!==this.focusedOptionIndex?"".concat(this.id,"_").concat(this.focusedOptionIndex):null},focusedMultipleOptionId:function(){return-1!==this.focusedMultipleOptionIndex?"".concat(this.id,"_multiple_option_").concat(this.focusedMultipleOptionIndex):null},ariaSetSize:function(){var e=this;return this.visibleOptions.filter((function(t){return!e.isOptionGroup(t)})).length},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},components:{Button:e,VirtualScroller:p,Portal:s,ChevronDownIcon:t,SpinnerIcon:i,TimesCircleIcon:n},directives:{ripple:l}};function G(e){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(e)}function H(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function _(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?H(Object(i),!0).forEach((function(t){U(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):H(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function U(e,t,i){return(t=N(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function N(e){var t=q(e,"string");return"symbol"===G(t)?t:String(t)}function q(e,t){if("object"!==G(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==G(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var W=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],J=["aria-activedescendant"],Q=["id","aria-label","aria-setsize","aria-posinset"],X=["id","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],Y=["id"],Z=["id"],ee=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove","data-p-highlight","data-p-focus","data-p-disabled"];z.render=function(e,t,i,n,o,s){var l=y("SpinnerIcon"),r=y("Button"),a=y("VirtualScroller"),u=y("Portal"),c=v("ripple");return m(),b("div",O({ref:"container",class:e.cx("root"),style:e.sx("root"),onClick:t[15]||(t[15]=function(){return s.onContainerClick&&s.onContainerClick.apply(s,arguments)})},e.ptm("root"),{"data-pc-name":"autocomplete"}),[e.multiple?g("",!0):(m(),b("input",O({key:0,ref:"focusInput",id:e.inputId,type:"text",class:[e.cx("input"),e.inputClass],style:e.inputStyle,value:s.inputValue,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?s.focusedOptionId:void 0,onFocus:t[0]||(t[0]=function(){return s.onFocus&&s.onFocus.apply(s,arguments)}),onBlur:t[1]||(t[1]=function(){return s.onBlur&&s.onBlur.apply(s,arguments)}),onKeydown:t[2]||(t[2]=function(){return s.onKeyDown&&s.onKeyDown.apply(s,arguments)}),onInput:t[3]||(t[3]=function(){return s.onInput&&s.onInput.apply(s,arguments)}),onChange:t[4]||(t[4]=function(){return s.onChange&&s.onChange.apply(s,arguments)})},_(_({},e.inputProps),e.ptm("input"))),null,16,W)),e.multiple?(m(),b("ul",O({key:1,ref:"multiContainer",class:e.cx("container"),tabindex:"-1",role:"listbox","aria-orientation":"horizontal","aria-activedescendant":o.focused?s.focusedMultipleOptionId:void 0,onFocus:t[10]||(t[10]=function(){return s.onMultipleContainerFocus&&s.onMultipleContainerFocus.apply(s,arguments)}),onBlur:t[11]||(t[11]=function(){return s.onMultipleContainerBlur&&s.onMultipleContainerBlur.apply(s,arguments)}),onKeydown:t[12]||(t[12]=function(){return s.onMultipleContainerKeyDown&&s.onMultipleContainerKeyDown.apply(s,arguments)})},e.ptm("container")),[(m(!0),b(I,null,x(e.modelValue,(function(t,i){return m(),b("li",O({key:i,id:o.id+"_multiple_option_"+i,class:e.cx("token",{i:i}),role:"option","aria-label":s.getOptionLabel(t),"aria-selected":!0,"aria-setsize":e.modelValue.length,"aria-posinset":i+1},e.ptm("token")),[S(e.$slots,"chip",{value:t},(function(){return[w("span",O({class:e.cx("tokenLabel")},e.ptm("tokenLabel")),k(s.getOptionLabel(t)),17)]})),S(e.$slots,"removetokenicon",{class:L(e.cx("removeTokenIcon")),index:i,onClick:function(e){return s.removeOption(e,i)}},(function(){return[(m(),C(M(e.removeTokenIcon?"span":"TimesCircleIcon"),O({class:[e.cx("removeTokenIcon"),e.removeTokenIcon],onClick:function(e){return s.removeOption(e,i)},"aria-hidden":"true"},e.ptm("removeTokenIcon")),null,16,["class","onClick"]))]}))],16,Q)})),128)),w("li",O({class:e.cx("inputToken"),role:"option"},e.ptm("inputToken")),[w("input",O({ref:"focusInput",id:e.inputId,type:"text",style:e.inputStyle,class:e.inputClass,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?s.focusedOptionId:void 0,onFocus:t[5]||(t[5]=function(){return s.onFocus&&s.onFocus.apply(s,arguments)}),onBlur:t[6]||(t[6]=function(){return s.onBlur&&s.onBlur.apply(s,arguments)}),onKeydown:t[7]||(t[7]=function(){return s.onKeyDown&&s.onKeyDown.apply(s,arguments)}),onInput:t[8]||(t[8]=function(){return s.onInput&&s.onInput.apply(s,arguments)}),onChange:t[9]||(t[9]=function(){return s.onChange&&s.onChange.apply(s,arguments)})},_(_({},e.inputProps),e.ptm("input"))),null,16,X)],16)],16,J)):g("",!0),o.searching||e.loading?S(e.$slots,"loadingicon",{key:2,class:L(e.cx("loadingIcon"))},(function(){return[e.loadingIcon?(m(),b("i",O({key:0,class:["pi-spin",e.cx("loadingIcon"),e.loadingIcon],"aria-hidden":"true"},e.ptm("loadingIcon")),null,16)):(m(),C(l,O({key:1,class:[e.cx("loadingIcon"),e.loadingIcon],spin:"","aria-hidden":"true"},e.ptm("loadingIcon")),null,16,["class"]))]})):g("",!0),e.dropdown?(m(),C(r,{key:3,ref:"dropdownButton",type:"button",tabindex:"-1",class:L([e.cx("dropdownButton"),e.dropdownClass]),disabled:e.disabled,"aria-hidden":"true",onClick:s.onDropdownClick,unstyled:e.unstyled,pt:e.ptm("dropdownButton"),"data-pc-section":"dropdownbutton"},{icon:V((function(){return[S(e.$slots,"dropdownicon",{class:L(e.dropdownIcon)},(function(){return[(m(),C(M(e.dropdownIcon?"span":"ChevronDownIcon"),O({class:e.dropdownIcon},e.ptm("dropdownButton").icon,{"data-pc-section":"dropdownicon"}),null,16,["class"]))]}))]})),_:3},8,["class","disabled","onClick","unstyled","pt"])):g("",!0),w("span",O({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSearchResult"),{"data-p-hidden-accessible":!0}),k(s.searchResultMessageText),17),$(u,{appendTo:e.appendTo},{default:V((function(){return[$(D,O({name:"p-connected-overlay",onEnter:s.onOverlayEnter,onAfterEnter:s.onOverlayAfterEnter,onLeave:s.onOverlayLeave,onAfterLeave:s.onOverlayAfterLeave},e.ptm("transition")),{default:V((function(){return[o.overlayVisible?(m(),b("div",O({key:0,ref:s.overlayRef,class:[e.cx("panel"),e.panelClass],style:_(_({},e.panelStyle),{},{"max-height":s.virtualScrollerDisabled?e.scrollHeight:""}),onClick:t[13]||(t[13]=function(){return s.onOverlayClick&&s.onOverlayClick.apply(s,arguments)}),onKeydown:t[14]||(t[14]=function(){return s.onOverlayKeyDown&&s.onOverlayKeyDown.apply(s,arguments)})},_(_({},e.panelProps),e.ptm("panel"))),[S(e.$slots,"header",{value:e.modelValue,suggestions:s.visibleOptions}),$(a,O({ref:s.virtualScrollerRef},e.virtualScrollerOptions,{style:{height:e.scrollHeight},items:s.visibleOptions,tabindex:-1,disabled:s.virtualScrollerDisabled,pt:e.ptm("virtualScroller")}),K({content:V((function(t){var i=t.styleClass,n=t.contentRef,l=t.items,r=t.getItemOptions,a=t.contentStyle,u=t.itemSize;return[w("ul",O({ref:function(e){return s.listRef(e,n)},id:o.id+"_list",class:[e.cx("list"),i],style:a,role:"listbox"},e.ptm("list")),[(m(!0),b(I,null,x(l,(function(t,i){return m(),b(I,{key:s.getOptionRenderKey(t,s.getOptionIndex(i,r))},[s.isOptionGroup(t)?(m(),b("li",O({key:0,id:o.id+"_"+s.getOptionIndex(i,r),style:{height:u?u+"px":void 0},class:e.cx("itemGroup"),role:"option"},e.ptm("itemGroup")),[S(e.$slots,"optiongroup",{option:t.optionGroup,item:t.optionGroup,index:s.getOptionIndex(i,r)},(function(){return[T(k(s.getOptionGroupLabel(t.optionGroup)),1)]}))],16,Z)):F((m(),b("li",O({key:1,id:o.id+"_"+s.getOptionIndex(i,r),style:{height:u?u+"px":void 0},class:e.cx("item",{option:t,i:i,getItemOptions:r}),role:"option","aria-label":s.getOptionLabel(t),"aria-selected":s.isSelected(t),"aria-disabled":s.isOptionDisabled(t),"aria-setsize":s.ariaSetSize,"aria-posinset":s.getAriaPosInset(s.getOptionIndex(i,r)),onClick:function(e){return s.onOptionSelect(e,t)},onMousemove:function(e){return s.onOptionMouseMove(e,s.getOptionIndex(i,r))},"data-p-highlight":s.isSelected(t),"data-p-focus":o.focusedOptionIndex===s.getOptionIndex(i,r),"data-p-disabled":s.isOptionDisabled(t)},s.getPTOptions(t,r,i,"item")),[e.$slots.option?S(e.$slots,"option",{key:0,option:t,index:s.getOptionIndex(i,r)},(function(){return[T(k(s.getOptionLabel(t)),1)]})):S(e.$slots,"item",{key:1,item:t,index:s.getOptionIndex(i,r)},(function(){return[T(k(s.getOptionLabel(t)),1)]}))],16,ee)),[[c]])],64)})),128)),!l||l&&0===l.length?(m(),b("li",O({key:0,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage")),[S(e.$slots,"empty",{},(function(){return[T(k(s.searchResultMessageText),1)]}))],16)):g("",!0)],16,Y)]})),_:2},[e.$slots.loader?{name:"loader",fn:V((function(t){return[S(e.$slots,"loader",{options:t.options})]})),key:"0"}:void 0]),1040,["style","items","disabled","pt"]),S(e.$slots,"footer",{value:e.modelValue,suggestions:s.visibleOptions}),w("span",O({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),k(s.selectedMessageText),17)],16)):g("",!0)]})),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:3},8,["appendTo"])],16)};export{z as default};
1
+ import e from"primevue/button";import t from"primevue/icons/chevrondown";import i from"primevue/icons/spinner";import n from"primevue/icons/timescircle";import o from"primevue/overlayeventbus";import s from"primevue/portal";import l from"primevue/ripple";import{UniqueComponentId as r,ZIndexUtils as a,ObjectUtils as u,DomHandler as c,ConnectedOverlayScrollHandler as d}from"primevue/utils";import p from"primevue/virtualscroller";import h from"primevue/autocomplete/style";import f from"primevue/basecomponent";import{resolveComponent as y,resolveDirective as v,openBlock as m,createElementBlock as b,mergeProps as O,createCommentVNode as g,Fragment as I,renderList as x,renderSlot as S,createElementVNode as w,toDisplayString as k,normalizeClass as L,createBlock as C,resolveDynamicComponent as M,withCtx as V,createVNode as $,Transition as D,createSlots as K,createTextVNode as T,withDirectives as F}from"vue";function A(e){return A="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},A(e)}function E(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function B(e,t){if(e){if("string"==typeof e)return j(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?j(e,t):void 0}}function P(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function R(e){if(Array.isArray(e))return j(e)}function j(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var z={name:"AutoComplete",extends:{name:"BaseAutoComplete",extends:f,props:{modelValue:null,suggestions:{type:Array,default:null},field:{type:[String,Function],default:null},optionLabel:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:"200px"},dropdown:{type:Boolean,default:!1},dropdownMode:{type:String,default:"blank"},autoHighlight:{type:Boolean,default:!1},multiple:{type:Boolean,default:!1},loading:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:null},dataKey:{type:String,default:null},minLength:{type:Number,default:1},delay:{type:Number,default:300},appendTo:{type:String,default:"body"},forceSelection:{type:Boolean,default:!1},completeOnFocus:{type:Boolean,default:!1},inputId:{type:String,default:null},inputStyle:{type:Object,default:null},inputClass:{type:[String,Object],default:null},inputProps:{type:null,default:null},panelStyle:{type:Object,default:null},panelClass:{type:[String,Object],default:null},panelProps:{type:null,default:null},dropdownIcon:{type:String,default:void 0},dropdownClass:{type:[String,Object],default:null},loadingIcon:{type:String,default:void 0},removeTokenIcon:{type:String,default:void 0},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!0},selectOnFocus:{type:Boolean,default:!1},searchLocale:{type:String,default:void 0},searchMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptySearchMessage:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},style:h,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","change","focus","blur","item-select","item-unselect","dropdown-click","clear","complete","before-show","before-hide","show","hide"],outsideClickListener:null,resizeListener:null,scrollHandler:null,overlay:null,virtualScroller:null,searchTimeout:null,focusOnHover:!1,dirty:!1,data:function(){return{id:this.$attrs.id,focused:!1,focusedOptionIndex:-1,focusedMultipleOptionIndex:-1,overlayVisible:!1,searching:!1}},watch:{"$attrs.id":function(e){this.id=e||r()},suggestions:function(){this.searching&&(this.show(),this.focusedOptionIndex=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.searching=!1),this.autoUpdateModel()}},mounted:function(){this.id=this.id||r(),this.autoUpdateModel()},updated:function(){this.overlayVisible&&this.alignOverlay()},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(a.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel:function(e){return this.field||this.optionLabel?u.resolveFieldData(e,this.field||this.optionLabel):e},getOptionValue:function(e){return e},getOptionRenderKey:function(e,t){return(this.dataKey?u.resolveFieldData(e,this.dataKey):this.getOptionLabel(e))+"_"+t},getPTOptions:function(e,t,i,n){return this.ptm(n,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(i,t),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return!!this.optionDisabled&&u.resolveFieldData(e,this.optionDisabled)},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return u.resolveFieldData(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return u.resolveFieldData(e,this.optionGroupChildren)},getAriaPosInset:function(e){var t=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter((function(e){return t.isOptionGroup(e)})).length:e)+1},show:function(e){this.$emit("before-show"),this.dirty=!0,this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,e&&c.focus(this.$refs.focusInput)},hide:function(e){var t=this;setTimeout((function(){t.$emit("before-hide"),t.dirty=e,t.overlayVisible=!1,t.focusedOptionIndex=-1,e&&c.focus(t.$refs.focusInput)}),0)},onFocus:function(e){this.disabled||(!this.dirty&&this.completeOnFocus&&this.search(e,e.target.value,"focus"),this.dirty=!0,this.focused=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.overlayVisible&&this.scrollInView(this.focusedOptionIndex),this.$emit("focus",e))},onBlur:function(e){this.dirty=!1,this.focused=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onKeyDown:function(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e)}},onInput:function(e){var t=this;this.searchTimeout&&clearTimeout(this.searchTimeout);var i=e.target.value;this.multiple||this.updateModel(e,i),0===i.length?(this.hide(),this.$emit("clear")):i.length>=this.minLength?(this.focusedOptionIndex=-1,this.searchTimeout=setTimeout((function(){t.search(e,i,"input")}),this.delay)):this.hide()},onChange:function(e){var t=this;if(this.forceSelection){var i=!1;if(this.visibleOptions){var n=this.visibleOptions.find((function(e){return t.isOptionMatched(e,t.$refs.focusInput.value||"")}));void 0!==n&&(i=!0,!this.isSelected(n)&&this.onOptionSelect(e,n))}i||(this.$refs.focusInput.value="",this.$emit("clear"),!this.multiple&&this.updateModel(e,null))}},onMultipleContainerFocus:function(){this.disabled||(this.focused=!0)},onMultipleContainerBlur:function(){this.focusedMultipleOptionIndex=-1,this.focused=!1},onMultipleContainerKeyDown:function(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowLeft":this.onArrowLeftKeyOnMultiple(e);break;case"ArrowRight":this.onArrowRightKeyOnMultiple(e);break;case"Backspace":this.onBackspaceKeyOnMultiple(e)}},onContainerClick:function(e){this.disabled||this.searching||this.loading||this.isInputClicked(e)||this.isDropdownClicked(e)||this.overlay&&this.overlay.contains(e.target)||c.focus(this.$refs.focusInput)},onDropdownClick:function(e){var t=void 0;this.overlayVisible?this.hide(!0):(c.focus(this.$refs.focusInput),t=this.$refs.focusInput.value,"blank"===this.dropdownMode?this.search(e,"","dropdown"):"current"===this.dropdownMode&&this.search(e,t,"dropdown")),this.$emit("dropdown-click",{originalEvent:e,query:t})},onOptionSelect:function(e,t){var i,n=!(arguments.length>2&&void 0!==arguments[2])||arguments[2],o=this.getOptionValue(t);this.multiple?(this.$refs.focusInput.value="",this.isSelected(t)||this.updateModel(e,[].concat(R(i=this.modelValue||[])||P(i)||B(i)||E(),[o]))):this.updateModel(e,o),this.$emit("item-select",{originalEvent:e,value:t}),n&&this.hide(!0)},onOptionMouseMove:function(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onOverlayClick:function(e){o.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){if("Escape"===e.code)this.onEscapeKey(e)},onArrowDownKey:function(e){if(this.overlayVisible){var t=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),e.preventDefault()}},onArrowUpKey:function(e){if(this.overlayVisible)if(e.altKey)-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var t=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),e.preventDefault()}},onArrowLeftKey:function(e){var t=e.currentTarget;this.focusedOptionIndex=-1,this.multiple&&(u.isEmpty(t.value)&&this.hasSelectedOption?(c.focus(this.$refs.multiContainer),this.focusedMultipleOptionIndex=this.modelValue.length):e.stopPropagation())},onArrowRightKey:function(e){this.focusedOptionIndex=-1,this.multiple&&e.stopPropagation()},onHomeKey:function(e){var t=e.currentTarget;t.setSelectionRange(0,e.shiftKey?t.value.length:0),this.focusedOptionIndex=-1,e.preventDefault()},onEndKey:function(e){var t=e.currentTarget,i=t.value.length;t.setSelectionRange(e.shiftKey?0:i,i),this.focusedOptionIndex=-1,e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.overlayVisible?(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.hide()):this.onArrowDownKey(e),e.preventDefault()},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey:function(e){-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide()},onBackspaceKey:function(e){if(this.multiple){if(u.isNotEmpty(this.modelValue)&&!this.$refs.focusInput.value){var t=this.modelValue[this.modelValue.length-1],i=this.modelValue.slice(0,-1);this.$emit("update:modelValue",i),this.$emit("item-unselect",{originalEvent:e,value:t})}e.stopPropagation()}},onArrowLeftKeyOnMultiple:function(){this.focusedMultipleOptionIndex=this.focusedMultipleOptionIndex<1?0:this.focusedMultipleOptionIndex-1},onArrowRightKeyOnMultiple:function(){this.focusedMultipleOptionIndex++,this.focusedMultipleOptionIndex>this.modelValue.length-1&&(this.focusedMultipleOptionIndex=-1,c.focus(this.$refs.focusInput))},onBackspaceKeyOnMultiple:function(e){-1!==this.focusedMultipleOptionIndex&&this.removeOption(e,this.focusedMultipleOptionIndex)},onOverlayEnter:function(e){a.set("overlay",e,this.$primevue.config.zIndex.overlay),c.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay()},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave:function(e){a.clear(e)},alignOverlay:function(){var e=this.multiple?this.$refs.multiContainer:this.$refs.focusInput;"self"===this.appendTo?c.relativePosition(this.overlay,e):(this.overlay.style.minWidth=c.getOuterWidth(e)+"px",c.absolutePosition(this.overlay,e))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.overlayVisible&&e.overlay&&e.isOutsideClicked(t)&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new d(this.$refs.container,(function(){e.overlayVisible&&e.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!c.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isOutsideClicked:function(e){return!this.overlay.contains(e.target)&&!this.isInputClicked(e)&&!this.isDropdownClicked(e)},isInputClicked:function(e){return this.multiple?e.target===this.$refs.multiContainer||this.$refs.multiContainer.contains(e.target):e.target===this.$refs.focusInput},isDropdownClicked:function(e){return!!this.$refs.dropdownButton&&(e.target===this.$refs.dropdownButton||this.$refs.dropdownButton.$el.contains(e.target))},isOptionMatched:function(e,t){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.searchLocale)===t.toLocaleLowerCase(this.searchLocale)},isValidOption:function(e){return u.isNotEmpty(e)&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected:function(e){return u.equals(this.modelValue,this.getOptionValue(e),this.equalityKey)},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex((function(t){return e.isValidOption(t)}))},findLastOptionIndex:function(){var e=this;return u.findLastIndex(this.visibleOptions,(function(t){return e.isValidOption(t)}))},findNextOptionIndex:function(e){var t=this,i=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((function(e){return t.isValidOption(e)})):-1;return i>-1?i+e+1:e},findPrevOptionIndex:function(e){var t=this,i=e>0?u.findLastIndex(this.visibleOptions.slice(0,e),(function(e){return t.isValidOption(e)})):-1;return i>-1?i:e},findSelectedOptionIndex:function(){var e=this;return this.hasSelectedOption?this.visibleOptions.findIndex((function(t){return e.isValidSelectedOption(t)})):-1},findFirstFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},search:function(e,t,i){null!=t&&("input"===i&&0===t.trim().length||(this.searching=!0,this.$emit("complete",{originalEvent:e,query:t})))},removeOption:function(e,t){var i=this,n=this.modelValue[t],o=this.modelValue.filter((function(e,i){return i!==t})).map((function(e){return i.getOptionValue(e)}));this.updateModel(e,o),this.$emit("item-unselect",{originalEvent:e,value:n}),this.dirty=!0,c.focus(this.$refs.focusInput)},changeFocusedOptionIndex:function(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),(this.selectOnFocus||this.autoHighlight)&&this.onOptionSelect(e,this.visibleOptions[t],!1))},scrollInView:function(){var e=this,t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,i=-1!==t?"".concat(this.id,"_").concat(t):this.focusedOptionId,n=c.findSingle(this.list,'li[id="'.concat(i,'"]'));n?n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"start"}):this.virtualScrollerDisabled||setTimeout((function(){e.virtualScroller&&e.virtualScroller.scrollToIndex(-1!==t?t:e.focusedOptionIndex)}),0)},autoUpdateModel:function(){(this.selectOnFocus||this.autoHighlight)&&this.autoOptionFocus&&!this.hasSelectedOption&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel:function(e,t){this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})},flatOptions:function(e){var t=this;return(e||[]).reduce((function(e,i,n){e.push({optionGroup:i,group:!0,index:n});var o=t.getOptionGroupChildren(i);return o&&o.forEach((function(t){return e.push(t)})),e}),[])},overlayRef:function(e){this.overlay=e},listRef:function(e,t){this.list=e,t&&t(e)},virtualScrollerRef:function(e){this.virtualScroller=e}},computed:{visibleOptions:function(){return this.optionGroupLabel?this.flatOptions(this.suggestions):this.suggestions||[]},inputValue:function(){if(this.modelValue){if("object"===A(this.modelValue)){var e=this.getOptionLabel(this.modelValue);return null!=e?e:this.modelValue}return this.modelValue}return""},hasSelectedOption:function(){return u.isNotEmpty(this.modelValue)},equalityKey:function(){return this.dataKey},searchResultMessageText:function(){return u.isNotEmpty(this.visibleOptions)&&this.overlayVisible?this.searchMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptySearchMessageText},searchMessageText:function(){return this.searchMessage||this.$primevue.config.locale.searchMessage||""},emptySearchMessageText:function(){return this.emptySearchMessage||this.$primevue.config.locale.emptySearchMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue.length:"1"):this.emptySelectionMessageText},focusedOptionId:function(){return-1!==this.focusedOptionIndex?"".concat(this.id,"_").concat(this.focusedOptionIndex):null},focusedMultipleOptionId:function(){return-1!==this.focusedMultipleOptionIndex?"".concat(this.id,"_multiple_option_").concat(this.focusedMultipleOptionIndex):null},ariaSetSize:function(){var e=this;return this.visibleOptions.filter((function(t){return!e.isOptionGroup(t)})).length},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},components:{Button:e,VirtualScroller:p,Portal:s,ChevronDownIcon:t,SpinnerIcon:i,TimesCircleIcon:n},directives:{ripple:l}};function G(e){return G="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},G(e)}function H(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function _(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?H(Object(i),!0).forEach((function(t){N(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):H(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function N(e,t,i){return(t=U(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function U(e){var t=q(e,"string");return"symbol"===G(t)?t:String(t)}function q(e,t){if("object"!==G(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==G(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var W=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],J=["aria-activedescendant"],Q=["id","aria-label","aria-setsize","aria-posinset"],X=["id","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],Y=["id"],Z=["id"],ee=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove","data-p-highlight","data-p-focus","data-p-disabled"];z.render=function(e,t,i,n,o,s){var l=y("SpinnerIcon"),r=y("Button"),a=y("VirtualScroller"),u=y("Portal"),c=v("ripple");return m(),b("div",O({ref:"container",class:e.cx("root"),style:e.sx("root"),onClick:t[15]||(t[15]=function(){return s.onContainerClick&&s.onContainerClick.apply(s,arguments)})},e.ptm("root"),{"data-pc-name":"autocomplete"}),[e.multiple?g("",!0):(m(),b("input",O({key:0,ref:"focusInput",id:e.inputId,type:"text",class:[e.cx("input"),e.inputClass],style:e.inputStyle,value:s.inputValue,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?s.focusedOptionId:void 0,onFocus:t[0]||(t[0]=function(){return s.onFocus&&s.onFocus.apply(s,arguments)}),onBlur:t[1]||(t[1]=function(){return s.onBlur&&s.onBlur.apply(s,arguments)}),onKeydown:t[2]||(t[2]=function(){return s.onKeyDown&&s.onKeyDown.apply(s,arguments)}),onInput:t[3]||(t[3]=function(){return s.onInput&&s.onInput.apply(s,arguments)}),onChange:t[4]||(t[4]=function(){return s.onChange&&s.onChange.apply(s,arguments)})},_(_({},e.inputProps),e.ptm("input"))),null,16,W)),e.multiple?(m(),b("ul",O({key:1,ref:"multiContainer",class:e.cx("container"),tabindex:"-1",role:"listbox","aria-orientation":"horizontal","aria-activedescendant":o.focused?s.focusedMultipleOptionId:void 0,onFocus:t[10]||(t[10]=function(){return s.onMultipleContainerFocus&&s.onMultipleContainerFocus.apply(s,arguments)}),onBlur:t[11]||(t[11]=function(){return s.onMultipleContainerBlur&&s.onMultipleContainerBlur.apply(s,arguments)}),onKeydown:t[12]||(t[12]=function(){return s.onMultipleContainerKeyDown&&s.onMultipleContainerKeyDown.apply(s,arguments)})},e.ptm("container")),[(m(!0),b(I,null,x(e.modelValue,(function(t,i){return m(),b("li",O({key:i,id:o.id+"_multiple_option_"+i,class:e.cx("token",{i:i}),role:"option","aria-label":s.getOptionLabel(t),"aria-selected":!0,"aria-setsize":e.modelValue.length,"aria-posinset":i+1},e.ptm("token")),[S(e.$slots,"chip",{value:t},(function(){return[w("span",O({class:e.cx("tokenLabel")},e.ptm("tokenLabel")),k(s.getOptionLabel(t)),17)]})),S(e.$slots,"removetokenicon",{class:L(e.cx("removeTokenIcon")),index:i,onClick:function(e){return s.removeOption(e,i)}},(function(){return[(m(),C(M(e.removeTokenIcon?"span":"TimesCircleIcon"),O({class:[e.cx("removeTokenIcon"),e.removeTokenIcon],onClick:function(e){return s.removeOption(e,i)},"aria-hidden":"true"},e.ptm("removeTokenIcon")),null,16,["class","onClick"]))]}))],16,Q)})),128)),w("li",O({class:e.cx("inputToken"),role:"option"},e.ptm("inputToken")),[w("input",O({ref:"focusInput",id:e.inputId,type:"text",style:e.inputStyle,class:e.inputClass,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,disabled:e.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?s.focusedOptionId:void 0,onFocus:t[5]||(t[5]=function(){return s.onFocus&&s.onFocus.apply(s,arguments)}),onBlur:t[6]||(t[6]=function(){return s.onBlur&&s.onBlur.apply(s,arguments)}),onKeydown:t[7]||(t[7]=function(){return s.onKeyDown&&s.onKeyDown.apply(s,arguments)}),onInput:t[8]||(t[8]=function(){return s.onInput&&s.onInput.apply(s,arguments)}),onChange:t[9]||(t[9]=function(){return s.onChange&&s.onChange.apply(s,arguments)})},_(_({},e.inputProps),e.ptm("input"))),null,16,X)],16)],16,J)):g("",!0),o.searching||e.loading?S(e.$slots,"loadingicon",{key:2,class:L(e.cx("loadingIcon"))},(function(){return[e.loadingIcon?(m(),b("i",O({key:0,class:["pi-spin",e.cx("loadingIcon"),e.loadingIcon],"aria-hidden":"true"},e.ptm("loadingIcon")),null,16)):(m(),C(l,O({key:1,class:[e.cx("loadingIcon"),e.loadingIcon],spin:"","aria-hidden":"true"},e.ptm("loadingIcon")),null,16,["class"]))]})):g("",!0),e.dropdown?(m(),C(r,{key:3,ref:"dropdownButton",type:"button",tabindex:"-1",class:L([e.cx("dropdownButton"),e.dropdownClass]),disabled:e.disabled,"aria-hidden":"true",onClick:s.onDropdownClick,unstyled:e.unstyled,pt:e.ptm("dropdownButton"),"data-pc-section":"dropdownbutton"},{icon:V((function(){return[S(e.$slots,"dropdownicon",{class:L(e.dropdownIcon)},(function(){return[(m(),C(M(e.dropdownIcon?"span":"ChevronDownIcon"),O({class:e.dropdownIcon},e.ptm("dropdownButton").icon,{"data-pc-section":"dropdownicon"}),null,16,["class"]))]}))]})),_:3},8,["class","disabled","onClick","unstyled","pt"])):g("",!0),w("span",O({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSearchResult"),{"data-p-hidden-accessible":!0}),k(s.searchResultMessageText),17),$(u,{appendTo:e.appendTo},{default:V((function(){return[$(D,O({name:"p-connected-overlay",onEnter:s.onOverlayEnter,onAfterEnter:s.onOverlayAfterEnter,onLeave:s.onOverlayLeave,onAfterLeave:s.onOverlayAfterLeave},e.ptm("transition")),{default:V((function(){return[o.overlayVisible?(m(),b("div",O({key:0,ref:s.overlayRef,class:[e.cx("panel"),e.panelClass],style:_(_({},e.panelStyle),{},{"max-height":s.virtualScrollerDisabled?e.scrollHeight:""}),onClick:t[13]||(t[13]=function(){return s.onOverlayClick&&s.onOverlayClick.apply(s,arguments)}),onKeydown:t[14]||(t[14]=function(){return s.onOverlayKeyDown&&s.onOverlayKeyDown.apply(s,arguments)})},_(_({},e.panelProps),e.ptm("panel"))),[S(e.$slots,"header",{value:e.modelValue,suggestions:s.visibleOptions}),$(a,O({ref:s.virtualScrollerRef},e.virtualScrollerOptions,{style:{height:e.scrollHeight},items:s.visibleOptions,tabindex:-1,disabled:s.virtualScrollerDisabled,pt:e.ptm("virtualScroller")}),K({content:V((function(t){var i=t.styleClass,n=t.contentRef,l=t.items,r=t.getItemOptions,a=t.contentStyle,u=t.itemSize;return[w("ul",O({ref:function(e){return s.listRef(e,n)},id:o.id+"_list",class:[e.cx("list"),i],style:a,role:"listbox"},e.ptm("list")),[(m(!0),b(I,null,x(l,(function(t,i){return m(),b(I,{key:s.getOptionRenderKey(t,s.getOptionIndex(i,r))},[s.isOptionGroup(t)?(m(),b("li",O({key:0,id:o.id+"_"+s.getOptionIndex(i,r),style:{height:u?u+"px":void 0},class:e.cx("itemGroup"),role:"option"},e.ptm("itemGroup")),[S(e.$slots,"optiongroup",{option:t.optionGroup,item:t.optionGroup,index:s.getOptionIndex(i,r)},(function(){return[T(k(s.getOptionGroupLabel(t.optionGroup)),1)]}))],16,Z)):F((m(),b("li",O({key:1,id:o.id+"_"+s.getOptionIndex(i,r),style:{height:u?u+"px":void 0},class:e.cx("item",{option:t,i:i,getItemOptions:r}),role:"option","aria-label":s.getOptionLabel(t),"aria-selected":s.isSelected(t),"aria-disabled":s.isOptionDisabled(t),"aria-setsize":s.ariaSetSize,"aria-posinset":s.getAriaPosInset(s.getOptionIndex(i,r)),onClick:function(e){return s.onOptionSelect(e,t)},onMousemove:function(e){return s.onOptionMouseMove(e,s.getOptionIndex(i,r))},"data-p-highlight":s.isSelected(t),"data-p-focus":o.focusedOptionIndex===s.getOptionIndex(i,r),"data-p-disabled":s.isOptionDisabled(t)},s.getPTOptions(t,r,i,"item")),[e.$slots.option?S(e.$slots,"option",{key:0,option:t,index:s.getOptionIndex(i,r)},(function(){return[T(k(s.getOptionLabel(t)),1)]})):S(e.$slots,"item",{key:1,item:t,index:s.getOptionIndex(i,r)},(function(){return[T(k(s.getOptionLabel(t)),1)]}))],16,ee)),[[c]])],64)})),128)),!l||l&&0===l.length?(m(),b("li",O({key:0,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage")),[S(e.$slots,"empty",{},(function(){return[T(k(s.searchResultMessageText),1)]}))],16)):g("",!0)],16,Y)]})),_:2},[e.$slots.loader?{name:"loader",fn:V((function(t){return[S(e.$slots,"loader",{options:t.options})]})),key:"0"}:void 0]),1040,["style","items","disabled","pt"]),S(e.$slots,"footer",{value:e.modelValue,suggestions:s.visibleOptions}),w("span",O({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),k(s.selectedMessageText),17)],16)):g("",!0)]})),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:3},8,["appendTo"])],16)};export{z as default};
@@ -712,7 +712,7 @@ this.primevue.autocomplete = (function (Button, ChevronDownIcon, SpinnerIcon, Ti
712
712
  return this.isValidOption(option) && this.getOptionLabel(option).toLocaleLowerCase(this.searchLocale) === value.toLocaleLowerCase(this.searchLocale);
713
713
  },
714
714
  isValidOption: function isValidOption(option) {
715
- return option && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
715
+ return utils.ObjectUtils.isNotEmpty(option) && !(this.isOptionDisabled(option) || this.isOptionGroup(option));
716
716
  },
717
717
  isValidSelectedOption: function isValidSelectedOption(option) {
718
718
  return this.isValidOption(option) && this.isSelected(option);