primevue 3.27.0 → 3.29.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 (750) hide show
  1. package/README.md +4 -4
  2. package/autocomplete/AutoComplete.d.ts +163 -2
  3. package/autocomplete/AutoComplete.vue +47 -18
  4. package/autocomplete/autocomplete.cjs.js +84 -75
  5. package/autocomplete/autocomplete.cjs.min.js +1 -1
  6. package/autocomplete/autocomplete.esm.js +84 -76
  7. package/autocomplete/autocomplete.esm.min.js +1 -1
  8. package/autocomplete/autocomplete.js +85 -77
  9. package/autocomplete/autocomplete.min.js +1 -1
  10. package/avatar/Avatar.d.ts +44 -0
  11. package/avatar/Avatar.vue +10 -8
  12. package/avatar/avatar.cjs.js +36 -34
  13. package/avatar/avatar.cjs.min.js +1 -1
  14. package/avatar/avatar.esm.js +33 -35
  15. package/avatar/avatar.esm.min.js +1 -1
  16. package/avatar/avatar.js +37 -36
  17. package/avatar/avatar.min.js +1 -1
  18. package/avatargroup/AvatarGroup.d.ts +27 -1
  19. package/avatargroup/AvatarGroup.vue +5 -2
  20. package/avatargroup/avatargroup.cjs.js +9 -5
  21. package/avatargroup/avatargroup.cjs.min.js +1 -1
  22. package/avatargroup/avatargroup.esm.js +6 -6
  23. package/avatargroup/avatargroup.esm.min.js +1 -1
  24. package/avatargroup/avatargroup.js +10 -7
  25. package/avatargroup/avatargroup.min.js +1 -1
  26. package/badge/Badge.d.ts +32 -0
  27. package/badge/Badge.vue +3 -1
  28. package/badge/badge.cjs.js +8 -4
  29. package/badge/badge.cjs.min.js +1 -1
  30. package/badge/badge.esm.js +5 -5
  31. package/badge/badge.esm.min.js +1 -1
  32. package/badge/badge.js +9 -6
  33. package/badge/badge.min.js +1 -1
  34. package/basecomponent/BaseComponent.vue +25 -4
  35. package/basecomponent/basecomponent.cjs.js +25 -4
  36. package/basecomponent/basecomponent.cjs.min.js +1 -1
  37. package/basecomponent/basecomponent.esm.js +25 -4
  38. package/basecomponent/basecomponent.esm.min.js +1 -1
  39. package/basecomponent/basecomponent.js +26 -6
  40. package/basecomponent/basecomponent.min.js +1 -1
  41. package/baseicon/BaseIcon.vue +2 -2
  42. package/baseicon/baseicon.cjs.js +2 -2
  43. package/baseicon/baseicon.cjs.min.js +1 -1
  44. package/baseicon/baseicon.esm.js +2 -2
  45. package/baseicon/baseicon.esm.min.js +1 -1
  46. package/baseicon/baseicon.js +2 -2
  47. package/baseicon/baseicon.min.js +1 -1
  48. package/blockui/BlockUI.d.ts +44 -0
  49. package/blockui/BlockUI.vue +3 -1
  50. package/blockui/blockui.cjs.js +9 -3
  51. package/blockui/blockui.cjs.min.js +1 -1
  52. package/blockui/blockui.esm.js +6 -4
  53. package/blockui/blockui.esm.min.js +1 -1
  54. package/blockui/blockui.js +10 -5
  55. package/blockui/blockui.min.js +1 -1
  56. package/breadcrumb/Breadcrumb.d.ts +60 -0
  57. package/breadcrumb/Breadcrumb.vue +8 -6
  58. package/breadcrumb/BreadcrumbItem.vue +14 -10
  59. package/breadcrumb/breadcrumb.cjs.js +53 -51
  60. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  61. package/breadcrumb/breadcrumb.esm.js +53 -52
  62. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  63. package/breadcrumb/breadcrumb.js +54 -53
  64. package/breadcrumb/breadcrumb.min.js +1 -1
  65. package/button/Button.d.ts +48 -0
  66. package/button/Button.vue +10 -9
  67. package/button/button.cjs.js +43 -44
  68. package/button/button.cjs.min.js +1 -1
  69. package/button/button.esm.js +43 -45
  70. package/button/button.esm.min.js +1 -1
  71. package/button/button.js +44 -46
  72. package/button/button.min.js +1 -1
  73. package/calendar/Calendar.d.ts +269 -0
  74. package/calendar/Calendar.vue +75 -59
  75. package/calendar/calendar.cjs.js +223 -259
  76. package/calendar/calendar.cjs.min.js +1 -1
  77. package/calendar/calendar.esm.js +223 -260
  78. package/calendar/calendar.esm.min.js +1 -1
  79. package/calendar/calendar.js +224 -261
  80. package/calendar/calendar.min.js +1 -1
  81. package/carousel/Carousel.d.ts +154 -0
  82. package/carousel/Carousel.vue +27 -14
  83. package/carousel/carousel.cjs.js +64 -65
  84. package/carousel/carousel.cjs.min.js +1 -1
  85. package/carousel/carousel.esm.js +64 -66
  86. package/carousel/carousel.esm.min.js +1 -1
  87. package/carousel/carousel.js +65 -67
  88. package/carousel/carousel.min.js +1 -1
  89. package/cascadeselect/CascadeSelect.d.ts +133 -0
  90. package/cascadeselect/CascadeSelect.vue +15 -12
  91. package/cascadeselect/CascadeSelectSub.vue +7 -3
  92. package/cascadeselect/cascadeselect.cjs.js +63 -66
  93. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  94. package/cascadeselect/cascadeselect.esm.js +63 -67
  95. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  96. package/cascadeselect/cascadeselect.js +64 -68
  97. package/cascadeselect/cascadeselect.min.js +1 -1
  98. package/chart/Chart.d.ts +36 -0
  99. package/chart/Chart.vue +5 -2
  100. package/chart/chart.cjs.js +10 -5
  101. package/chart/chart.cjs.min.js +1 -1
  102. package/chart/chart.esm.js +7 -6
  103. package/chart/chart.esm.min.js +1 -1
  104. package/chart/chart.js +11 -7
  105. package/chart/chart.min.js +1 -1
  106. package/checkbox/Checkbox.d.ts +60 -0
  107. package/checkbox/Checkbox.vue +7 -5
  108. package/checkbox/checkbox.cjs.js +17 -15
  109. package/checkbox/checkbox.cjs.min.js +1 -1
  110. package/checkbox/checkbox.esm.js +17 -16
  111. package/checkbox/checkbox.esm.min.js +1 -1
  112. package/checkbox/checkbox.js +18 -17
  113. package/checkbox/checkbox.min.js +1 -1
  114. package/chip/Chip.d.ts +60 -0
  115. package/chip/Chip.vue +10 -9
  116. package/chip/chip.cjs.js +35 -36
  117. package/chip/chip.cjs.min.js +1 -1
  118. package/chip/chip.esm.js +35 -37
  119. package/chip/chip.esm.min.js +1 -1
  120. package/chip/chip.js +36 -38
  121. package/chip/chip.min.js +1 -1
  122. package/chips/Chips.d.ts +80 -0
  123. package/chips/Chips.vue +9 -5
  124. package/chips/chips.cjs.js +23 -24
  125. package/chips/chips.cjs.min.js +1 -1
  126. package/chips/chips.esm.js +23 -25
  127. package/chips/chips.esm.min.js +1 -1
  128. package/chips/chips.js +24 -26
  129. package/chips/chips.min.js +1 -1
  130. package/colorpicker/ColorPicker.d.ts +76 -0
  131. package/colorpicker/ColorPicker.vue +11 -9
  132. package/colorpicker/colorpicker.cjs.js +28 -27
  133. package/colorpicker/colorpicker.cjs.min.js +1 -1
  134. package/colorpicker/colorpicker.esm.js +28 -28
  135. package/colorpicker/colorpicker.esm.min.js +1 -1
  136. package/colorpicker/colorpicker.js +29 -29
  137. package/colorpicker/colorpicker.min.js +1 -1
  138. package/column/Column.d.ts +303 -2
  139. package/column/Column.vue +3 -0
  140. package/column/column.cjs.js +7 -0
  141. package/column/column.cjs.min.js +1 -1
  142. package/column/column.esm.js +3 -0
  143. package/column/column.esm.min.js +1 -1
  144. package/column/column.js +7 -2
  145. package/column/column.min.js +1 -1
  146. package/columngroup/ColumnGroup.d.ts +34 -0
  147. package/columngroup/ColumnGroup.vue +3 -0
  148. package/columngroup/columngroup.cjs.js +7 -0
  149. package/columngroup/columngroup.cjs.min.js +1 -1
  150. package/columngroup/columngroup.esm.js +3 -0
  151. package/columngroup/columngroup.esm.min.js +1 -1
  152. package/columngroup/columngroup.js +7 -2
  153. package/columngroup/columngroup.min.js +1 -1
  154. package/config/PrimeVue.d.ts +169 -0
  155. package/config/config.cjs.js +3 -1
  156. package/config/config.cjs.min.js +1 -1
  157. package/config/config.esm.js +3 -2
  158. package/config/config.esm.min.js +1 -1
  159. package/config/config.js +3 -1
  160. package/config/config.min.js +1 -1
  161. package/confirmdialog/ConfirmDialog.d.ts +95 -0
  162. package/confirmdialog/ConfirmDialog.vue +9 -6
  163. package/confirmdialog/confirmdialog.cjs.js +22 -18
  164. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  165. package/confirmdialog/confirmdialog.esm.js +22 -19
  166. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  167. package/confirmdialog/confirmdialog.js +23 -20
  168. package/confirmdialog/confirmdialog.min.js +1 -1
  169. package/confirmpopup/ConfirmPopup.d.ts +75 -0
  170. package/confirmpopup/ConfirmPopup.vue +11 -9
  171. package/confirmpopup/confirmpopup.cjs.js +27 -25
  172. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  173. package/confirmpopup/confirmpopup.esm.js +27 -26
  174. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  175. package/confirmpopup/confirmpopup.js +28 -27
  176. package/confirmpopup/confirmpopup.min.js +1 -1
  177. package/contextmenu/ContextMenu.d.ts +135 -0
  178. package/contextmenu/ContextMenu.vue +4 -1
  179. package/contextmenu/ContextMenuSub.vue +46 -10
  180. package/contextmenu/contextmenu.cjs.js +57 -46
  181. package/contextmenu/contextmenu.cjs.min.js +1 -1
  182. package/contextmenu/contextmenu.esm.js +57 -47
  183. package/contextmenu/contextmenu.esm.min.js +1 -1
  184. package/contextmenu/contextmenu.js +58 -48
  185. package/contextmenu/contextmenu.min.js +1 -1
  186. package/core/core.js +717 -568
  187. package/core/core.min.js +17 -17
  188. package/datatable/BodyCell.vue +29 -13
  189. package/datatable/ColumnFilter.vue +49 -20
  190. package/datatable/DataTable.d.ts +188 -1
  191. package/datatable/DataTable.vue +25 -14
  192. package/datatable/FooterCell.vue +15 -1
  193. package/datatable/HeaderCell.vue +31 -6
  194. package/datatable/HeaderCheckbox.vue +35 -5
  195. package/datatable/RowCheckbox.vue +36 -5
  196. package/datatable/RowRadioButton.vue +26 -6
  197. package/datatable/TableBody.vue +41 -11
  198. package/datatable/TableFooter.vue +31 -5
  199. package/datatable/TableHeader.vue +53 -6
  200. package/datatable/datatable.cjs.js +559 -376
  201. package/datatable/datatable.cjs.min.js +1 -1
  202. package/datatable/datatable.esm.js +559 -377
  203. package/datatable/datatable.esm.min.js +1 -1
  204. package/datatable/datatable.js +560 -378
  205. package/datatable/datatable.min.js +1 -1
  206. package/dataview/DataView.d.ts +72 -0
  207. package/dataview/DataView.vue +13 -8
  208. package/dataview/dataview.cjs.js +33 -37
  209. package/dataview/dataview.cjs.min.js +1 -1
  210. package/dataview/dataview.esm.js +33 -38
  211. package/dataview/dataview.esm.min.js +1 -1
  212. package/dataview/dataview.js +33 -38
  213. package/dataview/dataview.min.js +1 -1
  214. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +65 -0
  215. package/dataviewlayoutoptions/DataViewLayoutOptions.vue +7 -5
  216. package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.js +19 -17
  217. package/dataviewlayoutoptions/dataviewlayoutoptions.cjs.min.js +1 -1
  218. package/dataviewlayoutoptions/dataviewlayoutoptions.esm.js +19 -18
  219. package/dataviewlayoutoptions/dataviewlayoutoptions.esm.min.js +1 -1
  220. package/dataviewlayoutoptions/dataviewlayoutoptions.js +20 -19
  221. package/dataviewlayoutoptions/dataviewlayoutoptions.min.js +1 -1
  222. package/dialog/Dialog.d.ts +89 -0
  223. package/dialog/Dialog.vue +23 -11
  224. package/dialog/dialog.cjs.js +30 -30
  225. package/dialog/dialog.cjs.min.js +1 -1
  226. package/dialog/dialog.esm.js +30 -31
  227. package/dialog/dialog.esm.min.js +1 -1
  228. package/dialog/dialog.js +31 -32
  229. package/dialog/dialog.min.js +1 -1
  230. package/dock/Dock.d.ts +94 -0
  231. package/dock/Dock.vue +4 -2
  232. package/dock/DockSub.vue +30 -6
  233. package/dock/dock.cjs.js +52 -39
  234. package/dock/dock.cjs.min.js +1 -1
  235. package/dock/dock.esm.js +52 -40
  236. package/dock/dock.esm.min.js +1 -1
  237. package/dock/dock.js +53 -41
  238. package/dock/dock.min.js +1 -1
  239. package/dropdown/Dropdown.d.ts +162 -1
  240. package/dropdown/Dropdown.vue +45 -26
  241. package/dropdown/dropdown.cjs.js +98 -94
  242. package/dropdown/dropdown.cjs.min.js +1 -1
  243. package/dropdown/dropdown.esm.js +98 -95
  244. package/dropdown/dropdown.esm.min.js +1 -1
  245. package/dropdown/dropdown.js +99 -96
  246. package/dropdown/dropdown.min.js +1 -1
  247. package/dynamicdialog/DynamicDialog.vue +3 -1
  248. package/dynamicdialog/dynamicdialog.cjs.js +5 -1
  249. package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
  250. package/dynamicdialog/dynamicdialog.esm.js +4 -1
  251. package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
  252. package/dynamicdialog/dynamicdialog.js +6 -3
  253. package/dynamicdialog/dynamicdialog.min.js +1 -1
  254. package/editor/Editor.d.ts +67 -0
  255. package/editor/Editor.vue +35 -33
  256. package/editor/editor.cjs.js +88 -73
  257. package/editor/editor.cjs.min.js +1 -1
  258. package/editor/editor.esm.js +85 -74
  259. package/editor/editor.esm.min.js +1 -1
  260. package/editor/editor.js +89 -75
  261. package/editor/editor.min.js +1 -1
  262. package/fileupload/FileContent.vue +11 -9
  263. package/fileupload/FileUpload.d.ts +154 -0
  264. package/fileupload/FileUpload.vue +25 -23
  265. package/fileupload/fileupload.cjs.js +98 -95
  266. package/fileupload/fileupload.cjs.min.js +1 -1
  267. package/fileupload/fileupload.esm.js +98 -96
  268. package/fileupload/fileupload.esm.min.js +1 -1
  269. package/fileupload/fileupload.js +99 -97
  270. package/fileupload/fileupload.min.js +1 -1
  271. package/galleria/Galleria.d.ts +196 -0
  272. package/galleria/Galleria.vue +5 -3
  273. package/galleria/GalleriaContent.vue +10 -6
  274. package/galleria/GalleriaItem.vue +12 -9
  275. package/galleria/GalleriaThumbnails.vue +46 -9
  276. package/galleria/galleria.cjs.js +106 -104
  277. package/galleria/galleria.cjs.min.js +1 -1
  278. package/galleria/galleria.esm.js +106 -105
  279. package/galleria/galleria.esm.min.js +1 -1
  280. package/galleria/galleria.js +107 -106
  281. package/galleria/galleria.min.js +1 -1
  282. package/image/Image.d.ts +170 -0
  283. package/image/Image.vue +49 -21
  284. package/image/image.cjs.js +94 -59
  285. package/image/image.cjs.min.js +1 -1
  286. package/image/image.esm.js +94 -60
  287. package/image/image.esm.min.js +1 -1
  288. package/image/image.js +95 -61
  289. package/image/image.min.js +1 -1
  290. package/inlinemessage/InlineMessage.d.ts +52 -0
  291. package/inlinemessage/InlineMessage.vue +7 -3
  292. package/inlinemessage/inlinemessage.cjs.js +12 -11
  293. package/inlinemessage/inlinemessage.cjs.min.js +1 -1
  294. package/inlinemessage/inlinemessage.esm.js +12 -12
  295. package/inlinemessage/inlinemessage.esm.min.js +1 -1
  296. package/inlinemessage/inlinemessage.js +13 -13
  297. package/inlinemessage/inlinemessage.min.js +1 -1
  298. package/inplace/Inplace.d.ts +59 -0
  299. package/inplace/Inplace.vue +7 -5
  300. package/inplace/inplace.cjs.js +17 -16
  301. package/inplace/inplace.cjs.min.js +1 -1
  302. package/inplace/inplace.esm.js +17 -17
  303. package/inplace/inplace.esm.min.js +1 -1
  304. package/inplace/inplace.js +18 -18
  305. package/inplace/inplace.min.js +1 -1
  306. package/inputmask/InputMask.d.ts +25 -0
  307. package/inputmask/InputMask.vue +3 -1
  308. package/inputmask/inputmask.cjs.js +9 -3
  309. package/inputmask/inputmask.cjs.min.js +1 -1
  310. package/inputmask/inputmask.esm.js +6 -4
  311. package/inputmask/inputmask.esm.min.js +1 -1
  312. package/inputmask/inputmask.js +10 -5
  313. package/inputmask/inputmask.min.js +1 -1
  314. package/inputnumber/InputNumber.d.ts +69 -0
  315. package/inputnumber/InputNumber.vue +13 -11
  316. package/inputnumber/inputnumber.cjs.js +19 -28
  317. package/inputnumber/inputnumber.cjs.min.js +1 -1
  318. package/inputnumber/inputnumber.esm.js +19 -29
  319. package/inputnumber/inputnumber.esm.min.js +1 -1
  320. package/inputnumber/inputnumber.js +20 -30
  321. package/inputnumber/inputnumber.min.js +1 -1
  322. package/inputswitch/InputSwitch.d.ts +51 -0
  323. package/inputswitch/InputSwitch.vue +7 -4
  324. package/inputswitch/inputswitch.cjs.js +15 -11
  325. package/inputswitch/inputswitch.cjs.min.js +1 -1
  326. package/inputswitch/inputswitch.esm.js +12 -12
  327. package/inputswitch/inputswitch.esm.min.js +1 -1
  328. package/inputswitch/inputswitch.js +16 -13
  329. package/inputswitch/inputswitch.min.js +1 -1
  330. package/inputtext/InputText.d.ts +25 -0
  331. package/inputtext/InputText.vue +4 -1
  332. package/inputtext/inputtext.cjs.js +9 -3
  333. package/inputtext/inputtext.cjs.min.js +1 -1
  334. package/inputtext/inputtext.esm.js +6 -4
  335. package/inputtext/inputtext.esm.min.js +1 -1
  336. package/inputtext/inputtext.js +10 -5
  337. package/inputtext/inputtext.min.js +1 -1
  338. package/knob/Knob.d.ts +78 -0
  339. package/knob/Knob.vue +8 -4
  340. package/knob/knob.cjs.js +17 -13
  341. package/knob/knob.cjs.min.js +1 -1
  342. package/knob/knob.esm.js +14 -14
  343. package/knob/knob.esm.min.js +1 -1
  344. package/knob/knob.js +18 -15
  345. package/knob/knob.min.js +1 -1
  346. package/listbox/Listbox.d.ts +138 -2
  347. package/listbox/Listbox.vue +28 -15
  348. package/listbox/listbox.cjs.js +83 -78
  349. package/listbox/listbox.cjs.min.js +1 -1
  350. package/listbox/listbox.esm.js +83 -79
  351. package/listbox/listbox.esm.min.js +1 -1
  352. package/listbox/listbox.js +84 -80
  353. package/listbox/listbox.min.js +1 -1
  354. package/megamenu/MegaMenu.d.ts +149 -0
  355. package/megamenu/MegaMenu.vue +6 -3
  356. package/megamenu/MegaMenuSub.vue +43 -15
  357. package/megamenu/megamenu.cjs.js +83 -75
  358. package/megamenu/megamenu.cjs.min.js +1 -1
  359. package/megamenu/megamenu.esm.js +83 -76
  360. package/megamenu/megamenu.esm.min.js +1 -1
  361. package/megamenu/megamenu.js +84 -77
  362. package/megamenu/megamenu.min.js +1 -1
  363. package/menu/Menu.d.ts +113 -0
  364. package/menu/Menu.vue +11 -8
  365. package/menu/Menuitem.vue +20 -8
  366. package/menu/menu.cjs.js +73 -62
  367. package/menu/menu.cjs.min.js +1 -1
  368. package/menu/menu.esm.js +73 -63
  369. package/menu/menu.esm.min.js +1 -1
  370. package/menu/menu.js +74 -64
  371. package/menu/menu.min.js +1 -1
  372. package/menubar/Menubar.d.ts +146 -0
  373. package/menubar/Menubar.vue +8 -5
  374. package/menubar/MenubarSub.vue +38 -10
  375. package/menubar/menubar.cjs.js +70 -60
  376. package/menubar/menubar.cjs.min.js +1 -1
  377. package/menubar/menubar.esm.js +70 -61
  378. package/menubar/menubar.esm.min.js +1 -1
  379. package/menubar/menubar.js +71 -62
  380. package/menubar/menubar.min.js +1 -1
  381. package/message/Message.d.ts +64 -1
  382. package/message/Message.vue +9 -7
  383. package/message/message.cjs.js +22 -21
  384. package/message/message.cjs.min.js +1 -1
  385. package/message/message.esm.js +22 -22
  386. package/message/message.esm.min.js +1 -1
  387. package/message/message.js +23 -23
  388. package/message/message.min.js +1 -1
  389. package/multiselect/MultiSelect.d.ts +224 -2
  390. package/multiselect/MultiSelect.vue +72 -41
  391. package/multiselect/multiselect.cjs.js +156 -151
  392. package/multiselect/multiselect.cjs.min.js +1 -1
  393. package/multiselect/multiselect.esm.js +156 -152
  394. package/multiselect/multiselect.esm.min.js +1 -1
  395. package/multiselect/multiselect.js +157 -153
  396. package/multiselect/multiselect.min.js +1 -1
  397. package/orderlist/OrderList.d.ts +94 -0
  398. package/orderlist/OrderList.vue +38 -18
  399. package/orderlist/orderlist.cjs.js +50 -36
  400. package/orderlist/orderlist.cjs.min.js +1 -1
  401. package/orderlist/orderlist.esm.js +50 -37
  402. package/orderlist/orderlist.esm.min.js +1 -1
  403. package/orderlist/orderlist.js +51 -38
  404. package/orderlist/orderlist.min.js +1 -1
  405. package/organizationchart/OrganizationChart.d.ts +129 -0
  406. package/organizationchart/OrganizationChart.vue +14 -2
  407. package/organizationchart/OrganizationChartNode.vue +37 -16
  408. package/organizationchart/organizationchart.cjs.js +77 -61
  409. package/organizationchart/organizationchart.cjs.min.js +1 -1
  410. package/organizationchart/organizationchart.esm.js +77 -62
  411. package/organizationchart/organizationchart.esm.min.js +1 -1
  412. package/organizationchart/organizationchart.js +78 -63
  413. package/organizationchart/organizationchart.min.js +1 -1
  414. package/overlaypanel/OverlayPanel.d.ts +56 -0
  415. package/overlaypanel/OverlayPanel.vue +6 -4
  416. package/overlaypanel/overlaypanel.cjs.js +13 -10
  417. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  418. package/overlaypanel/overlaypanel.esm.js +13 -11
  419. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  420. package/overlaypanel/overlaypanel.js +14 -12
  421. package/overlaypanel/overlaypanel.min.js +1 -1
  422. package/package.json +1 -1
  423. package/paginator/CurrentPageReport.vue +5 -1
  424. package/paginator/FirstPageLink.vue +13 -2
  425. package/paginator/JumpToPageDropdown.vue +3 -1
  426. package/paginator/JumpToPageInput.vue +3 -1
  427. package/paginator/LastPageLink.vue +13 -2
  428. package/paginator/NextPageLink.vue +13 -2
  429. package/paginator/PageLinks.vue +12 -2
  430. package/paginator/Paginator.d.ts +133 -0
  431. package/paginator/Paginator.vue +23 -12
  432. package/paginator/PrevPageLink.vue +13 -2
  433. package/paginator/RowsPerPageDropdown.vue +3 -1
  434. package/paginator/paginator.cjs.js +135 -76
  435. package/paginator/paginator.cjs.min.js +1 -1
  436. package/paginator/paginator.esm.js +135 -77
  437. package/paginator/paginator.esm.min.js +1 -1
  438. package/paginator/paginator.js +136 -78
  439. package/paginator/paginator.min.js +1 -1
  440. package/panel/Panel.d.ts +10 -1
  441. package/panel/Panel.vue +1 -1
  442. package/panel/panel.cjs.js +4 -1
  443. package/panel/panel.cjs.min.js +1 -1
  444. package/panel/panel.esm.js +4 -1
  445. package/panel/panel.esm.min.js +1 -1
  446. package/panel/panel.js +4 -1
  447. package/panel/panel.min.js +1 -1
  448. package/panelmenu/PanelMenu.d.ts +129 -0
  449. package/panelmenu/PanelMenu.vue +36 -13
  450. package/panelmenu/PanelMenuList.vue +3 -0
  451. package/panelmenu/PanelMenuSub.vue +33 -12
  452. package/panelmenu/panelmenu.cjs.js +115 -96
  453. package/panelmenu/panelmenu.cjs.min.js +1 -1
  454. package/panelmenu/panelmenu.esm.js +115 -97
  455. package/panelmenu/panelmenu.esm.min.js +1 -1
  456. package/panelmenu/panelmenu.js +116 -98
  457. package/panelmenu/panelmenu.min.js +1 -1
  458. package/password/Password.d.ts +104 -0
  459. package/password/Password.vue +13 -11
  460. package/password/password.cjs.js +28 -30
  461. package/password/password.cjs.min.js +1 -1
  462. package/password/password.esm.js +28 -31
  463. package/password/password.esm.min.js +1 -1
  464. package/password/password.js +29 -32
  465. package/password/password.min.js +1 -1
  466. package/picklist/PickList.d.ts +160 -0
  467. package/picklist/PickList.vue +46 -34
  468. package/picklist/picklist.cjs.js +111 -85
  469. package/picklist/picklist.cjs.min.js +1 -1
  470. package/picklist/picklist.esm.js +111 -86
  471. package/picklist/picklist.esm.min.js +1 -1
  472. package/picklist/picklist.js +112 -87
  473. package/picklist/picklist.min.js +1 -1
  474. package/progressbar/ProgressBar.d.ts +40 -0
  475. package/progressbar/ProgressBar.vue +8 -5
  476. package/progressbar/progressbar.cjs.js +25 -23
  477. package/progressbar/progressbar.cjs.min.js +1 -1
  478. package/progressbar/progressbar.esm.js +22 -24
  479. package/progressbar/progressbar.esm.min.js +1 -1
  480. package/progressbar/progressbar.js +26 -25
  481. package/progressbar/progressbar.min.js +1 -1
  482. package/progressspinner/ProgressSpinner.d.ts +40 -0
  483. package/progressspinner/ProgressSpinner.vue +6 -3
  484. package/progressspinner/progressspinner.cjs.js +18 -13
  485. package/progressspinner/progressspinner.cjs.min.js +1 -1
  486. package/progressspinner/progressspinner.esm.js +15 -14
  487. package/progressspinner/progressspinner.esm.min.js +1 -1
  488. package/progressspinner/progressspinner.js +19 -15
  489. package/progressspinner/progressspinner.min.js +1 -1
  490. package/radiobutton/RadioButton.d.ts +55 -0
  491. package/radiobutton/RadioButton.vue +7 -5
  492. package/radiobutton/radiobutton.cjs.js +19 -16
  493. package/radiobutton/radiobutton.cjs.min.js +1 -1
  494. package/radiobutton/radiobutton.esm.js +16 -17
  495. package/radiobutton/radiobutton.esm.min.js +1 -1
  496. package/radiobutton/radiobutton.js +20 -18
  497. package/radiobutton/radiobutton.min.js +1 -1
  498. package/rating/Rating.d.ts +96 -0
  499. package/rating/Rating.vue +32 -9
  500. package/rating/rating.cjs.js +41 -34
  501. package/rating/rating.cjs.min.js +1 -1
  502. package/rating/rating.esm.js +41 -35
  503. package/rating/rating.esm.min.js +1 -1
  504. package/rating/rating.js +42 -36
  505. package/rating/rating.min.js +1 -1
  506. package/resources/themes/arya-blue/theme.css +1 -1
  507. package/resources/themes/arya-green/theme.css +1 -1
  508. package/resources/themes/arya-orange/theme.css +1 -1
  509. package/resources/themes/arya-purple/theme.css +1 -1
  510. package/resources/themes/bootstrap4-dark-blue/theme.css +1 -1
  511. package/resources/themes/bootstrap4-dark-purple/theme.css +1 -1
  512. package/resources/themes/bootstrap4-light-blue/theme.css +1 -1
  513. package/resources/themes/bootstrap4-light-purple/theme.css +1 -1
  514. package/resources/themes/fluent-light/theme.css +1 -1
  515. package/resources/themes/lara-dark-blue/theme.css +1 -1
  516. package/resources/themes/lara-dark-indigo/theme.css +1 -1
  517. package/resources/themes/lara-dark-purple/theme.css +1 -1
  518. package/resources/themes/lara-dark-teal/theme.css +1 -1
  519. package/resources/themes/lara-light-blue/theme.css +1 -1
  520. package/resources/themes/lara-light-indigo/theme.css +1 -1
  521. package/resources/themes/lara-light-purple/theme.css +1 -1
  522. package/resources/themes/lara-light-teal/theme.css +1 -1
  523. package/resources/themes/luna-amber/theme.css +1 -1
  524. package/resources/themes/luna-blue/theme.css +1 -1
  525. package/resources/themes/luna-green/theme.css +1 -1
  526. package/resources/themes/luna-pink/theme.css +1 -1
  527. package/resources/themes/md-dark-deeppurple/theme.css +4 -1
  528. package/resources/themes/md-dark-indigo/theme.css +4 -1
  529. package/resources/themes/md-light-deeppurple/theme.css +4 -1
  530. package/resources/themes/md-light-indigo/theme.css +4 -1
  531. package/resources/themes/mdc-dark-deeppurple/theme.css +4 -1
  532. package/resources/themes/mdc-dark-indigo/theme.css +4 -1
  533. package/resources/themes/mdc-light-deeppurple/theme.css +4 -1
  534. package/resources/themes/mdc-light-indigo/theme.css +4 -1
  535. package/resources/themes/mira/theme.css +1 -1
  536. package/resources/themes/nano/theme.css +1 -1
  537. package/resources/themes/nova/theme.css +1 -1
  538. package/resources/themes/nova-accent/theme.css +1 -1
  539. package/resources/themes/nova-alt/theme.css +1 -1
  540. package/resources/themes/nova-vue/theme.css +1 -1
  541. package/resources/themes/rhea/theme.css +1 -1
  542. package/resources/themes/saga-blue/theme.css +1 -1
  543. package/resources/themes/saga-green/theme.css +1 -1
  544. package/resources/themes/saga-orange/theme.css +1 -1
  545. package/resources/themes/saga-purple/theme.css +1 -1
  546. package/resources/themes/soho-dark/theme.css +1 -1
  547. package/resources/themes/soho-light/theme.css +1 -1
  548. package/resources/themes/tailwind-light/theme.css +1 -1
  549. package/resources/themes/vela-blue/theme.css +1 -1
  550. package/resources/themes/vela-green/theme.css +1 -1
  551. package/resources/themes/vela-orange/theme.css +1 -1
  552. package/resources/themes/vela-purple/theme.css +1 -1
  553. package/resources/themes/viva-dark/theme.css +1 -1
  554. package/resources/themes/viva-light/theme.css +1 -1
  555. package/row/Row.d.ts +29 -0
  556. package/row/Row.vue +3 -0
  557. package/row/row.cjs.js +7 -0
  558. package/row/row.cjs.min.js +1 -1
  559. package/row/row.esm.js +3 -0
  560. package/row/row.esm.min.js +1 -1
  561. package/row/row.js +7 -2
  562. package/row/row.min.js +1 -1
  563. package/scrolltop/ScrollTop.d.ts +48 -0
  564. package/scrolltop/ScrollTop.vue +5 -2
  565. package/scrolltop/scrolltop.cjs.js +10 -7
  566. package/scrolltop/scrolltop.cjs.min.js +1 -1
  567. package/scrolltop/scrolltop.esm.js +10 -8
  568. package/scrolltop/scrolltop.esm.min.js +1 -1
  569. package/scrolltop/scrolltop.js +11 -9
  570. package/scrolltop/scrolltop.min.js +1 -1
  571. package/selectbutton/SelectButton.d.ts +68 -0
  572. package/selectbutton/SelectButton.vue +13 -2
  573. package/selectbutton/selectbutton.cjs.js +20 -10
  574. package/selectbutton/selectbutton.cjs.min.js +1 -1
  575. package/selectbutton/selectbutton.esm.js +20 -11
  576. package/selectbutton/selectbutton.esm.min.js +1 -1
  577. package/selectbutton/selectbutton.js +21 -12
  578. package/selectbutton/selectbutton.min.js +1 -1
  579. package/sidebar/Sidebar.d.ts +68 -0
  580. package/sidebar/Sidebar.vue +9 -7
  581. package/sidebar/sidebar.cjs.js +26 -24
  582. package/sidebar/sidebar.cjs.min.js +1 -1
  583. package/sidebar/sidebar.esm.js +26 -25
  584. package/sidebar/sidebar.esm.min.js +1 -1
  585. package/sidebar/sidebar.js +27 -26
  586. package/sidebar/sidebar.min.js +1 -1
  587. package/skeleton/Skeleton.d.ts +32 -0
  588. package/skeleton/Skeleton.vue +4 -1
  589. package/skeleton/skeleton.cjs.js +10 -4
  590. package/skeleton/skeleton.cjs.min.js +1 -1
  591. package/skeleton/skeleton.esm.js +7 -5
  592. package/skeleton/skeleton.esm.min.js +1 -1
  593. package/skeleton/skeleton.js +11 -6
  594. package/skeleton/skeleton.min.js +1 -1
  595. package/slider/Slider.d.ts +48 -0
  596. package/slider/Slider.vue +7 -2
  597. package/slider/slider.cjs.js +22 -16
  598. package/slider/slider.cjs.min.js +1 -1
  599. package/slider/slider.esm.js +19 -17
  600. package/slider/slider.esm.min.js +1 -1
  601. package/slider/slider.js +23 -18
  602. package/slider/slider.min.js +1 -1
  603. package/speeddial/SpeedDial.d.ts +101 -0
  604. package/speeddial/SpeedDial.vue +31 -8
  605. package/speeddial/speeddial.cjs.js +47 -33
  606. package/speeddial/speeddial.cjs.min.js +1 -1
  607. package/speeddial/speeddial.esm.js +47 -34
  608. package/speeddial/speeddial.esm.min.js +1 -1
  609. package/speeddial/speeddial.js +48 -35
  610. package/speeddial/speeddial.min.js +1 -1
  611. package/splitbutton/SplitButton.d.ts +60 -0
  612. package/splitbutton/SplitButton.vue +8 -5
  613. package/splitbutton/splitbutton.cjs.js +25 -19
  614. package/splitbutton/splitbutton.cjs.min.js +1 -1
  615. package/splitbutton/splitbutton.esm.js +25 -20
  616. package/splitbutton/splitbutton.esm.min.js +1 -1
  617. package/splitbutton/splitbutton.js +26 -21
  618. package/splitbutton/splitbutton.min.js +1 -1
  619. package/splitter/Splitter.d.ts +3 -3
  620. package/steps/Steps.d.ts +52 -0
  621. package/steps/Steps.vue +11 -8
  622. package/steps/steps.cjs.js +34 -33
  623. package/steps/steps.cjs.min.js +1 -1
  624. package/steps/steps.esm.js +31 -34
  625. package/steps/steps.esm.min.js +1 -1
  626. package/steps/steps.js +35 -35
  627. package/steps/steps.min.js +1 -1
  628. package/tabmenu/TabMenu.d.ts +79 -0
  629. package/tabmenu/TabMenu.vue +20 -10
  630. package/tabmenu/tabmenu.cjs.js +47 -41
  631. package/tabmenu/tabmenu.cjs.min.js +1 -1
  632. package/tabmenu/tabmenu.esm.js +47 -42
  633. package/tabmenu/tabmenu.esm.min.js +1 -1
  634. package/tabmenu/tabmenu.js +48 -43
  635. package/tabmenu/tabmenu.min.js +1 -1
  636. package/tag/Tag.d.ts +40 -0
  637. package/tag/Tag.vue +7 -4
  638. package/tag/tag.cjs.js +14 -12
  639. package/tag/tag.cjs.min.js +1 -1
  640. package/tag/tag.esm.js +11 -13
  641. package/tag/tag.esm.min.js +1 -1
  642. package/tag/tag.js +15 -14
  643. package/tag/tag.min.js +1 -1
  644. package/terminal/Terminal.d.ts +79 -0
  645. package/terminal/Terminal.vue +12 -10
  646. package/terminal/terminal.cjs.js +23 -28
  647. package/terminal/terminal.cjs.min.js +1 -1
  648. package/terminal/terminal.esm.js +23 -29
  649. package/terminal/terminal.esm.min.js +1 -1
  650. package/terminal/terminal.js +24 -30
  651. package/terminal/terminal.min.js +1 -1
  652. package/textarea/Textarea.d.ts +32 -0
  653. package/textarea/Textarea.vue +4 -1
  654. package/textarea/textarea.cjs.js +9 -3
  655. package/textarea/textarea.cjs.min.js +1 -1
  656. package/textarea/textarea.esm.js +6 -4
  657. package/textarea/textarea.esm.min.js +1 -1
  658. package/textarea/textarea.js +10 -5
  659. package/textarea/textarea.min.js +1 -1
  660. package/tieredmenu/TieredMenu.d.ts +130 -0
  661. package/tieredmenu/TieredMenu.vue +4 -1
  662. package/tieredmenu/TieredMenuSub.vue +39 -11
  663. package/tieredmenu/tieredmenu.cjs.js +53 -41
  664. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  665. package/tieredmenu/tieredmenu.esm.js +53 -42
  666. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  667. package/tieredmenu/tieredmenu.js +54 -43
  668. package/tieredmenu/tieredmenu.min.js +1 -1
  669. package/timeline/Timeline.d.ts +49 -0
  670. package/timeline/Timeline.vue +9 -7
  671. package/timeline/timeline.cjs.js +19 -21
  672. package/timeline/timeline.cjs.min.js +1 -1
  673. package/timeline/timeline.esm.js +16 -22
  674. package/timeline/timeline.esm.min.js +1 -1
  675. package/timeline/timeline.js +20 -23
  676. package/timeline/timeline.min.js +1 -1
  677. package/toast/Toast.d.ts +83 -0
  678. package/toast/Toast.vue +5 -2
  679. package/toast/ToastMessage.vue +12 -10
  680. package/toast/toast.cjs.js +34 -34
  681. package/toast/toast.cjs.min.js +1 -1
  682. package/toast/toast.esm.js +34 -35
  683. package/toast/toast.esm.min.js +1 -1
  684. package/toast/toast.js +35 -36
  685. package/toast/toast.min.js +1 -1
  686. package/togglebutton/ToggleButton.d.ts +59 -0
  687. package/togglebutton/ToggleButton.vue +7 -5
  688. package/togglebutton/togglebutton.cjs.js +15 -14
  689. package/togglebutton/togglebutton.cjs.min.js +1 -1
  690. package/togglebutton/togglebutton.esm.js +15 -15
  691. package/togglebutton/togglebutton.esm.min.js +1 -1
  692. package/togglebutton/togglebutton.js +16 -16
  693. package/togglebutton/togglebutton.min.js +1 -1
  694. package/tooltip/Tooltip.d.ts +10 -0
  695. package/tooltip/tooltip.cjs.js +51 -9
  696. package/tooltip/tooltip.cjs.min.js +1 -1
  697. package/tooltip/tooltip.esm.js +52 -10
  698. package/tooltip/tooltip.esm.min.js +1 -1
  699. package/tooltip/tooltip.js +51 -9
  700. package/tooltip/tooltip.min.js +1 -1
  701. package/tree/Tree.d.ts +137 -0
  702. package/tree/Tree.vue +12 -9
  703. package/tree/TreeNode.vue +23 -10
  704. package/tree/tree.cjs.js +85 -79
  705. package/tree/tree.cjs.min.js +1 -1
  706. package/tree/tree.esm.js +85 -80
  707. package/tree/tree.esm.min.js +1 -1
  708. package/tree/tree.js +86 -81
  709. package/tree/tree.min.js +1 -1
  710. package/treeselect/TreeSelect.d.ts +104 -3
  711. package/treeselect/TreeSelect.vue +15 -12
  712. package/treeselect/treeselect.cjs.js +37 -39
  713. package/treeselect/treeselect.cjs.min.js +1 -1
  714. package/treeselect/treeselect.esm.js +37 -40
  715. package/treeselect/treeselect.esm.min.js +1 -1
  716. package/treeselect/treeselect.js +38 -41
  717. package/treeselect/treeselect.min.js +1 -1
  718. package/treetable/BodyCell.vue +38 -10
  719. package/treetable/FooterCell.vue +15 -1
  720. package/treetable/HeaderCell.vue +28 -5
  721. package/treetable/TreeTable.d.ts +162 -0
  722. package/treetable/TreeTable.vue +25 -19
  723. package/treetable/TreeTableRow.vue +5 -0
  724. package/treetable/treetable.cjs.js +205 -158
  725. package/treetable/treetable.cjs.min.js +1 -1
  726. package/treetable/treetable.esm.js +205 -159
  727. package/treetable/treetable.esm.min.js +1 -1
  728. package/treetable/treetable.js +206 -160
  729. package/treetable/treetable.min.js +1 -1
  730. package/tristatecheckbox/TriStateCheckbox.d.ts +93 -0
  731. package/tristatecheckbox/TriStateCheckbox.vue +19 -8
  732. package/tristatecheckbox/tristatecheckbox.cjs.js +31 -22
  733. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  734. package/tristatecheckbox/tristatecheckbox.esm.js +31 -23
  735. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  736. package/tristatecheckbox/tristatecheckbox.js +32 -24
  737. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  738. package/ts-helpers.d.ts +3 -1
  739. package/vetur-attributes.json +340 -0
  740. package/vetur-tags.json +173 -73
  741. package/virtualscroller/VirtualScroller.d.ts +97 -0
  742. package/virtualscroller/VirtualScroller.vue +7 -5
  743. package/virtualscroller/virtualscroller.cjs.js +22 -19
  744. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  745. package/virtualscroller/virtualscroller.esm.js +22 -20
  746. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  747. package/virtualscroller/virtualscroller.js +23 -21
  748. package/virtualscroller/virtualscroller.min.js +1 -1
  749. package/web-types.json +873 -7
  750. package/datatable/TableLoadingBody.vue +0 -25
