primevue 3.27.0 → 3.28.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 (408) hide show
  1. package/README.md +1 -1
  2. package/autocomplete/AutoComplete.d.ts +10 -1
  3. package/autocomplete/AutoComplete.vue +1 -1
  4. package/autocomplete/autocomplete.cjs.js +4 -1
  5. package/autocomplete/autocomplete.cjs.min.js +1 -1
  6. package/autocomplete/autocomplete.esm.js +4 -1
  7. package/autocomplete/autocomplete.esm.min.js +1 -1
  8. package/autocomplete/autocomplete.js +4 -1
  9. package/autocomplete/autocomplete.min.js +1 -1
  10. package/avatar/Avatar.d.ts +44 -0
  11. package/avatar/Avatar.vue +10 -8
  12. package/avatar/avatar.cjs.js +36 -34
  13. package/avatar/avatar.cjs.min.js +1 -1
  14. package/avatar/avatar.esm.js +33 -35
  15. package/avatar/avatar.esm.min.js +1 -1
  16. package/avatar/avatar.js +37 -36
  17. package/avatar/avatar.min.js +1 -1
  18. package/avatargroup/AvatarGroup.d.ts +27 -1
  19. package/avatargroup/AvatarGroup.vue +5 -2
  20. package/avatargroup/avatargroup.cjs.js +9 -5
  21. package/avatargroup/avatargroup.cjs.min.js +1 -1
  22. package/avatargroup/avatargroup.esm.js +6 -6
  23. package/avatargroup/avatargroup.esm.min.js +1 -1
  24. package/avatargroup/avatargroup.js +10 -7
  25. package/avatargroup/avatargroup.min.js +1 -1
  26. package/badge/Badge.d.ts +32 -0
  27. package/badge/Badge.vue +3 -1
  28. package/badge/badge.cjs.js +8 -4
  29. package/badge/badge.cjs.min.js +1 -1
  30. package/badge/badge.esm.js +5 -5
  31. package/badge/badge.esm.min.js +1 -1
  32. package/badge/badge.js +9 -6
  33. package/badge/badge.min.js +1 -1
  34. package/basecomponent/BaseComponent.vue +10 -3
  35. package/basecomponent/basecomponent.cjs.js +10 -3
  36. package/basecomponent/basecomponent.cjs.min.js +1 -1
  37. package/basecomponent/basecomponent.esm.js +10 -3
  38. package/basecomponent/basecomponent.esm.min.js +1 -1
  39. package/basecomponent/basecomponent.js +10 -3
  40. package/basecomponent/basecomponent.min.js +1 -1
  41. package/baseicon/BaseIcon.vue +2 -2
  42. package/baseicon/baseicon.cjs.js +2 -2
  43. package/baseicon/baseicon.cjs.min.js +1 -1
  44. package/baseicon/baseicon.esm.js +2 -2
  45. package/baseicon/baseicon.esm.min.js +1 -1
  46. package/baseicon/baseicon.js +2 -2
  47. package/baseicon/baseicon.min.js +1 -1
  48. package/blockui/BlockUI.d.ts +44 -0
  49. package/blockui/BlockUI.vue +3 -1
  50. package/blockui/blockui.cjs.js +9 -3
  51. package/blockui/blockui.cjs.min.js +1 -1
  52. package/blockui/blockui.esm.js +6 -4
  53. package/blockui/blockui.esm.min.js +1 -1
  54. package/blockui/blockui.js +10 -5
  55. package/blockui/blockui.min.js +1 -1
  56. package/breadcrumb/Breadcrumb.d.ts +60 -0
  57. package/breadcrumb/Breadcrumb.vue +8 -6
  58. package/breadcrumb/BreadcrumbItem.vue +14 -10
  59. package/breadcrumb/breadcrumb.cjs.js +53 -51
  60. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  61. package/breadcrumb/breadcrumb.esm.js +53 -52
  62. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  63. package/breadcrumb/breadcrumb.js +54 -53
  64. package/breadcrumb/breadcrumb.min.js +1 -1
  65. package/button/Button.d.ts +48 -0
  66. package/button/Button.vue +10 -9
  67. package/button/button.cjs.js +43 -44
  68. package/button/button.cjs.min.js +1 -1
  69. package/button/button.esm.js +43 -45
  70. package/button/button.esm.min.js +1 -1
  71. package/button/button.js +44 -46
  72. package/button/button.min.js +1 -1
  73. package/chart/Chart.d.ts +36 -0
  74. package/chart/Chart.vue +5 -2
  75. package/chart/chart.cjs.js +10 -5
  76. package/chart/chart.cjs.min.js +1 -1
  77. package/chart/chart.esm.js +7 -6
  78. package/chart/chart.esm.min.js +1 -1
  79. package/chart/chart.js +11 -7
  80. package/chart/chart.min.js +1 -1
  81. package/chip/Chip.d.ts +60 -0
  82. package/chip/Chip.vue +10 -9
  83. package/chip/chip.cjs.js +35 -36
  84. package/chip/chip.cjs.min.js +1 -1
  85. package/chip/chip.esm.js +35 -37
  86. package/chip/chip.esm.min.js +1 -1
  87. package/chip/chip.js +36 -38
  88. package/chip/chip.min.js +1 -1
  89. package/config/PrimeVue.d.ts +8 -0
  90. package/config/config.cjs.js +3 -1
  91. package/config/config.cjs.min.js +1 -1
  92. package/config/config.esm.js +3 -2
  93. package/config/config.esm.min.js +1 -1
  94. package/config/config.js +3 -1
  95. package/config/config.min.js +1 -1
  96. package/confirmdialog/ConfirmDialog.d.ts +88 -0
  97. package/confirmdialog/ConfirmDialog.vue +9 -6
  98. package/confirmdialog/confirmdialog.cjs.js +22 -18
  99. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  100. package/confirmdialog/confirmdialog.esm.js +22 -19
  101. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  102. package/confirmdialog/confirmdialog.js +23 -20
  103. package/confirmdialog/confirmdialog.min.js +1 -1
  104. package/confirmpopup/ConfirmPopup.d.ts +75 -0
  105. package/confirmpopup/ConfirmPopup.vue +11 -9
  106. package/confirmpopup/confirmpopup.cjs.js +27 -25
  107. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  108. package/confirmpopup/confirmpopup.esm.js +27 -26
  109. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  110. package/confirmpopup/confirmpopup.js +28 -27
  111. package/confirmpopup/confirmpopup.min.js +1 -1
  112. package/contextmenu/ContextMenu.d.ts +135 -0
  113. package/contextmenu/ContextMenu.vue +4 -1
  114. package/contextmenu/ContextMenuSub.vue +46 -10
  115. package/contextmenu/contextmenu.cjs.js +57 -46
  116. package/contextmenu/contextmenu.cjs.min.js +1 -1
  117. package/contextmenu/contextmenu.esm.js +57 -47
  118. package/contextmenu/contextmenu.esm.min.js +1 -1
  119. package/contextmenu/contextmenu.js +58 -48
  120. package/contextmenu/contextmenu.min.js +1 -1
  121. package/core/core.js +278 -246
  122. package/core/core.min.js +11 -11
  123. package/dialog/Dialog.d.ts +87 -0
  124. package/dialog/Dialog.vue +23 -10
  125. package/dialog/dialog.cjs.js +31 -30
  126. package/dialog/dialog.cjs.min.js +1 -1
  127. package/dialog/dialog.esm.js +31 -31
  128. package/dialog/dialog.esm.min.js +1 -1
  129. package/dialog/dialog.js +32 -32
  130. package/dialog/dialog.min.js +1 -1
  131. package/dock/Dock.d.ts +94 -0
  132. package/dock/Dock.vue +4 -2
  133. package/dock/DockSub.vue +30 -6
  134. package/dock/dock.cjs.js +52 -39
  135. package/dock/dock.cjs.min.js +1 -1
  136. package/dock/dock.esm.js +52 -40
  137. package/dock/dock.esm.min.js +1 -1
  138. package/dock/dock.js +53 -41
  139. package/dock/dock.min.js +1 -1
  140. package/dropdown/Dropdown.vue +1 -1
  141. package/dropdown/dropdown.cjs.js +1 -1
  142. package/dropdown/dropdown.cjs.min.js +1 -1
  143. package/dropdown/dropdown.esm.js +1 -1
  144. package/dropdown/dropdown.esm.min.js +1 -1
  145. package/dropdown/dropdown.js +1 -1
  146. package/dropdown/dropdown.min.js +1 -1
  147. package/dynamicdialog/DynamicDialog.vue +3 -1
  148. package/dynamicdialog/dynamicdialog.cjs.js +5 -1
  149. package/dynamicdialog/dynamicdialog.cjs.min.js +1 -1
  150. package/dynamicdialog/dynamicdialog.esm.js +4 -1
  151. package/dynamicdialog/dynamicdialog.esm.min.js +1 -1
  152. package/dynamicdialog/dynamicdialog.js +6 -3
  153. package/dynamicdialog/dynamicdialog.min.js +1 -1
  154. package/fileupload/FileContent.vue +11 -9
  155. package/fileupload/FileUpload.d.ts +154 -0
  156. package/fileupload/FileUpload.vue +26 -24
  157. package/fileupload/fileupload.cjs.js +100 -97
  158. package/fileupload/fileupload.cjs.min.js +1 -1
  159. package/fileupload/fileupload.esm.js +100 -98
  160. package/fileupload/fileupload.esm.min.js +1 -1
  161. package/fileupload/fileupload.js +101 -99
  162. package/fileupload/fileupload.min.js +1 -1
  163. package/inlinemessage/InlineMessage.d.ts +52 -0
  164. package/inlinemessage/InlineMessage.vue +7 -3
  165. package/inlinemessage/inlinemessage.cjs.js +12 -11
  166. package/inlinemessage/inlinemessage.cjs.min.js +1 -1
  167. package/inlinemessage/inlinemessage.esm.js +12 -12
  168. package/inlinemessage/inlinemessage.esm.min.js +1 -1
  169. package/inlinemessage/inlinemessage.js +13 -13
  170. package/inlinemessage/inlinemessage.min.js +1 -1
  171. package/inplace/Inplace.d.ts +59 -0
  172. package/inplace/Inplace.vue +7 -5
  173. package/inplace/inplace.cjs.js +17 -16
  174. package/inplace/inplace.cjs.min.js +1 -1
  175. package/inplace/inplace.esm.js +17 -17
  176. package/inplace/inplace.esm.min.js +1 -1
  177. package/inplace/inplace.js +18 -18
  178. package/inplace/inplace.min.js +1 -1
  179. package/listbox/Listbox.d.ts +1 -1
  180. package/megamenu/MegaMenu.d.ts +149 -0
  181. package/megamenu/MegaMenu.vue +6 -3
  182. package/megamenu/MegaMenuSub.vue +43 -15
  183. package/megamenu/megamenu.cjs.js +83 -75
  184. package/megamenu/megamenu.cjs.min.js +1 -1
  185. package/megamenu/megamenu.esm.js +83 -76
  186. package/megamenu/megamenu.esm.min.js +1 -1
  187. package/megamenu/megamenu.js +84 -77
  188. package/megamenu/megamenu.min.js +1 -1
  189. package/menu/Menu.d.ts +113 -0
  190. package/menu/Menu.vue +11 -8
  191. package/menu/Menuitem.vue +20 -8
  192. package/menu/menu.cjs.js +73 -62
  193. package/menu/menu.cjs.min.js +1 -1
  194. package/menu/menu.esm.js +73 -63
  195. package/menu/menu.esm.min.js +1 -1
  196. package/menu/menu.js +74 -64
  197. package/menu/menu.min.js +1 -1
  198. package/menubar/Menubar.d.ts +146 -0
  199. package/menubar/Menubar.vue +8 -5
  200. package/menubar/MenubarSub.vue +38 -10
  201. package/menubar/menubar.cjs.js +70 -60
  202. package/menubar/menubar.cjs.min.js +1 -1
  203. package/menubar/menubar.esm.js +70 -61
  204. package/menubar/menubar.esm.min.js +1 -1
  205. package/menubar/menubar.js +71 -62
  206. package/menubar/menubar.min.js +1 -1
  207. package/message/Message.d.ts +64 -1
  208. package/message/Message.vue +9 -7
  209. package/message/message.cjs.js +22 -21
  210. package/message/message.cjs.min.js +1 -1
  211. package/message/message.esm.js +22 -22
  212. package/message/message.esm.min.js +1 -1
  213. package/message/message.js +23 -23
  214. package/message/message.min.js +1 -1
  215. package/multiselect/MultiSelect.d.ts +1 -1
  216. package/overlaypanel/OverlayPanel.d.ts +56 -0
  217. package/overlaypanel/OverlayPanel.vue +6 -4
  218. package/overlaypanel/overlaypanel.cjs.js +13 -10
  219. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  220. package/overlaypanel/overlaypanel.esm.js +13 -11
  221. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  222. package/overlaypanel/overlaypanel.js +14 -12
  223. package/overlaypanel/overlaypanel.min.js +1 -1
  224. package/package.json +1 -1
  225. package/panel/Panel.d.ts +10 -1
  226. package/panel/Panel.vue +1 -1
  227. package/panel/panel.cjs.js +4 -1
  228. package/panel/panel.cjs.min.js +1 -1
  229. package/panel/panel.esm.js +4 -1
  230. package/panel/panel.esm.min.js +1 -1
  231. package/panel/panel.js +4 -1
  232. package/panel/panel.min.js +1 -1
  233. package/panelmenu/PanelMenu.d.ts +133 -0
  234. package/panelmenu/PanelMenu.vue +36 -13
  235. package/panelmenu/PanelMenuList.vue +3 -0
  236. package/panelmenu/PanelMenuSub.vue +33 -12
  237. package/panelmenu/panelmenu.cjs.js +115 -96
  238. package/panelmenu/panelmenu.cjs.min.js +1 -1
  239. package/panelmenu/panelmenu.esm.js +115 -97
  240. package/panelmenu/panelmenu.esm.min.js +1 -1
  241. package/panelmenu/panelmenu.js +116 -98
  242. package/panelmenu/panelmenu.min.js +1 -1
  243. package/password/Password.vue +2 -2
  244. package/password/password.cjs.js +2 -2
  245. package/password/password.cjs.min.js +1 -1
  246. package/password/password.esm.js +2 -2
  247. package/password/password.esm.min.js +1 -1
  248. package/password/password.js +2 -2
  249. package/password/password.min.js +1 -1
  250. package/progressbar/ProgressBar.d.ts +40 -0
  251. package/progressbar/ProgressBar.vue +8 -5
  252. package/progressbar/progressbar.cjs.js +25 -23
  253. package/progressbar/progressbar.cjs.min.js +1 -1
  254. package/progressbar/progressbar.esm.js +22 -24
  255. package/progressbar/progressbar.esm.min.js +1 -1
  256. package/progressbar/progressbar.js +26 -25
  257. package/progressbar/progressbar.min.js +1 -1
  258. package/progressspinner/ProgressSpinner.d.ts +40 -0
  259. package/progressspinner/ProgressSpinner.vue +6 -3
  260. package/progressspinner/progressspinner.cjs.js +18 -13
  261. package/progressspinner/progressspinner.cjs.min.js +1 -1
  262. package/progressspinner/progressspinner.esm.js +15 -14
  263. package/progressspinner/progressspinner.esm.min.js +1 -1
  264. package/progressspinner/progressspinner.js +19 -15
  265. package/progressspinner/progressspinner.min.js +1 -1
  266. package/resources/themes/arya-blue/theme.css +1 -1
  267. package/resources/themes/arya-green/theme.css +1 -1
  268. package/resources/themes/arya-orange/theme.css +1 -1
  269. package/resources/themes/arya-purple/theme.css +1 -1
  270. package/resources/themes/bootstrap4-dark-blue/theme.css +1 -1
  271. package/resources/themes/bootstrap4-dark-purple/theme.css +1 -1
  272. package/resources/themes/bootstrap4-light-blue/theme.css +1 -1
  273. package/resources/themes/bootstrap4-light-purple/theme.css +1 -1
  274. package/resources/themes/fluent-light/theme.css +1 -1
  275. package/resources/themes/lara-dark-blue/theme.css +1 -1
  276. package/resources/themes/lara-dark-indigo/theme.css +1 -1
  277. package/resources/themes/lara-dark-purple/theme.css +1 -1
  278. package/resources/themes/lara-dark-teal/theme.css +1 -1
  279. package/resources/themes/lara-light-blue/theme.css +1 -1
  280. package/resources/themes/lara-light-indigo/theme.css +1 -1
  281. package/resources/themes/lara-light-purple/theme.css +1 -1
  282. package/resources/themes/lara-light-teal/theme.css +1 -1
  283. package/resources/themes/luna-amber/theme.css +1 -1
  284. package/resources/themes/luna-blue/theme.css +1 -1
  285. package/resources/themes/luna-green/theme.css +1 -1
  286. package/resources/themes/luna-pink/theme.css +1 -1
  287. package/resources/themes/md-dark-deeppurple/theme.css +4 -1
  288. package/resources/themes/md-dark-indigo/theme.css +4 -1
  289. package/resources/themes/md-light-deeppurple/theme.css +4 -1
  290. package/resources/themes/md-light-indigo/theme.css +4 -1
  291. package/resources/themes/mdc-dark-deeppurple/theme.css +4 -1
  292. package/resources/themes/mdc-dark-indigo/theme.css +4 -1
  293. package/resources/themes/mdc-light-deeppurple/theme.css +4 -1
  294. package/resources/themes/mdc-light-indigo/theme.css +4 -1
  295. package/resources/themes/mira/theme.css +1 -1
  296. package/resources/themes/nano/theme.css +1 -1
  297. package/resources/themes/nova/theme.css +1 -1
  298. package/resources/themes/nova-accent/theme.css +1 -1
  299. package/resources/themes/nova-alt/theme.css +1 -1
  300. package/resources/themes/nova-vue/theme.css +1 -1
  301. package/resources/themes/rhea/theme.css +1 -1
  302. package/resources/themes/saga-blue/theme.css +1 -1
  303. package/resources/themes/saga-green/theme.css +1 -1
  304. package/resources/themes/saga-orange/theme.css +1 -1
  305. package/resources/themes/saga-purple/theme.css +1 -1
  306. package/resources/themes/soho-dark/theme.css +1 -1
  307. package/resources/themes/soho-light/theme.css +1 -1
  308. package/resources/themes/tailwind-light/theme.css +1 -1
  309. package/resources/themes/vela-blue/theme.css +1 -1
  310. package/resources/themes/vela-green/theme.css +1 -1
  311. package/resources/themes/vela-orange/theme.css +1 -1
  312. package/resources/themes/vela-purple/theme.css +1 -1
  313. package/resources/themes/viva-dark/theme.css +1 -1
  314. package/resources/themes/viva-light/theme.css +1 -1
  315. package/scrolltop/ScrollTop.d.ts +48 -0
  316. package/scrolltop/ScrollTop.vue +5 -2
  317. package/scrolltop/scrolltop.cjs.js +10 -7
  318. package/scrolltop/scrolltop.cjs.min.js +1 -1
  319. package/scrolltop/scrolltop.esm.js +10 -8
  320. package/scrolltop/scrolltop.esm.min.js +1 -1
  321. package/scrolltop/scrolltop.js +11 -9
  322. package/scrolltop/scrolltop.min.js +1 -1
  323. package/sidebar/Sidebar.d.ts +68 -0
  324. package/sidebar/Sidebar.vue +9 -7
  325. package/sidebar/sidebar.cjs.js +26 -24
  326. package/sidebar/sidebar.cjs.min.js +1 -1
  327. package/sidebar/sidebar.esm.js +26 -25
  328. package/sidebar/sidebar.esm.min.js +1 -1
  329. package/sidebar/sidebar.js +27 -26
  330. package/sidebar/sidebar.min.js +1 -1
  331. package/skeleton/Skeleton.d.ts +32 -0
  332. package/skeleton/Skeleton.vue +4 -1
  333. package/skeleton/skeleton.cjs.js +10 -4
  334. package/skeleton/skeleton.cjs.min.js +1 -1
  335. package/skeleton/skeleton.esm.js +7 -5
  336. package/skeleton/skeleton.esm.min.js +1 -1
  337. package/skeleton/skeleton.js +11 -6
  338. package/skeleton/skeleton.min.js +1 -1
  339. package/speeddial/SpeedDial.d.ts +101 -0
  340. package/speeddial/SpeedDial.vue +31 -8
  341. package/speeddial/speeddial.cjs.js +47 -33
  342. package/speeddial/speeddial.cjs.min.js +1 -1
  343. package/speeddial/speeddial.esm.js +47 -34
  344. package/speeddial/speeddial.esm.min.js +1 -1
  345. package/speeddial/speeddial.js +48 -35
  346. package/speeddial/speeddial.min.js +1 -1
  347. package/splitbutton/SplitButton.d.ts +64 -0
  348. package/splitbutton/SplitButton.vue +8 -5
  349. package/splitbutton/splitbutton.cjs.js +23 -18
  350. package/splitbutton/splitbutton.cjs.min.js +1 -1
  351. package/splitbutton/splitbutton.esm.js +23 -19
  352. package/splitbutton/splitbutton.esm.min.js +1 -1
  353. package/splitbutton/splitbutton.js +24 -20
  354. package/splitbutton/splitbutton.min.js +1 -1
  355. package/steps/Steps.d.ts +52 -0
  356. package/steps/Steps.vue +11 -8
  357. package/steps/steps.cjs.js +34 -33
  358. package/steps/steps.cjs.min.js +1 -1
  359. package/steps/steps.esm.js +31 -34
  360. package/steps/steps.esm.min.js +1 -1
  361. package/steps/steps.js +35 -35
  362. package/steps/steps.min.js +1 -1
  363. package/tabmenu/TabMenu.d.ts +79 -0
  364. package/tabmenu/TabMenu.vue +20 -10
  365. package/tabmenu/tabmenu.cjs.js +47 -41
  366. package/tabmenu/tabmenu.cjs.min.js +1 -1
  367. package/tabmenu/tabmenu.esm.js +47 -42
  368. package/tabmenu/tabmenu.esm.min.js +1 -1
  369. package/tabmenu/tabmenu.js +48 -43
  370. package/tabmenu/tabmenu.min.js +1 -1
  371. package/tag/Tag.d.ts +40 -0
  372. package/tag/Tag.vue +7 -4
  373. package/tag/tag.cjs.js +14 -12
  374. package/tag/tag.cjs.min.js +1 -1
  375. package/tag/tag.esm.js +11 -13
  376. package/tag/tag.esm.min.js +1 -1
  377. package/tag/tag.js +15 -14
  378. package/tag/tag.min.js +1 -1
  379. package/terminal/Terminal.d.ts +79 -0
  380. package/terminal/Terminal.vue +12 -10
  381. package/terminal/terminal.cjs.js +23 -28
  382. package/terminal/terminal.cjs.min.js +1 -1
  383. package/terminal/terminal.esm.js +23 -29
  384. package/terminal/terminal.esm.min.js +1 -1
  385. package/terminal/terminal.js +24 -30
  386. package/terminal/terminal.min.js +1 -1
  387. package/tieredmenu/TieredMenu.d.ts +130 -0
  388. package/tieredmenu/TieredMenu.vue +4 -1
  389. package/tieredmenu/TieredMenuSub.vue +39 -11
  390. package/tieredmenu/tieredmenu.cjs.js +53 -41
  391. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  392. package/tieredmenu/tieredmenu.esm.js +53 -42
  393. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  394. package/tieredmenu/tieredmenu.js +54 -43
  395. package/tieredmenu/tieredmenu.min.js +1 -1
  396. package/toast/Toast.d.ts +79 -0
  397. package/toast/Toast.vue +4 -1
  398. package/toast/ToastMessage.vue +12 -10
  399. package/toast/toast.cjs.js +31 -31
  400. package/toast/toast.cjs.min.js +1 -1
  401. package/toast/toast.esm.js +31 -32
  402. package/toast/toast.esm.min.js +1 -1
  403. package/toast/toast.js +32 -33
  404. package/toast/toast.min.js +1 -1
  405. package/treeselect/TreeSelect.d.ts +1 -2
  406. package/vetur-attributes.json +160 -0
  407. package/vetur-tags.json +79 -34
  408. package/web-types.json +404 -2
