UNPKG

ng-zorro-antd

Version:

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

92 lines • 3.81 kB
import { Portal } from "@angular/cdk/portal"; import * as i0 from "@angular/core"; import { InjectionToken, OnChanges, OnInit, SimpleChanges, TemplateRef, Type } from "@angular/core"; import { NzSafeAny } from "ng-zorro-antd/core/types"; import { NzEmptyI18nInterface } from "ng-zorro-antd/i18n"; export type NzEmptySize = 'normal' | 'small' | ''; export type NzEmptyCustomContent = Type<NzSafeAny> | TemplateRef<NzSafeAny> | string | null; export declare const NZ_EMPTY_COMPONENT_NAME: InjectionToken<string>; declare namespace embed_empty_component_d_exports { export { NzEmbedEmptyComponent }; } type NzEmptyContentType = 'component' | 'template' | 'string'; export declare class NzEmbedEmptyComponent implements OnChanges, OnInit { private configService; private viewContainerRef; private cdr; private injector; nzComponentName?: string; specificContent?: NzEmptyCustomContent; content?: NzEmptyCustomContent; contentType: NzEmptyContentType; contentPortal?: Portal<NzSafeAny>; size: NzEmptySize; constructor(); ngOnChanges(changes: SimpleChanges): void; ngOnInit(): void; private renderEmpty; private getUserDefaultEmptyContent; static ɵfac: i0.ɵɵFactoryDeclaration<NzEmbedEmptyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<NzEmbedEmptyComponent, "nz-embed-empty", ["nzEmbedEmpty"], { "nzComponentName": { "alias": "nzComponentName"; "required": false; }; "specificContent": { "alias": "specificContent"; "required": false; }; }, {}, never, never, true, never>; } declare namespace empty_component_d_exports { export { NzEmptyComponent }; } declare const NzEmptyDefaultImages: readonly ["default", "simple"]; type NzEmptyNotFoundImageType = (typeof NzEmptyDefaultImages)[number] | null | string | TemplateRef<void>; export declare class NzEmptyComponent implements OnChanges, OnInit { private i18n; private cdr; private destroyRef; nzNotFoundImage: NzEmptyNotFoundImageType; nzNotFoundContent?: string | TemplateRef<void> | null; nzNotFoundFooter?: string | TemplateRef<void>; isContentString: boolean; isImageBuildIn: boolean; locale: NzEmptyI18nInterface; ngOnChanges(changes: SimpleChanges): void; ngOnInit(): void; static ɵfac: i0.ɵɵFactoryDeclaration<NzEmptyComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<NzEmptyComponent, "nz-empty", ["nzEmpty"], { "nzNotFoundImage": { "alias": "nzNotFoundImage"; "required": false; }; "nzNotFoundContent": { "alias": "nzNotFoundContent"; "required": false; }; "nzNotFoundFooter": { "alias": "nzNotFoundFooter"; "required": false; }; }, {}, never, never, true, never>; } declare namespace default_d_exports { export { NzEmptyDefaultComponent }; } export declare class NzEmptyDefaultComponent { static ɵfac: i0.ɵɵFactoryDeclaration<NzEmptyDefaultComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<NzEmptyDefaultComponent, "nz-empty-default", ["nzEmptyDefault"], {}, {}, never, never, true, never>; } declare namespace simple_d_exports { export { NzEmptySimpleComponent }; } export declare class NzEmptySimpleComponent { static ɵfac: i0.ɵɵFactoryDeclaration<NzEmptySimpleComponent, never>; static ɵcmp: i0.ɵɵComponentDeclaration<NzEmptySimpleComponent, "nz-empty-simple", ["nzEmptySimple"], {}, {}, never, never, true, never>; } export declare class NzEmptyModule { static ɵfac: i0.ɵɵFactoryDeclaration<NzEmptyModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<NzEmptyModule, never, [typeof NzEmptyComponent, typeof NzEmbedEmptyComponent, typeof NzEmptyDefaultComponent, typeof NzEmptySimpleComponent], [typeof NzEmptyComponent, typeof NzEmbedEmptyComponent]>; static ɵinj: i0.ɵɵInjectorDeclaration<NzEmptyModule>; }