primevue 3.43.0 → 3.44.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 (472) hide show
  1. package/accordion/Accordion.d.ts +4 -0
  2. package/accordion/accordion.cjs.js +2 -2
  3. package/accordion/accordion.cjs.min.js +1 -1
  4. package/accordion/accordion.esm.js +2 -2
  5. package/accordion/accordion.esm.min.js +1 -1
  6. package/accordion/accordion.js +2 -2
  7. package/accordion/accordion.min.js +1 -1
  8. package/accordiontab/AccordionTab.d.ts +4 -0
  9. package/animateonscroll/animateonscroll.cjs.js +2 -2
  10. package/animateonscroll/animateonscroll.cjs.min.js +1 -1
  11. package/animateonscroll/animateonscroll.esm.js +2 -2
  12. package/animateonscroll/animateonscroll.esm.min.js +1 -1
  13. package/animateonscroll/animateonscroll.js +2 -2
  14. package/animateonscroll/animateonscroll.min.js +1 -1
  15. package/autocomplete/AutoComplete.d.ts +4 -0
  16. package/autocomplete/AutoComplete.vue +2 -1
  17. package/autocomplete/autocomplete.cjs.js +5 -3
  18. package/autocomplete/autocomplete.cjs.min.js +1 -1
  19. package/autocomplete/autocomplete.esm.js +5 -3
  20. package/autocomplete/autocomplete.esm.min.js +1 -1
  21. package/autocomplete/autocomplete.js +5 -3
  22. package/autocomplete/autocomplete.min.js +1 -1
  23. package/avatar/Avatar.d.ts +4 -0
  24. package/badgedirective/BadgeDirective.d.ts +4 -0
  25. package/badgedirective/badgedirective.cjs.js +2 -2
  26. package/badgedirective/badgedirective.cjs.min.js +1 -1
  27. package/badgedirective/badgedirective.esm.js +2 -2
  28. package/badgedirective/badgedirective.esm.min.js +1 -1
  29. package/badgedirective/badgedirective.js +2 -2
  30. package/badgedirective/badgedirective.min.js +1 -1
  31. package/base/style/basestyle.cjs.js +2 -2
  32. package/base/style/basestyle.cjs.min.js +1 -1
  33. package/base/style/basestyle.esm.js +2 -2
  34. package/base/style/basestyle.esm.min.js +1 -1
  35. package/base/style/basestyle.js +2 -2
  36. package/base/style/basestyle.min.js +1 -1
  37. package/basecomponent/BaseComponent.vue +3 -1
  38. package/basecomponent/basecomponent.cjs.js +7 -5
  39. package/basecomponent/basecomponent.cjs.min.js +1 -1
  40. package/basecomponent/basecomponent.esm.js +7 -5
  41. package/basecomponent/basecomponent.esm.min.js +1 -1
  42. package/basecomponent/basecomponent.js +7 -5
  43. package/basecomponent/basecomponent.min.js +1 -1
  44. package/basecomponent/style/basecomponentstyle.cjs.js +2 -2
  45. package/basecomponent/style/basecomponentstyle.cjs.min.js +1 -1
  46. package/basecomponent/style/basecomponentstyle.esm.js +2 -2
  47. package/basecomponent/style/basecomponentstyle.esm.min.js +1 -1
  48. package/basecomponent/style/basecomponentstyle.js +2 -2
  49. package/basecomponent/style/basecomponentstyle.min.js +1 -1
  50. package/basedirective/basedirective.cjs.js +2 -3
  51. package/basedirective/basedirective.cjs.min.js +1 -1
  52. package/basedirective/basedirective.esm.js +2 -3
  53. package/basedirective/basedirective.esm.min.js +1 -1
  54. package/basedirective/basedirective.js +2 -3
  55. package/basedirective/basedirective.min.js +1 -1
  56. package/blockui/BlockUI.d.ts +4 -0
  57. package/breadcrumb/Breadcrumb.d.ts +4 -0
  58. package/button/style/buttonstyle.cjs.js +2 -2
  59. package/button/style/buttonstyle.cjs.min.js +1 -1
  60. package/button/style/buttonstyle.esm.js +2 -2
  61. package/button/style/buttonstyle.esm.min.js +1 -1
  62. package/button/style/buttonstyle.js +2 -2
  63. package/button/style/buttonstyle.min.js +1 -1
  64. package/calendar/Calendar.d.ts +8 -0
  65. package/calendar/Calendar.vue +26 -13
  66. package/calendar/calendar.cjs.js +26 -15
  67. package/calendar/calendar.cjs.min.js +1 -1
  68. package/calendar/calendar.esm.js +26 -15
  69. package/calendar/calendar.esm.min.js +1 -1
  70. package/calendar/calendar.js +26 -15
  71. package/calendar/calendar.min.js +1 -1
  72. package/carousel/Carousel.d.ts +4 -0
  73. package/carousel/carousel.cjs.js +2 -2
  74. package/carousel/carousel.cjs.min.js +1 -1
  75. package/carousel/carousel.esm.js +2 -2
  76. package/carousel/carousel.esm.min.js +1 -1
  77. package/carousel/carousel.js +2 -2
  78. package/carousel/carousel.min.js +1 -1
  79. package/cascadeselect/CascadeSelect.d.ts +4 -0
  80. package/cascadeselect/CascadeSelect.vue +1 -1
  81. package/cascadeselect/CascadeSelectSub.vue +4 -1
  82. package/cascadeselect/cascadeselect.cjs.js +7 -4
  83. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  84. package/cascadeselect/cascadeselect.esm.js +7 -4
  85. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  86. package/cascadeselect/cascadeselect.js +7 -4
  87. package/cascadeselect/cascadeselect.min.js +1 -1
  88. package/chart/Chart.d.ts +4 -0
  89. package/chart/chart.cjs.js +2 -2
  90. package/chart/chart.cjs.min.js +1 -1
  91. package/chart/chart.esm.js +2 -2
  92. package/chart/chart.esm.min.js +1 -1
  93. package/chart/chart.js +2 -2
  94. package/chart/chart.min.js +1 -1
  95. package/checkbox/Checkbox.d.ts +4 -0
  96. package/checkbox/checkbox.cjs.js +2 -2
  97. package/checkbox/checkbox.cjs.min.js +1 -1
  98. package/checkbox/checkbox.esm.js +2 -2
  99. package/checkbox/checkbox.esm.min.js +1 -1
  100. package/checkbox/checkbox.js +2 -2
  101. package/checkbox/checkbox.min.js +1 -1
  102. package/chip/Chip.d.ts +4 -0
  103. package/chips/Chips.d.ts +4 -0
  104. package/chips/chips.cjs.js +2 -2
  105. package/chips/chips.cjs.min.js +1 -1
  106. package/chips/chips.esm.js +2 -2
  107. package/chips/chips.esm.min.js +1 -1
  108. package/chips/chips.js +2 -2
  109. package/chips/chips.min.js +1 -1
  110. package/colorpicker/ColorPicker.d.ts +4 -0
  111. package/column/Column.d.ts +4 -0
  112. package/columngroup/ColumnGroup.d.ts +4 -0
  113. package/config/config.cjs.js +2 -2
  114. package/config/config.cjs.min.js +1 -1
  115. package/config/config.esm.js +2 -2
  116. package/config/config.esm.min.js +1 -1
  117. package/config/config.js +2 -2
  118. package/config/config.min.js +1 -1
  119. package/confirmdialog/ConfirmDialog.d.ts +4 -0
  120. package/confirmpopup/ConfirmPopup.d.ts +4 -0
  121. package/confirmpopup/confirmpopup.cjs.js +2 -2
  122. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  123. package/confirmpopup/confirmpopup.esm.js +2 -2
  124. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  125. package/confirmpopup/confirmpopup.js +2 -2
  126. package/confirmpopup/confirmpopup.min.js +1 -1
  127. package/contextmenu/ContextMenu.d.ts +4 -0
  128. package/contextmenu/contextmenu.cjs.js +2 -2
  129. package/contextmenu/contextmenu.cjs.min.js +1 -1
  130. package/contextmenu/contextmenu.esm.js +2 -2
  131. package/contextmenu/contextmenu.esm.min.js +1 -1
  132. package/contextmenu/contextmenu.js +2 -2
  133. package/contextmenu/contextmenu.min.js +1 -1
  134. package/core/core.js +84 -127
  135. package/core/core.min.js +23 -23
  136. package/datatable/DataTable.d.ts +4 -0
  137. package/datatable/RowCheckbox.vue +1 -0
  138. package/datatable/datatable.cjs.js +21 -20
  139. package/datatable/datatable.cjs.min.js +1 -1
  140. package/datatable/datatable.esm.js +21 -20
  141. package/datatable/datatable.esm.min.js +1 -1
  142. package/datatable/datatable.js +21 -20
  143. package/datatable/datatable.min.js +1 -1
  144. package/dataview/DataView.d.ts +4 -0
  145. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +4 -0
  146. package/deferredcontent/DeferredContent.d.ts +4 -0
  147. package/dialog/dialog.cjs.js +2 -2
  148. package/dialog/dialog.cjs.min.js +1 -1
  149. package/dialog/dialog.esm.js +2 -2
  150. package/dialog/dialog.esm.min.js +1 -1
  151. package/dialog/dialog.js +2 -2
  152. package/dialog/dialog.min.js +1 -1
  153. package/divider/Divider.d.ts +4 -0
  154. package/dock/Dock.d.ts +4 -0
  155. package/dropdown/Dropdown.vue +3 -1
  156. package/dropdown/dropdown.cjs.js +6 -5
  157. package/dropdown/dropdown.cjs.min.js +1 -1
  158. package/dropdown/dropdown.esm.js +6 -5
  159. package/dropdown/dropdown.esm.min.js +1 -1
  160. package/dropdown/dropdown.js +6 -5
  161. package/dropdown/dropdown.min.js +1 -1
  162. package/dropdown/style/dropdownstyle.cjs.js +1 -1
  163. package/dropdown/style/dropdownstyle.cjs.min.js +1 -1
  164. package/dropdown/style/dropdownstyle.esm.js +1 -1
  165. package/dropdown/style/dropdownstyle.esm.min.js +1 -1
  166. package/dropdown/style/dropdownstyle.js +1 -1
  167. package/dropdown/style/dropdownstyle.min.js +1 -1
  168. package/dynamicdialog/DynamicDialog.vue +1 -1
  169. package/dynamicdialog/dynamicdialog.cjs.js +1 -3
  170. package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
  171. package/dynamicdialog/dynamicdialog.esm.js +1 -3
  172. package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
  173. package/dynamicdialog/dynamicdialog.js +1 -3
  174. package/dynamicdialog/dynamicdialog.min.js +1 -1
  175. package/editor/Editor.d.ts +4 -0
  176. package/editor/editor.cjs.js +2 -2
  177. package/editor/editor.cjs.min.js +1 -1
  178. package/editor/editor.esm.js +2 -2
  179. package/editor/editor.esm.min.js +1 -1
  180. package/editor/editor.js +2 -2
  181. package/editor/editor.min.js +1 -1
  182. package/fieldset/Fieldset.d.ts +4 -0
  183. package/fieldset/fieldset.cjs.js +2 -2
  184. package/fieldset/fieldset.cjs.min.js +1 -1
  185. package/fieldset/fieldset.esm.js +2 -2
  186. package/fieldset/fieldset.esm.min.js +1 -1
  187. package/fieldset/fieldset.js +2 -2
  188. package/fieldset/fieldset.min.js +1 -1
  189. package/fileupload/FileUpload.d.ts +4 -0
  190. package/galleria/Galleria.d.ts +4 -0
  191. package/galleria/galleria.cjs.js +6 -6
  192. package/galleria/galleria.cjs.min.js +1 -1
  193. package/galleria/galleria.esm.js +6 -6
  194. package/galleria/galleria.esm.min.js +1 -1
  195. package/galleria/galleria.js +6 -6
  196. package/galleria/galleria.min.js +1 -1
  197. package/image/Image.d.ts +4 -0
  198. package/image/image.cjs.js +2 -2
  199. package/image/image.cjs.min.js +1 -1
  200. package/image/image.esm.js +2 -2
  201. package/image/image.esm.min.js +1 -1
  202. package/image/image.js +2 -2
  203. package/image/image.min.js +1 -1
  204. package/inlinemessage/InlineMessage.d.ts +4 -0
  205. package/inplace/Inplace.d.ts +4 -0
  206. package/inplace/inplace.cjs.js +2 -2
  207. package/inplace/inplace.cjs.min.js +1 -1
  208. package/inplace/inplace.esm.js +2 -2
  209. package/inplace/inplace.esm.min.js +1 -1
  210. package/inplace/inplace.js +2 -2
  211. package/inplace/inplace.min.js +1 -1
  212. package/inputgroup/InputGroup.d.ts +4 -0
  213. package/inputgroupaddon/InputGroupAddon.d.ts +4 -0
  214. package/inputmask/InputMask.d.ts +4 -0
  215. package/inputnumber/inputnumber.cjs.js +2 -2
  216. package/inputnumber/inputnumber.cjs.min.js +1 -1
  217. package/inputnumber/inputnumber.esm.js +2 -2
  218. package/inputnumber/inputnumber.esm.min.js +1 -1
  219. package/inputnumber/inputnumber.js +2 -2
  220. package/inputnumber/inputnumber.min.js +1 -1
  221. package/inputswitch/InputSwitch.d.ts +4 -0
  222. package/inputswitch/inputswitch.cjs.js +2 -2
  223. package/inputswitch/inputswitch.cjs.min.js +1 -1
  224. package/inputswitch/inputswitch.esm.js +2 -2
  225. package/inputswitch/inputswitch.esm.min.js +1 -1
  226. package/inputswitch/inputswitch.js +2 -2
  227. package/inputswitch/inputswitch.min.js +1 -1
  228. package/knob/Knob.d.ts +4 -0
  229. package/listbox/Listbox.d.ts +4 -0
  230. package/listbox/listbox.cjs.js +2 -2
  231. package/listbox/listbox.cjs.min.js +1 -1
  232. package/listbox/listbox.esm.js +2 -2
  233. package/listbox/listbox.esm.min.js +1 -1
  234. package/listbox/listbox.js +2 -2
  235. package/listbox/listbox.min.js +1 -1
  236. package/megamenu/MegaMenu.d.ts +4 -0
  237. package/menu/Menu.d.ts +4 -0
  238. package/menu/menu.cjs.js +2 -2
  239. package/menu/menu.cjs.min.js +1 -1
  240. package/menu/menu.esm.js +2 -2
  241. package/menu/menu.esm.min.js +1 -1
  242. package/menu/menu.js +2 -2
  243. package/menu/menu.min.js +1 -1
  244. package/menubar/Menubar.d.ts +4 -0
  245. package/menubar/menubar.cjs.js +2 -2
  246. package/menubar/menubar.cjs.min.js +1 -1
  247. package/menubar/menubar.esm.js +2 -2
  248. package/menubar/menubar.esm.min.js +1 -1
  249. package/menubar/menubar.js +2 -2
  250. package/menubar/menubar.min.js +1 -1
  251. package/message/message.cjs.js +2 -2
  252. package/message/message.cjs.min.js +1 -1
  253. package/message/message.esm.js +2 -2
  254. package/message/message.esm.min.js +1 -1
  255. package/message/message.js +2 -2
  256. package/message/message.min.js +1 -1
  257. package/multiselect/MultiSelect.d.ts +4 -0
  258. package/multiselect/multiselect.cjs.js +4 -4
  259. package/multiselect/multiselect.cjs.min.js +1 -1
  260. package/multiselect/multiselect.esm.js +4 -4
  261. package/multiselect/multiselect.esm.min.js +1 -1
  262. package/multiselect/multiselect.js +4 -4
  263. package/multiselect/multiselect.min.js +1 -1
  264. package/orderlist/OrderList.d.ts +4 -0
  265. package/orderlist/orderlist.cjs.js +2 -2
  266. package/orderlist/orderlist.cjs.min.js +1 -1
  267. package/orderlist/orderlist.esm.js +2 -2
  268. package/orderlist/orderlist.esm.min.js +1 -1
  269. package/orderlist/orderlist.js +2 -2
  270. package/orderlist/orderlist.min.js +1 -1
  271. package/organizationchart/OrganizationChart.d.ts +4 -0
  272. package/organizationchart/organizationchart.cjs.js +2 -2
  273. package/organizationchart/organizationchart.cjs.min.js +1 -1
  274. package/organizationchart/organizationchart.esm.js +2 -2
  275. package/organizationchart/organizationchart.esm.min.js +1 -1
  276. package/organizationchart/organizationchart.js +2 -2
  277. package/organizationchart/organizationchart.min.js +1 -1
  278. package/overlaypanel/OverlayPanel.d.ts +4 -0
  279. package/overlaypanel/overlaypanel.cjs.js +2 -2
  280. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  281. package/overlaypanel/overlaypanel.esm.js +2 -2
  282. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  283. package/overlaypanel/overlaypanel.js +2 -2
  284. package/overlaypanel/overlaypanel.min.js +1 -1
  285. package/package.json +1 -1
  286. package/paginator/style/paginatorstyle.cjs.js +2 -2
  287. package/paginator/style/paginatorstyle.cjs.min.js +1 -1
  288. package/paginator/style/paginatorstyle.esm.js +2 -2
  289. package/paginator/style/paginatorstyle.esm.min.js +1 -1
  290. package/paginator/style/paginatorstyle.js +2 -2
  291. package/paginator/style/paginatorstyle.min.js +1 -1
  292. package/panel/Panel.d.ts +4 -0
  293. package/panel/panel.cjs.js +2 -2
  294. package/panel/panel.cjs.min.js +1 -1
  295. package/panel/panel.esm.js +2 -2
  296. package/panel/panel.esm.min.js +1 -1
  297. package/panel/panel.js +2 -2
  298. package/panel/panel.min.js +1 -1
  299. package/panelmenu/PanelMenu.d.ts +4 -0
  300. package/panelmenu/panelmenu.cjs.js +2 -2
  301. package/panelmenu/panelmenu.cjs.min.js +1 -1
  302. package/panelmenu/panelmenu.esm.js +2 -2
  303. package/panelmenu/panelmenu.esm.min.js +1 -1
  304. package/panelmenu/panelmenu.js +2 -2
  305. package/panelmenu/panelmenu.min.js +1 -1
  306. package/passthrough/index.cjs.js +2 -2
  307. package/passthrough/index.cjs.min.js +1 -1
  308. package/passthrough/index.esm.js +2 -2
  309. package/passthrough/index.esm.min.js +1 -1
  310. package/passthrough/index.js +2 -2
  311. package/passthrough/index.min.js +1 -1
  312. package/passthrough/tailwind/index.cjs.js +2 -71
  313. package/passthrough/tailwind/index.cjs.min.js +1 -1
  314. package/passthrough/tailwind/index.esm.js +2 -71
  315. package/passthrough/tailwind/index.esm.min.js +1 -1
  316. package/passthrough/tailwind/index.js +2 -71
  317. package/passthrough/tailwind/index.min.js +1 -1
  318. package/password/Password.d.ts +4 -0
  319. package/password/password.cjs.js +2 -4
  320. package/password/password.cjs.min.js +1 -1
  321. package/password/password.esm.js +2 -4
  322. package/password/password.esm.min.js +1 -1
  323. package/password/password.js +2 -4
  324. package/password/password.min.js +1 -1
  325. package/picklist/PickList.d.ts +4 -0
  326. package/picklist/picklist.cjs.js +2 -2
  327. package/picklist/picklist.cjs.min.js +1 -1
  328. package/picklist/picklist.esm.js +2 -2
  329. package/picklist/picklist.esm.min.js +1 -1
  330. package/picklist/picklist.js +2 -2
  331. package/picklist/picklist.min.js +1 -1
  332. package/progressspinner/ProgressSpinner.d.ts +4 -0
  333. package/radiobutton/RadioButton.d.ts +4 -0
  334. package/radiobutton/radiobutton.cjs.js +2 -2
  335. package/radiobutton/radiobutton.cjs.min.js +1 -1
  336. package/radiobutton/radiobutton.esm.js +2 -2
  337. package/radiobutton/radiobutton.esm.min.js +1 -1
  338. package/radiobutton/radiobutton.js +2 -2
  339. package/radiobutton/radiobutton.min.js +1 -1
  340. package/rating/Rating.d.ts +4 -0
  341. package/row/Row.d.ts +4 -0
  342. package/scrollpanel/ScrollPanel.d.ts +4 -0
  343. package/scrollpanel/ScrollPanel.vue +8 -1
  344. package/scrollpanel/scrollpanel.cjs.js +14 -5
  345. package/scrollpanel/scrollpanel.cjs.min.js +1 -1
  346. package/scrollpanel/scrollpanel.esm.js +14 -5
  347. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  348. package/scrollpanel/scrollpanel.js +14 -5
  349. package/scrollpanel/scrollpanel.min.js +1 -1
  350. package/scrolltop/ScrollTop.d.ts +4 -0
  351. package/selectbutton/SelectButton.d.ts +4 -0
  352. package/sidebar/Sidebar.d.ts +4 -0
  353. package/sidebar/sidebar.cjs.js +2 -2
  354. package/sidebar/sidebar.cjs.min.js +1 -1
  355. package/sidebar/sidebar.esm.js +2 -2
  356. package/sidebar/sidebar.esm.min.js +1 -1
  357. package/sidebar/sidebar.js +2 -2
  358. package/sidebar/sidebar.min.js +1 -1
  359. package/skeleton/Skeleton.d.ts +4 -0
  360. package/slider/Slider.d.ts +4 -0
  361. package/speeddial/SpeedDial.d.ts +4 -0
  362. package/speeddial/speeddial.cjs.js +2 -2
  363. package/speeddial/speeddial.cjs.min.js +1 -1
  364. package/speeddial/speeddial.esm.js +2 -2
  365. package/speeddial/speeddial.esm.min.js +1 -1
  366. package/speeddial/speeddial.js +2 -2
  367. package/speeddial/speeddial.min.js +1 -1
  368. package/speeddial/style/speeddialstyle.cjs.js +2 -2
  369. package/speeddial/style/speeddialstyle.cjs.min.js +1 -1
  370. package/speeddial/style/speeddialstyle.esm.js +2 -2
  371. package/speeddial/style/speeddialstyle.esm.min.js +1 -1
  372. package/speeddial/style/speeddialstyle.js +2 -2
  373. package/speeddial/style/speeddialstyle.min.js +1 -1
  374. package/splitbutton/SplitButton.d.ts +4 -0
  375. package/splitbutton/style/splitbuttonstyle.cjs.js +2 -2
  376. package/splitbutton/style/splitbuttonstyle.cjs.min.js +1 -1
  377. package/splitbutton/style/splitbuttonstyle.esm.js +2 -2
  378. package/splitbutton/style/splitbuttonstyle.esm.min.js +1 -1
  379. package/splitbutton/style/splitbuttonstyle.js +2 -2
  380. package/splitbutton/style/splitbuttonstyle.min.js +1 -1
  381. package/splitter/Splitter.d.ts +4 -0
  382. package/splitterpanel/SplitterPanel.d.ts +4 -0
  383. package/steps/Steps.d.ts +4 -0
  384. package/tabmenu/TabMenu.d.ts +4 -0
  385. package/tabpanel/TabPanel.d.ts +4 -0
  386. package/tabview/tabview.cjs.js +2 -2
  387. package/tabview/tabview.cjs.min.js +1 -1
  388. package/tabview/tabview.esm.js +2 -2
  389. package/tabview/tabview.esm.min.js +1 -1
  390. package/tabview/tabview.js +2 -2
  391. package/tabview/tabview.min.js +1 -1
  392. package/tag/Tag.d.ts +4 -0
  393. package/terminal/Terminal.d.ts +4 -0
  394. package/textarea/Textarea.d.ts +4 -0
  395. package/tieredmenu/tieredmenu.cjs.js +2 -2
  396. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  397. package/tieredmenu/tieredmenu.esm.js +2 -2
  398. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  399. package/tieredmenu/tieredmenu.js +2 -2
  400. package/tieredmenu/tieredmenu.min.js +1 -1
  401. package/timeline/Timeline.d.ts +4 -0
  402. package/toast/Toast.d.ts +4 -0
  403. package/toast/style/toaststyle.cjs.js +2 -2
  404. package/toast/style/toaststyle.cjs.min.js +1 -1
  405. package/toast/style/toaststyle.esm.js +2 -2
  406. package/toast/style/toaststyle.esm.min.js +1 -1
  407. package/toast/style/toaststyle.js +2 -2
  408. package/toast/style/toaststyle.min.js +1 -1
  409. package/toast/toast.cjs.js +4 -4
  410. package/toast/toast.cjs.min.js +1 -1
  411. package/toast/toast.esm.js +4 -4
  412. package/toast/toast.esm.min.js +1 -1
  413. package/toast/toast.js +4 -4
  414. package/toast/toast.min.js +1 -1
  415. package/togglebutton/ToggleButton.d.ts +4 -0
  416. package/togglebutton/togglebutton.cjs.js +2 -2
  417. package/togglebutton/togglebutton.cjs.min.js +1 -1
  418. package/togglebutton/togglebutton.esm.js +2 -2
  419. package/togglebutton/togglebutton.esm.min.js +1 -1
  420. package/togglebutton/togglebutton.js +2 -2
  421. package/togglebutton/togglebutton.min.js +1 -1
  422. package/toolbar/Toolbar.d.ts +4 -0
  423. package/tooltip/Tooltip.d.ts +4 -0
  424. package/tree/tree.cjs.js +4 -4
  425. package/tree/tree.cjs.min.js +1 -1
  426. package/tree/tree.esm.js +4 -4
  427. package/tree/tree.esm.min.js +1 -1
  428. package/tree/tree.js +4 -4
  429. package/tree/tree.min.js +1 -1
  430. package/treeselect/TreeSelect.d.ts +4 -0
  431. package/treeselect/treeselect.cjs.js +4 -4
  432. package/treeselect/treeselect.cjs.min.js +1 -1
  433. package/treeselect/treeselect.esm.js +4 -4
  434. package/treeselect/treeselect.esm.min.js +1 -1
  435. package/treeselect/treeselect.js +4 -4
  436. package/treeselect/treeselect.min.js +1 -1
  437. package/treetable/TreeTable.d.ts +4 -0
  438. package/treetable/treetable.cjs.js +12 -12
  439. package/treetable/treetable.cjs.min.js +1 -1
  440. package/treetable/treetable.esm.js +12 -12
  441. package/treetable/treetable.esm.min.js +1 -1
  442. package/treetable/treetable.js +12 -12
  443. package/treetable/treetable.min.js +1 -1
  444. package/tristatecheckbox/TriStateCheckbox.d.ts +4 -0
  445. package/tristatecheckbox/tristatecheckbox.cjs.js +2 -2
  446. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  447. package/tristatecheckbox/tristatecheckbox.esm.js +2 -2
  448. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  449. package/tristatecheckbox/tristatecheckbox.js +2 -2
  450. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  451. package/usestyle/usestyle.cjs.js +2 -2
  452. package/usestyle/usestyle.cjs.min.js +1 -1
  453. package/usestyle/usestyle.esm.js +2 -2
  454. package/usestyle/usestyle.esm.min.js +1 -1
  455. package/usestyle/usestyle.js +2 -2
  456. package/usestyle/usestyle.min.js +1 -1
  457. package/utils/Utils.d.ts +1 -0
  458. package/utils/utils.cjs.js +27 -3
  459. package/utils/utils.cjs.min.js +1 -1
  460. package/utils/utils.esm.js +27 -3
  461. package/utils/utils.esm.min.js +1 -1
  462. package/utils/utils.js +27 -3
  463. package/utils/utils.min.js +1 -1
  464. package/virtualscroller/VirtualScroller.d.ts +4 -0
  465. package/virtualscroller/VirtualScroller.vue +1 -1
  466. package/virtualscroller/virtualscroller.cjs.js +5 -5
  467. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  468. package/virtualscroller/virtualscroller.esm.js +5 -5
  469. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  470. package/virtualscroller/virtualscroller.js +5 -5
  471. package/virtualscroller/virtualscroller.min.js +1 -1
  472. package/web-types.json +1 -1
