1 | import { OnInit, AfterViewInit, AfterContentInit, OnDestroy, ElementRef, EventEmitter, QueryList, TemplateRef, NgZone, ChangeDetectorRef } from '@angular/core';
|
---|
2 | import { Message, PrimeNGConfig } from 'primeng/api';
|
---|
3 | import { MessageService } from 'primeng/api';
|
---|
4 | import { Subscription } from 'rxjs';
|
---|
5 | import { AnimationEvent } from '@angular/animations';
|
---|
6 | import * as i0 from "@angular/core";
|
---|
7 | import * as i1 from "@angular/common";
|
---|
8 | import * as i2 from "primeng/ripple";
|
---|
9 | import * as i3 from "primeng/api";
|
---|
10 | export declare class ToastItem implements AfterViewInit, OnDestroy {
|
---|
11 | private zone;
|
---|
12 | message: Message;
|
---|
13 | index: number;
|
---|
14 | template: TemplateRef<any>;
|
---|
15 | showTransformOptions: string;
|
---|
16 | hideTransformOptions: string;
|
---|
17 | showTransitionOptions: string;
|
---|
18 | hideTransitionOptions: string;
|
---|
19 | onClose: EventEmitter<any>;
|
---|
20 | containerViewChild: ElementRef;
|
---|
21 | timeout: any;
|
---|
22 | constructor(zone: NgZone);
|
---|
23 | ngAfterViewInit(): void;
|
---|
24 | initTimeout(): void;
|
---|
25 | clearTimeout(): void;
|
---|
26 | onMouseEnter(): void;
|
---|
27 | onMouseLeave(): void;
|
---|
28 | onCloseIconClick(event: any): void;
|
---|
29 | ngOnDestroy(): void;
|
---|
30 | static ɵfac: i0.ɵɵFactoryDeclaration<ToastItem, never>;
|
---|
31 | static ɵcmp: i0.ɵɵComponentDeclaration<ToastItem, "p-toastItem", never, { "message": "message"; "index": "index"; "template": "template"; "showTransformOptions": "showTransformOptions"; "hideTransformOptions": "hideTransformOptions"; "showTransitionOptions": "showTransitionOptions"; "hideTransitionOptions": "hideTransitionOptions"; }, { "onClose": "onClose"; }, never, never>;
|
---|
32 | }
|
---|
33 | export declare class Toast implements OnInit, AfterContentInit, OnDestroy {
|
---|
34 | messageService: MessageService;
|
---|
35 | private cd;
|
---|
36 | config: PrimeNGConfig;
|
---|
37 | key: string;
|
---|
38 | autoZIndex: boolean;
|
---|
39 | baseZIndex: number;
|
---|
40 | style: any;
|
---|
41 | styleClass: string;
|
---|
42 | position: string;
|
---|
43 | preventOpenDuplicates: boolean;
|
---|
44 | preventDuplicates: boolean;
|
---|
45 | showTransformOptions: string;
|
---|
46 | hideTransformOptions: string;
|
---|
47 | showTransitionOptions: string;
|
---|
48 | hideTransitionOptions: string;
|
---|
49 | breakpoints: any;
|
---|
50 | onClose: EventEmitter<any>;
|
---|
51 | containerViewChild: ElementRef;
|
---|
52 | templates: QueryList<any>;
|
---|
53 | messageSubscription: Subscription;
|
---|
54 | clearSubscription: Subscription;
|
---|
55 | messages: Message[];
|
---|
56 | messagesArchieve: Message[];
|
---|
57 | template: TemplateRef<any>;
|
---|
58 | constructor(messageService: MessageService, cd: ChangeDetectorRef, config: PrimeNGConfig);
|
---|
59 | styleElement: any;
|
---|
60 | id: string;
|
---|
61 | ngOnInit(): void;
|
---|
62 | ngAfterViewInit(): void;
|
---|
63 | add(messages: Message[]): void;
|
---|
64 | canAdd(message: Message): boolean;
|
---|
65 | containsMessage(collection: Message[], message: Message): boolean;
|
---|
66 | ngAfterContentInit(): void;
|
---|
67 | onMessageClose(event: any): void;
|
---|
68 | onAnimationStart(event: AnimationEvent): void;
|
---|
69 | onAnimationEnd(event: AnimationEvent): void;
|
---|
70 | createStyle(): void;
|
---|
71 | destroyStyle(): void;
|
---|
72 | ngOnDestroy(): void;
|
---|
73 | static ɵfac: i0.ɵɵFactoryDeclaration<Toast, never>;
|
---|
74 | static ɵcmp: i0.ɵɵComponentDeclaration<Toast, "p-toast", never, { "key": "key"; "autoZIndex": "autoZIndex"; "baseZIndex": "baseZIndex"; "style": "style"; "styleClass": "styleClass"; "position": "position"; "preventOpenDuplicates": "preventOpenDuplicates"; "preventDuplicates": "preventDuplicates"; "showTransformOptions": "showTransformOptions"; "hideTransformOptions": "hideTransformOptions"; "showTransitionOptions": "showTransitionOptions"; "hideTransitionOptions": "hideTransitionOptions"; "breakpoints": "breakpoints"; }, { "onClose": "onClose"; }, ["templates"], never>;
|
---|
75 | }
|
---|
76 | export declare class ToastModule {
|
---|
77 | static ɵfac: i0.ɵɵFactoryDeclaration<ToastModule, never>;
|
---|
78 | static ɵmod: i0.ɵɵNgModuleDeclaration<ToastModule, [typeof Toast, typeof ToastItem], [typeof i1.CommonModule, typeof i2.RippleModule], [typeof Toast, typeof i3.SharedModule]>;
|
---|
79 | static ɵinj: i0.ɵɵInjectorDeclaration<ToastModule>;
|
---|
80 | }
|
---|