1 | import { ElementRef, OnDestroy, EventEmitter, Renderer2, NgZone, ChangeDetectorRef, QueryList, TemplateRef, AfterContentInit, OnInit } from '@angular/core';
|
---|
2 | import { AnimationEvent } from '@angular/animations';
|
---|
3 | import { PrimeNGConfig } from 'primeng/api';
|
---|
4 | import { Confirmation } from 'primeng/api';
|
---|
5 | import { ConfirmationService } from 'primeng/api';
|
---|
6 | import { Subscription } from 'rxjs';
|
---|
7 | import * as i0 from "@angular/core";
|
---|
8 | import * as i1 from "@angular/common";
|
---|
9 | import * as i2 from "primeng/button";
|
---|
10 | import * as i3 from "primeng/ripple";
|
---|
11 | import * as i4 from "primeng/api";
|
---|
12 | export declare class ConfirmDialog implements AfterContentInit, OnInit, OnDestroy {
|
---|
13 | el: ElementRef;
|
---|
14 | renderer: Renderer2;
|
---|
15 | private confirmationService;
|
---|
16 | zone: NgZone;
|
---|
17 | private cd;
|
---|
18 | config: PrimeNGConfig;
|
---|
19 | header: string;
|
---|
20 | icon: string;
|
---|
21 | message: string;
|
---|
22 | style: any;
|
---|
23 | styleClass: string;
|
---|
24 | maskStyleClass: string;
|
---|
25 | acceptIcon: string;
|
---|
26 | acceptLabel: string;
|
---|
27 | acceptAriaLabel: string;
|
---|
28 | acceptVisible: boolean;
|
---|
29 | rejectIcon: string;
|
---|
30 | rejectLabel: string;
|
---|
31 | rejectAriaLabel: string;
|
---|
32 | rejectVisible: boolean;
|
---|
33 | acceptButtonStyleClass: string;
|
---|
34 | rejectButtonStyleClass: string;
|
---|
35 | closeOnEscape: boolean;
|
---|
36 | dismissableMask: boolean;
|
---|
37 | blockScroll: boolean;
|
---|
38 | rtl: boolean;
|
---|
39 | closable: boolean;
|
---|
40 | appendTo: any;
|
---|
41 | key: string;
|
---|
42 | autoZIndex: boolean;
|
---|
43 | baseZIndex: number;
|
---|
44 | transitionOptions: string;
|
---|
45 | focusTrap: boolean;
|
---|
46 | defaultFocus: string;
|
---|
47 | breakpoints: any;
|
---|
48 | get visible(): any;
|
---|
49 | set visible(value: any);
|
---|
50 | get position(): string;
|
---|
51 | set position(value: string);
|
---|
52 | onHide: EventEmitter<any>;
|
---|
53 | footer: any;
|
---|
54 | contentViewChild: ElementRef;
|
---|
55 | templates: QueryList<any>;
|
---|
56 | ngAfterContentInit(): void;
|
---|
57 | headerTemplate: TemplateRef<any>;
|
---|
58 | footerTemplate: TemplateRef<any>;
|
---|
59 | confirmation: Confirmation;
|
---|
60 | _visible: boolean;
|
---|
61 | maskVisible: boolean;
|
---|
62 | documentEscapeListener: any;
|
---|
63 | container: HTMLDivElement;
|
---|
64 | wrapper: HTMLElement;
|
---|
65 | contentContainer: HTMLDivElement;
|
---|
66 | subscription: Subscription;
|
---|
67 | maskClickListener: Function;
|
---|
68 | preWidth: number;
|
---|
69 | _position: string;
|
---|
70 | transformOptions: any;
|
---|
71 | styleElement: any;
|
---|
72 | id: string;
|
---|
73 | confirmationOptions: Confirmation;
|
---|
74 | translationSubscription: Subscription;
|
---|
75 | constructor(el: ElementRef, renderer: Renderer2, confirmationService: ConfirmationService, zone: NgZone, cd: ChangeDetectorRef, config: PrimeNGConfig);
|
---|
76 | ngOnInit(): void;
|
---|
77 | option(name: string): any;
|
---|
78 | onAnimationStart(event: AnimationEvent): void;
|
---|
79 | onAnimationEnd(event: AnimationEvent): void;
|
---|
80 | getElementToFocus(): any;
|
---|
81 | appendContainer(): void;
|
---|
82 | restoreAppend(): void;
|
---|
83 | enableModality(): void;
|
---|
84 | disableModality(): void;
|
---|
85 | createStyle(): void;
|
---|
86 | close(event: Event): void;
|
---|
87 | hide(type?: any): void;
|
---|
88 | moveOnTop(): void;
|
---|
89 | getMaskClass(): {
|
---|
90 | 'p-dialog-mask p-component-overlay': boolean;
|
---|
91 | 'p-dialog-mask-scrollblocker': boolean;
|
---|
92 | };
|
---|
93 | getPositionClass(): string;
|
---|
94 | bindGlobalListeners(): void;
|
---|
95 | unbindGlobalListeners(): void;
|
---|
96 | unbindMaskClickListener(): void;
|
---|
97 | onOverlayHide(): void;
|
---|
98 | destroyStyle(): void;
|
---|
99 | ngOnDestroy(): void;
|
---|
100 | accept(): void;
|
---|
101 | reject(): void;
|
---|
102 | get acceptButtonLabel(): string;
|
---|
103 | get rejectButtonLabel(): string;
|
---|
104 | static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialog, never>;
|
---|
105 | static ɵcmp: i0.ɵɵComponentDeclaration<ConfirmDialog, "p-confirmDialog", never, { "header": "header"; "icon": "icon"; "message": "message"; "style": "style"; "styleClass": "styleClass"; "maskStyleClass": "maskStyleClass"; "acceptIcon": "acceptIcon"; "acceptLabel": "acceptLabel"; "acceptAriaLabel": "acceptAriaLabel"; "acceptVisible": "acceptVisible"; "rejectIcon": "rejectIcon"; "rejectLabel": "rejectLabel"; "rejectAriaLabel": "rejectAriaLabel"; "rejectVisible": "rejectVisible"; "acceptButtonStyleClass": "acceptButtonStyleClass"; "rejectButtonStyleClass": "rejectButtonStyleClass"; "closeOnEscape": "closeOnEscape"; "dismissableMask": "dismissableMask"; "blockScroll": "blockScroll"; "rtl": "rtl"; "closable": "closable"; "appendTo": "appendTo"; "key": "key"; "autoZIndex": "autoZIndex"; "baseZIndex": "baseZIndex"; "transitionOptions": "transitionOptions"; "focusTrap": "focusTrap"; "defaultFocus": "defaultFocus"; "breakpoints": "breakpoints"; "visible": "visible"; "position": "position"; }, { "onHide": "onHide"; }, ["footer", "templates"], ["p-footer"]>;
|
---|
106 | }
|
---|
107 | export declare class ConfirmDialogModule {
|
---|
108 | static ɵfac: i0.ɵɵFactoryDeclaration<ConfirmDialogModule, never>;
|
---|
109 | static ɵmod: i0.ɵɵNgModuleDeclaration<ConfirmDialogModule, [typeof ConfirmDialog], [typeof i1.CommonModule, typeof i2.ButtonModule, typeof i3.RippleModule], [typeof ConfirmDialog, typeof i2.ButtonModule, typeof i4.SharedModule]>;
|
---|
110 | static ɵinj: i0.ɵɵInjectorDeclaration<ConfirmDialogModule>;
|
---|
111 | }
|
---|