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,5 +1,6 @@
1
1
  'use strict';
2
2
 
3
+ var BaseComponent = require('primevue/basecomponent');
3
4
  var Button = require('primevue/button');
4
5
  var ConfirmationEventBus = require('primevue/confirmationeventbus');
5
6
  var Dialog = require('primevue/dialog');
@@ -7,12 +8,14 @@ var vue = require('vue');
7
8
 
8
9
  function _interopDefaultLegacy (e) { return e && typeof e === 'object' && 'default' in e ? e : { 'default': e }; }
9
10
 
11
+ var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
10
12
  var Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
11
13
  var ConfirmationEventBus__default = /*#__PURE__*/_interopDefaultLegacy(ConfirmationEventBus);
12
14
  var Dialog__default = /*#__PURE__*/_interopDefaultLegacy(Dialog);
13
15
 
14
16
  var script = {
15
17
  name: 'ConfirmDialog',
18
+ extends: BaseComponent__default["default"],
16
19
  props: {
17
20
  group: String,
18
21
  breakpoints: {
@@ -134,8 +137,6 @@ var script = {
134
137
  }
135
138
  };
136
139
 
137
- const _hoisted_1 = { class: "p-confirm-dialog-message" };
138
-
139
140
  function render(_ctx, _cache, $props, $setup, $data, $options) {
140
141
  const _component_CDButton = vue.resolveComponent("CDButton");
141
142
  const _component_CDialog = vue.resolveComponent("CDialog");
@@ -154,7 +155,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
154
155
  position: $options.position,
155
156
  breakpoints: $props.breakpoints,
156
157
  closeOnEscape: $options.closeOnEscape,
157
- draggable: $props.draggable
158
+ draggable: $props.draggable,
159
+ pt: _ctx.pt
158
160
  }, {
159
161
  footer: vue.withCtx(() => [
160
162
  vue.createVNode(_component_CDButton, {
@@ -162,33 +164,35 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
162
164
  class: vue.normalizeClass($options.rejectClass),
163
165
  iconPos: "left",
164
166
  onClick: _cache[0] || (_cache[0] = $event => ($options.reject())),
165
- autofocus: $options.autoFocusReject
167
+ autofocus: $options.autoFocusReject,
168
+ pt: _ctx.ptm('rejectButton')
166
169
  }, {
167
170
  icon: vue.withCtx((iconProps) => [
168
171
  vue.renderSlot(_ctx.$slots, "rejecticon", {}, () => [
169
- vue.createElementVNode("span", {
170
- class: vue.normalizeClass([$options.rejectIcon, iconProps.class])
171
- }, null, 2)
172
+ vue.createElementVNode("span", vue.mergeProps({
173
+ class: [$options.rejectIcon, iconProps.class]
174
+ }, _ctx.ptm('rejectButton')['icon']), null, 16)
172
175
  ])
173
176
  ]),
174
177
  _: 3
175
- }, 8, ["label", "class", "autofocus"]),
178
+ }, 8, ["label", "class", "autofocus", "pt"]),
176
179
  vue.createVNode(_component_CDButton, {
177
180
  label: $options.acceptLabel,
178
181
  class: vue.normalizeClass($options.acceptClass),
179
182
  iconPos: "left",
180
183
  onClick: _cache[1] || (_cache[1] = $event => ($options.accept())),
181
- autofocus: $options.autoFocusAccept
184
+ autofocus: $options.autoFocusAccept,
185
+ pt: _ctx.ptm('acceptButton')
182
186
  }, {
183
187
  icon: vue.withCtx((iconProps) => [
184
188
  vue.renderSlot(_ctx.$slots, "accepticon", {}, () => [
185
- vue.createElementVNode("span", {
186
- class: vue.normalizeClass([$options.acceptIcon, iconProps.class])
187
- }, null, 2)
189
+ vue.createElementVNode("span", vue.mergeProps({
190
+ class: [$options.acceptIcon, iconProps.class]
191
+ }, _ctx.ptm('acceptButton')['icon']), null, 16)
188
192
  ])
189
193
  ]),
190
194
  _: 3
191
- }, 8, ["label", "class", "autofocus"])
195
+ }, 8, ["label", "class", "autofocus", "pt"])
192
196
  ]),
193
197
  default: vue.withCtx(() => [
194
198
  (!_ctx.$slots.message)
@@ -200,13 +204,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
200
204
  class: "p-confirm-dialog-icon"
201
205
  }))
202
206
  : ($data.confirmation.icon)
203
- ? (vue.openBlock(), vue.createElementBlock("span", {
207
+ ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
204
208
  key: 1,
205
- class: vue.normalizeClass($options.iconClass)
206
- }, null, 2))
209
+ class: $options.iconClass
210
+ }, _ctx.ptm('icon')), null, 16))
207
211
  : vue.createCommentVNode("", true)
208
212
  ]),
209
- vue.createElementVNode("span", _hoisted_1, vue.toDisplayString($options.message), 1)
213
+ vue.createElementVNode("span", vue.mergeProps({ class: "p-confirm-dialog-message" }, _ctx.ptm('message')), vue.toDisplayString($options.message), 17)
210
214
  ], 64))
211
215
  : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.message), {
212
216
  key: 1,
@@ -214,7 +218,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
214
218
  }, null, 8, ["message"]))
215
219
  ]),
216
220
  _: 3
217
- }, 8, ["visible", "header", "blockScroll", "position", "breakpoints", "closeOnEscape", "draggable", "onUpdate:visible"]))
221
+ }, 8, ["visible", "header", "blockScroll", "position", "breakpoints", "closeOnEscape", "draggable", "onUpdate:visible", "pt"]))
218
222
  }
219
223
 
