From 9ffe57ba254da84a16626fbfc585df7c8936df4e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tu=C4=9F=C3=A7e=20K=C3=BC=C3=A7=C3=BCko=C4=9Flu?= Date: Wed, 1 Mar 2023 13:18:17 +0300 Subject: [PATCH] ConfirmPopup d.ts updated --- components/confirmpopup/ConfirmPopup.d.ts | 51 +++++++++++++++-------- 1 file changed, 33 insertions(+), 18 deletions(-) diff --git a/components/confirmpopup/ConfirmPopup.d.ts b/components/confirmpopup/ConfirmPopup.d.ts index 9dab5f0b2..1cab89cc3 100644 --- a/components/confirmpopup/ConfirmPopup.d.ts +++ b/components/confirmpopup/ConfirmPopup.d.ts @@ -1,7 +1,19 @@ +/** + * + * ConfirmPopup displays a confirmation overlay displayed relatively to its target. + * + * [Live Demo](https://www.primevue.org/confirmpopup) + * + * @module confirmpopup + * + */ import { VNode } from 'vue'; -import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; import { ConfirmationOptions } from '../confirmationoptions'; +import { ClassComponent, GlobalComponentConstructor } from '../ts-helpers'; +/** + * Defines valid properties in ConfirmPopup component. + */ export interface ConfirmPopupProps { /** * Optional key to match the key of the confirmation, useful to target a specific confirm dialog instance. @@ -9,17 +21,34 @@ export interface ConfirmPopupProps { group?: string; } +/** + * Defines valid slots in ConfirmPopup component. + */ export interface ConfirmPopupSlots { /** * Custom message template. * @param {Object} scope - message slot's params. */ - message: (scope: { message: ConfirmationOptions }) => VNode[]; + message(scope: { message: ConfirmationOptions }): VNode[]; } -export declare type ConfirmPopupEmits = {}; +/** + * Defines valid emits in ConfirmPopup component. + */ +export interface ConfirmPopupEmits {} -declare class ConfirmPopup extends ClassComponent {} +/** + * **PrimeVue - ConfirmPopup** + * + * _ConfirmPopup displays a confirmation overlay displayed relatively to its target._ + * + * [Live Demo](https://www.primevue.org/confirmpopup/) + * --- --- + * ![PrimeVue](https://primefaces.org/cdn/primevue/images/logo-100.png) + * + * @group Component + */ +export declare class ConfirmPopup extends ClassComponent {} declare module '@vue/runtime-core' { interface GlobalComponents { @@ -27,18 +56,4 @@ declare module '@vue/runtime-core' { } } -/** - * - * ConfirmPopup displays a confirmation overlay displayed relatively to its target. - * - * Helper API: - * - * - Confirmation API - * - ConfirmationService - * - * Demos: - * - * - [ConfirmPopup](https://www.primefaces.org/primevue/confirmpopup) - * - */ export default ConfirmPopup;