UNPKG

angular9-notifications-gpu

Version:

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

42 lines (41 loc) 1.66 kB
import { ChangeDetectorRef, EventEmitter, OnDestroy, OnInit } from '@angular/core'; import { Options, Position } from '../../interfaces/options.type'; import { Notification } from '../../interfaces/notification.type'; import { NotificationsService } from '../../services/notifications.service'; import { NotificationAnimationType } from '../../enums/notification-animation-type.enum'; export declare class SimpleNotificationsComponent implements OnInit, OnDestroy { private service; private cdr; constructor(service: NotificationsService, cdr: ChangeDetectorRef); options: Options; onCreate: EventEmitter<any>; onDestroy: 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; }