@@ -1,13 +1,15 @@
1
1
  this.primevue = this.primevue || {};
2
- this.primevue.tabmenu = (function (Ripple, utils, vue) {
2
+ this.primevue.tabmenu = (function (BaseComponent, Ripple, utils, vue) {
3
3
  'use strict';
4
4
 
5
5
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
6
6
 
7
+ var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
7
8
  var Ripple__default = /*#__PURE__*/_interopDefaultLegacy(Ripple);
8
9
 
9
10
  var script = {
10
11
  name: 'TabMenu',
12
+ extends: BaseComponent__default["default"],
11
13
  emits: ['update:activeIndex', 'tab-change'],
12
14
  props: {
13
15
  model: {
@@ -55,6 +57,13 @@ this.primevue.tabmenu = (function (Ripple, utils, vue) {
55
57
  clearTimeout(this.timeout);
56
58
  },
57
59
  methods: {
60
+ getPTOptions(key, index) {
61
+ return this.ptm(key, {
62
+ context: {
63
+ order: index
64
+ }
65
+ });
66
+ },
58
67
  onItemClick(event, item, index, navigate) {
59
68
  if (this.disabled(item)) {
60
69
  event.preventDefault();
@@ -235,31 +244,23 @@ this.primevue.tabmenu = (function (Ripple, utils, vue) {
235
244
  }
236
245
  };
237
246
 
238
- const _hoisted_1 = { class: "p-tabmenu p-component" };
239
- const _hoisted_2 = ["aria-labelledby", "aria-label"];
240
- const _hoisted_3 = ["href", "aria-label", "aria-disabled", "tabindex", "onClick", "onKeydown"];
241
- const _hoisted_4 = { class: "p-menuitem-text" };
242
- const _hoisted_5 = ["onClick", "onKeydown"];
243
- const _hoisted_6 = ["href", "target", "aria-label", "aria-disabled", "tabindex"];
244
- const _hoisted_7 = { class: "p-menuitem-text" };
245
- const _hoisted_8 = {
246
- ref: "inkbar",
247
- role: "none",
248
- class: "p-tabmenu-ink-bar"
249
- };
247
+ const _hoisted_1 = ["aria-labelledby", "aria-label"];
248
+ const _hoisted_2 = ["href", "aria-label", "aria-disabled", "tabindex", "onClick", "onKeydown"];
249
+ const _hoisted_3 = ["onClick", "onKeydown"];
250
+ const _hoisted_4 = ["href", "target", "aria-label", "aria-disabled", "tabindex"];
250
251
 
251
252
  function render(_ctx, _cache, $props, $setup, $data, $options) {
252
253
  const _component_router_link = vue.resolveComponent("router-link");
253
254
  const _directive_ripple = vue.resolveDirective("ripple");
254
255
 
255
- return (vue.openBlock(), vue.createElementBlock("div", _hoisted_1, [
256
- vue.createElementVNode("ul", {
256
+ return (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({ class: "p-tabmenu p-component" }, _ctx.ptm('root')), [
257
+ vue.createElementVNode("ul", vue.mergeProps({
257
258
  ref: "nav",
258
259
  class: "p-tabmenu-nav p-reset",
259
260
  role: "menubar",
260
261
  "aria-labelledby": _ctx.ariaLabelledby,
261
262
  "aria-label": _ctx.ariaLabel
262
- }, [
263
+ }, _ctx.ptm('menu')), [
263
264
  (vue.openBlock(true), vue.createElementBlock(vue.Fragment, null, vue.renderList($props.model, (item, i) => {
264
265
  return (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
265
266
  key: $options.label(item) + '_' + i.toString()
@@ -272,16 +273,16 @@ this.primevue.tabmenu = (function (Ripple, utils, vue) {
272
273
  }, {
273
274
  default: vue.withCtx(({ navigate, href, isActive, isExactActive }) => [
274
275
  ($options.visible(item))
275
- ? (vue.openBlock(), vue.createElementBlock("li", {
276
+ ? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
276
277
  key: 0,
277
278
  ref_for: true,
278
279
  ref: "tab",
279
- class: vue.normalizeClass($options.getRouteItemClass(item, isActive, isExactActive)),
280
- style: vue.normalizeStyle(item.style),
280
+ class: $options.getRouteItemClass(item, isActive, isExactActive),
281
+ style: item.style,
281
282
  role: "presentation"
282
- }, [
283
+ }, $options.getPTOptions('menuitem', i)), [
283
284
  (!_ctx.$slots.item)
284
- ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("a", {
285
+ ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("a", vue.mergeProps({
285
286
  key: 0,
286
287
  ref_for: true,
287
288
  ref: "tabLink",
@@ -293,7 +294,7 @@ this.primevue.tabmenu = (function (Ripple, utils, vue) {
293
294
  tabindex: isExactActive ? '0' : '-1',
294
295
  onClick: $event => ($options.onItemClick($event, item, i, navigate)),
295
296
  onKeydown: $event => ($options.onKeydownItem($event, item, i, navigate))
296
- }, [
297
+ }, $options.getPTOptions('action', i)), [
297
298
  (_ctx.$slots.itemicon)
298
299
  ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.itemicon), {
299
300
  key: 0,
@@ -301,13 +302,13 @@ this.primevue.tabmenu = (function (Ripple, utils, vue) {
301
302
  class: vue.normalizeClass($options.getItemIcon(item))
302
303
  }, null, 8, ["item", "class"]))
303
304
  : (item.icon)
304
- ? (vue.openBlock(), vue.createElementBlock("span", {
305
+ ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
305
306
  key: 1,
306
- class: vue.normalizeClass($options.getItemIcon(item))
307
- }, null, 2))
307
+ class: $options.getItemIcon(item)
308
+ }, $options.getPTOptions('icon', i)), null, 16))
308
309
  : vue.createCommentVNode("", true),
309
- vue.createElementVNode("span", _hoisted_4, vue.toDisplayString($options.label(item)), 1)
310
- ], 40, _hoisted_3)), [
310
+ vue.createElementVNode("span", vue.mergeProps({ class: "p-menuitem-text" }, $options.getPTOptions('label', i)), vue.toDisplayString($options.label(item)), 17)
311
+ ], 16, _hoisted_2)), [
311
312
  [_directive_ripple]
312
313
  ])
313
314
  : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.item), {
@@ -315,23 +316,23 @@ this.primevue.tabmenu = (function (Ripple, utils, vue) {
315
316
  item: item,
316
317
  index: i
317
318
  }, null, 8, ["item", "index"]))
318
- ], 6))
319
+ ], 16))
319
320
  : vue.createCommentVNode("", true)
320
321
  ]),
321
322
  _: 2
322
323
  }, 1032, ["to"]))
323
324
  : ($options.visible(item))
324
- ? (vue.openBlock(), vue.createElementBlock("li", {
325
+ ? (vue.openBlock(), vue.createElementBlock("li", vue.mergeProps({
325
326
  key: 1,
326
327
  ref_for: true,
327
328
  ref: "tab",
328
- class: vue.normalizeClass($options.getItemClass(item, i)),
329
+ class: $options.getItemClass(item, i),
329
330
  role: "presentation",
330
331
  onClick: $event => ($options.onItemClick($event, item, i)),
331
332
  onKeydown: $event => ($options.onKeydownItem($event, item, i))
332
- }, [
333
+ }, $options.getPTOptions('menuitem', i)), [
333
334
  (!_ctx.$slots.item)
334
- ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("a", {
335
+ ? vue.withDirectives((vue.openBlock(), vue.createElementBlock("a", vue.mergeProps({
335
336
  key: 0,
336
337
  ref_for: true,
337
338
  ref: "tabLink",
@@ -342,7 +343,7 @@ this.primevue.tabmenu = (function (Ripple, utils, vue) {
342
343
  "aria-label": $options.label(item),
343
344
  "aria-disabled": $options.disabled(item),
344
345
  tabindex: $options.setTabIndex(i)
345
- }, [
346
+ }, $options.getPTOptions('action', i)), [
346
347
  (_ctx.$slots.itemicon)
347
348
  ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.itemicon), {
348
349
  key: 0,
@@ -350,13 +351,13 @@ this.primevue.tabmenu = (function (Ripple, utils, vue) {
350
351
  class: vue.normalizeClass($options.getItemIcon(item))
351
352
  }, null, 8, ["item", "class"]))
352
353
  : (item.icon)
353
- ? (vue.openBlock(), vue.createElementBlock("span", {
354
+ ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
354
355
  key: 1,
355
- class: vue.normalizeClass($options.getItemIcon(item))
356
- }, null, 2))
356
+ class: $options.getItemIcon(item)
357
+ }, $options.getPTOptions('icon', i)), null, 16))
357
358
  : vue.createCommentVNode("", true),
358
- vue.createElementVNode("span", _hoisted_7, vue.toDisplayString($options.label(item)), 1)
359
- ], 8, _hoisted_6)), [
359
+ vue.createElementVNode("span", vue.mergeProps({ class: "p-menuitem-text" }, $options.getPTOptions('label', i)), vue.toDisplayString($options.label(item)), 17)
360
+ ], 16, _hoisted_4)), [
360
361
  [_directive_ripple]
361
362
  ])
362
363
  : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.item), {
@@ -364,13 +365,17 @@ this.primevue.tabmenu = (function (Ripple, utils, vue) {
364
365
  item: item,
365
366
  index: i
366
367
  }, null, 8, ["item", "index"]))
367
- ], 42, _hoisted_5))
368
+ ], 16, _hoisted_3))
368
369
  : vue.createCommentVNode("", true)
369
370
  ], 64))
370
371
  }), 128)),
371
- vue.createElementVNode("li", _hoisted_8, null, 512)
372
- ], 8, _hoisted_2)
373
- ]))
372
+ vue.createElementVNode("li", vue.mergeProps({
373
+ ref: "inkbar",
374
+ role: "none",
375
+ class: "p-tabmenu-ink-bar"
376
+ }, _ctx.ptm('inkbar')), null, 16)
377
+ ], 16, _hoisted_1)
378
+ ], 16))
374
379
  }
