UNPKG

@koalarx/ui

Version:

Koala UI is a modern and accessible component library designed to speed up interface development in Angular projects. With simple integration and clear documentation, you can easily build robust and visually appealing applications.

37 lines (33 loc) 1.07 kB
import * as i0 from '@angular/core'; interface AlertData { type: 'info' | 'warning' | 'error' | 'success'; message: string; title?: string; okButtonText?: string; } interface AlertConfig { data: AlertData; onClose?: () => void; } interface AlertOptions extends Omit<AlertData, 'type'> { onClose?: () => void; } declare class Alert { private readonly dialog; private open; success(options: AlertOptions): void; error(options: AlertOptions): void; info(options: AlertOptions): void; warning(options: AlertOptions): void; static ɵfac: i0.ɵɵFactoryDeclaration<Alert, never>; static ɵprov: i0.ɵɵInjectableDeclaration<Alert>; } declare class AlertContent { private readonly dialogRef; data: AlertData; close(): void; static ɵfac: i0.ɵɵFactoryDeclaration<AlertContent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<AlertContent, "kl-alert-content", never, {}, {}, never, never, true, never>; } export { Alert, AlertContent }; export type { AlertConfig, AlertData, AlertOptions };