primevue 3.44.0 → 3.45.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 (467) hide show
  1. package/accordion/Accordion.vue +1 -0
  2. package/accordion/accordion.cjs.js +1 -0
  3. package/accordion/accordion.cjs.min.js +1 -1
  4. package/accordion/accordion.esm.js +1 -0
  5. package/accordion/accordion.esm.min.js +1 -1
  6. package/accordion/accordion.js +1 -0
  7. package/accordion/accordion.min.js +1 -1
  8. package/basecomponent/BaseComponent.vue +1 -1
  9. package/basecomponent/basecomponent.cjs.js +2 -2
  10. package/basecomponent/basecomponent.cjs.min.js +1 -1
  11. package/basecomponent/basecomponent.esm.js +2 -2
  12. package/basecomponent/basecomponent.esm.min.js +1 -1
  13. package/basecomponent/basecomponent.js +2 -2
  14. package/basecomponent/basecomponent.min.js +1 -1
  15. package/basecomponent/style/basecomponentstyle.cjs.js +1 -1
  16. package/basecomponent/style/basecomponentstyle.cjs.min.js +1 -1
  17. package/basecomponent/style/basecomponentstyle.esm.js +1 -1
  18. package/basecomponent/style/basecomponentstyle.esm.min.js +1 -1
  19. package/basecomponent/style/basecomponentstyle.js +1 -1
  20. package/basecomponent/style/basecomponentstyle.min.js +1 -1
  21. package/baseicon/BaseIcon.vue +8 -14
  22. package/baseicon/baseicon.cjs.js +10 -15
  23. package/baseicon/baseicon.cjs.min.js +1 -1
  24. package/baseicon/baseicon.esm.js +10 -15
  25. package/baseicon/baseicon.esm.min.js +1 -1
  26. package/baseicon/baseicon.js +10 -15
  27. package/baseicon/baseicon.min.js +1 -1
  28. package/calendar/Calendar.vue +5 -2
  29. package/calendar/calendar.cjs.js +5 -2
  30. package/calendar/calendar.cjs.min.js +1 -1
  31. package/calendar/calendar.esm.js +5 -2
  32. package/calendar/calendar.esm.min.js +1 -1
  33. package/calendar/calendar.js +5 -2
  34. package/calendar/calendar.min.js +1 -1
  35. package/cascadeselect/CascadeSelect.vue +1 -0
  36. package/cascadeselect/cascadeselect.cjs.js +1 -0
  37. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  38. package/cascadeselect/cascadeselect.esm.js +1 -0
  39. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  40. package/cascadeselect/cascadeselect.js +1 -0
  41. package/cascadeselect/cascadeselect.min.js +1 -1
  42. package/cascadeselect/style/cascadeselectstyle.cjs.js +1 -1
  43. package/cascadeselect/style/cascadeselectstyle.cjs.min.js +1 -1
  44. package/cascadeselect/style/cascadeselectstyle.esm.js +1 -1
  45. package/cascadeselect/style/cascadeselectstyle.esm.min.js +1 -1
  46. package/cascadeselect/style/cascadeselectstyle.js +1 -1
  47. package/cascadeselect/style/cascadeselectstyle.min.js +1 -1
  48. package/chips/Chips.vue +1 -0
  49. package/chips/chips.cjs.js +1 -0
  50. package/chips/chips.cjs.min.js +1 -1
  51. package/chips/chips.esm.js +1 -0
  52. package/chips/chips.esm.min.js +1 -1
  53. package/chips/chips.js +1 -0
  54. package/chips/chips.min.js +1 -1
  55. package/column/Column.vue +7 -0
  56. package/column/column.cjs.js +9 -0
  57. package/column/column.cjs.min.js +1 -1
  58. package/column/column.esm.js +9 -0
  59. package/column/column.esm.min.js +1 -1
  60. package/column/column.js +9 -0
  61. package/column/column.min.js +1 -1
  62. package/columngroup/ColumnGroup.vue +7 -0
  63. package/columngroup/columngroup.cjs.js +9 -0
  64. package/columngroup/columngroup.cjs.min.js +1 -1
  65. package/columngroup/columngroup.esm.js +9 -0
  66. package/columngroup/columngroup.esm.min.js +1 -1
  67. package/columngroup/columngroup.js +9 -0
  68. package/columngroup/columngroup.min.js +1 -1
  69. package/confirmdialog/ConfirmDialog.d.ts +1 -1
  70. package/confirmpopup/ConfirmPopup.vue +2 -2
  71. package/confirmpopup/confirmpopup.cjs.js +2 -2
  72. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  73. package/confirmpopup/confirmpopup.esm.js +2 -2
  74. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  75. package/confirmpopup/confirmpopup.js +2 -2
  76. package/confirmpopup/confirmpopup.min.js +1 -1
  77. package/contextmenu/ContextMenu.vue +1 -0
  78. package/contextmenu/contextmenu.cjs.js +1 -0
  79. package/contextmenu/contextmenu.cjs.min.js +1 -1
  80. package/contextmenu/contextmenu.esm.js +1 -0
  81. package/contextmenu/contextmenu.esm.min.js +1 -1
  82. package/contextmenu/contextmenu.js +1 -0
  83. package/contextmenu/contextmenu.min.js +1 -1
  84. package/core/core.js +276 -132
  85. package/core/core.min.js +22 -22
  86. package/datatable/BaseDataTable.vue +2 -2
  87. package/datatable/BodyRow.vue +578 -0
  88. package/datatable/ColumnFilter.vue +1 -0
  89. package/datatable/DataTable.d.ts +1 -1
  90. package/datatable/DataTable.vue +111 -132
  91. package/datatable/HeaderCell.vue +9 -7
  92. package/datatable/TableBody.vue +74 -414
  93. package/datatable/TableFooter.vue +19 -26
  94. package/datatable/TableHeader.vue +19 -26
  95. package/datatable/datatable.cjs.js +891 -634
  96. package/datatable/datatable.cjs.min.js +1 -1
  97. package/datatable/datatable.esm.js +892 -635
  98. package/datatable/datatable.esm.min.js +1 -1
  99. package/datatable/datatable.js +891 -634
  100. package/datatable/datatable.min.js +1 -1
  101. package/datatable/style/datatablestyle.cjs.js +5 -4
  102. package/datatable/style/datatablestyle.cjs.min.js +1 -1
  103. package/datatable/style/datatablestyle.esm.js +5 -4
  104. package/datatable/style/datatablestyle.esm.min.js +1 -1
  105. package/datatable/style/datatablestyle.js +5 -4
  106. package/datatable/style/datatablestyle.min.js +1 -1
  107. package/dialog/style/dialogstyle.cjs.js +1 -1
  108. package/dialog/style/dialogstyle.cjs.min.js +1 -1
  109. package/dialog/style/dialogstyle.esm.js +1 -1
  110. package/dialog/style/dialogstyle.esm.min.js +1 -1
  111. package/dialog/style/dialogstyle.js +1 -1
  112. package/dialog/style/dialogstyle.min.js +1 -1
  113. package/dock/DockSub.vue +1 -0
  114. package/dock/dock.cjs.js +1 -0
  115. package/dock/dock.cjs.min.js +1 -1
  116. package/dock/dock.esm.js +1 -0
  117. package/dock/dock.esm.min.js +1 -1
  118. package/dock/dock.js +1 -0
  119. package/dock/dock.min.js +1 -1
  120. package/dropdown/Dropdown.vue +26 -0
  121. package/dropdown/dropdown.cjs.js +49 -25
  122. package/dropdown/dropdown.cjs.min.js +1 -1
  123. package/dropdown/dropdown.esm.js +49 -25
  124. package/dropdown/dropdown.esm.min.js +1 -1
  125. package/dropdown/dropdown.js +49 -25
  126. package/dropdown/dropdown.min.js +1 -1
  127. package/fieldset/Fieldset.vue +1 -1
  128. package/fieldset/fieldset.cjs.js +1 -1
  129. package/fieldset/fieldset.cjs.min.js +1 -1
  130. package/fieldset/fieldset.esm.js +1 -1
  131. package/fieldset/fieldset.esm.min.js +1 -1
  132. package/fieldset/fieldset.js +1 -1
  133. package/fieldset/fieldset.min.js +1 -1
  134. package/galleria/GalleriaItem.vue +1 -0
  135. package/galleria/GalleriaThumbnails.vue +1 -1
  136. package/galleria/galleria.cjs.js +2 -1
  137. package/galleria/galleria.cjs.min.js +1 -1
  138. package/galleria/galleria.esm.js +2 -1
  139. package/galleria/galleria.esm.min.js +1 -1
  140. package/galleria/galleria.js +2 -1
  141. package/galleria/galleria.min.js +1 -1
  142. package/icons/sortamountdown/index.cjs.js +10 -7
  143. package/icons/sortamountdown/index.cjs.min.js +1 -1
  144. package/icons/sortamountdown/index.esm.js +11 -8
  145. package/icons/sortamountdown/index.esm.min.js +1 -1
  146. package/icons/sortamountdown/index.js +10 -7
  147. package/icons/sortamountdown/index.min.js +1 -1
  148. package/icons/sortamountdown/index.vue +1 -21
  149. package/icons/sortamountupalt/index.cjs.js +10 -7
  150. package/icons/sortamountupalt/index.cjs.min.js +1 -1
  151. package/icons/sortamountupalt/index.esm.js +11 -8
  152. package/icons/sortamountupalt/index.esm.min.js +1 -1
  153. package/icons/sortamountupalt/index.js +10 -7
  154. package/icons/sortamountupalt/index.min.js +1 -1
  155. package/icons/sortamountupalt/index.vue +1 -21
  156. package/image/Image.vue +2 -6
  157. package/image/image.cjs.js +2 -5
  158. package/image/image.cjs.min.js +1 -1
  159. package/image/image.esm.js +2 -5
  160. package/image/image.esm.min.js +1 -1
  161. package/image/image.js +2 -5
  162. package/image/image.min.js +1 -1
  163. package/image/style/imagestyle.cjs.js +1 -1
  164. package/image/style/imagestyle.cjs.min.js +1 -1
  165. package/image/style/imagestyle.esm.js +1 -1
  166. package/image/style/imagestyle.esm.min.js +1 -1
  167. package/image/style/imagestyle.js +1 -1
  168. package/image/style/imagestyle.min.js +1 -1
  169. package/inputnumber/BaseInputNumber.vue +7 -0
  170. package/inputnumber/InputNumber.d.ts +7 -0
  171. package/inputnumber/InputNumber.vue +4 -3
  172. package/inputnumber/inputnumber.cjs.js +13 -3
  173. package/inputnumber/inputnumber.cjs.min.js +1 -1
  174. package/inputnumber/inputnumber.esm.js +13 -3
  175. package/inputnumber/inputnumber.esm.min.js +1 -1
  176. package/inputnumber/inputnumber.js +13 -3
  177. package/inputnumber/inputnumber.min.js +1 -1
  178. package/knob/Knob.vue +1 -1
  179. package/knob/knob.cjs.js +1 -1
  180. package/knob/knob.cjs.min.js +1 -1
  181. package/knob/knob.esm.js +1 -1
  182. package/knob/knob.esm.min.js +1 -1
  183. package/knob/knob.js +1 -1
  184. package/knob/knob.min.js +1 -1
  185. package/listbox/BaseListbox.vue +1 -1
  186. package/listbox/Listbox.d.ts +1 -1
  187. package/listbox/Listbox.vue +2 -0
  188. package/listbox/listbox.cjs.js +3 -1
  189. package/listbox/listbox.cjs.min.js +1 -1
  190. package/listbox/listbox.esm.js +3 -1
  191. package/listbox/listbox.esm.min.js +1 -1
  192. package/listbox/listbox.js +3 -1
  193. package/listbox/listbox.min.js +1 -1
  194. package/megamenu/MegaMenu.vue +2 -1
  195. package/megamenu/megamenu.cjs.js +2 -1
  196. package/megamenu/megamenu.cjs.min.js +1 -1
  197. package/megamenu/megamenu.esm.js +2 -1
  198. package/megamenu/megamenu.esm.min.js +1 -1
  199. package/megamenu/megamenu.js +2 -1
  200. package/megamenu/megamenu.min.js +1 -1
  201. package/menu/Menu.vue +1 -0
  202. package/menu/menu.cjs.js +1 -0
  203. package/menu/menu.cjs.min.js +1 -1
  204. package/menu/menu.esm.js +1 -0
  205. package/menu/menu.esm.min.js +1 -1
  206. package/menu/menu.js +1 -0
  207. package/menu/menu.min.js +1 -1
  208. package/menubar/Menubar.vue +2 -1
  209. package/menubar/menubar.cjs.js +2 -1
  210. package/menubar/menubar.cjs.min.js +1 -1
  211. package/menubar/menubar.esm.js +2 -1
  212. package/menubar/menubar.esm.min.js +1 -1
  213. package/menubar/menubar.js +2 -1
  214. package/menubar/menubar.min.js +1 -1
  215. package/menuitem/MenuItem.d.ts +0 -6
  216. package/message/style/messagestyle.cjs.js +1 -1
  217. package/message/style/messagestyle.cjs.min.js +1 -1
  218. package/message/style/messagestyle.esm.js +1 -1
  219. package/message/style/messagestyle.esm.min.js +1 -1
  220. package/message/style/messagestyle.js +1 -1
  221. package/message/style/messagestyle.min.js +1 -1
  222. package/multiselect/MultiSelect.vue +2 -0
  223. package/multiselect/multiselect.cjs.js +2 -0
  224. package/multiselect/multiselect.cjs.min.js +1 -1
  225. package/multiselect/multiselect.esm.js +2 -0
  226. package/multiselect/multiselect.esm.min.js +1 -1
  227. package/multiselect/multiselect.js +2 -0
  228. package/multiselect/multiselect.min.js +1 -1
  229. package/orderlist/BaseOrderList.vue +1 -1
  230. package/orderlist/OrderList.d.ts +1 -1
  231. package/orderlist/OrderList.vue +1 -0
  232. package/orderlist/orderlist.cjs.js +2 -1
  233. package/orderlist/orderlist.cjs.min.js +1 -1
  234. package/orderlist/orderlist.esm.js +2 -1
  235. package/orderlist/orderlist.esm.min.js +1 -1
  236. package/orderlist/orderlist.js +2 -1
  237. package/orderlist/orderlist.min.js +1 -1
  238. package/organizationchart/OrganizationChartNode.vue +1 -1
  239. package/organizationchart/organizationchart.cjs.js +1 -1
  240. package/organizationchart/organizationchart.cjs.min.js +1 -1
  241. package/organizationchart/organizationchart.esm.js +1 -1
  242. package/organizationchart/organizationchart.esm.min.js +1 -1
  243. package/organizationchart/organizationchart.js +1 -1
  244. package/organizationchart/organizationchart.min.js +1 -1
  245. package/package.json +1 -1
  246. package/paginator/Paginator.vue +4 -4
  247. package/paginator/paginator.cjs.js +2 -2
  248. package/paginator/paginator.cjs.min.js +1 -1
  249. package/paginator/paginator.esm.js +2 -2
  250. package/paginator/paginator.esm.min.js +1 -1
  251. package/paginator/paginator.js +2 -2
  252. package/paginator/paginator.min.js +1 -1
  253. package/panel/Panel.vue +1 -1
  254. package/panel/panel.cjs.js +1 -1
  255. package/panel/panel.cjs.min.js +1 -1
  256. package/panel/panel.esm.js +1 -1
  257. package/panel/panel.esm.min.js +1 -1
  258. package/panel/panel.js +1 -1
  259. package/panel/panel.min.js +1 -1
  260. package/panelmenu/PanelMenu.vue +1 -0
  261. package/panelmenu/PanelMenuList.vue +1 -0
  262. package/panelmenu/panelmenu.cjs.js +2 -0
  263. package/panelmenu/panelmenu.cjs.min.js +1 -1
  264. package/panelmenu/panelmenu.esm.js +2 -0
  265. package/panelmenu/panelmenu.esm.min.js +1 -1
  266. package/panelmenu/panelmenu.js +2 -0
  267. package/panelmenu/panelmenu.min.js +1 -1
  268. package/picklist/BasePickList.vue +1 -1
  269. package/picklist/PickList.d.ts +1 -1
  270. package/picklist/PickList.vue +2 -1
  271. package/picklist/picklist.cjs.js +3 -2
  272. package/picklist/picklist.cjs.min.js +1 -1
  273. package/picklist/picklist.esm.js +3 -2
  274. package/picklist/picklist.esm.min.js +1 -1
  275. package/picklist/picklist.js +3 -2
  276. package/picklist/picklist.min.js +1 -1
  277. package/picklist/style/pickliststyle.cjs.js +1 -1
  278. package/picklist/style/pickliststyle.cjs.min.js +1 -1
  279. package/picklist/style/pickliststyle.esm.js +1 -1
  280. package/picklist/style/pickliststyle.esm.min.js +1 -1
  281. package/picklist/style/pickliststyle.js +1 -1
  282. package/picklist/style/pickliststyle.min.js +1 -1
  283. package/resources/themes/arya-blue/theme.css +4 -4
  284. package/resources/themes/arya-green/theme.css +4 -4
  285. package/resources/themes/arya-orange/theme.css +4 -4
  286. package/resources/themes/arya-purple/theme.css +4 -4
  287. package/resources/themes/bootstrap4-dark-blue/theme.css +4 -4
  288. package/resources/themes/bootstrap4-dark-purple/theme.css +4 -4
  289. package/resources/themes/bootstrap4-light-blue/theme.css +4 -4
  290. package/resources/themes/bootstrap4-light-purple/theme.css +4 -4
  291. package/resources/themes/fluent-light/theme.css +4 -4
  292. package/resources/themes/lara-dark-amber/theme.css +4 -4
  293. package/resources/themes/lara-dark-blue/theme.css +4 -4
  294. package/resources/themes/lara-dark-cyan/theme.css +4 -4
  295. package/resources/themes/lara-dark-green/theme.css +4 -4
  296. package/resources/themes/lara-dark-indigo/theme.css +4 -4
  297. package/resources/themes/lara-dark-pink/theme.css +4 -4
  298. package/resources/themes/lara-dark-purple/theme.css +4 -4
  299. package/resources/themes/lara-dark-teal/theme.css +4 -4
  300. package/resources/themes/lara-light-amber/theme.css +4 -4
  301. package/resources/themes/lara-light-blue/theme.css +4 -4
  302. package/resources/themes/lara-light-cyan/theme.css +4 -4
  303. package/resources/themes/lara-light-green/theme.css +4 -4
  304. package/resources/themes/lara-light-indigo/theme.css +4 -4
  305. package/resources/themes/lara-light-pink/theme.css +4 -4
  306. package/resources/themes/lara-light-purple/theme.css +4 -4
  307. package/resources/themes/lara-light-teal/theme.css +44 -44
  308. package/resources/themes/luna-amber/theme.css +4 -4
  309. package/resources/themes/luna-blue/theme.css +4 -4
  310. package/resources/themes/luna-green/theme.css +4 -4
  311. package/resources/themes/luna-pink/theme.css +4 -4
  312. package/resources/themes/md-dark-deeppurple/theme.css +4 -4
  313. package/resources/themes/md-dark-indigo/theme.css +4 -4
  314. package/resources/themes/md-light-deeppurple/theme.css +4 -4
  315. package/resources/themes/md-light-indigo/theme.css +4 -4
  316. package/resources/themes/mdc-dark-deeppurple/theme.css +4 -4
  317. package/resources/themes/mdc-dark-indigo/theme.css +4 -4
  318. package/resources/themes/mdc-light-deeppurple/theme.css +4 -4
  319. package/resources/themes/mdc-light-indigo/theme.css +4 -4
  320. package/resources/themes/mira/theme.css +4 -4
  321. package/resources/themes/nano/theme.css +4 -4
  322. package/resources/themes/nova/theme.css +4 -4
  323. package/resources/themes/nova-accent/theme.css +4 -4
  324. package/resources/themes/nova-alt/theme.css +4 -4
  325. package/resources/themes/nova-vue/theme.css +4 -4
  326. package/resources/themes/rhea/theme.css +4 -4
  327. package/resources/themes/saga-blue/theme.css +4 -4
  328. package/resources/themes/saga-green/theme.css +4 -4
  329. package/resources/themes/saga-orange/theme.css +4 -4
  330. package/resources/themes/saga-purple/theme.css +4 -4
  331. package/resources/themes/soho-dark/theme.css +4 -4
  332. package/resources/themes/soho-light/theme.css +4 -4
  333. package/resources/themes/tailwind-light/theme.css +4 -4
  334. package/resources/themes/vela-blue/theme.css +4 -4
  335. package/resources/themes/vela-green/theme.css +4 -4
  336. package/resources/themes/vela-orange/theme.css +4 -4
  337. package/resources/themes/vela-purple/theme.css +4 -4
  338. package/resources/themes/viva-dark/theme.css +4 -4
  339. package/resources/themes/viva-light/theme.css +4 -4
  340. package/ripple/style/ripplestyle.cjs.js +1 -1
  341. package/ripple/style/ripplestyle.cjs.min.js +1 -1
  342. package/ripple/style/ripplestyle.esm.js +1 -1
  343. package/ripple/style/ripplestyle.esm.min.js +1 -1
  344. package/ripple/style/ripplestyle.js +1 -1
  345. package/ripple/style/ripplestyle.min.js +1 -1
  346. package/row/Row.vue +7 -0
  347. package/row/row.cjs.js +9 -0
  348. package/row/row.cjs.min.js +1 -1
  349. package/row/row.esm.js +9 -0
  350. package/row/row.esm.min.js +1 -1
  351. package/row/row.js +9 -0
  352. package/row/row.min.js +1 -1
  353. package/slider/Slider.vue +26 -19
  354. package/slider/slider.cjs.js +19 -11
  355. package/slider/slider.cjs.min.js +1 -1
  356. package/slider/slider.esm.js +19 -11
  357. package/slider/slider.esm.min.js +1 -1
  358. package/slider/slider.js +19 -11
  359. package/slider/slider.min.js +1 -1
  360. package/speeddial/SpeedDial.vue +1 -0
  361. package/speeddial/speeddial.cjs.js +1 -0
  362. package/speeddial/speeddial.cjs.min.js +1 -1
  363. package/speeddial/speeddial.esm.js +1 -0
  364. package/speeddial/speeddial.esm.min.js +1 -1
  365. package/speeddial/speeddial.js +1 -0
  366. package/speeddial/speeddial.min.js +1 -1
  367. package/steps/Steps.vue +1 -0
  368. package/steps/steps.cjs.js +1 -0
  369. package/steps/steps.cjs.min.js +1 -1
  370. package/steps/steps.esm.js +1 -0
  371. package/steps/steps.esm.min.js +1 -1
  372. package/steps/steps.js +1 -0
  373. package/steps/steps.min.js +1 -1
  374. package/tabmenu/TabMenu.vue +1 -0
  375. package/tabmenu/tabmenu.cjs.js +1 -0
  376. package/tabmenu/tabmenu.cjs.min.js +1 -1
  377. package/tabmenu/tabmenu.esm.js +1 -0
  378. package/tabmenu/tabmenu.esm.min.js +1 -1
  379. package/tabmenu/tabmenu.js +1 -0
  380. package/tabmenu/tabmenu.min.js +1 -1
  381. package/tabview/TabView.vue +1 -0
  382. package/tabview/tabview.cjs.js +1 -0
  383. package/tabview/tabview.cjs.min.js +1 -1
  384. package/tabview/tabview.esm.js +1 -0
  385. package/tabview/tabview.esm.min.js +1 -1
  386. package/tabview/tabview.js +1 -0
  387. package/tabview/tabview.min.js +1 -1
  388. package/terminal/Terminal.vue +1 -1
  389. package/terminal/terminal.cjs.js +1 -1
  390. package/terminal/terminal.cjs.min.js +1 -1
  391. package/terminal/terminal.esm.js +1 -1
  392. package/terminal/terminal.esm.min.js +1 -1
  393. package/terminal/terminal.js +1 -1
  394. package/terminal/terminal.min.js +1 -1
  395. package/tieredmenu/TieredMenu.vue +1 -0
  396. package/tieredmenu/tieredmenu.cjs.js +1 -0
  397. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  398. package/tieredmenu/tieredmenu.esm.js +1 -0
  399. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  400. package/tieredmenu/tieredmenu.js +1 -0
  401. package/tieredmenu/tieredmenu.min.js +1 -1
  402. package/tree/BaseTree.vue +1 -1
  403. package/tree/Tree.d.ts +1 -1
  404. package/tree/Tree.vue +1 -1
  405. package/tree/TreeNode.vue +1 -0
  406. package/tree/tree.cjs.js +3 -2
  407. package/tree/tree.cjs.min.js +1 -1
  408. package/tree/tree.esm.js +3 -2
  409. package/tree/tree.esm.min.js +1 -1
  410. package/tree/tree.js +3 -2
  411. package/tree/tree.min.js +1 -1
  412. package/treeselect/BaseTreeSelect.vue +1 -1
  413. package/treeselect/TreeSelect.d.ts +1 -1
  414. package/treeselect/TreeSelect.vue +1 -0
  415. package/treeselect/treeselect.cjs.js +2 -1
  416. package/treeselect/treeselect.cjs.min.js +1 -1
  417. package/treeselect/treeselect.esm.js +2 -1
  418. package/treeselect/treeselect.esm.min.js +1 -1
  419. package/treeselect/treeselect.js +2 -1
  420. package/treeselect/treeselect.min.js +1 -1
  421. package/treetable/BaseTreeTable.vue +5 -1
  422. package/treetable/HeaderCell.vue +1 -1
  423. package/treetable/TreeTable.d.ts +6 -1
  424. package/treetable/TreeTable.vue +32 -24
  425. package/treetable/TreeTableRow.vue +32 -20
  426. package/treetable/style/treetablestyle.cjs.js +1 -1
  427. package/treetable/style/treetablestyle.cjs.min.js +1 -1
  428. package/treetable/style/treetablestyle.esm.js +1 -1
  429. package/treetable/style/treetablestyle.esm.min.js +1 -1
  430. package/treetable/style/treetablestyle.js +1 -1
  431. package/treetable/style/treetablestyle.min.js +1 -1
  432. package/treetable/treetable.cjs.js +70 -43
  433. package/treetable/treetable.cjs.min.js +1 -1
  434. package/treetable/treetable.esm.js +71 -44
  435. package/treetable/treetable.esm.min.js +1 -1
  436. package/treetable/treetable.js +70 -43
  437. package/treetable/treetable.min.js +1 -1
  438. package/tristatecheckbox/TriStateCheckbox.vue +1 -1
  439. package/tristatecheckbox/tristatecheckbox.cjs.js +1 -1
  440. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  441. package/tristatecheckbox/tristatecheckbox.esm.js +1 -1
  442. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  443. package/tristatecheckbox/tristatecheckbox.js +1 -1
  444. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  445. package/utils/Utils.d.ts +9 -0
  446. package/utils/utils.cjs.js +142 -41
  447. package/utils/utils.cjs.min.js +1 -1
  448. package/utils/utils.esm.js +142 -42
  449. package/utils/utils.esm.min.js +1 -1
  450. package/utils/utils.js +142 -41
  451. package/utils/utils.min.js +1 -1
  452. package/vetur-attributes.json +4 -0
  453. package/vetur-tags.json +1 -0
  454. package/virtualscroller/VirtualScroller.vue +19 -15
  455. package/virtualscroller/style/virtualscrollerstyle.cjs.js +1 -1
  456. package/virtualscroller/style/virtualscrollerstyle.cjs.min.js +1 -1
  457. package/virtualscroller/style/virtualscrollerstyle.esm.js +1 -1
  458. package/virtualscroller/style/virtualscrollerstyle.esm.min.js +1 -1
  459. package/virtualscroller/style/virtualscrollerstyle.js +1 -1
  460. package/virtualscroller/style/virtualscrollerstyle.min.js +1 -1
  461. package/virtualscroller/virtualscroller.cjs.js +19 -15
  462. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  463. package/virtualscroller/virtualscroller.esm.js +19 -15
  464. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  465. package/virtualscroller/virtualscroller.js +19 -15
  466. package/virtualscroller/virtualscroller.min.js +1 -1
  467. package/web-types.json +11 -1
