UNPKG

gov-gui

Version:

Gov UI Component Library Demo ready Build

67 lines (66 loc) 2.29 kB
import { EventEmitter } from '../../stencil-public-runtime'; import { GlobalProps } from '../../global/global-styles-helper'; import { AnimationProps } from '../../global/animation-helpers'; export declare class GovPopups implements GlobalProps, AnimationProps { el: HTMLElement; /** Modal title/header */ header: string; /** Modal subheader */ subheader: string; /** Cancel button text */ cancelButtonText: string; /** Confirm button text */ confirmButtonText: string; /** Show/hide cancel button */ showCancelButton: boolean; /** Show/hide confirm button */ showConfirmButton: boolean; /** Controls visibility of the modal */ visible: boolean; /** Modal variant (style theme) */ confirmButtonVariant: string; cancelButtonVariant: string; /** Allow clicking on the backdrop to close the modal */ backdropClose: boolean; /** Prevent closing the modal manually */ disableClose: boolean; /** Emits when the modal opens */ popupOpened: EventEmitter<void>; /** Emits when the modal closes */ popupClosed: EventEmitter<void>; /** Emits when the confirm button is clicked */ confirmClicked: EventEmitter<void>; /** Emits when the cancel button is clicked */ cancelClicked: EventEmitter<void>; animation?: string; animationDelay?: '2s' | '3s' | '4s' | '5s'; animationSpeed?: 'slow' | 'slower' | 'fast' | 'faster'; private allClasses; classes?: string; styles?: any; buttonStyles?: any; variant?: string; size?: string; private _styles; private _buttonStyles; /** Watches for visibility changes */ watchVisibility(newValue: boolean): void; watchAnimations(): void; watchAnimationsDelay(): void; watchAnimationsSpeed(): void; watchStyles(newValue: any): void; watchButtonStyles(newValue: any): void; connectedCallback(): void; /** Opens the modal */ openModal(): Promise<void>; /** Closes the modal */ closeModal(): Promise<void>; /** Handles the confirm button action */ private handleConfirm; /** Handles the cancel button action */ private handleCancel; private handleBackdropClick; componentWillLoad(): void; provideClass(): void; render(): any; }