import * as i0 from "@angular/core"; import { MotionEvent, MotionOptions } from "@primeuix/motion"; import { BaseComponent } from "primeng/basecomponent"; import * as i1 from "primeng/bind"; import { Bind } from "primeng/bind"; import { MotionPassThrough } from "primeng/types/motion"; import { BaseStyle } from "primeng/base"; declare class MotionStyle extends BaseStyle { name: string; style: string; classes: { root: string; }; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵprov: i0.ɵɵInjectableDeclaration; } /** * Motion component is a container to apply motion effects to its content. * @group Components */ export declare class Motion extends BaseComponent { $pcMotion: Motion | undefined; bindDirectiveInstance: Bind; _componentStyle: MotionStyle; /******************** Inputs ********************/ /** * Whether the element is visible or not. * @group Props */ visible: import("@angular/core").InputSignalWithTransform; /** * Whether to mount the element on enter. * @group Props */ mountOnEnter: import("@angular/core").InputSignal; /** * Whether to unmount the element on leave. * @group Props */ unmountOnLeave: import("@angular/core").InputSignal; /** * The name of the motion. It can be a predefined motion name or a custom one. * phases: * [name]-enter * [name]-enter-active * [name]-enter-to * [name]-leave * [name]-leave-active * [name]-leave-to * @group Props */ name: import("@angular/core").InputSignal; /** * The type of the motion, valid values 'transition' and 'animation'. * @group Props */ type: import("@angular/core").InputSignal; /** * Whether the motion is safe. * @group Props */ safe: import("@angular/core").InputSignal; /** * Whether the motion is disabled. * @group Props */ disabled: import("@angular/core").InputSignal; /** * Whether the motion should appear. * @group Props */ appear: import("@angular/core").InputSignal; /** * Whether the motion should enter. * @group Props */ enter: import("@angular/core").InputSignal; /** * Whether the motion should leave. * @group Props */ leave: import("@angular/core").InputSignal; /** * The duration of the motion. * @group Props */ duration: import("@angular/core").InputSignal; /** * The hide strategy of the motion, valid values 'display' and 'visibility'. * @group Props */ hideStrategy: import("@angular/core").InputSignal<"display" | "visibility">; /** * The enter from class of the motion. * @group Props */ enterFromClass: import("@angular/core").InputSignal; /** * The enter to class of the motion. * @group Props */ enterToClass: import("@angular/core").InputSignal; /** * The enter active class of the motion. * @group Props */ enterActiveClass: import("@angular/core").InputSignal; /** * The leave from class of the motion. * @group Props */ leaveFromClass: import("@angular/core").InputSignal; /** * The leave to class of the motion. * @group Props */ leaveToClass: import("@angular/core").InputSignal; /** * The leave active class of the motion. * @group Props */ leaveActiveClass: import("@angular/core").InputSignal; /******************** All Inputs ********************/ /** * The motion options. * @group Props */ options: import("@angular/core").InputSignalWithTransform; /******************** Outputs ********************/ /** * Callback fired before the enter transition/animation starts. * @param {MotionEvent} [event] - The event object containing details about the motion. * @param {Element} event.element - The element being transitioned/animated. * @group Emits */ onBeforeEnter: import("@angular/core").OutputEmitterRef; /** * Callback fired when the enter transition/animation starts. * @param {MotionEvent} [event] - The event object containing details about the motion. * @param {Element} event.element - The element being transitioned/animated. * @group Emits */ onEnter: import("@angular/core").OutputEmitterRef; /** * Callback fired after the enter transition/animation ends. * @param {MotionEvent} [event] - The event object containing details about the motion. * @param {Element} event.element - The element being transitioned/animated. * @group Emits */ onAfterEnter: import("@angular/core").OutputEmitterRef; /** * Callback fired when the enter transition/animation is cancelled. * @param {MotionEvent} [event] - The event object containing details about the motion. * @param {Element} event.element - The element being transitioned/animated. * @group Emits */ onEnterCancelled: import("@angular/core").OutputEmitterRef; /** * Callback fired before the leave transition/animation starts. * @param {MotionEvent} [event] - The event object containing details about the motion. * @param {Element} event.element - The element being transitioned/animated. * @group Emits */ onBeforeLeave: import("@angular/core").OutputEmitterRef; /** * Callback fired when the leave transition/animation starts. * @param {MotionEvent} [event] - The event object containing details about the motion. * @param {Element} event.element - The element being transitioned/animated. * @group Emits */ onLeave: import("@angular/core").OutputEmitterRef; /** * Callback fired after the leave transition/animation ends. * @param {MotionEvent} [event] - The event object containing details about the motion. * @param {Element} event.element - The element being transitioned/animated. * @group Emits */ onAfterLeave: import("@angular/core").OutputEmitterRef; /** * Callback fired when the leave transition/animation is cancelled. * @param {MotionEvent} [event] - The event object containing details about the motion. * @param {Element} event.element - The element being transitioned/animated. * @group Emits */ onLeaveCancelled: import("@angular/core").OutputEmitterRef; /******************** Computed ********************/ private motionOptions; private motion; private isInitialMount; private cancelled; private destroyed; rendered: import("@angular/core").WritableSignal; private readonly handleBeforeEnter; private readonly handleEnter; private readonly handleAfterEnter; private readonly handleEnterCancelled; private readonly handleBeforeLeave; private readonly handleLeave; private readonly handleAfterLeave; private readonly handleLeaveCancelled; constructor(); private applyMotionDuration; onAfterViewChecked(): void; onDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵcmp: i0.ɵɵComponentDeclaration; } /** * Motion Directive is directive to apply motion effects to elements. * @group Components */ export declare class MotionDirective extends BaseComponent { $pcMotionDirective: MotionDirective | undefined; /******************** Inputs ********************/ /** * Whether the element is visible or not. * @group Props */ visible: import("@angular/core").InputSignalWithTransform; /** * The name of the motion. It can be a predefined motion name or a custom one. * phases: * [name]-enter * [name]-enter-active * [name]-enter-to * [name]-leave * [name]-leave-active * [name]-leave-to * @group Props */ name: import("@angular/core").InputSignal; /** * The type of the motion, valid values 'transition' and 'animation'. * @group Props */ type: import("@angular/core").InputSignal; /** * Whether the motion is safe. * @group Props */ safe: import("@angular/core").InputSignal; /** * Whether the motion is disabled. * @group Props */ disabled: import("@angular/core").InputSignal; /** * Whether the motion should appear. * @group Props */ appear: import("@angular/core").InputSignal; /** * Whether the motion should enter. * @group Props */ enter: import("@angular/core").InputSignal; /** * Whether the motion should leave. * @group Props */ leave: import("@angular/core").InputSignal; /** * The duration of the motion. * @group Props */ duration: import("@angular/core").InputSignal; /** * The hide strategy of the motion, valid values 'display' and 'visibility'. * @group Props */ hideStrategy: import("@angular/core").InputSignal<"display" | "visibility">; /** * The enter from class of the motion. * @group Props */ enterFromClass: import("@angular/core").InputSignal; /** * The enter to class of the motion. * @group Props */ enterToClass: import("@angular/core").InputSignal; /** * The enter active class of the motion. * @group Props */ enterActiveClass: import("@angular/core").InputSignal; /** * The leave from class of the motion. * @group Props */ leaveFromClass: import("@angular/core").InputSignal; /** * The leave to class of the motion. * @group Props */ leaveToClass: import("@angular/core").InputSignal; /** * The leave active class of the motion. * @group Props */ leaveActiveClass: import("@angular/core").InputSignal; /******************** All Inputs ********************/ /** * The motion options. * @group Props */ options: import("@angular/core").InputSignalWithTransform; /******************** Outputs ********************/ /** * Callback fired before the enter transition/animation starts. * @param {MotionEvent} [event] - The event object containing details about the motion. * @param {Element} event.element - The element being transitioned/animated. * @group Emits */ onBeforeEnter: import("@angular/core").OutputEmitterRef; /** * Callback fired when the enter transition/animation starts. * @param {MotionEvent} [event] - The event object containing details about the motion. * @param {Element} event.element - The element being transitioned/animated. * @group Emits */ onEnter: import("@angular/core").OutputEmitterRef; /** * Callback fired after the enter transition/animation ends. * @param {MotionEvent} [event] - The event object containing details about the motion. * @param {Element} event.element - The element being transitioned/animated. * @group Emits */ onAfterEnter: import("@angular/core").OutputEmitterRef; /** * Callback fired when the enter transition/animation is cancelled. * @param {MotionEvent} [event] - The event object containing details about the motion. * @param {Element} event.element - The element being transitioned/animated. * @group Emits */ onEnterCancelled: import("@angular/core").OutputEmitterRef; /** * Callback fired before the leave transition/animation starts. * @param {MotionEvent} [event] - The event object containing details about the motion. * @param {Element} event.element - The element being transitioned/animated. * @group Emits */ onBeforeLeave: import("@angular/core").OutputEmitterRef; /** * Callback fired when the leave transition/animation starts. * @param {MotionEvent} [event] - The event object containing details about the motion. * @param {Element} event.element - The element being transitioned/animated. * @group Emits */ onLeave: import("@angular/core").OutputEmitterRef; /** * Callback fired after the leave transition/animation ends. * @param {MotionEvent} [event] - The event object containing details about the motion. * @param {Element} event.element - The element being transitioned/animated. * @group Emits */ onAfterLeave: import("@angular/core").OutputEmitterRef; /** * Callback fired when the leave transition/animation is cancelled. * @param {MotionEvent} [event] - The event object containing details about the motion. * @param {Element} event.element - The element being transitioned/animated. * @group Emits */ onLeaveCancelled: import("@angular/core").OutputEmitterRef; /******************** Computed ********************/ private motionOptions; private motion; private isInitialMount; private cancelled; private destroyed; private readonly handleBeforeEnter; private readonly handleEnter; private readonly handleAfterEnter; private readonly handleEnterCancelled; private readonly handleBeforeLeave; private readonly handleLeave; private readonly handleAfterLeave; private readonly handleLeaveCancelled; constructor(); private applyMotionDuration; onDestroy(): void; static ɵfac: i0.ɵɵFactoryDeclaration; static ɵdir: i0.ɵɵDirectiveDeclaration; } export declare class MotionModule { static ɵfac: i0.ɵɵFactoryDeclaration; static ɵmod: i0.ɵɵNgModuleDeclaration; static ɵinj: i0.ɵɵInjectorDeclaration; } export {};