UNPKG

primeng

Version:

PrimeNG is an open source UI library for Angular featuring a rich set of 80+ components, a theme designer, various theme alternatives such as Material, Bootstrap, Tailwind, premium templates and professional support. In addition, it integrates with PrimeB

115 lines (110 loc) 3.74 kB
import * as i0 from '@angular/core'; import { AfterViewInit, AfterContentInit, OnDestroy, TemplateRef, QueryList } from '@angular/core'; import * as i1 from 'primeng/api'; import { PrimeTemplate } from 'primeng/api'; import { BaseComponent } from 'primeng/basecomponent'; import * as _primeuix_styled from '@primeuix/styled'; import { BaseStyle } from 'primeng/base'; declare class BlockUiStyle extends BaseStyle { name: string; theme: _primeuix_styled.StyleType; classes: { root: ({ instance }: { instance: any; }) => (string | { 'p-blockui-mask-document': boolean; })[]; }; static ɵfac: i0.ɵɵFactoryDeclaration<BlockUiStyle, never>; static ɵprov: i0.ɵɵInjectableDeclaration<BlockUiStyle>; } /** * * BlockUI represents people using icons, labels and images. * * [Live Demo](https://www.primeng.org/blockui) * * @module blockuistyle * */ declare enum BlockUIClasses { /** * Class name of the root element */ root = "p-blockui" } interface BlockUIStyle extends BaseStyle { } /** * BlockUI can either block other components or the whole page. * @group Components */ declare class BlockUI extends BaseComponent implements AfterViewInit, AfterContentInit, OnDestroy { /** * Name of the local ng-template variable referring to another component. * @group Props */ target: any; /** * Whether to automatically manage layering. * @group Props */ autoZIndex: boolean; /** * Base zIndex value to use in layering. * @group Props */ baseZIndex: number; /** * Class of the element. * @deprecated since v20.0.0, use `class` instead. * @group Props */ styleClass: string | undefined; /** * Current blocked state as a boolean. * @group Props */ get blocked(): boolean; set blocked(val: boolean); /** * template of the content * @group Templates */ contentTemplate: TemplateRef<any> | undefined; _blocked: boolean; animationEndListener: VoidFunction | null | undefined; _componentStyle: BlockUiStyle; constructor(); ngAfterViewInit(): void; _contentTemplate: TemplateRef<any> | undefined; templates: QueryList<PrimeTemplate> | undefined; ngAfterContentInit(): void; block(): void; unblock(): void; destroyModal(): void; unbindAnimationEndListener(): void; ngOnDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration<BlockUI, never>; static ɵcmp: i0.ɵɵComponentDeclaration<BlockUI, "p-blockUI, p-blockui, p-block-ui", never, { "target": { "alias": "target"; "required": false; }; "autoZIndex": { "alias": "autoZIndex"; "required": false; }; "baseZIndex": { "alias": "baseZIndex"; "required": false; }; "styleClass": { "alias": "styleClass"; "required": false; }; "blocked": { "alias": "blocked"; "required": false; }; }, {}, ["contentTemplate", "templates"], ["*"], true, never>; static ngAcceptInputType_autoZIndex: unknown; static ngAcceptInputType_baseZIndex: unknown; static ngAcceptInputType_blocked: unknown; } declare class BlockUIModule { static ɵfac: i0.ɵɵFactoryDeclaration<BlockUIModule, never>; static ɵmod: i0.ɵɵNgModuleDeclaration<BlockUIModule, never, [typeof BlockUI, typeof i1.SharedModule], [typeof BlockUI, typeof i1.SharedModule]>; static ɵinj: i0.ɵɵInjectorDeclaration<BlockUIModule>; } /** * Defines valid templates in BlockUI. * @group Templates */ interface BlockUITemplates { /** * Custom template of content. */ content(): TemplateRef<any>; } export { BlockUI, BlockUIClasses, BlockUIModule, BlockUiStyle }; export type { BlockUIStyle, BlockUITemplates };