220
224
  script.render = render;
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/button"),o=require("primevue/confirmationeventbus"),t=require("primevue/dialog"),i=require("vue");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=n(e),s=n(o),a={name:"ConfirmDialog",props:{group:String,breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0}},confirmListener:null,closeListener:null,data:()=>({visible:!1,confirmation:null}),mounted(){this.confirmListener=e=>{e&&e.group===this.group&&(this.confirmation=e,this.confirmation.onShow&&this.confirmation.onShow(),this.visible=!0)},this.closeListener=()=>{this.visible=!1,this.confirmation=null},s.default.on("confirm",this.confirmListener),s.default.on("close",this.closeListener)},beforeUnmount(){s.default.off("confirm",this.confirmListener),s.default.off("close",this.closeListener)},methods:{accept(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onHide(){this.confirmation.onHide&&this.confirmation.onHide(),this.visible=!1}},computed:{header(){return this.confirmation?this.confirmation.header:null},message(){return this.confirmation?this.confirmation.message:null},blockScroll(){return!this.confirmation||this.confirmation.blockScroll},position(){return this.confirmation?this.confirmation.position:null},iconClass(){return["p-confirm-dialog-icon",this.confirmation?this.confirmation.icon:null]},acceptLabel(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon(){return this.confirmation?this.confirmation.rejectIcon:null},acceptClass(){return["p-confirm-dialog-accept",this.confirmation?this.confirmation.acceptClass:null]},rejectClass(){return["p-confirm-dialog-reject",this.confirmation?this.confirmation.rejectClass||"p-button-text":null]},autoFocusAccept(){return void 0===this.confirmation.defaultFocus||"accept"===this.confirmation.defaultFocus},autoFocusReject(){return"reject"===this.confirmation.defaultFocus},closeOnEscape(){return!this.confirmation||this.confirmation.closeOnEscape}},components:{CDialog:n(t).default,CDButton:c.default}};const l={class:"p-confirm-dialog-message"};a.render=function(e,o,t,n,c,s){const a=i.resolveComponent("CDButton"),r=i.resolveComponent("CDialog");return i.openBlock(),i.createBlock(r,{visible:c.visible,"onUpdate:visible":[o[2]||(o[2]=e=>c.visible=e),s.onHide],role:"alertdialog",class:"p-confirm-dialog",modal:!0,header:s.header,blockScroll:s.blockScroll,position:s.position,breakpoints:t.breakpoints,closeOnEscape:s.closeOnEscape,draggable:t.draggable},{footer:i.withCtx((()=>[i.createVNode(a,{label:s.rejectLabel,class:i.normalizeClass(s.rejectClass),iconPos:"left",onClick:o[0]||(o[0]=e=>s.reject()),autofocus:s.autoFocusReject},{icon:i.withCtx((o=>[i.renderSlot(e.$slots,"rejecticon",{},(()=>[i.createElementVNode("span",{class:i.normalizeClass([s.rejectIcon,o.class])},null,2)]))])),_:3},8,["label","class","autofocus"]),i.createVNode(a,{label:s.acceptLabel,class:i.normalizeClass(s.acceptClass),iconPos:"left",onClick:o[1]||(o[1]=e=>s.accept()),autofocus:s.autoFocusAccept},{icon:i.withCtx((o=>[i.renderSlot(e.$slots,"accepticon",{},(()=>[i.createElementVNode("span",{class:i.normalizeClass([s.acceptIcon,o.class])},null,2)]))])),_:3},8,["label","class","autofocus"])])),default:i.withCtx((()=>[e.$slots.message?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.$slots.message),{key:1,message:c.confirmation},null,8,["message"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.renderSlot(e.$slots,"icon",{class:"p-confirm-dialog-icon"},(()=>[e.$slots.icon?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.$slots.icon),{key:0,class:"p-confirm-dialog-icon"})):c.confirmation.icon?(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass(s.iconClass)},null,2)):i.createCommentVNode("",!0)])),i.createElementVNode("span",l,i.toDisplayString(s.message),1)],64))])),_:3},8,["visible","header","blockScroll","position","breakpoints","closeOnEscape","draggable","onUpdate:visible"])},module.exports=a;
1
+ "use strict";var e=require("primevue/basecomponent"),o=require("primevue/button"),t=require("primevue/confirmationeventbus"),i=require("primevue/dialog"),n=require("vue");function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=c(e),r=c(o),a=c(t),l=c(i),m={name:"ConfirmDialog",extends:s.default,props:{group:String,breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0}},confirmListener:null,closeListener:null,data:()=>({visible:!1,confirmation:null}),mounted(){this.confirmListener=e=>{e&&e.group===this.group&&(this.confirmation=e,this.confirmation.onShow&&this.confirmation.onShow(),this.visible=!0)},this.closeListener=()=>{this.visible=!1,this.confirmation=null},a.default.on("confirm",this.confirmListener),a.default.on("close",this.closeListener)},beforeUnmount(){a.default.off("confirm",this.confirmListener),a.default.off("close",this.closeListener)},methods:{accept(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onHide(){this.confirmation.onHide&&this.confirmation.onHide(),this.visible=!1}},computed:{header(){return this.confirmation?this.confirmation.header:null},message(){return this.confirmation?this.confirmation.message:null},blockScroll(){return!this.confirmation||this.confirmation.blockScroll},position(){return this.confirmation?this.confirmation.position:null},iconClass(){return["p-confirm-dialog-icon",this.confirmation?this.confirmation.icon:null]},acceptLabel(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon(){return this.confirmation?this.confirmation.rejectIcon:null},acceptClass(){return["p-confirm-dialog-accept",this.confirmation?this.confirmation.acceptClass:null]},rejectClass(){return["p-confirm-dialog-reject",this.confirmation?this.confirmation.rejectClass||"p-button-text":null]},autoFocusAccept(){return void 0===this.confirmation.defaultFocus||"accept"===this.confirmation.defaultFocus},autoFocusReject(){return"reject"===this.confirmation.defaultFocus},closeOnEscape(){return!this.confirmation||this.confirmation.closeOnEscape}},components:{CDialog:l.default,CDButton:r.default}};m.render=function(e,o,t,i,c,s){const r=n.resolveComponent("CDButton"),a=n.resolveComponent("CDialog");return n.openBlock(),n.createBlock(a,{visible:c.visible,"onUpdate:visible":[o[2]||(o[2]=e=>c.visible=e),s.onHide],role:"alertdialog",class:"p-confirm-dialog",modal:!0,header:s.header,blockScroll:s.blockScroll,position:s.position,breakpoints:t.breakpoints,closeOnEscape:s.closeOnEscape,draggable:t.draggable,pt:e.pt},{footer:n.withCtx((()=>[n.createVNode(r,{label:s.rejectLabel,class:n.normalizeClass(s.rejectClass),iconPos:"left",onClick:o[0]||(o[0]=e=>s.reject()),autofocus:s.autoFocusReject,pt:e.ptm("rejectButton")},{icon:n.withCtx((o=>[n.renderSlot(e.$slots,"rejecticon",{},(()=>[n.createElementVNode("span",n.mergeProps({class:[s.rejectIcon,o.class]},e.ptm("rejectButton").icon),null,16)]))])),_:3},8,["label","class","autofocus","pt"]),n.createVNode(r,{label:s.acceptLabel,class:n.normalizeClass(s.acceptClass),iconPos:"left",onClick:o[1]||(o[1]=e=>s.accept()),autofocus:s.autoFocusAccept,pt:e.ptm("acceptButton")},{icon:n.withCtx((o=>[n.renderSlot(e.$slots,"accepticon",{},(()=>[n.createElementVNode("span",n.mergeProps({class:[s.acceptIcon,o.class]},e.ptm("acceptButton").icon),null,16)]))])),_:3},8,["label","class","autofocus","pt"])])),default:n.withCtx((()=>[e.$slots.message?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.$slots.message),{key:1,message:c.confirmation},null,8,["message"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.renderSlot(e.$slots,"icon",{class:"p-confirm-dialog-icon"},(()=>[e.$slots.icon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.$slots.icon),{key:0,class:"p-confirm-dialog-icon"})):c.confirmation.icon?(n.openBlock(),n.createElementBlock("span",n.mergeProps({key:1,class:s.iconClass},e.ptm("icon")),null,16)):n.createCommentVNode("",!0)])),n.createElementVNode("span",n.mergeProps({class:"p-confirm-dialog-message"},e.ptm("message")),n.toDisplayString(s.message),17)],64))])),_:3},8,["visible","header","blockScroll","position","breakpoints","closeOnEscape","draggable","onUpdate:visible","pt"])},module.exports=m;
@@ -1,10 +1,12 @@
1
+ import BaseComponent from 'primevue/basecomponent';
1
2
  import Button from 'primevue/button';
