ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
249 lines • 7.67 kB
TypeScript
import * as i0 from "@angular/core";
import { AfterViewInit, ElementRef, EmbeddedViewRef, EventEmitter, OnChanges, OnInit, SimpleChanges, TemplateRef } from "@angular/core";
import { NzConfigKey, NzConfigService } from "ng-zorro-antd/core/config";
import { NzTSType } from "ng-zorro-antd/core/types";
import { NzTextI18nInterface } from "ng-zorro-antd/i18n";
import { CdkTextareaAutosize } from "@angular/cdk/text-field";
declare namespace text_copy_component_d_exports {
export { NzTextCopyComponent };
}
export declare class NzTextCopyComponent implements OnInit, OnChanges {
private cdr;
private clipboard;
private i18n;
private destroyRef;
copied: boolean;
copyId?: ReturnType<typeof setTimeout>;
locale: NzTextI18nInterface;
nativeElement: any;
copyTooltip: NzTSType | null;
copedTooltip: NzTSType | null;
copyIcon: NzTSType;
copedIcon: NzTSType;
text: string;
tooltips?: [NzTSType, NzTSType] | null;
icons: [NzTSType, NzTSType];
readonly textCopy: EventEmitter<string>;
constructor();
ngOnInit(): void;
ngOnChanges(changes: SimpleChanges): 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": {
"alias": "text";
"required": false;
};
"tooltips": {
"alias": "tooltips";
"required": false;
};
"icons": {
"alias": "icons";
"required": false;
};
}, {
"textCopy": "textCopy";
}, never, never, true, never>;
}
declare namespace text_edit_component_d_exports {
export { NzTextEditComponent };
}
export declare class NzTextEditComponent implements OnInit {
private readonly ngZone;
private readonly cdr;
private readonly i18n;
private readonly destroyRef;
private readonly injector;
editing: boolean;
locale: NzTextI18nInterface;
text?: string;
icon: NzTSType;
tooltip?: null | NzTSType;
readonly startEditing: EventEmitter<void>;
readonly endEditing: EventEmitter<string>;
set textarea(textarea: ElementRef<HTMLTextAreaElement> | undefined);
autosizeDirective: CdkTextareaAutosize;
beforeText?: string;
currentText?: string;
readonly nativeElement: HTMLElement;
private textarea$;
ngOnInit(): void;
onClick(): void;
confirm(): void;
onEnter(event: Event): void;
onCancel(): void;
focusAndSetValue(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTextEditComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzTextEditComponent, "nz-text-edit", ["nzTextEdit"], {
"text": {
"alias": "text";
"required": false;
};
"icon": {
"alias": "icon";
"required": false;
};
"tooltip": {
"alias": "tooltip";
"required": false;
};
}, {
"startEditing": "startEditing";
"endEditing": "endEditing";
}, never, never, true, never>;
}
declare namespace typography_component_d_exports {
export { NzTypographyComponent };
}
export declare class NzTypographyComponent implements OnInit, AfterViewInit, OnChanges {
readonly _nzModuleName: NzConfigKey;
nzConfigService: NzConfigService;
private el;
private cdr;
private viewContainerRef;
private renderer;
private platform;
private i18n;
private resizeService;
protected readonly dir: import("@angular/core").WritableSignal<import("@angular/cdk/bidi").Direction>;
private document;
private destroyRef;
nzCopyable: boolean;
nzEditable: boolean;
nzDisabled: boolean;
nzExpandable: boolean;
nzEllipsis: boolean;
nzCopyTooltips?: [NzTSType, NzTSType] | null;
nzCopyIcons: [NzTSType, NzTSType];
nzEditTooltip?: null | NzTSType;
nzEditIcon: NzTSType;
nzContent?: string;
nzEllipsisRows: number;
nzType: 'secondary' | 'warning' | 'danger' | 'success' | undefined;
nzCopyText: string | undefined;
nzSuffix: string | undefined;
readonly nzContentChange: EventEmitter<string>;
readonly nzCopy: EventEmitter<string>;
readonly nzExpandChange: EventEmitter<void>;
readonly nzOnEllipsis: EventEmitter<boolean>;
textEditRef?: NzTextEditComponent;
textCopyRef?: NzTextCopyComponent;
ellipsisContainer?: ElementRef<HTMLSpanElement>;
expandableBtn?: ElementRef<HTMLSpanElement>;
contentTemplate?: TemplateRef<{
content: string;
}>;
locale: NzTextI18nInterface;
expandableBtnElementCache: HTMLElement | null;
editing: boolean;
ellipsisText: string | undefined;
cssEllipsis: boolean;
isEllipsis: boolean;
expanded: boolean;
ellipsisStr: string;
get hasEllipsisObservers(): boolean;
get canCssEllipsis(): boolean;
get hasOperationsWithEllipsis(): boolean;
private viewInit;
private requestId;
private windowResizeSubscription;
get copyText(): string;
constructor();
onTextCopy(text: string): void;
onStartEditing(): void;
onEndEditing(text: string): void;
onExpand(): void;
canUseCSSEllipsis(): boolean;
renderOnNextFrame(): void;
getOriginContentViewRef(): {
viewRef: EmbeddedViewRef<{
content: string;
}>;
removeView(): void;
};
syncEllipsis(): void;
private getExpandableBtnElement;
private renderAndSubscribeWindowResize;
ngOnInit(): void;
ngAfterViewInit(): void;
ngOnChanges(changes: SimpleChanges): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzTypographyComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzTypographyComponent, " nz-typography, [nz-typography], p[nz-paragraph], span[nz-text], h1[nz-title], h2[nz-title], h3[nz-title], h4[nz-title] ", ["nzTypography"], {
"nzCopyable": {
"alias": "nzCopyable";
"required": false;
};
"nzEditable": {
"alias": "nzEditable";
"required": false;
};
"nzDisabled": {
"alias": "nzDisabled";
"required": false;
};
"nzExpandable": {
"alias": "nzExpandable";
"required": false;
};
"nzEllipsis": {
"alias": "nzEllipsis";
"required": false;
};
"nzCopyTooltips": {
"alias": "nzCopyTooltips";
"required": false;
};
"nzCopyIcons": {
"alias": "nzCopyIcons";
"required": false;
};
"nzEditTooltip": {
"alias": "nzEditTooltip";
"required": false;
};
"nzEditIcon": {
"alias": "nzEditIcon";
"required": false;
};
"nzContent": {
"alias": "nzContent";
"required": false;
};
"nzEllipsisRows": {
"alias": "nzEllipsisRows";
"required": false;
};
"nzType": {
"alias": "nzType";
"required": false;
};
"nzCopyText": {
"alias": "nzCopyText";
"required": false;
};
"nzSuffix": {
"alias": "nzSuffix";
"required": false;
};
}, {
"nzContentChange": "nzContentChange";
"nzCopy": "nzCopy";
"nzExpandChange": "nzExpandChange";
"nzOnEllipsis": "nzOnEllipsis";
}, never, ["*"], true, never>;
static ngAcceptInputType_nzCopyable: unknown;
static ngAcceptInputType_nzEditable: unknown;
static ngAcceptInputType_nzDisabled: unknown;
static ngAcceptInputType_nzExpandable: unknown;
static ngAcceptInputType_nzEllipsis: unknown;
static ngAcceptInputType_nzEllipsisRows: unknown;
}
export declare class NzTypographyModule {
static ɵfac: i0.ɵɵFactoryDeclaration<NzTypographyModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<NzTypographyModule, never, [typeof NzTypographyComponent, typeof NzTextCopyComponent, typeof NzTextEditComponent], [typeof NzTypographyComponent, typeof NzTextCopyComponent, typeof NzTextEditComponent]>;
static ɵinj: i0.ɵɵInjectorDeclaration<NzTypographyModule>;
}