UNPKG

1.65 kBTypeScriptView Raw
1import { EventEmitter, OnDestroy, OnInit, ChangeDetectorRef } from '@angular/core';
2import { NotificationAnimationType } from '../../enums/notification-animation-type.enum';
3import { Notification } from '../../interfaces/notification.type';
4import { Options, Position } from '../../interfaces/options.type';
5import { NotificationsService } from '../../services/notifications.service';
6export declare class SimpleNotificationsComponent implements OnInit, OnDestroy {
7 private service;
8 private cd;
9 constructor(service: NotificationsService, cd: ChangeDetectorRef);
10 options: Options;
11 create: EventEmitter<any>;
12 destroy: EventEmitter<any>;
13 notifications: Notification[];
14 position: Position;
15 private lastNotificationCreated;
16 private listener;
17 private lastOnBottom;
18 private maxStack;
19 private preventLastDuplicates;
20 private preventDuplicates;
21 timeOut: number;
22 maxLength: number;
23 clickToClose: boolean;
24 clickIconToClose: boolean;
25 showProgressBar: boolean;
26 pauseOnHover: boolean;
27 theClass: string;
28 rtl: boolean;
29 animate: NotificationAnimationType;
30 private usingComponentOptions;
31 ngOnInit(): void;
32 ngOnDestroy(): void;
33 defaultBehavior(value: any): void;
34 add(item: Notification): void;
35 block(item: Notification): boolean;
36 checkStandard(checker: Notification, item: Notification): boolean;
37 checkHtml(checker: Notification, item: Notification): boolean;
38 attachChanges(options: any): void;
39 buildEmit(notification: Notification, to: boolean): Notification;
40 cleanSingle(id: string): void;
41}