primevue 3.34.0 → 3.35.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 (664) hide show
  1. package/README.md +1 -0
  2. package/accordion/BaseAccordion.vue +17 -15
  3. package/accordion/accordion.cjs.js +1 -1
  4. package/accordion/accordion.cjs.min.js +1 -1
  5. package/accordion/accordion.esm.js +1 -1
  6. package/accordion/accordion.esm.min.js +1 -1
  7. package/accordion/accordion.js +1 -1
  8. package/accordion/accordion.min.js +1 -1
  9. package/autocomplete/AutoComplete.vue +1 -1
  10. package/autocomplete/BaseAutoComplete.vue +81 -79
  11. package/autocomplete/autocomplete.cjs.js +4 -2
  12. package/autocomplete/autocomplete.cjs.min.js +1 -1
  13. package/autocomplete/autocomplete.esm.js +4 -2
  14. package/autocomplete/autocomplete.esm.min.js +1 -1
  15. package/autocomplete/autocomplete.js +4 -2
  16. package/autocomplete/autocomplete.min.js +1 -1
  17. package/avatar/BaseAvatar.vue +30 -28
  18. package/avatar/avatar.cjs.js +1 -1
  19. package/avatar/avatar.cjs.min.js +1 -1
  20. package/avatar/avatar.esm.js +1 -1
  21. package/avatar/avatar.esm.min.js +1 -1
  22. package/avatar/avatar.js +1 -1
  23. package/avatar/avatar.min.js +1 -1
  24. package/avatargroup/BaseAvatarGroup.vue +9 -7
  25. package/avatargroup/avatargroup.cjs.js +1 -1
  26. package/avatargroup/avatargroup.cjs.min.js +1 -1
  27. package/avatargroup/avatargroup.esm.js +1 -1
  28. package/avatargroup/avatargroup.esm.min.js +1 -1
  29. package/avatargroup/avatargroup.js +1 -1
  30. package/avatargroup/avatargroup.min.js +1 -1
  31. package/badge/BaseBadge.vue +33 -31
  32. package/badge/badge.cjs.js +1 -1
  33. package/badge/badge.cjs.min.js +1 -1
  34. package/badge/badge.esm.js +1 -1
  35. package/badge/badge.esm.min.js +1 -1
  36. package/badge/badge.js +1 -1
  37. package/badge/badge.min.js +1 -1
  38. package/badgedirective/badgedirective.cjs.js +1 -1
  39. package/badgedirective/badgedirective.cjs.min.js +1 -1
  40. package/badgedirective/badgedirective.esm.js +1 -1
  41. package/badgedirective/badgedirective.esm.min.js +1 -1
  42. package/badgedirective/badgedirective.js +1 -1
  43. package/badgedirective/badgedirective.min.js +1 -1
  44. package/base/base.cjs.js +1 -1
  45. package/base/base.cjs.min.js +1 -1
  46. package/base/base.esm.js +1 -1
  47. package/base/base.esm.min.js +1 -1
  48. package/base/base.js +1 -1
  49. package/base/base.min.js +1 -1
  50. package/basecomponent/BaseComponent.vue +11 -8
  51. package/basecomponent/basecomponent.cjs.js +18 -13
  52. package/basecomponent/basecomponent.cjs.min.js +1 -1
  53. package/basecomponent/basecomponent.esm.js +18 -13
  54. package/basecomponent/basecomponent.esm.min.js +1 -1
  55. package/basecomponent/basecomponent.js +18 -13
  56. package/basecomponent/basecomponent.min.js +1 -1
  57. package/basedirective/basedirective.cjs.js +7 -6
  58. package/basedirective/basedirective.cjs.min.js +1 -1
  59. package/basedirective/basedirective.esm.js +7 -6
  60. package/basedirective/basedirective.esm.min.js +1 -1
  61. package/basedirective/basedirective.js +7 -6
  62. package/basedirective/basedirective.min.js +1 -1
  63. package/blockui/BaseBlockUI.vue +12 -10
  64. package/blockui/BlockUI.vue +2 -0
  65. package/blockui/blockui.cjs.js +3 -1
  66. package/blockui/blockui.cjs.min.js +1 -1
  67. package/blockui/blockui.esm.js +3 -1
  68. package/blockui/blockui.esm.min.js +1 -1
  69. package/blockui/blockui.js +3 -1
  70. package/blockui/blockui.min.js +1 -1
  71. package/breadcrumb/BaseBreadcrumb.vue +32 -30
  72. package/breadcrumb/Breadcrumb.vue +1 -1
  73. package/breadcrumb/breadcrumb.cjs.js +2 -2
  74. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  75. package/breadcrumb/breadcrumb.esm.js +2 -2
  76. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  77. package/breadcrumb/breadcrumb.js +2 -2
  78. package/breadcrumb/breadcrumb.min.js +1 -1
  79. package/calendar/BaseCalendar.vue +149 -146
  80. package/calendar/Calendar.d.ts +11 -5
  81. package/calendar/Calendar.vue +85 -47
  82. package/calendar/calendar.cjs.js +162 -118
  83. package/calendar/calendar.cjs.min.js +1 -1
  84. package/calendar/calendar.esm.js +162 -118
  85. package/calendar/calendar.esm.min.js +1 -1
  86. package/calendar/calendar.js +162 -118
  87. package/calendar/calendar.min.js +1 -1
  88. package/carousel/BaseCarousel.vue +70 -68
  89. package/carousel/carousel.cjs.js +1 -1
  90. package/carousel/carousel.cjs.min.js +1 -1
  91. package/carousel/carousel.esm.js +1 -1
  92. package/carousel/carousel.esm.min.js +1 -1
  93. package/carousel/carousel.js +1 -1
  94. package/carousel/carousel.min.js +1 -1
  95. package/cascadeselect/BaseCascadeSelect.vue +81 -79
  96. package/cascadeselect/cascadeselect.cjs.js +1 -1
  97. package/cascadeselect/cascadeselect.cjs.min.js +1 -1
  98. package/cascadeselect/cascadeselect.esm.js +1 -1
  99. package/cascadeselect/cascadeselect.esm.min.js +1 -1
  100. package/cascadeselect/cascadeselect.js +1 -1
  101. package/cascadeselect/cascadeselect.min.js +1 -1
  102. package/chart/BaseChart.vue +4 -2
  103. package/chart/chart.cjs.js +1 -1
  104. package/chart/chart.cjs.min.js +1 -1
  105. package/chart/chart.esm.js +1 -1
  106. package/chart/chart.esm.min.js +1 -1
  107. package/chart/chart.js +1 -1
  108. package/chart/chart.min.js +1 -1
  109. package/chip/BaseChip.vue +22 -20
  110. package/chip/chip.cjs.js +1 -1
  111. package/chip/chip.cjs.min.js +1 -1
  112. package/chip/chip.esm.js +1 -1
  113. package/chip/chip.esm.min.js +1 -1
  114. package/chip/chip.js +1 -1
  115. package/chip/chip.min.js +1 -1
  116. package/chips/BaseChips.vue +46 -44
  117. package/chips/chips.cjs.js +1 -1
  118. package/chips/chips.cjs.min.js +1 -1
  119. package/chips/chips.esm.js +1 -1
  120. package/chips/chips.esm.min.js +1 -1
  121. package/chips/chips.js +1 -1
  122. package/chips/chips.min.js +1 -1
  123. package/colorpicker/BaseColorPicker.vue +8 -6
  124. package/colorpicker/colorpicker.cjs.js +1 -1
  125. package/colorpicker/colorpicker.cjs.min.js +1 -1
  126. package/colorpicker/colorpicker.esm.js +1 -1
  127. package/colorpicker/colorpicker.esm.min.js +1 -1
  128. package/colorpicker/colorpicker.js +1 -1
  129. package/colorpicker/colorpicker.min.js +1 -1
  130. package/column/Column.d.ts +8 -0
  131. package/config/PrimeVue.d.ts +3 -0
  132. package/config/config.cjs.js +5 -0
  133. package/config/config.cjs.min.js +1 -1
  134. package/config/config.esm.js +5 -0
  135. package/config/config.esm.min.js +1 -1
  136. package/config/config.js +5 -0
  137. package/config/config.min.js +1 -1
  138. package/confirmdialog/BaseConfirmDialog.vue +2 -2
  139. package/confirmdialog/ConfirmDialog.d.ts +22 -0
  140. package/confirmdialog/ConfirmDialog.vue +15 -10
  141. package/confirmdialog/confirmdialog.cjs.js +42 -29
  142. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  143. package/confirmdialog/confirmdialog.esm.js +43 -30
  144. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  145. package/confirmdialog/confirmdialog.js +42 -29
  146. package/confirmdialog/confirmdialog.min.js +1 -1
  147. package/confirmpopup/BaseConfirmPopup.vue +72 -70
  148. package/confirmpopup/ConfirmPopup.d.ts +18 -0
  149. package/confirmpopup/ConfirmPopup.vue +45 -24
  150. package/confirmpopup/confirmpopup.cjs.js +14 -10
  151. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  152. package/confirmpopup/confirmpopup.esm.js +15 -11
  153. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  154. package/confirmpopup/confirmpopup.js +14 -10
  155. package/confirmpopup/confirmpopup.min.js +1 -1
  156. package/contextmenu/BaseContextMenu.vue +41 -39
  157. package/contextmenu/contextmenu.cjs.js +1 -1
  158. package/contextmenu/contextmenu.cjs.min.js +1 -1
  159. package/contextmenu/contextmenu.esm.js +1 -1
  160. package/contextmenu/contextmenu.esm.min.js +1 -1
  161. package/contextmenu/contextmenu.js +1 -1
  162. package/contextmenu/contextmenu.min.js +1 -1
  163. package/core/core.js +138 -76
  164. package/core/core.min.js +18 -18
  165. package/datatable/BaseDataTable.vue +235 -233
  166. package/datatable/BodyCell.vue +1 -1
  167. package/datatable/ColumnFilter.vue +1 -1
  168. package/datatable/DataTable.d.ts +48 -4
  169. package/datatable/DataTable.vue +32 -19
  170. package/datatable/TableBody.vue +1 -1
  171. package/datatable/datatable.cjs.js +74 -24
  172. package/datatable/datatable.cjs.min.js +1 -1
  173. package/datatable/datatable.esm.js +74 -24
  174. package/datatable/datatable.esm.min.js +1 -1
  175. package/datatable/datatable.js +74 -24
  176. package/datatable/datatable.min.js +1 -1
  177. package/dialog/BaseDialog.vue +136 -130
  178. package/dialog/Dialog.d.ts +20 -0
  179. package/dialog/Dialog.vue +54 -50
  180. package/dialog/dialog.cjs.js +24 -9
  181. package/dialog/dialog.cjs.min.js +1 -1
  182. package/dialog/dialog.esm.js +25 -10
  183. package/dialog/dialog.esm.min.js +1 -1
  184. package/dialog/dialog.js +24 -9
  185. package/dialog/dialog.min.js +1 -1
  186. package/divider/BaseDivider.vue +61 -59
  187. package/divider/divider.cjs.js +1 -1
  188. package/divider/divider.cjs.min.js +1 -1
  189. package/divider/divider.esm.js +1 -1
  190. package/divider/divider.esm.min.js +1 -1
  191. package/divider/divider.js +1 -1
  192. package/divider/divider.min.js +1 -1
  193. package/dock/BaseDock.vue +106 -104
  194. package/dock/dock.cjs.js +1 -1
  195. package/dock/dock.cjs.min.js +1 -1
  196. package/dock/dock.esm.js +1 -1
  197. package/dock/dock.esm.min.js +1 -1
  198. package/dock/dock.js +1 -1
  199. package/dock/dock.min.js +1 -1
  200. package/dropdown/BaseDropdown.vue +93 -91
  201. package/dropdown/dropdown.cjs.js +1 -1
  202. package/dropdown/dropdown.cjs.min.js +1 -1
  203. package/dropdown/dropdown.esm.js +1 -1
  204. package/dropdown/dropdown.esm.min.js +1 -1
  205. package/dropdown/dropdown.js +1 -1
  206. package/dropdown/dropdown.min.js +1 -1
  207. package/fieldset/BaseFieldset.vue +19 -17
  208. package/fieldset/fieldset.cjs.js +1 -1
  209. package/fieldset/fieldset.cjs.min.js +1 -1
  210. package/fieldset/fieldset.esm.js +1 -1
  211. package/fieldset/fieldset.esm.min.js +1 -1
  212. package/fieldset/fieldset.js +1 -1
  213. package/fieldset/fieldset.min.js +1 -1
  214. package/fileupload/BaseFileUpload.vue +44 -42
  215. package/fileupload/fileupload.cjs.js +1 -1
  216. package/fileupload/fileupload.cjs.min.js +1 -1
  217. package/fileupload/fileupload.esm.js +1 -1
  218. package/fileupload/fileupload.esm.min.js +1 -1
  219. package/fileupload/fileupload.js +1 -1
  220. package/fileupload/fileupload.min.js +1 -1
  221. package/galleria/BaseGalleria.vue +283 -281
  222. package/galleria/Galleria.vue +3 -0
  223. package/galleria/galleria.cjs.js +4 -1
  224. package/galleria/galleria.cjs.min.js +1 -1
  225. package/galleria/galleria.esm.js +4 -1
  226. package/galleria/galleria.esm.min.js +1 -1
  227. package/galleria/galleria.js +4 -1
  228. package/galleria/galleria.min.js +1 -1
  229. package/image/BaseImage.vue +64 -62
  230. package/image/Image.vue +4 -0
  231. package/image/image.cjs.js +5 -1
  232. package/image/image.cjs.min.js +1 -1
  233. package/image/image.esm.js +5 -1
  234. package/image/image.esm.min.js +1 -1
  235. package/image/image.js +5 -1
  236. package/image/image.min.js +1 -1
  237. package/inlinemessage/BaseInlineMessage.vue +16 -14
  238. package/inlinemessage/inlinemessage.cjs.js +1 -1
  239. package/inlinemessage/inlinemessage.cjs.min.js +1 -1
  240. package/inlinemessage/inlinemessage.esm.js +1 -1
  241. package/inlinemessage/inlinemessage.esm.min.js +1 -1
  242. package/inlinemessage/inlinemessage.js +1 -1
  243. package/inlinemessage/inlinemessage.min.js +1 -1
  244. package/inplace/BaseInplace.vue +18 -16
  245. package/inplace/Inplace.vue +1 -1
  246. package/inplace/inplace.cjs.js +4 -2
  247. package/inplace/inplace.cjs.min.js +1 -1
  248. package/inplace/inplace.esm.js +4 -2
  249. package/inplace/inplace.esm.min.js +1 -1
  250. package/inplace/inplace.js +4 -2
  251. package/inplace/inplace.min.js +1 -1
  252. package/inputnumber/BaseInputNumber.vue +101 -99
  253. package/inputnumber/InputNumber.vue +4 -4
  254. package/inputnumber/inputnumber.cjs.js +13 -5
  255. package/inputnumber/inputnumber.cjs.min.js +1 -1
  256. package/inputnumber/inputnumber.esm.js +13 -5
  257. package/inputnumber/inputnumber.esm.min.js +1 -1
  258. package/inputnumber/inputnumber.js +13 -5
  259. package/inputnumber/inputnumber.min.js +1 -1
  260. package/inputswitch/BaseInputSwitch.vue +20 -18
  261. package/inputswitch/inputswitch.cjs.js +1 -1
  262. package/inputswitch/inputswitch.cjs.min.js +1 -1
  263. package/inputswitch/inputswitch.esm.js +1 -1
  264. package/inputswitch/inputswitch.esm.min.js +1 -1
  265. package/inputswitch/inputswitch.js +1 -1
  266. package/inputswitch/inputswitch.min.js +1 -1
  267. package/knob/BaseKnob.vue +14 -12
  268. package/knob/knob.cjs.js +1 -1
  269. package/knob/knob.cjs.min.js +1 -1
  270. package/knob/knob.esm.js +1 -1
  271. package/knob/knob.esm.min.js +1 -1
  272. package/knob/knob.js +1 -1
  273. package/knob/knob.min.js +1 -1
  274. package/listbox/BaseListbox.vue +34 -32
  275. package/listbox/listbox.cjs.js +1 -1
  276. package/listbox/listbox.cjs.min.js +1 -1
  277. package/listbox/listbox.esm.js +1 -1
  278. package/listbox/listbox.esm.min.js +1 -1
  279. package/listbox/listbox.js +1 -1
  280. package/listbox/listbox.min.js +1 -1
  281. package/megamenu/BaseMegaMenu.vue +111 -109
  282. package/megamenu/megamenu.cjs.js +1 -1
  283. package/megamenu/megamenu.cjs.min.js +1 -1
  284. package/megamenu/megamenu.esm.js +1 -1
  285. package/megamenu/megamenu.esm.min.js +1 -1
  286. package/megamenu/megamenu.js +1 -1
  287. package/megamenu/megamenu.min.js +1 -1
  288. package/menu/BaseMenu.vue +19 -17
  289. package/menu/menu.cjs.js +1 -1
  290. package/menu/menu.cjs.min.js +1 -1
  291. package/menu/menu.esm.js +1 -1
  292. package/menu/menu.esm.min.js +1 -1
  293. package/menu/menu.js +1 -1
  294. package/menu/menu.min.js +1 -1
  295. package/menubar/BaseMenubar.vue +72 -70
  296. package/menubar/Menubar.vue +2 -2
  297. package/menubar/menubar.cjs.js +3 -3
  298. package/menubar/menubar.cjs.min.js +1 -1
  299. package/menubar/menubar.esm.js +3 -3
  300. package/menubar/menubar.esm.min.js +1 -1
  301. package/menubar/menubar.js +3 -3
  302. package/menubar/menubar.min.js +1 -1
  303. package/message/BaseMessage.vue +49 -47
  304. package/message/Message.d.ts +10 -0
  305. package/message/Message.vue +2 -1
  306. package/message/message.cjs.js +7 -3
  307. package/message/message.cjs.min.js +1 -1
  308. package/message/message.esm.js +8 -4
  309. package/message/message.esm.min.js +1 -1
  310. package/message/message.js +7 -3
  311. package/message/message.min.js +1 -1
  312. package/multiselect/BaseMultiSelect.vue +106 -104
  313. package/multiselect/multiselect.cjs.js +1 -1
  314. package/multiselect/multiselect.cjs.min.js +1 -1
  315. package/multiselect/multiselect.esm.js +1 -1
  316. package/multiselect/multiselect.esm.min.js +1 -1
  317. package/multiselect/multiselect.js +1 -1
  318. package/multiselect/multiselect.min.js +1 -1
  319. package/orderlist/BaseOrderList.vue +38 -36
  320. package/orderlist/OrderList.vue +4 -4
  321. package/orderlist/orderlist.cjs.js +13 -5
  322. package/orderlist/orderlist.cjs.min.js +1 -1
  323. package/orderlist/orderlist.esm.js +14 -6
  324. package/orderlist/orderlist.esm.min.js +1 -1
  325. package/orderlist/orderlist.js +13 -5
  326. package/orderlist/orderlist.min.js +1 -1
  327. package/organizationchart/BaseOrganizationChart.vue +53 -51
  328. package/organizationchart/organizationchart.cjs.js +1 -1
  329. package/organizationchart/organizationchart.cjs.min.js +1 -1
  330. package/organizationchart/organizationchart.esm.js +1 -1
  331. package/organizationchart/organizationchart.esm.min.js +1 -1
  332. package/organizationchart/organizationchart.js +1 -1
  333. package/organizationchart/organizationchart.min.js +1 -1
  334. package/overlaypanel/BaseOverlayPanel.vue +70 -68
  335. package/overlaypanel/OverlayPanel.d.ts +15 -0
  336. package/overlaypanel/OverlayPanel.vue +11 -8
  337. package/overlaypanel/overlaypanel.cjs.js +11 -3
  338. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  339. package/overlaypanel/overlaypanel.esm.js +12 -4
  340. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  341. package/overlaypanel/overlaypanel.js +11 -3
  342. package/overlaypanel/overlaypanel.min.js +1 -1
  343. package/package.json +1 -1
  344. package/paginator/BasePaginator.vue +40 -38
  345. package/paginator/JumpToPageDropdown.vue +7 -2
  346. package/paginator/Paginator.d.ts +20 -0
  347. package/paginator/Paginator.vue +7 -4
  348. package/paginator/RowsPerPageDropdown.vue +7 -2
  349. package/paginator/paginator.cjs.js +41 -12
  350. package/paginator/paginator.cjs.min.js +1 -1
  351. package/paginator/paginator.esm.js +42 -13
  352. package/paginator/paginator.esm.min.js +1 -1
  353. package/paginator/paginator.js +41 -12
  354. package/paginator/paginator.min.js +1 -1
  355. package/panel/BasePanel.vue +20 -18
  356. package/panel/panel.cjs.js +1 -1
  357. package/panel/panel.cjs.min.js +1 -1
  358. package/panel/panel.esm.js +1 -1
  359. package/panel/panel.esm.min.js +1 -1
  360. package/panel/panel.js +1 -1
  361. package/panel/panel.min.js +1 -1
  362. package/panelmenu/BasePanelMenu.vue +33 -31
  363. package/panelmenu/panelmenu.cjs.js +1 -1
  364. package/panelmenu/panelmenu.cjs.min.js +1 -1
  365. package/panelmenu/panelmenu.esm.js +1 -1
  366. package/panelmenu/panelmenu.esm.min.js +1 -1
  367. package/panelmenu/panelmenu.js +1 -1
  368. package/panelmenu/panelmenu.min.js +1 -1
  369. package/passthrough/index.cjs.js +2 -9
  370. package/passthrough/index.cjs.min.js +1 -1
  371. package/passthrough/index.esm.js +2 -9
  372. package/passthrough/index.esm.min.js +1 -1
  373. package/passthrough/index.js +2 -9
  374. package/passthrough/index.min.js +1 -1
  375. package/passthrough/tailwind/index.cjs.js +5 -5
  376. package/passthrough/tailwind/index.cjs.min.js +1 -1
  377. package/passthrough/tailwind/index.esm.js +5 -5
  378. package/passthrough/tailwind/index.esm.min.js +1 -1
  379. package/passthrough/tailwind/index.js +5 -5
  380. package/passthrough/tailwind/index.min.js +1 -1
  381. package/password/BasePassword.vue +27 -25
  382. package/password/password.cjs.js +1 -1
  383. package/password/password.cjs.min.js +1 -1
  384. package/password/password.esm.js +1 -1
  385. package/password/password.esm.min.js +1 -1
  386. package/password/password.js +1 -1
  387. package/password/password.min.js +1 -1
  388. package/picklist/BasePickList.vue +34 -32
  389. package/picklist/PickList.vue +12 -12
  390. package/picklist/picklist.cjs.js +37 -13
  391. package/picklist/picklist.cjs.min.js +1 -1
  392. package/picklist/picklist.esm.js +38 -14
  393. package/picklist/picklist.esm.min.js +1 -1
  394. package/picklist/picklist.js +37 -13
  395. package/picklist/picklist.min.js +1 -1
  396. package/progressbar/BaseProgressBar.vue +99 -97
  397. package/progressbar/progressbar.cjs.js +1 -1
  398. package/progressbar/progressbar.cjs.min.js +1 -1
  399. package/progressbar/progressbar.esm.js +1 -1
  400. package/progressbar/progressbar.esm.min.js +1 -1
  401. package/progressbar/progressbar.js +1 -1
  402. package/progressbar/progressbar.min.js +1 -1
  403. package/progressspinner/BaseProgressSpinner.vue +26 -24
  404. package/progressspinner/progressspinner.cjs.js +1 -1
  405. package/progressspinner/progressspinner.cjs.min.js +1 -1
  406. package/progressspinner/progressspinner.esm.js +1 -1
  407. package/progressspinner/progressspinner.esm.min.js +1 -1
  408. package/progressspinner/progressspinner.js +1 -1
  409. package/progressspinner/progressspinner.min.js +1 -1
  410. package/rating/BaseRating.vue +19 -17
  411. package/rating/Rating.vue +4 -1
  412. package/rating/rating.cjs.js +7 -5
  413. package/rating/rating.cjs.min.js +1 -1
  414. package/rating/rating.esm.js +7 -5
  415. package/rating/rating.esm.min.js +1 -1
  416. package/rating/rating.js +7 -5
  417. package/rating/rating.min.js +1 -1
  418. package/resources/themes/arya-blue/theme.css +5601 -5585
  419. package/resources/themes/arya-green/theme.css +5601 -5585
  420. package/resources/themes/arya-orange/theme.css +5601 -5585
  421. package/resources/themes/arya-purple/theme.css +5601 -5585
  422. package/resources/themes/bootstrap4-dark-blue/theme.css +5538 -5523
  423. package/resources/themes/bootstrap4-dark-purple/theme.css +5538 -5523
  424. package/resources/themes/bootstrap4-light-blue/theme.css +5607 -5592
  425. package/resources/themes/bootstrap4-light-purple/theme.css +5607 -5592
  426. package/resources/themes/fluent-light/theme.css +5734 -5718
  427. package/resources/themes/lara-dark-blue/fonts/Inter-italic.var.woff2 +0 -0
  428. package/resources/themes/lara-dark-blue/fonts/Inter-roman.var.woff2 +0 -0
  429. package/resources/themes/lara-dark-blue/theme.css +5590 -5556
  430. package/resources/themes/lara-dark-indigo/fonts/Inter-italic.var.woff2 +0 -0
  431. package/resources/themes/lara-dark-indigo/fonts/Inter-roman.var.woff2 +0 -0
  432. package/resources/themes/lara-dark-indigo/theme.css +5590 -5556
  433. package/resources/themes/lara-dark-purple/fonts/Inter-italic.var.woff2 +0 -0
  434. package/resources/themes/lara-dark-purple/fonts/Inter-roman.var.woff2 +0 -0
  435. package/resources/themes/lara-dark-purple/theme.css +5590 -5556
  436. package/resources/themes/lara-dark-teal/fonts/Inter-italic.var.woff2 +0 -0
  437. package/resources/themes/lara-dark-teal/fonts/Inter-roman.var.woff2 +0 -0
  438. package/resources/themes/lara-dark-teal/theme.css +5590 -5556
  439. package/resources/themes/lara-light-blue/fonts/Inter-italic.var.woff2 +0 -0
  440. package/resources/themes/lara-light-blue/fonts/Inter-roman.var.woff2 +0 -0
  441. package/resources/themes/lara-light-blue/theme.css +5604 -5570
  442. package/resources/themes/lara-light-indigo/fonts/Inter-italic.var.woff2 +0 -0
  443. package/resources/themes/lara-light-indigo/fonts/Inter-roman.var.woff2 +0 -0
  444. package/resources/themes/lara-light-indigo/theme.css +5604 -5570
  445. package/resources/themes/lara-light-purple/fonts/Inter-italic.var.woff2 +0 -0
  446. package/resources/themes/lara-light-purple/fonts/Inter-roman.var.woff2 +0 -0
  447. package/resources/themes/lara-light-purple/theme.css +5604 -5570
  448. package/resources/themes/lara-light-teal/fonts/Inter-italic.var.woff2 +0 -0
  449. package/resources/themes/lara-light-teal/fonts/Inter-roman.var.woff2 +0 -0
  450. package/resources/themes/lara-light-teal/theme.css +5604 -5570
  451. package/resources/themes/luna-amber/theme.css +5553 -5539
  452. package/resources/themes/luna-blue/theme.css +5553 -5539
  453. package/resources/themes/luna-green/theme.css +5553 -5539
  454. package/resources/themes/luna-pink/theme.css +5553 -5539
  455. package/resources/themes/md-dark-deeppurple/theme.css +7052 -7037
  456. package/resources/themes/md-dark-indigo/theme.css +7052 -7037
  457. package/resources/themes/md-light-deeppurple/theme.css +7073 -7058
  458. package/resources/themes/md-light-indigo/theme.css +7073 -7058
  459. package/resources/themes/mdc-dark-deeppurple/theme.css +7067 -7052
  460. package/resources/themes/mdc-dark-indigo/theme.css +7067 -7052
  461. package/resources/themes/mdc-light-deeppurple/theme.css +7074 -7059
  462. package/resources/themes/mdc-light-indigo/theme.css +7074 -7059
  463. package/resources/themes/mira/theme.css +5773 -5757
  464. package/resources/themes/nano/theme.css +5574 -5559
  465. package/resources/themes/nova/theme.css +5563 -5548
  466. package/resources/themes/nova-accent/theme.css +5539 -5524
  467. package/resources/themes/nova-alt/theme.css +5550 -5535
  468. package/resources/themes/nova-vue/theme.css +5563 -5548
  469. package/resources/themes/rhea/theme.css +5530 -5515
  470. package/resources/themes/saga-blue/theme.css +5590 -5574
  471. package/resources/themes/saga-green/theme.css +5590 -5574
  472. package/resources/themes/saga-orange/theme.css +5590 -5574
  473. package/resources/themes/saga-purple/theme.css +5590 -5574
  474. package/resources/themes/soho-dark/theme.css +5542 -5526
  475. package/resources/themes/soho-light/theme.css +5602 -5586
  476. package/resources/themes/tailwind-light/theme.css +5653 -5637
  477. package/resources/themes/vela-blue/theme.css +5590 -5574
  478. package/resources/themes/vela-green/theme.css +5590 -5574
  479. package/resources/themes/vela-orange/theme.css +5590 -5574
  480. package/resources/themes/vela-purple/theme.css +5590 -5574
  481. package/resources/themes/viva-dark/theme.css +5709 -5693
  482. package/resources/themes/viva-light/theme.css +5692 -5676
  483. package/ripple/ripple.cjs.js +1 -1
  484. package/ripple/ripple.cjs.min.js +1 -1
  485. package/ripple/ripple.esm.js +1 -1
  486. package/ripple/ripple.esm.min.js +1 -1
  487. package/ripple/ripple.js +1 -1
  488. package/ripple/ripple.min.js +1 -1
  489. package/scrollpanel/BaseScrollPanel.vue +56 -54
  490. package/scrollpanel/scrollpanel.cjs.js +1 -1
  491. package/scrollpanel/scrollpanel.cjs.min.js +1 -1
  492. package/scrollpanel/scrollpanel.esm.js +1 -1
  493. package/scrollpanel/scrollpanel.esm.min.js +1 -1
  494. package/scrollpanel/scrollpanel.js +1 -1
  495. package/scrollpanel/scrollpanel.min.js +1 -1
  496. package/scrolltop/BaseScrollTop.vue +33 -31
  497. package/scrolltop/scrolltop.cjs.js +1 -1
  498. package/scrolltop/scrolltop.cjs.min.js +1 -1
  499. package/scrolltop/scrolltop.esm.js +1 -1
  500. package/scrolltop/scrolltop.esm.min.js +1 -1
  501. package/scrolltop/scrolltop.js +1 -1
  502. package/scrolltop/scrolltop.min.js +1 -1
  503. package/sidebar/BaseSidebar.vue +146 -144
  504. package/sidebar/Sidebar.d.ts +10 -0
  505. package/sidebar/Sidebar.vue +17 -12
  506. package/sidebar/sidebar.cjs.js +10 -3
  507. package/sidebar/sidebar.cjs.min.js +1 -1
  508. package/sidebar/sidebar.esm.js +11 -4
  509. package/sidebar/sidebar.esm.min.js +1 -1
  510. package/sidebar/sidebar.js +10 -3
  511. package/sidebar/sidebar.min.js +1 -1
  512. package/skeleton/BaseSkeleton.vue +30 -28
  513. package/skeleton/skeleton.cjs.js +1 -1
  514. package/skeleton/skeleton.cjs.min.js +1 -1
  515. package/skeleton/skeleton.esm.js +1 -1
  516. package/skeleton/skeleton.esm.min.js +1 -1
  517. package/skeleton/skeleton.js +1 -1
  518. package/skeleton/skeleton.min.js +1 -1
  519. package/slider/BaseSlider.vue +39 -37
  520. package/slider/slider.cjs.js +1 -2
  521. package/slider/slider.cjs.min.js +1 -1
  522. package/slider/slider.esm.js +1 -2
  523. package/slider/slider.esm.min.js +1 -1
  524. package/slider/slider.js +1 -2
  525. package/slider/slider.min.js +1 -1
  526. package/speeddial/BaseSpeedDial.vue +77 -75
  527. package/speeddial/SpeedDial.vue +2 -2
  528. package/speeddial/speeddial.cjs.js +7 -3
  529. package/speeddial/speeddial.cjs.min.js +1 -1
  530. package/speeddial/speeddial.esm.js +7 -3
  531. package/speeddial/speeddial.esm.min.js +1 -1
  532. package/speeddial/speeddial.js +7 -3
  533. package/speeddial/speeddial.min.js +1 -1
  534. package/splitbutton/BaseSplitButton.vue +32 -30
  535. package/splitbutton/SplitButton.vue +2 -1
  536. package/splitbutton/splitbutton.cjs.js +3 -2
  537. package/splitbutton/splitbutton.cjs.min.js +1 -1
  538. package/splitbutton/splitbutton.esm.js +3 -2
  539. package/splitbutton/splitbutton.esm.min.js +1 -1
  540. package/splitbutton/splitbutton.js +3 -2
  541. package/splitbutton/splitbutton.min.js +1 -1
  542. package/splitter/BaseSplitter.vue +46 -44
  543. package/splitter/splitter.cjs.js +1 -1
  544. package/splitter/splitter.cjs.min.js +1 -1
  545. package/splitter/splitter.esm.js +1 -1
  546. package/splitter/splitter.esm.min.js +1 -1
  547. package/splitter/splitter.js +1 -1
  548. package/splitter/splitter.min.js +1 -1
  549. package/splitterpanel/BaseSplitterPanel.vue +13 -11
  550. package/splitterpanel/splitterpanel.cjs.js +1 -1
  551. package/splitterpanel/splitterpanel.cjs.min.js +1 -1
  552. package/splitterpanel/splitterpanel.esm.js +1 -1
  553. package/splitterpanel/splitterpanel.esm.min.js +1 -1
  554. package/splitterpanel/splitterpanel.js +1 -1
  555. package/splitterpanel/splitterpanel.min.js +1 -1
  556. package/steps/BaseSteps.vue +52 -50
  557. package/steps/steps.cjs.js +1 -1
  558. package/steps/steps.cjs.min.js +1 -1
  559. package/steps/steps.esm.js +1 -1
  560. package/steps/steps.esm.min.js +1 -1
  561. package/steps/steps.js +1 -1
  562. package/steps/steps.min.js +1 -1
  563. package/tabmenu/BaseTabMenu.vue +40 -38
  564. package/tabmenu/TabMenu.vue +5 -0
  565. package/tabmenu/tabmenu.cjs.js +6 -1
  566. package/tabmenu/tabmenu.cjs.min.js +1 -1
  567. package/tabmenu/tabmenu.esm.js +6 -1
  568. package/tabmenu/tabmenu.esm.min.js +1 -1
  569. package/tabmenu/tabmenu.js +6 -1
  570. package/tabmenu/tabmenu.min.js +1 -1
  571. package/tabview/BaseTabView.vue +70 -68
  572. package/tabview/tabview.cjs.js +1 -1
  573. package/tabview/tabview.cjs.min.js +1 -1
  574. package/tabview/tabview.esm.js +1 -1
  575. package/tabview/tabview.esm.min.js +1 -1
  576. package/tabview/tabview.js +1 -1
  577. package/tabview/tabview.min.js +1 -1
  578. package/tag/BaseTag.vue +16 -14
  579. package/tag/tag.cjs.js +1 -1
  580. package/tag/tag.cjs.min.js +1 -1
  581. package/tag/tag.esm.js +1 -1
  582. package/tag/tag.esm.min.js +1 -1
  583. package/tag/tag.js +1 -1
  584. package/tag/tag.min.js +1 -1
  585. package/terminal/BaseTerminal.vue +23 -21
  586. package/terminal/terminal.cjs.js +1 -1
  587. package/terminal/terminal.cjs.min.js +1 -1
  588. package/terminal/terminal.esm.js +1 -1
  589. package/terminal/terminal.esm.min.js +1 -1
  590. package/terminal/terminal.js +1 -1
  591. package/terminal/terminal.min.js +1 -1
  592. package/textarea/BaseTextarea.vue +9 -7
  593. package/textarea/Textarea.vue +1 -3
  594. package/textarea/textarea.cjs.js +2 -3
  595. package/textarea/textarea.cjs.min.js +1 -1
  596. package/textarea/textarea.esm.js +2 -3
  597. package/textarea/textarea.esm.min.js +1 -1
  598. package/textarea/textarea.js +2 -3
  599. package/textarea/textarea.min.js +1 -1
  600. package/tieredmenu/BaseTieredMenu.vue +40 -38
  601. package/tieredmenu/tieredmenu.cjs.js +1 -1
  602. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  603. package/tieredmenu/tieredmenu.esm.js +1 -1
  604. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  605. package/tieredmenu/tieredmenu.js +1 -1
  606. package/tieredmenu/tieredmenu.min.js +1 -1
  607. package/timeline/BaseTimeline.vue +111 -109
  608. package/timeline/timeline.cjs.js +1 -1
  609. package/timeline/timeline.cjs.min.js +1 -1
  610. package/timeline/timeline.esm.js +1 -1
  611. package/timeline/timeline.esm.min.js +1 -1
  612. package/timeline/timeline.js +1 -1
  613. package/timeline/timeline.min.js +1 -1
  614. package/toast/BaseToast.vue +73 -71
  615. package/toast/Toast.d.ts +14 -0
  616. package/toast/ToastMessage.vue +3 -2
  617. package/toast/toast.cjs.js +9 -4
  618. package/toast/toast.cjs.min.js +1 -1
  619. package/toast/toast.esm.js +10 -5
  620. package/toast/toast.esm.min.js +1 -1
  621. package/toast/toast.js +9 -4
  622. package/toast/toast.min.js +1 -1
  623. package/toolbar/BaseToolbar.vue +21 -19
  624. package/toolbar/toolbar.cjs.js +1 -2
  625. package/toolbar/toolbar.cjs.min.js +1 -1
  626. package/toolbar/toolbar.esm.js +1 -2
  627. package/toolbar/toolbar.esm.min.js +1 -1
  628. package/toolbar/toolbar.js +1 -2
  629. package/toolbar/toolbar.min.js +1 -1
  630. package/tooltip/tooltip.cjs.js +1 -1
  631. package/tooltip/tooltip.cjs.min.js +1 -1
  632. package/tooltip/tooltip.esm.js +1 -1
  633. package/tooltip/tooltip.esm.min.js +1 -1
  634. package/tooltip/tooltip.js +1 -1
  635. package/tooltip/tooltip.min.js +1 -1
  636. package/tree/BaseTree.vue +82 -80
  637. package/tree/Tree.vue +1 -1
  638. package/tree/TreeNode.vue +1 -1
  639. package/tree/tree.cjs.js +8 -6
  640. package/tree/tree.cjs.min.js +1 -1
  641. package/tree/tree.esm.js +9 -7
  642. package/tree/tree.esm.min.js +1 -1
  643. package/tree/tree.js +8 -6
  644. package/tree/tree.min.js +1 -1
  645. package/treeselect/BaseTreeSelect.vue +51 -49
  646. package/treeselect/treeselect.cjs.js +1 -1
  647. package/treeselect/treeselect.cjs.min.js +1 -1
  648. package/treeselect/treeselect.esm.js +1 -1
  649. package/treeselect/treeselect.esm.min.js +1 -1
  650. package/treeselect/treeselect.js +1 -1
  651. package/treeselect/treeselect.min.js +1 -1
  652. package/treetable/BaseTreeTable.vue +169 -167
  653. package/treetable/BodyCell.vue +1 -1
  654. package/treetable/TreeTable.d.ts +48 -4
  655. package/treetable/TreeTable.vue +28 -16
  656. package/treetable/treetable.cjs.js +66 -18
  657. package/treetable/treetable.cjs.min.js +1 -1
  658. package/treetable/treetable.esm.js +66 -18
  659. package/treetable/treetable.esm.min.js +1 -1
  660. package/treetable/treetable.js +66 -18
  661. package/treetable/treetable.min.js +1 -1
  662. package/vetur-attributes.json +4 -0
  663. package/vetur-tags.json +1 -0
  664. package/web-types.json +46 -1
