primevue 3.50.0 → 3.52.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 (413) hide show
  1. package/accordion/Accordion.d.ts +2 -2
  2. package/accordiontab/AccordionTab.d.ts +2 -2
  3. package/autocomplete/AutoComplete.d.ts +2 -2
  4. package/autocomplete/AutoComplete.vue +10 -4
  5. package/autocomplete/autocomplete.cjs.js +35 -25
  6. package/autocomplete/autocomplete.cjs.min.js +1 -1
  7. package/autocomplete/autocomplete.esm.js +35 -25
  8. package/autocomplete/autocomplete.esm.min.js +1 -1
  9. package/autocomplete/autocomplete.js +35 -25
  10. package/autocomplete/autocomplete.min.js +1 -1
  11. package/avatar/Avatar.d.ts +2 -2
  12. package/avatargroup/AvatarGroup.d.ts +2 -2
  13. package/badge/Badge.d.ts +2 -2
  14. package/blockui/BlockUI.d.ts +2 -2
  15. package/breadcrumb/Breadcrumb.d.ts +2 -2
  16. package/button/Button.d.ts +2 -2
  17. package/buttongroup/ButtonGroup.d.ts +2 -2
  18. package/calendar/Calendar.d.ts +6 -5
  19. package/calendar/Calendar.vue +10 -13
  20. package/calendar/calendar.cjs.js +9 -11
  21. package/calendar/calendar.cjs.min.js +1 -1
  22. package/calendar/calendar.esm.js +10 -12
  23. package/calendar/calendar.esm.min.js +1 -1
  24. package/calendar/calendar.js +9 -11
  25. package/calendar/calendar.min.js +1 -1
  26. package/card/Card.d.ts +2 -2
  27. package/carousel/Carousel.d.ts +6 -2
  28. package/carousel/Carousel.vue +62 -52
  29. package/carousel/carousel.cjs.js +65 -49
  30. package/carousel/carousel.cjs.min.js +1 -1
  31. package/carousel/carousel.esm.js +66 -50
  32. package/carousel/carousel.esm.min.js +1 -1
  33. package/carousel/carousel.js +65 -49
  34. package/carousel/carousel.min.js +1 -1
  35. package/cascadeselect/CascadeSelect.d.ts +2 -2
  36. package/cascadeselect/CascadeSelectSub.vue +4 -1
  37. package/cascadeselect/cascadeselect.cjs.js +11 -6
  38. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  39. package/cascadeselect/cascadeselect.esm.js +11 -6
  40. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  41. package/cascadeselect/cascadeselect.js +11 -6
  42. package/cascadeselect/cascadeselect.min.js +1 -1
  43. package/chart/Chart.d.ts +2 -2
  44. package/checkbox/Checkbox.d.ts +2 -2
  45. package/chip/Chip.d.ts +2 -2
  46. package/chips/Chips.d.ts +2 -2
  47. package/colorpicker/ColorPicker.d.ts +2 -2
  48. package/column/Column.d.ts +2 -2
  49. package/columngroup/ColumnGroup.d.ts +2 -2
  50. package/config/PrimeVue.d.ts +1 -0
  51. package/config/config.cjs.js +2 -1
  52. package/config/config.cjs.min.js +1 -1
  53. package/config/config.esm.js +2 -1
  54. package/config/config.esm.min.js +1 -1
  55. package/config/config.js +2 -1
  56. package/config/config.min.js +1 -1
  57. package/confirmdialog/ConfirmDialog.d.ts +2 -2
  58. package/confirmpopup/ConfirmPopup.d.ts +2 -2
  59. package/contextmenu/ContextMenu.d.ts +2 -2
  60. package/contextmenu/ContextMenu.vue +4 -1
  61. package/contextmenu/contextmenu.cjs.js +4 -1
  62. package/contextmenu/contextmenu.cjs.min.js +1 -1
  63. package/contextmenu/contextmenu.esm.js +4 -1
  64. package/contextmenu/contextmenu.esm.min.js +1 -1
  65. package/contextmenu/contextmenu.js +4 -1
  66. package/contextmenu/contextmenu.min.js +1 -1
  67. package/core/core.js +60 -34
  68. package/core/core.min.js +8 -8
  69. package/datatable/BodyRow.vue +1 -0
  70. package/datatable/DataTable.d.ts +10 -7
  71. package/datatable/DataTable.vue +1 -0
  72. package/datatable/TableHeader.vue +5 -0
  73. package/datatable/datatable.cjs.js +9 -2
  74. package/datatable/datatable.cjs.min.js +1 -1
  75. package/datatable/datatable.esm.js +9 -2
  76. package/datatable/datatable.esm.min.js +1 -1
  77. package/datatable/datatable.js +9 -2
  78. package/datatable/datatable.min.js +1 -1
  79. package/dataview/DataView.d.ts +2 -2
  80. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +2 -2
  81. package/deferredcontent/DeferredContent.d.ts +2 -2
  82. package/dialog/Dialog.d.ts +2 -2
  83. package/divider/Divider.d.ts +2 -2
  84. package/dock/Dock.d.ts +2 -2
  85. package/dropdown/Dropdown.d.ts +11 -3
  86. package/dropdown/Dropdown.vue +6 -1
  87. package/dropdown/dropdown.cjs.js +8 -2
  88. package/dropdown/dropdown.cjs.min.js +1 -1
  89. package/dropdown/dropdown.esm.js +8 -2
  90. package/dropdown/dropdown.esm.min.js +1 -1
  91. package/dropdown/dropdown.js +8 -2
  92. package/dropdown/dropdown.min.js +1 -1
  93. package/dropdown/style/dropdownstyle.cjs.js +2 -1
  94. package/dropdown/style/dropdownstyle.cjs.min.js +1 -1
  95. package/dropdown/style/dropdownstyle.esm.js +2 -1
  96. package/dropdown/style/dropdownstyle.esm.min.js +1 -1
  97. package/dropdown/style/dropdownstyle.js +2 -1
  98. package/dropdown/style/dropdownstyle.min.js +1 -1
  99. package/dynamicdialog/DynamicDialog.d.ts +2 -2
  100. package/editor/Editor.d.ts +2 -2
  101. package/fieldset/Fieldset.d.ts +2 -2
  102. package/fileupload/FileUpload.d.ts +2 -2
  103. package/fileupload/FileUpload.vue +1 -1
  104. package/fileupload/fileupload.cjs.js +10 -10
  105. package/fileupload/fileupload.cjs.min.js +1 -1
  106. package/fileupload/fileupload.esm.js +10 -10
  107. package/fileupload/fileupload.esm.min.js +1 -1
  108. package/fileupload/fileupload.js +10 -10
  109. package/fileupload/fileupload.min.js +1 -1
  110. package/floatlabel/FloatLabel.d.ts +2 -2
  111. package/galleria/Galleria.d.ts +2 -2
  112. package/iconfield/IconField.d.ts +2 -2
  113. package/icons/angledoubledown/index.d.ts +2 -2
  114. package/icons/angledoubleleft/index.d.ts +2 -2
  115. package/icons/angledoubleright/index.d.ts +2 -2
  116. package/icons/angledoubleup/index.d.ts +2 -2
  117. package/icons/angledown/index.d.ts +2 -2
  118. package/icons/angleleft/index.d.ts +2 -2
  119. package/icons/angleright/index.d.ts +2 -2
  120. package/icons/angleup/index.d.ts +2 -2
  121. package/icons/arrowdown/index.d.ts +2 -2
  122. package/icons/arrowup/index.d.ts +2 -2
  123. package/icons/ban/index.d.ts +2 -2
  124. package/icons/bars/index.d.ts +2 -2
  125. package/icons/blank/index.d.ts +2 -2
  126. package/icons/calendar/index.d.ts +2 -2
  127. package/icons/check/index.d.ts +2 -2
  128. package/icons/chevrondown/index.d.ts +2 -2
  129. package/icons/chevronleft/index.d.ts +2 -2
  130. package/icons/chevronright/index.d.ts +2 -2
  131. package/icons/chevronup/index.d.ts +2 -2
  132. package/icons/exclamationtriangle/index.d.ts +2 -2
  133. package/icons/eye/index.d.ts +2 -2
  134. package/icons/eyeslash/index.d.ts +2 -2
  135. package/icons/filter/index.d.ts +2 -2
  136. package/icons/filterslash/index.d.ts +2 -2
  137. package/icons/infocircle/index.d.ts +2 -2
  138. package/icons/minus/index.d.ts +2 -2
  139. package/icons/pencil/index.d.ts +2 -2
  140. package/icons/plus/index.d.ts +2 -2
  141. package/icons/refresh/index.d.ts +2 -2
  142. package/icons/search/index.d.ts +2 -2
  143. package/icons/searchminus/index.d.ts +2 -2
  144. package/icons/searchplus/index.d.ts +2 -2
  145. package/icons/sortalt/index.d.ts +2 -2
  146. package/icons/sortamountdown/index.d.ts +2 -2
  147. package/icons/sortamountupalt/index.d.ts +2 -2
  148. package/icons/spinner/index.d.ts +2 -2
  149. package/icons/star/index.d.ts +2 -2
  150. package/icons/starfill/index.d.ts +2 -2
  151. package/icons/thlarge/index.d.ts +2 -2
  152. package/icons/times/index.d.ts +2 -2
  153. package/icons/timescircle/index.d.ts +2 -2
  154. package/icons/trash/index.d.ts +2 -2
  155. package/icons/undo/index.d.ts +2 -2
  156. package/icons/upload/index.d.ts +2 -2
  157. package/icons/windowmaximize/index.d.ts +2 -2
  158. package/icons/windowminimize/index.d.ts +2 -2
  159. package/image/Image.d.ts +2 -2
  160. package/inlinemessage/InlineMessage.d.ts +2 -2
  161. package/inplace/Inplace.d.ts +2 -2
  162. package/inputgroup/InputGroup.d.ts +2 -2
  163. package/inputgroupaddon/InputGroupAddon.d.ts +2 -2
  164. package/inputicon/InputIcon.d.ts +2 -2
  165. package/inputmask/InputMask.d.ts +2 -2
  166. package/inputnumber/InputNumber.d.ts +6 -2
  167. package/inputnumber/InputNumber.vue +20 -17
  168. package/inputnumber/inputnumber.cjs.js +23 -20
  169. package/inputnumber/inputnumber.cjs.min.js +1 -1
  170. package/inputnumber/inputnumber.esm.js +23 -20
  171. package/inputnumber/inputnumber.esm.min.js +1 -1
  172. package/inputnumber/inputnumber.js +23 -20
  173. package/inputnumber/inputnumber.min.js +1 -1
  174. package/inputotp/InputOtp.d.ts +2 -2
  175. package/inputotp/InputOtp.vue +1 -1
  176. package/inputotp/inputotp.cjs.js +1 -1
  177. package/inputotp/inputotp.cjs.min.js +1 -1
  178. package/inputotp/inputotp.esm.js +1 -1
  179. package/inputotp/inputotp.esm.min.js +1 -1
  180. package/inputotp/inputotp.js +1 -1
  181. package/inputotp/inputotp.min.js +1 -1
  182. package/inputswitch/InputSwitch.d.ts +2 -2
  183. package/inputtext/InputText.d.ts +2 -2
  184. package/knob/BaseKnob.vue +1 -1
  185. package/knob/Knob.d.ts +3 -3
  186. package/knob/Knob.vue +5 -1
  187. package/knob/knob.cjs.js +6 -2
  188. package/knob/knob.cjs.min.js +1 -1
  189. package/knob/knob.esm.js +6 -2
  190. package/knob/knob.esm.min.js +1 -1
  191. package/knob/knob.js +6 -2
  192. package/knob/knob.min.js +1 -1
  193. package/listbox/Listbox.d.ts +2 -2
  194. package/megamenu/MegaMenu.d.ts +2 -2
  195. package/megamenu/MegaMenu.vue +4 -1
  196. package/megamenu/megamenu.cjs.js +4 -1
  197. package/megamenu/megamenu.cjs.min.js +1 -1
  198. package/megamenu/megamenu.esm.js +4 -1
  199. package/megamenu/megamenu.esm.min.js +1 -1
  200. package/megamenu/megamenu.js +4 -1
  201. package/megamenu/megamenu.min.js +1 -1
  202. package/menu/Menu.d.ts +2 -2
  203. package/menu/Menu.vue +15 -2
  204. package/menu/menu.cjs.js +5 -2
  205. package/menu/menu.cjs.min.js +1 -1
  206. package/menu/menu.esm.js +5 -2
  207. package/menu/menu.esm.min.js +1 -1
  208. package/menu/menu.js +5 -2
  209. package/menu/menu.min.js +1 -1
  210. package/menubar/Menubar.d.ts +2 -2
  211. package/menubar/Menubar.vue +4 -1
  212. package/menubar/menubar.cjs.js +4 -1
  213. package/menubar/menubar.cjs.min.js +1 -1
  214. package/menubar/menubar.esm.js +4 -1
  215. package/menubar/menubar.esm.min.js +1 -1
  216. package/menubar/menubar.js +4 -1
  217. package/menubar/menubar.min.js +1 -1
  218. package/message/Message.d.ts +2 -2
  219. package/metergroup/MeterGroup.d.ts +2 -2
  220. package/multiselect/MultiSelect.d.ts +2 -2
  221. package/multiselect/MultiSelect.vue +6 -3
  222. package/multiselect/multiselect.cjs.js +8 -4
  223. package/multiselect/multiselect.cjs.min.js +1 -1
  224. package/multiselect/multiselect.esm.js +8 -4
  225. package/multiselect/multiselect.esm.min.js +1 -1
  226. package/multiselect/multiselect.js +8 -4
  227. package/multiselect/multiselect.min.js +1 -1
  228. package/orderlist/OrderList.d.ts +2 -2
  229. package/organizationchart/OrganizationChart.d.ts +2 -2
  230. package/overlaypanel/OverlayPanel.d.ts +2 -2
  231. package/package.json +1 -1
  232. package/paginator/Paginator.d.ts +2 -2
  233. package/paginator/Paginator.vue +0 -1
  234. package/paginator/paginator.cjs.js +1 -1
  235. package/paginator/paginator.cjs.min.js +1 -1
  236. package/paginator/paginator.esm.js +1 -1
  237. package/paginator/paginator.esm.min.js +1 -1
  238. package/paginator/paginator.js +1 -1
  239. package/paginator/paginator.min.js +1 -1
  240. package/panel/Panel.d.ts +2 -2
  241. package/panelmenu/PanelMenu.d.ts +2 -2
  242. package/password/Password.d.ts +2 -2
  243. package/picklist/PickList.d.ts +2 -2
  244. package/portal/Portal.d.ts +2 -2
  245. package/progressbar/ProgressBar.d.ts +2 -2
  246. package/progressspinner/ProgressSpinner.d.ts +2 -2
  247. package/radiobutton/RadioButton.d.ts +2 -2
  248. package/rating/Rating.d.ts +2 -2
  249. package/resources/themes/arya-blue/theme.css +1 -0
  250. package/resources/themes/arya-green/theme.css +1 -0
  251. package/resources/themes/arya-orange/theme.css +1 -0
  252. package/resources/themes/arya-purple/theme.css +1 -0
  253. package/resources/themes/aura-dark-amber/theme.css +1 -0
  254. package/resources/themes/aura-dark-blue/theme.css +1 -0
  255. package/resources/themes/aura-dark-cyan/theme.css +1 -0
  256. package/resources/themes/aura-dark-green/theme.css +1 -0
  257. package/resources/themes/aura-dark-indigo/theme.css +1 -0
  258. package/resources/themes/aura-dark-lime/theme.css +1 -0
  259. package/resources/themes/aura-dark-noir/theme.css +1 -0
  260. package/resources/themes/aura-dark-pink/theme.css +1 -0
  261. package/resources/themes/aura-dark-purple/theme.css +1 -0
  262. package/resources/themes/aura-dark-teal/theme.css +1 -0
  263. package/resources/themes/aura-light-amber/theme.css +7 -1
  264. package/resources/themes/aura-light-blue/theme.css +7 -1
  265. package/resources/themes/aura-light-cyan/theme.css +7 -1
  266. package/resources/themes/aura-light-green/theme.css +7 -1
  267. package/resources/themes/aura-light-indigo/theme.css +7 -1
  268. package/resources/themes/aura-light-lime/theme.css +7 -1
  269. package/resources/themes/aura-light-noir/theme.css +7 -1
  270. package/resources/themes/aura-light-pink/theme.css +7 -1
  271. package/resources/themes/aura-light-purple/theme.css +7 -1
  272. package/resources/themes/aura-light-teal/theme.css +7 -1
  273. package/resources/themes/bootstrap4-dark-blue/theme.css +1 -0
  274. package/resources/themes/bootstrap4-dark-purple/theme.css +1 -0
  275. package/resources/themes/bootstrap4-light-blue/theme.css +1 -0
  276. package/resources/themes/bootstrap4-light-purple/theme.css +1 -0
  277. package/resources/themes/fluent-light/theme.css +1 -0
  278. package/resources/themes/lara-dark-amber/theme.css +1 -0
  279. package/resources/themes/lara-dark-blue/theme.css +1 -0
  280. package/resources/themes/lara-dark-cyan/theme.css +1 -0
  281. package/resources/themes/lara-dark-green/theme.css +1 -0
  282. package/resources/themes/lara-dark-indigo/theme.css +1 -0
  283. package/resources/themes/lara-dark-pink/theme.css +1 -0
  284. package/resources/themes/lara-dark-purple/theme.css +1 -0
  285. package/resources/themes/lara-dark-teal/theme.css +1 -0
  286. package/resources/themes/lara-light-amber/theme.css +1 -0
  287. package/resources/themes/lara-light-blue/theme.css +1 -0
  288. package/resources/themes/lara-light-cyan/theme.css +1 -0
  289. package/resources/themes/lara-light-green/theme.css +1 -0
  290. package/resources/themes/lara-light-indigo/theme.css +1 -0
  291. package/resources/themes/lara-light-pink/theme.css +1 -0
  292. package/resources/themes/lara-light-purple/theme.css +1 -0
  293. package/resources/themes/lara-light-teal/theme.css +1 -0
  294. package/resources/themes/luna-amber/theme.css +1 -0
  295. package/resources/themes/luna-blue/theme.css +1 -0
  296. package/resources/themes/luna-green/theme.css +1 -0
  297. package/resources/themes/luna-pink/theme.css +1 -0
  298. package/resources/themes/md-dark-deeppurple/theme.css +1 -0
  299. package/resources/themes/md-dark-indigo/theme.css +1 -0
  300. package/resources/themes/md-light-deeppurple/theme.css +1 -0
  301. package/resources/themes/md-light-indigo/theme.css +1 -0
  302. package/resources/themes/mdc-dark-deeppurple/theme.css +1 -0
  303. package/resources/themes/mdc-dark-indigo/theme.css +1 -0
  304. package/resources/themes/mdc-light-deeppurple/theme.css +1 -0
  305. package/resources/themes/mdc-light-indigo/theme.css +1 -0
  306. package/resources/themes/mira/theme.css +1 -0
  307. package/resources/themes/nano/theme.css +1 -0
  308. package/resources/themes/nova/theme.css +1 -0
  309. package/resources/themes/nova-accent/theme.css +1 -0
  310. package/resources/themes/nova-alt/theme.css +1 -0
  311. package/resources/themes/nova-vue/theme.css +1 -0
  312. package/resources/themes/rhea/theme.css +1 -0
  313. package/resources/themes/saga-blue/theme.css +1 -0
  314. package/resources/themes/saga-green/theme.css +1 -0
  315. package/resources/themes/saga-orange/theme.css +1 -0
  316. package/resources/themes/saga-purple/theme.css +1 -0
  317. package/resources/themes/soho-dark/theme.css +1 -0
  318. package/resources/themes/soho-light/theme.css +1 -0
  319. package/resources/themes/tailwind-light/theme.css +1 -0
  320. package/resources/themes/vela-blue/theme.css +1 -0
  321. package/resources/themes/vela-green/theme.css +1 -0
  322. package/resources/themes/vela-orange/theme.css +1 -0
  323. package/resources/themes/vela-purple/theme.css +1 -0
  324. package/resources/themes/viva-dark/theme.css +1 -0
  325. package/resources/themes/viva-light/theme.css +1 -0
  326. package/row/Row.d.ts +2 -2
  327. package/scrollpanel/ScrollPanel.d.ts +2 -2
  328. package/scrollpanel/ScrollPanel.vue +19 -14
  329. package/scrollpanel/scrollpanel.cjs.js +18 -14
  330. package/scrollpanel/scrollpanel.cjs.min.js +1 -1
  331. package/scrollpanel/scrollpanel.esm.js +18 -14
  332. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  333. package/scrollpanel/scrollpanel.js +18 -14
  334. package/scrollpanel/scrollpanel.min.js +1 -1
  335. package/scrolltop/ScrollTop.d.ts +2 -2
  336. package/selectbutton/SelectButton.d.ts +2 -2
  337. package/sidebar/BaseSidebar.vue +9 -0
  338. package/sidebar/Sidebar.d.ts +2 -2
  339. package/sidebar/sidebar.cjs.js +9 -0
  340. package/sidebar/sidebar.cjs.min.js +1 -1
  341. package/sidebar/sidebar.esm.js +9 -0
  342. package/sidebar/sidebar.esm.min.js +1 -1
  343. package/sidebar/sidebar.js +9 -0
  344. package/sidebar/sidebar.min.js +1 -1
  345. package/skeleton/Skeleton.d.ts +2 -2
  346. package/slider/Slider.d.ts +2 -2
  347. package/slider/Slider.vue +7 -6
  348. package/slider/slider.cjs.js +7 -6
  349. package/slider/slider.cjs.min.js +1 -1
  350. package/slider/slider.esm.js +7 -6
  351. package/slider/slider.esm.min.js +1 -1
  352. package/slider/slider.js +7 -6
  353. package/slider/slider.min.js +1 -1
  354. package/speeddial/SpeedDial.d.ts +2 -2
  355. package/splitbutton/SplitButton.d.ts +2 -2
  356. package/splitter/Splitter.d.ts +2 -2
  357. package/splitterpanel/SplitterPanel.d.ts +2 -2
  358. package/stepper/Stepper.d.ts +2 -2
  359. package/stepper/Stepper.vue +4 -3
  360. package/stepper/stepper.cjs.js +14 -15
  361. package/stepper/stepper.cjs.min.js +1 -1
  362. package/stepper/stepper.esm.js +15 -16
  363. package/stepper/stepper.esm.min.js +1 -1
  364. package/stepper/stepper.js +14 -15
  365. package/stepper/stepper.min.js +1 -1
  366. package/stepperpanel/StepperPanel.d.ts +3 -3
  367. package/steps/Steps.d.ts +2 -2
  368. package/tabmenu/TabMenu.d.ts +2 -2
  369. package/tabpanel/TabPanel.d.ts +2 -2
  370. package/tabview/TabView.d.ts +2 -2
  371. package/tag/Tag.d.ts +2 -2
  372. package/terminal/Terminal.d.ts +2 -2
  373. package/textarea/Textarea.d.ts +2 -2
  374. package/tieredmenu/TieredMenu.d.ts +2 -2
  375. package/tieredmenu/TieredMenu.vue +10 -3
  376. package/tieredmenu/tieredmenu.cjs.js +13 -3
  377. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  378. package/tieredmenu/tieredmenu.esm.js +13 -3
  379. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  380. package/tieredmenu/tieredmenu.js +13 -3
  381. package/tieredmenu/tieredmenu.min.js +1 -1
  382. package/timeline/Timeline.d.ts +2 -2
  383. package/toast/Toast.d.ts +2 -2
  384. package/toast/Toast.vue +4 -9
  385. package/toast/toast.cjs.js +8 -10
  386. package/toast/toast.cjs.min.js +1 -1
  387. package/toast/toast.esm.js +8 -10
  388. package/toast/toast.esm.min.js +1 -1
  389. package/toast/toast.js +8 -10
  390. package/toast/toast.min.js +1 -1
  391. package/togglebutton/ToggleButton.d.ts +2 -2
  392. package/toolbar/Toolbar.d.ts +2 -2
  393. package/tree/Tree.d.ts +7 -3
  394. package/tree/TreeNode.vue +2 -1
  395. package/tree/tree.cjs.js +6 -4
  396. package/tree/tree.cjs.min.js +1 -1
  397. package/tree/tree.esm.js +6 -4
  398. package/tree/tree.esm.min.js +1 -1
  399. package/tree/tree.js +6 -4
  400. package/tree/tree.min.js +1 -1
  401. package/treeselect/TreeSelect.d.ts +2 -2
  402. package/treetable/TreeTable.d.ts +2 -2
  403. package/treetable/TreeTable.vue +3 -3
  404. package/treetable/treetable.cjs.js +3 -3
  405. package/treetable/treetable.cjs.min.js +1 -1
  406. package/treetable/treetable.esm.js +3 -3
  407. package/treetable/treetable.esm.min.js +1 -1
  408. package/treetable/treetable.js +3 -3
  409. package/treetable/treetable.min.js +1 -1
  410. package/tristatecheckbox/TriStateCheckbox.d.ts +2 -2
  411. package/vetur-attributes.json +3 -3
  412. package/virtualscroller/VirtualScroller.d.ts +2 -2
  413. package/web-types.json +9 -4
