primevue 3.41.1 → 3.43.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 (567) hide show
  1. package/accordion/Accordion.d.ts +4 -0
  2. package/accordion/Accordion.vue +1 -0
  3. package/accordion/accordion.cjs.js +1 -0
  4. package/accordion/accordion.cjs.min.js +1 -1
  5. package/accordion/accordion.esm.js +1 -0
  6. package/accordion/accordion.esm.min.js +1 -1
  7. package/accordion/accordion.js +1 -0
  8. package/accordion/accordion.min.js +1 -1
  9. package/accordiontab/AccordionTab.d.ts +2 -3
  10. package/api/api.cjs.js +6 -6
  11. package/api/api.cjs.min.js +1 -1
  12. package/api/api.esm.js +6 -6
  13. package/api/api.esm.min.js +1 -1
  14. package/api/api.js +6 -6
  15. package/api/api.min.js +1 -1
  16. package/autocomplete/AutoComplete.d.ts +23 -4
  17. package/autocomplete/BaseAutoComplete.vue +2 -2
  18. package/autocomplete/autocomplete.cjs.js +2 -2
  19. package/autocomplete/autocomplete.cjs.min.js +1 -1
  20. package/autocomplete/autocomplete.esm.js +2 -2
  21. package/autocomplete/autocomplete.esm.min.js +1 -1
  22. package/autocomplete/autocomplete.js +2 -2
  23. package/autocomplete/autocomplete.min.js +1 -1
  24. package/avatar/Avatar.d.ts +4 -5
  25. package/avatar/Avatar.vue +4 -11
  26. package/avatar/BaseAvatar.vue +2 -2
  27. package/avatar/avatar.cjs.js +6 -13
  28. package/avatar/avatar.cjs.min.js +1 -1
  29. package/avatar/avatar.esm.js +6 -13
  30. package/avatar/avatar.esm.min.js +1 -1
  31. package/avatar/avatar.js +6 -13
  32. package/avatar/avatar.min.js +1 -1
  33. package/badge/Badge.d.ts +8 -4
  34. package/badgedirective/BadgeDirective.d.ts +4 -0
  35. package/basecomponent/BaseComponent.vue +14 -1
  36. package/basecomponent/basecomponent.cjs.js +8 -1
  37. package/basecomponent/basecomponent.cjs.min.js +1 -1
  38. package/basecomponent/basecomponent.esm.js +8 -1
  39. package/basecomponent/basecomponent.esm.min.js +1 -1
  40. package/basecomponent/basecomponent.js +8 -1
  41. package/basecomponent/basecomponent.min.js +1 -1
  42. package/blockui/BlockUI.d.ts +4 -0
  43. package/breadcrumb/Breadcrumb.d.ts +6 -2
  44. package/button/Button.d.ts +10 -10
  45. package/button/Button.vue +1 -5
  46. package/button/button.cjs.js +1 -6
  47. package/button/button.cjs.min.js +1 -1
  48. package/button/button.esm.js +1 -6
  49. package/button/button.esm.min.js +1 -1
  50. package/button/button.js +1 -6
  51. package/button/button.min.js +1 -1
  52. package/calendar/BaseCalendar.vue +6 -2
  53. package/calendar/Calendar.d.ts +50 -13
  54. package/calendar/Calendar.vue +15 -19
  55. package/calendar/calendar.cjs.js +25 -21
  56. package/calendar/calendar.cjs.min.js +1 -1
  57. package/calendar/calendar.esm.js +25 -21
  58. package/calendar/calendar.esm.min.js +1 -1
  59. package/calendar/calendar.js +25 -21
  60. package/calendar/calendar.min.js +1 -1
  61. package/calendar/style/calendarstyle.cjs.js +4 -2
  62. package/calendar/style/calendarstyle.cjs.min.js +1 -1
  63. package/calendar/style/calendarstyle.esm.js +4 -2
  64. package/calendar/style/calendarstyle.esm.min.js +1 -1
  65. package/calendar/style/calendarstyle.js +4 -2
  66. package/calendar/style/calendarstyle.min.js +1 -1
  67. package/carousel/Carousel.d.ts +4 -0
  68. package/carousel/Carousel.vue +4 -2
  69. package/carousel/carousel.cjs.js +3 -1
  70. package/carousel/carousel.cjs.min.js +1 -1
  71. package/carousel/carousel.esm.js +3 -1
  72. package/carousel/carousel.esm.min.js +1 -1
  73. package/carousel/carousel.js +3 -1
  74. package/carousel/carousel.min.js +1 -1
  75. package/cascadeselect/BaseCascadeSelect.vue +2 -2
  76. package/cascadeselect/CascadeSelect.d.ts +6 -2
  77. package/cascadeselect/cascadeselect.cjs.js +2 -2
  78. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  79. package/cascadeselect/cascadeselect.esm.js +2 -2
  80. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  81. package/cascadeselect/cascadeselect.js +2 -2
  82. package/cascadeselect/cascadeselect.min.js +1 -1
  83. package/chart/Chart.d.ts +4 -0
  84. package/chart/Chart.vue +1 -1
  85. package/chart/chart.cjs.js +2 -1
  86. package/chart/chart.cjs.min.js +1 -1
  87. package/chart/chart.esm.js +2 -1
  88. package/chart/chart.esm.min.js +1 -1
  89. package/chart/chart.js +2 -1
  90. package/chart/chart.min.js +1 -1
  91. package/chart/style/chartstyle.cjs.js +6 -2
  92. package/chart/style/chartstyle.cjs.min.js +1 -1
  93. package/chart/style/chartstyle.esm.js +6 -2
  94. package/chart/style/chartstyle.esm.min.js +1 -1
  95. package/chart/style/chartstyle.js +6 -2
  96. package/chart/style/chartstyle.min.js +1 -1
  97. package/checkbox/BaseCheckbox.vue +2 -2
  98. package/checkbox/Checkbox.d.ts +6 -2
  99. package/checkbox/checkbox.cjs.js +2 -2
  100. package/checkbox/checkbox.cjs.min.js +1 -1
  101. package/checkbox/checkbox.esm.js +2 -2
  102. package/checkbox/checkbox.esm.min.js +1 -1
  103. package/checkbox/checkbox.js +2 -2
  104. package/checkbox/checkbox.min.js +1 -1
  105. package/chip/Chip.d.ts +4 -0
  106. package/chips/BaseChips.vue +2 -2
  107. package/chips/Chips.d.ts +6 -2
  108. package/chips/chips.cjs.js +2 -2
  109. package/chips/chips.cjs.min.js +1 -1
  110. package/chips/chips.esm.js +2 -2
  111. package/chips/chips.esm.min.js +1 -1
  112. package/chips/chips.js +2 -2
  113. package/chips/chips.min.js +1 -1
  114. package/colorpicker/ColorPicker.d.ts +4 -0
  115. package/column/Column.d.ts +27 -13
  116. package/columngroup/ColumnGroup.d.ts +2 -3
  117. package/config/config.cjs.js +1 -1
  118. package/config/config.cjs.min.js +1 -1
  119. package/config/config.esm.js +1 -1
  120. package/config/config.esm.min.js +1 -1
  121. package/config/config.js +1 -1
  122. package/config/config.min.js +1 -1
  123. package/confirmdialog/ConfirmDialog.d.ts +20 -2
  124. package/confirmpopup/ConfirmPopup.d.ts +20 -2
  125. package/confirmpopup/ConfirmPopup.vue +0 -1
  126. package/contextmenu/BaseContextMenu.vue +2 -2
  127. package/contextmenu/ContextMenu.d.ts +6 -2
  128. package/contextmenu/contextmenu.cjs.js +2 -2
  129. package/contextmenu/contextmenu.cjs.min.js +1 -1
  130. package/contextmenu/contextmenu.esm.js +2 -2
  131. package/contextmenu/contextmenu.esm.min.js +1 -1
  132. package/contextmenu/contextmenu.js +2 -2
  133. package/contextmenu/contextmenu.min.js +1 -1
  134. package/core/core.js +279 -129
  135. package/core/core.min.js +16 -16
  136. package/datatable/BodyCell.vue +1 -0
  137. package/datatable/ColumnFilter.vue +1 -0
  138. package/datatable/DataTable.d.ts +20 -2
  139. package/datatable/FooterCell.vue +1 -0
  140. package/datatable/HeaderCell.vue +1 -0
  141. package/datatable/HeaderCheckbox.vue +1 -0
  142. package/datatable/RowCheckbox.vue +1 -0
  143. package/datatable/RowRadioButton.vue +1 -0
  144. package/datatable/TableBody.vue +1 -0
  145. package/datatable/TableFooter.vue +2 -0
  146. package/datatable/TableHeader.vue +3 -0
  147. package/datatable/datatable.cjs.js +13 -0
  148. package/datatable/datatable.cjs.min.js +1 -1
  149. package/datatable/datatable.esm.js +13 -0
  150. package/datatable/datatable.esm.min.js +1 -1
  151. package/datatable/datatable.js +13 -0
  152. package/datatable/datatable.min.js +1 -1
  153. package/dataview/DataView.d.ts +20 -1
  154. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +4 -0
  155. package/deferredcontent/DeferredContent.d.ts +4 -0
  156. package/dialog/Dialog.d.ts +20 -16
  157. package/divider/Divider.d.ts +4 -0
  158. package/dock/BaseDock.vue +2 -2
  159. package/dock/Dock.d.ts +6 -2
  160. package/dock/DockSub.vue +2 -2
  161. package/dock/dock.cjs.js +6 -6
  162. package/dock/dock.cjs.min.js +1 -1
  163. package/dock/dock.esm.js +6 -6
  164. package/dock/dock.esm.min.js +1 -1
  165. package/dock/dock.js +6 -6
  166. package/dock/dock.min.js +1 -1
  167. package/dropdown/BaseDropdown.vue +2 -2
  168. package/dropdown/Dropdown.d.ts +30 -26
  169. package/dropdown/Dropdown.vue +2 -2
  170. package/dropdown/dropdown.cjs.js +4 -4
  171. package/dropdown/dropdown.cjs.min.js +1 -1
  172. package/dropdown/dropdown.esm.js +4 -4
  173. package/dropdown/dropdown.esm.min.js +1 -1
  174. package/dropdown/dropdown.js +4 -4
  175. package/dropdown/dropdown.min.js +1 -1
  176. package/editor/Editor.d.ts +4 -0
  177. package/editor/Editor.vue +6 -0
  178. package/editor/editor.cjs.js +6 -0
  179. package/editor/editor.cjs.min.js +1 -1
  180. package/editor/editor.esm.js +6 -0
  181. package/editor/editor.esm.min.js +1 -1
  182. package/editor/editor.js +6 -0
  183. package/editor/editor.min.js +1 -1
  184. package/fieldset/Fieldset.d.ts +4 -0
  185. package/fieldset/Fieldset.vue +1 -1
  186. package/fieldset/fieldset.cjs.js +1 -1
  187. package/fieldset/fieldset.cjs.min.js +1 -1
  188. package/fieldset/fieldset.esm.js +1 -1
  189. package/fieldset/fieldset.esm.min.js +1 -1
  190. package/fieldset/fieldset.js +1 -1
  191. package/fieldset/fieldset.min.js +1 -1
  192. package/fileupload/FileUpload.d.ts +26 -6
  193. package/galleria/BaseGalleria.vue +8 -0
  194. package/galleria/Galleria.d.ts +12 -0
  195. package/galleria/Galleria.vue +1 -1
  196. package/galleria/GalleriaContent.vue +11 -1
  197. package/galleria/GalleriaItem.vue +72 -3
  198. package/galleria/galleria.cjs.js +87 -7
  199. package/galleria/galleria.cjs.min.js +1 -1
  200. package/galleria/galleria.esm.js +87 -7
  201. package/galleria/galleria.esm.min.js +1 -1
  202. package/galleria/galleria.js +87 -7
  203. package/galleria/galleria.min.js +1 -1
  204. package/image/Image.d.ts +4 -0
  205. package/image/Image.vue +4 -1
  206. package/image/image.cjs.js +18 -13
  207. package/image/image.cjs.min.js +1 -1
  208. package/image/image.esm.js +18 -13
  209. package/image/image.esm.min.js +1 -1
  210. package/image/image.js +18 -13
  211. package/image/image.min.js +1 -1
  212. package/inlinemessage/InlineMessage.d.ts +4 -0
  213. package/inlinemessage/InlineMessage.vue +2 -2
  214. package/inlinemessage/inlinemessage.cjs.js +7 -5
  215. package/inlinemessage/inlinemessage.cjs.min.js +1 -1
  216. package/inlinemessage/inlinemessage.esm.js +5 -3
  217. package/inlinemessage/inlinemessage.esm.min.js +1 -1
  218. package/inlinemessage/inlinemessage.js +7 -5
  219. package/inlinemessage/inlinemessage.min.js +1 -1
  220. package/inplace/Inplace.d.ts +19 -1
  221. package/inputgroup/InputGroup.d.ts +4 -0
  222. package/inputgroupaddon/InputGroupAddon.d.ts +4 -0
  223. package/inputmask/InputMask.d.ts +4 -0
  224. package/inputnumber/BaseInputNumber.vue +2 -2
  225. package/inputnumber/InputNumber.d.ts +32 -14
  226. package/inputnumber/InputNumber.vue +10 -5
  227. package/inputnumber/inputnumber.cjs.js +24 -25
  228. package/inputnumber/inputnumber.cjs.min.js +1 -1
  229. package/inputnumber/inputnumber.esm.js +24 -25
  230. package/inputnumber/inputnumber.esm.min.js +1 -1
  231. package/inputnumber/inputnumber.js +24 -25
  232. package/inputnumber/inputnumber.min.js +1 -1
  233. package/inputswitch/BaseInputSwitch.vue +2 -2
  234. package/inputswitch/InputSwitch.d.ts +6 -2
  235. package/inputswitch/inputswitch.cjs.js +2 -2
  236. package/inputswitch/inputswitch.cjs.min.js +1 -1
  237. package/inputswitch/inputswitch.esm.js +2 -2
  238. package/inputswitch/inputswitch.esm.min.js +1 -1
  239. package/inputswitch/inputswitch.js +2 -2
  240. package/inputswitch/inputswitch.min.js +1 -1
  241. package/inputtext/InputText.d.ts +8 -4
  242. package/inputtext/InputText.vue +9 -9
  243. package/inputtext/inputtext.cjs.js +9 -9
  244. package/inputtext/inputtext.cjs.min.js +1 -1
  245. package/inputtext/inputtext.esm.js +9 -9
  246. package/inputtext/inputtext.esm.min.js +1 -1
  247. package/inputtext/inputtext.js +9 -9
  248. package/inputtext/inputtext.min.js +1 -1
  249. package/knob/BaseKnob.vue +2 -2
  250. package/knob/Knob.d.ts +6 -2
  251. package/knob/knob.cjs.js +2 -2
  252. package/knob/knob.cjs.min.js +1 -1
  253. package/knob/knob.esm.js +2 -2
  254. package/knob/knob.esm.min.js +1 -1
  255. package/knob/knob.js +2 -2
  256. package/knob/knob.min.js +1 -1
  257. package/listbox/BaseListbox.vue +2 -2
  258. package/listbox/Listbox.d.ts +6 -2
  259. package/listbox/Listbox.vue +4 -3
  260. package/listbox/listbox.cjs.js +6 -5
  261. package/listbox/listbox.cjs.min.js +1 -1
  262. package/listbox/listbox.esm.js +6 -5
  263. package/listbox/listbox.esm.min.js +1 -1
  264. package/listbox/listbox.js +6 -5
  265. package/listbox/listbox.min.js +1 -1
  266. package/megamenu/BaseMegaMenu.vue +2 -2
  267. package/megamenu/MegaMenu.d.ts +6 -2
  268. package/megamenu/megamenu.cjs.js +2 -2
  269. package/megamenu/megamenu.cjs.min.js +1 -1
  270. package/megamenu/megamenu.esm.js +2 -2
  271. package/megamenu/megamenu.esm.min.js +1 -1
  272. package/megamenu/megamenu.js +2 -2
  273. package/megamenu/megamenu.min.js +1 -1
  274. package/megamenu/style/megamenustyle.cjs.js +1 -1
  275. package/megamenu/style/megamenustyle.cjs.min.js +1 -1
  276. package/megamenu/style/megamenustyle.esm.js +1 -1
  277. package/megamenu/style/megamenustyle.esm.min.js +1 -1
  278. package/megamenu/style/megamenustyle.js +1 -1
  279. package/megamenu/style/megamenustyle.min.js +1 -1
  280. package/menu/BaseMenu.vue +2 -2
  281. package/menu/Menu.d.ts +6 -2
  282. package/menu/Menu.vue +5 -1
  283. package/menu/menu.cjs.js +6 -3
  284. package/menu/menu.cjs.min.js +1 -1
  285. package/menu/menu.esm.js +6 -3
  286. package/menu/menu.esm.min.js +1 -1
  287. package/menu/menu.js +6 -3
  288. package/menu/menu.min.js +1 -1
  289. package/menubar/BaseMenubar.vue +2 -2
  290. package/menubar/Menubar.d.ts +6 -2
  291. package/menubar/menubar.cjs.js +2 -2
  292. package/menubar/menubar.cjs.min.js +1 -1
  293. package/menubar/menubar.esm.js +2 -2
  294. package/menubar/menubar.esm.min.js +1 -1
  295. package/menubar/menubar.js +2 -2
  296. package/menubar/menubar.min.js +1 -1
  297. package/message/Message.d.ts +17 -13
  298. package/multiselect/BaseMultiSelect.vue +2 -2
  299. package/multiselect/MultiSelect.d.ts +6 -2
  300. package/multiselect/multiselect.cjs.js +2 -2
  301. package/multiselect/multiselect.cjs.min.js +1 -1
  302. package/multiselect/multiselect.esm.js +2 -2
  303. package/multiselect/multiselect.esm.min.js +1 -1
  304. package/multiselect/multiselect.js +2 -2
  305. package/multiselect/multiselect.min.js +1 -1
  306. package/orderlist/BaseOrderList.vue +2 -2
  307. package/orderlist/OrderList.d.ts +25 -7
  308. package/orderlist/OrderList.vue +4 -4
  309. package/orderlist/orderlist.cjs.js +18 -18
  310. package/orderlist/orderlist.cjs.min.js +1 -1
  311. package/orderlist/orderlist.esm.js +18 -18
  312. package/orderlist/orderlist.esm.min.js +1 -1
  313. package/orderlist/orderlist.js +18 -18
  314. package/orderlist/orderlist.min.js +1 -1
  315. package/organizationchart/OrganizationChart.d.ts +4 -0
  316. package/overlaypanel/OverlayPanel.d.ts +4 -0
  317. package/package.json +1 -1
  318. package/paginator/Paginator.d.ts +44 -26
  319. package/panel/Panel.d.ts +4 -0
  320. package/panel/Panel.vue +1 -1
  321. package/panel/panel.cjs.js +1 -1
  322. package/panel/panel.cjs.min.js +1 -1
  323. package/panel/panel.esm.js +1 -1
  324. package/panel/panel.esm.min.js +1 -1
  325. package/panel/panel.js +1 -1
  326. package/panel/panel.min.js +1 -1
  327. package/panelmenu/PanelMenu.d.ts +4 -0
  328. package/passthrough/tailwind/index.cjs.js +166 -53
  329. package/passthrough/tailwind/index.cjs.min.js +1 -1
  330. package/passthrough/tailwind/index.esm.js +166 -53
  331. package/passthrough/tailwind/index.esm.min.js +1 -1
  332. package/passthrough/tailwind/index.js +166 -53
  333. package/passthrough/tailwind/index.min.js +1 -1
  334. package/password/BasePassword.vue +2 -2
  335. package/password/Password.d.ts +23 -5
  336. package/password/Password.vue +2 -1
  337. package/password/password.cjs.js +5 -4
  338. package/password/password.cjs.min.js +1 -1
  339. package/password/password.esm.js +5 -4
  340. package/password/password.esm.min.js +1 -1
  341. package/password/password.js +5 -4
  342. package/password/password.min.js +1 -1
  343. package/picklist/PickList.d.ts +31 -13
  344. package/picklist/PickList.vue +48 -15
  345. package/picklist/picklist.cjs.js +47 -38
  346. package/picklist/picklist.cjs.min.js +1 -1
  347. package/picklist/picklist.esm.js +47 -38
  348. package/picklist/picklist.esm.min.js +1 -1
  349. package/picklist/picklist.js +47 -38
  350. package/picklist/picklist.min.js +1 -1
  351. package/progressbar/ProgressBar.d.ts +10 -6
  352. package/progressspinner/ProgressSpinner.d.ts +4 -0
  353. package/radiobutton/BaseRadioButton.vue +2 -2
  354. package/radiobutton/RadioButton.d.ts +6 -2
  355. package/radiobutton/radiobutton.cjs.js +2 -2
  356. package/radiobutton/radiobutton.cjs.min.js +1 -1
  357. package/radiobutton/radiobutton.esm.js +2 -2
  358. package/radiobutton/radiobutton.esm.min.js +1 -1
  359. package/radiobutton/radiobutton.js +2 -2
  360. package/radiobutton/radiobutton.min.js +1 -1
  361. package/rating/Rating.d.ts +4 -0
  362. package/resources/themes/arya-blue/theme.css +6 -6
  363. package/resources/themes/arya-green/theme.css +6 -6
  364. package/resources/themes/arya-orange/theme.css +6 -6
  365. package/resources/themes/arya-purple/theme.css +6 -6
  366. package/resources/themes/bootstrap4-dark-blue/theme.css +6 -6
  367. package/resources/themes/bootstrap4-dark-purple/theme.css +6 -6
  368. package/resources/themes/bootstrap4-light-blue/theme.css +6 -6
  369. package/resources/themes/bootstrap4-light-purple/theme.css +6 -6
  370. package/resources/themes/fluent-light/theme.css +6 -6
  371. package/resources/themes/lara-dark-amber/theme.css +6 -6
  372. package/resources/themes/lara-dark-blue/theme.css +6 -6
  373. package/resources/themes/lara-dark-cyan/theme.css +6 -6
  374. package/resources/themes/lara-dark-green/theme.css +6 -6
  375. package/resources/themes/lara-dark-indigo/theme.css +6 -6
  376. package/resources/themes/lara-dark-pink/theme.css +6 -6
  377. package/resources/themes/lara-dark-purple/theme.css +6 -6
  378. package/resources/themes/lara-dark-teal/theme.css +6 -6
  379. package/resources/themes/lara-light-amber/theme.css +6 -6
  380. package/resources/themes/lara-light-blue/theme.css +6 -6
  381. package/resources/themes/lara-light-cyan/theme.css +6 -6
  382. package/resources/themes/lara-light-green/theme.css +6 -6
  383. package/resources/themes/lara-light-indigo/theme.css +6 -6
  384. package/resources/themes/lara-light-pink/theme.css +6 -6
  385. package/resources/themes/lara-light-purple/theme.css +6 -6
  386. package/resources/themes/lara-light-teal/theme.css +6 -6
  387. package/resources/themes/luna-amber/theme.css +6 -6
  388. package/resources/themes/luna-blue/theme.css +6 -6
  389. package/resources/themes/luna-green/theme.css +6 -6
  390. package/resources/themes/luna-pink/theme.css +6 -6
  391. package/resources/themes/md-dark-deeppurple/theme.css +6 -6
  392. package/resources/themes/md-dark-indigo/theme.css +6 -6
  393. package/resources/themes/md-light-deeppurple/theme.css +6 -6
  394. package/resources/themes/md-light-indigo/theme.css +6 -6
  395. package/resources/themes/mdc-dark-deeppurple/theme.css +6 -6
  396. package/resources/themes/mdc-dark-indigo/theme.css +6 -6
  397. package/resources/themes/mdc-light-deeppurple/theme.css +6 -6
  398. package/resources/themes/mdc-light-indigo/theme.css +6 -6
  399. package/resources/themes/mira/theme.css +6 -6
  400. package/resources/themes/nano/theme.css +6 -6
  401. package/resources/themes/nova/theme.css +6 -6
  402. package/resources/themes/nova-accent/theme.css +6 -6
  403. package/resources/themes/nova-alt/theme.css +6 -6
  404. package/resources/themes/nova-vue/theme.css +6 -6
  405. package/resources/themes/rhea/theme.css +6 -6
  406. package/resources/themes/saga-blue/theme.css +6 -6
  407. package/resources/themes/saga-green/theme.css +6 -6
  408. package/resources/themes/saga-orange/theme.css +6 -6
  409. package/resources/themes/saga-purple/theme.css +6 -6
  410. package/resources/themes/soho-dark/theme.css +6 -6
  411. package/resources/themes/soho-light/theme.css +6 -6
  412. package/resources/themes/tailwind-light/theme.css +6 -6
  413. package/resources/themes/vela-blue/theme.css +6 -6
  414. package/resources/themes/vela-green/theme.css +6 -6
  415. package/resources/themes/vela-orange/theme.css +6 -6
  416. package/resources/themes/vela-purple/theme.css +6 -6
  417. package/resources/themes/viva-dark/theme.css +6 -6
  418. package/resources/themes/viva-light/theme.css +6 -6
  419. package/row/Row.d.ts +2 -3
  420. package/scrollpanel/ScrollPanel.d.ts +4 -0
  421. package/scrolltop/ScrollTop.d.ts +4 -0
  422. package/selectbutton/BaseSelectButton.vue +1 -1
  423. package/selectbutton/SelectButton.d.ts +5 -1
  424. package/selectbutton/selectbutton.cjs.js +1 -1
  425. package/selectbutton/selectbutton.cjs.min.js +1 -1
  426. package/selectbutton/selectbutton.esm.js +1 -1
  427. package/selectbutton/selectbutton.esm.min.js +1 -1
  428. package/selectbutton/selectbutton.js +1 -1
  429. package/selectbutton/selectbutton.min.js +1 -1
  430. package/sidebar/Sidebar.d.ts +4 -0
  431. package/skeleton/Skeleton.d.ts +4 -0
  432. package/slider/BaseSlider.vue +2 -2
  433. package/slider/Slider.d.ts +6 -2
  434. package/slider/slider.cjs.js +2 -2
  435. package/slider/slider.cjs.min.js +1 -1
  436. package/slider/slider.esm.js +2 -2
  437. package/slider/slider.esm.min.js +1 -1
  438. package/slider/slider.js +2 -2
  439. package/slider/slider.min.js +1 -1
  440. package/speeddial/BaseSpeedDial.vue +2 -2
  441. package/speeddial/SpeedDial.d.ts +21 -3
  442. package/speeddial/speeddial.cjs.js +2 -2
  443. package/speeddial/speeddial.cjs.min.js +1 -1
  444. package/speeddial/speeddial.esm.js +2 -2
  445. package/speeddial/speeddial.esm.min.js +1 -1
  446. package/speeddial/speeddial.js +2 -2
  447. package/speeddial/speeddial.min.js +1 -1
  448. package/splitbutton/SplitButton.d.ts +20 -2
  449. package/splitbutton/SplitButton.vue +2 -2
  450. package/splitbutton/splitbutton.cjs.js +4 -4
  451. package/splitbutton/splitbutton.cjs.min.js +1 -1
  452. package/splitbutton/splitbutton.esm.js +4 -4
  453. package/splitbutton/splitbutton.esm.min.js +1 -1
  454. package/splitbutton/splitbutton.js +4 -4
  455. package/splitbutton/splitbutton.min.js +1 -1
  456. package/splitbutton/style/splitbuttonstyle.cjs.js +1 -1
  457. package/splitbutton/style/splitbuttonstyle.cjs.min.js +1 -1
  458. package/splitbutton/style/splitbuttonstyle.esm.js +1 -1
  459. package/splitbutton/style/splitbuttonstyle.esm.min.js +1 -1
  460. package/splitbutton/style/splitbuttonstyle.js +1 -1
  461. package/splitbutton/style/splitbuttonstyle.min.js +1 -1
  462. package/splitter/Splitter.d.ts +4 -0
  463. package/splitter/Splitter.vue +1 -2
  464. package/splitter/splitter.cjs.js +1 -1
  465. package/splitter/splitter.cjs.min.js +1 -1
  466. package/splitter/splitter.esm.js +1 -1
  467. package/splitter/splitter.esm.min.js +1 -1
  468. package/splitter/splitter.js +1 -1
  469. package/splitter/splitter.min.js +1 -1
  470. package/splitterpanel/SplitterPanel.d.ts +4 -0
  471. package/steps/Steps.d.ts +4 -0
  472. package/tabmenu/BaseTabMenu.vue +2 -2
  473. package/tabmenu/TabMenu.d.ts +6 -2
  474. package/tabmenu/tabmenu.cjs.js +2 -2
  475. package/tabmenu/tabmenu.cjs.min.js +1 -1
  476. package/tabmenu/tabmenu.esm.js +2 -2
  477. package/tabmenu/tabmenu.esm.min.js +1 -1
  478. package/tabmenu/tabmenu.js +2 -2
  479. package/tabmenu/tabmenu.min.js +1 -1
  480. package/tabpanel/TabPanel.d.ts +4 -5
  481. package/tabview/TabView.vue +1 -0
  482. package/tabview/tabview.cjs.js +1 -0
  483. package/tabview/tabview.cjs.min.js +1 -1
  484. package/tabview/tabview.esm.js +1 -0
  485. package/tabview/tabview.esm.min.js +1 -1
  486. package/tabview/tabview.js +1 -0
  487. package/tabview/tabview.min.js +1 -1
  488. package/tag/Tag.d.ts +4 -0
  489. package/terminal/Terminal.d.ts +4 -0
  490. package/textarea/Textarea.d.ts +4 -0
  491. package/tieredmenu/BaseTieredMenu.vue +2 -2
  492. package/tieredmenu/TieredMenu.d.ts +20 -16
  493. package/tieredmenu/TieredMenu.vue +5 -1
  494. package/tieredmenu/tieredmenu.cjs.js +6 -3
  495. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  496. package/tieredmenu/tieredmenu.esm.js +6 -3
  497. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  498. package/tieredmenu/tieredmenu.js +6 -3
  499. package/tieredmenu/tieredmenu.min.js +1 -1
  500. package/timeline/Timeline.d.ts +4 -0
  501. package/toast/Toast.d.ts +4 -0
  502. package/togglebutton/BaseToggleButton.vue +2 -2
  503. package/togglebutton/ToggleButton.d.ts +6 -2
  504. package/togglebutton/togglebutton.cjs.js +2 -2
  505. package/togglebutton/togglebutton.cjs.min.js +1 -1
  506. package/togglebutton/togglebutton.esm.js +2 -2
  507. package/togglebutton/togglebutton.esm.min.js +1 -1
  508. package/togglebutton/togglebutton.js +2 -2
  509. package/togglebutton/togglebutton.min.js +1 -1
  510. package/toolbar/BaseToolbar.vue +1 -1
  511. package/toolbar/Toolbar.d.ts +5 -1
  512. package/toolbar/toolbar.cjs.js +1 -1
  513. package/toolbar/toolbar.cjs.min.js +1 -1
  514. package/toolbar/toolbar.esm.js +1 -1
  515. package/toolbar/toolbar.esm.min.js +1 -1
  516. package/toolbar/toolbar.js +1 -1
  517. package/toolbar/toolbar.min.js +1 -1
  518. package/tooltip/Tooltip.d.ts +4 -0
  519. package/tree/BaseTree.vue +6 -2
  520. package/tree/Tree.d.ts +52 -82
  521. package/tree/Tree.vue +5 -2
  522. package/tree/TreeNode.vue +17 -8
  523. package/tree/style/treestyle.cjs.js +1 -0
  524. package/tree/style/treestyle.cjs.min.js +1 -1
  525. package/tree/style/treestyle.esm.js +1 -0
  526. package/tree/style/treestyle.esm.min.js +1 -1
  527. package/tree/style/treestyle.js +1 -0
  528. package/tree/style/treestyle.min.js +1 -1
  529. package/tree/tree.cjs.js +35 -12
  530. package/tree/tree.cjs.min.js +1 -1
  531. package/tree/tree.esm.js +36 -13
  532. package/tree/tree.esm.min.js +1 -1
  533. package/tree/tree.js +35 -12
  534. package/tree/tree.min.js +1 -1
  535. package/treenode/TreeNode.d.ts +71 -0
  536. package/treenode/package.json +3 -0
  537. package/treeselect/BaseTreeSelect.vue +2 -2
  538. package/treeselect/TreeSelect.d.ts +24 -5
  539. package/treeselect/treeselect.cjs.js +2 -2
  540. package/treeselect/treeselect.cjs.min.js +1 -1
  541. package/treeselect/treeselect.esm.js +2 -2
  542. package/treeselect/treeselect.esm.min.js +1 -1
  543. package/treeselect/treeselect.js +2 -2
  544. package/treeselect/treeselect.min.js +1 -1
  545. package/treetable/BaseTreeTable.vue +4 -0
  546. package/treetable/BodyCell.vue +18 -4
  547. package/treetable/FooterCell.vue +1 -0
  548. package/treetable/HeaderCell.vue +1 -0
  549. package/treetable/TreeTable.d.ts +25 -2
  550. package/treetable/TreeTable.vue +5 -2
  551. package/treetable/TreeTableRow.vue +5 -0
  552. package/treetable/treetable.cjs.js +40 -7
  553. package/treetable/treetable.cjs.min.js +1 -1
  554. package/treetable/treetable.esm.js +41 -8
  555. package/treetable/treetable.esm.min.js +1 -1
  556. package/treetable/treetable.js +40 -7
  557. package/treetable/treetable.min.js +1 -1
  558. package/tristatecheckbox/BaseTriStateCheckbox.vue +2 -2
  559. package/tristatecheckbox/TriStateCheckbox.d.ts +6 -2
  560. package/tristatecheckbox/tristatecheckbox.cjs.js +2 -2
  561. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  562. package/tristatecheckbox/tristatecheckbox.esm.js +2 -2
  563. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  564. package/tristatecheckbox/tristatecheckbox.js +2 -2
  565. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  566. package/virtualscroller/VirtualScroller.d.ts +4 -0
  567. package/web-types.json +1 -1
