UNPKG

2.59 kBTypeScriptView Raw
1import { NgZone, OnDestroy, OnInit, ChangeDetectorRef } from '@angular/core';
2import { DomSanitizer, SafeHtml } from '@angular/platform-browser';
3import { NotificationAnimationType } from '../../enums/notification-animation-type.enum';
4import { Notification } from '../../interfaces/notification.type';
5import { NotificationsService } from '../../services/notifications.service';
6import * as i0 from "@angular/core";
7export declare class NotificationComponent implements OnInit, OnDestroy {
8 private notificationService;
9 private domSanitizer;
10 private cd;
11 private zone;
12 timeOut: number;
13 showProgressBar: boolean;
14 pauseOnHover: boolean;
15 clickToClose: boolean;
16 clickIconToClose: boolean;
17 maxLength: number;
18 theClass: string;
19 rtl: boolean;
20 animate: NotificationAnimationType;
21 position: number;
22 item: Notification;
23 title: any;
24 content: any;
25 titleIsTemplate: boolean;
26 contentIsTemplate: boolean;
27 htmlIsTemplate: boolean;
28 progressWidth: number;
29 safeSvg: SafeHtml;
30 safeInputHtml: SafeHtml;
31 private stopTime;
32 private timer;
33 private framesPerSecond;
34 private sleepTime;
35 private startTime;
36 private endTime;
37 private pauseStart;
38 private icon;
39 constructor(notificationService: NotificationsService, domSanitizer: DomSanitizer, cd: ChangeDetectorRef, zone: NgZone);
40 ngOnInit(): void;
41 ngOnDestroy(): void;
42 startTimeOut(): void;
43 onEnter(): void;
44 onLeave(): void;
45 onClick(event: MouseEvent): void;
46 onClickIcon(event: MouseEvent): void;
47 attachOverrides(): void;
48 private instance;
49 private remove;
50 private contentType;
51 static ɵfac: i0.ɵɵFactoryDeclaration<NotificationComponent, never>;
52 static ɵcmp: i0.ɵɵComponentDeclaration<NotificationComponent, "simple-notification", never, { "timeOut": { "alias": "timeOut"; "required": false; }; "showProgressBar": { "alias": "showProgressBar"; "required": false; }; "pauseOnHover": { "alias": "pauseOnHover"; "required": false; }; "clickToClose": { "alias": "clickToClose"; "required": false; }; "clickIconToClose": { "alias": "clickIconToClose"; "required": false; }; "maxLength": { "alias": "maxLength"; "required": false; }; "theClass": { "alias": "theClass"; "required": false; }; "rtl": { "alias": "rtl"; "required": false; }; "animate": { "alias": "animate"; "required": false; }; "position": { "alias": "position"; "required": false; }; "item": { "alias": "item"; "required": false; }; }, {}, never, never, false, never>;
53}