@@ -232,8 +232,8 @@ export interface AccordionEmits {
232
232
  */
233
233
  declare class Accordion extends ClassComponent<AccordionProps, AccordionSlots, AccordionEmits> {}
234
234
 
235
- declare module '@vue/runtime-core' {
236
- interface GlobalComponents {
235
+ declare module 'vue' {
236
+ export interface GlobalComponents {
237
237
  Accordion: GlobalComponentConstructor<Accordion>;
238
238
  }
239
239
  }
@@ -226,8 +226,8 @@ export interface AccordionTabEmits {}
226
226
  */
227
227
  declare class AccordionTab extends ClassComponent<AccordionTabProps, AccordionTabSlots, AccordionTabEmits> {}
228
228
 
229
- declare module '@vue/runtime-core' {
230
- interface GlobalComponents {
229
+ declare module 'vue' {
230
+ export interface GlobalComponents {
231
231
  AccordionTab: GlobalComponentConstructor<AccordionTab>;
232
232
  }
233
233
  }
@@ -769,8 +769,8 @@ export interface AutoCompleteEmits {
769
769
  */
770
770
  declare class AutoComplete extends ClassComponent<AutoCompleteProps, AutoCompleteSlots, AutoCompleteEmits> {}
771
771
 
772
- declare module '@vue/runtime-core' {
773
- interface GlobalComponents {
772
+ declare module 'vue' {
773
+ export interface GlobalComponents {
774
774
  AutoComplete: GlobalComponentConstructor<AutoComplete>;
775
775
  }
776
776
  }
@@ -117,7 +117,7 @@
117
117
  <slot name="header" :value="modelValue" :suggestions="visibleOptions"></slot>
118
118
  <VirtualScroller :ref="virtualScrollerRef" v-bind="virtualScrollerOptions" :style="{ height: scrollHeight }" :items="visibleOptions" :tabindex="-1" :disabled="virtualScrollerDisabled" :pt="ptm('virtualScroller')">
119
119
  <template v-slot:content="{ styleClass, contentRef, items, getItemOptions, contentStyle, itemSize }">
120
- <ul :ref="(el) => listRef(el, contentRef)" :id="id + '_list'" :class="[cx('list'), styleClass]" :style="contentStyle" role="listbox" v-bind="ptm('list')">
120
+ <ul :ref="(el) => listRef(el, contentRef)" :id="id + '_list'" :class="[cx('list'), styleClass]" :style="contentStyle" role="listbox" :aria-label="listAriaLabel" v-bind="ptm('list')">
121
121
  <template v-for="(option, i) of items" :key="getOptionRenderKey(option, getOptionIndex(i, getItemOptions))">
122
122
  <li v-if="isOptionGroup(option)" :id="id + '_' + getOptionIndex(i, getItemOptions)" :style="{ height: itemSize ? itemSize + 'px' : undefined }" :class="cx('itemGroup')" role="option" v-bind="ptm('itemGroup')">
123
123
  <slot name="optiongroup" :option="option.optionGroup" :item="option.optionGroup" :index="getOptionIndex(i, getItemOptions)">{{ getOptionGroupLabel(option.optionGroup) }}</slot>
@@ -625,8 +625,6 @@ export default {
625
625
 
626
626
  this.hide();
627
627
  }
628
-
629
- event.preventDefault();
630
628
  },
631
629
  onEscapeKey(event) {
632
630
  this.overlayVisible && this.hide(true);
@@ -771,8 +769,13 @@ export default {
771
769
  isValidSelectedOption(option) {
772
770
  return this.isValidOption(option) && this.isSelected(option);
773
771
  },
772
+ isEquals(value1, value2) {
773
+ return ObjectUtils.equals(value1, value2, this.equalityKey);
774
+ },
774
775
  isSelected(option) {
775
- return ObjectUtils.equals(this.modelValue, this.getOptionValue(option), this.equalityKey);
776
+ const optionValue = this.getOptionValue(option);
777
+
778
+ return this.multiple ? (this.modelValue || []).some((value) => this.isEquals(value, optionValue)) : this.isEquals(this.modelValue, this.getOptionValue(option));
776
779
  },
777
780
  findFirstOptionIndex() {
778
781
  return this.visibleOptions.findIndex((option) => this.isValidOption(option));
@@ -921,6 +924,9 @@ export default {
921
924
  selectedMessageText() {
922
925
  return this.hasSelectedOption ? this.selectionMessageText.replaceAll('{0}', this.multiple ? this.modelValue.length : '1') : this.emptySelectionMessageText;
923
926
  },
927
+ listAriaLabel() {
928
+ return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.listLabel : undefined;
929
+ },
924
930
  focusedOptionId() {
925
931
  return this.focusedOptionIndex !== -1 ? `${this.id}_${this.focusedOptionIndex}` : null;
926
932
  },
@@ -606,7 +606,6 @@ var script = {
606
606
  }
607
607
  this.hide();
608
608
  }
609
- event.preventDefault();
610
609
  },
611
610
  onEscapeKey: function onEscapeKey(event) {
612
611
  this.overlayVisible && this.hide(true);
@@ -750,39 +749,46 @@ var script = {
750
749
  isValidSelectedOption: function isValidSelectedOption(option) {
751
750
  return this.isValidOption(option) && this.isSelected(option);
752
751
  },
752
+ isEquals: function isEquals(value1, value2) {
753
+ return utils.ObjectUtils.equals(value1, value2, this.equalityKey);
754
+ },
753
755
  isSelected: function isSelected(option) {
754
- return utils.ObjectUtils.equals(this.modelValue, this.getOptionValue(option), this.equalityKey);
756
+ var _this8 = this;
757
+ var optionValue = this.getOptionValue(option);
758
+ return this.multiple ? (this.modelValue || []).some(function (value) {
759
+ return _this8.isEquals(value, optionValue);
760
+ }) : this.isEquals(this.modelValue, this.getOptionValue(option));
755
761
  },
756
762
  findFirstOptionIndex: function findFirstOptionIndex() {
757
- var _this8 = this;
763
+ var _this9 = this;
758
764
  return this.visibleOptions.findIndex(function (option) {
759
- return _this8.isValidOption(option);
765
+ return _this9.isValidOption(option);
760
766
  });
761
767
  },
762
768
  findLastOptionIndex: function findLastOptionIndex() {
763
- var _this9 = this;
769
+ var _this10 = this;
764
770
  return utils.ObjectUtils.findLastIndex(this.visibleOptions, function (option) {
765
- return _this9.isValidOption(option);
771
+ return _this10.isValidOption(option);
766
772
  });
767
773
  },
768
774
  findNextOptionIndex: function findNextOptionIndex(index) {
769
- var _this10 = this;
775
+ var _this11 = this;
770
776
  var matchedOptionIndex = index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex(function (option) {
771
- return _this10.isValidOption(option);
777
+ return _this11.isValidOption(option);
772
778
  }) : -1;
773
779
  return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
774
780
  },
775
781
  findPrevOptionIndex: function findPrevOptionIndex(index) {
776
- var _this11 = this;
782
+ var _this12 = this;
777
783
  var matchedOptionIndex = index > 0 ? utils.ObjectUtils.findLastIndex(this.visibleOptions.slice(0, index), function (option) {
778
- return _this11.isValidOption(option);
784
+ return _this12.isValidOption(option);
779
785
  }) : -1;
780
786
  return matchedOptionIndex > -1 ? matchedOptionIndex : index;
781
787
  },
782
788
  findSelectedOptionIndex: function findSelectedOptionIndex() {
783
- var _this12 = this;
789
+ var _this13 = this;
784
790
  return this.hasSelectedOption ? this.visibleOptions.findIndex(function (option) {
785
- return _this12.isValidSelectedOption(option);
791
+ return _this13.isValidSelectedOption(option);
786
792
  }) : -1;
787
793
  },
788
794
  findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
@@ -810,12 +816,12 @@ var script = {
810
816
  });
811
817
  },
812
818
  removeOption: function removeOption(event, index) {
813
- var _this13 = this;
819
+ var _this14 = this;
814
820
  var removedOption = this.modelValue[index];
815
821
  var value = this.modelValue.filter(function (_, i) {
816
822
  return i !== index;
817
823
  }).map(function (option) {
818
- return _this13.getOptionValue(option);
824
+ return _this14.getOptionValue(option);
819
825
  });
820
826
  this.updateModel(event, value);
821
827
  this.$emit('item-unselect', {
@@ -835,18 +841,18 @@ var script = {
835
841
  }
836
842
  },
837
843
  scrollInView: function scrollInView() {
838
- var _this14 = this;
844
+ var _this15 = this;
839
845
  var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
840
846
  this.$nextTick(function () {
841
- var id = index !== -1 ? "".concat(_this14.id, "_").concat(index) : _this14.focusedOptionId;
842
- var element = utils.DomHandler.findSingle(_this14.list, "li[id=\"".concat(id, "\"]"));
847
+ var id = index !== -1 ? "".concat(_this15.id, "_").concat(index) : _this15.focusedOptionId;
848
+ var element = utils.DomHandler.findSingle(_this15.list, "li[id=\"".concat(id, "\"]"));
843
849
  if (element) {
844
850
  element.scrollIntoView && element.scrollIntoView({
845
851
  block: 'nearest',
846
852
  inline: 'start'
847
853
  });
848
- } else if (!_this14.virtualScrollerDisabled) {
849
- _this14.virtualScroller && _this14.virtualScroller.scrollToIndex(index !== -1 ? index : _this14.focusedOptionIndex);
854
+ } else if (!_this15.virtualScrollerDisabled) {
855
+ _this15.virtualScroller && _this15.virtualScroller.scrollToIndex(index !== -1 ? index : _this15.focusedOptionIndex);
850
856
  }
851
857
  });
852
858
  },
@@ -864,14 +870,14 @@ var script = {
864
870
  });
865
871
  },
866
872
  flatOptions: function flatOptions(options) {
867
- var _this15 = this;
873
+ var _this16 = this;
868
874
  return (options || []).reduce(function (result, option, index) {
869
875
  result.push({
870
876
  optionGroup: option,
871
877
  group: true,
872
878
  index: index
873
879
  });
874
- var optionGroupChildren = _this15.getOptionGroupChildren(option);
880
+ var optionGroupChildren = _this16.getOptionGroupChildren(option);
875
881
  optionGroupChildren && optionGroupChildren.forEach(function (o) {
876
882
  return result.push(o);
877
883
  });
@@ -929,6 +935,9 @@ var script = {
929
935
  selectedMessageText: function selectedMessageText() {
930
936
  return this.hasSelectedOption ? this.selectionMessageText.replaceAll('{0}', this.multiple ? this.modelValue.length : '1') : this.emptySelectionMessageText;
931
937
  },
938
+ listAriaLabel: function listAriaLabel() {
939
+ return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.listLabel : undefined;
940
+ },
932
941
  focusedOptionId: function focusedOptionId() {
933
942
  return this.focusedOptionIndex !== -1 ? "".concat(this.id, "_").concat(this.focusedOptionIndex) : null;
934
943
  },
@@ -936,9 +945,9 @@ var script = {
936
945
  return this.focusedMultipleOptionIndex !== -1 ? "".concat(this.id, "_multiple_option_").concat(this.focusedMultipleOptionIndex) : null;
937
946
  },
938
947
  ariaSetSize: function ariaSetSize() {
939
- var _this16 = this;
948
+ var _this17 = this;
940
949
  return this.visibleOptions.filter(function (option) {
941
- return !_this16.isOptionGroup(option);
950
+ return !_this17.isOptionGroup(option);
942
951
  }).length;
943
952
  },
944
953
  virtualScrollerDisabled: function virtualScrollerDisabled() {
@@ -968,7 +977,7 @@ var _hoisted_1 = ["id", "value", "placeholder", "tabindex", "disabled", "aria-la
968
977
  var _hoisted_2 = ["aria-activedescendant"];
969
978
  var _hoisted_3 = ["id", "aria-label", "aria-setsize", "aria-posinset"];
970
979
  var _hoisted_4 = ["id", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid"];
971
- var _hoisted_5 = ["id"];
980
+ var _hoisted_5 = ["id", "aria-label"];
972
981
  var _hoisted_6 = ["id"];
973
982
  var _hoisted_7 = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onClick", "onMousemove", "data-p-highlight", "data-p-focus", "data-p-disabled"];
974
983
  function render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -1207,7 +1216,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1207
1216
  id: $data.id + '_list',
1208
1217
  "class": [_ctx.cx('list'), styleClass],
1209
1218
  style: contentStyle,
1210
- role: "listbox"
1219
+ role: "listbox",
1220
+ "aria-label": $options.listAriaLabel
1211
1221
  }, _ctx.ptm('list')), [(vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(items, function (option, i) {
1212
1222
  return vue.openBlock(), vue.createElementBlock(vue.Fragment, {
1213
1223
  key: $options.getOptionRenderKey(option, $options.getOptionIndex(i, getItemOptions))
@@ -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),y=p(i),m=p(n),v=p(o),b=p(s),O=p(l),g=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},variant:{type:String,default:null},invalid:{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,Object],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:!1},selectOnFocus:{type:Boolean,default:!1},focusOnHover:{type:Boolean,default:!0},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},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:x.default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,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,dirty:!1,data:function(){return{id:this.$attrs.id,clicked:!1,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.clicked=!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.overlayVisible&&(this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,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)}this.clicked=!1}},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&&!this.multiple){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.clicked=!0,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.clicked?this.findFirstOptionIndex():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.clicked?this.findLastOptionIndex():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.focusedOptionIndex=-1,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){var i;return this.isValidOption(e)&&(null===(i=this.getOptionLabel(e))||void 0===i?void 0:i.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;this.$nextTick((function(){var i=-1!==t?"".concat(e.id,"_").concat(t):e.focusedOptionId,n=r.DomHandler.findSingle(e.list,'li[id="'.concat(i,'"]'));n?n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"start"}):e.virtualScrollerDisabled||e.virtualScroller&&e.virtualScroller.scrollToIndex(-1!==t?t:e.focusedOptionIndex)}))},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(r.ObjectUtils.isNotEmpty(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:g.default,Portal:b.default,ChevronDownIcon:f.default,SpinnerIcon:y.default,TimesCircleIcon:m.default},directives:{ripple:O.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){var n;return(t="symbol"==D(n=E(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function E(e,t){if("object"!=D(e)||!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 K=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-invalid"],P=["aria-activedescendant"],T=["id","aria-label","aria-setsize","aria-posinset"],F=["id","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-invalid"],A=["id"],j=["id"],H=["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.ptmi("root")),[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,"aria-invalid":e.invalid||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,K)),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)},removeCallback: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,T)})),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,"aria-invalid":e.invalid||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,F)],16)],16,P)):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")},{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,j)):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,H)),[[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,A)]})),_: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),O=p(l),g=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},variant:{type:String,default:null},invalid:{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,Object],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:!1},selectOnFocus:{type:Boolean,default:!1},focusOnHover:{type:Boolean,default:!0},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},ariaLabel:{type:String,default:null},ariaLabelledby:{type:String,default:null}},style:x.default,provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,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,dirty:!1,data:function(){return{id:this.$attrs.id,clicked:!1,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.clicked=!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.overlayVisible&&(this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,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)}this.clicked=!1}},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&&!this.multiple){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.clicked=!0,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.clicked?this.findFirstOptionIndex():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.clicked?this.findLastOptionIndex():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.focusedOptionIndex=-1,this.onArrowDownKey(e))},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){var i;return this.isValidOption(e)&&(null===(i=this.getOptionLabel(e))||void 0===i?void 0:i.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)},isEquals:function(e,t){return r.ObjectUtils.equals(e,t,this.equalityKey)},isSelected:function(e){var t=this,i=this.getOptionValue(e);return this.multiple?(this.modelValue||[]).some((function(e){return t.isEquals(e,i)})):this.isEquals(this.modelValue,this.getOptionValue(e))},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;this.$nextTick((function(){var i=-1!==t?"".concat(e.id,"_").concat(t):e.focusedOptionId,n=r.DomHandler.findSingle(e.list,'li[id="'.concat(i,'"]'));n?n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"start"}):e.virtualScrollerDisabled||e.virtualScroller&&e.virtualScroller.scrollToIndex(-1!==t?t:e.focusedOptionIndex)}))},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(r.ObjectUtils.isNotEmpty(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},listAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.listLabel:void 0},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:g.default,Portal:b.default,ChevronDownIcon:f.default,SpinnerIcon:m.default,TimesCircleIcon:y.default},directives:{ripple:O.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){var n;return(t="symbol"==D(n=E(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function E(e,t){if("object"!=D(e)||!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 K=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-invalid"],P=["aria-activedescendant"],T=["id","aria-label","aria-setsize","aria-posinset"],F=["id","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant","aria-invalid"],A=["id","aria-label"],j=["id"],H=["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.ptmi("root")),[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,"aria-invalid":e.invalid||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,K)),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)},removeCallback: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,T)})),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,"aria-invalid":e.invalid||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,F)],16)],16,P)):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")},{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","aria-label":s.listAriaLabel},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,j)):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,H)),[[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,A)]})),_: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;
@@ -591,7 +591,6 @@ var script = {
591
591
  }
592
592
  this.hide();
593
593
  }
594
- event.preventDefault();
595
594
  },
596
595
  onEscapeKey: function onEscapeKey(event) {
597
596
  this.overlayVisible && this.hide(true);
@@ -735,39 +734,46 @@ var script = {
735
734
  isValidSelectedOption: function isValidSelectedOption(option) {
736
735
  return this.isValidOption(option) && this.isSelected(option);
737
736
  },
737
+ isEquals: function isEquals(value1, value2) {
738
+ return ObjectUtils.equals(value1, value2, this.equalityKey);
739
+ },
738
740
  isSelected: function isSelected(option) {
739
- return ObjectUtils.equals(this.modelValue, this.getOptionValue(option), this.equalityKey);
741
+ var _this8 = this;
742
+ var optionValue = this.getOptionValue(option);
743
+ return this.multiple ? (this.modelValue || []).some(function (value) {
744
+ return _this8.isEquals(value, optionValue);
745
+ }) : this.isEquals(this.modelValue, this.getOptionValue(option));
740
746
  },
741
747
  findFirstOptionIndex: function findFirstOptionIndex() {
742
- var _this8 = this;
748
+ var _this9 = this;
743
749
  return this.visibleOptions.findIndex(function (option) {
744
- return _this8.isValidOption(option);
750
+ return _this9.isValidOption(option);
745
751
  });
746
752
  },
747
753
  findLastOptionIndex: function findLastOptionIndex() {
748
- var _this9 = this;
754
+ var _this10 = this;
749
755
  return ObjectUtils.findLastIndex(this.visibleOptions, function (option) {
750
- return _this9.isValidOption(option);
756
+ return _this10.isValidOption(option);
751
757
  });
752
758
  },
753
759
  findNextOptionIndex: function findNextOptionIndex(index) {
754
- var _this10 = this;
760
+ var _this11 = this;
755
761
  var matchedOptionIndex = index < this.visibleOptions.length - 1 ? this.visibleOptions.slice(index + 1).findIndex(function (option) {
756
- return _this10.isValidOption(option);
762
+ return _this11.isValidOption(option);
757
763
  }) : -1;
758
764
  return matchedOptionIndex > -1 ? matchedOptionIndex + index + 1 : index;
759
765
  },
760
766
  findPrevOptionIndex: function findPrevOptionIndex(index) {
761
- var _this11 = this;
767
+ var _this12 = this;
762
768
  var matchedOptionIndex = index > 0 ? ObjectUtils.findLastIndex(this.visibleOptions.slice(0, index), function (option) {
763
- return _this11.isValidOption(option);
769
+ return _this12.isValidOption(option);
764
770
  }) : -1;
765
771
  return matchedOptionIndex > -1 ? matchedOptionIndex : index;
766
772
  },
767
773
  findSelectedOptionIndex: function findSelectedOptionIndex() {
768
- var _this12 = this;
774
+ var _this13 = this;
769
775
  return this.hasSelectedOption ? this.visibleOptions.findIndex(function (option) {
770
- return _this12.isValidSelectedOption(option);
776
+ return _this13.isValidSelectedOption(option);
771
777
  }) : -1;
772
778
  },
773
779
  findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex() {
@@ -795,12 +801,12 @@ var script = {
795
801
  });
796
802
  },
797
803
  removeOption: function removeOption(event, index) {
798
- var _this13 = this;
804
+ var _this14 = this;
799
805
  var removedOption = this.modelValue[index];
800
806
  var value = this.modelValue.filter(function (_, i) {
801
807
  return i !== index;
802
808
  }).map(function (option) {
803
- return _this13.getOptionValue(option);
809
+ return _this14.getOptionValue(option);
804
810
  });
805
811
  this.updateModel(event, value);
806
812
  this.$emit('item-unselect', {
@@ -820,18 +826,18 @@ var script = {
820
826
  }
821
827
  },
822
828
  scrollInView: function scrollInView() {
823
- var _this14 = this;
829
+ var _this15 = this;
824
830
  var index = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : -1;
825
831
  this.$nextTick(function () {
826
- var id = index !== -1 ? "".concat(_this14.id, "_").concat(index) : _this14.focusedOptionId;
827
- var element = DomHandler.findSingle(_this14.list, "li[id=\"".concat(id, "\"]"));
832
+ var id = index !== -1 ? "".concat(_this15.id, "_").concat(index) : _this15.focusedOptionId;
833
+ var element = DomHandler.findSingle(_this15.list, "li[id=\"".concat(id, "\"]"));
828
834
  if (element) {
829
835
  element.scrollIntoView && element.scrollIntoView({
830
836
  block: 'nearest',
831
837
  inline: 'start'
832
838
  });
833
- } else if (!_this14.virtualScrollerDisabled) {
834
- _this14.virtualScroller && _this14.virtualScroller.scrollToIndex(index !== -1 ? index : _this14.focusedOptionIndex);
839
+ } else if (!_this15.virtualScrollerDisabled) {
840
+ _this15.virtualScroller && _this15.virtualScroller.scrollToIndex(index !== -1 ? index : _this15.focusedOptionIndex);
835
841
  }
836
842
  });
837
843
  },
@@ -849,14 +855,14 @@ var script = {
849
855
  });
850
856
  },
851
857
  flatOptions: function flatOptions(options) {
852
- var _this15 = this;
858
+ var _this16 = this;
853
859
  return (options || []).reduce(function (result, option, index) {
854
860
  result.push({
855
861
  optionGroup: option,
856
862
  group: true,
857
863
  index: index
858
864
  });
859
- var optionGroupChildren = _this15.getOptionGroupChildren(option);
865
+ var optionGroupChildren = _this16.getOptionGroupChildren(option);
860
866
  optionGroupChildren && optionGroupChildren.forEach(function (o) {
861
867
  return result.push(o);
862
868
  });
@@ -914,6 +920,9 @@ var script = {
914
920
  selectedMessageText: function selectedMessageText() {
915
921
  return this.hasSelectedOption ? this.selectionMessageText.replaceAll('{0}', this.multiple ? this.modelValue.length : '1') : this.emptySelectionMessageText;
916
922
  },
923
+ listAriaLabel: function listAriaLabel() {
924
+ return this.$primevue.config.locale.aria ? this.$primevue.config.locale.aria.listLabel : undefined;
925
+ },
917
926
  focusedOptionId: function focusedOptionId() {
918
927
  return this.focusedOptionIndex !== -1 ? "".concat(this.id, "_").concat(this.focusedOptionIndex) : null;
919
928
  },
@@ -921,9 +930,9 @@ var script = {
921
930
  return this.focusedMultipleOptionIndex !== -1 ? "".concat(this.id, "_multiple_option_").concat(this.focusedMultipleOptionIndex) : null;
922
931
  },
923
932
  ariaSetSize: function ariaSetSize() {
924
- var _this16 = this;
933
+ var _this17 = this;
925
934
  return this.visibleOptions.filter(function (option) {
926
- return !_this16.isOptionGroup(option);
935
+ return !_this17.isOptionGroup(option);
927
936
  }).length;
928
937
  },
929
938
  virtualScrollerDisabled: function virtualScrollerDisabled() {
@@ -953,7 +962,7 @@ var _hoisted_1 = ["id", "value", "placeholder", "tabindex", "disabled", "aria-la
953
962
  var _hoisted_2 = ["aria-activedescendant"];
954
963
  var _hoisted_3 = ["id", "aria-label", "aria-setsize", "aria-posinset"];
955
964
  var _hoisted_4 = ["id", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant", "aria-invalid"];
956
- var _hoisted_5 = ["id"];
965
+ var _hoisted_5 = ["id", "aria-label"];
957
966
  var _hoisted_6 = ["id"];
958
967
  var _hoisted_7 = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onClick", "onMousemove", "data-p-highlight", "data-p-focus", "data-p-disabled"];
959
968
  function render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -1192,7 +1201,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1192
1201
  id: $data.id + '_list',
1193
1202
  "class": [_ctx.cx('list'), styleClass],
1194
1203
  style: contentStyle,
1195
- role: "listbox"
1204
+ role: "listbox",
1205
+ "aria-label": $options.listAriaLabel
1196
1206
  }, _ctx.ptm('list')), [(openBlock(true), createElementBlock(Fragment, null, renderList(items, function (option, i) {
1197
1207
  return openBlock(), createElementBlock(Fragment, {
1198
1208
  key: $options.getOptionRenderKey(option, $options.getOptionIndex(i, getItemOptions))