@@ -2,32 +2,53 @@
2
2
  <Portal>
3
3
  <transition name="p-confirm-popup" @enter="onEnter" @after-enter="onAfterEnter" @leave="onLeave" @after-leave="onAfterLeave" v-bind="ptm('transition')">
4
4
  <div v-if="visible" :ref="containerRef" v-focustrap role="alertdialog" :class="cx('root')" :aria-modal="visible" @click="onOverlayClick" @keydown="onOverlayKeydown" v-bind="{ ...$attrs, ...ptm('root') }">
5
- <template v-if="!$slots.message">
6
- <div :class="cx('content')" v-bind="ptm('content')">
7
- <slot name="icon">
8
- <component v-if="$slots.icon" :is="$slots.icon" :class="cx('icon')" />
9
- <span v-else-if="confirmation.icon" :class="cx('icon')" v-bind="ptm('icon')" />
10
- </slot>
11
- <span :class="cx('message')" v-bind="ptm('message')">{{ confirmation.message }}</span>
5
+ <slot v-if="$slots.container" name="container" :message="confirmation" :onAccept="accept" :onReject="reject"></slot>
6
+ <template v-else>
7
+ <template v-if="!$slots.message">
8
+ <div :class="cx('content')" v-bind="ptm('content')">
9
+ <slot name="icon">
10
+ <component v-if="$slots.icon" :is="$slots.icon" :class="cx('icon')" />
11
+ <span v-else-if="confirmation.icon" :class="cx('icon')" v-bind="ptm('icon')" />
12
+ </slot>
13
+ <span :class="cx('message')" v-bind="ptm('message')">{{ confirmation.message }}</span>
14
+ </div>
15
+ </template>
16
+ <component v-else :is="$slots.message" :message="confirmation"></component>
17
+ <div :class="cx('footer')" v-bind="ptm('footer')">
18
+ <CPButton
19
+ :label="rejectLabel"
20
+ @click="reject()"
21
+ @keydown="onRejectKeydown"
22
+ :autofocus="autoFocusReject"
23
+ :class="[cx('rejectButton'), confirmation.rejectClass]"
24
+ :unstyled="unstyled"
25
+ :pt="ptm('rejectButton')"
26
+ data-pc-name="rejectbutton"
27
+ >
28
+ <template v-if="rejectIcon || $slots.rejecticon" #icon="iconProps">
29
+ <slot name="rejecticon">
30
+ <span :class="[rejectIcon, iconProps.class]" v-bind="ptm('rejectButton')['icon']" data-pc-name="rejectbuttonicon" />
31
+ </slot>
32
+ </template>
33
+ </CPButton>
34
+ <CPButton
35
+ :label="acceptLabel"
36
+ @click="accept()"
37
+ @keydown="onAcceptKeydown"
38
+ :autofocus="autoFocusAccept"
39
+ :class="[cx('acceptButton'), confirmation.acceptClass]"
40
+ :unstyled="unstyled"
41
+ :pt="ptm('acceptButton')"
42
+ data-pc-name="acceptbutton"
43
+ >
44
+ <template v-if="acceptIcon || $slots.accepticon" #icon="iconProps">
45
+ <slot name="accepticon">
46
+ <span :class="[acceptIcon, iconProps.class]" v-bind="ptm('acceptButton')['icon']" data-pc-name="acceptbuttonicon" />
47
+ </slot>
48
+ </template>
49
+ </CPButton>
12
50
  </div>
