ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
39 lines (38 loc) • 1.62 kB
TypeScript
/**
* Use of this source code is governed by an MIT-style license that can be
* found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
*/
import { Clipboard } from '@angular/cdk/clipboard';
import { ChangeDetectorRef, ElementRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
import { NzTSType } from 'ng-zorro-antd/core/types';
import { NzI18nService, NzTextI18nInterface } from 'ng-zorro-antd/i18n';
import * as i0 from "@angular/core";
export declare class NzTextCopyComponent implements OnInit, OnDestroy, OnChanges {
private host;
private cdr;
private clipboard;
private i18n;
copied: boolean;
copyId: number;
locale: NzTextI18nInterface;
nativeElement: any;
copyTooltip: NzTSType | null;
copedTooltip: NzTSType | null;
copyIcon: NzTSType;
copedIcon: NzTSType;
private destroy$;
text: string;
tooltips?: [NzTSType, NzTSType] | null;
icons: [NzTSType, NzTSType];
readonly textCopy: EventEmitter<string>;
constructor(host: ElementRef, cdr: ChangeDetectorRef, clipboard: Clipboard, i18n: NzI18nService);
ngOnInit(): void;
ngOnChanges(changes: SimpleChanges): void;
ngOnDestroy(): void;
onClick(): void;
onCopied(): void;
private updateTooltips;
private updateIcons;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTextCopyComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzTextCopyComponent, "nz-text-copy", ["nzTextCopy"], { "text": "text"; "tooltips": "tooltips"; "icons": "icons"; }, { "textCopy": "textCopy"; }, never, never>;
}