primevue 3.30.2 → 3.32.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 (603) hide show
  1. package/accordion/Accordion.d.ts +5 -5
  2. package/accordion/Accordion.vue +1 -1
  3. package/accordion/accordion.cjs.js +3 -3
  4. package/accordion/accordion.cjs.min.js +1 -1
  5. package/accordion/accordion.esm.js +3 -3
  6. package/accordion/accordion.esm.min.js +1 -1
  7. package/accordion/accordion.js +3 -3
  8. package/accordion/accordion.min.js +1 -1
  9. package/accordiontab/AccordionTab.d.ts +18 -12
  10. package/autocomplete/AutoComplete.d.ts +34 -23
  11. package/autocomplete/AutoComplete.vue +3 -3
  12. package/autocomplete/BaseAutoComplete.vue +4 -0
  13. package/autocomplete/autocomplete.cjs.js +9 -5
  14. package/autocomplete/autocomplete.cjs.min.js +1 -1
  15. package/autocomplete/autocomplete.esm.js +9 -5
  16. package/autocomplete/autocomplete.esm.min.js +1 -1
  17. package/autocomplete/autocomplete.js +9 -5
  18. package/autocomplete/autocomplete.min.js +1 -1
  19. package/avatar/Avatar.d.ts +7 -7
  20. package/avatar/Avatar.vue +2 -2
  21. package/avatar/avatar.cjs.js +2 -2
  22. package/avatar/avatar.cjs.min.js +1 -1
  23. package/avatar/avatar.esm.js +2 -2
  24. package/avatar/avatar.esm.min.js +1 -1
  25. package/avatar/avatar.js +2 -2
  26. package/avatar/avatar.min.js +1 -1
  27. package/avatargroup/AvatarGroup.d.ts +3 -3
  28. package/badge/Badge.d.ts +3 -3
  29. package/badgedirective/BadgeDirective.d.ts +45 -4
  30. package/badgedirective/badgedirective.cjs.js +11 -1
  31. package/badgedirective/badgedirective.cjs.min.js +1 -1
  32. package/badgedirective/badgedirective.esm.js +11 -1
  33. package/badgedirective/badgedirective.esm.min.js +1 -1
  34. package/badgedirective/badgedirective.js +11 -1
  35. package/badgedirective/badgedirective.min.js +1 -1
  36. package/basecomponent/BaseComponent.vue +51 -25
  37. package/basecomponent/basecomponent.cjs.js +66 -42
  38. package/basecomponent/basecomponent.cjs.min.js +1 -1
  39. package/basecomponent/basecomponent.esm.js +66 -42
  40. package/basecomponent/basecomponent.esm.min.js +1 -1
  41. package/basecomponent/basecomponent.js +66 -42
  42. package/basecomponent/basecomponent.min.js +1 -1
  43. package/basedirective/basedirective.cjs.js +9 -3
  44. package/basedirective/basedirective.cjs.min.js +1 -1
  45. package/basedirective/basedirective.esm.js +9 -3
  46. package/basedirective/basedirective.esm.min.js +1 -1
  47. package/basedirective/basedirective.js +9 -3
  48. package/basedirective/basedirective.min.js +1 -1
  49. package/blockui/BaseBlockUI.vue +0 -8
  50. package/blockui/BlockUI.d.ts +7 -3
  51. package/blockui/BlockUI.vue +35 -10
  52. package/blockui/blockui.cjs.js +34 -12
  53. package/blockui/blockui.cjs.min.js +1 -1
  54. package/blockui/blockui.esm.js +34 -12
  55. package/blockui/blockui.esm.min.js +1 -1
  56. package/blockui/blockui.js +34 -12
  57. package/blockui/blockui.min.js +1 -1
  58. package/breadcrumb/Breadcrumb.d.ts +25 -10
  59. package/breadcrumb/BreadcrumbItem.vue +18 -8
  60. package/breadcrumb/breadcrumb.cjs.js +18 -8
  61. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  62. package/breadcrumb/breadcrumb.esm.js +18 -8
  63. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  64. package/breadcrumb/breadcrumb.js +18 -8
  65. package/breadcrumb/breadcrumb.min.js +1 -1
  66. package/button/Button.d.ts +8 -7
  67. package/button/Button.vue +4 -0
  68. package/button/button.cjs.js +5 -0
  69. package/button/button.cjs.min.js +1 -1
  70. package/button/button.esm.js +5 -0
  71. package/button/button.esm.min.js +1 -1
  72. package/button/button.js +5 -0
  73. package/button/button.min.js +1 -1
  74. package/calendar/Calendar.d.ts +129 -53
  75. package/calendar/Calendar.vue +49 -7
  76. package/calendar/calendar.cjs.js +72 -35
  77. package/calendar/calendar.cjs.min.js +1 -1
  78. package/calendar/calendar.esm.js +72 -35
  79. package/calendar/calendar.esm.min.js +1 -1
  80. package/calendar/calendar.js +72 -35
  81. package/calendar/calendar.min.js +1 -1
  82. package/card/Card.d.ts +9 -9
  83. package/carousel/Carousel.d.ts +32 -20
  84. package/carousel/Carousel.vue +10 -2
  85. package/carousel/carousel.cjs.js +11 -2
  86. package/carousel/carousel.cjs.min.js +1 -1
  87. package/carousel/carousel.esm.js +11 -2
  88. package/carousel/carousel.esm.min.js +1 -1
  89. package/carousel/carousel.js +11 -2
  90. package/carousel/carousel.min.js +1 -1
  91. package/cascadeselect/CascadeSelect.d.ts +25 -19
  92. package/cascadeselect/CascadeSelect.vue +2 -1
  93. package/cascadeselect/CascadeSelectSub.vue +1 -0
  94. package/cascadeselect/cascadeselect.cjs.js +9 -7
  95. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  96. package/cascadeselect/cascadeselect.esm.js +9 -7
  97. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  98. package/cascadeselect/cascadeselect.js +9 -7
  99. package/cascadeselect/cascadeselect.min.js +1 -1
  100. package/chart/Chart.d.ts +5 -5
  101. package/checkbox/Checkbox.d.ts +8 -8
  102. package/chip/Chip.d.ts +7 -7
  103. package/chips/Chips.d.ts +10 -10
  104. package/colorpicker/ColorPicker.d.ts +18 -11
  105. package/colorpicker/ColorPicker.vue +1 -1
  106. package/colorpicker/colorpicker.cjs.js +3 -3
  107. package/colorpicker/colorpicker.cjs.min.js +1 -1
  108. package/colorpicker/colorpicker.esm.js +3 -3
  109. package/colorpicker/colorpicker.esm.min.js +1 -1
  110. package/colorpicker/colorpicker.js +3 -3
  111. package/colorpicker/colorpicker.min.js +1 -1
  112. package/column/Column.d.ts +58 -58
  113. package/columngroup/ColumnGroup.d.ts +3 -3
  114. package/config/PrimeVue.d.ts +22 -0
  115. package/config/config.cjs.js +4 -1
  116. package/config/config.cjs.min.js +1 -1
  117. package/config/config.esm.js +4 -1
  118. package/config/config.esm.min.js +1 -1
  119. package/config/config.js +4 -1
  120. package/config/config.min.js +1 -1
  121. package/confirmdialog/ConfirmDialog.d.ts +14 -14
  122. package/confirmpopup/ConfirmPopup.d.ts +16 -10
  123. package/confirmpopup/ConfirmPopup.vue +1 -1
  124. package/confirmpopup/confirmpopup.cjs.js +3 -3
  125. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  126. package/confirmpopup/confirmpopup.esm.js +4 -4
  127. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  128. package/confirmpopup/confirmpopup.js +3 -3
  129. package/confirmpopup/confirmpopup.min.js +1 -1
  130. package/contextmenu/ContextMenu.d.ts +27 -13
  131. package/contextmenu/ContextMenu.vue +1 -1
  132. package/contextmenu/ContextMenuSub.vue +14 -12
  133. package/contextmenu/contextmenu.cjs.js +19 -17
  134. package/contextmenu/contextmenu.cjs.min.js +1 -1
  135. package/contextmenu/contextmenu.esm.js +20 -18
  136. package/contextmenu/contextmenu.esm.min.js +1 -1
  137. package/contextmenu/contextmenu.js +19 -17
  138. package/contextmenu/contextmenu.min.js +1 -1
  139. package/core/core.js +4538 -507
  140. package/core/core.min.js +19 -15
  141. package/datatable/BaseDataTable.vue +1 -1
  142. package/datatable/BodyCell.vue +1 -0
  143. package/datatable/ColumnFilter.vue +1 -1
  144. package/datatable/DataTable.d.ts +37 -31
  145. package/datatable/DataTable.vue +4 -1
  146. package/datatable/datatable.cjs.js +10 -5
  147. package/datatable/datatable.cjs.min.js +1 -1
  148. package/datatable/datatable.esm.js +10 -5
  149. package/datatable/datatable.esm.min.js +1 -1
  150. package/datatable/datatable.js +10 -5
  151. package/datatable/datatable.min.js +1 -1
  152. package/dataview/DataView.d.ts +10 -10
  153. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +7 -7
  154. package/deferredcontent/DeferredContent.d.ts +3 -3
  155. package/dialog/BaseDialog.vue +3 -7
  156. package/dialog/Dialog.d.ts +21 -15
  157. package/dialog/Dialog.vue +2 -1
  158. package/dialog/dialog.cjs.js +9 -6
  159. package/dialog/dialog.cjs.min.js +1 -1
  160. package/dialog/dialog.esm.js +9 -6
  161. package/dialog/dialog.esm.min.js +1 -1
  162. package/dialog/dialog.js +9 -6
  163. package/dialog/dialog.min.js +1 -1
  164. package/divider/BaseDivider.vue +9 -24
  165. package/divider/Divider.d.ts +4 -4
  166. package/divider/Divider.vue +1 -1
  167. package/divider/divider.cjs.js +15 -2
  168. package/divider/divider.cjs.min.js +1 -1
  169. package/divider/divider.esm.js +15 -2
  170. package/divider/divider.esm.min.js +1 -1
  171. package/divider/divider.js +15 -2
  172. package/divider/divider.min.js +1 -1
  173. package/dock/BaseDock.vue +1 -1
  174. package/dock/Dock.d.ts +13 -9
  175. package/dock/Dock.vue +19 -2
  176. package/dock/DockSub.vue +8 -7
  177. package/dock/dock.cjs.js +18 -11
  178. package/dock/dock.cjs.min.js +1 -1
  179. package/dock/dock.esm.js +18 -11
  180. package/dock/dock.esm.min.js +1 -1
  181. package/dock/dock.js +18 -11
  182. package/dock/dock.min.js +1 -1
  183. package/dropdown/BaseDropdown.vue +5 -5
  184. package/dropdown/Dropdown.d.ts +34 -28
  185. package/dropdown/Dropdown.vue +2 -2
  186. package/dropdown/dropdown.cjs.js +9 -9
  187. package/dropdown/dropdown.cjs.min.js +1 -1
  188. package/dropdown/dropdown.esm.js +9 -9
  189. package/dropdown/dropdown.esm.min.js +1 -1
  190. package/dropdown/dropdown.js +9 -9
  191. package/dropdown/dropdown.min.js +1 -1
  192. package/editor/BaseEditor.vue +0 -14
  193. package/editor/Editor.d.ts +19 -19
  194. package/editor/Editor.vue +20 -20
  195. package/editor/editor.cjs.js +20 -34
  196. package/editor/editor.cjs.min.js +1 -1
  197. package/editor/editor.esm.js +20 -34
  198. package/editor/editor.esm.min.js +1 -1
  199. package/editor/editor.js +20 -34
  200. package/editor/editor.min.js +1 -1
  201. package/fieldset/Fieldset.d.ts +17 -11
  202. package/fieldset/Fieldset.vue +1 -1
  203. package/fieldset/fieldset.cjs.js +3 -3
  204. package/fieldset/fieldset.cjs.min.js +1 -1
  205. package/fieldset/fieldset.esm.js +3 -3
  206. package/fieldset/fieldset.esm.min.js +1 -1
  207. package/fieldset/fieldset.js +3 -3
  208. package/fieldset/fieldset.min.js +1 -1
  209. package/fileupload/FileUpload.d.ts +24 -24
  210. package/fileupload/FileUpload.vue +4 -4
  211. package/fileupload/fileupload.cjs.js +10 -4
  212. package/fileupload/fileupload.cjs.min.js +1 -1
  213. package/fileupload/fileupload.esm.js +10 -4
  214. package/fileupload/fileupload.esm.min.js +1 -1
  215. package/fileupload/fileupload.js +10 -4
  216. package/fileupload/fileupload.min.js +1 -1
  217. package/focustrap/FocusTrap.d.ts +5 -5
  218. package/galleria/Galleria.d.ts +53 -34
  219. package/galleria/Galleria.vue +1 -1
  220. package/galleria/GalleriaItem.vue +9 -2
  221. package/galleria/GalleriaThumbnails.vue +1 -0
  222. package/galleria/galleria.cjs.js +14 -5
  223. package/galleria/galleria.cjs.min.js +1 -1
  224. package/galleria/galleria.esm.js +14 -5
  225. package/galleria/galleria.esm.min.js +1 -1
  226. package/galleria/galleria.js +14 -5
  227. package/galleria/galleria.min.js +1 -1
  228. package/image/Image.d.ts +28 -21
  229. package/image/Image.vue +4 -4
  230. package/image/image.cjs.js +6 -5
  231. package/image/image.cjs.min.js +1 -1
  232. package/image/image.esm.js +6 -5
  233. package/image/image.esm.min.js +1 -1
  234. package/image/image.js +6 -5
  235. package/image/image.min.js +1 -1
  236. package/inlinemessage/InlineMessage.d.ts +5 -5
  237. package/inplace/Inplace.d.ts +8 -8
  238. package/inputmask/InputMask.d.ts +32 -4
  239. package/inputmask/InputMask.vue +9 -1
  240. package/inputmask/inputmask.cjs.js +9 -1
  241. package/inputmask/inputmask.cjs.min.js +1 -1
  242. package/inputmask/inputmask.esm.js +9 -1
  243. package/inputmask/inputmask.esm.min.js +1 -1
  244. package/inputmask/inputmask.js +9 -1
  245. package/inputmask/inputmask.min.js +1 -1
  246. package/inputnumber/InputNumber.d.ts +10 -10
  247. package/inputswitch/InputSwitch.d.ts +9 -9
  248. package/inputtext/InputText.d.ts +3 -3
  249. package/knob/Knob.d.ts +7 -7
  250. package/listbox/Listbox.d.ts +18 -18
  251. package/megamenu/MegaMenu.d.ts +26 -18
  252. package/megamenu/MegaMenuSub.vue +14 -11
  253. package/megamenu/megamenu.cjs.js +15 -12
  254. package/megamenu/megamenu.cjs.min.js +1 -1
  255. package/megamenu/megamenu.esm.js +15 -12
  256. package/megamenu/megamenu.esm.min.js +1 -1
  257. package/megamenu/megamenu.js +15 -12
  258. package/megamenu/megamenu.min.js +1 -1
  259. package/menu/Menu.d.ts +28 -14
  260. package/menu/Menu.vue +2 -2
  261. package/menu/Menuitem.vue +4 -1
  262. package/menu/menu.cjs.js +9 -5
  263. package/menu/menu.cjs.min.js +1 -1
  264. package/menu/menu.esm.js +9 -5
  265. package/menu/menu.esm.min.js +1 -1
  266. package/menu/menu.js +9 -5
  267. package/menu/menu.min.js +1 -1
  268. package/menubar/Menubar.d.ts +29 -17
  269. package/menubar/MenubarSub.vue +15 -11
  270. package/menubar/menubar.cjs.js +16 -12
  271. package/menubar/menubar.cjs.min.js +1 -1
  272. package/menubar/menubar.esm.js +16 -12
  273. package/menubar/menubar.esm.min.js +1 -1
  274. package/menubar/menubar.js +16 -12
  275. package/menubar/menubar.min.js +1 -1
  276. package/message/Message.d.ts +18 -12
  277. package/message/Message.vue +1 -1
  278. package/message/message.cjs.js +3 -3
  279. package/message/message.cjs.min.js +1 -1
  280. package/message/message.esm.js +4 -4
  281. package/message/message.esm.min.js +1 -1
  282. package/message/message.js +3 -3
  283. package/message/message.min.js +1 -1
  284. package/multiselect/MultiSelect.d.ts +47 -41
  285. package/multiselect/MultiSelect.vue +1 -1
  286. package/multiselect/multiselect.cjs.js +3 -3
  287. package/multiselect/multiselect.cjs.min.js +1 -1
  288. package/multiselect/multiselect.esm.js +3 -3
  289. package/multiselect/multiselect.esm.min.js +1 -1
  290. package/multiselect/multiselect.js +3 -3
  291. package/multiselect/multiselect.min.js +1 -1
  292. package/orderlist/OrderList.d.ts +24 -18
  293. package/orderlist/OrderList.vue +2 -1
  294. package/orderlist/orderlist.cjs.js +3 -1
  295. package/orderlist/orderlist.cjs.min.js +1 -1
  296. package/orderlist/orderlist.esm.js +3 -1
  297. package/orderlist/orderlist.esm.min.js +1 -1
  298. package/orderlist/orderlist.js +3 -1
  299. package/orderlist/orderlist.min.js +1 -1
  300. package/organizationchart/OrganizationChart.d.ts +15 -15
  301. package/overlaypanel/OverlayPanel.d.ts +13 -7
  302. package/overlaypanel/OverlayPanel.vue +2 -1
  303. package/overlaypanel/overlaypanel.cjs.js +5 -3
  304. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  305. package/overlaypanel/overlaypanel.esm.js +6 -4
  306. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  307. package/overlaypanel/overlaypanel.js +5 -3
  308. package/overlaypanel/overlaypanel.min.js +1 -1
  309. package/package.json +15 -15
  310. package/paginator/Paginator.d.ts +20 -20
  311. package/paginator/Paginator.vue +2 -1
  312. package/paginator/paginator.cjs.js +2 -0
  313. package/paginator/paginator.cjs.min.js +1 -1
  314. package/paginator/paginator.esm.js +3 -1
  315. package/paginator/paginator.esm.min.js +1 -1
  316. package/paginator/paginator.js +2 -0
  317. package/paginator/paginator.min.js +1 -1
  318. package/panel/Panel.d.ts +19 -13
  319. package/panel/Panel.vue +1 -1
  320. package/panel/panel.cjs.js +3 -3
  321. package/panel/panel.cjs.min.js +1 -1
  322. package/panel/panel.esm.js +3 -3
  323. package/panel/panel.esm.min.js +1 -1
  324. package/panel/panel.js +3 -3
  325. package/panel/panel.min.js +1 -1
  326. package/panelmenu/PanelMenu.d.ts +35 -21
  327. package/panelmenu/PanelMenu.vue +13 -12
  328. package/panelmenu/PanelMenuSub.vue +14 -12
  329. package/panelmenu/panelmenu.cjs.js +31 -28
  330. package/panelmenu/panelmenu.cjs.min.js +1 -1
  331. package/panelmenu/panelmenu.esm.js +31 -28
  332. package/panelmenu/panelmenu.esm.min.js +1 -1
  333. package/panelmenu/panelmenu.js +31 -28
  334. package/panelmenu/panelmenu.min.js +1 -1
  335. package/passthrough/index.cjs.js +74 -0
  336. package/passthrough/index.cjs.min.js +1 -0
  337. package/passthrough/index.d.ts +15 -0
  338. package/passthrough/index.esm.js +70 -0
  339. package/passthrough/index.esm.min.js +1 -0
  340. package/passthrough/index.js +77 -0
  341. package/passthrough/index.min.js +1 -0
  342. package/passthrough/package.json +6 -0
  343. package/passthrough/tailwind/index.cjs.js +3828 -0
  344. package/passthrough/tailwind/index.cjs.min.js +1 -0
  345. package/passthrough/tailwind/index.d.ts +5 -0
  346. package/passthrough/tailwind/index.esm.js +3823 -0
  347. package/passthrough/tailwind/index.esm.min.js +1 -0
  348. package/passthrough/tailwind/index.js +3835 -0
  349. package/passthrough/tailwind/index.min.js +1 -0
  350. package/passthrough/tailwind/package.json +6 -0
  351. package/password/Password.d.ts +25 -14
  352. package/password/Password.vue +2 -1
  353. package/password/password.cjs.js +4 -3
  354. package/password/password.cjs.min.js +1 -1
  355. package/password/password.esm.js +4 -3
  356. package/password/password.esm.min.js +1 -1
  357. package/password/password.js +4 -3
  358. package/password/password.min.js +1 -1
  359. package/picklist/PickList.d.ts +42 -36
  360. package/picklist/PickList.vue +3 -2
  361. package/picklist/picklist.cjs.js +4 -2
  362. package/picklist/picklist.cjs.min.js +1 -1
  363. package/picklist/picklist.esm.js +4 -2
  364. package/picklist/picklist.esm.min.js +1 -1
  365. package/picklist/picklist.js +4 -2
  366. package/picklist/picklist.min.js +1 -1
  367. package/progressbar/ProgressBar.d.ts +5 -5
  368. package/progressspinner/ProgressSpinner.d.ts +5 -5
  369. package/radiobutton/RadioButton.d.ts +10 -10
  370. package/rating/Rating.d.ts +12 -12
  371. package/rating/Rating.vue +3 -3
  372. package/rating/rating.cjs.js +3 -3
  373. package/rating/rating.cjs.min.js +1 -1
  374. package/rating/rating.esm.js +3 -3
  375. package/rating/rating.esm.min.js +1 -1
  376. package/rating/rating.js +3 -3
  377. package/rating/rating.min.js +1 -1
  378. package/resources/themes/arya-blue/theme.css +7 -0
  379. package/resources/themes/arya-green/theme.css +7 -0
  380. package/resources/themes/arya-orange/theme.css +7 -0
  381. package/resources/themes/arya-purple/theme.css +7 -0
  382. package/resources/themes/bootstrap4-dark-blue/theme.css +7 -0
  383. package/resources/themes/bootstrap4-dark-purple/theme.css +7 -0
  384. package/resources/themes/bootstrap4-light-blue/theme.css +7 -0
  385. package/resources/themes/bootstrap4-light-purple/theme.css +7 -0
  386. package/resources/themes/fluent-light/theme.css +7 -0
  387. package/resources/themes/lara-dark-blue/theme.css +7 -0
  388. package/resources/themes/lara-dark-indigo/theme.css +7 -0
  389. package/resources/themes/lara-dark-purple/theme.css +7 -0
  390. package/resources/themes/lara-dark-teal/theme.css +7 -0
  391. package/resources/themes/lara-light-blue/theme.css +7 -0
  392. package/resources/themes/lara-light-indigo/theme.css +7 -0
  393. package/resources/themes/lara-light-purple/theme.css +7 -0
  394. package/resources/themes/lara-light-teal/theme.css +7 -0
  395. package/resources/themes/luna-amber/theme.css +7 -0
  396. package/resources/themes/luna-blue/theme.css +7 -0
  397. package/resources/themes/luna-green/theme.css +7 -0
  398. package/resources/themes/luna-pink/theme.css +7 -0
  399. package/resources/themes/md-dark-deeppurple/theme.css +7 -0
  400. package/resources/themes/md-dark-indigo/theme.css +7 -0
  401. package/resources/themes/md-light-deeppurple/theme.css +7 -0
  402. package/resources/themes/md-light-indigo/theme.css +7 -0
  403. package/resources/themes/mdc-dark-deeppurple/theme.css +7 -0
  404. package/resources/themes/mdc-dark-indigo/theme.css +7 -0
  405. package/resources/themes/mdc-light-deeppurple/theme.css +7 -0
  406. package/resources/themes/mdc-light-indigo/theme.css +7 -0
  407. package/resources/themes/mira/theme.css +7 -0
  408. package/resources/themes/nano/theme.css +7 -0
  409. package/resources/themes/nova/theme.css +7 -0
  410. package/resources/themes/nova-accent/theme.css +7 -0
  411. package/resources/themes/nova-alt/theme.css +7 -0
  412. package/resources/themes/nova-vue/theme.css +7 -0
  413. package/resources/themes/rhea/theme.css +7 -0
  414. package/resources/themes/saga-blue/theme.css +7 -0
  415. package/resources/themes/saga-green/theme.css +7 -0
  416. package/resources/themes/saga-orange/theme.css +7 -0
  417. package/resources/themes/saga-purple/theme.css +7 -0
  418. package/resources/themes/soho-dark/theme.css +7 -0
  419. package/resources/themes/soho-light/theme.css +7 -0
  420. package/resources/themes/tailwind-light/theme.css +7 -0
  421. package/resources/themes/vela-blue/theme.css +7 -0
  422. package/resources/themes/vela-green/theme.css +7 -0
  423. package/resources/themes/vela-orange/theme.css +7 -0
  424. package/resources/themes/vela-purple/theme.css +7 -0
  425. package/resources/themes/viva-dark/theme.css +7 -0
  426. package/resources/themes/viva-light/theme.css +7 -0
  427. package/ripple/Ripple.d.ts +3 -3
  428. package/row/Row.d.ts +2 -2
  429. package/scrollpanel/ScrollPanel.d.ts +7 -7
  430. package/scrolltop/ScrollTop.d.ts +11 -5
  431. package/scrolltop/ScrollTop.vue +1 -1
  432. package/scrolltop/scrolltop.cjs.js +3 -3
  433. package/scrolltop/scrolltop.cjs.min.js +1 -1
  434. package/scrolltop/scrolltop.esm.js +4 -4
  435. package/scrolltop/scrolltop.esm.min.js +1 -1
  436. package/scrolltop/scrolltop.js +3 -3
  437. package/scrolltop/scrolltop.min.js +1 -1
  438. package/selectbutton/SelectButton.d.ts +5 -5
  439. package/sidebar/Sidebar.d.ts +16 -10
  440. package/sidebar/Sidebar.vue +1 -1
  441. package/sidebar/sidebar.cjs.js +3 -3
  442. package/sidebar/sidebar.cjs.min.js +1 -1
  443. package/sidebar/sidebar.esm.js +3 -3
  444. package/sidebar/sidebar.esm.min.js +1 -1
  445. package/sidebar/sidebar.js +3 -3
  446. package/sidebar/sidebar.min.js +1 -1
  447. package/skeleton/Skeleton.d.ts +3 -3
  448. package/slider/Slider.d.ts +7 -7
  449. package/speeddial/BaseSpeedDial.vue +12 -36
  450. package/speeddial/SpeedDial.d.ts +14 -9
  451. package/speeddial/SpeedDial.vue +5 -4
  452. package/speeddial/speeddial.cjs.js +44 -23
  453. package/speeddial/speeddial.cjs.min.js +1 -1
  454. package/speeddial/speeddial.esm.js +44 -23
  455. package/speeddial/speeddial.esm.min.js +1 -1
  456. package/speeddial/speeddial.js +44 -23
  457. package/speeddial/speeddial.min.js +1 -1
  458. package/splitbutton/SplitButton.d.ts +8 -8
  459. package/splitbutton/SplitButton.vue +22 -3
  460. package/splitbutton/splitbutton.cjs.js +17 -5
  461. package/splitbutton/splitbutton.cjs.min.js +1 -1
  462. package/splitbutton/splitbutton.esm.js +17 -5
  463. package/splitbutton/splitbutton.esm.min.js +1 -1
  464. package/splitbutton/splitbutton.js +17 -5
  465. package/splitbutton/splitbutton.min.js +1 -1
  466. package/splitter/Splitter.d.ts +16 -5
  467. package/splitter/Splitter.vue +8 -1
  468. package/splitter/splitter.cjs.js +9 -1
  469. package/splitter/splitter.cjs.min.js +1 -1
  470. package/splitter/splitter.esm.js +9 -1
  471. package/splitter/splitter.esm.min.js +1 -1
  472. package/splitter/splitter.js +9 -1
  473. package/splitter/splitter.min.js +1 -1
  474. package/splitterpanel/SplitterPanel.d.ts +14 -3
  475. package/splitterpanel/SplitterPanel.vue +8 -1
  476. package/splitterpanel/splitterpanel.cjs.js +8 -1
  477. package/splitterpanel/splitterpanel.cjs.min.js +1 -1
  478. package/splitterpanel/splitterpanel.esm.js +8 -1
  479. package/splitterpanel/splitterpanel.esm.min.js +1 -1
  480. package/splitterpanel/splitterpanel.js +8 -1
  481. package/splitterpanel/splitterpanel.min.js +1 -1
  482. package/steps/BaseSteps.vue +1 -1
  483. package/steps/Steps.d.ts +33 -8
  484. package/steps/Steps.vue +17 -7
  485. package/steps/steps.cjs.js +19 -9
  486. package/steps/steps.cjs.min.js +1 -1
  487. package/steps/steps.esm.js +19 -9
  488. package/steps/steps.esm.min.js +1 -1
  489. package/steps/steps.js +19 -9
  490. package/steps/steps.min.js +1 -1
  491. package/styleclass/StyleClass.d.ts +2 -2
  492. package/tabmenu/TabMenu.d.ts +15 -11
  493. package/tabmenu/TabMenu.vue +11 -10
  494. package/tabmenu/tabmenu.cjs.js +11 -10
  495. package/tabmenu/tabmenu.cjs.min.js +1 -1
  496. package/tabmenu/tabmenu.esm.js +11 -10
  497. package/tabmenu/tabmenu.esm.min.js +1 -1
  498. package/tabmenu/tabmenu.js +11 -10
  499. package/tabmenu/tabmenu.min.js +1 -1
  500. package/tabpanel/TabPanel.d.ts +10 -10
  501. package/tabview/TabView.d.ts +16 -16
  502. package/tabview/TabView.vue +1 -0
  503. package/tabview/tabview.cjs.js +2 -1
  504. package/tabview/tabview.cjs.min.js +1 -1
  505. package/tabview/tabview.esm.js +2 -1
  506. package/tabview/tabview.esm.min.js +1 -1
  507. package/tabview/tabview.js +2 -1
  508. package/tabview/tabview.min.js +1 -1
  509. package/tag/Tag.d.ts +5 -5
  510. package/terminal/Terminal.d.ts +11 -11
  511. package/textarea/Textarea.d.ts +3 -3
  512. package/tieredmenu/TieredMenu.d.ts +27 -13
  513. package/tieredmenu/TieredMenu.vue +1 -1
  514. package/tieredmenu/TieredMenuSub.vue +13 -11
  515. package/tieredmenu/tieredmenu.cjs.js +16 -14
  516. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  517. package/tieredmenu/tieredmenu.esm.js +16 -14
  518. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  519. package/tieredmenu/tieredmenu.js +16 -14
  520. package/tieredmenu/tieredmenu.min.js +1 -1
  521. package/timeline/Timeline.d.ts +9 -9
  522. package/toast/BaseToast.vue +4 -0
  523. package/toast/Toast.d.ts +23 -17
  524. package/toast/Toast.vue +3 -2
  525. package/toast/toast.cjs.js +4 -2
  526. package/toast/toast.cjs.min.js +1 -1
  527. package/toast/toast.esm.js +5 -3
  528. package/toast/toast.esm.min.js +1 -1
  529. package/toast/toast.js +4 -2
  530. package/toast/toast.min.js +1 -1
  531. package/togglebutton/ToggleButton.d.ts +31 -9
  532. package/togglebutton/ToggleButton.vue +12 -3
  533. package/togglebutton/togglebutton.cjs.js +12 -3
  534. package/togglebutton/togglebutton.cjs.min.js +1 -1
  535. package/togglebutton/togglebutton.esm.js +12 -3
  536. package/togglebutton/togglebutton.esm.min.js +1 -1
  537. package/togglebutton/togglebutton.js +12 -3
  538. package/togglebutton/togglebutton.min.js +1 -1
  539. package/toolbar/Toolbar.d.ts +6 -6
  540. package/toolbar/Toolbar.vue +3 -3
  541. package/toolbar/toolbar.cjs.js +3 -6
  542. package/toolbar/toolbar.cjs.min.js +1 -1
  543. package/toolbar/toolbar.esm.js +3 -6
  544. package/toolbar/toolbar.esm.min.js +1 -1
  545. package/toolbar/toolbar.js +3 -6
  546. package/toolbar/toolbar.min.js +1 -1
  547. package/tooltip/Tooltip.d.ts +35 -6
  548. package/tooltip/tooltip.cjs.js +17 -4
  549. package/tooltip/tooltip.cjs.min.js +1 -1
  550. package/tooltip/tooltip.esm.js +17 -4
  551. package/tooltip/tooltip.esm.min.js +1 -1
  552. package/tooltip/tooltip.js +413 -400
  553. package/tooltip/tooltip.min.js +1 -1
  554. package/tree/Tree.d.ts +20 -20
  555. package/tree/Tree.vue +1 -0
  556. package/tree/tree.cjs.js +3 -2
  557. package/tree/tree.cjs.min.js +1 -1
  558. package/tree/tree.esm.js +3 -2
  559. package/tree/tree.esm.min.js +1 -1
  560. package/tree/tree.js +3 -2
  561. package/tree/tree.min.js +1 -1
  562. package/treeselect/TreeSelect.d.ts +23 -17
  563. package/treeselect/TreeSelect.vue +2 -2
  564. package/treeselect/treeselect.cjs.js +4 -4
  565. package/treeselect/treeselect.cjs.min.js +1 -1
  566. package/treeselect/treeselect.esm.js +4 -4
  567. package/treeselect/treeselect.esm.min.js +1 -1
  568. package/treeselect/treeselect.js +4 -4
  569. package/treeselect/treeselect.min.js +1 -1
  570. package/treetable/TreeTable.d.ts +21 -21
  571. package/treetable/TreeTable.vue +2 -1
  572. package/treetable/treetable.cjs.js +1 -1
  573. package/treetable/treetable.cjs.min.js +1 -1
  574. package/treetable/treetable.esm.js +1 -1
  575. package/treetable/treetable.esm.min.js +1 -1
  576. package/treetable/treetable.js +1 -1
  577. package/treetable/treetable.min.js +1 -1
  578. package/tristatecheckbox/TriStateCheckbox.d.ts +11 -11
  579. package/usestyle/UseStyle.d.ts +2 -1
  580. package/usestyle/usestyle.cjs.js +20 -7
  581. package/usestyle/usestyle.cjs.min.js +1 -1
  582. package/usestyle/usestyle.esm.js +20 -7
  583. package/usestyle/usestyle.esm.min.js +1 -1
  584. package/usestyle/usestyle.js +20 -7
  585. package/usestyle/usestyle.min.js +1 -1
  586. package/utils/Utils.d.ts +4 -0
  587. package/utils/utils.cjs.js +48 -8
  588. package/utils/utils.cjs.min.js +1 -1
  589. package/utils/utils.esm.js +48 -8
  590. package/utils/utils.esm.min.js +1 -1
  591. package/utils/utils.js +48 -8
  592. package/utils/utils.min.js +1 -1
  593. package/vetur-attributes.json +129 -125
  594. package/vetur-tags.json +1 -0
  595. package/virtualscroller/BaseVirtualScroller.vue +1 -1
  596. package/virtualscroller/VirtualScroller.d.ts +7 -7
  597. package/virtualscroller/virtualscroller.cjs.js +2 -1
  598. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  599. package/virtualscroller/virtualscroller.esm.js +2 -1
  600. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  601. package/virtualscroller/virtualscroller.js +2 -1
  602. package/virtualscroller/virtualscroller.min.js +1 -1
  603. package/web-types.json +160 -127
