text-copy.component.d.ts 1.7 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. /**
  2. * Use of this source code is governed by an MIT-style license that can be
  3. * found in the LICENSE file at https://github.com/NG-ZORRO/ng-zorro-antd/blob/master/LICENSE
  4. */
  5. import { Clipboard } from '@angular/cdk/clipboard';
  6. import { ChangeDetectorRef, EventEmitter, OnChanges, OnDestroy, OnInit, SimpleChanges } from '@angular/core';
  7. import { NzTSType } from 'ng-zorro-antd/core/types';
  8. import { NzI18nService, NzTextI18nInterface } from 'ng-zorro-antd/i18n';
  9. import * as i0 from "@angular/core";
  10. export declare class NzTextCopyComponent implements OnInit, OnDestroy, OnChanges {
  11. private cdr;
  12. private clipboard;
  13. private i18n;
  14. copied: boolean;
  15. copyId?: ReturnType<typeof setTimeout>;
  16. locale: NzTextI18nInterface;
  17. nativeElement: any;
  18. copyTooltip: NzTSType | null;
  19. copedTooltip: NzTSType | null;
  20. copyIcon: NzTSType;
  21. copedIcon: NzTSType;
  22. private destroy$;
  23. text: string;
  24. tooltips?: [NzTSType, NzTSType] | null;
  25. icons: [NzTSType, NzTSType];
  26. readonly textCopy: EventEmitter<string>;
  27. constructor(cdr: ChangeDetectorRef, clipboard: Clipboard, i18n: NzI18nService);
  28. ngOnInit(): void;
  29. ngOnChanges(changes: SimpleChanges): void;
  30. ngOnDestroy(): void;
  31. onClick(): void;
  32. onCopied(): void;
  33. private updateTooltips;
  34. private updateIcons;
  35. static ɵfac: i0.ɵɵFactoryDeclaration<NzTextCopyComponent, never>;
  36. static ɵcmp: i0.ɵɵComponentDeclaration<NzTextCopyComponent, "nz-text-copy", ["nzTextCopy"], { "text": { "alias": "text"; "required": false; }; "tooltips": { "alias": "tooltips"; "required": false; }; "icons": { "alias": "icons"; "required": false; }; }, { "textCopy": "textCopy"; }, never, never, true, never>;
  37. }