primevue 3.7.2 → 3.9.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 (504) hide show
  1. package/README.md +2 -2
  2. package/accordion/Accordion.vue +1 -1
  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/api/Api.d.ts +73 -32
  10. package/api/api.cjs.js +66 -32
  11. package/api/api.cjs.min.js +1 -1
  12. package/api/api.esm.js +66 -32
  13. package/api/api.esm.min.js +1 -1
  14. package/api/api.js +66 -32
  15. package/api/api.min.js +1 -1
  16. package/autocomplete/AutoComplete.d.ts +43 -9
  17. package/autocomplete/AutoComplete.vue +16 -9
  18. package/autocomplete/autocomplete.cjs.js +19 -11
  19. package/autocomplete/autocomplete.cjs.min.js +1 -1
  20. package/autocomplete/autocomplete.esm.js +19 -11
  21. package/autocomplete/autocomplete.esm.min.js +1 -1
  22. package/autocomplete/autocomplete.js +19 -11
  23. package/autocomplete/autocomplete.min.js +1 -1
  24. package/blockui/BlockUI.vue +1 -1
  25. package/blockui/blockui.cjs.js +5 -7
  26. package/blockui/blockui.cjs.min.js +1 -1
  27. package/blockui/blockui.esm.js +6 -8
  28. package/blockui/blockui.esm.min.js +1 -1
  29. package/blockui/blockui.js +5 -7
  30. package/blockui/blockui.min.js +1 -1
  31. package/breadcrumb/Breadcrumb.d.ts +7 -0
  32. package/breadcrumb/Breadcrumb.vue +4 -0
  33. package/breadcrumb/BreadcrumbItem.vue +5 -2
  34. package/breadcrumb/breadcrumb.cjs.js +6 -3
  35. package/breadcrumb/breadcrumb.cjs.min.js +1 -1
  36. package/breadcrumb/breadcrumb.esm.js +6 -3
  37. package/breadcrumb/breadcrumb.esm.min.js +1 -1
  38. package/breadcrumb/breadcrumb.js +6 -3
  39. package/breadcrumb/breadcrumb.min.js +1 -1
  40. package/calendar/Calendar.d.ts +11 -1
  41. package/calendar/Calendar.vue +362 -67
  42. package/calendar/calendar.cjs.js +459 -168
  43. package/calendar/calendar.cjs.min.js +1 -1
  44. package/calendar/calendar.esm.js +461 -170
  45. package/calendar/calendar.esm.min.js +1 -1
  46. package/calendar/calendar.js +459 -168
  47. package/calendar/calendar.min.js +1 -1
  48. package/carousel/Carousel.d.ts +6 -1
  49. package/carousel/Carousel.vue +2 -2
  50. package/carousel/carousel.cjs.js +6 -6
  51. package/carousel/carousel.cjs.min.js +1 -1
  52. package/carousel/carousel.esm.js +6 -6
  53. package/carousel/carousel.esm.min.js +1 -1
  54. package/carousel/carousel.js +6 -6
  55. package/carousel/carousel.min.js +1 -1
  56. package/cascadeselect/CascadeSelect.d.ts +19 -6
  57. package/chart/Chart.vue +9 -2
  58. package/chart/chart.cjs.js +9 -2
  59. package/chart/chart.cjs.min.js +1 -1
  60. package/chart/chart.esm.js +9 -2
  61. package/chart/chart.esm.min.js +1 -1
  62. package/chart/chart.js +9 -2
  63. package/chart/chart.min.js +1 -1
  64. package/chips/Chips.d.ts +5 -1
  65. package/colorpicker/ColorPicker.d.ts +3 -0
  66. package/colorpicker/ColorPicker.vue +6 -1
  67. package/colorpicker/colorpicker.cjs.js +6 -1
  68. package/colorpicker/colorpicker.cjs.min.js +1 -1
  69. package/colorpicker/colorpicker.esm.js +6 -1
  70. package/colorpicker/colorpicker.esm.min.js +1 -1
  71. package/colorpicker/colorpicker.js +6 -1
  72. package/colorpicker/colorpicker.min.js +1 -1
  73. package/column/Column.d.ts +42 -11
  74. package/confirmationservice/ConfirmationService.d.ts +3 -2
  75. package/confirmdialog/ConfirmDialog.vue +8 -2
  76. package/confirmdialog/confirmdialog.cjs.js +11 -4
  77. package/confirmdialog/confirmdialog.cjs.min.js +1 -1
  78. package/confirmdialog/confirmdialog.esm.js +11 -4
  79. package/confirmdialog/confirmdialog.esm.min.js +1 -1
  80. package/confirmdialog/confirmdialog.js +11 -4
  81. package/confirmdialog/confirmdialog.min.js +1 -1
  82. package/confirmpopup/ConfirmPopup.d.ts +7 -0
  83. package/confirmpopup/ConfirmPopup.vue +7 -4
  84. package/confirmpopup/confirmpopup.cjs.js +13 -5
  85. package/confirmpopup/confirmpopup.cjs.min.js +1 -1
  86. package/confirmpopup/confirmpopup.esm.js +14 -6
  87. package/confirmpopup/confirmpopup.esm.min.js +1 -1
  88. package/confirmpopup/confirmpopup.js +13 -5
  89. package/confirmpopup/confirmpopup.min.js +1 -1
  90. package/contextmenu/ContextMenu.d.ts +5 -1
  91. package/contextmenu/ContextMenuSub.vue +8 -5
  92. package/contextmenu/contextmenu.cjs.js +8 -5
  93. package/contextmenu/contextmenu.cjs.min.js +1 -1
  94. package/contextmenu/contextmenu.esm.js +8 -5
  95. package/contextmenu/contextmenu.esm.min.js +1 -1
  96. package/contextmenu/contextmenu.js +8 -5
  97. package/contextmenu/contextmenu.min.js +1 -1
  98. package/core/core.js +7644 -0
  99. package/core/core.min.js +47 -0
  100. package/datatable/BodyCell.vue +37 -17
  101. package/datatable/ColumnFilter.vue +17 -6
  102. package/datatable/DataTable.d.ts +37 -9
  103. package/datatable/DataTable.vue +90 -48
  104. package/datatable/FooterCell.vue +2 -2
  105. package/datatable/HeaderCell.vue +2 -2
  106. package/datatable/TableBody.vue +15 -6
  107. package/datatable/TableFooter.vue +17 -2
  108. package/datatable/TableHeader.vue +17 -2
  109. package/datatable/datatable.cjs.js +321 -197
  110. package/datatable/datatable.cjs.min.js +1 -1
  111. package/datatable/datatable.esm.js +321 -197
  112. package/datatable/datatable.esm.min.js +1 -1
  113. package/datatable/datatable.js +321 -197
  114. package/datatable/datatable.min.js +1 -1
  115. package/dataview/DataView.d.ts +9 -4
  116. package/dataview/DataView.vue +8 -8
  117. package/dataview/dataview.cjs.js +12 -12
  118. package/dataview/dataview.cjs.min.js +1 -1
  119. package/dataview/dataview.esm.js +12 -12
  120. package/dataview/dataview.esm.min.js +1 -1
  121. package/dataview/dataview.js +12 -12
  122. package/dataview/dataview.min.js +1 -1
  123. package/dialog/Dialog.vue +6 -1
  124. package/dialog/dialog.cjs.js +4 -2
  125. package/dialog/dialog.cjs.min.js +1 -1
  126. package/dialog/dialog.esm.js +4 -2
  127. package/dialog/dialog.esm.min.js +1 -1
  128. package/dialog/dialog.js +4 -2
  129. package/dialog/dialog.min.js +1 -1
  130. package/dock/Dock.d.ts +10 -1
  131. package/dock/Dock.vue +1 -1
  132. package/dock/DockSub.vue +13 -8
  133. package/dock/dock.cjs.js +24 -10
  134. package/dock/dock.cjs.min.js +1 -1
  135. package/dock/dock.esm.js +20 -10
  136. package/dock/dock.esm.min.js +1 -1
  137. package/dock/dock.js +25 -12
  138. package/dock/dock.min.js +1 -1
  139. package/dropdown/Dropdown.d.ts +56 -13
  140. package/dropdown/Dropdown.vue +1 -0
  141. package/dropdown/dropdown.cjs.js +1 -0
  142. package/dropdown/dropdown.cjs.min.js +1 -1
  143. package/dropdown/dropdown.esm.js +1 -0
  144. package/dropdown/dropdown.esm.min.js +1 -1
  145. package/dropdown/dropdown.js +1 -0
  146. package/dropdown/dropdown.min.js +1 -1
  147. package/fileupload/FileUpload.d.ts +5 -0
  148. package/galleria/Galleria.d.ts +20 -4
  149. package/inplace/Inplace.d.ts +1 -0
  150. package/inplace/Inplace.vue +12 -1
  151. package/inplace/inplace.cjs.js +13 -2
  152. package/inplace/inplace.cjs.min.js +1 -1
  153. package/inplace/inplace.esm.js +13 -2
  154. package/inplace/inplace.esm.min.js +1 -1
  155. package/inplace/inplace.js +13 -2
  156. package/inplace/inplace.min.js +1 -1
  157. package/inputnumber/InputNumber.d.ts +1 -1
  158. package/inputnumber/InputNumber.vue +19 -3
  159. package/inputnumber/inputnumber.cjs.js +19 -3
  160. package/inputnumber/inputnumber.cjs.min.js +1 -1
  161. package/inputnumber/inputnumber.esm.js +19 -3
  162. package/inputnumber/inputnumber.esm.min.js +1 -1
  163. package/inputnumber/inputnumber.js +19 -3
  164. package/inputnumber/inputnumber.min.js +1 -1
  165. package/inputswitch/InputSwitch.vue +6 -3
  166. package/inputswitch/inputswitch.cjs.js +6 -3
  167. package/inputswitch/inputswitch.cjs.min.js +1 -1
  168. package/inputswitch/inputswitch.esm.js +6 -3
  169. package/inputswitch/inputswitch.esm.min.js +1 -1
  170. package/inputswitch/inputswitch.js +6 -3
  171. package/inputswitch/inputswitch.min.js +1 -1
  172. package/inputtext/InputText.d.ts +1 -1
  173. package/inputtext/InputText.vue +1 -1
  174. package/inputtext/inputtext.cjs.js +2 -2
  175. package/inputtext/inputtext.cjs.min.js +1 -1
  176. package/inputtext/inputtext.esm.js +3 -3
  177. package/inputtext/inputtext.esm.min.js +1 -1
  178. package/inputtext/inputtext.js +2 -2
  179. package/inputtext/inputtext.min.js +1 -1
  180. package/listbox/Listbox.d.ts +48 -12
  181. package/megamenu/MegaMenu.d.ts +5 -1
  182. package/megamenu/MegaMenu.vue +11 -8
  183. package/megamenu/megamenu.cjs.js +11 -8
  184. package/megamenu/megamenu.cjs.min.js +1 -1
  185. package/megamenu/megamenu.esm.js +11 -8
  186. package/megamenu/megamenu.esm.min.js +1 -1
  187. package/megamenu/megamenu.js +11 -8
  188. package/megamenu/megamenu.min.js +1 -1
  189. package/menu/Menu.d.ts +5 -1
  190. package/menu/Menu.vue +6 -3
  191. package/menu/Menuitem.vue +5 -2
  192. package/menu/menu.cjs.js +11 -5
  193. package/menu/menu.cjs.min.js +1 -1
  194. package/menu/menu.esm.js +11 -5
  195. package/menu/menu.esm.min.js +1 -1
  196. package/menu/menu.js +11 -5
  197. package/menu/menu.min.js +1 -1
  198. package/menubar/Menubar.d.ts +5 -1
  199. package/menubar/MenubarSub.vue +8 -5
  200. package/menubar/menubar.cjs.js +8 -5
  201. package/menubar/menubar.cjs.min.js +1 -1
  202. package/menubar/menubar.esm.js +8 -5
  203. package/menubar/menubar.esm.min.js +1 -1
  204. package/menubar/menubar.js +8 -5
  205. package/menubar/menubar.min.js +1 -1
  206. package/message/Message.d.ts +1 -0
  207. package/message/Message.vue +6 -2
  208. package/message/message.cjs.js +6 -2
  209. package/message/message.cjs.min.js +1 -1
  210. package/message/message.esm.js +6 -2
  211. package/message/message.esm.min.js +1 -1
  212. package/message/message.js +6 -2
  213. package/message/message.min.js +1 -1
  214. package/multiselect/MultiSelect.d.ts +61 -14
  215. package/orderlist/OrderList.d.ts +8 -1
  216. package/orderlist/OrderList.vue +2 -0
  217. package/orderlist/orderlist.cjs.js +3 -1
  218. package/orderlist/orderlist.cjs.min.js +1 -1
  219. package/orderlist/orderlist.esm.js +3 -1
  220. package/orderlist/orderlist.esm.min.js +1 -1
  221. package/orderlist/orderlist.js +3 -1
  222. package/orderlist/orderlist.min.js +1 -1
  223. package/overlaypanel/OverlayPanel.vue +1 -0
  224. package/overlaypanel/overlaypanel.cjs.js +1 -0
  225. package/overlaypanel/overlaypanel.cjs.min.js +1 -1
  226. package/overlaypanel/overlaypanel.esm.js +1 -0
  227. package/overlaypanel/overlaypanel.esm.min.js +1 -1
  228. package/overlaypanel/overlaypanel.js +1 -0
  229. package/overlaypanel/overlaypanel.min.js +1 -1
  230. package/package.json +5 -1
  231. package/paginator/CurrentPageReport.vue +5 -1
  232. package/paginator/JumpToPageInput.vue +1 -1
  233. package/paginator/Paginator.d.ts +10 -4
  234. package/paginator/Paginator.vue +10 -7
  235. package/paginator/paginator.cjs.js +16 -8
  236. package/paginator/paginator.cjs.min.js +1 -1
  237. package/paginator/paginator.esm.js +16 -8
  238. package/paginator/paginator.esm.min.js +1 -1
  239. package/paginator/paginator.js +16 -8
  240. package/paginator/paginator.min.js +1 -1
  241. package/panel/Panel.d.ts +1 -0
  242. package/panel/Panel.vue +1 -1
  243. package/panelmenu/PanelMenu.d.ts +5 -3
  244. package/panelmenu/PanelMenu.vue +6 -3
  245. package/panelmenu/PanelMenuSub.vue +8 -5
  246. package/panelmenu/panelmenu.cjs.js +14 -8
  247. package/panelmenu/panelmenu.cjs.min.js +1 -1
  248. package/panelmenu/panelmenu.esm.js +14 -8
  249. package/panelmenu/panelmenu.esm.min.js +1 -1
  250. package/panelmenu/panelmenu.js +14 -8
  251. package/panelmenu/panelmenu.min.js +1 -1
  252. package/picklist/PickList.d.ts +14 -3
  253. package/picklist/PickList.vue +10 -4
  254. package/picklist/picklist.cjs.js +13 -7
  255. package/picklist/picklist.cjs.min.js +1 -1
  256. package/picklist/picklist.esm.js +13 -7
  257. package/picklist/picklist.esm.min.js +1 -1
  258. package/picklist/picklist.js +13 -7
  259. package/picklist/picklist.min.js +1 -1
  260. package/progressbar/ProgressBar.vue +13 -12
  261. package/progressbar/progressbar.cjs.js +13 -12
  262. package/progressbar/progressbar.cjs.min.js +1 -1
  263. package/progressbar/progressbar.esm.js +14 -13
  264. package/progressbar/progressbar.esm.min.js +1 -1
  265. package/progressbar/progressbar.js +13 -12
  266. package/progressbar/progressbar.min.js +1 -1
  267. package/rating/Rating.vue +1 -1
  268. package/rating/rating.cjs.js +1 -1
  269. package/rating/rating.cjs.min.js +1 -1
  270. package/rating/rating.esm.js +1 -1
  271. package/rating/rating.esm.min.js +1 -1
  272. package/rating/rating.js +1 -1
  273. package/rating/rating.min.js +1 -1
  274. package/resources/primevue.css +5 -0
  275. package/resources/primevue.min.css +1 -1
  276. package/resources/themes/arya-blue/theme.css +57 -16
  277. package/resources/themes/arya-green/theme.css +57 -16
  278. package/resources/themes/arya-orange/theme.css +57 -16
  279. package/resources/themes/arya-purple/theme.css +57 -16
  280. package/resources/themes/bootstrap4-dark-blue/theme.css +54 -20
  281. package/resources/themes/bootstrap4-dark-purple/theme.css +54 -20
  282. package/resources/themes/bootstrap4-light-blue/theme.css +54 -20
  283. package/resources/themes/bootstrap4-light-purple/theme.css +54 -20
  284. package/resources/themes/fluent-light/theme.css +57 -16
  285. package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff +0 -0
  286. package/resources/themes/lara-dark-blue/fonts/Inter-Bold.woff2 +0 -0
  287. package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff +0 -0
  288. package/resources/themes/lara-dark-blue/fonts/Inter-Light.woff2 +0 -0
  289. package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff +0 -0
  290. package/resources/themes/lara-dark-blue/fonts/Inter-Medium.woff2 +0 -0
  291. package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff +0 -0
  292. package/resources/themes/lara-dark-blue/fonts/Inter-Regular.woff2 +0 -0
  293. package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff +0 -0
  294. package/resources/themes/lara-dark-blue/fonts/Inter-SemiBold.woff2 +0 -0
  295. package/resources/themes/lara-dark-blue/theme.css +5414 -0
  296. package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff +0 -0
  297. package/resources/themes/lara-dark-indigo/fonts/Inter-Bold.woff2 +0 -0
  298. package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff +0 -0
  299. package/resources/themes/lara-dark-indigo/fonts/Inter-Light.woff2 +0 -0
  300. package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff +0 -0
  301. package/resources/themes/lara-dark-indigo/fonts/Inter-Medium.woff2 +0 -0
  302. package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff +0 -0
  303. package/resources/themes/lara-dark-indigo/fonts/Inter-Regular.woff2 +0 -0
  304. package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff +0 -0
  305. package/resources/themes/lara-dark-indigo/fonts/Inter-SemiBold.woff2 +0 -0
  306. package/resources/themes/lara-dark-indigo/theme.css +5414 -0
  307. package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff +0 -0
  308. package/resources/themes/lara-dark-purple/fonts/Inter-Bold.woff2 +0 -0
  309. package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff +0 -0
  310. package/resources/themes/lara-dark-purple/fonts/Inter-Light.woff2 +0 -0
  311. package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff +0 -0
  312. package/resources/themes/lara-dark-purple/fonts/Inter-Medium.woff2 +0 -0
  313. package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff +0 -0
  314. package/resources/themes/lara-dark-purple/fonts/Inter-Regular.woff2 +0 -0
  315. package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff +0 -0
  316. package/resources/themes/lara-dark-purple/fonts/Inter-SemiBold.woff2 +0 -0
  317. package/resources/themes/lara-dark-purple/theme.css +5414 -0
  318. package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff +0 -0
  319. package/resources/themes/lara-dark-teal/fonts/Inter-Bold.woff2 +0 -0
  320. package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff +0 -0
  321. package/resources/themes/lara-dark-teal/fonts/Inter-Light.woff2 +0 -0
  322. package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff +0 -0
  323. package/resources/themes/lara-dark-teal/fonts/Inter-Medium.woff2 +0 -0
  324. package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff +0 -0
  325. package/resources/themes/lara-dark-teal/fonts/Inter-Regular.woff2 +0 -0
  326. package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff +0 -0
  327. package/resources/themes/lara-dark-teal/fonts/Inter-SemiBold.woff2 +0 -0
  328. package/resources/themes/lara-dark-teal/theme.css +5414 -0
  329. package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff +0 -0
  330. package/resources/themes/lara-light-blue/fonts/Inter-Bold.woff2 +0 -0
  331. package/resources/themes/lara-light-blue/fonts/Inter-Light.woff +0 -0
  332. package/resources/themes/lara-light-blue/fonts/Inter-Light.woff2 +0 -0
  333. package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff +0 -0
  334. package/resources/themes/lara-light-blue/fonts/Inter-Medium.woff2 +0 -0
  335. package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff +0 -0
  336. package/resources/themes/lara-light-blue/fonts/Inter-Regular.woff2 +0 -0
  337. package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff +0 -0
  338. package/resources/themes/lara-light-blue/fonts/Inter-SemiBold.woff2 +0 -0
  339. package/resources/themes/lara-light-blue/theme.css +5414 -0
  340. package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff +0 -0
  341. package/resources/themes/lara-light-indigo/fonts/Inter-Bold.woff2 +0 -0
  342. package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff +0 -0
  343. package/resources/themes/lara-light-indigo/fonts/Inter-Light.woff2 +0 -0
  344. package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff +0 -0
  345. package/resources/themes/lara-light-indigo/fonts/Inter-Medium.woff2 +0 -0
  346. package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff +0 -0
  347. package/resources/themes/lara-light-indigo/fonts/Inter-Regular.woff2 +0 -0
  348. package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff +0 -0
  349. package/resources/themes/lara-light-indigo/fonts/Inter-SemiBold.woff2 +0 -0
  350. package/resources/themes/lara-light-indigo/theme.css +5414 -0
  351. package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff +0 -0
  352. package/resources/themes/lara-light-purple/fonts/Inter-Bold.woff2 +0 -0
  353. package/resources/themes/lara-light-purple/fonts/Inter-Light.woff +0 -0
  354. package/resources/themes/lara-light-purple/fonts/Inter-Light.woff2 +0 -0
  355. package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff +0 -0
  356. package/resources/themes/lara-light-purple/fonts/Inter-Medium.woff2 +0 -0
  357. package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff +0 -0
  358. package/resources/themes/lara-light-purple/fonts/Inter-Regular.woff2 +0 -0
  359. package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff +0 -0
  360. package/resources/themes/lara-light-purple/fonts/Inter-SemiBold.woff2 +0 -0
  361. package/resources/themes/lara-light-purple/theme.css +5414 -0
  362. package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff +0 -0
  363. package/resources/themes/lara-light-teal/fonts/Inter-Bold.woff2 +0 -0
  364. package/resources/themes/lara-light-teal/fonts/Inter-Light.woff +0 -0
  365. package/resources/themes/lara-light-teal/fonts/Inter-Light.woff2 +0 -0
  366. package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff +0 -0
  367. package/resources/themes/lara-light-teal/fonts/Inter-Medium.woff2 +0 -0
  368. package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff +0 -0
  369. package/resources/themes/lara-light-teal/fonts/Inter-Regular.woff2 +0 -0
  370. package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff +0 -0
  371. package/resources/themes/lara-light-teal/fonts/Inter-SemiBold.woff2 +0 -0
  372. package/resources/themes/lara-light-teal/theme.css +5414 -0
  373. package/resources/themes/luna-amber/theme.css +54 -20
  374. package/resources/themes/luna-blue/theme.css +54 -20
  375. package/resources/themes/luna-green/theme.css +54 -20
  376. package/resources/themes/luna-pink/theme.css +54 -20
  377. package/resources/themes/md-dark-deeppurple/theme.css +245 -48
  378. package/resources/themes/md-dark-indigo/theme.css +245 -48
  379. package/resources/themes/md-light-deeppurple/theme.css +245 -48
  380. package/resources/themes/md-light-indigo/theme.css +245 -48
  381. package/resources/themes/mdc-dark-deeppurple/theme.css +245 -48
  382. package/resources/themes/mdc-dark-indigo/theme.css +245 -48
  383. package/resources/themes/mdc-light-deeppurple/theme.css +245 -48
  384. package/resources/themes/mdc-light-indigo/theme.css +245 -48
  385. package/resources/themes/nova/theme.css +54 -20
  386. package/resources/themes/nova-accent/theme.css +54 -20
  387. package/resources/themes/nova-alt/theme.css +54 -20
  388. package/resources/themes/nova-vue/theme.css +54 -20
  389. package/resources/themes/rhea/theme.css +54 -20
  390. package/resources/themes/saga-blue/theme.css +57 -16
  391. package/resources/themes/saga-green/theme.css +57 -16
  392. package/resources/themes/saga-orange/theme.css +57 -16
  393. package/resources/themes/saga-purple/theme.css +57 -16
  394. package/resources/themes/tailwind-light/theme.css +68 -19
  395. package/resources/themes/vela-blue/theme.css +57 -16
  396. package/resources/themes/vela-green/theme.css +57 -16
  397. package/resources/themes/vela-orange/theme.css +57 -16
  398. package/resources/themes/vela-purple/theme.css +57 -16
  399. package/selectbutton/SelectButton.d.ts +13 -5
  400. package/selectbutton/SelectButton.vue +8 -2
  401. package/selectbutton/selectbutton.cjs.js +14 -9
  402. package/selectbutton/selectbutton.cjs.min.js +1 -1
  403. package/selectbutton/selectbutton.esm.js +14 -9
  404. package/selectbutton/selectbutton.esm.min.js +1 -1
  405. package/selectbutton/selectbutton.js +14 -9
  406. package/selectbutton/selectbutton.min.js +1 -1
  407. package/speeddial/SpeedDial.d.ts +5 -1
  408. package/speeddial/SpeedDial.vue +2 -1
  409. package/speeddial/speeddial.cjs.js +2 -1
  410. package/speeddial/speeddial.cjs.min.js +1 -1
  411. package/speeddial/speeddial.esm.js +2 -1
  412. package/speeddial/speeddial.esm.min.js +1 -1
  413. package/speeddial/speeddial.js +2 -1
  414. package/speeddial/speeddial.min.js +1 -1
  415. package/splitter/Splitter.vue +5 -3
  416. package/splitter/splitter.cjs.js +4 -2
  417. package/splitter/splitter.cjs.min.js +1 -1
  418. package/splitter/splitter.esm.js +5 -3
  419. package/splitter/splitter.esm.min.js +1 -1
  420. package/splitter/splitter.js +4 -2
  421. package/splitter/splitter.min.js +1 -1
  422. package/steps/Steps.d.ts +5 -3
  423. package/steps/Steps.vue +5 -2
  424. package/steps/steps.cjs.js +5 -2
  425. package/steps/steps.cjs.min.js +1 -1
  426. package/steps/steps.esm.js +5 -2
  427. package/steps/steps.esm.min.js +1 -1
  428. package/steps/steps.js +5 -2
  429. package/steps/steps.min.js +1 -1
  430. package/tabmenu/TabMenu.d.ts +5 -3
  431. package/tabmenu/TabMenu.vue +10 -3
  432. package/tabmenu/tabmenu.cjs.js +7 -4
  433. package/tabmenu/tabmenu.cjs.min.js +1 -1
  434. package/tabmenu/tabmenu.esm.js +7 -4
  435. package/tabmenu/tabmenu.esm.min.js +1 -1
  436. package/tabmenu/tabmenu.js +7 -4
  437. package/tabmenu/tabmenu.min.js +1 -1
  438. package/terminal/terminal.js +1 -1
  439. package/terminal/terminal.min.js +1 -1
  440. package/terminalservice/TerminalService.d.ts +9 -6
  441. package/tieredmenu/TieredMenu.d.ts +5 -3
  442. package/tieredmenu/TieredMenuSub.vue +8 -5
  443. package/tieredmenu/tieredmenu.cjs.js +8 -5
  444. package/tieredmenu/tieredmenu.cjs.min.js +1 -1
  445. package/tieredmenu/tieredmenu.esm.js +8 -5
  446. package/tieredmenu/tieredmenu.esm.min.js +1 -1
  447. package/tieredmenu/tieredmenu.js +8 -5
  448. package/tieredmenu/tieredmenu.min.js +1 -1
  449. package/timeline/Timeline.d.ts +8 -3
  450. package/toast/Toast.d.ts +7 -0
  451. package/toastservice/ToastService.d.ts +3 -2
  452. package/tooltip/tooltip.cjs.js +5 -1
  453. package/tooltip/tooltip.cjs.min.js +1 -1
  454. package/tooltip/tooltip.esm.js +5 -1
  455. package/tooltip/tooltip.esm.min.js +1 -1
  456. package/tooltip/tooltip.js +5 -1
  457. package/tooltip/tooltip.min.js +1 -1
  458. package/tree/Tree.d.ts +5 -1
  459. package/tree/TreeNode.vue +4 -1
  460. package/tree/tree.cjs.js +4 -1
  461. package/tree/tree.cjs.min.js +1 -1
  462. package/tree/tree.esm.js +4 -1
  463. package/tree/tree.esm.min.js +1 -1
  464. package/tree/tree.js +4 -1
  465. package/tree/tree.min.js +1 -1
  466. package/treeselect/TreeSelect.d.ts +20 -3
  467. package/treeselect/TreeSelect.vue +9 -0
  468. package/treeselect/treeselect.cjs.js +9 -0
  469. package/treeselect/treeselect.cjs.min.js +1 -1
  470. package/treeselect/treeselect.esm.js +9 -0
  471. package/treeselect/treeselect.esm.min.js +1 -1
  472. package/treeselect/treeselect.js +9 -0
  473. package/treeselect/treeselect.min.js +1 -1
  474. package/treetable/BodyCell.vue +2 -3
  475. package/treetable/FooterCell.vue +2 -2
  476. package/treetable/HeaderCell.vue +2 -2
  477. package/treetable/TreeTable.d.ts +2 -2
  478. package/treetable/TreeTable.vue +10 -10
  479. package/treetable/TreeTableRow.vue +2 -2
  480. package/treetable/treetable.cjs.js +18 -18
  481. package/treetable/treetable.cjs.min.js +1 -1
  482. package/treetable/treetable.esm.js +19 -19
  483. package/treetable/treetable.esm.min.js +1 -1
  484. package/treetable/treetable.js +18 -18
  485. package/treetable/treetable.min.js +1 -1
  486. package/utils/Utils.d.ts +80 -0
  487. package/utils/package.json +3 -2
  488. package/utils/utils.cjs.js +126 -108
  489. package/utils/utils.cjs.min.js +1 -1
  490. package/utils/utils.esm.js +126 -108
  491. package/utils/utils.esm.min.js +1 -1
  492. package/utils/utils.js +126 -108
  493. package/utils/utils.min.js +1 -1
  494. package/vetur-attributes.json +24 -0
  495. package/vetur-tags.json +9 -3
  496. package/virtualscroller/VirtualScroller.d.ts +52 -6
  497. package/virtualscroller/VirtualScroller.vue +1 -1
  498. package/virtualscroller/virtualscroller.cjs.js +1 -1
  499. package/virtualscroller/virtualscroller.cjs.min.js +1 -1
  500. package/virtualscroller/virtualscroller.esm.js +1 -1
  501. package/virtualscroller/virtualscroller.esm.min.js +1 -1
  502. package/virtualscroller/virtualscroller.js +1 -1
  503. package/virtualscroller/virtualscroller.min.js +1 -1
  504. package/web-types.json +228 -13
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.colorpicker=function(e,t,i){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(t),r={name:"ColorPicker",emits:["update:modelValue"],props:{modelValue:{type:null,default:null},defaultColor:{type:null,default:"ff0000"},inline:{type:Boolean,default:!1},format:{type:String,default:"hex"},disabled:{type:Boolean,default:!1},tabindex:{type:String,default:null},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},ariaLabelledBy:{type:String,default:null},appendTo:{type:String,default:"body"},panelClass:null},data:()=>({overlayVisible:!1}),hsbValue:null,outsideClickListener:null,documentMouseMoveListener:null,documentMouseUpListener:null,scrollHandler:null,resizeListener:null,hueDragging:null,colorDragging:null,selfUpdate:null,picker:null,colorSelector:null,colorHandle:null,hueView:null,hueHandle:null,beforeUnmount(){this.unbindOutsideClickListener(),this.unbindDragListeners(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.picker&&this.autoZIndex&&e.ZIndexUtils.clear(this.picker),this.clearRefs()},mounted(){this.updateUI()},watch:{modelValue:{immediate:!0,handler(e){this.hsbValue=this.toHSB(e),this.selfUpdate?this.selfUpdate=!1:this.updateUI()}}},methods:{pickColor(e){let t=this.colorSelector.getBoundingClientRect(),i=t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),n=t.left+document.body.scrollLeft,o=Math.floor(100*Math.max(0,Math.min(150,(e.pageX||e.changedTouches[0].pageX)-n))/150),r=Math.floor(100*(150-Math.max(0,Math.min(150,(e.pageY||e.changedTouches[0].pageY)-i)))/150);this.hsbValue=this.validateHSB({h:this.hsbValue.h,s:o,b:r}),this.selfUpdate=!0,this.updateColorHandle(),this.updateInput(),this.updateModel()},pickHue(e){let t=this.hueView.getBoundingClientRect().top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0);this.hsbValue=this.validateHSB({h:Math.floor(360*(150-Math.max(0,Math.min(150,(e.pageY||e.changedTouches[0].pageY)-t)))/150),s:100,b:100}),this.selfUpdate=!0,this.updateColorSelector(),this.updateHue(),this.updateModel(),this.updateInput()},updateModel(){switch(this.format){case"hex":this.$emit("update:modelValue",this.HSBtoHEX(this.hsbValue));break;case"rgb":this.$emit("update:modelValue",this.HSBtoRGB(this.hsbValue));break;case"hsb":this.$emit("update:modelValue",this.hsbValue)}},updateColorSelector(){if(this.colorSelector){let e=this.validateHSB({h:this.hsbValue.h,s:100,b:100});this.colorSelector.style.backgroundColor="#"+this.HSBtoHEX(e)}},updateColorHandle(){this.colorHandle&&(this.colorHandle.style.left=Math.floor(150*this.hsbValue.s/100)+"px",this.colorHandle.style.top=Math.floor(150*(100-this.hsbValue.b)/100)+"px")},updateHue(){this.hueHandle&&(this.hueHandle.style.top=Math.floor(150-150*this.hsbValue.h/360)+"px")},updateInput(){this.$refs.input&&(this.$refs.input.style.backgroundColor="#"+this.HSBtoHEX(this.hsbValue))},updateUI(){this.updateHue(),this.updateColorHandle(),this.updateInput(),this.updateColorSelector()},validateHSB:e=>({h:Math.min(360,Math.max(0,e.h)),s:Math.min(100,Math.max(0,e.s)),b:Math.min(100,Math.max(0,e.b))}),validateRGB:e=>({r:Math.min(255,Math.max(0,e.r)),g:Math.min(255,Math.max(0,e.g)),b:Math.min(255,Math.max(0,e.b))}),validateHEX(e){var t=6-e.length;if(t>0){for(var i=[],n=0;n<t;n++)i.push("0");i.push(e),e=i.join("")}return e},HEXtoRGB(e){let t=parseInt(e.indexOf("#")>-1?e.substring(1):e,16);return{r:t>>16,g:(65280&t)>>8,b:255&t}},HEXtoHSB(e){return this.RGBtoHSB(this.HEXtoRGB(e))},RGBtoHSB(e){var t={h:0,s:0,b:0},i=Math.min(e.r,e.g,e.b),n=Math.max(e.r,e.g,e.b),o=n-i;return t.b=n,t.s=0!==n?255*o/n:0,0!==t.s?e.r===n?t.h=(e.g-e.b)/o:e.g===n?t.h=2+(e.b-e.r)/o:t.h=4+(e.r-e.g)/o:t.h=-1,t.h*=60,t.h<0&&(t.h+=360),t.s*=100/255,t.b*=100/255,t},HSBtoRGB(e){var t={r:null,g:null,b:null},i=Math.round(e.h),n=Math.round(255*e.s/100),o=Math.round(255*e.b/100);if(0===n)t={r:o,g:o,b:o};else{var r=o,l=(255-n)*o/255,s=i%60*(r-l)/60;360===i&&(i=0),i<60?(t.r=r,t.b=l,t.g=l+s):i<120?(t.g=r,t.b=l,t.r=r-s):i<180?(t.g=r,t.r=l,t.b=l+s):i<240?(t.b=r,t.r=l,t.g=r-s):i<300?(t.b=r,t.g=l,t.r=l+s):i<360?(t.r=r,t.g=l,t.b=r-s):(t.r=0,t.g=0,t.b=0)}return{r:Math.round(t.r),g:Math.round(t.g),b:Math.round(t.b)}},RGBtoHEX(e){var t=[e.r.toString(16),e.g.toString(16),e.b.toString(16)];for(var i in t)1===t[i].length&&(t[i]="0"+t[i]);return t.join("")},HSBtoHEX(e){return this.RGBtoHEX(this.HSBtoRGB(e))},toHSB(e){let t;if(e)switch(this.format){case"hex":t=this.HEXtoHSB(e);break;case"rgb":t=this.RGBtoHSB(e);break;case"hsb":t=e}else t=this.HEXtoHSB(this.defaultColor);return t},onOverlayEnter(t){this.updateUI(),this.alignOverlay(),this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.autoZIndex&&e.ZIndexUtils.set("overlay",t,this.$primevue.config.zIndex.overlay)},onOverlayLeave(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.clearRefs()},onOverlayAfterLeave(t){this.autoZIndex&&e.ZIndexUtils.clear(t)},alignOverlay(){this.appendDisabled?e.DomHandler.relativePosition(this.picker,this.$refs.input):e.DomHandler.absolutePosition(this.picker,this.$refs.input)},onInputClick(){this.disabled||(this.overlayVisible=!this.overlayVisible)},onInputKeydown(e){switch(e.which){case 32:this.overlayVisible=!this.overlayVisible,e.preventDefault();break;case 27:case 9:this.overlayVisible=!1}},onColorMousedown(e){this.disabled||(this.bindDragListeners(),this.onColorDragStart(e))},onColorDragStart(t){this.disabled||(this.colorDragging=!0,this.pickColor(t),e.DomHandler.addClass(this.$el,"p-colorpicker-dragging"),t.preventDefault())},onDrag(e){this.colorDragging&&(this.pickColor(e),e.preventDefault()),this.hueDragging&&(this.pickHue(e),e.preventDefault())},onDragEnd(){this.colorDragging=!1,this.hueDragging=!1,e.DomHandler.removeClass(this.$el,"p-colorpicker-dragging"),this.unbindDragListeners()},onHueMousedown(e){this.disabled||(this.bindDragListeners(),this.onHueDragStart(e))},onHueDragStart(t){this.disabled||(this.hueDragging=!0,this.pickHue(t),e.DomHandler.addClass(this.$el,"p-colorpicker-dragging"))},isInputClicked(e){return this.$refs.input&&this.$refs.input.isSameNode(e.target)},bindDragListeners(){this.bindDocumentMouseMoveListener(),this.bindDocumentMouseUpListener()},unbindDragListeners(){this.unbindDocumentMouseMoveListener(),this.unbindDocumentMouseUpListener()},bindOutsideClickListener(){this.outsideClickListener||(this.outsideClickListener=e=>{this.overlayVisible&&this.picker&&!this.picker.contains(e.target)&&!this.isInputClicked(e)&&(this.overlayVisible=!1)},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener(){this.scrollHandler||(this.scrollHandler=new e.ConnectedOverlayScrollHandler(this.$refs.container,(()=>{this.overlayVisible&&(this.overlayVisible=!1)}))),this.scrollHandler.bindScrollListener()},unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener(){this.resizeListener||(this.resizeListener=()=>{this.overlayVisible&&(this.overlayVisible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},bindDocumentMouseMoveListener(){this.documentMouseMoveListener||(this.documentMouseMoveListener=this.onDrag.bind(this),document.addEventListener("mousemove",this.documentMouseMoveListener))},unbindDocumentMouseMoveListener(){this.documentMouseMoveListener&&(document.removeEventListener("mousemove",this.documentMouseMoveListener),this.documentMouseMoveListener=null)},bindDocumentMouseUpListener(){this.documentMouseUpListener||(this.documentMouseUpListener=this.onDragEnd.bind(this),document.addEventListener("mouseup",this.documentMouseUpListener))},unbindDocumentMouseUpListener(){this.documentMouseUpListener&&(document.removeEventListener("mouseup",this.documentMouseUpListener),this.documentMouseUpListener=null)},pickerRef(e){this.picker=e},colorSelectorRef(e){this.colorSelector=e},colorHandleRef(e){this.colorHandle=e},hueViewRef(e){this.hueView=e},hueHandleRef(e){this.hueHandle=e},clearRefs(){this.picker=null,this.colorSelector=null,this.colorHandle=null,this.hueView=null,this.hueHandle=null},onOverlayClick(e){o.default.emit("overlay-click",{originalEvent:e,target:this.$el})}},computed:{containerClass(){return["p-colorpicker p-component",{"p-colorpicker-overlay":!this.inline}]},inputClass(){return["p-colorpicker-preview p-inputtext",{"p-disabled":this.disabled}]},pickerClass(){return["p-colorpicker-panel",this.panelClass,{"p-colorpicker-overlay-panel":!this.inline,"p-disabled":this.disabled,"p-input-filled":"filled"===this.$primevue.config.inputStyle,"p-ripple-disabled":!1===this.$primevue.config.ripple}]},appendDisabled(){return"self"===this.appendTo||this.inline},appendTarget(){return this.appendDisabled?null:this.appendTo}}};const l={class:"p-colorpicker-content"},s={class:"p-colorpicker-color"};return function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===i&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("\n.p-colorpicker {\n display: inline-block;\n}\n.p-colorpicker-dragging {\n cursor: pointer;\n}\n.p-colorpicker-overlay {\n position: relative;\n}\n.p-colorpicker-panel {\n position: relative;\n width: 193px;\n height: 166px;\n}\n.p-colorpicker-overlay-panel {\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-colorpicker-preview {\n cursor: pointer;\n}\n.p-colorpicker-panel .p-colorpicker-content {\n position: relative;\n}\n.p-colorpicker-panel .p-colorpicker-color-selector {\n width: 150px;\n height: 150px;\n top: 8px;\n left: 8px;\n position: absolute;\n}\n.p-colorpicker-panel .p-colorpicker-color {\n width: 150px;\n height: 150px;\n}\n.p-colorpicker-panel .p-colorpicker-color-handle {\n position: absolute;\n top: 0px;\n left: 150px;\n border-radius: 100%;\n width: 10px;\n height: 10px;\n border-width: 1px;\n border-style: solid;\n margin: -5px 0 0 -5px;\n cursor: pointer;\n opacity: .85;\n}\n.p-colorpicker-panel .p-colorpicker-hue {\n width: 17px;\n height: 150px;\n top: 8px;\n left: 167px;\n position: absolute;\n opacity: .85;\n}\n.p-colorpicker-panel .p-colorpicker-hue-handle {\n position: absolute;\n top: 150px;\n left: 0px;\n width: 21px;\n margin-left: -2px;\n margin-top: -5px;\n height: 10px;\n border-width: 2px;\n border-style: solid;\n opacity: .85;\n cursor: pointer;\n}\n"),r.render=function(e,t,n,o,r,a){return i.openBlock(),i.createBlock("div",{ref:"container",class:a.containerClass},[n.inline?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock("input",{key:0,ref:"input",type:"text",class:a.inputClass,readonly:"readonly",tabindex:n.tabindex,disabled:n.disabled,onClick:t[1]||(t[1]=(...e)=>a.onInputClick&&a.onInputClick(...e)),onKeydown:t[2]||(t[2]=(...e)=>a.onInputKeydown&&a.onInputKeydown(...e)),"aria-labelledby":n.ariaLabelledBy},null,42,["tabindex","disabled","aria-labelledby"])),(i.openBlock(),i.createBlock(i.Teleport,{to:a.appendTarget,disabled:a.appendDisabled},[i.createVNode(i.Transition,{name:"p-connected-overlay",onEnter:a.onOverlayEnter,onLeave:a.onOverlayLeave,onAfterLeave:a.onOverlayAfterLeave},{default:i.withCtx((()=>[n.inline||r.overlayVisible?(i.openBlock(),i.createBlock("div",{key:0,ref:a.pickerRef,class:a.pickerClass,onClick:t[11]||(t[11]=(...e)=>a.onOverlayClick&&a.onOverlayClick(...e))},[i.createVNode("div",l,[i.createVNode("div",{ref:a.colorSelectorRef,class:"p-colorpicker-color-selector",onMousedown:t[3]||(t[3]=e=>a.onColorMousedown(e)),onTouchstart:t[4]||(t[4]=e=>a.onColorDragStart(e)),onTouchmove:t[5]||(t[5]=e=>a.onDrag(e)),onTouchend:t[6]||(t[6]=e=>a.onDragEnd())},[i.createVNode("div",s,[i.createVNode("div",{ref:a.colorHandleRef,class:"p-colorpicker-color-handle"},null,512)])],544),i.createVNode("div",{ref:a.hueViewRef,class:"p-colorpicker-hue",onMousedown:t[7]||(t[7]=e=>a.onHueMousedown(e)),onTouchstart:t[8]||(t[8]=e=>a.onHueDragStart(e)),onTouchmove:t[9]||(t[9]=e=>a.onDrag(e)),onTouchend:t[10]||(t[10]=e=>a.onDragEnd())},[i.createVNode("div",{ref:a.hueHandleRef,class:"p-colorpicker-hue-handle"},null,512)],544)])],2)):i.createCommentVNode("",!0)])),_:1},8,["onEnter","onLeave","onAfterLeave"])],8,["to","disabled"]))],2)},r}(primevue.utils,primevue.overlayeventbus,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.colorpicker=function(e,t,i){"use strict";function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var o=n(t),s={name:"ColorPicker",emits:["update:modelValue","change","show","hide"],props:{modelValue:{type:null,default:null},defaultColor:{type:null,default:"ff0000"},inline:{type:Boolean,default:!1},format:{type:String,default:"hex"},disabled:{type:Boolean,default:!1},tabindex:{type:String,default:null},autoZIndex:{type:Boolean,default:!0},baseZIndex:{type:Number,default:0},ariaLabelledBy:{type:String,default:null},appendTo:{type:String,default:"body"},panelClass:null},data:()=>({overlayVisible:!1}),hsbValue:null,outsideClickListener:null,documentMouseMoveListener:null,documentMouseUpListener:null,scrollHandler:null,resizeListener:null,hueDragging:null,colorDragging:null,selfUpdate:null,picker:null,colorSelector:null,colorHandle:null,hueView:null,hueHandle:null,beforeUnmount(){this.unbindOutsideClickListener(),this.unbindDragListeners(),this.unbindResizeListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.picker&&this.autoZIndex&&e.ZIndexUtils.clear(this.picker),this.clearRefs()},mounted(){this.updateUI()},watch:{modelValue:{immediate:!0,handler(e){this.hsbValue=this.toHSB(e),this.selfUpdate?this.selfUpdate=!1:this.updateUI()}}},methods:{pickColor(e){let t=this.colorSelector.getBoundingClientRect(),i=t.top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0),n=t.left+document.body.scrollLeft,o=Math.floor(100*Math.max(0,Math.min(150,(e.pageX||e.changedTouches[0].pageX)-n))/150),s=Math.floor(100*(150-Math.max(0,Math.min(150,(e.pageY||e.changedTouches[0].pageY)-i)))/150);this.hsbValue=this.validateHSB({h:this.hsbValue.h,s:o,b:s}),this.selfUpdate=!0,this.updateColorHandle(),this.updateInput(),this.updateModel(),this.$emit("change",{event:e,value:this.modelValue})},pickHue(e){let t=this.hueView.getBoundingClientRect().top+(window.pageYOffset||document.documentElement.scrollTop||document.body.scrollTop||0);this.hsbValue=this.validateHSB({h:Math.floor(360*(150-Math.max(0,Math.min(150,(e.pageY||e.changedTouches[0].pageY)-t)))/150),s:100,b:100}),this.selfUpdate=!0,this.updateColorSelector(),this.updateHue(),this.updateModel(),this.updateInput(),this.$emit("change",{event:e,value:this.modelValue})},updateModel(){switch(this.format){case"hex":this.$emit("update:modelValue",this.HSBtoHEX(this.hsbValue));break;case"rgb":this.$emit("update:modelValue",this.HSBtoRGB(this.hsbValue));break;case"hsb":this.$emit("update:modelValue",this.hsbValue)}},updateColorSelector(){if(this.colorSelector){let e=this.validateHSB({h:this.hsbValue.h,s:100,b:100});this.colorSelector.style.backgroundColor="#"+this.HSBtoHEX(e)}},updateColorHandle(){this.colorHandle&&(this.colorHandle.style.left=Math.floor(150*this.hsbValue.s/100)+"px",this.colorHandle.style.top=Math.floor(150*(100-this.hsbValue.b)/100)+"px")},updateHue(){this.hueHandle&&(this.hueHandle.style.top=Math.floor(150-150*this.hsbValue.h/360)+"px")},updateInput(){this.$refs.input&&(this.$refs.input.style.backgroundColor="#"+this.HSBtoHEX(this.hsbValue))},updateUI(){this.updateHue(),this.updateColorHandle(),this.updateInput(),this.updateColorSelector()},validateHSB:e=>({h:Math.min(360,Math.max(0,e.h)),s:Math.min(100,Math.max(0,e.s)),b:Math.min(100,Math.max(0,e.b))}),validateRGB:e=>({r:Math.min(255,Math.max(0,e.r)),g:Math.min(255,Math.max(0,e.g)),b:Math.min(255,Math.max(0,e.b))}),validateHEX(e){var t=6-e.length;if(t>0){for(var i=[],n=0;n<t;n++)i.push("0");i.push(e),e=i.join("")}return e},HEXtoRGB(e){let t=parseInt(e.indexOf("#")>-1?e.substring(1):e,16);return{r:t>>16,g:(65280&t)>>8,b:255&t}},HEXtoHSB(e){return this.RGBtoHSB(this.HEXtoRGB(e))},RGBtoHSB(e){var t={h:0,s:0,b:0},i=Math.min(e.r,e.g,e.b),n=Math.max(e.r,e.g,e.b),o=n-i;return t.b=n,t.s=0!==n?255*o/n:0,0!==t.s?e.r===n?t.h=(e.g-e.b)/o:e.g===n?t.h=2+(e.b-e.r)/o:t.h=4+(e.r-e.g)/o:t.h=-1,t.h*=60,t.h<0&&(t.h+=360),t.s*=100/255,t.b*=100/255,t},HSBtoRGB(e){var t={r:null,g:null,b:null},i=Math.round(e.h),n=Math.round(255*e.s/100),o=Math.round(255*e.b/100);if(0===n)t={r:o,g:o,b:o};else{var s=o,l=(255-n)*o/255,r=i%60*(s-l)/60;360===i&&(i=0),i<60?(t.r=s,t.b=l,t.g=l+r):i<120?(t.g=s,t.b=l,t.r=s-r):i<180?(t.g=s,t.r=l,t.b=l+r):i<240?(t.b=s,t.r=l,t.g=s-r):i<300?(t.b=s,t.g=l,t.r=l+r):i<360?(t.r=s,t.g=l,t.b=s-r):(t.r=0,t.g=0,t.b=0)}return{r:Math.round(t.r),g:Math.round(t.g),b:Math.round(t.b)}},RGBtoHEX(e){var t=[e.r.toString(16),e.g.toString(16),e.b.toString(16)];for(var i in t)1===t[i].length&&(t[i]="0"+t[i]);return t.join("")},HSBtoHEX(e){return this.RGBtoHEX(this.HSBtoRGB(e))},toHSB(e){let t;if(e)switch(this.format){case"hex":t=this.HEXtoHSB(e);break;case"rgb":t=this.RGBtoHSB(e);break;case"hsb":t=e}else t=this.HEXtoHSB(this.defaultColor);return t},onOverlayEnter(t){this.updateUI(),this.alignOverlay(),this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),this.autoZIndex&&e.ZIndexUtils.set("overlay",t,this.$primevue.config.zIndex.overlay),this.$emit("show")},onOverlayLeave(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener(),this.clearRefs(),this.$emit("hide")},onOverlayAfterLeave(t){this.autoZIndex&&e.ZIndexUtils.clear(t)},alignOverlay(){this.appendDisabled?e.DomHandler.relativePosition(this.picker,this.$refs.input):e.DomHandler.absolutePosition(this.picker,this.$refs.input)},onInputClick(){this.disabled||(this.overlayVisible=!this.overlayVisible)},onInputKeydown(e){switch(e.which){case 32:this.overlayVisible=!this.overlayVisible,e.preventDefault();break;case 27:case 9:this.overlayVisible=!1}},onColorMousedown(e){this.disabled||(this.bindDragListeners(),this.onColorDragStart(e))},onColorDragStart(t){this.disabled||(this.colorDragging=!0,this.pickColor(t),e.DomHandler.addClass(this.$el,"p-colorpicker-dragging"),t.preventDefault())},onDrag(e){this.colorDragging&&(this.pickColor(e),e.preventDefault()),this.hueDragging&&(this.pickHue(e),e.preventDefault())},onDragEnd(){this.colorDragging=!1,this.hueDragging=!1,e.DomHandler.removeClass(this.$el,"p-colorpicker-dragging"),this.unbindDragListeners()},onHueMousedown(e){this.disabled||(this.bindDragListeners(),this.onHueDragStart(e))},onHueDragStart(t){this.disabled||(this.hueDragging=!0,this.pickHue(t),e.DomHandler.addClass(this.$el,"p-colorpicker-dragging"))},isInputClicked(e){return this.$refs.input&&this.$refs.input.isSameNode(e.target)},bindDragListeners(){this.bindDocumentMouseMoveListener(),this.bindDocumentMouseUpListener()},unbindDragListeners(){this.unbindDocumentMouseMoveListener(),this.unbindDocumentMouseUpListener()},bindOutsideClickListener(){this.outsideClickListener||(this.outsideClickListener=e=>{this.overlayVisible&&this.picker&&!this.picker.contains(e.target)&&!this.isInputClicked(e)&&(this.overlayVisible=!1)},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener(){this.scrollHandler||(this.scrollHandler=new e.ConnectedOverlayScrollHandler(this.$refs.container,(()=>{this.overlayVisible&&(this.overlayVisible=!1)}))),this.scrollHandler.bindScrollListener()},unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener(){this.resizeListener||(this.resizeListener=()=>{this.overlayVisible&&(this.overlayVisible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},bindDocumentMouseMoveListener(){this.documentMouseMoveListener||(this.documentMouseMoveListener=this.onDrag.bind(this),document.addEventListener("mousemove",this.documentMouseMoveListener))},unbindDocumentMouseMoveListener(){this.documentMouseMoveListener&&(document.removeEventListener("mousemove",this.documentMouseMoveListener),this.documentMouseMoveListener=null)},bindDocumentMouseUpListener(){this.documentMouseUpListener||(this.documentMouseUpListener=this.onDragEnd.bind(this),document.addEventListener("mouseup",this.documentMouseUpListener))},unbindDocumentMouseUpListener(){this.documentMouseUpListener&&(document.removeEventListener("mouseup",this.documentMouseUpListener),this.documentMouseUpListener=null)},pickerRef(e){this.picker=e},colorSelectorRef(e){this.colorSelector=e},colorHandleRef(e){this.colorHandle=e},hueViewRef(e){this.hueView=e},hueHandleRef(e){this.hueHandle=e},clearRefs(){this.picker=null,this.colorSelector=null,this.colorHandle=null,this.hueView=null,this.hueHandle=null},onOverlayClick(e){o.default.emit("overlay-click",{originalEvent:e,target:this.$el})}},computed:{containerClass(){return["p-colorpicker p-component",{"p-colorpicker-overlay":!this.inline}]},inputClass(){return["p-colorpicker-preview p-inputtext",{"p-disabled":this.disabled}]},pickerClass(){return["p-colorpicker-panel",this.panelClass,{"p-colorpicker-overlay-panel":!this.inline,"p-disabled":this.disabled,"p-input-filled":"filled"===this.$primevue.config.inputStyle,"p-ripple-disabled":!1===this.$primevue.config.ripple}]},appendDisabled(){return"self"===this.appendTo||this.inline},appendTarget(){return this.appendDisabled?null:this.appendTo}}};const l={class:"p-colorpicker-content"},r={class:"p-colorpicker-color"};return function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===i&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}("\n.p-colorpicker {\n display: inline-block;\n}\n.p-colorpicker-dragging {\n cursor: pointer;\n}\n.p-colorpicker-overlay {\n position: relative;\n}\n.p-colorpicker-panel {\n position: relative;\n width: 193px;\n height: 166px;\n}\n.p-colorpicker-overlay-panel {\n position: absolute;\n top: 0;\n left: 0;\n}\n.p-colorpicker-preview {\n cursor: pointer;\n}\n.p-colorpicker-panel .p-colorpicker-content {\n position: relative;\n}\n.p-colorpicker-panel .p-colorpicker-color-selector {\n width: 150px;\n height: 150px;\n top: 8px;\n left: 8px;\n position: absolute;\n}\n.p-colorpicker-panel .p-colorpicker-color {\n width: 150px;\n height: 150px;\n}\n.p-colorpicker-panel .p-colorpicker-color-handle {\n position: absolute;\n top: 0px;\n left: 150px;\n border-radius: 100%;\n width: 10px;\n height: 10px;\n border-width: 1px;\n border-style: solid;\n margin: -5px 0 0 -5px;\n cursor: pointer;\n opacity: .85;\n}\n.p-colorpicker-panel .p-colorpicker-hue {\n width: 17px;\n height: 150px;\n top: 8px;\n left: 167px;\n position: absolute;\n opacity: .85;\n}\n.p-colorpicker-panel .p-colorpicker-hue-handle {\n position: absolute;\n top: 150px;\n left: 0px;\n width: 21px;\n margin-left: -2px;\n margin-top: -5px;\n height: 10px;\n border-width: 2px;\n border-style: solid;\n opacity: .85;\n cursor: pointer;\n}\n"),s.render=function(e,t,n,o,s,a){return i.openBlock(),i.createBlock("div",{ref:"container",class:a.containerClass},[n.inline?i.createCommentVNode("",!0):(i.openBlock(),i.createBlock("input",{key:0,ref:"input",type:"text",class:a.inputClass,readonly:"readonly",tabindex:n.tabindex,disabled:n.disabled,onClick:t[1]||(t[1]=(...e)=>a.onInputClick&&a.onInputClick(...e)),onKeydown:t[2]||(t[2]=(...e)=>a.onInputKeydown&&a.onInputKeydown(...e)),"aria-labelledby":n.ariaLabelledBy},null,42,["tabindex","disabled","aria-labelledby"])),(i.openBlock(),i.createBlock(i.Teleport,{to:a.appendTarget,disabled:a.appendDisabled},[i.createVNode(i.Transition,{name:"p-connected-overlay",onEnter:a.onOverlayEnter,onLeave:a.onOverlayLeave,onAfterLeave:a.onOverlayAfterLeave},{default:i.withCtx((()=>[n.inline||s.overlayVisible?(i.openBlock(),i.createBlock("div",{key:0,ref:a.pickerRef,class:a.pickerClass,onClick:t[11]||(t[11]=(...e)=>a.onOverlayClick&&a.onOverlayClick(...e))},[i.createVNode("div",l,[i.createVNode("div",{ref:a.colorSelectorRef,class:"p-colorpicker-color-selector",onMousedown:t[3]||(t[3]=e=>a.onColorMousedown(e)),onTouchstart:t[4]||(t[4]=e=>a.onColorDragStart(e)),onTouchmove:t[5]||(t[5]=e=>a.onDrag(e)),onTouchend:t[6]||(t[6]=e=>a.onDragEnd())},[i.createVNode("div",r,[i.createVNode("div",{ref:a.colorHandleRef,class:"p-colorpicker-color-handle"},null,512)])],544),i.createVNode("div",{ref:a.hueViewRef,class:"p-colorpicker-hue",onMousedown:t[7]||(t[7]=e=>a.onHueMousedown(e)),onTouchstart:t[8]||(t[8]=e=>a.onHueDragStart(e)),onTouchmove:t[9]||(t[9]=e=>a.onDrag(e)),onTouchend:t[10]||(t[10]=e=>a.onDragEnd())},[i.createVNode("div",{ref:a.hueHandleRef,class:"p-colorpicker-hue-handle"},null,512)],544)])],2)):i.createCommentVNode("",!0)])),_:1},8,["onEnter","onLeave","onAfterLeave"])],8,["to","disabled"]))],2)},s}(primevue.utils,primevue.overlayeventbus,Vue);
@@ -1,5 +1,3 @@
1
- import { VNode } from 'vue';
2
-
3
1
  interface ColumnProps {
4
2
  columnKey?: any;
5
3
  field?: string | ((item: any) => any);
@@ -45,18 +43,51 @@ interface ColumnProps {
45
43
  hidden?: boolean;
46
44
  }
47
45
 
46
+ interface ColumnBodySlotInterface {
47
+ data: any;
48
+ column: any;
49
+ field: string;
50
+ index: number;
51
+ frozenRow: boolean;
52
+ }
53
+
54
+ interface ColumnHeaderSlotInterface {
55
+ column: any;
56
+ }
57
+
58
+ interface ColumnFooterSlotInterface {
59
+ column: any;
60
+ }
61
+
62
+ interface ColumnEditorSlotInterface {
63
+ data: any;
64
+ column: any;
65
+ field: string;
66
+ index: number;
67
+ frozenRow: boolean;
68
+ }
69
+
70
+ interface ColumnFilterSlotInterface {
71
+ field: string;
72
+ filterModel: {
73
+ value: any;
74
+ matchMode: string;
75
+ };
76
+ filterCallback: any;
77
+ }
78
+
48
79
  declare class Column {
49
80
  $props: ColumnProps;
50
81
  $slots: {
51
- body: VNode[];
52
- header: VNode[];
53
- footer: VNode[];
54
- editor: VNode[];
55
- filter: VNode[];
56
- filterheader: VNode[];
57
- filterfooter: VNode[];
58
- filterclear: VNode[];
59
- filterapply: VNode[];
82
+ body: ColumnBodySlotInterface;
83
+ header: ColumnHeaderSlotInterface;
84
+ footer: ColumnFooterSlotInterface;
85
+ editor: ColumnEditorSlotInterface;
86
+ filter: ColumnFilterSlotInterface;
87
+ filterheader: ColumnFilterSlotInterface;
88
+ filterfooter: ColumnFilterSlotInterface;
89
+ filterclear: ColumnFilterSlotInterface;
90
+ filterapply: ColumnFilterSlotInterface;
60
91
  }
61
92
  }
62
93
 
@@ -1,6 +1,7 @@
1
- import Vue, { PluginFunction } from 'vue';
1
+ import Vue, { Plugin } from 'vue';
2
2
 
3
- export const install: PluginFunction<{}>;
3
+ declare const plugin: Plugin;
4
+ export default plugin;
4
5
 
5
6
  interface ConfirmationServiceMethods {
6
7
  require(options: any): any;
@@ -4,8 +4,8 @@
4
4
  <i :class="iconClass" />
5
5
  <span class="p-confirm-dialog-message">{{message}}</span>
6
6
  <template #footer>
7
- <CDButton :label="rejectLabel" :icon="rejectIcon" :class="rejectClass" @click="reject()"/>
8
- <CDButton :label="acceptLabel" :icon="acceptIcon" :class="acceptClass" @click="accept()" autofocus />
7
+ <CDButton :label="rejectLabel" :icon="rejectIcon" :class="rejectClass" @click="reject()" :autofocus="autoFocusReject"/>
8
+ <CDButton :label="acceptLabel" :icon="acceptIcon" :class="acceptClass" @click="accept()" :autofocus="autoFocusAccept" />
9
9
  </template>
10
10
  </CDialog>
11
11
  </template>
@@ -104,6 +104,12 @@ export default {
104
104
  },
105
105
  rejectClass() {
106
106
  return ['p-confirm-dialog-reject', this.confirmation ? (this.confirmation.rejectClass || 'p-button-text') : null];
107
+ },
108
+ autoFocusAccept() {
109
+ return (this.confirmation.defaultFocus === undefined || this.confirmation.defaultFocus === 'accept') ? true : false;
110
+ },
111
+ autoFocusReject() {
112
+ return this.confirmation.defaultFocus === 'reject' ? true : false;
107
113
  }
108
114
  },
109
115
  components: {
@@ -100,6 +100,12 @@ var script = {
100
100
  },
101
101
  rejectClass() {
102
102
  return ['p-confirm-dialog-reject', this.confirmation ? (this.confirmation.rejectClass || 'p-button-text') : null];
103
+ },
104
+ autoFocusAccept() {
105
+ return (this.confirmation.defaultFocus === undefined || this.confirmation.defaultFocus === 'accept') ? true : false;
106
+ },
107
+ autoFocusReject() {
108
+ return this.confirmation.defaultFocus === 'reject' ? true : false;
103
109
  }
104
110
  },
105
111
  components: {
@@ -129,15 +135,16 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
129
135
  label: $options.rejectLabel,
130
136
  icon: $options.rejectIcon,
131
137
  class: $options.rejectClass,
132
- onClick: _cache[1] || (_cache[1] = $event => ($options.reject()))
133
- }, null, 8, ["label", "icon", "class"]),
138
+ onClick: _cache[1] || (_cache[1] = $event => ($options.reject())),
139
+ autofocus: $options.autoFocusReject
140
+ }, null, 8, ["label", "icon", "class", "autofocus"]),
134
141
  vue.createVNode(_component_CDButton, {
135
142
  label: $options.acceptLabel,
136
143
  icon: $options.acceptIcon,
137
144
  class: $options.acceptClass,
138
145
  onClick: _cache[2] || (_cache[2] = $event => ($options.accept())),
139
- autofocus: ""
140
- }, null, 8, ["label", "icon", "class"])
146
+ autofocus: $options.autoFocusAccept
147
+ }, null, 8, ["label", "icon", "class", "autofocus"])
141
148
  ]),