@@ -1 +1 @@
1
- import{FilterService as e}from"primevue/api";import t from"primevue/icons/check";import i from"primevue/icons/chevrondown";import n from"primevue/icons/search";import o from"primevue/icons/spinner";import l from"primevue/icons/times";import s from"primevue/icons/timescircle";import r from"primevue/overlayeventbus";import a from"primevue/portal";import c from"primevue/ripple";import{UniqueComponentId as u,ZIndexUtils as d,ObjectUtils as p,DomHandler as h,ConnectedOverlayScrollHandler as f}from"primevue/utils";import m from"primevue/virtualscroller";import b from"primevue/basecomponent";import{useStyle as v}from"primevue/usestyle";import{resolveComponent as y,resolveDirective as g,openBlock as O,createElementBlock as x,mergeProps as I,createElementVNode as S,renderSlot as k,Fragment as w,createTextVNode as L,toDisplayString as V,renderList as C,normalizeClass as F,withModifiers as T,createBlock as K,createCommentVNode as M,resolveDynamicComponent as D,createVNode as $,withCtx as E,Transition as P,withDirectives as A,vShow as H,createSlots as j,normalizeProps as R,guardReactiveProps as B}from"vue";var G={root:function(e){return{position:"self"===e.props.appendTo?"relative":void 0}}},z=v("\n.p-multiselect {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n}\n\n.p-multiselect-trigger {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n}\n\n.p-multiselect-label-container {\n overflow: hidden;\n flex: 1 1 auto;\n cursor: pointer;\n}\n\n.p-multiselect-label {\n display: block;\n white-space: nowrap;\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.p-multiselect-label-empty {\n overflow: hidden;\n visibility: hidden;\n}\n\n.p-multiselect-token {\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n}\n\n.p-multiselect-token-icon {\n cursor: pointer;\n}\n\n.p-multiselect .p-multiselect-panel {\n min-width: 100%;\n}\n\n.p-multiselect-items-wrapper {\n overflow: auto;\n}\n\n.p-multiselect-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n\n.p-multiselect-item {\n cursor: pointer;\n display: flex;\n align-items: center;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n}\n\n.p-multiselect-item-group {\n cursor: auto;\n}\n\n.p-multiselect-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.p-multiselect-filter-container {\n position: relative;\n flex: 1 1 auto;\n}\n\n.p-multiselect-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n}\n\n.p-multiselect-filter-container .p-inputtext {\n width: 100%;\n}\n\n.p-multiselect-close {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n overflow: hidden;\n position: relative;\n margin-left: auto;\n}\n\n.p-fluid .p-multiselect {\n display: flex;\n}\n",{name:"multiselect",manual:!0});function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function U(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function _(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?U(Object(i),!0).forEach((function(t){q(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):U(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function q(e,t,i){return(t=W(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function W(e){var t=J(e,"string");return"symbol"===N(t)?t:String(t)}function J(e,t){if("object"!==N(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function Q(e){return ee(e)||Z(e)||Y(e)||X()}function X(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Y(e,t){if(e){if("string"==typeof e)return te(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?te(e,t):void 0}}function Z(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function ee(e){if(Array.isArray(e))return te(e)}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var ie={name:"MultiSelect",extends:{name:"BaseMultiSelect",extends:b,props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:"200px"},placeholder:String,disabled:Boolean,inputId:{type:String,default:null},inputProps:{type:null,default:null},panelClass:{type:String,default:null},panelStyle:{type:null,default:null},panelProps:{type:null,default:null},filterInputProps:{type:null,default:null},closeButtonProps:{type:null,default:null},dataKey:null,filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:"contains"},filterFields:{type:Array,default:null},appendTo:{type:String,default:"body"},display:{type:String,default:"comma"},selectedItemsLabel:{type:String,default:"{0} items selected"},maxSelectedLabels:{type:Number,default:null},selectionLimit:{type:Number,default:null},showToggleAll:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},checkboxIcon:{type:String,default:void 0},closeIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},removeTokenIcon:{type:String,default:void 0},selectAll:{type:Boolean,default:null},resetFilterOnHide:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!0},autoFilterFocus:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},css:{classes:{root:function(e){var t=e.instance,i=e.props;return["p-multiselect p-component p-inputwrapper",{"p-multiselect-chip":"chip"===i.display,"p-disabled":i.disabled,"p-focus":t.focused,"p-inputwrapper-filled":i.modelValue&&i.modelValue.length,"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-overlay-open":t.overlayVisible}]},labelContainer:"p-multiselect-label-container",label:function(e){var t=e.props;return["p-multiselect-label",{"p-placeholder":e.instance.label===t.placeholder,"p-multiselect-label-empty":!(t.placeholder||t.modelValue&&0!==t.modelValue.length)}]},token:"p-multiselect-token",tokenLabel:"p-multiselect-token-label",removeTokenIcon:"p-multiselect-token-icon",trigger:"p-multiselect-trigger",loadingIcon:"p-multiselect-trigger-icon",dropdownIcon:"p-multiselect-trigger-icon",panel:function(e){var t=e.instance;return["p-multiselect-panel p-component",{"p-input-filled":"filled"===t.$primevue.config.inputStyle,"p-ripple-disabled":!1===t.$primevue.config.ripple}]},header:"p-multiselect-header",headerCheckboxContainer:function(e){var t=e.instance;return["p-checkbox p-component",{"p-checkbox-checked":t.allSelected,"p-checkbox-focused":t.headerCheckboxFocused}]},headerCheckbox:function(e){var t=e.instance;return["p-checkbox-box",{"p-highlight":t.allSelected,"p-focus":t.headerCheckboxFocused}]},headerCheckboxIcon:"p-checkbox-icon",filterContainer:"p-multiselect-filter-container",filterInput:"p-multiselect-filter p-inputtext p-component",filterIcon:"p-multiselect-filter-icon",closeButton:"p-multiselect-close p-link",closeIcon:"p-multiselect-close-icon",wrapper:"p-multiselect-items-wrapper",list:"p-multiselect-items p-component",itemGroup:"p-multiselect-item-group",item:function(e){var t=e.instance,i=e.option,n=e.index,o=e.getItemOptions;return["p-multiselect-item",{"p-highlight":t.isSelected(i),"p-focus":t.focusedOptionIndex===t.getOptionIndex(n,o),"p-disabled":t.isOptionDisabled(i)}]},checkboxContainer:"p-checkbox p-component",checkbox:function(e){return["p-checkbox-box",{"p-highlight":e.instance.isSelected(e.option)}]},checkboxIcon:"p-checkbox-icon",emptyMessage:"p-multiselect-empty-message"},inlineStyles:G,loadStyle:z.load},provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","change","focus","blur","before-show","before-hide","show","hide","filter","selectall-change"],outsideClickListener:null,scrollHandler:null,resizeListener:null,overlay:null,list:null,virtualScroller:null,startRangeIndex:-1,searchTimeout:null,searchValue:"",selectOnFocus:!1,focusOnHover:!1,data:function(){return{id:this.$attrs.id,focused:!1,focusedOptionIndex:-1,headerCheckboxFocused:!1,filterValue:null,overlayVisible:!1}},watch:{"$attrs.id":function(e){this.id=e||u()},options:function(){this.autoUpdateModel()}},mounted:function(){this.id=this.id||u(),this.autoUpdateModel()},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(d.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel:function(e){return this.optionLabel?p.resolveFieldData(e,this.optionLabel):e},getOptionValue:function(e){return this.optionValue?p.resolveFieldData(e,this.optionValue):e},getOptionRenderKey:function(e){return this.dataKey?p.resolveFieldData(e,this.dataKey):this.getOptionLabel(e)},getHeaderCheckboxPTOptions:function(e){return this.ptm(e,{context:{selected:this.allSelected,focused:this.headerCheckboxFocused}})},getCheckboxPTOptions:function(e,t,i,n){return this.ptm(n,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(i,t),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return!(!this.maxSelectionLimitReached||this.isSelected(e))||!!this.optionDisabled&&p.resolveFieldData(e,this.optionDisabled)},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return p.resolveFieldData(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return p.resolveFieldData(e,this.optionGroupChildren)},getAriaPosInset:function(e){var t=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter((function(e){return t.isOptionGroup(e)})).length:e)+1},show:function(e){this.$emit("before-show"),this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,e&&h.focus(this.$refs.focusInput)},hide:function(e){var t=this;setTimeout((function(){t.$emit("before-hide"),t.overlayVisible=!1,t.focusedOptionIndex=-1,t.searchValue="",t.resetFilterOnHide&&(t.filterValue=null),e&&h.focus(t.$refs.focusInput)}),0)},onFocus:function(e){this.disabled||(this.focused=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.overlayVisible&&this.scrollInView(this.focusedOptionIndex),this.$emit("focus",e))},onBlur:function(e){this.focused=!1,this.focusedOptionIndex=-1,this.searchValue="",this.$emit("blur",e)},onKeyDown:function(e){var t=this;if(this.disabled)e.preventDefault();else{var i=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(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"Space":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey(e);break;default:if("KeyA"===e.code&&i){var n=this.visibleOptions.filter((function(e){return t.isValidOption(e)})).map((function(e){return t.getOptionValue(e)}));this.updateModel(e,n),e.preventDefault();break}!i&&p.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e),e.preventDefault())}}},onContainerClick:function(e){this.disabled||this.loading||this.overlay&&this.overlay.contains(e.target)||(this.overlayVisible?this.hide(!0):this.show(!0))},onFirstHiddenFocus:function(e){var t=e.relatedTarget===this.$refs.focusInput?h.getFirstFocusableElement(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;h.focus(t)},onLastHiddenFocus:function(e){var t=e.relatedTarget===this.$refs.focusInput?h.getLastFocusableElement(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;h.focus(t)},onCloseClick:function(){this.hide(!0)},onHeaderCheckboxFocus:function(){this.headerCheckboxFocused=!0},onHeaderCheckboxBlur:function(){this.headerCheckboxFocused=!1},onOptionSelect:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!this.disabled&&!this.isOptionDisabled(t)){var l=null;l=this.isSelected(t)?this.modelValue.filter((function(e){return!p.equals(e,i.getOptionValue(t),i.equalityKey)})):[].concat(Q(this.modelValue||[]),[this.getOptionValue(t)]),this.updateModel(e,l),-1!==n&&(this.focusedOptionIndex=n),o&&h.focus(this.$refs.focusInput)}},onOptionMouseMove:function(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onOptionSelectRange:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;if(-1===i&&(i=this.findNearestSelectedOptionIndex(n,!0)),-1===n&&(n=this.findNearestSelectedOptionIndex(i)),-1!==i&&-1!==n){var o=Math.min(i,n),l=Math.max(i,n),s=this.visibleOptions.slice(o,l+1).filter((function(e){return t.isValidOption(e)})).map((function(e){return t.getOptionValue(e)}));this.updateModel(e,s)}},onFilterChange:function(e){var t=e.target.value;this.filterValue=t,this.focusedOptionIndex=-1,this.$emit("filter",{originalEvent:e,value:t}),!this.virtualScrollerDisabled&&this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0)}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible&&this.alignOverlay()},onOverlayClick:function(e){r.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){if("Escape"===e.code)this.onEscapeKey(e)},onArrowDownKey:function(e){var t=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.findFirstFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex,t),this.changeFocusedOptionIndex(e,t),!this.overlayVisible&&this.show(),e.preventDefault()},onArrowUpKey:function(e){if(e.altKey&&!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var t=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.findLastFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,t,this.startRangeIndex),this.changeFocusedOptionIndex(e,t),!this.overlayVisible&&this.show(),e.preventDefault()}},onArrowLeftKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(this.focusedOptionIndex=-1)},onHomeKey:function(e){var t=e.currentTarget;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){t.setSelectionRange(0,e.shiftKey?t.value.length:0),this.focusedOptionIndex=-1}else{var i=e.metaKey||e.ctrlKey,n=this.findFirstOptionIndex();e.shiftKey&&i&&this.onOptionSelectRange(e,n,this.startRangeIndex),this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show()}e.preventDefault()},onEndKey:function(e){var t=e.currentTarget;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){var i=t.value.length;t.setSelectionRange(e.shiftKey?0:i,i),this.focusedOptionIndex=-1}else{var n=e.metaKey||e.ctrlKey,o=this.findLastOptionIndex();e.shiftKey&&n&&this.onOptionSelectRange(e,this.startRangeIndex,o),this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show()}e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.overlayVisible?-1!==this.focusedOptionIndex&&(e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex):this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex])):this.onArrowDownKey(e),e.preventDefault()},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]||(this.overlayVisible&&this.hasFocusableElements()?(h.focus(e.shiftKey?this.$refs.lastHiddenFocusableElementOnOverlay:this.$refs.firstHiddenFocusableElementOnOverlay),e.preventDefault()):(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(this.filter)))},onShiftKey:function(){this.startRangeIndex=this.focusedOptionIndex},onOverlayEnter:function(e){d.set("overlay",e,this.$primevue.config.zIndex.overlay),h.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.scrollInView(),this.autoFilterFocus&&h.focus(this.$refs.filterInput)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave:function(e){d.clear(e)},alignOverlay:function(){"self"===this.appendTo?h.relativePosition(this.overlay,this.$el):(this.overlay.style.minWidth=h.getOuterWidth(this.$el)+"px",h.absolutePosition(this.overlay,this.$el))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.overlayVisible&&e.isOutsideClicked(t)&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new f(this.$refs.container,(function(){e.overlayVisible&&e.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!h.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isOutsideClicked:function(e){return!(this.$el.isSameNode(e.target)||this.$el.contains(e.target)||this.overlay&&this.overlay.contains(e.target))},getLabelByValue:function(e){var t=this,i=(this.optionGroupLabel?this.flatOptions(this.options):this.options||[]).find((function(i){return!t.isOptionGroup(i)&&p.equals(t.getOptionValue(i),e,t.equalityKey)}));return i?this.getOptionLabel(i):null},getSelectedItemsLabel:function(){var e=/{(.*?)}/;return e.test(this.selectedItemsLabel)?this.selectedItemsLabel.replace(this.selectedItemsLabel.match(e)[0],this.modelValue.length+""):this.selectedItemsLabel},onToggleAll:function(e){var t=this;if(null!==this.selectAll)this.$emit("selectall-change",{originalEvent:e,checked:!this.allSelected});else{var i=this.allSelected?[]:this.visibleOptions.filter((function(e){return t.isValidOption(e)})).map((function(e){return t.getOptionValue(e)}));this.updateModel(e,i)}this.headerCheckboxFocused=!0},removeOption:function(e,t){var i=this,n=this.modelValue.filter((function(e){return!p.equals(e,t,i.equalityKey)}));this.updateModel(e,n)},clearFilter:function(){this.filterValue=null},hasFocusableElements:function(){return h.getFocusableElements(this.overlay,':not([data-p-hidden-focusable="true"])').length>0},isOptionMatched:function(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))},isValidOption:function(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected:function(e){var t=this,i=this.getOptionValue(e);return(this.modelValue||[]).some((function(e){return p.equals(e,i,t.equalityKey)}))},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex((function(t){return e.isValidOption(t)}))},findLastOptionIndex:function(){var e=this;return p.findLastIndex(this.visibleOptions,(function(t){return e.isValidOption(t)}))},findNextOptionIndex:function(e){var t=this,i=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((function(e){return t.isValidOption(e)})):-1;return i>-1?i+e+1:e},findPrevOptionIndex:function(e){var t=this,i=e>0?p.findLastIndex(this.visibleOptions.slice(0,e),(function(e){return t.isValidOption(e)})):-1;return i>-1?i:e},findFirstSelectedOptionIndex:function(){var e=this;return this.hasSelectedOption?this.visibleOptions.findIndex((function(t){return e.isValidSelectedOption(t)})):-1},findLastSelectedOptionIndex:function(){var e=this;return this.hasSelectedOption?p.findLastIndex(this.visibleOptions,(function(t){return e.isValidSelectedOption(t)})):-1},findNextSelectedOptionIndex:function(e){var t=this,i=this.hasSelectedOption&&e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((function(e){return t.isValidSelectedOption(e)})):-1;return i>-1?i+e+1:-1},findPrevSelectedOptionIndex:function(e){var t=this,i=this.hasSelectedOption&&e>0?p.findLastIndex(this.visibleOptions.slice(0,e),(function(e){return t.isValidSelectedOption(e)})):-1;return i>-1?i:-1},findNearestSelectedOptionIndex:function(e){var t=-1;return this.hasSelectedOption&&(t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?-1===(t=this.findPrevSelectedOptionIndex(e))?this.findNextSelectedOptionIndex(e):t:-1===(t=this.findNextSelectedOptionIndex(e))?this.findPrevSelectedOptionIndex(e):t),t>-1?t:e},findFirstFocusedOptionIndex:function(){var e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},searchOptions:function(e){var t=this;this.searchValue=(this.searchValue||"")+e.key;var i=-1;-1===(i=-1!==this.focusedOptionIndex?-1===(i=this.visibleOptions.slice(this.focusedOptionIndex).findIndex((function(e){return t.isOptionMatched(e)})))?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex((function(e){return t.isOptionMatched(e)})):i+this.focusedOptionIndex:this.visibleOptions.findIndex((function(e){return t.isOptionMatched(e)})))&&-1===this.focusedOptionIndex&&(i=this.findFirstFocusedOptionIndex()),-1!==i&&this.changeFocusedOptionIndex(e,i),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){t.searchValue="",t.searchTimeout=null}),500)},changeFocusedOptionIndex:function(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView())},scrollInView:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,t=-1!==e?"".concat(this.id,"_").concat(e):this.focusedOptionId,i=h.findSingle(this.list,'li[id="'.concat(t,'"]'));i?i.scrollIntoView&&i.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||this.virtualScroller&&this.virtualScroller.scrollToIndex(-1!==e?e:this.focusedOptionIndex)},autoUpdateModel:function(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption){this.focusedOptionIndex=this.findFirstFocusedOptionIndex();var e=this.getOptionValue(this.visibleOptions[this.focusedOptionIndex]);this.updateModel(null,[e])}},updateModel:function(e,t){this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})},flatOptions:function(e){var t=this;return(e||[]).reduce((function(e,i,n){e.push({optionGroup:i,group:!0,index:n});var o=t.getOptionGroupChildren(i);return o&&o.forEach((function(t){return e.push(t)})),e}),[])},overlayRef:function(e){this.overlay=e},listRef:function(e,t){this.list=e,t&&t(e)},virtualScrollerRef:function(e){this.virtualScroller=e}},computed:{visibleOptions:function(){var t=this,i=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var n=e.filter(i,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var o=[];return(this.options||[]).forEach((function(e){var i=t.getOptionGroupChildren(e).filter((function(e){return n.includes(e)}));i.length>0&&o.push(_(_({},e),{},q({},"string"==typeof t.optionGroupChildren?t.optionGroupChildren:"items",Q(i))))})),this.flatOptions(o)}return n}return i},label:function(){var e;if(this.modelValue&&this.modelValue.length){if(p.isNotEmpty(this.maxSelectedLabels)&&this.modelValue.length>this.maxSelectedLabels)return this.getSelectedItemsLabel();e="";for(var t=0;t<this.modelValue.length;t++)0!==t&&(e+=", "),e+=this.getLabelByValue(this.modelValue[t])}else e=this.placeholder;return e},chipSelectedItems:function(){return p.isNotEmpty(this.maxSelectedLabels)&&this.modelValue&&this.modelValue.length>this.maxSelectedLabels?this.modelValue.slice(0,this.maxSelectedLabels):this.modelValue},allSelected:function(){var e=this;return null!==this.selectAll?this.selectAll:p.isNotEmpty(this.visibleOptions)&&this.visibleOptions.every((function(t){return e.isOptionGroup(t)||e.isOptionDisabled(t)||e.isSelected(t)}))},hasSelectedOption:function(){return p.isNotEmpty(this.modelValue)},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},maxSelectionLimitReached:function(){return this.selectionLimit&&this.modelValue&&this.modelValue.length===this.selectionLimit},filterResultMessageText:function(){return p.isNotEmpty(this.visibleOptions)?this.filterMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||""},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||""},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}",this.modelValue.length):this.emptySelectionMessageText},focusedOptionId:function(){return-1!==this.focusedOptionIndex?"".concat(this.id,"_").concat(this.focusedOptionIndex):null},ariaSetSize:function(){var e=this;return this.visibleOptions.filter((function(t){return!e.isOptionGroup(t)})).length},toggleAllAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria[this.allSelected?"selectAll":"unselectAll"]:void 0},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},directives:{ripple:c},components:{VirtualScroller:m,Portal:a,TimesIcon:l,SearchIcon:n,TimesCircleIcon:s,ChevronDownIcon:i,SpinnerIcon:o,CheckIcon:t}};function ne(e){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(e)}function oe(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function le(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(i),!0).forEach((function(t){se(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):oe(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function se(e,t,i){return(t=re(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function re(e){var t=ae(e,"string");return"symbol"===ne(t)?t:String(t)}function ae(e,t){if("object"!==ne(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ce=["id","disabled","placeholder","tabindex","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],ue=["onClick"],de=["checked","aria-label"],pe=["value","placeholder","aria-owns","aria-activedescendant"],he=["aria-label"],fe=["id"],me=["id"],be=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove","data-p-highlight","data-p-focused","data-p-disabled"];ie.render=function(e,t,i,n,o,l){var s=y("TimesCircleIcon"),r=y("SpinnerIcon"),a=y("VirtualScroller"),c=y("Portal"),u=g("ripple");return O(),x("div",I({ref:"container",class:e.cx("root"),onClick:t[15]||(t[15]=function(){return l.onContainerClick&&l.onContainerClick.apply(l,arguments)})},e.ptm("root"),{"data-pc-name":"multiselect"}),[S("div",I({class:"p-hidden-accessible"},e.ptm("hiddenInputWrapper"),{"data-p-hidden-accessible":!0}),[S("input",I({ref:"focusInput",id:e.inputId,type:"text",readonly:"",disabled:e.disabled,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?l.focusedOptionId:void 0,onFocus:t[0]||(t[0]=function(){return l.onFocus&&l.onFocus.apply(l,arguments)}),onBlur:t[1]||(t[1]=function(){return l.onBlur&&l.onBlur.apply(l,arguments)}),onKeydown:t[2]||(t[2]=function(){return l.onKeyDown&&l.onKeyDown.apply(l,arguments)})},le(le({},e.inputProps),e.ptm("hiddenInput"))),null,16,ce)],16),S("div",I({class:e.cx("labelContainer")},e.ptm("labelContainer")),[S("div",I({class:e.cx("label")},e.ptm("label")),[k(e.$slots,"value",{value:e.modelValue,placeholder:e.placeholder},(function(){return["comma"===e.display?(O(),x(w,{key:0},[L(V(l.label||"empty"),1)],64)):"chip"===e.display?(O(),x(w,{key:1},[(O(!0),x(w,null,C(l.chipSelectedItems,(function(t){return O(),x("div",I({key:l.getLabelByValue(t),class:e.cx("token")},e.ptm("token")),[k(e.$slots,"chip",{value:t},(function(){return[S("span",I({class:e.cx("tokenLabel")},e.ptm("tokenLabel")),V(l.getLabelByValue(t)),17)]})),e.disabled?M("",!0):k(e.$slots,"removetokenicon",{key:0,class:F(e.cx("removeTokenIcon")),onClick:function(e){return l.removeOption(e,t)}},(function(){return[e.removeTokenIcon?(O(),x("span",I({key:0,class:[e.cx("removeTokenIcon"),e.removeTokenIcon],onClick:T((function(e){return l.removeOption(e,t)}),["stop"])},e.ptm("removeTokenIcon")),null,16,ue)):(O(),K(s,I({key:1,class:e.cx("removeTokenIcon"),onClick:T((function(e){return l.removeOption(e,t)}),["stop"])},e.ptm("removeTokenIcon")),null,16,["class","onClick"]))]}))],16)})),128)),e.modelValue&&0!==e.modelValue.length?M("",!0):(O(),x(w,{key:0},[L(V(e.placeholder||"empty"),1)],64))],64)):M("",!0)]}))],16)],16),S("div",I({class:e.cx("trigger")},e.ptm("trigger")),[e.loading?k(e.$slots,"loadingicon",{key:0,class:F(e.cx("loadingIcon"))},(function(){return[e.loadingIcon?(O(),x("span",I({key:0,class:[e.cx("loadingIcon"),"pi-spin",e.loadingIcon],"aria-hidden":"true"},e.ptm("loadingIcon")),null,16)):(O(),K(r,I({key:1,class:e.cx("loadingIcon"),spin:"","aria-hidden":"true"},e.ptm("loadingIcon")),null,16,["class"]))]})):k(e.$slots,"dropdownicon",{key:1,class:F(e.cx("dropdownIcon"))},(function(){return[(O(),K(D(e.dropdownIcon?"span":"ChevronDownIcon"),I({class:[e.cx("dropdownIcon"),e.dropdownIcon],"aria-hidden":"true"},e.ptm("dropdownIcon")),null,16,["class"]))]}))],16),$(c,{appendTo:e.appendTo},{default:E((function(){return[$(P,{name:"p-connected-overlay",onEnter:l.onOverlayEnter,onAfterEnter:l.onOverlayAfterEnter,onLeave:l.onOverlayLeave,onAfterLeave:l.onOverlayAfterLeave},{default:E((function(){return[o.overlayVisible?(O(),x("div",I({key:0,ref:l.overlayRef,style:e.panelStyle,class:[e.cx("panel"),e.panelClass],onClick:t[13]||(t[13]=function(){return l.onOverlayClick&&l.onOverlayClick.apply(l,arguments)}),onKeydown:t[14]||(t[14]=function(){return l.onOverlayKeyDown&&l.onOverlayKeyDown.apply(l,arguments)})},le(le({},e.panelProps),e.ptm("panel"))),[S("span",I({ref:"firstHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[3]||(t[3]=function(){return l.onFirstHiddenFocus&&l.onFirstHiddenFocus.apply(l,arguments)})},e.ptm("hiddenFirstFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16),k(e.$slots,"header",{value:e.modelValue,options:l.visibleOptions}),e.showToggleAll&&null==e.selectionLimit||e.filter?(O(),x("div",I({key:0,class:e.cx("header")},e.ptm("header")),[e.showToggleAll&&null==e.selectionLimit?(O(),x("div",I({key:0,class:e.cx("headerCheckboxContainer"),onClick:t[6]||(t[6]=function(){return l.onToggleAll&&l.onToggleAll.apply(l,arguments)})},e.ptm("headerCheckboxContainer")),[S("div",I({class:"p-hidden-accessible"},e.ptm("hiddenInputWrapper"),{"data-p-hidden-accessible":!0}),[S("input",I({type:"checkbox",readonly:"",checked:l.allSelected,"aria-label":l.toggleAllAriaLabel,onFocus:t[4]||(t[4]=function(){return l.onHeaderCheckboxFocus&&l.onHeaderCheckboxFocus.apply(l,arguments)}),onBlur:t[5]||(t[5]=function(){return l.onHeaderCheckboxBlur&&l.onHeaderCheckboxBlur.apply(l,arguments)})},e.ptm("headerCheckbox")),null,16,de)],16),S("div",I({class:e.cx("headerCheckbox")},l.getHeaderCheckboxPTOptions("headerCheckbox")),[k(e.$slots,"headercheckboxicon",{allSelected:l.allSelected,class:F(e.cx("headerCheckboxIcon"))},(function(){return[A((O(),K(D(e.checkboxIcon?"span":"CheckIcon"),I({class:[e.cx("headerCheckboxIcon"),se({},e.checkboxIcon,l.allSelected)]},l.getHeaderCheckboxPTOptions("headerCheckboxIcon")),null,16,["class"])),[[H,l.allSelected]])]}))],16)],16)):M("",!0),e.filter?(O(),x("div",I({key:1,class:e.cx("filterContainer")},e.ptm("filterContainer")),[S("input",I({ref:"filterInput",type:"text",value:o.filterValue,onVnodeMounted:t[7]||(t[7]=function(){return l.onFilterUpdated&&l.onFilterUpdated.apply(l,arguments)}),class:e.cx("filterInput"),placeholder:e.filterPlaceholder,role:"searchbox",autocomplete:"off","aria-owns":o.id+"_list","aria-activedescendant":l.focusedOptionId,onKeydown:t[8]||(t[8]=function(){return l.onFilterKeyDown&&l.onFilterKeyDown.apply(l,arguments)}),onBlur:t[9]||(t[9]=function(){return l.onFilterBlur&&l.onFilterBlur.apply(l,arguments)}),onInput:t[10]||(t[10]=function(){return l.onFilterChange&&l.onFilterChange.apply(l,arguments)})},le(le({},e.filterInputProps),e.ptm("filterInput"))),null,16,pe),k(e.$slots,"filtericon",{class:F(e.cx("filterIcon"))},(function(){return[(O(),K(D(e.filterIcon?"span":"SearchIcon"),I({class:[e.cx("filterIcon"),e.filterIcon]},e.ptm("filterIcon")),null,16,["class"]))]}))],16)):M("",!0),e.filter?(O(),x("span",I({key:2,role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenFilterResult"),{"data-p-hidden-accessible":!0}),V(l.filterResultMessageText),17)):M("",!0),A((O(),x("button",I({class:e.cx("closeButton"),"aria-label":l.closeAriaLabel,onClick:t[11]||(t[11]=function(){return l.onCloseClick&&l.onCloseClick.apply(l,arguments)}),type:"button"},le(le({},e.closeButtonProps),e.ptm("closeButton"))),[k(e.$slots,"closeicon",{class:F(e.cx("closeIcon"))},(function(){return[(O(),K(D(e.closeIcon?"span":"TimesIcon"),I({class:[e.cx("closeIcon"),e.closeIcon]},e.ptm("closeIcon")),null,16,["class"]))]}))],16,he)),[[u]])],16)):M("",!0),S("div",I({class:e.cx("wrapper"),style:{"max-height":l.virtualScrollerDisabled?e.scrollHeight:""}},e.ptm("wrapper")),[$(a,I({ref:l.virtualScrollerRef},e.virtualScrollerOptions,{items:l.visibleOptions,style:{height:e.scrollHeight},tabindex:-1,disabled:l.virtualScrollerDisabled,pt:e.ptm("virtualScroller")}),j({content:E((function(t){var i=t.styleClass,n=t.contentRef,s=t.items,r=t.getItemOptions,a=t.contentStyle,c=t.itemSize;return[S("ul",I({ref:function(e){return l.listRef(e,n)},id:o.id+"_list",class:[e.cx("list"),i],style:a,role:"listbox","aria-multiselectable":"true"},e.ptm("list")),[(O(!0),x(w,null,C(s,(function(t,i){return O(),x(w,{key:l.getOptionRenderKey(t,l.getOptionIndex(i,r))},[l.isOptionGroup(t)?(O(),x("li",I({key:0,id:o.id+"_"+l.getOptionIndex(i,r),style:{height:c?c+"px":void 0},class:e.cx("itemGroup"),role:"option"},e.ptm("itemGroup")),[k(e.$slots,"optiongroup",{option:t.optionGroup,index:l.getOptionIndex(i,r)},(function(){return[L(V(l.getOptionGroupLabel(t.optionGroup)),1)]}))],16,me)):A((O(),x("li",I({key:1,id:o.id+"_"+l.getOptionIndex(i,r),style:{height:c?c+"px":void 0},class:e.cx("item",{option:t,index:i,getItemOptions:r}),role:"option","aria-label":l.getOptionLabel(t),"aria-selected":l.isSelected(t),"aria-disabled":l.isOptionDisabled(t),"aria-setsize":l.ariaSetSize,"aria-posinset":l.getAriaPosInset(l.getOptionIndex(i,r)),onClick:function(e){return l.onOptionSelect(e,t,l.getOptionIndex(i,r),!0)},onMousemove:function(e){return l.onOptionMouseMove(e,l.getOptionIndex(i,r))}},l.getCheckboxPTOptions(t,r,i,"item"),{"data-p-highlight":l.isSelected(t),"data-p-focused":o.focusedOptionIndex===l.getOptionIndex(i,r),"data-p-disabled":l.isOptionDisabled(t)}),[S("div",I({class:e.cx("checkboxContainer")},e.ptm("checkboxContainer")),[S("div",I({class:e.cx("checkbox",{option:t})},l.getCheckboxPTOptions(t,r,i,"checkbox")),[k(e.$slots,"itemcheckboxicon",{selected:l.isSelected(t),class:F(e.cx("checkboxIcon"))},(function(){return[A((O(),K(D(e.checkboxIcon?"span":"CheckIcon"),I({class:[e.cx("checkboxIcon"),se({},e.checkboxIcon,l.isSelected(t))]},l.getCheckboxPTOptions(t,r,i,"checkboxIcon")),null,16,["class"])),[[H,l.isSelected(t)]])]}))],16)],16),k(e.$slots,"option",{option:t,index:l.getOptionIndex(i,r)},(function(){return[S("span",R(B(e.ptm("option"))),V(l.getOptionLabel(t)),17)]}))],16,be)),[[u]])],64)})),128)),o.filterValue&&(!s||s&&0===s.length)?(O(),x("li",I({key:0,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage")),[k(e.$slots,"emptyfilter",{},(function(){return[L(V(l.emptyFilterMessageText),1)]}))],16)):!e.options||e.options&&0===e.options.length?(O(),x("li",I({key:1,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage")),[k(e.$slots,"empty",{},(function(){return[L(V(l.emptyMessageText),1)]}))],16)):M("",!0)],16,fe)]})),_:2},[e.$slots.loader?{name:"loader",fn:E((function(t){return[k(e.$slots,"loader",{options:t.options})]})),key:"0"}:void 0]),1040,["items","style","disabled","pt"])],16),k(e.$slots,"footer",{value:e.modelValue,options:l.visibleOptions}),!e.options||e.options&&0===e.options.length?(O(),x("span",I({key:1,role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenEmptyMessage"),{"data-p-hidden-accessible":!0}),V(l.emptyMessageText),17)):M("",!0),S("span",I({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),V(l.selectedMessageText),17),S("span",I({ref:"lastHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[12]||(t[12]=function(){return l.onLastHiddenFocus&&l.onLastHiddenFocus.apply(l,arguments)})},e.ptm("hiddenLastFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16)],16)):M("",!0)]})),_:3},8,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:3},8,["appendTo"])],16)};export{ie as default};
1
+ import{FilterService as e}from"primevue/api";import t from"primevue/icons/check";import i from"primevue/icons/chevrondown";import n from"primevue/icons/search";import o from"primevue/icons/spinner";import l from"primevue/icons/times";import s from"primevue/icons/timescircle";import r from"primevue/overlayeventbus";import a from"primevue/portal";import c from"primevue/ripple";import{UniqueComponentId as u,ZIndexUtils as d,ObjectUtils as p,DomHandler as h,ConnectedOverlayScrollHandler as f}from"primevue/utils";import m from"primevue/virtualscroller";import b from"primevue/basecomponent";import{useStyle as v}from"primevue/usestyle";import{resolveComponent as y,resolveDirective as g,openBlock as O,createElementBlock as x,mergeProps as I,createElementVNode as S,renderSlot as k,Fragment as w,createTextVNode as L,toDisplayString as V,renderList as C,normalizeClass as F,withModifiers as T,createBlock as K,createCommentVNode as M,resolveDynamicComponent as D,createVNode as $,withCtx as E,Transition as P,withDirectives as A,vShow as H,createSlots as j,normalizeProps as R,guardReactiveProps as B}from"vue";var G={root:function(e){return{position:"self"===e.props.appendTo?"relative":void 0}}},z=v("\n.p-multiselect {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n}\n\n.p-multiselect-trigger {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n}\n\n.p-multiselect-label-container {\n overflow: hidden;\n flex: 1 1 auto;\n cursor: pointer;\n}\n\n.p-multiselect-label {\n display: block;\n white-space: nowrap;\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.p-multiselect-label-empty {\n overflow: hidden;\n visibility: hidden;\n}\n\n.p-multiselect-token {\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n}\n\n.p-multiselect-token-icon {\n cursor: pointer;\n}\n\n.p-multiselect .p-multiselect-panel {\n min-width: 100%;\n}\n\n.p-multiselect-items-wrapper {\n overflow: auto;\n}\n\n.p-multiselect-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n\n.p-multiselect-item {\n cursor: pointer;\n display: flex;\n align-items: center;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n}\n\n.p-multiselect-item-group {\n cursor: auto;\n}\n\n.p-multiselect-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.p-multiselect-filter-container {\n position: relative;\n flex: 1 1 auto;\n}\n\n.p-multiselect-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n}\n\n.p-multiselect-filter-container .p-inputtext {\n width: 100%;\n}\n\n.p-multiselect-close {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n overflow: hidden;\n position: relative;\n margin-left: auto;\n}\n\n.p-fluid .p-multiselect {\n display: flex;\n}\n",{name:"multiselect",manual:!0});function N(e){return N="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},N(e)}function U(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function _(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?U(Object(i),!0).forEach((function(t){q(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):U(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function q(e,t,i){return(t=W(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function W(e){var t=J(e,"string");return"symbol"===N(t)?t:String(t)}function J(e,t){if("object"!==N(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==N(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function Q(e){return ee(e)||Z(e)||Y(e)||X()}function X(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function Y(e,t){if(e){if("string"==typeof e)return te(e,t);var i=Object.prototype.toString.call(e).slice(8,-1);return"Object"===i&&e.constructor&&(i=e.constructor.name),"Map"===i||"Set"===i?Array.from(e):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?te(e,t):void 0}}function Z(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function ee(e){if(Array.isArray(e))return te(e)}function te(e,t){(null==t||t>e.length)&&(t=e.length);for(var i=0,n=new Array(t);i<t;i++)n[i]=e[i];return n}var ie={name:"MultiSelect",extends:{name:"BaseMultiSelect",extends:b,props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:"200px"},placeholder:String,disabled:Boolean,inputId:{type:String,default:null},inputProps:{type:null,default:null},panelClass:{type:String,default:null},panelStyle:{type:null,default:null},panelProps:{type:null,default:null},filterInputProps:{type:null,default:null},closeButtonProps:{type:null,default:null},dataKey:null,filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:"contains"},filterFields:{type:Array,default:null},appendTo:{type:String,default:"body"},display:{type:String,default:"comma"},selectedItemsLabel:{type:String,default:"{0} items selected"},maxSelectedLabels:{type:Number,default:null},selectionLimit:{type:Number,default:null},showToggleAll:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},checkboxIcon:{type:String,default:void 0},closeIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},removeTokenIcon:{type:String,default:void 0},selectAll:{type:Boolean,default:null},resetFilterOnHide:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!0},autoFilterFocus:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},css:{classes:{root:function(e){var t=e.instance,i=e.props;return["p-multiselect p-component p-inputwrapper",{"p-multiselect-chip":"chip"===i.display,"p-disabled":i.disabled,"p-focus":t.focused,"p-inputwrapper-filled":i.modelValue&&i.modelValue.length,"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-overlay-open":t.overlayVisible}]},labelContainer:"p-multiselect-label-container",label:function(e){var t=e.props;return["p-multiselect-label",{"p-placeholder":e.instance.label===t.placeholder,"p-multiselect-label-empty":!(t.placeholder||t.modelValue&&0!==t.modelValue.length)}]},token:"p-multiselect-token",tokenLabel:"p-multiselect-token-label",removeTokenIcon:"p-multiselect-token-icon",trigger:"p-multiselect-trigger",loadingIcon:"p-multiselect-trigger-icon",dropdownIcon:"p-multiselect-trigger-icon",panel:function(e){var t=e.instance;return["p-multiselect-panel p-component",{"p-input-filled":"filled"===t.$primevue.config.inputStyle,"p-ripple-disabled":!1===t.$primevue.config.ripple}]},header:"p-multiselect-header",headerCheckboxContainer:function(e){var t=e.instance;return["p-checkbox p-component",{"p-checkbox-checked":t.allSelected,"p-checkbox-focused":t.headerCheckboxFocused}]},headerCheckbox:function(e){var t=e.instance;return["p-checkbox-box",{"p-highlight":t.allSelected,"p-focus":t.headerCheckboxFocused}]},headerCheckboxIcon:"p-checkbox-icon",filterContainer:"p-multiselect-filter-container",filterInput:"p-multiselect-filter p-inputtext p-component",filterIcon:"p-multiselect-filter-icon",closeButton:"p-multiselect-close p-link",closeIcon:"p-multiselect-close-icon",wrapper:"p-multiselect-items-wrapper",list:"p-multiselect-items p-component",itemGroup:"p-multiselect-item-group",item:function(e){var t=e.instance,i=e.option,n=e.index,o=e.getItemOptions;return["p-multiselect-item",{"p-highlight":t.isSelected(i),"p-focus":t.focusedOptionIndex===t.getOptionIndex(n,o),"p-disabled":t.isOptionDisabled(i)}]},checkboxContainer:"p-checkbox p-component",checkbox:function(e){return["p-checkbox-box",{"p-highlight":e.instance.isSelected(e.option)}]},checkboxIcon:"p-checkbox-icon",emptyMessage:"p-multiselect-empty-message"},inlineStyles:G,loadStyle:z.load},provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","change","focus","blur","before-show","before-hide","show","hide","filter","selectall-change"],outsideClickListener:null,scrollHandler:null,resizeListener:null,overlay:null,list:null,virtualScroller:null,startRangeIndex:-1,searchTimeout:null,searchValue:"",selectOnFocus:!1,focusOnHover:!1,data:function(){return{id:this.$attrs.id,focused:!1,focusedOptionIndex:-1,headerCheckboxFocused:!1,filterValue:null,overlayVisible:!1}},watch:{"$attrs.id":function(e){this.id=e||u()},options:function(){this.autoUpdateModel()}},mounted:function(){this.id=this.id||u(),this.autoUpdateModel()},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(d.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel:function(e){return this.optionLabel?p.resolveFieldData(e,this.optionLabel):e},getOptionValue:function(e){return this.optionValue?p.resolveFieldData(e,this.optionValue):e},getOptionRenderKey:function(e){return this.dataKey?p.resolveFieldData(e,this.dataKey):this.getOptionLabel(e)},getHeaderCheckboxPTOptions:function(e){return this.ptm(e,{context:{selected:this.allSelected,focused:this.headerCheckboxFocused}})},getCheckboxPTOptions:function(e,t,i,n){return this.ptm(n,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(i,t),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return!(!this.maxSelectionLimitReached||this.isSelected(e))||!!this.optionDisabled&&p.resolveFieldData(e,this.optionDisabled)},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return p.resolveFieldData(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return p.resolveFieldData(e,this.optionGroupChildren)},getAriaPosInset:function(e){var t=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter((function(e){return t.isOptionGroup(e)})).length:e)+1},show:function(e){this.$emit("before-show"),this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,e&&h.focus(this.$refs.focusInput)},hide:function(e){var t=this;setTimeout((function(){t.$emit("before-hide"),t.overlayVisible=!1,t.focusedOptionIndex=-1,t.searchValue="",t.resetFilterOnHide&&(t.filterValue=null),e&&h.focus(t.$refs.focusInput)}),0)},onFocus:function(e){this.disabled||(this.focused=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.overlayVisible&&this.scrollInView(this.focusedOptionIndex),this.$emit("focus",e))},onBlur:function(e){this.focused=!1,this.focusedOptionIndex=-1,this.searchValue="",this.$emit("blur",e)},onKeyDown:function(e){var t=this;if(this.disabled)e.preventDefault();else{var i=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(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"Space":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey(e);break;default:if("KeyA"===e.code&&i){var n=this.visibleOptions.filter((function(e){return t.isValidOption(e)})).map((function(e){return t.getOptionValue(e)}));this.updateModel(e,n),e.preventDefault();break}!i&&p.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e),e.preventDefault())}}},onContainerClick:function(e){this.disabled||this.loading||this.overlay&&this.overlay.contains(e.target)||(this.overlayVisible?this.hide(!0):this.show(!0))},onFirstHiddenFocus:function(e){var t=e.relatedTarget===this.$refs.focusInput?h.getFirstFocusableElement(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;h.focus(t)},onLastHiddenFocus:function(e){var t=e.relatedTarget===this.$refs.focusInput?h.getLastFocusableElement(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;h.focus(t)},onCloseClick:function(){this.hide(!0)},onHeaderCheckboxFocus:function(){this.headerCheckboxFocused=!0},onHeaderCheckboxBlur:function(){this.headerCheckboxFocused=!1},onOptionSelect:function(e,t){var i=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!this.disabled&&!this.isOptionDisabled(t)){var l=null;l=this.isSelected(t)?this.modelValue.filter((function(e){return!p.equals(e,i.getOptionValue(t),i.equalityKey)})):[].concat(Q(this.modelValue||[]),[this.getOptionValue(t)]),this.updateModel(e,l),-1!==n&&(this.focusedOptionIndex=n),o&&h.focus(this.$refs.focusInput)}},onOptionMouseMove:function(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onOptionSelectRange:function(e){var t=this,i=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;if(-1===i&&(i=this.findNearestSelectedOptionIndex(n,!0)),-1===n&&(n=this.findNearestSelectedOptionIndex(i)),-1!==i&&-1!==n){var o=Math.min(i,n),l=Math.max(i,n),s=this.visibleOptions.slice(o,l+1).filter((function(e){return t.isValidOption(e)})).map((function(e){return t.getOptionValue(e)}));this.updateModel(e,s)}},onFilterChange:function(e){var t=e.target.value;this.filterValue=t,this.focusedOptionIndex=-1,this.$emit("filter",{originalEvent:e,value:t}),!this.virtualScrollerDisabled&&this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0)}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible&&this.alignOverlay()},onOverlayClick:function(e){r.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){if("Escape"===e.code)this.onEscapeKey(e)},onArrowDownKey:function(e){var t=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.findFirstFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex,t),this.changeFocusedOptionIndex(e,t),!this.overlayVisible&&this.show(),e.preventDefault()},onArrowUpKey:function(e){if(e.altKey&&!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var t=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.findLastFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,t,this.startRangeIndex),this.changeFocusedOptionIndex(e,t),!this.overlayVisible&&this.show(),e.preventDefault()}},onArrowLeftKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(this.focusedOptionIndex=-1)},onHomeKey:function(e){var t=e.currentTarget;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){t.setSelectionRange(0,e.shiftKey?t.value.length:0),this.focusedOptionIndex=-1}else{var i=e.metaKey||e.ctrlKey,n=this.findFirstOptionIndex();e.shiftKey&&i&&this.onOptionSelectRange(e,n,this.startRangeIndex),this.changeFocusedOptionIndex(e,n),!this.overlayVisible&&this.show()}e.preventDefault()},onEndKey:function(e){var t=e.currentTarget;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){var i=t.value.length;t.setSelectionRange(e.shiftKey?0:i,i),this.focusedOptionIndex=-1}else{var n=e.metaKey||e.ctrlKey,o=this.findLastOptionIndex();e.shiftKey&&n&&this.onOptionSelectRange(e,this.startRangeIndex,o),this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show()}e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.overlayVisible?-1!==this.focusedOptionIndex&&(e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex):this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex])):this.onArrowDownKey(e),e.preventDefault()},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]||(this.overlayVisible&&this.hasFocusableElements()?(h.focus(e.shiftKey?this.$refs.lastHiddenFocusableElementOnOverlay:this.$refs.firstHiddenFocusableElementOnOverlay),e.preventDefault()):(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(this.filter)))},onShiftKey:function(){this.startRangeIndex=this.focusedOptionIndex},onOverlayEnter:function(e){d.set("overlay",e,this.$primevue.config.zIndex.overlay),h.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.scrollInView(),this.autoFilterFocus&&h.focus(this.$refs.filterInput)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave:function(e){d.clear(e)},alignOverlay:function(){"self"===this.appendTo?h.relativePosition(this.overlay,this.$el):(this.overlay.style.minWidth=h.getOuterWidth(this.$el)+"px",h.absolutePosition(this.overlay,this.$el))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.overlayVisible&&e.isOutsideClicked(t)&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new f(this.$refs.container,(function(){e.overlayVisible&&e.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!h.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isOutsideClicked:function(e){return!(this.$el.isSameNode(e.target)||this.$el.contains(e.target)||this.overlay&&this.overlay.contains(e.target))},getLabelByValue:function(e){var t=this,i=(this.optionGroupLabel?this.flatOptions(this.options):this.options||[]).find((function(i){return!t.isOptionGroup(i)&&p.equals(t.getOptionValue(i),e,t.equalityKey)}));return i?this.getOptionLabel(i):null},getSelectedItemsLabel:function(){var e=/{(.*?)}/;return e.test(this.selectedItemsLabel)?this.selectedItemsLabel.replace(this.selectedItemsLabel.match(e)[0],this.modelValue.length+""):this.selectedItemsLabel},onToggleAll:function(e){var t=this;if(null!==this.selectAll)this.$emit("selectall-change",{originalEvent:e,checked:!this.allSelected});else{var i=this.allSelected?[]:this.visibleOptions.filter((function(e){return t.isValidOption(e)})).map((function(e){return t.getOptionValue(e)}));this.updateModel(e,i)}this.headerCheckboxFocused=!0},removeOption:function(e,t){var i=this,n=this.modelValue.filter((function(e){return!p.equals(e,t,i.equalityKey)}));this.updateModel(e,n)},clearFilter:function(){this.filterValue=null},hasFocusableElements:function(){return h.getFocusableElements(this.overlay,':not([data-p-hidden-focusable="true"])').length>0},isOptionMatched:function(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))},isValidOption:function(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected:function(e){var t=this,i=this.getOptionValue(e);return(this.modelValue||[]).some((function(e){return p.equals(e,i,t.equalityKey)}))},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex((function(t){return e.isValidOption(t)}))},findLastOptionIndex:function(){var e=this;return p.findLastIndex(this.visibleOptions,(function(t){return e.isValidOption(t)}))},findNextOptionIndex:function(e){var t=this,i=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((function(e){return t.isValidOption(e)})):-1;return i>-1?i+e+1:e},findPrevOptionIndex:function(e){var t=this,i=e>0?p.findLastIndex(this.visibleOptions.slice(0,e),(function(e){return t.isValidOption(e)})):-1;return i>-1?i:e},findFirstSelectedOptionIndex:function(){var e=this;return this.hasSelectedOption?this.visibleOptions.findIndex((function(t){return e.isValidSelectedOption(t)})):-1},findLastSelectedOptionIndex:function(){var e=this;return this.hasSelectedOption?p.findLastIndex(this.visibleOptions,(function(t){return e.isValidSelectedOption(t)})):-1},findNextSelectedOptionIndex:function(e){var t=this,i=this.hasSelectedOption&&e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((function(e){return t.isValidSelectedOption(e)})):-1;return i>-1?i+e+1:-1},findPrevSelectedOptionIndex:function(e){var t=this,i=this.hasSelectedOption&&e>0?p.findLastIndex(this.visibleOptions.slice(0,e),(function(e){return t.isValidSelectedOption(e)})):-1;return i>-1?i:-1},findNearestSelectedOptionIndex:function(e){var t=-1;return this.hasSelectedOption&&(t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?-1===(t=this.findPrevSelectedOptionIndex(e))?this.findNextSelectedOptionIndex(e):t:-1===(t=this.findNextSelectedOptionIndex(e))?this.findPrevSelectedOptionIndex(e):t),t>-1?t:e},findFirstFocusedOptionIndex:function(){var e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},searchOptions:function(e){var t=this;this.searchValue=(this.searchValue||"")+e.key;var i=-1;-1===(i=-1!==this.focusedOptionIndex?-1===(i=this.visibleOptions.slice(this.focusedOptionIndex).findIndex((function(e){return t.isOptionMatched(e)})))?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex((function(e){return t.isOptionMatched(e)})):i+this.focusedOptionIndex:this.visibleOptions.findIndex((function(e){return t.isOptionMatched(e)})))&&-1===this.focusedOptionIndex&&(i=this.findFirstFocusedOptionIndex()),-1!==i&&this.changeFocusedOptionIndex(e,i),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){t.searchValue="",t.searchTimeout=null}),500)},changeFocusedOptionIndex:function(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView())},scrollInView:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,t=-1!==e?"".concat(this.id,"_").concat(e):this.focusedOptionId,i=h.findSingle(this.list,'li[id="'.concat(t,'"]'));i?i.scrollIntoView&&i.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||this.virtualScroller&&this.virtualScroller.scrollToIndex(-1!==e?e:this.focusedOptionIndex)},autoUpdateModel:function(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption){this.focusedOptionIndex=this.findFirstFocusedOptionIndex();var e=this.getOptionValue(this.visibleOptions[this.focusedOptionIndex]);this.updateModel(null,[e])}},updateModel:function(e,t){this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})},flatOptions:function(e){var t=this;return(e||[]).reduce((function(e,i,n){e.push({optionGroup:i,group:!0,index:n});var o=t.getOptionGroupChildren(i);return o&&o.forEach((function(t){return e.push(t)})),e}),[])},overlayRef:function(e){this.overlay=e},listRef:function(e,t){this.list=e,t&&t(e)},virtualScrollerRef:function(e){this.virtualScroller=e}},computed:{visibleOptions:function(){var t=this,i=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var n=e.filter(i,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var o=[];return(this.options||[]).forEach((function(e){var i=t.getOptionGroupChildren(e).filter((function(e){return n.includes(e)}));i.length>0&&o.push(_(_({},e),{},q({},"string"==typeof t.optionGroupChildren?t.optionGroupChildren:"items",Q(i))))})),this.flatOptions(o)}return n}return i},label:function(){var e;if(this.modelValue&&this.modelValue.length){if(p.isNotEmpty(this.maxSelectedLabels)&&this.modelValue.length>this.maxSelectedLabels)return this.getSelectedItemsLabel();e="";for(var t=0;t<this.modelValue.length;t++)0!==t&&(e+=", "),e+=this.getLabelByValue(this.modelValue[t])}else e=this.placeholder;return e},chipSelectedItems:function(){return p.isNotEmpty(this.maxSelectedLabels)&&this.modelValue&&this.modelValue.length>this.maxSelectedLabels?this.modelValue.slice(0,this.maxSelectedLabels):this.modelValue},allSelected:function(){var e=this;return null!==this.selectAll?this.selectAll:p.isNotEmpty(this.visibleOptions)&&this.visibleOptions.every((function(t){return e.isOptionGroup(t)||e.isOptionDisabled(t)||e.isSelected(t)}))},hasSelectedOption:function(){return p.isNotEmpty(this.modelValue)},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},maxSelectionLimitReached:function(){return this.selectionLimit&&this.modelValue&&this.modelValue.length===this.selectionLimit},filterResultMessageText:function(){return p.isNotEmpty(this.visibleOptions)?this.filterMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||""},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||""},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}",this.modelValue.length):this.emptySelectionMessageText},focusedOptionId:function(){return-1!==this.focusedOptionIndex?"".concat(this.id,"_").concat(this.focusedOptionIndex):null},ariaSetSize:function(){var e=this;return this.visibleOptions.filter((function(t){return!e.isOptionGroup(t)})).length},toggleAllAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria[this.allSelected?"selectAll":"unselectAll"]:void 0},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},directives:{ripple:c},components:{VirtualScroller:m,Portal:a,TimesIcon:l,SearchIcon:n,TimesCircleIcon:s,ChevronDownIcon:i,SpinnerIcon:o,CheckIcon:t}};function ne(e){return ne="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ne(e)}function oe(e,t){var i=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),i.push.apply(i,n)}return i}function le(e){for(var t=1;t<arguments.length;t++){var i=null!=arguments[t]?arguments[t]:{};t%2?oe(Object(i),!0).forEach((function(t){se(e,t,i[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(i)):oe(Object(i)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(i,t))}))}return e}function se(e,t,i){return(t=re(t))in e?Object.defineProperty(e,t,{value:i,enumerable:!0,configurable:!0,writable:!0}):e[t]=i,e}function re(e){var t=ae(e,"string");return"symbol"===ne(t)?t:String(t)}function ae(e,t){if("object"!==ne(e)||null===e)return e;var i=e[Symbol.toPrimitive];if(void 0!==i){var n=i.call(e,t||"default");if("object"!==ne(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var ce=["id","disabled","placeholder","tabindex","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],ue=["onClick"],de=["checked","aria-label"],pe=["value","placeholder","aria-owns","aria-activedescendant"],he=["aria-label"],fe=["id"],me=["id"],be=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove","data-p-highlight","data-p-focused","data-p-disabled"];ie.render=function(e,t,i,n,o,l){var s=y("TimesCircleIcon"),r=y("SpinnerIcon"),a=y("VirtualScroller"),c=y("Portal"),u=g("ripple");return O(),x("div",I({ref:"container",class:e.cx("root"),onClick:t[15]||(t[15]=function(){return l.onContainerClick&&l.onContainerClick.apply(l,arguments)})},e.ptm("root"),{"data-pc-name":"multiselect"}),[S("div",I({class:"p-hidden-accessible"},e.ptm("hiddenInputWrapper"),{"data-p-hidden-accessible":!0}),[S("input",I({ref:"focusInput",id:e.inputId,type:"text",readonly:"",disabled:e.disabled,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?l.focusedOptionId:void 0,onFocus:t[0]||(t[0]=function(){return l.onFocus&&l.onFocus.apply(l,arguments)}),onBlur:t[1]||(t[1]=function(){return l.onBlur&&l.onBlur.apply(l,arguments)}),onKeydown:t[2]||(t[2]=function(){return l.onKeyDown&&l.onKeyDown.apply(l,arguments)})},le(le({},e.inputProps),e.ptm("hiddenInput"))),null,16,ce)],16),S("div",I({class:e.cx("labelContainer")},e.ptm("labelContainer")),[S("div",I({class:e.cx("label")},e.ptm("label")),[k(e.$slots,"value",{value:e.modelValue,placeholder:e.placeholder},(function(){return["comma"===e.display?(O(),x(w,{key:0},[L(V(l.label||"empty"),1)],64)):"chip"===e.display?(O(),x(w,{key:1},[(O(!0),x(w,null,C(l.chipSelectedItems,(function(t){return O(),x("div",I({key:l.getLabelByValue(t),class:e.cx("token")},e.ptm("token")),[k(e.$slots,"chip",{value:t},(function(){return[S("span",I({class:e.cx("tokenLabel")},e.ptm("tokenLabel")),V(l.getLabelByValue(t)),17)]})),e.disabled?M("",!0):k(e.$slots,"removetokenicon",{key:0,class:F(e.cx("removeTokenIcon")),onClick:function(e){return l.removeOption(e,t)}},(function(){return[e.removeTokenIcon?(O(),x("span",I({key:0,class:[e.cx("removeTokenIcon"),e.removeTokenIcon],onClick:T((function(e){return l.removeOption(e,t)}),["stop"])},e.ptm("removeTokenIcon")),null,16,ue)):(O(),K(s,I({key:1,class:e.cx("removeTokenIcon"),onClick:T((function(e){return l.removeOption(e,t)}),["stop"])},e.ptm("removeTokenIcon")),null,16,["class","onClick"]))]}))],16)})),128)),e.modelValue&&0!==e.modelValue.length?M("",!0):(O(),x(w,{key:0},[L(V(e.placeholder||"empty"),1)],64))],64)):M("",!0)]}))],16)],16),S("div",I({class:e.cx("trigger")},e.ptm("trigger")),[e.loading?k(e.$slots,"loadingicon",{key:0,class:F(e.cx("loadingIcon"))},(function(){return[e.loadingIcon?(O(),x("span",I({key:0,class:[e.cx("loadingIcon"),"pi-spin",e.loadingIcon],"aria-hidden":"true"},e.ptm("loadingIcon")),null,16)):(O(),K(r,I({key:1,class:e.cx("loadingIcon"),spin:"","aria-hidden":"true"},e.ptm("loadingIcon")),null,16,["class"]))]})):k(e.$slots,"dropdownicon",{key:1,class:F(e.cx("dropdownIcon"))},(function(){return[(O(),K(D(e.dropdownIcon?"span":"ChevronDownIcon"),I({class:[e.cx("dropdownIcon"),e.dropdownIcon],"aria-hidden":"true"},e.ptm("dropdownIcon")),null,16,["class"]))]}))],16),$(c,{appendTo:e.appendTo},{default:E((function(){return[$(P,I({name:"p-connected-overlay",onEnter:l.onOverlayEnter,onAfterEnter:l.onOverlayAfterEnter,onLeave:l.onOverlayLeave,onAfterLeave:l.onOverlayAfterLeave},e.ptm("transition")),{default:E((function(){return[o.overlayVisible?(O(),x("div",I({key:0,ref:l.overlayRef,style:e.panelStyle,class:[e.cx("panel"),e.panelClass],onClick:t[13]||(t[13]=function(){return l.onOverlayClick&&l.onOverlayClick.apply(l,arguments)}),onKeydown:t[14]||(t[14]=function(){return l.onOverlayKeyDown&&l.onOverlayKeyDown.apply(l,arguments)})},le(le({},e.panelProps),e.ptm("panel"))),[S("span",I({ref:"firstHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[3]||(t[3]=function(){return l.onFirstHiddenFocus&&l.onFirstHiddenFocus.apply(l,arguments)})},e.ptm("hiddenFirstFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16),k(e.$slots,"header",{value:e.modelValue,options:l.visibleOptions}),e.showToggleAll&&null==e.selectionLimit||e.filter?(O(),x("div",I({key:0,class:e.cx("header")},e.ptm("header")),[e.showToggleAll&&null==e.selectionLimit?(O(),x("div",I({key:0,class:e.cx("headerCheckboxContainer"),onClick:t[6]||(t[6]=function(){return l.onToggleAll&&l.onToggleAll.apply(l,arguments)})},e.ptm("headerCheckboxContainer")),[S("div",I({class:"p-hidden-accessible"},e.ptm("hiddenInputWrapper"),{"data-p-hidden-accessible":!0}),[S("input",I({type:"checkbox",readonly:"",checked:l.allSelected,"aria-label":l.toggleAllAriaLabel,onFocus:t[4]||(t[4]=function(){return l.onHeaderCheckboxFocus&&l.onHeaderCheckboxFocus.apply(l,arguments)}),onBlur:t[5]||(t[5]=function(){return l.onHeaderCheckboxBlur&&l.onHeaderCheckboxBlur.apply(l,arguments)})},e.ptm("headerCheckbox")),null,16,de)],16),S("div",I({class:e.cx("headerCheckbox")},l.getHeaderCheckboxPTOptions("headerCheckbox")),[k(e.$slots,"headercheckboxicon",{allSelected:l.allSelected,class:F(e.cx("headerCheckboxIcon"))},(function(){return[A((O(),K(D(e.checkboxIcon?"span":"CheckIcon"),I({class:[e.cx("headerCheckboxIcon"),se({},e.checkboxIcon,l.allSelected)]},l.getHeaderCheckboxPTOptions("headerCheckboxIcon")),null,16,["class"])),[[H,l.allSelected]])]}))],16)],16)):M("",!0),e.filter?(O(),x("div",I({key:1,class:e.cx("filterContainer")},e.ptm("filterContainer")),[S("input",I({ref:"filterInput",type:"text",value:o.filterValue,onVnodeMounted:t[7]||(t[7]=function(){return l.onFilterUpdated&&l.onFilterUpdated.apply(l,arguments)}),class:e.cx("filterInput"),placeholder:e.filterPlaceholder,role:"searchbox",autocomplete:"off","aria-owns":o.id+"_list","aria-activedescendant":l.focusedOptionId,onKeydown:t[8]||(t[8]=function(){return l.onFilterKeyDown&&l.onFilterKeyDown.apply(l,arguments)}),onBlur:t[9]||(t[9]=function(){return l.onFilterBlur&&l.onFilterBlur.apply(l,arguments)}),onInput:t[10]||(t[10]=function(){return l.onFilterChange&&l.onFilterChange.apply(l,arguments)})},le(le({},e.filterInputProps),e.ptm("filterInput"))),null,16,pe),k(e.$slots,"filtericon",{class:F(e.cx("filterIcon"))},(function(){return[(O(),K(D(e.filterIcon?"span":"SearchIcon"),I({class:[e.cx("filterIcon"),e.filterIcon]},e.ptm("filterIcon")),null,16,["class"]))]}))],16)):M("",!0),e.filter?(O(),x("span",I({key:2,role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenFilterResult"),{"data-p-hidden-accessible":!0}),V(l.filterResultMessageText),17)):M("",!0),A((O(),x("button",I({class:e.cx("closeButton"),"aria-label":l.closeAriaLabel,onClick:t[11]||(t[11]=function(){return l.onCloseClick&&l.onCloseClick.apply(l,arguments)}),type:"button"},le(le({},e.closeButtonProps),e.ptm("closeButton"))),[k(e.$slots,"closeicon",{class:F(e.cx("closeIcon"))},(function(){return[(O(),K(D(e.closeIcon?"span":"TimesIcon"),I({class:[e.cx("closeIcon"),e.closeIcon]},e.ptm("closeIcon")),null,16,["class"]))]}))],16,he)),[[u]])],16)):M("",!0),S("div",I({class:e.cx("wrapper"),style:{"max-height":l.virtualScrollerDisabled?e.scrollHeight:""}},e.ptm("wrapper")),[$(a,I({ref:l.virtualScrollerRef},e.virtualScrollerOptions,{items:l.visibleOptions,style:{height:e.scrollHeight},tabindex:-1,disabled:l.virtualScrollerDisabled,pt:e.ptm("virtualScroller")}),j({content:E((function(t){var i=t.styleClass,n=t.contentRef,s=t.items,r=t.getItemOptions,a=t.contentStyle,c=t.itemSize;return[S("ul",I({ref:function(e){return l.listRef(e,n)},id:o.id+"_list",class:[e.cx("list"),i],style:a,role:"listbox","aria-multiselectable":"true"},e.ptm("list")),[(O(!0),x(w,null,C(s,(function(t,i){return O(),x(w,{key:l.getOptionRenderKey(t,l.getOptionIndex(i,r))},[l.isOptionGroup(t)?(O(),x("li",I({key:0,id:o.id+"_"+l.getOptionIndex(i,r),style:{height:c?c+"px":void 0},class:e.cx("itemGroup"),role:"option"},e.ptm("itemGroup")),[k(e.$slots,"optiongroup",{option:t.optionGroup,index:l.getOptionIndex(i,r)},(function(){return[L(V(l.getOptionGroupLabel(t.optionGroup)),1)]}))],16,me)):A((O(),x("li",I({key:1,id:o.id+"_"+l.getOptionIndex(i,r),style:{height:c?c+"px":void 0},class:e.cx("item",{option:t,index:i,getItemOptions:r}),role:"option","aria-label":l.getOptionLabel(t),"aria-selected":l.isSelected(t),"aria-disabled":l.isOptionDisabled(t),"aria-setsize":l.ariaSetSize,"aria-posinset":l.getAriaPosInset(l.getOptionIndex(i,r)),onClick:function(e){return l.onOptionSelect(e,t,l.getOptionIndex(i,r),!0)},onMousemove:function(e){return l.onOptionMouseMove(e,l.getOptionIndex(i,r))}},l.getCheckboxPTOptions(t,r,i,"item"),{"data-p-highlight":l.isSelected(t),"data-p-focused":o.focusedOptionIndex===l.getOptionIndex(i,r),"data-p-disabled":l.isOptionDisabled(t)}),[S("div",I({class:e.cx("checkboxContainer")},e.ptm("checkboxContainer")),[S("div",I({class:e.cx("checkbox",{option:t})},l.getCheckboxPTOptions(t,r,i,"checkbox")),[k(e.$slots,"itemcheckboxicon",{selected:l.isSelected(t),class:F(e.cx("checkboxIcon"))},(function(){return[A((O(),K(D(e.checkboxIcon?"span":"CheckIcon"),I({class:[e.cx("checkboxIcon"),se({},e.checkboxIcon,l.isSelected(t))]},l.getCheckboxPTOptions(t,r,i,"checkboxIcon")),null,16,["class"])),[[H,l.isSelected(t)]])]}))],16)],16),k(e.$slots,"option",{option:t,index:l.getOptionIndex(i,r)},(function(){return[S("span",R(B(e.ptm("option"))),V(l.getOptionLabel(t)),17)]}))],16,be)),[[u]])],64)})),128)),o.filterValue&&(!s||s&&0===s.length)?(O(),x("li",I({key:0,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage")),[k(e.$slots,"emptyfilter",{},(function(){return[L(V(l.emptyFilterMessageText),1)]}))],16)):!e.options||e.options&&0===e.options.length?(O(),x("li",I({key:1,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage")),[k(e.$slots,"empty",{},(function(){return[L(V(l.emptyMessageText),1)]}))],16)):M("",!0)],16,fe)]})),_:2},[e.$slots.loader?{name:"loader",fn:E((function(t){return[k(e.$slots,"loader",{options:t.options})]})),key:"0"}:void 0]),1040,["items","style","disabled","pt"])],16),k(e.$slots,"footer",{value:e.modelValue,options:l.visibleOptions}),!e.options||e.options&&0===e.options.length?(O(),x("span",I({key:1,role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenEmptyMessage"),{"data-p-hidden-accessible":!0}),V(l.emptyMessageText),17)):M("",!0),S("span",I({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),V(l.selectedMessageText),17),S("span",I({ref:"lastHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[12]||(t[12]=function(){return l.onLastHiddenFocus&&l.onLastHiddenFocus.apply(l,arguments)})},e.ptm("hiddenLastFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16)],16)):M("",!0)]})),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:3},8,["appendTo"])],16)};export{ie as default};
@@ -1281,13 +1281,13 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
1281
1281
  appendTo: _ctx.appendTo
1282
1282
  }, {
1283
1283
  "default": vue.withCtx(function () {
1284
- return [vue.createVNode(vue.Transition, {
1284
+ return [vue.createVNode(vue.Transition, vue.mergeProps({
1285
1285
  name: "p-connected-overlay",
1286
1286
  onEnter: $options.onOverlayEnter,
1287
1287
  onAfterEnter: $options.onOverlayAfterEnter,
1288
1288
  onLeave: $options.onOverlayLeave,
1289
1289
  onAfterLeave: $options.onOverlayAfterLeave
1290
- }, {
1290
+ }, _ctx.ptm('transition')), {
1291
1291
  "default": vue.withCtx(function () {
1292
1292
  return [$data.overlayVisible ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
1293
1293
  key: 0,
@@ -1548,7 +1548,7 @@ this.primevue.multiselect = (function (api, CheckIcon, ChevronDownIcon, SearchIc
1548
1548
  }), null, 16)], 16)) : vue.createCommentVNode("", true)];
1549
1549
  }),
1550
1550
  _: 3
1551
- }, 8, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])];
1551
+ }, 16, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])];
1552
1552
  }),
1553
1553
  _: 3
1554
1554
  }, 8, ["appendTo"])], 16);
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.multiselect=function(e,t,n,i,o,l,s,r,a,c,u,d,p,h,f){"use strict";function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var b=m(t),v=m(n),y=m(i),g=m(o),O=m(l),x=m(s),I=m(r),k=m(a),S=m(c),V=m(d),C=m(p),w={root:function(e){return{position:"self"===e.props.appendTo?"relative":void 0}}},L=h.useStyle("\n.p-multiselect {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n}\n\n.p-multiselect-trigger {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n}\n\n.p-multiselect-label-container {\n overflow: hidden;\n flex: 1 1 auto;\n cursor: pointer;\n}\n\n.p-multiselect-label {\n display: block;\n white-space: nowrap;\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.p-multiselect-label-empty {\n overflow: hidden;\n visibility: hidden;\n}\n\n.p-multiselect-token {\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n}\n\n.p-multiselect-token-icon {\n cursor: pointer;\n}\n\n.p-multiselect .p-multiselect-panel {\n min-width: 100%;\n}\n\n.p-multiselect-items-wrapper {\n overflow: auto;\n}\n\n.p-multiselect-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n\n.p-multiselect-item {\n cursor: pointer;\n display: flex;\n align-items: center;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n}\n\n.p-multiselect-item-group {\n cursor: auto;\n}\n\n.p-multiselect-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.p-multiselect-filter-container {\n position: relative;\n flex: 1 1 auto;\n}\n\n.p-multiselect-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n}\n\n.p-multiselect-filter-container .p-inputtext {\n width: 100%;\n}\n\n.p-multiselect-close {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n overflow: hidden;\n position: relative;\n margin-left: auto;\n}\n\n.p-fluid .p-multiselect {\n display: flex;\n}\n",{name:"multiselect",manual:!0});function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){return(t=B(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(e){var t=T(e,"string");return"symbol"===F(t)?t:String(t)}function T(e,t){if("object"!==F(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==F(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function M(e){return j(e)||H(e)||$(e)||K()}function K(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}function H(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function j(e){if(Array.isArray(e))return A(e)}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var N={name:"MultiSelect",extends:{name:"BaseMultiSelect",extends:C.default,props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:"200px"},placeholder:String,disabled:Boolean,inputId:{type:String,default:null},inputProps:{type:null,default:null},panelClass:{type:String,default:null},panelStyle:{type:null,default:null},panelProps:{type:null,default:null},filterInputProps:{type:null,default:null},closeButtonProps:{type:null,default:null},dataKey:null,filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:"contains"},filterFields:{type:Array,default:null},appendTo:{type:String,default:"body"},display:{type:String,default:"comma"},selectedItemsLabel:{type:String,default:"{0} items selected"},maxSelectedLabels:{type:Number,default:null},selectionLimit:{type:Number,default:null},showToggleAll:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},checkboxIcon:{type:String,default:void 0},closeIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},removeTokenIcon:{type:String,default:void 0},selectAll:{type:Boolean,default:null},resetFilterOnHide:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!0},autoFilterFocus:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},css:{classes:{root:function(e){var t=e.instance,n=e.props;return["p-multiselect p-component p-inputwrapper",{"p-multiselect-chip":"chip"===n.display,"p-disabled":n.disabled,"p-focus":t.focused,"p-inputwrapper-filled":n.modelValue&&n.modelValue.length,"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-overlay-open":t.overlayVisible}]},labelContainer:"p-multiselect-label-container",label:function(e){var t=e.props;return["p-multiselect-label",{"p-placeholder":e.instance.label===t.placeholder,"p-multiselect-label-empty":!(t.placeholder||t.modelValue&&0!==t.modelValue.length)}]},token:"p-multiselect-token",tokenLabel:"p-multiselect-token-label",removeTokenIcon:"p-multiselect-token-icon",trigger:"p-multiselect-trigger",loadingIcon:"p-multiselect-trigger-icon",dropdownIcon:"p-multiselect-trigger-icon",panel:function(e){var t=e.instance;return["p-multiselect-panel p-component",{"p-input-filled":"filled"===t.$primevue.config.inputStyle,"p-ripple-disabled":!1===t.$primevue.config.ripple}]},header:"p-multiselect-header",headerCheckboxContainer:function(e){var t=e.instance;return["p-checkbox p-component",{"p-checkbox-checked":t.allSelected,"p-checkbox-focused":t.headerCheckboxFocused}]},headerCheckbox:function(e){var t=e.instance;return["p-checkbox-box",{"p-highlight":t.allSelected,"p-focus":t.headerCheckboxFocused}]},headerCheckboxIcon:"p-checkbox-icon",filterContainer:"p-multiselect-filter-container",filterInput:"p-multiselect-filter p-inputtext p-component",filterIcon:"p-multiselect-filter-icon",closeButton:"p-multiselect-close p-link",closeIcon:"p-multiselect-close-icon",wrapper:"p-multiselect-items-wrapper",list:"p-multiselect-items p-component",itemGroup:"p-multiselect-item-group",item:function(e){var t=e.instance,n=e.option,i=e.index,o=e.getItemOptions;return["p-multiselect-item",{"p-highlight":t.isSelected(n),"p-focus":t.focusedOptionIndex===t.getOptionIndex(i,o),"p-disabled":t.isOptionDisabled(n)}]},checkboxContainer:"p-checkbox p-component",checkbox:function(e){return["p-checkbox-box",{"p-highlight":e.instance.isSelected(e.option)}]},checkboxIcon:"p-checkbox-icon",emptyMessage:"p-multiselect-empty-message"},inlineStyles:w,loadStyle:L.load},provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","change","focus","blur","before-show","before-hide","show","hide","filter","selectall-change"],outsideClickListener:null,scrollHandler:null,resizeListener:null,overlay:null,list:null,virtualScroller:null,startRangeIndex:-1,searchTimeout:null,searchValue:"",selectOnFocus:!1,focusOnHover:!1,data:function(){return{id:this.$attrs.id,focused:!1,focusedOptionIndex:-1,headerCheckboxFocused:!1,filterValue:null,overlayVisible:!1}},watch:{"$attrs.id":function(e){this.id=e||u.UniqueComponentId()},options:function(){this.autoUpdateModel()}},mounted:function(){this.id=this.id||u.UniqueComponentId(),this.autoUpdateModel()},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(u.ZIndexUtils.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel:function(e){return this.optionLabel?u.ObjectUtils.resolveFieldData(e,this.optionLabel):e},getOptionValue:function(e){return this.optionValue?u.ObjectUtils.resolveFieldData(e,this.optionValue):e},getOptionRenderKey:function(e){return this.dataKey?u.ObjectUtils.resolveFieldData(e,this.dataKey):this.getOptionLabel(e)},getHeaderCheckboxPTOptions:function(e){return this.ptm(e,{context:{selected:this.allSelected,focused:this.headerCheckboxFocused}})},getCheckboxPTOptions:function(e,t,n,i){return this.ptm(i,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(n,t),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return!(!this.maxSelectionLimitReached||this.isSelected(e))||!!this.optionDisabled&&u.ObjectUtils.resolveFieldData(e,this.optionDisabled)},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return u.ObjectUtils.resolveFieldData(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return u.ObjectUtils.resolveFieldData(e,this.optionGroupChildren)},getAriaPosInset:function(e){var t=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter((function(e){return t.isOptionGroup(e)})).length:e)+1},show:function(e){this.$emit("before-show"),this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,e&&u.DomHandler.focus(this.$refs.focusInput)},hide:function(e){var t=this;setTimeout((function(){t.$emit("before-hide"),t.overlayVisible=!1,t.focusedOptionIndex=-1,t.searchValue="",t.resetFilterOnHide&&(t.filterValue=null),e&&u.DomHandler.focus(t.$refs.focusInput)}),0)},onFocus:function(e){this.disabled||(this.focused=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.overlayVisible&&this.scrollInView(this.focusedOptionIndex),this.$emit("focus",e))},onBlur:function(e){this.focused=!1,this.focusedOptionIndex=-1,this.searchValue="",this.$emit("blur",e)},onKeyDown:function(e){var t=this;if(this.disabled)e.preventDefault();else{var n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(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"Space":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey(e);break;default:if("KeyA"===e.code&&n){var i=this.visibleOptions.filter((function(e){return t.isValidOption(e)})).map((function(e){return t.getOptionValue(e)}));this.updateModel(e,i),e.preventDefault();break}!n&&u.ObjectUtils.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e),e.preventDefault())}}},onContainerClick:function(e){this.disabled||this.loading||this.overlay&&this.overlay.contains(e.target)||(this.overlayVisible?this.hide(!0):this.show(!0))},onFirstHiddenFocus:function(e){var t=e.relatedTarget===this.$refs.focusInput?u.DomHandler.getFirstFocusableElement(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;u.DomHandler.focus(t)},onLastHiddenFocus:function(e){var t=e.relatedTarget===this.$refs.focusInput?u.DomHandler.getLastFocusableElement(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;u.DomHandler.focus(t)},onCloseClick:function(){this.hide(!0)},onHeaderCheckboxFocus:function(){this.headerCheckboxFocused=!0},onHeaderCheckboxBlur:function(){this.headerCheckboxFocused=!1},onOptionSelect:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!this.disabled&&!this.isOptionDisabled(t)){var l=null;l=this.isSelected(t)?this.modelValue.filter((function(e){return!u.ObjectUtils.equals(e,n.getOptionValue(t),n.equalityKey)})):[].concat(M(this.modelValue||[]),[this.getOptionValue(t)]),this.updateModel(e,l),-1!==i&&(this.focusedOptionIndex=i),o&&u.DomHandler.focus(this.$refs.focusInput)}},onOptionMouseMove:function(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onOptionSelectRange:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;if(-1===n&&(n=this.findNearestSelectedOptionIndex(i,!0)),-1===i&&(i=this.findNearestSelectedOptionIndex(n)),-1!==n&&-1!==i){var o=Math.min(n,i),l=Math.max(n,i),s=this.visibleOptions.slice(o,l+1).filter((function(e){return t.isValidOption(e)})).map((function(e){return t.getOptionValue(e)}));this.updateModel(e,s)}},onFilterChange:function(e){var t=e.target.value;this.filterValue=t,this.focusedOptionIndex=-1,this.$emit("filter",{originalEvent:e,value:t}),!this.virtualScrollerDisabled&&this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0)}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible&&this.alignOverlay()},onOverlayClick:function(e){I.default.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){if("Escape"===e.code)this.onEscapeKey(e)},onArrowDownKey:function(e){var t=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.findFirstFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex,t),this.changeFocusedOptionIndex(e,t),!this.overlayVisible&&this.show(),e.preventDefault()},onArrowUpKey:function(e){if(e.altKey&&!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var t=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.findLastFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,t,this.startRangeIndex),this.changeFocusedOptionIndex(e,t),!this.overlayVisible&&this.show(),e.preventDefault()}},onArrowLeftKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(this.focusedOptionIndex=-1)},onHomeKey:function(e){var t=e.currentTarget;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){t.setSelectionRange(0,e.shiftKey?t.value.length:0),this.focusedOptionIndex=-1}else{var n=e.metaKey||e.ctrlKey,i=this.findFirstOptionIndex();e.shiftKey&&n&&this.onOptionSelectRange(e,i,this.startRangeIndex),this.changeFocusedOptionIndex(e,i),!this.overlayVisible&&this.show()}e.preventDefault()},onEndKey:function(e){var t=e.currentTarget;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){var n=t.value.length;t.setSelectionRange(e.shiftKey?0:n,n),this.focusedOptionIndex=-1}else{var i=e.metaKey||e.ctrlKey,o=this.findLastOptionIndex();e.shiftKey&&i&&this.onOptionSelectRange(e,this.startRangeIndex,o),this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show()}e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.overlayVisible?-1!==this.focusedOptionIndex&&(e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex):this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex])):this.onArrowDownKey(e),e.preventDefault()},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]||(this.overlayVisible&&this.hasFocusableElements()?(u.DomHandler.focus(e.shiftKey?this.$refs.lastHiddenFocusableElementOnOverlay:this.$refs.firstHiddenFocusableElementOnOverlay),e.preventDefault()):(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(this.filter)))},onShiftKey:function(){this.startRangeIndex=this.focusedOptionIndex},onOverlayEnter:function(e){u.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay),u.DomHandler.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.scrollInView(),this.autoFilterFocus&&u.DomHandler.focus(this.$refs.filterInput)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave:function(e){u.ZIndexUtils.clear(e)},alignOverlay:function(){"self"===this.appendTo?u.DomHandler.relativePosition(this.overlay,this.$el):(this.overlay.style.minWidth=u.DomHandler.getOuterWidth(this.$el)+"px",u.DomHandler.absolutePosition(this.overlay,this.$el))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.overlayVisible&&e.isOutsideClicked(t)&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new u.ConnectedOverlayScrollHandler(this.$refs.container,(function(){e.overlayVisible&&e.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!u.DomHandler.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isOutsideClicked:function(e){return!(this.$el.isSameNode(e.target)||this.$el.contains(e.target)||this.overlay&&this.overlay.contains(e.target))},getLabelByValue:function(e){var t=this,n=(this.optionGroupLabel?this.flatOptions(this.options):this.options||[]).find((function(n){return!t.isOptionGroup(n)&&u.ObjectUtils.equals(t.getOptionValue(n),e,t.equalityKey)}));return n?this.getOptionLabel(n):null},getSelectedItemsLabel:function(){var e=/{(.*?)}/;return e.test(this.selectedItemsLabel)?this.selectedItemsLabel.replace(this.selectedItemsLabel.match(e)[0],this.modelValue.length+""):this.selectedItemsLabel},onToggleAll:function(e){var t=this;if(null!==this.selectAll)this.$emit("selectall-change",{originalEvent:e,checked:!this.allSelected});else{var n=this.allSelected?[]:this.visibleOptions.filter((function(e){return t.isValidOption(e)})).map((function(e){return t.getOptionValue(e)}));this.updateModel(e,n)}this.headerCheckboxFocused=!0},removeOption:function(e,t){var n=this,i=this.modelValue.filter((function(e){return!u.ObjectUtils.equals(e,t,n.equalityKey)}));this.updateModel(e,i)},clearFilter:function(){this.filterValue=null},hasFocusableElements:function(){return u.DomHandler.getFocusableElements(this.overlay,':not([data-p-hidden-focusable="true"])').length>0},isOptionMatched:function(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))},isValidOption:function(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected:function(e){var t=this,n=this.getOptionValue(e);return(this.modelValue||[]).some((function(e){return u.ObjectUtils.equals(e,n,t.equalityKey)}))},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex((function(t){return e.isValidOption(t)}))},findLastOptionIndex:function(){var e=this;return u.ObjectUtils.findLastIndex(this.visibleOptions,(function(t){return e.isValidOption(t)}))},findNextOptionIndex:function(e){var t=this,n=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((function(e){return t.isValidOption(e)})):-1;return n>-1?n+e+1:e},findPrevOptionIndex:function(e){var t=this,n=e>0?u.ObjectUtils.findLastIndex(this.visibleOptions.slice(0,e),(function(e){return t.isValidOption(e)})):-1;return n>-1?n:e},findFirstSelectedOptionIndex:function(){var e=this;return this.hasSelectedOption?this.visibleOptions.findIndex((function(t){return e.isValidSelectedOption(t)})):-1},findLastSelectedOptionIndex:function(){var e=this;return this.hasSelectedOption?u.ObjectUtils.findLastIndex(this.visibleOptions,(function(t){return e.isValidSelectedOption(t)})):-1},findNextSelectedOptionIndex:function(e){var t=this,n=this.hasSelectedOption&&e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((function(e){return t.isValidSelectedOption(e)})):-1;return n>-1?n+e+1:-1},findPrevSelectedOptionIndex:function(e){var t=this,n=this.hasSelectedOption&&e>0?u.ObjectUtils.findLastIndex(this.visibleOptions.slice(0,e),(function(e){return t.isValidSelectedOption(e)})):-1;return n>-1?n:-1},findNearestSelectedOptionIndex:function(e){var t=-1;return this.hasSelectedOption&&(t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?-1===(t=this.findPrevSelectedOptionIndex(e))?this.findNextSelectedOptionIndex(e):t:-1===(t=this.findNextSelectedOptionIndex(e))?this.findPrevSelectedOptionIndex(e):t),t>-1?t:e},findFirstFocusedOptionIndex:function(){var e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},searchOptions:function(e){var t=this;this.searchValue=(this.searchValue||"")+e.key;var n=-1;-1===(n=-1!==this.focusedOptionIndex?-1===(n=this.visibleOptions.slice(this.focusedOptionIndex).findIndex((function(e){return t.isOptionMatched(e)})))?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex((function(e){return t.isOptionMatched(e)})):n+this.focusedOptionIndex:this.visibleOptions.findIndex((function(e){return t.isOptionMatched(e)})))&&-1===this.focusedOptionIndex&&(n=this.findFirstFocusedOptionIndex()),-1!==n&&this.changeFocusedOptionIndex(e,n),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){t.searchValue="",t.searchTimeout=null}),500)},changeFocusedOptionIndex:function(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView())},scrollInView:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,t=-1!==e?"".concat(this.id,"_").concat(e):this.focusedOptionId,n=u.DomHandler.findSingle(this.list,'li[id="'.concat(t,'"]'));n?n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||this.virtualScroller&&this.virtualScroller.scrollToIndex(-1!==e?e:this.focusedOptionIndex)},autoUpdateModel:function(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption){this.focusedOptionIndex=this.findFirstFocusedOptionIndex();var e=this.getOptionValue(this.visibleOptions[this.focusedOptionIndex]);this.updateModel(null,[e])}},updateModel:function(e,t){this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})},flatOptions:function(e){var t=this;return(e||[]).reduce((function(e,n,i){e.push({optionGroup:n,group:!0,index:i});var o=t.getOptionGroupChildren(n);return o&&o.forEach((function(t){return e.push(t)})),e}),[])},overlayRef:function(e){this.overlay=e},listRef:function(e,t){this.list=e,t&&t(e)},virtualScrollerRef:function(e){this.virtualScroller=e}},computed:{visibleOptions:function(){var t=this,n=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var i=e.FilterService.filter(n,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var o=[];return(this.options||[]).forEach((function(e){var n=t.getOptionGroupChildren(e).filter((function(e){return i.includes(e)}));n.length>0&&o.push(P(P({},e),{},E({},"string"==typeof t.optionGroupChildren?t.optionGroupChildren:"items",M(n))))})),this.flatOptions(o)}return i}return n},label:function(){var e;if(this.modelValue&&this.modelValue.length){if(u.ObjectUtils.isNotEmpty(this.maxSelectedLabels)&&this.modelValue.length>this.maxSelectedLabels)return this.getSelectedItemsLabel();e="";for(var t=0;t<this.modelValue.length;t++)0!==t&&(e+=", "),e+=this.getLabelByValue(this.modelValue[t])}else e=this.placeholder;return e},chipSelectedItems:function(){return u.ObjectUtils.isNotEmpty(this.maxSelectedLabels)&&this.modelValue&&this.modelValue.length>this.maxSelectedLabels?this.modelValue.slice(0,this.maxSelectedLabels):this.modelValue},allSelected:function(){var e=this;return null!==this.selectAll?this.selectAll:u.ObjectUtils.isNotEmpty(this.visibleOptions)&&this.visibleOptions.every((function(t){return e.isOptionGroup(t)||e.isOptionDisabled(t)||e.isSelected(t)}))},hasSelectedOption:function(){return u.ObjectUtils.isNotEmpty(this.modelValue)},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},maxSelectionLimitReached:function(){return this.selectionLimit&&this.modelValue&&this.modelValue.length===this.selectionLimit},filterResultMessageText:function(){return u.ObjectUtils.isNotEmpty(this.visibleOptions)?this.filterMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||""},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||""},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}",this.modelValue.length):this.emptySelectionMessageText},focusedOptionId:function(){return-1!==this.focusedOptionIndex?"".concat(this.id,"_").concat(this.focusedOptionIndex):null},ariaSetSize:function(){var e=this;return this.visibleOptions.filter((function(t){return!e.isOptionGroup(t)})).length},toggleAllAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria[this.allSelected?"selectAll":"unselectAll"]:void 0},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},directives:{ripple:S.default},components:{VirtualScroller:V.default,Portal:k.default,TimesIcon:O.default,SearchIcon:y.default,TimesCircleIcon:x.default,ChevronDownIcon:v.default,SpinnerIcon:g.default,CheckIcon:b.default}};function U(e){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U(e)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function z(e,t,n){return(t=q(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q(e){var t=_(e,"string");return"symbol"===U(t)?t:String(t)}function _(e,t){if("object"!==U(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==U(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var W=["id","disabled","placeholder","tabindex","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],Z=["onClick"],J=["checked","aria-label"],Q=["value","placeholder","aria-owns","aria-activedescendant"],X=["aria-label"],Y=["id"],ee=["id"],te=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove","data-p-highlight","data-p-focused","data-p-disabled"];return N.render=function(e,t,n,i,o,l){var s=f.resolveComponent("TimesCircleIcon"),r=f.resolveComponent("SpinnerIcon"),a=f.resolveComponent("VirtualScroller"),c=f.resolveComponent("Portal"),u=f.resolveDirective("ripple");return f.openBlock(),f.createElementBlock("div",f.mergeProps({ref:"container",class:e.cx("root"),onClick:t[15]||(t[15]=function(){return l.onContainerClick&&l.onContainerClick.apply(l,arguments)})},e.ptm("root"),{"data-pc-name":"multiselect"}),[f.createElementVNode("div",f.mergeProps({class:"p-hidden-accessible"},e.ptm("hiddenInputWrapper"),{"data-p-hidden-accessible":!0}),[f.createElementVNode("input",f.mergeProps({ref:"focusInput",id:e.inputId,type:"text",readonly:"",disabled:e.disabled,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?l.focusedOptionId:void 0,onFocus:t[0]||(t[0]=function(){return l.onFocus&&l.onFocus.apply(l,arguments)}),onBlur:t[1]||(t[1]=function(){return l.onBlur&&l.onBlur.apply(l,arguments)}),onKeydown:t[2]||(t[2]=function(){return l.onKeyDown&&l.onKeyDown.apply(l,arguments)})},G(G({},e.inputProps),e.ptm("hiddenInput"))),null,16,W)],16),f.createElementVNode("div",f.mergeProps({class:e.cx("labelContainer")},e.ptm("labelContainer")),[f.createElementVNode("div",f.mergeProps({class:e.cx("label")},e.ptm("label")),[f.renderSlot(e.$slots,"value",{value:e.modelValue,placeholder:e.placeholder},(function(){return["comma"===e.display?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[f.createTextVNode(f.toDisplayString(l.label||"empty"),1)],64)):"chip"===e.display?(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(l.chipSelectedItems,(function(t){return f.openBlock(),f.createElementBlock("div",f.mergeProps({key:l.getLabelByValue(t),class:e.cx("token")},e.ptm("token")),[f.renderSlot(e.$slots,"chip",{value:t},(function(){return[f.createElementVNode("span",f.mergeProps({class:e.cx("tokenLabel")},e.ptm("tokenLabel")),f.toDisplayString(l.getLabelByValue(t)),17)]})),e.disabled?f.createCommentVNode("",!0):f.renderSlot(e.$slots,"removetokenicon",{key:0,class:f.normalizeClass(e.cx("removeTokenIcon")),onClick:function(e){return l.removeOption(e,t)}},(function(){return[e.removeTokenIcon?(f.openBlock(),f.createElementBlock("span",f.mergeProps({key:0,class:[e.cx("removeTokenIcon"),e.removeTokenIcon],onClick:f.withModifiers((function(e){return l.removeOption(e,t)}),["stop"])},e.ptm("removeTokenIcon")),null,16,Z)):(f.openBlock(),f.createBlock(s,f.mergeProps({key:1,class:e.cx("removeTokenIcon"),onClick:f.withModifiers((function(e){return l.removeOption(e,t)}),["stop"])},e.ptm("removeTokenIcon")),null,16,["class","onClick"]))]}))],16)})),128)),e.modelValue&&0!==e.modelValue.length?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[f.createTextVNode(f.toDisplayString(e.placeholder||"empty"),1)],64))],64)):f.createCommentVNode("",!0)]}))],16)],16),f.createElementVNode("div",f.mergeProps({class:e.cx("trigger")},e.ptm("trigger")),[e.loading?f.renderSlot(e.$slots,"loadingicon",{key:0,class:f.normalizeClass(e.cx("loadingIcon"))},(function(){return[e.loadingIcon?(f.openBlock(),f.createElementBlock("span",f.mergeProps({key:0,class:[e.cx("loadingIcon"),"pi-spin",e.loadingIcon],"aria-hidden":"true"},e.ptm("loadingIcon")),null,16)):(f.openBlock(),f.createBlock(r,f.mergeProps({key:1,class:e.cx("loadingIcon"),spin:"","aria-hidden":"true"},e.ptm("loadingIcon")),null,16,["class"]))]})):f.renderSlot(e.$slots,"dropdownicon",{key:1,class:f.normalizeClass(e.cx("dropdownIcon"))},(function(){return[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(e.dropdownIcon?"span":"ChevronDownIcon"),f.mergeProps({class:[e.cx("dropdownIcon"),e.dropdownIcon],"aria-hidden":"true"},e.ptm("dropdownIcon")),null,16,["class"]))]}))],16),f.createVNode(c,{appendTo:e.appendTo},{default:f.withCtx((function(){return[f.createVNode(f.Transition,{name:"p-connected-overlay",onEnter:l.onOverlayEnter,onAfterEnter:l.onOverlayAfterEnter,onLeave:l.onOverlayLeave,onAfterLeave:l.onOverlayAfterLeave},{default:f.withCtx((function(){return[o.overlayVisible?(f.openBlock(),f.createElementBlock("div",f.mergeProps({key:0,ref:l.overlayRef,style:e.panelStyle,class:[e.cx("panel"),e.panelClass],onClick:t[13]||(t[13]=function(){return l.onOverlayClick&&l.onOverlayClick.apply(l,arguments)}),onKeydown:t[14]||(t[14]=function(){return l.onOverlayKeyDown&&l.onOverlayKeyDown.apply(l,arguments)})},G(G({},e.panelProps),e.ptm("panel"))),[f.createElementVNode("span",f.mergeProps({ref:"firstHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[3]||(t[3]=function(){return l.onFirstHiddenFocus&&l.onFirstHiddenFocus.apply(l,arguments)})},e.ptm("hiddenFirstFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16),f.renderSlot(e.$slots,"header",{value:e.modelValue,options:l.visibleOptions}),e.showToggleAll&&null==e.selectionLimit||e.filter?(f.openBlock(),f.createElementBlock("div",f.mergeProps({key:0,class:e.cx("header")},e.ptm("header")),[e.showToggleAll&&null==e.selectionLimit?(f.openBlock(),f.createElementBlock("div",f.mergeProps({key:0,class:e.cx("headerCheckboxContainer"),onClick:t[6]||(t[6]=function(){return l.onToggleAll&&l.onToggleAll.apply(l,arguments)})},e.ptm("headerCheckboxContainer")),[f.createElementVNode("div",f.mergeProps({class:"p-hidden-accessible"},e.ptm("hiddenInputWrapper"),{"data-p-hidden-accessible":!0}),[f.createElementVNode("input",f.mergeProps({type:"checkbox",readonly:"",checked:l.allSelected,"aria-label":l.toggleAllAriaLabel,onFocus:t[4]||(t[4]=function(){return l.onHeaderCheckboxFocus&&l.onHeaderCheckboxFocus.apply(l,arguments)}),onBlur:t[5]||(t[5]=function(){return l.onHeaderCheckboxBlur&&l.onHeaderCheckboxBlur.apply(l,arguments)})},e.ptm("headerCheckbox")),null,16,J)],16),f.createElementVNode("div",f.mergeProps({class:e.cx("headerCheckbox")},l.getHeaderCheckboxPTOptions("headerCheckbox")),[f.renderSlot(e.$slots,"headercheckboxicon",{allSelected:l.allSelected,class:f.normalizeClass(e.cx("headerCheckboxIcon"))},(function(){return[f.withDirectives((f.openBlock(),f.createBlock(f.resolveDynamicComponent(e.checkboxIcon?"span":"CheckIcon"),f.mergeProps({class:[e.cx("headerCheckboxIcon"),z({},e.checkboxIcon,l.allSelected)]},l.getHeaderCheckboxPTOptions("headerCheckboxIcon")),null,16,["class"])),[[f.vShow,l.allSelected]])]}))],16)],16)):f.createCommentVNode("",!0),e.filter?(f.openBlock(),f.createElementBlock("div",f.mergeProps({key:1,class:e.cx("filterContainer")},e.ptm("filterContainer")),[f.createElementVNode("input",f.mergeProps({ref:"filterInput",type:"text",value:o.filterValue,onVnodeMounted:t[7]||(t[7]=function(){return l.onFilterUpdated&&l.onFilterUpdated.apply(l,arguments)}),class:e.cx("filterInput"),placeholder:e.filterPlaceholder,role:"searchbox",autocomplete:"off","aria-owns":o.id+"_list","aria-activedescendant":l.focusedOptionId,onKeydown:t[8]||(t[8]=function(){return l.onFilterKeyDown&&l.onFilterKeyDown.apply(l,arguments)}),onBlur:t[9]||(t[9]=function(){return l.onFilterBlur&&l.onFilterBlur.apply(l,arguments)}),onInput:t[10]||(t[10]=function(){return l.onFilterChange&&l.onFilterChange.apply(l,arguments)})},G(G({},e.filterInputProps),e.ptm("filterInput"))),null,16,Q),f.renderSlot(e.$slots,"filtericon",{class:f.normalizeClass(e.cx("filterIcon"))},(function(){return[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(e.filterIcon?"span":"SearchIcon"),f.mergeProps({class:[e.cx("filterIcon"),e.filterIcon]},e.ptm("filterIcon")),null,16,["class"]))]}))],16)):f.createCommentVNode("",!0),e.filter?(f.openBlock(),f.createElementBlock("span",f.mergeProps({key:2,role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenFilterResult"),{"data-p-hidden-accessible":!0}),f.toDisplayString(l.filterResultMessageText),17)):f.createCommentVNode("",!0),f.withDirectives((f.openBlock(),f.createElementBlock("button",f.mergeProps({class:e.cx("closeButton"),"aria-label":l.closeAriaLabel,onClick:t[11]||(t[11]=function(){return l.onCloseClick&&l.onCloseClick.apply(l,arguments)}),type:"button"},G(G({},e.closeButtonProps),e.ptm("closeButton"))),[f.renderSlot(e.$slots,"closeicon",{class:f.normalizeClass(e.cx("closeIcon"))},(function(){return[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(e.closeIcon?"span":"TimesIcon"),f.mergeProps({class:[e.cx("closeIcon"),e.closeIcon]},e.ptm("closeIcon")),null,16,["class"]))]}))],16,X)),[[u]])],16)):f.createCommentVNode("",!0),f.createElementVNode("div",f.mergeProps({class:e.cx("wrapper"),style:{"max-height":l.virtualScrollerDisabled?e.scrollHeight:""}},e.ptm("wrapper")),[f.createVNode(a,f.mergeProps({ref:l.virtualScrollerRef},e.virtualScrollerOptions,{items:l.visibleOptions,style:{height:e.scrollHeight},tabindex:-1,disabled:l.virtualScrollerDisabled,pt:e.ptm("virtualScroller")}),f.createSlots({content:f.withCtx((function(t){var n=t.styleClass,i=t.contentRef,s=t.items,r=t.getItemOptions,a=t.contentStyle,c=t.itemSize;return[f.createElementVNode("ul",f.mergeProps({ref:function(e){return l.listRef(e,i)},id:o.id+"_list",class:[e.cx("list"),n],style:a,role:"listbox","aria-multiselectable":"true"},e.ptm("list")),[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(s,(function(t,n){return f.openBlock(),f.createElementBlock(f.Fragment,{key:l.getOptionRenderKey(t,l.getOptionIndex(n,r))},[l.isOptionGroup(t)?(f.openBlock(),f.createElementBlock("li",f.mergeProps({key:0,id:o.id+"_"+l.getOptionIndex(n,r),style:{height:c?c+"px":void 0},class:e.cx("itemGroup"),role:"option"},e.ptm("itemGroup")),[f.renderSlot(e.$slots,"optiongroup",{option:t.optionGroup,index:l.getOptionIndex(n,r)},(function(){return[f.createTextVNode(f.toDisplayString(l.getOptionGroupLabel(t.optionGroup)),1)]}))],16,ee)):f.withDirectives((f.openBlock(),f.createElementBlock("li",f.mergeProps({key:1,id:o.id+"_"+l.getOptionIndex(n,r),style:{height:c?c+"px":void 0},class:e.cx("item",{option:t,index:n,getItemOptions:r}),role:"option","aria-label":l.getOptionLabel(t),"aria-selected":l.isSelected(t),"aria-disabled":l.isOptionDisabled(t),"aria-setsize":l.ariaSetSize,"aria-posinset":l.getAriaPosInset(l.getOptionIndex(n,r)),onClick:function(e){return l.onOptionSelect(e,t,l.getOptionIndex(n,r),!0)},onMousemove:function(e){return l.onOptionMouseMove(e,l.getOptionIndex(n,r))}},l.getCheckboxPTOptions(t,r,n,"item"),{"data-p-highlight":l.isSelected(t),"data-p-focused":o.focusedOptionIndex===l.getOptionIndex(n,r),"data-p-disabled":l.isOptionDisabled(t)}),[f.createElementVNode("div",f.mergeProps({class:e.cx("checkboxContainer")},e.ptm("checkboxContainer")),[f.createElementVNode("div",f.mergeProps({class:e.cx("checkbox",{option:t})},l.getCheckboxPTOptions(t,r,n,"checkbox")),[f.renderSlot(e.$slots,"itemcheckboxicon",{selected:l.isSelected(t),class:f.normalizeClass(e.cx("checkboxIcon"))},(function(){return[f.withDirectives((f.openBlock(),f.createBlock(f.resolveDynamicComponent(e.checkboxIcon?"span":"CheckIcon"),f.mergeProps({class:[e.cx("checkboxIcon"),z({},e.checkboxIcon,l.isSelected(t))]},l.getCheckboxPTOptions(t,r,n,"checkboxIcon")),null,16,["class"])),[[f.vShow,l.isSelected(t)]])]}))],16)],16),f.renderSlot(e.$slots,"option",{option:t,index:l.getOptionIndex(n,r)},(function(){return[f.createElementVNode("span",f.normalizeProps(f.guardReactiveProps(e.ptm("option"))),f.toDisplayString(l.getOptionLabel(t)),17)]}))],16,te)),[[u]])],64)})),128)),o.filterValue&&(!s||s&&0===s.length)?(f.openBlock(),f.createElementBlock("li",f.mergeProps({key:0,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage")),[f.renderSlot(e.$slots,"emptyfilter",{},(function(){return[f.createTextVNode(f.toDisplayString(l.emptyFilterMessageText),1)]}))],16)):!e.options||e.options&&0===e.options.length?(f.openBlock(),f.createElementBlock("li",f.mergeProps({key:1,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage")),[f.renderSlot(e.$slots,"empty",{},(function(){return[f.createTextVNode(f.toDisplayString(l.emptyMessageText),1)]}))],16)):f.createCommentVNode("",!0)],16,Y)]})),_:2},[e.$slots.loader?{name:"loader",fn:f.withCtx((function(t){return[f.renderSlot(e.$slots,"loader",{options:t.options})]})),key:"0"}:void 0]),1040,["items","style","disabled","pt"])],16),f.renderSlot(e.$slots,"footer",{value:e.modelValue,options:l.visibleOptions}),!e.options||e.options&&0===e.options.length?(f.openBlock(),f.createElementBlock("span",f.mergeProps({key:1,role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenEmptyMessage"),{"data-p-hidden-accessible":!0}),f.toDisplayString(l.emptyMessageText),17)):f.createCommentVNode("",!0),f.createElementVNode("span",f.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),f.toDisplayString(l.selectedMessageText),17),f.createElementVNode("span",f.mergeProps({ref:"lastHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[12]||(t[12]=function(){return l.onLastHiddenFocus&&l.onLastHiddenFocus.apply(l,arguments)})},e.ptm("hiddenLastFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16)],16)):f.createCommentVNode("",!0)]})),_:3},8,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:3},8,["appendTo"])],16)},N}(primevue.api,primevue.icons.check,primevue.icons.chevrondown,primevue.icons.search,primevue.icons.spinner,primevue.icons.times,primevue.icons.timescircle,primevue.overlayeventbus,primevue.portal,primevue.ripple,primevue.utils,primevue.virtualscroller,primevue.basecomponent,primevue.usestyle,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.multiselect=function(e,t,n,i,o,l,s,r,a,c,u,d,p,h,f){"use strict";function m(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var b=m(t),v=m(n),y=m(i),g=m(o),O=m(l),x=m(s),I=m(r),k=m(a),S=m(c),V=m(d),C=m(p),w={root:function(e){return{position:"self"===e.props.appendTo?"relative":void 0}}},L=h.useStyle("\n.p-multiselect {\n display: inline-flex;\n cursor: pointer;\n user-select: none;\n}\n\n.p-multiselect-trigger {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n}\n\n.p-multiselect-label-container {\n overflow: hidden;\n flex: 1 1 auto;\n cursor: pointer;\n}\n\n.p-multiselect-label {\n display: block;\n white-space: nowrap;\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n\n.p-multiselect-label-empty {\n overflow: hidden;\n visibility: hidden;\n}\n\n.p-multiselect-token {\n cursor: default;\n display: inline-flex;\n align-items: center;\n flex: 0 0 auto;\n}\n\n.p-multiselect-token-icon {\n cursor: pointer;\n}\n\n.p-multiselect .p-multiselect-panel {\n min-width: 100%;\n}\n\n.p-multiselect-items-wrapper {\n overflow: auto;\n}\n\n.p-multiselect-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n\n.p-multiselect-item {\n cursor: pointer;\n display: flex;\n align-items: center;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n}\n\n.p-multiselect-item-group {\n cursor: auto;\n}\n\n.p-multiselect-header {\n display: flex;\n align-items: center;\n justify-content: space-between;\n}\n\n.p-multiselect-filter-container {\n position: relative;\n flex: 1 1 auto;\n}\n\n.p-multiselect-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -0.5rem;\n}\n\n.p-multiselect-filter-container .p-inputtext {\n width: 100%;\n}\n\n.p-multiselect-close {\n display: flex;\n align-items: center;\n justify-content: center;\n flex-shrink: 0;\n overflow: hidden;\n position: relative;\n margin-left: auto;\n}\n\n.p-fluid .p-multiselect {\n display: flex;\n}\n",{name:"multiselect",manual:!0});function F(e){return F="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},F(e)}function D(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?D(Object(n),!0).forEach((function(t){E(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):D(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function E(e,t,n){return(t=B(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function B(e){var t=T(e,"string");return"symbol"===F(t)?t:String(t)}function T(e,t){if("object"!==F(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==F(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}function M(e){return j(e)||H(e)||$(e)||K()}function K(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function $(e,t){if(e){if("string"==typeof e)return A(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?A(e,t):void 0}}function H(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function j(e){if(Array.isArray(e))return A(e)}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var N={name:"MultiSelect",extends:{name:"BaseMultiSelect",extends:C.default,props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:"200px"},placeholder:String,disabled:Boolean,inputId:{type:String,default:null},inputProps:{type:null,default:null},panelClass:{type:String,default:null},panelStyle:{type:null,default:null},panelProps:{type:null,default:null},filterInputProps:{type:null,default:null},closeButtonProps:{type:null,default:null},dataKey:null,filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:"contains"},filterFields:{type:Array,default:null},appendTo:{type:String,default:"body"},display:{type:String,default:"comma"},selectedItemsLabel:{type:String,default:"{0} items selected"},maxSelectedLabels:{type:Number,default:null},selectionLimit:{type:Number,default:null},showToggleAll:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},checkboxIcon:{type:String,default:void 0},closeIcon:{type:String,default:void 0},dropdownIcon:{type:String,default:void 0},filterIcon:{type:String,default:void 0},loadingIcon:{type:String,default:void 0},removeTokenIcon:{type:String,default:void 0},selectAll:{type:Boolean,default:null},resetFilterOnHide:{type:Boolean,default:!1},virtualScrollerOptions:{type:Object,default:null},autoOptionFocus:{type:Boolean,default:!0},autoFilterFocus:{type:Boolean,default:!1},filterMessage:{type:String,default:null},selectionMessage:{type:String,default:null},emptySelectionMessage:{type:String,default:null},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},css:{classes:{root:function(e){var t=e.instance,n=e.props;return["p-multiselect p-component p-inputwrapper",{"p-multiselect-chip":"chip"===n.display,"p-disabled":n.disabled,"p-focus":t.focused,"p-inputwrapper-filled":n.modelValue&&n.modelValue.length,"p-inputwrapper-focus":t.focused||t.overlayVisible,"p-overlay-open":t.overlayVisible}]},labelContainer:"p-multiselect-label-container",label:function(e){var t=e.props;return["p-multiselect-label",{"p-placeholder":e.instance.label===t.placeholder,"p-multiselect-label-empty":!(t.placeholder||t.modelValue&&0!==t.modelValue.length)}]},token:"p-multiselect-token",tokenLabel:"p-multiselect-token-label",removeTokenIcon:"p-multiselect-token-icon",trigger:"p-multiselect-trigger",loadingIcon:"p-multiselect-trigger-icon",dropdownIcon:"p-multiselect-trigger-icon",panel:function(e){var t=e.instance;return["p-multiselect-panel p-component",{"p-input-filled":"filled"===t.$primevue.config.inputStyle,"p-ripple-disabled":!1===t.$primevue.config.ripple}]},header:"p-multiselect-header",headerCheckboxContainer:function(e){var t=e.instance;return["p-checkbox p-component",{"p-checkbox-checked":t.allSelected,"p-checkbox-focused":t.headerCheckboxFocused}]},headerCheckbox:function(e){var t=e.instance;return["p-checkbox-box",{"p-highlight":t.allSelected,"p-focus":t.headerCheckboxFocused}]},headerCheckboxIcon:"p-checkbox-icon",filterContainer:"p-multiselect-filter-container",filterInput:"p-multiselect-filter p-inputtext p-component",filterIcon:"p-multiselect-filter-icon",closeButton:"p-multiselect-close p-link",closeIcon:"p-multiselect-close-icon",wrapper:"p-multiselect-items-wrapper",list:"p-multiselect-items p-component",itemGroup:"p-multiselect-item-group",item:function(e){var t=e.instance,n=e.option,i=e.index,o=e.getItemOptions;return["p-multiselect-item",{"p-highlight":t.isSelected(n),"p-focus":t.focusedOptionIndex===t.getOptionIndex(i,o),"p-disabled":t.isOptionDisabled(n)}]},checkboxContainer:"p-checkbox p-component",checkbox:function(e){return["p-checkbox-box",{"p-highlight":e.instance.isSelected(e.option)}]},checkboxIcon:"p-checkbox-icon",emptyMessage:"p-multiselect-empty-message"},inlineStyles:w,loadStyle:L.load},provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","change","focus","blur","before-show","before-hide","show","hide","filter","selectall-change"],outsideClickListener:null,scrollHandler:null,resizeListener:null,overlay:null,list:null,virtualScroller:null,startRangeIndex:-1,searchTimeout:null,searchValue:"",selectOnFocus:!1,focusOnHover:!1,data:function(){return{id:this.$attrs.id,focused:!1,focusedOptionIndex:-1,headerCheckboxFocused:!1,filterValue:null,overlayVisible:!1}},watch:{"$attrs.id":function(e){this.id=e||u.UniqueComponentId()},options:function(){this.autoUpdateModel()}},mounted:function(){this.id=this.id||u.UniqueComponentId(),this.autoUpdateModel()},beforeUnmount:function(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(u.ZIndexUtils.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex:function(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel:function(e){return this.optionLabel?u.ObjectUtils.resolveFieldData(e,this.optionLabel):e},getOptionValue:function(e){return this.optionValue?u.ObjectUtils.resolveFieldData(e,this.optionValue):e},getOptionRenderKey:function(e){return this.dataKey?u.ObjectUtils.resolveFieldData(e,this.dataKey):this.getOptionLabel(e)},getHeaderCheckboxPTOptions:function(e){return this.ptm(e,{context:{selected:this.allSelected,focused:this.headerCheckboxFocused}})},getCheckboxPTOptions:function(e,t,n,i){return this.ptm(i,{context:{selected:this.isSelected(e),focused:this.focusedOptionIndex===this.getOptionIndex(n,t),disabled:this.isOptionDisabled(e)}})},isOptionDisabled:function(e){return!(!this.maxSelectionLimitReached||this.isSelected(e))||!!this.optionDisabled&&u.ObjectUtils.resolveFieldData(e,this.optionDisabled)},isOptionGroup:function(e){return this.optionGroupLabel&&e.optionGroup&&e.group},getOptionGroupLabel:function(e){return u.ObjectUtils.resolveFieldData(e,this.optionGroupLabel)},getOptionGroupChildren:function(e){return u.ObjectUtils.resolveFieldData(e,this.optionGroupChildren)},getAriaPosInset:function(e){var t=this;return(this.optionGroupLabel?e-this.visibleOptions.slice(0,e).filter((function(e){return t.isOptionGroup(e)})).length:e)+1},show:function(e){this.$emit("before-show"),this.overlayVisible=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,e&&u.DomHandler.focus(this.$refs.focusInput)},hide:function(e){var t=this;setTimeout((function(){t.$emit("before-hide"),t.overlayVisible=!1,t.focusedOptionIndex=-1,t.searchValue="",t.resetFilterOnHide&&(t.filterValue=null),e&&u.DomHandler.focus(t.$refs.focusInput)}),0)},onFocus:function(e){this.disabled||(this.focused=!0,this.focusedOptionIndex=-1!==this.focusedOptionIndex?this.focusedOptionIndex:this.overlayVisible&&this.autoOptionFocus?this.findFirstFocusedOptionIndex():-1,this.overlayVisible&&this.scrollInView(this.focusedOptionIndex),this.$emit("focus",e))},onBlur:function(e){this.focused=!1,this.focusedOptionIndex=-1,this.searchValue="",this.$emit("blur",e)},onKeyDown:function(e){var t=this;if(this.disabled)e.preventDefault();else{var n=e.metaKey||e.ctrlKey;switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(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"Space":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e);break;case"ShiftLeft":case"ShiftRight":this.onShiftKey(e);break;default:if("KeyA"===e.code&&n){var i=this.visibleOptions.filter((function(e){return t.isValidOption(e)})).map((function(e){return t.getOptionValue(e)}));this.updateModel(e,i),e.preventDefault();break}!n&&u.ObjectUtils.isPrintableCharacter(e.key)&&(!this.overlayVisible&&this.show(),this.searchOptions(e),e.preventDefault())}}},onContainerClick:function(e){this.disabled||this.loading||this.overlay&&this.overlay.contains(e.target)||(this.overlayVisible?this.hide(!0):this.show(!0))},onFirstHiddenFocus:function(e){var t=e.relatedTarget===this.$refs.focusInput?u.DomHandler.getFirstFocusableElement(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;u.DomHandler.focus(t)},onLastHiddenFocus:function(e){var t=e.relatedTarget===this.$refs.focusInput?u.DomHandler.getLastFocusableElement(this.overlay,':not([data-p-hidden-focusable="true"])'):this.$refs.focusInput;u.DomHandler.focus(t)},onCloseClick:function(){this.hide(!0)},onHeaderCheckboxFocus:function(){this.headerCheckboxFocused=!0},onHeaderCheckboxBlur:function(){this.headerCheckboxFocused=!1},onOptionSelect:function(e,t){var n=this,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1,o=arguments.length>3&&void 0!==arguments[3]&&arguments[3];if(!this.disabled&&!this.isOptionDisabled(t)){var l=null;l=this.isSelected(t)?this.modelValue.filter((function(e){return!u.ObjectUtils.equals(e,n.getOptionValue(t),n.equalityKey)})):[].concat(M(this.modelValue||[]),[this.getOptionValue(t)]),this.updateModel(e,l),-1!==i&&(this.focusedOptionIndex=i),o&&u.DomHandler.focus(this.$refs.focusInput)}},onOptionMouseMove:function(e,t){this.focusOnHover&&this.changeFocusedOptionIndex(e,t)},onOptionSelectRange:function(e){var t=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:-1,i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:-1;if(-1===n&&(n=this.findNearestSelectedOptionIndex(i,!0)),-1===i&&(i=this.findNearestSelectedOptionIndex(n)),-1!==n&&-1!==i){var o=Math.min(n,i),l=Math.max(n,i),s=this.visibleOptions.slice(o,l+1).filter((function(e){return t.isValidOption(e)})).map((function(e){return t.getOptionValue(e)}));this.updateModel(e,s)}},onFilterChange:function(e){var t=e.target.value;this.filterValue=t,this.focusedOptionIndex=-1,this.$emit("filter",{originalEvent:e,value:t}),!this.virtualScrollerDisabled&&this.virtualScroller.scrollToIndex(0)},onFilterKeyDown:function(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e,!0);break;case"ArrowLeft":case"ArrowRight":this.onArrowLeftKey(e,!0);break;case"Home":this.onHomeKey(e,!0);break;case"End":this.onEndKey(e,!0);break;case"Enter":this.onEnterKey(e);break;case"Escape":this.onEscapeKey(e);break;case"Tab":this.onTabKey(e,!0)}},onFilterBlur:function(){this.focusedOptionIndex=-1},onFilterUpdated:function(){this.overlayVisible&&this.alignOverlay()},onOverlayClick:function(e){I.default.emit("overlay-click",{originalEvent:e,target:this.$el})},onOverlayKeyDown:function(e){if("Escape"===e.code)this.onEscapeKey(e)},onArrowDownKey:function(e){var t=-1!==this.focusedOptionIndex?this.findNextOptionIndex(this.focusedOptionIndex):this.findFirstFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,this.startRangeIndex,t),this.changeFocusedOptionIndex(e,t),!this.overlayVisible&&this.show(),e.preventDefault()},onArrowUpKey:function(e){if(e.altKey&&!(arguments.length>1&&void 0!==arguments[1]&&arguments[1]))-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(),e.preventDefault();else{var t=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(this.focusedOptionIndex):this.findLastFocusedOptionIndex();e.shiftKey&&this.onOptionSelectRange(e,t,this.startRangeIndex),this.changeFocusedOptionIndex(e,t),!this.overlayVisible&&this.show(),e.preventDefault()}},onArrowLeftKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&(this.focusedOptionIndex=-1)},onHomeKey:function(e){var t=e.currentTarget;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){t.setSelectionRange(0,e.shiftKey?t.value.length:0),this.focusedOptionIndex=-1}else{var n=e.metaKey||e.ctrlKey,i=this.findFirstOptionIndex();e.shiftKey&&n&&this.onOptionSelectRange(e,i,this.startRangeIndex),this.changeFocusedOptionIndex(e,i),!this.overlayVisible&&this.show()}e.preventDefault()},onEndKey:function(e){var t=e.currentTarget;if(arguments.length>1&&void 0!==arguments[1]&&arguments[1]){var n=t.value.length;t.setSelectionRange(e.shiftKey?0:n,n),this.focusedOptionIndex=-1}else{var i=e.metaKey||e.ctrlKey,o=this.findLastOptionIndex();e.shiftKey&&i&&this.onOptionSelectRange(e,this.startRangeIndex,o),this.changeFocusedOptionIndex(e,o),!this.overlayVisible&&this.show()}e.preventDefault()},onPageUpKey:function(e){this.scrollInView(0),e.preventDefault()},onPageDownKey:function(e){this.scrollInView(this.visibleOptions.length-1),e.preventDefault()},onEnterKey:function(e){this.overlayVisible?-1!==this.focusedOptionIndex&&(e.shiftKey?this.onOptionSelectRange(e,this.focusedOptionIndex):this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex])):this.onArrowDownKey(e),e.preventDefault()},onEscapeKey:function(e){this.overlayVisible&&this.hide(!0),e.preventDefault()},onTabKey:function(e){arguments.length>1&&void 0!==arguments[1]&&arguments[1]||(this.overlayVisible&&this.hasFocusableElements()?(u.DomHandler.focus(e.shiftKey?this.$refs.lastHiddenFocusableElementOnOverlay:this.$refs.firstHiddenFocusableElementOnOverlay),e.preventDefault()):(-1!==this.focusedOptionIndex&&this.onOptionSelect(e,this.visibleOptions[this.focusedOptionIndex]),this.overlayVisible&&this.hide(this.filter)))},onShiftKey:function(){this.startRangeIndex=this.focusedOptionIndex},onOverlayEnter:function(e){u.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay),u.DomHandler.addStyles(e,{position:"absolute",top:"0",left:"0"}),this.alignOverlay(),this.scrollInView(),this.autoFilterFocus&&u.DomHandler.focus(this.$refs.filterInput)},onOverlayAfterEnter:function(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.$emit("show")},onOverlayLeave:function(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave:function(e){u.ZIndexUtils.clear(e)},alignOverlay:function(){"self"===this.appendTo?u.DomHandler.relativePosition(this.overlay,this.$el):(this.overlay.style.minWidth=u.DomHandler.getOuterWidth(this.$el)+"px",u.DomHandler.absolutePosition(this.overlay,this.$el))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.overlayVisible&&e.isOutsideClicked(t)&&e.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new u.ConnectedOverlayScrollHandler(this.$refs.container,(function(){e.overlayVisible&&e.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.overlayVisible&&!u.DomHandler.isTouchDevice()&&e.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isOutsideClicked:function(e){return!(this.$el.isSameNode(e.target)||this.$el.contains(e.target)||this.overlay&&this.overlay.contains(e.target))},getLabelByValue:function(e){var t=this,n=(this.optionGroupLabel?this.flatOptions(this.options):this.options||[]).find((function(n){return!t.isOptionGroup(n)&&u.ObjectUtils.equals(t.getOptionValue(n),e,t.equalityKey)}));return n?this.getOptionLabel(n):null},getSelectedItemsLabel:function(){var e=/{(.*?)}/;return e.test(this.selectedItemsLabel)?this.selectedItemsLabel.replace(this.selectedItemsLabel.match(e)[0],this.modelValue.length+""):this.selectedItemsLabel},onToggleAll:function(e){var t=this;if(null!==this.selectAll)this.$emit("selectall-change",{originalEvent:e,checked:!this.allSelected});else{var n=this.allSelected?[]:this.visibleOptions.filter((function(e){return t.isValidOption(e)})).map((function(e){return t.getOptionValue(e)}));this.updateModel(e,n)}this.headerCheckboxFocused=!0},removeOption:function(e,t){var n=this,i=this.modelValue.filter((function(e){return!u.ObjectUtils.equals(e,t,n.equalityKey)}));this.updateModel(e,i)},clearFilter:function(){this.filterValue=null},hasFocusableElements:function(){return u.DomHandler.getFocusableElements(this.overlay,':not([data-p-hidden-focusable="true"])').length>0},isOptionMatched:function(e){return this.isValidOption(e)&&this.getOptionLabel(e).toLocaleLowerCase(this.filterLocale).startsWith(this.searchValue.toLocaleLowerCase(this.filterLocale))},isValidOption:function(e){return e&&!(this.isOptionDisabled(e)||this.isOptionGroup(e))},isValidSelectedOption:function(e){return this.isValidOption(e)&&this.isSelected(e)},isSelected:function(e){var t=this,n=this.getOptionValue(e);return(this.modelValue||[]).some((function(e){return u.ObjectUtils.equals(e,n,t.equalityKey)}))},findFirstOptionIndex:function(){var e=this;return this.visibleOptions.findIndex((function(t){return e.isValidOption(t)}))},findLastOptionIndex:function(){var e=this;return u.ObjectUtils.findLastIndex(this.visibleOptions,(function(t){return e.isValidOption(t)}))},findNextOptionIndex:function(e){var t=this,n=e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((function(e){return t.isValidOption(e)})):-1;return n>-1?n+e+1:e},findPrevOptionIndex:function(e){var t=this,n=e>0?u.ObjectUtils.findLastIndex(this.visibleOptions.slice(0,e),(function(e){return t.isValidOption(e)})):-1;return n>-1?n:e},findFirstSelectedOptionIndex:function(){var e=this;return this.hasSelectedOption?this.visibleOptions.findIndex((function(t){return e.isValidSelectedOption(t)})):-1},findLastSelectedOptionIndex:function(){var e=this;return this.hasSelectedOption?u.ObjectUtils.findLastIndex(this.visibleOptions,(function(t){return e.isValidSelectedOption(t)})):-1},findNextSelectedOptionIndex:function(e){var t=this,n=this.hasSelectedOption&&e<this.visibleOptions.length-1?this.visibleOptions.slice(e+1).findIndex((function(e){return t.isValidSelectedOption(e)})):-1;return n>-1?n+e+1:-1},findPrevSelectedOptionIndex:function(e){var t=this,n=this.hasSelectedOption&&e>0?u.ObjectUtils.findLastIndex(this.visibleOptions.slice(0,e),(function(e){return t.isValidSelectedOption(e)})):-1;return n>-1?n:-1},findNearestSelectedOptionIndex:function(e){var t=-1;return this.hasSelectedOption&&(t=arguments.length>1&&void 0!==arguments[1]&&arguments[1]?-1===(t=this.findPrevSelectedOptionIndex(e))?this.findNextSelectedOptionIndex(e):t:-1===(t=this.findNextSelectedOptionIndex(e))?this.findPrevSelectedOptionIndex(e):t),t>-1?t:e},findFirstFocusedOptionIndex:function(){var e=this.findFirstSelectedOptionIndex();return e<0?this.findFirstOptionIndex():e},findLastFocusedOptionIndex:function(){var e=this.findLastSelectedOptionIndex();return e<0?this.findLastOptionIndex():e},searchOptions:function(e){var t=this;this.searchValue=(this.searchValue||"")+e.key;var n=-1;-1===(n=-1!==this.focusedOptionIndex?-1===(n=this.visibleOptions.slice(this.focusedOptionIndex).findIndex((function(e){return t.isOptionMatched(e)})))?this.visibleOptions.slice(0,this.focusedOptionIndex).findIndex((function(e){return t.isOptionMatched(e)})):n+this.focusedOptionIndex:this.visibleOptions.findIndex((function(e){return t.isOptionMatched(e)})))&&-1===this.focusedOptionIndex&&(n=this.findFirstFocusedOptionIndex()),-1!==n&&this.changeFocusedOptionIndex(e,n),this.searchTimeout&&clearTimeout(this.searchTimeout),this.searchTimeout=setTimeout((function(){t.searchValue="",t.searchTimeout=null}),500)},changeFocusedOptionIndex:function(e,t){this.focusedOptionIndex!==t&&(this.focusedOptionIndex=t,this.scrollInView())},scrollInView:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:-1,t=-1!==e?"".concat(this.id,"_").concat(e):this.focusedOptionId,n=u.DomHandler.findSingle(this.list,'li[id="'.concat(t,'"]'));n?n.scrollIntoView&&n.scrollIntoView({block:"nearest",inline:"nearest"}):this.virtualScrollerDisabled||this.virtualScroller&&this.virtualScroller.scrollToIndex(-1!==e?e:this.focusedOptionIndex)},autoUpdateModel:function(){if(this.selectOnFocus&&this.autoOptionFocus&&!this.hasSelectedOption){this.focusedOptionIndex=this.findFirstFocusedOptionIndex();var e=this.getOptionValue(this.visibleOptions[this.focusedOptionIndex]);this.updateModel(null,[e])}},updateModel:function(e,t){this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})},flatOptions:function(e){var t=this;return(e||[]).reduce((function(e,n,i){e.push({optionGroup:n,group:!0,index:i});var o=t.getOptionGroupChildren(n);return o&&o.forEach((function(t){return e.push(t)})),e}),[])},overlayRef:function(e){this.overlay=e},listRef:function(e,t){this.list=e,t&&t(e)},virtualScrollerRef:function(e){this.virtualScroller=e}},computed:{visibleOptions:function(){var t=this,n=this.optionGroupLabel?this.flatOptions(this.options):this.options||[];if(this.filterValue){var i=e.FilterService.filter(n,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);if(this.optionGroupLabel){var o=[];return(this.options||[]).forEach((function(e){var n=t.getOptionGroupChildren(e).filter((function(e){return i.includes(e)}));n.length>0&&o.push(P(P({},e),{},E({},"string"==typeof t.optionGroupChildren?t.optionGroupChildren:"items",M(n))))})),this.flatOptions(o)}return i}return n},label:function(){var e;if(this.modelValue&&this.modelValue.length){if(u.ObjectUtils.isNotEmpty(this.maxSelectedLabels)&&this.modelValue.length>this.maxSelectedLabels)return this.getSelectedItemsLabel();e="";for(var t=0;t<this.modelValue.length;t++)0!==t&&(e+=", "),e+=this.getLabelByValue(this.modelValue[t])}else e=this.placeholder;return e},chipSelectedItems:function(){return u.ObjectUtils.isNotEmpty(this.maxSelectedLabels)&&this.modelValue&&this.modelValue.length>this.maxSelectedLabels?this.modelValue.slice(0,this.maxSelectedLabels):this.modelValue},allSelected:function(){var e=this;return null!==this.selectAll?this.selectAll:u.ObjectUtils.isNotEmpty(this.visibleOptions)&&this.visibleOptions.every((function(t){return e.isOptionGroup(t)||e.isOptionDisabled(t)||e.isSelected(t)}))},hasSelectedOption:function(){return u.ObjectUtils.isNotEmpty(this.modelValue)},equalityKey:function(){return this.optionValue?null:this.dataKey},searchFields:function(){return this.filterFields||[this.optionLabel]},maxSelectionLimitReached:function(){return this.selectionLimit&&this.modelValue&&this.modelValue.length===this.selectionLimit},filterResultMessageText:function(){return u.ObjectUtils.isNotEmpty(this.visibleOptions)?this.filterMessageText.replaceAll("{0}",this.visibleOptions.length):this.emptyFilterMessageText},filterMessageText:function(){return this.filterMessage||this.$primevue.config.locale.searchMessage||""},emptyFilterMessageText:function(){return this.emptyFilterMessage||this.$primevue.config.locale.emptySearchMessage||this.$primevue.config.locale.emptyFilterMessage||""},emptyMessageText:function(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage||""},selectionMessageText:function(){return this.selectionMessage||this.$primevue.config.locale.selectionMessage||""},emptySelectionMessageText:function(){return this.emptySelectionMessage||this.$primevue.config.locale.emptySelectionMessage||""},selectedMessageText:function(){return this.hasSelectedOption?this.selectionMessageText.replaceAll("{0}",this.modelValue.length):this.emptySelectionMessageText},focusedOptionId:function(){return-1!==this.focusedOptionIndex?"".concat(this.id,"_").concat(this.focusedOptionIndex):null},ariaSetSize:function(){var e=this;return this.visibleOptions.filter((function(t){return!e.isOptionGroup(t)})).length},toggleAllAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria[this.allSelected?"selectAll":"unselectAll"]:void 0},closeAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.close:void 0},virtualScrollerDisabled:function(){return!this.virtualScrollerOptions}},directives:{ripple:S.default},components:{VirtualScroller:V.default,Portal:k.default,TimesIcon:O.default,SearchIcon:y.default,TimesCircleIcon:x.default,ChevronDownIcon:v.default,SpinnerIcon:g.default,CheckIcon:b.default}};function U(e){return U="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},U(e)}function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach((function(t){z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function z(e,t,n){return(t=q(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q(e){var t=_(e,"string");return"symbol"===U(t)?t:String(t)}function _(e,t){if("object"!==U(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==U(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var W=["id","disabled","placeholder","tabindex","aria-label","aria-labelledby","aria-expanded","aria-controls","aria-activedescendant"],Z=["onClick"],J=["checked","aria-label"],Q=["value","placeholder","aria-owns","aria-activedescendant"],X=["aria-label"],Y=["id"],ee=["id"],te=["id","aria-label","aria-selected","aria-disabled","aria-setsize","aria-posinset","onClick","onMousemove","data-p-highlight","data-p-focused","data-p-disabled"];return N.render=function(e,t,n,i,o,l){var s=f.resolveComponent("TimesCircleIcon"),r=f.resolveComponent("SpinnerIcon"),a=f.resolveComponent("VirtualScroller"),c=f.resolveComponent("Portal"),u=f.resolveDirective("ripple");return f.openBlock(),f.createElementBlock("div",f.mergeProps({ref:"container",class:e.cx("root"),onClick:t[15]||(t[15]=function(){return l.onContainerClick&&l.onContainerClick.apply(l,arguments)})},e.ptm("root"),{"data-pc-name":"multiselect"}),[f.createElementVNode("div",f.mergeProps({class:"p-hidden-accessible"},e.ptm("hiddenInputWrapper"),{"data-p-hidden-accessible":!0}),[f.createElementVNode("input",f.mergeProps({ref:"focusInput",id:e.inputId,type:"text",readonly:"",disabled:e.disabled,placeholder:e.placeholder,tabindex:e.disabled?-1:e.tabindex,role:"combobox","aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,"aria-haspopup":"listbox","aria-expanded":o.overlayVisible,"aria-controls":o.id+"_list","aria-activedescendant":o.focused?l.focusedOptionId:void 0,onFocus:t[0]||(t[0]=function(){return l.onFocus&&l.onFocus.apply(l,arguments)}),onBlur:t[1]||(t[1]=function(){return l.onBlur&&l.onBlur.apply(l,arguments)}),onKeydown:t[2]||(t[2]=function(){return l.onKeyDown&&l.onKeyDown.apply(l,arguments)})},G(G({},e.inputProps),e.ptm("hiddenInput"))),null,16,W)],16),f.createElementVNode("div",f.mergeProps({class:e.cx("labelContainer")},e.ptm("labelContainer")),[f.createElementVNode("div",f.mergeProps({class:e.cx("label")},e.ptm("label")),[f.renderSlot(e.$slots,"value",{value:e.modelValue,placeholder:e.placeholder},(function(){return["comma"===e.display?(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[f.createTextVNode(f.toDisplayString(l.label||"empty"),1)],64)):"chip"===e.display?(f.openBlock(),f.createElementBlock(f.Fragment,{key:1},[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(l.chipSelectedItems,(function(t){return f.openBlock(),f.createElementBlock("div",f.mergeProps({key:l.getLabelByValue(t),class:e.cx("token")},e.ptm("token")),[f.renderSlot(e.$slots,"chip",{value:t},(function(){return[f.createElementVNode("span",f.mergeProps({class:e.cx("tokenLabel")},e.ptm("tokenLabel")),f.toDisplayString(l.getLabelByValue(t)),17)]})),e.disabled?f.createCommentVNode("",!0):f.renderSlot(e.$slots,"removetokenicon",{key:0,class:f.normalizeClass(e.cx("removeTokenIcon")),onClick:function(e){return l.removeOption(e,t)}},(function(){return[e.removeTokenIcon?(f.openBlock(),f.createElementBlock("span",f.mergeProps({key:0,class:[e.cx("removeTokenIcon"),e.removeTokenIcon],onClick:f.withModifiers((function(e){return l.removeOption(e,t)}),["stop"])},e.ptm("removeTokenIcon")),null,16,Z)):(f.openBlock(),f.createBlock(s,f.mergeProps({key:1,class:e.cx("removeTokenIcon"),onClick:f.withModifiers((function(e){return l.removeOption(e,t)}),["stop"])},e.ptm("removeTokenIcon")),null,16,["class","onClick"]))]}))],16)})),128)),e.modelValue&&0!==e.modelValue.length?f.createCommentVNode("",!0):(f.openBlock(),f.createElementBlock(f.Fragment,{key:0},[f.createTextVNode(f.toDisplayString(e.placeholder||"empty"),1)],64))],64)):f.createCommentVNode("",!0)]}))],16)],16),f.createElementVNode("div",f.mergeProps({class:e.cx("trigger")},e.ptm("trigger")),[e.loading?f.renderSlot(e.$slots,"loadingicon",{key:0,class:f.normalizeClass(e.cx("loadingIcon"))},(function(){return[e.loadingIcon?(f.openBlock(),f.createElementBlock("span",f.mergeProps({key:0,class:[e.cx("loadingIcon"),"pi-spin",e.loadingIcon],"aria-hidden":"true"},e.ptm("loadingIcon")),null,16)):(f.openBlock(),f.createBlock(r,f.mergeProps({key:1,class:e.cx("loadingIcon"),spin:"","aria-hidden":"true"},e.ptm("loadingIcon")),null,16,["class"]))]})):f.renderSlot(e.$slots,"dropdownicon",{key:1,class:f.normalizeClass(e.cx("dropdownIcon"))},(function(){return[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(e.dropdownIcon?"span":"ChevronDownIcon"),f.mergeProps({class:[e.cx("dropdownIcon"),e.dropdownIcon],"aria-hidden":"true"},e.ptm("dropdownIcon")),null,16,["class"]))]}))],16),f.createVNode(c,{appendTo:e.appendTo},{default:f.withCtx((function(){return[f.createVNode(f.Transition,f.mergeProps({name:"p-connected-overlay",onEnter:l.onOverlayEnter,onAfterEnter:l.onOverlayAfterEnter,onLeave:l.onOverlayLeave,onAfterLeave:l.onOverlayAfterLeave},e.ptm("transition")),{default:f.withCtx((function(){return[o.overlayVisible?(f.openBlock(),f.createElementBlock("div",f.mergeProps({key:0,ref:l.overlayRef,style:e.panelStyle,class:[e.cx("panel"),e.panelClass],onClick:t[13]||(t[13]=function(){return l.onOverlayClick&&l.onOverlayClick.apply(l,arguments)}),onKeydown:t[14]||(t[14]=function(){return l.onOverlayKeyDown&&l.onOverlayKeyDown.apply(l,arguments)})},G(G({},e.panelProps),e.ptm("panel"))),[f.createElementVNode("span",f.mergeProps({ref:"firstHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[3]||(t[3]=function(){return l.onFirstHiddenFocus&&l.onFirstHiddenFocus.apply(l,arguments)})},e.ptm("hiddenFirstFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16),f.renderSlot(e.$slots,"header",{value:e.modelValue,options:l.visibleOptions}),e.showToggleAll&&null==e.selectionLimit||e.filter?(f.openBlock(),f.createElementBlock("div",f.mergeProps({key:0,class:e.cx("header")},e.ptm("header")),[e.showToggleAll&&null==e.selectionLimit?(f.openBlock(),f.createElementBlock("div",f.mergeProps({key:0,class:e.cx("headerCheckboxContainer"),onClick:t[6]||(t[6]=function(){return l.onToggleAll&&l.onToggleAll.apply(l,arguments)})},e.ptm("headerCheckboxContainer")),[f.createElementVNode("div",f.mergeProps({class:"p-hidden-accessible"},e.ptm("hiddenInputWrapper"),{"data-p-hidden-accessible":!0}),[f.createElementVNode("input",f.mergeProps({type:"checkbox",readonly:"",checked:l.allSelected,"aria-label":l.toggleAllAriaLabel,onFocus:t[4]||(t[4]=function(){return l.onHeaderCheckboxFocus&&l.onHeaderCheckboxFocus.apply(l,arguments)}),onBlur:t[5]||(t[5]=function(){return l.onHeaderCheckboxBlur&&l.onHeaderCheckboxBlur.apply(l,arguments)})},e.ptm("headerCheckbox")),null,16,J)],16),f.createElementVNode("div",f.mergeProps({class:e.cx("headerCheckbox")},l.getHeaderCheckboxPTOptions("headerCheckbox")),[f.renderSlot(e.$slots,"headercheckboxicon",{allSelected:l.allSelected,class:f.normalizeClass(e.cx("headerCheckboxIcon"))},(function(){return[f.withDirectives((f.openBlock(),f.createBlock(f.resolveDynamicComponent(e.checkboxIcon?"span":"CheckIcon"),f.mergeProps({class:[e.cx("headerCheckboxIcon"),z({},e.checkboxIcon,l.allSelected)]},l.getHeaderCheckboxPTOptions("headerCheckboxIcon")),null,16,["class"])),[[f.vShow,l.allSelected]])]}))],16)],16)):f.createCommentVNode("",!0),e.filter?(f.openBlock(),f.createElementBlock("div",f.mergeProps({key:1,class:e.cx("filterContainer")},e.ptm("filterContainer")),[f.createElementVNode("input",f.mergeProps({ref:"filterInput",type:"text",value:o.filterValue,onVnodeMounted:t[7]||(t[7]=function(){return l.onFilterUpdated&&l.onFilterUpdated.apply(l,arguments)}),class:e.cx("filterInput"),placeholder:e.filterPlaceholder,role:"searchbox",autocomplete:"off","aria-owns":o.id+"_list","aria-activedescendant":l.focusedOptionId,onKeydown:t[8]||(t[8]=function(){return l.onFilterKeyDown&&l.onFilterKeyDown.apply(l,arguments)}),onBlur:t[9]||(t[9]=function(){return l.onFilterBlur&&l.onFilterBlur.apply(l,arguments)}),onInput:t[10]||(t[10]=function(){return l.onFilterChange&&l.onFilterChange.apply(l,arguments)})},G(G({},e.filterInputProps),e.ptm("filterInput"))),null,16,Q),f.renderSlot(e.$slots,"filtericon",{class:f.normalizeClass(e.cx("filterIcon"))},(function(){return[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(e.filterIcon?"span":"SearchIcon"),f.mergeProps({class:[e.cx("filterIcon"),e.filterIcon]},e.ptm("filterIcon")),null,16,["class"]))]}))],16)):f.createCommentVNode("",!0),e.filter?(f.openBlock(),f.createElementBlock("span",f.mergeProps({key:2,role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenFilterResult"),{"data-p-hidden-accessible":!0}),f.toDisplayString(l.filterResultMessageText),17)):f.createCommentVNode("",!0),f.withDirectives((f.openBlock(),f.createElementBlock("button",f.mergeProps({class:e.cx("closeButton"),"aria-label":l.closeAriaLabel,onClick:t[11]||(t[11]=function(){return l.onCloseClick&&l.onCloseClick.apply(l,arguments)}),type:"button"},G(G({},e.closeButtonProps),e.ptm("closeButton"))),[f.renderSlot(e.$slots,"closeicon",{class:f.normalizeClass(e.cx("closeIcon"))},(function(){return[(f.openBlock(),f.createBlock(f.resolveDynamicComponent(e.closeIcon?"span":"TimesIcon"),f.mergeProps({class:[e.cx("closeIcon"),e.closeIcon]},e.ptm("closeIcon")),null,16,["class"]))]}))],16,X)),[[u]])],16)):f.createCommentVNode("",!0),f.createElementVNode("div",f.mergeProps({class:e.cx("wrapper"),style:{"max-height":l.virtualScrollerDisabled?e.scrollHeight:""}},e.ptm("wrapper")),[f.createVNode(a,f.mergeProps({ref:l.virtualScrollerRef},e.virtualScrollerOptions,{items:l.visibleOptions,style:{height:e.scrollHeight},tabindex:-1,disabled:l.virtualScrollerDisabled,pt:e.ptm("virtualScroller")}),f.createSlots({content:f.withCtx((function(t){var n=t.styleClass,i=t.contentRef,s=t.items,r=t.getItemOptions,a=t.contentStyle,c=t.itemSize;return[f.createElementVNode("ul",f.mergeProps({ref:function(e){return l.listRef(e,i)},id:o.id+"_list",class:[e.cx("list"),n],style:a,role:"listbox","aria-multiselectable":"true"},e.ptm("list")),[(f.openBlock(!0),f.createElementBlock(f.Fragment,null,f.renderList(s,(function(t,n){return f.openBlock(),f.createElementBlock(f.Fragment,{key:l.getOptionRenderKey(t,l.getOptionIndex(n,r))},[l.isOptionGroup(t)?(f.openBlock(),f.createElementBlock("li",f.mergeProps({key:0,id:o.id+"_"+l.getOptionIndex(n,r),style:{height:c?c+"px":void 0},class:e.cx("itemGroup"),role:"option"},e.ptm("itemGroup")),[f.renderSlot(e.$slots,"optiongroup",{option:t.optionGroup,index:l.getOptionIndex(n,r)},(function(){return[f.createTextVNode(f.toDisplayString(l.getOptionGroupLabel(t.optionGroup)),1)]}))],16,ee)):f.withDirectives((f.openBlock(),f.createElementBlock("li",f.mergeProps({key:1,id:o.id+"_"+l.getOptionIndex(n,r),style:{height:c?c+"px":void 0},class:e.cx("item",{option:t,index:n,getItemOptions:r}),role:"option","aria-label":l.getOptionLabel(t),"aria-selected":l.isSelected(t),"aria-disabled":l.isOptionDisabled(t),"aria-setsize":l.ariaSetSize,"aria-posinset":l.getAriaPosInset(l.getOptionIndex(n,r)),onClick:function(e){return l.onOptionSelect(e,t,l.getOptionIndex(n,r),!0)},onMousemove:function(e){return l.onOptionMouseMove(e,l.getOptionIndex(n,r))}},l.getCheckboxPTOptions(t,r,n,"item"),{"data-p-highlight":l.isSelected(t),"data-p-focused":o.focusedOptionIndex===l.getOptionIndex(n,r),"data-p-disabled":l.isOptionDisabled(t)}),[f.createElementVNode("div",f.mergeProps({class:e.cx("checkboxContainer")},e.ptm("checkboxContainer")),[f.createElementVNode("div",f.mergeProps({class:e.cx("checkbox",{option:t})},l.getCheckboxPTOptions(t,r,n,"checkbox")),[f.renderSlot(e.$slots,"itemcheckboxicon",{selected:l.isSelected(t),class:f.normalizeClass(e.cx("checkboxIcon"))},(function(){return[f.withDirectives((f.openBlock(),f.createBlock(f.resolveDynamicComponent(e.checkboxIcon?"span":"CheckIcon"),f.mergeProps({class:[e.cx("checkboxIcon"),z({},e.checkboxIcon,l.isSelected(t))]},l.getCheckboxPTOptions(t,r,n,"checkboxIcon")),null,16,["class"])),[[f.vShow,l.isSelected(t)]])]}))],16)],16),f.renderSlot(e.$slots,"option",{option:t,index:l.getOptionIndex(n,r)},(function(){return[f.createElementVNode("span",f.normalizeProps(f.guardReactiveProps(e.ptm("option"))),f.toDisplayString(l.getOptionLabel(t)),17)]}))],16,te)),[[u]])],64)})),128)),o.filterValue&&(!s||s&&0===s.length)?(f.openBlock(),f.createElementBlock("li",f.mergeProps({key:0,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage")),[f.renderSlot(e.$slots,"emptyfilter",{},(function(){return[f.createTextVNode(f.toDisplayString(l.emptyFilterMessageText),1)]}))],16)):!e.options||e.options&&0===e.options.length?(f.openBlock(),f.createElementBlock("li",f.mergeProps({key:1,class:e.cx("emptyMessage"),role:"option"},e.ptm("emptyMessage")),[f.renderSlot(e.$slots,"empty",{},(function(){return[f.createTextVNode(f.toDisplayString(l.emptyMessageText),1)]}))],16)):f.createCommentVNode("",!0)],16,Y)]})),_:2},[e.$slots.loader?{name:"loader",fn:f.withCtx((function(t){return[f.renderSlot(e.$slots,"loader",{options:t.options})]})),key:"0"}:void 0]),1040,["items","style","disabled","pt"])],16),f.renderSlot(e.$slots,"footer",{value:e.modelValue,options:l.visibleOptions}),!e.options||e.options&&0===e.options.length?(f.openBlock(),f.createElementBlock("span",f.mergeProps({key:1,role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenEmptyMessage"),{"data-p-hidden-accessible":!0}),f.toDisplayString(l.emptyMessageText),17)):f.createCommentVNode("",!0),f.createElementVNode("span",f.mergeProps({role:"status","aria-live":"polite",class:"p-hidden-accessible"},e.ptm("hiddenSelectedMessage"),{"data-p-hidden-accessible":!0}),f.toDisplayString(l.selectedMessageText),17),f.createElementVNode("span",f.mergeProps({ref:"lastHiddenFocusableElementOnOverlay",role:"presentation","aria-hidden":"true",class:"p-hidden-accessible p-hidden-focusable",tabindex:0,onFocus:t[12]||(t[12]=function(){return l.onLastHiddenFocus&&l.onLastHiddenFocus.apply(l,arguments)})},e.ptm("hiddenLastFocusableEl"),{"data-p-hidden-accessible":!0,"data-p-hidden-focusable":!0}),null,16)],16)):f.createCommentVNode("",!0)]})),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:3},8,["appendTo"])],16)},N}(primevue.api,primevue.icons.check,primevue.icons.chevrondown,primevue.icons.search,primevue.icons.spinner,primevue.icons.times,primevue.icons.timescircle,primevue.overlayeventbus,primevue.portal,primevue.ripple,primevue.utils,primevue.virtualscroller,primevue.basecomponent,primevue.usestyle,Vue);
@@ -7,13 +7,15 @@
7
7
  * @module orderlist
8
8
  *
9
9
  */
10
- import { ButtonHTMLAttributes, HTMLAttributes, VNode } from 'vue';
10
+ import { ButtonHTMLAttributes, HTMLAttributes, TransitionProps, VNode } from 'vue';
11
11
  import { ComponentHooks } from '../basecomponent';
12
12
  import { ButtonPassThroughOptionType } from '../button';
13
13
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
14
14
 
15
15
  export declare type OrderListPassThroughOptionType = OrderListPassThroughAttributes | ((options: OrderListPassThroughMethodOptions) => OrderListPassThroughAttributes | string) | string | null | undefined;
16
16
 
17
+ export declare type OrderListPassThroughTransitionType = TransitionProps | ((options: OrderListPassThroughMethodOptions) => TransitionProps) | undefined;
18
+
17
19
  /**
18
20
  * Custom passthrough(pt) option method.
19
21
  */
@@ -64,50 +66,54 @@ export interface OrderListSelectionChangeEvent {
64
66
  */
65
67
  export interface OrderListPassThroughOptions {
66
68
  /**
67
- * Uses to pass attributes to the root's DOM element.
69
+ * Used to pass attributes to the root's DOM element.
68
70
  */
69
71
  root?: OrderListPassThroughOptionType;
70
72
  /**
71
- * Uses to pass attributes to the controls' DOM element.
73
+ * Used to pass attributes to the controls' DOM element.
72
74
  */
73
75
  controls?: OrderListPassThroughOptionType;
74
76
  /**
75
- * Uses to pass attributes to the Button component.
77
+ * Used to pass attributes to the Button component.
76
78
  */
77
79
  moveUpButton?: ButtonPassThroughOptionType;
78
80
  /**
79
- * Uses to pass attributes to the Button component.
81
+ * Used to pass attributes to the Button component.
80
82
  */
81
83
  moveTopButton?: ButtonPassThroughOptionType;
82
84
  /**
83
- * Uses to pass attributes to the Button component.
85
+ * Used to pass attributes to the Button component.
84
86
  */
85
87
  moveDownButton?: ButtonPassThroughOptionType;
86
88
  /**
87
- * Uses to pass attributes to the Button component.
89
+ * Used to pass attributes to the Button component.
88
90
  */
89
91
  moveBottomButton?: ButtonPassThroughOptionType;
90
92
  /**
91
- * Uses to pass attributes to the container's DOM element.
93
+ * Used to pass attributes to the container's DOM element.
92
94
  */
93
95
  container?: OrderListPassThroughOptionType;
94
96
  /**
95
- * Uses to pass attributes to the header's DOM element.
97
+ * Used to pass attributes to the header's DOM element.
96
98
  */
97
99
  header?: OrderListPassThroughOptionType;
98
100
  /**
99
- * Uses to pass attributes to the list's DOM element.
101
+ * Used to pass attributes to the list's DOM element.
100
102
  */
101
103
  list?: OrderListPassThroughOptionType;
102
104
  /**
103
- * Uses to pass attributes to the item's DOM element.
105
+ * Used to pass attributes to the item's DOM element.
104
106
  */
105
107
  item?: OrderListPassThroughOptionType;
106
108
  /**
107
- * Uses to manage all lifecycle hooks
109
+ * Used to manage all lifecycle hooks
108
110
  * @see {@link BaseComponent.ComponentHooks}
109
111
  */
110
112
  hooks?: ComponentHooks;
113
+ /**
114
+ * Used to control Vue Transition API.
115
+ */
116
+ transition?: OrderListPassThroughTransitionType;
111
117
  }
112
118
 
113
119
  /**
@@ -203,23 +209,23 @@ export interface OrderListProps {
203
209
  */
204
210
  tabindex?: number | string | undefined;
205
211
  /**
206
- * Uses to pass all properties of the HTMLAttributes to the list element.
212
+ * Used to pass all properties of the HTMLAttributes to the list element.
207
213
  */
208
214
  listProps?: HTMLAttributes | undefined;
209
215
  /**
210
- * Uses to pass all properties of the HTMLButtonElement to the move up button inside the component.
216
+ * Used to pass all properties of the HTMLButtonElement to the move up button inside the component.
211
217
  */
212
218
  moveUpButtonProps?: ButtonHTMLAttributes | undefined;
213
219
  /**
214
- * Uses to pass all properties of the HTMLButtonElement to the move top button inside the component.
220
+ * Used to pass all properties of the HTMLButtonElement to the move top button inside the component.
215
221
  */
216
222
  moveTopButtonProps?: ButtonHTMLAttributes | undefined;
217
223
  /**
218
- * Uses to pass all properties of the HTMLButtonElement to the move down button inside the component.
224
+ * Used to pass all properties of the HTMLButtonElement to the move down button inside the component.
219
225
  */
220
226
  moveDownButtonProps?: ButtonHTMLAttributes | undefined;
221
227
  /**
222
- * Uses to pass all properties of the HTMLButtonElement to the move bottom button inside the component.
228
+ * Used to pass all properties of the HTMLButtonElement to the move bottom button inside the component.
223
229
  */
224
230
  moveBottomButtonProps?: ButtonHTMLAttributes | undefined;
225
231
  /**
@@ -231,7 +237,7 @@ export interface OrderListProps {
231
237
  */
232
238
  'aria-labelledby'?: string | undefined;
233
239
  /**
234
- * Uses to pass attributes to DOM elements inside the component.
240
+ * Used to pass attributes to DOM elements inside the component.
235
241
  * @type {OrderListPassThroughOptions}
236
242
  */
237
243
  pt?: OrderListPassThroughOptions;