2
3
  import ConfirmationEventBus from 'primevue/confirmationeventbus';
3
4
  import Dialog from 'primevue/dialog';
4
- import { resolveComponent, openBlock, createBlock, withCtx, createVNode, normalizeClass, renderSlot, createElementVNode, createElementBlock, Fragment, resolveDynamicComponent, createCommentVNode, toDisplayString } from 'vue';
5
+ import { resolveComponent, openBlock, createBlock, withCtx, createVNode, normalizeClass, renderSlot, createElementVNode, mergeProps, createElementBlock, Fragment, resolveDynamicComponent, createCommentVNode, toDisplayString } from 'vue';
5
6
 
6
7
  var script = {
7
8
  name: 'ConfirmDialog',
9
+ extends: BaseComponent,
8
10
  props: {
9
11
  group: String,
10
12
  breakpoints: {
@@ -126,8 +128,6 @@ var script = {
126
128
  }
127
129
  };
128
130
 
129
- const _hoisted_1 = { class: "p-confirm-dialog-message" };
130
-
131
131
  function render(_ctx, _cache, $props, $setup, $data, $options) {
132
132
  const _component_CDButton = resolveComponent("CDButton");
133
133
  const _component_CDialog = resolveComponent("CDialog");
@@ -146,7 +146,8 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
146
146
  position: $options.position,
147
147
  breakpoints: $props.breakpoints,
148
148
  closeOnEscape: $options.closeOnEscape,
149
- draggable: $props.draggable
149
+ draggable: $props.draggable,
150
+ pt: _ctx.pt
150
151
  }, {
151
152
  footer: withCtx(() => [
152
153
  createVNode(_component_CDButton, {
@@ -154,33 +155,35 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
154
155
  class: normalizeClass($options.rejectClass),
155
156
  iconPos: "left",
156
157
  onClick: _cache[0] || (_cache[0] = $event => ($options.reject())),
157
- autofocus: $options.autoFocusReject
158
+ autofocus: $options.autoFocusReject,
159
+ pt: _ctx.ptm('rejectButton')
158
160
  }, {
159
161
  icon: withCtx((iconProps) => [
160
162
  renderSlot(_ctx.$slots, "rejecticon", {}, () => [
161
- createElementVNode("span", {
162
- class: normalizeClass([$options.rejectIcon, iconProps.class])
163
- }, null, 2)
163
+ createElementVNode("span", mergeProps({
164
+ class: [$options.rejectIcon, iconProps.class]
165
+ }, _ctx.ptm('rejectButton')['icon']), null, 16)
164
166
  ])
165
167
  ]),
166
168
  _: 3
167
- }, 8, ["label", "class", "autofocus"]),
169
+ }, 8, ["label", "class", "autofocus", "pt"]),
168
170
  createVNode(_component_CDButton, {
169
171
  label: $options.acceptLabel,
170
172
  class: normalizeClass($options.acceptClass),
171
173
  iconPos: "left",
172
174
  onClick: _cache[1] || (_cache[1] = $event => ($options.accept())),
173
- autofocus: $options.autoFocusAccept
175
+ autofocus: $options.autoFocusAccept,
176
+ pt: _ctx.ptm('acceptButton')
174
177
  }, {
175
178
  icon: withCtx((iconProps) => [
176
179
  renderSlot(_ctx.$slots, "accepticon", {}, () => [
177
- createElementVNode("span", {
178
- class: normalizeClass([$options.acceptIcon, iconProps.class])
179
- }, null, 2)
180
+ createElementVNode("span", mergeProps({
181
+ class: [$options.acceptIcon, iconProps.class]
182
+ }, _ctx.ptm('acceptButton')['icon']), null, 16)
180
183
  ])
181
184
  ]),
182
185
  _: 3
183
- }, 8, ["label", "class", "autofocus"])
186
+ }, 8, ["label", "class", "autofocus", "pt"])
184
187
  ]),
185
188
  default: withCtx(() => [
186
189
  (!_ctx.$slots.message)
@@ -192,13 +195,13 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
192
195
  class: "p-confirm-dialog-icon"
193
196
  }))
194
197
  : ($data.confirmation.icon)
195
- ? (openBlock(), createElementBlock("span", {
198
+ ? (openBlock(), createElementBlock("span", mergeProps({
196
199
  key: 1,
197
- class: normalizeClass($options.iconClass)
198
- }, null, 2))
200
+ class: $options.iconClass
201
+ }, _ctx.ptm('icon')), null, 16))
199
202
  : createCommentVNode("", true)
200
203
  ]),
201
- createElementVNode("span", _hoisted_1, toDisplayString($options.message), 1)
204
+ createElementVNode("span", mergeProps({ class: "p-confirm-dialog-message" }, _ctx.ptm('message')), toDisplayString($options.message), 17)
202
205
  ], 64))