375
380
 
376
381
  function styleInject(css, ref) {
@@ -407,4 +412,4 @@ this.primevue.tabmenu = (function (Ripple, utils, vue) {
407
412
 
408
413
  return script;
409
414
 
410
- })(primevue.ripple, primevue.utils, Vue);
415
+ })(primevue.basecomponent, primevue.ripple, primevue.utils, Vue);
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.tabmenu=function(e,t,n){"use strict";function a(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l={name:"TabMenu",emits:["update:activeIndex","tab-change"],props:{model:{type:Array,default:null},exact:{type:Boolean,default:!0},activeIndex:{type:Number,default:0},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},timeout:null,data(){return{d_activeIndex:this.activeIndex}},watch:{$route(){this.timeout=setTimeout((()=>this.updateInkBar()),50)},activeIndex(e){this.d_activeIndex=e}},mounted(){this.updateInkBar()},updated(){this.updateInkBar()},beforeUnmount(){clearTimeout(this.timeout)},methods:{onItemClick(e,t,n,a){this.disabled(t)?e.preventDefault():(t.command&&t.command({originalEvent:e,item:t}),t.to&&a&&a(e),n!==this.d_activeIndex&&(this.d_activeIndex=n,this.$emit("update:activeIndex",this.d_activeIndex)),this.$emit("tab-change",{originalEvent:e,index:n}))},onKeydownItem(e,t,n){let a=n,l={};const i=this.$refs.tabLink;switch(e.code){case"ArrowRight":l=this.findNextItem(this.$refs.tab,a),a=l.i;break;case"ArrowLeft":l=this.findPrevItem(this.$refs.tab,a),a=l.i;break;case"End":l=this.findPrevItem(this.$refs.tab,this.model.length),a=l.i,e.preventDefault();break;case"Home":l=this.findNextItem(this.$refs.tab,-1),a=l.i,e.preventDefault();break;case"Space":case"Enter":e.currentTarget&&e.currentTarget.click(),e.preventDefault();break;case"Tab":this.setDefaultTabIndexes(i)}i[a]&&i[n]&&(i[n].tabIndex="-1",i[a].tabIndex="0",i[a].focus())},findNextItem(e,n){let a=n+1;if(a>=e.length)return{nextItem:e[e.length],i:e.length};let l=e[a];return l?t.DomHandler.hasClass(l,"p-disabled")?this.findNextItem(e,a):{nextItem:l,i:a}:null},findPrevItem(e,n){let a=n-1;if(a<0)return{nextItem:e[0],i:0};let l=e[a];return l?t.DomHandler.hasClass(l,"p-disabled")?this.findPrevItem(e,a):{prevItem:l,i:a}:null},getItemClass(e,t){return["p-tabmenuitem",e.class,{"p-highlight":this.d_activeIndex===t,"p-disabled":this.disabled(e)}]},getRouteItemClass(e,t,n){return["p-tabmenuitem",e.class,{"p-highlight":this.exact?n:t,"p-disabled":this.disabled(e)}]},getItemIcon:e=>["p-menuitem-icon",e.icon],visible:e=>"function"==typeof e.visible?e.visible():!1!==e.visible,disabled:e=>"function"==typeof e.disabled?e.disabled():e.disabled,label:e=>"function"==typeof e.label?e.label():e.label,setDefaultTabIndexes(e){setTimeout((()=>{e.forEach((e=>{e.tabIndex=t.DomHandler.hasClass(e.parentElement,"p-highlight")?"0":"-1"}))}),300)},setTabIndex(e){return this.d_activeIndex===e?"0":"-1"},updateInkBar(){let e=this.$refs.nav.children,n=!1;for(let a=0;a<e.length;a++){let l=e[a];t.DomHandler.hasClass(l,"p-highlight")&&(this.$refs.inkbar.style.width=t.DomHandler.getWidth(l)+"px",this.$refs.inkbar.style.left=t.DomHandler.getOffset(l).left-t.DomHandler.getOffset(this.$refs.nav).left+"px",n=!0)}n||(this.$refs.inkbar.style.width="0px",this.$refs.inkbar.style.left="0px")}},directives:{ripple:a(e).default}};const i={class:"p-tabmenu p-component"},s=["aria-labelledby","aria-label"],o=["href","aria-label","aria-disabled","tabindex","onClick","onKeydown"],r={class:"p-menuitem-text"},d=["onClick","onKeydown"],c=["href","target","aria-label","aria-disabled","tabindex"],m={class:"p-menuitem-text"},u={ref:"inkbar",role:"none",class:"p-tabmenu-ink-bar"};return function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],l=document.createElement("style");l.type="text/css","top"===n&&a.firstChild?a.insertBefore(l,a.firstChild):a.appendChild(l),l.styleSheet?l.styleSheet.cssText=e:l.appendChild(document.createTextNode(e))}}("\n.p-tabmenu {\n overflow-x: auto;\n}\n.p-tabmenu-nav {\n display: flex;\n margin: 0;\n padding: 0;\n list-style-type: none;\n flex-wrap: nowrap;\n}\n.p-tabmenu-nav a {\n cursor: pointer;\n user-select: none;\n display: flex;\n align-items: center;\n position: relative;\n text-decoration: none;\n text-decoration: none;\n overflow: hidden;\n}\n.p-tabmenu-nav a:focus {\n z-index: 1;\n}\n.p-tabmenu-nav .p-menuitem-text {\n line-height: 1;\n}\n.p-tabmenu-ink-bar {\n display: none;\n z-index: 1;\n}\n.p-tabmenu::-webkit-scrollbar {\n display: none;\n}\n"),l.render=function(e,t,a,l,p,b){const f=n.resolveComponent("router-link"),h=n.resolveDirective("ripple");return n.openBlock(),n.createElementBlock("div",i,[n.createElementVNode("ul",{ref:"nav",class:"p-tabmenu-nav p-reset",role:"menubar","aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel},[(n.openBlock(!0),n.createElementBlock(n.Fragment,null,n.renderList(a.model,((t,a)=>(n.openBlock(),n.createElementBlock(n.Fragment,{key:b.label(t)+"_"+a.toString()},[t.to&&!b.disabled(t)?(n.openBlock(),n.createBlock(f,{key:0,to:t.to,custom:""},{default:n.withCtx((({navigate:l,href:i,isActive:s,isExactActive:d})=>[b.visible(t)?(n.openBlock(),n.createElementBlock("li",{key:0,ref_for:!0,ref:"tab",class:n.normalizeClass(b.getRouteItemClass(t,s,d)),style:n.normalizeStyle(t.style),role:"presentation"},[e.$slots.item?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.$slots.item),{key:1,item:t,index:a},null,8,["item","index"])):n.withDirectives((n.openBlock(),n.createElementBlock("a",{key:0,ref_for:!0,ref:"tabLink",role:"menuitem",href:i,class:"p-menuitem-link","aria-label":b.label(t),"aria-disabled":b.disabled(t),tabindex:d?"0":"-1",onClick:e=>b.onItemClick(e,t,a,l),onKeydown:e=>b.onKeydownItem(e,t,a,l)},[e.$slots.itemicon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.$slots.itemicon),{key:0,item:t,class:n.normalizeClass(b.getItemIcon(t))},null,8,["item","class"])):t.icon?(n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass(b.getItemIcon(t))},null,2)):n.createCommentVNode("",!0),n.createElementVNode("span",r,n.toDisplayString(b.label(t)),1)],40,o)),[[h]])],6)):n.createCommentVNode("",!0)])),_:2},1032,["to"])):b.visible(t)?(n.openBlock(),n.createElementBlock("li",{key:1,ref_for:!0,ref:"tab",class:n.normalizeClass(b.getItemClass(t,a)),role:"presentation",onClick:e=>b.onItemClick(e,t,a),onKeydown:e=>b.onKeydownItem(e,t,a)},[e.$slots.item?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.$slots.item),{key:1,item:t,index:a},null,8,["item","index"])):n.withDirectives((n.openBlock(),n.createElementBlock("a",{key:0,ref_for:!0,ref:"tabLink",role:"menuitem",href:t.url,class:"p-menuitem-link",target:t.target,"aria-label":b.label(t),"aria-disabled":b.disabled(t),tabindex:b.setTabIndex(a)},[e.$slots.itemicon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.$slots.itemicon),{key:0,item:t,class:n.normalizeClass(b.getItemIcon(t))},null,8,["item","class"])):t.icon?(n.openBlock(),n.createElementBlock("span",{key:1,class:n.normalizeClass(b.getItemIcon(t))},null,2)):n.createCommentVNode("",!0),n.createElementVNode("span",m,n.toDisplayString(b.label(t)),1)],8,c)),[[h]])],42,d)):n.createCommentVNode("",!0)],64)))),128)),n.createElementVNode("li",u,null,512)],8,s)])},l}(primevue.ripple,primevue.utils,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.tabmenu=function(e,t,n,a){"use strict";function i(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var l=i(e),o=i(t),s={name:"TabMenu",extends:l.default,emits:["update:activeIndex","tab-change"],props:{model:{type:Array,default:null},exact:{type:Boolean,default:!0},activeIndex:{type:Number,default:0},"aria-labelledby":{type:String,default:null},"aria-label":{type:String,default:null}},timeout:null,data(){return{d_activeIndex:this.activeIndex}},watch:{$route(){this.timeout=setTimeout((()=>this.updateInkBar()),50)},activeIndex(e){this.d_activeIndex=e}},mounted(){this.updateInkBar()},updated(){this.updateInkBar()},beforeUnmount(){clearTimeout(this.timeout)},methods:{getPTOptions(e,t){return this.ptm(e,{context:{order:t}})},onItemClick(e,t,n,a){this.disabled(t)?e.preventDefault():(t.command&&t.command({originalEvent:e,item:t}),t.to&&a&&a(e),n!==this.d_activeIndex&&(this.d_activeIndex=n,this.$emit("update:activeIndex",this.d_activeIndex)),this.$emit("tab-change",{originalEvent:e,index:n}))},onKeydownItem(e,t,n){let a=n,i={};const l=this.$refs.tabLink;switch(e.code){case"ArrowRight":i=this.findNextItem(this.$refs.tab,a),a=i.i;break;case"ArrowLeft":i=this.findPrevItem(this.$refs.tab,a),a=i.i;break;case"End":i=this.findPrevItem(this.$refs.tab,this.model.length),a=i.i,e.preventDefault();break;case"Home":i=this.findNextItem(this.$refs.tab,-1),a=i.i,e.preventDefault();break;case"Space":case"Enter":e.currentTarget&&e.currentTarget.click(),e.preventDefault();break;case"Tab":this.setDefaultTabIndexes(l)}l[a]&&l[n]&&(l[n].tabIndex="-1",l[a].tabIndex="0",l[a].focus())},findNextItem(e,t){let a=t+1;if(a>=e.length)return{nextItem:e[e.length],i:e.length};let i=e[a];return i?n.DomHandler.hasClass(i,"p-disabled")?this.findNextItem(e,a):{nextItem:i,i:a}:null},findPrevItem(e,t){let a=t-1;if(a<0)return{nextItem:e[0],i:0};let i=e[a];return i?n.DomHandler.hasClass(i,"p-disabled")?this.findPrevItem(e,a):{prevItem:i,i:a}:null},getItemClass(e,t){return["p-tabmenuitem",e.class,{"p-highlight":this.d_activeIndex===t,"p-disabled":this.disabled(e)}]},getRouteItemClass(e,t,n){return["p-tabmenuitem",e.class,{"p-highlight":this.exact?n:t,"p-disabled":this.disabled(e)}]},getItemIcon:e=>["p-menuitem-icon",e.icon],visible:e=>"function"==typeof e.visible?e.visible():!1!==e.visible,disabled:e=>"function"==typeof e.disabled?e.disabled():e.disabled,label:e=>"function"==typeof e.label?e.label():e.label,setDefaultTabIndexes(e){setTimeout((()=>{e.forEach((e=>{e.tabIndex=n.DomHandler.hasClass(e.parentElement,"p-highlight")?"0":"-1"}))}),300)},setTabIndex(e){return this.d_activeIndex===e?"0":"-1"},updateInkBar(){let e=this.$refs.nav.children,t=!1;for(let a=0;a<e.length;a++){let i=e[a];n.DomHandler.hasClass(i,"p-highlight")&&(this.$refs.inkbar.style.width=n.DomHandler.getWidth(i)+"px",this.$refs.inkbar.style.left=n.DomHandler.getOffset(i).left-n.DomHandler.getOffset(this.$refs.nav).left+"px",t=!0)}t||(this.$refs.inkbar.style.width="0px",this.$refs.inkbar.style.left="0px")}},directives:{ripple:o.default}};const r=["aria-labelledby","aria-label"],m=["href","aria-label","aria-disabled","tabindex","onClick","onKeydown"],d=["onClick","onKeydown"],c=["href","target","aria-label","aria-disabled","tabindex"];return function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var a=document.head||document.getElementsByTagName("head")[0],i=document.createElement("style");i.type="text/css","top"===n&&a.firstChild?a.insertBefore(i,a.firstChild):a.appendChild(i),i.styleSheet?i.styleSheet.cssText=e:i.appendChild(document.createTextNode(e))}}("\n.p-tabmenu {\n overflow-x: auto;\n}\n.p-tabmenu-nav {\n display: flex;\n margin: 0;\n padding: 0;\n list-style-type: none;\n flex-wrap: nowrap;\n}\n.p-tabmenu-nav a {\n cursor: pointer;\n user-select: none;\n display: flex;\n align-items: center;\n position: relative;\n text-decoration: none;\n text-decoration: none;\n overflow: hidden;\n}\n.p-tabmenu-nav a:focus {\n z-index: 1;\n}\n.p-tabmenu-nav .p-menuitem-text {\n line-height: 1;\n}\n.p-tabmenu-ink-bar {\n display: none;\n z-index: 1;\n}\n.p-tabmenu::-webkit-scrollbar {\n display: none;\n}\n"),s.render=function(e,t,n,i,l,o){const s=a.resolveComponent("router-link"),p=a.resolveDirective("ripple");return a.openBlock(),a.createElementBlock("div",a.mergeProps({class:"p-tabmenu p-component"},e.ptm("root")),[a.createElementVNode("ul",a.mergeProps({ref:"nav",class:"p-tabmenu-nav p-reset",role:"menubar","aria-labelledby":e.ariaLabelledby,"aria-label":e.ariaLabel},e.ptm("menu")),[(a.openBlock(!0),a.createElementBlock(a.Fragment,null,a.renderList(n.model,((t,n)=>(a.openBlock(),a.createElementBlock(a.Fragment,{key:o.label(t)+"_"+n.toString()},[t.to&&!o.disabled(t)?(a.openBlock(),a.createBlock(s,{key:0,to:t.to,custom:""},{default:a.withCtx((({navigate:i,href:l,isActive:s,isExactActive:r})=>[o.visible(t)?(a.openBlock(),a.createElementBlock("li",a.mergeProps({key:0,ref_for:!0,ref:"tab",class:o.getRouteItemClass(t,s,r),style:t.style,role:"presentation"},o.getPTOptions("menuitem",n)),[e.$slots.item?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.$slots.item),{key:1,item:t,index:n},null,8,["item","index"])):a.withDirectives((a.openBlock(),a.createElementBlock("a",a.mergeProps({key:0,ref_for:!0,ref:"tabLink",role:"menuitem",href:l,class:"p-menuitem-link","aria-label":o.label(t),"aria-disabled":o.disabled(t),tabindex:r?"0":"-1",onClick:e=>o.onItemClick(e,t,n,i),onKeydown:e=>o.onKeydownItem(e,t,n,i)},o.getPTOptions("action",n)),[e.$slots.itemicon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.$slots.itemicon),{key:0,item:t,class:a.normalizeClass(o.getItemIcon(t))},null,8,["item","class"])):t.icon?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:1,class:o.getItemIcon(t)},o.getPTOptions("icon",n)),null,16)):a.createCommentVNode("",!0),a.createElementVNode("span",a.mergeProps({class:"p-menuitem-text"},o.getPTOptions("label",n)),a.toDisplayString(o.label(t)),17)],16,m)),[[p]])],16)):a.createCommentVNode("",!0)])),_:2},1032,["to"])):o.visible(t)?(a.openBlock(),a.createElementBlock("li",a.mergeProps({key:1,ref_for:!0,ref:"tab",class:o.getItemClass(t,n),role:"presentation",onClick:e=>o.onItemClick(e,t,n),onKeydown:e=>o.onKeydownItem(e,t,n)},o.getPTOptions("menuitem",n)),[e.$slots.item?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.$slots.item),{key:1,item:t,index:n},null,8,["item","index"])):a.withDirectives((a.openBlock(),a.createElementBlock("a",a.mergeProps({key:0,ref_for:!0,ref:"tabLink",role:"menuitem",href:t.url,class:"p-menuitem-link",target:t.target,"aria-label":o.label(t),"aria-disabled":o.disabled(t),tabindex:o.setTabIndex(n)},o.getPTOptions("action",n)),[e.$slots.itemicon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.$slots.itemicon),{key:0,item:t,class:a.normalizeClass(o.getItemIcon(t))},null,8,["item","class"])):t.icon?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:1,class:o.getItemIcon(t)},o.getPTOptions("icon",n)),null,16)):a.createCommentVNode("",!0),a.createElementVNode("span",a.mergeProps({class:"p-menuitem-text"},o.getPTOptions("label",n)),a.toDisplayString(o.label(t)),17)],16,c)),[[p]])],16,d)):a.createCommentVNode("",!0)],64)))),128)),a.createElementVNode("li",a.mergeProps({ref:"inkbar",role:"none",class:"p-tabmenu-ink-bar"},e.ptm("inkbar")),null,16)],16,r)],16)},s}(primevue.basecomponent,primevue.ripple,primevue.utils,Vue);
package/tag/Tag.d.ts CHANGED
@@ -10,6 +10,41 @@
10
10
  import { VNode } from 'vue';
11
11
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
12
12
 
13
+ export declare type TagPassThroughOptionType = TagPassThroughAttributes | ((options: TagPassThroughMethodOptions) => TagPassThroughAttributes) | null | undefined;
14
+
15
+ /**
16
+ * Custom passthrough(pt) option method.
17
+ */
18
+ export interface TagPassThroughMethodOptions {
19
+ props: TagProps;
20
+ }
21
+
22
+ /**
23
+ * Custom passthrough(pt) options.
24
+ * @see {@link TagProps.pt}
25
+ */
26
+ export interface TagPassThroughOptions {
27
+ /**
28
+ * Uses to pass attributes to the root's DOM element.
29
+ */
30
+ root?: TagPassThroughOptionType;
31
+ /**
32
+ * Uses to pass attributes to the icon's DOM element.
33
+ */
34
+ icon?: TagPassThroughOptionType;
35
+ /**
36
+ * Uses to pass attributes to the value's DOM element.
37
+ */
38
+ value?: TagPassThroughOptionType;
39
+ }
40
+
41
+ /**
42
+ * Custom passthrough attributes for each DOM elements
43
+ */
44
+ export interface TagPassThroughAttributes {
45
+ [key: string]: any;
46
+ }
47
+
13
48
  /**
14
49
  * Defines valid properties in Tag component.
15
50
  */
@@ -32,6 +67,11 @@ export interface TagProps {
32
67
  * @deprecated since v3.27.0. Use 'icon' slot.
33
68
  */
34
69
  icon?: string | undefined;
70
+ /**
71
+ * Uses to pass attributes to DOM elements inside the component.
72
+ * @type {TagPassThroughOptions}
73
+ */
74
+ pt?: TagPassThroughOptions;
35
75
  }
36
76
 
37
77
  /**
package/tag/Tag.vue CHANGED
@@ -1,16 +1,19 @@
1
1
  <template>
2
- <span :class="containerClass">
3
- <component v-if="$slots.icon" :is="$slots.icon" class="p-tag-icon" />
4
- <span v-else-if="icon" :class="iconClass"></span>
2
+ <span :class="containerClass" v-bind="ptm('root')">
3
+ <component v-if="$slots.icon" :is="$slots.icon" class="p-tag-icon" v-bind="ptm('icon')" />
4
+ <span v-else-if="icon" :class="iconClass" v-bind="ptm('icon')"></span>
5
5
  <slot>
6
- <span class="p-tag-value">{{ value }}</span>
6
+ <span class="p-tag-value" v-bind="ptm('value')">{{ value }}</span>
7
7
  </slot>
8
8
  </span>
9
9
  </template>
10
10
 
11
11
  <script>
12
+ import BaseComponent from 'primevue/basecomponent';
13
+
12
14
  export default {
13
15
  name: 'Tag',
16
+ extends: BaseComponent,
14
17
  props: {
15
18
  value: null,
16
19
  severity: null,
package/tag/tag.cjs.js CHANGED
@@ -1,9 +1,15 @@
1
1
  'use strict';
2
2
 
3
+ var BaseComponent = require('primevue/basecomponent');
3
4
  var vue = require('vue');
4
5
 
6
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
7
+
8
+ var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
9
+
5
10
  var script = {
6
11
  name: 'Tag',
12
+ extends: BaseComponent__default["default"],
7
13
  props: {
8
14
  value: null,
9
15
  severity: null,
@@ -29,27 +35,23 @@ var script = {
29
35
  }
30
36
  };
31
37
 
32
- const _hoisted_1 = { class: "p-tag-value" };
33
-
34
38
  function render(_ctx, _cache, $props, $setup, $data, $options) {
35
- return (vue.openBlock(), vue.createElementBlock("span", {
36
- class: vue.normalizeClass($options.containerClass)
37
- }, [
39
+ return (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({ class: $options.containerClass }, _ctx.ptm('root')), [
38
40
  (_ctx.$slots.icon)
39
- ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.icon), {
41
+ ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.icon), vue.mergeProps({
40
42
  key: 0,
41
43
  class: "p-tag-icon"
42
- }))
44
+ }, _ctx.ptm('icon')), null, 16))
43
45
  : ($props.icon)
44
- ? (vue.openBlock(), vue.createElementBlock("span", {
46
+ ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
45
47
  key: 1,
46
- class: vue.normalizeClass($options.iconClass)
47
- }, null, 2))
48
+ class: $options.iconClass
49
+ }, _ctx.ptm('icon')), null, 16))
48
50
  : vue.createCommentVNode("", true),
49
51
  vue.renderSlot(_ctx.$slots, "default", {}, () => [
50
- vue.createElementVNode("span", _hoisted_1, vue.toDisplayString($props.value), 1)
52
+ vue.createElementVNode("span", vue.mergeProps({ class: "p-tag-value" }, _ctx.ptm('value')), vue.toDisplayString($props.value), 17)
51
53
  ])
52
- ], 2))
54
+ ], 16))
53
55
  }
54
56
 
55
57
  function styleInject(css, ref) {
@@ -1 +1 @@
1
- "use strict";var e=require("vue"),n={name:"Tag",props:{value:null,severity:null,rounded:Boolean,icon:String},computed:{containerClass(){return["p-tag p-component",{"p-tag-info":"info"===this.severity,"p-tag-success":"success"===this.severity,"p-tag-warning":"warning"===this.severity,"p-tag-danger":"danger"===this.severity,"p-tag-rounded":this.rounded}]},iconClass(){return["p-tag-icon",this.icon]}}};const t={class:"p-tag-value"};!function(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var s=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===t&&s.firstChild?s.insertBefore(a,s.firstChild):s.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}("\n.p-tag {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n.p-tag-icon,\n.p-tag-value,\n.p-tag-icon.pi {\n line-height: 1.5;\n}\n.p-tag.p-tag-rounded {\n border-radius: 10rem;\n}\n"),n.render=function(n,s,a,o,i,r){return e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(r.containerClass)},[n.$slots.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.$slots.icon),{key:0,class:"p-tag-icon"})):a.icon?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(r.iconClass)},null,2)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"default",{},(()=>[e.createElementVNode("span",t,e.toDisplayString(a.value),1)]))],2)},module.exports=n;
1
+ "use strict";var e=require("primevue/basecomponent"),t=require("vue");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o={name:"Tag",extends:n(e).default,props:{value:null,severity:null,rounded:Boolean,icon:String},computed:{containerClass(){return["p-tag p-component",{"p-tag-info":"info"===this.severity,"p-tag-success":"success"===this.severity,"p-tag-warning":"warning"===this.severity,"p-tag-danger":"danger"===this.severity,"p-tag-rounded":this.rounded}]},iconClass(){return["p-tag-icon",this.icon]}}};!function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===n&&o.firstChild?o.insertBefore(s,o.firstChild):o.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}("\n.p-tag {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n.p-tag-icon,\n.p-tag-value,\n.p-tag-icon.pi {\n line-height: 1.5;\n}\n.p-tag.p-tag-rounded {\n border-radius: 10rem;\n}\n"),o.render=function(e,n,o,s,r,a){return t.openBlock(),t.createElementBlock("span",t.mergeProps({class:a.containerClass},e.ptm("root")),[e.$slots.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.$slots.icon),t.mergeProps({key:0,class:"p-tag-icon"},e.ptm("icon")),null,16)):o.icon?(t.openBlock(),t.createElementBlock("span",t.mergeProps({key:1,class:a.iconClass},e.ptm("icon")),null,16)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default",{},(()=>[t.createElementVNode("span",t.mergeProps({class:"p-tag-value"},e.ptm("value")),t.toDisplayString(o.value),17)]))],16)},module.exports=o;
package/tag/tag.esm.js CHANGED
@@ -1,7 +1,9 @@
1
- import { openBlock, createElementBlock, normalizeClass, createBlock, resolveDynamicComponent, createCommentVNode, renderSlot, createElementVNode, toDisplayString } from 'vue';
1
+ import BaseComponent from 'primevue/basecomponent';
2
+ import { openBlock, createElementBlock, mergeProps, createBlock, resolveDynamicComponent, createCommentVNode, renderSlot, createElementVNode, toDisplayString } from 'vue';
2
3
 
3
4
  var script = {
4
5
  name: 'Tag',
6
+ extends: BaseComponent,
5
7
  props: {
6
8
  value: null,
7
9
  severity: null,
@@ -27,27 +29,23 @@ var script = {
27
29
  }
28
30
  };
29
31
 
30
- const _hoisted_1 = { class: "p-tag-value" };
31
-
32
32
  function render(_ctx, _cache, $props, $setup, $data, $options) {
33
- return (openBlock(), createElementBlock("span", {
34
- class: normalizeClass($options.containerClass)
35
- }, [
33
+ return (openBlock(), createElementBlock("span", mergeProps({ class: $options.containerClass }, _ctx.ptm('root')), [
36
34
  (_ctx.$slots.icon)
37
- ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.$slots.icon), {
35
+ ? (openBlock(), createBlock(resolveDynamicComponent(_ctx.$slots.icon), mergeProps({
38
36
  key: 0,
39
37
  class: "p-tag-icon"
40
- }))
38
+ }, _ctx.ptm('icon')), null, 16))
41
39
  : ($props.icon)
42
- ? (openBlock(), createElementBlock("span", {
40
+ ? (openBlock(), createElementBlock("span", mergeProps({
43
41
  key: 1,
44
- class: normalizeClass($options.iconClass)
45
- }, null, 2))
42
+ class: $options.iconClass
43
+ }, _ctx.ptm('icon')), null, 16))
46
44
  : createCommentVNode("", true),
47
45
  renderSlot(_ctx.$slots, "default", {}, () => [
48
- createElementVNode("span", _hoisted_1, toDisplayString($props.value), 1)
46
+ createElementVNode("span", mergeProps({ class: "p-tag-value" }, _ctx.ptm('value')), toDisplayString($props.value), 17)
49
47
  ])
50
- ], 2))
48
+ ], 16))
51
49
  }
52
50
 
53
51
  function styleInject(css, ref) {
@@ -1 +1 @@
1
- import{openBlock as e,createElementBlock as n,normalizeClass as t,createBlock as s,resolveDynamicComponent as a,createCommentVNode as i,renderSlot as o,createElementVNode as r,toDisplayString as c}from"vue";var l={name:"Tag",props:{value:null,severity:null,rounded:Boolean,icon:String},computed:{containerClass(){return["p-tag p-component",{"p-tag-info":"info"===this.severity,"p-tag-success":"success"===this.severity,"p-tag-warning":"warning"===this.severity,"p-tag-danger":"danger"===this.severity,"p-tag-rounded":this.rounded}]},iconClass(){return["p-tag-icon",this.icon]}}};const d={class:"p-tag-value"};!function(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var s=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===t&&s.firstChild?s.insertBefore(a,s.firstChild):s.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}("\n.p-tag {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n.p-tag-icon,\n.p-tag-value,\n.p-tag-icon.pi {\n line-height: 1.5;\n}\n.p-tag.p-tag-rounded {\n border-radius: 10rem;\n}\n"),l.render=function(l,p,u,g,h,f){return e(),n("span",{class:t(f.containerClass)},[l.$slots.icon?(e(),s(a(l.$slots.icon),{key:0,class:"p-tag-icon"})):u.icon?(e(),n("span",{key:1,class:t(f.iconClass)},null,2)):i("",!0),o(l.$slots,"default",{},(()=>[r("span",d,c(u.value),1)]))],2)};export{l as default};
1
+ import e from"primevue/basecomponent";import{openBlock as n,createElementBlock as t,mergeProps as s,createBlock as a,resolveDynamicComponent as i,createCommentVNode as o,renderSlot as r,createElementVNode as l,toDisplayString as p}from"vue";var c={name:"Tag",extends:e,props:{value:null,severity:null,rounded:Boolean,icon:String},computed:{containerClass(){return["p-tag p-component",{"p-tag-info":"info"===this.severity,"p-tag-success":"success"===this.severity,"p-tag-warning":"warning"===this.severity,"p-tag-danger":"danger"===this.severity,"p-tag-rounded":this.rounded}]},iconClass(){return["p-tag-icon",this.icon]}}};!function(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var s=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===t&&s.firstChild?s.insertBefore(a,s.firstChild):s.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}("\n.p-tag {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n.p-tag-icon,\n.p-tag-value,\n.p-tag-icon.pi {\n line-height: 1.5;\n}\n.p-tag.p-tag-rounded {\n border-radius: 10rem;\n}\n"),c.render=function(e,c,d,u,g,m){return n(),t("span",s({class:m.containerClass},e.ptm("root")),[e.$slots.icon?(n(),a(i(e.$slots.icon),s({key:0,class:"p-tag-icon"},e.ptm("icon")),null,16)):d.icon?(n(),t("span",s({key:1,class:m.iconClass},e.ptm("icon")),null,16)):o("",!0),r(e.$slots,"default",{},(()=>[l("span",s({class:"p-tag-value"},e.ptm("value")),p(d.value),17)]))],16)};export{c as default};
package/tag/tag.js CHANGED
@@ -1,9 +1,14 @@
1
1
  this.primevue = this.primevue || {};
2
- this.primevue.tag = (function (vue) {
2
+ this.primevue.tag = (function (BaseComponent, vue) {
3
3
  'use strict';
4
4
 
5
+ function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
6
+
7
+ var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
8
+
5
9
  var script = {
6
10
  name: 'Tag',
11
+ extends: BaseComponent__default["default"],
7
12
  props: {
8
13
  value: null,
9
14
  severity: null,
@@ -29,27 +34,23 @@ this.primevue.tag = (function (vue) {
29
34
  }
30
35
  };
31
36
 
32
- const _hoisted_1 = { class: "p-tag-value" };
33
-
34
37
  function render(_ctx, _cache, $props, $setup, $data, $options) {
35
- return (vue.openBlock(), vue.createElementBlock("span", {
36
- class: vue.normalizeClass($options.containerClass)
37
- }, [
38
+ return (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({ class: $options.containerClass }, _ctx.ptm('root')), [
38
39
  (_ctx.$slots.icon)
39
- ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.icon), {
40
+ ? (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.icon), vue.mergeProps({
40
41
  key: 0,
41
42
  class: "p-tag-icon"
42
- }))
43
+ }, _ctx.ptm('icon')), null, 16))
43
44
  : ($props.icon)
44
- ? (vue.openBlock(), vue.createElementBlock("span", {
45
+ ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
45
46
  key: 1,
46
- class: vue.normalizeClass($options.iconClass)
47
- }, null, 2))
47
+ class: $options.iconClass
48
+ }, _ctx.ptm('icon')), null, 16))
48
49
  : vue.createCommentVNode("", true),
49
50
  vue.renderSlot(_ctx.$slots, "default", {}, () => [
50
- vue.createElementVNode("span", _hoisted_1, vue.toDisplayString($props.value), 1)
51
+ vue.createElementVNode("span", vue.mergeProps({ class: "p-tag-value" }, _ctx.ptm('value')), vue.toDisplayString($props.value), 17)
51
52
  ])
52
- ], 2))
53
+ ], 16))
53
54
  }
54
55
 
55
56
  function styleInject(css, ref) {
@@ -86,4 +87,4 @@ this.primevue.tag = (function (vue) {
86
87
 
87
88
  return script;
88
89
 
89
- })(Vue);
90
+ })(primevue.basecomponent, Vue);
package/tag/tag.min.js CHANGED
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.tag=function(e){"use strict";var n={name:"Tag",props:{value:null,severity:null,rounded:Boolean,icon:String},computed:{containerClass(){return["p-tag p-component",{"p-tag-info":"info"===this.severity,"p-tag-success":"success"===this.severity,"p-tag-warning":"warning"===this.severity,"p-tag-danger":"danger"===this.severity,"p-tag-rounded":this.rounded}]},iconClass(){return["p-tag-icon",this.icon]}}};const t={class:"p-tag-value"};return function(e,n){void 0===n&&(n={});var t=n.insertAt;if(e&&"undefined"!=typeof document){var s=document.head||document.getElementsByTagName("head")[0],a=document.createElement("style");a.type="text/css","top"===t&&s.firstChild?s.insertBefore(a,s.firstChild):s.appendChild(a),a.styleSheet?a.styleSheet.cssText=e:a.appendChild(document.createTextNode(e))}}("\n.p-tag {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n.p-tag-icon,\n.p-tag-value,\n.p-tag-icon.pi {\n line-height: 1.5;\n}\n.p-tag.p-tag-rounded {\n border-radius: 10rem;\n}\n"),n.render=function(n,s,a,i,o,r){return e.openBlock(),e.createElementBlock("span",{class:e.normalizeClass(r.containerClass)},[n.$slots.icon?(e.openBlock(),e.createBlock(e.resolveDynamicComponent(n.$slots.icon),{key:0,class:"p-tag-icon"})):a.icon?(e.openBlock(),e.createElementBlock("span",{key:1,class:e.normalizeClass(r.iconClass)},null,2)):e.createCommentVNode("",!0),e.renderSlot(n.$slots,"default",{},(()=>[e.createElementVNode("span",t,e.toDisplayString(a.value),1)]))],2)},n}(Vue);
1
+ this.primevue=this.primevue||{},this.primevue.tag=function(e,t){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o={name:"Tag",extends:n(e).default,props:{value:null,severity:null,rounded:Boolean,icon:String},computed:{containerClass(){return["p-tag p-component",{"p-tag-info":"info"===this.severity,"p-tag-success":"success"===this.severity,"p-tag-warning":"warning"===this.severity,"p-tag-danger":"danger"===this.severity,"p-tag-rounded":this.rounded}]},iconClass(){return["p-tag-icon",this.icon]}}};return function(e,t){void 0===t&&(t={});var n=t.insertAt;if(e&&"undefined"!=typeof document){var o=document.head||document.getElementsByTagName("head")[0],s=document.createElement("style");s.type="text/css","top"===n&&o.firstChild?o.insertBefore(s,o.firstChild):o.appendChild(s),s.styleSheet?s.styleSheet.cssText=e:s.appendChild(document.createTextNode(e))}}("\n.p-tag {\n display: inline-flex;\n align-items: center;\n justify-content: center;\n}\n.p-tag-icon,\n.p-tag-value,\n.p-tag-icon.pi {\n line-height: 1.5;\n}\n.p-tag.p-tag-rounded {\n border-radius: 10rem;\n}\n"),o.render=function(e,n,o,s,i,r){return t.openBlock(),t.createElementBlock("span",t.mergeProps({class:r.containerClass},e.ptm("root")),[e.$slots.icon?(t.openBlock(),t.createBlock(t.resolveDynamicComponent(e.$slots.icon),t.mergeProps({key:0,class:"p-tag-icon"},e.ptm("icon")),null,16)):o.icon?(t.openBlock(),t.createElementBlock("span",t.mergeProps({key:1,class:r.iconClass},e.ptm("icon")),null,16)):t.createCommentVNode("",!0),t.renderSlot(e.$slots,"default",{},(()=>[t.createElementVNode("span",t.mergeProps({class:"p-tag-value"},e.ptm("value")),t.toDisplayString(o.value),17)]))],16)},o}(primevue.basecomponent,Vue);
@@ -9,6 +9,80 @@
9
9
  */
10
10
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
11
11
 
12
+ export declare type TerminalPassThroughOptionType = TerminalPassThroughAttributes | ((options: TerminalPassThroughMethodOptions) => TerminalPassThroughAttributes) | null | undefined;
13
+
14
+ /**
15
+ * Custom passthrough(pt) option method.
16
+ */
17
+ export interface TerminalPassThroughMethodOptions {
18
+ props: TerminalProps;
19
+ state: TerminalState;
20
+ }
21
+
22
+ /**
23
+ * Custom passthrough(pt) options.
24
+ * @see {@link TerminalProps.pt}
25
+ */
26
+ export interface TerminalPassThroughOptions {
27
+ /**
28
+ * Uses to pass attributes to the root's DOM element.
29
+ */
30
+ root?: TerminalPassThroughOptionType;
31
+ /**
32
+ * Uses to pass attributes to the welcome message's DOM element.
33
+ */
34
+ welcomeMessage?: TerminalPassThroughOptionType;
35
+ /**
36
+ * Uses to pass attributes to the content's DOM element.
37
+ */
38
+ content?: TerminalPassThroughOptionType;
39
+ /**
40
+ * Uses to pass attributes to the commands' DOM element.
41
+ */
42
+ commands?: TerminalPassThroughOptionType;
43
+ /**
44
+ * Uses to pass attributes to the prompt's DOM element.
45
+ */
46
+ prompt?: TerminalPassThroughOptionType;
47
+ /**
48
+ * Uses to pass attributes to the command's DOM element.
49
+ */
50
+ command?: TerminalPassThroughOptionType;
51
+ /**
52
+ * Uses to pass attributes to the response's DOM element.
53
+ */
54
+ response?: TerminalPassThroughOptionType;
55
+ /**
56
+ * Uses to pass attributes to the container's DOM element.
57
+ */
58
+ container?: TerminalPassThroughOptionType;
59
+ /**
60
+ * Uses to pass attributes to the command text's DOM element.
61
+ */
62
+ commandText?: TerminalPassThroughOptionType;
63
+ }
64
+
65
+ /**
66
+ * Custom passthrough attributes for each DOM elements
67
+ */
68
+ export interface TerminalPassThroughAttributes {
69
+ [key: string]: any;
70
+ }
71
+
72
+ /**
73
+ * Defines current inline state in Terminal component.
74
+ */
75
+ export interface TerminalState {
76
+ /**
77
+ * Current command text as a string.
78
+ */
79
+ commandText: string;
80
+ /**
81
+ * Current commands as an array.
82
+ */
83
+ commands: string[];
84
+ }
85
+
12
86
  /**
13
87
  * Defines valid properties in Terminal component.
14
88
  */
@@ -21,6 +95,11 @@ export interface TerminalProps {
21
95
  * Prompt text for each command.
22
96
  */
23
97
  prompt?: string | undefined;
98
+ /**
99
+ * Uses to pass attributes to DOM elements inside the component.
100
+ * @type {TerminalPassThroughOptions}
101
+ */
102
+ pt?: TerminalPassThroughOptions;
24
103
  }
25
104
 
26
105
  /**