@angular-wave/angular.ts 0.0.70 → 0.0.72
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/dist/angular-ts.esm.js +2 -2
- package/dist/angular-ts.umd.js +2 -2
- package/package.json +1 -1
- package/src/animations/animate-children-directive.md +1 -1
- package/src/animations/animate-css-driver.js +1 -1
- package/src/animations/animate-css.html +2 -2
- package/src/animations/animate-js.html +1 -1
- package/src/animations/animate-queue.js +4 -4
- package/src/animations/animate-swap.md +1 -1
- package/src/{core/animate → animations}/animate.html +1 -1
- package/src/{core/animate → animations}/animate.js +4 -120
- package/src/animations/raf-scheduler.js +7 -3
- package/src/animations/raf-scheduler.spec.js +3 -3
- package/src/animations/shared.js +16 -7
- package/src/binding.spec.js +4 -3
- package/src/core/compile/attributes.js +326 -0
- package/src/core/compile/compile.js +76 -433
- package/src/core/compile/compile.spec.js +45 -28
- package/src/core/di/injector.md +1 -1
- package/src/core/di/ng-module.js +46 -3
- package/src/core/interpolate/interpolate.js +1 -12
- package/src/core/location/location.js +26 -4
- package/src/core/parser/parse.js +50 -47
- package/src/core/prop.spec.js +15 -11
- package/src/core/scope/scope.js +4 -7
- package/src/directive/bind/bind.spec.js +80 -44
- package/src/directive/class/class.js +43 -14
- package/src/directive/class/class.spec.js +7 -4
- package/src/directive/form/form.js +3 -1
- package/src/directive/form/form.spec.js +3 -4
- package/src/directive/if/if-animate-css.html +5 -7
- package/src/directive/if/if.js +1 -1
- package/src/directive/if/if.spec.js +3 -2
- package/src/directive/include/include.js +1 -1
- package/src/directive/input/input.spec.js +6 -4
- package/src/directive/list/list.spec.js +4 -2
- package/src/directive/messages/messages.js +5 -4
- package/src/directive/messages/messages.spec.js +4 -4
- package/src/directive/model/model.spec.js +4 -3
- package/src/directive/model-options/model-options.spec.js +3 -1
- package/src/directive/repeat/repeat.md +1 -1
- package/src/directive/repeat/repeat.spec.js +1 -1
- package/src/directive/select/select.spec.js +3 -3
- package/src/directive/show-hide/show-hide.js +36 -6
- package/src/directive/switch/switch.spec.js +5 -2
- package/src/directive/validators/validators.spec.js +6 -4
- package/src/loader.js +1 -2
- package/src/public.js +22 -10
- package/src/router/state/state-object.js +4 -9
- package/src/router/url/url-matcher.js +1 -1
- package/src/router/url/url-rule.js +5 -1
- package/src/router/url/url-service.js +1 -1
- package/src/services/anchor-scroll.html +1 -1
- package/src/shared/jqlite/jqlite.js +14 -2
- package/src/types.js +1 -1
- package/types/animations/animate-css-driver.d.ts +1 -1
- package/types/animations/animate-queue.d.ts +1 -2
- package/types/{core/animate → animations}/animate.d.ts +2 -12
- package/types/animations/raf-scheduler.d.ts +7 -2
- package/types/animations/shared.d.ts +11 -6
- package/types/core/compile/attributes.d.ts +101 -0
- package/types/core/compile/compile.d.ts +10 -67
- package/types/core/di/ng-module.d.ts +55 -12
- package/types/core/interpolate/interpolate.d.ts +1 -12
- package/types/core/location/location.d.ts +12 -2
- package/types/core/parser/parse.d.ts +10 -10
- package/types/core/scope/scope.d.ts +20 -20
- package/types/directive/form/form.d.ts +2 -11
- package/types/router/state/state-object.d.ts +0 -2
- package/types/router/url/url-matcher.d.ts +2 -2
- package/types/router/url/url-rule.d.ts +2 -1
- package/types/shared/jqlite/jqlite.d.ts +10 -6
- package/types/types.d.ts +1 -1
- package/src/animations/module.js +0 -25
- package/src/core/animate/animate-css.js +0 -88
- package/src/core/animate/anomate.md +0 -13
- package/types/animations/module.d.ts +0 -1
- package/types/core/animate/animate-css.d.ts +0 -19
- /package/src/{core/animate → animations}/animate-runner.js +0 -0
- /package/src/{core/animate → animations}/animate.spec.js +0 -0
- /package/src/{core/animate → animations}/helpers.js +0 -0
- /package/types/{core/animate → animations}/animate-runner.d.ts +0 -0
- /package/types/{core/animate → animations}/helpers.d.ts +0 -0
|
@@ -1,9 +1,4 @@
|
|
|
1
1
|
/**
|
|
2
|
-
* @ngdoc provider
|
|
3
|
-
* @name $interpolateProvider
|
|
4
|
-
*
|
|
5
|
-
*
|
|
6
|
-
* @description
|
|
7
2
|
*
|
|
8
3
|
* Used for configuring the interpolation markup. Defaults to `{{` and `}}`.
|
|
9
4
|
*
|
|
@@ -18,9 +13,6 @@
|
|
|
18
13
|
export function $InterpolateProvider(): void;
|
|
19
14
|
export class $InterpolateProvider {
|
|
20
15
|
/**
|
|
21
|
-
* @ngdoc method
|
|
22
|
-
* @name $interpolateProvider#startSymbol
|
|
23
|
-
* @description
|
|
24
16
|
* Symbol to denote start of expression in the interpolated string. Defaults to `{{`.
|
|
25
17
|
*
|
|
26
18
|
* @param {string=} value new value to set the starting symbol to.
|
|
@@ -28,16 +20,13 @@ export class $InterpolateProvider {
|
|
|
28
20
|
*/
|
|
29
21
|
startSymbol: (value?: string | undefined) => string | (Window & typeof globalThis);
|
|
30
22
|
/**
|
|
31
|
-
* @ngdoc method
|
|
32
|
-
* @name $interpolateProvider#endSymbol
|
|
33
|
-
* @description
|
|
34
23
|
* Symbol to denote the end of expression in the interpolated string. Defaults to `}}`.
|
|
35
24
|
*
|
|
36
25
|
* @param {string=} value new value to set the ending symbol to.
|
|
37
26
|
* @returns {string|self} Returns the symbol when used as getter and self if used as setter.
|
|
38
27
|
*/
|
|
39
28
|
endSymbol: (value?: string | undefined) => string | (Window & typeof globalThis);
|
|
40
|
-
$get: (string | (($parse:
|
|
29
|
+
$get: (string | (($parse: import("../parser/parse").ParseService, $exceptionHandler: import("../exception-handler").ErrorHandler, $sce: any) => {
|
|
41
30
|
(text: string, mustHaveExpression?: boolean | undefined, trustedContext?: string | undefined, allOrNothing?: boolean | undefined): (arg0: context) => any;
|
|
42
31
|
/**
|
|
43
32
|
* @ngdoc method
|
|
@@ -223,6 +223,13 @@ export class Location {
|
|
|
223
223
|
*/
|
|
224
224
|
state(state: any, ...args: any[]): any;
|
|
225
225
|
$$state: any;
|
|
226
|
+
/**
|
|
227
|
+
* @param {string} _url
|
|
228
|
+
* @param {string} _url2
|
|
229
|
+
* @returns {boolean}
|
|
230
|
+
*/
|
|
231
|
+
$$parseLinkUrl(_url: string, _url2: string): boolean;
|
|
232
|
+
$$parse(_url: any): void;
|
|
226
233
|
}
|
|
227
234
|
/**
|
|
228
235
|
* This object is exposed as $location service when HTML5 mode is enabled and supported
|
|
@@ -241,7 +248,6 @@ export class LocationHtml5Url extends Location {
|
|
|
241
248
|
*/
|
|
242
249
|
$$parse(url: string): void;
|
|
243
250
|
$$normalizeUrl(url: any): string;
|
|
244
|
-
$$parseLinkUrl: (url: any, relHref: any) => boolean;
|
|
245
251
|
}
|
|
246
252
|
/**
|
|
247
253
|
* LocationHashbangUrl represents URL
|
|
@@ -264,7 +270,11 @@ export class LocationHashbangUrl extends Location {
|
|
|
264
270
|
*/
|
|
265
271
|
$$parse(url: string): void;
|
|
266
272
|
$$normalizeUrl(url: any): any;
|
|
267
|
-
|
|
273
|
+
/**
|
|
274
|
+
* @param {string} url
|
|
275
|
+
* @returns {boolean}
|
|
276
|
+
*/
|
|
277
|
+
$$parseLinkUrl(url: string): boolean;
|
|
268
278
|
}
|
|
269
279
|
export type DefaultPorts = {
|
|
270
280
|
http: number;
|
|
@@ -2,11 +2,11 @@
|
|
|
2
2
|
* @typedef {Object} CompiledExpressionProps
|
|
3
3
|
* @property {boolean} literal - Indicates if the expression is a literal.
|
|
4
4
|
* @property {boolean} constant - Indicates if the expression is constant.
|
|
5
|
-
* @property {boolean} isPure
|
|
5
|
+
* @property {boolean} [isPure]
|
|
6
6
|
* @property {boolean} oneTime
|
|
7
|
-
* @property {function(import('../scope/scope').Scope, import('../scope/scope').WatchListener, boolean, CompiledExpression, string | ((scope: import('../scope/scope').Scope) => any)): any} $$watchDelegate
|
|
8
|
-
* @property {any[]} inputs
|
|
9
|
-
* @property {function(any, any): any} assign - Assigns a value to a context. If value is not provided,
|
|
7
|
+
* @property {function(import('../scope/scope').Scope, import('../scope/scope').WatchListener, boolean, CompiledExpression, string | ((scope: import('../scope/scope').Scope) => any) | CompiledExpression): any} [$$watchDelegate]
|
|
8
|
+
* @property {any[]|Function} inputs
|
|
9
|
+
* @property {function(any, any): any} [assign] - Assigns a value to a context. If value is not provided,
|
|
10
10
|
*/
|
|
11
11
|
/**
|
|
12
12
|
* @typedef {Function} CompiledExpressionFunction
|
|
@@ -22,7 +22,7 @@
|
|
|
22
22
|
* @typedef {CompiledExpressionFunction & CompiledExpressionProps} CompiledExpression
|
|
23
23
|
*/
|
|
24
24
|
/**
|
|
25
|
-
* @typedef {function(string|function(import('../scope/scope').Scope):any, function(any, import('../scope/scope').Scope, any):any=, boolean=): CompiledExpression} ParseService
|
|
25
|
+
* @typedef {function(CompiledExpression|string|function(import('../scope/scope').Scope):any, function(any, import('../scope/scope').Scope, any):any=, boolean=): CompiledExpression} ParseService
|
|
26
26
|
*/
|
|
27
27
|
export function $ParseProvider(): void;
|
|
28
28
|
export class $ParseProvider {
|
|
@@ -59,15 +59,15 @@ export type CompiledExpressionProps = {
|
|
|
59
59
|
* - Indicates if the expression is constant.
|
|
60
60
|
*/
|
|
61
61
|
constant: boolean;
|
|
62
|
-
isPure
|
|
62
|
+
isPure?: boolean;
|
|
63
63
|
oneTime: boolean;
|
|
64
|
-
$$watchDelegate
|
|
65
|
-
inputs: any[];
|
|
64
|
+
$$watchDelegate?: (arg0: import("../scope/scope").Scope, arg1: import("../scope/scope").WatchListener, arg2: boolean, arg3: CompiledExpression, arg4: string | ((scope: import("../scope/scope").Scope) => any) | CompiledExpression) => any;
|
|
65
|
+
inputs: any[] | Function;
|
|
66
66
|
/**
|
|
67
67
|
* - Assigns a value to a context. If value is not provided,
|
|
68
68
|
*/
|
|
69
|
-
assign
|
|
69
|
+
assign?: (arg0: any, arg1: any) => any;
|
|
70
70
|
};
|
|
71
71
|
export type CompiledExpressionFunction = Function;
|
|
72
72
|
export type CompiledExpression = CompiledExpressionFunction & CompiledExpressionProps;
|
|
73
|
-
export type ParseService = (arg0: string | ((arg0: import("../scope/scope").Scope) => any), arg1: ((arg0: any, arg1: import("../scope/scope").Scope, arg2: any) => any) | undefined, arg2: boolean | undefined) => CompiledExpression;
|
|
73
|
+
export type ParseService = (arg0: CompiledExpression | string | ((arg0: import("../scope/scope").Scope) => any), arg1: ((arg0: any, arg1: import("../scope/scope").Scope, arg2: any) => any) | undefined, arg2: boolean | undefined) => CompiledExpression;
|
|
@@ -278,7 +278,7 @@ export class Scope {
|
|
|
278
278
|
*
|
|
279
279
|
*
|
|
280
280
|
*
|
|
281
|
-
* @param {string | ((scope: Scope) => any)} watchExp Expression that is evaluated on each
|
|
281
|
+
* @param {string | ((scope: Scope) => any) | import("../parser/parse").CompiledExpression} watchExp Expression that is evaluated on each
|
|
282
282
|
* {@link ng.$rootScope.Scope#$digest $digest} cycle. A change in the return value triggers
|
|
283
283
|
* a call to the `listener`.
|
|
284
284
|
*
|
|
@@ -289,7 +289,7 @@ export class Scope {
|
|
|
289
289
|
* comparing for reference equality.
|
|
290
290
|
* @returns {function()} Returns a deregistration function for this listener.
|
|
291
291
|
*/
|
|
292
|
-
$watch(watchExp: string | ((scope: Scope) => any), listener?: WatchListener, objectEquality?: boolean | undefined): () => any;
|
|
292
|
+
$watch(watchExp: string | ((scope: Scope) => any) | import("../parser/parse").CompiledExpression, listener?: WatchListener, objectEquality?: boolean | undefined): () => any;
|
|
293
293
|
/**
|
|
294
294
|
* @ngdoc method
|
|
295
295
|
* @name $rootScope.Scope#$watchGroup
|
|
@@ -567,6 +567,24 @@ export class Scope {
|
|
|
567
567
|
* @returns {*} The result of evaluating the expression.
|
|
568
568
|
*/
|
|
569
569
|
$apply(expr?: string | ((arg0: Scope) => any)): any;
|
|
570
|
+
/**
|
|
571
|
+
* @ngdoc method
|
|
572
|
+
* @name $rootScope.Scope#$applyAsync
|
|
573
|
+
* @kind function
|
|
574
|
+
*
|
|
575
|
+
* @description
|
|
576
|
+
* Schedule the invocation of $apply to occur at a later time. The actual time difference
|
|
577
|
+
* varies across browsers, but is typically around ~10 milliseconds.
|
|
578
|
+
*
|
|
579
|
+
* This can be used to queue up multiple expressions which need to be evaluated in the same
|
|
580
|
+
* digest.
|
|
581
|
+
*
|
|
582
|
+
* @param {(string|function())=} expr An AngularTS expression to be executed.
|
|
583
|
+
*
|
|
584
|
+
* - `string`: execute using the rules as defined in {@link guide/expression expression}.
|
|
585
|
+
* - `function(scope)`: execute the function with current `scope` parameter.
|
|
586
|
+
*/
|
|
587
|
+
$applyAsync(expr?: (string | (() => any)) | undefined): void;
|
|
570
588
|
/**
|
|
571
589
|
* @ngdoc method
|
|
572
590
|
* @name $rootScope.Scope#$evalAsync
|
|
@@ -598,24 +616,6 @@ export class Scope {
|
|
|
598
616
|
* @param {(object)=} locals Local variables object, useful for overriding values in scope.
|
|
599
617
|
*/
|
|
600
618
|
$evalAsync(expr?: (string | ((arg0: any) => any)) | undefined, locals?: (object) | undefined): number;
|
|
601
|
-
/**
|
|
602
|
-
* @ngdoc method
|
|
603
|
-
* @name $rootScope.Scope#$applyAsync
|
|
604
|
-
* @kind function
|
|
605
|
-
*
|
|
606
|
-
* @description
|
|
607
|
-
* Schedule the invocation of $apply to occur at a later time. The actual time difference
|
|
608
|
-
* varies across browsers, but is typically around ~10 milliseconds.
|
|
609
|
-
*
|
|
610
|
-
* This can be used to queue up multiple expressions which need to be evaluated in the same
|
|
611
|
-
* digest.
|
|
612
|
-
*
|
|
613
|
-
* @param {(string|function())=} expr An AngularTS expression to be executed.
|
|
614
|
-
*
|
|
615
|
-
* - `string`: execute using the rules as defined in {@link guide/expression expression}.
|
|
616
|
-
* - `function(scope)`: execute the function with current `scope` parameter.
|
|
617
|
-
*/
|
|
618
|
-
$applyAsync(expr?: (string | (() => any)) | undefined): void;
|
|
619
619
|
/**
|
|
620
620
|
* @description
|
|
621
621
|
* Listens on events of a given type. See {@link ng.$rootScope.Scope#$emit $emit} for
|
|
@@ -11,17 +11,8 @@ export class FormController {
|
|
|
11
11
|
$valid: boolean;
|
|
12
12
|
$invalid: boolean;
|
|
13
13
|
$submitted: boolean;
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
$getControls: () => any;
|
|
17
|
-
$$renameControl: typeof nullFormRenameControl;
|
|
18
|
-
$removeControl: () => void;
|
|
19
|
-
$setValidity: () => void;
|
|
20
|
-
$setDirty: () => void;
|
|
21
|
-
$setPristine: () => void;
|
|
22
|
-
$setSubmitted: () => void;
|
|
23
|
-
$$setSubmitted: () => void;
|
|
24
|
-
};
|
|
14
|
+
/** @type {FormController|Object} */
|
|
15
|
+
$$parentForm: FormController | any;
|
|
25
16
|
$$element: any;
|
|
26
17
|
$$animate: any;
|
|
27
18
|
/**
|
|
@@ -63,8 +63,6 @@ export class StateObject {
|
|
|
63
63
|
toString(): any;
|
|
64
64
|
}
|
|
65
65
|
export namespace StateObject {
|
|
66
|
-
/** Predicate which returns true if the object is an class with @State() decorator */
|
|
67
|
-
function isStateClass(stateDecl: any): boolean;
|
|
68
66
|
/** Predicate which returns true if the object is a [[StateDeclaration]] object */
|
|
69
67
|
function isStateDeclaration(obj: any): boolean;
|
|
70
68
|
/** Predicate which returns true if the object is an internal [[StateObject]] object */
|
|
@@ -135,9 +135,9 @@ export class UrlMatcher {
|
|
|
135
135
|
*
|
|
136
136
|
* @param id
|
|
137
137
|
* @param opts
|
|
138
|
-
* @returns {
|
|
138
|
+
* @returns {Param|any|boolean|UrlMatcher|null}
|
|
139
139
|
*/
|
|
140
|
-
parameter(id: any, opts?: {}):
|
|
140
|
+
parameter(id: any, opts?: {}): Param | any | boolean | UrlMatcher | null;
|
|
141
141
|
/**
|
|
142
142
|
* Validates the input parameter values against this UrlMatcher
|
|
143
143
|
*
|
|
@@ -2,19 +2,23 @@
|
|
|
2
2
|
* JQLite both a function and an array-like data structure for manipulation of DOM, linking elements to expando cache,
|
|
3
3
|
* and execution of chain functions.
|
|
4
4
|
*
|
|
5
|
-
* @param {string|Node|JQLite|ArrayLike<Element>|(() => void)|Window} element
|
|
5
|
+
* @param {string|Node|Node[]|NodeList|JQLite|ArrayLike<Element>|(() => void)|Window} element
|
|
6
6
|
* @returns {JQLite}
|
|
7
7
|
*/
|
|
8
|
-
export function JQLite(element: string | Node | JQLite | ArrayLike<Element> | (() => void) | Window): JQLite;
|
|
8
|
+
export function JQLite(element: string | Node | Node[] | NodeList | JQLite | ArrayLike<Element> | (() => void) | Window): JQLite;
|
|
9
9
|
export class JQLite {
|
|
10
10
|
/**
|
|
11
11
|
* JQLite both a function and an array-like data structure for manipulation of DOM, linking elements to expando cache,
|
|
12
12
|
* and execution of chain functions.
|
|
13
13
|
*
|
|
14
|
-
* @param {string|Node|JQLite|ArrayLike<Element>|(() => void)|Window} element
|
|
14
|
+
* @param {string|Node|Node[]|NodeList|JQLite|ArrayLike<Element>|(() => void)|Window} element
|
|
15
15
|
* @returns {JQLite}
|
|
16
16
|
*/
|
|
17
|
-
constructor(element: string | Node | JQLite | ArrayLike<Element> | (() => void) | Window);
|
|
17
|
+
constructor(element: string | Node | Node[] | NodeList | JQLite | ArrayLike<Element> | (() => void) | Window);
|
|
18
|
+
/**
|
|
19
|
+
* @returns {Element[]}
|
|
20
|
+
*/
|
|
21
|
+
elements(): Element[];
|
|
18
22
|
/**
|
|
19
23
|
* Remove all child nodes of the set of matched elements from the DOM and clears CACHE data, associated with the node.
|
|
20
24
|
* @returns {JQLite} The current instance of JQLite.
|
|
@@ -53,10 +57,10 @@ export class JQLite {
|
|
|
53
57
|
* Removes an event listener to each element in JQLite collection.
|
|
54
58
|
*
|
|
55
59
|
* @param {string} type - The event type(s) to remove listener from
|
|
56
|
-
* @param {Function} fn - The function to remove from event type.
|
|
60
|
+
* @param {Function} [fn] - The function to remove from event type.
|
|
57
61
|
* @returns {JQLite}
|
|
58
62
|
*/
|
|
59
|
-
off(type: string, fn
|
|
63
|
+
off(type: string, fn?: Function): JQLite;
|
|
60
64
|
/**
|
|
61
65
|
* Remove data by name from cache associated with each element in JQLite collection.
|
|
62
66
|
* @param {string} name - The key of the data associated with element
|
package/types/types.d.ts
CHANGED
|
@@ -41,7 +41,7 @@ export type TranscludeFunctionObject = {
|
|
|
41
41
|
*/
|
|
42
42
|
isSlotFilled: (arg0: string) => boolean;
|
|
43
43
|
};
|
|
44
|
-
export type TranscludeFunction = (arg0: TScope, arg1: CloneAttachFunction, arg2: import("./shared/jqlite/jqlite").JQLite | undefined, arg3: string | undefined) => import("./shared/jqlite/jqlite").JQLite;
|
|
44
|
+
export type TranscludeFunction = (arg0: TScope | Function, arg1: CloneAttachFunction | undefined, arg2: import("./shared/jqlite/jqlite").JQLite | undefined, arg3: string | undefined) => import("./shared/jqlite/jqlite").JQLite;
|
|
45
45
|
export type transcludeWithScope = (arg0: TScope, arg1: CloneAttachFunction, arg2: import("./shared/jqlite/jqlite").JQLite | undefined, arg3: string | undefined) => import("./shared/jqlite/jqlite").JQLite;
|
|
46
46
|
export type transcludeWithoutScope = (arg0: CloneAttachFunction | undefined, arg1: import("./shared/jqlite/jqlite").JQLite | undefined, arg2: string | undefined) => import("./shared/jqlite/jqlite").JQLite;
|
|
47
47
|
/**
|
package/src/animations/module.js
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
import { $$AnimateChildrenDirective } from "./animate-children-directive";
|
|
2
|
-
import { $$AnimationProvider } from "./animation";
|
|
3
|
-
import { $$rAFSchedulerFactory } from "./raf-scheduler";
|
|
4
|
-
import { ngAnimateSwapDirective } from "./animate-swap";
|
|
5
|
-
import { $$AnimateQueueProvider } from "./animate-queue";
|
|
6
|
-
import { $$AnimateCacheProvider } from "./animate-cache";
|
|
7
|
-
import { $AnimateCssProvider } from "./animate-css";
|
|
8
|
-
import { $$AnimateCssDriverProvider } from "./animate-css-driver";
|
|
9
|
-
import { $$AnimateJsProvider } from "./animate-js";
|
|
10
|
-
import { $$AnimateJsDriverProvider } from "./animate-js-driver";
|
|
11
|
-
|
|
12
|
-
export function initAnimateModule(angular) {
|
|
13
|
-
angular
|
|
14
|
-
.module("ngAnimate", [])
|
|
15
|
-
.directive("ngAnimateSwap", ngAnimateSwapDirective)
|
|
16
|
-
.directive("ngAnimateChildren", $$AnimateChildrenDirective)
|
|
17
|
-
.factory("$$rAFScheduler", $$rAFSchedulerFactory)
|
|
18
|
-
.provider("$$animateQueue", $$AnimateQueueProvider)
|
|
19
|
-
.provider("$$animateCache", $$AnimateCacheProvider)
|
|
20
|
-
.provider("$$animation", $$AnimationProvider)
|
|
21
|
-
.provider("$animateCss", $AnimateCssProvider)
|
|
22
|
-
.provider("$$animateCssDriver", $$AnimateCssDriverProvider)
|
|
23
|
-
.provider("$$animateJs", $$AnimateJsProvider)
|
|
24
|
-
.provider("$$animateJsDriver", $$AnimateJsDriverProvider);
|
|
25
|
-
}
|
|
@@ -1,88 +0,0 @@
|
|
|
1
|
-
import { addInlineStyles } from "./helpers";
|
|
2
|
-
|
|
3
|
-
/**
|
|
4
|
-
* @ngdoc service
|
|
5
|
-
* @name $animateCss
|
|
6
|
-
* @kind object
|
|
7
|
-
*
|
|
8
|
-
*
|
|
9
|
-
* @description
|
|
10
|
-
* This is the core version of `$animateCss`. By default, only when the `ngAnimate` is included,
|
|
11
|
-
* then the `$animateCss` service will actually perform animations.
|
|
12
|
-
*
|
|
13
|
-
* Click here {@link ngAnimate.$animateCss to read the documentation for $animateCss}.
|
|
14
|
-
*/
|
|
15
|
-
export function CoreAnimateCssProvider() {
|
|
16
|
-
this.$get = [
|
|
17
|
-
"$$AnimateRunner",
|
|
18
|
-
($$AnimateRunner) =>
|
|
19
|
-
/**
|
|
20
|
-
*
|
|
21
|
-
* @param {import("../../shared/jqlite/jqlite").JQLite} element
|
|
22
|
-
* @param {*} initialOptions
|
|
23
|
-
* @returns
|
|
24
|
-
*/
|
|
25
|
-
function (element, initialOptions) {
|
|
26
|
-
// all of the animation functions should create
|
|
27
|
-
// a copy of the options data, however, if a
|
|
28
|
-
// parent service has already created a copy then
|
|
29
|
-
// we should stick to using that
|
|
30
|
-
let options = initialOptions || {};
|
|
31
|
-
if (!options.$$prepared) {
|
|
32
|
-
options = structuredClone(options);
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
// there is no point in applying the styles since
|
|
36
|
-
// there is no animation that goes on at all in
|
|
37
|
-
// this version of $animateCss.
|
|
38
|
-
if (options.cleanupStyles) {
|
|
39
|
-
options.from = options.to = null;
|
|
40
|
-
}
|
|
41
|
-
|
|
42
|
-
if (options.from) {
|
|
43
|
-
addInlineStyles(element[0], options.from);
|
|
44
|
-
options.from = null;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
let closed;
|
|
48
|
-
const runner = new $$AnimateRunner();
|
|
49
|
-
|
|
50
|
-
/**
|
|
51
|
-
* @returns {$$AnimateRunner}
|
|
52
|
-
*/
|
|
53
|
-
function run() {
|
|
54
|
-
requestAnimationFrame(() => {
|
|
55
|
-
applyAnimationContents();
|
|
56
|
-
if (!closed) {
|
|
57
|
-
runner.complete();
|
|
58
|
-
}
|
|
59
|
-
closed = true;
|
|
60
|
-
});
|
|
61
|
-
return runner;
|
|
62
|
-
}
|
|
63
|
-
|
|
64
|
-
/**
|
|
65
|
-
* @returns {void}
|
|
66
|
-
*/
|
|
67
|
-
function applyAnimationContents() {
|
|
68
|
-
if (options.addClass) {
|
|
69
|
-
element[0].classList.add(options.addClass);
|
|
70
|
-
options.addClass = null;
|
|
71
|
-
}
|
|
72
|
-
if (options.removeClass) {
|
|
73
|
-
element[0].classList.remove(options.removeClass);
|
|
74
|
-
options.removeClass = null;
|
|
75
|
-
}
|
|
76
|
-
if (options.to) {
|
|
77
|
-
addInlineStyles(element[0], options.to);
|
|
78
|
-
options.to = null;
|
|
79
|
-
}
|
|
80
|
-
}
|
|
81
|
-
|
|
82
|
-
return {
|
|
83
|
-
start: run,
|
|
84
|
-
end: run,
|
|
85
|
-
};
|
|
86
|
-
},
|
|
87
|
-
];
|
|
88
|
-
}
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
/\*\*
|
|
2
|
-
|
|
3
|
-
- @ngdoc provider
|
|
4
|
-
- @name $animateProvider
|
|
5
|
-
-
|
|
6
|
-
- @description
|
|
7
|
-
- Default implementation of $animate that doesn't perform any animations, instead just
|
|
8
|
-
- synchronously performs DOM updates and resolves the returned runner promise.
|
|
9
|
-
-
|
|
10
|
-
- In order to enable animations the `ngAnimate` module has to be loaded.
|
|
11
|
-
-
|
|
12
|
-
- To see the functional implementation check out `src/ngAnimate/animate.js`.
|
|
13
|
-
\*/
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
export function initAnimateModule(angular: any): void;
|
|
@@ -1,19 +0,0 @@
|
|
|
1
|
-
/**
|
|
2
|
-
* @ngdoc service
|
|
3
|
-
* @name $animateCss
|
|
4
|
-
* @kind object
|
|
5
|
-
*
|
|
6
|
-
*
|
|
7
|
-
* @description
|
|
8
|
-
* This is the core version of `$animateCss`. By default, only when the `ngAnimate` is included,
|
|
9
|
-
* then the `$animateCss` service will actually perform animations.
|
|
10
|
-
*
|
|
11
|
-
* Click here {@link ngAnimate.$animateCss to read the documentation for $animateCss}.
|
|
12
|
-
*/
|
|
13
|
-
export function CoreAnimateCssProvider(): void;
|
|
14
|
-
export class CoreAnimateCssProvider {
|
|
15
|
-
$get: (string | (($$AnimateRunner: any) => (element: import("../../shared/jqlite/jqlite").JQLite, initialOptions: any) => {
|
|
16
|
-
start: () => any;
|
|
17
|
-
end: () => any;
|
|
18
|
-
}))[];
|
|
19
|
-
}
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|
|
File without changes
|