primevue 3.31.0 → 3.32.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 (574) hide show
  1. package/accordion/Accordion.d.ts +5 -5
  2. package/accordion/Accordion.vue +1 -1
  3. package/accordion/accordion.cjs.js +3 -3
  4. package/accordion/accordion.cjs.min.js +1 -1
  5. package/accordion/accordion.esm.js +3 -3
  6. package/accordion/accordion.esm.min.js +1 -1
  7. package/accordion/accordion.js +3 -3
  8. package/accordion/accordion.min.js +1 -1
  9. package/accordiontab/AccordionTab.d.ts +18 -12
  10. package/autocomplete/AutoComplete.d.ts +34 -23
  11. package/autocomplete/AutoComplete.vue +3 -3
  12. package/autocomplete/BaseAutoComplete.vue +4 -0
  13. package/autocomplete/autocomplete.cjs.js +9 -5
  14. package/autocomplete/autocomplete.cjs.min.js +1 -1
  15. package/autocomplete/autocomplete.esm.js +9 -5
  16. package/autocomplete/autocomplete.esm.min.js +1 -1
  17. package/autocomplete/autocomplete.js +9 -5
  18. package/autocomplete/autocomplete.min.js +1 -1
  19. package/avatar/Avatar.d.ts +7 -7
  20. package/avatar/Avatar.vue +2 -2
  21. package/avatar/avatar.cjs.js +2 -2
  22. package/avatar/avatar.cjs.min.js +1 -1
  23. package/avatar/avatar.esm.js +2 -2
  24. package/avatar/avatar.esm.min.js +1 -1
  25. package/avatar/avatar.js +2 -2
  26. package/avatar/avatar.min.js +1 -1
  27. package/avatargroup/AvatarGroup.d.ts +3 -3
  28. package/badge/Badge.d.ts +3 -3
  29. package/badgedirective/BadgeDirective.d.ts +45 -4
  30. package/badgedirective/badgedirective.cjs.js +11 -1
  31. package/badgedirective/badgedirective.cjs.min.js +1 -1
  32. package/badgedirective/badgedirective.esm.js +11 -1
  33. package/badgedirective/badgedirective.esm.min.js +1 -1
  34. package/badgedirective/badgedirective.js +11 -1
  35. package/badgedirective/badgedirective.min.js +1 -1
  36. package/basecomponent/BaseComponent.vue +51 -25
  37. package/basecomponent/basecomponent.cjs.js +66 -42
  38. package/basecomponent/basecomponent.cjs.min.js +1 -1
  39. package/basecomponent/basecomponent.esm.js +66 -42
  40. package/basecomponent/basecomponent.esm.min.js +1 -1
  41. package/basecomponent/basecomponent.js +66 -42
  42. package/basecomponent/basecomponent.min.js +1 -1
  43. package/basedirective/basedirective.cjs.js +9 -3
  44. package/basedirective/basedirective.cjs.min.js +1 -1
  45. package/basedirective/basedirective.esm.js +9 -3
  46. package/basedirective/basedirective.esm.min.js +1 -1
  47. package/basedirective/basedirective.js +9 -3
  48. package/basedirective/basedirective.min.js +1 -1
  49. package/blockui/BaseBlockUI.vue +0 -8
  50. package/blockui/BlockUI.d.ts +7 -3
  51. package/blockui/BlockUI.vue +35 -10
  52. package/blockui/blockui.cjs.js +34 -12
  53. package/blockui/blockui.cjs.min.js +1 -1
  54. package/blockui/blockui.esm.js +34 -12
  55. package/blockui/blockui.esm.min.js +1 -1
  56. package/blockui/blockui.js +34 -12
  57. package/blockui/blockui.min.js +1 -1
  58. package/breadcrumb/Breadcrumb.d.ts +10 -10
  59. package/button/Button.d.ts +8 -7
  60. package/button/Button.vue +4 -0
  61. package/button/button.cjs.js +5 -0
  62. package/button/button.cjs.min.js +1 -1
  63. package/button/button.esm.js +5 -0
  64. package/button/button.esm.min.js +1 -1
  65. package/button/button.js +5 -0
  66. package/button/button.min.js +1 -1
  67. package/calendar/Calendar.d.ts +129 -53
  68. package/calendar/Calendar.vue +49 -7
  69. package/calendar/calendar.cjs.js +72 -35
  70. package/calendar/calendar.cjs.min.js +1 -1
  71. package/calendar/calendar.esm.js +72 -35
  72. package/calendar/calendar.esm.min.js +1 -1
  73. package/calendar/calendar.js +72 -35
  74. package/calendar/calendar.min.js +1 -1
  75. package/card/Card.d.ts +9 -9
  76. package/carousel/Carousel.d.ts +32 -20
  77. package/carousel/Carousel.vue +10 -2
  78. package/carousel/carousel.cjs.js +11 -2
  79. package/carousel/carousel.cjs.min.js +1 -1
  80. package/carousel/carousel.esm.js +11 -2
  81. package/carousel/carousel.esm.min.js +1 -1
  82. package/carousel/carousel.js +11 -2
  83. package/carousel/carousel.min.js +1 -1
  84. package/cascadeselect/CascadeSelect.d.ts +25 -19
  85. package/cascadeselect/CascadeSelect.vue +1 -1
  86. package/cascadeselect/cascadeselect.cjs.js +3 -3
  87. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  88. package/cascadeselect/cascadeselect.esm.js +3 -3
  89. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  90. package/cascadeselect/cascadeselect.js +3 -3
  91. package/cascadeselect/cascadeselect.min.js +1 -1
  92. package/chart/Chart.d.ts +5 -5
  93. package/checkbox/Checkbox.d.ts +8 -8
  94. package/chip/Chip.d.ts +7 -7
  95. package/chips/Chips.d.ts +10 -10
  96. package/colorpicker/ColorPicker.d.ts +18 -11
  97. package/colorpicker/ColorPicker.vue +1 -1
  98. package/colorpicker/colorpicker.cjs.js +3 -3
  99. package/colorpicker/colorpicker.cjs.min.js +1 -1
  100. package/colorpicker/colorpicker.esm.js +3 -3
  101. package/colorpicker/colorpicker.esm.min.js +1 -1
  102. package/colorpicker/colorpicker.js +3 -3
  103. package/colorpicker/colorpicker.min.js +1 -1
  104. package/column/Column.d.ts +58 -58
  105. package/columngroup/ColumnGroup.d.ts +3 -3
  106. package/config/PrimeVue.d.ts +8 -0
  107. package/config/config.cjs.js +4 -1
  108. package/config/config.cjs.min.js +1 -1
  109. package/config/config.esm.js +4 -1
  110. package/config/config.esm.min.js +1 -1
  111. package/config/config.js +4 -1
  112. package/config/config.min.js +1 -1
  113. package/confirmdialog/ConfirmDialog.d.ts +14 -14
  114. package/confirmpopup/ConfirmPopup.d.ts +16 -10
  115. package/confirmpopup/ConfirmPopup.vue +1 -1
  116. package/confirmpopup/confirmpopup.cjs.js +3 -3
  117. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  118. package/confirmpopup/confirmpopup.esm.js +4 -4
  119. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  120. package/confirmpopup/confirmpopup.js +3 -3
  121. package/confirmpopup/confirmpopup.min.js +1 -1
  122. package/contextmenu/ContextMenu.d.ts +19 -13
  123. package/contextmenu/ContextMenu.vue +1 -1
  124. package/contextmenu/ContextMenuSub.vue +1 -1
  125. package/contextmenu/contextmenu.cjs.js +6 -6
  126. package/contextmenu/contextmenu.cjs.min.js +1 -1
  127. package/contextmenu/contextmenu.esm.js +7 -7
  128. package/contextmenu/contextmenu.esm.min.js +1 -1
  129. package/contextmenu/contextmenu.js +6 -6
  130. package/contextmenu/contextmenu.min.js +1 -1
  131. package/core/core.js +1958 -1326
  132. package/core/core.min.js +18 -16
  133. package/datatable/BaseDataTable.vue +1 -1
  134. package/datatable/BodyCell.vue +1 -0
  135. package/datatable/ColumnFilter.vue +1 -1
  136. package/datatable/DataTable.d.ts +37 -31
  137. package/datatable/DataTable.vue +4 -1
  138. package/datatable/datatable.cjs.js +10 -5
  139. package/datatable/datatable.cjs.min.js +1 -1
  140. package/datatable/datatable.esm.js +10 -5
  141. package/datatable/datatable.esm.min.js +1 -1
  142. package/datatable/datatable.js +10 -5
  143. package/datatable/datatable.min.js +1 -1
  144. package/dataview/DataView.d.ts +10 -10
  145. package/dataviewlayoutoptions/DataViewLayoutOptions.d.ts +7 -7
  146. package/deferredcontent/DeferredContent.d.ts +3 -3
  147. package/dialog/BaseDialog.vue +3 -7
  148. package/dialog/Dialog.d.ts +21 -15
  149. package/dialog/Dialog.vue +2 -1
  150. package/dialog/dialog.cjs.js +9 -6
  151. package/dialog/dialog.cjs.min.js +1 -1
  152. package/dialog/dialog.esm.js +9 -6
  153. package/dialog/dialog.esm.min.js +1 -1
  154. package/dialog/dialog.js +9 -6
  155. package/dialog/dialog.min.js +1 -1
  156. package/divider/BaseDivider.vue +9 -24
  157. package/divider/Divider.d.ts +4 -4
  158. package/divider/Divider.vue +1 -1
  159. package/divider/divider.cjs.js +15 -2
  160. package/divider/divider.cjs.min.js +1 -1
  161. package/divider/divider.esm.js +15 -2
  162. package/divider/divider.esm.min.js +1 -1
  163. package/divider/divider.js +15 -2
  164. package/divider/divider.min.js +1 -1
  165. package/dock/BaseDock.vue +1 -1
  166. package/dock/Dock.d.ts +9 -9
  167. package/dock/Dock.vue +19 -2
  168. package/dock/dock.cjs.js +10 -4
  169. package/dock/dock.cjs.min.js +1 -1
  170. package/dock/dock.esm.js +10 -4
  171. package/dock/dock.esm.min.js +1 -1
  172. package/dock/dock.js +10 -4
  173. package/dock/dock.min.js +1 -1
  174. package/dropdown/BaseDropdown.vue +5 -5
  175. package/dropdown/Dropdown.d.ts +34 -28
  176. package/dropdown/Dropdown.vue +2 -2
  177. package/dropdown/dropdown.cjs.js +9 -9
  178. package/dropdown/dropdown.cjs.min.js +1 -1
  179. package/dropdown/dropdown.esm.js +9 -9
  180. package/dropdown/dropdown.esm.min.js +1 -1
  181. package/dropdown/dropdown.js +9 -9
  182. package/dropdown/dropdown.min.js +1 -1
  183. package/editor/BaseEditor.vue +0 -14
  184. package/editor/Editor.d.ts +19 -19
  185. package/editor/Editor.vue +20 -20
  186. package/editor/editor.cjs.js +20 -34
  187. package/editor/editor.cjs.min.js +1 -1
  188. package/editor/editor.esm.js +20 -34
  189. package/editor/editor.esm.min.js +1 -1
  190. package/editor/editor.js +20 -34
  191. package/editor/editor.min.js +1 -1
  192. package/fieldset/Fieldset.d.ts +17 -11
  193. package/fieldset/Fieldset.vue +1 -1
  194. package/fieldset/fieldset.cjs.js +3 -3
  195. package/fieldset/fieldset.cjs.min.js +1 -1
  196. package/fieldset/fieldset.esm.js +3 -3
  197. package/fieldset/fieldset.esm.min.js +1 -1
  198. package/fieldset/fieldset.js +3 -3
  199. package/fieldset/fieldset.min.js +1 -1
  200. package/fileupload/FileUpload.d.ts +24 -24
  201. package/fileupload/FileUpload.vue +4 -4
  202. package/fileupload/fileupload.cjs.js +10 -4
  203. package/fileupload/fileupload.cjs.min.js +1 -1
  204. package/fileupload/fileupload.esm.js +10 -4
  205. package/fileupload/fileupload.esm.min.js +1 -1
  206. package/fileupload/fileupload.js +10 -4
  207. package/fileupload/fileupload.min.js +1 -1
  208. package/focustrap/FocusTrap.d.ts +5 -5
  209. package/galleria/Galleria.d.ts +53 -34
  210. package/galleria/Galleria.vue +1 -1
  211. package/galleria/GalleriaItem.vue +9 -2
  212. package/galleria/GalleriaThumbnails.vue +1 -0
  213. package/galleria/galleria.cjs.js +14 -5
  214. package/galleria/galleria.cjs.min.js +1 -1
  215. package/galleria/galleria.esm.js +14 -5
  216. package/galleria/galleria.esm.min.js +1 -1
  217. package/galleria/galleria.js +14 -5
  218. package/galleria/galleria.min.js +1 -1
  219. package/image/Image.d.ts +28 -21
  220. package/image/Image.vue +2 -2
  221. package/image/image.cjs.js +4 -3
  222. package/image/image.cjs.min.js +1 -1
  223. package/image/image.esm.js +4 -3
  224. package/image/image.esm.min.js +1 -1
  225. package/image/image.js +4 -3
  226. package/image/image.min.js +1 -1
  227. package/inlinemessage/InlineMessage.d.ts +5 -5
  228. package/inplace/Inplace.d.ts +8 -8
  229. package/inputmask/InputMask.d.ts +32 -4
  230. package/inputmask/InputMask.vue +9 -1
  231. package/inputmask/inputmask.cjs.js +9 -1
  232. package/inputmask/inputmask.cjs.min.js +1 -1
  233. package/inputmask/inputmask.esm.js +9 -1
  234. package/inputmask/inputmask.esm.min.js +1 -1
  235. package/inputmask/inputmask.js +9 -1
  236. package/inputmask/inputmask.min.js +1 -1
  237. package/inputnumber/InputNumber.d.ts +10 -10
  238. package/inputswitch/InputSwitch.d.ts +7 -7
  239. package/inputtext/InputText.d.ts +3 -3
  240. package/knob/Knob.d.ts +7 -7
  241. package/listbox/Listbox.d.ts +18 -18
  242. package/megamenu/MegaMenu.d.ts +18 -18
  243. package/megamenu/MegaMenuSub.vue +1 -0
  244. package/megamenu/megamenu.cjs.js +2 -1
  245. package/megamenu/megamenu.cjs.min.js +1 -1
  246. package/megamenu/megamenu.esm.js +2 -1
  247. package/megamenu/megamenu.esm.min.js +1 -1
  248. package/megamenu/megamenu.js +2 -1
  249. package/megamenu/megamenu.min.js +1 -1
  250. package/menu/Menu.d.ts +20 -14
  251. package/menu/Menu.vue +1 -1
  252. package/menu/menu.cjs.js +3 -3
  253. package/menu/menu.cjs.min.js +1 -1
  254. package/menu/menu.esm.js +3 -3
  255. package/menu/menu.esm.min.js +1 -1
  256. package/menu/menu.js +3 -3
  257. package/menu/menu.min.js +1 -1
  258. package/menubar/Menubar.d.ts +21 -17
  259. package/menubar/MenubarSub.vue +3 -1
  260. package/menubar/menubar.cjs.js +4 -2
  261. package/menubar/menubar.cjs.min.js +1 -1
  262. package/menubar/menubar.esm.js +4 -2
  263. package/menubar/menubar.esm.min.js +1 -1
  264. package/menubar/menubar.js +4 -2
  265. package/menubar/menubar.min.js +1 -1
  266. package/message/Message.d.ts +18 -12
  267. package/message/Message.vue +1 -1
  268. package/message/message.cjs.js +3 -3
  269. package/message/message.cjs.min.js +1 -1
  270. package/message/message.esm.js +4 -4
  271. package/message/message.esm.min.js +1 -1
  272. package/message/message.js +3 -3
  273. package/message/message.min.js +1 -1
  274. package/multiselect/MultiSelect.d.ts +47 -41
  275. package/multiselect/MultiSelect.vue +1 -1
  276. package/multiselect/multiselect.cjs.js +3 -3
  277. package/multiselect/multiselect.cjs.min.js +1 -1
  278. package/multiselect/multiselect.esm.js +3 -3
  279. package/multiselect/multiselect.esm.min.js +1 -1
  280. package/multiselect/multiselect.js +3 -3
  281. package/multiselect/multiselect.min.js +1 -1
  282. package/orderlist/OrderList.d.ts +24 -18
  283. package/orderlist/OrderList.vue +2 -1
  284. package/orderlist/orderlist.cjs.js +3 -1
  285. package/orderlist/orderlist.cjs.min.js +1 -1
  286. package/orderlist/orderlist.esm.js +3 -1
  287. package/orderlist/orderlist.esm.min.js +1 -1
  288. package/orderlist/orderlist.js +3 -1
  289. package/orderlist/orderlist.min.js +1 -1
  290. package/organizationchart/OrganizationChart.d.ts +15 -15
  291. package/overlaypanel/OverlayPanel.d.ts +13 -7
  292. package/overlaypanel/OverlayPanel.vue +2 -1
  293. package/overlaypanel/overlaypanel.cjs.js +5 -3
  294. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  295. package/overlaypanel/overlaypanel.esm.js +6 -4
  296. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  297. package/overlaypanel/overlaypanel.js +5 -3
  298. package/overlaypanel/overlaypanel.min.js +1 -1
  299. package/package.json +15 -15
  300. package/paginator/Paginator.d.ts +20 -20
  301. package/paginator/Paginator.vue +2 -1
  302. package/paginator/paginator.cjs.js +2 -0
  303. package/paginator/paginator.cjs.min.js +1 -1
  304. package/paginator/paginator.esm.js +3 -1
  305. package/paginator/paginator.esm.min.js +1 -1
  306. package/paginator/paginator.js +2 -0
  307. package/paginator/paginator.min.js +1 -1
  308. package/panel/Panel.d.ts +19 -13
  309. package/panel/Panel.vue +1 -1
  310. package/panel/panel.cjs.js +3 -3
  311. package/panel/panel.cjs.min.js +1 -1
  312. package/panel/panel.esm.js +3 -3
  313. package/panel/panel.esm.min.js +1 -1
  314. package/panel/panel.js +3 -3
  315. package/panel/panel.min.js +1 -1
  316. package/panelmenu/PanelMenu.d.ts +27 -21
  317. package/panelmenu/PanelMenu.vue +1 -1
  318. package/panelmenu/PanelMenuSub.vue +1 -1
  319. package/panelmenu/panelmenu.cjs.js +6 -6
  320. package/panelmenu/panelmenu.cjs.min.js +1 -1
  321. package/panelmenu/panelmenu.esm.js +6 -6
  322. package/panelmenu/panelmenu.esm.min.js +1 -1
  323. package/panelmenu/panelmenu.js +6 -6
  324. package/panelmenu/panelmenu.min.js +1 -1
  325. package/passthrough/index.cjs.js +74 -0
  326. package/passthrough/index.cjs.min.js +1 -0
  327. package/passthrough/index.d.ts +15 -0
  328. package/passthrough/index.esm.js +70 -0
  329. package/passthrough/index.esm.min.js +1 -0
  330. package/passthrough/index.js +77 -0
  331. package/passthrough/index.min.js +1 -0
  332. package/passthrough/package.json +6 -0
  333. package/{tailwind/tailwind.cjs.js → passthrough/tailwind/index.cjs.js} +1268 -828
  334. package/passthrough/tailwind/index.cjs.min.js +1 -0
  335. package/{tailwind/Tailwind.d.ts → passthrough/tailwind/index.d.ts} +1 -1
  336. package/{tailwind/tailwind.esm.js → passthrough/tailwind/index.esm.js} +1265 -828
  337. package/passthrough/tailwind/index.esm.min.js +1 -0
  338. package/{tailwind/tailwind.js → passthrough/tailwind/index.js} +1273 -830
  339. package/passthrough/tailwind/index.min.js +1 -0
  340. package/passthrough/tailwind/package.json +6 -0
  341. package/password/Password.d.ts +25 -14
  342. package/password/Password.vue +2 -1
  343. package/password/password.cjs.js +4 -3
  344. package/password/password.cjs.min.js +1 -1
  345. package/password/password.esm.js +4 -3
  346. package/password/password.esm.min.js +1 -1
  347. package/password/password.js +4 -3
  348. package/password/password.min.js +1 -1
  349. package/picklist/PickList.d.ts +42 -36
  350. package/picklist/PickList.vue +3 -2
  351. package/picklist/picklist.cjs.js +4 -2
  352. package/picklist/picklist.cjs.min.js +1 -1
  353. package/picklist/picklist.esm.js +4 -2
  354. package/picklist/picklist.esm.min.js +1 -1
  355. package/picklist/picklist.js +4 -2
  356. package/picklist/picklist.min.js +1 -1
  357. package/progressbar/ProgressBar.d.ts +5 -5
  358. package/progressspinner/ProgressSpinner.d.ts +5 -5
  359. package/radiobutton/RadioButton.d.ts +10 -10
  360. package/rating/Rating.d.ts +12 -12
  361. package/rating/Rating.vue +3 -3
  362. package/rating/rating.cjs.js +3 -3
  363. package/rating/rating.cjs.min.js +1 -1
  364. package/rating/rating.esm.js +3 -3
  365. package/rating/rating.esm.min.js +1 -1
  366. package/rating/rating.js +3 -3
  367. package/rating/rating.min.js +1 -1
  368. package/resources/themes/arya-blue/theme.css +7 -0
  369. package/resources/themes/arya-green/theme.css +7 -0
  370. package/resources/themes/arya-orange/theme.css +7 -0
  371. package/resources/themes/arya-purple/theme.css +7 -0
  372. package/resources/themes/bootstrap4-dark-blue/theme.css +14 -0
  373. package/resources/themes/bootstrap4-dark-purple/theme.css +14 -0
  374. package/resources/themes/bootstrap4-light-blue/theme.css +14 -0
  375. package/resources/themes/bootstrap4-light-purple/theme.css +14 -0
  376. package/resources/themes/fluent-light/theme.css +7 -0
  377. package/resources/themes/lara-dark-blue/theme.css +7 -0
  378. package/resources/themes/lara-dark-indigo/theme.css +7 -0
  379. package/resources/themes/lara-dark-purple/theme.css +7 -0
  380. package/resources/themes/lara-dark-teal/theme.css +7 -0
  381. package/resources/themes/lara-light-blue/theme.css +7 -0
  382. package/resources/themes/lara-light-indigo/theme.css +7 -0
  383. package/resources/themes/lara-light-purple/theme.css +7 -0
  384. package/resources/themes/lara-light-teal/theme.css +7 -0
  385. package/resources/themes/luna-amber/theme.css +7 -0
  386. package/resources/themes/luna-blue/theme.css +7 -0
  387. package/resources/themes/luna-green/theme.css +7 -0
  388. package/resources/themes/luna-pink/theme.css +7 -0
  389. package/resources/themes/md-dark-deeppurple/theme.css +7 -0
  390. package/resources/themes/md-dark-indigo/theme.css +7 -0
  391. package/resources/themes/md-light-deeppurple/theme.css +7 -0
  392. package/resources/themes/md-light-indigo/theme.css +7 -0
  393. package/resources/themes/mdc-dark-deeppurple/theme.css +7 -0
  394. package/resources/themes/mdc-dark-indigo/theme.css +7 -0
  395. package/resources/themes/mdc-light-deeppurple/theme.css +7 -0
  396. package/resources/themes/mdc-light-indigo/theme.css +7 -0
  397. package/resources/themes/mira/theme.css +7 -0
  398. package/resources/themes/nano/theme.css +7 -0
  399. package/resources/themes/nova/theme.css +7 -0
  400. package/resources/themes/nova-accent/theme.css +7 -0
  401. package/resources/themes/nova-alt/theme.css +7 -0
  402. package/resources/themes/nova-vue/theme.css +7 -0
  403. package/resources/themes/rhea/theme.css +7 -0
  404. package/resources/themes/saga-blue/theme.css +7 -0
  405. package/resources/themes/saga-green/theme.css +7 -0
  406. package/resources/themes/saga-orange/theme.css +7 -0
  407. package/resources/themes/saga-purple/theme.css +7 -0
  408. package/resources/themes/soho-dark/theme.css +7 -0
  409. package/resources/themes/soho-light/theme.css +7 -0
  410. package/resources/themes/tailwind-light/theme.css +7 -0
  411. package/resources/themes/vela-blue/theme.css +7 -0
  412. package/resources/themes/vela-green/theme.css +7 -0
  413. package/resources/themes/vela-orange/theme.css +7 -0
  414. package/resources/themes/vela-purple/theme.css +7 -0
  415. package/resources/themes/viva-dark/theme.css +7 -0
  416. package/resources/themes/viva-light/theme.css +7 -0
  417. package/ripple/Ripple.d.ts +3 -3
  418. package/row/Row.d.ts +2 -2
  419. package/scrollpanel/ScrollPanel.d.ts +7 -7
  420. package/scrolltop/ScrollTop.d.ts +11 -5
  421. package/scrolltop/ScrollTop.vue +1 -1
  422. package/scrolltop/scrolltop.cjs.js +3 -3
  423. package/scrolltop/scrolltop.cjs.min.js +1 -1
  424. package/scrolltop/scrolltop.esm.js +4 -4
  425. package/scrolltop/scrolltop.esm.min.js +1 -1
  426. package/scrolltop/scrolltop.js +3 -3
  427. package/scrolltop/scrolltop.min.js +1 -1
  428. package/selectbutton/SelectButton.d.ts +5 -5
  429. package/sidebar/Sidebar.d.ts +16 -10
  430. package/sidebar/Sidebar.vue +1 -1
  431. package/sidebar/sidebar.cjs.js +3 -3
  432. package/sidebar/sidebar.cjs.min.js +1 -1
  433. package/sidebar/sidebar.esm.js +3 -3
  434. package/sidebar/sidebar.esm.min.js +1 -1
  435. package/sidebar/sidebar.js +3 -3
  436. package/sidebar/sidebar.min.js +1 -1
  437. package/skeleton/Skeleton.d.ts +3 -3
  438. package/slider/Slider.d.ts +7 -7
  439. package/speeddial/BaseSpeedDial.vue +12 -36
  440. package/speeddial/SpeedDial.d.ts +14 -9
  441. package/speeddial/SpeedDial.vue +5 -4
  442. package/speeddial/speeddial.cjs.js +44 -23
  443. package/speeddial/speeddial.cjs.min.js +1 -1
  444. package/speeddial/speeddial.esm.js +44 -23
  445. package/speeddial/speeddial.esm.min.js +1 -1
  446. package/speeddial/speeddial.js +44 -23
  447. package/speeddial/speeddial.min.js +1 -1
  448. package/splitbutton/SplitButton.d.ts +8 -8
  449. package/splitbutton/SplitButton.vue +22 -3
  450. package/splitbutton/splitbutton.cjs.js +17 -5
  451. package/splitbutton/splitbutton.cjs.min.js +1 -1
  452. package/splitbutton/splitbutton.esm.js +17 -5
  453. package/splitbutton/splitbutton.esm.min.js +1 -1
  454. package/splitbutton/splitbutton.js +17 -5
  455. package/splitbutton/splitbutton.min.js +1 -1
  456. package/splitter/Splitter.d.ts +16 -5
  457. package/splitter/Splitter.vue +8 -1
  458. package/splitter/splitter.cjs.js +9 -1
  459. package/splitter/splitter.cjs.min.js +1 -1
  460. package/splitter/splitter.esm.js +9 -1
  461. package/splitter/splitter.esm.min.js +1 -1
  462. package/splitter/splitter.js +9 -1
  463. package/splitter/splitter.min.js +1 -1
  464. package/splitterpanel/SplitterPanel.d.ts +3 -3
  465. package/splitterpanel/SplitterPanel.vue +1 -1
  466. package/splitterpanel/splitterpanel.cjs.js +1 -1
  467. package/splitterpanel/splitterpanel.cjs.min.js +1 -1
  468. package/splitterpanel/splitterpanel.esm.js +1 -1
  469. package/splitterpanel/splitterpanel.esm.min.js +1 -1
  470. package/splitterpanel/splitterpanel.js +1 -1
  471. package/splitterpanel/splitterpanel.min.js +1 -1
  472. package/steps/Steps.d.ts +8 -8
  473. package/styleclass/StyleClass.d.ts +2 -2
  474. package/tabmenu/TabMenu.d.ts +9 -9
  475. package/tabpanel/TabPanel.d.ts +10 -10
  476. package/tabview/TabView.d.ts +16 -16
  477. package/tag/Tag.d.ts +5 -5
  478. package/terminal/Terminal.d.ts +11 -11
  479. package/textarea/Textarea.d.ts +3 -3
  480. package/tieredmenu/TieredMenu.d.ts +19 -13
  481. package/tieredmenu/TieredMenu.vue +1 -1
  482. package/tieredmenu/tieredmenu.cjs.js +3 -3
  483. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  484. package/tieredmenu/tieredmenu.esm.js +3 -3
  485. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  486. package/tieredmenu/tieredmenu.js +3 -3
  487. package/tieredmenu/tieredmenu.min.js +1 -1
  488. package/timeline/Timeline.d.ts +9 -9
  489. package/toast/BaseToast.vue +4 -0
  490. package/toast/Toast.d.ts +23 -17
  491. package/toast/Toast.vue +3 -2
  492. package/toast/toast.cjs.js +4 -2
  493. package/toast/toast.cjs.min.js +1 -1
  494. package/toast/toast.esm.js +5 -3
  495. package/toast/toast.esm.min.js +1 -1
  496. package/toast/toast.js +4 -2
  497. package/toast/toast.min.js +1 -1
  498. package/togglebutton/ToggleButton.d.ts +31 -9
  499. package/togglebutton/ToggleButton.vue +12 -3
  500. package/togglebutton/togglebutton.cjs.js +12 -3
  501. package/togglebutton/togglebutton.cjs.min.js +1 -1
  502. package/togglebutton/togglebutton.esm.js +12 -3
  503. package/togglebutton/togglebutton.esm.min.js +1 -1
  504. package/togglebutton/togglebutton.js +12 -3
  505. package/togglebutton/togglebutton.min.js +1 -1
  506. package/toolbar/Toolbar.d.ts +6 -6
  507. package/toolbar/Toolbar.vue +3 -3
  508. package/toolbar/toolbar.cjs.js +3 -6
  509. package/toolbar/toolbar.cjs.min.js +1 -1
  510. package/toolbar/toolbar.esm.js +3 -6
  511. package/toolbar/toolbar.esm.min.js +1 -1
  512. package/toolbar/toolbar.js +3 -6
  513. package/toolbar/toolbar.min.js +1 -1
  514. package/tooltip/Tooltip.d.ts +35 -6
  515. package/tooltip/tooltip.cjs.js +17 -4
  516. package/tooltip/tooltip.cjs.min.js +1 -1
  517. package/tooltip/tooltip.esm.js +17 -4
  518. package/tooltip/tooltip.esm.min.js +1 -1
  519. package/tooltip/tooltip.js +413 -400
  520. package/tooltip/tooltip.min.js +1 -1
  521. package/tree/Tree.d.ts +20 -20
  522. package/tree/Tree.vue +1 -0
  523. package/tree/tree.cjs.js +3 -2
  524. package/tree/tree.cjs.min.js +1 -1
  525. package/tree/tree.esm.js +3 -2
  526. package/tree/tree.esm.min.js +1 -1
  527. package/tree/tree.js +3 -2
  528. package/tree/tree.min.js +1 -1
  529. package/treeselect/TreeSelect.d.ts +23 -17
  530. package/treeselect/TreeSelect.vue +2 -2
  531. package/treeselect/treeselect.cjs.js +4 -4
  532. package/treeselect/treeselect.cjs.min.js +1 -1
  533. package/treeselect/treeselect.esm.js +4 -4
  534. package/treeselect/treeselect.esm.min.js +1 -1
  535. package/treeselect/treeselect.js +4 -4
  536. package/treeselect/treeselect.min.js +1 -1
  537. package/treetable/TreeTable.d.ts +21 -21
  538. package/treetable/TreeTable.vue +2 -1
  539. package/treetable/treetable.cjs.js +1 -1
  540. package/treetable/treetable.cjs.min.js +1 -1
  541. package/treetable/treetable.esm.js +1 -1
  542. package/treetable/treetable.esm.min.js +1 -1
  543. package/treetable/treetable.js +1 -1
  544. package/treetable/treetable.min.js +1 -1
  545. package/tristatecheckbox/TriStateCheckbox.d.ts +11 -11
  546. package/usestyle/UseStyle.d.ts +2 -1
  547. package/usestyle/usestyle.cjs.js +20 -7
  548. package/usestyle/usestyle.cjs.min.js +1 -1
  549. package/usestyle/usestyle.esm.js +20 -7
  550. package/usestyle/usestyle.esm.min.js +1 -1
  551. package/usestyle/usestyle.js +20 -7
  552. package/usestyle/usestyle.min.js +1 -1
  553. package/utils/Utils.d.ts +4 -0
  554. package/utils/utils.cjs.js +48 -8
  555. package/utils/utils.cjs.min.js +1 -1
  556. package/utils/utils.esm.js +48 -8
  557. package/utils/utils.esm.min.js +1 -1
  558. package/utils/utils.js +48 -8
  559. package/utils/utils.min.js +1 -1
  560. package/vetur-attributes.json +129 -125
  561. package/vetur-tags.json +1 -0
  562. package/virtualscroller/BaseVirtualScroller.vue +1 -1
  563. package/virtualscroller/VirtualScroller.d.ts +7 -7
  564. package/virtualscroller/virtualscroller.cjs.js +2 -1
  565. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  566. package/virtualscroller/virtualscroller.esm.js +2 -1
  567. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  568. package/virtualscroller/virtualscroller.js +2 -1
  569. package/virtualscroller/virtualscroller.min.js +1 -1
  570. package/web-types.json +160 -127
  571. package/tailwind/package.json +0 -6
  572. package/tailwind/tailwind.cjs.min.js +0 -1
  573. package/tailwind/tailwind.esm.min.js +0 -1
  574. package/tailwind/tailwind.min.js +0 -1
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/basecomponent"),t=require("primevue/usestyle"),n=require("primevue/ripple"),o=require("primevue/tooltip"),i=require("primevue/utils"),r=require("vue");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=a(e),l=a(n),s=a(o),d=t.useStyle("\n.p-dock {\n position: absolute;\n z-index: 1;\n display: flex;\n justify-content: center;\n align-items: center;\n pointer-events: none;\n}\n\n.p-dock-list-container {\n display: flex;\n pointer-events: auto;\n}\n\n.p-dock-list {\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.p-dock-item {\n transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n will-change: transform;\n}\n\n.p-dock-link {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n position: relative;\n overflow: hidden;\n cursor: default;\n}\n\n.p-dock-item-second-prev,\n.p-dock-item-second-next {\n transform: scale(1.2);\n}\n\n.p-dock-item-prev,\n.p-dock-item-next {\n transform: scale(1.4);\n}\n\n.p-dock-item-current {\n transform: scale(1.6);\n z-index: 1;\n}\n\n/* Position */\n/* top */\n.p-dock-top {\n left: 0;\n top: 0;\n width: 100%;\n}\n\n.p-dock-top .p-dock-item {\n transform-origin: center top;\n}\n\n/* bottom */\n.p-dock-bottom {\n left: 0;\n bottom: 0;\n width: 100%;\n}\n\n.p-dock-bottom .p-dock-item {\n transform-origin: center bottom;\n}\n\n/* right */\n.p-dock-right {\n right: 0;\n top: 0;\n height: 100%;\n}\n\n.p-dock-right .p-dock-item {\n transform-origin: center right;\n}\n\n.p-dock-right .p-dock-list {\n flex-direction: column;\n}\n\n/* left */\n.p-dock-left {\n left: 0;\n top: 0;\n height: 100%;\n}\n\n.p-dock-left .p-dock-item {\n transform-origin: center left;\n}\n\n.p-dock-left .p-dock-list {\n flex-direction: column;\n}\n",{name:"dock",manual:!0}),u={name:"BaseDock",extends:c.default,props:{position:{type:String,default:"bottom"},model:null,class:null,style:null,tooltipOptions:null,exact:{type:Boolean,default:!0},menuId:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},css:{classes:{root:function(e){var t=e.props;return["p-dock p-component","p-dock-".concat(t.position),t.class]},container:"p-dock-list-container",menu:"p-dock-list",menuitem:function(e){var t=e.instance,n=e.processedItem,o=e.index;return["p-dock-item",{"p-focus":t.isItemActive(e.id),"p-disabled":t.disabled(n),"p-dock-item-second-prev":t.currentIndex-2===o,"p-dock-item-prev":t.currentIndex-1===o,"p-dock-item-current":t.currentIndex===o,"p-dock-item-next":t.currentIndex+1===o,"p-dock-item-second-next":t.currentIndex+2===o}]},content:"p-menuitem-content",action:function(e){return["p-dock-link",{"router-link-active":e.isActive,"router-link-active-exact":e.props.exact&&e.isExactActive}]},icon:"p-dock-icon"},loadStyle:d.load},provide:function(){return{$parentInstance:this}}};function p(e){return h(e)||k(e)||f(e)||m()}function m(){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 f(e,t){if(e){if("string"==typeof e)return b(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)?b(e,t):void 0}}function k(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function h(e){if(Array.isArray(e))return b(e)}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var v={name:"DockSub",hostName:"Dock",extends:c.default,emits:["focus","blur"],props:{position:{type:String,default:"bottom"},model:{type:Array,default:null},templates:{type:null,default:null},exact:{type:Boolean,default:!0},tooltipOptions:null,menuId:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},data:function(){return{id:this.menuId,currentIndex:-3,focused:!1,focusedOptionIndex:-1}},watch:{menuId:function(e){this.id=e||i.UniqueComponentId()}},mounted:function(){this.id=this.id||i.UniqueComponentId()},methods:{getItemId:function(e){return"".concat(this.id,"_").concat(e)},getItemProp:function(e,t){return e&&e.item?i.ObjectUtils.getItemValue(e.item[t]):void 0},getPTOptions:function(e,t,n){return this.ptm(e,{context:{index:n,item:t,active:this.isItemActive(this.getItemId(n))}})},isSameMenuItem:function(e){return e.currentTarget&&(e.currentTarget.isSameNode(e.target)||e.currentTarget.isSameNode(e.target.closest('[data-pc-section="menuitem"]')))},isItemActive:function(e){return e===this.focusedOptionIndex},onListMouseLeave:function(){this.currentIndex=-3},onItemMouseEnter:function(e){this.currentIndex=e},onItemActionClick:function(e,t){t&&t(e)},onItemClick:function(e,t){if(this.isSameMenuItem(e)){var n=this.getItemProp(t,"command");n&&n({originalEvent:e,item:t.item})}},onListFocus:function(e){this.focused=!0,this.changeFocusedOptionIndex(0),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":"left"!==this.position&&"right"!==this.position||this.onArrowDownKey(),e.preventDefault();break;case"ArrowUp":"left"!==this.position&&"right"!==this.position||this.onArrowUpKey(),e.preventDefault();break;case"ArrowRight":"top"!==this.position&&"bottom"!==this.position||this.onArrowDownKey(),e.preventDefault();break;case"ArrowLeft":"top"!==this.position&&"bottom"!==this.position||this.onArrowUpKey(),e.preventDefault();break;case"Home":this.onHomeKey(),e.preventDefault();break;case"End":this.onEndKey(),e.preventDefault();break;case"Enter":case"Space":this.onSpaceKey(e),e.preventDefault()}},onArrowDownKey:function(){var e=this.findNextOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(e)},onArrowUpKey:function(){var e=this.findPrevOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(e)},onHomeKey:function(){this.changeFocusedOptionIndex(0)},onEndKey:function(){this.changeFocusedOptionIndex(i.DomHandler.find(this.$refs.list,'li[data-pc-section="menuitem"][data-p-disabled="false"]').length-1)},onSpaceKey:function(){var e=i.DomHandler.findSingle(this.$refs.list,'li[id="'.concat("".concat(this.focusedOptionIndex),'"]')),t=e&&i.DomHandler.findSingle(e,'[data-pc-section="action"]');t?t.click():e&&e.click()},findNextOptionIndex:function(e){var t=p(i.DomHandler.find(this.$refs.list,'li[data-pc-section="menuitem"][data-p-disabled="false"]')).findIndex((function(t){return t.id===e}));return t>-1?t+1:0},findPrevOptionIndex:function(e){var t=p(i.DomHandler.find(this.$refs.list,'li[data-pc-section="menuitem"][data-p-disabled="false"]')).findIndex((function(t){return t.id===e}));return t>-1?t-1:0},changeFocusedOptionIndex:function(e){var t=i.DomHandler.find(this.$refs.list,'li[data-pc-section="menuitem"][data-p-disabled="false"]');this.focusedOptionIndex=t[e>=t.length?t.length-1:e<0?0:e].getAttribute("id")},disabled:function(e){return"function"==typeof e.disabled?e.disabled():e.disabled}},computed:{focusedOptionId:function(){return-1!==this.focusedOptionIndex?this.focusedOptionIndex:null}},directives:{ripple:l.default,tooltip:s.default}},x=["id","aria-orientation","aria-activedescendant","tabindex","aria-label","aria-labelledby"],g=["id","aria-label","aria-disabled","onClick","onMouseenter","data-p-focused","data-p-disabled"],y=["href","target","onClick"],I=["href","target"];v.render=function(e,t,n,o,i,a){var c=r.resolveComponent("router-link"),l=r.resolveDirective("ripple"),s=r.resolveDirective("tooltip");return r.openBlock(),r.createElementBlock("div",r.mergeProps({class:e.cx("container")},e.ptm("container")),[r.createElementVNode("ul",r.mergeProps({ref:"list",id:i.id,class:e.cx("menu"),role:"menu","aria-orientation":"bottom"===n.position||"top"===n.position?"horizontal":"vertical","aria-activedescendant":i.focused?a.focusedOptionId:void 0,tabindex:n.tabindex,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,onFocus:t[0]||(t[0]=function(){return a.onListFocus&&a.onListFocus.apply(a,arguments)}),onBlur:t[1]||(t[1]=function(){return a.onListBlur&&a.onListBlur.apply(a,arguments)}),onKeydown:t[2]||(t[2]=function(){return a.onListKeyDown&&a.onListKeyDown.apply(a,arguments)}),onMouseleave:t[3]||(t[3]=function(){return a.onListMouseLeave&&a.onListMouseLeave.apply(a,arguments)})},e.ptm("menu")),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.model,(function(t,o){return r.openBlock(),r.createElementBlock("li",r.mergeProps({key:o,id:a.getItemId(o),class:e.cx("menuitem",{processedItem:t,index:o,id:a.getItemId(o)}),role:"menuitem","aria-label":t.label,"aria-disabled":a.disabled(t),onClick:function(e){return a.onItemClick(e,t)},onMouseenter:function(e){return a.onItemMouseEnter(o)}},a.getPTOptions("menuitem",t,o),{"data-p-focused":a.isItemActive(a.getItemId(o)),"data-p-disabled":a.disabled(t)||!1}),[r.createElementVNode("div",r.mergeProps({class:e.cx("content")},a.getPTOptions("content",t,o)),[n.templates.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.item),{key:1,item:t,index:o},null,8,["item","index"])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[t.to&&!a.disabled(t)?(r.openBlock(),r.createBlock(c,{key:0,to:t.to,custom:""},{default:r.withCtx((function(i){var c=i.navigate,d=i.href,u=i.isActive,p=i.isExactActive;return[r.withDirectives((r.openBlock(),r.createElementBlock("a",r.mergeProps({href:d,class:e.cx("action",{isActive:u,isExactActive:p}),target:t.target,tabindex:"-1","aria-hidden":"true",onClick:function(e){return a.onItemActionClick(e,t,c)}},a.getPTOptions("action",t,o)),[n.templates.icon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.icon),{key:1,item:t,class:r.normalizeClass(e.cx("icon"))},null,8,["item","class"])):r.withDirectives((r.openBlock(),r.createElementBlock("span",r.mergeProps({key:0,class:[e.cx("icon"),t.icon]},a.getPTOptions("icon",t,o)),null,16)),[[l]])],16,y)),[[s,{value:t.label,disabled:!n.tooltipOptions},n.tooltipOptions]])]})),_:2},1032,["to"])):r.withDirectives((r.openBlock(),r.createElementBlock("a",r.mergeProps({key:1,href:t.url,class:e.cx("action"),target:t.target,tabindex:"-1","aria-hidden":"true"},a.getPTOptions("action",t,o)),[n.templates.icon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.icon),{key:1,item:t,class:r.normalizeClass(e.cx("icon"))},null,8,["item","class"])):r.withDirectives((r.openBlock(),r.createElementBlock("span",r.mergeProps({key:0,class:[e.cx("icon"),t.icon]},a.getPTOptions("icon",t,o)),null,16)),[[l]])],16,I)),[[s,{value:t.label,disabled:!n.tooltipOptions},n.tooltipOptions]])],64))],16)],16,g)})),128))],16,x)],16)};var O={name:"Dock",extends:u,components:{DockSub:v}};O.render=function(e,t,n,o,i,a){var c=r.resolveComponent("DockSub");return r.openBlock(),r.createElementBlock("div",r.mergeProps({class:e.cx("root"),style:e.style},e.ptm("root"),{"data-pc-name":"dock"}),[r.createVNode(c,{model:e.model,templates:e.$slots,exact:e.exact,tooltipOptions:e.tooltipOptions,position:e.position,menuId:e.menuId,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,tabindex:e.tabindex,pt:e.pt},null,8,["model","templates","exact","tooltipOptions","position","menuId","aria-label","aria-labelledby","tabindex","pt"])],16)},module.exports=O;
1
+ "use strict";var e=require("primevue/basecomponent"),t=require("primevue/usestyle"),n=require("primevue/ripple"),o=require("primevue/tooltip"),i=require("primevue/utils"),r=require("vue");function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=a(e),l=a(n),s=a(o),d=t.useStyle("\n.p-dock {\n position: absolute;\n z-index: 1;\n display: flex;\n justify-content: center;\n align-items: center;\n pointer-events: none;\n}\n\n.p-dock-list-container {\n display: flex;\n pointer-events: auto;\n}\n\n.p-dock-list {\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.p-dock-item {\n transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n will-change: transform;\n}\n\n.p-dock-link {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n position: relative;\n overflow: hidden;\n cursor: default;\n}\n\n.p-dock-item-second-prev,\n.p-dock-item-second-next {\n transform: scale(1.2);\n}\n\n.p-dock-item-prev,\n.p-dock-item-next {\n transform: scale(1.4);\n}\n\n.p-dock-item-current {\n transform: scale(1.6);\n z-index: 1;\n}\n\n/* Position */\n/* top */\n.p-dock-top {\n left: 0;\n top: 0;\n width: 100%;\n}\n\n.p-dock-top .p-dock-item {\n transform-origin: center top;\n}\n\n/* bottom */\n.p-dock-bottom {\n left: 0;\n bottom: 0;\n width: 100%;\n}\n\n.p-dock-bottom .p-dock-item {\n transform-origin: center bottom;\n}\n\n/* right */\n.p-dock-right {\n right: 0;\n top: 0;\n height: 100%;\n}\n\n.p-dock-right .p-dock-item {\n transform-origin: center right;\n}\n\n.p-dock-right .p-dock-list {\n flex-direction: column;\n}\n\n/* left */\n.p-dock-left {\n left: 0;\n top: 0;\n height: 100%;\n}\n\n.p-dock-left .p-dock-item {\n transform-origin: center left;\n}\n\n.p-dock-left .p-dock-list {\n flex-direction: column;\n}\n",{name:"dock",manual:!0}),u={name:"BaseDock",extends:c.default,props:{position:{type:String,default:"bottom"},model:null,class:null,style:null,tooltipOptions:null,exact:{type:Boolean,default:!0},menuId:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},css:{classes:{root:function(e){return["p-dock p-component","p-dock-".concat(e.props.position)]},container:"p-dock-list-container",menu:"p-dock-list",menuitem:function(e){var t=e.instance,n=e.processedItem,o=e.index;return["p-dock-item",{"p-focus":t.isItemActive(e.id),"p-disabled":t.disabled(n),"p-dock-item-second-prev":t.currentIndex-2===o,"p-dock-item-prev":t.currentIndex-1===o,"p-dock-item-current":t.currentIndex===o,"p-dock-item-next":t.currentIndex+1===o,"p-dock-item-second-next":t.currentIndex+2===o}]},content:"p-menuitem-content",action:function(e){return["p-dock-link",{"router-link-active":e.isActive,"router-link-active-exact":e.props.exact&&e.isExactActive}]},icon:"p-dock-icon"},loadStyle:d.load},provide:function(){return{$parentInstance:this}}};function p(e){return k(e)||h(e)||f(e)||m()}function m(){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 f(e,t){if(e){if("string"==typeof e)return b(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)?b(e,t):void 0}}function h(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function k(e){if(Array.isArray(e))return b(e)}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var y={name:"DockSub",hostName:"Dock",extends:c.default,emits:["focus","blur"],props:{position:{type:String,default:"bottom"},model:{type:Array,default:null},templates:{type:null,default:null},exact:{type:Boolean,default:!0},tooltipOptions:null,menuId:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},data:function(){return{id:this.menuId,currentIndex:-3,focused:!1,focusedOptionIndex:-1}},watch:{menuId:function(e){this.id=e||i.UniqueComponentId()}},mounted:function(){this.id=this.id||i.UniqueComponentId()},methods:{getItemId:function(e){return"".concat(this.id,"_").concat(e)},getItemProp:function(e,t){return e&&e.item?i.ObjectUtils.getItemValue(e.item[t]):void 0},getPTOptions:function(e,t,n){return this.ptm(e,{context:{index:n,item:t,active:this.isItemActive(this.getItemId(n))}})},isSameMenuItem:function(e){return e.currentTarget&&(e.currentTarget.isSameNode(e.target)||e.currentTarget.isSameNode(e.target.closest('[data-pc-section="menuitem"]')))},isItemActive:function(e){return e===this.focusedOptionIndex},onListMouseLeave:function(){this.currentIndex=-3},onItemMouseEnter:function(e){this.currentIndex=e},onItemActionClick:function(e,t){t&&t(e)},onItemClick:function(e,t){if(this.isSameMenuItem(e)){var n=this.getItemProp(t,"command");n&&n({originalEvent:e,item:t.item})}},onListFocus:function(e){this.focused=!0,this.changeFocusedOptionIndex(0),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":"left"!==this.position&&"right"!==this.position||this.onArrowDownKey(),e.preventDefault();break;case"ArrowUp":"left"!==this.position&&"right"!==this.position||this.onArrowUpKey(),e.preventDefault();break;case"ArrowRight":"top"!==this.position&&"bottom"!==this.position||this.onArrowDownKey(),e.preventDefault();break;case"ArrowLeft":"top"!==this.position&&"bottom"!==this.position||this.onArrowUpKey(),e.preventDefault();break;case"Home":this.onHomeKey(),e.preventDefault();break;case"End":this.onEndKey(),e.preventDefault();break;case"Enter":case"Space":this.onSpaceKey(e),e.preventDefault()}},onArrowDownKey:function(){var e=this.findNextOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(e)},onArrowUpKey:function(){var e=this.findPrevOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(e)},onHomeKey:function(){this.changeFocusedOptionIndex(0)},onEndKey:function(){this.changeFocusedOptionIndex(i.DomHandler.find(this.$refs.list,'li[data-pc-section="menuitem"][data-p-disabled="false"]').length-1)},onSpaceKey:function(){var e=i.DomHandler.findSingle(this.$refs.list,'li[id="'.concat("".concat(this.focusedOptionIndex),'"]')),t=e&&i.DomHandler.findSingle(e,'[data-pc-section="action"]');t?t.click():e&&e.click()},findNextOptionIndex:function(e){var t=p(i.DomHandler.find(this.$refs.list,'li[data-pc-section="menuitem"][data-p-disabled="false"]')).findIndex((function(t){return t.id===e}));return t>-1?t+1:0},findPrevOptionIndex:function(e){var t=p(i.DomHandler.find(this.$refs.list,'li[data-pc-section="menuitem"][data-p-disabled="false"]')).findIndex((function(t){return t.id===e}));return t>-1?t-1:0},changeFocusedOptionIndex:function(e){var t=i.DomHandler.find(this.$refs.list,'li[data-pc-section="menuitem"][data-p-disabled="false"]');this.focusedOptionIndex=t[e>=t.length?t.length-1:e<0?0:e].getAttribute("id")},disabled:function(e){return"function"==typeof e.disabled?e.disabled():e.disabled}},computed:{focusedOptionId:function(){return-1!==this.focusedOptionIndex?this.focusedOptionIndex:null}},directives:{ripple:l.default,tooltip:s.default}},v=["id","aria-orientation","aria-activedescendant","tabindex","aria-label","aria-labelledby"],x=["id","aria-label","aria-disabled","onClick","onMouseenter","data-p-focused","data-p-disabled"],g=["href","target","onClick"],I=["href","target"];y.render=function(e,t,n,o,i,a){var c=r.resolveComponent("router-link"),l=r.resolveDirective("ripple"),s=r.resolveDirective("tooltip");return r.openBlock(),r.createElementBlock("div",r.mergeProps({class:e.cx("container")},e.ptm("container")),[r.createElementVNode("ul",r.mergeProps({ref:"list",id:i.id,class:e.cx("menu"),role:"menu","aria-orientation":"bottom"===n.position||"top"===n.position?"horizontal":"vertical","aria-activedescendant":i.focused?a.focusedOptionId:void 0,tabindex:n.tabindex,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,onFocus:t[0]||(t[0]=function(){return a.onListFocus&&a.onListFocus.apply(a,arguments)}),onBlur:t[1]||(t[1]=function(){return a.onListBlur&&a.onListBlur.apply(a,arguments)}),onKeydown:t[2]||(t[2]=function(){return a.onListKeyDown&&a.onListKeyDown.apply(a,arguments)}),onMouseleave:t[3]||(t[3]=function(){return a.onListMouseLeave&&a.onListMouseLeave.apply(a,arguments)})},e.ptm("menu")),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.model,(function(t,o){return r.openBlock(),r.createElementBlock("li",r.mergeProps({key:o,id:a.getItemId(o),class:e.cx("menuitem",{processedItem:t,index:o,id:a.getItemId(o)}),role:"menuitem","aria-label":t.label,"aria-disabled":a.disabled(t),onClick:function(e){return a.onItemClick(e,t)},onMouseenter:function(e){return a.onItemMouseEnter(o)}},a.getPTOptions("menuitem",t,o),{"data-p-focused":a.isItemActive(a.getItemId(o)),"data-p-disabled":a.disabled(t)||!1}),[r.createElementVNode("div",r.mergeProps({class:e.cx("content")},a.getPTOptions("content",t,o)),[n.templates.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.item),{key:1,item:t,index:o},null,8,["item","index"])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[t.to&&!a.disabled(t)?(r.openBlock(),r.createBlock(c,{key:0,to:t.to,custom:""},{default:r.withCtx((function(i){var c=i.navigate,d=i.href,u=i.isActive,p=i.isExactActive;return[r.withDirectives((r.openBlock(),r.createElementBlock("a",r.mergeProps({href:d,class:e.cx("action",{isActive:u,isExactActive:p}),target:t.target,tabindex:"-1","aria-hidden":"true",onClick:function(e){return a.onItemActionClick(e,t,c)}},a.getPTOptions("action",t,o)),[n.templates.icon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.icon),{key:1,item:t,class:r.normalizeClass(e.cx("icon"))},null,8,["item","class"])):r.withDirectives((r.openBlock(),r.createElementBlock("span",r.mergeProps({key:0,class:[e.cx("icon"),t.icon]},a.getPTOptions("icon",t,o)),null,16)),[[l]])],16,g)),[[s,{value:t.label,disabled:!n.tooltipOptions},n.tooltipOptions]])]})),_:2},1032,["to"])):r.withDirectives((r.openBlock(),r.createElementBlock("a",r.mergeProps({key:1,href:t.url,class:e.cx("action"),target:t.target,tabindex:"-1","aria-hidden":"true"},a.getPTOptions("action",t,o)),[n.templates.icon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.icon),{key:1,item:t,class:r.normalizeClass(e.cx("icon"))},null,8,["item","class"])):r.withDirectives((r.openBlock(),r.createElementBlock("span",r.mergeProps({key:0,class:[e.cx("icon"),t.icon]},a.getPTOptions("icon",t,o)),null,16)),[[l]])],16,I)),[[s,{value:t.label,disabled:!n.tooltipOptions},n.tooltipOptions]])],64))],16)],16,x)})),128))],16,v)],16)};var O={name:"Dock",extends:u,computed:{containerClass:function(){return[this.class,this.cx("root")]}},components:{DockSub:y}};O.render=function(e,t,n,o,i,a){var c=r.resolveComponent("DockSub");return r.openBlock(),r.createElementBlock("div",r.mergeProps({class:a.containerClass,style:e.style},e.ptm("root"),{"data-pc-name":"dock"}),[r.createVNode(c,{model:e.model,templates:e.$slots,exact:e.exact,tooltipOptions:e.tooltipOptions,position:e.position,menuId:e.menuId,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,tabindex:e.tabindex,pt:e.pt,unstyled:e.unstyled},null,8,["model","templates","exact","tooltipOptions","position","menuId","aria-label","aria-labelledby","tabindex","pt","unstyled"])],16)},module.exports=O;
package/dock/dock.esm.js CHANGED
@@ -9,7 +9,7 @@ var styles = "\n.p-dock {\n position: absolute;\n z-index: 1;\n display
9
9
  var classes = {
10
10
  root: function root(_ref) {
11
11
  var props = _ref.props;
12
- return ['p-dock p-component', "p-dock-".concat(props.position), props["class"]];
12
+ return ['p-dock p-component', "p-dock-".concat(props.position)];
13
13
  },
14
14
  container: 'p-dock-list-container',
15
15
  menu: 'p-dock-list',
@@ -423,6 +423,11 @@ script$1.render = render$1;
423
423
  var script = {
424
424
  name: 'Dock',
425
425
  "extends": script$2,
426
+ computed: {
427
+ containerClass: function containerClass() {
428
+ return [this["class"], this.cx('root')];
429
+ }
430
+ },
426
431
  components: {
427
432
  DockSub: script$1
428
433
  }
@@ -431,7 +436,7 @@ var script = {
431
436
  function render(_ctx, _cache, $props, $setup, $data, $options) {
432
437
  var _component_DockSub = resolveComponent("DockSub");
433
438
  return openBlock(), createElementBlock("div", mergeProps({
434
- "class": _ctx.cx('root'),
439
+ "class": $options.containerClass,
435
440
  style: _ctx.style
436
441
  }, _ctx.ptm('root'), {
437
442
  "data-pc-name": "dock"
@@ -445,8 +450,9 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
445
450
  "aria-label": _ctx.ariaLabel,
446
451
  "aria-labelledby": _ctx.ariaLabelledby,
447
452
  tabindex: _ctx.tabindex,
448
- pt: _ctx.pt
449
- }, null, 8, ["model", "templates", "exact", "tooltipOptions", "position", "menuId", "aria-label", "aria-labelledby", "tabindex", "pt"])], 16);
453
+ pt: _ctx.pt,
454
+ unstyled: _ctx.unstyled
455
+ }, null, 8, ["model", "templates", "exact", "tooltipOptions", "position", "menuId", "aria-label", "aria-labelledby", "tabindex", "pt", "unstyled"])], 16);
450
456
  }
451
457
 
452
458
  script.render = render;
@@ -1 +1 @@
1
- import t from"primevue/basecomponent";import{useStyle as e}from"primevue/usestyle";import n from"primevue/ripple";import i from"primevue/tooltip";import{UniqueComponentId as o,ObjectUtils as r,DomHandler as a}from"primevue/utils";import{resolveComponent as c,resolveDirective as s,openBlock as l,createElementBlock as d,mergeProps as u,createElementVNode as p,Fragment as m,renderList as f,createBlock as b,withCtx as h,withDirectives as x,resolveDynamicComponent as y,normalizeClass as k,createVNode as g}from"vue";var v=e("\n.p-dock {\n position: absolute;\n z-index: 1;\n display: flex;\n justify-content: center;\n align-items: center;\n pointer-events: none;\n}\n\n.p-dock-list-container {\n display: flex;\n pointer-events: auto;\n}\n\n.p-dock-list {\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.p-dock-item {\n transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n will-change: transform;\n}\n\n.p-dock-link {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n position: relative;\n overflow: hidden;\n cursor: default;\n}\n\n.p-dock-item-second-prev,\n.p-dock-item-second-next {\n transform: scale(1.2);\n}\n\n.p-dock-item-prev,\n.p-dock-item-next {\n transform: scale(1.4);\n}\n\n.p-dock-item-current {\n transform: scale(1.6);\n z-index: 1;\n}\n\n/* Position */\n/* top */\n.p-dock-top {\n left: 0;\n top: 0;\n width: 100%;\n}\n\n.p-dock-top .p-dock-item {\n transform-origin: center top;\n}\n\n/* bottom */\n.p-dock-bottom {\n left: 0;\n bottom: 0;\n width: 100%;\n}\n\n.p-dock-bottom .p-dock-item {\n transform-origin: center bottom;\n}\n\n/* right */\n.p-dock-right {\n right: 0;\n top: 0;\n height: 100%;\n}\n\n.p-dock-right .p-dock-item {\n transform-origin: center right;\n}\n\n.p-dock-right .p-dock-list {\n flex-direction: column;\n}\n\n/* left */\n.p-dock-left {\n left: 0;\n top: 0;\n height: 100%;\n}\n\n.p-dock-left .p-dock-item {\n transform-origin: center left;\n}\n\n.p-dock-left .p-dock-list {\n flex-direction: column;\n}\n",{name:"dock",manual:!0}),I={name:"BaseDock",extends:t,props:{position:{type:String,default:"bottom"},model:null,class:null,style:null,tooltipOptions:null,exact:{type:Boolean,default:!0},menuId:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},css:{classes:{root:function(t){var e=t.props;return["p-dock p-component","p-dock-".concat(e.position),e.class]},container:"p-dock-list-container",menu:"p-dock-list",menuitem:function(t){var e=t.instance,n=t.processedItem,i=t.index;return["p-dock-item",{"p-focus":e.isItemActive(t.id),"p-disabled":e.disabled(n),"p-dock-item-second-prev":e.currentIndex-2===i,"p-dock-item-prev":e.currentIndex-1===i,"p-dock-item-current":e.currentIndex===i,"p-dock-item-next":e.currentIndex+1===i,"p-dock-item-second-next":e.currentIndex+2===i}]},content:"p-menuitem-content",action:function(t){return["p-dock-link",{"router-link-active":t.isActive,"router-link-active-exact":t.props.exact&&t.isExactActive}]},icon:"p-dock-icon"},loadStyle:v.load},provide:function(){return{$parentInstance:this}}};function O(t){return D(t)||S(t)||w(t)||A()}function A(){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 w(t,e){if(t){if("string"==typeof t)return L(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(t,e):void 0}}function S(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function D(t){if(Array.isArray(t))return L(t)}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var K={name:"DockSub",hostName:"Dock",extends:t,emits:["focus","blur"],props:{position:{type:String,default:"bottom"},model:{type:Array,default:null},templates:{type:null,default:null},exact:{type:Boolean,default:!0},tooltipOptions:null,menuId:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},data:function(){return{id:this.menuId,currentIndex:-3,focused:!1,focusedOptionIndex:-1}},watch:{menuId:function(t){this.id=t||o()}},mounted:function(){this.id=this.id||o()},methods:{getItemId:function(t){return"".concat(this.id,"_").concat(t)},getItemProp:function(t,e){return t&&t.item?r.getItemValue(t.item[e]):void 0},getPTOptions:function(t,e,n){return this.ptm(t,{context:{index:n,item:e,active:this.isItemActive(this.getItemId(n))}})},isSameMenuItem:function(t){return t.currentTarget&&(t.currentTarget.isSameNode(t.target)||t.currentTarget.isSameNode(t.target.closest('[data-pc-section="menuitem"]')))},isItemActive:function(t){return t===this.focusedOptionIndex},onListMouseLeave:function(){this.currentIndex=-3},onItemMouseEnter:function(t){this.currentIndex=t},onItemActionClick:function(t,e){e&&e(t)},onItemClick:function(t,e){if(this.isSameMenuItem(t)){var n=this.getItemProp(e,"command");n&&n({originalEvent:t,item:e.item})}},onListFocus:function(t){this.focused=!0,this.changeFocusedOptionIndex(0),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":"left"!==this.position&&"right"!==this.position||this.onArrowDownKey(),t.preventDefault();break;case"ArrowUp":"left"!==this.position&&"right"!==this.position||this.onArrowUpKey(),t.preventDefault();break;case"ArrowRight":"top"!==this.position&&"bottom"!==this.position||this.onArrowDownKey(),t.preventDefault();break;case"ArrowLeft":"top"!==this.position&&"bottom"!==this.position||this.onArrowUpKey(),t.preventDefault();break;case"Home":this.onHomeKey(),t.preventDefault();break;case"End":this.onEndKey(),t.preventDefault();break;case"Enter":case"Space":this.onSpaceKey(t),t.preventDefault()}},onArrowDownKey:function(){var t=this.findNextOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(t)},onArrowUpKey:function(){var t=this.findPrevOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(t)},onHomeKey:function(){this.changeFocusedOptionIndex(0)},onEndKey:function(){this.changeFocusedOptionIndex(a.find(this.$refs.list,'li[data-pc-section="menuitem"][data-p-disabled="false"]').length-1)},onSpaceKey:function(){var t=a.findSingle(this.$refs.list,'li[id="'.concat("".concat(this.focusedOptionIndex),'"]')),e=t&&a.findSingle(t,'[data-pc-section="action"]');e?e.click():t&&t.click()},findNextOptionIndex:function(t){var e=O(a.find(this.$refs.list,'li[data-pc-section="menuitem"][data-p-disabled="false"]')).findIndex((function(e){return e.id===t}));return e>-1?e+1:0},findPrevOptionIndex:function(t){var e=O(a.find(this.$refs.list,'li[data-pc-section="menuitem"][data-p-disabled="false"]')).findIndex((function(e){return e.id===t}));return e>-1?e-1:0},changeFocusedOptionIndex:function(t){var e=a.find(this.$refs.list,'li[data-pc-section="menuitem"][data-p-disabled="false"]');this.focusedOptionIndex=e[t>=e.length?e.length-1:t<0?0:t].getAttribute("id")},disabled:function(t){return"function"==typeof t.disabled?t.disabled():t.disabled}},computed:{focusedOptionId:function(){return-1!==this.focusedOptionIndex?this.focusedOptionIndex:null}},directives:{ripple:n,tooltip:i}},P=["id","aria-orientation","aria-activedescendant","tabindex","aria-label","aria-labelledby"],E=["id","aria-label","aria-disabled","onClick","onMouseenter","data-p-focused","data-p-disabled"],M=["href","target","onClick"],T=["href","target"];K.render=function(t,e,n,i,o,r){var a=c("router-link"),g=s("ripple"),v=s("tooltip");return l(),d("div",u({class:t.cx("container")},t.ptm("container")),[p("ul",u({ref:"list",id:o.id,class:t.cx("menu"),role:"menu","aria-orientation":"bottom"===n.position||"top"===n.position?"horizontal":"vertical","aria-activedescendant":o.focused?r.focusedOptionId:void 0,tabindex:n.tabindex,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabelledby,onFocus:e[0]||(e[0]=function(){return r.onListFocus&&r.onListFocus.apply(r,arguments)}),onBlur:e[1]||(e[1]=function(){return r.onListBlur&&r.onListBlur.apply(r,arguments)}),onKeydown:e[2]||(e[2]=function(){return r.onListKeyDown&&r.onListKeyDown.apply(r,arguments)}),onMouseleave:e[3]||(e[3]=function(){return r.onListMouseLeave&&r.onListMouseLeave.apply(r,arguments)})},t.ptm("menu")),[(l(!0),d(m,null,f(n.model,(function(e,i){return l(),d("li",u({key:i,id:r.getItemId(i),class:t.cx("menuitem",{processedItem:e,index:i,id:r.getItemId(i)}),role:"menuitem","aria-label":e.label,"aria-disabled":r.disabled(e),onClick:function(t){return r.onItemClick(t,e)},onMouseenter:function(t){return r.onItemMouseEnter(i)}},r.getPTOptions("menuitem",e,i),{"data-p-focused":r.isItemActive(r.getItemId(i)),"data-p-disabled":r.disabled(e)||!1}),[p("div",u({class:t.cx("content")},r.getPTOptions("content",e,i)),[n.templates.item?(l(),b(y(n.templates.item),{key:1,item:e,index:i},null,8,["item","index"])):(l(),d(m,{key:0},[e.to&&!r.disabled(e)?(l(),b(a,{key:0,to:e.to,custom:""},{default:h((function(o){var a=o.navigate,c=o.href,s=o.isActive,p=o.isExactActive;return[x((l(),d("a",u({href:c,class:t.cx("action",{isActive:s,isExactActive:p}),target:e.target,tabindex:"-1","aria-hidden":"true",onClick:function(t){return r.onItemActionClick(t,e,a)}},r.getPTOptions("action",e,i)),[n.templates.icon?(l(),b(y(n.templates.icon),{key:1,item:e,class:k(t.cx("icon"))},null,8,["item","class"])):x((l(),d("span",u({key:0,class:[t.cx("icon"),e.icon]},r.getPTOptions("icon",e,i)),null,16)),[[g]])],16,M)),[[v,{value:e.label,disabled:!n.tooltipOptions},n.tooltipOptions]])]})),_:2},1032,["to"])):x((l(),d("a",u({key:1,href:e.url,class:t.cx("action"),target:e.target,tabindex:"-1","aria-hidden":"true"},r.getPTOptions("action",e,i)),[n.templates.icon?(l(),b(y(n.templates.icon),{key:1,item:e,class:k(t.cx("icon"))},null,8,["item","class"])):x((l(),d("span",u({key:0,class:[t.cx("icon"),e.icon]},r.getPTOptions("icon",e,i)),null,16)),[[g]])],16,T)),[[v,{value:e.label,disabled:!n.tooltipOptions},n.tooltipOptions]])],64))],16)],16,E)})),128))],16,P)],16)};var F={name:"Dock",extends:I,components:{DockSub:K}};F.render=function(t,e,n,i,o,r){var a=c("DockSub");return l(),d("div",u({class:t.cx("root"),style:t.style},t.ptm("root"),{"data-pc-name":"dock"}),[g(a,{model:t.model,templates:t.$slots,exact:t.exact,tooltipOptions:t.tooltipOptions,position:t.position,menuId:t.menuId,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabelledby,tabindex:t.tabindex,pt:t.pt},null,8,["model","templates","exact","tooltipOptions","position","menuId","aria-label","aria-labelledby","tabindex","pt"])],16)};export{F as default};
1
+ import t from"primevue/basecomponent";import{useStyle as e}from"primevue/usestyle";import n from"primevue/ripple";import i from"primevue/tooltip";import{UniqueComponentId as o,ObjectUtils as r,DomHandler as a}from"primevue/utils";import{resolveComponent as s,resolveDirective as c,openBlock as l,createElementBlock as d,mergeProps as u,createElementVNode as p,Fragment as m,renderList as f,createBlock as h,withCtx as b,withDirectives as x,resolveDynamicComponent as y,normalizeClass as k,createVNode as g}from"vue";var v=e("\n.p-dock {\n position: absolute;\n z-index: 1;\n display: flex;\n justify-content: center;\n align-items: center;\n pointer-events: none;\n}\n\n.p-dock-list-container {\n display: flex;\n pointer-events: auto;\n}\n\n.p-dock-list {\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.p-dock-item {\n transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n will-change: transform;\n}\n\n.p-dock-link {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n position: relative;\n overflow: hidden;\n cursor: default;\n}\n\n.p-dock-item-second-prev,\n.p-dock-item-second-next {\n transform: scale(1.2);\n}\n\n.p-dock-item-prev,\n.p-dock-item-next {\n transform: scale(1.4);\n}\n\n.p-dock-item-current {\n transform: scale(1.6);\n z-index: 1;\n}\n\n/* Position */\n/* top */\n.p-dock-top {\n left: 0;\n top: 0;\n width: 100%;\n}\n\n.p-dock-top .p-dock-item {\n transform-origin: center top;\n}\n\n/* bottom */\n.p-dock-bottom {\n left: 0;\n bottom: 0;\n width: 100%;\n}\n\n.p-dock-bottom .p-dock-item {\n transform-origin: center bottom;\n}\n\n/* right */\n.p-dock-right {\n right: 0;\n top: 0;\n height: 100%;\n}\n\n.p-dock-right .p-dock-item {\n transform-origin: center right;\n}\n\n.p-dock-right .p-dock-list {\n flex-direction: column;\n}\n\n/* left */\n.p-dock-left {\n left: 0;\n top: 0;\n height: 100%;\n}\n\n.p-dock-left .p-dock-item {\n transform-origin: center left;\n}\n\n.p-dock-left .p-dock-list {\n flex-direction: column;\n}\n",{name:"dock",manual:!0}),I={name:"BaseDock",extends:t,props:{position:{type:String,default:"bottom"},model:null,class:null,style:null,tooltipOptions:null,exact:{type:Boolean,default:!0},menuId:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},css:{classes:{root:function(t){return["p-dock p-component","p-dock-".concat(t.props.position)]},container:"p-dock-list-container",menu:"p-dock-list",menuitem:function(t){var e=t.instance,n=t.processedItem,i=t.index;return["p-dock-item",{"p-focus":e.isItemActive(t.id),"p-disabled":e.disabled(n),"p-dock-item-second-prev":e.currentIndex-2===i,"p-dock-item-prev":e.currentIndex-1===i,"p-dock-item-current":e.currentIndex===i,"p-dock-item-next":e.currentIndex+1===i,"p-dock-item-second-next":e.currentIndex+2===i}]},content:"p-menuitem-content",action:function(t){return["p-dock-link",{"router-link-active":t.isActive,"router-link-active-exact":t.props.exact&&t.isExactActive}]},icon:"p-dock-icon"},loadStyle:v.load},provide:function(){return{$parentInstance:this}}};function O(t){return D(t)||S(t)||w(t)||A()}function A(){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 w(t,e){if(t){if("string"==typeof t)return L(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?L(t,e):void 0}}function S(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}function D(t){if(Array.isArray(t))return L(t)}function L(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}var K={name:"DockSub",hostName:"Dock",extends:t,emits:["focus","blur"],props:{position:{type:String,default:"bottom"},model:{type:Array,default:null},templates:{type:null,default:null},exact:{type:Boolean,default:!0},tooltipOptions:null,menuId:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},data:function(){return{id:this.menuId,currentIndex:-3,focused:!1,focusedOptionIndex:-1}},watch:{menuId:function(t){this.id=t||o()}},mounted:function(){this.id=this.id||o()},methods:{getItemId:function(t){return"".concat(this.id,"_").concat(t)},getItemProp:function(t,e){return t&&t.item?r.getItemValue(t.item[e]):void 0},getPTOptions:function(t,e,n){return this.ptm(t,{context:{index:n,item:e,active:this.isItemActive(this.getItemId(n))}})},isSameMenuItem:function(t){return t.currentTarget&&(t.currentTarget.isSameNode(t.target)||t.currentTarget.isSameNode(t.target.closest('[data-pc-section="menuitem"]')))},isItemActive:function(t){return t===this.focusedOptionIndex},onListMouseLeave:function(){this.currentIndex=-3},onItemMouseEnter:function(t){this.currentIndex=t},onItemActionClick:function(t,e){e&&e(t)},onItemClick:function(t,e){if(this.isSameMenuItem(t)){var n=this.getItemProp(e,"command");n&&n({originalEvent:t,item:e.item})}},onListFocus:function(t){this.focused=!0,this.changeFocusedOptionIndex(0),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":"left"!==this.position&&"right"!==this.position||this.onArrowDownKey(),t.preventDefault();break;case"ArrowUp":"left"!==this.position&&"right"!==this.position||this.onArrowUpKey(),t.preventDefault();break;case"ArrowRight":"top"!==this.position&&"bottom"!==this.position||this.onArrowDownKey(),t.preventDefault();break;case"ArrowLeft":"top"!==this.position&&"bottom"!==this.position||this.onArrowUpKey(),t.preventDefault();break;case"Home":this.onHomeKey(),t.preventDefault();break;case"End":this.onEndKey(),t.preventDefault();break;case"Enter":case"Space":this.onSpaceKey(t),t.preventDefault()}},onArrowDownKey:function(){var t=this.findNextOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(t)},onArrowUpKey:function(){var t=this.findPrevOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(t)},onHomeKey:function(){this.changeFocusedOptionIndex(0)},onEndKey:function(){this.changeFocusedOptionIndex(a.find(this.$refs.list,'li[data-pc-section="menuitem"][data-p-disabled="false"]').length-1)},onSpaceKey:function(){var t=a.findSingle(this.$refs.list,'li[id="'.concat("".concat(this.focusedOptionIndex),'"]')),e=t&&a.findSingle(t,'[data-pc-section="action"]');e?e.click():t&&t.click()},findNextOptionIndex:function(t){var e=O(a.find(this.$refs.list,'li[data-pc-section="menuitem"][data-p-disabled="false"]')).findIndex((function(e){return e.id===t}));return e>-1?e+1:0},findPrevOptionIndex:function(t){var e=O(a.find(this.$refs.list,'li[data-pc-section="menuitem"][data-p-disabled="false"]')).findIndex((function(e){return e.id===t}));return e>-1?e-1:0},changeFocusedOptionIndex:function(t){var e=a.find(this.$refs.list,'li[data-pc-section="menuitem"][data-p-disabled="false"]');this.focusedOptionIndex=e[t>=e.length?e.length-1:t<0?0:t].getAttribute("id")},disabled:function(t){return"function"==typeof t.disabled?t.disabled():t.disabled}},computed:{focusedOptionId:function(){return-1!==this.focusedOptionIndex?this.focusedOptionIndex:null}},directives:{ripple:n,tooltip:i}},P=["id","aria-orientation","aria-activedescendant","tabindex","aria-label","aria-labelledby"],C=["id","aria-label","aria-disabled","onClick","onMouseenter","data-p-focused","data-p-disabled"],E=["href","target","onClick"],M=["href","target"];K.render=function(t,e,n,i,o,r){var a=s("router-link"),g=c("ripple"),v=c("tooltip");return l(),d("div",u({class:t.cx("container")},t.ptm("container")),[p("ul",u({ref:"list",id:o.id,class:t.cx("menu"),role:"menu","aria-orientation":"bottom"===n.position||"top"===n.position?"horizontal":"vertical","aria-activedescendant":o.focused?r.focusedOptionId:void 0,tabindex:n.tabindex,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabelledby,onFocus:e[0]||(e[0]=function(){return r.onListFocus&&r.onListFocus.apply(r,arguments)}),onBlur:e[1]||(e[1]=function(){return r.onListBlur&&r.onListBlur.apply(r,arguments)}),onKeydown:e[2]||(e[2]=function(){return r.onListKeyDown&&r.onListKeyDown.apply(r,arguments)}),onMouseleave:e[3]||(e[3]=function(){return r.onListMouseLeave&&r.onListMouseLeave.apply(r,arguments)})},t.ptm("menu")),[(l(!0),d(m,null,f(n.model,(function(e,i){return l(),d("li",u({key:i,id:r.getItemId(i),class:t.cx("menuitem",{processedItem:e,index:i,id:r.getItemId(i)}),role:"menuitem","aria-label":e.label,"aria-disabled":r.disabled(e),onClick:function(t){return r.onItemClick(t,e)},onMouseenter:function(t){return r.onItemMouseEnter(i)}},r.getPTOptions("menuitem",e,i),{"data-p-focused":r.isItemActive(r.getItemId(i)),"data-p-disabled":r.disabled(e)||!1}),[p("div",u({class:t.cx("content")},r.getPTOptions("content",e,i)),[n.templates.item?(l(),h(y(n.templates.item),{key:1,item:e,index:i},null,8,["item","index"])):(l(),d(m,{key:0},[e.to&&!r.disabled(e)?(l(),h(a,{key:0,to:e.to,custom:""},{default:b((function(o){var a=o.navigate,s=o.href,c=o.isActive,p=o.isExactActive;return[x((l(),d("a",u({href:s,class:t.cx("action",{isActive:c,isExactActive:p}),target:e.target,tabindex:"-1","aria-hidden":"true",onClick:function(t){return r.onItemActionClick(t,e,a)}},r.getPTOptions("action",e,i)),[n.templates.icon?(l(),h(y(n.templates.icon),{key:1,item:e,class:k(t.cx("icon"))},null,8,["item","class"])):x((l(),d("span",u({key:0,class:[t.cx("icon"),e.icon]},r.getPTOptions("icon",e,i)),null,16)),[[g]])],16,E)),[[v,{value:e.label,disabled:!n.tooltipOptions},n.tooltipOptions]])]})),_:2},1032,["to"])):x((l(),d("a",u({key:1,href:e.url,class:t.cx("action"),target:e.target,tabindex:"-1","aria-hidden":"true"},r.getPTOptions("action",e,i)),[n.templates.icon?(l(),h(y(n.templates.icon),{key:1,item:e,class:k(t.cx("icon"))},null,8,["item","class"])):x((l(),d("span",u({key:0,class:[t.cx("icon"),e.icon]},r.getPTOptions("icon",e,i)),null,16)),[[g]])],16,M)),[[v,{value:e.label,disabled:!n.tooltipOptions},n.tooltipOptions]])],64))],16)],16,C)})),128))],16,P)],16)};var T={name:"Dock",extends:I,computed:{containerClass:function(){return[this.class,this.cx("root")]}},components:{DockSub:K}};T.render=function(t,e,n,i,o,r){var a=s("DockSub");return l(),d("div",u({class:r.containerClass,style:t.style},t.ptm("root"),{"data-pc-name":"dock"}),[g(a,{model:t.model,templates:t.$slots,exact:t.exact,tooltipOptions:t.tooltipOptions,position:t.position,menuId:t.menuId,"aria-label":t.ariaLabel,"aria-labelledby":t.ariaLabelledby,tabindex:t.tabindex,pt:t.pt,unstyled:t.unstyled},null,8,["model","templates","exact","tooltipOptions","position","menuId","aria-label","aria-labelledby","tabindex","pt","unstyled"])],16)};export{T as default};
package/dock/dock.js CHANGED
@@ -12,7 +12,7 @@ this.primevue.dock = (function (BaseComponent, usestyle, Ripple, Tooltip, utils,
12
12
  var classes = {
13
13
  root: function root(_ref) {
14
14
  var props = _ref.props;
15
- return ['p-dock p-component', "p-dock-".concat(props.position), props["class"]];
15
+ return ['p-dock p-component', "p-dock-".concat(props.position)];
16
16
  },
17
17
  container: 'p-dock-list-container',
18
18
  menu: 'p-dock-list',
@@ -426,6 +426,11 @@ this.primevue.dock = (function (BaseComponent, usestyle, Ripple, Tooltip, utils,
426
426
  var script = {
427
427
  name: 'Dock',
428
428
  "extends": script$2,
429
+ computed: {
430
+ containerClass: function containerClass() {
431
+ return [this["class"], this.cx('root')];
432
+ }
433
+ },
429
434
  components: {
430
435
  DockSub: script$1
431
436
  }
@@ -434,7 +439,7 @@ this.primevue.dock = (function (BaseComponent, usestyle, Ripple, Tooltip, utils,
434
439
  function render(_ctx, _cache, $props, $setup, $data, $options) {
435
440
  var _component_DockSub = vue.resolveComponent("DockSub");
436
441
  return vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
437
- "class": _ctx.cx('root'),
442
+ "class": $options.containerClass,
438
443
  style: _ctx.style
439
444
  }, _ctx.ptm('root'), {
440
445
  "data-pc-name": "dock"
@@ -448,8 +453,9 @@ this.primevue.dock = (function (BaseComponent, usestyle, Ripple, Tooltip, utils,
448
453
  "aria-label": _ctx.ariaLabel,
449
454
  "aria-labelledby": _ctx.ariaLabelledby,
450
455
  tabindex: _ctx.tabindex,
451
- pt: _ctx.pt
452
- }, null, 8, ["model", "templates", "exact", "tooltipOptions", "position", "menuId", "aria-label", "aria-labelledby", "tabindex", "pt"])], 16);
456
+ pt: _ctx.pt,
457
+ unstyled: _ctx.unstyled
458
+ }, null, 8, ["model", "templates", "exact", "tooltipOptions", "position", "menuId", "aria-label", "aria-labelledby", "tabindex", "pt", "unstyled"])], 16);
453
459
  }
454
460
 
455
461
  script.render = render;
package/dock/dock.min.js CHANGED
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.dock=function(e,t,n,o,i,r){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=a(e),l=a(n),s=a(o),d=t.useStyle("\n.p-dock {\n position: absolute;\n z-index: 1;\n display: flex;\n justify-content: center;\n align-items: center;\n pointer-events: none;\n}\n\n.p-dock-list-container {\n display: flex;\n pointer-events: auto;\n}\n\n.p-dock-list {\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.p-dock-item {\n transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n will-change: transform;\n}\n\n.p-dock-link {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n position: relative;\n overflow: hidden;\n cursor: default;\n}\n\n.p-dock-item-second-prev,\n.p-dock-item-second-next {\n transform: scale(1.2);\n}\n\n.p-dock-item-prev,\n.p-dock-item-next {\n transform: scale(1.4);\n}\n\n.p-dock-item-current {\n transform: scale(1.6);\n z-index: 1;\n}\n\n/* Position */\n/* top */\n.p-dock-top {\n left: 0;\n top: 0;\n width: 100%;\n}\n\n.p-dock-top .p-dock-item {\n transform-origin: center top;\n}\n\n/* bottom */\n.p-dock-bottom {\n left: 0;\n bottom: 0;\n width: 100%;\n}\n\n.p-dock-bottom .p-dock-item {\n transform-origin: center bottom;\n}\n\n/* right */\n.p-dock-right {\n right: 0;\n top: 0;\n height: 100%;\n}\n\n.p-dock-right .p-dock-item {\n transform-origin: center right;\n}\n\n.p-dock-right .p-dock-list {\n flex-direction: column;\n}\n\n/* left */\n.p-dock-left {\n left: 0;\n top: 0;\n height: 100%;\n}\n\n.p-dock-left .p-dock-item {\n transform-origin: center left;\n}\n\n.p-dock-left .p-dock-list {\n flex-direction: column;\n}\n",{name:"dock",manual:!0}),p={name:"BaseDock",extends:c.default,props:{position:{type:String,default:"bottom"},model:null,class:null,style:null,tooltipOptions:null,exact:{type:Boolean,default:!0},menuId:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},css:{classes:{root:function(e){var t=e.props;return["p-dock p-component","p-dock-".concat(t.position),t.class]},container:"p-dock-list-container",menu:"p-dock-list",menuitem:function(e){var t=e.instance,n=e.processedItem,o=e.index;return["p-dock-item",{"p-focus":t.isItemActive(e.id),"p-disabled":t.disabled(n),"p-dock-item-second-prev":t.currentIndex-2===o,"p-dock-item-prev":t.currentIndex-1===o,"p-dock-item-current":t.currentIndex===o,"p-dock-item-next":t.currentIndex+1===o,"p-dock-item-second-next":t.currentIndex+2===o}]},content:"p-menuitem-content",action:function(e){return["p-dock-link",{"router-link-active":e.isActive,"router-link-active-exact":e.props.exact&&e.isExactActive}]},icon:"p-dock-icon"},loadStyle:d.load},provide:function(){return{$parentInstance:this}}};function u(e){return k(e)||h(e)||f(e)||m()}function m(){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 f(e,t){if(e){if("string"==typeof e)return b(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)?b(e,t):void 0}}function h(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function k(e){if(Array.isArray(e))return b(e)}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var v={name:"DockSub",hostName:"Dock",extends:c.default,emits:["focus","blur"],props:{position:{type:String,default:"bottom"},model:{type:Array,default:null},templates:{type:null,default:null},exact:{type:Boolean,default:!0},tooltipOptions:null,menuId:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},data:function(){return{id:this.menuId,currentIndex:-3,focused:!1,focusedOptionIndex:-1}},watch:{menuId:function(e){this.id=e||i.UniqueComponentId()}},mounted:function(){this.id=this.id||i.UniqueComponentId()},methods:{getItemId:function(e){return"".concat(this.id,"_").concat(e)},getItemProp:function(e,t){return e&&e.item?i.ObjectUtils.getItemValue(e.item[t]):void 0},getPTOptions:function(e,t,n){return this.ptm(e,{context:{index:n,item:t,active:this.isItemActive(this.getItemId(n))}})},isSameMenuItem:function(e){return e.currentTarget&&(e.currentTarget.isSameNode(e.target)||e.currentTarget.isSameNode(e.target.closest('[data-pc-section="menuitem"]')))},isItemActive:function(e){return e===this.focusedOptionIndex},onListMouseLeave:function(){this.currentIndex=-3},onItemMouseEnter:function(e){this.currentIndex=e},onItemActionClick:function(e,t){t&&t(e)},onItemClick:function(e,t){if(this.isSameMenuItem(e)){var n=this.getItemProp(t,"command");n&&n({originalEvent:e,item:t.item})}},onListFocus:function(e){this.focused=!0,this.changeFocusedOptionIndex(0),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":"left"!==this.position&&"right"!==this.position||this.onArrowDownKey(),e.preventDefault();break;case"ArrowUp":"left"!==this.position&&"right"!==this.position||this.onArrowUpKey(),e.preventDefault();break;case"ArrowRight":"top"!==this.position&&"bottom"!==this.position||this.onArrowDownKey(),e.preventDefault();break;case"ArrowLeft":"top"!==this.position&&"bottom"!==this.position||this.onArrowUpKey(),e.preventDefault();break;case"Home":this.onHomeKey(),e.preventDefault();break;case"End":this.onEndKey(),e.preventDefault();break;case"Enter":case"Space":this.onSpaceKey(e),e.preventDefault()}},onArrowDownKey:function(){var e=this.findNextOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(e)},onArrowUpKey:function(){var e=this.findPrevOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(e)},onHomeKey:function(){this.changeFocusedOptionIndex(0)},onEndKey:function(){this.changeFocusedOptionIndex(i.DomHandler.find(this.$refs.list,'li[data-pc-section="menuitem"][data-p-disabled="false"]').length-1)},onSpaceKey:function(){var e=i.DomHandler.findSingle(this.$refs.list,'li[id="'.concat("".concat(this.focusedOptionIndex),'"]')),t=e&&i.DomHandler.findSingle(e,'[data-pc-section="action"]');t?t.click():e&&e.click()},findNextOptionIndex:function(e){var t=u(i.DomHandler.find(this.$refs.list,'li[data-pc-section="menuitem"][data-p-disabled="false"]')).findIndex((function(t){return t.id===e}));return t>-1?t+1:0},findPrevOptionIndex:function(e){var t=u(i.DomHandler.find(this.$refs.list,'li[data-pc-section="menuitem"][data-p-disabled="false"]')).findIndex((function(t){return t.id===e}));return t>-1?t-1:0},changeFocusedOptionIndex:function(e){var t=i.DomHandler.find(this.$refs.list,'li[data-pc-section="menuitem"][data-p-disabled="false"]');this.focusedOptionIndex=t[e>=t.length?t.length-1:e<0?0:e].getAttribute("id")},disabled:function(e){return"function"==typeof e.disabled?e.disabled():e.disabled}},computed:{focusedOptionId:function(){return-1!==this.focusedOptionIndex?this.focusedOptionIndex:null}},directives:{ripple:l.default,tooltip:s.default}},g=["id","aria-orientation","aria-activedescendant","tabindex","aria-label","aria-labelledby"],x=["id","aria-label","aria-disabled","onClick","onMouseenter","data-p-focused","data-p-disabled"],y=["href","target","onClick"],I=["href","target"];v.render=function(e,t,n,o,i,a){var c=r.resolveComponent("router-link"),l=r.resolveDirective("ripple"),s=r.resolveDirective("tooltip");return r.openBlock(),r.createElementBlock("div",r.mergeProps({class:e.cx("container")},e.ptm("container")),[r.createElementVNode("ul",r.mergeProps({ref:"list",id:i.id,class:e.cx("menu"),role:"menu","aria-orientation":"bottom"===n.position||"top"===n.position?"horizontal":"vertical","aria-activedescendant":i.focused?a.focusedOptionId:void 0,tabindex:n.tabindex,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,onFocus:t[0]||(t[0]=function(){return a.onListFocus&&a.onListFocus.apply(a,arguments)}),onBlur:t[1]||(t[1]=function(){return a.onListBlur&&a.onListBlur.apply(a,arguments)}),onKeydown:t[2]||(t[2]=function(){return a.onListKeyDown&&a.onListKeyDown.apply(a,arguments)}),onMouseleave:t[3]||(t[3]=function(){return a.onListMouseLeave&&a.onListMouseLeave.apply(a,arguments)})},e.ptm("menu")),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.model,(function(t,o){return r.openBlock(),r.createElementBlock("li",r.mergeProps({key:o,id:a.getItemId(o),class:e.cx("menuitem",{processedItem:t,index:o,id:a.getItemId(o)}),role:"menuitem","aria-label":t.label,"aria-disabled":a.disabled(t),onClick:function(e){return a.onItemClick(e,t)},onMouseenter:function(e){return a.onItemMouseEnter(o)}},a.getPTOptions("menuitem",t,o),{"data-p-focused":a.isItemActive(a.getItemId(o)),"data-p-disabled":a.disabled(t)||!1}),[r.createElementVNode("div",r.mergeProps({class:e.cx("content")},a.getPTOptions("content",t,o)),[n.templates.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.item),{key:1,item:t,index:o},null,8,["item","index"])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[t.to&&!a.disabled(t)?(r.openBlock(),r.createBlock(c,{key:0,to:t.to,custom:""},{default:r.withCtx((function(i){var c=i.navigate,d=i.href,p=i.isActive,u=i.isExactActive;return[r.withDirectives((r.openBlock(),r.createElementBlock("a",r.mergeProps({href:d,class:e.cx("action",{isActive:p,isExactActive:u}),target:t.target,tabindex:"-1","aria-hidden":"true",onClick:function(e){return a.onItemActionClick(e,t,c)}},a.getPTOptions("action",t,o)),[n.templates.icon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.icon),{key:1,item:t,class:r.normalizeClass(e.cx("icon"))},null,8,["item","class"])):r.withDirectives((r.openBlock(),r.createElementBlock("span",r.mergeProps({key:0,class:[e.cx("icon"),t.icon]},a.getPTOptions("icon",t,o)),null,16)),[[l]])],16,y)),[[s,{value:t.label,disabled:!n.tooltipOptions},n.tooltipOptions]])]})),_:2},1032,["to"])):r.withDirectives((r.openBlock(),r.createElementBlock("a",r.mergeProps({key:1,href:t.url,class:e.cx("action"),target:t.target,tabindex:"-1","aria-hidden":"true"},a.getPTOptions("action",t,o)),[n.templates.icon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.icon),{key:1,item:t,class:r.normalizeClass(e.cx("icon"))},null,8,["item","class"])):r.withDirectives((r.openBlock(),r.createElementBlock("span",r.mergeProps({key:0,class:[e.cx("icon"),t.icon]},a.getPTOptions("icon",t,o)),null,16)),[[l]])],16,I)),[[s,{value:t.label,disabled:!n.tooltipOptions},n.tooltipOptions]])],64))],16)],16,x)})),128))],16,g)],16)};var O={name:"Dock",extends:p,components:{DockSub:v}};return O.render=function(e,t,n,o,i,a){var c=r.resolveComponent("DockSub");return r.openBlock(),r.createElementBlock("div",r.mergeProps({class:e.cx("root"),style:e.style},e.ptm("root"),{"data-pc-name":"dock"}),[r.createVNode(c,{model:e.model,templates:e.$slots,exact:e.exact,tooltipOptions:e.tooltipOptions,position:e.position,menuId:e.menuId,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,tabindex:e.tabindex,pt:e.pt},null,8,["model","templates","exact","tooltipOptions","position","menuId","aria-label","aria-labelledby","tabindex","pt"])],16)},O}(primevue.basecomponent,primevue.usestyle,primevue.ripple,primevue.tooltip,primevue.utils,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.dock=function(e,t,n,o,i,r){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=a(e),l=a(n),s=a(o),d=t.useStyle("\n.p-dock {\n position: absolute;\n z-index: 1;\n display: flex;\n justify-content: center;\n align-items: center;\n pointer-events: none;\n}\n\n.p-dock-list-container {\n display: flex;\n pointer-events: auto;\n}\n\n.p-dock-list {\n margin: 0;\n padding: 0;\n list-style: none;\n display: flex;\n align-items: center;\n justify-content: center;\n}\n\n.p-dock-item {\n transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);\n will-change: transform;\n}\n\n.p-dock-link {\n display: flex;\n flex-direction: column;\n align-items: center;\n justify-content: center;\n position: relative;\n overflow: hidden;\n cursor: default;\n}\n\n.p-dock-item-second-prev,\n.p-dock-item-second-next {\n transform: scale(1.2);\n}\n\n.p-dock-item-prev,\n.p-dock-item-next {\n transform: scale(1.4);\n}\n\n.p-dock-item-current {\n transform: scale(1.6);\n z-index: 1;\n}\n\n/* Position */\n/* top */\n.p-dock-top {\n left: 0;\n top: 0;\n width: 100%;\n}\n\n.p-dock-top .p-dock-item {\n transform-origin: center top;\n}\n\n/* bottom */\n.p-dock-bottom {\n left: 0;\n bottom: 0;\n width: 100%;\n}\n\n.p-dock-bottom .p-dock-item {\n transform-origin: center bottom;\n}\n\n/* right */\n.p-dock-right {\n right: 0;\n top: 0;\n height: 100%;\n}\n\n.p-dock-right .p-dock-item {\n transform-origin: center right;\n}\n\n.p-dock-right .p-dock-list {\n flex-direction: column;\n}\n\n/* left */\n.p-dock-left {\n left: 0;\n top: 0;\n height: 100%;\n}\n\n.p-dock-left .p-dock-item {\n transform-origin: center left;\n}\n\n.p-dock-left .p-dock-list {\n flex-direction: column;\n}\n",{name:"dock",manual:!0}),u={name:"BaseDock",extends:c.default,props:{position:{type:String,default:"bottom"},model:null,class:null,style:null,tooltipOptions:null,exact:{type:Boolean,default:!0},menuId:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},css:{classes:{root:function(e){return["p-dock p-component","p-dock-".concat(e.props.position)]},container:"p-dock-list-container",menu:"p-dock-list",menuitem:function(e){var t=e.instance,n=e.processedItem,o=e.index;return["p-dock-item",{"p-focus":t.isItemActive(e.id),"p-disabled":t.disabled(n),"p-dock-item-second-prev":t.currentIndex-2===o,"p-dock-item-prev":t.currentIndex-1===o,"p-dock-item-current":t.currentIndex===o,"p-dock-item-next":t.currentIndex+1===o,"p-dock-item-second-next":t.currentIndex+2===o}]},content:"p-menuitem-content",action:function(e){return["p-dock-link",{"router-link-active":e.isActive,"router-link-active-exact":e.props.exact&&e.isExactActive}]},icon:"p-dock-icon"},loadStyle:d.load},provide:function(){return{$parentInstance:this}}};function p(e){return k(e)||h(e)||f(e)||m()}function m(){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 f(e,t){if(e){if("string"==typeof e)return b(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)?b(e,t):void 0}}function h(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}function k(e){if(Array.isArray(e))return b(e)}function b(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var v={name:"DockSub",hostName:"Dock",extends:c.default,emits:["focus","blur"],props:{position:{type:String,default:"bottom"},model:{type:Array,default:null},templates:{type:null,default:null},exact:{type:Boolean,default:!0},tooltipOptions:null,menuId:{type:String,default:null},tabindex:{type:Number,default:0},"aria-label":{type:String,default:null},"aria-labelledby":{type:String,default:null}},data:function(){return{id:this.menuId,currentIndex:-3,focused:!1,focusedOptionIndex:-1}},watch:{menuId:function(e){this.id=e||i.UniqueComponentId()}},mounted:function(){this.id=this.id||i.UniqueComponentId()},methods:{getItemId:function(e){return"".concat(this.id,"_").concat(e)},getItemProp:function(e,t){return e&&e.item?i.ObjectUtils.getItemValue(e.item[t]):void 0},getPTOptions:function(e,t,n){return this.ptm(e,{context:{index:n,item:t,active:this.isItemActive(this.getItemId(n))}})},isSameMenuItem:function(e){return e.currentTarget&&(e.currentTarget.isSameNode(e.target)||e.currentTarget.isSameNode(e.target.closest('[data-pc-section="menuitem"]')))},isItemActive:function(e){return e===this.focusedOptionIndex},onListMouseLeave:function(){this.currentIndex=-3},onItemMouseEnter:function(e){this.currentIndex=e},onItemActionClick:function(e,t){t&&t(e)},onItemClick:function(e,t){if(this.isSameMenuItem(e)){var n=this.getItemProp(t,"command");n&&n({originalEvent:e,item:t.item})}},onListFocus:function(e){this.focused=!0,this.changeFocusedOptionIndex(0),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":"left"!==this.position&&"right"!==this.position||this.onArrowDownKey(),e.preventDefault();break;case"ArrowUp":"left"!==this.position&&"right"!==this.position||this.onArrowUpKey(),e.preventDefault();break;case"ArrowRight":"top"!==this.position&&"bottom"!==this.position||this.onArrowDownKey(),e.preventDefault();break;case"ArrowLeft":"top"!==this.position&&"bottom"!==this.position||this.onArrowUpKey(),e.preventDefault();break;case"Home":this.onHomeKey(),e.preventDefault();break;case"End":this.onEndKey(),e.preventDefault();break;case"Enter":case"Space":this.onSpaceKey(e),e.preventDefault()}},onArrowDownKey:function(){var e=this.findNextOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(e)},onArrowUpKey:function(){var e=this.findPrevOptionIndex(this.focusedOptionIndex);this.changeFocusedOptionIndex(e)},onHomeKey:function(){this.changeFocusedOptionIndex(0)},onEndKey:function(){this.changeFocusedOptionIndex(i.DomHandler.find(this.$refs.list,'li[data-pc-section="menuitem"][data-p-disabled="false"]').length-1)},onSpaceKey:function(){var e=i.DomHandler.findSingle(this.$refs.list,'li[id="'.concat("".concat(this.focusedOptionIndex),'"]')),t=e&&i.DomHandler.findSingle(e,'[data-pc-section="action"]');t?t.click():e&&e.click()},findNextOptionIndex:function(e){var t=p(i.DomHandler.find(this.$refs.list,'li[data-pc-section="menuitem"][data-p-disabled="false"]')).findIndex((function(t){return t.id===e}));return t>-1?t+1:0},findPrevOptionIndex:function(e){var t=p(i.DomHandler.find(this.$refs.list,'li[data-pc-section="menuitem"][data-p-disabled="false"]')).findIndex((function(t){return t.id===e}));return t>-1?t-1:0},changeFocusedOptionIndex:function(e){var t=i.DomHandler.find(this.$refs.list,'li[data-pc-section="menuitem"][data-p-disabled="false"]');this.focusedOptionIndex=t[e>=t.length?t.length-1:e<0?0:e].getAttribute("id")},disabled:function(e){return"function"==typeof e.disabled?e.disabled():e.disabled}},computed:{focusedOptionId:function(){return-1!==this.focusedOptionIndex?this.focusedOptionIndex:null}},directives:{ripple:l.default,tooltip:s.default}},y=["id","aria-orientation","aria-activedescendant","tabindex","aria-label","aria-labelledby"],g=["id","aria-label","aria-disabled","onClick","onMouseenter","data-p-focused","data-p-disabled"],x=["href","target","onClick"],I=["href","target"];v.render=function(e,t,n,o,i,a){var c=r.resolveComponent("router-link"),l=r.resolveDirective("ripple"),s=r.resolveDirective("tooltip");return r.openBlock(),r.createElementBlock("div",r.mergeProps({class:e.cx("container")},e.ptm("container")),[r.createElementVNode("ul",r.mergeProps({ref:"list",id:i.id,class:e.cx("menu"),role:"menu","aria-orientation":"bottom"===n.position||"top"===n.position?"horizontal":"vertical","aria-activedescendant":i.focused?a.focusedOptionId:void 0,tabindex:n.tabindex,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,onFocus:t[0]||(t[0]=function(){return a.onListFocus&&a.onListFocus.apply(a,arguments)}),onBlur:t[1]||(t[1]=function(){return a.onListBlur&&a.onListBlur.apply(a,arguments)}),onKeydown:t[2]||(t[2]=function(){return a.onListKeyDown&&a.onListKeyDown.apply(a,arguments)}),onMouseleave:t[3]||(t[3]=function(){return a.onListMouseLeave&&a.onListMouseLeave.apply(a,arguments)})},e.ptm("menu")),[(r.openBlock(!0),r.createElementBlock(r.Fragment,null,r.renderList(n.model,(function(t,o){return r.openBlock(),r.createElementBlock("li",r.mergeProps({key:o,id:a.getItemId(o),class:e.cx("menuitem",{processedItem:t,index:o,id:a.getItemId(o)}),role:"menuitem","aria-label":t.label,"aria-disabled":a.disabled(t),onClick:function(e){return a.onItemClick(e,t)},onMouseenter:function(e){return a.onItemMouseEnter(o)}},a.getPTOptions("menuitem",t,o),{"data-p-focused":a.isItemActive(a.getItemId(o)),"data-p-disabled":a.disabled(t)||!1}),[r.createElementVNode("div",r.mergeProps({class:e.cx("content")},a.getPTOptions("content",t,o)),[n.templates.item?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.item),{key:1,item:t,index:o},null,8,["item","index"])):(r.openBlock(),r.createElementBlock(r.Fragment,{key:0},[t.to&&!a.disabled(t)?(r.openBlock(),r.createBlock(c,{key:0,to:t.to,custom:""},{default:r.withCtx((function(i){var c=i.navigate,d=i.href,u=i.isActive,p=i.isExactActive;return[r.withDirectives((r.openBlock(),r.createElementBlock("a",r.mergeProps({href:d,class:e.cx("action",{isActive:u,isExactActive:p}),target:t.target,tabindex:"-1","aria-hidden":"true",onClick:function(e){return a.onItemActionClick(e,t,c)}},a.getPTOptions("action",t,o)),[n.templates.icon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.icon),{key:1,item:t,class:r.normalizeClass(e.cx("icon"))},null,8,["item","class"])):r.withDirectives((r.openBlock(),r.createElementBlock("span",r.mergeProps({key:0,class:[e.cx("icon"),t.icon]},a.getPTOptions("icon",t,o)),null,16)),[[l]])],16,x)),[[s,{value:t.label,disabled:!n.tooltipOptions},n.tooltipOptions]])]})),_:2},1032,["to"])):r.withDirectives((r.openBlock(),r.createElementBlock("a",r.mergeProps({key:1,href:t.url,class:e.cx("action"),target:t.target,tabindex:"-1","aria-hidden":"true"},a.getPTOptions("action",t,o)),[n.templates.icon?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(n.templates.icon),{key:1,item:t,class:r.normalizeClass(e.cx("icon"))},null,8,["item","class"])):r.withDirectives((r.openBlock(),r.createElementBlock("span",r.mergeProps({key:0,class:[e.cx("icon"),t.icon]},a.getPTOptions("icon",t,o)),null,16)),[[l]])],16,I)),[[s,{value:t.label,disabled:!n.tooltipOptions},n.tooltipOptions]])],64))],16)],16,g)})),128))],16,y)],16)};var O={name:"Dock",extends:u,computed:{containerClass:function(){return[this.class,this.cx("root")]}},components:{DockSub:v}};return O.render=function(e,t,n,o,i,a){var c=r.resolveComponent("DockSub");return r.openBlock(),r.createElementBlock("div",r.mergeProps({class:a.containerClass,style:e.style},e.ptm("root"),{"data-pc-name":"dock"}),[r.createVNode(c,{model:e.model,templates:e.$slots,exact:e.exact,tooltipOptions:e.tooltipOptions,position:e.position,menuId:e.menuId,"aria-label":e.ariaLabel,"aria-labelledby":e.ariaLabelledby,tabindex:e.tabindex,pt:e.pt,unstyled:e.unstyled},null,8,["model","templates","exact","tooltipOptions","position","menuId","aria-label","aria-labelledby","tabindex","pt","unstyled"])],16)},O}(primevue.basecomponent,primevue.usestyle,primevue.ripple,primevue.tooltip,primevue.utils,Vue);
@@ -153,11 +153,11 @@ export default {
153
153
  props: {
154
154
  modelValue: null,
155
155
  options: Array,
156
- optionLabel: String || Function,
157
- optionValue: String || Function,
158
- optionDisabled: String || Function,
159
- optionGroupLabel: String || Function,
160
- optionGroupChildren: String || Function,
156
+ optionLabel: [String, Function],
157
+ optionValue: [String, Function],
158
+ optionDisabled: [String, Function],
159
+ optionGroupLabel: [String, Function],
160
+ optionGroupChildren: [String, Function],
161
161
  scrollHeight: {
162
162
  type: String,
163
163
  default: '200px'
@@ -7,13 +7,15 @@
7
7
  * @module dropdown
8
8
  *
9
9
  */
10
- import { HTMLAttributes, InputHTMLAttributes, VNode } from 'vue';
10
+ import { HTMLAttributes, InputHTMLAttributes, TransitionProps, VNode } from 'vue';
11
11
  import { ComponentHooks } from '../basecomponent';
12
12
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
13
13
  import { VirtualScrollerItemOptions, VirtualScrollerPassThroughOptionType, VirtualScrollerProps } from '../virtualscroller';
14
14
 
15
15
  export declare type DropdownPassThroughOptionType = DropdownPassThroughAttributes | ((options: DropdownPassThroughMethodOptions) => DropdownPassThroughAttributes | string) | string | null | undefined;
16
16
 
17
+ export declare type DropdownPassThroughTransitionType = TransitionProps | ((options: DropdownPassThroughMethodOptions) => TransitionProps) | undefined;
18
+
17
19
  /**
18
20
  * Custom passthrough(pt) option method.
19
21
  */
@@ -60,95 +62,99 @@ export interface DropdownFilterEvent {
60
62
  */
61
63
  export interface DropdownPassThroughOptions {
62
64
  /**
63
- * Uses to pass attributes to the root's DOM element.
65
+ * Used to pass attributes to the root's DOM element.
64
66
  */
65
67
  root?: DropdownPassThroughOptionType;
66
68
  /**
67
- * Uses to pass attributes to the input's DOM element.
69
+ * Used to pass attributes to the input's DOM element.
68
70
  */
69
71
  input?: DropdownPassThroughOptionType;
70
72
  /**
71
- * Uses to pass attributes to the clear icon's DOM element.
73
+ * Used to pass attributes to the clear icon's DOM element.
72
74
  */
73
75
  clearIcon?: DropdownPassThroughOptionType;
74
76
  /**
75
- * Uses to pass attributes to the trigger' DOM element.
77
+ * Used to pass attributes to the trigger' DOM element.
76
78
  */
77
79
  trigger?: DropdownPassThroughOptionType;
78
80
  /**
79
- * Uses to pass attributes to the loading icon's DOM element.
81
+ * Used to pass attributes to the loading icon's DOM element.
80
82
  */
81
83
  loadingIcon?: DropdownPassThroughOptionType;
82
84
  /**
83
- * Uses to pass attributes to the panel's DOM element.
85
+ * Used to pass attributes to the panel's DOM element.
84
86
  */
85
87
  panel?: DropdownPassThroughOptionType;
86
88
  /**
87
- * Uses to pass attributes to the header's DOM element.
89
+ * Used to pass attributes to the header's DOM element.
88
90
  */
89
91
  header?: DropdownPassThroughOptionType;
90
92
  /**
91
- * Uses to pass attributes to the filter container's DOM element.
93
+ * Used to pass attributes to the filter container's DOM element.
92
94
  */
93
95
  filterContainer?: DropdownPassThroughOptionType;
94
96
  /**
95
- * Uses to pass attributes to the filter input's DOM element.
97
+ * Used to pass attributes to the filter input's DOM element.
96
98
  */
97
99
  filterInput?: DropdownPassThroughOptionType;
98
100
  /**
99
- * Uses to pass attributes to the filter icon's DOM element.
101
+ * Used to pass attributes to the filter icon's DOM element.
100
102
  */
101
103
  filterIcon?: DropdownPassThroughOptionType;
102
104
  /**
103
- * Uses to pass attributes to the wrapper's DOM element.
105
+ * Used to pass attributes to the wrapper's DOM element.
104
106
  */
105
107
  wrapper?: DropdownPassThroughOptionType;
106
108
  /**
107
- * Uses to pass attributes to the VirtualScroller component.
109
+ * Used to pass attributes to the VirtualScroller component.
108
110
  * @see {@link VirtualScrollerPassThroughOptionType}
109
111
  */
110
112
  virtualScroller?: VirtualScrollerPassThroughOptionType;
111
113
  /**
112
- * Uses to pass attributes to the list's DOM element.
114
+ * Used to pass attributes to the list's DOM element.
113
115
  */
114
116
  list?: DropdownPassThroughOptionType;
115
117
  /**
116
- * Uses to pass attributes to the item group's DOM element.
118
+ * Used to pass attributes to the item group's DOM element.
117
119
  */
118
120
  itemGroup?: DropdownPassThroughOptionType;
119
121
  /**
120
- * Uses to pass attributes to the item's DOM element.
122
+ * Used to pass attributes to the item's DOM element.
121
123
  */
122
124
  item?: DropdownPassThroughOptionType;
123
125
  /**
124
- * Uses to pass attributes to the empty message's DOM element.
126
+ * Used to pass attributes to the empty message's DOM element.
125
127
  */
126
128
  emptyMessage?: DropdownPassThroughOptionType;
127
129
  /**
128
- * Uses to pass attributes to the hidden first focusable element's DOM element.
130
+ * Used to pass attributes to the hidden first focusable element's DOM element.
129
131
  */
130
132
  hiddenFirstFocusableEl?: DropdownPassThroughOptionType;
131
133
  /**
132
- * Uses to pass attributes to the hidden filter result's DOM element.
134
+ * Used to pass attributes to the hidden filter result's DOM element.
133
135
  */
134
136
  hiddenFilterResult?: DropdownPassThroughOptionType;
135
137
  /**
136
- * Uses to pass attributes to the hidden empty message's DOM element.
138
+ * Used to pass attributes to the hidden empty message's DOM element.
137
139
  */
138
140
  hiddenEmptyMessage?: DropdownPassThroughOptionType;
139
141
  /**
140
- * Uses to pass attributes to the hidden selected message's DOM element.
142
+ * Used to pass attributes to the hidden selected message's DOM element.
141
143
  */
142
144
  hiddenSelectedMessage?: DropdownPassThroughOptionType;
143
145
  /**
144
- * Uses to pass attributes to the hidden last focusable element's DOM element.
146
+ * Used to pass attributes to the hidden last focusable element's DOM element.
145
147
  */
146
148
  hiddenLastFocusableEl?: DropdownPassThroughOptionType;
147
149
  /**
148
- * Uses to manage all lifecycle hooks
150
+ * Used to manage all lifecycle hooks
149
151
  * @see {@link BaseComponent.ComponentHooks}
150
152
  */
151
153
  hooks?: ComponentHooks;
154
+ /**
155
+ * Used to control Vue Transition API.
156
+ */
157
+ transition?: DropdownPassThroughTransitionType;
152
158
  }
153
159
 
154
160
  /**
@@ -303,7 +309,7 @@ export interface DropdownProps {
303
309
  */
304
310
  inputClass?: string | object | undefined;
305
311
  /**
306
- * Uses to pass all properties of the HTMLInputElement/HTMLSpanElement to the focusable input element inside the component.
312
+ * Used to pass all properties of the HTMLInputElement/HTMLSpanElement to the focusable input element inside the component.
307
313
  */
308
314
  inputProps?: InputHTMLAttributes | HTMLAttributes | undefined;
309
315
  /**
@@ -315,15 +321,15 @@ export interface DropdownProps {
315
321
  */
316
322
  panelClass?: string | object | undefined;
317
323
  /**
318
- * Uses to pass all properties of the HTMLDivElement to the overlay panel inside the component.
324
+ * Used to pass all properties of the HTMLDivElement to the overlay panel inside the component.
319
325
  */
320
326
  panelProps?: HTMLAttributes | undefined;
321
327
  /**
322
- * Uses to pass all properties of the HTMLInputElement to the filter input inside the component.
328
+ * Used to pass all properties of the HTMLInputElement to the filter input inside the component.
323
329
  */
324
330
  filterInputProps?: InputHTMLAttributes | undefined;
325
331
  /**
326
- * Uses to pass all properties of the HTMLElement to the clear icon inside the component.
332
+ * Used to pass all properties of the HTMLElement to the clear icon inside the component.
327
333
  * @deprecated since v3.26.0. Use 'pt' peroperty.
328
334
  */
329
335
  clearIconProps?: HTMLAttributes | undefined;
@@ -419,7 +425,7 @@ export interface DropdownProps {
419
425
  */
420
426
  'aria-labelledby'?: string | undefined;
421
427
  /**
422
- * Uses to pass attributes to DOM elements inside the component.
428
+ * Used to pass attributes to DOM elements inside the component.
423
429
  * @type {DropdownPassThroughOptions}
424
430
  */
425
431
  pt?: DropdownPassThroughOptions;
@@ -60,7 +60,7 @@
60
60
  </slot>
61
61
  </div>
62
62
  <Portal :appendTo="appendTo">
63
- <transition name="p-connected-overlay" @enter="onOverlayEnter" @after-enter="onOverlayAfterEnter" @leave="onOverlayLeave" @after-leave="onOverlayAfterLeave">
63
+ <transition name="p-connected-overlay" @enter="onOverlayEnter" @after-enter="onOverlayAfterEnter" @leave="onOverlayLeave" @after-leave="onOverlayAfterLeave" v-bind="ptm('transition')">
64
64
  <div v-if="overlayVisible" :ref="overlayRef" :class="[cx('panel'), panelClass]" :style="panelStyle" @click="onOverlayClick" @keydown="onOverlayKeyDown" v-bind="{ ...panelProps, ...ptm('panel') }">
65
65
  <span
66
66
  ref="firstHiddenFocusableElementOnOverlay"
@@ -405,7 +405,7 @@ export default {
405
405
  return;
406
406
  }
407
407
 
408
- if (event.target.tagName === 'INPUT' || event.target.getAttribute('data-pc-section') === 'clearicon' || event.target.tagName === 'path') {
408
+ if (event.target.tagName === 'INPUT' || event.target.getAttribute('data-pc-section') === 'clearicon' || event.target.closest('[data-pc-section="clearicon"]')) {
409
409
  return;
410
410
  } else if (!this.overlay || !this.overlay.contains(event.target)) {
411
411
  this.overlayVisible ? this.hide(true) : this.show(true);
@@ -91,11 +91,11 @@ var script$1 = {
91
91
  props: {
92
92
  modelValue: null,
93
93
  options: Array,
94
- optionLabel: String || Function,
95
- optionValue: String || Function,
96
- optionDisabled: String || Function,
97
- optionGroupLabel: String || Function,
98
- optionGroupChildren: String || Function,
94
+ optionLabel: [String, Function],
95
+ optionValue: [String, Function],
96
+ optionDisabled: [String, Function],
97
+ optionGroupLabel: [String, Function],
98
+ optionGroupChildren: [String, Function],
99
99
  scrollHeight: {
100
100
  type: String,
101
101
  "default": '200px'
@@ -461,7 +461,7 @@ var script = {
461
461
  if (this.disabled || this.loading) {
462
462
  return;
463
463
  }
464
- if (event.target.tagName === 'INPUT' || event.target.getAttribute('data-pc-section') === 'clearicon' || event.target.tagName === 'path') {
464
+ if (event.target.tagName === 'INPUT' || event.target.getAttribute('data-pc-section') === 'clearicon' || event.target.closest('[data-pc-section="clearicon"]')) {
465
465
  return;
466
466
  } else if (!this.overlay || !this.overlay.contains(event.target)) {
467
467
  this.overlayVisible ? this.hide(true) : this.show(true);
@@ -1097,13 +1097,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1097
1097
  appendTo: _ctx.appendTo
1098
1098
  }, {
1099
1099
  "default": vue.withCtx(function () {
1100
- return [vue.createVNode(vue.Transition, {
1100
+ return [vue.createVNode(vue.Transition, vue.mergeProps({
1101
1101
  name: "p-connected-overlay",
1102
1102
  onEnter: $options.onOverlayEnter,
1103
1103
  onAfterEnter: $options.onOverlayAfterEnter,
1104
1104
  onLeave: $options.onOverlayLeave,
1105
1105
  onAfterLeave: $options.onOverlayAfterLeave
1106
- }, {
1106
+ }, _ctx.ptm('transition')), {
1107
1107
  "default": vue.withCtx(function () {
1108
1108
  return [$data.overlayVisible ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
1109
1109
  key: 0,
@@ -1307,7 +1307,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
1307
1307
  }), null, 16)], 16)) : vue.createCommentVNode("", true)];
1308
1308
  }),
1309
1309
  _: 3
1310
- }, 8, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])];
1310
+ }, 16, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])];
1311
1311
  }),
1312
1312
  _: 3
1313
1313
  }, 8, ["appendTo"])], 16, _hoisted_1);