primevue 3.12.0 → 3.12.3

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 (573) hide show
  1. package/accordion/Accordion.d.ts +8 -0
  2. package/accordion/Accordion.vue +15 -5
  3. package/accordion/accordion.cjs.js +15 -5
  4. package/accordion/accordion.cjs.min.js +1 -1
  5. package/accordion/accordion.esm.js +16 -6
  6. package/accordion/accordion.esm.min.js +1 -1
  7. package/accordion/accordion.js +16 -6
  8. package/accordion/accordion.min.js +1 -1
  9. package/accordiontab/accordiontab.esm.js +1 -1
  10. package/accordiontab/accordiontab.esm.min.js +1 -1
  11. package/accordiontab/accordiontab.js +1 -1
  12. package/api/api.js +1 -1
  13. package/autocomplete/autocomplete.cjs.js +4 -4
  14. package/autocomplete/autocomplete.esm.js +1 -1
  15. package/autocomplete/autocomplete.esm.min.js +1 -1
  16. package/autocomplete/autocomplete.js +5 -5
  17. package/avatar/avatar.esm.js +1 -1
  18. package/avatar/avatar.esm.min.js +1 -1
  19. package/avatar/avatar.js +1 -1
  20. package/avatargroup/avatargroup.esm.js +1 -1
  21. package/avatargroup/avatargroup.esm.min.js +1 -1
  22. package/avatargroup/avatargroup.js +1 -1
  23. package/badge/badge.esm.js +1 -1
  24. package/badge/badge.esm.min.js +1 -1
  25. package/badge/badge.js +1 -1
  26. package/badgedirective/badgedirective.esm.js +1 -1
  27. package/badgedirective/badgedirective.esm.min.js +1 -1
  28. package/badgedirective/badgedirective.js +1 -1
  29. package/blockui/blockui.esm.js +1 -1
  30. package/blockui/blockui.esm.min.js +1 -1
  31. package/blockui/blockui.js +1 -1
  32. package/breadcrumb/breadcrumb.esm.js +1 -1
  33. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  34. package/breadcrumb/breadcrumb.js +1 -1
  35. package/button/button.cjs.js +1 -1
  36. package/button/button.esm.js +1 -1
  37. package/button/button.esm.min.js +1 -1
  38. package/button/button.js +2 -2
  39. package/calendar/Calendar.d.ts +17 -2
  40. package/calendar/Calendar.vue +10 -3
  41. package/calendar/calendar.cjs.js +13 -6
  42. package/calendar/calendar.cjs.min.js +1 -1
  43. package/calendar/calendar.esm.js +11 -4
  44. package/calendar/calendar.esm.min.js +1 -1
  45. package/calendar/calendar.js +14 -7
  46. package/calendar/calendar.min.js +1 -1
  47. package/card/card.esm.js +1 -1
  48. package/card/card.esm.min.js +1 -1
  49. package/card/card.js +1 -1
  50. package/carousel/carousel.cjs.js +1 -1
  51. package/carousel/carousel.esm.js +1 -1
  52. package/carousel/carousel.esm.min.js +1 -1
  53. package/carousel/carousel.js +2 -2
  54. package/cascadeselect/cascadeselect.cjs.js +2 -2
  55. package/cascadeselect/cascadeselect.esm.js +1 -1
  56. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  57. package/cascadeselect/cascadeselect.js +3 -3
  58. package/chart/chart.cjs.js +4 -2
  59. package/chart/chart.esm.js +1 -1
  60. package/chart/chart.esm.min.js +1 -1
  61. package/chart/chart.js +1 -1
  62. package/checkbox/checkbox.esm.js +1 -1
  63. package/checkbox/checkbox.esm.min.js +1 -1
  64. package/checkbox/checkbox.js +1 -1
  65. package/chip/chip.esm.js +1 -1
  66. package/chip/chip.esm.min.js +1 -1
  67. package/chip/chip.js +1 -1
  68. package/chips/Chips.vue +1 -1
  69. package/chips/chips.cjs.js +1 -1
  70. package/chips/chips.cjs.min.js +1 -1
  71. package/chips/chips.esm.js +2 -2
  72. package/chips/chips.esm.min.js +1 -1
  73. package/chips/chips.js +2 -2
  74. package/chips/chips.min.js +1 -1
  75. package/colorpicker/colorpicker.cjs.js +1 -1
  76. package/colorpicker/colorpicker.esm.js +1 -1
  77. package/colorpicker/colorpicker.esm.min.js +1 -1
  78. package/colorpicker/colorpicker.js +2 -2
  79. package/column/Column.d.ts +15 -3
  80. package/column/column.esm.js +1 -1
  81. package/column/column.esm.min.js +1 -1
  82. package/column/column.js +1 -1
  83. package/columngroup/columngroup.esm.js +1 -1
  84. package/columngroup/columngroup.esm.min.js +1 -1
  85. package/columngroup/columngroup.js +1 -1
  86. package/config/PrimeVue.d.ts +8 -0
  87. package/config/config.cjs.js +1 -1
  88. package/config/config.esm.js +2 -1
  89. package/config/config.esm.min.js +1 -1
  90. package/config/config.js +2 -2
  91. package/confirmationeventbus/confirmationeventbus.esm.js +1 -1
  92. package/confirmationeventbus/confirmationeventbus.esm.min.js +1 -1
  93. package/confirmationeventbus/confirmationeventbus.js +1 -1
  94. package/confirmationservice/ConfirmationService.d.ts +8 -1
  95. package/confirmationservice/confirmationservice.cjs.js +2 -2
  96. package/confirmationservice/confirmationservice.esm.js +1 -1
  97. package/confirmationservice/confirmationservice.esm.min.js +1 -1
  98. package/confirmationservice/confirmationservice.js +3 -3
  99. package/confirmdialog/confirmdialog.cjs.js +6 -6
  100. package/confirmdialog/confirmdialog.esm.js +1 -1
  101. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  102. package/confirmdialog/confirmdialog.js +7 -7
  103. package/confirmpopup/ConfirmPopup.vue +3 -2
  104. package/confirmpopup/confirmpopup.cjs.js +9 -8
  105. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  106. package/confirmpopup/confirmpopup.esm.js +4 -3
  107. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  108. package/confirmpopup/confirmpopup.js +10 -9
  109. package/confirmpopup/confirmpopup.min.js +1 -1
  110. package/contextmenu/contextmenu.cjs.js +1 -1
  111. package/contextmenu/contextmenu.esm.js +1 -1
  112. package/contextmenu/contextmenu.esm.min.js +1 -1
  113. package/contextmenu/contextmenu.js +2 -2
  114. package/core/core.js +91 -60
  115. package/core/core.min.js +5 -5
  116. package/datatable/BodyCell.vue +17 -8
  117. package/datatable/DataTable.d.ts +1 -1
  118. package/datatable/DataTable.vue +17 -14
  119. package/datatable/RowCheckbox.vue +1 -1
  120. package/datatable/TableBody.vue +7 -1
  121. package/datatable/datatable.cjs.js +67 -46
  122. package/datatable/datatable.cjs.min.js +1 -1
  123. package/datatable/datatable.esm.js +56 -35
  124. package/datatable/datatable.esm.min.js +1 -1
  125. package/datatable/datatable.js +68 -47
  126. package/datatable/datatable.min.js +1 -1
  127. package/dataview/DataView.d.ts +5 -1
  128. package/dataview/DataView.vue +8 -1
  129. package/dataview/dataview.cjs.js +12 -3
  130. package/dataview/dataview.cjs.min.js +1 -1
  131. package/dataview/dataview.esm.js +12 -3
  132. package/dataview/dataview.esm.min.js +1 -1
  133. package/dataview/dataview.js +13 -4
  134. package/dataview/dataview.min.js +1 -1
  135. package/dataviewlayoutoptions/dataviewlayoutoptions.esm.js +1 -1
  136. package/dataviewlayoutoptions/dataviewlayoutoptions.esm.min.js +1 -1
  137. package/dataviewlayoutoptions/dataviewlayoutoptions.js +1 -1
  138. package/deferredcontent/DeferredContent.vue +2 -2
  139. package/deferredcontent/deferredcontent.cjs.js +2 -2
  140. package/deferredcontent/deferredcontent.cjs.min.js +1 -1
  141. package/deferredcontent/deferredcontent.esm.js +3 -3
  142. package/deferredcontent/deferredcontent.esm.min.js +1 -1
  143. package/deferredcontent/deferredcontent.js +3 -3
  144. package/deferredcontent/deferredcontent.min.js +1 -1
  145. package/dialog/dialog.cjs.js +1 -1
  146. package/dialog/dialog.esm.js +1 -1
  147. package/dialog/dialog.esm.min.js +1 -1
  148. package/dialog/dialog.js +2 -2
  149. package/divider/divider.esm.js +1 -1
  150. package/divider/divider.esm.min.js +1 -1
  151. package/divider/divider.js +1 -1
  152. package/dock/dock.cjs.js +2 -2
  153. package/dock/dock.esm.js +1 -1
  154. package/dock/dock.esm.min.js +1 -1
  155. package/dock/dock.js +3 -3
  156. package/dropdown/Dropdown.vue +2 -1
  157. package/dropdown/dropdown.cjs.js +12 -13
  158. package/dropdown/dropdown.cjs.min.js +1 -1
  159. package/dropdown/dropdown.esm.js +11 -12
  160. package/dropdown/dropdown.esm.min.js +1 -1
  161. package/dropdown/dropdown.js +13 -14
  162. package/dropdown/dropdown.min.js +1 -1
  163. package/editor/editor.cjs.js +1 -1
  164. package/editor/editor.esm.js +1 -1
  165. package/editor/editor.esm.min.js +1 -1
  166. package/editor/editor.js +2 -2
  167. package/fieldset/fieldset.cjs.js +1 -1
  168. package/fieldset/fieldset.esm.js +1 -1
  169. package/fieldset/fieldset.esm.min.js +1 -1
  170. package/fieldset/fieldset.js +2 -2
  171. package/fileupload/FileUpload.vue +1 -0
  172. package/fileupload/fileupload.cjs.js +5 -4
  173. package/fileupload/fileupload.cjs.min.js +1 -1
  174. package/fileupload/fileupload.esm.js +2 -1
  175. package/fileupload/fileupload.esm.min.js +1 -1
  176. package/fileupload/fileupload.js +6 -5
  177. package/fileupload/fileupload.min.js +1 -1
  178. package/fullcalendar/fullcalendar.esm.js +1 -1
  179. package/fullcalendar/fullcalendar.esm.min.js +1 -1
  180. package/fullcalendar/fullcalendar.js +1 -1
  181. package/galleria/Galleria.vue +2 -8
  182. package/galleria/galleria.cjs.js +5 -11
  183. package/galleria/galleria.cjs.min.js +1 -1
  184. package/galleria/galleria.esm.js +3 -9
  185. package/galleria/galleria.esm.min.js +1 -1
  186. package/galleria/galleria.js +6 -12
  187. package/galleria/galleria.min.js +1 -1
  188. package/image/image.esm.js +1 -1
  189. package/image/image.esm.min.js +1 -1
  190. package/image/image.js +1 -1
  191. package/inlinemessage/inlinemessage.esm.js +1 -1
  192. package/inlinemessage/inlinemessage.esm.min.js +1 -1
  193. package/inlinemessage/inlinemessage.js +1 -1
  194. package/inplace/inplace.cjs.js +1 -1
  195. package/inplace/inplace.esm.js +1 -1
  196. package/inplace/inplace.esm.min.js +1 -1
  197. package/inplace/inplace.js +2 -2
  198. package/inputmask/inputmask.esm.js +1 -1
  199. package/inputmask/inputmask.esm.min.js +1 -1
  200. package/inputmask/inputmask.js +1 -1
  201. package/inputnumber/InputNumber.d.ts +22 -1
  202. package/inputnumber/InputNumber.vue +7 -3
  203. package/inputnumber/inputnumber.cjs.js +8 -4
  204. package/inputnumber/inputnumber.cjs.min.js +1 -1
  205. package/inputnumber/inputnumber.esm.js +7 -3
  206. package/inputnumber/inputnumber.esm.min.js +1 -1
  207. package/inputnumber/inputnumber.js +9 -5
  208. package/inputnumber/inputnumber.min.js +1 -1
  209. package/inputswitch/InputSwitch.d.ts +1 -1
  210. package/inputswitch/inputswitch.esm.js +1 -1
  211. package/inputswitch/inputswitch.esm.min.js +1 -1
  212. package/inputswitch/inputswitch.js +1 -1
  213. package/inputtext/inputtext.esm.js +1 -1
  214. package/inputtext/inputtext.esm.min.js +1 -1
  215. package/inputtext/inputtext.js +1 -1
  216. package/knob/knob.esm.js +1 -1
  217. package/knob/knob.esm.min.js +1 -1
  218. package/knob/knob.js +1 -1
  219. package/listbox/listbox.cjs.js +2 -2
  220. package/listbox/listbox.esm.js +1 -1
  221. package/listbox/listbox.esm.min.js +1 -1
  222. package/listbox/listbox.js +3 -3
  223. package/megamenu/megamenu.cjs.js +1 -1
  224. package/megamenu/megamenu.esm.js +1 -1
  225. package/megamenu/megamenu.esm.min.js +1 -1
  226. package/megamenu/megamenu.js +2 -2
  227. package/menu/Menu.vue +1 -1
  228. package/menu/menu.cjs.js +3 -3
  229. package/menu/menu.cjs.min.js +1 -1
  230. package/menu/menu.esm.js +2 -2
  231. package/menu/menu.esm.min.js +1 -1
  232. package/menu/menu.js +4 -4
  233. package/menu/menu.min.js +1 -1
  234. package/menubar/menubar.cjs.js +1 -1
  235. package/menubar/menubar.esm.js +1 -1
  236. package/menubar/menubar.esm.min.js +1 -1
  237. package/menubar/menubar.js +2 -2
  238. package/message/message.cjs.js +1 -1
  239. package/message/message.esm.js +1 -1
  240. package/message/message.esm.min.js +1 -1
  241. package/message/message.js +2 -2
  242. package/multiselect/MultiSelect.vue +8 -5
  243. package/multiselect/multiselect.cjs.js +11 -8
  244. package/multiselect/multiselect.cjs.min.js +1 -1
  245. package/multiselect/multiselect.esm.js +9 -6
  246. package/multiselect/multiselect.esm.min.js +1 -1
  247. package/multiselect/multiselect.js +12 -9
  248. package/multiselect/multiselect.min.js +1 -1
  249. package/orderlist/OrderList.vue +4 -4
  250. package/orderlist/orderlist.cjs.js +6 -6
  251. package/orderlist/orderlist.cjs.min.js +1 -1
  252. package/orderlist/orderlist.esm.js +5 -5
  253. package/orderlist/orderlist.esm.min.js +1 -1
  254. package/orderlist/orderlist.js +7 -7
  255. package/orderlist/orderlist.min.js +1 -1
  256. package/organizationchart/organizationchart.esm.js +1 -1
  257. package/organizationchart/organizationchart.esm.min.js +1 -1
  258. package/organizationchart/organizationchart.js +1 -1
  259. package/overlayeventbus/overlayeventbus.esm.js +1 -1
  260. package/overlayeventbus/overlayeventbus.esm.min.js +1 -1
  261. package/overlayeventbus/overlayeventbus.js +1 -1
  262. package/overlaypanel/overlaypanel.cjs.js +5 -5
  263. package/overlaypanel/overlaypanel.esm.js +1 -1
  264. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  265. package/overlaypanel/overlaypanel.js +6 -6
  266. package/package.json +1 -1
  267. package/paginator/paginator.cjs.js +8 -8
  268. package/paginator/paginator.esm.js +1 -1
  269. package/paginator/paginator.esm.min.js +1 -1
  270. package/paginator/paginator.js +9 -9
  271. package/panel/panel.cjs.js +1 -1
  272. package/panel/panel.esm.js +1 -1
  273. package/panel/panel.esm.min.js +1 -1
  274. package/panel/panel.js +2 -2
  275. package/panelmenu/PanelMenu.vue +9 -4
  276. package/panelmenu/PanelMenuSub.vue +6 -1
  277. package/panelmenu/panelmenu.cjs.js +16 -4
  278. package/panelmenu/panelmenu.cjs.min.js +1 -1
  279. package/panelmenu/panelmenu.esm.js +17 -5
  280. package/panelmenu/panelmenu.esm.min.js +1 -1
  281. package/panelmenu/panelmenu.js +17 -5
  282. package/panelmenu/panelmenu.min.js +1 -1
  283. package/password/Password.vue +1 -1
  284. package/password/password.cjs.js +3 -3
  285. package/password/password.esm.js +2 -2
  286. package/password/password.esm.min.js +1 -1
  287. package/password/password.js +4 -4
  288. package/picklist/picklist.cjs.js +2 -2
  289. package/picklist/picklist.esm.js +1 -1
  290. package/picklist/picklist.esm.min.js +1 -1
  291. package/picklist/picklist.js +3 -3
  292. package/progressbar/progressbar.esm.js +1 -1
  293. package/progressbar/progressbar.esm.min.js +1 -1
  294. package/progressbar/progressbar.js +1 -1
  295. package/progressspinner/progressspinner.esm.js +1 -1
  296. package/progressspinner/progressspinner.esm.min.js +1 -1
  297. package/progressspinner/progressspinner.js +1 -1
  298. package/radiobutton/radiobutton.esm.js +1 -1
  299. package/radiobutton/radiobutton.esm.min.js +1 -1
  300. package/radiobutton/radiobutton.js +1 -1
  301. package/rating/Rating.vue +1 -1
  302. package/rating/rating.cjs.js +1 -1
  303. package/rating/rating.cjs.min.js +1 -1
  304. package/rating/rating.esm.js +2 -2
  305. package/rating/rating.esm.min.js +1 -1
  306. package/rating/rating.js +2 -2
  307. package/rating/rating.min.js +1 -1
  308. package/resources/primevue.css +5 -3
  309. package/resources/primevue.min.css +1 -1
  310. package/resources/themes/arya-blue/theme.css +263 -1
  311. package/resources/themes/arya-green/theme.css +263 -1
  312. package/resources/themes/arya-orange/theme.css +263 -1
  313. package/resources/themes/arya-purple/theme.css +263 -1
  314. package/resources/themes/bootstrap4-dark-blue/theme.css +263 -1
  315. package/resources/themes/bootstrap4-dark-purple/theme.css +263 -1
  316. package/resources/themes/bootstrap4-light-blue/theme.css +262 -0
  317. package/resources/themes/bootstrap4-light-purple/theme.css +262 -0
  318. package/resources/themes/fluent-light/theme.css +262 -0
  319. package/resources/themes/lara-dark-blue/theme.css +270 -43
  320. package/resources/themes/lara-dark-indigo/theme.css +270 -43
  321. package/resources/themes/lara-dark-purple/theme.css +270 -43
  322. package/resources/themes/lara-dark-teal/theme.css +270 -43
  323. package/resources/themes/lara-light-blue/theme.css +362 -135
  324. package/resources/themes/lara-light-indigo/theme.css +269 -42
  325. package/resources/themes/lara-light-purple/theme.css +269 -42
  326. package/resources/themes/lara-light-teal/theme.css +269 -42
  327. package/resources/themes/luna-amber/theme.css +262 -0
  328. package/resources/themes/luna-blue/theme.css +262 -0
  329. package/resources/themes/luna-green/theme.css +262 -0
  330. package/resources/themes/luna-pink/theme.css +262 -0
  331. package/resources/themes/md-dark-deeppurple/theme.css +353 -8
  332. package/resources/themes/md-dark-indigo/theme.css +353 -8
  333. package/resources/themes/md-light-deeppurple/theme.css +350 -5
  334. package/resources/themes/md-light-indigo/theme.css +350 -5
  335. package/resources/themes/mdc-dark-deeppurple/theme.css +353 -8
  336. package/resources/themes/mdc-dark-indigo/theme.css +353 -8
  337. package/resources/themes/mdc-light-deeppurple/theme.css +350 -5
  338. package/resources/themes/mdc-light-indigo/theme.css +350 -5
  339. package/resources/themes/nova/theme.css +262 -0
  340. package/resources/themes/nova-accent/theme.css +262 -0
  341. package/resources/themes/nova-alt/theme.css +262 -0
  342. package/resources/themes/nova-vue/theme.css +262 -0
  343. package/resources/themes/rhea/theme.css +262 -0
  344. package/resources/themes/saga-blue/theme.css +262 -0
  345. package/resources/themes/saga-green/theme.css +262 -0
  346. package/resources/themes/saga-orange/theme.css +262 -0
  347. package/resources/themes/saga-purple/theme.css +262 -0
  348. package/resources/themes/tailwind-light/theme.css +262 -0
  349. package/resources/themes/vela-blue/theme.css +263 -1
  350. package/resources/themes/vela-green/theme.css +263 -1
  351. package/resources/themes/vela-orange/theme.css +263 -1
  352. package/resources/themes/vela-purple/theme.css +263 -1
  353. package/ripple/ripple.esm.js +1 -1
  354. package/ripple/ripple.esm.min.js +1 -1
  355. package/ripple/ripple.js +1 -1
  356. package/row/row.esm.js +1 -1
  357. package/row/row.esm.min.js +1 -1
  358. package/row/row.js +1 -1
  359. package/scrollpanel/scrollpanel.esm.js +1 -1
  360. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  361. package/scrollpanel/scrollpanel.js +1 -1
  362. package/scrolltop/ScrollTop.vue +1 -1
  363. package/scrolltop/scrolltop.cjs.js +1 -1
  364. package/scrolltop/scrolltop.esm.js +2 -2
  365. package/scrolltop/scrolltop.esm.min.js +1 -1
  366. package/scrolltop/scrolltop.js +2 -2
  367. package/selectbutton/selectbutton.cjs.js +1 -1
  368. package/selectbutton/selectbutton.esm.js +1 -1
  369. package/selectbutton/selectbutton.esm.min.js +1 -1
  370. package/selectbutton/selectbutton.js +2 -2
  371. package/sidebar/sidebar.cjs.js +1 -1
  372. package/sidebar/sidebar.esm.js +1 -1
  373. package/sidebar/sidebar.esm.min.js +1 -1
  374. package/sidebar/sidebar.js +2 -2
  375. package/skeleton/skeleton.esm.js +1 -1
  376. package/skeleton/skeleton.esm.min.js +1 -1
  377. package/skeleton/skeleton.js +1 -1
  378. package/slider/Slider.vue +10 -2
  379. package/slider/slider.cjs.js +9 -1
  380. package/slider/slider.cjs.min.js +1 -1
  381. package/slider/slider.esm.js +10 -2
  382. package/slider/slider.esm.min.js +1 -1
  383. package/slider/slider.js +10 -2
  384. package/slider/slider.min.js +1 -1
  385. package/speeddial/speeddial.cjs.js +3 -3
  386. package/speeddial/speeddial.esm.js +1 -1
  387. package/speeddial/speeddial.esm.min.js +1 -1
  388. package/speeddial/speeddial.js +4 -4
  389. package/splitbutton/SplitButton.vue +6 -2
  390. package/splitbutton/splitbutton.cjs.js +5 -5
  391. package/splitbutton/splitbutton.cjs.min.js +1 -1
  392. package/splitbutton/splitbutton.esm.js +4 -4
  393. package/splitbutton/splitbutton.esm.min.js +1 -1
  394. package/splitbutton/splitbutton.js +6 -6
  395. package/splitbutton/splitbutton.min.js +1 -1
  396. package/splitter/splitter.esm.js +1 -1
  397. package/splitter/splitter.esm.min.js +1 -1
  398. package/splitter/splitter.js +1 -1
  399. package/splitterpanel/splitterpanel.esm.js +1 -1
  400. package/splitterpanel/splitterpanel.esm.min.js +1 -1
  401. package/splitterpanel/splitterpanel.js +1 -1
  402. package/steps/steps.esm.js +1 -1
  403. package/steps/steps.esm.min.js +1 -1
  404. package/steps/steps.js +1 -1
  405. package/styleclass/styleclass.cjs.js +11 -2
  406. package/styleclass/styleclass.cjs.min.js +1 -1
  407. package/styleclass/styleclass.esm.js +12 -3
  408. package/styleclass/styleclass.esm.min.js +1 -1
  409. package/styleclass/styleclass.js +12 -3
  410. package/styleclass/styleclass.min.js +1 -1
  411. package/tabmenu/tabmenu.cjs.js +1 -1
  412. package/tabmenu/tabmenu.esm.js +1 -1
  413. package/tabmenu/tabmenu.esm.min.js +1 -1
  414. package/tabmenu/tabmenu.js +2 -2
  415. package/tabpanel/tabpanel.esm.js +1 -1
  416. package/tabpanel/tabpanel.esm.min.js +1 -1
  417. package/tabpanel/tabpanel.js +1 -1
  418. package/tabview/tabview.cjs.js +1 -1
  419. package/tabview/tabview.esm.js +1 -1
  420. package/tabview/tabview.esm.min.js +1 -1
  421. package/tabview/tabview.js +2 -2
  422. package/tag/tag.esm.js +1 -1
  423. package/tag/tag.esm.min.js +1 -1
  424. package/tag/tag.js +1 -1
  425. package/terminal/terminal.cjs.js +3 -3
  426. package/terminal/terminal.esm.js +1 -1
  427. package/terminal/terminal.esm.min.js +1 -1
  428. package/terminal/terminal.js +4 -4
  429. package/terminalservice/terminalservice.esm.js +1 -1
  430. package/terminalservice/terminalservice.esm.min.js +1 -1
  431. package/terminalservice/terminalservice.js +1 -1
  432. package/textarea/textarea.esm.js +1 -1
  433. package/textarea/textarea.esm.min.js +1 -1
  434. package/textarea/textarea.js +1 -1
  435. package/tieredmenu/TieredMenu.vue +1 -1
  436. package/tieredmenu/tieredmenu.cjs.js +3 -3
  437. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  438. package/tieredmenu/tieredmenu.esm.js +2 -2
  439. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  440. package/tieredmenu/tieredmenu.js +4 -4
  441. package/tieredmenu/tieredmenu.min.js +1 -1
  442. package/timeline/timeline.esm.js +1 -1
  443. package/timeline/timeline.esm.min.js +1 -1
  444. package/timeline/timeline.js +1 -1
  445. package/toast/Toast.d.ts +1 -1
  446. package/toast/toast.cjs.js +7 -7
  447. package/toast/toast.esm.js +1 -1
  448. package/toast/toast.esm.min.js +1 -1
  449. package/toast/toast.js +8 -8
  450. package/toasteventbus/toasteventbus.esm.js +1 -1
  451. package/toasteventbus/toasteventbus.esm.min.js +1 -1
  452. package/toasteventbus/toasteventbus.js +1 -1
  453. package/toastservice/toastservice.cjs.js +3 -3
  454. package/toastservice/toastservice.esm.js +1 -1
  455. package/toastservice/toastservice.esm.min.js +1 -1
  456. package/toastservice/toastservice.js +4 -4
  457. package/togglebutton/togglebutton.cjs.js +1 -1
  458. package/togglebutton/togglebutton.esm.js +1 -1
  459. package/togglebutton/togglebutton.esm.min.js +1 -1
  460. package/togglebutton/togglebutton.js +2 -2
  461. package/toolbar/toolbar.esm.js +1 -1
  462. package/toolbar/toolbar.esm.min.js +1 -1
  463. package/toolbar/toolbar.js +1 -1
  464. package/tooltip/tooltip.cjs.js +29 -1
  465. package/tooltip/tooltip.cjs.min.js +1 -1
  466. package/tooltip/tooltip.esm.js +30 -2
  467. package/tooltip/tooltip.esm.min.js +1 -1
  468. package/tooltip/tooltip.js +30 -2
  469. package/tooltip/tooltip.min.js +1 -1
  470. package/tree/tree.cjs.js +1 -1
  471. package/tree/tree.esm.js +1 -1
  472. package/tree/tree.esm.min.js +1 -1
  473. package/tree/tree.js +2 -2
  474. package/treeselect/treeselect.cjs.js +3 -3
  475. package/treeselect/treeselect.esm.js +1 -1
  476. package/treeselect/treeselect.esm.min.js +1 -1
  477. package/treeselect/treeselect.js +4 -4
  478. package/treetable/treetable.cjs.js +2 -2
  479. package/treetable/treetable.esm.js +1 -1
  480. package/treetable/treetable.esm.min.js +1 -1
  481. package/treetable/treetable.js +3 -3
  482. package/tristatecheckbox/tristatecheckbox.esm.js +1 -1
  483. package/tristatecheckbox/tristatecheckbox.esm.min.js +1 -1
  484. package/tristatecheckbox/tristatecheckbox.js +1 -1
  485. package/useconfirm/useconfirm.js +1 -1
  486. package/usetoast/usetoast.js +1 -1
  487. package/utils/utils.js +1 -1
  488. package/vetur-attributes.json +16 -4
  489. package/vetur-tags.json +6 -3
  490. package/virtualscroller/virtualscroller.esm.js +1 -1
  491. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  492. package/virtualscroller/virtualscroller.js +1 -1
  493. package/web-types.json +87 -6
  494. package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff +0 -0
  495. package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff2 +0 -0
  496. package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff +0 -0
  497. package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff2 +0 -0
  498. package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff +0 -0
  499. package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff2 +0 -0
  500. package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff +0 -0
  501. package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff2 +0 -0
  502. package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff +0 -0
  503. package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff2 +0 -0
  504. package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff +0 -0
  505. package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff2 +0 -0
  506. package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff +0 -0
  507. package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff2 +0 -0
  508. package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff +0 -0
  509. package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff2 +0 -0
  510. package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff +0 -0
  511. package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff2 +0 -0
  512. package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff +0 -0
  513. package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff2 +0 -0
  514. package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff +0 -0
  515. package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff2 +0 -0
  516. package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff +0 -0
  517. package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff2 +0 -0
  518. package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff +0 -0
  519. package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff2 +0 -0
  520. package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff +0 -0
  521. package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff2 +0 -0
  522. package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff +0 -0
  523. package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff2 +0 -0
  524. package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff +0 -0
  525. package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff2 +0 -0
  526. package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff +0 -0
  527. package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff2 +0 -0
  528. package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff +0 -0
  529. package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff2 +0 -0
  530. package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff +0 -0
  531. package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff2 +0 -0
  532. package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff +0 -0
  533. package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff2 +0 -0
  534. package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff +0 -0
  535. package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff2 +0 -0
  536. package/resources/themes/lara-light-blue/fonts/Inter-Light.woff +0 -0
  537. package/resources/themes/lara-light-blue/fonts/Inter-Light.woff2 +0 -0
  538. package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff +0 -0
  539. package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff2 +0 -0
  540. package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff +0 -0
  541. package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff2 +0 -0
  542. package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff +0 -0
  543. package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff2 +0 -0
  544. package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff +0 -0
  545. package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff2 +0 -0
  546. package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff +0 -0
  547. package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff2 +0 -0
  548. package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff +0 -0
  549. package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff2 +0 -0
  550. package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff +0 -0
  551. package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff2 +0 -0
  552. package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff +0 -0
  553. package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff2 +0 -0
  554. package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff +0 -0
  555. package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff2 +0 -0
  556. package/resources/themes/lara-light-purple/fonts/Inter-Light.woff +0 -0
  557. package/resources/themes/lara-light-purple/fonts/Inter-Light.woff2 +0 -0
  558. package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff +0 -0
  559. package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff2 +0 -0
  560. package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff +0 -0
  561. package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff2 +0 -0
  562. package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff +0 -0
  563. package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff2 +0 -0
  564. package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff +0 -0
  565. package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff2 +0 -0
  566. package/resources/themes/lara-light-teal/fonts/Inter-Light.woff +0 -0
  567. package/resources/themes/lara-light-teal/fonts/Inter-Light.woff2 +0 -0
  568. package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff +0 -0
  569. package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff2 +0 -0
  570. package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff +0 -0
  571. package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff2 +0 -0
  572. package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff +0 -0
  573. package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff2 +0 -0