@@ -1,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var BaseComponent = require('primevue/basecomponent');
3
4
  var Button = require('primevue/button');
4
5
  var ChevronDownIcon = require('primevue/icons/chevrondown');
5
6
  var SpinnerIcon = require('primevue/icons/spinner');
@@ -13,6 +14,7 @@ var vue = require('vue');
13
14
 
14
15
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
15
16
 
17
+ var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
16
18
  var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
17
19
  var ChevronDownIcon__default = /*#__PURE__*/_interopDefaultLegacy(ChevronDownIcon);
18
20
  var SpinnerIcon__default = /*#__PURE__*/_interopDefaultLegacy(SpinnerIcon);
@@ -24,6 +26,7 @@ var VirtualScroller__default = /*#__PURE__*/_interopDefaultLegacy(VirtualScrolle
24
26
 
25
27
  var script = {
26
28
  name: 'AutoComplete',
29
+ extends: BaseComponent__default["default"],
27
30
  emits: ['update:modelValue', 'change', 'focus', 'blur', 'item-select', 'item-unselect', 'dropdown-click', 'clear', 'complete', 'before-show', 'before-hide', 'show', 'hide'],
28
31
  props: {
29
32
  modelValue: null,
@@ -251,6 +254,15 @@ var script = {
251
254
  getOptionRenderKey(option, index) {
252
255
  return (this.dataKey ? utils.ObjectUtils.resolveFieldData(option, this.dataKey) : this.getOptionLabel(option)) + '_' + index;
253
256
  },
257
+ getPTOptions(option, itemOptions, index, key) {
258
+ return this.ptm(key, {
259
+ context: {
260
+ selected: this.isSelected(option),
261
+ focused: this.focusedOptionIndex === this.getOptionIndex(index, itemOptions),
262
+ disabled: this.isOptionDisabled(option)
263
+ }
264
+ });
265
+ },
254
266
  isOptionDisabled(option) {
255
267
  return this.optionDisabled ? utils.ObjectUtils.resolveFieldData(option, this.optionDisabled) : false;
256
268
  },
@@ -951,30 +963,10 @@ var script = {
951
963
  const _hoisted_1 = ["id", "value", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant"];
952
964
  const _hoisted_2 = ["aria-activedescendant"];
953
965
  const _hoisted_3 = ["id", "aria-label", "aria-setsize", "aria-posinset"];
954
- const _hoisted_4 = { class: "p-autocomplete-token-label" };
955
- const _hoisted_5 = {
956
- class: "p-autocomplete-input-token",
957
- role: "option"
958
- };
959
- const _hoisted_6 = ["id", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant"];
960
- const _hoisted_7 = {
961
- role: "status",
962
- "aria-live": "polite",
963
- class: "p-hidden-accessible"
964
- };
965
- const _hoisted_8 = ["id"];
966
- const _hoisted_9 = ["id"];
967
- const _hoisted_10 = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onClick", "onMousemove"];
968
- const _hoisted_11 = {
969
- key: 0,
970
- class: "p-autocomplete-empty-message",
971
- role: "option"
972
- };
973
- const _hoisted_12 = {
974
- role: "status",
975
- "aria-live": "polite",
976
- class: "p-hidden-accessible"
977
- };
966
+ const _hoisted_4 = ["id", "placeholder", "tabindex", "disabled", "aria-label", "aria-labelledby", "aria-expanded", "aria-controls", "aria-activedescendant"];
967
+ const _hoisted_5 = ["id"];
968
+ const _hoisted_6 = ["id"];
969
+ const _hoisted_7 = ["id", "aria-label", "aria-selected", "aria-disabled", "aria-setsize", "aria-posinset", "onClick", "onMousemove"];
978
970
 
979
971
  function render(_ctx, _cache, $props, $setup, $data, $options) {
980
972
  const _component_SpinnerIcon = vue.resolveComponent("SpinnerIcon");
@@ -983,11 +975,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
983
975
  const _component_Portal = vue.resolveComponent("Portal");
984
976
  const _directive_ripple = vue.resolveDirective("ripple");
985
977
 
986
- return (vue.openBlock(), vue.createElementBlock("div", {
978
+ return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
987
979
  ref: "container",
988
- class: vue.normalizeClass($options.containerClass),
980
+ class: $options.containerClass,
989
981
  onClick: _cache[15] || (_cache[15] = (...args) => ($options.onContainerClick && $options.onContainerClick(...args)))
990
- }, [
982
+ }, _ctx.ptm('root')), [
991
983
  (!$props.multiple)
992
984
  ? (vue.openBlock(), vue.createElementBlock("input", vue.mergeProps({
993
985
  key: 0,
@@ -1014,13 +1006,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1014
1006
  onKeydown: _cache[2] || (_cache[2] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
1015
1007
  onInput: _cache[3] || (_cache[3] = (...args) => ($options.onInput && $options.onInput(...args))),
1016
1008
  onChange: _cache[4] || (_cache[4] = (...args) => ($options.onChange && $options.onChange(...args)))
1017
- }, $props.inputProps), null, 16, _hoisted_1))
1009
+ }, { ...$props.inputProps, ..._ctx.ptm('input') }), null, 16, _hoisted_1))
1018
1010
  : vue.createCommentVNode("", true),
1019
1011
  ($props.multiple)
1020
- ? (vue.openBlock(), vue.createElementBlock("ul", {
1012
+ ? (vue.openBlock(), vue.createElementBlock("ul", vue.mergeProps({
1021
1013
  key: 1,
1022
1014
  ref: "multiContainer",
1023
- class: vue.normalizeClass($options.multiContainerClass),
1015
+ class: $options.multiContainerClass,
1024
1016
  tabindex: "-1",
1025
1017
  role: "listbox",
1026
1018
  "aria-orientation": "horizontal",
@@ -1028,31 +1020,37 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1028
1020
  onFocus: _cache[10] || (_cache[10] = (...args) => ($options.onMultipleContainerFocus && $options.onMultipleContainerFocus(...args))),
1029
1021
  onBlur: _cache[11] || (_cache[11] = (...args) => ($options.onMultipleContainerBlur && $options.onMultipleContainerBlur(...args))),
1030
1022
  onKeydown: _cache[12] || (_cache[12] = (...args) => ($options.onMultipleContainerKeyDown && $options.onMultipleContainerKeyDown(...args)))
1031
- }, [
1023
+ }, _ctx.ptm('container')), [
1032
1024
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.modelValue, (option, i) => {
1033
- return (vue.openBlock(), vue.createElementBlock("li", {
1025
+ return (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
1034
1026
  key: i,
1035
1027
  id: $data.id + '_multiple_option_' + i,
1036
- class: vue.normalizeClass(['p-autocomplete-token', { 'p-focus': $data.focusedMultipleOptionIndex === i }]),
1028
+ class: ['p-autocomplete-token', { 'p-focus': $data.focusedMultipleOptionIndex === i }],
1037
1029
  role: "option",
1038
1030
  "aria-label": $options.getOptionLabel(option),
1039
1031
  "aria-selected": true,
1040
1032
  "aria-setsize": $props.modelValue.length,
1041
1033
  "aria-posinset": i + 1
1042
- }, [
1034
+ }, _ctx.ptm('token')), [
1043
1035
  vue.renderSlot(_ctx.$slots, "chip", { value: option }, () => [
1044
- vue.createElementVNode("span", _hoisted_4, vue.toDisplayString($options.getOptionLabel(option)), 1)
1036
+ vue.createElementVNode("span", vue.mergeProps({ class: "p-autocomplete-token-label" }, _ctx.ptm('tokenLabel')), vue.toDisplayString($options.getOptionLabel(option)), 17)
1045
1037
  ]),
1046
- vue.renderSlot(_ctx.$slots, "removetokenicon", {}, () => [
1047
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.removeTokenIcon ? 'span' : 'TimesCircleIcon'), {
1048
- class: vue.normalizeClass(['p-autocomplete-token-icon', $props.removeTokenIcon]),
1038
+ vue.renderSlot(_ctx.$slots, "removetokenicon", {
1039
+ class: "p-autocomplete-token-icon",
1040
+ onClick: (event) => $options.removeOption(event, i)
1041
+ }, () => [
1042
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.removeTokenIcon ? 'span' : 'TimesCircleIcon'), vue.mergeProps({
1043
+ class: ['p-autocomplete-token-icon', $props.removeTokenIcon],
1049
1044
  onClick: $event => ($options.removeOption($event, i)),
1050
1045
  "aria-hidden": "true"
1051
- }, null, 8, ["class", "onClick"]))
1046
+ }, _ctx.ptm('removeTokenIcon')), null, 16, ["class", "onClick"]))
1052
1047
  ])
1053
- ], 10, _hoisted_3))
1048
+ ], 16, _hoisted_3))
1054
1049
  }), 128)),
1055
- vue.createElementVNode("li", _hoisted_5, [
1050
+ vue.createElementVNode("li", vue.mergeProps({
1051
+ class: "p-autocomplete-input-token",
1052
+ role: "option"
1053
+ }, _ctx.ptm('token')), [
1056
1054
  vue.createElementVNode("input", vue.mergeProps({
1057
1055
  ref: "focusInput",
1058
1056
  id: $props.inputId,
@@ -1076,24 +1074,24 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1076
1074
  onKeydown: _cache[7] || (_cache[7] = (...args) => ($options.onKeyDown && $options.onKeyDown(...args))),
1077
1075
  onInput: _cache[8] || (_cache[8] = (...args) => ($options.onInput && $options.onInput(...args))),
1078
1076
  onChange: _cache[9] || (_cache[9] = (...args) => ($options.onChange && $options.onChange(...args)))
1079
- }, $props.inputProps), null, 16, _hoisted_6)
1080
- ])
1081
- ], 42, _hoisted_2))
1077
+ }, { ...$props.inputProps, ..._ctx.ptm('input') }), null, 16, _hoisted_4)
1078
+ ], 16)
1079
+ ], 16, _hoisted_2))
1082
1080
  : vue.createCommentVNode("", true),
