1 | import { ElementRef, EventEmitter, NgZone, OnDestroy, OnInit, Renderer2 } from '@angular/core';
|
2 | import { IClipboardResponse } from './interface';
|
3 | import { ClipboardService } from './ngx-clipboard.service';
|
4 | import * as i0 from "@angular/core";
|
5 | export declare class ClipboardDirective implements OnInit, OnDestroy {
|
6 | private ngZone;
|
7 | private host;
|
8 | private renderer;
|
9 | private clipboardSrv;
|
10 | targetElm: HTMLInputElement | HTMLTextAreaElement | undefined | '';
|
11 | container: HTMLElement;
|
12 | cbContent: string | undefined;
|
13 | cbSuccessMsg: string;
|
14 | cbOnSuccess: EventEmitter<IClipboardResponse>;
|
15 | cbOnError: EventEmitter<any>;
|
16 | private clickListener;
|
17 | constructor(ngZone: NgZone, host: ElementRef<HTMLElement>, renderer: Renderer2, clipboardSrv: ClipboardService);
|
18 | ngOnInit(): void;
|
19 | ngOnDestroy(): void;
|
20 | private onClick;
|
21 | /**
|
22 | * Fires an event based on the copy operation result.
|
23 | * @param succeeded
|
24 | */
|
25 | private handleResult;
|
26 | static ɵfac: i0.ɵɵFactoryDeclaration<ClipboardDirective, never>;
|
27 | static ɵdir: i0.ɵɵDirectiveDeclaration<ClipboardDirective, "[ngxClipboard]", never, { "targetElm": "ngxClipboard"; "container": "container"; "cbContent": "cbContent"; "cbSuccessMsg": "cbSuccessMsg"; }, { "cbOnSuccess": "cbOnSuccess"; "cbOnError": "cbOnError"; }, never>;
|
28 | }
|