ng-zorro-antd
Version:
An enterprise-class UI components based on Ant Design and Angular
101 lines • 3.6 kB
TypeScript
import * as i0 from "@angular/core";
import { AfterContentInit, OnChanges, OnDestroy, QueryList, SimpleChanges, TemplateRef } from "@angular/core";
import { NzConfigKey } from "ng-zorro-antd/core/config";
import { ResponsiveLike } from "ng-zorro-antd/core/services";
import { Subject } from "rxjs";
declare namespace descriptions_item_component_d_exports {
export { NzDescriptionsItemComponent };
}
export declare class NzDescriptionsItemComponent implements OnChanges, OnDestroy {
content: TemplateRef<void>;
nzSpan: number;
nzTitle: string | TemplateRef<void>;
readonly inputChange$: Subject<void>;
ngOnChanges(): void;
ngOnDestroy(): void;
static ɵfac: i0.ɵɵFactoryDeclaration<NzDescriptionsItemComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzDescriptionsItemComponent, "nz-descriptions-item", ["nzDescriptionsItem"], {
"nzSpan": {
"alias": "nzSpan";
"required": false;
};
"nzTitle": {
"alias": "nzTitle";
"required": false;
};
}, {}, never, ["*"], true, never>;
static ngAcceptInputType_nzSpan: unknown;
}
export type NzDescriptionsSize = 'default' | 'middle' | 'small';
export type NzDescriptionsLayout = 'horizontal' | 'vertical';
export interface NzDescriptionsItemRenderProps {
title: string | TemplateRef<void>;
span: number;
content: TemplateRef<void>;
}
declare namespace descriptions_component_d_exports {
export { NzDescriptionsComponent };
}
export declare class NzDescriptionsComponent implements OnChanges, AfterContentInit {
private readonly cdr;
private readonly breakpointService;
private readonly destroyRef;
protected readonly dir: import("@angular/core").WritableSignal<import("@angular/cdk/bidi").Direction>;
readonly _nzModuleName: NzConfigKey;
items: QueryList<NzDescriptionsItemComponent>;
nzBordered: boolean;
nzLayout: NzDescriptionsLayout;
nzColumn: number | Partial<ResponsiveLike<number>>;
nzSize: NzDescriptionsSize;
nzTitle: string | TemplateRef<void>;
nzExtra?: string | TemplateRef<void>;
nzColon: boolean;
itemMatrix: NzDescriptionsItemRenderProps[][];
realColumn: number;
private breakpoint;
ngOnChanges(changes: SimpleChanges): void;
ngAfterContentInit(): void;
/**
* Prepare the render matrix according to description items' spans.
*/
private prepareMatrix;
private getColumn;
static ɵfac: i0.ɵɵFactoryDeclaration<NzDescriptionsComponent, never>;
static ɵcmp: i0.ɵɵComponentDeclaration<NzDescriptionsComponent, "nz-descriptions", ["nzDescriptions"], {
"nzBordered": {
"alias": "nzBordered";
"required": false;
};
"nzLayout": {
"alias": "nzLayout";
"required": false;
};
"nzColumn": {
"alias": "nzColumn";
"required": false;
};
"nzSize": {
"alias": "nzSize";
"required": false;
};
"nzTitle": {
"alias": "nzTitle";
"required": false;
};
"nzExtra": {
"alias": "nzExtra";
"required": false;
};
"nzColon": {
"alias": "nzColon";
"required": false;
};
}, {}, ["items"], never, true, never>;
static ngAcceptInputType_nzBordered: unknown;
static ngAcceptInputType_nzColon: unknown;
}
export declare class NzDescriptionsModule {
static ɵfac: i0.ɵɵFactoryDeclaration<NzDescriptionsModule, never>;
static ɵmod: i0.ɵɵNgModuleDeclaration<NzDescriptionsModule, never, [typeof NzDescriptionsComponent, typeof NzDescriptionsItemComponent], [typeof NzDescriptionsComponent, typeof NzDescriptionsItemComponent]>;
static ɵinj: i0.ɵɵInjectorDeclaration<NzDescriptionsModule>;
}