primevue 3.46.0 → 3.47.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 (738) hide show
  1. package/README.md +2 -2
  2. package/api/api.cjs.js +6 -6
  3. package/api/api.cjs.min.js +1 -1
  4. package/api/api.esm.js +6 -6
  5. package/api/api.esm.min.js +1 -1
  6. package/api/api.js +6 -6
  7. package/api/api.min.js +1 -1
  8. package/autocomplete/AutoComplete.d.ts +6 -1
  9. package/autocomplete/AutoComplete.vue +24 -15
  10. package/autocomplete/BaseAutoComplete.vue +5 -1
  11. package/autocomplete/autocomplete.cjs.js +29 -18
  12. package/autocomplete/autocomplete.cjs.min.js +1 -1
  13. package/autocomplete/autocomplete.esm.js +29 -18
  14. package/autocomplete/autocomplete.esm.min.js +1 -1
  15. package/autocomplete/autocomplete.js +29 -18
  16. package/autocomplete/autocomplete.min.js +1 -1
  17. package/basecomponent/basecomponent.cjs.js +1 -3
  18. package/basecomponent/basecomponent.cjs.min.js +1 -1
  19. package/basecomponent/basecomponent.esm.js +1 -3
  20. package/basecomponent/basecomponent.esm.min.js +1 -1
  21. package/basecomponent/basecomponent.js +1 -3
  22. package/basecomponent/basecomponent.min.js +1 -1
  23. package/basecomponent/style/basecomponentstyle.cjs.js +1 -3
  24. package/basecomponent/style/basecomponentstyle.cjs.min.js +1 -1
  25. package/basecomponent/style/basecomponentstyle.esm.js +1 -3
  26. package/basecomponent/style/basecomponentstyle.esm.min.js +1 -1
  27. package/basecomponent/style/basecomponentstyle.js +1 -3
  28. package/basecomponent/style/basecomponentstyle.min.js +1 -1
  29. package/basedirective/basedirective.cjs.js +11 -2
  30. package/basedirective/basedirective.cjs.min.js +1 -1
  31. package/basedirective/basedirective.esm.js +11 -2
  32. package/basedirective/basedirective.esm.min.js +1 -1
  33. package/basedirective/basedirective.js +11 -2
  34. package/basedirective/basedirective.min.js +1 -1
  35. package/baseicon/BaseIcon.vue +6 -1
  36. package/baseicon/baseicon.cjs.js +5 -0
  37. package/baseicon/baseicon.cjs.min.js +1 -1
  38. package/baseicon/baseicon.esm.js +6 -1
  39. package/baseicon/baseicon.esm.min.js +1 -1
  40. package/baseicon/baseicon.js +5 -0
  41. package/baseicon/baseicon.min.js +1 -1
  42. package/calendar/Calendar.d.ts +53 -2
  43. package/calendar/Calendar.vue +12 -0
  44. package/calendar/calendar.cjs.js +12 -0
  45. package/calendar/calendar.cjs.min.js +1 -1
  46. package/calendar/calendar.esm.js +12 -0
  47. package/calendar/calendar.esm.min.js +1 -1
  48. package/calendar/calendar.js +12 -0
  49. package/calendar/calendar.min.js +1 -1
  50. package/cascadeselect/BaseCascadeSelect.vue +5 -1
  51. package/cascadeselect/CascadeSelect.d.ts +6 -1
  52. package/cascadeselect/CascadeSelect.vue +56 -35
  53. package/cascadeselect/CascadeSelectSub.vue +9 -2
  54. package/cascadeselect/cascadeselect.cjs.js +99 -52
  55. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  56. package/cascadeselect/cascadeselect.esm.js +99 -52
  57. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  58. package/cascadeselect/cascadeselect.js +99 -52
  59. package/cascadeselect/cascadeselect.min.js +1 -1
  60. package/checkbox/BaseCheckbox.vue +0 -4
  61. package/checkbox/Checkbox.d.ts +17 -34
  62. package/checkbox/Checkbox.vue +24 -35
  63. package/checkbox/checkbox.cjs.js +21 -49
  64. package/checkbox/checkbox.cjs.min.js +1 -1
  65. package/checkbox/checkbox.esm.js +21 -49
  66. package/checkbox/checkbox.esm.min.js +1 -1
  67. package/checkbox/checkbox.js +21 -49
  68. package/checkbox/checkbox.min.js +1 -1
  69. package/checkbox/style/checkboxstyle.cjs.js +5 -11
  70. package/checkbox/style/checkboxstyle.cjs.min.js +1 -1
  71. package/checkbox/style/checkboxstyle.esm.js +5 -11
  72. package/checkbox/style/checkboxstyle.esm.min.js +1 -1
  73. package/checkbox/style/checkboxstyle.js +5 -11
  74. package/checkbox/style/checkboxstyle.min.js +1 -1
  75. package/chips/Chips.vue +2 -1
  76. package/chips/chips.cjs.js +2 -1
  77. package/chips/chips.cjs.min.js +1 -1
  78. package/chips/chips.esm.js +2 -1
  79. package/chips/chips.esm.min.js +1 -1
  80. package/chips/chips.js +2 -1
  81. package/chips/chips.min.js +1 -1
  82. package/column/Column.d.ts +11 -44
  83. package/confirmpopup/ConfirmPopup.vue +1 -1
  84. package/confirmpopup/confirmpopup.cjs.js +1 -1
  85. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  86. package/confirmpopup/confirmpopup.esm.js +1 -1
  87. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  88. package/confirmpopup/confirmpopup.js +1 -1
  89. package/confirmpopup/confirmpopup.min.js +1 -1
  90. package/contextmenu/ContextMenu.vue +8 -8
  91. package/contextmenu/contextmenu.cjs.js +7 -6
  92. package/contextmenu/contextmenu.cjs.min.js +1 -1
  93. package/contextmenu/contextmenu.esm.js +7 -6
  94. package/contextmenu/contextmenu.esm.min.js +1 -1
  95. package/contextmenu/contextmenu.js +7 -6
  96. package/contextmenu/contextmenu.min.js +1 -1
  97. package/core/core.js +918 -628
  98. package/core/core.min.js +63 -55
  99. package/datatable/BaseDataTable.vue +4 -0
  100. package/datatable/BodyCell.vue +11 -1
  101. package/datatable/BodyRow.vue +5 -2
  102. package/datatable/ColumnFilter.vue +5 -2
  103. package/datatable/DataTable.d.ts +5 -0
  104. package/datatable/DataTable.vue +2 -2
  105. package/datatable/HeaderCell.vue +2 -1
  106. package/datatable/HeaderCheckbox.vue +14 -42
  107. package/datatable/RowCheckbox.vue +10 -52
  108. package/datatable/RowRadioButton.vue +11 -32
  109. package/datatable/TableHeader.vue +3 -1
  110. package/datatable/datatable.cjs.js +110 -193
  111. package/datatable/datatable.cjs.min.js +1 -1
  112. package/datatable/datatable.esm.js +109 -194
  113. package/datatable/datatable.esm.min.js +1 -1
  114. package/datatable/datatable.js +110 -195
  115. package/datatable/datatable.min.js +1 -1
  116. package/datatable/style/datatablestyle.cjs.js +23 -72
  117. package/datatable/style/datatablestyle.cjs.min.js +1 -1
  118. package/datatable/style/datatablestyle.esm.js +23 -72
  119. package/datatable/style/datatablestyle.esm.min.js +1 -1
  120. package/datatable/style/datatablestyle.js +23 -72
  121. package/datatable/style/datatablestyle.min.js +1 -1
  122. package/dialog/style/dialogstyle.cjs.js +1 -1
  123. package/dialog/style/dialogstyle.cjs.min.js +1 -1
  124. package/dialog/style/dialogstyle.esm.js +1 -1
  125. package/dialog/style/dialogstyle.esm.min.js +1 -1
  126. package/dialog/style/dialogstyle.js +1 -1
  127. package/dialog/style/dialogstyle.min.js +1 -1
  128. package/dropdown/BaseDropdown.vue +17 -1
  129. package/dropdown/Dropdown.d.ts +37 -1
  130. package/dropdown/Dropdown.vue +68 -40
  131. package/dropdown/dropdown.cjs.js +95 -45
  132. package/dropdown/dropdown.cjs.min.js +1 -1
  133. package/dropdown/dropdown.esm.js +93 -45
  134. package/dropdown/dropdown.esm.min.js +1 -1
  135. package/dropdown/dropdown.js +95 -47
  136. package/dropdown/dropdown.min.js +1 -1
  137. package/dropdown/style/dropdownstyle.cjs.js +7 -2
  138. package/dropdown/style/dropdownstyle.cjs.min.js +1 -1
  139. package/dropdown/style/dropdownstyle.esm.js +7 -2
  140. package/dropdown/style/dropdownstyle.esm.min.js +1 -1
  141. package/dropdown/style/dropdownstyle.js +7 -2
  142. package/dropdown/style/dropdownstyle.min.js +1 -1
  143. package/focustrap/focustrap.cjs.js +15 -2
  144. package/focustrap/focustrap.cjs.min.js +1 -1
  145. package/focustrap/focustrap.esm.js +15 -2
  146. package/focustrap/focustrap.esm.min.js +1 -1
  147. package/focustrap/focustrap.js +15 -2
  148. package/focustrap/focustrap.min.js +1 -1
  149. package/icons/arrowdown/index.cjs.js +3 -9
  150. package/icons/arrowdown/index.cjs.min.js +1 -1
  151. package/icons/arrowdown/index.esm.js +3 -9
  152. package/icons/arrowdown/index.esm.min.js +1 -1
  153. package/icons/arrowdown/index.js +5 -10
  154. package/icons/arrowdown/index.min.js +1 -1
  155. package/icons/arrowdown/index.vue +1 -7
  156. package/icons/arrowup/index.cjs.js +3 -9
  157. package/icons/arrowup/index.cjs.min.js +1 -1
  158. package/icons/arrowup/index.esm.js +3 -9
  159. package/icons/arrowup/index.esm.min.js +1 -1
  160. package/icons/arrowup/index.js +5 -10
  161. package/icons/arrowup/index.min.js +1 -1
  162. package/icons/arrowup/index.vue +1 -7
  163. package/icons/ban/index.cjs.js +3 -9
  164. package/icons/ban/index.cjs.min.js +1 -1
  165. package/icons/ban/index.esm.js +3 -9
  166. package/icons/ban/index.esm.min.js +1 -1
  167. package/icons/ban/index.js +5 -10
  168. package/icons/ban/index.min.js +1 -1
  169. package/icons/ban/index.vue +1 -7
  170. package/icons/blank/index.cjs.js +34 -0
  171. package/icons/blank/index.cjs.min.js +1 -0
  172. package/icons/blank/index.d.ts +12 -0
  173. package/icons/blank/index.esm.js +28 -0
  174. package/icons/blank/index.esm.min.js +1 -0
  175. package/icons/blank/index.js +36 -0
  176. package/icons/blank/index.min.js +1 -0
  177. package/icons/blank/index.vue +13 -0
  178. package/icons/blank/package.json +9 -0
  179. package/icons/exclamationtriangle/index.cjs.js +3 -9
  180. package/icons/exclamationtriangle/index.cjs.min.js +1 -1
  181. package/icons/exclamationtriangle/index.esm.js +3 -9
  182. package/icons/exclamationtriangle/index.esm.min.js +1 -1
  183. package/icons/exclamationtriangle/index.js +5 -10
  184. package/icons/exclamationtriangle/index.min.js +1 -1
  185. package/icons/exclamationtriangle/index.vue +1 -7
  186. package/icons/eyeslash/index.cjs.js +3 -9
  187. package/icons/eyeslash/index.cjs.min.js +1 -1
  188. package/icons/eyeslash/index.esm.js +3 -9
  189. package/icons/eyeslash/index.esm.min.js +1 -1
  190. package/icons/eyeslash/index.js +5 -10
  191. package/icons/eyeslash/index.min.js +1 -1
  192. package/icons/eyeslash/index.vue +1 -7
  193. package/icons/filter/index.cjs.js +3 -9
  194. package/icons/filter/index.cjs.min.js +1 -1
  195. package/icons/filter/index.esm.js +3 -9
  196. package/icons/filter/index.esm.min.js +1 -1
  197. package/icons/filter/index.js +5 -10
  198. package/icons/filter/index.min.js +1 -1
  199. package/icons/filter/index.vue +1 -7
  200. package/icons/filterslash/index.cjs.js +3 -9
  201. package/icons/filterslash/index.cjs.min.js +1 -1
  202. package/icons/filterslash/index.esm.js +3 -9
  203. package/icons/filterslash/index.esm.min.js +1 -1
  204. package/icons/filterslash/index.js +5 -10
  205. package/icons/filterslash/index.min.js +1 -1
  206. package/icons/filterslash/index.vue +1 -7
  207. package/icons/infocircle/index.cjs.js +3 -9
  208. package/icons/infocircle/index.cjs.min.js +1 -1
  209. package/icons/infocircle/index.esm.js +3 -9
  210. package/icons/infocircle/index.esm.min.js +1 -1
  211. package/icons/infocircle/index.js +5 -10
  212. package/icons/infocircle/index.min.js +1 -1
  213. package/icons/infocircle/index.vue +1 -7
  214. package/icons/pencil/index.cjs.js +3 -9
  215. package/icons/pencil/index.cjs.min.js +1 -1
  216. package/icons/pencil/index.esm.js +3 -9
  217. package/icons/pencil/index.esm.min.js +1 -1
  218. package/icons/pencil/index.js +5 -10
  219. package/icons/pencil/index.min.js +1 -1
  220. package/icons/pencil/index.vue +1 -7
  221. package/icons/plus/index.cjs.js +3 -9
  222. package/icons/plus/index.cjs.min.js +1 -1
  223. package/icons/plus/index.esm.js +3 -9
  224. package/icons/plus/index.esm.min.js +1 -1
  225. package/icons/plus/index.js +5 -10
  226. package/icons/plus/index.min.js +1 -1
  227. package/icons/plus/index.vue +1 -7
  228. package/icons/refresh/index.cjs.js +3 -9
  229. package/icons/refresh/index.cjs.min.js +1 -1
  230. package/icons/refresh/index.esm.js +3 -9
  231. package/icons/refresh/index.esm.min.js +1 -1
  232. package/icons/refresh/index.js +5 -10
  233. package/icons/refresh/index.min.js +1 -1
  234. package/icons/refresh/index.vue +1 -7
  235. package/icons/search/index.cjs.js +3 -9
  236. package/icons/search/index.cjs.min.js +1 -1
  237. package/icons/search/index.esm.js +3 -9
  238. package/icons/search/index.esm.min.js +1 -1
  239. package/icons/search/index.js +5 -10
  240. package/icons/search/index.min.js +1 -1
  241. package/icons/search/index.vue +1 -7
  242. package/icons/searchminus/index.cjs.js +3 -9
  243. package/icons/searchminus/index.cjs.min.js +1 -1
  244. package/icons/searchminus/index.esm.js +3 -9
  245. package/icons/searchminus/index.esm.min.js +1 -1
  246. package/icons/searchminus/index.js +5 -10
  247. package/icons/searchminus/index.min.js +1 -1
  248. package/icons/searchminus/index.vue +1 -7
  249. package/icons/searchplus/index.cjs.js +3 -9
  250. package/icons/searchplus/index.cjs.min.js +1 -1
  251. package/icons/searchplus/index.esm.js +3 -9
  252. package/icons/searchplus/index.esm.min.js +1 -1
  253. package/icons/searchplus/index.js +5 -10
  254. package/icons/searchplus/index.min.js +1 -1
  255. package/icons/searchplus/index.vue +1 -7
  256. package/icons/sortalt/index.cjs.js +3 -9
  257. package/icons/sortalt/index.cjs.min.js +1 -1
  258. package/icons/sortalt/index.esm.js +3 -9
  259. package/icons/sortalt/index.esm.min.js +1 -1
  260. package/icons/sortalt/index.js +5 -10
  261. package/icons/sortalt/index.min.js +1 -1
  262. package/icons/sortalt/index.vue +1 -7
  263. package/icons/sortamountdown/index.cjs.js +3 -9
  264. package/icons/sortamountdown/index.cjs.min.js +1 -1
  265. package/icons/sortamountdown/index.esm.js +3 -9
  266. package/icons/sortamountdown/index.esm.min.js +1 -1
  267. package/icons/sortamountdown/index.js +5 -10
  268. package/icons/sortamountdown/index.min.js +1 -1
  269. package/icons/sortamountdown/index.vue +1 -7
  270. package/icons/sortamountupalt/index.cjs.js +3 -9
  271. package/icons/sortamountupalt/index.cjs.min.js +1 -1
  272. package/icons/sortamountupalt/index.esm.js +3 -9
  273. package/icons/sortamountupalt/index.esm.min.js +1 -1
  274. package/icons/sortamountupalt/index.js +5 -10
  275. package/icons/sortamountupalt/index.min.js +1 -1
  276. package/icons/sortamountupalt/index.vue +1 -7
  277. package/icons/spinner/index.cjs.js +3 -9
  278. package/icons/spinner/index.cjs.min.js +1 -1
  279. package/icons/spinner/index.esm.js +3 -9
  280. package/icons/spinner/index.esm.min.js +1 -1
  281. package/icons/spinner/index.js +5 -10
  282. package/icons/spinner/index.min.js +1 -1
  283. package/icons/spinner/index.vue +1 -7
  284. package/icons/star/index.cjs.js +3 -9
  285. package/icons/star/index.cjs.min.js +1 -1
  286. package/icons/star/index.esm.js +3 -9
  287. package/icons/star/index.esm.min.js +1 -1
  288. package/icons/star/index.js +5 -10
  289. package/icons/star/index.min.js +1 -1
  290. package/icons/star/index.vue +1 -7
  291. package/icons/starfill/index.cjs.js +3 -9
  292. package/icons/starfill/index.cjs.min.js +1 -1
  293. package/icons/starfill/index.esm.js +3 -9
  294. package/icons/starfill/index.esm.min.js +1 -1
  295. package/icons/starfill/index.js +5 -10
  296. package/icons/starfill/index.min.js +1 -1
  297. package/icons/starfill/index.vue +1 -7
  298. package/icons/thlarge/index.cjs.js +3 -9
  299. package/icons/thlarge/index.cjs.min.js +1 -1
  300. package/icons/thlarge/index.esm.js +3 -9
  301. package/icons/thlarge/index.esm.min.js +1 -1
  302. package/icons/thlarge/index.js +5 -10
  303. package/icons/thlarge/index.min.js +1 -1
  304. package/icons/thlarge/index.vue +1 -7
  305. package/icons/timescircle/index.cjs.js +3 -9
  306. package/icons/timescircle/index.cjs.min.js +1 -1
  307. package/icons/timescircle/index.esm.js +3 -9
  308. package/icons/timescircle/index.esm.min.js +1 -1
  309. package/icons/timescircle/index.js +5 -10
  310. package/icons/timescircle/index.min.js +1 -1
  311. package/icons/timescircle/index.vue +1 -7
  312. package/icons/trash/index.cjs.js +3 -9
  313. package/icons/trash/index.cjs.min.js +1 -1
  314. package/icons/trash/index.esm.js +3 -9
  315. package/icons/trash/index.esm.min.js +1 -1
  316. package/icons/trash/index.js +5 -10
  317. package/icons/trash/index.min.js +1 -1
  318. package/icons/trash/index.vue +1 -7
  319. package/icons/undo/index.cjs.js +3 -9
  320. package/icons/undo/index.cjs.min.js +1 -1
  321. package/icons/undo/index.esm.js +3 -9
  322. package/icons/undo/index.esm.min.js +1 -1
  323. package/icons/undo/index.js +5 -10
  324. package/icons/undo/index.min.js +1 -1
  325. package/icons/undo/index.vue +1 -7
  326. package/icons/upload/index.cjs.js +3 -9
  327. package/icons/upload/index.cjs.min.js +1 -1
  328. package/icons/upload/index.esm.js +3 -9
  329. package/icons/upload/index.esm.min.js +1 -1
  330. package/icons/upload/index.js +5 -10
  331. package/icons/upload/index.min.js +1 -1
  332. package/icons/upload/index.vue +1 -7
  333. package/icons/windowmaximize/index.cjs.js +3 -9
  334. package/icons/windowmaximize/index.cjs.min.js +1 -1
  335. package/icons/windowmaximize/index.esm.js +3 -9
  336. package/icons/windowmaximize/index.esm.min.js +1 -1
  337. package/icons/windowmaximize/index.js +5 -10
  338. package/icons/windowmaximize/index.min.js +1 -1
  339. package/icons/windowmaximize/index.vue +1 -7
  340. package/icons/windowminimize/index.cjs.js +3 -9
  341. package/icons/windowminimize/index.cjs.min.js +1 -1
  342. package/icons/windowminimize/index.esm.js +3 -9
  343. package/icons/windowminimize/index.esm.min.js +1 -1
  344. package/icons/windowminimize/index.js +5 -10
  345. package/icons/windowminimize/index.min.js +1 -1
  346. package/icons/windowminimize/index.vue +1 -7
  347. package/inputnumber/InputNumber.vue +18 -9
  348. package/inputnumber/inputnumber.cjs.js +14 -6
  349. package/inputnumber/inputnumber.cjs.min.js +1 -1
  350. package/inputnumber/inputnumber.esm.js +15 -7
  351. package/inputnumber/inputnumber.esm.min.js +1 -1
  352. package/inputnumber/inputnumber.js +14 -6
  353. package/inputnumber/inputnumber.min.js +1 -1
  354. package/inputswitch/BaseInputSwitch.vue +8 -4
  355. package/inputswitch/InputSwitch.d.ts +41 -20
  356. package/inputswitch/InputSwitch.vue +31 -33
  357. package/inputswitch/inputswitch.cjs.js +38 -42
  358. package/inputswitch/inputswitch.cjs.min.js +1 -1
  359. package/inputswitch/inputswitch.esm.js +38 -42
  360. package/inputswitch/inputswitch.esm.min.js +1 -1
  361. package/inputswitch/inputswitch.js +38 -42
  362. package/inputswitch/inputswitch.min.js +1 -1
  363. package/inputswitch/style/inputswitchstyle.cjs.js +4 -4
  364. package/inputswitch/style/inputswitchstyle.cjs.min.js +1 -1
  365. package/inputswitch/style/inputswitchstyle.esm.js +4 -4
  366. package/inputswitch/style/inputswitchstyle.esm.min.js +1 -1
  367. package/inputswitch/style/inputswitchstyle.js +4 -4
  368. package/inputswitch/style/inputswitchstyle.min.js +1 -1
  369. package/listbox/BaseListbox.vue +4 -0
  370. package/listbox/Listbox.d.ts +6 -1
  371. package/listbox/Listbox.vue +47 -26
  372. package/listbox/listbox.cjs.js +88 -50
  373. package/listbox/listbox.cjs.min.js +1 -1
  374. package/listbox/listbox.esm.js +88 -50
  375. package/listbox/listbox.esm.min.js +1 -1
  376. package/listbox/listbox.js +88 -50
  377. package/listbox/listbox.min.js +1 -1
  378. package/listbox/style/listboxstyle.cjs.js +2 -3
  379. package/listbox/style/listboxstyle.cjs.min.js +1 -1
  380. package/listbox/style/listboxstyle.esm.js +2 -3
  381. package/listbox/style/listboxstyle.esm.min.js +1 -1
  382. package/listbox/style/listboxstyle.js +2 -3
  383. package/listbox/style/listboxstyle.min.js +1 -1
  384. package/megamenu/MegaMenu.vue +1 -1
  385. package/megamenu/megamenu.cjs.js +2 -1
  386. package/megamenu/megamenu.cjs.min.js +1 -1
  387. package/megamenu/megamenu.esm.js +2 -1
  388. package/megamenu/megamenu.esm.min.js +1 -1
  389. package/megamenu/megamenu.js +2 -1
  390. package/megamenu/megamenu.min.js +1 -1
  391. package/menubar/Menubar.vue +1 -1
  392. package/menubar/menubar.cjs.js +2 -1
  393. package/menubar/menubar.cjs.min.js +1 -1
  394. package/menubar/menubar.esm.js +2 -1
  395. package/menubar/menubar.esm.min.js +1 -1
  396. package/menubar/menubar.js +2 -1
  397. package/menubar/menubar.min.js +1 -1
  398. package/message/Message.d.ts +4 -0
  399. package/message/Message.vue +2 -1
  400. package/message/message.cjs.js +2 -1
  401. package/message/message.cjs.min.js +1 -1
  402. package/message/message.esm.js +2 -1
  403. package/message/message.esm.min.js +1 -1
  404. package/message/message.js +2 -1
  405. package/message/message.min.js +1 -1
  406. package/metergroup/BaseMeterGroup.vue +41 -0
  407. package/metergroup/MeterGroup.d.ts +302 -0
  408. package/metergroup/MeterGroup.vue +73 -0
  409. package/metergroup/MeterGroupLabel.vue +36 -0
  410. package/metergroup/metergroup.cjs.js +218 -0
  411. package/metergroup/metergroup.cjs.min.js +1 -0
  412. package/metergroup/metergroup.esm.js +211 -0
  413. package/metergroup/metergroup.esm.min.js +1 -0
  414. package/metergroup/metergroup.js +218 -0
  415. package/metergroup/metergroup.min.js +1 -0
  416. package/metergroup/package.json +9 -0
  417. package/metergroup/style/MeterGroupStyle.d.ts +3 -0
  418. package/metergroup/style/metergroupstyle.cjs.js +40 -0
  419. package/metergroup/style/metergroupstyle.cjs.min.js +1 -0
  420. package/metergroup/style/metergroupstyle.esm.js +34 -0
  421. package/metergroup/style/metergroupstyle.esm.min.js +1 -0
  422. package/metergroup/style/metergroupstyle.js +43 -0
  423. package/metergroup/style/metergroupstyle.min.js +1 -0
  424. package/metergroup/style/package.json +6 -0
  425. package/multiselect/BaseMultiSelect.vue +9 -1
  426. package/multiselect/MultiSelect.d.ts +13 -19
  427. package/multiselect/MultiSelect.vue +108 -76
  428. package/multiselect/multiselect.cjs.js +173 -133
  429. package/multiselect/multiselect.cjs.min.js +1 -1
  430. package/multiselect/multiselect.esm.js +173 -134
  431. package/multiselect/multiselect.esm.min.js +1 -1
  432. package/multiselect/multiselect.js +174 -135
  433. package/multiselect/multiselect.min.js +1 -1
  434. package/multiselect/style/multiselectstyle.cjs.js +7 -30
  435. package/multiselect/style/multiselectstyle.cjs.min.js +1 -1
  436. package/multiselect/style/multiselectstyle.esm.js +7 -30
  437. package/multiselect/style/multiselectstyle.esm.min.js +1 -1
  438. package/multiselect/style/multiselectstyle.js +7 -30
  439. package/multiselect/style/multiselectstyle.min.js +1 -1
  440. package/orderlist/BaseOrderList.vue +8 -0
  441. package/orderlist/OrderList.d.ts +10 -0
  442. package/orderlist/OrderList.vue +72 -52
  443. package/orderlist/orderlist.cjs.js +79 -56
  444. package/orderlist/orderlist.cjs.min.js +1 -1
  445. package/orderlist/orderlist.esm.js +79 -56
  446. package/orderlist/orderlist.esm.min.js +1 -1
  447. package/orderlist/orderlist.js +79 -56
  448. package/orderlist/orderlist.min.js +1 -1
  449. package/orderlist/style/orderliststyle.cjs.js +1 -1
  450. package/orderlist/style/orderliststyle.cjs.min.js +1 -1
  451. package/orderlist/style/orderliststyle.esm.js +1 -1
  452. package/orderlist/style/orderliststyle.esm.min.js +1 -1
  453. package/orderlist/style/orderliststyle.js +1 -1
  454. package/orderlist/style/orderliststyle.min.js +1 -1
  455. package/overlaypanel/OverlayPanel.d.ts +4 -0
  456. package/overlaypanel/OverlayPanel.vue +1 -1
  457. package/overlaypanel/overlaypanel.cjs.js +1 -1
  458. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  459. package/overlaypanel/overlaypanel.esm.js +1 -1
  460. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  461. package/overlaypanel/overlaypanel.js +1 -1
  462. package/overlaypanel/overlaypanel.min.js +1 -1
  463. package/package.json +1 -1
  464. package/panelmenu/PanelMenuList.vue +1 -1
  465. package/panelmenu/panelmenu.cjs.js +2 -1
  466. package/panelmenu/panelmenu.cjs.min.js +1 -1
  467. package/panelmenu/panelmenu.esm.js +2 -1
  468. package/panelmenu/panelmenu.esm.min.js +1 -1
  469. package/panelmenu/panelmenu.js +2 -1
  470. package/panelmenu/panelmenu.min.js +1 -1
  471. package/picklist/BasePickList.vue +8 -0
  472. package/picklist/PickList.d.ts +10 -0
  473. package/picklist/PickList.vue +72 -37
  474. package/picklist/picklist.cjs.js +81 -46
  475. package/picklist/picklist.cjs.min.js +1 -1
  476. package/picklist/picklist.esm.js +81 -46
  477. package/picklist/picklist.esm.min.js +1 -1
  478. package/picklist/picklist.js +81 -46
  479. package/picklist/picklist.min.js +1 -1
  480. package/progressbar/ProgressBar.vue +1 -1
  481. package/progressbar/progressbar.cjs.js +3 -1
  482. package/progressbar/progressbar.cjs.min.js +1 -1
  483. package/progressbar/progressbar.esm.js +3 -1
  484. package/progressbar/progressbar.esm.min.js +1 -1
  485. package/progressbar/progressbar.js +3 -1
  486. package/progressbar/progressbar.min.js +1 -1
  487. package/radiobutton/BaseRadioButton.vue +9 -4
  488. package/radiobutton/RadioButton.d.ts +48 -22
  489. package/radiobutton/RadioButton.vue +36 -23
  490. package/radiobutton/radiobutton.cjs.js +42 -50
  491. package/radiobutton/radiobutton.cjs.min.js +1 -1
  492. package/radiobutton/radiobutton.esm.js +42 -50
  493. package/radiobutton/radiobutton.esm.min.js +1 -1
  494. package/radiobutton/radiobutton.js +42 -50
  495. package/radiobutton/radiobutton.min.js +1 -1
  496. package/radiobutton/style/radiobuttonstyle.cjs.js +5 -11
  497. package/radiobutton/style/radiobuttonstyle.cjs.min.js +1 -1
  498. package/radiobutton/style/radiobuttonstyle.esm.js +5 -11
  499. package/radiobutton/style/radiobuttonstyle.esm.min.js +1 -1
  500. package/radiobutton/style/radiobuttonstyle.js +5 -11
  501. package/radiobutton/style/radiobuttonstyle.min.js +1 -1
  502. package/resources/themes/arya-blue/theme.css +432 -351
  503. package/resources/themes/arya-green/theme.css +432 -351
  504. package/resources/themes/arya-orange/theme.css +432 -351
  505. package/resources/themes/arya-purple/theme.css +432 -351
  506. package/resources/themes/aura-dark-amber/fonts/Inter-italic.var.woff2 +0 -0
  507. package/resources/themes/aura-dark-amber/fonts/Inter-roman.var.woff2 +0 -0
  508. package/resources/themes/aura-dark-amber/theme.css +7012 -0
  509. package/resources/themes/aura-dark-blue/fonts/Inter-italic.var.woff2 +0 -0
  510. package/resources/themes/aura-dark-blue/fonts/Inter-roman.var.woff2 +0 -0
  511. package/resources/themes/aura-dark-blue/theme.css +7012 -0
  512. package/resources/themes/aura-dark-cyan/fonts/Inter-italic.var.woff2 +0 -0
  513. package/resources/themes/aura-dark-cyan/fonts/Inter-roman.var.woff2 +0 -0
  514. package/resources/themes/aura-dark-cyan/theme.css +7012 -0
  515. package/resources/themes/aura-dark-green/fonts/Inter-italic.var.woff2 +0 -0
  516. package/resources/themes/aura-dark-green/fonts/Inter-roman.var.woff2 +0 -0
  517. package/resources/themes/aura-dark-green/theme.css +7012 -0
  518. package/resources/themes/aura-dark-indigo/fonts/Inter-italic.var.woff2 +0 -0
  519. package/resources/themes/aura-dark-indigo/fonts/Inter-roman.var.woff2 +0 -0
  520. package/resources/themes/aura-dark-indigo/theme.css +7012 -0
  521. package/resources/themes/aura-dark-lime/fonts/Inter-italic.var.woff2 +0 -0
  522. package/resources/themes/aura-dark-lime/fonts/Inter-roman.var.woff2 +0 -0
  523. package/resources/themes/aura-dark-lime/theme.css +7012 -0
  524. package/resources/themes/aura-dark-noir/fonts/Inter-italic.var.woff2 +0 -0
  525. package/resources/themes/aura-dark-noir/fonts/Inter-roman.var.woff2 +0 -0
  526. package/resources/themes/aura-dark-noir/theme.css +7012 -0
  527. package/resources/themes/aura-dark-pink/fonts/Inter-italic.var.woff2 +0 -0
  528. package/resources/themes/aura-dark-pink/fonts/Inter-roman.var.woff2 +0 -0
  529. package/resources/themes/aura-dark-pink/theme.css +7012 -0
  530. package/resources/themes/aura-dark-purple/fonts/Inter-italic.var.woff2 +0 -0
  531. package/resources/themes/aura-dark-purple/fonts/Inter-roman.var.woff2 +0 -0
  532. package/resources/themes/aura-dark-purple/theme.css +7012 -0
  533. package/resources/themes/aura-dark-teal/fonts/Inter-italic.var.woff2 +0 -0
  534. package/resources/themes/aura-dark-teal/fonts/Inter-roman.var.woff2 +0 -0
  535. package/resources/themes/aura-dark-teal/theme.css +7012 -0
  536. package/resources/themes/aura-light-amber/fonts/Inter-italic.var.woff2 +0 -0
  537. package/resources/themes/aura-light-amber/fonts/Inter-roman.var.woff2 +0 -0
  538. package/resources/themes/aura-light-amber/theme.css +7014 -0
  539. package/resources/themes/aura-light-blue/fonts/Inter-italic.var.woff2 +0 -0
  540. package/resources/themes/aura-light-blue/fonts/Inter-roman.var.woff2 +0 -0
  541. package/resources/themes/aura-light-blue/theme.css +7014 -0
  542. package/resources/themes/aura-light-cyan/fonts/Inter-italic.var.woff2 +0 -0
  543. package/resources/themes/aura-light-cyan/fonts/Inter-roman.var.woff2 +0 -0
  544. package/resources/themes/aura-light-cyan/theme.css +7014 -0
  545. package/resources/themes/aura-light-green/fonts/Inter-italic.var.woff2 +0 -0
  546. package/resources/themes/aura-light-green/fonts/Inter-roman.var.woff2 +0 -0
  547. package/resources/themes/aura-light-green/theme.css +7014 -0
  548. package/resources/themes/aura-light-indigo/fonts/Inter-italic.var.woff2 +0 -0
  549. package/resources/themes/aura-light-indigo/fonts/Inter-roman.var.woff2 +0 -0
  550. package/resources/themes/aura-light-indigo/theme.css +7014 -0
  551. package/resources/themes/aura-light-lime/fonts/Inter-italic.var.woff2 +0 -0
  552. package/resources/themes/aura-light-lime/fonts/Inter-roman.var.woff2 +0 -0
  553. package/resources/themes/aura-light-lime/theme.css +7014 -0
  554. package/resources/themes/aura-light-noir/fonts/Inter-italic.var.woff2 +0 -0
  555. package/resources/themes/aura-light-noir/fonts/Inter-roman.var.woff2 +0 -0
  556. package/resources/themes/aura-light-noir/theme.css +7022 -0
  557. package/resources/themes/aura-light-pink/fonts/Inter-italic.var.woff2 +0 -0
  558. package/resources/themes/aura-light-pink/fonts/Inter-roman.var.woff2 +0 -0
  559. package/resources/themes/aura-light-pink/theme.css +7014 -0
  560. package/resources/themes/aura-light-purple/fonts/Inter-italic.var.woff2 +0 -0
  561. package/resources/themes/aura-light-purple/fonts/Inter-roman.var.woff2 +0 -0
  562. package/resources/themes/aura-light-purple/theme.css +7014 -0
  563. package/resources/themes/aura-light-teal/fonts/Inter-italic.var.woff2 +0 -0
  564. package/resources/themes/aura-light-teal/fonts/Inter-roman.var.woff2 +0 -0
  565. package/resources/themes/aura-light-teal/theme.css +7014 -0
  566. package/resources/themes/bootstrap4-dark-blue/theme.css +533 -403
  567. package/resources/themes/bootstrap4-dark-purple/theme.css +533 -403
  568. package/resources/themes/bootstrap4-light-blue/theme.css +533 -403
  569. package/resources/themes/bootstrap4-light-purple/theme.css +533 -403
  570. package/resources/themes/fluent-light/theme.css +431 -350
  571. package/resources/themes/lara-dark-amber/theme.css +534 -404
  572. package/resources/themes/lara-dark-blue/theme.css +534 -404
  573. package/resources/themes/lara-dark-cyan/theme.css +534 -404
  574. package/resources/themes/lara-dark-green/theme.css +534 -404
  575. package/resources/themes/lara-dark-indigo/theme.css +534 -404
  576. package/resources/themes/lara-dark-pink/theme.css +534 -404
  577. package/resources/themes/lara-dark-purple/theme.css +534 -404
  578. package/resources/themes/lara-dark-teal/theme.css +534 -404
  579. package/resources/themes/lara-light-amber/theme.css +535 -405
  580. package/resources/themes/lara-light-blue/theme.css +535 -405
  581. package/resources/themes/lara-light-cyan/theme.css +535 -405
  582. package/resources/themes/lara-light-green/theme.css +535 -405
  583. package/resources/themes/lara-light-indigo/theme.css +535 -405
  584. package/resources/themes/lara-light-pink/theme.css +535 -405
  585. package/resources/themes/lara-light-purple/theme.css +535 -405
  586. package/resources/themes/lara-light-teal/theme.css +535 -405
  587. package/resources/themes/luna-amber/theme.css +432 -351
  588. package/resources/themes/luna-blue/theme.css +432 -351
  589. package/resources/themes/luna-green/theme.css +432 -351
  590. package/resources/themes/luna-pink/theme.css +432 -351
  591. package/resources/themes/md-dark-deeppurple/theme.css +696 -431
  592. package/resources/themes/md-dark-indigo/theme.css +696 -431
  593. package/resources/themes/md-light-deeppurple/theme.css +700 -435
  594. package/resources/themes/md-light-indigo/theme.css +700 -435
  595. package/resources/themes/mdc-dark-deeppurple/theme.css +696 -431
  596. package/resources/themes/mdc-dark-indigo/theme.css +696 -431
  597. package/resources/themes/mdc-light-deeppurple/theme.css +700 -435
  598. package/resources/themes/mdc-light-indigo/theme.css +700 -435
  599. package/resources/themes/mira/theme.css +486 -405
  600. package/resources/themes/nano/theme.css +432 -351
  601. package/resources/themes/nova/theme.css +432 -351
  602. package/resources/themes/nova-accent/theme.css +432 -351
  603. package/resources/themes/nova-alt/theme.css +432 -351
  604. package/resources/themes/nova-vue/theme.css +432 -351
  605. package/resources/themes/rhea/theme.css +432 -351
  606. package/resources/themes/saga-blue/theme.css +432 -351
  607. package/resources/themes/saga-green/theme.css +432 -351
  608. package/resources/themes/saga-orange/theme.css +432 -351
  609. package/resources/themes/saga-purple/theme.css +432 -351
  610. package/resources/themes/soho-dark/theme.css +534 -404
  611. package/resources/themes/soho-light/theme.css +534 -404
  612. package/resources/themes/tailwind-light/theme.css +432 -351
  613. package/resources/themes/vela-blue/theme.css +432 -351
  614. package/resources/themes/vela-green/theme.css +432 -351
  615. package/resources/themes/vela-orange/theme.css +432 -351
  616. package/resources/themes/vela-purple/theme.css +432 -351
  617. package/resources/themes/viva-dark/theme.css +535 -405
  618. package/resources/themes/viva-light/theme.css +535 -405
  619. package/slider/Slider.vue +0 -1
  620. package/slider/slider.cjs.js +0 -1
  621. package/slider/slider.cjs.min.js +1 -1
  622. package/slider/slider.esm.js +0 -1
  623. package/slider/slider.esm.min.js +1 -1
  624. package/slider/slider.js +0 -1
  625. package/slider/slider.min.js +1 -1
  626. package/speeddial/SpeedDial.vue +2 -2
  627. package/speeddial/speeddial.cjs.js +2 -2
  628. package/speeddial/speeddial.cjs.min.js +1 -1
  629. package/speeddial/speeddial.esm.js +2 -2
  630. package/speeddial/speeddial.esm.min.js +1 -1
  631. package/speeddial/speeddial.js +2 -2
  632. package/speeddial/speeddial.min.js +1 -1
  633. package/splitbutton/style/splitbuttonstyle.cjs.js +8 -5
  634. package/splitbutton/style/splitbuttonstyle.cjs.min.js +1 -1
  635. package/splitbutton/style/splitbuttonstyle.esm.js +8 -5
  636. package/splitbutton/style/splitbuttonstyle.esm.min.js +1 -1
  637. package/splitbutton/style/splitbuttonstyle.js +8 -5
  638. package/splitbutton/style/splitbuttonstyle.min.js +1 -1
  639. package/tabview/TabView.vue +2 -3
  640. package/tabview/tabview.cjs.js +3 -3
  641. package/tabview/tabview.cjs.min.js +1 -1
  642. package/tabview/tabview.esm.js +3 -3
  643. package/tabview/tabview.esm.min.js +1 -1
  644. package/tabview/tabview.js +3 -3
  645. package/tabview/tabview.min.js +1 -1
  646. package/tag/Tag.vue +1 -1
  647. package/tag/tag.cjs.js +4 -2
  648. package/tag/tag.cjs.min.js +1 -1
  649. package/tag/tag.esm.js +4 -2
  650. package/tag/tag.esm.min.js +1 -1
  651. package/tag/tag.js +4 -2
  652. package/tag/tag.min.js +1 -1
  653. package/textarea/Textarea.d.ts +2 -2
  654. package/tieredmenu/TieredMenu.vue +1 -1
  655. package/tieredmenu/tieredmenu.cjs.js +2 -1
  656. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  657. package/tieredmenu/tieredmenu.esm.js +2 -1
  658. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  659. package/tieredmenu/tieredmenu.js +2 -1
  660. package/tieredmenu/tieredmenu.min.js +1 -1
  661. package/togglebutton/BaseToggleButton.vue +4 -4
  662. package/togglebutton/ToggleButton.d.ts +17 -24
  663. package/togglebutton/ToggleButton.vue +41 -67
  664. package/togglebutton/style/togglebuttonstyle.cjs.js +15 -8
  665. package/togglebutton/style/togglebuttonstyle.cjs.min.js +1 -1
  666. package/togglebutton/style/togglebuttonstyle.esm.js +15 -8
  667. package/togglebutton/style/togglebuttonstyle.esm.min.js +1 -1
  668. package/togglebutton/style/togglebuttonstyle.js +15 -8
  669. package/togglebutton/style/togglebuttonstyle.min.js +1 -1
  670. package/togglebutton/togglebutton.cjs.js +45 -80
  671. package/togglebutton/togglebutton.cjs.min.js +1 -1
  672. package/togglebutton/togglebutton.esm.js +46 -81
  673. package/togglebutton/togglebutton.esm.min.js +1 -1
  674. package/togglebutton/togglebutton.js +46 -82
  675. package/togglebutton/togglebutton.min.js +1 -1
  676. package/tree/BaseTree.vue +4 -0
  677. package/tree/Tree.d.ts +6 -9
  678. package/tree/Tree.vue +1 -1
  679. package/tree/TreeNode.vue +14 -11
  680. package/tree/style/treestyle.cjs.js +3 -6
  681. package/tree/style/treestyle.cjs.min.js +1 -1
  682. package/tree/style/treestyle.esm.js +3 -6
  683. package/tree/style/treestyle.esm.min.js +1 -1
  684. package/tree/style/treestyle.js +3 -6
  685. package/tree/style/treestyle.min.js +1 -1
  686. package/tree/tree.cjs.js +34 -21
  687. package/tree/tree.cjs.min.js +1 -1
  688. package/tree/tree.esm.js +34 -22
  689. package/tree/tree.esm.min.js +1 -1
  690. package/tree/tree.js +35 -23
  691. package/tree/tree.min.js +1 -1
  692. package/treetable/BodyCell.vue +26 -24
  693. package/treetable/TreeTable.vue +3 -1
  694. package/treetable/TreeTableRow.vue +2 -0
  695. package/treetable/style/treetablestyle.cjs.js +4 -13
  696. package/treetable/style/treetablestyle.cjs.min.js +1 -1
  697. package/treetable/style/treetablestyle.esm.js +4 -13
  698. package/treetable/style/treetablestyle.esm.min.js +1 -1
  699. package/treetable/style/treetablestyle.js +4 -13
  700. package/treetable/style/treetablestyle.min.js +1 -1
  701. package/treetable/treetable.cjs.js +39 -44
  702. package/treetable/treetable.cjs.min.js +1 -1
  703. package/treetable/treetable.esm.js +39 -45
  704. package/treetable/treetable.esm.min.js +1 -1
  705. package/treetable/treetable.js +40 -46
  706. package/treetable/treetable.min.js +1 -1
  707. package/tristatecheckbox/BaseTriStateCheckbox.vue +17 -9
  708. package/tristatecheckbox/TriStateCheckbox.d.ts +34 -23
  709. package/tristatecheckbox/TriStateCheckbox.vue +49 -61
  710. package/tristatecheckbox/style/tristatecheckboxstyle.cjs.js +7 -13
  711. package/tristatecheckbox/style/tristatecheckboxstyle.cjs.min.js +1 -1
  712. package/tristatecheckbox/style/tristatecheckboxstyle.esm.js +7 -13
  713. package/tristatecheckbox/style/tristatecheckboxstyle.esm.min.js +1 -1
  714. package/tristatecheckbox/style/tristatecheckboxstyle.js +7 -13
  715. package/tristatecheckbox/style/tristatecheckboxstyle.min.js +1 -1
  716. package/tristatecheckbox/tristatecheckbox.cjs.js +69 -87
  717. package/tristatecheckbox/tristatecheckbox.cjs.min.js +1 -1
  718. package/tristatecheckbox/tristatecheckbox.esm.js +70 -88
  719. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  720. package/tristatecheckbox/tristatecheckbox.js +69 -87
  721. package/tristatecheckbox/tristatecheckbox.min.js +1 -1
  722. package/utils/utils.cjs.js +14 -6
  723. package/utils/utils.cjs.min.js +1 -1
  724. package/utils/utils.esm.js +14 -6
  725. package/utils/utils.esm.min.js +1 -1
  726. package/utils/utils.js +14 -6
  727. package/utils/utils.min.js +1 -1
  728. package/vetur-attributes.json +24 -0
  729. package/vetur-tags.json +6 -0
  730. package/virtualscroller/BaseVirtualScroller.vue +1 -1
  731. package/virtualscroller/VirtualScroller.vue +58 -50
  732. package/virtualscroller/virtualscroller.cjs.js +90 -77
  733. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  734. package/virtualscroller/virtualscroller.esm.js +90 -77
  735. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  736. package/virtualscroller/virtualscroller.js +90 -77
  737. package/virtualscroller/virtualscroller.min.js +1 -1
  738. package/web-types.json +71 -6