142
149
  default: vue.withCtx(() => [
143
150
  vue.createVNode("i", { class: $options.iconClass }, null, 2),
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/confirmationeventbus"),i=require("primevue/dialog"),t=require("primevue/button"),o=require("vue");function n(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var c=n(e),r=n(i),l=n(t),s={name:"ConfirmDialog",props:{group:String,breakpoints:{type:Object,default:null}},confirmListener:null,closeListener:null,data:()=>({visible:!1,confirmation:null}),mounted(){this.confirmListener=e=>{e&&e.group===this.group&&(this.confirmation=e,this.visible=!0)},this.closeListener=()=>{this.visible=!1,this.confirmation=null},c.default.on("confirm",this.confirmListener),c.default.on("close",this.closeListener)},beforeUnmount(){c.default.off("confirm",this.confirmListener),c.default.off("close",this.closeListener)},methods:{accept(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1}},computed:{header(){return this.confirmation?this.confirmation.header:null},message(){return this.confirmation?this.confirmation.message:null},blockScroll(){return!this.confirmation||this.confirmation.blockScroll},position(){return this.confirmation?this.confirmation.position:null},iconClass(){return["p-confirm-dialog-icon",this.confirmation?this.confirmation.icon:null]},acceptLabel(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon(){return this.confirmation?this.confirmation.rejectIcon:null},acceptClass(){return["p-confirm-dialog-accept",this.confirmation?this.confirmation.acceptClass:null]},rejectClass(){return["p-confirm-dialog-reject",this.confirmation?this.confirmation.rejectClass||"p-button-text":null]}},components:{CDialog:r.default,CDButton:l.default}};const a={class:"p-confirm-dialog-message"};s.render=function(e,i,t,n,c,r){const l=o.resolveComponent("CDButton"),s=o.resolveComponent("CDialog");return o.openBlock(),o.createBlock(s,{visible:c.visible,"onUpdate:visible":i[3]||(i[3]=e=>c.visible=e),modal:!0,header:r.header,blockScroll:r.blockScroll,position:r.position,class:"p-confirm-dialog",breakpoints:t.breakpoints},{footer:o.withCtx((()=>[o.createVNode(l,{label:r.rejectLabel,icon:r.rejectIcon,class:r.rejectClass,onClick:i[1]||(i[1]=e=>r.reject())},null,8,["label","icon","class"]),o.createVNode(l,{label:r.acceptLabel,icon:r.acceptIcon,class:r.acceptClass,onClick:i[2]||(i[2]=e=>r.accept()),autofocus:""},null,8,["label","icon","class"])])),default:o.withCtx((()=>[o.createVNode("i",{class:r.iconClass},null,2),o.createVNode("span",a,o.toDisplayString(r.message),1)])),_:1},8,["visible","header","blockScroll","position","breakpoints"])},module.exports=s;
1
+ "use strict";var t=require("primevue/confirmationeventbus"),e=require("primevue/dialog"),i=require("primevue/button"),o=require("vue");function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var c=n(t),r=n(e),s=n(i),a={name:"ConfirmDialog",props:{group:String,breakpoints:{type:Object,default:null}},confirmListener:null,closeListener:null,data:()=>({visible:!1,confirmation:null}),mounted(){this.confirmListener=t=>{t&&t.group===this.group&&(this.confirmation=t,this.visible=!0)},this.closeListener=()=>{this.visible=!1,this.confirmation=null},c.default.on("confirm",this.confirmListener),c.default.on("close",this.closeListener)},beforeUnmount(){c.default.off("confirm",this.confirmListener),c.default.off("close",this.closeListener)},methods:{accept(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1}},computed:{header(){return this.confirmation?this.confirmation.header:null},message(){return this.confirmation?this.confirmation.message:null},blockScroll(){return!this.confirmation||this.confirmation.blockScroll},position(){return this.confirmation?this.confirmation.position:null},iconClass(){return["p-confirm-dialog-icon",this.confirmation?this.confirmation.icon:null]},acceptLabel(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon(){return this.confirmation?this.confirmation.rejectIcon:null},acceptClass(){return["p-confirm-dialog-accept",this.confirmation?this.confirmation.acceptClass:null]},rejectClass(){return["p-confirm-dialog-reject",this.confirmation?this.confirmation.rejectClass||"p-button-text":null]},autoFocusAccept(){return void 0===this.confirmation.defaultFocus||"accept"===this.confirmation.defaultFocus},autoFocusReject(){return"reject"===this.confirmation.defaultFocus}},components:{CDialog:r.default,CDButton:s.default}};const l={class:"p-confirm-dialog-message"};a.render=function(t,e,i,n,c,r){const s=o.resolveComponent("CDButton"),a=o.resolveComponent("CDialog");return o.openBlock(),o.createBlock(a,{visible:c.visible,"onUpdate:visible":e[3]||(e[3]=t=>c.visible=t),modal:!0,header:r.header,blockScroll:r.blockScroll,position:r.position,class:"p-confirm-dialog",breakpoints:i.breakpoints},{footer:o.withCtx((()=>[o.createVNode(s,{label:r.rejectLabel,icon:r.rejectIcon,class:r.rejectClass,onClick:e[1]||(e[1]=t=>r.reject()),autofocus:r.autoFocusReject},null,8,["label","icon","class","autofocus"]),o.createVNode(s,{label:r.acceptLabel,icon:r.acceptIcon,class:r.acceptClass,onClick:e[2]||(e[2]=t=>r.accept()),autofocus:r.autoFocusAccept},null,8,["label","icon","class","autofocus"])])),default:o.withCtx((()=>[o.createVNode("i",{class:r.iconClass},null,2),o.createVNode("span",l,o.toDisplayString(r.message),1)])),_:1},8,["visible","header","blockScroll","position","breakpoints"])},module.exports=a;
@@ -92,6 +92,12 @@ var script = {
92
92
  },
93
93
  rejectClass() {
94
94
  return ['p-confirm-dialog-reject', this.confirmation ? (this.confirmation.rejectClass || 'p-button-text') : null];
95
+ },
96
+ autoFocusAccept() {
97
+ return (this.confirmation.defaultFocus === undefined || this.confirmation.defaultFocus === 'accept') ? true : false;
98
+ },
99
+ autoFocusReject() {
100
+ return this.confirmation.defaultFocus === 'reject' ? true : false;
95
101
  }
96
102
  },
97
103
  components: {
@@ -121,15 +127,16 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
121
127
  label: $options.rejectLabel,
122
128
  icon: $options.rejectIcon,
123
129
  class: $options.rejectClass,
124
- onClick: _cache[1] || (_cache[1] = $event => ($options.reject()))
125
- }, null, 8, ["label", "icon", "class"]),
130
+ onClick: _cache[1] || (_cache[1] = $event => ($options.reject())),
131
+ autofocus: $options.autoFocusReject
132
+ }, null, 8, ["label", "icon", "class", "autofocus"]),
126
133
  createVNode(_component_CDButton, {
127
134
  label: $options.acceptLabel,
128
135
  icon: $options.acceptIcon,
129
136
  class: $options.acceptClass,
130
137
  onClick: _cache[2] || (_cache[2] = $event => ($options.accept())),
131
- autofocus: ""
132
- }, null, 8, ["label", "icon", "class"])
138
+ autofocus: $options.autoFocusAccept
139
+ }, null, 8, ["label", "icon", "class", "autofocus"])
133
140
  ]),
134
141
  default: withCtx(() => [
135
142
  createVNode("i", { class: $options.iconClass }, null, 2),
@@ -1 +1 @@
1
- import i from"primevue/confirmationeventbus";import o from"primevue/dialog";import t from"primevue/button";import{resolveComponent as n,openBlock as e,createBlock as c,withCtx as r,createVNode as s,toDisplayString as l}from"vue";var a={name:"ConfirmDialog",props:{group:String,breakpoints:{type:Object,default:null}},confirmListener:null,closeListener:null,data:()=>({visible:!1,confirmation:null}),mounted(){this.confirmListener=i=>{i&&i.group===this.group&&(this.confirmation=i,this.visible=!0)},this.closeListener=()=>{this.visible=!1,this.confirmation=null},i.on("confirm",this.confirmListener),i.on("close",this.closeListener)},beforeUnmount(){i.off("confirm",this.confirmListener),i.off("close",this.closeListener)},methods:{accept(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1}},computed:{header(){return this.confirmation?this.confirmation.header:null},message(){return this.confirmation?this.confirmation.message:null},blockScroll(){return!this.confirmation||this.confirmation.blockScroll},position(){return this.confirmation?this.confirmation.position:null},iconClass(){return["p-confirm-dialog-icon",this.confirmation?this.confirmation.icon:null]},acceptLabel(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon(){return this.confirmation?this.confirmation.rejectIcon:null},acceptClass(){return["p-confirm-dialog-accept",this.confirmation?this.confirmation.acceptClass:null]},rejectClass(){return["p-confirm-dialog-reject",this.confirmation?this.confirmation.rejectClass||"p-button-text":null]}},components:{CDialog:o,CDButton:t}};const m={class:"p-confirm-dialog-message"};a.render=function(i,o,t,a,f,u){const p=n("CDButton"),h=n("CDialog");return e(),c(h,{visible:f.visible,"onUpdate:visible":o[3]||(o[3]=i=>f.visible=i),modal:!0,header:u.header,blockScroll:u.blockScroll,position:u.position,class:"p-confirm-dialog",breakpoints:t.breakpoints},{footer:r((()=>[s(p,{label:u.rejectLabel,icon:u.rejectIcon,class:u.rejectClass,onClick:o[1]||(o[1]=i=>u.reject())},null,8,["label","icon","class"]),s(p,{label:u.acceptLabel,icon:u.acceptIcon,class:u.acceptClass,onClick:o[2]||(o[2]=i=>u.accept()),autofocus:""},null,8,["label","icon","class"])])),default:r((()=>[s("i",{class:u.iconClass},null,2),s("span",m,l(u.message),1)])),_:1},8,["visible","header","blockScroll","position","breakpoints"])};export default a;
1
+ import i from"primevue/confirmationeventbus";import o from"primevue/dialog";import t from"primevue/button";import{resolveComponent as e,openBlock as n,createBlock as c,withCtx as r,createVNode as s,toDisplayString as a}from"vue";var l={name:"ConfirmDialog",props:{group:String,breakpoints:{type:Object,default:null}},confirmListener:null,closeListener:null,data:()=>({visible:!1,confirmation:null}),mounted(){this.confirmListener=i=>{i&&i.group===this.group&&(this.confirmation=i,this.visible=!0)},this.closeListener=()=>{this.visible=!1,this.confirmation=null},i.on("confirm",this.confirmListener),i.on("close",this.closeListener)},beforeUnmount(){i.off("confirm",this.confirmListener),i.off("close",this.closeListener)},methods:{accept(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1}},computed:{header(){return this.confirmation?this.confirmation.header:null},message(){return this.confirmation?this.confirmation.message:null},blockScroll(){return!this.confirmation||this.confirmation.blockScroll},position(){return this.confirmation?this.confirmation.position:null},iconClass(){return["p-confirm-dialog-icon",this.confirmation?this.confirmation.icon:null]},acceptLabel(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon(){return this.confirmation?this.confirmation.rejectIcon:null},acceptClass(){return["p-confirm-dialog-accept",this.confirmation?this.confirmation.acceptClass:null]},rejectClass(){return["p-confirm-dialog-reject",this.confirmation?this.confirmation.rejectClass||"p-button-text":null]},autoFocusAccept(){return void 0===this.confirmation.defaultFocus||"accept"===this.confirmation.defaultFocus},autoFocusReject(){return"reject"===this.confirmation.defaultFocus}},components:{CDialog:o,CDButton:t}};const u={class:"p-confirm-dialog-message"};l.render=function(i,o,t,l,m,f){const p=e("CDButton"),h=e("CDialog");return n(),c(h,{visible:m.visible,"onUpdate:visible":o[3]||(o[3]=i=>m.visible=i),modal:!0,header:f.header,blockScroll:f.blockScroll,position:f.position,class:"p-confirm-dialog",breakpoints:t.breakpoints},{footer:r((()=>[s(p,{label:f.rejectLabel,icon:f.rejectIcon,class:f.rejectClass,onClick:o[1]||(o[1]=i=>f.reject()),autofocus:f.autoFocusReject},null,8,["label","icon","class","autofocus"]),s(p,{label:f.acceptLabel,icon:f.acceptIcon,class:f.acceptClass,onClick:o[2]||(o[2]=i=>f.accept()),autofocus:f.autoFocusAccept},null,8,["label","icon","class","autofocus"])])),default:r((()=>[s("i",{class:f.iconClass},null,2),s("span",u,a(f.message),1)])),_:1},8,["visible","header","blockScroll","position","breakpoints"])};export default l;
@@ -97,6 +97,12 @@ this.primevue.confirmdialog = (function (ConfirmationEventBus, Dialog, Button, v
97
97
  },
98
98
  rejectClass() {
99
99
  return ['p-confirm-dialog-reject', this.confirmation ? (this.confirmation.rejectClass || 'p-button-text') : null];
100
+ },
101
+ autoFocusAccept() {
102
+ return (this.confirmation.defaultFocus === undefined || this.confirmation.defaultFocus === 'accept') ? true : false;
103
+ },
104
+ autoFocusReject() {
105
+ return this.confirmation.defaultFocus === 'reject' ? true : false;
100
106
  }
101
107
  },
102
108
  components: {
@@ -126,15 +132,16 @@ this.primevue.confirmdialog = (function (ConfirmationEventBus, Dialog, Button, v
126
132
  label: $options.rejectLabel,
127
133
  icon: $options.rejectIcon,
128
134
  class: $options.rejectClass,
129
- onClick: _cache[1] || (_cache[1] = $event => ($options.reject()))
130
- }, null, 8, ["label", "icon", "class"]),
135
+ onClick: _cache[1] || (_cache[1] = $event => ($options.reject())),
136
+ autofocus: $options.autoFocusReject
137
+ }, null, 8, ["label", "icon", "class", "autofocus"]),
131
138
  vue.createVNode(_component_CDButton, {
132
139
  label: $options.acceptLabel,
133
140
  icon: $options.acceptIcon,
134
141
  class: $options.acceptClass,
135
142
  onClick: _cache[2] || (_cache[2] = $event => ($options.accept())),
136
- autofocus: ""
137
- }, null, 8, ["label", "icon", "class"])
143
+ autofocus: $options.autoFocusAccept
144
+ }, null, 8, ["label", "icon", "class", "autofocus"])
138
145
  ]),
