@angular-wave/angular.ts 0.16.0 → 0.17.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/@types/angular.d.ts +4 -0
- package/@types/animations/animate-css-driver.d.ts +10 -2
- package/@types/animations/animate-css.d.ts +8 -14
- package/@types/animations/animation.d.ts +1 -3
- package/@types/animations/cache/animate-cache.d.ts +99 -0
- package/@types/animations/cache/interface.d.ts +17 -0
- package/@types/animations/interface.d.ts +15 -18
- package/@types/animations/raf/raf-scheduler.d.ts +37 -0
- package/@types/core/compile/interface.d.ts +36 -5
- package/@types/core/interpolate/interface.d.ts +7 -1
- package/@types/core/parse/ast/ast-node.d.ts +75 -38
- package/@types/core/parse/ast/ast.d.ts +0 -3
- package/@types/core/parse/interface.d.ts +2 -2
- package/@types/core/parse/interpreter.d.ts +22 -10
- package/@types/core/scope/interface.d.ts +14 -4
- package/@types/core/scope/scope.d.ts +65 -22
- package/@types/directive/form/form.d.ts +16 -4
- package/@types/directive/model/model.d.ts +6 -4
- package/@types/filters/order-by.d.ts +13 -0
- package/@types/interface.d.ts +3 -3
- package/@types/router/path/path-node.d.ts +1 -1
- package/@types/router/resolve/resolve-context.d.ts +1 -1
- package/@types/router/transition/hook-registry.d.ts +1 -1
- package/@types/router/url/url-matcher.d.ts +1 -1
- package/@types/services/sce/interface.d.ts +1 -4
- package/@types/services/sce/sce.d.ts +7 -2
- package/@types/shared/common.d.ts +100 -39
- package/@types/shared/node.d.ts +5 -5
- package/@types/shared/strings.d.ts +2 -2
- package/dist/angular-ts.esm.js +1620 -1037
- package/dist/angular-ts.umd.js +1620 -1037
- package/dist/angular-ts.umd.min.js +1 -1
- package/dist/angular-ts.umd.min.js.gz +0 -0
- package/dist/angular-ts.umd.min.js.map +1 -1
- package/package.json +1 -1
- package/@types/animations/animate-cache.d.ts +0 -94
- package/@types/animations/raf-scheduler.d.ts +0 -35
package/package.json
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
"name": "@angular-wave/angular.ts",
|
|
3
3
|
"description": "A modern, optimized and type-safe version of AngularJS",
|
|
4
4
|
"license": "MIT",
|
|
5
|
-
"version": "0.
|
|
5
|
+
"version": "0.17.0",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"main": "dist/angular-ts.esm.js",
|
|
8
8
|
"module": "dist/angular-ts.esm.js",
|
|
@@ -1,94 +0,0 @@
|
|
|
1
|
-
export function animateCache(): {
|
|
2
|
-
/**
|
|
3
|
-
* Generates a unique cache key based on the node's parent and other parameters.
|
|
4
|
-
* @param {HTMLElement} node - The DOM node to generate the cache key for.
|
|
5
|
-
* @param {string} method - The animation method being applied.
|
|
6
|
-
* @param {string} [addClass] - Class to add during the animation.
|
|
7
|
-
* @param {string} [removeClass] - Class to remove during the animation.
|
|
8
|
-
* @returns {string} - The generated cache key.
|
|
9
|
-
*/
|
|
10
|
-
cacheKey(
|
|
11
|
-
node: HTMLElement,
|
|
12
|
-
method: string,
|
|
13
|
-
addClass?: string,
|
|
14
|
-
removeClass?: string,
|
|
15
|
-
): string;
|
|
16
|
-
/**
|
|
17
|
-
* Checks if a cached animation without a duration exists.
|
|
18
|
-
* @param {string} key - The cache key to check.
|
|
19
|
-
* @returns {boolean} - True if an invalid animation is cached, false otherwise.
|
|
20
|
-
*/
|
|
21
|
-
containsCachedAnimationWithoutDuration(key: string): boolean;
|
|
22
|
-
/**
|
|
23
|
-
* Clears the cache.
|
|
24
|
-
* @returns {void}
|
|
25
|
-
*/
|
|
26
|
-
flush(): void;
|
|
27
|
-
/**
|
|
28
|
-
* Gets the count of a specific cache entry.
|
|
29
|
-
* @param {string} key - The cache key to count.
|
|
30
|
-
* @returns {number} - The count of the cache entry.
|
|
31
|
-
*/
|
|
32
|
-
count(key: string): number;
|
|
33
|
-
/**
|
|
34
|
-
* Retrieves a value associated with a specific cache key.
|
|
35
|
-
* @param {string} key - The cache key to retrieve.
|
|
36
|
-
* @returns {any} - The value associated with the cache key.
|
|
37
|
-
*/
|
|
38
|
-
get(key: string): any;
|
|
39
|
-
/**
|
|
40
|
-
* Adds or updates a cache entry.
|
|
41
|
-
* @param {string} key - The cache key to add or update.
|
|
42
|
-
* @param {any} value - The value to store.
|
|
43
|
-
* @param {boolean} isValid - Whether the cache entry is valid.
|
|
44
|
-
*/
|
|
45
|
-
put(key: string, value: any, isValid: boolean): void;
|
|
46
|
-
};
|
|
47
|
-
export class AnimateCacheProvider {
|
|
48
|
-
$get(): {
|
|
49
|
-
/**
|
|
50
|
-
* Generates a unique cache key based on the node's parent and other parameters.
|
|
51
|
-
* @param {HTMLElement} node - The DOM node to generate the cache key for.
|
|
52
|
-
* @param {string} method - The animation method being applied.
|
|
53
|
-
* @param {string} [addClass] - Class to add during the animation.
|
|
54
|
-
* @param {string} [removeClass] - Class to remove during the animation.
|
|
55
|
-
* @returns {string} - The generated cache key.
|
|
56
|
-
*/
|
|
57
|
-
cacheKey(
|
|
58
|
-
node: HTMLElement,
|
|
59
|
-
method: string,
|
|
60
|
-
addClass?: string,
|
|
61
|
-
removeClass?: string,
|
|
62
|
-
): string;
|
|
63
|
-
/**
|
|
64
|
-
* Checks if a cached animation without a duration exists.
|
|
65
|
-
* @param {string} key - The cache key to check.
|
|
66
|
-
* @returns {boolean} - True if an invalid animation is cached, false otherwise.
|
|
67
|
-
*/
|
|
68
|
-
containsCachedAnimationWithoutDuration(key: string): boolean;
|
|
69
|
-
/**
|
|
70
|
-
* Clears the cache.
|
|
71
|
-
* @returns {void}
|
|
72
|
-
*/
|
|
73
|
-
flush(): void;
|
|
74
|
-
/**
|
|
75
|
-
* Gets the count of a specific cache entry.
|
|
76
|
-
* @param {string} key - The cache key to count.
|
|
77
|
-
* @returns {number} - The count of the cache entry.
|
|
78
|
-
*/
|
|
79
|
-
count(key: string): number;
|
|
80
|
-
/**
|
|
81
|
-
* Retrieves a value associated with a specific cache key.
|
|
82
|
-
* @param {string} key - The cache key to retrieve.
|
|
83
|
-
* @returns {any} - The value associated with the cache key.
|
|
84
|
-
*/
|
|
85
|
-
get(key: string): any;
|
|
86
|
-
/**
|
|
87
|
-
* Adds or updates a cache entry.
|
|
88
|
-
* @param {string} key - The cache key to add or update.
|
|
89
|
-
* @param {any} value - The value to store.
|
|
90
|
-
* @param {boolean} isValid - Whether the cache entry is valid.
|
|
91
|
-
*/
|
|
92
|
-
put(key: string, value: any, isValid: boolean): void;
|
|
93
|
-
};
|
|
94
|
-
}
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @typedef {import('./interface.ts').RafScheduler} RafScheduler
|
|
3
|
-
*/
|
|
4
|
-
/**
|
|
5
|
-
* Service provider that creates a requestAnimationFrame-based scheduler.
|
|
6
|
-
* @type {ng.ServiceProvider}
|
|
7
|
-
*/
|
|
8
|
-
export class RafSchedulerProvider {
|
|
9
|
-
/**
|
|
10
|
-
* Internal task queue, where each item is an array of functions to run.
|
|
11
|
-
* @type {Array<Array<() => void>>}
|
|
12
|
-
*/
|
|
13
|
-
_queue: Array<Array<() => void>>;
|
|
14
|
-
/**
|
|
15
|
-
* ID of the currently scheduled animation frame (if any).
|
|
16
|
-
* Used for cancellation and tracking.
|
|
17
|
-
* @type {number|null}
|
|
18
|
-
*/
|
|
19
|
-
_cancelFn: number | null;
|
|
20
|
-
/**
|
|
21
|
-
* Processes the next batch of tasks in the animation frame.
|
|
22
|
-
* Executes the first group of functions in the queue, then
|
|
23
|
-
* schedules the next frame if needed.
|
|
24
|
-
*/
|
|
25
|
-
_nextTick(): void;
|
|
26
|
-
/**
|
|
27
|
-
* Returns the scheduler function.
|
|
28
|
-
* This function allows tasks to be queued for execution on future animation frames.
|
|
29
|
-
* It also has helper methods and state attached.
|
|
30
|
-
*
|
|
31
|
-
* @returns {RafScheduler} The scheduler function with `queue` and `waitUntilQuiet`.
|
|
32
|
-
*/
|
|
33
|
-
$get(): RafScheduler;
|
|
34
|
-
}
|
|
35
|
-
export type RafScheduler = import("./interface.ts").RafScheduler;
|