@@ -231,8 +231,7 @@ this.primevue.multiselect = (function (utils, OverlayEventBus, api, Ripple, Virt
231
231
  }
232
232
  break;
233
233
 
234
- //enter and escape
235
- case 13:
234
+ //escape
236
235
  case 27:
237
236
  if (this.overlayVisible) {
238
237
  this.hide();
@@ -453,7 +452,11 @@ this.primevue.multiselect = (function (utils, OverlayEventBus, api, Ripple, Virt
453
452
  else if (this.visibleOptions) {
454
453
  if (this.optionGroupLabel) {
455
454
  value = [];
456
- this.visibleOptions.forEach(optionGroup => value = [...value, ...this.getOptionGroupChildren(optionGroup)]);
455
+ this.visibleOptions.forEach(optionGroup => {
456
+ for (let option of this.getOptionGroupChildren(optionGroup)) {
457
+ value.push(this.getOptionValue(option));
458
+ }
459
+ });
457
460
  }
458
461
  else {
459
462
  value = this.visibleOptions.map(option => this.getOptionValue(option));
@@ -483,14 +486,14 @@ this.primevue.multiselect = (function (utils, OverlayEventBus, api, Ripple, Virt
483
486
  this.$emit('change', {originalEvent: event, value: value});
484
487
  },
485
488
  onOverlayClick(event) {
486
- OverlayEventBus__default["default"].emit('overlay-click', {
489
+ OverlayEventBus__default['default'].emit('overlay-click', {
487
490
  originalEvent: event,
488
491
  target: this.$el
489
492
  });
490
493
  }
491
494
  },
492
495
  computed: {
493
- visibleOptions() {
496
+ visibleOptions() {
494
497
  if (this.filterValue) {
495
498
  if (this.optionGroupLabel) {
496
499
  let filteredGroups = [];
@@ -503,7 +506,7 @@ this.primevue.multiselect = (function (utils, OverlayEventBus, api, Ripple, Virt
503
506
  return filteredGroups
504
507
  }
505
508
  else {
506
- return api.FilterService.filter(this.options, this.searchFields, this.filterValue, 'contains', this.filterLocale);
509
+ return api.FilterService.filter(this.options, this.searchFields, this.filterValue, this.filterMatchMode, this.filterLocale);
507
510
  }
508
511
  }
509
512
  else {
@@ -628,10 +631,10 @@ this.primevue.multiselect = (function (utils, OverlayEventBus, api, Ripple, Virt
628
631
  }
629
632
  },
630
633
  directives: {
631
- 'ripple': Ripple__default["default"]
634
+ 'ripple': Ripple__default['default']
632
635
  },
633
636
  components: {
634
- 'VirtualScroller': VirtualScroller__default["default"]
637
+ 'VirtualScroller': VirtualScroller__default['default']
635
638
  }
636
639
  };
637
640
 
@@ -977,4 +980,4 @@ this.primevue.multiselect = (function (utils, OverlayEventBus, api, Ripple, Virt
977
980
 
978
981
  return script;
979
982
 
980
- })(primevue.utils, primevue.overlayeventbus, primevue.api, primevue.ripple, primevue.virtualscroller, Vue);
983
+ }(primevue.utils, primevue.overlayeventbus, primevue.api, primevue.ripple, primevue.virtualscroller, Vue));
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.multiselect=function(e,t,l,i,n,s){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=o(t),a=o(i),c=o(n),d={name:"MultiSelect",emits:["update:modelValue","before-show","before-hide","change","show","hide","filter","selectall-change"],props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:"200px"},placeholder:String,disabled:Boolean,tabindex:String,inputId:String,dataKey:null,filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:"contains"},filterFields:{type:Array,default:null},ariaLabelledBy:null,appendTo:{type:String,default:"body"},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},display:{type:String,default:"comma"},panelClass:null,selectedItemsLabel:{type:String,default:"{0} items selected"},maxSelectedLabels:{type:Number,default:null},selectionLimit:{type:Number,default:null},showToggleAll:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:"pi pi-spinner pi-spin"},virtualScrollerOptions:{type:Object,default:null},selectAll:{type:Boolean,default:null}},data:()=>({focused:!1,headerCheckboxFocused:!1,filterValue:null,overlayVisible:!1}),outsideClickListener:null,resizeListener:null,scrollHandler:null,overlay:null,virtualScroller:null,beforeUnmount(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(e.ZIndexUtils.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel(t){return this.optionLabel?e.ObjectUtils.resolveFieldData(t,this.optionLabel):t},getOptionValue(t){return this.optionValue?e.ObjectUtils.resolveFieldData(t,this.optionValue):t},getOptionRenderKey(t){return this.dataKey?e.ObjectUtils.resolveFieldData(t,this.dataKey):this.getOptionLabel(t)},getOptionGroupRenderKey(t){return e.ObjectUtils.resolveFieldData(t,this.optionGroupLabel)},getOptionGroupLabel(t){return e.ObjectUtils.resolveFieldData(t,this.optionGroupLabel)},getOptionGroupChildren(t){return e.ObjectUtils.resolveFieldData(t,this.optionGroupChildren)},isOptionDisabled(t){return!(!this.maxSelectionLimitReached||this.isSelected(t))||!!this.optionDisabled&&e.ObjectUtils.resolveFieldData(t,this.optionDisabled)},getSelectedOptionIndex(){if(null!=this.modelValue&&this.options){if(!this.optionGroupLabel)return this.findOptionIndexInList(this.modelValue,this.options);for(let e=0;e<this.options.length;e++){let t=this.findOptionIndexInList(this.modelValue,this.getOptionGroupChildren(this.options[e]));if(-1!==t)return{group:e,option:t}}}return-1},findOptionIndexInList(t,l){return t?l.findIndex((l=>t.some((t=>e.ObjectUtils.equals(t,this.getOptionValue(l),this.equalityKey))))):-1},isSelected(t){if(this.modelValue){let l=this.getOptionValue(t),i=this.equalityKey;return this.modelValue.some((t=>e.ObjectUtils.equals(t,l,i)))}return!1},show(){this.$emit("before-show"),this.overlayVisible=!0},hide(){this.$emit("before-hide"),this.overlayVisible=!1},onFocus(){this.focused=!0},onBlur(){this.focused=!1},onHeaderCheckboxFocus(){this.headerCheckboxFocused=!0},onHeaderCheckboxBlur(){this.headerCheckboxFocused=!1},onClick(t){this.disabled||this.loading||this.overlay&&this.overlay.contains(t.target)||e.DomHandler.hasClass(t.target,"p-multiselect-close")||(e.DomHandler.hasClass(t.target,"p-multiselect-close"),this.overlayVisible?this.hide():this.show(),this.$refs.focusInput.focus())},onCloseClick(){this.hide()},onKeyDown(e){switch(e.which){case 40:this.visibleOptions&&!this.overlayVisible&&e.altKey&&this.show();break;case 32:this.overlayVisible||(this.show(),e.preventDefault());break;case 13:case 27:this.overlayVisible&&(this.hide(),e.preventDefault());break;case 9:this.hide()}},onOptionSelect(t,l){if(this.disabled||this.isOptionDisabled(l))return;let i=null;i=this.isSelected(l)?this.modelValue.filter((t=>!e.ObjectUtils.equals(t,this.getOptionValue(l),this.equalityKey))):[...this.modelValue||[],this.getOptionValue(l)],this.$emit("update:modelValue",i),this.$emit("change",{originalEvent:t,value:i})},onOptionKeyDown(e,t){let l=e.target;switch(e.which){case 40:var i=this.findNextItem(l);i&&i.focus(),e.preventDefault();break;case 38:var n=this.findPrevItem(l);n&&n.focus(),e.preventDefault();break;case 13:this.onOptionSelect(e,t),e.preventDefault()}},findNextItem(t){let l=t.nextElementSibling;return l?e.DomHandler.hasClass(l,"p-disabled")||e.DomHandler.hasClass(l,"p-multiselect-item-group")?this.findNextItem(l):l:null},findPrevItem(t){let l=t.previousElementSibling;return l?e.DomHandler.hasClass(l,"p-disabled")||e.DomHandler.hasClass(l,"p-multiselect-item-group")?this.findPrevItem(l):l:null},onOverlayEnter(t){if(e.ZIndexUtils.set("overlay",t,this.$primevue.config.zIndex.overlay),this.alignOverlay(),!this.virtualScrollerDisabled){const e=this.getSelectedOptionIndex();-1!==e&&setTimeout((()=>{this.virtualScroller&&this.virtualScroller.scrollToIndex(e)}),0)}},onOverlayAfterEnter(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.filter&&this.$refs.filterInput.focus(),this.$emit("show")},onOverlayLeave(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave(t){e.ZIndexUtils.clear(t)},alignOverlay(){this.appendDisabled?e.DomHandler.relativePosition(this.overlay,this.$el):(this.overlay.style.minWidth=e.DomHandler.getOuterWidth(this.$el)+"px",e.DomHandler.absolutePosition(this.overlay,this.$el))},bindOutsideClickListener(){this.outsideClickListener||(this.outsideClickListener=e=>{this.overlayVisible&&this.isOutsideClicked(e)&&this.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener(){this.scrollHandler||(this.scrollHandler=new e.ConnectedOverlayScrollHandler(this.$refs.container,(()=>{this.overlayVisible&&this.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener(){this.resizeListener||(this.resizeListener=()=>{this.overlayVisible&&!e.DomHandler.isAndroid()&&this.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isOutsideClicked(e){return!(this.$el.isSameNode(e.target)||this.$el.contains(e.target)||this.overlay&&this.overlay.contains(e.target))},getLabelByValue(e){let t;if(this.options)if(this.optionGroupLabel){for(let l of this.options)if(t=this.findOptionByValue(e,this.getOptionGroupChildren(l)),t)break}else t=this.findOptionByValue(e,this.options);return t?this.getOptionLabel(t):null},findOptionByValue(t,l){for(let i of l){let l=this.getOptionValue(i);if(e.ObjectUtils.equals(l,t,this.equalityKey))return i}return null},getSelectedItemsLabel(){let e=/{(.*?)}/;return e.test(this.selectedItemsLabel)?this.selectedItemsLabel.replace(this.selectedItemsLabel.match(e)[0],this.modelValue.length+""):this.selectedItemsLabel},onToggleAll(e){if(null!==this.selectAll)this.$emit("selectall-change",{originalEvent:e,checked:!this.allSelected});else{let t=null;this.allSelected?t=[]:this.visibleOptions&&(this.optionGroupLabel?(t=[],this.visibleOptions.forEach((e=>t=[...t,...this.getOptionGroupChildren(e)]))):t=this.visibleOptions.map((e=>this.getOptionValue(e)))),this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})}},onFilterChange(e){this.$emit("filter",{originalEvent:e,value:e.target.value}),this.overlayVisible&&this.alignOverlay()},overlayRef(e){this.overlay=e},virtualScrollerRef(e){this.virtualScroller=e},removeChip(t){let l=this.modelValue.filter((l=>!e.ObjectUtils.equals(l,t,this.equalityKey)));this.$emit("update:modelValue",l),this.$emit("change",{originalEvent:event,value:l})},onOverlayClick(e){r.default.emit("overlay-click",{originalEvent:e,target:this.$el})}},computed:{visibleOptions(){if(this.filterValue){if(this.optionGroupLabel){let e=[];for(let t of this.options){let i=l.FilterService.filter(this.getOptionGroupChildren(t),this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);i&&i.length&&e.push({...t,items:i})}return e}return l.FilterService.filter(this.options,this.searchFields,this.filterValue,"contains",this.filterLocale)}return this.options},containerClass(){return["p-multiselect p-component p-inputwrapper",{"p-multiselect-chip":"chip"===this.display,"p-disabled":this.disabled,"p-focus":this.focused,"p-inputwrapper-filled":this.modelValue&&this.modelValue.length,"p-inputwrapper-focus":this.focused||this.overlayVisible}]},labelClass(){return["p-multiselect-label",{"p-placeholder":this.label===this.placeholder,"p-multiselect-label-empty":!(this.placeholder||this.modelValue&&0!==this.modelValue.length)}]},panelStyleClass(){return["p-multiselect-panel p-component",this.panelClass,{"p-input-filled":"filled"===this.$primevue.config.inputStyle,"p-ripple-disabled":!1===this.$primevue.config.ripple}]},label(){let e;if(this.modelValue&&this.modelValue.length){if(this.maxSelectedLabels&&!(this.modelValue.length<=this.maxSelectedLabels))return this.getSelectedItemsLabel();e="";for(let t=0;t<this.modelValue.length;t++)0!==t&&(e+=", "),e+=this.getLabelByValue(this.modelValue[t])}else e=this.placeholder;return e},allSelected(){if(null!==this.selectAll)return this.selectAll;if(this.filterValue&&this.filterValue.trim().length>0){if(0===this.visibleOptions.length)return!1;if(this.optionGroupLabel){for(let e of this.visibleOptions)for(let t of this.getOptionGroupChildren(e))if(!this.isSelected(t))return!1}else for(let e of this.visibleOptions)if(!this.isSelected(e))return!1;return!0}if(this.modelValue&&this.options){let e=0;return this.optionGroupLabel?this.options.forEach((t=>e+=this.getOptionGroupChildren(t).length)):e=this.options.length,e>0&&e===this.modelValue.length}return!1},equalityKey(){return this.optionValue?null:this.dataKey},searchFields(){return this.filterFields||[this.optionLabel]},emptyFilterMessageText(){return this.emptyFilterMessage||this.$primevue.config.locale.emptyFilterMessage},emptyMessageText(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage},appendDisabled(){return"self"===this.appendTo},appendTarget(){return this.appendDisabled?null:this.appendTo},virtualScrollerDisabled(){return!this.virtualScrollerOptions},maxSelectionLimitReached(){return this.selectionLimit&&this.modelValue&&this.modelValue.length===this.selectionLimit},dropdownIconClass(){return["p-multiselect-trigger-icon",this.loading?this.loadingIcon:"pi pi-chevron-down"]}},directives:{ripple:a.default},components:{VirtualScroller:c.default}};const p={class:"p-hidden-accessible"},u={class:"p-multiselect-label-container"},h={class:"p-multiselect-token-label"},m={class:"p-multiselect-trigger"},b={key:0,class:"p-multiselect-header"},f={class:"p-hidden-accessible"},y={key:1,class:"p-multiselect-filter-container"},g=s.createVNode("span",{class:"p-multiselect-filter-icon pi pi-search"},null,-1),v=s.createVNode("span",{class:"p-multiselect-close-icon pi pi-times"},null,-1),k={class:"p-checkbox p-component"},x={class:"p-multiselect-item-group"},V={class:"p-checkbox p-component"},O={key:2,class:"p-multiselect-empty-message"},S={key:3,class:"p-multiselect-empty-message"};return function(e,t){void 0===t&&(t={});var l=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===l&&i.firstChild?i.insertBefore(n,i.firstChild):i.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}("\n.p-multiselect {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n cursor: pointer;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-multiselect-trigger {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n.p-multiselect-label-container {\n overflow: hidden;\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n cursor: pointer;\n}\n.p-multiselect-label {\n display: block;\n white-space: nowrap;\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.p-multiselect-label-empty {\n overflow: hidden;\n visibility: hidden;\n}\n.p-multiselect-token {\n cursor: default;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n.p-multiselect-token-icon {\n cursor: pointer;\n}\n.p-multiselect .p-multiselect-panel {\n min-width: 100%;\n}\n.p-multiselect-panel {\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-multiselect-items-wrapper {\n overflow: auto;\n}\n.p-multiselect-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n.p-multiselect-item {\n cursor: pointer;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n}\n.p-multiselect-item-group {\n cursor: auto;\n}\n.p-multiselect-header {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n.p-multiselect-filter-container {\n position: relative;\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n.p-multiselect-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n}\n.p-multiselect-filter-container .p-inputtext {\n width: 100%;\n}\n.p-multiselect-close {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n overflow: hidden;\n position: relative;\n margin-left: auto;\n}\n.p-fluid .p-multiselect {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n"),d.render=function(e,t,l,i,n,o){const r=s.resolveComponent("VirtualScroller"),a=s.resolveDirective("ripple");return s.openBlock(),s.createBlock("div",{ref:"container",class:o.containerClass,onClick:t[11]||(t[11]=(...e)=>o.onClick&&o.onClick(...e))},[s.createVNode("div",p,[s.createVNode("input",{ref:"focusInput",type:"text",role:"listbox",id:l.inputId,readonly:"",disabled:l.disabled,onFocus:t[1]||(t[1]=(...e)=>o.onFocus&&o.onFocus(...e)),onBlur:t[2]||(t[2]=(...e)=>o.onBlur&&o.onBlur(...e)),onKeydown:t[3]||(t[3]=(...e)=>o.onKeyDown&&o.onKeyDown(...e)),tabindex:l.tabindex,"aria-haspopup":"true","aria-expanded":n.overlayVisible,"aria-labelledby":l.ariaLabelledBy},null,40,["id","disabled","tabindex","aria-expanded","aria-labelledby"])]),s.createVNode("div",u,[s.createVNode("div",{class:o.labelClass},[s.renderSlot(e.$slots,"value",{value:l.modelValue,placeholder:l.placeholder},(()=>["comma"===l.display?(s.openBlock(),s.createBlock(s.Fragment,{key:0},[s.createTextVNode(s.toDisplayString(o.label||"empty"),1)],64)):"chip"===l.display?(s.openBlock(),s.createBlock(s.Fragment,{key:1},[(s.openBlock(!0),s.createBlock(s.Fragment,null,s.renderList(l.modelValue,(t=>(s.openBlock(),s.createBlock("div",{class:"p-multiselect-token",key:o.getLabelByValue(t)},[s.renderSlot(e.$slots,"chip",{value:t},(()=>[s.createVNode("span",h,s.toDisplayString(o.getLabelByValue(t)),1)])),l.disabled?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock("span",{key:0,class:"p-multiselect-token-icon pi pi-times-circle",onClick:e=>o.removeChip(t)},null,8,["onClick"]))])))),128)),l.modelValue&&0!==l.modelValue.length?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.Fragment,{key:0},[s.createTextVNode(s.toDisplayString(l.placeholder||"empty"),1)],64))],64)):s.createCommentVNode("",!0)]))],2)]),s.createVNode("div",m,[s.renderSlot(e.$slots,"indicator",{},(()=>[s.createVNode("span",{class:o.dropdownIconClass},null,2)]))]),(s.openBlock(),s.createBlock(s.Teleport,{to:o.appendTarget,disabled:o.appendDisabled},[s.createVNode(s.Transition,{name:"p-connected-overlay",onEnter:o.onOverlayEnter,onAfterEnter:o.onOverlayAfterEnter,onLeave:o.onOverlayLeave,onAfterLeave:o.onOverlayAfterLeave},{default:s.withCtx((()=>[n.overlayVisible?(s.openBlock(),s.createBlock("div",{key:0,ref:o.overlayRef,class:o.panelStyleClass,onClick:t[10]||(t[10]=(...e)=>o.onOverlayClick&&o.onOverlayClick(...e))},[s.renderSlot(e.$slots,"header",{value:l.modelValue,options:o.visibleOptions}),l.showToggleAll&&null==l.selectionLimit||l.filter?(s.openBlock(),s.createBlock("div",b,[l.showToggleAll&&null==l.selectionLimit?(s.openBlock(),s.createBlock("div",{key:0,class:"p-checkbox p-component",onClick:t[6]||(t[6]=(...e)=>o.onToggleAll&&o.onToggleAll(...e)),role:"checkbox","aria-checked":o.allSelected},[s.createVNode("div",f,[s.createVNode("input",{type:"checkbox",readonly:"",onFocus:t[4]||(t[4]=(...e)=>o.onHeaderCheckboxFocus&&o.onHeaderCheckboxFocus(...e)),onBlur:t[5]||(t[5]=(...e)=>o.onHeaderCheckboxBlur&&o.onHeaderCheckboxBlur(...e))},null,32)]),s.createVNode("div",{class:["p-checkbox-box",{"p-highlight":o.allSelected,"p-focus":n.headerCheckboxFocused}],role:"checkbox","aria-checked":o.allSelected},[s.createVNode("span",{class:["p-checkbox-icon",{"pi pi-check":o.allSelected}]},null,2)],10,["aria-checked"])],8,["aria-checked"])):s.createCommentVNode("",!0),l.filter?(s.openBlock(),s.createBlock("div",y,[s.withDirectives(s.createVNode("input",{type:"text",ref:"filterInput","onUpdate:modelValue":t[7]||(t[7]=e=>n.filterValue=e),autoComplete:"on",class:"p-multiselect-filter p-inputtext p-component",placeholder:l.filterPlaceholder,onInput:t[8]||(t[8]=(...e)=>o.onFilterChange&&o.onFilterChange(...e))},null,40,["placeholder"]),[[s.vModelText,n.filterValue]]),g])):s.createCommentVNode("",!0),s.withDirectives(s.createVNode("button",{class:"p-multiselect-close p-link",onClick:t[9]||(t[9]=(...e)=>o.onCloseClick&&o.onCloseClick(...e)),type:"button"},[v],512),[[a]])])):s.createCommentVNode("",!0),s.createVNode("div",{class:"p-multiselect-items-wrapper",style:{"max-height":o.virtualScrollerDisabled?l.scrollHeight:""}},[s.createVNode(r,s.mergeProps({ref:o.virtualScrollerRef},l.virtualScrollerOptions,{items:o.visibleOptions,style:{height:l.scrollHeight},disabled:o.virtualScrollerDisabled}),s.createSlots({content:s.withCtx((({styleClass:t,contentRef:i,items:r,getItemOptions:c,contentStyle:d})=>[s.createVNode("ul",{ref:i,class:["p-multiselect-items p-component",t],style:d,role:"listbox","aria-multiselectable":"true"},[l.optionGroupLabel?(s.openBlock(!0),s.createBlock(s.Fragment,{key:1},s.renderList(r,((t,i)=>(s.openBlock(),s.createBlock(s.Fragment,{key:o.getOptionGroupRenderKey(t)},[s.createVNode("li",x,[s.renderSlot(e.$slots,"optiongroup",{option:t,index:o.getOptionIndex(i,c)},(()=>[s.createTextVNode(s.toDisplayString(o.getOptionGroupLabel(t)),1)]))]),(s.openBlock(!0),s.createBlock(s.Fragment,null,s.renderList(o.getOptionGroupChildren(t),((t,i)=>s.withDirectives((s.openBlock(),s.createBlock("li",{class:["p-multiselect-item",{"p-highlight":o.isSelected(t),"p-disabled":o.isOptionDisabled(t)}],role:"option","aria-selected":o.isSelected(t),key:o.getOptionRenderKey(t),onClick:e=>o.onOptionSelect(e,t),onKeydown:e=>o.onOptionKeyDown(e,t),tabindex:l.tabindex||"0","aria-label":o.getOptionLabel(t)},[s.createVNode("div",V,[s.createVNode("div",{class:["p-checkbox-box",{"p-highlight":o.isSelected(t)}]},[s.createVNode("span",{class:["p-checkbox-icon",{"pi pi-check":o.isSelected(t)}]},null,2)],2)]),s.renderSlot(e.$slots,"option",{option:t,index:o.getOptionIndex(i,c)},(()=>[s.createVNode("span",null,s.toDisplayString(o.getOptionLabel(t)),1)]))],42,["aria-selected","onClick","onKeydown","tabindex","aria-label"])),[[a]]))),128))],64)))),128)):(s.openBlock(!0),s.createBlock(s.Fragment,{key:0},s.renderList(r,((t,i)=>s.withDirectives((s.openBlock(),s.createBlock("li",{class:["p-multiselect-item",{"p-highlight":o.isSelected(t),"p-disabled":o.isOptionDisabled(t)}],role:"option","aria-selected":o.isSelected(t),key:o.getOptionRenderKey(t),onClick:e=>o.onOptionSelect(e,t),onKeydown:e=>o.onOptionKeyDown(e,t),tabindex:l.tabindex||"0","aria-label":o.getOptionLabel(t)},[s.createVNode("div",k,[s.createVNode("div",{class:["p-checkbox-box",{"p-highlight":o.isSelected(t)}]},[s.createVNode("span",{class:["p-checkbox-icon",{"pi pi-check":o.isSelected(t)}]},null,2)],2)]),s.renderSlot(e.$slots,"option",{option:t,index:o.getOptionIndex(i,c)},(()=>[s.createVNode("span",null,s.toDisplayString(o.getOptionLabel(t)),1)]))],42,["aria-selected","onClick","onKeydown","tabindex","aria-label"])),[[a]]))),128)),n.filterValue&&(!r||r&&0===r.length)?(s.openBlock(),s.createBlock("li",O,[s.renderSlot(e.$slots,"emptyfilter",{},(()=>[s.createTextVNode(s.toDisplayString(o.emptyFilterMessageText),1)]))])):!l.options||l.options&&0===l.options.length?(s.openBlock(),s.createBlock("li",S,[s.renderSlot(e.$slots,"empty",{},(()=>[s.createTextVNode(s.toDisplayString(o.emptyMessageText),1)]))])):s.createCommentVNode("",!0)],6)])),_:2},[e.$slots.loader?{name:"loader",fn:s.withCtx((({options:t})=>[s.renderSlot(e.$slots,"loader",{options:t})]))}:void 0]),1040,["items","style","disabled"])],4),s.renderSlot(e.$slots,"footer",{value:l.modelValue,options:o.visibleOptions})],2)):s.createCommentVNode("",!0)])),_:3},8,["onEnter","onAfterEnter","onLeave","onAfterLeave"])],8,["to","disabled"]))],2)},d}(primevue.utils,primevue.overlayeventbus,primevue.api,primevue.ripple,primevue.virtualscroller,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.multiselect=function(e,t,l,i,n,s){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var r=o(t),a=o(i),c=o(n),d={name:"MultiSelect",emits:["update:modelValue","before-show","before-hide","change","show","hide","filter","selectall-change"],props:{modelValue:null,options:Array,optionLabel:null,optionValue:null,optionDisabled:null,optionGroupLabel:null,optionGroupChildren:null,scrollHeight:{type:String,default:"200px"},placeholder:String,disabled:Boolean,tabindex:String,inputId:String,dataKey:null,filter:Boolean,filterPlaceholder:String,filterLocale:String,filterMatchMode:{type:String,default:"contains"},filterFields:{type:Array,default:null},ariaLabelledBy:null,appendTo:{type:String,default:"body"},emptyFilterMessage:{type:String,default:null},emptyMessage:{type:String,default:null},display:{type:String,default:"comma"},panelClass:null,selectedItemsLabel:{type:String,default:"{0} items selected"},maxSelectedLabels:{type:Number,default:null},selectionLimit:{type:Number,default:null},showToggleAll:{type:Boolean,default:!0},loading:{type:Boolean,default:!1},loadingIcon:{type:String,default:"pi pi-spinner pi-spin"},virtualScrollerOptions:{type:Object,default:null},selectAll:{type:Boolean,default:null}},data:()=>({focused:!1,headerCheckboxFocused:!1,filterValue:null,overlayVisible:!1}),outsideClickListener:null,resizeListener:null,scrollHandler:null,overlay:null,virtualScroller:null,beforeUnmount(){this.unbindOutsideClickListener(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.overlay&&(e.ZIndexUtils.clear(this.overlay),this.overlay=null)},methods:{getOptionIndex(e,t){return this.virtualScrollerDisabled?e:t&&t(e).index},getOptionLabel(t){return this.optionLabel?e.ObjectUtils.resolveFieldData(t,this.optionLabel):t},getOptionValue(t){return this.optionValue?e.ObjectUtils.resolveFieldData(t,this.optionValue):t},getOptionRenderKey(t){return this.dataKey?e.ObjectUtils.resolveFieldData(t,this.dataKey):this.getOptionLabel(t)},getOptionGroupRenderKey(t){return e.ObjectUtils.resolveFieldData(t,this.optionGroupLabel)},getOptionGroupLabel(t){return e.ObjectUtils.resolveFieldData(t,this.optionGroupLabel)},getOptionGroupChildren(t){return e.ObjectUtils.resolveFieldData(t,this.optionGroupChildren)},isOptionDisabled(t){return!(!this.maxSelectionLimitReached||this.isSelected(t))||!!this.optionDisabled&&e.ObjectUtils.resolveFieldData(t,this.optionDisabled)},getSelectedOptionIndex(){if(null!=this.modelValue&&this.options){if(!this.optionGroupLabel)return this.findOptionIndexInList(this.modelValue,this.options);for(let e=0;e<this.options.length;e++){let t=this.findOptionIndexInList(this.modelValue,this.getOptionGroupChildren(this.options[e]));if(-1!==t)return{group:e,option:t}}}return-1},findOptionIndexInList(t,l){return t?l.findIndex((l=>t.some((t=>e.ObjectUtils.equals(t,this.getOptionValue(l),this.equalityKey))))):-1},isSelected(t){if(this.modelValue){let l=this.getOptionValue(t),i=this.equalityKey;return this.modelValue.some((t=>e.ObjectUtils.equals(t,l,i)))}return!1},show(){this.$emit("before-show"),this.overlayVisible=!0},hide(){this.$emit("before-hide"),this.overlayVisible=!1},onFocus(){this.focused=!0},onBlur(){this.focused=!1},onHeaderCheckboxFocus(){this.headerCheckboxFocused=!0},onHeaderCheckboxBlur(){this.headerCheckboxFocused=!1},onClick(t){this.disabled||this.loading||this.overlay&&this.overlay.contains(t.target)||e.DomHandler.hasClass(t.target,"p-multiselect-close")||(e.DomHandler.hasClass(t.target,"p-multiselect-close"),this.overlayVisible?this.hide():this.show(),this.$refs.focusInput.focus())},onCloseClick(){this.hide()},onKeyDown(e){switch(e.which){case 40:this.visibleOptions&&!this.overlayVisible&&e.altKey&&this.show();break;case 32:this.overlayVisible||(this.show(),e.preventDefault());break;case 27:this.overlayVisible&&(this.hide(),e.preventDefault());break;case 9:this.hide()}},onOptionSelect(t,l){if(this.disabled||this.isOptionDisabled(l))return;let i=null;i=this.isSelected(l)?this.modelValue.filter((t=>!e.ObjectUtils.equals(t,this.getOptionValue(l),this.equalityKey))):[...this.modelValue||[],this.getOptionValue(l)],this.$emit("update:modelValue",i),this.$emit("change",{originalEvent:t,value:i})},onOptionKeyDown(e,t){let l=e.target;switch(e.which){case 40:var i=this.findNextItem(l);i&&i.focus(),e.preventDefault();break;case 38:var n=this.findPrevItem(l);n&&n.focus(),e.preventDefault();break;case 13:this.onOptionSelect(e,t),e.preventDefault()}},findNextItem(t){let l=t.nextElementSibling;return l?e.DomHandler.hasClass(l,"p-disabled")||e.DomHandler.hasClass(l,"p-multiselect-item-group")?this.findNextItem(l):l:null},findPrevItem(t){let l=t.previousElementSibling;return l?e.DomHandler.hasClass(l,"p-disabled")||e.DomHandler.hasClass(l,"p-multiselect-item-group")?this.findPrevItem(l):l:null},onOverlayEnter(t){if(e.ZIndexUtils.set("overlay",t,this.$primevue.config.zIndex.overlay),this.alignOverlay(),!this.virtualScrollerDisabled){const e=this.getSelectedOptionIndex();-1!==e&&setTimeout((()=>{this.virtualScroller&&this.virtualScroller.scrollToIndex(e)}),0)}},onOverlayAfterEnter(){this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.filter&&this.$refs.filterInput.focus(),this.$emit("show")},onOverlayLeave(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.$emit("hide"),this.overlay=null},onOverlayAfterLeave(t){e.ZIndexUtils.clear(t)},alignOverlay(){this.appendDisabled?e.DomHandler.relativePosition(this.overlay,this.$el):(this.overlay.style.minWidth=e.DomHandler.getOuterWidth(this.$el)+"px",e.DomHandler.absolutePosition(this.overlay,this.$el))},bindOutsideClickListener(){this.outsideClickListener||(this.outsideClickListener=e=>{this.overlayVisible&&this.isOutsideClicked(e)&&this.hide()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener(){this.scrollHandler||(this.scrollHandler=new e.ConnectedOverlayScrollHandler(this.$refs.container,(()=>{this.overlayVisible&&this.hide()}))),this.scrollHandler.bindScrollListener()},unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener(){this.resizeListener||(this.resizeListener=()=>{this.overlayVisible&&!e.DomHandler.isAndroid()&&this.hide()},window.addEventListener("resize",this.resizeListener))},unbindResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isOutsideClicked(e){return!(this.$el.isSameNode(e.target)||this.$el.contains(e.target)||this.overlay&&this.overlay.contains(e.target))},getLabelByValue(e){let t;if(this.options)if(this.optionGroupLabel){for(let l of this.options)if(t=this.findOptionByValue(e,this.getOptionGroupChildren(l)),t)break}else t=this.findOptionByValue(e,this.options);return t?this.getOptionLabel(t):null},findOptionByValue(t,l){for(let i of l){let l=this.getOptionValue(i);if(e.ObjectUtils.equals(l,t,this.equalityKey))return i}return null},getSelectedItemsLabel(){let e=/{(.*?)}/;return e.test(this.selectedItemsLabel)?this.selectedItemsLabel.replace(this.selectedItemsLabel.match(e)[0],this.modelValue.length+""):this.selectedItemsLabel},onToggleAll(e){if(null!==this.selectAll)this.$emit("selectall-change",{originalEvent:e,checked:!this.allSelected});else{let t=null;this.allSelected?t=[]:this.visibleOptions&&(this.optionGroupLabel?(t=[],this.visibleOptions.forEach((e=>{for(let l of this.getOptionGroupChildren(e))t.push(this.getOptionValue(l))}))):t=this.visibleOptions.map((e=>this.getOptionValue(e)))),this.$emit("update:modelValue",t),this.$emit("change",{originalEvent:e,value:t})}},onFilterChange(e){this.$emit("filter",{originalEvent:e,value:e.target.value}),this.overlayVisible&&this.alignOverlay()},overlayRef(e){this.overlay=e},virtualScrollerRef(e){this.virtualScroller=e},removeChip(t){let l=this.modelValue.filter((l=>!e.ObjectUtils.equals(l,t,this.equalityKey)));this.$emit("update:modelValue",l),this.$emit("change",{originalEvent:event,value:l})},onOverlayClick(e){r.default.emit("overlay-click",{originalEvent:e,target:this.$el})}},computed:{visibleOptions(){if(this.filterValue){if(this.optionGroupLabel){let e=[];for(let t of this.options){let i=l.FilterService.filter(this.getOptionGroupChildren(t),this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale);i&&i.length&&e.push({...t,items:i})}return e}return l.FilterService.filter(this.options,this.searchFields,this.filterValue,this.filterMatchMode,this.filterLocale)}return this.options},containerClass(){return["p-multiselect p-component p-inputwrapper",{"p-multiselect-chip":"chip"===this.display,"p-disabled":this.disabled,"p-focus":this.focused,"p-inputwrapper-filled":this.modelValue&&this.modelValue.length,"p-inputwrapper-focus":this.focused||this.overlayVisible}]},labelClass(){return["p-multiselect-label",{"p-placeholder":this.label===this.placeholder,"p-multiselect-label-empty":!(this.placeholder||this.modelValue&&0!==this.modelValue.length)}]},panelStyleClass(){return["p-multiselect-panel p-component",this.panelClass,{"p-input-filled":"filled"===this.$primevue.config.inputStyle,"p-ripple-disabled":!1===this.$primevue.config.ripple}]},label(){let e;if(this.modelValue&&this.modelValue.length){if(this.maxSelectedLabels&&!(this.modelValue.length<=this.maxSelectedLabels))return this.getSelectedItemsLabel();e="";for(let t=0;t<this.modelValue.length;t++)0!==t&&(e+=", "),e+=this.getLabelByValue(this.modelValue[t])}else e=this.placeholder;return e},allSelected(){if(null!==this.selectAll)return this.selectAll;if(this.filterValue&&this.filterValue.trim().length>0){if(0===this.visibleOptions.length)return!1;if(this.optionGroupLabel){for(let e of this.visibleOptions)for(let t of this.getOptionGroupChildren(e))if(!this.isSelected(t))return!1}else for(let e of this.visibleOptions)if(!this.isSelected(e))return!1;return!0}if(this.modelValue&&this.options){let e=0;return this.optionGroupLabel?this.options.forEach((t=>e+=this.getOptionGroupChildren(t).length)):e=this.options.length,e>0&&e===this.modelValue.length}return!1},equalityKey(){return this.optionValue?null:this.dataKey},searchFields(){return this.filterFields||[this.optionLabel]},emptyFilterMessageText(){return this.emptyFilterMessage||this.$primevue.config.locale.emptyFilterMessage},emptyMessageText(){return this.emptyMessage||this.$primevue.config.locale.emptyMessage},appendDisabled(){return"self"===this.appendTo},appendTarget(){return this.appendDisabled?null:this.appendTo},virtualScrollerDisabled(){return!this.virtualScrollerOptions},maxSelectionLimitReached(){return this.selectionLimit&&this.modelValue&&this.modelValue.length===this.selectionLimit},dropdownIconClass(){return["p-multiselect-trigger-icon",this.loading?this.loadingIcon:"pi pi-chevron-down"]}},directives:{ripple:a.default},components:{VirtualScroller:c.default}};const p={class:"p-hidden-accessible"},u={class:"p-multiselect-label-container"},h={class:"p-multiselect-token-label"},m={class:"p-multiselect-trigger"},b={key:0,class:"p-multiselect-header"},f={class:"p-hidden-accessible"},y={key:1,class:"p-multiselect-filter-container"},g=s.createVNode("span",{class:"p-multiselect-filter-icon pi pi-search"},null,-1),v=s.createVNode("span",{class:"p-multiselect-close-icon pi pi-times"},null,-1),k={class:"p-checkbox p-component"},x={class:"p-multiselect-item-group"},V={class:"p-checkbox p-component"},O={key:2,class:"p-multiselect-empty-message"},S={key:3,class:"p-multiselect-empty-message"};return function(e,t){void 0===t&&(t={});var l=t.insertAt;if(e&&"undefined"!=typeof document){var i=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===l&&i.firstChild?i.insertBefore(n,i.firstChild):i.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}("\n.p-multiselect {\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n cursor: pointer;\n position: relative;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n}\n.p-multiselect-trigger {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n}\n.p-multiselect-label-container {\n overflow: hidden;\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n cursor: pointer;\n}\n.p-multiselect-label {\n display: block;\n white-space: nowrap;\n cursor: pointer;\n overflow: hidden;\n text-overflow: ellipsis;\n}\n.p-multiselect-label-empty {\n overflow: hidden;\n visibility: hidden;\n}\n.p-multiselect-token {\n cursor: default;\n display: -webkit-inline-box;\n display: -ms-inline-flexbox;\n display: inline-flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-flex: 0;\n -ms-flex: 0 0 auto;\n flex: 0 0 auto;\n}\n.p-multiselect-token-icon {\n cursor: pointer;\n}\n.p-multiselect .p-multiselect-panel {\n min-width: 100%;\n}\n.p-multiselect-panel {\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-multiselect-items-wrapper {\n overflow: auto;\n}\n.p-multiselect-items {\n margin: 0;\n padding: 0;\n list-style-type: none;\n}\n.p-multiselect-item {\n cursor: pointer;\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n font-weight: normal;\n white-space: nowrap;\n position: relative;\n overflow: hidden;\n}\n.p-multiselect-item-group {\n cursor: auto;\n}\n.p-multiselect-header {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: justify;\n -ms-flex-pack: justify;\n justify-content: space-between;\n}\n.p-multiselect-filter-container {\n position: relative;\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n.p-multiselect-filter-icon {\n position: absolute;\n top: 50%;\n margin-top: -.5rem;\n}\n.p-multiselect-filter-container .p-inputtext {\n width: 100%;\n}\n.p-multiselect-close {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n -ms-flex-negative: 0;\n flex-shrink: 0;\n overflow: hidden;\n position: relative;\n margin-left: auto;\n}\n.p-fluid .p-multiselect {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n"),d.render=function(e,t,l,i,n,o){const r=s.resolveComponent("VirtualScroller"),a=s.resolveDirective("ripple");return s.openBlock(),s.createBlock("div",{ref:"container",class:o.containerClass,onClick:t[11]||(t[11]=(...e)=>o.onClick&&o.onClick(...e))},[s.createVNode("div",p,[s.createVNode("input",{ref:"focusInput",type:"text",role:"listbox",id:l.inputId,readonly:"",disabled:l.disabled,onFocus:t[1]||(t[1]=(...e)=>o.onFocus&&o.onFocus(...e)),onBlur:t[2]||(t[2]=(...e)=>o.onBlur&&o.onBlur(...e)),onKeydown:t[3]||(t[3]=(...e)=>o.onKeyDown&&o.onKeyDown(...e)),tabindex:l.tabindex,"aria-haspopup":"true","aria-expanded":n.overlayVisible,"aria-labelledby":l.ariaLabelledBy},null,40,["id","disabled","tabindex","aria-expanded","aria-labelledby"])]),s.createVNode("div",u,[s.createVNode("div",{class:o.labelClass},[s.renderSlot(e.$slots,"value",{value:l.modelValue,placeholder:l.placeholder},(()=>["comma"===l.display?(s.openBlock(),s.createBlock(s.Fragment,{key:0},[s.createTextVNode(s.toDisplayString(o.label||"empty"),1)],64)):"chip"===l.display?(s.openBlock(),s.createBlock(s.Fragment,{key:1},[(s.openBlock(!0),s.createBlock(s.Fragment,null,s.renderList(l.modelValue,(t=>(s.openBlock(),s.createBlock("div",{class:"p-multiselect-token",key:o.getLabelByValue(t)},[s.renderSlot(e.$slots,"chip",{value:t},(()=>[s.createVNode("span",h,s.toDisplayString(o.getLabelByValue(t)),1)])),l.disabled?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock("span",{key:0,class:"p-multiselect-token-icon pi pi-times-circle",onClick:e=>o.removeChip(t)},null,8,["onClick"]))])))),128)),l.modelValue&&0!==l.modelValue.length?s.createCommentVNode("",!0):(s.openBlock(),s.createBlock(s.Fragment,{key:0},[s.createTextVNode(s.toDisplayString(l.placeholder||"empty"),1)],64))],64)):s.createCommentVNode("",!0)]))],2)]),s.createVNode("div",m,[s.renderSlot(e.$slots,"indicator",{},(()=>[s.createVNode("span",{class:o.dropdownIconClass},null,2)]))]),(s.openBlock(),s.createBlock(s.Teleport,{to:o.appendTarget,disabled:o.appendDisabled},[s.createVNode(s.Transition,{name:"p-connected-overlay",onEnter:o.onOverlayEnter,onAfterEnter:o.onOverlayAfterEnter,onLeave:o.onOverlayLeave,onAfterLeave:o.onOverlayAfterLeave},{default:s.withCtx((()=>[n.overlayVisible?(s.openBlock(),s.createBlock("div",{key:0,ref:o.overlayRef,class:o.panelStyleClass,onClick:t[10]||(t[10]=(...e)=>o.onOverlayClick&&o.onOverlayClick(...e))},[s.renderSlot(e.$slots,"header",{value:l.modelValue,options:o.visibleOptions}),l.showToggleAll&&null==l.selectionLimit||l.filter?(s.openBlock(),s.createBlock("div",b,[l.showToggleAll&&null==l.selectionLimit?(s.openBlock(),s.createBlock("div",{key:0,class:"p-checkbox p-component",onClick:t[6]||(t[6]=(...e)=>o.onToggleAll&&o.onToggleAll(...e)),role:"checkbox","aria-checked":o.allSelected},[s.createVNode("div",f,[s.createVNode("input",{type:"checkbox",readonly:"",onFocus:t[4]||(t[4]=(...e)=>o.onHeaderCheckboxFocus&&o.onHeaderCheckboxFocus(...e)),onBlur:t[5]||(t[5]=(...e)=>o.onHeaderCheckboxBlur&&o.onHeaderCheckboxBlur(...e))},null,32)]),s.createVNode("div",{class:["p-checkbox-box",{"p-highlight":o.allSelected,"p-focus":n.headerCheckboxFocused}],role:"checkbox","aria-checked":o.allSelected},[s.createVNode("span",{class:["p-checkbox-icon",{"pi pi-check":o.allSelected}]},null,2)],10,["aria-checked"])],8,["aria-checked"])):s.createCommentVNode("",!0),l.filter?(s.openBlock(),s.createBlock("div",y,[s.withDirectives(s.createVNode("input",{type:"text",ref:"filterInput","onUpdate:modelValue":t[7]||(t[7]=e=>n.filterValue=e),autoComplete:"on",class:"p-multiselect-filter p-inputtext p-component",placeholder:l.filterPlaceholder,onInput:t[8]||(t[8]=(...e)=>o.onFilterChange&&o.onFilterChange(...e))},null,40,["placeholder"]),[[s.vModelText,n.filterValue]]),g])):s.createCommentVNode("",!0),s.withDirectives(s.createVNode("button",{class:"p-multiselect-close p-link",onClick:t[9]||(t[9]=(...e)=>o.onCloseClick&&o.onCloseClick(...e)),type:"button"},[v],512),[[a]])])):s.createCommentVNode("",!0),s.createVNode("div",{class:"p-multiselect-items-wrapper",style:{"max-height":o.virtualScrollerDisabled?l.scrollHeight:""}},[s.createVNode(r,s.mergeProps({ref:o.virtualScrollerRef},l.virtualScrollerOptions,{items:o.visibleOptions,style:{height:l.scrollHeight},disabled:o.virtualScrollerDisabled}),s.createSlots({content:s.withCtx((({styleClass:t,contentRef:i,items:r,getItemOptions:c,contentStyle:d})=>[s.createVNode("ul",{ref:i,class:["p-multiselect-items p-component",t],style:d,role:"listbox","aria-multiselectable":"true"},[l.optionGroupLabel?(s.openBlock(!0),s.createBlock(s.Fragment,{key:1},s.renderList(r,((t,i)=>(s.openBlock(),s.createBlock(s.Fragment,{key:o.getOptionGroupRenderKey(t)},[s.createVNode("li",x,[s.renderSlot(e.$slots,"optiongroup",{option:t,index:o.getOptionIndex(i,c)},(()=>[s.createTextVNode(s.toDisplayString(o.getOptionGroupLabel(t)),1)]))]),(s.openBlock(!0),s.createBlock(s.Fragment,null,s.renderList(o.getOptionGroupChildren(t),((t,i)=>s.withDirectives((s.openBlock(),s.createBlock("li",{class:["p-multiselect-item",{"p-highlight":o.isSelected(t),"p-disabled":o.isOptionDisabled(t)}],role:"option","aria-selected":o.isSelected(t),key:o.getOptionRenderKey(t),onClick:e=>o.onOptionSelect(e,t),onKeydown:e=>o.onOptionKeyDown(e,t),tabindex:l.tabindex||"0","aria-label":o.getOptionLabel(t)},[s.createVNode("div",V,[s.createVNode("div",{class:["p-checkbox-box",{"p-highlight":o.isSelected(t)}]},[s.createVNode("span",{class:["p-checkbox-icon",{"pi pi-check":o.isSelected(t)}]},null,2)],2)]),s.renderSlot(e.$slots,"option",{option:t,index:o.getOptionIndex(i,c)},(()=>[s.createVNode("span",null,s.toDisplayString(o.getOptionLabel(t)),1)]))],42,["aria-selected","onClick","onKeydown","tabindex","aria-label"])),[[a]]))),128))],64)))),128)):(s.openBlock(!0),s.createBlock(s.Fragment,{key:0},s.renderList(r,((t,i)=>s.withDirectives((s.openBlock(),s.createBlock("li",{class:["p-multiselect-item",{"p-highlight":o.isSelected(t),"p-disabled":o.isOptionDisabled(t)}],role:"option","aria-selected":o.isSelected(t),key:o.getOptionRenderKey(t),onClick:e=>o.onOptionSelect(e,t),onKeydown:e=>o.onOptionKeyDown(e,t),tabindex:l.tabindex||"0","aria-label":o.getOptionLabel(t)},[s.createVNode("div",k,[s.createVNode("div",{class:["p-checkbox-box",{"p-highlight":o.isSelected(t)}]},[s.createVNode("span",{class:["p-checkbox-icon",{"pi pi-check":o.isSelected(t)}]},null,2)],2)]),s.renderSlot(e.$slots,"option",{option:t,index:o.getOptionIndex(i,c)},(()=>[s.createVNode("span",null,s.toDisplayString(o.getOptionLabel(t)),1)]))],42,["aria-selected","onClick","onKeydown","tabindex","aria-label"])),[[a]]))),128)),n.filterValue&&(!r||r&&0===r.length)?(s.openBlock(),s.createBlock("li",O,[s.renderSlot(e.$slots,"emptyfilter",{},(()=>[s.createTextVNode(s.toDisplayString(o.emptyFilterMessageText),1)]))])):!l.options||l.options&&0===l.options.length?(s.openBlock(),s.createBlock("li",S,[s.renderSlot(e.$slots,"empty",{},(()=>[s.createTextVNode(s.toDisplayString(o.emptyMessageText),1)]))])):s.createCommentVNode("",!0)],6)])),_:2},[e.$slots.loader?{name:"loader",fn:s.withCtx((({options:t})=>[s.renderSlot(e.$slots,"loader",{options:t})]))}:void 0]),1040,["items","style","disabled"])],4),s.renderSlot(e.$slots,"footer",{value:l.modelValue,options:o.visibleOptions})],2)):s.createCommentVNode("",!0)])),_:3},8,["onEnter","onAfterEnter","onLeave","onAfterLeave"])],8,["to","disabled"]))],2)},d}(primevue.utils,primevue.overlayeventbus,primevue.api,primevue.ripple,primevue.virtualscroller,Vue);
@@ -96,7 +96,7 @@ export default {
96
96
  isSelected(item) {
97
97
  return ObjectUtils.findIndexInList(item, this.d_selection) != -1;
98
98
  },
99
- moveUp() {
99
+ moveUp(event) {
100
100
  if (this.d_selection) {
101
101
  let value = [...this.modelValue];
102
102
 
@@ -124,7 +124,7 @@ export default {
124
124
  });
125
125
  }
126
126
  },
127
- moveTop() {
127
+ moveTop(event) {
128
128
  if(this.d_selection) {
129
129
  let value = [...this.modelValue];
130
130
 
@@ -150,7 +150,7 @@ export default {
150
150
  });
151
151
  }
152
152
  },
153
- moveDown() {
153
+ moveDown(event) {
154
154
  if(this.d_selection) {
155
155
  let value = [...this.modelValue];
156
156
 
@@ -178,7 +178,7 @@ export default {
178
178
  });
179
179
  }
180
180
  },
181
- moveBottom() {
181
+ moveBottom(event) {
182
182
  if (this.d_selection) {
183
183
  let value = [...this.modelValue];
184
184
 
@@ -76,7 +76,7 @@ var script = {
76
76
  isSelected(item) {
77
77
  return utils.ObjectUtils.findIndexInList(item, this.d_selection) != -1;
78
78
  },
79
- moveUp() {
79
+ moveUp(event) {
80
80
  if (this.d_selection) {
81
81
  let value = [...this.modelValue];
82
82
 
@@ -104,7 +104,7 @@ var script = {
104
104
  });
105
105
  }
106
106
  },
107
- moveTop() {
107
+ moveTop(event) {
108
108
  if(this.d_selection) {
109
109
  let value = [...this.modelValue];
110
110
 
@@ -130,7 +130,7 @@ var script = {
130
130
  });
131
131
  }
132
132
  },
133
- moveDown() {
133
+ moveDown(event) {
134
134
  if(this.d_selection) {
135
135
  let value = [...this.modelValue];
136
136
 
@@ -158,7 +158,7 @@ var script = {
158
158
  });
159
159
  }
160
160
  },
161
- moveBottom() {
161
+ moveBottom(event) {
162
162
  if (this.d_selection) {
163
163
  let value = [...this.modelValue];
164
164
 
@@ -340,10 +340,10 @@ var script = {
340
340
  }
341
341
  },
342
342
  components: {
343
- 'OLButton': Button__default["default"]
343
+ 'OLButton': Button__default['default']
344
344
  },
345
345
  directives: {
346
- 'ripple': Ripple__default["default"]
346
+ 'ripple': Ripple__default['default']
347
347
  }
348
348
  };
349
349
 
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/button"),t=require("primevue/utils"),i=require("primevue/ripple"),l=require("vue");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(e),r=n(i),s={name:"OrderList",emits:["update:modelValue","reorder","update:selection","selection-change"],props:{modelValue:{type:Array,default:null},selection:{type:Array,default:null},dataKey:{type:String,default:null},listStyle:{type:null,default:null},metaKeySelection:{type:Boolean,default:!0},responsive:{type:Boolean,default:!0},breakpoint:{type:String,default:"960px"},stripedRows:{type:Boolean,default:!1}},itemTouched:!1,reorderDirection:null,styleElement:null,data(){return{d_selection:this.selection}},beforeUnmount(){this.destroyStyle()},updated(){this.reorderDirection&&(this.updateListScroll(),this.reorderDirection=null)},mounted(){this.responsive&&this.createStyle()},methods:{getItemKey(e,i){return this.dataKey?t.ObjectUtils.resolveFieldData(e,this.dataKey):i},isSelected(e){return-1!=t.ObjectUtils.findIndexInList(e,this.d_selection)},moveUp(){if(this.d_selection){let e=[...this.modelValue];for(let i=0;i<this.d_selection.length;i++){let l=this.d_selection[i],n=t.ObjectUtils.findIndexInList(l,e);if(0===n)break;{let t=e[n],i=e[n-1];e[n-1]=t,e[n]=i}}this.reorderDirection="up",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:event,value:e,direction:this.reorderDirection})}},moveTop(){if(this.d_selection){let e=[...this.modelValue];for(let i=0;i<this.d_selection.length;i++){let l=this.d_selection[i],n=t.ObjectUtils.findIndexInList(l,e);if(0===n)break;{let t=e.splice(n,1)[0];e.unshift(t)}}this.reorderDirection="top",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:event,value:e,direction:this.reorderDirection})}},moveDown(){if(this.d_selection){let e=[...this.modelValue];for(let i=this.d_selection.length-1;i>=0;i--){let l=this.d_selection[i],n=t.ObjectUtils.findIndexInList(l,e);if(n===e.length-1)break;{let t=e[n],i=e[n+1];e[n+1]=t,e[n]=i}}this.reorderDirection="down",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:event,value:e,direction:this.reorderDirection})}},moveBottom(){if(this.d_selection){let e=[...this.modelValue];for(let i=this.d_selection.length-1;i>=0;i--){let l=this.d_selection[i],n=t.ObjectUtils.findIndexInList(l,e);if(n===e.length-1)break;{let t=e.splice(n,1)[0];e.push(t)}}this.reorderDirection="bottom",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:event,value:e,direction:this.reorderDirection})}},onItemClick(e,i,l){this.itemTouched=!1;let n=t.ObjectUtils.findIndexInList(i,this.d_selection),o=-1!=n;if(!this.itemTouched&&this.metaKeySelection){let r=e.metaKey||e.ctrlKey;o&&r?this.d_selection=this.d_selection.filter(((e,t)=>t!==n)):(this.d_selection=r&&this.d_selection?[...this.d_selection]:[],t.ObjectUtils.insertIntoOrderedArray(i,l,this.d_selection,this.modelValue))}else o?this.d_selection=this.d_selection.filter(((e,t)=>t!==n)):(this.d_selection=this.d_selection?[...this.d_selection]:[],t.ObjectUtils.insertIntoOrderedArray(i,l,this.d_selection,this.modelValue));this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})},onItemTouchEnd(){this.itemTouched=!0},onItemKeyDown(e,t,i){let l=e.currentTarget;switch(e.which){case 40:var n=this.findNextItem(l);n&&n.focus(),e.preventDefault();break;case 38:var o=this.findPrevItem(l);o&&o.focus(),e.preventDefault();break;case 13:this.onItemClick(e,t,i),e.preventDefault()}},findNextItem(e){let i=e.nextElementSibling;return i?t.DomHandler.hasClass(i,"p-orderlist-item")?i:this.findNextItem(i):null},findPrevItem(e){let i=e.previousElementSibling;return i?t.DomHandler.hasClass(i,"p-orderlist-item")?i:this.findPrevItem(i):null},updateListScroll(){const e=t.DomHandler.find(this.$refs.list.$el,".p-orderlist-item.p-highlight");if(e&&e.length)switch(this.reorderDirection){case"up":t.DomHandler.scrollInView(this.$refs.list.$el,e[0]);break;case"top":this.$refs.list.$el.scrollTop=0;break;case"down":t.DomHandler.scrollInView(this.$refs.list.$el,e[e.length-1]);break;case"bottom":this.$refs.list.$el.scrollTop=this.$refs.list.$el.scrollHeight}},createStyle(){if(!this.styleElement){this.$el.setAttribute(this.attributeSelector,""),this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let e=`\n@media screen and (max-width: ${this.breakpoint}) {\n .p-orderlist[${this.attributeSelector}] {\n flex-direction: column;\n }\n\n .p-orderlist[${this.attributeSelector}] .p-orderlist-controls {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-orderlist[${this.attributeSelector}] .p-orderlist-controls .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-orderlist[${this.attributeSelector}] .p-orderlist-controls .p-button:last-child {\n margin-right: 0;\n }\n}\n`;this.styleElement.innerHTML=e}},destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}},computed:{containerClass(){return["p-orderlist p-component",{"p-orderlist-striped":this.stripedRows}]},attributeSelector:()=>t.UniqueComponentId()},components:{OLButton:o.default},directives:{ripple:r.default}};const d={class:"p-orderlist-controls"},c={class:"p-orderlist-list-container"},a={key:0,class:"p-orderlist-header"};!function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var l=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===i&&l.firstChild?l.insertBefore(n,l.firstChild):l.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}("\n.p-orderlist {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-orderlist-controls {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-orderlist-list-container {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n.p-orderlist-list {\n list-style-type: none;\n margin: 0;\n padding: 0;\n overflow: auto;\n min-height: 12rem;\n max-height: 24rem;\n}\n.p-orderlist-item {\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n.p-orderlist.p-state-disabled .p-orderlist-item,\n.p-orderlist.p-state-disabled .p-button {\n cursor: default;\n}\n.p-orderlist.p-state-disabled .p-orderlist-list {\n overflow: hidden;\n}\n"),s.render=function(e,t,i,n,o,r){const s=l.resolveComponent("OLButton"),h=l.resolveDirective("ripple");return l.openBlock(),l.createBlock("div",{class:r.containerClass},[l.createVNode("div",d,[l.renderSlot(e.$slots,"controlsstart"),l.createVNode(s,{type:"button",icon:"pi pi-angle-up",onClick:r.moveUp},null,8,["onClick"]),l.createVNode(s,{type:"button",icon:"pi pi-angle-double-up",onClick:r.moveTop},null,8,["onClick"]),l.createVNode(s,{type:"button",icon:"pi pi-angle-down",onClick:r.moveDown},null,8,["onClick"]),l.createVNode(s,{type:"button",icon:"pi pi-angle-double-down",onClick:r.moveBottom},null,8,["onClick"]),l.renderSlot(e.$slots,"controlsend")]),l.createVNode("div",c,[e.$slots.header?(l.openBlock(),l.createBlock("div",a,[l.renderSlot(e.$slots,"header")])):l.createCommentVNode("",!0),l.createVNode(l.TransitionGroup,{ref:"list",name:"p-orderlist-flip",tag:"ul",class:"p-orderlist-list",style:i.listStyle,role:"listbox","aria-multiselectable":"multiple"},{default:l.withCtx((()=>[(l.openBlock(!0),l.createBlock(l.Fragment,null,l.renderList(i.modelValue,((i,n)=>l.withDirectives((l.openBlock(),l.createBlock("li",{key:r.getItemKey(i,n),tabindex:"0",class:["p-orderlist-item",{"p-highlight":r.isSelected(i)}],onClick:e=>r.onItemClick(e,i,n),onKeydown:e=>r.onItemKeyDown(e,i,n),onTouchend:t[1]||(t[1]=(...e)=>r.onItemTouchEnd&&r.onItemTouchEnd(...e)),role:"option","aria-selected":r.isSelected(i)},[l.renderSlot(e.$slots,"item",{item:i,index:n})],42,["onClick","onKeydown","aria-selected"])),[[h]]))),128))])),_:3},8,["style"])])],2)},module.exports=s;
1
+ "use strict";var e=require("primevue/button"),t=require("primevue/utils"),i=require("primevue/ripple"),l=require("vue");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(e),r=n(i),s={name:"OrderList",emits:["update:modelValue","reorder","update:selection","selection-change"],props:{modelValue:{type:Array,default:null},selection:{type:Array,default:null},dataKey:{type:String,default:null},listStyle:{type:null,default:null},metaKeySelection:{type:Boolean,default:!0},responsive:{type:Boolean,default:!0},breakpoint:{type:String,default:"960px"},stripedRows:{type:Boolean,default:!1}},itemTouched:!1,reorderDirection:null,styleElement:null,data(){return{d_selection:this.selection}},beforeUnmount(){this.destroyStyle()},updated(){this.reorderDirection&&(this.updateListScroll(),this.reorderDirection=null)},mounted(){this.responsive&&this.createStyle()},methods:{getItemKey(e,i){return this.dataKey?t.ObjectUtils.resolveFieldData(e,this.dataKey):i},isSelected(e){return-1!=t.ObjectUtils.findIndexInList(e,this.d_selection)},moveUp(e){if(this.d_selection){let i=[...this.modelValue];for(let e=0;e<this.d_selection.length;e++){let l=this.d_selection[e],n=t.ObjectUtils.findIndexInList(l,i);if(0===n)break;{let e=i[n],t=i[n-1];i[n-1]=e,i[n]=t}}this.reorderDirection="up",this.$emit("update:modelValue",i),this.$emit("reorder",{originalEvent:e,value:i,direction:this.reorderDirection})}},moveTop(e){if(this.d_selection){let i=[...this.modelValue];for(let e=0;e<this.d_selection.length;e++){let l=this.d_selection[e],n=t.ObjectUtils.findIndexInList(l,i);if(0===n)break;{let e=i.splice(n,1)[0];i.unshift(e)}}this.reorderDirection="top",this.$emit("update:modelValue",i),this.$emit("reorder",{originalEvent:e,value:i,direction:this.reorderDirection})}},moveDown(e){if(this.d_selection){let i=[...this.modelValue];for(let e=this.d_selection.length-1;e>=0;e--){let l=this.d_selection[e],n=t.ObjectUtils.findIndexInList(l,i);if(n===i.length-1)break;{let e=i[n],t=i[n+1];i[n+1]=e,i[n]=t}}this.reorderDirection="down",this.$emit("update:modelValue",i),this.$emit("reorder",{originalEvent:e,value:i,direction:this.reorderDirection})}},moveBottom(e){if(this.d_selection){let i=[...this.modelValue];for(let e=this.d_selection.length-1;e>=0;e--){let l=this.d_selection[e],n=t.ObjectUtils.findIndexInList(l,i);if(n===i.length-1)break;{let e=i.splice(n,1)[0];i.push(e)}}this.reorderDirection="bottom",this.$emit("update:modelValue",i),this.$emit("reorder",{originalEvent:e,value:i,direction:this.reorderDirection})}},onItemClick(e,i,l){this.itemTouched=!1;let n=t.ObjectUtils.findIndexInList(i,this.d_selection),o=-1!=n;if(!this.itemTouched&&this.metaKeySelection){let r=e.metaKey||e.ctrlKey;o&&r?this.d_selection=this.d_selection.filter(((e,t)=>t!==n)):(this.d_selection=r&&this.d_selection?[...this.d_selection]:[],t.ObjectUtils.insertIntoOrderedArray(i,l,this.d_selection,this.modelValue))}else o?this.d_selection=this.d_selection.filter(((e,t)=>t!==n)):(this.d_selection=this.d_selection?[...this.d_selection]:[],t.ObjectUtils.insertIntoOrderedArray(i,l,this.d_selection,this.modelValue));this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})},onItemTouchEnd(){this.itemTouched=!0},onItemKeyDown(e,t,i){let l=e.currentTarget;switch(e.which){case 40:var n=this.findNextItem(l);n&&n.focus(),e.preventDefault();break;case 38:var o=this.findPrevItem(l);o&&o.focus(),e.preventDefault();break;case 13:this.onItemClick(e,t,i),e.preventDefault()}},findNextItem(e){let i=e.nextElementSibling;return i?t.DomHandler.hasClass(i,"p-orderlist-item")?i:this.findNextItem(i):null},findPrevItem(e){let i=e.previousElementSibling;return i?t.DomHandler.hasClass(i,"p-orderlist-item")?i:this.findPrevItem(i):null},updateListScroll(){const e=t.DomHandler.find(this.$refs.list.$el,".p-orderlist-item.p-highlight");if(e&&e.length)switch(this.reorderDirection){case"up":t.DomHandler.scrollInView(this.$refs.list.$el,e[0]);break;case"top":this.$refs.list.$el.scrollTop=0;break;case"down":t.DomHandler.scrollInView(this.$refs.list.$el,e[e.length-1]);break;case"bottom":this.$refs.list.$el.scrollTop=this.$refs.list.$el.scrollHeight}},createStyle(){if(!this.styleElement){this.$el.setAttribute(this.attributeSelector,""),this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let e=`\n@media screen and (max-width: ${this.breakpoint}) {\n .p-orderlist[${this.attributeSelector}] {\n flex-direction: column;\n }\n\n .p-orderlist[${this.attributeSelector}] .p-orderlist-controls {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-orderlist[${this.attributeSelector}] .p-orderlist-controls .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-orderlist[${this.attributeSelector}] .p-orderlist-controls .p-button:last-child {\n margin-right: 0;\n }\n}\n`;this.styleElement.innerHTML=e}},destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}},computed:{containerClass(){return["p-orderlist p-component",{"p-orderlist-striped":this.stripedRows}]},attributeSelector:()=>t.UniqueComponentId()},components:{OLButton:o.default},directives:{ripple:r.default}};const d={class:"p-orderlist-controls"},c={class:"p-orderlist-list-container"},a={key:0,class:"p-orderlist-header"};!function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var l=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===i&&l.firstChild?l.insertBefore(n,l.firstChild):l.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}("\n.p-orderlist {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-orderlist-controls {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-orderlist-list-container {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n.p-orderlist-list {\n list-style-type: none;\n margin: 0;\n padding: 0;\n overflow: auto;\n min-height: 12rem;\n max-height: 24rem;\n}\n.p-orderlist-item {\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n.p-orderlist.p-state-disabled .p-orderlist-item,\n.p-orderlist.p-state-disabled .p-button {\n cursor: default;\n}\n.p-orderlist.p-state-disabled .p-orderlist-list {\n overflow: hidden;\n}\n"),s.render=function(e,t,i,n,o,r){const s=l.resolveComponent("OLButton"),h=l.resolveDirective("ripple");return l.openBlock(),l.createBlock("div",{class:r.containerClass},[l.createVNode("div",d,[l.renderSlot(e.$slots,"controlsstart"),l.createVNode(s,{type:"button",icon:"pi pi-angle-up",onClick:r.moveUp},null,8,["onClick"]),l.createVNode(s,{type:"button",icon:"pi pi-angle-double-up",onClick:r.moveTop},null,8,["onClick"]),l.createVNode(s,{type:"button",icon:"pi pi-angle-down",onClick:r.moveDown},null,8,["onClick"]),l.createVNode(s,{type:"button",icon:"pi pi-angle-double-down",onClick:r.moveBottom},null,8,["onClick"]),l.renderSlot(e.$slots,"controlsend")]),l.createVNode("div",c,[e.$slots.header?(l.openBlock(),l.createBlock("div",a,[l.renderSlot(e.$slots,"header")])):l.createCommentVNode("",!0),l.createVNode(l.TransitionGroup,{ref:"list",name:"p-orderlist-flip",tag:"ul",class:"p-orderlist-list",style:i.listStyle,role:"listbox","aria-multiselectable":"multiple"},{default:l.withCtx((()=>[(l.openBlock(!0),l.createBlock(l.Fragment,null,l.renderList(i.modelValue,((i,n)=>l.withDirectives((l.openBlock(),l.createBlock("li",{key:r.getItemKey(i,n),tabindex:"0",class:["p-orderlist-item",{"p-highlight":r.isSelected(i)}],onClick:e=>r.onItemClick(e,i,n),onKeydown:e=>r.onItemKeyDown(e,i,n),onTouchend:t[1]||(t[1]=(...e)=>r.onItemTouchEnd&&r.onItemTouchEnd(...e)),role:"option","aria-selected":r.isSelected(i)},[l.renderSlot(e.$slots,"item",{item:i,index:n})],42,["onClick","onKeydown","aria-selected"])),[[h]]))),128))])),_:3},8,["style"])])],2)},module.exports=s;
@@ -69,7 +69,7 @@ var script = {
69
69
  isSelected(item) {
70
70
  return ObjectUtils.findIndexInList(item, this.d_selection) != -1;
71
71
  },
72
- moveUp() {
72
+ moveUp(event) {
73
73
  if (this.d_selection) {
74
74
  let value = [...this.modelValue];
75
75
 
@@ -97,7 +97,7 @@ var script = {
97
97
  });
98
98
  }
99
99
  },
100
- moveTop() {
100
+ moveTop(event) {
101
101
  if(this.d_selection) {
102
102
  let value = [...this.modelValue];
103
103
 
@@ -123,7 +123,7 @@ var script = {
123
123
  });
124
124
  }
125
125
  },
126
- moveDown() {
126
+ moveDown(event) {
127
127
  if(this.d_selection) {
128
128
  let value = [...this.modelValue];
129
129
 
@@ -151,7 +151,7 @@ var script = {
151
151
  });
152
152
  }
153
153
  },
154
- moveBottom() {
154
+ moveBottom(event) {
155
155
  if (this.d_selection) {
156
156
  let value = [...this.modelValue];
157
157
 
@@ -450,4 +450,4 @@ styleInject(css_248z);
450
450
 
451
451
  script.render = render;
452
452
 
453
- export { script as default };
453
+ export default script;
@@ -1 +1 @@
1
- import e from"primevue/button";import{ObjectUtils as t,DomHandler as i,UniqueComponentId as l}from"primevue/utils";import n from"primevue/ripple";import{resolveComponent as o,resolveDirective as s,openBlock as r,createBlock as d,createVNode as a,renderSlot as c,createCommentVNode as h,TransitionGroup as p,withCtx as u,Fragment as m,renderList as f,withDirectives as y}from"vue";var v={name:"OrderList",emits:["update:modelValue","reorder","update:selection","selection-change"],props:{modelValue:{type:Array,default:null},selection:{type:Array,default:null},dataKey:{type:String,default:null},listStyle:{type:null,default:null},metaKeySelection:{type:Boolean,default:!0},responsive:{type:Boolean,default:!0},breakpoint:{type:String,default:"960px"},stripedRows:{type:Boolean,default:!1}},itemTouched:!1,reorderDirection:null,styleElement:null,data(){return{d_selection:this.selection}},beforeUnmount(){this.destroyStyle()},updated(){this.reorderDirection&&(this.updateListScroll(),this.reorderDirection=null)},mounted(){this.responsive&&this.createStyle()},methods:{getItemKey(e,i){return this.dataKey?t.resolveFieldData(e,this.dataKey):i},isSelected(e){return-1!=t.findIndexInList(e,this.d_selection)},moveUp(){if(this.d_selection){let e=[...this.modelValue];for(let i=0;i<this.d_selection.length;i++){let l=this.d_selection[i],n=t.findIndexInList(l,e);if(0===n)break;{let t=e[n],i=e[n-1];e[n-1]=t,e[n]=i}}this.reorderDirection="up",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:event,value:e,direction:this.reorderDirection})}},moveTop(){if(this.d_selection){let e=[...this.modelValue];for(let i=0;i<this.d_selection.length;i++){let l=this.d_selection[i],n=t.findIndexInList(l,e);if(0===n)break;{let t=e.splice(n,1)[0];e.unshift(t)}}this.reorderDirection="top",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:event,value:e,direction:this.reorderDirection})}},moveDown(){if(this.d_selection){let e=[...this.modelValue];for(let i=this.d_selection.length-1;i>=0;i--){let l=this.d_selection[i],n=t.findIndexInList(l,e);if(n===e.length-1)break;{let t=e[n],i=e[n+1];e[n+1]=t,e[n]=i}}this.reorderDirection="down",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:event,value:e,direction:this.reorderDirection})}},moveBottom(){if(this.d_selection){let e=[...this.modelValue];for(let i=this.d_selection.length-1;i>=0;i--){let l=this.d_selection[i],n=t.findIndexInList(l,e);if(n===e.length-1)break;{let t=e.splice(n,1)[0];e.push(t)}}this.reorderDirection="bottom",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:event,value:e,direction:this.reorderDirection})}},onItemClick(e,i,l){this.itemTouched=!1;let n=t.findIndexInList(i,this.d_selection),o=-1!=n;if(!this.itemTouched&&this.metaKeySelection){let s=e.metaKey||e.ctrlKey;o&&s?this.d_selection=this.d_selection.filter(((e,t)=>t!==n)):(this.d_selection=s&&this.d_selection?[...this.d_selection]:[],t.insertIntoOrderedArray(i,l,this.d_selection,this.modelValue))}else o?this.d_selection=this.d_selection.filter(((e,t)=>t!==n)):(this.d_selection=this.d_selection?[...this.d_selection]:[],t.insertIntoOrderedArray(i,l,this.d_selection,this.modelValue));this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})},onItemTouchEnd(){this.itemTouched=!0},onItemKeyDown(e,t,i){let l=e.currentTarget;switch(e.which){case 40:var n=this.findNextItem(l);n&&n.focus(),e.preventDefault();break;case 38:var o=this.findPrevItem(l);o&&o.focus(),e.preventDefault();break;case 13:this.onItemClick(e,t,i),e.preventDefault()}},findNextItem(e){let t=e.nextElementSibling;return t?i.hasClass(t,"p-orderlist-item")?t:this.findNextItem(t):null},findPrevItem(e){let t=e.previousElementSibling;return t?i.hasClass(t,"p-orderlist-item")?t:this.findPrevItem(t):null},updateListScroll(){const e=i.find(this.$refs.list.$el,".p-orderlist-item.p-highlight");if(e&&e.length)switch(this.reorderDirection){case"up":i.scrollInView(this.$refs.list.$el,e[0]);break;case"top":this.$refs.list.$el.scrollTop=0;break;case"down":i.scrollInView(this.$refs.list.$el,e[e.length-1]);break;case"bottom":this.$refs.list.$el.scrollTop=this.$refs.list.$el.scrollHeight}},createStyle(){if(!this.styleElement){this.$el.setAttribute(this.attributeSelector,""),this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let e=`\n@media screen and (max-width: ${this.breakpoint}) {\n .p-orderlist[${this.attributeSelector}] {\n flex-direction: column;\n }\n\n .p-orderlist[${this.attributeSelector}] .p-orderlist-controls {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-orderlist[${this.attributeSelector}] .p-orderlist-controls .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-orderlist[${this.attributeSelector}] .p-orderlist-controls .p-button:last-child {\n margin-right: 0;\n }\n}\n`;this.styleElement.innerHTML=e}},destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}},computed:{containerClass(){return["p-orderlist p-component",{"p-orderlist-striped":this.stripedRows}]},attributeSelector:()=>l()},components:{OLButton:e},directives:{ripple:n}};const b={class:"p-orderlist-controls"},g={class:"p-orderlist-list-container"},x={key:0,class:"p-orderlist-header"};!function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var l=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===i&&l.firstChild?l.insertBefore(n,l.firstChild):l.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}("\n.p-orderlist {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-orderlist-controls {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-orderlist-list-container {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n.p-orderlist-list {\n list-style-type: none;\n margin: 0;\n padding: 0;\n overflow: auto;\n min-height: 12rem;\n max-height: 24rem;\n}\n.p-orderlist-item {\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n.p-orderlist.p-state-disabled .p-orderlist-item,\n.p-orderlist.p-state-disabled .p-button {\n cursor: default;\n}\n.p-orderlist.p-state-disabled .p-orderlist-list {\n overflow: hidden;\n}\n"),v.render=function(e,t,i,l,n,v){const k=o("OLButton"),$=s("ripple");return r(),d("div",{class:v.containerClass},[a("div",b,[c(e.$slots,"controlsstart"),a(k,{type:"button",icon:"pi pi-angle-up",onClick:v.moveUp},null,8,["onClick"]),a(k,{type:"button",icon:"pi pi-angle-double-up",onClick:v.moveTop},null,8,["onClick"]),a(k,{type:"button",icon:"pi pi-angle-down",onClick:v.moveDown},null,8,["onClick"]),a(k,{type:"button",icon:"pi pi-angle-double-down",onClick:v.moveBottom},null,8,["onClick"]),c(e.$slots,"controlsend")]),a("div",g,[e.$slots.header?(r(),d("div",x,[c(e.$slots,"header")])):h("",!0),a(p,{ref:"list",name:"p-orderlist-flip",tag:"ul",class:"p-orderlist-list",style:i.listStyle,role:"listbox","aria-multiselectable":"multiple"},{default:u((()=>[(r(!0),d(m,null,f(i.modelValue,((i,l)=>y((r(),d("li",{key:v.getItemKey(i,l),tabindex:"0",class:["p-orderlist-item",{"p-highlight":v.isSelected(i)}],onClick:e=>v.onItemClick(e,i,l),onKeydown:e=>v.onItemKeyDown(e,i,l),onTouchend:t[1]||(t[1]=(...e)=>v.onItemTouchEnd&&v.onItemTouchEnd(...e)),role:"option","aria-selected":v.isSelected(i)},[c(e.$slots,"item",{item:i,index:l})],42,["onClick","onKeydown","aria-selected"])),[[$]]))),128))])),_:3},8,["style"])])],2)};export{v as default};
1
+ import e from"primevue/button";import{ObjectUtils as t,DomHandler as i,UniqueComponentId as l}from"primevue/utils";import n from"primevue/ripple";import{resolveComponent as o,resolveDirective as s,openBlock as r,createBlock as d,createVNode as a,renderSlot as c,createCommentVNode as h,TransitionGroup as p,withCtx as u,Fragment as m,renderList as f,withDirectives as y}from"vue";var b={name:"OrderList",emits:["update:modelValue","reorder","update:selection","selection-change"],props:{modelValue:{type:Array,default:null},selection:{type:Array,default:null},dataKey:{type:String,default:null},listStyle:{type:null,default:null},metaKeySelection:{type:Boolean,default:!0},responsive:{type:Boolean,default:!0},breakpoint:{type:String,default:"960px"},stripedRows:{type:Boolean,default:!1}},itemTouched:!1,reorderDirection:null,styleElement:null,data(){return{d_selection:this.selection}},beforeUnmount(){this.destroyStyle()},updated(){this.reorderDirection&&(this.updateListScroll(),this.reorderDirection=null)},mounted(){this.responsive&&this.createStyle()},methods:{getItemKey(e,i){return this.dataKey?t.resolveFieldData(e,this.dataKey):i},isSelected(e){return-1!=t.findIndexInList(e,this.d_selection)},moveUp(e){if(this.d_selection){let i=[...this.modelValue];for(let e=0;e<this.d_selection.length;e++){let l=this.d_selection[e],n=t.findIndexInList(l,i);if(0===n)break;{let e=i[n],t=i[n-1];i[n-1]=e,i[n]=t}}this.reorderDirection="up",this.$emit("update:modelValue",i),this.$emit("reorder",{originalEvent:e,value:i,direction:this.reorderDirection})}},moveTop(e){if(this.d_selection){let i=[...this.modelValue];for(let e=0;e<this.d_selection.length;e++){let l=this.d_selection[e],n=t.findIndexInList(l,i);if(0===n)break;{let e=i.splice(n,1)[0];i.unshift(e)}}this.reorderDirection="top",this.$emit("update:modelValue",i),this.$emit("reorder",{originalEvent:e,value:i,direction:this.reorderDirection})}},moveDown(e){if(this.d_selection){let i=[...this.modelValue];for(let e=this.d_selection.length-1;e>=0;e--){let l=this.d_selection[e],n=t.findIndexInList(l,i);if(n===i.length-1)break;{let e=i[n],t=i[n+1];i[n+1]=e,i[n]=t}}this.reorderDirection="down",this.$emit("update:modelValue",i),this.$emit("reorder",{originalEvent:e,value:i,direction:this.reorderDirection})}},moveBottom(e){if(this.d_selection){let i=[...this.modelValue];for(let e=this.d_selection.length-1;e>=0;e--){let l=this.d_selection[e],n=t.findIndexInList(l,i);if(n===i.length-1)break;{let e=i.splice(n,1)[0];i.push(e)}}this.reorderDirection="bottom",this.$emit("update:modelValue",i),this.$emit("reorder",{originalEvent:e,value:i,direction:this.reorderDirection})}},onItemClick(e,i,l){this.itemTouched=!1;let n=t.findIndexInList(i,this.d_selection),o=-1!=n;if(!this.itemTouched&&this.metaKeySelection){let s=e.metaKey||e.ctrlKey;o&&s?this.d_selection=this.d_selection.filter(((e,t)=>t!==n)):(this.d_selection=s&&this.d_selection?[...this.d_selection]:[],t.insertIntoOrderedArray(i,l,this.d_selection,this.modelValue))}else o?this.d_selection=this.d_selection.filter(((e,t)=>t!==n)):(this.d_selection=this.d_selection?[...this.d_selection]:[],t.insertIntoOrderedArray(i,l,this.d_selection,this.modelValue));this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})},onItemTouchEnd(){this.itemTouched=!0},onItemKeyDown(e,t,i){let l=e.currentTarget;switch(e.which){case 40:var n=this.findNextItem(l);n&&n.focus(),e.preventDefault();break;case 38:var o=this.findPrevItem(l);o&&o.focus(),e.preventDefault();break;case 13:this.onItemClick(e,t,i),e.preventDefault()}},findNextItem(e){let t=e.nextElementSibling;return t?i.hasClass(t,"p-orderlist-item")?t:this.findNextItem(t):null},findPrevItem(e){let t=e.previousElementSibling;return t?i.hasClass(t,"p-orderlist-item")?t:this.findPrevItem(t):null},updateListScroll(){const e=i.find(this.$refs.list.$el,".p-orderlist-item.p-highlight");if(e&&e.length)switch(this.reorderDirection){case"up":i.scrollInView(this.$refs.list.$el,e[0]);break;case"top":this.$refs.list.$el.scrollTop=0;break;case"down":i.scrollInView(this.$refs.list.$el,e[e.length-1]);break;case"bottom":this.$refs.list.$el.scrollTop=this.$refs.list.$el.scrollHeight}},createStyle(){if(!this.styleElement){this.$el.setAttribute(this.attributeSelector,""),this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let e=`\n@media screen and (max-width: ${this.breakpoint}) {\n .p-orderlist[${this.attributeSelector}] {\n flex-direction: column;\n }\n\n .p-orderlist[${this.attributeSelector}] .p-orderlist-controls {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-orderlist[${this.attributeSelector}] .p-orderlist-controls .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-orderlist[${this.attributeSelector}] .p-orderlist-controls .p-button:last-child {\n margin-right: 0;\n }\n}\n`;this.styleElement.innerHTML=e}},destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}},computed:{containerClass(){return["p-orderlist p-component",{"p-orderlist-striped":this.stripedRows}]},attributeSelector:()=>l()},components:{OLButton:e},directives:{ripple:n}};const v={class:"p-orderlist-controls"},g={class:"p-orderlist-list-container"},x={key:0,class:"p-orderlist-header"};!function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var l=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===i&&l.firstChild?l.insertBefore(n,l.firstChild):l.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}("\n.p-orderlist {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-orderlist-controls {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-orderlist-list-container {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n.p-orderlist-list {\n list-style-type: none;\n margin: 0;\n padding: 0;\n overflow: auto;\n min-height: 12rem;\n max-height: 24rem;\n}\n.p-orderlist-item {\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n.p-orderlist.p-state-disabled .p-orderlist-item,\n.p-orderlist.p-state-disabled .p-button {\n cursor: default;\n}\n.p-orderlist.p-state-disabled .p-orderlist-list {\n overflow: hidden;\n}\n"),b.render=function(e,t,i,l,n,b){const k=o("OLButton"),$=s("ripple");return r(),d("div",{class:b.containerClass},[a("div",v,[c(e.$slots,"controlsstart"),a(k,{type:"button",icon:"pi pi-angle-up",onClick:b.moveUp},null,8,["onClick"]),a(k,{type:"button",icon:"pi pi-angle-double-up",onClick:b.moveTop},null,8,["onClick"]),a(k,{type:"button",icon:"pi pi-angle-down",onClick:b.moveDown},null,8,["onClick"]),a(k,{type:"button",icon:"pi pi-angle-double-down",onClick:b.moveBottom},null,8,["onClick"]),c(e.$slots,"controlsend")]),a("div",g,[e.$slots.header?(r(),d("div",x,[c(e.$slots,"header")])):h("",!0),a(p,{ref:"list",name:"p-orderlist-flip",tag:"ul",class:"p-orderlist-list",style:i.listStyle,role:"listbox","aria-multiselectable":"multiple"},{default:u((()=>[(r(!0),d(m,null,f(i.modelValue,((i,l)=>y((r(),d("li",{key:b.getItemKey(i,l),tabindex:"0",class:["p-orderlist-item",{"p-highlight":b.isSelected(i)}],onClick:e=>b.onItemClick(e,i,l),onKeydown:e=>b.onItemKeyDown(e,i,l),onTouchend:t[1]||(t[1]=(...e)=>b.onItemTouchEnd&&b.onItemTouchEnd(...e)),role:"option","aria-selected":b.isSelected(i)},[c(e.$slots,"item",{item:i,index:l})],42,["onClick","onKeydown","aria-selected"])),[[$]]))),128))])),_:3},8,["style"])])],2)};export default b;
@@ -73,7 +73,7 @@ this.primevue.orderlist = (function (Button, utils, Ripple, vue) {
73
73
  isSelected(item) {
74
74
  return utils.ObjectUtils.findIndexInList(item, this.d_selection) != -1;
75
75
  },
76
- moveUp() {
76
+ moveUp(event) {
77
77
  if (this.d_selection) {
78
78
  let value = [...this.modelValue];
79
79
 
@@ -101,7 +101,7 @@ this.primevue.orderlist = (function (Button, utils, Ripple, vue) {
101
101
  });
102
102
  }
103
103
  },
104
- moveTop() {
104
+ moveTop(event) {
105
105
  if(this.d_selection) {
106
106
  let value = [...this.modelValue];
107
107
 
@@ -127,7 +127,7 @@ this.primevue.orderlist = (function (Button, utils, Ripple, vue) {
127
127
  });
128
128
  }
129
129
  },
130
- moveDown() {
130
+ moveDown(event) {
131
131
  if(this.d_selection) {
132
132
  let value = [...this.modelValue];
133
133
 
@@ -155,7 +155,7 @@ this.primevue.orderlist = (function (Button, utils, Ripple, vue) {
155
155
  });
156
156
  }
157
157
  },
158
- moveBottom() {
158
+ moveBottom(event) {
159
159
  if (this.d_selection) {
160
160
  let value = [...this.modelValue];
161
161
 
@@ -337,10 +337,10 @@ this.primevue.orderlist = (function (Button, utils, Ripple, vue) {
337
337
  }
338
338
  },
339
339
  components: {
340
- 'OLButton': Button__default["default"]
340
+ 'OLButton': Button__default['default']
341
341
  },
342
342
  directives: {
343
- 'ripple': Ripple__default["default"]
343
+ 'ripple': Ripple__default['default']
344
344
  }
345
345
  };
346
346
 
@@ -456,4 +456,4 @@ this.primevue.orderlist = (function (Button, utils, Ripple, vue) {
456
456
 
457
457
  return script;
458
458
 
459
- })(primevue.button, primevue.utils, primevue.ripple, Vue);
459
+ }(primevue.button, primevue.utils, primevue.ripple, Vue));
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.orderlist=function(e,t,i,l){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(e),s=n(i),r={name:"OrderList",emits:["update:modelValue","reorder","update:selection","selection-change"],props:{modelValue:{type:Array,default:null},selection:{type:Array,default:null},dataKey:{type:String,default:null},listStyle:{type:null,default:null},metaKeySelection:{type:Boolean,default:!0},responsive:{type:Boolean,default:!0},breakpoint:{type:String,default:"960px"},stripedRows:{type:Boolean,default:!1}},itemTouched:!1,reorderDirection:null,styleElement:null,data(){return{d_selection:this.selection}},beforeUnmount(){this.destroyStyle()},updated(){this.reorderDirection&&(this.updateListScroll(),this.reorderDirection=null)},mounted(){this.responsive&&this.createStyle()},methods:{getItemKey(e,i){return this.dataKey?t.ObjectUtils.resolveFieldData(e,this.dataKey):i},isSelected(e){return-1!=t.ObjectUtils.findIndexInList(e,this.d_selection)},moveUp(){if(this.d_selection){let e=[...this.modelValue];for(let i=0;i<this.d_selection.length;i++){let l=this.d_selection[i],n=t.ObjectUtils.findIndexInList(l,e);if(0===n)break;{let t=e[n],i=e[n-1];e[n-1]=t,e[n]=i}}this.reorderDirection="up",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:event,value:e,direction:this.reorderDirection})}},moveTop(){if(this.d_selection){let e=[...this.modelValue];for(let i=0;i<this.d_selection.length;i++){let l=this.d_selection[i],n=t.ObjectUtils.findIndexInList(l,e);if(0===n)break;{let t=e.splice(n,1)[0];e.unshift(t)}}this.reorderDirection="top",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:event,value:e,direction:this.reorderDirection})}},moveDown(){if(this.d_selection){let e=[...this.modelValue];for(let i=this.d_selection.length-1;i>=0;i--){let l=this.d_selection[i],n=t.ObjectUtils.findIndexInList(l,e);if(n===e.length-1)break;{let t=e[n],i=e[n+1];e[n+1]=t,e[n]=i}}this.reorderDirection="down",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:event,value:e,direction:this.reorderDirection})}},moveBottom(){if(this.d_selection){let e=[...this.modelValue];for(let i=this.d_selection.length-1;i>=0;i--){let l=this.d_selection[i],n=t.ObjectUtils.findIndexInList(l,e);if(n===e.length-1)break;{let t=e.splice(n,1)[0];e.push(t)}}this.reorderDirection="bottom",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:event,value:e,direction:this.reorderDirection})}},onItemClick(e,i,l){this.itemTouched=!1;let n=t.ObjectUtils.findIndexInList(i,this.d_selection),o=-1!=n;if(!this.itemTouched&&this.metaKeySelection){let s=e.metaKey||e.ctrlKey;o&&s?this.d_selection=this.d_selection.filter(((e,t)=>t!==n)):(this.d_selection=s&&this.d_selection?[...this.d_selection]:[],t.ObjectUtils.insertIntoOrderedArray(i,l,this.d_selection,this.modelValue))}else o?this.d_selection=this.d_selection.filter(((e,t)=>t!==n)):(this.d_selection=this.d_selection?[...this.d_selection]:[],t.ObjectUtils.insertIntoOrderedArray(i,l,this.d_selection,this.modelValue));this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})},onItemTouchEnd(){this.itemTouched=!0},onItemKeyDown(e,t,i){let l=e.currentTarget;switch(e.which){case 40:var n=this.findNextItem(l);n&&n.focus(),e.preventDefault();break;case 38:var o=this.findPrevItem(l);o&&o.focus(),e.preventDefault();break;case 13:this.onItemClick(e,t,i),e.preventDefault()}},findNextItem(e){let i=e.nextElementSibling;return i?t.DomHandler.hasClass(i,"p-orderlist-item")?i:this.findNextItem(i):null},findPrevItem(e){let i=e.previousElementSibling;return i?t.DomHandler.hasClass(i,"p-orderlist-item")?i:this.findPrevItem(i):null},updateListScroll(){const e=t.DomHandler.find(this.$refs.list.$el,".p-orderlist-item.p-highlight");if(e&&e.length)switch(this.reorderDirection){case"up":t.DomHandler.scrollInView(this.$refs.list.$el,e[0]);break;case"top":this.$refs.list.$el.scrollTop=0;break;case"down":t.DomHandler.scrollInView(this.$refs.list.$el,e[e.length-1]);break;case"bottom":this.$refs.list.$el.scrollTop=this.$refs.list.$el.scrollHeight}},createStyle(){if(!this.styleElement){this.$el.setAttribute(this.attributeSelector,""),this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let e=`\n@media screen and (max-width: ${this.breakpoint}) {\n .p-orderlist[${this.attributeSelector}] {\n flex-direction: column;\n }\n\n .p-orderlist[${this.attributeSelector}] .p-orderlist-controls {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-orderlist[${this.attributeSelector}] .p-orderlist-controls .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-orderlist[${this.attributeSelector}] .p-orderlist-controls .p-button:last-child {\n margin-right: 0;\n }\n}\n`;this.styleElement.innerHTML=e}},destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}},computed:{containerClass(){return["p-orderlist p-component",{"p-orderlist-striped":this.stripedRows}]},attributeSelector:()=>t.UniqueComponentId()},components:{OLButton:o.default},directives:{ripple:s.default}};const d={class:"p-orderlist-controls"},c={class:"p-orderlist-list-container"},a={key:0,class:"p-orderlist-header"};return function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var l=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===i&&l.firstChild?l.insertBefore(n,l.firstChild):l.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}("\n.p-orderlist {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-orderlist-controls {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-orderlist-list-container {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n.p-orderlist-list {\n list-style-type: none;\n margin: 0;\n padding: 0;\n overflow: auto;\n min-height: 12rem;\n max-height: 24rem;\n}\n.p-orderlist-item {\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n.p-orderlist.p-state-disabled .p-orderlist-item,\n.p-orderlist.p-state-disabled .p-button {\n cursor: default;\n}\n.p-orderlist.p-state-disabled .p-orderlist-list {\n overflow: hidden;\n}\n"),r.render=function(e,t,i,n,o,s){const r=l.resolveComponent("OLButton"),h=l.resolveDirective("ripple");return l.openBlock(),l.createBlock("div",{class:s.containerClass},[l.createVNode("div",d,[l.renderSlot(e.$slots,"controlsstart"),l.createVNode(r,{type:"button",icon:"pi pi-angle-up",onClick:s.moveUp},null,8,["onClick"]),l.createVNode(r,{type:"button",icon:"pi pi-angle-double-up",onClick:s.moveTop},null,8,["onClick"]),l.createVNode(r,{type:"button",icon:"pi pi-angle-down",onClick:s.moveDown},null,8,["onClick"]),l.createVNode(r,{type:"button",icon:"pi pi-angle-double-down",onClick:s.moveBottom},null,8,["onClick"]),l.renderSlot(e.$slots,"controlsend")]),l.createVNode("div",c,[e.$slots.header?(l.openBlock(),l.createBlock("div",a,[l.renderSlot(e.$slots,"header")])):l.createCommentVNode("",!0),l.createVNode(l.TransitionGroup,{ref:"list",name:"p-orderlist-flip",tag:"ul",class:"p-orderlist-list",style:i.listStyle,role:"listbox","aria-multiselectable":"multiple"},{default:l.withCtx((()=>[(l.openBlock(!0),l.createBlock(l.Fragment,null,l.renderList(i.modelValue,((i,n)=>l.withDirectives((l.openBlock(),l.createBlock("li",{key:s.getItemKey(i,n),tabindex:"0",class:["p-orderlist-item",{"p-highlight":s.isSelected(i)}],onClick:e=>s.onItemClick(e,i,n),onKeydown:e=>s.onItemKeyDown(e,i,n),onTouchend:t[1]||(t[1]=(...e)=>s.onItemTouchEnd&&s.onItemTouchEnd(...e)),role:"option","aria-selected":s.isSelected(i)},[l.renderSlot(e.$slots,"item",{item:i,index:n})],42,["onClick","onKeydown","aria-selected"])),[[h]]))),128))])),_:3},8,["style"])])],2)},r}(primevue.button,primevue.utils,primevue.ripple,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.orderlist=function(e,t,i,l){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(e),s=n(i),r={name:"OrderList",emits:["update:modelValue","reorder","update:selection","selection-change"],props:{modelValue:{type:Array,default:null},selection:{type:Array,default:null},dataKey:{type:String,default:null},listStyle:{type:null,default:null},metaKeySelection:{type:Boolean,default:!0},responsive:{type:Boolean,default:!0},breakpoint:{type:String,default:"960px"},stripedRows:{type:Boolean,default:!1}},itemTouched:!1,reorderDirection:null,styleElement:null,data(){return{d_selection:this.selection}},beforeUnmount(){this.destroyStyle()},updated(){this.reorderDirection&&(this.updateListScroll(),this.reorderDirection=null)},mounted(){this.responsive&&this.createStyle()},methods:{getItemKey(e,i){return this.dataKey?t.ObjectUtils.resolveFieldData(e,this.dataKey):i},isSelected(e){return-1!=t.ObjectUtils.findIndexInList(e,this.d_selection)},moveUp(e){if(this.d_selection){let i=[...this.modelValue];for(let e=0;e<this.d_selection.length;e++){let l=this.d_selection[e],n=t.ObjectUtils.findIndexInList(l,i);if(0===n)break;{let e=i[n],t=i[n-1];i[n-1]=e,i[n]=t}}this.reorderDirection="up",this.$emit("update:modelValue",i),this.$emit("reorder",{originalEvent:e,value:i,direction:this.reorderDirection})}},moveTop(e){if(this.d_selection){let i=[...this.modelValue];for(let e=0;e<this.d_selection.length;e++){let l=this.d_selection[e],n=t.ObjectUtils.findIndexInList(l,i);if(0===n)break;{let e=i.splice(n,1)[0];i.unshift(e)}}this.reorderDirection="top",this.$emit("update:modelValue",i),this.$emit("reorder",{originalEvent:e,value:i,direction:this.reorderDirection})}},moveDown(e){if(this.d_selection){let i=[...this.modelValue];for(let e=this.d_selection.length-1;e>=0;e--){let l=this.d_selection[e],n=t.ObjectUtils.findIndexInList(l,i);if(n===i.length-1)break;{let e=i[n],t=i[n+1];i[n+1]=e,i[n]=t}}this.reorderDirection="down",this.$emit("update:modelValue",i),this.$emit("reorder",{originalEvent:e,value:i,direction:this.reorderDirection})}},moveBottom(e){if(this.d_selection){let i=[...this.modelValue];for(let e=this.d_selection.length-1;e>=0;e--){let l=this.d_selection[e],n=t.ObjectUtils.findIndexInList(l,i);if(n===i.length-1)break;{let e=i.splice(n,1)[0];i.push(e)}}this.reorderDirection="bottom",this.$emit("update:modelValue",i),this.$emit("reorder",{originalEvent:e,value:i,direction:this.reorderDirection})}},onItemClick(e,i,l){this.itemTouched=!1;let n=t.ObjectUtils.findIndexInList(i,this.d_selection),o=-1!=n;if(!this.itemTouched&&this.metaKeySelection){let s=e.metaKey||e.ctrlKey;o&&s?this.d_selection=this.d_selection.filter(((e,t)=>t!==n)):(this.d_selection=s&&this.d_selection?[...this.d_selection]:[],t.ObjectUtils.insertIntoOrderedArray(i,l,this.d_selection,this.modelValue))}else o?this.d_selection=this.d_selection.filter(((e,t)=>t!==n)):(this.d_selection=this.d_selection?[...this.d_selection]:[],t.ObjectUtils.insertIntoOrderedArray(i,l,this.d_selection,this.modelValue));this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})},onItemTouchEnd(){this.itemTouched=!0},onItemKeyDown(e,t,i){let l=e.currentTarget;switch(e.which){case 40:var n=this.findNextItem(l);n&&n.focus(),e.preventDefault();break;case 38:var o=this.findPrevItem(l);o&&o.focus(),e.preventDefault();break;case 13:this.onItemClick(e,t,i),e.preventDefault()}},findNextItem(e){let i=e.nextElementSibling;return i?t.DomHandler.hasClass(i,"p-orderlist-item")?i:this.findNextItem(i):null},findPrevItem(e){let i=e.previousElementSibling;return i?t.DomHandler.hasClass(i,"p-orderlist-item")?i:this.findPrevItem(i):null},updateListScroll(){const e=t.DomHandler.find(this.$refs.list.$el,".p-orderlist-item.p-highlight");if(e&&e.length)switch(this.reorderDirection){case"up":t.DomHandler.scrollInView(this.$refs.list.$el,e[0]);break;case"top":this.$refs.list.$el.scrollTop=0;break;case"down":t.DomHandler.scrollInView(this.$refs.list.$el,e[e.length-1]);break;case"bottom":this.$refs.list.$el.scrollTop=this.$refs.list.$el.scrollHeight}},createStyle(){if(!this.styleElement){this.$el.setAttribute(this.attributeSelector,""),this.styleElement=document.createElement("style"),this.styleElement.type="text/css",document.head.appendChild(this.styleElement);let e=`\n@media screen and (max-width: ${this.breakpoint}) {\n .p-orderlist[${this.attributeSelector}] {\n flex-direction: column;\n }\n\n .p-orderlist[${this.attributeSelector}] .p-orderlist-controls {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-orderlist[${this.attributeSelector}] .p-orderlist-controls .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-orderlist[${this.attributeSelector}] .p-orderlist-controls .p-button:last-child {\n margin-right: 0;\n }\n}\n`;this.styleElement.innerHTML=e}},destroyStyle(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)}},computed:{containerClass(){return["p-orderlist p-component",{"p-orderlist-striped":this.stripedRows}]},attributeSelector:()=>t.UniqueComponentId()},components:{OLButton:o.default},directives:{ripple:s.default}};const d={class:"p-orderlist-controls"},c={class:"p-orderlist-list-container"},a={key:0,class:"p-orderlist-header"};return function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var l=document.head||document.getElementsByTagName("head")[0],n=document.createElement("style");n.type="text/css","top"===i&&l.firstChild?l.insertBefore(n,l.firstChild):l.appendChild(n),n.styleSheet?n.styleSheet.cssText=e:n.appendChild(document.createTextNode(e))}}("\n.p-orderlist {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n}\n.p-orderlist-controls {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-orient: vertical;\n -webkit-box-direction: normal;\n -ms-flex-direction: column;\n flex-direction: column;\n -webkit-box-pack: center;\n -ms-flex-pack: center;\n justify-content: center;\n}\n.p-orderlist-list-container {\n -webkit-box-flex: 1;\n -ms-flex: 1 1 auto;\n flex: 1 1 auto;\n}\n.p-orderlist-list {\n list-style-type: none;\n margin: 0;\n padding: 0;\n overflow: auto;\n min-height: 12rem;\n max-height: 24rem;\n}\n.p-orderlist-item {\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n.p-orderlist.p-state-disabled .p-orderlist-item,\n.p-orderlist.p-state-disabled .p-button {\n cursor: default;\n}\n.p-orderlist.p-state-disabled .p-orderlist-list {\n overflow: hidden;\n}\n"),r.render=function(e,t,i,n,o,s){const r=l.resolveComponent("OLButton"),h=l.resolveDirective("ripple");return l.openBlock(),l.createBlock("div",{class:s.containerClass},[l.createVNode("div",d,[l.renderSlot(e.$slots,"controlsstart"),l.createVNode(r,{type:"button",icon:"pi pi-angle-up",onClick:s.moveUp},null,8,["onClick"]),l.createVNode(r,{type:"button",icon:"pi pi-angle-double-up",onClick:s.moveTop},null,8,["onClick"]),l.createVNode(r,{type:"button",icon:"pi pi-angle-down",onClick:s.moveDown},null,8,["onClick"]),l.createVNode(r,{type:"button",icon:"pi pi-angle-double-down",onClick:s.moveBottom},null,8,["onClick"]),l.renderSlot(e.$slots,"controlsend")]),l.createVNode("div",c,[e.$slots.header?(l.openBlock(),l.createBlock("div",a,[l.renderSlot(e.$slots,"header")])):l.createCommentVNode("",!0),l.createVNode(l.TransitionGroup,{ref:"list",name:"p-orderlist-flip",tag:"ul",class:"p-orderlist-list",style:i.listStyle,role:"listbox","aria-multiselectable":"multiple"},{default:l.withCtx((()=>[(l.openBlock(!0),l.createBlock(l.Fragment,null,l.renderList(i.modelValue,((i,n)=>l.withDirectives((l.openBlock(),l.createBlock("li",{key:s.getItemKey(i,n),tabindex:"0",class:["p-orderlist-item",{"p-highlight":s.isSelected(i)}],onClick:e=>s.onItemClick(e,i,n),onKeydown:e=>s.onItemKeyDown(e,i,n),onTouchend:t[1]||(t[1]=(...e)=>s.onItemTouchEnd&&s.onItemTouchEnd(...e)),role:"option","aria-selected":s.isSelected(i)},[l.renderSlot(e.$slots,"item",{item:i,index:n})],42,["onClick","onKeydown","aria-selected"])),[[h]]))),128))])),_:3},8,["style"])])],2)},r}(primevue.button,primevue.utils,primevue.ripple,Vue);
@@ -308,4 +308,4 @@ styleInject(css_248z);
308
308
 
309
309
  script.render = render;
310
310
 
311
- export { script as default };
311
+ export default script;
@@ -1 +1 @@
1
- import{DomHandler as e}from"primevue/utils";import{resolveComponent as n,openBlock as t,createBlock as o,createVNode as l,resolveDynamicComponent as i,withKeys as s,createCommentVNode as d,Fragment as a,renderList as c}from"vue";var r={name:"OrganizationChartNode",emits:["node-click","node-toggle"],props:{node:{type:null,default:null},templates:{type:null,default:null},collapsible:{type:Boolean,default:!1},collapsedKeys:{type:null,default:null},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null}},methods:{onNodeClick(n){e.hasClass(n.target,"p-node-toggler")||e.hasClass(n.target,"p-node-toggler-icon")||this.selectionMode&&this.$emit("node-click",this.node)},onChildNodeClick(e){this.$emit("node-click",e)},toggleNode(){this.$emit("node-toggle",this.node)},onChildNodeToggle(e){this.$emit("node-toggle",e)}},computed:{nodeContentClass(){return["p-organizationchart-node-content",this.node.styleClass,{"p-organizationchart-selectable-node":this.selectable,"p-highlight":this.selected}]},leaf(){return!1!==this.node.leaf&&!(this.node.children&&this.node.children.length)},colspan(){return this.node.children&&this.node.children.length?2*this.node.children.length:null},childStyle(){return{visibility:!this.leaf&&this.expanded?"inherit":"hidden"}},expanded(){return void 0===this.collapsedKeys[this.node.key]},selectable(){return this.selectionMode&&!1!==this.node.selectable},selected(){return this.selectable&&this.selectionKeys&&!0===this.selectionKeys[this.node.key]},toggleable(){return this.collapsible&&!1!==this.node.collapsible&&!this.leaf}}};const p={class:"p-organizationchart-table"},h={key:0},g=l("div",{class:"p-organizationchart-line-down"},null,-1),u=l("div",{class:"p-organizationchart-line-down"},null,-1);r.render=function(e,r,y,m,K,b){const f=n("OrganizationChartNode",!0);return t(),o("table",p,[l("tbody",null,[y.node?(t(),o("tr",h,[l("td",{colspan:b.colspan},[l("div",{class:b.nodeContentClass,onClick:r[3]||(r[3]=(...e)=>b.onNodeClick&&b.onNodeClick(...e))},[(t(),o(i(y.templates[y.node.type]||y.templates.default),{node:y.node},null,8,["node"])),b.toggleable?(t(),o("a",{key:0,tabindex:"0",class:"p-node-toggler",onClick:r[1]||(r[1]=(...e)=>b.toggleNode&&b.toggleNode(...e)),onKeydown:r[2]||(r[2]=s(((...e)=>b.toggleNode&&b.toggleNode(...e)),["enter"]))},[l("i",{class:["p-node-toggler-icon pi",{"pi-chevron-down":b.expanded,"pi-chevron-up":!b.expanded}]},null,2)],32)):d("",!0)],2)],8,["colspan"])])):d("",!0),l("tr",{style:b.childStyle,class:"p-organizationchart-lines"},[l("td",{colspan:b.colspan},[g],8,["colspan"])],4),l("tr",{style:b.childStyle,class:"p-organizationchart-lines"},[y.node.children&&1===y.node.children.length?(t(),o("td",{key:0,colspan:b.colspan},[u],8,["colspan"])):d("",!0),y.node.children&&y.node.children.length>1?(t(!0),o(a,{key:1},c(y.node.children,((e,n)=>(t(),o(a,{key:e.key},[l("td",{class:["p-organizationchart-line-left",{"p-organizationchart-line-top":!(0===n)}]}," ",2),l("td",{class:["p-organizationchart-line-right",{"p-organizationchart-line-top":!(n===y.node.children.length-1)}]}," ",2)],64)))),128)):d("",!0)],4),l("tr",{style:b.childStyle,class:"p-organizationchart-nodes"},[(t(!0),o(a,null,c(y.node.children,(e=>(t(),o("td",{key:e.key,colspan:"2"},[l(f,{node:e,templates:y.templates,collapsedKeys:y.collapsedKeys,onNodeToggle:b.onChildNodeToggle,collapsible:y.collapsible,selectionMode:y.selectionMode,selectionKeys:y.selectionKeys,onNodeClick:b.onChildNodeClick},null,8,["node","templates","collapsedKeys","onNodeToggle","collapsible","selectionMode","selectionKeys","onNodeClick"])])))),128))],4)])])};var y={name:"OrganizationChart",emits:["node-unselect","node-select","update:selectionKeys","node-expand","node-collapse","update:collapsedKeys"],props:{value:{type:null,default:null},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null},collapsible:{type:Boolean,default:!1},collapsedKeys:{type:null,default:null}},data(){return{d_collapsedKeys:this.collapsedKeys||{}}},watch:{collapsedKeys(e){this.d_collapsedKeys=e}},methods:{onNodeClick(e){const n=e.key;if(this.selectionMode){let t=this.selectionKeys?{...this.selectionKeys}:{};t[n]?(delete t[n],this.$emit("node-unselect",e)):("single"===this.selectionMode&&(t={}),t[n]=!0,this.$emit("node-select",e)),this.$emit("update:selectionKeys",t)}},onNodeToggle(e){const n=e.key;this.d_collapsedKeys[n]?(delete this.d_collapsedKeys[n],this.$emit("node-expand",e)):(this.d_collapsedKeys[n]=!0,this.$emit("node-collapse",e)),this.d_collapsedKeys={...this.d_collapsedKeys},this.$emit("update:collapsedKeys",this.d_collapsedKeys)}},components:{OrganizationChartNode:r}};const m={class:"p-organizationchart p-component"};!function(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===t&&o.firstChild?o.insertBefore(l,o.firstChild):o.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}("\n.p-organizationchart-table {\n border-spacing: 0;\n border-collapse: separate;\n margin: 0 auto;\n}\n.p-organizationchart-table > tbody > tr > td {\n text-align: center;\n vertical-align: top;\n padding: 0 .75rem;\n}\n.p-organizationchart-node-content {\n display: inline-block;\n position: relative;\n}\n.p-organizationchart-node-content .p-node-toggler {\n position: absolute;\n bottom: -.75rem;\n margin-left: -.75rem;\n z-index: 2;\n left: 50%;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: pointer;\n width: 1.5rem;\n height: 1.5rem;\n text-decoration: none;\n}\n.p-organizationchart-node-content .p-node-toggler .p-node-toggler-icon {\n position: relative;\n top: .25rem;\n}\n.p-organizationchart-line-down {\n margin: 0 auto;\n height: 20px;\n width: 1px;\n}\n.p-organizationchart-line-right {\n border-radius: 0px;\n}\n.p-organizationchart-line-left {\n border-radius: 0;\n}\n.p-organizationchart-selectable-node {\n cursor: pointer;\n}\n"),y.render=function(e,i,s,d,a,c){const r=n("OrganizationChartNode");return t(),o("div",m,[l(r,{node:s.value,templates:e.$slots,onNodeToggle:c.onNodeToggle,collapsedKeys:a.d_collapsedKeys,collapsible:s.collapsible,onNodeClick:c.onNodeClick,selectionMode:s.selectionMode,selectionKeys:s.selectionKeys},null,8,["node","templates","onNodeToggle","collapsedKeys","collapsible","onNodeClick","selectionMode","selectionKeys"])])};export{y as default};
1
+ import{DomHandler as e}from"primevue/utils";import{resolveComponent as n,openBlock as t,createBlock as o,createVNode as l,resolveDynamicComponent as i,withKeys as s,createCommentVNode as d,Fragment as a,renderList as c}from"vue";var r={name:"OrganizationChartNode",emits:["node-click","node-toggle"],props:{node:{type:null,default:null},templates:{type:null,default:null},collapsible:{type:Boolean,default:!1},collapsedKeys:{type:null,default:null},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null}},methods:{onNodeClick(n){e.hasClass(n.target,"p-node-toggler")||e.hasClass(n.target,"p-node-toggler-icon")||this.selectionMode&&this.$emit("node-click",this.node)},onChildNodeClick(e){this.$emit("node-click",e)},toggleNode(){this.$emit("node-toggle",this.node)},onChildNodeToggle(e){this.$emit("node-toggle",e)}},computed:{nodeContentClass(){return["p-organizationchart-node-content",this.node.styleClass,{"p-organizationchart-selectable-node":this.selectable,"p-highlight":this.selected}]},leaf(){return!1!==this.node.leaf&&!(this.node.children&&this.node.children.length)},colspan(){return this.node.children&&this.node.children.length?2*this.node.children.length:null},childStyle(){return{visibility:!this.leaf&&this.expanded?"inherit":"hidden"}},expanded(){return void 0===this.collapsedKeys[this.node.key]},selectable(){return this.selectionMode&&!1!==this.node.selectable},selected(){return this.selectable&&this.selectionKeys&&!0===this.selectionKeys[this.node.key]},toggleable(){return this.collapsible&&!1!==this.node.collapsible&&!this.leaf}}};const p={class:"p-organizationchart-table"},h={key:0},g=l("div",{class:"p-organizationchart-line-down"},null,-1),u=l("div",{class:"p-organizationchart-line-down"},null,-1);r.render=function(e,r,y,m,K,b){const f=n("OrganizationChartNode",!0);return t(),o("table",p,[l("tbody",null,[y.node?(t(),o("tr",h,[l("td",{colspan:b.colspan},[l("div",{class:b.nodeContentClass,onClick:r[3]||(r[3]=(...e)=>b.onNodeClick&&b.onNodeClick(...e))},[(t(),o(i(y.templates[y.node.type]||y.templates.default),{node:y.node},null,8,["node"])),b.toggleable?(t(),o("a",{key:0,tabindex:"0",class:"p-node-toggler",onClick:r[1]||(r[1]=(...e)=>b.toggleNode&&b.toggleNode(...e)),onKeydown:r[2]||(r[2]=s(((...e)=>b.toggleNode&&b.toggleNode(...e)),["enter"]))},[l("i",{class:["p-node-toggler-icon pi",{"pi-chevron-down":b.expanded,"pi-chevron-up":!b.expanded}]},null,2)],32)):d("",!0)],2)],8,["colspan"])])):d("",!0),l("tr",{style:b.childStyle,class:"p-organizationchart-lines"},[l("td",{colspan:b.colspan},[g],8,["colspan"])],4),l("tr",{style:b.childStyle,class:"p-organizationchart-lines"},[y.node.children&&1===y.node.children.length?(t(),o("td",{key:0,colspan:b.colspan},[u],8,["colspan"])):d("",!0),y.node.children&&y.node.children.length>1?(t(!0),o(a,{key:1},c(y.node.children,((e,n)=>(t(),o(a,{key:e.key},[l("td",{class:["p-organizationchart-line-left",{"p-organizationchart-line-top":!(0===n)}]}," ",2),l("td",{class:["p-organizationchart-line-right",{"p-organizationchart-line-top":!(n===y.node.children.length-1)}]}," ",2)],64)))),128)):d("",!0)],4),l("tr",{style:b.childStyle,class:"p-organizationchart-nodes"},[(t(!0),o(a,null,c(y.node.children,(e=>(t(),o("td",{key:e.key,colspan:"2"},[l(f,{node:e,templates:y.templates,collapsedKeys:y.collapsedKeys,onNodeToggle:b.onChildNodeToggle,collapsible:y.collapsible,selectionMode:y.selectionMode,selectionKeys:y.selectionKeys,onNodeClick:b.onChildNodeClick},null,8,["node","templates","collapsedKeys","onNodeToggle","collapsible","selectionMode","selectionKeys","onNodeClick"])])))),128))],4)])])};var y={name:"OrganizationChart",emits:["node-unselect","node-select","update:selectionKeys","node-expand","node-collapse","update:collapsedKeys"],props:{value:{type:null,default:null},selectionKeys:{type:null,default:null},selectionMode:{type:String,default:null},collapsible:{type:Boolean,default:!1},collapsedKeys:{type:null,default:null}},data(){return{d_collapsedKeys:this.collapsedKeys||{}}},watch:{collapsedKeys(e){this.d_collapsedKeys=e}},methods:{onNodeClick(e){const n=e.key;if(this.selectionMode){let t=this.selectionKeys?{...this.selectionKeys}:{};t[n]?(delete t[n],this.$emit("node-unselect",e)):("single"===this.selectionMode&&(t={}),t[n]=!0,this.$emit("node-select",e)),this.$emit("update:selectionKeys",t)}},onNodeToggle(e){const n=e.key;this.d_collapsedKeys[n]?(delete this.d_collapsedKeys[n],this.$emit("node-expand",e)):(this.d_collapsedKeys[n]=!0,this.$emit("node-collapse",e)),this.d_collapsedKeys={...this.d_collapsedKeys},this.$emit("update:collapsedKeys",this.d_collapsedKeys)}},components:{OrganizationChartNode:r}};const m={class:"p-organizationchart p-component"};!function(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===t&&o.firstChild?o.insertBefore(l,o.firstChild):o.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}("\n.p-organizationchart-table {\n border-spacing: 0;\n border-collapse: separate;\n margin: 0 auto;\n}\n.p-organizationchart-table > tbody > tr > td {\n text-align: center;\n vertical-align: top;\n padding: 0 .75rem;\n}\n.p-organizationchart-node-content {\n display: inline-block;\n position: relative;\n}\n.p-organizationchart-node-content .p-node-toggler {\n position: absolute;\n bottom: -.75rem;\n margin-left: -.75rem;\n z-index: 2;\n left: 50%;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n user-select: none;\n cursor: pointer;\n width: 1.5rem;\n height: 1.5rem;\n text-decoration: none;\n}\n.p-organizationchart-node-content .p-node-toggler .p-node-toggler-icon {\n position: relative;\n top: .25rem;\n}\n.p-organizationchart-line-down {\n margin: 0 auto;\n height: 20px;\n width: 1px;\n}\n.p-organizationchart-line-right {\n border-radius: 0px;\n}\n.p-organizationchart-line-left {\n border-radius: 0;\n}\n.p-organizationchart-selectable-node {\n cursor: pointer;\n}\n"),y.render=function(e,i,s,d,a,c){const r=n("OrganizationChartNode");return t(),o("div",m,[l(r,{node:s.value,templates:e.$slots,onNodeToggle:c.onNodeToggle,collapsedKeys:a.d_collapsedKeys,collapsible:s.collapsible,onNodeClick:c.onNodeClick,selectionMode:s.selectionMode,selectionKeys:s.selectionKeys},null,8,["node","templates","onNodeToggle","collapsedKeys","collapsible","onNodeClick","selectionMode","selectionKeys"])])};export default y;
@@ -311,4 +311,4 @@ this.primevue.organizationchart = (function (utils, vue) {
311
311
 
312
312
  return script;
313
313
 
314
- })(primevue.utils, Vue);
314
+ }(primevue.utils, Vue));
@@ -2,4 +2,4 @@ import { EventBus } from 'primevue/utils';
2
2
 
3
3
  var OverlayEventBus = EventBus();
4
4
 
5
- export { OverlayEventBus as default };
5
+ export default OverlayEventBus;
@@ -1 +1 @@
1
- import{EventBus as r}from"primevue/utils";var e=r();export{e as default};
1
+ import{EventBus as r}from"primevue/utils";var e=r();export default e;
@@ -6,4 +6,4 @@ this.primevue.overlayeventbus = (function (utils) {
6
6
 
7
7
  return OverlayEventBus;
8
8
 
9
- })(primevue.utils);
9
+ }(primevue.utils));