@@ -1 +1 @@
1
- import e from"primevue/button";import t from"primevue/icons/angledoubledown";import o from"primevue/icons/angledoubleleft";import n from"primevue/icons/angledoubleright";import i from"primevue/icons/angledoubleup";import r from"primevue/icons/angledown";import s from"primevue/icons/angleleft";import l from"primevue/icons/angleright";import a from"primevue/icons/angleup";import c from"primevue/ripple";import{UniqueComponentId as u,ObjectUtils as d,DomHandler as m}from"primevue/utils";import p from"primevue/basecomponent";import h from"primevue/picklist/style";import{resolveComponent as f,resolveDirective as v,openBlock as g,createElementBlock as b,mergeProps as y,renderSlot as $,createVNode as I,withCtx as L,createCommentVNode as w,createElementVNode as T,TransitionGroup as x,Fragment as D,renderList as A,withDirectives as S,createBlock as _,resolveDynamicComponent as k}from"vue";function C(e){return E(e)||V(e)||O(e)||B()}function B(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function O(e,t){if(e){if("string"==typeof e)return P(e,t);var o=Object.prototype.toString.call(e).slice(8,-1);return"Object"===o&&e.constructor&&(o=e.constructor.name),"Map"===o||"Set"===o?Array.from(e):"Arguments"===o||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(o)?P(e,t):void 0}}function V(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function E(e){if(Array.isArray(e))return P(e)}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var o=0,n=new Array(t);o<t;o++)n[o]=e[o];return n}var K={name:"PickList",extends:{name:"BasePickList",extends:p,props:{modelValue:{type:Array,default:function(){return[[],[]]}},selection:{type:Array,default:function(){return[[],[]]}},dataKey:{type:String,default:null},listStyle:{type:null,default:null},metaKeySelection:{type:Boolean,default:!0},responsive:{type:Boolean,default:!0},breakpoint:{type:String,default:"960px"},stripedRows:{type:Boolean,default:!1},showSourceControls:{type:Boolean,default:!0},showTargetControls:{type:Boolean,default:!0},targetListProps:{type:null,default:null},sourceListProps:{type:null,default:null},moveUpButtonProps:{type:null,default:null},moveTopButtonProps:{type:null,default:null},moveDownButtonProps:{type:null,default:null},moveBottomButtonProps:{type:null,default:null},moveToTargetProps:{type:null,default:null},moveAllToTargetProps:{type:null,default:null},moveToSourceProps:{type:null,default:null},moveAllToSourceProps:{type:null,default:null},tabindex:{type:Number,default:0}},style:h,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","reorder","update:selection","selection-change","move-to-target","move-to-source","move-all-to-target","move-all-to-source","focus","blur"],itemTouched:!1,reorderDirection:null,styleElement:null,media:null,mediaChangeListener:null,data:function(){return{id:this.$attrs.id,d_selection:this.selection,focused:{sourceList:!1,targetList:!1},focusedOptionIndex:-1,viewChanged:!1}},watch:{"$attrs.id":function(e){this.id=e||u()},selection:function(e){this.d_selection=e},breakpoint:function(e){this.destroyMedia(),this.initMedia()}},updated:function(){this.reorderDirection&&(this.updateListScroll(this.$refs.sourceList.$el),this.updateListScroll(this.$refs.targetList.$el),this.reorderDirection=null)},beforeUnmount:function(){this.destroyStyle(),this.destroyMedia()},mounted:function(){this.id=this.id||u(),this.responsive&&(this.createStyle(),this.initMedia())},methods:{getItemKey:function(e,t){return this.dataKey?d.resolveFieldData(e,this.dataKey):t},getPTOptions:function(e,t,o,n){return this.ptm(t,{context:{active:this.isSelected(e,n),focused:o===this.focusedOptionId}})},isSelected:function(e,t){return-1!=d.findIndexInList(e,this.d_selection[t])},onListFocus:function(e,t){var o=m.findSingle(this.$refs[t].$el,'[data-p-highlight="true"]')||m.findSingle(this.$refs[t].$el,'[data-pc-section="item"]');if(o){var n=d.findIndexInList(o,this.$refs[t].$el.children);this.focused[t]=!0,this.changeFocusedOptionIndex(-1!==this.focusedOptionIndex?this.focusedOptionIndex:o?n:-1,t),this.$emit("focus",e)}},onListBlur:function(e,t){this.focused[t]=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onOptionMouseDown:function(e,t){this.focused[t]=!0,this.focusedOptionIndex=e},moveUp:function(e,t){if(this.d_selection&&this.d_selection[t]){for(var o=C(this.modelValue[t]),n=this.d_selection[t],i=0;i<n.length;i++){var r=d.findIndexInList(n[i],o);if(0===r)break;var s=o[r-1];o[r-1]=o[r],o[r]=s}var l=C(this.modelValue);l[t]=o,this.reorderDirection="up",this.$emit("update:modelValue",l),this.$emit("reorder",{originalEvent:e,value:l,direction:this.reorderDirection,listIndex:t})}},moveTop:function(e,t){if(this.d_selection){for(var o=C(this.modelValue[t]),n=this.d_selection[t],i=0;i<n.length;i++){var r=d.findIndexInList(n[i],o);if(0===r)break;var s=o.splice(r,1)[0];o.unshift(s)}var l=C(this.modelValue);l[t]=o,this.reorderDirection="top",this.$emit("update:modelValue",l),this.$emit("reorder",{originalEvent:e,value:l,direction:this.reorderDirection,listIndex:t})}},moveDown:function(e,t){if(this.d_selection){for(var o=C(this.modelValue[t]),n=this.d_selection[t],i=n.length-1;i>=0;i--){var r=d.findIndexInList(n[i],o);if(r===o.length-1)break;var s=o[r+1];o[r+1]=o[r],o[r]=s}var l=C(this.modelValue);l[t]=o,this.reorderDirection="down",this.$emit("update:modelValue",l),this.$emit("reorder",{originalEvent:e,value:l,direction:this.reorderDirection,listIndex:t})}},moveBottom:function(e,t){if(this.d_selection){for(var o=C(this.modelValue[t]),n=this.d_selection[t],i=n.length-1;i>=0;i--){var r=d.findIndexInList(n[i],o);if(r===o.length-1)break;var s=o.splice(r,1)[0];o.push(s)}var l=C(this.modelValue);l[t]=o,this.reorderDirection="bottom",this.$emit("update:modelValue",l),this.$emit("reorder",{originalEvent:e,value:l,direction:this.reorderDirection,listIndex:t})}},moveToTarget:function(e){var t=this.d_selection&&this.d_selection[0]?this.d_selection[0]:null,o=C(this.modelValue[0]),n=C(this.modelValue[1]);if(t){for(var i=0;i<t.length;i++){var r=t[i];-1==d.findIndexInList(r,n)&&n.push(o.splice(d.findIndexInList(r,o),1)[0])}var s=C(this.modelValue);s[0]=o,s[1]=n,this.$emit("update:modelValue",s),this.$emit("move-to-target",{originalEvent:e,items:C(new Set(t))}),this.d_selection[0]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},moveAllToTarget:function(e){if(this.modelValue[0]){var t=C(this.modelValue[0]),o=C(this.modelValue[1]);this.$emit("move-all-to-target",{originalEvent:e,items:t}),o=[].concat(C(o),C(t)),t=[];var n=C(this.modelValue);n[0]=t,n[1]=o,this.$emit("update:modelValue",n),this.d_selection[0]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},moveToSource:function(e){var t=this.d_selection&&this.d_selection[1]?this.d_selection[1]:null,o=C(this.modelValue[0]),n=C(this.modelValue[1]);if(t){for(var i=0;i<t.length;i++){var r=t[i];-1==d.findIndexInList(r,o)&&o.push(n.splice(d.findIndexInList(r,n),1)[0])}var s=C(this.modelValue);s[0]=o,s[1]=n,this.$emit("update:modelValue",s),this.$emit("move-to-source",{originalEvent:e,items:C(new Set(t))}),this.d_selection[1]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},moveAllToSource:function(e){if(this.modelValue[1]){var t=C(this.modelValue[0]),o=C(this.modelValue[1]);this.$emit("move-all-to-source",{originalEvent:e,items:o}),t=[].concat(C(t),C(o)),o=[];var n=C(this.modelValue);n[0]=t,n[1]=o,this.$emit("update:modelValue",n),this.d_selection[1]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},onItemClick:function(e,t,o,n){var i=0===n?"sourceList":"targetList";this.itemTouched=!1;var r,s=this.d_selection[n],l=d.findIndexInList(t,this.d_selection),a=-1!=l,c=!this.itemTouched&&this.metaKeySelection,u=m.find(this.$refs[i].$el,'[data-pc-section="item"]')[o].getAttribute("id");if(this.focusedOptionIndex=u,c){var p=e.metaKey||e.ctrlKey;a&&p?r=s.filter((function(e,t){return t!==l})):(r=p&&s?C(s):[]).push(t)}else a?r=s.filter((function(e,t){return t!==l})):(r=s?C(s):[]).push(t);var h=C(this.d_selection);h[n]=r,this.d_selection=h,this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})},onItemDblClick:function(e,t,o){0===o?this.moveToTarget(e):1===o&&this.moveToSource(e)},onItemTouchEnd:function(){this.itemTouched=!0},onItemKeyDown:function(e,t){switch(e.code){case"ArrowDown":this.onArrowDownKey(e,t);break;case"ArrowUp":this.onArrowUpKey(e,t);break;case"Home":this.onHomeKey(e,t);break;case"End":this.onEndKey(e,t);break;case"Enter":this.onEnterKey(e,t);break;case"Space":this.onSpaceKey(e,t);break;case"KeyA":e.ctrlKey&&(this.d_selection=C(this.modelValue),this.$emit("update:selection",this.d_selection),e.preventDefault())}},onArrowDownKey:function(e,t){var o=this.findNextOptionIndex(this.focusedOptionIndex,t);this.changeFocusedOptionIndex(o,t),e.shiftKey&&this.onEnterKey(e,t),e.preventDefault()},onArrowUpKey:function(e,t){var o=this.findPrevOptionIndex(this.focusedOptionIndex,t);this.changeFocusedOptionIndex(o,t),e.shiftKey&&this.onEnterKey(e,t),e.preventDefault()},onEnterKey:function(e,t){var o=m.find(this.$refs[t].$el,'[data-pc-section="item"]'),n=m.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),i=C(o).findIndex((function(e){return e===n})),r="sourceList"===t?0:1;this.onItemClick(e,this.modelValue[r][i],i,r),e.preventDefault()},onSpaceKey:function(e,t){if(e.preventDefault(),e.shiftKey&&this.d_selection&&this.d_selection.length>0){var o="sourceList"===t?0:1,n=m.find(this.$refs[t].$el,'[data-pc-section="item"]'),i=d.findIndexInList(this.d_selection[o][0],C(this.modelValue[o])),r=m.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),s=C(n).findIndex((function(e){return e===r}));this.d_selection[o]=C(this.modelValue[o]).slice(Math.min(i,s),Math.max(i,s)+1),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}else this.onEnterKey(e,t)},onHomeKey:function(e,t){if(e.ctrlKey&&e.shiftKey){var o="sourceList"===t?0:1,n=m.find(this.$refs[t].$el,'[data-pc-section="item"]'),i=m.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),r=C(n).findIndex((function(e){return e===i}));this.d_selection[o]=C(this.modelValue[o]).slice(0,r+1),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}else this.changeFocusedOptionIndex(0,t);e.preventDefault()},onEndKey:function(e,t){var o=m.find(this.$refs[t].$el,'[data-pc-section="item"]');if(e.ctrlKey&&e.shiftKey){var n="sourceList"===t?0:1,i=m.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),r=C(o).findIndex((function(e){return e===i}));this.d_selection[n]=C(this.modelValue[n]).slice(r,o.length),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}else this.changeFocusedOptionIndex(o.length-1,t);e.preventDefault()},findNextOptionIndex:function(e,t){var o=C(m.find(this.$refs[t].$el,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return o>-1?o+1:0},findPrevOptionIndex:function(e,t){var o=C(m.find(this.$refs[t].$el,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return o>-1?o-1:0},changeFocusedOptionIndex:function(e,t){var o=m.find(this.$refs[t].$el,'[data-pc-section="item"]'),n=e>=o.length?o.length-1:e<0?0:e;this.focusedOptionIndex=o[n].getAttribute("id"),this.scrollInView(o[n].getAttribute("id"),t)},scrollInView:function(e,t){var o=m.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id="'.concat(e,'"]'));o&&o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"start"})},updateListScroll:function(e){var t=m.find(e,'[data-pc-section="item"][data-p-highlight="true"]');if(t&&t.length)switch(this.reorderDirection){case"up":m.scrollInView(e,t[0]);break;case"top":e.scrollTop=0;break;case"down":m.scrollInView(e,t[t.length-1]);break;case"bottom":e.scrollTop=e.scrollHeight}},initMedia:function(){this.media=window.matchMedia("(max-width: ".concat(this.breakpoint,")")),this.viewChanged=this.media.matches,this.bindMediaChangeListener()},destroyMedia:function(){this.unbindMediaChangeListener()},bindMediaChangeListener:function(){var e=this;this.media&&!this.mediaChangeListener&&(this.mediaChangeListener=function(t){e.viewChanged=t.matches},this.media.addEventListener("change",this.mediaChangeListener))},unbindMediaChangeListener:function(){this.media&&this.mediaChangeListener&&(this.media.removeEventListener("change",this.mediaChangeListener),this.mediaChangeListener=null)},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.$el.setAttribute(this.attributeSelector,""),this.styleElement=document.createElement("style"),this.styleElement.type="text/css",m.setAttribute(this.styleElement,"nonce",null===(e=this.$primevue)||void 0===e||null===(e=e.config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce),document.head.appendChild(this.styleElement);var t="\n@media screen and (max-width: ".concat(this.breakpoint,") {\n .p-picklist[").concat(this.attributeSelector,"] {\n flex-direction: column;\n }\n\n .p-picklist[").concat(this.attributeSelector,"] .p-picklist-buttons {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-picklist[").concat(this.attributeSelector,"] .p-picklist-buttons .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-picklist[").concat(this.attributeSelector,"] .p-picklist-buttons .p-button:last-child {\n margin-right: 0;\n }\n}\n");this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},moveDisabled:function(e){if(!this.d_selection[e]||!this.d_selection[e].length)return!0},moveAllDisabled:function(e){return d.isEmpty(this[e])}},computed:{idSource:function(){return"".concat(this.id,"_source")},idTarget:function(){return"".concat(this.id,"_target")},focusedOptionId:function(){return-1!==this.focusedOptionIndex?this.focusedOptionIndex:null},sourceList:function(){return this.modelValue&&this.modelValue[0]?this.modelValue[0]:null},targetList:function(){return this.modelValue&&this.modelValue[1]?this.modelValue[1]:null},attributeSelector:function(){return u()},moveUpAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveUp:void 0},moveTopAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveTop:void 0},moveDownAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveDown:void 0},moveBottomAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveBottom:void 0},moveToTargetAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveToTarget:void 0},moveAllToTargetAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveAllToTarget:void 0},moveToSourceAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveToSource:void 0},moveAllToSourceAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveAllToSource:void 0}},components:{PLButton:e,AngleRightIcon:l,AngleLeftIcon:s,AngleDownIcon:r,AngleUpIcon:a,AngleDoubleRightIcon:n,AngleDoubleLeftIcon:o,AngleDoubleDownIcon:t,AngleDoubleUpIcon:i},directives:{ripple:c}};function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}function U(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function j(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?U(Object(o),!0).forEach((function(t){F(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):U(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function F(e,t,o){return(t=H(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function H(e){var t=R(e,"string");return"symbol"===M(t)?t:String(t)}function R(e,t){if("object"!==M(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!==M(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var N=["id","onClick","onDblclick","onMousedown","aria-selected","data-p-highlight","data-p-focused"],W=["id","onClick","onDblclick","onMousedown","aria-selected","data-p-highlight","data-p-focused"];K.render=function(e,t,o,n,i,r){var s=f("AngleUpIcon"),l=f("PLButton"),a=f("AngleDoubleUpIcon"),c=f("AngleDownIcon"),u=f("AngleDoubleDownIcon"),d=v("ripple");return g(),b("div",y({class:e.cx("root")},e.ptm("root")),[e.showSourceControls?(g(),b("div",y({key:0,class:e.cx("sourceControls")},e.ptm("sourceControls"),{"data-pc-group-section":"controls"}),[$(e.$slots,"sourcecontrolsstart"),I(l,y({"aria-label":r.moveUpAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[0]||(t[0]=function(e){return r.moveUp(e,0)})},e.moveUpButtonProps,{pt:e.ptm("sourceMoveUpButton"),unstyled:e.unstyled,"data-pc-section":"sourcemoveupbutton"}),{icon:L((function(){return[$(e.$slots,"moveupicon",{},(function(){return[I(s,y(e.ptm("sourceMoveUpButton").icon,{"data-pc-section":"moveupicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveTopAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[1]||(t[1]=function(e){return r.moveTop(e,0)})},e.moveTopButtonProps,{pt:e.ptm("sourceMoveTopButton"),unstyled:e.unstyled,"data-pc-section":"sourcemovetopbutton"}),{icon:L((function(){return[$(e.$slots,"movetopicon",{},(function(){return[I(a,y(e.ptm("sourceMoveTopButton").icon,{"data-pc-section":"movetopicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveDownAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[2]||(t[2]=function(e){return r.moveDown(e,0)})},e.moveDownButtonProps,{pt:e.ptm("sourceMoveDownButton"),unstyled:e.unstyled,"data-pc-section":"sourcemovedownbutton"}),{icon:L((function(){return[$(e.$slots,"movedownicon",{},(function(){return[I(c,y(e.ptm("sourceMoveDownButton").icon,{"data-pc-section":"movedownicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveBottomAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[3]||(t[3]=function(e){return r.moveBottom(e,0)})},e.moveBottomButtonProps,{pt:e.ptm("sourceMoveBottomButton"),unstyled:e.unstyled,"data-pc-section":"sourcemovebottombutton"}),{icon:L((function(){return[$(e.$slots,"movebottomicon",{},(function(){return[I(u,y(e.ptm("sourceMoveBottomButton").icon,{"data-pc-section":"movebottomicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),$(e.$slots,"sourcecontrolsend")],16)):w("",!0),T("div",y({class:e.cx("sourceWrapper")},e.ptm("sourceWrapper"),{"data-pc-group-section":"listwrapper"}),[e.$slots.sourceheader?(g(),b("div",y({key:0,class:e.cx("sourceHeader")},e.ptm("sourceHeader"),{"data-pc-group-section":"header"}),[$(e.$slots,"sourceheader")],16)):w("",!0),I(x,y({ref:"sourceList",id:r.idSource+"_list",name:"p-picklist-flip",tag:"ul",class:e.cx("sourceList"),style:e.listStyle,role:"listbox","aria-multiselectable":"true","aria-activedescendant":i.focused.sourceList?r.focusedOptionId:void 0,tabindex:r.sourceList&&r.sourceList.length>0?e.tabindex:-1,onFocus:t[5]||(t[5]=function(e){return r.onListFocus(e,"sourceList")}),onBlur:t[6]||(t[6]=function(e){return r.onListBlur(e,"sourceList")}),onKeydown:t[7]||(t[7]=function(e){return r.onItemKeyDown(e,"sourceList")})},j(j(j({},e.sourceListProps),e.ptm("sourceList")),e.ptm("transition")),{"data-pc-group-section":"list"}),{default:L((function(){return[(g(!0),b(D,null,A(r.sourceList,(function(o,n){return S((g(),b("li",y({key:r.getItemKey(o,n),id:r.idSource+"_"+n,class:e.cx("item",{item:o,id:"".concat(r.idSource,"_").concat(n),listIndex:0}),onClick:function(e){return r.onItemClick(e,o,n,0)},onDblclick:function(e){return r.onItemDblClick(e,o,0)},onTouchend:t[4]||(t[4]=function(){return r.onItemTouchEnd&&r.onItemTouchEnd.apply(r,arguments)}),onMousedown:function(e){return r.onOptionMouseDown(n,"sourceList")},role:"option","aria-selected":r.isSelected(o,0)},r.getPTOptions(o,"item","".concat(r.idSource,"_").concat(n),0),{"data-p-highlight":r.isSelected(o,0),"data-p-focused":"".concat(r.idSource,"_").concat(n)===r.focusedOptionId}),[$(e.$slots,"item",{item:o,index:n})],16,N)),[[d]])})),128))]})),_:3},16,["id","class","style","aria-activedescendant","tabindex"])],16),T("div",y({class:e.cx("buttons")},e.ptm("buttons"),{"data-pc-group-section":"controls"}),[$(e.$slots,"movecontrolsstart"),I(l,y({"aria-label":r.moveToTargetAriaLabel,type:"button",onClick:r.moveToTarget,disabled:r.moveDisabled(0)},e.moveToTargetProps,{pt:e.ptm("moveToTargetButton"),unstyled:e.unstyled,"data-pc-section":"movetotargetbuton"}),{icon:L((function(){return[$(e.$slots,"movetotargeticon",{viewChanged:i.viewChanged},(function(){return[(g(),_(k(i.viewChanged?"AngleDownIcon":"AngleRightIcon"),y(e.ptm("moveToTargetButton").icon,{"data-pc-section":"movetotargeticon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveAllToTargetAriaLabel,type:"button",onClick:r.moveAllToTarget,disabled:r.moveAllDisabled("sourceList")},e.moveAllToTargetProps,{pt:e.ptm("moveAllToTargetButton"),unstyled:e.unstyled,"data-pc-section":"movealltotargetbuton"}),{icon:L((function(){return[$(e.$slots,"movealltotargeticon",{viewChanged:i.viewChanged},(function(){return[(g(),_(k(i.viewChanged?"AngleDoubleDownIcon":"AngleDoubleRightIcon"),y(e.ptm("moveAllToTargetButton").icon,{"data-pc-section":"movealltotargeticon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveToSourceAriaLabel,type:"button",onClick:r.moveToSource,disabled:r.moveDisabled(1)},e.moveToSourceProps,{pt:e.ptm("moveToSourceButton"),unstyled:e.unstyled,"data-pc-section":"movetosourcebuton"}),{icon:L((function(){return[$(e.$slots,"movetosourceicon",{viewChanged:i.viewChanged},(function(){return[(g(),_(k(i.viewChanged?"AngleUpIcon":"AngleLeftIcon"),y(e.ptm("moveToSourceButton").icon,{"data-pc-section":"movetosourceicon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveAllToSourceAriaLabel,type:"button",onClick:r.moveAllToSource,disabled:r.moveAllDisabled("targetList")},e.moveAllToSourceProps,{pt:e.ptm("moveAllToSourceButton"),"data-pc-section":"movealltosourcebuton",unstyled:e.unstyled}),{icon:L((function(){return[$(e.$slots,"movealltosourceicon",{viewChanged:i.viewChanged},(function(){return[(g(),_(k(i.viewChanged?"AngleDoubleUpIcon":"AngleDoubleLeftIcon"),y(e.ptm("moveAllToSourceButton").icon,{"data-pc-section":"movealltosourceicon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),$(e.$slots,"movecontrolsend")],16),T("div",y({class:e.cx("targetWrapper")},e.ptm("targetWrapper"),{"data-pc-group-section":"listwrapper"}),[e.$slots.targetheader?(g(),b("div",y({key:0,class:e.cx("targetHeader")},e.ptm("targetHeader"),{"data-pc-group-section":"header"}),[$(e.$slots,"targetheader")],16)):w("",!0),I(x,y({ref:"targetList",id:r.idTarget+"_list",name:"p-picklist-flip",tag:"ul",class:e.cx("targetList"),style:e.listStyle,role:"listbox","aria-multiselectable":"true","aria-activedescendant":i.focused.targetList?r.focusedOptionId:void 0,tabindex:r.targetList&&r.targetList.length>0?e.tabindex:-1,onFocus:t[10]||(t[10]=function(e){return r.onListFocus(e,"targetList")}),onBlur:t[11]||(t[11]=function(e){return r.onListBlur(e,"targetList")}),onKeydown:t[12]||(t[12]=function(e){return r.onItemKeyDown(e,"targetList")})},j(j(j({},e.targetListProps),e.ptm("targetList")),e.ptm("transition")),{"data-pc-group-section":"list"}),{default:L((function(){return[(g(!0),b(D,null,A(r.targetList,(function(o,n){return S((g(),b("li",y({key:r.getItemKey(o,n),id:r.idTarget+"_"+n,class:e.cx("item",{item:o,id:"".concat(r.idTarget,"_").concat(n),listIndex:1}),onClick:function(e){return r.onItemClick(e,o,n,1)},onDblclick:function(e){return r.onItemDblClick(e,o,1)},onKeydown:t[8]||(t[8]=function(e){return r.onItemKeyDown(e,"targetList")}),onMousedown:function(e){return r.onOptionMouseDown(n,"targetList")},onTouchend:t[9]||(t[9]=function(){return r.onItemTouchEnd&&r.onItemTouchEnd.apply(r,arguments)}),role:"option","aria-selected":r.isSelected(o,1)},r.getPTOptions(o,"item","".concat(r.idTarget,"_").concat(n),1),{"data-p-highlight":r.isSelected(o,1),"data-p-focused":"".concat(r.idTarget,"_").concat(n)===r.focusedOptionId}),[$(e.$slots,"item",{item:o,index:n})],16,W)),[[d]])})),128))]})),_:3},16,["id","class","style","aria-activedescendant","tabindex"])],16),e.showTargetControls?(g(),b("div",y({key:1,class:e.cx("targetControls")},e.ptm("targetControls"),{"data-pc-group-section":"controls"}),[$(e.$slots,"targetcontrolsstart"),I(l,y({"aria-label":r.moveUpAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[13]||(t[13]=function(e){return r.moveUp(e,1)})},e.moveUpButtonProps,{pt:e.ptm("targetMoveUpButton"),unstyled:e.unstyled,"data-pc-section":"targetmoveupbutton"}),{icon:L((function(){return[$(e.$slots,"moveupicon",{},(function(){return[I(s,y(e.ptm("targetMoveUpButton").icon,{"data-pc-section":"moveupicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveTopAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[14]||(t[14]=function(e){return r.moveTop(e,1)})},e.moveTopButtonProps,{pt:e.ptm("targetMoveTopButton"),unstyled:e.unstyled,"data-pc-section":"targetmovetopbutton"}),{icon:L((function(){return[$(e.$slots,"movetopicon",{},(function(){return[I(a,y(e.ptm("targetMoveTopButton").icon,{"data-pc-section":"movetopicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveDownAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[15]||(t[15]=function(e){return r.moveDown(e,1)})},e.moveDownButtonProps,{pt:e.ptm("targetMoveDownButton"),unstyled:e.unstyled,"data-pc-section":"targetmovedownbutton"}),{icon:L((function(){return[$(e.$slots,"movedownicon",{},(function(){return[I(c,y(e.ptm("targetMoveDownButton").icon,{"data-pc-section":"movedownicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveBottomAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[16]||(t[16]=function(e){return r.moveBottom(e,1)})},e.moveBottomButtonProps,{pt:e.ptm("targetMoveBottomButton"),unstyled:e.unstyled,"data-pc-section":"targetmovebottombutton"}),{icon:L((function(){return[$(e.$slots,"movebottomicon",{},(function(){return[I(u,y(e.ptm("targetMoveBottomButton").icon,{"data-pc-section":"movebottomicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),$(e.$slots,"targetcontrolsend")],16)):w("",!0)],16)};export{K as default};
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};
@@ -734,8 +734,8 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
734
734
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
735
735
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
736
736
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
737
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
738
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
737
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
738
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
739
739
  var _hoisted_1 = ["id", "onClick", "onDblclick", "onMousedown", "aria-selected", "data-p-highlight", "data-p-focused"];
740
740
  var _hoisted_2 = ["id", "onClick", "onDblclick", "onMousedown", "aria-selected", "data-p-highlight", "data-p-focused"];
741
741
  function render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -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){return(t=E(t))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function E(e){var t=U(e,"string");return"symbol"===P(t)?t:String(t)}function U(e,t){if("object"!==P(e)||null===e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!==P(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var K=["id","onClick","onDblclick","onMousedown","aria-selected","data-p-highlight","data-p-focused"],M=["id","onClick","onDblclick","onMousedown","aria-selected","data-p-highlight","data-p-focused"];return A.render=function(e,t,o,n,i,r){var l=p.resolveComponent("AngleUpIcon"),s=p.resolveComponent("PLButton"),a=p.resolveComponent("AngleDoubleUpIcon"),c=p.resolveComponent("AngleDownIcon"),u=p.resolveComponent("AngleDoubleDownIcon"),d=p.resolveDirective("ripple");return p.openBlock(),p.createElementBlock("div",p.mergeProps({class:e.cx("root")},e.ptm("root")),[e.showSourceControls?(p.openBlock(),p.createElementBlock("div",p.mergeProps({key:0,class:e.cx("sourceControls")},e.ptm("sourceControls"),{"data-pc-group-section":"controls"}),[p.renderSlot(e.$slots,"sourcecontrolsstart"),p.createVNode(s,p.mergeProps({"aria-label":r.moveUpAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[0]||(t[0]=function(e){return r.moveUp(e,0)})},e.moveUpButtonProps,{pt:e.ptm("sourceMoveUpButton"),unstyled:e.unstyled,"data-pc-section":"sourcemoveupbutton"}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"moveupicon",{},(function(){return[p.createVNode(l,p.mergeProps(e.ptm("sourceMoveUpButton").icon,{"data-pc-section":"moveupicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),p.createVNode(s,p.mergeProps({"aria-label":r.moveTopAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[1]||(t[1]=function(e){return r.moveTop(e,0)})},e.moveTopButtonProps,{pt:e.ptm("sourceMoveTopButton"),unstyled:e.unstyled,"data-pc-section":"sourcemovetopbutton"}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movetopicon",{},(function(){return[p.createVNode(a,p.mergeProps(e.ptm("sourceMoveTopButton").icon,{"data-pc-section":"movetopicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),p.createVNode(s,p.mergeProps({"aria-label":r.moveDownAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[2]||(t[2]=function(e){return r.moveDown(e,0)})},e.moveDownButtonProps,{pt:e.ptm("sourceMoveDownButton"),unstyled:e.unstyled,"data-pc-section":"sourcemovedownbutton"}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movedownicon",{},(function(){return[p.createVNode(c,p.mergeProps(e.ptm("sourceMoveDownButton").icon,{"data-pc-section":"movedownicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),p.createVNode(s,p.mergeProps({"aria-label":r.moveBottomAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[3]||(t[3]=function(e){return r.moveBottom(e,0)})},e.moveBottomButtonProps,{pt:e.ptm("sourceMoveBottomButton"),unstyled:e.unstyled,"data-pc-section":"sourcemovebottombutton"}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movebottomicon",{},(function(){return[p.createVNode(u,p.mergeProps(e.ptm("sourceMoveBottomButton").icon,{"data-pc-section":"movebottomicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),p.renderSlot(e.$slots,"sourcecontrolsend")],16)):p.createCommentVNode("",!0),p.createElementVNode("div",p.mergeProps({class:e.cx("sourceWrapper")},e.ptm("sourceWrapper"),{"data-pc-group-section":"listwrapper"}),[e.$slots.sourceheader?(p.openBlock(),p.createElementBlock("div",p.mergeProps({key:0,class:e.cx("sourceHeader")},e.ptm("sourceHeader"),{"data-pc-group-section":"header"}),[p.renderSlot(e.$slots,"sourceheader")],16)):p.createCommentVNode("",!0),p.createVNode(p.TransitionGroup,p.mergeProps({ref:"sourceList",id:r.idSource+"_list",name:"p-picklist-flip",tag:"ul",class:e.cx("sourceList"),style:e.listStyle,role:"listbox","aria-multiselectable":"true","aria-activedescendant":i.focused.sourceList?r.focusedOptionId:void 0,tabindex:r.sourceList&&r.sourceList.length>0?e.tabindex:-1,onFocus:t[5]||(t[5]=function(e){return r.onListFocus(e,"sourceList")}),onBlur:t[6]||(t[6]=function(e){return r.onListBlur(e,"sourceList")}),onKeydown:t[7]||(t[7]=function(e){return r.onItemKeyDown(e,"sourceList")})},_(_(_({},e.sourceListProps),e.ptm("sourceList")),e.ptm("transition")),{"data-pc-group-section":"list"}),{default:p.withCtx((function(){return[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.sourceList,(function(o,n){return p.withDirectives((p.openBlock(),p.createElementBlock("li",p.mergeProps({key:r.getItemKey(o,n),id:r.idSource+"_"+n,class:e.cx("item",{item:o,id:"".concat(r.idSource,"_").concat(n),listIndex:0}),onClick:function(e){return r.onItemClick(e,o,n,0)},onDblclick:function(e){return r.onItemDblClick(e,o,0)},onTouchend:t[4]||(t[4]=function(){return r.onItemTouchEnd&&r.onItemTouchEnd.apply(r,arguments)}),onMousedown:function(e){return r.onOptionMouseDown(n,"sourceList")},role:"option","aria-selected":r.isSelected(o,0)},r.getPTOptions(o,"item","".concat(r.idSource,"_").concat(n),0),{"data-p-highlight":r.isSelected(o,0),"data-p-focused":"".concat(r.idSource,"_").concat(n)===r.focusedOptionId}),[p.renderSlot(e.$slots,"item",{item:o,index:n})],16,K)),[[d]])})),128))]})),_:3},16,["id","class","style","aria-activedescendant","tabindex"])],16),p.createElementVNode("div",p.mergeProps({class:e.cx("buttons")},e.ptm("buttons"),{"data-pc-group-section":"controls"}),[p.renderSlot(e.$slots,"movecontrolsstart"),p.createVNode(s,p.mergeProps({"aria-label":r.moveToTargetAriaLabel,type:"button",onClick:r.moveToTarget,disabled:r.moveDisabled(0)},e.moveToTargetProps,{pt:e.ptm("moveToTargetButton"),unstyled:e.unstyled,"data-pc-section":"movetotargetbuton"}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movetotargeticon",{viewChanged:i.viewChanged},(function(){return[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(i.viewChanged?"AngleDownIcon":"AngleRightIcon"),p.mergeProps(e.ptm("moveToTargetButton").icon,{"data-pc-section":"movetotargeticon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),p.createVNode(s,p.mergeProps({"aria-label":r.moveAllToTargetAriaLabel,type:"button",onClick:r.moveAllToTarget,disabled:r.moveAllDisabled("sourceList")},e.moveAllToTargetProps,{pt:e.ptm("moveAllToTargetButton"),unstyled:e.unstyled,"data-pc-section":"movealltotargetbuton"}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movealltotargeticon",{viewChanged:i.viewChanged},(function(){return[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(i.viewChanged?"AngleDoubleDownIcon":"AngleDoubleRightIcon"),p.mergeProps(e.ptm("moveAllToTargetButton").icon,{"data-pc-section":"movealltotargeticon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),p.createVNode(s,p.mergeProps({"aria-label":r.moveToSourceAriaLabel,type:"button",onClick:r.moveToSource,disabled:r.moveDisabled(1)},e.moveToSourceProps,{pt:e.ptm("moveToSourceButton"),unstyled:e.unstyled,"data-pc-section":"movetosourcebuton"}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movetosourceicon",{viewChanged:i.viewChanged},(function(){return[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(i.viewChanged?"AngleUpIcon":"AngleLeftIcon"),p.mergeProps(e.ptm("moveToSourceButton").icon,{"data-pc-section":"movetosourceicon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),p.createVNode(s,p.mergeProps({"aria-label":r.moveAllToSourceAriaLabel,type:"button",onClick:r.moveAllToSource,disabled:r.moveAllDisabled("targetList")},e.moveAllToSourceProps,{pt:e.ptm("moveAllToSourceButton"),"data-pc-section":"movealltosourcebuton",unstyled:e.unstyled}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movealltosourceicon",{viewChanged:i.viewChanged},(function(){return[(p.openBlock(),p.createBlock(p.resolveDynamicComponent(i.viewChanged?"AngleDoubleUpIcon":"AngleDoubleLeftIcon"),p.mergeProps(e.ptm("moveAllToSourceButton").icon,{"data-pc-section":"movealltosourceicon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),p.renderSlot(e.$slots,"movecontrolsend")],16),p.createElementVNode("div",p.mergeProps({class:e.cx("targetWrapper")},e.ptm("targetWrapper"),{"data-pc-group-section":"listwrapper"}),[e.$slots.targetheader?(p.openBlock(),p.createElementBlock("div",p.mergeProps({key:0,class:e.cx("targetHeader")},e.ptm("targetHeader"),{"data-pc-group-section":"header"}),[p.renderSlot(e.$slots,"targetheader")],16)):p.createCommentVNode("",!0),p.createVNode(p.TransitionGroup,p.mergeProps({ref:"targetList",id:r.idTarget+"_list",name:"p-picklist-flip",tag:"ul",class:e.cx("targetList"),style:e.listStyle,role:"listbox","aria-multiselectable":"true","aria-activedescendant":i.focused.targetList?r.focusedOptionId:void 0,tabindex:r.targetList&&r.targetList.length>0?e.tabindex:-1,onFocus:t[10]||(t[10]=function(e){return r.onListFocus(e,"targetList")}),onBlur:t[11]||(t[11]=function(e){return r.onListBlur(e,"targetList")}),onKeydown:t[12]||(t[12]=function(e){return r.onItemKeyDown(e,"targetList")})},_(_(_({},e.targetListProps),e.ptm("targetList")),e.ptm("transition")),{"data-pc-group-section":"list"}),{default:p.withCtx((function(){return[(p.openBlock(!0),p.createElementBlock(p.Fragment,null,p.renderList(r.targetList,(function(o,n){return p.withDirectives((p.openBlock(),p.createElementBlock("li",p.mergeProps({key:r.getItemKey(o,n),id:r.idTarget+"_"+n,class:e.cx("item",{item:o,id:"".concat(r.idTarget,"_").concat(n),listIndex:1}),onClick:function(e){return r.onItemClick(e,o,n,1)},onDblclick:function(e){return r.onItemDblClick(e,o,1)},onKeydown:t[8]||(t[8]=function(e){return r.onItemKeyDown(e,"targetList")}),onMousedown:function(e){return r.onOptionMouseDown(n,"targetList")},onTouchend:t[9]||(t[9]=function(){return r.onItemTouchEnd&&r.onItemTouchEnd.apply(r,arguments)}),role:"option","aria-selected":r.isSelected(o,1)},r.getPTOptions(o,"item","".concat(r.idTarget,"_").concat(n),1),{"data-p-highlight":r.isSelected(o,1),"data-p-focused":"".concat(r.idTarget,"_").concat(n)===r.focusedOptionId}),[p.renderSlot(e.$slots,"item",{item:o,index:n})],16,M)),[[d]])})),128))]})),_:3},16,["id","class","style","aria-activedescendant","tabindex"])],16),e.showTargetControls?(p.openBlock(),p.createElementBlock("div",p.mergeProps({key:1,class:e.cx("targetControls")},e.ptm("targetControls"),{"data-pc-group-section":"controls"}),[p.renderSlot(e.$slots,"targetcontrolsstart"),p.createVNode(s,p.mergeProps({"aria-label":r.moveUpAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[13]||(t[13]=function(e){return r.moveUp(e,1)})},e.moveUpButtonProps,{pt:e.ptm("targetMoveUpButton"),unstyled:e.unstyled,"data-pc-section":"targetmoveupbutton"}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"moveupicon",{},(function(){return[p.createVNode(l,p.mergeProps(e.ptm("targetMoveUpButton").icon,{"data-pc-section":"moveupicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),p.createVNode(s,p.mergeProps({"aria-label":r.moveTopAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[14]||(t[14]=function(e){return r.moveTop(e,1)})},e.moveTopButtonProps,{pt:e.ptm("targetMoveTopButton"),unstyled:e.unstyled,"data-pc-section":"targetmovetopbutton"}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movetopicon",{},(function(){return[p.createVNode(a,p.mergeProps(e.ptm("targetMoveTopButton").icon,{"data-pc-section":"movetopicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),p.createVNode(s,p.mergeProps({"aria-label":r.moveDownAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[15]||(t[15]=function(e){return r.moveDown(e,1)})},e.moveDownButtonProps,{pt:e.ptm("targetMoveDownButton"),unstyled:e.unstyled,"data-pc-section":"targetmovedownbutton"}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movedownicon",{},(function(){return[p.createVNode(c,p.mergeProps(e.ptm("targetMoveDownButton").icon,{"data-pc-section":"movedownicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),p.createVNode(s,p.mergeProps({"aria-label":r.moveBottomAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[16]||(t[16]=function(e){return r.moveBottom(e,1)})},e.moveBottomButtonProps,{pt:e.ptm("targetMoveBottomButton"),unstyled:e.unstyled,"data-pc-section":"targetmovebottombutton"}),{icon:p.withCtx((function(){return[p.renderSlot(e.$slots,"movebottomicon",{},(function(){return[p.createVNode(u,p.mergeProps(e.ptm("targetMoveBottomButton").icon,{"data-pc-section":"movebottomicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),p.renderSlot(e.$slots,"targetcontrolsend")],16)):p.createCommentVNode("",!0)],16)},A}(primevue.button,primevue.icons.angledoubledown,primevue.icons.angledoubleleft,primevue.icons.angledoubleright,primevue.icons.angledoubleup,primevue.icons.angledown,primevue.icons.angleleft,primevue.icons.angleright,primevue.icons.angleup,primevue.ripple,primevue.utils,primevue.basecomponent,primevue.picklist.style,Vue);
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);
@@ -25,6 +25,10 @@ export interface ProgressSpinnerPassThroughMethodOptions {
25
25
  * Defines valid properties.
26
26
  */
27
27
  props: ProgressSpinnerProps;
28
+ /**
29
+ * Defines valid attributes.
30
+ */
31
+ attrs: any;
28
32
  /**
29
33
  * Defines parent options.
30
34
  */
@@ -30,6 +30,10 @@ export interface RadioButtonPassThroughMethodOptions {
30
30
  * Defines current inline state.
31
31
  */
32
32
  state: RadioButtonState;
33
+ /**
34
+ * Defines valid attributes.
35
+ */
36
+ attrs: any;
33
37
  /**
34
38
  * Defines parent options.
35
39
  */
@@ -97,8 +97,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
97
97
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
98
98
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
99
99
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
100
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
101
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
100
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
101
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
102
102
  var _hoisted_1 = ["id", "name", "checked", "disabled", "value", "aria-labelledby", "aria-label"];
103
103
  var _hoisted_2 = ["data-p-highlight", "data-p-disabled", "data-p-focused"];
104
104
  function render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/utils"),t=require("primevue/basecomponent"),n=require("primevue/radiobutton/style"),r=require("vue");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l={name:"RadioButton",extends:{name:"BaseRadioButton",extends:i(t).default,props:{value:null,modelValue:null,name:{type:String,default:null},disabled:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:i(n).default,provide:function(){return{$parentInstance:this}}},emits:["click","update:modelValue","change","focus","blur"],data:function(){return{focused:!1}},methods:{onClick:function(e){this.disabled||(this.$emit("click",e),this.$emit("update:modelValue",this.value),this.$refs.input.focus(),this.checked||this.$emit("change",e))},onFocus:function(e){this.focused=!0,this.$emit("focus",e)},onBlur:function(e){this.focused=!1,this.$emit("blur",e)}},computed:{checked:function(){return null!=this.modelValue&&e.ObjectUtils.equals(this.modelValue,this.value)}}};function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){var t=s(e,"string");return"symbol"===u(t)?t:String(t)}function s(e,t){if("object"!==u(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var p=["id","name","checked","disabled","value","aria-labelledby","aria-label"],f=["data-p-highlight","data-p-disabled","data-p-focused"];l.render=function(e,t,n,i,l,u){return r.openBlock(),r.createElementBlock("div",r.mergeProps({class:e.cx("root"),onClick:t[2]||(t[2]=function(e){return u.onClick(e)})},e.ptm("root"),{"data-pc-name":"radiobutton"}),[r.createElementVNode("div",r.mergeProps({class:"p-hidden-accessible"},e.ptm("hiddenInputWrapper"),{"data-p-hidden-accessible":!0}),[r.createElementVNode("input",r.mergeProps({ref:"input",id:e.inputId,type:"radio",name:e.name,checked:u.checked,disabled:e.disabled,value:e.value,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onFocus:t[0]||(t[0]=function(){return u.onFocus&&u.onFocus.apply(u,arguments)}),onBlur:t[1]||(t[1]=function(){return u.onBlur&&u.onBlur.apply(u,arguments)})},e.ptm("hiddenInput")),null,16,p)],16),r.createElementVNode("div",r.mergeProps({ref:"box",class:[e.cx("input"),e.inputClass],style:e.inputStyle},a(a({},e.inputProps),e.ptm("input")),{"data-p-highlight":u.checked,"data-p-disabled":e.disabled,"data-p-focused":l.focused}),[r.createElementVNode("div",r.mergeProps({class:e.cx("icon")},e.ptm("icon")),null,16)],16,f)],16)},module.exports=l;
1
+ "use strict";var e=require("primevue/utils"),t=require("primevue/basecomponent"),n=require("primevue/radiobutton/style"),r=require("vue");function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l={name:"RadioButton",extends:{name:"BaseRadioButton",extends:i(t).default,props:{value:null,modelValue:null,name:{type:String,default:null},disabled:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:i(n).default,provide:function(){return{$parentInstance:this}}},emits:["click","update:modelValue","change","focus","blur"],data:function(){return{focused:!1}},methods:{onClick:function(e){this.disabled||(this.$emit("click",e),this.$emit("update:modelValue",this.value),this.$refs.input.focus(),this.checked||this.$emit("change",e))},onFocus:function(e){this.focused=!0,this.$emit("focus",e)},onBlur:function(e){this.focused=!1,this.$emit("blur",e)}},computed:{checked:function(){return null!=this.modelValue&&e.ObjectUtils.equals(this.modelValue,this.value)}}};function u(e){return u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},u(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){var r;return(t="symbol"==u(r=d(t,"string"))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if("object"!=u(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=u(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var s=["id","name","checked","disabled","value","aria-labelledby","aria-label"],p=["data-p-highlight","data-p-disabled","data-p-focused"];l.render=function(e,t,n,i,l,u){return r.openBlock(),r.createElementBlock("div",r.mergeProps({class:e.cx("root"),onClick:t[2]||(t[2]=function(e){return u.onClick(e)})},e.ptm("root"),{"data-pc-name":"radiobutton"}),[r.createElementVNode("div",r.mergeProps({class:"p-hidden-accessible"},e.ptm("hiddenInputWrapper"),{"data-p-hidden-accessible":!0}),[r.createElementVNode("input",r.mergeProps({ref:"input",id:e.inputId,type:"radio",name:e.name,checked:u.checked,disabled:e.disabled,value:e.value,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onFocus:t[0]||(t[0]=function(){return u.onFocus&&u.onFocus.apply(u,arguments)}),onBlur:t[1]||(t[1]=function(){return u.onBlur&&u.onBlur.apply(u,arguments)})},e.ptm("hiddenInput")),null,16,s)],16),r.createElementVNode("div",r.mergeProps({ref:"box",class:[e.cx("input"),e.inputClass],style:e.inputStyle},a(a({},e.inputProps),e.ptm("input")),{"data-p-highlight":u.checked,"data-p-disabled":e.disabled,"data-p-focused":l.focused}),[r.createElementVNode("div",r.mergeProps({class:e.cx("icon")},e.ptm("icon")),null,16)],16,p)],16)},module.exports=l;
@@ -90,8 +90,8 @@ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" ==
90
90
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
91
91
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
92
92
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
93
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
94
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
93
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
94
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
95
95
  var _hoisted_1 = ["id", "name", "checked", "disabled", "value", "aria-labelledby", "aria-label"];
96
96
  var _hoisted_2 = ["data-p-highlight", "data-p-disabled", "data-p-focused"];
97
97
  function render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -1 +1 @@
1
- import{ObjectUtils as e}from"primevue/utils";import t from"primevue/basecomponent";import n from"primevue/radiobutton/style";import{openBlock as i,createElementBlock as r,mergeProps as u,createElementVNode as l}from"vue";var o={name:"RadioButton",extends:{name:"BaseRadioButton",extends:t,props:{value:null,modelValue:null,name:{type:String,default:null},disabled:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:n,provide:function(){return{$parentInstance:this}}},emits:["click","update:modelValue","change","focus","blur"],data:function(){return{focused:!1}},methods:{onClick:function(e){this.disabled||(this.$emit("click",e),this.$emit("update:modelValue",this.value),this.$refs.input.focus(),this.checked||this.$emit("change",e))},onFocus:function(e){this.focused=!0,this.$emit("focus",e)},onBlur:function(e){this.focused=!1,this.$emit("blur",e)}},computed:{checked:function(){return null!=this.modelValue&&e.equals(this.modelValue,this.value)}}};function a(e){return a="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},a(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return(t=s(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e){var t=f(e,"string");return"symbol"===a(t)?t:String(t)}function f(e,t){if("object"!==a(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var b=["id","name","checked","disabled","value","aria-labelledby","aria-label"],m=["data-p-highlight","data-p-disabled","data-p-focused"];o.render=function(e,t,n,o,a,c){return i(),r("div",u({class:e.cx("root"),onClick:t[2]||(t[2]=function(e){return c.onClick(e)})},e.ptm("root"),{"data-pc-name":"radiobutton"}),[l("div",u({class:"p-hidden-accessible"},e.ptm("hiddenInputWrapper"),{"data-p-hidden-accessible":!0}),[l("input",u({ref:"input",id:e.inputId,type:"radio",name:e.name,checked:c.checked,disabled:e.disabled,value:e.value,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onFocus:t[0]||(t[0]=function(){return c.onFocus&&c.onFocus.apply(c,arguments)}),onBlur:t[1]||(t[1]=function(){return c.onBlur&&c.onBlur.apply(c,arguments)})},e.ptm("hiddenInput")),null,16,b)],16),l("div",u({ref:"box",class:[e.cx("input"),e.inputClass],style:e.inputStyle},d(d({},e.inputProps),e.ptm("input")),{"data-p-highlight":c.checked,"data-p-disabled":e.disabled,"data-p-focused":a.focused}),[l("div",u({class:e.cx("icon")},e.ptm("icon")),null,16)],16,m)],16)};export{o as default};
1
+ import{ObjectUtils as e}from"primevue/utils";import t from"primevue/basecomponent";import n from"primevue/radiobutton/style";import{openBlock as i,createElementBlock as r,mergeProps as l,createElementVNode as o}from"vue";var u={name:"RadioButton",extends:{name:"BaseRadioButton",extends:t,props:{value:null,modelValue:null,name:{type:String,default:null},disabled:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:n,provide:function(){return{$parentInstance:this}}},emits:["click","update:modelValue","change","focus","blur"],data:function(){return{focused:!1}},methods:{onClick:function(e){this.disabled||(this.$emit("click",e),this.$emit("update:modelValue",this.value),this.$refs.input.focus(),this.checked||this.$emit("change",e))},onFocus:function(e){this.focused=!0,this.$emit("focus",e)},onBlur:function(e){this.focused=!1,this.$emit("blur",e)}},computed:{checked:function(){return null!=this.modelValue&&e.equals(this.modelValue,this.value)}}};function a(e){return a="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},a(e)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){var i;return(t="symbol"==a(i=s(t,"string"))?i:String(i))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function s(e,t){if("object"!=a(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!=a(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var f=["id","name","checked","disabled","value","aria-labelledby","aria-label"],b=["data-p-highlight","data-p-disabled","data-p-focused"];u.render=function(e,t,n,u,a,c){return i(),r("div",l({class:e.cx("root"),onClick:t[2]||(t[2]=function(e){return c.onClick(e)})},e.ptm("root"),{"data-pc-name":"radiobutton"}),[o("div",l({class:"p-hidden-accessible"},e.ptm("hiddenInputWrapper"),{"data-p-hidden-accessible":!0}),[o("input",l({ref:"input",id:e.inputId,type:"radio",name:e.name,checked:c.checked,disabled:e.disabled,value:e.value,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onFocus:t[0]||(t[0]=function(){return c.onFocus&&c.onFocus.apply(c,arguments)}),onBlur:t[1]||(t[1]=function(){return c.onBlur&&c.onBlur.apply(c,arguments)})},e.ptm("hiddenInput")),null,16,f)],16),o("div",l({ref:"box",class:[e.cx("input"),e.inputClass],style:e.inputStyle},d(d({},e.inputProps),e.ptm("input")),{"data-p-highlight":c.checked,"data-p-disabled":e.disabled,"data-p-focused":a.focused}),[o("div",l({class:e.cx("icon")},e.ptm("icon")),null,16)],16,b)],16)};export{u as default};
@@ -94,8 +94,8 @@ this.primevue.radiobutton = (function (utils, BaseComponent, RadioButtonStyle, v
94
94
  function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
95
95
  function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
96
96
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
97
- function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
98
- function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
97
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
98
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
99
99
  var _hoisted_1 = ["id", "name", "checked", "disabled", "value", "aria-labelledby", "aria-label"];
100
100
  var _hoisted_2 = ["data-p-highlight", "data-p-disabled", "data-p-focused"];
101
101
  function render(_ctx, _cache, $props, $setup, $data, $options) {
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.radiobutton=function(e,t,n,r){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u={name:"RadioButton",extends:{name:"BaseRadioButton",extends:i(t).default,props:{value:null,modelValue:null,name:{type:String,default:null},disabled:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:i(n).default,provide:function(){return{$parentInstance:this}}},emits:["click","update:modelValue","change","focus","blur"],data:function(){return{focused:!1}},methods:{onClick:function(e){this.disabled||(this.$emit("click",e),this.$emit("update:modelValue",this.value),this.$refs.input.focus(),this.checked||this.$emit("change",e))},onFocus:function(e){this.focused=!0,this.$emit("focus",e)},onBlur:function(e){this.focused=!1,this.$emit("blur",e)}},computed:{checked:function(){return null!=this.modelValue&&e.ObjectUtils.equals(this.modelValue,this.value)}}};function l(e){return l="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},l(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=d(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e){var t=s(e,"string");return"symbol"===l(t)?t:String(t)}function s(e,t){if("object"!==l(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!==l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var p=["id","name","checked","disabled","value","aria-labelledby","aria-label"],f=["data-p-highlight","data-p-disabled","data-p-focused"];return u.render=function(e,t,n,i,u,l){return r.openBlock(),r.createElementBlock("div",r.mergeProps({class:e.cx("root"),onClick:t[2]||(t[2]=function(e){return l.onClick(e)})},e.ptm("root"),{"data-pc-name":"radiobutton"}),[r.createElementVNode("div",r.mergeProps({class:"p-hidden-accessible"},e.ptm("hiddenInputWrapper"),{"data-p-hidden-accessible":!0}),[r.createElementVNode("input",r.mergeProps({ref:"input",id:e.inputId,type:"radio",name:e.name,checked:l.checked,disabled:e.disabled,value:e.value,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onFocus:t[0]||(t[0]=function(){return l.onFocus&&l.onFocus.apply(l,arguments)}),onBlur:t[1]||(t[1]=function(){return l.onBlur&&l.onBlur.apply(l,arguments)})},e.ptm("hiddenInput")),null,16,p)],16),r.createElementVNode("div",r.mergeProps({ref:"box",class:[e.cx("input"),e.inputClass],style:e.inputStyle},a(a({},e.inputProps),e.ptm("input")),{"data-p-highlight":l.checked,"data-p-disabled":e.disabled,"data-p-focused":u.focused}),[r.createElementVNode("div",r.mergeProps({class:e.cx("icon")},e.ptm("icon")),null,16)],16,f)],16)},u}(primevue.utils,primevue.basecomponent,primevue.radiobutton.style,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.radiobutton=function(e,t,n,r){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u={name:"RadioButton",extends:{name:"BaseRadioButton",extends:i(t).default,props:{value:null,modelValue:null,name:{type:String,default:null},disabled:{type:Boolean,default:!1},inputId:{type:String,default:null},inputClass:{type:[String,Object],default:null},inputStyle:{type:Object,default:null},inputProps:{type:null,default:null},ariaLabelledby:{type:String,default:null},ariaLabel:{type:String,default:null}},style:i(n).default,provide:function(){return{$parentInstance:this}}},emits:["click","update:modelValue","change","focus","blur"],data:function(){return{focused:!1}},methods:{onClick:function(e){this.disabled||(this.$emit("click",e),this.$emit("update:modelValue",this.value),this.$refs.input.focus(),this.checked||this.$emit("change",e))},onFocus:function(e){this.focused=!0,this.$emit("focus",e)},onBlur:function(e){this.focused=!1,this.$emit("blur",e)}},computed:{checked:function(){return null!=this.modelValue&&e.ObjectUtils.equals(this.modelValue,this.value)}}};function l(e){return l="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},l(e)}function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){var r;return(t="symbol"==l(r=d(t,"string"))?r:String(r))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if("object"!=l(e)||!e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=l(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var s=["id","name","checked","disabled","value","aria-labelledby","aria-label"],p=["data-p-highlight","data-p-disabled","data-p-focused"];return u.render=function(e,t,n,i,u,l){return r.openBlock(),r.createElementBlock("div",r.mergeProps({class:e.cx("root"),onClick:t[2]||(t[2]=function(e){return l.onClick(e)})},e.ptm("root"),{"data-pc-name":"radiobutton"}),[r.createElementVNode("div",r.mergeProps({class:"p-hidden-accessible"},e.ptm("hiddenInputWrapper"),{"data-p-hidden-accessible":!0}),[r.createElementVNode("input",r.mergeProps({ref:"input",id:e.inputId,type:"radio",name:e.name,checked:l.checked,disabled:e.disabled,value:e.value,"aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel,onFocus:t[0]||(t[0]=function(){return l.onFocus&&l.onFocus.apply(l,arguments)}),onBlur:t[1]||(t[1]=function(){return l.onBlur&&l.onBlur.apply(l,arguments)})},e.ptm("hiddenInput")),null,16,s)],16),r.createElementVNode("div",r.mergeProps({ref:"box",class:[e.cx("input"),e.inputClass],style:e.inputStyle},a(a({},e.inputProps),e.ptm("input")),{"data-p-highlight":l.checked,"data-p-disabled":e.disabled,"data-p-focused":u.focused}),[r.createElementVNode("div",r.mergeProps({class:e.cx("icon")},e.ptm("icon")),null,16)],16,p)],16)},u}(primevue.utils,primevue.basecomponent,primevue.radiobutton.style,Vue);
@@ -34,6 +34,10 @@ export interface RatingPassThroughMethodOptions {
34
34
  * Defines current options.
35
35
  */
36
36
  context: RatingContext;
37
+ /**
38
+ * Defines valid attributes.
39
+ */
40
+ attrs: any;
37
41
  /**
38
42
  * Defines parent options.
39
43
  */
package/row/Row.d.ts CHANGED
@@ -22,6 +22,10 @@ export interface RowPassThroughMethodOptions {
22
22
  * Defines valid properties.
23
23
  */
24
24
  props: RowProps;
25
+ /**
26
+ * Defines valid attributes.
27
+ */
28
+ attrs: any;
25
29
  /**
26
30
  * Defines parent options.
27
31
  */
@@ -30,6 +30,10 @@ export interface ScrollPanelPassThroughMethodOptions {
30
30
  * Defines current inline state.
31
31
  */
32
32
  state: ScrollPanelState;
33
+ /**
34
+ * Defines valid attributes.
35
+ */
36
+ attrs: any;
33
37
  /**
34
38
  * Defines parent options.
35
39
  */
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <div :class="cx('root')" v-bind="ptm('root')" data-pc-name="scrollpanel">
3
3
  <div :class="cx('wrapper')" v-bind="ptm('wrapper')">
4
- <div ref="content" :class="cx('content')" @scroll="onScroll" @mouseenter="moveBar" v-bind="ptm('content')">
4
+ <div ref="content" :id="contentId" :class="cx('content')" @scroll="onScroll" @mouseenter="moveBar" v-bind="ptm('content')">
5
5
  <slot></slot>
6
6
  </div>
7
7
  </div>
@@ -11,6 +11,7 @@
11
11
  tabindex="0"
12
12
  role="scrollbar"
13
13
  aria-orientation="horizontal"
14
+ :aria-controls="contentId"
14
15
  :aria-valuenow="lastScrollLeft"
15
16
  @mousedown="onXBarMouseDown"
16
17
  @keydown="onKeyDown($event)"
@@ -26,6 +27,7 @@
26
27
  tabindex="0"
27
28
  role="scrollbar"
28
29
  aria-orientation="vertical"
30
+ :aria-controls="contentId"
29
31
  :aria-valuenow="lastScrollTop"
30
32
  @mousedown="onYBarMouseDown"
31
33
  @keydown="onKeyDown($event)"
@@ -357,6 +359,11 @@ export default {
357
359
  this.documentResizeListener = null;
358
360
  }
359
361
  }
362
+ },
363
+ computed: {
364
+ contentId() {
365
+ return UniqueComponentId() + '_content';
366
+ }
360
367
  }
361
368
  };
362
369
  </script>