UNPKG

simplealert

Version:

A simple info/error/warn/success alert component for Angular using @angular/material

36 lines (31 loc) 1.49 kB
import * as i0 from '@angular/core'; import { OnInit, EventEmitter } from '@angular/core'; import * as i2 from '@angular/common'; import * as i3 from '@angular/material/icon'; import * as i4 from '@angular/material/button'; declare enum AlertType { INFO = 1, ERROR = 2, WARN = 3, SUCCESS = 4 } type AlertTypeString = ('info' | 'error' | 'warn' | 'success'); declare class SimplealertComponent implements OnInit { isOpenState: boolean; type: (AlertType | AlertTypeString); isOpenChange: EventEmitter<any>; constructor(); ngOnInit(): void; get isOpen(): boolean; set isOpen(isOpen: boolean); getAlertType(): AlertTypeString; static ɵfac: i0.ɵɵFactoryDeclaration<SimplealertComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<SimplealertComponent, "smc-simplealert", never, { "type": { "alias": "type"; "required": false; }; "isOpen": { "alias": "isOpen"; "required": false; }; }, { "isOpenChange": "isOpenChange"; }, never, ["*"], false, never>; } declare class SimplealertModule { static ɵfac: i0.ɵɵFactoryDeclaration<SimplealertModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<SimplealertModule, [typeof SimplealertComponent], [typeof i2.CommonModule, typeof i3.MatIconModule, typeof i4.MatButtonModule], [typeof SimplealertComponent]>; static ɵinj: i0.ɵɵInjectorDeclaration<SimplealertModule>; } export { AlertType, SimplealertComponent, SimplealertModule }; export type { AlertTypeString };