UNPKG

angular2-notifications

Version:

> A light and easy to use notifications library for Angular 2. ~~It features both regular page notifications (toasts) and push notifications.~~

45 lines (44 loc) 2.02 kB
import { EventEmitter, OnDestroy, OnInit, ChangeDetectorRef } from '@angular/core'; import { NotificationAnimationType } from '../../enums/notification-animation-type.enum'; import { Notification } from '../../interfaces/notification.type'; import { Options, Position } from '../../interfaces/options.type'; import { NotificationsService } from '../../services/notifications.service'; import * as i0 from "@angular/core"; export declare class SimpleNotificationsComponent implements OnInit, OnDestroy { private service; private cd; constructor(service: NotificationsService, cd: ChangeDetectorRef); set options(opt: Options); create: EventEmitter<any>; destroy: EventEmitter<any>; notifications: Notification[]; position: Position; private lastNotificationCreated; private listener; private lastOnBottom; private maxStack; private preventLastDuplicates; private preventDuplicates; timeOut: number; maxLength: number; clickToClose: boolean; clickIconToClose: boolean; showProgressBar: boolean; pauseOnHover: boolean; theClass: string; rtl: boolean; animate: NotificationAnimationType; private usingComponentOptions; ngOnInit(): void; ngOnDestroy(): void; defaultBehavior(value: any): void; add(item: Notification): void; block(item: Notification): boolean; checkStandard(checker: Notification, item: Notification): boolean; checkHtml(checker: Notification, item: Notification): boolean; attachChanges(options: any): void; buildEmit(notification: Notification, to: boolean): Notification; cleanSingle(id: string): void; static ɵfac: i0.ɵɵFactoryDeclaration<SimpleNotificationsComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<SimpleNotificationsComponent, "simple-notifications", never, { "options": { "alias": "options"; "required": false; }; }, { "create": "create"; "destroy": "destroy"; }, never, never, false, never>; }