UNPKG

@kelvininc/ui-components

Version:
44 lines (43 loc) 1.42 kB
import { EventEmitter } from '../../stencil-public-runtime'; import { EToasterType, EToasterIconTypeClass, IToaster, IToasterEvents } from './toaster.types'; export declare class KvToaster implements IToaster, IToasterEvents { /** @inheritdoc */ header: string; /** @inheritdoc */ description?: string; /** @inheritdoc */ type: EToasterType; /** @inheritdoc */ ttl?: number; /** @inheritdoc */ closable: boolean; /** @inheritdoc */ clickCloseButton: EventEmitter<MouseEvent>; /** @inheritdoc */ ttlExpired: EventEmitter<CloseEvent>; /** @inheritdoc */ afterOpen: EventEmitter<void>; /** @inheritdoc */ afterClose: EventEmitter<void>; /** State to store the timeout id */ timeoutID: number; /** Fade in animation state */ fadeInActive: boolean; /** Fade out animation state */ fadeOutActive: boolean; /** Icon of the toaster */ iconType: EToasterIconTypeClass; /** Case the type changes, the toaster updates the icon displayed */ updateIconType(value: string): void; /** Case the ttl changes, the toaster should clear the current setTimeout */ handleTimeout(): void; private clearTTL; private emitAfterClose; private emitAfterOpen; private createTTL; private closeToaster; private onCloseClick; componentWillLoad(): void; disconnectedCallback(): void; render(): any; }