13
51
  </template>
14
- <component v-else :is="$slots.message" :message="confirmation"></component>
15
- <div :class="cx('footer')" v-bind="ptm('footer')">
16
- <CPButton :label="rejectLabel" @click="reject()" @keydown="onRejectKeydown" :autofocus="autoFocusReject" :class="cx('rejectButton')" :unstyled="unstyled" :pt="ptm('rejectButton')" data-pc-name="rejectbutton">
17
- <template v-if="rejectIcon || $slots.rejecticon" #icon="iconProps">
18
- <slot name="rejecticon">
19
- <span :class="[rejectIcon, iconProps.class]" v-bind="ptm('rejectButton')['icon']" data-pc-name="rejectbuttonicon" />
20
- </slot>
21
- </template>
22
- </CPButton>
23
- <CPButton :label="acceptLabel" @click="accept()" @keydown="onAcceptKeydown" :autofocus="autoFocusAccept" :class="cx('acceptButton')" :unstyled="unstyled" :pt="ptm('acceptButton')" data-pc-name="acceptbutton">
24
- <template v-if="acceptIcon || $slots.accepticon" #icon="iconProps">
25
- <slot name="accepticon">
26
- <span :class="[acceptIcon, iconProps.class]" v-bind="ptm('acceptButton')['icon']" data-pc-name="acceptbuttonicon" />
27
- </slot>
28
- </template>
29
- </CPButton>
30
- </div>
31
52
  </div>
32
53
  </transition>
33
54
  </Portal>
@@ -19,7 +19,7 @@ var OverlayEventBus__default = /*#__PURE__*/_interopDefaultLegacy(OverlayEventBu
19
19
  var Portal__default = /*#__PURE__*/_interopDefaultLegacy(Portal);
20
20
  var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
21
21
 
22
- var styles = "\n.p-confirm-popup {\n position: absolute;\n margin-top: 10px;\n top: 0;\n left: 0;\n}\n\n.p-confirm-popup-flipped {\n margin-top: 0;\n margin-bottom: 10px;\n}\n\n/* Animation */\n.p-confirm-popup-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n}\n\n.p-confirm-popup-leave-to {\n opacity: 0;\n}\n\n.p-confirm-popup-enter-active {\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-confirm-popup-leave-active {\n transition: opacity 0.1s linear;\n}\n\n.p-confirm-popup:after,\n.p-confirm-popup:before {\n bottom: 100%;\n left: calc(var(--overlayArrowLeft, 0) + 1.25rem);\n content: ' ';\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n\n.p-confirm-popup:after {\n border-width: 8px;\n margin-left: -8px;\n}\n\n.p-confirm-popup:before {\n border-width: 10px;\n margin-left: -10px;\n}\n\n.p-confirm-popup-flipped:after,\n.p-confirm-popup-flipped:before {\n bottom: auto;\n top: 100%;\n}\n\n.p-confirm-popup.p-confirm-popup-flipped:after {\n border-bottom-color: transparent;\n}\n\n.p-confirm-popup.p-confirm-popup-flipped:before {\n border-bottom-color: transparent;\n}\n\n.p-confirm-popup .p-confirm-popup-content {\n display: flex;\n align-items: center;\n}\n";
22
+ var styles = "\n@layer primevue {\n .p-confirm-popup {\n position: absolute;\n margin-top: 10px;\n top: 0;\n left: 0;\n }\n \n .p-confirm-popup-flipped {\n margin-top: 0;\n margin-bottom: 10px;\n }\n \n /* Animation */\n .p-confirm-popup-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n }\n \n .p-confirm-popup-leave-to {\n opacity: 0;\n }\n \n .p-confirm-popup-enter-active {\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n \n .p-confirm-popup-leave-active {\n transition: opacity 0.1s linear;\n }\n \n .p-confirm-popup:after,\n .p-confirm-popup:before {\n bottom: 100%;\n left: calc(var(--overlayArrowLeft, 0) + 1.25rem);\n content: ' ';\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n }\n \n .p-confirm-popup:after {\n border-width: 8px;\n margin-left: -8px;\n }\n \n .p-confirm-popup:before {\n border-width: 10px;\n margin-left: -10px;\n }\n \n .p-confirm-popup-flipped:after,\n .p-confirm-popup-flipped:before {\n bottom: auto;\n top: 100%;\n }\n \n .p-confirm-popup.p-confirm-popup-flipped:after {\n border-bottom-color: transparent;\n }\n \n .p-confirm-popup.p-confirm-popup-flipped:before {\n border-bottom-color: transparent;\n }\n \n .p-confirm-popup .p-confirm-popup-content {\n display: flex;\n align-items: center;\n }\n}\n";
23
23
  var classes = {
24
24
  root: function root(_ref) {
25
25
  var instance = _ref.instance;
@@ -37,12 +37,9 @@ var classes = {
37
37
  footer: 'p-confirm-popup-footer',
38
38
  rejectButton: function rejectButton(_ref3) {
39
39
  var instance = _ref3.instance;
40
- return ['p-confirm-dialog-reject', instance.confirmation ? instance.confirmation.rejectClass || 'p-button-text' : null];
40
+ return ['p-confirm-dialog-reject', instance.confirmation && !instance.confirmation.rejectClass ? 'p-button-text' : null];
41
41
  },
42
- acceptButton: function acceptButton(_ref4) {
43
- var instance = _ref4.instance;
44
- return ['p-confirm-dialog-accept', instance.confirmation ? instance.confirmation.acceptClass : null];
45
- }
42
+ acceptButton: 'p-confirm-dialog-accept'
46
43
  };
47
44
  var _useStyle = usestyle.useStyle(styles, {
48
45
  name: 'confirmpopup',
@@ -340,7 +337,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
340
337
  onKeydown: _cache[3] || (_cache[3] = function () {
341
338
  return $options.onOverlayKeydown && $options.onOverlayKeydown.apply($options, arguments);
342
339
  })
343
- }, _objectSpread(_objectSpread({}, _ctx.$attrs), _ctx.ptm('root'))), [!_ctx.$slots.message ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
340
+ }, _objectSpread(_objectSpread({}, _ctx.$attrs), _ctx.ptm('root'))), [_ctx.$slots.container ? vue.renderSlot(_ctx.$slots, "container", {
341
+ key: 0,
342
+ message: $data.confirmation,
343
+ onAccept: $options.accept,
344
+ onReject: $options.reject
345
+ }) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
346
+ key: 1
347
+ }, [!_ctx.$slots.message ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
344
348
  key: 0,
345
349
  "class": _ctx.cx('content')
346
350
  }, _ctx.ptm('content')), [vue.renderSlot(_ctx.$slots, "icon", {}, function () {
@@ -365,7 +369,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
365
369
  }),
366
370
  onKeydown: $options.onRejectKeydown,
367
371
  autofocus: $data.autoFocusReject,
368
- "class": vue.normalizeClass(_ctx.cx('rejectButton')),
372
+ "class": vue.normalizeClass([_ctx.cx('rejectButton'), $data.confirmation.rejectClass]),
369
373
  unstyled: _ctx.unstyled,
370
374
  pt: _ctx.ptm('rejectButton'),
371
375
  "data-pc-name": "rejectbutton"
@@ -390,7 +394,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
390
394
  }),