@@ -41,6 +41,14 @@ var script$1 = {
41
41
  type: Boolean,
42
42
  "default": false
43
43
  },
44
+ autoOptionFocus: {
45
+ type: Boolean,
46
+ "default": true
47
+ },
48
+ focusOnHover: {
49
+ type: Boolean,
50
+ "default": true
51
+ },
44
52
  responsive: {
45
53
  type: Boolean,
46
54
  "default": true
@@ -148,7 +156,7 @@ var script = {
148
156
  selection: function selection(newValue) {
149
157
  this.d_selection = newValue;
150
158
  },
151
- breakpoint: function breakpoint(newValue) {
159
+ breakpoint: function breakpoint() {
152
160
  this.destroyMedia();
153
161
  this.initMedia();
154
162
  }
@@ -187,23 +195,24 @@ var script = {
187
195
  return ObjectUtils.findIndexInList(item, this.d_selection[listIndex]) != -1;
188
196
  },
189
197
  onListFocus: function onListFocus(event, listType) {
190
- var selectedFirstItem = DomHandler.findSingle(this.$refs[listType].$el, '[data-p-highlight="true"]') || DomHandler.findSingle(this.$refs[listType].$el, '[data-pc-section="item"]');
191
- if (selectedFirstItem) {
192
- var findIndex = ObjectUtils.findIndexInList(selectedFirstItem, this.$refs[listType].$el.children);
193
- this.focused[listType] = true;
194
- var index = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : selectedFirstItem ? findIndex : -1;
195
- this.changeFocusedOptionIndex(index, listType);
196
- this.$emit('focus', event);
197
- }
198
+ this.focused[listType] = true;
199
+ this.findCurrentFocusedIndex(listType);
200
+ this.$emit('focus', event);
198
201
  },
199
202
  onListBlur: function onListBlur(event, listType) {
200
203
  this.focused[listType] = false;
201
204
  this.focusedOptionIndex = -1;
202
205
  this.$emit('blur', event);
203
206
  },
204
- onOptionMouseDown: function onOptionMouseDown(index, listType) {
207
+ onOptionMouseDown: function onOptionMouseDown(event, index, listType) {
205
208
  this.focused[listType] = true;
206
209
  this.focusedOptionIndex = index;
210
+ event.preventDefault();
211
+ },
212
+ onOptionMouseMove: function onOptionMouseMove(index, listType) {
213
+ if (this.focusOnHover && this.focused[listType]) {
214
+ this.changeFocusedOptionIndex(index, listType);
215
+ }
207
216
  },
208
217
  moveUp: function moveUp(event, listIndex) {
209
218
  if (this.d_selection && this.d_selection[listIndex]) {
@@ -486,7 +495,7 @@ var script = {
486
495
  }
487
496
  },
488
497
  onArrowDownKey: function onArrowDownKey(event, listType) {
489
- var optionIndex = this.findNextOptionIndex(this.focusedOptionIndex, listType);
498
+ var optionIndex = this.focusedOptionIndex !== -1 ? this.findNextOptionIndex(listType) : this.findFirstSelectedOptionIndex(listType);
490
499
  this.changeFocusedOptionIndex(optionIndex, listType);
491
500
  if (event.shiftKey) {
492
501
  this.onEnterKey(event, listType);
@@ -494,7 +503,7 @@ var script = {
494
503
  event.preventDefault();
495
504
  },
496
505
  onArrowUpKey: function onArrowUpKey(event, listType) {
497
- var optionIndex = this.findPrevOptionIndex(this.focusedOptionIndex, listType);
506
+ var optionIndex = this.focusedOptionIndex !== -1 ? this.findPrevOptionIndex(listType) : this.findLastSelectedOptionIndex(listType);
498
507
  this.changeFocusedOptionIndex(optionIndex, listType);
499
508
  if (event.shiftKey) {
500
509
  this.onEnterKey(event, listType);
@@ -502,12 +511,8 @@ var script = {
502
511
  event.preventDefault();
503
512
  },
504
513
  onEnterKey: function onEnterKey(event, listType) {
505
- var items = DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]');
506
- var focusedItem = DomHandler.findSingle(this.$refs[listType].$el, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
507
- var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
508
- return item === focusedItem;
509
- });
510
514
  var listId = listType === 'sourceList' ? 0 : 1;
515
+ var matchedOptionIndex = this.findMatchedOptionIndex(listType);
511
516
  this.onItemClick(event, this.modelValue[listId][matchedOptionIndex], matchedOptionIndex, listId);
512
517
  event.preventDefault();
513
518
  },
@@ -515,12 +520,8 @@ var script = {
515
520
  event.preventDefault();
516
521
  if (event.shiftKey && this.d_selection && this.d_selection.length > 0) {
517
522
  var listId = listType === 'sourceList' ? 0 : 1;
518
- var items = DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]');
519
523
  var selectedItemIndex = ObjectUtils.findIndexInList(this.d_selection[listId][0], _toConsumableArray(this.modelValue[listId]));
520
- var focusedItem = DomHandler.findSingle(this.$refs[listType].$el, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
521
- var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
522
- return item === focusedItem;
523
- });
524
+ var matchedOptionIndex = this.findMatchedOptionIndex(listType);
524
525
  this.d_selection[listId] = _toConsumableArray(this.modelValue[listId]).slice(Math.min(selectedItemIndex, matchedOptionIndex), Math.max(selectedItemIndex, matchedOptionIndex) + 1);
525
526
  this.$emit('update:selection', this.d_selection);
526
527
  this.$emit('selection-change', {
@@ -534,11 +535,7 @@ var script = {
534
535
  onHomeKey: function onHomeKey(event, listType) {
535
536
  if (event.ctrlKey && event.shiftKey) {
536
537
  var listId = listType === 'sourceList' ? 0 : 1;
537
- var items = DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]');
538
- var focusedItem = DomHandler.findSingle(this.$refs[listType].$el, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
539
- var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
540
- return item === focusedItem;
541
- });
538
+ var matchedOptionIndex = this.findMatchedOptionIndex(listType);
542
539
  this.d_selection[listId] = _toConsumableArray(this.modelValue[listId]).slice(0, matchedOptionIndex + 1);
543
540
  this.$emit('update:selection', this.d_selection);
544
541
  this.$emit('selection-change', {
@@ -551,13 +548,10 @@ var script = {
551
548
  event.preventDefault();
552
549
  },
553
550
  onEndKey: function onEndKey(event, listType) {
554
- var items = DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]');
551
+ var items = this.findAllItems(listType);
555
552
  if (event.ctrlKey && event.shiftKey) {
556
553
  var listId = listType === 'sourceList' ? 0 : 1;
557
- var focusedItem = DomHandler.findSingle(this.$refs[listType].$el, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
558
- var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
559
- return item === focusedItem;
560
- });
554
+ var matchedOptionIndex = this.findMatchedOptionIndex(listType);
561
555
  this.d_selection[listId] = _toConsumableArray(this.modelValue[listId]).slice(matchedOptionIndex, items.length);
562
556
  this.$emit('update:selection', this.d_selection);
563
557
  this.$emit('selection-change', {
@@ -569,22 +563,54 @@ var script = {
569
563
  }
570
564
  event.preventDefault();
571
565
  },
572
- findNextOptionIndex: function findNextOptionIndex(index, listType) {
573
- var items = DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]');
574
- var matchedOptionIndex = _toConsumableArray(items).findIndex(function (link) {
575
- return link.id === index;
566
+ findAllItems: function findAllItems(listType) {
567
+ return DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]');
568
+ },
569
+ findFocusedItem: function findFocusedItem(listType) {
570
+ return DomHandler.findSingle(this.$refs[listType].$el, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
571
+ },
572
+ findCurrentFocusedIndex: function findCurrentFocusedIndex(listType) {
573
+ this.focusedOptionIndex = this.findFirstSelectedOptionIndex(listType);
574
+ if (this.autoOptionFocus && this.focusedOptionIndex === -1) {
575
+ this.focusedOptionIndex = this.findFirstFocusedOptionIndex(listType);
576
+ }
577
+ this.scrollInView(this.focusedOptionIndex, listType);
578
+ },
579
+ findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex(listType) {
580
+ var firstFocusableItem = DomHandler.findSingle(this.$refs[listType].$el, '[data-pc-section="item"]');
581
+ return DomHandler.getAttribute(firstFocusableItem, 'id');
582
+ },
583
+ findFirstSelectedOptionIndex: function findFirstSelectedOptionIndex(listType) {
584
+ if (this.hasSelectedOption(listType)) {
585
+ var selectedFirstItem = DomHandler.findSingle(this.$refs[listType].$el, '[data-p-highlight="true"]');
586
+ return DomHandler.getAttribute(selectedFirstItem, 'id');
587
+ }
588
+ return -1;
589
+ },
590
+ findLastSelectedOptionIndex: function findLastSelectedOptionIndex(listType) {
591
+ if (this.hasSelectedOption(listType)) {
592
+ var selectedItems = DomHandler.find(this.$refs[listType].$el, '[data-p-highlight="true"]');
593
+ return ObjectUtils.findIndexInList(selectedItems[selectedItems.length - 1], this.list.children);
594
+ }
595
+ return -1;
596
+ },
597
+ findMatchedOptionIndex: function findMatchedOptionIndex(listType) {
598
+ var id = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.focusedOptionIndex;
599
+ var items = this.findAllItems(listType);
600
+ return _toConsumableArray(items).findIndex(function (link) {
601
+ return link.id === id;
576
602
  });
603
+ },
604
+ findNextOptionIndex: function findNextOptionIndex(listType) {
605
+ var matchedOptionIndex = this.findMatchedOptionIndex(listType);
577
606
  return matchedOptionIndex > -1 ? matchedOptionIndex + 1 : 0;
578
607
  },
579
- findPrevOptionIndex: function findPrevOptionIndex(index, listType) {
580
- var items = DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]');
581
- var matchedOptionIndex = _toConsumableArray(items).findIndex(function (link) {
582
- return link.id === index;
583
- });
608
+ findPrevOptionIndex: function findPrevOptionIndex(listType) {
609
+ var matchedOptionIndex = this.findMatchedOptionIndex(listType);
584
610
  return matchedOptionIndex > -1 ? matchedOptionIndex - 1 : 0;
585
611
  },
586
612
  changeFocusedOptionIndex: function changeFocusedOptionIndex(index, listType) {
587
- var items = DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]');
613
+ var items = this.findAllItems(listType);
588
614
  var order = index >= items.length ? items.length - 1 : index < 0 ? 0 : index;
589
615
  this.focusedOptionIndex = items[order].getAttribute('id');
590
616
  this.scrollInView(items[order].getAttribute('id'), listType);
@@ -665,6 +691,9 @@ var script = {
665
691
  },
666
692
  moveAllDisabled: function moveAllDisabled(list) {
667
693
  return ObjectUtils.isEmpty(this[list]);
694
+ },
695
+ hasSelectedOption: function hasSelectedOption(listType) {
696
+ return listType === 'sourceList' ? ObjectUtils.isNotEmpty(this.d_selection[0]) : ObjectUtils.isNotEmpty(this.d_selection[1]);
668
697
  }
669
698
  },
670
699
  computed: {
@@ -733,8 +762,8 @@ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t =
733
762
  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; }
734
763
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
735
764
  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); }
736
- var _hoisted_1 = ["id", "onClick", "onDblclick", "onMousedown", "aria-selected", "data-p-highlight", "data-p-focused"];
737
- var _hoisted_2 = ["id", "onClick", "onDblclick", "onMousedown", "aria-selected", "data-p-highlight", "data-p-focused"];
765
+ var _hoisted_1 = ["id", "onClick", "onDblclick", "onMousedown", "onMousemove", "aria-selected", "data-p-highlight", "data-p-focused"];
766
+ var _hoisted_2 = ["id", "onClick", "onDblclick", "onMousedown", "onMousemove", "aria-selected", "data-p-highlight", "data-p-focused"];
738
767
  function render(_ctx, _cache, $props, $setup, $data, $options) {
739
768
  var _component_AngleUpIcon = resolveComponent("AngleUpIcon");
740
769
  var _component_PLButton = resolveComponent("PLButton");
@@ -881,7 +910,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
881
910
  return $options.onItemTouchEnd && $options.onItemTouchEnd.apply($options, arguments);
882
911
  }),
883
912
  onMousedown: function onMousedown($event) {
884
- return $options.onOptionMouseDown(i, 'sourceList');
913
+ return $options.onOptionMouseDown($event, i, 'sourceList');
914
+ },
915
+ onMousemove: function onMousemove($event) {
916
+ return $options.onOptionMouseMove(i, 'sourceList');
885
917
  },
886
918
  role: "option",
887
919
  "aria-selected": $options.isSelected(item, 0)
@@ -1031,7 +1063,10 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1031
1063
  return $options.onItemKeyDown($event, 'targetList');
1032
1064
  }),
1033
1065
  onMousedown: function onMousedown($event) {
1034
- return $options.onOptionMouseDown(i, 'targetList');
1066
+ return $options.onOptionMouseDown($event, i, 'targetList');
1067
+ },
1068
+ onMousemove: function onMousemove($event) {
1069
+ return $options.onOptionMouseMove(i, 'targetList');
1035
1070
  },
1036
1071
  onTouchend: _cache[9] || (_cache[9] = function () {
1037
1072
  return $options.onItemTouchEnd && $options.onItemTouchEnd.apply($options, arguments);
@@ -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:!1},responsive:{type:Boolean,default:!0},breakpoint:{type:String,default:"960px"},stripedRows:{type:Boolean,default:!1},showSourceControls:{type:Boolean,default:!0},showTargetControls:{type:Boolean,default:!0},targetListProps:{type:null,default:null},sourceListProps:{type:null,default:null},moveUpButtonProps:{type:null,default:null},moveTopButtonProps:{type:null,default:null},moveDownButtonProps:{type:null,default:null},moveBottomButtonProps:{type:null,default:null},moveToTargetProps:{type:null,default:null},moveAllToTargetProps:{type:null,default:null},moveToSourceProps:{type:null,default:null},moveAllToSourceProps:{type:null,default:null},tabindex:{type:Number,default:0}},style:h,provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","reorder","update:selection","selection-change","move-to-target","move-to-source","move-all-to-target","move-all-to-source","focus","blur"],itemTouched:!1,reorderDirection:null,styleElement:null,media:null,mediaChangeListener:null,data:function(){return{id:this.$attrs.id,d_selection:this.selection,focused:{sourceList:!1,targetList:!1},focusedOptionIndex:-1,viewChanged:!1}},watch:{"$attrs.id":function(e){this.id=e||u()},selection:function(e){this.d_selection=e},breakpoint:function(e){this.destroyMedia(),this.initMedia()}},updated:function(){this.reorderDirection&&(this.updateListScroll(this.$refs.sourceList.$el),this.updateListScroll(this.$refs.targetList.$el),this.reorderDirection=null)},beforeUnmount:function(){this.destroyStyle(),this.destroyMedia()},mounted:function(){this.id=this.id||u(),this.responsive&&(this.createStyle(),this.initMedia())},methods:{getItemKey:function(e,t){return this.dataKey?d.resolveFieldData(e,this.dataKey):t},getPTOptions:function(e,t,o,n){return this.ptm(t,{context:{active:this.isSelected(e,n),focused:o===this.focusedOptionId}})},isSelected:function(e,t){return-1!=d.findIndexInList(e,this.d_selection[t])},onListFocus:function(e,t){var o=m.findSingle(this.$refs[t].$el,'[data-p-highlight="true"]')||m.findSingle(this.$refs[t].$el,'[data-pc-section="item"]');if(o){var n=d.findIndexInList(o,this.$refs[t].$el.children);this.focused[t]=!0,this.changeFocusedOptionIndex(-1!==this.focusedOptionIndex?this.focusedOptionIndex:o?n:-1,t),this.$emit("focus",e)}},onListBlur:function(e,t){this.focused[t]=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onOptionMouseDown:function(e,t){this.focused[t]=!0,this.focusedOptionIndex=e},moveUp:function(e,t){if(this.d_selection&&this.d_selection[t]){for(var o=C(this.modelValue[t]),n=this.d_selection[t],i=0;i<n.length;i++){var r=d.findIndexInList(n[i],o);if(0===r)break;var s=o[r-1];o[r-1]=o[r],o[r]=s}var l=C(this.modelValue);l[t]=o,this.reorderDirection="up",this.$emit("update:modelValue",l),this.$emit("reorder",{originalEvent:e,value:l,direction:this.reorderDirection,listIndex:t})}},moveTop:function(e,t){if(this.d_selection){for(var o=C(this.modelValue[t]),n=this.d_selection[t],i=0;i<n.length;i++){var r=d.findIndexInList(n[i],o);if(0===r)break;var s=o.splice(r,1)[0];o.unshift(s)}var l=C(this.modelValue);l[t]=o,this.reorderDirection="top",this.$emit("update:modelValue",l),this.$emit("reorder",{originalEvent:e,value:l,direction:this.reorderDirection,listIndex:t})}},moveDown:function(e,t){if(this.d_selection){for(var o=C(this.modelValue[t]),n=this.d_selection[t],i=n.length-1;i>=0;i--){var r=d.findIndexInList(n[i],o);if(r===o.length-1)break;var s=o[r+1];o[r+1]=o[r],o[r]=s}var l=C(this.modelValue);l[t]=o,this.reorderDirection="down",this.$emit("update:modelValue",l),this.$emit("reorder",{originalEvent:e,value:l,direction:this.reorderDirection,listIndex:t})}},moveBottom:function(e,t){if(this.d_selection){for(var o=C(this.modelValue[t]),n=this.d_selection[t],i=n.length-1;i>=0;i--){var r=d.findIndexInList(n[i],o);if(r===o.length-1)break;var s=o.splice(r,1)[0];o.push(s)}var l=C(this.modelValue);l[t]=o,this.reorderDirection="bottom",this.$emit("update:modelValue",l),this.$emit("reorder",{originalEvent:e,value:l,direction:this.reorderDirection,listIndex:t})}},moveToTarget:function(e){var t=this.d_selection&&this.d_selection[0]?this.d_selection[0]:null,o=C(this.modelValue[0]),n=C(this.modelValue[1]);if(t){for(var i=0;i<t.length;i++){var r=t[i];-1==d.findIndexInList(r,n)&&n.push(o.splice(d.findIndexInList(r,o),1)[0])}var s=C(this.modelValue);s[0]=o,s[1]=n,this.$emit("update:modelValue",s),this.$emit("move-to-target",{originalEvent:e,items:C(new Set(t))}),this.d_selection[0]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},moveAllToTarget:function(e){if(this.modelValue[0]){var t=C(this.modelValue[0]),o=C(this.modelValue[1]);this.$emit("move-all-to-target",{originalEvent:e,items:t}),o=[].concat(C(o),C(t)),t=[];var n=C(this.modelValue);n[0]=t,n[1]=o,this.$emit("update:modelValue",n),this.d_selection[0]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},moveToSource:function(e){var t=this.d_selection&&this.d_selection[1]?this.d_selection[1]:null,o=C(this.modelValue[0]),n=C(this.modelValue[1]);if(t){for(var i=0;i<t.length;i++){var r=t[i];-1==d.findIndexInList(r,o)&&o.push(n.splice(d.findIndexInList(r,n),1)[0])}var s=C(this.modelValue);s[0]=o,s[1]=n,this.$emit("update:modelValue",s),this.$emit("move-to-source",{originalEvent:e,items:C(new Set(t))}),this.d_selection[1]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},moveAllToSource:function(e){if(this.modelValue[1]){var t=C(this.modelValue[0]),o=C(this.modelValue[1]);this.$emit("move-all-to-source",{originalEvent:e,items:o}),t=[].concat(C(t),C(o)),o=[];var n=C(this.modelValue);n[0]=t,n[1]=o,this.$emit("update:modelValue",n),this.d_selection[1]=[],this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}},onItemClick:function(e,t,o,n){var i=0===n?"sourceList":"targetList";this.itemTouched=!1;var r,s=this.d_selection[n],l=d.findIndexInList(t,s),a=-1!=l,c=!this.itemTouched&&this.metaKeySelection,u=m.find(this.$refs[i].$el,'[data-pc-section="item"]')[o].getAttribute("id");if(this.focusedOptionIndex=u,c){var p=e.metaKey||e.ctrlKey;a&&p?r=s.filter((function(e,t){return t!==l})):(r=p&&s?C(s):[]).push(t)}else a?r=s.filter((function(e,t){return t!==l})):(r=s?C(s):[]).push(t);var h=C(this.d_selection);h[n]=r,this.d_selection=h,this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})},onItemDblClick:function(e,t,o){0===o?this.moveToTarget(e):1===o&&this.moveToSource(e)},onItemTouchEnd:function(){this.itemTouched=!0},onItemKeyDown:function(e,t){switch(e.code){case"ArrowDown":this.onArrowDownKey(e,t);break;case"ArrowUp":this.onArrowUpKey(e,t);break;case"Home":this.onHomeKey(e,t);break;case"End":this.onEndKey(e,t);break;case"Enter":case"NumpadEnter":this.onEnterKey(e,t);break;case"Space":this.onSpaceKey(e,t);break;case"KeyA":e.ctrlKey&&(this.d_selection=C(this.modelValue),this.$emit("update:selection",this.d_selection),e.preventDefault())}},onArrowDownKey:function(e,t){var o=this.findNextOptionIndex(this.focusedOptionIndex,t);this.changeFocusedOptionIndex(o,t),e.shiftKey&&this.onEnterKey(e,t),e.preventDefault()},onArrowUpKey:function(e,t){var o=this.findPrevOptionIndex(this.focusedOptionIndex,t);this.changeFocusedOptionIndex(o,t),e.shiftKey&&this.onEnterKey(e,t),e.preventDefault()},onEnterKey:function(e,t){var o=m.find(this.$refs[t].$el,'[data-pc-section="item"]'),n=m.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),i=C(o).findIndex((function(e){return e===n})),r="sourceList"===t?0:1;this.onItemClick(e,this.modelValue[r][i],i,r),e.preventDefault()},onSpaceKey:function(e,t){if(e.preventDefault(),e.shiftKey&&this.d_selection&&this.d_selection.length>0){var o="sourceList"===t?0:1,n=m.find(this.$refs[t].$el,'[data-pc-section="item"]'),i=d.findIndexInList(this.d_selection[o][0],C(this.modelValue[o])),r=m.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),s=C(n).findIndex((function(e){return e===r}));this.d_selection[o]=C(this.modelValue[o]).slice(Math.min(i,s),Math.max(i,s)+1),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}else this.onEnterKey(e,t)},onHomeKey:function(e,t){if(e.ctrlKey&&e.shiftKey){var o="sourceList"===t?0:1,n=m.find(this.$refs[t].$el,'[data-pc-section="item"]'),i=m.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),r=C(n).findIndex((function(e){return e===i}));this.d_selection[o]=C(this.modelValue[o]).slice(0,r+1),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}else this.changeFocusedOptionIndex(0,t);e.preventDefault()},onEndKey:function(e,t){var o=m.find(this.$refs[t].$el,'[data-pc-section="item"]');if(e.ctrlKey&&e.shiftKey){var n="sourceList"===t?0:1,i=m.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),r=C(o).findIndex((function(e){return e===i}));this.d_selection[n]=C(this.modelValue[n]).slice(r,o.length),this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})}else this.changeFocusedOptionIndex(o.length-1,t);e.preventDefault()},findNextOptionIndex:function(e,t){var o=C(m.find(this.$refs[t].$el,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return o>-1?o+1:0},findPrevOptionIndex:function(e,t){var o=C(m.find(this.$refs[t].$el,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return o>-1?o-1:0},changeFocusedOptionIndex:function(e,t){var o=m.find(this.$refs[t].$el,'[data-pc-section="item"]'),n=e>=o.length?o.length-1:e<0?0:e;this.focusedOptionIndex=o[n].getAttribute("id"),this.scrollInView(o[n].getAttribute("id"),t)},scrollInView:function(e,t){var o=m.findSingle(this.$refs[t].$el,'[data-pc-section="item"][id="'.concat(e,'"]'));o&&o.scrollIntoView&&o.scrollIntoView({block:"nearest",inline:"start"})},updateListScroll:function(e){var t=m.find(e,'[data-pc-section="item"][data-p-highlight="true"]');if(t&&t.length)switch(this.reorderDirection){case"up":m.scrollInView(e,t[0]);break;case"top":e.scrollTop=0;break;case"down":m.scrollInView(e,t[t.length-1]);break;case"bottom":e.scrollTop=e.scrollHeight}},initMedia:function(){this.media=window.matchMedia("(max-width: ".concat(this.breakpoint,")")),this.viewChanged=this.media.matches,this.bindMediaChangeListener()},destroyMedia:function(){this.unbindMediaChangeListener()},bindMediaChangeListener:function(){var e=this;this.media&&!this.mediaChangeListener&&(this.mediaChangeListener=function(t){e.viewChanged=t.matches},this.media.addEventListener("change",this.mediaChangeListener))},unbindMediaChangeListener:function(){this.media&&this.mediaChangeListener&&(this.media.removeEventListener("change",this.mediaChangeListener),this.mediaChangeListener=null)},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.$el.setAttribute(this.attributeSelector,""),this.styleElement=document.createElement("style"),this.styleElement.type="text/css",m.setAttribute(this.styleElement,"nonce",null===(e=this.$primevue)||void 0===e||null===(e=e.config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce),document.head.appendChild(this.styleElement);var t="\n@media screen and (max-width: ".concat(this.breakpoint,") {\n .p-picklist[").concat(this.attributeSelector,"] {\n flex-direction: column;\n }\n\n .p-picklist[").concat(this.attributeSelector,"] .p-picklist-buttons {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-picklist[").concat(this.attributeSelector,"] .p-picklist-buttons .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-picklist[").concat(this.attributeSelector,"] .p-picklist-buttons .p-button:last-child {\n margin-right: 0;\n }\n}\n");this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},moveDisabled:function(e){if(!this.d_selection[e]||!this.d_selection[e].length)return!0},moveAllDisabled:function(e){return d.isEmpty(this[e])}},computed:{idSource:function(){return"".concat(this.id,"_source")},idTarget:function(){return"".concat(this.id,"_target")},focusedOptionId:function(){return-1!==this.focusedOptionIndex?this.focusedOptionIndex:null},sourceList:function(){return this.modelValue&&this.modelValue[0]?this.modelValue[0]:null},targetList:function(){return this.modelValue&&this.modelValue[1]?this.modelValue[1]:null},attributeSelector:function(){return u()},moveUpAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveUp:void 0},moveTopAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveTop:void 0},moveDownAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveDown:void 0},moveBottomAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveBottom:void 0},moveToTargetAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveToTarget:void 0},moveAllToTargetAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveAllToTarget:void 0},moveToSourceAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveToSource:void 0},moveAllToSourceAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveAllToSource:void 0}},components:{PLButton:e,AngleRightIcon:l,AngleLeftIcon:s,AngleDownIcon:r,AngleUpIcon:a,AngleDoubleRightIcon:n,AngleDoubleLeftIcon:o,AngleDoubleDownIcon:t,AngleDoubleUpIcon:i},directives:{ripple:c}};function M(e){return M="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},M(e)}function U(e,t){var o=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),o.push.apply(o,n)}return o}function j(e){for(var t=1;t<arguments.length;t++){var o=null!=arguments[t]?arguments[t]:{};t%2?U(Object(o),!0).forEach((function(t){F(e,t,o[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(o)):U(Object(o)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(o,t))}))}return e}function F(e,t,o){var n;return(t="symbol"==M(n=H(t,"string"))?n:String(n))in e?Object.defineProperty(e,t,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[t]=o,e}function H(e,t){if("object"!=M(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=M(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var N=["id","onClick","onDblclick","onMousedown","aria-selected","data-p-highlight","data-p-focused"],R=["id","onClick","onDblclick","onMousedown","aria-selected","data-p-highlight","data-p-focused"];K.render=function(e,t,o,n,i,r){var s=f("AngleUpIcon"),l=f("PLButton"),a=f("AngleDoubleUpIcon"),c=f("AngleDownIcon"),u=f("AngleDoubleDownIcon"),d=v("ripple");return g(),b("div",y({class:e.cx("root")},e.ptm("root")),[e.showSourceControls?(g(),b("div",y({key:0,class:e.cx("sourceControls")},e.ptm("sourceControls"),{"data-pc-group-section":"controls"}),[$(e.$slots,"sourcecontrolsstart"),I(l,y({"aria-label":r.moveUpAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[0]||(t[0]=function(e){return r.moveUp(e,0)})},e.moveUpButtonProps,{pt:e.ptm("sourceMoveUpButton"),unstyled:e.unstyled,"data-pc-section":"sourcemoveupbutton"}),{icon:L((function(){return[$(e.$slots,"moveupicon",{},(function(){return[I(s,y(e.ptm("sourceMoveUpButton").icon,{"data-pc-section":"moveupicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveTopAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[1]||(t[1]=function(e){return r.moveTop(e,0)})},e.moveTopButtonProps,{pt:e.ptm("sourceMoveTopButton"),unstyled:e.unstyled,"data-pc-section":"sourcemovetopbutton"}),{icon:L((function(){return[$(e.$slots,"movetopicon",{},(function(){return[I(a,y(e.ptm("sourceMoveTopButton").icon,{"data-pc-section":"movetopicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveDownAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[2]||(t[2]=function(e){return r.moveDown(e,0)})},e.moveDownButtonProps,{pt:e.ptm("sourceMoveDownButton"),unstyled:e.unstyled,"data-pc-section":"sourcemovedownbutton"}),{icon:L((function(){return[$(e.$slots,"movedownicon",{},(function(){return[I(c,y(e.ptm("sourceMoveDownButton").icon,{"data-pc-section":"movedownicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveBottomAriaLabel,disabled:r.moveDisabled(0),type:"button",onClick:t[3]||(t[3]=function(e){return r.moveBottom(e,0)})},e.moveBottomButtonProps,{pt:e.ptm("sourceMoveBottomButton"),unstyled:e.unstyled,"data-pc-section":"sourcemovebottombutton"}),{icon:L((function(){return[$(e.$slots,"movebottomicon",{},(function(){return[I(u,y(e.ptm("sourceMoveBottomButton").icon,{"data-pc-section":"movebottomicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),$(e.$slots,"sourcecontrolsend")],16)):w("",!0),T("div",y({class:e.cx("sourceWrapper")},e.ptm("sourceWrapper"),{"data-pc-group-section":"listwrapper"}),[e.$slots.sourceheader?(g(),b("div",y({key:0,class:e.cx("sourceHeader")},e.ptm("sourceHeader"),{"data-pc-group-section":"header"}),[$(e.$slots,"sourceheader")],16)):w("",!0),I(x,y({ref:"sourceList",id:r.idSource+"_list",name:"p-picklist-flip",tag:"ul",class:e.cx("sourceList"),style:e.listStyle,role:"listbox","aria-multiselectable":"true","aria-activedescendant":i.focused.sourceList?r.focusedOptionId:void 0,tabindex:r.sourceList&&r.sourceList.length>0?e.tabindex:-1,onFocus:t[5]||(t[5]=function(e){return r.onListFocus(e,"sourceList")}),onBlur:t[6]||(t[6]=function(e){return r.onListBlur(e,"sourceList")}),onKeydown:t[7]||(t[7]=function(e){return r.onItemKeyDown(e,"sourceList")})},j(j(j({},e.sourceListProps),e.ptm("sourceList")),e.ptm("transition")),{"data-pc-group-section":"list"}),{default:L((function(){return[(g(!0),b(D,null,A(r.sourceList,(function(o,n){return S((g(),b("li",y({key:r.getItemKey(o,n),id:r.idSource+"_"+n,class:e.cx("item",{item:o,id:"".concat(r.idSource,"_").concat(n),listIndex:0}),onClick:function(e){return r.onItemClick(e,o,n,0)},onDblclick:function(e){return r.onItemDblClick(e,o,0)},onTouchend:t[4]||(t[4]=function(){return r.onItemTouchEnd&&r.onItemTouchEnd.apply(r,arguments)}),onMousedown:function(e){return r.onOptionMouseDown(n,"sourceList")},role:"option","aria-selected":r.isSelected(o,0)},r.getPTOptions(o,"item","".concat(r.idSource,"_").concat(n),0),{"data-p-highlight":r.isSelected(o,0),"data-p-focused":"".concat(r.idSource,"_").concat(n)===r.focusedOptionId}),[$(e.$slots,"item",{item:o,index:n})],16,N)),[[d]])})),128))]})),_:3},16,["id","class","style","aria-activedescendant","tabindex"])],16),T("div",y({class:e.cx("buttons")},e.ptm("buttons"),{"data-pc-group-section":"controls"}),[$(e.$slots,"movecontrolsstart"),I(l,y({"aria-label":r.moveToTargetAriaLabel,type:"button",onClick:r.moveToTarget,disabled:r.moveDisabled(0)},e.moveToTargetProps,{pt:e.ptm("moveToTargetButton"),unstyled:e.unstyled,"data-pc-section":"movetotargetbuton"}),{icon:L((function(){return[$(e.$slots,"movetotargeticon",{viewChanged:i.viewChanged},(function(){return[(g(),_(k(i.viewChanged?"AngleDownIcon":"AngleRightIcon"),y(e.ptm("moveToTargetButton").icon,{"data-pc-section":"movetotargeticon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveAllToTargetAriaLabel,type:"button",onClick:r.moveAllToTarget,disabled:r.moveAllDisabled("sourceList")},e.moveAllToTargetProps,{pt:e.ptm("moveAllToTargetButton"),unstyled:e.unstyled,"data-pc-section":"movealltotargetbuton"}),{icon:L((function(){return[$(e.$slots,"movealltotargeticon",{viewChanged:i.viewChanged},(function(){return[(g(),_(k(i.viewChanged?"AngleDoubleDownIcon":"AngleDoubleRightIcon"),y(e.ptm("moveAllToTargetButton").icon,{"data-pc-section":"movealltotargeticon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveToSourceAriaLabel,type:"button",onClick:r.moveToSource,disabled:r.moveDisabled(1)},e.moveToSourceProps,{pt:e.ptm("moveToSourceButton"),unstyled:e.unstyled,"data-pc-section":"movetosourcebuton"}),{icon:L((function(){return[$(e.$slots,"movetosourceicon",{viewChanged:i.viewChanged},(function(){return[(g(),_(k(i.viewChanged?"AngleUpIcon":"AngleLeftIcon"),y(e.ptm("moveToSourceButton").icon,{"data-pc-section":"movetosourceicon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveAllToSourceAriaLabel,type:"button",onClick:r.moveAllToSource,disabled:r.moveAllDisabled("targetList")},e.moveAllToSourceProps,{pt:e.ptm("moveAllToSourceButton"),"data-pc-section":"movealltosourcebuton",unstyled:e.unstyled}),{icon:L((function(){return[$(e.$slots,"movealltosourceicon",{viewChanged:i.viewChanged},(function(){return[(g(),_(k(i.viewChanged?"AngleDoubleUpIcon":"AngleDoubleLeftIcon"),y(e.ptm("moveAllToSourceButton").icon,{"data-pc-section":"movealltosourceicon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),$(e.$slots,"movecontrolsend")],16),T("div",y({class:e.cx("targetWrapper")},e.ptm("targetWrapper"),{"data-pc-group-section":"listwrapper"}),[e.$slots.targetheader?(g(),b("div",y({key:0,class:e.cx("targetHeader")},e.ptm("targetHeader"),{"data-pc-group-section":"header"}),[$(e.$slots,"targetheader")],16)):w("",!0),I(x,y({ref:"targetList",id:r.idTarget+"_list",name:"p-picklist-flip",tag:"ul",class:e.cx("targetList"),style:e.listStyle,role:"listbox","aria-multiselectable":"true","aria-activedescendant":i.focused.targetList?r.focusedOptionId:void 0,tabindex:r.targetList&&r.targetList.length>0?e.tabindex:-1,onFocus:t[10]||(t[10]=function(e){return r.onListFocus(e,"targetList")}),onBlur:t[11]||(t[11]=function(e){return r.onListBlur(e,"targetList")}),onKeydown:t[12]||(t[12]=function(e){return r.onItemKeyDown(e,"targetList")})},j(j(j({},e.targetListProps),e.ptm("targetList")),e.ptm("transition")),{"data-pc-group-section":"list"}),{default:L((function(){return[(g(!0),b(D,null,A(r.targetList,(function(o,n){return S((g(),b("li",y({key:r.getItemKey(o,n),id:r.idTarget+"_"+n,class:e.cx("item",{item:o,id:"".concat(r.idTarget,"_").concat(n),listIndex:1}),onClick:function(e){return r.onItemClick(e,o,n,1)},onDblclick:function(e){return r.onItemDblClick(e,o,1)},onKeydown:t[8]||(t[8]=function(e){return r.onItemKeyDown(e,"targetList")}),onMousedown:function(e){return r.onOptionMouseDown(n,"targetList")},onTouchend:t[9]||(t[9]=function(){return r.onItemTouchEnd&&r.onItemTouchEnd.apply(r,arguments)}),role:"option","aria-selected":r.isSelected(o,1)},r.getPTOptions(o,"item","".concat(r.idTarget,"_").concat(n),1),{"data-p-highlight":r.isSelected(o,1),"data-p-focused":"".concat(r.idTarget,"_").concat(n)===r.focusedOptionId}),[$(e.$slots,"item",{item:o,index:n})],16,R)),[[d]])})),128))]})),_:3},16,["id","class","style","aria-activedescendant","tabindex"])],16),e.showTargetControls?(g(),b("div",y({key:1,class:e.cx("targetControls")},e.ptm("targetControls"),{"data-pc-group-section":"controls"}),[$(e.$slots,"targetcontrolsstart"),I(l,y({"aria-label":r.moveUpAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[13]||(t[13]=function(e){return r.moveUp(e,1)})},e.moveUpButtonProps,{pt:e.ptm("targetMoveUpButton"),unstyled:e.unstyled,"data-pc-section":"targetmoveupbutton"}),{icon:L((function(){return[$(e.$slots,"moveupicon",{},(function(){return[I(s,y(e.ptm("targetMoveUpButton").icon,{"data-pc-section":"moveupicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveTopAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[14]||(t[14]=function(e){return r.moveTop(e,1)})},e.moveTopButtonProps,{pt:e.ptm("targetMoveTopButton"),unstyled:e.unstyled,"data-pc-section":"targetmovetopbutton"}),{icon:L((function(){return[$(e.$slots,"movetopicon",{},(function(){return[I(a,y(e.ptm("targetMoveTopButton").icon,{"data-pc-section":"movetopicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveDownAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[15]||(t[15]=function(e){return r.moveDown(e,1)})},e.moveDownButtonProps,{pt:e.ptm("targetMoveDownButton"),unstyled:e.unstyled,"data-pc-section":"targetmovedownbutton"}),{icon:L((function(){return[$(e.$slots,"movedownicon",{},(function(){return[I(c,y(e.ptm("targetMoveDownButton").icon,{"data-pc-section":"movedownicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),I(l,y({"aria-label":r.moveBottomAriaLabel,disabled:r.moveDisabled(1),type:"button",onClick:t[16]||(t[16]=function(e){return r.moveBottom(e,1)})},e.moveBottomButtonProps,{pt:e.ptm("targetMoveBottomButton"),unstyled:e.unstyled,"data-pc-section":"targetmovebottombutton"}),{icon:L((function(){return[$(e.$slots,"movebottomicon",{},(function(){return[I(u,y(e.ptm("targetMoveBottomButton").icon,{"data-pc-section":"movebottomicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),$(e.$slots,"targetcontrolsend")],16)):w("",!0)],16)};export{K as default};
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 s from"primevue/icons/angledown";import r 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 p}from"primevue/utils";import m 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 I,createVNode as L,withCtx as w,createCommentVNode as $,createElementVNode as T,TransitionGroup as x,Fragment as A,renderList as D,withDirectives as S,createBlock as O,resolveDynamicComponent as _}from"vue";function k(e){return V(e)||M(e)||B(e)||C()}function C(){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 B(e,t){if(e){if("string"==typeof e)return E(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)?E(e,t):void 0}}function M(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function V(e){if(Array.isArray(e))return E(e)}function E(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 P={name:"PickList",extends:{name:"BasePickList",extends:m,props:{modelValue:{type:Array,default:function(){return[[],[]]}},selection:{type:Array,default:function(){return[[],[]]}},dataKey:{type:String,default:null},listStyle:{type:null,default:null},metaKeySelection:{type:Boolean,default:!1},autoOptionFocus:{type:Boolean,default:!0},focusOnHover:{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(){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){this.focused[t]=!0,this.findCurrentFocusedIndex(t),this.$emit("focus",e)},onListBlur:function(e,t){this.focused[t]=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onOptionMouseDown:function(e,t,o){this.focused[o]=!0,this.focusedOptionIndex=t,e.preventDefault()},onOptionMouseMove:function(e,t){this.focusOnHover&&this.focused[t]&&this.changeFocusedOptionIndex(e,t)},moveUp:function(e,t){if(this.d_selection&&this.d_selection[t]){for(var o=k(this.modelValue[t]),n=this.d_selection[t],i=0;i<n.length;i++){var s=d.findIndexInList(n[i],o);if(0===s)break;var r=o[s-1];o[s-1]=o[s],o[s]=r}var l=k(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=k(this.modelValue[t]),n=this.d_selection[t],i=0;i<n.length;i++){var s=d.findIndexInList(n[i],o);if(0===s)break;var r=o.splice(s,1)[0];o.unshift(r)}var l=k(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=k(this.modelValue[t]),n=this.d_selection[t],i=n.length-1;i>=0;i--){var s=d.findIndexInList(n[i],o);if(s===o.length-1)break;var r=o[s+1];o[s+1]=o[s],o[s]=r}var l=k(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=k(this.modelValue[t]),n=this.d_selection[t],i=n.length-1;i>=0;i--){var s=d.findIndexInList(n[i],o);if(s===o.length-1)break;var r=o.splice(s,1)[0];o.push(r)}var l=k(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=k(this.modelValue[0]),n=k(this.modelValue[1]);if(t){for(var i=0;i<t.length;i++){var s=t[i];-1==d.findIndexInList(s,n)&&n.push(o.splice(d.findIndexInList(s,o),1)[0])}var r=k(this.modelValue);r[0]=o,r[1]=n,this.$emit("update:modelValue",r),this.$emit("move-to-target",{originalEvent:e,items:k(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=k(this.modelValue[0]),o=k(this.modelValue[1]);this.$emit("move-all-to-target",{originalEvent:e,items:t}),o=[].concat(k(o),k(t)),t=[];var n=k(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=k(this.modelValue[0]),n=k(this.modelValue[1]);if(t){for(var i=0;i<t.length;i++){var s=t[i];-1==d.findIndexInList(s,o)&&o.push(n.splice(d.findIndexInList(s,n),1)[0])}var r=k(this.modelValue);r[0]=o,r[1]=n,this.$emit("update:modelValue",r),this.$emit("move-to-source",{originalEvent:e,items:k(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=k(this.modelValue[0]),o=k(this.modelValue[1]);this.$emit("move-all-to-source",{originalEvent:e,items:o}),t=[].concat(k(t),k(o)),o=[];var n=k(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 s,r=this.d_selection[n],l=d.findIndexInList(t,r),a=-1!=l,c=!this.itemTouched&&this.metaKeySelection,u=p.find(this.$refs[i].$el,'[data-pc-section="item"]')[o].getAttribute("id");if(this.focusedOptionIndex=u,c){var m=e.metaKey||e.ctrlKey;a&&m?s=r.filter((function(e,t){return t!==l})):(s=m&&r?k(r):[]).push(t)}else a?s=r.filter((function(e,t){return t!==l})):(s=r?k(r):[]).push(t);var h=k(this.d_selection);h[n]=s,this.d_selection=h,this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})},onItemDblClick:function(e,t,o){0===o?this.moveToTarget(e):1===o&&this.moveToSource(e)},onItemTouchEnd:function(){this.itemTouched=!0},onItemKeyDown:function(e,t){switch(e.code){case"ArrowDown":this.onArrowDownKey(e,t);break;case"ArrowUp":this.onArrowUpKey(e,t);break;case"Home":this.onHomeKey(e,t);break;case"End":this.onEndKey(e,t);break;case"Enter":case"NumpadEnter":this.onEnterKey(e,t);break;case"Space":this.onSpaceKey(e,t);break;case"KeyA":e.ctrlKey&&(this.d_selection=k(this.modelValue),this.$emit("update:selection",this.d_selection),e.preventDefault())}},onArrowDownKey:function(e,t){var o=-1!==this.focusedOptionIndex?this.findNextOptionIndex(t):this.findFirstSelectedOptionIndex(t);this.changeFocusedOptionIndex(o,t),e.shiftKey&&this.onEnterKey(e,t),e.preventDefault()},onArrowUpKey:function(e,t){var o=-1!==this.focusedOptionIndex?this.findPrevOptionIndex(t):this.findLastSelectedOptionIndex(t);this.changeFocusedOptionIndex(o,t),e.shiftKey&&this.onEnterKey(e,t),e.preventDefault()},onEnterKey:function(e,t){var o="sourceList"===t?0:1,n=this.findMatchedOptionIndex(t);this.onItemClick(e,this.modelValue[o][n],n,o),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=d.findIndexInList(this.d_selection[o][0],k(this.modelValue[o])),i=this.findMatchedOptionIndex(t);this.d_selection[o]=k(this.modelValue[o]).slice(Math.min(n,i),Math.max(n,i)+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=this.findMatchedOptionIndex(t);this.d_selection[o]=k(this.modelValue[o]).slice(0,n+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=this.findAllItems(t);if(e.ctrlKey&&e.shiftKey){var n="sourceList"===t?0:1,i=this.findMatchedOptionIndex(t);this.d_selection[n]=k(this.modelValue[n]).slice(i,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()},findAllItems:function(e){return p.find(this.$refs[e].$el,'[data-pc-section="item"]')},findFocusedItem:function(e){return p.findSingle(this.$refs[e].$el,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]"))},findCurrentFocusedIndex:function(e){this.focusedOptionIndex=this.findFirstSelectedOptionIndex(e),this.autoOptionFocus&&-1===this.focusedOptionIndex&&(this.focusedOptionIndex=this.findFirstFocusedOptionIndex(e)),this.scrollInView(this.focusedOptionIndex,e)},findFirstFocusedOptionIndex:function(e){var t=p.findSingle(this.$refs[e].$el,'[data-pc-section="item"]');return p.getAttribute(t,"id")},findFirstSelectedOptionIndex:function(e){if(this.hasSelectedOption(e)){var t=p.findSingle(this.$refs[e].$el,'[data-p-highlight="true"]');return p.getAttribute(t,"id")}return-1},findLastSelectedOptionIndex:function(e){if(this.hasSelectedOption(e)){var t=p.find(this.$refs[e].$el,'[data-p-highlight="true"]');return d.findIndexInList(t[t.length-1],this.list.children)}return-1},findMatchedOptionIndex:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.focusedOptionIndex;return k(this.findAllItems(e)).findIndex((function(e){return e.id===t}))},findNextOptionIndex:function(e){var t=this.findMatchedOptionIndex(e);return t>-1?t+1:0},findPrevOptionIndex:function(e){var t=this.findMatchedOptionIndex(e);return t>-1?t-1:0},changeFocusedOptionIndex:function(e,t){var o=this.findAllItems(t),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=p.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=p.find(e,'[data-pc-section="item"][data-p-highlight="true"]');if(t&&t.length)switch(this.reorderDirection){case"up":p.scrollInView(e,t[0]);break;case"top":e.scrollTop=0;break;case"down":p.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",p.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])},hasSelectedOption:function(e){return d.isNotEmpty("sourceList"===e?this.d_selection[0]:this.d_selection[1])}},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:r,AngleDownIcon:s,AngleUpIcon:a,AngleDoubleRightIcon:n,AngleDoubleLeftIcon:o,AngleDoubleDownIcon:t,AngleDoubleUpIcon:i},directives:{ripple:c}};function K(e){return K="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},K(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 F(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){j(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 j(e,t,o){var n;return(t="symbol"==K(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"!=K(e)||!e)return e;var o=e[Symbol.toPrimitive];if(void 0!==o){var n=o.call(e,t||"default");if("object"!=K(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var N=["id","onClick","onDblclick","onMousedown","onMousemove","aria-selected","data-p-highlight","data-p-focused"],R=["id","onClick","onDblclick","onMousedown","onMousemove","aria-selected","data-p-highlight","data-p-focused"];P.render=function(e,t,o,n,i,s){var r=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"}),[I(e.$slots,"sourcecontrolsstart"),L(l,y({"aria-label":s.moveUpAriaLabel,disabled:s.moveDisabled(0),type:"button",onClick:t[0]||(t[0]=function(e){return s.moveUp(e,0)})},e.moveUpButtonProps,{pt:e.ptm("sourceMoveUpButton"),unstyled:e.unstyled,"data-pc-section":"sourcemoveupbutton"}),{icon:w((function(){return[I(e.$slots,"moveupicon",{},(function(){return[L(r,y(e.ptm("sourceMoveUpButton").icon,{"data-pc-section":"moveupicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),L(l,y({"aria-label":s.moveTopAriaLabel,disabled:s.moveDisabled(0),type:"button",onClick:t[1]||(t[1]=function(e){return s.moveTop(e,0)})},e.moveTopButtonProps,{pt:e.ptm("sourceMoveTopButton"),unstyled:e.unstyled,"data-pc-section":"sourcemovetopbutton"}),{icon:w((function(){return[I(e.$slots,"movetopicon",{},(function(){return[L(a,y(e.ptm("sourceMoveTopButton").icon,{"data-pc-section":"movetopicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),L(l,y({"aria-label":s.moveDownAriaLabel,disabled:s.moveDisabled(0),type:"button",onClick:t[2]||(t[2]=function(e){return s.moveDown(e,0)})},e.moveDownButtonProps,{pt:e.ptm("sourceMoveDownButton"),unstyled:e.unstyled,"data-pc-section":"sourcemovedownbutton"}),{icon:w((function(){return[I(e.$slots,"movedownicon",{},(function(){return[L(c,y(e.ptm("sourceMoveDownButton").icon,{"data-pc-section":"movedownicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),L(l,y({"aria-label":s.moveBottomAriaLabel,disabled:s.moveDisabled(0),type:"button",onClick:t[3]||(t[3]=function(e){return s.moveBottom(e,0)})},e.moveBottomButtonProps,{pt:e.ptm("sourceMoveBottomButton"),unstyled:e.unstyled,"data-pc-section":"sourcemovebottombutton"}),{icon:w((function(){return[I(e.$slots,"movebottomicon",{},(function(){return[L(u,y(e.ptm("sourceMoveBottomButton").icon,{"data-pc-section":"movebottomicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),I(e.$slots,"sourcecontrolsend")],16)):$("",!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"}),[I(e.$slots,"sourceheader")],16)):$("",!0),L(x,y({ref:"sourceList",id:s.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?s.focusedOptionId:void 0,tabindex:s.sourceList&&s.sourceList.length>0?e.tabindex:-1,onFocus:t[5]||(t[5]=function(e){return s.onListFocus(e,"sourceList")}),onBlur:t[6]||(t[6]=function(e){return s.onListBlur(e,"sourceList")}),onKeydown:t[7]||(t[7]=function(e){return s.onItemKeyDown(e,"sourceList")})},F(F(F({},e.sourceListProps),e.ptm("sourceList")),e.ptm("transition")),{"data-pc-group-section":"list"}),{default:w((function(){return[(g(!0),b(A,null,D(s.sourceList,(function(o,n){return S((g(),b("li",y({key:s.getItemKey(o,n),id:s.idSource+"_"+n,class:e.cx("item",{item:o,id:"".concat(s.idSource,"_").concat(n),listIndex:0}),onClick:function(e){return s.onItemClick(e,o,n,0)},onDblclick:function(e){return s.onItemDblClick(e,o,0)},onTouchend:t[4]||(t[4]=function(){return s.onItemTouchEnd&&s.onItemTouchEnd.apply(s,arguments)}),onMousedown:function(e){return s.onOptionMouseDown(e,n,"sourceList")},onMousemove:function(e){return s.onOptionMouseMove(n,"sourceList")},role:"option","aria-selected":s.isSelected(o,0)},s.getPTOptions(o,"item","".concat(s.idSource,"_").concat(n),0),{"data-p-highlight":s.isSelected(o,0),"data-p-focused":"".concat(s.idSource,"_").concat(n)===s.focusedOptionId}),[I(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"}),[I(e.$slots,"movecontrolsstart"),L(l,y({"aria-label":s.moveToTargetAriaLabel,type:"button",onClick:s.moveToTarget,disabled:s.moveDisabled(0)},e.moveToTargetProps,{pt:e.ptm("moveToTargetButton"),unstyled:e.unstyled,"data-pc-section":"movetotargetbuton"}),{icon:w((function(){return[I(e.$slots,"movetotargeticon",{viewChanged:i.viewChanged},(function(){return[(g(),O(_(i.viewChanged?"AngleDownIcon":"AngleRightIcon"),y(e.ptm("moveToTargetButton").icon,{"data-pc-section":"movetotargeticon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),L(l,y({"aria-label":s.moveAllToTargetAriaLabel,type:"button",onClick:s.moveAllToTarget,disabled:s.moveAllDisabled("sourceList")},e.moveAllToTargetProps,{pt:e.ptm("moveAllToTargetButton"),unstyled:e.unstyled,"data-pc-section":"movealltotargetbuton"}),{icon:w((function(){return[I(e.$slots,"movealltotargeticon",{viewChanged:i.viewChanged},(function(){return[(g(),O(_(i.viewChanged?"AngleDoubleDownIcon":"AngleDoubleRightIcon"),y(e.ptm("moveAllToTargetButton").icon,{"data-pc-section":"movealltotargeticon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),L(l,y({"aria-label":s.moveToSourceAriaLabel,type:"button",onClick:s.moveToSource,disabled:s.moveDisabled(1)},e.moveToSourceProps,{pt:e.ptm("moveToSourceButton"),unstyled:e.unstyled,"data-pc-section":"movetosourcebuton"}),{icon:w((function(){return[I(e.$slots,"movetosourceicon",{viewChanged:i.viewChanged},(function(){return[(g(),O(_(i.viewChanged?"AngleUpIcon":"AngleLeftIcon"),y(e.ptm("moveToSourceButton").icon,{"data-pc-section":"movetosourceicon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),L(l,y({"aria-label":s.moveAllToSourceAriaLabel,type:"button",onClick:s.moveAllToSource,disabled:s.moveAllDisabled("targetList")},e.moveAllToSourceProps,{pt:e.ptm("moveAllToSourceButton"),"data-pc-section":"movealltosourcebuton",unstyled:e.unstyled}),{icon:w((function(){return[I(e.$slots,"movealltosourceicon",{viewChanged:i.viewChanged},(function(){return[(g(),O(_(i.viewChanged?"AngleDoubleUpIcon":"AngleDoubleLeftIcon"),y(e.ptm("moveAllToSourceButton").icon,{"data-pc-section":"movealltosourceicon"}),null,16))]}))]})),_:3},16,["aria-label","onClick","disabled","pt","unstyled"]),I(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"}),[I(e.$slots,"targetheader")],16)):$("",!0),L(x,y({ref:"targetList",id:s.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?s.focusedOptionId:void 0,tabindex:s.targetList&&s.targetList.length>0?e.tabindex:-1,onFocus:t[10]||(t[10]=function(e){return s.onListFocus(e,"targetList")}),onBlur:t[11]||(t[11]=function(e){return s.onListBlur(e,"targetList")}),onKeydown:t[12]||(t[12]=function(e){return s.onItemKeyDown(e,"targetList")})},F(F(F({},e.targetListProps),e.ptm("targetList")),e.ptm("transition")),{"data-pc-group-section":"list"}),{default:w((function(){return[(g(!0),b(A,null,D(s.targetList,(function(o,n){return S((g(),b("li",y({key:s.getItemKey(o,n),id:s.idTarget+"_"+n,class:e.cx("item",{item:o,id:"".concat(s.idTarget,"_").concat(n),listIndex:1}),onClick:function(e){return s.onItemClick(e,o,n,1)},onDblclick:function(e){return s.onItemDblClick(e,o,1)},onKeydown:t[8]||(t[8]=function(e){return s.onItemKeyDown(e,"targetList")}),onMousedown:function(e){return s.onOptionMouseDown(e,n,"targetList")},onMousemove:function(e){return s.onOptionMouseMove(n,"targetList")},onTouchend:t[9]||(t[9]=function(){return s.onItemTouchEnd&&s.onItemTouchEnd.apply(s,arguments)}),role:"option","aria-selected":s.isSelected(o,1)},s.getPTOptions(o,"item","".concat(s.idTarget,"_").concat(n),1),{"data-p-highlight":s.isSelected(o,1),"data-p-focused":"".concat(s.idTarget,"_").concat(n)===s.focusedOptionId}),[I(e.$slots,"item",{item:o,index:n})],16,R)),[[d]])})),128))]})),_:3},16,["id","class","style","aria-activedescendant","tabindex"])],16),e.showTargetControls?(g(),b("div",y({key:1,class:e.cx("targetControls")},e.ptm("targetControls"),{"data-pc-group-section":"controls"}),[I(e.$slots,"targetcontrolsstart"),L(l,y({"aria-label":s.moveUpAriaLabel,disabled:s.moveDisabled(1),type:"button",onClick:t[13]||(t[13]=function(e){return s.moveUp(e,1)})},e.moveUpButtonProps,{pt:e.ptm("targetMoveUpButton"),unstyled:e.unstyled,"data-pc-section":"targetmoveupbutton"}),{icon:w((function(){return[I(e.$slots,"moveupicon",{},(function(){return[L(r,y(e.ptm("targetMoveUpButton").icon,{"data-pc-section":"moveupicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),L(l,y({"aria-label":s.moveTopAriaLabel,disabled:s.moveDisabled(1),type:"button",onClick:t[14]||(t[14]=function(e){return s.moveTop(e,1)})},e.moveTopButtonProps,{pt:e.ptm("targetMoveTopButton"),unstyled:e.unstyled,"data-pc-section":"targetmovetopbutton"}),{icon:w((function(){return[I(e.$slots,"movetopicon",{},(function(){return[L(a,y(e.ptm("targetMoveTopButton").icon,{"data-pc-section":"movetopicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),L(l,y({"aria-label":s.moveDownAriaLabel,disabled:s.moveDisabled(1),type:"button",onClick:t[15]||(t[15]=function(e){return s.moveDown(e,1)})},e.moveDownButtonProps,{pt:e.ptm("targetMoveDownButton"),unstyled:e.unstyled,"data-pc-section":"targetmovedownbutton"}),{icon:w((function(){return[I(e.$slots,"movedownicon",{},(function(){return[L(c,y(e.ptm("targetMoveDownButton").icon,{"data-pc-section":"movedownicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),L(l,y({"aria-label":s.moveBottomAriaLabel,disabled:s.moveDisabled(1),type:"button",onClick:t[16]||(t[16]=function(e){return s.moveBottom(e,1)})},e.moveBottomButtonProps,{pt:e.ptm("targetMoveBottomButton"),unstyled:e.unstyled,"data-pc-section":"targetmovebottombutton"}),{icon:w((function(){return[I(e.$slots,"movebottomicon",{},(function(){return[L(u,y(e.ptm("targetMoveBottomButton").icon,{"data-pc-section":"movebottomicon"}),null,16)]}))]})),_:3},16,["aria-label","disabled","pt","unstyled"]),I(e.$slots,"targetcontrolsend")],16)):$("",!0)],16)};export{P as default};
@@ -45,6 +45,14 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
45
45
  type: Boolean,
46
46
  "default": false
47
47
  },
48
+ autoOptionFocus: {
49
+ type: Boolean,
50
+ "default": true
51
+ },
52
+ focusOnHover: {
53
+ type: Boolean,
54
+ "default": true
55
+ },
48
56
  responsive: {
49
57
  type: Boolean,
50
58
  "default": true
@@ -152,7 +160,7 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
152
160
  selection: function selection(newValue) {
153
161
  this.d_selection = newValue;
154
162
  },
155
- breakpoint: function breakpoint(newValue) {
163
+ breakpoint: function breakpoint() {
156
164
  this.destroyMedia();
157
165
  this.initMedia();
158
166
  }
@@ -191,23 +199,24 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
191
199
  return utils.ObjectUtils.findIndexInList(item, this.d_selection[listIndex]) != -1;
192
200
  },
193
201
  onListFocus: function onListFocus(event, listType) {
194
- var selectedFirstItem = utils.DomHandler.findSingle(this.$refs[listType].$el, '[data-p-highlight="true"]') || utils.DomHandler.findSingle(this.$refs[listType].$el, '[data-pc-section="item"]');
195
- if (selectedFirstItem) {
196
- var findIndex = utils.ObjectUtils.findIndexInList(selectedFirstItem, this.$refs[listType].$el.children);
197
- this.focused[listType] = true;
198
- var index = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : selectedFirstItem ? findIndex : -1;
199
- this.changeFocusedOptionIndex(index, listType);
200
- this.$emit('focus', event);
201
- }
202
+ this.focused[listType] = true;
203
+ this.findCurrentFocusedIndex(listType);
204
+ this.$emit('focus', event);
202
205
  },
203
206
  onListBlur: function onListBlur(event, listType) {
204
207
  this.focused[listType] = false;
205
208
  this.focusedOptionIndex = -1;
206
209
  this.$emit('blur', event);
207
210
  },
208
- onOptionMouseDown: function onOptionMouseDown(index, listType) {
211
+ onOptionMouseDown: function onOptionMouseDown(event, index, listType) {
209
212
  this.focused[listType] = true;
210
213
  this.focusedOptionIndex = index;
214
+ event.preventDefault();
215
+ },
216
+ onOptionMouseMove: function onOptionMouseMove(index, listType) {
217
+ if (this.focusOnHover && this.focused[listType]) {
218
+ this.changeFocusedOptionIndex(index, listType);
219
+ }
211
220
  },
212
221
  moveUp: function moveUp(event, listIndex) {
213
222
  if (this.d_selection && this.d_selection[listIndex]) {
@@ -490,7 +499,7 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
490
499
  }
491
500
  },
492
501
  onArrowDownKey: function onArrowDownKey(event, listType) {
493
- var optionIndex = this.findNextOptionIndex(this.focusedOptionIndex, listType);
502
+ var optionIndex = this.focusedOptionIndex !== -1 ? this.findNextOptionIndex(listType) : this.findFirstSelectedOptionIndex(listType);
494
503
  this.changeFocusedOptionIndex(optionIndex, listType);
495
504
  if (event.shiftKey) {
496
505
  this.onEnterKey(event, listType);
@@ -498,7 +507,7 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
498
507
  event.preventDefault();
499
508
  },
500
509
  onArrowUpKey: function onArrowUpKey(event, listType) {
501
- var optionIndex = this.findPrevOptionIndex(this.focusedOptionIndex, listType);
510
+ var optionIndex = this.focusedOptionIndex !== -1 ? this.findPrevOptionIndex(listType) : this.findLastSelectedOptionIndex(listType);
502
511
  this.changeFocusedOptionIndex(optionIndex, listType);
503
512
  if (event.shiftKey) {
504
513
  this.onEnterKey(event, listType);
@@ -506,12 +515,8 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
506
515
  event.preventDefault();
507
516
  },
508
517
  onEnterKey: function onEnterKey(event, listType) {
509
- var items = utils.DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]');
510
- var focusedItem = utils.DomHandler.findSingle(this.$refs[listType].$el, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
511
- var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
512
- return item === focusedItem;
513
- });
514
518
  var listId = listType === 'sourceList' ? 0 : 1;
519
+ var matchedOptionIndex = this.findMatchedOptionIndex(listType);
515
520
  this.onItemClick(event, this.modelValue[listId][matchedOptionIndex], matchedOptionIndex, listId);
516
521
  event.preventDefault();
517
522
  },
@@ -519,12 +524,8 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
519
524
  event.preventDefault();
520
525
  if (event.shiftKey && this.d_selection && this.d_selection.length > 0) {
521
526
  var listId = listType === 'sourceList' ? 0 : 1;
522
- var items = utils.DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]');
523
527
  var selectedItemIndex = utils.ObjectUtils.findIndexInList(this.d_selection[listId][0], _toConsumableArray(this.modelValue[listId]));
524
- var focusedItem = utils.DomHandler.findSingle(this.$refs[listType].$el, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
525
- var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
526
- return item === focusedItem;
527
- });
528
+ var matchedOptionIndex = this.findMatchedOptionIndex(listType);
528
529
  this.d_selection[listId] = _toConsumableArray(this.modelValue[listId]).slice(Math.min(selectedItemIndex, matchedOptionIndex), Math.max(selectedItemIndex, matchedOptionIndex) + 1);
529
530
  this.$emit('update:selection', this.d_selection);
530
531
  this.$emit('selection-change', {
@@ -538,11 +539,7 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
538
539
  onHomeKey: function onHomeKey(event, listType) {
539
540
  if (event.ctrlKey && event.shiftKey) {
540
541
  var listId = listType === 'sourceList' ? 0 : 1;
541
- var items = utils.DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]');
542
- var focusedItem = utils.DomHandler.findSingle(this.$refs[listType].$el, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
543
- var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
544
- return item === focusedItem;
545
- });
542
+ var matchedOptionIndex = this.findMatchedOptionIndex(listType);
546
543
  this.d_selection[listId] = _toConsumableArray(this.modelValue[listId]).slice(0, matchedOptionIndex + 1);
547
544
  this.$emit('update:selection', this.d_selection);
548
545
  this.$emit('selection-change', {
@@ -555,13 +552,10 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
555
552
  event.preventDefault();
556
553
  },
557
554
  onEndKey: function onEndKey(event, listType) {
558
- var items = utils.DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]');
555
+ var items = this.findAllItems(listType);
559
556
  if (event.ctrlKey && event.shiftKey) {
560
557
  var listId = listType === 'sourceList' ? 0 : 1;
561
- var focusedItem = utils.DomHandler.findSingle(this.$refs[listType].$el, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
562
- var matchedOptionIndex = _toConsumableArray(items).findIndex(function (item) {
563
- return item === focusedItem;
564
- });
558
+ var matchedOptionIndex = this.findMatchedOptionIndex(listType);
565
559
  this.d_selection[listId] = _toConsumableArray(this.modelValue[listId]).slice(matchedOptionIndex, items.length);
566
560
  this.$emit('update:selection', this.d_selection);
567
561
  this.$emit('selection-change', {
@@ -573,22 +567,54 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
573
567
  }
574
568
  event.preventDefault();
575
569
  },
576
- findNextOptionIndex: function findNextOptionIndex(index, listType) {
577
- var items = utils.DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]');
578
- var matchedOptionIndex = _toConsumableArray(items).findIndex(function (link) {
579
- return link.id === index;
570
+ findAllItems: function findAllItems(listType) {
571
+ return utils.DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]');
572
+ },
573
+ findFocusedItem: function findFocusedItem(listType) {
574
+ return utils.DomHandler.findSingle(this.$refs[listType].$el, "[data-pc-section=\"item\"][id=".concat(this.focusedOptionIndex, "]"));
575
+ },
576
+ findCurrentFocusedIndex: function findCurrentFocusedIndex(listType) {
577
+ this.focusedOptionIndex = this.findFirstSelectedOptionIndex(listType);
578
+ if (this.autoOptionFocus && this.focusedOptionIndex === -1) {
579
+ this.focusedOptionIndex = this.findFirstFocusedOptionIndex(listType);
580
+ }
581
+ this.scrollInView(this.focusedOptionIndex, listType);
582
+ },
583
+ findFirstFocusedOptionIndex: function findFirstFocusedOptionIndex(listType) {
584
+ var firstFocusableItem = utils.DomHandler.findSingle(this.$refs[listType].$el, '[data-pc-section="item"]');
585
+ return utils.DomHandler.getAttribute(firstFocusableItem, 'id');
586
+ },
587
+ findFirstSelectedOptionIndex: function findFirstSelectedOptionIndex(listType) {
588
+ if (this.hasSelectedOption(listType)) {
589
+ var selectedFirstItem = utils.DomHandler.findSingle(this.$refs[listType].$el, '[data-p-highlight="true"]');
590
+ return utils.DomHandler.getAttribute(selectedFirstItem, 'id');
591
+ }
592
+ return -1;
593
+ },
594
+ findLastSelectedOptionIndex: function findLastSelectedOptionIndex(listType) {
595
+ if (this.hasSelectedOption(listType)) {
596
+ var selectedItems = utils.DomHandler.find(this.$refs[listType].$el, '[data-p-highlight="true"]');
597
+ return utils.ObjectUtils.findIndexInList(selectedItems[selectedItems.length - 1], this.list.children);
598
+ }
599
+ return -1;
600
+ },
601
+ findMatchedOptionIndex: function findMatchedOptionIndex(listType) {
602
+ var id = arguments.length > 1 && arguments[1] !== undefined ? arguments[1] : this.focusedOptionIndex;
603
+ var items = this.findAllItems(listType);
604
+ return _toConsumableArray(items).findIndex(function (link) {
605
+ return link.id === id;
580
606
  });
607
+ },
608
+ findNextOptionIndex: function findNextOptionIndex(listType) {
609
+ var matchedOptionIndex = this.findMatchedOptionIndex(listType);
581
610
  return matchedOptionIndex > -1 ? matchedOptionIndex + 1 : 0;
582
611
  },
583
- findPrevOptionIndex: function findPrevOptionIndex(index, listType) {
584
- var items = utils.DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]');
585
- var matchedOptionIndex = _toConsumableArray(items).findIndex(function (link) {
586
- return link.id === index;
587
- });
612
+ findPrevOptionIndex: function findPrevOptionIndex(listType) {
613
+ var matchedOptionIndex = this.findMatchedOptionIndex(listType);
588
614
  return matchedOptionIndex > -1 ? matchedOptionIndex - 1 : 0;
589
615
  },
590
616
  changeFocusedOptionIndex: function changeFocusedOptionIndex(index, listType) {
591
- var items = utils.DomHandler.find(this.$refs[listType].$el, '[data-pc-section="item"]');
617
+ var items = this.findAllItems(listType);
592
618
  var order = index >= items.length ? items.length - 1 : index < 0 ? 0 : index;
593
619
  this.focusedOptionIndex = items[order].getAttribute('id');
594
620
  this.scrollInView(items[order].getAttribute('id'), listType);
@@ -669,6 +695,9 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
669
695
  },
670
696
  moveAllDisabled: function moveAllDisabled(list) {
671
697
  return utils.ObjectUtils.isEmpty(this[list]);
698
+ },
699
+ hasSelectedOption: function hasSelectedOption(listType) {
700
+ return listType === 'sourceList' ? utils.ObjectUtils.isNotEmpty(this.d_selection[0]) : utils.ObjectUtils.isNotEmpty(this.d_selection[1]);
672
701
  }
673
702
  },
674
703
  computed: {
@@ -737,8 +766,8 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
737
766
  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; }
738
767
  function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : String(i); }
739
768
  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); }
740
- var _hoisted_1 = ["id", "onClick", "onDblclick", "onMousedown", "aria-selected", "data-p-highlight", "data-p-focused"];
741
- var _hoisted_2 = ["id", "onClick", "onDblclick", "onMousedown", "aria-selected", "data-p-highlight", "data-p-focused"];
769
+ var _hoisted_1 = ["id", "onClick", "onDblclick", "onMousedown", "onMousemove", "aria-selected", "data-p-highlight", "data-p-focused"];
770
+ var _hoisted_2 = ["id", "onClick", "onDblclick", "onMousedown", "onMousemove", "aria-selected", "data-p-highlight", "data-p-focused"];
742
771
  function render(_ctx, _cache, $props, $setup, $data, $options) {
743
772
  var _component_AngleUpIcon = vue.resolveComponent("AngleUpIcon");
744
773
  var _component_PLButton = vue.resolveComponent("PLButton");
@@ -885,7 +914,10 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
885
914
  return $options.onItemTouchEnd && $options.onItemTouchEnd.apply($options, arguments);
886
915
  }),
887
916
  onMousedown: function onMousedown($event) {
888
- return $options.onOptionMouseDown(i, 'sourceList');
917
+ return $options.onOptionMouseDown($event, i, 'sourceList');
918
+ },
919
+ onMousemove: function onMousemove($event) {
920
+ return $options.onOptionMouseMove(i, 'sourceList');
889
921
  },
890
922
  role: "option",
891
923
  "aria-selected": $options.isSelected(item, 0)
@@ -1035,7 +1067,10 @@ this.primevue.picklist = (function (Button, AngleDoubleDownIcon, AngleDoubleLeft
1035
1067
  return $options.onItemKeyDown($event, 'targetList');
1036
1068
  }),
1037
1069
  onMousedown: function onMousedown($event) {
1038
- return $options.onOptionMouseDown(i, 'targetList');
1070
+ return $options.onOptionMouseDown($event, i, 'targetList');
1071
+ },
1072
+ onMousemove: function onMousemove($event) {
1073
+ return $options.onOptionMouseMove(i, 'targetList');
1039
1074
  },
1040
1075
  onTouchend: _cache[9] || (_cache[9] = function () {
1041
1076
  return $options.onItemTouchEnd && $options.onItemTouchEnd.apply($options, arguments);