@angular-wave/angular.ts 0.14.2 → 0.15.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 +28 -25
- package/@types/animations/animate-cache.d.ts +46 -2
- package/@types/animations/animate-children-directive.d.ts +4 -4
- package/@types/animations/animate-js.d.ts +1 -10
- package/@types/animations/animate.d.ts +6 -1
- package/@types/animations/interface.d.ts +17 -2
- package/@types/animations/queue/animate-queue.d.ts +0 -1
- package/@types/animations/raf-scheduler.d.ts +3 -3
- package/@types/animations/runner/animate-runner.d.ts +81 -57
- package/@types/animations/shared.d.ts +0 -16
- package/@types/core/compile/attributes.d.ts +13 -10
- package/@types/core/compile/compile.d.ts +2 -2
- package/@types/core/controller/controller.d.ts +1 -1
- package/@types/core/di/ng-module/ng-module.d.ts +8 -7
- package/@types/core/filter/filter.d.ts +1 -1
- package/@types/core/interpolate/interface.d.ts +1 -0
- package/@types/core/parse/ast/ast.d.ts +30 -39
- package/@types/core/parse/ast-type.d.ts +16 -16
- package/@types/core/parse/interface.d.ts +1 -1
- package/@types/core/parse/interpreter.d.ts +6 -29
- package/@types/core/parse/lexer/lexer.d.ts +19 -19
- package/@types/core/parse/parser/parser.d.ts +4 -9
- package/@types/core/scope/interface.d.ts +0 -6
- package/@types/core/scope/scope.d.ts +13 -13
- package/@types/directive/attrs/attrs.d.ts +2 -5
- package/@types/directive/class/class.d.ts +3 -3
- package/@types/directive/controller/controller.d.ts +2 -2
- package/@types/directive/form/form.d.ts +4 -4
- package/@types/directive/include/include.d.ts +4 -4
- package/@types/directive/messages/messages.d.ts +9 -8
- package/@types/directive/model/model.d.ts +5 -5
- package/@types/directive/ref/ref.d.ts +5 -8
- package/@types/directive/repeat/repeat.d.ts +2 -4
- package/@types/directive/script/script.d.ts +2 -2
- package/@types/directive/select/select.d.ts +7 -8
- package/@types/directive/validators/validators.d.ts +2 -2
- package/@types/injection-tokens.d.ts +3 -2
- package/@types/interface.d.ts +50 -22
- package/@types/namespace.d.ts +42 -6
- package/@types/router/common/trace.d.ts +5 -5
- package/@types/router/directives/state-directives.d.ts +26 -24
- package/@types/router/directives/view-directive.d.ts +27 -131
- package/@types/router/glob/glob.d.ts +2 -6
- package/@types/router/params/interface.d.ts +2 -2
- package/@types/router/params/param.d.ts +3 -3
- package/@types/router/router.d.ts +1 -1
- package/@types/router/scroll/interface.d.ts +3 -0
- package/@types/router/scroll/view-scroll.d.ts +8 -0
- package/@types/router/state/interface.d.ts +25 -126
- package/@types/router/state/state-builder.d.ts +4 -1
- package/@types/router/state/state-object.d.ts +2 -2
- package/@types/router/state/state-queue-manager.d.ts +4 -4
- package/@types/router/state/state-registry.d.ts +16 -11
- package/@types/router/state/state-service.d.ts +18 -12
- package/@types/router/template-factory.d.ts +2 -2
- package/@types/router/transition/interface.d.ts +9 -9
- package/@types/router/transition/reject-factory.d.ts +5 -5
- package/@types/router/transition/transition-hook.d.ts +22 -23
- package/@types/router/transition/transition-service.d.ts +12 -5
- package/@types/router/transition/transition.d.ts +17 -13
- package/@types/router/url/url-rule.d.ts +12 -9
- package/@types/router/url/url-service.d.ts +14 -10
- package/@types/router/view/view.d.ts +4 -4
- package/@types/services/anchor-scroll/anchor-scroll.d.ts +2 -17
- package/@types/services/anchor-scroll/interface.d.ts +15 -0
- package/@types/services/cookie/cookie.d.ts +6 -4
- package/@types/services/exception/interface.d.ts +3 -3
- package/@types/services/http/http.d.ts +8 -7
- package/@types/services/log/log.d.ts +7 -3
- package/@types/services/pubsub/pubsub.d.ts +18 -14
- package/@types/services/rest/rest.d.ts +12 -10
- package/@types/services/sce/sce.d.ts +9 -1
- package/@types/services/sse/sse.d.ts +1 -1
- package/@types/shared/node.d.ts +8 -0
- package/@types/shared/noderef.d.ts +11 -14
- package/@types/shared/strings.d.ts +18 -6
- package/@types/shared/utils.d.ts +111 -73
- package/@types/shared/validate.d.ts +49 -0
- package/dist/angular-ts.esm.js +2581 -2619
- package/dist/angular-ts.umd.js +2581 -2619
- package/dist/angular-ts.umd.min.js +2 -1
- package/dist/angular-ts.umd.min.js.gz +0 -0
- package/dist/angular-ts.umd.min.js.map +1 -0
- package/package.json +1 -1
- package/@types/router/view-scroll.d.ts +0 -12
package/@types/angular.d.ts
CHANGED
|
@@ -1,34 +1,35 @@
|
|
|
1
1
|
export class Angular {
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
2
|
+
/** @private @type {!Array<string|any>} */
|
|
3
|
+
private _bootsrappedModules;
|
|
4
|
+
/** @public @type {ng.PubSubService} */
|
|
5
|
+
public $eventBus: ng.PubSubService;
|
|
6
|
+
/** @public @type {ng.InjectorService} */
|
|
7
|
+
public $injector: ng.InjectorService;
|
|
5
8
|
/**
|
|
9
|
+
* @public
|
|
6
10
|
* @type {string} `version` from `package.json`
|
|
7
11
|
*/
|
|
8
|
-
version: string;
|
|
9
|
-
/** @type {!Array<string|any>} */
|
|
10
|
-
bootsrappedModules: Array<string | any>;
|
|
12
|
+
public version: string;
|
|
11
13
|
/**
|
|
12
14
|
* Gets the controller instance for a given element, if exists. Defaults to "ngControllerController"
|
|
13
15
|
*
|
|
14
|
-
* @type {
|
|
16
|
+
* @type {typeof getController}
|
|
15
17
|
*/
|
|
16
|
-
getController:
|
|
17
|
-
element: Element,
|
|
18
|
-
name: string | null,
|
|
19
|
-
) => ng.Scope | undefined;
|
|
18
|
+
getController: typeof getController;
|
|
20
19
|
/**
|
|
21
20
|
* Return instance of InjectorService attached to element
|
|
22
|
-
* @type {
|
|
21
|
+
* @type {typeof getInjector}
|
|
23
22
|
*/
|
|
24
|
-
getInjector:
|
|
23
|
+
getInjector: typeof getInjector;
|
|
25
24
|
/**
|
|
26
25
|
* Gets scope for a given element.
|
|
27
|
-
*
|
|
26
|
+
* @type {typeof getScope}
|
|
28
27
|
*/
|
|
29
|
-
getScope:
|
|
28
|
+
getScope: typeof getScope;
|
|
29
|
+
/** @type {typeof errorHandlingConfig} */
|
|
30
30
|
errorHandlingConfig: typeof errorHandlingConfig;
|
|
31
|
-
|
|
31
|
+
/** @type {ng.InjectionTokens} */
|
|
32
|
+
$t: ng.InjectionTokens;
|
|
32
33
|
/**
|
|
33
34
|
*
|
|
34
35
|
* The `angular.module` is a global place for creating, registering and retrieving AngularTS
|
|
@@ -130,16 +131,12 @@ export class Angular {
|
|
|
130
131
|
config?: import("./interface.ts").AngularBootstrapConfig,
|
|
131
132
|
): ng.InjectorService;
|
|
132
133
|
$rootScope: ng.Scope;
|
|
133
|
-
$injector: import("./interface.ts").InjectorService;
|
|
134
134
|
/**
|
|
135
135
|
* @param {any[]} modules
|
|
136
|
-
* @param {boolean
|
|
137
|
-
* @returns {
|
|
136
|
+
* @param {boolean} [strictDi]
|
|
137
|
+
* @returns {ng.InjectorService}
|
|
138
138
|
*/
|
|
139
|
-
injector(
|
|
140
|
-
modules: any[],
|
|
141
|
-
strictDi: boolean | null,
|
|
142
|
-
): import("./core/di/internal-injector.js").InjectorService;
|
|
139
|
+
injector(modules: any[], strictDi?: boolean): ng.InjectorService;
|
|
143
140
|
/**
|
|
144
141
|
* @param {Element|Document} element
|
|
145
142
|
*/
|
|
@@ -153,9 +150,15 @@ export class Angular {
|
|
|
153
150
|
* or defined on `$scope` injectable.
|
|
154
151
|
*
|
|
155
152
|
* @param {string} name
|
|
156
|
-
* @returns {
|
|
153
|
+
* @returns {Proxy<ng.Scope>|undefined}
|
|
157
154
|
*/
|
|
158
|
-
getScopeByName(name: string):
|
|
155
|
+
getScopeByName(name: string): ProxyConstructor | undefined;
|
|
159
156
|
}
|
|
157
|
+
export type ModuleRegistry = {
|
|
158
|
+
[x: string]: NgModule;
|
|
159
|
+
};
|
|
160
|
+
import { getController } from "./shared/dom.js";
|
|
161
|
+
import { getInjector } from "./shared/dom.js";
|
|
162
|
+
import { getScope } from "./shared/dom.js";
|
|
160
163
|
import { errorHandlingConfig } from "./shared/utils.js";
|
|
161
164
|
import { NgModule } from "./core/di/ng-module/ng-module.js";
|
|
@@ -44,7 +44,51 @@ export function animateCache(): {
|
|
|
44
44
|
*/
|
|
45
45
|
put(key: string, value: any, isValid: boolean): void;
|
|
46
46
|
};
|
|
47
|
-
export function AnimateCacheProvider(): void;
|
|
48
47
|
export class AnimateCacheProvider {
|
|
49
|
-
$get:
|
|
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
|
+
};
|
|
50
94
|
}
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @param {
|
|
3
|
-
* @returns {
|
|
2
|
+
* @param {ng.InterpolateService} $interpolate
|
|
3
|
+
* @returns {ng.Directive}
|
|
4
4
|
*/
|
|
5
5
|
export function $$AnimateChildrenDirective(
|
|
6
|
-
$interpolate:
|
|
7
|
-
):
|
|
6
|
+
$interpolate: ng.InterpolateService,
|
|
7
|
+
): ng.Directive;
|
|
8
8
|
export namespace $$AnimateChildrenDirective {
|
|
9
9
|
let $inject: string[];
|
|
10
10
|
}
|
|
@@ -3,16 +3,7 @@ export class AnimateJsProvider {
|
|
|
3
3
|
constructor($animateProvider: any);
|
|
4
4
|
$get: (
|
|
5
5
|
| string
|
|
6
|
-
| (($injector: ng.InjectorService) => (
|
|
7
|
-
element: any,
|
|
8
|
-
event: any,
|
|
9
|
-
classes: any,
|
|
10
|
-
options: any,
|
|
11
|
-
) => {
|
|
12
|
-
$$willAnimate: boolean;
|
|
13
|
-
end(): any;
|
|
14
|
-
start(): any;
|
|
15
|
-
})
|
|
6
|
+
| (($injector: ng.InjectorService) => import("./interface.ts").AnimateJsFn)
|
|
16
7
|
)[];
|
|
17
8
|
}
|
|
18
9
|
export namespace AnimateJsProvider {
|
|
@@ -93,7 +93,12 @@ export class AnimateProvider {
|
|
|
93
93
|
* @return {RegExp} The current CSS className expression value. If null then there is no expression value
|
|
94
94
|
*/
|
|
95
95
|
classNameFilter: (expression?: RegExp | undefined, ...args: any[]) => RegExp;
|
|
96
|
-
$get:
|
|
96
|
+
$get: (
|
|
97
|
+
| string
|
|
98
|
+
| ((
|
|
99
|
+
$$animateQueue: import("./queue/interface.ts").AnimateQueueService,
|
|
100
|
+
) => ng.AnimateService)
|
|
101
|
+
)[];
|
|
97
102
|
}
|
|
98
103
|
export namespace AnimateProvider {
|
|
99
104
|
let $inject: string[];
|
|
@@ -9,13 +9,13 @@ export type RafScheduler = {
|
|
|
9
9
|
/**
|
|
10
10
|
* Internal queue of scheduled task arrays.
|
|
11
11
|
*/
|
|
12
|
-
|
|
12
|
+
_queue: Array<Array<() => void>>;
|
|
13
13
|
/**
|
|
14
14
|
* Waits until the animation frame is quiet before running the provided function.
|
|
15
15
|
* Cancels any previous animation frame requests.
|
|
16
16
|
* @param fn - The function to run when the frame is quiet.
|
|
17
17
|
*/
|
|
18
|
-
|
|
18
|
+
_waitUntilQuiet(fn: () => void): void;
|
|
19
19
|
};
|
|
20
20
|
export interface AnimationHost {
|
|
21
21
|
/** Pause animation. */
|
|
@@ -98,4 +98,19 @@ export interface AnimationOptions {
|
|
|
98
98
|
removeClass?: string;
|
|
99
99
|
to?: Record<string, string | number>;
|
|
100
100
|
tempClasses: string | string[];
|
|
101
|
+
/** Optional DOM operation callback executed before animation */
|
|
102
|
+
domOperation?: () => void;
|
|
103
|
+
}
|
|
104
|
+
export interface AnimateJsRunner {
|
|
105
|
+
$$willAnimate: true;
|
|
106
|
+
start: () => AnimateRunner;
|
|
107
|
+
end: () => AnimateRunner;
|
|
108
|
+
}
|
|
109
|
+
export interface AnimateJsFn {
|
|
110
|
+
(
|
|
111
|
+
element: HTMLElement,
|
|
112
|
+
event: string,
|
|
113
|
+
classes?: string | null,
|
|
114
|
+
options?: AnimationOptions,
|
|
115
|
+
): AnimateJsRunner;
|
|
101
116
|
}
|
|
@@ -10,19 +10,19 @@ export class RafSchedulerProvider {
|
|
|
10
10
|
* Internal task queue, where each item is an array of functions to run.
|
|
11
11
|
* @type {Array<Array<() => void>>}
|
|
12
12
|
*/
|
|
13
|
-
|
|
13
|
+
_queue: Array<Array<() => void>>;
|
|
14
14
|
/**
|
|
15
15
|
* ID of the currently scheduled animation frame (if any).
|
|
16
16
|
* Used for cancellation and tracking.
|
|
17
17
|
* @type {number|null}
|
|
18
18
|
*/
|
|
19
|
-
|
|
19
|
+
_cancelFn: number | null;
|
|
20
20
|
/**
|
|
21
21
|
* Processes the next batch of tasks in the animation frame.
|
|
22
22
|
* Executes the first group of functions in the queue, then
|
|
23
23
|
* schedules the next frame if needed.
|
|
24
24
|
*/
|
|
25
|
-
|
|
25
|
+
_nextTick(): void;
|
|
26
26
|
/**
|
|
27
27
|
* Returns the scheduler function.
|
|
28
28
|
* This function allows tasks to be queued for execution on future animation frames.
|
|
@@ -1,99 +1,123 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* Schedule a callback to run on the next animation frame.
|
|
3
|
-
* Multiple calls within the same frame are batched together.
|
|
4
|
-
*
|
|
5
|
-
* @param {VoidFunction} fn - The callback to execute.
|
|
6
|
-
*/
|
|
7
|
-
export function schedule(fn: VoidFunction): void;
|
|
8
|
-
/**
|
|
9
|
-
* Represents an asynchronous animation operation.
|
|
10
|
-
* Provides both callback-based and promise-based completion APIs.
|
|
11
|
-
*/
|
|
12
1
|
export class AnimateRunner {
|
|
13
2
|
/**
|
|
14
|
-
*
|
|
15
|
-
* Each
|
|
3
|
+
* Executes a list of runners sequentially.
|
|
4
|
+
* Each must complete before the next starts.
|
|
16
5
|
*
|
|
17
|
-
* @param {AnimateRunner[]} runners
|
|
18
|
-
* @param {(ok: boolean) => void} callback
|
|
6
|
+
* @param {AnimateRunner[]} runners
|
|
7
|
+
* @param {(ok: boolean) => void} callback
|
|
19
8
|
*/
|
|
20
|
-
static
|
|
9
|
+
static _chain(
|
|
10
|
+
runners: AnimateRunner[],
|
|
11
|
+
callback: (ok: boolean) => void,
|
|
12
|
+
): void;
|
|
21
13
|
/**
|
|
22
|
-
* Waits
|
|
14
|
+
* Waits until all runners complete.
|
|
23
15
|
*
|
|
24
|
-
* @param {AnimateRunner[]} runners
|
|
25
|
-
* @param {(ok: boolean) => void} callback
|
|
16
|
+
* @param {AnimateRunner[]} runners
|
|
17
|
+
* @param {(ok: boolean) => void} callback
|
|
26
18
|
*/
|
|
27
|
-
static
|
|
19
|
+
static _all(runners: AnimateRunner[], callback: (ok: boolean) => void): void;
|
|
28
20
|
/**
|
|
29
|
-
* @param {
|
|
21
|
+
* @param {AnimationHost} [host] - Optional animation host callbacks.
|
|
22
|
+
* @param {boolean} [jsAnimation=false]
|
|
23
|
+
* If true: use RAF/timer ticks.
|
|
24
|
+
* If false: use batched CSS animation ticks.
|
|
30
25
|
*/
|
|
31
|
-
constructor(host?:
|
|
32
|
-
/** @type {
|
|
33
|
-
|
|
26
|
+
constructor(host?: AnimationHost, jsAnimation?: boolean);
|
|
27
|
+
/** @type {AnimationHost} */
|
|
28
|
+
_host: AnimationHost;
|
|
34
29
|
/** @type {Array<(ok: boolean) => void>} */
|
|
35
30
|
_doneCallbacks: Array<(ok: boolean) => void>;
|
|
36
31
|
/** @type {RunnerState} */
|
|
37
32
|
_state: RunnerState;
|
|
38
|
-
/** @type {Promise<void>|null} */
|
|
39
|
-
_promise: Promise<void> | null;
|
|
40
|
-
/** @type {(fn: VoidFunction) => void} */
|
|
41
|
-
_schedule: (fn: VoidFunction) => void;
|
|
42
33
|
/**
|
|
43
|
-
*
|
|
44
|
-
* @
|
|
34
|
+
* Deferred promise used by .then/.catch/.finally.
|
|
35
|
+
* @type {Promise<void>|null}
|
|
36
|
+
* @private
|
|
37
|
+
*/
|
|
38
|
+
private _promise;
|
|
39
|
+
_tick: (fn: any) => void;
|
|
40
|
+
/**
|
|
41
|
+
* Sets or replaces the current host.
|
|
42
|
+
* @param {AnimationHost} host
|
|
45
43
|
*/
|
|
46
|
-
setHost(host:
|
|
44
|
+
setHost(host: AnimationHost): void;
|
|
47
45
|
/**
|
|
48
|
-
*
|
|
49
|
-
*
|
|
46
|
+
* Register a completion callback.
|
|
47
|
+
* Fires immediately if animation is already done.
|
|
50
48
|
*
|
|
51
|
-
* @param {(ok: boolean) => void} fn
|
|
49
|
+
* @param {(ok: boolean) => void} fn
|
|
52
50
|
*/
|
|
53
51
|
done(fn: (ok: boolean) => void): void;
|
|
54
52
|
/**
|
|
55
|
-
*
|
|
56
|
-
* @param {...any} args
|
|
53
|
+
* Reports progress to host.
|
|
54
|
+
* @param {...any} args
|
|
57
55
|
*/
|
|
58
56
|
progress(...args: any[]): void;
|
|
59
|
-
/**
|
|
57
|
+
/** Pause underlying animation (if supported). */
|
|
60
58
|
pause(): void;
|
|
61
|
-
/**
|
|
59
|
+
/** Resume underlying animation (if supported). */
|
|
62
60
|
resume(): void;
|
|
63
|
-
/**
|
|
61
|
+
/**
|
|
62
|
+
* Ends the animation successfully.
|
|
63
|
+
* Equivalent to user choosing to finish it immediately.
|
|
64
|
+
*/
|
|
64
65
|
end(): void;
|
|
65
|
-
/** Cancels the animation. */
|
|
66
|
-
cancel(): void;
|
|
67
66
|
/**
|
|
68
|
-
*
|
|
69
|
-
* @param {boolean} [status=true] - True if successful, false if canceled.
|
|
67
|
+
* Cancels the animation.
|
|
70
68
|
*/
|
|
71
|
-
|
|
69
|
+
cancel(): void;
|
|
72
70
|
/**
|
|
73
|
-
*
|
|
74
|
-
*
|
|
71
|
+
* Schedule animation completion.
|
|
72
|
+
*
|
|
73
|
+
* @param {boolean} [status=true]
|
|
75
74
|
*/
|
|
76
|
-
|
|
77
|
-
/** @inheritdoc */
|
|
78
|
-
then(onFulfilled: any, onRejected: any): Promise<void>;
|
|
79
|
-
/** @inheritdoc */
|
|
80
|
-
catch(onRejected: any): Promise<void>;
|
|
81
|
-
/** @inheritdoc */
|
|
82
|
-
finally(onFinally: any): Promise<void>;
|
|
75
|
+
complete(status?: boolean): void;
|
|
83
76
|
/**
|
|
84
77
|
* Completes the animation and invokes all done callbacks.
|
|
78
|
+
* @param {boolean} status
|
|
85
79
|
* @private
|
|
86
|
-
* @param {boolean} status - True if completed successfully, false if canceled.
|
|
87
80
|
*/
|
|
88
81
|
private _finish;
|
|
82
|
+
/**
|
|
83
|
+
* Returns an internal promise that resolves on success,
|
|
84
|
+
* and rejects on cancel.
|
|
85
|
+
*
|
|
86
|
+
* @returns {Promise<void>}
|
|
87
|
+
*/
|
|
88
|
+
getPromise(): Promise<void>;
|
|
89
|
+
/**
|
|
90
|
+
* Standard "thenable" interface
|
|
91
|
+
* @template T
|
|
92
|
+
* @param {(value: void) => T|Promise<T>} onFulfilled
|
|
93
|
+
* @param {(reason: any) => any} [onRejected]
|
|
94
|
+
* @returns {Promise<T>}
|
|
95
|
+
*/
|
|
96
|
+
then<T>(
|
|
97
|
+
onFulfilled: (value: void) => T | Promise<T>,
|
|
98
|
+
onRejected?: (reason: any) => any,
|
|
99
|
+
): Promise<T>;
|
|
100
|
+
/**
|
|
101
|
+
* Standard promise catcher.
|
|
102
|
+
* @param {(reason: any) => any} onRejected
|
|
103
|
+
* @returns {Promise<void>}
|
|
104
|
+
*/
|
|
105
|
+
catch(onRejected: (reason: any) => any): Promise<void>;
|
|
106
|
+
/**
|
|
107
|
+
* Standard promise finally.
|
|
108
|
+
* @param {() => any} onFinally
|
|
109
|
+
* @returns {Promise<void>}
|
|
110
|
+
*/
|
|
111
|
+
finally(onFinally: () => any): Promise<void>;
|
|
89
112
|
}
|
|
113
|
+
export type AnimationHost = import("../interface.ts").AnimationHost;
|
|
90
114
|
/**
|
|
91
115
|
* Internal runner states.
|
|
92
116
|
*/
|
|
93
117
|
type RunnerState = number;
|
|
94
118
|
declare namespace RunnerState {
|
|
95
|
-
let
|
|
96
|
-
let
|
|
97
|
-
let
|
|
119
|
+
let _INITIAL: number;
|
|
120
|
+
let _PENDING: number;
|
|
121
|
+
let _DONE: number;
|
|
98
122
|
}
|
|
99
123
|
export {};
|
|
@@ -83,20 +83,4 @@ export const ACTIVE_CLASS_SUFFIX: "-active";
|
|
|
83
83
|
export const PREPARE_CLASS_SUFFIX: "-prepare";
|
|
84
84
|
export const NG_ANIMATE_CLASSNAME: "ng-animate";
|
|
85
85
|
export const NG_ANIMATE_CHILDREN_DATA: "$$ngAnimateChildren";
|
|
86
|
-
export let CSS_PREFIX: string;
|
|
87
|
-
export let TRANSITION_PROP: any;
|
|
88
|
-
export let TRANSITIONEND_EVENT: any;
|
|
89
|
-
export let ANIMATION_PROP: any;
|
|
90
|
-
export let ANIMATIONEND_EVENT: any;
|
|
91
|
-
export const DURATION_KEY: "Duration";
|
|
92
|
-
export const PROPERTY_KEY: number;
|
|
93
|
-
export const DELAY_KEY: "Delay";
|
|
94
|
-
export const TIMING_KEY: "TimingFunction";
|
|
95
|
-
export const ANIMATION_ITERATION_COUNT_KEY: "IterationCount";
|
|
96
|
-
export const ANIMATION_PLAYSTATE_KEY: "PlayState";
|
|
97
|
-
export const SAFE_FAST_FORWARD_DURATION_VALUE: 9999;
|
|
98
|
-
export const ANIMATION_DELAY_PROP: string;
|
|
99
|
-
export const ANIMATION_DURATION_PROP: string;
|
|
100
|
-
export const TRANSITION_DELAY_PROP: string;
|
|
101
|
-
export const TRANSITION_DURATION_PROP: string;
|
|
102
86
|
export const ngMinErr: (arg0: string, ...arg1: any[]) => Error;
|
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
export class Attributes {
|
|
2
2
|
static $nonscope: boolean;
|
|
3
3
|
/**
|
|
4
|
-
* @param {ng.RootScopeService} $rootScope
|
|
5
4
|
* @param {ng.AnimateService} $animate
|
|
6
5
|
* @param {ng.ExceptionHandlerService} $exceptionHandler
|
|
7
6
|
* @param {*} $sce
|
|
@@ -9,17 +8,15 @@ export class Attributes {
|
|
|
9
8
|
* @param {Object} [attributesToCopy]
|
|
10
9
|
*/
|
|
11
10
|
constructor(
|
|
12
|
-
$rootScope: ng.RootScopeService,
|
|
13
11
|
$animate: ng.AnimateService,
|
|
14
12
|
$exceptionHandler: ng.ExceptionHandlerService,
|
|
15
13
|
$sce: any,
|
|
16
14
|
nodeRef?: import("../../shared/noderef.js").NodeRef,
|
|
17
15
|
attributesToCopy?: any,
|
|
18
16
|
);
|
|
19
|
-
$
|
|
20
|
-
$
|
|
21
|
-
$
|
|
22
|
-
$sce: any;
|
|
17
|
+
_$animate: import("../../animations/interface.ts").AnimateService;
|
|
18
|
+
_$exceptionHandler: import("../../services/exception/interface.ts").ExceptionHandler;
|
|
19
|
+
_$sce: any;
|
|
23
20
|
$attr: {};
|
|
24
21
|
/** @type {import("../../shared/noderef.js").NodeRef} */
|
|
25
22
|
$nodeRef: import("../../shared/noderef.js").NodeRef;
|
|
@@ -62,14 +59,14 @@ export class Attributes {
|
|
|
62
59
|
* Set a normalized attribute on the element in a way such that all directives
|
|
63
60
|
* can share the attribute. This function properly handles boolean attributes.
|
|
64
61
|
* @param {string} key Normalized key. (ie ngAttribute)
|
|
65
|
-
* @param {string|boolean} value The value to set. If `null` attribute will be deleted.
|
|
62
|
+
* @param {string|boolean|null} value The value to set. If `null` attribute will be deleted.
|
|
66
63
|
* @param {boolean=} writeAttr If false, does not write the value to DOM element attribute.
|
|
67
64
|
* Defaults to true.
|
|
68
65
|
* @param {string=} attrName Optional none normalized name. Defaults to key.
|
|
69
66
|
*/
|
|
70
67
|
$set(
|
|
71
68
|
key: string,
|
|
72
|
-
value: string | boolean,
|
|
69
|
+
value: string | boolean | null,
|
|
73
70
|
writeAttr?: boolean | undefined,
|
|
74
71
|
attrName?: string | undefined,
|
|
75
72
|
): void;
|
|
@@ -90,7 +87,13 @@ export class Attributes {
|
|
|
90
87
|
$observe(key: string, fn: any): () => any;
|
|
91
88
|
$$observers: any;
|
|
92
89
|
setSpecialAttr(element: any, attrName: any, value: any): void;
|
|
93
|
-
|
|
94
|
-
|
|
90
|
+
/**
|
|
91
|
+
*
|
|
92
|
+
* @param {unknown} value
|
|
93
|
+
* @param {string} invokeType
|
|
94
|
+
* @returns {unknown}
|
|
95
|
+
*/
|
|
96
|
+
sanitizeSrcset(value: unknown, invokeType: string): unknown;
|
|
97
|
+
srcset: unknown;
|
|
95
98
|
}
|
|
96
99
|
import { directiveNormalize } from "../../shared/utils.js";
|
|
@@ -113,7 +113,7 @@ export class CompileProvider {
|
|
|
113
113
|
*
|
|
114
114
|
* @param {string} elementName The element name or '*' to match any element.
|
|
115
115
|
* @param {string} propertyName The DOM property name.
|
|
116
|
-
* @param {string} ctx The {@link $sce} security context in which this value is safe for use, e.g. `$sce.URL`
|
|
116
|
+
* @param {string} ctx The {@link _$sce} security context in which this value is safe for use, e.g. `$sce.URL`
|
|
117
117
|
* @returns {object} `this` for chaining
|
|
118
118
|
*/
|
|
119
119
|
addPropertySecurityContext: (
|
|
@@ -125,7 +125,7 @@ export class CompileProvider {
|
|
|
125
125
|
| string
|
|
126
126
|
| ((
|
|
127
127
|
$injector: ng.InjectorService,
|
|
128
|
-
$interpolate:
|
|
128
|
+
$interpolate: ng.InterpolateService,
|
|
129
129
|
$exceptionHandler: ng.ExceptionHandlerService,
|
|
130
130
|
$templateRequest: ng.TemplateRequestService,
|
|
131
131
|
$parse: ng.ParseService,
|
|
@@ -16,26 +16,27 @@ export class NgModule {
|
|
|
16
16
|
configFn?: ng.Injectable<any>,
|
|
17
17
|
);
|
|
18
18
|
/**
|
|
19
|
+
* @public
|
|
19
20
|
* Name of the current module.
|
|
20
21
|
* @type {string}
|
|
21
22
|
*/
|
|
22
|
-
name: string;
|
|
23
|
+
public name: string;
|
|
23
24
|
/**
|
|
24
25
|
* Array of module names that this module depends on.
|
|
25
26
|
* @type {string[]}
|
|
26
27
|
*/
|
|
27
|
-
|
|
28
|
+
_requires: string[];
|
|
28
29
|
/**
|
|
29
30
|
* Holds a collection of tasks, required to instantiate an angular component
|
|
30
31
|
* @type {!Array<Array<*>>}
|
|
31
32
|
*/
|
|
32
|
-
|
|
33
|
+
_invokeQueue: Array<Array<any>>;
|
|
33
34
|
/** @type {!Array<Array<*>>} */
|
|
34
|
-
|
|
35
|
+
_configBlocks: Array<Array<any>>;
|
|
35
36
|
/** @type {!Array.<ng.Injectable<any>>} */
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
37
|
+
_runBlocks: Array<ng.Injectable<any>>;
|
|
38
|
+
_services: any[];
|
|
39
|
+
_restDefinitions: any[];
|
|
39
40
|
/**
|
|
40
41
|
* @param {string} name
|
|
41
42
|
* @param {any} object - Allows undefined
|
|
@@ -10,7 +10,7 @@ export class FilterProvider {
|
|
|
10
10
|
* @param {ng.ProvideService} $provide
|
|
11
11
|
*/
|
|
12
12
|
constructor($provide: ng.ProvideService);
|
|
13
|
-
$provide: import("../../interface.ts").Provider;
|
|
13
|
+
_$provide: import("../../interface.ts").Provider;
|
|
14
14
|
/**
|
|
15
15
|
* Register a filter a config phase;
|
|
16
16
|
* @param {string} name
|