primevue 3.32.2 → 3.34.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (426) hide show
  1. package/accordion/Accordion.d.ts +21 -2
  2. package/accordion/accordion.cjs.js +3 -3
  3. package/accordion/accordion.esm.js +3 -3
  4. package/accordion/accordion.js +3 -3
  5. package/accordiontab/AccordionTab.d.ts +24 -2
  6. package/autocomplete/AutoComplete.d.ts +24 -2
  7. package/autocomplete/AutoComplete.vue +1 -1
  8. package/autocomplete/autocomplete.cjs.js +5 -5
  9. package/autocomplete/autocomplete.cjs.min.js +1 -1
  10. package/autocomplete/autocomplete.esm.js +5 -5
  11. package/autocomplete/autocomplete.esm.min.js +1 -1
  12. package/autocomplete/autocomplete.js +5 -5
  13. package/autocomplete/autocomplete.min.js +1 -1
  14. package/avatar/Avatar.d.ts +21 -2
  15. package/avatargroup/AvatarGroup.d.ts +8 -2
  16. package/badge/Badge.d.ts +18 -2
  17. package/badgedirective/BadgeDirective.d.ts +12 -2
  18. package/badgedirective/badgedirective.cjs.js +3 -3
  19. package/badgedirective/badgedirective.esm.js +3 -3
  20. package/badgedirective/badgedirective.js +3 -3
  21. package/basecomponent/BaseComponent.vue +20 -22
  22. package/basecomponent/basecomponent.cjs.js +41 -28
  23. package/basecomponent/basecomponent.cjs.min.js +1 -1
  24. package/basecomponent/basecomponent.esm.js +41 -28
  25. package/basecomponent/basecomponent.esm.min.js +1 -1
  26. package/basecomponent/basecomponent.js +41 -28
  27. package/basecomponent/basecomponent.min.js +1 -1
  28. package/basedirective/basedirective.cjs.js +42 -25
  29. package/basedirective/basedirective.cjs.min.js +1 -1
  30. package/basedirective/basedirective.esm.js +42 -25
  31. package/basedirective/basedirective.esm.min.js +1 -1
  32. package/basedirective/basedirective.js +42 -25
  33. package/basedirective/basedirective.min.js +1 -1
  34. package/blockui/BlockUI.d.ts +21 -2
  35. package/breadcrumb/Breadcrumb.d.ts +47 -2
  36. package/breadcrumb/Breadcrumb.vue +7 -2
  37. package/breadcrumb/BreadcrumbItem.vue +28 -3
  38. package/breadcrumb/breadcrumb.cjs.js +35 -8
  39. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  40. package/breadcrumb/breadcrumb.esm.js +36 -9
  41. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  42. package/breadcrumb/breadcrumb.js +35 -8
  43. package/breadcrumb/breadcrumb.min.js +1 -1
  44. package/button/Button.d.ts +24 -2
  45. package/button/button.cjs.js +1 -1
  46. package/button/button.esm.js +1 -1
  47. package/button/button.js +1 -1
  48. package/calendar/Calendar.d.ts +26 -4
  49. package/calendar/Calendar.vue +63 -29
  50. package/calendar/calendar.cjs.js +137 -51
  51. package/calendar/calendar.cjs.min.js +1 -1
  52. package/calendar/calendar.esm.js +137 -51
  53. package/calendar/calendar.esm.min.js +1 -1
  54. package/calendar/calendar.js +137 -51
  55. package/calendar/calendar.min.js +1 -1
  56. package/card/Card.d.ts +8 -2
  57. package/carousel/Carousel.d.ts +24 -2
  58. package/carousel/Carousel.vue +22 -2
  59. package/carousel/carousel.cjs.js +9 -5
  60. package/carousel/carousel.cjs.min.js +1 -1
  61. package/carousel/carousel.esm.js +9 -5
  62. package/carousel/carousel.esm.min.js +1 -1
  63. package/carousel/carousel.js +9 -5
  64. package/carousel/carousel.min.js +1 -1
  65. package/cascadeselect/CascadeSelect.d.ts +21 -2
  66. package/cascadeselect/cascadeselect.cjs.js +3 -3
  67. package/cascadeselect/cascadeselect.esm.js +3 -3
  68. package/cascadeselect/cascadeselect.js +3 -3
  69. package/chart/Chart.d.ts +18 -2
  70. package/chart/chart.cjs.js +3 -3
  71. package/chart/chart.esm.js +3 -3
  72. package/chart/chart.js +3 -3
  73. package/checkbox/Checkbox.d.ts +24 -2
  74. package/checkbox/checkbox.cjs.js +3 -3
  75. package/checkbox/checkbox.esm.js +3 -3
  76. package/checkbox/checkbox.js +3 -3
  77. package/chip/Chip.d.ts +21 -2
  78. package/chips/Chips.d.ts +21 -2
  79. package/chips/chips.cjs.js +3 -3
  80. package/chips/chips.esm.js +3 -3
  81. package/chips/chips.js +3 -3
  82. package/colorpicker/ColorPicker.d.ts +21 -2
  83. package/column/Column.d.ts +24 -2
  84. package/columngroup/ColumnGroup.d.ts +24 -2
  85. package/config/PrimeVue.d.ts +93 -92
  86. package/config/config.cjs.js +4 -3
  87. package/config/config.cjs.min.js +1 -1
  88. package/config/config.esm.js +4 -3
  89. package/config/config.esm.min.js +1 -1
  90. package/config/config.js +4 -3
  91. package/config/config.min.js +1 -1
  92. package/confirmdialog/ConfirmDialog.d.ts +21 -2
  93. package/confirmpopup/ConfirmPopup.d.ts +21 -2
  94. package/confirmpopup/confirmpopup.cjs.js +3 -3
  95. package/confirmpopup/confirmpopup.esm.js +3 -3
  96. package/confirmpopup/confirmpopup.js +3 -3
  97. package/contextmenu/ContextMenu.d.ts +54 -2
  98. package/contextmenu/ContextMenu.vue +13 -7
  99. package/contextmenu/ContextMenuSub.vue +34 -2
  100. package/contextmenu/contextmenu.cjs.js +41 -14
  101. package/contextmenu/contextmenu.cjs.min.js +1 -1
  102. package/contextmenu/contextmenu.esm.js +42 -15
  103. package/contextmenu/contextmenu.esm.min.js +1 -1
  104. package/contextmenu/contextmenu.js +41 -14
  105. package/contextmenu/contextmenu.min.js +1 -1
  106. package/core/core.js +256 -147
  107. package/core/core.min.js +12 -12
  108. package/datatable/BodyCell.vue +14 -4
  109. package/datatable/DataTable.d.ts +41 -3
  110. package/datatable/DataTable.vue +6 -3
  111. package/datatable/TableBody.vue +7 -8
  112. package/datatable/datatable.cjs.js +63 -57
  113. package/datatable/datatable.cjs.min.js +1 -1
  114. package/datatable/datatable.esm.js +63 -57
  115. package/datatable/datatable.esm.min.js +1 -1
  116. package/datatable/datatable.js +63 -57
  117. package/datatable/datatable.min.js +1 -1
  118. package/dataview/DataView.d.ts +21 -2
  119. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +21 -2
  120. package/deferredcontent/DeferredContent.d.ts +21 -2
  121. package/dialog/Dialog.d.ts +21 -2
  122. package/dialog/Dialog.vue +2 -2
  123. package/dialog/dialog.cjs.js +7 -5
  124. package/dialog/dialog.cjs.min.js +1 -1
  125. package/dialog/dialog.esm.js +8 -6
  126. package/dialog/dialog.esm.min.js +1 -1
  127. package/dialog/dialog.js +7 -5
  128. package/dialog/dialog.min.js +1 -1
  129. package/divider/Divider.d.ts +18 -2
  130. package/dock/Dock.d.ts +46 -2
  131. package/dock/Dock.vue +5 -0
  132. package/dock/DockSub.vue +20 -1
  133. package/dock/dock.cjs.js +21 -2
  134. package/dock/dock.cjs.min.js +1 -1
  135. package/dock/dock.esm.js +22 -3
  136. package/dock/dock.esm.min.js +1 -1
  137. package/dock/dock.js +21 -2
  138. package/dock/dock.min.js +1 -1
  139. package/dropdown/Dropdown.d.ts +24 -2
  140. package/dropdown/dropdown.cjs.js +6 -6
  141. package/dropdown/dropdown.esm.js +6 -6
  142. package/dropdown/dropdown.js +6 -6
  143. package/editor/Editor.d.ts +22 -2
  144. package/editor/editor.cjs.js +3 -3
  145. package/editor/editor.esm.js +3 -3
  146. package/editor/editor.js +3 -3
  147. package/fieldset/Fieldset.d.ts +21 -2
  148. package/fieldset/fieldset.cjs.js +4 -4
  149. package/fieldset/fieldset.esm.js +4 -4
  150. package/fieldset/fieldset.js +4 -4
  151. package/fileupload/FileContent.vue +8 -6
  152. package/fileupload/FileUpload.d.ts +21 -2
  153. package/fileupload/FileUpload.vue +9 -7
  154. package/fileupload/fileupload.cjs.js +17 -13
  155. package/fileupload/fileupload.cjs.min.js +1 -1
  156. package/fileupload/fileupload.esm.js +17 -13
  157. package/fileupload/fileupload.esm.min.js +1 -1
  158. package/fileupload/fileupload.js +17 -13
  159. package/fileupload/fileupload.min.js +1 -1
  160. package/focustrap/FocusTrap.d.ts +8 -2
  161. package/galleria/Galleria.d.ts +24 -2
  162. package/galleria/galleria.cjs.js +9 -9
  163. package/galleria/galleria.esm.js +9 -9
  164. package/galleria/galleria.js +9 -9
  165. package/image/Image.d.ts +21 -2
  166. package/image/image.cjs.js +3 -3
  167. package/image/image.esm.js +3 -3
  168. package/image/image.js +3 -3
  169. package/inlinemessage/InlineMessage.d.ts +21 -2
  170. package/inplace/Inplace.d.ts +21 -2
  171. package/inplace/inplace.cjs.js +3 -3
  172. package/inplace/inplace.esm.js +3 -3
  173. package/inplace/inplace.js +3 -3
  174. package/inputmask/InputMask.d.ts +21 -2
  175. package/inputmask/InputMask.vue +3 -1
  176. package/inputmask/inputmask.cjs.js +2 -1
  177. package/inputmask/inputmask.cjs.min.js +1 -1
  178. package/inputmask/inputmask.esm.js +2 -1
  179. package/inputmask/inputmask.esm.min.js +1 -1
  180. package/inputmask/inputmask.js +2 -1
  181. package/inputmask/inputmask.min.js +1 -1
  182. package/inputnumber/InputNumber.d.ts +21 -2
  183. package/inputnumber/inputnumber.cjs.js +6 -6
  184. package/inputnumber/inputnumber.esm.js +6 -6
  185. package/inputnumber/inputnumber.js +6 -6
  186. package/inputswitch/InputSwitch.d.ts +21 -2
  187. package/inputswitch/inputswitch.cjs.js +3 -3
  188. package/inputswitch/inputswitch.esm.js +3 -3
  189. package/inputswitch/inputswitch.js +3 -3
  190. package/inputtext/InputText.d.ts +21 -2
  191. package/knob/Knob.d.ts +21 -2
  192. package/listbox/Listbox.d.ts +24 -2
  193. package/listbox/listbox.cjs.js +3 -3
  194. package/listbox/listbox.esm.js +3 -3
  195. package/listbox/listbox.js +3 -3
  196. package/megamenu/MegaMenu.d.ts +58 -2
  197. package/megamenu/MegaMenu.vue +6 -30
  198. package/megamenu/MegaMenuSub.vue +34 -3
  199. package/megamenu/megamenu.cjs.js +36 -39
  200. package/megamenu/megamenu.cjs.min.js +1 -1
  201. package/megamenu/megamenu.esm.js +37 -40
  202. package/megamenu/megamenu.esm.min.js +1 -1
  203. package/megamenu/megamenu.js +36 -39
  204. package/megamenu/megamenu.min.js +1 -1
  205. package/menu/Menu.d.ts +60 -2
  206. package/menu/Menu.vue +6 -1
  207. package/menu/Menuitem.vue +26 -1
  208. package/menu/menu.cjs.js +29 -7
  209. package/menu/menu.cjs.min.js +1 -1
  210. package/menu/menu.esm.js +30 -8
  211. package/menu/menu.esm.min.js +1 -1
  212. package/menu/menu.js +29 -7
  213. package/menu/menu.min.js +1 -1
  214. package/menubar/Menubar.d.ts +62 -2
  215. package/menubar/Menubar.vue +6 -0
  216. package/menubar/MenubarSub.vue +32 -1
  217. package/menubar/menubar.cjs.js +34 -6
  218. package/menubar/menubar.cjs.min.js +1 -1
  219. package/menubar/menubar.esm.js +35 -7
  220. package/menubar/menubar.esm.min.js +1 -1
  221. package/menubar/menubar.js +34 -6
  222. package/menubar/menubar.min.js +1 -1
  223. package/menuitem/MenuItem.d.ts +1 -0
  224. package/message/Message.d.ts +21 -2
  225. package/message/message.cjs.js +3 -3
  226. package/message/message.esm.js +3 -3
  227. package/message/message.js +3 -3
  228. package/multiselect/MultiSelect.d.ts +24 -2
  229. package/multiselect/multiselect.cjs.js +6 -6
  230. package/multiselect/multiselect.esm.js +6 -6
  231. package/multiselect/multiselect.js +6 -6
  232. package/orderlist/OrderList.d.ts +24 -2
  233. package/orderlist/OrderList.vue +7 -5
  234. package/orderlist/orderlist.cjs.js +10 -8
  235. package/orderlist/orderlist.cjs.min.js +1 -1
  236. package/orderlist/orderlist.esm.js +10 -8
  237. package/orderlist/orderlist.esm.min.js +1 -1
  238. package/orderlist/orderlist.js +10 -8
  239. package/orderlist/orderlist.min.js +1 -1
  240. package/organizationchart/OrganizationChart.d.ts +24 -2
  241. package/organizationchart/organizationchart.cjs.js +4 -4
  242. package/organizationchart/organizationchart.esm.js +4 -4
  243. package/organizationchart/organizationchart.js +4 -4
  244. package/overlaypanel/OverlayPanel.d.ts +21 -2
  245. package/overlaypanel/overlaypanel.cjs.js +3 -3
  246. package/overlaypanel/overlaypanel.esm.js +3 -3
  247. package/overlaypanel/overlaypanel.js +3 -3
  248. package/package.json +1 -1
  249. package/paginator/FirstPageLink.vue +1 -1
  250. package/paginator/JumpToPageDropdown.vue +1 -0
  251. package/paginator/LastPageLink.vue +1 -1
  252. package/paginator/NextPageLink.vue +1 -1
  253. package/paginator/Paginator.d.ts +24 -2
  254. package/paginator/PrevPageLink.vue +1 -1
  255. package/paginator/RowsPerPageDropdown.vue +1 -0
  256. package/paginator/paginator.cjs.js +19 -9
  257. package/paginator/paginator.cjs.min.js +1 -1
  258. package/paginator/paginator.esm.js +19 -9
  259. package/paginator/paginator.esm.min.js +1 -1
  260. package/paginator/paginator.js +19 -9
  261. package/paginator/paginator.min.js +1 -1
  262. package/panel/Panel.d.ts +21 -2
  263. package/panel/panel.cjs.js +3 -3
  264. package/panel/panel.esm.js +3 -3
  265. package/panel/panel.js +3 -3
  266. package/panelmenu/PanelMenu.d.ts +58 -2
  267. package/panelmenu/PanelMenu.vue +6 -0
  268. package/panelmenu/PanelMenuList.vue +1 -0
  269. package/panelmenu/PanelMenuSub.vue +33 -1
  270. package/panelmenu/panelmenu.cjs.js +41 -12
  271. package/panelmenu/panelmenu.cjs.min.js +1 -1
  272. package/panelmenu/panelmenu.esm.js +42 -13
  273. package/panelmenu/panelmenu.esm.min.js +1 -1
  274. package/panelmenu/panelmenu.js +41 -12
  275. package/panelmenu/panelmenu.min.js +1 -1
  276. package/passthrough/index.cjs.js +15 -9
  277. package/passthrough/index.cjs.min.js +1 -1
  278. package/passthrough/index.d.ts +4 -4
  279. package/passthrough/index.esm.js +15 -9
  280. package/passthrough/index.esm.min.js +1 -1
  281. package/passthrough/index.js +15 -9
  282. package/passthrough/index.min.js +1 -1
  283. package/passthrough/tailwind/index.cjs.js +3 -3
  284. package/passthrough/tailwind/index.cjs.min.js +1 -1
  285. package/passthrough/tailwind/index.esm.js +3 -3
  286. package/passthrough/tailwind/index.esm.min.js +1 -1
  287. package/passthrough/tailwind/index.js +3 -3
  288. package/passthrough/tailwind/index.min.js +1 -1
  289. package/password/Password.d.ts +21 -2
  290. package/password/password.cjs.js +3 -3
  291. package/password/password.esm.js +3 -3
  292. package/password/password.js +3 -3
  293. package/picklist/PickList.d.ts +24 -2
  294. package/picklist/PickList.vue +8 -5
  295. package/picklist/picklist.cjs.js +10 -8
  296. package/picklist/picklist.cjs.min.js +1 -1
  297. package/picklist/picklist.esm.js +10 -8
  298. package/picklist/picklist.esm.min.js +1 -1
  299. package/picklist/picklist.js +10 -8
  300. package/picklist/picklist.min.js +1 -1
  301. package/progressbar/ProgressBar.d.ts +18 -2
  302. package/progressspinner/ProgressSpinner.d.ts +18 -2
  303. package/radiobutton/RadioButton.d.ts +21 -2
  304. package/radiobutton/radiobutton.cjs.js +3 -3
  305. package/radiobutton/radiobutton.esm.js +3 -3
  306. package/radiobutton/radiobutton.js +3 -3
  307. package/rating/Rating.d.ts +24 -2
  308. package/ripple/Ripple.d.ts +8 -2
  309. package/row/Row.d.ts +16 -0
  310. package/scrollpanel/ScrollPanel.d.ts +21 -2
  311. package/scrolltop/ScrollTop.d.ts +21 -2
  312. package/selectbutton/SelectButton.d.ts +24 -2
  313. package/sidebar/Sidebar.d.ts +21 -2
  314. package/sidebar/sidebar.cjs.js +3 -3
  315. package/sidebar/sidebar.esm.js +3 -3
  316. package/sidebar/sidebar.js +3 -3
  317. package/skeleton/Skeleton.d.ts +18 -2
  318. package/slider/Slider.d.ts +18 -2
  319. package/speeddial/SpeedDial.d.ts +24 -2
  320. package/speeddial/speeddial.cjs.js +4 -4
  321. package/speeddial/speeddial.esm.js +4 -4
  322. package/speeddial/speeddial.js +4 -4
  323. package/splitbutton/SplitButton.d.ts +35 -2
  324. package/splitbutton/SplitButton.vue +6 -2
  325. package/splitbutton/splitbutton.cjs.js +17 -9
  326. package/splitbutton/splitbutton.cjs.min.js +1 -1
  327. package/splitbutton/splitbutton.esm.js +18 -10
  328. package/splitbutton/splitbutton.esm.min.js +1 -1
  329. package/splitbutton/splitbutton.js +17 -9
  330. package/splitbutton/splitbutton.min.js +1 -1
  331. package/splitter/Splitter.d.ts +24 -2
  332. package/splitterpanel/SplitterPanel.d.ts +21 -2
  333. package/steps/Steps.d.ts +51 -2
  334. package/steps/Steps.vue +31 -1
  335. package/steps/steps.cjs.js +31 -3
  336. package/steps/steps.cjs.min.js +1 -1
  337. package/steps/steps.esm.js +31 -3
  338. package/steps/steps.esm.min.js +1 -1
  339. package/steps/steps.js +32 -4
  340. package/steps/steps.min.js +1 -1
  341. package/styleclass/StyleClass.d.ts +8 -2
  342. package/tabmenu/TabMenu.d.ts +50 -2
  343. package/tabmenu/TabMenu.vue +27 -1
  344. package/tabmenu/tabmenu.cjs.js +26 -3
  345. package/tabmenu/tabmenu.cjs.min.js +1 -1
  346. package/tabmenu/tabmenu.esm.js +26 -3
  347. package/tabmenu/tabmenu.esm.min.js +1 -1
  348. package/tabmenu/tabmenu.js +27 -4
  349. package/tabmenu/tabmenu.min.js +1 -1
  350. package/tabpanel/TabPanel.d.ts +24 -2
  351. package/tabview/TabView.d.ts +8 -2
  352. package/tabview/tabview.cjs.js +3 -3
  353. package/tabview/tabview.esm.js +3 -3
  354. package/tabview/tabview.js +3 -3
  355. package/tag/Tag.d.ts +18 -2
  356. package/terminal/Terminal.d.ts +21 -2
  357. package/textarea/Textarea.d.ts +21 -2
  358. package/tieredmenu/TieredMenu.d.ts +58 -2
  359. package/tieredmenu/TieredMenu.vue +6 -0
  360. package/tieredmenu/TieredMenuSub.vue +33 -1
  361. package/tieredmenu/tieredmenu.cjs.js +35 -7
  362. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  363. package/tieredmenu/tieredmenu.esm.js +36 -8
  364. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  365. package/tieredmenu/tieredmenu.js +35 -7
  366. package/tieredmenu/tieredmenu.min.js +1 -1
  367. package/timeline/Timeline.d.ts +21 -2
  368. package/toast/Toast.d.ts +21 -2
  369. package/toast/toast.cjs.js +7 -7
  370. package/toast/toast.esm.js +7 -7
  371. package/toast/toast.js +7 -7
  372. package/togglebutton/ToggleButton.d.ts +24 -2
  373. package/togglebutton/ToggleButton.vue +4 -4
  374. package/togglebutton/togglebutton.cjs.js +7 -7
  375. package/togglebutton/togglebutton.cjs.min.js +1 -1
  376. package/togglebutton/togglebutton.esm.js +7 -7
  377. package/togglebutton/togglebutton.esm.min.js +1 -1
  378. package/togglebutton/togglebutton.js +7 -7
  379. package/togglebutton/togglebutton.min.js +1 -1
  380. package/toolbar/Toolbar.d.ts +18 -2
  381. package/tooltip/Tooltip.d.ts +12 -2
  382. package/tooltip/tooltip.cjs.js +2 -2
  383. package/tooltip/tooltip.esm.js +2 -2
  384. package/tooltip/tooltip.js +2 -2
  385. package/tree/Tree.d.ts +24 -2
  386. package/tree/Tree.vue +1 -1
  387. package/tree/tree.cjs.js +7 -7
  388. package/tree/tree.cjs.min.js +1 -1
  389. package/tree/tree.esm.js +7 -7
  390. package/tree/tree.esm.min.js +1 -1
  391. package/tree/tree.js +7 -7
  392. package/tree/tree.min.js +1 -1
  393. package/treeselect/TreeSelect.d.ts +21 -2
  394. package/treeselect/treeselect.cjs.js +6 -6
  395. package/treeselect/treeselect.esm.js +6 -6
  396. package/treeselect/treeselect.js +6 -6
  397. package/treetable/BodyCell.vue +1 -1
  398. package/treetable/TreeTable.d.ts +24 -2
  399. package/treetable/TreeTableRow.vue +1 -1
  400. package/treetable/treetable.cjs.js +22 -20
  401. package/treetable/treetable.cjs.min.js +1 -1
  402. package/treetable/treetable.esm.js +22 -20
  403. package/treetable/treetable.esm.min.js +1 -1
  404. package/treetable/treetable.js +22 -20
  405. package/treetable/treetable.min.js +1 -1
  406. package/tristatecheckbox/TriStateCheckbox.d.ts +24 -2
  407. package/tristatecheckbox/tristatecheckbox.cjs.js +3 -3
  408. package/tristatecheckbox/tristatecheckbox.esm.js +3 -3
  409. package/tristatecheckbox/tristatecheckbox.js +3 -3
  410. package/ts-helpers.d.ts +2 -2
  411. package/utils/utils.cjs.js +30 -20
  412. package/utils/utils.cjs.min.js +1 -1
  413. package/utils/utils.esm.js +30 -20
  414. package/utils/utils.esm.min.js +1 -1
  415. package/utils/utils.js +30 -20
  416. package/utils/utils.min.js +1 -1
  417. package/vetur-attributes.json +1 -1
  418. package/virtualscroller/BaseVirtualScroller.vue +3 -3
  419. package/virtualscroller/VirtualScroller.d.ts +21 -2
  420. package/virtualscroller/virtualscroller.cjs.js +6 -6
  421. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  422. package/virtualscroller/virtualscroller.esm.js +6 -6
  423. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  424. package/virtualscroller/virtualscroller.js +6 -6
  425. package/virtualscroller/virtualscroller.min.js +1 -1
  426. package/web-types.json +13 -3
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/button"),t=require("primevue/icons/angledoubledown"),n=require("primevue/icons/angledoubleup"),i=require("primevue/icons/angledown"),o=require("primevue/icons/angleup"),r=require("primevue/ripple"),l=require("primevue/utils"),s=require("primevue/basecomponent"),d=require("primevue/usestyle"),a=require("vue");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=c(e),p=c(t),m=c(n),h=c(i),f=c(o),v=c(r),b=c(s),y=d.useStyle("\n.p-orderlist {\n display: flex;\n}\n\n.p-orderlist-controls {\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n\n.p-orderlist-list-container {\n flex: 1 1 auto;\n}\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\n.p-orderlist-item {\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n\n.p-orderlist.p-state-disabled .p-orderlist-item,\n.p-orderlist.p-state-disabled .p-button {\n cursor: default;\n}\n\n.p-orderlist.p-state-disabled .p-orderlist-list {\n overflow: hidden;\n}\n",{name:"orderlist",manual:!0});function g(e){return O(e)||D(e)||x(e)||I()}function I(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}function D(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function O(e){if(Array.isArray(e))return w(e)}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var S={name:"OrderList",extends:{name:"BaseOrderList",extends:b.default,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},tabindex:{type:Number,default:0},listProps:{type:null,default:null},moveUpButtonProps:{type:null,default:null},moveTopButtonProps:{type:null,default:null},moveDownButtonProps:{type:null,default:null},moveBottomButtonProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},css:{classes:{root:function(e){return["p-orderlist p-component",{"p-orderlist-striped":e.props.stripedRows}]},controls:"p-orderlist-controls",header:"p-orderlist-header",container:"p-orderlist-list-container",list:"p-orderlist-list",item:function(e){var t=e.instance,n=e.id;return["p-orderlist-item",{"p-highlight":t.isSelected(e.item),"p-focus":n===t.focusedOptionId}]}},loadStyle:y.load},provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","reorder","update:selection","selection-change","focus","blur"],itemTouched:!1,reorderDirection:null,styleElement:null,list:null,data:function(){return{id:this.$attrs.id,d_selection:this.selection,focused:!1,focusedOptionIndex:-1}},watch:{"$attrs.id":function(e){this.id=e||l.UniqueComponentId()}},beforeUnmount:function(){this.destroyStyle()},updated:function(){this.reorderDirection&&(this.updateListScroll(),this.reorderDirection=null)},mounted:function(){this.id=this.id||l.UniqueComponentId(),this.responsive&&this.createStyle()},methods:{getItemKey:function(e,t){return this.dataKey?l.ObjectUtils.resolveFieldData(e,this.dataKey):t},getPTOptions:function(e,t,n){return this.ptm(t,{context:{active:this.isSelected(e),focused:"".concat(this.id,"_").concat(n)===this.focusedOptionId}})},isSelected:function(e){return-1!=l.ObjectUtils.findIndexInList(e,this.d_selection)},onListFocus:function(e){var t=l.DomHandler.findSingle(this.list,'[data-p-highlight="true"]'),n=l.ObjectUtils.findIndexInList(t,this.list.children);this.focused=!0,this.changeFocusedOptionIndex(-1!==this.focusedOptionIndex?this.focusedOptionIndex:t?n:-1),this.$emit("focus",e)},onListBlur:function(e){this.focused=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onListKeyDown:function(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Enter":this.onEnterKey(e);break;case"Space":this.onSpaceKey(e);break;case"KeyA":e.ctrlKey&&(this.d_selection=g(this.modelValue),this.$emit("update:selection",this.d_selection))}},onOptionMouseDown:function(e){this.focused=!0,this.focusedOptionIndex=e},onArrowDownKey:function(e){var t=this.findNextOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(t),e.shiftKey&&this.onEnterKey(e),e.preventDefault()},onArrowUpKey:function(e){var t=this.findPrevOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(t),e.shiftKey&&this.onEnterKey(e),e.preventDefault()},onHomeKey:function(e){if(e.ctrlKey&&e.shiftKey){var t=l.DomHandler.find(this.list,'[data-pc-section="item"]'),n=l.DomHandler.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),i=g(t).findIndex((function(e){return e===n}));this.d_selection=g(this.modelValue).slice(0,i+1),this.$emit("update:selection",this.d_selection)}else this.changeFocusedOptionIndex(0);e.preventDefault()},onEndKey:function(e){if(e.ctrlKey&&e.shiftKey){var t=l.DomHandler.find(this.list,'[data-pc-section="item"]'),n=l.DomHandler.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),i=g(t).findIndex((function(e){return e===n}));this.d_selection=g(this.modelValue).slice(i,t.length),this.$emit("update:selection",this.d_selection)}else this.changeFocusedOptionIndex(l.DomHandler.find(this.list,'[data-pc-section="item"]').length-1);e.preventDefault()},onEnterKey:function(e){var t=l.DomHandler.find(this.list,'[data-pc-section="item"]'),n=l.DomHandler.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),i=g(t).findIndex((function(e){return e===n}));this.onItemClick(e,this.modelValue[i],i),e.preventDefault()},onSpaceKey:function(e){if(e.shiftKey){var t=l.DomHandler.find(this.list,'[data-pc-section="item"]'),n=l.ObjectUtils.findIndexInList(this.d_selection[0],g(this.modelValue)),i=l.DomHandler.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),o=g(t).findIndex((function(e){return e===i}));this.d_selection=g(this.modelValue).slice(Math.min(n,o),Math.max(n,o)+1),this.$emit("update:selection",this.d_selection)}else this.onEnterKey(e)},findNextOptionIndex:function(e){var t=g(l.DomHandler.find(this.list,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return t>-1?t+1:0},findPrevOptionIndex:function(e){var t=g(l.DomHandler.find(this.list,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return t>-1?t-1:0},changeFocusedOptionIndex:function(e){var t=l.DomHandler.find(this.list,'[data-pc-section="item"]'),n=e>=t.length?t.length-1:e<0?0:e;this.focusedOptionIndex=t[n]?t[n].getAttribute("id"):-1,this.scrollInView(this.focusedOptionIndex)},scrollInView:function(e){var t=l.DomHandler.findSingle(this.list,'[data-pc-section="item"][id="'.concat(e,'"]'));t&&t.scrollIntoView&&t.scrollIntoView({block:"nearest",inline:"start"})},moveUp:function(e){if(this.d_selection){for(var t=g(this.modelValue),n=0;n<this.d_selection.length;n++){var i=l.ObjectUtils.findIndexInList(this.d_selection[n],t);if(0===i)break;var o=t[i-1];t[i-1]=t[i],t[i]=o}this.reorderDirection="up",this.$emit("update:modelValue",t),this.$emit("reorder",{originalEvent:e,value:t,direction:this.reorderDirection})}},moveTop:function(e){if(this.d_selection){for(var t=g(this.modelValue),n=0;n<this.d_selection.length;n++){var i=l.ObjectUtils.findIndexInList(this.d_selection[n],t);if(0===i)break;var o=t.splice(i,1)[0];t.unshift(o)}this.reorderDirection="top",this.$emit("update:modelValue",t),this.$emit("reorder",{originalEvent:e,value:t,direction:this.reorderDirection})}},moveDown:function(e){if(this.d_selection){for(var t=g(this.modelValue),n=this.d_selection.length-1;n>=0;n--){var i=l.ObjectUtils.findIndexInList(this.d_selection[n],t);if(i===t.length-1)break;var o=t[i+1];t[i+1]=t[i],t[i]=o}this.reorderDirection="down",this.$emit("update:modelValue",t),this.$emit("reorder",{originalEvent:e,value:t,direction:this.reorderDirection})}},moveBottom:function(e){if(this.d_selection){for(var t=g(this.modelValue),n=this.d_selection.length-1;n>=0;n--){var i=l.ObjectUtils.findIndexInList(this.d_selection[n],t);if(i===t.length-1)break;var o=t.splice(i,1)[0];t.push(o)}this.reorderDirection="bottom",this.$emit("update:modelValue",t),this.$emit("reorder",{originalEvent:e,value:t,direction:this.reorderDirection})}},onItemClick:function(e,t,n){this.itemTouched=!1;var i=l.ObjectUtils.findIndexInList(t,this.d_selection),o=-1!=i,r=!this.itemTouched&&this.metaKeySelection,s=l.DomHandler.find(this.list,'[data-pc-section="item"]')[n].getAttribute("id");if(this.focusedOptionIndex=s,r){var d=e.metaKey||e.ctrlKey;o&&d?this.d_selection=this.d_selection.filter((function(e,t){return t!==i})):(this.d_selection=d&&this.d_selection?g(this.d_selection):[],l.ObjectUtils.insertIntoOrderedArray(t,n,this.d_selection,this.modelValue))}else o?this.d_selection=this.d_selection.filter((function(e,t){return t!==i})):(this.d_selection=this.d_selection?g(this.d_selection):[],l.ObjectUtils.insertIntoOrderedArray(t,n,this.d_selection,this.modelValue));this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})},onItemTouchEnd:function(){this.itemTouched=!0},findNextItem:function(e){var t=e.nextElementSibling;return t?"item"!==l.DomHandler.getAttribute(t,"data-pc-section")?this.findNextItem(t):t:null},findPrevItem:function(e){var t=e.previousElementSibling;return t?"item"!==l.DomHandler.getAttribute(nextItem,"data-pc-section")?this.findPrevItem(t):t:null},updateListScroll:function(){var e=l.DomHandler.find(this.list,'[data-pc-section="item"][data-p-highlight="true"]');if(e&&e.length)switch(this.reorderDirection){case"up":l.DomHandler.scrollInView(this.list,e[0]);break;case"top":this.list.scrollTop=0;break;case"down":l.DomHandler.scrollInView(this.list,e[e.length-1]);break;case"bottom":this.list.scrollTop=this.list.scrollHeight}},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.$el.setAttribute(this.attributeSelector,""),this.styleElement=document.createElement("style"),this.styleElement.type="text/css",l.DomHandler.setAttribute(this.styleElement,"nonce",null===(e=this.$primevue)||void 0===e||null===(e=e.config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce),document.head.appendChild(this.styleElement);var t="\n@media screen and (max-width: ".concat(this.breakpoint,") {\n .p-orderlist[").concat(this.attributeSelector,"] {\n flex-direction: column;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls .p-button:last-child {\n margin-right: 0;\n }\n}\n");this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},moveDisabled:function(){if(!this.d_selection||!this.d_selection.length)return!0},listRef:function(e){this.list=e?e.$el:void 0}},computed:{attributeSelector:function(){return l.UniqueComponentId()},focusedOptionId:function(){return-1!==this.focusedOptionIndex?this.focusedOptionIndex:null},moveUpAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveUp:void 0},moveTopAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveTop:void 0},moveDownAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveDown:void 0},moveBottomAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveBottom:void 0}},components:{OLButton:u.default,AngleUpIcon:f.default,AngleDownIcon:h.default,AngleDoubleUpIcon:m.default,AngleDoubleDownIcon:p.default},directives:{ripple:v.default}};function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return(t=A(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e){var t=E(e,"string");return"symbol"===_(t)?t:String(t)}function E(e,t){if("object"!==_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==_(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var $=["id","onClick","aria-selected","onMousedown","data-p-highlight","data-p-focused"];S.render=function(e,t,n,i,o,r){var l=a.resolveComponent("AngleUpIcon"),s=a.resolveComponent("OLButton"),d=a.resolveComponent("AngleDoubleUpIcon"),c=a.resolveComponent("AngleDownIcon"),u=a.resolveComponent("AngleDoubleDownIcon"),p=a.resolveDirective("ripple");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:e.cx("root")},e.ptm("root")),[a.createElementVNode("div",a.mergeProps({class:e.cx("controls")},e.ptm("controls")),[a.renderSlot(e.$slots,"controlsstart"),a.createVNode(s,a.mergeProps({type:"button",onClick:r.moveUp,"aria-label":r.moveUpAriaLabel,disabled:r.moveDisabled(),pt:e.ptm("moveUpButton")},e.moveUpButtonProps,{unstyled:e.unstyled}),{icon:a.withCtx((function(){return[a.renderSlot(e.$slots,"moveupicon",{},(function(){return[a.createVNode(l,a.normalizeProps(a.guardReactiveProps(e.ptm("moveUpButton").icon)),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),a.createVNode(s,a.mergeProps({type:"button",onClick:r.moveTop,"aria-label":r.moveTopAriaLabel,disabled:r.moveDisabled(),pt:e.ptm("moveTopButton")},e.ptm("moveTopButton"),{unstyled:e.unstyled}),{icon:a.withCtx((function(){return[a.renderSlot(e.$slots,"movetopicon",{},(function(){return[a.createVNode(d,a.normalizeProps(a.guardReactiveProps(e.ptm("moveTopButton").icon)),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),a.createVNode(s,a.mergeProps({type:"button",onClick:r.moveDown,"aria-label":r.moveDownAriaLabel,disabled:r.moveDisabled(),pt:e.ptm("moveDownButton")},e.moveDownButtonProps,{unstyled:e.unstyled}),{icon:a.withCtx((function(){return[a.renderSlot(e.$slots,"movedownicon",{},(function(){return[a.createVNode(c,a.normalizeProps(a.guardReactiveProps(e.ptm("moveDownButton").icon)),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),a.createVNode(s,a.mergeProps({type:"button",onClick:r.moveBottom,"aria-label":r.moveBottomAriaLabel,disabled:r.moveDisabled(),pt:e.ptm("moveBottomButton")},e.moveBottomButtonProps,{unstyled:e.unstyled}),{icon:a.withCtx((function(){return[a.renderSlot(e.$slots,"movebottomicon",{},(function(){return[a.createVNode(u,a.normalizeProps(a.guardReactiveProps(e.ptm("moveBottomButton").icon)),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),a.renderSlot(e.$slots,"controlsend")],16),a.createElementVNode("div",a.mergeProps({class:e.cx("container")},e.ptm("container")),[e.$slots.header?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:e.cx("header")},e.ptm("header")),[a.renderSlot(e.$slots,"header")],16)):a.createCommentVNode("",!0),a.createVNode(a.TransitionGroup,a.mergeProps({ref:r.listRef,id:o.id+"_list",name:"p-orderlist-flip",tag:"ul",class:e.cx("list"),style:e.listStyle,role:"listbox","aria-multiselectable":"true",tabindex:e.tabindex,"aria-activedescendant":o.focused?r.focusedOptionId:void 0,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,onFocus:r.onListFocus,onBlur:r.onListBlur,onKeydown:r.onListKeyDown},B(B(B({},e.listProps),e.ptm("list")),e.ptm("transition"))),{default:a.withCtx((function(){return[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.modelValue,(function(n,i){return a.withDirectives((a.openBlock(),a.createElementBlock("li",a.mergeProps({key:r.getItemKey(n,i),id:o.id+"_"+i,role:"option",class:e.cx("item",{item:n,id:"".concat(o.id,"_").concat(i)}),onClick:function(e){return r.onItemClick(e,n,i)},onTouchend:t[0]||(t[0]=function(){return r.onItemTouchEnd&&r.onItemTouchEnd.apply(r,arguments)}),"aria-selected":r.isSelected(n),onMousedown:function(e){return r.onOptionMouseDown(i)}},r.getPTOptions(n,"item",i),{"data-p-highlight":r.isSelected(n),"data-p-focused":"".concat(o.id,"_").concat(i)===r.focusedOptionId}),[a.renderSlot(e.$slots,"item",{item:n,index:i})],16,$)),[[p]])})),128))]})),_:3},16,["id","class","style","tabindex","aria-activedescendant","aria-label","aria-labelledby","onFocus","onBlur","onKeydown"])],16)],16)},module.exports=S;
1
+ "use strict";var e=require("primevue/button"),t=require("primevue/icons/angledoubledown"),n=require("primevue/icons/angledoubleup"),i=require("primevue/icons/angledown"),o=require("primevue/icons/angleup"),r=require("primevue/ripple"),l=require("primevue/utils"),s=require("primevue/basecomponent"),d=require("primevue/usestyle"),a=require("vue");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=c(e),p=c(t),m=c(n),h=c(i),f=c(o),v=c(r),b=c(s),y=d.useStyle("\n.p-orderlist {\n display: flex;\n}\n\n.p-orderlist-controls {\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n\n.p-orderlist-list-container {\n flex: 1 1 auto;\n}\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\n.p-orderlist-item {\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n\n.p-orderlist.p-state-disabled .p-orderlist-item,\n.p-orderlist.p-state-disabled .p-button {\n cursor: default;\n}\n\n.p-orderlist.p-state-disabled .p-orderlist-list {\n overflow: hidden;\n}\n",{name:"orderlist",manual:!0});function g(e){return O(e)||D(e)||x(e)||I()}function I(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}function D(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function O(e){if(Array.isArray(e))return w(e)}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var S={name:"OrderList",extends:{name:"BaseOrderList",extends:b.default,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},tabindex:{type:Number,default:0},listProps:{type:null,default:null},moveUpButtonProps:{type:null,default:null},moveTopButtonProps:{type:null,default:null},moveDownButtonProps:{type:null,default:null},moveBottomButtonProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},css:{classes:{root:function(e){return["p-orderlist p-component",{"p-orderlist-striped":e.props.stripedRows}]},controls:"p-orderlist-controls",header:"p-orderlist-header",container:"p-orderlist-list-container",list:"p-orderlist-list",item:function(e){var t=e.instance,n=e.id;return["p-orderlist-item",{"p-highlight":t.isSelected(e.item),"p-focus":n===t.focusedOptionId}]}},loadStyle:y.load},provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","reorder","update:selection","selection-change","focus","blur"],itemTouched:!1,reorderDirection:null,styleElement:null,list:null,data:function(){return{id:this.$attrs.id,d_selection:this.selection,focused:!1,focusedOptionIndex:-1}},watch:{"$attrs.id":function(e){this.id=e||l.UniqueComponentId()}},beforeUnmount:function(){this.destroyStyle()},updated:function(){this.reorderDirection&&(this.updateListScroll(),this.reorderDirection=null)},mounted:function(){this.id=this.id||l.UniqueComponentId(),this.responsive&&this.createStyle()},methods:{getItemKey:function(e,t){return this.dataKey?l.ObjectUtils.resolveFieldData(e,this.dataKey):t},getPTOptions:function(e,t,n){return this.ptm(t,{context:{active:this.isSelected(e),focused:"".concat(this.id,"_").concat(n)===this.focusedOptionId}})},isSelected:function(e){return-1!=l.ObjectUtils.findIndexInList(e,this.d_selection)},onListFocus:function(e){var t=l.DomHandler.findSingle(this.list,'[data-p-highlight="true"]');if(t){var n=l.ObjectUtils.findIndexInList(t,this.list.children);this.focused=!0,this.changeFocusedOptionIndex(-1!==this.focusedOptionIndex?this.focusedOptionIndex:t?n:-1),this.$emit("focus",e)}},onListBlur:function(e){this.focused=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onListKeyDown:function(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Enter":this.onEnterKey(e);break;case"Space":this.onSpaceKey(e);break;case"KeyA":e.ctrlKey&&(this.d_selection=g(this.modelValue),this.$emit("update:selection",this.d_selection))}},onOptionMouseDown:function(e){this.focused=!0,this.focusedOptionIndex=e},onArrowDownKey:function(e){var t=this.findNextOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(t),e.shiftKey&&this.onEnterKey(e),e.preventDefault()},onArrowUpKey:function(e){var t=this.findPrevOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(t),e.shiftKey&&this.onEnterKey(e),e.preventDefault()},onHomeKey:function(e){if(e.ctrlKey&&e.shiftKey){var t=l.DomHandler.find(this.list,'[data-pc-section="item"]'),n=l.DomHandler.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),i=g(t).findIndex((function(e){return e===n}));this.d_selection=g(this.modelValue).slice(0,i+1),this.$emit("update:selection",this.d_selection)}else this.changeFocusedOptionIndex(0);e.preventDefault()},onEndKey:function(e){if(e.ctrlKey&&e.shiftKey){var t=l.DomHandler.find(this.list,'[data-pc-section="item"]'),n=l.DomHandler.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),i=g(t).findIndex((function(e){return e===n}));this.d_selection=g(this.modelValue).slice(i,t.length),this.$emit("update:selection",this.d_selection)}else this.changeFocusedOptionIndex(l.DomHandler.find(this.list,'[data-pc-section="item"]').length-1);e.preventDefault()},onEnterKey:function(e){var t=l.DomHandler.find(this.list,'[data-pc-section="item"]'),n=l.DomHandler.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),i=g(t).findIndex((function(e){return e===n}));this.onItemClick(e,this.modelValue[i],i),e.preventDefault()},onSpaceKey:function(e){if(e.shiftKey){var t=l.DomHandler.find(this.list,'[data-pc-section="item"]'),n=l.ObjectUtils.findIndexInList(this.d_selection[0],g(this.modelValue)),i=l.DomHandler.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),o=g(t).findIndex((function(e){return e===i}));this.d_selection=g(this.modelValue).slice(Math.min(n,o),Math.max(n,o)+1),this.$emit("update:selection",this.d_selection)}else this.onEnterKey(e)},findNextOptionIndex:function(e){var t=g(l.DomHandler.find(this.list,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return t>-1?t+1:0},findPrevOptionIndex:function(e){var t=g(l.DomHandler.find(this.list,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return t>-1?t-1:0},changeFocusedOptionIndex:function(e){var t=l.DomHandler.find(this.list,'[data-pc-section="item"]'),n=e>=t.length?t.length-1:e<0?0:e;this.focusedOptionIndex=t[n]?t[n].getAttribute("id"):-1,this.scrollInView(this.focusedOptionIndex)},scrollInView:function(e){var t=l.DomHandler.findSingle(this.list,'[data-pc-section="item"][id="'.concat(e,'"]'));t&&t.scrollIntoView&&t.scrollIntoView({block:"nearest",inline:"start"})},moveUp:function(e){if(this.d_selection){for(var t=g(this.modelValue),n=0;n<this.d_selection.length;n++){var i=l.ObjectUtils.findIndexInList(this.d_selection[n],t);if(0===i)break;var o=t[i-1];t[i-1]=t[i],t[i]=o}this.reorderDirection="up",this.$emit("update:modelValue",t),this.$emit("reorder",{originalEvent:e,value:t,direction:this.reorderDirection})}},moveTop:function(e){if(this.d_selection){for(var t=g(this.modelValue),n=0;n<this.d_selection.length;n++){var i=l.ObjectUtils.findIndexInList(this.d_selection[n],t);if(0===i)break;var o=t.splice(i,1)[0];t.unshift(o)}this.reorderDirection="top",this.$emit("update:modelValue",t),this.$emit("reorder",{originalEvent:e,value:t,direction:this.reorderDirection})}},moveDown:function(e){if(this.d_selection){for(var t=g(this.modelValue),n=this.d_selection.length-1;n>=0;n--){var i=l.ObjectUtils.findIndexInList(this.d_selection[n],t);if(i===t.length-1)break;var o=t[i+1];t[i+1]=t[i],t[i]=o}this.reorderDirection="down",this.$emit("update:modelValue",t),this.$emit("reorder",{originalEvent:e,value:t,direction:this.reorderDirection})}},moveBottom:function(e){if(this.d_selection){for(var t=g(this.modelValue),n=this.d_selection.length-1;n>=0;n--){var i=l.ObjectUtils.findIndexInList(this.d_selection[n],t);if(i===t.length-1)break;var o=t.splice(i,1)[0];t.push(o)}this.reorderDirection="bottom",this.$emit("update:modelValue",t),this.$emit("reorder",{originalEvent:e,value:t,direction:this.reorderDirection})}},onItemClick:function(e,t,n){this.itemTouched=!1;var i=l.ObjectUtils.findIndexInList(t,this.d_selection),o=-1!=i,r=!this.itemTouched&&this.metaKeySelection,s=l.DomHandler.find(this.list,'[data-pc-section="item"]')[n].getAttribute("id");if(this.focusedOptionIndex=s,r){var d=e.metaKey||e.ctrlKey;o&&d?this.d_selection=this.d_selection.filter((function(e,t){return t!==i})):(this.d_selection=d&&this.d_selection?g(this.d_selection):[],l.ObjectUtils.insertIntoOrderedArray(t,n,this.d_selection,this.modelValue))}else o?this.d_selection=this.d_selection.filter((function(e,t){return t!==i})):(this.d_selection=this.d_selection?g(this.d_selection):[],l.ObjectUtils.insertIntoOrderedArray(t,n,this.d_selection,this.modelValue));this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})},onItemTouchEnd:function(){this.itemTouched=!0},findNextItem:function(e){var t=e.nextElementSibling;return t?"item"!==l.DomHandler.getAttribute(t,"data-pc-section")?this.findNextItem(t):t:null},findPrevItem:function(e){var t=e.previousElementSibling;return t?"item"!==l.DomHandler.getAttribute(nextItem,"data-pc-section")?this.findPrevItem(t):t:null},updateListScroll:function(){var e=l.DomHandler.find(this.list,'[data-pc-section="item"][data-p-highlight="true"]');if(e&&e.length)switch(this.reorderDirection){case"up":l.DomHandler.scrollInView(this.list,e[0]);break;case"top":this.list.scrollTop=0;break;case"down":l.DomHandler.scrollInView(this.list,e[e.length-1]);break;case"bottom":this.list.scrollTop=this.list.scrollHeight}},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.$el.setAttribute(this.attributeSelector,""),this.styleElement=document.createElement("style"),this.styleElement.type="text/css",l.DomHandler.setAttribute(this.styleElement,"nonce",null===(e=this.$primevue)||void 0===e||null===(e=e.config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce),document.head.appendChild(this.styleElement);var t="\n@media screen and (max-width: ".concat(this.breakpoint,") {\n .p-orderlist[").concat(this.attributeSelector,"] {\n flex-direction: column;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls .p-button:last-child {\n margin-right: 0;\n }\n}\n");this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},moveDisabled:function(){if(!this.d_selection||!this.d_selection.length)return!0},listRef:function(e){this.list=e?e.$el:void 0}},computed:{attributeSelector:function(){return l.UniqueComponentId()},focusedOptionId:function(){return-1!==this.focusedOptionIndex?this.focusedOptionIndex:null},moveUpAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveUp:void 0},moveTopAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveTop:void 0},moveDownAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveDown:void 0},moveBottomAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveBottom:void 0}},components:{OLButton:u.default,AngleUpIcon:f.default,AngleDownIcon:h.default,AngleDoubleUpIcon:m.default,AngleDoubleDownIcon:p.default},directives:{ripple:v.default}};function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return(t=A(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e){var t=E(e,"string");return"symbol"===_(t)?t:String(t)}function E(e,t){if("object"!==_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==_(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var $=["id","onClick","aria-selected","onMousedown","data-p-highlight","data-p-focused"];S.render=function(e,t,n,i,o,r){var l=a.resolveComponent("AngleUpIcon"),s=a.resolveComponent("OLButton"),d=a.resolveComponent("AngleDoubleUpIcon"),c=a.resolveComponent("AngleDownIcon"),u=a.resolveComponent("AngleDoubleDownIcon"),p=a.resolveDirective("ripple");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:e.cx("root")},e.ptm("root")),[a.createElementVNode("div",a.mergeProps({class:e.cx("controls")},e.ptm("controls")),[a.renderSlot(e.$slots,"controlsstart"),a.createVNode(s,a.mergeProps({type:"button",onClick:r.moveUp,"aria-label":r.moveUpAriaLabel,disabled:r.moveDisabled(),pt:e.ptm("moveUpButton")},e.moveUpButtonProps,{unstyled:e.unstyled}),{icon:a.withCtx((function(){return[a.renderSlot(e.$slots,"moveupicon",{},(function(){return[a.createVNode(l,a.normalizeProps(a.guardReactiveProps(e.ptm("moveUpButton").icon)),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),a.createVNode(s,a.mergeProps({type:"button",onClick:r.moveTop,"aria-label":r.moveTopAriaLabel,disabled:r.moveDisabled(),pt:e.ptm("moveTopButton")},e.ptm("moveTopButton"),{unstyled:e.unstyled}),{icon:a.withCtx((function(){return[a.renderSlot(e.$slots,"movetopicon",{},(function(){return[a.createVNode(d,a.normalizeProps(a.guardReactiveProps(e.ptm("moveTopButton").icon)),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),a.createVNode(s,a.mergeProps({type:"button",onClick:r.moveDown,"aria-label":r.moveDownAriaLabel,disabled:r.moveDisabled(),pt:e.ptm("moveDownButton")},e.moveDownButtonProps,{unstyled:e.unstyled}),{icon:a.withCtx((function(){return[a.renderSlot(e.$slots,"movedownicon",{},(function(){return[a.createVNode(c,a.normalizeProps(a.guardReactiveProps(e.ptm("moveDownButton").icon)),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),a.createVNode(s,a.mergeProps({type:"button",onClick:r.moveBottom,"aria-label":r.moveBottomAriaLabel,disabled:r.moveDisabled(),pt:e.ptm("moveBottomButton")},e.moveBottomButtonProps,{unstyled:e.unstyled}),{icon:a.withCtx((function(){return[a.renderSlot(e.$slots,"movebottomicon",{},(function(){return[a.createVNode(u,a.normalizeProps(a.guardReactiveProps(e.ptm("moveBottomButton").icon)),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),a.renderSlot(e.$slots,"controlsend")],16),a.createElementVNode("div",a.mergeProps({class:e.cx("container")},e.ptm("container")),[e.$slots.header?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:e.cx("header")},e.ptm("header")),[a.renderSlot(e.$slots,"header")],16)):a.createCommentVNode("",!0),a.createVNode(a.TransitionGroup,a.mergeProps({ref:r.listRef,id:o.id+"_list",name:"p-orderlist-flip",tag:"ul",class:e.cx("list"),style:e.listStyle,role:"listbox","aria-multiselectable":"true",tabindex:e.tabindex,"aria-activedescendant":o.focused?r.focusedOptionId:void 0,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,onFocus:r.onListFocus,onBlur:r.onListBlur,onKeydown:r.onListKeyDown},B(B(B({},e.listProps),e.ptm("list")),e.ptm("transition"))),{default:a.withCtx((function(){return[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.modelValue,(function(n,i){return a.withDirectives((a.openBlock(),a.createElementBlock("li",a.mergeProps({key:r.getItemKey(n,i),id:o.id+"_"+i,role:"option",class:e.cx("item",{item:n,id:"".concat(o.id,"_").concat(i)}),onClick:function(e){return r.onItemClick(e,n,i)},onTouchend:t[0]||(t[0]=function(){return r.onItemTouchEnd&&r.onItemTouchEnd.apply(r,arguments)}),"aria-selected":r.isSelected(n),onMousedown:function(e){return r.onOptionMouseDown(i)}},r.getPTOptions(n,"item",i),{"data-p-highlight":r.isSelected(n),"data-p-focused":"".concat(o.id,"_").concat(i)===r.focusedOptionId}),[a.renderSlot(e.$slots,"item",{item:n,index:i})],16,$)),[[p]])})),128))]})),_:3},16,["id","class","style","tabindex","aria-activedescendant","aria-label","aria-labelledby","onFocus","onBlur","onKeydown"])],16)],16)},module.exports=S;
@@ -175,11 +175,13 @@ var script = {
175
175
  },
176
176
  onListFocus: function onListFocus(event) {
177
177
  var selectedFirstItem = DomHandler.findSingle(this.list, '[data-p-highlight="true"]');
178
- var findIndex = ObjectUtils.findIndexInList(selectedFirstItem, this.list.children);
179
- this.focused = true;
180
- var index = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : selectedFirstItem ? findIndex : -1;
181
- this.changeFocusedOptionIndex(index);
182
- this.$emit('focus', event);
178
+ if (selectedFirstItem) {
179
+ var findIndex = ObjectUtils.findIndexInList(selectedFirstItem, this.list.children);
180
+ this.focused = true;
181
+ var index = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : selectedFirstItem ? findIndex : -1;
182
+ this.changeFocusedOptionIndex(index);
183
+ this.$emit('focus', event);
184
+ }
183
185
  },
184
186
  onListBlur: function onListBlur(event) {
185
187
  this.focused = false;
@@ -527,9 +529,9 @@ var script = {
527
529
  }
528
530
  };
529
531
 
530
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
531
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
532
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
532
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
533
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
534
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
533
535
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
534
536
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
535
537
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
@@ -1 +1 @@
1
- import t from"primevue/button";import e from"primevue/icons/angledoubledown";import i from"primevue/icons/angledoubleup";import n from"primevue/icons/angledown";import o from"primevue/icons/angleup";import r from"primevue/ripple";import{UniqueComponentId as s,ObjectUtils as l,DomHandler as c}from"primevue/utils";import d from"primevue/basecomponent";import{useStyle as a}from"primevue/usestyle";import{resolveComponent as u,resolveDirective as p,openBlock as h,createElementBlock as m,mergeProps as f,createElementVNode as v,renderSlot as y,createVNode as b,withCtx as g,normalizeProps as I,guardReactiveProps as x,createCommentVNode as w,TransitionGroup as O,Fragment as S,renderList as D,withDirectives as _}from"vue";var A=a("\n.p-orderlist {\n display: flex;\n}\n\n.p-orderlist-controls {\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n\n.p-orderlist-list-container {\n flex: 1 1 auto;\n}\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\n.p-orderlist-item {\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n\n.p-orderlist.p-state-disabled .p-orderlist-item,\n.p-orderlist.p-state-disabled .p-button {\n cursor: default;\n}\n\n.p-orderlist.p-state-disabled .p-orderlist-list {\n overflow: hidden;\n}\n",{name:"orderlist",manual:!0});function $(t){return k(t)||E(t)||B(t)||K()}function K(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function B(t,e){if(t){if("string"==typeof t)return L(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?L(t,e):void 0}}function E(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function k(t){if(Array.isArray(t))return L(t)}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var P={name:"OrderList",extends:{name:"BaseOrderList",extends:d,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},tabindex:{type:Number,default:0},listProps:{type:null,default:null},moveUpButtonProps:{type:null,default:null},moveTopButtonProps:{type:null,default:null},moveDownButtonProps:{type:null,default:null},moveBottomButtonProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},css:{classes:{root:function(t){return["p-orderlist p-component",{"p-orderlist-striped":t.props.stripedRows}]},controls:"p-orderlist-controls",header:"p-orderlist-header",container:"p-orderlist-list-container",list:"p-orderlist-list",item:function(t){var e=t.instance,i=t.id;return["p-orderlist-item",{"p-highlight":e.isSelected(t.item),"p-focus":i===e.focusedOptionId}]}},loadStyle:A.load},provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","reorder","update:selection","selection-change","focus","blur"],itemTouched:!1,reorderDirection:null,styleElement:null,list:null,data:function(){return{id:this.$attrs.id,d_selection:this.selection,focused:!1,focusedOptionIndex:-1}},watch:{"$attrs.id":function(t){this.id=t||s()}},beforeUnmount:function(){this.destroyStyle()},updated:function(){this.reorderDirection&&(this.updateListScroll(),this.reorderDirection=null)},mounted:function(){this.id=this.id||s(),this.responsive&&this.createStyle()},methods:{getItemKey:function(t,e){return this.dataKey?l.resolveFieldData(t,this.dataKey):e},getPTOptions:function(t,e,i){return this.ptm(e,{context:{active:this.isSelected(t),focused:"".concat(this.id,"_").concat(i)===this.focusedOptionId}})},isSelected:function(t){return-1!=l.findIndexInList(t,this.d_selection)},onListFocus:function(t){var e=c.findSingle(this.list,'[data-p-highlight="true"]'),i=l.findIndexInList(e,this.list.children);this.focused=!0,this.changeFocusedOptionIndex(-1!==this.focusedOptionIndex?this.focusedOptionIndex:e?i:-1),this.$emit("focus",t)},onListBlur:function(t){this.focused=!1,this.focusedOptionIndex=-1,this.$emit("blur",t)},onListKeyDown:function(t){switch(t.code){case"ArrowDown":this.onArrowDownKey(t);break;case"ArrowUp":this.onArrowUpKey(t);break;case"Home":this.onHomeKey(t);break;case"End":this.onEndKey(t);break;case"Enter":this.onEnterKey(t);break;case"Space":this.onSpaceKey(t);break;case"KeyA":t.ctrlKey&&(this.d_selection=$(this.modelValue),this.$emit("update:selection",this.d_selection))}},onOptionMouseDown:function(t){this.focused=!0,this.focusedOptionIndex=t},onArrowDownKey:function(t){var e=this.findNextOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(e),t.shiftKey&&this.onEnterKey(t),t.preventDefault()},onArrowUpKey:function(t){var e=this.findPrevOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(e),t.shiftKey&&this.onEnterKey(t),t.preventDefault()},onHomeKey:function(t){if(t.ctrlKey&&t.shiftKey){var e=c.find(this.list,'[data-pc-section="item"]'),i=c.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),n=$(e).findIndex((function(t){return t===i}));this.d_selection=$(this.modelValue).slice(0,n+1),this.$emit("update:selection",this.d_selection)}else this.changeFocusedOptionIndex(0);t.preventDefault()},onEndKey:function(t){if(t.ctrlKey&&t.shiftKey){var e=c.find(this.list,'[data-pc-section="item"]'),i=c.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),n=$(e).findIndex((function(t){return t===i}));this.d_selection=$(this.modelValue).slice(n,e.length),this.$emit("update:selection",this.d_selection)}else this.changeFocusedOptionIndex(c.find(this.list,'[data-pc-section="item"]').length-1);t.preventDefault()},onEnterKey:function(t){var e=c.find(this.list,'[data-pc-section="item"]'),i=c.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),n=$(e).findIndex((function(t){return t===i}));this.onItemClick(t,this.modelValue[n],n),t.preventDefault()},onSpaceKey:function(t){if(t.shiftKey){var e=c.find(this.list,'[data-pc-section="item"]'),i=l.findIndexInList(this.d_selection[0],$(this.modelValue)),n=c.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),o=$(e).findIndex((function(t){return t===n}));this.d_selection=$(this.modelValue).slice(Math.min(i,o),Math.max(i,o)+1),this.$emit("update:selection",this.d_selection)}else this.onEnterKey(t)},findNextOptionIndex:function(t){var e=$(c.find(this.list,'[data-pc-section="item"]')).findIndex((function(e){return e.id===t}));return e>-1?e+1:0},findPrevOptionIndex:function(t){var e=$(c.find(this.list,'[data-pc-section="item"]')).findIndex((function(e){return e.id===t}));return e>-1?e-1:0},changeFocusedOptionIndex:function(t){var e=c.find(this.list,'[data-pc-section="item"]'),i=t>=e.length?e.length-1:t<0?0:t;this.focusedOptionIndex=e[i]?e[i].getAttribute("id"):-1,this.scrollInView(this.focusedOptionIndex)},scrollInView:function(t){var e=c.findSingle(this.list,'[data-pc-section="item"][id="'.concat(t,'"]'));e&&e.scrollIntoView&&e.scrollIntoView({block:"nearest",inline:"start"})},moveUp:function(t){if(this.d_selection){for(var e=$(this.modelValue),i=0;i<this.d_selection.length;i++){var n=l.findIndexInList(this.d_selection[i],e);if(0===n)break;var o=e[n-1];e[n-1]=e[n],e[n]=o}this.reorderDirection="up",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:t,value:e,direction:this.reorderDirection})}},moveTop:function(t){if(this.d_selection){for(var e=$(this.modelValue),i=0;i<this.d_selection.length;i++){var n=l.findIndexInList(this.d_selection[i],e);if(0===n)break;var o=e.splice(n,1)[0];e.unshift(o)}this.reorderDirection="top",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:t,value:e,direction:this.reorderDirection})}},moveDown:function(t){if(this.d_selection){for(var e=$(this.modelValue),i=this.d_selection.length-1;i>=0;i--){var n=l.findIndexInList(this.d_selection[i],e);if(n===e.length-1)break;var o=e[n+1];e[n+1]=e[n],e[n]=o}this.reorderDirection="down",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:t,value:e,direction:this.reorderDirection})}},moveBottom:function(t){if(this.d_selection){for(var e=$(this.modelValue),i=this.d_selection.length-1;i>=0;i--){var n=l.findIndexInList(this.d_selection[i],e);if(n===e.length-1)break;var o=e.splice(n,1)[0];e.push(o)}this.reorderDirection="bottom",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:t,value:e,direction:this.reorderDirection})}},onItemClick:function(t,e,i){this.itemTouched=!1;var n=l.findIndexInList(e,this.d_selection),o=-1!=n,r=!this.itemTouched&&this.metaKeySelection,s=c.find(this.list,'[data-pc-section="item"]')[i].getAttribute("id");if(this.focusedOptionIndex=s,r){var d=t.metaKey||t.ctrlKey;o&&d?this.d_selection=this.d_selection.filter((function(t,e){return e!==n})):(this.d_selection=d&&this.d_selection?$(this.d_selection):[],l.insertIntoOrderedArray(e,i,this.d_selection,this.modelValue))}else o?this.d_selection=this.d_selection.filter((function(t,e){return e!==n})):(this.d_selection=this.d_selection?$(this.d_selection):[],l.insertIntoOrderedArray(e,i,this.d_selection,this.modelValue));this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:t,value:this.d_selection})},onItemTouchEnd:function(){this.itemTouched=!0},findNextItem:function(t){var e=t.nextElementSibling;return e?"item"!==c.getAttribute(e,"data-pc-section")?this.findNextItem(e):e:null},findPrevItem:function(t){var e=t.previousElementSibling;return e?"item"!==c.getAttribute(nextItem,"data-pc-section")?this.findPrevItem(e):e:null},updateListScroll:function(){var t=c.find(this.list,'[data-pc-section="item"][data-p-highlight="true"]');if(t&&t.length)switch(this.reorderDirection){case"up":c.scrollInView(this.list,t[0]);break;case"top":this.list.scrollTop=0;break;case"down":c.scrollInView(this.list,t[t.length-1]);break;case"bottom":this.list.scrollTop=this.list.scrollHeight}},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var t;this.$el.setAttribute(this.attributeSelector,""),this.styleElement=document.createElement("style"),this.styleElement.type="text/css",c.setAttribute(this.styleElement,"nonce",null===(t=this.$primevue)||void 0===t||null===(t=t.config)||void 0===t||null===(t=t.csp)||void 0===t?void 0:t.nonce),document.head.appendChild(this.styleElement);var e="\n@media screen and (max-width: ".concat(this.breakpoint,") {\n .p-orderlist[").concat(this.attributeSelector,"] {\n flex-direction: column;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls .p-button:last-child {\n margin-right: 0;\n }\n}\n");this.styleElement.innerHTML=e}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},moveDisabled:function(){if(!this.d_selection||!this.d_selection.length)return!0},listRef:function(t){this.list=t?t.$el:void 0}},computed:{attributeSelector:function(){return s()},focusedOptionId:function(){return-1!==this.focusedOptionIndex?this.focusedOptionIndex:null},moveUpAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveUp:void 0},moveTopAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveTop:void 0},moveDownAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveDown:void 0},moveBottomAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveBottom:void 0}},components:{OLButton:t,AngleUpIcon:o,AngleDownIcon:n,AngleDoubleUpIcon:i,AngleDoubleDownIcon:e},directives:{ripple:r}};function V(t){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V(t)}function T(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function U(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?T(Object(i),!0).forEach((function(e){j(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):T(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function j(t,e,i){return(e=C(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function C(t){var e=F(t,"string");return"symbol"===V(e)?e:String(e)}function F(t,e){if("object"!==V(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==V(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var M=["id","onClick","aria-selected","onMousedown","data-p-highlight","data-p-focused"];P.render=function(t,e,i,n,o,r){var s=u("AngleUpIcon"),l=u("OLButton"),c=u("AngleDoubleUpIcon"),d=u("AngleDownIcon"),a=u("AngleDoubleDownIcon"),A=p("ripple");return h(),m("div",f({class:t.cx("root")},t.ptm("root")),[v("div",f({class:t.cx("controls")},t.ptm("controls")),[y(t.$slots,"controlsstart"),b(l,f({type:"button",onClick:r.moveUp,"aria-label":r.moveUpAriaLabel,disabled:r.moveDisabled(),pt:t.ptm("moveUpButton")},t.moveUpButtonProps,{unstyled:t.unstyled}),{icon:g((function(){return[y(t.$slots,"moveupicon",{},(function(){return[b(s,I(x(t.ptm("moveUpButton").icon)),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),b(l,f({type:"button",onClick:r.moveTop,"aria-label":r.moveTopAriaLabel,disabled:r.moveDisabled(),pt:t.ptm("moveTopButton")},t.ptm("moveTopButton"),{unstyled:t.unstyled}),{icon:g((function(){return[y(t.$slots,"movetopicon",{},(function(){return[b(c,I(x(t.ptm("moveTopButton").icon)),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),b(l,f({type:"button",onClick:r.moveDown,"aria-label":r.moveDownAriaLabel,disabled:r.moveDisabled(),pt:t.ptm("moveDownButton")},t.moveDownButtonProps,{unstyled:t.unstyled}),{icon:g((function(){return[y(t.$slots,"movedownicon",{},(function(){return[b(d,I(x(t.ptm("moveDownButton").icon)),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),b(l,f({type:"button",onClick:r.moveBottom,"aria-label":r.moveBottomAriaLabel,disabled:r.moveDisabled(),pt:t.ptm("moveBottomButton")},t.moveBottomButtonProps,{unstyled:t.unstyled}),{icon:g((function(){return[y(t.$slots,"movebottomicon",{},(function(){return[b(a,I(x(t.ptm("moveBottomButton").icon)),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),y(t.$slots,"controlsend")],16),v("div",f({class:t.cx("container")},t.ptm("container")),[t.$slots.header?(h(),m("div",f({key:0,class:t.cx("header")},t.ptm("header")),[y(t.$slots,"header")],16)):w("",!0),b(O,f({ref:r.listRef,id:o.id+"_list",name:"p-orderlist-flip",tag:"ul",class:t.cx("list"),style:t.listStyle,role:"listbox","aria-multiselectable":"true",tabindex:t.tabindex,"aria-activedescendant":o.focused?r.focusedOptionId:void 0,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabelledby,onFocus:r.onListFocus,onBlur:r.onListBlur,onKeydown:r.onListKeyDown},U(U(U({},t.listProps),t.ptm("list")),t.ptm("transition"))),{default:g((function(){return[(h(!0),m(S,null,D(t.modelValue,(function(i,n){return _((h(),m("li",f({key:r.getItemKey(i,n),id:o.id+"_"+n,role:"option",class:t.cx("item",{item:i,id:"".concat(o.id,"_").concat(n)}),onClick:function(t){return r.onItemClick(t,i,n)},onTouchend:e[0]||(e[0]=function(){return r.onItemTouchEnd&&r.onItemTouchEnd.apply(r,arguments)}),"aria-selected":r.isSelected(i),onMousedown:function(t){return r.onOptionMouseDown(n)}},r.getPTOptions(i,"item",n),{"data-p-highlight":r.isSelected(i),"data-p-focused":"".concat(o.id,"_").concat(n)===r.focusedOptionId}),[y(t.$slots,"item",{item:i,index:n})],16,M)),[[A]])})),128))]})),_:3},16,["id","class","style","tabindex","aria-activedescendant","aria-label","aria-labelledby","onFocus","onBlur","onKeydown"])],16)],16)};export{P as default};
1
+ import t from"primevue/button";import e from"primevue/icons/angledoubledown";import i from"primevue/icons/angledoubleup";import n from"primevue/icons/angledown";import o from"primevue/icons/angleup";import r from"primevue/ripple";import{UniqueComponentId as s,ObjectUtils as l,DomHandler as c}from"primevue/utils";import d from"primevue/basecomponent";import{useStyle as a}from"primevue/usestyle";import{resolveComponent as u,resolveDirective as p,openBlock as h,createElementBlock as m,mergeProps as f,createElementVNode as v,renderSlot as y,createVNode as b,withCtx as g,normalizeProps as I,guardReactiveProps as x,createCommentVNode as w,TransitionGroup as O,Fragment as S,renderList as D,withDirectives as _}from"vue";var A=a("\n.p-orderlist {\n display: flex;\n}\n\n.p-orderlist-controls {\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n\n.p-orderlist-list-container {\n flex: 1 1 auto;\n}\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\n.p-orderlist-item {\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n\n.p-orderlist.p-state-disabled .p-orderlist-item,\n.p-orderlist.p-state-disabled .p-button {\n cursor: default;\n}\n\n.p-orderlist.p-state-disabled .p-orderlist-list {\n overflow: hidden;\n}\n",{name:"orderlist",manual:!0});function $(t){return k(t)||E(t)||B(t)||K()}function K(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function B(t,e){if(t){if("string"==typeof t)return L(t,e);var i=Object.prototype.toString.call(t).slice(8,-1);return"Object"===i&&t.constructor&&(i=t.constructor.name),"Map"===i||"Set"===i?Array.from(t):"Arguments"===i||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(i)?L(t,e):void 0}}function E(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function k(t){if(Array.isArray(t))return L(t)}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var i=0,n=new Array(e);i<e;i++)n[i]=t[i];return n}var P={name:"OrderList",extends:{name:"BaseOrderList",extends:d,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},tabindex:{type:Number,default:0},listProps:{type:null,default:null},moveUpButtonProps:{type:null,default:null},moveTopButtonProps:{type:null,default:null},moveDownButtonProps:{type:null,default:null},moveBottomButtonProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},css:{classes:{root:function(t){return["p-orderlist p-component",{"p-orderlist-striped":t.props.stripedRows}]},controls:"p-orderlist-controls",header:"p-orderlist-header",container:"p-orderlist-list-container",list:"p-orderlist-list",item:function(t){var e=t.instance,i=t.id;return["p-orderlist-item",{"p-highlight":e.isSelected(t.item),"p-focus":i===e.focusedOptionId}]}},loadStyle:A.load},provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","reorder","update:selection","selection-change","focus","blur"],itemTouched:!1,reorderDirection:null,styleElement:null,list:null,data:function(){return{id:this.$attrs.id,d_selection:this.selection,focused:!1,focusedOptionIndex:-1}},watch:{"$attrs.id":function(t){this.id=t||s()}},beforeUnmount:function(){this.destroyStyle()},updated:function(){this.reorderDirection&&(this.updateListScroll(),this.reorderDirection=null)},mounted:function(){this.id=this.id||s(),this.responsive&&this.createStyle()},methods:{getItemKey:function(t,e){return this.dataKey?l.resolveFieldData(t,this.dataKey):e},getPTOptions:function(t,e,i){return this.ptm(e,{context:{active:this.isSelected(t),focused:"".concat(this.id,"_").concat(i)===this.focusedOptionId}})},isSelected:function(t){return-1!=l.findIndexInList(t,this.d_selection)},onListFocus:function(t){var e=c.findSingle(this.list,'[data-p-highlight="true"]');if(e){var i=l.findIndexInList(e,this.list.children);this.focused=!0,this.changeFocusedOptionIndex(-1!==this.focusedOptionIndex?this.focusedOptionIndex:e?i:-1),this.$emit("focus",t)}},onListBlur:function(t){this.focused=!1,this.focusedOptionIndex=-1,this.$emit("blur",t)},onListKeyDown:function(t){switch(t.code){case"ArrowDown":this.onArrowDownKey(t);break;case"ArrowUp":this.onArrowUpKey(t);break;case"Home":this.onHomeKey(t);break;case"End":this.onEndKey(t);break;case"Enter":this.onEnterKey(t);break;case"Space":this.onSpaceKey(t);break;case"KeyA":t.ctrlKey&&(this.d_selection=$(this.modelValue),this.$emit("update:selection",this.d_selection))}},onOptionMouseDown:function(t){this.focused=!0,this.focusedOptionIndex=t},onArrowDownKey:function(t){var e=this.findNextOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(e),t.shiftKey&&this.onEnterKey(t),t.preventDefault()},onArrowUpKey:function(t){var e=this.findPrevOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(e),t.shiftKey&&this.onEnterKey(t),t.preventDefault()},onHomeKey:function(t){if(t.ctrlKey&&t.shiftKey){var e=c.find(this.list,'[data-pc-section="item"]'),i=c.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),n=$(e).findIndex((function(t){return t===i}));this.d_selection=$(this.modelValue).slice(0,n+1),this.$emit("update:selection",this.d_selection)}else this.changeFocusedOptionIndex(0);t.preventDefault()},onEndKey:function(t){if(t.ctrlKey&&t.shiftKey){var e=c.find(this.list,'[data-pc-section="item"]'),i=c.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),n=$(e).findIndex((function(t){return t===i}));this.d_selection=$(this.modelValue).slice(n,e.length),this.$emit("update:selection",this.d_selection)}else this.changeFocusedOptionIndex(c.find(this.list,'[data-pc-section="item"]').length-1);t.preventDefault()},onEnterKey:function(t){var e=c.find(this.list,'[data-pc-section="item"]'),i=c.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),n=$(e).findIndex((function(t){return t===i}));this.onItemClick(t,this.modelValue[n],n),t.preventDefault()},onSpaceKey:function(t){if(t.shiftKey){var e=c.find(this.list,'[data-pc-section="item"]'),i=l.findIndexInList(this.d_selection[0],$(this.modelValue)),n=c.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),o=$(e).findIndex((function(t){return t===n}));this.d_selection=$(this.modelValue).slice(Math.min(i,o),Math.max(i,o)+1),this.$emit("update:selection",this.d_selection)}else this.onEnterKey(t)},findNextOptionIndex:function(t){var e=$(c.find(this.list,'[data-pc-section="item"]')).findIndex((function(e){return e.id===t}));return e>-1?e+1:0},findPrevOptionIndex:function(t){var e=$(c.find(this.list,'[data-pc-section="item"]')).findIndex((function(e){return e.id===t}));return e>-1?e-1:0},changeFocusedOptionIndex:function(t){var e=c.find(this.list,'[data-pc-section="item"]'),i=t>=e.length?e.length-1:t<0?0:t;this.focusedOptionIndex=e[i]?e[i].getAttribute("id"):-1,this.scrollInView(this.focusedOptionIndex)},scrollInView:function(t){var e=c.findSingle(this.list,'[data-pc-section="item"][id="'.concat(t,'"]'));e&&e.scrollIntoView&&e.scrollIntoView({block:"nearest",inline:"start"})},moveUp:function(t){if(this.d_selection){for(var e=$(this.modelValue),i=0;i<this.d_selection.length;i++){var n=l.findIndexInList(this.d_selection[i],e);if(0===n)break;var o=e[n-1];e[n-1]=e[n],e[n]=o}this.reorderDirection="up",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:t,value:e,direction:this.reorderDirection})}},moveTop:function(t){if(this.d_selection){for(var e=$(this.modelValue),i=0;i<this.d_selection.length;i++){var n=l.findIndexInList(this.d_selection[i],e);if(0===n)break;var o=e.splice(n,1)[0];e.unshift(o)}this.reorderDirection="top",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:t,value:e,direction:this.reorderDirection})}},moveDown:function(t){if(this.d_selection){for(var e=$(this.modelValue),i=this.d_selection.length-1;i>=0;i--){var n=l.findIndexInList(this.d_selection[i],e);if(n===e.length-1)break;var o=e[n+1];e[n+1]=e[n],e[n]=o}this.reorderDirection="down",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:t,value:e,direction:this.reorderDirection})}},moveBottom:function(t){if(this.d_selection){for(var e=$(this.modelValue),i=this.d_selection.length-1;i>=0;i--){var n=l.findIndexInList(this.d_selection[i],e);if(n===e.length-1)break;var o=e.splice(n,1)[0];e.push(o)}this.reorderDirection="bottom",this.$emit("update:modelValue",e),this.$emit("reorder",{originalEvent:t,value:e,direction:this.reorderDirection})}},onItemClick:function(t,e,i){this.itemTouched=!1;var n=l.findIndexInList(e,this.d_selection),o=-1!=n,r=!this.itemTouched&&this.metaKeySelection,s=c.find(this.list,'[data-pc-section="item"]')[i].getAttribute("id");if(this.focusedOptionIndex=s,r){var d=t.metaKey||t.ctrlKey;o&&d?this.d_selection=this.d_selection.filter((function(t,e){return e!==n})):(this.d_selection=d&&this.d_selection?$(this.d_selection):[],l.insertIntoOrderedArray(e,i,this.d_selection,this.modelValue))}else o?this.d_selection=this.d_selection.filter((function(t,e){return e!==n})):(this.d_selection=this.d_selection?$(this.d_selection):[],l.insertIntoOrderedArray(e,i,this.d_selection,this.modelValue));this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:t,value:this.d_selection})},onItemTouchEnd:function(){this.itemTouched=!0},findNextItem:function(t){var e=t.nextElementSibling;return e?"item"!==c.getAttribute(e,"data-pc-section")?this.findNextItem(e):e:null},findPrevItem:function(t){var e=t.previousElementSibling;return e?"item"!==c.getAttribute(nextItem,"data-pc-section")?this.findPrevItem(e):e:null},updateListScroll:function(){var t=c.find(this.list,'[data-pc-section="item"][data-p-highlight="true"]');if(t&&t.length)switch(this.reorderDirection){case"up":c.scrollInView(this.list,t[0]);break;case"top":this.list.scrollTop=0;break;case"down":c.scrollInView(this.list,t[t.length-1]);break;case"bottom":this.list.scrollTop=this.list.scrollHeight}},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var t;this.$el.setAttribute(this.attributeSelector,""),this.styleElement=document.createElement("style"),this.styleElement.type="text/css",c.setAttribute(this.styleElement,"nonce",null===(t=this.$primevue)||void 0===t||null===(t=t.config)||void 0===t||null===(t=t.csp)||void 0===t?void 0:t.nonce),document.head.appendChild(this.styleElement);var e="\n@media screen and (max-width: ".concat(this.breakpoint,") {\n .p-orderlist[").concat(this.attributeSelector,"] {\n flex-direction: column;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls .p-button:last-child {\n margin-right: 0;\n }\n}\n");this.styleElement.innerHTML=e}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},moveDisabled:function(){if(!this.d_selection||!this.d_selection.length)return!0},listRef:function(t){this.list=t?t.$el:void 0}},computed:{attributeSelector:function(){return s()},focusedOptionId:function(){return-1!==this.focusedOptionIndex?this.focusedOptionIndex:null},moveUpAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveUp:void 0},moveTopAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveTop:void 0},moveDownAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveDown:void 0},moveBottomAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveBottom:void 0}},components:{OLButton:t,AngleUpIcon:o,AngleDownIcon:n,AngleDoubleUpIcon:i,AngleDoubleDownIcon:e},directives:{ripple:r}};function V(t){return V="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},V(t)}function T(t,e){var i=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),i.push.apply(i,n)}return i}function U(t){for(var e=1;e<arguments.length;e++){var i=null!=arguments[e]?arguments[e]:{};e%2?T(Object(i),!0).forEach((function(e){j(t,e,i[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(i)):T(Object(i)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(i,e))}))}return t}function j(t,e,i){return(e=C(e))in t?Object.defineProperty(t,e,{value:i,enumerable:!0,configurable:!0,writable:!0}):t[e]=i,t}function C(t){var e=F(t,"string");return"symbol"===V(e)?e:String(e)}function F(t,e){if("object"!==V(t)||null===t)return t;var i=t[Symbol.toPrimitive];if(void 0!==i){var n=i.call(t,e||"default");if("object"!==V(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===e?String:Number)(t)}var M=["id","onClick","aria-selected","onMousedown","data-p-highlight","data-p-focused"];P.render=function(t,e,i,n,o,r){var s=u("AngleUpIcon"),l=u("OLButton"),c=u("AngleDoubleUpIcon"),d=u("AngleDownIcon"),a=u("AngleDoubleDownIcon"),A=p("ripple");return h(),m("div",f({class:t.cx("root")},t.ptm("root")),[v("div",f({class:t.cx("controls")},t.ptm("controls")),[y(t.$slots,"controlsstart"),b(l,f({type:"button",onClick:r.moveUp,"aria-label":r.moveUpAriaLabel,disabled:r.moveDisabled(),pt:t.ptm("moveUpButton")},t.moveUpButtonProps,{unstyled:t.unstyled}),{icon:g((function(){return[y(t.$slots,"moveupicon",{},(function(){return[b(s,I(x(t.ptm("moveUpButton").icon)),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),b(l,f({type:"button",onClick:r.moveTop,"aria-label":r.moveTopAriaLabel,disabled:r.moveDisabled(),pt:t.ptm("moveTopButton")},t.ptm("moveTopButton"),{unstyled:t.unstyled}),{icon:g((function(){return[y(t.$slots,"movetopicon",{},(function(){return[b(c,I(x(t.ptm("moveTopButton").icon)),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),b(l,f({type:"button",onClick:r.moveDown,"aria-label":r.moveDownAriaLabel,disabled:r.moveDisabled(),pt:t.ptm("moveDownButton")},t.moveDownButtonProps,{unstyled:t.unstyled}),{icon:g((function(){return[y(t.$slots,"movedownicon",{},(function(){return[b(d,I(x(t.ptm("moveDownButton").icon)),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),b(l,f({type:"button",onClick:r.moveBottom,"aria-label":r.moveBottomAriaLabel,disabled:r.moveDisabled(),pt:t.ptm("moveBottomButton")},t.moveBottomButtonProps,{unstyled:t.unstyled}),{icon:g((function(){return[y(t.$slots,"movebottomicon",{},(function(){return[b(a,I(x(t.ptm("moveBottomButton").icon)),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),y(t.$slots,"controlsend")],16),v("div",f({class:t.cx("container")},t.ptm("container")),[t.$slots.header?(h(),m("div",f({key:0,class:t.cx("header")},t.ptm("header")),[y(t.$slots,"header")],16)):w("",!0),b(O,f({ref:r.listRef,id:o.id+"_list",name:"p-orderlist-flip",tag:"ul",class:t.cx("list"),style:t.listStyle,role:"listbox","aria-multiselectable":"true",tabindex:t.tabindex,"aria-activedescendant":o.focused?r.focusedOptionId:void 0,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabelledby,onFocus:r.onListFocus,onBlur:r.onListBlur,onKeydown:r.onListKeyDown},U(U(U({},t.listProps),t.ptm("list")),t.ptm("transition"))),{default:g((function(){return[(h(!0),m(S,null,D(t.modelValue,(function(i,n){return _((h(),m("li",f({key:r.getItemKey(i,n),id:o.id+"_"+n,role:"option",class:t.cx("item",{item:i,id:"".concat(o.id,"_").concat(n)}),onClick:function(t){return r.onItemClick(t,i,n)},onTouchend:e[0]||(e[0]=function(){return r.onItemTouchEnd&&r.onItemTouchEnd.apply(r,arguments)}),"aria-selected":r.isSelected(i),onMousedown:function(t){return r.onOptionMouseDown(n)}},r.getPTOptions(i,"item",n),{"data-p-highlight":r.isSelected(i),"data-p-focused":"".concat(o.id,"_").concat(n)===r.focusedOptionId}),[y(t.$slots,"item",{item:i,index:n})],16,M)),[[A]])})),128))]})),_:3},16,["id","class","style","tabindex","aria-activedescendant","aria-label","aria-labelledby","onFocus","onBlur","onKeydown"])],16)],16)};export{P as default};
@@ -178,11 +178,13 @@ this.primevue.orderlist = (function (Button, AngleDoubleDownIcon, AngleDoubleUpI
178
178
  },
179
179
  onListFocus: function onListFocus(event) {
180
180
  var selectedFirstItem = utils.DomHandler.findSingle(this.list, '[data-p-highlight="true"]');
181
- var findIndex = utils.ObjectUtils.findIndexInList(selectedFirstItem, this.list.children);
182
- this.focused = true;
183
- var index = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : selectedFirstItem ? findIndex : -1;
184
- this.changeFocusedOptionIndex(index);
185
- this.$emit('focus', event);
181
+ if (selectedFirstItem) {
182
+ var findIndex = utils.ObjectUtils.findIndexInList(selectedFirstItem, this.list.children);
183
+ this.focused = true;
184
+ var index = this.focusedOptionIndex !== -1 ? this.focusedOptionIndex : selectedFirstItem ? findIndex : -1;
185
+ this.changeFocusedOptionIndex(index);
186
+ this.$emit('focus', event);
187
+ }
186
188
  },
187
189
  onListBlur: function onListBlur(event) {
188
190
  this.focused = false;
@@ -530,9 +532,9 @@ this.primevue.orderlist = (function (Button, AngleDoubleDownIcon, AngleDoubleUpI
530
532
  }
531
533
  };
532
534
 
533
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
534
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
535
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
535
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
536
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
537
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
536
538
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
537
539
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
538
540
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.orderlist=function(e,t,n,i,o,r,l,s,d,a){"use strict";function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=c(e),p=c(t),m=c(n),h=c(i),f=c(o),v=c(r),b=c(s),y=d.useStyle("\n.p-orderlist {\n display: flex;\n}\n\n.p-orderlist-controls {\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n\n.p-orderlist-list-container {\n flex: 1 1 auto;\n}\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\n.p-orderlist-item {\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n\n.p-orderlist.p-state-disabled .p-orderlist-item,\n.p-orderlist.p-state-disabled .p-button {\n cursor: default;\n}\n\n.p-orderlist.p-state-disabled .p-orderlist-list {\n overflow: hidden;\n}\n",{name:"orderlist",manual:!0});function g(e){return O(e)||D(e)||x(e)||I()}function I(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}function D(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function O(e){if(Array.isArray(e))return w(e)}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var S={name:"OrderList",extends:{name:"BaseOrderList",extends:b.default,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},tabindex:{type:Number,default:0},listProps:{type:null,default:null},moveUpButtonProps:{type:null,default:null},moveTopButtonProps:{type:null,default:null},moveDownButtonProps:{type:null,default:null},moveBottomButtonProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},css:{classes:{root:function(e){return["p-orderlist p-component",{"p-orderlist-striped":e.props.stripedRows}]},controls:"p-orderlist-controls",header:"p-orderlist-header",container:"p-orderlist-list-container",list:"p-orderlist-list",item:function(e){var t=e.instance,n=e.id;return["p-orderlist-item",{"p-highlight":t.isSelected(e.item),"p-focus":n===t.focusedOptionId}]}},loadStyle:y.load},provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","reorder","update:selection","selection-change","focus","blur"],itemTouched:!1,reorderDirection:null,styleElement:null,list:null,data:function(){return{id:this.$attrs.id,d_selection:this.selection,focused:!1,focusedOptionIndex:-1}},watch:{"$attrs.id":function(e){this.id=e||l.UniqueComponentId()}},beforeUnmount:function(){this.destroyStyle()},updated:function(){this.reorderDirection&&(this.updateListScroll(),this.reorderDirection=null)},mounted:function(){this.id=this.id||l.UniqueComponentId(),this.responsive&&this.createStyle()},methods:{getItemKey:function(e,t){return this.dataKey?l.ObjectUtils.resolveFieldData(e,this.dataKey):t},getPTOptions:function(e,t,n){return this.ptm(t,{context:{active:this.isSelected(e),focused:"".concat(this.id,"_").concat(n)===this.focusedOptionId}})},isSelected:function(e){return-1!=l.ObjectUtils.findIndexInList(e,this.d_selection)},onListFocus:function(e){var t=l.DomHandler.findSingle(this.list,'[data-p-highlight="true"]'),n=l.ObjectUtils.findIndexInList(t,this.list.children);this.focused=!0,this.changeFocusedOptionIndex(-1!==this.focusedOptionIndex?this.focusedOptionIndex:t?n:-1),this.$emit("focus",e)},onListBlur:function(e){this.focused=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onListKeyDown:function(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Enter":this.onEnterKey(e);break;case"Space":this.onSpaceKey(e);break;case"KeyA":e.ctrlKey&&(this.d_selection=g(this.modelValue),this.$emit("update:selection",this.d_selection))}},onOptionMouseDown:function(e){this.focused=!0,this.focusedOptionIndex=e},onArrowDownKey:function(e){var t=this.findNextOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(t),e.shiftKey&&this.onEnterKey(e),e.preventDefault()},onArrowUpKey:function(e){var t=this.findPrevOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(t),e.shiftKey&&this.onEnterKey(e),e.preventDefault()},onHomeKey:function(e){if(e.ctrlKey&&e.shiftKey){var t=l.DomHandler.find(this.list,'[data-pc-section="item"]'),n=l.DomHandler.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),i=g(t).findIndex((function(e){return e===n}));this.d_selection=g(this.modelValue).slice(0,i+1),this.$emit("update:selection",this.d_selection)}else this.changeFocusedOptionIndex(0);e.preventDefault()},onEndKey:function(e){if(e.ctrlKey&&e.shiftKey){var t=l.DomHandler.find(this.list,'[data-pc-section="item"]'),n=l.DomHandler.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),i=g(t).findIndex((function(e){return e===n}));this.d_selection=g(this.modelValue).slice(i,t.length),this.$emit("update:selection",this.d_selection)}else this.changeFocusedOptionIndex(l.DomHandler.find(this.list,'[data-pc-section="item"]').length-1);e.preventDefault()},onEnterKey:function(e){var t=l.DomHandler.find(this.list,'[data-pc-section="item"]'),n=l.DomHandler.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),i=g(t).findIndex((function(e){return e===n}));this.onItemClick(e,this.modelValue[i],i),e.preventDefault()},onSpaceKey:function(e){if(e.shiftKey){var t=l.DomHandler.find(this.list,'[data-pc-section="item"]'),n=l.ObjectUtils.findIndexInList(this.d_selection[0],g(this.modelValue)),i=l.DomHandler.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),o=g(t).findIndex((function(e){return e===i}));this.d_selection=g(this.modelValue).slice(Math.min(n,o),Math.max(n,o)+1),this.$emit("update:selection",this.d_selection)}else this.onEnterKey(e)},findNextOptionIndex:function(e){var t=g(l.DomHandler.find(this.list,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return t>-1?t+1:0},findPrevOptionIndex:function(e){var t=g(l.DomHandler.find(this.list,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return t>-1?t-1:0},changeFocusedOptionIndex:function(e){var t=l.DomHandler.find(this.list,'[data-pc-section="item"]'),n=e>=t.length?t.length-1:e<0?0:e;this.focusedOptionIndex=t[n]?t[n].getAttribute("id"):-1,this.scrollInView(this.focusedOptionIndex)},scrollInView:function(e){var t=l.DomHandler.findSingle(this.list,'[data-pc-section="item"][id="'.concat(e,'"]'));t&&t.scrollIntoView&&t.scrollIntoView({block:"nearest",inline:"start"})},moveUp:function(e){if(this.d_selection){for(var t=g(this.modelValue),n=0;n<this.d_selection.length;n++){var i=l.ObjectUtils.findIndexInList(this.d_selection[n],t);if(0===i)break;var o=t[i-1];t[i-1]=t[i],t[i]=o}this.reorderDirection="up",this.$emit("update:modelValue",t),this.$emit("reorder",{originalEvent:e,value:t,direction:this.reorderDirection})}},moveTop:function(e){if(this.d_selection){for(var t=g(this.modelValue),n=0;n<this.d_selection.length;n++){var i=l.ObjectUtils.findIndexInList(this.d_selection[n],t);if(0===i)break;var o=t.splice(i,1)[0];t.unshift(o)}this.reorderDirection="top",this.$emit("update:modelValue",t),this.$emit("reorder",{originalEvent:e,value:t,direction:this.reorderDirection})}},moveDown:function(e){if(this.d_selection){for(var t=g(this.modelValue),n=this.d_selection.length-1;n>=0;n--){var i=l.ObjectUtils.findIndexInList(this.d_selection[n],t);if(i===t.length-1)break;var o=t[i+1];t[i+1]=t[i],t[i]=o}this.reorderDirection="down",this.$emit("update:modelValue",t),this.$emit("reorder",{originalEvent:e,value:t,direction:this.reorderDirection})}},moveBottom:function(e){if(this.d_selection){for(var t=g(this.modelValue),n=this.d_selection.length-1;n>=0;n--){var i=l.ObjectUtils.findIndexInList(this.d_selection[n],t);if(i===t.length-1)break;var o=t.splice(i,1)[0];t.push(o)}this.reorderDirection="bottom",this.$emit("update:modelValue",t),this.$emit("reorder",{originalEvent:e,value:t,direction:this.reorderDirection})}},onItemClick:function(e,t,n){this.itemTouched=!1;var i=l.ObjectUtils.findIndexInList(t,this.d_selection),o=-1!=i,r=!this.itemTouched&&this.metaKeySelection,s=l.DomHandler.find(this.list,'[data-pc-section="item"]')[n].getAttribute("id");if(this.focusedOptionIndex=s,r){var d=e.metaKey||e.ctrlKey;o&&d?this.d_selection=this.d_selection.filter((function(e,t){return t!==i})):(this.d_selection=d&&this.d_selection?g(this.d_selection):[],l.ObjectUtils.insertIntoOrderedArray(t,n,this.d_selection,this.modelValue))}else o?this.d_selection=this.d_selection.filter((function(e,t){return t!==i})):(this.d_selection=this.d_selection?g(this.d_selection):[],l.ObjectUtils.insertIntoOrderedArray(t,n,this.d_selection,this.modelValue));this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})},onItemTouchEnd:function(){this.itemTouched=!0},findNextItem:function(e){var t=e.nextElementSibling;return t?"item"!==l.DomHandler.getAttribute(t,"data-pc-section")?this.findNextItem(t):t:null},findPrevItem:function(e){var t=e.previousElementSibling;return t?"item"!==l.DomHandler.getAttribute(nextItem,"data-pc-section")?this.findPrevItem(t):t:null},updateListScroll:function(){var e=l.DomHandler.find(this.list,'[data-pc-section="item"][data-p-highlight="true"]');if(e&&e.length)switch(this.reorderDirection){case"up":l.DomHandler.scrollInView(this.list,e[0]);break;case"top":this.list.scrollTop=0;break;case"down":l.DomHandler.scrollInView(this.list,e[e.length-1]);break;case"bottom":this.list.scrollTop=this.list.scrollHeight}},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.$el.setAttribute(this.attributeSelector,""),this.styleElement=document.createElement("style"),this.styleElement.type="text/css",l.DomHandler.setAttribute(this.styleElement,"nonce",null===(e=this.$primevue)||void 0===e||null===(e=e.config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce),document.head.appendChild(this.styleElement);var t="\n@media screen and (max-width: ".concat(this.breakpoint,") {\n .p-orderlist[").concat(this.attributeSelector,"] {\n flex-direction: column;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls .p-button:last-child {\n margin-right: 0;\n }\n}\n");this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},moveDisabled:function(){if(!this.d_selection||!this.d_selection.length)return!0},listRef:function(e){this.list=e?e.$el:void 0}},computed:{attributeSelector:function(){return l.UniqueComponentId()},focusedOptionId:function(){return-1!==this.focusedOptionIndex?this.focusedOptionIndex:null},moveUpAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveUp:void 0},moveTopAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveTop:void 0},moveDownAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveDown:void 0},moveBottomAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveBottom:void 0}},components:{OLButton:u.default,AngleUpIcon:f.default,AngleDownIcon:h.default,AngleDoubleUpIcon:m.default,AngleDoubleDownIcon:p.default},directives:{ripple:v.default}};function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return(t=A(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e){var t=E(e,"string");return"symbol"===_(t)?t:String(t)}function E(e,t){if("object"!==_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==_(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var $=["id","onClick","aria-selected","onMousedown","data-p-highlight","data-p-focused"];return S.render=function(e,t,n,i,o,r){var l=a.resolveComponent("AngleUpIcon"),s=a.resolveComponent("OLButton"),d=a.resolveComponent("AngleDoubleUpIcon"),c=a.resolveComponent("AngleDownIcon"),u=a.resolveComponent("AngleDoubleDownIcon"),p=a.resolveDirective("ripple");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:e.cx("root")},e.ptm("root")),[a.createElementVNode("div",a.mergeProps({class:e.cx("controls")},e.ptm("controls")),[a.renderSlot(e.$slots,"controlsstart"),a.createVNode(s,a.mergeProps({type:"button",onClick:r.moveUp,"aria-label":r.moveUpAriaLabel,disabled:r.moveDisabled(),pt:e.ptm("moveUpButton")},e.moveUpButtonProps,{unstyled:e.unstyled}),{icon:a.withCtx((function(){return[a.renderSlot(e.$slots,"moveupicon",{},(function(){return[a.createVNode(l,a.normalizeProps(a.guardReactiveProps(e.ptm("moveUpButton").icon)),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),a.createVNode(s,a.mergeProps({type:"button",onClick:r.moveTop,"aria-label":r.moveTopAriaLabel,disabled:r.moveDisabled(),pt:e.ptm("moveTopButton")},e.ptm("moveTopButton"),{unstyled:e.unstyled}),{icon:a.withCtx((function(){return[a.renderSlot(e.$slots,"movetopicon",{},(function(){return[a.createVNode(d,a.normalizeProps(a.guardReactiveProps(e.ptm("moveTopButton").icon)),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),a.createVNode(s,a.mergeProps({type:"button",onClick:r.moveDown,"aria-label":r.moveDownAriaLabel,disabled:r.moveDisabled(),pt:e.ptm("moveDownButton")},e.moveDownButtonProps,{unstyled:e.unstyled}),{icon:a.withCtx((function(){return[a.renderSlot(e.$slots,"movedownicon",{},(function(){return[a.createVNode(c,a.normalizeProps(a.guardReactiveProps(e.ptm("moveDownButton").icon)),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),a.createVNode(s,a.mergeProps({type:"button",onClick:r.moveBottom,"aria-label":r.moveBottomAriaLabel,disabled:r.moveDisabled(),pt:e.ptm("moveBottomButton")},e.moveBottomButtonProps,{unstyled:e.unstyled}),{icon:a.withCtx((function(){return[a.renderSlot(e.$slots,"movebottomicon",{},(function(){return[a.createVNode(u,a.normalizeProps(a.guardReactiveProps(e.ptm("moveBottomButton").icon)),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),a.renderSlot(e.$slots,"controlsend")],16),a.createElementVNode("div",a.mergeProps({class:e.cx("container")},e.ptm("container")),[e.$slots.header?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:e.cx("header")},e.ptm("header")),[a.renderSlot(e.$slots,"header")],16)):a.createCommentVNode("",!0),a.createVNode(a.TransitionGroup,a.mergeProps({ref:r.listRef,id:o.id+"_list",name:"p-orderlist-flip",tag:"ul",class:e.cx("list"),style:e.listStyle,role:"listbox","aria-multiselectable":"true",tabindex:e.tabindex,"aria-activedescendant":o.focused?r.focusedOptionId:void 0,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,onFocus:r.onListFocus,onBlur:r.onListBlur,onKeydown:r.onListKeyDown},B(B(B({},e.listProps),e.ptm("list")),e.ptm("transition"))),{default:a.withCtx((function(){return[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.modelValue,(function(n,i){return a.withDirectives((a.openBlock(),a.createElementBlock("li",a.mergeProps({key:r.getItemKey(n,i),id:o.id+"_"+i,role:"option",class:e.cx("item",{item:n,id:"".concat(o.id,"_").concat(i)}),onClick:function(e){return r.onItemClick(e,n,i)},onTouchend:t[0]||(t[0]=function(){return r.onItemTouchEnd&&r.onItemTouchEnd.apply(r,arguments)}),"aria-selected":r.isSelected(n),onMousedown:function(e){return r.onOptionMouseDown(i)}},r.getPTOptions(n,"item",i),{"data-p-highlight":r.isSelected(n),"data-p-focused":"".concat(o.id,"_").concat(i)===r.focusedOptionId}),[a.renderSlot(e.$slots,"item",{item:n,index:i})],16,$)),[[p]])})),128))]})),_:3},16,["id","class","style","tabindex","aria-activedescendant","aria-label","aria-labelledby","onFocus","onBlur","onKeydown"])],16)],16)},S}(primevue.button,primevue.icons.angledoubledown,primevue.icons.angledoubleup,primevue.icons.angledown,primevue.icons.angleup,primevue.ripple,primevue.utils,primevue.basecomponent,primevue.usestyle,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.orderlist=function(e,t,n,i,o,r,l,s,d,a){"use strict";function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=c(e),p=c(t),m=c(n),h=c(i),f=c(o),v=c(r),b=c(s),y=d.useStyle("\n.p-orderlist {\n display: flex;\n}\n\n.p-orderlist-controls {\n display: flex;\n flex-direction: column;\n justify-content: center;\n}\n\n.p-orderlist-list-container {\n flex: 1 1 auto;\n}\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\n.p-orderlist-item {\n cursor: pointer;\n overflow: hidden;\n position: relative;\n}\n\n.p-orderlist.p-state-disabled .p-orderlist-item,\n.p-orderlist.p-state-disabled .p-button {\n cursor: default;\n}\n\n.p-orderlist.p-state-disabled .p-orderlist-list {\n overflow: hidden;\n}\n",{name:"orderlist",manual:!0});function g(e){return O(e)||D(e)||x(e)||I()}function I(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}function x(e,t){if(e){if("string"==typeof e)return w(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?w(e,t):void 0}}function D(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function O(e){if(Array.isArray(e))return w(e)}function w(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,i=new Array(t);n<t;n++)i[n]=e[n];return i}var S={name:"OrderList",extends:{name:"BaseOrderList",extends:b.default,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},tabindex:{type:Number,default:0},listProps:{type:null,default:null},moveUpButtonProps:{type:null,default:null},moveTopButtonProps:{type:null,default:null},moveDownButtonProps:{type:null,default:null},moveBottomButtonProps:{type:null,default:null},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},css:{classes:{root:function(e){return["p-orderlist p-component",{"p-orderlist-striped":e.props.stripedRows}]},controls:"p-orderlist-controls",header:"p-orderlist-header",container:"p-orderlist-list-container",list:"p-orderlist-list",item:function(e){var t=e.instance,n=e.id;return["p-orderlist-item",{"p-highlight":t.isSelected(e.item),"p-focus":n===t.focusedOptionId}]}},loadStyle:y.load},provide:function(){return{$parentInstance:this}}},emits:["update:modelValue","reorder","update:selection","selection-change","focus","blur"],itemTouched:!1,reorderDirection:null,styleElement:null,list:null,data:function(){return{id:this.$attrs.id,d_selection:this.selection,focused:!1,focusedOptionIndex:-1}},watch:{"$attrs.id":function(e){this.id=e||l.UniqueComponentId()}},beforeUnmount:function(){this.destroyStyle()},updated:function(){this.reorderDirection&&(this.updateListScroll(),this.reorderDirection=null)},mounted:function(){this.id=this.id||l.UniqueComponentId(),this.responsive&&this.createStyle()},methods:{getItemKey:function(e,t){return this.dataKey?l.ObjectUtils.resolveFieldData(e,this.dataKey):t},getPTOptions:function(e,t,n){return this.ptm(t,{context:{active:this.isSelected(e),focused:"".concat(this.id,"_").concat(n)===this.focusedOptionId}})},isSelected:function(e){return-1!=l.ObjectUtils.findIndexInList(e,this.d_selection)},onListFocus:function(e){var t=l.DomHandler.findSingle(this.list,'[data-p-highlight="true"]');if(t){var n=l.ObjectUtils.findIndexInList(t,this.list.children);this.focused=!0,this.changeFocusedOptionIndex(-1!==this.focusedOptionIndex?this.focusedOptionIndex:t?n:-1),this.$emit("focus",e)}},onListBlur:function(e){this.focused=!1,this.focusedOptionIndex=-1,this.$emit("blur",e)},onListKeyDown:function(e){switch(e.code){case"ArrowDown":this.onArrowDownKey(e);break;case"ArrowUp":this.onArrowUpKey(e);break;case"Home":this.onHomeKey(e);break;case"End":this.onEndKey(e);break;case"Enter":this.onEnterKey(e);break;case"Space":this.onSpaceKey(e);break;case"KeyA":e.ctrlKey&&(this.d_selection=g(this.modelValue),this.$emit("update:selection",this.d_selection))}},onOptionMouseDown:function(e){this.focused=!0,this.focusedOptionIndex=e},onArrowDownKey:function(e){var t=this.findNextOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(t),e.shiftKey&&this.onEnterKey(e),e.preventDefault()},onArrowUpKey:function(e){var t=this.findPrevOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(t),e.shiftKey&&this.onEnterKey(e),e.preventDefault()},onHomeKey:function(e){if(e.ctrlKey&&e.shiftKey){var t=l.DomHandler.find(this.list,'[data-pc-section="item"]'),n=l.DomHandler.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),i=g(t).findIndex((function(e){return e===n}));this.d_selection=g(this.modelValue).slice(0,i+1),this.$emit("update:selection",this.d_selection)}else this.changeFocusedOptionIndex(0);e.preventDefault()},onEndKey:function(e){if(e.ctrlKey&&e.shiftKey){var t=l.DomHandler.find(this.list,'[data-pc-section="item"]'),n=l.DomHandler.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),i=g(t).findIndex((function(e){return e===n}));this.d_selection=g(this.modelValue).slice(i,t.length),this.$emit("update:selection",this.d_selection)}else this.changeFocusedOptionIndex(l.DomHandler.find(this.list,'[data-pc-section="item"]').length-1);e.preventDefault()},onEnterKey:function(e){var t=l.DomHandler.find(this.list,'[data-pc-section="item"]'),n=l.DomHandler.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),i=g(t).findIndex((function(e){return e===n}));this.onItemClick(e,this.modelValue[i],i),e.preventDefault()},onSpaceKey:function(e){if(e.shiftKey){var t=l.DomHandler.find(this.list,'[data-pc-section="item"]'),n=l.ObjectUtils.findIndexInList(this.d_selection[0],g(this.modelValue)),i=l.DomHandler.findSingle(this.list,'[data-pc-section="item"][id='.concat(this.focusedOptionIndex,"]")),o=g(t).findIndex((function(e){return e===i}));this.d_selection=g(this.modelValue).slice(Math.min(n,o),Math.max(n,o)+1),this.$emit("update:selection",this.d_selection)}else this.onEnterKey(e)},findNextOptionIndex:function(e){var t=g(l.DomHandler.find(this.list,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return t>-1?t+1:0},findPrevOptionIndex:function(e){var t=g(l.DomHandler.find(this.list,'[data-pc-section="item"]')).findIndex((function(t){return t.id===e}));return t>-1?t-1:0},changeFocusedOptionIndex:function(e){var t=l.DomHandler.find(this.list,'[data-pc-section="item"]'),n=e>=t.length?t.length-1:e<0?0:e;this.focusedOptionIndex=t[n]?t[n].getAttribute("id"):-1,this.scrollInView(this.focusedOptionIndex)},scrollInView:function(e){var t=l.DomHandler.findSingle(this.list,'[data-pc-section="item"][id="'.concat(e,'"]'));t&&t.scrollIntoView&&t.scrollIntoView({block:"nearest",inline:"start"})},moveUp:function(e){if(this.d_selection){for(var t=g(this.modelValue),n=0;n<this.d_selection.length;n++){var i=l.ObjectUtils.findIndexInList(this.d_selection[n],t);if(0===i)break;var o=t[i-1];t[i-1]=t[i],t[i]=o}this.reorderDirection="up",this.$emit("update:modelValue",t),this.$emit("reorder",{originalEvent:e,value:t,direction:this.reorderDirection})}},moveTop:function(e){if(this.d_selection){for(var t=g(this.modelValue),n=0;n<this.d_selection.length;n++){var i=l.ObjectUtils.findIndexInList(this.d_selection[n],t);if(0===i)break;var o=t.splice(i,1)[0];t.unshift(o)}this.reorderDirection="top",this.$emit("update:modelValue",t),this.$emit("reorder",{originalEvent:e,value:t,direction:this.reorderDirection})}},moveDown:function(e){if(this.d_selection){for(var t=g(this.modelValue),n=this.d_selection.length-1;n>=0;n--){var i=l.ObjectUtils.findIndexInList(this.d_selection[n],t);if(i===t.length-1)break;var o=t[i+1];t[i+1]=t[i],t[i]=o}this.reorderDirection="down",this.$emit("update:modelValue",t),this.$emit("reorder",{originalEvent:e,value:t,direction:this.reorderDirection})}},moveBottom:function(e){if(this.d_selection){for(var t=g(this.modelValue),n=this.d_selection.length-1;n>=0;n--){var i=l.ObjectUtils.findIndexInList(this.d_selection[n],t);if(i===t.length-1)break;var o=t.splice(i,1)[0];t.push(o)}this.reorderDirection="bottom",this.$emit("update:modelValue",t),this.$emit("reorder",{originalEvent:e,value:t,direction:this.reorderDirection})}},onItemClick:function(e,t,n){this.itemTouched=!1;var i=l.ObjectUtils.findIndexInList(t,this.d_selection),o=-1!=i,r=!this.itemTouched&&this.metaKeySelection,s=l.DomHandler.find(this.list,'[data-pc-section="item"]')[n].getAttribute("id");if(this.focusedOptionIndex=s,r){var d=e.metaKey||e.ctrlKey;o&&d?this.d_selection=this.d_selection.filter((function(e,t){return t!==i})):(this.d_selection=d&&this.d_selection?g(this.d_selection):[],l.ObjectUtils.insertIntoOrderedArray(t,n,this.d_selection,this.modelValue))}else o?this.d_selection=this.d_selection.filter((function(e,t){return t!==i})):(this.d_selection=this.d_selection?g(this.d_selection):[],l.ObjectUtils.insertIntoOrderedArray(t,n,this.d_selection,this.modelValue));this.$emit("update:selection",this.d_selection),this.$emit("selection-change",{originalEvent:e,value:this.d_selection})},onItemTouchEnd:function(){this.itemTouched=!0},findNextItem:function(e){var t=e.nextElementSibling;return t?"item"!==l.DomHandler.getAttribute(t,"data-pc-section")?this.findNextItem(t):t:null},findPrevItem:function(e){var t=e.previousElementSibling;return t?"item"!==l.DomHandler.getAttribute(nextItem,"data-pc-section")?this.findPrevItem(t):t:null},updateListScroll:function(){var e=l.DomHandler.find(this.list,'[data-pc-section="item"][data-p-highlight="true"]');if(e&&e.length)switch(this.reorderDirection){case"up":l.DomHandler.scrollInView(this.list,e[0]);break;case"top":this.list.scrollTop=0;break;case"down":l.DomHandler.scrollInView(this.list,e[e.length-1]);break;case"bottom":this.list.scrollTop=this.list.scrollHeight}},createStyle:function(){if(!this.styleElement&&!this.isUnstyled){var e;this.$el.setAttribute(this.attributeSelector,""),this.styleElement=document.createElement("style"),this.styleElement.type="text/css",l.DomHandler.setAttribute(this.styleElement,"nonce",null===(e=this.$primevue)||void 0===e||null===(e=e.config)||void 0===e||null===(e=e.csp)||void 0===e?void 0:e.nonce),document.head.appendChild(this.styleElement);var t="\n@media screen and (max-width: ".concat(this.breakpoint,") {\n .p-orderlist[").concat(this.attributeSelector,"] {\n flex-direction: column;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls {\n padding: var(--content-padding);\n flex-direction: row;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls .p-button {\n margin-right: var(--inline-spacing);\n margin-bottom: 0;\n }\n\n .p-orderlist[").concat(this.attributeSelector,"] .p-orderlist-controls .p-button:last-child {\n margin-right: 0;\n }\n}\n");this.styleElement.innerHTML=t}},destroyStyle:function(){this.styleElement&&(document.head.removeChild(this.styleElement),this.styleElement=null)},moveDisabled:function(){if(!this.d_selection||!this.d_selection.length)return!0},listRef:function(e){this.list=e?e.$el:void 0}},computed:{attributeSelector:function(){return l.UniqueComponentId()},focusedOptionId:function(){return-1!==this.focusedOptionIndex?this.focusedOptionIndex:null},moveUpAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveUp:void 0},moveTopAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveTop:void 0},moveDownAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveDown:void 0},moveBottomAriaLabel:function(){return this.$primevue.config.locale.aria?this.$primevue.config.locale.aria.moveBottom:void 0}},components:{OLButton:u.default,AngleUpIcon:f.default,AngleDownIcon:h.default,AngleDoubleUpIcon:m.default,AngleDoubleDownIcon:p.default},directives:{ripple:v.default}};function _(e){return _="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_(e)}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);t&&(i=i.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,i)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return(t=A(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function A(e){var t=E(e,"string");return"symbol"===_(t)?t:String(t)}function E(e,t){if("object"!==_(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var i=n.call(e,t||"default");if("object"!==_(i))return i;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var $=["id","onClick","aria-selected","onMousedown","data-p-highlight","data-p-focused"];return S.render=function(e,t,n,i,o,r){var l=a.resolveComponent("AngleUpIcon"),s=a.resolveComponent("OLButton"),d=a.resolveComponent("AngleDoubleUpIcon"),c=a.resolveComponent("AngleDownIcon"),u=a.resolveComponent("AngleDoubleDownIcon"),p=a.resolveDirective("ripple");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:e.cx("root")},e.ptm("root")),[a.createElementVNode("div",a.mergeProps({class:e.cx("controls")},e.ptm("controls")),[a.renderSlot(e.$slots,"controlsstart"),a.createVNode(s,a.mergeProps({type:"button",onClick:r.moveUp,"aria-label":r.moveUpAriaLabel,disabled:r.moveDisabled(),pt:e.ptm("moveUpButton")},e.moveUpButtonProps,{unstyled:e.unstyled}),{icon:a.withCtx((function(){return[a.renderSlot(e.$slots,"moveupicon",{},(function(){return[a.createVNode(l,a.normalizeProps(a.guardReactiveProps(e.ptm("moveUpButton").icon)),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),a.createVNode(s,a.mergeProps({type:"button",onClick:r.moveTop,"aria-label":r.moveTopAriaLabel,disabled:r.moveDisabled(),pt:e.ptm("moveTopButton")},e.ptm("moveTopButton"),{unstyled:e.unstyled}),{icon:a.withCtx((function(){return[a.renderSlot(e.$slots,"movetopicon",{},(function(){return[a.createVNode(d,a.normalizeProps(a.guardReactiveProps(e.ptm("moveTopButton").icon)),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),a.createVNode(s,a.mergeProps({type:"button",onClick:r.moveDown,"aria-label":r.moveDownAriaLabel,disabled:r.moveDisabled(),pt:e.ptm("moveDownButton")},e.moveDownButtonProps,{unstyled:e.unstyled}),{icon:a.withCtx((function(){return[a.renderSlot(e.$slots,"movedownicon",{},(function(){return[a.createVNode(c,a.normalizeProps(a.guardReactiveProps(e.ptm("moveDownButton").icon)),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),a.createVNode(s,a.mergeProps({type:"button",onClick:r.moveBottom,"aria-label":r.moveBottomAriaLabel,disabled:r.moveDisabled(),pt:e.ptm("moveBottomButton")},e.moveBottomButtonProps,{unstyled:e.unstyled}),{icon:a.withCtx((function(){return[a.renderSlot(e.$slots,"movebottomicon",{},(function(){return[a.createVNode(u,a.normalizeProps(a.guardReactiveProps(e.ptm("moveBottomButton").icon)),null,16)]}))]})),_:3},16,["onClick","aria-label","disabled","pt","unstyled"]),a.renderSlot(e.$slots,"controlsend")],16),a.createElementVNode("div",a.mergeProps({class:e.cx("container")},e.ptm("container")),[e.$slots.header?(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:e.cx("header")},e.ptm("header")),[a.renderSlot(e.$slots,"header")],16)):a.createCommentVNode("",!0),a.createVNode(a.TransitionGroup,a.mergeProps({ref:r.listRef,id:o.id+"_list",name:"p-orderlist-flip",tag:"ul",class:e.cx("list"),style:e.listStyle,role:"listbox","aria-multiselectable":"true",tabindex:e.tabindex,"aria-activedescendant":o.focused?r.focusedOptionId:void 0,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,onFocus:r.onListFocus,onBlur:r.onListBlur,onKeydown:r.onListKeyDown},B(B(B({},e.listProps),e.ptm("list")),e.ptm("transition"))),{default:a.withCtx((function(){return[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(e.modelValue,(function(n,i){return a.withDirectives((a.openBlock(),a.createElementBlock("li",a.mergeProps({key:r.getItemKey(n,i),id:o.id+"_"+i,role:"option",class:e.cx("item",{item:n,id:"".concat(o.id,"_").concat(i)}),onClick:function(e){return r.onItemClick(e,n,i)},onTouchend:t[0]||(t[0]=function(){return r.onItemTouchEnd&&r.onItemTouchEnd.apply(r,arguments)}),"aria-selected":r.isSelected(n),onMousedown:function(e){return r.onOptionMouseDown(i)}},r.getPTOptions(n,"item",i),{"data-p-highlight":r.isSelected(n),"data-p-focused":"".concat(o.id,"_").concat(i)===r.focusedOptionId}),[a.renderSlot(e.$slots,"item",{item:n,index:i})],16,$)),[[p]])})),128))]})),_:3},16,["id","class","style","tabindex","aria-activedescendant","aria-label","aria-labelledby","onFocus","onBlur","onKeydown"])],16)],16)},S}(primevue.button,primevue.icons.angledoubledown,primevue.icons.angledoubleup,primevue.icons.angledown,primevue.icons.angleup,primevue.ripple,primevue.utils,primevue.basecomponent,primevue.usestyle,Vue);
@@ -9,7 +9,8 @@
9
9
  */
10
10
  import { VNode } from 'vue';
11
11
  import { ComponentHooks } from '../basecomponent';
12
- import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers';
12
+ import { PassThroughOptions } from '../passthrough';
13
+ import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
13
14
 
14
15
  export declare type OrganizationChartPassThroughOptionType = OrganizationChartPassThroughAttributes | ((options: OrganizationChartPassThroughMethodOptions) => OrganizationChartPassThroughAttributes | string) | string | null | undefined;
15
16
 
@@ -17,10 +18,26 @@ export declare type OrganizationChartPassThroughOptionType = OrganizationChartPa
17
18
  * Custom passthrough(pt) option method.
18
19
  */
19
20
  export interface OrganizationChartPassThroughMethodOptions {
21
+ /**
22
+ * Defines instance.
23
+ */
20
24
  instance: any;
25
+ /**
26
+ * Defines valid properties.
27
+ */
21
28
  props: OrganizationChartProps;
29
+ /**
30
+ * Defines current inline state.
31
+ */
22
32
  state: OrganizationChartState;
33
+ /**
34
+ * Defines current options.
35
+ */
23
36
  context: OrganizationChartContext;
37
+ /**
38
+ * Defines passthrough(pt) options in global config.
39
+ */
40
+ global: object | undefined;
24
41
  }
25
42
 
26
43
  /**
@@ -224,7 +241,12 @@ export interface OrganizationChartProps {
224
241
  * Used to pass attributes to DOM elements inside the component.
225
242
  * @type {OrganizationChartPassThroughOptions}
226
243
  */
227
- pt?: PTOptions<OrganizationChartPassThroughOptions>;
244
+ pt?: PassThrough<OrganizationChartPassThroughOptions>;
245
+ /**
246
+ * Used to configure passthrough(pt) options of the component.
247
+ * @type {PassThroughOptions}
248
+ */
249
+ ptOptions?: PassThroughOptions;
228
250
  /**
229
251
  * When enabled, it removes component related styles in the core.
230
252
  * @defaultValue false
@@ -14,7 +14,7 @@ var ChevronDownIcon__default = /*#__PURE__*/_interopDefaultLegacy(ChevronDownIco
14
14
  var ChevronUpIcon__default = /*#__PURE__*/_interopDefaultLegacy(ChevronUpIcon);
15
15
 
16
16
  var _classes;
17
- function _typeof$1(obj) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$1(obj); }
17
+ function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$1(o); }
18
18
  function _defineProperty$1(obj, key, value) { key = _toPropertyKey$1(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
19
19
  function _toPropertyKey$1(arg) { var key = _toPrimitive$1(arg, "string"); return _typeof$1(key) === "symbol" ? key : String(key); }
20
20
  function _toPrimitive$1(input, hint) { if (_typeof$1(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$1(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
@@ -279,9 +279,9 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
279
279
 
280
280
  script$1.render = render$1;
281
281
 
282
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
283
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
284
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
282
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
283
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
284
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
285
285
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
286
286
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
287
287
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
@@ -6,7 +6,7 @@ import { DomHandler } from 'primevue/utils';
6
6
  import { resolveComponent, openBlock, createElementBlock, mergeProps, createElementVNode, normalizeProps, guardReactiveProps, createBlock, resolveDynamicComponent, createCommentVNode, Fragment, renderList, createVNode } from 'vue';
7
7
 
8
8
  var _classes;
9
- function _typeof$1(obj) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$1(obj); }
9
+ function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$1(o); }
10
10
  function _defineProperty$1(obj, key, value) { key = _toPropertyKey$1(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
11
11
  function _toPropertyKey$1(arg) { var key = _toPrimitive$1(arg, "string"); return _typeof$1(key) === "symbol" ? key : String(key); }
12
12
  function _toPrimitive$1(input, hint) { if (_typeof$1(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$1(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
@@ -271,9 +271,9 @@ function render$1(_ctx, _cache, $props, $setup, $data, $options) {
271
271
 
272
272
  script$1.render = render$1;
273
273
 
274
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
275
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
276
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
274
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
275
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
276
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
277
277
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
278
278
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
279
279
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
@@ -9,7 +9,7 @@ this.primevue.organizationchart = (function (BaseComponent, usestyle, ChevronDow
9
9
  var ChevronUpIcon__default = /*#__PURE__*/_interopDefaultLegacy(ChevronUpIcon);
10
10
 
11
11
  var _classes;
12
- function _typeof$1(obj) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof$1(obj); }
12
+ function _typeof$1(o) { "@babel/helpers - typeof"; return _typeof$1 = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof$1(o); }
13
13
  function _defineProperty$1(obj, key, value) { key = _toPropertyKey$1(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
14
14
  function _toPropertyKey$1(arg) { var key = _toPrimitive$1(arg, "string"); return _typeof$1(key) === "symbol" ? key : String(key); }
15
15
  function _toPrimitive$1(input, hint) { if (_typeof$1(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof$1(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
@@ -274,9 +274,9 @@ this.primevue.organizationchart = (function (BaseComponent, usestyle, ChevronDow
274
274
 
275
275
  script$1.render = render$1;
276
276
 
277
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
278
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
279
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
277
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
278
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
279
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
280
280
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
281
281
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
282
282
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
@@ -9,7 +9,8 @@
9
9
  */
10
10
  import { TransitionProps, VNode } from 'vue';
11
11
  import { ComponentHooks } from '../basecomponent';
12
- import { ClassComponent, GlobalComponentConstructor, PTOptions } from '../ts-helpers';
12
+ import { PassThroughOptions } from '../passthrough';
13
+ import { ClassComponent, GlobalComponentConstructor, PassThrough } from '../ts-helpers';
13
14
 
14
15
  export declare type OverlayPanelPassThroughOptionType = OverlayPanelPassThroughAttributes | ((options: OverlayPanelPassThroughMethodOptions) => OverlayPanelPassThroughAttributes | string) | string | null | undefined;
15
16
 
@@ -19,9 +20,22 @@ export declare type OverlayPanelPassThroughTransitionType = TransitionProps | ((
19
20
  * Custom passthrough(pt) option method.
20
21
  */
21
22
  export interface OverlayPanelPassThroughMethodOptions {
23
+ /**
24
+ * Defines instance.
25
+ */
22
26
  instance: any;
27
+ /**
28
+ * Defines valid properties.
29
+ */
23
30
  props: OverlayPanelProps;
31
+ /**
32
+ * Defines current inline state.
33
+ */
24
34
  state: OverlayPanelState;
35
+ /**
36
+ * Defines passthrough(pt) options in global config.
37
+ */
38
+ global: object | undefined;
25
39
  }
26
40
 
27
41
  /**
@@ -138,7 +152,12 @@ export interface OverlayPanelProps {
138
152
  * Used to pass attributes to DOM elements inside the component.
139
153
  * @type {OverlayPanelPassThroughOptions}
140
154
  */
141
- pt?: PTOptions<OverlayPanelPassThroughOptions>;
155
+ pt?: PassThrough<OverlayPanelPassThroughOptions>;
156
+ /**
157
+ * Used to configure passthrough(pt) options of the component.
158
+ * @type {PassThroughOptions}
159
+ */
160
+ ptOptions?: PassThroughOptions;
142
161
  /**
143
162
  * When enabled, it removes component related styles in the core.
144
163
  * @defaultValue false
@@ -329,9 +329,9 @@ var script = {
329
329
  }
330
330
  };
331
331
 
332
- function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
333
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
334
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
332
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
333
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
334
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
335
335
  function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
336
336
  function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
337
337
  function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }