diff --git a/src/components/confirmpopup/ConfirmPopup.d.ts b/src/components/confirmpopup/ConfirmPopup.d.ts index 024c0c29c..a304c8712 100644 --- a/src/components/confirmpopup/ConfirmPopup.d.ts +++ b/src/components/confirmpopup/ConfirmPopup.d.ts @@ -1,16 +1,47 @@ -interface ConfirmPopupProps { +import { VNode } from 'vue'; +import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +import { ConfirmationOptions } from '../confirmationoptions'; + +export interface ConfirmPopupProps { + /** + * Optional key to match the key of the confirmation, useful to target a specific confirm dialog instance. + */ group?: string; } -interface ConfirmPopupMessageSlot { - message: any; +export interface ConfirmPopupSlots { + /** + * Custom message template. + * @param {Object} scope - message slot's params. + */ + message: (scope: { + message: ConfirmationOptions; + }) => VNode[]; } -declare class ConfirmPopup { - $props: ConfirmPopupProps; - $slots: { - message: ConfirmPopupMessageSlot +export declare type ConfirmPopupEmits = { +} + +declare class ConfirmPopup extends ClassComponent { } + +declare module '@vue/runtime-core' { + interface GlobalComponents { + ConfirmPopup: GlobalComponentConstructor } } +/** + * + * ConfirmPopup displays a confirmation overlay displayed relatively to its target. + * + * Helper API: + * + * - Confirmation API + * - ConfirmationService + * + * Demos: + * + * - [ConfirmPopup](https://www.primefaces.org/primevue/showcase/#/confirmpopup) + * + */ export default ConfirmPopup;