139
146
  default: vue.withCtx(() => [
140
147
  vue.createVNode("i", { class: $options.iconClass }, null, 2),
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.confirmdialog=function(i,e,t,o){"use strict";function n(i){return i&&"object"==typeof i&&"default"in i?i:{default:i}}var c=n(i),r=n(e),l=n(t),s={name:"ConfirmDialog",props:{group:String,breakpoints:{type:Object,default:null}},confirmListener:null,closeListener:null,data:()=>({visible:!1,confirmation:null}),mounted(){this.confirmListener=i=>{i&&i.group===this.group&&(this.confirmation=i,this.visible=!0)},this.closeListener=()=>{this.visible=!1,this.confirmation=null},c.default.on("confirm",this.confirmListener),c.default.on("close",this.closeListener)},beforeUnmount(){c.default.off("confirm",this.confirmListener),c.default.off("close",this.closeListener)},methods:{accept(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1}},computed:{header(){return this.confirmation?this.confirmation.header:null},message(){return this.confirmation?this.confirmation.message:null},blockScroll(){return!this.confirmation||this.confirmation.blockScroll},position(){return this.confirmation?this.confirmation.position:null},iconClass(){return["p-confirm-dialog-icon",this.confirmation?this.confirmation.icon:null]},acceptLabel(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon(){return this.confirmation?this.confirmation.rejectIcon:null},acceptClass(){return["p-confirm-dialog-accept",this.confirmation?this.confirmation.acceptClass:null]},rejectClass(){return["p-confirm-dialog-reject",this.confirmation?this.confirmation.rejectClass||"p-button-text":null]}},components:{CDialog:r.default,CDButton:l.default}};const a={class:"p-confirm-dialog-message"};return s.render=function(i,e,t,n,c,r){const l=o.resolveComponent("CDButton"),s=o.resolveComponent("CDialog");return o.openBlock(),o.createBlock(s,{visible:c.visible,"onUpdate:visible":e[3]||(e[3]=i=>c.visible=i),modal:!0,header:r.header,blockScroll:r.blockScroll,position:r.position,class:"p-confirm-dialog",breakpoints:t.breakpoints},{footer:o.withCtx((()=>[o.createVNode(l,{label:r.rejectLabel,icon:r.rejectIcon,class:r.rejectClass,onClick:e[1]||(e[1]=i=>r.reject())},null,8,["label","icon","class"]),o.createVNode(l,{label:r.acceptLabel,icon:r.acceptIcon,class:r.acceptClass,onClick:e[2]||(e[2]=i=>r.accept()),autofocus:""},null,8,["label","icon","class"])])),default:o.withCtx((()=>[o.createVNode("i",{class:r.iconClass},null,2),o.createVNode("span",a,o.toDisplayString(r.message),1)])),_:1},8,["visible","header","blockScroll","position","breakpoints"])},s}(primevue.confirmationeventbus,primevue.dialog,primevue.button,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.confirmdialog=function(t,i,e,o){"use strict";function n(t){return t&&"object"==typeof t&&"default"in t?t:{default:t}}var c=n(t),r=n(i),s=n(e),a={name:"ConfirmDialog",props:{group:String,breakpoints:{type:Object,default:null}},confirmListener:null,closeListener:null,data:()=>({visible:!1,confirmation:null}),mounted(){this.confirmListener=t=>{t&&t.group===this.group&&(this.confirmation=t,this.visible=!0)},this.closeListener=()=>{this.visible=!1,this.confirmation=null},c.default.on("confirm",this.confirmListener),c.default.on("close",this.closeListener)},beforeUnmount(){c.default.off("confirm",this.confirmListener),c.default.off("close",this.closeListener)},methods:{accept(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1}},computed:{header(){return this.confirmation?this.confirmation.header:null},message(){return this.confirmation?this.confirmation.message:null},blockScroll(){return!this.confirmation||this.confirmation.blockScroll},position(){return this.confirmation?this.confirmation.position:null},iconClass(){return["p-confirm-dialog-icon",this.confirmation?this.confirmation.icon:null]},acceptLabel(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon(){return this.confirmation?this.confirmation.rejectIcon:null},acceptClass(){return["p-confirm-dialog-accept",this.confirmation?this.confirmation.acceptClass:null]},rejectClass(){return["p-confirm-dialog-reject",this.confirmation?this.confirmation.rejectClass||"p-button-text":null]},autoFocusAccept(){return void 0===this.confirmation.defaultFocus||"accept"===this.confirmation.defaultFocus},autoFocusReject(){return"reject"===this.confirmation.defaultFocus}},components:{CDialog:r.default,CDButton:s.default}};const l={class:"p-confirm-dialog-message"};return a.render=function(t,i,e,n,c,r){const s=o.resolveComponent("CDButton"),a=o.resolveComponent("CDialog");return o.openBlock(),o.createBlock(a,{visible:c.visible,"onUpdate:visible":i[3]||(i[3]=t=>c.visible=t),modal:!0,header:r.header,blockScroll:r.blockScroll,position:r.position,class:"p-confirm-dialog",breakpoints:e.breakpoints},{footer:o.withCtx((()=>[o.createVNode(s,{label:r.rejectLabel,icon:r.rejectIcon,class:r.rejectClass,onClick:i[1]||(i[1]=t=>r.reject()),autofocus:r.autoFocusReject},null,8,["label","icon","class","autofocus"]),o.createVNode(s,{label:r.acceptLabel,icon:r.acceptIcon,class:r.acceptClass,onClick:i[2]||(i[2]=t=>r.accept()),autofocus:r.autoFocusAccept},null,8,["label","icon","class","autofocus"])])),default:o.withCtx((()=>[o.createVNode("i",{class:r.iconClass},null,2),o.createVNode("span",l,o.toDisplayString(r.message),1)])),_:1},8,["visible","header","blockScroll","position","breakpoints"])},a}(primevue.confirmationeventbus,primevue.dialog,primevue.button,Vue);
@@ -2,8 +2,15 @@ interface ConfirmPopupProps {
2
2
  group?: string;
3
3
  }
4
4
 
5
+ interface ConfirmPopupMessageSlot {
6
+ message: any;
7
+ }
8
+
5
9
  declare class ConfirmPopup {
6
10
  $props: ConfirmPopupProps;
11
+ $slots: {
12
+ message: ConfirmPopupMessageSlot
13
+ }
7
14
  }
8
15
 
9
16
  export default ConfirmPopup;
@@ -2,10 +2,13 @@
2
2
  <Teleport to="body">
3
3
  <transition name="p-confirm-popup" @enter="onEnter" @leave="onLeave" @after-leave="onAfterLeave">
4
4
  <div :class="containerClass" v-if="visible" :ref="containerRef" v-bind="$attrs" @click="onOverlayClick">
5
- <div class="p-confirm-popup-content">
6
- <i :class="iconClass" />
7
- <span class="p-confirm-popup-message">{{confirmation.message}}</span>
8
- </div>
5
+ <template v-if="!$slots.message">
6
+ <div class="p-confirm-popup-content">
7
+ <i :class="iconClass" />
8
+ <span class="p-confirm-popup-message">{{confirmation.message}}</span>
9
+ </div>
10
+ </template>
11
+ <component v-else :is="$slots.message" :message="confirmation"></component>
9
12
  <div class="p-confirm-popup-footer">
10
13
  <CPButton :label="rejectLabel" :icon="rejectIcon" :class="rejectClass" @click="reject()"/>
11
14
  <CPButton :label="acceptLabel" :icon="acceptIcon" :class="acceptClass" @click="accept()" autofocus />
@@ -214,7 +214,10 @@ var script = {
214
214
  }
215
215
  };
216
216
 
217
- const _hoisted_1 = { class: "p-confirm-popup-content" };
217
+ const _hoisted_1 = {
218
+ key: 0,
219
+ class: "p-confirm-popup-content"
220
+ };
218
221
  const _hoisted_2 = { class: "p-confirm-popup-message" };
219
222
  const _hoisted_3 = { class: "p-confirm-popup-footer" };
220
223
 
@@ -237,10 +240,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
237
240
  }, _ctx.$attrs, {
238
241
  onClick: _cache[3] || (_cache[3] = (...args) => ($options.onOverlayClick && $options.onOverlayClick(...args)))
239
242
  }), [
240
- vue.createVNode("div", _hoisted_1, [
241
- vue.createVNode("i", { class: $options.iconClass }, null, 2),
242
- vue.createVNode("span", _hoisted_2, vue.toDisplayString($data.confirmation.message), 1)
243
- ]),
243
+ (!_ctx.$slots.message)
244
+ ? (vue.openBlock(), vue.createBlock("div", _hoisted_1, [
245
+ vue.createVNode("i", { class: $options.iconClass }, null, 2),
246
+ vue.createVNode("span", _hoisted_2, vue.toDisplayString($data.confirmation.message), 1)
247
+ ]))
248
+ : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.message), {
249
+ key: 1,
250
+ message: $data.confirmation
251
+ }, null, 8, ["message"])),
244
252
  vue.createVNode("div", _hoisted_3, [
245
253
  vue.createVNode(_component_CPButton, {
246
254
  label: $options.rejectLabel,
@@ -1 +1 @@
1
- "use strict";var e=require("primevue/confirmationeventbus"),t=require("primevue/utils"),i=require("primevue/overlayeventbus"),n=require("primevue/button"),r=require("vue");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=o(e),c=o(i),l={name:"ConfirmPopup",inheritAttrs:!1,props:{group:String},data:()=>({visible:!1,confirmation:null}),target:null,outsideClickListener:null,scrollHandler:null,resizeListener:null,container:null,confirmListener:null,closeListener:null,mounted(){this.confirmListener=e=>{e&&e.group===this.group&&(this.confirmation=e,this.target=e.target,this.visible=!0)},this.closeListener=()=>{this.visible=!1,this.confirmation=null},s.default.on("confirm",this.confirmListener),s.default.on("close",this.closeListener)},beforeUnmount(){s.default.off("confirm",this.confirmListener),s.default.off("close",this.closeListener),this.unbindOutsideClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindResizeListener(),this.container&&(t.ZIndexUtils.clear(this.container),this.container=null),this.target=null,this.confirmation=null},methods:{accept(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onEnter(e){this.alignOverlay(),this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),t.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay)},onLeave(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener()},onAfterLeave(e){t.ZIndexUtils.clear(e)},alignOverlay(){t.DomHandler.absolutePosition(this.container,this.target);const e=t.DomHandler.getOffset(this.container),i=t.DomHandler.getOffset(this.target);let n=0;e.left<i.left&&(n=i.left-e.left),this.container.style.setProperty("--overlayArrowLeft",`${n}px`),e.top<i.top&&t.DomHandler.addClass(this.container,"p-confirm-popup-flipped")},bindOutsideClickListener(){this.outsideClickListener||(this.outsideClickListener=e=>{this.visible&&this.container&&!this.container.contains(e.target)&&!this.isTargetClicked(e)&&(this.visible=!1)},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener(){this.scrollHandler||(this.scrollHandler=new t.ConnectedOverlayScrollHandler(this.target,(()=>{this.visible&&(this.visible=!1)}))),this.scrollHandler.bindScrollListener()},unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener(){this.resizeListener||(this.resizeListener=()=>{this.visible&&(this.visible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isTargetClicked(){return this.target&&(this.target===event.target||this.target.contains(event.target))},containerRef(e){this.container=e},onOverlayClick(e){c.default.emit("overlay-click",{originalEvent:e,target:this.target})}},computed:{containerClass(){return["p-confirm-popup p-component",{"p-input-filled":"filled"===this.$primevue.config.inputStyle,"p-ripple-disabled":!1===this.$primevue.config.ripple}]},message(){return this.confirmation?this.confirmation.message:null},iconClass(){return["p-confirm-popup-icon",this.confirmation?this.confirmation.icon:null]},acceptLabel(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon(){return this.confirmation?this.confirmation.rejectIcon:null},acceptClass(){return["p-confirm-popup-accept p-button-sm",this.confirmation?this.confirmation.acceptClass:null]},rejectClass(){return["p-confirm-popup-reject p-button-sm",this.confirmation?this.confirmation.rejectClass||"p-button-text":null]}},components:{CPButton:o(n).default}};const a={class:"p-confirm-popup-content"},p={class:"p-confirm-popup-message"},u={class:"p-confirm-popup-footer"};!function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===i&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}('\n.p-confirm-popup {\n position: absolute;\n margin-top: 10px;\n top: 0;\n left: 0;\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 -webkit-transform: scaleY(0.8);\n transform: scaleY(0.8);\n}\n.p-confirm-popup-leave-to {\n opacity: 0;\n}\n.p-confirm-popup-enter-active {\n -webkit-transition: opacity .12s cubic-bezier(0, 0, 0.2, 1), -webkit-transform .12s cubic-bezier(0, 0, 0.2, 1);\n transition: opacity .12s cubic-bezier(0, 0, 0.2, 1), -webkit-transform .12s cubic-bezier(0, 0, 0.2, 1);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1), -webkit-transform .12s cubic-bezier(0, 0, 0.2, 1);\n}\n.p-confirm-popup-leave-active {\n -webkit-transition: opacity .1s linear;\n transition: opacity .1s linear;\n}\n.p-confirm-popup:after, .p-confirm-popup:before {\n\tbottom: 100%;\n\tleft: calc(var(--overlayArrowLeft, 0) + 1.25rem);\n\tcontent: " ";\n\theight: 0;\n\twidth: 0;\n\tposition: absolute;\n\tpointer-events: none;\n}\n.p-confirm-popup:after {\n\tborder-width: 8px;\n\tmargin-left: -8px;\n}\n.p-confirm-popup:before {\n\tborder-width: 10px;\n\tmargin-left: -10px;\n}\n.p-confirm-popup-flipped:after, .p-confirm-popup-flipped:before {\n bottom: auto;\n top: 100%;\n}\n.p-confirm-popup.p-confirm-popup-flipped:after {\n border-bottom-color: transparent;\n}\n.p-confirm-popup.p-confirm-popup-flipped:before {\n border-bottom-color: transparent\n}\n.p-confirm-popup .p-confirm-popup-content {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n'),l.render=function(e,t,i,n,o,s){const c=r.resolveComponent("CPButton");return r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.createVNode(r.Transition,{name:"p-confirm-popup",onEnter:s.onEnter,onLeave:s.onLeave,onAfterLeave:s.onAfterLeave},{default:r.withCtx((()=>[o.visible?(r.openBlock(),r.createBlock("div",r.mergeProps({key:0,class:s.containerClass,ref:s.containerRef},e.$attrs,{onClick:t[3]||(t[3]=(...e)=>s.onOverlayClick&&s.onOverlayClick(...e))}),[r.createVNode("div",a,[r.createVNode("i",{class:s.iconClass},null,2),r.createVNode("span",p,r.toDisplayString(o.confirmation.message),1)]),r.createVNode("div",u,[r.createVNode(c,{label:s.rejectLabel,icon:s.rejectIcon,class:s.rejectClass,onClick:t[1]||(t[1]=e=>s.reject())},null,8,["label","icon","class"]),r.createVNode(c,{label:s.acceptLabel,icon:s.acceptIcon,class:s.acceptClass,onClick:t[2]||(t[2]=e=>s.accept()),autofocus:""},null,8,["label","icon","class"])])],16)):r.createCommentVNode("",!0)])),_:1},8,["onEnter","onLeave","onAfterLeave"])])},module.exports=l;
1
+ "use strict";var e=require("primevue/confirmationeventbus"),t=require("primevue/utils"),i=require("primevue/overlayeventbus"),n=require("primevue/button"),r=require("vue");function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=o(e),c=o(i),l={name:"ConfirmPopup",inheritAttrs:!1,props:{group:String},data:()=>({visible:!1,confirmation:null}),target:null,outsideClickListener:null,scrollHandler:null,resizeListener:null,container:null,confirmListener:null,closeListener:null,mounted(){this.confirmListener=e=>{e&&e.group===this.group&&(this.confirmation=e,this.target=e.target,this.visible=!0)},this.closeListener=()=>{this.visible=!1,this.confirmation=null},s.default.on("confirm",this.confirmListener),s.default.on("close",this.closeListener)},beforeUnmount(){s.default.off("confirm",this.confirmListener),s.default.off("close",this.closeListener),this.unbindOutsideClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindResizeListener(),this.container&&(t.ZIndexUtils.clear(this.container),this.container=null),this.target=null,this.confirmation=null},methods:{accept(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onEnter(e){this.alignOverlay(),this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),t.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay)},onLeave(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener()},onAfterLeave(e){t.ZIndexUtils.clear(e)},alignOverlay(){t.DomHandler.absolutePosition(this.container,this.target);const e=t.DomHandler.getOffset(this.container),i=t.DomHandler.getOffset(this.target);let n=0;e.left<i.left&&(n=i.left-e.left),this.container.style.setProperty("--overlayArrowLeft",`${n}px`),e.top<i.top&&t.DomHandler.addClass(this.container,"p-confirm-popup-flipped")},bindOutsideClickListener(){this.outsideClickListener||(this.outsideClickListener=e=>{this.visible&&this.container&&!this.container.contains(e.target)&&!this.isTargetClicked(e)&&(this.visible=!1)},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener(){this.scrollHandler||(this.scrollHandler=new t.ConnectedOverlayScrollHandler(this.target,(()=>{this.visible&&(this.visible=!1)}))),this.scrollHandler.bindScrollListener()},unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener(){this.resizeListener||(this.resizeListener=()=>{this.visible&&(this.visible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isTargetClicked(){return this.target&&(this.target===event.target||this.target.contains(event.target))},containerRef(e){this.container=e},onOverlayClick(e){c.default.emit("overlay-click",{originalEvent:e,target:this.target})}},computed:{containerClass(){return["p-confirm-popup p-component",{"p-input-filled":"filled"===this.$primevue.config.inputStyle,"p-ripple-disabled":!1===this.$primevue.config.ripple}]},message(){return this.confirmation?this.confirmation.message:null},iconClass(){return["p-confirm-popup-icon",this.confirmation?this.confirmation.icon:null]},acceptLabel(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon(){return this.confirmation?this.confirmation.rejectIcon:null},acceptClass(){return["p-confirm-popup-accept p-button-sm",this.confirmation?this.confirmation.acceptClass:null]},rejectClass(){return["p-confirm-popup-reject p-button-sm",this.confirmation?this.confirmation.rejectClass||"p-button-text":null]}},components:{CPButton:o(n).default}};const a={key:0,class:"p-confirm-popup-content"},p={class:"p-confirm-popup-message"},u={class:"p-confirm-popup-footer"};!function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===i&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}('\n.p-confirm-popup {\n position: absolute;\n margin-top: 10px;\n top: 0;\n left: 0;\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 -webkit-transform: scaleY(0.8);\n transform: scaleY(0.8);\n}\n.p-confirm-popup-leave-to {\n opacity: 0;\n}\n.p-confirm-popup-enter-active {\n -webkit-transition: opacity .12s cubic-bezier(0, 0, 0.2, 1), -webkit-transform .12s cubic-bezier(0, 0, 0.2, 1);\n transition: opacity .12s cubic-bezier(0, 0, 0.2, 1), -webkit-transform .12s cubic-bezier(0, 0, 0.2, 1);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1), -webkit-transform .12s cubic-bezier(0, 0, 0.2, 1);\n}\n.p-confirm-popup-leave-active {\n -webkit-transition: opacity .1s linear;\n transition: opacity .1s linear;\n}\n.p-confirm-popup:after, .p-confirm-popup:before {\n\tbottom: 100%;\n\tleft: calc(var(--overlayArrowLeft, 0) + 1.25rem);\n\tcontent: " ";\n\theight: 0;\n\twidth: 0;\n\tposition: absolute;\n\tpointer-events: none;\n}\n.p-confirm-popup:after {\n\tborder-width: 8px;\n\tmargin-left: -8px;\n}\n.p-confirm-popup:before {\n\tborder-width: 10px;\n\tmargin-left: -10px;\n}\n.p-confirm-popup-flipped:after, .p-confirm-popup-flipped:before {\n bottom: auto;\n top: 100%;\n}\n.p-confirm-popup.p-confirm-popup-flipped:after {\n border-bottom-color: transparent;\n}\n.p-confirm-popup.p-confirm-popup-flipped:before {\n border-bottom-color: transparent\n}\n.p-confirm-popup .p-confirm-popup-content {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n'),l.render=function(e,t,i,n,o,s){const c=r.resolveComponent("CPButton");return r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.createVNode(r.Transition,{name:"p-confirm-popup",onEnter:s.onEnter,onLeave:s.onLeave,onAfterLeave:s.onAfterLeave},{default:r.withCtx((()=>[o.visible?(r.openBlock(),r.createBlock("div",r.mergeProps({key:0,class:s.containerClass,ref:s.containerRef},e.$attrs,{onClick:t[3]||(t[3]=(...e)=>s.onOverlayClick&&s.onOverlayClick(...e))}),[e.$slots.message?(r.openBlock(),r.createBlock(r.resolveDynamicComponent(e.$slots.message),{key:1,message:o.confirmation},null,8,["message"])):(r.openBlock(),r.createBlock("div",a,[r.createVNode("i",{class:s.iconClass},null,2),r.createVNode("span",p,r.toDisplayString(o.confirmation.message),1)])),r.createVNode("div",u,[r.createVNode(c,{label:s.rejectLabel,icon:s.rejectIcon,class:s.rejectClass,onClick:t[1]||(t[1]=e=>s.reject())},null,8,["label","icon","class"]),r.createVNode(c,{label:s.acceptLabel,icon:s.acceptIcon,class:s.acceptClass,onClick:t[2]||(t[2]=e=>s.accept()),autofocus:""},null,8,["label","icon","class"])])],16)):r.createCommentVNode("",!0)])),_:1},8,["onEnter","onLeave","onAfterLeave"])])},module.exports=l;
@@ -2,7 +2,7 @@ import ConfirmationEventBus from 'primevue/confirmationeventbus';
2
2
  import { ZIndexUtils, DomHandler, ConnectedOverlayScrollHandler } from 'primevue/utils';
3
3
  import OverlayEventBus from 'primevue/overlayeventbus';
4
4
  import Button from 'primevue/button';
5
- import { resolveComponent, openBlock, createBlock, Teleport, createVNode, Transition, withCtx, mergeProps, toDisplayString, createCommentVNode } from 'vue';
5
+ import { resolveComponent, openBlock, createBlock, Teleport, createVNode, Transition, withCtx, mergeProps, toDisplayString, resolveDynamicComponent, createCommentVNode } from 'vue';
6
6
 
7
7
  var script = {
8
8
  name: 'ConfirmPopup',
@@ -206,7 +206,10 @@ var script = {
206
206
  }
207
207
  };
208
208
 
209
- const _hoisted_1 = { class: "p-confirm-popup-content" };
209
+ const _hoisted_1 = {
210
+ key: 0,
211
+ class: "p-confirm-popup-content"
212
+ };
210
213
  const _hoisted_2 = { class: "p-confirm-popup-message" };
211
214
  const _hoisted_3 = { class: "p-confirm-popup-footer" };
212
215
 
@@ -229,10 +232,15 @@ function render(_ctx, _cache, $props, $setup, $data, $options) {
229
232
  }, _ctx.$attrs, {
230
233
  onClick: _cache[3] || (_cache[3] = (...args) => ($options.onOverlayClick && $options.onOverlayClick(...args)))
231
234
  }), [
232
- createVNode("div", _hoisted_1, [
233
- createVNode("i", { class: $options.iconClass }, null, 2),
234
- createVNode("span", _hoisted_2, toDisplayString($data.confirmation.message), 1)
235
- ]),
235
+ (!_ctx.$slots.message)
236
+ ? (openBlock(), createBlock("div", _hoisted_1, [
237
+ createVNode("i", { class: $options.iconClass }, null, 2),
238
+ createVNode("span", _hoisted_2, toDisplayString($data.confirmation.message), 1)
239
+ ]))
240
+ : (openBlock(), createBlock(resolveDynamicComponent(_ctx.$slots.message), {
241
+ key: 1,
242
+ message: $data.confirmation
243
+ }, null, 8, ["message"])),
236
244
  createVNode("div", _hoisted_3, [
237
245
  createVNode(_component_CPButton, {
238
246
  label: $options.rejectLabel,
@@ -1 +1 @@
1
- import e from"primevue/confirmationeventbus";import{ZIndexUtils as t,DomHandler as i,ConnectedOverlayScrollHandler as n}from"primevue/utils";import r from"primevue/overlayeventbus";import o from"primevue/button";import{resolveComponent as s,openBlock as c,createBlock as l,Teleport as a,createVNode as p,Transition as u,withCtx as f,mergeProps as m,toDisplayString as h,createCommentVNode as d}from"vue";var b={name:"ConfirmPopup",inheritAttrs:!1,props:{group:String},data:()=>({visible:!1,confirmation:null}),target:null,outsideClickListener:null,scrollHandler:null,resizeListener:null,container:null,confirmListener:null,closeListener:null,mounted(){this.confirmListener=e=>{e&&e.group===this.group&&(this.confirmation=e,this.target=e.target,this.visible=!0)},this.closeListener=()=>{this.visible=!1,this.confirmation=null},e.on("confirm",this.confirmListener),e.on("close",this.closeListener)},beforeUnmount(){e.off("confirm",this.confirmListener),e.off("close",this.closeListener),this.unbindOutsideClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindResizeListener(),this.container&&(t.clear(this.container),this.container=null),this.target=null,this.confirmation=null},methods:{accept(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onEnter(e){this.alignOverlay(),this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),t.set("overlay",e,this.$primevue.config.zIndex.overlay)},onLeave(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener()},onAfterLeave(e){t.clear(e)},alignOverlay(){i.absolutePosition(this.container,this.target);const e=i.getOffset(this.container),t=i.getOffset(this.target);let n=0;e.left<t.left&&(n=t.left-e.left),this.container.style.setProperty("--overlayArrowLeft",`${n}px`),e.top<t.top&&i.addClass(this.container,"p-confirm-popup-flipped")},bindOutsideClickListener(){this.outsideClickListener||(this.outsideClickListener=e=>{this.visible&&this.container&&!this.container.contains(e.target)&&!this.isTargetClicked(e)&&(this.visible=!1)},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener(){this.scrollHandler||(this.scrollHandler=new n(this.target,(()=>{this.visible&&(this.visible=!1)}))),this.scrollHandler.bindScrollListener()},unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener(){this.resizeListener||(this.resizeListener=()=>{this.visible&&(this.visible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isTargetClicked(){return this.target&&(this.target===event.target||this.target.contains(event.target))},containerRef(e){this.container=e},onOverlayClick(e){r.emit("overlay-click",{originalEvent:e,target:this.target})}},computed:{containerClass(){return["p-confirm-popup p-component",{"p-input-filled":"filled"===this.$primevue.config.inputStyle,"p-ripple-disabled":!1===this.$primevue.config.ripple}]},message(){return this.confirmation?this.confirmation.message:null},iconClass(){return["p-confirm-popup-icon",this.confirmation?this.confirmation.icon:null]},acceptLabel(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon(){return this.confirmation?this.confirmation.rejectIcon:null},acceptClass(){return["p-confirm-popup-accept p-button-sm",this.confirmation?this.confirmation.acceptClass:null]},rejectClass(){return["p-confirm-popup-reject p-button-sm",this.confirmation?this.confirmation.rejectClass||"p-button-text":null]}},components:{CPButton:o}};const v={class:"p-confirm-popup-content"},L={class:"p-confirm-popup-message"},g={class:"p-confirm-popup-footer"};!function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===i&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}('\n.p-confirm-popup {\n position: absolute;\n margin-top: 10px;\n top: 0;\n left: 0;\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 -webkit-transform: scaleY(0.8);\n transform: scaleY(0.8);\n}\n.p-confirm-popup-leave-to {\n opacity: 0;\n}\n.p-confirm-popup-enter-active {\n -webkit-transition: opacity .12s cubic-bezier(0, 0, 0.2, 1), -webkit-transform .12s cubic-bezier(0, 0, 0.2, 1);\n transition: opacity .12s cubic-bezier(0, 0, 0.2, 1), -webkit-transform .12s cubic-bezier(0, 0, 0.2, 1);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1), -webkit-transform .12s cubic-bezier(0, 0, 0.2, 1);\n}\n.p-confirm-popup-leave-active {\n -webkit-transition: opacity .1s linear;\n transition: opacity .1s linear;\n}\n.p-confirm-popup:after, .p-confirm-popup:before {\n\tbottom: 100%;\n\tleft: calc(var(--overlayArrowLeft, 0) + 1.25rem);\n\tcontent: " ";\n\theight: 0;\n\twidth: 0;\n\tposition: absolute;\n\tpointer-events: none;\n}\n.p-confirm-popup:after {\n\tborder-width: 8px;\n\tmargin-left: -8px;\n}\n.p-confirm-popup:before {\n\tborder-width: 10px;\n\tmargin-left: -10px;\n}\n.p-confirm-popup-flipped:after, .p-confirm-popup-flipped:before {\n bottom: auto;\n top: 100%;\n}\n.p-confirm-popup.p-confirm-popup-flipped:after {\n border-bottom-color: transparent;\n}\n.p-confirm-popup.p-confirm-popup-flipped:before {\n border-bottom-color: transparent\n}\n.p-confirm-popup .p-confirm-popup-content {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n'),b.render=function(e,t,i,n,r,o){const b=s("CPButton");return c(),l(a,{to:"body"},[p(u,{name:"p-confirm-popup",onEnter:o.onEnter,onLeave:o.onLeave,onAfterLeave:o.onAfterLeave},{default:f((()=>[r.visible?(c(),l("div",m({key:0,class:o.containerClass,ref:o.containerRef},e.$attrs,{onClick:t[3]||(t[3]=(...e)=>o.onOverlayClick&&o.onOverlayClick(...e))}),[p("div",v,[p("i",{class:o.iconClass},null,2),p("span",L,h(r.confirmation.message),1)]),p("div",g,[p(b,{label:o.rejectLabel,icon:o.rejectIcon,class:o.rejectClass,onClick:t[1]||(t[1]=e=>o.reject())},null,8,["label","icon","class"]),p(b,{label:o.acceptLabel,icon:o.acceptIcon,class:o.acceptClass,onClick:t[2]||(t[2]=e=>o.accept()),autofocus:""},null,8,["label","icon","class"])])],16)):d("",!0)])),_:1},8,["onEnter","onLeave","onAfterLeave"])])};export default b;
1
+ import e from"primevue/confirmationeventbus";import{ZIndexUtils as t,DomHandler as i,ConnectedOverlayScrollHandler as n}from"primevue/utils";import r from"primevue/overlayeventbus";import o from"primevue/button";import{resolveComponent as s,openBlock as c,createBlock as l,Teleport as a,createVNode as p,Transition as u,withCtx as f,mergeProps as m,toDisplayString as h,resolveDynamicComponent as d,createCommentVNode as b}from"vue";var v={name:"ConfirmPopup",inheritAttrs:!1,props:{group:String},data:()=>({visible:!1,confirmation:null}),target:null,outsideClickListener:null,scrollHandler:null,resizeListener:null,container:null,confirmListener:null,closeListener:null,mounted(){this.confirmListener=e=>{e&&e.group===this.group&&(this.confirmation=e,this.target=e.target,this.visible=!0)},this.closeListener=()=>{this.visible=!1,this.confirmation=null},e.on("confirm",this.confirmListener),e.on("close",this.closeListener)},beforeUnmount(){e.off("confirm",this.confirmListener),e.off("close",this.closeListener),this.unbindOutsideClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindResizeListener(),this.container&&(t.clear(this.container),this.container=null),this.target=null,this.confirmation=null},methods:{accept(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onEnter(e){this.alignOverlay(),this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),t.set("overlay",e,this.$primevue.config.zIndex.overlay)},onLeave(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener()},onAfterLeave(e){t.clear(e)},alignOverlay(){i.absolutePosition(this.container,this.target);const e=i.getOffset(this.container),t=i.getOffset(this.target);let n=0;e.left<t.left&&(n=t.left-e.left),this.container.style.setProperty("--overlayArrowLeft",`${n}px`),e.top<t.top&&i.addClass(this.container,"p-confirm-popup-flipped")},bindOutsideClickListener(){this.outsideClickListener||(this.outsideClickListener=e=>{this.visible&&this.container&&!this.container.contains(e.target)&&!this.isTargetClicked(e)&&(this.visible=!1)},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener(){this.scrollHandler||(this.scrollHandler=new n(this.target,(()=>{this.visible&&(this.visible=!1)}))),this.scrollHandler.bindScrollListener()},unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener(){this.resizeListener||(this.resizeListener=()=>{this.visible&&(this.visible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isTargetClicked(){return this.target&&(this.target===event.target||this.target.contains(event.target))},containerRef(e){this.container=e},onOverlayClick(e){r.emit("overlay-click",{originalEvent:e,target:this.target})}},computed:{containerClass(){return["p-confirm-popup p-component",{"p-input-filled":"filled"===this.$primevue.config.inputStyle,"p-ripple-disabled":!1===this.$primevue.config.ripple}]},message(){return this.confirmation?this.confirmation.message:null},iconClass(){return["p-confirm-popup-icon",this.confirmation?this.confirmation.icon:null]},acceptLabel(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon(){return this.confirmation?this.confirmation.rejectIcon:null},acceptClass(){return["p-confirm-popup-accept p-button-sm",this.confirmation?this.confirmation.acceptClass:null]},rejectClass(){return["p-confirm-popup-reject p-button-sm",this.confirmation?this.confirmation.rejectClass||"p-button-text":null]}},components:{CPButton:o}};const L={key:0,class:"p-confirm-popup-content"},g={class:"p-confirm-popup-message"},C={class:"p-confirm-popup-footer"};!function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===i&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}('\n.p-confirm-popup {\n position: absolute;\n margin-top: 10px;\n top: 0;\n left: 0;\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 -webkit-transform: scaleY(0.8);\n transform: scaleY(0.8);\n}\n.p-confirm-popup-leave-to {\n opacity: 0;\n}\n.p-confirm-popup-enter-active {\n -webkit-transition: opacity .12s cubic-bezier(0, 0, 0.2, 1), -webkit-transform .12s cubic-bezier(0, 0, 0.2, 1);\n transition: opacity .12s cubic-bezier(0, 0, 0.2, 1), -webkit-transform .12s cubic-bezier(0, 0, 0.2, 1);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1), -webkit-transform .12s cubic-bezier(0, 0, 0.2, 1);\n}\n.p-confirm-popup-leave-active {\n -webkit-transition: opacity .1s linear;\n transition: opacity .1s linear;\n}\n.p-confirm-popup:after, .p-confirm-popup:before {\n\tbottom: 100%;\n\tleft: calc(var(--overlayArrowLeft, 0) + 1.25rem);\n\tcontent: " ";\n\theight: 0;\n\twidth: 0;\n\tposition: absolute;\n\tpointer-events: none;\n}\n.p-confirm-popup:after {\n\tborder-width: 8px;\n\tmargin-left: -8px;\n}\n.p-confirm-popup:before {\n\tborder-width: 10px;\n\tmargin-left: -10px;\n}\n.p-confirm-popup-flipped:after, .p-confirm-popup-flipped:before {\n bottom: auto;\n top: 100%;\n}\n.p-confirm-popup.p-confirm-popup-flipped:after {\n border-bottom-color: transparent;\n}\n.p-confirm-popup.p-confirm-popup-flipped:before {\n border-bottom-color: transparent\n}\n.p-confirm-popup .p-confirm-popup-content {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n'),v.render=function(e,t,i,n,r,o){const v=s("CPButton");return c(),l(a,{to:"body"},[p(u,{name:"p-confirm-popup",onEnter:o.onEnter,onLeave:o.onLeave,onAfterLeave:o.onAfterLeave},{default:f((()=>[r.visible?(c(),l("div",m({key:0,class:o.containerClass,ref:o.containerRef},e.$attrs,{onClick:t[3]||(t[3]=(...e)=>o.onOverlayClick&&o.onOverlayClick(...e))}),[e.$slots.message?(c(),l(d(e.$slots.message),{key:1,message:r.confirmation},null,8,["message"])):(c(),l("div",L,[p("i",{class:o.iconClass},null,2),p("span",g,h(r.confirmation.message),1)])),p("div",C,[p(v,{label:o.rejectLabel,icon:o.rejectIcon,class:o.rejectClass,onClick:t[1]||(t[1]=e=>o.reject())},null,8,["label","icon","class"]),p(v,{label:o.acceptLabel,icon:o.acceptIcon,class:o.acceptClass,onClick:t[2]||(t[2]=e=>o.accept()),autofocus:""},null,8,["label","icon","class"])])],16)):b("",!0)])),_:1},8,["onEnter","onLeave","onAfterLeave"])])};export default v;
@@ -210,7 +210,10 @@ this.primevue.confirmpopup = (function (ConfirmationEventBus, utils, OverlayEven
210
210
  }
211
211
  };
212
212
 
213
- const _hoisted_1 = { class: "p-confirm-popup-content" };
213
+ const _hoisted_1 = {
214
+ key: 0,
215
+ class: "p-confirm-popup-content"
216
+ };
214
217
  const _hoisted_2 = { class: "p-confirm-popup-message" };
215
218
  const _hoisted_3 = { class: "p-confirm-popup-footer" };
216
219
 
@@ -233,10 +236,15 @@ this.primevue.confirmpopup = (function (ConfirmationEventBus, utils, OverlayEven
233
236
  }, _ctx.$attrs, {
234
237
  onClick: _cache[3] || (_cache[3] = (...args) => ($options.onOverlayClick && $options.onOverlayClick(...args)))
235
238
  }), [
236
- vue.createVNode("div", _hoisted_1, [
237
- vue.createVNode("i", { class: $options.iconClass }, null, 2),
238
- vue.createVNode("span", _hoisted_2, vue.toDisplayString($data.confirmation.message), 1)
239
- ]),
239
+ (!_ctx.$slots.message)
240
+ ? (vue.openBlock(), vue.createBlock("div", _hoisted_1, [
241
+ vue.createVNode("i", { class: $options.iconClass }, null, 2),
242
+ vue.createVNode("span", _hoisted_2, vue.toDisplayString($data.confirmation.message), 1)
243
+ ]))
244
+ : (vue.openBlock(), vue.createBlock(vue.resolveDynamicComponent(_ctx.$slots.message), {
245
+ key: 1,
246
+ message: $data.confirmation
247
+ }, null, 8, ["message"])),
240
248
  vue.createVNode("div", _hoisted_3, [
241
249
  vue.createVNode(_component_CPButton, {
242
250
  label: $options.rejectLabel,
@@ -1 +1 @@
1
- this.primevue=this.primevue||{},this.primevue.confirmpopup=function(e,t,i,n,r){"use strict";function o(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=o(e),c=o(i),l={name:"ConfirmPopup",inheritAttrs:!1,props:{group:String},data:()=>({visible:!1,confirmation:null}),target:null,outsideClickListener:null,scrollHandler:null,resizeListener:null,container:null,confirmListener:null,closeListener:null,mounted(){this.confirmListener=e=>{e&&e.group===this.group&&(this.confirmation=e,this.target=e.target,this.visible=!0)},this.closeListener=()=>{this.visible=!1,this.confirmation=null},s.default.on("confirm",this.confirmListener),s.default.on("close",this.closeListener)},beforeUnmount(){s.default.off("confirm",this.confirmListener),s.default.off("close",this.closeListener),this.unbindOutsideClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindResizeListener(),this.container&&(t.ZIndexUtils.clear(this.container),this.container=null),this.target=null,this.confirmation=null},methods:{accept(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onEnter(e){this.alignOverlay(),this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),t.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay)},onLeave(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener()},onAfterLeave(e){t.ZIndexUtils.clear(e)},alignOverlay(){t.DomHandler.absolutePosition(this.container,this.target);const e=t.DomHandler.getOffset(this.container),i=t.DomHandler.getOffset(this.target);let n=0;e.left<i.left&&(n=i.left-e.left),this.container.style.setProperty("--overlayArrowLeft",`${n}px`),e.top<i.top&&t.DomHandler.addClass(this.container,"p-confirm-popup-flipped")},bindOutsideClickListener(){this.outsideClickListener||(this.outsideClickListener=e=>{this.visible&&this.container&&!this.container.contains(e.target)&&!this.isTargetClicked(e)&&(this.visible=!1)},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener(){this.scrollHandler||(this.scrollHandler=new t.ConnectedOverlayScrollHandler(this.target,(()=>{this.visible&&(this.visible=!1)}))),this.scrollHandler.bindScrollListener()},unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener(){this.resizeListener||(this.resizeListener=()=>{this.visible&&(this.visible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isTargetClicked(){return this.target&&(this.target===event.target||this.target.contains(event.target))},containerRef(e){this.container=e},onOverlayClick(e){c.default.emit("overlay-click",{originalEvent:e,target:this.target})}},computed:{containerClass(){return["p-confirm-popup p-component",{"p-input-filled":"filled"===this.$primevue.config.inputStyle,"p-ripple-disabled":!1===this.$primevue.config.ripple}]},message(){return this.confirmation?this.confirmation.message:null},iconClass(){return["p-confirm-popup-icon",this.confirmation?this.confirmation.icon:null]},acceptLabel(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon(){return this.confirmation?this.confirmation.rejectIcon:null},acceptClass(){return["p-confirm-popup-accept p-button-sm",this.confirmation?this.confirmation.acceptClass:null]},rejectClass(){return["p-confirm-popup-reject p-button-sm",this.confirmation?this.confirmation.rejectClass||"p-button-text":null]}},components:{CPButton:o(n).default}};const a={class:"p-confirm-popup-content"},p={class:"p-confirm-popup-message"},u={class:"p-confirm-popup-footer"};return function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],r=document.createElement("style");r.type="text/css","top"===i&&n.firstChild?n.insertBefore(r,n.firstChild):n.appendChild(r),r.styleSheet?r.styleSheet.cssText=e:r.appendChild(document.createTextNode(e))}}('\n.p-confirm-popup {\n position: absolute;\n margin-top: 10px;\n top: 0;\n left: 0;\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 -webkit-transform: scaleY(0.8);\n transform: scaleY(0.8);\n}\n.p-confirm-popup-leave-to {\n opacity: 0;\n}\n.p-confirm-popup-enter-active {\n -webkit-transition: opacity .12s cubic-bezier(0, 0, 0.2, 1), -webkit-transform .12s cubic-bezier(0, 0, 0.2, 1);\n transition: opacity .12s cubic-bezier(0, 0, 0.2, 1), -webkit-transform .12s cubic-bezier(0, 0, 0.2, 1);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1), -webkit-transform .12s cubic-bezier(0, 0, 0.2, 1);\n}\n.p-confirm-popup-leave-active {\n -webkit-transition: opacity .1s linear;\n transition: opacity .1s linear;\n}\n.p-confirm-popup:after, .p-confirm-popup:before {\n\tbottom: 100%;\n\tleft: calc(var(--overlayArrowLeft, 0) + 1.25rem);\n\tcontent: " ";\n\theight: 0;\n\twidth: 0;\n\tposition: absolute;\n\tpointer-events: none;\n}\n.p-confirm-popup:after {\n\tborder-width: 8px;\n\tmargin-left: -8px;\n}\n.p-confirm-popup:before {\n\tborder-width: 10px;\n\tmargin-left: -10px;\n}\n.p-confirm-popup-flipped:after, .p-confirm-popup-flipped:before {\n bottom: auto;\n top: 100%;\n}\n.p-confirm-popup.p-confirm-popup-flipped:after {\n border-bottom-color: transparent;\n}\n.p-confirm-popup.p-confirm-popup-flipped:before {\n border-bottom-color: transparent\n}\n.p-confirm-popup .p-confirm-popup-content {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n'),l.render=function(e,t,i,n,o,s){const c=r.resolveComponent("CPButton");return r.openBlock(),r.createBlock(r.Teleport,{to:"body"},[r.createVNode(r.Transition,{name:"p-confirm-popup",onEnter:s.onEnter,onLeave:s.onLeave,onAfterLeave:s.onAfterLeave},{default:r.withCtx((()=>[o.visible?(r.openBlock(),r.createBlock("div",r.mergeProps({key:0,class:s.containerClass,ref:s.containerRef},e.$attrs,{onClick:t[3]||(t[3]=(...e)=>s.onOverlayClick&&s.onOverlayClick(...e))}),[r.createVNode("div",a,[r.createVNode("i",{class:s.iconClass},null,2),r.createVNode("span",p,r.toDisplayString(o.confirmation.message),1)]),r.createVNode("div",u,[r.createVNode(c,{label:s.rejectLabel,icon:s.rejectIcon,class:s.rejectClass,onClick:t[1]||(t[1]=e=>s.reject())},null,8,["label","icon","class"]),r.createVNode(c,{label:s.acceptLabel,icon:s.acceptIcon,class:s.acceptClass,onClick:t[2]||(t[2]=e=>s.accept()),autofocus:""},null,8,["label","icon","class"])])],16)):r.createCommentVNode("",!0)])),_:1},8,["onEnter","onLeave","onAfterLeave"])])},l}(primevue.confirmationeventbus,primevue.utils,primevue.overlayeventbus,primevue.button,Vue);
1
+ this.primevue=this.primevue||{},this.primevue.confirmpopup=function(e,t,i,n,o){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e:{default:e}}var s=r(e),c=r(i),l={name:"ConfirmPopup",inheritAttrs:!1,props:{group:String},data:()=>({visible:!1,confirmation:null}),target:null,outsideClickListener:null,scrollHandler:null,resizeListener:null,container:null,confirmListener:null,closeListener:null,mounted(){this.confirmListener=e=>{e&&e.group===this.group&&(this.confirmation=e,this.target=e.target,this.visible=!0)},this.closeListener=()=>{this.visible=!1,this.confirmation=null},s.default.on("confirm",this.confirmListener),s.default.on("close",this.closeListener)},beforeUnmount(){s.default.off("confirm",this.confirmListener),s.default.off("close",this.closeListener),this.unbindOutsideClickListener(),this.scrollHandler&&(this.scrollHandler.destroy(),this.scrollHandler=null),this.unbindResizeListener(),this.container&&(t.ZIndexUtils.clear(this.container),this.container=null),this.target=null,this.confirmation=null},methods:{accept(){this.confirmation.accept&&this.confirmation.accept(),this.visible=!1},reject(){this.confirmation.reject&&this.confirmation.reject(),this.visible=!1},onEnter(e){this.alignOverlay(),this.bindOutsideClickListener(),this.bindScrollListener(),this.bindResizeListener(),t.ZIndexUtils.set("overlay",e,this.$primevue.config.zIndex.overlay)},onLeave(){this.unbindOutsideClickListener(),this.unbindScrollListener(),this.unbindResizeListener()},onAfterLeave(e){t.ZIndexUtils.clear(e)},alignOverlay(){t.DomHandler.absolutePosition(this.container,this.target);const e=t.DomHandler.getOffset(this.container),i=t.DomHandler.getOffset(this.target);let n=0;e.left<i.left&&(n=i.left-e.left),this.container.style.setProperty("--overlayArrowLeft",`${n}px`),e.top<i.top&&t.DomHandler.addClass(this.container,"p-confirm-popup-flipped")},bindOutsideClickListener(){this.outsideClickListener||(this.outsideClickListener=e=>{this.visible&&this.container&&!this.container.contains(e.target)&&!this.isTargetClicked(e)&&(this.visible=!1)},document.addEventListener("click",this.outsideClickListener))},unbindOutsideClickListener(){this.outsideClickListener&&(document.removeEventListener("click",this.outsideClickListener),this.outsideClickListener=null)},bindScrollListener(){this.scrollHandler||(this.scrollHandler=new t.ConnectedOverlayScrollHandler(this.target,(()=>{this.visible&&(this.visible=!1)}))),this.scrollHandler.bindScrollListener()},unbindScrollListener(){this.scrollHandler&&this.scrollHandler.unbindScrollListener()},bindResizeListener(){this.resizeListener||(this.resizeListener=()=>{this.visible&&(this.visible=!1)},window.addEventListener("resize",this.resizeListener))},unbindResizeListener(){this.resizeListener&&(window.removeEventListener("resize",this.resizeListener),this.resizeListener=null)},isTargetClicked(){return this.target&&(this.target===event.target||this.target.contains(event.target))},containerRef(e){this.container=e},onOverlayClick(e){c.default.emit("overlay-click",{originalEvent:e,target:this.target})}},computed:{containerClass(){return["p-confirm-popup p-component",{"p-input-filled":"filled"===this.$primevue.config.inputStyle,"p-ripple-disabled":!1===this.$primevue.config.ripple}]},message(){return this.confirmation?this.confirmation.message:null},iconClass(){return["p-confirm-popup-icon",this.confirmation?this.confirmation.icon:null]},acceptLabel(){return this.confirmation?this.confirmation.acceptLabel||this.$primevue.config.locale.accept:null},rejectLabel(){return this.confirmation?this.confirmation.rejectLabel||this.$primevue.config.locale.reject:null},acceptIcon(){return this.confirmation?this.confirmation.acceptIcon:null},rejectIcon(){return this.confirmation?this.confirmation.rejectIcon:null},acceptClass(){return["p-confirm-popup-accept p-button-sm",this.confirmation?this.confirmation.acceptClass:null]},rejectClass(){return["p-confirm-popup-reject p-button-sm",this.confirmation?this.confirmation.rejectClass||"p-button-text":null]}},components:{CPButton:r(n).default}};const a={key:0,class:"p-confirm-popup-content"},p={class:"p-confirm-popup-message"},u={class:"p-confirm-popup-footer"};return function(e,t){void 0===t&&(t={});var i=t.insertAt;if(e&&"undefined"!=typeof document){var n=document.head||document.getElementsByTagName("head")[0],o=document.createElement("style");o.type="text/css","top"===i&&n.firstChild?n.insertBefore(o,n.firstChild):n.appendChild(o),o.styleSheet?o.styleSheet.cssText=e:o.appendChild(document.createTextNode(e))}}('\n.p-confirm-popup {\n position: absolute;\n margin-top: 10px;\n top: 0;\n left: 0;\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 -webkit-transform: scaleY(0.8);\n transform: scaleY(0.8);\n}\n.p-confirm-popup-leave-to {\n opacity: 0;\n}\n.p-confirm-popup-enter-active {\n -webkit-transition: opacity .12s cubic-bezier(0, 0, 0.2, 1), -webkit-transform .12s cubic-bezier(0, 0, 0.2, 1);\n transition: opacity .12s cubic-bezier(0, 0, 0.2, 1), -webkit-transform .12s cubic-bezier(0, 0, 0.2, 1);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1);\n transition: transform .12s cubic-bezier(0, 0, 0.2, 1), opacity .12s cubic-bezier(0, 0, 0.2, 1), -webkit-transform .12s cubic-bezier(0, 0, 0.2, 1);\n}\n.p-confirm-popup-leave-active {\n -webkit-transition: opacity .1s linear;\n transition: opacity .1s linear;\n}\n.p-confirm-popup:after, .p-confirm-popup:before {\n\tbottom: 100%;\n\tleft: calc(var(--overlayArrowLeft, 0) + 1.25rem);\n\tcontent: " ";\n\theight: 0;\n\twidth: 0;\n\tposition: absolute;\n\tpointer-events: none;\n}\n.p-confirm-popup:after {\n\tborder-width: 8px;\n\tmargin-left: -8px;\n}\n.p-confirm-popup:before {\n\tborder-width: 10px;\n\tmargin-left: -10px;\n}\n.p-confirm-popup-flipped:after, .p-confirm-popup-flipped:before {\n bottom: auto;\n top: 100%;\n}\n.p-confirm-popup.p-confirm-popup-flipped:after {\n border-bottom-color: transparent;\n}\n.p-confirm-popup.p-confirm-popup-flipped:before {\n border-bottom-color: transparent\n}\n.p-confirm-popup .p-confirm-popup-content {\n display: -webkit-box;\n display: -ms-flexbox;\n display: flex;\n -webkit-box-align: center;\n -ms-flex-align: center;\n align-items: center;\n}\n'),l.render=function(e,t,i,n,r,s){const c=o.resolveComponent("CPButton");return o.openBlock(),o.createBlock(o.Teleport,{to:"body"},[o.createVNode(o.Transition,{name:"p-confirm-popup",onEnter:s.onEnter,onLeave:s.onLeave,onAfterLeave:s.onAfterLeave},{default:o.withCtx((()=>[r.visible?(o.openBlock(),o.createBlock("div",o.mergeProps({key:0,class:s.containerClass,ref:s.containerRef},e.$attrs,{onClick:t[3]||(t[3]=(...e)=>s.onOverlayClick&&s.onOverlayClick(...e))}),[e.$slots.message?(o.openBlock(),o.createBlock(o.resolveDynamicComponent(e.$slots.message),{key:1,message:r.confirmation},null,8,["message"])):(o.openBlock(),o.createBlock("div",a,[o.createVNode("i",{class:s.iconClass},null,2),o.createVNode("span",p,o.toDisplayString(r.confirmation.message),1)])),o.createVNode("div",u,[o.createVNode(c,{label:s.rejectLabel,icon:s.rejectIcon,class:s.rejectClass,onClick:t[1]||(t[1]=e=>s.reject())},null,8,["label","icon","class"]),o.createVNode(c,{label:s.acceptLabel,icon:s.acceptIcon,class:s.acceptClass,onClick:t[2]||(t[2]=e=>s.accept()),autofocus:""},null,8,["label","icon","class"])])],16)):o.createCommentVNode("",!0)])),_:1},8,["onEnter","onLeave","onAfterLeave"])])},l}(primevue.confirmationeventbus,primevue.utils,primevue.overlayeventbus,primevue.button,Vue);