1- export function assertArg ( arg : any , name : any , reason : any ) : any ;
2- export function packageStyles ( options : any ) : {
3- to : any ;
4- from : any ;
5- } ;
6- export function pendClasses ( classes : any , fix : any , isPrefix : any ) : string ;
7- export function removeFromArray ( arr : any , val : any ) : void ;
1+ /**
2+ * @param {ng.AnimationOptions } options
3+ */
4+ export function packageStyles ( options : ng . AnimationOptions ) :
5+ | {
6+ to : Record < string , string | number > ;
7+ from : Record < string , string | number > ;
8+ }
9+ | {
10+ to ?: undefined ;
11+ from ?: undefined ;
12+ } ;
13+ /**
14+ * @param {string | string[] } classes
15+ * @param {string } fix
16+ * @param {boolean | undefined } [isPrefix]
17+ */
18+ export function pendClasses (
19+ classes : string | string [ ] ,
20+ fix : string ,
21+ isPrefix ?: boolean | undefined ,
22+ ) : string ;
823/**
924 *
1025 * @param {NodeList|Node } element
@@ -13,31 +28,36 @@ export function removeFromArray(arr: any, val: any): void;
1328export function stripCommentsFromElement (
1429 element : NodeList | Node ,
1530) : Node [ ] | Node | undefined ;
16- /**
17- * @param {NodeList|Node } element
18- * @returns {Node }
19- */
20- export function extractElementNode ( element : NodeList | Node ) : Node ;
2131export function applyAnimationClassesFactory ( ) : (
22- element : any ,
23- options : any ,
32+ /** @type { HTMLElement } */ element : HTMLElement ,
33+ /** @type { ng.AnimationOptions } */ options : ng . AnimationOptions ,
2434) => void ;
25- export function prepareAnimationOptions ( options : any ) : any ;
26- export function applyAnimationStyles ( element : any , options : any ) : void ;
35+ /**
36+ * @param {ng.AnimationOptions | undefined } options
37+ */
38+ export function prepareAnimationOptions (
39+ options : ng . AnimationOptions | undefined ,
40+ ) : import ( "./interface.ts" ) . AnimationOptions ;
41+ /**
42+ * @param {HTMLElement } element
43+ * @param {ng.AnimationOptions | undefined } options
44+ */
45+ export function applyAnimationStyles (
46+ element : HTMLElement ,
47+ options : ng . AnimationOptions | undefined ,
48+ ) : void ;
2749/**
2850 * Applies initial animation styles to a DOM element.
2951 *
3052 * This function sets the element's inline styles using the properties
3153 * defined in `options.from`, then clears the property to prevent reuse.
3254 *
3355 * @param {HTMLElement } element - The target DOM element to apply styles to.
34- * @param {{ from?: Partial<CSSStyleDeclaration> | null } } options - options containing a `from` object with CSS property–value pairs.
56+ * @param {ng.AnimationOptions } [ options] - options containing a `from` object with CSS property–value pairs.
3557 */
3658export function applyAnimationFromStyles (
3759 element : HTMLElement ,
38- options : {
39- from ?: Partial < CSSStyleDeclaration > | null ;
40- } ,
60+ options ?: ng . AnimationOptions ,
4161) : void ;
4262/**
4363 * Applies final animation styles to a DOM element.
@@ -46,41 +66,77 @@ export function applyAnimationFromStyles(
4666 * defined in `options.to`, then clears the property to prevent reuse.
4767 *
4868 * @param {HTMLElement } element - The target DOM element to apply styles to.
49- * @param {{ to?: Partial<CSSStyleDeclaration> | null } } options - options containing a `from` object with CSS property–value pairs.
69+ * @param {ng.AnimationOptions } [ options] - options containing a `from` object with CSS property–value pairs.
5070 */
5171export function applyAnimationToStyles (
5272 element : HTMLElement ,
53- options : {
54- to ?: Partial < CSSStyleDeclaration > | null ;
55- } ,
73+ options ?: ng . AnimationOptions ,
5674) : void ;
75+ /**
76+ * Merge old and new animation options for an element, computing
77+ * the final addClass and removeClass values.
78+ *
79+ * @param {HTMLElement } element - The DOM element being animated.
80+ * @param {{ options?: ng.AnimationOptions; addClass?: string; removeClass?: string } } oldAnimation
81+ * @param {{ options?: ng.AnimationOptions; addClass?: string; removeClass?: string; preparationClasses?: string } } newAnimation
82+ * @returns {ng.AnimationOptions } - The merged animation options.
83+ */
5784export function mergeAnimationDetails (
58- element : any ,
59- oldAnimation : any ,
60- newAnimation : any ,
61- ) : any ;
62- export function resolveElementClasses (
63- existing : any ,
64- toAdd : any ,
65- toRemove : any ,
66- ) : {
67- addClass : string ;
68- removeClass : string ;
69- } ;
85+ element : HTMLElement ,
86+ oldAnimation : {
87+ options ?: ng . AnimationOptions ;
88+ addClass ?: string ;
89+ removeClass ?: string ;
90+ } ,
91+ newAnimation : {
92+ options ?: ng . AnimationOptions ;
93+ addClass ?: string ;
94+ removeClass ?: string ;
95+ preparationClasses ?: string ;
96+ } ,
97+ ) : ng . AnimationOptions ;
98+ /**
99+ * @param {HTMLElement } element
100+ * @param {string | null } event
101+ * @param {ng.AnimationOptions } options
102+ */
70103export function applyGeneratedPreparationClasses (
71- element : any ,
72- event : any ,
73- options : any ,
104+ element : HTMLElement ,
105+ event : string | null ,
106+ options : ng . AnimationOptions ,
74107) : void ;
75- export function clearGeneratedClasses ( element : any , options : any ) : void ;
76- export function blockKeyframeAnimations ( node : any , applyBlock : any ) : string [ ] ;
77- export function applyInlineStyle ( node : any , styleTuple : any ) : void ;
78- export function concatWithSpace ( a : any , b : any ) : any ;
108+ /**
109+ * @param {HTMLElement } element
110+ * @param {ng.AnimationOptions } options
111+ */
112+ export function clearGeneratedClasses (
113+ element : HTMLElement ,
114+ options : ng . AnimationOptions ,
115+ ) : void ;
116+ /**
117+ * @param {HTMLElement } node
118+ * @param {boolean } applyBlock
119+ * @returns {string[] }
120+ */
121+ export function blockKeyframeAnimations (
122+ node : HTMLElement ,
123+ applyBlock : boolean ,
124+ ) : string [ ] ;
125+ /**
126+ * @param {HTMLElement } node
127+ * @param {any[] } styleTuple
128+ */
129+ export function applyInlineStyle ( node : HTMLElement , styleTuple : any [ ] ) : void ;
130+ /**
131+ * @param {string } a
132+ * @param {string } b
133+ * @returns {string }
134+ */
135+ export function concatWithSpace ( a : string , b : string ) : string ;
79136export const ADD_CLASS_SUFFIX : "-add" ;
80137export const REMOVE_CLASS_SUFFIX : "-remove" ;
81138export const EVENT_CLASS_PREFIX : "ng-" ;
82139export const ACTIVE_CLASS_SUFFIX : "-active" ;
83140export const PREPARE_CLASS_SUFFIX : "-prepare" ;
84141export const NG_ANIMATE_CLASSNAME : "ng-animate" ;
85142export const NG_ANIMATE_CHILDREN_DATA : "$$ngAnimateChildren" ;
86- export const ngMinErr : ( arg0 : string , ...arg1 : any [ ] ) => Error ;
0 commit comments