391
395
  onKeydown: $options.onAcceptKeydown,
392
396
  autofocus: $data.autoFocusAccept,
393
- "class": vue.normalizeClass(_ctx.cx('acceptButton')),
397
+ "class": vue.normalizeClass([_ctx.cx('acceptButton'), $data.confirmation.acceptClass]),
394
398
  unstyled: _ctx.unstyled,
395
399
  pt: _ctx.ptm('acceptButton'),
396
400
  "data-pc-name": "acceptbutton"
@@ -408,7 +412,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
408
412
  })];
409
413
  }),
410
414
  key: "0"
411
- } : undefined]), 1032, ["label", "onKeydown", "autofocus", "class", "unstyled", "pt"])], 16)], 16, _hoisted_1)), [[_directive_focustrap]]) : vue.createCommentVNode("", true)];
415
+ } : undefined]), 1032, ["label", "onKeydown", "autofocus", "class", "unstyled", "pt"])], 16)], 64))], 16, _hoisted_1)), [[_directive_focustrap]]) : vue.createCommentVNode("", true)];
412
416
  }),
413
417
  _: 3
414
418
  }, 16, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])];
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/button"),n=require("primevue/confirmationeventbus"),t=require("primevue/focustrap"),o=require("primevue/overlayeventbus"),i=require("primevue/portal"),r=require("primevue/utils"),c=require("primevue/basecomponent"),s=require("primevue/usestyle"),a=require("vue");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=l(e),p=l(n),f=l(t),m=l(o),d=l(i),h=l(c),v=s.useStyle("\n.p-confirm-popup {\n position: absolute;\n margin-top: 10px;\n top: 0;\n left: 0;\n}\n\n.p-confirm-popup-flipped {\n margin-top: 0;\n margin-bottom: 10px;\n}\n\n/* Animation */\n.p-confirm-popup-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n}\n\n.p-confirm-popup-leave-to {\n opacity: 0;\n}\n\n.p-confirm-popup-enter-active {\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-confirm-popup-leave-active {\n transition: opacity 0.1s linear;\n}\n\n.p-confirm-popup:after,\n.p-confirm-popup:before {\n bottom: 100%;\n left: calc(var(--overlayArrowLeft, 0) + 1.25rem);\n content: ' ';\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n\n.p-confirm-popup:after {\n border-width: 8px;\n margin-left: -8px;\n}\n\n.p-confirm-popup:before {\n border-width: 10px;\n margin-left: -10px;\n}\n\n.p-confirm-popup-flipped:after,\n.p-confirm-popup-flipped:before {\n bottom: auto;\n top: 100%;\n}\n\n.p-confirm-popup.p-confirm-popup-flipped:after {\n border-bottom-color: transparent;\n}\n\n.p-confirm-popup.p-confirm-popup-flipped:before {\n border-bottom-color: transparent;\n}\n\n.p-confirm-popup .p-confirm-popup-content {\n display: flex;\n align-items: center;\n}\n",{name:"confirmpopup",manual:!0}),b={name:"ConfirmPopup",extends:{name:"BaseConfirmPopup",extends:h.default,props:{group:String},css:{classes:{root:function(e){var n=e.instance;return["p-confirm-popup p-component",{"p-input-filled":"filled"===n.$primevue.config.inputStyle,"p-ripple-disabled":!1===n.$primevue.config.ripple}]},content:"p-confirm-popup-content",icon:function(e){var n=e.instance;return["p-confirm-popup-icon",n.confirmation?n.confirmation.icon:null]},message:"p-confirm-popup-message",footer:"p-confirm-popup-footer",rejectButton:function(e){var n=e.instance;return["p-confirm-dialog-reject",n.confirmation?n.confirmation.rejectClass||"p-button-text":null]},acceptButton:function(e){var n=e.instance;return["p-confirm-dialog-accept",n.confirmation?n.confirmation.acceptClass:null]}},loadStyle:v.load},provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,data:function(){return{visible:!1,confirmation:null,autoFocusAccept:null,autoFocusReject:null}},target:null,outsideClickListener:null,scrollHandler:null,resizeListener:null,container:null,confirmListener:null,closeListener:null,mounted:function(){var e=this;this.confirmListener=function(n){n&&n.group===e.group&&(e.confirmation=n,e.target=n.target,e.confirmation.onShow&&e.confirmation.onShow(),e.visible=!0)},this.closeListener=function(){e.visible=!1,e.confirmation=null},p.default.on("confirm",this.confirmListener),p.default.on("close",this.closeListener)},beforeUnmount:function(){p.default.off("confirm",this.confirmListener),p.default.off("close",this.closeListener),this.unbindOutsideClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindResizeListener(),this.container&&(r.ZIndexUtils.clear(this.container),this.container=null),this.target=null,this.confirmation=null},methods:{accept:function(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject:function(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onHide:function(){this.confirmation.onHide&&this.confirmation.onHide(),this.visible=!1},onAcceptKeydown:function(e){"Space"!==e.code&&"Enter"!==e.code||(this.accept(),r.DomHandler.focus(this.target),e.preventDefault())},onRejectKeydown:function(e){"Space"!==e.code&&"Enter"!==e.code||(this.reject(),r.DomHandler.focus(this.target),e.preventDefault())},onEnter:function(e){this.autoFocusAccept=void 0===this.confirmation.defaultFocus||"accept"===this.confirmation.defaultFocus,this.autoFocusReject="reject"===this.confirmation.defaultFocus,this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),r.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay)},onAfterEnter:function(){this.focus()},onLeave:function(){this.autoFocusAccept=null,this.autoFocusReject=null,this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener()},onAfterLeave:function(e){r.ZIndexUtils.clear(e)},alignOverlay:function(){r.DomHandler.absolutePosition(this.container,this.target);var e=r.DomHandler.getOffset(this.container),n=r.DomHandler.getOffset(this.target),t=0;e.left<n.left&&(t=n.left-e.left),this.container.style.setProperty("--overlayArrowLeft","".concat(t,"px")),e.top<n.top&&(this.container.setAttribute("data-p-confirm-popup-flipped","true"),!this.isUnstyled&&r.DomHandler.addClass(this.container,"p-confirm-popup-flipped"))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(n){e.visible&&e.container&&!e.container.contains(n.target)&&!e.isTargetClicked(n)?(e.confirmation.onHide&&e.confirmation.onHide(),e.visible=!1):e.alignOverlay()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new r.ConnectedOverlayScrollHandler(this.target,(function(){e.visible&&(e.visible=!1)}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.visible&&!r.DomHandler.isTouchDevice()&&(e.visible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},focus:function(){var e=this.container.querySelector("[autofocus]");e&&e.focus({preventScroll:!0})},isTargetClicked:function(e){return this.target&&(this.target===e.target||this.target.contains(e.target))},containerRef:function(e){this.container=e},onOverlayClick:function(e){m.default.emit("overlay-click",{originalEvent:e,target:this.target})},onOverlayKeydown:function(e){"Escape"===e.code&&(p.default.emit("close",this.closeListener),r.DomHandler.focus(this.target))},getCXOptions:function(e,n){return{contenxt:{icon:e,iconClass:n.class}}}},computed:{message:function(){return this.confirmation?this.confirmation.message:null},acceptLabel:function(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel:function(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon:function(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon:function(){return this.confirmation?this.confirmation.rejectIcon:null}},components:{CPButton:u.default,Portal:d.default},directives:{focustrap:f.default}};function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function g(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function L(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?g(Object(t),!0).forEach((function(n){j(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function j(e,n,t){return(n=k(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function k(e){var n=C(e,"string");return"symbol"===y(n)?n:String(n)}function C(e,n){if("object"!==y(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,n||"default");if("object"!==y(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}var w=["aria-modal"];b.render=function(e,n,t,o,i,r){var c=a.resolveComponent("CPButton"),s=a.resolveComponent("Portal"),l=a.resolveDirective("focustrap");return a.openBlock(),a.createBlock(s,null,{default:a.withCtx((function(){return[a.createVNode(a.Transition,a.mergeProps({name:"p-confirm-popup",onEnter:r.onEnter,onAfterEnter:r.onAfterEnter,onLeave:r.onLeave,onAfterLeave:r.onAfterLeave},e.ptm("transition")),{default:a.withCtx((function(){return[i.visible?a.withDirectives((a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,ref:r.containerRef,role:"alertdialog",class:e.cx("root"),"aria-modal":i.visible,onClick:n[2]||(n[2]=function(){return r.onOverlayClick&&r.onOverlayClick.apply(r,arguments)}),onKeydown:n[3]||(n[3]=function(){return r.onOverlayKeydown&&r.onOverlayKeydown.apply(r,arguments)})},L(L({},e.$attrs),e.ptm("root"))),[e.$slots.message?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.$slots.message),{key:1,message:i.confirmation},null,8,["message"])):(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:e.cx("content")},e.ptm("content")),[a.renderSlot(e.$slots,"icon",{},(function(){return[e.$slots.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.$slots.icon),{key:0,class:a.normalizeClass(e.cx("icon"))},null,8,["class"])):i.confirmation.icon?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:1,class:e.cx("icon")},e.ptm("icon")),null,16)):a.createCommentVNode("",!0)]})),a.createElementVNode("span",a.mergeProps({class:e.cx("message")},e.ptm("message")),a.toDisplayString(i.confirmation.message),17)],16)),a.createElementVNode("div",a.mergeProps({class:e.cx("footer")},e.ptm("footer")),[a.createVNode(c,{label:r.rejectLabel,onClick:n[0]||(n[0]=function(e){return r.reject()}),onKeydown:r.onRejectKeydown,autofocus:i.autoFocusReject,class:a.normalizeClass(e.cx("rejectButton")),unstyled:e.unstyled,pt:e.ptm("rejectButton"),"data-pc-name":"rejectbutton"},a.createSlots({_:2},[r.rejectIcon||e.$slots.rejecticon?{name:"icon",fn:a.withCtx((function(n){return[a.renderSlot(e.$slots,"rejecticon",{},(function(){return[a.createElementVNode("span",a.mergeProps({class:[r.rejectIcon,n.class]},e.ptm("rejectButton").icon,{"data-pc-name":"rejectbuttonicon"}),null,16)]}))]})),key:"0"}:void 0]),1032,["label","onKeydown","autofocus","class","unstyled","pt"]),a.createVNode(c,{label:r.acceptLabel,onClick:n[1]||(n[1]=function(e){return r.accept()}),onKeydown:r.onAcceptKeydown,autofocus:i.autoFocusAccept,class:a.normalizeClass(e.cx("acceptButton")),unstyled:e.unstyled,pt:e.ptm("acceptButton"),"data-pc-name":"acceptbutton"},a.createSlots({_:2},[r.acceptIcon||e.$slots.accepticon?{name:"icon",fn:a.withCtx((function(n){return[a.renderSlot(e.$slots,"accepticon",{},(function(){return[a.createElementVNode("span",a.mergeProps({class:[r.acceptIcon,n.class]},e.ptm("acceptButton").icon,{"data-pc-name":"acceptbuttonicon"}),null,16)]}))]})),key:"0"}:void 0]),1032,["label","onKeydown","autofocus","class","unstyled","pt"])],16)],16,w)),[[l]]):a.createCommentVNode("",!0)]})),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:3})},module.exports=b;
1
+ "use strict";var e=require("primevue/button"),t=require("primevue/confirmationeventbus"),n=require("primevue/focustrap"),o=require("primevue/overlayeventbus"),i=require("primevue/portal"),r=require("primevue/utils"),c=require("primevue/basecomponent"),s=require("primevue/usestyle"),a=require("vue");function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=l(e),p=l(t),f=l(n),m=l(o),d=l(i),h=l(c),v=s.useStyle("\n@layer primevue {\n .p-confirm-popup {\n position: absolute;\n margin-top: 10px;\n top: 0;\n left: 0;\n }\n \n .p-confirm-popup-flipped {\n margin-top: 0;\n margin-bottom: 10px;\n }\n \n /* Animation */\n .p-confirm-popup-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n }\n \n .p-confirm-popup-leave-to {\n opacity: 0;\n }\n \n .p-confirm-popup-enter-active {\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n \n .p-confirm-popup-leave-active {\n transition: opacity 0.1s linear;\n }\n \n .p-confirm-popup:after,\n .p-confirm-popup:before {\n bottom: 100%;\n left: calc(var(--overlayArrowLeft, 0) + 1.25rem);\n content: ' ';\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n }\n \n .p-confirm-popup:after {\n border-width: 8px;\n margin-left: -8px;\n }\n \n .p-confirm-popup:before {\n border-width: 10px;\n margin-left: -10px;\n }\n \n .p-confirm-popup-flipped:after,\n .p-confirm-popup-flipped:before {\n bottom: auto;\n top: 100%;\n }\n \n .p-confirm-popup.p-confirm-popup-flipped:after {\n border-bottom-color: transparent;\n }\n \n .p-confirm-popup.p-confirm-popup-flipped:before {\n border-bottom-color: transparent;\n }\n \n .p-confirm-popup .p-confirm-popup-content {\n display: flex;\n align-items: center;\n }\n}\n",{name:"confirmpopup",manual:!0}),b={name:"ConfirmPopup",extends:{name:"BaseConfirmPopup",extends:h.default,props:{group:String},css:{classes:{root:function(e){var t=e.instance;return["p-confirm-popup p-component",{"p-input-filled":"filled"===t.$primevue.config.inputStyle,"p-ripple-disabled":!1===t.$primevue.config.ripple}]},content:"p-confirm-popup-content",icon:function(e){var t=e.instance;return["p-confirm-popup-icon",t.confirmation?t.confirmation.icon:null]},message:"p-confirm-popup-message",footer:"p-confirm-popup-footer",rejectButton:function(e){var t=e.instance;return["p-confirm-dialog-reject",t.confirmation&&!t.confirmation.rejectClass?"p-button-text":null]},acceptButton:"p-confirm-dialog-accept"},loadStyle:v.load},provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,data:function(){return{visible:!1,confirmation:null,autoFocusAccept:null,autoFocusReject:null}},target:null,outsideClickListener:null,scrollHandler:null,resizeListener:null,container:null,confirmListener:null,closeListener:null,mounted:function(){var e=this;this.confirmListener=function(t){t&&t.group===e.group&&(e.confirmation=t,e.target=t.target,e.confirmation.onShow&&e.confirmation.onShow(),e.visible=!0)},this.closeListener=function(){e.visible=!1,e.confirmation=null},p.default.on("confirm",this.confirmListener),p.default.on("close",this.closeListener)},beforeUnmount:function(){p.default.off("confirm",this.confirmListener),p.default.off("close",this.closeListener),this.unbindOutsideClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindResizeListener(),this.container&&(r.ZIndexUtils.clear(this.container),this.container=null),this.target=null,this.confirmation=null},methods:{accept:function(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject:function(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onHide:function(){this.confirmation.onHide&&this.confirmation.onHide(),this.visible=!1},onAcceptKeydown:function(e){"Space"!==e.code&&"Enter"!==e.code||(this.accept(),r.DomHandler.focus(this.target),e.preventDefault())},onRejectKeydown:function(e){"Space"!==e.code&&"Enter"!==e.code||(this.reject(),r.DomHandler.focus(this.target),e.preventDefault())},onEnter:function(e){this.autoFocusAccept=void 0===this.confirmation.defaultFocus||"accept"===this.confirmation.defaultFocus,this.autoFocusReject="reject"===this.confirmation.defaultFocus,this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),r.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay)},onAfterEnter:function(){this.focus()},onLeave:function(){this.autoFocusAccept=null,this.autoFocusReject=null,this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener()},onAfterLeave:function(e){r.ZIndexUtils.clear(e)},alignOverlay:function(){r.DomHandler.absolutePosition(this.container,this.target);var e=r.DomHandler.getOffset(this.container),t=r.DomHandler.getOffset(this.target),n=0;e.left<t.left&&(n=t.left-e.left),this.container.style.setProperty("--overlayArrowLeft","".concat(n,"px")),e.top<t.top&&(this.container.setAttribute("data-p-confirm-popup-flipped","true"),!this.isUnstyled&&r.DomHandler.addClass(this.container,"p-confirm-popup-flipped"))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.visible&&e.container&&!e.container.contains(t.target)&&!e.isTargetClicked(t)?(e.confirmation.onHide&&e.confirmation.onHide(),e.visible=!1):e.alignOverlay()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new r.ConnectedOverlayScrollHandler(this.target,(function(){e.visible&&(e.visible=!1)}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.visible&&!r.DomHandler.isTouchDevice()&&(e.visible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},focus:function(){var e=this.container.querySelector("[autofocus]");e&&e.focus({preventScroll:!0})},isTargetClicked:function(e){return this.target&&(this.target===e.target||this.target.contains(e.target))},containerRef:function(e){this.container=e},onOverlayClick:function(e){m.default.emit("overlay-click",{originalEvent:e,target:this.target})},onOverlayKeydown:function(e){"Escape"===e.code&&(p.default.emit("close",this.closeListener),r.DomHandler.focus(this.target))},getCXOptions:function(e,t){return{contenxt:{icon:e,iconClass:t.class}}}},computed:{message:function(){return this.confirmation?this.confirmation.message:null},acceptLabel:function(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel:function(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon:function(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon:function(){return this.confirmation?this.confirmation.rejectIcon:null}},components:{CPButton:u.default,Portal:d.default},directives:{focustrap:f.default}};function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t,n){return(t=k(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e){var t=C(e,"string");return"symbol"===y(t)?t:String(t)}function C(e,t){if("object"!==y(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==y(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var w=["aria-modal"];b.render=function(e,t,n,o,i,r){var c=a.resolveComponent("CPButton"),s=a.resolveComponent("Portal"),l=a.resolveDirective("focustrap");return a.openBlock(),a.createBlock(s,null,{default:a.withCtx((function(){return[a.createVNode(a.Transition,a.mergeProps({name:"p-confirm-popup",onEnter:r.onEnter,onAfterEnter:r.onAfterEnter,onLeave:r.onLeave,onAfterLeave:r.onAfterLeave},e.ptm("transition")),{default:a.withCtx((function(){return[i.visible?a.withDirectives((a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,ref:r.containerRef,role:"alertdialog",class:e.cx("root"),"aria-modal":i.visible,onClick:t[2]||(t[2]=function(){return r.onOverlayClick&&r.onOverlayClick.apply(r,arguments)}),onKeydown:t[3]||(t[3]=function(){return r.onOverlayKeydown&&r.onOverlayKeydown.apply(r,arguments)})},L(L({},e.$attrs),e.ptm("root"))),[e.$slots.container?a.renderSlot(e.$slots,"container",{key:0,message:i.confirmation,onAccept:r.accept,onReject:r.reject}):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[e.$slots.message?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.$slots.message),{key:1,message:i.confirmation},null,8,["message"])):(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:e.cx("content")},e.ptm("content")),[a.renderSlot(e.$slots,"icon",{},(function(){return[e.$slots.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.$slots.icon),{key:0,class:a.normalizeClass(e.cx("icon"))},null,8,["class"])):i.confirmation.icon?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:1,class:e.cx("icon")},e.ptm("icon")),null,16)):a.createCommentVNode("",!0)]})),a.createElementVNode("span",a.mergeProps({class:e.cx("message")},e.ptm("message")),a.toDisplayString(i.confirmation.message),17)],16)),a.createElementVNode("div",a.mergeProps({class:e.cx("footer")},e.ptm("footer")),[a.createVNode(c,{label:r.rejectLabel,onClick:t[0]||(t[0]=function(e){return r.reject()}),onKeydown:r.onRejectKeydown,autofocus:i.autoFocusReject,class:a.normalizeClass([e.cx("rejectButton"),i.confirmation.rejectClass]),unstyled:e.unstyled,pt:e.ptm("rejectButton"),"data-pc-name":"rejectbutton"},a.createSlots({_:2},[r.rejectIcon||e.$slots.rejecticon?{name:"icon",fn:a.withCtx((function(t){return[a.renderSlot(e.$slots,"rejecticon",{},(function(){return[a.createElementVNode("span",a.mergeProps({class:[r.rejectIcon,t.class]},e.ptm("rejectButton").icon,{"data-pc-name":"rejectbuttonicon"}),null,16)]}))]})),key:"0"}:void 0]),1032,["label","onKeydown","autofocus","class","unstyled","pt"]),a.createVNode(c,{label:r.acceptLabel,onClick:t[1]||(t[1]=function(e){return r.accept()}),onKeydown:r.onAcceptKeydown,autofocus:i.autoFocusAccept,class:a.normalizeClass([e.cx("acceptButton"),i.confirmation.acceptClass]),unstyled:e.unstyled,pt:e.ptm("acceptButton"),"data-pc-name":"acceptbutton"},a.createSlots({_:2},[r.acceptIcon||e.$slots.accepticon?{name:"icon",fn:a.withCtx((function(t){return[a.renderSlot(e.$slots,"accepticon",{},(function(){return[a.createElementVNode("span",a.mergeProps({class:[r.acceptIcon,t.class]},e.ptm("acceptButton").icon,{"data-pc-name":"acceptbuttonicon"}),null,16)]}))]})),key:"0"}:void 0]),1032,["label","onKeydown","autofocus","class","unstyled","pt"])],16)],64))],16,w)),[[l]]):a.createCommentVNode("",!0)]})),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:3})},module.exports=b;
@@ -6,9 +6,9 @@ import Portal from 'primevue/portal';
6
6
  import { ZIndexUtils, DomHandler, ConnectedOverlayScrollHandler } from 'primevue/utils';
7
7
  import BaseComponent from 'primevue/basecomponent';
8
8
  import { useStyle } from 'primevue/usestyle';
9
- import { resolveComponent, resolveDirective, openBlock, createBlock, withCtx, createVNode, Transition, mergeProps, withDirectives, createElementBlock, renderSlot, resolveDynamicComponent, normalizeClass, createCommentVNode, createElementVNode, toDisplayString, createSlots } from 'vue';
9
+ import { resolveComponent, resolveDirective, openBlock, createBlock, withCtx, createVNode, Transition, mergeProps, withDirectives, createElementBlock, renderSlot, Fragment, resolveDynamicComponent, normalizeClass, createCommentVNode, createElementVNode, toDisplayString, createSlots } from 'vue';
10
10
 
11
- var styles = "\n.p-confirm-popup {\n position: absolute;\n margin-top: 10px;\n top: 0;\n left: 0;\n}\n\n.p-confirm-popup-flipped {\n margin-top: 0;\n margin-bottom: 10px;\n}\n\n/* Animation */\n.p-confirm-popup-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n}\n\n.p-confirm-popup-leave-to {\n opacity: 0;\n}\n\n.p-confirm-popup-enter-active {\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-confirm-popup-leave-active {\n transition: opacity 0.1s linear;\n}\n\n.p-confirm-popup:after,\n.p-confirm-popup:before {\n bottom: 100%;\n left: calc(var(--overlayArrowLeft, 0) + 1.25rem);\n content: ' ';\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n\n.p-confirm-popup:after {\n border-width: 8px;\n margin-left: -8px;\n}\n\n.p-confirm-popup:before {\n border-width: 10px;\n margin-left: -10px;\n}\n\n.p-confirm-popup-flipped:after,\n.p-confirm-popup-flipped:before {\n bottom: auto;\n top: 100%;\n}\n\n.p-confirm-popup.p-confirm-popup-flipped:after {\n border-bottom-color: transparent;\n}\n\n.p-confirm-popup.p-confirm-popup-flipped:before {\n border-bottom-color: transparent;\n}\n\n.p-confirm-popup .p-confirm-popup-content {\n display: flex;\n align-items: center;\n}\n";
11
+ var styles = "\n@layer primevue {\n .p-confirm-popup {\n position: absolute;\n margin-top: 10px;\n top: 0;\n left: 0;\n }\n \n .p-confirm-popup-flipped {\n margin-top: 0;\n margin-bottom: 10px;\n }\n \n /* Animation */\n .p-confirm-popup-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n }\n \n .p-confirm-popup-leave-to {\n opacity: 0;\n }\n \n .p-confirm-popup-enter-active {\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n \n .p-confirm-popup-leave-active {\n transition: opacity 0.1s linear;\n }\n \n .p-confirm-popup:after,\n .p-confirm-popup:before {\n bottom: 100%;\n left: calc(var(--overlayArrowLeft, 0) + 1.25rem);\n content: ' ';\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n }\n \n .p-confirm-popup:after {\n border-width: 8px;\n margin-left: -8px;\n }\n \n .p-confirm-popup:before {\n border-width: 10px;\n margin-left: -10px;\n }\n \n .p-confirm-popup-flipped:after,\n .p-confirm-popup-flipped:before {\n bottom: auto;\n top: 100%;\n }\n \n .p-confirm-popup.p-confirm-popup-flipped:after {\n border-bottom-color: transparent;\n }\n \n .p-confirm-popup.p-confirm-popup-flipped:before {\n border-bottom-color: transparent;\n }\n \n .p-confirm-popup .p-confirm-popup-content {\n display: flex;\n align-items: center;\n }\n}\n";
12
12
  var classes = {
13
13
  root: function root(_ref) {
14
14
  var instance = _ref.instance;
@@ -26,12 +26,9 @@ var classes = {
26
26
  footer: 'p-confirm-popup-footer',
27
27
  rejectButton: function rejectButton(_ref3) {
28
28
  var instance = _ref3.instance;
29
- return ['p-confirm-dialog-reject', instance.confirmation ? instance.confirmation.rejectClass || 'p-button-text' : null];
29
+ return ['p-confirm-dialog-reject', instance.confirmation && !instance.confirmation.rejectClass ? 'p-button-text' : null];
30
30
  },
31
- acceptButton: function acceptButton(_ref4) {
32
- var instance = _ref4.instance;
33
- return ['p-confirm-dialog-accept', instance.confirmation ? instance.confirmation.acceptClass : null];
34
- }
31
+ acceptButton: 'p-confirm-dialog-accept'
35
32
  };
36
33
  var _useStyle = useStyle(styles, {
37
34
  name: 'confirmpopup',
@@ -329,7 +326,14 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
329
326
  onKeydown: _cache[3] || (_cache[3] = function () {
330
327
  return $options.onOverlayKeydown && $options.onOverlayKeydown.apply($options, arguments);
331
328
  })
332
- }, _objectSpread(_objectSpread({}, _ctx.$attrs), _ctx.ptm('root'))), [!_ctx.$slots.message ? (openBlock(), createElementBlock("div", mergeProps({
329
+ }, _objectSpread(_objectSpread({}, _ctx.$attrs), _ctx.ptm('root'))), [_ctx.$slots.container ? renderSlot(_ctx.$slots, "container", {
330
+ key: 0,
331
+ message: $data.confirmation,
332
+ onAccept: $options.accept,
333
+ onReject: $options.reject
334
+ }) : (openBlock(), createElementBlock(Fragment, {
335
+ key: 1
336
+ }, [!_ctx.$slots.message ? (openBlock(), createElementBlock("div", mergeProps({
333
337
  key: 0,
334
338
  "class": _ctx.cx('content')
335
339
  }, _ctx.ptm('content')), [renderSlot(_ctx.$slots, "icon", {}, function () {
@@ -354,7 +358,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
354
358
  }),
355
359
  onKeydown: $options.onRejectKeydown,
356
360
  autofocus: $data.autoFocusReject,
357
- "class": normalizeClass(_ctx.cx('rejectButton')),
361
+ "class": normalizeClass([_ctx.cx('rejectButton'), $data.confirmation.rejectClass]),
358
362
  unstyled: _ctx.unstyled,
359
363
  pt: _ctx.ptm('rejectButton'),
360
364
  "data-pc-name": "rejectbutton"
@@ -379,7 +383,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
379
383
  }),
380
384
  onKeydown: $options.onAcceptKeydown,
381
385
  autofocus: $data.autoFocusAccept,
382
- "class": normalizeClass(_ctx.cx('acceptButton')),
386
+ "class": normalizeClass([_ctx.cx('acceptButton'), $data.confirmation.acceptClass]),
383
387
  unstyled: _ctx.unstyled,
384
388
  pt: _ctx.ptm('acceptButton'),
385
389
  "data-pc-name": "acceptbutton"
@@ -397,7 +401,7 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
397
401
  })];
398
402
  }),
399
403
  key: "0"
400
- } : undefined]), 1032, ["label", "onKeydown", "autofocus", "class", "unstyled", "pt"])], 16)], 16, _hoisted_1)), [[_directive_focustrap]]) : createCommentVNode("", true)];
404
+ } : undefined]), 1032, ["label", "onKeydown", "autofocus", "class", "unstyled", "pt"])], 16)], 64))], 16, _hoisted_1)), [[_directive_focustrap]]) : createCommentVNode("", true)];
401
405
  }),