1083
1081
  ($data.searching)
1084
1082
  ? vue.renderSlot(_ctx.$slots, "loadingicon", { key: 2 }, () => [
1085
1083
  ($props.loadingIcon)
1086
- ? (vue.openBlock(), vue.createElementBlock("i", {
1084
+ ? (vue.openBlock(), vue.createElementBlock("i", vue.mergeProps({
1087
1085
  key: 0,
1088
- class: vue.normalizeClass(['p-autocomplete-loader pi-spin', $props.loadingIcon]),
1086
+ class: ['p-autocomplete-loader pi-spin', $props.loadingIcon],
1089
1087
  "aria-hidden": "true"
1090
- }, null, 2))
1091
- : (vue.openBlock(), vue.createBlock(_component_SpinnerIcon, {
1088
+ }, _ctx.ptm('loadingIcon')), null, 16))
1089
+ : (vue.openBlock(), vue.createBlock(_component_SpinnerIcon, vue.mergeProps({
1092
1090
  key: 1,
1093
1091
  class: "p-autocomplete-loader",
1094
1092
  spin: "",
1095
1093
  "aria-hidden": "true"
1096
- }))
1094
+ }, _ctx.ptm('loadingIcon')), null, 16))
1097
1095
  ])
1098
1096
  : vue.createCommentVNode("", true),
