UNPKG

ng-zorro-antd

Version:

An enterprise-class UI components based on Ant Design and Angular

100 lines • 3.63 kB
import * as i0 from "@angular/core"; import { AfterContentInit, AfterViewInit, ElementRef, OnChanges, OnInit, SimpleChanges } from "@angular/core"; import { NzConfigKey } from "ng-zorro-antd/core/config"; import { NzSizeLDSType } from "ng-zorro-antd/core/types"; import { NzIconDirective } from "ng-zorro-antd/icon"; import * as i1 from "ng-zorro-antd/space"; import * as i2 from "ng-zorro-antd/core/transition-patch"; import * as i3 from "ng-zorro-antd/core/wave"; declare namespace button_component_d_exports { export { NzButtonComponent, NzButtonShape, NzButtonSize, NzButtonType }; } export type NzButtonType = 'primary' | 'default' | 'dashed' | 'link' | 'text' | null; export type NzButtonShape = 'circle' | 'round' | null; export type NzButtonSize = NzSizeLDSType; export declare class NzButtonComponent implements OnChanges, AfterViewInit, AfterContentInit, OnInit { private readonly elementRef; private readonly cdr; private readonly renderer; private readonly destroyRef; protected readonly dir: import("@angular/core").WritableSignal<import("@angular/cdk/bidi").Direction>; readonly _nzModuleName: NzConfigKey; nzIconDirectiveElement: ElementRef; nzBlock: boolean; nzGhost: boolean; nzLoading: boolean; nzDanger: boolean; disabled: boolean; tabIndex: number | string | null; nzType: NzButtonType; nzShape: NzButtonShape; nzSize: NzButtonSize; private readonly elementOnly; private readonly size; private readonly loading$; private readonly formSize; private readonly compactSize; protected readonly finalSize: import("@angular/core").Signal<NzSizeLDSType | undefined>; readonly iconDir: import("@angular/core").Signal<NzIconDirective | undefined>; readonly loadingIconDir: import("@angular/core").Signal<NzIconDirective | undefined>; readonly iconOnly: import("@angular/core").Signal<boolean>; constructor(); ngOnInit(): void; ngOnChanges({ nzLoading, nzSize }: SimpleChanges): void; ngAfterViewInit(): void; ngAfterContentInit(): void; insertSpan(): void; static ɵfac: i0.ɵɵFactoryDeclaration<NzButtonComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<NzButtonComponent, "button[nz-button], a[nz-button]", ["nzButton"], { "nzBlock": { "alias": "nzBlock"; "required": false; }; "nzGhost": { "alias": "nzGhost"; "required": false; }; "nzLoading": { "alias": "nzLoading"; "required": false; }; "nzDanger": { "alias": "nzDanger"; "required": false; }; "disabled": { "alias": "disabled"; "required": false; }; "tabIndex": { "alias": "tabIndex"; "required": false; }; "nzType": { "alias": "nzType"; "required": false; }; "nzShape": { "alias": "nzShape"; "required": false; }; "nzSize": { "alias": "nzSize"; "required": false; }; }, {}, ["iconDir", "nzIconDirectiveElement"], ["*"], true, [{ directive: typeof i1.NzSpaceCompactItemDirective; inputs: {}; outputs: {}; }]>; static ngAcceptInputType_nzBlock: unknown; static ngAcceptInputType_nzGhost: unknown; static ngAcceptInputType_nzLoading: unknown; static ngAcceptInputType_nzDanger: unknown; static ngAcceptInputType_disabled: unknown; } export declare class NzButtonModule { static ɵfac: i0.ɵɵFactoryDeclaration<NzButtonModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<NzButtonModule, never, [typeof NzButtonComponent], [typeof NzButtonComponent, typeof i2.ɵNzTransitionPatchModule, typeof i3.NzWaveModule]>; static ɵinj: i0.ɵɵInjectorDeclaration<NzButtonModule>; }