402
406
  _: 3
403
407
  }, 16, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])];
@@ -1 +1 @@
1
- import n from"primevue/button";import t from"primevue/confirmationeventbus";import e from"primevue/focustrap";import o from"primevue/overlayeventbus";import i from"primevue/portal";import{ZIndexUtils as r,DomHandler as c,ConnectedOverlayScrollHandler as s}from"primevue/utils";import a from"primevue/basecomponent";import{useStyle as l}from"primevue/usestyle";import{resolveComponent as u,resolveDirective as p,openBlock as f,createBlock as m,withCtx as d,createVNode as h,Transition as v,mergeProps as b,withDirectives as y,createElementBlock as g,renderSlot as L,resolveDynamicComponent as j,normalizeClass as O,createCommentVNode as w,createElementVNode as k,toDisplayString as C,createSlots as S}from"vue";var x=l("\n.p-confirm-popup {\n position: absolute;\n margin-top: 10px;\n top: 0;\n left: 0;\n}\n\n.p-confirm-popup-flipped {\n margin-top: 0;\n margin-bottom: 10px;\n}\n\n/* Animation */\n.p-confirm-popup-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n}\n\n.p-confirm-popup-leave-to {\n opacity: 0;\n}\n\n.p-confirm-popup-enter-active {\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-confirm-popup-leave-active {\n transition: opacity 0.1s linear;\n}\n\n.p-confirm-popup:after,\n.p-confirm-popup:before {\n bottom: 100%;\n left: calc(var(--overlayArrowLeft, 0) + 1.25rem);\n content: ' ';\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n\n.p-confirm-popup:after {\n border-width: 8px;\n margin-left: -8px;\n}\n\n.p-confirm-popup:before {\n border-width: 10px;\n margin-left: -10px;\n}\n\n.p-confirm-popup-flipped:after,\n.p-confirm-popup-flipped:before {\n bottom: auto;\n top: 100%;\n}\n\n.p-confirm-popup.p-confirm-popup-flipped:after {\n border-bottom-color: transparent;\n}\n\n.p-confirm-popup.p-confirm-popup-flipped:before {\n border-bottom-color: transparent;\n}\n\n.p-confirm-popup .p-confirm-popup-content {\n display: flex;\n align-items: center;\n}\n",{name:"confirmpopup",manual:!0}),A={name:"ConfirmPopup",extends:{name:"BaseConfirmPopup",extends:a,props:{group:String},css:{classes:{root:function(n){var t=n.instance;return["p-confirm-popup p-component",{"p-input-filled":"filled"===t.$primevue.config.inputStyle,"p-ripple-disabled":!1===t.$primevue.config.ripple}]},content:"p-confirm-popup-content",icon:function(n){var t=n.instance;return["p-confirm-popup-icon",t.confirmation?t.confirmation.icon:null]},message:"p-confirm-popup-message",footer:"p-confirm-popup-footer",rejectButton:function(n){var t=n.instance;return["p-confirm-dialog-reject",t.confirmation?t.confirmation.rejectClass||"p-button-text":null]},acceptButton:function(n){var t=n.instance;return["p-confirm-dialog-accept",t.confirmation?t.confirmation.acceptClass:null]}},loadStyle:x.load},provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,data:function(){return{visible:!1,confirmation:null,autoFocusAccept:null,autoFocusReject:null}},target:null,outsideClickListener:null,scrollHandler:null,resizeListener:null,container:null,confirmListener:null,closeListener:null,mounted:function(){var n=this;this.confirmListener=function(t){t&&t.group===n.group&&(n.confirmation=t,n.target=t.target,n.confirmation.onShow&&n.confirmation.onShow(),n.visible=!0)},this.closeListener=function(){n.visible=!1,n.confirmation=null},t.on("confirm",this.confirmListener),t.on("close",this.closeListener)},beforeUnmount:function(){t.off("confirm",this.confirmListener),t.off("close",this.closeListener),this.unbindOutsideClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindResizeListener(),this.container&&(r.clear(this.container),this.container=null),this.target=null,this.confirmation=null},methods:{accept:function(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject:function(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onHide:function(){this.confirmation.onHide&&this.confirmation.onHide(),this.visible=!1},onAcceptKeydown:function(n){"Space"!==n.code&&"Enter"!==n.code||(this.accept(),c.focus(this.target),n.preventDefault())},onRejectKeydown:function(n){"Space"!==n.code&&"Enter"!==n.code||(this.reject(),c.focus(this.target),n.preventDefault())},onEnter:function(n){this.autoFocusAccept=void 0===this.confirmation.defaultFocus||"accept"===this.confirmation.defaultFocus,this.autoFocusReject="reject"===this.confirmation.defaultFocus,this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),r.set("overlay",n,this.$primevue.config.zIndex.overlay)},onAfterEnter:function(){this.focus()},onLeave:function(){this.autoFocusAccept=null,this.autoFocusReject=null,this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener()},onAfterLeave:function(n){r.clear(n)},alignOverlay:function(){c.absolutePosition(this.container,this.target);var n=c.getOffset(this.container),t=c.getOffset(this.target),e=0;n.left<t.left&&(e=t.left-n.left),this.container.style.setProperty("--overlayArrowLeft","".concat(e,"px")),n.top<t.top&&(this.container.setAttribute("data-p-confirm-popup-flipped","true"),!this.isUnstyled&&c.addClass(this.container,"p-confirm-popup-flipped"))},bindOutsideClickListener:function(){var n=this;this.outsideClickListener||(this.outsideClickListener=function(t){n.visible&&n.container&&!n.container.contains(t.target)&&!n.isTargetClicked(t)?(n.confirmation.onHide&&n.confirmation.onHide(),n.visible=!1):n.alignOverlay()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var n=this;this.scrollHandler||(this.scrollHandler=new s(this.target,(function(){n.visible&&(n.visible=!1)}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var n=this;this.resizeListener||(this.resizeListener=function(){n.visible&&!c.isTouchDevice()&&(n.visible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},focus:function(){var n=this.container.querySelector("[autofocus]");n&&n.focus({preventScroll:!0})},isTargetClicked:function(n){return this.target&&(this.target===n.target||this.target.contains(n.target))},containerRef:function(n){this.container=n},onOverlayClick:function(n){o.emit("overlay-click",{originalEvent:n,target:this.target})},onOverlayKeydown:function(n){"Escape"===n.code&&(t.emit("close",this.closeListener),c.focus(this.target))},getCXOptions:function(n,t){return{contenxt:{icon:n,iconClass:t.class}}}},computed:{message:function(){return this.confirmation?this.confirmation.message:null},acceptLabel:function(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel:function(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon:function(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon:function(){return this.confirmation?this.confirmation.rejectIcon:null}},components:{CPButton:n,Portal:i},directives:{focustrap:e}};function E(n){return E="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},E(n)}function P(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,o)}return e}function z(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?P(Object(e),!0).forEach((function(t){$(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):P(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function $(n,t,e){return(t=H(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function H(n){var t=R(n,"string");return"symbol"===E(t)?t:String(t)}function R(n,t){if("object"!==E(n)||null===n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var o=e.call(n,t||"default");if("object"!==E(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}var K=["aria-modal"];A.render=function(n,t,e,o,i,r){var c=u("CPButton"),s=u("Portal"),a=p("focustrap");return f(),m(s,null,{default:d((function(){return[h(v,b({name:"p-confirm-popup",onEnter:r.onEnter,onAfterEnter:r.onAfterEnter,onLeave:r.onLeave,onAfterLeave:r.onAfterLeave},n.ptm("transition")),{default:d((function(){return[i.visible?y((f(),g("div",b({key:0,ref:r.containerRef,role:"alertdialog",class:n.cx("root"),"aria-modal":i.visible,onClick:t[2]||(t[2]=function(){return r.onOverlayClick&&r.onOverlayClick.apply(r,arguments)}),onKeydown:t[3]||(t[3]=function(){return r.onOverlayKeydown&&r.onOverlayKeydown.apply(r,arguments)})},z(z({},n.$attrs),n.ptm("root"))),[n.$slots.message?(f(),m(j(n.$slots.message),{key:1,message:i.confirmation},null,8,["message"])):(f(),g("div",b({key:0,class:n.cx("content")},n.ptm("content")),[L(n.$slots,"icon",{},(function(){return[n.$slots.icon?(f(),m(j(n.$slots.icon),{key:0,class:O(n.cx("icon"))},null,8,["class"])):i.confirmation.icon?(f(),g("span",b({key:1,class:n.cx("icon")},n.ptm("icon")),null,16)):w("",!0)]})),k("span",b({class:n.cx("message")},n.ptm("message")),C(i.confirmation.message),17)],16)),k("div",b({class:n.cx("footer")},n.ptm("footer")),[h(c,{label:r.rejectLabel,onClick:t[0]||(t[0]=function(n){return r.reject()}),onKeydown:r.onRejectKeydown,autofocus:i.autoFocusReject,class:O(n.cx("rejectButton")),unstyled:n.unstyled,pt:n.ptm("rejectButton"),"data-pc-name":"rejectbutton"},S({_:2},[r.rejectIcon||n.$slots.rejecticon?{name:"icon",fn:d((function(t){return[L(n.$slots,"rejecticon",{},(function(){return[k("span",b({class:[r.rejectIcon,t.class]},n.ptm("rejectButton").icon,{"data-pc-name":"rejectbuttonicon"}),null,16)]}))]})),key:"0"}:void 0]),1032,["label","onKeydown","autofocus","class","unstyled","pt"]),h(c,{label:r.acceptLabel,onClick:t[1]||(t[1]=function(n){return r.accept()}),onKeydown:r.onAcceptKeydown,autofocus:i.autoFocusAccept,class:O(n.cx("acceptButton")),unstyled:n.unstyled,pt:n.ptm("acceptButton"),"data-pc-name":"acceptbutton"},S({_:2},[r.acceptIcon||n.$slots.accepticon?{name:"icon",fn:d((function(t){return[L(n.$slots,"accepticon",{},(function(){return[k("span",b({class:[r.acceptIcon,t.class]},n.ptm("acceptButton").icon,{"data-pc-name":"acceptbuttonicon"}),null,16)]}))]})),key:"0"}:void 0]),1032,["label","onKeydown","autofocus","class","unstyled","pt"])],16)],16,K)),[[a]]):w("",!0)]})),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:3})};export{A as default};
1
+ import n from"primevue/button";import t from"primevue/confirmationeventbus";import e from"primevue/focustrap";import o from"primevue/overlayeventbus";import i from"primevue/portal";import{ZIndexUtils as r,DomHandler as c,ConnectedOverlayScrollHandler as s}from"primevue/utils";import a from"primevue/basecomponent";import{useStyle as l}from"primevue/usestyle";import{resolveComponent as u,resolveDirective as p,openBlock as f,createBlock as m,withCtx as d,createVNode as h,Transition as v,mergeProps as b,withDirectives as y,createElementBlock as g,renderSlot as L,Fragment as j,resolveDynamicComponent as O,normalizeClass as k,createCommentVNode as w,createElementVNode as C,toDisplayString as S,createSlots as x}from"vue";var A=l("\n@layer primevue {\n .p-confirm-popup {\n position: absolute;\n margin-top: 10px;\n top: 0;\n left: 0;\n }\n \n .p-confirm-popup-flipped {\n margin-top: 0;\n margin-bottom: 10px;\n }\n \n /* Animation */\n .p-confirm-popup-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n }\n \n .p-confirm-popup-leave-to {\n opacity: 0;\n }\n \n .p-confirm-popup-enter-active {\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n \n .p-confirm-popup-leave-active {\n transition: opacity 0.1s linear;\n }\n \n .p-confirm-popup:after,\n .p-confirm-popup:before {\n bottom: 100%;\n left: calc(var(--overlayArrowLeft, 0) + 1.25rem);\n content: ' ';\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n }\n \n .p-confirm-popup:after {\n border-width: 8px;\n margin-left: -8px;\n }\n \n .p-confirm-popup:before {\n border-width: 10px;\n margin-left: -10px;\n }\n \n .p-confirm-popup-flipped:after,\n .p-confirm-popup-flipped:before {\n bottom: auto;\n top: 100%;\n }\n \n .p-confirm-popup.p-confirm-popup-flipped:after {\n border-bottom-color: transparent;\n }\n \n .p-confirm-popup.p-confirm-popup-flipped:before {\n border-bottom-color: transparent;\n }\n \n .p-confirm-popup .p-confirm-popup-content {\n display: flex;\n align-items: center;\n }\n}\n",{name:"confirmpopup",manual:!0}),E={name:"ConfirmPopup",extends:{name:"BaseConfirmPopup",extends:a,props:{group:String},css:{classes:{root:function(n){var t=n.instance;return["p-confirm-popup p-component",{"p-input-filled":"filled"===t.$primevue.config.inputStyle,"p-ripple-disabled":!1===t.$primevue.config.ripple}]},content:"p-confirm-popup-content",icon:function(n){var t=n.instance;return["p-confirm-popup-icon",t.confirmation?t.confirmation.icon:null]},message:"p-confirm-popup-message",footer:"p-confirm-popup-footer",rejectButton:function(n){var t=n.instance;return["p-confirm-dialog-reject",t.confirmation&&!t.confirmation.rejectClass?"p-button-text":null]},acceptButton:"p-confirm-dialog-accept"},loadStyle:A.load},provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,data:function(){return{visible:!1,confirmation:null,autoFocusAccept:null,autoFocusReject:null}},target:null,outsideClickListener:null,scrollHandler:null,resizeListener:null,container:null,confirmListener:null,closeListener:null,mounted:function(){var n=this;this.confirmListener=function(t){t&&t.group===n.group&&(n.confirmation=t,n.target=t.target,n.confirmation.onShow&&n.confirmation.onShow(),n.visible=!0)},this.closeListener=function(){n.visible=!1,n.confirmation=null},t.on("confirm",this.confirmListener),t.on("close",this.closeListener)},beforeUnmount:function(){t.off("confirm",this.confirmListener),t.off("close",this.closeListener),this.unbindOutsideClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindResizeListener(),this.container&&(r.clear(this.container),this.container=null),this.target=null,this.confirmation=null},methods:{accept:function(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject:function(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onHide:function(){this.confirmation.onHide&&this.confirmation.onHide(),this.visible=!1},onAcceptKeydown:function(n){"Space"!==n.code&&"Enter"!==n.code||(this.accept(),c.focus(this.target),n.preventDefault())},onRejectKeydown:function(n){"Space"!==n.code&&"Enter"!==n.code||(this.reject(),c.focus(this.target),n.preventDefault())},onEnter:function(n){this.autoFocusAccept=void 0===this.confirmation.defaultFocus||"accept"===this.confirmation.defaultFocus,this.autoFocusReject="reject"===this.confirmation.defaultFocus,this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),r.set("overlay",n,this.$primevue.config.zIndex.overlay)},onAfterEnter:function(){this.focus()},onLeave:function(){this.autoFocusAccept=null,this.autoFocusReject=null,this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener()},onAfterLeave:function(n){r.clear(n)},alignOverlay:function(){c.absolutePosition(this.container,this.target);var n=c.getOffset(this.container),t=c.getOffset(this.target),e=0;n.left<t.left&&(e=t.left-n.left),this.container.style.setProperty("--overlayArrowLeft","".concat(e,"px")),n.top<t.top&&(this.container.setAttribute("data-p-confirm-popup-flipped","true"),!this.isUnstyled&&c.addClass(this.container,"p-confirm-popup-flipped"))},bindOutsideClickListener:function(){var n=this;this.outsideClickListener||(this.outsideClickListener=function(t){n.visible&&n.container&&!n.container.contains(t.target)&&!n.isTargetClicked(t)?(n.confirmation.onHide&&n.confirmation.onHide(),n.visible=!1):n.alignOverlay()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var n=this;this.scrollHandler||(this.scrollHandler=new s(this.target,(function(){n.visible&&(n.visible=!1)}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var n=this;this.resizeListener||(this.resizeListener=function(){n.visible&&!c.isTouchDevice()&&(n.visible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},focus:function(){var n=this.container.querySelector("[autofocus]");n&&n.focus({preventScroll:!0})},isTargetClicked:function(n){return this.target&&(this.target===n.target||this.target.contains(n.target))},containerRef:function(n){this.container=n},onOverlayClick:function(n){o.emit("overlay-click",{originalEvent:n,target:this.target})},onOverlayKeydown:function(n){"Escape"===n.code&&(t.emit("close",this.closeListener),c.focus(this.target))},getCXOptions:function(n,t){return{contenxt:{icon:n,iconClass:t.class}}}},computed:{message:function(){return this.confirmation?this.confirmation.message:null},acceptLabel:function(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel:function(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon:function(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon:function(){return this.confirmation?this.confirmation.rejectIcon:null}},components:{CPButton:n,Portal:i},directives:{focustrap:e}};function P(n){return P="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(n){return typeof n}:function(n){return n&&"function"==typeof Symbol&&n.constructor===Symbol&&n!==Symbol.prototype?"symbol":typeof n},P(n)}function $(n,t){var e=Object.keys(n);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(n);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(n,t).enumerable}))),e.push.apply(e,o)}return e}function z(n){for(var t=1;t<arguments.length;t++){var e=null!=arguments[t]?arguments[t]:{};t%2?$(Object(e),!0).forEach((function(t){H(n,t,e[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(e)):$(Object(e)).forEach((function(t){Object.defineProperty(n,t,Object.getOwnPropertyDescriptor(e,t))}))}return n}function H(n,t,e){return(t=R(t))in n?Object.defineProperty(n,t,{value:e,enumerable:!0,configurable:!0,writable:!0}):n[t]=e,n}function R(n){var t=K(n,"string");return"symbol"===P(t)?t:String(t)}function K(n,t){if("object"!==P(n)||null===n)return n;var e=n[Symbol.toPrimitive];if(void 0!==e){var o=e.call(n,t||"default");if("object"!==P(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(n)}var B=["aria-modal"];E.render=function(n,t,e,o,i,r){var c=u("CPButton"),s=u("Portal"),a=p("focustrap");return f(),m(s,null,{default:d((function(){return[h(v,b({name:"p-confirm-popup",onEnter:r.onEnter,onAfterEnter:r.onAfterEnter,onLeave:r.onLeave,onAfterLeave:r.onAfterLeave},n.ptm("transition")),{default:d((function(){return[i.visible?y((f(),g("div",b({key:0,ref:r.containerRef,role:"alertdialog",class:n.cx("root"),"aria-modal":i.visible,onClick:t[2]||(t[2]=function(){return r.onOverlayClick&&r.onOverlayClick.apply(r,arguments)}),onKeydown:t[3]||(t[3]=function(){return r.onOverlayKeydown&&r.onOverlayKeydown.apply(r,arguments)})},z(z({},n.$attrs),n.ptm("root"))),[n.$slots.container?L(n.$slots,"container",{key:0,message:i.confirmation,onAccept:r.accept,onReject:r.reject}):(f(),g(j,{key:1},[n.$slots.message?(f(),m(O(n.$slots.message),{key:1,message:i.confirmation},null,8,["message"])):(f(),g("div",b({key:0,class:n.cx("content")},n.ptm("content")),[L(n.$slots,"icon",{},(function(){return[n.$slots.icon?(f(),m(O(n.$slots.icon),{key:0,class:k(n.cx("icon"))},null,8,["class"])):i.confirmation.icon?(f(),g("span",b({key:1,class:n.cx("icon")},n.ptm("icon")),null,16)):w("",!0)]})),C("span",b({class:n.cx("message")},n.ptm("message")),S(i.confirmation.message),17)],16)),C("div",b({class:n.cx("footer")},n.ptm("footer")),[h(c,{label:r.rejectLabel,onClick:t[0]||(t[0]=function(n){return r.reject()}),onKeydown:r.onRejectKeydown,autofocus:i.autoFocusReject,class:k([n.cx("rejectButton"),i.confirmation.rejectClass]),unstyled:n.unstyled,pt:n.ptm("rejectButton"),"data-pc-name":"rejectbutton"},x({_:2},[r.rejectIcon||n.$slots.rejecticon?{name:"icon",fn:d((function(t){return[L(n.$slots,"rejecticon",{},(function(){return[C("span",b({class:[r.rejectIcon,t.class]},n.ptm("rejectButton").icon,{"data-pc-name":"rejectbuttonicon"}),null,16)]}))]})),key:"0"}:void 0]),1032,["label","onKeydown","autofocus","class","unstyled","pt"]),h(c,{label:r.acceptLabel,onClick:t[1]||(t[1]=function(n){return r.accept()}),onKeydown:r.onAcceptKeydown,autofocus:i.autoFocusAccept,class:k([n.cx("acceptButton"),i.confirmation.acceptClass]),unstyled:n.unstyled,pt:n.ptm("acceptButton"),"data-pc-name":"acceptbutton"},x({_:2},[r.acceptIcon||n.$slots.accepticon?{name:"icon",fn:d((function(t){return[L(n.$slots,"accepticon",{},(function(){return[C("span",b({class:[r.acceptIcon,t.class]},n.ptm("acceptButton").icon,{"data-pc-name":"acceptbuttonicon"}),null,16)]}))]})),key:"0"}:void 0]),1032,["label","onKeydown","autofocus","class","unstyled","pt"])],16)],64))],16,B)),[[a]]):w("",!0)]})),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:3})};export{E as default};
@@ -11,7 +11,7 @@ this.primevue.confirmpopup = (function (Button, ConfirmationEventBus, FocusTrap,
11
11
  var Portal__default = /*#__PURE__*/_interopDefaultLegacy(Portal);
12
12
  var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
13
13
 
14
- var styles = "\n.p-confirm-popup {\n position: absolute;\n margin-top: 10px;\n top: 0;\n left: 0;\n}\n\n.p-confirm-popup-flipped {\n margin-top: 0;\n margin-bottom: 10px;\n}\n\n/* Animation */\n.p-confirm-popup-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n}\n\n.p-confirm-popup-leave-to {\n opacity: 0;\n}\n\n.p-confirm-popup-enter-active {\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-confirm-popup-leave-active {\n transition: opacity 0.1s linear;\n}\n\n.p-confirm-popup:after,\n.p-confirm-popup:before {\n bottom: 100%;\n left: calc(var(--overlayArrowLeft, 0) + 1.25rem);\n content: ' ';\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n\n.p-confirm-popup:after {\n border-width: 8px;\n margin-left: -8px;\n}\n\n.p-confirm-popup:before {\n border-width: 10px;\n margin-left: -10px;\n}\n\n.p-confirm-popup-flipped:after,\n.p-confirm-popup-flipped:before {\n bottom: auto;\n top: 100%;\n}\n\n.p-confirm-popup.p-confirm-popup-flipped:after {\n border-bottom-color: transparent;\n}\n\n.p-confirm-popup.p-confirm-popup-flipped:before {\n border-bottom-color: transparent;\n}\n\n.p-confirm-popup .p-confirm-popup-content {\n display: flex;\n align-items: center;\n}\n";
14
+ var styles = "\n@layer primevue {\n .p-confirm-popup {\n position: absolute;\n margin-top: 10px;\n top: 0;\n left: 0;\n }\n \n .p-confirm-popup-flipped {\n margin-top: 0;\n margin-bottom: 10px;\n }\n \n /* Animation */\n .p-confirm-popup-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n }\n \n .p-confirm-popup-leave-to {\n opacity: 0;\n }\n \n .p-confirm-popup-enter-active {\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n \n .p-confirm-popup-leave-active {\n transition: opacity 0.1s linear;\n }\n \n .p-confirm-popup:after,\n .p-confirm-popup:before {\n bottom: 100%;\n left: calc(var(--overlayArrowLeft, 0) + 1.25rem);\n content: ' ';\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n }\n \n .p-confirm-popup:after {\n border-width: 8px;\n margin-left: -8px;\n }\n \n .p-confirm-popup:before {\n border-width: 10px;\n margin-left: -10px;\n }\n \n .p-confirm-popup-flipped:after,\n .p-confirm-popup-flipped:before {\n bottom: auto;\n top: 100%;\n }\n \n .p-confirm-popup.p-confirm-popup-flipped:after {\n border-bottom-color: transparent;\n }\n \n .p-confirm-popup.p-confirm-popup-flipped:before {\n border-bottom-color: transparent;\n }\n \n .p-confirm-popup .p-confirm-popup-content {\n display: flex;\n align-items: center;\n }\n}\n";
15
15
  var classes = {
16
16
  root: function root(_ref) {
17
17
  var instance = _ref.instance;
@@ -29,12 +29,9 @@ this.primevue.confirmpopup = (function (Button, ConfirmationEventBus, FocusTrap,
29
29
  footer: 'p-confirm-popup-footer',
30
30
  rejectButton: function rejectButton(_ref3) {
31
31
  var instance = _ref3.instance;
32
- return ['p-confirm-dialog-reject', instance.confirmation ? instance.confirmation.rejectClass || 'p-button-text' : null];
32
+ return ['p-confirm-dialog-reject', instance.confirmation && !instance.confirmation.rejectClass ? 'p-button-text' : null];
33
33
  },
34
- acceptButton: function acceptButton(_ref4) {
35
- var instance = _ref4.instance;
36
- return ['p-confirm-dialog-accept', instance.confirmation ? instance.confirmation.acceptClass : null];
37
- }
34
+ acceptButton: 'p-confirm-dialog-accept'
38
35
  };
39
36
  var _useStyle = usestyle.useStyle(styles, {
40
37
  name: 'confirmpopup',
@@ -332,7 +329,14 @@ this.primevue.confirmpopup = (function (Button, ConfirmationEventBus, FocusTrap,
332
329
  onKeydown: _cache[3] || (_cache[3] = function () {
333
330
  return $options.onOverlayKeydown && $options.onOverlayKeydown.apply($options, arguments);
334
331
  })
335
- }, _objectSpread(_objectSpread({}, _ctx.$attrs), _ctx.ptm('root'))), [!_ctx.$slots.message ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
332
+ }, _objectSpread(_objectSpread({}, _ctx.$attrs), _ctx.ptm('root'))), [_ctx.$slots.container ? vue.renderSlot(_ctx.$slots, "container", {
333
+ key: 0,
334
+ message: $data.confirmation,
335
+ onAccept: $options.accept,
336
+ onReject: $options.reject
337
+ }) : (vue.openBlock(), vue.createElementBlock(vue.Fragment, {
338
+ key: 1
339
+ }, [!_ctx.$slots.message ? (vue.openBlock(), vue.createElementBlock("div", vue.mergeProps({
336
340
  key: 0,
337
341
  "class": _ctx.cx('content')
338
342
  }, _ctx.ptm('content')), [vue.renderSlot(_ctx.$slots, "icon", {}, function () {
@@ -357,7 +361,7 @@ this.primevue.confirmpopup = (function (Button, ConfirmationEventBus, FocusTrap,
357
361
  }),
358
362
  onKeydown: $options.onRejectKeydown,
359
363
  autofocus: $data.autoFocusReject,
360
- "class": vue.normalizeClass(_ctx.cx('rejectButton')),
364
+ "class": vue.normalizeClass([_ctx.cx('rejectButton'), $data.confirmation.rejectClass]),
361
365
  unstyled: _ctx.unstyled,
362
366
  pt: _ctx.ptm('rejectButton'),
363
367
  "data-pc-name": "rejectbutton"
@@ -382,7 +386,7 @@ this.primevue.confirmpopup = (function (Button, ConfirmationEventBus, FocusTrap,
382
386
  }),
383
387
  onKeydown: $options.onAcceptKeydown,
384
388
  autofocus: $data.autoFocusAccept,
385
- "class": vue.normalizeClass(_ctx.cx('acceptButton')),
389
+ "class": vue.normalizeClass([_ctx.cx('acceptButton'), $data.confirmation.acceptClass]),
386
390
  unstyled: _ctx.unstyled,
387
391
  pt: _ctx.ptm('acceptButton'),
388
392
  "data-pc-name": "acceptbutton"
@@ -400,7 +404,7 @@ this.primevue.confirmpopup = (function (Button, ConfirmationEventBus, FocusTrap,
400
404
  })];
401
405
  }),
402
406
  key: "0"
403
- } : undefined]), 1032, ["label", "onKeydown", "autofocus", "class", "unstyled", "pt"])], 16)], 16, _hoisted_1)), [[_directive_focustrap]]) : vue.createCommentVNode("", true)];
407
+ } : undefined]), 1032, ["label", "onKeydown", "autofocus", "class", "unstyled", "pt"])], 16)], 64))], 16, _hoisted_1)), [[_directive_focustrap]]) : vue.createCommentVNode("", true)];
404
408
  }),
405
409
  _: 3
406
410
  }, 16, ["onEnter", "onAfterEnter", "onLeave", "onAfterLeave"])];
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.confirmpopup=function(e,n,t,o,i,r,c,s,a){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=l(e),p=l(n),f=l(t),m=l(o),d=l(i),h=l(c),v=s.useStyle("\n.p-confirm-popup {\n position: absolute;\n margin-top: 10px;\n top: 0;\n left: 0;\n}\n\n.p-confirm-popup-flipped {\n margin-top: 0;\n margin-bottom: 10px;\n}\n\n/* Animation */\n.p-confirm-popup-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n}\n\n.p-confirm-popup-leave-to {\n opacity: 0;\n}\n\n.p-confirm-popup-enter-active {\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n}\n\n.p-confirm-popup-leave-active {\n transition: opacity 0.1s linear;\n}\n\n.p-confirm-popup:after,\n.p-confirm-popup:before {\n bottom: 100%;\n left: calc(var(--overlayArrowLeft, 0) + 1.25rem);\n content: ' ';\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n}\n\n.p-confirm-popup:after {\n border-width: 8px;\n margin-left: -8px;\n}\n\n.p-confirm-popup:before {\n border-width: 10px;\n margin-left: -10px;\n}\n\n.p-confirm-popup-flipped:after,\n.p-confirm-popup-flipped:before {\n bottom: auto;\n top: 100%;\n}\n\n.p-confirm-popup.p-confirm-popup-flipped:after {\n border-bottom-color: transparent;\n}\n\n.p-confirm-popup.p-confirm-popup-flipped:before {\n border-bottom-color: transparent;\n}\n\n.p-confirm-popup .p-confirm-popup-content {\n display: flex;\n align-items: center;\n}\n",{name:"confirmpopup",manual:!0}),b={name:"ConfirmPopup",extends:{name:"BaseConfirmPopup",extends:h.default,props:{group:String},css:{classes:{root:function(e){var n=e.instance;return["p-confirm-popup p-component",{"p-input-filled":"filled"===n.$primevue.config.inputStyle,"p-ripple-disabled":!1===n.$primevue.config.ripple}]},content:"p-confirm-popup-content",icon:function(e){var n=e.instance;return["p-confirm-popup-icon",n.confirmation?n.confirmation.icon:null]},message:"p-confirm-popup-message",footer:"p-confirm-popup-footer",rejectButton:function(e){var n=e.instance;return["p-confirm-dialog-reject",n.confirmation?n.confirmation.rejectClass||"p-button-text":null]},acceptButton:function(e){var n=e.instance;return["p-confirm-dialog-accept",n.confirmation?n.confirmation.acceptClass:null]}},loadStyle:v.load},provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,data:function(){return{visible:!1,confirmation:null,autoFocusAccept:null,autoFocusReject:null}},target:null,outsideClickListener:null,scrollHandler:null,resizeListener:null,container:null,confirmListener:null,closeListener:null,mounted:function(){var e=this;this.confirmListener=function(n){n&&n.group===e.group&&(e.confirmation=n,e.target=n.target,e.confirmation.onShow&&e.confirmation.onShow(),e.visible=!0)},this.closeListener=function(){e.visible=!1,e.confirmation=null},p.default.on("confirm",this.confirmListener),p.default.on("close",this.closeListener)},beforeUnmount:function(){p.default.off("confirm",this.confirmListener),p.default.off("close",this.closeListener),this.unbindOutsideClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindResizeListener(),this.container&&(r.ZIndexUtils.clear(this.container),this.container=null),this.target=null,this.confirmation=null},methods:{accept:function(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject:function(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onHide:function(){this.confirmation.onHide&&this.confirmation.onHide(),this.visible=!1},onAcceptKeydown:function(e){"Space"!==e.code&&"Enter"!==e.code||(this.accept(),r.DomHandler.focus(this.target),e.preventDefault())},onRejectKeydown:function(e){"Space"!==e.code&&"Enter"!==e.code||(this.reject(),r.DomHandler.focus(this.target),e.preventDefault())},onEnter:function(e){this.autoFocusAccept=void 0===this.confirmation.defaultFocus||"accept"===this.confirmation.defaultFocus,this.autoFocusReject="reject"===this.confirmation.defaultFocus,this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),r.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay)},onAfterEnter:function(){this.focus()},onLeave:function(){this.autoFocusAccept=null,this.autoFocusReject=null,this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener()},onAfterLeave:function(e){r.ZIndexUtils.clear(e)},alignOverlay:function(){r.DomHandler.absolutePosition(this.container,this.target);var e=r.DomHandler.getOffset(this.container),n=r.DomHandler.getOffset(this.target),t=0;e.left<n.left&&(t=n.left-e.left),this.container.style.setProperty("--overlayArrowLeft","".concat(t,"px")),e.top<n.top&&(this.container.setAttribute("data-p-confirm-popup-flipped","true"),!this.isUnstyled&&r.DomHandler.addClass(this.container,"p-confirm-popup-flipped"))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(n){e.visible&&e.container&&!e.container.contains(n.target)&&!e.isTargetClicked(n)?(e.confirmation.onHide&&e.confirmation.onHide(),e.visible=!1):e.alignOverlay()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new r.ConnectedOverlayScrollHandler(this.target,(function(){e.visible&&(e.visible=!1)}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.visible&&!r.DomHandler.isTouchDevice()&&(e.visible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},focus:function(){var e=this.container.querySelector("[autofocus]");e&&e.focus({preventScroll:!0})},isTargetClicked:function(e){return this.target&&(this.target===e.target||this.target.contains(e.target))},containerRef:function(e){this.container=e},onOverlayClick:function(e){m.default.emit("overlay-click",{originalEvent:e,target:this.target})},onOverlayKeydown:function(e){"Escape"===e.code&&(p.default.emit("close",this.closeListener),r.DomHandler.focus(this.target))},getCXOptions:function(e,n){return{contenxt:{icon:e,iconClass:n.class}}}},computed:{message:function(){return this.confirmation?this.confirmation.message:null},acceptLabel:function(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel:function(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon:function(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon:function(){return this.confirmation?this.confirmation.rejectIcon:null}},components:{CPButton:u.default,Portal:d.default},directives:{focustrap:f.default}};function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function g(e,n){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);n&&(o=o.filter((function(n){return Object.getOwnPropertyDescriptor(e,n).enumerable}))),t.push.apply(t,o)}return t}function L(e){for(var n=1;n<arguments.length;n++){var t=null!=arguments[n]?arguments[n]:{};n%2?g(Object(t),!0).forEach((function(n){j(e,n,t[n])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):g(Object(t)).forEach((function(n){Object.defineProperty(e,n,Object.getOwnPropertyDescriptor(t,n))}))}return e}function j(e,n,t){return(n=k(n))in e?Object.defineProperty(e,n,{value:t,enumerable:!0,configurable:!0,writable:!0}):e[n]=t,e}function k(e){var n=C(e,"string");return"symbol"===y(n)?n:String(n)}function C(e,n){if("object"!==y(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var o=t.call(e,n||"default");if("object"!==y(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===n?String:Number)(e)}var w=["aria-modal"];return b.render=function(e,n,t,o,i,r){var c=a.resolveComponent("CPButton"),s=a.resolveComponent("Portal"),l=a.resolveDirective("focustrap");return a.openBlock(),a.createBlock(s,null,{default:a.withCtx((function(){return[a.createVNode(a.Transition,a.mergeProps({name:"p-confirm-popup",onEnter:r.onEnter,onAfterEnter:r.onAfterEnter,onLeave:r.onLeave,onAfterLeave:r.onAfterLeave},e.ptm("transition")),{default:a.withCtx((function(){return[i.visible?a.withDirectives((a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,ref:r.containerRef,role:"alertdialog",class:e.cx("root"),"aria-modal":i.visible,onClick:n[2]||(n[2]=function(){return r.onOverlayClick&&r.onOverlayClick.apply(r,arguments)}),onKeydown:n[3]||(n[3]=function(){return r.onOverlayKeydown&&r.onOverlayKeydown.apply(r,arguments)})},L(L({},e.$attrs),e.ptm("root"))),[e.$slots.message?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.$slots.message),{key:1,message:i.confirmation},null,8,["message"])):(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:e.cx("content")},e.ptm("content")),[a.renderSlot(e.$slots,"icon",{},(function(){return[e.$slots.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.$slots.icon),{key:0,class:a.normalizeClass(e.cx("icon"))},null,8,["class"])):i.confirmation.icon?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:1,class:e.cx("icon")},e.ptm("icon")),null,16)):a.createCommentVNode("",!0)]})),a.createElementVNode("span",a.mergeProps({class:e.cx("message")},e.ptm("message")),a.toDisplayString(i.confirmation.message),17)],16)),a.createElementVNode("div",a.mergeProps({class:e.cx("footer")},e.ptm("footer")),[a.createVNode(c,{label:r.rejectLabel,onClick:n[0]||(n[0]=function(e){return r.reject()}),onKeydown:r.onRejectKeydown,autofocus:i.autoFocusReject,class:a.normalizeClass(e.cx("rejectButton")),unstyled:e.unstyled,pt:e.ptm("rejectButton"),"data-pc-name":"rejectbutton"},a.createSlots({_:2},[r.rejectIcon||e.$slots.rejecticon?{name:"icon",fn:a.withCtx((function(n){return[a.renderSlot(e.$slots,"rejecticon",{},(function(){return[a.createElementVNode("span",a.mergeProps({class:[r.rejectIcon,n.class]},e.ptm("rejectButton").icon,{"data-pc-name":"rejectbuttonicon"}),null,16)]}))]})),key:"0"}:void 0]),1032,["label","onKeydown","autofocus","class","unstyled","pt"]),a.createVNode(c,{label:r.acceptLabel,onClick:n[1]||(n[1]=function(e){return r.accept()}),onKeydown:r.onAcceptKeydown,autofocus:i.autoFocusAccept,class:a.normalizeClass(e.cx("acceptButton")),unstyled:e.unstyled,pt:e.ptm("acceptButton"),"data-pc-name":"acceptbutton"},a.createSlots({_:2},[r.acceptIcon||e.$slots.accepticon?{name:"icon",fn:a.withCtx((function(n){return[a.renderSlot(e.$slots,"accepticon",{},(function(){return[a.createElementVNode("span",a.mergeProps({class:[r.acceptIcon,n.class]},e.ptm("acceptButton").icon,{"data-pc-name":"acceptbuttonicon"}),null,16)]}))]})),key:"0"}:void 0]),1032,["label","onKeydown","autofocus","class","unstyled","pt"])],16)],16,w)),[[l]]):a.createCommentVNode("",!0)]})),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:3})},b}(primevue.button,primevue.confirmationeventbus,primevue.focustrap,primevue.overlayeventbus,primevue.portal,primevue.utils,primevue.basecomponent,primevue.usestyle,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.confirmpopup=function(e,t,n,o,i,r,c,s,a){"use strict";function l(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var u=l(e),p=l(t),f=l(n),m=l(o),d=l(i),h=l(c),v=s.useStyle("\n@layer primevue {\n .p-confirm-popup {\n position: absolute;\n margin-top: 10px;\n top: 0;\n left: 0;\n }\n \n .p-confirm-popup-flipped {\n margin-top: 0;\n margin-bottom: 10px;\n }\n \n /* Animation */\n .p-confirm-popup-enter-from {\n opacity: 0;\n transform: scaleY(0.8);\n }\n \n .p-confirm-popup-leave-to {\n opacity: 0;\n }\n \n .p-confirm-popup-enter-active {\n transition: transform 0.12s cubic-bezier(0, 0, 0.2, 1), opacity 0.12s cubic-bezier(0, 0, 0.2, 1);\n }\n \n .p-confirm-popup-leave-active {\n transition: opacity 0.1s linear;\n }\n \n .p-confirm-popup:after,\n .p-confirm-popup:before {\n bottom: 100%;\n left: calc(var(--overlayArrowLeft, 0) + 1.25rem);\n content: ' ';\n height: 0;\n width: 0;\n position: absolute;\n pointer-events: none;\n }\n \n .p-confirm-popup:after {\n border-width: 8px;\n margin-left: -8px;\n }\n \n .p-confirm-popup:before {\n border-width: 10px;\n margin-left: -10px;\n }\n \n .p-confirm-popup-flipped:after,\n .p-confirm-popup-flipped:before {\n bottom: auto;\n top: 100%;\n }\n \n .p-confirm-popup.p-confirm-popup-flipped:after {\n border-bottom-color: transparent;\n }\n \n .p-confirm-popup.p-confirm-popup-flipped:before {\n border-bottom-color: transparent;\n }\n \n .p-confirm-popup .p-confirm-popup-content {\n display: flex;\n align-items: center;\n }\n}\n",{name:"confirmpopup",manual:!0}),b={name:"ConfirmPopup",extends:{name:"BaseConfirmPopup",extends:h.default,props:{group:String},css:{classes:{root:function(e){var t=e.instance;return["p-confirm-popup p-component",{"p-input-filled":"filled"===t.$primevue.config.inputStyle,"p-ripple-disabled":!1===t.$primevue.config.ripple}]},content:"p-confirm-popup-content",icon:function(e){var t=e.instance;return["p-confirm-popup-icon",t.confirmation?t.confirmation.icon:null]},message:"p-confirm-popup-message",footer:"p-confirm-popup-footer",rejectButton:function(e){var t=e.instance;return["p-confirm-dialog-reject",t.confirmation&&!t.confirmation.rejectClass?"p-button-text":null]},acceptButton:"p-confirm-dialog-accept"},loadStyle:v.load},provide:function(){return{$parentInstance:this}}},inheritAttrs:!1,data:function(){return{visible:!1,confirmation:null,autoFocusAccept:null,autoFocusReject:null}},target:null,outsideClickListener:null,scrollHandler:null,resizeListener:null,container:null,confirmListener:null,closeListener:null,mounted:function(){var e=this;this.confirmListener=function(t){t&&t.group===e.group&&(e.confirmation=t,e.target=t.target,e.confirmation.onShow&&e.confirmation.onShow(),e.visible=!0)},this.closeListener=function(){e.visible=!1,e.confirmation=null},p.default.on("confirm",this.confirmListener),p.default.on("close",this.closeListener)},beforeUnmount:function(){p.default.off("confirm",this.confirmListener),p.default.off("close",this.closeListener),this.unbindOutsideClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindResizeListener(),this.container&&(r.ZIndexUtils.clear(this.container),this.container=null),this.target=null,this.confirmation=null},methods:{accept:function(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject:function(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onHide:function(){this.confirmation.onHide&&this.confirmation.onHide(),this.visible=!1},onAcceptKeydown:function(e){"Space"!==e.code&&"Enter"!==e.code||(this.accept(),r.DomHandler.focus(this.target),e.preventDefault())},onRejectKeydown:function(e){"Space"!==e.code&&"Enter"!==e.code||(this.reject(),r.DomHandler.focus(this.target),e.preventDefault())},onEnter:function(e){this.autoFocusAccept=void 0===this.confirmation.defaultFocus||"accept"===this.confirmation.defaultFocus,this.autoFocusReject="reject"===this.confirmation.defaultFocus,this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),r.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay)},onAfterEnter:function(){this.focus()},onLeave:function(){this.autoFocusAccept=null,this.autoFocusReject=null,this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener()},onAfterLeave:function(e){r.ZIndexUtils.clear(e)},alignOverlay:function(){r.DomHandler.absolutePosition(this.container,this.target);var e=r.DomHandler.getOffset(this.container),t=r.DomHandler.getOffset(this.target),n=0;e.left<t.left&&(n=t.left-e.left),this.container.style.setProperty("--overlayArrowLeft","".concat(n,"px")),e.top<t.top&&(this.container.setAttribute("data-p-confirm-popup-flipped","true"),!this.isUnstyled&&r.DomHandler.addClass(this.container,"p-confirm-popup-flipped"))},bindOutsideClickListener:function(){var e=this;this.outsideClickListener||(this.outsideClickListener=function(t){e.visible&&e.container&&!e.container.contains(t.target)&&!e.isTargetClicked(t)?(e.confirmation.onHide&&e.confirmation.onHide(),e.visible=!1):e.alignOverlay()},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener:function(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener:function(){var e=this;this.scrollHandler||(this.scrollHandler=new r.ConnectedOverlayScrollHandler(this.target,(function(){e.visible&&(e.visible=!1)}))),this.scrollHandler.bindScrollListener()},unbindScrollListener:function(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener:function(){var e=this;this.resizeListener||(this.resizeListener=function(){e.visible&&!r.DomHandler.isTouchDevice()&&(e.visible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener:function(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},focus:function(){var e=this.container.querySelector("[autofocus]");e&&e.focus({preventScroll:!0})},isTargetClicked:function(e){return this.target&&(this.target===e.target||this.target.contains(e.target))},containerRef:function(e){this.container=e},onOverlayClick:function(e){m.default.emit("overlay-click",{originalEvent:e,target:this.target})},onOverlayKeydown:function(e){"Escape"===e.code&&(p.default.emit("close",this.closeListener),r.DomHandler.focus(this.target))},getCXOptions:function(e,t){return{contenxt:{icon:e,iconClass:t.class}}}},computed:{message:function(){return this.confirmation?this.confirmation.message:null},acceptLabel:function(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel:function(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon:function(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon:function(){return this.confirmation?this.confirmation.rejectIcon:null}},components:{CPButton:u.default,Portal:d.default},directives:{focustrap:f.default}};function y(e){return y="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},y(e)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function L(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t,n){return(t=k(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function k(e){var t=C(e,"string");return"symbol"===y(t)?t:String(t)}function C(e,t){if("object"!==y(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==y(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}var w=["aria-modal"];return b.render=function(e,t,n,o,i,r){var c=a.resolveComponent("CPButton"),s=a.resolveComponent("Portal"),l=a.resolveDirective("focustrap");return a.openBlock(),a.createBlock(s,null,{default:a.withCtx((function(){return[a.createVNode(a.Transition,a.mergeProps({name:"p-confirm-popup",onEnter:r.onEnter,onAfterEnter:r.onAfterEnter,onLeave:r.onLeave,onAfterLeave:r.onAfterLeave},e.ptm("transition")),{default:a.withCtx((function(){return[i.visible?a.withDirectives((a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,ref:r.containerRef,role:"alertdialog",class:e.cx("root"),"aria-modal":i.visible,onClick:t[2]||(t[2]=function(){return r.onOverlayClick&&r.onOverlayClick.apply(r,arguments)}),onKeydown:t[3]||(t[3]=function(){return r.onOverlayKeydown&&r.onOverlayKeydown.apply(r,arguments)})},L(L({},e.$attrs),e.ptm("root"))),[e.$slots.container?a.renderSlot(e.$slots,"container",{key:0,message:i.confirmation,onAccept:r.accept,onReject:r.reject}):(a.openBlock(),a.createElementBlock(a.Fragment,{key:1},[e.$slots.message?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.$slots.message),{key:1,message:i.confirmation},null,8,["message"])):(a.openBlock(),a.createElementBlock("div",a.mergeProps({key:0,class:e.cx("content")},e.ptm("content")),[a.renderSlot(e.$slots,"icon",{},(function(){return[e.$slots.icon?(a.openBlock(),a.createBlock(a.resolveDynamicComponent(e.$slots.icon),{key:0,class:a.normalizeClass(e.cx("icon"))},null,8,["class"])):i.confirmation.icon?(a.openBlock(),a.createElementBlock("span",a.mergeProps({key:1,class:e.cx("icon")},e.ptm("icon")),null,16)):a.createCommentVNode("",!0)]})),a.createElementVNode("span",a.mergeProps({class:e.cx("message")},e.ptm("message")),a.toDisplayString(i.confirmation.message),17)],16)),a.createElementVNode("div",a.mergeProps({class:e.cx("footer")},e.ptm("footer")),[a.createVNode(c,{label:r.rejectLabel,onClick:t[0]||(t[0]=function(e){return r.reject()}),onKeydown:r.onRejectKeydown,autofocus:i.autoFocusReject,class:a.normalizeClass([e.cx("rejectButton"),i.confirmation.rejectClass]),unstyled:e.unstyled,pt:e.ptm("rejectButton"),"data-pc-name":"rejectbutton"},a.createSlots({_:2},[r.rejectIcon||e.$slots.rejecticon?{name:"icon",fn:a.withCtx((function(t){return[a.renderSlot(e.$slots,"rejecticon",{},(function(){return[a.createElementVNode("span",a.mergeProps({class:[r.rejectIcon,t.class]},e.ptm("rejectButton").icon,{"data-pc-name":"rejectbuttonicon"}),null,16)]}))]})),key:"0"}:void 0]),1032,["label","onKeydown","autofocus","class","unstyled","pt"]),a.createVNode(c,{label:r.acceptLabel,onClick:t[1]||(t[1]=function(e){return r.accept()}),onKeydown:r.onAcceptKeydown,autofocus:i.autoFocusAccept,class:a.normalizeClass([e.cx("acceptButton"),i.confirmation.acceptClass]),unstyled:e.unstyled,pt:e.ptm("acceptButton"),"data-pc-name":"acceptbutton"},a.createSlots({_:2},[r.acceptIcon||e.$slots.accepticon?{name:"icon",fn:a.withCtx((function(t){return[a.renderSlot(e.$slots,"accepticon",{},(function(){return[a.createElementVNode("span",a.mergeProps({class:[r.acceptIcon,t.class]},e.ptm("acceptButton").icon,{"data-pc-name":"acceptbuttonicon"}),null,16)]}))]})),key:"0"}:void 0]),1032,["label","onKeydown","autofocus","class","unstyled","pt"])],16)],64))],16,w)),[[l]]):a.createCommentVNode("",!0)]})),_:3},16,["onEnter","onAfterEnter","onLeave","onAfterLeave"])]})),_:3})},b}(primevue.button,primevue.confirmationeventbus,primevue.focustrap,primevue.overlayeventbus,primevue.portal,primevue.utils,primevue.basecomponent,primevue.usestyle,Vue);
@@ -3,45 +3,47 @@ import BaseComponent from 'primevue/basecomponent';
3
3
  import { useStyle } from 'primevue/usestyle';
4
4
 
5
5
  const styles = `
6
- .p-contextmenu ul {
7
- margin: 0;
8
- padding: 0;
9
- list-style: none;
10
- }
11
-
12
- .p-contextmenu .p-submenu-list {
13
- position: absolute;
14
- min-width: 100%;
15
- z-index: 1;
16
- }
17
-
18
- .p-contextmenu .p-menuitem-link {
19
- cursor: pointer;
20
- display: flex;
21
- align-items: center;
22
- text-decoration: none;
23
- overflow: hidden;
24
- position: relative;
25
- }
26
-
27
- .p-contextmenu .p-menuitem-text {
28
- line-height: 1;
29
- }
30
-
31
- .p-contextmenu .p-menuitem {
32
- position: relative;
33
- }
34
-
35
- .p-contextmenu .p-menuitem-link .p-submenu-icon {
36
- margin-left: auto;
37
- }
38
-
39
- .p-contextmenu-enter-from {
40
- opacity: 0;
41
- }
42
-
43
- .p-contextmenu-enter-active {
44
- transition: opacity 250ms;
6
+ @layer primevue {
7
+ .p-contextmenu ul {
8
+ margin: 0;
9
+ padding: 0;
10
+ list-style: none;
11
+ }
12
+
13
+ .p-contextmenu .p-submenu-list {
14
+ position: absolute;
15
+ min-width: 100%;
16
+ z-index: 1;
17
+ }
18
+
19
+ .p-contextmenu .p-menuitem-link {
20
+ cursor: pointer;
21
+ display: flex;
22
+ align-items: center;
23
+ text-decoration: none;
24
+ overflow: hidden;
25
+ position: relative;
26
+ }
27
+
28
+ .p-contextmenu .p-menuitem-text {
29
+ line-height: 1;
30
+ }
31
+
32
+ .p-contextmenu .p-menuitem {
33
+ position: relative;
34
+ }
35
+
36
+ .p-contextmenu .p-menuitem-link .p-submenu-icon {
37
+ margin-left: auto;
38
+ }
39
+
40
+ .p-contextmenu-enter-from {
41
+ opacity: 0;
42
+ }
43
+
44
+ .p-contextmenu-enter-active {
45
+ transition: opacity 250ms;
46
+ }
45
47
  }
46
48
  `;
47
49
 
@@ -15,7 +15,7 @@ var BaseComponent__default = /*#__PURE__*/_interopDefaultLegacy(BaseComponent);
15
15
  var AngleRightIcon__default = /*#__PURE__*/_interopDefaultLegacy(AngleRightIcon);
16
16
  var Ripple__default = /*#__PURE__*/_interopDefaultLegacy(Ripple);
17
17
 
18
- var styles = "\n.p-contextmenu ul {\n margin: 0;\n padding: 0;\n list-style: none;\n}\n\n.p-contextmenu .p-submenu-list {\n position: absolute;\n min-width: 100%;\n z-index: 1;\n}\n\n.p-contextmenu .p-menuitem-link {\n cursor: pointer;\n display: flex;\n align-items: center;\n text-decoration: none;\n overflow: hidden;\n position: relative;\n}\n\n.p-contextmenu .p-menuitem-text {\n line-height: 1;\n}\n\n.p-contextmenu .p-menuitem {\n position: relative;\n}\n\n.p-contextmenu .p-menuitem-link .p-submenu-icon {\n margin-left: auto;\n}\n\n.p-contextmenu-enter-from {\n opacity: 0;\n}\n\n.p-contextmenu-enter-active {\n transition: opacity 250ms;\n}\n";
18
+ var styles = "\n@layer primevue {\n .p-contextmenu ul {\n margin: 0;\n padding: 0;\n list-style: none;\n }\n \n .p-contextmenu .p-submenu-list {\n position: absolute;\n min-width: 100%;\n z-index: 1;\n }\n \n .p-contextmenu .p-menuitem-link {\n cursor: pointer;\n display: flex;\n align-items: center;\n text-decoration: none;\n overflow: hidden;\n position: relative;\n }\n \n .p-contextmenu .p-menuitem-text {\n line-height: 1;\n }\n \n .p-contextmenu .p-menuitem {\n position: relative;\n }\n \n .p-contextmenu .p-menuitem-link .p-submenu-icon {\n margin-left: auto;\n }\n \n .p-contextmenu-enter-from {\n opacity: 0;\n }\n \n .p-contextmenu-enter-active {\n transition: opacity 250ms;\n }\n}\n";
19
19
  var classes = {
20
20
  root: function root(_ref) {
21
21
  var instance = _ref.instance;