@@ -24,7 +24,7 @@ export default {
24
24
  },
25
25
  metaKeySelection: {
26
26
  type: Boolean,
27
- default: true
27
+ default: false
28
28
  },
29
29
  responsive: {
30
30
  type: Boolean,
@@ -332,7 +332,7 @@ export interface PickListProps {
332
332
  * Defines whether metaKey is requred or not for the selection.
333
333
  * When true metaKey needs to be pressed to select or unselect an item and
334
334
  * when set to false selection of each item can be toggled individually. On touch enabled devices, metaKeySelection is turned off automatically.
335
- * @defaultValue true
335
+ * @defaultValue false
336
336
  */
337
337
  metaKeySelection?: boolean | undefined;
338
338
  /**
@@ -579,7 +579,7 @@ export default {
579
579
 
580
580
  this.itemTouched = false;
581
581
  const selectionList = this.d_selection[listIndex];
582
- const selectedIndex = ObjectUtils.findIndexInList(item, this.d_selection);
582
+ const selectedIndex = ObjectUtils.findIndexInList(item, selectionList);
583
583
  const selected = selectedIndex != -1;
584
584
  const metaSelection = this.itemTouched ? false : this.metaKeySelection;
585
585
  const selectedId = DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]')[index].getAttribute('id');
@@ -642,6 +642,7 @@ export default {
642
642
  break;
643
643
 
644
644
  case 'Enter':
645
+ case 'NumpadEnter':
645
646
  this.onEnterKey(event, listType);
646
647
  break;
647
648
 
@@ -56,7 +56,7 @@ var script$1 = {
56
56
  },
57
57
  metaKeySelection: {
58
58
  type: Boolean,
59
- "default": true
59
+ "default": false
60
60
  },
61
61
  responsive: {
62
62
  type: Boolean,
@@ -432,7 +432,7 @@ var script = {
432
432
  var listType = listIndex === 0 ? 'sourceList' : 'targetList';
433
433
  this.itemTouched = false;
434
434
  var selectionList = this.d_selection[listIndex];
435
- var selectedIndex = utils.ObjectUtils.findIndexInList(item, this.d_selection);
435
+ var selectedIndex = utils.ObjectUtils.findIndexInList(item, selectionList);
436
436
  var selected = selectedIndex != -1;
437
437
  var metaSelection = this.itemTouched ? false : this.metaKeySelection;
438
438
  var selectedId = utils.DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]')[index].getAttribute('id');
@@ -488,6 +488,7 @@ var script = {
488
488
  this.onEndKey(event, listType);
489
489
  break;
490
490
  case 'Enter':
491
+ case 'NumpadEnter':
491
492
  this.onEnterKey(event, listType);
492
493
  break;
493
494
  case 'Space':
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/button"),t=require("primevue/icons/angledoubledown"),o=require("primevue/icons/angledoubleleft"),n=require("primevue/icons/angledoubleright"),i=require("primevue/icons/angledoubleup"),r=require("primevue/icons/angledown"),l=require("primevue/icons/angleleft"),s=require("primevue/icons/angleright"),a=require("primevue/icons/angleup"),c=require("primevue/ripple"),u=require("primevue/utils"),d=require("primevue/basecomponent"),m=require("primevue/picklist/style"),p=require("vue");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){var n;return(t="symbol"==P(n=E(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function E(e,t){if("object"!=P(e)||!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 U=["id","onClick","onDblclick","onMousedown","aria-selected","data-p-highlight","data-p-focused"],K=["id","onClick","onDblclick","onMousedown","aria-selected","data-p-highlight","data-p-focused"];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,U)),[[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,K)),[[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)},module.exports=A;
1
+ "use strict";var e=require("primevue/button"),t=require("primevue/icons/angledoubledown"),o=require("primevue/icons/angledoubleleft"),n=require("primevue/icons/angledoubleright"),i=require("primevue/icons/angledoubleup"),r=require("primevue/icons/angledown"),l=require("primevue/icons/angleleft"),s=require("primevue/icons/angleright"),a=require("primevue/icons/angleup"),c=require("primevue/ripple"),u=require("primevue/utils"),d=require("primevue/basecomponent"),m=require("primevue/picklist/style"),p=require("vue");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:!1},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,l),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":case"NumpadEnter":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){var n;return(t="symbol"==P(n=E(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function E(e,t){if("object"!=P(e)||!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 U=["id","onClick","onDblclick","onMousedown","aria-selected","data-p-highlight","data-p-focused"],K=["id","onClick","onDblclick","onMousedown","aria-selected","data-p-highlight","data-p-focused"];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,U)),[[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,K)),[[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)},module.exports=A;
@@ -39,7 +39,7 @@ var script$1 = {
39
39
  },
40
40
  metaKeySelection: {
41
41
  type: Boolean,
42
- "default": true
42
+ "default": false
43
43
  },
44
44
  responsive: {
45
45
  type: Boolean,
@@ -415,7 +415,7 @@ var script = {
415
415
  var listType = listIndex === 0 ? 'sourceList' : 'targetList';
416
416
  this.itemTouched = false;
417
417
  var selectionList = this.d_selection[listIndex];
418
- var selectedIndex = ObjectUtils.findIndexInList(item, this.d_selection);
418
+ var selectedIndex = ObjectUtils.findIndexInList(item, selectionList);
419
419
  var selected = selectedIndex != -1;
420
420
  var metaSelection = this.itemTouched ? false : this.metaKeySelection;
421
421
  var selectedId = DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]')[index].getAttribute('id');
@@ -471,6 +471,7 @@ var script = {
471
471
  this.onEndKey(event, listType);
472
472
  break;
473
473
  case 'Enter':
474
+ case 'NumpadEnter':
474
475
  this.onEnterKey(event, listType);
475
476
  break;
476
477
  case 'Space':
@@ -1 +1 @@
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){var n;return(t="symbol"==M(n=H(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function H(e,t){if("object"!=M(e)||!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 R=["id","onClick","onDblclick","onMousedown","aria-selected","data-p-highlight","data-p-focused"],N=["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,R)),[[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,N)),[[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};
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:!1},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,s),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":case"NumpadEnter":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){var n;return(t="symbol"==M(n=H(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function H(e,t){if("object"!=M(e)||!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"],R=["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,R)),[[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};
@@ -43,7 +43,7 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
43
43
  },
44
44
  metaKeySelection: {
45
45
  type: Boolean,
46
- "default": true
46
+ "default": false
47
47
  },
48
48
  responsive: {
49
49
  type: Boolean,
@@ -419,7 +419,7 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
419
419
  var listType = listIndex === 0 ? 'sourceList' : 'targetList';
420
420
  this.itemTouched = false;
421
421
  var selectionList = this.d_selection[listIndex];
422
- var selectedIndex = utils.ObjectUtils.findIndexInList(item, this.d_selection);
422
+ var selectedIndex = utils.ObjectUtils.findIndexInList(item, selectionList);
423
423
  var selected = selectedIndex != -1;
424
424
  var metaSelection = this.itemTouched ? false : this.metaKeySelection;
425
425
  var selectedId = utils.DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]')[index].getAttribute('id');
@@ -475,6 +475,7 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
475
475
  this.onEndKey(event, listType);
476
476
  break;
477
477
  case 'Enter':
478
+ case 'NumpadEnter':
478
479
  this.onEnterKey(event, listType);
479
480
  break;
480
481
  case 'Space':
@@ -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),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){var n;return(t="symbol"==P(n=E(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function E(e,t){if("object"!=P(e)||!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 U=["id","onClick","onDblclick","onMousedown","aria-selected","data-p-highlight","data-p-focused"],K=["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,U)),[[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,K)),[[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);
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:!1},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,l),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":case"NumpadEnter":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){var n;return(t="symbol"==P(n=E(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function E(e,t){if("object"!=P(e)||!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 U=["id","onClick","onDblclick","onMousedown","aria-selected","data-p-highlight","data-p-focused"],K=["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,U)),[[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,K)),[[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);