1099
1097
  ($props.dropdown)
@@ -1105,19 +1103,22 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1105
1103
  class: vue.normalizeClass(['p-autocomplete-dropdown', $props.dropdownClass]),
1106
1104
  disabled: $props.disabled,
1107
1105
  "aria-hidden": "true",
1108
- onClick: $options.onDropdownClick
1106
+ onClick: $options.onDropdownClick,
1107
+ pt: _ctx.ptm('dropdownButton')
1109
1108
  }, {
1110
1109
  icon: vue.withCtx(() => [
1111
1110
  vue.renderSlot(_ctx.$slots, "dropdownicon", {}, () => [
1112
- (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.dropdownIcon ? 'span' : 'ChevronDownIcon'), {
1113
- class: vue.normalizeClass($props.dropdownIcon)
1114
- }, null, 8, ["class"]))
1111
+ (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent($props.dropdownIcon ? 'span' : 'ChevronDownIcon'), vue.mergeProps({ class: $props.dropdownIcon }, _ctx.ptm('dropdownButton')['icon']), null, 16, ["class"]))
1115
1112
  ])
1116
1113
  ]),
1117
1114
  _: 3
1118
- }, 8, ["class", "disabled", "onClick"]))
1115
+ }, 8, ["class", "disabled", "onClick", "pt"]))
1119
1116
  : vue.createCommentVNode("", true),
