109 lines
4.4 KiB
TypeScript
109 lines
4.4 KiB
TypeScript
import { ElementRef, NgZone, OnDestroy, Renderer2 } from '@angular/core';
|
|
import { VoidListener } from 'primeng/ts-helpers';
|
|
import * as i0 from "@angular/core";
|
|
import * as i1 from "@angular/common";
|
|
/**
|
|
* StyleClass manages css classes declaratively to during enter/leave animations or just to toggle classes on an element.
|
|
* @group Components
|
|
*/
|
|
export declare class StyleClass implements OnDestroy {
|
|
el: ElementRef;
|
|
renderer: Renderer2;
|
|
private zone;
|
|
constructor(el: ElementRef, renderer: Renderer2, zone: NgZone);
|
|
/**
|
|
* Selector to define the target element. Available selectors are '@next', '@prev', '@parent' and '@grandparent'.
|
|
* @group Props
|
|
*/
|
|
selector: string | undefined;
|
|
/**
|
|
* Style class to add when item begins to get displayed.
|
|
* @group Props
|
|
* @deprecated Use enterFromClass instead
|
|
*/
|
|
set enterClass(value: string);
|
|
get enterClass(): string;
|
|
/**
|
|
* Style class to add when item begins to get displayed.
|
|
* @group Props
|
|
*/
|
|
enterFromClass: string | undefined;
|
|
/**
|
|
* Style class to add during enter animation.
|
|
* @group Props
|
|
*/
|
|
enterActiveClass: string | undefined;
|
|
/**
|
|
* Style class to add when item begins to get displayed.
|
|
* @group Props
|
|
*/
|
|
enterToClass: string | undefined;
|
|
/**
|
|
* Style class to add when item begins to get hidden.
|
|
* @group Props
|
|
* @deprecated Use leaveFromClass instead
|
|
*/
|
|
set leaveClass(value: string);
|
|
get leaveClass(): string;
|
|
/**
|
|
* Style class to add when item begins to get hidden.
|
|
* @group Props
|
|
*/
|
|
leaveFromClass: string | undefined;
|
|
/**
|
|
* Style class to add during leave animation.
|
|
* @group Props
|
|
*/
|
|
leaveActiveClass: string | undefined;
|
|
/**
|
|
* Style class to add when leave animation is completed.
|
|
* @group Props
|
|
*/
|
|
leaveToClass: string | undefined;
|
|
/**
|
|
* Whether to trigger leave animation when outside of the element is clicked.
|
|
* @group Props
|
|
*/
|
|
hideOnOutsideClick: boolean | undefined;
|
|
/**
|
|
* Adds or removes a class when no enter-leave animation is required.
|
|
* @group Props
|
|
*/
|
|
toggleClass: string | undefined;
|
|
/**
|
|
* Whether to trigger leave animation when escape key pressed.
|
|
* @group Props
|
|
*/
|
|
hideOnEscape: boolean | undefined;
|
|
eventListener: VoidListener;
|
|
documentClickListener: VoidListener;
|
|
documentKeydownListener: VoidListener;
|
|
target: HTMLElement | null | undefined;
|
|
enterListener: VoidListener;
|
|
leaveListener: VoidListener;
|
|
animating: boolean | undefined;
|
|
_enterClass: string | undefined;
|
|
_leaveClass: string | undefined;
|
|
clickListener(): void;
|
|
toggle(): void;
|
|
enter(): void;
|
|
leave(): void;
|
|
resolveTarget(): any;
|
|
bindDocumentClickListener(): void;
|
|
bindDocumentKeydownListener(): void;
|
|
isVisible(): boolean;
|
|
isOutsideClick(event: MouseEvent): boolean;
|
|
unbindDocumentClickListener(): void;
|
|
unbindDocumentKeydownListener(): void;
|
|
ngOnDestroy(): void;
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<StyleClass, never>;
|
|
static ɵdir: i0.ɵɵDirectiveDeclaration<StyleClass, "[pStyleClass]", never, { "selector": { "alias": "pStyleClass"; "required": false; }; "enterClass": { "alias": "enterClass"; "required": false; }; "enterFromClass": { "alias": "enterFromClass"; "required": false; }; "enterActiveClass": { "alias": "enterActiveClass"; "required": false; }; "enterToClass": { "alias": "enterToClass"; "required": false; }; "leaveClass": { "alias": "leaveClass"; "required": false; }; "leaveFromClass": { "alias": "leaveFromClass"; "required": false; }; "leaveActiveClass": { "alias": "leaveActiveClass"; "required": false; }; "leaveToClass": { "alias": "leaveToClass"; "required": false; }; "hideOnOutsideClick": { "alias": "hideOnOutsideClick"; "required": false; }; "toggleClass": { "alias": "toggleClass"; "required": false; }; "hideOnEscape": { "alias": "hideOnEscape"; "required": false; }; }, {}, never, never, false, never>;
|
|
static ngAcceptInputType_hideOnOutsideClick: unknown;
|
|
static ngAcceptInputType_hideOnEscape: unknown;
|
|
}
|
|
export declare class StyleClassModule {
|
|
static ɵfac: i0.ɵɵFactoryDeclaration<StyleClassModule, never>;
|
|
static ɵmod: i0.ɵɵNgModuleDeclaration<StyleClassModule, [typeof StyleClass], [typeof i1.CommonModule], [typeof StyleClass]>;
|
|
static ɵinj: i0.ɵɵInjectorDeclaration<StyleClassModule>;
|
|
}
|