203
206
  : (openBlock(), createBlock(resolveDynamicComponent(_ctx.$slots.message), {
204
207
  key: 1,
@@ -206,7 +209,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
206
209
  }, null, 8, ["message"]))
207
210
  ]),
208
211
  _: 3
209
- }, 8, ["visible", "header", "blockScroll", "position", "breakpoints", "closeOnEscape", "draggable", "onUpdate:visible"]))
212
+ }, 8, ["visible", "header", "blockScroll", "position", "breakpoints", "closeOnEscape", "draggable", "onUpdate:visible", "pt"]))
210
213
  }
211
214
 
212
215
  script.render = render;
@@ -1 +1 @@
1
- import o from"primevue/button";import i from"primevue/confirmationeventbus";import t from"primevue/dialog";import{resolveComponent as e,openBlock as n,createBlock as c,withCtx as s,createVNode as a,normalizeClass as r,renderSlot as l,createElementVNode as m,createElementBlock as f,Fragment as u,resolveDynamicComponent as p,createCommentVNode as h,toDisplayString as b}from"vue";var d={name:"ConfirmDialog",props:{group:String,breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0}},confirmListener:null,closeListener:null,data:()=>({visible:!1,confirmation:null}),mounted(){this.confirmListener=o=>{o&&o.group===this.group&&(this.confirmation=o,this.confirmation.onShow&&this.confirmation.onShow(),this.visible=!0)},this.closeListener=()=>{this.visible=!1,this.confirmation=null},i.on("confirm",this.confirmListener),i.on("close",this.closeListener)},beforeUnmount(){i.off("confirm",this.confirmListener),i.off("close",this.closeListener)},methods:{accept(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onHide(){this.confirmation.onHide&&this.confirmation.onHide(),this.visible=!1}},computed:{header(){return this.confirmation?this.confirmation.header:null},message(){return this.confirmation?this.confirmation.message:null},blockScroll(){return!this.confirmation||this.confirmation.blockScroll},position(){return this.confirmation?this.confirmation.position:null},iconClass(){return["p-confirm-dialog-icon",this.confirmation?this.confirmation.icon:null]},acceptLabel(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon(){return this.confirmation?this.confirmation.rejectIcon:null},acceptClass(){return["p-confirm-dialog-accept",this.confirmation?this.confirmation.acceptClass:null]},rejectClass(){return["p-confirm-dialog-reject",this.confirmation?this.confirmation.rejectClass||"p-button-text":null]},autoFocusAccept(){return void 0===this.confirmation.defaultFocus||"accept"===this.confirmation.defaultFocus},autoFocusReject(){return"reject"===this.confirmation.defaultFocus},closeOnEscape(){return!this.confirmation||this.confirmation.closeOnEscape}},components:{CDialog:t,CDButton:o}};const g={class:"p-confirm-dialog-message"};d.render=function(o,i,t,d,v,j){const k=e("CDButton"),C=e("CDialog");return n(),c(C,{visible:v.visible,"onUpdate:visible":[i[2]||(i[2]=o=>v.visible=o),j.onHide],role:"alertdialog",class:"p-confirm-dialog",modal:!0,header:j.header,blockScroll:j.blockScroll,position:j.position,breakpoints:t.breakpoints,closeOnEscape:j.closeOnEscape,draggable:t.draggable},{footer:s((()=>[a(k,{label:j.rejectLabel,class:r(j.rejectClass),iconPos:"left",onClick:i[0]||(i[0]=o=>j.reject()),autofocus:j.autoFocusReject},{icon:s((i=>[l(o.$slots,"rejecticon",{},(()=>[m("span",{class:r([j.rejectIcon,i.class])},null,2)]))])),_:3},8,["label","class","autofocus"]),a(k,{label:j.acceptLabel,class:r(j.acceptClass),iconPos:"left",onClick:i[1]||(i[1]=o=>j.accept()),autofocus:j.autoFocusAccept},{icon:s((i=>[l(o.$slots,"accepticon",{},(()=>[m("span",{class:r([j.acceptIcon,i.class])},null,2)]))])),_:3},8,["label","class","autofocus"])])),default:s((()=>[o.$slots.message?(n(),c(p(o.$slots.message),{key:1,message:v.confirmation},null,8,["message"])):(n(),f(u,{key:0},[l(o.$slots,"icon",{class:"p-confirm-dialog-icon"},(()=>[o.$slots.icon?(n(),c(p(o.$slots.icon),{key:0,class:"p-confirm-dialog-icon"})):v.confirmation.icon?(n(),f("span",{key:1,class:r(j.iconClass)},null,2)):h("",!0)])),m("span",g,b(j.message),1)],64))])),_:3},8,["visible","header","blockScroll","position","breakpoints","closeOnEscape","draggable","onUpdate:visible"])};export{d as default};
1
+ import o from"primevue/basecomponent";import i from"primevue/button";import t from"primevue/confirmationeventbus";import e from"primevue/dialog";import{resolveComponent as n,openBlock as c,createBlock as s,withCtx as a,createVNode as r,normalizeClass as l,renderSlot as m,createElementVNode as p,mergeProps as u,createElementBlock as f,Fragment as h,resolveDynamicComponent as b,createCommentVNode as d,toDisplayString as g}from"vue";var j={name:"ConfirmDialog",extends:o,props:{group:String,breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0}},confirmListener:null,closeListener:null,data:()=>({visible:!1,confirmation:null}),mounted(){this.confirmListener=o=>{o&&o.group===this.group&&(this.confirmation=o,this.confirmation.onShow&&this.confirmation.onShow(),this.visible=!0)},this.closeListener=()=>{this.visible=!1,this.confirmation=null},t.on("confirm",this.confirmListener),t.on("close",this.closeListener)},beforeUnmount(){t.off("confirm",this.confirmListener),t.off("close",this.closeListener)},methods:{accept(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onHide(){this.confirmation.onHide&&this.confirmation.onHide(),this.visible=!1}},computed:{header(){return this.confirmation?this.confirmation.header:null},message(){return this.confirmation?this.confirmation.message:null},blockScroll(){return!this.confirmation||this.confirmation.blockScroll},position(){return this.confirmation?this.confirmation.position:null},iconClass(){return["p-confirm-dialog-icon",this.confirmation?this.confirmation.icon:null]},acceptLabel(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon(){return this.confirmation?this.confirmation.rejectIcon:null},acceptClass(){return["p-confirm-dialog-accept",this.confirmation?this.confirmation.acceptClass:null]},rejectClass(){return["p-confirm-dialog-reject",this.confirmation?this.confirmation.rejectClass||"p-button-text":null]},autoFocusAccept(){return void 0===this.confirmation.defaultFocus||"accept"===this.confirmation.defaultFocus},autoFocusReject(){return"reject"===this.confirmation.defaultFocus},closeOnEscape(){return!this.confirmation||this.confirmation.closeOnEscape}},components:{CDialog:e,CDButton:i}};j.render=function(o,i,t,e,j,v){const k=n("CDButton"),C=n("CDialog");return c(),s(C,{visible:j.visible,"onUpdate:visible":[i[2]||(i[2]=o=>j.visible=o),v.onHide],role:"alertdialog",class:"p-confirm-dialog",modal:!0,header:v.header,blockScroll:v.blockScroll,position:v.position,breakpoints:t.breakpoints,closeOnEscape:v.closeOnEscape,draggable:t.draggable,pt:o.pt},{footer:a((()=>[r(k,{label:v.rejectLabel,class:l(v.rejectClass),iconPos:"left",onClick:i[0]||(i[0]=o=>v.reject()),autofocus:v.autoFocusReject,pt:o.ptm("rejectButton")},{icon:a((i=>[m(o.$slots,"rejecticon",{},(()=>[p("span",u({class:[v.rejectIcon,i.class]},o.ptm("rejectButton").icon),null,16)]))])),_:3},8,["label","class","autofocus","pt"]),r(k,{label:v.acceptLabel,class:l(v.acceptClass),iconPos:"left",onClick:i[1]||(i[1]=o=>v.accept()),autofocus:v.autoFocusAccept,pt:o.ptm("acceptButton")},{icon:a((i=>[m(o.$slots,"accepticon",{},(()=>[p("span",u({class:[v.acceptIcon,i.class]},o.ptm("acceptButton").icon),null,16)]))])),_:3},8,["label","class","autofocus","pt"])])),default:a((()=>[o.$slots.message?(c(),s(b(o.$slots.message),{key:1,message:j.confirmation},null,8,["message"])):(c(),f(h,{key:0},[m(o.$slots,"icon",{class:"p-confirm-dialog-icon"},(()=>[o.$slots.icon?(c(),s(b(o.$slots.icon),{key:0,class:"p-confirm-dialog-icon"})):j.confirmation.icon?(c(),f("span",u({key:1,class:v.iconClass},o.ptm("icon")),null,16)):d("",!0)])),p("span",u({class:"p-confirm-dialog-message"},o.ptm("message")),g(v.message),17)],64))])),_:3},8,["visible","header","blockScroll","position","breakpoints","closeOnEscape","draggable","onUpdate:visible","pt"])};export{j as default};
@@ -1,15 +1,17 @@
1
1
  this.primevue = this.primevue || {};
2
- this.primevue.confirmdialog = (function (Button, ConfirmationEventBus, Dialog, vue) {
2
+ this.primevue.confirmdialog = (function (BaseComponent, Button, ConfirmationEventBus, Dialog, 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 Button__default = /*#__PURE__*/_interopDefaultLegacy(Button);
8
9
  var ConfirmationEventBus__default = /*#__PURE__*/_interopDefaultLegacy(ConfirmationEventBus);
9
10
  var Dialog__default = /*#__PURE__*/_interopDefaultLegacy(Dialog);
10
11
 
11
12
  var script = {
12
13
  name: 'ConfirmDialog',
14
+ extends: BaseComponent__default["default"],
13
15
  props: {
14
16
  group: String,
15
17
  breakpoints: {
@@ -131,8 +133,6 @@ this.primevue.confirmdialog = (function (Button, ConfirmationEventBus, Dialog, v
131
133
  }
132
134
  };
133
135
 
134
- const _hoisted_1 = { class: "p-confirm-dialog-message" };
135
-
136
136
  function render(_ctx, _cache, $props, $setup, $data, $options) {
137
137
  const _component_CDButton = vue.resolveComponent("CDButton");
138
138
  const _component_CDialog = vue.resolveComponent("CDialog");
@@ -151,7 +151,8 @@ this.primevue.confirmdialog = (function (Button, ConfirmationEventBus, Dialog, v
151
151
  position: $options.position,
152
152
  breakpoints: $props.breakpoints,
153
153
  closeOnEscape: $options.closeOnEscape,
154
- draggable: $props.draggable
154
+ draggable: $props.draggable,
155
+ pt: _ctx.pt
155
156
  }, {
156
157
  footer: vue.withCtx(() => [
157
158
  vue.createVNode(_component_CDButton, {
@@ -159,33 +160,35 @@ this.primevue.confirmdialog = (function (Button, ConfirmationEventBus, Dialog, v
159
160
  class: vue.normalizeClass($options.rejectClass),
160
161
  iconPos: "left",
161
162
  onClick: _cache[0] || (_cache[0] = $event => ($options.reject())),
162
- autofocus: $options.autoFocusReject
163
+ autofocus: $options.autoFocusReject,
164
+ pt: _ctx.ptm('rejectButton')
163
165
  }, {
164
166
  icon: vue.withCtx((iconProps) => [
165
167
  vue.renderSlot(_ctx.$slots, "rejecticon", {}, () => [
166
- vue.createElementVNode("span", {
167
- class: vue.normalizeClass([$options.rejectIcon, iconProps.class])
168
- }, null, 2)
168
+ vue.createElementVNode("span", vue.mergeProps({
169
+ class: [$options.rejectIcon, iconProps.class]
170
+ }, _ctx.ptm('rejectButton')['icon']), null, 16)
169
171
  ])
170
172
  ]),
171
173
  _: 3
172
- }, 8, ["label", "class", "autofocus"]),
174
+ }, 8, ["label", "class", "autofocus", "pt"]),
173
175
  vue.createVNode(_component_CDButton, {
174
176
  label: $options.acceptLabel,
175
177
  class: vue.normalizeClass($options.acceptClass),
176
178
  iconPos: "left",
177
179
  onClick: _cache[1] || (_cache[1] = $event => ($options.accept())),
178
- autofocus: $options.autoFocusAccept
180
+ autofocus: $options.autoFocusAccept,
181
+ pt: _ctx.ptm('acceptButton')
179
182
  }, {
180
183
  icon: vue.withCtx((iconProps) => [
181
184
  vue.renderSlot(_ctx.$slots, "accepticon", {}, () => [
182
- vue.createElementVNode("span", {
183
- class: vue.normalizeClass([$options.acceptIcon, iconProps.class])
184
- }, null, 2)
185
+ vue.createElementVNode("span", vue.mergeProps({
186
+ class: [$options.acceptIcon, iconProps.class]
187
+ }, _ctx.ptm('acceptButton')['icon']), null, 16)
185
188
  ])
186
189
  ]),
187
190
  _: 3
188
- }, 8, ["label", "class", "autofocus"])
191
+ }, 8, ["label", "class", "autofocus", "pt"])
189
192
  ]),
190
193
  default: vue.withCtx(() => [
191
194
  (!_ctx.$slots.message)
@@ -197,13 +200,13 @@ this.primevue.confirmdialog = (function (Button, ConfirmationEventBus, Dialog, v
197
200
  class: "p-confirm-dialog-icon"
198
201
  }))
199
202
  : ($data.confirmation.icon)
200
- ? (vue.openBlock(), vue.createElementBlock("span", {
203
+ ? (vue.openBlock(), vue.createElementBlock("span", vue.mergeProps({
201
204
  key: 1,
202
- class: vue.normalizeClass($options.iconClass)
203
- }, null, 2))
205
+ class: $options.iconClass
206
+ }, _ctx.ptm('icon')), null, 16))
204
207
  : vue.createCommentVNode("", true)
205
208
  ]),
206
- vue.createElementVNode("span", _hoisted_1, vue.toDisplayString($options.message), 1)
209
+ vue.createElementVNode("span", vue.mergeProps({ class: "p-confirm-dialog-message" }, _ctx.ptm('message')), vue.toDisplayString($options.message), 17)
207
210
  ], 64))
208
211
  : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.message), {
209
212
  key: 1,
@@ -211,11 +214,11 @@ this.primevue.confirmdialog = (function (Button, ConfirmationEventBus, Dialog, v
211
214
  }, null, 8, ["message"]))
212
215
  ]),
213
216
  _: 3
214
- }, 8, ["visible", "header", "blockScroll", "position", "breakpoints", "closeOnEscape", "draggable", "onUpdate:visible"]))
217
+ }, 8, ["visible", "header", "blockScroll", "position", "breakpoints", "closeOnEscape", "draggable", "onUpdate:visible", "pt"]))
215
218
  }
216
219
 
217
220
  script.render = render;
218
221
 
219
222
  return script;
220
223
 
221
- })(primevue.button, primevue.confirmationeventbus, primevue.dialog, Vue);
224
+ })(primevue.basecomponent, primevue.button, primevue.confirmationeventbus, primevue.dialog, Vue);
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.confirmdialog=function(e,o,t,i){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=n(e),s=n(o),a={name:"ConfirmDialog",props:{group:String,breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0}},confirmListener:null,closeListener:null,data:()=>({visible:!1,confirmation:null}),mounted(){this.confirmListener=e=>{e&&e.group===this.group&&(this.confirmation=e,this.confirmation.onShow&&this.confirmation.onShow(),this.visible=!0)},this.closeListener=()=>{this.visible=!1,this.confirmation=null},s.default.on("confirm",this.confirmListener),s.default.on("close",this.closeListener)},beforeUnmount(){s.default.off("confirm",this.confirmListener),s.default.off("close",this.closeListener)},methods:{accept(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onHide(){this.confirmation.onHide&&this.confirmation.onHide(),this.visible=!1}},computed:{header(){return this.confirmation?this.confirmation.header:null},message(){return this.confirmation?this.confirmation.message:null},blockScroll(){return!this.confirmation||this.confirmation.blockScroll},position(){return this.confirmation?this.confirmation.position:null},iconClass(){return["p-confirm-dialog-icon",this.confirmation?this.confirmation.icon:null]},acceptLabel(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon(){return this.confirmation?this.confirmation.rejectIcon:null},acceptClass(){return["p-confirm-dialog-accept",this.confirmation?this.confirmation.acceptClass:null]},rejectClass(){return["p-confirm-dialog-reject",this.confirmation?this.confirmation.rejectClass||"p-button-text":null]},autoFocusAccept(){return void 0===this.confirmation.defaultFocus||"accept"===this.confirmation.defaultFocus},autoFocusReject(){return"reject"===this.confirmation.defaultFocus},closeOnEscape(){return!this.confirmation||this.confirmation.closeOnEscape}},components:{CDialog:n(t).default,CDButton:c.default}};const l={class:"p-confirm-dialog-message"};return a.render=function(e,o,t,n,c,s){const a=i.resolveComponent("CDButton"),r=i.resolveComponent("CDialog");return i.openBlock(),i.createBlock(r,{visible:c.visible,"onUpdate:visible":[o[2]||(o[2]=e=>c.visible=e),s.onHide],role:"alertdialog",class:"p-confirm-dialog",modal:!0,header:s.header,blockScroll:s.blockScroll,position:s.position,breakpoints:t.breakpoints,closeOnEscape:s.closeOnEscape,draggable:t.draggable},{footer:i.withCtx((()=>[i.createVNode(a,{label:s.rejectLabel,class:i.normalizeClass(s.rejectClass),iconPos:"left",onClick:o[0]||(o[0]=e=>s.reject()),autofocus:s.autoFocusReject},{icon:i.withCtx((o=>[i.renderSlot(e.$slots,"rejecticon",{},(()=>[i.createElementVNode("span",{class:i.normalizeClass([s.rejectIcon,o.class])},null,2)]))])),_:3},8,["label","class","autofocus"]),i.createVNode(a,{label:s.acceptLabel,class:i.normalizeClass(s.acceptClass),iconPos:"left",onClick:o[1]||(o[1]=e=>s.accept()),autofocus:s.autoFocusAccept},{icon:i.withCtx((o=>[i.renderSlot(e.$slots,"accepticon",{},(()=>[i.createElementVNode("span",{class:i.normalizeClass([s.acceptIcon,o.class])},null,2)]))])),_:3},8,["label","class","autofocus"])])),default:i.withCtx((()=>[e.$slots.message?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.$slots.message),{key:1,message:c.confirmation},null,8,["message"])):(i.openBlock(),i.createElementBlock(i.Fragment,{key:0},[i.renderSlot(e.$slots,"icon",{class:"p-confirm-dialog-icon"},(()=>[e.$slots.icon?(i.openBlock(),i.createBlock(i.resolveDynamicComponent(e.$slots.icon),{key:0,class:"p-confirm-dialog-icon"})):c.confirmation.icon?(i.openBlock(),i.createElementBlock("span",{key:1,class:i.normalizeClass(s.iconClass)},null,2)):i.createCommentVNode("",!0)])),i.createElementVNode("span",l,i.toDisplayString(s.message),1)],64))])),_:3},8,["visible","header","blockScroll","position","breakpoints","closeOnEscape","draggable","onUpdate:visible"])},a}(primevue.button,primevue.confirmationeventbus,primevue.dialog,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.confirmdialog=function(e,o,t,i,n){"use strict";function c(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=c(e),a=c(o),r=c(t),l=c(i),m={name:"ConfirmDialog",extends:s.default,props:{group:String,breakpoints:{type:Object,default:null},draggable:{type:Boolean,default:!0}},confirmListener:null,closeListener:null,data:()=>({visible:!1,confirmation:null}),mounted(){this.confirmListener=e=>{e&&e.group===this.group&&(this.confirmation=e,this.confirmation.onShow&&this.confirmation.onShow(),this.visible=!0)},this.closeListener=()=>{this.visible=!1,this.confirmation=null},r.default.on("confirm",this.confirmListener),r.default.on("close",this.closeListener)},beforeUnmount(){r.default.off("confirm",this.confirmListener),r.default.off("close",this.closeListener)},methods:{accept(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onHide(){this.confirmation.onHide&&this.confirmation.onHide(),this.visible=!1}},computed:{header(){return this.confirmation?this.confirmation.header:null},message(){return this.confirmation?this.confirmation.message:null},blockScroll(){return!this.confirmation||this.confirmation.blockScroll},position(){return this.confirmation?this.confirmation.position:null},iconClass(){return["p-confirm-dialog-icon",this.confirmation?this.confirmation.icon:null]},acceptLabel(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon(){return this.confirmation?this.confirmation.rejectIcon:null},acceptClass(){return["p-confirm-dialog-accept",this.confirmation?this.confirmation.acceptClass:null]},rejectClass(){return["p-confirm-dialog-reject",this.confirmation?this.confirmation.rejectClass||"p-button-text":null]},autoFocusAccept(){return void 0===this.confirmation.defaultFocus||"accept"===this.confirmation.defaultFocus},autoFocusReject(){return"reject"===this.confirmation.defaultFocus},closeOnEscape(){return!this.confirmation||this.confirmation.closeOnEscape}},components:{CDialog:l.default,CDButton:a.default}};return m.render=function(e,o,t,i,c,s){const a=n.resolveComponent("CDButton"),r=n.resolveComponent("CDialog");return n.openBlock(),n.createBlock(r,{visible:c.visible,"onUpdate:visible":[o[2]||(o[2]=e=>c.visible=e),s.onHide],role:"alertdialog",class:"p-confirm-dialog",modal:!0,header:s.header,blockScroll:s.blockScroll,position:s.position,breakpoints:t.breakpoints,closeOnEscape:s.closeOnEscape,draggable:t.draggable,pt:e.pt},{footer:n.withCtx((()=>[n.createVNode(a,{label:s.rejectLabel,class:n.normalizeClass(s.rejectClass),iconPos:"left",onClick:o[0]||(o[0]=e=>s.reject()),autofocus:s.autoFocusReject,pt:e.ptm("rejectButton")},{icon:n.withCtx((o=>[n.renderSlot(e.$slots,"rejecticon",{},(()=>[n.createElementVNode("span",n.mergeProps({class:[s.rejectIcon,o.class]},e.ptm("rejectButton").icon),null,16)]))])),_:3},8,["label","class","autofocus","pt"]),n.createVNode(a,{label:s.acceptLabel,class:n.normalizeClass(s.acceptClass),iconPos:"left",onClick:o[1]||(o[1]=e=>s.accept()),autofocus:s.autoFocusAccept,pt:e.ptm("acceptButton")},{icon:n.withCtx((o=>[n.renderSlot(e.$slots,"accepticon",{},(()=>[n.createElementVNode("span",n.mergeProps({class:[s.acceptIcon,o.class]},e.ptm("acceptButton").icon),null,16)]))])),_:3},8,["label","class","autofocus","pt"])])),default:n.withCtx((()=>[e.$slots.message?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.$slots.message),{key:1,message:c.confirmation},null,8,["message"])):(n.openBlock(),n.createElementBlock(n.Fragment,{key:0},[n.renderSlot(e.$slots,"icon",{class:"p-confirm-dialog-icon"},(()=>[e.$slots.icon?(n.openBlock(),n.createBlock(n.resolveDynamicComponent(e.$slots.icon),{key:0,class:"p-confirm-dialog-icon"})):c.confirmation.icon?(n.openBlock(),n.createElementBlock("span",n.mergeProps({key:1,class:s.iconClass},e.ptm("icon")),null,16)):n.createCommentVNode("",!0)])),n.createElementVNode("span",n.mergeProps({class:"p-confirm-dialog-message"},e.ptm("message")),n.toDisplayString(s.message),17)],64))])),_:3},8,["visible","header","blockScroll","position","breakpoints","closeOnEscape","draggable","onUpdate:visible","pt"])},m}(primevue.basecomponent,primevue.button,primevue.confirmationeventbus,primevue.dialog,Vue);
@@ -8,9 +8,79 @@
8
8
  *
9
9
  */
10
10
  import { VNode } from 'vue';
11
+ import { ButtonPassThroughOptions } from '../button';
11
12
  import { ConfirmationOptions } from '../confirmationoptions';
12
13
  import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers';
13
14
 
15
+ export declare type ConfirmPopupPassThroughOptionType = ConfirmPopupPassThroughAttributes | ((options: ConfirmPopupPassThroughMethodOptions) => ConfirmPopupPassThroughAttributes) | null | undefined;
16
+
17
+ /**
18
+ * Custom passthrough(pt) option method.
19
+ */
20
+ export interface ConfirmPopupPassThroughMethodOptions {
21
+ props: ConfirmPopupProps;
22
+ state: ConfirmPopupState;
23
+ }
24
+
25
+ /**
26
+ * Custom passthrough(pt) options.
27
+ * @see {@link ConfirmPopupProps.pt}
28
+ */
29
+ export interface ConfirmPopupPassThroughOptions {
30
+ /**
31
+ * Uses to pass attributes to the root's DOM element.
32
+ */
33
+ root?: ConfirmPopupPassThroughOptionType;
34
+ /**
35
+ * Uses to pass attributes to the content's DOM element.
36
+ */
37
+ content?: ConfirmPopupPassThroughOptionType;
38
+ /**
39
+ * Uses to pass attributes to the icon's DOM element.
40
+ */
41
+ icon?: ConfirmPopupPassThroughOptionType;
42
+ /**
43
+ * Uses to pass attributes to the message's DOM element.
44
+ */
45
+ message?: ConfirmPopupPassThroughOptionType;
46
+ /**
47
+ * Uses to pass attributes to the footer's DOM element.
48
+ */
49
+ footer?: ConfirmPopupPassThroughOptionType;
50
+ /**
51
+ * Uses to pass attributes to the Button component.
52
+ * @see {@link ButtonPassThroughOptions}
53
+ */
54
+ rejectButton?: ButtonPassThroughOptions;
55
+ /**
56
+ * Uses to pass attributes to the Button component.
57
+ * @see {@link ButtonPassThroughOptions}
58
+ */
59
+ acceptButton?: ButtonPassThroughOptions;
60
+ }
61
+
62
+ /**
63
+ * Custom passthrough attributes for each DOM elements
64
+ */
65
+ export interface ConfirmPopupPassThroughAttributes {
66
+ [key: string]: any;
67
+ }
68
+
69
+ /**
70
+ * Defines current inline state in ConfirmPopup component.
71
+ */
72
+ export interface ConfirmPopupState {
73
+ /**
74
+ * Current visible state as a boolean.
75
+ * @defaultValue false
76
+ */
77
+ visible: boolean;
78
+ /**
79
+ * Current confirmation message.
80
+ */
81
+ confirmation: ConfirmationOptions;
82
+ }
83
+
14
84
  /**
15
85
  * Defines valid properties in ConfirmPopup component.
16
86
  */
@@ -19,6 +89,11 @@ export interface ConfirmPopupProps {
19
89
  * Optional key to match the key of the confirmation, useful to target a specific confirm dialog instance.
20
90
  */
21
91
  group?: string;
92
+ /**
93
+ * Uses to pass attributes to DOM elements inside the component.
94
+ * @type {ConfirmPopupPassThroughOptions}
95
+ */
96
+ pt?: ConfirmPopupPassThroughOptions;
22
97
  }
23
98
 
24
99
  /**
@@ -1,29 +1,29 @@
1
1
  <template>
2
2
  <Portal>
3
3
  <transition name="p-confirm-popup" @enter="onEnter" @after-enter="onAfterEnter" @leave="onLeave" @after-leave="onAfterLeave">
4
- <div v-if="visible" :ref="containerRef" v-focustrap role="alertdialog" :class="containerClass" :aria-modal="visible" @click="onOverlayClick" @keydown="onOverlayKeydown" v-bind="$attrs">
4
+ <div v-if="visible" :ref="containerRef" v-focustrap role="alertdialog" :class="containerClass" :aria-modal="visible" @click="onOverlayClick" @keydown="onOverlayKeydown" v-bind="{ ...$attrs, ...ptm('root') }">
5
5
  <template v-if="!$slots.message">
6
- <div class="p-confirm-popup-content">
6
+ <div class="p-confirm-popup-content" v-bind="ptm('content')">
7
7
  <slot name="icon" class="p-confirm-popup-icon">
8
8
  <component v-if="$slots.icon" :is="$slots.icon" class="p-confirm-popup-icon" />
9
- <span v-else-if="confirmation.icon" :class="iconClass" />
9
+ <span v-else-if="confirmation.icon" :class="iconClass" v-bind="ptm('icon')" />
10
10
  </slot>
11
- <span class="p-confirm-popup-message">{{ confirmation.message }}</span>
11
+ <span class="p-confirm-popup-message" v-bind="ptm('message')">{{ confirmation.message }}</span>
12
12
  </div>
13
13
  </template>
14
14
  <component v-else :is="$slots.message" :message="confirmation"></component>
15
- <div class="p-confirm-popup-footer">
16
- <CPButton :label="rejectLabel" :class="rejectClass" @click="reject()" @keydown="onRejectKeydown" :autofocus="autoFocusReject">
15
+ <div class="p-confirm-popup-footer" v-bind="ptm('footer')">
16
+ <CPButton :label="rejectLabel" :class="rejectClass" @click="reject()" @keydown="onRejectKeydown" :autofocus="autoFocusReject" :pt="ptm('rejectButton')">
17
17
  <template #icon="iconProps">
18
18
  <slot name="rejecticon">
19
- <span :class="[rejectIcon, iconProps.class]" />
19
+ <span :class="[rejectIcon, iconProps.class]" v-bind="ptm('rejectButton')['icon']" />
20
20
  </slot>
21
21
  </template>
22
22
  </CPButton>
23
- <CPButton :label="acceptLabel" :class="acceptClass" @click="accept()" @keydown="onAcceptKeydown" :autofocus="autoFocusAccept">
23
+ <CPButton :label="acceptLabel" :class="acceptClass" @click="accept()" @keydown="onAcceptKeydown" :autofocus="autoFocusAccept" :pt="ptm('acceptButton')">
24
24
  <template #icon="iconProps">
25
25
  <slot name="accepticon">
26
- <span :class="[acceptIcon, iconProps.class]" />
26
+ <span :class="[acceptIcon, iconProps.class]" v-bind="ptm('acceptButton')['icon']" />
27
27
  </slot>
28
28
  </template>
29
29
  </CPButton>
@@ -34,6 +34,7 @@
34
34
  </template>
35
35
 
36
36
  <script>
37
+ import BaseComponent from 'primevue/basecomponent';
37
38
  import Button from 'primevue/button';
38
39
  import ConfirmationEventBus from 'primevue/confirmationeventbus';
39
40
  import FocusTrap from 'primevue/focustrap';
@@ -43,6 +44,7 @@ import { ConnectedOverlayScrollHandler, DomHandler, ZIndexUtils } from 'primevue
43
44
 
44
45
  export default {
45
46
  name: 'ConfirmPopup',
47
+ extends: BaseComponent,
46
48
  inheritAttrs: false,
47
49
  props: {
48
50
  group: String