1120
- vue.createElementVNode("span", _hoisted_7, vue.toDisplayString($options.searchResultMessageText), 1),
1117
+ vue.createElementVNode("span", vue.mergeProps({
1118
+ role: "status",
1119
+ "aria-live": "polite",
1120
+ class: "p-hidden-accessible"
1121
+ }, _ctx.ptm('hiddenSearchResult')), vue.toDisplayString($options.searchResultMessageText), 17),
1121
1122
  vue.createVNode(_component_Portal, { appendTo: $props.appendTo }, {
1122
1123
  default: vue.withCtx(() => [
1123
1124
  vue.createVNode(vue.Transition, {
@@ -1136,37 +1137,37 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1136
1137
  style: { ...$props.panelStyle, 'max-height': $options.virtualScrollerDisabled ? $props.scrollHeight : '' },
1137
1138
  onClick: _cache[13] || (_cache[13] = (...args) => ($options.onOverlayClick && $options.onOverlayClick(...args))),
1138
1139
  onKeydown: _cache[14] || (_cache[14] = (...args) => ($options.onOverlayKeyDown && $options.onOverlayKeyDown(...args)))
1139
- }, $props.panelProps), [
1140
+ }, { ...$props.panelProps, ..._ctx.ptm('panel') }), [
1140
1141
  vue.renderSlot(_ctx.$slots, "header", {
1141
1142
  value: $props.modelValue,
1142
1143
  suggestions: $options.visibleOptions
1143
1144
  }),
1144
- vue.createVNode(_component_VirtualScroller, vue.mergeProps({ ref: $options.virtualScrollerRef }, $props.virtualScrollerOptions, {
1145
+ vue.createVNode(_component_VirtualScroller, vue.mergeProps({ ref: $options.virtualScrollerRef }, { ...$props.virtualScrollerOptions, ..._ctx.ptm('virtualScroller') }, {
1145
1146
  style: { height: $props.scrollHeight },
1146
1147
  items: $options.visibleOptions,
1147
1148
  tabindex: -1,
1148
1149
  disabled: $options.virtualScrollerDisabled
1149
1150
  }), vue.createSlots({
1150
1151
  content: vue.withCtx(({ styleClass, contentRef, items, getItemOptions, contentStyle, itemSize }) => [
1151
- vue.createElementVNode("ul", {
1152
+ vue.createElementVNode("ul", vue.mergeProps({
1152
1153
  ref: (el) => $options.listRef(el, contentRef),
1153
1154
  id: $data.id + '_list',
1154
- class: vue.normalizeClass(['p-autocomplete-items', styleClass]),
1155
- style: vue.normalizeStyle(contentStyle),
1155
+ class: ['p-autocomplete-items', styleClass],
1156
+ style: contentStyle,
1156
1157
  role: "listbox"
1157
- }, [
1158
+ }, _ctx.ptm('list')), [
1158
1159
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList(items, (option, i) => {
1159
1160
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
1160
1161
  key: $options.getOptionRenderKey(option, $options.getOptionIndex(i, getItemOptions))
1161
1162
  }, [
1162
1163
  ($options.isOptionGroup(option))
1163
- ? (vue.openBlock(), vue.createElementBlock("li", {
1164
+ ? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
1164
1165
  key: 0,
1165
1166
  id: $data.id + '_' + $options.getOptionIndex(i, getItemOptions),
1166
- style: vue.normalizeStyle({ height: itemSize ? itemSize + 'px' : undefined }),
1167
+ style: { height: itemSize ? itemSize + 'px' : undefined },
1167
1168
  class: "p-autocomplete-item-group",
1168
1169
  role: "option"
1169
- }, [
1170
+ }, _ctx.ptm('itemGroup')), [
1170
1171
  vue.renderSlot(_ctx.$slots, "optiongroup", {
1171
1172
  option: option.optionGroup,
1172
1173
  item: option.optionGroup,
@@ -1174,12 +1175,12 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1174
1175
  }, () => [
1175
1176
  vue.createTextVNode(vue.toDisplayString($options.getOptionGroupLabel(option.optionGroup)), 1)
1176
1177
  ])
1177
- ], 12, _hoisted_9))
1178
- : vue.withDirectives((vue.openBlock(), vue.createElementBlock("li", {
1178
+ ], 16, _hoisted_6))
1179
+ : vue.withDirectives((vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
1179
1180
  key: 1,
1180
1181
  id: $data.id + '_' + $options.getOptionIndex(i, getItemOptions),
1181
- style: vue.normalizeStyle({ height: itemSize ? itemSize + 'px' : undefined }),
1182
- class: vue.normalizeClass(['p-autocomplete-item', { 'p-highlight': $options.isSelected(option), 'p-focus': $data.focusedOptionIndex === $options.getOptionIndex(i, getItemOptions), 'p-disabled': $options.isOptionDisabled(option) }]),
1182
+ style: { height: itemSize ? itemSize + 'px' : undefined },
1183
+ class: ['p-autocomplete-item', { 'p-highlight': $options.isSelected(option), 'p-focus': $data.focusedOptionIndex === $options.getOptionIndex(i, getItemOptions), 'p-disabled': $options.isOptionDisabled(option) }],
1183
1184
  role: "option",
1184
1185
  "aria-label": $options.getOptionLabel(option),
1185
1186
  "aria-selected": $options.isSelected(option),
@@ -1188,7 +1189,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1188
1189
  "aria-posinset": $options.getAriaPosInset($options.getOptionIndex(i, getItemOptions)),
1189
1190
  onClick: $event => ($options.onOptionSelect($event, option)),
1190
1191
  onMousemove: $event => ($options.onOptionMouseMove($event, $options.getOptionIndex(i, getItemOptions)))
1191
- }, [
1192
+ }, $options.getPTOptions(option, getItemOptions, i, 'item')), [
1192
1193
  (_ctx.$slots.option)
1193
1194
  ? vue.renderSlot(_ctx.$slots, "option", {
1194
1195
  key: 0,
@@ -1204,19 +1205,23 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1204
1205
  }, () => [
1205
1206
  vue.createTextVNode(vue.toDisplayString($options.getOptionLabel(option)), 1)
1206
1207
  ])
1207
- ], 46, _hoisted_10)), [
1208
+ ], 16, _hoisted_7)), [
1208
1209
  [_directive_ripple]
1209
1210
  ])
1210
1211
  ], 64))
1211
1212
  }), 128)),
1212
1213
  (!items || (items && items.length === 0))
1213
- ? (vue.openBlock(), vue.createElementBlock("li", _hoisted_11, [
1214
+ ? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
1215
+ key: 0,
1216
+ class: "p-autocomplete-empty-message",
1217
+ role: "option"
1218
+ }, _ctx.ptm('emptyMessage')), [
1214
1219
  vue.renderSlot(_ctx.$slots, "empty", {}, () => [
1215
1220
  vue.createTextVNode(vue.toDisplayString($options.searchResultMessageText), 1)
1216
1221
  ])
1217
- ]))
1222
+ ], 16))
1218
1223
  : vue.createCommentVNode("", true)
1219
- ], 14, _hoisted_8)
1224
+ ], 16, _hoisted_5)
1220
1225
  ]),
1221
1226
  _: 2
1222
1227
  }, [
@@ -1234,7 +1239,11 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1234
1239
  value: $props.modelValue,
1235
1240
  suggestions: $options.visibleOptions
1236
1241
  }),
1237
- vue.createElementVNode("span", _hoisted_12, vue.toDisplayString($options.selectedMessageText), 1)
1242
+ vue.createElementVNode("span", vue.mergeProps({
1243
+ role: "status",
1244
+ "aria-live": "polite",
1245
+ class: "p-hidden-accessible"
1246
+ }, _ctx.ptm('hiddenSelectedMessage')), vue.toDisplayString($options.selectedMessageText), 17)
1238
1247
  ], 16))
1239
1248
  : vue.createCommentVNode("", true)
1240
1249
  ]),
@@ -1243,7 +1252,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1243
1252
  ]),
1244
1253
  _: 3
1245
1254
  }, 8, ["appendTo"])
1246
- ], 2))
1255
+ ], 16))
1247
1256
  }
1248
1257
 