@@ -1 +1 @@
1
- import e from"primevue/button";import t from"primevue/icons/angledoubledown";import o from"primevue/icons/angledoubleleft";import i from"primevue/icons/angledoubleright";import n from"primevue/icons/angledoubleup";import r from"primevue/icons/angledown";import s from"primevue/icons/angleleft";import l from"primevue/icons/angleright";import a from"primevue/icons/angleup";import c from"primevue/ripple";import{UniqueComponentId as u,ObjectUtils as d,DomHandler as m}from"primevue/utils";import p from"primevue/basecomponent";import h from"primevue/picklist/style";import{resolveComponent as f,resolveDirective as v,openBlock as g,createElementBlock as b,mergeProps as y,renderSlot as $,createVNode as I,withCtx as L,createCommentVNode as w,createElementVNode as T,TransitionGroup as D,Fragment as x,renderList as S,withDirectives as A,createBlock as _,resolveDynamicComponent as k}from"vue";function C(e){return E(e)||V(e)||O(e)||B()}function B(){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 O(e,t){if(e){if("string"==typeof e)return P(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?P(e,t):void 0}}function V(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function E(e){if(Array.isArray(e))return P(e)}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,i=new Array(t);o<t;o++)i[o]=e[o];return i}var K={name:"PickList",extends:{name:"BasePickList",extends:p,props:{modelValue:{type:Array,default:function(){return[[],[]]}},selection:{type:Array,default:function(){return[[],[]]}},dataKey:{type:String,default:null},listStyle:{type:null,default:null},metaKeySelection:{type:Boolean,default:!0},responsive:{type:Boolean,default:!0},breakpoint:{type:String,default:"960px"},stripedRows:{type:Boolean,default:!1},showSourceControls:{type:Boolean,default:!0},showTargetControls:{type:Boolean,default:!0},targetListProps:{type:null,default:null},sourceListProps:{type:null,default:null},moveUpButtonProps:{type:null,default:null},moveTopButtonProps:{type:null,default:null},moveDownButtonProps:{type:null,default:null},moveBottomButtonProps:{type:null,default:null},moveToTargetProps:{type:null,default:null},moveAllToTargetProps:{type:null,default:null},moveToSourceProps:{type:null,default:null},moveAllToSourceProps:{type:null,default:null},tabindex:{type:Number,default:0}},style:h,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","reorder","update:selection","selection-change","move-to-target","move-to-source","move-all-to-target","move-all-to-source","focus","blur"],itemTouched:!1,reorderDirection:null,styleElement:null,media:null,mediaChangeListener:null,data:function(){return{id:this.$attrs.id,d_selection:this.selection,focused:{sourceList:!1,targetList:!1},focusedOptionIndex:-1,viewChanged:!1}},watch:{"$attrs.id":function(e){this.id=e||u()},selection:function(e){this.d_selection=e},breakpoint:function(e){this.destroyMedia(),this.initMedia()}},updated:function(){this.reorderDirection&&(this.updateListScroll(this.$refs.sourceList.$el),this.updateListScroll(this.$refs.targetList.$el),this.reorderDirection=null)},beforeUnmount:function(){this.destroyStyle(),this.destroyMedia()},mounted:function(){this.id=this.id||u(),this.responsive&&(this.createStyle(),this.initMedia())},methods:{getItemKey:function(e,t){return this.dataKey?d.resolveFieldData(e,this.dataKey):t},getPTOptions:function(e,t,o,i){return this.ptm(t,{context:{active:this.isSelected(e,i),focused:o===this.focusedOptionId}})},isSelected:function(e,t){return-1!=d.findIndexInList(e,this.d_selection[t])},onListFocus:function(e,t){var o=m.findSingle(this.$refs[t].$el,'[data-p-highlight="true"]')||m.findSingle(this.$refs[t].$el,'[data-pc-section="item"]');if(o){var i=d.findIndexInList(o,this.$refs[t].$el.children);this.focused[t]=!0,this.changeFocusedOptionIndex(-1!==this.focusedOptionIndex?this.focusedOptionIndex:o?i:-1,t),this.$emit("focus",e)}},onListBlur:function(e,t){this.focused[t]=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onOptionMouseDown:function(e,t){this.focused[t]=!0,this.focusedOptionIndex=e},moveUp:function(e,t){if(this.d_selection&&this.d_selection[t]){for(var o=C(this.modelValue[t]),i=this.d_selection[t],n=0;n<i.length;n++){var r=d.findIndexInList(i[n],o);if(0===r)break;var s=o[r-1];o[r-1]=o[r],o[r]=s}var l=C(this.modelValue);l[t]=o,this.reorderDirection="up",this.$emit("update:modelValue",l),this.$emit("reorder",{originalEvent:e,value:l,direction:this.reorderDirection,listIndex:t})}},moveTop:function(e,t){if(this.d_selection){for(var o=C(this.modelValue[t]),i=this.d_selection[t],n=0;n<i.length;n++){var r=d.findIndexInList(i[n],o);if(0===r)break;var s=o.splice(r,1)[0];o.unshift(s)}var l=C(this.modelValue);l[t]=o,this.reorderDirection="top",this.$emit("update:modelValue",l),this.$emit("reorder",{originalEvent:e,value:l,direction:this.reorderDirection,listIndex:t})}},moveDown:function(e,t){if(this.d_selection){for(var o=C(this.modelValue[t]),i=this.d_selection[t],n=i.length-1;n>=0;n--){var r=d.findIndexInList(i[n],o);if(r===o.length-1)break;var s=o[r+1];o[r+1]=o[r],o[r]=s}var l=C(this.modelValue);l[t]=o,this.reorderDirection="down",this.$emit("update:modelValue",l),this.$emit("reorder",{originalEvent:e,value:l,direction:this.reorderDirection,listIndex:t})}},moveBottom:function(e,t){if(this.d_selection){for(var o=C(this.modelValue[t]),i=this.d_selection[t],n=i.length-1;n>=0;n--){var r=d.findIndexInList(i[n],o);if(r===o.length-1)break;var s=o.splice(r,1)[0];o.push(s)}var l=C(this.modelValue);l[t]=o,this.reorderDirection="bottom",this.$emit("update:modelValue",l),this.$emit("reorder",{originalEvent:e,value:l,direction:this.reorderDirection,listIndex:t})}},moveToTarget:function(e){var t=this.d_selection&&this.d_selection[0]?this.d_selection[0]:null,o=C(this.modelValue[0]),i=C(this.modelValue[1]);if(t){for(var n=0;n<t.length;n++){var r=t[n];-1==d.findIndexInList(r,i)&&i.push(o.splice(d.findIndexInList(r,o),1)[0])}var s=C(this.modelValue);s[0]=o,s[1]=i,this.$emit("update:modelValue",s),this.$emit("move-to-target",{originalEvent:e,items:C(new Set(t))}),this.d_selection[0]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},moveAllToTarget:function(e){if(this.modelValue[0]){var t=C(this.modelValue[0]),o=C(this.modelValue[1]);this.$emit("move-all-to-target",{originalEvent:e,items:t}),o=[].concat(C(o),C(t)),t=[];var i=C(this.modelValue);i[0]=t,i[1]=o,this.$emit("update:modelValue",i),this.d_selection[0]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},moveToSource:function(e){var t=this.d_selection&&this.d_selection[1]?this.d_selection[1]:null,o=C(this.modelValue[0]),i=C(this.modelValue[1]);if(t){for(var n=0;n<t.length;n++){var r=t[n];-1==d.findIndexInList(r,o)&&o.push(i.splice(d.findIndexInList(r,i),1)[0])}var s=C(this.modelValue);s[0]=o,s[1]=i,this.$emit("update:modelValue",s),this.$emit("move-to-source",{originalEvent:e,items:C(new Set(t))}),this.d_selection[1]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},moveAllToSource:function(e){if(this.modelValue[1]){var t=C(this.modelValue[0]),o=C(this.modelValue[1]);this.$emit("move-all-to-source",{originalEvent:e,items:o}),t=[].concat(C(t),C(o)),o=[];var i=C(this.modelValue);i[0]=t,i[1]=o,this.$emit("update:modelValue",i),this.d_selection[1]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},onItemClick:function(e,t,o,i){var n=0===i?"sourceList":"targetList";this.itemTouched=!1;var r,s=this.d_selection[i],l=d.findIndexInList(t,this.d_selection),a=-1!=l,c=!this.itemTouched&&this.metaKeySelection,u=m.find(this.$refs[n].$el,'[data-pc-section="item"]')[o].getAttribute("id");if(this.focusedOptionIndex=u,c){var p=e.metaKey||e.ctrlKey;a&&p?r=s.filter((function(e,t){return t!==l})):(r=p&&s?C(s):[]).push(t)}else a?r=s.filter((function(e,t){return t!==l})):(r=s?C(s):[]).push(t);var h=C(this.d_selection);h[i]=r,this.d_selection=h,this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})},onItemDblClick:function(e,t,o){0===o?this.moveToTarget(e):1===o&&this.moveToSource(e)},onItemTouchEnd:function(){this.itemTouched=!0},onItemKeyDown:function(e,t){switch(e.code){case"ArrowDown":this.onArrowDownKey(e,t);break;case"ArrowUp":this.onArrowUpKey(e,t);break;case"Home":this.onHomeKey(e,t);break;case"End":this.onEndKey(e,t);break;case"Enter":this.onEnterKey(e,t);break;case"Space":this.onSpaceKey(e,t);break;case"KeyA":e.ctrlKey&&(this.d_selection=C(this.modelValue),this.$emit("update:selection",this.d_selection),e.preventDefault())}},onArrowDownKey:function(e,t){var o=this.findNextOptionIndex(this.focusedOptionIndex,t);this.changeFocusedOptionIndex(o,t),e.shiftKey&&this.onEnterKey(e,t),e.preventDefault()},onArrowUpKey:function(e,t){var o=this.findPrevOptionIndex(this.focusedOptionIndex,t);this.changeFocusedOptionIndex(o,t),e.shiftKey&&this.onEnterKey(e,t),e.preventDefault()},onEnterKey:function(e,t){var o=m.find(this.$refs[t].$el,'[data-pc-section="item"]'),i=m.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),n=C(o).findIndex((function(e){return e===i})),r="sourceList"===t?0:1;this.onItemClick(e,this.modelValue[r][n],n,r),e.preventDefault()},onSpaceKey:function(e,t){if(e.preventDefault(),e.shiftKey&&this.d_selection&&this.d_selection.length>0){var o="sourceList"===t?0:1,i=m.find(this.$refs[t].$el,'[data-pc-section="item"]'),n=d.findIndexInList(this.d_selection[o][0],C(this.modelValue[o])),r=m.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),s=C(i).findIndex((function(e){return e===r}));this.d_selection[o]=C(this.modelValue[o]).slice(Math.min(n,s),Math.max(n,s)+1),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}else this.onEnterKey(e,t)},onHomeKey:function(e,t){if(e.ctrlKey&&e.shiftKey){var o="sourceList"===t?0:1,i=m.find(this.$refs[t].$el,'[data-pc-section="item"]'),n=m.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),r=C(i).findIndex((function(e){return e===n}));this.d_selection[o]=C(this.modelValue[o]).slice(0,r+1),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}else this.changeFocusedOptionIndex(0,t);e.preventDefault()},onEndKey:function(e,t){var o=m.find(this.$refs[t].$el,'[data-pc-section="item"]');if(e.ctrlKey&&e.shiftKey){var i="sourceList"===t?0:1,n=m.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),r=C(o).findIndex((function(e){return e===n}));this.d_selection[i]=C(this.modelValue[i]).slice(r,o.length),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}else this.changeFocusedOptionIndex(o.length-1,t);e.preventDefault()},findNextOptionIndex:function(e,t){var o=C(m.find(this.$refs[t].$el,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return o>-1?o+1:0},findPrevOptionIndex:function(e,t){var o=C(m.find(this.$refs[t].$el,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return o>-1?o-1:0},changeFocusedOptionIndex:function(e,t){var o=m.find(this.$refs[t].$el,'[data-pc-section="item"]'),i=e>=o.length?o.length-1:e<0?0:e;this.focusedOptionIndex=o[i].getAttribute("id"),this.scrollInView(o[i].getAttribute("id"),t)},scrollInView:function(e,t){var o=m.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id="'.concat(e,'"]'));o&&o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"start"})},updateListScroll:function(e){var t=m.find(e,'[data-pc-section="item"][data-p-highlight="true"]');if(t&&t.length)switch(this.reorderDirection){case"up":m.scrollInView(e,t[0]);break;case"top":e.scrollTop=0;break;case"down":m.scrollInView(e,t[t.length-1]);break;case"bottom":e.scrollTop=e.scrollHeight}},initMedia:function(){this.media=window.matchMedia("(max-width: ".concat(this.breakpoint,")")),this.viewChanged=this.media.matches,this.bindMediaChangeListener()},destroyMedia:function(){this.unbindMediaChangeListener()},bindMediaChangeListener:function(){var e=this;this.media&&!this.mediaChangeListener&&(this.mediaChangeListener=function(t){e.viewChanged=t.matches},this.media.addEventListener("change",this.mediaChangeListener))},unbindMediaChangeListener:function(){this.media&&this.mediaChangeListener&&(this.media.removeEventListener("change",this.mediaChangeListener),this.mediaChangeListener=null)},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.$el.setAttribute(this.attributeSelector,""),this.styleElement=document.createElement("style"),this.styleElement.type="text/css",m.setAttribute(this.styleElement,"nonce",null===(e=this.$primevue)||void 0===e||null===(e=e.config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce),document.head.appendChild(this.styleElement);var t="\n@media screen and (max-width: ".concat(this.breakpoint,") {\n .p-picklist[").concat(this.attributeSelector,"] {\n flex-direction: column;\n }\n\n .p-picklist[").concat(this.attributeSelector,"] .p-picklist-buttons {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-picklist[").concat(this.attributeSelector,"] .p-picklist-buttons .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-picklist[").concat(this.attributeSelector,"] .p-picklist-buttons .p-button:last-child {\n margin-right: 0;\n }\n}\n");this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},moveDisabled:function(e){if(!this.d_selection[e]||!this.d_selection[e].length)return!0},moveAllDisabled:function(e){return d.isEmpty(this[e])},moveSourceDisabled:function(){return d.isEmpty(this.targetList)}},computed:{idSource:function(){return"".concat(this.id,"_source")},idTarget:function(){return"".concat(this.id,"_target")},focusedOptionId:function(){return-1!==this.focusedOptionIndex?this.focusedOptionIndex:null},sourceList:function(){return this.modelValue&&this.modelValue[0]?this.modelValue[0]:null},targetList:function(){return this.modelValue&&this.modelValue[1]?this.modelValue[1]:null},attributeSelector:function(){return u()},moveUpAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveUp:void 0},moveTopAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveTop:void 0},moveDownAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveDown:void 0},moveBottomAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveBottom:void 0},moveToTargetAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveToTarget:void 0},moveAllToTargetAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveAllToTarget:void 0},moveToSourceAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveToSource:void 0},moveAllToSourceAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveAllToSource:void 0}},components:{PLButton:e,AngleRightIcon:l,AngleLeftIcon:s,AngleDownIcon:r,AngleUpIcon:a,AngleDoubleRightIcon:i,AngleDoubleLeftIcon:o,AngleDoubleDownIcon:t,AngleDoubleUpIcon:n},directives:{ripple:c}};function M(e){return M="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},M(e)}function U(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,i)}return o}function j(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?U(Object(o),!0).forEach((function(t){F(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):U(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function F(e,t,o){return(t=H(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function H(e){var t=R(e,"string");return"symbol"===M(t)?t:String(t)}function R(e,t){if("object"!==M(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var i=o.call(e,t||"default");if("object"!==M(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var N=["id","onClick","onDblclick","onMousedown","aria-selected","data-p-highlight","data-p-focused"],W=["id","onClick","onDblclick","onMousedown","aria-selected","data-p-highlight","data-p-focused"];K.render=function(e,t,o,i,n,r){var s=f("AngleUpIcon"),l=f("PLButton"),a=f("AngleDoubleUpIcon"),c=f("AngleDownIcon"),u=f("AngleDoubleDownIcon"),d=v("ripple");return g(),b("div",y({class:e.cx("root")},e.ptm("root")),[e.showSourceControls?(g(),b("div",y({key:0,class:e.cx("sourceControls")},e.ptm("sourceControls"),{"data-pc-group-section":"controls"}),[$(e.$slots,"sourcecontrolsstart"),I(l,y({"aria-label":r.moveUpAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[0]||(t[0]=function(e){return r.moveUp(e,0)}),pt:e.ptm("sourceMoveUpButton")},e.moveUpButtonProps,{unstyled:e.unstyled}),{icon:L((function(){return[$(e.$slots,"moveupicon",{},(function(){return[I(s,y(e.ptm("sourceMoveUpButton").icon,{"data-pc-section":"moveupicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveTopAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[1]||(t[1]=function(e){return r.moveTop(e,0)}),pt:e.ptm("sourceMoveTopButton")},e.moveTopButtonProps,{unstyled:e.unstyled}),{icon:L((function(){return[$(e.$slots,"movetopicon",{},(function(){return[I(a,y(e.ptm("sourceMoveTopButton").icon,{"data-pc-section":"movetopicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveDownAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[2]||(t[2]=function(e){return r.moveDown(e,0)}),pt:e.ptm("sourceMoveDownButton")},e.moveDownButtonProps,{unstyled:e.unstyled}),{icon:L((function(){return[$(e.$slots,"movedownicon",{},(function(){return[I(c,y(e.ptm("sourceMoveDownButton").icon,{"data-pc-section":"movedownicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveBottomAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[3]||(t[3]=function(e){return r.moveBottom(e,0)}),pt:e.ptm("sourceMoveBottomButton")},e.moveBottomButtonProps,{unstyled:e.unstyled}),{icon:L((function(){return[$(e.$slots,"movebottomicon",{},(function(){return[I(u,y(e.ptm("sourceMoveBottomButton").icon,{"data-pc-section":"movebottomicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),$(e.$slots,"sourcecontrolsend")],16)):w("",!0),T("div",y({class:e.cx("sourceWrapper")},e.ptm("sourceWrapper"),{"data-pc-group-section":"listwrapper"}),[e.$slots.sourceheader?(g(),b("div",y({key:0,class:e.cx("sourceHeader")},e.ptm("sourceHeader"),{"data-pc-group-section":"header"}),[$(e.$slots,"sourceheader")],16)):w("",!0),I(D,y({ref:"sourceList",id:r.idSource+"_list",name:"p-picklist-flip",tag:"ul",class:e.cx("sourceList"),style:e.listStyle,role:"listbox","aria-multiselectable":"true","aria-activedescendant":n.focused.sourceList?r.focusedOptionId:void 0,tabindex:r.sourceList&&r.sourceList.length>0?e.tabindex:-1,onFocus:t[5]||(t[5]=function(e){return r.onListFocus(e,"sourceList")}),onBlur:t[6]||(t[6]=function(e){return r.onListBlur(e,"sourceList")}),onKeydown:t[7]||(t[7]=function(e){return r.onItemKeyDown(e,"sourceList")})},j(j(j({},e.sourceListProps),e.ptm("sourceList")),e.ptm("transition")),{"data-pc-group-section":"list"}),{default:L((function(){return[(g(!0),b(x,null,S(r.sourceList,(function(o,i){return A((g(),b("li",y({key:r.getItemKey(o,i),id:r.idSource+"_"+i,class:e.cx("item",{item:o,id:"".concat(r.idSource,"_").concat(i),listIndex:0}),onClick:function(e){return r.onItemClick(e,o,i,0)},onDblclick:function(e){return r.onItemDblClick(e,o,0)},onTouchend:t[4]||(t[4]=function(){return r.onItemTouchEnd&&r.onItemTouchEnd.apply(r,arguments)}),onMousedown:function(e){return r.onOptionMouseDown(i,"sourceList")},role:"option","aria-selected":r.isSelected(o,0)},r.getPTOptions(o,"item","".concat(r.idSource,"_").concat(i),0),{"data-p-highlight":r.isSelected(o,0),"data-p-focused":"".concat(r.idSource,"_").concat(i)===r.focusedOptionId}),[$(e.$slots,"item",{item:o,index:i})],16,N)),[[d]])})),128))]})),_:3},16,["id","class","style","aria-activedescendant","tabindex"])],16),T("div",y({class:e.cx("buttons")},e.ptm("buttons"),{"data-pc-group-section":"controls"}),[$(e.$slots,"movecontrolsstart"),I(l,y({"aria-label":r.moveToTargetAriaLabel,type:"button",onClick:r.moveToTarget,disabled:r.moveDisabled(0),pt:e.ptm("moveToTargetButton")},e.moveToTargetProps,{unstyled:e.unstyled}),{icon:L((function(){return[$(e.$slots,"movetotargeticon",{viewChanged:n.viewChanged},(function(){return[(g(),_(k(n.viewChanged?"AngleDownIcon":"AngleRightIcon"),y(e.ptm("moveToTargetButton").icon,{"data-pc-section":"movetotargeticon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveAllToTargetAriaLabel,type:"button",onClick:r.moveAllToTarget,disabled:r.moveAllDisabled("sourceList"),pt:e.ptm("moveAllToTargetButton")},e.moveAllToTargetProps,{unstyled:e.unstyled}),{icon:L((function(){return[$(e.$slots,"movealltotargeticon",{viewChanged:n.viewChanged},(function(){return[(g(),_(k(n.viewChanged?"AngleDoubleDownIcon":"AngleDoubleRightIcon"),y(e.ptm("moveAllToTargetButton").icon,{"data-pc-section":"movealltotargeticon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveToSourceAriaLabel,type:"button",onClick:r.moveToSource,disabled:r.moveDisabled(1),pt:e.ptm("moveToSourceButton")},e.moveToSourceProps,{unstyled:e.unstyled}),{icon:L((function(){return[$(e.$slots,"movetosourceicon",{viewChanged:n.viewChanged},(function(){return[(g(),_(k(n.viewChanged?"AngleUpIcon":"AngleLeftIcon"),y(e.ptm("moveToSourceButton").icon,{"data-pc-section":"movetosourceicon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveAllToSourceAriaLabel,type:"button",onClick:r.moveAllToSource,disabled:r.moveSourceDisabled("targetList"),pt:e.ptm("moveAllToSourceButton")},e.moveAllToSourceProps,{unstyled:e.unstyled}),{icon:L((function(){return[$(e.$slots,"movealltosourceicon",{viewChanged:n.viewChanged},(function(){return[(g(),_(k(n.viewChanged?"AngleDoubleUpIcon":"AngleDoubleLeftIcon"),y(e.ptm("moveAllToSourceButton").icon,{"data-pc-section":"movealltosourceicon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),$(e.$slots,"movecontrolsend")],16),T("div",y({class:e.cx("targetWrapper")},e.ptm("targetWrapper"),{"data-pc-group-section":"listwrapper"}),[e.$slots.targetheader?(g(),b("div",y({key:0,class:e.cx("targetHeader")},e.ptm("targetHeader"),{"data-pc-group-section":"header"}),[$(e.$slots,"targetheader")],16)):w("",!0),I(D,y({ref:"targetList",id:r.idTarget+"_list",name:"p-picklist-flip",tag:"ul",class:e.cx("targetList"),style:e.listStyle,role:"listbox","aria-multiselectable":"true","aria-activedescendant":n.focused.targetList?r.focusedOptionId:void 0,tabindex:r.targetList&&r.targetList.length>0?e.tabindex:-1,onFocus:t[10]||(t[10]=function(e){return r.onListFocus(e,"targetList")}),onBlur:t[11]||(t[11]=function(e){return r.onListBlur(e,"targetList")}),onKeydown:t[12]||(t[12]=function(e){return r.onItemKeyDown(e,"targetList")})},j(j(j({},e.targetListProps),e.ptm("targetList")),e.ptm("transition")),{"data-pc-group-section":"list"}),{default:L((function(){return[(g(!0),b(x,null,S(r.targetList,(function(o,i){return A((g(),b("li",y({key:r.getItemKey(o,i),id:r.idTarget+"_"+i,class:e.cx("item",{item:o,id:"".concat(r.idTarget,"_").concat(i),listIndex:1}),onClick:function(e){return r.onItemClick(e,o,i,1)},onDblclick:function(e){return r.onItemDblClick(e,o,1)},onKeydown:t[8]||(t[8]=function(e){return r.onItemKeyDown(e,"targetList")}),onMousedown:function(e){return r.onOptionMouseDown(i,"targetList")},onTouchend:t[9]||(t[9]=function(){return r.onItemTouchEnd&&r.onItemTouchEnd.apply(r,arguments)}),role:"option","aria-selected":r.isSelected(o,1)},r.getPTOptions(o,"item","".concat(r.idTarget,"_").concat(i),1),{"data-p-highlight":r.isSelected(o,1),"data-p-focused":"".concat(r.idTarget,"_").concat(i)===r.focusedOptionId}),[$(e.$slots,"item",{item:o,index:i})],16,W)),[[d]])})),128))]})),_:3},16,["id","class","style","aria-activedescendant","tabindex"])],16),e.showTargetControls?(g(),b("div",y({key:1,class:e.cx("targetControls")},e.ptm("targetControls"),{"data-pc-group-section":"controls"}),[$(e.$slots,"targetcontrolsstart"),I(l,y({"aria-label":r.moveUpAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[13]||(t[13]=function(e){return r.moveUp(e,1)}),pt:e.ptm("targetMoveUpButton")},e.moveUpButtonProps,{unstyled:e.unstyled}),{icon:L((function(){return[$(e.$slots,"moveupicon",{},(function(){return[I(s,y(e.ptm("targetMoveUpButton").icon,{"data-pc-section":"moveupicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveTopAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[14]||(t[14]=function(e){return r.moveTop(e,1)}),pt:e.ptm("targetMoveTopButton")},e.moveTopButtonProps,{unstyled:e.unstyled}),{icon:L((function(){return[$(e.$slots,"movetopicon",{},(function(){return[I(a,y(e.ptm("targetMoveTopButton").icon,{"data-pc-section":"movetopicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveDownAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[15]||(t[15]=function(e){return r.moveDown(e,1)}),pt:e.ptm("targetMoveDownButton")},e.moveDownButtonProps,{unstyled:e.unstyled}),{icon:L((function(){return[$(e.$slots,"movedownicon",{},(function(){return[I(c,y(e.ptm("targetMoveDownButton").icon,{"data-pc-section":"movedownicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveBottomAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[16]||(t[16]=function(e){return r.moveBottom(e,1)}),pt:e.ptm("targetMoveBottomButton")},e.moveBottomButtonProps,{unstyled:e.unstyled}),{icon:L((function(){return[$(e.$slots,"movebottomicon",{},(function(){return[I(u,y(e.ptm("targetMoveBottomButton").icon,{"data-pc-section":"movebottomicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),$(e.$slots,"targetcontrolsend")],16)):w("",!0)],16)};export{K as default};
1
+ import e from"primevue/button";import t from"primevue/icons/angledoubledown";import o from"primevue/icons/angledoubleleft";import n from"primevue/icons/angledoubleright";import i from"primevue/icons/angledoubleup";import r from"primevue/icons/angledown";import s from"primevue/icons/angleleft";import l from"primevue/icons/angleright";import a from"primevue/icons/angleup";import c from"primevue/ripple";import{UniqueComponentId as u,ObjectUtils as d,DomHandler as m}from"primevue/utils";import p from"primevue/basecomponent";import h from"primevue/picklist/style";import{resolveComponent as f,resolveDirective as v,openBlock as g,createElementBlock as b,mergeProps as y,renderSlot as $,createVNode as I,withCtx as L,createCommentVNode as w,createElementVNode as T,TransitionGroup as x,Fragment as D,renderList as A,withDirectives as S,createBlock as _,resolveDynamicComponent as k}from"vue";function C(e){return E(e)||V(e)||O(e)||B()}function B(){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 O(e,t){if(e){if("string"==typeof e)return P(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?P(e,t):void 0}}function V(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function E(e){if(Array.isArray(e))return P(e)}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}var K={name:"PickList",extends:{name:"BasePickList",extends:p,props:{modelValue:{type:Array,default:function(){return[[],[]]}},selection:{type:Array,default:function(){return[[],[]]}},dataKey:{type:String,default:null},listStyle:{type:null,default:null},metaKeySelection:{type:Boolean,default:!0},responsive:{type:Boolean,default:!0},breakpoint:{type:String,default:"960px"},stripedRows:{type:Boolean,default:!1},showSourceControls:{type:Boolean,default:!0},showTargetControls:{type:Boolean,default:!0},targetListProps:{type:null,default:null},sourceListProps:{type:null,default:null},moveUpButtonProps:{type:null,default:null},moveTopButtonProps:{type:null,default:null},moveDownButtonProps:{type:null,default:null},moveBottomButtonProps:{type:null,default:null},moveToTargetProps:{type:null,default:null},moveAllToTargetProps:{type:null,default:null},moveToSourceProps:{type:null,default:null},moveAllToSourceProps:{type:null,default:null},tabindex:{type:Number,default:0}},style:h,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","reorder","update:selection","selection-change","move-to-target","move-to-source","move-all-to-target","move-all-to-source","focus","blur"],itemTouched:!1,reorderDirection:null,styleElement:null,media:null,mediaChangeListener:null,data:function(){return{id:this.$attrs.id,d_selection:this.selection,focused:{sourceList:!1,targetList:!1},focusedOptionIndex:-1,viewChanged:!1}},watch:{"$attrs.id":function(e){this.id=e||u()},selection:function(e){this.d_selection=e},breakpoint:function(e){this.destroyMedia(),this.initMedia()}},updated:function(){this.reorderDirection&&(this.updateListScroll(this.$refs.sourceList.$el),this.updateListScroll(this.$refs.targetList.$el),this.reorderDirection=null)},beforeUnmount:function(){this.destroyStyle(),this.destroyMedia()},mounted:function(){this.id=this.id||u(),this.responsive&&(this.createStyle(),this.initMedia())},methods:{getItemKey:function(e,t){return this.dataKey?d.resolveFieldData(e,this.dataKey):t},getPTOptions:function(e,t,o,n){return this.ptm(t,{context:{active:this.isSelected(e,n),focused:o===this.focusedOptionId}})},isSelected:function(e,t){return-1!=d.findIndexInList(e,this.d_selection[t])},onListFocus:function(e,t){var o=m.findSingle(this.$refs[t].$el,'[data-p-highlight="true"]')||m.findSingle(this.$refs[t].$el,'[data-pc-section="item"]');if(o){var n=d.findIndexInList(o,this.$refs[t].$el.children);this.focused[t]=!0,this.changeFocusedOptionIndex(-1!==this.focusedOptionIndex?this.focusedOptionIndex:o?n:-1,t),this.$emit("focus",e)}},onListBlur:function(e,t){this.focused[t]=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onOptionMouseDown:function(e,t){this.focused[t]=!0,this.focusedOptionIndex=e},moveUp:function(e,t){if(this.d_selection&&this.d_selection[t]){for(var o=C(this.modelValue[t]),n=this.d_selection[t],i=0;i<n.length;i++){var r=d.findIndexInList(n[i],o);if(0===r)break;var s=o[r-1];o[r-1]=o[r],o[r]=s}var l=C(this.modelValue);l[t]=o,this.reorderDirection="up",this.$emit("update:modelValue",l),this.$emit("reorder",{originalEvent:e,value:l,direction:this.reorderDirection,listIndex:t})}},moveTop:function(e,t){if(this.d_selection){for(var o=C(this.modelValue[t]),n=this.d_selection[t],i=0;i<n.length;i++){var r=d.findIndexInList(n[i],o);if(0===r)break;var s=o.splice(r,1)[0];o.unshift(s)}var l=C(this.modelValue);l[t]=o,this.reorderDirection="top",this.$emit("update:modelValue",l),this.$emit("reorder",{originalEvent:e,value:l,direction:this.reorderDirection,listIndex:t})}},moveDown:function(e,t){if(this.d_selection){for(var o=C(this.modelValue[t]),n=this.d_selection[t],i=n.length-1;i>=0;i--){var r=d.findIndexInList(n[i],o);if(r===o.length-1)break;var s=o[r+1];o[r+1]=o[r],o[r]=s}var l=C(this.modelValue);l[t]=o,this.reorderDirection="down",this.$emit("update:modelValue",l),this.$emit("reorder",{originalEvent:e,value:l,direction:this.reorderDirection,listIndex:t})}},moveBottom:function(e,t){if(this.d_selection){for(var o=C(this.modelValue[t]),n=this.d_selection[t],i=n.length-1;i>=0;i--){var r=d.findIndexInList(n[i],o);if(r===o.length-1)break;var s=o.splice(r,1)[0];o.push(s)}var l=C(this.modelValue);l[t]=o,this.reorderDirection="bottom",this.$emit("update:modelValue",l),this.$emit("reorder",{originalEvent:e,value:l,direction:this.reorderDirection,listIndex:t})}},moveToTarget:function(e){var t=this.d_selection&&this.d_selection[0]?this.d_selection[0]:null,o=C(this.modelValue[0]),n=C(this.modelValue[1]);if(t){for(var i=0;i<t.length;i++){var r=t[i];-1==d.findIndexInList(r,n)&&n.push(o.splice(d.findIndexInList(r,o),1)[0])}var s=C(this.modelValue);s[0]=o,s[1]=n,this.$emit("update:modelValue",s),this.$emit("move-to-target",{originalEvent:e,items:C(new Set(t))}),this.d_selection[0]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},moveAllToTarget:function(e){if(this.modelValue[0]){var t=C(this.modelValue[0]),o=C(this.modelValue[1]);this.$emit("move-all-to-target",{originalEvent:e,items:t}),o=[].concat(C(o),C(t)),t=[];var n=C(this.modelValue);n[0]=t,n[1]=o,this.$emit("update:modelValue",n),this.d_selection[0]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},moveToSource:function(e){var t=this.d_selection&&this.d_selection[1]?this.d_selection[1]:null,o=C(this.modelValue[0]),n=C(this.modelValue[1]);if(t){for(var i=0;i<t.length;i++){var r=t[i];-1==d.findIndexInList(r,o)&&o.push(n.splice(d.findIndexInList(r,n),1)[0])}var s=C(this.modelValue);s[0]=o,s[1]=n,this.$emit("update:modelValue",s),this.$emit("move-to-source",{originalEvent:e,items:C(new Set(t))}),this.d_selection[1]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},moveAllToSource:function(e){if(this.modelValue[1]){var t=C(this.modelValue[0]),o=C(this.modelValue[1]);this.$emit("move-all-to-source",{originalEvent:e,items:o}),t=[].concat(C(t),C(o)),o=[];var n=C(this.modelValue);n[0]=t,n[1]=o,this.$emit("update:modelValue",n),this.d_selection[1]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},onItemClick:function(e,t,o,n){var i=0===n?"sourceList":"targetList";this.itemTouched=!1;var r,s=this.d_selection[n],l=d.findIndexInList(t,this.d_selection),a=-1!=l,c=!this.itemTouched&&this.metaKeySelection,u=m.find(this.$refs[i].$el,'[data-pc-section="item"]')[o].getAttribute("id");if(this.focusedOptionIndex=u,c){var p=e.metaKey||e.ctrlKey;a&&p?r=s.filter((function(e,t){return t!==l})):(r=p&&s?C(s):[]).push(t)}else a?r=s.filter((function(e,t){return t!==l})):(r=s?C(s):[]).push(t);var h=C(this.d_selection);h[n]=r,this.d_selection=h,this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})},onItemDblClick:function(e,t,o){0===o?this.moveToTarget(e):1===o&&this.moveToSource(e)},onItemTouchEnd:function(){this.itemTouched=!0},onItemKeyDown:function(e,t){switch(e.code){case"ArrowDown":this.onArrowDownKey(e,t);break;case"ArrowUp":this.onArrowUpKey(e,t);break;case"Home":this.onHomeKey(e,t);break;case"End":this.onEndKey(e,t);break;case"Enter":this.onEnterKey(e,t);break;case"Space":this.onSpaceKey(e,t);break;case"KeyA":e.ctrlKey&&(this.d_selection=C(this.modelValue),this.$emit("update:selection",this.d_selection),e.preventDefault())}},onArrowDownKey:function(e,t){var o=this.findNextOptionIndex(this.focusedOptionIndex,t);this.changeFocusedOptionIndex(o,t),e.shiftKey&&this.onEnterKey(e,t),e.preventDefault()},onArrowUpKey:function(e,t){var o=this.findPrevOptionIndex(this.focusedOptionIndex,t);this.changeFocusedOptionIndex(o,t),e.shiftKey&&this.onEnterKey(e,t),e.preventDefault()},onEnterKey:function(e,t){var o=m.find(this.$refs[t].$el,'[data-pc-section="item"]'),n=m.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),i=C(o).findIndex((function(e){return e===n})),r="sourceList"===t?0:1;this.onItemClick(e,this.modelValue[r][i],i,r),e.preventDefault()},onSpaceKey:function(e,t){if(e.preventDefault(),e.shiftKey&&this.d_selection&&this.d_selection.length>0){var o="sourceList"===t?0:1,n=m.find(this.$refs[t].$el,'[data-pc-section="item"]'),i=d.findIndexInList(this.d_selection[o][0],C(this.modelValue[o])),r=m.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),s=C(n).findIndex((function(e){return e===r}));this.d_selection[o]=C(this.modelValue[o]).slice(Math.min(i,s),Math.max(i,s)+1),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}else this.onEnterKey(e,t)},onHomeKey:function(e,t){if(e.ctrlKey&&e.shiftKey){var o="sourceList"===t?0:1,n=m.find(this.$refs[t].$el,'[data-pc-section="item"]'),i=m.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),r=C(n).findIndex((function(e){return e===i}));this.d_selection[o]=C(this.modelValue[o]).slice(0,r+1),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}else this.changeFocusedOptionIndex(0,t);e.preventDefault()},onEndKey:function(e,t){var o=m.find(this.$refs[t].$el,'[data-pc-section="item"]');if(e.ctrlKey&&e.shiftKey){var n="sourceList"===t?0:1,i=m.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),r=C(o).findIndex((function(e){return e===i}));this.d_selection[n]=C(this.modelValue[n]).slice(r,o.length),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}else this.changeFocusedOptionIndex(o.length-1,t);e.preventDefault()},findNextOptionIndex:function(e,t){var o=C(m.find(this.$refs[t].$el,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return o>-1?o+1:0},findPrevOptionIndex:function(e,t){var o=C(m.find(this.$refs[t].$el,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return o>-1?o-1:0},changeFocusedOptionIndex:function(e,t){var o=m.find(this.$refs[t].$el,'[data-pc-section="item"]'),n=e>=o.length?o.length-1:e<0?0:e;this.focusedOptionIndex=o[n].getAttribute("id"),this.scrollInView(o[n].getAttribute("id"),t)},scrollInView:function(e,t){var o=m.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id="'.concat(e,'"]'));o&&o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"start"})},updateListScroll:function(e){var t=m.find(e,'[data-pc-section="item"][data-p-highlight="true"]');if(t&&t.length)switch(this.reorderDirection){case"up":m.scrollInView(e,t[0]);break;case"top":e.scrollTop=0;break;case"down":m.scrollInView(e,t[t.length-1]);break;case"bottom":e.scrollTop=e.scrollHeight}},initMedia:function(){this.media=window.matchMedia("(max-width: ".concat(this.breakpoint,")")),this.viewChanged=this.media.matches,this.bindMediaChangeListener()},destroyMedia:function(){this.unbindMediaChangeListener()},bindMediaChangeListener:function(){var e=this;this.media&&!this.mediaChangeListener&&(this.mediaChangeListener=function(t){e.viewChanged=t.matches},this.media.addEventListener("change",this.mediaChangeListener))},unbindMediaChangeListener:function(){this.media&&this.mediaChangeListener&&(this.media.removeEventListener("change",this.mediaChangeListener),this.mediaChangeListener=null)},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.$el.setAttribute(this.attributeSelector,""),this.styleElement=document.createElement("style"),this.styleElement.type="text/css",m.setAttribute(this.styleElement,"nonce",null===(e=this.$primevue)||void 0===e||null===(e=e.config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce),document.head.appendChild(this.styleElement);var t="\n@media screen and (max-width: ".concat(this.breakpoint,") {\n .p-picklist[").concat(this.attributeSelector,"] {\n flex-direction: column;\n }\n\n .p-picklist[").concat(this.attributeSelector,"] .p-picklist-buttons {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-picklist[").concat(this.attributeSelector,"] .p-picklist-buttons .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-picklist[").concat(this.attributeSelector,"] .p-picklist-buttons .p-button:last-child {\n margin-right: 0;\n }\n}\n");this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},moveDisabled:function(e){if(!this.d_selection[e]||!this.d_selection[e].length)return!0},moveAllDisabled:function(e){return d.isEmpty(this[e])}},computed:{idSource:function(){return"".concat(this.id,"_source")},idTarget:function(){return"".concat(this.id,"_target")},focusedOptionId:function(){return-1!==this.focusedOptionIndex?this.focusedOptionIndex:null},sourceList:function(){return this.modelValue&&this.modelValue[0]?this.modelValue[0]:null},targetList:function(){return this.modelValue&&this.modelValue[1]?this.modelValue[1]:null},attributeSelector:function(){return u()},moveUpAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveUp:void 0},moveTopAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveTop:void 0},moveDownAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveDown:void 0},moveBottomAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveBottom:void 0},moveToTargetAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveToTarget:void 0},moveAllToTargetAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveAllToTarget:void 0},moveToSourceAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveToSource:void 0},moveAllToSourceAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveAllToSource:void 0}},components:{PLButton:e,AngleRightIcon:l,AngleLeftIcon:s,AngleDownIcon:r,AngleUpIcon:a,AngleDoubleRightIcon:n,AngleDoubleLeftIcon:o,AngleDoubleDownIcon:t,AngleDoubleUpIcon:i},directives:{ripple:c}};function M(e){return M="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},M(e)}function U(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function j(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?U(Object(o),!0).forEach((function(t){F(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):U(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function F(e,t,o){return(t=H(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function H(e){var t=R(e,"string");return"symbol"===M(t)?t:String(t)}function R(e,t){if("object"!==M(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!==M(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var N=["id","onClick","onDblclick","onMousedown","aria-selected","data-p-highlight","data-p-focused"],W=["id","onClick","onDblclick","onMousedown","aria-selected","data-p-highlight","data-p-focused"];K.render=function(e,t,o,n,i,r){var s=f("AngleUpIcon"),l=f("PLButton"),a=f("AngleDoubleUpIcon"),c=f("AngleDownIcon"),u=f("AngleDoubleDownIcon"),d=v("ripple");return g(),b("div",y({class:e.cx("root")},e.ptm("root")),[e.showSourceControls?(g(),b("div",y({key:0,class:e.cx("sourceControls")},e.ptm("sourceControls"),{"data-pc-group-section":"controls"}),[$(e.$slots,"sourcecontrolsstart"),I(l,y({"aria-label":r.moveUpAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[0]||(t[0]=function(e){return r.moveUp(e,0)})},e.moveUpButtonProps,{pt:e.ptm("sourceMoveUpButton"),unstyled:e.unstyled,"data-pc-section":"sourcemoveupbutton"}),{icon:L((function(){return[$(e.$slots,"moveupicon",{},(function(){return[I(s,y(e.ptm("sourceMoveUpButton").icon,{"data-pc-section":"moveupicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveTopAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[1]||(t[1]=function(e){return r.moveTop(e,0)})},e.moveTopButtonProps,{pt:e.ptm("sourceMoveTopButton"),unstyled:e.unstyled,"data-pc-section":"sourcemovetopbutton"}),{icon:L((function(){return[$(e.$slots,"movetopicon",{},(function(){return[I(a,y(e.ptm("sourceMoveTopButton").icon,{"data-pc-section":"movetopicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveDownAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[2]||(t[2]=function(e){return r.moveDown(e,0)})},e.moveDownButtonProps,{pt:e.ptm("sourceMoveDownButton"),unstyled:e.unstyled,"data-pc-section":"sourcemovedownbutton"}),{icon:L((function(){return[$(e.$slots,"movedownicon",{},(function(){return[I(c,y(e.ptm("sourceMoveDownButton").icon,{"data-pc-section":"movedownicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveBottomAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[3]||(t[3]=function(e){return r.moveBottom(e,0)})},e.moveBottomButtonProps,{pt:e.ptm("sourceMoveBottomButton"),unstyled:e.unstyled,"data-pc-section":"sourcemovebottombutton"}),{icon:L((function(){return[$(e.$slots,"movebottomicon",{},(function(){return[I(u,y(e.ptm("sourceMoveBottomButton").icon,{"data-pc-section":"movebottomicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),$(e.$slots,"sourcecontrolsend")],16)):w("",!0),T("div",y({class:e.cx("sourceWrapper")},e.ptm("sourceWrapper"),{"data-pc-group-section":"listwrapper"}),[e.$slots.sourceheader?(g(),b("div",y({key:0,class:e.cx("sourceHeader")},e.ptm("sourceHeader"),{"data-pc-group-section":"header"}),[$(e.$slots,"sourceheader")],16)):w("",!0),I(x,y({ref:"sourceList",id:r.idSource+"_list",name:"p-picklist-flip",tag:"ul",class:e.cx("sourceList"),style:e.listStyle,role:"listbox","aria-multiselectable":"true","aria-activedescendant":i.focused.sourceList?r.focusedOptionId:void 0,tabindex:r.sourceList&&r.sourceList.length>0?e.tabindex:-1,onFocus:t[5]||(t[5]=function(e){return r.onListFocus(e,"sourceList")}),onBlur:t[6]||(t[6]=function(e){return r.onListBlur(e,"sourceList")}),onKeydown:t[7]||(t[7]=function(e){return r.onItemKeyDown(e,"sourceList")})},j(j(j({},e.sourceListProps),e.ptm("sourceList")),e.ptm("transition")),{"data-pc-group-section":"list"}),{default:L((function(){return[(g(!0),b(D,null,A(r.sourceList,(function(o,n){return S((g(),b("li",y({key:r.getItemKey(o,n),id:r.idSource+"_"+n,class:e.cx("item",{item:o,id:"".concat(r.idSource,"_").concat(n),listIndex:0}),onClick:function(e){return r.onItemClick(e,o,n,0)},onDblclick:function(e){return r.onItemDblClick(e,o,0)},onTouchend:t[4]||(t[4]=function(){return r.onItemTouchEnd&&r.onItemTouchEnd.apply(r,arguments)}),onMousedown:function(e){return r.onOptionMouseDown(n,"sourceList")},role:"option","aria-selected":r.isSelected(o,0)},r.getPTOptions(o,"item","".concat(r.idSource,"_").concat(n),0),{"data-p-highlight":r.isSelected(o,0),"data-p-focused":"".concat(r.idSource,"_").concat(n)===r.focusedOptionId}),[$(e.$slots,"item",{item:o,index:n})],16,N)),[[d]])})),128))]})),_:3},16,["id","class","style","aria-activedescendant","tabindex"])],16),T("div",y({class:e.cx("buttons")},e.ptm("buttons"),{"data-pc-group-section":"controls"}),[$(e.$slots,"movecontrolsstart"),I(l,y({"aria-label":r.moveToTargetAriaLabel,type:"button",onClick:r.moveToTarget,disabled:r.moveDisabled(0)},e.moveToTargetProps,{pt:e.ptm("moveToTargetButton"),unstyled:e.unstyled,"data-pc-section":"movetotargetbuton"}),{icon:L((function(){return[$(e.$slots,"movetotargeticon",{viewChanged:i.viewChanged},(function(){return[(g(),_(k(i.viewChanged?"AngleDownIcon":"AngleRightIcon"),y(e.ptm("moveToTargetButton").icon,{"data-pc-section":"movetotargeticon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveAllToTargetAriaLabel,type:"button",onClick:r.moveAllToTarget,disabled:r.moveAllDisabled("sourceList")},e.moveAllToTargetProps,{pt:e.ptm("moveAllToTargetButton"),unstyled:e.unstyled,"data-pc-section":"movealltotargetbuton"}),{icon:L((function(){return[$(e.$slots,"movealltotargeticon",{viewChanged:i.viewChanged},(function(){return[(g(),_(k(i.viewChanged?"AngleDoubleDownIcon":"AngleDoubleRightIcon"),y(e.ptm("moveAllToTargetButton").icon,{"data-pc-section":"movealltotargeticon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveToSourceAriaLabel,type:"button",onClick:r.moveToSource,disabled:r.moveDisabled(1)},e.moveToSourceProps,{pt:e.ptm("moveToSourceButton"),unstyled:e.unstyled,"data-pc-section":"movetosourcebuton"}),{icon:L((function(){return[$(e.$slots,"movetosourceicon",{viewChanged:i.viewChanged},(function(){return[(g(),_(k(i.viewChanged?"AngleUpIcon":"AngleLeftIcon"),y(e.ptm("moveToSourceButton").icon,{"data-pc-section":"movetosourceicon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveAllToSourceAriaLabel,type:"button",onClick:r.moveAllToSource,disabled:r.moveAllDisabled("targetList")},e.moveAllToSourceProps,{pt:e.ptm("moveAllToSourceButton"),"data-pc-section":"movealltosourcebuton",unstyled:e.unstyled}),{icon:L((function(){return[$(e.$slots,"movealltosourceicon",{viewChanged:i.viewChanged},(function(){return[(g(),_(k(i.viewChanged?"AngleDoubleUpIcon":"AngleDoubleLeftIcon"),y(e.ptm("moveAllToSourceButton").icon,{"data-pc-section":"movealltosourceicon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),$(e.$slots,"movecontrolsend")],16),T("div",y({class:e.cx("targetWrapper")},e.ptm("targetWrapper"),{"data-pc-group-section":"listwrapper"}),[e.$slots.targetheader?(g(),b("div",y({key:0,class:e.cx("targetHeader")},e.ptm("targetHeader"),{"data-pc-group-section":"header"}),[$(e.$slots,"targetheader")],16)):w("",!0),I(x,y({ref:"targetList",id:r.idTarget+"_list",name:"p-picklist-flip",tag:"ul",class:e.cx("targetList"),style:e.listStyle,role:"listbox","aria-multiselectable":"true","aria-activedescendant":i.focused.targetList?r.focusedOptionId:void 0,tabindex:r.targetList&&r.targetList.length>0?e.tabindex:-1,onFocus:t[10]||(t[10]=function(e){return r.onListFocus(e,"targetList")}),onBlur:t[11]||(t[11]=function(e){return r.onListBlur(e,"targetList")}),onKeydown:t[12]||(t[12]=function(e){return r.onItemKeyDown(e,"targetList")})},j(j(j({},e.targetListProps),e.ptm("targetList")),e.ptm("transition")),{"data-pc-group-section":"list"}),{default:L((function(){return[(g(!0),b(D,null,A(r.targetList,(function(o,n){return S((g(),b("li",y({key:r.getItemKey(o,n),id:r.idTarget+"_"+n,class:e.cx("item",{item:o,id:"".concat(r.idTarget,"_").concat(n),listIndex:1}),onClick:function(e){return r.onItemClick(e,o,n,1)},onDblclick:function(e){return r.onItemDblClick(e,o,1)},onKeydown:t[8]||(t[8]=function(e){return r.onItemKeyDown(e,"targetList")}),onMousedown:function(e){return r.onOptionMouseDown(n,"targetList")},onTouchend:t[9]||(t[9]=function(){return r.onItemTouchEnd&&r.onItemTouchEnd.apply(r,arguments)}),role:"option","aria-selected":r.isSelected(o,1)},r.getPTOptions(o,"item","".concat(r.idTarget,"_").concat(n),1),{"data-p-highlight":r.isSelected(o,1),"data-p-focused":"".concat(r.idTarget,"_").concat(n)===r.focusedOptionId}),[$(e.$slots,"item",{item:o,index:n})],16,W)),[[d]])})),128))]})),_:3},16,["id","class","style","aria-activedescendant","tabindex"])],16),e.showTargetControls?(g(),b("div",y({key:1,class:e.cx("targetControls")},e.ptm("targetControls"),{"data-pc-group-section":"controls"}),[$(e.$slots,"targetcontrolsstart"),I(l,y({"aria-label":r.moveUpAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[13]||(t[13]=function(e){return r.moveUp(e,1)})},e.moveUpButtonProps,{pt:e.ptm("targetMoveUpButton"),unstyled:e.unstyled,"data-pc-section":"targetmoveupbutton"}),{icon:L((function(){return[$(e.$slots,"moveupicon",{},(function(){return[I(s,y(e.ptm("targetMoveUpButton").icon,{"data-pc-section":"moveupicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveTopAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[14]||(t[14]=function(e){return r.moveTop(e,1)})},e.moveTopButtonProps,{pt:e.ptm("targetMoveTopButton"),unstyled:e.unstyled,"data-pc-section":"targetmovetopbutton"}),{icon:L((function(){return[$(e.$slots,"movetopicon",{},(function(){return[I(a,y(e.ptm("targetMoveTopButton").icon,{"data-pc-section":"movetopicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveDownAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[15]||(t[15]=function(e){return r.moveDown(e,1)})},e.moveDownButtonProps,{pt:e.ptm("targetMoveDownButton"),unstyled:e.unstyled,"data-pc-section":"targetmovedownbutton"}),{icon:L((function(){return[$(e.$slots,"movedownicon",{},(function(){return[I(c,y(e.ptm("targetMoveDownButton").icon,{"data-pc-section":"movedownicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveBottomAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[16]||(t[16]=function(e){return r.moveBottom(e,1)})},e.moveBottomButtonProps,{pt:e.ptm("targetMoveBottomButton"),unstyled:e.unstyled,"data-pc-section":"targetmovebottombutton"}),{icon:L((function(){return[$(e.$slots,"movebottomicon",{},(function(){return[I(u,y(e.ptm("targetMoveBottomButton").icon,{"data-pc-section":"movebottomicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),$(e.$slots,"targetcontrolsend")],16)):w("",!0)],16)};export{K as default};
@@ -668,9 +668,6 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
668
668
  },
669
669
  moveAllDisabled: function moveAllDisabled(list) {
670
670
  return utils.ObjectUtils.isEmpty(this[list]);
671
- },
672
- moveSourceDisabled: function moveSourceDisabled() {
673
- return utils.ObjectUtils.isEmpty(this.targetList);
674
671
  }
675
672
  },
676
673
  computed: {
@@ -761,10 +758,11 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
761
758
  type: "button",
762
759
  onClick: _cache[0] || (_cache[0] = function ($event) {
763
760
  return $options.moveUp($event, 0);
764
- }),
765
- pt: _ctx.ptm('sourceMoveUpButton')
761
+ })
766
762
  }, _ctx.moveUpButtonProps, {
767
- unstyled: _ctx.unstyled
763
+ pt: _ctx.ptm('sourceMoveUpButton'),
764
+ unstyled: _ctx.unstyled,
765
+ "data-pc-section": "sourcemoveupbutton"
768
766
  }), {
769
767
  icon: vue.withCtx(function () {
770
768
  return [vue.renderSlot(_ctx.$slots, "moveupicon", {}, function () {
@@ -780,10 +778,11 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
780
778
  type: "button",
781
779
  onClick: _cache[1] || (_cache[1] = function ($event) {
782
780
  return $options.moveTop($event, 0);
783
- }),
784
- pt: _ctx.ptm('sourceMoveTopButton')
781
+ })
785
782
  }, _ctx.moveTopButtonProps, {
786
- unstyled: _ctx.unstyled
783
+ pt: _ctx.ptm('sourceMoveTopButton'),
784
+ unstyled: _ctx.unstyled,
785
+ "data-pc-section": "sourcemovetopbutton"
787
786
  }), {
788
787
  icon: vue.withCtx(function () {
789
788
  return [vue.renderSlot(_ctx.$slots, "movetopicon", {}, function () {
@@ -799,10 +798,11 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
799
798
  type: "button",
800
799
  onClick: _cache[2] || (_cache[2] = function ($event) {
801
800
  return $options.moveDown($event, 0);
802
- }),
803
- pt: _ctx.ptm('sourceMoveDownButton')
801
+ })
804
802
  }, _ctx.moveDownButtonProps, {
805
- unstyled: _ctx.unstyled
803
+ pt: _ctx.ptm('sourceMoveDownButton'),
804
+ unstyled: _ctx.unstyled,
805
+ "data-pc-section": "sourcemovedownbutton"
806
806
  }), {
807
807
  icon: vue.withCtx(function () {
808
808
  return [vue.renderSlot(_ctx.$slots, "movedownicon", {}, function () {
@@ -818,10 +818,11 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
818
818
  type: "button",
819
819
  onClick: _cache[3] || (_cache[3] = function ($event) {
820
820
  return $options.moveBottom($event, 0);
821
- }),
822
- pt: _ctx.ptm('sourceMoveBottomButton')
821
+ })
823
822
  }, _ctx.moveBottomButtonProps, {
824
- unstyled: _ctx.unstyled
823
+ pt: _ctx.ptm('sourceMoveBottomButton'),
824
+ unstyled: _ctx.unstyled,
825
+ "data-pc-section": "sourcemovebottombutton"
825
826
  }), {
826
827
  icon: vue.withCtx(function () {
827
828
  return [vue.renderSlot(_ctx.$slots, "movebottomicon", {}, function () {
@@ -905,10 +906,11 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
905
906
  "aria-label": $options.moveToTargetAriaLabel,
906
907
  type: "button",
907
908
  onClick: $options.moveToTarget,
908
- disabled: $options.moveDisabled(0),
909
- pt: _ctx.ptm('moveToTargetButton')
909
+ disabled: $options.moveDisabled(0)
910
910
  }, _ctx.moveToTargetProps, {
911
- unstyled: _ctx.unstyled
911
+ pt: _ctx.ptm('moveToTargetButton'),
912
+ unstyled: _ctx.unstyled,
913
+ "data-pc-section": "movetotargetbuton"
912
914
  }), {
913
915
  icon: vue.withCtx(function () {
914
916
  return [vue.renderSlot(_ctx.$slots, "movetotargeticon", {
@@ -924,10 +926,11 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
924
926
  "aria-label": $options.moveAllToTargetAriaLabel,
925
927
  type: "button",
926
928
  onClick: $options.moveAllToTarget,
927
- disabled: $options.moveAllDisabled('sourceList'),
928
- pt: _ctx.ptm('moveAllToTargetButton')
929
+ disabled: $options.moveAllDisabled('sourceList')
929
930
  }, _ctx.moveAllToTargetProps, {
930
- unstyled: _ctx.unstyled
931
+ pt: _ctx.ptm('moveAllToTargetButton'),
932
+ unstyled: _ctx.unstyled,
933
+ "data-pc-section": "movealltotargetbuton"
931
934
  }), {
932
935
  icon: vue.withCtx(function () {
933
936
  return [vue.renderSlot(_ctx.$slots, "movealltotargeticon", {
@@ -943,10 +946,11 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
943
946
  "aria-label": $options.moveToSourceAriaLabel,
944
947
  type: "button",
945
948
  onClick: $options.moveToSource,
946
- disabled: $options.moveDisabled(1),
947
- pt: _ctx.ptm('moveToSourceButton')
949
+ disabled: $options.moveDisabled(1)
948
950
  }, _ctx.moveToSourceProps, {
949
- unstyled: _ctx.unstyled
951
+ pt: _ctx.ptm('moveToSourceButton'),
952
+ unstyled: _ctx.unstyled,
953
+ "data-pc-section": "movetosourcebuton"
950
954
  }), {
951
955
  icon: vue.withCtx(function () {
952
956
  return [vue.renderSlot(_ctx.$slots, "movetosourceicon", {
@@ -962,9 +966,10 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
962
966
  "aria-label": $options.moveAllToSourceAriaLabel,
963
967
  type: "button",
964
968
  onClick: $options.moveAllToSource,
965
- disabled: $options.moveSourceDisabled('targetList'),
966
- pt: _ctx.ptm('moveAllToSourceButton')
969
+ disabled: $options.moveAllDisabled('targetList')
967
970
  }, _ctx.moveAllToSourceProps, {
971
+ pt: _ctx.ptm('moveAllToSourceButton'),
972
+ "data-pc-section": "movealltosourcebuton",
968
973
  unstyled: _ctx.unstyled
969
974
  }), {
970
975
  icon: vue.withCtx(function () {
@@ -1057,10 +1062,11 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
1057
1062
  type: "button",
1058
1063
  onClick: _cache[13] || (_cache[13] = function ($event) {
1059
1064
  return $options.moveUp($event, 1);
1060
- }),
1061
- pt: _ctx.ptm('targetMoveUpButton')
1065
+ })
1062
1066
  }, _ctx.moveUpButtonProps, {
1063
- unstyled: _ctx.unstyled
1067
+ pt: _ctx.ptm('targetMoveUpButton'),
1068
+ unstyled: _ctx.unstyled,
1069
+ "data-pc-section": "targetmoveupbutton"
1064
1070
  }), {
1065
1071
  icon: vue.withCtx(function () {
1066
1072
  return [vue.renderSlot(_ctx.$slots, "moveupicon", {}, function () {
@@ -1076,10 +1082,11 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
1076
1082
  type: "button",
1077
1083
  onClick: _cache[14] || (_cache[14] = function ($event) {
1078
1084
  return $options.moveTop($event, 1);
1079
- }),
1080
- pt: _ctx.ptm('targetMoveTopButton')
1085
+ })
1081
1086
  }, _ctx.moveTopButtonProps, {
1082
- unstyled: _ctx.unstyled
1087
+ pt: _ctx.ptm('targetMoveTopButton'),
1088
+ unstyled: _ctx.unstyled,
1089
+ "data-pc-section": "targetmovetopbutton"
1083
1090
  }), {
1084
1091
  icon: vue.withCtx(function () {
1085
1092
  return [vue.renderSlot(_ctx.$slots, "movetopicon", {}, function () {
@@ -1095,10 +1102,11 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
1095
1102
  type: "button",
1096
1103
  onClick: _cache[15] || (_cache[15] = function ($event) {
1097
1104
  return $options.moveDown($event, 1);
1098
- }),
1099
- pt: _ctx.ptm('targetMoveDownButton')
1105
+ })
1100
1106
  }, _ctx.moveDownButtonProps, {
1101
- unstyled: _ctx.unstyled
1107
+ pt: _ctx.ptm('targetMoveDownButton'),
1108
+ unstyled: _ctx.unstyled,
1109
+ "data-pc-section": "targetmovedownbutton"
1102
1110
  }), {
1103
1111
  icon: vue.withCtx(function () {
1104
1112
  return [vue.renderSlot(_ctx.$slots, "movedownicon", {}, function () {
@@ -1114,10 +1122,11 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
1114
1122
  type: "button",
1115
1123
  onClick: _cache[16] || (_cache[16] = function ($event) {
1116
1124
  return $options.moveBottom($event, 1);
1117
- }),
1118
- pt: _ctx.ptm('targetMoveBottomButton')
1125
+ })
1119
1126
  }, _ctx.moveBottomButtonProps, {
1120
- unstyled: _ctx.unstyled
1127
+ pt: _ctx.ptm('targetMoveBottomButton'),
1128
+ unstyled: _ctx.unstyled,
1129
+ "data-pc-section": "targetmovebottombutton"
1121
1130
  }), {
1122
1131
  icon: vue.withCtx(function () {
1123
1132
  return [vue.renderSlot(_ctx.$slots, "movebottomicon", {}, function () {
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.picklist=function(e,t,o,n,i,r,l,s,a,c,u,d,m,p){"use strict";function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f=h(e),v=h(t),g=h(o),b=h(n),y=h(i),I=h(r),w=h(l),$=h(s),D=h(a),L=h(c);function S(e){return C(e)||k(e)||x(e)||T()}function T(){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 x(e,t){if(e){if("string"==typeof e)return B(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?B(e,t):void 0}}function k(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function C(e){if(Array.isArray(e))return B(e)}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}var A={name:"PickList",extends:{name:"BasePickList",extends:h(d).default,props:{modelValue:{type:Array,default:function(){return[[],[]]}},selection:{type:Array,default:function(){return[[],[]]}},dataKey:{type:String,default:null},listStyle:{type:null,default:null},metaKeySelection:{type:Boolean,default:!0},responsive:{type:Boolean,default:!0},breakpoint:{type:String,default:"960px"},stripedRows:{type:Boolean,default:!1},showSourceControls:{type:Boolean,default:!0},showTargetControls:{type:Boolean,default:!0},targetListProps:{type:null,default:null},sourceListProps:{type:null,default:null},moveUpButtonProps:{type:null,default:null},moveTopButtonProps:{type:null,default:null},moveDownButtonProps:{type:null,default:null},moveBottomButtonProps:{type:null,default:null},moveToTargetProps:{type:null,default:null},moveAllToTargetProps:{type:null,default:null},moveToSourceProps:{type:null,default:null},moveAllToSourceProps:{type:null,default:null},tabindex:{type:Number,default:0}},style:h(m).default,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","reorder","update:selection","selection-change","move-to-target","move-to-source","move-all-to-target","move-all-to-source","focus","blur"],itemTouched:!1,reorderDirection:null,styleElement:null,media:null,mediaChangeListener:null,data:function(){return{id:this.$attrs.id,d_selection:this.selection,focused:{sourceList:!1,targetList:!1},focusedOptionIndex:-1,viewChanged:!1}},watch:{"$attrs.id":function(e){this.id=e||u.UniqueComponentId()},selection:function(e){this.d_selection=e},breakpoint:function(e){this.destroyMedia(),this.initMedia()}},updated:function(){this.reorderDirection&&(this.updateListScroll(this.$refs.sourceList.$el),this.updateListScroll(this.$refs.targetList.$el),this.reorderDirection=null)},beforeUnmount:function(){this.destroyStyle(),this.destroyMedia()},mounted:function(){this.id=this.id||u.UniqueComponentId(),this.responsive&&(this.createStyle(),this.initMedia())},methods:{getItemKey:function(e,t){return this.dataKey?u.ObjectUtils.resolveFieldData(e,this.dataKey):t},getPTOptions:function(e,t,o,n){return this.ptm(t,{context:{active:this.isSelected(e,n),focused:o===this.focusedOptionId}})},isSelected:function(e,t){return-1!=u.ObjectUtils.findIndexInList(e,this.d_selection[t])},onListFocus:function(e,t){var o=u.DomHandler.findSingle(this.$refs[t].$el,'[data-p-highlight="true"]')||u.DomHandler.findSingle(this.$refs[t].$el,'[data-pc-section="item"]');if(o){var n=u.ObjectUtils.findIndexInList(o,this.$refs[t].$el.children);this.focused[t]=!0,this.changeFocusedOptionIndex(-1!==this.focusedOptionIndex?this.focusedOptionIndex:o?n:-1,t),this.$emit("focus",e)}},onListBlur:function(e,t){this.focused[t]=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onOptionMouseDown:function(e,t){this.focused[t]=!0,this.focusedOptionIndex=e},moveUp:function(e,t){if(this.d_selection&&this.d_selection[t]){for(var o=S(this.modelValue[t]),n=this.d_selection[t],i=0;i<n.length;i++){var r=u.ObjectUtils.findIndexInList(n[i],o);if(0===r)break;var l=o[r-1];o[r-1]=o[r],o[r]=l}var s=S(this.modelValue);s[t]=o,this.reorderDirection="up",this.$emit("update:modelValue",s),this.$emit("reorder",{originalEvent:e,value:s,direction:this.reorderDirection,listIndex:t})}},moveTop:function(e,t){if(this.d_selection){for(var o=S(this.modelValue[t]),n=this.d_selection[t],i=0;i<n.length;i++){var r=u.ObjectUtils.findIndexInList(n[i],o);if(0===r)break;var l=o.splice(r,1)[0];o.unshift(l)}var s=S(this.modelValue);s[t]=o,this.reorderDirection="top",this.$emit("update:modelValue",s),this.$emit("reorder",{originalEvent:e,value:s,direction:this.reorderDirection,listIndex:t})}},moveDown:function(e,t){if(this.d_selection){for(var o=S(this.modelValue[t]),n=this.d_selection[t],i=n.length-1;i>=0;i--){var r=u.ObjectUtils.findIndexInList(n[i],o);if(r===o.length-1)break;var l=o[r+1];o[r+1]=o[r],o[r]=l}var s=S(this.modelValue);s[t]=o,this.reorderDirection="down",this.$emit("update:modelValue",s),this.$emit("reorder",{originalEvent:e,value:s,direction:this.reorderDirection,listIndex:t})}},moveBottom:function(e,t){if(this.d_selection){for(var o=S(this.modelValue[t]),n=this.d_selection[t],i=n.length-1;i>=0;i--){var r=u.ObjectUtils.findIndexInList(n[i],o);if(r===o.length-1)break;var l=o.splice(r,1)[0];o.push(l)}var s=S(this.modelValue);s[t]=o,this.reorderDirection="bottom",this.$emit("update:modelValue",s),this.$emit("reorder",{originalEvent:e,value:s,direction:this.reorderDirection,listIndex:t})}},moveToTarget:function(e){var t=this.d_selection&&this.d_selection[0]?this.d_selection[0]:null,o=S(this.modelValue[0]),n=S(this.modelValue[1]);if(t){for(var i=0;i<t.length;i++){var r=t[i];-1==u.ObjectUtils.findIndexInList(r,n)&&n.push(o.splice(u.ObjectUtils.findIndexInList(r,o),1)[0])}var l=S(this.modelValue);l[0]=o,l[1]=n,this.$emit("update:modelValue",l),this.$emit("move-to-target",{originalEvent:e,items:S(new Set(t))}),this.d_selection[0]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},moveAllToTarget:function(e){if(this.modelValue[0]){var t=S(this.modelValue[0]),o=S(this.modelValue[1]);this.$emit("move-all-to-target",{originalEvent:e,items:t}),o=[].concat(S(o),S(t)),t=[];var n=S(this.modelValue);n[0]=t,n[1]=o,this.$emit("update:modelValue",n),this.d_selection[0]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},moveToSource:function(e){var t=this.d_selection&&this.d_selection[1]?this.d_selection[1]:null,o=S(this.modelValue[0]),n=S(this.modelValue[1]);if(t){for(var i=0;i<t.length;i++){var r=t[i];-1==u.ObjectUtils.findIndexInList(r,o)&&o.push(n.splice(u.ObjectUtils.findIndexInList(r,n),1)[0])}var l=S(this.modelValue);l[0]=o,l[1]=n,this.$emit("update:modelValue",l),this.$emit("move-to-source",{originalEvent:e,items:S(new Set(t))}),this.d_selection[1]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},moveAllToSource:function(e){if(this.modelValue[1]){var t=S(this.modelValue[0]),o=S(this.modelValue[1]);this.$emit("move-all-to-source",{originalEvent:e,items:o}),t=[].concat(S(t),S(o)),o=[];var n=S(this.modelValue);n[0]=t,n[1]=o,this.$emit("update:modelValue",n),this.d_selection[1]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},onItemClick:function(e,t,o,n){var i=0===n?"sourceList":"targetList";this.itemTouched=!1;var r,l=this.d_selection[n],s=u.ObjectUtils.findIndexInList(t,this.d_selection),a=-1!=s,c=!this.itemTouched&&this.metaKeySelection,d=u.DomHandler.find(this.$refs[i].$el,'[data-pc-section="item"]')[o].getAttribute("id");if(this.focusedOptionIndex=d,c){var m=e.metaKey||e.ctrlKey;a&&m?r=l.filter((function(e,t){return t!==s})):(r=m&&l?S(l):[]).push(t)}else a?r=l.filter((function(e,t){return t!==s})):(r=l?S(l):[]).push(t);var p=S(this.d_selection);p[n]=r,this.d_selection=p,this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})},onItemDblClick:function(e,t,o){0===o?this.moveToTarget(e):1===o&&this.moveToSource(e)},onItemTouchEnd:function(){this.itemTouched=!0},onItemKeyDown:function(e,t){switch(e.code){case"ArrowDown":this.onArrowDownKey(e,t);break;case"ArrowUp":this.onArrowUpKey(e,t);break;case"Home":this.onHomeKey(e,t);break;case"End":this.onEndKey(e,t);break;case"Enter":this.onEnterKey(e,t);break;case"Space":this.onSpaceKey(e,t);break;case"KeyA":e.ctrlKey&&(this.d_selection=S(this.modelValue),this.$emit("update:selection",this.d_selection),e.preventDefault())}},onArrowDownKey:function(e,t){var o=this.findNextOptionIndex(this.focusedOptionIndex,t);this.changeFocusedOptionIndex(o,t),e.shiftKey&&this.onEnterKey(e,t),e.preventDefault()},onArrowUpKey:function(e,t){var o=this.findPrevOptionIndex(this.focusedOptionIndex,t);this.changeFocusedOptionIndex(o,t),e.shiftKey&&this.onEnterKey(e,t),e.preventDefault()},onEnterKey:function(e,t){var o=u.DomHandler.find(this.$refs[t].$el,'[data-pc-section="item"]'),n=u.DomHandler.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),i=S(o).findIndex((function(e){return e===n})),r="sourceList"===t?0:1;this.onItemClick(e,this.modelValue[r][i],i,r),e.preventDefault()},onSpaceKey:function(e,t){if(e.preventDefault(),e.shiftKey&&this.d_selection&&this.d_selection.length>0){var o="sourceList"===t?0:1,n=u.DomHandler.find(this.$refs[t].$el,'[data-pc-section="item"]'),i=u.ObjectUtils.findIndexInList(this.d_selection[o][0],S(this.modelValue[o])),r=u.DomHandler.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),l=S(n).findIndex((function(e){return e===r}));this.d_selection[o]=S(this.modelValue[o]).slice(Math.min(i,l),Math.max(i,l)+1),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}else this.onEnterKey(e,t)},onHomeKey:function(e,t){if(e.ctrlKey&&e.shiftKey){var o="sourceList"===t?0:1,n=u.DomHandler.find(this.$refs[t].$el,'[data-pc-section="item"]'),i=u.DomHandler.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),r=S(n).findIndex((function(e){return e===i}));this.d_selection[o]=S(this.modelValue[o]).slice(0,r+1),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}else this.changeFocusedOptionIndex(0,t);e.preventDefault()},onEndKey:function(e,t){var o=u.DomHandler.find(this.$refs[t].$el,'[data-pc-section="item"]');if(e.ctrlKey&&e.shiftKey){var n="sourceList"===t?0:1,i=u.DomHandler.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),r=S(o).findIndex((function(e){return e===i}));this.d_selection[n]=S(this.modelValue[n]).slice(r,o.length),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}else this.changeFocusedOptionIndex(o.length-1,t);e.preventDefault()},findNextOptionIndex:function(e,t){var o=S(u.DomHandler.find(this.$refs[t].$el,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return o>-1?o+1:0},findPrevOptionIndex:function(e,t){var o=S(u.DomHandler.find(this.$refs[t].$el,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return o>-1?o-1:0},changeFocusedOptionIndex:function(e,t){var o=u.DomHandler.find(this.$refs[t].$el,'[data-pc-section="item"]'),n=e>=o.length?o.length-1:e<0?0:e;this.focusedOptionIndex=o[n].getAttribute("id"),this.scrollInView(o[n].getAttribute("id"),t)},scrollInView:function(e,t){var o=u.DomHandler.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id="'.concat(e,'"]'));o&&o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"start"})},updateListScroll:function(e){var t=u.DomHandler.find(e,'[data-pc-section="item"][data-p-highlight="true"]');if(t&&t.length)switch(this.reorderDirection){case"up":u.DomHandler.scrollInView(e,t[0]);break;case"top":e.scrollTop=0;break;case"down":u.DomHandler.scrollInView(e,t[t.length-1]);break;case"bottom":e.scrollTop=e.scrollHeight}},initMedia:function(){this.media=window.matchMedia("(max-width: ".concat(this.breakpoint,")")),this.viewChanged=this.media.matches,this.bindMediaChangeListener()},destroyMedia:function(){this.unbindMediaChangeListener()},bindMediaChangeListener:function(){var e=this;this.media&&!this.mediaChangeListener&&(this.mediaChangeListener=function(t){e.viewChanged=t.matches},this.media.addEventListener("change",this.mediaChangeListener))},unbindMediaChangeListener:function(){this.media&&this.mediaChangeListener&&(this.media.removeEventListener("change",this.mediaChangeListener),this.mediaChangeListener=null)},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.$el.setAttribute(this.attributeSelector,""),this.styleElement=document.createElement("style"),this.styleElement.type="text/css",u.DomHandler.setAttribute(this.styleElement,"nonce",null===(e=this.$primevue)||void 0===e||null===(e=e.config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce),document.head.appendChild(this.styleElement);var t="\n@media screen and (max-width: ".concat(this.breakpoint,") {\n .p-picklist[").concat(this.attributeSelector,"] {\n flex-direction: column;\n }\n\n .p-picklist[").concat(this.attributeSelector,"] .p-picklist-buttons {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-picklist[").concat(this.attributeSelector,"] .p-picklist-buttons .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-picklist[").concat(this.attributeSelector,"] .p-picklist-buttons .p-button:last-child {\n margin-right: 0;\n }\n}\n");this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},moveDisabled:function(e){if(!this.d_selection[e]||!this.d_selection[e].length)return!0},moveAllDisabled:function(e){return u.ObjectUtils.isEmpty(this[e])},moveSourceDisabled:function(){return u.ObjectUtils.isEmpty(this.targetList)}},computed:{idSource:function(){return"".concat(this.id,"_source")},idTarget:function(){return"".concat(this.id,"_target")},focusedOptionId:function(){return-1!==this.focusedOptionIndex?this.focusedOptionIndex:null},sourceList:function(){return this.modelValue&&this.modelValue[0]?this.modelValue[0]:null},targetList:function(){return this.modelValue&&this.modelValue[1]?this.modelValue[1]:null},attributeSelector:function(){return u.UniqueComponentId()},moveUpAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveUp:void 0},moveTopAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveTop:void 0},moveDownAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveDown:void 0},moveBottomAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveBottom:void 0},moveToTargetAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveToTarget:void 0},moveAllToTargetAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveAllToTarget:void 0},moveToSourceAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveToSource:void 0},moveAllToSourceAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveAllToSource:void 0}},components:{PLButton:f.default,AngleRightIcon:$.default,AngleLeftIcon:w.default,AngleDownIcon:I.default,AngleUpIcon:D.default,AngleDoubleRightIcon:b.default,AngleDoubleLeftIcon:g.default,AngleDoubleDownIcon:v.default,AngleDoubleUpIcon:y.default},directives:{ripple:L.default}};function P(e){return P="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},P(e)}function V(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function _(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?V(Object(o),!0).forEach((function(t){O(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):V(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function O(e,t,o){return(t=E(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function E(e){var t=U(e,"string");return"symbol"===P(t)?t:String(t)}function U(e,t){if("object"!==P(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!==P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var K=["id","onClick","onDblclick","onMousedown","aria-selected","data-p-highlight","data-p-focused"],M=["id","onClick","onDblclick","onMousedown","aria-selected","data-p-highlight","data-p-focused"];return A.render=function(e,t,o,n,i,r){var l=p.resolveComponent("AngleUpIcon"),s=p.resolveComponent("PLButton"),a=p.resolveComponent("AngleDoubleUpIcon"),c=p.resolveComponent("AngleDownIcon"),u=p.resolveComponent("AngleDoubleDownIcon"),d=p.resolveDirective("ripple");return p.openBlock(),p.createElementBlock("div",p.mergeProps({class:e.cx("root")},e.ptm("root")),[e.showSourceControls?(p.openBlock(),p.createElementBlock("div",p.mergeProps({key:0,class:e.cx("sourceControls")},e.ptm("sourceControls"),{"data-pc-group-section":"controls"}),[p.renderSlot(e.$slots,"sourcecontrolsstart"),p.createVNode(s,p.mergeProps({"aria-label":r.moveUpAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[0]||(t[0]=function(e){return r.moveUp(e,0)}),pt:e.ptm("sourceMoveUpButton")},e.moveUpButtonProps,{unstyled:e.unstyled}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"moveupicon",{},(function(){return[p.createVNode(l,p.mergeProps(e.ptm("sourceMoveUpButton").icon,{"data-pc-section":"moveupicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),p.createVNode(s,p.mergeProps({"aria-label":r.moveTopAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[1]||(t[1]=function(e){return r.moveTop(e,0)}),pt:e.ptm("sourceMoveTopButton")},e.moveTopButtonProps,{unstyled:e.unstyled}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movetopicon",{},(function(){return[p.createVNode(a,p.mergeProps(e.ptm("sourceMoveTopButton").icon,{"data-pc-section":"movetopicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),p.createVNode(s,p.mergeProps({"aria-label":r.moveDownAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[2]||(t[2]=function(e){return r.moveDown(e,0)}),pt:e.ptm("sourceMoveDownButton")},e.moveDownButtonProps,{unstyled:e.unstyled}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movedownicon",{},(function(){return[p.createVNode(c,p.mergeProps(e.ptm("sourceMoveDownButton").icon,{"data-pc-section":"movedownicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),p.createVNode(s,p.mergeProps({"aria-label":r.moveBottomAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[3]||(t[3]=function(e){return r.moveBottom(e,0)}),pt:e.ptm("sourceMoveBottomButton")},e.moveBottomButtonProps,{unstyled:e.unstyled}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movebottomicon",{},(function(){return[p.createVNode(u,p.mergeProps(e.ptm("sourceMoveBottomButton").icon,{"data-pc-section":"movebottomicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),p.renderSlot(e.$slots,"sourcecontrolsend")],16)):p.createCommentVNode("",!0),p.createElementVNode("div",p.mergeProps({class:e.cx("sourceWrapper")},e.ptm("sourceWrapper"),{"data-pc-group-section":"listwrapper"}),[e.$slots.sourceheader?(p.openBlock(),p.createElementBlock("div",p.mergeProps({key:0,class:e.cx("sourceHeader")},e.ptm("sourceHeader"),{"data-pc-group-section":"header"}),[p.renderSlot(e.$slots,"sourceheader")],16)):p.createCommentVNode("",!0),p.createVNode(p.TransitionGroup,p.mergeProps({ref:"sourceList",id:r.idSource+"_list",name:"p-picklist-flip",tag:"ul",class:e.cx("sourceList"),style:e.listStyle,role:"listbox","aria-multiselectable":"true","aria-activedescendant":i.focused.sourceList?r.focusedOptionId:void 0,tabindex:r.sourceList&&r.sourceList.length>0?e.tabindex:-1,onFocus:t[5]||(t[5]=function(e){return r.onListFocus(e,"sourceList")}),onBlur:t[6]||(t[6]=function(e){return r.onListBlur(e,"sourceList")}),onKeydown:t[7]||(t[7]=function(e){return r.onItemKeyDown(e,"sourceList")})},_(_(_({},e.sourceListProps),e.ptm("sourceList")),e.ptm("transition")),{"data-pc-group-section":"list"}),{default:p.withCtx((function(){return[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.sourceList,(function(o,n){return p.withDirectives((p.openBlock(),p.createElementBlock("li",p.mergeProps({key:r.getItemKey(o,n),id:r.idSource+"_"+n,class:e.cx("item",{item:o,id:"".concat(r.idSource,"_").concat(n),listIndex:0}),onClick:function(e){return r.onItemClick(e,o,n,0)},onDblclick:function(e){return r.onItemDblClick(e,o,0)},onTouchend:t[4]||(t[4]=function(){return r.onItemTouchEnd&&r.onItemTouchEnd.apply(r,arguments)}),onMousedown:function(e){return r.onOptionMouseDown(n,"sourceList")},role:"option","aria-selected":r.isSelected(o,0)},r.getPTOptions(o,"item","".concat(r.idSource,"_").concat(n),0),{"data-p-highlight":r.isSelected(o,0),"data-p-focused":"".concat(r.idSource,"_").concat(n)===r.focusedOptionId}),[p.renderSlot(e.$slots,"item",{item:o,index:n})],16,K)),[[d]])})),128))]})),_:3},16,["id","class","style","aria-activedescendant","tabindex"])],16),p.createElementVNode("div",p.mergeProps({class:e.cx("buttons")},e.ptm("buttons"),{"data-pc-group-section":"controls"}),[p.renderSlot(e.$slots,"movecontrolsstart"),p.createVNode(s,p.mergeProps({"aria-label":r.moveToTargetAriaLabel,type:"button",onClick:r.moveToTarget,disabled:r.moveDisabled(0),pt:e.ptm("moveToTargetButton")},e.moveToTargetProps,{unstyled:e.unstyled}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movetotargeticon",{viewChanged:i.viewChanged},(function(){return[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(i.viewChanged?"AngleDownIcon":"AngleRightIcon"),p.mergeProps(e.ptm("moveToTargetButton").icon,{"data-pc-section":"movetotargeticon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),p.createVNode(s,p.mergeProps({"aria-label":r.moveAllToTargetAriaLabel,type:"button",onClick:r.moveAllToTarget,disabled:r.moveAllDisabled("sourceList"),pt:e.ptm("moveAllToTargetButton")},e.moveAllToTargetProps,{unstyled:e.unstyled}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movealltotargeticon",{viewChanged:i.viewChanged},(function(){return[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(i.viewChanged?"AngleDoubleDownIcon":"AngleDoubleRightIcon"),p.mergeProps(e.ptm("moveAllToTargetButton").icon,{"data-pc-section":"movealltotargeticon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),p.createVNode(s,p.mergeProps({"aria-label":r.moveToSourceAriaLabel,type:"button",onClick:r.moveToSource,disabled:r.moveDisabled(1),pt:e.ptm("moveToSourceButton")},e.moveToSourceProps,{unstyled:e.unstyled}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movetosourceicon",{viewChanged:i.viewChanged},(function(){return[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(i.viewChanged?"AngleUpIcon":"AngleLeftIcon"),p.mergeProps(e.ptm("moveToSourceButton").icon,{"data-pc-section":"movetosourceicon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),p.createVNode(s,p.mergeProps({"aria-label":r.moveAllToSourceAriaLabel,type:"button",onClick:r.moveAllToSource,disabled:r.moveSourceDisabled("targetList"),pt:e.ptm("moveAllToSourceButton")},e.moveAllToSourceProps,{unstyled:e.unstyled}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movealltosourceicon",{viewChanged:i.viewChanged},(function(){return[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(i.viewChanged?"AngleDoubleUpIcon":"AngleDoubleLeftIcon"),p.mergeProps(e.ptm("moveAllToSourceButton").icon,{"data-pc-section":"movealltosourceicon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),p.renderSlot(e.$slots,"movecontrolsend")],16),p.createElementVNode("div",p.mergeProps({class:e.cx("targetWrapper")},e.ptm("targetWrapper"),{"data-pc-group-section":"listwrapper"}),[e.$slots.targetheader?(p.openBlock(),p.createElementBlock("div",p.mergeProps({key:0,class:e.cx("targetHeader")},e.ptm("targetHeader"),{"data-pc-group-section":"header"}),[p.renderSlot(e.$slots,"targetheader")],16)):p.createCommentVNode("",!0),p.createVNode(p.TransitionGroup,p.mergeProps({ref:"targetList",id:r.idTarget+"_list",name:"p-picklist-flip",tag:"ul",class:e.cx("targetList"),style:e.listStyle,role:"listbox","aria-multiselectable":"true","aria-activedescendant":i.focused.targetList?r.focusedOptionId:void 0,tabindex:r.targetList&&r.targetList.length>0?e.tabindex:-1,onFocus:t[10]||(t[10]=function(e){return r.onListFocus(e,"targetList")}),onBlur:t[11]||(t[11]=function(e){return r.onListBlur(e,"targetList")}),onKeydown:t[12]||(t[12]=function(e){return r.onItemKeyDown(e,"targetList")})},_(_(_({},e.targetListProps),e.ptm("targetList")),e.ptm("transition")),{"data-pc-group-section":"list"}),{default:p.withCtx((function(){return[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.targetList,(function(o,n){return p.withDirectives((p.openBlock(),p.createElementBlock("li",p.mergeProps({key:r.getItemKey(o,n),id:r.idTarget+"_"+n,class:e.cx("item",{item:o,id:"".concat(r.idTarget,"_").concat(n),listIndex:1}),onClick:function(e){return r.onItemClick(e,o,n,1)},onDblclick:function(e){return r.onItemDblClick(e,o,1)},onKeydown:t[8]||(t[8]=function(e){return r.onItemKeyDown(e,"targetList")}),onMousedown:function(e){return r.onOptionMouseDown(n,"targetList")},onTouchend:t[9]||(t[9]=function(){return r.onItemTouchEnd&&r.onItemTouchEnd.apply(r,arguments)}),role:"option","aria-selected":r.isSelected(o,1)},r.getPTOptions(o,"item","".concat(r.idTarget,"_").concat(n),1),{"data-p-highlight":r.isSelected(o,1),"data-p-focused":"".concat(r.idTarget,"_").concat(n)===r.focusedOptionId}),[p.renderSlot(e.$slots,"item",{item:o,index:n})],16,M)),[[d]])})),128))]})),_:3},16,["id","class","style","aria-activedescendant","tabindex"])],16),e.showTargetControls?(p.openBlock(),p.createElementBlock("div",p.mergeProps({key:1,class:e.cx("targetControls")},e.ptm("targetControls"),{"data-pc-group-section":"controls"}),[p.renderSlot(e.$slots,"targetcontrolsstart"),p.createVNode(s,p.mergeProps({"aria-label":r.moveUpAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[13]||(t[13]=function(e){return r.moveUp(e,1)}),pt:e.ptm("targetMoveUpButton")},e.moveUpButtonProps,{unstyled:e.unstyled}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"moveupicon",{},(function(){return[p.createVNode(l,p.mergeProps(e.ptm("targetMoveUpButton").icon,{"data-pc-section":"moveupicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),p.createVNode(s,p.mergeProps({"aria-label":r.moveTopAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[14]||(t[14]=function(e){return r.moveTop(e,1)}),pt:e.ptm("targetMoveTopButton")},e.moveTopButtonProps,{unstyled:e.unstyled}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movetopicon",{},(function(){return[p.createVNode(a,p.mergeProps(e.ptm("targetMoveTopButton").icon,{"data-pc-section":"movetopicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),p.createVNode(s,p.mergeProps({"aria-label":r.moveDownAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[15]||(t[15]=function(e){return r.moveDown(e,1)}),pt:e.ptm("targetMoveDownButton")},e.moveDownButtonProps,{unstyled:e.unstyled}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movedownicon",{},(function(){return[p.createVNode(c,p.mergeProps(e.ptm("targetMoveDownButton").icon,{"data-pc-section":"movedownicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),p.createVNode(s,p.mergeProps({"aria-label":r.moveBottomAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[16]||(t[16]=function(e){return r.moveBottom(e,1)}),pt:e.ptm("targetMoveBottomButton")},e.moveBottomButtonProps,{unstyled:e.unstyled}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movebottomicon",{},(function(){return[p.createVNode(u,p.mergeProps(e.ptm("targetMoveBottomButton").icon,{"data-pc-section":"movebottomicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),p.renderSlot(e.$slots,"targetcontrolsend")],16)):p.createCommentVNode("",!0)],16)},A}(primevue.button,primevue.icons.angledoubledown,primevue.icons.angledoubleleft,primevue.icons.angledoubleright,primevue.icons.angledoubleup,primevue.icons.angledown,primevue.icons.angleleft,primevue.icons.angleright,primevue.icons.angleup,primevue.ripple,primevue.utils,primevue.basecomponent,primevue.picklist.style,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.picklist=function(e,t,o,n,i,r,l,s,a,c,u,d,m,p){"use strict";function h(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var f=h(e),v=h(t),g=h(o),b=h(n),y=h(i),w=h(r),I=h(l),$=h(s),D=h(a),L=h(c);function S(e){return C(e)||k(e)||x(e)||T()}function T(){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 x(e,t){if(e){if("string"==typeof e)return B(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?B(e,t):void 0}}function k(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function C(e){if(Array.isArray(e))return B(e)}function B(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}var A={name:"PickList",extends:{name:"BasePickList",extends:h(d).default,props:{modelValue:{type:Array,default:function(){return[[],[]]}},selection:{type:Array,default:function(){return[[],[]]}},dataKey:{type:String,default:null},listStyle:{type:null,default:null},metaKeySelection:{type:Boolean,default:!0},responsive:{type:Boolean,default:!0},breakpoint:{type:String,default:"960px"},stripedRows:{type:Boolean,default:!1},showSourceControls:{type:Boolean,default:!0},showTargetControls:{type:Boolean,default:!0},targetListProps:{type:null,default:null},sourceListProps:{type:null,default:null},moveUpButtonProps:{type:null,default:null},moveTopButtonProps:{type:null,default:null},moveDownButtonProps:{type:null,default:null},moveBottomButtonProps:{type:null,default:null},moveToTargetProps:{type:null,default:null},moveAllToTargetProps:{type:null,default:null},moveToSourceProps:{type:null,default:null},moveAllToSourceProps:{type:null,default:null},tabindex:{type:Number,default:0}},style:h(m).default,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","reorder","update:selection","selection-change","move-to-target","move-to-source","move-all-to-target","move-all-to-source","focus","blur"],itemTouched:!1,reorderDirection:null,styleElement:null,media:null,mediaChangeListener:null,data:function(){return{id:this.$attrs.id,d_selection:this.selection,focused:{sourceList:!1,targetList:!1},focusedOptionIndex:-1,viewChanged:!1}},watch:{"$attrs.id":function(e){this.id=e||u.UniqueComponentId()},selection:function(e){this.d_selection=e},breakpoint:function(e){this.destroyMedia(),this.initMedia()}},updated:function(){this.reorderDirection&&(this.updateListScroll(this.$refs.sourceList.$el),this.updateListScroll(this.$refs.targetList.$el),this.reorderDirection=null)},beforeUnmount:function(){this.destroyStyle(),this.destroyMedia()},mounted:function(){this.id=this.id||u.UniqueComponentId(),this.responsive&&(this.createStyle(),this.initMedia())},methods:{getItemKey:function(e,t){return this.dataKey?u.ObjectUtils.resolveFieldData(e,this.dataKey):t},getPTOptions:function(e,t,o,n){return this.ptm(t,{context:{active:this.isSelected(e,n),focused:o===this.focusedOptionId}})},isSelected:function(e,t){return-1!=u.ObjectUtils.findIndexInList(e,this.d_selection[t])},onListFocus:function(e,t){var o=u.DomHandler.findSingle(this.$refs[t].$el,'[data-p-highlight="true"]')||u.DomHandler.findSingle(this.$refs[t].$el,'[data-pc-section="item"]');if(o){var n=u.ObjectUtils.findIndexInList(o,this.$refs[t].$el.children);this.focused[t]=!0,this.changeFocusedOptionIndex(-1!==this.focusedOptionIndex?this.focusedOptionIndex:o?n:-1,t),this.$emit("focus",e)}},onListBlur:function(e,t){this.focused[t]=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onOptionMouseDown:function(e,t){this.focused[t]=!0,this.focusedOptionIndex=e},moveUp:function(e,t){if(this.d_selection&&this.d_selection[t]){for(var o=S(this.modelValue[t]),n=this.d_selection[t],i=0;i<n.length;i++){var r=u.ObjectUtils.findIndexInList(n[i],o);if(0===r)break;var l=o[r-1];o[r-1]=o[r],o[r]=l}var s=S(this.modelValue);s[t]=o,this.reorderDirection="up",this.$emit("update:modelValue",s),this.$emit("reorder",{originalEvent:e,value:s,direction:this.reorderDirection,listIndex:t})}},moveTop:function(e,t){if(this.d_selection){for(var o=S(this.modelValue[t]),n=this.d_selection[t],i=0;i<n.length;i++){var r=u.ObjectUtils.findIndexInList(n[i],o);if(0===r)break;var l=o.splice(r,1)[0];o.unshift(l)}var s=S(this.modelValue);s[t]=o,this.reorderDirection="top",this.$emit("update:modelValue",s),this.$emit("reorder",{originalEvent:e,value:s,direction:this.reorderDirection,listIndex:t})}},moveDown:function(e,t){if(this.d_selection){for(var o=S(this.modelValue[t]),n=this.d_selection[t],i=n.length-1;i>=0;i--){var r=u.ObjectUtils.findIndexInList(n[i],o);if(r===o.length-1)break;var l=o[r+1];o[r+1]=o[r],o[r]=l}var s=S(this.modelValue);s[t]=o,this.reorderDirection="down",this.$emit("update:modelValue",s),this.$emit("reorder",{originalEvent:e,value:s,direction:this.reorderDirection,listIndex:t})}},moveBottom:function(e,t){if(this.d_selection){for(var o=S(this.modelValue[t]),n=this.d_selection[t],i=n.length-1;i>=0;i--){var r=u.ObjectUtils.findIndexInList(n[i],o);if(r===o.length-1)break;var l=o.splice(r,1)[0];o.push(l)}var s=S(this.modelValue);s[t]=o,this.reorderDirection="bottom",this.$emit("update:modelValue",s),this.$emit("reorder",{originalEvent:e,value:s,direction:this.reorderDirection,listIndex:t})}},moveToTarget:function(e){var t=this.d_selection&&this.d_selection[0]?this.d_selection[0]:null,o=S(this.modelValue[0]),n=S(this.modelValue[1]);if(t){for(var i=0;i<t.length;i++){var r=t[i];-1==u.ObjectUtils.findIndexInList(r,n)&&n.push(o.splice(u.ObjectUtils.findIndexInList(r,o),1)[0])}var l=S(this.modelValue);l[0]=o,l[1]=n,this.$emit("update:modelValue",l),this.$emit("move-to-target",{originalEvent:e,items:S(new Set(t))}),this.d_selection[0]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},moveAllToTarget:function(e){if(this.modelValue[0]){var t=S(this.modelValue[0]),o=S(this.modelValue[1]);this.$emit("move-all-to-target",{originalEvent:e,items:t}),o=[].concat(S(o),S(t)),t=[];var n=S(this.modelValue);n[0]=t,n[1]=o,this.$emit("update:modelValue",n),this.d_selection[0]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},moveToSource:function(e){var t=this.d_selection&&this.d_selection[1]?this.d_selection[1]:null,o=S(this.modelValue[0]),n=S(this.modelValue[1]);if(t){for(var i=0;i<t.length;i++){var r=t[i];-1==u.ObjectUtils.findIndexInList(r,o)&&o.push(n.splice(u.ObjectUtils.findIndexInList(r,n),1)[0])}var l=S(this.modelValue);l[0]=o,l[1]=n,this.$emit("update:modelValue",l),this.$emit("move-to-source",{originalEvent:e,items:S(new Set(t))}),this.d_selection[1]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},moveAllToSource:function(e){if(this.modelValue[1]){var t=S(this.modelValue[0]),o=S(this.modelValue[1]);this.$emit("move-all-to-source",{originalEvent:e,items:o}),t=[].concat(S(t),S(o)),o=[];var n=S(this.modelValue);n[0]=t,n[1]=o,this.$emit("update:modelValue",n),this.d_selection[1]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},onItemClick:function(e,t,o,n){var i=0===n?"sourceList":"targetList";this.itemTouched=!1;var r,l=this.d_selection[n],s=u.ObjectUtils.findIndexInList(t,this.d_selection),a=-1!=s,c=!this.itemTouched&&this.metaKeySelection,d=u.DomHandler.find(this.$refs[i].$el,'[data-pc-section="item"]')[o].getAttribute("id");if(this.focusedOptionIndex=d,c){var m=e.metaKey||e.ctrlKey;a&&m?r=l.filter((function(e,t){return t!==s})):(r=m&&l?S(l):[]).push(t)}else a?r=l.filter((function(e,t){return t!==s})):(r=l?S(l):[]).push(t);var p=S(this.d_selection);p[n]=r,this.d_selection=p,this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})},onItemDblClick:function(e,t,o){0===o?this.moveToTarget(e):1===o&&this.moveToSource(e)},onItemTouchEnd:function(){this.itemTouched=!0},onItemKeyDown:function(e,t){switch(e.code){case"ArrowDown":this.onArrowDownKey(e,t);break;case"ArrowUp":this.onArrowUpKey(e,t);break;case"Home":this.onHomeKey(e,t);break;case"End":this.onEndKey(e,t);break;case"Enter":this.onEnterKey(e,t);break;case"Space":this.onSpaceKey(e,t);break;case"KeyA":e.ctrlKey&&(this.d_selection=S(this.modelValue),this.$emit("update:selection",this.d_selection),e.preventDefault())}},onArrowDownKey:function(e,t){var o=this.findNextOptionIndex(this.focusedOptionIndex,t);this.changeFocusedOptionIndex(o,t),e.shiftKey&&this.onEnterKey(e,t),e.preventDefault()},onArrowUpKey:function(e,t){var o=this.findPrevOptionIndex(this.focusedOptionIndex,t);this.changeFocusedOptionIndex(o,t),e.shiftKey&&this.onEnterKey(e,t),e.preventDefault()},onEnterKey:function(e,t){var o=u.DomHandler.find(this.$refs[t].$el,'[data-pc-section="item"]'),n=u.DomHandler.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),i=S(o).findIndex((function(e){return e===n})),r="sourceList"===t?0:1;this.onItemClick(e,this.modelValue[r][i],i,r),e.preventDefault()},onSpaceKey:function(e,t){if(e.preventDefault(),e.shiftKey&&this.d_selection&&this.d_selection.length>0){var o="sourceList"===t?0:1,n=u.DomHandler.find(this.$refs[t].$el,'[data-pc-section="item"]'),i=u.ObjectUtils.findIndexInList(this.d_selection[o][0],S(this.modelValue[o])),r=u.DomHandler.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),l=S(n).findIndex((function(e){return e===r}));this.d_selection[o]=S(this.modelValue[o]).slice(Math.min(i,l),Math.max(i,l)+1),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}else this.onEnterKey(e,t)},onHomeKey:function(e,t){if(e.ctrlKey&&e.shiftKey){var o="sourceList"===t?0:1,n=u.DomHandler.find(this.$refs[t].$el,'[data-pc-section="item"]'),i=u.DomHandler.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),r=S(n).findIndex((function(e){return e===i}));this.d_selection[o]=S(this.modelValue[o]).slice(0,r+1),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}else this.changeFocusedOptionIndex(0,t);e.preventDefault()},onEndKey:function(e,t){var o=u.DomHandler.find(this.$refs[t].$el,'[data-pc-section="item"]');if(e.ctrlKey&&e.shiftKey){var n="sourceList"===t?0:1,i=u.DomHandler.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),r=S(o).findIndex((function(e){return e===i}));this.d_selection[n]=S(this.modelValue[n]).slice(r,o.length),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}else this.changeFocusedOptionIndex(o.length-1,t);e.preventDefault()},findNextOptionIndex:function(e,t){var o=S(u.DomHandler.find(this.$refs[t].$el,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return o>-1?o+1:0},findPrevOptionIndex:function(e,t){var o=S(u.DomHandler.find(this.$refs[t].$el,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return o>-1?o-1:0},changeFocusedOptionIndex:function(e,t){var o=u.DomHandler.find(this.$refs[t].$el,'[data-pc-section="item"]'),n=e>=o.length?o.length-1:e<0?0:e;this.focusedOptionIndex=o[n].getAttribute("id"),this.scrollInView(o[n].getAttribute("id"),t)},scrollInView:function(e,t){var o=u.DomHandler.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id="'.concat(e,'"]'));o&&o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"start"})},updateListScroll:function(e){var t=u.DomHandler.find(e,'[data-pc-section="item"][data-p-highlight="true"]');if(t&&t.length)switch(this.reorderDirection){case"up":u.DomHandler.scrollInView(e,t[0]);break;case"top":e.scrollTop=0;break;case"down":u.DomHandler.scrollInView(e,t[t.length-1]);break;case"bottom":e.scrollTop=e.scrollHeight}},initMedia:function(){this.media=window.matchMedia("(max-width: ".concat(this.breakpoint,")")),this.viewChanged=this.media.matches,this.bindMediaChangeListener()},destroyMedia:function(){this.unbindMediaChangeListener()},bindMediaChangeListener:function(){var e=this;this.media&&!this.mediaChangeListener&&(this.mediaChangeListener=function(t){e.viewChanged=t.matches},this.media.addEventListener("change",this.mediaChangeListener))},unbindMediaChangeListener:function(){this.media&&this.mediaChangeListener&&(this.media.removeEventListener("change",this.mediaChangeListener),this.mediaChangeListener=null)},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.$el.setAttribute(this.attributeSelector,""),this.styleElement=document.createElement("style"),this.styleElement.type="text/css",u.DomHandler.setAttribute(this.styleElement,"nonce",null===(e=this.$primevue)||void 0===e||null===(e=e.config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce),document.head.appendChild(this.styleElement);var t="\n@media screen and (max-width: ".concat(this.breakpoint,") {\n .p-picklist[").concat(this.attributeSelector,"] {\n flex-direction: column;\n }\n\n .p-picklist[").concat(this.attributeSelector,"] .p-picklist-buttons {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-picklist[").concat(this.attributeSelector,"] .p-picklist-buttons .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-picklist[").concat(this.attributeSelector,"] .p-picklist-buttons .p-button:last-child {\n margin-right: 0;\n }\n}\n");this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},moveDisabled:function(e){if(!this.d_selection[e]||!this.d_selection[e].length)return!0},moveAllDisabled:function(e){return u.ObjectUtils.isEmpty(this[e])}},computed:{idSource:function(){return"".concat(this.id,"_source")},idTarget:function(){return"".concat(this.id,"_target")},focusedOptionId:function(){return-1!==this.focusedOptionIndex?this.focusedOptionIndex:null},sourceList:function(){return this.modelValue&&this.modelValue[0]?this.modelValue[0]:null},targetList:function(){return this.modelValue&&this.modelValue[1]?this.modelValue[1]:null},attributeSelector:function(){return u.UniqueComponentId()},moveUpAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveUp:void 0},moveTopAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveTop:void 0},moveDownAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveDown:void 0},moveBottomAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveBottom:void 0},moveToTargetAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveToTarget:void 0},moveAllToTargetAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveAllToTarget:void 0},moveToSourceAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveToSource:void 0},moveAllToSourceAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveAllToSource:void 0}},components:{PLButton:f.default,AngleRightIcon:$.default,AngleLeftIcon:I.default,AngleDownIcon:w.default,AngleUpIcon:D.default,AngleDoubleRightIcon:b.default,AngleDoubleLeftIcon:g.default,AngleDoubleDownIcon:v.default,AngleDoubleUpIcon:y.default},directives:{ripple:L.default}};function P(e){return P="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},P(e)}function V(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function _(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?V(Object(o),!0).forEach((function(t){O(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):V(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function O(e,t,o){return(t=E(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function E(e){var t=U(e,"string");return"symbol"===P(t)?t:String(t)}function U(e,t){if("object"!==P(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!==P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var K=["id","onClick","onDblclick","onMousedown","aria-selected","data-p-highlight","data-p-focused"],M=["id","onClick","onDblclick","onMousedown","aria-selected","data-p-highlight","data-p-focused"];return A.render=function(e,t,o,n,i,r){var l=p.resolveComponent("AngleUpIcon"),s=p.resolveComponent("PLButton"),a=p.resolveComponent("AngleDoubleUpIcon"),c=p.resolveComponent("AngleDownIcon"),u=p.resolveComponent("AngleDoubleDownIcon"),d=p.resolveDirective("ripple");return p.openBlock(),p.createElementBlock("div",p.mergeProps({class:e.cx("root")},e.ptm("root")),[e.showSourceControls?(p.openBlock(),p.createElementBlock("div",p.mergeProps({key:0,class:e.cx("sourceControls")},e.ptm("sourceControls"),{"data-pc-group-section":"controls"}),[p.renderSlot(e.$slots,"sourcecontrolsstart"),p.createVNode(s,p.mergeProps({"aria-label":r.moveUpAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[0]||(t[0]=function(e){return r.moveUp(e,0)})},e.moveUpButtonProps,{pt:e.ptm("sourceMoveUpButton"),unstyled:e.unstyled,"data-pc-section":"sourcemoveupbutton"}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"moveupicon",{},(function(){return[p.createVNode(l,p.mergeProps(e.ptm("sourceMoveUpButton").icon,{"data-pc-section":"moveupicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),p.createVNode(s,p.mergeProps({"aria-label":r.moveTopAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[1]||(t[1]=function(e){return r.moveTop(e,0)})},e.moveTopButtonProps,{pt:e.ptm("sourceMoveTopButton"),unstyled:e.unstyled,"data-pc-section":"sourcemovetopbutton"}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movetopicon",{},(function(){return[p.createVNode(a,p.mergeProps(e.ptm("sourceMoveTopButton").icon,{"data-pc-section":"movetopicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),p.createVNode(s,p.mergeProps({"aria-label":r.moveDownAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[2]||(t[2]=function(e){return r.moveDown(e,0)})},e.moveDownButtonProps,{pt:e.ptm("sourceMoveDownButton"),unstyled:e.unstyled,"data-pc-section":"sourcemovedownbutton"}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movedownicon",{},(function(){return[p.createVNode(c,p.mergeProps(e.ptm("sourceMoveDownButton").icon,{"data-pc-section":"movedownicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),p.createVNode(s,p.mergeProps({"aria-label":r.moveBottomAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[3]||(t[3]=function(e){return r.moveBottom(e,0)})},e.moveBottomButtonProps,{pt:e.ptm("sourceMoveBottomButton"),unstyled:e.unstyled,"data-pc-section":"sourcemovebottombutton"}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movebottomicon",{},(function(){return[p.createVNode(u,p.mergeProps(e.ptm("sourceMoveBottomButton").icon,{"data-pc-section":"movebottomicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),p.renderSlot(e.$slots,"sourcecontrolsend")],16)):p.createCommentVNode("",!0),p.createElementVNode("div",p.mergeProps({class:e.cx("sourceWrapper")},e.ptm("sourceWrapper"),{"data-pc-group-section":"listwrapper"}),[e.$slots.sourceheader?(p.openBlock(),p.createElementBlock("div",p.mergeProps({key:0,class:e.cx("sourceHeader")},e.ptm("sourceHeader"),{"data-pc-group-section":"header"}),[p.renderSlot(e.$slots,"sourceheader")],16)):p.createCommentVNode("",!0),p.createVNode(p.TransitionGroup,p.mergeProps({ref:"sourceList",id:r.idSource+"_list",name:"p-picklist-flip",tag:"ul",class:e.cx("sourceList"),style:e.listStyle,role:"listbox","aria-multiselectable":"true","aria-activedescendant":i.focused.sourceList?r.focusedOptionId:void 0,tabindex:r.sourceList&&r.sourceList.length>0?e.tabindex:-1,onFocus:t[5]||(t[5]=function(e){return r.onListFocus(e,"sourceList")}),onBlur:t[6]||(t[6]=function(e){return r.onListBlur(e,"sourceList")}),onKeydown:t[7]||(t[7]=function(e){return r.onItemKeyDown(e,"sourceList")})},_(_(_({},e.sourceListProps),e.ptm("sourceList")),e.ptm("transition")),{"data-pc-group-section":"list"}),{default:p.withCtx((function(){return[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.sourceList,(function(o,n){return p.withDirectives((p.openBlock(),p.createElementBlock("li",p.mergeProps({key:r.getItemKey(o,n),id:r.idSource+"_"+n,class:e.cx("item",{item:o,id:"".concat(r.idSource,"_").concat(n),listIndex:0}),onClick:function(e){return r.onItemClick(e,o,n,0)},onDblclick:function(e){return r.onItemDblClick(e,o,0)},onTouchend:t[4]||(t[4]=function(){return r.onItemTouchEnd&&r.onItemTouchEnd.apply(r,arguments)}),onMousedown:function(e){return r.onOptionMouseDown(n,"sourceList")},role:"option","aria-selected":r.isSelected(o,0)},r.getPTOptions(o,"item","".concat(r.idSource,"_").concat(n),0),{"data-p-highlight":r.isSelected(o,0),"data-p-focused":"".concat(r.idSource,"_").concat(n)===r.focusedOptionId}),[p.renderSlot(e.$slots,"item",{item:o,index:n})],16,K)),[[d]])})),128))]})),_:3},16,["id","class","style","aria-activedescendant","tabindex"])],16),p.createElementVNode("div",p.mergeProps({class:e.cx("buttons")},e.ptm("buttons"),{"data-pc-group-section":"controls"}),[p.renderSlot(e.$slots,"movecontrolsstart"),p.createVNode(s,p.mergeProps({"aria-label":r.moveToTargetAriaLabel,type:"button",onClick:r.moveToTarget,disabled:r.moveDisabled(0)},e.moveToTargetProps,{pt:e.ptm("moveToTargetButton"),unstyled:e.unstyled,"data-pc-section":"movetotargetbuton"}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movetotargeticon",{viewChanged:i.viewChanged},(function(){return[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(i.viewChanged?"AngleDownIcon":"AngleRightIcon"),p.mergeProps(e.ptm("moveToTargetButton").icon,{"data-pc-section":"movetotargeticon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),p.createVNode(s,p.mergeProps({"aria-label":r.moveAllToTargetAriaLabel,type:"button",onClick:r.moveAllToTarget,disabled:r.moveAllDisabled("sourceList")},e.moveAllToTargetProps,{pt:e.ptm("moveAllToTargetButton"),unstyled:e.unstyled,"data-pc-section":"movealltotargetbuton"}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movealltotargeticon",{viewChanged:i.viewChanged},(function(){return[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(i.viewChanged?"AngleDoubleDownIcon":"AngleDoubleRightIcon"),p.mergeProps(e.ptm("moveAllToTargetButton").icon,{"data-pc-section":"movealltotargeticon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),p.createVNode(s,p.mergeProps({"aria-label":r.moveToSourceAriaLabel,type:"button",onClick:r.moveToSource,disabled:r.moveDisabled(1)},e.moveToSourceProps,{pt:e.ptm("moveToSourceButton"),unstyled:e.unstyled,"data-pc-section":"movetosourcebuton"}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movetosourceicon",{viewChanged:i.viewChanged},(function(){return[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(i.viewChanged?"AngleUpIcon":"AngleLeftIcon"),p.mergeProps(e.ptm("moveToSourceButton").icon,{"data-pc-section":"movetosourceicon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),p.createVNode(s,p.mergeProps({"aria-label":r.moveAllToSourceAriaLabel,type:"button",onClick:r.moveAllToSource,disabled:r.moveAllDisabled("targetList")},e.moveAllToSourceProps,{pt:e.ptm("moveAllToSourceButton"),"data-pc-section":"movealltosourcebuton",unstyled:e.unstyled}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movealltosourceicon",{viewChanged:i.viewChanged},(function(){return[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(i.viewChanged?"AngleDoubleUpIcon":"AngleDoubleLeftIcon"),p.mergeProps(e.ptm("moveAllToSourceButton").icon,{"data-pc-section":"movealltosourceicon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),p.renderSlot(e.$slots,"movecontrolsend")],16),p.createElementVNode("div",p.mergeProps({class:e.cx("targetWrapper")},e.ptm("targetWrapper"),{"data-pc-group-section":"listwrapper"}),[e.$slots.targetheader?(p.openBlock(),p.createElementBlock("div",p.mergeProps({key:0,class:e.cx("targetHeader")},e.ptm("targetHeader"),{"data-pc-group-section":"header"}),[p.renderSlot(e.$slots,"targetheader")],16)):p.createCommentVNode("",!0),p.createVNode(p.TransitionGroup,p.mergeProps({ref:"targetList",id:r.idTarget+"_list",name:"p-picklist-flip",tag:"ul",class:e.cx("targetList"),style:e.listStyle,role:"listbox","aria-multiselectable":"true","aria-activedescendant":i.focused.targetList?r.focusedOptionId:void 0,tabindex:r.targetList&&r.targetList.length>0?e.tabindex:-1,onFocus:t[10]||(t[10]=function(e){return r.onListFocus(e,"targetList")}),onBlur:t[11]||(t[11]=function(e){return r.onListBlur(e,"targetList")}),onKeydown:t[12]||(t[12]=function(e){return r.onItemKeyDown(e,"targetList")})},_(_(_({},e.targetListProps),e.ptm("targetList")),e.ptm("transition")),{"data-pc-group-section":"list"}),{default:p.withCtx((function(){return[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.targetList,(function(o,n){return p.withDirectives((p.openBlock(),p.createElementBlock("li",p.mergeProps({key:r.getItemKey(o,n),id:r.idTarget+"_"+n,class:e.cx("item",{item:o,id:"".concat(r.idTarget,"_").concat(n),listIndex:1}),onClick:function(e){return r.onItemClick(e,o,n,1)},onDblclick:function(e){return r.onItemDblClick(e,o,1)},onKeydown:t[8]||(t[8]=function(e){return r.onItemKeyDown(e,"targetList")}),onMousedown:function(e){return r.onOptionMouseDown(n,"targetList")},onTouchend:t[9]||(t[9]=function(){return r.onItemTouchEnd&&r.onItemTouchEnd.apply(r,arguments)}),role:"option","aria-selected":r.isSelected(o,1)},r.getPTOptions(o,"item","".concat(r.idTarget,"_").concat(n),1),{"data-p-highlight":r.isSelected(o,1),"data-p-focused":"".concat(r.idTarget,"_").concat(n)===r.focusedOptionId}),[p.renderSlot(e.$slots,"item",{item:o,index:n})],16,M)),[[d]])})),128))]})),_:3},16,["id","class","style","aria-activedescendant","tabindex"])],16),e.showTargetControls?(p.openBlock(),p.createElementBlock("div",p.mergeProps({key:1,class:e.cx("targetControls")},e.ptm("targetControls"),{"data-pc-group-section":"controls"}),[p.renderSlot(e.$slots,"targetcontrolsstart"),p.createVNode(s,p.mergeProps({"aria-label":r.moveUpAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[13]||(t[13]=function(e){return r.moveUp(e,1)})},e.moveUpButtonProps,{pt:e.ptm("targetMoveUpButton"),unstyled:e.unstyled,"data-pc-section":"targetmoveupbutton"}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"moveupicon",{},(function(){return[p.createVNode(l,p.mergeProps(e.ptm("targetMoveUpButton").icon,{"data-pc-section":"moveupicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),p.createVNode(s,p.mergeProps({"aria-label":r.moveTopAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[14]||(t[14]=function(e){return r.moveTop(e,1)})},e.moveTopButtonProps,{pt:e.ptm("targetMoveTopButton"),unstyled:e.unstyled,"data-pc-section":"targetmovetopbutton"}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movetopicon",{},(function(){return[p.createVNode(a,p.mergeProps(e.ptm("targetMoveTopButton").icon,{"data-pc-section":"movetopicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),p.createVNode(s,p.mergeProps({"aria-label":r.moveDownAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[15]||(t[15]=function(e){return r.moveDown(e,1)})},e.moveDownButtonProps,{pt:e.ptm("targetMoveDownButton"),unstyled:e.unstyled,"data-pc-section":"targetmovedownbutton"}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movedownicon",{},(function(){return[p.createVNode(c,p.mergeProps(e.ptm("targetMoveDownButton").icon,{"data-pc-section":"movedownicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),p.createVNode(s,p.mergeProps({"aria-label":r.moveBottomAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[16]||(t[16]=function(e){return r.moveBottom(e,1)})},e.moveBottomButtonProps,{pt:e.ptm("targetMoveBottomButton"),unstyled:e.unstyled,"data-pc-section":"targetmovebottombutton"}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movebottomicon",{},(function(){return[p.createVNode(u,p.mergeProps(e.ptm("targetMoveBottomButton").icon,{"data-pc-section":"movebottomicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),p.renderSlot(e.$slots,"targetcontrolsend")],16)):p.createCommentVNode("",!0)],16)},A}(primevue.button,primevue.icons.angledoubledown,primevue.icons.angledoubleleft,primevue.icons.angledoubleright,primevue.icons.angledoubleup,primevue.icons.angledown,primevue.icons.angleleft,primevue.icons.angleright,primevue.icons.angleup,primevue.ripple,primevue.utils,primevue.basecomponent,primevue.picklist.style,Vue);
@@ -12,12 +12,12 @@ import { ComponentHooks } from '../basecomponent';
12
12
  import { PassThroughOptions } from '../passthrough';
13
13
  import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
14
14
 
15
- export declare type ProgressBarPassThroughOptionType = ProgressBarPassThroughAttributes | ((options: ProgressBarPassThroughMethodOptions) => ProgressBarPassThroughAttributes | string) | string | null | undefined;
15
+ export declare type ProgressBarPassThroughOptionType<T = any> = ProgressBarPassThroughAttributes | ((options: ProgressBarPassThroughMethodOptions<T>) => ProgressBarPassThroughAttributes | string) | string | null | undefined;
16
16
 
17
17
  /**
18
18
  * Custom passthrough(pt) option method.
19
19
  */
20
- export interface ProgressBarPassThroughMethodOptions {
20
+ export interface ProgressBarPassThroughMethodOptions<T> {
21
21
  /**
22
22
  * Defines instance.
23
23
  */
@@ -30,25 +30,29 @@ export interface ProgressBarPassThroughMethodOptions {
30
30
  * Defines passthrough(pt) options in global config.
31
31
  */
32
32
  global: object | undefined;
33
+ /**
34
+ * Defines parent instance.
35
+ */
36
+ parent: T;
33
37
  }
34
38
 
35
39
  /**
36
40
  * Custom passthrough(pt) options.
37
41
  * @see {@link ProgressBarProps.pt}
38
42
  */
39
- export interface ProgressBarPassThroughOptions {
43
+ export interface ProgressBarPassThroughOptions<T = any> {
40
44
  /**
41
45
  * Used to pass attributes to the root's DOM element.
42
46
  */
43
- root?: ProgressBarPassThroughOptionType;
47
+ root?: ProgressBarPassThroughOptionType<T>;
44
48
  /**
45
49
  * Used to pass attributes to the value's DOM element.
46
50
  */
47
- value?: ProgressBarPassThroughOptionType;
51
+ value?: ProgressBarPassThroughOptionType<T>;
48
52
  /**
49
53
  * Used to pass attributes to the label's DOM element.
50
54
  */
51
- label?: ProgressBarPassThroughOptionType;
55
+ label?: ProgressBarPassThroughOptionType<T>;
52
56
  /**
53
57
  * Used to manage all lifecycle hooks.
54
58
  * @see {@link BaseComponent.ComponentHooks}
@@ -25,6 +25,10 @@ export interface ProgressSpinnerPassThroughMethodOptions {
25
25
  * Defines valid properties.
26
26
  */
27
27
  props: ProgressSpinnerProps;
28
+ /**
29
+ * Defines parent options.
30
+ */
31
+ parent: any;
28
32
  /**
29
33
  * Defines passthrough(pt) options in global config.
30
34
  */
@@ -32,11 +32,11 @@ export default {
32
32
  type: null,
33
33
  default: null
34
34
  },
35
- 'aria-labelledby': {
35
+ ariaLabelledby: {
36
36
  type: String,
37
37
  default: null
38
38
  },
39
- 'aria-label': {
39
+ ariaLabel: {
40
40
  type: String,
41
41
  default: null
42
42
  }
@@ -30,6 +30,10 @@ export interface RadioButtonPassThroughMethodOptions {
30
30
  * Defines current inline state.
31
31
  */
32
32
  state: RadioButtonState;
33
+ /**
34
+ * Defines parent options.
35
+ */
36
+ parent: any;
33
37
  /**
34
38
  * Defines passthrough(pt) options in global config.
35
39
  */
@@ -126,11 +130,11 @@ export interface RadioButtonProps {
126
130
  /**
127
131
  * Establishes relationships between the component and label(s) where its value should be one or more element IDs.
128
132
  */
129
- 'aria-labelledby'?: string | undefined;
133
+ ariaLabelledby?: string | undefined;
130
134
  /**
131
135
  * Establishes a string value that labels the component.
132
136
  */
133
- 'aria-label'?: string | undefined;
137
+ ariaLabel?: string | undefined;
134
138
  /**
135
139
  * Used to pass attributes to DOM elements inside the component.
136
140
  * @type {RadioButtonPassThroughOptions}
@@ -40,11 +40,11 @@ var script$1 = {
40
40
  type: null,
41
41
  "default": null
42
42
  },
43
- 'aria-labelledby': {
43
+ ariaLabelledby: {
44
44
  type: String,
45
45
  "default": null
46
46
  },
47
- 'aria-label': {
47
+ ariaLabel: {
48
48
  type: String,
49
49
  "default": null
50
50
  }