1249
1258
  function styleInject(css, ref) {
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/button"),t=require("primevue/icons/chevrondown"),i=require("primevue/icons/spinner"),o=require("primevue/icons/timescircle"),n=require("primevue/overlayeventbus"),s=require("primevue/portal"),l=require("primevue/ripple"),a=require("primevue/utils"),r=require("primevue/virtualscroller"),d=require("vue");function p(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=p(e),c=p(t),h=p(i),m=p(o),f=p(n),y=p(s),O=p(l),v=p(r),b={name:"AutoComplete",emits:["update:modelValue","change","focus","blur","item-select","item-unselect","dropdown-click","clear","complete","before-show","before-hide","show","hide"],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},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:null},dataKey:{type:String,default:null},minLength:{type:Number,default:1},delay:{type:Number,default:300},appendTo:{type:String,default:"body"},forceSelection:{type:Boolean,default:!1},completeOnFocus:{type:Boolean,default:!1},inputId:{type:String,default:null},inputStyle:{type:Object,default:null},inputClass:{type:[String,Object],default:null},inputProps:{type:null,default:null},panelStyle:{type:Object,default:null},panelClass:{type:[String,Object],default:null},panelProps:{type:null,default:null},dropdownIcon:{type:String,default:void 0},dropdownClass:{type:[String,Object],default:null},loadingIcon:{type:String,default:void 0},removeTokenIcon:{type:String,default:void 0},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!0},selectOnFocus:{type:Boolean,default:!1},searchLocale:{type:String,default:void 0},searchMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptySearchMessage:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},outsideClickListener:null,resizeListener:null,scrollHandler:null,overlay:null,virtualScroller:null,searchTimeout:null,focusOnHover:!1,dirty:!1,data(){return{id:this.$attrs.id,focused:!1,focusedOptionIndex:-1,focusedMultipleOptionIndex:-1,overlayVisible:!1,searching:!1}},watch:{"$attrs.id":function(e){this.id=e||a.UniqueComponentId()},suggestions(){this.searching&&(a.ObjectUtils.isNotEmpty(this.suggestions)||this.$slots.empty?this.show():this.hide(),this.focusedOptionIndex=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.searching=!1),this.autoUpdateModel()}},mounted(){this.id=this.id||a.UniqueComponentId(),this.autoUpdateModel()},updated(){this.overlayVisible&&this.alignOverlay()},beforeUnmount(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(a.ZIndexUtils.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel(e){return this.field||this.optionLabel?a.ObjectUtils.resolveFieldData(e,this.field||this.optionLabel):e},getOptionValue:e=>e,getOptionRenderKey(e,t){return(this.dataKey?a.ObjectUtils.resolveFieldData(e,this.dataKey):this.getOptionLabel(e))+"_"+t},isOptionDisabled(e){return!!this.optionDisabled&&a.ObjectUtils.resolveFieldData(e,this.optionDisabled)},isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel(e){return a.ObjectUtils.resolveFieldData(e,this.optionGroupLabel)},getOptionGroupChildren(e){return a.ObjectUtils.resolveFieldData(e,this.optionGroupChildren)},getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter((e=>this.isOptionGroup(e))).length:e)+1},show(e){this.$emit("before-show"),this.dirty=!0,this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,e&&a.DomHandler.focus(this.$refs.focusInput)},hide(e){const t=()=>{this.$emit("before-hide"),this.dirty=e,this.overlayVisible=!1,this.focusedOptionIndex=-1,e&&a.DomHandler.focus(this.$refs.focusInput)};setTimeout((()=>{t()}),0)},onFocus(e){this.disabled||(!this.dirty&&this.completeOnFocus&&this.search(e,e.target.value,"focus"),this.dirty=!0,this.focused=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.overlayVisible&&this.scrollInView(this.focusedOptionIndex),this.$emit("focus",e))},onBlur(e){this.dirty=!1,this.focused=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e)}},onInput(e){this.searchTimeout&&clearTimeout(this.searchTimeout);let t=e.target.value;this.multiple||this.updateModel(e,t),0===t.length?(this.hide(),this.$emit("clear")):t.length>=this.minLength?(this.focusedOptionIndex=-1,this.searchTimeout=setTimeout((()=>{this.search(e,t,"input")}),this.delay)):this.hide()},onChange(e){if(this.forceSelection){let t=!1;if(this.visibleOptions){const i=this.visibleOptions.find((e=>this.isOptionMatched(e,this.$refs.focusInput.value||"")));void 0!==i&&(t=!0,!this.isSelected(i)&&this.onOptionSelect(e,i))}t||(this.$refs.focusInput.value="",this.$emit("clear"),!this.multiple&&this.updateModel(e,null))}},onMultipleContainerFocus(){this.disabled||(this.focused=!0)},onMultipleContainerBlur(){this.focusedMultipleOptionIndex=-1,this.focused=!1},onMultipleContainerKeyDown(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(e){this.disabled||this.searching||this.isInputClicked(e)||this.isDropdownClicked(e)||this.overlay&&this.overlay.contains(e.target)||a.DomHandler.focus(this.$refs.focusInput)},onDropdownClick(e){let t;this.overlayVisible?this.hide(!0):(a.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(e,t,i=!0){const o=this.getOptionValue(t);this.multiple?(this.$refs.focusInput.value="",this.isSelected(t)||this.updateModel(e,[...this.modelValue||[],o])):this.updateModel(e,o),this.$emit("item-select",{originalEvent:e,value:t}),i&&this.hide(!0)},onOptionMouseMove(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onOverlayClick(e){f.default.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown(e){if("Escape"===e.code)this.onEscapeKey(e)},onArrowDownKey(e){if(!this.overlayVisible)return;const t=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),e.preventDefault()},onArrowUpKey(e){if(this.overlayVisible)if(e.altKey)-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{const t=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),e.preventDefault()}},onArrowLeftKey(e){const t=e.currentTarget;this.focusedOptionIndex=-1,this.multiple&&(a.ObjectUtils.isEmpty(t.value)&&this.hasSelectedOption?(a.DomHandler.focus(this.$refs.multiContainer),this.focusedMultipleOptionIndex=this.modelValue.length):e.stopPropagation())},onArrowRightKey(e){this.focusedOptionIndex=-1,this.multiple&&e.stopPropagation()},onHomeKey(e){const{currentTarget:t}=e,i=t.value.length;t.setSelectionRange(0,e.shiftKey?i:0),this.focusedOptionIndex=-1,e.preventDefault()},onEndKey(e){const{currentTarget:t}=e,i=t.value.length;t.setSelectionRange(e.shiftKey?0:i,i),this.focusedOptionIndex=-1,e.preventDefault()},onPageUpKey(e){this.scrollInView(0),e.preventDefault()},onPageDownKey(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey(e){this.overlayVisible?(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.hide()):this.onArrowDownKey(e),e.preventDefault()},onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey(e){-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide()},onBackspaceKey(e){if(this.multiple){if(a.ObjectUtils.isNotEmpty(this.modelValue)&&!this.$refs.focusInput.value){const 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(){this.focusedMultipleOptionIndex=this.focusedMultipleOptionIndex<1?0:this.focusedMultipleOptionIndex-1},onArrowRightKeyOnMultiple(){this.focusedMultipleOptionIndex++,this.focusedMultipleOptionIndex>this.modelValue.length-1&&(this.focusedMultipleOptionIndex=-1,a.DomHandler.focus(this.$refs.focusInput))},onBackspaceKeyOnMultiple(e){-1!==this.focusedMultipleOptionIndex&&this.removeOption(e,this.focusedMultipleOptionIndex)},onOverlayEnter(e){a.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay),this.alignOverlay()},onOverlayAfterEnter(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave(e){a.ZIndexUtils.clear(e)},alignOverlay(){let e=this.multiple?this.$refs.multiContainer:this.$refs.focusInput;"self"===this.appendTo?a.DomHandler.relativePosition(this.overlay,e):(this.overlay.style.minWidth=a.DomHandler.getOuterWidth(e)+"px",a.DomHandler.absolutePosition(this.overlay,e))},bindOutsideClickListener(){this.outsideClickListener||(this.outsideClickListener=e=>{this.overlayVisible&&this.overlay&&this.isOutsideClicked(e)&&this.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener(){this.scrollHandler||(this.scrollHandler=new a.ConnectedOverlayScrollHandler(this.$refs.container,(()=>{this.overlayVisible&&this.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener(){this.resizeListener||(this.resizeListener=()=>{this.overlayVisible&&!a.DomHandler.isTouchDevice()&&this.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isOutsideClicked(e){return!this.overlay.contains(e.target)&&!this.isInputClicked(e)&&!this.isDropdownClicked(e)},isInputClicked(e){return this.multiple?e.target===this.$refs.multiContainer||this.$refs.multiContainer.contains(e.target):e.target===this.$refs.focusInput},isDropdownClicked(e){return!!this.$refs.dropdownButton&&(e.target===this.$refs.dropdownButton||this.$refs.dropdownButton.$el.contains(e.target))},isOptionMatched(e,t){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.searchLocale)===t.toLocaleLowerCase(this.searchLocale)},isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected(e){return a.ObjectUtils.equals(this.modelValue,this.getOptionValue(e),this.equalityKey)},findFirstOptionIndex(){return this.visibleOptions.findIndex((e=>this.isValidOption(e)))},findLastOptionIndex(){return a.ObjectUtils.findLastIndex(this.visibleOptions,(e=>this.isValidOption(e)))},findNextOptionIndex(e){const t=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((e=>this.isValidOption(e))):-1;return t>-1?t+e+1:e},findPrevOptionIndex(e){const t=e>0?a.ObjectUtils.findLastIndex(this.visibleOptions.slice(0,e),(e=>this.isValidOption(e))):-1;return t>-1?t:e},findSelectedOptionIndex(){return this.hasSelectedOption?this.visibleOptions.findIndex((e=>this.isValidSelectedOption(e))):-1},findFirstFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},search(e,t,i){null!=t&&("input"===i&&0===t.trim().length||(this.searching=!0,this.$emit("complete",{originalEvent:e,query:t})))},removeOption(e,t){const i=this.modelValue[t],o=this.modelValue.filter(((e,i)=>i!==t)).map((e=>this.getOptionValue(e)));this.updateModel(e,o),this.$emit("item-unselect",{originalEvent:e,value:i}),this.dirty=!0,a.DomHandler.focus(this.$refs.focusInput)},changeFocusedOptionIndex(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),(this.selectOnFocus||this.autoHighlight)&&this.onOptionSelect(e,this.visibleOptions[t],!1))},scrollInView(e=-1){const t=-1!==e?`${this.id}_${e}`:this.focusedOptionId,i=a.DomHandler.findSingle(this.list,`li[id="${t}"]`);i?i.scrollIntoView&&i.scrollIntoView({block:"nearest",inline:"start"}):this.virtualScrollerDisabled||setTimeout((()=>{this.virtualScroller&&this.virtualScroller.scrollToIndex(-1!==e?e:this.focusedOptionIndex)}),0)},autoUpdateModel(){(this.selectOnFocus||this.autoHighlight)&&this.autoOptionFocus&&!this.hasSelectedOption&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel(e,t){this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})},flatOptions(e){return(e||[]).reduce(((e,t,i)=>{e.push({optionGroup:t,group:!0,index:i});const o=this.getOptionGroupChildren(t);return o&&o.forEach((t=>e.push(t))),e}),[])},overlayRef(e){this.overlay=e},listRef(e,t){this.list=e,t&&t(e)},virtualScrollerRef(e){this.virtualScroller=e}},computed:{containerClass(){return["p-autocomplete p-component p-inputwrapper",{"p-disabled":this.disabled,"p-focus":this.focused,"p-autocomplete-dd":this.dropdown,"p-autocomplete-multiple":this.multiple,"p-inputwrapper-filled":this.modelValue||a.ObjectUtils.isNotEmpty(this.inputValue),"p-inputwrapper-focus":this.focused,"p-overlay-open":this.overlayVisible}]},inputStyleClass(){return["p-autocomplete-input p-inputtext p-component",this.inputClass,{"p-autocomplete-dd-input":this.dropdown}]},multiContainerClass:()=>["p-autocomplete-multiple-container p-component p-inputtext"],panelStyleClass(){return["p-autocomplete-panel p-component",this.panelClass,{"p-input-filled":"filled"===this.$primevue.config.inputStyle,"p-ripple-disabled":!1===this.$primevue.config.ripple}]},visibleOptions(){return this.optionGroupLabel?this.flatOptions(this.suggestions):this.suggestions||[]},inputValue(){if(this.modelValue){if("object"==typeof this.modelValue){const e=this.getOptionLabel(this.modelValue);return null!=e?e:this.modelValue}return this.modelValue}return""},hasSelectedOption(){return a.ObjectUtils.isNotEmpty(this.modelValue)},equalityKey(){return this.dataKey},searchResultMessageText(){return a.ObjectUtils.isNotEmpty(this.visibleOptions)&&this.overlayVisible?this.searchMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptySearchMessageText},searchMessageText(){return this.searchMessage||this.$primevue.config.locale.searchMessage||""},emptySearchMessageText(){return this.emptySearchMessage||this.$primevue.config.locale.emptySearchMessage||""},selectionMessageText(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue.length:"1"):this.emptySelectionMessageText},focusedOptionId(){return-1!==this.focusedOptionIndex?`${this.id}_${this.focusedOptionIndex}`:null},focusedMultipleOptionId(){return-1!==this.focusedMultipleOptionIndex?`${this.id}_multiple_option_${this.focusedMultipleOptionIndex}`:null},ariaSetSize(){return this.visibleOptions.filter((e=>!this.isOptionGroup(e))).length},virtualScrollerDisabled(){return!this.virtualScrollerOptions}},components:{Button:u.default,VirtualScroller:v.default,Portal:y.default,ChevronDownIcon:c.default,SpinnerIcon:h.default,TimesCircleIcon:m.default},directives:{ripple:O.default}};const g=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],x=["aria-activedescendant"],I=["id","aria-label","aria-setsize","aria-posinset"],S={class:"p-autocomplete-token-label"},k={class:"p-autocomplete-input-token",role:"option"},C=["id","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],w={role:"status","aria-live":"polite",class:"p-hidden-accessible"},V=["id"],L=["id"],D=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove"],M={key:0,class:"p-autocomplete-empty-message",role:"option"},$={role:"status","aria-live":"polite",class:"p-hidden-accessible"};!function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===i&&o.firstChild?o.insertBefore(n,o.firstChild):o.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}("\n.p-autocomplete {\n display: inline-flex;\n position: relative;\n}\n.p-autocomplete-loader {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n}\n.p-autocomplete-dd .p-autocomplete-input {\n flex: 1 1 auto;\n width: 1%;\n}\n.p-autocomplete-dd .p-autocomplete-input,\n.p-autocomplete-dd .p-autocomplete-multiple-container {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-autocomplete-dd .p-autocomplete-dropdown {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0px;\n}\n.p-autocomplete .p-autocomplete-panel {\n min-width: 100%;\n}\n.p-autocomplete-panel {\n position: absolute;\n overflow: auto;\n top: 0;\n left: 0;\n}\n.p-autocomplete-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n.p-autocomplete-item {\n cursor: pointer;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n}\n.p-autocomplete-multiple-container {\n margin: 0;\n padding: 0;\n list-style-type: none;\n cursor: text;\n overflow: hidden;\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n}\n.p-autocomplete-token {\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n}\n.p-autocomplete-token-icon {\n cursor: pointer;\n}\n.p-autocomplete-input-token {\n flex: 1 1 auto;\n display: inline-flex;\n}\n.p-autocomplete-input-token input {\n border: 0 none;\n outline: 0 none;\n background-color: transparent;\n margin: 0;\n padding: 0;\n box-shadow: none;\n border-radius: 0;\n width: 100%;\n}\n.p-fluid .p-autocomplete {\n display: flex;\n}\n.p-fluid .p-autocomplete-dd .p-autocomplete-input {\n width: 1%;\n}\n"),b.render=function(e,t,i,o,n,s){const l=d.resolveComponent("SpinnerIcon"),a=d.resolveComponent("Button"),r=d.resolveComponent("VirtualScroller"),p=d.resolveComponent("Portal"),u=d.resolveDirective("ripple");return d.openBlock(),d.createElementBlock("div",{ref:"container",class:d.normalizeClass(s.containerClass),onClick:t[15]||(t[15]=(...e)=>s.onContainerClick&&s.onContainerClick(...e))},[i.multiple?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("input",d.mergeProps({key:0,ref:"focusInput",id:i.inputId,type:"text",style:i.inputStyle,class:s.inputStyleClass,value:s.inputValue,placeholder:i.placeholder,tabindex:i.disabled?-1:i.tabindex,disabled:i.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-expanded":n.overlayVisible,"aria-controls":n.id+"_list","aria-activedescendant":n.focused?s.focusedOptionId:void 0,onFocus:t[0]||(t[0]=(...e)=>s.onFocus&&s.onFocus(...e)),onBlur:t[1]||(t[1]=(...e)=>s.onBlur&&s.onBlur(...e)),onKeydown:t[2]||(t[2]=(...e)=>s.onKeyDown&&s.onKeyDown(...e)),onInput:t[3]||(t[3]=(...e)=>s.onInput&&s.onInput(...e)),onChange:t[4]||(t[4]=(...e)=>s.onChange&&s.onChange(...e))},i.inputProps),null,16,g)),i.multiple?(d.openBlock(),d.createElementBlock("ul",{key:1,ref:"multiContainer",class:d.normalizeClass(s.multiContainerClass),tabindex:"-1",role:"listbox","aria-orientation":"horizontal","aria-activedescendant":n.focused?s.focusedMultipleOptionId:void 0,onFocus:t[10]||(t[10]=(...e)=>s.onMultipleContainerFocus&&s.onMultipleContainerFocus(...e)),onBlur:t[11]||(t[11]=(...e)=>s.onMultipleContainerBlur&&s.onMultipleContainerBlur(...e)),onKeydown:t[12]||(t[12]=(...e)=>s.onMultipleContainerKeyDown&&s.onMultipleContainerKeyDown(...e))},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(i.modelValue,((t,o)=>(d.openBlock(),d.createElementBlock("li",{key:o,id:n.id+"_multiple_option_"+o,class:d.normalizeClass(["p-autocomplete-token",{"p-focus":n.focusedMultipleOptionIndex===o}]),role:"option","aria-label":s.getOptionLabel(t),"aria-selected":!0,"aria-setsize":i.modelValue.length,"aria-posinset":o+1},[d.renderSlot(e.$slots,"chip",{value:t},(()=>[d.createElementVNode("span",S,d.toDisplayString(s.getOptionLabel(t)),1)])),d.renderSlot(e.$slots,"removetokenicon",{},(()=>[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(i.removeTokenIcon?"span":"TimesCircleIcon"),{class:d.normalizeClass(["p-autocomplete-token-icon",i.removeTokenIcon]),onClick:e=>s.removeOption(e,o),"aria-hidden":"true"},null,8,["class","onClick"]))]))],10,I)))),128)),d.createElementVNode("li",k,[d.createElementVNode("input",d.mergeProps({ref:"focusInput",id:i.inputId,type:"text",style:i.inputStyle,class:i.inputClass,placeholder:i.placeholder,tabindex:i.disabled?-1:i.tabindex,disabled:i.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-expanded":n.overlayVisible,"aria-controls":n.id+"_list","aria-activedescendant":n.focused?s.focusedOptionId:void 0,onFocus:t[5]||(t[5]=(...e)=>s.onFocus&&s.onFocus(...e)),onBlur:t[6]||(t[6]=(...e)=>s.onBlur&&s.onBlur(...e)),onKeydown:t[7]||(t[7]=(...e)=>s.onKeyDown&&s.onKeyDown(...e)),onInput:t[8]||(t[8]=(...e)=>s.onInput&&s.onInput(...e)),onChange:t[9]||(t[9]=(...e)=>s.onChange&&s.onChange(...e))},i.inputProps),null,16,C)])],42,x)):d.createCommentVNode("",!0),n.searching?d.renderSlot(e.$slots,"loadingicon",{key:2},(()=>[i.loadingIcon?(d.openBlock(),d.createElementBlock("i",{key:0,class:d.normalizeClass(["p-autocomplete-loader pi-spin",i.loadingIcon]),"aria-hidden":"true"},null,2)):(d.openBlock(),d.createBlock(l,{key:1,class:"p-autocomplete-loader",spin:"","aria-hidden":"true"}))])):d.createCommentVNode("",!0),i.dropdown?(d.openBlock(),d.createBlock(a,{key:3,ref:"dropdownButton",type:"button",tabindex:"-1",class:d.normalizeClass(["p-autocomplete-dropdown",i.dropdownClass]),disabled:i.disabled,"aria-hidden":"true",onClick:s.onDropdownClick},{icon:d.withCtx((()=>[d.renderSlot(e.$slots,"dropdownicon",{},(()=>[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(i.dropdownIcon?"span":"ChevronDownIcon"),{class:d.normalizeClass(i.dropdownIcon)},null,8,["class"]))]))])),_:3},8,["class","disabled","onClick"])):d.createCommentVNode("",!0),d.createElementVNode("span",w,d.toDisplayString(s.searchResultMessageText),1),d.createVNode(p,{appendTo:i.appendTo},{default:d.withCtx((()=>[d.createVNode(d.Transition,{name:"p-connected-overlay",onEnter:s.onOverlayEnter,onAfterEnter:s.onOverlayAfterEnter,onLeave:s.onOverlayLeave,onAfterLeave:s.onOverlayAfterLeave},{default:d.withCtx((()=>[n.overlayVisible?(d.openBlock(),d.createElementBlock("div",d.mergeProps({key:0,ref:s.overlayRef,class:s.panelStyleClass,style:{...i.panelStyle,"max-height":s.virtualScrollerDisabled?i.scrollHeight:""},onClick:t[13]||(t[13]=(...e)=>s.onOverlayClick&&s.onOverlayClick(...e)),onKeydown:t[14]||(t[14]=(...e)=>s.onOverlayKeyDown&&s.onOverlayKeyDown(...e))},i.panelProps),[d.renderSlot(e.$slots,"header",{value:i.modelValue,suggestions:s.visibleOptions}),d.createVNode(r,d.mergeProps({ref:s.virtualScrollerRef},i.virtualScrollerOptions,{style:{height:i.scrollHeight},items:s.visibleOptions,tabindex:-1,disabled:s.virtualScrollerDisabled}),d.createSlots({content:d.withCtx((({styleClass:t,contentRef:i,items:o,getItemOptions:l,contentStyle:a,itemSize:r})=>[d.createElementVNode("ul",{ref:e=>s.listRef(e,i),id:n.id+"_list",class:d.normalizeClass(["p-autocomplete-items",t]),style:d.normalizeStyle(a),role:"listbox"},[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(o,((t,i)=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:s.getOptionRenderKey(t,s.getOptionIndex(i,l))},[s.isOptionGroup(t)?(d.openBlock(),d.createElementBlock("li",{key:0,id:n.id+"_"+s.getOptionIndex(i,l),style:d.normalizeStyle({height:r?r+"px":void 0}),class:"p-autocomplete-item-group",role:"option"},[d.renderSlot(e.$slots,"optiongroup",{option:t.optionGroup,item:t.optionGroup,index:s.getOptionIndex(i,l)},(()=>[d.createTextVNode(d.toDisplayString(s.getOptionGroupLabel(t.optionGroup)),1)]))],12,L)):d.withDirectives((d.openBlock(),d.createElementBlock("li",{key:1,id:n.id+"_"+s.getOptionIndex(i,l),style:d.normalizeStyle({height:r?r+"px":void 0}),class:d.normalizeClass(["p-autocomplete-item",{"p-highlight":s.isSelected(t),"p-focus":n.focusedOptionIndex===s.getOptionIndex(i,l),"p-disabled":s.isOptionDisabled(t)}]),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,l)),onClick:e=>s.onOptionSelect(e,t),onMousemove:e=>s.onOptionMouseMove(e,s.getOptionIndex(i,l))},[e.$slots.option?d.renderSlot(e.$slots,"option",{key:0,option:t,index:s.getOptionIndex(i,l)},(()=>[d.createTextVNode(d.toDisplayString(s.getOptionLabel(t)),1)])):d.renderSlot(e.$slots,"item",{key:1,item:t,index:s.getOptionIndex(i,l)},(()=>[d.createTextVNode(d.toDisplayString(s.getOptionLabel(t)),1)]))],46,D)),[[u]])],64)))),128)),!o||o&&0===o.length?(d.openBlock(),d.createElementBlock("li",M,[d.renderSlot(e.$slots,"empty",{},(()=>[d.createTextVNode(d.toDisplayString(s.searchResultMessageText),1)]))])):d.createCommentVNode("",!0)],14,V)])),_:2},[e.$slots.loader?{name:"loader",fn:d.withCtx((({options:t})=>[d.renderSlot(e.$slots,"loader",{options:t})])),key:"0"}:void 0]),1040,["style","items","disabled"]),d.renderSlot(e.$slots,"footer",{value:i.modelValue,suggestions:s.visibleOptions}),d.createElementVNode("span",$,d.toDisplayString(s.selectedMessageText),1)],16)):d.createCommentVNode("",!0)])),_:3},8,["onEnter","onAfterEnter","onLeave","onAfterLeave"])])),_:3},8,["appendTo"])],2)},module.exports=b;
1
+ "use strict";var e=require("primevue/basecomponent"),t=require("primevue/button"),i=require("primevue/icons/chevrondown"),o=require("primevue/icons/spinner"),n=require("primevue/icons/timescircle"),s=require("primevue/overlayeventbus"),l=require("primevue/portal"),r=require("primevue/ripple"),a=require("primevue/utils"),p=require("primevue/virtualscroller"),d=require("vue");function u(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=u(e),h=u(t),m=u(i),f=u(o),y=u(n),g=u(s),O=u(l),v=u(r),b=u(p),x={name:"AutoComplete",extends:c.default,emits:["update:modelValue","change","focus","blur","item-select","item-unselect","dropdown-click","clear","complete","before-show","before-hide","show","hide"],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},disabled:{type:Boolean,default:!1},placeholder:{type:String,default:null},dataKey:{type:String,default:null},minLength:{type:Number,default:1},delay:{type:Number,default:300},appendTo:{type:String,default:"body"},forceSelection:{type:Boolean,default:!1},completeOnFocus:{type:Boolean,default:!1},inputId:{type:String,default:null},inputStyle:{type:Object,default:null},inputClass:{type:[String,Object],default:null},inputProps:{type:null,default:null},panelStyle:{type:Object,default:null},panelClass:{type:[String,Object],default:null},panelProps:{type:null,default:null},dropdownIcon:{type:String,default:void 0},dropdownClass:{type:[String,Object],default:null},loadingIcon:{type:String,default:void 0},removeTokenIcon:{type:String,default:void 0},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!0},selectOnFocus:{type:Boolean,default:!1},searchLocale:{type:String,default:void 0},searchMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptySearchMessage:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},outsideClickListener:null,resizeListener:null,scrollHandler:null,overlay:null,virtualScroller:null,searchTimeout:null,focusOnHover:!1,dirty:!1,data(){return{id:this.$attrs.id,focused:!1,focusedOptionIndex:-1,focusedMultipleOptionIndex:-1,overlayVisible:!1,searching:!1}},watch:{"$attrs.id":function(e){this.id=e||a.UniqueComponentId()},suggestions(){this.searching&&(a.ObjectUtils.isNotEmpty(this.suggestions)||this.$slots.empty?this.show():this.hide(),this.focusedOptionIndex=this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.searching=!1),this.autoUpdateModel()}},mounted(){this.id=this.id||a.UniqueComponentId(),this.autoUpdateModel()},updated(){this.overlayVisible&&this.alignOverlay()},beforeUnmount(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(a.ZIndexUtils.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel(e){return this.field||this.optionLabel?a.ObjectUtils.resolveFieldData(e,this.field||this.optionLabel):e},getOptionValue:e=>e,getOptionRenderKey(e,t){return(this.dataKey?a.ObjectUtils.resolveFieldData(e,this.dataKey):this.getOptionLabel(e))+"_"+t},getPTOptions(e,t,i,o){return this.ptm(o,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(i,t),disabled:this.isOptionDisabled(e)}})},isOptionDisabled(e){return!!this.optionDisabled&&a.ObjectUtils.resolveFieldData(e,this.optionDisabled)},isOptionGroup(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel(e){return a.ObjectUtils.resolveFieldData(e,this.optionGroupLabel)},getOptionGroupChildren(e){return a.ObjectUtils.resolveFieldData(e,this.optionGroupChildren)},getAriaPosInset(e){return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter((e=>this.isOptionGroup(e))).length:e)+1},show(e){this.$emit("before-show"),this.dirty=!0,this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,e&&a.DomHandler.focus(this.$refs.focusInput)},hide(e){const t=()=>{this.$emit("before-hide"),this.dirty=e,this.overlayVisible=!1,this.focusedOptionIndex=-1,e&&a.DomHandler.focus(this.$refs.focusInput)};setTimeout((()=>{t()}),0)},onFocus(e){this.disabled||(!this.dirty&&this.completeOnFocus&&this.search(e,e.target.value,"focus"),this.dirty=!0,this.focused=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.overlayVisible&&this.scrollInView(this.focusedOptionIndex),this.$emit("focus",e))},onBlur(e){this.dirty=!1,this.focused=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onKeyDown(e){if(this.disabled)e.preventDefault();else switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"ArrowLeft":this.onArrowLeftKey(e);break;case"ArrowRight":this.onArrowRightKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"PageDown":this.onPageDownKey(e);break;case"PageUp":this.onPageUpKey(e);break;case"Enter":case"NumpadEnter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"Backspace":this.onBackspaceKey(e)}},onInput(e){this.searchTimeout&&clearTimeout(this.searchTimeout);let t=e.target.value;this.multiple||this.updateModel(e,t),0===t.length?(this.hide(),this.$emit("clear")):t.length>=this.minLength?(this.focusedOptionIndex=-1,this.searchTimeout=setTimeout((()=>{this.search(e,t,"input")}),this.delay)):this.hide()},onChange(e){if(this.forceSelection){let t=!1;if(this.visibleOptions){const i=this.visibleOptions.find((e=>this.isOptionMatched(e,this.$refs.focusInput.value||"")));void 0!==i&&(t=!0,!this.isSelected(i)&&this.onOptionSelect(e,i))}t||(this.$refs.focusInput.value="",this.$emit("clear"),!this.multiple&&this.updateModel(e,null))}},onMultipleContainerFocus(){this.disabled||(this.focused=!0)},onMultipleContainerBlur(){this.focusedMultipleOptionIndex=-1,this.focused=!1},onMultipleContainerKeyDown(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(e){this.disabled||this.searching||this.isInputClicked(e)||this.isDropdownClicked(e)||this.overlay&&this.overlay.contains(e.target)||a.DomHandler.focus(this.$refs.focusInput)},onDropdownClick(e){let t;this.overlayVisible?this.hide(!0):(a.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(e,t,i=!0){const o=this.getOptionValue(t);this.multiple?(this.$refs.focusInput.value="",this.isSelected(t)||this.updateModel(e,[...this.modelValue||[],o])):this.updateModel(e,o),this.$emit("item-select",{originalEvent:e,value:t}),i&&this.hide(!0)},onOptionMouseMove(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onOverlayClick(e){g.default.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown(e){if("Escape"===e.code)this.onEscapeKey(e)},onArrowDownKey(e){if(!this.overlayVisible)return;const t=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.findFirstFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),e.preventDefault()},onArrowUpKey(e){if(this.overlayVisible)if(e.altKey)-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{const t=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.findLastFocusedOptionIndex();this.changeFocusedOptionIndex(e,t),e.preventDefault()}},onArrowLeftKey(e){const t=e.currentTarget;this.focusedOptionIndex=-1,this.multiple&&(a.ObjectUtils.isEmpty(t.value)&&this.hasSelectedOption?(a.DomHandler.focus(this.$refs.multiContainer),this.focusedMultipleOptionIndex=this.modelValue.length):e.stopPropagation())},onArrowRightKey(e){this.focusedOptionIndex=-1,this.multiple&&e.stopPropagation()},onHomeKey(e){const{currentTarget:t}=e,i=t.value.length;t.setSelectionRange(0,e.shiftKey?i:0),this.focusedOptionIndex=-1,e.preventDefault()},onEndKey(e){const{currentTarget:t}=e,i=t.value.length;t.setSelectionRange(e.shiftKey?0:i,i),this.focusedOptionIndex=-1,e.preventDefault()},onPageUpKey(e){this.scrollInView(0),e.preventDefault()},onPageDownKey(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey(e){this.overlayVisible?(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.hide()):this.onArrowDownKey(e),e.preventDefault()},onEscapeKey(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey(e){-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide()},onBackspaceKey(e){if(this.multiple){if(a.ObjectUtils.isNotEmpty(this.modelValue)&&!this.$refs.focusInput.value){const 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(){this.focusedMultipleOptionIndex=this.focusedMultipleOptionIndex<1?0:this.focusedMultipleOptionIndex-1},onArrowRightKeyOnMultiple(){this.focusedMultipleOptionIndex++,this.focusedMultipleOptionIndex>this.modelValue.length-1&&(this.focusedMultipleOptionIndex=-1,a.DomHandler.focus(this.$refs.focusInput))},onBackspaceKeyOnMultiple(e){-1!==this.focusedMultipleOptionIndex&&this.removeOption(e,this.focusedMultipleOptionIndex)},onOverlayEnter(e){a.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay),this.alignOverlay()},onOverlayAfterEnter(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave(e){a.ZIndexUtils.clear(e)},alignOverlay(){let e=this.multiple?this.$refs.multiContainer:this.$refs.focusInput;"self"===this.appendTo?a.DomHandler.relativePosition(this.overlay,e):(this.overlay.style.minWidth=a.DomHandler.getOuterWidth(e)+"px",a.DomHandler.absolutePosition(this.overlay,e))},bindOutsideClickListener(){this.outsideClickListener||(this.outsideClickListener=e=>{this.overlayVisible&&this.overlay&&this.isOutsideClicked(e)&&this.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener(){this.scrollHandler||(this.scrollHandler=new a.ConnectedOverlayScrollHandler(this.$refs.container,(()=>{this.overlayVisible&&this.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener(){this.resizeListener||(this.resizeListener=()=>{this.overlayVisible&&!a.DomHandler.isTouchDevice()&&this.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isOutsideClicked(e){return!this.overlay.contains(e.target)&&!this.isInputClicked(e)&&!this.isDropdownClicked(e)},isInputClicked(e){return this.multiple?e.target===this.$refs.multiContainer||this.$refs.multiContainer.contains(e.target):e.target===this.$refs.focusInput},isDropdownClicked(e){return!!this.$refs.dropdownButton&&(e.target===this.$refs.dropdownButton||this.$refs.dropdownButton.$el.contains(e.target))},isOptionMatched(e,t){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.searchLocale)===t.toLocaleLowerCase(this.searchLocale)},isValidOption(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected(e){return a.ObjectUtils.equals(this.modelValue,this.getOptionValue(e),this.equalityKey)},findFirstOptionIndex(){return this.visibleOptions.findIndex((e=>this.isValidOption(e)))},findLastOptionIndex(){return a.ObjectUtils.findLastIndex(this.visibleOptions,(e=>this.isValidOption(e)))},findNextOptionIndex(e){const t=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((e=>this.isValidOption(e))):-1;return t>-1?t+e+1:e},findPrevOptionIndex(e){const t=e>0?a.ObjectUtils.findLastIndex(this.visibleOptions.slice(0,e),(e=>this.isValidOption(e))):-1;return t>-1?t:e},findSelectedOptionIndex(){return this.hasSelectedOption?this.visibleOptions.findIndex((e=>this.isValidSelectedOption(e))):-1},findFirstFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex(){const e=this.findSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},search(e,t,i){null!=t&&("input"===i&&0===t.trim().length||(this.searching=!0,this.$emit("complete",{originalEvent:e,query:t})))},removeOption(e,t){const i=this.modelValue[t],o=this.modelValue.filter(((e,i)=>i!==t)).map((e=>this.getOptionValue(e)));this.updateModel(e,o),this.$emit("item-unselect",{originalEvent:e,value:i}),this.dirty=!0,a.DomHandler.focus(this.$refs.focusInput)},changeFocusedOptionIndex(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView(),(this.selectOnFocus||this.autoHighlight)&&this.onOptionSelect(e,this.visibleOptions[t],!1))},scrollInView(e=-1){const t=-1!==e?`${this.id}_${e}`:this.focusedOptionId,i=a.DomHandler.findSingle(this.list,`li[id="${t}"]`);i?i.scrollIntoView&&i.scrollIntoView({block:"nearest",inline:"start"}):this.virtualScrollerDisabled||setTimeout((()=>{this.virtualScroller&&this.virtualScroller.scrollToIndex(-1!==e?e:this.focusedOptionIndex)}),0)},autoUpdateModel(){(this.selectOnFocus||this.autoHighlight)&&this.autoOptionFocus&&!this.hasSelectedOption&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(),this.onOptionSelect(null,this.visibleOptions[this.focusedOptionIndex],!1))},updateModel(e,t){this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})},flatOptions(e){return(e||[]).reduce(((e,t,i)=>{e.push({optionGroup:t,group:!0,index:i});const o=this.getOptionGroupChildren(t);return o&&o.forEach((t=>e.push(t))),e}),[])},overlayRef(e){this.overlay=e},listRef(e,t){this.list=e,t&&t(e)},virtualScrollerRef(e){this.virtualScroller=e}},computed:{containerClass(){return["p-autocomplete p-component p-inputwrapper",{"p-disabled":this.disabled,"p-focus":this.focused,"p-autocomplete-dd":this.dropdown,"p-autocomplete-multiple":this.multiple,"p-inputwrapper-filled":this.modelValue||a.ObjectUtils.isNotEmpty(this.inputValue),"p-inputwrapper-focus":this.focused,"p-overlay-open":this.overlayVisible}]},inputStyleClass(){return["p-autocomplete-input p-inputtext p-component",this.inputClass,{"p-autocomplete-dd-input":this.dropdown}]},multiContainerClass:()=>["p-autocomplete-multiple-container p-component p-inputtext"],panelStyleClass(){return["p-autocomplete-panel p-component",this.panelClass,{"p-input-filled":"filled"===this.$primevue.config.inputStyle,"p-ripple-disabled":!1===this.$primevue.config.ripple}]},visibleOptions(){return this.optionGroupLabel?this.flatOptions(this.suggestions):this.suggestions||[]},inputValue(){if(this.modelValue){if("object"==typeof this.modelValue){const e=this.getOptionLabel(this.modelValue);return null!=e?e:this.modelValue}return this.modelValue}return""},hasSelectedOption(){return a.ObjectUtils.isNotEmpty(this.modelValue)},equalityKey(){return this.dataKey},searchResultMessageText(){return a.ObjectUtils.isNotEmpty(this.visibleOptions)&&this.overlayVisible?this.searchMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptySearchMessageText},searchMessageText(){return this.searchMessage||this.$primevue.config.locale.searchMessage||""},emptySearchMessageText(){return this.emptySearchMessage||this.$primevue.config.locale.emptySearchMessage||""},selectionMessageText(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}",this.multiple?this.modelValue.length:"1"):this.emptySelectionMessageText},focusedOptionId(){return-1!==this.focusedOptionIndex?`${this.id}_${this.focusedOptionIndex}`:null},focusedMultipleOptionId(){return-1!==this.focusedMultipleOptionIndex?`${this.id}_multiple_option_${this.focusedMultipleOptionIndex}`:null},ariaSetSize(){return this.visibleOptions.filter((e=>!this.isOptionGroup(e))).length},virtualScrollerDisabled(){return!this.virtualScrollerOptions}},components:{Button:h.default,VirtualScroller:b.default,Portal:O.default,ChevronDownIcon:m.default,SpinnerIcon:f.default,TimesCircleIcon:y.default},directives:{ripple:v.default}};const I=["id","value","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],k=["aria-activedescendant"],S=["id","aria-label","aria-setsize","aria-posinset"],w=["id","placeholder","tabindex","disabled","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],C=["id"],V=["id"],L=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove"];!function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===i&&o.firstChild?o.insertBefore(n,o.firstChild):o.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}("\n.p-autocomplete {\n display: inline-flex;\n position: relative;\n}\n.p-autocomplete-loader {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n}\n.p-autocomplete-dd .p-autocomplete-input {\n flex: 1 1 auto;\n width: 1%;\n}\n.p-autocomplete-dd .p-autocomplete-input,\n.p-autocomplete-dd .p-autocomplete-multiple-container {\n border-top-right-radius: 0;\n border-bottom-right-radius: 0;\n}\n.p-autocomplete-dd .p-autocomplete-dropdown {\n border-top-left-radius: 0;\n border-bottom-left-radius: 0px;\n}\n.p-autocomplete .p-autocomplete-panel {\n min-width: 100%;\n}\n.p-autocomplete-panel {\n position: absolute;\n overflow: auto;\n top: 0;\n left: 0;\n}\n.p-autocomplete-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n.p-autocomplete-item {\n cursor: pointer;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n}\n.p-autocomplete-multiple-container {\n margin: 0;\n padding: 0;\n list-style-type: none;\n cursor: text;\n overflow: hidden;\n display: flex;\n align-items: center;\n flex-wrap: wrap;\n}\n.p-autocomplete-token {\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n}\n.p-autocomplete-token-icon {\n cursor: pointer;\n}\n.p-autocomplete-input-token {\n flex: 1 1 auto;\n display: inline-flex;\n}\n.p-autocomplete-input-token input {\n border: 0 none;\n outline: 0 none;\n background-color: transparent;\n margin: 0;\n padding: 0;\n box-shadow: none;\n border-radius: 0;\n width: 100%;\n}\n.p-fluid .p-autocomplete {\n display: flex;\n}\n.p-fluid .p-autocomplete-dd .p-autocomplete-input {\n width: 1%;\n}\n"),x.render=function(e,t,i,o,n,s){const l=d.resolveComponent("SpinnerIcon"),r=d.resolveComponent("Button"),a=d.resolveComponent("VirtualScroller"),p=d.resolveComponent("Portal"),u=d.resolveDirective("ripple");return d.openBlock(),d.createElementBlock("div",d.mergeProps({ref:"container",class:s.containerClass,onClick:t[15]||(t[15]=(...e)=>s.onContainerClick&&s.onContainerClick(...e))},e.ptm("root")),[i.multiple?d.createCommentVNode("",!0):(d.openBlock(),d.createElementBlock("input",d.mergeProps({key:0,ref:"focusInput",id:i.inputId,type:"text",style:i.inputStyle,class:s.inputStyleClass,value:s.inputValue,placeholder:i.placeholder,tabindex:i.disabled?-1:i.tabindex,disabled:i.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-expanded":n.overlayVisible,"aria-controls":n.id+"_list","aria-activedescendant":n.focused?s.focusedOptionId:void 0,onFocus:t[0]||(t[0]=(...e)=>s.onFocus&&s.onFocus(...e)),onBlur:t[1]||(t[1]=(...e)=>s.onBlur&&s.onBlur(...e)),onKeydown:t[2]||(t[2]=(...e)=>s.onKeyDown&&s.onKeyDown(...e)),onInput:t[3]||(t[3]=(...e)=>s.onInput&&s.onInput(...e)),onChange:t[4]||(t[4]=(...e)=>s.onChange&&s.onChange(...e))},{...i.inputProps,...e.ptm("input")}),null,16,I)),i.multiple?(d.openBlock(),d.createElementBlock("ul",d.mergeProps({key:1,ref:"multiContainer",class:s.multiContainerClass,tabindex:"-1",role:"listbox","aria-orientation":"horizontal","aria-activedescendant":n.focused?s.focusedMultipleOptionId:void 0,onFocus:t[10]||(t[10]=(...e)=>s.onMultipleContainerFocus&&s.onMultipleContainerFocus(...e)),onBlur:t[11]||(t[11]=(...e)=>s.onMultipleContainerBlur&&s.onMultipleContainerBlur(...e)),onKeydown:t[12]||(t[12]=(...e)=>s.onMultipleContainerKeyDown&&s.onMultipleContainerKeyDown(...e))},e.ptm("container")),[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(i.modelValue,((t,o)=>(d.openBlock(),d.createElementBlock("li",d.mergeProps({key:o,id:n.id+"_multiple_option_"+o,class:["p-autocomplete-token",{"p-focus":n.focusedMultipleOptionIndex===o}],role:"option","aria-label":s.getOptionLabel(t),"aria-selected":!0,"aria-setsize":i.modelValue.length,"aria-posinset":o+1},e.ptm("token")),[d.renderSlot(e.$slots,"chip",{value:t},(()=>[d.createElementVNode("span",d.mergeProps({class:"p-autocomplete-token-label"},e.ptm("tokenLabel")),d.toDisplayString(s.getOptionLabel(t)),17)])),d.renderSlot(e.$slots,"removetokenicon",{class:"p-autocomplete-token-icon",onClick:e=>s.removeOption(e,o)},(()=>[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(i.removeTokenIcon?"span":"TimesCircleIcon"),d.mergeProps({class:["p-autocomplete-token-icon",i.removeTokenIcon],onClick:e=>s.removeOption(e,o),"aria-hidden":"true"},e.ptm("removeTokenIcon")),null,16,["class","onClick"]))]))],16,S)))),128)),d.createElementVNode("li",d.mergeProps({class:"p-autocomplete-input-token",role:"option"},e.ptm("token")),[d.createElementVNode("input",d.mergeProps({ref:"focusInput",id:i.inputId,type:"text",style:i.inputStyle,class:i.inputClass,placeholder:i.placeholder,tabindex:i.disabled?-1:i.tabindex,disabled:i.disabled,autocomplete:"off",role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-autocomplete":"list","aria-expanded":n.overlayVisible,"aria-controls":n.id+"_list","aria-activedescendant":n.focused?s.focusedOptionId:void 0,onFocus:t[5]||(t[5]=(...e)=>s.onFocus&&s.onFocus(...e)),onBlur:t[6]||(t[6]=(...e)=>s.onBlur&&s.onBlur(...e)),onKeydown:t[7]||(t[7]=(...e)=>s.onKeyDown&&s.onKeyDown(...e)),onInput:t[8]||(t[8]=(...e)=>s.onInput&&s.onInput(...e)),onChange:t[9]||(t[9]=(...e)=>s.onChange&&s.onChange(...e))},{...i.inputProps,...e.ptm("input")}),null,16,w)],16)],16,k)):d.createCommentVNode("",!0),n.searching?d.renderSlot(e.$slots,"loadingicon",{key:2},(()=>[i.loadingIcon?(d.openBlock(),d.createElementBlock("i",d.mergeProps({key:0,class:["p-autocomplete-loader pi-spin",i.loadingIcon],"aria-hidden":"true"},e.ptm("loadingIcon")),null,16)):(d.openBlock(),d.createBlock(l,d.mergeProps({key:1,class:"p-autocomplete-loader",spin:"","aria-hidden":"true"},e.ptm("loadingIcon")),null,16))])):d.createCommentVNode("",!0),i.dropdown?(d.openBlock(),d.createBlock(r,{key:3,ref:"dropdownButton",type:"button",tabindex:"-1",class:d.normalizeClass(["p-autocomplete-dropdown",i.dropdownClass]),disabled:i.disabled,"aria-hidden":"true",onClick:s.onDropdownClick,pt:e.ptm("dropdownButton")},{icon:d.withCtx((()=>[d.renderSlot(e.$slots,"dropdownicon",{},(()=>[(d.openBlock(),d.createBlock(d.resolveDynamicComponent(i.dropdownIcon?"span":"ChevronDownIcon"),d.mergeProps({class:i.dropdownIcon},e.ptm("dropdownButton").icon),null,16,["class"]))]))])),_:3},8,["class","disabled","onClick","pt"])):d.createCommentVNode("",!0),d.createElementVNode("span",d.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSearchResult")),d.toDisplayString(s.searchResultMessageText),17),d.createVNode(p,{appendTo:i.appendTo},{default:d.withCtx((()=>[d.createVNode(d.Transition,{name:"p-connected-overlay",onEnter:s.onOverlayEnter,onAfterEnter:s.onOverlayAfterEnter,onLeave:s.onOverlayLeave,onAfterLeave:s.onOverlayAfterLeave},{default:d.withCtx((()=>[n.overlayVisible?(d.openBlock(),d.createElementBlock("div",d.mergeProps({key:0,ref:s.overlayRef,class:s.panelStyleClass,style:{...i.panelStyle,"max-height":s.virtualScrollerDisabled?i.scrollHeight:""},onClick:t[13]||(t[13]=(...e)=>s.onOverlayClick&&s.onOverlayClick(...e)),onKeydown:t[14]||(t[14]=(...e)=>s.onOverlayKeyDown&&s.onOverlayKeyDown(...e))},{...i.panelProps,...e.ptm("panel")}),[d.renderSlot(e.$slots,"header",{value:i.modelValue,suggestions:s.visibleOptions}),d.createVNode(a,d.mergeProps({ref:s.virtualScrollerRef},{...i.virtualScrollerOptions,...e.ptm("virtualScroller")},{style:{height:i.scrollHeight},items:s.visibleOptions,tabindex:-1,disabled:s.virtualScrollerDisabled}),d.createSlots({content:d.withCtx((({styleClass:t,contentRef:i,items:o,getItemOptions:l,contentStyle:r,itemSize:a})=>[d.createElementVNode("ul",d.mergeProps({ref:e=>s.listRef(e,i),id:n.id+"_list",class:["p-autocomplete-items",t],style:r,role:"listbox"},e.ptm("list")),[(d.openBlock(!0),d.createElementBlock(d.Fragment,null,d.renderList(o,((t,i)=>(d.openBlock(),d.createElementBlock(d.Fragment,{key:s.getOptionRenderKey(t,s.getOptionIndex(i,l))},[s.isOptionGroup(t)?(d.openBlock(),d.createElementBlock("li",d.mergeProps({key:0,id:n.id+"_"+s.getOptionIndex(i,l),style:{height:a?a+"px":void 0},class:"p-autocomplete-item-group",role:"option"},e.ptm("itemGroup")),[d.renderSlot(e.$slots,"optiongroup",{option:t.optionGroup,item:t.optionGroup,index:s.getOptionIndex(i,l)},(()=>[d.createTextVNode(d.toDisplayString(s.getOptionGroupLabel(t.optionGroup)),1)]))],16,V)):d.withDirectives((d.openBlock(),d.createElementBlock("li",d.mergeProps({key:1,id:n.id+"_"+s.getOptionIndex(i,l),style:{height:a?a+"px":void 0},class:["p-autocomplete-item",{"p-highlight":s.isSelected(t),"p-focus":n.focusedOptionIndex===s.getOptionIndex(i,l),"p-disabled":s.isOptionDisabled(t)}],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,l)),onClick:e=>s.onOptionSelect(e,t),onMousemove:e=>s.onOptionMouseMove(e,s.getOptionIndex(i,l))},s.getPTOptions(t,l,i,"item")),[e.$slots.option?d.renderSlot(e.$slots,"option",{key:0,option:t,index:s.getOptionIndex(i,l)},(()=>[d.createTextVNode(d.toDisplayString(s.getOptionLabel(t)),1)])):d.renderSlot(e.$slots,"item",{key:1,item:t,index:s.getOptionIndex(i,l)},(()=>[d.createTextVNode(d.toDisplayString(s.getOptionLabel(t)),1)]))],16,L)),[[u]])],64)))),128)),!o||o&&0===o.length?(d.openBlock(),d.createElementBlock("li",d.mergeProps({key:0,class:"p-autocomplete-empty-message",role:"option"},e.ptm("emptyMessage")),[d.renderSlot(e.$slots,"empty",{},(()=>[d.createTextVNode(d.toDisplayString(s.searchResultMessageText),1)]))],16)):d.createCommentVNode("",!0)],16,C)])),_:2},[e.$slots.loader?{name:"loader",fn:d.withCtx((({options:t})=>[d.renderSlot(e.$slots,"loader",{options:t})])),key:"0"}:void 0]),1040,["style","items","disabled"]),d.renderSlot(e.$slots,"footer",{value:i.modelValue,suggestions:s.visibleOptions}),d.createElementVNode("span",d.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSelectedMessage")),d.toDisplayString(s.selectedMessageText),17)],16)):d.createCommentVNode("",!0)])),_:3},8,["onEnter","onAfterEnter","onLeave","onAfterLeave"])])),_:3},8,["appendTo"])],16)},module.exports=x;